@wix/auto_sdk_bookings_resources 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.http.js +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.public.d.ts +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.types.d.ts +235 -55
- package/build/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.universal.d.ts +252 -59
- package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
- package/build/es/src/bookings-resources-v2-resource-resources.http.d.ts +1 -1
- package/build/es/src/bookings-resources-v2-resource-resources.http.js +1 -1
- package/build/es/src/bookings-resources-v2-resource-resources.public.d.ts +1 -1
- package/build/es/src/bookings-resources-v2-resource-resources.types.d.ts +235 -55
- package/build/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
- package/build/es/src/bookings-resources-v2-resource-resources.universal.d.ts +252 -59
- package/build/es/src/bookings-resources-v2-resource-resources.universal.js +1 -1
- package/build/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.d.ts +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.d.ts +235 -55
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.d.ts +252 -59
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.http.d.ts +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.public.d.ts +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.types.d.ts +235 -55
- package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.d.ts +252 -59
- package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -44,7 +44,7 @@ export declare function updateResource(payload: object): RequestOptionsFactory<a
|
|
|
44
44
|
*
|
|
45
45
|
* Deleting a resource cancels its event schedule and all its working hour
|
|
46
46
|
* schedules that aren't shared with another resource. Learn more about
|
|
47
|
-
*
|
|
47
|
+
* _how Bookings uses the Calendar APIs_
|
|
48
48
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration)).
|
|
49
49
|
*/
|
|
50
50
|
export declare function deleteResource(payload: object): RequestOptionsFactory<any>;
|
|
@@ -235,7 +235,7 @@ exports.updateResource = updateResource;
|
|
|
235
235
|
*
|
|
236
236
|
* Deleting a resource cancels its event schedule and all its working hour
|
|
237
237
|
* schedules that aren't shared with another resource. Learn more about
|
|
238
|
-
*
|
|
238
|
+
* _how Bookings uses the Calendar APIs_
|
|
239
239
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration)).
|
|
240
240
|
*/
|
|
241
241
|
function deleteResource(payload) {
|
|
@@ -71,7 +71,7 @@ interface DeleteResourceSignature {
|
|
|
71
71
|
*
|
|
72
72
|
* Deleting a resource cancels its event schedule and all its working hour
|
|
73
73
|
* schedules that aren't shared with another resource. Learn more about
|
|
74
|
-
*
|
|
74
|
+
* _how Bookings uses the Calendar APIs_
|
|
75
75
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration)).
|
|
76
76
|
* @param - ID of the resource to delete.
|
|
77
77
|
*/
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
export interface Resource extends ResourceCompositionDetailsOneOf {
|
|
9
9
|
/**
|
|
10
10
|
* Resource ID.
|
|
11
|
+
* @format GUID
|
|
11
12
|
* @readonly
|
|
12
13
|
*/
|
|
13
14
|
id?: string | null;
|
|
@@ -28,7 +29,11 @@ export interface Resource extends ResourceCompositionDetailsOneOf {
|
|
|
28
29
|
* @readonly
|
|
29
30
|
*/
|
|
30
31
|
updatedDate?: Date | null;
|
|
31
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Name of the resource.
|
|
34
|
+
* @maxLength 40
|
|
35
|
+
* @minLength 1
|
|
36
|
+
*/
|
|
32
37
|
name?: string | null;
|
|
33
38
|
/**
|
|
34
39
|
* ID of the *resource type*
|
|
@@ -36,6 +41,8 @@ export interface Resource extends ResourceCompositionDetailsOneOf {
|
|
|
36
41
|
*
|
|
37
42
|
* Once a type has been set it can't be modified. You can create a resource
|
|
38
43
|
* without specifying a type. However, customers can't book such resources.
|
|
44
|
+
* @format GUID
|
|
45
|
+
* @immutable
|
|
39
46
|
*/
|
|
40
47
|
typeId?: string | null;
|
|
41
48
|
/**
|
|
@@ -68,6 +75,7 @@ export interface WorkingHoursSchedule {
|
|
|
68
75
|
/**
|
|
69
76
|
* ID of the working hour *schedule*
|
|
70
77
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)).
|
|
78
|
+
* @format GUID
|
|
71
79
|
*/
|
|
72
80
|
scheduleId?: string | null;
|
|
73
81
|
/**
|
|
@@ -104,12 +112,18 @@ export interface SingleResource {
|
|
|
104
112
|
eventsSchedule?: Schedule;
|
|
105
113
|
}
|
|
106
114
|
export interface V2WorkingHoursSchedules {
|
|
107
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* Schedules specifying the working hours of the resource. Currently, only a single schedule is supported.
|
|
117
|
+
* @maxSize 1
|
|
118
|
+
*/
|
|
108
119
|
values?: Schedule[];
|
|
109
120
|
}
|
|
110
121
|
/** Deprecated and subject to removal */
|
|
111
122
|
export interface Schedule {
|
|
112
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* Schedule ID. See [Schedules API](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) for more information.
|
|
125
|
+
* @format GUID
|
|
126
|
+
*/
|
|
113
127
|
scheduleId?: string | null;
|
|
114
128
|
/**
|
|
115
129
|
* Whether this schedule is used by multiple resources or unique for this resource.
|
|
@@ -149,6 +163,7 @@ export interface SpecificLocation {
|
|
|
149
163
|
* Not returned, if the resource is available in either all business locations
|
|
150
164
|
* or in no business location.
|
|
151
165
|
* You can specify up to 5 business locations.
|
|
166
|
+
* @maxSize 5
|
|
152
167
|
*/
|
|
153
168
|
businessLocations?: BusinessLocation[];
|
|
154
169
|
}
|
|
@@ -156,17 +171,22 @@ export interface BusinessLocation {
|
|
|
156
171
|
/**
|
|
157
172
|
* ID of the business *location*
|
|
158
173
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)).
|
|
174
|
+
* @format GUID
|
|
159
175
|
*/
|
|
160
176
|
locationId?: string | null;
|
|
161
177
|
}
|
|
162
178
|
export interface WorkingHoursSchedules {
|
|
163
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Schedules specifying the working hours of the resource. Currently, only a single schedule is supported.
|
|
181
|
+
* @maxSize 1
|
|
182
|
+
*/
|
|
164
183
|
values?: WorkingHoursSchedule[];
|
|
165
184
|
}
|
|
166
185
|
export interface EventsSchedule {
|
|
167
186
|
/**
|
|
168
187
|
* ID of the event *schedule*
|
|
169
188
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)).
|
|
189
|
+
* @format GUID
|
|
170
190
|
*/
|
|
171
191
|
scheduleId?: string | null;
|
|
172
192
|
}
|
|
@@ -194,7 +214,10 @@ export interface CreateResourceResponse {
|
|
|
194
214
|
resource?: Resource;
|
|
195
215
|
}
|
|
196
216
|
export interface BulkCreateResourcesRequest {
|
|
197
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* Resources to create.
|
|
219
|
+
* @maxSize 50
|
|
220
|
+
*/
|
|
198
221
|
resources: Resource[];
|
|
199
222
|
/**
|
|
200
223
|
* Whether to include the created resources in the response.
|
|
@@ -216,7 +239,10 @@ export interface BulkResourceResult {
|
|
|
216
239
|
item?: Resource;
|
|
217
240
|
}
|
|
218
241
|
export interface ItemMetadata {
|
|
219
|
-
/**
|
|
242
|
+
/**
|
|
243
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
244
|
+
* @format GUID
|
|
245
|
+
*/
|
|
220
246
|
id?: string | null;
|
|
221
247
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
222
248
|
originalIndex?: number;
|
|
@@ -242,7 +268,10 @@ export interface BulkActionMetadata {
|
|
|
242
268
|
undetailedFailures?: number;
|
|
243
269
|
}
|
|
244
270
|
export interface GetResourceRequest {
|
|
245
|
-
/**
|
|
271
|
+
/**
|
|
272
|
+
* ID of the resource to retrieve.
|
|
273
|
+
* @format GUID
|
|
274
|
+
*/
|
|
246
275
|
resourceId: string;
|
|
247
276
|
}
|
|
248
277
|
export interface GetResourceResponse {
|
|
@@ -250,7 +279,10 @@ export interface GetResourceResponse {
|
|
|
250
279
|
resource?: Resource;
|
|
251
280
|
}
|
|
252
281
|
export interface GetDeletedResourceRequest {
|
|
253
|
-
/**
|
|
282
|
+
/**
|
|
283
|
+
* ID of the deleted resource to retrieve from the trash bin.
|
|
284
|
+
* @format GUID
|
|
285
|
+
*/
|
|
254
286
|
resourceId?: string;
|
|
255
287
|
}
|
|
256
288
|
export interface GetDeletedResourceResponse {
|
|
@@ -258,19 +290,27 @@ export interface GetDeletedResourceResponse {
|
|
|
258
290
|
resource?: Resource;
|
|
259
291
|
}
|
|
260
292
|
export interface ListDeletedResourcesRequest {
|
|
261
|
-
/**
|
|
293
|
+
/**
|
|
294
|
+
* IDs of the resources to retrieve.
|
|
295
|
+
* @format GUID
|
|
296
|
+
* @maxSize 100
|
|
297
|
+
*/
|
|
262
298
|
resourceIds?: string[];
|
|
263
299
|
/** Paging details, allowing you specify a limit and a cursor. */
|
|
264
300
|
paging?: CursorPaging;
|
|
265
301
|
}
|
|
266
302
|
export interface CursorPaging {
|
|
267
|
-
/**
|
|
303
|
+
/**
|
|
304
|
+
* Maximum number of items to return in the results.
|
|
305
|
+
* @max 100
|
|
306
|
+
*/
|
|
268
307
|
limit?: number | null;
|
|
269
308
|
/**
|
|
270
309
|
* Pointer to the next or previous page in the list of results.
|
|
271
310
|
*
|
|
272
311
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
273
312
|
* Not relevant for the first request.
|
|
313
|
+
* @maxLength 16000
|
|
274
314
|
*/
|
|
275
315
|
cursor?: string | null;
|
|
276
316
|
}
|
|
@@ -294,19 +334,31 @@ export interface CursorPagingMetadata {
|
|
|
294
334
|
hasNext?: boolean | null;
|
|
295
335
|
}
|
|
296
336
|
export interface Cursors {
|
|
297
|
-
/**
|
|
337
|
+
/**
|
|
338
|
+
* Cursor string pointing to the next page in the list of results.
|
|
339
|
+
* @maxLength 16000
|
|
340
|
+
*/
|
|
298
341
|
next?: string | null;
|
|
299
|
-
/**
|
|
342
|
+
/**
|
|
343
|
+
* Cursor pointing to the previous page in the list of results.
|
|
344
|
+
* @maxLength 16000
|
|
345
|
+
*/
|
|
300
346
|
prev?: string | null;
|
|
301
347
|
}
|
|
302
348
|
export interface RemoveResourceFromTrashBinRequest {
|
|
303
|
-
/**
|
|
349
|
+
/**
|
|
350
|
+
* ID of the resource to permanently delete from the trash bin.
|
|
351
|
+
* @format GUID
|
|
352
|
+
*/
|
|
304
353
|
resourceId?: string;
|
|
305
354
|
}
|
|
306
355
|
export interface RemoveResourceFromTrashBinResponse {
|
|
307
356
|
}
|
|
308
357
|
export interface RestoreResourceFromTrashBinRequest {
|
|
309
|
-
/**
|
|
358
|
+
/**
|
|
359
|
+
* ID of the resource to restore from the trash bin.
|
|
360
|
+
* @format GUID
|
|
361
|
+
*/
|
|
310
362
|
resourceId?: string;
|
|
311
363
|
}
|
|
312
364
|
export interface RestoreResourceFromTrashBinResponse {
|
|
@@ -322,13 +374,20 @@ export interface UpdateResourceResponse {
|
|
|
322
374
|
resource?: Resource;
|
|
323
375
|
}
|
|
324
376
|
export interface DeleteResourceRequest {
|
|
325
|
-
/**
|
|
377
|
+
/**
|
|
378
|
+
* ID of the resource to delete.
|
|
379
|
+
* @format GUID
|
|
380
|
+
*/
|
|
326
381
|
resourceId: string;
|
|
327
382
|
}
|
|
328
383
|
export interface DeleteResourceResponse {
|
|
329
384
|
}
|
|
330
385
|
export interface BulkDeleteResourcesRequest {
|
|
331
|
-
/**
|
|
386
|
+
/**
|
|
387
|
+
* IDs of the resources to delete.
|
|
388
|
+
* @format GUID
|
|
389
|
+
* @maxSize 50
|
|
390
|
+
*/
|
|
332
391
|
ids: string[];
|
|
333
392
|
}
|
|
334
393
|
export interface BulkDeleteResourcesResponse {
|
|
@@ -353,9 +412,15 @@ export interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
|
353
412
|
cursorPaging?: CursorPaging;
|
|
354
413
|
/** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
|
|
355
414
|
filter?: Record<string, any> | null;
|
|
356
|
-
/**
|
|
415
|
+
/**
|
|
416
|
+
* Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
|
|
417
|
+
* @maxSize 10
|
|
418
|
+
*/
|
|
357
419
|
sort?: Sorting[];
|
|
358
|
-
/**
|
|
420
|
+
/**
|
|
421
|
+
* Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
|
|
422
|
+
* @maxSize 10
|
|
423
|
+
*/
|
|
359
424
|
aggregations?: Aggregation[];
|
|
360
425
|
/** Free text to match in searchable fields */
|
|
361
426
|
search?: SearchDetails;
|
|
@@ -367,6 +432,7 @@ export interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
|
367
432
|
* Affects all filters and aggregations returned values.
|
|
368
433
|
* You may override this behavior in a specific filter by providing
|
|
369
434
|
* timestamps including time zone. e.g. `"2023-12-20T10:52:34.795Z"`
|
|
435
|
+
* @maxLength 50
|
|
370
436
|
*/
|
|
371
437
|
timeZone?: string | null;
|
|
372
438
|
}
|
|
@@ -379,7 +445,10 @@ export interface CursorSearchPagingMethodOneOf {
|
|
|
379
445
|
cursorPaging?: CursorPaging;
|
|
380
446
|
}
|
|
381
447
|
export interface Sorting {
|
|
382
|
-
/**
|
|
448
|
+
/**
|
|
449
|
+
* Name of the field to sort by.
|
|
450
|
+
* @maxLength 512
|
|
451
|
+
*/
|
|
383
452
|
fieldName?: string;
|
|
384
453
|
/** Sort order. */
|
|
385
454
|
order?: SortOrder;
|
|
@@ -399,11 +468,17 @@ export interface Aggregation extends AggregationKindOneOf {
|
|
|
399
468
|
dateHistogram?: DateHistogramAggregation;
|
|
400
469
|
/** Nested aggregation */
|
|
401
470
|
nested?: NestedAggregation;
|
|
402
|
-
/**
|
|
471
|
+
/**
|
|
472
|
+
* User-defined name of aggregation, should be unique, will appear in aggregation results
|
|
473
|
+
* @maxLength 100
|
|
474
|
+
*/
|
|
403
475
|
name?: string | null;
|
|
404
476
|
/** Type of aggregation, client must provide matching aggregation field below */
|
|
405
477
|
type?: AggregationType;
|
|
406
|
-
/**
|
|
478
|
+
/**
|
|
479
|
+
* Field to aggregate by, use dot notation to specify json path
|
|
480
|
+
* @maxLength 200
|
|
481
|
+
*/
|
|
407
482
|
fieldPath?: string;
|
|
408
483
|
/**
|
|
409
484
|
* deprecated, use `nested` instead
|
|
@@ -451,7 +526,10 @@ export declare enum MissingValues {
|
|
|
451
526
|
INCLUDE = "INCLUDE"
|
|
452
527
|
}
|
|
453
528
|
export interface IncludeMissingValuesOptions {
|
|
454
|
-
/**
|
|
529
|
+
/**
|
|
530
|
+
* Can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
|
|
531
|
+
* @maxLength 20
|
|
532
|
+
*/
|
|
455
533
|
addToBucket?: string;
|
|
456
534
|
}
|
|
457
535
|
export declare enum ScalarType {
|
|
@@ -492,7 +570,10 @@ export declare enum NestedAggregationType {
|
|
|
492
570
|
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
493
571
|
}
|
|
494
572
|
export interface RangeAggregation {
|
|
495
|
-
/**
|
|
573
|
+
/**
|
|
574
|
+
* List of range buckets, where during aggregation each entity will be placed in the first bucket where its value falls into based on provided range bounds
|
|
575
|
+
* @maxSize 50
|
|
576
|
+
*/
|
|
496
577
|
buckets?: RangeBucket[];
|
|
497
578
|
}
|
|
498
579
|
export interface ScalarAggregation {
|
|
@@ -529,11 +610,17 @@ export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
|
529
610
|
scalar?: ScalarAggregation;
|
|
530
611
|
/** Date histogram aggregation */
|
|
531
612
|
dateHistogram?: DateHistogramAggregation;
|
|
532
|
-
/**
|
|
613
|
+
/**
|
|
614
|
+
* User-defined name of aggregation, should be unique, will appear in aggregation results
|
|
615
|
+
* @maxLength 100
|
|
616
|
+
*/
|
|
533
617
|
name?: string | null;
|
|
534
618
|
/** Type of aggregation, client must provide matching aggregation field below */
|
|
535
619
|
type?: NestedAggregationType;
|
|
536
|
-
/**
|
|
620
|
+
/**
|
|
621
|
+
* Field to aggregate by, use dont notation to specify json path
|
|
622
|
+
* @maxLength 200
|
|
623
|
+
*/
|
|
537
624
|
fieldPath?: string;
|
|
538
625
|
}
|
|
539
626
|
/** @oneof */
|
|
@@ -562,15 +649,25 @@ export declare enum AggregationType {
|
|
|
562
649
|
}
|
|
563
650
|
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
|
|
564
651
|
export interface NestedAggregation {
|
|
565
|
-
/**
|
|
652
|
+
/**
|
|
653
|
+
* Flattened list of aggregations, where each next aggregation is nested within previous one
|
|
654
|
+
* @minSize 2
|
|
655
|
+
* @maxSize 3
|
|
656
|
+
*/
|
|
566
657
|
nestedAggregations?: NestedAggregationItem[];
|
|
567
658
|
}
|
|
568
659
|
export interface GroupByAggregation extends GroupByAggregationKindOneOf {
|
|
569
660
|
/** Value aggregation configuration */
|
|
570
661
|
value?: ValueAggregation;
|
|
571
|
-
/**
|
|
662
|
+
/**
|
|
663
|
+
* User-defined name of aggregation, should be unique, will appear in aggregation results
|
|
664
|
+
* @maxLength 100
|
|
665
|
+
*/
|
|
572
666
|
name?: string | null;
|
|
573
|
-
/**
|
|
667
|
+
/**
|
|
668
|
+
* Field to aggregate by
|
|
669
|
+
* @maxLength 200
|
|
670
|
+
*/
|
|
574
671
|
fieldPath?: string;
|
|
575
672
|
}
|
|
576
673
|
/** @oneof */
|
|
@@ -581,9 +678,16 @@ export interface GroupByAggregationKindOneOf {
|
|
|
581
678
|
export interface SearchDetails {
|
|
582
679
|
/** Defines how separate search terms in `expression` are combined */
|
|
583
680
|
mode?: Mode;
|
|
584
|
-
/**
|
|
681
|
+
/**
|
|
682
|
+
* Search term or expression
|
|
683
|
+
* @maxLength 100
|
|
684
|
+
*/
|
|
585
685
|
expression?: string | null;
|
|
586
|
-
/**
|
|
686
|
+
/**
|
|
687
|
+
* Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path
|
|
688
|
+
* @maxLength 200
|
|
689
|
+
* @maxSize 20
|
|
690
|
+
*/
|
|
587
691
|
fields?: string[];
|
|
588
692
|
/** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
|
|
589
693
|
fuzzy?: boolean;
|
|
@@ -603,11 +707,17 @@ export interface SearchResourcesResponse {
|
|
|
603
707
|
aggregationData?: AggregationData;
|
|
604
708
|
}
|
|
605
709
|
export interface AggregationData {
|
|
606
|
-
/**
|
|
710
|
+
/**
|
|
711
|
+
* key = aggregation name (as derived from search request)
|
|
712
|
+
* @maxSize 10000
|
|
713
|
+
*/
|
|
607
714
|
results?: AggregationResults[];
|
|
608
715
|
}
|
|
609
716
|
export interface ValueAggregationResult {
|
|
610
|
-
/**
|
|
717
|
+
/**
|
|
718
|
+
* Value of the field
|
|
719
|
+
* @maxLength 100
|
|
720
|
+
*/
|
|
611
721
|
value?: string;
|
|
612
722
|
/** Count of entities with this value */
|
|
613
723
|
count?: number;
|
|
@@ -627,11 +737,17 @@ export interface NestedAggregationResults extends NestedAggregationResultsResult
|
|
|
627
737
|
ranges?: RangeResults;
|
|
628
738
|
/** Scalar aggregation results */
|
|
629
739
|
scalar?: AggregationResultsScalarResult;
|
|
630
|
-
/**
|
|
740
|
+
/**
|
|
741
|
+
* User-defined name of aggregation, matches the one provided in request
|
|
742
|
+
* @maxLength 100
|
|
743
|
+
*/
|
|
631
744
|
name?: string;
|
|
632
745
|
/** Type of aggregation that matches result */
|
|
633
746
|
type?: AggregationType;
|
|
634
|
-
/**
|
|
747
|
+
/**
|
|
748
|
+
* Field to aggregate by, matches the one provided in request
|
|
749
|
+
* @maxLength 200
|
|
750
|
+
*/
|
|
635
751
|
fieldPath?: string;
|
|
636
752
|
}
|
|
637
753
|
/** @oneof */
|
|
@@ -644,11 +760,17 @@ export interface NestedAggregationResultsResultOneOf {
|
|
|
644
760
|
scalar?: AggregationResultsScalarResult;
|
|
645
761
|
}
|
|
646
762
|
export interface ValueResults {
|
|
647
|
-
/**
|
|
763
|
+
/**
|
|
764
|
+
* List of value aggregations
|
|
765
|
+
* @maxSize 250
|
|
766
|
+
*/
|
|
648
767
|
results?: ValueAggregationResult[];
|
|
649
768
|
}
|
|
650
769
|
export interface RangeResults {
|
|
651
|
-
/**
|
|
770
|
+
/**
|
|
771
|
+
* List of ranges returned in same order as requested
|
|
772
|
+
* @maxSize 50
|
|
773
|
+
*/
|
|
652
774
|
results?: RangeAggregationResult[];
|
|
653
775
|
}
|
|
654
776
|
export interface AggregationResultsScalarResult {
|
|
@@ -658,13 +780,19 @@ export interface AggregationResultsScalarResult {
|
|
|
658
780
|
value?: number;
|
|
659
781
|
}
|
|
660
782
|
export interface NestedValueAggregationResult {
|
|
661
|
-
/**
|
|
783
|
+
/**
|
|
784
|
+
* Value of the field
|
|
785
|
+
* @maxLength 1000
|
|
786
|
+
*/
|
|
662
787
|
value?: string;
|
|
663
788
|
/** Nested aggregations */
|
|
664
789
|
nestedResults?: NestedAggregationResults;
|
|
665
790
|
}
|
|
666
791
|
export interface ValueResult {
|
|
667
|
-
/**
|
|
792
|
+
/**
|
|
793
|
+
* Value of the field
|
|
794
|
+
* @maxLength 1000
|
|
795
|
+
*/
|
|
668
796
|
value?: string;
|
|
669
797
|
/** Count of entities with this value */
|
|
670
798
|
count?: number | null;
|
|
@@ -707,17 +835,26 @@ export interface Results {
|
|
|
707
835
|
results?: Record<string, NestedResultValue>;
|
|
708
836
|
}
|
|
709
837
|
export interface DateHistogramResult {
|
|
710
|
-
/**
|
|
838
|
+
/**
|
|
839
|
+
* Date in ISO 8601 format
|
|
840
|
+
* @maxLength 100
|
|
841
|
+
*/
|
|
711
842
|
value?: string;
|
|
712
843
|
/** Count of documents in the bucket */
|
|
713
844
|
count?: number;
|
|
714
845
|
}
|
|
715
846
|
export interface GroupByValueResults {
|
|
716
|
-
/**
|
|
847
|
+
/**
|
|
848
|
+
* List of value aggregations
|
|
849
|
+
* @maxSize 1000
|
|
850
|
+
*/
|
|
717
851
|
results?: NestedValueAggregationResult[];
|
|
718
852
|
}
|
|
719
853
|
export interface DateHistogramResults {
|
|
720
|
-
/**
|
|
854
|
+
/**
|
|
855
|
+
* List of date histogram aggregations
|
|
856
|
+
* @maxSize 200
|
|
857
|
+
*/
|
|
721
858
|
results?: DateHistogramResult[];
|
|
722
859
|
}
|
|
723
860
|
/**
|
|
@@ -725,7 +862,10 @@ export interface DateHistogramResults {
|
|
|
725
862
|
* aggregations in resulting array are keyed by requested aggregation `name`.
|
|
726
863
|
*/
|
|
727
864
|
export interface NestedResults {
|
|
728
|
-
/**
|
|
865
|
+
/**
|
|
866
|
+
* List of nested aggregations
|
|
867
|
+
* @maxSize 1000
|
|
868
|
+
*/
|
|
729
869
|
results?: Results[];
|
|
730
870
|
}
|
|
731
871
|
export interface AggregationResults extends AggregationResultsResultOneOf {
|
|
@@ -741,11 +881,17 @@ export interface AggregationResults extends AggregationResultsResultOneOf {
|
|
|
741
881
|
dateHistogram?: DateHistogramResults;
|
|
742
882
|
/** Nested aggregation results */
|
|
743
883
|
nested?: NestedResults;
|
|
744
|
-
/**
|
|
884
|
+
/**
|
|
885
|
+
* User-defined name of aggregation as derived from search request
|
|
886
|
+
* @maxLength 100
|
|
887
|
+
*/
|
|
745
888
|
name?: string;
|
|
746
889
|
/** Type of aggregation that must match provided kind as derived from search request */
|
|
747
890
|
type?: AggregationType;
|
|
748
|
-
/**
|
|
891
|
+
/**
|
|
892
|
+
* Field to aggregate by as derived from search request
|
|
893
|
+
* @maxLength 200
|
|
894
|
+
*/
|
|
749
895
|
fieldPath?: string;
|
|
750
896
|
}
|
|
751
897
|
/** @oneof */
|
|
@@ -786,6 +932,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
786
932
|
/**
|
|
787
933
|
* Sort object in the following format:
|
|
788
934
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
935
|
+
* @maxSize 5
|
|
789
936
|
*/
|
|
790
937
|
sort?: Sorting[];
|
|
791
938
|
}
|
|
@@ -827,7 +974,10 @@ export interface ImportResourceResponse {
|
|
|
827
974
|
resource?: Resource;
|
|
828
975
|
}
|
|
829
976
|
export interface FixResourceSchedulesRequest {
|
|
830
|
-
/**
|
|
977
|
+
/**
|
|
978
|
+
* ID of the resource to fix schedules for.
|
|
979
|
+
* @format GUID
|
|
980
|
+
*/
|
|
831
981
|
resourceId?: string;
|
|
832
982
|
/** Working hour schedule that must be set for this resource. */
|
|
833
983
|
workingHoursSchedule?: Schedule;
|
|
@@ -915,9 +1065,15 @@ export interface ActionEvent {
|
|
|
915
1065
|
export interface Empty {
|
|
916
1066
|
}
|
|
917
1067
|
export interface MessageEnvelope {
|
|
918
|
-
/**
|
|
1068
|
+
/**
|
|
1069
|
+
* App instance ID.
|
|
1070
|
+
* @format GUID
|
|
1071
|
+
*/
|
|
919
1072
|
instanceId?: string | null;
|
|
920
|
-
/**
|
|
1073
|
+
/**
|
|
1074
|
+
* Event type.
|
|
1075
|
+
* @maxLength 150
|
|
1076
|
+
*/
|
|
921
1077
|
eventType?: string;
|
|
922
1078
|
/** The identification type and identity data. */
|
|
923
1079
|
identity?: IdentificationData;
|
|
@@ -925,26 +1081,50 @@ export interface MessageEnvelope {
|
|
|
925
1081
|
data?: string;
|
|
926
1082
|
}
|
|
927
1083
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
928
|
-
/**
|
|
1084
|
+
/**
|
|
1085
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1086
|
+
* @format GUID
|
|
1087
|
+
*/
|
|
929
1088
|
anonymousVisitorId?: string;
|
|
930
|
-
/**
|
|
1089
|
+
/**
|
|
1090
|
+
* ID of a site visitor that has logged in to the site.
|
|
1091
|
+
* @format GUID
|
|
1092
|
+
*/
|
|
931
1093
|
memberId?: string;
|
|
932
|
-
/**
|
|
1094
|
+
/**
|
|
1095
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1096
|
+
* @format GUID
|
|
1097
|
+
*/
|
|
933
1098
|
wixUserId?: string;
|
|
934
|
-
/**
|
|
1099
|
+
/**
|
|
1100
|
+
* ID of an app.
|
|
1101
|
+
* @format GUID
|
|
1102
|
+
*/
|
|
935
1103
|
appId?: string;
|
|
936
1104
|
/** @readonly */
|
|
937
1105
|
identityType?: WebhookIdentityType;
|
|
938
1106
|
}
|
|
939
1107
|
/** @oneof */
|
|
940
1108
|
export interface IdentificationDataIdOneOf {
|
|
941
|
-
/**
|
|
1109
|
+
/**
|
|
1110
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1111
|
+
* @format GUID
|
|
1112
|
+
*/
|
|
942
1113
|
anonymousVisitorId?: string;
|
|
943
|
-
/**
|
|
1114
|
+
/**
|
|
1115
|
+
* ID of a site visitor that has logged in to the site.
|
|
1116
|
+
* @format GUID
|
|
1117
|
+
*/
|
|
944
1118
|
memberId?: string;
|
|
945
|
-
/**
|
|
1119
|
+
/**
|
|
1120
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1121
|
+
* @format GUID
|
|
1122
|
+
*/
|
|
946
1123
|
wixUserId?: string;
|
|
947
|
-
/**
|
|
1124
|
+
/**
|
|
1125
|
+
* ID of an app.
|
|
1126
|
+
* @format GUID
|
|
1127
|
+
*/
|
|
948
1128
|
appId?: string;
|
|
949
1129
|
}
|
|
950
1130
|
export declare enum WebhookIdentityType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-resources-v2-resource-resources.types.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"bookings-resources-v2-resource-resources.types.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.types.ts"],"names":[],"mappings":";;;AA0MA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6CAA6C;IAC7C,uCAAqB,CAAA;AACvB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAmSD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAuDD,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,uCAAuC;IACvC,2BAAe,CAAA;IACf,uDAAuD;IACvD,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,sCAAsC;IACtC,8BAAa,CAAA;IACb,qCAAqC;IACrC,4BAAW,CAAA;AACb,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,qEAAqE;IACrE,oCAAmB,CAAA;IACnB,mEAAmE;IACnE,oCAAmB,CAAA;AACrB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAUD,IAAY,UAQX;AARD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,+BAA+B;IAC/B,+CAAiC,CAAA;IACjC,oBAAoB;IACpB,yBAAW,CAAA;IACX,oBAAoB;IACpB,yBAAW,CAAA;AACb,CAAC,EARW,UAAU,0BAAV,UAAU,QAQrB;AAqBD,IAAY,qBAUX;AAVD,WAAY,qBAAqB;IAC/B,8EAAqD,CAAA;IACrD,uFAAuF;IACvF,wCAAe,CAAA;IACf,uFAAuF;IACvF,wCAAe,CAAA;IACf,kEAAkE;IAClE,0CAAiB,CAAA;IACjB,iHAAiH;IACjH,0DAAiC,CAAA;AACnC,CAAC,EAVW,qBAAqB,qCAArB,qBAAqB,QAUhC;AAoBD,IAAY,QAgBX;AAhBD,WAAY,QAAQ;IAClB,iDAAqC,CAAA;IACrC,sBAAsB;IACtB,yBAAa,CAAA;IACb,uBAAuB;IACvB,2BAAe,CAAA;IACf,sBAAsB;IACtB,yBAAa,CAAA;IACb,qBAAqB;IACrB,uBAAW,CAAA;IACX,sBAAsB;IACtB,yBAAa,CAAA;IACb,sBAAsB;IACtB,6BAAiB,CAAA;IACjB,sBAAsB;IACtB,6BAAiB,CAAA;AACnB,CAAC,EAhBW,QAAQ,wBAAR,QAAQ,QAgBnB;AAqCD,IAAY,eAYX;AAZD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,uFAAuF;IACvF,kCAAe,CAAA;IACf,uFAAuF;IACvF,kCAAe,CAAA;IACf,kEAAkE;IAClE,oCAAiB,CAAA;IACjB,iHAAiH;IACjH,oDAAiC,CAAA;IACjC,yFAAyF;IACzF,oCAAiB,CAAA;AACnB,CAAC,EAZW,eAAe,+BAAf,eAAe,QAY1B;AAmDD,IAAY,IAKX;AALD,WAAY,IAAI;IACd,8CAA8C;IAC9C,iBAAS,CAAA;IACT,uCAAuC;IACvC,mBAAW,CAAA;AACb,CAAC,EALW,IAAI,oBAAJ,IAAI,QAKf;AA0dD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|