@flowselections/logistiek-engine 1.0.24 → 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 (56) 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/LogistiekEnginePage.d.ts.map +1 -1
  6. package/dist-lib/components/LogistiekEnginePage.js +8 -2
  7. package/dist-lib/components/ModulePromptsPage.d.ts.map +1 -1
  8. package/dist-lib/components/ModulePromptsPage.js +11 -3
  9. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  10. package/dist-lib/components/RegiePage.js +3 -2
  11. package/dist-lib/index.d.ts +1 -0
  12. package/dist-lib/index.d.ts.map +1 -1
  13. package/dist-lib/index.js +1 -0
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1333 -775
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.server.d.ts +1333 -775
  17. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.js +1 -1
  19. package/dist-lib/integrations/supabase/moduleClient.d.ts +1333 -775
  20. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +1346 -806
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/lib/floridayDocuments.functions.d.ts +3510 -1836
  24. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floridayPush.functions.d.ts +1333 -775
  26. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  28. package/dist-lib/lib/handlers/logistics-tick.server.js +11 -0
  29. package/dist-lib/lib/loadCarrierPlanner.d.ts +6 -0
  30. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  31. package/dist-lib/lib/loadCarrierPlanner.js +3 -0
  32. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5855 -3090
  33. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  35. package/dist-lib/lib/loadCarrierPlanning.server.js +3 -0
  36. package/dist-lib/lib/logisticsPlanner.d.ts +2 -0
  37. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  38. package/dist-lib/lib/logisticsPlanner.js +52 -13
  39. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2340 -1224
  40. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1333 -775
  42. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/modulePrompts.d.ts +19 -3
  44. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  45. package/dist-lib/lib/modulePrompts.js +1664 -1141
  46. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  47. package/dist-lib/lib/ruleEngineSchema.js +21 -4
  48. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  49. package/dist-lib/lib/ruleEngineWizard.js +3 -1
  50. package/package.json +1 -1
  51. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +0 -2
  52. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +0 -1
  53. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +0 -41
  54. package/dist-lib/integrations/supabase/client.d.ts +0 -20293
  55. package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
  56. package/dist-lib/integrations/supabase/client.js +0 -13
@@ -2851,6 +2851,84 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2851
2851
  };
2852
2852
  Relationships: [];
2853
2853
  };
2854
+ delivery_notes: {
2855
+ Row: {
2856
+ byte_size: number | null;
2857
+ connection_id: string | null;
2858
+ content_type: string;
2859
+ created_at: string;
2860
+ error_message: string | null;
2861
+ fetched_at: string | null;
2862
+ fulfillment_order_id: string | null;
2863
+ http_status: number | null;
2864
+ id: string;
2865
+ label_code: string | null;
2866
+ letter: string | null;
2867
+ load_carrier_index: number | null;
2868
+ load_carrier_type: string | null;
2869
+ order_id: string | null;
2870
+ order_number: string | null;
2871
+ packages: number | null;
2872
+ source: string;
2873
+ status: string;
2874
+ storage_bucket: string;
2875
+ storage_path: string | null;
2876
+ updated_at: string;
2877
+ };
2878
+ Insert: {
2879
+ byte_size?: number | null;
2880
+ connection_id?: string | null;
2881
+ content_type?: string;
2882
+ created_at?: string;
2883
+ error_message?: string | null;
2884
+ fetched_at?: string | null;
2885
+ fulfillment_order_id?: string | null;
2886
+ http_status?: number | null;
2887
+ id?: string;
2888
+ label_code?: string | null;
2889
+ letter?: string | null;
2890
+ load_carrier_index?: number | null;
2891
+ load_carrier_type?: string | null;
2892
+ order_id?: string | null;
2893
+ order_number?: string | null;
2894
+ packages?: number | null;
2895
+ source?: string;
2896
+ status?: string;
2897
+ storage_bucket?: string;
2898
+ storage_path?: string | null;
2899
+ updated_at?: string;
2900
+ };
2901
+ Update: {
2902
+ byte_size?: number | null;
2903
+ connection_id?: string | null;
2904
+ content_type?: string;
2905
+ created_at?: string;
2906
+ error_message?: string | null;
2907
+ fetched_at?: string | null;
2908
+ fulfillment_order_id?: string | null;
2909
+ http_status?: number | null;
2910
+ id?: string;
2911
+ label_code?: string | null;
2912
+ letter?: string | null;
2913
+ load_carrier_index?: number | null;
2914
+ load_carrier_type?: string | null;
2915
+ order_id?: string | null;
2916
+ order_number?: string | null;
2917
+ packages?: number | null;
2918
+ source?: string;
2919
+ status?: string;
2920
+ storage_bucket?: string;
2921
+ storage_path?: string | null;
2922
+ updated_at?: string;
2923
+ };
2924
+ Relationships: [{
2925
+ foreignKeyName: "delivery_notes_order_id_fkey";
2926
+ columns: ["order_id"];
2927
+ isOneToOne: false;
2928
+ referencedRelation: "orders";
2929
+ referencedColumns: ["id"];
2930
+ }];
2931
+ };
2854
2932
  document_bronregels: {
2855
2933
  Row: {
2856
2934
  bron: string;
@@ -5904,10 +5982,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5904
5982
  };
5905
5983
  floriday_connections: {
5906
5984
  Row: {
5907
- access_token: string | null;
5908
5985
  api_key: string;
5909
- client_id: string;
5910
- client_secret: string;
5911
5986
  created_at: string;
5912
5987
  customers_endpoint: string | null;
5913
5988
  environment: string;
@@ -5922,10 +5997,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5922
5997
  updated_at: string;
5923
5998
  };
5924
5999
  Insert: {
5925
- access_token?: string | null;
5926
6000
  api_key: string;
5927
- client_id: string;
5928
- client_secret: string;
5929
6001
  created_at?: string;
5930
6002
  customers_endpoint?: string | null;
5931
6003
  environment: string;
@@ -5940,10 +6012,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5940
6012
  updated_at?: string;
5941
6013
  };
5942
6014
  Update: {
5943
- access_token?: string | null;
5944
6015
  api_key?: string;
5945
- client_id?: string;
5946
- client_secret?: string;
5947
6016
  created_at?: string;
5948
6017
  customers_endpoint?: string | null;
5949
6018
  environment?: string;
@@ -6027,6 +6096,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6027
6096
  attempts: number;
6028
6097
  connection_id: string;
6029
6098
  created_at: string;
6099
+ dead_lettered_at: string | null;
6030
6100
  desired_available: boolean | null;
6031
6101
  gateway_attempt_id: string | null;
6032
6102
  id: string;
@@ -6035,9 +6105,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6035
6105
  locked_by: string | null;
6036
6106
  next_attempt_at: string;
6037
6107
  number_of_pieces: number;
6108
+ product_id: string | null;
6038
6109
  sent_at: string | null;
6039
6110
  status: string;
6111
+ stock_mode: string | null;
6040
6112
  superseded_by: string | null;
6113
+ target_week: number | null;
6114
+ target_year: number | null;
6041
6115
  trade_item_id: string;
6042
6116
  updated_at: string;
6043
6117
  user_id: string;
@@ -6046,6 +6120,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6046
6120
  attempts?: number;
6047
6121
  connection_id: string;
6048
6122
  created_at?: string;
6123
+ dead_lettered_at?: string | null;
6049
6124
  desired_available?: boolean | null;
6050
6125
  gateway_attempt_id?: string | null;
6051
6126
  id?: string;
@@ -6054,9 +6129,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6054
6129
  locked_by?: string | null;
6055
6130
  next_attempt_at?: string;
6056
6131
  number_of_pieces?: number;
6132
+ product_id?: string | null;
6057
6133
  sent_at?: string | null;
6058
6134
  status?: string;
6135
+ stock_mode?: string | null;
6059
6136
  superseded_by?: string | null;
6137
+ target_week?: number | null;
6138
+ target_year?: number | null;
6060
6139
  trade_item_id: string;
6061
6140
  updated_at?: string;
6062
6141
  user_id: string;
@@ -6065,6 +6144,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6065
6144
  attempts?: number;
6066
6145
  connection_id?: string;
6067
6146
  created_at?: string;
6147
+ dead_lettered_at?: string | null;
6068
6148
  desired_available?: boolean | null;
6069
6149
  gateway_attempt_id?: string | null;
6070
6150
  id?: string;
@@ -6073,9 +6153,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6073
6153
  locked_by?: string | null;
6074
6154
  next_attempt_at?: string;
6075
6155
  number_of_pieces?: number;
6156
+ product_id?: string | null;
6076
6157
  sent_at?: string | null;
6077
6158
  status?: string;
6159
+ stock_mode?: string | null;
6078
6160
  superseded_by?: string | null;
6161
+ target_week?: number | null;
6162
+ target_year?: number | null;
6079
6163
  trade_item_id?: string;
6080
6164
  updated_at?: string;
6081
6165
  user_id?: string;
@@ -6484,6 +6568,87 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6484
6568
  referencedColumns: ["id"];
6485
6569
  }];
6486
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
+ };
6487
6652
  floriday_invoices_cache: {
6488
6653
  Row: {
6489
6654
  buyer_organization_id: string | null;
@@ -6772,6 +6937,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6772
6937
  };
6773
6938
  Relationships: [];
6774
6939
  };
6940
+ floriday_sales_order_ingest: {
6941
+ Row: {
6942
+ connection_id: string;
6943
+ created_at: string;
6944
+ id: string;
6945
+ impact: import("./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("./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("./types").Json;
6966
+ order_status?: string | null;
6967
+ order_version?: number;
6968
+ processed_at?: string;
6969
+ sales_order_id?: string;
6970
+ };
6971
+ Relationships: [];
6972
+ };
6775
6973
  floriday_sales_strategies_cache: {
6776
6974
  Row: {
6777
6975
  connection_id: string;
@@ -6871,6 +7069,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6871
7069
  };
6872
7070
  Relationships: [];
6873
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
+ };
6874
7105
  floriday_sync_state: {
6875
7106
  Row: {
6876
7107
  connection_id: string;
@@ -7561,6 +7792,42 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7561
7792
  };
7562
7793
  Relationships: [];
7563
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
+ };
7564
7831
  invoice_items: {
7565
7832
  Row: {
7566
7833
  created_at: string;
@@ -8069,13 +8336,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8069
8336
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8070
8337
  updated_at?: string;
8071
8338
  };
8072
- Relationships: [{
8073
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8074
- columns: ["legacy_customer_id"];
8075
- isOneToOne: false;
8076
- referencedRelation: "customers";
8077
- referencedColumns: ["id"];
8078
- }];
8339
+ Relationships: [];
8079
8340
  };
8080
8341
  itk_dynamic_fields: {
8081
8342
  Row: {
@@ -8107,104 +8368,278 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8107
8368
  };
8108
8369
  Relationships: [];
8109
8370
  };
8110
- itk_offerte_events: {
8371
+ itk_handover_rechten: {
8111
8372
  Row: {
8112
8373
  created_at: string;
8113
- event_type: string;
8114
8374
  id: string;
8115
- metadata: import("./types").Json;
8116
- offerte_id: string;
8117
- omschrijving: string | null;
8375
+ module_id: string;
8376
+ rol: Database["public"]["Enums"]["app_role"] | null;
8377
+ updated_at: string;
8118
8378
  user_id: string | null;
8119
8379
  };
8120
8380
  Insert: {
8121
8381
  created_at?: string;
8122
- event_type: string;
8123
8382
  id?: string;
8124
- metadata?: import("./types").Json;
8125
- offerte_id: string;
8126
- omschrijving?: string | null;
8383
+ module_id: string;
8384
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8385
+ updated_at?: string;
8127
8386
  user_id?: string | null;
8128
8387
  };
8129
8388
  Update: {
8130
8389
  created_at?: string;
8131
- event_type?: string;
8132
8390
  id?: string;
8133
- metadata?: import("./types").Json;
8134
- offerte_id?: string;
8135
- omschrijving?: string | null;
8391
+ module_id?: string;
8392
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8393
+ updated_at?: string;
8136
8394
  user_id?: string | null;
8137
8395
  };
8138
- Relationships: [{
8139
- foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8140
- columns: ["offerte_id"];
8141
- isOneToOne: false;
8142
- referencedRelation: "itk_offertes";
8143
- referencedColumns: ["id"];
8144
- }];
8396
+ Relationships: [];
8145
8397
  };
8146
- itk_offerte_regels: {
8398
+ itk_handover_tokens: {
8147
8399
  Row: {
8400
+ aangemaakt_door: string | null;
8148
8401
  created_at: string;
8149
8402
  id: string;
8150
- line_total_cents: number;
8151
- offerte_id: string;
8152
- omschrijving: string;
8153
- package_id: string | null;
8154
- quantity: number;
8155
- sort_order: number;
8156
- source: string;
8157
- unit_price_cents: number;
8403
+ is_actief: boolean;
8404
+ laatst_gebruikt_op: string | null;
8405
+ label: string;
8406
+ module_id: string;
8407
+ token_hash: string;
8158
8408
  updated_at: string;
8409
+ verloopt_op: string | null;
8159
8410
  };
8160
8411
  Insert: {
8412
+ aangemaakt_door?: string | null;
8161
8413
  created_at?: string;
8162
8414
  id?: string;
8163
- line_total_cents?: number;
8164
- offerte_id: string;
8165
- omschrijving?: string;
8166
- package_id?: string | null;
8167
- quantity?: number;
8168
- sort_order?: number;
8169
- source?: string;
8170
- unit_price_cents?: number;
8415
+ is_actief?: boolean;
8416
+ laatst_gebruikt_op?: string | null;
8417
+ label?: string;
8418
+ module_id: string;
8419
+ token_hash: string;
8171
8420
  updated_at?: string;
8421
+ verloopt_op?: string | null;
8172
8422
  };
8173
8423
  Update: {
8424
+ aangemaakt_door?: string | null;
8174
8425
  created_at?: string;
8175
8426
  id?: string;
8176
- line_total_cents?: number;
8177
- offerte_id?: string;
8178
- omschrijving?: string;
8179
- package_id?: string | null;
8180
- quantity?: number;
8181
- sort_order?: number;
8182
- source?: string;
8183
- unit_price_cents?: number;
8427
+ is_actief?: boolean;
8428
+ laatst_gebruikt_op?: string | null;
8429
+ label?: string;
8430
+ module_id?: string;
8431
+ token_hash?: string;
8184
8432
  updated_at?: string;
8433
+ verloopt_op?: string | null;
8185
8434
  };
8186
- Relationships: [{
8187
- foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8188
- columns: ["offerte_id"];
8189
- isOneToOne: false;
8190
- referencedRelation: "itk_offertes";
8191
- referencedColumns: ["id"];
8192
- }, {
8193
- foreignKeyName: "itk_offerte_regels_package_id_fkey";
8194
- columns: ["package_id"];
8195
- isOneToOne: false;
8196
- referencedRelation: "werkbon_packages";
8197
- referencedColumns: ["id"];
8198
- }];
8435
+ Relationships: [];
8199
8436
  };
8200
- itk_offerte_settings: {
8437
+ itk_module_handovers: {
8201
8438
  Row: {
8202
- auto_convert_binnen_mandaat: boolean;
8439
+ bevindingen: string | null;
8440
+ bezit_tabellen: string[];
8441
+ conflicten_snapshot: import("./types").Json;
8442
+ contractfuncties: string[];
8203
8443
  created_at: string;
8204
- default_geldigheid_dagen: number;
8205
- default_vat_rate: number;
8444
+ eigenaar_module_id: string | null;
8445
+ gepubliceerd_door: string | null;
8446
+ gepubliceerd_op: string;
8447
+ herzieningstermijn_dagen: number;
8206
8448
  id: string;
8207
- singleton: boolean;
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("./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("./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
+ };
8545
+ itk_offerte_events: {
8546
+ Row: {
8547
+ created_at: string;
8548
+ event_type: string;
8549
+ id: string;
8550
+ metadata: import("./types").Json;
8551
+ offerte_id: string;
8552
+ omschrijving: string | null;
8553
+ user_id: string | null;
8554
+ };
8555
+ Insert: {
8556
+ created_at?: string;
8557
+ event_type: string;
8558
+ id?: string;
8559
+ metadata?: import("./types").Json;
8560
+ offerte_id: string;
8561
+ omschrijving?: string | null;
8562
+ user_id?: string | null;
8563
+ };
8564
+ Update: {
8565
+ created_at?: string;
8566
+ event_type?: string;
8567
+ id?: string;
8568
+ metadata?: import("./types").Json;
8569
+ offerte_id?: string;
8570
+ omschrijving?: string | null;
8571
+ user_id?: string | null;
8572
+ };
8573
+ Relationships: [{
8574
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8575
+ columns: ["offerte_id"];
8576
+ isOneToOne: false;
8577
+ referencedRelation: "itk_offertes";
8578
+ referencedColumns: ["id"];
8579
+ }];
8580
+ };
8581
+ itk_offerte_regels: {
8582
+ Row: {
8583
+ created_at: string;
8584
+ id: string;
8585
+ line_total_cents: number;
8586
+ offerte_id: string;
8587
+ omschrijving: string;
8588
+ package_id: string | null;
8589
+ quantity: number;
8590
+ sort_order: number;
8591
+ source: string;
8592
+ unit_price_cents: number;
8593
+ updated_at: string;
8594
+ };
8595
+ Insert: {
8596
+ created_at?: string;
8597
+ id?: string;
8598
+ line_total_cents?: number;
8599
+ offerte_id: string;
8600
+ omschrijving?: string;
8601
+ package_id?: string | null;
8602
+ quantity?: number;
8603
+ sort_order?: number;
8604
+ source?: string;
8605
+ unit_price_cents?: number;
8606
+ updated_at?: string;
8607
+ };
8608
+ Update: {
8609
+ created_at?: string;
8610
+ id?: string;
8611
+ line_total_cents?: number;
8612
+ offerte_id?: string;
8613
+ omschrijving?: string;
8614
+ package_id?: string | null;
8615
+ quantity?: number;
8616
+ sort_order?: number;
8617
+ source?: string;
8618
+ unit_price_cents?: number;
8619
+ updated_at?: string;
8620
+ };
8621
+ Relationships: [{
8622
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8623
+ columns: ["offerte_id"];
8624
+ isOneToOne: false;
8625
+ referencedRelation: "itk_offertes";
8626
+ referencedColumns: ["id"];
8627
+ }, {
8628
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8629
+ columns: ["package_id"];
8630
+ isOneToOne: false;
8631
+ referencedRelation: "werkbon_packages";
8632
+ referencedColumns: ["id"];
8633
+ }];
8634
+ };
8635
+ itk_offerte_settings: {
8636
+ Row: {
8637
+ auto_convert_binnen_mandaat: boolean;
8638
+ created_at: string;
8639
+ default_geldigheid_dagen: number;
8640
+ default_vat_rate: number;
8641
+ id: string;
8642
+ singleton: boolean;
8208
8643
  updated_at: string;
8209
8644
  };
8210
8645
  Insert: {
@@ -8965,6 +9400,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8965
9400
  };
8966
9401
  Relationships: [];
8967
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
+ };
8968
9424
  logistics_decisions: {
8969
9425
  Row: {
8970
9426
  created_at: string;
@@ -9793,6 +10249,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9793
10249
  referencedColumns: ["id"];
9794
10250
  }];
9795
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
+ };
9796
10282
  logistics_staff_planning: {
9797
10283
  Row: {
9798
10284
  created_at: string;
@@ -12614,6 +13100,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12614
13100
  print_job_id: string | null;
12615
13101
  printed_at: string | null;
12616
13102
  printed_by: string | null;
13103
+ printed_cart_ids: import("./types").Json;
12617
13104
  printer_id: string | null;
12618
13105
  priority: number;
12619
13106
  reference: string | null;
@@ -12648,6 +13135,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12648
13135
  print_job_id?: string | null;
12649
13136
  printed_at?: string | null;
12650
13137
  printed_by?: string | null;
13138
+ printed_cart_ids?: import("./types").Json;
12651
13139
  printer_id?: string | null;
12652
13140
  priority?: number;
12653
13141
  reference?: string | null;
@@ -12682,6 +13170,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12682
13170
  print_job_id?: string | null;
12683
13171
  printed_at?: string | null;
12684
13172
  printed_by?: string | null;
13173
+ printed_cart_ids?: import("./types").Json;
12685
13174
  printer_id?: string | null;
12686
13175
  priority?: number;
12687
13176
  reference?: string | null;
@@ -13481,6 +13970,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13481
13970
  isOneToOne: false;
13482
13971
  referencedRelation: "planning_items";
13483
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"];
13484
13979
  }];
13485
13980
  };
13486
13981
  planning_items: {
@@ -13659,6 +14154,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13659
14154
  is_herprint: boolean;
13660
14155
  kopieen: number;
13661
14156
  layout_id: string | null;
14157
+ lokaal_opgeslagen_op: string | null;
14158
+ lokale_pdf_fout: string | null;
14159
+ lokale_pdf_status: string | null;
13662
14160
  opgepakt_op: string | null;
13663
14161
  paginas: number;
13664
14162
  payload: import("./types").Json;
@@ -13667,6 +14165,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13667
14165
  pogingen: number;
13668
14166
  printer_id: string | null;
13669
14167
  render_html: string | null;
14168
+ resultaat_pdf_base64: string | null;
13670
14169
  status: Database["public"]["Enums"]["print_job_status"];
13671
14170
  updated_at: string;
13672
14171
  volgende_poging: string | null;
@@ -13691,6 +14190,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13691
14190
  is_herprint?: boolean;
13692
14191
  kopieen?: number;
13693
14192
  layout_id?: string | null;
14193
+ lokaal_opgeslagen_op?: string | null;
14194
+ lokale_pdf_fout?: string | null;
14195
+ lokale_pdf_status?: string | null;
13694
14196
  opgepakt_op?: string | null;
13695
14197
  paginas?: number;
13696
14198
  payload?: import("./types").Json;
@@ -13699,6 +14201,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13699
14201
  pogingen?: number;
13700
14202
  printer_id?: string | null;
13701
14203
  render_html?: string | null;
14204
+ resultaat_pdf_base64?: string | null;
13702
14205
  status?: Database["public"]["Enums"]["print_job_status"];
13703
14206
  updated_at?: string;
13704
14207
  volgende_poging?: string | null;
@@ -13723,6 +14226,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13723
14226
  is_herprint?: boolean;
13724
14227
  kopieen?: number;
13725
14228
  layout_id?: string | null;
14229
+ lokaal_opgeslagen_op?: string | null;
14230
+ lokale_pdf_fout?: string | null;
14231
+ lokale_pdf_status?: string | null;
13726
14232
  opgepakt_op?: string | null;
13727
14233
  paginas?: number;
13728
14234
  payload?: import("./types").Json;
@@ -13731,6 +14237,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13731
14237
  pogingen?: number;
13732
14238
  printer_id?: string | null;
13733
14239
  render_html?: string | null;
14240
+ resultaat_pdf_base64?: string | null;
13734
14241
  status?: Database["public"]["Enums"]["print_job_status"];
13735
14242
  updated_at?: string;
13736
14243
  volgende_poging?: string | null;
@@ -14121,6 +14628,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14121
14628
  ondersteunde_laden: import("./types").Json | null;
14122
14629
  online: boolean;
14123
14630
  papierformaat: string;
14631
+ pdf_map: string | null;
14124
14632
  poort: number | null;
14125
14633
  soort: Database["public"]["Enums"]["printer_kind"];
14126
14634
  systeemnaam: string;
@@ -14146,6 +14654,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14146
14654
  ondersteunde_laden?: import("./types").Json | null;
14147
14655
  online?: boolean;
14148
14656
  papierformaat?: string;
14657
+ pdf_map?: string | null;
14149
14658
  poort?: number | null;
14150
14659
  soort?: Database["public"]["Enums"]["printer_kind"];
14151
14660
  systeemnaam?: string;
@@ -14171,6 +14680,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14171
14680
  ondersteunde_laden?: import("./types").Json | null;
14172
14681
  online?: boolean;
14173
14682
  papierformaat?: string;
14683
+ pdf_map?: string | null;
14174
14684
  poort?: number | null;
14175
14685
  soort?: Database["public"]["Enums"]["printer_kind"];
14176
14686
  systeemnaam?: string;
@@ -15043,539 +15553,95 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15043
15553
  referencedColumns: ["id"];
15044
15554
  }];
15045
15555
  };
15046
- quote_activities: {
15556
+ reception_notifications: {
15047
15557
  Row: {
15558
+ booking_id: string | null;
15048
15559
  created_at: string;
15049
- event_type: string;
15050
15560
  id: string;
15051
- metadata: import("./types").Json;
15052
- quote_id: string;
15053
- user_id: string | null;
15561
+ is_read: boolean;
15562
+ message: string;
15563
+ recipient_email: string | null;
15564
+ title: string;
15565
+ type: string;
15054
15566
  };
15055
15567
  Insert: {
15568
+ booking_id?: string | null;
15056
15569
  created_at?: string;
15057
- event_type: string;
15058
15570
  id?: string;
15059
- metadata?: import("./types").Json;
15060
- quote_id: string;
15061
- user_id?: string | null;
15571
+ is_read?: boolean;
15572
+ message: string;
15573
+ recipient_email?: string | null;
15574
+ title: string;
15575
+ type: string;
15062
15576
  };
15063
15577
  Update: {
15578
+ booking_id?: string | null;
15064
15579
  created_at?: string;
15065
- event_type?: string;
15066
15580
  id?: string;
15067
- metadata?: import("./types").Json;
15068
- quote_id?: string;
15069
- user_id?: string | null;
15581
+ is_read?: boolean;
15582
+ message?: string;
15583
+ recipient_email?: string | null;
15584
+ title?: string;
15585
+ type?: string;
15070
15586
  };
15071
15587
  Relationships: [{
15072
- foreignKeyName: "quote_activities_quote_id_fkey";
15073
- columns: ["quote_id"];
15588
+ foreignKeyName: "reception_notifications_booking_id_fkey";
15589
+ columns: ["booking_id"];
15074
15590
  isOneToOne: false;
15075
- referencedRelation: "quotes";
15591
+ referencedRelation: "bookings";
15076
15592
  referencedColumns: ["id"];
15077
15593
  }];
15078
15594
  };
15079
- quote_attachments: {
15595
+ role_assignments: {
15080
15596
  Row: {
15081
15597
  created_at: string;
15082
- file_name: string;
15083
- file_size: number | null;
15084
- file_url: string;
15085
15598
  id: string;
15086
- mime_type: string | null;
15087
- quote_id: string;
15599
+ role_id: string;
15600
+ user_id: string;
15088
15601
  };
15089
15602
  Insert: {
15090
15603
  created_at?: string;
15091
- file_name: string;
15092
- file_size?: number | null;
15093
- file_url: string;
15094
15604
  id?: string;
15095
- mime_type?: string | null;
15096
- quote_id: string;
15605
+ role_id: string;
15606
+ user_id: string;
15097
15607
  };
15098
15608
  Update: {
15099
15609
  created_at?: string;
15100
- file_name?: string;
15101
- file_size?: number | null;
15102
- file_url?: string;
15103
15610
  id?: string;
15104
- mime_type?: string | null;
15105
- quote_id?: string;
15611
+ role_id?: string;
15612
+ user_id?: string;
15106
15613
  };
15107
15614
  Relationships: [{
15108
- foreignKeyName: "quote_attachments_quote_id_fkey";
15109
- columns: ["quote_id"];
15615
+ foreignKeyName: "role_assignments_role_id_fkey";
15616
+ columns: ["role_id"];
15110
15617
  isOneToOne: false;
15111
- referencedRelation: "quotes";
15618
+ referencedRelation: "roles";
15112
15619
  referencedColumns: ["id"];
15113
15620
  }];
15114
15621
  };
15115
- quote_field_options: {
15622
+ role_permissions: {
15116
15623
  Row: {
15117
- created_at: string;
15118
- field_id: string;
15624
+ can_edit: boolean;
15625
+ can_view: boolean;
15626
+ feature_id: string;
15119
15627
  id: string;
15120
- label: string;
15121
- sort_order: number;
15122
- value: string;
15628
+ module_id: string;
15629
+ role_id: string;
15630
+ updated_at: string;
15123
15631
  };
15124
15632
  Insert: {
15125
- created_at?: string;
15126
- field_id: string;
15633
+ can_edit?: boolean;
15634
+ can_view?: boolean;
15635
+ feature_id?: string;
15127
15636
  id?: string;
15128
- label: string;
15129
- sort_order?: number;
15130
- value: string;
15637
+ module_id: string;
15638
+ role_id: string;
15639
+ updated_at?: string;
15131
15640
  };
15132
15641
  Update: {
15133
- created_at?: string;
15134
- field_id?: string;
15135
- id?: string;
15136
- label?: string;
15137
- sort_order?: number;
15138
- value?: string;
15139
- };
15140
- Relationships: [{
15141
- foreignKeyName: "quote_field_options_field_id_fkey";
15142
- columns: ["field_id"];
15143
- isOneToOne: false;
15144
- referencedRelation: "quote_field_settings";
15145
- referencedColumns: ["id"];
15146
- }];
15147
- };
15148
- quote_field_settings: {
15149
- Row: {
15150
- created_at: string;
15151
- default_value: string | null;
15152
- field_key: string;
15153
- field_type: string;
15154
- id: string;
15155
- is_system: boolean;
15156
- label: string;
15157
- required: boolean;
15158
- sort_order: number;
15159
- updated_at: string;
15160
- visible: boolean;
15161
- };
15162
- Insert: {
15163
- created_at?: string;
15164
- default_value?: string | null;
15165
- field_key: string;
15166
- field_type: string;
15167
- id?: string;
15168
- is_system?: boolean;
15169
- label: string;
15170
- required?: boolean;
15171
- sort_order?: number;
15172
- updated_at?: string;
15173
- visible?: boolean;
15174
- };
15175
- Update: {
15176
- created_at?: string;
15177
- default_value?: string | null;
15178
- field_key?: string;
15179
- field_type?: string;
15180
- id?: string;
15181
- is_system?: boolean;
15182
- label?: string;
15183
- required?: boolean;
15184
- sort_order?: number;
15185
- updated_at?: string;
15186
- visible?: boolean;
15187
- };
15188
- Relationships: [];
15189
- };
15190
- quote_items: {
15191
- Row: {
15192
- category: string | null;
15193
- created_at: string;
15194
- description: string;
15195
- id: string;
15196
- line_total: number;
15197
- module_id: string | null;
15198
- name: string | null;
15199
- quantity: number;
15200
- quote_id: string;
15201
- sort_order: number;
15202
- unit_price: number;
15203
- };
15204
- Insert: {
15205
- category?: string | null;
15206
- created_at?: string;
15207
- description?: string;
15208
- id?: string;
15209
- line_total?: number;
15210
- module_id?: string | null;
15211
- name?: string | null;
15212
- quantity?: number;
15213
- quote_id: string;
15214
- sort_order?: number;
15215
- unit_price?: number;
15216
- };
15217
- Update: {
15218
- category?: string | null;
15219
- created_at?: string;
15220
- description?: string;
15221
- id?: string;
15222
- line_total?: number;
15223
- module_id?: string | null;
15224
- name?: string | null;
15225
- quantity?: number;
15226
- quote_id?: string;
15227
- sort_order?: number;
15228
- unit_price?: number;
15229
- };
15230
- Relationships: [{
15231
- foreignKeyName: "quote_items_module_id_fkey";
15232
- columns: ["module_id"];
15233
- isOneToOne: false;
15234
- referencedRelation: "quote_modules";
15235
- referencedColumns: ["id"];
15236
- }, {
15237
- foreignKeyName: "quote_items_quote_id_fkey";
15238
- columns: ["quote_id"];
15239
- isOneToOne: false;
15240
- referencedRelation: "quotes";
15241
- referencedColumns: ["id"];
15242
- }];
15243
- };
15244
- quote_modules: {
15245
- Row: {
15246
- category: string | null;
15247
- created_at: string;
15248
- description: string | null;
15249
- id: string;
15250
- is_active: boolean;
15251
- name: string;
15252
- price: number;
15253
- sort_order: number;
15254
- updated_at: string;
15255
- };
15256
- Insert: {
15257
- category?: string | null;
15258
- created_at?: string;
15259
- description?: string | null;
15260
- id?: string;
15261
- is_active?: boolean;
15262
- name: string;
15263
- price?: number;
15264
- sort_order?: number;
15265
- updated_at?: string;
15266
- };
15267
- Update: {
15268
- category?: string | null;
15269
- created_at?: string;
15270
- description?: string | null;
15271
- id?: string;
15272
- is_active?: boolean;
15273
- name?: string;
15274
- price?: number;
15275
- sort_order?: number;
15276
- updated_at?: string;
15277
- };
15278
- Relationships: [];
15279
- };
15280
- quote_templates: {
15281
- Row: {
15282
- created_at: string;
15283
- description: string | null;
15284
- field_values: import("./types").Json;
15285
- id: string;
15286
- is_default: boolean;
15287
- items: import("./types").Json;
15288
- name: string;
15289
- updated_at: string;
15290
- vat_rate: number;
15291
- };
15292
- Insert: {
15293
- created_at?: string;
15294
- description?: string | null;
15295
- field_values?: import("./types").Json;
15296
- id?: string;
15297
- is_default?: boolean;
15298
- items?: import("./types").Json;
15299
- name: string;
15300
- updated_at?: string;
15301
- vat_rate?: number;
15302
- };
15303
- Update: {
15304
- created_at?: string;
15305
- description?: string | null;
15306
- field_values?: import("./types").Json;
15307
- id?: string;
15308
- is_default?: boolean;
15309
- items?: import("./types").Json;
15310
- name?: string;
15311
- updated_at?: string;
15312
- vat_rate?: number;
15313
- };
15314
- Relationships: [];
15315
- };
15316
- quote_terms: {
15317
- Row: {
15318
- content: string | null;
15319
- created_at: string;
15320
- file_url: string | null;
15321
- id: string;
15322
- is_active: boolean;
15323
- name: string;
15324
- published_at: string | null;
15325
- updated_at: string;
15326
- version: string;
15327
- };
15328
- Insert: {
15329
- content?: string | null;
15330
- created_at?: string;
15331
- file_url?: string | null;
15332
- id?: string;
15333
- is_active?: boolean;
15334
- name: string;
15335
- published_at?: string | null;
15336
- updated_at?: string;
15337
- version?: string;
15338
- };
15339
- Update: {
15340
- content?: string | null;
15341
- created_at?: string;
15342
- file_url?: string | null;
15343
- id?: string;
15344
- is_active?: boolean;
15345
- name?: string;
15346
- published_at?: string | null;
15347
- updated_at?: string;
15348
- version?: string;
15349
- };
15350
- Relationships: [];
15351
- };
15352
- quotes: {
15353
- Row: {
15354
- accepted_at: string | null;
15355
- archived_at: string | null;
15356
- contact_id: string | null;
15357
- created_at: string;
15358
- customer_id: string | null;
15359
- discount: number;
15360
- expires_at: string | null;
15361
- field_values: import("./types").Json;
15362
- id: string;
15363
- notes: string | null;
15364
- owner_id: string | null;
15365
- personal_message: string | null;
15366
- project_id: string | null;
15367
- prospect_id: string | null;
15368
- public_token: string;
15369
- quote_number: string | null;
15370
- recipient_email: string | null;
15371
- recipient_name: string | null;
15372
- rejected_at: string | null;
15373
- sent_at: string | null;
15374
- status: string;
15375
- subtotal: number;
15376
- template_id: string | null;
15377
- terms_id: string | null;
15378
- title: string;
15379
- total: number;
15380
- updated_at: string;
15381
- valid_until: string | null;
15382
- vat_amount: number;
15383
- vat_rate: number;
15384
- viewed_at: string | null;
15385
- };
15386
- Insert: {
15387
- accepted_at?: string | null;
15388
- archived_at?: string | null;
15389
- contact_id?: string | null;
15390
- created_at?: string;
15391
- customer_id?: string | null;
15392
- discount?: number;
15393
- expires_at?: string | null;
15394
- field_values?: import("./types").Json;
15395
- id?: string;
15396
- notes?: string | null;
15397
- owner_id?: string | null;
15398
- personal_message?: string | null;
15399
- project_id?: string | null;
15400
- prospect_id?: string | null;
15401
- public_token?: string;
15402
- quote_number?: string | null;
15403
- recipient_email?: string | null;
15404
- recipient_name?: string | null;
15405
- rejected_at?: string | null;
15406
- sent_at?: string | null;
15407
- status?: string;
15408
- subtotal?: number;
15409
- template_id?: string | null;
15410
- terms_id?: string | null;
15411
- title?: string;
15412
- total?: number;
15413
- updated_at?: string;
15414
- valid_until?: string | null;
15415
- vat_amount?: number;
15416
- vat_rate?: number;
15417
- viewed_at?: string | null;
15418
- };
15419
- Update: {
15420
- accepted_at?: string | null;
15421
- archived_at?: string | null;
15422
- contact_id?: string | null;
15423
- created_at?: string;
15424
- customer_id?: string | null;
15425
- discount?: number;
15426
- expires_at?: string | null;
15427
- field_values?: import("./types").Json;
15428
- id?: string;
15429
- notes?: string | null;
15430
- owner_id?: string | null;
15431
- personal_message?: string | null;
15432
- project_id?: string | null;
15433
- prospect_id?: string | null;
15434
- public_token?: string;
15435
- quote_number?: string | null;
15436
- recipient_email?: string | null;
15437
- recipient_name?: string | null;
15438
- rejected_at?: string | null;
15439
- sent_at?: string | null;
15440
- status?: string;
15441
- subtotal?: number;
15442
- template_id?: string | null;
15443
- terms_id?: string | null;
15444
- title?: string;
15445
- total?: number;
15446
- updated_at?: string;
15447
- valid_until?: string | null;
15448
- vat_amount?: number;
15449
- vat_rate?: number;
15450
- viewed_at?: string | null;
15451
- };
15452
- Relationships: [{
15453
- foreignKeyName: "quotes_contact_id_fkey";
15454
- columns: ["contact_id"];
15455
- isOneToOne: false;
15456
- referencedRelation: "customer_contacts";
15457
- referencedColumns: ["id"];
15458
- }, {
15459
- foreignKeyName: "quotes_customer_id_fkey";
15460
- columns: ["customer_id"];
15461
- isOneToOne: false;
15462
- referencedRelation: "customers";
15463
- referencedColumns: ["id"];
15464
- }, {
15465
- foreignKeyName: "quotes_project_id_fkey";
15466
- columns: ["project_id"];
15467
- isOneToOne: false;
15468
- referencedRelation: "projects";
15469
- referencedColumns: ["id"];
15470
- }, {
15471
- foreignKeyName: "quotes_prospect_id_fkey";
15472
- columns: ["prospect_id"];
15473
- isOneToOne: false;
15474
- referencedRelation: "prospects";
15475
- referencedColumns: ["id"];
15476
- }, {
15477
- foreignKeyName: "quotes_template_id_fkey";
15478
- columns: ["template_id"];
15479
- isOneToOne: false;
15480
- referencedRelation: "quote_templates";
15481
- referencedColumns: ["id"];
15482
- }, {
15483
- foreignKeyName: "quotes_terms_id_fkey";
15484
- columns: ["terms_id"];
15485
- isOneToOne: false;
15486
- referencedRelation: "quote_terms";
15487
- referencedColumns: ["id"];
15488
- }];
15489
- };
15490
- reception_notifications: {
15491
- Row: {
15492
- booking_id: string | null;
15493
- created_at: string;
15494
- id: string;
15495
- is_read: boolean;
15496
- message: string;
15497
- recipient_email: string | null;
15498
- title: string;
15499
- type: string;
15500
- };
15501
- Insert: {
15502
- booking_id?: string | null;
15503
- created_at?: string;
15504
- id?: string;
15505
- is_read?: boolean;
15506
- message: string;
15507
- recipient_email?: string | null;
15508
- title: string;
15509
- type: string;
15510
- };
15511
- Update: {
15512
- booking_id?: string | null;
15513
- created_at?: string;
15514
- id?: string;
15515
- is_read?: boolean;
15516
- message?: string;
15517
- recipient_email?: string | null;
15518
- title?: string;
15519
- type?: string;
15520
- };
15521
- Relationships: [{
15522
- foreignKeyName: "reception_notifications_booking_id_fkey";
15523
- columns: ["booking_id"];
15524
- isOneToOne: false;
15525
- referencedRelation: "bookings";
15526
- referencedColumns: ["id"];
15527
- }];
15528
- };
15529
- role_assignments: {
15530
- Row: {
15531
- created_at: string;
15532
- id: string;
15533
- role_id: string;
15534
- user_id: string;
15535
- };
15536
- Insert: {
15537
- created_at?: string;
15538
- id?: string;
15539
- role_id: string;
15540
- user_id: string;
15541
- };
15542
- Update: {
15543
- created_at?: string;
15544
- id?: string;
15545
- role_id?: string;
15546
- user_id?: string;
15547
- };
15548
- Relationships: [{
15549
- foreignKeyName: "role_assignments_role_id_fkey";
15550
- columns: ["role_id"];
15551
- isOneToOne: false;
15552
- referencedRelation: "roles";
15553
- referencedColumns: ["id"];
15554
- }];
15555
- };
15556
- role_permissions: {
15557
- Row: {
15558
- can_edit: boolean;
15559
- can_view: boolean;
15560
- feature_id: string;
15561
- id: string;
15562
- module_id: string;
15563
- role_id: string;
15564
- updated_at: string;
15565
- };
15566
- Insert: {
15567
- can_edit?: boolean;
15568
- can_view?: boolean;
15569
- feature_id?: string;
15570
- id?: string;
15571
- module_id: string;
15572
- role_id: string;
15573
- updated_at?: string;
15574
- };
15575
- Update: {
15576
- can_edit?: boolean;
15577
- can_view?: boolean;
15578
- feature_id?: string;
15642
+ can_edit?: boolean;
15643
+ can_view?: boolean;
15644
+ feature_id?: string;
15579
15645
  id?: string;
15580
15646
  module_id?: string;
15581
15647
  role_id?: string;
@@ -16608,7 +16674,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16608
16674
  foreignKeyName: "time_logs_work_order_id_fkey";
16609
16675
  columns: ["work_order_id"];
16610
16676
  isOneToOne: false;
16611
- referencedRelation: "work_orders";
16677
+ referencedRelation: "werkbonnen";
16612
16678
  referencedColumns: ["id"];
16613
16679
  }];
16614
16680
  };
@@ -16740,6 +16806,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16740
16806
  };
16741
16807
  trade_item_stock: {
16742
16808
  Row: {
16809
+ change_source: string;
16743
16810
  connection_id: string;
16744
16811
  created_at: string;
16745
16812
  id: string;
@@ -16753,6 +16820,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16753
16820
  user_id: string;
16754
16821
  };
16755
16822
  Insert: {
16823
+ change_source?: string;
16756
16824
  connection_id: string;
16757
16825
  created_at?: string;
16758
16826
  id?: string;
@@ -16766,6 +16834,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16766
16834
  user_id: string;
16767
16835
  };
16768
16836
  Update: {
16837
+ change_source?: string;
16769
16838
  connection_id?: string;
16770
16839
  created_at?: string;
16771
16840
  id?: string;
@@ -17862,229 +17931,79 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17862
17931
  monteur_id: string;
17863
17932
  note: string | null;
17864
17933
  source: string;
17865
- travel_km: number;
17866
- updated_at: string;
17867
- werkbon_id: string | null;
17868
- };
17869
- Insert: {
17870
- created_at?: string;
17871
- created_by?: string | null;
17872
- entry_date: string;
17873
- hours?: number;
17874
- id?: string;
17875
- kind?: string;
17876
- monteur_id: string;
17877
- note?: string | null;
17878
- source?: string;
17879
- travel_km?: number;
17880
- updated_at?: string;
17881
- werkbon_id?: string | null;
17882
- };
17883
- Update: {
17884
- created_at?: string;
17885
- created_by?: string | null;
17886
- entry_date?: string;
17887
- hours?: number;
17888
- id?: string;
17889
- kind?: string;
17890
- monteur_id?: string;
17891
- note?: string | null;
17892
- source?: string;
17893
- travel_km?: number;
17894
- updated_at?: string;
17895
- werkbon_id?: string | null;
17896
- };
17897
- Relationships: [{
17898
- foreignKeyName: "uren_entries_werkbon_id_fkey";
17899
- columns: ["werkbon_id"];
17900
- isOneToOne: false;
17901
- referencedRelation: "werkbonnen";
17902
- referencedColumns: ["id"];
17903
- }];
17904
- };
17905
- uren_exports: {
17906
- Row: {
17907
- created_at: string;
17908
- created_by: string | null;
17909
- file_name: string | null;
17910
- id: string;
17911
- monteur_ids: string[];
17912
- period_end: string;
17913
- period_start: string;
17914
- row_count: number;
17915
- };
17916
- Insert: {
17917
- created_at?: string;
17918
- created_by?: string | null;
17919
- file_name?: string | null;
17920
- id?: string;
17921
- monteur_ids?: string[];
17922
- period_end: string;
17923
- period_start: string;
17924
- row_count?: number;
17925
- };
17926
- Update: {
17927
- created_at?: string;
17928
- created_by?: string | null;
17929
- file_name?: string | null;
17930
- id?: string;
17931
- monteur_ids?: string[];
17932
- period_end?: string;
17933
- period_start?: string;
17934
- row_count?: number;
17935
- };
17936
- Relationships: [];
17937
- };
17938
- uren_offerte_regels: {
17939
- Row: {
17940
- created_at: string;
17941
- description: string;
17942
- duration_minutes: number;
17943
- id: string;
17944
- offerte_id: string;
17945
- package_id: string | null;
17946
- quantity: number;
17947
- sort_order: number;
17948
- total_cents: number;
17949
- unit_price_cents: number;
17950
- };
17951
- Insert: {
17952
- created_at?: string;
17953
- description: string;
17954
- duration_minutes?: number;
17955
- id?: string;
17956
- offerte_id: string;
17957
- package_id?: string | null;
17958
- quantity?: number;
17959
- sort_order?: number;
17960
- total_cents?: number;
17961
- unit_price_cents?: number;
17962
- };
17963
- Update: {
17964
- created_at?: string;
17965
- description?: string;
17966
- duration_minutes?: number;
17967
- id?: string;
17968
- offerte_id?: string;
17969
- package_id?: string | null;
17970
- quantity?: number;
17971
- sort_order?: number;
17972
- total_cents?: number;
17973
- unit_price_cents?: number;
17974
- };
17975
- Relationships: [{
17976
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
17977
- columns: ["offerte_id"];
17978
- isOneToOne: false;
17979
- referencedRelation: "uren_offertes";
17980
- referencedColumns: ["id"];
17981
- }, {
17982
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
17983
- columns: ["package_id"];
17984
- isOneToOne: false;
17985
- referencedRelation: "werkbon_packages";
17986
- referencedColumns: ["id"];
17987
- }];
17988
- };
17989
- uren_offerte_velden: {
17990
- Row: {
17991
- created_at: string;
17992
- field_type: string;
17993
- id: string;
17994
- key: string;
17995
- label: string;
17996
- options: string[];
17997
- required: boolean;
17998
- sort_order: number;
17999
- updated_at: string;
18000
- };
18001
- Insert: {
18002
- created_at?: string;
18003
- field_type?: string;
18004
- id?: string;
18005
- key: string;
18006
- label: string;
18007
- options?: string[];
18008
- required?: boolean;
18009
- sort_order?: number;
18010
- updated_at?: string;
18011
- };
18012
- Update: {
18013
- created_at?: string;
18014
- field_type?: string;
18015
- id?: string;
18016
- key?: string;
18017
- label?: string;
18018
- options?: string[];
18019
- required?: boolean;
18020
- sort_order?: number;
18021
- updated_at?: string;
18022
- };
18023
- Relationships: [];
18024
- };
18025
- uren_offertes: {
18026
- Row: {
18027
- created_at: string;
18028
- created_by: string | null;
18029
- customer_id: string | null;
18030
- customer_name: string | null;
18031
- dynamic_fields: import("./types").Json;
18032
- estimated_minutes: number;
18033
- id: string;
18034
- note: string | null;
18035
- quote_number: string | null;
18036
- status: string;
18037
- title: string;
18038
- total_excl_cents: number;
18039
- total_incl_cents: number;
17934
+ travel_km: number;
18040
17935
  updated_at: string;
18041
- valid_until: string | null;
18042
- vat_percentage: number;
17936
+ werkbon_id: string | null;
18043
17937
  };
18044
17938
  Insert: {
18045
17939
  created_at?: string;
18046
17940
  created_by?: string | null;
18047
- customer_id?: string | null;
18048
- customer_name?: string | null;
18049
- dynamic_fields?: import("./types").Json;
18050
- estimated_minutes?: number;
17941
+ entry_date: string;
17942
+ hours?: number;
18051
17943
  id?: string;
17944
+ kind?: string;
17945
+ monteur_id: string;
18052
17946
  note?: string | null;
18053
- quote_number?: string | null;
18054
- status?: string;
18055
- title?: string;
18056
- total_excl_cents?: number;
18057
- total_incl_cents?: number;
17947
+ source?: string;
17948
+ travel_km?: number;
18058
17949
  updated_at?: string;
18059
- valid_until?: string | null;
18060
- vat_percentage?: number;
17950
+ werkbon_id?: string | null;
18061
17951
  };
18062
17952
  Update: {
18063
17953
  created_at?: string;
18064
17954
  created_by?: string | null;
18065
- customer_id?: string | null;
18066
- customer_name?: string | null;
18067
- dynamic_fields?: import("./types").Json;
18068
- estimated_minutes?: number;
17955
+ entry_date?: string;
17956
+ hours?: number;
18069
17957
  id?: string;
17958
+ kind?: string;
17959
+ monteur_id?: string;
18070
17960
  note?: string | null;
18071
- quote_number?: string | null;
18072
- status?: string;
18073
- title?: string;
18074
- total_excl_cents?: number;
18075
- total_incl_cents?: number;
17961
+ source?: string;
17962
+ travel_km?: number;
18076
17963
  updated_at?: string;
18077
- valid_until?: string | null;
18078
- vat_percentage?: number;
17964
+ werkbon_id?: string | null;
18079
17965
  };
18080
17966
  Relationships: [{
18081
- foreignKeyName: "uren_offertes_customer_id_fkey";
18082
- columns: ["customer_id"];
17967
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
17968
+ columns: ["werkbon_id"];
18083
17969
  isOneToOne: false;
18084
- referencedRelation: "itk_customers";
17970
+ referencedRelation: "werkbonnen";
18085
17971
  referencedColumns: ["id"];
18086
17972
  }];
18087
17973
  };
17974
+ uren_exports: {
17975
+ Row: {
17976
+ created_at: string;
17977
+ created_by: string | null;
17978
+ file_name: string | null;
17979
+ id: string;
17980
+ monteur_ids: string[];
17981
+ period_end: string;
17982
+ period_start: string;
17983
+ row_count: number;
17984
+ };
17985
+ Insert: {
17986
+ created_at?: string;
17987
+ created_by?: string | null;
17988
+ file_name?: string | null;
17989
+ id?: string;
17990
+ monteur_ids?: string[];
17991
+ period_end: string;
17992
+ period_start: string;
17993
+ row_count?: number;
17994
+ };
17995
+ Update: {
17996
+ created_at?: string;
17997
+ created_by?: string | null;
17998
+ file_name?: string | null;
17999
+ id?: string;
18000
+ monteur_ids?: string[];
18001
+ period_end?: string;
18002
+ period_start?: string;
18003
+ row_count?: number;
18004
+ };
18005
+ Relationships: [];
18006
+ };
18088
18007
  uren_settings: {
18089
18008
  Row: {
18090
18009
  break_minutes: number;
@@ -19771,6 +19690,37 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19771
19690
  };
19772
19691
  Relationships: [];
19773
19692
  };
19693
+ planning_overview: {
19694
+ Row: {
19695
+ assigned_monteur_id: string | null;
19696
+ assistants: import("./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: 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
+ };
19774
19724
  product_group_stock_view: {
19775
19725
  Row: {
19776
19726
  item_count: number | null;
@@ -20366,6 +20316,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20366
20316
  Args: never;
20367
20317
  Returns: number;
20368
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
+ };
20369
20331
  calculate_layer_stock: {
20370
20332
  Args: {
20371
20333
  p_product_id: string;
@@ -20427,6 +20389,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20427
20389
  is_herprint: boolean;
20428
20390
  kopieen: number;
20429
20391
  layout_id: string | null;
20392
+ lokaal_opgeslagen_op: string | null;
20393
+ lokale_pdf_fout: string | null;
20394
+ lokale_pdf_status: string | null;
20430
20395
  opgepakt_op: string | null;
20431
20396
  paginas: number;
20432
20397
  payload: import("./types").Json;
@@ -20435,6 +20400,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20435
20400
  pogingen: number;
20436
20401
  printer_id: string | null;
20437
20402
  render_html: string | null;
20403
+ resultaat_pdf_base64: string | null;
20438
20404
  status: Database["public"]["Enums"]["print_job_status"];
20439
20405
  updated_at: string;
20440
20406
  volgende_poging: string | null;
@@ -20456,6 +20422,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20456
20422
  attempts: number;
20457
20423
  connection_id: string;
20458
20424
  created_at: string;
20425
+ dead_lettered_at: string | null;
20459
20426
  desired_available: boolean | null;
20460
20427
  gateway_attempt_id: string | null;
20461
20428
  id: string;
@@ -20464,9 +20431,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20464
20431
  locked_by: string | null;
20465
20432
  next_attempt_at: string;
20466
20433
  number_of_pieces: number;
20434
+ product_id: string | null;
20467
20435
  sent_at: string | null;
20468
20436
  status: string;
20437
+ stock_mode: string | null;
20469
20438
  superseded_by: string | null;
20439
+ target_week: number | null;
20440
+ target_year: number | null;
20470
20441
  trade_item_id: string;
20471
20442
  updated_at: string;
20472
20443
  user_id: string;
@@ -20526,6 +20497,53 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20526
20497
  isSetofReturn: true;
20527
20498
  };
20528
20499
  };
20500
+ claim_pdf_print_jobs: {
20501
+ Args: {
20502
+ _max?: number;
20503
+ };
20504
+ Returns: {
20505
+ agent_id: string | null;
20506
+ bron_job_id: string | null;
20507
+ created_at: string;
20508
+ documentnaam: string;
20509
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
20510
+ extern_job_id: string | null;
20511
+ foutmelding: string | null;
20512
+ gebruiker_id: string | null;
20513
+ gebruiker_naam: string;
20514
+ gebruikte_bron: string | null;
20515
+ gebruikte_layout_id: string | null;
20516
+ gestart_op: string | null;
20517
+ herkomst: string | null;
20518
+ id: string;
20519
+ idempotentie_sleutel: string | null;
20520
+ is_herprint: boolean;
20521
+ kopieen: number;
20522
+ layout_id: string | null;
20523
+ lokaal_opgeslagen_op: string | null;
20524
+ lokale_pdf_fout: string | null;
20525
+ lokale_pdf_status: string | null;
20526
+ opgepakt_op: string | null;
20527
+ paginas: number;
20528
+ payload: import("./types").Json;
20529
+ pdf_base64: string | null;
20530
+ pdf_url: string | null;
20531
+ pogingen: number;
20532
+ printer_id: string | null;
20533
+ render_html: string | null;
20534
+ resultaat_pdf_base64: string | null;
20535
+ status: Database["public"]["Enums"]["print_job_status"];
20536
+ updated_at: string;
20537
+ volgende_poging: string | null;
20538
+ voltooid_op: string | null;
20539
+ }[];
20540
+ SetofOptions: {
20541
+ from: "*";
20542
+ to: "print_jobs";
20543
+ isOneToOne: false;
20544
+ isSetofReturn: true;
20545
+ };
20546
+ };
20529
20547
  claim_print_jobs: {
20530
20548
  Args: {
20531
20549
  _agent_id: string;
@@ -20550,6 +20568,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20550
20568
  is_herprint: boolean;
20551
20569
  kopieen: number;
20552
20570
  layout_id: string | null;
20571
+ lokaal_opgeslagen_op: string | null;
20572
+ lokale_pdf_fout: string | null;
20573
+ lokale_pdf_status: string | null;
20553
20574
  opgepakt_op: string | null;
20554
20575
  paginas: number;
20555
20576
  payload: import("./types").Json;
@@ -20558,6 +20579,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20558
20579
  pogingen: number;
20559
20580
  printer_id: string | null;
20560
20581
  render_html: string | null;
20582
+ resultaat_pdf_base64: string | null;
20561
20583
  status: Database["public"]["Enums"]["print_job_status"];
20562
20584
  updated_at: string;
20563
20585
  volgende_poging: string | null;
@@ -20698,6 +20720,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20698
20720
  order_id: string;
20699
20721
  order_source: string;
20700
20722
  pick_date: string;
20723
+ printed_at: string;
20724
+ printed_today: boolean;
20701
20725
  status: string;
20702
20726
  }[];
20703
20727
  };
@@ -20894,6 +20918,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20894
20918
  };
20895
20919
  Returns: string;
20896
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
+ };
20897
20939
  floriday_effective_price: {
20898
20940
  Args: {
20899
20941
  _buyer_id: string;
@@ -20911,6 +20953,34 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20911
20953
  source_id: string;
20912
20954
  }[];
20913
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
+ };
20914
20984
  format_cart_number: {
20915
20985
  Args: {
20916
20986
  p_pick_date: string;
@@ -21127,6 +21197,131 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21127
21197
  Args: never;
21128
21198
  Returns: string;
21129
21199
  };
21200
+ handover_get: {
21201
+ Args: {
21202
+ _module_id: string;
21203
+ };
21204
+ Returns: import("./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("./types").Json;
21215
+ };
21216
+ handover_kruisconflicten: {
21217
+ Args: never;
21218
+ Returns: import("./types").Json;
21219
+ };
21220
+ handover_list: {
21221
+ Args: never;
21222
+ Returns: import("./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("./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("./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("./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("./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("./types").Json;
21324
+ };
21130
21325
  has_module_permission: {
21131
21326
  Args: {
21132
21327
  _min: string;
@@ -21146,6 +21341,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21146
21341
  Args: never;
21147
21342
  Returns: boolean;
21148
21343
  };
21344
+ instructie_get: {
21345
+ Args: {
21346
+ _sleutel: string;
21347
+ };
21348
+ Returns: import("./types").Json;
21349
+ };
21350
+ instructie_list: {
21351
+ Args: never;
21352
+ Returns: import("./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
+ };
21149
21363
  invoice_create_from_source: {
21150
21364
  Args: {
21151
21365
  _payload?: import("./types").Json;
@@ -21370,6 +21584,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21370
21584
  };
21371
21585
  Returns: boolean;
21372
21586
  };
21587
+ logistics_barcode_lookup: {
21588
+ Args: {
21589
+ p_barcode: string;
21590
+ };
21591
+ Returns: import("./types").Json;
21592
+ };
21373
21593
  logistics_buffer_criteria: {
21374
21594
  Args: {
21375
21595
  p_settings: import("./types").Json;
@@ -21406,6 +21626,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21406
21626
  };
21407
21627
  Returns: number;
21408
21628
  };
21629
+ logistics_cancel_orphan_tasks: {
21630
+ Args: never;
21631
+ Returns: number;
21632
+ };
21409
21633
  logistics_capacity_day_check: {
21410
21634
  Args: {
21411
21635
  p_from?: string;
@@ -21426,6 +21650,41 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21426
21650
  };
21427
21651
  Returns: number;
21428
21652
  };
21653
+ logistics_cart_barcode_value: {
21654
+ Args: {
21655
+ _cart_id: string;
21656
+ };
21657
+ Returns: string;
21658
+ };
21659
+ logistics_cart_index: {
21660
+ Args: {
21661
+ p_from?: string;
21662
+ p_to?: string;
21663
+ };
21664
+ Returns: {
21665
+ cart_id: string;
21666
+ cart_index: number;
21667
+ cart_label: string;
21668
+ delivery_date: string;
21669
+ is_announced: boolean;
21670
+ is_controlled: boolean;
21671
+ is_printed: boolean;
21672
+ is_shared: boolean;
21673
+ order_number: string;
21674
+ order_source: string;
21675
+ order_uuid: string;
21676
+ pick_date: string;
21677
+ printed_at: string;
21678
+ shifted: boolean;
21679
+ task_status: string;
21680
+ }[];
21681
+ };
21682
+ logistics_cart_slip_plan: {
21683
+ Args: {
21684
+ p_order_id: string;
21685
+ };
21686
+ Returns: import("./types").Json;
21687
+ };
21429
21688
  logistics_check_order_allowed: {
21430
21689
  Args: {
21431
21690
  p_lines: import("./types").Json;
@@ -21574,6 +21833,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21574
21833
  isSetofReturn: false;
21575
21834
  };
21576
21835
  };
21836
+ logistics_consistency_check: {
21837
+ Args: never;
21838
+ Returns: {
21839
+ agenda_carts: number;
21840
+ announced_carts: number;
21841
+ control_carts: number;
21842
+ delivery_carts: number;
21843
+ ok: boolean;
21844
+ orphan_tasks: number;
21845
+ pick_date: string;
21846
+ raw_carts: number;
21847
+ sales_carts: number;
21848
+ station_carts: number;
21849
+ }[];
21850
+ };
21577
21851
  logistics_delay_customer_email: {
21578
21852
  Args: {
21579
21853
  p_customer: string;
@@ -21587,12 +21861,35 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21587
21861
  subject: string;
21588
21862
  }[];
21589
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("./types").Json;
21876
+ plant_count: number;
21877
+ printed_count: number;
21878
+ }[];
21879
+ };
21590
21880
  logistics_document_layout: {
21591
21881
  Args: {
21592
21882
  _document_code: string;
21593
21883
  };
21594
21884
  Returns: import("./types").Json;
21595
21885
  };
21886
+ logistics_document_layout_v2: {
21887
+ Args: {
21888
+ _document_code: string;
21889
+ _is_partial?: boolean;
21890
+ };
21891
+ Returns: import("./types").Json;
21892
+ };
21596
21893
  logistics_document_station: {
21597
21894
  Args: {
21598
21895
  _document_code: string;
@@ -21618,6 +21915,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21618
21915
  };
21619
21916
  Returns: import("./types").Json;
21620
21917
  };
21918
+ logistics_ensure_cart_barcode: {
21919
+ Args: {
21920
+ _cart_id: string;
21921
+ };
21922
+ Returns: string;
21923
+ };
21621
21924
  logistics_fail_task: {
21622
21925
  Args: {
21623
21926
  p_error: string;
@@ -21663,6 +21966,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21663
21966
  isSetofReturn: false;
21664
21967
  };
21665
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
+ };
21666
21979
  logistics_floriday_claim_pushes: {
21667
21980
  Args: {
21668
21981
  _lease_seconds?: number;
@@ -21767,6 +22080,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21767
22080
  };
21768
22081
  Returns: number;
21769
22082
  };
22083
+ logistics_order_overview: {
22084
+ Args: {
22085
+ p_from?: string;
22086
+ p_to?: string;
22087
+ };
22088
+ Returns: {
22089
+ cart_count: number;
22090
+ customer_name: string;
22091
+ delivery_date: string;
22092
+ order_number: string;
22093
+ order_source: string;
22094
+ order_uuid: string;
22095
+ pick_date: string;
22096
+ plant_count: number;
22097
+ printed_at: string;
22098
+ shifted: boolean;
22099
+ status: string;
22100
+ }[];
22101
+ };
21770
22102
  logistics_order_pick_day: {
21771
22103
  Args: {
21772
22104
  p_order_ref: string;
@@ -21779,6 +22111,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21779
22111
  };
21780
22112
  Returns: string;
21781
22113
  };
22114
+ logistics_pick_agenda: {
22115
+ Args: {
22116
+ p_from?: string;
22117
+ p_to?: string;
22118
+ };
22119
+ Returns: {
22120
+ cart_count: number;
22121
+ in_preparation: number;
22122
+ order_count: number;
22123
+ orders: import("./types").Json;
22124
+ pick_date: string;
22125
+ plant_count: number;
22126
+ ready: number;
22127
+ shifted_count: number;
22128
+ }[];
22129
+ };
21782
22130
  logistics_pick_email_purpose: {
21783
22131
  Args: never;
21784
22132
  Returns: string;
@@ -21833,6 +22181,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21833
22181
  };
21834
22182
  Returns: undefined;
21835
22183
  };
22184
+ logistics_plan_floriday_order: {
22185
+ Args: {
22186
+ p_buffer_id?: string;
22187
+ p_order_id: string;
22188
+ };
22189
+ Returns: number;
22190
+ };
21836
22191
  logistics_plan_impact_orders: {
21837
22192
  Args: {
21838
22193
  p_order_id: string;
@@ -22026,6 +22381,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22026
22381
  };
22027
22382
  Returns: string;
22028
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("./types").Json;
22391
+ };
22029
22392
  logistics_supersede_stale_tasks: {
22030
22393
  Args: {
22031
22394
  p_keep: string[];
@@ -22247,6 +22610,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22247
22610
  print_job_id: string | null;
22248
22611
  printed_at: string | null;
22249
22612
  printed_by: string | null;
22613
+ printed_cart_ids: import("./types").Json;
22250
22614
  printer_id: string | null;
22251
22615
  priority: number;
22252
22616
  reference: string | null;
@@ -22296,6 +22660,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22296
22660
  print_job_id: string | null;
22297
22661
  printed_at: string | null;
22298
22662
  printed_by: string | null;
22663
+ printed_cart_ids: import("./types").Json;
22299
22664
  printer_id: string | null;
22300
22665
  priority: number;
22301
22666
  reference: string | null;
@@ -22350,6 +22715,56 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22350
22715
  print_job_id: string | null;
22351
22716
  printed_at: string | null;
22352
22717
  printed_by: string | null;
22718
+ printed_cart_ids: import("./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("./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("./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("./types").Json;
22353
22768
  printer_id: string | null;
22354
22769
  priority: number;
22355
22770
  reference: string | null;
@@ -22393,6 +22808,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22393
22808
  _session_id?: string;
22394
22809
  };
22395
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;
22396
22820
  };
22397
22821
  pick_order_context: {
22398
22822
  Args: {
@@ -22473,6 +22897,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22473
22897
  print_job_id: string | null;
22474
22898
  printed_at: string | null;
22475
22899
  printed_by: string | null;
22900
+ printed_cart_ids: import("./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("./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("./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("./types").Json;
22476
22948
  printer_id: string | null;
22477
22949
  priority: number;
22478
22950
  reference: string | null;
@@ -22585,6 +23057,66 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22585
23057
  };
22586
23058
  Returns: undefined;
22587
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("./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: 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
+ };
22588
23120
  print_preview_toestaan: {
22589
23121
  Args: {
22590
23122
  _max?: number;
@@ -22757,6 +23289,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22757
23289
  };
22758
23290
  Returns: string;
22759
23291
  };
23292
+ resolve_print_job_printer_id: {
23293
+ Args: {
23294
+ _job: Database["public"]["Tables"]["print_jobs"]["Row"];
23295
+ };
23296
+ Returns: string;
23297
+ };
22760
23298
  resolve_product_id_for_item: {
22761
23299
  Args: {
22762
23300
  p_product_name: string;
@@ -23160,6 +23698,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23160
23698
  };
23161
23699
  Returns: string[];
23162
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("./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("./types").Json;
23720
+ };
23163
23721
  switch_time_log: {
23164
23722
  Args: {
23165
23723
  p_employee_id: string;
@@ -23348,6 +23906,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23348
23906
  };
23349
23907
  CompositeTypes: { [_ in never]: never; };
23350
23908
  }, {
23351
- PostgrestVersion: "14.17";
23909
+ PostgrestVersion: "14.5";
23352
23910
  }>;
23353
23911
  //# sourceMappingURL=client.server.d.ts.map