@periskope/types 0.6.63 → 0.6.64
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 +153 -0
- package/package.json +16 -16
- package/supabase.types.ts +1555 -1402
package/dist/supabase.types.d.ts
CHANGED
|
@@ -739,6 +739,138 @@ export interface Database {
|
|
|
739
739
|
}
|
|
740
740
|
];
|
|
741
741
|
};
|
|
742
|
+
tbl_integration_hooks: {
|
|
743
|
+
Row: {
|
|
744
|
+
hook_url: string;
|
|
745
|
+
id: string;
|
|
746
|
+
integration_id: string | null;
|
|
747
|
+
integration_metadata: Json;
|
|
748
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
749
|
+
integration_type: string;
|
|
750
|
+
is_subscribed: boolean;
|
|
751
|
+
org_id: string;
|
|
752
|
+
subscribed_at: string;
|
|
753
|
+
type: string;
|
|
754
|
+
};
|
|
755
|
+
Insert: {
|
|
756
|
+
hook_url: string;
|
|
757
|
+
id?: string;
|
|
758
|
+
integration_id?: string | null;
|
|
759
|
+
integration_metadata: Json;
|
|
760
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
761
|
+
integration_type: string;
|
|
762
|
+
is_subscribed: boolean;
|
|
763
|
+
org_id: string;
|
|
764
|
+
subscribed_at?: string;
|
|
765
|
+
type: string;
|
|
766
|
+
};
|
|
767
|
+
Update: {
|
|
768
|
+
hook_url?: string;
|
|
769
|
+
id?: string;
|
|
770
|
+
integration_id?: string | null;
|
|
771
|
+
integration_metadata?: Json;
|
|
772
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
773
|
+
integration_type?: string;
|
|
774
|
+
is_subscribed?: boolean;
|
|
775
|
+
org_id?: string;
|
|
776
|
+
subscribed_at?: string;
|
|
777
|
+
type?: string;
|
|
778
|
+
};
|
|
779
|
+
Relationships: [
|
|
780
|
+
{
|
|
781
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
782
|
+
columns: ["org_id"];
|
|
783
|
+
isOneToOne: false;
|
|
784
|
+
referencedRelation: "tbl_org";
|
|
785
|
+
referencedColumns: ["org_id"];
|
|
786
|
+
}
|
|
787
|
+
];
|
|
788
|
+
};
|
|
789
|
+
tbl_integration_logs: {
|
|
790
|
+
Row: {
|
|
791
|
+
created_at: string;
|
|
792
|
+
id: string;
|
|
793
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
794
|
+
integration_type: string;
|
|
795
|
+
metadata: Json;
|
|
796
|
+
org_id: string;
|
|
797
|
+
success: boolean;
|
|
798
|
+
type: string;
|
|
799
|
+
};
|
|
800
|
+
Insert: {
|
|
801
|
+
created_at?: string;
|
|
802
|
+
id?: string;
|
|
803
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
804
|
+
integration_type: string;
|
|
805
|
+
metadata?: Json;
|
|
806
|
+
org_id: string;
|
|
807
|
+
success?: boolean;
|
|
808
|
+
type: string;
|
|
809
|
+
};
|
|
810
|
+
Update: {
|
|
811
|
+
created_at?: string;
|
|
812
|
+
id?: string;
|
|
813
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
814
|
+
integration_type?: string;
|
|
815
|
+
metadata?: Json;
|
|
816
|
+
org_id?: string;
|
|
817
|
+
success?: boolean;
|
|
818
|
+
type?: string;
|
|
819
|
+
};
|
|
820
|
+
Relationships: [
|
|
821
|
+
{
|
|
822
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
823
|
+
columns: ["org_id"];
|
|
824
|
+
isOneToOne: false;
|
|
825
|
+
referencedRelation: "tbl_org";
|
|
826
|
+
referencedColumns: ["org_id"];
|
|
827
|
+
}
|
|
828
|
+
];
|
|
829
|
+
};
|
|
830
|
+
tbl_integration_tokens: {
|
|
831
|
+
Row: {
|
|
832
|
+
exp: string;
|
|
833
|
+
iat: string;
|
|
834
|
+
id: string;
|
|
835
|
+
is_revealed: boolean;
|
|
836
|
+
name: string;
|
|
837
|
+
org_id: string;
|
|
838
|
+
role: string;
|
|
839
|
+
token: string;
|
|
840
|
+
type: string;
|
|
841
|
+
};
|
|
842
|
+
Insert: {
|
|
843
|
+
exp: string;
|
|
844
|
+
iat: string;
|
|
845
|
+
id?: string;
|
|
846
|
+
is_revealed?: boolean;
|
|
847
|
+
name: string;
|
|
848
|
+
org_id: string;
|
|
849
|
+
role: string;
|
|
850
|
+
token: string;
|
|
851
|
+
type: string;
|
|
852
|
+
};
|
|
853
|
+
Update: {
|
|
854
|
+
exp?: string;
|
|
855
|
+
iat?: string;
|
|
856
|
+
id?: string;
|
|
857
|
+
is_revealed?: boolean;
|
|
858
|
+
name?: string;
|
|
859
|
+
org_id?: string;
|
|
860
|
+
role?: string;
|
|
861
|
+
token?: string;
|
|
862
|
+
type?: string;
|
|
863
|
+
};
|
|
864
|
+
Relationships: [
|
|
865
|
+
{
|
|
866
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
867
|
+
columns: ["org_id"];
|
|
868
|
+
isOneToOne: false;
|
|
869
|
+
referencedRelation: "tbl_org";
|
|
870
|
+
referencedColumns: ["org_id"];
|
|
871
|
+
}
|
|
872
|
+
];
|
|
873
|
+
};
|
|
742
874
|
tbl_org: {
|
|
743
875
|
Row: {
|
|
744
876
|
created_at: string;
|
|
@@ -873,6 +1005,7 @@ export interface Database {
|
|
|
873
1005
|
tbl_org_phones: {
|
|
874
1006
|
Row: {
|
|
875
1007
|
created_at: string;
|
|
1008
|
+
first_connected_at: string | null;
|
|
876
1009
|
is_ready: boolean | null;
|
|
877
1010
|
org_id: string;
|
|
878
1011
|
org_phone: string | null;
|
|
@@ -886,6 +1019,7 @@ export interface Database {
|
|
|
886
1019
|
};
|
|
887
1020
|
Insert: {
|
|
888
1021
|
created_at?: string;
|
|
1022
|
+
first_connected_at?: string | null;
|
|
889
1023
|
is_ready?: boolean | null;
|
|
890
1024
|
org_id: string;
|
|
891
1025
|
org_phone?: string | null;
|
|
@@ -899,6 +1033,7 @@ export interface Database {
|
|
|
899
1033
|
};
|
|
900
1034
|
Update: {
|
|
901
1035
|
created_at?: string;
|
|
1036
|
+
first_connected_at?: string | null;
|
|
902
1037
|
is_ready?: boolean | null;
|
|
903
1038
|
org_id?: string;
|
|
904
1039
|
org_phone?: string | null;
|
|
@@ -1031,6 +1166,14 @@ export interface Database {
|
|
|
1031
1166
|
};
|
|
1032
1167
|
Returns: string;
|
|
1033
1168
|
};
|
|
1169
|
+
generate_access_token: {
|
|
1170
|
+
Args: {
|
|
1171
|
+
name_input?: string;
|
|
1172
|
+
type_input?: string;
|
|
1173
|
+
org_id_input?: string;
|
|
1174
|
+
};
|
|
1175
|
+
Returns: Json;
|
|
1176
|
+
};
|
|
1034
1177
|
get_broadcast_id: {
|
|
1035
1178
|
Args: {
|
|
1036
1179
|
broadcast_id_input: string;
|
|
@@ -1093,6 +1236,15 @@ export interface Database {
|
|
|
1093
1236
|
};
|
|
1094
1237
|
Returns: Json;
|
|
1095
1238
|
};
|
|
1239
|
+
get_ticket_info: {
|
|
1240
|
+
Args: {
|
|
1241
|
+
ticket_id_input?: string;
|
|
1242
|
+
org_id_input?: string;
|
|
1243
|
+
chat_id_input?: string;
|
|
1244
|
+
unique_message_id_input?: string;
|
|
1245
|
+
};
|
|
1246
|
+
Returns: Json;
|
|
1247
|
+
};
|
|
1096
1248
|
list_org_from_user: {
|
|
1097
1249
|
Args: Record<PropertyKey, never>;
|
|
1098
1250
|
Returns: unknown;
|
|
@@ -1115,6 +1267,7 @@ export interface Database {
|
|
|
1115
1267
|
Enums: {
|
|
1116
1268
|
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
1117
1269
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
1270
|
+
enum_integration_name: "new_ticket";
|
|
1118
1271
|
enum_member_role: "admin" | "member";
|
|
1119
1272
|
};
|
|
1120
1273
|
CompositeTypes: {
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"name": "@periskope/types",
|
|
3
|
+
"version": "0.6.64",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@periskope/whatsapp-web.js": "^1.23.1-alpha.5.8",
|
|
9
|
+
"@types/pg": "8.11.2",
|
|
10
|
+
"pg": "^8.11.3",
|
|
11
|
+
"stripe": "^14.19.0",
|
|
12
|
+
"ts-node": "^10.9.2",
|
|
13
|
+
"type-fest": "^4.8.3"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"update-package": "tsc \u0026\u0026 npm publish --access public"
|
|
17
|
+
}
|
|
18
18
|
}
|