@periskope/types 0.6.108 → 0.6.110
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 +46 -28
- package/dist/types.d.ts +5 -6
- package/dist/types.js +1 -0
- package/package.json +1 -1
- package/supabase.types.ts +443 -427
- package/types.ts +3 -9
package/supabase.types.ts
CHANGED
|
@@ -279,229 +279,232 @@ export type Database = {
|
|
|
279
279
|
referencedRelation: "tbl_org_members"
|
|
280
280
|
referencedColumns: ["org_id", "email"]
|
|
281
281
|
},
|
|
282
|
-
]
|
|
283
|
-
}
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
284
|
tbl_chat_logs: {
|
|
285
285
|
Row: {
|
|
286
|
-
action: string | null
|
|
287
|
-
chat_id: string | null
|
|
288
|
-
is_success: boolean | null
|
|
289
|
-
log_id: string
|
|
290
|
-
metadata: Json | null
|
|
291
|
-
operation_id: string
|
|
292
|
-
org_id: string
|
|
293
|
-
org_phone: string
|
|
294
|
-
participant_id: string | null
|
|
295
|
-
performed_by: string | null
|
|
296
|
-
timestamp: string | null
|
|
297
|
-
}
|
|
286
|
+
action: string | null
|
|
287
|
+
chat_id: string | null
|
|
288
|
+
is_success: boolean | null
|
|
289
|
+
log_id: string
|
|
290
|
+
metadata: Json | null
|
|
291
|
+
operation_id: string
|
|
292
|
+
org_id: string
|
|
293
|
+
org_phone: string
|
|
294
|
+
participant_id: string | null
|
|
295
|
+
performed_by: string | null
|
|
296
|
+
timestamp: string | null
|
|
297
|
+
}
|
|
298
298
|
Insert: {
|
|
299
|
-
action?: string | null
|
|
300
|
-
chat_id?: string | null
|
|
301
|
-
is_success?: boolean | null
|
|
302
|
-
log_id?: string
|
|
303
|
-
metadata?: Json | null
|
|
304
|
-
operation_id: string
|
|
305
|
-
org_id: string
|
|
306
|
-
org_phone: string
|
|
307
|
-
participant_id?: string | null
|
|
308
|
-
performed_by?: string | null
|
|
309
|
-
timestamp?: string | null
|
|
310
|
-
}
|
|
299
|
+
action?: string | null
|
|
300
|
+
chat_id?: string | null
|
|
301
|
+
is_success?: boolean | null
|
|
302
|
+
log_id?: string
|
|
303
|
+
metadata?: Json | null
|
|
304
|
+
operation_id: string
|
|
305
|
+
org_id: string
|
|
306
|
+
org_phone: string
|
|
307
|
+
participant_id?: string | null
|
|
308
|
+
performed_by?: string | null
|
|
309
|
+
timestamp?: string | null
|
|
310
|
+
}
|
|
311
311
|
Update: {
|
|
312
|
-
action?: string | null
|
|
313
|
-
chat_id?: string | null
|
|
314
|
-
is_success?: boolean | null
|
|
315
|
-
log_id?: string
|
|
316
|
-
metadata?: Json | null
|
|
317
|
-
operation_id?: string
|
|
318
|
-
org_id?: string
|
|
319
|
-
org_phone?: string
|
|
320
|
-
participant_id?: string | null
|
|
321
|
-
performed_by?: string | null
|
|
322
|
-
timestamp?: string | null
|
|
323
|
-
}
|
|
312
|
+
action?: string | null
|
|
313
|
+
chat_id?: string | null
|
|
314
|
+
is_success?: boolean | null
|
|
315
|
+
log_id?: string
|
|
316
|
+
metadata?: Json | null
|
|
317
|
+
operation_id?: string
|
|
318
|
+
org_id?: string
|
|
319
|
+
org_phone?: string
|
|
320
|
+
participant_id?: string | null
|
|
321
|
+
performed_by?: string | null
|
|
322
|
+
timestamp?: string | null
|
|
323
|
+
}
|
|
324
324
|
Relationships: [
|
|
325
325
|
{
|
|
326
|
-
foreignKeyName:
|
|
327
|
-
columns: [
|
|
328
|
-
isOneToOne: false
|
|
329
|
-
referencedRelation:
|
|
330
|
-
referencedColumns: [
|
|
326
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey"
|
|
327
|
+
columns: ["org_id"]
|
|
328
|
+
isOneToOne: false
|
|
329
|
+
referencedRelation: "tbl_org"
|
|
330
|
+
referencedColumns: ["org_id"]
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
|
-
foreignKeyName:
|
|
334
|
-
columns: [
|
|
335
|
-
isOneToOne: false
|
|
336
|
-
referencedRelation:
|
|
337
|
-
referencedColumns: [
|
|
333
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey"
|
|
334
|
+
columns: ["org_id"]
|
|
335
|
+
isOneToOne: false
|
|
336
|
+
referencedRelation: "view_org"
|
|
337
|
+
referencedColumns: ["org_id"]
|
|
338
338
|
},
|
|
339
|
-
]
|
|
340
|
-
}
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
341
|
tbl_chat_messages: {
|
|
342
342
|
Row: {
|
|
343
|
-
ack: string | null
|
|
344
|
-
author: string | null
|
|
345
|
-
body: string | null
|
|
346
|
-
broadcast: boolean | null
|
|
347
|
-
broadcast_id: string | null
|
|
348
|
-
chat_id: string | null
|
|
349
|
-
delivery_info: Json | null
|
|
350
|
-
device_type: string | null
|
|
351
|
-
duration: string | null
|
|
352
|
-
flag_metadata: Json | null
|
|
353
|
-
flag_response_time: number | null
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
343
|
+
ack: string | null
|
|
344
|
+
author: string | null
|
|
345
|
+
body: string | null
|
|
346
|
+
broadcast: boolean | null
|
|
347
|
+
broadcast_id: string | null
|
|
348
|
+
chat_id: string | null
|
|
349
|
+
delivery_info: Json | null
|
|
350
|
+
device_type: string | null
|
|
351
|
+
duration: string | null
|
|
352
|
+
flag_metadata: Json | null
|
|
353
|
+
flag_response_time: number | null
|
|
354
|
+
flag_status: boolean | null
|
|
355
|
+
forwarding_score: number | null
|
|
356
|
+
from: string | null
|
|
357
|
+
from_me: boolean | null
|
|
358
|
+
fts: unknown | null
|
|
359
|
+
has_media: boolean | null
|
|
360
|
+
has_quoted_msg: boolean | null
|
|
361
|
+
has_reaction: boolean | null
|
|
362
|
+
id: Json | null
|
|
363
|
+
invite_v4: Json | null
|
|
364
|
+
is_deleted: boolean | null
|
|
365
|
+
is_ephemeral: boolean | null
|
|
366
|
+
is_forwarded: boolean | null
|
|
367
|
+
is_gif: boolean | null
|
|
368
|
+
is_starred: boolean | null
|
|
369
|
+
is_status: boolean | null
|
|
370
|
+
links: Json | null
|
|
371
|
+
location: Json | null
|
|
372
|
+
media: Json | null
|
|
373
|
+
media_key: string | null
|
|
374
|
+
mentioned_ids: string[] | null
|
|
375
|
+
message_id: string
|
|
376
|
+
message_ticket_id: string | null
|
|
377
|
+
message_type: string | null
|
|
378
|
+
order_id: string | null
|
|
379
|
+
org_id: string
|
|
380
|
+
org_phone: string
|
|
381
|
+
performed_by: string | null
|
|
382
|
+
prev_body: string | null
|
|
383
|
+
quoted_message_id: string | null
|
|
384
|
+
raw_data: Json | null
|
|
385
|
+
sender_phone: string | null
|
|
386
|
+
sent_message_id: string | null
|
|
387
|
+
timestamp: string | null
|
|
388
|
+
to: string | null
|
|
389
|
+
token: string | null
|
|
390
|
+
unique_id: string | null
|
|
391
|
+
updated_at: string | null
|
|
392
|
+
vcards: string[] | null
|
|
393
|
+
}
|
|
393
394
|
Insert: {
|
|
394
|
-
ack?: string | null
|
|
395
|
-
author?: string | null
|
|
396
|
-
body?: string | null
|
|
397
|
-
broadcast?: boolean | null
|
|
398
|
-
broadcast_id?: string | null
|
|
399
|
-
chat_id?: string | null
|
|
400
|
-
delivery_info?: Json | null
|
|
401
|
-
device_type?: string | null
|
|
402
|
-
duration?: string | null
|
|
403
|
-
flag_metadata?: Json | null
|
|
404
|
-
flag_response_time?: number | null
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
395
|
+
ack?: string | null
|
|
396
|
+
author?: string | null
|
|
397
|
+
body?: string | null
|
|
398
|
+
broadcast?: boolean | null
|
|
399
|
+
broadcast_id?: string | null
|
|
400
|
+
chat_id?: string | null
|
|
401
|
+
delivery_info?: Json | null
|
|
402
|
+
device_type?: string | null
|
|
403
|
+
duration?: string | null
|
|
404
|
+
flag_metadata?: Json | null
|
|
405
|
+
flag_response_time?: number | null
|
|
406
|
+
flag_status?: boolean | null
|
|
407
|
+
forwarding_score?: number | null
|
|
408
|
+
from?: string | null
|
|
409
|
+
from_me?: boolean | null
|
|
410
|
+
fts?: unknown | null
|
|
411
|
+
has_media?: boolean | null
|
|
412
|
+
has_quoted_msg?: boolean | null
|
|
413
|
+
has_reaction?: boolean | null
|
|
414
|
+
id?: Json | null
|
|
415
|
+
invite_v4?: Json | null
|
|
416
|
+
is_deleted?: boolean | null
|
|
417
|
+
is_ephemeral?: boolean | null
|
|
418
|
+
is_forwarded?: boolean | null
|
|
419
|
+
is_gif?: boolean | null
|
|
420
|
+
is_starred?: boolean | null
|
|
421
|
+
is_status?: boolean | null
|
|
422
|
+
links?: Json | null
|
|
423
|
+
location?: Json | null
|
|
424
|
+
media?: Json | null
|
|
425
|
+
media_key?: string | null
|
|
426
|
+
mentioned_ids?: string[] | null
|
|
427
|
+
message_id: string
|
|
428
|
+
message_ticket_id?: string | null
|
|
429
|
+
message_type?: string | null
|
|
430
|
+
order_id?: string | null
|
|
431
|
+
org_id: string
|
|
432
|
+
org_phone: string
|
|
433
|
+
performed_by?: string | null
|
|
434
|
+
prev_body?: string | null
|
|
435
|
+
quoted_message_id?: string | null
|
|
436
|
+
raw_data?: Json | null
|
|
437
|
+
sender_phone?: string | null
|
|
438
|
+
sent_message_id?: string | null
|
|
439
|
+
timestamp?: string | null
|
|
440
|
+
to?: string | null
|
|
441
|
+
token?: string | null
|
|
442
|
+
unique_id?: string | null
|
|
443
|
+
updated_at?: string | null
|
|
444
|
+
vcards?: string[] | null
|
|
445
|
+
}
|
|
444
446
|
Update: {
|
|
445
|
-
ack?: string | null
|
|
446
|
-
author?: string | null
|
|
447
|
-
body?: string | null
|
|
448
|
-
broadcast?: boolean | null
|
|
449
|
-
broadcast_id?: string | null
|
|
450
|
-
chat_id?: string | null
|
|
451
|
-
delivery_info?: Json | null
|
|
452
|
-
device_type?: string | null
|
|
453
|
-
duration?: string | null
|
|
454
|
-
flag_metadata?: Json | null
|
|
455
|
-
flag_response_time?: number | null
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
447
|
+
ack?: string | null
|
|
448
|
+
author?: string | null
|
|
449
|
+
body?: string | null
|
|
450
|
+
broadcast?: boolean | null
|
|
451
|
+
broadcast_id?: string | null
|
|
452
|
+
chat_id?: string | null
|
|
453
|
+
delivery_info?: Json | null
|
|
454
|
+
device_type?: string | null
|
|
455
|
+
duration?: string | null
|
|
456
|
+
flag_metadata?: Json | null
|
|
457
|
+
flag_response_time?: number | null
|
|
458
|
+
flag_status?: boolean | null
|
|
459
|
+
forwarding_score?: number | null
|
|
460
|
+
from?: string | null
|
|
461
|
+
from_me?: boolean | null
|
|
462
|
+
fts?: unknown | null
|
|
463
|
+
has_media?: boolean | null
|
|
464
|
+
has_quoted_msg?: boolean | null
|
|
465
|
+
has_reaction?: boolean | null
|
|
466
|
+
id?: Json | null
|
|
467
|
+
invite_v4?: Json | null
|
|
468
|
+
is_deleted?: boolean | null
|
|
469
|
+
is_ephemeral?: boolean | null
|
|
470
|
+
is_forwarded?: boolean | null
|
|
471
|
+
is_gif?: boolean | null
|
|
472
|
+
is_starred?: boolean | null
|
|
473
|
+
is_status?: boolean | null
|
|
474
|
+
links?: Json | null
|
|
475
|
+
location?: Json | null
|
|
476
|
+
media?: Json | null
|
|
477
|
+
media_key?: string | null
|
|
478
|
+
mentioned_ids?: string[] | null
|
|
479
|
+
message_id?: string
|
|
480
|
+
message_ticket_id?: string | null
|
|
481
|
+
message_type?: string | null
|
|
482
|
+
order_id?: string | null
|
|
483
|
+
org_id?: string
|
|
484
|
+
org_phone?: string
|
|
485
|
+
performed_by?: string | null
|
|
486
|
+
prev_body?: string | null
|
|
487
|
+
quoted_message_id?: string | null
|
|
488
|
+
raw_data?: Json | null
|
|
489
|
+
sender_phone?: string | null
|
|
490
|
+
sent_message_id?: string | null
|
|
491
|
+
timestamp?: string | null
|
|
492
|
+
to?: string | null
|
|
493
|
+
token?: string | null
|
|
494
|
+
unique_id?: string | null
|
|
495
|
+
updated_at?: string | null
|
|
496
|
+
vcards?: string[] | null
|
|
497
|
+
}
|
|
495
498
|
Relationships: [
|
|
496
499
|
{
|
|
497
|
-
foreignKeyName:
|
|
498
|
-
columns: [
|
|
499
|
-
isOneToOne: false
|
|
500
|
-
referencedRelation:
|
|
501
|
-
referencedColumns: [
|
|
500
|
+
foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones"
|
|
501
|
+
columns: ["org_phone", "org_id"]
|
|
502
|
+
isOneToOne: false
|
|
503
|
+
referencedRelation: "tbl_org_phones"
|
|
504
|
+
referencedColumns: ["org_phone", "org_id"]
|
|
502
505
|
},
|
|
503
|
-
]
|
|
504
|
-
}
|
|
506
|
+
]
|
|
507
|
+
}
|
|
505
508
|
tbl_chat_notifications: {
|
|
506
509
|
Row: {
|
|
507
510
|
author: string | null
|
|
@@ -592,28 +595,34 @@ export type Database = {
|
|
|
592
595
|
}
|
|
593
596
|
tbl_chat_properties: {
|
|
594
597
|
Row: {
|
|
598
|
+
assigned_to: string | null
|
|
595
599
|
chat_id: string
|
|
600
|
+
chat_org_phones: string[]
|
|
596
601
|
custom_properties: Json | null
|
|
597
|
-
flag_count: number
|
|
598
602
|
hubspot_metadata: Json | null
|
|
599
603
|
label_ids: Json | null
|
|
600
604
|
org_id: string
|
|
605
|
+
updated_at: string | null
|
|
601
606
|
}
|
|
602
607
|
Insert: {
|
|
608
|
+
assigned_to?: string | null
|
|
603
609
|
chat_id: string
|
|
610
|
+
chat_org_phones?: string[]
|
|
604
611
|
custom_properties?: Json | null
|
|
605
|
-
flag_count?: number
|
|
606
612
|
hubspot_metadata?: Json | null
|
|
607
613
|
label_ids?: Json | null
|
|
608
614
|
org_id: string
|
|
615
|
+
updated_at?: string | null
|
|
609
616
|
}
|
|
610
617
|
Update: {
|
|
618
|
+
assigned_to?: string | null
|
|
611
619
|
chat_id?: string
|
|
620
|
+
chat_org_phones?: string[]
|
|
612
621
|
custom_properties?: Json | null
|
|
613
|
-
flag_count?: number
|
|
614
622
|
hubspot_metadata?: Json | null
|
|
615
623
|
label_ids?: Json | null
|
|
616
624
|
org_id?: string
|
|
625
|
+
updated_at?: string | null
|
|
617
626
|
}
|
|
618
627
|
Relationships: []
|
|
619
628
|
}
|
|
@@ -775,6 +784,7 @@ export type Database = {
|
|
|
775
784
|
chat_name: string | null
|
|
776
785
|
chat_type: string | null
|
|
777
786
|
created_at: string
|
|
787
|
+
flag_count: number
|
|
778
788
|
group_metadata: Json | null
|
|
779
789
|
id: Json | null
|
|
780
790
|
invite_link: string | null
|
|
@@ -799,6 +809,7 @@ export type Database = {
|
|
|
799
809
|
chat_name?: string | null
|
|
800
810
|
chat_type?: string | null
|
|
801
811
|
created_at?: string
|
|
812
|
+
flag_count?: number
|
|
802
813
|
group_metadata?: Json | null
|
|
803
814
|
id?: Json | null
|
|
804
815
|
invite_link?: string | null
|
|
@@ -823,6 +834,7 @@ export type Database = {
|
|
|
823
834
|
chat_name?: string | null
|
|
824
835
|
chat_type?: string | null
|
|
825
836
|
created_at?: string
|
|
837
|
+
flag_count?: number
|
|
826
838
|
group_metadata?: Json | null
|
|
827
839
|
id?: Json | null
|
|
828
840
|
invite_link?: string | null
|
|
@@ -852,93 +864,89 @@ export type Database = {
|
|
|
852
864
|
}
|
|
853
865
|
tbl_contacts: {
|
|
854
866
|
Row: {
|
|
855
|
-
business_profile: Json | null
|
|
856
|
-
contact_color: Database[
|
|
857
|
-
contact_id: string
|
|
858
|
-
contact_image: string | null
|
|
859
|
-
contact_name: string | null
|
|
860
|
-
contact_type: string | null
|
|
861
|
-
id: Json | null
|
|
862
|
-
is_blocked: boolean | null
|
|
863
|
-
is_business: boolean | null
|
|
864
|
-
is_enterprise: boolean | null
|
|
865
|
-
is_group: boolean | null
|
|
866
|
-
is_internal: boolean | null
|
|
867
|
-
is_me: boolean | null
|
|
868
|
-
is_my_contact: boolean | null
|
|
869
|
-
is_user: boolean | null
|
|
870
|
-
is_wa_contact: boolean | null
|
|
871
|
-
label_ids: Json
|
|
872
|
-
name: string | null
|
|
873
|
-
number: string | null
|
|
874
|
-
org_id: string
|
|
875
|
-
periskope_name: string | null
|
|
876
|
-
pushname: string | null
|
|
877
|
-
short_name: string | null
|
|
878
|
-
updated_at: string | null
|
|
879
|
-
verified_level: number | null
|
|
880
|
-
verified_name: string | null
|
|
881
|
-
}
|
|
867
|
+
business_profile: Json | null
|
|
868
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null
|
|
869
|
+
contact_id: string
|
|
870
|
+
contact_image: string | null
|
|
871
|
+
contact_name: string | null
|
|
872
|
+
contact_type: string | null
|
|
873
|
+
id: Json | null
|
|
874
|
+
is_blocked: boolean | null
|
|
875
|
+
is_business: boolean | null
|
|
876
|
+
is_enterprise: boolean | null
|
|
877
|
+
is_group: boolean | null
|
|
878
|
+
is_internal: boolean | null
|
|
879
|
+
is_me: boolean | null
|
|
880
|
+
is_my_contact: boolean | null
|
|
881
|
+
is_user: boolean | null
|
|
882
|
+
is_wa_contact: boolean | null
|
|
883
|
+
label_ids: Json
|
|
884
|
+
name: string | null
|
|
885
|
+
number: string | null
|
|
886
|
+
org_id: string
|
|
887
|
+
periskope_name: string | null
|
|
888
|
+
pushname: string | null
|
|
889
|
+
short_name: string | null
|
|
890
|
+
updated_at: string | null
|
|
891
|
+
verified_level: number | null
|
|
892
|
+
verified_name: string | null
|
|
893
|
+
}
|
|
882
894
|
Insert: {
|
|
883
|
-
business_profile?: Json | null
|
|
884
|
-
contact_color?:
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
verified_name?: string | null;
|
|
911
|
-
};
|
|
895
|
+
business_profile?: Json | null
|
|
896
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null
|
|
897
|
+
contact_id: string
|
|
898
|
+
contact_image?: string | null
|
|
899
|
+
contact_name?: string | null
|
|
900
|
+
contact_type?: string | null
|
|
901
|
+
id?: Json | null
|
|
902
|
+
is_blocked?: boolean | null
|
|
903
|
+
is_business?: boolean | null
|
|
904
|
+
is_enterprise?: boolean | null
|
|
905
|
+
is_group?: boolean | null
|
|
906
|
+
is_internal?: boolean | null
|
|
907
|
+
is_me?: boolean | null
|
|
908
|
+
is_my_contact?: boolean | null
|
|
909
|
+
is_user?: boolean | null
|
|
910
|
+
is_wa_contact?: boolean | null
|
|
911
|
+
label_ids?: Json
|
|
912
|
+
name?: string | null
|
|
913
|
+
number?: string | null
|
|
914
|
+
org_id: string
|
|
915
|
+
periskope_name?: string | null
|
|
916
|
+
pushname?: string | null
|
|
917
|
+
short_name?: string | null
|
|
918
|
+
updated_at?: string | null
|
|
919
|
+
verified_level?: number | null
|
|
920
|
+
verified_name?: string | null
|
|
921
|
+
}
|
|
912
922
|
Update: {
|
|
913
|
-
business_profile?: Json | null
|
|
914
|
-
contact_color?:
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
verified_name?: string | null;
|
|
941
|
-
};
|
|
923
|
+
business_profile?: Json | null
|
|
924
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null
|
|
925
|
+
contact_id?: string
|
|
926
|
+
contact_image?: string | null
|
|
927
|
+
contact_name?: string | null
|
|
928
|
+
contact_type?: string | null
|
|
929
|
+
id?: Json | null
|
|
930
|
+
is_blocked?: boolean | null
|
|
931
|
+
is_business?: boolean | null
|
|
932
|
+
is_enterprise?: boolean | null
|
|
933
|
+
is_group?: boolean | null
|
|
934
|
+
is_internal?: boolean | null
|
|
935
|
+
is_me?: boolean | null
|
|
936
|
+
is_my_contact?: boolean | null
|
|
937
|
+
is_user?: boolean | null
|
|
938
|
+
is_wa_contact?: boolean | null
|
|
939
|
+
label_ids?: Json
|
|
940
|
+
name?: string | null
|
|
941
|
+
number?: string | null
|
|
942
|
+
org_id?: string
|
|
943
|
+
periskope_name?: string | null
|
|
944
|
+
pushname?: string | null
|
|
945
|
+
short_name?: string | null
|
|
946
|
+
updated_at?: string | null
|
|
947
|
+
verified_level?: number | null
|
|
948
|
+
verified_name?: string | null
|
|
949
|
+
}
|
|
942
950
|
Relationships: [
|
|
943
951
|
{
|
|
944
952
|
foreignKeyName: "tbl_contacts_org_id_fkey"
|
|
@@ -1411,26 +1419,26 @@ export type Database = {
|
|
|
1411
1419
|
}
|
|
1412
1420
|
tbl_quick_replies: {
|
|
1413
1421
|
Row: {
|
|
1414
|
-
command: string | null
|
|
1415
|
-
created_at: string
|
|
1416
|
-
message_payload: Json | null
|
|
1417
|
-
org_id: string
|
|
1418
|
-
reply_id: string
|
|
1419
|
-
}
|
|
1422
|
+
command: string | null
|
|
1423
|
+
created_at: string
|
|
1424
|
+
message_payload: Json | null
|
|
1425
|
+
org_id: string
|
|
1426
|
+
reply_id: string
|
|
1427
|
+
}
|
|
1420
1428
|
Insert: {
|
|
1421
|
-
command?: string | null
|
|
1422
|
-
created_at?: string
|
|
1423
|
-
message_payload?: Json | null
|
|
1424
|
-
org_id: string
|
|
1425
|
-
reply_id?: string
|
|
1426
|
-
}
|
|
1429
|
+
command?: string | null
|
|
1430
|
+
created_at?: string
|
|
1431
|
+
message_payload?: Json | null
|
|
1432
|
+
org_id: string
|
|
1433
|
+
reply_id?: string
|
|
1434
|
+
}
|
|
1427
1435
|
Update: {
|
|
1428
|
-
command?: string | null
|
|
1429
|
-
created_at?: string
|
|
1430
|
-
message_payload?: Json | null
|
|
1431
|
-
org_id?: string
|
|
1432
|
-
reply_id?: string
|
|
1433
|
-
}
|
|
1436
|
+
command?: string | null
|
|
1437
|
+
created_at?: string
|
|
1438
|
+
message_payload?: Json | null
|
|
1439
|
+
org_id?: string
|
|
1440
|
+
reply_id?: string
|
|
1441
|
+
}
|
|
1434
1442
|
Relationships: [
|
|
1435
1443
|
{
|
|
1436
1444
|
foreignKeyName: "tbl_quick_replies_org_id_fkey"
|
|
@@ -1511,68 +1519,69 @@ export type Database = {
|
|
|
1511
1519
|
referencedRelation: "view_org"
|
|
1512
1520
|
referencedColumns: ["org_id"]
|
|
1513
1521
|
},
|
|
1514
|
-
]
|
|
1515
|
-
}
|
|
1522
|
+
]
|
|
1523
|
+
}
|
|
1516
1524
|
view_chat_logs: {
|
|
1517
1525
|
Row: {
|
|
1518
|
-
action: string | null
|
|
1519
|
-
failed: number | null
|
|
1520
|
-
operation_id: string | null
|
|
1521
|
-
org_id: string | null
|
|
1522
|
-
pending: number | null
|
|
1523
|
-
performed_at: string | null
|
|
1524
|
-
performed_by: string | null
|
|
1525
|
-
success: number | null
|
|
1526
|
-
total_chats: number | null
|
|
1527
|
-
total_logs: number | null
|
|
1528
|
-
total_participants: number | null
|
|
1529
|
-
}
|
|
1526
|
+
action: string | null
|
|
1527
|
+
failed: number | null
|
|
1528
|
+
operation_id: string | null
|
|
1529
|
+
org_id: string | null
|
|
1530
|
+
pending: number | null
|
|
1531
|
+
performed_at: string | null
|
|
1532
|
+
performed_by: string | null
|
|
1533
|
+
success: number | null
|
|
1534
|
+
total_chats: number | null
|
|
1535
|
+
total_logs: number | null
|
|
1536
|
+
total_participants: number | null
|
|
1537
|
+
}
|
|
1530
1538
|
Relationships: [
|
|
1531
1539
|
{
|
|
1532
|
-
foreignKeyName:
|
|
1533
|
-
columns: [
|
|
1534
|
-
isOneToOne: false
|
|
1535
|
-
referencedRelation:
|
|
1536
|
-
referencedColumns: [
|
|
1540
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey"
|
|
1541
|
+
columns: ["org_id"]
|
|
1542
|
+
isOneToOne: false
|
|
1543
|
+
referencedRelation: "tbl_org"
|
|
1544
|
+
referencedColumns: ["org_id"]
|
|
1537
1545
|
},
|
|
1538
1546
|
{
|
|
1539
|
-
foreignKeyName:
|
|
1540
|
-
columns: [
|
|
1541
|
-
isOneToOne: false
|
|
1542
|
-
referencedRelation:
|
|
1543
|
-
referencedColumns: [
|
|
1547
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey"
|
|
1548
|
+
columns: ["org_id"]
|
|
1549
|
+
isOneToOne: false
|
|
1550
|
+
referencedRelation: "view_org"
|
|
1551
|
+
referencedColumns: ["org_id"]
|
|
1544
1552
|
},
|
|
1545
|
-
]
|
|
1546
|
-
}
|
|
1553
|
+
]
|
|
1554
|
+
}
|
|
1547
1555
|
view_chats: {
|
|
1548
1556
|
Row: {
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1557
|
+
assigned_to: string | null
|
|
1558
|
+
chat_access: Json | null
|
|
1559
|
+
chat_id: string | null
|
|
1560
|
+
chat_image: string | null
|
|
1561
|
+
chat_name: string | null
|
|
1562
|
+
chat_org_phones: string[] | null
|
|
1563
|
+
chat_type: string | null
|
|
1564
|
+
created_at: string | null
|
|
1565
|
+
custom_properties: Json | null
|
|
1566
|
+
flag_count: number | null
|
|
1567
|
+
group_description: string | null
|
|
1568
|
+
hubspot_metadata: Json | null
|
|
1569
|
+
info_admins_only: boolean | null
|
|
1570
|
+
invite_link: string | null
|
|
1571
|
+
is_archived: boolean | null
|
|
1572
|
+
is_muted: boolean | null
|
|
1573
|
+
label_ids: Json | null
|
|
1574
|
+
last_read_timestamp: string | null
|
|
1575
|
+
latest_message: Json | null
|
|
1576
|
+
member_count: number | null
|
|
1577
|
+
message_unread_count: number | null
|
|
1578
|
+
messages_admins_only: boolean | null
|
|
1579
|
+
org_id: string | null
|
|
1580
|
+
org_phone: string | null
|
|
1581
|
+
updated_at: string | null
|
|
1582
|
+
}
|
|
1583
|
+
Relationships: []
|
|
1584
|
+
}
|
|
1576
1585
|
view_org: {
|
|
1577
1586
|
Row: {
|
|
1578
1587
|
access_scopes: Json | null;
|
|
@@ -1646,16 +1655,16 @@ export type Database = {
|
|
|
1646
1655
|
Functions: {
|
|
1647
1656
|
create_partition: {
|
|
1648
1657
|
Args: {
|
|
1649
|
-
org_id_input: string
|
|
1650
|
-
}
|
|
1651
|
-
Returns: boolean
|
|
1652
|
-
}
|
|
1658
|
+
org_id_input: string
|
|
1659
|
+
}
|
|
1660
|
+
Returns: boolean
|
|
1661
|
+
}
|
|
1653
1662
|
custom_access_token_hook: {
|
|
1654
1663
|
Args: {
|
|
1655
|
-
event: Json
|
|
1656
|
-
}
|
|
1657
|
-
Returns: Json
|
|
1658
|
-
}
|
|
1664
|
+
event: Json
|
|
1665
|
+
}
|
|
1666
|
+
Returns: Json
|
|
1667
|
+
}
|
|
1659
1668
|
drop_partition: {
|
|
1660
1669
|
Args: {
|
|
1661
1670
|
org_id_input: string
|
|
@@ -1695,19 +1704,20 @@ export type Database = {
|
|
|
1695
1704
|
}
|
|
1696
1705
|
get_chat_labels_data: {
|
|
1697
1706
|
Args: {
|
|
1698
|
-
org_id_input: string
|
|
1699
|
-
chat_ids_input?: string[]
|
|
1700
|
-
}
|
|
1701
|
-
Returns: Json[]
|
|
1702
|
-
}
|
|
1707
|
+
org_id_input: string
|
|
1708
|
+
chat_ids_input?: string[]
|
|
1709
|
+
}
|
|
1710
|
+
Returns: Json[]
|
|
1711
|
+
}
|
|
1703
1712
|
get_chats: {
|
|
1704
1713
|
Args: {
|
|
1705
|
-
org_id_input: string
|
|
1706
|
-
chat_id_input?: string[]
|
|
1707
|
-
with_members?: boolean
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1714
|
+
org_id_input: string
|
|
1715
|
+
chat_id_input?: string[]
|
|
1716
|
+
with_members?: boolean
|
|
1717
|
+
last_updated_at?: string
|
|
1718
|
+
}
|
|
1719
|
+
Returns: Json
|
|
1720
|
+
}
|
|
1711
1721
|
get_chats_info: {
|
|
1712
1722
|
Args: {
|
|
1713
1723
|
chat_id_input: string
|
|
@@ -1749,13 +1759,13 @@ export type Database = {
|
|
|
1749
1759
|
}
|
|
1750
1760
|
get_messages_notifications_reactions: {
|
|
1751
1761
|
Args: {
|
|
1752
|
-
org_id_input: string
|
|
1753
|
-
chat_id_input?: string[]
|
|
1754
|
-
limit_input?: number
|
|
1755
|
-
offset_input?: number
|
|
1756
|
-
}
|
|
1757
|
-
Returns: Json
|
|
1758
|
-
}
|
|
1762
|
+
org_id_input: string
|
|
1763
|
+
chat_id_input?: string[]
|
|
1764
|
+
limit_input?: number
|
|
1765
|
+
offset_input?: number
|
|
1766
|
+
}
|
|
1767
|
+
Returns: Json
|
|
1768
|
+
}
|
|
1759
1769
|
get_org: {
|
|
1760
1770
|
Args: {
|
|
1761
1771
|
org_id_input?: string
|
|
@@ -1780,24 +1790,24 @@ export type Database = {
|
|
|
1780
1790
|
}
|
|
1781
1791
|
get_ticket_info: {
|
|
1782
1792
|
Args: {
|
|
1783
|
-
ticket_id_input?: string
|
|
1784
|
-
org_id_input?: string
|
|
1785
|
-
chat_id_input?: string
|
|
1786
|
-
unique_message_id_input?: string
|
|
1787
|
-
}
|
|
1788
|
-
Returns: Json
|
|
1789
|
-
}
|
|
1793
|
+
ticket_id_input?: string
|
|
1794
|
+
org_id_input?: string
|
|
1795
|
+
chat_id_input?: string
|
|
1796
|
+
unique_message_id_input?: string
|
|
1797
|
+
}
|
|
1798
|
+
Returns: Json
|
|
1799
|
+
}
|
|
1790
1800
|
get_universal_search_result: {
|
|
1791
1801
|
Args: {
|
|
1792
|
-
search_category_input: string
|
|
1793
|
-
search_query_input: string
|
|
1794
|
-
org_id_input: string
|
|
1795
|
-
}
|
|
1802
|
+
search_category_input: string
|
|
1803
|
+
search_query_input: string
|
|
1804
|
+
org_id_input: string
|
|
1805
|
+
}
|
|
1796
1806
|
Returns: {
|
|
1797
|
-
category: string
|
|
1798
|
-
result: Json
|
|
1799
|
-
}[]
|
|
1800
|
-
}
|
|
1807
|
+
category: string
|
|
1808
|
+
result: Json
|
|
1809
|
+
}[]
|
|
1810
|
+
}
|
|
1801
1811
|
image_path: {
|
|
1802
1812
|
Args: {
|
|
1803
1813
|
path_input?: string
|
|
@@ -1844,26 +1854,27 @@ export type Database = {
|
|
|
1844
1854
|
| "#DB2777"
|
|
1845
1855
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived"
|
|
1846
1856
|
enum_integration_name:
|
|
1847
|
-
|
|
|
1848
|
-
|
|
|
1849
|
-
|
|
|
1850
|
-
|
|
|
1851
|
-
|
|
|
1852
|
-
|
|
|
1853
|
-
|
|
|
1854
|
-
|
|
|
1855
|
-
|
|
|
1856
|
-
|
|
|
1857
|
-
|
|
|
1858
|
-
|
|
|
1859
|
-
|
|
|
1860
|
-
|
|
|
1861
|
-
|
|
|
1862
|
-
|
|
|
1863
|
-
|
|
|
1864
|
-
|
|
|
1865
|
-
|
|
|
1866
|
-
|
|
|
1857
|
+
| "org.created"
|
|
1858
|
+
| "org.updated"
|
|
1859
|
+
| "org.member.created"
|
|
1860
|
+
| "org.member.updated"
|
|
1861
|
+
| "org.phone.created"
|
|
1862
|
+
| "org.phone.connected"
|
|
1863
|
+
| "org.phone.disconnected"
|
|
1864
|
+
| "org.subscription.trial_will_end"
|
|
1865
|
+
| "chat.created"
|
|
1866
|
+
| "chat.updated"
|
|
1867
|
+
| "chat.notification.created"
|
|
1868
|
+
| "message.created"
|
|
1869
|
+
| "message.updated"
|
|
1870
|
+
| "message.deleted"
|
|
1871
|
+
| "message.ack.updated"
|
|
1872
|
+
| "reaction.created"
|
|
1873
|
+
| "reaction.updated"
|
|
1874
|
+
| "ticket.created"
|
|
1875
|
+
| "ticket.updated"
|
|
1876
|
+
| "ticket.deleted"
|
|
1877
|
+
| "org.member.invited"
|
|
1867
1878
|
enum_integration_type:
|
|
1868
1879
|
| "zapier"
|
|
1869
1880
|
| "pabbly"
|
|
@@ -1874,6 +1885,7 @@ export type Database = {
|
|
|
1874
1885
|
| "slack"
|
|
1875
1886
|
| "jira"
|
|
1876
1887
|
| "salesforce"
|
|
1888
|
+
| "zohodesk"
|
|
1877
1889
|
enum_member_role: "admin" | "member"
|
|
1878
1890
|
}
|
|
1879
1891
|
CompositeTypes: {
|
|
@@ -2157,6 +2169,10 @@ export type Database = {
|
|
|
2157
2169
|
updated_at: string
|
|
2158
2170
|
}[]
|
|
2159
2171
|
}
|
|
2172
|
+
operation: {
|
|
2173
|
+
Args: Record<PropertyKey, never>
|
|
2174
|
+
Returns: string
|
|
2175
|
+
}
|
|
2160
2176
|
search: {
|
|
2161
2177
|
Args: {
|
|
2162
2178
|
prefix: string
|