@flowselections/floriday-afhandeling-module 1.0.29 → 1.0.31

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 (40) hide show
  1. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/LeveringenPage.js +7 -24
  3. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  4. package/dist-lib/components/afhandeling/PickAgendaView.js +22 -24
  5. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +5 -1
  6. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  7. package/dist-lib/components/afhandeling/WeekAgendaView.js +19 -29
  8. package/dist-lib/hooks/useEngineTasks.d.ts +2 -0
  9. package/dist-lib/hooks/useEngineTasks.d.ts.map +1 -1
  10. package/dist-lib/hooks/useEngineTasks.js +19 -4
  11. package/dist-lib/hooks/useOrderPlanning.d.ts +12 -1
  12. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  13. package/dist-lib/hooks/useOrderPlanning.js +65 -26
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts +629 -4
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.d.ts +629 -4
  17. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts +629 -4
  19. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/types.d.ts +630 -5
  21. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.js +12 -1
  23. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1378 -128
  24. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/agendaRange.d.ts +13 -0
  26. package/dist-lib/lib/agendaRange.d.ts.map +1 -0
  27. package/dist-lib/lib/agendaRange.js +25 -0
  28. package/dist-lib/lib/carriers.functions.d.ts +3265 -140
  29. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/cartAssignments.functions.d.ts +3265 -140
  31. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/cartControl.functions.d.ts +6650 -400
  33. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday.functions.d.ts +647 -8
  35. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday.functions.js +86 -20
  37. package/dist-lib/lib/logisticsEngine/engine.d.ts +16 -3
  38. package/dist-lib/lib/logisticsEngine/engine.d.ts.map +1 -1
  39. package/dist-lib/lib/logisticsEngine/engine.js +13 -6
  40. package/package.json +2 -2
@@ -1684,7 +1684,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1684
1684
  city: string | null;
1685
1685
  country: string | null;
1686
1686
  created_at: string;
1687
- customer_id: string | null;
1687
+ customer_id: string;
1688
1688
  external_key: string | null;
1689
1689
  external_provider: string | null;
1690
1690
  floriday_location_id: string | null;
@@ -1708,7 +1708,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1708
1708
  city?: string | null;
1709
1709
  country?: string | null;
1710
1710
  created_at?: string;
1711
- customer_id?: string | null;
1711
+ customer_id: string;
1712
1712
  external_key?: string | null;
1713
1713
  external_provider?: string | null;
1714
1714
  floriday_location_id?: string | null;
@@ -1732,7 +1732,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1732
1732
  city?: string | null;
1733
1733
  country?: string | null;
1734
1734
  created_at?: string;
1735
- customer_id?: string | null;
1735
+ customer_id?: string;
1736
1736
  external_key?: string | null;
1737
1737
  external_provider?: string | null;
1738
1738
  floriday_location_id?: string | null;
@@ -6480,6 +6480,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6480
6480
  Row: {
6481
6481
  buyer_organization_id: string | null;
6482
6482
  connection_id: string;
6483
+ controlled_at: string | null;
6483
6484
  created_at: string;
6484
6485
  data: import("./types").Json;
6485
6486
  floriday_id: string;
@@ -6491,6 +6492,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6491
6492
  Insert: {
6492
6493
  buyer_organization_id?: string | null;
6493
6494
  connection_id: string;
6495
+ controlled_at?: string | null;
6494
6496
  created_at?: string;
6495
6497
  data: import("./types").Json;
6496
6498
  floriday_id: string;
@@ -6502,6 +6504,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6502
6504
  Update: {
6503
6505
  buyer_organization_id?: string | null;
6504
6506
  connection_id?: string;
6507
+ controlled_at?: string | null;
6505
6508
  created_at?: string;
6506
6509
  data?: import("./types").Json;
6507
6510
  floriday_id?: string;
@@ -7403,6 +7406,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7403
7406
  };
7404
7407
  Relationships: [];
7405
7408
  };
7409
+ invoice_timing_settings: {
7410
+ Row: {
7411
+ anchor: string;
7412
+ business_days_only: boolean;
7413
+ created_at: string;
7414
+ enabled: boolean;
7415
+ id: string;
7416
+ offset_days: number;
7417
+ pickup_anchor: string;
7418
+ pickup_business_days_only: boolean;
7419
+ pickup_offset_days: number;
7420
+ pickup_time_of_day: string;
7421
+ singleton: boolean;
7422
+ time_of_day: string;
7423
+ updated_at: string;
7424
+ };
7425
+ Insert: {
7426
+ anchor?: string;
7427
+ business_days_only?: boolean;
7428
+ created_at?: string;
7429
+ enabled?: boolean;
7430
+ id?: string;
7431
+ offset_days?: number;
7432
+ pickup_anchor?: string;
7433
+ pickup_business_days_only?: boolean;
7434
+ pickup_offset_days?: number;
7435
+ pickup_time_of_day?: string;
7436
+ singleton?: boolean;
7437
+ time_of_day?: string;
7438
+ updated_at?: string;
7439
+ };
7440
+ Update: {
7441
+ anchor?: string;
7442
+ business_days_only?: boolean;
7443
+ created_at?: string;
7444
+ enabled?: boolean;
7445
+ id?: string;
7446
+ offset_days?: number;
7447
+ pickup_anchor?: string;
7448
+ pickup_business_days_only?: boolean;
7449
+ pickup_offset_days?: number;
7450
+ pickup_time_of_day?: string;
7451
+ singleton?: boolean;
7452
+ time_of_day?: string;
7453
+ updated_at?: string;
7454
+ };
7455
+ Relationships: [];
7456
+ };
7406
7457
  itk_contact_persons: {
7407
7458
  Row: {
7408
7459
  created_at: string;
@@ -8492,6 +8543,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8492
8543
  };
8493
8544
  Relationships: [];
8494
8545
  };
8546
+ logistics_floriday_pushes: {
8547
+ Row: {
8548
+ attempts: number;
8549
+ created_at: string;
8550
+ first_queued_at: string;
8551
+ fulfillment_order_id: string | null;
8552
+ id: string;
8553
+ last_error: string | null;
8554
+ last_error_at: string | null;
8555
+ last_sent_hash: string | null;
8556
+ locked_by: string | null;
8557
+ locked_until: string | null;
8558
+ next_attempt_at: string;
8559
+ order_ref: string;
8560
+ payload: import("./types").Json;
8561
+ payload_hash: string | null;
8562
+ revision: number;
8563
+ sent_at: string | null;
8564
+ status: string;
8565
+ updated_at: string;
8566
+ };
8567
+ Insert: {
8568
+ attempts?: number;
8569
+ created_at?: string;
8570
+ first_queued_at?: string;
8571
+ fulfillment_order_id?: string | null;
8572
+ id?: string;
8573
+ last_error?: string | null;
8574
+ last_error_at?: string | null;
8575
+ last_sent_hash?: string | null;
8576
+ locked_by?: string | null;
8577
+ locked_until?: string | null;
8578
+ next_attempt_at?: string;
8579
+ order_ref: string;
8580
+ payload?: import("./types").Json;
8581
+ payload_hash?: string | null;
8582
+ revision?: number;
8583
+ sent_at?: string | null;
8584
+ status?: string;
8585
+ updated_at?: string;
8586
+ };
8587
+ Update: {
8588
+ attempts?: number;
8589
+ created_at?: string;
8590
+ first_queued_at?: string;
8591
+ fulfillment_order_id?: string | null;
8592
+ id?: string;
8593
+ last_error?: string | null;
8594
+ last_error_at?: string | null;
8595
+ last_sent_hash?: string | null;
8596
+ locked_by?: string | null;
8597
+ locked_until?: string | null;
8598
+ next_attempt_at?: string;
8599
+ order_ref?: string;
8600
+ payload?: import("./types").Json;
8601
+ payload_hash?: string | null;
8602
+ revision?: number;
8603
+ sent_at?: string | null;
8604
+ status?: string;
8605
+ updated_at?: string;
8606
+ };
8607
+ Relationships: [];
8608
+ };
8495
8609
  logistics_formulas: {
8496
8610
  Row: {
8497
8611
  created_at: string;
@@ -8570,6 +8684,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8570
8684
  };
8571
8685
  Relationships: [];
8572
8686
  };
8687
+ logistics_plan_queue: {
8688
+ Row: {
8689
+ attempts: number;
8690
+ claimed_at: string | null;
8691
+ enqueued_at: string;
8692
+ error: string | null;
8693
+ id: string;
8694
+ next_attempt_at: string;
8695
+ order_id: string;
8696
+ reason: string;
8697
+ status: string;
8698
+ updated_at: string;
8699
+ };
8700
+ Insert: {
8701
+ attempts?: number;
8702
+ claimed_at?: string | null;
8703
+ enqueued_at?: string;
8704
+ error?: string | null;
8705
+ id?: string;
8706
+ next_attempt_at?: string;
8707
+ order_id: string;
8708
+ reason?: string;
8709
+ status?: string;
8710
+ updated_at?: string;
8711
+ };
8712
+ Update: {
8713
+ attempts?: number;
8714
+ claimed_at?: string | null;
8715
+ enqueued_at?: string;
8716
+ error?: string | null;
8717
+ id?: string;
8718
+ next_attempt_at?: string;
8719
+ order_id?: string;
8720
+ reason?: string;
8721
+ status?: string;
8722
+ updated_at?: string;
8723
+ };
8724
+ Relationships: [];
8725
+ };
8573
8726
  logistics_plan_runs: {
8574
8727
  Row: {
8575
8728
  created_at: string;
@@ -8645,6 +8798,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8645
8798
  referencedColumns: ["id"];
8646
8799
  }];
8647
8800
  };
8801
+ logistics_plan_settings: {
8802
+ Row: {
8803
+ key: string;
8804
+ updated_at: string;
8805
+ value: string;
8806
+ };
8807
+ Insert: {
8808
+ key: string;
8809
+ updated_at?: string;
8810
+ value: string;
8811
+ };
8812
+ Update: {
8813
+ key?: string;
8814
+ updated_at?: string;
8815
+ value?: string;
8816
+ };
8817
+ Relationships: [];
8818
+ };
8648
8819
  logistics_rebuffer_state: {
8649
8820
  Row: {
8650
8821
  created_at: string;
@@ -9355,14 +9526,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9355
9526
  };
9356
9527
  mailbox_messages: {
9357
9528
  Row: {
9529
+ attachments: import("./types").Json;
9358
9530
  body_html: string | null;
9359
9531
  body_text: string | null;
9532
+ cc_recipients: import("./types").Json;
9360
9533
  connection_id: string | null;
9361
9534
  created_at: string;
9362
9535
  error_message: string | null;
9363
9536
  external_id: string | null;
9364
9537
  from_email: string | null;
9365
9538
  from_name: string | null;
9539
+ has_attachments: boolean;
9366
9540
  id: string;
9367
9541
  message_id: string | null;
9368
9542
  profile_id: string | null;
@@ -9370,18 +9544,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9370
9544
  received_at: string | null;
9371
9545
  status: string;
9372
9546
  subject: string | null;
9547
+ to_recipients: import("./types").Json;
9373
9548
  uid: number | null;
9374
9549
  updated_at: string;
9375
9550
  };
9376
9551
  Insert: {
9552
+ attachments?: import("./types").Json;
9377
9553
  body_html?: string | null;
9378
9554
  body_text?: string | null;
9555
+ cc_recipients?: import("./types").Json;
9379
9556
  connection_id?: string | null;
9380
9557
  created_at?: string;
9381
9558
  error_message?: string | null;
9382
9559
  external_id?: string | null;
9383
9560
  from_email?: string | null;
9384
9561
  from_name?: string | null;
9562
+ has_attachments?: boolean;
9385
9563
  id?: string;
9386
9564
  message_id?: string | null;
9387
9565
  profile_id?: string | null;
@@ -9389,18 +9567,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9389
9567
  received_at?: string | null;
9390
9568
  status?: string;
9391
9569
  subject?: string | null;
9570
+ to_recipients?: import("./types").Json;
9392
9571
  uid?: number | null;
9393
9572
  updated_at?: string;
9394
9573
  };
9395
9574
  Update: {
9575
+ attachments?: import("./types").Json;
9396
9576
  body_html?: string | null;
9397
9577
  body_text?: string | null;
9578
+ cc_recipients?: import("./types").Json;
9398
9579
  connection_id?: string | null;
9399
9580
  created_at?: string;
9400
9581
  error_message?: string | null;
9401
9582
  external_id?: string | null;
9402
9583
  from_email?: string | null;
9403
9584
  from_name?: string | null;
9585
+ has_attachments?: boolean;
9404
9586
  id?: string;
9405
9587
  message_id?: string | null;
9406
9588
  profile_id?: string | null;
@@ -9408,6 +9590,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9408
9590
  received_at?: string | null;
9409
9591
  status?: string;
9410
9592
  subject?: string | null;
9593
+ to_recipients?: import("./types").Json;
9411
9594
  uid?: number | null;
9412
9595
  updated_at?: string;
9413
9596
  };
@@ -9815,6 +9998,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9815
9998
  };
9816
9999
  Relationships: [];
9817
10000
  };
10001
+ module_registry: {
10002
+ Row: {
10003
+ created_at: string;
10004
+ is_active: boolean;
10005
+ last_seen_at: string;
10006
+ module_id: string;
10007
+ name: string;
10008
+ shell_id: string | null;
10009
+ sort_order: number | null;
10010
+ };
10011
+ Insert: {
10012
+ created_at?: string;
10013
+ is_active?: boolean;
10014
+ last_seen_at?: string;
10015
+ module_id: string;
10016
+ name: string;
10017
+ shell_id?: string | null;
10018
+ sort_order?: number | null;
10019
+ };
10020
+ Update: {
10021
+ created_at?: string;
10022
+ is_active?: boolean;
10023
+ last_seen_at?: string;
10024
+ module_id?: string;
10025
+ name?: string;
10026
+ shell_id?: string | null;
10027
+ sort_order?: number | null;
10028
+ };
10029
+ Relationships: [];
10030
+ };
9818
10031
  module_runtime_config: {
9819
10032
  Row: {
9820
10033
  key: string;
@@ -10874,6 +11087,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10874
11087
  };
10875
11088
  Relationships: [];
10876
11089
  };
11090
+ order_invoice_links: {
11091
+ Row: {
11092
+ attempts: number;
11093
+ created_at: string;
11094
+ error_message: string | null;
11095
+ id: string;
11096
+ invoice_number: string | null;
11097
+ next_attempt_at: string;
11098
+ order_id: string;
11099
+ processed_at: string | null;
11100
+ status: string;
11101
+ updated_at: string;
11102
+ };
11103
+ Insert: {
11104
+ attempts?: number;
11105
+ created_at?: string;
11106
+ error_message?: string | null;
11107
+ id?: string;
11108
+ invoice_number?: string | null;
11109
+ next_attempt_at?: string;
11110
+ order_id: string;
11111
+ processed_at?: string | null;
11112
+ status?: string;
11113
+ updated_at?: string;
11114
+ };
11115
+ Update: {
11116
+ attempts?: number;
11117
+ created_at?: string;
11118
+ error_message?: string | null;
11119
+ id?: string;
11120
+ invoice_number?: string | null;
11121
+ next_attempt_at?: string;
11122
+ order_id?: string;
11123
+ processed_at?: string | null;
11124
+ status?: string;
11125
+ updated_at?: string;
11126
+ };
11127
+ Relationships: [];
11128
+ };
10877
11129
  order_items: {
10878
11130
  Row: {
10879
11131
  crates_per_layer: number | null;
@@ -11056,6 +11308,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11056
11308
  delivery_date: string | null;
11057
11309
  floriday_sales_order_id: string | null;
11058
11310
  id: string;
11311
+ invoice_due_at: string | null;
11059
11312
  is_reservation: boolean;
11060
11313
  notes: string | null;
11061
11314
  order_date: string;
@@ -11077,6 +11330,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11077
11330
  delivery_date?: string | null;
11078
11331
  floriday_sales_order_id?: string | null;
11079
11332
  id?: string;
11333
+ invoice_due_at?: string | null;
11080
11334
  is_reservation?: boolean;
11081
11335
  notes?: string | null;
11082
11336
  order_date?: string;
@@ -11098,6 +11352,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11098
11352
  delivery_date?: string | null;
11099
11353
  floriday_sales_order_id?: string | null;
11100
11354
  id?: string;
11355
+ invoice_due_at?: string | null;
11101
11356
  is_reservation?: boolean;
11102
11357
  notes?: string | null;
11103
11358
  order_date?: string;
@@ -12294,22 +12549,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12294
12549
  created_at: string;
12295
12550
  documentnaam: string;
12296
12551
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12552
+ extern_job_id: string | null;
12297
12553
  foutmelding: string | null;
12298
12554
  gebruiker_id: string | null;
12299
12555
  gebruiker_naam: string;
12300
12556
  gestart_op: string | null;
12301
12557
  id: string;
12558
+ idempotentie_sleutel: string | null;
12302
12559
  is_herprint: boolean;
12303
12560
  kopieen: number;
12304
12561
  layout_id: string | null;
12305
12562
  opgepakt_op: string | null;
12306
12563
  paginas: number;
12307
12564
  payload: import("./types").Json;
12565
+ pdf_base64: string | null;
12566
+ pdf_url: string | null;
12308
12567
  pogingen: number;
12309
12568
  printer_id: string | null;
12310
12569
  render_html: string | null;
12311
12570
  status: Database["public"]["Enums"]["print_job_status"];
12312
12571
  updated_at: string;
12572
+ volgende_poging: string | null;
12313
12573
  voltooid_op: string | null;
12314
12574
  };
12315
12575
  Insert: {
@@ -12318,22 +12578,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12318
12578
  created_at?: string;
12319
12579
  documentnaam?: string;
12320
12580
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12581
+ extern_job_id?: string | null;
12321
12582
  foutmelding?: string | null;
12322
12583
  gebruiker_id?: string | null;
12323
12584
  gebruiker_naam?: string;
12324
12585
  gestart_op?: string | null;
12325
12586
  id?: string;
12587
+ idempotentie_sleutel?: string | null;
12326
12588
  is_herprint?: boolean;
12327
12589
  kopieen?: number;
12328
12590
  layout_id?: string | null;
12329
12591
  opgepakt_op?: string | null;
12330
12592
  paginas?: number;
12331
12593
  payload?: import("./types").Json;
12594
+ pdf_base64?: string | null;
12595
+ pdf_url?: string | null;
12332
12596
  pogingen?: number;
12333
12597
  printer_id?: string | null;
12334
12598
  render_html?: string | null;
12335
12599
  status?: Database["public"]["Enums"]["print_job_status"];
12336
12600
  updated_at?: string;
12601
+ volgende_poging?: string | null;
12337
12602
  voltooid_op?: string | null;
12338
12603
  };
12339
12604
  Update: {
@@ -12342,22 +12607,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12342
12607
  created_at?: string;
12343
12608
  documentnaam?: string;
12344
12609
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12610
+ extern_job_id?: string | null;
12345
12611
  foutmelding?: string | null;
12346
12612
  gebruiker_id?: string | null;
12347
12613
  gebruiker_naam?: string;
12348
12614
  gestart_op?: string | null;
12349
12615
  id?: string;
12616
+ idempotentie_sleutel?: string | null;
12350
12617
  is_herprint?: boolean;
12351
12618
  kopieen?: number;
12352
12619
  layout_id?: string | null;
12353
12620
  opgepakt_op?: string | null;
12354
12621
  paginas?: number;
12355
12622
  payload?: import("./types").Json;
12623
+ pdf_base64?: string | null;
12624
+ pdf_url?: string | null;
12356
12625
  pogingen?: number;
12357
12626
  printer_id?: string | null;
12358
12627
  render_html?: string | null;
12359
12628
  status?: Database["public"]["Enums"]["print_job_status"];
12360
12629
  updated_at?: string;
12630
+ volgende_poging?: string | null;
12361
12631
  voltooid_op?: string | null;
12362
12632
  };
12363
12633
  Relationships: [{
@@ -12380,6 +12650,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12380
12650
  referencedColumns: ["id"];
12381
12651
  }];
12382
12652
  };
12653
+ print_queue_runners: {
12654
+ Row: {
12655
+ actief: boolean;
12656
+ basis_url: string;
12657
+ created_at: string;
12658
+ id: string;
12659
+ laatst_gezien: string;
12660
+ tick_sleutel: string;
12661
+ updated_at: string;
12662
+ };
12663
+ Insert: {
12664
+ actief?: boolean;
12665
+ basis_url: string;
12666
+ created_at?: string;
12667
+ id?: string;
12668
+ laatst_gezien?: string;
12669
+ tick_sleutel?: string;
12670
+ updated_at?: string;
12671
+ };
12672
+ Update: {
12673
+ actief?: boolean;
12674
+ basis_url?: string;
12675
+ created_at?: string;
12676
+ id?: string;
12677
+ laatst_gezien?: string;
12678
+ tick_sleutel?: string;
12679
+ updated_at?: string;
12680
+ };
12681
+ Relationships: [];
12682
+ };
12683
+ print_queue_settings: {
12684
+ Row: {
12685
+ bewaar_bestanden_dagen: number;
12686
+ bewaar_opdrachten_dagen: number;
12687
+ created_at: string;
12688
+ dubbel_venster_minuten: number;
12689
+ id: string;
12690
+ updated_at: string;
12691
+ };
12692
+ Insert: {
12693
+ bewaar_bestanden_dagen?: number;
12694
+ bewaar_opdrachten_dagen?: number;
12695
+ created_at?: string;
12696
+ dubbel_venster_minuten?: number;
12697
+ id?: string;
12698
+ updated_at?: string;
12699
+ };
12700
+ Update: {
12701
+ bewaar_bestanden_dagen?: number;
12702
+ bewaar_opdrachten_dagen?: number;
12703
+ created_at?: string;
12704
+ dubbel_venster_minuten?: number;
12705
+ id?: string;
12706
+ updated_at?: string;
12707
+ };
12708
+ Relationships: [];
12709
+ };
12383
12710
  print_rules: {
12384
12711
  Row: {
12385
12712
  actief: boolean;
@@ -12540,6 +12867,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12540
12867
  agent_id: string | null;
12541
12868
  created_at: string;
12542
12869
  driver: string;
12870
+ extern_printer_id: string | null;
12543
12871
  id: string;
12544
12872
  ip_adres: string | null;
12545
12873
  laatst_gezien: string | null;
@@ -12561,6 +12889,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12561
12889
  agent_id?: string | null;
12562
12890
  created_at?: string;
12563
12891
  driver?: string;
12892
+ extern_printer_id?: string | null;
12564
12893
  id?: string;
12565
12894
  ip_adres?: string | null;
12566
12895
  laatst_gezien?: string | null;
@@ -12582,6 +12911,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12582
12911
  agent_id?: string | null;
12583
12912
  created_at?: string;
12584
12913
  driver?: string;
12914
+ extern_printer_id?: string | null;
12585
12915
  id?: string;
12586
12916
  ip_adres?: string | null;
12587
12917
  laatst_gezien?: string | null;
@@ -15217,6 +15547,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15217
15547
  };
15218
15548
  twinfield_invoice_settings: {
15219
15549
  Row: {
15550
+ auto_invoice_enabled: boolean;
15551
+ auto_invoice_trigger_statuses: string[];
15220
15552
  created_at: string;
15221
15553
  debtor_gl_account: string;
15222
15554
  default_credit_invoice_type: string | null;
@@ -15237,6 +15569,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15237
15569
  vat_code_export: string | null;
15238
15570
  };
15239
15571
  Insert: {
15572
+ auto_invoice_enabled?: boolean;
15573
+ auto_invoice_trigger_statuses?: string[];
15240
15574
  created_at?: string;
15241
15575
  debtor_gl_account?: string;
15242
15576
  default_credit_invoice_type?: string | null;
@@ -15257,6 +15591,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15257
15591
  vat_code_export?: string | null;
15258
15592
  };
15259
15593
  Update: {
15594
+ auto_invoice_enabled?: boolean;
15595
+ auto_invoice_trigger_statuses?: string[];
15260
15596
  created_at?: string;
15261
15597
  debtor_gl_account?: string;
15262
15598
  default_credit_invoice_type?: string | null;
@@ -16319,6 +16655,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16319
16655
  referencedColumns: ["id"];
16320
16656
  }];
16321
16657
  };
16658
+ user_module_permissions: {
16659
+ Row: {
16660
+ created_at: string;
16661
+ id: string;
16662
+ module_id: string;
16663
+ permission: string;
16664
+ updated_at: string;
16665
+ user_id: string;
16666
+ };
16667
+ Insert: {
16668
+ created_at?: string;
16669
+ id?: string;
16670
+ module_id: string;
16671
+ permission: string;
16672
+ updated_at?: string;
16673
+ user_id: string;
16674
+ };
16675
+ Update: {
16676
+ created_at?: string;
16677
+ id?: string;
16678
+ module_id?: string;
16679
+ permission?: string;
16680
+ updated_at?: string;
16681
+ user_id?: string;
16682
+ };
16683
+ Relationships: [];
16684
+ };
16322
16685
  user_roles: {
16323
16686
  Row: {
16324
16687
  created_at: string;
@@ -18152,6 +18515,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18152
18515
  processed_items: number;
18153
18516
  }[];
18154
18517
  };
18518
+ backfill_order_auto_invoice_queue: {
18519
+ Args: never;
18520
+ Returns: number;
18521
+ };
18155
18522
  calculate_layer_stock: {
18156
18523
  Args: {
18157
18524
  p_product_id: string;
@@ -18186,6 +18553,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18186
18553
  };
18187
18554
  Returns: import("./types").Json;
18188
18555
  };
18556
+ claim_cloud_print_jobs: {
18557
+ Args: {
18558
+ _max?: number;
18559
+ };
18560
+ Returns: {
18561
+ agent_id: string | null;
18562
+ bron_job_id: string | null;
18563
+ created_at: string;
18564
+ documentnaam: string;
18565
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
18566
+ extern_job_id: string | null;
18567
+ foutmelding: string | null;
18568
+ gebruiker_id: string | null;
18569
+ gebruiker_naam: string;
18570
+ gestart_op: string | null;
18571
+ id: string;
18572
+ idempotentie_sleutel: string | null;
18573
+ is_herprint: boolean;
18574
+ kopieen: number;
18575
+ layout_id: string | null;
18576
+ opgepakt_op: string | null;
18577
+ paginas: number;
18578
+ payload: import("./types").Json;
18579
+ pdf_base64: string | null;
18580
+ pdf_url: string | null;
18581
+ pogingen: number;
18582
+ printer_id: string | null;
18583
+ render_html: string | null;
18584
+ status: Database["public"]["Enums"]["print_job_status"];
18585
+ updated_at: string;
18586
+ volgende_poging: string | null;
18587
+ voltooid_op: string | null;
18588
+ }[];
18589
+ SetofOptions: {
18590
+ from: "*";
18591
+ to: "print_jobs";
18592
+ isOneToOne: false;
18593
+ isSetofReturn: true;
18594
+ };
18595
+ };
18189
18596
  claim_floriday_stock_queue: {
18190
18597
  Args: {
18191
18598
  p_limit?: number;
@@ -18276,22 +18683,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18276
18683
  created_at: string;
18277
18684
  documentnaam: string;
18278
18685
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
18686
+ extern_job_id: string | null;
18279
18687
  foutmelding: string | null;
18280
18688
  gebruiker_id: string | null;
18281
18689
  gebruiker_naam: string;
18282
18690
  gestart_op: string | null;
18283
18691
  id: string;
18692
+ idempotentie_sleutel: string | null;
18284
18693
  is_herprint: boolean;
18285
18694
  kopieen: number;
18286
18695
  layout_id: string | null;
18287
18696
  opgepakt_op: string | null;
18288
18697
  paginas: number;
18289
18698
  payload: import("./types").Json;
18699
+ pdf_base64: string | null;
18700
+ pdf_url: string | null;
18290
18701
  pogingen: number;
18291
18702
  printer_id: string | null;
18292
18703
  render_html: string | null;
18293
18704
  status: Database["public"]["Enums"]["print_job_status"];
18294
18705
  updated_at: string;
18706
+ volgende_poging: string | null;
18295
18707
  voltooid_op: string | null;
18296
18708
  }[];
18297
18709
  SetofOptions: {
@@ -18337,6 +18749,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18337
18749
  Args: never;
18338
18750
  Returns: undefined;
18339
18751
  };
18752
+ cleanup_voorraad_module_history: {
18753
+ Args: never;
18754
+ Returns: undefined;
18755
+ };
18340
18756
  complete_floriday_stock_queue: {
18341
18757
  Args: {
18342
18758
  p_attempt_id?: string;
@@ -18458,6 +18874,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18458
18874
  };
18459
18875
  Returns: import("./types").Json;
18460
18876
  };
18877
+ effective_module_permission: {
18878
+ Args: {
18879
+ _module_id: string;
18880
+ _user_id: string;
18881
+ };
18882
+ Returns: string;
18883
+ };
18461
18884
  email_auth_decrypt: {
18462
18885
  Args: {
18463
18886
  cipher: string;
@@ -19261,6 +19684,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19261
19684
  isSetofReturn: false;
19262
19685
  };
19263
19686
  };
19687
+ logistics_floriday_claim_pushes: {
19688
+ Args: {
19689
+ _lease_seconds?: number;
19690
+ _limit?: number;
19691
+ _worker?: string;
19692
+ };
19693
+ Returns: {
19694
+ attempts: number;
19695
+ fulfillment_order_id: string;
19696
+ id: string;
19697
+ last_sent_hash: string;
19698
+ order_ref: string;
19699
+ payload: import("./types").Json;
19700
+ payload_hash: string;
19701
+ revision: number;
19702
+ }[];
19703
+ };
19704
+ logistics_floriday_finish_push: {
19705
+ Args: {
19706
+ _error?: string;
19707
+ _fulfillment_order_id?: string;
19708
+ _id: string;
19709
+ _max_age_hours?: number;
19710
+ _max_attempts?: number;
19711
+ _ok: boolean;
19712
+ _permanent?: boolean;
19713
+ _revision: number;
19714
+ _sent_hash?: string;
19715
+ };
19716
+ Returns: string;
19717
+ };
19718
+ logistics_floriday_prune_pushes: {
19719
+ Args: {
19720
+ _days?: number;
19721
+ };
19722
+ Returns: number;
19723
+ };
19724
+ logistics_floriday_queue_push: {
19725
+ Args: {
19726
+ _order_ref: string;
19727
+ _payload?: import("./types").Json;
19728
+ _payload_hash?: string;
19729
+ };
19730
+ Returns: string;
19731
+ };
19264
19732
  logistics_live_carriers: {
19265
19733
  Args: {
19266
19734
  p_order_ref: string;
@@ -19313,6 +19781,65 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19313
19781
  };
19314
19782
  Returns: number;
19315
19783
  };
19784
+ logistics_plan_claim: {
19785
+ Args: {
19786
+ p_limit?: number;
19787
+ };
19788
+ Returns: {
19789
+ attempts: number;
19790
+ id: string;
19791
+ order_id: string;
19792
+ }[];
19793
+ };
19794
+ logistics_plan_enqueue: {
19795
+ Args: {
19796
+ p_order_id: string;
19797
+ p_reason?: string;
19798
+ };
19799
+ Returns: undefined;
19800
+ };
19801
+ logistics_plan_ensure_event: {
19802
+ Args: {
19803
+ p_order_id: string;
19804
+ };
19805
+ Returns: boolean;
19806
+ };
19807
+ logistics_plan_finish: {
19808
+ Args: {
19809
+ p_error?: string;
19810
+ p_id: string;
19811
+ };
19812
+ Returns: undefined;
19813
+ };
19814
+ logistics_plan_impact_orders: {
19815
+ Args: {
19816
+ p_order_id: string;
19817
+ };
19818
+ Returns: {
19819
+ buffer_id: string;
19820
+ order_id: string;
19821
+ plan_date: string;
19822
+ }[];
19823
+ };
19824
+ logistics_plan_kick: {
19825
+ Args: never;
19826
+ Returns: undefined;
19827
+ };
19828
+ logistics_plan_prune: {
19829
+ Args: never;
19830
+ Returns: number;
19831
+ };
19832
+ logistics_plan_release_stale: {
19833
+ Args: never;
19834
+ Returns: number;
19835
+ };
19836
+ logistics_plan_setting: {
19837
+ Args: {
19838
+ p_default: number;
19839
+ p_key: string;
19840
+ };
19841
+ Returns: number;
19842
+ };
19316
19843
  logistics_queue_capacity_email: {
19317
19844
  Args: {
19318
19845
  p_alert_id: string;
@@ -19551,6 +20078,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19551
20078
  };
19552
20079
  Returns: undefined;
19553
20080
  };
20081
+ my_module_permissions: {
20082
+ Args: never;
20083
+ Returns: {
20084
+ module_id: string;
20085
+ permission: string;
20086
+ }[];
20087
+ };
19554
20088
  next_manufacture_partij: {
19555
20089
  Args: {
19556
20090
  _tenant_id: string;
@@ -19601,6 +20135,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19601
20135
  };
19602
20136
  Returns: boolean;
19603
20137
  };
20138
+ opruim_print_historie: {
20139
+ Args: never;
20140
+ Returns: {
20141
+ ontdaan: number;
20142
+ verwijderd: number;
20143
+ }[];
20144
+ };
19604
20145
  order_number_prefix: {
19605
20146
  Args: {
19606
20147
  p_custom_fields?: import("./types").Json;
@@ -19608,6 +20149,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19608
20149
  };
19609
20150
  Returns: string;
19610
20151
  };
20152
+ pick_active_printers: {
20153
+ Args: never;
20154
+ Returns: {
20155
+ id: string;
20156
+ locatie: string;
20157
+ naam: string;
20158
+ online: boolean;
20159
+ }[];
20160
+ };
19611
20161
  pick_claim_document: {
19612
20162
  Args: {
19613
20163
  _queue_item_id: string;
@@ -19794,6 +20344,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19794
20344
  };
19795
20345
  Returns: undefined;
19796
20346
  };
20347
+ pick_reset_print: {
20348
+ Args: {
20349
+ _queue_item_id: string;
20350
+ _session_id: string;
20351
+ };
20352
+ Returns: {
20353
+ announced_at: string;
20354
+ assigned_user_id: string | null;
20355
+ barcode: string | null;
20356
+ cancelled_at: string | null;
20357
+ cart_count: number;
20358
+ completed_at: string | null;
20359
+ country_code: string | null;
20360
+ created_at: string;
20361
+ customer_name: string | null;
20362
+ delivery_address: string | null;
20363
+ document_number: string | null;
20364
+ document_type_id: string | null;
20365
+ due_at: string | null;
20366
+ id: string;
20367
+ is_urgent: boolean;
20368
+ line_count: number;
20369
+ order_number: string | null;
20370
+ order_type: string | null;
20371
+ payload: import("./types").Json;
20372
+ print_count: number;
20373
+ print_job_id: string | null;
20374
+ printed_at: string | null;
20375
+ printed_by: string | null;
20376
+ printer_id: string | null;
20377
+ priority: number;
20378
+ reference: string | null;
20379
+ route: string | null;
20380
+ screen_id: string | null;
20381
+ station_id: string | null;
20382
+ status_id: string | null;
20383
+ updated_at: string;
20384
+ warnings: import("./types").Json;
20385
+ };
20386
+ SetofOptions: {
20387
+ from: "*";
20388
+ to: "pick_queue";
20389
+ isOneToOne: true;
20390
+ isSetofReturn: false;
20391
+ };
20392
+ };
19797
20393
  pick_station_dashboard: {
19798
20394
  Args: never;
19799
20395
  Returns: {
@@ -19940,6 +20536,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19940
20536
  };
19941
20537
  Returns: undefined;
19942
20538
  };
20539
+ reset_stalled_floriday_stock_queue: {
20540
+ Args: {
20541
+ p_include_failed?: boolean;
20542
+ };
20543
+ Returns: number;
20544
+ };
19943
20545
  resolve_group_allocation: {
19944
20546
  Args: {
19945
20547
  _needed: number;
@@ -19984,14 +20586,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19984
20586
  };
19985
20587
  Returns: import("./types").Json;
19986
20588
  };
20589
+ ruim_print_jobs_op: {
20590
+ Args: {
20591
+ _bewaar_dagen?: number;
20592
+ };
20593
+ Returns: number;
20594
+ };
19987
20595
  run_floriday_continuous_stock_sync: {
19988
20596
  Args: never;
19989
20597
  Returns: undefined;
19990
20598
  };
20599
+ run_floriday_stock_queue_process: {
20600
+ Args: never;
20601
+ Returns: undefined;
20602
+ };
19991
20603
  run_logistics_tasks_dispatch: {
19992
20604
  Args: never;
19993
20605
  Returns: undefined;
19994
20606
  };
20607
+ run_print_queue_ticks: {
20608
+ Args: never;
20609
+ Returns: number;
20610
+ };
19995
20611
  run_twinfield_queue_tick: {
19996
20612
  Args: never;
19997
20613
  Returns: undefined;
@@ -20379,6 +20995,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20379
20995
  };
20380
20996
  Returns: undefined;
20381
20997
  };
20998
+ trade_item_stock_duplicates: {
20999
+ Args: never;
21000
+ Returns: {
21001
+ keys: string[];
21002
+ product_id: string;
21003
+ product_name: string;
21004
+ row_count: number;
21005
+ }[];
21006
+ };
20382
21007
  try_debtor_lock: {
20383
21008
  Args: {
20384
21009
  _group_key: string;
@@ -20428,7 +21053,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20428
21053
  };
20429
21054
  Enums: {
20430
21055
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20431
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21056
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20432
21057
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20433
21058
  doc_orientation: "portrait" | "landscape";
20434
21059
  exact_env: "staging" | "live";