@periskope/types 0.6.170 → 0.6.172
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 +1 -0
- package/dist/rules.types.js +20 -5
- package/dist/supabase.types.d.ts +40 -13
- package/dist/types.d.ts +16 -0
- package/package.json +1 -1
- package/rules.types.ts +21 -5
- package/supabase.types.ts +40 -15
- package/types.ts +21 -0
package/dist/rules.types.d.ts
CHANGED
package/dist/rules.types.js
CHANGED
|
@@ -793,15 +793,28 @@ exports.ActionNameMap = {
|
|
|
793
793
|
],
|
|
794
794
|
},
|
|
795
795
|
create_ticket: {
|
|
796
|
-
title: 'Create Ticket',
|
|
797
|
-
description: 'Create a ticket',
|
|
796
|
+
title: 'Create Ticket or Attach Message To Latest Ticket',
|
|
797
|
+
description: 'Create a ticket or attach message to latest ticket',
|
|
798
798
|
inputs: {
|
|
799
|
+
append_to_latest_ticket: {
|
|
800
|
+
id: 'append_to_latest_ticket',
|
|
801
|
+
type: 'dropdown',
|
|
802
|
+
value: [
|
|
803
|
+
{ id: 'true', value: 'true', label: 'True' },
|
|
804
|
+
{ id: 'false', value: 'false', label: 'False' },
|
|
805
|
+
],
|
|
806
|
+
label: 'Attach message to latest ticket (if available)',
|
|
807
|
+
placeholder: 'Select...',
|
|
808
|
+
info: 'If enabled, the message will be appended to the latest open ticket (if available) else a new ticket will be created',
|
|
809
|
+
required: false,
|
|
810
|
+
},
|
|
799
811
|
assignee: {
|
|
800
812
|
id: 'assignee',
|
|
801
813
|
type: 'dropdown',
|
|
802
814
|
value: 'org.members',
|
|
803
|
-
label: 'Assignee',
|
|
815
|
+
label: 'Assignee (New Ticket)',
|
|
804
816
|
placeholder: 'Select assignee',
|
|
817
|
+
info: 'Only applicable for create ticket. If no assignee is selected, the ticket will be unassigned.',
|
|
805
818
|
required: false,
|
|
806
819
|
},
|
|
807
820
|
priority: {
|
|
@@ -814,16 +827,18 @@ exports.ActionNameMap = {
|
|
|
814
827
|
{ id: '3', value: '3', label: 'High' },
|
|
815
828
|
{ id: '4', value: '4', label: 'Urgent' },
|
|
816
829
|
],
|
|
817
|
-
label: 'Priority',
|
|
830
|
+
label: 'Priority (New Ticket)',
|
|
818
831
|
placeholder: 'Select priority',
|
|
832
|
+
info: 'Only applicable for create ticket. If no priority is selected, the ticket will have no priority.',
|
|
819
833
|
required: false,
|
|
820
834
|
},
|
|
821
835
|
label: {
|
|
822
836
|
id: 'label',
|
|
823
837
|
type: 'dropdown',
|
|
824
838
|
value: 'ticket.labels',
|
|
825
|
-
label: 'Label',
|
|
839
|
+
label: 'Label (New Ticket)',
|
|
826
840
|
placeholder: 'Select label',
|
|
841
|
+
info: 'Only applicable for create ticket. If no label is selected, the ticket will have no label.',
|
|
827
842
|
required: false,
|
|
828
843
|
},
|
|
829
844
|
},
|
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2,6 +2,31 @@ export type Json = {
|
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
} | any;
|
|
4
4
|
export type Database = {
|
|
5
|
+
graphql_public: {
|
|
6
|
+
Tables: {
|
|
7
|
+
[_ in never]: never;
|
|
8
|
+
};
|
|
9
|
+
Views: {
|
|
10
|
+
[_ in never]: never;
|
|
11
|
+
};
|
|
12
|
+
Functions: {
|
|
13
|
+
graphql: {
|
|
14
|
+
Args: {
|
|
15
|
+
operationName?: string;
|
|
16
|
+
query?: string;
|
|
17
|
+
variables?: Json;
|
|
18
|
+
extensions?: Json;
|
|
19
|
+
};
|
|
20
|
+
Returns: Json;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
Enums: {
|
|
24
|
+
[_ in never]: never;
|
|
25
|
+
};
|
|
26
|
+
CompositeTypes: {
|
|
27
|
+
[_ in never]: never;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
5
30
|
internal: {
|
|
6
31
|
Tables: {
|
|
7
32
|
config: {
|
|
@@ -1327,6 +1352,7 @@ export type Database = {
|
|
|
1327
1352
|
tbl_org: {
|
|
1328
1353
|
Row: {
|
|
1329
1354
|
created_at: string;
|
|
1355
|
+
is_platform: boolean | null;
|
|
1330
1356
|
org_id: string;
|
|
1331
1357
|
org_image: string | null;
|
|
1332
1358
|
org_metadata: Json | null;
|
|
@@ -1339,6 +1365,7 @@ export type Database = {
|
|
|
1339
1365
|
};
|
|
1340
1366
|
Insert: {
|
|
1341
1367
|
created_at?: string;
|
|
1368
|
+
is_platform?: boolean | null;
|
|
1342
1369
|
org_id?: string;
|
|
1343
1370
|
org_image?: string | null;
|
|
1344
1371
|
org_metadata?: Json | null;
|
|
@@ -1351,6 +1378,7 @@ export type Database = {
|
|
|
1351
1378
|
};
|
|
1352
1379
|
Update: {
|
|
1353
1380
|
created_at?: string;
|
|
1381
|
+
is_platform?: boolean | null;
|
|
1354
1382
|
org_id?: string;
|
|
1355
1383
|
org_image?: string | null;
|
|
1356
1384
|
org_metadata?: Json | null;
|
|
@@ -1487,6 +1515,7 @@ export type Database = {
|
|
|
1487
1515
|
first_connected_at: string | null;
|
|
1488
1516
|
is_browser_open: boolean;
|
|
1489
1517
|
is_ready: boolean | null;
|
|
1518
|
+
label_ids: Json | null;
|
|
1490
1519
|
legacy_version: boolean | null;
|
|
1491
1520
|
library: string | null;
|
|
1492
1521
|
org_id: string;
|
|
@@ -1496,6 +1525,7 @@ export type Database = {
|
|
|
1496
1525
|
phone_name: string | null;
|
|
1497
1526
|
phone_state: Json | null;
|
|
1498
1527
|
qr_code: string | null;
|
|
1528
|
+
queue_status: Json | null;
|
|
1499
1529
|
server_image: string | null;
|
|
1500
1530
|
server_ip: string | null;
|
|
1501
1531
|
soft_restart: boolean;
|
|
@@ -1508,6 +1538,7 @@ export type Database = {
|
|
|
1508
1538
|
first_connected_at?: string | null;
|
|
1509
1539
|
is_browser_open?: boolean;
|
|
1510
1540
|
is_ready?: boolean | null;
|
|
1541
|
+
label_ids?: Json | null;
|
|
1511
1542
|
legacy_version?: boolean | null;
|
|
1512
1543
|
library?: string | null;
|
|
1513
1544
|
org_id: string;
|
|
@@ -1517,6 +1548,7 @@ export type Database = {
|
|
|
1517
1548
|
phone_name?: string | null;
|
|
1518
1549
|
phone_state?: Json | null;
|
|
1519
1550
|
qr_code?: string | null;
|
|
1551
|
+
queue_status?: Json | null;
|
|
1520
1552
|
server_image?: string | null;
|
|
1521
1553
|
server_ip?: string | null;
|
|
1522
1554
|
soft_restart?: boolean;
|
|
@@ -1529,6 +1561,7 @@ export type Database = {
|
|
|
1529
1561
|
first_connected_at?: string | null;
|
|
1530
1562
|
is_browser_open?: boolean;
|
|
1531
1563
|
is_ready?: boolean | null;
|
|
1564
|
+
label_ids?: Json | null;
|
|
1532
1565
|
legacy_version?: boolean | null;
|
|
1533
1566
|
library?: string | null;
|
|
1534
1567
|
org_id?: string;
|
|
@@ -1538,6 +1571,7 @@ export type Database = {
|
|
|
1538
1571
|
phone_name?: string | null;
|
|
1539
1572
|
phone_state?: Json | null;
|
|
1540
1573
|
qr_code?: string | null;
|
|
1574
|
+
queue_status?: Json | null;
|
|
1541
1575
|
server_image?: string | null;
|
|
1542
1576
|
server_ip?: string | null;
|
|
1543
1577
|
soft_restart?: boolean;
|
|
@@ -1671,7 +1705,7 @@ export type Database = {
|
|
|
1671
1705
|
log_id: string;
|
|
1672
1706
|
metadata: Json | null;
|
|
1673
1707
|
org_id: string;
|
|
1674
|
-
rule_id: string;
|
|
1708
|
+
rule_id: string | null;
|
|
1675
1709
|
trace_id: string | null;
|
|
1676
1710
|
trigger: string;
|
|
1677
1711
|
};
|
|
@@ -1682,7 +1716,7 @@ export type Database = {
|
|
|
1682
1716
|
log_id?: string;
|
|
1683
1717
|
metadata?: Json | null;
|
|
1684
1718
|
org_id: string;
|
|
1685
|
-
rule_id
|
|
1719
|
+
rule_id?: string | null;
|
|
1686
1720
|
trace_id?: string | null;
|
|
1687
1721
|
trigger: string;
|
|
1688
1722
|
};
|
|
@@ -1693,7 +1727,7 @@ export type Database = {
|
|
|
1693
1727
|
log_id?: string;
|
|
1694
1728
|
metadata?: Json | null;
|
|
1695
1729
|
org_id?: string;
|
|
1696
|
-
rule_id?: string;
|
|
1730
|
+
rule_id?: string | null;
|
|
1697
1731
|
trace_id?: string | null;
|
|
1698
1732
|
trigger?: string;
|
|
1699
1733
|
};
|
|
@@ -1911,6 +1945,7 @@ export type Database = {
|
|
|
1911
1945
|
is_free_trial: boolean | null;
|
|
1912
1946
|
is_freshdesk_connected: boolean | null;
|
|
1913
1947
|
is_hubspot_connected: boolean | null;
|
|
1948
|
+
is_platform: boolean | null;
|
|
1914
1949
|
is_zohodesk_connected: boolean | null;
|
|
1915
1950
|
org_id: string | null;
|
|
1916
1951
|
org_image: string | null;
|
|
@@ -1934,6 +1969,7 @@ export type Database = {
|
|
|
1934
1969
|
is_free_trial?: never;
|
|
1935
1970
|
is_freshdesk_connected?: never;
|
|
1936
1971
|
is_hubspot_connected?: never;
|
|
1972
|
+
is_platform?: boolean | null;
|
|
1937
1973
|
is_zohodesk_connected?: never;
|
|
1938
1974
|
org_id?: string | null;
|
|
1939
1975
|
org_image?: string | null;
|
|
@@ -1957,6 +1993,7 @@ export type Database = {
|
|
|
1957
1993
|
is_free_trial?: never;
|
|
1958
1994
|
is_freshdesk_connected?: never;
|
|
1959
1995
|
is_hubspot_connected?: never;
|
|
1996
|
+
is_platform?: boolean | null;
|
|
1960
1997
|
is_zohodesk_connected?: never;
|
|
1961
1998
|
org_id?: string | null;
|
|
1962
1999
|
org_image?: string | null;
|
|
@@ -2334,7 +2371,6 @@ export type Database = {
|
|
|
2334
2371
|
owner_id: string | null;
|
|
2335
2372
|
path_tokens: string[] | null;
|
|
2336
2373
|
updated_at: string | null;
|
|
2337
|
-
user_metadata: Json | null;
|
|
2338
2374
|
version: string | null;
|
|
2339
2375
|
};
|
|
2340
2376
|
Insert: {
|
|
@@ -2348,7 +2384,6 @@ export type Database = {
|
|
|
2348
2384
|
owner_id?: string | null;
|
|
2349
2385
|
path_tokens?: string[] | null;
|
|
2350
2386
|
updated_at?: string | null;
|
|
2351
|
-
user_metadata?: Json | null;
|
|
2352
2387
|
version?: string | null;
|
|
2353
2388
|
};
|
|
2354
2389
|
Update: {
|
|
@@ -2362,7 +2397,6 @@ export type Database = {
|
|
|
2362
2397
|
owner_id?: string | null;
|
|
2363
2398
|
path_tokens?: string[] | null;
|
|
2364
2399
|
updated_at?: string | null;
|
|
2365
|
-
user_metadata?: Json | null;
|
|
2366
2400
|
version?: string | null;
|
|
2367
2401
|
};
|
|
2368
2402
|
Relationships: [
|
|
@@ -2384,7 +2418,6 @@ export type Database = {
|
|
|
2384
2418
|
key: string;
|
|
2385
2419
|
owner_id: string | null;
|
|
2386
2420
|
upload_signature: string;
|
|
2387
|
-
user_metadata: Json | null;
|
|
2388
2421
|
version: string;
|
|
2389
2422
|
};
|
|
2390
2423
|
Insert: {
|
|
@@ -2395,7 +2428,6 @@ export type Database = {
|
|
|
2395
2428
|
key: string;
|
|
2396
2429
|
owner_id?: string | null;
|
|
2397
2430
|
upload_signature: string;
|
|
2398
|
-
user_metadata?: Json | null;
|
|
2399
2431
|
version: string;
|
|
2400
2432
|
};
|
|
2401
2433
|
Update: {
|
|
@@ -2406,7 +2438,6 @@ export type Database = {
|
|
|
2406
2438
|
key?: string;
|
|
2407
2439
|
owner_id?: string | null;
|
|
2408
2440
|
upload_signature?: string;
|
|
2409
|
-
user_metadata?: Json | null;
|
|
2410
2441
|
version?: string;
|
|
2411
2442
|
};
|
|
2412
2443
|
Relationships: [
|
|
@@ -2543,10 +2574,6 @@ export type Database = {
|
|
|
2543
2574
|
updated_at: string;
|
|
2544
2575
|
}[];
|
|
2545
2576
|
};
|
|
2546
|
-
operation: {
|
|
2547
|
-
Args: Record<PropertyKey, never>;
|
|
2548
|
-
Returns: string;
|
|
2549
|
-
};
|
|
2550
2577
|
search: {
|
|
2551
2578
|
Args: {
|
|
2552
2579
|
prefix: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -221,6 +221,22 @@ export type ChatAccessType = Merge<TablesUpdate<'tbl_org_members'>, {
|
|
|
221
221
|
has_access?: boolean;
|
|
222
222
|
email: string | null;
|
|
223
223
|
}>;
|
|
224
|
+
export type PhoneQueueStatusType = {
|
|
225
|
+
active: number;
|
|
226
|
+
failed: number;
|
|
227
|
+
completed: number;
|
|
228
|
+
is_running: boolean;
|
|
229
|
+
prioritized: number;
|
|
230
|
+
};
|
|
231
|
+
export type PhoneType = OverrideProperties<Tables<'tbl_org_phones'>, {
|
|
232
|
+
queue_status: {
|
|
233
|
+
contacts: PhoneQueueStatusType;
|
|
234
|
+
messages: PhoneQueueStatusType;
|
|
235
|
+
'message-ack': PhoneQueueStatusType;
|
|
236
|
+
'store-messages': PhoneQueueStatusType;
|
|
237
|
+
'store-reactions': PhoneQueueStatusType;
|
|
238
|
+
};
|
|
239
|
+
}>;
|
|
224
240
|
export declare const labelColors: string[];
|
|
225
241
|
export declare const enumChatColors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
|
226
242
|
export declare const SUPPORTED_TYPES: readonly ["chat", "sticker", "image", "video", "document", "vcard", "multi_vcard", "audio", "ptt", "poll_creation", "location", "ciphertext"];
|
package/package.json
CHANGED
package/rules.types.ts
CHANGED
|
@@ -802,6 +802,7 @@ export type CreateTicketAction = {
|
|
|
802
802
|
assignee?: string;
|
|
803
803
|
priority?: '0' | '1' | '2' | '3' | '4';
|
|
804
804
|
label?: string;
|
|
805
|
+
append_to_latest_ticket?: boolean;
|
|
805
806
|
};
|
|
806
807
|
};
|
|
807
808
|
|
|
@@ -1224,15 +1225,28 @@ export const ActionNameMap: Record<
|
|
|
1224
1225
|
],
|
|
1225
1226
|
},
|
|
1226
1227
|
create_ticket: {
|
|
1227
|
-
title: 'Create Ticket',
|
|
1228
|
-
description: 'Create a ticket',
|
|
1228
|
+
title: 'Create Ticket or Attach Message To Latest Ticket',
|
|
1229
|
+
description: 'Create a ticket or attach message to latest ticket',
|
|
1229
1230
|
inputs: {
|
|
1231
|
+
append_to_latest_ticket: {
|
|
1232
|
+
id: 'append_to_latest_ticket',
|
|
1233
|
+
type: 'dropdown',
|
|
1234
|
+
value: [
|
|
1235
|
+
{ id: 'true', value: 'true', label: 'True' },
|
|
1236
|
+
{ id: 'false', value: 'false', label: 'False' },
|
|
1237
|
+
],
|
|
1238
|
+
label: 'Attach message to latest ticket (if available)',
|
|
1239
|
+
placeholder: 'Select...',
|
|
1240
|
+
info: 'If enabled, the message will be appended to the latest open ticket (if available) else a new ticket will be created',
|
|
1241
|
+
required: false,
|
|
1242
|
+
},
|
|
1230
1243
|
assignee: {
|
|
1231
1244
|
id: 'assignee',
|
|
1232
1245
|
type: 'dropdown',
|
|
1233
1246
|
value: 'org.members',
|
|
1234
|
-
label: 'Assignee',
|
|
1247
|
+
label: 'Assignee (New Ticket)',
|
|
1235
1248
|
placeholder: 'Select assignee',
|
|
1249
|
+
info: 'Only applicable for create ticket. If no assignee is selected, the ticket will be unassigned.',
|
|
1236
1250
|
required: false,
|
|
1237
1251
|
},
|
|
1238
1252
|
priority: {
|
|
@@ -1245,16 +1259,18 @@ export const ActionNameMap: Record<
|
|
|
1245
1259
|
{ id: '3', value: '3', label: 'High' },
|
|
1246
1260
|
{ id: '4', value: '4', label: 'Urgent' },
|
|
1247
1261
|
],
|
|
1248
|
-
label: 'Priority',
|
|
1262
|
+
label: 'Priority (New Ticket)',
|
|
1249
1263
|
placeholder: 'Select priority',
|
|
1264
|
+
info: 'Only applicable for create ticket. If no priority is selected, the ticket will have no priority.',
|
|
1250
1265
|
required: false,
|
|
1251
1266
|
},
|
|
1252
1267
|
label: {
|
|
1253
1268
|
id: 'label',
|
|
1254
1269
|
type: 'dropdown',
|
|
1255
1270
|
value: 'ticket.labels',
|
|
1256
|
-
label: 'Label',
|
|
1271
|
+
label: 'Label (New Ticket)',
|
|
1257
1272
|
placeholder: 'Select label',
|
|
1273
|
+
info: 'Only applicable for create ticket. If no label is selected, the ticket will have no label.',
|
|
1258
1274
|
required: false,
|
|
1259
1275
|
},
|
|
1260
1276
|
},
|
package/supabase.types.ts
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
export type Json = { [key: string]: any } | any
|
|
2
2
|
|
|
3
3
|
export type Database = {
|
|
4
|
+
graphql_public: {
|
|
5
|
+
Tables: {
|
|
6
|
+
[_ in never]: never
|
|
7
|
+
}
|
|
8
|
+
Views: {
|
|
9
|
+
[_ in never]: never
|
|
10
|
+
}
|
|
11
|
+
Functions: {
|
|
12
|
+
graphql: {
|
|
13
|
+
Args: {
|
|
14
|
+
operationName?: string
|
|
15
|
+
query?: string
|
|
16
|
+
variables?: Json
|
|
17
|
+
extensions?: Json
|
|
18
|
+
}
|
|
19
|
+
Returns: Json
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
Enums: {
|
|
23
|
+
[_ in never]: never
|
|
24
|
+
}
|
|
25
|
+
CompositeTypes: {
|
|
26
|
+
[_ in never]: never
|
|
27
|
+
}
|
|
28
|
+
}
|
|
4
29
|
internal: {
|
|
5
30
|
Tables: {
|
|
6
31
|
config: {
|
|
@@ -1336,6 +1361,7 @@ export type Database = {
|
|
|
1336
1361
|
tbl_org: {
|
|
1337
1362
|
Row: {
|
|
1338
1363
|
created_at: string
|
|
1364
|
+
is_platform: boolean | null
|
|
1339
1365
|
org_id: string
|
|
1340
1366
|
org_image: string | null
|
|
1341
1367
|
org_metadata: Json | null
|
|
@@ -1348,6 +1374,7 @@ export type Database = {
|
|
|
1348
1374
|
}
|
|
1349
1375
|
Insert: {
|
|
1350
1376
|
created_at?: string
|
|
1377
|
+
is_platform?: boolean | null
|
|
1351
1378
|
org_id?: string
|
|
1352
1379
|
org_image?: string | null
|
|
1353
1380
|
org_metadata?: Json | null
|
|
@@ -1360,6 +1387,7 @@ export type Database = {
|
|
|
1360
1387
|
}
|
|
1361
1388
|
Update: {
|
|
1362
1389
|
created_at?: string
|
|
1390
|
+
is_platform?: boolean | null
|
|
1363
1391
|
org_id?: string
|
|
1364
1392
|
org_image?: string | null
|
|
1365
1393
|
org_metadata?: Json | null
|
|
@@ -1496,6 +1524,7 @@ export type Database = {
|
|
|
1496
1524
|
first_connected_at: string | null
|
|
1497
1525
|
is_browser_open: boolean
|
|
1498
1526
|
is_ready: boolean | null
|
|
1527
|
+
label_ids: Json | null
|
|
1499
1528
|
legacy_version: boolean | null
|
|
1500
1529
|
library: string | null
|
|
1501
1530
|
org_id: string
|
|
@@ -1505,6 +1534,7 @@ export type Database = {
|
|
|
1505
1534
|
phone_name: string | null
|
|
1506
1535
|
phone_state: Json | null
|
|
1507
1536
|
qr_code: string | null
|
|
1537
|
+
queue_status: Json | null
|
|
1508
1538
|
server_image: string | null
|
|
1509
1539
|
server_ip: string | null
|
|
1510
1540
|
soft_restart: boolean
|
|
@@ -1517,6 +1547,7 @@ export type Database = {
|
|
|
1517
1547
|
first_connected_at?: string | null
|
|
1518
1548
|
is_browser_open?: boolean
|
|
1519
1549
|
is_ready?: boolean | null
|
|
1550
|
+
label_ids?: Json | null
|
|
1520
1551
|
legacy_version?: boolean | null
|
|
1521
1552
|
library?: string | null
|
|
1522
1553
|
org_id: string
|
|
@@ -1526,6 +1557,7 @@ export type Database = {
|
|
|
1526
1557
|
phone_name?: string | null
|
|
1527
1558
|
phone_state?: Json | null
|
|
1528
1559
|
qr_code?: string | null
|
|
1560
|
+
queue_status?: Json | null
|
|
1529
1561
|
server_image?: string | null
|
|
1530
1562
|
server_ip?: string | null
|
|
1531
1563
|
soft_restart?: boolean
|
|
@@ -1538,6 +1570,7 @@ export type Database = {
|
|
|
1538
1570
|
first_connected_at?: string | null
|
|
1539
1571
|
is_browser_open?: boolean
|
|
1540
1572
|
is_ready?: boolean | null
|
|
1573
|
+
label_ids?: Json | null
|
|
1541
1574
|
legacy_version?: boolean | null
|
|
1542
1575
|
library?: string | null
|
|
1543
1576
|
org_id?: string
|
|
@@ -1547,6 +1580,7 @@ export type Database = {
|
|
|
1547
1580
|
phone_name?: string | null
|
|
1548
1581
|
phone_state?: Json | null
|
|
1549
1582
|
qr_code?: string | null
|
|
1583
|
+
queue_status?: Json | null
|
|
1550
1584
|
server_image?: string | null
|
|
1551
1585
|
server_ip?: string | null
|
|
1552
1586
|
soft_restart?: boolean
|
|
@@ -1680,7 +1714,7 @@ export type Database = {
|
|
|
1680
1714
|
log_id: string
|
|
1681
1715
|
metadata: Json | null
|
|
1682
1716
|
org_id: string
|
|
1683
|
-
rule_id: string
|
|
1717
|
+
rule_id: string | null
|
|
1684
1718
|
trace_id: string | null
|
|
1685
1719
|
trigger: string
|
|
1686
1720
|
}
|
|
@@ -1691,7 +1725,7 @@ export type Database = {
|
|
|
1691
1725
|
log_id?: string
|
|
1692
1726
|
metadata?: Json | null
|
|
1693
1727
|
org_id: string
|
|
1694
|
-
rule_id
|
|
1728
|
+
rule_id?: string | null
|
|
1695
1729
|
trace_id?: string | null
|
|
1696
1730
|
trigger: string
|
|
1697
1731
|
}
|
|
@@ -1702,7 +1736,7 @@ export type Database = {
|
|
|
1702
1736
|
log_id?: string
|
|
1703
1737
|
metadata?: Json | null
|
|
1704
1738
|
org_id?: string
|
|
1705
|
-
rule_id?: string
|
|
1739
|
+
rule_id?: string | null
|
|
1706
1740
|
trace_id?: string | null
|
|
1707
1741
|
trigger?: string
|
|
1708
1742
|
}
|
|
@@ -1922,6 +1956,7 @@ export type Database = {
|
|
|
1922
1956
|
is_free_trial: boolean | null
|
|
1923
1957
|
is_freshdesk_connected: boolean | null
|
|
1924
1958
|
is_hubspot_connected: boolean | null
|
|
1959
|
+
is_platform: boolean | null
|
|
1925
1960
|
is_zohodesk_connected: boolean | null
|
|
1926
1961
|
org_id: string | null
|
|
1927
1962
|
org_image: string | null
|
|
@@ -1945,6 +1980,7 @@ export type Database = {
|
|
|
1945
1980
|
is_free_trial?: never
|
|
1946
1981
|
is_freshdesk_connected?: never
|
|
1947
1982
|
is_hubspot_connected?: never
|
|
1983
|
+
is_platform?: boolean | null
|
|
1948
1984
|
is_zohodesk_connected?: never
|
|
1949
1985
|
org_id?: string | null
|
|
1950
1986
|
org_image?: string | null
|
|
@@ -1968,6 +2004,7 @@ export type Database = {
|
|
|
1968
2004
|
is_free_trial?: never
|
|
1969
2005
|
is_freshdesk_connected?: never
|
|
1970
2006
|
is_hubspot_connected?: never
|
|
2007
|
+
is_platform?: boolean | null
|
|
1971
2008
|
is_zohodesk_connected?: never
|
|
1972
2009
|
org_id?: string | null
|
|
1973
2010
|
org_image?: string | null
|
|
@@ -2397,7 +2434,6 @@ export type Database = {
|
|
|
2397
2434
|
owner_id: string | null
|
|
2398
2435
|
path_tokens: string[] | null
|
|
2399
2436
|
updated_at: string | null
|
|
2400
|
-
user_metadata: Json | null
|
|
2401
2437
|
version: string | null
|
|
2402
2438
|
}
|
|
2403
2439
|
Insert: {
|
|
@@ -2411,7 +2447,6 @@ export type Database = {
|
|
|
2411
2447
|
owner_id?: string | null
|
|
2412
2448
|
path_tokens?: string[] | null
|
|
2413
2449
|
updated_at?: string | null
|
|
2414
|
-
user_metadata?: Json | null
|
|
2415
2450
|
version?: string | null
|
|
2416
2451
|
}
|
|
2417
2452
|
Update: {
|
|
@@ -2425,7 +2460,6 @@ export type Database = {
|
|
|
2425
2460
|
owner_id?: string | null
|
|
2426
2461
|
path_tokens?: string[] | null
|
|
2427
2462
|
updated_at?: string | null
|
|
2428
|
-
user_metadata?: Json | null
|
|
2429
2463
|
version?: string | null
|
|
2430
2464
|
}
|
|
2431
2465
|
Relationships: [
|
|
@@ -2447,7 +2481,6 @@ export type Database = {
|
|
|
2447
2481
|
key: string
|
|
2448
2482
|
owner_id: string | null
|
|
2449
2483
|
upload_signature: string
|
|
2450
|
-
user_metadata: Json | null
|
|
2451
2484
|
version: string
|
|
2452
2485
|
}
|
|
2453
2486
|
Insert: {
|
|
@@ -2458,7 +2491,6 @@ export type Database = {
|
|
|
2458
2491
|
key: string
|
|
2459
2492
|
owner_id?: string | null
|
|
2460
2493
|
upload_signature: string
|
|
2461
|
-
user_metadata?: Json | null
|
|
2462
2494
|
version: string
|
|
2463
2495
|
}
|
|
2464
2496
|
Update: {
|
|
@@ -2469,7 +2501,6 @@ export type Database = {
|
|
|
2469
2501
|
key?: string
|
|
2470
2502
|
owner_id?: string | null
|
|
2471
2503
|
upload_signature?: string
|
|
2472
|
-
user_metadata?: Json | null
|
|
2473
2504
|
version?: string
|
|
2474
2505
|
}
|
|
2475
2506
|
Relationships: [
|
|
@@ -2606,10 +2637,6 @@ export type Database = {
|
|
|
2606
2637
|
updated_at: string
|
|
2607
2638
|
}[]
|
|
2608
2639
|
}
|
|
2609
|
-
operation: {
|
|
2610
|
-
Args: Record<PropertyKey, never>
|
|
2611
|
-
Returns: string
|
|
2612
|
-
}
|
|
2613
2640
|
search: {
|
|
2614
2641
|
Args: {
|
|
2615
2642
|
prefix: string
|
|
@@ -2721,5 +2748,3 @@ export type Enums<
|
|
|
2721
2748
|
: PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
|
|
2722
2749
|
? PublicSchema["Enums"][PublicEnumNameOrOptions]
|
|
2723
2750
|
: never
|
|
2724
|
-
|
|
2725
|
-
|
package/types.ts
CHANGED
|
@@ -269,6 +269,27 @@ export type ChatAccessType = Merge<
|
|
|
269
269
|
}
|
|
270
270
|
>;
|
|
271
271
|
|
|
272
|
+
export type PhoneQueueStatusType = {
|
|
273
|
+
active: number;
|
|
274
|
+
failed: number;
|
|
275
|
+
completed: number;
|
|
276
|
+
is_running: boolean;
|
|
277
|
+
prioritized: number;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export type PhoneType = OverrideProperties<
|
|
281
|
+
Tables<'tbl_org_phones'>,
|
|
282
|
+
{
|
|
283
|
+
queue_status: {
|
|
284
|
+
contacts: PhoneQueueStatusType;
|
|
285
|
+
messages: PhoneQueueStatusType;
|
|
286
|
+
'message-ack': PhoneQueueStatusType;
|
|
287
|
+
'store-messages': PhoneQueueStatusType;
|
|
288
|
+
'store-reactions': PhoneQueueStatusType;
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
>;
|
|
292
|
+
|
|
272
293
|
/* -------------------------------- CONSTANTS ------------------------------- */
|
|
273
294
|
|
|
274
295
|
export const labelColors = [
|