@periskope/types 0.6.18 → 0.6.22
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 +1 -7
- package/package.json +12 -12
- package/supabase.types.ts +1127 -1127
- package/types.ts +1 -15
- package/update_package.ps1 +21 -0
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Merge, OverrideProperties } from 'type-fest';
|
|
2
2
|
import { Chat, MessageTypes } from 'whatsapp-web.js';
|
|
3
|
-
import { Tables
|
|
3
|
+
import { Tables } from './supabase.types';
|
|
4
4
|
export type WhatsappChat = Chat & {
|
|
5
5
|
groupMetadata?: any;
|
|
6
6
|
pinned?: boolean;
|
|
@@ -38,12 +38,6 @@ export type ContactType = Merge<Tables<'tbl_contacts'>, {
|
|
|
38
38
|
chat_ids: string[] | null;
|
|
39
39
|
}>;
|
|
40
40
|
export type ChatAccessType = Merge<Partial<Tables<'tbl_chat_access'>>, Tables<'tbl_org_members'>>;
|
|
41
|
-
export type BroadcastMessageType = Merge<TablesInsert<'tbl_broadcast_messages'>, {
|
|
42
|
-
message_payload?: SendMessageContent;
|
|
43
|
-
}>;
|
|
44
|
-
export type BroadcastTemplateType = Merge<TablesInsert<'tbl_broadcast_templates'>, {
|
|
45
|
-
message_payload?: SendMessageContent;
|
|
46
|
-
}>;
|
|
47
41
|
export declare const labelColors: string[];
|
|
48
42
|
export declare const enumChatColors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
|
49
43
|
export type SendMessageContent = {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
"name": "@periskope/types",
|
|
3
|
+
"version": "0.6.22",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"type-fest": "^4.8.3",
|
|
9
|
+
"whatsapp-web.js": "^1.23.0"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"update-package": "tsc \u0026\u0026 npm publish --access public"
|
|
13
|
+
}
|
|
14
14
|
}
|