@flowselections/mailbox-orders 1.0.3 → 1.0.4

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 (30) hide show
  1. package/dist-lib/components/CartAssignmentWizard.d.ts +6 -0
  2. package/dist-lib/components/CartAssignmentWizard.d.ts.map +1 -0
  3. package/dist-lib/components/CartAssignmentWizard.js +199 -0
  4. package/dist-lib/components/MailboxProcessedPage.d.ts.map +1 -1
  5. package/dist-lib/components/MailboxProcessedPage.js +25 -4
  6. package/dist-lib/components/MailboxProposalsPage.d.ts.map +1 -1
  7. package/dist-lib/components/MailboxProposalsPage.js +272 -34
  8. package/dist-lib/components/SearchableSelect.d.ts +2 -1
  9. package/dist-lib/components/SearchableSelect.d.ts.map +1 -1
  10. package/dist-lib/components/SearchableSelect.js +4 -3
  11. package/dist-lib/index.d.ts +0 -1
  12. package/dist-lib/index.d.ts.map +1 -1
  13. package/dist-lib/index.js +2 -4
  14. package/dist-lib/integrations/supabase/auth-attacher.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/auth-attacher.js +37 -3
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2762 -145
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.d.ts +2762 -145
  19. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.server.d.ts +2762 -145
  21. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +2849 -149
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/types.js +2 -0
  25. package/dist-lib/lib/mailbox-template.functions.d.ts +34602 -18900
  26. package/dist-lib/lib/mailbox-template.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/mailbox.functions.d.ts +130480 -33017
  28. package/dist-lib/lib/mailbox.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/mailbox.functions.js +392 -18
  30. package/package.json +2 -7
@@ -2,6 +2,48 @@ import type { Database } from './types';
2
2
  export declare const requireSupabaseAuth: import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
3
3
  supabase: import("@supabase/supabase-js").SupabaseClient<Database, "public", "public", {
4
4
  Tables: {
5
+ afhandeling_settings: {
6
+ Row: {
7
+ created_at: string;
8
+ id: string;
9
+ max_workdays_earlier_pick: number;
10
+ pick_days_before_transport: number;
11
+ pick_distribution_enabled: boolean;
12
+ signup_mail_enabled: boolean;
13
+ signup_mail_lead_minutes: number;
14
+ signup_mail_purpose: string;
15
+ transport_register_days_before: number;
16
+ updated_at: string;
17
+ user_id: string;
18
+ };
19
+ Insert: {
20
+ created_at?: string;
21
+ id?: string;
22
+ max_workdays_earlier_pick?: number;
23
+ pick_days_before_transport?: number;
24
+ pick_distribution_enabled?: boolean;
25
+ signup_mail_enabled?: boolean;
26
+ signup_mail_lead_minutes?: number;
27
+ signup_mail_purpose?: string;
28
+ transport_register_days_before?: number;
29
+ updated_at?: string;
30
+ user_id: string;
31
+ };
32
+ Update: {
33
+ created_at?: string;
34
+ id?: string;
35
+ max_workdays_earlier_pick?: number;
36
+ pick_days_before_transport?: number;
37
+ pick_distribution_enabled?: boolean;
38
+ signup_mail_enabled?: boolean;
39
+ signup_mail_lead_minutes?: number;
40
+ signup_mail_purpose?: string;
41
+ transport_register_days_before?: number;
42
+ updated_at?: string;
43
+ user_id?: string;
44
+ };
45
+ Relationships: [];
46
+ };
5
47
  agenda_connections: {
6
48
  Row: {
7
49
  account_email: string | null;
@@ -270,6 +312,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
270
312
  invoice_run_id: string | null;
271
313
  invoice_status: string | null;
272
314
  invoiced_at: string | null;
315
+ notes: string | null;
273
316
  number_of_people: number;
274
317
  room_id: string;
275
318
  start_time: string;
@@ -294,6 +337,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
294
337
  invoice_run_id?: string | null;
295
338
  invoice_status?: string | null;
296
339
  invoiced_at?: string | null;
340
+ notes?: string | null;
297
341
  number_of_people?: number;
298
342
  room_id: string;
299
343
  start_time: string;
@@ -318,6 +362,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
318
362
  invoice_run_id?: string | null;
319
363
  invoice_status?: string | null;
320
364
  invoiced_at?: string | null;
365
+ notes?: string | null;
321
366
  number_of_people?: number;
322
367
  room_id?: string;
323
368
  start_time?: string;
@@ -401,6 +446,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
401
446
  referencedColumns: ["id"];
402
447
  }];
403
448
  };
449
+ carrier_signup_dispatches: {
450
+ Row: {
451
+ carrier_id: string;
452
+ cart_count: number;
453
+ created_at: string;
454
+ id: string;
455
+ order_count: number;
456
+ outbox_id: string | null;
457
+ pickup_date: string;
458
+ pickup_moment_key: string;
459
+ sent_at: string;
460
+ signup_deadline: string;
461
+ };
462
+ Insert: {
463
+ carrier_id: string;
464
+ cart_count?: number;
465
+ created_at?: string;
466
+ id?: string;
467
+ order_count?: number;
468
+ outbox_id?: string | null;
469
+ pickup_date: string;
470
+ pickup_moment_key: string;
471
+ sent_at?: string;
472
+ signup_deadline: string;
473
+ };
474
+ Update: {
475
+ carrier_id?: string;
476
+ cart_count?: number;
477
+ created_at?: string;
478
+ id?: string;
479
+ order_count?: number;
480
+ outbox_id?: string | null;
481
+ pickup_date?: string;
482
+ pickup_moment_key?: string;
483
+ sent_at?: string;
484
+ signup_deadline?: string;
485
+ };
486
+ Relationships: [{
487
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
488
+ columns: ["carrier_id"];
489
+ isOneToOne: false;
490
+ referencedRelation: "carriers";
491
+ referencedColumns: ["id"];
492
+ }];
493
+ };
404
494
  carriers: {
405
495
  Row: {
406
496
  address: string | null;
@@ -409,11 +499,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
409
499
  delivery_days: number | null;
410
500
  email: string | null;
411
501
  id: string;
502
+ is_default: boolean;
412
503
  name: string;
413
504
  notes: string | null;
414
505
  phone: string | null;
506
+ pickup_moments: import("./types").Json;
507
+ service_cities: string[];
508
+ service_countries: string[];
509
+ service_provinces: string[];
510
+ signup_days_before_delivery: number;
415
511
  signup_time_1: string | null;
416
512
  signup_time_2: string | null;
513
+ sort_order: number;
417
514
  updated_at: string;
418
515
  user_id: string;
419
516
  };
@@ -424,11 +521,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
424
521
  delivery_days?: number | null;
425
522
  email?: string | null;
426
523
  id?: string;
524
+ is_default?: boolean;
427
525
  name: string;
428
526
  notes?: string | null;
429
527
  phone?: string | null;
528
+ pickup_moments?: import("./types").Json;
529
+ service_cities?: string[];
530
+ service_countries?: string[];
531
+ service_provinces?: string[];
532
+ signup_days_before_delivery?: number;
430
533
  signup_time_1?: string | null;
431
534
  signup_time_2?: string | null;
535
+ sort_order?: number;
432
536
  updated_at?: string;
433
537
  user_id: string;
434
538
  };
@@ -439,16 +543,62 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
439
543
  delivery_days?: number | null;
440
544
  email?: string | null;
441
545
  id?: string;
546
+ is_default?: boolean;
442
547
  name?: string;
443
548
  notes?: string | null;
444
549
  phone?: string | null;
550
+ pickup_moments?: import("./types").Json;
551
+ service_cities?: string[];
552
+ service_countries?: string[];
553
+ service_provinces?: string[];
554
+ signup_days_before_delivery?: number;
445
555
  signup_time_1?: string | null;
446
556
  signup_time_2?: string | null;
557
+ sort_order?: number;
447
558
  updated_at?: string;
448
559
  user_id?: string;
449
560
  };
450
561
  Relationships: [];
451
562
  };
563
+ cart_pick_overrides: {
564
+ Row: {
565
+ cart_index: number;
566
+ created_at: string;
567
+ id: string;
568
+ moved_from_date: string | null;
569
+ notes: string | null;
570
+ order_id: string;
571
+ order_source: string;
572
+ pick_date: string;
573
+ status: string;
574
+ updated_at: string;
575
+ };
576
+ Insert: {
577
+ cart_index: number;
578
+ created_at?: string;
579
+ id?: string;
580
+ moved_from_date?: string | null;
581
+ notes?: string | null;
582
+ order_id: string;
583
+ order_source: string;
584
+ pick_date: string;
585
+ status?: string;
586
+ updated_at?: string;
587
+ };
588
+ Update: {
589
+ cart_index?: number;
590
+ created_at?: string;
591
+ id?: string;
592
+ moved_from_date?: string | null;
593
+ notes?: string | null;
594
+ order_id?: string;
595
+ order_source?: string;
596
+ pick_date?: string;
597
+ status?: string;
598
+ updated_at?: string;
599
+ };
600
+ Relationships: [];
601
+ };
452
602
  collections: {
453
603
  Row: {
454
604
  created_at: string;
@@ -560,50 +710,74 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
560
710
  customer_delivery_locations: {
561
711
  Row: {
562
712
  address_line: string | null;
713
+ carrier_assignment_source: string;
714
+ carrier_id: string | null;
563
715
  city: string | null;
564
716
  country: string | null;
565
717
  created_at: string;
566
718
  customer_id: string;
567
719
  floriday_location_id: string | null;
568
720
  gln: string | null;
721
+ house_number: string | null;
569
722
  id: string;
570
723
  is_primary: boolean;
571
724
  name: string | null;
572
725
  postal_code: string | null;
726
+ province: string | null;
573
727
  raw: import("./types").Json | null;
728
+ self_pickup: boolean;
729
+ street: string | null;
574
730
  updated_at: string;
575
731
  };
576
732
  Insert: {
577
733
  address_line?: string | null;
734
+ carrier_assignment_source?: string;
735
+ carrier_id?: string | null;
578
736
  city?: string | null;
579
737
  country?: string | null;
580
738
  created_at?: string;
581
739
  customer_id: string;
582
740
  floriday_location_id?: string | null;
583
741
  gln?: string | null;
742
+ house_number?: string | null;
584
743
  id?: string;
585
744
  is_primary?: boolean;
586
745
  name?: string | null;
587
746
  postal_code?: string | null;
747
+ province?: string | null;
588
748
  raw?: import("./types").Json | null;
749
+ self_pickup?: boolean;
750
+ street?: string | null;
589
751
  updated_at?: string;
590
752
  };
591
753
  Update: {
592
754
  address_line?: string | null;
755
+ carrier_assignment_source?: string;
756
+ carrier_id?: string | null;
593
757
  city?: string | null;
594
758
  country?: string | null;
595
759
  created_at?: string;
596
760
  customer_id?: string;
597
761
  floriday_location_id?: string | null;
598
762
  gln?: string | null;
763
+ house_number?: string | null;
599
764
  id?: string;
600
765
  is_primary?: boolean;
601
766
  name?: string | null;
602
767
  postal_code?: string | null;
768
+ province?: string | null;
603
769
  raw?: import("./types").Json | null;
770
+ self_pickup?: boolean;
771
+ street?: string | null;
604
772
  updated_at?: string;
605
773
  };
606
774
  Relationships: [{
775
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
776
+ columns: ["carrier_id"];
777
+ isOneToOne: false;
778
+ referencedRelation: "carriers";
779
+ referencedColumns: ["id"];
780
+ }, {
607
781
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
608
782
  columns: ["customer_id"];
609
783
  isOneToOne: false;
@@ -1406,6 +1580,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1406
1580
  referencedColumns: ["id"];
1407
1581
  }];
1408
1582
  };
1583
+ email_auth_purpose_settings: {
1584
+ Row: {
1585
+ default_cc: string[];
1586
+ purpose: string;
1587
+ reply_to: string | null;
1588
+ updated_at: string;
1589
+ updated_by: string | null;
1590
+ };
1591
+ Insert: {
1592
+ default_cc?: string[];
1593
+ purpose: string;
1594
+ reply_to?: string | null;
1595
+ updated_at?: string;
1596
+ updated_by?: string | null;
1597
+ };
1598
+ Update: {
1599
+ default_cc?: string[];
1600
+ purpose?: string;
1601
+ reply_to?: string | null;
1602
+ updated_at?: string;
1603
+ updated_by?: string | null;
1604
+ };
1605
+ Relationships: [];
1606
+ };
1409
1607
  email_auth_token_refresh_log: {
1410
1608
  Row: {
1411
1609
  connection_id: string;
@@ -2168,6 +2366,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2168
2366
  referencedColumns: ["id"];
2169
2367
  }];
2170
2368
  };
2369
+ exact_push_queue: {
2370
+ Row: {
2371
+ attempts: number;
2372
+ connection_id: string;
2373
+ created_at: string;
2374
+ external_id: string | null;
2375
+ id: string;
2376
+ idempotency_hash: string;
2377
+ last_error: string | null;
2378
+ payload: import("./types").Json;
2379
+ status: Database["public"]["Enums"]["exact_push_status"];
2380
+ updated_at: string;
2381
+ };
2382
+ Insert: {
2383
+ attempts?: number;
2384
+ connection_id: string;
2385
+ created_at?: string;
2386
+ external_id?: string | null;
2387
+ id?: string;
2388
+ idempotency_hash: string;
2389
+ last_error?: string | null;
2390
+ payload: import("./types").Json;
2391
+ status?: Database["public"]["Enums"]["exact_push_status"];
2392
+ updated_at?: string;
2393
+ };
2394
+ Update: {
2395
+ attempts?: number;
2396
+ connection_id?: string;
2397
+ created_at?: string;
2398
+ external_id?: string | null;
2399
+ id?: string;
2400
+ idempotency_hash?: string;
2401
+ last_error?: string | null;
2402
+ payload?: import("./types").Json;
2403
+ status?: Database["public"]["Enums"]["exact_push_status"];
2404
+ updated_at?: string;
2405
+ };
2406
+ Relationships: [{
2407
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2408
+ columns: ["connection_id"];
2409
+ isOneToOne: false;
2410
+ referencedRelation: "exact_connections";
2411
+ referencedColumns: ["id"];
2412
+ }];
2413
+ };
2171
2414
  exact_refresh_locks: {
2172
2415
  Row: {
2173
2416
  environment: Database["public"]["Enums"]["exact_env"];
@@ -2230,6 +2473,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2230
2473
  connection_id: string;
2231
2474
  last_error: string | null;
2232
2475
  last_modified_cursor: string | null;
2476
+ last_modified_cursor_customers: string | null;
2477
+ last_modified_cursor_invoices: string | null;
2233
2478
  last_synced_at: string | null;
2234
2479
  status: string;
2235
2480
  updated_at: string;
@@ -2238,6 +2483,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2238
2483
  connection_id: string;
2239
2484
  last_error?: string | null;
2240
2485
  last_modified_cursor?: string | null;
2486
+ last_modified_cursor_customers?: string | null;
2487
+ last_modified_cursor_invoices?: string | null;
2241
2488
  last_synced_at?: string | null;
2242
2489
  status?: string;
2243
2490
  updated_at?: string;
@@ -2246,6 +2493,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2246
2493
  connection_id?: string;
2247
2494
  last_error?: string | null;
2248
2495
  last_modified_cursor?: string | null;
2496
+ last_modified_cursor_customers?: string | null;
2497
+ last_modified_cursor_invoices?: string | null;
2249
2498
  last_synced_at?: string | null;
2250
2499
  status?: string;
2251
2500
  updated_at?: string;
@@ -2288,6 +2537,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2288
2537
  };
2289
2538
  Relationships: [];
2290
2539
  };
2540
+ external_invoice_providers: {
2541
+ Row: {
2542
+ color: string | null;
2543
+ created_at: string;
2544
+ hmac_secret_name: string | null;
2545
+ icon: string | null;
2546
+ is_enabled: boolean;
2547
+ label: string;
2548
+ last_synced_at: string | null;
2549
+ provider: string;
2550
+ push_endpoint: string | null;
2551
+ sort_order: number;
2552
+ status_endpoint: string | null;
2553
+ sync_endpoint: string | null;
2554
+ updated_at: string;
2555
+ };
2556
+ Insert: {
2557
+ color?: string | null;
2558
+ created_at?: string;
2559
+ hmac_secret_name?: string | null;
2560
+ icon?: string | null;
2561
+ is_enabled?: boolean;
2562
+ label: string;
2563
+ last_synced_at?: string | null;
2564
+ provider: string;
2565
+ push_endpoint?: string | null;
2566
+ sort_order?: number;
2567
+ status_endpoint?: string | null;
2568
+ sync_endpoint?: string | null;
2569
+ updated_at?: string;
2570
+ };
2571
+ Update: {
2572
+ color?: string | null;
2573
+ created_at?: string;
2574
+ hmac_secret_name?: string | null;
2575
+ icon?: string | null;
2576
+ is_enabled?: boolean;
2577
+ label?: string;
2578
+ last_synced_at?: string | null;
2579
+ provider?: string;
2580
+ push_endpoint?: string | null;
2581
+ sort_order?: number;
2582
+ status_endpoint?: string | null;
2583
+ sync_endpoint?: string | null;
2584
+ updated_at?: string;
2585
+ };
2586
+ Relationships: [];
2587
+ };
2291
2588
  extra_categories: {
2292
2589
  Row: {
2293
2590
  created_at: string;
@@ -2312,12 +2609,40 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2312
2609
  };
2313
2610
  Relationships: [];
2314
2611
  };
2612
+ extra_pricing_types: {
2613
+ Row: {
2614
+ code: string;
2615
+ created_at: string;
2616
+ id: string;
2617
+ label: string;
2618
+ sort_order: number;
2619
+ updated_at: string;
2620
+ };
2621
+ Insert: {
2622
+ code: string;
2623
+ created_at?: string;
2624
+ id?: string;
2625
+ label: string;
2626
+ sort_order?: number;
2627
+ updated_at?: string;
2628
+ };
2629
+ Update: {
2630
+ code?: string;
2631
+ created_at?: string;
2632
+ id?: string;
2633
+ label?: string;
2634
+ sort_order?: number;
2635
+ updated_at?: string;
2636
+ };
2637
+ Relationships: [];
2638
+ };
2315
2639
  extras: {
2316
2640
  Row: {
2317
2641
  category: string;
2318
2642
  created_at: string;
2319
2643
  exact_article_id: string | null;
2320
2644
  id: string;
2645
+ image_url: string | null;
2321
2646
  is_active: boolean;
2322
2647
  name: string;
2323
2648
  price: number;
@@ -2328,6 +2653,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2328
2653
  created_at?: string;
2329
2654
  exact_article_id?: string | null;
2330
2655
  id?: string;
2656
+ image_url?: string | null;
2331
2657
  is_active?: boolean;
2332
2658
  name: string;
2333
2659
  price?: number;
@@ -2338,6 +2664,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2338
2664
  created_at?: string;
2339
2665
  exact_article_id?: string | null;
2340
2666
  id?: string;
2667
+ image_url?: string | null;
2341
2668
  is_active?: boolean;
2342
2669
  name?: string;
2343
2670
  price?: number;
@@ -2435,230 +2762,1280 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2435
2762
  };
2436
2763
  Relationships: [];
2437
2764
  };
2438
- floriday_carriers_cache: {
2765
+ floriday_additional_services_cache: {
2439
2766
  Row: {
2440
- connection_id: string | null;
2441
- created_at: string;
2767
+ connection_id: string;
2442
2768
  data: import("./types").Json;
2443
2769
  fetched_at: string;
2444
- gln_code: string | null;
2445
- id: string;
2446
- name: string | null;
2447
- organization_id: string;
2770
+ floriday_id: string;
2771
+ is_deleted: boolean;
2772
+ sequence_number: number;
2448
2773
  updated_at: string;
2449
2774
  };
2450
2775
  Insert: {
2451
- connection_id?: string | null;
2452
- created_at?: string;
2776
+ connection_id: string;
2453
2777
  data: import("./types").Json;
2454
2778
  fetched_at?: string;
2455
- gln_code?: string | null;
2456
- id?: string;
2457
- name?: string | null;
2458
- organization_id: string;
2779
+ floriday_id: string;
2780
+ is_deleted?: boolean;
2781
+ sequence_number?: number;
2459
2782
  updated_at?: string;
2460
2783
  };
2461
2784
  Update: {
2462
- connection_id?: string | null;
2463
- created_at?: string;
2785
+ connection_id?: string;
2464
2786
  data?: import("./types").Json;
2465
2787
  fetched_at?: string;
2466
- gln_code?: string | null;
2467
- id?: string;
2468
- name?: string | null;
2469
- organization_id?: string;
2788
+ floriday_id?: string;
2789
+ is_deleted?: boolean;
2790
+ sequence_number?: number;
2470
2791
  updated_at?: string;
2471
2792
  };
2472
2793
  Relationships: [{
2473
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
2794
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2474
2795
  columns: ["connection_id"];
2475
2796
  isOneToOne: false;
2476
2797
  referencedRelation: "floriday_connections";
2477
2798
  referencedColumns: ["id"];
2478
2799
  }];
2479
2800
  };
2480
- floriday_connections: {
2801
+ floriday_agreement_calloffs_cache: {
2481
2802
  Row: {
2482
- access_token: string | null;
2483
- api_key: string;
2484
- client_id: string;
2485
- client_secret: string;
2486
- created_at: string;
2487
- customers_endpoint: string | null;
2488
- environment: string;
2489
- gln_code: string | null;
2803
+ agreement_id: string | null;
2804
+ connection_id: string;
2805
+ data: import("./types").Json;
2806
+ delivery_date: string | null;
2807
+ fetched_at: string;
2808
+ floriday_id: string;
2490
2809
  id: string;
2491
- is_active: boolean;
2492
- label: string;
2493
- organization_name: string | null;
2494
- preferred_warehouse_id: string | null;
2495
- preferred_warehouse_name: string | null;
2496
- token_expires_at: string | null;
2497
- updated_at: string;
2810
+ is_deleted: boolean;
2811
+ sequence_number: number;
2812
+ status: string | null;
2813
+ updated_at: string;
2498
2814
  };
2499
2815
  Insert: {
2500
- access_token?: string | null;
2501
- api_key: string;
2502
- client_id: string;
2503
- client_secret: string;
2816
+ agreement_id?: string | null;
2817
+ connection_id: string;
2818
+ data?: import("./types").Json;
2819
+ delivery_date?: string | null;
2820
+ fetched_at?: string;
2821
+ floriday_id: string;
2822
+ id?: string;
2823
+ is_deleted?: boolean;
2824
+ sequence_number?: number;
2825
+ status?: string | null;
2826
+ updated_at?: string;
2827
+ };
2828
+ Update: {
2829
+ agreement_id?: string | null;
2830
+ connection_id?: string;
2831
+ data?: import("./types").Json;
2832
+ delivery_date?: string | null;
2833
+ fetched_at?: string;
2834
+ floriday_id?: string;
2835
+ id?: string;
2836
+ is_deleted?: boolean;
2837
+ sequence_number?: number;
2838
+ status?: string | null;
2839
+ updated_at?: string;
2840
+ };
2841
+ Relationships: [{
2842
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
2843
+ columns: ["connection_id"];
2844
+ isOneToOne: false;
2845
+ referencedRelation: "floriday_connections";
2846
+ referencedColumns: ["id"];
2847
+ }];
2848
+ };
2849
+ floriday_agreements_cache: {
2850
+ Row: {
2851
+ buyer_organization_id: string | null;
2852
+ connection_id: string;
2853
+ data: import("./types").Json;
2854
+ fetched_at: string;
2855
+ floriday_id: string;
2856
+ id: string;
2857
+ is_deleted: boolean;
2858
+ sequence_number: number;
2859
+ status: string | null;
2860
+ updated_at: string;
2861
+ valid_from: string | null;
2862
+ valid_until: string | null;
2863
+ };
2864
+ Insert: {
2865
+ buyer_organization_id?: string | null;
2866
+ connection_id: string;
2867
+ data?: import("./types").Json;
2868
+ fetched_at?: string;
2869
+ floriday_id: string;
2870
+ id?: string;
2871
+ is_deleted?: boolean;
2872
+ sequence_number?: number;
2873
+ status?: string | null;
2874
+ updated_at?: string;
2875
+ valid_from?: string | null;
2876
+ valid_until?: string | null;
2877
+ };
2878
+ Update: {
2879
+ buyer_organization_id?: string | null;
2880
+ connection_id?: string;
2881
+ data?: import("./types").Json;
2882
+ fetched_at?: string;
2883
+ floriday_id?: string;
2884
+ id?: string;
2885
+ is_deleted?: boolean;
2886
+ sequence_number?: number;
2887
+ status?: string | null;
2888
+ updated_at?: string;
2889
+ valid_from?: string | null;
2890
+ valid_until?: string | null;
2891
+ };
2892
+ Relationships: [{
2893
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
2894
+ columns: ["connection_id"];
2895
+ isOneToOne: false;
2896
+ referencedRelation: "floriday_connections";
2897
+ referencedColumns: ["id"];
2898
+ }];
2899
+ };
2900
+ floriday_auction_letters_cache: {
2901
+ Row: {
2902
+ auction_letter_code: string;
2903
+ clock_supply_id: string;
2904
+ connection_id: string;
2905
+ content_type: string;
2906
+ fetched_at: string;
2907
+ id: string;
2908
+ storage_path: string;
2909
+ };
2910
+ Insert: {
2911
+ auction_letter_code: string;
2912
+ clock_supply_id: string;
2913
+ connection_id: string;
2914
+ content_type?: string;
2915
+ fetched_at?: string;
2916
+ id?: string;
2917
+ storage_path: string;
2918
+ };
2919
+ Update: {
2920
+ auction_letter_code?: string;
2921
+ clock_supply_id?: string;
2922
+ connection_id?: string;
2923
+ content_type?: string;
2924
+ fetched_at?: string;
2925
+ id?: string;
2926
+ storage_path?: string;
2927
+ };
2928
+ Relationships: [{
2929
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
2930
+ columns: ["connection_id"];
2931
+ isOneToOne: false;
2932
+ referencedRelation: "floriday_connections";
2933
+ referencedColumns: ["id"];
2934
+ }];
2935
+ };
2936
+ floriday_base_items_cache: {
2937
+ Row: {
2938
+ connection_id: string;
2939
+ data: import("./types").Json;
2940
+ fetched_at: string;
2941
+ floriday_id: string;
2942
+ is_deleted: boolean;
2943
+ sequence_number: number;
2944
+ updated_at: string;
2945
+ };
2946
+ Insert: {
2947
+ connection_id: string;
2948
+ data: import("./types").Json;
2949
+ fetched_at?: string;
2950
+ floriday_id: string;
2951
+ is_deleted?: boolean;
2952
+ sequence_number?: number;
2953
+ updated_at?: string;
2954
+ };
2955
+ Update: {
2956
+ connection_id?: string;
2957
+ data?: import("./types").Json;
2958
+ fetched_at?: string;
2959
+ floriday_id?: string;
2960
+ is_deleted?: boolean;
2961
+ sequence_number?: number;
2962
+ updated_at?: string;
2963
+ };
2964
+ Relationships: [{
2965
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
2966
+ columns: ["connection_id"];
2967
+ isOneToOne: false;
2968
+ referencedRelation: "floriday_connections";
2969
+ referencedColumns: ["id"];
2970
+ }];
2971
+ };
2972
+ floriday_blanket_orders_cache: {
2973
+ Row: {
2974
+ connection_id: string;
2975
+ contract_id: string | null;
2976
+ created_at: string;
2977
+ data: import("./types").Json;
2978
+ fetched_at: string;
2979
+ floriday_id: string;
2980
+ id: string;
2981
+ is_deleted: boolean;
2982
+ sequence_number: number;
2983
+ updated_at: string;
2984
+ };
2985
+ Insert: {
2986
+ connection_id: string;
2987
+ contract_id?: string | null;
2504
2988
  created_at?: string;
2505
- customers_endpoint?: string | null;
2506
- environment: string;
2989
+ data: import("./types").Json;
2990
+ fetched_at?: string;
2991
+ floriday_id: string;
2992
+ id?: string;
2993
+ is_deleted?: boolean;
2994
+ sequence_number?: number;
2995
+ updated_at?: string;
2996
+ };
2997
+ Update: {
2998
+ connection_id?: string;
2999
+ contract_id?: string | null;
3000
+ created_at?: string;
3001
+ data?: import("./types").Json;
3002
+ fetched_at?: string;
3003
+ floriday_id?: string;
3004
+ id?: string;
3005
+ is_deleted?: boolean;
3006
+ sequence_number?: number;
3007
+ updated_at?: string;
3008
+ };
3009
+ Relationships: [{
3010
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3011
+ columns: ["connection_id"];
3012
+ isOneToOne: false;
3013
+ referencedRelation: "floriday_connections";
3014
+ referencedColumns: ["id"];
3015
+ }];
3016
+ };
3017
+ floriday_carriers_cache: {
3018
+ Row: {
3019
+ connection_id: string | null;
3020
+ created_at: string;
3021
+ data: import("./types").Json;
3022
+ fetched_at: string;
3023
+ gln_code: string | null;
3024
+ id: string;
3025
+ name: string | null;
3026
+ organization_id: string;
3027
+ updated_at: string;
3028
+ };
3029
+ Insert: {
3030
+ connection_id?: string | null;
3031
+ created_at?: string;
3032
+ data: import("./types").Json;
3033
+ fetched_at?: string;
2507
3034
  gln_code?: string | null;
2508
3035
  id?: string;
2509
- is_active?: boolean;
2510
- label?: string;
2511
- organization_name?: string | null;
2512
- preferred_warehouse_id?: string | null;
2513
- preferred_warehouse_name?: string | null;
2514
- token_expires_at?: string | null;
3036
+ name?: string | null;
3037
+ organization_id: string;
2515
3038
  updated_at?: string;
2516
3039
  };
2517
3040
  Update: {
2518
- access_token?: string | null;
2519
- api_key?: string;
2520
- client_id?: string;
2521
- client_secret?: string;
3041
+ connection_id?: string | null;
2522
3042
  created_at?: string;
2523
- customers_endpoint?: string | null;
2524
- environment?: string;
3043
+ data?: import("./types").Json;
3044
+ fetched_at?: string;
2525
3045
  gln_code?: string | null;
2526
3046
  id?: string;
2527
- is_active?: boolean;
2528
- label?: string;
2529
- organization_name?: string | null;
2530
- preferred_warehouse_id?: string | null;
2531
- preferred_warehouse_name?: string | null;
2532
- token_expires_at?: string | null;
3047
+ name?: string | null;
3048
+ organization_id?: string;
2533
3049
  updated_at?: string;
2534
3050
  };
2535
- Relationships: [];
3051
+ Relationships: [{
3052
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3053
+ columns: ["connection_id"];
3054
+ isOneToOne: false;
3055
+ referencedRelation: "floriday_connections";
3056
+ referencedColumns: ["id"];
3057
+ }];
2536
3058
  };
2537
- floriday_connections_cache: {
3059
+ floriday_clock_presales_cache: {
2538
3060
  Row: {
2539
3061
  buyer_organization_id: string | null;
2540
- buyer_organization_name: string | null;
3062
+ clock_supply_id: string | null;
2541
3063
  connection_id: string;
2542
3064
  data: import("./types").Json;
2543
- floriday_connection_id: string;
3065
+ fetched_at: string;
3066
+ floriday_id: string;
3067
+ id: string;
3068
+ is_deleted: boolean;
3069
+ sequence_number: number;
3070
+ updated_at: string;
3071
+ };
3072
+ Insert: {
3073
+ buyer_organization_id?: string | null;
3074
+ clock_supply_id?: string | null;
3075
+ connection_id: string;
3076
+ data?: import("./types").Json;
3077
+ fetched_at?: string;
3078
+ floriday_id: string;
3079
+ id?: string;
3080
+ is_deleted?: boolean;
3081
+ sequence_number?: number;
3082
+ updated_at?: string;
3083
+ };
3084
+ Update: {
3085
+ buyer_organization_id?: string | null;
3086
+ clock_supply_id?: string | null;
3087
+ connection_id?: string;
3088
+ data?: import("./types").Json;
3089
+ fetched_at?: string;
3090
+ floriday_id?: string;
3091
+ id?: string;
3092
+ is_deleted?: boolean;
3093
+ sequence_number?: number;
3094
+ updated_at?: string;
3095
+ };
3096
+ Relationships: [{
3097
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3098
+ columns: ["connection_id"];
3099
+ isOneToOne: false;
3100
+ referencedRelation: "floriday_connections";
3101
+ referencedColumns: ["id"];
3102
+ }];
3103
+ };
3104
+ floriday_clock_supplies_cache: {
3105
+ Row: {
3106
+ auction_date: string | null;
3107
+ connection_id: string;
3108
+ data: import("./types").Json;
3109
+ fetched_at: string;
3110
+ floriday_id: string;
3111
+ id: string;
3112
+ is_deleted: boolean;
3113
+ sequence_number: number;
3114
+ status: string | null;
3115
+ trade_item_id: string | null;
3116
+ updated_at: string;
3117
+ };
3118
+ Insert: {
3119
+ auction_date?: string | null;
3120
+ connection_id: string;
3121
+ data?: import("./types").Json;
3122
+ fetched_at?: string;
3123
+ floriday_id: string;
3124
+ id?: string;
3125
+ is_deleted?: boolean;
3126
+ sequence_number?: number;
3127
+ status?: string | null;
3128
+ trade_item_id?: string | null;
3129
+ updated_at?: string;
3130
+ };
3131
+ Update: {
3132
+ auction_date?: string | null;
3133
+ connection_id?: string;
3134
+ data?: import("./types").Json;
3135
+ fetched_at?: string;
3136
+ floriday_id?: string;
3137
+ id?: string;
3138
+ is_deleted?: boolean;
3139
+ sequence_number?: number;
3140
+ status?: string | null;
3141
+ trade_item_id?: string | null;
3142
+ updated_at?: string;
3143
+ };
3144
+ Relationships: [{
3145
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3146
+ columns: ["connection_id"];
3147
+ isOneToOne: false;
3148
+ referencedRelation: "floriday_connections";
3149
+ referencedColumns: ["id"];
3150
+ }];
3151
+ };
3152
+ floriday_code_lists_cache: {
3153
+ Row: {
3154
+ code: string;
3155
+ environment: string;
3156
+ label: string | null;
3157
+ list_name: string;
3158
+ payload: import("./types").Json | null;
3159
+ updated_at: string;
3160
+ };
3161
+ Insert: {
3162
+ code: string;
3163
+ environment: string;
3164
+ label?: string | null;
3165
+ list_name: string;
3166
+ payload?: import("./types").Json | null;
3167
+ updated_at?: string;
3168
+ };
3169
+ Update: {
3170
+ code?: string;
3171
+ environment?: string;
3172
+ label?: string | null;
3173
+ list_name?: string;
3174
+ payload?: import("./types").Json | null;
3175
+ updated_at?: string;
3176
+ };
3177
+ Relationships: [];
3178
+ };
3179
+ floriday_collections_cache: {
3180
+ Row: {
3181
+ connection_id: string;
3182
+ data: import("./types").Json;
3183
+ fetched_at: string;
3184
+ floriday_id: string;
3185
+ is_deleted: boolean;
3186
+ sequence_number: number;
3187
+ updated_at: string;
3188
+ };
3189
+ Insert: {
3190
+ connection_id: string;
3191
+ data: import("./types").Json;
3192
+ fetched_at?: string;
3193
+ floriday_id: string;
3194
+ is_deleted?: boolean;
3195
+ sequence_number?: number;
3196
+ updated_at?: string;
3197
+ };
3198
+ Update: {
3199
+ connection_id?: string;
3200
+ data?: import("./types").Json;
3201
+ fetched_at?: string;
3202
+ floriday_id?: string;
3203
+ is_deleted?: boolean;
3204
+ sequence_number?: number;
3205
+ updated_at?: string;
3206
+ };
3207
+ Relationships: [{
3208
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3209
+ columns: ["connection_id"];
3210
+ isOneToOne: false;
3211
+ referencedRelation: "floriday_connections";
3212
+ referencedColumns: ["id"];
3213
+ }];
3214
+ };
3215
+ floriday_commercial_service_types_cache: {
3216
+ Row: {
3217
+ connection_id: string;
3218
+ data: import("./types").Json;
3219
+ fetched_at: string;
3220
+ floriday_id: string;
3221
+ is_deleted: boolean;
3222
+ sequence_number: number;
3223
+ updated_at: string;
3224
+ };
3225
+ Insert: {
3226
+ connection_id: string;
3227
+ data: import("./types").Json;
3228
+ fetched_at?: string;
3229
+ floriday_id: string;
3230
+ is_deleted?: boolean;
3231
+ sequence_number?: number;
3232
+ updated_at?: string;
3233
+ };
3234
+ Update: {
3235
+ connection_id?: string;
3236
+ data?: import("./types").Json;
3237
+ fetched_at?: string;
3238
+ floriday_id?: string;
3239
+ is_deleted?: boolean;
3240
+ sequence_number?: number;
3241
+ updated_at?: string;
3242
+ };
3243
+ Relationships: [{
3244
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3245
+ columns: ["connection_id"];
3246
+ isOneToOne: false;
3247
+ referencedRelation: "floriday_connections";
3248
+ referencedColumns: ["id"];
3249
+ }];
3250
+ };
3251
+ floriday_connections: {
3252
+ Row: {
3253
+ access_token: string | null;
3254
+ api_key: string;
3255
+ client_id: string;
3256
+ client_secret: string;
3257
+ created_at: string;
3258
+ customers_endpoint: string | null;
3259
+ environment: string;
3260
+ gln_code: string | null;
3261
+ id: string;
3262
+ is_active: boolean;
3263
+ label: string;
3264
+ organization_name: string | null;
3265
+ preferred_warehouse_id: string | null;
3266
+ preferred_warehouse_name: string | null;
3267
+ token_expires_at: string | null;
3268
+ updated_at: string;
3269
+ };
3270
+ Insert: {
3271
+ access_token?: string | null;
3272
+ api_key: string;
3273
+ client_id: string;
3274
+ client_secret: string;
3275
+ created_at?: string;
3276
+ customers_endpoint?: string | null;
3277
+ environment: string;
3278
+ gln_code?: string | null;
3279
+ id?: string;
3280
+ is_active?: boolean;
3281
+ label?: string;
3282
+ organization_name?: string | null;
3283
+ preferred_warehouse_id?: string | null;
3284
+ preferred_warehouse_name?: string | null;
3285
+ token_expires_at?: string | null;
3286
+ updated_at?: string;
3287
+ };
3288
+ Update: {
3289
+ access_token?: string | null;
3290
+ api_key?: string;
3291
+ client_id?: string;
3292
+ client_secret?: string;
3293
+ created_at?: string;
3294
+ customers_endpoint?: string | null;
3295
+ environment?: string;
3296
+ gln_code?: string | null;
3297
+ id?: string;
3298
+ is_active?: boolean;
3299
+ label?: string;
3300
+ organization_name?: string | null;
3301
+ preferred_warehouse_id?: string | null;
3302
+ preferred_warehouse_name?: string | null;
3303
+ token_expires_at?: string | null;
3304
+ updated_at?: string;
3305
+ };
3306
+ Relationships: [];
3307
+ };
3308
+ floriday_connections_cache: {
3309
+ Row: {
3310
+ buyer_organization_id: string | null;
3311
+ buyer_organization_name: string | null;
3312
+ connection_id: string;
3313
+ data: import("./types").Json;
3314
+ floriday_connection_id: string;
3315
+ is_deleted: boolean;
3316
+ sequence_number: number;
3317
+ status: string | null;
3318
+ synced_at: string;
3319
+ };
3320
+ Insert: {
3321
+ buyer_organization_id?: string | null;
3322
+ buyer_organization_name?: string | null;
3323
+ connection_id: string;
3324
+ data: import("./types").Json;
3325
+ floriday_connection_id: string;
3326
+ is_deleted?: boolean;
3327
+ sequence_number: number;
3328
+ status?: string | null;
3329
+ synced_at?: string;
3330
+ };
3331
+ Update: {
3332
+ buyer_organization_id?: string | null;
3333
+ buyer_organization_name?: string | null;
3334
+ connection_id?: string;
3335
+ data?: import("./types").Json;
3336
+ floriday_connection_id?: string;
3337
+ is_deleted?: boolean;
3338
+ sequence_number?: number;
3339
+ status?: string | null;
3340
+ synced_at?: string;
3341
+ };
3342
+ Relationships: [{
3343
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3344
+ columns: ["connection_id"];
3345
+ isOneToOne: false;
3346
+ referencedRelation: "floriday_connections";
3347
+ referencedColumns: ["id"];
3348
+ }];
3349
+ };
3350
+ floriday_contract_trade_item_groups_cache: {
3351
+ Row: {
3352
+ connection_id: string;
3353
+ data: import("./types").Json;
3354
+ fetched_at: string;
3355
+ floriday_id: string;
3356
+ is_deleted: boolean;
3357
+ sequence_number: number;
3358
+ updated_at: string;
3359
+ };
3360
+ Insert: {
3361
+ connection_id: string;
3362
+ data: import("./types").Json;
3363
+ fetched_at?: string;
3364
+ floriday_id: string;
3365
+ is_deleted?: boolean;
3366
+ sequence_number?: number;
3367
+ updated_at?: string;
3368
+ };
3369
+ Update: {
3370
+ connection_id?: string;
3371
+ data?: import("./types").Json;
3372
+ fetched_at?: string;
3373
+ floriday_id?: string;
3374
+ is_deleted?: boolean;
3375
+ sequence_number?: number;
3376
+ updated_at?: string;
3377
+ };
3378
+ Relationships: [{
3379
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3380
+ columns: ["connection_id"];
3381
+ isOneToOne: false;
3382
+ referencedRelation: "floriday_connections";
3383
+ referencedColumns: ["id"];
3384
+ }];
3385
+ };
3386
+ floriday_contracts_cache: {
3387
+ Row: {
3388
+ connection_id: string;
3389
+ created_at: string;
3390
+ data: import("./types").Json;
3391
+ fetched_at: string;
3392
+ floriday_id: string;
3393
+ id: string;
3394
+ is_deleted: boolean;
3395
+ sequence_number: number;
3396
+ updated_at: string;
3397
+ };
3398
+ Insert: {
3399
+ connection_id: string;
3400
+ created_at?: string;
3401
+ data: import("./types").Json;
3402
+ fetched_at?: string;
3403
+ floriday_id: string;
3404
+ id?: string;
3405
+ is_deleted?: boolean;
3406
+ sequence_number?: number;
3407
+ updated_at?: string;
3408
+ };
3409
+ Update: {
3410
+ connection_id?: string;
3411
+ created_at?: string;
3412
+ data?: import("./types").Json;
3413
+ fetched_at?: string;
3414
+ floriday_id?: string;
3415
+ id?: string;
3416
+ is_deleted?: boolean;
3417
+ sequence_number?: number;
3418
+ updated_at?: string;
3419
+ };
3420
+ Relationships: [{
3421
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3422
+ columns: ["connection_id"];
3423
+ isOneToOne: false;
3424
+ referencedRelation: "floriday_connections";
3425
+ referencedColumns: ["id"];
3426
+ }];
3427
+ };
3428
+ floriday_customer_sticker_pdfs_cache: {
3429
+ Row: {
3430
+ byte_size: number | null;
3431
+ connection_id: string;
3432
+ content_type: string;
3433
+ created_at: string;
3434
+ fetched_at: string;
3435
+ id: string;
3436
+ sticker_id: string;
3437
+ storage_path: string;
3438
+ };
3439
+ Insert: {
3440
+ byte_size?: number | null;
3441
+ connection_id: string;
3442
+ content_type?: string;
3443
+ created_at?: string;
3444
+ fetched_at?: string;
3445
+ id?: string;
3446
+ sticker_id: string;
3447
+ storage_path: string;
3448
+ };
3449
+ Update: {
3450
+ byte_size?: number | null;
3451
+ connection_id?: string;
3452
+ content_type?: string;
3453
+ created_at?: string;
3454
+ fetched_at?: string;
3455
+ id?: string;
3456
+ sticker_id?: string;
3457
+ storage_path?: string;
3458
+ };
3459
+ Relationships: [{
3460
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3461
+ columns: ["connection_id"];
3462
+ isOneToOne: false;
3463
+ referencedRelation: "floriday_connections";
3464
+ referencedColumns: ["id"];
3465
+ }];
3466
+ };
3467
+ floriday_customer_stickers_cache: {
3468
+ Row: {
3469
+ connection_id: string;
3470
+ created_at: string;
3471
+ data: import("./types").Json;
3472
+ fetched_at: string;
3473
+ floriday_id: string;
3474
+ id: string;
3475
+ is_deleted: boolean;
3476
+ quantity: number | null;
3477
+ sales_order_id: string | null;
3478
+ sequence_number: number;
3479
+ status: string | null;
3480
+ trade_item_id: string | null;
3481
+ updated_at: string;
3482
+ };
3483
+ Insert: {
3484
+ connection_id: string;
3485
+ created_at?: string;
3486
+ data?: import("./types").Json;
3487
+ fetched_at?: string;
3488
+ floriday_id: string;
3489
+ id?: string;
3490
+ is_deleted?: boolean;
3491
+ quantity?: number | null;
3492
+ sales_order_id?: string | null;
3493
+ sequence_number?: number;
3494
+ status?: string | null;
3495
+ trade_item_id?: string | null;
3496
+ updated_at?: string;
3497
+ };
3498
+ Update: {
3499
+ connection_id?: string;
3500
+ created_at?: string;
3501
+ data?: import("./types").Json;
3502
+ fetched_at?: string;
3503
+ floriday_id?: string;
3504
+ id?: string;
3505
+ is_deleted?: boolean;
3506
+ quantity?: number | null;
3507
+ sales_order_id?: string | null;
3508
+ sequence_number?: number;
3509
+ status?: string | null;
3510
+ trade_item_id?: string | null;
3511
+ updated_at?: string;
3512
+ };
3513
+ Relationships: [{
3514
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3515
+ columns: ["connection_id"];
3516
+ isOneToOne: false;
3517
+ referencedRelation: "floriday_connections";
3518
+ referencedColumns: ["id"];
3519
+ }];
3520
+ };
3521
+ floriday_customers_cache: {
3522
+ Row: {
3523
+ connection_id: string | null;
3524
+ data: import("./types").Json;
3525
+ fetched_at: string;
3526
+ gln_code: string | null;
3527
+ is_deleted: boolean;
3528
+ name: string | null;
3529
+ organization_id: string;
3530
+ sequence_number: number | null;
3531
+ };
3532
+ Insert: {
3533
+ connection_id?: string | null;
3534
+ data?: import("./types").Json;
3535
+ fetched_at?: string;
3536
+ gln_code?: string | null;
3537
+ is_deleted?: boolean;
3538
+ name?: string | null;
3539
+ organization_id: string;
3540
+ sequence_number?: number | null;
3541
+ };
3542
+ Update: {
3543
+ connection_id?: string | null;
3544
+ data?: import("./types").Json;
3545
+ fetched_at?: string;
3546
+ gln_code?: string | null;
3547
+ is_deleted?: boolean;
3548
+ name?: string | null;
3549
+ organization_id?: string;
3550
+ sequence_number?: number | null;
3551
+ };
3552
+ Relationships: [{
3553
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3554
+ columns: ["connection_id"];
3555
+ isOneToOne: false;
3556
+ referencedRelation: "floriday_connections";
3557
+ referencedColumns: ["id"];
3558
+ }];
3559
+ };
3560
+ floriday_delivery_condition_sets_cache: {
3561
+ Row: {
3562
+ connection_id: string;
3563
+ data: import("./types").Json;
3564
+ fetched_at: string;
3565
+ floriday_id: string;
3566
+ is_deleted: boolean;
3567
+ sequence_number: number;
3568
+ updated_at: string;
3569
+ };
3570
+ Insert: {
3571
+ connection_id: string;
3572
+ data: import("./types").Json;
3573
+ fetched_at?: string;
3574
+ floriday_id: string;
3575
+ is_deleted?: boolean;
3576
+ sequence_number?: number;
3577
+ updated_at?: string;
3578
+ };
3579
+ Update: {
3580
+ connection_id?: string;
3581
+ data?: import("./types").Json;
3582
+ fetched_at?: string;
3583
+ floriday_id?: string;
3584
+ is_deleted?: boolean;
3585
+ sequence_number?: number;
3586
+ updated_at?: string;
3587
+ };
3588
+ Relationships: [{
3589
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3590
+ columns: ["connection_id"];
3591
+ isOneToOne: false;
3592
+ referencedRelation: "floriday_connections";
3593
+ referencedColumns: ["id"];
3594
+ }];
3595
+ };
3596
+ floriday_delivery_locations_cache: {
3597
+ Row: {
3598
+ connection_id: string;
3599
+ data: import("./types").Json;
3600
+ fetched_at: string;
3601
+ floriday_id: string;
3602
+ gln_code: string | null;
3603
+ id: string;
3604
+ is_deleted: boolean;
3605
+ name: string | null;
3606
+ organization_id: string | null;
3607
+ updated_at: string;
3608
+ };
3609
+ Insert: {
3610
+ connection_id: string;
3611
+ data?: import("./types").Json;
3612
+ fetched_at?: string;
3613
+ floriday_id: string;
3614
+ gln_code?: string | null;
3615
+ id?: string;
3616
+ is_deleted?: boolean;
3617
+ name?: string | null;
3618
+ organization_id?: string | null;
3619
+ updated_at?: string;
3620
+ };
3621
+ Update: {
3622
+ connection_id?: string;
3623
+ data?: import("./types").Json;
3624
+ fetched_at?: string;
3625
+ floriday_id?: string;
3626
+ gln_code?: string | null;
3627
+ id?: string;
3628
+ is_deleted?: boolean;
3629
+ name?: string | null;
3630
+ organization_id?: string | null;
3631
+ updated_at?: string;
3632
+ };
3633
+ Relationships: [{
3634
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3635
+ columns: ["connection_id"];
3636
+ isOneToOne: false;
3637
+ referencedRelation: "floriday_connections";
3638
+ referencedColumns: ["id"];
3639
+ }];
3640
+ };
3641
+ floriday_delivery_orders_cache: {
3642
+ Row: {
3643
+ auction_date: string | null;
3644
+ connection_id: string;
3645
+ data: import("./types").Json;
3646
+ destination_warehouse_id: string | null;
3647
+ fetched_at: string;
3648
+ floriday_id: string;
3649
+ id: string;
3650
+ is_deleted: boolean;
3651
+ sequence_number: number;
3652
+ status: string | null;
3653
+ trade_item_id: string | null;
3654
+ updated_at: string;
3655
+ };
3656
+ Insert: {
3657
+ auction_date?: string | null;
3658
+ connection_id: string;
3659
+ data?: import("./types").Json;
3660
+ destination_warehouse_id?: string | null;
3661
+ fetched_at?: string;
3662
+ floriday_id: string;
3663
+ id?: string;
3664
+ is_deleted?: boolean;
3665
+ sequence_number?: number;
3666
+ status?: string | null;
3667
+ trade_item_id?: string | null;
3668
+ updated_at?: string;
3669
+ };
3670
+ Update: {
3671
+ auction_date?: string | null;
3672
+ connection_id?: string;
3673
+ data?: import("./types").Json;
3674
+ destination_warehouse_id?: string | null;
3675
+ fetched_at?: string;
3676
+ floriday_id?: string;
3677
+ id?: string;
3678
+ is_deleted?: boolean;
3679
+ sequence_number?: number;
3680
+ status?: string | null;
3681
+ trade_item_id?: string | null;
3682
+ updated_at?: string;
3683
+ };
3684
+ Relationships: [{
3685
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3686
+ columns: ["connection_id"];
3687
+ isOneToOne: false;
3688
+ referencedRelation: "floriday_connections";
3689
+ referencedColumns: ["id"];
3690
+ }];
3691
+ };
3692
+ floriday_fulfillment_orders_cache: {
3693
+ Row: {
3694
+ auction_date: string | null;
3695
+ connection_id: string;
3696
+ data: import("./types").Json;
3697
+ delivery_order_id: string | null;
3698
+ despatch_warehouse_id: string | null;
3699
+ destination_warehouse_id: string | null;
3700
+ fetched_at: string;
3701
+ floriday_id: string;
3702
+ id: string;
3703
+ is_deleted: boolean | null;
3704
+ latest_delivery_at: string | null;
3705
+ load_carrier_type: string | null;
3706
+ one_label_only: boolean | null;
3707
+ sequence_number: number;
3708
+ status: string | null;
3709
+ };
3710
+ Insert: {
3711
+ auction_date?: string | null;
3712
+ connection_id: string;
3713
+ data: import("./types").Json;
3714
+ delivery_order_id?: string | null;
3715
+ despatch_warehouse_id?: string | null;
3716
+ destination_warehouse_id?: string | null;
3717
+ fetched_at?: string;
3718
+ floriday_id: string;
3719
+ id?: string;
3720
+ is_deleted?: boolean | null;
3721
+ latest_delivery_at?: string | null;
3722
+ load_carrier_type?: string | null;
3723
+ one_label_only?: boolean | null;
3724
+ sequence_number?: number;
3725
+ status?: string | null;
3726
+ };
3727
+ Update: {
3728
+ auction_date?: string | null;
3729
+ connection_id?: string;
3730
+ data?: import("./types").Json;
3731
+ delivery_order_id?: string | null;
3732
+ despatch_warehouse_id?: string | null;
3733
+ destination_warehouse_id?: string | null;
3734
+ fetched_at?: string;
3735
+ floriday_id?: string;
3736
+ id?: string;
3737
+ is_deleted?: boolean | null;
3738
+ latest_delivery_at?: string | null;
3739
+ load_carrier_type?: string | null;
3740
+ one_label_only?: boolean | null;
3741
+ sequence_number?: number;
3742
+ status?: string | null;
3743
+ };
3744
+ Relationships: [{
3745
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
3746
+ columns: ["connection_id"];
3747
+ isOneToOne: false;
3748
+ referencedRelation: "floriday_connections";
3749
+ referencedColumns: ["id"];
3750
+ }];
3751
+ };
3752
+ floriday_invoices_cache: {
3753
+ Row: {
3754
+ buyer_organization_id: string | null;
3755
+ connection_id: string;
3756
+ currency: string | null;
3757
+ data: import("./types").Json;
3758
+ fetched_at: string;
3759
+ floriday_id: string;
3760
+ id: string;
3761
+ invoice_date: string | null;
3762
+ invoice_number: string | null;
3763
+ is_deleted: boolean;
3764
+ sequence_number: number;
3765
+ total_amount: number | null;
3766
+ updated_at: string;
3767
+ };
3768
+ Insert: {
3769
+ buyer_organization_id?: string | null;
3770
+ connection_id: string;
3771
+ currency?: string | null;
3772
+ data?: import("./types").Json;
3773
+ fetched_at?: string;
3774
+ floriday_id: string;
3775
+ id?: string;
3776
+ invoice_date?: string | null;
3777
+ invoice_number?: string | null;
3778
+ is_deleted?: boolean;
3779
+ sequence_number?: number;
3780
+ total_amount?: number | null;
3781
+ updated_at?: string;
3782
+ };
3783
+ Update: {
3784
+ buyer_organization_id?: string | null;
3785
+ connection_id?: string;
3786
+ currency?: string | null;
3787
+ data?: import("./types").Json;
3788
+ fetched_at?: string;
3789
+ floriday_id?: string;
3790
+ id?: string;
3791
+ invoice_date?: string | null;
3792
+ invoice_number?: string | null;
3793
+ is_deleted?: boolean;
3794
+ sequence_number?: number;
3795
+ total_amount?: number | null;
3796
+ updated_at?: string;
3797
+ };
3798
+ Relationships: [{
3799
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
3800
+ columns: ["connection_id"];
3801
+ isOneToOne: false;
3802
+ referencedRelation: "floriday_connections";
3803
+ referencedColumns: ["id"];
3804
+ }];
3805
+ };
3806
+ floriday_logistic_labels_cache: {
3807
+ Row: {
3808
+ byte_size: number | null;
3809
+ connection_id: string;
3810
+ content_type: string;
3811
+ fetched_at: string;
3812
+ fulfillment_order_id: string;
3813
+ id: string;
3814
+ logistic_label_code: string;
3815
+ storage_path: string;
3816
+ };
3817
+ Insert: {
3818
+ byte_size?: number | null;
3819
+ connection_id: string;
3820
+ content_type?: string;
3821
+ fetched_at?: string;
3822
+ fulfillment_order_id: string;
3823
+ id?: string;
3824
+ logistic_label_code: string;
3825
+ storage_path: string;
3826
+ };
3827
+ Update: {
3828
+ byte_size?: number | null;
3829
+ connection_id?: string;
3830
+ content_type?: string;
3831
+ fetched_at?: string;
3832
+ fulfillment_order_id?: string;
3833
+ id?: string;
3834
+ logistic_label_code?: string;
3835
+ storage_path?: string;
3836
+ };
3837
+ Relationships: [{
3838
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
3839
+ columns: ["connection_id"];
3840
+ isOneToOne: false;
3841
+ referencedRelation: "floriday_connections";
3842
+ referencedColumns: ["id"];
3843
+ }];
3844
+ };
3845
+ floriday_network_cache: {
3846
+ Row: {
3847
+ city: string | null;
3848
+ connection_id: string;
3849
+ country: string | null;
3850
+ data: import("./types").Json;
3851
+ fetched_at: string;
3852
+ gln: string | null;
3853
+ organization_id: string;
3854
+ organization_name: string | null;
3855
+ };
3856
+ Insert: {
3857
+ city?: string | null;
3858
+ connection_id: string;
3859
+ country?: string | null;
3860
+ data?: import("./types").Json;
3861
+ fetched_at?: string;
3862
+ gln?: string | null;
3863
+ organization_id: string;
3864
+ organization_name?: string | null;
3865
+ };
3866
+ Update: {
3867
+ city?: string | null;
3868
+ connection_id?: string;
3869
+ country?: string | null;
3870
+ data?: import("./types").Json;
3871
+ fetched_at?: string;
3872
+ gln?: string | null;
3873
+ organization_id?: string;
3874
+ organization_name?: string | null;
3875
+ };
3876
+ Relationships: [];
3877
+ };
3878
+ floriday_network_sync_state: {
3879
+ Row: {
3880
+ connection_id: string;
3881
+ last_error: string | null;
3882
+ last_sequence_number: number;
3883
+ last_synced_at: string | null;
3884
+ updated_at: string;
3885
+ };
3886
+ Insert: {
3887
+ connection_id: string;
3888
+ last_error?: string | null;
3889
+ last_sequence_number?: number;
3890
+ last_synced_at?: string | null;
3891
+ updated_at?: string;
3892
+ };
3893
+ Update: {
3894
+ connection_id?: string;
3895
+ last_error?: string | null;
3896
+ last_sequence_number?: number;
3897
+ last_synced_at?: string | null;
3898
+ updated_at?: string;
3899
+ };
3900
+ Relationships: [];
3901
+ };
3902
+ floriday_packings_cache: {
3903
+ Row: {
3904
+ connection_id: string;
3905
+ data: import("./types").Json;
3906
+ fetched_at: string;
3907
+ floriday_id: string;
3908
+ id: string;
2544
3909
  is_deleted: boolean;
2545
3910
  sequence_number: number;
2546
- status: string | null;
2547
- synced_at: string;
3911
+ updated_at: string;
2548
3912
  };
2549
3913
  Insert: {
2550
- buyer_organization_id?: string | null;
2551
- buyer_organization_name?: string | null;
2552
3914
  connection_id: string;
2553
- data: import("./types").Json;
2554
- floriday_connection_id: string;
3915
+ data?: import("./types").Json;
3916
+ fetched_at?: string;
3917
+ floriday_id: string;
3918
+ id?: string;
2555
3919
  is_deleted?: boolean;
2556
- sequence_number: number;
2557
- status?: string | null;
2558
- synced_at?: string;
3920
+ sequence_number?: number;
3921
+ updated_at?: string;
2559
3922
  };
2560
3923
  Update: {
2561
- buyer_organization_id?: string | null;
2562
- buyer_organization_name?: string | null;
2563
3924
  connection_id?: string;
2564
3925
  data?: import("./types").Json;
2565
- floriday_connection_id?: string;
3926
+ fetched_at?: string;
3927
+ floriday_id?: string;
3928
+ id?: string;
2566
3929
  is_deleted?: boolean;
2567
3930
  sequence_number?: number;
2568
- status?: string | null;
2569
- synced_at?: string;
3931
+ updated_at?: string;
2570
3932
  };
2571
3933
  Relationships: [{
2572
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3934
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
2573
3935
  columns: ["connection_id"];
2574
3936
  isOneToOne: false;
2575
3937
  referencedRelation: "floriday_connections";
2576
3938
  referencedColumns: ["id"];
2577
3939
  }];
2578
3940
  };
2579
- floriday_customers_cache: {
3941
+ floriday_price_groups_cache: {
2580
3942
  Row: {
2581
- connection_id: string | null;
3943
+ connection_id: string;
2582
3944
  data: import("./types").Json;
2583
3945
  fetched_at: string;
2584
- organization_id: string;
3946
+ floriday_id: string;
3947
+ is_deleted: boolean;
3948
+ sequence_number: number;
3949
+ updated_at: string;
2585
3950
  };
2586
3951
  Insert: {
2587
- connection_id?: string | null;
2588
- data?: import("./types").Json;
3952
+ connection_id: string;
3953
+ data: import("./types").Json;
2589
3954
  fetched_at?: string;
2590
- organization_id: string;
3955
+ floriday_id: string;
3956
+ is_deleted?: boolean;
3957
+ sequence_number?: number;
3958
+ updated_at?: string;
2591
3959
  };
2592
3960
  Update: {
2593
- connection_id?: string | null;
3961
+ connection_id?: string;
2594
3962
  data?: import("./types").Json;
2595
3963
  fetched_at?: string;
2596
- organization_id?: string;
3964
+ floriday_id?: string;
3965
+ is_deleted?: boolean;
3966
+ sequence_number?: number;
3967
+ updated_at?: string;
2597
3968
  };
2598
3969
  Relationships: [{
2599
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3970
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
2600
3971
  columns: ["connection_id"];
2601
3972
  isOneToOne: false;
2602
3973
  referencedRelation: "floriday_connections";
2603
3974
  referencedColumns: ["id"];
2604
3975
  }];
2605
3976
  };
2606
- floriday_network_cache: {
3977
+ floriday_resource_schemas: {
2607
3978
  Row: {
2608
- city: string | null;
2609
- connection_id: string;
2610
- country: string | null;
2611
- data: import("./types").Json;
3979
+ enums: import("./types").Json;
2612
3980
  fetched_at: string;
2613
- gln: string | null;
2614
- organization_id: string;
2615
- organization_name: string | null;
3981
+ resource: string;
3982
+ schema: import("./types").Json;
3983
+ source_url: string | null;
3984
+ version: string;
2616
3985
  };
2617
3986
  Insert: {
2618
- city?: string | null;
2619
- connection_id: string;
2620
- country?: string | null;
2621
- data?: import("./types").Json;
3987
+ enums?: import("./types").Json;
2622
3988
  fetched_at?: string;
2623
- gln?: string | null;
2624
- organization_id: string;
2625
- organization_name?: string | null;
3989
+ resource: string;
3990
+ schema: import("./types").Json;
3991
+ source_url?: string | null;
3992
+ version: string;
2626
3993
  };
2627
3994
  Update: {
2628
- city?: string | null;
2629
- connection_id?: string;
2630
- country?: string | null;
2631
- data?: import("./types").Json;
3995
+ enums?: import("./types").Json;
2632
3996
  fetched_at?: string;
2633
- gln?: string | null;
2634
- organization_id?: string;
2635
- organization_name?: string | null;
3997
+ resource?: string;
3998
+ schema?: import("./types").Json;
3999
+ source_url?: string | null;
4000
+ version?: string;
2636
4001
  };
2637
4002
  Relationships: [];
2638
4003
  };
2639
- floriday_network_sync_state: {
4004
+ floriday_sales_strategies_cache: {
2640
4005
  Row: {
2641
4006
  connection_id: string;
2642
- last_error: string | null;
2643
- last_sequence_number: number;
2644
- last_synced_at: string | null;
4007
+ data: import("./types").Json;
4008
+ fetched_at: string;
4009
+ floriday_id: string;
4010
+ is_deleted: boolean;
4011
+ sequence_number: number;
2645
4012
  updated_at: string;
2646
4013
  };
2647
4014
  Insert: {
2648
4015
  connection_id: string;
2649
- last_error?: string | null;
2650
- last_sequence_number?: number;
2651
- last_synced_at?: string | null;
4016
+ data: import("./types").Json;
4017
+ fetched_at?: string;
4018
+ floriday_id: string;
4019
+ is_deleted?: boolean;
4020
+ sequence_number?: number;
2652
4021
  updated_at?: string;
2653
4022
  };
2654
4023
  Update: {
2655
4024
  connection_id?: string;
2656
- last_error?: string | null;
2657
- last_sequence_number?: number;
2658
- last_synced_at?: string | null;
4025
+ data?: import("./types").Json;
4026
+ fetched_at?: string;
4027
+ floriday_id?: string;
4028
+ is_deleted?: boolean;
4029
+ sequence_number?: number;
2659
4030
  updated_at?: string;
2660
4031
  };
2661
- Relationships: [];
4032
+ Relationships: [{
4033
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4034
+ columns: ["connection_id"];
4035
+ isOneToOne: false;
4036
+ referencedRelation: "floriday_connections";
4037
+ referencedColumns: ["id"];
4038
+ }];
2662
4039
  };
2663
4040
  floriday_salesorders_cache: {
2664
4041
  Row: {
@@ -2725,7 +4102,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2725
4102
  connection_id: string;
2726
4103
  entity_type: string;
2727
4104
  last_error: string | null;
4105
+ last_items_processed: number | null;
2728
4106
  last_sequence_number: number;
4107
+ last_success_at: string | null;
2729
4108
  last_synced_at: string | null;
2730
4109
  updated_at: string;
2731
4110
  };
@@ -2733,7 +4112,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2733
4112
  connection_id: string;
2734
4113
  entity_type: string;
2735
4114
  last_error?: string | null;
4115
+ last_items_processed?: number | null;
2736
4116
  last_sequence_number?: number;
4117
+ last_success_at?: string | null;
2737
4118
  last_synced_at?: string | null;
2738
4119
  updated_at?: string;
2739
4120
  };
@@ -2741,7 +4122,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2741
4122
  connection_id?: string;
2742
4123
  entity_type?: string;
2743
4124
  last_error?: string | null;
4125
+ last_items_processed?: number | null;
2744
4126
  last_sequence_number?: number;
4127
+ last_success_at?: string | null;
2745
4128
  last_synced_at?: string | null;
2746
4129
  updated_at?: string;
2747
4130
  };
@@ -2789,6 +4172,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2789
4172
  referencedColumns: ["id"];
2790
4173
  }];
2791
4174
  };
4175
+ floriday_trade_item_classifications_cache: {
4176
+ Row: {
4177
+ connection_id: string;
4178
+ data: import("./types").Json;
4179
+ fetched_at: string;
4180
+ floriday_id: string;
4181
+ id: string;
4182
+ is_deleted: boolean;
4183
+ sequence_number: number;
4184
+ updated_at: string;
4185
+ };
4186
+ Insert: {
4187
+ connection_id: string;
4188
+ data: import("./types").Json;
4189
+ fetched_at?: string;
4190
+ floriday_id: string;
4191
+ id?: string;
4192
+ is_deleted?: boolean;
4193
+ sequence_number?: number;
4194
+ updated_at?: string;
4195
+ };
4196
+ Update: {
4197
+ connection_id?: string;
4198
+ data?: import("./types").Json;
4199
+ fetched_at?: string;
4200
+ floriday_id?: string;
4201
+ id?: string;
4202
+ is_deleted?: boolean;
4203
+ sequence_number?: number;
4204
+ updated_at?: string;
4205
+ };
4206
+ Relationships: [{
4207
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4208
+ columns: ["connection_id"];
4209
+ isOneToOne: false;
4210
+ referencedRelation: "floriday_connections";
4211
+ referencedColumns: ["id"];
4212
+ }];
4213
+ };
2792
4214
  floriday_trade_items_cache: {
2793
4215
  Row: {
2794
4216
  connection_id: string;
@@ -2799,23 +4221,176 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2799
4221
  sequence_number: number;
2800
4222
  };
2801
4223
  Insert: {
2802
- connection_id: string;
2803
- data?: import("./types").Json;
2804
- fetched_at?: string;
2805
- floriday_id: string;
2806
- is_deleted?: boolean;
2807
- sequence_number?: number;
4224
+ connection_id: string;
4225
+ data?: import("./types").Json;
4226
+ fetched_at?: string;
4227
+ floriday_id: string;
4228
+ is_deleted?: boolean;
4229
+ sequence_number?: number;
4230
+ };
4231
+ Update: {
4232
+ connection_id?: string;
4233
+ data?: import("./types").Json;
4234
+ fetched_at?: string;
4235
+ floriday_id?: string;
4236
+ is_deleted?: boolean;
4237
+ sequence_number?: number;
4238
+ };
4239
+ Relationships: [{
4240
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4241
+ columns: ["connection_id"];
4242
+ isOneToOne: false;
4243
+ referencedRelation: "floriday_connections";
4244
+ referencedColumns: ["id"];
4245
+ }];
4246
+ };
4247
+ floriday_trips_cache: {
4248
+ Row: {
4249
+ carrier_organization_id: string | null;
4250
+ connection_id: string;
4251
+ data: import("./types").Json;
4252
+ fetched_at: string;
4253
+ floriday_id: string;
4254
+ id: string;
4255
+ is_deleted: boolean;
4256
+ sequence_number: number;
4257
+ status: string | null;
4258
+ trip_date: string | null;
4259
+ updated_at: string;
4260
+ };
4261
+ Insert: {
4262
+ carrier_organization_id?: string | null;
4263
+ connection_id: string;
4264
+ data?: import("./types").Json;
4265
+ fetched_at?: string;
4266
+ floriday_id: string;
4267
+ id?: string;
4268
+ is_deleted?: boolean;
4269
+ sequence_number?: number;
4270
+ status?: string | null;
4271
+ trip_date?: string | null;
4272
+ updated_at?: string;
4273
+ };
4274
+ Update: {
4275
+ carrier_organization_id?: string | null;
4276
+ connection_id?: string;
4277
+ data?: import("./types").Json;
4278
+ fetched_at?: string;
4279
+ floriday_id?: string;
4280
+ id?: string;
4281
+ is_deleted?: boolean;
4282
+ sequence_number?: number;
4283
+ status?: string | null;
4284
+ trip_date?: string | null;
4285
+ updated_at?: string;
4286
+ };
4287
+ Relationships: [{
4288
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
4289
+ columns: ["connection_id"];
4290
+ isOneToOne: false;
4291
+ referencedRelation: "floriday_connections";
4292
+ referencedColumns: ["id"];
4293
+ }];
4294
+ };
4295
+ floriday_warehouses_cache: {
4296
+ Row: {
4297
+ connection_id: string;
4298
+ data: import("./types").Json;
4299
+ fetched_at: string;
4300
+ floriday_id: string;
4301
+ gln_code: string | null;
4302
+ id: string;
4303
+ is_default: boolean;
4304
+ is_deleted: boolean;
4305
+ name: string | null;
4306
+ updated_at: string;
4307
+ };
4308
+ Insert: {
4309
+ connection_id: string;
4310
+ data?: import("./types").Json;
4311
+ fetched_at?: string;
4312
+ floriday_id: string;
4313
+ gln_code?: string | null;
4314
+ id?: string;
4315
+ is_default?: boolean;
4316
+ is_deleted?: boolean;
4317
+ name?: string | null;
4318
+ updated_at?: string;
4319
+ };
4320
+ Update: {
4321
+ connection_id?: string;
4322
+ data?: import("./types").Json;
4323
+ fetched_at?: string;
4324
+ floriday_id?: string;
4325
+ gln_code?: string | null;
4326
+ id?: string;
4327
+ is_default?: boolean;
4328
+ is_deleted?: boolean;
4329
+ name?: string | null;
4330
+ updated_at?: string;
4331
+ };
4332
+ Relationships: [{
4333
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4334
+ columns: ["connection_id"];
4335
+ isOneToOne: false;
4336
+ referencedRelation: "floriday_connections";
4337
+ referencedColumns: ["id"];
4338
+ }];
4339
+ };
4340
+ floriday_write_log: {
4341
+ Row: {
4342
+ action: string;
4343
+ caller: string;
4344
+ connection_id: string | null;
4345
+ created_at: string;
4346
+ error: string | null;
4347
+ floriday_id: string | null;
4348
+ http_status: number | null;
4349
+ id: string;
4350
+ idempotency_key: string | null;
4351
+ module: string | null;
4352
+ ok: boolean;
4353
+ request: import("./types").Json | null;
4354
+ resource: string;
4355
+ response: import("./types").Json | null;
4356
+ user_id: string | null;
4357
+ };
4358
+ Insert: {
4359
+ action: string;
4360
+ caller?: string;
4361
+ connection_id?: string | null;
4362
+ created_at?: string;
4363
+ error?: string | null;
4364
+ floriday_id?: string | null;
4365
+ http_status?: number | null;
4366
+ id?: string;
4367
+ idempotency_key?: string | null;
4368
+ module?: string | null;
4369
+ ok: boolean;
4370
+ request?: import("./types").Json | null;
4371
+ resource: string;
4372
+ response?: import("./types").Json | null;
4373
+ user_id?: string | null;
2808
4374
  };
2809
4375
  Update: {
2810
- connection_id?: string;
2811
- data?: import("./types").Json;
2812
- fetched_at?: string;
2813
- floriday_id?: string;
2814
- is_deleted?: boolean;
2815
- sequence_number?: number;
4376
+ action?: string;
4377
+ caller?: string;
4378
+ connection_id?: string | null;
4379
+ created_at?: string;
4380
+ error?: string | null;
4381
+ floriday_id?: string | null;
4382
+ http_status?: number | null;
4383
+ id?: string;
4384
+ idempotency_key?: string | null;
4385
+ module?: string | null;
4386
+ ok?: boolean;
4387
+ request?: import("./types").Json | null;
4388
+ resource?: string;
4389
+ response?: import("./types").Json | null;
4390
+ user_id?: string | null;
2816
4391
  };
2817
4392
  Relationships: [{
2818
- foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4393
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
2819
4394
  columns: ["connection_id"];
2820
4395
  isOneToOne: false;
2821
4396
  referencedRelation: "floriday_connections";
@@ -2996,6 +4571,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2996
4571
  };
2997
4572
  Relationships: [];
2998
4573
  };
4574
+ invoice_push_log: {
4575
+ Row: {
4576
+ connection_id: string | null;
4577
+ created_at: string;
4578
+ created_by: string;
4579
+ customer_id: string | null;
4580
+ id: string;
4581
+ last_error: string | null;
4582
+ last_polled_at: string | null;
4583
+ payload: import("./types").Json;
4584
+ provider_id: string;
4585
+ queue_id: string | null;
4586
+ status: string;
4587
+ updated_at: string;
4588
+ };
4589
+ Insert: {
4590
+ connection_id?: string | null;
4591
+ created_at?: string;
4592
+ created_by?: string;
4593
+ customer_id?: string | null;
4594
+ id?: string;
4595
+ last_error?: string | null;
4596
+ last_polled_at?: string | null;
4597
+ payload?: import("./types").Json;
4598
+ provider_id: string;
4599
+ queue_id?: string | null;
4600
+ status?: string;
4601
+ updated_at?: string;
4602
+ };
4603
+ Update: {
4604
+ connection_id?: string | null;
4605
+ created_at?: string;
4606
+ created_by?: string;
4607
+ customer_id?: string | null;
4608
+ id?: string;
4609
+ last_error?: string | null;
4610
+ last_polled_at?: string | null;
4611
+ payload?: import("./types").Json;
4612
+ provider_id?: string;
4613
+ queue_id?: string | null;
4614
+ status?: string;
4615
+ updated_at?: string;
4616
+ };
4617
+ Relationships: [{
4618
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
4619
+ columns: ["provider_id"];
4620
+ isOneToOne: false;
4621
+ referencedRelation: "external_invoice_providers";
4622
+ referencedColumns: ["provider"];
4623
+ }];
4624
+ };
2999
4625
  invoice_run_items: {
3000
4626
  Row: {
3001
4627
  booking_id: string | null;
@@ -3120,6 +4746,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3120
4746
  Row: {
3121
4747
  body_html: string | null;
3122
4748
  body_text: string | null;
4749
+ connection_id: string | null;
3123
4750
  created_at: string;
3124
4751
  error_message: string | null;
3125
4752
  external_id: string | null;
@@ -3138,6 +4765,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3138
4765
  Insert: {
3139
4766
  body_html?: string | null;
3140
4767
  body_text?: string | null;
4768
+ connection_id?: string | null;
3141
4769
  created_at?: string;
3142
4770
  error_message?: string | null;
3143
4771
  external_id?: string | null;
@@ -3156,6 +4784,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3156
4784
  Update: {
3157
4785
  body_html?: string | null;
3158
4786
  body_text?: string | null;
4787
+ connection_id?: string | null;
3159
4788
  created_at?: string;
3160
4789
  error_message?: string | null;
3161
4790
  external_id?: string | null;
@@ -3172,6 +4801,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3172
4801
  updated_at?: string;
3173
4802
  };
3174
4803
  Relationships: [{
4804
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4805
+ columns: ["connection_id"];
4806
+ isOneToOne: false;
4807
+ referencedRelation: "email_auth_connections";
4808
+ referencedColumns: ["id"];
4809
+ }, {
4810
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
4811
+ columns: ["connection_id"];
4812
+ isOneToOne: false;
4813
+ referencedRelation: "email_auth_connections_safe";
4814
+ referencedColumns: ["id"];
4815
+ }, {
3175
4816
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3176
4817
  columns: ["profile_id"];
3177
4818
  isOneToOne: false;
@@ -3455,6 +5096,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3455
5096
  role: string;
3456
5097
  tenant_id: string;
3457
5098
  updated_at: string;
5099
+ user_id: string | null;
3458
5100
  };
3459
5101
  Insert: {
3460
5102
  avatar_url?: string | null;
@@ -3470,6 +5112,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3470
5112
  role?: string;
3471
5113
  tenant_id: string;
3472
5114
  updated_at?: string;
5115
+ user_id?: string | null;
3473
5116
  };
3474
5117
  Update: {
3475
5118
  avatar_url?: string | null;
@@ -3485,6 +5128,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3485
5128
  role?: string;
3486
5129
  tenant_id?: string;
3487
5130
  updated_at?: string;
5131
+ user_id?: string | null;
3488
5132
  };
3489
5133
  Relationships: [{
3490
5134
  foreignKeyName: "monteurs_tenant_id_fkey";
@@ -3621,12 +5265,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3621
5265
  isOneToOne: false;
3622
5266
  referencedRelation: "offer_campaigns";
3623
5267
  referencedColumns: ["id"];
3624
- }, {
3625
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3626
- columns: ["product_id"];
3627
- isOneToOne: false;
3628
- referencedRelation: "products";
3629
- referencedColumns: ["id"];
3630
5268
  }];
3631
5269
  };
3632
5270
  offer_campaigns: {
@@ -3902,6 +5540,99 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3902
5540
  };
3903
5541
  Relationships: [];
3904
5542
  };
5543
+ order_cart_items: {
5544
+ Row: {
5545
+ cart_id: string;
5546
+ crates: number;
5547
+ crates_per_layer: number;
5548
+ created_at: string;
5549
+ id: string;
5550
+ order_item_id: string | null;
5551
+ plants_per_crate: number;
5552
+ product_id: string | null;
5553
+ product_name: string;
5554
+ };
5555
+ Insert: {
5556
+ cart_id: string;
5557
+ crates: number;
5558
+ crates_per_layer?: number;
5559
+ created_at?: string;
5560
+ id?: string;
5561
+ order_item_id?: string | null;
5562
+ plants_per_crate?: number;
5563
+ product_id?: string | null;
5564
+ product_name: string;
5565
+ };
5566
+ Update: {
5567
+ cart_id?: string;
5568
+ crates?: number;
5569
+ crates_per_layer?: number;
5570
+ created_at?: string;
5571
+ id?: string;
5572
+ order_item_id?: string | null;
5573
+ plants_per_crate?: number;
5574
+ product_id?: string | null;
5575
+ product_name?: string;
5576
+ };
5577
+ Relationships: [{
5578
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5579
+ columns: ["cart_id"];
5580
+ isOneToOne: false;
5581
+ referencedRelation: "order_carts";
5582
+ referencedColumns: ["id"];
5583
+ }, {
5584
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5585
+ columns: ["order_item_id"];
5586
+ isOneToOne: false;
5587
+ referencedRelation: "order_items";
5588
+ referencedColumns: ["id"];
5589
+ }, {
5590
+ foreignKeyName: "order_cart_items_product_id_fkey";
5591
+ columns: ["product_id"];
5592
+ isOneToOne: false;
5593
+ referencedRelation: "products";
5594
+ referencedColumns: ["id"];
5595
+ }];
5596
+ };
5597
+ order_carts: {
5598
+ Row: {
5599
+ cart_number: number;
5600
+ created_at: string;
5601
+ id: string;
5602
+ is_auto: boolean;
5603
+ is_complete: boolean;
5604
+ notes: string | null;
5605
+ order_id: string;
5606
+ updated_at: string;
5607
+ };
5608
+ Insert: {
5609
+ cart_number: number;
5610
+ created_at?: string;
5611
+ id?: string;
5612
+ is_auto?: boolean;
5613
+ is_complete?: boolean;
5614
+ notes?: string | null;
5615
+ order_id: string;
5616
+ updated_at?: string;
5617
+ };
5618
+ Update: {
5619
+ cart_number?: number;
5620
+ created_at?: string;
5621
+ id?: string;
5622
+ is_auto?: boolean;
5623
+ is_complete?: boolean;
5624
+ notes?: string | null;
5625
+ order_id?: string;
5626
+ updated_at?: string;
5627
+ };
5628
+ Relationships: [{
5629
+ foreignKeyName: "order_carts_order_id_fkey";
5630
+ columns: ["order_id"];
5631
+ isOneToOne: false;
5632
+ referencedRelation: "orders";
5633
+ referencedColumns: ["id"];
5634
+ }];
5635
+ };
3905
5636
  order_field_options: {
3906
5637
  Row: {
3907
5638
  created_at: string;
@@ -4103,6 +5834,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4103
5834
  };
4104
5835
  Relationships: [];
4105
5836
  };
5837
+ pickstation_print_log: {
5838
+ Row: {
5839
+ customer_name: string | null;
5840
+ documents: string[];
5841
+ id: string;
5842
+ ip_address: string | null;
5843
+ order_id: string;
5844
+ order_number: string | null;
5845
+ printed_at: string;
5846
+ };
5847
+ Insert: {
5848
+ customer_name?: string | null;
5849
+ documents?: string[];
5850
+ id?: string;
5851
+ ip_address?: string | null;
5852
+ order_id: string;
5853
+ order_number?: string | null;
5854
+ printed_at?: string;
5855
+ };
5856
+ Update: {
5857
+ customer_name?: string | null;
5858
+ documents?: string[];
5859
+ id?: string;
5860
+ ip_address?: string | null;
5861
+ order_id?: string;
5862
+ order_number?: string | null;
5863
+ printed_at?: string;
5864
+ };
5865
+ Relationships: [];
5866
+ };
4106
5867
  pipeline_settings: {
4107
5868
  Row: {
4108
5869
  created_at: string;
@@ -4263,13 +6024,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4263
6024
  Row: {
4264
6025
  barcode: string | null;
4265
6026
  batch: string;
6027
+ crates_per_layer: number;
4266
6028
  created_at: string;
4267
6029
  custom_fields: import("./types").Json;
4268
6030
  id: string;
4269
6031
  image_url: string | null;
4270
6032
  incoming_quantity: number;
6033
+ layers_per_cart: number;
4271
6034
  location: string;
4272
6035
  min_quantity: number;
6036
+ plants_per_crate: number;
4273
6037
  product: string;
4274
6038
  product_type: string;
4275
6039
  purchase_price: number | null;
@@ -4282,13 +6046,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4282
6046
  Insert: {
4283
6047
  barcode?: string | null;
4284
6048
  batch: string;
6049
+ crates_per_layer?: number;
4285
6050
  created_at?: string;
4286
6051
  custom_fields?: import("./types").Json;
4287
6052
  id?: string;
4288
6053
  image_url?: string | null;
4289
6054
  incoming_quantity?: number;
6055
+ layers_per_cart?: number;
4290
6056
  location: string;
4291
6057
  min_quantity?: number;
6058
+ plants_per_crate?: number;
4292
6059
  product: string;
4293
6060
  product_type?: string;
4294
6061
  purchase_price?: number | null;
@@ -4301,13 +6068,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4301
6068
  Update: {
4302
6069
  barcode?: string | null;
4303
6070
  batch?: string;
6071
+ crates_per_layer?: number;
4304
6072
  created_at?: string;
4305
6073
  custom_fields?: import("./types").Json;
4306
6074
  id?: string;
4307
6075
  image_url?: string | null;
4308
6076
  incoming_quantity?: number;
6077
+ layers_per_cart?: number;
4309
6078
  location?: string;
4310
6079
  min_quantity?: number;
6080
+ plants_per_crate?: number;
4311
6081
  product?: string;
4312
6082
  product_type?: string;
4313
6083
  purchase_price?: number | null;
@@ -5249,6 +7019,141 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5249
7019
  };
5250
7020
  Relationships: [];
5251
7021
  };
7022
+ time_entries: {
7023
+ Row: {
7024
+ created_at: string;
7025
+ employee_id: string;
7026
+ entry_date: string;
7027
+ hours: number;
7028
+ id: string;
7029
+ notes: string | null;
7030
+ overtime: number;
7031
+ undertime: number;
7032
+ updated_at: string;
7033
+ };
7034
+ Insert: {
7035
+ created_at?: string;
7036
+ employee_id: string;
7037
+ entry_date: string;
7038
+ hours?: number;
7039
+ id?: string;
7040
+ notes?: string | null;
7041
+ overtime?: number;
7042
+ undertime?: number;
7043
+ updated_at?: string;
7044
+ };
7045
+ Update: {
7046
+ created_at?: string;
7047
+ employee_id?: string;
7048
+ entry_date?: string;
7049
+ hours?: number;
7050
+ id?: string;
7051
+ notes?: string | null;
7052
+ overtime?: number;
7053
+ undertime?: number;
7054
+ updated_at?: string;
7055
+ };
7056
+ Relationships: [{
7057
+ foreignKeyName: "time_entries_employee_id_fkey";
7058
+ columns: ["employee_id"];
7059
+ isOneToOne: false;
7060
+ referencedRelation: "monteurs";
7061
+ referencedColumns: ["id"];
7062
+ }];
7063
+ };
7064
+ time_logs: {
7065
+ Row: {
7066
+ created_at: string;
7067
+ employee_id: string;
7068
+ end_time: string | null;
7069
+ id: string;
7070
+ notes: string | null;
7071
+ overtime_hours: number;
7072
+ overtime_type: string | null;
7073
+ regular_hours: number;
7074
+ start_time: string;
7075
+ travel_cost: number | null;
7076
+ travel_distance_km: number | null;
7077
+ type: string;
7078
+ updated_at: string;
7079
+ };
7080
+ Insert: {
7081
+ created_at?: string;
7082
+ employee_id: string;
7083
+ end_time?: string | null;
7084
+ id?: string;
7085
+ notes?: string | null;
7086
+ overtime_hours?: number;
7087
+ overtime_type?: string | null;
7088
+ regular_hours?: number;
7089
+ start_time?: string;
7090
+ travel_cost?: number | null;
7091
+ travel_distance_km?: number | null;
7092
+ type: string;
7093
+ updated_at?: string;
7094
+ };
7095
+ Update: {
7096
+ created_at?: string;
7097
+ employee_id?: string;
7098
+ end_time?: string | null;
7099
+ id?: string;
7100
+ notes?: string | null;
7101
+ overtime_hours?: number;
7102
+ overtime_type?: string | null;
7103
+ regular_hours?: number;
7104
+ start_time?: string;
7105
+ travel_cost?: number | null;
7106
+ travel_distance_km?: number | null;
7107
+ type?: string;
7108
+ updated_at?: string;
7109
+ };
7110
+ Relationships: [{
7111
+ foreignKeyName: "time_logs_employee_id_fkey";
7112
+ columns: ["employee_id"];
7113
+ isOneToOne: false;
7114
+ referencedRelation: "monteurs";
7115
+ referencedColumns: ["id"];
7116
+ }];
7117
+ };
7118
+ time_off_entries: {
7119
+ Row: {
7120
+ created_at: string;
7121
+ employee_id: string;
7122
+ entry_date: string;
7123
+ hours: number;
7124
+ id: string;
7125
+ notes: string | null;
7126
+ type: string;
7127
+ updated_at: string;
7128
+ };
7129
+ Insert: {
7130
+ created_at?: string;
7131
+ employee_id: string;
7132
+ entry_date: string;
7133
+ hours?: number;
7134
+ id?: string;
7135
+ notes?: string | null;
7136
+ type: string;
7137
+ updated_at?: string;
7138
+ };
7139
+ Update: {
7140
+ created_at?: string;
7141
+ employee_id?: string;
7142
+ entry_date?: string;
7143
+ hours?: number;
7144
+ id?: string;
7145
+ notes?: string | null;
7146
+ type?: string;
7147
+ updated_at?: string;
7148
+ };
7149
+ Relationships: [{
7150
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7151
+ columns: ["employee_id"];
7152
+ isOneToOne: false;
7153
+ referencedRelation: "monteurs";
7154
+ referencedColumns: ["id"];
7155
+ }];
7156
+ };
5252
7157
  trade_item_drafts: {
5253
7158
  Row: {
5254
7159
  connection_id: string | null;
@@ -5546,9 +7451,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5546
7451
  fetched_at: string;
5547
7452
  invoice_number: string;
5548
7453
  line_number: number;
7454
+ line_total: number | null;
5549
7455
  quantity: number | null;
5550
7456
  unit_price: number | null;
5551
7457
  vat_code: string | null;
7458
+ vat_rate: number | null;
5552
7459
  };
5553
7460
  Insert: {
5554
7461
  article_code?: string | null;
@@ -5558,9 +7465,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5558
7465
  fetched_at?: string;
5559
7466
  invoice_number: string;
5560
7467
  line_number: number;
7468
+ line_total?: number | null;
5561
7469
  quantity?: number | null;
5562
7470
  unit_price?: number | null;
5563
7471
  vat_code?: string | null;
7472
+ vat_rate?: number | null;
5564
7473
  };
5565
7474
  Update: {
5566
7475
  article_code?: string | null;
@@ -5570,9 +7479,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5570
7479
  fetched_at?: string;
5571
7480
  invoice_number?: string;
5572
7481
  line_number?: number;
7482
+ line_total?: number | null;
5573
7483
  quantity?: number | null;
5574
7484
  unit_price?: number | null;
5575
7485
  vat_code?: string | null;
7486
+ vat_rate?: number | null;
5576
7487
  };
5577
7488
  Relationships: [{
5578
7489
  foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
@@ -5749,9 +7660,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5749
7660
  invoice_date: string | null;
5750
7661
  invoice_number: string;
5751
7662
  modified_at: string | null;
7663
+ outstanding_amount: number | null;
5752
7664
  status: string | null;
7665
+ status_label: string | null;
5753
7666
  total_excl: number | null;
5754
7667
  total_incl: number | null;
7668
+ vat_amount: number | null;
5755
7669
  };
5756
7670
  Insert: {
5757
7671
  connection_id: string;
@@ -5763,9 +7677,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5763
7677
  invoice_date?: string | null;
5764
7678
  invoice_number: string;
5765
7679
  modified_at?: string | null;
7680
+ outstanding_amount?: number | null;
5766
7681
  status?: string | null;
7682
+ status_label?: string | null;
5767
7683
  total_excl?: number | null;
5768
7684
  total_incl?: number | null;
7685
+ vat_amount?: number | null;
5769
7686
  };
5770
7687
  Update: {
5771
7688
  connection_id?: string;
@@ -5777,9 +7694,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5777
7694
  invoice_date?: string | null;
5778
7695
  invoice_number?: string;
5779
7696
  modified_at?: string | null;
7697
+ outstanding_amount?: number | null;
5780
7698
  status?: string | null;
7699
+ status_label?: string | null;
5781
7700
  total_excl?: number | null;
5782
7701
  total_incl?: number | null;
7702
+ vat_amount?: number | null;
5783
7703
  };
5784
7704
  Relationships: [{
5785
7705
  foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
@@ -5813,6 +7733,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5813
7733
  };
5814
7734
  Relationships: [];
5815
7735
  };
7736
+ twinfield_push_queue: {
7737
+ Row: {
7738
+ attempts: number;
7739
+ connection_id: string;
7740
+ created_at: string;
7741
+ external_id: string | null;
7742
+ id: string;
7743
+ idempotency_key: string;
7744
+ last_error: string | null;
7745
+ next_attempt_at: string;
7746
+ office_code: string;
7747
+ payload: import("./types").Json;
7748
+ status: string;
7749
+ updated_at: string;
7750
+ };
7751
+ Insert: {
7752
+ attempts?: number;
7753
+ connection_id: string;
7754
+ created_at?: string;
7755
+ external_id?: string | null;
7756
+ id?: string;
7757
+ idempotency_key: string;
7758
+ last_error?: string | null;
7759
+ next_attempt_at?: string;
7760
+ office_code: string;
7761
+ payload: import("./types").Json;
7762
+ status?: string;
7763
+ updated_at?: string;
7764
+ };
7765
+ Update: {
7766
+ attempts?: number;
7767
+ connection_id?: string;
7768
+ created_at?: string;
7769
+ external_id?: string | null;
7770
+ id?: string;
7771
+ idempotency_key?: string;
7772
+ last_error?: string | null;
7773
+ next_attempt_at?: string;
7774
+ office_code?: string;
7775
+ payload?: import("./types").Json;
7776
+ status?: string;
7777
+ updated_at?: string;
7778
+ };
7779
+ Relationships: [{
7780
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
7781
+ columns: ["connection_id"];
7782
+ isOneToOne: false;
7783
+ referencedRelation: "twinfield_connections";
7784
+ referencedColumns: ["id"];
7785
+ }];
7786
+ };
5816
7787
  twinfield_settings: {
5817
7788
  Row: {
5818
7789
  active_environment: string;
@@ -5924,6 +7895,117 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5924
7895
  referencedColumns: ["id"];
5925
7896
  }];
5926
7897
  };
7898
+ voorraad_media_upload_failures: {
7899
+ Row: {
7900
+ action: string;
7901
+ attempt_number: number;
7902
+ caller: string;
7903
+ client_user_id: string | null;
7904
+ content_type: string | null;
7905
+ created_at: string;
7906
+ environment: string;
7907
+ error_message: string | null;
7908
+ filename: string | null;
7909
+ id: string;
7910
+ idempotency_key: string | null;
7911
+ module: string;
7912
+ path: string;
7913
+ reference_id: string | null;
7914
+ request_body_hash: string | null;
7915
+ request_timestamp: number | null;
7916
+ response_content_type: string | null;
7917
+ response_status: number | null;
7918
+ size_bytes: number | null;
7919
+ };
7920
+ Insert: {
7921
+ action?: string;
7922
+ attempt_number?: number;
7923
+ caller?: string;
7924
+ client_user_id?: string | null;
7925
+ content_type?: string | null;
7926
+ created_at?: string;
7927
+ environment: string;
7928
+ error_message?: string | null;
7929
+ filename?: string | null;
7930
+ id?: string;
7931
+ idempotency_key?: string | null;
7932
+ module?: string;
7933
+ path: string;
7934
+ reference_id?: string | null;
7935
+ request_body_hash?: string | null;
7936
+ request_timestamp?: number | null;
7937
+ response_content_type?: string | null;
7938
+ response_status?: number | null;
7939
+ size_bytes?: number | null;
7940
+ };
7941
+ Update: {
7942
+ action?: string;
7943
+ attempt_number?: number;
7944
+ caller?: string;
7945
+ client_user_id?: string | null;
7946
+ content_type?: string | null;
7947
+ created_at?: string;
7948
+ environment?: string;
7949
+ error_message?: string | null;
7950
+ filename?: string | null;
7951
+ id?: string;
7952
+ idempotency_key?: string | null;
7953
+ module?: string;
7954
+ path?: string;
7955
+ reference_id?: string | null;
7956
+ request_body_hash?: string | null;
7957
+ request_timestamp?: number | null;
7958
+ response_content_type?: string | null;
7959
+ response_status?: number | null;
7960
+ size_bytes?: number | null;
7961
+ };
7962
+ Relationships: [];
7963
+ };
7964
+ voorraad_publish_attempts: {
7965
+ Row: {
7966
+ action: string;
7967
+ connection_id: string | null;
7968
+ created_at: string;
7969
+ error: string | null;
7970
+ gateway_attempt_id: string | null;
7971
+ gateway_status: number | null;
7972
+ id: string;
7973
+ intent: string;
7974
+ ok: boolean;
7975
+ request_summary: import("./types").Json | null;
7976
+ trade_item_id: string | null;
7977
+ user_id: string;
7978
+ };
7979
+ Insert: {
7980
+ action: string;
7981
+ connection_id?: string | null;
7982
+ created_at?: string;
7983
+ error?: string | null;
7984
+ gateway_attempt_id?: string | null;
7985
+ gateway_status?: number | null;
7986
+ id?: string;
7987
+ intent: string;
7988
+ ok: boolean;
7989
+ request_summary?: import("./types").Json | null;
7990
+ trade_item_id?: string | null;
7991
+ user_id: string;
7992
+ };
7993
+ Update: {
7994
+ action?: string;
7995
+ connection_id?: string | null;
7996
+ created_at?: string;
7997
+ error?: string | null;
7998
+ gateway_attempt_id?: string | null;
7999
+ gateway_status?: number | null;
8000
+ id?: string;
8001
+ intent?: string;
8002
+ ok?: boolean;
8003
+ request_summary?: import("./types").Json | null;
8004
+ trade_item_id?: string | null;
8005
+ user_id?: string;
8006
+ };
8007
+ Relationships: [];
8008
+ };
5927
8009
  work_order_monteurs: {
5928
8010
  Row: {
5929
8011
  created_at: string;
@@ -6235,6 +8317,132 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6235
8317
  };
6236
8318
  Relationships: [];
6237
8319
  };
8320
+ external_invoices_grouped: {
8321
+ Row: {
8322
+ currency: string | null;
8323
+ customer_external_id: string | null;
8324
+ customer_name: string | null;
8325
+ customer_vat: string | null;
8326
+ due_at: string | null;
8327
+ group_key: string | null;
8328
+ invoice_number: string | null;
8329
+ is_merged: boolean | null;
8330
+ issued_at: string | null;
8331
+ modified_at: string | null;
8332
+ open_amount: number | null;
8333
+ paid_at: string | null;
8334
+ providers: string[] | null;
8335
+ source_count: number | null;
8336
+ sources: import("./types").Json | null;
8337
+ status: string | null;
8338
+ total_excl: number | null;
8339
+ total_incl: number | null;
8340
+ total_vat: number | null;
8341
+ };
8342
+ Relationships: [];
8343
+ };
8344
+ external_invoices_unified: {
8345
+ Row: {
8346
+ connection_id: string | null;
8347
+ currency: string | null;
8348
+ customer_external_id: string | null;
8349
+ customer_name: string | null;
8350
+ customer_vat: string | null;
8351
+ due_at: string | null;
8352
+ external_id: string | null;
8353
+ invoice_number: string | null;
8354
+ issued_at: string | null;
8355
+ open_amount: number | null;
8356
+ owner_user_id: string | null;
8357
+ paid_at: string | null;
8358
+ raw: import("./types").Json | null;
8359
+ source: string | null;
8360
+ status: string | null;
8361
+ synced_at: string | null;
8362
+ total_excl: number | null;
8363
+ total_incl: number | null;
8364
+ total_vat: number | null;
8365
+ };
8366
+ Relationships: [];
8367
+ };
8368
+ v_external_customers_exact: {
8369
+ Row: {
8370
+ account_number: string | null;
8371
+ city: string | null;
8372
+ coc_number: string | null;
8373
+ company_name: string | null;
8374
+ connection_id: string | null;
8375
+ country: string | null;
8376
+ currency: string | null;
8377
+ email: string | null;
8378
+ external_id: string | null;
8379
+ is_sales: boolean | null;
8380
+ is_supplier: boolean | null;
8381
+ language: string | null;
8382
+ modified_at: string | null;
8383
+ phone: string | null;
8384
+ postal_code: string | null;
8385
+ raw: import("./types").Json | null;
8386
+ source: string | null;
8387
+ street: string | null;
8388
+ synced_at: string | null;
8389
+ vat_number: string | null;
8390
+ website: string | null;
8391
+ };
8392
+ Insert: {
8393
+ account_number?: string | null;
8394
+ city?: string | null;
8395
+ coc_number?: string | null;
8396
+ company_name?: string | null;
8397
+ connection_id?: string | null;
8398
+ country?: string | null;
8399
+ currency?: string | null;
8400
+ email?: string | null;
8401
+ external_id?: string | null;
8402
+ is_sales?: boolean | null;
8403
+ is_supplier?: boolean | null;
8404
+ language?: string | null;
8405
+ modified_at?: string | null;
8406
+ phone?: string | null;
8407
+ postal_code?: string | null;
8408
+ raw?: import("./types").Json | null;
8409
+ source?: never;
8410
+ street?: string | null;
8411
+ synced_at?: string | null;
8412
+ vat_number?: string | null;
8413
+ website?: string | null;
8414
+ };
8415
+ Update: {
8416
+ account_number?: string | null;
8417
+ city?: string | null;
8418
+ coc_number?: string | null;
8419
+ company_name?: string | null;
8420
+ connection_id?: string | null;
8421
+ country?: string | null;
8422
+ currency?: string | null;
8423
+ email?: string | null;
8424
+ external_id?: string | null;
8425
+ is_sales?: boolean | null;
8426
+ is_supplier?: boolean | null;
8427
+ language?: string | null;
8428
+ modified_at?: string | null;
8429
+ phone?: string | null;
8430
+ postal_code?: string | null;
8431
+ raw?: import("./types").Json | null;
8432
+ source?: never;
8433
+ street?: string | null;
8434
+ synced_at?: string | null;
8435
+ vat_number?: string | null;
8436
+ website?: string | null;
8437
+ };
8438
+ Relationships: [{
8439
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
8440
+ columns: ["connection_id"];
8441
+ isOneToOne: false;
8442
+ referencedRelation: "exact_connections";
8443
+ referencedColumns: ["id"];
8444
+ }];
8445
+ };
6238
8446
  v_external_customers_floriday: {
6239
8447
  Row: {
6240
8448
  city: string | null;
@@ -6289,12 +8497,111 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6289
8497
  provider: string | null;
6290
8498
  raw: import("./types").Json | null;
6291
8499
  status: string | null;
6292
- street: string | null;
6293
- vat_number: string | null;
6294
- website: string | null;
8500
+ street: string | null;
8501
+ vat_number: string | null;
8502
+ website: string | null;
8503
+ };
8504
+ Relationships: [{
8505
+ foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8506
+ columns: ["connection_id"];
8507
+ isOneToOne: false;
8508
+ referencedRelation: "twinfield_connections";
8509
+ referencedColumns: ["id"];
8510
+ }];
8511
+ };
8512
+ v_external_invoices_exact: {
8513
+ Row: {
8514
+ connection_id: string | null;
8515
+ currency: string | null;
8516
+ customer_external_id: string | null;
8517
+ customer_name: string | null;
8518
+ customer_vat: string | null;
8519
+ due_at: string | null;
8520
+ external_id: string | null;
8521
+ invoice_number: string | null;
8522
+ issued_at: string | null;
8523
+ open_amount: number | null;
8524
+ paid_at: string | null;
8525
+ raw: import("./types").Json | null;
8526
+ source: string | null;
8527
+ status: string | null;
8528
+ synced_at: string | null;
8529
+ total_excl: number | null;
8530
+ total_incl: number | null;
8531
+ total_vat: number | null;
8532
+ };
8533
+ Insert: {
8534
+ connection_id?: string | null;
8535
+ currency?: never;
8536
+ customer_external_id?: string | null;
8537
+ customer_name?: string | null;
8538
+ customer_vat?: never;
8539
+ due_at?: string | null;
8540
+ external_id?: string | null;
8541
+ invoice_number?: string | null;
8542
+ issued_at?: string | null;
8543
+ open_amount?: number | null;
8544
+ paid_at?: string | null;
8545
+ raw?: import("./types").Json | null;
8546
+ source?: never;
8547
+ status?: string | null;
8548
+ synced_at?: string | null;
8549
+ total_excl?: number | null;
8550
+ total_incl?: number | null;
8551
+ total_vat?: number | null;
8552
+ };
8553
+ Update: {
8554
+ connection_id?: string | null;
8555
+ currency?: never;
8556
+ customer_external_id?: string | null;
8557
+ customer_name?: string | null;
8558
+ customer_vat?: never;
8559
+ due_at?: string | null;
8560
+ external_id?: string | null;
8561
+ invoice_number?: string | null;
8562
+ issued_at?: string | null;
8563
+ open_amount?: number | null;
8564
+ paid_at?: string | null;
8565
+ raw?: import("./types").Json | null;
8566
+ source?: never;
8567
+ status?: string | null;
8568
+ synced_at?: string | null;
8569
+ total_excl?: number | null;
8570
+ total_incl?: number | null;
8571
+ total_vat?: number | null;
8572
+ };
8573
+ Relationships: [{
8574
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
8575
+ columns: ["connection_id"];
8576
+ isOneToOne: false;
8577
+ referencedRelation: "exact_connections";
8578
+ referencedColumns: ["id"];
8579
+ }];
8580
+ };
8581
+ v_external_invoices_twinfield: {
8582
+ Row: {
8583
+ connection_id: string | null;
8584
+ currency: string | null;
8585
+ customer_external_id: string | null;
8586
+ customer_name: string | null;
8587
+ customer_vat: string | null;
8588
+ due_at: string | null;
8589
+ external_id: string | null;
8590
+ invoice_number: string | null;
8591
+ issued_at: string | null;
8592
+ open_amount: number | null;
8593
+ owner_user_id: string | null;
8594
+ paid_at: string | null;
8595
+ raw: import("./types").Json | null;
8596
+ source: string | null;
8597
+ status: string | null;
8598
+ synced_at: string | null;
8599
+ total_excl: number | null;
8600
+ total_incl: number | null;
8601
+ total_vat: number | null;
6295
8602
  };
6296
8603
  Relationships: [{
6297
- foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
8604
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
6298
8605
  columns: ["connection_id"];
6299
8606
  isOneToOne: false;
6300
8607
  referencedRelation: "twinfield_connections";
@@ -6303,6 +8610,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6303
8610
  };
6304
8611
  };
6305
8612
  Functions: {
8613
+ _floriday_schedule_job: {
8614
+ Args: {
8615
+ p_apikey: string;
8616
+ p_jobname: string;
8617
+ p_schedule: string;
8618
+ p_timeout_ms: number;
8619
+ p_url: string;
8620
+ };
8621
+ Returns: number;
8622
+ };
8623
+ call_exact_route: {
8624
+ Args: {
8625
+ path: string;
8626
+ };
8627
+ Returns: number;
8628
+ };
8629
+ cleanup_old_bookings: {
8630
+ Args: never;
8631
+ Returns: number;
8632
+ };
8633
+ current_monteur_id: {
8634
+ Args: never;
8635
+ Returns: string;
8636
+ };
6306
8637
  dashboard_list_public_schema: {
6307
8638
  Args: never;
6308
8639
  Returns: {
@@ -6407,6 +8738,32 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6407
8738
  office_code: string;
6408
8739
  }[];
6409
8740
  };
8741
+ get_floriday_agreements_active: {
8742
+ Args: {
8743
+ p_on_date?: string;
8744
+ };
8745
+ Returns: {
8746
+ buyer_organization_id: string;
8747
+ data: import("./types").Json;
8748
+ floriday_id: string;
8749
+ status: string;
8750
+ valid_from: string;
8751
+ valid_until: string;
8752
+ }[];
8753
+ };
8754
+ get_floriday_clock_supplies_window: {
8755
+ Args: {
8756
+ p_from: string;
8757
+ p_to: string;
8758
+ };
8759
+ Returns: {
8760
+ auction_date: string;
8761
+ data: import("./types").Json;
8762
+ floriday_id: string;
8763
+ status: string;
8764
+ trade_item_id: string;
8765
+ }[];
8766
+ };
6410
8767
  get_floriday_cron_jobs: {
6411
8768
  Args: never;
6412
8769
  Returns: {
@@ -6416,6 +8773,56 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6416
8773
  url: string;
6417
8774
  }[];
6418
8775
  };
8776
+ get_floriday_delivery_locations: {
8777
+ Args: {
8778
+ p_organization_id: string;
8779
+ };
8780
+ Returns: {
8781
+ data: import("./types").Json;
8782
+ floriday_id: string;
8783
+ gln_code: string;
8784
+ name: string;
8785
+ }[];
8786
+ };
8787
+ get_floriday_fulfillment_orders_window: {
8788
+ Args: {
8789
+ p_from: string;
8790
+ p_to: string;
8791
+ };
8792
+ Returns: {
8793
+ auction_date: string;
8794
+ data: import("./types").Json;
8795
+ delivery_order_id: string;
8796
+ destination_warehouse_id: string;
8797
+ floriday_id: string;
8798
+ status: string;
8799
+ }[];
8800
+ };
8801
+ get_floriday_sales_orders_window: {
8802
+ Args: {
8803
+ p_from: string;
8804
+ p_to: string;
8805
+ };
8806
+ Returns: {
8807
+ buyer_organization_id: string;
8808
+ data: import("./types").Json;
8809
+ floriday_id: string;
8810
+ status: string;
8811
+ updated_at: string;
8812
+ }[];
8813
+ };
8814
+ get_floriday_sync_health: {
8815
+ Args: never;
8816
+ Returns: {
8817
+ entity_type: string;
8818
+ last_error: string;
8819
+ last_items_processed: number;
8820
+ last_sequence_number: number;
8821
+ last_success_at: string;
8822
+ last_synced_at: string;
8823
+ minutes_since_success: number;
8824
+ }[];
8825
+ };
6419
8826
  get_offer_by_link_code: {
6420
8827
  Args: {
6421
8828
  p_code: string;
@@ -6481,6 +8888,74 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6481
8888
  };
6482
8889
  Returns: string;
6483
8890
  };
8891
+ pickstation_get_orders_raw: {
8892
+ Args: never;
8893
+ Returns: import("./types").Json;
8894
+ };
8895
+ pickstation_get_settings: {
8896
+ Args: never;
8897
+ Returns: import("./types").Json;
8898
+ };
8899
+ pickstation_log_print: {
8900
+ Args: {
8901
+ p_customer_name: string;
8902
+ p_documents: string[];
8903
+ p_ip_address: string;
8904
+ p_order_id: string;
8905
+ p_order_number: string;
8906
+ };
8907
+ Returns: undefined;
8908
+ };
8909
+ refresh_floricode_derived_code_lists: {
8910
+ Args: never;
8911
+ Returns: {
8912
+ out_environment: string;
8913
+ out_list_name: string;
8914
+ out_row_count: number;
8915
+ }[];
8916
+ };
8917
+ reset_floriday_sync_cursor: {
8918
+ Args: {
8919
+ p_connection_id: string;
8920
+ p_entity_type: string;
8921
+ };
8922
+ Returns: undefined;
8923
+ };
8924
+ schedule_floriday_additional_services_sync: {
8925
+ Args: {
8926
+ p_apikey: string;
8927
+ p_url: string;
8928
+ };
8929
+ Returns: number;
8930
+ };
8931
+ schedule_floriday_agreement_calloffs_sync: {
8932
+ Args: {
8933
+ p_apikey: string;
8934
+ p_url: string;
8935
+ };
8936
+ Returns: number;
8937
+ };
8938
+ schedule_floriday_agreements_sync: {
8939
+ Args: {
8940
+ p_apikey: string;
8941
+ p_url: string;
8942
+ };
8943
+ Returns: number;
8944
+ };
8945
+ schedule_floriday_base_items_sync: {
8946
+ Args: {
8947
+ p_apikey: string;
8948
+ p_url: string;
8949
+ };
8950
+ Returns: number;
8951
+ };
8952
+ schedule_floriday_blanket_orders_sync: {
8953
+ Args: {
8954
+ p_apikey: string;
8955
+ p_url: string;
8956
+ };
8957
+ Returns: number;
8958
+ };
6484
8959
  schedule_floriday_carriers_sync: {
6485
8960
  Args: {
6486
8961
  p_apikey: string;
@@ -6488,6 +8963,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6488
8963
  };
6489
8964
  Returns: number;
6490
8965
  };
8966
+ schedule_floriday_clock_presales_sync: {
8967
+ Args: {
8968
+ p_apikey: string;
8969
+ p_url: string;
8970
+ };
8971
+ Returns: number;
8972
+ };
8973
+ schedule_floriday_clock_supplies_sync: {
8974
+ Args: {
8975
+ p_apikey: string;
8976
+ p_url: string;
8977
+ };
8978
+ Returns: number;
8979
+ };
8980
+ schedule_floriday_collections_sync: {
8981
+ Args: {
8982
+ p_apikey: string;
8983
+ p_url: string;
8984
+ };
8985
+ Returns: number;
8986
+ };
8987
+ schedule_floriday_commercial_service_types_sync: {
8988
+ Args: {
8989
+ p_apikey: string;
8990
+ p_url: string;
8991
+ };
8992
+ Returns: number;
8993
+ };
6491
8994
  schedule_floriday_connections_sync: {
6492
8995
  Args: {
6493
8996
  p_apikey: string;
@@ -6495,6 +8998,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6495
8998
  };
6496
8999
  Returns: number;
6497
9000
  };
9001
+ schedule_floriday_contract_trade_item_groups_sync: {
9002
+ Args: {
9003
+ p_apikey: string;
9004
+ p_url: string;
9005
+ };
9006
+ Returns: number;
9007
+ };
9008
+ schedule_floriday_contracts_sync: {
9009
+ Args: {
9010
+ p_apikey: string;
9011
+ p_url: string;
9012
+ };
9013
+ Returns: number;
9014
+ };
6498
9015
  schedule_floriday_customer_organizations_sync: {
6499
9016
  Args: {
6500
9017
  p_apikey: string;
@@ -6502,6 +9019,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6502
9019
  };
6503
9020
  Returns: number;
6504
9021
  };
9022
+ schedule_floriday_customer_stickers_sync: {
9023
+ Args: {
9024
+ p_apikey: string;
9025
+ p_url: string;
9026
+ };
9027
+ Returns: number;
9028
+ };
9029
+ schedule_floriday_delivery_condition_sets_sync: {
9030
+ Args: {
9031
+ p_apikey: string;
9032
+ p_url: string;
9033
+ };
9034
+ Returns: number;
9035
+ };
9036
+ schedule_floriday_delivery_locations_sync: {
9037
+ Args: {
9038
+ p_apikey: string;
9039
+ p_url: string;
9040
+ };
9041
+ Returns: number;
9042
+ };
9043
+ schedule_floriday_delivery_orders_sync: {
9044
+ Args: {
9045
+ p_apikey: string;
9046
+ p_url: string;
9047
+ };
9048
+ Returns: number;
9049
+ };
9050
+ schedule_floriday_fulfillment_orders_sync: {
9051
+ Args: {
9052
+ p_apikey: string;
9053
+ p_url: string;
9054
+ };
9055
+ Returns: number;
9056
+ };
9057
+ schedule_floriday_invoices_sync: {
9058
+ Args: {
9059
+ p_apikey: string;
9060
+ p_url: string;
9061
+ };
9062
+ Returns: number;
9063
+ };
6505
9064
  schedule_floriday_network_sync: {
6506
9065
  Args: {
6507
9066
  p_apikey: string;
@@ -6509,6 +9068,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6509
9068
  };
6510
9069
  Returns: number;
6511
9070
  };
9071
+ schedule_floriday_packings_sync: {
9072
+ Args: {
9073
+ p_apikey: string;
9074
+ p_url: string;
9075
+ };
9076
+ Returns: number;
9077
+ };
9078
+ schedule_floriday_price_groups_sync: {
9079
+ Args: {
9080
+ p_apikey: string;
9081
+ p_url: string;
9082
+ };
9083
+ Returns: number;
9084
+ };
9085
+ schedule_floriday_reference_data_refresh: {
9086
+ Args: {
9087
+ p_apikey: string;
9088
+ p_url: string;
9089
+ };
9090
+ Returns: number;
9091
+ };
9092
+ schedule_floriday_sales_strategies_sync: {
9093
+ Args: {
9094
+ p_apikey: string;
9095
+ p_url: string;
9096
+ };
9097
+ Returns: number;
9098
+ };
6512
9099
  schedule_floriday_salesorders_sync: {
6513
9100
  Args: {
6514
9101
  p_apikey: string;
@@ -6523,6 +9110,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6523
9110
  };
6524
9111
  Returns: number;
6525
9112
  };
9113
+ schedule_floriday_trade_item_classifications_sync: {
9114
+ Args: {
9115
+ p_apikey: string;
9116
+ p_url: string;
9117
+ };
9118
+ Returns: number;
9119
+ };
6526
9120
  schedule_floriday_trade_items_sync: {
6527
9121
  Args: {
6528
9122
  p_apikey: string;
@@ -6530,6 +9124,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6530
9124
  };
6531
9125
  Returns: number;
6532
9126
  };
9127
+ schedule_floriday_trips_sync: {
9128
+ Args: {
9129
+ p_apikey: string;
9130
+ p_url: string;
9131
+ };
9132
+ Returns: number;
9133
+ };
9134
+ schedule_floriday_warehouses_sync: {
9135
+ Args: {
9136
+ p_apikey: string;
9137
+ p_url: string;
9138
+ };
9139
+ Returns: number;
9140
+ };
6533
9141
  schedule_twinfield_customers_sync: {
6534
9142
  Args: {
6535
9143
  p_apikey: string;
@@ -6558,6 +9166,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6558
9166
  };
6559
9167
  Returns: number;
6560
9168
  };
9169
+ schedule_twinfield_push_queue_flush: {
9170
+ Args: {
9171
+ p_apikey: string;
9172
+ p_cron_secret?: string;
9173
+ p_url: string;
9174
+ };
9175
+ Returns: number;
9176
+ };
6561
9177
  schedule_twinfield_token_refresh: {
6562
9178
  Args: {
6563
9179
  p_apikey: string;
@@ -6596,8 +9212,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6596
9212
  };
6597
9213
  };
6598
9214
  Enums: {
6599
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9215
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
6600
9216
  exact_env: "staging" | "live";
9217
+ exact_push_status: "pending" | "sent" | "error";
6601
9218
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6602
9219
  };
6603
9220
  CompositeTypes: { [_ in never]: never; };