@periskope/types 0.6.171 → 0.6.173

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.
@@ -152,6 +152,7 @@ export type CreateTicketAction = {
152
152
  assignee?: string;
153
153
  priority?: '0' | '1' | '2' | '3' | '4';
154
154
  label?: string;
155
+ append_to_latest_ticket?: 'true' | 'false';
155
156
  };
156
157
  };
157
158
  export type FlagMessageAction = {
@@ -234,7 +235,7 @@ export type ReplyToMessageAction = {
234
235
  type: 'image' | 'video' | 'audio' | 'document';
235
236
  name: string;
236
237
  };
237
- maintain_flag_status: boolean;
238
+ maintain_flag_status: 'true' | 'false';
238
239
  debounce_messages: 'true' | 'false';
239
240
  debounce_message_time: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}` | null | undefined;
240
241
  };
@@ -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
  },
@@ -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;
@@ -1458,6 +1486,13 @@ export type Database = {
1458
1486
  user_id?: string | null;
1459
1487
  };
1460
1488
  Relationships: [
1489
+ {
1490
+ foreignKeyName: "tbl_org_members_fkey_auth_users";
1491
+ columns: ["user_id"];
1492
+ isOneToOne: false;
1493
+ referencedRelation: "users";
1494
+ referencedColumns: ["id"];
1495
+ },
1461
1496
  {
1462
1497
  foreignKeyName: "tbl_org_members_fkey_tbl_org";
1463
1498
  columns: ["org_id"];
@@ -1480,6 +1515,7 @@ export type Database = {
1480
1515
  first_connected_at: string | null;
1481
1516
  is_browser_open: boolean;
1482
1517
  is_ready: boolean | null;
1518
+ label_ids: Json | null;
1483
1519
  legacy_version: boolean | null;
1484
1520
  library: string | null;
1485
1521
  org_id: string;
@@ -1502,6 +1538,7 @@ export type Database = {
1502
1538
  first_connected_at?: string | null;
1503
1539
  is_browser_open?: boolean;
1504
1540
  is_ready?: boolean | null;
1541
+ label_ids?: Json | null;
1505
1542
  legacy_version?: boolean | null;
1506
1543
  library?: string | null;
1507
1544
  org_id: string;
@@ -1524,6 +1561,7 @@ export type Database = {
1524
1561
  first_connected_at?: string | null;
1525
1562
  is_browser_open?: boolean;
1526
1563
  is_ready?: boolean | null;
1564
+ label_ids?: Json | null;
1527
1565
  legacy_version?: boolean | null;
1528
1566
  library?: string | null;
1529
1567
  org_id?: string;
@@ -1667,7 +1705,7 @@ export type Database = {
1667
1705
  log_id: string;
1668
1706
  metadata: Json | null;
1669
1707
  org_id: string;
1670
- rule_id: string;
1708
+ rule_id: string | null;
1671
1709
  trace_id: string | null;
1672
1710
  trigger: string;
1673
1711
  };
@@ -1678,7 +1716,7 @@ export type Database = {
1678
1716
  log_id?: string;
1679
1717
  metadata?: Json | null;
1680
1718
  org_id: string;
1681
- rule_id: string;
1719
+ rule_id?: string | null;
1682
1720
  trace_id?: string | null;
1683
1721
  trigger: string;
1684
1722
  };
@@ -1689,7 +1727,7 @@ export type Database = {
1689
1727
  log_id?: string;
1690
1728
  metadata?: Json | null;
1691
1729
  org_id?: string;
1692
- rule_id?: string;
1730
+ rule_id?: string | null;
1693
1731
  trace_id?: string | null;
1694
1732
  trigger?: string;
1695
1733
  };
@@ -1907,6 +1945,7 @@ export type Database = {
1907
1945
  is_free_trial: boolean | null;
1908
1946
  is_freshdesk_connected: boolean | null;
1909
1947
  is_hubspot_connected: boolean | null;
1948
+ is_platform: boolean | null;
1910
1949
  is_zohodesk_connected: boolean | null;
1911
1950
  org_id: string | null;
1912
1951
  org_image: string | null;
@@ -1930,6 +1969,7 @@ export type Database = {
1930
1969
  is_free_trial?: never;
1931
1970
  is_freshdesk_connected?: never;
1932
1971
  is_hubspot_connected?: never;
1972
+ is_platform?: boolean | null;
1933
1973
  is_zohodesk_connected?: never;
1934
1974
  org_id?: string | null;
1935
1975
  org_image?: string | null;
@@ -1953,6 +1993,7 @@ export type Database = {
1953
1993
  is_free_trial?: never;
1954
1994
  is_freshdesk_connected?: never;
1955
1995
  is_hubspot_connected?: never;
1996
+ is_platform?: boolean | null;
1956
1997
  is_zohodesk_connected?: never;
1957
1998
  org_id?: string | null;
1958
1999
  org_image?: string | null;
@@ -2330,7 +2371,6 @@ export type Database = {
2330
2371
  owner_id: string | null;
2331
2372
  path_tokens: string[] | null;
2332
2373
  updated_at: string | null;
2333
- user_metadata: Json | null;
2334
2374
  version: string | null;
2335
2375
  };
2336
2376
  Insert: {
@@ -2344,7 +2384,6 @@ export type Database = {
2344
2384
  owner_id?: string | null;
2345
2385
  path_tokens?: string[] | null;
2346
2386
  updated_at?: string | null;
2347
- user_metadata?: Json | null;
2348
2387
  version?: string | null;
2349
2388
  };
2350
2389
  Update: {
@@ -2358,7 +2397,6 @@ export type Database = {
2358
2397
  owner_id?: string | null;
2359
2398
  path_tokens?: string[] | null;
2360
2399
  updated_at?: string | null;
2361
- user_metadata?: Json | null;
2362
2400
  version?: string | null;
2363
2401
  };
2364
2402
  Relationships: [
@@ -2380,7 +2418,6 @@ export type Database = {
2380
2418
  key: string;
2381
2419
  owner_id: string | null;
2382
2420
  upload_signature: string;
2383
- user_metadata: Json | null;
2384
2421
  version: string;
2385
2422
  };
2386
2423
  Insert: {
@@ -2391,7 +2428,6 @@ export type Database = {
2391
2428
  key: string;
2392
2429
  owner_id?: string | null;
2393
2430
  upload_signature: string;
2394
- user_metadata?: Json | null;
2395
2431
  version: string;
2396
2432
  };
2397
2433
  Update: {
@@ -2402,7 +2438,6 @@ export type Database = {
2402
2438
  key?: string;
2403
2439
  owner_id?: string | null;
2404
2440
  upload_signature?: string;
2405
- user_metadata?: Json | null;
2406
2441
  version?: string;
2407
2442
  };
2408
2443
  Relationships: [
@@ -2539,10 +2574,6 @@ export type Database = {
2539
2574
  updated_at: string;
2540
2575
  }[];
2541
2576
  };
2542
- operation: {
2543
- Args: Record<PropertyKey, never>;
2544
- Returns: string;
2545
- };
2546
2577
  search: {
2547
2578
  Args: {
2548
2579
  prefix: string;
@@ -2613,11 +2644,4 @@ export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] |
2613
2644
  } ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
2614
2645
  schema: keyof Database;
2615
2646
  } ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
2616
- export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] | {
2617
- schema: keyof Database;
2618
- }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
2619
- schema: keyof Database;
2620
- } ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
2621
- schema: keyof Database;
2622
- } ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] ? PublicSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
2623
2647
  export {};
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/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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.171",
3
+ "version": "0.6.173",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",