@periskope/types 0.6.158 → 0.6.160
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 +12 -30
- package/dist/supabase.types.d.ts +5 -8
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/rules.types.ts +12 -30
- package/supabase.types.ts +6 -9
- package/types.ts +1 -0
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'],
|
|
@@ -178,7 +178,7 @@ exports.MessageVariableNameMap = {
|
|
|
178
178
|
};
|
|
179
179
|
exports.SenderVariableNameMap = {
|
|
180
180
|
'sender.is_internal': {
|
|
181
|
-
text: 'Sender
|
|
181
|
+
text: 'Sender Is Internal',
|
|
182
182
|
type: 'boolean',
|
|
183
183
|
filters: ['IS'],
|
|
184
184
|
variable_type: 'boolean',
|
|
@@ -191,14 +191,14 @@ exports.SenderVariableNameMap = {
|
|
|
191
191
|
variable_type: 'string',
|
|
192
192
|
},
|
|
193
193
|
'sender.contact_id': {
|
|
194
|
-
text: 'Sender
|
|
194
|
+
text: 'Sender Phone',
|
|
195
195
|
type: 'string',
|
|
196
196
|
filters: ['EQ', 'NEQ'],
|
|
197
197
|
placeholder: 'e.g. 919876543210',
|
|
198
198
|
variable_type: 'string',
|
|
199
199
|
},
|
|
200
200
|
'sender.labels': {
|
|
201
|
-
text: 'Sender Labels',
|
|
201
|
+
text: 'Sender Contact Labels',
|
|
202
202
|
type: 'dropdown',
|
|
203
203
|
value: 'org.labels',
|
|
204
204
|
filters: ['CONTAINS', 'NCONTAINS'],
|
|
@@ -211,26 +211,8 @@ exports.SenderVariableNameMap = {
|
|
|
211
211
|
hidden: true,
|
|
212
212
|
variable_type: 'string',
|
|
213
213
|
},
|
|
214
|
-
'sender.is_super_admin': {
|
|
215
|
-
text: 'Sender is super admin',
|
|
216
|
-
type: 'dropdown',
|
|
217
|
-
filters: ['EQ', 'NEQ'],
|
|
218
|
-
value: [
|
|
219
|
-
{
|
|
220
|
-
id: 'true',
|
|
221
|
-
value: 'true',
|
|
222
|
-
label: 'True',
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
id: 'false',
|
|
226
|
-
value: 'false',
|
|
227
|
-
label: 'False',
|
|
228
|
-
},
|
|
229
|
-
],
|
|
230
|
-
variable_type: 'boolean',
|
|
231
|
-
},
|
|
232
214
|
'sender.is_admin': {
|
|
233
|
-
text: 'Sender
|
|
215
|
+
text: 'Sender Is Admin',
|
|
234
216
|
type: 'dropdown',
|
|
235
217
|
filters: ['EQ', 'NEQ'],
|
|
236
218
|
value: [
|
|
@@ -316,7 +298,7 @@ exports.ChatVariableNameMap = {
|
|
|
316
298
|
variable_type: 'string',
|
|
317
299
|
},
|
|
318
300
|
'chat.messages_admins_only': {
|
|
319
|
-
text: '
|
|
301
|
+
text: 'Messages Admins Only (Chat Settings)',
|
|
320
302
|
type: 'boolean',
|
|
321
303
|
filters: ['EQ', 'NEQ'],
|
|
322
304
|
value: [
|
|
@@ -334,7 +316,7 @@ exports.ChatVariableNameMap = {
|
|
|
334
316
|
variable_type: 'boolean',
|
|
335
317
|
},
|
|
336
318
|
'chat.info_admins_only': {
|
|
337
|
-
text: '
|
|
319
|
+
text: 'Info Admins Only (Chat Settings)',
|
|
338
320
|
type: 'boolean',
|
|
339
321
|
filters: ['EQ', 'NEQ'],
|
|
340
322
|
value: [
|
|
@@ -352,7 +334,7 @@ exports.ChatVariableNameMap = {
|
|
|
352
334
|
variable_type: 'boolean',
|
|
353
335
|
},
|
|
354
336
|
'chat.has_flagged_messages': {
|
|
355
|
-
text: 'Chat
|
|
337
|
+
text: 'Chat Has Flagged Messages',
|
|
356
338
|
type: 'boolean',
|
|
357
339
|
filters: ['EQ', 'NEQ'],
|
|
358
340
|
value: [
|
|
@@ -454,7 +436,7 @@ exports.TicketVariableNameMap = {
|
|
|
454
436
|
variable_type: 'string',
|
|
455
437
|
},
|
|
456
438
|
'ticket.is_deleted': {
|
|
457
|
-
text: 'Ticket
|
|
439
|
+
text: 'Ticket Is Deleted',
|
|
458
440
|
type: 'boolean',
|
|
459
441
|
value: [
|
|
460
442
|
{
|
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: {
|
|
@@ -2168,7 +2165,7 @@ export type Database = {
|
|
|
2168
2165
|
column_name: string;
|
|
2169
2166
|
org_id_input: string;
|
|
2170
2167
|
chat_id_input: string[];
|
|
2171
|
-
column_value_input?:
|
|
2168
|
+
column_value_input?: string;
|
|
2172
2169
|
key_input?: string;
|
|
2173
2170
|
value_input?: Json;
|
|
2174
2171
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -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' | 'is_business' | 'is_enterprise'>, {
|
|
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/package.json
CHANGED
package/rules.types.ts
CHANGED
|
@@ -241,7 +241,7 @@ export const MessageVariableNameMap: Record<
|
|
|
241
241
|
variable_type: 'string',
|
|
242
242
|
},
|
|
243
243
|
'message.timestamp': {
|
|
244
|
-
text: 'Message
|
|
244
|
+
text: 'Message Timestamp',
|
|
245
245
|
type: 'day-time',
|
|
246
246
|
filters: {
|
|
247
247
|
LT: {
|
|
@@ -270,19 +270,19 @@ export const MessageVariableNameMap: Record<
|
|
|
270
270
|
variable_type: 'boolean',
|
|
271
271
|
},
|
|
272
272
|
'message.has_quoted_msg': {
|
|
273
|
-
text: 'Quoted Message',
|
|
273
|
+
text: 'Has Quoted Message',
|
|
274
274
|
filters: ['IS'],
|
|
275
275
|
type: 'boolean',
|
|
276
276
|
variable_type: 'boolean',
|
|
277
277
|
},
|
|
278
278
|
'message.media': {
|
|
279
|
-
text: '
|
|
279
|
+
text: 'Has Media',
|
|
280
280
|
type: 'boolean',
|
|
281
281
|
filters: ['KNOWN', 'NKNOWN'],
|
|
282
282
|
variable_type: 'boolean',
|
|
283
283
|
},
|
|
284
284
|
'message.performed_by': {
|
|
285
|
-
text: 'Message
|
|
285
|
+
text: 'Message Sent By (email)',
|
|
286
286
|
type: 'dropdown',
|
|
287
287
|
value: 'org.members',
|
|
288
288
|
filters: ['EQ', 'NEQ'],
|
|
@@ -344,7 +344,7 @@ export const SenderVariableNameMap: Record<
|
|
|
344
344
|
VariableNameValueType
|
|
345
345
|
> = {
|
|
346
346
|
'sender.is_internal': {
|
|
347
|
-
text: 'Sender
|
|
347
|
+
text: 'Sender Is Internal',
|
|
348
348
|
type: 'boolean',
|
|
349
349
|
filters: ['IS'],
|
|
350
350
|
variable_type: 'boolean',
|
|
@@ -357,14 +357,14 @@ export const SenderVariableNameMap: Record<
|
|
|
357
357
|
variable_type: 'string',
|
|
358
358
|
},
|
|
359
359
|
'sender.contact_id': {
|
|
360
|
-
text: 'Sender
|
|
360
|
+
text: 'Sender Phone',
|
|
361
361
|
type: 'string',
|
|
362
362
|
filters: ['EQ', 'NEQ'],
|
|
363
363
|
placeholder: 'e.g. 919876543210',
|
|
364
364
|
variable_type: 'string',
|
|
365
365
|
},
|
|
366
366
|
'sender.labels': {
|
|
367
|
-
text: 'Sender Labels',
|
|
367
|
+
text: 'Sender Contact Labels',
|
|
368
368
|
type: 'dropdown',
|
|
369
369
|
value: 'org.labels',
|
|
370
370
|
filters: ['CONTAINS', 'NCONTAINS'],
|
|
@@ -377,26 +377,8 @@ export const SenderVariableNameMap: Record<
|
|
|
377
377
|
hidden: true,
|
|
378
378
|
variable_type: 'string',
|
|
379
379
|
},
|
|
380
|
-
'sender.is_super_admin': {
|
|
381
|
-
text: 'Sender is super admin',
|
|
382
|
-
type: 'dropdown',
|
|
383
|
-
filters: ['EQ', 'NEQ'],
|
|
384
|
-
value: [
|
|
385
|
-
{
|
|
386
|
-
id: 'true',
|
|
387
|
-
value: 'true',
|
|
388
|
-
label: 'True',
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
id: 'false',
|
|
392
|
-
value: 'false',
|
|
393
|
-
label: 'False',
|
|
394
|
-
},
|
|
395
|
-
],
|
|
396
|
-
variable_type: 'boolean',
|
|
397
|
-
},
|
|
398
380
|
'sender.is_admin': {
|
|
399
|
-
text: 'Sender
|
|
381
|
+
text: 'Sender Is Admin',
|
|
400
382
|
type: 'dropdown',
|
|
401
383
|
filters: ['EQ', 'NEQ'],
|
|
402
384
|
value: [
|
|
@@ -486,7 +468,7 @@ export const ChatVariableNameMap: Record<
|
|
|
486
468
|
variable_type: 'string',
|
|
487
469
|
},
|
|
488
470
|
'chat.messages_admins_only': {
|
|
489
|
-
text: '
|
|
471
|
+
text: 'Messages Admins Only (Chat Settings)',
|
|
490
472
|
type: 'boolean',
|
|
491
473
|
filters: ['EQ', 'NEQ'],
|
|
492
474
|
value: [
|
|
@@ -504,7 +486,7 @@ export const ChatVariableNameMap: Record<
|
|
|
504
486
|
variable_type: 'boolean',
|
|
505
487
|
},
|
|
506
488
|
'chat.info_admins_only': {
|
|
507
|
-
text: '
|
|
489
|
+
text: 'Info Admins Only (Chat Settings)',
|
|
508
490
|
type: 'boolean',
|
|
509
491
|
filters: ['EQ', 'NEQ'],
|
|
510
492
|
value: [
|
|
@@ -522,7 +504,7 @@ export const ChatVariableNameMap: Record<
|
|
|
522
504
|
variable_type: 'boolean',
|
|
523
505
|
},
|
|
524
506
|
'chat.has_flagged_messages': {
|
|
525
|
-
text: 'Chat
|
|
507
|
+
text: 'Chat Has Flagged Messages',
|
|
526
508
|
type: 'boolean',
|
|
527
509
|
filters: ['EQ', 'NEQ'],
|
|
528
510
|
value: [
|
|
@@ -628,7 +610,7 @@ export const TicketVariableNameMap: Record<
|
|
|
628
610
|
variable_type: 'string',
|
|
629
611
|
},
|
|
630
612
|
'ticket.is_deleted': {
|
|
631
|
-
text: 'Ticket
|
|
613
|
+
text: 'Ticket Is Deleted',
|
|
632
614
|
type: 'boolean',
|
|
633
615
|
value: [
|
|
634
616
|
{
|
package/supabase.types.ts
CHANGED
|
@@ -749,7 +749,6 @@ export type Database = {
|
|
|
749
749
|
latest_message_timestamp: string | null
|
|
750
750
|
org_id: string
|
|
751
751
|
unread_count: Json | null
|
|
752
|
-
unread_count_map: Json | null
|
|
753
752
|
updated_at: string | null
|
|
754
753
|
}
|
|
755
754
|
Insert: {
|
|
@@ -768,7 +767,6 @@ export type Database = {
|
|
|
768
767
|
latest_message_timestamp?: string | null
|
|
769
768
|
org_id: string
|
|
770
769
|
unread_count?: Json | null
|
|
771
|
-
unread_count_map?: Json | null
|
|
772
770
|
updated_at?: string | null
|
|
773
771
|
}
|
|
774
772
|
Update: {
|
|
@@ -787,7 +785,6 @@ export type Database = {
|
|
|
787
785
|
latest_message_timestamp?: string | null
|
|
788
786
|
org_id?: string
|
|
789
787
|
unread_count?: Json | null
|
|
790
|
-
unread_count_map?: Json | null
|
|
791
788
|
updated_at?: string | null
|
|
792
789
|
}
|
|
793
790
|
Relationships: []
|
|
@@ -958,6 +955,7 @@ export type Database = {
|
|
|
958
955
|
is_read_only: boolean | null
|
|
959
956
|
latest_message: Json | null
|
|
960
957
|
member_count: number | null
|
|
958
|
+
member_unread_count: Json | null
|
|
961
959
|
mute_expiration: number | null
|
|
962
960
|
name: string | null
|
|
963
961
|
org_id: string
|
|
@@ -984,6 +982,7 @@ export type Database = {
|
|
|
984
982
|
is_read_only?: boolean | null
|
|
985
983
|
latest_message?: Json | null
|
|
986
984
|
member_count?: number | null
|
|
985
|
+
member_unread_count?: Json | null
|
|
987
986
|
mute_expiration?: number | null
|
|
988
987
|
name?: string | null
|
|
989
988
|
org_id: string
|
|
@@ -1010,6 +1009,7 @@ export type Database = {
|
|
|
1010
1009
|
is_read_only?: boolean | null
|
|
1011
1010
|
latest_message?: Json | null
|
|
1012
1011
|
member_count?: number | null
|
|
1012
|
+
member_unread_count?: Json | null
|
|
1013
1013
|
mute_expiration?: number | null
|
|
1014
1014
|
name?: string | null
|
|
1015
1015
|
org_id?: string
|
|
@@ -2060,10 +2060,7 @@ export type Database = {
|
|
|
2060
2060
|
Args: {
|
|
2061
2061
|
org_id_input: string
|
|
2062
2062
|
}
|
|
2063
|
-
Returns:
|
|
2064
|
-
feature: string
|
|
2065
|
-
enabled: boolean
|
|
2066
|
-
}[]
|
|
2063
|
+
Returns: Json
|
|
2067
2064
|
}
|
|
2068
2065
|
get_integration_data: {
|
|
2069
2066
|
Args: {
|
|
@@ -2179,7 +2176,7 @@ export type Database = {
|
|
|
2179
2176
|
column_name: string
|
|
2180
2177
|
org_id_input: string
|
|
2181
2178
|
chat_id_input: string[]
|
|
2182
|
-
column_value_input?:
|
|
2179
|
+
column_value_input?: string
|
|
2183
2180
|
key_input?: string
|
|
2184
2181
|
value_input?: Json
|
|
2185
2182
|
}
|
|
@@ -2657,4 +2654,4 @@ export type Enums<
|
|
|
2657
2654
|
? PublicSchema["Enums"][PublicEnumNameOrOptions]
|
|
2658
2655
|
: never
|
|
2659
2656
|
|
|
2660
|
-
|
|
2657
|
+
|