@periskope/types 0.6.27 → 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.
@@ -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;
@@ -833,6 +895,10 @@ export interface Database {
833
895
  };
834
896
  Returns: string;
835
897
  };
898
+ gen_ticket_id: {
899
+ Args: Record<PropertyKey, never>;
900
+ Returns: string;
901
+ };
836
902
  get_broadcast_id: {
837
903
  Args: {
838
904
  broadcast_id_input: string;
@@ -885,6 +951,7 @@ export interface Database {
885
951
  };
886
952
  Enums: {
887
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";
888
955
  enum_member_role: "admin" | "member";
889
956
  };
890
957
  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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.27",
3
+ "version": "0.6.28",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",