@periskope/types 0.6.114 → 0.6.116

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.
@@ -238,41 +238,6 @@ export type Database = {
238
238
  }
239
239
  ];
240
240
  };
241
- tbl_chat_access: {
242
- Row: {
243
- chat_id: string;
244
- email: string;
245
- has_access: boolean | null;
246
- last_read_timestamp: string | null;
247
- message_unread_count: number | null;
248
- org_id: string;
249
- };
250
- Insert: {
251
- chat_id: string;
252
- email: string;
253
- has_access?: boolean | null;
254
- last_read_timestamp?: string | null;
255
- message_unread_count?: number | null;
256
- org_id: string;
257
- };
258
- Update: {
259
- chat_id?: string;
260
- email?: string;
261
- has_access?: boolean | null;
262
- last_read_timestamp?: string | null;
263
- message_unread_count?: number | null;
264
- org_id?: string;
265
- };
266
- Relationships: [
267
- {
268
- foreignKeyName: "tbl_chat_access_org_id_email_fkey";
269
- columns: ["org_id", "email"];
270
- isOneToOne: false;
271
- referencedRelation: "tbl_org_members";
272
- referencedColumns: ["org_id", "email"];
273
- }
274
- ];
275
- };
276
241
  tbl_chat_logs: {
277
242
  Row: {
278
243
  action: string | null;
@@ -588,32 +553,41 @@ export type Database = {
588
553
  tbl_chat_properties: {
589
554
  Row: {
590
555
  assigned_to: string | null;
556
+ chat_access: Json | null;
591
557
  chat_id: string;
592
558
  chat_org_phones: string[];
593
559
  custom_properties: Json | null;
560
+ flag_count: Json | null;
594
561
  hubspot_metadata: Json | null;
595
562
  label_ids: Json | null;
596
563
  org_id: string;
564
+ unread_count: Json | null;
597
565
  updated_at: string | null;
598
566
  };
599
567
  Insert: {
600
568
  assigned_to?: string | null;
569
+ chat_access?: Json | null;
601
570
  chat_id: string;
602
571
  chat_org_phones?: string[];
603
572
  custom_properties?: Json | null;
573
+ flag_count?: Json | null;
604
574
  hubspot_metadata?: Json | null;
605
575
  label_ids?: Json | null;
606
576
  org_id: string;
577
+ unread_count?: Json | null;
607
578
  updated_at?: string | null;
608
579
  };
609
580
  Update: {
610
581
  assigned_to?: string | null;
582
+ chat_access?: Json | null;
611
583
  chat_id?: string;
612
584
  chat_org_phones?: string[];
613
585
  custom_properties?: Json | null;
586
+ flag_count?: Json | null;
614
587
  hubspot_metadata?: Json | null;
615
588
  label_ids?: Json | null;
616
589
  org_id?: string;
590
+ unread_count?: Json | null;
617
591
  updated_at?: string | null;
618
592
  };
619
593
  Relationships: [];
@@ -772,7 +746,6 @@ export type Database = {
772
746
  chat_name: string | null;
773
747
  chat_type: string | null;
774
748
  created_at: string;
775
- flag_count: number;
776
749
  group_metadata: Json | null;
777
750
  id: Json | null;
778
751
  invite_link: string | null;
@@ -797,7 +770,6 @@ export type Database = {
797
770
  chat_name?: string | null;
798
771
  chat_type?: string | null;
799
772
  created_at?: string;
800
- flag_count?: number;
801
773
  group_metadata?: Json | null;
802
774
  id?: Json | null;
803
775
  invite_link?: string | null;
@@ -822,7 +794,6 @@ export type Database = {
822
794
  chat_name?: string | null;
823
795
  chat_type?: string | null;
824
796
  created_at?: string;
825
- flag_count?: number;
826
797
  group_metadata?: Json | null;
827
798
  id?: Json | null;
828
799
  invite_link?: string | null;
@@ -1811,6 +1782,16 @@ export type Database = {
1811
1782
  Args: Record<PropertyKey, never>;
1812
1783
  Returns: Database["public"]["Enums"]["enum_member_role"];
1813
1784
  };
1785
+ update_chat_properties: {
1786
+ Args: {
1787
+ column_name: string;
1788
+ org_id_input: string;
1789
+ chat_id_input: string[];
1790
+ key_input: string;
1791
+ value_input: Json;
1792
+ };
1793
+ Returns: undefined;
1794
+ };
1814
1795
  update_custom_properties: {
1815
1796
  Args: {
1816
1797
  org_id_input: string;
package/dist/types.d.ts CHANGED
@@ -177,7 +177,9 @@ export type ContactType = Merge<Tables<'tbl_contacts'>, {
177
177
  }>;
178
178
  export type ReactionType = Tables<'tbl_chat_reactions'>;
179
179
  export type NotificationType = Tables<'tbl_chat_notifications'>;
180
- export type ChatAccessType = Merge<Partial<Tables<'tbl_chat_access'>>, Tables<'tbl_org_members'>>;
180
+ export type ChatAccessType = Merge<Tables<'tbl_org_members'>, {
181
+ has_access: boolean;
182
+ }>;
181
183
  export declare const labelColors: string[];
182
184
  export declare const enumChatColors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
183
185
  export declare const SUPPORTED_TYPES: readonly ["chat", "sticker", "image", "video", "document", "vcard", "multi_vcard", "audio", "ptt", "poll_creation", "location", "ciphertext"];
@@ -186,7 +188,15 @@ export type SendMessageContent = {
186
188
  body?: string;
187
189
  media?: MediaType;
188
190
  contact_ids?: string[];
189
- location?: Location;
191
+ location?: {
192
+ latitude: string;
193
+ longitude: string;
194
+ options?: {
195
+ name?: string;
196
+ address?: string;
197
+ url?: string;
198
+ };
199
+ };
190
200
  quoted_message_id?: string;
191
201
  quoted_message_type?: 'reply' | 'forward' | 'reply_private';
192
202
  broadcast_id?: string;
package/dist/types.js CHANGED
@@ -54,7 +54,7 @@ exports.SUPPORTED_TYPES = [
54
54
  'ptt',
55
55
  'poll_creation',
56
56
  'location',
57
- 'ciphertext'
57
+ 'ciphertext',
58
58
  ];
59
59
  var IntegrationLogType;
60
60
  (function (IntegrationLogType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.114",
3
+ "version": "0.6.116",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",