@periskope/types 0.6.27 → 0.6.29
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 +85 -0
- package/dist/types.d.ts +4 -0
- package/package.json +1 -1
- package/supabase.types.ts +89 -0
- package/types.ts +4 -1
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;
|
|
@@ -456,6 +518,7 @@ export interface Database {
|
|
|
456
518
|
pinned: boolean | null;
|
|
457
519
|
timestamp: string | null;
|
|
458
520
|
unread_count: number | null;
|
|
521
|
+
updated_at: string;
|
|
459
522
|
};
|
|
460
523
|
Insert: {
|
|
461
524
|
archived?: boolean | null;
|
|
@@ -475,6 +538,7 @@ export interface Database {
|
|
|
475
538
|
pinned?: boolean | null;
|
|
476
539
|
timestamp?: string | null;
|
|
477
540
|
unread_count?: number | null;
|
|
541
|
+
updated_at?: string;
|
|
478
542
|
};
|
|
479
543
|
Update: {
|
|
480
544
|
archived?: boolean | null;
|
|
@@ -494,6 +558,7 @@ export interface Database {
|
|
|
494
558
|
pinned?: boolean | null;
|
|
495
559
|
timestamp?: string | null;
|
|
496
560
|
unread_count?: number | null;
|
|
561
|
+
updated_at?: string;
|
|
497
562
|
};
|
|
498
563
|
Relationships: [
|
|
499
564
|
{
|
|
@@ -529,6 +594,7 @@ export interface Database {
|
|
|
529
594
|
org_id: string;
|
|
530
595
|
pushname: string | null;
|
|
531
596
|
short_name: string | null;
|
|
597
|
+
updated_at: string | null;
|
|
532
598
|
verified_level: number | null;
|
|
533
599
|
verified_name: string | null;
|
|
534
600
|
};
|
|
@@ -555,6 +621,7 @@ export interface Database {
|
|
|
555
621
|
org_id: string;
|
|
556
622
|
pushname?: string | null;
|
|
557
623
|
short_name?: string | null;
|
|
624
|
+
updated_at?: string | null;
|
|
558
625
|
verified_level?: number | null;
|
|
559
626
|
verified_name?: string | null;
|
|
560
627
|
};
|
|
@@ -581,6 +648,7 @@ export interface Database {
|
|
|
581
648
|
org_id?: string;
|
|
582
649
|
pushname?: string | null;
|
|
583
650
|
short_name?: string | null;
|
|
651
|
+
updated_at?: string | null;
|
|
584
652
|
verified_level?: number | null;
|
|
585
653
|
verified_name?: string | null;
|
|
586
654
|
};
|
|
@@ -599,6 +667,7 @@ export interface Database {
|
|
|
599
667
|
created_at: string;
|
|
600
668
|
org_id: string;
|
|
601
669
|
org_image: string | null;
|
|
670
|
+
org_metadata: Json | null;
|
|
602
671
|
org_name: string | null;
|
|
603
672
|
support_link: string | null;
|
|
604
673
|
};
|
|
@@ -606,6 +675,7 @@ export interface Database {
|
|
|
606
675
|
created_at?: string;
|
|
607
676
|
org_id?: string;
|
|
608
677
|
org_image?: string | null;
|
|
678
|
+
org_metadata?: Json | null;
|
|
609
679
|
org_name?: string | null;
|
|
610
680
|
support_link?: string | null;
|
|
611
681
|
};
|
|
@@ -613,6 +683,7 @@ export interface Database {
|
|
|
613
683
|
created_at?: string;
|
|
614
684
|
org_id?: string;
|
|
615
685
|
org_image?: string | null;
|
|
686
|
+
org_metadata?: Json | null;
|
|
616
687
|
org_name?: string | null;
|
|
617
688
|
support_link?: string | null;
|
|
618
689
|
};
|
|
@@ -812,6 +883,7 @@ export interface Database {
|
|
|
812
883
|
pinned: boolean | null;
|
|
813
884
|
timestamp: string | null;
|
|
814
885
|
unread_count: number | null;
|
|
886
|
+
updated_at: string | null;
|
|
815
887
|
};
|
|
816
888
|
Relationships: [
|
|
817
889
|
{
|
|
@@ -833,6 +905,10 @@ export interface Database {
|
|
|
833
905
|
};
|
|
834
906
|
Returns: string;
|
|
835
907
|
};
|
|
908
|
+
gen_ticket_id: {
|
|
909
|
+
Args: Record<PropertyKey, never>;
|
|
910
|
+
Returns: string;
|
|
911
|
+
};
|
|
836
912
|
get_broadcast_id: {
|
|
837
913
|
Args: {
|
|
838
914
|
broadcast_id_input: string;
|
|
@@ -844,12 +920,20 @@ export interface Database {
|
|
|
844
920
|
Args: {
|
|
845
921
|
chat_id_input?: string[];
|
|
846
922
|
with_metadata?: boolean;
|
|
923
|
+
last_updated_at_input?: string;
|
|
847
924
|
};
|
|
848
925
|
Returns: Json;
|
|
849
926
|
};
|
|
850
927
|
get_contacts: {
|
|
851
928
|
Args: {
|
|
852
929
|
contact_ids_input?: string[];
|
|
930
|
+
last_updated_at_input?: string;
|
|
931
|
+
};
|
|
932
|
+
Returns: Json;
|
|
933
|
+
};
|
|
934
|
+
get_dashboard_statistics: {
|
|
935
|
+
Args: {
|
|
936
|
+
org_id_input?: string;
|
|
853
937
|
};
|
|
854
938
|
Returns: Json;
|
|
855
939
|
};
|
|
@@ -885,6 +969,7 @@ export interface Database {
|
|
|
885
969
|
};
|
|
886
970
|
Enums: {
|
|
887
971
|
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
972
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
888
973
|
enum_member_role: "admin" | "member";
|
|
889
974
|
};
|
|
890
975
|
CompositeTypes: {
|
package/dist/types.d.ts
CHANGED
|
@@ -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>;
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -170,6 +170,7 @@ export interface Database {
|
|
|
170
170
|
media_key: string | null
|
|
171
171
|
mentioned_ids: string[] | null
|
|
172
172
|
message_id: string
|
|
173
|
+
message_ticket_id: string | null
|
|
173
174
|
message_type: string | null
|
|
174
175
|
order_id: string | null
|
|
175
176
|
org_id: string
|
|
@@ -216,6 +217,7 @@ export interface Database {
|
|
|
216
217
|
media_key?: string | null
|
|
217
218
|
mentioned_ids?: string[] | null
|
|
218
219
|
message_id: string
|
|
220
|
+
message_ticket_id?: string | null
|
|
219
221
|
message_type?: string | null
|
|
220
222
|
order_id?: string | null
|
|
221
223
|
org_id: string
|
|
@@ -262,6 +264,7 @@ export interface Database {
|
|
|
262
264
|
media_key?: string | null
|
|
263
265
|
mentioned_ids?: string[] | null
|
|
264
266
|
message_id?: string
|
|
267
|
+
message_ticket_id?: string | null
|
|
265
268
|
message_type?: string | null
|
|
266
269
|
order_id?: string | null
|
|
267
270
|
org_id?: string
|
|
@@ -436,6 +439,69 @@ export interface Database {
|
|
|
436
439
|
}
|
|
437
440
|
]
|
|
438
441
|
}
|
|
442
|
+
tbl_chat_tickets: {
|
|
443
|
+
Row: {
|
|
444
|
+
assigned_by: string | null
|
|
445
|
+
assignee: string | null
|
|
446
|
+
chat_id: string
|
|
447
|
+
created_at: string
|
|
448
|
+
due_date: string | null
|
|
449
|
+
label_ids: Json | null
|
|
450
|
+
last_updated_at: string
|
|
451
|
+
org_id: string
|
|
452
|
+
priority: number | null
|
|
453
|
+
quoted_message_id: string
|
|
454
|
+
raised_by: string | null
|
|
455
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null
|
|
456
|
+
subject: string
|
|
457
|
+
ticket_id: string
|
|
458
|
+
}
|
|
459
|
+
Insert: {
|
|
460
|
+
assigned_by?: string | null
|
|
461
|
+
assignee?: string | null
|
|
462
|
+
chat_id: string
|
|
463
|
+
created_at?: string
|
|
464
|
+
due_date?: string | null
|
|
465
|
+
label_ids?: Json | null
|
|
466
|
+
last_updated_at?: string
|
|
467
|
+
org_id: string
|
|
468
|
+
priority?: number | null
|
|
469
|
+
quoted_message_id: string
|
|
470
|
+
raised_by?: string | null
|
|
471
|
+
status?:
|
|
472
|
+
| Database["public"]["Enums"]["enum_chat_tickets_status"]
|
|
473
|
+
| null
|
|
474
|
+
subject: string
|
|
475
|
+
ticket_id?: string
|
|
476
|
+
}
|
|
477
|
+
Update: {
|
|
478
|
+
assigned_by?: string | null
|
|
479
|
+
assignee?: string | null
|
|
480
|
+
chat_id?: string
|
|
481
|
+
created_at?: string
|
|
482
|
+
due_date?: string | null
|
|
483
|
+
label_ids?: Json | null
|
|
484
|
+
last_updated_at?: string
|
|
485
|
+
org_id?: string
|
|
486
|
+
priority?: number | null
|
|
487
|
+
quoted_message_id?: string
|
|
488
|
+
raised_by?: string | null
|
|
489
|
+
status?:
|
|
490
|
+
| Database["public"]["Enums"]["enum_chat_tickets_status"]
|
|
491
|
+
| null
|
|
492
|
+
subject?: string
|
|
493
|
+
ticket_id?: string
|
|
494
|
+
}
|
|
495
|
+
Relationships: [
|
|
496
|
+
{
|
|
497
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey"
|
|
498
|
+
columns: ["org_id"]
|
|
499
|
+
isOneToOne: false
|
|
500
|
+
referencedRelation: "tbl_org"
|
|
501
|
+
referencedColumns: ["org_id"]
|
|
502
|
+
}
|
|
503
|
+
]
|
|
504
|
+
}
|
|
439
505
|
tbl_chats: {
|
|
440
506
|
Row: {
|
|
441
507
|
archived: boolean | null
|
|
@@ -455,6 +521,7 @@ export interface Database {
|
|
|
455
521
|
pinned: boolean | null
|
|
456
522
|
timestamp: string | null
|
|
457
523
|
unread_count: number | null
|
|
524
|
+
updated_at: string
|
|
458
525
|
}
|
|
459
526
|
Insert: {
|
|
460
527
|
archived?: boolean | null
|
|
@@ -474,6 +541,7 @@ export interface Database {
|
|
|
474
541
|
pinned?: boolean | null
|
|
475
542
|
timestamp?: string | null
|
|
476
543
|
unread_count?: number | null
|
|
544
|
+
updated_at?: string
|
|
477
545
|
}
|
|
478
546
|
Update: {
|
|
479
547
|
archived?: boolean | null
|
|
@@ -493,6 +561,7 @@ export interface Database {
|
|
|
493
561
|
pinned?: boolean | null
|
|
494
562
|
timestamp?: string | null
|
|
495
563
|
unread_count?: number | null
|
|
564
|
+
updated_at?: string
|
|
496
565
|
}
|
|
497
566
|
Relationships: [
|
|
498
567
|
{
|
|
@@ -528,6 +597,7 @@ export interface Database {
|
|
|
528
597
|
org_id: string
|
|
529
598
|
pushname: string | null
|
|
530
599
|
short_name: string | null
|
|
600
|
+
updated_at: string | null
|
|
531
601
|
verified_level: number | null
|
|
532
602
|
verified_name: string | null
|
|
533
603
|
}
|
|
@@ -554,6 +624,7 @@ export interface Database {
|
|
|
554
624
|
org_id: string
|
|
555
625
|
pushname?: string | null
|
|
556
626
|
short_name?: string | null
|
|
627
|
+
updated_at?: string | null
|
|
557
628
|
verified_level?: number | null
|
|
558
629
|
verified_name?: string | null
|
|
559
630
|
}
|
|
@@ -580,6 +651,7 @@ export interface Database {
|
|
|
580
651
|
org_id?: string
|
|
581
652
|
pushname?: string | null
|
|
582
653
|
short_name?: string | null
|
|
654
|
+
updated_at?: string | null
|
|
583
655
|
verified_level?: number | null
|
|
584
656
|
verified_name?: string | null
|
|
585
657
|
}
|
|
@@ -598,6 +670,7 @@ export interface Database {
|
|
|
598
670
|
created_at: string
|
|
599
671
|
org_id: string
|
|
600
672
|
org_image: string | null
|
|
673
|
+
org_metadata: Json | null
|
|
601
674
|
org_name: string | null
|
|
602
675
|
support_link: string | null
|
|
603
676
|
}
|
|
@@ -605,6 +678,7 @@ export interface Database {
|
|
|
605
678
|
created_at?: string
|
|
606
679
|
org_id?: string
|
|
607
680
|
org_image?: string | null
|
|
681
|
+
org_metadata?: Json | null
|
|
608
682
|
org_name?: string | null
|
|
609
683
|
support_link?: string | null
|
|
610
684
|
}
|
|
@@ -612,6 +686,7 @@ export interface Database {
|
|
|
612
686
|
created_at?: string
|
|
613
687
|
org_id?: string
|
|
614
688
|
org_image?: string | null
|
|
689
|
+
org_metadata?: Json | null
|
|
615
690
|
org_name?: string | null
|
|
616
691
|
support_link?: string | null
|
|
617
692
|
}
|
|
@@ -811,6 +886,7 @@ export interface Database {
|
|
|
811
886
|
pinned: boolean | null
|
|
812
887
|
timestamp: string | null
|
|
813
888
|
unread_count: number | null
|
|
889
|
+
updated_at: string | null
|
|
814
890
|
}
|
|
815
891
|
Relationships: [
|
|
816
892
|
{
|
|
@@ -832,6 +908,10 @@ export interface Database {
|
|
|
832
908
|
}
|
|
833
909
|
Returns: string
|
|
834
910
|
}
|
|
911
|
+
gen_ticket_id: {
|
|
912
|
+
Args: Record<PropertyKey, never>
|
|
913
|
+
Returns: string
|
|
914
|
+
}
|
|
835
915
|
get_broadcast_id: {
|
|
836
916
|
Args: {
|
|
837
917
|
broadcast_id_input: string
|
|
@@ -843,12 +923,20 @@ export interface Database {
|
|
|
843
923
|
Args: {
|
|
844
924
|
chat_id_input?: string[]
|
|
845
925
|
with_metadata?: boolean
|
|
926
|
+
last_updated_at_input?: string
|
|
846
927
|
}
|
|
847
928
|
Returns: Json
|
|
848
929
|
}
|
|
849
930
|
get_contacts: {
|
|
850
931
|
Args: {
|
|
851
932
|
contact_ids_input?: string[]
|
|
933
|
+
last_updated_at_input?: string
|
|
934
|
+
}
|
|
935
|
+
Returns: Json
|
|
936
|
+
}
|
|
937
|
+
get_dashboard_statistics: {
|
|
938
|
+
Args: {
|
|
939
|
+
org_id_input?: string
|
|
852
940
|
}
|
|
853
941
|
Returns: Json
|
|
854
942
|
}
|
|
@@ -899,6 +987,7 @@ export interface Database {
|
|
|
899
987
|
| "#DC2626"
|
|
900
988
|
| "#FF2E74"
|
|
901
989
|
| "#DB2777"
|
|
990
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived"
|
|
902
991
|
enum_member_role: "admin" | "member"
|
|
903
992
|
}
|
|
904
993
|
CompositeTypes: {
|
package/types.ts
CHANGED
|
@@ -53,7 +53,9 @@ export type MessageType = OverrideProperties<
|
|
|
53
53
|
media: MediaType | null;
|
|
54
54
|
}
|
|
55
55
|
>;
|
|
56
|
-
|
|
56
|
+
export type TicketType = OverrideProperties<Tables<'tbl_chat_tickets'>, {
|
|
57
|
+
label_ids: Record<string, boolean>;
|
|
58
|
+
}>
|
|
57
59
|
export type ContactType = Merge<
|
|
58
60
|
Tables<'tbl_contacts'>,
|
|
59
61
|
{
|
|
@@ -120,6 +122,7 @@ export type SendMessageContent = {
|
|
|
120
122
|
quoted_message_id?: string;
|
|
121
123
|
quoted_message_type?: 'reply' | 'forward' | 'reply_private';
|
|
122
124
|
broadcast_id?: string;
|
|
125
|
+
performed_by?: string;
|
|
123
126
|
variables?: Record<string, VariableType>;
|
|
124
127
|
};
|
|
125
128
|
|