@kohost/api-client 4.15.3 → 4.16.0
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/dist/cjs/httpClient.d.cts +12 -2
- package/dist/cjs/{index-C0VQ2ffR.d.cts → index-BjziDwt4.d.cts} +21 -1
- package/dist/cjs/index.d.cts +11 -1
- package/dist/cjs/models/issue.cjs +0 -1
- package/dist/cjs/models/issue.cjs.map +1 -1
- package/dist/cjs/models/property.cjs +0 -1
- package/dist/cjs/models/property.cjs.map +1 -1
- package/dist/cjs/models/ticket.cjs +0 -1
- package/dist/cjs/models/ticket.cjs.map +1 -1
- package/dist/cjs/schemas/issue.cjs +1 -4
- package/dist/cjs/schemas/issue.cjs.map +1 -1
- package/dist/cjs/schemas/issue.d.cts +1 -4
- package/dist/cjs/schemas/property.cjs +0 -6
- package/dist/cjs/schemas/property.cjs.map +1 -1
- package/dist/cjs/schemas/property.d.cts +0 -6
- package/dist/cjs/schemas/ticket.cjs +0 -3
- package/dist/cjs/schemas/ticket.cjs.map +1 -1
- package/dist/cjs/schemas/ticket.d.cts +0 -3
- package/dist/cjs/schemas/user.cjs +5 -6
- package/dist/cjs/schemas/user.cjs.map +1 -1
- package/dist/cjs/schemas/user.d.cts +5 -6
- package/dist/cjs/useCases/createDepartment.cjs +72 -0
- package/dist/cjs/useCases/createDepartment.cjs.map +1 -0
- package/dist/cjs/useCases/createDepartment.d.cts +29 -0
- package/dist/cjs/useCases/createServer.cjs +72 -0
- package/dist/cjs/useCases/createServer.cjs.map +1 -0
- package/dist/cjs/useCases/createServer.d.cts +29 -0
- package/dist/cjs/useCases/deleteDepartment.cjs +72 -0
- package/dist/cjs/useCases/deleteDepartment.cjs.map +1 -0
- package/dist/cjs/useCases/deleteDepartment.d.cts +38 -0
- package/dist/cjs/useCases/deleteServer.cjs +72 -0
- package/dist/cjs/useCases/deleteServer.cjs.map +1 -0
- package/dist/cjs/useCases/deleteServer.d.cts +38 -0
- package/dist/cjs/useCases/describeDepartment.cjs +72 -0
- package/dist/cjs/useCases/describeDepartment.cjs.map +1 -0
- package/dist/cjs/useCases/describeDepartment.d.cts +38 -0
- package/dist/cjs/useCases/describeServer.cjs +72 -0
- package/dist/cjs/useCases/describeServer.cjs.map +1 -0
- package/dist/cjs/useCases/describeServer.d.cts +38 -0
- package/dist/cjs/useCases/index.cjs +30 -0
- package/dist/cjs/useCases/index.cjs.map +1 -1
- package/dist/cjs/useCases/index.d.cts +10 -0
- package/dist/cjs/useCases/listDepartments.cjs +72 -0
- package/dist/cjs/useCases/listDepartments.cjs.map +1 -0
- package/dist/cjs/useCases/listDepartments.d.cts +29 -0
- package/dist/cjs/useCases/listServers.cjs +72 -0
- package/dist/cjs/useCases/listServers.cjs.map +1 -0
- package/dist/cjs/useCases/listServers.d.cts +29 -0
- package/dist/cjs/useCases/updateDepartment.cjs +72 -0
- package/dist/cjs/useCases/updateDepartment.cjs.map +1 -0
- package/dist/cjs/useCases/updateDepartment.d.cts +38 -0
- package/dist/cjs/useCases/updateServer.cjs +72 -0
- package/dist/cjs/useCases/updateServer.cjs.map +1 -0
- package/dist/cjs/useCases/updateServer.d.cts +38 -0
- package/dist/cjs/validate.d.cts +0 -3
- package/dist/esm/httpClient.d.ts +12 -2
- package/dist/esm/{index-_-hKRXg6.d.ts → index-CY1L0nkI.d.ts} +21 -1
- package/dist/esm/index.d.ts +11 -1
- package/dist/esm/models/issue.js +0 -1
- package/dist/esm/models/issue.js.map +1 -1
- package/dist/esm/models/property.js +0 -1
- package/dist/esm/models/property.js.map +1 -1
- package/dist/esm/models/ticket.js +0 -1
- package/dist/esm/models/ticket.js.map +1 -1
- package/dist/esm/schemas/issue.d.ts +1 -4
- package/dist/esm/schemas/issue.js +1 -4
- package/dist/esm/schemas/issue.js.map +1 -1
- package/dist/esm/schemas/property.d.ts +0 -6
- package/dist/esm/schemas/property.js +0 -6
- package/dist/esm/schemas/property.js.map +1 -1
- package/dist/esm/schemas/ticket.d.ts +0 -3
- package/dist/esm/schemas/ticket.js +0 -3
- package/dist/esm/schemas/ticket.js.map +1 -1
- package/dist/esm/schemas/user.d.ts +5 -6
- package/dist/esm/schemas/user.js +5 -6
- package/dist/esm/schemas/user.js.map +1 -1
- package/dist/esm/useCases/createDepartment.d.ts +29 -0
- package/dist/esm/useCases/createDepartment.js +50 -0
- package/dist/esm/useCases/createDepartment.js.map +1 -0
- package/dist/esm/useCases/createServer.d.ts +29 -0
- package/dist/esm/useCases/createServer.js +50 -0
- package/dist/esm/useCases/createServer.js.map +1 -0
- package/dist/esm/useCases/deleteDepartment.d.ts +38 -0
- package/dist/esm/useCases/deleteDepartment.js +50 -0
- package/dist/esm/useCases/deleteDepartment.js.map +1 -0
- package/dist/esm/useCases/deleteServer.d.ts +38 -0
- package/dist/esm/useCases/deleteServer.js +50 -0
- package/dist/esm/useCases/deleteServer.js.map +1 -0
- package/dist/esm/useCases/describeDepartment.d.ts +38 -0
- package/dist/esm/useCases/describeDepartment.js +50 -0
- package/dist/esm/useCases/describeDepartment.js.map +1 -0
- package/dist/esm/useCases/describeServer.d.ts +38 -0
- package/dist/esm/useCases/describeServer.js +50 -0
- package/dist/esm/useCases/describeServer.js.map +1 -0
- package/dist/esm/useCases/index.d.ts +10 -0
- package/dist/esm/useCases/index.js +20 -0
- package/dist/esm/useCases/index.js.map +1 -1
- package/dist/esm/useCases/listDepartments.d.ts +29 -0
- package/dist/esm/useCases/listDepartments.js +50 -0
- package/dist/esm/useCases/listDepartments.js.map +1 -0
- package/dist/esm/useCases/listServers.d.ts +29 -0
- package/dist/esm/useCases/listServers.js +50 -0
- package/dist/esm/useCases/listServers.js.map +1 -0
- package/dist/esm/useCases/updateDepartment.d.ts +38 -0
- package/dist/esm/useCases/updateDepartment.js +50 -0
- package/dist/esm/useCases/updateDepartment.js.map +1 -0
- package/dist/esm/useCases/updateServer.d.ts +38 -0
- package/dist/esm/useCases/updateServer.js +50 -0
- package/dist/esm/useCases/updateServer.js.map +1 -0
- package/dist/esm/validate.d.ts +0 -3
- package/package.json +1 -1
|
@@ -37,6 +37,11 @@ import { DeleteCategoryCommand } from './useCases/deleteCategory.js';
|
|
|
37
37
|
import { DescribeCategoryCommand } from './useCases/describeCategory.js';
|
|
38
38
|
import { ListCategoriesCommand } from './useCases/listCategories.js';
|
|
39
39
|
import { UpdateCategoryCommand } from './useCases/updateCategory.js';
|
|
40
|
+
import { DescribeDepartmentCommand } from './useCases/describeDepartment.js';
|
|
41
|
+
import { ListDepartmentsCommand } from './useCases/listDepartments.js';
|
|
42
|
+
import { DeleteDepartmentCommand } from './useCases/deleteDepartment.js';
|
|
43
|
+
import { CreateDepartmentCommand } from './useCases/createDepartment.js';
|
|
44
|
+
import { UpdateDepartmentCommand } from './useCases/updateDepartment.js';
|
|
40
45
|
import { ListRoomsCommand } from './useCases/listRooms.js';
|
|
41
46
|
import { DescribeRoomCommand } from './useCases/describeRoom.js';
|
|
42
47
|
import { CreateRoomCommand } from './useCases/createRoom.js';
|
|
@@ -202,6 +207,11 @@ import { DeleteSystemCommand } from './useCases/deleteSystem.js';
|
|
|
202
207
|
import { DescribeSystemCommand } from './useCases/describeSystem.js';
|
|
203
208
|
import { ListSystemsCommand } from './useCases/listSystems.js';
|
|
204
209
|
import { UpdateSystemCommand } from './useCases/updateSystem.js';
|
|
210
|
+
import { CreateServerCommand } from './useCases/createServer.js';
|
|
211
|
+
import { DeleteServerCommand } from './useCases/deleteServer.js';
|
|
212
|
+
import { DescribeServerCommand } from './useCases/describeServer.js';
|
|
213
|
+
import { ListServersCommand } from './useCases/listServers.js';
|
|
214
|
+
import { UpdateServerCommand } from './useCases/updateServer.js';
|
|
205
215
|
|
|
206
216
|
declare const index_AutoAssociateDiscoveredDevicesCommand: typeof AutoAssociateDiscoveredDevicesCommand;
|
|
207
217
|
declare const index_AutoCloseTicketsCommand: typeof AutoCloseTicketsCommand;
|
|
@@ -214,6 +224,7 @@ declare const index_CreateCameraCommand: typeof CreateCameraCommand;
|
|
|
214
224
|
declare const index_CreateCategoryCommand: typeof CreateCategoryCommand;
|
|
215
225
|
declare const index_CreateCourtesyCommand: typeof CreateCourtesyCommand;
|
|
216
226
|
declare const index_CreateDefaultAutomationsCommand: typeof CreateDefaultAutomationsCommand;
|
|
227
|
+
declare const index_CreateDepartmentCommand: typeof CreateDepartmentCommand;
|
|
217
228
|
declare const index_CreateDimmerCommand: typeof CreateDimmerCommand;
|
|
218
229
|
declare const index_CreateDiscoveredDeviceAssociationCommand: typeof CreateDiscoveredDeviceAssociationCommand;
|
|
219
230
|
declare const index_CreateDiscoveredDeviceAssociationMapCommand: typeof CreateDiscoveredDeviceAssociationMapCommand;
|
|
@@ -228,6 +239,7 @@ declare const index_CreatePolicyCommand: typeof CreatePolicyCommand;
|
|
|
228
239
|
declare const index_CreatePropertyCommand: typeof CreatePropertyCommand;
|
|
229
240
|
declare const index_CreateRoomCommand: typeof CreateRoomCommand;
|
|
230
241
|
declare const index_CreateRoomInSpaceCommand: typeof CreateRoomInSpaceCommand;
|
|
242
|
+
declare const index_CreateServerCommand: typeof CreateServerCommand;
|
|
231
243
|
declare const index_CreateSessionCommand: typeof CreateSessionCommand;
|
|
232
244
|
declare const index_CreateSpaceCommand: typeof CreateSpaceCommand;
|
|
233
245
|
declare const index_CreateSwitchCommand: typeof CreateSwitchCommand;
|
|
@@ -246,6 +258,7 @@ declare const index_DeleteAutomationCommand: typeof DeleteAutomationCommand;
|
|
|
246
258
|
declare const index_DeleteCameraCommand: typeof DeleteCameraCommand;
|
|
247
259
|
declare const index_DeleteCategoryCommand: typeof DeleteCategoryCommand;
|
|
248
260
|
declare const index_DeleteCourtesyCommand: typeof DeleteCourtesyCommand;
|
|
261
|
+
declare const index_DeleteDepartmentCommand: typeof DeleteDepartmentCommand;
|
|
249
262
|
declare const index_DeleteDimmerCommand: typeof DeleteDimmerCommand;
|
|
250
263
|
declare const index_DeleteDiscoveredDeviceCommand: typeof DeleteDiscoveredDeviceCommand;
|
|
251
264
|
declare const index_DeleteIssueCommand: typeof DeleteIssueCommand;
|
|
@@ -255,6 +268,7 @@ declare const index_DeleteMediaSourceCommand: typeof DeleteMediaSourceCommand;
|
|
|
255
268
|
declare const index_DeleteNotificationCommand: typeof DeleteNotificationCommand;
|
|
256
269
|
declare const index_DeletePolicyCommand: typeof DeletePolicyCommand;
|
|
257
270
|
declare const index_DeleteRoomCommand: typeof DeleteRoomCommand;
|
|
271
|
+
declare const index_DeleteServerCommand: typeof DeleteServerCommand;
|
|
258
272
|
declare const index_DeleteSessionCommand: typeof DeleteSessionCommand;
|
|
259
273
|
declare const index_DeleteSpaceCommand: typeof DeleteSpaceCommand;
|
|
260
274
|
declare const index_DeleteSwitchCommand: typeof DeleteSwitchCommand;
|
|
@@ -275,6 +289,7 @@ declare const index_DescribeCameraCommand: typeof DescribeCameraCommand;
|
|
|
275
289
|
declare const index_DescribeCameraConfigCommand: typeof DescribeCameraConfigCommand;
|
|
276
290
|
declare const index_DescribeCategoryCommand: typeof DescribeCategoryCommand;
|
|
277
291
|
declare const index_DescribeCourtesyCommand: typeof DescribeCourtesyCommand;
|
|
292
|
+
declare const index_DescribeDepartmentCommand: typeof DescribeDepartmentCommand;
|
|
278
293
|
declare const index_DescribeDimmerCommand: typeof DescribeDimmerCommand;
|
|
279
294
|
declare const index_DescribeDiscoveredDeviceCommand: typeof DescribeDiscoveredDeviceCommand;
|
|
280
295
|
declare const index_DescribeIssueCommand: typeof DescribeIssueCommand;
|
|
@@ -290,6 +305,7 @@ declare const index_DescribePropertyCommand: typeof DescribePropertyCommand;
|
|
|
290
305
|
declare const index_DescribeRoomCommand: typeof DescribeRoomCommand;
|
|
291
306
|
declare const index_DescribeSOSCommand: typeof DescribeSOSCommand;
|
|
292
307
|
declare const index_DescribeSelfCommand: typeof DescribeSelfCommand;
|
|
308
|
+
declare const index_DescribeServerCommand: typeof DescribeServerCommand;
|
|
293
309
|
declare const index_DescribeSessionCommand: typeof DescribeSessionCommand;
|
|
294
310
|
declare const index_DescribeSpaceCommand: typeof DescribeSpaceCommand;
|
|
295
311
|
declare const index_DescribeSwitchCommand: typeof DescribeSwitchCommand;
|
|
@@ -313,6 +329,7 @@ declare const index_ListCameraStreamPreviewsCommand: typeof ListCameraStreamPrev
|
|
|
313
329
|
declare const index_ListCamerasCommand: typeof ListCamerasCommand;
|
|
314
330
|
declare const index_ListCategoriesCommand: typeof ListCategoriesCommand;
|
|
315
331
|
declare const index_ListCourtesyCommand: typeof ListCourtesyCommand;
|
|
332
|
+
declare const index_ListDepartmentsCommand: typeof ListDepartmentsCommand;
|
|
316
333
|
declare const index_ListDimmersCommand: typeof ListDimmersCommand;
|
|
317
334
|
declare const index_ListDiscoveredDevicesCommand: typeof ListDiscoveredDevicesCommand;
|
|
318
335
|
declare const index_ListIssuesCommand: typeof ListIssuesCommand;
|
|
@@ -327,6 +344,7 @@ declare const index_ListPropertiesCommand: typeof ListPropertiesCommand;
|
|
|
327
344
|
declare const index_ListRoomsCommand: typeof ListRoomsCommand;
|
|
328
345
|
declare const index_ListRoomsInSpaceCommand: typeof ListRoomsInSpaceCommand;
|
|
329
346
|
declare const index_ListScenesCommand: typeof ListScenesCommand;
|
|
347
|
+
declare const index_ListServersCommand: typeof ListServersCommand;
|
|
330
348
|
declare const index_ListSessionsCommand: typeof ListSessionsCommand;
|
|
331
349
|
declare const index_ListSpacesCommand: typeof ListSpacesCommand;
|
|
332
350
|
declare const index_ListSwitchesCommand: typeof ListSwitchesCommand;
|
|
@@ -379,6 +397,7 @@ declare const index_UpdateAutomationCommand: typeof UpdateAutomationCommand;
|
|
|
379
397
|
declare const index_UpdateCameraCommand: typeof UpdateCameraCommand;
|
|
380
398
|
declare const index_UpdateCategoryCommand: typeof UpdateCategoryCommand;
|
|
381
399
|
declare const index_UpdateCourtesyCommand: typeof UpdateCourtesyCommand;
|
|
400
|
+
declare const index_UpdateDepartmentCommand: typeof UpdateDepartmentCommand;
|
|
382
401
|
declare const index_UpdateDimmerCommand: typeof UpdateDimmerCommand;
|
|
383
402
|
declare const index_UpdateDiscoveredDeviceCommand: typeof UpdateDiscoveredDeviceCommand;
|
|
384
403
|
declare const index_UpdateIssueCommand: typeof UpdateIssueCommand;
|
|
@@ -392,6 +411,7 @@ declare const index_UpdatePropertyCommand: typeof UpdatePropertyCommand;
|
|
|
392
411
|
declare const index_UpdatePropertySettingsCommand: typeof UpdatePropertySettingsCommand;
|
|
393
412
|
declare const index_UpdateRoomCommand: typeof UpdateRoomCommand;
|
|
394
413
|
declare const index_UpdateSelfCommand: typeof UpdateSelfCommand;
|
|
414
|
+
declare const index_UpdateServerCommand: typeof UpdateServerCommand;
|
|
395
415
|
declare const index_UpdateSessionCommand: typeof UpdateSessionCommand;
|
|
396
416
|
declare const index_UpdateSpaceCommand: typeof UpdateSpaceCommand;
|
|
397
417
|
declare const index_UpdateSwitchCommand: typeof UpdateSwitchCommand;
|
|
@@ -408,7 +428,7 @@ declare const index_UploadImageCommand: typeof UploadImageCommand;
|
|
|
408
428
|
declare const index_UpsertDiscoveredDeviceCommand: typeof UpsertDiscoveredDeviceCommand;
|
|
409
429
|
declare const index_ValidateAuthCommand: typeof ValidateAuthCommand;
|
|
410
430
|
declare namespace index {
|
|
411
|
-
export { index_AutoAssociateDiscoveredDevicesCommand as AutoAssociateDiscoveredDevicesCommand, index_AutoCloseTicketsCommand as AutoCloseTicketsCommand, index_BulkUpdateIssueCommand as BulkUpdateIssueCommand, index_CheckVerificationCodeCommand as CheckVerificationCodeCommand, index_CreateAlarmCommand as CreateAlarmCommand, index_CreateAnnouncementCommand as CreateAnnouncementCommand, index_CreateAutomationCommand as CreateAutomationCommand, index_CreateCameraCommand as CreateCameraCommand, index_CreateCategoryCommand as CreateCategoryCommand, index_CreateCourtesyCommand as CreateCourtesyCommand, index_CreateDefaultAutomationsCommand as CreateDefaultAutomationsCommand, index_CreateDimmerCommand as CreateDimmerCommand, index_CreateDiscoveredDeviceAssociationCommand as CreateDiscoveredDeviceAssociationCommand, index_CreateDiscoveredDeviceAssociationMapCommand as CreateDiscoveredDeviceAssociationMapCommand, index_CreateDiscoveredDeviceCommand as CreateDiscoveredDeviceCommand, index_CreateImageUploadEndpointCommand as CreateImageUploadEndpointCommand, index_CreateIssueCommand as CreateIssueCommand, index_CreateLockCommand as CreateLockCommand, index_CreateMediaSourceCommand as CreateMediaSourceCommand, index_CreateNotificationCommand as CreateNotificationCommand, index_CreateOrganizationCommand as CreateOrganizationCommand, index_CreatePolicyCommand as CreatePolicyCommand, index_CreatePropertyCommand as CreatePropertyCommand, index_CreateRoomCommand as CreateRoomCommand, index_CreateRoomInSpaceCommand as CreateRoomInSpaceCommand, index_CreateSessionCommand as CreateSessionCommand, index_CreateSpaceCommand as CreateSpaceCommand, index_CreateSwitchCommand as CreateSwitchCommand, index_CreateSystemCommand as CreateSystemCommand, index_CreateThermostatCommand as CreateThermostatCommand, index_CreateTicketCommand as CreateTicketCommand, index_CreateTicketMessageCommand as CreateTicketMessageCommand, index_CreateTimeSheetCommand as CreateTimeSheetCommand, index_CreateTimeSheetTimeEntryCommand as CreateTimeSheetTimeEntryCommand, index_CreateUserCommand as CreateUserCommand, index_CreateVendorCommand as CreateVendorCommand, index_CreateWindowCoveringCommand as CreateWindowCoveringCommand, index_DeleteAlarmCommand as DeleteAlarmCommand, index_DeleteAnnouncementCommand as DeleteAnnouncementCommand, index_DeleteAutomationCommand as DeleteAutomationCommand, index_DeleteCameraCommand as DeleteCameraCommand, index_DeleteCategoryCommand as DeleteCategoryCommand, index_DeleteCourtesyCommand as DeleteCourtesyCommand, index_DeleteDimmerCommand as DeleteDimmerCommand, index_DeleteDiscoveredDeviceCommand as DeleteDiscoveredDeviceCommand, index_DeleteIssueCommand as DeleteIssueCommand, index_DeleteLockCommand as DeleteLockCommand, index_DeleteMediaFileCommand as DeleteMediaFileCommand, index_DeleteMediaSourceCommand as DeleteMediaSourceCommand, index_DeleteNotificationCommand as DeleteNotificationCommand, index_DeletePolicyCommand as DeletePolicyCommand, index_DeleteRoomCommand as DeleteRoomCommand, index_DeleteSessionCommand as DeleteSessionCommand, index_DeleteSpaceCommand as DeleteSpaceCommand, index_DeleteSwitchCommand as DeleteSwitchCommand, index_DeleteSystemCommand as DeleteSystemCommand, index_DeleteThermostatCommand as DeleteThermostatCommand, index_DeleteTicketCommand as DeleteTicketCommand, index_DeleteTimeSheetCommand as DeleteTimeSheetCommand, index_DeleteTimeSheetTimeEntryCommand as DeleteTimeSheetTimeEntryCommand, index_DeleteUserCommand as DeleteUserCommand, index_DeleteUserCredentialCommand as DeleteUserCredentialCommand, index_DeleteVendorCommand as DeleteVendorCommand, index_DeleteWindowCoveringCommand as DeleteWindowCoveringCommand, index_DescribeAlarmCommand as DescribeAlarmCommand, index_DescribeAlarmConfigCommand as DescribeAlarmConfigCommand, index_DescribeAnnouncementCommand as DescribeAnnouncementCommand, index_DescribeAutomationCommand as DescribeAutomationCommand, index_DescribeCameraCommand as DescribeCameraCommand, index_DescribeCameraConfigCommand as DescribeCameraConfigCommand, index_DescribeCategoryCommand as DescribeCategoryCommand, index_DescribeCourtesyCommand as DescribeCourtesyCommand, index_DescribeDimmerCommand as DescribeDimmerCommand, index_DescribeDiscoveredDeviceCommand as DescribeDiscoveredDeviceCommand, index_DescribeIssueCommand as DescribeIssueCommand, index_DescribeLockCommand as DescribeLockCommand, index_DescribeMediaSourceCommand as DescribeMediaSourceCommand, index_DescribeMyAuthCommand as DescribeMyAuthCommand, index_DescribeMyOrganizationCommand as DescribeMyOrganizationCommand, index_DescribeMyPasskeyRegistrationsCommand as DescribeMyPasskeyRegistrationsCommand, index_DescribeNotificationCommand as DescribeNotificationCommand, index_DescribeOrganizationCommand as DescribeOrganizationCommand, index_DescribePolicyCommand as DescribePolicyCommand, index_DescribePropertyCommand as DescribePropertyCommand, index_DescribeRoomCommand as DescribeRoomCommand, index_DescribeSOSCommand as DescribeSOSCommand, index_DescribeSelfCommand as DescribeSelfCommand, index_DescribeSessionCommand as DescribeSessionCommand, index_DescribeSpaceCommand as DescribeSpaceCommand, index_DescribeSwitchCommand as DescribeSwitchCommand, index_DescribeSystemCommand as DescribeSystemCommand, index_DescribeThermostatCommand as DescribeThermostatCommand, index_DescribeTicketCommand as DescribeTicketCommand, index_DescribeTicketFiltersCommand as DescribeTicketFiltersCommand, index_DescribeTicketStatsCommand as DescribeTicketStatsCommand, index_DescribeTimeSheetCommand as DescribeTimeSheetCommand, index_DescribeTimeSheetStatsCommand as DescribeTimeSheetStatsCommand, index_DescribeUserCommand as DescribeUserCommand, index_DescribeVendorCommand as DescribeVendorCommand, index_DescribeWindowCoveringCommand as DescribeWindowCoveringCommand, index_EmailUserAccountSetupCommand as EmailUserAccountSetupCommand, index_FinishRegisterPasskeyCommand as FinishRegisterPasskeyCommand, index_LeaveTicketCommand as LeaveTicketCommand, index_ListAlarmsCommand as ListAlarmsCommand, index_ListAnnouncementsCommand as ListAnnouncementsCommand, index_ListAutomationsCommand as ListAutomationsCommand, index_ListCameraStreamPreviewsCommand as ListCameraStreamPreviewsCommand, index_ListCamerasCommand as ListCamerasCommand, index_ListCategoriesCommand as ListCategoriesCommand, index_ListCourtesyCommand as ListCourtesyCommand, index_ListDimmersCommand as ListDimmersCommand, index_ListDiscoveredDevicesCommand as ListDiscoveredDevicesCommand, index_ListIssuesCommand as ListIssuesCommand, index_ListLocksCommand as ListLocksCommand, index_ListMediaSourcesCommand as ListMediaSourcesCommand, index_ListMyPropertiesCommand as ListMyPropertiesCommand, index_ListMyTimeSheetsCommand as ListMyTimeSheetsCommand, index_ListNotificationsCommand as ListNotificationsCommand, index_ListOrganizationsCommand as ListOrganizationsCommand, index_ListPoliciesCommand as ListPoliciesCommand, index_ListPropertiesCommand as ListPropertiesCommand, index_ListRoomsCommand as ListRoomsCommand, index_ListRoomsInSpaceCommand as ListRoomsInSpaceCommand, index_ListScenesCommand as ListScenesCommand, index_ListSessionsCommand as ListSessionsCommand, index_ListSpacesCommand as ListSpacesCommand, index_ListSwitchesCommand as ListSwitchesCommand, index_ListSystemsCommand as ListSystemsCommand, index_ListThermostatsCommand as ListThermostatsCommand, index_ListTicketLocationsCommand as ListTicketLocationsCommand, index_ListTicketsCommand as ListTicketsCommand, index_ListTimeSheetsCommand as ListTimeSheetsCommand, index_ListUserSpacesCommand as ListUserSpacesCommand, index_ListUsersCommand as ListUsersCommand, index_ListVendorsCommand as ListVendorsCommand, index_ListWindowCoveringsCommand as ListWindowCoveringsCommand, index_LoginFinishCommand as LoginFinishCommand, index_LoginStartCommand as LoginStartCommand, index_LogoutSelfCommand as LogoutSelfCommand, index_LogoutUserCommand as LogoutUserCommand, index_MoveAlarmCommand as MoveAlarmCommand, index_MoveCameraCommand as MoveCameraCommand, index_MoveCourtesyCommand as MoveCourtesyCommand, index_MoveDimmerCommand as MoveDimmerCommand, index_MoveLockCommand as MoveLockCommand, index_MoveMediaSourceCommand as MoveMediaSourceCommand, index_MoveSwitchCommand as MoveSwitchCommand, index_MoveThermostatCommand as MoveThermostatCommand, index_MoveWindowCoveringCommand as MoveWindowCoveringCommand, index_RefreshTokenCommand as RefreshTokenCommand, index_RequestLoginTokenCommand as RequestLoginTokenCommand, index_RunAutomationCommand as RunAutomationCommand, index_SendNotificationCommand as SendNotificationCommand, index_SendSMSCommand as SendSMSCommand, index_SendVerificationCodeCommand as SendVerificationCodeCommand, index_SetAlarmCommand as SetAlarmCommand, index_SetCameraCommand as SetCameraCommand, index_SetCourtesyCommand as SetCourtesyCommand, index_SetDevicesCommand as SetDevicesCommand, index_SetDimmerCommand as SetDimmerCommand, index_SetLockCommand as SetLockCommand, index_SetMediaSourceCommand as SetMediaSourceCommand, index_SetRoomSceneCommand as SetRoomSceneCommand, index_SetSceneCommand as SetSceneCommand, index_SetSwitchCommand as SetSwitchCommand, index_SetThermostatCommand as SetThermostatCommand, index_SetWindowCoveringCommand as SetWindowCoveringCommand, index_StartRegisterPasskeyCommand as StartRegisterPasskeyCommand, index_StartSOSCommand as StartSOSCommand, index_StopSOSCommand as StopSOSCommand, index_UpdateAlarmCommand as UpdateAlarmCommand, index_UpdateAnnouncementCommand as UpdateAnnouncementCommand, index_UpdateAutomationCommand as UpdateAutomationCommand, index_UpdateCameraCommand as UpdateCameraCommand, index_UpdateCategoryCommand as UpdateCategoryCommand, index_UpdateCourtesyCommand as UpdateCourtesyCommand, index_UpdateDimmerCommand as UpdateDimmerCommand, index_UpdateDiscoveredDeviceCommand as UpdateDiscoveredDeviceCommand, index_UpdateIssueCommand as UpdateIssueCommand, index_UpdateLockCommand as UpdateLockCommand, index_UpdateMediaSourceCommand as UpdateMediaSourceCommand, index_UpdateMessageReadStatusCommand as UpdateMessageReadStatusCommand, index_UpdateNotificationCommand as UpdateNotificationCommand, index_UpdateOrganizationCommand as UpdateOrganizationCommand, index_UpdatePolicyCommand as UpdatePolicyCommand, index_UpdatePropertyCommand as UpdatePropertyCommand, index_UpdatePropertySettingsCommand as UpdatePropertySettingsCommand, index_UpdateRoomCommand as UpdateRoomCommand, index_UpdateSelfCommand as UpdateSelfCommand, index_UpdateSessionCommand as UpdateSessionCommand, index_UpdateSpaceCommand as UpdateSpaceCommand, index_UpdateSwitchCommand as UpdateSwitchCommand, index_UpdateSystemCommand as UpdateSystemCommand, index_UpdateThermostatCommand as UpdateThermostatCommand, index_UpdateTicketCommand as UpdateTicketCommand, index_UpdateTicketStatusCommand as UpdateTicketStatusCommand, index_UpdateTimeSheetCommand as UpdateTimeSheetCommand, index_UpdateTimeSheetTimeEntryCommand as UpdateTimeSheetTimeEntryCommand, index_UpdateUserCommand as UpdateUserCommand, index_UpdateVendorCommand as UpdateVendorCommand, index_UpdateWindowCoveringCommand as UpdateWindowCoveringCommand, index_UploadImageCommand as UploadImageCommand, index_UpsertDiscoveredDeviceCommand as UpsertDiscoveredDeviceCommand, index_ValidateAuthCommand as ValidateAuthCommand };
|
|
431
|
+
export { index_AutoAssociateDiscoveredDevicesCommand as AutoAssociateDiscoveredDevicesCommand, index_AutoCloseTicketsCommand as AutoCloseTicketsCommand, index_BulkUpdateIssueCommand as BulkUpdateIssueCommand, index_CheckVerificationCodeCommand as CheckVerificationCodeCommand, index_CreateAlarmCommand as CreateAlarmCommand, index_CreateAnnouncementCommand as CreateAnnouncementCommand, index_CreateAutomationCommand as CreateAutomationCommand, index_CreateCameraCommand as CreateCameraCommand, index_CreateCategoryCommand as CreateCategoryCommand, index_CreateCourtesyCommand as CreateCourtesyCommand, index_CreateDefaultAutomationsCommand as CreateDefaultAutomationsCommand, index_CreateDepartmentCommand as CreateDepartmentCommand, index_CreateDimmerCommand as CreateDimmerCommand, index_CreateDiscoveredDeviceAssociationCommand as CreateDiscoveredDeviceAssociationCommand, index_CreateDiscoveredDeviceAssociationMapCommand as CreateDiscoveredDeviceAssociationMapCommand, index_CreateDiscoveredDeviceCommand as CreateDiscoveredDeviceCommand, index_CreateImageUploadEndpointCommand as CreateImageUploadEndpointCommand, index_CreateIssueCommand as CreateIssueCommand, index_CreateLockCommand as CreateLockCommand, index_CreateMediaSourceCommand as CreateMediaSourceCommand, index_CreateNotificationCommand as CreateNotificationCommand, index_CreateOrganizationCommand as CreateOrganizationCommand, index_CreatePolicyCommand as CreatePolicyCommand, index_CreatePropertyCommand as CreatePropertyCommand, index_CreateRoomCommand as CreateRoomCommand, index_CreateRoomInSpaceCommand as CreateRoomInSpaceCommand, index_CreateServerCommand as CreateServerCommand, index_CreateSessionCommand as CreateSessionCommand, index_CreateSpaceCommand as CreateSpaceCommand, index_CreateSwitchCommand as CreateSwitchCommand, index_CreateSystemCommand as CreateSystemCommand, index_CreateThermostatCommand as CreateThermostatCommand, index_CreateTicketCommand as CreateTicketCommand, index_CreateTicketMessageCommand as CreateTicketMessageCommand, index_CreateTimeSheetCommand as CreateTimeSheetCommand, index_CreateTimeSheetTimeEntryCommand as CreateTimeSheetTimeEntryCommand, index_CreateUserCommand as CreateUserCommand, index_CreateVendorCommand as CreateVendorCommand, index_CreateWindowCoveringCommand as CreateWindowCoveringCommand, index_DeleteAlarmCommand as DeleteAlarmCommand, index_DeleteAnnouncementCommand as DeleteAnnouncementCommand, index_DeleteAutomationCommand as DeleteAutomationCommand, index_DeleteCameraCommand as DeleteCameraCommand, index_DeleteCategoryCommand as DeleteCategoryCommand, index_DeleteCourtesyCommand as DeleteCourtesyCommand, index_DeleteDepartmentCommand as DeleteDepartmentCommand, index_DeleteDimmerCommand as DeleteDimmerCommand, index_DeleteDiscoveredDeviceCommand as DeleteDiscoveredDeviceCommand, index_DeleteIssueCommand as DeleteIssueCommand, index_DeleteLockCommand as DeleteLockCommand, index_DeleteMediaFileCommand as DeleteMediaFileCommand, index_DeleteMediaSourceCommand as DeleteMediaSourceCommand, index_DeleteNotificationCommand as DeleteNotificationCommand, index_DeletePolicyCommand as DeletePolicyCommand, index_DeleteRoomCommand as DeleteRoomCommand, index_DeleteServerCommand as DeleteServerCommand, index_DeleteSessionCommand as DeleteSessionCommand, index_DeleteSpaceCommand as DeleteSpaceCommand, index_DeleteSwitchCommand as DeleteSwitchCommand, index_DeleteSystemCommand as DeleteSystemCommand, index_DeleteThermostatCommand as DeleteThermostatCommand, index_DeleteTicketCommand as DeleteTicketCommand, index_DeleteTimeSheetCommand as DeleteTimeSheetCommand, index_DeleteTimeSheetTimeEntryCommand as DeleteTimeSheetTimeEntryCommand, index_DeleteUserCommand as DeleteUserCommand, index_DeleteUserCredentialCommand as DeleteUserCredentialCommand, index_DeleteVendorCommand as DeleteVendorCommand, index_DeleteWindowCoveringCommand as DeleteWindowCoveringCommand, index_DescribeAlarmCommand as DescribeAlarmCommand, index_DescribeAlarmConfigCommand as DescribeAlarmConfigCommand, index_DescribeAnnouncementCommand as DescribeAnnouncementCommand, index_DescribeAutomationCommand as DescribeAutomationCommand, index_DescribeCameraCommand as DescribeCameraCommand, index_DescribeCameraConfigCommand as DescribeCameraConfigCommand, index_DescribeCategoryCommand as DescribeCategoryCommand, index_DescribeCourtesyCommand as DescribeCourtesyCommand, index_DescribeDepartmentCommand as DescribeDepartmentCommand, index_DescribeDimmerCommand as DescribeDimmerCommand, index_DescribeDiscoveredDeviceCommand as DescribeDiscoveredDeviceCommand, index_DescribeIssueCommand as DescribeIssueCommand, index_DescribeLockCommand as DescribeLockCommand, index_DescribeMediaSourceCommand as DescribeMediaSourceCommand, index_DescribeMyAuthCommand as DescribeMyAuthCommand, index_DescribeMyOrganizationCommand as DescribeMyOrganizationCommand, index_DescribeMyPasskeyRegistrationsCommand as DescribeMyPasskeyRegistrationsCommand, index_DescribeNotificationCommand as DescribeNotificationCommand, index_DescribeOrganizationCommand as DescribeOrganizationCommand, index_DescribePolicyCommand as DescribePolicyCommand, index_DescribePropertyCommand as DescribePropertyCommand, index_DescribeRoomCommand as DescribeRoomCommand, index_DescribeSOSCommand as DescribeSOSCommand, index_DescribeSelfCommand as DescribeSelfCommand, index_DescribeServerCommand as DescribeServerCommand, index_DescribeSessionCommand as DescribeSessionCommand, index_DescribeSpaceCommand as DescribeSpaceCommand, index_DescribeSwitchCommand as DescribeSwitchCommand, index_DescribeSystemCommand as DescribeSystemCommand, index_DescribeThermostatCommand as DescribeThermostatCommand, index_DescribeTicketCommand as DescribeTicketCommand, index_DescribeTicketFiltersCommand as DescribeTicketFiltersCommand, index_DescribeTicketStatsCommand as DescribeTicketStatsCommand, index_DescribeTimeSheetCommand as DescribeTimeSheetCommand, index_DescribeTimeSheetStatsCommand as DescribeTimeSheetStatsCommand, index_DescribeUserCommand as DescribeUserCommand, index_DescribeVendorCommand as DescribeVendorCommand, index_DescribeWindowCoveringCommand as DescribeWindowCoveringCommand, index_EmailUserAccountSetupCommand as EmailUserAccountSetupCommand, index_FinishRegisterPasskeyCommand as FinishRegisterPasskeyCommand, index_LeaveTicketCommand as LeaveTicketCommand, index_ListAlarmsCommand as ListAlarmsCommand, index_ListAnnouncementsCommand as ListAnnouncementsCommand, index_ListAutomationsCommand as ListAutomationsCommand, index_ListCameraStreamPreviewsCommand as ListCameraStreamPreviewsCommand, index_ListCamerasCommand as ListCamerasCommand, index_ListCategoriesCommand as ListCategoriesCommand, index_ListCourtesyCommand as ListCourtesyCommand, index_ListDepartmentsCommand as ListDepartmentsCommand, index_ListDimmersCommand as ListDimmersCommand, index_ListDiscoveredDevicesCommand as ListDiscoveredDevicesCommand, index_ListIssuesCommand as ListIssuesCommand, index_ListLocksCommand as ListLocksCommand, index_ListMediaSourcesCommand as ListMediaSourcesCommand, index_ListMyPropertiesCommand as ListMyPropertiesCommand, index_ListMyTimeSheetsCommand as ListMyTimeSheetsCommand, index_ListNotificationsCommand as ListNotificationsCommand, index_ListOrganizationsCommand as ListOrganizationsCommand, index_ListPoliciesCommand as ListPoliciesCommand, index_ListPropertiesCommand as ListPropertiesCommand, index_ListRoomsCommand as ListRoomsCommand, index_ListRoomsInSpaceCommand as ListRoomsInSpaceCommand, index_ListScenesCommand as ListScenesCommand, index_ListServersCommand as ListServersCommand, index_ListSessionsCommand as ListSessionsCommand, index_ListSpacesCommand as ListSpacesCommand, index_ListSwitchesCommand as ListSwitchesCommand, index_ListSystemsCommand as ListSystemsCommand, index_ListThermostatsCommand as ListThermostatsCommand, index_ListTicketLocationsCommand as ListTicketLocationsCommand, index_ListTicketsCommand as ListTicketsCommand, index_ListTimeSheetsCommand as ListTimeSheetsCommand, index_ListUserSpacesCommand as ListUserSpacesCommand, index_ListUsersCommand as ListUsersCommand, index_ListVendorsCommand as ListVendorsCommand, index_ListWindowCoveringsCommand as ListWindowCoveringsCommand, index_LoginFinishCommand as LoginFinishCommand, index_LoginStartCommand as LoginStartCommand, index_LogoutSelfCommand as LogoutSelfCommand, index_LogoutUserCommand as LogoutUserCommand, index_MoveAlarmCommand as MoveAlarmCommand, index_MoveCameraCommand as MoveCameraCommand, index_MoveCourtesyCommand as MoveCourtesyCommand, index_MoveDimmerCommand as MoveDimmerCommand, index_MoveLockCommand as MoveLockCommand, index_MoveMediaSourceCommand as MoveMediaSourceCommand, index_MoveSwitchCommand as MoveSwitchCommand, index_MoveThermostatCommand as MoveThermostatCommand, index_MoveWindowCoveringCommand as MoveWindowCoveringCommand, index_RefreshTokenCommand as RefreshTokenCommand, index_RequestLoginTokenCommand as RequestLoginTokenCommand, index_RunAutomationCommand as RunAutomationCommand, index_SendNotificationCommand as SendNotificationCommand, index_SendSMSCommand as SendSMSCommand, index_SendVerificationCodeCommand as SendVerificationCodeCommand, index_SetAlarmCommand as SetAlarmCommand, index_SetCameraCommand as SetCameraCommand, index_SetCourtesyCommand as SetCourtesyCommand, index_SetDevicesCommand as SetDevicesCommand, index_SetDimmerCommand as SetDimmerCommand, index_SetLockCommand as SetLockCommand, index_SetMediaSourceCommand as SetMediaSourceCommand, index_SetRoomSceneCommand as SetRoomSceneCommand, index_SetSceneCommand as SetSceneCommand, index_SetSwitchCommand as SetSwitchCommand, index_SetThermostatCommand as SetThermostatCommand, index_SetWindowCoveringCommand as SetWindowCoveringCommand, index_StartRegisterPasskeyCommand as StartRegisterPasskeyCommand, index_StartSOSCommand as StartSOSCommand, index_StopSOSCommand as StopSOSCommand, index_UpdateAlarmCommand as UpdateAlarmCommand, index_UpdateAnnouncementCommand as UpdateAnnouncementCommand, index_UpdateAutomationCommand as UpdateAutomationCommand, index_UpdateCameraCommand as UpdateCameraCommand, index_UpdateCategoryCommand as UpdateCategoryCommand, index_UpdateCourtesyCommand as UpdateCourtesyCommand, index_UpdateDepartmentCommand as UpdateDepartmentCommand, index_UpdateDimmerCommand as UpdateDimmerCommand, index_UpdateDiscoveredDeviceCommand as UpdateDiscoveredDeviceCommand, index_UpdateIssueCommand as UpdateIssueCommand, index_UpdateLockCommand as UpdateLockCommand, index_UpdateMediaSourceCommand as UpdateMediaSourceCommand, index_UpdateMessageReadStatusCommand as UpdateMessageReadStatusCommand, index_UpdateNotificationCommand as UpdateNotificationCommand, index_UpdateOrganizationCommand as UpdateOrganizationCommand, index_UpdatePolicyCommand as UpdatePolicyCommand, index_UpdatePropertyCommand as UpdatePropertyCommand, index_UpdatePropertySettingsCommand as UpdatePropertySettingsCommand, index_UpdateRoomCommand as UpdateRoomCommand, index_UpdateSelfCommand as UpdateSelfCommand, index_UpdateServerCommand as UpdateServerCommand, index_UpdateSessionCommand as UpdateSessionCommand, index_UpdateSpaceCommand as UpdateSpaceCommand, index_UpdateSwitchCommand as UpdateSwitchCommand, index_UpdateSystemCommand as UpdateSystemCommand, index_UpdateThermostatCommand as UpdateThermostatCommand, index_UpdateTicketCommand as UpdateTicketCommand, index_UpdateTicketStatusCommand as UpdateTicketStatusCommand, index_UpdateTimeSheetCommand as UpdateTimeSheetCommand, index_UpdateTimeSheetTimeEntryCommand as UpdateTimeSheetTimeEntryCommand, index_UpdateUserCommand as UpdateUserCommand, index_UpdateVendorCommand as UpdateVendorCommand, index_UpdateWindowCoveringCommand as UpdateWindowCoveringCommand, index_UploadImageCommand as UploadImageCommand, index_UpsertDiscoveredDeviceCommand as UpsertDiscoveredDeviceCommand, index_ValidateAuthCommand as ValidateAuthCommand };
|
|
412
432
|
}
|
|
413
433
|
|
|
414
434
|
export { index as i };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { i as Commands } from './index-PDa8BHjL.js';
|
|
|
4
4
|
export { i as Errors } from './index-7k9xaBaL.js';
|
|
5
5
|
export { i as Events } from './index-B1__8mca.js';
|
|
6
6
|
export { i as Models } from './index-ftTUK_gn.js';
|
|
7
|
-
export { i as UseCases } from './index-
|
|
7
|
+
export { i as UseCases } from './index-CY1L0nkI.js';
|
|
8
8
|
import 'node:buffer';
|
|
9
9
|
import './useCases/loginStart.js';
|
|
10
10
|
import './useCases/refreshToken.js';
|
|
@@ -45,6 +45,11 @@ import './useCases/deleteCategory.js';
|
|
|
45
45
|
import './useCases/describeCategory.js';
|
|
46
46
|
import './useCases/listCategories.js';
|
|
47
47
|
import './useCases/updateCategory.js';
|
|
48
|
+
import './useCases/describeDepartment.js';
|
|
49
|
+
import './useCases/listDepartments.js';
|
|
50
|
+
import './useCases/deleteDepartment.js';
|
|
51
|
+
import './useCases/createDepartment.js';
|
|
52
|
+
import './useCases/updateDepartment.js';
|
|
48
53
|
import './useCases/listRooms.js';
|
|
49
54
|
import './useCases/describeRoom.js';
|
|
50
55
|
import './useCases/createRoom.js';
|
|
@@ -210,6 +215,11 @@ import './useCases/deleteSystem.js';
|
|
|
210
215
|
import './useCases/describeSystem.js';
|
|
211
216
|
import './useCases/listSystems.js';
|
|
212
217
|
import './useCases/updateSystem.js';
|
|
218
|
+
import './useCases/createServer.js';
|
|
219
|
+
import './useCases/deleteServer.js';
|
|
220
|
+
import './useCases/describeServer.js';
|
|
221
|
+
import './useCases/listServers.js';
|
|
222
|
+
import './useCases/updateServer.js';
|
|
213
223
|
import './commands/command.js';
|
|
214
224
|
import './commands/createImageUploadEndpoint.js';
|
|
215
225
|
import './commands/createShortLink.js';
|
package/dist/esm/models/issue.js
CHANGED
|
@@ -13,7 +13,6 @@ class Issue extends Entity {
|
|
|
13
13
|
this.type = data.type;
|
|
14
14
|
this.name = data.name;
|
|
15
15
|
if (data.description !== void 0) this.description = data.description;
|
|
16
|
-
this.department = data.department;
|
|
17
16
|
if (data.departmentId !== void 0) this.departmentId = data.departmentId;
|
|
18
17
|
if (data.autoAssign !== void 0) this.autoAssign = data.autoAssign;
|
|
19
18
|
if (data.notify !== void 0) this.notify = data.notify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/models/issue.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateIssue as validate } from \"../validate.js\";\nimport { issueSchema, type IssueSchema } from \"../schemas/issue.js\";\n\n/**\n * Data type for Issue constructor - exported for backwards compatibility\n */\nexport type IssueData = IssueSchema;\n\n/**\n * An issue associated with ticketing and concierge.\n */\nexport interface Issue extends IssueSchema {}\nexport class Issue extends Entity {\n declare schema: typeof issueSchema;\n declare validator: typeof validate;\n\n constructor(data: IssueSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n this.name = data.name;\n if (data.description !== undefined) this.description = data.description;\n
|
|
1
|
+
{"version":3,"sources":["../../../.generated/models/issue.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateIssue as validate } from \"../validate.js\";\nimport { issueSchema, type IssueSchema } from \"../schemas/issue.js\";\n\n/**\n * Data type for Issue constructor - exported for backwards compatibility\n */\nexport type IssueData = IssueSchema;\n\n/**\n * An issue associated with ticketing and concierge.\n */\nexport interface Issue extends IssueSchema {}\nexport class Issue extends Entity {\n declare schema: typeof issueSchema;\n declare validator: typeof validate;\n\n constructor(data: IssueSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n this.name = data.name;\n if (data.description !== undefined) this.description = data.description;\n if (data.departmentId !== undefined) this.departmentId = data.departmentId;\n if (data.autoAssign !== undefined) this.autoAssign = data.autoAssign;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.systemKey !== undefined) this.systemKey = data.systemKey;\n if (data.autoCreateTicket !== undefined)\n this.autoCreateTicket = data.autoCreateTicket;\n if (data.excludedResources !== undefined)\n this.excludedResources = data.excludedResources;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Issue.prototype, \"schema\", {\n value: issueSchema,\n});\n\nObject.defineProperty(Issue.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,iBAAiB,gBAAgB;AAC1C,SAAS,mBAAqC;AAWvC,MAAM,cAAc,OAAO;AAAA,EAflC,OAekC;AAAA;AAAA;AAAA,EAIhC,YAAY,MAAmB;AAC7B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,SAAK,OAAO,KAAK;AACjB,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,eAAe,OAAW,MAAK,aAAa,KAAK;AAC1D,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,qBAAqB;AAC5B,WAAK,mBAAmB,KAAK;AAC/B,QAAI,KAAK,sBAAsB;AAC7B,WAAK,oBAAoB,KAAK;AAChC,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AAAA,EAC1D;AACF;AAEA,OAAO,eAAe,MAAM,WAAW,UAAU;AAAA,EAC/C,OAAO;AACT,CAAC;AAED,OAAO,eAAe,MAAM,WAAW,aAAa;AAAA,EAClD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
|
|
@@ -14,7 +14,6 @@ class Property extends Entity {
|
|
|
14
14
|
this.type = data.type;
|
|
15
15
|
this.discriminator = data.discriminator;
|
|
16
16
|
this.organization = data.organization;
|
|
17
|
-
if (data.departments !== void 0) this.departments = data.departments;
|
|
18
17
|
if (data.testModeEnabled !== void 0)
|
|
19
18
|
this.testModeEnabled = data.testModeEnabled;
|
|
20
19
|
if (data.testMode !== void 0) this.testMode = data.testMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/models/property.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateProperty as validate } from \"../validate.js\";\nimport { propertySchema, type PropertySchema } from \"../schemas/property.js\";\n\n/**\n * Data type for Property constructor - exported for backwards compatibility\n */\nexport type PropertyData = PropertySchema;\n\n/**\n * A property is a physical asset or building\n */\nexport interface Property extends PropertySchema {}\nexport class Property extends Entity {\n declare schema: typeof propertySchema;\n declare validator: typeof validate;\n\n constructor(data: PropertySchema) {\n super(data);\n this.id = data.id;\n this.name = data.name;\n this.type = data.type;\n this.discriminator = data.discriminator;\n this.organization = data.organization;\n if (data.
|
|
1
|
+
{"version":3,"sources":["../../../.generated/models/property.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateProperty as validate } from \"../validate.js\";\nimport { propertySchema, type PropertySchema } from \"../schemas/property.js\";\n\n/**\n * Data type for Property constructor - exported for backwards compatibility\n */\nexport type PropertyData = PropertySchema;\n\n/**\n * A property is a physical asset or building\n */\nexport interface Property extends PropertySchema {}\nexport class Property extends Entity {\n declare schema: typeof propertySchema;\n declare validator: typeof validate;\n\n constructor(data: PropertySchema) {\n super(data);\n this.id = data.id;\n this.name = data.name;\n this.type = data.type;\n this.discriminator = data.discriminator;\n this.organization = data.organization;\n if (data.testModeEnabled !== undefined)\n this.testModeEnabled = data.testModeEnabled;\n if (data.testMode !== undefined) this.testMode = data.testMode;\n this.timezone = data.timezone;\n if (data.smsNumber !== undefined) this.smsNumber = data.smsNumber;\n if (data.voiceNumber !== undefined) this.voiceNumber = data.voiceNumber;\n if (data.tags !== undefined) this.tags = data.tags;\n if (data.checkInTime !== undefined) this.checkInTime = data.checkInTime;\n if (data.checkOutTime !== undefined) this.checkOutTime = data.checkOutTime;\n if (data.address !== undefined) this.address = data.address;\n if (data.latitude !== undefined) this.latitude = data.latitude;\n if (data.longitude !== undefined) this.longitude = data.longitude;\n if (data.appFeatures !== undefined) this.appFeatures = data.appFeatures;\n if (data.notifications !== undefined)\n this.notifications = data.notifications;\n if (data.credentials !== undefined) this.credentials = data.credentials;\n }\n}\n\nObject.defineProperty(Property.prototype, \"schema\", {\n value: propertySchema,\n});\n\nObject.defineProperty(Property.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,oBAAoB,gBAAgB;AAC7C,SAAS,sBAA2C;AAW7C,MAAM,iBAAiB,OAAO;AAAA,EAfrC,OAeqC;AAAA;AAAA;AAAA,EAInC,YAAY,MAAsB;AAChC,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,SAAK,OAAO,KAAK;AACjB,SAAK,OAAO,KAAK;AACjB,SAAK,gBAAgB,KAAK;AAC1B,SAAK,eAAe,KAAK;AACzB,QAAI,KAAK,oBAAoB;AAC3B,WAAK,kBAAkB,KAAK;AAC9B,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,WAAW,KAAK;AACrB,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAAA,EAC9D;AACF;AAEA,OAAO,eAAe,SAAS,WAAW,UAAU;AAAA,EAClD,OAAO;AACT,CAAC;AAED,OAAO,eAAe,SAAS,WAAW,aAAa;AAAA,EACrD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
|
|
@@ -25,7 +25,6 @@ class Ticket extends Entity {
|
|
|
25
25
|
this.status = data.status;
|
|
26
26
|
if (data.priority !== void 0) this.priority = data.priority;
|
|
27
27
|
this.tags = data.tags;
|
|
28
|
-
if (data.department !== void 0) this.department = data.department;
|
|
29
28
|
if (data.rating !== void 0) this.rating = data.rating;
|
|
30
29
|
if (data.ratingComment !== void 0)
|
|
31
30
|
this.ratingComment = data.ratingComment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/models/ticket.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateTicket as validate } from \"../validate.js\";\nimport { ticketSchema, type TicketSchema } from \"../schemas/ticket.js\";\n\n/**\n * Data type for Ticket constructor - exported for backwards compatibility\n */\nexport type TicketData = TicketSchema;\n\n/**\n * A ticket is a request from a user.\n */\nexport interface Ticket extends TicketSchema {}\nexport class Ticket extends Entity {\n declare schema: typeof ticketSchema;\n declare validator: typeof validate;\n\n constructor(data: TicketSchema) {\n super(data);\n this.id = data.id;\n if (data.type !== undefined) this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.issueId !== undefined) this.issueId = data.issueId;\n this.conversation = data.conversation;\n if (data.subject !== undefined) this.subject = data.subject;\n if (data.openedBy !== undefined) this.openedBy = data.openedBy;\n this.requester = data.requester;\n if (data.assignedTo !== undefined) this.assignedTo = data.assignedTo;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.collaborators !== undefined)\n this.collaborators = data.collaborators;\n if (data.location !== undefined) this.location = data.location;\n this.status = data.status;\n if (data.priority !== undefined) this.priority = data.priority;\n this.tags = data.tags;\n if (data.
|
|
1
|
+
{"version":3,"sources":["../../../.generated/models/ticket.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateTicket as validate } from \"../validate.js\";\nimport { ticketSchema, type TicketSchema } from \"../schemas/ticket.js\";\n\n/**\n * Data type for Ticket constructor - exported for backwards compatibility\n */\nexport type TicketData = TicketSchema;\n\n/**\n * A ticket is a request from a user.\n */\nexport interface Ticket extends TicketSchema {}\nexport class Ticket extends Entity {\n declare schema: typeof ticketSchema;\n declare validator: typeof validate;\n\n constructor(data: TicketSchema) {\n super(data);\n this.id = data.id;\n if (data.type !== undefined) this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.issueId !== undefined) this.issueId = data.issueId;\n this.conversation = data.conversation;\n if (data.subject !== undefined) this.subject = data.subject;\n if (data.openedBy !== undefined) this.openedBy = data.openedBy;\n this.requester = data.requester;\n if (data.assignedTo !== undefined) this.assignedTo = data.assignedTo;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.collaborators !== undefined)\n this.collaborators = data.collaborators;\n if (data.location !== undefined) this.location = data.location;\n this.status = data.status;\n if (data.priority !== undefined) this.priority = data.priority;\n this.tags = data.tags;\n if (data.rating !== undefined) this.rating = data.rating;\n if (data.ratingComment !== undefined)\n this.ratingComment = data.ratingComment;\n if (data.tipAmount !== undefined) this.tipAmount = data.tipAmount;\n if (data.autoCloseAt !== undefined) this.autoCloseAt = data.autoCloseAt;\n if (data.scheduleDate !== undefined) this.scheduleDate = data.scheduleDate;\n this.createdAt = data.createdAt;\n this.updatedAt = data.updatedAt;\n if (data.solvedAt !== undefined) this.solvedAt = data.solvedAt;\n if (data.closedAt !== undefined) this.closedAt = data.closedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Ticket.prototype, \"schema\", {\n value: ticketSchema,\n});\n\nObject.defineProperty(Ticket.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,kBAAkB,gBAAgB;AAC3C,SAAS,oBAAuC;AAWzC,MAAM,eAAe,OAAO;AAAA,EAfnC,OAemC;AAAA;AAAA;AAAA,EAIjC,YAAY,MAAoB;AAC9B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,SAAK,eAAe,KAAK;AACzB,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,YAAY,KAAK;AACtB,QAAI,KAAK,eAAe,OAAW,MAAK,aAAa,KAAK;AAC1D,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,SAAS,KAAK;AACnB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,SAAK,YAAY,KAAK;AACtB,SAAK,YAAY,KAAK;AACtB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AAAA,EAC1D;AACF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU;AAAA,EAChD,OAAO;AACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa;AAAA,EACnD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
|
|
@@ -9,7 +9,7 @@ declare const issueSchema: {
|
|
|
9
9
|
readonly title: "Issue";
|
|
10
10
|
readonly description: "An issue associated with ticketing and concierge.";
|
|
11
11
|
readonly type: "object";
|
|
12
|
-
readonly required: readonly ["id", "type", "name"
|
|
12
|
+
readonly required: readonly ["id", "type", "name"];
|
|
13
13
|
readonly additionalProperties: false;
|
|
14
14
|
readonly properties: {
|
|
15
15
|
readonly id: {
|
|
@@ -26,9 +26,6 @@ declare const issueSchema: {
|
|
|
26
26
|
readonly description: {
|
|
27
27
|
readonly type: "string";
|
|
28
28
|
};
|
|
29
|
-
readonly department: {
|
|
30
|
-
readonly type: "string";
|
|
31
|
-
};
|
|
32
29
|
readonly departmentId: {
|
|
33
30
|
readonly type: "string";
|
|
34
31
|
readonly description: "The ID of the department that this issue is associated with.";
|
|
@@ -4,7 +4,7 @@ const issueSchema = {
|
|
|
4
4
|
title: "Issue",
|
|
5
5
|
description: "An issue associated with ticketing and concierge.",
|
|
6
6
|
type: "object",
|
|
7
|
-
required: ["id", "type", "name"
|
|
7
|
+
required: ["id", "type", "name"],
|
|
8
8
|
additionalProperties: false,
|
|
9
9
|
properties: {
|
|
10
10
|
id: {
|
|
@@ -21,9 +21,6 @@ const issueSchema = {
|
|
|
21
21
|
description: {
|
|
22
22
|
type: "string"
|
|
23
23
|
},
|
|
24
|
-
department: {
|
|
25
|
-
type: "string"
|
|
26
|
-
},
|
|
27
24
|
departmentId: {
|
|
28
25
|
type: "string",
|
|
29
26
|
description: "The ID of the department that this issue is associated with."
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/issue.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport { ticketSchema } from \"./ticket\";\n\nexport const issueSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"issue.json\",\n title: \"Issue\",\n description: \"An issue associated with ticketing and concierge.\",\n type: \"object\",\n required: [\"id\", \"type\", \"name\"
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/issue.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport { ticketSchema } from \"./ticket\";\n\nexport const issueSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"issue.json\",\n title: \"Issue\",\n description: \"An issue associated with ticketing and concierge.\",\n type: \"object\",\n required: [\"id\", \"type\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n enum: [\"issue\"],\n default: \"issue\",\n },\n name: {\n type: \"string\",\n },\n description: {\n type: \"string\",\n },\n departmentId: {\n type: \"string\",\n description:\n \"The ID of the department that this issue is associated with.\",\n },\n autoAssign: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n userId: {\n type: \"string\",\n description: \"The user ID to assign tickets with this issue to.\",\n },\n vendorId: {\n type: \"string\",\n description: \"The vendor ID to assign tickets with this issue to.\",\n },\n priority: {\n $ref: \"ticket.json#/properties/priority\",\n description: \"The priority to assign tickets with this issue to.\",\n },\n tags: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n notify: {\n type: \"array\",\n description: \"A list of entities to notify when this issue is triggered.\",\n default: [],\n items: {\n type: \"object\",\n required: [\"id\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the entity to notify.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\"],\n },\n },\n },\n },\n systemKey: {\n type: \"string\",\n },\n autoCreateTicket: {\n type: \"boolean\",\n default: true,\n },\n excludedResources: {\n type: \"array\",\n description:\n \"A list of resources that should not trigger notifications of this issue\",\n items: {\n type: \"string\",\n },\n default: [],\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type IssueSchema = FromSchema<\n typeof issueSchema,\n {\n references: [typeof defs, typeof ticketSchema];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAIO,MAAM,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A,kBAAkB;AAAA,MAChB,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,mBAAmB;AAAA,MACjB,MAAM;AAAA,MACN,aACE;AAAA,MACF,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,MACA,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
@@ -28,12 +28,6 @@ declare const propertySchema: {
|
|
|
28
28
|
readonly type: "string";
|
|
29
29
|
readonly description: "Reference (id) to the organization that owns this property";
|
|
30
30
|
};
|
|
31
|
-
readonly departments: {
|
|
32
|
-
readonly type: "array";
|
|
33
|
-
readonly items: {
|
|
34
|
-
readonly type: "string";
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
31
|
readonly testModeEnabled: {
|
|
38
32
|
readonly type: "boolean";
|
|
39
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/property.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const propertySchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"property.json\",\n title: \"Property\",\n type: \"object\",\n description: \"A property is a physical asset or building\",\n required: [\"id\", \"name\", \"type\", \"organization\", \"timezone\", \"discriminator\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n default: \"property\",\n enum: [\"property\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\"hospitality\", \"education\", \"commercial\", \"storage\"],\n },\n organization: {\n type: \"string\",\n description: \"Reference (id) to the organization that owns this property\",\n },\n departments: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n testModeEnabled: {\n type: \"boolean\",\n },\n testMode: {\n type: \"object\",\n properties: {\n notificationEmails: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with these email addresses will receive notifications in test mode, including sms, email, or push.\",\n },\n notificationEmailDomains: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with email addreses ending in these domains will receive notifications in test mode, including sms, email, or push.\",\n },\n },\n },\n timezone: {\n type: \"string\",\n description: \"IANA timezone string\",\n pattern: \"^([a-zA-Z]+/[a-zA-Z_]+)$\",\n examples: [\"America/New_York\", \"America/Los_Angeles\"],\n },\n smsNumber: {\n type: \"string\",\n },\n voiceNumber: {\n type: \"string\",\n },\n tags: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n checkInTime: {\n type: \"string\",\n },\n checkOutTime: {\n type: \"string\",\n },\n address: {\n $ref: \"definitions.json#/definitions/address\",\n },\n latitude: {\n type: \"number\",\n },\n longitude: {\n type: \"number\",\n },\n appFeatures: {\n type: \"object\",\n properties: {\n RoomControl: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n disabledSystems: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\"climate\", \"lights\", \"shades\", \"tv\", \"doors\"],\n },\n },\n excludedDeviceIds: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\n },\n commonAreas: {\n type: \"object\",\n properties: {\n spaces: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n alarmConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n zoneLockMap: {\n type: \"object\",\n description: \"Maps zone numbers to lock ids\",\n additionalProperties: { type: \"string\" },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n zoneLockMap: {\n 1: \"wc87hucc\",\n 2: \"bc86hzxc\",\n 3: \"zv5ah5jv\",\n },\n },\n },\n ],\n },\n cameraConfig: {\n type: \"object\",\n doorStationConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n lockIds: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\n description:\n \"List of lock ids that will be available for control from this door station\",\n },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n lockIds: [\"wc87hucb\", \"wc87hucd\"],\n },\n },\n ],\n },\n },\n additionalProperties: false,\n },\n Concierge: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n timeTracking: {\n type: \"boolean\",\n default: false,\n },\n feedback: {\n type: \"boolean\",\n default: true,\n },\n ratings: {\n type: \"boolean\",\n default: true,\n },\n newTicketCCs: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\n },\n newMessageChannel: {\n type: [\"string\", \"null\"],\n enum: [\"sms\", \"email\"],\n default: \"sms\",\n description:\n \"Determines how users should be notified of new messages in the concierge system\",\n },\n issues: {\n type: \"object\",\n properties: {\n syncWithPropertyId: {\n type: \"string\",\n },\n },\n },\n },\n },\n SOS: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n active: {\n type: \"boolean\",\n },\n activatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n activatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n activatedMessage: {\n type: [\"string\", \"null\"],\n },\n activeEmergencies: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\n \"medical\",\n \"fire\",\n \"suspiciousPerson\",\n \"other\",\n \"conflict\",\n \"shooter\",\n ],\n },\n },\n deactivatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n deactivatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n },\n },\n Automations: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n RoomControl: {},\n },\n },\n notifications: {\n type: \"object\",\n properties: {\n email: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n sms: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n push: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n email: {\n enabled: false,\n },\n sms: {\n enabled: false,\n },\n push: {\n enabled: false,\n },\n },\n },\n credentials: {\n type: \"object\",\n additionalProperties: true,\n },\n },\n} as const;\n\nexport type PropertySchema = FromSchema<\n typeof propertySchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,iBAAiB;AAAA,EAC5B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,aAAa;AAAA,EACb,UAAU,CAAC,MAAM,QAAQ,QAAQ,gBAAgB,YAAY,eAAe;AAAA,EAC5E,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,UAAU;AAAA,IACnB;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,MAAM,CAAC,eAAe,aAAa,cAAc,SAAS;AAAA,IAC5D;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,MAA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AAAA,QACA,MAAM;AAAA,UACJ,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,sBAAsB;AAAA,IACxB;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/property.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const propertySchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"property.json\",\n title: \"Property\",\n type: \"object\",\n description: \"A property is a physical asset or building\",\n required: [\"id\", \"name\", \"type\", \"organization\", \"timezone\", \"discriminator\"],\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n default: \"property\",\n enum: [\"property\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\"hospitality\", \"education\", \"commercial\", \"storage\"],\n },\n organization: {\n type: \"string\",\n description: \"Reference (id) to the organization that owns this property\",\n },\n testModeEnabled: {\n type: \"boolean\",\n },\n testMode: {\n type: \"object\",\n properties: {\n notificationEmails: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with these email addresses will receive notifications in test mode, including sms, email, or push.\",\n },\n notificationEmailDomains: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description:\n \"Only users with email addreses ending in these domains will receive notifications in test mode, including sms, email, or push.\",\n },\n },\n },\n timezone: {\n type: \"string\",\n description: \"IANA timezone string\",\n pattern: \"^([a-zA-Z]+/[a-zA-Z_]+)$\",\n examples: [\"America/New_York\", \"America/Los_Angeles\"],\n },\n smsNumber: {\n type: \"string\",\n },\n voiceNumber: {\n type: \"string\",\n },\n tags: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n checkInTime: {\n type: \"string\",\n },\n checkOutTime: {\n type: \"string\",\n },\n address: {\n $ref: \"definitions.json#/definitions/address\",\n },\n latitude: {\n type: \"number\",\n },\n longitude: {\n type: \"number\",\n },\n appFeatures: {\n type: \"object\",\n properties: {\n RoomControl: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n disabledSystems: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\"climate\", \"lights\", \"shades\", \"tv\", \"doors\"],\n },\n },\n excludedDeviceIds: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\n },\n commonAreas: {\n type: \"object\",\n properties: {\n spaces: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n alarmConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n zoneLockMap: {\n type: \"object\",\n description: \"Maps zone numbers to lock ids\",\n additionalProperties: { type: \"string\" },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n zoneLockMap: {\n 1: \"wc87hucc\",\n 2: \"bc86hzxc\",\n 3: \"zv5ah5jv\",\n },\n },\n },\n ],\n },\n cameraConfig: {\n type: \"object\",\n doorStationConfig: {\n type: \"object\",\n patternProperties: {\n \"^[a-zA-Z0-9]+$\": {\n type: \"object\",\n properties: {\n lockIds: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\n description:\n \"List of lock ids that will be available for control from this door station\",\n },\n },\n },\n },\n },\n examples: [\n {\n wZz7hucY: {\n lockIds: [\"wc87hucb\", \"wc87hucd\"],\n },\n },\n ],\n },\n },\n additionalProperties: false,\n },\n Concierge: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n timeTracking: {\n type: \"boolean\",\n default: false,\n },\n feedback: {\n type: \"boolean\",\n default: true,\n },\n ratings: {\n type: \"boolean\",\n default: true,\n },\n newTicketCCs: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n default: [],\n },\n newMessageChannel: {\n type: [\"string\", \"null\"],\n enum: [\"sms\", \"email\"],\n default: \"sms\",\n description:\n \"Determines how users should be notified of new messages in the concierge system\",\n },\n issues: {\n type: \"object\",\n properties: {\n syncWithPropertyId: {\n type: \"string\",\n },\n },\n },\n },\n },\n SOS: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n default: true,\n },\n active: {\n type: \"boolean\",\n },\n activatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n activatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n activatedMessage: {\n type: [\"string\", \"null\"],\n },\n activeEmergencies: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\n \"medical\",\n \"fire\",\n \"suspiciousPerson\",\n \"other\",\n \"conflict\",\n \"shooter\",\n ],\n },\n },\n deactivatedAt: {\n type: [\"string\", \"null\"],\n format: \"date-time\",\n },\n deactivatedBy: {\n type: [\"object\", \"null\"],\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n enum: [\"user\", \"device\", \"automation\"],\n },\n },\n },\n },\n },\n Automations: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n RoomControl: {},\n },\n },\n notifications: {\n type: \"object\",\n properties: {\n email: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n sms: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n push: {\n type: \"object\",\n properties: {\n enabled: {\n type: \"boolean\",\n },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n default: {\n email: {\n enabled: false,\n },\n sms: {\n enabled: false,\n },\n push: {\n enabled: false,\n },\n },\n },\n credentials: {\n type: \"object\",\n additionalProperties: true,\n },\n },\n} as const;\n\nexport type PropertySchema = FromSchema<\n typeof propertySchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },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AAe;AAAA,MACb,MAAM;AAAA,MACN,YAAY;AAAA,QACV,OAAO;AAAA,UACL,MAAM;AAAA,UACN,YAAY;AAAA,YACV,SAAS;AAAA,cACP,MAAM;AAAA,YACR;AAAA,UACF;AAAA,UACA,sBAAsB;AAAA,QACxB;AAAA,QACA,KAAK;AAAA,UACH,MAAM;AAAA,UACN,YAAY;AAAA,YACV,SAAS;AAAA,cACP,MAAM;AAAA,YACR;AAAA,UACF;AAAA,UACA,sBAAsB;AAAA,QACxB;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,YAAY;AAAA,YACV,SAAS;AAAA,cACP,MAAM;AAAA,YACR;AAAA,UACF;AAAA,UACA,sBAAsB;AAAA,QACxB;AAAA,MACF;AAAA,MACA,sBAAsB;AAAA,MACtB,SAAS;AAAA,QACP,OAAO;AAAA,UACL,SAAS;AAAA,QACX;AAAA,QACA,KAAK;AAAA,UACH,SAAS;AAAA,QACX;AAAA,QACA,MAAM;AAAA,UACJ,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,sBAAsB;AAAA,IACxB;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/ticket.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { mediaFileSchema } from \"./mediaFile\";\n\nexport const ticketSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"ticket.json\",\n title: \"Ticket\",\n description: \"A ticket is a request from a user.\",\n type: \"object\",\n required: [\n \"id\",\n \"conversation\",\n \"requester\",\n \"status\",\n \"tags\",\n \"createdAt\",\n \"updatedAt\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n enum: [\"ticket\"],\n default: \"ticket\",\n },\n number: {\n type: \"string\",\n description: \"The number of the ticket.\",\n },\n issueId: {\n type: \"string\",\n description: \"The ID of the issue that this ticket is associated with.\",\n },\n conversation: {\n type: \"array\",\n default: [],\n description: \"The conversation history of the ticket.\",\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"timestamp\", \"body\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the message.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"message\",\n \"opened\",\n \"assigned\",\n \"rated\",\n \"tipped\",\n \"scheduled\",\n \"collaboratorAdded\",\n \"collaboratorRemoved\",\n \"statusChanged\",\n \"priorityChanged\",\n \"scheduleDateChanged\",\n \"locationChanged\",\n ],\n default: \"message\",\n description: \"The discriminator of the message.\",\n },\n authorId: {\n type: \"string\",\n description: \"The ID of the author of the message.\",\n },\n authorName: {\n type: \"string\",\n description: \"The name of the author of the message.\",\n },\n authorDiscriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description: \"The discriminator of the author of the message.\",\n },\n /**\n * @deprecated - use authorId instead.\n */\n userId: {\n type: \"string\",\n description:\n \"@deprecated - use authorId instead. The ID of the user who sent the message.\",\n },\n /**\n * @deprecated - use authorName instead.\n */\n userName: {\n type: \"string\",\n description:\n \"@deprecated - use authorName instead. The name of the user who sent the message.\",\n },\n /**\n * @deprecated - use authorId instead.\n */\n vendorId: {\n type: \"string\",\n description:\n \"@deprecated - use authorId instead. The ID of the vendor who sent the message.\",\n },\n /**\n * @deprecated - use authorName instead.\n */\n vendorName: {\n type: \"string\",\n description:\n \"@deprecated - use authorName instead. The name of the vendor who sent the message.\",\n },\n /**\n * @deprecated - use authorId instead.\n */\n systemId: {\n type: \"string\",\n description:\n \"@deprecated - use authorId instead. The ID of the system who sent the message.\",\n },\n /**\n * @deprecated - use authorName instead.\n */\n systemName: {\n type: \"string\",\n description:\n \"@deprecated - use authorName instead. The name of the system who sent the message.\",\n },\n timestamp: {\n $ref: \"definitions.json#/definitions/date\",\n description: \"The ISO 8601 timestamp of the message.\",\n },\n body: {\n type: \"string\",\n description: \"The body of the message.\",\n },\n parsedBody: {\n type: \"object\",\n additionalProperties: false,\n description:\n \"An object containing the parsed body of the message for mentions.\",\n properties: {\n text: {\n type: \"string\",\n description: \"The mention text.\",\n },\n mentions: {\n type: \"array\",\n default: [],\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\n \"discriminator\",\n \"id\",\n \"index\",\n \"length\",\n \"originalText\",\n ],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the mention.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description:\n \"The discriminator of entity that was mentioned.\",\n },\n index: {\n type: \"integer\",\n description: \"The index of the mention in the message.\",\n },\n length: {\n type: \"integer\",\n description: \"The length of the mention in the message.\",\n },\n originalText: {\n type: \"string\",\n description: \"The original text of the mention.\",\n },\n },\n },\n },\n },\n },\n\n readBy: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n description: \"The IDs of the users who have read the message.\",\n },\n media: {\n anyOf: [{ $ref: \"mediaFile.json\" }, { type: \"null\" }],\n description: \"The media file associated with the message.\",\n },\n },\n },\n },\n subject: {\n type: \"string\",\n description: \"The subject of the ticket.\",\n },\n openedBy: {\n type: \"object\",\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"system\"],\n },\n name: {\n type: \"string\",\n },\n /**\n * @deprecated - use id instead.\n */\n userId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the user who opened the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n userName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the user who opened the ticket.\",\n },\n\n /**\n * @deprecated - use id instead.\n */\n systemId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the system who opened the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n systemName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the system who opened the ticket.\",\n },\n },\n },\n requester: {\n type: \"object\",\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the requester.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\", \"device\"],\n description: \"The discriminator of the requester.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the requester.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the requester.\",\n },\n /**\n * @deprecated - use id instead.\n */\n systemId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the system who requested the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n systemName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the system who requested the ticket.\",\n },\n /**\n * @deprecated - use photo instead.\n */\n systemPhoto: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description:\n \"@deprecated - use photo instead. The photo of the system who requested the ticket.\",\n },\n /**\n * @deprecated - use id instead.\n */\n userId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the user who requested the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n userName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the user who requested the ticket.\",\n },\n /**\n * @deprecated - use photo instead.\n */\n userPhoto: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description:\n \"@deprecated - use photo instead. The photo of the user who requested the ticket.\",\n },\n /**\n * @deprecated - use id instead.\n */\n deviceId: {\n type: \"string\",\n },\n /**\n * @deprecated - This will be removed in a future version.\n */\n roomId: {\n type: \"string\",\n description:\n \"@deprecated - This will be removed in a future version. The ID of the room who requested the ticket.\",\n },\n /**\n * @deprecated - This will be removed in a future version.\n */\n reservationId: {\n type: \"string\",\n description:\n \"@deprecated - This will be removed in a future version. The ID of the reservation who requested the ticket.\",\n },\n /**\n * @deprecated - This will be removed in a future version.\n */\n spaceId: {\n type: \"string\",\n description:\n \"@deprecated - This will be removed in a future version. The ID of the space who requested the ticket.\",\n },\n /**\n * @deprecated - This will be removed in a future version.\n */\n spaceName: {\n type: \"string\",\n description:\n \"@deprecated - This will be removed in a future version. The name of the space who requested the ticket.\",\n },\n },\n },\n assignedTo: {\n type: \"object\",\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the assigned to.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n description: \"The discriminator of the assigned to.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the assigned to.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the assigned to.\",\n },\n /**\n * @deprecated - use id instead.\n */\n userId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the user who assigned the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n userName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the user who assigned the ticket.\",\n },\n /**\n * @deprecated - use photo instead.\n */\n userPhoto: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n },\n /**\n * @deprecated - use id instead.\n */\n vendorId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the vendor who assigned the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n vendorName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the vendor who assigned the ticket.\",\n },\n /**\n * @deprecated - use photo instead.\n */\n vendorPhoto: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description:\n \"@deprecated - use photo instead. The photo of the vendor who assigned the ticket.\",\n },\n },\n },\n notify: {\n type: \"array\",\n description:\n \"A list of entities to notify when this ticket is created or resolved.\",\n default: [],\n items: {\n type: \"object\",\n required: [\"id\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the entity to notify.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\"],\n },\n },\n },\n },\n collaborators: {\n type: \"array\",\n default: [],\n description: \"A list of entities who will collaborate on this ticket.\",\n items: {\n type: \"object\",\n required: [\"id\", \"name\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n name: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n },\n },\n },\n },\n location: {\n type: \"object\",\n required: [\"discriminator\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"space\", \"room\", \"property\", \"customText\"],\n },\n name: {\n type: \"string\",\n },\n },\n },\n status: {\n type: \"string\",\n enum: [\"open\", \"pending\", \"solved\", \"closed\"],\n default: \"open\",\n },\n priority: {\n type: \"string\",\n enum: [\"low\", \"normal\", \"high\"],\n default: \"normal\",\n },\n tags: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n },\n department: {\n type: \"string\",\n },\n rating: {\n type: \"number\",\n minimum: 0,\n maximum: 5,\n },\n ratingComment: {\n type: \"string\",\n },\n /**\n * @deprecated - This will be removed in a future version.\n */\n tipAmount: {\n type: \"string\",\n description:\n \"@deprecated - This will be removed in a future version. The amount of the tip.\",\n },\n autoCloseAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n scheduleDate: {\n $ref: \"definitions.json#/definitions/date\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n solvedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n closedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type TicketSchema = FromSchema<\n typeof ticketSchema,\n {\n references: [typeof defs, typeof mediaFileSchema];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAIO,MAAM,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,QAAQ;AAAA,MACf,SAAS;AAAA,IACX;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,MACV,aAAa;AAAA,MACb,OAAO;AAAA,QACL,MAAM;AAAA,QACN,sBAAsB;AAAA,QACtB,UAAU,CAAC,MAAM,iBAAiB,aAAa,MAAM;AAAA,QACrD,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,YACN,aAAa;AAAA,UACf;AAAA,UACA,eAAe;AAAA,YACb,MAAM;AAAA,YACN,MAAM;AAAA,cACJ;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,YACF;AAAA,YACA,SAAS;AAAA,YACT,aAAa;AAAA,UACf;AAAA,UACA,UAAU;AAAA,YACR,MAAM;AAAA,YACN,aAAa;AAAA,UACf;AAAA,UACA,YAAY;AAAA,YACV,MAAM;AAAA,YACN,aAAa;AAAA,UACf;AAAA,UACA,qBAAqB;AAAA,YACnB,MAAM;AAAA,YACN,MAA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AAM;AAAA,MACN,MAAM,CAAC,QAAQ,WAAW,UAAU,QAAQ;AAAA,MAC5C,SAAS;AAAA,IACX;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,MAAM,CAAC,OAAO,UAAU,MAAM;AAAA,MAC9B,SAAS;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,MACV,OAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,IACR;AAAA;AAAA;AAAA;AAAA,IAIA,WAAW;AAAA,MACT,MAAM;AAAA,MACN,aACE;AAAA,IACJ;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/ticket.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { mediaFileSchema } from \"./mediaFile\";\n\nexport const ticketSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"ticket.json\",\n title: \"Ticket\",\n description: \"A ticket is a request from a user.\",\n type: \"object\",\n required: [\n \"id\",\n \"conversation\",\n \"requester\",\n \"status\",\n \"tags\",\n \"createdAt\",\n \"updatedAt\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n enum: [\"ticket\"],\n default: \"ticket\",\n },\n number: {\n type: \"string\",\n description: \"The number of the ticket.\",\n },\n issueId: {\n type: \"string\",\n description: \"The ID of the issue that this ticket is associated with.\",\n },\n conversation: {\n type: \"array\",\n default: [],\n description: \"The conversation history of the ticket.\",\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"discriminator\", \"timestamp\", \"body\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the message.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"message\",\n \"opened\",\n \"assigned\",\n \"rated\",\n \"tipped\",\n \"scheduled\",\n \"collaboratorAdded\",\n \"collaboratorRemoved\",\n \"statusChanged\",\n \"priorityChanged\",\n \"scheduleDateChanged\",\n \"locationChanged\",\n ],\n default: \"message\",\n description: \"The discriminator of the message.\",\n },\n authorId: {\n type: \"string\",\n description: \"The ID of the author of the message.\",\n },\n authorName: {\n type: \"string\",\n description: \"The name of the author of the message.\",\n },\n authorDiscriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description: \"The discriminator of the author of the message.\",\n },\n /**\n * @deprecated - use authorId instead.\n */\n userId: {\n type: \"string\",\n description:\n \"@deprecated - use authorId instead. The ID of the user who sent the message.\",\n },\n /**\n * @deprecated - use authorName instead.\n */\n userName: {\n type: \"string\",\n description:\n \"@deprecated - use authorName instead. The name of the user who sent the message.\",\n },\n /**\n * @deprecated - use authorId instead.\n */\n vendorId: {\n type: \"string\",\n description:\n \"@deprecated - use authorId instead. The ID of the vendor who sent the message.\",\n },\n /**\n * @deprecated - use authorName instead.\n */\n vendorName: {\n type: \"string\",\n description:\n \"@deprecated - use authorName instead. The name of the vendor who sent the message.\",\n },\n /**\n * @deprecated - use authorId instead.\n */\n systemId: {\n type: \"string\",\n description:\n \"@deprecated - use authorId instead. The ID of the system who sent the message.\",\n },\n /**\n * @deprecated - use authorName instead.\n */\n systemName: {\n type: \"string\",\n description:\n \"@deprecated - use authorName instead. The name of the system who sent the message.\",\n },\n timestamp: {\n $ref: \"definitions.json#/definitions/date\",\n description: \"The ISO 8601 timestamp of the message.\",\n },\n body: {\n type: \"string\",\n description: \"The body of the message.\",\n },\n parsedBody: {\n type: \"object\",\n additionalProperties: false,\n description:\n \"An object containing the parsed body of the message for mentions.\",\n properties: {\n text: {\n type: \"string\",\n description: \"The mention text.\",\n },\n mentions: {\n type: \"array\",\n default: [],\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\n \"discriminator\",\n \"id\",\n \"index\",\n \"length\",\n \"originalText\",\n ],\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the mention.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\"],\n description:\n \"The discriminator of entity that was mentioned.\",\n },\n index: {\n type: \"integer\",\n description: \"The index of the mention in the message.\",\n },\n length: {\n type: \"integer\",\n description: \"The length of the mention in the message.\",\n },\n originalText: {\n type: \"string\",\n description: \"The original text of the mention.\",\n },\n },\n },\n },\n },\n },\n\n readBy: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n description: \"The IDs of the users who have read the message.\",\n },\n media: {\n anyOf: [{ $ref: \"mediaFile.json\" }, { type: \"null\" }],\n description: \"The media file associated with the message.\",\n },\n },\n },\n },\n subject: {\n type: \"string\",\n description: \"The subject of the ticket.\",\n },\n openedBy: {\n type: \"object\",\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"system\"],\n },\n name: {\n type: \"string\",\n },\n /**\n * @deprecated - use id instead.\n */\n userId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the user who opened the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n userName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the user who opened the ticket.\",\n },\n\n /**\n * @deprecated - use id instead.\n */\n systemId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the system who opened the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n systemName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the system who opened the ticket.\",\n },\n },\n },\n requester: {\n type: \"object\",\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the requester.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\", \"system\", \"device\"],\n description: \"The discriminator of the requester.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the requester.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the requester.\",\n },\n /**\n * @deprecated - use id instead.\n */\n systemId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the system who requested the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n systemName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the system who requested the ticket.\",\n },\n /**\n * @deprecated - use photo instead.\n */\n systemPhoto: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description:\n \"@deprecated - use photo instead. The photo of the system who requested the ticket.\",\n },\n /**\n * @deprecated - use id instead.\n */\n userId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the user who requested the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n userName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the user who requested the ticket.\",\n },\n /**\n * @deprecated - use photo instead.\n */\n userPhoto: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description:\n \"@deprecated - use photo instead. The photo of the user who requested the ticket.\",\n },\n /**\n * @deprecated - use id instead.\n */\n deviceId: {\n type: \"string\",\n },\n /**\n * @deprecated - This will be removed in a future version.\n */\n roomId: {\n type: \"string\",\n description:\n \"@deprecated - This will be removed in a future version. The ID of the room who requested the ticket.\",\n },\n /**\n * @deprecated - This will be removed in a future version.\n */\n reservationId: {\n type: \"string\",\n description:\n \"@deprecated - This will be removed in a future version. The ID of the reservation who requested the ticket.\",\n },\n /**\n * @deprecated - This will be removed in a future version.\n */\n spaceId: {\n type: \"string\",\n description:\n \"@deprecated - This will be removed in a future version. The ID of the space who requested the ticket.\",\n },\n /**\n * @deprecated - This will be removed in a future version.\n */\n spaceName: {\n type: \"string\",\n description:\n \"@deprecated - This will be removed in a future version. The name of the space who requested the ticket.\",\n },\n },\n },\n assignedTo: {\n type: \"object\",\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the assigned to.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n description: \"The discriminator of the assigned to.\",\n },\n name: {\n type: \"string\",\n description: \"The name of the assigned to.\",\n },\n photo: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description: \"The photo of the assigned to.\",\n },\n /**\n * @deprecated - use id instead.\n */\n userId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the user who assigned the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n userName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the user who assigned the ticket.\",\n },\n /**\n * @deprecated - use photo instead.\n */\n userPhoto: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n },\n /**\n * @deprecated - use id instead.\n */\n vendorId: {\n type: \"string\",\n description:\n \"@deprecated - use id instead. The ID of the vendor who assigned the ticket.\",\n },\n /**\n * @deprecated - use name instead.\n */\n vendorName: {\n type: \"string\",\n description:\n \"@deprecated - use name instead. The name of the vendor who assigned the ticket.\",\n },\n /**\n * @deprecated - use photo instead.\n */\n vendorPhoto: {\n anyOf: [\n { $ref: \"mediaFile.json\" },\n { type: \"null\" },\n { type: \"string\" },\n ],\n description:\n \"@deprecated - use photo instead. The photo of the vendor who assigned the ticket.\",\n },\n },\n },\n notify: {\n type: \"array\",\n description:\n \"A list of entities to notify when this ticket is created or resolved.\",\n default: [],\n items: {\n type: \"object\",\n required: [\"id\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n description: \"The ID of the entity to notify.\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\"],\n },\n },\n },\n },\n collaborators: {\n type: \"array\",\n default: [],\n description: \"A list of entities who will collaborate on this ticket.\",\n items: {\n type: \"object\",\n required: [\"id\", \"name\", \"discriminator\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n name: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"user\", \"vendor\"],\n },\n },\n },\n },\n location: {\n type: \"object\",\n required: [\"discriminator\", \"name\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"space\", \"room\", \"property\", \"customText\"],\n },\n name: {\n type: \"string\",\n },\n },\n },\n status: {\n type: \"string\",\n enum: [\"open\", \"pending\", \"solved\", \"closed\"],\n default: \"open\",\n },\n priority: {\n type: \"string\",\n enum: [\"low\", \"normal\", \"high\"],\n default: \"normal\",\n },\n tags: {\n type: \"array\",\n default: [],\n items: {\n type: \"string\",\n },\n },\n rating: {\n type: \"number\",\n minimum: 0,\n maximum: 5,\n },\n ratingComment: {\n type: \"string\",\n },\n /**\n * @deprecated - This will be removed in a future version.\n */\n tipAmount: {\n type: \"string\",\n description:\n \"@deprecated - This will be removed in a future version. The amount of the tip.\",\n },\n autoCloseAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n scheduleDate: {\n $ref: \"definitions.json#/definitions/date\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n solvedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n closedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type TicketSchema = FromSchema<\n typeof ticketSchema,\n {\n references: [typeof defs, typeof mediaFileSchema];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAIO,MAAM,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,QAAQ;AAAA,MACf,SAAS;AAAA,IACX;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,MACV,aAAa;AAAA,MACb,OAAO;AAAA,QACL,MAAM;AAAA,QACN,sBAAsB;AAAA,QACtB,UAAU,CAAC,MAAM,iBAAiB,aAAa,MAAM;AAAA,QACrD,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,YACN,aAAa;AAAA,UACf;AAAA,UACA,eAAe;AAAA,YACb,MAAM;AAAA,YACN,MAAM;AAAA,cACJ;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,YACF;AAAA,YACA,SAAS;AAAA,YACT,aAAa;AAAA,UACf;AAAA,UACA,UAAU;AAAA,YACR,MAAM;AAAA,YACN,aAAa;AAAA,UACf;AAAA,UACA,Y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