@periskope/types 0.6.227 → 0.6.229
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/rules.types.d.ts +15 -1
- package/dist/rules.types.d.ts.map +1 -1
- package/dist/rules.types.js +40 -0
- package/dist/supabase.types.d.ts +29 -1
- package/dist/supabase.types.d.ts.map +1 -1
- package/mod_json_type.sh +0 -0
- package/package.json +19 -19
- package/src/rules.types.ts +57 -1
- package/src/supabase.types.ts +30 -2
- package/tsconfig.tsbuildinfo +1 -0
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name":
|
|
3
|
-
"version":
|
|
4
|
-
"private":
|
|
5
|
-
"main":
|
|
6
|
-
"types":
|
|
7
|
-
"dependencies":
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"scripts":
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@periskope/types",
|
|
3
|
+
"version": "0.6.229",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@types/pg": "8.11.2",
|
|
9
|
+
"pg": "^8.11.3",
|
|
10
|
+
"stripe": "^14.19.0",
|
|
11
|
+
"ts-node": "^10.9.2",
|
|
12
|
+
"type-fest": "^4.8.3"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "tsc --watch",
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"update-package": "tsc && npm publish --access public"
|
|
18
|
+
}
|
|
19
|
+
}
|
package/src/rules.types.ts
CHANGED
|
@@ -962,6 +962,21 @@ export type CloseChatAction = {
|
|
|
962
962
|
metadata: {};
|
|
963
963
|
};
|
|
964
964
|
|
|
965
|
+
export type SendMessageToChatAction = {
|
|
966
|
+
id: string;
|
|
967
|
+
type: 'send_message_to_chat';
|
|
968
|
+
delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
|
|
969
|
+
metadata: {
|
|
970
|
+
chat_id: string;
|
|
971
|
+
message: string;
|
|
972
|
+
media?: {
|
|
973
|
+
url: string;
|
|
974
|
+
type: 'image' | 'video' | 'audio' | 'document';
|
|
975
|
+
name: string;
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
|
|
965
980
|
export type Action =
|
|
966
981
|
| SendMessageAction
|
|
967
982
|
| NotifyHttpAction
|
|
@@ -979,7 +994,8 @@ export type Action =
|
|
|
979
994
|
| DeleteMessageAction
|
|
980
995
|
| SendSlackNotificationAction
|
|
981
996
|
| AttachMessageToTicketAction
|
|
982
|
-
| CloseChatAction
|
|
997
|
+
| CloseChatAction
|
|
998
|
+
| SendMessageToChatAction;
|
|
983
999
|
|
|
984
1000
|
export const isSendMessageOrReplyToMessageAction = (
|
|
985
1001
|
action: Action
|
|
@@ -1665,6 +1681,46 @@ export const ActionNameMap: Record<
|
|
|
1665
1681
|
},
|
|
1666
1682
|
},
|
|
1667
1683
|
},
|
|
1684
|
+
send_message_to_chat: {
|
|
1685
|
+
title: 'Send Message To Chat',
|
|
1686
|
+
description: 'Send a message to a specified chat',
|
|
1687
|
+
inputs: {
|
|
1688
|
+
chat_id: {
|
|
1689
|
+
id: 'chat_id',
|
|
1690
|
+
type: 'dropdown',
|
|
1691
|
+
value: 'org.chats',
|
|
1692
|
+
label: 'Chat',
|
|
1693
|
+
placeholder: 'Select chat',
|
|
1694
|
+
required: true,
|
|
1695
|
+
},
|
|
1696
|
+
message: {
|
|
1697
|
+
id: 'message',
|
|
1698
|
+
type: 'editor',
|
|
1699
|
+
label: 'Message',
|
|
1700
|
+
placeholder: 'Enter message',
|
|
1701
|
+
value: null,
|
|
1702
|
+
required: true,
|
|
1703
|
+
},
|
|
1704
|
+
media: {
|
|
1705
|
+
id: 'media',
|
|
1706
|
+
type: 'file',
|
|
1707
|
+
label: 'Media',
|
|
1708
|
+
placeholder: 'Upload media',
|
|
1709
|
+
value: null,
|
|
1710
|
+
required: false,
|
|
1711
|
+
},
|
|
1712
|
+
},
|
|
1713
|
+
validTriggers: [
|
|
1714
|
+
'message.created',
|
|
1715
|
+
'message.updated',
|
|
1716
|
+
'chat.created',
|
|
1717
|
+
'ticket.updated',
|
|
1718
|
+
'ticket.created',
|
|
1719
|
+
'reaction.added',
|
|
1720
|
+
'message.flagged',
|
|
1721
|
+
'chat.label.updated',
|
|
1722
|
+
],
|
|
1723
|
+
},
|
|
1668
1724
|
};
|
|
1669
1725
|
|
|
1670
1726
|
type editorVariablesList =
|
package/src/supabase.types.ts
CHANGED
|
@@ -2581,7 +2581,35 @@ export type Database = {
|
|
|
2581
2581
|
sync_unread_count?: boolean
|
|
2582
2582
|
email_input?: string
|
|
2583
2583
|
}
|
|
2584
|
-
Returns:
|
|
2584
|
+
Returns: {
|
|
2585
|
+
archived: boolean | null
|
|
2586
|
+
chat_id: string
|
|
2587
|
+
chat_image: string | null
|
|
2588
|
+
chat_name: string | null
|
|
2589
|
+
chat_type: string | null
|
|
2590
|
+
created_at: string
|
|
2591
|
+
created_by: string | null
|
|
2592
|
+
group_metadata: Json | null
|
|
2593
|
+
id: Json | null
|
|
2594
|
+
initiated_by: string | null
|
|
2595
|
+
invite_link: string | null
|
|
2596
|
+
is_exited: boolean | null
|
|
2597
|
+
is_group: boolean | null
|
|
2598
|
+
is_muted: boolean | null
|
|
2599
|
+
is_read_only: boolean | null
|
|
2600
|
+
latest_message: Json | null
|
|
2601
|
+
member_count: number | null
|
|
2602
|
+
member_unread_count: Json | null
|
|
2603
|
+
mute_expiration: number | null
|
|
2604
|
+
name: string | null
|
|
2605
|
+
org_id: string
|
|
2606
|
+
org_phone: string
|
|
2607
|
+
pinned: boolean | null
|
|
2608
|
+
pinned_messages: Json | null
|
|
2609
|
+
timestamp: string | null
|
|
2610
|
+
unread_count: number | null
|
|
2611
|
+
updated_at: string
|
|
2612
|
+
}[]
|
|
2585
2613
|
}
|
|
2586
2614
|
update_custom_properties: {
|
|
2587
2615
|
Args: {
|
|
@@ -3246,4 +3274,4 @@ export const Constants = {
|
|
|
3246
3274
|
},
|
|
3247
3275
|
} as const
|
|
3248
3276
|
|
|
3249
|
-
|
|
3277
|
+
|