@periskope/types 0.6.85 → 0.6.87
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 +33 -6
- package/dist/types.d.ts +30 -0
- package/mod_json_type.ps1 +15 -15
- package/package.json +17 -17
- package/supabase.types.ts +32 -5
- package/tsconfig.json +105 -105
- package/types.ts +34 -0
- package/update_package.ps1 +21 -21
package/dist/supabase.types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type Json = {
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
} | any;
|
|
4
|
-
export
|
|
4
|
+
export type Database = {
|
|
5
5
|
graphql_public: {
|
|
6
6
|
Tables: {
|
|
7
7
|
[_ in never]: never;
|
|
@@ -237,6 +237,7 @@ export interface Database {
|
|
|
237
237
|
device_type: string | null;
|
|
238
238
|
duration: string | null;
|
|
239
239
|
flag_metadata: Json | null;
|
|
240
|
+
flag_response_time: number | null;
|
|
240
241
|
forwarding_score: number | null;
|
|
241
242
|
from: string | null;
|
|
242
243
|
from_me: boolean | null;
|
|
@@ -286,6 +287,7 @@ export interface Database {
|
|
|
286
287
|
device_type?: string | null;
|
|
287
288
|
duration?: string | null;
|
|
288
289
|
flag_metadata?: Json | null;
|
|
290
|
+
flag_response_time?: number | null;
|
|
289
291
|
forwarding_score?: number | null;
|
|
290
292
|
from?: string | null;
|
|
291
293
|
from_me?: boolean | null;
|
|
@@ -335,6 +337,7 @@ export interface Database {
|
|
|
335
337
|
device_type?: string | null;
|
|
336
338
|
duration?: string | null;
|
|
337
339
|
flag_metadata?: Json | null;
|
|
340
|
+
flag_response_time?: number | null;
|
|
338
341
|
forwarding_score?: number | null;
|
|
339
342
|
from?: string | null;
|
|
340
343
|
from_me?: boolean | null;
|
|
@@ -472,18 +475,24 @@ export interface Database {
|
|
|
472
475
|
Row: {
|
|
473
476
|
chat_id: string;
|
|
474
477
|
custom_properties: Json | null;
|
|
478
|
+
flag_count: number;
|
|
479
|
+
hubspot_metadata: Json | null;
|
|
475
480
|
label_ids: Json | null;
|
|
476
481
|
org_id: string;
|
|
477
482
|
};
|
|
478
483
|
Insert: {
|
|
479
484
|
chat_id: string;
|
|
480
485
|
custom_properties?: Json | null;
|
|
486
|
+
flag_count?: number;
|
|
487
|
+
hubspot_metadata?: Json | null;
|
|
481
488
|
label_ids?: Json | null;
|
|
482
489
|
org_id: string;
|
|
483
490
|
};
|
|
484
491
|
Update: {
|
|
485
492
|
chat_id?: string;
|
|
486
493
|
custom_properties?: Json | null;
|
|
494
|
+
flag_count?: number;
|
|
495
|
+
hubspot_metadata?: Json | null;
|
|
487
496
|
label_ids?: Json | null;
|
|
488
497
|
org_id?: string;
|
|
489
498
|
};
|
|
@@ -557,6 +566,7 @@ export interface Database {
|
|
|
557
566
|
chat_id: string;
|
|
558
567
|
created_at: string;
|
|
559
568
|
due_date: string | null;
|
|
569
|
+
hubspot_metadata: Json | null;
|
|
560
570
|
is_deleted: boolean;
|
|
561
571
|
label_ids: Json | null;
|
|
562
572
|
last_updated_at: string;
|
|
@@ -574,6 +584,7 @@ export interface Database {
|
|
|
574
584
|
chat_id: string;
|
|
575
585
|
created_at?: string;
|
|
576
586
|
due_date?: string | null;
|
|
587
|
+
hubspot_metadata?: Json | null;
|
|
577
588
|
is_deleted?: boolean;
|
|
578
589
|
label_ids?: Json | null;
|
|
579
590
|
last_updated_at?: string;
|
|
@@ -591,6 +602,7 @@ export interface Database {
|
|
|
591
602
|
chat_id?: string;
|
|
592
603
|
created_at?: string;
|
|
593
604
|
due_date?: string | null;
|
|
605
|
+
hubspot_metadata?: Json | null;
|
|
594
606
|
is_deleted?: boolean;
|
|
595
607
|
label_ids?: Json | null;
|
|
596
608
|
last_updated_at?: string;
|
|
@@ -953,6 +965,7 @@ export interface Database {
|
|
|
953
965
|
org_id: string;
|
|
954
966
|
role: string;
|
|
955
967
|
token: string;
|
|
968
|
+
token_metadata: Json | null;
|
|
956
969
|
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
957
970
|
};
|
|
958
971
|
Insert: {
|
|
@@ -964,6 +977,7 @@ export interface Database {
|
|
|
964
977
|
org_id: string;
|
|
965
978
|
role: string;
|
|
966
979
|
token: string;
|
|
980
|
+
token_metadata?: Json | null;
|
|
967
981
|
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
968
982
|
};
|
|
969
983
|
Update: {
|
|
@@ -975,6 +989,7 @@ export interface Database {
|
|
|
975
989
|
org_id?: string;
|
|
976
990
|
role?: string;
|
|
977
991
|
token?: string;
|
|
992
|
+
token_metadata?: Json | null;
|
|
978
993
|
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
979
994
|
};
|
|
980
995
|
Relationships: [
|
|
@@ -1333,7 +1348,9 @@ export interface Database {
|
|
|
1333
1348
|
chat_type: string | null;
|
|
1334
1349
|
created_at: string | null;
|
|
1335
1350
|
custom_properties: Json | null;
|
|
1351
|
+
flag_count: number | null;
|
|
1336
1352
|
group_description: string | null;
|
|
1353
|
+
hubspot_metadata: Json | null;
|
|
1337
1354
|
invite_link: string | null;
|
|
1338
1355
|
is_archived: boolean | null;
|
|
1339
1356
|
is_muted: boolean | null;
|
|
@@ -1353,6 +1370,7 @@ export interface Database {
|
|
|
1353
1370
|
created_at: string | null;
|
|
1354
1371
|
is_enterprise: boolean | null;
|
|
1355
1372
|
is_free_trial: boolean | null;
|
|
1373
|
+
is_hubspot_connected: boolean | null;
|
|
1356
1374
|
org_id: string | null;
|
|
1357
1375
|
org_image: string | null;
|
|
1358
1376
|
org_metadata: Json | null;
|
|
@@ -1372,6 +1390,7 @@ export interface Database {
|
|
|
1372
1390
|
created_at?: string | null;
|
|
1373
1391
|
is_enterprise?: never;
|
|
1374
1392
|
is_free_trial?: never;
|
|
1393
|
+
is_hubspot_connected?: never;
|
|
1375
1394
|
org_id?: string | null;
|
|
1376
1395
|
org_image?: string | null;
|
|
1377
1396
|
org_metadata?: Json | null;
|
|
@@ -1391,6 +1410,7 @@ export interface Database {
|
|
|
1391
1410
|
created_at?: string | null;
|
|
1392
1411
|
is_enterprise?: never;
|
|
1393
1412
|
is_free_trial?: never;
|
|
1413
|
+
is_hubspot_connected?: never;
|
|
1394
1414
|
org_id?: string | null;
|
|
1395
1415
|
org_image?: string | null;
|
|
1396
1416
|
org_metadata?: Json | null;
|
|
@@ -1410,6 +1430,13 @@ export interface Database {
|
|
|
1410
1430
|
};
|
|
1411
1431
|
};
|
|
1412
1432
|
Functions: {
|
|
1433
|
+
calculate_response_time: {
|
|
1434
|
+
Args: {
|
|
1435
|
+
flag_metadata: Json;
|
|
1436
|
+
message_timestamp: string;
|
|
1437
|
+
};
|
|
1438
|
+
Returns: number;
|
|
1439
|
+
};
|
|
1413
1440
|
gen_id: {
|
|
1414
1441
|
Args: {
|
|
1415
1442
|
prefix: string;
|
|
@@ -1446,7 +1473,7 @@ export interface Database {
|
|
|
1446
1473
|
org_id_input: string;
|
|
1447
1474
|
chat_ids_input?: string[];
|
|
1448
1475
|
};
|
|
1449
|
-
Returns:
|
|
1476
|
+
Returns: Json[];
|
|
1450
1477
|
};
|
|
1451
1478
|
get_chat_members: {
|
|
1452
1479
|
Args: {
|
|
@@ -1481,8 +1508,8 @@ export interface Database {
|
|
|
1481
1508
|
get_dashboard_statistics: {
|
|
1482
1509
|
Args: {
|
|
1483
1510
|
org_id_input: string;
|
|
1484
|
-
type_input?: string;
|
|
1485
1511
|
interval_input?: unknown;
|
|
1512
|
+
chat_id_input?: string[];
|
|
1486
1513
|
};
|
|
1487
1514
|
Returns: Json;
|
|
1488
1515
|
};
|
|
@@ -1549,7 +1576,7 @@ export interface Database {
|
|
|
1549
1576
|
};
|
|
1550
1577
|
list_org_from_user: {
|
|
1551
1578
|
Args: Record<PropertyKey, never>;
|
|
1552
|
-
Returns:
|
|
1579
|
+
Returns: string[];
|
|
1553
1580
|
};
|
|
1554
1581
|
list_role_from_user: {
|
|
1555
1582
|
Args: Record<PropertyKey, never>;
|
|
@@ -1719,7 +1746,7 @@ export interface Database {
|
|
|
1719
1746
|
Args: {
|
|
1720
1747
|
name: string;
|
|
1721
1748
|
};
|
|
1722
|
-
Returns:
|
|
1749
|
+
Returns: string[];
|
|
1723
1750
|
};
|
|
1724
1751
|
get_size_by_bucket: {
|
|
1725
1752
|
Args: Record<PropertyKey, never>;
|
|
@@ -1756,7 +1783,7 @@ export interface Database {
|
|
|
1756
1783
|
[_ in never]: never;
|
|
1757
1784
|
};
|
|
1758
1785
|
};
|
|
1759
|
-
}
|
|
1786
|
+
};
|
|
1760
1787
|
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
1761
1788
|
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
1762
1789
|
schema: keyof Database;
|
package/dist/types.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export type OrgType = OverrideProperties<Merge<Tables<'tbl_org'>, {
|
|
|
57
57
|
subscription_status: 'active' | 'inactive' | 'unpaid';
|
|
58
58
|
is_enterprise: boolean;
|
|
59
59
|
is_free_trial: boolean;
|
|
60
|
+
is_hubspot_connected: boolean;
|
|
60
61
|
}>, {
|
|
61
62
|
org_plan: OrgPlan<AllPlans | Enterprise>;
|
|
62
63
|
stripe_customer_details: _Stripe.Customer | null;
|
|
@@ -80,6 +81,12 @@ export type ChatType = Merge<Tables<'view_chats'>, {
|
|
|
80
81
|
};
|
|
81
82
|
chat_org_phones?: string[];
|
|
82
83
|
message_unread_count: number | null;
|
|
84
|
+
hubspot_metadata: {
|
|
85
|
+
id: string;
|
|
86
|
+
type: string;
|
|
87
|
+
hubId: string;
|
|
88
|
+
object_data: HubspotObjectDataType;
|
|
89
|
+
} | null;
|
|
83
90
|
}>;
|
|
84
91
|
export type MediaType = {
|
|
85
92
|
path: string;
|
|
@@ -107,11 +114,18 @@ export type MessageFlagType = {
|
|
|
107
114
|
response_type?: 'message' | 'reaction' | 'ticket';
|
|
108
115
|
response_id?: string;
|
|
109
116
|
response_timestamp?: string;
|
|
117
|
+
response_email?: string;
|
|
110
118
|
};
|
|
111
119
|
export type TicketType = OverrideProperties<Tables<'tbl_chat_tickets'>, {
|
|
112
120
|
label_ids: {
|
|
113
121
|
[key: string]: boolean;
|
|
114
122
|
};
|
|
123
|
+
hubspot_metadata: {
|
|
124
|
+
id: string;
|
|
125
|
+
type: string;
|
|
126
|
+
hubId: string;
|
|
127
|
+
object_data: HubspotObjectDataType;
|
|
128
|
+
} | null;
|
|
115
129
|
}>;
|
|
116
130
|
export type ContactType = Merge<Tables<'tbl_contacts'>, {
|
|
117
131
|
chats: ChatType[] | null;
|
|
@@ -261,6 +275,22 @@ export type APIAuthDetails = {
|
|
|
261
275
|
export type WebhookDataType = OverrideProperties<Tables<'tbl_integration_hooks'>, {
|
|
262
276
|
integration_name: string[];
|
|
263
277
|
}>;
|
|
278
|
+
export type HubspotObjectDataType = {
|
|
279
|
+
createdAt: string;
|
|
280
|
+
archived: boolean;
|
|
281
|
+
id: string;
|
|
282
|
+
type: 'contacts' | 'tickets' | 'companies';
|
|
283
|
+
properties: Record<string, {
|
|
284
|
+
groupLabel: string;
|
|
285
|
+
groupName: string;
|
|
286
|
+
propertyKeyName: string;
|
|
287
|
+
propertyKey: string;
|
|
288
|
+
propertyInternalValue: string;
|
|
289
|
+
propertyValue: string;
|
|
290
|
+
propertyType: string;
|
|
291
|
+
propertyFieldType: string;
|
|
292
|
+
}[]>;
|
|
293
|
+
};
|
|
264
294
|
export type UserPreferences = {
|
|
265
295
|
theme: 'light' | 'dark';
|
|
266
296
|
language: 'en' | 'es';
|
package/mod_json_type.ps1
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# Define the path to the TypeScript file
|
|
2
|
-
$filePath = ".\supabase.types.ts"
|
|
3
|
-
|
|
4
|
-
# Read the content of the file as a single string
|
|
5
|
-
$fileContent = Get-Content $filePath -Raw
|
|
6
|
-
|
|
7
|
-
# Define the current and new type definitions
|
|
8
|
-
$oldTypeDefinition = 'export type Json =\s*\| string\s*\| number\s*\| boolean\s*\| null\s*\| \{ \[key: string\]: Json \| undefined \}\s*\| Json\[\]'
|
|
9
|
-
$newTypeDefinition = 'export type Json = { [key: string]: any } | any'
|
|
10
|
-
|
|
11
|
-
# Replace the old type definition with the new one
|
|
12
|
-
$updatedContent = $fileContent -replace $oldTypeDefinition, $newTypeDefinition
|
|
13
|
-
|
|
14
|
-
# Write the updated content back to the file
|
|
15
|
-
$updatedContent | Set-Content $filePath
|
|
1
|
+
# Define the path to the TypeScript file
|
|
2
|
+
$filePath = ".\supabase.types.ts"
|
|
3
|
+
|
|
4
|
+
# Read the content of the file as a single string
|
|
5
|
+
$fileContent = Get-Content $filePath -Raw
|
|
6
|
+
|
|
7
|
+
# Define the current and new type definitions
|
|
8
|
+
$oldTypeDefinition = 'export type Json =\s*\| string\s*\| number\s*\| boolean\s*\| null\s*\| \{ \[key: string\]: Json \| undefined \}\s*\| Json\[\]'
|
|
9
|
+
$newTypeDefinition = 'export type Json = { [key: string]: any } | any'
|
|
10
|
+
|
|
11
|
+
# Replace the old type definition with the new one
|
|
12
|
+
$updatedContent = $fileContent -replace $oldTypeDefinition, $newTypeDefinition
|
|
13
|
+
|
|
14
|
+
# Write the updated content back to the file
|
|
15
|
+
$updatedContent | Set-Content $filePath
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name":
|
|
3
|
-
"version":
|
|
4
|
-
"private":
|
|
5
|
-
"main":
|
|
6
|
-
"types":
|
|
7
|
-
"dependencies":
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"scripts":
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
2
|
+
"name": "@periskope/types",
|
|
3
|
+
"version": "0.6.87",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@periskope/whatsapp-web.js": "1.23.1-alpha.exodus.8",
|
|
9
|
+
"@types/pg": "8.11.2",
|
|
10
|
+
"pg": "^8.11.3",
|
|
11
|
+
"stripe": "^14.19.0",
|
|
12
|
+
"ts-node": "^10.9.2",
|
|
13
|
+
"type-fest": "^4.8.3"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"update-package": "tsc \u0026\u0026 npm publish --access public"
|
|
17
|
+
}
|
|
18
|
+
}
|
package/supabase.types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type Json = { [key: string]: any } | any
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export type Database = {
|
|
4
4
|
graphql_public: {
|
|
5
5
|
Tables: {
|
|
6
6
|
[_ in never]: never
|
|
@@ -236,6 +236,7 @@ export interface Database {
|
|
|
236
236
|
device_type: string | null
|
|
237
237
|
duration: string | null
|
|
238
238
|
flag_metadata: Json | null
|
|
239
|
+
flag_response_time: number | null
|
|
239
240
|
forwarding_score: number | null
|
|
240
241
|
from: string | null
|
|
241
242
|
from_me: boolean | null
|
|
@@ -285,6 +286,7 @@ export interface Database {
|
|
|
285
286
|
device_type?: string | null
|
|
286
287
|
duration?: string | null
|
|
287
288
|
flag_metadata?: Json | null
|
|
289
|
+
flag_response_time?: number | null
|
|
288
290
|
forwarding_score?: number | null
|
|
289
291
|
from?: string | null
|
|
290
292
|
from_me?: boolean | null
|
|
@@ -334,6 +336,7 @@ export interface Database {
|
|
|
334
336
|
device_type?: string | null
|
|
335
337
|
duration?: string | null
|
|
336
338
|
flag_metadata?: Json | null
|
|
339
|
+
flag_response_time?: number | null
|
|
337
340
|
forwarding_score?: number | null
|
|
338
341
|
from?: string | null
|
|
339
342
|
from_me?: boolean | null
|
|
@@ -471,18 +474,24 @@ export interface Database {
|
|
|
471
474
|
Row: {
|
|
472
475
|
chat_id: string
|
|
473
476
|
custom_properties: Json | null
|
|
477
|
+
flag_count: number
|
|
478
|
+
hubspot_metadata: Json | null
|
|
474
479
|
label_ids: Json | null
|
|
475
480
|
org_id: string
|
|
476
481
|
}
|
|
477
482
|
Insert: {
|
|
478
483
|
chat_id: string
|
|
479
484
|
custom_properties?: Json | null
|
|
485
|
+
flag_count?: number
|
|
486
|
+
hubspot_metadata?: Json | null
|
|
480
487
|
label_ids?: Json | null
|
|
481
488
|
org_id: string
|
|
482
489
|
}
|
|
483
490
|
Update: {
|
|
484
491
|
chat_id?: string
|
|
485
492
|
custom_properties?: Json | null
|
|
493
|
+
flag_count?: number
|
|
494
|
+
hubspot_metadata?: Json | null
|
|
486
495
|
label_ids?: Json | null
|
|
487
496
|
org_id?: string
|
|
488
497
|
}
|
|
@@ -556,6 +565,7 @@ export interface Database {
|
|
|
556
565
|
chat_id: string
|
|
557
566
|
created_at: string
|
|
558
567
|
due_date: string | null
|
|
568
|
+
hubspot_metadata: Json | null
|
|
559
569
|
is_deleted: boolean
|
|
560
570
|
label_ids: Json | null
|
|
561
571
|
last_updated_at: string
|
|
@@ -573,6 +583,7 @@ export interface Database {
|
|
|
573
583
|
chat_id: string
|
|
574
584
|
created_at?: string
|
|
575
585
|
due_date?: string | null
|
|
586
|
+
hubspot_metadata?: Json | null
|
|
576
587
|
is_deleted?: boolean
|
|
577
588
|
label_ids?: Json | null
|
|
578
589
|
last_updated_at?: string
|
|
@@ -592,6 +603,7 @@ export interface Database {
|
|
|
592
603
|
chat_id?: string
|
|
593
604
|
created_at?: string
|
|
594
605
|
due_date?: string | null
|
|
606
|
+
hubspot_metadata?: Json | null
|
|
595
607
|
is_deleted?: boolean
|
|
596
608
|
label_ids?: Json | null
|
|
597
609
|
last_updated_at?: string
|
|
@@ -956,6 +968,7 @@ export interface Database {
|
|
|
956
968
|
org_id: string
|
|
957
969
|
role: string
|
|
958
970
|
token: string
|
|
971
|
+
token_metadata: Json | null
|
|
959
972
|
type: Database["public"]["Enums"]["enum_integration_type"]
|
|
960
973
|
}
|
|
961
974
|
Insert: {
|
|
@@ -967,6 +980,7 @@ export interface Database {
|
|
|
967
980
|
org_id: string
|
|
968
981
|
role: string
|
|
969
982
|
token: string
|
|
983
|
+
token_metadata?: Json | null
|
|
970
984
|
type: Database["public"]["Enums"]["enum_integration_type"]
|
|
971
985
|
}
|
|
972
986
|
Update: {
|
|
@@ -978,6 +992,7 @@ export interface Database {
|
|
|
978
992
|
org_id?: string
|
|
979
993
|
role?: string
|
|
980
994
|
token?: string
|
|
995
|
+
token_metadata?: Json | null
|
|
981
996
|
type?: Database["public"]["Enums"]["enum_integration_type"]
|
|
982
997
|
}
|
|
983
998
|
Relationships: [
|
|
@@ -1336,7 +1351,9 @@ export interface Database {
|
|
|
1336
1351
|
chat_type: string | null
|
|
1337
1352
|
created_at: string | null
|
|
1338
1353
|
custom_properties: Json | null
|
|
1354
|
+
flag_count: number | null
|
|
1339
1355
|
group_description: string | null
|
|
1356
|
+
hubspot_metadata: Json | null
|
|
1340
1357
|
invite_link: string | null
|
|
1341
1358
|
is_archived: boolean | null
|
|
1342
1359
|
is_muted: boolean | null
|
|
@@ -1356,6 +1373,7 @@ export interface Database {
|
|
|
1356
1373
|
created_at: string | null
|
|
1357
1374
|
is_enterprise: boolean | null
|
|
1358
1375
|
is_free_trial: boolean | null
|
|
1376
|
+
is_hubspot_connected: boolean | null
|
|
1359
1377
|
org_id: string | null
|
|
1360
1378
|
org_image: string | null
|
|
1361
1379
|
org_metadata: Json | null
|
|
@@ -1375,6 +1393,7 @@ export interface Database {
|
|
|
1375
1393
|
created_at?: string | null
|
|
1376
1394
|
is_enterprise?: never
|
|
1377
1395
|
is_free_trial?: never
|
|
1396
|
+
is_hubspot_connected?: never
|
|
1378
1397
|
org_id?: string | null
|
|
1379
1398
|
org_image?: string | null
|
|
1380
1399
|
org_metadata?: Json | null
|
|
@@ -1394,6 +1413,7 @@ export interface Database {
|
|
|
1394
1413
|
created_at?: string | null
|
|
1395
1414
|
is_enterprise?: never
|
|
1396
1415
|
is_free_trial?: never
|
|
1416
|
+
is_hubspot_connected?: never
|
|
1397
1417
|
org_id?: string | null
|
|
1398
1418
|
org_image?: string | null
|
|
1399
1419
|
org_metadata?: Json | null
|
|
@@ -1413,6 +1433,13 @@ export interface Database {
|
|
|
1413
1433
|
}
|
|
1414
1434
|
}
|
|
1415
1435
|
Functions: {
|
|
1436
|
+
calculate_response_time: {
|
|
1437
|
+
Args: {
|
|
1438
|
+
flag_metadata: Json
|
|
1439
|
+
message_timestamp: string
|
|
1440
|
+
}
|
|
1441
|
+
Returns: number
|
|
1442
|
+
}
|
|
1416
1443
|
gen_id: {
|
|
1417
1444
|
Args: {
|
|
1418
1445
|
prefix: string
|
|
@@ -1449,7 +1476,7 @@ export interface Database {
|
|
|
1449
1476
|
org_id_input: string
|
|
1450
1477
|
chat_ids_input?: string[]
|
|
1451
1478
|
}
|
|
1452
|
-
Returns:
|
|
1479
|
+
Returns: Json[]
|
|
1453
1480
|
}
|
|
1454
1481
|
get_chat_members: {
|
|
1455
1482
|
Args: {
|
|
@@ -1484,8 +1511,8 @@ export interface Database {
|
|
|
1484
1511
|
get_dashboard_statistics: {
|
|
1485
1512
|
Args: {
|
|
1486
1513
|
org_id_input: string
|
|
1487
|
-
type_input?: string
|
|
1488
1514
|
interval_input?: unknown
|
|
1515
|
+
chat_id_input?: string[]
|
|
1489
1516
|
}
|
|
1490
1517
|
Returns: Json
|
|
1491
1518
|
}
|
|
@@ -1552,7 +1579,7 @@ export interface Database {
|
|
|
1552
1579
|
}
|
|
1553
1580
|
list_org_from_user: {
|
|
1554
1581
|
Args: Record<PropertyKey, never>
|
|
1555
|
-
Returns:
|
|
1582
|
+
Returns: string[]
|
|
1556
1583
|
}
|
|
1557
1584
|
list_role_from_user: {
|
|
1558
1585
|
Args: Record<PropertyKey, never>
|
|
@@ -1765,7 +1792,7 @@ export interface Database {
|
|
|
1765
1792
|
Args: {
|
|
1766
1793
|
name: string
|
|
1767
1794
|
}
|
|
1768
|
-
Returns:
|
|
1795
|
+
Returns: string[]
|
|
1769
1796
|
}
|
|
1770
1797
|
get_size_by_bucket: {
|
|
1771
1798
|
Args: Record<PropertyKey, never>
|
package/tsconfig.json
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
-
/* Projects */
|
|
5
|
-
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
6
|
-
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
7
|
-
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
|
8
|
-
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
9
|
-
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
10
|
-
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
11
|
-
/* Language and Environment */
|
|
12
|
-
"target": "ES2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
13
|
-
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
14
|
-
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
15
|
-
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
16
|
-
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
17
|
-
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
18
|
-
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
19
|
-
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
20
|
-
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
21
|
-
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
22
|
-
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
23
|
-
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
24
|
-
/* Modules */
|
|
25
|
-
"module": "CommonJS", /* Specify what module code is generated. */
|
|
26
|
-
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
27
|
-
// "moduleResolution": "Node", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
28
|
-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
29
|
-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
30
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
31
|
-
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
32
|
-
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
33
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
34
|
-
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
35
|
-
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
36
|
-
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
37
|
-
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
38
|
-
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
39
|
-
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
40
|
-
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
41
|
-
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
42
|
-
/* JavaScript Support */
|
|
43
|
-
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
44
|
-
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
45
|
-
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
46
|
-
/* Emit */
|
|
47
|
-
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
48
|
-
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
49
|
-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
50
|
-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
51
|
-
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
52
|
-
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
53
|
-
"outDir": "dist/", /* Specify an output folder for all emitted files. */
|
|
54
|
-
// "removeComments": true, /* Disable emitting comments. */
|
|
55
|
-
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
56
|
-
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
57
|
-
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
58
|
-
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
59
|
-
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
60
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
61
|
-
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
62
|
-
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
63
|
-
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
64
|
-
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
65
|
-
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
66
|
-
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
67
|
-
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
68
|
-
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
69
|
-
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
70
|
-
/* Interop Constraints */
|
|
71
|
-
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
72
|
-
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
|
73
|
-
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
74
|
-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
75
|
-
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
76
|
-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
77
|
-
/* Type Checking */
|
|
78
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
79
|
-
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
80
|
-
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
81
|
-
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
82
|
-
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
83
|
-
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
84
|
-
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
85
|
-
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
86
|
-
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
87
|
-
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
88
|
-
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
89
|
-
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
90
|
-
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
91
|
-
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
92
|
-
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
93
|
-
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
94
|
-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
95
|
-
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
96
|
-
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
97
|
-
/* Completeness */
|
|
98
|
-
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
99
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
100
|
-
},
|
|
101
|
-
"exclude": [
|
|
102
|
-
"node_modules",
|
|
103
|
-
"dist",
|
|
104
|
-
"scripts"
|
|
105
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
+
/* Projects */
|
|
5
|
+
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
6
|
+
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
7
|
+
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
|
8
|
+
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
9
|
+
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
10
|
+
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
11
|
+
/* Language and Environment */
|
|
12
|
+
"target": "ES2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
13
|
+
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
14
|
+
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
15
|
+
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
16
|
+
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
17
|
+
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
18
|
+
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
19
|
+
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
20
|
+
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
21
|
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
22
|
+
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
23
|
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
24
|
+
/* Modules */
|
|
25
|
+
"module": "CommonJS", /* Specify what module code is generated. */
|
|
26
|
+
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
27
|
+
// "moduleResolution": "Node", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
28
|
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
29
|
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
30
|
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
31
|
+
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
32
|
+
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
33
|
+
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
34
|
+
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
35
|
+
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
36
|
+
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
37
|
+
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
38
|
+
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
39
|
+
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
40
|
+
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
41
|
+
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
42
|
+
/* JavaScript Support */
|
|
43
|
+
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
44
|
+
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
45
|
+
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
46
|
+
/* Emit */
|
|
47
|
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
48
|
+
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
49
|
+
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
50
|
+
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
51
|
+
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
52
|
+
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
53
|
+
"outDir": "dist/", /* Specify an output folder for all emitted files. */
|
|
54
|
+
// "removeComments": true, /* Disable emitting comments. */
|
|
55
|
+
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
56
|
+
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
57
|
+
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
58
|
+
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
59
|
+
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
60
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
61
|
+
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
62
|
+
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
63
|
+
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
64
|
+
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
65
|
+
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
66
|
+
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
67
|
+
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
68
|
+
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
69
|
+
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
70
|
+
/* Interop Constraints */
|
|
71
|
+
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
72
|
+
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
|
73
|
+
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
74
|
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
75
|
+
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
76
|
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
77
|
+
/* Type Checking */
|
|
78
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
79
|
+
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
80
|
+
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
81
|
+
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
82
|
+
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
83
|
+
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
84
|
+
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
85
|
+
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
86
|
+
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
87
|
+
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
88
|
+
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
89
|
+
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
90
|
+
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
91
|
+
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
92
|
+
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
93
|
+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
94
|
+
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
95
|
+
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
96
|
+
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
97
|
+
/* Completeness */
|
|
98
|
+
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
99
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
100
|
+
},
|
|
101
|
+
"exclude": [
|
|
102
|
+
"node_modules",
|
|
103
|
+
"dist",
|
|
104
|
+
"scripts"
|
|
105
|
+
]
|
|
106
106
|
}
|
package/types.ts
CHANGED
|
@@ -80,6 +80,7 @@ export type OrgType = OverrideProperties<
|
|
|
80
80
|
subscription_status: 'active' | 'inactive' | 'unpaid';
|
|
81
81
|
is_enterprise: boolean;
|
|
82
82
|
is_free_trial: boolean;
|
|
83
|
+
is_hubspot_connected: boolean;
|
|
83
84
|
}
|
|
84
85
|
>,
|
|
85
86
|
{
|
|
@@ -107,6 +108,12 @@ export type ChatType = Merge<
|
|
|
107
108
|
label_ids: { [key: string]: boolean };
|
|
108
109
|
chat_org_phones?: string[];
|
|
109
110
|
message_unread_count: number | null;
|
|
111
|
+
hubspot_metadata: {
|
|
112
|
+
id: string;
|
|
113
|
+
type: string;
|
|
114
|
+
hubId: string;
|
|
115
|
+
object_data: HubspotObjectDataType;
|
|
116
|
+
} | null;
|
|
110
117
|
// is_open?: boolean;
|
|
111
118
|
}
|
|
112
119
|
>;
|
|
@@ -142,6 +149,7 @@ export type MessageFlagType = {
|
|
|
142
149
|
response_type?: 'message' | 'reaction' | 'ticket';
|
|
143
150
|
response_id?: string;
|
|
144
151
|
response_timestamp?: string;
|
|
152
|
+
response_email?: string;
|
|
145
153
|
}
|
|
146
154
|
|
|
147
155
|
|
|
@@ -151,6 +159,12 @@ export type TicketType = OverrideProperties<
|
|
|
151
159
|
Tables<'tbl_chat_tickets'>,
|
|
152
160
|
{
|
|
153
161
|
label_ids: { [key: string]: boolean };
|
|
162
|
+
hubspot_metadata: {
|
|
163
|
+
id: string;
|
|
164
|
+
type: string;
|
|
165
|
+
hubId: string;
|
|
166
|
+
object_data: HubspotObjectDataType;
|
|
167
|
+
} | null;
|
|
154
168
|
}
|
|
155
169
|
>;
|
|
156
170
|
export type ContactType = Merge<
|
|
@@ -406,6 +420,26 @@ export type WebhookDataType = OverrideProperties<
|
|
|
406
420
|
}
|
|
407
421
|
>;
|
|
408
422
|
|
|
423
|
+
export type HubspotObjectDataType = {
|
|
424
|
+
createdAt: string;
|
|
425
|
+
archived: boolean;
|
|
426
|
+
id: string;
|
|
427
|
+
type: 'contacts' | 'tickets' | 'companies';
|
|
428
|
+
properties: Record<
|
|
429
|
+
string,
|
|
430
|
+
{
|
|
431
|
+
groupLabel: string;
|
|
432
|
+
groupName: string;
|
|
433
|
+
propertyKeyName: string;
|
|
434
|
+
propertyKey: string;
|
|
435
|
+
propertyInternalValue: string;
|
|
436
|
+
propertyValue: string;
|
|
437
|
+
propertyType: string;
|
|
438
|
+
propertyFieldType: string;
|
|
439
|
+
}[]
|
|
440
|
+
>;
|
|
441
|
+
};
|
|
442
|
+
|
|
409
443
|
/* ---------------------------- USER PREFERENCES ---------------------------- */
|
|
410
444
|
|
|
411
445
|
export type UserPreferences = {
|
package/update_package.ps1
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# Define the path to your package.json file
|
|
2
|
-
$packageJsonPath = "./package.json"
|
|
3
|
-
|
|
4
|
-
# Read the package.json file
|
|
5
|
-
$packageJson = Get-Content $packageJsonPath -Raw | ConvertFrom-Json
|
|
6
|
-
|
|
7
|
-
# Increment the patch version
|
|
8
|
-
$versionParts = $packageJson.version -split '\.'
|
|
9
|
-
$versionParts[2] = [int]$versionParts[2] + 1
|
|
10
|
-
$newVersion = $versionParts -join '.'
|
|
11
|
-
|
|
12
|
-
Write-Host "Updating package version to $newVersion"
|
|
13
|
-
|
|
14
|
-
# Update the version in the object
|
|
15
|
-
$packageJson.version = $newVersion
|
|
16
|
-
|
|
17
|
-
# Convert the object back to JSON and save
|
|
18
|
-
$packageJson | ConvertTo-Json -Depth 100 | Set-Content $packageJsonPath
|
|
19
|
-
|
|
20
|
-
# Run npm command
|
|
21
|
-
npm run update-package
|
|
1
|
+
# Define the path to your package.json file
|
|
2
|
+
$packageJsonPath = "./package.json"
|
|
3
|
+
|
|
4
|
+
# Read the package.json file
|
|
5
|
+
$packageJson = Get-Content $packageJsonPath -Raw | ConvertFrom-Json
|
|
6
|
+
|
|
7
|
+
# Increment the patch version
|
|
8
|
+
$versionParts = $packageJson.version -split '\.'
|
|
9
|
+
$versionParts[2] = [int]$versionParts[2] + 1
|
|
10
|
+
$newVersion = $versionParts -join '.'
|
|
11
|
+
|
|
12
|
+
Write-Host "Updating package version to $newVersion"
|
|
13
|
+
|
|
14
|
+
# Update the version in the object
|
|
15
|
+
$packageJson.version = $newVersion
|
|
16
|
+
|
|
17
|
+
# Convert the object back to JSON and save
|
|
18
|
+
$packageJson | ConvertTo-Json -Depth 100 | Set-Content $packageJsonPath
|
|
19
|
+
|
|
20
|
+
# Run npm command
|
|
21
|
+
npm run update-package
|