@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/es/meta.d.mts
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/es/meta.mjs
CHANGED
|
@@ -65,6 +65,9 @@ function createResource(payload) {
|
|
|
65
65
|
method: "POST",
|
|
66
66
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.CreateResource",
|
|
67
67
|
packageName: PACKAGE_NAME,
|
|
68
|
+
migrationOptions: {
|
|
69
|
+
optInTransformResponse: true
|
|
70
|
+
},
|
|
68
71
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
69
72
|
protoPath: "/v2/resources",
|
|
70
73
|
data: serializedData,
|
|
@@ -101,6 +104,9 @@ function bulkCreateResources(payload) {
|
|
|
101
104
|
method: "POST",
|
|
102
105
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.BulkCreateResources",
|
|
103
106
|
packageName: PACKAGE_NAME,
|
|
107
|
+
migrationOptions: {
|
|
108
|
+
optInTransformResponse: true
|
|
109
|
+
},
|
|
104
110
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
105
111
|
protoPath: "/v2/bulk/resources/create",
|
|
106
112
|
data: serializedData,
|
|
@@ -128,6 +134,9 @@ function getResource(payload) {
|
|
|
128
134
|
method: "GET",
|
|
129
135
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.GetResource",
|
|
130
136
|
packageName: PACKAGE_NAME,
|
|
137
|
+
migrationOptions: {
|
|
138
|
+
optInTransformResponse: true
|
|
139
|
+
},
|
|
131
140
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
132
141
|
protoPath: "/v2/resources/{resourceId}",
|
|
133
142
|
data: payload,
|
|
@@ -168,6 +177,9 @@ function updateResource(payload) {
|
|
|
168
177
|
method: "PATCH",
|
|
169
178
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.UpdateResource",
|
|
170
179
|
packageName: PACKAGE_NAME,
|
|
180
|
+
migrationOptions: {
|
|
181
|
+
optInTransformResponse: true
|
|
182
|
+
},
|
|
171
183
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
172
184
|
protoPath: "/v2/resources/{resource.id}",
|
|
173
185
|
data: serializedData,
|
|
@@ -208,6 +220,9 @@ function bulkUpdateResources(payload) {
|
|
|
208
220
|
method: "POST",
|
|
209
221
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.BulkUpdateResources",
|
|
210
222
|
packageName: PACKAGE_NAME,
|
|
223
|
+
migrationOptions: {
|
|
224
|
+
optInTransformResponse: true
|
|
225
|
+
},
|
|
211
226
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
212
227
|
protoPath: "/v2/bulk/resources/update",
|
|
213
228
|
data: serializedData,
|
|
@@ -235,6 +250,9 @@ function deleteResource(payload) {
|
|
|
235
250
|
method: "DELETE",
|
|
236
251
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.DeleteResource",
|
|
237
252
|
packageName: PACKAGE_NAME,
|
|
253
|
+
migrationOptions: {
|
|
254
|
+
optInTransformResponse: true
|
|
255
|
+
},
|
|
238
256
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
239
257
|
protoPath: "/v2/resources/{resourceId}",
|
|
240
258
|
data: payload,
|
|
@@ -253,6 +271,9 @@ function bulkDeleteResources(payload) {
|
|
|
253
271
|
method: "POST",
|
|
254
272
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.BulkDeleteResources",
|
|
255
273
|
packageName: PACKAGE_NAME,
|
|
274
|
+
migrationOptions: {
|
|
275
|
+
optInTransformResponse: true
|
|
276
|
+
},
|
|
256
277
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
257
278
|
protoPath: "/v2/bulk/resources/delete",
|
|
258
279
|
data: payload,
|
|
@@ -295,6 +316,9 @@ function searchResources(payload) {
|
|
|
295
316
|
method: "POST",
|
|
296
317
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.SearchResources",
|
|
297
318
|
packageName: PACKAGE_NAME,
|
|
319
|
+
migrationOptions: {
|
|
320
|
+
optInTransformResponse: true
|
|
321
|
+
},
|
|
298
322
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
299
323
|
protoPath: "/v2/resources/search",
|
|
300
324
|
data: serializedData,
|
|
@@ -348,6 +372,9 @@ function queryResources(payload) {
|
|
|
348
372
|
method: "POST",
|
|
349
373
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.QueryResources",
|
|
350
374
|
packageName: PACKAGE_NAME,
|
|
375
|
+
migrationOptions: {
|
|
376
|
+
optInTransformResponse: true
|
|
377
|
+
},
|
|
351
378
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
352
379
|
protoPath: "/v2/resources/query",
|
|
353
380
|
data: payload,
|
|
@@ -375,6 +402,9 @@ function countResources(payload) {
|
|
|
375
402
|
method: "POST",
|
|
376
403
|
methodFqn: "wix.bookings.resources.v2.ResourcesService.CountResources",
|
|
377
404
|
packageName: PACKAGE_NAME,
|
|
405
|
+
migrationOptions: {
|
|
406
|
+
optInTransformResponse: true
|
|
407
|
+
},
|
|
378
408
|
url: resolveWixBookingsResourcesV2ResourcesServiceUrl({
|
|
379
409
|
protoPath: "/v2/resources/count",
|
|
380
410
|
data: payload,
|
|
@@ -387,6 +417,80 @@ function countResources(payload) {
|
|
|
387
417
|
return __countResources;
|
|
388
418
|
}
|
|
389
419
|
|
|
420
|
+
// src/bookings-resources-v2-resource-resources.types.ts
|
|
421
|
+
var ManagementType = /* @__PURE__ */ ((ManagementType2) => {
|
|
422
|
+
ManagementType2["WIX_USER"] = "WIX_USER";
|
|
423
|
+
return ManagementType2;
|
|
424
|
+
})(ManagementType || {});
|
|
425
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
426
|
+
SortOrder2["ASC"] = "ASC";
|
|
427
|
+
SortOrder2["DESC"] = "DESC";
|
|
428
|
+
return SortOrder2;
|
|
429
|
+
})(SortOrder || {});
|
|
430
|
+
var SortType = /* @__PURE__ */ ((SortType2) => {
|
|
431
|
+
SortType2["COUNT"] = "COUNT";
|
|
432
|
+
SortType2["VALUE"] = "VALUE";
|
|
433
|
+
return SortType2;
|
|
434
|
+
})(SortType || {});
|
|
435
|
+
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
|
|
436
|
+
SortDirection2["DESC"] = "DESC";
|
|
437
|
+
SortDirection2["ASC"] = "ASC";
|
|
438
|
+
return SortDirection2;
|
|
439
|
+
})(SortDirection || {});
|
|
440
|
+
var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
|
|
441
|
+
MissingValues2["EXCLUDE"] = "EXCLUDE";
|
|
442
|
+
MissingValues2["INCLUDE"] = "INCLUDE";
|
|
443
|
+
return MissingValues2;
|
|
444
|
+
})(MissingValues || {});
|
|
445
|
+
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
|
|
446
|
+
ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
|
|
447
|
+
ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
448
|
+
ScalarType2["MIN"] = "MIN";
|
|
449
|
+
ScalarType2["MAX"] = "MAX";
|
|
450
|
+
return ScalarType2;
|
|
451
|
+
})(ScalarType || {});
|
|
452
|
+
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
|
|
453
|
+
NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
454
|
+
NestedAggregationType2["VALUE"] = "VALUE";
|
|
455
|
+
NestedAggregationType2["RANGE"] = "RANGE";
|
|
456
|
+
NestedAggregationType2["SCALAR"] = "SCALAR";
|
|
457
|
+
NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
458
|
+
return NestedAggregationType2;
|
|
459
|
+
})(NestedAggregationType || {});
|
|
460
|
+
var Interval = /* @__PURE__ */ ((Interval2) => {
|
|
461
|
+
Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
|
|
462
|
+
Interval2["YEAR"] = "YEAR";
|
|
463
|
+
Interval2["MONTH"] = "MONTH";
|
|
464
|
+
Interval2["WEEK"] = "WEEK";
|
|
465
|
+
Interval2["DAY"] = "DAY";
|
|
466
|
+
Interval2["HOUR"] = "HOUR";
|
|
467
|
+
Interval2["MINUTE"] = "MINUTE";
|
|
468
|
+
Interval2["SECOND"] = "SECOND";
|
|
469
|
+
return Interval2;
|
|
470
|
+
})(Interval || {});
|
|
471
|
+
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
472
|
+
AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
473
|
+
AggregationType2["VALUE"] = "VALUE";
|
|
474
|
+
AggregationType2["RANGE"] = "RANGE";
|
|
475
|
+
AggregationType2["SCALAR"] = "SCALAR";
|
|
476
|
+
AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
477
|
+
AggregationType2["NESTED"] = "NESTED";
|
|
478
|
+
return AggregationType2;
|
|
479
|
+
})(AggregationType || {});
|
|
480
|
+
var Mode = /* @__PURE__ */ ((Mode2) => {
|
|
481
|
+
Mode2["OR"] = "OR";
|
|
482
|
+
Mode2["AND"] = "AND";
|
|
483
|
+
return Mode2;
|
|
484
|
+
})(Mode || {});
|
|
485
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
486
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
487
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
488
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
489
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
490
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
491
|
+
return WebhookIdentityType2;
|
|
492
|
+
})(WebhookIdentityType || {});
|
|
493
|
+
|
|
390
494
|
// src/bookings-resources-v2-resource-resources.meta.ts
|
|
391
495
|
function createResource2() {
|
|
392
496
|
const payload = {};
|
|
@@ -569,6 +673,17 @@ function countResources2() {
|
|
|
569
673
|
};
|
|
570
674
|
}
|
|
571
675
|
export {
|
|
676
|
+
AggregationType as AggregationTypeOriginal,
|
|
677
|
+
Interval as IntervalOriginal,
|
|
678
|
+
ManagementType as ManagementTypeOriginal,
|
|
679
|
+
MissingValues as MissingValuesOriginal,
|
|
680
|
+
Mode as ModeOriginal,
|
|
681
|
+
NestedAggregationType as NestedAggregationTypeOriginal,
|
|
682
|
+
ScalarType as ScalarTypeOriginal,
|
|
683
|
+
SortDirection as SortDirectionOriginal,
|
|
684
|
+
SortOrder as SortOrderOriginal,
|
|
685
|
+
SortType as SortTypeOriginal,
|
|
686
|
+
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
572
687
|
bulkCreateResources2 as bulkCreateResources,
|
|
573
688
|
bulkDeleteResources2 as bulkDeleteResources,
|
|
574
689
|
bulkUpdateResources2 as bulkUpdateResources,
|