@wix/auto_sdk_bookings_resource-types 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +76 -17
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.types.js.map +1 -1
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts +93 -19
- package/build/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +1 -1
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +76 -17
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.types.js.map +1 -1
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts +93 -19
- package/build/es/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +76 -17
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.types.js.map +1 -1
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts +93 -19
- package/build/internal/cjs/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.types.d.ts +76 -17
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.types.js.map +1 -1
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.universal.d.ts +93 -19
- package/build/internal/es/src/bookings-resources-v2-resource-type-resource-types.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
export interface ResourceType {
|
|
10
10
|
/**
|
|
11
11
|
* Resource type ID.
|
|
12
|
+
* @format GUID
|
|
12
13
|
* @readonly
|
|
13
14
|
*/
|
|
14
15
|
id?: string | null;
|
|
@@ -32,6 +33,8 @@ export interface ResourceType {
|
|
|
32
33
|
/**
|
|
33
34
|
* Name of the resource type. For example, `meeting room`. The name must be
|
|
34
35
|
* unique per site.
|
|
36
|
+
* @maxLength 40
|
|
37
|
+
* @minLength 1
|
|
35
38
|
*/
|
|
36
39
|
name?: string | null;
|
|
37
40
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
@@ -72,7 +75,11 @@ export interface ResourceCounts {
|
|
|
72
75
|
distinctLocationIds?: DistinctLocationIds;
|
|
73
76
|
}
|
|
74
77
|
export interface DistinctLocationIds {
|
|
75
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* IDs of the business locations with a resource connected to the type.
|
|
80
|
+
* @format GUID
|
|
81
|
+
* @maxSize 50
|
|
82
|
+
*/
|
|
76
83
|
values?: string[];
|
|
77
84
|
}
|
|
78
85
|
export interface ExtendedFields {
|
|
@@ -120,6 +127,7 @@ export interface SpecificLocation {
|
|
|
120
127
|
* Not returned, if the resource is available in either all business locations
|
|
121
128
|
* or in no business location.
|
|
122
129
|
* You can specify up to 5 business locations.
|
|
130
|
+
* @maxSize 5
|
|
123
131
|
*/
|
|
124
132
|
businessLocations?: BusinessLocation[];
|
|
125
133
|
}
|
|
@@ -127,6 +135,7 @@ export interface BusinessLocation {
|
|
|
127
135
|
/**
|
|
128
136
|
* ID of the business *location*
|
|
129
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)).
|
|
138
|
+
* @format GUID
|
|
130
139
|
*/
|
|
131
140
|
locationId?: string | null;
|
|
132
141
|
}
|
|
@@ -145,7 +154,10 @@ export declare enum CreateResourceTypeErrors {
|
|
|
145
154
|
FAILED_TO_CREATE_RESOURCES = "FAILED_TO_CREATE_RESOURCES"
|
|
146
155
|
}
|
|
147
156
|
export interface GetResourceTypeRequest {
|
|
148
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* ID of the resource type to retrieve.
|
|
159
|
+
* @format GUID
|
|
160
|
+
*/
|
|
149
161
|
resourceTypeId: string;
|
|
150
162
|
}
|
|
151
163
|
export interface GetResourceTypeResponse {
|
|
@@ -161,7 +173,10 @@ export interface UpdateResourceTypeResponse {
|
|
|
161
173
|
resourceType?: ResourceType;
|
|
162
174
|
}
|
|
163
175
|
export interface DeleteResourceTypeRequest {
|
|
164
|
-
/**
|
|
176
|
+
/**
|
|
177
|
+
* ID of the resource type to delete.
|
|
178
|
+
* @format GUID
|
|
179
|
+
*/
|
|
165
180
|
resourceTypeId: string;
|
|
166
181
|
}
|
|
167
182
|
export interface DeleteResourceTypeResponse {
|
|
@@ -190,6 +205,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
190
205
|
/**
|
|
191
206
|
* Sort object in the following format:
|
|
192
207
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
208
|
+
* @maxSize 3
|
|
193
209
|
*/
|
|
194
210
|
sort?: Sorting[];
|
|
195
211
|
}
|
|
@@ -199,7 +215,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
199
215
|
cursorPaging?: CursorPaging;
|
|
200
216
|
}
|
|
201
217
|
export interface Sorting {
|
|
202
|
-
/**
|
|
218
|
+
/**
|
|
219
|
+
* Name of the field to sort by.
|
|
220
|
+
* @maxLength 200
|
|
221
|
+
*/
|
|
203
222
|
fieldName?: string;
|
|
204
223
|
/** Sort order. */
|
|
205
224
|
order?: SortOrder;
|
|
@@ -209,7 +228,10 @@ export declare enum SortOrder {
|
|
|
209
228
|
DESC = "DESC"
|
|
210
229
|
}
|
|
211
230
|
export interface CursorPaging {
|
|
212
|
-
/**
|
|
231
|
+
/**
|
|
232
|
+
* Number of items to load.
|
|
233
|
+
* @max 100
|
|
234
|
+
*/
|
|
213
235
|
limit?: number | null;
|
|
214
236
|
/**
|
|
215
237
|
* Pointer to the next or previous page in the list of results.
|
|
@@ -217,6 +239,7 @@ export interface CursorPaging {
|
|
|
217
239
|
* You can get the relevant cursor token
|
|
218
240
|
* from the `pagingMetadata` object in the previous call's response.
|
|
219
241
|
* Not relevant for the first request.
|
|
242
|
+
* @maxLength 16000
|
|
220
243
|
*/
|
|
221
244
|
cursor?: string | null;
|
|
222
245
|
}
|
|
@@ -239,9 +262,15 @@ export interface CursorPagingMetadata {
|
|
|
239
262
|
hasNext?: boolean | null;
|
|
240
263
|
}
|
|
241
264
|
export interface Cursors {
|
|
242
|
-
/**
|
|
265
|
+
/**
|
|
266
|
+
* Cursor pointing to next page in the list of results.
|
|
267
|
+
* @maxLength 16000
|
|
268
|
+
*/
|
|
243
269
|
next?: string | null;
|
|
244
|
-
/**
|
|
270
|
+
/**
|
|
271
|
+
* Cursor pointing to previous page in the list of results.
|
|
272
|
+
* @maxLength 16000
|
|
273
|
+
*/
|
|
245
274
|
prev?: string | null;
|
|
246
275
|
}
|
|
247
276
|
export interface CountResourceTypesRequest {
|
|
@@ -330,9 +359,15 @@ export interface ActionEvent {
|
|
|
330
359
|
bodyAsJson?: string;
|
|
331
360
|
}
|
|
332
361
|
export interface MessageEnvelope {
|
|
333
|
-
/**
|
|
362
|
+
/**
|
|
363
|
+
* App instance ID.
|
|
364
|
+
* @format GUID
|
|
365
|
+
*/
|
|
334
366
|
instanceId?: string | null;
|
|
335
|
-
/**
|
|
367
|
+
/**
|
|
368
|
+
* Event type.
|
|
369
|
+
* @maxLength 150
|
|
370
|
+
*/
|
|
336
371
|
eventType?: string;
|
|
337
372
|
/** The identification type and identity data. */
|
|
338
373
|
identity?: IdentificationData;
|
|
@@ -340,26 +375,50 @@ export interface MessageEnvelope {
|
|
|
340
375
|
data?: string;
|
|
341
376
|
}
|
|
342
377
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
343
|
-
/**
|
|
378
|
+
/**
|
|
379
|
+
* ID of a site visitor that has not logged in to the site.
|
|
380
|
+
* @format GUID
|
|
381
|
+
*/
|
|
344
382
|
anonymousVisitorId?: string;
|
|
345
|
-
/**
|
|
383
|
+
/**
|
|
384
|
+
* ID of a site visitor that has logged in to the site.
|
|
385
|
+
* @format GUID
|
|
386
|
+
*/
|
|
346
387
|
memberId?: string;
|
|
347
|
-
/**
|
|
388
|
+
/**
|
|
389
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
390
|
+
* @format GUID
|
|
391
|
+
*/
|
|
348
392
|
wixUserId?: string;
|
|
349
|
-
/**
|
|
393
|
+
/**
|
|
394
|
+
* ID of an app.
|
|
395
|
+
* @format GUID
|
|
396
|
+
*/
|
|
350
397
|
appId?: string;
|
|
351
398
|
/** @readonly */
|
|
352
399
|
identityType?: WebhookIdentityType;
|
|
353
400
|
}
|
|
354
401
|
/** @oneof */
|
|
355
402
|
export interface IdentificationDataIdOneOf {
|
|
356
|
-
/**
|
|
403
|
+
/**
|
|
404
|
+
* ID of a site visitor that has not logged in to the site.
|
|
405
|
+
* @format GUID
|
|
406
|
+
*/
|
|
357
407
|
anonymousVisitorId?: string;
|
|
358
|
-
/**
|
|
408
|
+
/**
|
|
409
|
+
* ID of a site visitor that has logged in to the site.
|
|
410
|
+
* @format GUID
|
|
411
|
+
*/
|
|
359
412
|
memberId?: string;
|
|
360
|
-
/**
|
|
413
|
+
/**
|
|
414
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
415
|
+
* @format GUID
|
|
416
|
+
*/
|
|
361
417
|
wixUserId?: string;
|
|
362
|
-
/**
|
|
418
|
+
/**
|
|
419
|
+
* ID of an app.
|
|
420
|
+
* @format GUID
|
|
421
|
+
*/
|
|
363
422
|
appId?: string;
|
|
364
423
|
}
|
|
365
424
|
export declare enum WebhookIdentityType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-resources-v2-resource-type-resource-types.types.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-type-resource-types.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"bookings-resources-v2-resource-type-resource-types.types.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-type-resource-types.types.ts"],"names":[],"mappings":";;;AAqJA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,gEAA6C,CAAA;IAC7C,oGAAiF,CAAA;IACjF,8EAA2D,CAAA;AAC7D,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAOD,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,qGAAyE,CAAA;IACzE,+EAA+E;IAC/E,qFAAyD,CAAA;AAC3D,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AAiFD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAoND,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
export interface ResourceType {
|
|
10
10
|
/**
|
|
11
11
|
* Resource type ID.
|
|
12
|
+
* @format GUID
|
|
12
13
|
* @readonly
|
|
13
14
|
*/
|
|
14
15
|
_id?: string | null;
|
|
@@ -32,6 +33,8 @@ export interface ResourceType {
|
|
|
32
33
|
/**
|
|
33
34
|
* Name of the resource type. For example, `meeting room`. The name must be
|
|
34
35
|
* unique per site.
|
|
36
|
+
* @maxLength 40
|
|
37
|
+
* @minLength 1
|
|
35
38
|
*/
|
|
36
39
|
name?: string | null;
|
|
37
40
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
@@ -72,7 +75,11 @@ export interface ResourceCounts {
|
|
|
72
75
|
distinctLocationIds?: DistinctLocationIds;
|
|
73
76
|
}
|
|
74
77
|
export interface DistinctLocationIds {
|
|
75
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* IDs of the business locations with a resource connected to the type.
|
|
80
|
+
* @format GUID
|
|
81
|
+
* @maxSize 50
|
|
82
|
+
*/
|
|
76
83
|
values?: string[];
|
|
77
84
|
}
|
|
78
85
|
export interface ExtendedFields {
|
|
@@ -120,6 +127,7 @@ export interface SpecificLocation {
|
|
|
120
127
|
* Not returned, if the resource is available in either all business locations
|
|
121
128
|
* or in no business location.
|
|
122
129
|
* You can specify up to 5 business locations.
|
|
130
|
+
* @maxSize 5
|
|
123
131
|
*/
|
|
124
132
|
businessLocations?: BusinessLocation[];
|
|
125
133
|
}
|
|
@@ -127,6 +135,7 @@ export interface BusinessLocation {
|
|
|
127
135
|
/**
|
|
128
136
|
* ID of the business *location*
|
|
129
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)).
|
|
138
|
+
* @format GUID
|
|
130
139
|
*/
|
|
131
140
|
locationId?: string | null;
|
|
132
141
|
}
|
|
@@ -145,7 +154,10 @@ export declare enum CreateResourceTypeErrors {
|
|
|
145
154
|
FAILED_TO_CREATE_RESOURCES = "FAILED_TO_CREATE_RESOURCES"
|
|
146
155
|
}
|
|
147
156
|
export interface GetResourceTypeRequest {
|
|
148
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* ID of the resource type to retrieve.
|
|
159
|
+
* @format GUID
|
|
160
|
+
*/
|
|
149
161
|
resourceTypeId: string;
|
|
150
162
|
}
|
|
151
163
|
export interface GetResourceTypeResponse {
|
|
@@ -161,7 +173,10 @@ export interface UpdateResourceTypeResponse {
|
|
|
161
173
|
resourceType?: ResourceType;
|
|
162
174
|
}
|
|
163
175
|
export interface DeleteResourceTypeRequest {
|
|
164
|
-
/**
|
|
176
|
+
/**
|
|
177
|
+
* ID of the resource type to delete.
|
|
178
|
+
* @format GUID
|
|
179
|
+
*/
|
|
165
180
|
resourceTypeId: string;
|
|
166
181
|
}
|
|
167
182
|
export interface DeleteResourceTypeResponse {
|
|
@@ -190,6 +205,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
190
205
|
/**
|
|
191
206
|
* Sort object in the following format:
|
|
192
207
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
208
|
+
* @maxSize 3
|
|
193
209
|
*/
|
|
194
210
|
sort?: Sorting[];
|
|
195
211
|
}
|
|
@@ -199,7 +215,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
199
215
|
cursorPaging?: CursorPaging;
|
|
200
216
|
}
|
|
201
217
|
export interface Sorting {
|
|
202
|
-
/**
|
|
218
|
+
/**
|
|
219
|
+
* Name of the field to sort by.
|
|
220
|
+
* @maxLength 200
|
|
221
|
+
*/
|
|
203
222
|
fieldName?: string;
|
|
204
223
|
/** Sort order. */
|
|
205
224
|
order?: SortOrder;
|
|
@@ -209,7 +228,10 @@ export declare enum SortOrder {
|
|
|
209
228
|
DESC = "DESC"
|
|
210
229
|
}
|
|
211
230
|
export interface CursorPaging {
|
|
212
|
-
/**
|
|
231
|
+
/**
|
|
232
|
+
* Number of items to load.
|
|
233
|
+
* @max 100
|
|
234
|
+
*/
|
|
213
235
|
limit?: number | null;
|
|
214
236
|
/**
|
|
215
237
|
* Pointer to the next or previous page in the list of results.
|
|
@@ -217,6 +239,7 @@ export interface CursorPaging {
|
|
|
217
239
|
* You can get the relevant cursor token
|
|
218
240
|
* from the `pagingMetadata` object in the previous call's response.
|
|
219
241
|
* Not relevant for the first request.
|
|
242
|
+
* @maxLength 16000
|
|
220
243
|
*/
|
|
221
244
|
cursor?: string | null;
|
|
222
245
|
}
|
|
@@ -239,9 +262,15 @@ export interface CursorPagingMetadata {
|
|
|
239
262
|
hasNext?: boolean | null;
|
|
240
263
|
}
|
|
241
264
|
export interface Cursors {
|
|
242
|
-
/**
|
|
265
|
+
/**
|
|
266
|
+
* Cursor pointing to next page in the list of results.
|
|
267
|
+
* @maxLength 16000
|
|
268
|
+
*/
|
|
243
269
|
next?: string | null;
|
|
244
|
-
/**
|
|
270
|
+
/**
|
|
271
|
+
* Cursor pointing to previous page in the list of results.
|
|
272
|
+
* @maxLength 16000
|
|
273
|
+
*/
|
|
245
274
|
prev?: string | null;
|
|
246
275
|
}
|
|
247
276
|
export interface CountResourceTypesRequest {
|
|
@@ -328,9 +357,15 @@ export interface ActionEvent {
|
|
|
328
357
|
body?: string;
|
|
329
358
|
}
|
|
330
359
|
export interface MessageEnvelope {
|
|
331
|
-
/**
|
|
360
|
+
/**
|
|
361
|
+
* App instance ID.
|
|
362
|
+
* @format GUID
|
|
363
|
+
*/
|
|
332
364
|
instanceId?: string | null;
|
|
333
|
-
/**
|
|
365
|
+
/**
|
|
366
|
+
* Event type.
|
|
367
|
+
* @maxLength 150
|
|
368
|
+
*/
|
|
334
369
|
eventType?: string;
|
|
335
370
|
/** The identification type and identity data. */
|
|
336
371
|
identity?: IdentificationData;
|
|
@@ -338,26 +373,50 @@ export interface MessageEnvelope {
|
|
|
338
373
|
data?: string;
|
|
339
374
|
}
|
|
340
375
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
341
|
-
/**
|
|
376
|
+
/**
|
|
377
|
+
* ID of a site visitor that has not logged in to the site.
|
|
378
|
+
* @format GUID
|
|
379
|
+
*/
|
|
342
380
|
anonymousVisitorId?: string;
|
|
343
|
-
/**
|
|
381
|
+
/**
|
|
382
|
+
* ID of a site visitor that has logged in to the site.
|
|
383
|
+
* @format GUID
|
|
384
|
+
*/
|
|
344
385
|
memberId?: string;
|
|
345
|
-
/**
|
|
386
|
+
/**
|
|
387
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
388
|
+
* @format GUID
|
|
389
|
+
*/
|
|
346
390
|
wixUserId?: string;
|
|
347
|
-
/**
|
|
391
|
+
/**
|
|
392
|
+
* ID of an app.
|
|
393
|
+
* @format GUID
|
|
394
|
+
*/
|
|
348
395
|
appId?: string;
|
|
349
396
|
/** @readonly */
|
|
350
397
|
identityType?: WebhookIdentityType;
|
|
351
398
|
}
|
|
352
399
|
/** @oneof */
|
|
353
400
|
export interface IdentificationDataIdOneOf {
|
|
354
|
-
/**
|
|
401
|
+
/**
|
|
402
|
+
* ID of a site visitor that has not logged in to the site.
|
|
403
|
+
* @format GUID
|
|
404
|
+
*/
|
|
355
405
|
anonymousVisitorId?: string;
|
|
356
|
-
/**
|
|
406
|
+
/**
|
|
407
|
+
* ID of a site visitor that has logged in to the site.
|
|
408
|
+
* @format GUID
|
|
409
|
+
*/
|
|
357
410
|
memberId?: string;
|
|
358
|
-
/**
|
|
411
|
+
/**
|
|
412
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
413
|
+
* @format GUID
|
|
414
|
+
*/
|
|
359
415
|
wixUserId?: string;
|
|
360
|
-
/**
|
|
416
|
+
/**
|
|
417
|
+
* ID of an app.
|
|
418
|
+
* @format GUID
|
|
419
|
+
*/
|
|
361
420
|
appId?: string;
|
|
362
421
|
}
|
|
363
422
|
export declare enum WebhookIdentityType {
|
|
@@ -393,9 +452,15 @@ export interface CountResourceTypesResponseNonNullableFields {
|
|
|
393
452
|
count: number;
|
|
394
453
|
}
|
|
395
454
|
export interface BaseEventMetadata {
|
|
396
|
-
/**
|
|
455
|
+
/**
|
|
456
|
+
* App instance ID.
|
|
457
|
+
* @format GUID
|
|
458
|
+
*/
|
|
397
459
|
instanceId?: string | null;
|
|
398
|
-
/**
|
|
460
|
+
/**
|
|
461
|
+
* Event type.
|
|
462
|
+
* @maxLength 150
|
|
463
|
+
*/
|
|
399
464
|
eventType?: string;
|
|
400
465
|
/** The identification type and identity data. */
|
|
401
466
|
identity?: IdentificationData;
|
|
@@ -446,6 +511,8 @@ export interface ResourceTypeCreatedEnvelope {
|
|
|
446
511
|
* Triggered when a resource type is created.
|
|
447
512
|
* @webhook
|
|
448
513
|
* @eventType wix.bookings.resources.v2.resource_type_created
|
|
514
|
+
* @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
|
|
515
|
+
* @slug created
|
|
449
516
|
* @documentationMaturity preview
|
|
450
517
|
*/
|
|
451
518
|
export declare function onResourceTypeCreated(handler: (event: ResourceTypeCreatedEnvelope) => void | Promise<void>): void;
|
|
@@ -456,6 +523,8 @@ export interface ResourceTypeDeletedEnvelope {
|
|
|
456
523
|
* Triggered when a resource type is deleted.
|
|
457
524
|
* @webhook
|
|
458
525
|
* @eventType wix.bookings.resources.v2.resource_type_deleted
|
|
526
|
+
* @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
|
|
527
|
+
* @slug deleted
|
|
459
528
|
* @documentationMaturity preview
|
|
460
529
|
*/
|
|
461
530
|
export declare function onResourceTypeDeleted(handler: (event: ResourceTypeDeletedEnvelope) => void | Promise<void>): void;
|
|
@@ -467,6 +536,8 @@ export interface ResourceTypeUpdatedEnvelope {
|
|
|
467
536
|
* Triggered when a resource type is updated.
|
|
468
537
|
* @webhook
|
|
469
538
|
* @eventType wix.bookings.resources.v2.resource_type_updated
|
|
539
|
+
* @serviceIdentifier wix.bookings.resources.v2.resourcetypes.ResourceTypesService
|
|
540
|
+
* @slug updated
|
|
470
541
|
* @documentationMaturity preview
|
|
471
542
|
*/
|
|
472
543
|
export declare function onResourceTypeUpdated(handler: (event: ResourceTypeUpdatedEnvelope) => void | Promise<void>): void;
|
|
@@ -553,6 +624,7 @@ export declare function updateResourceType(_id: string | null, resourceType: Upd
|
|
|
553
624
|
export interface UpdateResourceType {
|
|
554
625
|
/**
|
|
555
626
|
* Resource type ID.
|
|
627
|
+
* @format GUID
|
|
556
628
|
* @readonly
|
|
557
629
|
*/
|
|
558
630
|
_id?: string | null;
|
|
@@ -576,6 +648,8 @@ export interface UpdateResourceType {
|
|
|
576
648
|
/**
|
|
577
649
|
* Name of the resource type. For example, `meeting room`. The name must be
|
|
578
650
|
* unique per site.
|
|
651
|
+
* @maxLength 40
|
|
652
|
+
* @minLength 1
|
|
579
653
|
*/
|
|
580
654
|
name?: string | null;
|
|
581
655
|
/** Extensions enabling users to save custom data related to the resource type. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-resources-v2-resource-type-resource-types.universal.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-type-resource-types.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,2IAA6H;
|
|
1
|
+
{"version":3,"file":"bookings-resources-v2-resource-type-resource-types.universal.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-type-resource-types.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,2IAA6H;AAwJ7H,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,gEAA6C,CAAA;IAC7C,oGAAiF,CAAA;IACjF,8EAA2D,CAAA;AAC7D,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAOD,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,qGAAyE,CAAA;IACzE,+EAA+E;IAC/E,qFAAyD,CAAA;AAC3D,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AAiFD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAkND,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AA2ID;;;;;;;;;;;;;;;GAeG;AACI,KAAK,UAAU,kBAAkB,CACtC,YAA0B;IAE1B,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,YAAY,EAAE,YAAY;KAC3B,CAAC,CAA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