@wix/auto_sdk_bookings_resources 1.0.52 → 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.
- package/build/cjs/index.js +30 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +30 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +310 -1
- package/build/cjs/meta.js +126 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +30 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +30 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +310 -1
- package/build/es/meta.mjs +115 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +30 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +30 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +310 -1
- package/build/internal/cjs/meta.js +126 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +30 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +30 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +310 -1
- package/build/internal/es/meta.mjs +115 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -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,
|
|
@@ -100,6 +111,9 @@ function createResource(payload) {
|
|
|
100
111
|
method: "POST",
|
|
101
112
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.CreateResource",
|
|
102
113
|
packageName: PACKAGE_NAME,
|
|
114
|
+
migrationOptions: {
|
|
115
|
+
optInTransformResponse: true
|
|
116
|
+
},
|
|
103
117
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
104
118
|
protoPath: "/v2/resources",
|
|
105
119
|
data: serializedData,
|
|
@@ -136,6 +150,9 @@ function bulkCreateResources(payload) {
|
|
|
136
150
|
method: "POST",
|
|
137
151
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.BulkCreateResources",
|
|
138
152
|
packageName: PACKAGE_NAME,
|
|
153
|
+
migrationOptions: {
|
|
154
|
+
optInTransformResponse: true
|
|
155
|
+
},
|
|
139
156
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
140
157
|
protoPath: "/v2/bulk/resources/create",
|
|
141
158
|
data: serializedData,
|
|
@@ -163,6 +180,9 @@ function getResource(payload) {
|
|
|
163
180
|
method: "GET",
|
|
164
181
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.GetResource",
|
|
165
182
|
packageName: PACKAGE_NAME,
|
|
183
|
+
migrationOptions: {
|
|
184
|
+
optInTransformResponse: true
|
|
185
|
+
},
|
|
166
186
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
167
187
|
protoPath: "/v2/resources/{resourceId}",
|
|
168
188
|
data: payload,
|
|
@@ -203,6 +223,9 @@ function updateResource(payload) {
|
|
|
203
223
|
method: "PATCH",
|
|
204
224
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.UpdateResource",
|
|
205
225
|
packageName: PACKAGE_NAME,
|
|
226
|
+
migrationOptions: {
|
|
227
|
+
optInTransformResponse: true
|
|
228
|
+
},
|
|
206
229
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
207
230
|
protoPath: "/v2/resources/{resource.id}",
|
|
208
231
|
data: serializedData,
|
|
@@ -243,6 +266,9 @@ function bulkUpdateResources(payload) {
|
|
|
243
266
|
method: "POST",
|
|
244
267
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.BulkUpdateResources",
|
|
245
268
|
packageName: PACKAGE_NAME,
|
|
269
|
+
migrationOptions: {
|
|
270
|
+
optInTransformResponse: true
|
|
271
|
+
},
|
|
246
272
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
247
273
|
protoPath: "/v2/bulk/resources/update",
|
|
248
274
|
data: serializedData,
|
|
@@ -270,6 +296,9 @@ function deleteResource(payload) {
|
|
|
270
296
|
method: "DELETE",
|
|
271
297
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.DeleteResource",
|
|
272
298
|
packageName: PACKAGE_NAME,
|
|
299
|
+
migrationOptions: {
|
|
300
|
+
optInTransformResponse: true
|
|
301
|
+
},
|
|
273
302
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
274
303
|
protoPath: "/v2/resources/{resourceId}",
|
|
275
304
|
data: payload,
|
|
@@ -288,6 +317,9 @@ function bulkDeleteResources(payload) {
|
|
|
288
317
|
method: "POST",
|
|
289
318
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.BulkDeleteResources",
|
|
290
319
|
packageName: PACKAGE_NAME,
|
|
320
|
+
migrationOptions: {
|
|
321
|
+
optInTransformResponse: true
|
|
322
|
+
},
|
|
291
323
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
292
324
|
protoPath: "/v2/bulk/resources/delete",
|
|
293
325
|
data: payload,
|
|
@@ -330,6 +362,9 @@ function searchResources(payload) {
|
|
|
330
362
|
method: "POST",
|
|
331
363
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.SearchResources",
|
|
332
364
|
packageName: PACKAGE_NAME,
|
|
365
|
+
migrationOptions: {
|
|
366
|
+
optInTransformResponse: true
|
|
367
|
+
},
|
|
333
368
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
334
369
|
protoPath: "/v2/resources/search",
|
|
335
370
|
data: serializedData,
|
|
@@ -383,6 +418,9 @@ function queryResources(payload) {
|
|
|
383
418
|
method: "POST",
|
|
384
419
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.QueryResources",
|
|
385
420
|
packageName: PACKAGE_NAME,
|
|
421
|
+
migrationOptions: {
|
|
422
|
+
optInTransformResponse: true
|
|
423
|
+
},
|
|
386
424
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
387
425
|
protoPath: "/v2/resources/query",
|
|
388
426
|
data: payload,
|
|
@@ -410,6 +448,9 @@ function countResources(payload) {
|
|
|
410
448
|
method: "POST",
|
|
411
449
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.CountResources",
|
|
412
450
|
packageName: PACKAGE_NAME,
|
|
451
|
+
migrationOptions: {
|
|
452
|
+
optInTransformResponse: true
|
|
453
|
+
},
|
|
413
454
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
414
455
|
protoPath: "/v2/resources/count",
|
|
415
456
|
data: payload,
|
|
@@ -422,6 +463,80 @@ function countResources(payload) {
|
|
|
422
463
|
return __countResources;
|
|
423
464
|
}
|
|
424
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
|
+
|
|
425
540
|
// src/bookings-resources-v2-resource-resources.meta.ts
|
|
426
541
|
function createResource2() {
|
|
427
542
|
const payload = {};
|
|
@@ -605,6 +720,17 @@ function countResources2() {
|
|
|
605
720
|
}
|
|
606
721
|
// Annotate the CommonJS export names for ESM import in node:
|
|
607
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,
|
|
608
734
|
bulkCreateResources,
|
|
609
735
|
bulkDeleteResources,
|
|
610
736
|
bulkUpdateResources,
|