@wix/bookings 1.0.174 → 1.0.176

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 (29) hide show
  1. package/build/cjs/src/bookings-availability-v1-slot-availability.types.d.ts +0 -1
  2. package/build/cjs/src/bookings-availability-v1-slot-availability.types.js.map +1 -1
  3. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.d.ts +0 -2
  4. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js +0 -1
  5. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
  6. package/build/cjs/src/bookings-catalog-v1-resource.http.d.ts +125 -44
  7. package/build/cjs/src/bookings-catalog-v1-resource.http.js +125 -44
  8. package/build/cjs/src/bookings-catalog-v1-resource.http.js.map +1 -1
  9. package/build/cjs/src/bookings-catalog-v1-resource.public.d.ts +6 -6
  10. package/build/cjs/src/bookings-catalog-v1-resource.public.js +13 -13
  11. package/build/cjs/src/bookings-catalog-v1-resource.public.js.map +1 -1
  12. package/build/cjs/src/bookings-catalog-v1-resource.universal.d.ts +140 -57
  13. package/build/cjs/src/bookings-catalog-v1-resource.universal.js +135 -56
  14. package/build/cjs/src/bookings-catalog-v1-resource.universal.js.map +1 -1
  15. package/build/es/src/bookings-availability-v1-slot-availability.types.d.ts +0 -1
  16. package/build/es/src/bookings-availability-v1-slot-availability.types.js.map +1 -1
  17. package/build/es/src/bookings-availability-v1-slot-availability.universal.d.ts +0 -2
  18. package/build/es/src/bookings-availability-v1-slot-availability.universal.js +0 -1
  19. package/build/es/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
  20. package/build/es/src/bookings-catalog-v1-resource.http.d.ts +125 -44
  21. package/build/es/src/bookings-catalog-v1-resource.http.js +125 -44
  22. package/build/es/src/bookings-catalog-v1-resource.http.js.map +1 -1
  23. package/build/es/src/bookings-catalog-v1-resource.public.d.ts +6 -6
  24. package/build/es/src/bookings-catalog-v1-resource.public.js +9 -9
  25. package/build/es/src/bookings-catalog-v1-resource.public.js.map +1 -1
  26. package/build/es/src/bookings-catalog-v1-resource.universal.d.ts +140 -57
  27. package/build/es/src/bookings-catalog-v1-resource.universal.js +130 -51
  28. package/build/es/src/bookings-catalog-v1-resource.universal.js.map +1 -1
  29. package/package.json +2 -2
@@ -147,7 +147,6 @@ export interface QueryAvailabilityRequest {
147
147
  * bookable slots are already included.
148
148
  */
149
149
  slotsPerDay?: number | null;
150
- shouldProxyToAvailability?: boolean;
151
150
  }
152
151
  export interface QueryV2 extends QueryV2PagingMethodOneOf {
153
152
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-availability-v1-slot-availability.types.js","sourceRoot":"","sources":["../../../src/bookings-availability-v1-slot-availability.types.ts"],"names":[],"mappings":";;;AA0GA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AA2ED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
1
+ {"version":3,"file":"bookings-availability-v1-slot-availability.types.js","sourceRoot":"","sources":["../../../src/bookings-availability-v1-slot-availability.types.ts"],"names":[],"mappings":";;;AA0GA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AA0ED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
@@ -148,7 +148,6 @@ export interface QueryAvailabilityRequest {
148
148
  * bookable slots are already included.
149
149
  */
150
150
  slotsPerDay?: number | null;
151
- shouldProxyToAvailability?: boolean;
152
151
  }
153
152
  export interface QueryV2 extends QueryV2PagingMethodOneOf {
154
153
  /**
@@ -325,5 +324,4 @@ export interface QueryAvailabilityOptions {
325
324
  * bookable slots are already included.
326
325
  */
327
326
  slotsPerDay?: number | null;
328
- shouldProxyToAvailability?: boolean;
329
327
  }
@@ -127,7 +127,6 @@ function queryAvailability(query, options) {
127
127
  query: '$[0]',
128
128
  timezone: '$[1].timezone',
129
129
  slotsPerDay: '$[1].slotsPerDay',
130
- shouldProxyToAvailability: '$[1].shouldProxyToAvailability',
131
130
  };
132
131
  const responseTransformation = '$';
133
132
  // @ts-ignore
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-availability-v1-slot-availability.universal.js","sourceRoot":"","sources":["../../../src/bookings-availability-v1-slot-availability.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,uIAAyH;AAEzH,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA2G5B,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC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AK,EAAE,OAAO,CAAC,CAAC,CAAC;QAEtD,MAAM,OAAO,GACX,mDAAmD,CAAC,iBAAiB,CACnE,OAAO,CACR,CAAC;QAEJ,KAAK,CAAC,6CAA6C,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEzE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,OAAO;gBACP,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AA9DD,8CA8DC"}
1
+ {"version":3,"file":"bookings-availability-v1-slot-availability.universal.js","sourceRoot":"","sources":["../../../src/bookings-availability-v1-slot-availability.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,uIAAyH;AAEzH,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EA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GAAG,IAAA,iBAAU,EAAC;YAC9B,UAAU,EAAE,0BAA0B;YACtC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;gBACzC,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;QAEtD,MAAM,OAAO,GACX,mDAAmD,CAAC,iBAAiB,CACnE,OAAO,CACR,CAAC;QAEJ,KAAK,CAAC,6CAA6C,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEzE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,OAAO;gBACP,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AA7DD,8CA6DC"}
@@ -5,89 +5,170 @@ export declare function list(payload: ListResourcesRequest): RequestOptionsFacto
5
5
  /**
6
6
  * Retrieves a list of the resources according to the specified filters and paging.
7
7
  *
8
+ * The query parameter is optional. If no query is provided than all non-deleted resources are returned.
8
9
  *
9
- * The query parameter is optional. If no query is provided, all non-deleted resources are returned.
10
+ * |Property|Is supported|
11
+ * |--|--|
12
+ * |filter | supported fields: `resource.id`, `resource.tags`, `resource.status`|
13
+ * |paging | supported |
14
+ * |fields | supported |
15
+ * |fieldsets | **not supported** |
16
+ * |sort | **not supported** |
10
17
  *
11
- * > **Notes:** The following objects in the query parameter are not supported for this query:
12
- * > - sort
13
- * > - fieldsets
14
18
  *
19
+ * >**Notes:**
20
+ * > + The following objects in the `query` parameter are not supported for this query:
21
+ * > - `sort`
22
+ * > - `fieldsets`
23
+ *
24
+ * > **Permissions**
25
+ * > This endpoint requires the Read Bookings Calendar, Read Bookings - Public Data, Read Bookings - Including Participants or Manage Bookings permission scope.
15
26
  */
16
27
  export declare function query(payload: QueryResourcesRequest): RequestOptionsFactory<QueryResourcesResponse>;
17
28
  /**
18
29
  * Creates a resource.
19
- *
20
- *
30
+ * <!--ONLY:VELO
21
31
  * The `createResource()` function returns a Promise that resolves to the created resource.
22
- * Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the availability.start property. For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `WORKING_HOURS` using the resource's schedule. You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
32
+ * <!--END:ONLY:VELO-->
23
33
  *
34
+ * Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the `availability.start` property.
35
+ * For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `"WORKING_HOURS"` using the resource's schedule.
36
+ * You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
24
37
  *
38
+ * <!--ONLY:VELO
25
39
  * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
26
- * - If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the `scheduleInfo` parameter. The default hours can bee found in the Dashboard under **Settings** in the **Bookings** section, on the **Appointment hours** page.
27
- * - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](wix-bookings-v2/sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
28
- * - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
29
- *
40
+ * + If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the `scheduleInfo` parameter. The default hours can bee found in the Dashboard under **Settings** in the **Bookings** section, on the **Appointment hours** page.
41
+ * + If the resource has its own custom working hours, create the resource, then create sessions of type `"WORKING_HOURS"` using the [`createSession()`](wix-bookings-backend.Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
42
+ * + You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
30
43
  *
31
44
  * > **Notes:**
32
- * - The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
33
- * - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
34
- * - You can only add the business resource's schedule as a linked schedule for a resource.
35
- * - A resource can have one schedule only.
36
- * - You can have up to 135 active resources and an additional 135 deleted resources.
37
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
45
+ * > + The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
46
+ * > + The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
47
+ * > + You can only add the business resource's schedule as a linked schedule for a resource.
48
+ * > + A resource can have one schedule only.
49
+ * > + You can have up to 135 active resources and an additional 135 deleted resources.
50
+ * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
51
+ * <!--END:ONLY:VELO-->
52
+ *
53
+ * <!--ONLY:REST-->
54
+ * Use the following steps to create resources:
55
+ * - Create the resource using including schedule information.
56
+ * - If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the in the schedule parameters.
57
+ * - If the resource has its own custom working hours, create sessions of type `"WORKING_HOURS"`. Use the `scheduleId` of the new resource when creating the sessions. These session can be single sessions or recurring sessions. You can have both business hours and custom hours for the same resource schedule.
58
+ *
59
+ * >**Notes:**
60
+ * > + A resource can have one schedule only.
61
+ * > + You can have up to 135 active resources and an additional 135 deleted resources.
62
+ * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
63
+ *
64
+ *
65
+ *
66
+ * >**Permissions:**
67
+ * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
68
+ * <!--END:ONLY:REST-->
38
69
  */
39
70
  export declare function create(payload: CreateResourceRequest): RequestOptionsFactory<CreateResourceResponse>;
40
71
  /**
41
72
  * Updates a resource.
73
+ * <!--ONLY:VELO
74
+ * The `updateResource()` function returns a Promise that resolves when a resource is updated.
75
+ * Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](wix-bookings-backend/resource/updateresourceschedule).
42
76
  *
43
- *
44
- * The `updateResource()` function returns a Promise that resolves when a resource is updated. Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](#updateresourceschedule).
45
- *
77
+ * >**Notes:**
78
+ * > + When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
79
+ * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
80
+ * <!--END:ONLY:VELO-->
81
+ * <!--ONLY:REST-->
82
+ * Use this endpoint to update all resource information except for the resource's schedule. To update a resource's schedule use
83
+ * the [Update Schedule](https://dev.wix.com/api/rest/wix-bookings/resources/update-schedule) endpoint.
46
84
  *
47
85
  * >**Notes:**
48
- * - When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
49
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
86
+ * > + When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
87
+ * > + When updating a resource's schedule you cannot change the resource tag used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
88
+ * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
89
+ *
90
+ * >**Permissions:**
91
+ * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
92
+ * <!--END:ONLY:REST-->
50
93
  */
51
94
  export declare function update(payload: UpdateResourceRequest): RequestOptionsFactory<UpdateResourceResponse>;
52
95
  /**
53
- * Updates a resource's schedule.
54
- *
55
- *
56
- * The `updateResourceSchedule()` function returns a Promise that resolves when a resource's schedule has been updated. Use this function to update the bookings resource's schedule. To update other resource details use [`updateResource()`](#updateresource). The following schedule properties can be updated:
57
- *
58
- * - `availability.start`
59
- *
60
- * - `availability.linkedSchedules`
61
- *
96
+ * Updates a resource's schedule
97
+ * <!--ONLY:VELO
98
+ * The `updateResourceSchedule()` function returns a Promise that resolves when a resource's schedule has been updated.
99
+ * Use this function to update the bookings resource's schedule. To update other resource details use [`updateResource()`] (wix-bookings-backend/resources/updateresource).
100
+ * The following schedule properties can be updated:
101
+ * + `availability.start`
102
+ * + `availability.linkedSchedules`
103
+ * <!--END:ONLY:VELO-->
62
104
  *
63
105
  * To update a resource's schedule to remove business hours and add custom hours:
64
- * - Use [`updateResourceSchedule()`](#updateresourceschedule) to remove the business's scheduleId from the `availability.linkedSchedules` array.
65
- * - Use [`createSession()`](wix-bookings-v2/sessions/createsession) to create a set of recurring sessions of type `WORKING_HOURS` to define the resource's new hours.
66
- *
106
+ * <!--ONLY:REST-->
107
+ * + Update the resource's schedule to remove the business's `scheduleId` from the `availability.linkedSchedules` array.
108
+ * + Create a set of recurring sessions of type `"WORKING_HOURS"` to define the resource's new hours.
109
+ * <!--END:ONLY:REST-->
110
+ * <!--ONLY:VELO
111
+ * + Use [`updateResourceSchedule()`](wix-bookings-backend.Resources/updateresourcesession) to remove the business's scheduleId from the `availability.linkedSchedules` array.
112
+ * + Use [`createSession()`](wix-bookings-backend.Sessions/createsession) to create a set of recurring sessions of type `"WORKING_HOURS"` to define the resource's new hours.
113
+ * <!--END:ONLY:VELO-->
67
114
  *
68
115
  * To update a resource's schedule to add default business hours, and keep or remove custom hours:
116
+ * <!--ONLY:REST-->
117
+ * + Update the resource's schedule to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
118
+ * + If you want to remove the custom sessions, delete the resource's sessions of type `"WORKING_HOURS"`.
119
+ * You do not have to delete exiting custom sessions. Custom session that are not deleted will continue to be included in availability calculations and can still be booked.
120
+ * <!--END:ONLY:REST-->
121
+ * <!--ONLY:VELO
122
+ * + Use [`updateResourceSchedule()`](wix-bookings-backend.Resources/updateresourcesession) to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
123
+ * + If you want to remove the custom sessions, use [`deleteSession()`](wix-bookings-backend.Sessions/deletesession) to delete the resource's sessions of type `"WORKING_HOURS"`. You do not have to delete exiting custom sessions. You can have both default working hours and custom hours for the same schedule. Custom sessions that are not deleted will continue to be included in availability calculations and can still be booked.
124
+ *
125
+ * > **Notes:**
126
+ * > + The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
127
+ * > + A resource can have one schedule only.
128
+ * > + A resource can have both default business hours and custom hours in its schedule.
129
+ * > + When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
130
+ * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource schedule. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
131
+ * @snippet [updateResourceScheduleDefaultToCustom.es6=Update a resource's schedule from business to custom hours]
132
+ * Update a resource's schedule from the business's default working hours to 2 custom days per week.
133
+ * @snippet [updateResourceScheduleCustomToDefault.es6=Update a resource's schedule from custom to business hours]
134
+ * <!--END:ONLY:VELO-->
135
+ * <!--ONLY:REST-->
136
+ * >**Notes:**
137
+ * > + A resource can have one schedule only.
138
+ * > + A resource can have both default business hours and custom hours in its schedule.
139
+ * > + When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
140
+ * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
69
141
  *
70
- * - Use [`updateResourceSchedule()`](#updateresourceschedule) to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
71
- * - If you want to remove the custom sessions, use [`deleteSession()`](wix-bookings-v2/sessions/deletesession) to delete the resource's sessions of type `WORKING_HOURS`. You do not have to delete exiting custom sessions. You can have both default working hours and custom hours for the same schedule. Custom sessions that are not deleted will continue to be included in availability calculations and can still be booked.
72
142
  *
73
143
  *
74
- * > **Notes:** The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working. A resource can have one schedule only. A resource can have both default business hours and custom hours in its schedule. When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `INDIVIDUAL`, `GROUP`, and `COURSE`. Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource schedule.
144
+ * >**Permissions:**
145
+ * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
146
+ * <!--END:ONLY:REST-->
75
147
  */
76
148
  export declare function updateSchedule(payload: ResourceUpdateScheduleRequest): RequestOptionsFactory<UpdateScheduleResponse>;
77
149
  /**
78
150
  * Deletes a resource.
79
- *
151
+ * <!--ONLY:VELO
80
152
  * The `deleteResource()` function returns a Promise that is resolved when a resource is deleted.
81
- *
82
- *
83
- * Deleting a resource updates its status to `DELETED`.
153
+ * <!--END:ONLY:VELO-->
154
+ * Deleting a resource updates its `status` to `"DELETED"`.
84
155
  *
85
156
  * You cannot delete a resource if it has booked sessions.
86
157
  *
158
+ * <!--ONLY:VELO
159
+ * >**Notes:**
160
+ * > + The Bookings app automatically creates a resource with a name and tag of value `"business"``. This resource is used for the business's schedule and working hours and cannot be deleted.
161
+ * > + You can have up to 135 active resources and an additional 135 deleted resources.
162
+ * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
163
+ * <!--END:ONLY:VELO-->
87
164
  *
165
+ * <!--ONLY:REST-->
88
166
  * >**Notes:**
89
- * - The Bookings app automatically creates a resource with a name and tag of value `business`. This resource is used for the business's schedule and working hours and cannot be deleted.
90
- * - You can have up to 135 active resources and an additional 135 deleted resources.
91
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
167
+ * > + The Bookings app creates a resource with `"business"` in name and tag values. This resource is used for the business's schedule and working hours and cannot be deleted.
168
+ * > + You can have up to 135 active resources and an additional 135 deleted resources.
169
+ *
170
+ * >**Permissions:**
171
+ * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
172
+ * <!--END:ONLY:REST-->
92
173
  */
93
174
  export declare function _delete(payload: DeleteResourceRequest): RequestOptionsFactory<DeleteResourceResponse>;
@@ -206,13 +206,24 @@ exports.list = list;
206
206
  /**
207
207
  * Retrieves a list of the resources according to the specified filters and paging.
208
208
  *
209
+ * The query parameter is optional. If no query is provided than all non-deleted resources are returned.
209
210
  *
210
- * The query parameter is optional. If no query is provided, all non-deleted resources are returned.
211
+ * |Property|Is supported|
212
+ * |--|--|
213
+ * |filter | supported fields: `resource.id`, `resource.tags`, `resource.status`|
214
+ * |paging | supported |
215
+ * |fields | supported |
216
+ * |fieldsets | **not supported** |
217
+ * |sort | **not supported** |
211
218
  *
212
- * > **Notes:** The following objects in the query parameter are not supported for this query:
213
- * > - sort
214
- * > - fieldsets
215
219
  *
220
+ * >**Notes:**
221
+ * > + The following objects in the `query` parameter are not supported for this query:
222
+ * > - `sort`
223
+ * > - `fieldsets`
224
+ *
225
+ * > **Permissions**
226
+ * > This endpoint requires the Read Bookings Calendar, Read Bookings - Public Data, Read Bookings - Including Participants or Manage Bookings permission scope.
216
227
  */
217
228
  function query(payload) {
218
229
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_queryResourcesRequest, {});
@@ -247,25 +258,45 @@ function query(payload) {
247
258
  exports.query = query;
248
259
  /**
249
260
  * Creates a resource.
250
- *
251
- *
261
+ * <!--ONLY:VELO
252
262
  * The `createResource()` function returns a Promise that resolves to the created resource.
253
- * Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the availability.start property. For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `WORKING_HOURS` using the resource's schedule. You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
263
+ * <!--END:ONLY:VELO-->
254
264
  *
265
+ * Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the `availability.start` property.
266
+ * For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `"WORKING_HOURS"` using the resource's schedule.
267
+ * You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
255
268
  *
269
+ * <!--ONLY:VELO
256
270
  * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
257
- * - If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the `scheduleInfo` parameter. The default hours can bee found in the Dashboard under **Settings** in the **Bookings** section, on the **Appointment hours** page.
258
- * - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](wix-bookings-v2/sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
259
- * - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
260
- *
271
+ * + If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the `scheduleInfo` parameter. The default hours can bee found in the Dashboard under **Settings** in the **Bookings** section, on the **Appointment hours** page.
272
+ * + If the resource has its own custom working hours, create the resource, then create sessions of type `"WORKING_HOURS"` using the [`createSession()`](wix-bookings-backend.Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
273
+ * + You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
261
274
  *
262
275
  * > **Notes:**
263
- * - The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
264
- * - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
265
- * - You can only add the business resource's schedule as a linked schedule for a resource.
266
- * - A resource can have one schedule only.
267
- * - You can have up to 135 active resources and an additional 135 deleted resources.
268
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
276
+ * > + The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
277
+ * > + The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
278
+ * > + You can only add the business resource's schedule as a linked schedule for a resource.
279
+ * > + A resource can have one schedule only.
280
+ * > + You can have up to 135 active resources and an additional 135 deleted resources.
281
+ * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
282
+ * <!--END:ONLY:VELO-->
283
+ *
284
+ * <!--ONLY:REST-->
285
+ * Use the following steps to create resources:
286
+ * - Create the resource using including schedule information.
287
+ * - If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the in the schedule parameters.
288
+ * - If the resource has its own custom working hours, create sessions of type `"WORKING_HOURS"`. Use the `scheduleId` of the new resource when creating the sessions. These session can be single sessions or recurring sessions. You can have both business hours and custom hours for the same resource schedule.
289
+ *
290
+ * >**Notes:**
291
+ * > + A resource can have one schedule only.
292
+ * > + You can have up to 135 active resources and an additional 135 deleted resources.
293
+ * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
294
+ *
295
+ *
296
+ *
297
+ * >**Permissions:**
298
+ * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
299
+ * <!--END:ONLY:REST-->
269
300
  */
270
301
  function create(payload) {
271
302
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_createResourceRequest, {
@@ -312,14 +343,26 @@ function create(payload) {
312
343
  exports.create = create;
313
344
  /**
314
345
  * Updates a resource.
346
+ * <!--ONLY:VELO
347
+ * The `updateResource()` function returns a Promise that resolves when a resource is updated.
348
+ * Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](wix-bookings-backend/resource/updateresourceschedule).
315
349
  *
316
- *
317
- * The `updateResource()` function returns a Promise that resolves when a resource is updated. Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](#updateresourceschedule).
318
- *
350
+ * >**Notes:**
351
+ * > + When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
352
+ * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
353
+ * <!--END:ONLY:VELO-->
354
+ * <!--ONLY:REST-->
355
+ * Use this endpoint to update all resource information except for the resource's schedule. To update a resource's schedule use
356
+ * the [Update Schedule](https://dev.wix.com/api/rest/wix-bookings/resources/update-schedule) endpoint.
319
357
  *
320
358
  * >**Notes:**
321
- * - When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
322
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
359
+ * > + When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
360
+ * > + When updating a resource's schedule you cannot change the resource tag used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
361
+ * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
362
+ *
363
+ * >**Permissions:**
364
+ * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
365
+ * <!--END:ONLY:REST-->
323
366
  */
324
367
  function update(payload) {
325
368
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updateResourceRequest, {
@@ -370,28 +413,57 @@ function update(payload) {
370
413
  }
371
414
  exports.update = update;
372
415
  /**
373
- * Updates a resource's schedule.
374
- *
375
- *
376
- * The `updateResourceSchedule()` function returns a Promise that resolves when a resource's schedule has been updated. Use this function to update the bookings resource's schedule. To update other resource details use [`updateResource()`](#updateresource). The following schedule properties can be updated:
377
- *
378
- * - `availability.start`
379
- *
380
- * - `availability.linkedSchedules`
381
- *
416
+ * Updates a resource's schedule
417
+ * <!--ONLY:VELO
418
+ * The `updateResourceSchedule()` function returns a Promise that resolves when a resource's schedule has been updated.
419
+ * Use this function to update the bookings resource's schedule. To update other resource details use [`updateResource()`] (wix-bookings-backend/resources/updateresource).
420
+ * The following schedule properties can be updated:
421
+ * + `availability.start`
422
+ * + `availability.linkedSchedules`
423
+ * <!--END:ONLY:VELO-->
382
424
  *
383
425
  * To update a resource's schedule to remove business hours and add custom hours:
384
- * - Use [`updateResourceSchedule()`](#updateresourceschedule) to remove the business's scheduleId from the `availability.linkedSchedules` array.
385
- * - Use [`createSession()`](wix-bookings-v2/sessions/createsession) to create a set of recurring sessions of type `WORKING_HOURS` to define the resource's new hours.
386
- *
426
+ * <!--ONLY:REST-->
427
+ * + Update the resource's schedule to remove the business's `scheduleId` from the `availability.linkedSchedules` array.
428
+ * + Create a set of recurring sessions of type `"WORKING_HOURS"` to define the resource's new hours.
429
+ * <!--END:ONLY:REST-->
430
+ * <!--ONLY:VELO
431
+ * + Use [`updateResourceSchedule()`](wix-bookings-backend.Resources/updateresourcesession) to remove the business's scheduleId from the `availability.linkedSchedules` array.
432
+ * + Use [`createSession()`](wix-bookings-backend.Sessions/createsession) to create a set of recurring sessions of type `"WORKING_HOURS"` to define the resource's new hours.
433
+ * <!--END:ONLY:VELO-->
387
434
  *
388
435
  * To update a resource's schedule to add default business hours, and keep or remove custom hours:
436
+ * <!--ONLY:REST-->
437
+ * + Update the resource's schedule to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
438
+ * + If you want to remove the custom sessions, delete the resource's sessions of type `"WORKING_HOURS"`.
439
+ * You do not have to delete exiting custom sessions. Custom session that are not deleted will continue to be included in availability calculations and can still be booked.
440
+ * <!--END:ONLY:REST-->
441
+ * <!--ONLY:VELO
442
+ * + Use [`updateResourceSchedule()`](wix-bookings-backend.Resources/updateresourcesession) to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
443
+ * + If you want to remove the custom sessions, use [`deleteSession()`](wix-bookings-backend.Sessions/deletesession) to delete the resource's sessions of type `"WORKING_HOURS"`. You do not have to delete exiting custom sessions. You can have both default working hours and custom hours for the same schedule. Custom sessions that are not deleted will continue to be included in availability calculations and can still be booked.
444
+ *
445
+ * > **Notes:**
446
+ * > + The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
447
+ * > + A resource can have one schedule only.
448
+ * > + A resource can have both default business hours and custom hours in its schedule.
449
+ * > + When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
450
+ * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource schedule. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
451
+ * @snippet [updateResourceScheduleDefaultToCustom.es6=Update a resource's schedule from business to custom hours]
452
+ * Update a resource's schedule from the business's default working hours to 2 custom days per week.
453
+ * @snippet [updateResourceScheduleCustomToDefault.es6=Update a resource's schedule from custom to business hours]
454
+ * <!--END:ONLY:VELO-->
455
+ * <!--ONLY:REST-->
456
+ * >**Notes:**
457
+ * > + A resource can have one schedule only.
458
+ * > + A resource can have both default business hours and custom hours in its schedule.
459
+ * > + When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
460
+ * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
389
461
  *
390
- * - Use [`updateResourceSchedule()`](#updateresourceschedule) to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
391
- * - If you want to remove the custom sessions, use [`deleteSession()`](wix-bookings-v2/sessions/deletesession) to delete the resource's sessions of type `WORKING_HOURS`. You do not have to delete exiting custom sessions. You can have both default working hours and custom hours for the same schedule. Custom sessions that are not deleted will continue to be included in availability calculations and can still be booked.
392
462
  *
393
463
  *
394
- * > **Notes:** The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working. A resource can have one schedule only. A resource can have both default business hours and custom hours in its schedule. When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `INDIVIDUAL`, `GROUP`, and `COURSE`. Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource schedule.
464
+ * >**Permissions:**
465
+ * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
466
+ * <!--END:ONLY:REST-->
395
467
  */
396
468
  function updateSchedule(payload) {
397
469
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_resourceUpdateScheduleRequest, {
@@ -438,19 +510,28 @@ function updateSchedule(payload) {
438
510
  exports.updateSchedule = updateSchedule;
439
511
  /**
440
512
  * Deletes a resource.
441
- *
513
+ * <!--ONLY:VELO
442
514
  * The `deleteResource()` function returns a Promise that is resolved when a resource is deleted.
443
- *
444
- *
445
- * Deleting a resource updates its status to `DELETED`.
515
+ * <!--END:ONLY:VELO-->
516
+ * Deleting a resource updates its `status` to `"DELETED"`.
446
517
  *
447
518
  * You cannot delete a resource if it has booked sessions.
448
519
  *
520
+ * <!--ONLY:VELO
521
+ * >**Notes:**
522
+ * > + The Bookings app automatically creates a resource with a name and tag of value `"business"``. This resource is used for the business's schedule and working hours and cannot be deleted.
523
+ * > + You can have up to 135 active resources and an additional 135 deleted resources.
524
+ * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
525
+ * <!--END:ONLY:VELO-->
449
526
  *
527
+ * <!--ONLY:REST-->
450
528
  * >**Notes:**
451
- * - The Bookings app automatically creates a resource with a name and tag of value `business`. This resource is used for the business's schedule and working hours and cannot be deleted.
452
- * - You can have up to 135 active resources and an additional 135 deleted resources.
453
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
529
+ * > + The Bookings app creates a resource with `"business"` in name and tag values. This resource is used for the business's schedule and working hours and cannot be deleted.
530
+ * > + You can have up to 135 active resources and an additional 135 deleted resources.
531
+ *
532
+ * >**Permissions:**
533
+ * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
534
+ * <!--END:ONLY:REST-->
454
535
  */
455
536
  function _delete(payload) {
456
537
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_deleteResourceRequest, {});
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-catalog-v1-resource.http.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAkBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,aAAa,GAAG;IACpB,KAAK,EAAE,2BAA2B;IAClC,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,aAAa,GAAG;IACpB,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,wBAAwB;CACzC,CAAC;AACF,MAAM,cAAc,GAAG;IACrB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,sBAAsB,GAAG,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;AACrE,MAAM,sBAAsB,GAAG;IAC7B,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,uBAAuB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AAC1D,MAAM,sBAAsB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AACzD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,MAAM,GAAG,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,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AEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;IAE5B,OAAO,SAAS,CAAC;AACnB,CAAC;AA7BD,0BA6BC"}
1
+ {"version":3,"file":"bookings-catalog-v1-resource.http.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAkBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,aAAa,GAAG;IACpB,KAAK,EAAE,2BAA2B;IAClC,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,aAAa,GAAG;IACpB,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,wBAAwB;CACzC,CAAC;AACF,MAAM,cAAc,GAAG;IACrB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,sBAAsB,GAAG,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;AACrE,MAAM,sBAAsB,GAAG;IAC7B,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,uBAAuB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AAC1D,MAAM,sBAAsB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AACzD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,MAAM,GAAG,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,CAAC;AAClE,MAAM,qBAAqB,GAAG,EAAE,CAAC;AAC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,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;IAE5B,OAAO,SAAS,CAAC;AACnB,CAAC;AA7BD,0BA6BC"}
@@ -1,13 +1,13 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { Resource, CreateResourceOptions, ListOptions, QueryResourceCatalogOptions, UpdateResourceOptions, UpdateResourceScheduleOptions } from './bookings-catalog-v1-resource.universal';
2
+ import { Resource, CreateOptions, ListOptions, QueryOptions, UpdateOptions, UpdateScheduleOptions } from './bookings-catalog-v1-resource.universal';
3
3
  export declare const __metadata: {
4
4
  PACKAGE_NAME: string;
5
5
  };
6
6
  export declare function list(httpClient: HttpClient): (options?: ListOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").ListResourcesResponse>;
7
- export declare function queryResourceCatalog(httpClient: HttpClient): (options?: QueryResourceCatalogOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").QueryResourcesResponse>;
8
- export declare function createResource(httpClient: HttpClient): (resource: Resource, options?: CreateResourceOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").CreateResourceResponse>;
9
- export declare function updateResource(httpClient: HttpClient): (_id: string | null, options?: UpdateResourceOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").UpdateResourceResponse>;
10
- export declare function updateResourceSchedule(httpClient: HttpClient): (resourceId: string | null, options?: UpdateResourceScheduleOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").UpdateScheduleResponse>;
7
+ export declare function query(httpClient: HttpClient): (options?: QueryOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").QueryResourcesResponse>;
8
+ export declare function create(httpClient: HttpClient): (resource: Resource, options?: CreateOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").CreateResourceResponse>;
9
+ export declare function update(httpClient: HttpClient): (_id: string | null, options?: UpdateOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").UpdateResourceResponse>;
10
+ export declare function updateSchedule(httpClient: HttpClient): (resourceId: string | null, options?: UpdateScheduleOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").UpdateScheduleResponse>;
11
11
  export declare function _delete(httpClient: HttpClient): (_id: string) => Promise<import("./bookings-catalog-v1-resource.universal").DeleteResourceResponse>;
12
12
  export { Day, Transparency, RecurringIntervalType, LocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, ScheduleStatus, ConferenceType, ResourceStatus, SortOrder, Event, } from './bookings-catalog-v1-resource.universal';
13
- export { Resource, Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, ListResourcesRequest, Query, Sorting, Paging, ListResourcesResponse, QueryMetaData, PagingMetadataV2, Cursors, QueryResourcesRequest, QueryV2, QueryV2PagingMethodOneOf, CursorPaging, QueryResourcesResponse, CreateResourceRequest, CreateResourceResponse, ResourceNotification, BatchCreateResourceRequest, BatchCreateResourceResponse, UpdateResourceRequest, BatchRequest, CreateScheduleRequest, UpdateScheduleRequest, ParticipantNotification, CancelScheduleRequest, UpdateResourceResponse, BatchResponse, ResourceUpdateScheduleRequest, UpdateScheduleResponse, DeleteResourceRequest, DeleteResourceResponse, BatchDeleteResourceRequest, BatchDeleteResourceResponse, LinkResourceToUserRequest, LinkResourceToUserResponse, UnLinkResourceFromOwnerRequest, UnLinkResourceFromOwnerResponse, ListOptions, QueryResourceCatalogOptions, CreateResourceOptions, UpdateResourceOptions, UpdateResourceScheduleOptions, } from './bookings-catalog-v1-resource.universal';
13
+ export { Resource, Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, ListResourcesRequest, Query, Sorting, Paging, ListResourcesResponse, QueryMetaData, PagingMetadataV2, Cursors, QueryResourcesRequest, QueryV2, QueryV2PagingMethodOneOf, CursorPaging, QueryResourcesResponse, CreateResourceRequest, CreateResourceResponse, ResourceNotification, BatchCreateResourceRequest, BatchCreateResourceResponse, UpdateResourceRequest, BatchRequest, CreateScheduleRequest, UpdateScheduleRequest, ParticipantNotification, CancelScheduleRequest, UpdateResourceResponse, BatchResponse, ResourceUpdateScheduleRequest, UpdateScheduleResponse, DeleteResourceRequest, DeleteResourceResponse, BatchDeleteResourceRequest, BatchDeleteResourceResponse, LinkResourceToUserRequest, LinkResourceToUserResponse, UnLinkResourceFromOwnerRequest, UnLinkResourceFromOwnerResponse, ListOptions, QueryOptions, CreateOptions, UpdateOptions, UpdateScheduleOptions, } from './bookings-catalog-v1-resource.universal';