@periskope/types 0.6.26 → 0.6.28
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 +80 -4
- package/dist/types.d.ts +15 -1
- package/package.json +1 -1
- package/supabase.types.ts +1239 -1159
- package/types.ts +18 -2
package/dist/supabase.types.d.ts
CHANGED
|
@@ -171,6 +171,7 @@ export interface Database {
|
|
|
171
171
|
media_key: string | null;
|
|
172
172
|
mentioned_ids: string[] | null;
|
|
173
173
|
message_id: string;
|
|
174
|
+
message_ticket_id: string | null;
|
|
174
175
|
message_type: string | null;
|
|
175
176
|
order_id: string | null;
|
|
176
177
|
org_id: string;
|
|
@@ -217,6 +218,7 @@ export interface Database {
|
|
|
217
218
|
media_key?: string | null;
|
|
218
219
|
mentioned_ids?: string[] | null;
|
|
219
220
|
message_id: string;
|
|
221
|
+
message_ticket_id?: string | null;
|
|
220
222
|
message_type?: string | null;
|
|
221
223
|
order_id?: string | null;
|
|
222
224
|
org_id: string;
|
|
@@ -263,6 +265,7 @@ export interface Database {
|
|
|
263
265
|
media_key?: string | null;
|
|
264
266
|
mentioned_ids?: string[] | null;
|
|
265
267
|
message_id?: string;
|
|
268
|
+
message_ticket_id?: string | null;
|
|
266
269
|
message_type?: string | null;
|
|
267
270
|
order_id?: string | null;
|
|
268
271
|
org_id?: string;
|
|
@@ -437,6 +440,65 @@ export interface Database {
|
|
|
437
440
|
}
|
|
438
441
|
];
|
|
439
442
|
};
|
|
443
|
+
tbl_chat_tickets: {
|
|
444
|
+
Row: {
|
|
445
|
+
assigned_by: string | null;
|
|
446
|
+
assignee: string | null;
|
|
447
|
+
chat_id: string;
|
|
448
|
+
created_at: string;
|
|
449
|
+
due_date: string | null;
|
|
450
|
+
label_ids: Json | null;
|
|
451
|
+
last_updated_at: string;
|
|
452
|
+
org_id: string;
|
|
453
|
+
priority: number | null;
|
|
454
|
+
quoted_message_id: string;
|
|
455
|
+
raised_by: string | null;
|
|
456
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
457
|
+
subject: string;
|
|
458
|
+
ticket_id: string;
|
|
459
|
+
};
|
|
460
|
+
Insert: {
|
|
461
|
+
assigned_by?: string | null;
|
|
462
|
+
assignee?: string | null;
|
|
463
|
+
chat_id: string;
|
|
464
|
+
created_at?: string;
|
|
465
|
+
due_date?: string | null;
|
|
466
|
+
label_ids?: Json | null;
|
|
467
|
+
last_updated_at?: string;
|
|
468
|
+
org_id: string;
|
|
469
|
+
priority?: number | null;
|
|
470
|
+
quoted_message_id: string;
|
|
471
|
+
raised_by?: string | null;
|
|
472
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
473
|
+
subject: string;
|
|
474
|
+
ticket_id?: string;
|
|
475
|
+
};
|
|
476
|
+
Update: {
|
|
477
|
+
assigned_by?: string | null;
|
|
478
|
+
assignee?: string | null;
|
|
479
|
+
chat_id?: string;
|
|
480
|
+
created_at?: string;
|
|
481
|
+
due_date?: string | null;
|
|
482
|
+
label_ids?: Json | null;
|
|
483
|
+
last_updated_at?: string;
|
|
484
|
+
org_id?: string;
|
|
485
|
+
priority?: number | null;
|
|
486
|
+
quoted_message_id?: string;
|
|
487
|
+
raised_by?: string | null;
|
|
488
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
489
|
+
subject?: string;
|
|
490
|
+
ticket_id?: string;
|
|
491
|
+
};
|
|
492
|
+
Relationships: [
|
|
493
|
+
{
|
|
494
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
495
|
+
columns: ["org_id"];
|
|
496
|
+
isOneToOne: false;
|
|
497
|
+
referencedRelation: "tbl_org";
|
|
498
|
+
referencedColumns: ["org_id"];
|
|
499
|
+
}
|
|
500
|
+
];
|
|
501
|
+
};
|
|
440
502
|
tbl_chats: {
|
|
441
503
|
Row: {
|
|
442
504
|
archived: boolean | null;
|
|
@@ -762,15 +824,17 @@ export interface Database {
|
|
|
762
824
|
view_broadcast_logs: {
|
|
763
825
|
Row: {
|
|
764
826
|
broadcast_id: string | null;
|
|
765
|
-
|
|
827
|
+
completed_at: string | null;
|
|
828
|
+
delivered_member_count: number | null;
|
|
766
829
|
failed_chats: number | null;
|
|
767
830
|
message_payload: Json | null;
|
|
768
831
|
org_id: string | null;
|
|
769
|
-
|
|
832
|
+
read_member_count: number | null;
|
|
833
|
+
scheduled_at: string | null;
|
|
770
834
|
sent_chats: number | null;
|
|
771
|
-
|
|
772
|
-
total: number | null;
|
|
835
|
+
status: string | null;
|
|
773
836
|
total_chats: number | null;
|
|
837
|
+
total_member_count: number | null;
|
|
774
838
|
};
|
|
775
839
|
Relationships: [
|
|
776
840
|
{
|
|
@@ -831,6 +895,17 @@ export interface Database {
|
|
|
831
895
|
};
|
|
832
896
|
Returns: string;
|
|
833
897
|
};
|
|
898
|
+
gen_ticket_id: {
|
|
899
|
+
Args: Record<PropertyKey, never>;
|
|
900
|
+
Returns: string;
|
|
901
|
+
};
|
|
902
|
+
get_broadcast_id: {
|
|
903
|
+
Args: {
|
|
904
|
+
broadcast_id_input: string;
|
|
905
|
+
chat_id_input?: string;
|
|
906
|
+
};
|
|
907
|
+
Returns: Json;
|
|
908
|
+
};
|
|
834
909
|
get_chats: {
|
|
835
910
|
Args: {
|
|
836
911
|
chat_id_input?: string[];
|
|
@@ -876,6 +951,7 @@ export interface Database {
|
|
|
876
951
|
};
|
|
877
952
|
Enums: {
|
|
878
953
|
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
954
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
879
955
|
enum_member_role: "admin" | "member";
|
|
880
956
|
};
|
|
881
957
|
CompositeTypes: {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Merge, OverrideProperties } from 'type-fest';
|
|
2
|
-
import { Chat, Location, MessageTypes } from 'whatsapp-web.js';
|
|
2
|
+
import { Chat, Location, MessageInfo, MessageTypes } from 'whatsapp-web.js';
|
|
3
3
|
import { Tables } from './supabase.types';
|
|
4
4
|
export type WhatsappChat = Chat & {
|
|
5
5
|
groupMetadata?: any;
|
|
@@ -32,6 +32,9 @@ export type MessageType = OverrideProperties<Tables<'tbl_chat_messages'>, {
|
|
|
32
32
|
message_type: MessageTypes;
|
|
33
33
|
media: MediaType | null;
|
|
34
34
|
}>;
|
|
35
|
+
export type TicketType = OverrideProperties<Tables<'tbl_chat_tickets'>, {
|
|
36
|
+
label_ids: Record<string, boolean>;
|
|
37
|
+
}>;
|
|
35
38
|
export type ContactType = Merge<Tables<'tbl_contacts'>, {
|
|
36
39
|
chats: ChatType[] | null;
|
|
37
40
|
chat_count: number | null;
|
|
@@ -53,6 +56,7 @@ export type SendMessageContent = {
|
|
|
53
56
|
quoted_message_id?: string;
|
|
54
57
|
quoted_message_type?: 'reply' | 'forward' | 'reply_private';
|
|
55
58
|
broadcast_id?: string;
|
|
59
|
+
performed_by?: string;
|
|
56
60
|
variables?: Record<string, VariableType>;
|
|
57
61
|
};
|
|
58
62
|
export type VariableType = Record<string, string>;
|
|
@@ -64,3 +68,13 @@ export type SingleMessagePayload = SendMessageContent & {
|
|
|
64
68
|
chat_id: string;
|
|
65
69
|
job_id?: string;
|
|
66
70
|
};
|
|
71
|
+
export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
72
|
+
logs: {
|
|
73
|
+
chat_id: string;
|
|
74
|
+
message_id: string | null;
|
|
75
|
+
read_count: number | null;
|
|
76
|
+
total_count: number | null;
|
|
77
|
+
delivery_info: MessageInfo | null;
|
|
78
|
+
delivered_count: number | null;
|
|
79
|
+
};
|
|
80
|
+
};
|