@wix/auto_sdk_bookings_resource-types 1.0.19 → 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} +77 -243
  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} +77 -243
  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} +77 -243
  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} +77 -243
  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 +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 -422
  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 -422
  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 -422
  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 -422
  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,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,24 +210,26 @@ 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
222
221
  */
223
222
  fieldName?: string;
224
223
  /** Sort order. */
225
- order?: SortOrder;
224
+ order?: SortOrderWithLiterals;
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
+ /** @enumType */
231
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
232
+ interface CursorPaging {
232
233
  /**
233
234
  * Number of items to load.
234
235
  * @max 100
@@ -244,13 +245,13 @@ export interface CursorPaging {
244
245
  */
245
246
  cursor?: string | null;
246
247
  }
247
- export interface QueryResourceTypesResponse {
248
+ interface QueryResourceTypesResponse {
248
249
  /** Retrieved resource types. */
249
250
  resourceTypes?: ResourceType[];
250
251
  /** Paging metadata. */
251
252
  pagingMetadata?: CursorPagingMetadata;
252
253
  }
253
- export interface CursorPagingMetadata {
254
+ interface CursorPagingMetadata {
254
255
  /** Number of items returned in the response. */
255
256
  count?: number | null;
256
257
  /** Offset that was requested. */
@@ -262,7 +263,7 @@ export interface CursorPagingMetadata {
262
263
  */
263
264
  hasNext?: boolean | null;
264
265
  }
265
- export interface Cursors {
266
+ interface Cursors {
266
267
  /**
267
268
  * Cursor pointing to next page in the list of results.
268
269
  * @maxLength 16000
@@ -274,7 +275,7 @@ export interface Cursors {
274
275
  */
275
276
  prev?: string | null;
276
277
  }
277
- export interface CountResourceTypesRequest {
278
+ interface CountResourceTypesRequest {
278
279
  /**
279
280
  * Filter to base the count on.
280
281
  * Refer to the *supported filters article*
@@ -283,11 +284,11 @@ export interface CountResourceTypesRequest {
283
284
  */
284
285
  filter?: Record<string, any> | null;
285
286
  }
286
- export interface CountResourceTypesResponse {
287
+ interface CountResourceTypesResponse {
287
288
  /** Number of resource types matching the filter. */
288
289
  count?: number;
289
290
  }
290
- export interface DomainEvent extends DomainEventBodyOneOf {
291
+ interface DomainEvent extends DomainEventBodyOneOf {
291
292
  createdEvent?: EntityCreatedEvent;
292
293
  updatedEvent?: EntityUpdatedEvent;
293
294
  deletedEvent?: EntityDeletedEvent;
@@ -322,19 +323,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
322
323
  entityEventSequence?: string | null;
323
324
  }
324
325
  /** @oneof */
325
- export interface DomainEventBodyOneOf {
326
+ interface DomainEventBodyOneOf {
326
327
  createdEvent?: EntityCreatedEvent;
327
328
  updatedEvent?: EntityUpdatedEvent;
328
329
  deletedEvent?: EntityDeletedEvent;
329
330
  actionEvent?: ActionEvent;
330
331
  }
331
- export interface EntityCreatedEvent {
332
+ interface EntityCreatedEvent {
332
333
  entity?: string;
333
334
  }
334
- export interface RestoreInfo {
335
+ interface RestoreInfo {
335
336
  deletedDate?: Date | null;
336
337
  }
337
- export interface EntityUpdatedEvent {
338
+ interface EntityUpdatedEvent {
338
339
  /**
339
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.
340
341
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -342,14 +343,14 @@ export interface EntityUpdatedEvent {
342
343
  */
343
344
  currentEntity?: string;
344
345
  }
345
- export interface EntityDeletedEvent {
346
+ interface EntityDeletedEvent {
346
347
  /** Entity that was deleted. */
347
348
  deletedEntity?: string | null;
348
349
  }
349
- export interface ActionEvent {
350
+ interface ActionEvent {
350
351
  body?: string;
351
352
  }
352
- export interface MessageEnvelope {
353
+ interface MessageEnvelope {
353
354
  /**
354
355
  * App instance ID.
355
356
  * @format GUID
@@ -365,7 +366,7 @@ export interface MessageEnvelope {
365
366
  /** Stringify payload. */
366
367
  data?: string;
367
368
  }
368
- export interface IdentificationData extends IdentificationDataIdOneOf {
369
+ interface IdentificationData extends IdentificationDataIdOneOf {
369
370
  /**
370
371
  * ID of a site visitor that has not logged in to the site.
371
372
  * @format GUID
@@ -387,10 +388,10 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
387
388
  */
388
389
  appId?: string;
389
390
  /** @readonly */
390
- identityType?: WebhookIdentityType;
391
+ identityType?: WebhookIdentityTypeWithLiterals;
391
392
  }
392
393
  /** @oneof */
393
- export interface IdentificationDataIdOneOf {
394
+ interface IdentificationDataIdOneOf {
394
395
  /**
395
396
  * ID of a site visitor that has not logged in to the site.
396
397
  * @format GUID
@@ -412,14 +413,16 @@ export interface IdentificationDataIdOneOf {
412
413
  */
413
414
  appId?: string;
414
415
  }
415
- export declare enum WebhookIdentityType {
416
+ declare enum WebhookIdentityType {
416
417
  UNKNOWN = "UNKNOWN",
417
418
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
418
419
  MEMBER = "MEMBER",
419
420
  WIX_USER = "WIX_USER",
420
421
  APP = "APP"
421
422
  }
422
- export interface BaseEventMetadata {
423
+ /** @enumType */
424
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
425
+ interface BaseEventMetadata {
423
426
  /**
424
427
  * App instance ID.
425
428
  * @format GUID
@@ -433,7 +436,7 @@ export interface BaseEventMetadata {
433
436
  /** The identification type and identity data. */
434
437
  identity?: IdentificationData;
435
438
  }
436
- export interface EventMetadata extends BaseEventMetadata {
439
+ interface EventMetadata extends BaseEventMetadata {
437
440
  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
438
441
  _id?: string;
439
442
  /**
@@ -463,127 +466,18 @@ export interface EventMetadata extends BaseEventMetadata {
463
466
  */
464
467
  entityEventSequence?: string | null;
465
468
  }
466
- export interface ResourceTypeCreatedEnvelope {
469
+ interface ResourceTypeCreatedEnvelope {
467
470
  entity: ResourceType;
468
471
  metadata: EventMetadata;
469
472
  }
470
- /**
471
- * Triggered when a resource type is created.
472
- * @webhook
473
- * @eventType wix.bookings.resources.v2.resource_type_created
474
- * @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
475
- * @slug created
476
- * @documentationMaturity preview
477
- */
478
- export declare function onResourceTypeCreated(handler: (event: ResourceTypeCreatedEnvelope) => void | Promise<void>): void;
479
- export interface ResourceTypeDeletedEnvelope {
473
+ interface ResourceTypeDeletedEnvelope {
480
474
  metadata: EventMetadata;
481
475
  }
482
- /**
483
- * Triggered when a resource type is deleted.
484
- * @webhook
485
- * @eventType wix.bookings.resources.v2.resource_type_deleted
486
- * @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
487
- * @slug deleted
488
- * @documentationMaturity preview
489
- */
490
- export declare function onResourceTypeDeleted(handler: (event: ResourceTypeDeletedEnvelope) => void | Promise<void>): void;
491
- export interface ResourceTypeUpdatedEnvelope {
476
+ interface ResourceTypeUpdatedEnvelope {
492
477
  entity: ResourceType;
493
478
  metadata: EventMetadata;
494
479
  }
495
- /**
496
- * Triggered when a resource type is updated.
497
- * @webhook
498
- * @eventType wix.bookings.resources.v2.resource_type_updated
499
- * @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
500
- * @slug updated
501
- * @documentationMaturity preview
502
- */
503
- export declare function onResourceTypeUpdated(handler: (event: ResourceTypeUpdatedEnvelope) => void | Promise<void>): void;
504
- /**
505
- * Creates a new resource type.
506
- * @param resourceType - Resource type to create.
507
- * @public
508
- * @documentationMaturity preview
509
- * @requiredField resourceType
510
- * @requiredField resourceType.name
511
- * @permissionId BOOKINGS.RESOURCE_TYPE_CREATE
512
- * @permissionScope Manage Bookings
513
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
514
- * @permissionScope Manage Bookings - all permissions
515
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
516
- * @applicableIdentity APP
517
- * @returns Created resource type.
518
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CreateResourceType
519
- */
520
- export declare function createResourceType(resourceType: NonNullablePaths<ResourceType, `name`>): Promise<ResourceType>;
521
- /**
522
- * Retrieves a resource type.
523
- * @param resourceTypeId - ID of the resource type to retrieve.
524
- * @public
525
- * @documentationMaturity preview
526
- * @requiredField resourceTypeId
527
- * @permissionId BOOKINGS.RESOURCE_TYPE_READ
528
- * @permissionId BOOKINGS.RESOURCES_READ
529
- * @permissionScope Read Bookings - Public Data
530
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
531
- * @permissionScope Manage Bookings
532
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
533
- * @permissionScope Read Bookings - Including Participants
534
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
535
- * @permissionScope Read Bookings - all read permissions
536
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
537
- * @permissionScope Manage Bookings - all permissions
538
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
539
- * @permissionScope Manage Stores
540
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
541
- * @permissionScope Read Bookings - Public Data
542
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
543
- * @permissionScope Manage Bookings Services and Settings
544
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
545
- * @permissionScope Manage Bookings
546
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
547
- * @permissionScope Read Bookings - Including Participants
548
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
549
- * @permissionScope Read Bookings - all read permissions
550
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
551
- * @permissionScope Manage Bookings - all permissions
552
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
553
- * @permissionScope Read bookings calendar - including participants
554
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
555
- * @permissionScope Read Bookings Calendar
556
- * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
557
- * @applicableIdentity APP
558
- * @applicableIdentity VISITOR
559
- * @returns Retrieved resource type.
560
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.GetResourceType
561
- */
562
- export declare function getResourceType(resourceTypeId: string): Promise<ResourceType>;
563
- /**
564
- * Updates a resource type.
565
- *
566
- *
567
- * Each time the resource type is updated, `revision` increments by 1. You must
568
- * include current revision of the resource type when updating it. This ensures
569
- * you're working with the latest service information and prevents unintended overwrites.
570
- * @param _id - Resource type ID.
571
- * @public
572
- * @documentationMaturity preview
573
- * @requiredField _id
574
- * @requiredField resourceType
575
- * @requiredField resourceType.revision
576
- * @permissionId BOOKINGS.RESOURCE_TYPE_UPDATE
577
- * @permissionScope Manage Bookings
578
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
579
- * @permissionScope Manage Bookings - all permissions
580
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
581
- * @applicableIdentity APP
582
- * @returns Updated resource type.
583
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.UpdateResourceType
584
- */
585
- export declare function updateResourceType(_id: string, resourceType: NonNullablePaths<UpdateResourceType, `revision`>): Promise<ResourceType>;
586
- export interface UpdateResourceType {
480
+ interface UpdateResourceType {
587
481
  /**
588
482
  * Resource type ID.
589
483
  * @format GUID
@@ -617,60 +511,7 @@ export interface UpdateResourceType {
617
511
  /** Extensions enabling users to save custom data related to the resource type. */
618
512
  extendedFields?: ExtendedFields;
619
513
  }
620
- /**
621
- * Deletes a resource type.
622
- *
623
- *
624
- * Deleting a resource type also automatically deletes all resources connected to it.
625
- * @param resourceTypeId - ID of the resource type to delete.
626
- * @public
627
- * @documentationMaturity preview
628
- * @requiredField resourceTypeId
629
- * @permissionId BOOKINGS.RESOURCE_TYPE_DELETE
630
- * @permissionScope Manage Bookings
631
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
632
- * @permissionScope Manage Bookings - all permissions
633
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
634
- * @applicableIdentity APP
635
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.DeleteResourceType
636
- */
637
- export declare function deleteResourceType(resourceTypeId: string): Promise<void>;
638
- /**
639
- * Creates a query to retrieve a list of resource types.
640
- *
641
- * The `queryResourceTypes()` function builds a query to retrieve a list of resource types and returns a `ResourceTypesQueryBuilder` object.
642
- *
643
- * 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.
644
- *
645
- * 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.
646
- *
647
- * `queryResourceTypes()` runs with the following `ResourceTypesQueryBuilder` default that you can override:
648
- *
649
- * + `limit` is `50`.
650
- * + Sorted by `id` in ascending order.
651
- *
652
- * The functions that are chained to `queryResourceTypes()` are applied in the order they are called.
653
- *
654
- * 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`.
655
- * @public
656
- * @documentationMaturity preview
657
- * @permissionScope Read Bookings - Public Data
658
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
659
- * @permissionScope Manage Bookings
660
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
661
- * @permissionScope Read Bookings - Including Participants
662
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
663
- * @permissionScope Read Bookings - all read permissions
664
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
665
- * @permissionScope Manage Bookings - all permissions
666
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
667
- * @permissionId BOOKINGS.RESOURCE_TYPE_READ
668
- * @applicableIdentity APP
669
- * @applicableIdentity VISITOR
670
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.QueryResourceTypes
671
- */
672
- export declare function queryResourceTypes(options?: QueryResourceTypesOptions): ResourceTypesQueryBuilder;
673
- export interface QueryResourceTypesOptions {
514
+ interface QueryResourceTypesOptions {
674
515
  }
675
516
  interface QueryCursorResult {
676
517
  cursors: Cursors;
@@ -679,13 +520,13 @@ interface QueryCursorResult {
679
520
  length: number;
680
521
  pageSize: number;
681
522
  }
682
- export interface ResourceTypesQueryResult extends QueryCursorResult {
523
+ interface ResourceTypesQueryResult extends QueryCursorResult {
683
524
  items: ResourceType[];
684
525
  query: ResourceTypesQueryBuilder;
685
526
  next: () => Promise<ResourceTypesQueryResult>;
686
527
  prev: () => Promise<ResourceTypesQueryResult>;
687
528
  }
688
- export interface ResourceTypesQueryBuilder {
529
+ interface ResourceTypesQueryBuilder {
689
530
  /** @param propertyName - Property whose value is compared with `value`.
690
531
  * @param value - Value to compare against.
691
532
  * @documentationMaturity preview
@@ -696,6 +537,26 @@ export interface ResourceTypesQueryBuilder {
696
537
  * @documentationMaturity preview
697
538
  */
698
539
  ne: (propertyName: 'name', value: any) => ResourceTypesQueryBuilder;
540
+ /** @param propertyName - Property whose value is compared with `value`.
541
+ * @param value - Value to compare against.
542
+ * @documentationMaturity preview
543
+ */
544
+ ge: (propertyName: 'name', value: any) => ResourceTypesQueryBuilder;
545
+ /** @param propertyName - Property whose value is compared with `value`.
546
+ * @param value - Value to compare against.
547
+ * @documentationMaturity preview
548
+ */
549
+ gt: (propertyName: 'name', value: any) => ResourceTypesQueryBuilder;
550
+ /** @param propertyName - Property whose value is compared with `value`.
551
+ * @param value - Value to compare against.
552
+ * @documentationMaturity preview
553
+ */
554
+ le: (propertyName: 'name', value: any) => ResourceTypesQueryBuilder;
555
+ /** @param propertyName - Property whose value is compared with `value`.
556
+ * @param value - Value to compare against.
557
+ * @documentationMaturity preview
558
+ */
559
+ lt: (propertyName: 'name', value: any) => ResourceTypesQueryBuilder;
699
560
  /** @param propertyName - Property whose value is compared with `string`.
700
561
  * @param string - String to compare against. Case-insensitive.
701
562
  * @documentationMaturity preview
@@ -721,35 +582,7 @@ export interface ResourceTypesQueryBuilder {
721
582
  /** @documentationMaturity preview */
722
583
  find: () => Promise<ResourceTypesQueryResult>;
723
584
  }
724
- /**
725
- * Counts resource types, given the provided filtering.
726
- *
727
- *
728
- * Refer to the *supported filters article*
729
- * ([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))
730
- * for a complete list of supported filters.
731
- * @public
732
- * @documentationMaturity preview
733
- * @param options - Filter to base the count on. See
734
- * [queryResourceTypes()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/query-resource-types)
735
- * for supported filters.
736
- * @permissionId BOOKINGS.RESOURCE_TYPE_READ
737
- * @permissionScope Read Bookings - Public Data
738
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
739
- * @permissionScope Manage Bookings
740
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
741
- * @permissionScope Read Bookings - Including Participants
742
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
743
- * @permissionScope Read Bookings - all read permissions
744
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
745
- * @permissionScope Manage Bookings - all permissions
746
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
747
- * @applicableIdentity APP
748
- * @applicableIdentity VISITOR
749
- * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CountResourceTypes
750
- */
751
- export declare function countResourceTypes(options?: CountResourceTypesOptions): Promise<NonNullablePaths<CountResourceTypesResponse, `count`>>;
752
- export interface CountResourceTypesOptions {
585
+ interface CountResourceTypesOptions {
753
586
  /**
754
587
  * Filter to base the count on.
755
588
  * Refer to the *supported filters article*
@@ -758,4 +591,5 @@ export interface CountResourceTypesOptions {
758
591
  */
759
592
  filter?: Record<string, any> | null;
760
593
  }
761
- 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 };