@periskope/types 0.6.61 → 0.6.62

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.
@@ -111,6 +111,8 @@ export interface Database {
111
111
  chat_id: string;
112
112
  email: string;
113
113
  has_access: boolean | null;
114
+ is_archived: boolean;
115
+ is_muted: boolean;
114
116
  last_read_timestamp: string | null;
115
117
  org_id: string;
116
118
  };
@@ -119,6 +121,8 @@ export interface Database {
119
121
  chat_id: string;
120
122
  email: string;
121
123
  has_access?: boolean | null;
124
+ is_archived?: boolean;
125
+ is_muted?: boolean;
122
126
  last_read_timestamp?: string | null;
123
127
  org_id: string;
124
128
  };
@@ -127,10 +131,20 @@ export interface Database {
127
131
  chat_id?: string;
128
132
  email?: string;
129
133
  has_access?: boolean | null;
134
+ is_archived?: boolean;
135
+ is_muted?: boolean;
130
136
  last_read_timestamp?: string | null;
131
137
  org_id?: string;
132
138
  };
133
- Relationships: [];
139
+ Relationships: [
140
+ {
141
+ foreignKeyName: "tbl_chat_access_org_id_email_fkey";
142
+ columns: ["org_id", "email"];
143
+ isOneToOne: false;
144
+ referencedRelation: "tbl_org_members";
145
+ referencedColumns: ["org_id", "email"];
146
+ }
147
+ ];
134
148
  };
135
149
  tbl_chat_messages: {
136
150
  Row: {
@@ -146,6 +160,7 @@ export interface Database {
146
160
  forwarding_score: number | null;
147
161
  from: string | null;
148
162
  from_me: boolean | null;
163
+ frt_timestamp: string | null;
149
164
  has_media: boolean | null;
150
165
  has_quoted_msg: boolean | null;
151
166
  has_reaction: boolean | null;
@@ -153,6 +168,7 @@ export interface Database {
153
168
  invite_v4: Json | null;
154
169
  is_deleted: boolean | null;
155
170
  is_ephemeral: boolean | null;
171
+ is_flagged: boolean | null;
156
172
  is_forwarded: boolean | null;
157
173
  is_gif: boolean | null;
158
174
  is_starred: boolean | null;
@@ -194,6 +210,7 @@ export interface Database {
194
210
  forwarding_score?: number | null;
195
211
  from?: string | null;
196
212
  from_me?: boolean | null;
213
+ frt_timestamp?: string | null;
197
214
  has_media?: boolean | null;
198
215
  has_quoted_msg?: boolean | null;
199
216
  has_reaction?: boolean | null;
@@ -201,6 +218,7 @@ export interface Database {
201
218
  invite_v4?: Json | null;
202
219
  is_deleted?: boolean | null;
203
220
  is_ephemeral?: boolean | null;
221
+ is_flagged?: boolean | null;
204
222
  is_forwarded?: boolean | null;
205
223
  is_gif?: boolean | null;
206
224
  is_starred?: boolean | null;
@@ -242,6 +260,7 @@ export interface Database {
242
260
  forwarding_score?: number | null;
243
261
  from?: string | null;
244
262
  from_me?: boolean | null;
263
+ frt_timestamp?: string | null;
245
264
  has_media?: boolean | null;
246
265
  has_quoted_msg?: boolean | null;
247
266
  has_reaction?: boolean | null;
@@ -249,6 +268,7 @@ export interface Database {
249
268
  invite_v4?: Json | null;
250
269
  is_deleted?: boolean | null;
251
270
  is_ephemeral?: boolean | null;
271
+ is_flagged?: boolean | null;
252
272
  is_forwarded?: boolean | null;
253
273
  is_gif?: boolean | null;
254
274
  is_starred?: boolean | null;
@@ -434,7 +454,15 @@ export interface Database {
434
454
  timestamp?: string | null;
435
455
  unique_id?: string | null;
436
456
  };
437
- Relationships: [];
457
+ Relationships: [
458
+ {
459
+ foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
460
+ columns: ["org_id", "org_phone"];
461
+ isOneToOne: false;
462
+ referencedRelation: "tbl_org_phones";
463
+ referencedColumns: ["org_id", "org_phone"];
464
+ }
465
+ ];
438
466
  };
439
467
  tbl_chat_tickets: {
440
468
  Row: {
@@ -899,6 +927,30 @@ export interface Database {
899
927
  }
900
928
  ];
901
929
  };
930
+ tbl_tools_whatsapp_links: {
931
+ Row: {
932
+ created_at: string;
933
+ link_id: string;
934
+ link_name: string;
935
+ message: string | null;
936
+ phone: string;
937
+ };
938
+ Insert: {
939
+ created_at?: string;
940
+ link_id?: string;
941
+ link_name: string;
942
+ message?: string | null;
943
+ phone: string;
944
+ };
945
+ Update: {
946
+ created_at?: string;
947
+ link_id?: string;
948
+ link_name?: string;
949
+ message?: string | null;
950
+ phone?: string;
951
+ };
952
+ Relationships: [];
953
+ };
902
954
  };
903
955
  Views: {
904
956
  view_broadcast_logs: {
@@ -942,10 +994,13 @@ export interface Database {
942
994
  group_description: string | null;
943
995
  has_access: boolean | null;
944
996
  invite_link: string | null;
997
+ is_archived: boolean | null;
998
+ is_muted: boolean | null;
945
999
  label_ids: Json | null;
946
1000
  last_read_timestamp: string | null;
947
1001
  latest_message: Json | null;
948
1002
  member_count: number | null;
1003
+ members: Json | null;
949
1004
  org_id: string | null;
950
1005
  org_phone: string | null;
951
1006
  updated_at: string | null;
@@ -962,12 +1017,6 @@ export interface Database {
962
1017
  };
963
1018
  };
964
1019
  Functions: {
965
- custom_access_token_hook: {
966
- Args: {
967
- event: Json;
968
- };
969
- Returns: Json;
970
- };
971
1020
  gen_id: {
972
1021
  Args: {
973
1022
  prefix: string;
@@ -1040,7 +1089,7 @@ export interface Database {
1040
1089
  };
1041
1090
  get_org: {
1042
1091
  Args: {
1043
- org_id_input: string;
1092
+ org_id_input?: string;
1044
1093
  };
1045
1094
  Returns: Json;
1046
1095
  };
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
+ import { Chat, Location, MessageInfo } from '@periskope/whatsapp-web.js';
1
2
  import type { default as _Stripe } from 'stripe';
2
3
  import { Merge, OverrideProperties } from 'type-fest';
3
- import { Chat, Location, MessageInfo } from 'whatsapp-web.js';
4
4
  import { Tables } from './supabase.types';
5
5
  export type WhatsappChat = Chat & {
6
6
  groupMetadata?: any;
@@ -40,6 +40,11 @@ export type OrgType = OverrideProperties<Tables<'tbl_org'> & {
40
40
  phones: Tables<'tbl_org_phones'>[];
41
41
  labels: Tables<'tbl_org_labels'>[];
42
42
  custom_properties: Tables<'tbl_custom_properties'>[];
43
+ trial_details: {
44
+ pending_in_days: number;
45
+ pending_in_hours: number;
46
+ is_ended: boolean;
47
+ };
43
48
  }, {
44
49
  org_plan: OrgPlan<AllPlans | Enterprise>;
45
50
  stripe_customer_details: _Stripe.Customer | null;
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.61",
3
+ "version": "0.6.62",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "dependencies": {
8
+ "@periskope/whatsapp-web.js": "^1.23.1-alpha.5.5",
8
9
  "@types/pg": "8.11.2",
9
10
  "pg": "^8.11.3",
10
11
  "stripe": "^14.19.0",
11
12
  "ts-node": "^10.9.2",
12
- "type-fest": "^4.8.3",
13
- "whatsapp-web.js": "1.23.1-alpha.4"
13
+ "type-fest": "^4.8.3"
14
14
  },
15
15
  "scripts": {
16
16
  "update-package": "tsc \u0026\u0026 npm publish --access public"