@periskope/types 0.6.76 → 0.6.79

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/types.d.ts CHANGED
@@ -206,14 +206,15 @@ export declare enum IntegrationLogType {
206
206
  NEW_CHAT = "chat.created",
207
207
  NEW_MESSAGE = "message.created",
208
208
  MESSAGE_UPDATED = "message.updated",
209
+ MESSAGE_DELETED = "message.deleted",
209
210
  MESSAGE_ACK_UPDATED = "message.ack.updated",
210
211
  REACTION_CREATED = "reaction.created",
211
212
  REACTION_UPDATED = "reaction.updated",
212
- REACTION_DELETED = "reaction.deleted",
213
213
  NEW_TICKET = "ticket.created",
214
- TICKET_UPDATED = "ticket.updated"
214
+ TICKET_UPDATED = "ticket.updated",
215
+ TICKET_DELETED = "ticket.deleted"
215
216
  }
216
- export type IntegrationLogMetadataType<T extends IntegrationLogType> = T extends IntegrationLogType.NEW_TICKET | IntegrationLogType.TICKET_UPDATED ? TicketInfoType : T extends IntegrationLogType.NEW_CHAT ? Tables<'tbl_chats'> : T extends IntegrationLogType.NEW_MESSAGE | IntegrationLogType.MESSAGE_UPDATED | IntegrationLogType.MESSAGE_ACK_UPDATED ? Tables<'tbl_chat_messages'> : T extends IntegrationLogType.REACTION_CREATED | IntegrationLogType.REACTION_UPDATED | IntegrationLogType.REACTION_DELETED ? Tables<'tbl_chat_reactions'> : {
217
+ export type IntegrationLogMetadataType<T extends IntegrationLogType> = T extends IntegrationLogType.NEW_TICKET | IntegrationLogType.TICKET_UPDATED ? TicketInfoType : T extends IntegrationLogType.NEW_CHAT ? Tables<'tbl_chats'> : T extends IntegrationLogType.NEW_MESSAGE | IntegrationLogType.MESSAGE_UPDATED | IntegrationLogType.MESSAGE_DELETED | IntegrationLogType.MESSAGE_ACK_UPDATED ? Tables<'tbl_chat_messages'> : T extends IntegrationLogType.REACTION_CREATED | IntegrationLogType.REACTION_UPDATED ? Tables<'tbl_chat_reactions'> : {
217
218
  [key: string]: unknown;
218
219
  };
219
220
  export type IntegrationLogDetailsType<T extends IntegrationLogType> = OverrideProperties<Tables<'tbl_integration_logs'>, {
@@ -235,6 +236,9 @@ export type APIAuthDetails = {
235
236
  phone_details: Tables<'tbl_org_phones'> | null;
236
237
  token_details: Tables<'tbl_integration_tokens'> | null;
237
238
  };
239
+ export type WebhookDataType = OverrideProperties<Tables<'tbl_integration_hooks'>, {
240
+ integration_name: string[];
241
+ }>;
238
242
  export type UserPreferences = {
239
243
  theme: 'light' | 'dark';
240
244
  language: 'en' | 'es';
package/dist/types.js CHANGED
@@ -55,10 +55,11 @@ var IntegrationLogType;
55
55
  IntegrationLogType["NEW_CHAT"] = "chat.created";
56
56
  IntegrationLogType["NEW_MESSAGE"] = "message.created";
57
57
  IntegrationLogType["MESSAGE_UPDATED"] = "message.updated";
58
+ IntegrationLogType["MESSAGE_DELETED"] = "message.deleted";
58
59
  IntegrationLogType["MESSAGE_ACK_UPDATED"] = "message.ack.updated";
59
60
  IntegrationLogType["REACTION_CREATED"] = "reaction.created";
60
61
  IntegrationLogType["REACTION_UPDATED"] = "reaction.updated";
61
- IntegrationLogType["REACTION_DELETED"] = "reaction.deleted";
62
62
  IntegrationLogType["NEW_TICKET"] = "ticket.created";
63
63
  IntegrationLogType["TICKET_UPDATED"] = "ticket.updated";
64
+ IntegrationLogType["TICKET_DELETED"] = "ticket.deleted";
64
65
  })(IntegrationLogType || (exports.IntegrationLogType = IntegrationLogType = {}));
package/mod_json_type.ps1 CHANGED
@@ -1,15 +1,15 @@
1
- # Define the path to the TypeScript file
2
- $filePath = ".\supabase.types.ts"
3
-
4
- # Read the content of the file as a single string
5
- $fileContent = Get-Content $filePath -Raw
6
-
7
- # Define the current and new type definitions
8
- $oldTypeDefinition = 'export type Json =\s*\| string\s*\| number\s*\| boolean\s*\| null\s*\| \{ \[key: string\]: Json \| undefined \}\s*\| Json\[\]'
9
- $newTypeDefinition = 'export type Json = { [key: string]: any } | any'
10
-
11
- # Replace the old type definition with the new one
12
- $updatedContent = $fileContent -replace $oldTypeDefinition, $newTypeDefinition
13
-
14
- # Write the updated content back to the file
15
- $updatedContent | Set-Content $filePath
1
+ # Define the path to the TypeScript file
2
+ $filePath = ".\supabase.types.ts"
3
+
4
+ # Read the content of the file as a single string
5
+ $fileContent = Get-Content $filePath -Raw
6
+
7
+ # Define the current and new type definitions
8
+ $oldTypeDefinition = 'export type Json =\s*\| string\s*\| number\s*\| boolean\s*\| null\s*\| \{ \[key: string\]: Json \| undefined \}\s*\| Json\[\]'
9
+ $newTypeDefinition = 'export type Json = { [key: string]: any } | any'
10
+
11
+ # Replace the old type definition with the new one
12
+ $updatedContent = $fileContent -replace $oldTypeDefinition, $newTypeDefinition
13
+
14
+ # Write the updated content back to the file
15
+ $updatedContent | Set-Content $filePath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.76",
3
+ "version": "0.6.79",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",