@wix/auto_sdk_bookings_resource-types 1.0.47 → 1.0.49

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.
@@ -38,6 +38,47 @@ interface ResourceType {
38
38
  /** Extensions enabling users to save custom data related to the resource type. */
39
39
  extendedFields?: ExtendedFields;
40
40
  }
41
+ interface ResourceCounts {
42
+ /**
43
+ * Total number of resources connected to the type.
44
+ * @readonly
45
+ */
46
+ total?: number | null;
47
+ /**
48
+ * Whether at least 1 resource of the type is available in all business locations ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).
49
+ * @readonly
50
+ */
51
+ hasResourcesInAllLocations?: boolean | null;
52
+ /**
53
+ * Whether at least 1 resource of the type is available in customer locations.
54
+ * @readonly
55
+ */
56
+ hasResourcesInCustomerLocations?: boolean | null;
57
+ /**
58
+ * Whether at least 1 resource of the type is available in custom business locations.
59
+ * @readonly
60
+ */
61
+ hasResourcesInCustomLocations?: boolean | null;
62
+ /**
63
+ * Number of distinct business locations with resources connected to the type.
64
+ * @readonly
65
+ */
66
+ distinctBusinessLocationsCount?: number | null;
67
+ /**
68
+ * IDs of all business locations with resources connected to the type. If there
69
+ * are more than 50 location IDs, only the first 50 IDs are returned.
70
+ * @readonly
71
+ */
72
+ distinctLocationIds?: DistinctLocationIds;
73
+ }
74
+ interface DistinctLocationIds {
75
+ /**
76
+ * IDs of the business locations with a resource connected to the type.
77
+ * @format GUID
78
+ * @maxSize 50
79
+ */
80
+ values?: string[];
81
+ }
41
82
  interface ExtendedFields {
42
83
  /**
43
84
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
@@ -53,10 +94,66 @@ interface CreateResourceTypeRequest {
53
94
  /** Resource type to create. */
54
95
  resourceType: ResourceType;
55
96
  }
97
+ interface LocationOptions {
98
+ /**
99
+ * Whether the resource is available in all *business locations*
100
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).
101
+ *
102
+ * - `true`: The resource is available in all business locations.
103
+ * - `false`: The resource is available only in specific locations.
104
+ *
105
+ * Default: `false`
106
+ */
107
+ availableInAllLocations?: boolean | null;
108
+ /** Details of resource availability in specific locations. */
109
+ specificLocationOptions?: SpecificLocation;
110
+ }
111
+ interface SpecificLocation {
112
+ /**
113
+ * Whether the resource is available in *business locations*
114
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).
115
+ *
116
+ * - `true`: The resource is available in business locations.
117
+ * - `false`: The resource isn't available in business locations.
118
+ *
119
+ * Default: `false`
120
+ */
121
+ availableInBusinessLocations?: boolean | null;
122
+ /**
123
+ * Information about the business locations where the resource is available.
124
+ * Not returned, if the resource is available in either all business locations
125
+ * or in no business location.
126
+ * You can specify up to 100 business locations.
127
+ * @maxSize 100
128
+ */
129
+ businessLocations?: BusinessLocation[];
130
+ }
131
+ interface BusinessLocation {
132
+ /**
133
+ * ID of the business *location*
134
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)).
135
+ * @format GUID
136
+ */
137
+ locationId?: string | null;
138
+ }
139
+ declare enum RequestedFields {
140
+ TOTAL_RESOURCE_COUNT = "TOTAL_RESOURCE_COUNT",
141
+ SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS = "SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS",
142
+ DISTINCT_RESOURCE_LOCATIONS = "DISTINCT_RESOURCE_LOCATIONS"
143
+ }
144
+ /** @enumType */
145
+ type RequestedFieldsWithLiterals = RequestedFields | 'TOTAL_RESOURCE_COUNT' | 'SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS' | 'DISTINCT_RESOURCE_LOCATIONS';
56
146
  interface CreateResourceTypeResponse {
57
147
  /** Created resource type. */
58
148
  resourceType?: ResourceType;
59
149
  }
150
+ declare enum CreateResourceTypeErrors {
151
+ UNKNOWN_CREATE_RESOURCE_TYPE_ERROR = "UNKNOWN_CREATE_RESOURCE_TYPE_ERROR",
152
+ /** Failed to create requested `quantity` of resources for the resource type */
153
+ FAILED_TO_CREATE_RESOURCES = "FAILED_TO_CREATE_RESOURCES"
154
+ }
155
+ /** @enumType */
156
+ type CreateResourceTypeErrorsWithLiterals = CreateResourceTypeErrors | 'UNKNOWN_CREATE_RESOURCE_TYPE_ERROR' | 'FAILED_TO_CREATE_RESOURCES';
60
157
  interface GetResourceTypeRequest {
61
158
  /**
62
159
  * ID of the resource type to retrieve.
@@ -188,6 +285,158 @@ interface CountResourceTypesResponse {
188
285
  /** Number of resource types matching the filter. */
189
286
  count?: number;
190
287
  }
288
+ interface DomainEvent extends DomainEventBodyOneOf {
289
+ createdEvent?: EntityCreatedEvent;
290
+ updatedEvent?: EntityUpdatedEvent;
291
+ deletedEvent?: EntityDeletedEvent;
292
+ actionEvent?: ActionEvent;
293
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
294
+ id?: string;
295
+ /**
296
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
297
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
298
+ */
299
+ entityFqdn?: string;
300
+ /**
301
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
302
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
303
+ */
304
+ slug?: string;
305
+ /** ID of the entity associated with the event. */
306
+ entityId?: string;
307
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
308
+ eventTime?: Date | null;
309
+ /**
310
+ * Whether the event was triggered as a result of a privacy regulation application
311
+ * (for example, GDPR).
312
+ */
313
+ triggeredByAnonymizeRequest?: boolean | null;
314
+ /** If present, indicates the action that triggered the event. */
315
+ originatedFrom?: string | null;
316
+ /**
317
+ * 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.
318
+ * 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.
319
+ */
320
+ entityEventSequence?: string | null;
321
+ }
322
+ /** @oneof */
323
+ interface DomainEventBodyOneOf {
324
+ createdEvent?: EntityCreatedEvent;
325
+ updatedEvent?: EntityUpdatedEvent;
326
+ deletedEvent?: EntityDeletedEvent;
327
+ actionEvent?: ActionEvent;
328
+ }
329
+ interface EntityCreatedEvent {
330
+ entityAsJson?: string;
331
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
332
+ restoreInfo?: RestoreInfo;
333
+ }
334
+ interface RestoreInfo {
335
+ deletedDate?: Date | null;
336
+ }
337
+ interface EntityUpdatedEvent {
338
+ /**
339
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
340
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
341
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
342
+ */
343
+ currentEntityAsJson?: string;
344
+ }
345
+ interface EntityDeletedEvent {
346
+ /** Entity that was deleted. */
347
+ deletedEntityAsJson?: string | null;
348
+ }
349
+ interface ActionEvent {
350
+ bodyAsJson?: string;
351
+ }
352
+ interface MessageEnvelope {
353
+ /**
354
+ * App instance ID.
355
+ * @format GUID
356
+ */
357
+ instanceId?: string | null;
358
+ /**
359
+ * Event type.
360
+ * @maxLength 150
361
+ */
362
+ eventType?: string;
363
+ /** The identification type and identity data. */
364
+ identity?: IdentificationData;
365
+ /** Stringify payload. */
366
+ data?: string;
367
+ }
368
+ interface IdentificationData extends IdentificationDataIdOneOf {
369
+ /**
370
+ * ID of a site visitor that has not logged in to the site.
371
+ * @format GUID
372
+ */
373
+ anonymousVisitorId?: string;
374
+ /**
375
+ * ID of a site visitor that has logged in to the site.
376
+ * @format GUID
377
+ */
378
+ memberId?: string;
379
+ /**
380
+ * ID of a Wix user (site owner, contributor, etc.).
381
+ * @format GUID
382
+ */
383
+ wixUserId?: string;
384
+ /**
385
+ * ID of an app.
386
+ * @format GUID
387
+ */
388
+ appId?: string;
389
+ /** @readonly */
390
+ identityType?: WebhookIdentityTypeWithLiterals;
391
+ }
392
+ /** @oneof */
393
+ interface IdentificationDataIdOneOf {
394
+ /**
395
+ * ID of a site visitor that has not logged in to the site.
396
+ * @format GUID
397
+ */
398
+ anonymousVisitorId?: string;
399
+ /**
400
+ * ID of a site visitor that has logged in to the site.
401
+ * @format GUID
402
+ */
403
+ memberId?: string;
404
+ /**
405
+ * ID of a Wix user (site owner, contributor, etc.).
406
+ * @format GUID
407
+ */
408
+ wixUserId?: string;
409
+ /**
410
+ * ID of an app.
411
+ * @format GUID
412
+ */
413
+ appId?: string;
414
+ }
415
+ declare enum WebhookIdentityType {
416
+ UNKNOWN = "UNKNOWN",
417
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
418
+ MEMBER = "MEMBER",
419
+ WIX_USER = "WIX_USER",
420
+ APP = "APP"
421
+ }
422
+ /** @enumType */
423
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
424
+ /** @docsIgnore */
425
+ type CreateResourceTypeApplicationErrors = {
426
+ code?: 'RESOURCE_TYPE_ALREADY_EXISTS_FOR_NAME';
427
+ description?: string;
428
+ data?: Record<string, any>;
429
+ } | {
430
+ code?: 'MAX_NUMBER_OF_RESOURCE_TYPES_REACHED';
431
+ description?: string;
432
+ data?: Record<string, any>;
433
+ };
434
+ /** @docsIgnore */
435
+ type UpdateResourceTypeApplicationErrors = {
436
+ code?: 'RESOURCE_TYPE_ALREADY_EXISTS_FOR_NAME';
437
+ description?: string;
438
+ data?: Record<string, any>;
439
+ };
191
440
 
192
441
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
193
442
  getUrl: (context: any) => string;
@@ -212,4 +461,4 @@ declare function deleteResourceType(): __PublicMethodMetaInfo<'DELETE', {
212
461
  declare function queryResourceTypes(): __PublicMethodMetaInfo<'POST', {}, QueryResourceTypesRequest$1, QueryResourceTypesRequest, QueryResourceTypesResponse$1, QueryResourceTypesResponse>;
213
462
  declare function countResourceTypes(): __PublicMethodMetaInfo<'POST', {}, CountResourceTypesRequest$1, CountResourceTypesRequest, CountResourceTypesResponse$1, CountResourceTypesResponse>;
214
463
 
215
- export { type __PublicMethodMetaInfo, countResourceTypes, createResourceType, deleteResourceType, getResourceType, queryResourceTypes, updateResourceType };
464
+ export { type ActionEvent as ActionEventOriginal, type BusinessLocation as BusinessLocationOriginal, type CountResourceTypesRequest as CountResourceTypesRequestOriginal, type CountResourceTypesResponse as CountResourceTypesResponseOriginal, type CreateResourceTypeApplicationErrors as CreateResourceTypeApplicationErrorsOriginal, CreateResourceTypeErrors as CreateResourceTypeErrorsOriginal, type CreateResourceTypeErrorsWithLiterals as CreateResourceTypeErrorsWithLiteralsOriginal, type CreateResourceTypeRequest as CreateResourceTypeRequestOriginal, type CreateResourceTypeResponse as CreateResourceTypeResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteResourceTypeRequest as DeleteResourceTypeRequestOriginal, type DeleteResourceTypeResponse as DeleteResourceTypeResponseOriginal, type DistinctLocationIds as DistinctLocationIdsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetResourceTypeRequest as GetResourceTypeRequestOriginal, type GetResourceTypeResponse as GetResourceTypeResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type LocationOptions as LocationOptionsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type QueryResourceTypesRequest as QueryResourceTypesRequestOriginal, type QueryResourceTypesResponse as QueryResourceTypesResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type ResourceCounts as ResourceCountsOriginal, type ResourceType as ResourceTypeOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SpecificLocation as SpecificLocationOriginal, type UpdateResourceTypeApplicationErrors as UpdateResourceTypeApplicationErrorsOriginal, type UpdateResourceTypeRequest as UpdateResourceTypeRequestOriginal, type UpdateResourceTypeResponse as UpdateResourceTypeResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, countResourceTypes, createResourceType, deleteResourceType, getResourceType, queryResourceTypes, updateResourceType };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ CreateResourceTypeErrorsOriginal: () => CreateResourceTypeErrors,
24
+ RequestedFieldsOriginal: () => RequestedFields,
25
+ SortOrderOriginal: () => SortOrder,
26
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
27
  countResourceTypes: () => countResourceTypes2,
24
28
  createResourceType: () => createResourceType2,
25
29
  deleteResourceType: () => deleteResourceType2,
@@ -255,6 +259,32 @@ function countResourceTypes(payload) {
255
259
  return __countResourceTypes;
256
260
  }
257
261
 
262
+ // src/bookings-resources-v2-resource-type-resource-types.types.ts
263
+ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
264
+ RequestedFields2["TOTAL_RESOURCE_COUNT"] = "TOTAL_RESOURCE_COUNT";
265
+ RequestedFields2["SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS"] = "SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS";
266
+ RequestedFields2["DISTINCT_RESOURCE_LOCATIONS"] = "DISTINCT_RESOURCE_LOCATIONS";
267
+ return RequestedFields2;
268
+ })(RequestedFields || {});
269
+ var CreateResourceTypeErrors = /* @__PURE__ */ ((CreateResourceTypeErrors2) => {
270
+ CreateResourceTypeErrors2["UNKNOWN_CREATE_RESOURCE_TYPE_ERROR"] = "UNKNOWN_CREATE_RESOURCE_TYPE_ERROR";
271
+ CreateResourceTypeErrors2["FAILED_TO_CREATE_RESOURCES"] = "FAILED_TO_CREATE_RESOURCES";
272
+ return CreateResourceTypeErrors2;
273
+ })(CreateResourceTypeErrors || {});
274
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
275
+ SortOrder2["ASC"] = "ASC";
276
+ SortOrder2["DESC"] = "DESC";
277
+ return SortOrder2;
278
+ })(SortOrder || {});
279
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
280
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
281
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
282
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
283
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
284
+ WebhookIdentityType2["APP"] = "APP";
285
+ return WebhookIdentityType2;
286
+ })(WebhookIdentityType || {});
287
+
258
288
  // src/bookings-resources-v2-resource-type-resource-types.meta.ts
259
289
  function createResourceType2() {
260
290
  const payload = {};
@@ -366,6 +396,10 @@ function countResourceTypes2() {
366
396
  }
367
397
  // Annotate the CommonJS export names for ESM import in node:
368
398
  0 && (module.exports = {
399
+ CreateResourceTypeErrorsOriginal,
400
+ RequestedFieldsOriginal,
401
+ SortOrderOriginal,
402
+ WebhookIdentityTypeOriginal,
369
403
  countResourceTypes,
370
404
  createResourceType,
371
405
  deleteResourceType,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/bookings-resources-v2-resource-type-resource-types.http.ts","../../src/bookings-resources-v2-resource-type-resource-types.meta.ts"],"sourcesContent":["export * from './src/bookings-resources-v2-resource-type-resource-types.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/bookings/v2/resources/resource-types',\n destPath: '/v2/resources/resource-types',\n },\n {\n srcPath: '/_api/bookings/v2/resources/resource-types',\n destPath: '/v2/resources/resource-types',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/resource-types',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/bookings/v2/resources/resource-types',\n destPath: '/v2/resources/resource-types',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/bookings/v2/resources/resource-types',\n destPath: '/v2/resources/resource-types',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_resource-types';\n\n/** Creates a new resource type. */\nexport function createResourceType(\n payload: object\n): RequestOptionsFactory<any> {\n function __createResourceType({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resourceType.createdDate' },\n { path: 'resourceType.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CreateResourceType',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resourceType.createdDate' },\n { path: 'resourceType.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createResourceType;\n}\n\n/** Retrieves a resource type. */\nexport function getResourceType(payload: object): RequestOptionsFactory<any> {\n function __getResourceType({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'GET' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.GetResourceType',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types/{resourceTypeId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resourceType.createdDate' },\n { path: 'resourceType.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getResourceType;\n}\n\n/**\n * Updates a resource type.\n *\n *\n * Each time the resource type is updated, `revision` increments by 1.\n * You must include current revision of the resource type when updating it.\n * This ensures you're working with the latest service information and prevents unintended overwrites.\n */\nexport function updateResourceType(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateResourceType({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resourceType.createdDate' },\n { path: 'resourceType.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.UpdateResourceType',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types/{resourceType.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resourceType.createdDate' },\n { path: 'resourceType.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateResourceType;\n}\n\n/**\n * Deletes a resource type.\n *\n *\n * Deleting a resource type also automatically deletes all resources connected to it.\n */\nexport function deleteResourceType(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteResourceType({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.DeleteResourceType',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types/{resourceTypeId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteResourceType;\n}\n\n/**\n * Creates a query to retrieve a list of resource types.\n *\n * The `queryResourceTypes()` function builds a query to retrieve a list of resource types and returns a `ResourceTypesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-builder/find) function.\n *\n * You can refine the query by chaining `ResourceTypesQueryBuilder` functions onto the query. `ResourceTypesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResourceTypes()` returns.\n *\n * `queryResourceTypes()` runs with the following `ResourceTypesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `queryResourceTypes()` are applied in the order they are called.\n *\n * The following `ResourceTypesQueryBuilder` functions are supported for the `queryResourceTypes()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-result/items) property in `ResourceTypesQueryResult`.\n */\nexport function queryResourceTypes(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryResourceTypes({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.QueryResourceTypes',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resourceTypes.createdDate' },\n { path: 'resourceTypes.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryResourceTypes;\n}\n\n/**\n * Counts resource types, given the provided filtering.\n *\n *\n * Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)) for a complete list of supported filters.\n */\nexport function countResourceTypes(\n payload: object\n): RequestOptionsFactory<any> {\n function __countResourceTypes({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CountResourceTypes',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countResourceTypes;\n}\n","import * as ambassadorWixBookingsResourcesV2ResourceType from './bookings-resources-v2-resource-type-resource-types.http.js';\nimport * as ambassadorWixBookingsResourcesV2ResourceTypeTypes from './bookings-resources-v2-resource-type-resource-types.types.js';\nimport * as ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes from './bookings-resources-v2-resource-type-resource-types.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createResourceType(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.CreateResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.CreateResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.CreateResourceTypeResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.CreateResourceTypeResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.createResourceType(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/resource-types',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getResourceType(): __PublicMethodMetaInfo<\n 'GET',\n { resourceTypeId: string },\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.GetResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.GetResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.GetResourceTypeResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.GetResourceTypeResponse\n> {\n const payload = { resourceTypeId: ':resourceTypeId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.getResourceType(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/resources/resource-types/{resourceTypeId}',\n pathParams: { resourceTypeId: 'resourceTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateResourceType(): __PublicMethodMetaInfo<\n 'PATCH',\n { resourceTypeId: string },\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.UpdateResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.UpdateResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.UpdateResourceTypeResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.UpdateResourceTypeResponse\n> {\n const payload = { resourceType: { id: ':resourceTypeId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.updateResourceType(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/resources/resource-types/{resourceType.id}',\n pathParams: { resourceTypeId: 'resourceTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteResourceType(): __PublicMethodMetaInfo<\n 'DELETE',\n { resourceTypeId: string },\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.DeleteResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.DeleteResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.DeleteResourceTypeResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.DeleteResourceTypeResponse\n> {\n const payload = { resourceTypeId: ':resourceTypeId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.deleteResourceType(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/resources/resource-types/{resourceTypeId}',\n pathParams: { resourceTypeId: 'resourceTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryResourceTypes(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.QueryResourceTypesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.QueryResourceTypesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.QueryResourceTypesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.QueryResourceTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.queryResourceTypes(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/resource-types/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function countResourceTypes(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.CountResourceTypesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.CountResourceTypesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.CountResourceTypesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.CountResourceTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.countResourceTypes(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/resource-types/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,0BAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,0BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,kEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE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zE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,gBAAgB,iBAAiB;AAAA,IAC/C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,sBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC,mBAAmB,OAAO;AAEzE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,sBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC,mBAAmB,OAAO;AAEzE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["countResourceTypes","createResourceType","deleteResourceType","getResourceType","queryResourceTypes","updateResourceType","import_timestamp","import_rest_modules","payload","createResourceType","getResourceType","updateResourceType","deleteResourceType","queryResourceTypes","countResourceTypes"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/bookings-resources-v2-resource-type-resource-types.http.ts","../../src/bookings-resources-v2-resource-type-resource-types.types.ts","../../src/bookings-resources-v2-resource-type-resource-types.meta.ts"],"sourcesContent":["export * from './src/bookings-resources-v2-resource-type-resource-types.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/bookings/v2/resources/resource-types',\n destPath: '/v2/resources/resource-types',\n },\n {\n srcPath: '/_api/bookings/v2/resources/resource-types',\n destPath: '/v2/resources/resource-types',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/resource-types',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/bookings/v2/resources/resource-types',\n destPath: '/v2/resources/resource-types',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/bookings/v2/resources/resource-types',\n destPath: '/v2/resources/resource-types',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_resource-types';\n\n/** Creates a new resource type. */\nexport function createResourceType(\n payload: object\n): RequestOptionsFactory<any> {\n function __createResourceType({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resourceType.createdDate' },\n { path: 'resourceType.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CreateResourceType',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resourceType.createdDate' },\n { path: 'resourceType.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createResourceType;\n}\n\n/** Retrieves a resource type. */\nexport function getResourceType(payload: object): RequestOptionsFactory<any> {\n function __getResourceType({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'GET' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.GetResourceType',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types/{resourceTypeId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resourceType.createdDate' },\n { path: 'resourceType.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getResourceType;\n}\n\n/**\n * Updates a resource type.\n *\n *\n * Each time the resource type is updated, `revision` increments by 1.\n * You must include current revision of the resource type when updating it.\n * This ensures you're working with the latest service information and prevents unintended overwrites.\n */\nexport function updateResourceType(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateResourceType({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resourceType.createdDate' },\n { path: 'resourceType.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.UpdateResourceType',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types/{resourceType.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resourceType.createdDate' },\n { path: 'resourceType.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateResourceType;\n}\n\n/**\n * Deletes a resource type.\n *\n *\n * Deleting a resource type also automatically deletes all resources connected to it.\n */\nexport function deleteResourceType(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteResourceType({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.DeleteResourceType',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types/{resourceTypeId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteResourceType;\n}\n\n/**\n * Creates a query to retrieve a list of resource types.\n *\n * The `queryResourceTypes()` function builds a query to retrieve a list of resource types and returns a `ResourceTypesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-builder/find) function.\n *\n * You can refine the query by chaining `ResourceTypesQueryBuilder` functions onto the query. `ResourceTypesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResourceTypes()` returns.\n *\n * `queryResourceTypes()` runs with the following `ResourceTypesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `queryResourceTypes()` are applied in the order they are called.\n *\n * The following `ResourceTypesQueryBuilder` functions are supported for the `queryResourceTypes()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-result/items) property in `ResourceTypesQueryResult`.\n */\nexport function queryResourceTypes(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryResourceTypes({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.QueryResourceTypes',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resourceTypes.createdDate' },\n { path: 'resourceTypes.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryResourceTypes;\n}\n\n/**\n * Counts resource types, given the provided filtering.\n *\n *\n * Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)) for a complete list of supported filters.\n */\nexport function countResourceTypes(\n payload: object\n): RequestOptionsFactory<any> {\n function __countResourceTypes({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource_type',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CountResourceTypes',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBookingsResourcesV2ResourcetypesResourceTypesServiceUrl({\n protoPath: '/v2/resources/resource-types/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countResourceTypes;\n}\n","/**\n * A resource type is a classification of resources. For example room, equipment, or vehicle.\n * Customers can only book services ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction)) if at least 1 resource ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction)) for every resource type connected to the service is available during the requested time.\n */\nexport interface ResourceType {\n /**\n * Resource type ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the resource type is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the resource type.\n * @readonly\n */\n revision?: string | null;\n /**\n * Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Name of the resource type. For example, `meeting room`.\n * The name must be unique per site.\n * @maxLength 40\n * @minLength 1\n */\n name?: string | null;\n /** Extensions enabling users to save custom data related to the resource type. */\n extendedFields?: ExtendedFields;\n}\n\nexport interface ResourceCounts {\n /**\n * Total number of resources connected to the type.\n * @readonly\n */\n total?: number | null;\n /**\n * Whether at least 1 resource of the type is available in all business locations ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).\n * @readonly\n */\n hasResourcesInAllLocations?: boolean | null;\n /**\n * Whether at least 1 resource of the type is available in customer locations.\n * @readonly\n */\n hasResourcesInCustomerLocations?: boolean | null;\n /**\n * Whether at least 1 resource of the type is available in custom business locations.\n * @readonly\n */\n hasResourcesInCustomLocations?: boolean | null;\n /**\n * Number of distinct business locations with resources connected to the type.\n * @readonly\n */\n distinctBusinessLocationsCount?: number | null;\n /**\n * IDs of all business locations with resources connected to the type. If there\n * are more than 50 location IDs, only the first 50 IDs are returned.\n * @readonly\n */\n distinctLocationIds?: DistinctLocationIds;\n}\n\nexport interface DistinctLocationIds {\n /**\n * IDs of the business locations with a resource connected to the type.\n * @format GUID\n * @maxSize 50\n */\n values?: string[];\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface CreateResourceTypeRequest {\n /** Resource type to create. */\n resourceType: ResourceType;\n}\n\nexport interface LocationOptions {\n /**\n * Whether the resource is available in all *business locations*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).\n *\n * - `true`: The resource is available in all business locations.\n * - `false`: The resource is available only in specific locations.\n *\n * Default: `false`\n */\n availableInAllLocations?: boolean | null;\n /** Details of resource availability in specific locations. */\n specificLocationOptions?: SpecificLocation;\n}\n\nexport interface SpecificLocation {\n /**\n * Whether the resource is available in *business locations*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).\n *\n * - `true`: The resource is available in business locations.\n * - `false`: The resource isn't available in business locations.\n *\n * Default: `false`\n */\n availableInBusinessLocations?: boolean | null;\n /**\n * Information about the business locations where the resource is available.\n * Not returned, if the resource is available in either all business locations\n * or in no business location.\n * You can specify up to 100 business locations.\n * @maxSize 100\n */\n businessLocations?: BusinessLocation[];\n}\n\nexport interface BusinessLocation {\n /**\n * ID of the business *location*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)).\n * @format GUID\n */\n locationId?: string | null;\n}\n\nexport enum RequestedFields {\n TOTAL_RESOURCE_COUNT = 'TOTAL_RESOURCE_COUNT',\n SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS = 'SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS',\n DISTINCT_RESOURCE_LOCATIONS = 'DISTINCT_RESOURCE_LOCATIONS',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals =\n | RequestedFields\n | 'TOTAL_RESOURCE_COUNT'\n | 'SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS'\n | 'DISTINCT_RESOURCE_LOCATIONS';\n\nexport interface CreateResourceTypeResponse {\n /** Created resource type. */\n resourceType?: ResourceType;\n}\n\nexport enum CreateResourceTypeErrors {\n UNKNOWN_CREATE_RESOURCE_TYPE_ERROR = 'UNKNOWN_CREATE_RESOURCE_TYPE_ERROR',\n /** Failed to create requested `quantity` of resources for the resource type */\n FAILED_TO_CREATE_RESOURCES = 'FAILED_TO_CREATE_RESOURCES',\n}\n\n/** @enumType */\nexport type CreateResourceTypeErrorsWithLiterals =\n | CreateResourceTypeErrors\n | 'UNKNOWN_CREATE_RESOURCE_TYPE_ERROR'\n | 'FAILED_TO_CREATE_RESOURCES';\n\nexport interface GetResourceTypeRequest {\n /**\n * ID of the resource type to retrieve.\n * @format GUID\n */\n resourceTypeId: string;\n}\n\nexport interface GetResourceTypeResponse {\n /** Retrieved resource type. */\n resourceType?: ResourceType;\n}\n\nexport interface UpdateResourceTypeRequest {\n /** Resource type to update. */\n resourceType: ResourceType;\n}\n\nexport interface UpdateResourceTypeResponse {\n /** Updated resource type. */\n resourceType?: ResourceType;\n}\n\nexport interface DeleteResourceTypeRequest {\n /**\n * ID of the resource type to delete.\n * @format GUID\n */\n resourceTypeId: string;\n}\n\nexport interface DeleteResourceTypeResponse {}\n\nexport interface QueryResourceTypesRequest {\n /**\n * Information about filtering and sorting.\n * Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)) for a complete list of supported filters and sorting options.\n */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 3\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 200\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryResourceTypesResponse {\n /** Retrieved resource types. */\n resourceTypes?: ResourceType[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor pointing to next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface CountResourceTypesRequest {\n /**\n * Filter to base the count on.\n * Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)) for a complete list of supported filters.\n */\n filter?: Record<string, any> | null;\n}\n\nexport interface CountResourceTypesResponse {\n /** Number of resource types matching the filter. */\n count?: number;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type CreateResourceTypeApplicationErrors =\n | {\n code?: 'RESOURCE_TYPE_ALREADY_EXISTS_FOR_NAME';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MAX_NUMBER_OF_RESOURCE_TYPES_REACHED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateResourceTypeApplicationErrors = {\n code?: 'RESOURCE_TYPE_ALREADY_EXISTS_FOR_NAME';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixBookingsResourcesV2ResourceType from './bookings-resources-v2-resource-type-resource-types.http.js';\nimport * as ambassadorWixBookingsResourcesV2ResourceTypeTypes from './bookings-resources-v2-resource-type-resource-types.types.js';\nimport * as ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes from './bookings-resources-v2-resource-type-resource-types.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createResourceType(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.CreateResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.CreateResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.CreateResourceTypeResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.CreateResourceTypeResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.createResourceType(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/resource-types',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getResourceType(): __PublicMethodMetaInfo<\n 'GET',\n { resourceTypeId: string },\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.GetResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.GetResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.GetResourceTypeResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.GetResourceTypeResponse\n> {\n const payload = { resourceTypeId: ':resourceTypeId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.getResourceType(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/resources/resource-types/{resourceTypeId}',\n pathParams: { resourceTypeId: 'resourceTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateResourceType(): __PublicMethodMetaInfo<\n 'PATCH',\n { resourceTypeId: string },\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.UpdateResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.UpdateResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.UpdateResourceTypeResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.UpdateResourceTypeResponse\n> {\n const payload = { resourceType: { id: ':resourceTypeId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.updateResourceType(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/resources/resource-types/{resourceType.id}',\n pathParams: { resourceTypeId: 'resourceTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteResourceType(): __PublicMethodMetaInfo<\n 'DELETE',\n { resourceTypeId: string },\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.DeleteResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.DeleteResourceTypeRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.DeleteResourceTypeResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.DeleteResourceTypeResponse\n> {\n const payload = { resourceTypeId: ':resourceTypeId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.deleteResourceType(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/resources/resource-types/{resourceTypeId}',\n pathParams: { resourceTypeId: 'resourceTypeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryResourceTypes(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.QueryResourceTypesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.QueryResourceTypesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.QueryResourceTypesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.QueryResourceTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.queryResourceTypes(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/resource-types/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function countResourceTypes(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.CountResourceTypesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.CountResourceTypesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypeUniversalTypes.CountResourceTypesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypeTypes.CountResourceTypesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2ResourceType.countResourceTypes(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/resource-types/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n ResourceType as ResourceTypeOriginal,\n ResourceCounts as ResourceCountsOriginal,\n DistinctLocationIds as DistinctLocationIdsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n CreateResourceTypeRequest as CreateResourceTypeRequestOriginal,\n LocationOptions as LocationOptionsOriginal,\n SpecificLocation as SpecificLocationOriginal,\n BusinessLocation as BusinessLocationOriginal,\n RequestedFields as RequestedFieldsOriginal,\n RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal,\n CreateResourceTypeResponse as CreateResourceTypeResponseOriginal,\n CreateResourceTypeErrors as CreateResourceTypeErrorsOriginal,\n CreateResourceTypeErrorsWithLiterals as CreateResourceTypeErrorsWithLiteralsOriginal,\n GetResourceTypeRequest as GetResourceTypeRequestOriginal,\n GetResourceTypeResponse as GetResourceTypeResponseOriginal,\n UpdateResourceTypeRequest as UpdateResourceTypeRequestOriginal,\n UpdateResourceTypeResponse as UpdateResourceTypeResponseOriginal,\n DeleteResourceTypeRequest as DeleteResourceTypeRequestOriginal,\n DeleteResourceTypeResponse as DeleteResourceTypeResponseOriginal,\n QueryResourceTypesRequest as QueryResourceTypesRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryResourceTypesResponse as QueryResourceTypesResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n CountResourceTypesRequest as CountResourceTypesRequestOriginal,\n CountResourceTypesResponse as CountResourceTypesResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n CreateResourceTypeApplicationErrors as CreateResourceTypeApplicationErrorsOriginal,\n UpdateResourceTypeApplicationErrors as UpdateResourceTypeApplicationErrorsOriginal,\n} from './bookings-resources-v2-resource-type-resource-types.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,0BAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,0BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,kEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,mBACd,SAC4B;AAC5B,WAAS,qBAAqB,EAAE,KAAK,GAAQ;AAC3C,UAAM,qBAAiB,uCAAe,SAAS;AAAA,M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es","createResourceType","deleteResourceType","getResourceType","queryResourceTypes","updateResourceType","import_timestamp","import_rest_modules","payload","RequestedFields","CreateResourceTypeErrors","SortOrder","WebhookIdentityType","createResourceType","getResourceType","updateResourceType","deleteResourceType","queryResourceTypes","countResourceTypes"]}