@periskope/types 0.6.145 → 0.6.147
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/rules.types.d.ts +9 -17
- package/dist/rules.types.js +286 -42
- package/dist/supabase.types.d.ts +293 -255
- package/dist/types.d.ts +16 -44
- package/package.json +1 -1
- package/rules.types.ts +311 -105
- package/supabase.types.ts +2134 -2102
- package/types.ts +81 -49
package/dist/types.d.ts
CHANGED
|
@@ -66,6 +66,14 @@ export type OrgMetadata = {
|
|
|
66
66
|
};
|
|
67
67
|
}[];
|
|
68
68
|
partition?: boolean;
|
|
69
|
+
tickets: {
|
|
70
|
+
prefix?: string;
|
|
71
|
+
emoji_ticketing: {
|
|
72
|
+
is_enabled?: boolean;
|
|
73
|
+
is_message_enabled?: boolean;
|
|
74
|
+
message_template?: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
69
77
|
};
|
|
70
78
|
type AccessScopes = {
|
|
71
79
|
integrations: boolean;
|
|
@@ -124,7 +132,8 @@ export type ChatType = Merge<Tables<'view_chats'>, {
|
|
|
124
132
|
flag_count_map?: {
|
|
125
133
|
[key: string]: number;
|
|
126
134
|
};
|
|
127
|
-
|
|
135
|
+
is_archived?: boolean;
|
|
136
|
+
is_pinned?: boolean;
|
|
128
137
|
}>;
|
|
129
138
|
export type MediaType = {
|
|
130
139
|
path: string;
|
|
@@ -427,40 +436,22 @@ export type OrgCreditsType = {
|
|
|
427
436
|
total_credits_used: number;
|
|
428
437
|
next_renewal_date: string;
|
|
429
438
|
};
|
|
430
|
-
export type ChatRuleInfoType = Merge<Pick<Tables<'view_chats'>, 'assigned_to' | 'chat_id' | 'chat_name' | 'chat_type' | 'created_at' | 'group_description' | 'info_admins_only' | '
|
|
439
|
+
export type ChatRuleInfoType = Merge<Pick<Tables<'view_chats'>, 'assigned_to' | 'chat_id' | 'chat_name' | 'chat_type' | 'created_at' | 'group_description' | 'info_admins_only' | 'is_exited' | 'is_muted' | 'org_id' | 'org_phone' | 'chat_org_phones' | 'messages_admins_only' | 'custom_properties'>, {
|
|
431
440
|
has_flagged_messages: boolean;
|
|
432
441
|
labels: string[];
|
|
433
|
-
members:
|
|
442
|
+
members: string[];
|
|
434
443
|
custom_properties: {
|
|
435
444
|
[key: string]: string;
|
|
436
445
|
} | null;
|
|
437
446
|
}>;
|
|
438
|
-
export type SenderRuleInfoType =
|
|
447
|
+
export type SenderRuleInfoType = Merge<Omit<Merge<Tables<'tbl_contacts'>, Tables<'tbl_chat_participants'>>, 'verified_name' | 'verified_level' | 'updated_at' | 'short_name' | 'pushname' | 'periskope_name' | 'org_phone' | 'number' | 'name' | 'label_ids' | 'is_wa_contact' | 'is_user' | 'is_my_contact' | 'is_me' | 'is_imported' | 'is_group' | 'is_blocked' | 'contact_color' | 'business_profile' | 'id' | 'contact_image' | 'contact_type' | 'chat_id'>, {
|
|
439
448
|
is_internal: boolean;
|
|
440
449
|
labels: string[] | null;
|
|
441
|
-
}>, {
|
|
442
|
-
id: {
|
|
443
|
-
[key: string]: string;
|
|
444
|
-
} | null;
|
|
445
|
-
business_profile: {
|
|
446
|
-
[key: string]: string;
|
|
447
|
-
} | null;
|
|
448
|
-
label_ids: {
|
|
449
|
-
[key: string]: boolean;
|
|
450
|
-
} | null;
|
|
451
450
|
}>;
|
|
452
451
|
export type MessageRuleInfoType = {
|
|
453
452
|
chat: ChatRuleInfoType;
|
|
454
453
|
sender: SenderRuleInfoType;
|
|
455
|
-
message: OverrideProperties<Tables<'tbl_chat_messages'>, {
|
|
456
|
-
delivery_info: DeliveryInfoType | null;
|
|
457
|
-
flag_metadata: MessageFlagType | null;
|
|
458
|
-
id: {
|
|
459
|
-
id: string;
|
|
460
|
-
remote: string;
|
|
461
|
-
from_me: boolean;
|
|
462
|
-
serialized: string;
|
|
463
|
-
} | null;
|
|
454
|
+
message: OverrideProperties<Omit<Tables<'tbl_chat_messages'>, 'vcards' | 'updated_at' | 'unique_id' | 'token' | 'to' | 'sent_message_id' | 'raw_data' | 'delivery_info' | 'poll_results' | 'poll_info' | 'order_id' | 'mentioned_ids' | 'media_key' | 'location' | 'links' | 'is_status' | 'is_starred' | 'is_gif' | 'is_forwarded' | 'is_ephemeral' | 'is_deleted' | 'fts' | 'quoted_message_id' | 'invite_v4' | 'id' | 'has_reaction' | 'has_media' | 'duration' | 'broadcast' | 'broadcast_id' | 'device_type' | 'forwarding_score' | 'from' | 'from_me' | 'message_ticket_id' | 'prev_body' | 'flag_response_time' | 'flag_metadata'>, {
|
|
464
455
|
media: MediaType | null;
|
|
465
456
|
}>;
|
|
466
457
|
};
|
|
@@ -468,35 +459,16 @@ export type ReactionRuleInfoType = {
|
|
|
468
459
|
chat: ChatRuleInfoType;
|
|
469
460
|
sender: SenderRuleInfoType;
|
|
470
461
|
message: MessageRuleInfoType['message'];
|
|
471
|
-
reaction:
|
|
472
|
-
id: {
|
|
473
|
-
id: string;
|
|
474
|
-
remote: string;
|
|
475
|
-
from_me: boolean;
|
|
476
|
-
serialized: string;
|
|
477
|
-
};
|
|
478
|
-
msg_id: {
|
|
479
|
-
id: string;
|
|
480
|
-
remote: string;
|
|
481
|
-
from_me: boolean;
|
|
482
|
-
serialized: string;
|
|
483
|
-
};
|
|
484
|
-
}>;
|
|
462
|
+
reaction: Pick<Tables<'tbl_chat_reactions'>, 'reaction' | 'sender_id' | 'message_id' | 'chat_id' | 'reaction_id'>;
|
|
485
463
|
};
|
|
486
464
|
export type TicketRuleInfoType = {
|
|
487
465
|
chat: ChatRuleInfoType;
|
|
488
466
|
sender: SenderRuleInfoType;
|
|
489
|
-
ticket: Merge<Pick<Tables<'tbl_chat_tickets'>, 'org_id' | 'status' | 'chat_id' | 'subject' | 'assignee' | 'due_date' | 'priority' | '
|
|
467
|
+
ticket: Merge<Pick<Tables<'tbl_chat_tickets'>, 'org_id' | 'status' | 'chat_id' | 'subject' | 'assignee' | 'due_date' | 'priority' | 'raised_by' | 'ticket_id' | 'created_at' | 'is_deleted'>, {
|
|
490
468
|
labels: string[] | null;
|
|
491
469
|
custom_properties: {
|
|
492
470
|
[key: string]: string;
|
|
493
471
|
} | null;
|
|
494
|
-
close_ticket_metadata: {
|
|
495
|
-
closed_at: string;
|
|
496
|
-
closed_by: string;
|
|
497
|
-
closed_message: string;
|
|
498
|
-
send_reply_message_id: string;
|
|
499
|
-
};
|
|
500
472
|
}>;
|
|
501
473
|
message: MessageRuleInfoType['message'];
|
|
502
474
|
};
|