@periskope/types 0.6.77 → 0.6.80
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/supabase.types.d.ts +242 -273
- package/dist/types.d.ts +7 -3
- package/dist/types.js +2 -1
- package/mod_json_type.ps1 +15 -15
- package/package.json +2 -2
- package/supabase.types.ts +1581 -1616
- package/tsconfig.json +105 -105
- package/types.ts +11 -3
- package/update_package.ps1 +21 -21
- package/dist/supabase.columns.d.ts +0 -18
- package/dist/supabase.columns.js +0 -291
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
|
|
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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@periskope/types",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.80",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@periskope/whatsapp-web.js": "
|
|
8
|
+
"@periskope/whatsapp-web.js": "1.23.1-alpha.exodus.7",
|
|
9
9
|
"@types/pg": "8.11.2",
|
|
10
10
|
"pg": "^8.11.3",
|
|
11
11
|
"stripe": "^14.19.0",
|