@wix/auto_sdk_bookings_resource-types 1.0.20 → 1.0.21

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.
Files changed (133) hide show
  1. package/build/{internal/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts → bookings-resources-v2-resource-type-resource-types.universal-B4JpDLR9.d.mts} +53 -247
  2. package/build/{cjs/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts → bookings-resources-v2-resource-type-resource-types.universal-B4JpDLR9.d.ts} +53 -247
  3. package/build/index.d.mts +108 -0
  4. package/build/index.d.ts +108 -0
  5. package/build/index.js +578 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +542 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{es/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts → internal/bookings-resources-v2-resource-type-resource-types.universal-B4JpDLR9.d.mts} +53 -247
  10. package/build/internal/{es/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts → bookings-resources-v2-resource-type-resource-types.universal-B4JpDLR9.d.ts} +53 -247
  11. package/build/internal/index.d.mts +108 -0
  12. package/build/internal/index.d.ts +108 -0
  13. package/build/internal/index.js +578 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +542 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +223 -0
  18. package/build/internal/meta.d.ts +223 -0
  19. package/build/internal/meta.js +358 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +326 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +223 -0
  24. package/build/meta.d.ts +223 -0
  25. package/build/meta.js +358 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +326 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.context.d.ts +0 -26
  40. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.context.js +0 -33
  41. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.context.js.map +0 -1
  42. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.http.d.ts +0 -49
  43. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.http.js +0 -258
  44. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.http.js.map +0 -1
  45. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.meta.d.ts +0 -24
  46. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.meta.js +0 -142
  47. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.meta.js.map +0 -1
  48. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.public.d.ts +0 -89
  49. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.public.js +0 -81
  50. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.public.js.map +0 -1
  51. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +0 -430
  52. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.types.js +0 -29
  53. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.types.js.map +0 -1
  54. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js +0 -381
  55. package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/src/bookings-resources-v2-resource-type-resource-types.context.d.ts +0 -26
  66. package/build/es/src/bookings-resources-v2-resource-type-resource-types.context.js +0 -26
  67. package/build/es/src/bookings-resources-v2-resource-type-resource-types.context.js.map +0 -1
  68. package/build/es/src/bookings-resources-v2-resource-type-resource-types.http.d.ts +0 -49
  69. package/build/es/src/bookings-resources-v2-resource-type-resource-types.http.js +0 -249
  70. package/build/es/src/bookings-resources-v2-resource-type-resource-types.http.js.map +0 -1
  71. package/build/es/src/bookings-resources-v2-resource-type-resource-types.meta.d.ts +0 -24
  72. package/build/es/src/bookings-resources-v2-resource-type-resource-types.meta.js +0 -110
  73. package/build/es/src/bookings-resources-v2-resource-type-resource-types.meta.js.map +0 -1
  74. package/build/es/src/bookings-resources-v2-resource-type-resource-types.public.d.ts +0 -89
  75. package/build/es/src/bookings-resources-v2-resource-type-resource-types.public.js +0 -68
  76. package/build/es/src/bookings-resources-v2-resource-type-resource-types.public.js.map +0 -1
  77. package/build/es/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +0 -430
  78. package/build/es/src/bookings-resources-v2-resource-type-resource-types.types.js +0 -26
  79. package/build/es/src/bookings-resources-v2-resource-type-resource-types.types.js.map +0 -1
  80. package/build/es/src/bookings-resources-v2-resource-type-resource-types.universal.js +0 -349
  81. package/build/es/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +0 -1
  82. package/build/internal/cjs/index.d.ts +0 -1
  83. package/build/internal/cjs/index.js +0 -18
  84. package/build/internal/cjs/index.js.map +0 -1
  85. package/build/internal/cjs/index.typings.d.ts +0 -1
  86. package/build/internal/cjs/index.typings.js +0 -18
  87. package/build/internal/cjs/index.typings.js.map +0 -1
  88. package/build/internal/cjs/meta.d.ts +0 -1
  89. package/build/internal/cjs/meta.js +0 -18
  90. package/build/internal/cjs/meta.js.map +0 -1
  91. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.context.d.ts +0 -26
  92. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.context.js +0 -33
  93. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.context.js.map +0 -1
  94. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.http.d.ts +0 -49
  95. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.http.js +0 -258
  96. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.http.js.map +0 -1
  97. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.meta.d.ts +0 -24
  98. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.meta.js +0 -142
  99. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.meta.js.map +0 -1
  100. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.public.d.ts +0 -89
  101. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.public.js +0 -81
  102. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.public.js.map +0 -1
  103. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +0 -430
  104. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.types.js +0 -29
  105. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.types.js.map +0 -1
  106. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js +0 -381
  107. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +0 -1
  108. package/build/internal/es/index.d.ts +0 -1
  109. package/build/internal/es/index.js +0 -2
  110. package/build/internal/es/index.js.map +0 -1
  111. package/build/internal/es/index.typings.d.ts +0 -1
  112. package/build/internal/es/index.typings.js +0 -2
  113. package/build/internal/es/index.typings.js.map +0 -1
  114. package/build/internal/es/meta.d.ts +0 -1
  115. package/build/internal/es/meta.js +0 -2
  116. package/build/internal/es/meta.js.map +0 -1
  117. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.context.d.ts +0 -26
  118. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.context.js +0 -26
  119. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.context.js.map +0 -1
  120. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.http.d.ts +0 -49
  121. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.http.js +0 -249
  122. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.http.js.map +0 -1
  123. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.meta.d.ts +0 -24
  124. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.meta.js +0 -110
  125. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.meta.js.map +0 -1
  126. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.public.d.ts +0 -89
  127. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.public.js +0 -68
  128. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.public.js.map +0 -1
  129. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +0 -430
  130. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.types.js +0 -26
  131. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.types.js.map +0 -1
  132. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.universal.js +0 -349
  133. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +0 -1
@@ -1,4 +1,3 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
1
  /**
3
2
  * A resource type is a classification of resources. For example room, equipment,
4
3
  * or vehicle. Customers can only book *services*
@@ -7,7 +6,7 @@ import { NonNullablePaths } from '@wix/sdk-types';
7
6
  * ([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))
8
7
  * for every resource type connected to the service is available during the requested time.
9
8
  */
10
- export interface ResourceType {
9
+ interface ResourceType {
11
10
  /**
12
11
  * Resource type ID.
13
12
  * @format GUID
@@ -41,7 +40,7 @@ export interface ResourceType {
41
40
  /** Extensions enabling users to save custom data related to the resource type. */
42
41
  extendedFields?: ExtendedFields;
43
42
  }
44
- export interface ResourceCounts {
43
+ interface ResourceCounts {
45
44
  /**
46
45
  * Total number of resources connected to the type.
47
46
  * @readonly
@@ -75,7 +74,7 @@ export interface ResourceCounts {
75
74
  */
76
75
  distinctLocationIds?: DistinctLocationIds;
77
76
  }
78
- export interface DistinctLocationIds {
77
+ interface DistinctLocationIds {
79
78
  /**
80
79
  * IDs of the business locations with a resource connected to the type.
81
80
  * @format GUID
@@ -83,7 +82,7 @@ export interface DistinctLocationIds {
83
82
  */
84
83
  values?: string[];
85
84
  }
86
- export interface ExtendedFields {
85
+ interface ExtendedFields {
87
86
  /**
88
87
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
89
88
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -94,11 +93,11 @@ export interface ExtendedFields {
94
93
  */
95
94
  namespaces?: Record<string, Record<string, any>>;
96
95
  }
97
- export interface CreateResourceTypeRequest {
96
+ interface CreateResourceTypeRequest {
98
97
  /** Resource type to create. */
99
98
  resourceType: ResourceType;
100
99
  }
101
- export interface LocationOptions {
100
+ interface LocationOptions {
102
101
  /**
103
102
  * Whether the resource is available in all *business locations*
104
103
  * ([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)).
@@ -112,7 +111,7 @@ export interface LocationOptions {
112
111
  /** Details of resource availability in specific locations. */
113
112
  specificLocationOptions?: SpecificLocation;
114
113
  }
115
- export interface SpecificLocation {
114
+ interface SpecificLocation {
116
115
  /**
117
116
  * Whether the resource is available in *business locations*
118
117
  * ([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)).
@@ -132,7 +131,7 @@ export interface SpecificLocation {
132
131
  */
133
132
  businessLocations?: BusinessLocation[];
134
133
  }
135
- export interface BusinessLocation {
134
+ interface BusinessLocation {
136
135
  /**
137
136
  * ID of the business *location*
138
137
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)).
@@ -140,53 +139,49 @@ export interface BusinessLocation {
140
139
  */
141
140
  locationId?: string | null;
142
141
  }
143
- export declare enum RequestedFields {
142
+ declare enum RequestedFields {
144
143
  TOTAL_RESOURCE_COUNT = "TOTAL_RESOURCE_COUNT",
145
144
  SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS = "SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS",
146
145
  DISTINCT_RESOURCE_LOCATIONS = "DISTINCT_RESOURCE_LOCATIONS"
147
146
  }
148
- /** @enumType */
149
- export type RequestedFieldsWithLiterals = RequestedFields | 'TOTAL_RESOURCE_COUNT' | 'SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS' | 'DISTINCT_RESOURCE_LOCATIONS';
150
- export interface CreateResourceTypeResponse {
147
+ interface CreateResourceTypeResponse {
151
148
  /** Created resource type. */
152
149
  resourceType?: ResourceType;
153
150
  }
154
- export declare enum CreateResourceTypeErrors {
151
+ declare enum CreateResourceTypeErrors {
155
152
  UNKNOWN_CREATE_RESOURCE_TYPE_ERROR = "UNKNOWN_CREATE_RESOURCE_TYPE_ERROR",
156
153
  /** Failed to create requested `quantity` of resources for the resource type */
157
154
  FAILED_TO_CREATE_RESOURCES = "FAILED_TO_CREATE_RESOURCES"
158
155
  }
159
- /** @enumType */
160
- export type CreateResourceTypeErrorsWithLiterals = CreateResourceTypeErrors | 'UNKNOWN_CREATE_RESOURCE_TYPE_ERROR' | 'FAILED_TO_CREATE_RESOURCES';
161
- export interface GetResourceTypeRequest {
156
+ interface GetResourceTypeRequest {
162
157
  /**
163
158
  * ID of the resource type to retrieve.
164
159
  * @format GUID
165
160
  */
166
161
  resourceTypeId: string;
167
162
  }
168
- export interface GetResourceTypeResponse {
163
+ interface GetResourceTypeResponse {
169
164
  /** Retrieved resource type. */
170
165
  resourceType?: ResourceType;
171
166
  }
172
- export interface UpdateResourceTypeRequest {
167
+ interface UpdateResourceTypeRequest {
173
168
  /** Resource type to update. */
174
169
  resourceType: ResourceType;
175
170
  }
176
- export interface UpdateResourceTypeResponse {
171
+ interface UpdateResourceTypeResponse {
177
172
  /** Updated resource type. */
178
173
  resourceType?: ResourceType;
179
174
  }
180
- export interface DeleteResourceTypeRequest {
175
+ interface DeleteResourceTypeRequest {
181
176
  /**
182
177
  * ID of the resource type to delete.
183
178
  * @format GUID
184
179
  */
185
180
  resourceTypeId: string;
186
181
  }
187
- export interface DeleteResourceTypeResponse {
182
+ interface DeleteResourceTypeResponse {
188
183
  }
189
- export interface QueryResourceTypesRequest {
184
+ interface QueryResourceTypesRequest {
190
185
  /**
191
186
  * Information about filtering and sorting.
192
187
  * Refer to the *supported filters article*
@@ -195,7 +190,7 @@ export interface QueryResourceTypesRequest {
195
190
  */
196
191
  query?: CursorQuery;
197
192
  }
198
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
193
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
199
194
  /** 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`. */
200
195
  cursorPaging?: CursorPaging;
201
196
  /**
@@ -215,11 +210,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
215
210
  sort?: Sorting[];
216
211
  }
217
212
  /** @oneof */
218
- export interface CursorQueryPagingMethodOneOf {
213
+ interface CursorQueryPagingMethodOneOf {
219
214
  /** 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`. */
220
215
  cursorPaging?: CursorPaging;
221
216
  }
222
- export interface Sorting {
217
+ interface Sorting {
223
218
  /**
224
219
  * Name of the field to sort by.
225
220
  * @maxLength 200
@@ -228,13 +223,13 @@ export interface Sorting {
228
223
  /** Sort order. */
229
224
  order?: SortOrderWithLiterals;
230
225
  }
231
- export declare enum SortOrder {
226
+ declare enum SortOrder {
232
227
  ASC = "ASC",
233
228
  DESC = "DESC"
234
229
  }
235
230
  /** @enumType */
236
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
237
- export interface CursorPaging {
231
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
232
+ interface CursorPaging {
238
233
  /**
239
234
  * Number of items to load.
240
235
  * @max 100
@@ -250,13 +245,13 @@ export interface CursorPaging {
250
245
  */
251
246
  cursor?: string | null;
252
247
  }
253
- export interface QueryResourceTypesResponse {
248
+ interface QueryResourceTypesResponse {
254
249
  /** Retrieved resource types. */
255
250
  resourceTypes?: ResourceType[];
256
251
  /** Paging metadata. */
257
252
  pagingMetadata?: CursorPagingMetadata;
258
253
  }
259
- export interface CursorPagingMetadata {
254
+ interface CursorPagingMetadata {
260
255
  /** Number of items returned in the response. */
261
256
  count?: number | null;
262
257
  /** Offset that was requested. */
@@ -268,7 +263,7 @@ export interface CursorPagingMetadata {
268
263
  */
269
264
  hasNext?: boolean | null;
270
265
  }
271
- export interface Cursors {
266
+ interface Cursors {
272
267
  /**
273
268
  * Cursor pointing to next page in the list of results.
274
269
  * @maxLength 16000
@@ -280,7 +275,7 @@ export interface Cursors {
280
275
  */
281
276
  prev?: string | null;
282
277
  }
283
- export interface CountResourceTypesRequest {
278
+ interface CountResourceTypesRequest {
284
279
  /**
285
280
  * Filter to base the count on.
286
281
  * Refer to the *supported filters article*
@@ -289,11 +284,11 @@ export interface CountResourceTypesRequest {
289
284
  */
290
285
  filter?: Record<string, any> | null;
291
286
  }
292
- export interface CountResourceTypesResponse {
287
+ interface CountResourceTypesResponse {
293
288
  /** Number of resource types matching the filter. */
294
289
  count?: number;
295
290
  }
296
- export interface DomainEvent extends DomainEventBodyOneOf {
291
+ interface DomainEvent extends DomainEventBodyOneOf {
297
292
  createdEvent?: EntityCreatedEvent;
298
293
  updatedEvent?: EntityUpdatedEvent;
299
294
  deletedEvent?: EntityDeletedEvent;
@@ -328,19 +323,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
328
323
  entityEventSequence?: string | null;
329
324
  }
330
325
  /** @oneof */
331
- export interface DomainEventBodyOneOf {
326
+ interface DomainEventBodyOneOf {
332
327
  createdEvent?: EntityCreatedEvent;
333
328
  updatedEvent?: EntityUpdatedEvent;
334
329
  deletedEvent?: EntityDeletedEvent;
335
330
  actionEvent?: ActionEvent;
336
331
  }
337
- export interface EntityCreatedEvent {
332
+ interface EntityCreatedEvent {
338
333
  entity?: string;
339
334
  }
340
- export interface RestoreInfo {
335
+ interface RestoreInfo {
341
336
  deletedDate?: Date | null;
342
337
  }
343
- export interface EntityUpdatedEvent {
338
+ interface EntityUpdatedEvent {
344
339
  /**
345
340
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
346
341
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -348,14 +343,14 @@ export interface EntityUpdatedEvent {
348
343
  */
349
344
  currentEntity?: string;
350
345
  }
351
- export interface EntityDeletedEvent {
346
+ interface EntityDeletedEvent {
352
347
  /** Entity that was deleted. */
353
348
  deletedEntity?: string | null;
354
349
  }
355
- export interface ActionEvent {
350
+ interface ActionEvent {
356
351
  body?: string;
357
352
  }
358
- export interface MessageEnvelope {
353
+ interface MessageEnvelope {
359
354
  /**
360
355
  * App instance ID.
361
356
  * @format GUID
@@ -371,7 +366,7 @@ export interface MessageEnvelope {
371
366
  /** Stringify payload. */
372
367
  data?: string;
373
368
  }
374
- export interface IdentificationData extends IdentificationDataIdOneOf {
369
+ interface IdentificationData extends IdentificationDataIdOneOf {
375
370
  /**
376
371
  * ID of a site visitor that has not logged in to the site.
377
372
  * @format GUID
@@ -396,7 +391,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
396
391
  identityType?: WebhookIdentityTypeWithLiterals;
397
392
  }
398
393
  /** @oneof */
399
- export interface IdentificationDataIdOneOf {
394
+ interface IdentificationDataIdOneOf {
400
395
  /**
401
396
  * ID of a site visitor that has not logged in to the site.
402
397
  * @format GUID
@@ -418,7 +413,7 @@ export interface IdentificationDataIdOneOf {
418
413
  */
419
414
  appId?: string;
420
415
  }
421
- export declare enum WebhookIdentityType {
416
+ declare enum WebhookIdentityType {
422
417
  UNKNOWN = "UNKNOWN",
423
418
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
424
419
  MEMBER = "MEMBER",
@@ -426,8 +421,8 @@ export declare enum WebhookIdentityType {
426
421
  APP = "APP"
427
422
  }
428
423
  /** @enumType */
429
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
430
- export interface BaseEventMetadata {
424
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
425
+ interface BaseEventMetadata {
431
426
  /**
432
427
  * App instance ID.
433
428
  * @format GUID
@@ -441,7 +436,7 @@ export interface BaseEventMetadata {
441
436
  /** The identification type and identity data. */
442
437
  identity?: IdentificationData;
443
438
  }
444
- export interface EventMetadata extends BaseEventMetadata {
439
+ interface EventMetadata extends BaseEventMetadata {
445
440
  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
446
441
  _id?: string;
447
442
  /**
@@ -471,127 +466,18 @@ export interface EventMetadata extends BaseEventMetadata {
471
466
  */
472
467
  entityEventSequence?: string | null;
473
468
  }
474
- export interface ResourceTypeCreatedEnvelope {
469
+ interface ResourceTypeCreatedEnvelope {
475
470
  entity: ResourceType;
476
471
  metadata: EventMetadata;
477
472
  }
478
- /**
479
- * Triggered when a resource type is created.
480
- * @webhook
481
- * @eventType wix.bookings.resources.v2.resource_type_created
482
- * @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
483
- * @slug created
484
- * @documentationMaturity preview
485
- */
486
- export declare function onResourceTypeCreated(handler: (event: ResourceTypeCreatedEnvelope) => void | Promise<void>): void;
487
- export interface ResourceTypeDeletedEnvelope {
473
+ interface ResourceTypeDeletedEnvelope {
488
474
  metadata: EventMetadata;
489
475
  }
490
- /**
491
- * Triggered when a resource type is deleted.
492
- * @webhook
493
- * @eventType wix.bookings.resources.v2.resource_type_deleted
494
- * @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
495
- * @slug deleted
496
- * @documentationMaturity preview
497
- */
498
- export declare function onResourceTypeDeleted(handler: (event: ResourceTypeDeletedEnvelope) => void | Promise<void>): void;
499
- export interface ResourceTypeUpdatedEnvelope {
476
+ interface ResourceTypeUpdatedEnvelope {
500
477
  entity: ResourceType;
501
478
  metadata: EventMetadata;
502
479
  }
503
- /**
504
- * Triggered when a resource type is updated.
505
- * @webhook
506
- * @eventType wix.bookings.resources.v2.resource_type_updated
507
- * @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
508
- * @slug updated
509
- * @documentationMaturity preview
510
- */
511
- export declare function onResourceTypeUpdated(handler: (event: ResourceTypeUpdatedEnvelope) => void | Promise<void>): void;
512
- /**
513
- * Creates a new resource type.
514
- * @param resourceType - Resource type to create.
515
- * @public
516
- * @documentationMaturity preview
517
- * @requiredField resourceType
518
- * @requiredField resourceType.name
519
- * @permissionId BOOKINGS.RESOURCE_TYPE_CREATE
520
- * @permissionScope Manage Bookings
521
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
522
- * @permissionScope Manage Bookings - all permissions
523
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
524
- * @applicableIdentity APP
525
- * @returns Created resource type.
526
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CreateResourceType
527
- */
528
- export declare function createResourceType(resourceType: NonNullablePaths<ResourceType, `name`>): Promise<ResourceType>;
529
- /**
530
- * Retrieves a resource type.
531
- * @param resourceTypeId - ID of the resource type to retrieve.
532
- * @public
533
- * @documentationMaturity preview
534
- * @requiredField resourceTypeId
535
- * @permissionId BOOKINGS.RESOURCE_TYPE_READ
536
- * @permissionId BOOKINGS.RESOURCES_READ
537
- * @permissionScope Read Bookings - Public Data
538
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
539
- * @permissionScope Manage Bookings
540
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
541
- * @permissionScope Read Bookings - Including Participants
542
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
543
- * @permissionScope Read Bookings - all read permissions
544
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
545
- * @permissionScope Manage Bookings - all permissions
546
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
547
- * @permissionScope Manage Stores
548
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
549
- * @permissionScope Read Bookings - Public Data
550
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
551
- * @permissionScope Manage Bookings Services and Settings
552
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
553
- * @permissionScope Manage Bookings
554
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
555
- * @permissionScope Read Bookings - Including Participants
556
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
557
- * @permissionScope Read Bookings - all read permissions
558
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
559
- * @permissionScope Manage Bookings - all permissions
560
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
561
- * @permissionScope Read bookings calendar - including participants
562
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
563
- * @permissionScope Read Bookings Calendar
564
- * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
565
- * @applicableIdentity APP
566
- * @applicableIdentity VISITOR
567
- * @returns Retrieved resource type.
568
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.GetResourceType
569
- */
570
- export declare function getResourceType(resourceTypeId: string): Promise<ResourceType>;
571
- /**
572
- * Updates a resource type.
573
- *
574
- *
575
- * Each time the resource type is updated, `revision` increments by 1. You must
576
- * include current revision of the resource type when updating it. This ensures
577
- * you're working with the latest service information and prevents unintended overwrites.
578
- * @param _id - Resource type ID.
579
- * @public
580
- * @documentationMaturity preview
581
- * @requiredField _id
582
- * @requiredField resourceType
583
- * @requiredField resourceType.revision
584
- * @permissionId BOOKINGS.RESOURCE_TYPE_UPDATE
585
- * @permissionScope Manage Bookings
586
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
587
- * @permissionScope Manage Bookings - all permissions
588
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
589
- * @applicableIdentity APP
590
- * @returns Updated resource type.
591
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.UpdateResourceType
592
- */
593
- export declare function updateResourceType(_id: string, resourceType: NonNullablePaths<UpdateResourceType, `revision`>): Promise<ResourceType>;
594
- export interface UpdateResourceType {
480
+ interface UpdateResourceType {
595
481
  /**
596
482
  * Resource type ID.
597
483
  * @format GUID
@@ -625,60 +511,7 @@ export interface UpdateResourceType {
625
511
  /** Extensions enabling users to save custom data related to the resource type. */
626
512
  extendedFields?: ExtendedFields;
627
513
  }
628
- /**
629
- * Deletes a resource type.
630
- *
631
- *
632
- * Deleting a resource type also automatically deletes all resources connected to it.
633
- * @param resourceTypeId - ID of the resource type to delete.
634
- * @public
635
- * @documentationMaturity preview
636
- * @requiredField resourceTypeId
637
- * @permissionId BOOKINGS.RESOURCE_TYPE_DELETE
638
- * @permissionScope Manage Bookings
639
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
640
- * @permissionScope Manage Bookings - all permissions
641
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
642
- * @applicableIdentity APP
643
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.DeleteResourceType
644
- */
645
- export declare function deleteResourceType(resourceTypeId: string): Promise<void>;
646
- /**
647
- * Creates a query to retrieve a list of resource types.
648
- *
649
- * The `queryResourceTypes()` function builds a query to retrieve a list of resource types and returns a `ResourceTypesQueryBuilder` object.
650
- *
651
- * 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.
652
- *
653
- * 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.
654
- *
655
- * `queryResourceTypes()` runs with the following `ResourceTypesQueryBuilder` default that you can override:
656
- *
657
- * + `limit` is `50`.
658
- * + Sorted by `id` in ascending order.
659
- *
660
- * The functions that are chained to `queryResourceTypes()` are applied in the order they are called.
661
- *
662
- * 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`.
663
- * @public
664
- * @documentationMaturity preview
665
- * @permissionScope Read Bookings - Public Data
666
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
667
- * @permissionScope Manage Bookings
668
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
669
- * @permissionScope Read Bookings - Including Participants
670
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
671
- * @permissionScope Read Bookings - all read permissions
672
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
673
- * @permissionScope Manage Bookings - all permissions
674
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
675
- * @permissionId BOOKINGS.RESOURCE_TYPE_READ
676
- * @applicableIdentity APP
677
- * @applicableIdentity VISITOR
678
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.QueryResourceTypes
679
- */
680
- export declare function queryResourceTypes(options?: QueryResourceTypesOptions): ResourceTypesQueryBuilder;
681
- export interface QueryResourceTypesOptions {
514
+ interface QueryResourceTypesOptions {
682
515
  }
683
516
  interface QueryCursorResult {
684
517
  cursors: Cursors;
@@ -687,13 +520,13 @@ interface QueryCursorResult {
687
520
  length: number;
688
521
  pageSize: number;
689
522
  }
690
- export interface ResourceTypesQueryResult extends QueryCursorResult {
523
+ interface ResourceTypesQueryResult extends QueryCursorResult {
691
524
  items: ResourceType[];
692
525
  query: ResourceTypesQueryBuilder;
693
526
  next: () => Promise<ResourceTypesQueryResult>;
694
527
  prev: () => Promise<ResourceTypesQueryResult>;
695
528
  }
696
- export interface ResourceTypesQueryBuilder {
529
+ interface ResourceTypesQueryBuilder {
697
530
  /** @param propertyName - Property whose value is compared with `value`.
698
531
  * @param value - Value to compare against.
699
532
  * @documentationMaturity preview
@@ -749,35 +582,7 @@ export interface ResourceTypesQueryBuilder {
749
582
  /** @documentationMaturity preview */
750
583
  find: () => Promise<ResourceTypesQueryResult>;
751
584
  }
752
- /**
753
- * Counts resource types, given the provided filtering.
754
- *
755
- *
756
- * Refer to the *supported filters article*
757
- * ([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))
758
- * for a complete list of supported filters.
759
- * @public
760
- * @documentationMaturity preview
761
- * @param options - Filter to base the count on. See
762
- * [queryResourceTypes()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/query-resource-types)
763
- * for supported filters.
764
- * @permissionId BOOKINGS.RESOURCE_TYPE_READ
765
- * @permissionScope Read Bookings - Public Data
766
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
767
- * @permissionScope Manage Bookings
768
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
769
- * @permissionScope Read Bookings - Including Participants
770
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
771
- * @permissionScope Read Bookings - all read permissions
772
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
773
- * @permissionScope Manage Bookings - all permissions
774
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
775
- * @applicableIdentity APP
776
- * @applicableIdentity VISITOR
777
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CountResourceTypes
778
- */
779
- export declare function countResourceTypes(options?: CountResourceTypesOptions): Promise<NonNullablePaths<CountResourceTypesResponse, `count`>>;
780
- export interface CountResourceTypesOptions {
585
+ interface CountResourceTypesOptions {
781
586
  /**
782
587
  * Filter to base the count on.
783
588
  * Refer to the *supported filters article*
@@ -786,4 +591,5 @@ export interface CountResourceTypesOptions {
786
591
  */
787
592
  filter?: Record<string, any> | null;
788
593
  }
789
- export {};
594
+
595
+ export { type DomainEventBodyOneOf as A, type BusinessLocation as B, type CountResourceTypesOptions as C, type DistinctLocationIds as D, type ExtendedFields as E, type EntityCreatedEvent as F, type GetResourceTypeRequest as G, type RestoreInfo as H, type EntityUpdatedEvent as I, type EntityDeletedEvent as J, type ActionEvent as K, type LocationOptions as L, type MessageEnvelope as M, type IdentificationData as N, type IdentificationDataIdOneOf as O, type BaseEventMetadata as P, type QueryResourceTypesOptions as Q, type ResourceType as R, SortOrder as S, type EventMetadata as T, type UpdateResourceType as U, type ResourceTypesQueryResult as V, WebhookIdentityType as W, type ResourceTypesQueryBuilder as a, type CountResourceTypesResponse as b, type ResourceTypeCreatedEnvelope as c, type ResourceTypeDeletedEnvelope as d, type ResourceTypeUpdatedEnvelope as e, RequestedFields as f, CreateResourceTypeErrors as g, type ResourceCounts as h, type CreateResourceTypeRequest as i, type SpecificLocation as j, type CreateResourceTypeResponse as k, type GetResourceTypeResponse as l, type UpdateResourceTypeRequest as m, type UpdateResourceTypeResponse as n, type DeleteResourceTypeRequest as o, type DeleteResourceTypeResponse as p, type QueryResourceTypesRequest as q, type CursorQuery as r, type CursorQueryPagingMethodOneOf as s, type Sorting as t, type CursorPaging as u, type QueryResourceTypesResponse as v, type CursorPagingMetadata as w, type Cursors as x, type CountResourceTypesRequest as y, type DomainEvent as z };