@wix/auto_sdk_bookings_resource-types 1.0.8 → 1.0.9

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 (134) 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-DcbS99UT.d.mts} +51 -239
  2. package/build/{cjs/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts → bookings-resources-v2-resource-type-resource-types.universal-DcbS99UT.d.ts} +51 -239
  3. package/build/index.d.mts +106 -0
  4. package/build/index.d.ts +106 -0
  5. package/build/index.js +575 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +539 -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-DcbS99UT.d.mts} +51 -239
  10. package/build/internal/{es/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts → bookings-resources-v2-resource-type-resource-types.universal-DcbS99UT.d.ts} +51 -239
  11. package/build/internal/index.d.mts +106 -0
  12. package/build/internal/index.d.ts +106 -0
  13. package/build/internal/index.js +575 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +539 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +221 -0
  18. package/build/internal/meta.d.ts +221 -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 +221 -0
  24. package/build/meta.d.ts +221 -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 +13 -12
  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 -377
  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/package.json +0 -3
  66. package/build/es/src/bookings-resources-v2-resource-type-resource-types.context.d.ts +0 -26
  67. package/build/es/src/bookings-resources-v2-resource-type-resource-types.context.js +0 -26
  68. package/build/es/src/bookings-resources-v2-resource-type-resource-types.context.js.map +0 -1
  69. package/build/es/src/bookings-resources-v2-resource-type-resource-types.http.d.ts +0 -49
  70. package/build/es/src/bookings-resources-v2-resource-type-resource-types.http.js +0 -249
  71. package/build/es/src/bookings-resources-v2-resource-type-resource-types.http.js.map +0 -1
  72. package/build/es/src/bookings-resources-v2-resource-type-resource-types.meta.d.ts +0 -24
  73. package/build/es/src/bookings-resources-v2-resource-type-resource-types.meta.js +0 -110
  74. package/build/es/src/bookings-resources-v2-resource-type-resource-types.meta.js.map +0 -1
  75. package/build/es/src/bookings-resources-v2-resource-type-resource-types.public.d.ts +0 -89
  76. package/build/es/src/bookings-resources-v2-resource-type-resource-types.public.js +0 -68
  77. package/build/es/src/bookings-resources-v2-resource-type-resource-types.public.js.map +0 -1
  78. package/build/es/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +0 -430
  79. package/build/es/src/bookings-resources-v2-resource-type-resource-types.types.js +0 -26
  80. package/build/es/src/bookings-resources-v2-resource-type-resource-types.types.js.map +0 -1
  81. package/build/es/src/bookings-resources-v2-resource-type-resource-types.universal.js +0 -345
  82. package/build/es/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.context.d.ts +0 -26
  93. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.context.js +0 -33
  94. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.context.js.map +0 -1
  95. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.http.d.ts +0 -49
  96. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.http.js +0 -258
  97. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.http.js.map +0 -1
  98. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.meta.d.ts +0 -24
  99. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.meta.js +0 -142
  100. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.meta.js.map +0 -1
  101. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.public.d.ts +0 -89
  102. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.public.js +0 -81
  103. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.public.js.map +0 -1
  104. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +0 -430
  105. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.types.js +0 -29
  106. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.types.js.map +0 -1
  107. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js +0 -377
  108. package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.context.d.ts +0 -26
  119. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.context.js +0 -26
  120. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.context.js.map +0 -1
  121. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.http.d.ts +0 -49
  122. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.http.js +0 -249
  123. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.http.js.map +0 -1
  124. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.meta.d.ts +0 -24
  125. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.meta.js +0 -110
  126. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.meta.js.map +0 -1
  127. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.public.d.ts +0 -89
  128. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.public.js +0 -68
  129. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.public.js.map +0 -1
  130. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +0 -430
  131. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.types.js +0 -26
  132. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.types.js.map +0 -1
  133. package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.universal.js +0 -345
  134. 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,49 +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
- export interface CreateResourceTypeResponse {
147
+ interface CreateResourceTypeResponse {
149
148
  /** Created resource type. */
150
149
  resourceType?: ResourceType;
151
150
  }
152
- export declare enum CreateResourceTypeErrors {
151
+ declare enum CreateResourceTypeErrors {
153
152
  UNKNOWN_CREATE_RESOURCE_TYPE_ERROR = "UNKNOWN_CREATE_RESOURCE_TYPE_ERROR",
154
153
  /** Failed to create requested `quantity` of resources for the resource type */
155
154
  FAILED_TO_CREATE_RESOURCES = "FAILED_TO_CREATE_RESOURCES"
156
155
  }
157
- export interface GetResourceTypeRequest {
156
+ interface GetResourceTypeRequest {
158
157
  /**
159
158
  * ID of the resource type to retrieve.
160
159
  * @format GUID
161
160
  */
162
161
  resourceTypeId: string;
163
162
  }
164
- export interface GetResourceTypeResponse {
163
+ interface GetResourceTypeResponse {
165
164
  /** Retrieved resource type. */
166
165
  resourceType?: ResourceType;
167
166
  }
168
- export interface UpdateResourceTypeRequest {
167
+ interface UpdateResourceTypeRequest {
169
168
  /** Resource type to update. */
170
169
  resourceType: ResourceType;
171
170
  }
172
- export interface UpdateResourceTypeResponse {
171
+ interface UpdateResourceTypeResponse {
173
172
  /** Updated resource type. */
174
173
  resourceType?: ResourceType;
175
174
  }
176
- export interface DeleteResourceTypeRequest {
175
+ interface DeleteResourceTypeRequest {
177
176
  /**
178
177
  * ID of the resource type to delete.
179
178
  * @format GUID
180
179
  */
181
180
  resourceTypeId: string;
182
181
  }
183
- export interface DeleteResourceTypeResponse {
182
+ interface DeleteResourceTypeResponse {
184
183
  }
185
- export interface QueryResourceTypesRequest {
184
+ interface QueryResourceTypesRequest {
186
185
  /**
187
186
  * Information about filtering and sorting.
188
187
  * Refer to the *supported filters article*
@@ -191,7 +190,7 @@ export interface QueryResourceTypesRequest {
191
190
  */
192
191
  query?: CursorQuery;
193
192
  }
194
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
193
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
195
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`. */
196
195
  cursorPaging?: CursorPaging;
197
196
  /**
@@ -211,11 +210,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
211
210
  sort?: Sorting[];
212
211
  }
213
212
  /** @oneof */
214
- export interface CursorQueryPagingMethodOneOf {
213
+ interface CursorQueryPagingMethodOneOf {
215
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`. */
216
215
  cursorPaging?: CursorPaging;
217
216
  }
218
- export interface Sorting {
217
+ interface Sorting {
219
218
  /**
220
219
  * Name of the field to sort by.
221
220
  * @maxLength 200
@@ -224,11 +223,11 @@ export interface Sorting {
224
223
  /** Sort order. */
225
224
  order?: SortOrder;
226
225
  }
227
- export declare enum SortOrder {
226
+ declare enum SortOrder {
228
227
  ASC = "ASC",
229
228
  DESC = "DESC"
230
229
  }
231
- export interface CursorPaging {
230
+ interface CursorPaging {
232
231
  /**
233
232
  * Number of items to load.
234
233
  * @max 100
@@ -244,13 +243,13 @@ export interface CursorPaging {
244
243
  */
245
244
  cursor?: string | null;
246
245
  }
247
- export interface QueryResourceTypesResponse {
246
+ interface QueryResourceTypesResponse {
248
247
  /** Retrieved resource types. */
249
248
  resourceTypes?: ResourceType[];
250
249
  /** Paging metadata. */
251
250
  pagingMetadata?: CursorPagingMetadata;
252
251
  }
253
- export interface CursorPagingMetadata {
252
+ interface CursorPagingMetadata {
254
253
  /** Number of items returned in the response. */
255
254
  count?: number | null;
256
255
  /** Offset that was requested. */
@@ -262,7 +261,7 @@ export interface CursorPagingMetadata {
262
261
  */
263
262
  hasNext?: boolean | null;
264
263
  }
265
- export interface Cursors {
264
+ interface Cursors {
266
265
  /**
267
266
  * Cursor pointing to next page in the list of results.
268
267
  * @maxLength 16000
@@ -274,7 +273,7 @@ export interface Cursors {
274
273
  */
275
274
  prev?: string | null;
276
275
  }
277
- export interface CountResourceTypesRequest {
276
+ interface CountResourceTypesRequest {
278
277
  /**
279
278
  * Filter to base the count on.
280
279
  * Refer to the *supported filters article*
@@ -283,11 +282,11 @@ export interface CountResourceTypesRequest {
283
282
  */
284
283
  filter?: Record<string, any> | null;
285
284
  }
286
- export interface CountResourceTypesResponse {
285
+ interface CountResourceTypesResponse {
287
286
  /** Number of resource types matching the filter. */
288
287
  count?: number;
289
288
  }
290
- export interface DomainEvent extends DomainEventBodyOneOf {
289
+ interface DomainEvent extends DomainEventBodyOneOf {
291
290
  createdEvent?: EntityCreatedEvent;
292
291
  updatedEvent?: EntityUpdatedEvent;
293
292
  deletedEvent?: EntityDeletedEvent;
@@ -330,19 +329,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
330
329
  entityEventSequence?: string | null;
331
330
  }
332
331
  /** @oneof */
333
- export interface DomainEventBodyOneOf {
332
+ interface DomainEventBodyOneOf {
334
333
  createdEvent?: EntityCreatedEvent;
335
334
  updatedEvent?: EntityUpdatedEvent;
336
335
  deletedEvent?: EntityDeletedEvent;
337
336
  actionEvent?: ActionEvent;
338
337
  }
339
- export interface EntityCreatedEvent {
338
+ interface EntityCreatedEvent {
340
339
  entity?: string;
341
340
  }
342
- export interface RestoreInfo {
341
+ interface RestoreInfo {
343
342
  deletedDate?: Date | null;
344
343
  }
345
- export interface EntityUpdatedEvent {
344
+ interface EntityUpdatedEvent {
346
345
  /**
347
346
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
348
347
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -350,14 +349,14 @@ export interface EntityUpdatedEvent {
350
349
  */
351
350
  currentEntity?: string;
352
351
  }
353
- export interface EntityDeletedEvent {
352
+ interface EntityDeletedEvent {
354
353
  /** Entity that was deleted */
355
354
  deletedEntity?: string | null;
356
355
  }
357
- export interface ActionEvent {
356
+ interface ActionEvent {
358
357
  body?: string;
359
358
  }
360
- export interface MessageEnvelope {
359
+ interface MessageEnvelope {
361
360
  /**
362
361
  * App instance ID.
363
362
  * @format GUID
@@ -373,7 +372,7 @@ export interface MessageEnvelope {
373
372
  /** Stringify payload. */
374
373
  data?: string;
375
374
  }
376
- export interface IdentificationData extends IdentificationDataIdOneOf {
375
+ interface IdentificationData extends IdentificationDataIdOneOf {
377
376
  /**
378
377
  * ID of a site visitor that has not logged in to the site.
379
378
  * @format GUID
@@ -398,7 +397,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
398
397
  identityType?: WebhookIdentityType;
399
398
  }
400
399
  /** @oneof */
401
- export interface IdentificationDataIdOneOf {
400
+ interface IdentificationDataIdOneOf {
402
401
  /**
403
402
  * ID of a site visitor that has not logged in to the site.
404
403
  * @format GUID
@@ -420,14 +419,14 @@ export interface IdentificationDataIdOneOf {
420
419
  */
421
420
  appId?: string;
422
421
  }
423
- export declare enum WebhookIdentityType {
422
+ declare enum WebhookIdentityType {
424
423
  UNKNOWN = "UNKNOWN",
425
424
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
426
425
  MEMBER = "MEMBER",
427
426
  WIX_USER = "WIX_USER",
428
427
  APP = "APP"
429
428
  }
430
- export interface BaseEventMetadata {
429
+ interface BaseEventMetadata {
431
430
  /**
432
431
  * App instance ID.
433
432
  * @format GUID
@@ -441,7 +440,7 @@ export interface BaseEventMetadata {
441
440
  /** The identification type and identity data. */
442
441
  identity?: IdentificationData;
443
442
  }
444
- export interface EventMetadata extends BaseEventMetadata {
443
+ interface EventMetadata extends BaseEventMetadata {
445
444
  /**
446
445
  * Unique event ID.
447
446
  * Allows clients to ignore duplicate webhooks.
@@ -479,125 +478,18 @@ export interface EventMetadata extends BaseEventMetadata {
479
478
  */
480
479
  entityEventSequence?: string | null;
481
480
  }
482
- export interface ResourceTypeCreatedEnvelope {
481
+ interface ResourceTypeCreatedEnvelope {
483
482
  entity: ResourceType;
484
483
  metadata: EventMetadata;
485
484
  }
486
- /**
487
- * Triggered when a resource type is created.
488
- * @webhook
489
- * @eventType wix.bookings.resources.v2.resource_type_created
490
- * @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
491
- * @slug created
492
- * @documentationMaturity preview
493
- */
494
- export declare function onResourceTypeCreated(handler: (event: ResourceTypeCreatedEnvelope) => void | Promise<void>): void;
495
- export interface ResourceTypeDeletedEnvelope {
485
+ interface ResourceTypeDeletedEnvelope {
496
486
  metadata: EventMetadata;
497
487
  }
498
- /**
499
- * Triggered when a resource type is deleted.
500
- * @webhook
501
- * @eventType wix.bookings.resources.v2.resource_type_deleted
502
- * @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
503
- * @slug deleted
504
- * @documentationMaturity preview
505
- */
506
- export declare function onResourceTypeDeleted(handler: (event: ResourceTypeDeletedEnvelope) => void | Promise<void>): void;
507
- export interface ResourceTypeUpdatedEnvelope {
488
+ interface ResourceTypeUpdatedEnvelope {
508
489
  entity: ResourceType;
509
490
  metadata: EventMetadata;
510
491
  }
511
- /**
512
- * Triggered when a resource type is updated.
513
- * @webhook
514
- * @eventType wix.bookings.resources.v2.resource_type_updated
515
- * @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
516
- * @slug updated
517
- * @documentationMaturity preview
518
- */
519
- export declare function onResourceTypeUpdated(handler: (event: ResourceTypeUpdatedEnvelope) => void | Promise<void>): void;
520
- /**
521
- * Creates a new resource type.
522
- * @param resourceType - Resource type to create.
523
- * @public
524
- * @documentationMaturity preview
525
- * @requiredField resourceType
526
- * @requiredField resourceType.name
527
- * @permissionId BOOKINGS.RESOURCE_TYPE_CREATE
528
- * @permissionScope Manage Bookings
529
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
530
- * @permissionScope Manage Bookings - all permissions
531
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
532
- * @applicableIdentity APP
533
- * @returns Created resource type.
534
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CreateResourceType
535
- */
536
- export declare function createResourceType(resourceType: NonNullablePaths<ResourceType, `name`>): Promise<ResourceType>;
537
- /**
538
- * Retrieves a resource type.
539
- * @param resourceTypeId - ID of the resource type to retrieve.
540
- * @public
541
- * @documentationMaturity preview
542
- * @requiredField resourceTypeId
543
- * @permissionId BOOKINGS.RESOURCE_TYPE_READ
544
- * @permissionId BOOKINGS.RESOURCES_READ
545
- * @permissionScope Read Bookings - Public Data
546
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
547
- * @permissionScope Manage Bookings
548
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
549
- * @permissionScope Read Bookings - Including Participants
550
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
551
- * @permissionScope Read Bookings - all read permissions
552
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
553
- * @permissionScope Manage Bookings - all permissions
554
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
555
- * @permissionScope Read Bookings - Public Data
556
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
557
- * @permissionScope Manage Bookings Services and Settings
558
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
559
- * @permissionScope Manage Bookings
560
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
561
- * @permissionScope Read Bookings - Including Participants
562
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
563
- * @permissionScope Read Bookings - all read permissions
564
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
565
- * @permissionScope Manage Bookings - all permissions
566
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
567
- * @permissionScope Read bookings calendar - including participants
568
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
569
- * @permissionScope Read Bookings Calendar
570
- * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
571
- * @applicableIdentity APP
572
- * @applicableIdentity VISITOR
573
- * @returns Retrieved resource type.
574
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.GetResourceType
575
- */
576
- export declare function getResourceType(resourceTypeId: string): Promise<ResourceType>;
577
- /**
578
- * Updates a resource type.
579
- *
580
- *
581
- * Each time the resource type is updated, `revision` increments by 1. You must
582
- * include current revision of the resource type when updating it. This ensures
583
- * you're working with the latest service information and prevents unintended overwrites.
584
- * @param _id - Resource type ID.
585
- * @public
586
- * @documentationMaturity preview
587
- * @requiredField _id
588
- * @requiredField resourceType
589
- * @requiredField resourceType.revision
590
- * @permissionId BOOKINGS.RESOURCE_TYPE_UPDATE
591
- * @permissionScope Manage Bookings
592
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
593
- * @permissionScope Manage Bookings - all permissions
594
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
595
- * @applicableIdentity APP
596
- * @returns Updated resource type.
597
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.UpdateResourceType
598
- */
599
- export declare function updateResourceType(_id: string, resourceType: NonNullablePaths<UpdateResourceType, `revision`>): Promise<ResourceType>;
600
- export interface UpdateResourceType {
492
+ interface UpdateResourceType {
601
493
  /**
602
494
  * Resource type ID.
603
495
  * @format GUID
@@ -631,60 +523,7 @@ export interface UpdateResourceType {
631
523
  /** Extensions enabling users to save custom data related to the resource type. */
632
524
  extendedFields?: ExtendedFields;
633
525
  }
634
- /**
635
- * Deletes a resource type.
636
- *
637
- *
638
- * Deleting a resource type also automatically deletes all resources connected to it.
639
- * @param resourceTypeId - ID of the resource type to delete.
640
- * @public
641
- * @documentationMaturity preview
642
- * @requiredField resourceTypeId
643
- * @permissionId BOOKINGS.RESOURCE_TYPE_DELETE
644
- * @permissionScope Manage Bookings
645
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
646
- * @permissionScope Manage Bookings - all permissions
647
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
648
- * @applicableIdentity APP
649
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.DeleteResourceType
650
- */
651
- export declare function deleteResourceType(resourceTypeId: string): Promise<void>;
652
- /**
653
- * Creates a query to retrieve a list of resource types.
654
- *
655
- * The `queryResourceTypes()` function builds a query to retrieve a list of resource types and returns a `ResourceTypesQueryBuilder` object.
656
- *
657
- * 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.
658
- *
659
- * 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.
660
- *
661
- * `queryResourceTypes()` runs with the following `ResourceTypesQueryBuilder` default that you can override:
662
- *
663
- * + `limit` is `50`.
664
- * + Sorted by `id` in ascending order.
665
- *
666
- * The functions that are chained to `queryResourceTypes()` are applied in the order they are called.
667
- *
668
- * 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`.
669
- * @public
670
- * @documentationMaturity preview
671
- * @permissionScope Read Bookings - Public Data
672
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
673
- * @permissionScope Manage Bookings
674
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
675
- * @permissionScope Read Bookings - Including Participants
676
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
677
- * @permissionScope Read Bookings - all read permissions
678
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
679
- * @permissionScope Manage Bookings - all permissions
680
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
681
- * @permissionId BOOKINGS.RESOURCE_TYPE_READ
682
- * @applicableIdentity APP
683
- * @applicableIdentity VISITOR
684
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.QueryResourceTypes
685
- */
686
- export declare function queryResourceTypes(options?: QueryResourceTypesOptions): ResourceTypesQueryBuilder;
687
- export interface QueryResourceTypesOptions {
526
+ interface QueryResourceTypesOptions {
688
527
  }
689
528
  interface QueryCursorResult {
690
529
  cursors: Cursors;
@@ -693,13 +532,13 @@ interface QueryCursorResult {
693
532
  length: number;
694
533
  pageSize: number;
695
534
  }
696
- export interface ResourceTypesQueryResult extends QueryCursorResult {
535
+ interface ResourceTypesQueryResult extends QueryCursorResult {
697
536
  items: ResourceType[];
698
537
  query: ResourceTypesQueryBuilder;
699
538
  next: () => Promise<ResourceTypesQueryResult>;
700
539
  prev: () => Promise<ResourceTypesQueryResult>;
701
540
  }
702
- export interface ResourceTypesQueryBuilder {
541
+ interface ResourceTypesQueryBuilder {
703
542
  /** @param propertyName - Property whose value is compared with `value`.
704
543
  * @param value - Value to compare against.
705
544
  * @documentationMaturity preview
@@ -735,35 +574,7 @@ export interface ResourceTypesQueryBuilder {
735
574
  /** @documentationMaturity preview */
736
575
  find: () => Promise<ResourceTypesQueryResult>;
737
576
  }
738
- /**
739
- * Counts resource types, given the provided filtering.
740
- *
741
- *
742
- * Refer to the *supported filters article*
743
- * ([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))
744
- * for a complete list of supported filters.
745
- * @public
746
- * @documentationMaturity preview
747
- * @param options - Filter to base the count on. See
748
- * [queryResourceTypes()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/query-resource-types)
749
- * for supported filters.
750
- * @permissionId BOOKINGS.RESOURCE_TYPE_READ
751
- * @permissionScope Read Bookings - Public Data
752
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
753
- * @permissionScope Manage Bookings
754
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
755
- * @permissionScope Read Bookings - Including Participants
756
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
757
- * @permissionScope Read Bookings - all read permissions
758
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
759
- * @permissionScope Manage Bookings - all permissions
760
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
761
- * @applicableIdentity APP
762
- * @applicableIdentity VISITOR
763
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CountResourceTypes
764
- */
765
- export declare function countResourceTypes(options?: CountResourceTypesOptions): Promise<NonNullablePaths<CountResourceTypesResponse, `count`>>;
766
- export interface CountResourceTypesOptions {
577
+ interface CountResourceTypesOptions {
767
578
  /**
768
579
  * Filter to base the count on.
769
580
  * Refer to the *supported filters article*
@@ -772,4 +583,5 @@ export interface CountResourceTypesOptions {
772
583
  */
773
584
  filter?: Record<string, any> | null;
774
585
  }
775
- export {};
586
+
587
+ export { type EntityUpdatedEvent as A, type BusinessLocation as B, type CountResourceTypesOptions as C, type DistinctLocationIds as D, type ExtendedFields as E, type EntityDeletedEvent as F, type GetResourceTypeRequest as G, type ActionEvent as H, type IdentificationData as I, type IdentificationDataIdOneOf as J, type BaseEventMetadata as K, type LocationOptions as L, type MessageEnvelope as M, type EventMetadata as N, type ResourceTypeCreatedEnvelope as O, type ResourceTypeDeletedEnvelope as P, type QueryResourceTypesOptions as Q, type ResourceType as R, SortOrder as S, type ResourceTypeUpdatedEnvelope as T, type UpdateResourceType as U, type ResourceTypesQueryResult as V, WebhookIdentityType as W, type ResourceTypesQueryBuilder as a, type CountResourceTypesResponse as b, RequestedFields as c, CreateResourceTypeErrors as d, type ResourceCounts as e, type CreateResourceTypeRequest as f, type SpecificLocation as g, type CreateResourceTypeResponse as h, type GetResourceTypeResponse as i, type UpdateResourceTypeRequest as j, type UpdateResourceTypeResponse as k, type DeleteResourceTypeRequest as l, type DeleteResourceTypeResponse as m, type QueryResourceTypesRequest as n, type CursorQuery as o, type CursorQueryPagingMethodOneOf as p, type Sorting as q, type CursorPaging as r, type QueryResourceTypesResponse as s, type CursorPagingMetadata as t, type Cursors as u, type CountResourceTypesRequest as v, type DomainEvent as w, type DomainEventBodyOneOf as x, type EntityCreatedEvent as y, type RestoreInfo as z };