@wix/bookings 1.0.0 → 1.0.1

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 (55) hide show
  1. package/build/cjs/index.d.ts +2 -0
  2. package/build/cjs/index.js +3 -1
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/bookings-calendar-v1-session.http.d.ts +75 -0
  5. package/build/cjs/src/bookings-calendar-v1-session.http.js +355 -0
  6. package/build/cjs/src/bookings-calendar-v1-session.http.js.map +1 -0
  7. package/build/cjs/src/bookings-calendar-v1-session.public.d.ts +8 -0
  8. package/build/cjs/src/bookings-calendar-v1-session.public.js +41 -0
  9. package/build/cjs/src/bookings-calendar-v1-session.public.js.map +1 -0
  10. package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +1011 -0
  11. package/build/cjs/src/bookings-calendar-v1-session.types.js +110 -0
  12. package/build/cjs/src/bookings-calendar-v1-session.types.js.map +1 -0
  13. package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +1178 -0
  14. package/build/cjs/src/bookings-calendar-v1-session.universal.js +437 -0
  15. package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -0
  16. package/build/cjs/src/bookings-catalog-v1-resource.http.d.ts +195 -0
  17. package/build/cjs/src/bookings-catalog-v1-resource.http.js +564 -0
  18. package/build/cjs/src/bookings-catalog-v1-resource.http.js.map +1 -0
  19. package/build/cjs/src/bookings-catalog-v1-resource.public.d.ts +10 -0
  20. package/build/cjs/src/bookings-catalog-v1-resource.public.js +55 -0
  21. package/build/cjs/src/bookings-catalog-v1-resource.public.js.map +1 -0
  22. package/build/cjs/src/bookings-catalog-v1-resource.types.d.ts +931 -0
  23. package/build/cjs/src/bookings-catalog-v1-resource.types.js +125 -0
  24. package/build/cjs/src/bookings-catalog-v1-resource.types.js.map +1 -0
  25. package/build/cjs/src/bookings-catalog-v1-resource.universal.d.ts +1201 -0
  26. package/build/cjs/src/bookings-catalog-v1-resource.universal.js +740 -0
  27. package/build/cjs/src/bookings-catalog-v1-resource.universal.js.map +1 -0
  28. package/build/es/index.d.ts +2 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -1
  31. package/build/es/src/bookings-calendar-v1-session.http.d.ts +75 -0
  32. package/build/es/src/bookings-calendar-v1-session.http.js +348 -0
  33. package/build/es/src/bookings-calendar-v1-session.http.js.map +1 -0
  34. package/build/es/src/bookings-calendar-v1-session.public.d.ts +8 -0
  35. package/build/es/src/bookings-calendar-v1-session.public.js +23 -0
  36. package/build/es/src/bookings-calendar-v1-session.public.js.map +1 -0
  37. package/build/es/src/bookings-calendar-v1-session.types.d.ts +1011 -0
  38. package/build/es/src/bookings-calendar-v1-session.types.js +107 -0
  39. package/build/es/src/bookings-calendar-v1-session.types.js.map +1 -0
  40. package/build/es/src/bookings-calendar-v1-session.universal.d.ts +1178 -0
  41. package/build/es/src/bookings-calendar-v1-session.universal.js +411 -0
  42. package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -0
  43. package/build/es/src/bookings-catalog-v1-resource.http.d.ts +195 -0
  44. package/build/es/src/bookings-catalog-v1-resource.http.js +555 -0
  45. package/build/es/src/bookings-catalog-v1-resource.http.js.map +1 -0
  46. package/build/es/src/bookings-catalog-v1-resource.public.d.ts +10 -0
  47. package/build/es/src/bookings-catalog-v1-resource.public.js +33 -0
  48. package/build/es/src/bookings-catalog-v1-resource.public.js.map +1 -0
  49. package/build/es/src/bookings-catalog-v1-resource.types.d.ts +931 -0
  50. package/build/es/src/bookings-catalog-v1-resource.types.js +122 -0
  51. package/build/es/src/bookings-catalog-v1-resource.types.js.map +1 -0
  52. package/build/es/src/bookings-catalog-v1-resource.universal.d.ts +1201 -0
  53. package/build/es/src/bookings-catalog-v1-resource.universal.js +712 -0
  54. package/build/es/src/bookings-catalog-v1-resource.universal.js.map +1 -0
  55. package/package.json +2 -2
@@ -1 +1,3 @@
1
1
  export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.public';
2
+ export * as sessions from './src/bookings-calendar-v1-session.public';
3
+ export * as resources from './src/bookings-catalog-v1-resource.public';
@@ -19,6 +19,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.availabilityCalendar = void 0;
22
+ exports.resources = exports.sessions = exports.availabilityCalendar = void 0;
23
23
  exports.availabilityCalendar = __importStar(require("./src/bookings-availability-v1-slot-availability.public"));
24
+ exports.sessions = __importStar(require("./src/bookings-calendar-v1-session.public"));
25
+ exports.resources = __importStar(require("./src/bookings-catalog-v1-resource.public"));
24
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,gHAAgG"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,gHAAgG;AAChG,sFAAsE;AACtE,uFAAuE"}
@@ -0,0 +1,75 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ import { QuerySessionsRequest, QuerySessionsResponse, GetSessionRequest, GetSessionResponse, ListSessionsRequest, ListSessionsResponse, QueryEventSessionInstancesRequest, QueryEventSessionInstancesResponse } from './bookings-calendar-v1-session.types';
3
+ /**
4
+ * Retrieves a list of sessions, given the provided time range, filtering, and paging.
5
+ *
6
+ * Query Sessions runs with these defaults, which you can override:
7
+ * - All session types are returned.
8
+ * - `instance` is true. This means only single sessions and instances of recurring sessions are returned.
9
+ * - Session objects are returned with the fields specified in the `NO_PI` fieldset. This means they don't contain personal information.
10
+ * - `query.cursorPaging.limit` is `50`.
11
+ *
12
+ * Note the following limitations, which you can't override:
13
+ * - Sessions are always sorted by `start.timestamp` in `ASC` order.
14
+ * - The maximum time range you can query is 1 year.
15
+ *
16
+ * To query only for events, set `type` to `EVENT`. An event is a single or recurring session that appears in a calendar, for example an appointment or a class.
17
+ *
18
+ * To query for recurring session pattern definitions, set `instance` to `false`. In this case, you don't need to specify a time range.
19
+ *
20
+ * To return session objects including personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
21
+ *
22
+ * For details on fieldsets, see [Sessions: Supported Fieldsets](#fieldsets).
23
+ *
24
+ * For field support for filters, see [Sessions: Supported Filters](#filtering).
25
+ *
26
+ * To learn about working with _Query_ endpoints in general, see
27
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and
28
+ * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
29
+ */
30
+ export declare function calendarServerQuerySessions(payload: QuerySessionsRequest): RequestOptionsFactory<QuerySessionsResponse>;
31
+ /**
32
+ * Retrieves a session by ID.
33
+ *
34
+ *
35
+ * By default session object without any personal information is returned.
36
+ * This means without `participants`, `location`, `calendarConference`, and
37
+ * `externalCalendarOverrides`. You can retrieve full session object by passing
38
+ * `ALL_PI` in the `fieldsets` array. It isn't possible to retrieve sessions
39
+ * with personal information just for specific participants.
40
+ */
41
+ export declare function getSession(payload: GetSessionRequest): RequestOptionsFactory<GetSessionResponse>;
42
+ /**
43
+ * Retrieves a list of sessions.
44
+ *
45
+ *
46
+ * By default session objects without any personal information are returned.
47
+ * This means without `participants`, `location`, `calendarConference`, and
48
+ * `externalCalendarOverrides`. You can retrieve full session objects by passing
49
+ * `ALL_PI` in the `fieldsets` array. It isn't possible to retrieve sessions
50
+ * with personal information just for specific participants.
51
+ */
52
+ export declare function listSessions(payload: ListSessionsRequest): RequestOptionsFactory<ListSessionsResponse>;
53
+ /**
54
+ * Retrieves a list of event session instances, given the provided paging and filtering.
55
+ *
56
+ *
57
+ * By default session objects without any personal information are returned.
58
+ * This means without `participants`, `location`, `calendarConference`, and
59
+ * `externalCalendarOverrides`. You can retrieve full session objects by passing
60
+ * `ALL_PI` in the `fieldsets` array. It isn't possible to retrieve sessions
61
+ * with personal information just for specific participants.
62
+ *
63
+ * > __Note:__ Sessions are sorted by `start.timestamp`, in ascending order.
64
+ * > Other sorting options aren't supported.
65
+ *
66
+ *
67
+ * For a detailed list of supported operations in the Bookings Calendar V2 API, see
68
+ * [filtering](https://dev.wix.com/api/rest/wix-bookings/calendar-v2/filters).
69
+ *
70
+ *
71
+ * To learn about working with _Query_ endpoints, see
72
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
73
+ * and [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging).
74
+ */
75
+ export declare function queryEventSessionInstances(payload: QueryEventSessionInstancesRequest): RequestOptionsFactory<QueryEventSessionInstancesResponse>;
@@ -0,0 +1,355 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.queryEventSessionInstances = exports.listSessions = exports.getSession = exports.calendarServerQuerySessions = void 0;
4
+ const metro_runtime_1 = require("@wix/metro-runtime");
5
+ const ambassador_1 = require("@wix/metro-runtime/ambassador");
6
+ const metro_runtime_2 = require("@wix/metro-runtime");
7
+ const _address = { geocode: '_addressLocation' };
8
+ const _addressLocation = {
9
+ latitude: 'google.protobuf.DoubleValue',
10
+ longitude: 'google.protobuf.DoubleValue',
11
+ };
12
+ const _calendarDateTime = { timestamp: 'google.protobuf.Timestamp' };
13
+ const _getSessionRequest = {};
14
+ const _getSessionResponse = { session: '_session' };
15
+ const _listSessionsRequest = {};
16
+ const _listSessionsResponse = { sessions: '_session' };
17
+ const _location = {
18
+ customAddress: '_address',
19
+ businessLocation: '_locationsLocation',
20
+ };
21
+ const _locationsAddress = { geocode: '_locationsAddressLocation' };
22
+ const _locationsAddressLocation = {
23
+ latitude: 'google.protobuf.DoubleValue',
24
+ longitude: 'google.protobuf.DoubleValue',
25
+ };
26
+ const _locationsLocation = { address: '_locationsAddress' };
27
+ const _queryEventSessionInstancesRequest = {
28
+ fromDate: 'google.protobuf.Timestamp',
29
+ toDate: 'google.protobuf.Timestamp',
30
+ };
31
+ const _queryEventSessionInstancesResponse = { sessions: '_session' };
32
+ const _querySessionsRequest = {
33
+ fromDate: 'google.protobuf.Timestamp',
34
+ toDate: 'google.protobuf.Timestamp',
35
+ };
36
+ const _querySessionsResponse = { sessions: '_session' };
37
+ const _session = {
38
+ originalStart: 'google.protobuf.Timestamp',
39
+ start: '_calendarDateTime',
40
+ end: '_calendarDateTime',
41
+ location: '_location',
42
+ };
43
+ function resolveWixBookingsCalendarV2CalendarUrl(opts) {
44
+ const domainToMappings = {};
45
+ return metro_runtime_2.resolveUrl(Object.assign(opts, { domainToMappings }));
46
+ }
47
+ function resolveComWixBookingsCalendarApiV2SessionsServiceUrl(opts) {
48
+ const domainToMappings = {
49
+ 'bo._base_domain_': [
50
+ {
51
+ srcPath: '/calendar-server',
52
+ destPath: '',
53
+ },
54
+ ],
55
+ 'api._api_base_domain_': [
56
+ {
57
+ srcPath: '/calendar-server',
58
+ destPath: '',
59
+ },
60
+ ],
61
+ 'bookings._base_domain_': [
62
+ {
63
+ srcPath: '/_api/calendar-server',
64
+ destPath: '',
65
+ },
66
+ {
67
+ srcPath: '/internal/calendar-server',
68
+ destPath: '/internal',
69
+ },
70
+ ],
71
+ 'editor._base_domain_': [
72
+ {
73
+ srcPath: '/_api/calendar-server',
74
+ destPath: '',
75
+ },
76
+ {
77
+ srcPath: '/_api/bookings/v1/calendar/listSessions',
78
+ destPath: '/v1/calendar/listSessions',
79
+ },
80
+ {
81
+ srcPath: '/_api/bookings/v1/calendar/listSlots',
82
+ destPath: '/v1/calendar/listSlots',
83
+ },
84
+ ],
85
+ 'blocks._base_domain_': [
86
+ {
87
+ srcPath: '/_api/calendar-server',
88
+ destPath: '',
89
+ },
90
+ {
91
+ srcPath: '/_api/bookings/v1/calendar/listSessions',
92
+ destPath: '/v1/calendar/listSessions',
93
+ },
94
+ {
95
+ srcPath: '/_api/bookings/v1/calendar/listSlots',
96
+ destPath: '/v1/calendar/listSlots',
97
+ },
98
+ ],
99
+ 'create.editorx': [
100
+ {
101
+ srcPath: '/_api/calendar-server',
102
+ destPath: '',
103
+ },
104
+ {
105
+ srcPath: '/_api/bookings/v1/calendar/listSessions',
106
+ destPath: '/v1/calendar/listSessions',
107
+ },
108
+ {
109
+ srcPath: '/_api/bookings/v1/calendar/listSlots',
110
+ destPath: '/v1/calendar/listSlots',
111
+ },
112
+ ],
113
+ _: [
114
+ {
115
+ srcPath: '/_api/calendar-server',
116
+ destPath: '',
117
+ },
118
+ ],
119
+ '*.dev.wix-code.com': [
120
+ {
121
+ srcPath: '/_api/calendar-server',
122
+ destPath: '',
123
+ },
124
+ ],
125
+ 'www._base_domain_': [
126
+ {
127
+ srcPath: '/_api/calendar-server',
128
+ destPath: '',
129
+ },
130
+ {
131
+ srcPath: '/_api/bookings/v1/calendar/listSessions',
132
+ destPath: '/v1/calendar/listSessions',
133
+ },
134
+ {
135
+ srcPath: '/_api/bookings/v1/calendar/listSlots',
136
+ destPath: '/v1/calendar/listSlots',
137
+ },
138
+ ],
139
+ 'manage._base_domain_': [
140
+ {
141
+ srcPath: '/_api/calendar-server',
142
+ destPath: '',
143
+ },
144
+ {
145
+ srcPath: '/_api/bookings/v1/calendar/listSessions',
146
+ destPath: '/v1/calendar/listSessions',
147
+ },
148
+ {
149
+ srcPath: '/_api/bookings/v1/calendar/listSlots',
150
+ destPath: '/v1/calendar/listSlots',
151
+ },
152
+ ],
153
+ 'www.wixapis.com': [
154
+ {
155
+ srcPath: '/bookings/v1/calendar/listSlots',
156
+ destPath: '/v1/calendar/listSlots',
157
+ },
158
+ {
159
+ srcPath: '/bookings/v1/calendar/listSessions',
160
+ destPath: '/v1/calendar/listSessions',
161
+ },
162
+ ],
163
+ };
164
+ return metro_runtime_2.resolveUrl(Object.assign(opts, { domainToMappings }));
165
+ }
166
+ /**
167
+ * Retrieves a list of sessions, given the provided time range, filtering, and paging.
168
+ *
169
+ * Query Sessions runs with these defaults, which you can override:
170
+ * - All session types are returned.
171
+ * - `instance` is true. This means only single sessions and instances of recurring sessions are returned.
172
+ * - Session objects are returned with the fields specified in the `NO_PI` fieldset. This means they don't contain personal information.
173
+ * - `query.cursorPaging.limit` is `50`.
174
+ *
175
+ * Note the following limitations, which you can't override:
176
+ * - Sessions are always sorted by `start.timestamp` in `ASC` order.
177
+ * - The maximum time range you can query is 1 year.
178
+ *
179
+ * To query only for events, set `type` to `EVENT`. An event is a single or recurring session that appears in a calendar, for example an appointment or a class.
180
+ *
181
+ * To query for recurring session pattern definitions, set `instance` to `false`. In this case, you don't need to specify a time range.
182
+ *
183
+ * To return session objects including personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
184
+ *
185
+ * For details on fieldsets, see [Sessions: Supported Fieldsets](#fieldsets).
186
+ *
187
+ * For field support for filters, see [Sessions: Supported Filters](#filtering).
188
+ *
189
+ * To learn about working with _Query_ endpoints in general, see
190
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and
191
+ * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
192
+ */
193
+ function calendarServerQuerySessions(payload) {
194
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_querySessionsRequest, {});
195
+ const { fromJSON: fromRes } = ambassador_1.serializer(_querySessionsResponse, {
196
+ _address,
197
+ _addressLocation,
198
+ _calendarDateTime,
199
+ _location,
200
+ _locationsAddress,
201
+ _locationsAddressLocation,
202
+ _locationsLocation,
203
+ _session,
204
+ });
205
+ function __calendarServerQuerySessions({ host }) {
206
+ const serializedData = toReq(payload);
207
+ const metadata = {
208
+ method: 'POST',
209
+ url: resolveComWixBookingsCalendarApiV2SessionsServiceUrl({
210
+ protoPath: '/v2/calendar/sessions/query',
211
+ data: serializedData,
212
+ host,
213
+ }),
214
+ data: serializedData,
215
+ transformResponse: fromRes,
216
+ };
217
+ return metadata;
218
+ }
219
+ __calendarServerQuerySessions.fromReq = fromReq;
220
+ return __calendarServerQuerySessions;
221
+ }
222
+ exports.calendarServerQuerySessions = calendarServerQuerySessions;
223
+ /**
224
+ * Retrieves a session by ID.
225
+ *
226
+ *
227
+ * By default session object without any personal information is returned.
228
+ * This means without `participants`, `location`, `calendarConference`, and
229
+ * `externalCalendarOverrides`. You can retrieve full session object by passing
230
+ * `ALL_PI` in the `fieldsets` array. It isn't possible to retrieve sessions
231
+ * with personal information just for specific participants.
232
+ */
233
+ function getSession(payload) {
234
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_getSessionRequest, {});
235
+ const { fromJSON: fromRes } = ambassador_1.serializer(_getSessionResponse, {
236
+ _address,
237
+ _addressLocation,
238
+ _calendarDateTime,
239
+ _location,
240
+ _locationsAddress,
241
+ _locationsAddressLocation,
242
+ _locationsLocation,
243
+ _session,
244
+ });
245
+ function __getSession({ host }) {
246
+ const serializedData = toReq(payload);
247
+ const metadata = {
248
+ method: 'GET',
249
+ url: resolveWixBookingsCalendarV2CalendarUrl({
250
+ protoPath: '/v2/calendar/sessions/{id}',
251
+ data: serializedData,
252
+ host,
253
+ }),
254
+ params: metro_runtime_1.toURLSearchParams(serializedData),
255
+ transformResponse: fromRes,
256
+ };
257
+ return metadata;
258
+ }
259
+ __getSession.fromReq = fromReq;
260
+ return __getSession;
261
+ }
262
+ exports.getSession = getSession;
263
+ /**
264
+ * Retrieves a list of sessions.
265
+ *
266
+ *
267
+ * By default session objects without any personal information are returned.
268
+ * This means without `participants`, `location`, `calendarConference`, and
269
+ * `externalCalendarOverrides`. You can retrieve full session objects by passing
270
+ * `ALL_PI` in the `fieldsets` array. It isn't possible to retrieve sessions
271
+ * with personal information just for specific participants.
272
+ */
273
+ function listSessions(payload) {
274
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_listSessionsRequest, {});
275
+ const { fromJSON: fromRes } = ambassador_1.serializer(_listSessionsResponse, {
276
+ _address,
277
+ _addressLocation,
278
+ _calendarDateTime,
279
+ _location,
280
+ _locationsAddress,
281
+ _locationsAddressLocation,
282
+ _locationsLocation,
283
+ _session,
284
+ });
285
+ function __listSessions({ host }) {
286
+ const serializedData = toReq(payload);
287
+ const metadata = {
288
+ method: 'POST',
289
+ url: resolveWixBookingsCalendarV2CalendarUrl({
290
+ protoPath: '/v2/calendar/sessions/list',
291
+ data: serializedData,
292
+ host,
293
+ }),
294
+ data: serializedData,
295
+ transformResponse: fromRes,
296
+ };
297
+ return metadata;
298
+ }
299
+ __listSessions.fromReq = fromReq;
300
+ return __listSessions;
301
+ }
302
+ exports.listSessions = listSessions;
303
+ /**
304
+ * Retrieves a list of event session instances, given the provided paging and filtering.
305
+ *
306
+ *
307
+ * By default session objects without any personal information are returned.
308
+ * This means without `participants`, `location`, `calendarConference`, and
309
+ * `externalCalendarOverrides`. You can retrieve full session objects by passing
310
+ * `ALL_PI` in the `fieldsets` array. It isn't possible to retrieve sessions
311
+ * with personal information just for specific participants.
312
+ *
313
+ * > __Note:__ Sessions are sorted by `start.timestamp`, in ascending order.
314
+ * > Other sorting options aren't supported.
315
+ *
316
+ *
317
+ * For a detailed list of supported operations in the Bookings Calendar V2 API, see
318
+ * [filtering](https://dev.wix.com/api/rest/wix-bookings/calendar-v2/filters).
319
+ *
320
+ *
321
+ * To learn about working with _Query_ endpoints, see
322
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
323
+ * and [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging).
324
+ */
325
+ function queryEventSessionInstances(payload) {
326
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_queryEventSessionInstancesRequest, {});
327
+ const { fromJSON: fromRes } = ambassador_1.serializer(_queryEventSessionInstancesResponse, {
328
+ _address,
329
+ _addressLocation,
330
+ _calendarDateTime,
331
+ _location,
332
+ _locationsAddress,
333
+ _locationsAddressLocation,
334
+ _locationsLocation,
335
+ _session,
336
+ });
337
+ function __queryEventSessionInstances({ host }) {
338
+ const serializedData = toReq(payload);
339
+ const metadata = {
340
+ method: 'POST',
341
+ url: resolveWixBookingsCalendarV2CalendarUrl({
342
+ protoPath: '/v2/calendar/sessions:queryEventInstances',
343
+ data: serializedData,
344
+ host,
345
+ }),
346
+ data: serializedData,
347
+ transformResponse: fromRes,
348
+ };
349
+ return metadata;
350
+ }
351
+ __queryEventSessionInstances.fromReq = fromReq;
352
+ return __queryEventSessionInstances;
353
+ }
354
+ exports.queryEventSessionInstances = queryEventSessionInstances;
355
+ //# sourceMappingURL=bookings-calendar-v1-session.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookings-calendar-v1-session.http.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAchD,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,iBAAiB,GAAG,EAAE,SAAS,EAAE,2BAA2B,EAAE,CAAC;AACrE,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,mBAAmB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACpD,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,qBAAqB,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AACvD,MAAM,SAAS,GAAG;IAChB,aAAa,EAAE,UAAU;IACzB,gBAAgB,EAAE,oBAAoB;CACvC,CAAC;AACF,MAAM,iBAAiB,GAAG,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;AACnE,MAAM,yBAAyB,GAAG;IAChC,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,kBAAkB,GAAG,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC5D,MAAM,kCAAkC,GAAG;IACzC,QAAQ,EAAE,2BAA2B;IACrC,MAAM,EAAE,2BAA2B;CACpC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AC;IAED,cAAc,CAAC,OAAO,GAAG,OAAO,CAAC;IAEjC,OAAO,cAAc,CAAC;AACxB,CAAC;AArCD,oCAqCC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,0BAA0B,CACxC,OAA0C;IAE1C,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,uBAAU,CACrD,kCAAkC,EAClC,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,uBAAU,CACtC,mCAAmC,EACnC;QACE,QAAQ;QACR,gBAAgB;QAChB,iBAAiB;QACjB,SAAS;QACT,iBAAiB;QACjB,yBAAyB;QACzB,kBAAkB;QAClB,QAAQ;KACT,CACF,CAAC;IAEF,SAAS,4BAA4B,CAAC,EAAE,IAAI,EAAO;QACjD,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,uCAAuC,CAAC;gBAC3C,SAAS,EAAE,2CAA2C;gBACtD,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,4BAA4B,CAAC,OAAO,GAAG,OAAO,CAAC;IAE/C,OAAO,4BAA4B,CAAC;AACtC,CAAC;AAxCD,gEAwCC"}
@@ -0,0 +1,8 @@
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { GetSessionOptions, ListSessionsOptions, QueryEventSessionInstancesOptions, QuerySessionsOptions } from './bookings-calendar-v1-session.universal';
3
+ export declare function querySessions(httpClient: HttpClient): (options?: QuerySessionsOptions | undefined) => Promise<import("./bookings-calendar-v1-session.universal").QuerySessionsResponse>;
4
+ export declare function getSession(httpClient: HttpClient): (_id: string | null, options?: GetSessionOptions | undefined) => Promise<import("./bookings-calendar-v1-session.universal").Session>;
5
+ export declare function listSessions(httpClient: HttpClient): (ids: string[] | null, options?: ListSessionsOptions | undefined) => Promise<import("./bookings-calendar-v1-session.universal").ListSessionsResponse>;
6
+ export declare function queryEventSessionInstances(httpClient: HttpClient): (options?: QueryEventSessionInstancesOptions | undefined) => Promise<import("./bookings-calendar-v1-session.universal").QueryEventSessionInstancesResponse>;
7
+ export { Transparency, LocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, CalendarType, Status, SessionType, ConferenceType, CacheInfoStatus, } from './bookings-calendar-v1-session.universal';
8
+ export { Session, CalendarDateTime, LocalDateTime, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Participant, ExternalCalendarInfo, ExternalCalendarOverrides, CalendarConference, Version, CreateSessionRequest, CreateSessionResponse, UpdateSessionRequest, ParticipantNotification, UpdateSessionResponse, DeleteSessionRequest, DeleteSessionResponse, QuerySessionsRequest, QueryV2, QueryV2PagingMethodOneOf, CursorPaging, QuerySessionsResponse, CursorPagingMetadata, Cursors, GetSessionRequest, GetSessionResponse, ListSessionsRequest, ListSessionsResponse, QueryEventSessionInstancesRequest, CommonQueryV2, CommonQueryV2PagingMethodOneOf, CommonCursorPaging, QueryEventSessionInstancesResponse, PagingMetadataV2, CommonCursors, V2QuerySessionsRequest, V2QuerySessionsResponse, CacheRequest, CacheResponse, CacheInfo, UncacheRequest, UncacheResponse, ShortenCacheRequest, ShortenCacheResponse, GetCacheInfoRequest, GetCacheInfoResponse, FeedEvent, FeedEventTypeOneOf, SessionAddedOrUpdated, SessionRemoved, WindowExtended, WindowMoved, Empty, FeedReplayEvent, FeedReplayEventTypeOneOf, SessionAdded, ReplayCompleted, QuerySessionsOptions, GetSessionOptions, ListSessionsOptions, QueryEventSessionInstancesOptions, } from './bookings-calendar-v1-session.universal';
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CacheInfoStatus = exports.ConferenceType = exports.SessionType = exports.Status = exports.CalendarType = exports.ApprovalStatus = exports.DayOfWeek = exports.LocationsLocationType = exports.LocationStatus = exports.LocationType = exports.Transparency = exports.queryEventSessionInstances = exports.listSessions = exports.getSession = exports.querySessions = void 0;
4
+ const bookings_calendar_v1_session_universal_1 = require("./bookings-calendar-v1-session.universal");
5
+ function querySessions(httpClient) {
6
+ return (options) => bookings_calendar_v1_session_universal_1.querySessions(options,
7
+ // @ts-ignore
8
+ { httpClient });
9
+ }
10
+ exports.querySessions = querySessions;
11
+ function getSession(httpClient) {
12
+ return (_id, options) => bookings_calendar_v1_session_universal_1.getSession(_id, options,
13
+ // @ts-ignore
14
+ { httpClient });
15
+ }
16
+ exports.getSession = getSession;
17
+ function listSessions(httpClient) {
18
+ return (ids, options) => bookings_calendar_v1_session_universal_1.listSessions(ids, options,
19
+ // @ts-ignore
20
+ { httpClient });
21
+ }
22
+ exports.listSessions = listSessions;
23
+ function queryEventSessionInstances(httpClient) {
24
+ return (options) => bookings_calendar_v1_session_universal_1.queryEventSessionInstances(options,
25
+ // @ts-ignore
26
+ { httpClient });
27
+ }
28
+ exports.queryEventSessionInstances = queryEventSessionInstances;
29
+ var bookings_calendar_v1_session_universal_2 = require("./bookings-calendar-v1-session.universal");
30
+ Object.defineProperty(exports, "Transparency", { enumerable: true, get: function () { return bookings_calendar_v1_session_universal_2.Transparency; } });
31
+ Object.defineProperty(exports, "LocationType", { enumerable: true, get: function () { return bookings_calendar_v1_session_universal_2.LocationType; } });
32
+ Object.defineProperty(exports, "LocationStatus", { enumerable: true, get: function () { return bookings_calendar_v1_session_universal_2.LocationStatus; } });
33
+ Object.defineProperty(exports, "LocationsLocationType", { enumerable: true, get: function () { return bookings_calendar_v1_session_universal_2.LocationsLocationType; } });
34
+ Object.defineProperty(exports, "DayOfWeek", { enumerable: true, get: function () { return bookings_calendar_v1_session_universal_2.DayOfWeek; } });
35
+ Object.defineProperty(exports, "ApprovalStatus", { enumerable: true, get: function () { return bookings_calendar_v1_session_universal_2.ApprovalStatus; } });
36
+ Object.defineProperty(exports, "CalendarType", { enumerable: true, get: function () { return bookings_calendar_v1_session_universal_2.CalendarType; } });
37
+ Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return bookings_calendar_v1_session_universal_2.Status; } });
38
+ Object.defineProperty(exports, "SessionType", { enumerable: true, get: function () { return bookings_calendar_v1_session_universal_2.SessionType; } });
39
+ Object.defineProperty(exports, "ConferenceType", { enumerable: true, get: function () { return bookings_calendar_v1_session_universal_2.ConferenceType; } });
40
+ Object.defineProperty(exports, "CacheInfoStatus", { enumerable: true, get: function () { return bookings_calendar_v1_session_universal_2.CacheInfoStatus; } });
41
+ //# sourceMappingURL=bookings-calendar-v1-session.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookings-calendar-v1-session.public.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.public.ts"],"names":[],"mappings":";;;AACA,qGASkD;AAElD,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,OAA8B,EAAE,EAAE,CACxC,sDAAsB,CACpB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sCAOC;AAED,SAAgB,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,GAAkB,EAAE,OAA2B,EAAE,EAAE,CACzD,mDAAmB,CACjB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,gCAQC;AAED,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,GAAoB,EAAE,OAA6B,EAAE,EAAE,CAC7D,qDAAqB,CACnB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,oCAQC;AAED,SAAgB,0BAA0B,CAAC,UAAsB;IAC/D,OAAO,CAAC,OAA2C,EAAE,EAAE,CACrD,mEAAmC,CACjC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gEAOC;AAED,mGAYkD;AAXhD,sIAAA,YAAY,OAAA;AACZ,sIAAA,YAAY,OAAA;AACZ,wIAAA,cAAc,OAAA;AACd,+IAAA,qBAAqB,OAAA;AACrB,mIAAA,SAAS,OAAA;AACT,wIAAA,cAAc,OAAA;AACd,sIAAA,YAAY,OAAA;AACZ,gIAAA,MAAM,OAAA;AACN,qIAAA,WAAW,OAAA;AACX,wIAAA,cAAc,OAAA;AACd,yIAAA,eAAe,OAAA"}