@periskope/types 0.6.63 → 0.6.65

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/types.ts CHANGED
@@ -254,3 +254,23 @@ export type PhoneRealtimeChannel = {
254
254
  error?: string;
255
255
  presence_ref?: string;
256
256
  };
257
+
258
+ /* ------------------------------- INTEGRATIONS ----------------------------- */
259
+
260
+
261
+ export type TicketLogType = OverrideProperties<Tables<'tbl_integration_logs'>, {
262
+ integration_name: IntegrationLogType.NEW_TICKET;
263
+ metadata: {
264
+ ticket_id: string;
265
+ };
266
+ }>;
267
+
268
+ export type IntegrationLogDetailsType = TicketLogType;
269
+
270
+ export enum IntegrationLogType {
271
+ NEW_TICKET = 'new_ticket',
272
+ }
273
+
274
+ export type LogTypeMap<T extends IntegrationLogType> = T extends IntegrationLogType.NEW_TICKET
275
+ ? TicketLogType
276
+ : Tables<'tbl_integration_logs'>;