@flowselections/logistiek-engine 1.0.25 → 1.0.26

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 (46) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/ConsistentieCard.d.ts +2 -0
  3. package/dist-lib/components/ConsistentieCard.d.ts.map +1 -0
  4. package/dist-lib/components/ConsistentieCard.js +38 -0
  5. package/dist-lib/components/ModulePromptsPage.d.ts.map +1 -1
  6. package/dist-lib/components/ModulePromptsPage.js +11 -3
  7. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  8. package/dist-lib/components/RegiePage.js +2 -1
  9. package/dist-lib/index.d.ts +1 -0
  10. package/dist-lib/index.d.ts.map +1 -1
  11. package/dist-lib/index.js +1 -0
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1048 -715
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/client.server.d.ts +1048 -715
  15. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.server.js +1 -1
  17. package/dist-lib/integrations/supabase/moduleClient.d.ts +1048 -715
  18. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +1081 -768
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/lib/floridayDocuments.functions.d.ts +3054 -2055
  22. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floridayPush.functions.d.ts +1048 -715
  24. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5105 -3465
  26. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  28. package/dist-lib/lib/logisticsPlanner.js +35 -13
  29. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +1983 -1317
  30. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1048 -715
  32. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/modulePrompts.d.ts +19 -3
  34. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  35. package/dist-lib/lib/modulePrompts.js +1636 -1298
  36. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  37. package/dist-lib/lib/ruleEngineSchema.js +21 -4
  38. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  39. package/dist-lib/lib/ruleEngineWizard.js +3 -1
  40. package/package.json +1 -1
  41. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +0 -2
  42. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +0 -1
  43. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +0 -41
  44. package/dist-lib/integrations/supabase/client.d.ts +0 -20293
  45. package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
  46. package/dist-lib/integrations/supabase/client.js +0 -13
@@ -5982,10 +5982,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
5982
5982
  };
5983
5983
  floriday_connections: {
5984
5984
  Row: {
5985
- access_token: string | null;
5986
5985
  api_key: string;
5987
- client_id: string;
5988
- client_secret: string;
5989
5986
  created_at: string;
5990
5987
  customers_endpoint: string | null;
5991
5988
  environment: string;
@@ -6000,10 +5997,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6000
5997
  updated_at: string;
6001
5998
  };
6002
5999
  Insert: {
6003
- access_token?: string | null;
6004
6000
  api_key: string;
6005
- client_id: string;
6006
- client_secret: string;
6007
6001
  created_at?: string;
6008
6002
  customers_endpoint?: string | null;
6009
6003
  environment: string;
@@ -6018,10 +6012,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6018
6012
  updated_at?: string;
6019
6013
  };
6020
6014
  Update: {
6021
- access_token?: string | null;
6022
6015
  api_key?: string;
6023
- client_id?: string;
6024
- client_secret?: string;
6025
6016
  created_at?: string;
6026
6017
  customers_endpoint?: string | null;
6027
6018
  environment?: string;
@@ -6105,6 +6096,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6105
6096
  attempts: number;
6106
6097
  connection_id: string;
6107
6098
  created_at: string;
6099
+ dead_lettered_at: string | null;
6108
6100
  desired_available: boolean | null;
6109
6101
  gateway_attempt_id: string | null;
6110
6102
  id: string;
@@ -6113,9 +6105,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6113
6105
  locked_by: string | null;
6114
6106
  next_attempt_at: string;
6115
6107
  number_of_pieces: number;
6108
+ product_id: string | null;
6116
6109
  sent_at: string | null;
6117
6110
  status: string;
6111
+ stock_mode: string | null;
6118
6112
  superseded_by: string | null;
6113
+ target_week: number | null;
6114
+ target_year: number | null;
6119
6115
  trade_item_id: string;
6120
6116
  updated_at: string;
6121
6117
  user_id: string;
@@ -6124,6 +6120,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6124
6120
  attempts?: number;
6125
6121
  connection_id: string;
6126
6122
  created_at?: string;
6123
+ dead_lettered_at?: string | null;
6127
6124
  desired_available?: boolean | null;
6128
6125
  gateway_attempt_id?: string | null;
6129
6126
  id?: string;
@@ -6132,9 +6129,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6132
6129
  locked_by?: string | null;
6133
6130
  next_attempt_at?: string;
6134
6131
  number_of_pieces?: number;
6132
+ product_id?: string | null;
6135
6133
  sent_at?: string | null;
6136
6134
  status?: string;
6135
+ stock_mode?: string | null;
6137
6136
  superseded_by?: string | null;
6137
+ target_week?: number | null;
6138
+ target_year?: number | null;
6138
6139
  trade_item_id: string;
6139
6140
  updated_at?: string;
6140
6141
  user_id: string;
@@ -6143,6 +6144,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6143
6144
  attempts?: number;
6144
6145
  connection_id?: string;
6145
6146
  created_at?: string;
6147
+ dead_lettered_at?: string | null;
6146
6148
  desired_available?: boolean | null;
6147
6149
  gateway_attempt_id?: string | null;
6148
6150
  id?: string;
@@ -6151,9 +6153,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6151
6153
  locked_by?: string | null;
6152
6154
  next_attempt_at?: string;
6153
6155
  number_of_pieces?: number;
6156
+ product_id?: string | null;
6154
6157
  sent_at?: string | null;
6155
6158
  status?: string;
6159
+ stock_mode?: string | null;
6156
6160
  superseded_by?: string | null;
6161
+ target_week?: number | null;
6162
+ target_year?: number | null;
6157
6163
  trade_item_id?: string;
6158
6164
  updated_at?: string;
6159
6165
  user_id?: string;
@@ -6562,6 +6568,87 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6562
6568
  referencedColumns: ["id"];
6563
6569
  }];
6564
6570
  };
6571
+ floriday_inventory_settings: {
6572
+ Row: {
6573
+ buffer_quantity: number;
6574
+ connection_id: string;
6575
+ created_at: string;
6576
+ desired_availability: boolean;
6577
+ desired_quantity: number;
6578
+ fixed_quantity: number | null;
6579
+ floriday_trade_item_id: string | null;
6580
+ id: string;
6581
+ last_confirmed_at: string | null;
6582
+ last_enqueued_at: string | null;
6583
+ last_published_at: string | null;
6584
+ last_sync_error: string | null;
6585
+ manual_quantity: number | null;
6586
+ maximum_quantity: number | null;
6587
+ product_id: string;
6588
+ quantity_control: string;
6589
+ remote_available: boolean | null;
6590
+ remote_checked_at: string | null;
6591
+ remote_quantity: number | null;
6592
+ stock_mode: string;
6593
+ sync_status: string;
6594
+ updated_at: string;
6595
+ updated_by: string | null;
6596
+ user_id: string;
6597
+ };
6598
+ Insert: {
6599
+ buffer_quantity?: number;
6600
+ connection_id: string;
6601
+ created_at?: string;
6602
+ desired_availability?: boolean;
6603
+ desired_quantity?: number;
6604
+ fixed_quantity?: number | null;
6605
+ floriday_trade_item_id?: string | null;
6606
+ id?: string;
6607
+ last_confirmed_at?: string | null;
6608
+ last_enqueued_at?: string | null;
6609
+ last_published_at?: string | null;
6610
+ last_sync_error?: string | null;
6611
+ manual_quantity?: number | null;
6612
+ maximum_quantity?: number | null;
6613
+ product_id: string;
6614
+ quantity_control?: string;
6615
+ remote_available?: boolean | null;
6616
+ remote_checked_at?: string | null;
6617
+ remote_quantity?: number | null;
6618
+ stock_mode?: string;
6619
+ sync_status?: string;
6620
+ updated_at?: string;
6621
+ updated_by?: string | null;
6622
+ user_id: string;
6623
+ };
6624
+ Update: {
6625
+ buffer_quantity?: number;
6626
+ connection_id?: string;
6627
+ created_at?: string;
6628
+ desired_availability?: boolean;
6629
+ desired_quantity?: number;
6630
+ fixed_quantity?: number | null;
6631
+ floriday_trade_item_id?: string | null;
6632
+ id?: string;
6633
+ last_confirmed_at?: string | null;
6634
+ last_enqueued_at?: string | null;
6635
+ last_published_at?: string | null;
6636
+ last_sync_error?: string | null;
6637
+ manual_quantity?: number | null;
6638
+ maximum_quantity?: number | null;
6639
+ product_id?: string;
6640
+ quantity_control?: string;
6641
+ remote_available?: boolean | null;
6642
+ remote_checked_at?: string | null;
6643
+ remote_quantity?: number | null;
6644
+ stock_mode?: string;
6645
+ sync_status?: string;
6646
+ updated_at?: string;
6647
+ updated_by?: string | null;
6648
+ user_id?: string;
6649
+ };
6650
+ Relationships: [];
6651
+ };
6565
6652
  floriday_invoices_cache: {
6566
6653
  Row: {
6567
6654
  buyer_organization_id: string | null;
@@ -6850,6 +6937,39 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6850
6937
  };
6851
6938
  Relationships: [];
6852
6939
  };
6940
+ floriday_sales_order_ingest: {
6941
+ Row: {
6942
+ connection_id: string;
6943
+ created_at: string;
6944
+ id: string;
6945
+ impact: import("../integrations/supabase/types").Json;
6946
+ order_status: string | null;
6947
+ order_version: number;
6948
+ processed_at: string;
6949
+ sales_order_id: string;
6950
+ };
6951
+ Insert: {
6952
+ connection_id: string;
6953
+ created_at?: string;
6954
+ id?: string;
6955
+ impact?: import("../integrations/supabase/types").Json;
6956
+ order_status?: string | null;
6957
+ order_version?: number;
6958
+ processed_at?: string;
6959
+ sales_order_id: string;
6960
+ };
6961
+ Update: {
6962
+ connection_id?: string;
6963
+ created_at?: string;
6964
+ id?: string;
6965
+ impact?: import("../integrations/supabase/types").Json;
6966
+ order_status?: string | null;
6967
+ order_version?: number;
6968
+ processed_at?: string;
6969
+ sales_order_id?: string;
6970
+ };
6971
+ Relationships: [];
6972
+ };
6853
6973
  floriday_sales_strategies_cache: {
6854
6974
  Row: {
6855
6975
  connection_id: string;
@@ -6949,6 +7069,39 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6949
7069
  };
6950
7070
  Relationships: [];
6951
7071
  };
7072
+ floriday_sync_cursors: {
7073
+ Row: {
7074
+ connection_id: string;
7075
+ created_at: string;
7076
+ id: string;
7077
+ last_error: string | null;
7078
+ last_sync_at: string | null;
7079
+ resource_type: string;
7080
+ sequence_number: number;
7081
+ updated_at: string;
7082
+ };
7083
+ Insert: {
7084
+ connection_id: string;
7085
+ created_at?: string;
7086
+ id?: string;
7087
+ last_error?: string | null;
7088
+ last_sync_at?: string | null;
7089
+ resource_type: string;
7090
+ sequence_number?: number;
7091
+ updated_at?: string;
7092
+ };
7093
+ Update: {
7094
+ connection_id?: string;
7095
+ created_at?: string;
7096
+ id?: string;
7097
+ last_error?: string | null;
7098
+ last_sync_at?: string | null;
7099
+ resource_type?: string;
7100
+ sequence_number?: number;
7101
+ updated_at?: string;
7102
+ };
7103
+ Relationships: [];
7104
+ };
6952
7105
  floriday_sync_state: {
6953
7106
  Row: {
6954
7107
  connection_id: string;
@@ -7639,6 +7792,42 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
7639
7792
  };
7640
7793
  Relationships: [];
7641
7794
  };
7795
+ inventory_stock_snapshots: {
7796
+ Row: {
7797
+ connection_id: string;
7798
+ created_at: string;
7799
+ erp_available_quantity: number;
7800
+ floriday_desired_quantity: number;
7801
+ floriday_remote_quantity: number | null;
7802
+ granularity: string;
7803
+ id: string;
7804
+ snapshot_at: string;
7805
+ user_id: string | null;
7806
+ };
7807
+ Insert: {
7808
+ connection_id: string;
7809
+ created_at?: string;
7810
+ erp_available_quantity?: number;
7811
+ floriday_desired_quantity?: number;
7812
+ floriday_remote_quantity?: number | null;
7813
+ granularity?: string;
7814
+ id?: string;
7815
+ snapshot_at?: string;
7816
+ user_id?: string | null;
7817
+ };
7818
+ Update: {
7819
+ connection_id?: string;
7820
+ created_at?: string;
7821
+ erp_available_quantity?: number;
7822
+ floriday_desired_quantity?: number;
7823
+ floriday_remote_quantity?: number | null;
7824
+ granularity?: string;
7825
+ id?: string;
7826
+ snapshot_at?: string;
7827
+ user_id?: string | null;
7828
+ };
7829
+ Relationships: [];
7830
+ };
7642
7831
  invoice_items: {
7643
7832
  Row: {
7644
7833
  created_at: string;
@@ -8147,13 +8336,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
8147
8336
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
8148
8337
  updated_at?: string;
8149
8338
  };
8150
- Relationships: [{
8151
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8152
- columns: ["legacy_customer_id"];
8153
- isOneToOne: false;
8154
- referencedRelation: "customers";
8155
- referencedColumns: ["id"];
8156
- }];
8339
+ Relationships: [];
8157
8340
  };
8158
8341
  itk_dynamic_fields: {
8159
8342
  Row: {
@@ -8185,6 +8368,180 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
8185
8368
  };
8186
8369
  Relationships: [];
8187
8370
  };
8371
+ itk_handover_rechten: {
8372
+ Row: {
8373
+ created_at: string;
8374
+ id: string;
8375
+ module_id: string;
8376
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8377
+ updated_at: string;
8378
+ user_id: string | null;
8379
+ };
8380
+ Insert: {
8381
+ created_at?: string;
8382
+ id?: string;
8383
+ module_id: string;
8384
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8385
+ updated_at?: string;
8386
+ user_id?: string | null;
8387
+ };
8388
+ Update: {
8389
+ created_at?: string;
8390
+ id?: string;
8391
+ module_id?: string;
8392
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8393
+ updated_at?: string;
8394
+ user_id?: string | null;
8395
+ };
8396
+ Relationships: [];
8397
+ };
8398
+ itk_handover_tokens: {
8399
+ Row: {
8400
+ aangemaakt_door: string | null;
8401
+ created_at: string;
8402
+ id: string;
8403
+ is_actief: boolean;
8404
+ laatst_gebruikt_op: string | null;
8405
+ label: string;
8406
+ module_id: string;
8407
+ token_hash: string;
8408
+ updated_at: string;
8409
+ verloopt_op: string | null;
8410
+ };
8411
+ Insert: {
8412
+ aangemaakt_door?: string | null;
8413
+ created_at?: string;
8414
+ id?: string;
8415
+ is_actief?: boolean;
8416
+ laatst_gebruikt_op?: string | null;
8417
+ label?: string;
8418
+ module_id: string;
8419
+ token_hash: string;
8420
+ updated_at?: string;
8421
+ verloopt_op?: string | null;
8422
+ };
8423
+ Update: {
8424
+ aangemaakt_door?: string | null;
8425
+ created_at?: string;
8426
+ id?: string;
8427
+ is_actief?: boolean;
8428
+ laatst_gebruikt_op?: string | null;
8429
+ label?: string;
8430
+ module_id?: string;
8431
+ token_hash?: string;
8432
+ updated_at?: string;
8433
+ verloopt_op?: string | null;
8434
+ };
8435
+ Relationships: [];
8436
+ };
8437
+ itk_module_handovers: {
8438
+ Row: {
8439
+ bevindingen: string | null;
8440
+ bezit_tabellen: string[];
8441
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
8442
+ contractfuncties: string[];
8443
+ created_at: string;
8444
+ eigenaar_module_id: string | null;
8445
+ gepubliceerd_door: string | null;
8446
+ gepubliceerd_op: string;
8447
+ herzieningstermijn_dagen: number;
8448
+ id: string;
8449
+ inhoud_md: string;
8450
+ is_actueel: boolean;
8451
+ module_id: string;
8452
+ module_titel: string;
8453
+ ontbrekende_contracten: string[];
8454
+ samenvatting: string | null;
8455
+ updated_at: string;
8456
+ versie: number;
8457
+ };
8458
+ Insert: {
8459
+ bevindingen?: string | null;
8460
+ bezit_tabellen?: string[];
8461
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8462
+ contractfuncties?: string[];
8463
+ created_at?: string;
8464
+ eigenaar_module_id?: string | null;
8465
+ gepubliceerd_door?: string | null;
8466
+ gepubliceerd_op?: string;
8467
+ herzieningstermijn_dagen?: number;
8468
+ id?: string;
8469
+ inhoud_md: string;
8470
+ is_actueel?: boolean;
8471
+ module_id: string;
8472
+ module_titel: string;
8473
+ ontbrekende_contracten?: string[];
8474
+ samenvatting?: string | null;
8475
+ updated_at?: string;
8476
+ versie?: number;
8477
+ };
8478
+ Update: {
8479
+ bevindingen?: string | null;
8480
+ bezit_tabellen?: string[];
8481
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8482
+ contractfuncties?: string[];
8483
+ created_at?: string;
8484
+ eigenaar_module_id?: string | null;
8485
+ gepubliceerd_door?: string | null;
8486
+ gepubliceerd_op?: string;
8487
+ herzieningstermijn_dagen?: number;
8488
+ id?: string;
8489
+ inhoud_md?: string;
8490
+ is_actueel?: boolean;
8491
+ module_id?: string;
8492
+ module_titel?: string;
8493
+ ontbrekende_contracten?: string[];
8494
+ samenvatting?: string | null;
8495
+ updated_at?: string;
8496
+ versie?: number;
8497
+ };
8498
+ Relationships: [];
8499
+ };
8500
+ itk_module_instructies: {
8501
+ Row: {
8502
+ created_at: string;
8503
+ eigenaar_module_id: string;
8504
+ gepubliceerd_door: string | null;
8505
+ gepubliceerd_op: string;
8506
+ id: string;
8507
+ inhoud_md: string;
8508
+ is_actueel: boolean;
8509
+ sleutel: string;
8510
+ titel: string;
8511
+ toelichting: string | null;
8512
+ updated_at: string;
8513
+ versie: number;
8514
+ };
8515
+ Insert: {
8516
+ created_at?: string;
8517
+ eigenaar_module_id?: string;
8518
+ gepubliceerd_door?: string | null;
8519
+ gepubliceerd_op?: string;
8520
+ id?: string;
8521
+ inhoud_md: string;
8522
+ is_actueel?: boolean;
8523
+ sleutel: string;
8524
+ titel: string;
8525
+ toelichting?: string | null;
8526
+ updated_at?: string;
8527
+ versie?: number;
8528
+ };
8529
+ Update: {
8530
+ created_at?: string;
8531
+ eigenaar_module_id?: string;
8532
+ gepubliceerd_door?: string | null;
8533
+ gepubliceerd_op?: string;
8534
+ id?: string;
8535
+ inhoud_md?: string;
8536
+ is_actueel?: boolean;
8537
+ sleutel?: string;
8538
+ titel?: string;
8539
+ toelichting?: string | null;
8540
+ updated_at?: string;
8541
+ versie?: number;
8542
+ };
8543
+ Relationships: [];
8544
+ };
8188
8545
  itk_offerte_events: {
8189
8546
  Row: {
8190
8547
  created_at: string;
@@ -9043,6 +9400,27 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
9043
9400
  };
9044
9401
  Relationships: [];
9045
9402
  };
9403
+ logistics_cart_barcode: {
9404
+ Row: {
9405
+ barcode: string;
9406
+ cart_id: string;
9407
+ created_at: string;
9408
+ order_id: string | null;
9409
+ };
9410
+ Insert: {
9411
+ barcode: string;
9412
+ cart_id: string;
9413
+ created_at?: string;
9414
+ order_id?: string | null;
9415
+ };
9416
+ Update: {
9417
+ barcode?: string;
9418
+ cart_id?: string;
9419
+ created_at?: string;
9420
+ order_id?: string | null;
9421
+ };
9422
+ Relationships: [];
9423
+ };
9046
9424
  logistics_decisions: {
9047
9425
  Row: {
9048
9426
  created_at: string;
@@ -9871,6 +10249,36 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
9871
10249
  referencedColumns: ["id"];
9872
10250
  }];
9873
10251
  };
10252
+ logistics_shipping_note_scan: {
10253
+ Row: {
10254
+ barcode: string;
10255
+ cart_id: string;
10256
+ id: string;
10257
+ is_reprint: boolean;
10258
+ order_id: string | null;
10259
+ print_job_id: string | null;
10260
+ scanned_at: string;
10261
+ };
10262
+ Insert: {
10263
+ barcode: string;
10264
+ cart_id: string;
10265
+ id?: string;
10266
+ is_reprint?: boolean;
10267
+ order_id?: string | null;
10268
+ print_job_id?: string | null;
10269
+ scanned_at?: string;
10270
+ };
10271
+ Update: {
10272
+ barcode?: string;
10273
+ cart_id?: string;
10274
+ id?: string;
10275
+ is_reprint?: boolean;
10276
+ order_id?: string | null;
10277
+ print_job_id?: string | null;
10278
+ scanned_at?: string;
10279
+ };
10280
+ Relationships: [];
10281
+ };
9874
10282
  logistics_staff_planning: {
9875
10283
  Row: {
9876
10284
  created_at: string;
@@ -12692,6 +13100,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12692
13100
  print_job_id: string | null;
12693
13101
  printed_at: string | null;
12694
13102
  printed_by: string | null;
13103
+ printed_cart_ids: import("../integrations/supabase/types").Json;
12695
13104
  printer_id: string | null;
12696
13105
  priority: number;
12697
13106
  reference: string | null;
@@ -12726,6 +13135,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12726
13135
  print_job_id?: string | null;
12727
13136
  printed_at?: string | null;
12728
13137
  printed_by?: string | null;
13138
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
12729
13139
  printer_id?: string | null;
12730
13140
  priority?: number;
12731
13141
  reference?: string | null;
@@ -12760,6 +13170,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
12760
13170
  print_job_id?: string | null;
12761
13171
  printed_at?: string | null;
12762
13172
  printed_by?: string | null;
13173
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
12763
13174
  printer_id?: string | null;
12764
13175
  priority?: number;
12765
13176
  reference?: string | null;
@@ -13559,6 +13970,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13559
13970
  isOneToOne: false;
13560
13971
  referencedRelation: "planning_items";
13561
13972
  referencedColumns: ["id"];
13973
+ }, {
13974
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
13975
+ columns: ["planning_item_id"];
13976
+ isOneToOne: false;
13977
+ referencedRelation: "planning_overview";
13978
+ referencedColumns: ["id"];
13562
13979
  }];
13563
13980
  };
13564
13981
  planning_items: {
@@ -15136,450 +15553,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
15136
15553
  referencedColumns: ["id"];
15137
15554
  }];
15138
15555
  };
15139
- quote_activities: {
15140
- Row: {
15141
- created_at: string;
15142
- event_type: string;
15143
- id: string;
15144
- metadata: import("../integrations/supabase/types").Json;
15145
- quote_id: string;
15146
- user_id: string | null;
15147
- };
15148
- Insert: {
15149
- created_at?: string;
15150
- event_type: string;
15151
- id?: string;
15152
- metadata?: import("../integrations/supabase/types").Json;
15153
- quote_id: string;
15154
- user_id?: string | null;
15155
- };
15156
- Update: {
15157
- created_at?: string;
15158
- event_type?: string;
15159
- id?: string;
15160
- metadata?: import("../integrations/supabase/types").Json;
15161
- quote_id?: string;
15162
- user_id?: string | null;
15163
- };
15164
- Relationships: [{
15165
- foreignKeyName: "quote_activities_quote_id_fkey";
15166
- columns: ["quote_id"];
15167
- isOneToOne: false;
15168
- referencedRelation: "quotes";
15169
- referencedColumns: ["id"];
15170
- }];
15171
- };
15172
- quote_attachments: {
15173
- Row: {
15174
- created_at: string;
15175
- file_name: string;
15176
- file_size: number | null;
15177
- file_url: string;
15178
- id: string;
15179
- mime_type: string | null;
15180
- quote_id: string;
15181
- };
15182
- Insert: {
15183
- created_at?: string;
15184
- file_name: string;
15185
- file_size?: number | null;
15186
- file_url: string;
15187
- id?: string;
15188
- mime_type?: string | null;
15189
- quote_id: string;
15190
- };
15191
- Update: {
15192
- created_at?: string;
15193
- file_name?: string;
15194
- file_size?: number | null;
15195
- file_url?: string;
15196
- id?: string;
15197
- mime_type?: string | null;
15198
- quote_id?: string;
15199
- };
15200
- Relationships: [{
15201
- foreignKeyName: "quote_attachments_quote_id_fkey";
15202
- columns: ["quote_id"];
15203
- isOneToOne: false;
15204
- referencedRelation: "quotes";
15205
- referencedColumns: ["id"];
15206
- }];
15207
- };
15208
- quote_field_options: {
15209
- Row: {
15210
- created_at: string;
15211
- field_id: string;
15212
- id: string;
15213
- label: string;
15214
- sort_order: number;
15215
- value: string;
15216
- };
15217
- Insert: {
15218
- created_at?: string;
15219
- field_id: string;
15220
- id?: string;
15221
- label: string;
15222
- sort_order?: number;
15223
- value: string;
15224
- };
15225
- Update: {
15226
- created_at?: string;
15227
- field_id?: string;
15228
- id?: string;
15229
- label?: string;
15230
- sort_order?: number;
15231
- value?: string;
15232
- };
15233
- Relationships: [{
15234
- foreignKeyName: "quote_field_options_field_id_fkey";
15235
- columns: ["field_id"];
15236
- isOneToOne: false;
15237
- referencedRelation: "quote_field_settings";
15238
- referencedColumns: ["id"];
15239
- }];
15240
- };
15241
- quote_field_settings: {
15242
- Row: {
15243
- created_at: string;
15244
- default_value: string | null;
15245
- field_key: string;
15246
- field_type: string;
15247
- id: string;
15248
- is_system: boolean;
15249
- label: string;
15250
- required: boolean;
15251
- sort_order: number;
15252
- updated_at: string;
15253
- visible: boolean;
15254
- };
15255
- Insert: {
15256
- created_at?: string;
15257
- default_value?: string | null;
15258
- field_key: string;
15259
- field_type: string;
15260
- id?: string;
15261
- is_system?: boolean;
15262
- label: string;
15263
- required?: boolean;
15264
- sort_order?: number;
15265
- updated_at?: string;
15266
- visible?: boolean;
15267
- };
15268
- Update: {
15269
- created_at?: string;
15270
- default_value?: string | null;
15271
- field_key?: string;
15272
- field_type?: string;
15273
- id?: string;
15274
- is_system?: boolean;
15275
- label?: string;
15276
- required?: boolean;
15277
- sort_order?: number;
15278
- updated_at?: string;
15279
- visible?: boolean;
15280
- };
15281
- Relationships: [];
15282
- };
15283
- quote_items: {
15284
- Row: {
15285
- category: string | null;
15286
- created_at: string;
15287
- description: string;
15288
- id: string;
15289
- line_total: number;
15290
- module_id: string | null;
15291
- name: string | null;
15292
- quantity: number;
15293
- quote_id: string;
15294
- sort_order: number;
15295
- unit_price: number;
15296
- };
15297
- Insert: {
15298
- category?: string | null;
15299
- created_at?: string;
15300
- description?: string;
15301
- id?: string;
15302
- line_total?: number;
15303
- module_id?: string | null;
15304
- name?: string | null;
15305
- quantity?: number;
15306
- quote_id: string;
15307
- sort_order?: number;
15308
- unit_price?: number;
15309
- };
15310
- Update: {
15311
- category?: string | null;
15312
- created_at?: string;
15313
- description?: string;
15314
- id?: string;
15315
- line_total?: number;
15316
- module_id?: string | null;
15317
- name?: string | null;
15318
- quantity?: number;
15319
- quote_id?: string;
15320
- sort_order?: number;
15321
- unit_price?: number;
15322
- };
15323
- Relationships: [{
15324
- foreignKeyName: "quote_items_module_id_fkey";
15325
- columns: ["module_id"];
15326
- isOneToOne: false;
15327
- referencedRelation: "quote_modules";
15328
- referencedColumns: ["id"];
15329
- }, {
15330
- foreignKeyName: "quote_items_quote_id_fkey";
15331
- columns: ["quote_id"];
15332
- isOneToOne: false;
15333
- referencedRelation: "quotes";
15334
- referencedColumns: ["id"];
15335
- }];
15336
- };
15337
- quote_modules: {
15338
- Row: {
15339
- category: string | null;
15340
- created_at: string;
15341
- description: string | null;
15342
- id: string;
15343
- is_active: boolean;
15344
- name: string;
15345
- price: number;
15346
- sort_order: number;
15347
- updated_at: string;
15348
- };
15349
- Insert: {
15350
- category?: string | null;
15351
- created_at?: string;
15352
- description?: string | null;
15353
- id?: string;
15354
- is_active?: boolean;
15355
- name: string;
15356
- price?: number;
15357
- sort_order?: number;
15358
- updated_at?: string;
15359
- };
15360
- Update: {
15361
- category?: string | null;
15362
- created_at?: string;
15363
- description?: string | null;
15364
- id?: string;
15365
- is_active?: boolean;
15366
- name?: string;
15367
- price?: number;
15368
- sort_order?: number;
15369
- updated_at?: string;
15370
- };
15371
- Relationships: [];
15372
- };
15373
- quote_templates: {
15374
- Row: {
15375
- created_at: string;
15376
- description: string | null;
15377
- field_values: import("../integrations/supabase/types").Json;
15378
- id: string;
15379
- is_default: boolean;
15380
- items: import("../integrations/supabase/types").Json;
15381
- name: string;
15382
- updated_at: string;
15383
- vat_rate: number;
15384
- };
15385
- Insert: {
15386
- created_at?: string;
15387
- description?: string | null;
15388
- field_values?: import("../integrations/supabase/types").Json;
15389
- id?: string;
15390
- is_default?: boolean;
15391
- items?: import("../integrations/supabase/types").Json;
15392
- name: string;
15393
- updated_at?: string;
15394
- vat_rate?: number;
15395
- };
15396
- Update: {
15397
- created_at?: string;
15398
- description?: string | null;
15399
- field_values?: import("../integrations/supabase/types").Json;
15400
- id?: string;
15401
- is_default?: boolean;
15402
- items?: import("../integrations/supabase/types").Json;
15403
- name?: string;
15404
- updated_at?: string;
15405
- vat_rate?: number;
15406
- };
15407
- Relationships: [];
15408
- };
15409
- quote_terms: {
15410
- Row: {
15411
- content: string | null;
15412
- created_at: string;
15413
- file_url: string | null;
15414
- id: string;
15415
- is_active: boolean;
15416
- name: string;
15417
- published_at: string | null;
15418
- updated_at: string;
15419
- version: string;
15420
- };
15421
- Insert: {
15422
- content?: string | null;
15423
- created_at?: string;
15424
- file_url?: string | null;
15425
- id?: string;
15426
- is_active?: boolean;
15427
- name: string;
15428
- published_at?: string | null;
15429
- updated_at?: string;
15430
- version?: string;
15431
- };
15432
- Update: {
15433
- content?: string | null;
15434
- created_at?: string;
15435
- file_url?: string | null;
15436
- id?: string;
15437
- is_active?: boolean;
15438
- name?: string;
15439
- published_at?: string | null;
15440
- updated_at?: string;
15441
- version?: string;
15442
- };
15443
- Relationships: [];
15444
- };
15445
- quotes: {
15446
- Row: {
15447
- accepted_at: string | null;
15448
- archived_at: string | null;
15449
- contact_id: string | null;
15450
- created_at: string;
15451
- customer_id: string | null;
15452
- discount: number;
15453
- expires_at: string | null;
15454
- field_values: import("../integrations/supabase/types").Json;
15455
- id: string;
15456
- notes: string | null;
15457
- owner_id: string | null;
15458
- personal_message: string | null;
15459
- project_id: string | null;
15460
- prospect_id: string | null;
15461
- public_token: string;
15462
- quote_number: string | null;
15463
- recipient_email: string | null;
15464
- recipient_name: string | null;
15465
- rejected_at: string | null;
15466
- sent_at: string | null;
15467
- status: string;
15468
- subtotal: number;
15469
- template_id: string | null;
15470
- terms_id: string | null;
15471
- title: string;
15472
- total: number;
15473
- updated_at: string;
15474
- valid_until: string | null;
15475
- vat_amount: number;
15476
- vat_rate: number;
15477
- viewed_at: string | null;
15478
- };
15479
- Insert: {
15480
- accepted_at?: string | null;
15481
- archived_at?: string | null;
15482
- contact_id?: string | null;
15483
- created_at?: string;
15484
- customer_id?: string | null;
15485
- discount?: number;
15486
- expires_at?: string | null;
15487
- field_values?: import("../integrations/supabase/types").Json;
15488
- id?: string;
15489
- notes?: string | null;
15490
- owner_id?: string | null;
15491
- personal_message?: string | null;
15492
- project_id?: string | null;
15493
- prospect_id?: string | null;
15494
- public_token?: string;
15495
- quote_number?: string | null;
15496
- recipient_email?: string | null;
15497
- recipient_name?: string | null;
15498
- rejected_at?: string | null;
15499
- sent_at?: string | null;
15500
- status?: string;
15501
- subtotal?: number;
15502
- template_id?: string | null;
15503
- terms_id?: string | null;
15504
- title?: string;
15505
- total?: number;
15506
- updated_at?: string;
15507
- valid_until?: string | null;
15508
- vat_amount?: number;
15509
- vat_rate?: number;
15510
- viewed_at?: string | null;
15511
- };
15512
- Update: {
15513
- accepted_at?: string | null;
15514
- archived_at?: string | null;
15515
- contact_id?: string | null;
15516
- created_at?: string;
15517
- customer_id?: string | null;
15518
- discount?: number;
15519
- expires_at?: string | null;
15520
- field_values?: import("../integrations/supabase/types").Json;
15521
- id?: string;
15522
- notes?: string | null;
15523
- owner_id?: string | null;
15524
- personal_message?: string | null;
15525
- project_id?: string | null;
15526
- prospect_id?: string | null;
15527
- public_token?: string;
15528
- quote_number?: string | null;
15529
- recipient_email?: string | null;
15530
- recipient_name?: string | null;
15531
- rejected_at?: string | null;
15532
- sent_at?: string | null;
15533
- status?: string;
15534
- subtotal?: number;
15535
- template_id?: string | null;
15536
- terms_id?: string | null;
15537
- title?: string;
15538
- total?: number;
15539
- updated_at?: string;
15540
- valid_until?: string | null;
15541
- vat_amount?: number;
15542
- vat_rate?: number;
15543
- viewed_at?: string | null;
15544
- };
15545
- Relationships: [{
15546
- foreignKeyName: "quotes_contact_id_fkey";
15547
- columns: ["contact_id"];
15548
- isOneToOne: false;
15549
- referencedRelation: "customer_contacts";
15550
- referencedColumns: ["id"];
15551
- }, {
15552
- foreignKeyName: "quotes_customer_id_fkey";
15553
- columns: ["customer_id"];
15554
- isOneToOne: false;
15555
- referencedRelation: "customers";
15556
- referencedColumns: ["id"];
15557
- }, {
15558
- foreignKeyName: "quotes_project_id_fkey";
15559
- columns: ["project_id"];
15560
- isOneToOne: false;
15561
- referencedRelation: "projects";
15562
- referencedColumns: ["id"];
15563
- }, {
15564
- foreignKeyName: "quotes_prospect_id_fkey";
15565
- columns: ["prospect_id"];
15566
- isOneToOne: false;
15567
- referencedRelation: "prospects";
15568
- referencedColumns: ["id"];
15569
- }, {
15570
- foreignKeyName: "quotes_template_id_fkey";
15571
- columns: ["template_id"];
15572
- isOneToOne: false;
15573
- referencedRelation: "quote_templates";
15574
- referencedColumns: ["id"];
15575
- }, {
15576
- foreignKeyName: "quotes_terms_id_fkey";
15577
- columns: ["terms_id"];
15578
- isOneToOne: false;
15579
- referencedRelation: "quote_terms";
15580
- referencedColumns: ["id"];
15581
- }];
15582
- };
15583
15556
  reception_notifications: {
15584
15557
  Row: {
15585
15558
  booking_id: string | null;
@@ -16701,7 +16674,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
16701
16674
  foreignKeyName: "time_logs_work_order_id_fkey";
16702
16675
  columns: ["work_order_id"];
16703
16676
  isOneToOne: false;
16704
- referencedRelation: "work_orders";
16677
+ referencedRelation: "werkbonnen";
16705
16678
  referencedColumns: ["id"];
16706
16679
  }];
16707
16680
  };
@@ -16833,6 +16806,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
16833
16806
  };
16834
16807
  trade_item_stock: {
16835
16808
  Row: {
16809
+ change_source: string;
16836
16810
  connection_id: string;
16837
16811
  created_at: string;
16838
16812
  id: string;
@@ -16846,6 +16820,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
16846
16820
  user_id: string;
16847
16821
  };
16848
16822
  Insert: {
16823
+ change_source?: string;
16849
16824
  connection_id: string;
16850
16825
  created_at?: string;
16851
16826
  id?: string;
@@ -16859,6 +16834,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
16859
16834
  user_id: string;
16860
16835
  };
16861
16836
  Update: {
16837
+ change_source?: string;
16862
16838
  connection_id?: string;
16863
16839
  created_at?: string;
16864
16840
  id?: string;
@@ -18028,156 +18004,6 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18028
18004
  };
18029
18005
  Relationships: [];
18030
18006
  };
18031
- uren_offerte_regels: {
18032
- Row: {
18033
- created_at: string;
18034
- description: string;
18035
- duration_minutes: number;
18036
- id: string;
18037
- offerte_id: string;
18038
- package_id: string | null;
18039
- quantity: number;
18040
- sort_order: number;
18041
- total_cents: number;
18042
- unit_price_cents: number;
18043
- };
18044
- Insert: {
18045
- created_at?: string;
18046
- description: string;
18047
- duration_minutes?: number;
18048
- id?: string;
18049
- offerte_id: string;
18050
- package_id?: string | null;
18051
- quantity?: number;
18052
- sort_order?: number;
18053
- total_cents?: number;
18054
- unit_price_cents?: number;
18055
- };
18056
- Update: {
18057
- created_at?: string;
18058
- description?: string;
18059
- duration_minutes?: number;
18060
- id?: string;
18061
- offerte_id?: string;
18062
- package_id?: string | null;
18063
- quantity?: number;
18064
- sort_order?: number;
18065
- total_cents?: number;
18066
- unit_price_cents?: number;
18067
- };
18068
- Relationships: [{
18069
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
18070
- columns: ["offerte_id"];
18071
- isOneToOne: false;
18072
- referencedRelation: "uren_offertes";
18073
- referencedColumns: ["id"];
18074
- }, {
18075
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
18076
- columns: ["package_id"];
18077
- isOneToOne: false;
18078
- referencedRelation: "werkbon_packages";
18079
- referencedColumns: ["id"];
18080
- }];
18081
- };
18082
- uren_offerte_velden: {
18083
- Row: {
18084
- created_at: string;
18085
- field_type: string;
18086
- id: string;
18087
- key: string;
18088
- label: string;
18089
- options: string[];
18090
- required: boolean;
18091
- sort_order: number;
18092
- updated_at: string;
18093
- };
18094
- Insert: {
18095
- created_at?: string;
18096
- field_type?: string;
18097
- id?: string;
18098
- key: string;
18099
- label: string;
18100
- options?: string[];
18101
- required?: boolean;
18102
- sort_order?: number;
18103
- updated_at?: string;
18104
- };
18105
- Update: {
18106
- created_at?: string;
18107
- field_type?: string;
18108
- id?: string;
18109
- key?: string;
18110
- label?: string;
18111
- options?: string[];
18112
- required?: boolean;
18113
- sort_order?: number;
18114
- updated_at?: string;
18115
- };
18116
- Relationships: [];
18117
- };
18118
- uren_offertes: {
18119
- Row: {
18120
- created_at: string;
18121
- created_by: string | null;
18122
- customer_id: string | null;
18123
- customer_name: string | null;
18124
- dynamic_fields: import("../integrations/supabase/types").Json;
18125
- estimated_minutes: number;
18126
- id: string;
18127
- note: string | null;
18128
- quote_number: string | null;
18129
- status: string;
18130
- title: string;
18131
- total_excl_cents: number;
18132
- total_incl_cents: number;
18133
- updated_at: string;
18134
- valid_until: string | null;
18135
- vat_percentage: number;
18136
- };
18137
- Insert: {
18138
- created_at?: string;
18139
- created_by?: string | null;
18140
- customer_id?: string | null;
18141
- customer_name?: string | null;
18142
- dynamic_fields?: import("../integrations/supabase/types").Json;
18143
- estimated_minutes?: number;
18144
- id?: string;
18145
- note?: string | null;
18146
- quote_number?: string | null;
18147
- status?: string;
18148
- title?: string;
18149
- total_excl_cents?: number;
18150
- total_incl_cents?: number;
18151
- updated_at?: string;
18152
- valid_until?: string | null;
18153
- vat_percentage?: number;
18154
- };
18155
- Update: {
18156
- created_at?: string;
18157
- created_by?: string | null;
18158
- customer_id?: string | null;
18159
- customer_name?: string | null;
18160
- dynamic_fields?: import("../integrations/supabase/types").Json;
18161
- estimated_minutes?: number;
18162
- id?: string;
18163
- note?: string | null;
18164
- quote_number?: string | null;
18165
- status?: string;
18166
- title?: string;
18167
- total_excl_cents?: number;
18168
- total_incl_cents?: number;
18169
- updated_at?: string;
18170
- valid_until?: string | null;
18171
- vat_percentage?: number;
18172
- };
18173
- Relationships: [{
18174
- foreignKeyName: "uren_offertes_customer_id_fkey";
18175
- columns: ["customer_id"];
18176
- isOneToOne: false;
18177
- referencedRelation: "itk_customers";
18178
- referencedColumns: ["id"];
18179
- }];
18180
- };
18181
18007
  uren_settings: {
18182
18008
  Row: {
18183
18009
  break_minutes: number;
@@ -19864,6 +19690,37 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
19864
19690
  };
19865
19691
  Relationships: [];
19866
19692
  };
19693
+ planning_overview: {
19694
+ Row: {
19695
+ assigned_monteur_id: string | null;
19696
+ assistants: import("../integrations/supabase/types").Json | null;
19697
+ budget_mandate_cents: number | null;
19698
+ created_at: string | null;
19699
+ created_by: string | null;
19700
+ customer_id: string | null;
19701
+ customer_name: string | null;
19702
+ duration_minutes: number | null;
19703
+ end_at: string | null;
19704
+ id: string | null;
19705
+ needs_detail_review: boolean | null;
19706
+ notes: string | null;
19707
+ project_number: string | null;
19708
+ review_reasons: string[] | null;
19709
+ start_at: string | null;
19710
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
19711
+ updated_at: string | null;
19712
+ viewer_role: string | null;
19713
+ werkbon_id: string | null;
19714
+ work_address: string | null;
19715
+ };
19716
+ Relationships: [{
19717
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19718
+ columns: ["werkbon_id"];
19719
+ isOneToOne: false;
19720
+ referencedRelation: "werkbonnen";
19721
+ referencedColumns: ["id"];
19722
+ }];
19723
+ };
19867
19724
  product_group_stock_view: {
19868
19725
  Row: {
19869
19726
  item_count: number | null;
@@ -20459,6 +20316,18 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20459
20316
  Args: never;
20460
20317
  Returns: number;
20461
20318
  };
20319
+ calculate_floriday_desired_stock: {
20320
+ Args: {
20321
+ p_connection_id: string;
20322
+ p_product_id: string;
20323
+ };
20324
+ Returns: {
20325
+ desired_availability: boolean;
20326
+ desired_quantity: number;
20327
+ erp_available: number;
20328
+ stock_mode: string;
20329
+ }[];
20330
+ };
20462
20331
  calculate_layer_stock: {
20463
20332
  Args: {
20464
20333
  p_product_id: string;
@@ -20553,6 +20422,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20553
20422
  attempts: number;
20554
20423
  connection_id: string;
20555
20424
  created_at: string;
20425
+ dead_lettered_at: string | null;
20556
20426
  desired_available: boolean | null;
20557
20427
  gateway_attempt_id: string | null;
20558
20428
  id: string;
@@ -20561,9 +20431,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20561
20431
  locked_by: string | null;
20562
20432
  next_attempt_at: string;
20563
20433
  number_of_pieces: number;
20434
+ product_id: string | null;
20564
20435
  sent_at: string | null;
20565
20436
  status: string;
20437
+ stock_mode: string | null;
20566
20438
  superseded_by: string | null;
20439
+ target_week: number | null;
20440
+ target_year: number | null;
20567
20441
  trade_item_id: string;
20568
20442
  updated_at: string;
20569
20443
  user_id: string;
@@ -21044,6 +20918,24 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21044
20918
  };
21045
20919
  Returns: string;
21046
20920
  };
20921
+ floriday_capture_stock_snapshot: {
20922
+ Args: never;
20923
+ Returns: number;
20924
+ };
20925
+ floriday_cleanup_stock_queue_v2: {
20926
+ Args: never;
20927
+ Returns: undefined;
20928
+ };
20929
+ floriday_compact_stock_snapshots: {
20930
+ Args: never;
20931
+ Returns: undefined;
20932
+ };
20933
+ floriday_default_owner: {
20934
+ Args: {
20935
+ p_connection_id: string;
20936
+ };
20937
+ Returns: string;
20938
+ };
21047
20939
  floriday_effective_price: {
21048
20940
  Args: {
21049
20941
  _buyer_id: string;
@@ -21061,6 +20953,34 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21061
20953
  source_id: string;
21062
20954
  }[];
21063
20955
  };
20956
+ floriday_fill_publish_horizon: {
20957
+ Args: never;
20958
+ Returns: number;
20959
+ };
20960
+ floriday_ingest_sales_orders: {
20961
+ Args: {
20962
+ p_limit?: number;
20963
+ };
20964
+ Returns: number;
20965
+ };
20966
+ floriday_publish_horizon_weeks: {
20967
+ Args: never;
20968
+ Returns: number;
20969
+ };
20970
+ floriday_recompute_inventory: {
20971
+ Args: {
20972
+ p_connection_id: string;
20973
+ p_force?: boolean;
20974
+ p_product_id: string;
20975
+ };
20976
+ Returns: undefined;
20977
+ };
20978
+ floriday_requeue_dead_letters: {
20979
+ Args: {
20980
+ p_connection_id?: string;
20981
+ };
20982
+ Returns: number;
20983
+ };
21064
20984
  format_cart_number: {
21065
20985
  Args: {
21066
20986
  p_pick_date: string;
@@ -21277,6 +21197,131 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21277
21197
  Args: never;
21278
21198
  Returns: string;
21279
21199
  };
21200
+ handover_get: {
21201
+ Args: {
21202
+ _module_id: string;
21203
+ };
21204
+ Returns: import("../integrations/supabase/types").Json;
21205
+ };
21206
+ handover_kern_naam: {
21207
+ Args: {
21208
+ _naam: string;
21209
+ };
21210
+ Returns: string;
21211
+ };
21212
+ handover_ketenmodel: {
21213
+ Args: never;
21214
+ Returns: import("../integrations/supabase/types").Json;
21215
+ };
21216
+ handover_kruisconflicten: {
21217
+ Args: never;
21218
+ Returns: import("../integrations/supabase/types").Json;
21219
+ };
21220
+ handover_list: {
21221
+ Args: never;
21222
+ Returns: import("../integrations/supabase/types").Json;
21223
+ };
21224
+ handover_mag_schrijven: {
21225
+ Args: {
21226
+ _module_id: string;
21227
+ };
21228
+ Returns: boolean;
21229
+ };
21230
+ handover_norm_naam: {
21231
+ Args: {
21232
+ _naam: string;
21233
+ };
21234
+ Returns: string;
21235
+ };
21236
+ handover_publish: {
21237
+ Args: {
21238
+ _bevindingen?: string;
21239
+ _bezit_tabellen?: string[];
21240
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21241
+ _contractfuncties?: string[];
21242
+ _inhoud_md: string;
21243
+ _module_id: string;
21244
+ _module_titel: string;
21245
+ _ontbrekende_contracten?: string[];
21246
+ _samenvatting?: string;
21247
+ };
21248
+ Returns: number;
21249
+ };
21250
+ handover_publish_via_token: {
21251
+ Args: {
21252
+ _bevindingen?: string;
21253
+ _bezit_tabellen?: string[];
21254
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21255
+ _contractfuncties?: string[];
21256
+ _inhoud_md: string;
21257
+ _module_id: string;
21258
+ _module_titel: string;
21259
+ _ontbrekende_contracten?: string[];
21260
+ _samenvatting?: string;
21261
+ _token_hash: string;
21262
+ };
21263
+ Returns: number;
21264
+ };
21265
+ handover_status: {
21266
+ Args: never;
21267
+ Returns: import("../integrations/supabase/types").Json;
21268
+ };
21269
+ handover_synonym_kern: {
21270
+ Args: {
21271
+ _naam: string;
21272
+ };
21273
+ Returns: string;
21274
+ };
21275
+ handover_token_intrekken: {
21276
+ Args: {
21277
+ _id: string;
21278
+ };
21279
+ Returns: boolean;
21280
+ };
21281
+ handover_token_lijst: {
21282
+ Args: never;
21283
+ Returns: import("../integrations/supabase/types").Json;
21284
+ };
21285
+ handover_token_maken: {
21286
+ Args: {
21287
+ _label?: string;
21288
+ _module_id: string;
21289
+ };
21290
+ Returns: string;
21291
+ };
21292
+ handover_update: {
21293
+ Args: {
21294
+ _bezit_tabellen?: string[];
21295
+ _contractfuncties?: string[];
21296
+ _herzieningstermijn_dagen?: number;
21297
+ _inhoud_md?: string;
21298
+ _module_id: string;
21299
+ _module_titel?: string;
21300
+ _samenvatting?: string;
21301
+ _versie: number;
21302
+ };
21303
+ Returns: boolean;
21304
+ } | {
21305
+ Args: {
21306
+ _bevindingen?: string;
21307
+ _bezit_tabellen?: string[];
21308
+ _contractfuncties?: string[];
21309
+ _herzieningstermijn_dagen?: number;
21310
+ _inhoud_md?: string;
21311
+ _module_id: string;
21312
+ _module_titel?: string;
21313
+ _ontbrekende_contracten?: string[];
21314
+ _samenvatting?: string;
21315
+ _versie: number;
21316
+ };
21317
+ Returns: boolean;
21318
+ };
21319
+ handover_versies: {
21320
+ Args: {
21321
+ _module_id: string;
21322
+ };
21323
+ Returns: import("../integrations/supabase/types").Json;
21324
+ };
21280
21325
  has_module_permission: {
21281
21326
  Args: {
21282
21327
  _min: string;
@@ -21296,6 +21341,25 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21296
21341
  Args: never;
21297
21342
  Returns: boolean;
21298
21343
  };
21344
+ instructie_get: {
21345
+ Args: {
21346
+ _sleutel: string;
21347
+ };
21348
+ Returns: import("../integrations/supabase/types").Json;
21349
+ };
21350
+ instructie_list: {
21351
+ Args: never;
21352
+ Returns: import("../integrations/supabase/types").Json;
21353
+ };
21354
+ instructie_publish: {
21355
+ Args: {
21356
+ _inhoud_md: string;
21357
+ _sleutel: string;
21358
+ _titel: string;
21359
+ _toelichting?: string;
21360
+ };
21361
+ Returns: number;
21362
+ };
21299
21363
  invoice_create_from_source: {
21300
21364
  Args: {
21301
21365
  _payload?: import("../integrations/supabase/types").Json;
@@ -21520,6 +21584,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21520
21584
  };
21521
21585
  Returns: boolean;
21522
21586
  };
21587
+ logistics_barcode_lookup: {
21588
+ Args: {
21589
+ p_barcode: string;
21590
+ };
21591
+ Returns: import("../integrations/supabase/types").Json;
21592
+ };
21523
21593
  logistics_buffer_criteria: {
21524
21594
  Args: {
21525
21595
  p_settings: import("../integrations/supabase/types").Json;
@@ -21580,6 +21650,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21580
21650
  };
21581
21651
  Returns: number;
21582
21652
  };
21653
+ logistics_cart_barcode_value: {
21654
+ Args: {
21655
+ _cart_id: string;
21656
+ };
21657
+ Returns: string;
21658
+ };
21583
21659
  logistics_cart_index: {
21584
21660
  Args: {
21585
21661
  p_from?: string;
@@ -21589,6 +21665,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21589
21665
  cart_id: string;
21590
21666
  cart_index: number;
21591
21667
  cart_label: string;
21668
+ delivery_date: string;
21669
+ is_announced: boolean;
21670
+ is_controlled: boolean;
21671
+ is_printed: boolean;
21592
21672
  is_shared: boolean;
21593
21673
  order_number: string;
21594
21674
  order_source: string;
@@ -21599,6 +21679,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21599
21679
  task_status: string;
21600
21680
  }[];
21601
21681
  };
21682
+ logistics_cart_slip_plan: {
21683
+ Args: {
21684
+ p_order_id: string;
21685
+ };
21686
+ Returns: import("../integrations/supabase/types").Json;
21687
+ };
21602
21688
  logistics_check_order_allowed: {
21603
21689
  Args: {
21604
21690
  p_lines: import("../integrations/supabase/types").Json;
@@ -21751,11 +21837,15 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21751
21837
  Args: never;
21752
21838
  Returns: {
21753
21839
  agenda_carts: number;
21840
+ announced_carts: number;
21754
21841
  control_carts: number;
21842
+ delivery_carts: number;
21755
21843
  ok: boolean;
21756
21844
  orphan_tasks: number;
21757
21845
  pick_date: string;
21758
21846
  raw_carts: number;
21847
+ sales_carts: number;
21848
+ station_carts: number;
21759
21849
  }[];
21760
21850
  };
21761
21851
  logistics_delay_customer_email: {
@@ -21771,12 +21861,35 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21771
21861
  subject: string;
21772
21862
  }[];
21773
21863
  };
21864
+ logistics_delivery_agenda: {
21865
+ Args: {
21866
+ p_from?: string;
21867
+ p_to?: string;
21868
+ };
21869
+ Returns: {
21870
+ announced_count: number;
21871
+ cart_count: number;
21872
+ controlled_count: number;
21873
+ delivery_date: string;
21874
+ order_count: number;
21875
+ orders: import("../integrations/supabase/types").Json;
21876
+ plant_count: number;
21877
+ printed_count: number;
21878
+ }[];
21879
+ };
21774
21880
  logistics_document_layout: {
21775
21881
  Args: {
21776
21882
  _document_code: string;
21777
21883
  };
21778
21884
  Returns: import("../integrations/supabase/types").Json;
21779
21885
  };
21886
+ logistics_document_layout_v2: {
21887
+ Args: {
21888
+ _document_code: string;
21889
+ _is_partial?: boolean;
21890
+ };
21891
+ Returns: import("../integrations/supabase/types").Json;
21892
+ };
21780
21893
  logistics_document_station: {
21781
21894
  Args: {
21782
21895
  _document_code: string;
@@ -21802,6 +21915,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21802
21915
  };
21803
21916
  Returns: import("../integrations/supabase/types").Json;
21804
21917
  };
21918
+ logistics_ensure_cart_barcode: {
21919
+ Args: {
21920
+ _cart_id: string;
21921
+ };
21922
+ Returns: string;
21923
+ };
21805
21924
  logistics_fail_task: {
21806
21925
  Args: {
21807
21926
  p_error: string;
@@ -21847,6 +21966,16 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21847
21966
  isSetofReturn: false;
21848
21967
  };
21849
21968
  };
21969
+ logistics_floriday_cart_plan: {
21970
+ Args: {
21971
+ p_order_id: string;
21972
+ };
21973
+ Returns: {
21974
+ carrier_type: string;
21975
+ idx: number;
21976
+ packages: number;
21977
+ }[];
21978
+ };
21850
21979
  logistics_floriday_claim_pushes: {
21851
21980
  Args: {
21852
21981
  _lease_seconds?: number;
@@ -22052,6 +22181,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22052
22181
  };
22053
22182
  Returns: undefined;
22054
22183
  };
22184
+ logistics_plan_floriday_order: {
22185
+ Args: {
22186
+ p_buffer_id?: string;
22187
+ p_order_id: string;
22188
+ };
22189
+ Returns: number;
22190
+ };
22055
22191
  logistics_plan_impact_orders: {
22056
22192
  Args: {
22057
22193
  p_order_id: string;
@@ -22245,6 +22381,14 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22245
22381
  };
22246
22382
  Returns: string;
22247
22383
  };
22384
+ logistics_shipping_note_from_barcode: {
22385
+ Args: {
22386
+ p_allow_reprint?: boolean;
22387
+ p_barcode: string;
22388
+ p_station_id?: string;
22389
+ };
22390
+ Returns: import("../integrations/supabase/types").Json;
22391
+ };
22248
22392
  logistics_supersede_stale_tasks: {
22249
22393
  Args: {
22250
22394
  p_keep: string[];
@@ -22466,6 +22610,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22466
22610
  print_job_id: string | null;
22467
22611
  printed_at: string | null;
22468
22612
  printed_by: string | null;
22613
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22469
22614
  printer_id: string | null;
22470
22615
  priority: number;
22471
22616
  reference: string | null;
@@ -22515,6 +22660,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22515
22660
  print_job_id: string | null;
22516
22661
  printed_at: string | null;
22517
22662
  printed_by: string | null;
22663
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22518
22664
  printer_id: string | null;
22519
22665
  priority: number;
22520
22666
  reference: string | null;
@@ -22569,6 +22715,56 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22569
22715
  print_job_id: string | null;
22570
22716
  printed_at: string | null;
22571
22717
  printed_by: string | null;
22718
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22719
+ printer_id: string | null;
22720
+ priority: number;
22721
+ reference: string | null;
22722
+ route: string | null;
22723
+ screen_id: string | null;
22724
+ station_id: string | null;
22725
+ status_id: string | null;
22726
+ updated_at: string;
22727
+ warnings: import("../integrations/supabase/types").Json;
22728
+ };
22729
+ SetofOptions: {
22730
+ from: "*";
22731
+ to: "pick_queue";
22732
+ isOneToOne: true;
22733
+ isSetofReturn: false;
22734
+ };
22735
+ };
22736
+ pick_complete_print_cart: {
22737
+ Args: {
22738
+ _cart_id: string;
22739
+ _printer_id: string;
22740
+ _queue_item_id: string;
22741
+ _session_id: string;
22742
+ };
22743
+ Returns: {
22744
+ announced_at: string;
22745
+ assigned_user_id: string | null;
22746
+ barcode: string | null;
22747
+ cancelled_at: string | null;
22748
+ cart_count: number;
22749
+ completed_at: string | null;
22750
+ country_code: string | null;
22751
+ created_at: string;
22752
+ customer_name: string | null;
22753
+ delivery_address: string | null;
22754
+ document_number: string | null;
22755
+ document_type_id: string | null;
22756
+ due_at: string | null;
22757
+ id: string;
22758
+ is_urgent: boolean;
22759
+ line_count: number;
22760
+ order_number: string | null;
22761
+ order_type: string | null;
22762
+ payload: import("../integrations/supabase/types").Json;
22763
+ print_count: number;
22764
+ print_job_id: string | null;
22765
+ printed_at: string | null;
22766
+ printed_by: string | null;
22767
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22572
22768
  printer_id: string | null;
22573
22769
  priority: number;
22574
22770
  reference: string | null;
@@ -22612,6 +22808,15 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22612
22808
  _session_id?: string;
22613
22809
  };
22614
22810
  Returns: string;
22811
+ } | {
22812
+ Args: {
22813
+ _cart_id: string;
22814
+ _is_herprint: boolean;
22815
+ _printer_id: string;
22816
+ _queue_item_id: string;
22817
+ _session_id: string;
22818
+ };
22819
+ Returns: string;
22615
22820
  };
22616
22821
  pick_order_context: {
22617
22822
  Args: {
@@ -22692,6 +22897,54 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22692
22897
  print_job_id: string | null;
22693
22898
  printed_at: string | null;
22694
22899
  printed_by: string | null;
22900
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22901
+ printer_id: string | null;
22902
+ priority: number;
22903
+ reference: string | null;
22904
+ route: string | null;
22905
+ screen_id: string | null;
22906
+ station_id: string | null;
22907
+ status_id: string | null;
22908
+ updated_at: string;
22909
+ warnings: import("../integrations/supabase/types").Json;
22910
+ };
22911
+ SetofOptions: {
22912
+ from: "*";
22913
+ to: "pick_queue";
22914
+ isOneToOne: true;
22915
+ isSetofReturn: false;
22916
+ };
22917
+ } | {
22918
+ Args: {
22919
+ _cart_id?: string;
22920
+ _queue_item_id: string;
22921
+ _session_id: string;
22922
+ };
22923
+ Returns: {
22924
+ announced_at: string;
22925
+ assigned_user_id: string | null;
22926
+ barcode: string | null;
22927
+ cancelled_at: string | null;
22928
+ cart_count: number;
22929
+ completed_at: string | null;
22930
+ country_code: string | null;
22931
+ created_at: string;
22932
+ customer_name: string | null;
22933
+ delivery_address: string | null;
22934
+ document_number: string | null;
22935
+ document_type_id: string | null;
22936
+ due_at: string | null;
22937
+ id: string;
22938
+ is_urgent: boolean;
22939
+ line_count: number;
22940
+ order_number: string | null;
22941
+ order_type: string | null;
22942
+ payload: import("../integrations/supabase/types").Json;
22943
+ print_count: number;
22944
+ print_job_id: string | null;
22945
+ printed_at: string | null;
22946
+ printed_by: string | null;
22947
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22695
22948
  printer_id: string | null;
22696
22949
  priority: number;
22697
22950
  reference: string | null;
@@ -22804,6 +23057,66 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22804
23057
  };
22805
23058
  Returns: undefined;
22806
23059
  };
23060
+ planning_cancel_item: {
23061
+ Args: {
23062
+ _id: string;
23063
+ };
23064
+ Returns: undefined;
23065
+ };
23066
+ planning_list: {
23067
+ Args: {
23068
+ _from: string;
23069
+ _to: string;
23070
+ };
23071
+ Returns: {
23072
+ assigned_monteur_id: string | null;
23073
+ assistants: import("../integrations/supabase/types").Json | null;
23074
+ budget_mandate_cents: number | null;
23075
+ created_at: string | null;
23076
+ created_by: string | null;
23077
+ customer_id: string | null;
23078
+ customer_name: string | null;
23079
+ duration_minutes: number | null;
23080
+ end_at: string | null;
23081
+ id: string | null;
23082
+ needs_detail_review: boolean | null;
23083
+ notes: string | null;
23084
+ project_number: string | null;
23085
+ review_reasons: string[] | null;
23086
+ start_at: string | null;
23087
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
23088
+ updated_at: string | null;
23089
+ viewer_role: string | null;
23090
+ werkbon_id: string | null;
23091
+ work_address: string | null;
23092
+ }[];
23093
+ SetofOptions: {
23094
+ from: "*";
23095
+ to: "planning_overview";
23096
+ isOneToOne: false;
23097
+ isSetofReturn: true;
23098
+ };
23099
+ };
23100
+ planning_set_assistants: {
23101
+ Args: {
23102
+ _monteur_ids: string[];
23103
+ _planning_item_id: string;
23104
+ };
23105
+ Returns: undefined;
23106
+ };
23107
+ planning_upsert_item: {
23108
+ Args: {
23109
+ _assigned_monteur_id: string;
23110
+ _end_at: string;
23111
+ _notes?: string;
23112
+ _start_at: string;
23113
+ _werkbon_id: string;
23114
+ };
23115
+ Returns: {
23116
+ action: string;
23117
+ id: string;
23118
+ }[];
23119
+ };
22807
23120
  print_preview_toestaan: {
22808
23121
  Args: {
22809
23122
  _max?: number;
@@ -23385,6 +23698,26 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23385
23698
  };
23386
23699
  Returns: string[];
23387
23700
  };
23701
+ start_time_log_at: {
23702
+ Args: {
23703
+ p_clicked_at?: string;
23704
+ p_employee_id: string;
23705
+ p_start_lat?: number;
23706
+ p_start_lng?: number;
23707
+ p_type: string;
23708
+ p_work_order_id?: string;
23709
+ };
23710
+ Returns: import("../integrations/supabase/types").Json;
23711
+ };
23712
+ stop_time_log: {
23713
+ Args: {
23714
+ p_employee_id: string;
23715
+ p_end_lat?: number;
23716
+ p_end_lng?: number;
23717
+ p_end_time: string;
23718
+ };
23719
+ Returns: import("../integrations/supabase/types").Json;
23720
+ };
23388
23721
  switch_time_log: {
23389
23722
  Args: {
23390
23723
  p_employee_id: string;
@@ -29570,10 +29903,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29570
29903
  };
29571
29904
  floriday_connections: {
29572
29905
  Row: {
29573
- access_token: string | null;
29574
29906
  api_key: string;
29575
- client_id: string;
29576
- client_secret: string;
29577
29907
  created_at: string;
29578
29908
  customers_endpoint: string | null;
29579
29909
  environment: string;
@@ -29588,10 +29918,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29588
29918
  updated_at: string;
29589
29919
  };
29590
29920
  Insert: {
29591
- access_token?: string | null;
29592
29921
  api_key: string;
29593
- client_id: string;
29594
- client_secret: string;
29595
29922
  created_at?: string;
29596
29923
  customers_endpoint?: string | null;
29597
29924
  environment: string;
@@ -29606,10 +29933,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29606
29933
  updated_at?: string;
29607
29934
  };
29608
29935
  Update: {
29609
- access_token?: string | null;
29610
29936
  api_key?: string;
29611
- client_id?: string;
29612
- client_secret?: string;
29613
29937
  created_at?: string;
29614
29938
  customers_endpoint?: string | null;
29615
29939
  environment?: string;
@@ -29693,6 +30017,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29693
30017
  attempts: number;
29694
30018
  connection_id: string;
29695
30019
  created_at: string;
30020
+ dead_lettered_at: string | null;
29696
30021
  desired_available: boolean | null;
29697
30022
  gateway_attempt_id: string | null;
29698
30023
  id: string;
@@ -29701,9 +30026,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29701
30026
  locked_by: string | null;
29702
30027
  next_attempt_at: string;
29703
30028
  number_of_pieces: number;
30029
+ product_id: string | null;
29704
30030
  sent_at: string | null;
29705
30031
  status: string;
30032
+ stock_mode: string | null;
29706
30033
  superseded_by: string | null;
30034
+ target_week: number | null;
30035
+ target_year: number | null;
29707
30036
  trade_item_id: string;
29708
30037
  updated_at: string;
29709
30038
  user_id: string;
@@ -29712,6 +30041,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29712
30041
  attempts?: number;
29713
30042
  connection_id: string;
29714
30043
  created_at?: string;
30044
+ dead_lettered_at?: string | null;
29715
30045
  desired_available?: boolean | null;
29716
30046
  gateway_attempt_id?: string | null;
29717
30047
  id?: string;
@@ -29720,9 +30050,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29720
30050
  locked_by?: string | null;
29721
30051
  next_attempt_at?: string;
29722
30052
  number_of_pieces?: number;
30053
+ product_id?: string | null;
29723
30054
  sent_at?: string | null;
29724
30055
  status?: string;
30056
+ stock_mode?: string | null;
29725
30057
  superseded_by?: string | null;
30058
+ target_week?: number | null;
30059
+ target_year?: number | null;
29726
30060
  trade_item_id: string;
29727
30061
  updated_at?: string;
29728
30062
  user_id: string;
@@ -29731,6 +30065,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29731
30065
  attempts?: number;
29732
30066
  connection_id?: string;
29733
30067
  created_at?: string;
30068
+ dead_lettered_at?: string | null;
29734
30069
  desired_available?: boolean | null;
29735
30070
  gateway_attempt_id?: string | null;
29736
30071
  id?: string;
@@ -29739,9 +30074,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29739
30074
  locked_by?: string | null;
29740
30075
  next_attempt_at?: string;
29741
30076
  number_of_pieces?: number;
30077
+ product_id?: string | null;
29742
30078
  sent_at?: string | null;
29743
30079
  status?: string;
30080
+ stock_mode?: string | null;
29744
30081
  superseded_by?: string | null;
30082
+ target_week?: number | null;
30083
+ target_year?: number | null;
29745
30084
  trade_item_id?: string;
29746
30085
  updated_at?: string;
29747
30086
  user_id?: string;
@@ -30150,6 +30489,87 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30150
30489
  referencedColumns: ["id"];
30151
30490
  }];
30152
30491
  };
30492
+ floriday_inventory_settings: {
30493
+ Row: {
30494
+ buffer_quantity: number;
30495
+ connection_id: string;
30496
+ created_at: string;
30497
+ desired_availability: boolean;
30498
+ desired_quantity: number;
30499
+ fixed_quantity: number | null;
30500
+ floriday_trade_item_id: string | null;
30501
+ id: string;
30502
+ last_confirmed_at: string | null;
30503
+ last_enqueued_at: string | null;
30504
+ last_published_at: string | null;
30505
+ last_sync_error: string | null;
30506
+ manual_quantity: number | null;
30507
+ maximum_quantity: number | null;
30508
+ product_id: string;
30509
+ quantity_control: string;
30510
+ remote_available: boolean | null;
30511
+ remote_checked_at: string | null;
30512
+ remote_quantity: number | null;
30513
+ stock_mode: string;
30514
+ sync_status: string;
30515
+ updated_at: string;
30516
+ updated_by: string | null;
30517
+ user_id: string;
30518
+ };
30519
+ Insert: {
30520
+ buffer_quantity?: number;
30521
+ connection_id: string;
30522
+ created_at?: string;
30523
+ desired_availability?: boolean;
30524
+ desired_quantity?: number;
30525
+ fixed_quantity?: number | null;
30526
+ floriday_trade_item_id?: string | null;
30527
+ id?: string;
30528
+ last_confirmed_at?: string | null;
30529
+ last_enqueued_at?: string | null;
30530
+ last_published_at?: string | null;
30531
+ last_sync_error?: string | null;
30532
+ manual_quantity?: number | null;
30533
+ maximum_quantity?: number | null;
30534
+ product_id: string;
30535
+ quantity_control?: string;
30536
+ remote_available?: boolean | null;
30537
+ remote_checked_at?: string | null;
30538
+ remote_quantity?: number | null;
30539
+ stock_mode?: string;
30540
+ sync_status?: string;
30541
+ updated_at?: string;
30542
+ updated_by?: string | null;
30543
+ user_id: string;
30544
+ };
30545
+ Update: {
30546
+ buffer_quantity?: number;
30547
+ connection_id?: string;
30548
+ created_at?: string;
30549
+ desired_availability?: boolean;
30550
+ desired_quantity?: number;
30551
+ fixed_quantity?: number | null;
30552
+ floriday_trade_item_id?: string | null;
30553
+ id?: string;
30554
+ last_confirmed_at?: string | null;
30555
+ last_enqueued_at?: string | null;
30556
+ last_published_at?: string | null;
30557
+ last_sync_error?: string | null;
30558
+ manual_quantity?: number | null;
30559
+ maximum_quantity?: number | null;
30560
+ product_id?: string;
30561
+ quantity_control?: string;
30562
+ remote_available?: boolean | null;
30563
+ remote_checked_at?: string | null;
30564
+ remote_quantity?: number | null;
30565
+ stock_mode?: string;
30566
+ sync_status?: string;
30567
+ updated_at?: string;
30568
+ updated_by?: string | null;
30569
+ user_id?: string;
30570
+ };
30571
+ Relationships: [];
30572
+ };
30153
30573
  floriday_invoices_cache: {
30154
30574
  Row: {
30155
30575
  buyer_organization_id: string | null;
@@ -30438,6 +30858,39 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30438
30858
  };
30439
30859
  Relationships: [];
30440
30860
  };
30861
+ floriday_sales_order_ingest: {
30862
+ Row: {
30863
+ connection_id: string;
30864
+ created_at: string;
30865
+ id: string;
30866
+ impact: import("../integrations/supabase/types").Json;
30867
+ order_status: string | null;
30868
+ order_version: number;
30869
+ processed_at: string;
30870
+ sales_order_id: string;
30871
+ };
30872
+ Insert: {
30873
+ connection_id: string;
30874
+ created_at?: string;
30875
+ id?: string;
30876
+ impact?: import("../integrations/supabase/types").Json;
30877
+ order_status?: string | null;
30878
+ order_version?: number;
30879
+ processed_at?: string;
30880
+ sales_order_id: string;
30881
+ };
30882
+ Update: {
30883
+ connection_id?: string;
30884
+ created_at?: string;
30885
+ id?: string;
30886
+ impact?: import("../integrations/supabase/types").Json;
30887
+ order_status?: string | null;
30888
+ order_version?: number;
30889
+ processed_at?: string;
30890
+ sales_order_id?: string;
30891
+ };
30892
+ Relationships: [];
30893
+ };
30441
30894
  floriday_sales_strategies_cache: {
30442
30895
  Row: {
30443
30896
  connection_id: string;
@@ -30537,6 +30990,39 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
30537
30990
  };
30538
30991
  Relationships: [];
30539
30992
  };
30993
+ floriday_sync_cursors: {
30994
+ Row: {
30995
+ connection_id: string;
30996
+ created_at: string;
30997
+ id: string;
30998
+ last_error: string | null;
30999
+ last_sync_at: string | null;
31000
+ resource_type: string;
31001
+ sequence_number: number;
31002
+ updated_at: string;
31003
+ };
31004
+ Insert: {
31005
+ connection_id: string;
31006
+ created_at?: string;
31007
+ id?: string;
31008
+ last_error?: string | null;
31009
+ last_sync_at?: string | null;
31010
+ resource_type: string;
31011
+ sequence_number?: number;
31012
+ updated_at?: string;
31013
+ };
31014
+ Update: {
31015
+ connection_id?: string;
31016
+ created_at?: string;
31017
+ id?: string;
31018
+ last_error?: string | null;
31019
+ last_sync_at?: string | null;
31020
+ resource_type?: string;
31021
+ sequence_number?: number;
31022
+ updated_at?: string;
31023
+ };
31024
+ Relationships: [];
31025
+ };
30540
31026
  floriday_sync_state: {
30541
31027
  Row: {
30542
31028
  connection_id: string;
@@ -31227,6 +31713,42 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31227
31713
  };
31228
31714
  Relationships: [];
31229
31715
  };
31716
+ inventory_stock_snapshots: {
31717
+ Row: {
31718
+ connection_id: string;
31719
+ created_at: string;
31720
+ erp_available_quantity: number;
31721
+ floriday_desired_quantity: number;
31722
+ floriday_remote_quantity: number | null;
31723
+ granularity: string;
31724
+ id: string;
31725
+ snapshot_at: string;
31726
+ user_id: string | null;
31727
+ };
31728
+ Insert: {
31729
+ connection_id: string;
31730
+ created_at?: string;
31731
+ erp_available_quantity?: number;
31732
+ floriday_desired_quantity?: number;
31733
+ floriday_remote_quantity?: number | null;
31734
+ granularity?: string;
31735
+ id?: string;
31736
+ snapshot_at?: string;
31737
+ user_id?: string | null;
31738
+ };
31739
+ Update: {
31740
+ connection_id?: string;
31741
+ created_at?: string;
31742
+ erp_available_quantity?: number;
31743
+ floriday_desired_quantity?: number;
31744
+ floriday_remote_quantity?: number | null;
31745
+ granularity?: string;
31746
+ id?: string;
31747
+ snapshot_at?: string;
31748
+ user_id?: string | null;
31749
+ };
31750
+ Relationships: [];
31751
+ };
31230
31752
  invoice_items: {
31231
31753
  Row: {
31232
31754
  created_at: string;
@@ -31735,13 +32257,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31735
32257
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
31736
32258
  updated_at?: string;
31737
32259
  };
31738
- Relationships: [{
31739
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
31740
- columns: ["legacy_customer_id"];
31741
- isOneToOne: false;
31742
- referencedRelation: "customers";
31743
- referencedColumns: ["id"];
31744
- }];
32260
+ Relationships: [];
31745
32261
  };
31746
32262
  itk_dynamic_fields: {
31747
32263
  Row: {
@@ -31773,6 +32289,180 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31773
32289
  };
31774
32290
  Relationships: [];
31775
32291
  };
32292
+ itk_handover_rechten: {
32293
+ Row: {
32294
+ created_at: string;
32295
+ id: string;
32296
+ module_id: string;
32297
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32298
+ updated_at: string;
32299
+ user_id: string | null;
32300
+ };
32301
+ Insert: {
32302
+ created_at?: string;
32303
+ id?: string;
32304
+ module_id: string;
32305
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32306
+ updated_at?: string;
32307
+ user_id?: string | null;
32308
+ };
32309
+ Update: {
32310
+ created_at?: string;
32311
+ id?: string;
32312
+ module_id?: string;
32313
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32314
+ updated_at?: string;
32315
+ user_id?: string | null;
32316
+ };
32317
+ Relationships: [];
32318
+ };
32319
+ itk_handover_tokens: {
32320
+ Row: {
32321
+ aangemaakt_door: string | null;
32322
+ created_at: string;
32323
+ id: string;
32324
+ is_actief: boolean;
32325
+ laatst_gebruikt_op: string | null;
32326
+ label: string;
32327
+ module_id: string;
32328
+ token_hash: string;
32329
+ updated_at: string;
32330
+ verloopt_op: string | null;
32331
+ };
32332
+ Insert: {
32333
+ aangemaakt_door?: string | null;
32334
+ created_at?: string;
32335
+ id?: string;
32336
+ is_actief?: boolean;
32337
+ laatst_gebruikt_op?: string | null;
32338
+ label?: string;
32339
+ module_id: string;
32340
+ token_hash: string;
32341
+ updated_at?: string;
32342
+ verloopt_op?: string | null;
32343
+ };
32344
+ Update: {
32345
+ aangemaakt_door?: string | null;
32346
+ created_at?: string;
32347
+ id?: string;
32348
+ is_actief?: boolean;
32349
+ laatst_gebruikt_op?: string | null;
32350
+ label?: string;
32351
+ module_id?: string;
32352
+ token_hash?: string;
32353
+ updated_at?: string;
32354
+ verloopt_op?: string | null;
32355
+ };
32356
+ Relationships: [];
32357
+ };
32358
+ itk_module_handovers: {
32359
+ Row: {
32360
+ bevindingen: string | null;
32361
+ bezit_tabellen: string[];
32362
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
32363
+ contractfuncties: string[];
32364
+ created_at: string;
32365
+ eigenaar_module_id: string | null;
32366
+ gepubliceerd_door: string | null;
32367
+ gepubliceerd_op: string;
32368
+ herzieningstermijn_dagen: number;
32369
+ id: string;
32370
+ inhoud_md: string;
32371
+ is_actueel: boolean;
32372
+ module_id: string;
32373
+ module_titel: string;
32374
+ ontbrekende_contracten: string[];
32375
+ samenvatting: string | null;
32376
+ updated_at: string;
32377
+ versie: number;
32378
+ };
32379
+ Insert: {
32380
+ bevindingen?: string | null;
32381
+ bezit_tabellen?: string[];
32382
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
32383
+ contractfuncties?: string[];
32384
+ created_at?: string;
32385
+ eigenaar_module_id?: string | null;
32386
+ gepubliceerd_door?: string | null;
32387
+ gepubliceerd_op?: string;
32388
+ herzieningstermijn_dagen?: number;
32389
+ id?: string;
32390
+ inhoud_md: string;
32391
+ is_actueel?: boolean;
32392
+ module_id: string;
32393
+ module_titel: string;
32394
+ ontbrekende_contracten?: string[];
32395
+ samenvatting?: string | null;
32396
+ updated_at?: string;
32397
+ versie?: number;
32398
+ };
32399
+ Update: {
32400
+ bevindingen?: string | null;
32401
+ bezit_tabellen?: string[];
32402
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
32403
+ contractfuncties?: string[];
32404
+ created_at?: string;
32405
+ eigenaar_module_id?: string | null;
32406
+ gepubliceerd_door?: string | null;
32407
+ gepubliceerd_op?: string;
32408
+ herzieningstermijn_dagen?: number;
32409
+ id?: string;
32410
+ inhoud_md?: string;
32411
+ is_actueel?: boolean;
32412
+ module_id?: string;
32413
+ module_titel?: string;
32414
+ ontbrekende_contracten?: string[];
32415
+ samenvatting?: string | null;
32416
+ updated_at?: string;
32417
+ versie?: number;
32418
+ };
32419
+ Relationships: [];
32420
+ };
32421
+ itk_module_instructies: {
32422
+ Row: {
32423
+ created_at: string;
32424
+ eigenaar_module_id: string;
32425
+ gepubliceerd_door: string | null;
32426
+ gepubliceerd_op: string;
32427
+ id: string;
32428
+ inhoud_md: string;
32429
+ is_actueel: boolean;
32430
+ sleutel: string;
32431
+ titel: string;
32432
+ toelichting: string | null;
32433
+ updated_at: string;
32434
+ versie: number;
32435
+ };
32436
+ Insert: {
32437
+ created_at?: string;
32438
+ eigenaar_module_id?: string;
32439
+ gepubliceerd_door?: string | null;
32440
+ gepubliceerd_op?: string;
32441
+ id?: string;
32442
+ inhoud_md: string;
32443
+ is_actueel?: boolean;
32444
+ sleutel: string;
32445
+ titel: string;
32446
+ toelichting?: string | null;
32447
+ updated_at?: string;
32448
+ versie?: number;
32449
+ };
32450
+ Update: {
32451
+ created_at?: string;
32452
+ eigenaar_module_id?: string;
32453
+ gepubliceerd_door?: string | null;
32454
+ gepubliceerd_op?: string;
32455
+ id?: string;
32456
+ inhoud_md?: string;
32457
+ is_actueel?: boolean;
32458
+ sleutel?: string;
32459
+ titel?: string;
32460
+ toelichting?: string | null;
32461
+ updated_at?: string;
32462
+ versie?: number;
32463
+ };
32464
+ Relationships: [];
32465
+ };
31776
32466
  itk_offerte_events: {
31777
32467
  Row: {
31778
32468
  created_at: string;
@@ -32631,6 +33321,27 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32631
33321
  };
32632
33322
  Relationships: [];
32633
33323
  };
33324
+ logistics_cart_barcode: {
33325
+ Row: {
33326
+ barcode: string;
33327
+ cart_id: string;
33328
+ created_at: string;
33329
+ order_id: string | null;
33330
+ };
33331
+ Insert: {
33332
+ barcode: string;
33333
+ cart_id: string;
33334
+ created_at?: string;
33335
+ order_id?: string | null;
33336
+ };
33337
+ Update: {
33338
+ barcode?: string;
33339
+ cart_id?: string;
33340
+ created_at?: string;
33341
+ order_id?: string | null;
33342
+ };
33343
+ Relationships: [];
33344
+ };
32634
33345
  logistics_decisions: {
32635
33346
  Row: {
32636
33347
  created_at: string;
@@ -33459,6 +34170,36 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
33459
34170
  referencedColumns: ["id"];
33460
34171
  }];
33461
34172
  };
34173
+ logistics_shipping_note_scan: {
34174
+ Row: {
34175
+ barcode: string;
34176
+ cart_id: string;
34177
+ id: string;
34178
+ is_reprint: boolean;
34179
+ order_id: string | null;
34180
+ print_job_id: string | null;
34181
+ scanned_at: string;
34182
+ };
34183
+ Insert: {
34184
+ barcode: string;
34185
+ cart_id: string;
34186
+ id?: string;
34187
+ is_reprint?: boolean;
34188
+ order_id?: string | null;
34189
+ print_job_id?: string | null;
34190
+ scanned_at?: string;
34191
+ };
34192
+ Update: {
34193
+ barcode?: string;
34194
+ cart_id?: string;
34195
+ id?: string;
34196
+ is_reprint?: boolean;
34197
+ order_id?: string | null;
34198
+ print_job_id?: string | null;
34199
+ scanned_at?: string;
34200
+ };
34201
+ Relationships: [];
34202
+ };
33462
34203
  logistics_staff_planning: {
33463
34204
  Row: {
33464
34205
  created_at: string;
@@ -36280,6 +37021,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36280
37021
  print_job_id: string | null;
36281
37022
  printed_at: string | null;
36282
37023
  printed_by: string | null;
37024
+ printed_cart_ids: import("../integrations/supabase/types").Json;
36283
37025
  printer_id: string | null;
36284
37026
  priority: number;
36285
37027
  reference: string | null;
@@ -36314,6 +37056,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36314
37056
  print_job_id?: string | null;
36315
37057
  printed_at?: string | null;
36316
37058
  printed_by?: string | null;
37059
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
36317
37060
  printer_id?: string | null;
36318
37061
  priority?: number;
36319
37062
  reference?: string | null;
@@ -36348,6 +37091,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36348
37091
  print_job_id?: string | null;
36349
37092
  printed_at?: string | null;
36350
37093
  printed_by?: string | null;
37094
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
36351
37095
  printer_id?: string | null;
36352
37096
  priority?: number;
36353
37097
  reference?: string | null;
@@ -37147,6 +37891,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37147
37891
  isOneToOne: false;
37148
37892
  referencedRelation: "planning_items";
37149
37893
  referencedColumns: ["id"];
37894
+ }, {
37895
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
37896
+ columns: ["planning_item_id"];
37897
+ isOneToOne: false;
37898
+ referencedRelation: "planning_overview";
37899
+ referencedColumns: ["id"];
37150
37900
  }];
37151
37901
  };
37152
37902
  planning_items: {
@@ -38724,450 +39474,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
38724
39474
  referencedColumns: ["id"];
38725
39475
  }];
38726
39476
  };
38727
- quote_activities: {
38728
- Row: {
38729
- created_at: string;
38730
- event_type: string;
38731
- id: string;
38732
- metadata: import("../integrations/supabase/types").Json;
38733
- quote_id: string;
38734
- user_id: string | null;
38735
- };
38736
- Insert: {
38737
- created_at?: string;
38738
- event_type: string;
38739
- id?: string;
38740
- metadata?: import("../integrations/supabase/types").Json;
38741
- quote_id: string;
38742
- user_id?: string | null;
38743
- };
38744
- Update: {
38745
- created_at?: string;
38746
- event_type?: string;
38747
- id?: string;
38748
- metadata?: import("../integrations/supabase/types").Json;
38749
- quote_id?: string;
38750
- user_id?: string | null;
38751
- };
38752
- Relationships: [{
38753
- foreignKeyName: "quote_activities_quote_id_fkey";
38754
- columns: ["quote_id"];
38755
- isOneToOne: false;
38756
- referencedRelation: "quotes";
38757
- referencedColumns: ["id"];
38758
- }];
38759
- };
38760
- quote_attachments: {
38761
- Row: {
38762
- created_at: string;
38763
- file_name: string;
38764
- file_size: number | null;
38765
- file_url: string;
38766
- id: string;
38767
- mime_type: string | null;
38768
- quote_id: string;
38769
- };
38770
- Insert: {
38771
- created_at?: string;
38772
- file_name: string;
38773
- file_size?: number | null;
38774
- file_url: string;
38775
- id?: string;
38776
- mime_type?: string | null;
38777
- quote_id: string;
38778
- };
38779
- Update: {
38780
- created_at?: string;
38781
- file_name?: string;
38782
- file_size?: number | null;
38783
- file_url?: string;
38784
- id?: string;
38785
- mime_type?: string | null;
38786
- quote_id?: string;
38787
- };
38788
- Relationships: [{
38789
- foreignKeyName: "quote_attachments_quote_id_fkey";
38790
- columns: ["quote_id"];
38791
- isOneToOne: false;
38792
- referencedRelation: "quotes";
38793
- referencedColumns: ["id"];
38794
- }];
38795
- };
38796
- quote_field_options: {
38797
- Row: {
38798
- created_at: string;
38799
- field_id: string;
38800
- id: string;
38801
- label: string;
38802
- sort_order: number;
38803
- value: string;
38804
- };
38805
- Insert: {
38806
- created_at?: string;
38807
- field_id: string;
38808
- id?: string;
38809
- label: string;
38810
- sort_order?: number;
38811
- value: string;
38812
- };
38813
- Update: {
38814
- created_at?: string;
38815
- field_id?: string;
38816
- id?: string;
38817
- label?: string;
38818
- sort_order?: number;
38819
- value?: string;
38820
- };
38821
- Relationships: [{
38822
- foreignKeyName: "quote_field_options_field_id_fkey";
38823
- columns: ["field_id"];
38824
- isOneToOne: false;
38825
- referencedRelation: "quote_field_settings";
38826
- referencedColumns: ["id"];
38827
- }];
38828
- };
38829
- quote_field_settings: {
38830
- Row: {
38831
- created_at: string;
38832
- default_value: string | null;
38833
- field_key: string;
38834
- field_type: string;
38835
- id: string;
38836
- is_system: boolean;
38837
- label: string;
38838
- required: boolean;
38839
- sort_order: number;
38840
- updated_at: string;
38841
- visible: boolean;
38842
- };
38843
- Insert: {
38844
- created_at?: string;
38845
- default_value?: string | null;
38846
- field_key: string;
38847
- field_type: string;
38848
- id?: string;
38849
- is_system?: boolean;
38850
- label: string;
38851
- required?: boolean;
38852
- sort_order?: number;
38853
- updated_at?: string;
38854
- visible?: boolean;
38855
- };
38856
- Update: {
38857
- created_at?: string;
38858
- default_value?: string | null;
38859
- field_key?: string;
38860
- field_type?: string;
38861
- id?: string;
38862
- is_system?: boolean;
38863
- label?: string;
38864
- required?: boolean;
38865
- sort_order?: number;
38866
- updated_at?: string;
38867
- visible?: boolean;
38868
- };
38869
- Relationships: [];
38870
- };
38871
- quote_items: {
38872
- Row: {
38873
- category: string | null;
38874
- created_at: string;
38875
- description: string;
38876
- id: string;
38877
- line_total: number;
38878
- module_id: string | null;
38879
- name: string | null;
38880
- quantity: number;
38881
- quote_id: string;
38882
- sort_order: number;
38883
- unit_price: number;
38884
- };
38885
- Insert: {
38886
- category?: string | null;
38887
- created_at?: string;
38888
- description?: string;
38889
- id?: string;
38890
- line_total?: number;
38891
- module_id?: string | null;
38892
- name?: string | null;
38893
- quantity?: number;
38894
- quote_id: string;
38895
- sort_order?: number;
38896
- unit_price?: number;
38897
- };
38898
- Update: {
38899
- category?: string | null;
38900
- created_at?: string;
38901
- description?: string;
38902
- id?: string;
38903
- line_total?: number;
38904
- module_id?: string | null;
38905
- name?: string | null;
38906
- quantity?: number;
38907
- quote_id?: string;
38908
- sort_order?: number;
38909
- unit_price?: number;
38910
- };
38911
- Relationships: [{
38912
- foreignKeyName: "quote_items_module_id_fkey";
38913
- columns: ["module_id"];
38914
- isOneToOne: false;
38915
- referencedRelation: "quote_modules";
38916
- referencedColumns: ["id"];
38917
- }, {
38918
- foreignKeyName: "quote_items_quote_id_fkey";
38919
- columns: ["quote_id"];
38920
- isOneToOne: false;
38921
- referencedRelation: "quotes";
38922
- referencedColumns: ["id"];
38923
- }];
38924
- };
38925
- quote_modules: {
38926
- Row: {
38927
- category: string | null;
38928
- created_at: string;
38929
- description: string | null;
38930
- id: string;
38931
- is_active: boolean;
38932
- name: string;
38933
- price: number;
38934
- sort_order: number;
38935
- updated_at: string;
38936
- };
38937
- Insert: {
38938
- category?: string | null;
38939
- created_at?: string;
38940
- description?: string | null;
38941
- id?: string;
38942
- is_active?: boolean;
38943
- name: string;
38944
- price?: number;
38945
- sort_order?: number;
38946
- updated_at?: string;
38947
- };
38948
- Update: {
38949
- category?: string | null;
38950
- created_at?: string;
38951
- description?: string | null;
38952
- id?: string;
38953
- is_active?: boolean;
38954
- name?: string;
38955
- price?: number;
38956
- sort_order?: number;
38957
- updated_at?: string;
38958
- };
38959
- Relationships: [];
38960
- };
38961
- quote_templates: {
38962
- Row: {
38963
- created_at: string;
38964
- description: string | null;
38965
- field_values: import("../integrations/supabase/types").Json;
38966
- id: string;
38967
- is_default: boolean;
38968
- items: import("../integrations/supabase/types").Json;
38969
- name: string;
38970
- updated_at: string;
38971
- vat_rate: number;
38972
- };
38973
- Insert: {
38974
- created_at?: string;
38975
- description?: string | null;
38976
- field_values?: import("../integrations/supabase/types").Json;
38977
- id?: string;
38978
- is_default?: boolean;
38979
- items?: import("../integrations/supabase/types").Json;
38980
- name: string;
38981
- updated_at?: string;
38982
- vat_rate?: number;
38983
- };
38984
- Update: {
38985
- created_at?: string;
38986
- description?: string | null;
38987
- field_values?: import("../integrations/supabase/types").Json;
38988
- id?: string;
38989
- is_default?: boolean;
38990
- items?: import("../integrations/supabase/types").Json;
38991
- name?: string;
38992
- updated_at?: string;
38993
- vat_rate?: number;
38994
- };
38995
- Relationships: [];
38996
- };
38997
- quote_terms: {
38998
- Row: {
38999
- content: string | null;
39000
- created_at: string;
39001
- file_url: string | null;
39002
- id: string;
39003
- is_active: boolean;
39004
- name: string;
39005
- published_at: string | null;
39006
- updated_at: string;
39007
- version: string;
39008
- };
39009
- Insert: {
39010
- content?: string | null;
39011
- created_at?: string;
39012
- file_url?: string | null;
39013
- id?: string;
39014
- is_active?: boolean;
39015
- name: string;
39016
- published_at?: string | null;
39017
- updated_at?: string;
39018
- version?: string;
39019
- };
39020
- Update: {
39021
- content?: string | null;
39022
- created_at?: string;
39023
- file_url?: string | null;
39024
- id?: string;
39025
- is_active?: boolean;
39026
- name?: string;
39027
- published_at?: string | null;
39028
- updated_at?: string;
39029
- version?: string;
39030
- };
39031
- Relationships: [];
39032
- };
39033
- quotes: {
39034
- Row: {
39035
- accepted_at: string | null;
39036
- archived_at: string | null;
39037
- contact_id: string | null;
39038
- created_at: string;
39039
- customer_id: string | null;
39040
- discount: number;
39041
- expires_at: string | null;
39042
- field_values: import("../integrations/supabase/types").Json;
39043
- id: string;
39044
- notes: string | null;
39045
- owner_id: string | null;
39046
- personal_message: string | null;
39047
- project_id: string | null;
39048
- prospect_id: string | null;
39049
- public_token: string;
39050
- quote_number: string | null;
39051
- recipient_email: string | null;
39052
- recipient_name: string | null;
39053
- rejected_at: string | null;
39054
- sent_at: string | null;
39055
- status: string;
39056
- subtotal: number;
39057
- template_id: string | null;
39058
- terms_id: string | null;
39059
- title: string;
39060
- total: number;
39061
- updated_at: string;
39062
- valid_until: string | null;
39063
- vat_amount: number;
39064
- vat_rate: number;
39065
- viewed_at: string | null;
39066
- };
39067
- Insert: {
39068
- accepted_at?: string | null;
39069
- archived_at?: string | null;
39070
- contact_id?: string | null;
39071
- created_at?: string;
39072
- customer_id?: string | null;
39073
- discount?: number;
39074
- expires_at?: string | null;
39075
- field_values?: import("../integrations/supabase/types").Json;
39076
- id?: string;
39077
- notes?: string | null;
39078
- owner_id?: string | null;
39079
- personal_message?: string | null;
39080
- project_id?: string | null;
39081
- prospect_id?: string | null;
39082
- public_token?: string;
39083
- quote_number?: string | null;
39084
- recipient_email?: string | null;
39085
- recipient_name?: string | null;
39086
- rejected_at?: string | null;
39087
- sent_at?: string | null;
39088
- status?: string;
39089
- subtotal?: number;
39090
- template_id?: string | null;
39091
- terms_id?: string | null;
39092
- title?: string;
39093
- total?: number;
39094
- updated_at?: string;
39095
- valid_until?: string | null;
39096
- vat_amount?: number;
39097
- vat_rate?: number;
39098
- viewed_at?: string | null;
39099
- };
39100
- Update: {
39101
- accepted_at?: string | null;
39102
- archived_at?: string | null;
39103
- contact_id?: string | null;
39104
- created_at?: string;
39105
- customer_id?: string | null;
39106
- discount?: number;
39107
- expires_at?: string | null;
39108
- field_values?: import("../integrations/supabase/types").Json;
39109
- id?: string;
39110
- notes?: string | null;
39111
- owner_id?: string | null;
39112
- personal_message?: string | null;
39113
- project_id?: string | null;
39114
- prospect_id?: string | null;
39115
- public_token?: string;
39116
- quote_number?: string | null;
39117
- recipient_email?: string | null;
39118
- recipient_name?: string | null;
39119
- rejected_at?: string | null;
39120
- sent_at?: string | null;
39121
- status?: string;
39122
- subtotal?: number;
39123
- template_id?: string | null;
39124
- terms_id?: string | null;
39125
- title?: string;
39126
- total?: number;
39127
- updated_at?: string;
39128
- valid_until?: string | null;
39129
- vat_amount?: number;
39130
- vat_rate?: number;
39131
- viewed_at?: string | null;
39132
- };
39133
- Relationships: [{
39134
- foreignKeyName: "quotes_contact_id_fkey";
39135
- columns: ["contact_id"];
39136
- isOneToOne: false;
39137
- referencedRelation: "customer_contacts";
39138
- referencedColumns: ["id"];
39139
- }, {
39140
- foreignKeyName: "quotes_customer_id_fkey";
39141
- columns: ["customer_id"];
39142
- isOneToOne: false;
39143
- referencedRelation: "customers";
39144
- referencedColumns: ["id"];
39145
- }, {
39146
- foreignKeyName: "quotes_project_id_fkey";
39147
- columns: ["project_id"];
39148
- isOneToOne: false;
39149
- referencedRelation: "projects";
39150
- referencedColumns: ["id"];
39151
- }, {
39152
- foreignKeyName: "quotes_prospect_id_fkey";
39153
- columns: ["prospect_id"];
39154
- isOneToOne: false;
39155
- referencedRelation: "prospects";
39156
- referencedColumns: ["id"];
39157
- }, {
39158
- foreignKeyName: "quotes_template_id_fkey";
39159
- columns: ["template_id"];
39160
- isOneToOne: false;
39161
- referencedRelation: "quote_templates";
39162
- referencedColumns: ["id"];
39163
- }, {
39164
- foreignKeyName: "quotes_terms_id_fkey";
39165
- columns: ["terms_id"];
39166
- isOneToOne: false;
39167
- referencedRelation: "quote_terms";
39168
- referencedColumns: ["id"];
39169
- }];
39170
- };
39171
39477
  reception_notifications: {
39172
39478
  Row: {
39173
39479
  booking_id: string | null;
@@ -40289,7 +40595,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40289
40595
  foreignKeyName: "time_logs_work_order_id_fkey";
40290
40596
  columns: ["work_order_id"];
40291
40597
  isOneToOne: false;
40292
- referencedRelation: "work_orders";
40598
+ referencedRelation: "werkbonnen";
40293
40599
  referencedColumns: ["id"];
40294
40600
  }];
40295
40601
  };
@@ -40421,6 +40727,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40421
40727
  };
40422
40728
  trade_item_stock: {
40423
40729
  Row: {
40730
+ change_source: string;
40424
40731
  connection_id: string;
40425
40732
  created_at: string;
40426
40733
  id: string;
@@ -40434,6 +40741,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40434
40741
  user_id: string;
40435
40742
  };
40436
40743
  Insert: {
40744
+ change_source?: string;
40437
40745
  connection_id: string;
40438
40746
  created_at?: string;
40439
40747
  id?: string;
@@ -40447,6 +40755,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
40447
40755
  user_id: string;
40448
40756
  };
40449
40757
  Update: {
40758
+ change_source?: string;
40450
40759
  connection_id?: string;
40451
40760
  created_at?: string;
40452
40761
  id?: string;
@@ -41616,156 +41925,6 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41616
41925
  };
41617
41926
  Relationships: [];
41618
41927
  };
41619
- uren_offerte_regels: {
41620
- Row: {
41621
- created_at: string;
41622
- description: string;
41623
- duration_minutes: number;
41624
- id: string;
41625
- offerte_id: string;
41626
- package_id: string | null;
41627
- quantity: number;
41628
- sort_order: number;
41629
- total_cents: number;
41630
- unit_price_cents: number;
41631
- };
41632
- Insert: {
41633
- created_at?: string;
41634
- description: string;
41635
- duration_minutes?: number;
41636
- id?: string;
41637
- offerte_id: string;
41638
- package_id?: string | null;
41639
- quantity?: number;
41640
- sort_order?: number;
41641
- total_cents?: number;
41642
- unit_price_cents?: number;
41643
- };
41644
- Update: {
41645
- created_at?: string;
41646
- description?: string;
41647
- duration_minutes?: number;
41648
- id?: string;
41649
- offerte_id?: string;
41650
- package_id?: string | null;
41651
- quantity?: number;
41652
- sort_order?: number;
41653
- total_cents?: number;
41654
- unit_price_cents?: number;
41655
- };
41656
- Relationships: [{
41657
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
41658
- columns: ["offerte_id"];
41659
- isOneToOne: false;
41660
- referencedRelation: "uren_offertes";
41661
- referencedColumns: ["id"];
41662
- }, {
41663
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
41664
- columns: ["package_id"];
41665
- isOneToOne: false;
41666
- referencedRelation: "werkbon_packages";
41667
- referencedColumns: ["id"];
41668
- }];
41669
- };
41670
- uren_offerte_velden: {
41671
- Row: {
41672
- created_at: string;
41673
- field_type: string;
41674
- id: string;
41675
- key: string;
41676
- label: string;
41677
- options: string[];
41678
- required: boolean;
41679
- sort_order: number;
41680
- updated_at: string;
41681
- };
41682
- Insert: {
41683
- created_at?: string;
41684
- field_type?: string;
41685
- id?: string;
41686
- key: string;
41687
- label: string;
41688
- options?: string[];
41689
- required?: boolean;
41690
- sort_order?: number;
41691
- updated_at?: string;
41692
- };
41693
- Update: {
41694
- created_at?: string;
41695
- field_type?: string;
41696
- id?: string;
41697
- key?: string;
41698
- label?: string;
41699
- options?: string[];
41700
- required?: boolean;
41701
- sort_order?: number;
41702
- updated_at?: string;
41703
- };
41704
- Relationships: [];
41705
- };
41706
- uren_offertes: {
41707
- Row: {
41708
- created_at: string;
41709
- created_by: string | null;
41710
- customer_id: string | null;
41711
- customer_name: string | null;
41712
- dynamic_fields: import("../integrations/supabase/types").Json;
41713
- estimated_minutes: number;
41714
- id: string;
41715
- note: string | null;
41716
- quote_number: string | null;
41717
- status: string;
41718
- title: string;
41719
- total_excl_cents: number;
41720
- total_incl_cents: number;
41721
- updated_at: string;
41722
- valid_until: string | null;
41723
- vat_percentage: number;
41724
- };
41725
- Insert: {
41726
- created_at?: string;
41727
- created_by?: string | null;
41728
- customer_id?: string | null;
41729
- customer_name?: string | null;
41730
- dynamic_fields?: import("../integrations/supabase/types").Json;
41731
- estimated_minutes?: number;
41732
- id?: string;
41733
- note?: string | null;
41734
- quote_number?: string | null;
41735
- status?: string;
41736
- title?: string;
41737
- total_excl_cents?: number;
41738
- total_incl_cents?: number;
41739
- updated_at?: string;
41740
- valid_until?: string | null;
41741
- vat_percentage?: number;
41742
- };
41743
- Update: {
41744
- created_at?: string;
41745
- created_by?: string | null;
41746
- customer_id?: string | null;
41747
- customer_name?: string | null;
41748
- dynamic_fields?: import("../integrations/supabase/types").Json;
41749
- estimated_minutes?: number;
41750
- id?: string;
41751
- note?: string | null;
41752
- quote_number?: string | null;
41753
- status?: string;
41754
- title?: string;
41755
- total_excl_cents?: number;
41756
- total_incl_cents?: number;
41757
- updated_at?: string;
41758
- valid_until?: string | null;
41759
- vat_percentage?: number;
41760
- };
41761
- Relationships: [{
41762
- foreignKeyName: "uren_offertes_customer_id_fkey";
41763
- columns: ["customer_id"];
41764
- isOneToOne: false;
41765
- referencedRelation: "itk_customers";
41766
- referencedColumns: ["id"];
41767
- }];
41768
- };
41769
41928
  uren_settings: {
41770
41929
  Row: {
41771
41930
  break_minutes: number;
@@ -43452,6 +43611,37 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43452
43611
  };
43453
43612
  Relationships: [];
43454
43613
  };
43614
+ planning_overview: {
43615
+ Row: {
43616
+ assigned_monteur_id: string | null;
43617
+ assistants: import("../integrations/supabase/types").Json | null;
43618
+ budget_mandate_cents: number | null;
43619
+ created_at: string | null;
43620
+ created_by: string | null;
43621
+ customer_id: string | null;
43622
+ customer_name: string | null;
43623
+ duration_minutes: number | null;
43624
+ end_at: string | null;
43625
+ id: string | null;
43626
+ needs_detail_review: boolean | null;
43627
+ notes: string | null;
43628
+ project_number: string | null;
43629
+ review_reasons: string[] | null;
43630
+ start_at: string | null;
43631
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
43632
+ updated_at: string | null;
43633
+ viewer_role: string | null;
43634
+ werkbon_id: string | null;
43635
+ work_address: string | null;
43636
+ };
43637
+ Relationships: [{
43638
+ foreignKeyName: "planning_items_werkbon_id_fkey";
43639
+ columns: ["werkbon_id"];
43640
+ isOneToOne: false;
43641
+ referencedRelation: "werkbonnen";
43642
+ referencedColumns: ["id"];
43643
+ }];
43644
+ };
43455
43645
  product_group_stock_view: {
43456
43646
  Row: {
43457
43647
  item_count: number | null;
@@ -44047,6 +44237,18 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44047
44237
  Args: never;
44048
44238
  Returns: number;
44049
44239
  };
44240
+ calculate_floriday_desired_stock: {
44241
+ Args: {
44242
+ p_connection_id: string;
44243
+ p_product_id: string;
44244
+ };
44245
+ Returns: {
44246
+ desired_availability: boolean;
44247
+ desired_quantity: number;
44248
+ erp_available: number;
44249
+ stock_mode: string;
44250
+ }[];
44251
+ };
44050
44252
  calculate_layer_stock: {
44051
44253
  Args: {
44052
44254
  p_product_id: string;
@@ -44141,6 +44343,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44141
44343
  attempts: number;
44142
44344
  connection_id: string;
44143
44345
  created_at: string;
44346
+ dead_lettered_at: string | null;
44144
44347
  desired_available: boolean | null;
44145
44348
  gateway_attempt_id: string | null;
44146
44349
  id: string;
@@ -44149,9 +44352,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44149
44352
  locked_by: string | null;
44150
44353
  next_attempt_at: string;
44151
44354
  number_of_pieces: number;
44355
+ product_id: string | null;
44152
44356
  sent_at: string | null;
44153
44357
  status: string;
44358
+ stock_mode: string | null;
44154
44359
  superseded_by: string | null;
44360
+ target_week: number | null;
44361
+ target_year: number | null;
44155
44362
  trade_item_id: string;
44156
44363
  updated_at: string;
44157
44364
  user_id: string;
@@ -44632,6 +44839,24 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44632
44839
  };
44633
44840
  Returns: string;
44634
44841
  };
44842
+ floriday_capture_stock_snapshot: {
44843
+ Args: never;
44844
+ Returns: number;
44845
+ };
44846
+ floriday_cleanup_stock_queue_v2: {
44847
+ Args: never;
44848
+ Returns: undefined;
44849
+ };
44850
+ floriday_compact_stock_snapshots: {
44851
+ Args: never;
44852
+ Returns: undefined;
44853
+ };
44854
+ floriday_default_owner: {
44855
+ Args: {
44856
+ p_connection_id: string;
44857
+ };
44858
+ Returns: string;
44859
+ };
44635
44860
  floriday_effective_price: {
44636
44861
  Args: {
44637
44862
  _buyer_id: string;
@@ -44649,6 +44874,34 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44649
44874
  source_id: string;
44650
44875
  }[];
44651
44876
  };
44877
+ floriday_fill_publish_horizon: {
44878
+ Args: never;
44879
+ Returns: number;
44880
+ };
44881
+ floriday_ingest_sales_orders: {
44882
+ Args: {
44883
+ p_limit?: number;
44884
+ };
44885
+ Returns: number;
44886
+ };
44887
+ floriday_publish_horizon_weeks: {
44888
+ Args: never;
44889
+ Returns: number;
44890
+ };
44891
+ floriday_recompute_inventory: {
44892
+ Args: {
44893
+ p_connection_id: string;
44894
+ p_force?: boolean;
44895
+ p_product_id: string;
44896
+ };
44897
+ Returns: undefined;
44898
+ };
44899
+ floriday_requeue_dead_letters: {
44900
+ Args: {
44901
+ p_connection_id?: string;
44902
+ };
44903
+ Returns: number;
44904
+ };
44652
44905
  format_cart_number: {
44653
44906
  Args: {
44654
44907
  p_pick_date: string;
@@ -44865,6 +45118,131 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44865
45118
  Args: never;
44866
45119
  Returns: string;
44867
45120
  };
45121
+ handover_get: {
45122
+ Args: {
45123
+ _module_id: string;
45124
+ };
45125
+ Returns: import("../integrations/supabase/types").Json;
45126
+ };
45127
+ handover_kern_naam: {
45128
+ Args: {
45129
+ _naam: string;
45130
+ };
45131
+ Returns: string;
45132
+ };
45133
+ handover_ketenmodel: {
45134
+ Args: never;
45135
+ Returns: import("../integrations/supabase/types").Json;
45136
+ };
45137
+ handover_kruisconflicten: {
45138
+ Args: never;
45139
+ Returns: import("../integrations/supabase/types").Json;
45140
+ };
45141
+ handover_list: {
45142
+ Args: never;
45143
+ Returns: import("../integrations/supabase/types").Json;
45144
+ };
45145
+ handover_mag_schrijven: {
45146
+ Args: {
45147
+ _module_id: string;
45148
+ };
45149
+ Returns: boolean;
45150
+ };
45151
+ handover_norm_naam: {
45152
+ Args: {
45153
+ _naam: string;
45154
+ };
45155
+ Returns: string;
45156
+ };
45157
+ handover_publish: {
45158
+ Args: {
45159
+ _bevindingen?: string;
45160
+ _bezit_tabellen?: string[];
45161
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
45162
+ _contractfuncties?: string[];
45163
+ _inhoud_md: string;
45164
+ _module_id: string;
45165
+ _module_titel: string;
45166
+ _ontbrekende_contracten?: string[];
45167
+ _samenvatting?: string;
45168
+ };
45169
+ Returns: number;
45170
+ };
45171
+ handover_publish_via_token: {
45172
+ Args: {
45173
+ _bevindingen?: string;
45174
+ _bezit_tabellen?: string[];
45175
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
45176
+ _contractfuncties?: string[];
45177
+ _inhoud_md: string;
45178
+ _module_id: string;
45179
+ _module_titel: string;
45180
+ _ontbrekende_contracten?: string[];
45181
+ _samenvatting?: string;
45182
+ _token_hash: string;
45183
+ };
45184
+ Returns: number;
45185
+ };
45186
+ handover_status: {
45187
+ Args: never;
45188
+ Returns: import("../integrations/supabase/types").Json;
45189
+ };
45190
+ handover_synonym_kern: {
45191
+ Args: {
45192
+ _naam: string;
45193
+ };
45194
+ Returns: string;
45195
+ };
45196
+ handover_token_intrekken: {
45197
+ Args: {
45198
+ _id: string;
45199
+ };
45200
+ Returns: boolean;
45201
+ };
45202
+ handover_token_lijst: {
45203
+ Args: never;
45204
+ Returns: import("../integrations/supabase/types").Json;
45205
+ };
45206
+ handover_token_maken: {
45207
+ Args: {
45208
+ _label?: string;
45209
+ _module_id: string;
45210
+ };
45211
+ Returns: string;
45212
+ };
45213
+ handover_update: {
45214
+ Args: {
45215
+ _bezit_tabellen?: string[];
45216
+ _contractfuncties?: string[];
45217
+ _herzieningstermijn_dagen?: number;
45218
+ _inhoud_md?: string;
45219
+ _module_id: string;
45220
+ _module_titel?: string;
45221
+ _samenvatting?: string;
45222
+ _versie: number;
45223
+ };
45224
+ Returns: boolean;
45225
+ } | {
45226
+ Args: {
45227
+ _bevindingen?: string;
45228
+ _bezit_tabellen?: string[];
45229
+ _contractfuncties?: string[];
45230
+ _herzieningstermijn_dagen?: number;
45231
+ _inhoud_md?: string;
45232
+ _module_id: string;
45233
+ _module_titel?: string;
45234
+ _ontbrekende_contracten?: string[];
45235
+ _samenvatting?: string;
45236
+ _versie: number;
45237
+ };
45238
+ Returns: boolean;
45239
+ };
45240
+ handover_versies: {
45241
+ Args: {
45242
+ _module_id: string;
45243
+ };
45244
+ Returns: import("../integrations/supabase/types").Json;
45245
+ };
44868
45246
  has_module_permission: {
44869
45247
  Args: {
44870
45248
  _min: string;
@@ -44884,6 +45262,25 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44884
45262
  Args: never;
44885
45263
  Returns: boolean;
44886
45264
  };
45265
+ instructie_get: {
45266
+ Args: {
45267
+ _sleutel: string;
45268
+ };
45269
+ Returns: import("../integrations/supabase/types").Json;
45270
+ };
45271
+ instructie_list: {
45272
+ Args: never;
45273
+ Returns: import("../integrations/supabase/types").Json;
45274
+ };
45275
+ instructie_publish: {
45276
+ Args: {
45277
+ _inhoud_md: string;
45278
+ _sleutel: string;
45279
+ _titel: string;
45280
+ _toelichting?: string;
45281
+ };
45282
+ Returns: number;
45283
+ };
44887
45284
  invoice_create_from_source: {
44888
45285
  Args: {
44889
45286
  _payload?: import("../integrations/supabase/types").Json;
@@ -45108,6 +45505,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45108
45505
  };
45109
45506
  Returns: boolean;
45110
45507
  };
45508
+ logistics_barcode_lookup: {
45509
+ Args: {
45510
+ p_barcode: string;
45511
+ };
45512
+ Returns: import("../integrations/supabase/types").Json;
45513
+ };
45111
45514
  logistics_buffer_criteria: {
45112
45515
  Args: {
45113
45516
  p_settings: import("../integrations/supabase/types").Json;
@@ -45168,6 +45571,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45168
45571
  };
45169
45572
  Returns: number;
45170
45573
  };
45574
+ logistics_cart_barcode_value: {
45575
+ Args: {
45576
+ _cart_id: string;
45577
+ };
45578
+ Returns: string;
45579
+ };
45171
45580
  logistics_cart_index: {
45172
45581
  Args: {
45173
45582
  p_from?: string;
@@ -45177,6 +45586,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45177
45586
  cart_id: string;
45178
45587
  cart_index: number;
45179
45588
  cart_label: string;
45589
+ delivery_date: string;
45590
+ is_announced: boolean;
45591
+ is_controlled: boolean;
45592
+ is_printed: boolean;
45180
45593
  is_shared: boolean;
45181
45594
  order_number: string;
45182
45595
  order_source: string;
@@ -45187,6 +45600,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45187
45600
  task_status: string;
45188
45601
  }[];
45189
45602
  };
45603
+ logistics_cart_slip_plan: {
45604
+ Args: {
45605
+ p_order_id: string;
45606
+ };
45607
+ Returns: import("../integrations/supabase/types").Json;
45608
+ };
45190
45609
  logistics_check_order_allowed: {
45191
45610
  Args: {
45192
45611
  p_lines: import("../integrations/supabase/types").Json;
@@ -45335,106 +45754,149 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45335
45754
  isSetofReturn: false;
45336
45755
  };
45337
45756
  };
45338
- logistics_consistency_check: {
45339
- Args: never;
45340
- Returns: {
45341
- agenda_carts: number;
45342
- control_carts: number;
45343
- ok: boolean;
45344
- orphan_tasks: number;
45345
- pick_date: string;
45346
- raw_carts: number;
45347
- }[];
45348
- };
45349
- logistics_delay_customer_email: {
45757
+ logistics_consistency_check: {
45758
+ Args: never;
45759
+ Returns: {
45760
+ agenda_carts: number;
45761
+ announced_carts: number;
45762
+ control_carts: number;
45763
+ delivery_carts: number;
45764
+ ok: boolean;
45765
+ orphan_tasks: number;
45766
+ pick_date: string;
45767
+ raw_carts: number;
45768
+ sales_carts: number;
45769
+ station_carts: number;
45770
+ }[];
45771
+ };
45772
+ logistics_delay_customer_email: {
45773
+ Args: {
45774
+ p_customer: string;
45775
+ p_lang: string;
45776
+ p_new_date: string;
45777
+ p_order: string;
45778
+ p_partial?: boolean;
45779
+ };
45780
+ Returns: {
45781
+ body: string;
45782
+ subject: string;
45783
+ }[];
45784
+ };
45785
+ logistics_delivery_agenda: {
45786
+ Args: {
45787
+ p_from?: string;
45788
+ p_to?: string;
45789
+ };
45790
+ Returns: {
45791
+ announced_count: number;
45792
+ cart_count: number;
45793
+ controlled_count: number;
45794
+ delivery_date: string;
45795
+ order_count: number;
45796
+ orders: import("../integrations/supabase/types").Json;
45797
+ plant_count: number;
45798
+ printed_count: number;
45799
+ }[];
45800
+ };
45801
+ logistics_document_layout: {
45802
+ Args: {
45803
+ _document_code: string;
45804
+ };
45805
+ Returns: import("../integrations/supabase/types").Json;
45806
+ };
45807
+ logistics_document_layout_v2: {
45808
+ Args: {
45809
+ _document_code: string;
45810
+ _is_partial?: boolean;
45811
+ };
45812
+ Returns: import("../integrations/supabase/types").Json;
45813
+ };
45814
+ logistics_document_station: {
45815
+ Args: {
45816
+ _document_code: string;
45817
+ };
45818
+ Returns: string;
45819
+ };
45820
+ logistics_document_type_map: {
45821
+ Args: {
45822
+ _document_code: string;
45823
+ };
45824
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
45825
+ };
45826
+ logistics_emit_event: {
45827
+ Args: {
45828
+ p_event_type: string;
45829
+ p_idempotency_key?: string;
45830
+ p_order_ref: string;
45831
+ p_payload?: import("../integrations/supabase/types").Json;
45832
+ p_priority?: number;
45833
+ p_shadow?: boolean;
45834
+ p_source_module: string;
45835
+ p_strategy_id?: string;
45836
+ };
45837
+ Returns: import("../integrations/supabase/types").Json;
45838
+ };
45839
+ logistics_ensure_cart_barcode: {
45840
+ Args: {
45841
+ _cart_id: string;
45842
+ };
45843
+ Returns: string;
45844
+ };
45845
+ logistics_fail_task: {
45846
+ Args: {
45847
+ p_error: string;
45848
+ p_task_id: string;
45849
+ };
45850
+ Returns: {
45851
+ attempt_log: import("../integrations/supabase/types").Json;
45852
+ attempts: number;
45853
+ buffer_ref: string | null;
45854
+ claimed_at: string | null;
45855
+ claimed_by: string | null;
45856
+ completed_at: string | null;
45857
+ created_at: string;
45858
+ depends_on: string[];
45859
+ due_at: string | null;
45860
+ error: string | null;
45861
+ id: string;
45862
+ last_error: string | null;
45863
+ next_attempt_at: string | null;
45864
+ order_ref: string;
45865
+ owner_module: string;
45866
+ payload: import("../integrations/supabase/types").Json;
45867
+ plan_run_id: string | null;
45868
+ planned_end: string | null;
45869
+ planned_start: string | null;
45870
+ priority: number;
45871
+ result: import("../integrations/supabase/types").Json | null;
45872
+ rule_config_id: string | null;
45873
+ rule_version: number | null;
45874
+ sequence: number;
45875
+ shadow: boolean;
45876
+ started_at: string | null;
45877
+ status: string;
45878
+ strategy_id: string | null;
45879
+ task_type: string;
45880
+ updated_at: string;
45881
+ user_id: string;
45882
+ };
45883
+ SetofOptions: {
45884
+ from: "*";
45885
+ to: "logistics_tasks";
45886
+ isOneToOne: true;
45887
+ isSetofReturn: false;
45888
+ };
45889
+ };
45890
+ logistics_floriday_cart_plan: {
45350
45891
  Args: {
45351
- p_customer: string;
45352
- p_lang: string;
45353
- p_new_date: string;
45354
- p_order: string;
45355
- p_partial?: boolean;
45892
+ p_order_id: string;
45356
45893
  };
45357
45894
  Returns: {
45358
- body: string;
45359
- subject: string;
45895
+ carrier_type: string;
45896
+ idx: number;
45897
+ packages: number;
45360
45898
  }[];
45361
45899
  };
45362
- logistics_document_layout: {
45363
- Args: {
45364
- _document_code: string;
45365
- };
45366
- Returns: import("../integrations/supabase/types").Json;
45367
- };
45368
- logistics_document_station: {
45369
- Args: {
45370
- _document_code: string;
45371
- };
45372
- Returns: string;
45373
- };
45374
- logistics_document_type_map: {
45375
- Args: {
45376
- _document_code: string;
45377
- };
45378
- Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
45379
- };
45380
- logistics_emit_event: {
45381
- Args: {
45382
- p_event_type: string;
45383
- p_idempotency_key?: string;
45384
- p_order_ref: string;
45385
- p_payload?: import("../integrations/supabase/types").Json;
45386
- p_priority?: number;
45387
- p_shadow?: boolean;
45388
- p_source_module: string;
45389
- p_strategy_id?: string;
45390
- };
45391
- Returns: import("../integrations/supabase/types").Json;
45392
- };
45393
- logistics_fail_task: {
45394
- Args: {
45395
- p_error: string;
45396
- p_task_id: string;
45397
- };
45398
- Returns: {
45399
- attempt_log: import("../integrations/supabase/types").Json;
45400
- attempts: number;
45401
- buffer_ref: string | null;
45402
- claimed_at: string | null;
45403
- claimed_by: string | null;
45404
- completed_at: string | null;
45405
- created_at: string;
45406
- depends_on: string[];
45407
- due_at: string | null;
45408
- error: string | null;
45409
- id: string;
45410
- last_error: string | null;
45411
- next_attempt_at: string | null;
45412
- order_ref: string;
45413
- owner_module: string;
45414
- payload: import("../integrations/supabase/types").Json;
45415
- plan_run_id: string | null;
45416
- planned_end: string | null;
45417
- planned_start: string | null;
45418
- priority: number;
45419
- result: import("../integrations/supabase/types").Json | null;
45420
- rule_config_id: string | null;
45421
- rule_version: number | null;
45422
- sequence: number;
45423
- shadow: boolean;
45424
- started_at: string | null;
45425
- status: string;
45426
- strategy_id: string | null;
45427
- task_type: string;
45428
- updated_at: string;
45429
- user_id: string;
45430
- };
45431
- SetofOptions: {
45432
- from: "*";
45433
- to: "logistics_tasks";
45434
- isOneToOne: true;
45435
- isSetofReturn: false;
45436
- };
45437
- };
45438
45900
  logistics_floriday_claim_pushes: {
45439
45901
  Args: {
45440
45902
  _lease_seconds?: number;
@@ -45640,6 +46102,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45640
46102
  };
45641
46103
  Returns: undefined;
45642
46104
  };
46105
+ logistics_plan_floriday_order: {
46106
+ Args: {
46107
+ p_buffer_id?: string;
46108
+ p_order_id: string;
46109
+ };
46110
+ Returns: number;
46111
+ };
45643
46112
  logistics_plan_impact_orders: {
45644
46113
  Args: {
45645
46114
  p_order_id: string;
@@ -45833,6 +46302,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45833
46302
  };
45834
46303
  Returns: string;
45835
46304
  };
46305
+ logistics_shipping_note_from_barcode: {
46306
+ Args: {
46307
+ p_allow_reprint?: boolean;
46308
+ p_barcode: string;
46309
+ p_station_id?: string;
46310
+ };
46311
+ Returns: import("../integrations/supabase/types").Json;
46312
+ };
45836
46313
  logistics_supersede_stale_tasks: {
45837
46314
  Args: {
45838
46315
  p_keep: string[];
@@ -46054,6 +46531,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
46054
46531
  print_job_id: string | null;
46055
46532
  printed_at: string | null;
46056
46533
  printed_by: string | null;
46534
+ printed_cart_ids: import("../integrations/supabase/types").Json;
46057
46535
  printer_id: string | null;
46058
46536
  priority: number;
46059
46537
  reference: string | null;
@@ -46103,6 +46581,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
46103
46581
  print_job_id: string | null;
46104
46582
  printed_at: string | null;
46105
46583
  printed_by: string | null;
46584
+ printed_cart_ids: import("../integrations/supabase/types").Json;
46106
46585
  printer_id: string | null;
46107
46586
  priority: number;
46108
46587
  reference: string | null;
@@ -46157,6 +46636,56 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
46157
46636
  print_job_id: string | null;
46158
46637
  printed_at: string | null;
46159
46638
  printed_by: string | null;
46639
+ printed_cart_ids: import("../integrations/supabase/types").Json;
46640
+ printer_id: string | null;
46641
+ priority: number;
46642
+ reference: string | null;
46643
+ route: string | null;
46644
+ screen_id: string | null;
46645
+ station_id: string | null;
46646
+ status_id: string | null;
46647
+ updated_at: string;
46648
+ warnings: import("../integrations/supabase/types").Json;
46649
+ };
46650
+ SetofOptions: {
46651
+ from: "*";
46652
+ to: "pick_queue";
46653
+ isOneToOne: true;
46654
+ isSetofReturn: false;
46655
+ };
46656
+ };
46657
+ pick_complete_print_cart: {
46658
+ Args: {
46659
+ _cart_id: string;
46660
+ _printer_id: string;
46661
+ _queue_item_id: string;
46662
+ _session_id: string;
46663
+ };
46664
+ Returns: {
46665
+ announced_at: string;
46666
+ assigned_user_id: string | null;
46667
+ barcode: string | null;
46668
+ cancelled_at: string | null;
46669
+ cart_count: number;
46670
+ completed_at: string | null;
46671
+ country_code: string | null;
46672
+ created_at: string;
46673
+ customer_name: string | null;
46674
+ delivery_address: string | null;
46675
+ document_number: string | null;
46676
+ document_type_id: string | null;
46677
+ due_at: string | null;
46678
+ id: string;
46679
+ is_urgent: boolean;
46680
+ line_count: number;
46681
+ order_number: string | null;
46682
+ order_type: string | null;
46683
+ payload: import("../integrations/supabase/types").Json;
46684
+ print_count: number;
46685
+ print_job_id: string | null;
46686
+ printed_at: string | null;
46687
+ printed_by: string | null;
46688
+ printed_cart_ids: import("../integrations/supabase/types").Json;
46160
46689
  printer_id: string | null;
46161
46690
  priority: number;
46162
46691
  reference: string | null;
@@ -46200,6 +46729,15 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
46200
46729
  _session_id?: string;
46201
46730
  };
46202
46731
  Returns: string;
46732
+ } | {
46733
+ Args: {
46734
+ _cart_id: string;
46735
+ _is_herprint: boolean;
46736
+ _printer_id: string;
46737
+ _queue_item_id: string;
46738
+ _session_id: string;
46739
+ };
46740
+ Returns: string;
46203
46741
  };
46204
46742
  pick_order_context: {
46205
46743
  Args: {
@@ -46280,6 +46818,54 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
46280
46818
  print_job_id: string | null;
46281
46819
  printed_at: string | null;
46282
46820
  printed_by: string | null;
46821
+ printed_cart_ids: import("../integrations/supabase/types").Json;
46822
+ printer_id: string | null;
46823
+ priority: number;
46824
+ reference: string | null;
46825
+ route: string | null;
46826
+ screen_id: string | null;
46827
+ station_id: string | null;
46828
+ status_id: string | null;
46829
+ updated_at: string;
46830
+ warnings: import("../integrations/supabase/types").Json;
46831
+ };
46832
+ SetofOptions: {
46833
+ from: "*";
46834
+ to: "pick_queue";
46835
+ isOneToOne: true;
46836
+ isSetofReturn: false;
46837
+ };
46838
+ } | {
46839
+ Args: {
46840
+ _cart_id?: string;
46841
+ _queue_item_id: string;
46842
+ _session_id: string;
46843
+ };
46844
+ Returns: {
46845
+ announced_at: string;
46846
+ assigned_user_id: string | null;
46847
+ barcode: string | null;
46848
+ cancelled_at: string | null;
46849
+ cart_count: number;
46850
+ completed_at: string | null;
46851
+ country_code: string | null;
46852
+ created_at: string;
46853
+ customer_name: string | null;
46854
+ delivery_address: string | null;
46855
+ document_number: string | null;
46856
+ document_type_id: string | null;
46857
+ due_at: string | null;
46858
+ id: string;
46859
+ is_urgent: boolean;
46860
+ line_count: number;
46861
+ order_number: string | null;
46862
+ order_type: string | null;
46863
+ payload: import("../integrations/supabase/types").Json;
46864
+ print_count: number;
46865
+ print_job_id: string | null;
46866
+ printed_at: string | null;
46867
+ printed_by: string | null;
46868
+ printed_cart_ids: import("../integrations/supabase/types").Json;
46283
46869
  printer_id: string | null;
46284
46870
  priority: number;
46285
46871
  reference: string | null;
@@ -46392,6 +46978,66 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
46392
46978
  };
46393
46979
  Returns: undefined;
46394
46980
  };
46981
+ planning_cancel_item: {
46982
+ Args: {
46983
+ _id: string;
46984
+ };
46985
+ Returns: undefined;
46986
+ };
46987
+ planning_list: {
46988
+ Args: {
46989
+ _from: string;
46990
+ _to: string;
46991
+ };
46992
+ Returns: {
46993
+ assigned_monteur_id: string | null;
46994
+ assistants: import("../integrations/supabase/types").Json | null;
46995
+ budget_mandate_cents: number | null;
46996
+ created_at: string | null;
46997
+ created_by: string | null;
46998
+ customer_id: string | null;
46999
+ customer_name: string | null;
47000
+ duration_minutes: number | null;
47001
+ end_at: string | null;
47002
+ id: string | null;
47003
+ needs_detail_review: boolean | null;
47004
+ notes: string | null;
47005
+ project_number: string | null;
47006
+ review_reasons: string[] | null;
47007
+ start_at: string | null;
47008
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
47009
+ updated_at: string | null;
47010
+ viewer_role: string | null;
47011
+ werkbon_id: string | null;
47012
+ work_address: string | null;
47013
+ }[];
47014
+ SetofOptions: {
47015
+ from: "*";
47016
+ to: "planning_overview";
47017
+ isOneToOne: false;
47018
+ isSetofReturn: true;
47019
+ };
47020
+ };
47021
+ planning_set_assistants: {
47022
+ Args: {
47023
+ _monteur_ids: string[];
47024
+ _planning_item_id: string;
47025
+ };
47026
+ Returns: undefined;
47027
+ };
47028
+ planning_upsert_item: {
47029
+ Args: {
47030
+ _assigned_monteur_id: string;
47031
+ _end_at: string;
47032
+ _notes?: string;
47033
+ _start_at: string;
47034
+ _werkbon_id: string;
47035
+ };
47036
+ Returns: {
47037
+ action: string;
47038
+ id: string;
47039
+ }[];
47040
+ };
46395
47041
  print_preview_toestaan: {
46396
47042
  Args: {
46397
47043
  _max?: number;
@@ -46973,6 +47619,26 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
46973
47619
  };
46974
47620
  Returns: string[];
46975
47621
  };
47622
+ start_time_log_at: {
47623
+ Args: {
47624
+ p_clicked_at?: string;
47625
+ p_employee_id: string;
47626
+ p_start_lat?: number;
47627
+ p_start_lng?: number;
47628
+ p_type: string;
47629
+ p_work_order_id?: string;
47630
+ };
47631
+ Returns: import("../integrations/supabase/types").Json;
47632
+ };
47633
+ stop_time_log: {
47634
+ Args: {
47635
+ p_employee_id: string;
47636
+ p_end_lat?: number;
47637
+ p_end_lng?: number;
47638
+ p_end_time: string;
47639
+ };
47640
+ Returns: import("../integrations/supabase/types").Json;
47641
+ };
46976
47642
  switch_time_log: {
46977
47643
  Args: {
46978
47644
  p_employee_id: string;