@kohost/api-client 7.8.2 → 7.10.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/lib/deliveryStatus.d.ts +3 -0
- package/dist/lib/deliveryStatus.js +31 -0
- package/dist/lib/deliveryStatus.js.map +1 -0
- package/dist/lib/emergencyContacts.d.ts +41 -0
- package/dist/lib/emergencyContacts.js +1 -0
- package/dist/lib/index.d.ts +6 -1
- package/dist/lib/index.js +15 -2
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/messageErrorCodes.d.ts +4 -0
- package/dist/lib/messageErrorCodes.js +24 -0
- package/dist/lib/messageErrorCodes.js.map +1 -0
- package/dist/lib/money.d.ts +7 -1
- package/dist/lib/money.js +11 -2
- package/dist/lib/money.js.map +1 -1
- package/dist/lib/sisDrivers.d.ts +3 -0
- package/dist/lib/sisDrivers.js +9 -0
- package/dist/lib/sisDrivers.js.map +1 -0
- package/dist/lib/sosAudiences.d.ts +2 -0
- package/dist/lib/sosAudiences.js +6 -0
- package/dist/lib/sosAudiences.js.map +1 -0
- package/dist/models/announcement.js +9 -3
- package/dist/models/announcement.js.map +1 -1
- package/dist/models/category.js +2 -0
- package/dist/models/category.js.map +1 -1
- package/dist/models/emailMessage.js +1 -0
- package/dist/models/emailMessage.js.map +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +5 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/resource.d.ts +17 -0
- package/dist/models/resource.js +31 -0
- package/dist/models/resource.js.map +1 -0
- package/dist/models/smsMessage.js +1 -0
- package/dist/models/smsMessage.js.map +1 -1
- package/dist/models/sosEvent.d.ts +17 -0
- package/dist/models/sosEvent.js +31 -0
- package/dist/models/sosEvent.js.map +1 -0
- package/dist/models/systemUser.js +2 -0
- package/dist/models/systemUser.js.map +1 -1
- package/dist/schemas/announcement.d.ts +164 -4
- package/dist/schemas/announcement.js +171 -10
- package/dist/schemas/announcement.js.map +1 -1
- package/dist/schemas/category.d.ts +11 -1
- package/dist/schemas/category.js +12 -1
- package/dist/schemas/category.js.map +1 -1
- package/dist/schemas/definitions.d.ts +242 -0
- package/dist/schemas/definitions.js +142 -1
- package/dist/schemas/definitions.js.map +1 -1
- package/dist/schemas/emailMessage.d.ts +4 -0
- package/dist/schemas/emailMessage.js +4 -0
- package/dist/schemas/emailMessage.js.map +1 -1
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.js +3 -1
- package/dist/schemas/organization.d.ts +19 -0
- package/dist/schemas/organization.js +13 -0
- package/dist/schemas/organization.js.map +1 -1
- package/dist/schemas/property.d.ts +14 -0
- package/dist/schemas/property.js +12 -0
- package/dist/schemas/property.js.map +1 -1
- package/dist/schemas/resource.d.ts +137 -0
- package/dist/schemas/resource.js +112 -0
- package/dist/schemas/resource.js.map +1 -0
- package/dist/schemas/smsMessage.d.ts +4 -0
- package/dist/schemas/smsMessage.js +4 -0
- package/dist/schemas/smsMessage.js.map +1 -1
- package/dist/schemas/sosEvent.d.ts +413 -0
- package/dist/schemas/sosEvent.js +357 -0
- package/dist/schemas/sosEvent.js.map +1 -0
- package/dist/schemas/systemUser.d.ts +8 -0
- package/dist/schemas/systemUser.js +9 -1
- package/dist/schemas/systemUser.js.map +1 -1
- package/dist/schemas/ticket.d.ts +1 -1
- package/dist/schemas/ticket.js +1 -0
- package/dist/schemas/ticket.js.map +1 -1
- package/dist/useCases/addSOSEventNote.d.ts +36 -0
- package/dist/useCases/addSOSEventNote.js +47 -0
- package/dist/useCases/addSOSEventNote.js.map +1 -0
- package/dist/useCases/autoAssociateDiscoveredDevices.d.ts +3 -3
- package/dist/useCases/autoAssociateDiscoveredDevices.js.map +1 -1
- package/dist/useCases/bulkUpdateIssue.d.ts +3 -3
- package/dist/useCases/bulkUpdateIssue.js.map +1 -1
- package/dist/useCases/copyIssueRouting.d.ts +3 -3
- package/dist/useCases/copyIssueRouting.js.map +1 -1
- package/dist/useCases/createAnnouncementPreset.d.ts +27 -0
- package/dist/useCases/createAnnouncementPreset.js +47 -0
- package/dist/useCases/createAnnouncementPreset.js.map +1 -0
- package/dist/useCases/createAutomation.d.ts +3 -3
- package/dist/useCases/createAutomation.js.map +1 -1
- package/dist/useCases/createBill.d.ts +3 -3
- package/dist/useCases/createBill.js.map +1 -1
- package/dist/useCases/createBillingCategory.d.ts +3 -3
- package/dist/useCases/createBillingCategory.js.map +1 -1
- package/dist/useCases/createCategory.d.ts +3 -3
- package/dist/useCases/createCategory.js.map +1 -1
- package/dist/useCases/createDefaultAutomations.d.ts +3 -3
- package/dist/useCases/createDefaultAutomations.js.map +1 -1
- package/dist/useCases/createDepartment.d.ts +3 -3
- package/dist/useCases/createDepartment.js.map +1 -1
- package/dist/useCases/createDiscoveredDevice.d.ts +3 -3
- package/dist/useCases/createDiscoveredDevice.js.map +1 -1
- package/dist/useCases/createDiscoveredDeviceAssociationMap.d.ts +3 -3
- package/dist/useCases/createDiscoveredDeviceAssociationMap.js.map +1 -1
- package/dist/useCases/createIssue.d.ts +3 -3
- package/dist/useCases/createIssue.js.map +1 -1
- package/dist/useCases/createOrganization.d.ts +3 -3
- package/dist/useCases/createOrganization.js.map +1 -1
- package/dist/useCases/createPolicy.d.ts +3 -3
- package/dist/useCases/createPolicy.js.map +1 -1
- package/dist/useCases/createProperty.d.ts +3 -3
- package/dist/useCases/createProperty.js.map +1 -1
- package/dist/useCases/createPwaHandoffToken.d.ts +3 -3
- package/dist/useCases/createPwaHandoffToken.js.map +1 -1
- package/dist/useCases/createResource.d.ts +27 -0
- package/dist/useCases/createResource.js +47 -0
- package/dist/useCases/createResource.js.map +1 -0
- package/dist/useCases/createServer.d.ts +3 -3
- package/dist/useCases/createServer.js.map +1 -1
- package/dist/useCases/createSpace.d.ts +3 -3
- package/dist/useCases/createSpace.js.map +1 -1
- package/dist/useCases/createSystem.d.ts +3 -3
- package/dist/useCases/createSystem.js.map +1 -1
- package/dist/useCases/createTicket.d.ts +3 -3
- package/dist/useCases/createTicket.js.map +1 -1
- package/dist/useCases/createTimeSheet.d.ts +3 -3
- package/dist/useCases/createTimeSheet.js.map +1 -1
- package/dist/useCases/createUser.d.ts +3 -3
- package/dist/useCases/createUser.js.map +1 -1
- package/dist/useCases/createVendor.d.ts +3 -3
- package/dist/useCases/createVendor.js.map +1 -1
- package/dist/useCases/deleteAnnouncementPreset.d.ts +36 -0
- package/dist/useCases/deleteAnnouncementPreset.js +47 -0
- package/dist/useCases/deleteAnnouncementPreset.js.map +1 -0
- package/dist/useCases/deleteResource.d.ts +36 -0
- package/dist/useCases/deleteResource.js +47 -0
- package/dist/useCases/deleteResource.js.map +1 -0
- package/dist/useCases/describeAnnouncement.d.ts +36 -0
- package/dist/useCases/describeAnnouncement.js +47 -0
- package/dist/useCases/describeAnnouncement.js.map +1 -0
- package/dist/useCases/describeConciergeFacilitiesViewer.d.ts +3 -3
- package/dist/useCases/describeConciergeFacilitiesViewer.js.map +1 -1
- package/dist/useCases/describeConciergeStatsFilters.d.ts +3 -3
- package/dist/useCases/describeConciergeStatsFilters.js.map +1 -1
- package/dist/useCases/describeConciergeStatsHeatmap.d.ts +3 -3
- package/dist/useCases/describeConciergeStatsHeatmap.js.map +1 -1
- package/dist/useCases/describeConciergeStatsSummary.d.ts +3 -3
- package/dist/useCases/describeConciergeStatsSummary.js.map +1 -1
- package/dist/useCases/describeConciergeStatsTickets.d.ts +3 -3
- package/dist/useCases/describeConciergeStatsTickets.js.map +1 -1
- package/dist/useCases/describeConciergeWorkspaceFilters.d.ts +3 -3
- package/dist/useCases/describeConciergeWorkspaceFilters.js.map +1 -1
- package/dist/useCases/describeMyAuth.d.ts +3 -3
- package/dist/useCases/describeMyAuth.js.map +1 -1
- package/dist/useCases/describeMyOrganization.d.ts +3 -3
- package/dist/useCases/describeMyOrganization.js.map +1 -1
- package/dist/useCases/describeMyPasskeyRegistrations.d.ts +3 -3
- package/dist/useCases/describeMyPasskeyRegistrations.js.map +1 -1
- package/dist/useCases/describeOrgNotificationDefaults.d.ts +3 -3
- package/dist/useCases/describeOrgNotificationDefaults.js.map +1 -1
- package/dist/useCases/describePushVapidPublicKey.d.ts +3 -3
- package/dist/useCases/describePushVapidPublicKey.js.map +1 -1
- package/dist/useCases/describeResource.d.ts +36 -0
- package/dist/useCases/describeResource.js +47 -0
- package/dist/useCases/describeResource.js.map +1 -0
- package/dist/useCases/describeSOS.d.ts +3 -3
- package/dist/useCases/describeSOS.js.map +1 -1
- package/dist/useCases/describeSOSEvent.d.ts +36 -0
- package/dist/useCases/describeSOSEvent.js +47 -0
- package/dist/useCases/describeSOSEvent.js.map +1 -0
- package/dist/useCases/describeSelf.d.ts +3 -3
- package/dist/useCases/describeSelf.js.map +1 -1
- package/dist/useCases/describeSelfAccess.d.ts +3 -3
- package/dist/useCases/describeSelfAccess.js.map +1 -1
- package/dist/useCases/describeStaffFunctions.d.ts +3 -3
- package/dist/useCases/describeStaffFunctions.js.map +1 -1
- package/dist/useCases/describeTicketFilters.d.ts +3 -3
- package/dist/useCases/describeTicketFilters.js.map +1 -1
- package/dist/useCases/describeTicketStats.d.ts +3 -3
- package/dist/useCases/describeTicketStats.js.map +1 -1
- package/dist/useCases/describeTicketStatsFilters.d.ts +3 -3
- package/dist/useCases/describeTicketStatsFilters.js.map +1 -1
- package/dist/useCases/describeTicketStatsHeatmap.d.ts +3 -3
- package/dist/useCases/describeTicketStatsHeatmap.js.map +1 -1
- package/dist/useCases/describeTicketStatsSummary.d.ts +3 -3
- package/dist/useCases/describeTicketStatsSummary.js.map +1 -1
- package/dist/useCases/describeTicketStatsTickets.d.ts +3 -3
- package/dist/useCases/describeTicketStatsTickets.js.map +1 -1
- package/dist/useCases/describeTimeSheetStats.d.ts +3 -3
- package/dist/useCases/describeTimeSheetStats.js.map +1 -1
- package/dist/useCases/exportSOSEventReport.d.ts +36 -0
- package/dist/useCases/exportSOSEventReport.js +47 -0
- package/dist/useCases/exportSOSEventReport.js.map +1 -0
- package/dist/useCases/fetchEmergencyContactPeople.d.ts +27 -0
- package/dist/useCases/fetchEmergencyContactPeople.js +47 -0
- package/dist/useCases/fetchEmergencyContactPeople.js.map +1 -0
- package/dist/useCases/fetchEmergencyContacts.d.ts +27 -0
- package/dist/useCases/fetchEmergencyContacts.js +47 -0
- package/dist/useCases/fetchEmergencyContacts.js.map +1 -0
- package/dist/useCases/index.d.ts +20 -0
- package/dist/useCases/index.js +41 -1
- package/dist/useCases/index.js.map +1 -1
- package/dist/useCases/listAnnouncements.d.ts +27 -0
- package/dist/useCases/listAnnouncements.js +47 -0
- package/dist/useCases/listAnnouncements.js.map +1 -0
- package/dist/useCases/listAutomations.d.ts +3 -3
- package/dist/useCases/listAutomations.js.map +1 -1
- package/dist/useCases/listBillingCategories.d.ts +3 -3
- package/dist/useCases/listBillingCategories.js.map +1 -1
- package/dist/useCases/listBills.d.ts +3 -3
- package/dist/useCases/listBills.js.map +1 -1
- package/dist/useCases/listCategories.d.ts +3 -3
- package/dist/useCases/listCategories.js.map +1 -1
- package/dist/useCases/listConciergeUninvoicedCosts.d.ts +3 -3
- package/dist/useCases/listConciergeUninvoicedCosts.js.map +1 -1
- package/dist/useCases/listConciergeWorkspaceBills.d.ts +3 -3
- package/dist/useCases/listConciergeWorkspaceBills.js.map +1 -1
- package/dist/useCases/listConciergeWorkspaceTickets.d.ts +3 -3
- package/dist/useCases/listConciergeWorkspaceTickets.js.map +1 -1
- package/dist/useCases/listDepartments.d.ts +3 -3
- package/dist/useCases/listDepartments.js.map +1 -1
- package/dist/useCases/listDiscoveredDevices.d.ts +3 -3
- package/dist/useCases/listDiscoveredDevices.js.map +1 -1
- package/dist/useCases/listFacilitiesStaffIds.d.ts +3 -3
- package/dist/useCases/listFacilitiesStaffIds.js.map +1 -1
- package/dist/useCases/listIntegrations.d.ts +3 -3
- package/dist/useCases/listIntegrations.js.map +1 -1
- package/dist/useCases/listIssues.d.ts +3 -3
- package/dist/useCases/listIssues.js.map +1 -1
- package/dist/useCases/listKohostStaff.d.ts +3 -3
- package/dist/useCases/listKohostStaff.js.map +1 -1
- package/dist/useCases/listMyOrganizations.d.ts +3 -3
- package/dist/useCases/listMyOrganizations.js.map +1 -1
- package/dist/useCases/listMyProperties.d.ts +3 -3
- package/dist/useCases/listMyProperties.js.map +1 -1
- package/dist/useCases/listMyPushSubscriptions.d.ts +3 -3
- package/dist/useCases/listMyPushSubscriptions.js.map +1 -1
- package/dist/useCases/listMyTimeSheets.d.ts +3 -3
- package/dist/useCases/listMyTimeSheets.js.map +1 -1
- package/dist/useCases/listOrganizationBills.d.ts +3 -3
- package/dist/useCases/listOrganizationBills.js.map +1 -1
- package/dist/useCases/listOrganizations.d.ts +3 -3
- package/dist/useCases/listOrganizations.js.map +1 -1
- package/dist/useCases/listPolicies.d.ts +3 -3
- package/dist/useCases/listPolicies.js.map +1 -1
- package/dist/useCases/listProperties.d.ts +3 -3
- package/dist/useCases/listProperties.js.map +1 -1
- package/dist/useCases/listResources.d.ts +27 -0
- package/dist/useCases/listResources.js +47 -0
- package/dist/useCases/listResources.js.map +1 -0
- package/dist/useCases/listSOSEvents.d.ts +27 -0
- package/dist/useCases/listSOSEvents.js +47 -0
- package/dist/useCases/listSOSEvents.js.map +1 -0
- package/dist/useCases/listServers.d.ts +3 -3
- package/dist/useCases/listServers.js.map +1 -1
- package/dist/useCases/listSessions.d.ts +3 -3
- package/dist/useCases/listSessions.js.map +1 -1
- package/dist/useCases/listSpaces.d.ts +3 -3
- package/dist/useCases/listSpaces.js.map +1 -1
- package/dist/useCases/listSystems.d.ts +3 -3
- package/dist/useCases/listSystems.js.map +1 -1
- package/dist/useCases/listTicketLocations.d.ts +3 -3
- package/dist/useCases/listTicketLocations.js.map +1 -1
- package/dist/useCases/listTickets.d.ts +3 -3
- package/dist/useCases/listTickets.js.map +1 -1
- package/dist/useCases/listTimeSheets.d.ts +3 -3
- package/dist/useCases/listTimeSheets.js.map +1 -1
- package/dist/useCases/listUsers.d.ts +3 -3
- package/dist/useCases/listUsers.js.map +1 -1
- package/dist/useCases/listVendors.d.ts +3 -3
- package/dist/useCases/listVendors.js.map +1 -1
- package/dist/useCases/mergeIssue.d.ts +3 -3
- package/dist/useCases/mergeIssue.js.map +1 -1
- package/dist/useCases/previewSOSEventReport.d.ts +36 -0
- package/dist/useCases/previewSOSEventReport.js +47 -0
- package/dist/useCases/previewSOSEventReport.js.map +1 -0
- package/dist/useCases/replaceDevice.d.ts +39 -0
- package/dist/useCases/replaceDevice.js +47 -0
- package/dist/useCases/replaceDevice.js.map +1 -0
- package/dist/useCases/selectOrganization.d.ts +3 -3
- package/dist/useCases/selectOrganization.js.map +1 -1
- package/dist/useCases/sendAnnouncement.d.ts +27 -0
- package/dist/useCases/sendAnnouncement.js +47 -0
- package/dist/useCases/sendAnnouncement.js.map +1 -0
- package/dist/useCases/sendNotification.d.ts +3 -3
- package/dist/useCases/sendNotification.js.map +1 -1
- package/dist/useCases/sendSOSUpdate.d.ts +27 -0
- package/dist/useCases/sendSOSUpdate.js +47 -0
- package/dist/useCases/sendSOSUpdate.js.map +1 -0
- package/dist/useCases/setDevices.d.ts +3 -3
- package/dist/useCases/setDevices.js.map +1 -1
- package/dist/useCases/startSOS.d.ts +3 -3
- package/dist/useCases/startSOS.js.map +1 -1
- package/dist/useCases/stopSOS.d.ts +3 -3
- package/dist/useCases/stopSOS.js.map +1 -1
- package/dist/useCases/subscribePushDevice.d.ts +3 -3
- package/dist/useCases/subscribePushDevice.js.map +1 -1
- package/dist/useCases/updateAnnouncementPreset.d.ts +36 -0
- package/dist/useCases/updateAnnouncementPreset.js +47 -0
- package/dist/useCases/updateAnnouncementPreset.js.map +1 -0
- package/dist/useCases/updateOrgNotificationDefaults.d.ts +3 -3
- package/dist/useCases/updateOrgNotificationDefaults.js.map +1 -1
- package/dist/useCases/updateResource.d.ts +36 -0
- package/dist/useCases/updateResource.js +47 -0
- package/dist/useCases/updateResource.js.map +1 -0
- package/dist/useCases/updateSelf.d.ts +3 -3
- package/dist/useCases/updateSelf.js.map +1 -1
- package/dist/useCases/upsertDiscoveredDevice.d.ts +3 -3
- package/dist/useCases/upsertDiscoveredDevice.js.map +1 -1
- package/dist/useCases/validateAuth.d.ts +3 -3
- package/dist/useCases/validateAuth.js.map +1 -1
- package/dist/validate.d.ts +34 -3
- package/dist/validate.js +7 -1
- package/dist/validate.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,20 @@ export declare const TICKET_NOTIFICATION_EVENTS: readonly ["ticketCreated", "tic
|
|
|
2
2
|
export type TicketNotificationEvent = (typeof TICKET_NOTIFICATION_EVENTS)[number];
|
|
3
3
|
export declare const NOTIFICATION_CHANNELS: readonly ["email", "sms", "push"];
|
|
4
4
|
export type NotificationChannel = (typeof NOTIFICATION_CHANNELS)[number];
|
|
5
|
+
/**
|
|
6
|
+
* The platform roles an Audience may be selected by. The legacy `Guest` role a
|
|
7
|
+
* permission entry may still carry is deliberately absent: nothing targets it.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PLATFORM_ROLE_NAMES: readonly ["SuperAdmin", "Administrator", "Manager", "Agent", "User"];
|
|
10
|
+
export type PlatformRoleName = (typeof PLATFORM_ROLE_NAMES)[number];
|
|
11
|
+
/**
|
|
12
|
+
* The people outside the platform a broadcast may name, sourced from the SIS
|
|
13
|
+
* roster. `students` is every system user the SIS marks as a Student;
|
|
14
|
+
* `parents` is everybody else on the roster — every emergency-contact
|
|
15
|
+
* relationship the source system carries, whatever it calls it.
|
|
16
|
+
*/
|
|
17
|
+
export declare const EXTERNAL_AUDIENCE_GROUPS: readonly ["students", "parents"];
|
|
18
|
+
export type ExternalAudienceGroup = (typeof EXTERNAL_AUDIENCE_GROUPS)[number];
|
|
5
19
|
declare const defs: {
|
|
6
20
|
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
7
21
|
readonly $id: "definitions.json";
|
|
@@ -177,6 +191,234 @@ declare const defs: {
|
|
|
177
191
|
readonly type: "string";
|
|
178
192
|
readonly enum: readonly ["email", "sms", "push"];
|
|
179
193
|
};
|
|
194
|
+
readonly deliveryCounts: {
|
|
195
|
+
readonly type: "object";
|
|
196
|
+
readonly additionalProperties: false;
|
|
197
|
+
readonly required: readonly ["recipients", "sent", "failed"];
|
|
198
|
+
readonly properties: {
|
|
199
|
+
readonly recipients: {
|
|
200
|
+
readonly type: "integer";
|
|
201
|
+
readonly minimum: 0;
|
|
202
|
+
};
|
|
203
|
+
readonly sent: {
|
|
204
|
+
readonly type: "integer";
|
|
205
|
+
readonly minimum: 0;
|
|
206
|
+
};
|
|
207
|
+
readonly failed: {
|
|
208
|
+
readonly type: "integer";
|
|
209
|
+
readonly minimum: 0;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
readonly audience: {
|
|
214
|
+
readonly type: "object";
|
|
215
|
+
readonly additionalProperties: false;
|
|
216
|
+
readonly description: "Who a people-facing broadcast was directed at, as the sender expressed it, plus the snapshot it resolved to. One shape for Announcements, SOS broadcasts and Automation notifications.";
|
|
217
|
+
readonly properties: {
|
|
218
|
+
readonly to: {
|
|
219
|
+
readonly type: "object";
|
|
220
|
+
readonly additionalProperties: false;
|
|
221
|
+
readonly description: 'The User selector, one kind at a time. Absent or empty selects nobody; everyone is only ever the explicit `id: ["*"]` wildcard.';
|
|
222
|
+
readonly properties: {
|
|
223
|
+
readonly id: {
|
|
224
|
+
readonly type: "array";
|
|
225
|
+
readonly description: "Named User ids, or the single wildcard `*` meaning everyone in scope.";
|
|
226
|
+
readonly items: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
readonly roles: {
|
|
231
|
+
readonly type: "array";
|
|
232
|
+
readonly items: {
|
|
233
|
+
readonly type: "string";
|
|
234
|
+
readonly enum: readonly ["SuperAdmin", "Administrator", "Manager", "Agent", "User"];
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
readonly departmentIds: {
|
|
238
|
+
readonly type: "array";
|
|
239
|
+
readonly items: {
|
|
240
|
+
readonly type: "string";
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
readonly external: {
|
|
246
|
+
readonly type: "array";
|
|
247
|
+
readonly uniqueItems: true;
|
|
248
|
+
readonly description: "Which groups of the external SIS roster were included. Human-triggered sends only; an Automation can never set it.";
|
|
249
|
+
readonly items: {
|
|
250
|
+
readonly type: "string";
|
|
251
|
+
readonly enum: readonly ["students", "parents"];
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
readonly emergencyContacts: {
|
|
255
|
+
readonly type: "boolean";
|
|
256
|
+
readonly description: 'Deprecated: superseded by `external`. A stored `true` reads as `external: ["parents"]`.';
|
|
257
|
+
};
|
|
258
|
+
readonly users: {
|
|
259
|
+
readonly type: "array";
|
|
260
|
+
readonly description: "Snapshot of the User ids the selector resolved to at send time.";
|
|
261
|
+
readonly items: {
|
|
262
|
+
readonly type: "string";
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
readonly delivery: {
|
|
266
|
+
readonly type: "object";
|
|
267
|
+
readonly additionalProperties: false;
|
|
268
|
+
readonly description: "Send-time delivery counts per audience. Absent for an audience that was not sent to.";
|
|
269
|
+
readonly properties: {
|
|
270
|
+
readonly internal: {
|
|
271
|
+
readonly type: "object";
|
|
272
|
+
readonly additionalProperties: false;
|
|
273
|
+
readonly required: readonly ["recipients", "sent", "failed"];
|
|
274
|
+
readonly properties: {
|
|
275
|
+
readonly recipients: {
|
|
276
|
+
readonly type: "integer";
|
|
277
|
+
readonly minimum: 0;
|
|
278
|
+
};
|
|
279
|
+
readonly sent: {
|
|
280
|
+
readonly type: "integer";
|
|
281
|
+
readonly minimum: 0;
|
|
282
|
+
};
|
|
283
|
+
readonly failed: {
|
|
284
|
+
readonly type: "integer";
|
|
285
|
+
readonly minimum: 0;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
readonly external: {
|
|
290
|
+
readonly type: "object";
|
|
291
|
+
readonly additionalProperties: false;
|
|
292
|
+
readonly required: readonly ["recipients", "sent", "failed"];
|
|
293
|
+
readonly properties: {
|
|
294
|
+
readonly recipients: {
|
|
295
|
+
readonly type: "integer";
|
|
296
|
+
readonly minimum: 0;
|
|
297
|
+
};
|
|
298
|
+
readonly sent: {
|
|
299
|
+
readonly type: "integer";
|
|
300
|
+
readonly minimum: 0;
|
|
301
|
+
};
|
|
302
|
+
readonly failed: {
|
|
303
|
+
readonly type: "integer";
|
|
304
|
+
readonly minimum: 0;
|
|
305
|
+
};
|
|
306
|
+
readonly byChannel: {
|
|
307
|
+
readonly type: "object";
|
|
308
|
+
readonly additionalProperties: false;
|
|
309
|
+
readonly description: "Per-channel counts, present only for the channels attempted.";
|
|
310
|
+
readonly properties: {
|
|
311
|
+
readonly sms: {
|
|
312
|
+
readonly type: "object";
|
|
313
|
+
readonly additionalProperties: false;
|
|
314
|
+
readonly required: readonly ["recipients", "sent", "failed"];
|
|
315
|
+
readonly properties: {
|
|
316
|
+
readonly recipients: {
|
|
317
|
+
readonly type: "integer";
|
|
318
|
+
readonly minimum: 0;
|
|
319
|
+
};
|
|
320
|
+
readonly sent: {
|
|
321
|
+
readonly type: "integer";
|
|
322
|
+
readonly minimum: 0;
|
|
323
|
+
};
|
|
324
|
+
readonly failed: {
|
|
325
|
+
readonly type: "integer";
|
|
326
|
+
readonly minimum: 0;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
readonly email: {
|
|
331
|
+
readonly type: "object";
|
|
332
|
+
readonly additionalProperties: false;
|
|
333
|
+
readonly required: readonly ["recipients", "sent", "failed"];
|
|
334
|
+
readonly properties: {
|
|
335
|
+
readonly recipients: {
|
|
336
|
+
readonly type: "integer";
|
|
337
|
+
readonly minimum: 0;
|
|
338
|
+
};
|
|
339
|
+
readonly sent: {
|
|
340
|
+
readonly type: "integer";
|
|
341
|
+
readonly minimum: 0;
|
|
342
|
+
};
|
|
343
|
+
readonly failed: {
|
|
344
|
+
readonly type: "integer";
|
|
345
|
+
readonly minimum: 0;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
readonly emergencyContacts: {
|
|
354
|
+
readonly type: "object";
|
|
355
|
+
readonly additionalProperties: false;
|
|
356
|
+
readonly required: readonly ["recipients", "sent", "failed"];
|
|
357
|
+
readonly description: "Deprecated: superseded by `external`.";
|
|
358
|
+
readonly properties: {
|
|
359
|
+
readonly recipients: {
|
|
360
|
+
readonly type: "integer";
|
|
361
|
+
readonly minimum: 0;
|
|
362
|
+
};
|
|
363
|
+
readonly sent: {
|
|
364
|
+
readonly type: "integer";
|
|
365
|
+
readonly minimum: 0;
|
|
366
|
+
};
|
|
367
|
+
readonly failed: {
|
|
368
|
+
readonly type: "integer";
|
|
369
|
+
readonly minimum: 0;
|
|
370
|
+
};
|
|
371
|
+
readonly byChannel: {
|
|
372
|
+
readonly type: "object";
|
|
373
|
+
readonly additionalProperties: false;
|
|
374
|
+
readonly description: "Per-channel counts, present only for the channels attempted.";
|
|
375
|
+
readonly properties: {
|
|
376
|
+
readonly sms: {
|
|
377
|
+
readonly type: "object";
|
|
378
|
+
readonly additionalProperties: false;
|
|
379
|
+
readonly required: readonly ["recipients", "sent", "failed"];
|
|
380
|
+
readonly properties: {
|
|
381
|
+
readonly recipients: {
|
|
382
|
+
readonly type: "integer";
|
|
383
|
+
readonly minimum: 0;
|
|
384
|
+
};
|
|
385
|
+
readonly sent: {
|
|
386
|
+
readonly type: "integer";
|
|
387
|
+
readonly minimum: 0;
|
|
388
|
+
};
|
|
389
|
+
readonly failed: {
|
|
390
|
+
readonly type: "integer";
|
|
391
|
+
readonly minimum: 0;
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
readonly email: {
|
|
396
|
+
readonly type: "object";
|
|
397
|
+
readonly additionalProperties: false;
|
|
398
|
+
readonly required: readonly ["recipients", "sent", "failed"];
|
|
399
|
+
readonly properties: {
|
|
400
|
+
readonly recipients: {
|
|
401
|
+
readonly type: "integer";
|
|
402
|
+
readonly minimum: 0;
|
|
403
|
+
};
|
|
404
|
+
readonly sent: {
|
|
405
|
+
readonly type: "integer";
|
|
406
|
+
readonly minimum: 0;
|
|
407
|
+
};
|
|
408
|
+
readonly failed: {
|
|
409
|
+
readonly type: "integer";
|
|
410
|
+
readonly minimum: 0;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
};
|
|
180
422
|
};
|
|
181
423
|
};
|
|
182
424
|
export type ISODateString = ReturnType<Date["toISOString"]>;
|
|
@@ -17,6 +17,47 @@ const NOTIFICATION_CHANNELS = [
|
|
|
17
17
|
"sms",
|
|
18
18
|
"push"
|
|
19
19
|
];
|
|
20
|
+
/**
|
|
21
|
+
* The platform roles an Audience may be selected by. The legacy `Guest` role a
|
|
22
|
+
* permission entry may still carry is deliberately absent: nothing targets it.
|
|
23
|
+
*/
|
|
24
|
+
const PLATFORM_ROLE_NAMES = [
|
|
25
|
+
"SuperAdmin",
|
|
26
|
+
"Administrator",
|
|
27
|
+
"Manager",
|
|
28
|
+
"Agent",
|
|
29
|
+
"User"
|
|
30
|
+
];
|
|
31
|
+
/**
|
|
32
|
+
* The people outside the platform a broadcast may name, sourced from the SIS
|
|
33
|
+
* roster. `students` is every system user the SIS marks as a Student;
|
|
34
|
+
* `parents` is everybody else on the roster — every emergency-contact
|
|
35
|
+
* relationship the source system carries, whatever it calls it.
|
|
36
|
+
*/
|
|
37
|
+
const EXTERNAL_AUDIENCE_GROUPS = ["students", "parents"];
|
|
38
|
+
const deliveryCountsNode = {
|
|
39
|
+
type: "object",
|
|
40
|
+
additionalProperties: false,
|
|
41
|
+
required: [
|
|
42
|
+
"recipients",
|
|
43
|
+
"sent",
|
|
44
|
+
"failed"
|
|
45
|
+
],
|
|
46
|
+
properties: {
|
|
47
|
+
recipients: {
|
|
48
|
+
type: "integer",
|
|
49
|
+
minimum: 0
|
|
50
|
+
},
|
|
51
|
+
sent: {
|
|
52
|
+
type: "integer",
|
|
53
|
+
minimum: 0
|
|
54
|
+
},
|
|
55
|
+
failed: {
|
|
56
|
+
type: "integer",
|
|
57
|
+
minimum: 0
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
20
61
|
const defs = {
|
|
21
62
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
22
63
|
$id: "definitions.json",
|
|
@@ -301,10 +342,110 @@ const defs = {
|
|
|
301
342
|
notificationChannel: {
|
|
302
343
|
type: "string",
|
|
303
344
|
enum: NOTIFICATION_CHANNELS
|
|
345
|
+
},
|
|
346
|
+
deliveryCounts: deliveryCountsNode,
|
|
347
|
+
audience: {
|
|
348
|
+
type: "object",
|
|
349
|
+
additionalProperties: false,
|
|
350
|
+
description: "Who a people-facing broadcast was directed at, as the sender expressed it, plus the snapshot it resolved to. One shape for Announcements, SOS broadcasts and Automation notifications.",
|
|
351
|
+
properties: {
|
|
352
|
+
to: {
|
|
353
|
+
type: "object",
|
|
354
|
+
additionalProperties: false,
|
|
355
|
+
description: "The User selector, one kind at a time. Absent or empty selects nobody; everyone is only ever the explicit `id: [\"*\"]` wildcard.",
|
|
356
|
+
properties: {
|
|
357
|
+
id: {
|
|
358
|
+
type: "array",
|
|
359
|
+
description: "Named User ids, or the single wildcard `*` meaning everyone in scope.",
|
|
360
|
+
items: { type: "string" }
|
|
361
|
+
},
|
|
362
|
+
roles: {
|
|
363
|
+
type: "array",
|
|
364
|
+
items: {
|
|
365
|
+
type: "string",
|
|
366
|
+
enum: PLATFORM_ROLE_NAMES
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
departmentIds: {
|
|
370
|
+
type: "array",
|
|
371
|
+
items: { type: "string" }
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
external: {
|
|
376
|
+
type: "array",
|
|
377
|
+
uniqueItems: true,
|
|
378
|
+
description: "Which groups of the external SIS roster were included. Human-triggered sends only; an Automation can never set it.",
|
|
379
|
+
items: {
|
|
380
|
+
type: "string",
|
|
381
|
+
enum: EXTERNAL_AUDIENCE_GROUPS
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
emergencyContacts: {
|
|
385
|
+
type: "boolean",
|
|
386
|
+
description: "Deprecated: superseded by `external`. A stored `true` reads as `external: [\"parents\"]`."
|
|
387
|
+
},
|
|
388
|
+
users: {
|
|
389
|
+
type: "array",
|
|
390
|
+
description: "Snapshot of the User ids the selector resolved to at send time.",
|
|
391
|
+
items: { type: "string" }
|
|
392
|
+
},
|
|
393
|
+
delivery: {
|
|
394
|
+
type: "object",
|
|
395
|
+
additionalProperties: false,
|
|
396
|
+
description: "Send-time delivery counts per audience. Absent for an audience that was not sent to.",
|
|
397
|
+
properties: {
|
|
398
|
+
internal: deliveryCountsNode,
|
|
399
|
+
external: {
|
|
400
|
+
type: "object",
|
|
401
|
+
additionalProperties: false,
|
|
402
|
+
required: [
|
|
403
|
+
"recipients",
|
|
404
|
+
"sent",
|
|
405
|
+
"failed"
|
|
406
|
+
],
|
|
407
|
+
properties: {
|
|
408
|
+
...deliveryCountsNode.properties,
|
|
409
|
+
byChannel: {
|
|
410
|
+
type: "object",
|
|
411
|
+
additionalProperties: false,
|
|
412
|
+
description: "Per-channel counts, present only for the channels attempted.",
|
|
413
|
+
properties: {
|
|
414
|
+
sms: deliveryCountsNode,
|
|
415
|
+
email: deliveryCountsNode
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
emergencyContacts: {
|
|
421
|
+
type: "object",
|
|
422
|
+
additionalProperties: false,
|
|
423
|
+
required: [
|
|
424
|
+
"recipients",
|
|
425
|
+
"sent",
|
|
426
|
+
"failed"
|
|
427
|
+
],
|
|
428
|
+
description: "Deprecated: superseded by `external`.",
|
|
429
|
+
properties: {
|
|
430
|
+
...deliveryCountsNode.properties,
|
|
431
|
+
byChannel: {
|
|
432
|
+
type: "object",
|
|
433
|
+
additionalProperties: false,
|
|
434
|
+
description: "Per-channel counts, present only for the channels attempted.",
|
|
435
|
+
properties: {
|
|
436
|
+
sms: deliveryCountsNode,
|
|
437
|
+
email: deliveryCountsNode
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
304
445
|
}
|
|
305
446
|
}
|
|
306
447
|
};
|
|
307
448
|
//#endregion
|
|
308
|
-
export { NOTIFICATION_CHANNELS, TICKET_NOTIFICATION_EVENTS, defs as default, defs as definitionsSchema };
|
|
449
|
+
export { EXTERNAL_AUDIENCE_GROUPS, NOTIFICATION_CHANNELS, PLATFORM_ROLE_NAMES, TICKET_NOTIFICATION_EVENTS, defs as default, defs as definitionsSchema };
|
|
309
450
|
|
|
310
451
|
//# sourceMappingURL=definitions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","names":[],"sources":["../../.generated/schemas/definitions.ts"],"sourcesContent":["export const TICKET_NOTIFICATION_EVENTS = [\n \"ticketCreated\",\n \"ticketAssignedToMe\",\n \"addedAsCollaborator\",\n \"mentionedInTicket\",\n \"messageOnMyTicket\",\n \"ticketResolved\",\n \"ticketCreatedAsObserver\",\n \"messageAsObserver\",\n \"ticketResolvedAsObserver\",\n \"approvalRequested\",\n \"approvalDecided\",\n] as const;\n\nexport type TicketNotificationEvent =\n (typeof TICKET_NOTIFICATION_EVENTS)[number];\n\nexport const NOTIFICATION_CHANNELS = [\"email\", \"sms\", \"push\"] as const;\n\nexport type NotificationChannel = (typeof NOTIFICATION_CHANNELS)[number];\n\nconst defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"apex-american-audio\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"cool-automation\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"earbridge\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"honeywell-resideo\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lapi\",\n \"lg\",\n \"lg-webos\",\n \"linortek\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"mobile-mule\",\n \"mock\",\n \"modbus\",\n \"napco\",\n \"newline\",\n \"obix\",\n \"one-roster\",\n \"onvif\",\n \"orchid-fusion\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"reolink\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"singlewire\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"zkteco\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n id: {\n type: \"string\"\n },\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Button\",\n \"Communication\",\n \"Config\",\n \"Cost\",\n \"Door Ajar\",\n \"Equipment\",\n \"Maintenance\",\n \"Motion\",\n \"Registration\",\n \"Temperature\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBattery\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n \"powerTrouble\",\n \"monitoringTrouble\",\n \"bellTrouble\",\n \"configIssue\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n ticketNotificationEvent: {\n type: \"string\",\n enum: TICKET_NOTIFICATION_EVENTS,\n },\n notificationChannel: {\n type: \"string\",\n enum: NOTIFICATION_CHANNELS,\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":";AAAA,MAAa,6BAA6B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAKA,MAAa,wBAAwB;CAAC;CAAS;CAAO;AAAM;AAI5D,MAAM,OAAO;CACX,SAAS;CACT,KAAK;CACL,OAAO;CACP,aAAa;EACX,IAAI;GACF,MAAM;GACN,aAAa;EACf;EACA,UAAU;GACR,MAAM;GACN,aAAa;EACf;EACA,YAAY,EACV,MAAM,SACR;EACA,UAAU;GACR,MAAM;GACN,SAAS,CAAC;EACZ;EACA,MAAM;GACJ,MAAM,CAAC,UAAU,QAAQ;GACzB,QAAQ;EACV;EACA,MAAM;GACJ,MAAM;GACN,UAAU;IAAC;IAAQ;IAAQ;GAAM;GACjC,YAAY;IACV,MAAM;KACJ,MAAM;KACN,aAAa;IACf;IACA,MAAM;KACJ,MAAM;KACN,aAAa;IACf;IACA,MAAM;KACJ,MAAM;KACN,aAAa;IACf;GACF;EACF;EACA,SAAS;GACP,MAAM;GACN,sBAAsB;GACtB,YAAY;IACV,IAAI,EACF,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,MAAM,EACJ,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,YAAY,EACV,MAAM,SACR;IACA,aAAa;KACX,MAAM;KACN,WAAW;KACX,WAAW;IACb;GACF;EACF;EACA,QAAQ;GACN,MAAM;GACN,aAAa;GACb,MAAM;IACJ;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF;EACF;EACA,MAAM;GACJ,MAAM;GACN,MAAM;IACJ;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF;EACF;EACA,MAAM,EACJ,MAAM,SACR;EACA,QAAQ;GACN,MAAM;GACN,aAAa;GACb,OAAO;IACL,MAAM;IACN,sBAAsB;IACtB,UAAU;KAAC;KAAQ;KAAU;IAAS;IACtC,YAAY;KACV,IAAI,EACF,MAAM,SACR;KACA,MAAM;MACJ,MAAM;MACN,MAAM;OACJ;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;MACF;KACF;KACA,QAAQ;MACN,MAAM;MACN,MAAM,CAAC,UAAU,UAAU;KAC7B;KACA,SAAS,EACP,MAAM,SACR;IACF;GACF;EACF;EACA,wBAAwB;GACtB,MAAM;GACN,aAAa;GACb,OAAO,EACL,MAAM;IACJ;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF,EACF;EACF;EACA,cAAc;GACZ,MAAM,CAAC,UAAU,MAAM;GACvB,YAAY;IACV,MAAM;KACJ,MAAM;KACN,MAAM;IACR;IACA,WAAW;KACT,MAAM;KACN,SAAS;IACX;IACA,aAAa,EACX,MAAM,SACR;GACF;EACF;EACA,cAAc;GACZ,MAAM;GACN,SAAS;GACT,SAAS;EACX;EACA,OAAO;GACL,MAAM;GACN,SAAS;EACX;EACA,SAAS;GACP,MAAM;GACN,OAAO;IACL,MAAM;IACN,YAAY;KACV,IAAI,EACF,MAAM,mCACR;KACA,MAAM,EACJ,MAAM,SACR;KACA,MAAM;MACJ,MAAM;MACN,QAAQ;KACV;KACA,OAAO,EACL,MAAM,SACR;KACA,KAAK,EACH,MAAM,CAAC,UAAU,MAAM,EACzB;IACF;GACF;EACF;EACA,yBAAyB;GACvB,MAAM;GACN,MAAM;EACR;EACA,qBAAqB;GACnB,MAAM;GACN,MAAM;EACR;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"definitions.js","names":[],"sources":["../../.generated/schemas/definitions.ts"],"sourcesContent":["export const TICKET_NOTIFICATION_EVENTS = [\n \"ticketCreated\",\n \"ticketAssignedToMe\",\n \"addedAsCollaborator\",\n \"mentionedInTicket\",\n \"messageOnMyTicket\",\n \"ticketResolved\",\n \"ticketCreatedAsObserver\",\n \"messageAsObserver\",\n \"ticketResolvedAsObserver\",\n \"approvalRequested\",\n \"approvalDecided\",\n] as const;\n\nexport type TicketNotificationEvent =\n (typeof TICKET_NOTIFICATION_EVENTS)[number];\n\nexport const NOTIFICATION_CHANNELS = [\"email\", \"sms\", \"push\"] as const;\n\nexport type NotificationChannel = (typeof NOTIFICATION_CHANNELS)[number];\n\n/**\n * The platform roles an Audience may be selected by. The legacy `Guest` role a\n * permission entry may still carry is deliberately absent: nothing targets it.\n */\nexport const PLATFORM_ROLE_NAMES = [\n \"SuperAdmin\",\n \"Administrator\",\n \"Manager\",\n \"Agent\",\n \"User\",\n] as const;\n\nexport type PlatformRoleName = (typeof PLATFORM_ROLE_NAMES)[number];\n\n/**\n * The people outside the platform a broadcast may name, sourced from the SIS\n * roster. `students` is every system user the SIS marks as a Student;\n * `parents` is everybody else on the roster — every emergency-contact\n * relationship the source system carries, whatever it calls it.\n */\nexport const EXTERNAL_AUDIENCE_GROUPS = [\"students\", \"parents\"] as const;\n\nexport type ExternalAudienceGroup = (typeof EXTERNAL_AUDIENCE_GROUPS)[number];\n\nconst deliveryCountsNode = {\n type: \"object\",\n additionalProperties: false,\n required: [\"recipients\", \"sent\", \"failed\"],\n properties: {\n recipients: { type: \"integer\", minimum: 0 },\n sent: { type: \"integer\", minimum: 0 },\n failed: { type: \"integer\", minimum: 0 },\n },\n} as const;\n\nconst defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"apex-american-audio\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"cool-automation\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"earbridge\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"honeywell-resideo\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lapi\",\n \"lg\",\n \"lg-webos\",\n \"linortek\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"mobile-mule\",\n \"mock\",\n \"modbus\",\n \"napco\",\n \"newline\",\n \"obix\",\n \"one-roster\",\n \"onvif\",\n \"orchid-fusion\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"reolink\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"singlewire\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"zkteco\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n id: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Button\",\n \"Communication\",\n \"Config\",\n \"Cost\",\n \"Door Ajar\",\n \"Equipment\",\n \"Maintenance\",\n \"Motion\",\n \"Registration\",\n \"Temperature\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBattery\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n \"powerTrouble\",\n \"monitoringTrouble\",\n \"bellTrouble\",\n \"configIssue\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n ticketNotificationEvent: {\n type: \"string\",\n enum: TICKET_NOTIFICATION_EVENTS,\n },\n notificationChannel: {\n type: \"string\",\n enum: NOTIFICATION_CHANNELS,\n },\n deliveryCounts: deliveryCountsNode,\n audience: {\n type: \"object\",\n additionalProperties: false,\n description:\n \"Who a people-facing broadcast was directed at, as the sender expressed it, plus the snapshot it resolved to. One shape for Announcements, SOS broadcasts and Automation notifications.\",\n properties: {\n to: {\n type: \"object\",\n additionalProperties: false,\n description:\n 'The User selector, one kind at a time. Absent or empty selects nobody; everyone is only ever the explicit `id: [\"*\"]` wildcard.',\n properties: {\n id: {\n type: \"array\",\n description:\n \"Named User ids, or the single wildcard `*` meaning everyone in scope.\",\n items: { type: \"string\" },\n },\n roles: {\n type: \"array\",\n items: { type: \"string\", enum: PLATFORM_ROLE_NAMES },\n },\n departmentIds: {\n type: \"array\",\n items: { type: \"string\" },\n },\n },\n },\n external: {\n type: \"array\",\n uniqueItems: true,\n description:\n \"Which groups of the external SIS roster were included. Human-triggered sends only; an Automation can never set it.\",\n items: { type: \"string\", enum: EXTERNAL_AUDIENCE_GROUPS },\n },\n emergencyContacts: {\n type: \"boolean\",\n description:\n 'Deprecated: superseded by `external`. A stored `true` reads as `external: [\"parents\"]`.',\n },\n users: {\n type: \"array\",\n description:\n \"Snapshot of the User ids the selector resolved to at send time.\",\n items: { type: \"string\" },\n },\n delivery: {\n type: \"object\",\n additionalProperties: false,\n description:\n \"Send-time delivery counts per audience. Absent for an audience that was not sent to.\",\n properties: {\n internal: deliveryCountsNode,\n external: {\n type: \"object\",\n additionalProperties: false,\n required: [\"recipients\", \"sent\", \"failed\"],\n properties: {\n ...deliveryCountsNode.properties,\n byChannel: {\n type: \"object\",\n additionalProperties: false,\n description:\n \"Per-channel counts, present only for the channels attempted.\",\n properties: {\n sms: deliveryCountsNode,\n email: deliveryCountsNode,\n },\n },\n },\n },\n emergencyContacts: {\n type: \"object\",\n additionalProperties: false,\n required: [\"recipients\", \"sent\", \"failed\"],\n description: \"Deprecated: superseded by `external`.\",\n properties: {\n ...deliveryCountsNode.properties,\n byChannel: {\n type: \"object\",\n additionalProperties: false,\n description:\n \"Per-channel counts, present only for the channels attempted.\",\n properties: {\n sms: deliveryCountsNode,\n email: deliveryCountsNode,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":";AAAA,MAAa,6BAA6B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAKA,MAAa,wBAAwB;CAAC;CAAS;CAAO;AAAM;;;;;AAQ5D,MAAa,sBAAsB;CACjC;CACA;CACA;CACA;CACA;AACF;;;;;;;AAUA,MAAa,2BAA2B,CAAC,YAAY,SAAS;AAI9D,MAAM,qBAAqB;CACzB,MAAM;CACN,sBAAsB;CACtB,UAAU;EAAC;EAAc;EAAQ;CAAQ;CACzC,YAAY;EACV,YAAY;GAAE,MAAM;GAAW,SAAS;EAAE;EAC1C,MAAM;GAAE,MAAM;GAAW,SAAS;EAAE;EACpC,QAAQ;GAAE,MAAM;GAAW,SAAS;EAAE;CACxC;AACF;AAEA,MAAM,OAAO;CACX,SAAS;CACT,KAAK;CACL,OAAO;CACP,aAAa;EACX,IAAI;GACF,MAAM;GACN,aAAa;EACf;EACA,UAAU;GACR,MAAM;GACN,aAAa;EACf;EACA,YAAY,EACV,MAAM,SACR;EACA,UAAU;GACR,MAAM;GACN,SAAS,CAAC;EACZ;EACA,MAAM;GACJ,MAAM,CAAC,UAAU,QAAQ;GACzB,QAAQ;EACV;EACA,MAAM;GACJ,MAAM;GACN,UAAU;IAAC;IAAQ;IAAQ;GAAM;GACjC,YAAY;IACV,MAAM;KACJ,MAAM;KACN,aAAa;IACf;IACA,MAAM;KACJ,MAAM;KACN,aAAa;IACf;IACA,MAAM;KACJ,MAAM;KACN,aAAa;IACf;GACF;EACF;EACA,SAAS;GACP,MAAM;GACN,sBAAsB;GACtB,YAAY;IACV,IAAI,EACF,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,MAAM,EACJ,MAAM,SACR;IACA,OAAO,EACL,MAAM,SACR;IACA,YAAY,EACV,MAAM,SACR;IACA,aAAa;KACX,MAAM;KACN,WAAW;KACX,WAAW;IACb;GACF;EACF;EACA,QAAQ;GACN,MAAM;GACN,aAAa;GACb,MAAM;IACJ;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF;EACF;EACA,MAAM;GACJ,MAAM;GACN,MAAM;IACJ;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF;EACF;EACA,MAAM,EACJ,MAAM,SACR;EACA,QAAQ;GACN,MAAM;GACN,aAAa;GACb,OAAO;IACL,MAAM;IACN,sBAAsB;IACtB,UAAU;KAAC;KAAQ;KAAU;IAAS;IACtC,YAAY;KACV,IAAI,EACF,MAAM,SACR;KACA,MAAM;MACJ,MAAM;MACN,MAAM;OACJ;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;OACA;MACF;KACF;KACA,QAAQ;MACN,MAAM;MACN,MAAM,CAAC,UAAU,UAAU;KAC7B;KACA,SAAS,EACP,MAAM,SACR;IACF;GACF;EACF;EACA,wBAAwB;GACtB,MAAM;GACN,aAAa;GACb,OAAO,EACL,MAAM;IACJ;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF,EACF;EACF;EACA,cAAc;GACZ,MAAM,CAAC,UAAU,MAAM;GACvB,YAAY;IACV,MAAM;KACJ,MAAM;KACN,MAAM;IACR;IACA,WAAW;KACT,MAAM;KACN,SAAS;IACX;IACA,aAAa,EACX,MAAM,SACR;GACF;EACF;EACA,cAAc;GACZ,MAAM;GACN,SAAS;GACT,SAAS;EACX;EACA,OAAO;GACL,MAAM;GACN,SAAS;EACX;EACA,SAAS;GACP,MAAM;GACN,OAAO;IACL,MAAM;IACN,YAAY;KACV,IAAI,EACF,MAAM,mCACR;KACA,MAAM,EACJ,MAAM,SACR;KACA,MAAM;MACJ,MAAM;MACN,QAAQ;KACV;KACA,OAAO,EACL,MAAM,SACR;KACA,KAAK,EACH,MAAM,CAAC,UAAU,MAAM,EACzB;IACF;GACF;EACF;EACA,yBAAyB;GACvB,MAAM;GACN,MAAM;EACR;EACA,qBAAqB;GACnB,MAAM;GACN,MAAM;EACR;EACA,gBAAgB;EAChB,UAAU;GACR,MAAM;GACN,sBAAsB;GACtB,aACE;GACF,YAAY;IACV,IAAI;KACF,MAAM;KACN,sBAAsB;KACtB,aACE;KACF,YAAY;MACV,IAAI;OACF,MAAM;OACN,aACE;OACF,OAAO,EAAE,MAAM,SAAS;MAC1B;MACA,OAAO;OACL,MAAM;OACN,OAAO;QAAE,MAAM;QAAU,MAAM;OAAoB;MACrD;MACA,eAAe;OACb,MAAM;OACN,OAAO,EAAE,MAAM,SAAS;MAC1B;KACF;IACF;IACA,UAAU;KACR,MAAM;KACN,aAAa;KACb,aACE;KACF,OAAO;MAAE,MAAM;MAAU,MAAM;KAAyB;IAC1D;IACA,mBAAmB;KACjB,MAAM;KACN,aACE;IACJ;IACA,OAAO;KACL,MAAM;KACN,aACE;KACF,OAAO,EAAE,MAAM,SAAS;IAC1B;IACA,UAAU;KACR,MAAM;KACN,sBAAsB;KACtB,aACE;KACF,YAAY;MACV,UAAU;MACV,UAAU;OACR,MAAM;OACN,sBAAsB;OACtB,UAAU;QAAC;QAAc;QAAQ;OAAQ;OACzC,YAAY;QACV,GAAG,mBAAmB;QACtB,WAAW;SACT,MAAM;SACN,sBAAsB;SACtB,aACE;SACF,YAAY;UACV,KAAK;UACL,OAAO;SACT;QACF;OACF;MACF;MACA,mBAAmB;OACjB,MAAM;OACN,sBAAsB;OACtB,UAAU;QAAC;QAAc;QAAQ;OAAQ;OACzC,aAAa;OACb,YAAY;QACV,GAAG,mBAAmB;QACtB,WAAW;SACT,MAAM;SACN,sBAAsB;SACtB,aACE;SACF,YAAY;UACV,KAAK;UACL,OAAO;SACT;QACF;OACF;MACF;KACF;IACF;GACF;EACF;CACF;AACF"}
|
|
@@ -37,6 +37,10 @@ export declare const emailMessageSchema: {
|
|
|
37
37
|
readonly statusMessage: {
|
|
38
38
|
readonly type: "string";
|
|
39
39
|
};
|
|
40
|
+
readonly errorCode: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
readonly description: "Raw vendor delivery-failure code, e.g. Twilio 21610.";
|
|
43
|
+
};
|
|
40
44
|
readonly html: {
|
|
41
45
|
readonly type: "string";
|
|
42
46
|
};
|
|
@@ -50,6 +50,10 @@ const emailMessageSchema = {
|
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
statusMessage: { type: "string" },
|
|
53
|
+
errorCode: {
|
|
54
|
+
type: "string",
|
|
55
|
+
description: "Raw vendor delivery-failure code, e.g. Twilio 21610."
|
|
56
|
+
},
|
|
53
57
|
html: { type: "string" },
|
|
54
58
|
text: { type: "string" },
|
|
55
59
|
driver: { type: "string" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emailMessage.js","names":[],"sources":["../../.generated/schemas/emailMessage.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const emailMessageSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"emailMessage.json\",\n title: \"Email Message\",\n type: \"object\",\n required: [\"id\", \"type\", \"to\", \"from\", \"status\", \"subject\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n type: {\n type: \"string\",\n default: \"emailMessage\",\n enum: [\"emailMessage\"],\n },\n to: {\n type: \"string\",\n },\n from: {\n type: \"string\",\n description: \"Must be in the format of 'Sender <email@example.com>\",\n },\n subject: {\n type: \"string\",\n },\n status: {\n type: \"string\",\n enum: [\n \"queued\",\n \"sending\",\n \"sent\",\n \"deferred\",\n \"delivered\",\n \"undelivered\",\n \"bounced\",\n \"blocked\",\n \"receiving\",\n \"received\",\n \"opened\",\n \"clicked\",\n \"unsubscribed\",\n \"spamReport\",\n ],\n },\n statusMessage: {\n type: \"string\",\n },\n html: {\n type: \"string\",\n },\n text: {\n type: \"string\",\n },\n driver: {\n type: \"string\",\n },\n headers: {\n type: \"object\",\n additionalProperties: { type: \"string\" },\n description: \"Additional headers for the email message, key/value pairs\",\n },\n replyTo: {\n type: [\"string\", \"array\"],\n },\n appData: {\n type: \"object\",\n additionalProperties: true,\n description:\n \"Additional data for the email message, used for custom data\",\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 systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n },\n} as const;\n\nexport type EmailMessageSchema = FromSchema<\n typeof emailMessageSchema,\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":";AAGA,MAAa,qBAAqB;CAChC,SAAS;CACT,KAAK;CACL,OAAO;CACP,MAAM;CACN,UAAU;EAAC;EAAM;EAAQ;EAAM;EAAQ;EAAU;CAAS;CAC1D,sBAAsB;CACtB,YAAY;EACV,IAAI,EACF,MAAM,mCACR;EACA,YAAY;GACV,MAAM;GACN,aAAa;EACf;EACA,MAAM;GACJ,MAAM;GACN,SAAS;GACT,MAAM,CAAC,cAAc;EACvB;EACA,IAAI,EACF,MAAM,SACR;EACA,MAAM;GACJ,MAAM;GACN,aAAa;EACf;EACA,SAAS,EACP,MAAM,SACR;EACA,QAAQ;GACN,MAAM;GACN,MAAM;IACJ;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF;EACF;EACA,eAAe,EACb,MAAM,SACR;EACA,MAAM,EACJ,MAAM,SACR;EACA,MAAM,EACJ,MAAM,SACR;EACA,QAAQ,EACN,MAAM,SACR;EACA,SAAS;GACP,MAAM;GACN,sBAAsB,EAAE,MAAM,SAAS;GACvC,aAAa;EACf;EACA,SAAS,EACP,MAAM,CAAC,UAAU,OAAO,EAC1B;EACA,SAAS;GACP,MAAM;GACN,sBAAsB;GACtB,aACE;EACJ;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;EACA,UAAU,EACR,MAAM,yCACR;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"emailMessage.js","names":[],"sources":["../../.generated/schemas/emailMessage.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const emailMessageSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"emailMessage.json\",\n title: \"Email Message\",\n type: \"object\",\n required: [\"id\", \"type\", \"to\", \"from\", \"status\", \"subject\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n type: {\n type: \"string\",\n default: \"emailMessage\",\n enum: [\"emailMessage\"],\n },\n to: {\n type: \"string\",\n },\n from: {\n type: \"string\",\n description: \"Must be in the format of 'Sender <email@example.com>\",\n },\n subject: {\n type: \"string\",\n },\n status: {\n type: \"string\",\n enum: [\n \"queued\",\n \"sending\",\n \"sent\",\n \"deferred\",\n \"delivered\",\n \"undelivered\",\n \"bounced\",\n \"blocked\",\n \"receiving\",\n \"received\",\n \"opened\",\n \"clicked\",\n \"unsubscribed\",\n \"spamReport\",\n ],\n },\n statusMessage: {\n type: \"string\",\n },\n errorCode: {\n type: \"string\",\n description: \"Raw vendor delivery-failure code, e.g. Twilio 21610.\",\n },\n html: {\n type: \"string\",\n },\n text: {\n type: \"string\",\n },\n driver: {\n type: \"string\",\n },\n headers: {\n type: \"object\",\n additionalProperties: { type: \"string\" },\n description: \"Additional headers for the email message, key/value pairs\",\n },\n replyTo: {\n type: [\"string\", \"array\"],\n },\n appData: {\n type: \"object\",\n additionalProperties: true,\n description:\n \"Additional data for the email message, used for custom data\",\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 systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n },\n} as const;\n\nexport type EmailMessageSchema = FromSchema<\n typeof emailMessageSchema,\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":";AAGA,MAAa,qBAAqB;CAChC,SAAS;CACT,KAAK;CACL,OAAO;CACP,MAAM;CACN,UAAU;EAAC;EAAM;EAAQ;EAAM;EAAQ;EAAU;CAAS;CAC1D,sBAAsB;CACtB,YAAY;EACV,IAAI,EACF,MAAM,mCACR;EACA,YAAY;GACV,MAAM;GACN,aAAa;EACf;EACA,MAAM;GACJ,MAAM;GACN,SAAS;GACT,MAAM,CAAC,cAAc;EACvB;EACA,IAAI,EACF,MAAM,SACR;EACA,MAAM;GACJ,MAAM;GACN,aAAa;EACf;EACA,SAAS,EACP,MAAM,SACR;EACA,QAAQ;GACN,MAAM;GACN,MAAM;IACJ;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF;EACF;EACA,eAAe,EACb,MAAM,SACR;EACA,WAAW;GACT,MAAM;GACN,aAAa;EACf;EACA,MAAM,EACJ,MAAM,SACR;EACA,MAAM,EACJ,MAAM,SACR;EACA,QAAQ,EACN,MAAM,SACR;EACA,SAAS;GACP,MAAM;GACN,sBAAsB,EAAE,MAAM,SAAS;GACvC,aAAa;EACf;EACA,SAAS,EACP,MAAM,CAAC,UAAU,OAAO,EAC1B;EACA,SAAS;GACP,MAAM;GACN,sBAAsB;GACtB,aACE;EACJ;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;EACA,UAAU,EACR,MAAM,yCACR;CACF;AACF"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -30,10 +30,12 @@ export { policySchema, type PolicySchema } from "./policy.js";
|
|
|
30
30
|
export { productSchema, type ProductSchema } from "./product.js";
|
|
31
31
|
export { propertySchema, type PropertySchema } from "./property.js";
|
|
32
32
|
export { reservationSchema, type ReservationSchema } from "./reservation.js";
|
|
33
|
+
export { resourceSchema, type ResourceSchema } from "./resource.js";
|
|
33
34
|
export { serverSchema, type ServerSchema } from "./server.js";
|
|
34
35
|
export { sessionSchema, type SessionSchema } from "./session.js";
|
|
35
36
|
export { shortLinkSchema, type ShortLinkSchema } from "./shortLink.js";
|
|
36
37
|
export { smsMessageSchema, type SmsMessageSchema } from "./smsMessage.js";
|
|
38
|
+
export { sosEventSchema, type SOSEventSchema } from "./sosEvent.js";
|
|
37
39
|
export { sosTypeSchema, type SOSTypeSchema } from "./sosType.js";
|
|
38
40
|
export { spaceSchema, type SpaceSchema } from "./space.js";
|
|
39
41
|
export { switchSchema, type SwitchSchema } from "./switch.js";
|
package/dist/schemas/index.js
CHANGED
|
@@ -30,10 +30,12 @@ import { policySchema } from "./policy.js";
|
|
|
30
30
|
import { productSchema } from "./product.js";
|
|
31
31
|
import { propertySchema } from "./property.js";
|
|
32
32
|
import { reservationSchema } from "./reservation.js";
|
|
33
|
+
import { resourceSchema } from "./resource.js";
|
|
33
34
|
import { serverSchema } from "./server.js";
|
|
34
35
|
import { sessionSchema } from "./session.js";
|
|
35
36
|
import { shortLinkSchema } from "./shortLink.js";
|
|
36
37
|
import { smsMessageSchema } from "./smsMessage.js";
|
|
38
|
+
import { sosEventSchema } from "./sosEvent.js";
|
|
37
39
|
import { sosTypeSchema } from "./sosType.js";
|
|
38
40
|
import { spaceSchema } from "./space.js";
|
|
39
41
|
import { switchSchema } from "./switch.js";
|
|
@@ -45,4 +47,4 @@ import { timeSheetSchema } from "./timeSheet.js";
|
|
|
45
47
|
import { getters, userSchema } from "./user.js";
|
|
46
48
|
import { vendorSchema } from "./vendor.js";
|
|
47
49
|
import { windowCoveringSchema } from "./windowCovering.js";
|
|
48
|
-
export { alarmSchema, announcementSchema, automationSchema, billSchema, billingCategorySchema, cameraSchema, categorySchema, courtesySchema, credentialSchema, departmentSchema, dimmerSchema, discoveredDeviceSchema, emailMessageSchema, energyReportSchema, energyReportShardSchema, gatewaySchema, groupSchema, identificationSchema, integrationSchema, issueSchema, lockSchema, logSchema, methods as mediaFileMethods, mediaFileSchema, mediaSourceSchema, motionSensorSchema, notificationSchema, organizationSchema, paymentSchema, policySchema, productSchema, propertySchema, reservationSchema, serverSchema, sessionSchema, shortLinkSchema, smsMessageSchema, sosTypeSchema, spaceSchema, switchSchema, systemSchema, systemUserSchema, thermostatSchema, ticketSchema, timeSheetSchema, getters as userGetters, userSchema, vendorSchema, windowCoveringSchema };
|
|
50
|
+
export { alarmSchema, announcementSchema, automationSchema, billSchema, billingCategorySchema, cameraSchema, categorySchema, courtesySchema, credentialSchema, departmentSchema, dimmerSchema, discoveredDeviceSchema, emailMessageSchema, energyReportSchema, energyReportShardSchema, gatewaySchema, groupSchema, identificationSchema, integrationSchema, issueSchema, lockSchema, logSchema, methods as mediaFileMethods, mediaFileSchema, mediaSourceSchema, motionSensorSchema, notificationSchema, organizationSchema, paymentSchema, policySchema, productSchema, propertySchema, reservationSchema, resourceSchema, serverSchema, sessionSchema, shortLinkSchema, smsMessageSchema, sosEventSchema, sosTypeSchema, spaceSchema, switchSchema, systemSchema, systemUserSchema, thermostatSchema, ticketSchema, timeSheetSchema, getters as userGetters, userSchema, vendorSchema, windowCoveringSchema };
|
|
@@ -302,6 +302,25 @@ export declare const organizationSchema: {
|
|
|
302
302
|
};
|
|
303
303
|
};
|
|
304
304
|
};
|
|
305
|
+
readonly Resources: {
|
|
306
|
+
readonly type: "object";
|
|
307
|
+
readonly additionalProperties: false;
|
|
308
|
+
readonly properties: {
|
|
309
|
+
readonly categories: {
|
|
310
|
+
readonly type: "object";
|
|
311
|
+
readonly additionalProperties: false;
|
|
312
|
+
readonly properties: {
|
|
313
|
+
readonly order: {
|
|
314
|
+
readonly type: "array";
|
|
315
|
+
readonly description: string;
|
|
316
|
+
readonly items: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
};
|
|
305
324
|
};
|
|
306
325
|
};
|
|
307
326
|
readonly credentials: {
|
|
@@ -248,6 +248,19 @@ const organizationSchema = {
|
|
|
248
248
|
items: { type: "string" }
|
|
249
249
|
} }
|
|
250
250
|
} }
|
|
251
|
+
},
|
|
252
|
+
Resources: {
|
|
253
|
+
type: "object",
|
|
254
|
+
additionalProperties: false,
|
|
255
|
+
properties: { categories: {
|
|
256
|
+
type: "object",
|
|
257
|
+
additionalProperties: false,
|
|
258
|
+
properties: { order: {
|
|
259
|
+
type: "array",
|
|
260
|
+
description: "Org-wide curated Resource Category ID order, shared by every Property's view of the Resource Library. IDs for deleted Categories are ignored on read; Categories not yet listed sort to the end alphabetically.",
|
|
261
|
+
items: { type: "string" }
|
|
262
|
+
} }
|
|
263
|
+
} }
|
|
251
264
|
}
|
|
252
265
|
}
|
|
253
266
|
},
|