@wix/bookings 1.0.179 → 1.0.181
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-calendar-v2-session-view.public.d.ts +1 -1
- package/build/cjs/src/bookings-calendar-v2-session-view.types.d.ts +71 -0
- package/build/cjs/src/bookings-calendar-v2-session-view.universal.d.ts +71 -0
- package/build/cjs/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-resource.http.d.ts +125 -44
- package/build/cjs/src/bookings-catalog-v1-resource.http.js +125 -44
- package/build/cjs/src/bookings-catalog-v1-resource.http.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-resource.public.d.ts +6 -6
- package/build/cjs/src/bookings-catalog-v1-resource.public.js +13 -13
- package/build/cjs/src/bookings-catalog-v1-resource.public.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-resource.universal.d.ts +140 -57
- package/build/cjs/src/bookings-catalog-v1-resource.universal.js +135 -56
- package/build/cjs/src/bookings-catalog-v1-resource.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-session-view.public.d.ts +1 -1
- package/build/es/src/bookings-calendar-v2-session-view.types.d.ts +71 -0
- package/build/es/src/bookings-calendar-v2-session-view.universal.d.ts +71 -0
- package/build/es/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-resource.http.d.ts +125 -44
- package/build/es/src/bookings-catalog-v1-resource.http.js +125 -44
- package/build/es/src/bookings-catalog-v1-resource.http.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-resource.public.d.ts +6 -6
- package/build/es/src/bookings-catalog-v1-resource.public.js +9 -9
- package/build/es/src/bookings-catalog-v1-resource.public.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-resource.universal.d.ts +140 -57
- package/build/es/src/bookings-catalog-v1-resource.universal.js +130 -51
- package/build/es/src/bookings-catalog-v1-resource.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,4 +4,4 @@ export declare const __metadata: {
|
|
|
4
4
|
};
|
|
5
5
|
export declare function getSessionView(httpClient: HttpClient): () => Promise<import("./bookings-calendar-v2-session-view.universal").GetSessionViewResponse>;
|
|
6
6
|
export { Transparency, LocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, CalendarType, Status, SessionType, ConferenceType, Day, RecurringIntervalType, ScheduleStatus, } from './bookings-calendar-v2-session-view.universal';
|
|
7
|
-
export { SessionView, SessionViewUpdated, SessionViewUpdatedTypeOneOf, SessionAddedOrUpdated, Session, CalendarDateTime, LocalDateTime, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Participant, ExternalCalendarInfo, ExternalCalendarOverrides, CalendarConference, SessionVersion, SessionRemoved, SessionViewExtended, FeedEvent, FeedEventTypeOneOf, WindowExtended, WindowMoved, GetSessionViewRequest, GetSessionViewResponse, ExtendSessionViewRequest, ExtendSessionViewResponse, ReplayRequest, ReplayResponse, Window, FeedReplayEvent, FeedReplayEventTypeOneOf, SessionAdded, ReplayCompleted, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, Schedule, RecurringInterval, Interval, Frequency, Availability, AvailabilityConstraints, SplitInterval, Version, ConferenceProvider, ScheduleUpdated, RecurringSessionsUpdated, ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, Empty, Task, TaskKey, TaskAction, TaskActionActionOneOf, Complete, Cancel, Reschedule, } from './bookings-calendar-v2-session-view.universal';
|
|
7
|
+
export { SessionView, SessionViewUpdated, SessionViewUpdatedTypeOneOf, SessionAddedOrUpdated, Session, CalendarDateTime, LocalDateTime, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Participant, ExternalCalendarInfo, ExternalCalendarOverrides, CalendarConference, SessionVersion, SessionRemoved, SessionViewExtended, FeedEvent, FeedEventTypeOneOf, WindowExtended, WindowMoved, GetSessionViewRequest, GetSessionViewResponse, ExtendSessionViewRequest, ExtendSessionViewResponse, ReplayRequest, ReplayResponse, Window, FeedReplayEvent, FeedReplayEventTypeOneOf, SessionAdded, ReplayCompleted, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, Schedule, RecurringInterval, Interval, Frequency, Availability, AvailabilityConstraints, SplitInterval, Version, ConferenceProvider, ScheduleUpdated, RecurringSessionsUpdated, ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, Empty, Task, TaskKey, TaskAction, TaskActionActionOneOf, Complete, Cancel, Reschedule, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, } from './bookings-calendar-v2-session-view.universal';
|
|
@@ -1121,3 +1121,74 @@ export interface Reschedule {
|
|
|
1121
1121
|
executeAt?: Date;
|
|
1122
1122
|
payload?: string | null;
|
|
1123
1123
|
}
|
|
1124
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
1125
|
+
createdEvent?: EntityCreatedEvent;
|
|
1126
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1127
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1128
|
+
actionEvent?: ActionEvent;
|
|
1129
|
+
extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
|
|
1130
|
+
/** random GUID so clients can tell if event was already handled */
|
|
1131
|
+
id?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* Assumes actions are also always typed to an entity_type
|
|
1134
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1135
|
+
*/
|
|
1136
|
+
entityFqdn?: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1139
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1140
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
1141
|
+
*/
|
|
1142
|
+
slug?: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* Assuming that all messages including Actions have id
|
|
1145
|
+
* Example: The id of the specific order, the id of a specific campaign
|
|
1146
|
+
*/
|
|
1147
|
+
entityId?: string;
|
|
1148
|
+
/** The time of the event. Useful if there was a delay in dispatching */
|
|
1149
|
+
eventTime?: Date;
|
|
1150
|
+
/**
|
|
1151
|
+
* A field that should be set if this event was triggered by an anonymize request.
|
|
1152
|
+
* For example you must set it to true when sending an event as a result of a GDPR right to be forgotten request.
|
|
1153
|
+
* NOTE: This field is not relevant for `EntityCreatedEvent` but is located here for better ergonomics of consumers.
|
|
1154
|
+
*/
|
|
1155
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1156
|
+
/** If present, indicates the action that triggered the event. */
|
|
1157
|
+
originatedFrom?: string | null;
|
|
1158
|
+
/**
|
|
1159
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
1160
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1161
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1162
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1163
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1164
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1165
|
+
*/
|
|
1166
|
+
entityEventSequence?: string | null;
|
|
1167
|
+
}
|
|
1168
|
+
/** @oneof */
|
|
1169
|
+
export interface DomainEventBodyOneOf {
|
|
1170
|
+
createdEvent?: EntityCreatedEvent;
|
|
1171
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1172
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1173
|
+
actionEvent?: ActionEvent;
|
|
1174
|
+
extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
|
|
1175
|
+
}
|
|
1176
|
+
export interface EntityCreatedEvent {
|
|
1177
|
+
entityAsJson?: string;
|
|
1178
|
+
}
|
|
1179
|
+
export interface EntityUpdatedEvent {
|
|
1180
|
+
/**
|
|
1181
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1182
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1183
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1184
|
+
*/
|
|
1185
|
+
currentEntityAsJson?: string;
|
|
1186
|
+
}
|
|
1187
|
+
export interface EntityDeletedEvent {
|
|
1188
|
+
}
|
|
1189
|
+
export interface ActionEvent {
|
|
1190
|
+
bodyAsJson?: string;
|
|
1191
|
+
}
|
|
1192
|
+
export interface ExtendedFieldsUpdatedEvent {
|
|
1193
|
+
currentEntityAsJson?: string;
|
|
1194
|
+
}
|
|
@@ -1121,6 +1121,77 @@ export interface Reschedule {
|
|
|
1121
1121
|
executeAt?: Date;
|
|
1122
1122
|
payload?: string | null;
|
|
1123
1123
|
}
|
|
1124
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
1125
|
+
createdEvent?: EntityCreatedEvent;
|
|
1126
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1127
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1128
|
+
actionEvent?: ActionEvent;
|
|
1129
|
+
extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
|
|
1130
|
+
/** random GUID so clients can tell if event was already handled */
|
|
1131
|
+
_id?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* Assumes actions are also always typed to an entity_type
|
|
1134
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1135
|
+
*/
|
|
1136
|
+
entityFqdn?: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1139
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1140
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
1141
|
+
*/
|
|
1142
|
+
slug?: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* Assuming that all messages including Actions have id
|
|
1145
|
+
* Example: The id of the specific order, the id of a specific campaign
|
|
1146
|
+
*/
|
|
1147
|
+
entityId?: string;
|
|
1148
|
+
/** The time of the event. Useful if there was a delay in dispatching */
|
|
1149
|
+
eventTime?: Date;
|
|
1150
|
+
/**
|
|
1151
|
+
* A field that should be set if this event was triggered by an anonymize request.
|
|
1152
|
+
* For example you must set it to true when sending an event as a result of a GDPR right to be forgotten request.
|
|
1153
|
+
* NOTE: This field is not relevant for `EntityCreatedEvent` but is located here for better ergonomics of consumers.
|
|
1154
|
+
*/
|
|
1155
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1156
|
+
/** If present, indicates the action that triggered the event. */
|
|
1157
|
+
originatedFrom?: string | null;
|
|
1158
|
+
/**
|
|
1159
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
1160
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1161
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1162
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1163
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1164
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1165
|
+
*/
|
|
1166
|
+
entityEventSequence?: string | null;
|
|
1167
|
+
}
|
|
1168
|
+
/** @oneof */
|
|
1169
|
+
export interface DomainEventBodyOneOf {
|
|
1170
|
+
createdEvent?: EntityCreatedEvent;
|
|
1171
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1172
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1173
|
+
actionEvent?: ActionEvent;
|
|
1174
|
+
extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
|
|
1175
|
+
}
|
|
1176
|
+
export interface EntityCreatedEvent {
|
|
1177
|
+
entityAsJson?: string;
|
|
1178
|
+
}
|
|
1179
|
+
export interface EntityUpdatedEvent {
|
|
1180
|
+
/**
|
|
1181
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1182
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1183
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1184
|
+
*/
|
|
1185
|
+
currentEntityAsJson?: string;
|
|
1186
|
+
}
|
|
1187
|
+
export interface EntityDeletedEvent {
|
|
1188
|
+
}
|
|
1189
|
+
export interface ActionEvent {
|
|
1190
|
+
bodyAsJson?: string;
|
|
1191
|
+
}
|
|
1192
|
+
export interface ExtendedFieldsUpdatedEvent {
|
|
1193
|
+
currentEntityAsJson?: string;
|
|
1194
|
+
}
|
|
1124
1195
|
/**
|
|
1125
1196
|
* Gets the sessions view information.
|
|
1126
1197
|
* E.g. the current view end date, or the future duration in days the view should strive for.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-calendar-v2-session-view.universal.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v2-session-view.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,qHAAuG;AAEvG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,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AAA;AACnB,CAAC,EANW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAMzB;AAgSD,IAAY,GAiBX;AAjBD,WAAY,GAAG;IACb,iBAAiB;IACjB,8BAAuB,CAAA;IACvB,cAAc;IACd,kBAAW,CAAA;IACX,eAAe;IACf,kBAAW,CAAA;IACX,iBAAiB;IACjB,kBAAW,CAAA;IACX,gBAAgB;IAChB,kBAAW,CAAA;IACX,cAAc;IACd,kBAAW,CAAA;IACX,gBAAgB;IAChB,kBAAW,CAAA;IACX,cAAc;IACd,kBAAW,CAAA;AACb,CAAC,EAjBW,GAAG,GAAH,WAAG,KAAH,WAAG,QAiBd;AAOD,IAAY,qBASX;AATD,WAAY,qBAAqB;IAC/B,2EAA2E;IAC3E,gDAAuB,CAAA;IACvB,qCAAqC;IACrC,wCAAe,CAAA;IACf,iBAAiB;IACjB,gEAAuC,CAAA;IACvC,4CAA4C;IAC5C,sDAA6B,CAAA;AAC/B,CAAC,EATW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAShC;AAwDD,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,sDAAsD;IACtD,qCAAmB,CAAA;IACnB,sCAAsC;IACtC,yCAAuB,CAAA;AACzB,CAAC,EANW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAMzB;
|
|
1
|
+
{"version":3,"file":"bookings-calendar-v2-session-view.universal.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v2-session-view.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,qHAAuG;AAEvG,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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uBAAuB;YACnC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;gBAC3B,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;QAExC,MAAM,OAAO,GACX,0CAA0C,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAErE,KAAK,CAAC,0CAA0C,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEtE,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,EAAE,CAAC,CAAC;YACxE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAjDD,wCAiDC"}
|
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
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
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
49
|
-
*
|
|
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
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
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
|
-
*
|
|
65
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
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>;
|