@periskope/types 0.6.157 → 0.6.159
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.js +30 -68
- package/dist/supabase.types.d.ts +15 -8
- package/dist/types.d.ts +2 -2
- package/index.ts +3 -3
- package/package.json +1 -1
- package/rules.types.ts +1531 -1569
- package/supabase.types.ts +15 -7
- package/types.ts +773 -771
package/dist/rules.types.js
CHANGED
|
@@ -79,7 +79,7 @@ exports.MessageVariableNameMap = {
|
|
|
79
79
|
variable_type: 'string',
|
|
80
80
|
},
|
|
81
81
|
'message.timestamp': {
|
|
82
|
-
text: 'Message
|
|
82
|
+
text: 'Message Timestamp',
|
|
83
83
|
type: 'day-time',
|
|
84
84
|
filters: {
|
|
85
85
|
LT: {
|
|
@@ -108,19 +108,19 @@ exports.MessageVariableNameMap = {
|
|
|
108
108
|
variable_type: 'boolean',
|
|
109
109
|
},
|
|
110
110
|
'message.has_quoted_msg': {
|
|
111
|
-
text: 'Quoted Message',
|
|
111
|
+
text: 'Has Quoted Message',
|
|
112
112
|
filters: ['IS'],
|
|
113
113
|
type: 'boolean',
|
|
114
114
|
variable_type: 'boolean',
|
|
115
115
|
},
|
|
116
116
|
'message.media': {
|
|
117
|
-
text: '
|
|
117
|
+
text: 'Has Media',
|
|
118
118
|
type: 'boolean',
|
|
119
119
|
filters: ['KNOWN', 'NKNOWN'],
|
|
120
120
|
variable_type: 'boolean',
|
|
121
121
|
},
|
|
122
122
|
'message.performed_by': {
|
|
123
|
-
text: 'Message
|
|
123
|
+
text: 'Message Sent By (email)',
|
|
124
124
|
type: 'dropdown',
|
|
125
125
|
value: 'org.members',
|
|
126
126
|
filters: ['EQ', 'NEQ'],
|
|
@@ -177,20 +177,8 @@ exports.MessageVariableNameMap = {
|
|
|
177
177
|
},
|
|
178
178
|
};
|
|
179
179
|
exports.SenderVariableNameMap = {
|
|
180
|
-
'sender.is_business': {
|
|
181
|
-
text: 'Sender is business',
|
|
182
|
-
type: 'boolean',
|
|
183
|
-
filters: ['IS'],
|
|
184
|
-
variable_type: 'boolean',
|
|
185
|
-
},
|
|
186
|
-
'sender.is_enterprise': {
|
|
187
|
-
text: 'Sender is enterprise',
|
|
188
|
-
type: 'boolean',
|
|
189
|
-
filters: ['IS'],
|
|
190
|
-
variable_type: 'boolean',
|
|
191
|
-
},
|
|
192
180
|
'sender.is_internal': {
|
|
193
|
-
text: 'Sender
|
|
181
|
+
text: 'Sender Is Internal',
|
|
194
182
|
type: 'boolean',
|
|
195
183
|
filters: ['IS'],
|
|
196
184
|
variable_type: 'boolean',
|
|
@@ -203,14 +191,14 @@ exports.SenderVariableNameMap = {
|
|
|
203
191
|
variable_type: 'string',
|
|
204
192
|
},
|
|
205
193
|
'sender.contact_id': {
|
|
206
|
-
text: 'Sender
|
|
194
|
+
text: 'Sender Phone',
|
|
207
195
|
type: 'string',
|
|
208
196
|
filters: ['EQ', 'NEQ'],
|
|
209
197
|
placeholder: 'e.g. 919876543210',
|
|
210
198
|
variable_type: 'string',
|
|
211
199
|
},
|
|
212
200
|
'sender.labels': {
|
|
213
|
-
text: 'Sender Labels',
|
|
201
|
+
text: 'Sender Contact Labels',
|
|
214
202
|
type: 'dropdown',
|
|
215
203
|
value: 'org.labels',
|
|
216
204
|
filters: ['CONTAINS', 'NCONTAINS'],
|
|
@@ -223,26 +211,8 @@ exports.SenderVariableNameMap = {
|
|
|
223
211
|
hidden: true,
|
|
224
212
|
variable_type: 'string',
|
|
225
213
|
},
|
|
226
|
-
'sender.is_super_admin': {
|
|
227
|
-
text: 'Sender is super admin',
|
|
228
|
-
type: 'dropdown',
|
|
229
|
-
filters: ['EQ', 'NEQ'],
|
|
230
|
-
value: [
|
|
231
|
-
{
|
|
232
|
-
id: 'true',
|
|
233
|
-
value: 'true',
|
|
234
|
-
label: 'True',
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
id: 'false',
|
|
238
|
-
value: 'false',
|
|
239
|
-
label: 'False',
|
|
240
|
-
},
|
|
241
|
-
],
|
|
242
|
-
variable_type: 'boolean',
|
|
243
|
-
},
|
|
244
214
|
'sender.is_admin': {
|
|
245
|
-
text: 'Sender
|
|
215
|
+
text: 'Sender Is Admin',
|
|
246
216
|
type: 'dropdown',
|
|
247
217
|
filters: ['EQ', 'NEQ'],
|
|
248
218
|
value: [
|
|
@@ -328,25 +298,7 @@ exports.ChatVariableNameMap = {
|
|
|
328
298
|
variable_type: 'string',
|
|
329
299
|
},
|
|
330
300
|
'chat.messages_admins_only': {
|
|
331
|
-
text: '
|
|
332
|
-
type: 'boolean',
|
|
333
|
-
filters: ['EQ', 'NEQ'],
|
|
334
|
-
value: [
|
|
335
|
-
{
|
|
336
|
-
id: 'true',
|
|
337
|
-
value: 'true',
|
|
338
|
-
label: 'True',
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
id: 'false',
|
|
342
|
-
value: 'false',
|
|
343
|
-
label: 'False',
|
|
344
|
-
},
|
|
345
|
-
],
|
|
346
|
-
variable_type: 'boolean',
|
|
347
|
-
},
|
|
348
|
-
'chat.is_muted': {
|
|
349
|
-
text: 'Chat is muted',
|
|
301
|
+
text: 'Messages Admins Only (Chat Settings)',
|
|
350
302
|
type: 'boolean',
|
|
351
303
|
filters: ['EQ', 'NEQ'],
|
|
352
304
|
value: [
|
|
@@ -364,7 +316,7 @@ exports.ChatVariableNameMap = {
|
|
|
364
316
|
variable_type: 'boolean',
|
|
365
317
|
},
|
|
366
318
|
'chat.info_admins_only': {
|
|
367
|
-
text: '
|
|
319
|
+
text: 'Info Admins Only (Chat Settings)',
|
|
368
320
|
type: 'boolean',
|
|
369
321
|
filters: ['EQ', 'NEQ'],
|
|
370
322
|
value: [
|
|
@@ -382,7 +334,7 @@ exports.ChatVariableNameMap = {
|
|
|
382
334
|
variable_type: 'boolean',
|
|
383
335
|
},
|
|
384
336
|
'chat.has_flagged_messages': {
|
|
385
|
-
text: 'Chat
|
|
337
|
+
text: 'Chat Has Flagged Messages',
|
|
386
338
|
type: 'boolean',
|
|
387
339
|
filters: ['EQ', 'NEQ'],
|
|
388
340
|
value: [
|
|
@@ -484,7 +436,7 @@ exports.TicketVariableNameMap = {
|
|
|
484
436
|
variable_type: 'string',
|
|
485
437
|
},
|
|
486
438
|
'ticket.is_deleted': {
|
|
487
|
-
text: 'Ticket
|
|
439
|
+
text: 'Ticket Is Deleted',
|
|
488
440
|
type: 'boolean',
|
|
489
441
|
value: [
|
|
490
442
|
{
|
|
@@ -858,7 +810,12 @@ exports.ActionNameMap = {
|
|
|
858
810
|
required: true,
|
|
859
811
|
},
|
|
860
812
|
},
|
|
861
|
-
validTriggers: [
|
|
813
|
+
validTriggers: [
|
|
814
|
+
'message.created',
|
|
815
|
+
'message.updated',
|
|
816
|
+
'reaction.added',
|
|
817
|
+
'message.flagged',
|
|
818
|
+
],
|
|
862
819
|
},
|
|
863
820
|
assign_ticket: {
|
|
864
821
|
title: 'Assign Ticket',
|
|
@@ -924,7 +881,7 @@ exports.ActionNameMap = {
|
|
|
924
881
|
'ticket.created',
|
|
925
882
|
'reaction.added',
|
|
926
883
|
'chat.label.updated',
|
|
927
|
-
'message.flagged'
|
|
884
|
+
'message.flagged',
|
|
928
885
|
],
|
|
929
886
|
},
|
|
930
887
|
add_ticket_label: {
|
|
@@ -953,7 +910,7 @@ exports.ActionNameMap = {
|
|
|
953
910
|
'ticket.created',
|
|
954
911
|
'reaction.added',
|
|
955
912
|
'message.flagged',
|
|
956
|
-
'chat.label.updated'
|
|
913
|
+
'chat.label.updated',
|
|
957
914
|
],
|
|
958
915
|
inputs: {
|
|
959
916
|
property_id: {
|
|
@@ -1083,7 +1040,7 @@ exports.editorVariables = [
|
|
|
1083
1040
|
'reaction.added',
|
|
1084
1041
|
'message.flagged',
|
|
1085
1042
|
'ticket.created',
|
|
1086
|
-
'ticket.updated'
|
|
1043
|
+
'ticket.updated',
|
|
1087
1044
|
],
|
|
1088
1045
|
},
|
|
1089
1046
|
{
|
|
@@ -1095,7 +1052,7 @@ exports.editorVariables = [
|
|
|
1095
1052
|
'reaction.added',
|
|
1096
1053
|
'message.flagged',
|
|
1097
1054
|
'ticket.created',
|
|
1098
|
-
'ticket.updated'
|
|
1055
|
+
'ticket.updated',
|
|
1099
1056
|
],
|
|
1100
1057
|
},
|
|
1101
1058
|
{
|
|
@@ -1109,7 +1066,7 @@ exports.editorVariables = [
|
|
|
1109
1066
|
'chat.created',
|
|
1110
1067
|
'chat.label.updated',
|
|
1111
1068
|
'ticket.created',
|
|
1112
|
-
'ticket.updated'
|
|
1069
|
+
'ticket.updated',
|
|
1113
1070
|
],
|
|
1114
1071
|
},
|
|
1115
1072
|
{
|
|
@@ -1120,14 +1077,19 @@ exports.editorVariables = [
|
|
|
1120
1077
|
];
|
|
1121
1078
|
exports.variablesExclusionList = {
|
|
1122
1079
|
'ticket.created': ['ticket.is_deleted'],
|
|
1123
|
-
'chat.created': [
|
|
1080
|
+
'chat.created': [
|
|
1081
|
+
'chat.chat_id',
|
|
1082
|
+
'chat.labels',
|
|
1083
|
+
'chat.has_flagged_messages',
|
|
1084
|
+
'chat.assigned_to',
|
|
1085
|
+
],
|
|
1124
1086
|
'message.created': [
|
|
1125
1087
|
'message.author',
|
|
1126
1088
|
'message.performed_by',
|
|
1127
1089
|
'message.flag_status',
|
|
1128
1090
|
'sender.is_internal',
|
|
1129
1091
|
],
|
|
1130
|
-
'ticket.updated': [],
|
|
1092
|
+
'ticket.updated': ['ticket.is_deleted'],
|
|
1131
1093
|
'reaction.added': [],
|
|
1132
1094
|
'message.updated': [],
|
|
1133
1095
|
'message.flagged': [],
|
package/dist/supabase.types.d.ts
CHANGED
|
@@ -744,7 +744,6 @@ export type Database = {
|
|
|
744
744
|
latest_message_timestamp: string | null;
|
|
745
745
|
org_id: string;
|
|
746
746
|
unread_count: Json | null;
|
|
747
|
-
unread_count_map: Json | null;
|
|
748
747
|
updated_at: string | null;
|
|
749
748
|
};
|
|
750
749
|
Insert: {
|
|
@@ -763,7 +762,6 @@ export type Database = {
|
|
|
763
762
|
latest_message_timestamp?: string | null;
|
|
764
763
|
org_id: string;
|
|
765
764
|
unread_count?: Json | null;
|
|
766
|
-
unread_count_map?: Json | null;
|
|
767
765
|
updated_at?: string | null;
|
|
768
766
|
};
|
|
769
767
|
Update: {
|
|
@@ -782,7 +780,6 @@ export type Database = {
|
|
|
782
780
|
latest_message_timestamp?: string | null;
|
|
783
781
|
org_id?: string;
|
|
784
782
|
unread_count?: Json | null;
|
|
785
|
-
unread_count_map?: Json | null;
|
|
786
783
|
updated_at?: string | null;
|
|
787
784
|
};
|
|
788
785
|
Relationships: [];
|
|
@@ -949,6 +946,7 @@ export type Database = {
|
|
|
949
946
|
is_read_only: boolean | null;
|
|
950
947
|
latest_message: Json | null;
|
|
951
948
|
member_count: number | null;
|
|
949
|
+
member_unread_count: Json | null;
|
|
952
950
|
mute_expiration: number | null;
|
|
953
951
|
name: string | null;
|
|
954
952
|
org_id: string;
|
|
@@ -975,6 +973,7 @@ export type Database = {
|
|
|
975
973
|
is_read_only?: boolean | null;
|
|
976
974
|
latest_message?: Json | null;
|
|
977
975
|
member_count?: number | null;
|
|
976
|
+
member_unread_count?: Json | null;
|
|
978
977
|
mute_expiration?: number | null;
|
|
979
978
|
name?: string | null;
|
|
980
979
|
org_id: string;
|
|
@@ -1001,6 +1000,7 @@ export type Database = {
|
|
|
1001
1000
|
is_read_only?: boolean | null;
|
|
1002
1001
|
latest_message?: Json | null;
|
|
1003
1002
|
member_count?: number | null;
|
|
1003
|
+
member_unread_count?: Json | null;
|
|
1004
1004
|
mute_expiration?: number | null;
|
|
1005
1005
|
name?: string | null;
|
|
1006
1006
|
org_id?: string;
|
|
@@ -2049,10 +2049,7 @@ export type Database = {
|
|
|
2049
2049
|
Args: {
|
|
2050
2050
|
org_id_input: string;
|
|
2051
2051
|
};
|
|
2052
|
-
Returns:
|
|
2053
|
-
feature: string;
|
|
2054
|
-
enabled: boolean;
|
|
2055
|
-
}[];
|
|
2052
|
+
Returns: Json;
|
|
2056
2053
|
};
|
|
2057
2054
|
get_integration_data: {
|
|
2058
2055
|
Args: {
|
|
@@ -2197,7 +2194,7 @@ export type Database = {
|
|
|
2197
2194
|
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
2198
2195
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
2199
2196
|
enum_credit_transaction_type: "credit" | "debit";
|
|
2200
|
-
enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated" | "message.flagged" | "message.unflagged" | "chat.label.updated" | "reaction.added";
|
|
2197
|
+
enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated" | "message.flagged" | "message.unflagged" | "chat.label.updated" | "reaction.added" | "message.ticket.attached";
|
|
2201
2198
|
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets";
|
|
2202
2199
|
enum_member_role: "admin" | "member";
|
|
2203
2200
|
};
|
|
@@ -2279,6 +2276,7 @@ export type Database = {
|
|
|
2279
2276
|
owner_id: string | null;
|
|
2280
2277
|
path_tokens: string[] | null;
|
|
2281
2278
|
updated_at: string | null;
|
|
2279
|
+
user_metadata: Json | null;
|
|
2282
2280
|
version: string | null;
|
|
2283
2281
|
};
|
|
2284
2282
|
Insert: {
|
|
@@ -2292,6 +2290,7 @@ export type Database = {
|
|
|
2292
2290
|
owner_id?: string | null;
|
|
2293
2291
|
path_tokens?: string[] | null;
|
|
2294
2292
|
updated_at?: string | null;
|
|
2293
|
+
user_metadata?: Json | null;
|
|
2295
2294
|
version?: string | null;
|
|
2296
2295
|
};
|
|
2297
2296
|
Update: {
|
|
@@ -2305,6 +2304,7 @@ export type Database = {
|
|
|
2305
2304
|
owner_id?: string | null;
|
|
2306
2305
|
path_tokens?: string[] | null;
|
|
2307
2306
|
updated_at?: string | null;
|
|
2307
|
+
user_metadata?: Json | null;
|
|
2308
2308
|
version?: string | null;
|
|
2309
2309
|
};
|
|
2310
2310
|
Relationships: [
|
|
@@ -2326,6 +2326,7 @@ export type Database = {
|
|
|
2326
2326
|
key: string;
|
|
2327
2327
|
owner_id: string | null;
|
|
2328
2328
|
upload_signature: string;
|
|
2329
|
+
user_metadata: Json | null;
|
|
2329
2330
|
version: string;
|
|
2330
2331
|
};
|
|
2331
2332
|
Insert: {
|
|
@@ -2336,6 +2337,7 @@ export type Database = {
|
|
|
2336
2337
|
key: string;
|
|
2337
2338
|
owner_id?: string | null;
|
|
2338
2339
|
upload_signature: string;
|
|
2340
|
+
user_metadata?: Json | null;
|
|
2339
2341
|
version: string;
|
|
2340
2342
|
};
|
|
2341
2343
|
Update: {
|
|
@@ -2346,6 +2348,7 @@ export type Database = {
|
|
|
2346
2348
|
key?: string;
|
|
2347
2349
|
owner_id?: string | null;
|
|
2348
2350
|
upload_signature?: string;
|
|
2351
|
+
user_metadata?: Json | null;
|
|
2349
2352
|
version?: string;
|
|
2350
2353
|
};
|
|
2351
2354
|
Relationships: [
|
|
@@ -2482,6 +2485,10 @@ export type Database = {
|
|
|
2482
2485
|
updated_at: string;
|
|
2483
2486
|
}[];
|
|
2484
2487
|
};
|
|
2488
|
+
operation: {
|
|
2489
|
+
Args: Record<PropertyKey, never>;
|
|
2490
|
+
Returns: string;
|
|
2491
|
+
};
|
|
2485
2492
|
search: {
|
|
2486
2493
|
Args: {
|
|
2487
2494
|
prefix: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -452,7 +452,7 @@ export type OrgCreditsType = {
|
|
|
452
452
|
total_credits_used: number;
|
|
453
453
|
next_renewal_date: string;
|
|
454
454
|
};
|
|
455
|
-
export type ChatRuleInfoType = Merge<Pick<Tables<'view_chats'>, 'assigned_to' | 'chat_id' | 'chat_name' | 'chat_type' | 'created_at' | 'group_description' | 'info_admins_only' | '
|
|
455
|
+
export type ChatRuleInfoType = Merge<Pick<Tables<'view_chats'>, 'assigned_to' | 'chat_id' | 'chat_name' | 'chat_type' | 'created_at' | 'group_description' | 'info_admins_only' | 'org_id' | 'org_phone' | 'chat_org_phones' | 'messages_admins_only' | 'custom_properties'>, {
|
|
456
456
|
has_flagged_messages: boolean;
|
|
457
457
|
labels: string[];
|
|
458
458
|
members: string[];
|
|
@@ -460,7 +460,7 @@ export type ChatRuleInfoType = Merge<Pick<Tables<'view_chats'>, 'assigned_to' |
|
|
|
460
460
|
[key: string]: string;
|
|
461
461
|
} | null;
|
|
462
462
|
}>;
|
|
463
|
-
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'>, {
|
|
463
|
+
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' | 'is_business' | 'is_enterprise' | 'is_super_admin'>, {
|
|
464
464
|
is_internal: boolean;
|
|
465
465
|
labels: string[] | null;
|
|
466
466
|
}>;
|
package/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './rules.types';
|
|
2
|
-
export * from './supabase.types';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './rules.types';
|
|
2
|
+
export * from './supabase.types';
|
|
3
|
+
export * from './types';
|