@elevasis/sdk 0.8.6 → 0.8.8

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/cli.cjs CHANGED
@@ -43883,7 +43883,7 @@ function wrapAction(commandName, fn) {
43883
43883
  // package.json
43884
43884
  var package_default = {
43885
43885
  name: "@elevasis/sdk",
43886
- version: "0.8.6",
43886
+ version: "0.8.8",
43887
43887
  description: "SDK for building Elevasis organization resources",
43888
43888
  type: "module",
43889
43889
  bin: {
package/dist/index.d.ts CHANGED
@@ -2407,6 +2407,173 @@ type Database = {
2407
2407
  };
2408
2408
  Relationships: [];
2409
2409
  };
2410
+ seo_metrics: {
2411
+ Row: {
2412
+ ai_citations: Json | null;
2413
+ avg_position: number | null;
2414
+ clicks: number | null;
2415
+ created_at: string;
2416
+ cta_clicks: number | null;
2417
+ ctr: number | null;
2418
+ data_point_count: number | null;
2419
+ faq_count: number | null;
2420
+ form_submissions: number | null;
2421
+ id: string;
2422
+ impressions: number | null;
2423
+ organization_id: string;
2424
+ period: string;
2425
+ quality_score: number | null;
2426
+ readability: number | null;
2427
+ scroll_100: number | null;
2428
+ scroll_25: number | null;
2429
+ scroll_50: number | null;
2430
+ scroll_75: number | null;
2431
+ seo_page_id: string;
2432
+ word_count: number | null;
2433
+ };
2434
+ Insert: {
2435
+ ai_citations?: Json | null;
2436
+ avg_position?: number | null;
2437
+ clicks?: number | null;
2438
+ created_at?: string;
2439
+ cta_clicks?: number | null;
2440
+ ctr?: number | null;
2441
+ data_point_count?: number | null;
2442
+ faq_count?: number | null;
2443
+ form_submissions?: number | null;
2444
+ id?: string;
2445
+ impressions?: number | null;
2446
+ organization_id: string;
2447
+ period: string;
2448
+ quality_score?: number | null;
2449
+ readability?: number | null;
2450
+ scroll_100?: number | null;
2451
+ scroll_25?: number | null;
2452
+ scroll_50?: number | null;
2453
+ scroll_75?: number | null;
2454
+ seo_page_id: string;
2455
+ word_count?: number | null;
2456
+ };
2457
+ Update: {
2458
+ ai_citations?: Json | null;
2459
+ avg_position?: number | null;
2460
+ clicks?: number | null;
2461
+ created_at?: string;
2462
+ cta_clicks?: number | null;
2463
+ ctr?: number | null;
2464
+ data_point_count?: number | null;
2465
+ faq_count?: number | null;
2466
+ form_submissions?: number | null;
2467
+ id?: string;
2468
+ impressions?: number | null;
2469
+ organization_id?: string;
2470
+ period?: string;
2471
+ quality_score?: number | null;
2472
+ readability?: number | null;
2473
+ scroll_100?: number | null;
2474
+ scroll_25?: number | null;
2475
+ scroll_50?: number | null;
2476
+ scroll_75?: number | null;
2477
+ seo_page_id?: string;
2478
+ word_count?: number | null;
2479
+ };
2480
+ Relationships: [
2481
+ {
2482
+ foreignKeyName: "seo_metrics_organization_id_fkey";
2483
+ columns: ["organization_id"];
2484
+ isOneToOne: false;
2485
+ referencedRelation: "organizations";
2486
+ referencedColumns: ["id"];
2487
+ },
2488
+ {
2489
+ foreignKeyName: "seo_metrics_seo_page_id_fkey";
2490
+ columns: ["seo_page_id"];
2491
+ isOneToOne: false;
2492
+ referencedRelation: "seo_pages";
2493
+ referencedColumns: ["id"];
2494
+ }
2495
+ ];
2496
+ };
2497
+ seo_pages: {
2498
+ Row: {
2499
+ city: string | null;
2500
+ content: Json | null;
2501
+ created_at: string;
2502
+ faq_items: Json | null;
2503
+ hero_image_url: string | null;
2504
+ id: string;
2505
+ internal_links: Json | null;
2506
+ local_data: Json | null;
2507
+ meta_description: string | null;
2508
+ organization_id: string;
2509
+ page_type: string;
2510
+ published_at: string | null;
2511
+ refreshed_at: string | null;
2512
+ schema_markup: Json | null;
2513
+ slug: string;
2514
+ state: string | null;
2515
+ status: string;
2516
+ title: string;
2517
+ updated_at: string;
2518
+ use_case: string | null;
2519
+ vertical: string;
2520
+ };
2521
+ Insert: {
2522
+ city?: string | null;
2523
+ content?: Json | null;
2524
+ created_at?: string;
2525
+ faq_items?: Json | null;
2526
+ hero_image_url?: string | null;
2527
+ id?: string;
2528
+ internal_links?: Json | null;
2529
+ local_data?: Json | null;
2530
+ meta_description?: string | null;
2531
+ organization_id: string;
2532
+ page_type: string;
2533
+ published_at?: string | null;
2534
+ refreshed_at?: string | null;
2535
+ schema_markup?: Json | null;
2536
+ slug: string;
2537
+ state?: string | null;
2538
+ status?: string;
2539
+ title: string;
2540
+ updated_at?: string;
2541
+ use_case?: string | null;
2542
+ vertical: string;
2543
+ };
2544
+ Update: {
2545
+ city?: string | null;
2546
+ content?: Json | null;
2547
+ created_at?: string;
2548
+ faq_items?: Json | null;
2549
+ hero_image_url?: string | null;
2550
+ id?: string;
2551
+ internal_links?: Json | null;
2552
+ local_data?: Json | null;
2553
+ meta_description?: string | null;
2554
+ organization_id?: string;
2555
+ page_type?: string;
2556
+ published_at?: string | null;
2557
+ refreshed_at?: string | null;
2558
+ schema_markup?: Json | null;
2559
+ slug?: string;
2560
+ state?: string | null;
2561
+ status?: string;
2562
+ title?: string;
2563
+ updated_at?: string;
2564
+ use_case?: string | null;
2565
+ vertical?: string;
2566
+ };
2567
+ Relationships: [
2568
+ {
2569
+ foreignKeyName: "seo_pages_organization_id_fkey";
2570
+ columns: ["organization_id"];
2571
+ isOneToOne: false;
2572
+ referencedRelation: "organizations";
2573
+ referencedColumns: ["id"];
2574
+ }
2575
+ ];
2576
+ };
2410
2577
  session_messages: {
2411
2578
  Row: {
2412
2579
  created_at: string | null;
@@ -3686,6 +3853,31 @@ interface AcqDeal {
3686
3853
  createdAt: Date;
3687
3854
  updatedAt: Date;
3688
3855
  }
3856
+ interface DealStageSummary {
3857
+ stage: string;
3858
+ count: number;
3859
+ oldestUpdatedAt: string | null;
3860
+ newestUpdatedAt: string | null;
3861
+ }
3862
+ interface StaleDeal {
3863
+ id: string;
3864
+ contactEmail: string;
3865
+ cachedStage: string;
3866
+ updatedAt: string;
3867
+ daysStale: number;
3868
+ }
3869
+ interface DealPipelineAnalytics {
3870
+ totalDeals: number;
3871
+ stageSummary: DealStageSummary[];
3872
+ staleDeals: StaleDeal[];
3873
+ recentActivity: AcqDeal[];
3874
+ }
3875
+ interface DealFilters {
3876
+ stage?: string;
3877
+ search?: string;
3878
+ limit?: number;
3879
+ offset?: number;
3880
+ }
3689
3881
  interface AddContactsToListParams {
3690
3882
  organizationId: string;
3691
3883
  listId: string;
@@ -6103,6 +6295,16 @@ type LeadToolMap = {
6103
6295
  params: Omit<DeleteDealParams, 'organizationId'>;
6104
6296
  result: void;
6105
6297
  };
6298
+ listDeals: {
6299
+ params: DealFilters;
6300
+ result: AcqDeal[];
6301
+ };
6302
+ getDealPipelineAnalytics: {
6303
+ params: {
6304
+ recentLimit?: number;
6305
+ };
6306
+ result: DealPipelineAnalytics;
6307
+ };
6106
6308
  mergeEnrichmentData: {
6107
6309
  params: {
6108
6310
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/sdk",
3
- "version": "0.8.6",
3
+ "version": "0.8.8",
4
4
  "description": "SDK for building Elevasis organization resources",
5
5
  "type": "module",
6
6
  "bin": {