@ezychat/web 0.1.59 → 0.1.60

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.
Files changed (34) hide show
  1. package/dist-lib/chunks/admin-DPSjgyl3.js +869 -0
  2. package/dist-lib/chunks/admin-DiuGyOP6.js +868 -0
  3. package/dist-lib/chunks/{inbox-CostSOFa.js → inbox-42E4FML_.js} +4 -1
  4. package/dist-lib/chunks/{inbox-Dn_zMX5x.js → inbox-B0UJDCp0.js} +4 -1
  5. package/dist-lib/ezychat-web.css +1 -1
  6. package/dist-lib/index.js +11768 -7888
  7. package/dist-lib/types/admin/AdminLayout.d.ts +8 -0
  8. package/dist-lib/types/admin/ReportCharts.d.ts +48 -0
  9. package/dist-lib/types/admin/ReportsPage.d.ts +13 -0
  10. package/dist-lib/types/admin/connectors/AgentConnectorsCard.d.ts +8 -0
  11. package/dist-lib/types/admin/connectors/AgentPicker.d.ts +9 -0
  12. package/dist-lib/types/admin/connectors/BookingSettingsCard.d.ts +13 -0
  13. package/dist-lib/types/admin/connectors/ConnectorDetailPage.d.ts +8 -0
  14. package/dist-lib/types/admin/connectors/ConnectorsGalleryPage.d.ts +7 -0
  15. package/dist-lib/types/admin/connectors/GoogleCalendarAccountCard.d.ts +7 -0
  16. package/dist-lib/types/admin/connectors/PartnerConnectionCard.d.ts +10 -0
  17. package/dist-lib/types/admin/connectors/PartnerConnectorPage.d.ts +8 -0
  18. package/dist-lib/types/admin/connectors/PartnerSettingsCard.d.ts +18 -0
  19. package/dist-lib/types/admin/connectors/catalog.d.ts +41 -0
  20. package/dist-lib/types/admin/connectors/connector-ui.d.ts +38 -0
  21. package/dist-lib/types/admin/connectors/list.d.ts +14 -0
  22. package/dist-lib/types/api/ai.d.ts +7 -1
  23. package/dist-lib/types/api/connector-list.d.ts +416 -0
  24. package/dist-lib/types/api/connectors.d.ts +106 -0
  25. package/dist-lib/types/api/queries.d.ts +60 -1
  26. package/dist-lib/types/api/reply-suggestions.d.ts +1 -1
  27. package/dist-lib/types/api/voice.d.ts +2 -2
  28. package/dist-lib/types/extensions/types.d.ts +7 -1
  29. package/dist-lib/types/i18n/resources.d.ts +486 -0
  30. package/dist-lib/types/lib/format.d.ts +5 -0
  31. package/dist-lib/types/lib/links.d.ts +9 -0
  32. package/package.json +2 -2
  33. package/dist-lib/chunks/admin-BfXPHTDq.js +0 -779
  34. package/dist-lib/chunks/admin-BzKDTnlu.js +0 -780
@@ -585,6 +585,9 @@ export declare const enResources: {
585
585
  reopened: string;
586
586
  aiToolUsed: string;
587
587
  internalNote: string;
588
+ calendarChecked: string;
589
+ calendarBooked: string;
590
+ calendarBookedNoTime: string;
588
591
  };
589
592
  messageList: {
590
593
  label: string;
@@ -923,6 +926,8 @@ export declare const enResources: {
923
926
  tunnel: string;
924
927
  settings: string;
925
928
  audit: string;
929
+ connectors: string;
930
+ reports: string;
926
931
  };
927
932
  layout: {
928
933
  inbox: string;
@@ -1726,6 +1731,10 @@ export declare const enResources: {
1726
1731
  needsConnection: string;
1727
1732
  noRole: string;
1728
1733
  confidentialLeak: string;
1734
+ calendarChecked: string;
1735
+ wouldBook: string;
1736
+ wouldBookSlot: string;
1737
+ wouldRun: string;
1729
1738
  };
1730
1739
  voice: {
1731
1740
  title: string;
@@ -2337,6 +2346,483 @@ export declare const enResources: {
2337
2346
  aiWindowNote: string;
2338
2347
  createdOther: string;
2339
2348
  };
2349
+ connectors: {
2350
+ title: string;
2351
+ description: string;
2352
+ searchLabel: string;
2353
+ searchPlaceholder: string;
2354
+ categoryLabel: string;
2355
+ category: {
2356
+ all: string;
2357
+ booking: string;
2358
+ accounting: string;
2359
+ crm: string;
2360
+ data: string;
2361
+ payments: string;
2362
+ commerce: string;
2363
+ custom: string;
2364
+ other: string;
2365
+ };
2366
+ status: {
2367
+ connected: string;
2368
+ attention: string;
2369
+ notConnected: string;
2370
+ comingSoon: string;
2371
+ enterprise: string;
2372
+ needsUpdate: string;
2373
+ delisted: string;
2374
+ };
2375
+ yours: string;
2376
+ more: string;
2377
+ noMatch: string;
2378
+ noMatchHint: string;
2379
+ missing: string;
2380
+ vote: string;
2381
+ voteMessage: string;
2382
+ request: string;
2383
+ requestMessage: string;
2384
+ breadcrumb: string;
2385
+ notFound: string;
2386
+ backToGallery: string;
2387
+ byCore: string;
2388
+ byEnterprise: string;
2389
+ tabs: {
2390
+ overview: string;
2391
+ settings: string;
2392
+ activity: string;
2393
+ bookings: string;
2394
+ };
2395
+ aboutTitle: string;
2396
+ aiCan: string;
2397
+ lookUp: string;
2398
+ changes: string;
2399
+ switchNote: string;
2400
+ privacyTitle: string;
2401
+ enterpriseOnly: string;
2402
+ comingSoonTitle: string;
2403
+ comingSoonBody: string;
2404
+ forAgent: string;
2405
+ noAgent: string;
2406
+ addAgent: string;
2407
+ activityTitle: string;
2408
+ activityHint: string;
2409
+ activityEmpty: string;
2410
+ act: {
2411
+ checked: string;
2412
+ booked: string;
2413
+ bookedNoTime: string;
2414
+ handed_over: string;
2415
+ failed: string;
2416
+ };
2417
+ agentCard: {
2418
+ description: string;
2419
+ checkAndBook: string;
2420
+ checkOnly: string;
2421
+ off: string;
2422
+ none: string;
2423
+ browse: string;
2424
+ };
2425
+ settingsPointerTitle: string;
2426
+ settingsPointer: string;
2427
+ tools: {
2428
+ checkFree: string;
2429
+ checkFreeHint: string;
2430
+ book: string;
2431
+ bookHint: string;
2432
+ };
2433
+ items: {
2434
+ "google-calendar": {
2435
+ name: string;
2436
+ short: string;
2437
+ long: string;
2438
+ privacy: string;
2439
+ };
2440
+ "custom-mcp": {
2441
+ name: string;
2442
+ short: string;
2443
+ long: string;
2444
+ privacy: string;
2445
+ };
2446
+ };
2447
+ gc: {
2448
+ accountTitle: string;
2449
+ accountDescription: string;
2450
+ what1: string;
2451
+ what2: string;
2452
+ what3: string;
2453
+ connect: string;
2454
+ connectHint: string;
2455
+ connectedToast: string;
2456
+ notConfiguredTitle: string;
2457
+ notConfiguredBody: string;
2458
+ waiting: string;
2459
+ waitingHint: string;
2460
+ blocked: string;
2461
+ openSignIn: string;
2462
+ sameComputer: string;
2463
+ cancelSignIn: string;
2464
+ failed: {
2465
+ denied: string;
2466
+ expired: string;
2467
+ error: string;
2468
+ };
2469
+ account: string;
2470
+ state: {
2471
+ connected: string;
2472
+ expired: string;
2473
+ unavailable: string;
2474
+ };
2475
+ expiredTitle: string;
2476
+ expiredBody: string;
2477
+ signInAgain: string;
2478
+ unavailableTitle: string;
2479
+ unavailableBody: string;
2480
+ calendars: string;
2481
+ noCalendars: string;
2482
+ readOnly: string;
2483
+ perAgent: string;
2484
+ openSettings: string;
2485
+ disconnect: string;
2486
+ disconnectTitle: string;
2487
+ disconnectBody: string;
2488
+ disconnected: string;
2489
+ };
2490
+ booking: {
2491
+ title: string;
2492
+ description: string;
2493
+ notConnected: string;
2494
+ paused: {
2495
+ expired: string;
2496
+ unavailable: string;
2497
+ };
2498
+ pausedBody: string;
2499
+ openAccount: string;
2500
+ calendar: string;
2501
+ calendarHint: string;
2502
+ chooseCalendar: string;
2503
+ calendarRequired: string;
2504
+ checkFreeHint: string;
2505
+ changesCalendar: string;
2506
+ bookHint: string;
2507
+ bookNeedsFree: string;
2508
+ eventTitle: string;
2509
+ eventTitleHint: string;
2510
+ titleRequired: string;
2511
+ length: string;
2512
+ minutes_one: string;
2513
+ minutes_other: string;
2514
+ hours: string;
2515
+ daysRequired: string;
2516
+ from: string;
2517
+ to: string;
2518
+ toAfterFrom: string;
2519
+ hoursHint: string;
2520
+ gap: string;
2521
+ noGap: string;
2522
+ notice: string;
2523
+ noNotice: string;
2524
+ hoursAhead_one: string;
2525
+ hoursAhead_other: string;
2526
+ ahead: string;
2527
+ daysAhead_one: string;
2528
+ daysAhead_other: string;
2529
+ rulesTitle: string;
2530
+ rule1: string;
2531
+ rule2: string;
2532
+ rule3: string;
2533
+ rule4: string;
2534
+ save: string;
2535
+ saved: string;
2536
+ };
2537
+ bookings: {
2538
+ title: string;
2539
+ hint: string;
2540
+ upcoming: string;
2541
+ past: string;
2542
+ noneUpcoming: string;
2543
+ empty: string;
2544
+ emptyHint: string;
2545
+ by: string;
2546
+ openChat: string;
2547
+ openEvent: string;
2548
+ openCalendar: string;
2549
+ unknownCustomer: string;
2550
+ };
2551
+ list: {
2552
+ updated: string;
2553
+ copyFrom: string;
2554
+ builtin: string;
2555
+ saved: string;
2556
+ check: string;
2557
+ checking: string;
2558
+ checkedUpToDate: string;
2559
+ checkedNew: string;
2560
+ checkedOffline: string;
2561
+ checkedRejected: string;
2562
+ offlineTitle: string;
2563
+ offlineBody: string;
2564
+ rejectedTitle: string;
2565
+ rejectedBody: string;
2566
+ needsUpdateShort: string;
2567
+ byPublisher: string;
2568
+ };
2569
+ partner: {
2570
+ website: string;
2571
+ showDetails: string;
2572
+ hideDetails: string;
2573
+ detail: {
2574
+ server: string;
2575
+ signIn: string;
2576
+ entry: string;
2577
+ entryValue: string;
2578
+ };
2579
+ signInType: {
2580
+ oauth: string;
2581
+ oauth_own_app: string;
2582
+ api_key: string;
2583
+ credentials: string;
2584
+ none: string;
2585
+ };
2586
+ needsUpdateTitle: string;
2587
+ needsUpdateBody: string;
2588
+ delistedTitle: string;
2589
+ delistedBody: string;
2590
+ connectFirst: string;
2591
+ connectFirstHint: string;
2592
+ goToOverview: string;
2593
+ connectionTitle: string;
2594
+ connection: {
2595
+ oauth: string;
2596
+ oauth_own_app: string;
2597
+ api_key: string;
2598
+ credentials: string;
2599
+ none: string;
2600
+ };
2601
+ hint: {
2602
+ oauth: string;
2603
+ oauth_own_app: string;
2604
+ api_key: string;
2605
+ credentials: string;
2606
+ none: string;
2607
+ };
2608
+ cancelledTitle: string;
2609
+ cancelledBody: string;
2610
+ unreachableTitle: string;
2611
+ unreachableBody: string;
2612
+ problem: {
2613
+ refused: string;
2614
+ expired: string;
2615
+ not_https: string;
2616
+ private_address: string;
2617
+ missing_tools: string;
2618
+ error: string;
2619
+ };
2620
+ needsSignInTitle: string;
2621
+ needsSignInBody: string;
2622
+ waitingTitle: string;
2623
+ waitingBody: string;
2624
+ blocked: string;
2625
+ openSignIn: string;
2626
+ cancel: string;
2627
+ account: string;
2628
+ key: string;
2629
+ keyEnding: string;
2630
+ connectedSince: string;
2631
+ openSettings: string;
2632
+ signInAgain: string;
2633
+ tryAgain: string;
2634
+ connect: string;
2635
+ connectKey: string;
2636
+ connectForm: string;
2637
+ connectOwnApp: string;
2638
+ testConnection: string;
2639
+ testOk_one: string;
2640
+ testOk_other: string;
2641
+ replaceKey: string;
2642
+ changeDetails: string;
2643
+ disconnect: string;
2644
+ disconnectTitle: string;
2645
+ disconnectBody: string;
2646
+ disconnected: string;
2647
+ connectedToast: string;
2648
+ dialogTitle: string;
2649
+ ownAppTitle: string;
2650
+ replaceKeyTitle: string;
2651
+ changeDetailsTitle: string;
2652
+ dialogBody: {
2653
+ api_key: string;
2654
+ credentials: string;
2655
+ oauth_own_app: string;
2656
+ };
2657
+ help: {
2658
+ api_key: string;
2659
+ credentials: string;
2660
+ oauth_own_app: string;
2661
+ };
2662
+ clientId: string;
2663
+ clientSecret: string;
2664
+ keyStored: string;
2665
+ keyRefused: string;
2666
+ required: string;
2667
+ test: string;
2668
+ save: string;
2669
+ saveAndSignIn: string;
2670
+ agentTitle: string;
2671
+ agentHint: string;
2672
+ toolsTitle: string;
2673
+ toolsNote: string;
2674
+ choose: string;
2675
+ choicesError: string;
2676
+ retry: string;
2677
+ from: string;
2678
+ to: string;
2679
+ settingProblem: {
2680
+ required: string;
2681
+ number: string;
2682
+ timeOrder: string;
2683
+ };
2684
+ saved: string;
2685
+ field: {
2686
+ name: string;
2687
+ email: string;
2688
+ phone: string;
2689
+ };
2690
+ rulesTitle: string;
2691
+ rule: {
2692
+ asDescribed: string;
2693
+ noUndo: string;
2694
+ writeOff: string;
2695
+ confirmFirst: string;
2696
+ valueFrom: string;
2697
+ fromCustomer: string;
2698
+ within: string;
2699
+ limitsBoth: string;
2700
+ limitsChat_one: string;
2701
+ limitsChat_other: string;
2702
+ limitsDay_one: string;
2703
+ limitsDay_other: string;
2704
+ };
2705
+ rulesFor: string;
2706
+ activityHint: string;
2707
+ actLine: string;
2708
+ act: {
2709
+ checked: string;
2710
+ done: string;
2711
+ refused: string;
2712
+ failed: string;
2713
+ };
2714
+ actBy: string;
2715
+ reason: {
2716
+ confirm_first: string;
2717
+ value_from: string;
2718
+ from_customer: string;
2719
+ within: string;
2720
+ limit: string;
2721
+ unreachable: string;
2722
+ partner_error: string;
2723
+ needs_sign_in: string;
2724
+ };
2725
+ agentCardTools_one: string;
2726
+ agentCardTools_other: string;
2727
+ };
2728
+ };
2729
+ reports: {
2730
+ title: string;
2731
+ description: string;
2732
+ period: string;
2733
+ days_one: string;
2734
+ days_other: string;
2735
+ loading: string;
2736
+ totals: string;
2737
+ newCustomers: string;
2738
+ messagesIn: string;
2739
+ messagesOut_one: string;
2740
+ messagesOut_other: string;
2741
+ firstReply: string;
2742
+ firstReplyHint: string;
2743
+ missedLeads: string;
2744
+ missedLeadsHint: string;
2745
+ waitingHandoff: string;
2746
+ waitingOldest_one: string;
2747
+ waitingOldest_other: string;
2748
+ waitingNone: string;
2749
+ openChats: string;
2750
+ aiAnswered: string;
2751
+ aiAnsweredHint: string;
2752
+ deltaUp_one: string;
2753
+ deltaUp_other: string;
2754
+ deltaDown_one: string;
2755
+ deltaDown_other: string;
2756
+ same_one: string;
2757
+ same_other: string;
2758
+ underMinute: string;
2759
+ minutes_one: string;
2760
+ minutes_other: string;
2761
+ hoursMinutes: string;
2762
+ since: string;
2763
+ shortTitle_one: string;
2764
+ shortTitle_other: string;
2765
+ shortText: string;
2766
+ tooEarly: string;
2767
+ emptyTitle: string;
2768
+ emptyText: string;
2769
+ weekdaysTitle: string;
2770
+ weekdaysFinding: string;
2771
+ hoursTitle: string;
2772
+ hoursFinding: string;
2773
+ heatHint: string;
2774
+ readoutHour_one: string;
2775
+ readoutHour_other: string;
2776
+ fewer: string;
2777
+ more: string;
2778
+ dailyTitle: string;
2779
+ dailyFinding: string;
2780
+ busiestDay: string;
2781
+ readoutDay: string;
2782
+ legendWeekday: string;
2783
+ legendWeekend: string;
2784
+ newTitle: string;
2785
+ newFinding: string;
2786
+ newAverage: string;
2787
+ readoutNew_one: string;
2788
+ readoutNew_other: string;
2789
+ handoffsTitle: string;
2790
+ handoffsFinding_one: string;
2791
+ handoffsFinding_other: string;
2792
+ handoffsNone: string;
2793
+ addContext: string;
2794
+ reason: {
2795
+ missing_facts: string;
2796
+ business_rule: string;
2797
+ needs_action: string;
2798
+ unsupported_message: string;
2799
+ asked_for_human: string;
2800
+ ai_unavailable: string;
2801
+ sensitive: string;
2802
+ lookup_failed: string;
2803
+ other: string;
2804
+ };
2805
+ teamTitle: string;
2806
+ teamFinding: string;
2807
+ teamNone: string;
2808
+ ai: string;
2809
+ phone: string;
2810
+ showTable: string;
2811
+ showChart: string;
2812
+ colDay: string;
2813
+ colAvgIn: string;
2814
+ colAvgChats: string;
2815
+ colHour: string;
2816
+ colDate: string;
2817
+ colIn: string;
2818
+ colOut: string;
2819
+ colChats: string;
2820
+ colNew: string;
2821
+ colMember: string;
2822
+ colReplies: string;
2823
+ colReplyTime: string;
2824
+ hourRange: string;
2825
+ };
2340
2826
  };
2341
2827
  errors: {
2342
2828
  generic: string;
@@ -18,3 +18,8 @@ export declare function formatBytes(n: number): string;
18
18
  */
19
19
  export declare function initials(name: string): string;
20
20
  export declare function truncate(s: string, max: number): string;
21
+ /**
22
+ * A booked time in the browser's time zone and the UI language: "Fri, 30 Oct, 7:30–9:00 pm".
23
+ * Empty when either end is not a valid date.
24
+ */
25
+ export declare function formatTimeRange(startIso: string, endIso: string): string;
@@ -29,12 +29,21 @@ export interface AppLinks {
29
29
  supportEmail: string | null;
30
30
  /** "Upgrade to Enterprise" page (Lite's limits, account menu, About); null hides every upgrade link. */
31
31
  upgrade: string | null;
32
+ /**
33
+ * Admin → Connectors "Vote for this connector" / "Ask for a connector": the address that opens a
34
+ * ready message (in the UI language) to the team. Nothing is counted in the app. null hides them.
35
+ */
36
+ connectorRequest: ((message: string) => string) | null;
32
37
  }
33
38
  /**
34
39
  * The EzyChat Enterprise section of the website. The campaign tag lets the website count upgrade
35
40
  * visits from the app; the app itself sends nothing (no tracking in Lite).
36
41
  */
37
42
  export declare const ENTERPRISE_UPGRADE_URL = "https://ezychat.ai/?utm_source=ezychat-lite&utm_medium=app&utm_campaign=upgrade#enterprise";
43
+ /** The EzyChat team's WhatsApp number (the website's contact number) for connector requests. */
44
+ export declare const CONNECTOR_REQUEST_WHATSAPP = "601159246128";
45
+ /** A WhatsApp chat with the EzyChat team, with `message` ready to send. */
46
+ export declare function connectorRequestUrl(message: string): string;
38
47
  /** Lite's links: GitHub repository and issues, feedback on ezychat.ai. */
39
48
  export declare const LITE_APP_LINKS: Readonly<AppLinks>;
40
49
  /** Lite's links with the given overrides (an explicit `null` hides that link). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezychat/web",
3
- "version": "0.1.59",
3
+ "version": "0.1.60",
4
4
  "type": "module",
5
5
  "description": "EzyChat core: the team inbox web app (React) as a library, with createInboxApp and its extension API.",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "build:lib": "node ../../scripts/build-web-lib.mjs"
41
41
  },
42
42
  "dependencies": {
43
- "@ezychat/shared": "0.1.59",
43
+ "@ezychat/shared": "0.1.60",
44
44
  "@fontsource-variable/inter": "^5.3.0",
45
45
  "@tanstack/react-query": "^5.104.5",
46
46
  "@types/react": "^19.3.0",