@wix/auto_sdk_bookings_resources 1.0.53 → 1.0.54

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.
@@ -89,6 +89,53 @@ interface WorkingHoursSchedule {
89
89
  */
90
90
  shared?: boolean | null;
91
91
  }
92
+ interface SingleResource {
93
+ /**
94
+ * Schedule details that specify the working hours and locations of this resource.
95
+ *
96
+ * When this field is missing or empty, the resource is assumed to be available
97
+ * around the clock (24/7) at the locations specified in `locationOptions`. When
98
+ * both `workingHoursSchedules` and `locationOptions` are set,
99
+ * `workingHoursSchedules` takes precedence.
100
+ */
101
+ workingHoursSchedules?: V2WorkingHoursSchedules;
102
+ /**
103
+ * Information about the location where the resource is available.
104
+ *
105
+ * If you don't specify `locationOptions`, Wix Bookings automatically sets
106
+ * `{"availableInAllLocations": true}`.
107
+ */
108
+ locationOptions?: LocationOptions;
109
+ /**
110
+ * Schedule containing the *events*
111
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction))
112
+ * for which the resource has been booked.
113
+ * @readonly
114
+ */
115
+ eventsSchedule?: Schedule;
116
+ }
117
+ interface V2WorkingHoursSchedules {
118
+ /**
119
+ * Schedules specifying the working hours of the resource. Currently, only a single schedule is supported.
120
+ * @maxSize 1
121
+ */
122
+ values?: Schedule[];
123
+ }
124
+ /** Deprecated and subject to removal */
125
+ interface Schedule {
126
+ /**
127
+ * Schedule ID. See [Schedules API](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) for more information.
128
+ * @format GUID
129
+ */
130
+ scheduleId?: string | null;
131
+ /**
132
+ * Whether this schedule is used by multiple resources or unique for this resource.
133
+ *
134
+ * `true` if it is a shared schedule (for example from a business or location), `false` this is a custom schedule specific to the resource.
135
+ * Default: `false`.
136
+ */
137
+ shared?: boolean | null;
138
+ }
92
139
  interface LocationOptions {
93
140
  /**
94
141
  * Whether the resource is available in all *business locations*
@@ -146,6 +193,12 @@ interface EventsSchedule {
146
193
  */
147
194
  scheduleId?: string | null;
148
195
  }
196
+ declare enum ManagementType {
197
+ /** The resource is managed by a Wix user. */
198
+ WIX_USER = "WIX_USER"
199
+ }
200
+ /** @enumType */
201
+ type ManagementTypeWithLiterals = ManagementType | 'WIX_USER';
149
202
  interface ExtendedFields {
150
203
  /**
151
204
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
@@ -230,6 +283,27 @@ interface GetResourceResponse {
230
283
  /** Retrieved resource. */
231
284
  resource?: Resource;
232
285
  }
286
+ interface GetDeletedResourceRequest {
287
+ /**
288
+ * ID of the deleted resource to retrieve from the trash bin.
289
+ * @format GUID
290
+ */
291
+ resourceId?: string;
292
+ }
293
+ interface GetDeletedResourceResponse {
294
+ /** Retrieved resource. */
295
+ resource?: Resource;
296
+ }
297
+ interface ListDeletedResourcesRequest {
298
+ /**
299
+ * IDs of the resources to retrieve.
300
+ * @format GUID
301
+ * @maxSize 100
302
+ */
303
+ resourceIds?: string[];
304
+ /** Paging details, allowing you specify a limit and a cursor. */
305
+ paging?: CursorPaging;
306
+ }
233
307
  interface CursorPaging {
234
308
  /**
235
309
  * Maximum number of items to return in the results.
@@ -245,6 +319,12 @@ interface CursorPaging {
245
319
  */
246
320
  cursor?: string | null;
247
321
  }
322
+ interface ListDeletedResourcesResponse {
323
+ /** Retrieved resources. */
324
+ resources?: Resource[];
325
+ /** Paging metadata. */
326
+ pagingMetadata?: CursorPagingMetadata;
327
+ }
248
328
  interface CursorPagingMetadata {
249
329
  /**
250
330
  * Number of items returned in the current response page.
@@ -287,6 +367,26 @@ interface Cursors {
287
367
  */
288
368
  prev?: string | null;
289
369
  }
370
+ interface RemoveResourceFromTrashBinRequest {
371
+ /**
372
+ * ID of the resource to permanently delete from the trash bin.
373
+ * @format GUID
374
+ */
375
+ resourceId?: string;
376
+ }
377
+ interface RemoveResourceFromTrashBinResponse {
378
+ }
379
+ interface RestoreResourceFromTrashBinRequest {
380
+ /**
381
+ * ID of the resource to restore from the trash bin.
382
+ * @format GUID
383
+ */
384
+ resourceId?: string;
385
+ }
386
+ interface RestoreResourceFromTrashBinResponse {
387
+ /** Restored resource. */
388
+ resource?: Resource;
389
+ }
290
390
  interface UpdateResourceRequest {
291
391
  /** Resource to update. */
292
392
  resource: Resource;
@@ -965,6 +1065,215 @@ interface CountResourcesResponse {
965
1065
  /** Total number of resources matching the filter. */
966
1066
  count?: number;
967
1067
  }
1068
+ interface FixResourceSchedulesRequest {
1069
+ /**
1070
+ * ID of the resource to fix schedules for.
1071
+ * @format GUID
1072
+ */
1073
+ resourceId?: string;
1074
+ /** Working hour schedule that must be set for this resource. */
1075
+ workingHoursSchedule?: Schedule;
1076
+ }
1077
+ interface FixResourceSchedulesResponse {
1078
+ /** Updated resource. */
1079
+ resource?: Resource;
1080
+ }
1081
+ interface ReindexTenantRequest {
1082
+ }
1083
+ interface ReindexTenantResponse {
1084
+ }
1085
+ interface DomainEvent extends DomainEventBodyOneOf {
1086
+ createdEvent?: EntityCreatedEvent;
1087
+ updatedEvent?: EntityUpdatedEvent;
1088
+ deletedEvent?: EntityDeletedEvent;
1089
+ actionEvent?: ActionEvent;
1090
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1091
+ id?: string;
1092
+ /**
1093
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1094
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1095
+ */
1096
+ entityFqdn?: string;
1097
+ /**
1098
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1099
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1100
+ */
1101
+ slug?: string;
1102
+ /** ID of the entity associated with the event. */
1103
+ entityId?: string;
1104
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1105
+ eventTime?: Date | null;
1106
+ /**
1107
+ * Whether the event was triggered as a result of a privacy regulation application
1108
+ * (for example, GDPR).
1109
+ */
1110
+ triggeredByAnonymizeRequest?: boolean | null;
1111
+ /** If present, indicates the action that triggered the event. */
1112
+ originatedFrom?: string | null;
1113
+ /**
1114
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
1115
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
1116
+ */
1117
+ entityEventSequence?: string | null;
1118
+ }
1119
+ /** @oneof */
1120
+ interface DomainEventBodyOneOf {
1121
+ createdEvent?: EntityCreatedEvent;
1122
+ updatedEvent?: EntityUpdatedEvent;
1123
+ deletedEvent?: EntityDeletedEvent;
1124
+ actionEvent?: ActionEvent;
1125
+ }
1126
+ interface EntityCreatedEvent {
1127
+ entityAsJson?: string;
1128
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1129
+ restoreInfo?: RestoreInfo;
1130
+ }
1131
+ interface RestoreInfo {
1132
+ deletedDate?: Date | null;
1133
+ }
1134
+ interface EntityUpdatedEvent {
1135
+ /**
1136
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1137
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1138
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1139
+ */
1140
+ currentEntityAsJson?: string;
1141
+ }
1142
+ interface EntityDeletedEvent {
1143
+ /** Entity that was deleted. */
1144
+ deletedEntityAsJson?: string | null;
1145
+ }
1146
+ interface ActionEvent {
1147
+ bodyAsJson?: string;
1148
+ }
1149
+ interface Empty {
1150
+ }
1151
+ interface MessageEnvelope {
1152
+ /**
1153
+ * App instance ID.
1154
+ * @format GUID
1155
+ */
1156
+ instanceId?: string | null;
1157
+ /**
1158
+ * Event type.
1159
+ * @maxLength 150
1160
+ */
1161
+ eventType?: string;
1162
+ /** The identification type and identity data. */
1163
+ identity?: IdentificationData;
1164
+ /** Stringify payload. */
1165
+ data?: string;
1166
+ }
1167
+ interface IdentificationData extends IdentificationDataIdOneOf {
1168
+ /**
1169
+ * ID of a site visitor that has not logged in to the site.
1170
+ * @format GUID
1171
+ */
1172
+ anonymousVisitorId?: string;
1173
+ /**
1174
+ * ID of a site visitor that has logged in to the site.
1175
+ * @format GUID
1176
+ */
1177
+ memberId?: string;
1178
+ /**
1179
+ * ID of a Wix user (site owner, contributor, etc.).
1180
+ * @format GUID
1181
+ */
1182
+ wixUserId?: string;
1183
+ /**
1184
+ * ID of an app.
1185
+ * @format GUID
1186
+ */
1187
+ appId?: string;
1188
+ /** @readonly */
1189
+ identityType?: WebhookIdentityTypeWithLiterals;
1190
+ }
1191
+ /** @oneof */
1192
+ interface IdentificationDataIdOneOf {
1193
+ /**
1194
+ * ID of a site visitor that has not logged in to the site.
1195
+ * @format GUID
1196
+ */
1197
+ anonymousVisitorId?: string;
1198
+ /**
1199
+ * ID of a site visitor that has logged in to the site.
1200
+ * @format GUID
1201
+ */
1202
+ memberId?: string;
1203
+ /**
1204
+ * ID of a Wix user (site owner, contributor, etc.).
1205
+ * @format GUID
1206
+ */
1207
+ wixUserId?: string;
1208
+ /**
1209
+ * ID of an app.
1210
+ * @format GUID
1211
+ */
1212
+ appId?: string;
1213
+ }
1214
+ declare enum WebhookIdentityType {
1215
+ UNKNOWN = "UNKNOWN",
1216
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1217
+ MEMBER = "MEMBER",
1218
+ WIX_USER = "WIX_USER",
1219
+ APP = "APP"
1220
+ }
1221
+ /** @enumType */
1222
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1223
+ /** @docsIgnore */
1224
+ type CreateResourceValidationErrors = {
1225
+ ruleName?: 'RESOURCE_LOCATION_ID_IS_REQUIRED';
1226
+ } | {
1227
+ ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED';
1228
+ } | {
1229
+ ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET';
1230
+ } | {
1231
+ ruleName?: 'RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE';
1232
+ };
1233
+ /** @docsIgnore */
1234
+ type BulkCreateResourcesValidationErrors = {
1235
+ ruleName?: 'RESOURCE_LOCATION_ID_IS_REQUIRED';
1236
+ } | {
1237
+ ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED';
1238
+ } | {
1239
+ ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET';
1240
+ } | {
1241
+ ruleName?: 'RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE';
1242
+ } | {
1243
+ ruleName?: 'RESOURCE_WORKING_HOURS_NOT_SUPPORTED_IN_BULK_REQUEST';
1244
+ };
1245
+ /** @docsIgnore */
1246
+ type UpdateResourceValidationErrors = {
1247
+ ruleName?: 'RESOURCE_NAME_IS_REQUIRED';
1248
+ } | {
1249
+ ruleName?: 'RESOURCE_LOCATION_ID_IS_REQUIRED';
1250
+ } | {
1251
+ ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED';
1252
+ } | {
1253
+ ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET';
1254
+ } | {
1255
+ ruleName?: 'RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE';
1256
+ } | {
1257
+ ruleName?: 'RESOURCE_WORKING_HOURS_SCHEDULE_ID_IS_REQUIRED';
1258
+ } | {
1259
+ ruleName?: 'RESOURCE_WORKING_HOURS_SHARED_IS_REQUIRED';
1260
+ };
1261
+ /** @docsIgnore */
1262
+ type BulkUpdateResourcesValidationErrors = {
1263
+ ruleName?: 'RESOURCE_NAME_IS_REQUIRED';
1264
+ } | {
1265
+ ruleName?: 'RESOURCE_LOCATION_ID_IS_REQUIRED';
1266
+ } | {
1267
+ ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED';
1268
+ } | {
1269
+ ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET';
1270
+ } | {
1271
+ ruleName?: 'RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE';
1272
+ } | {
1273
+ ruleName?: 'RESOURCE_WORKING_HOURS_SCHEDULE_ID_IS_REQUIRED';
1274
+ } | {
1275
+ ruleName?: 'RESOURCE_WORKING_HOURS_SHARED_IS_REQUIRED';
1276
+ };
968
1277
 
969
1278
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
970
1279
  getUrl: (context: any) => string;
@@ -993,4 +1302,4 @@ declare function searchResources(): __PublicMethodMetaInfo<'POST', {}, SearchRes
993
1302
  declare function queryResources(): __PublicMethodMetaInfo<'POST', {}, QueryResourcesRequest$1, QueryResourcesRequest, QueryResourcesResponse$1, QueryResourcesResponse>;
994
1303
  declare function countResources(): __PublicMethodMetaInfo<'POST', {}, CountResourcesRequest$1, CountResourcesRequest, CountResourcesResponse$1, CountResourcesResponse>;
995
1304
 
996
- export { type __PublicMethodMetaInfo, bulkCreateResources, bulkDeleteResources, bulkUpdateResources, countResources, createResource, deleteResource, getResource, queryResources, searchResources, updateResource };
1305
+ export { type ActionEvent as ActionEventOriginal, type AggregationData as AggregationDataOriginal, type AggregationKindOneOf as AggregationKindOneOfOriginal, type Aggregation as AggregationOriginal, type AggregationResults as AggregationResultsOriginal, type AggregationResultsResultOneOf as AggregationResultsResultOneOfOriginal, type AggregationResultsScalarResult as AggregationResultsScalarResultOriginal, AggregationType as AggregationTypeOriginal, type AggregationTypeWithLiterals as AggregationTypeWithLiteralsOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateResourcesRequest as BulkCreateResourcesRequestOriginal, type BulkCreateResourcesResponse as BulkCreateResourcesResponseOriginal, type BulkCreateResourcesValidationErrors as BulkCreateResourcesValidationErrorsOriginal, type BulkDeleteResourcesRequest as BulkDeleteResourcesRequestOriginal, type BulkDeleteResourcesResponse as BulkDeleteResourcesResponseOriginal, type BulkResourceResult as BulkResourceResultOriginal, type BulkUpdateResourcesRequest as BulkUpdateResourcesRequestOriginal, type BulkUpdateResourcesResponse as BulkUpdateResourcesResponseOriginal, type BulkUpdateResourcesValidationErrors as BulkUpdateResourcesValidationErrorsOriginal, type BusinessLocation as BusinessLocationOriginal, type CountResourcesRequest as CountResourcesRequestOriginal, type CountResourcesResponse as CountResourcesResponseOriginal, type CreateResourceRequest as CreateResourceRequestOriginal, type CreateResourceResponse as CreateResourceResponseOriginal, type CreateResourceValidationErrors as CreateResourceValidationErrorsOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type CursorSearch as CursorSearchOriginal, type CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DateHistogramAggregation as DateHistogramAggregationOriginal, type DateHistogramResult as DateHistogramResultOriginal, type DateHistogramResults as DateHistogramResultsOriginal, type DeleteResourceRequest as DeleteResourceRequestOriginal, type DeleteResourceResponse as DeleteResourceResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type EventsSchedule as EventsScheduleOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FixResourceSchedulesRequest as FixResourceSchedulesRequestOriginal, type FixResourceSchedulesResponse as FixResourceSchedulesResponseOriginal, type GetDeletedResourceRequest as GetDeletedResourceRequestOriginal, type GetDeletedResourceResponse as GetDeletedResourceResponseOriginal, type GetResourceRequest as GetResourceRequestOriginal, type GetResourceResponse as GetResourceResponseOriginal, type GroupByAggregationKindOneOf as GroupByAggregationKindOneOfOriginal, type GroupByAggregation as GroupByAggregationOriginal, type GroupByValueResults as GroupByValueResultsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IncludeMissingValuesOptions as IncludeMissingValuesOptionsOriginal, Interval as IntervalOriginal, type IntervalWithLiterals as IntervalWithLiteralsOriginal, type ItemMetadata as ItemMetadataOriginal, type ListDeletedResourcesRequest as ListDeletedResourcesRequestOriginal, type ListDeletedResourcesResponse as ListDeletedResourcesResponseOriginal, type LocationOptions as LocationOptionsOriginal, ManagementType as ManagementTypeOriginal, type ManagementTypeWithLiterals as ManagementTypeWithLiteralsOriginal, type MaskedResource as MaskedResourceOriginal, type MessageEnvelope as MessageEnvelopeOriginal, MissingValues as MissingValuesOriginal, type MissingValuesWithLiterals as MissingValuesWithLiteralsOriginal, Mode as ModeOriginal, type ModeWithLiterals as ModeWithLiteralsOriginal, type NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOfOriginal, type NestedAggregationItem as NestedAggregationItemOriginal, type NestedAggregation as NestedAggregationOriginal, type NestedAggregationResults as NestedAggregationResultsOriginal, type NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOfOriginal, NestedAggregationType as NestedAggregationTypeOriginal, type NestedAggregationTypeWithLiterals as NestedAggregationTypeWithLiteralsOriginal, type NestedResultValue as NestedResultValueOriginal, type NestedResultValueResultOneOf as NestedResultValueResultOneOfOriginal, type NestedResults as NestedResultsOriginal, type NestedValueAggregationResult as NestedValueAggregationResultOriginal, type QueryResourcesRequest as QueryResourcesRequestOriginal, type QueryResourcesResponse as QueryResourcesResponseOriginal, type RangeAggregation as RangeAggregationOriginal, type RangeAggregationResult as RangeAggregationResultOriginal, type RangeBucket as RangeBucketOriginal, type RangeResult as RangeResultOriginal, type RangeResults as RangeResultsOriginal, type ReindexTenantRequest as ReindexTenantRequestOriginal, type ReindexTenantResponse as ReindexTenantResponseOriginal, type RemoveResourceFromTrashBinRequest as RemoveResourceFromTrashBinRequestOriginal, type RemoveResourceFromTrashBinResponse as RemoveResourceFromTrashBinResponseOriginal, type ResourceCompositionDetailsOneOf as ResourceCompositionDetailsOneOfOriginal, type Resource as ResourceOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreResourceFromTrashBinRequest as RestoreResourceFromTrashBinRequestOriginal, type RestoreResourceFromTrashBinResponse as RestoreResourceFromTrashBinResponseOriginal, type Results as ResultsOriginal, type ScalarAggregation as ScalarAggregationOriginal, type ScalarResult as ScalarResultOriginal, ScalarType as ScalarTypeOriginal, type ScalarTypeWithLiterals as ScalarTypeWithLiteralsOriginal, type Schedule as ScheduleOriginal, type SearchDetails as SearchDetailsOriginal, type SearchResourcesRequest as SearchResourcesRequestOriginal, type SearchResourcesResponse as SearchResourcesResponseOriginal, type SingleResource as SingleResourceOriginal, SortDirection as SortDirectionOriginal, type SortDirectionWithLiterals as SortDirectionWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, SortType as SortTypeOriginal, type SortTypeWithLiterals as SortTypeWithLiteralsOriginal, type Sorting as SortingOriginal, type SpecificLocation as SpecificLocationOriginal, type UpdateResourceRequest as UpdateResourceRequestOriginal, type UpdateResourceResponse as UpdateResourceResponseOriginal, type UpdateResourceValidationErrors as UpdateResourceValidationErrorsOriginal, type V2WorkingHoursSchedules as V2WorkingHoursSchedulesOriginal, type ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOfOriginal, type ValueAggregation as ValueAggregationOriginal, type ValueAggregationResult as ValueAggregationResultOriginal, type ValueResult as ValueResultOriginal, type ValueResults as ValueResultsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WorkingHoursSchedule as WorkingHoursScheduleOriginal, type WorkingHoursSchedules as WorkingHoursSchedulesOriginal, type __PublicMethodMetaInfo, bulkCreateResources, bulkDeleteResources, bulkUpdateResources, countResources, createResource, deleteResource, getResource, queryResources, searchResources, updateResource };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ AggregationTypeOriginal: () => AggregationType,
24
+ IntervalOriginal: () => Interval,
25
+ ManagementTypeOriginal: () => ManagementType,
26
+ MissingValuesOriginal: () => MissingValues,
27
+ ModeOriginal: () => Mode,
28
+ NestedAggregationTypeOriginal: () => NestedAggregationType,
29
+ ScalarTypeOriginal: () => ScalarType,
30
+ SortDirectionOriginal: () => SortDirection,
31
+ SortOrderOriginal: () => SortOrder,
32
+ SortTypeOriginal: () => SortType,
33
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
34
  bulkCreateResources: () => bulkCreateResources2,
24
35
  bulkDeleteResources: () => bulkDeleteResources2,
25
36
  bulkUpdateResources: () => bulkUpdateResources2,
@@ -452,6 +463,80 @@ function countResources(payload) {
452
463
  return __countResources;
453
464
  }
454
465
 
466
+ // src/bookings-resources-v2-resource-resources.types.ts
467
+ var ManagementType = /* @__PURE__ */ ((ManagementType2) => {
468
+ ManagementType2["WIX_USER"] = "WIX_USER";
469
+ return ManagementType2;
470
+ })(ManagementType || {});
471
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
472
+ SortOrder2["ASC"] = "ASC";
473
+ SortOrder2["DESC"] = "DESC";
474
+ return SortOrder2;
475
+ })(SortOrder || {});
476
+ var SortType = /* @__PURE__ */ ((SortType2) => {
477
+ SortType2["COUNT"] = "COUNT";
478
+ SortType2["VALUE"] = "VALUE";
479
+ return SortType2;
480
+ })(SortType || {});
481
+ var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
482
+ SortDirection2["DESC"] = "DESC";
483
+ SortDirection2["ASC"] = "ASC";
484
+ return SortDirection2;
485
+ })(SortDirection || {});
486
+ var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
487
+ MissingValues2["EXCLUDE"] = "EXCLUDE";
488
+ MissingValues2["INCLUDE"] = "INCLUDE";
489
+ return MissingValues2;
490
+ })(MissingValues || {});
491
+ var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
492
+ ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
493
+ ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
494
+ ScalarType2["MIN"] = "MIN";
495
+ ScalarType2["MAX"] = "MAX";
496
+ return ScalarType2;
497
+ })(ScalarType || {});
498
+ var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
499
+ NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
500
+ NestedAggregationType2["VALUE"] = "VALUE";
501
+ NestedAggregationType2["RANGE"] = "RANGE";
502
+ NestedAggregationType2["SCALAR"] = "SCALAR";
503
+ NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
504
+ return NestedAggregationType2;
505
+ })(NestedAggregationType || {});
506
+ var Interval = /* @__PURE__ */ ((Interval2) => {
507
+ Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
508
+ Interval2["YEAR"] = "YEAR";
509
+ Interval2["MONTH"] = "MONTH";
510
+ Interval2["WEEK"] = "WEEK";
511
+ Interval2["DAY"] = "DAY";
512
+ Interval2["HOUR"] = "HOUR";
513
+ Interval2["MINUTE"] = "MINUTE";
514
+ Interval2["SECOND"] = "SECOND";
515
+ return Interval2;
516
+ })(Interval || {});
517
+ var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
518
+ AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
519
+ AggregationType2["VALUE"] = "VALUE";
520
+ AggregationType2["RANGE"] = "RANGE";
521
+ AggregationType2["SCALAR"] = "SCALAR";
522
+ AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
523
+ AggregationType2["NESTED"] = "NESTED";
524
+ return AggregationType2;
525
+ })(AggregationType || {});
526
+ var Mode = /* @__PURE__ */ ((Mode2) => {
527
+ Mode2["OR"] = "OR";
528
+ Mode2["AND"] = "AND";
529
+ return Mode2;
530
+ })(Mode || {});
531
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
532
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
533
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
534
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
535
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
536
+ WebhookIdentityType2["APP"] = "APP";
537
+ return WebhookIdentityType2;
538
+ })(WebhookIdentityType || {});
539
+
455
540
  // src/bookings-resources-v2-resource-resources.meta.ts
456
541
  function createResource2() {
457
542
  const payload = {};
@@ -635,6 +720,17 @@ function countResources2() {
635
720
  }
636
721
  // Annotate the CommonJS export names for ESM import in node:
637
722
  0 && (module.exports = {
723
+ AggregationTypeOriginal,
724
+ IntervalOriginal,
725
+ ManagementTypeOriginal,
726
+ MissingValuesOriginal,
727
+ ModeOriginal,
728
+ NestedAggregationTypeOriginal,
729
+ ScalarTypeOriginal,
730
+ SortDirectionOriginal,
731
+ SortOrderOriginal,
732
+ SortTypeOriginal,
733
+ WebhookIdentityTypeOriginal,
638
734
  bulkCreateResources,
639
735
  bulkDeleteResources,
640
736
  bulkUpdateResources,