@flowselections/floriday-afhandeling-module 1.0.40 → 1.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/ControlePage.js +86 -10
  3. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  4. package/dist-lib/components/afhandeling/DagDetailDialog.js +4 -3
  5. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  6. package/dist-lib/components/afhandeling/VerzetOrderDialog.js +1 -1
  7. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  8. package/dist-lib/components/afhandeling/WeekAgendaView.js +38 -45
  9. package/dist-lib/hooks/useCartIndex.d.ts +11 -0
  10. package/dist-lib/hooks/useCartIndex.d.ts.map +1 -0
  11. package/dist-lib/hooks/useCartIndex.js +56 -0
  12. package/dist-lib/hooks/useConsistencyCheck.d.ts +8 -0
  13. package/dist-lib/hooks/useConsistencyCheck.d.ts.map +1 -0
  14. package/dist-lib/hooks/useConsistencyCheck.js +22 -0
  15. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  16. package/dist-lib/hooks/useOrderPlanning.js +6 -2
  17. package/dist-lib/hooks/usePickAgenda.d.ts +32 -0
  18. package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -0
  19. package/dist-lib/hooks/usePickAgenda.js +75 -0
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1342 -747
  21. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/client.server.d.ts +1342 -747
  23. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/client.server.js +1 -1
  25. package/dist-lib/integrations/supabase/moduleClient.d.ts +1342 -747
  26. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/types.d.ts +1354 -775
  28. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  29. package/dist-lib/lib/afhandelingSettings.functions.d.ts +2501 -1307
  30. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/carriers.functions.d.ts +6356 -3381
  32. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/cartAssignments.functions.d.ts +6356 -3381
  34. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/cartControl.functions.d.ts +12821 -6902
  36. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/cartControl.functions.js +92 -127
  38. package/dist-lib/lib/floriday.functions.d.ts +1345 -748
  39. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  40. package/package.json +1 -1
@@ -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;
@@ -11886,10 +12372,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11886
12372
  boxes: number | null;
11887
12373
  cart_id: string;
11888
12374
  crates: number;
12375
+ crates_in_layer: number | null;
11889
12376
  crates_per_layer: number;
11890
12377
  created_at: string;
11891
12378
  id: string;
11892
12379
  layer_fraction: number;
12380
+ layer_index: number | null;
11893
12381
  layer_share_pct: number;
11894
12382
  layers_per_cart: number;
11895
12383
  order_item_id: string | null;
@@ -11902,10 +12390,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11902
12390
  boxes?: number | null;
11903
12391
  cart_id: string;
11904
12392
  crates: number;
12393
+ crates_in_layer?: number | null;
11905
12394
  crates_per_layer?: number;
11906
12395
  created_at?: string;
11907
12396
  id?: string;
11908
12397
  layer_fraction?: number;
12398
+ layer_index?: number | null;
11909
12399
  layer_share_pct?: number;
11910
12400
  layers_per_cart?: number;
11911
12401
  order_item_id?: string | null;
@@ -11918,10 +12408,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11918
12408
  boxes?: number | null;
11919
12409
  cart_id?: string;
11920
12410
  crates?: number;
12411
+ crates_in_layer?: number | null;
11921
12412
  crates_per_layer?: number;
11922
12413
  created_at?: string;
11923
12414
  id?: string;
11924
12415
  layer_fraction?: number;
12416
+ layer_index?: number | null;
11925
12417
  layer_share_pct?: number;
11926
12418
  layers_per_cart?: number;
11927
12419
  order_item_id?: string | null;
@@ -11961,6 +12453,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11961
12453
  id: string;
11962
12454
  is_auto: boolean;
11963
12455
  is_complete: boolean;
12456
+ layout_method: string | null;
11964
12457
  max_layers: number | null;
11965
12458
  moved_at: string | null;
11966
12459
  moved_from_moment_id: string | null;
@@ -11985,6 +12478,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11985
12478
  id?: string;
11986
12479
  is_auto?: boolean;
11987
12480
  is_complete?: boolean;
12481
+ layout_method?: string | null;
11988
12482
  max_layers?: number | null;
11989
12483
  moved_at?: string | null;
11990
12484
  moved_from_moment_id?: string | null;
@@ -12009,6 +12503,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12009
12503
  id?: string;
12010
12504
  is_auto?: boolean;
12011
12505
  is_complete?: boolean;
12506
+ layout_method?: string | null;
12012
12507
  max_layers?: number | null;
12013
12508
  moved_at?: string | null;
12014
12509
  moved_from_moment_id?: string | null;
@@ -12614,6 +13109,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12614
13109
  print_job_id: string | null;
12615
13110
  printed_at: string | null;
12616
13111
  printed_by: string | null;
13112
+ printed_cart_ids: import("./types").Json;
12617
13113
  printer_id: string | null;
12618
13114
  priority: number;
12619
13115
  reference: string | null;
@@ -12648,6 +13144,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12648
13144
  print_job_id?: string | null;
12649
13145
  printed_at?: string | null;
12650
13146
  printed_by?: string | null;
13147
+ printed_cart_ids?: import("./types").Json;
12651
13148
  printer_id?: string | null;
12652
13149
  priority?: number;
12653
13150
  reference?: string | null;
@@ -12682,6 +13179,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12682
13179
  print_job_id?: string | null;
12683
13180
  printed_at?: string | null;
12684
13181
  printed_by?: string | null;
13182
+ printed_cart_ids?: import("./types").Json;
12685
13183
  printer_id?: string | null;
12686
13184
  priority?: number;
12687
13185
  reference?: string | null;
@@ -13481,6 +13979,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13481
13979
  isOneToOne: false;
13482
13980
  referencedRelation: "planning_items";
13483
13981
  referencedColumns: ["id"];
13982
+ }, {
13983
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
13984
+ columns: ["planning_item_id"];
13985
+ isOneToOne: false;
13986
+ referencedRelation: "planning_overview";
13987
+ referencedColumns: ["id"];
13484
13988
  }];
13485
13989
  };
13486
13990
  planning_items: {
@@ -13659,6 +14163,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13659
14163
  is_herprint: boolean;
13660
14164
  kopieen: number;
13661
14165
  layout_id: string | null;
14166
+ lokaal_opgeslagen_op: string | null;
14167
+ lokale_pdf_fout: string | null;
14168
+ lokale_pdf_status: string | null;
13662
14169
  opgepakt_op: string | null;
13663
14170
  paginas: number;
13664
14171
  payload: import("./types").Json;
@@ -13667,6 +14174,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13667
14174
  pogingen: number;
13668
14175
  printer_id: string | null;
13669
14176
  render_html: string | null;
14177
+ resultaat_pdf_base64: string | null;
13670
14178
  status: Database["public"]["Enums"]["print_job_status"];
13671
14179
  updated_at: string;
13672
14180
  volgende_poging: string | null;
@@ -13691,6 +14199,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13691
14199
  is_herprint?: boolean;
13692
14200
  kopieen?: number;
13693
14201
  layout_id?: string | null;
14202
+ lokaal_opgeslagen_op?: string | null;
14203
+ lokale_pdf_fout?: string | null;
14204
+ lokale_pdf_status?: string | null;
13694
14205
  opgepakt_op?: string | null;
13695
14206
  paginas?: number;
13696
14207
  payload?: import("./types").Json;
@@ -13699,6 +14210,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13699
14210
  pogingen?: number;
13700
14211
  printer_id?: string | null;
13701
14212
  render_html?: string | null;
14213
+ resultaat_pdf_base64?: string | null;
13702
14214
  status?: Database["public"]["Enums"]["print_job_status"];
13703
14215
  updated_at?: string;
13704
14216
  volgende_poging?: string | null;
@@ -13723,6 +14235,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13723
14235
  is_herprint?: boolean;
13724
14236
  kopieen?: number;
13725
14237
  layout_id?: string | null;
14238
+ lokaal_opgeslagen_op?: string | null;
14239
+ lokale_pdf_fout?: string | null;
14240
+ lokale_pdf_status?: string | null;
13726
14241
  opgepakt_op?: string | null;
13727
14242
  paginas?: number;
13728
14243
  payload?: import("./types").Json;
@@ -13731,6 +14246,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13731
14246
  pogingen?: number;
13732
14247
  printer_id?: string | null;
13733
14248
  render_html?: string | null;
14249
+ resultaat_pdf_base64?: string | null;
13734
14250
  status?: Database["public"]["Enums"]["print_job_status"];
13735
14251
  updated_at?: string;
13736
14252
  volgende_poging?: string | null;
@@ -14121,6 +14637,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14121
14637
  ondersteunde_laden: import("./types").Json | null;
14122
14638
  online: boolean;
14123
14639
  papierformaat: string;
14640
+ pdf_map: string | null;
14124
14641
  poort: number | null;
14125
14642
  soort: Database["public"]["Enums"]["printer_kind"];
14126
14643
  systeemnaam: string;
@@ -14146,6 +14663,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14146
14663
  ondersteunde_laden?: import("./types").Json | null;
14147
14664
  online?: boolean;
14148
14665
  papierformaat?: string;
14666
+ pdf_map?: string | null;
14149
14667
  poort?: number | null;
14150
14668
  soort?: Database["public"]["Enums"]["printer_kind"];
14151
14669
  systeemnaam?: string;
@@ -14171,6 +14689,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14171
14689
  ondersteunde_laden?: import("./types").Json | null;
14172
14690
  online?: boolean;
14173
14691
  papierformaat?: string;
14692
+ pdf_map?: string | null;
14174
14693
  poort?: number | null;
14175
14694
  soort?: Database["public"]["Enums"]["printer_kind"];
14176
14695
  systeemnaam?: string;
@@ -14575,6 +15094,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14575
15094
  created_at: string;
14576
15095
  custom_fields: import("./types").Json;
14577
15096
  floriday_trade_item_id: string | null;
15097
+ fust_type_id: string | null;
14578
15098
  id: string;
14579
15099
  image_url: string | null;
14580
15100
  incoming_quantity: number;
@@ -14582,6 +15102,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14582
15102
  layers_per_cart: number;
14583
15103
  location: string;
14584
15104
  min_quantity: number;
15105
+ plant_height_cm: number | null;
14585
15106
  plants_per_crate: number;
14586
15107
  product: string;
14587
15108
  product_type: string;
@@ -14601,6 +15122,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14601
15122
  created_at?: string;
14602
15123
  custom_fields?: import("./types").Json;
14603
15124
  floriday_trade_item_id?: string | null;
15125
+ fust_type_id?: string | null;
14604
15126
  id?: string;
14605
15127
  image_url?: string | null;
14606
15128
  incoming_quantity?: number;
@@ -14608,6 +15130,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14608
15130
  layers_per_cart?: number;
14609
15131
  location: string;
14610
15132
  min_quantity?: number;
15133
+ plant_height_cm?: number | null;
14611
15134
  plants_per_crate?: number;
14612
15135
  product: string;
14613
15136
  product_type?: string;
@@ -14627,6 +15150,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14627
15150
  created_at?: string;
14628
15151
  custom_fields?: import("./types").Json;
14629
15152
  floriday_trade_item_id?: string | null;
15153
+ fust_type_id?: string | null;
14630
15154
  id?: string;
14631
15155
  image_url?: string | null;
14632
15156
  incoming_quantity?: number;
@@ -14634,6 +15158,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14634
15158
  layers_per_cart?: number;
14635
15159
  location?: string;
14636
15160
  min_quantity?: number;
15161
+ plant_height_cm?: number | null;
14637
15162
  plants_per_crate?: number;
14638
15163
  product?: string;
14639
15164
  product_type?: string;
@@ -14645,7 +15170,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14645
15170
  updated_at?: string;
14646
15171
  weight?: string | null;
14647
15172
  };
14648
- Relationships: [];
15173
+ Relationships: [{
15174
+ foreignKeyName: "products_fust_type_id_fkey";
15175
+ columns: ["fust_type_id"];
15176
+ isOneToOne: false;
15177
+ referencedRelation: "fust_types";
15178
+ referencedColumns: ["id"];
15179
+ }];
14649
15180
  };
14650
15181
  profile_modules: {
14651
15182
  Row: {
@@ -15043,534 +15574,90 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15043
15574
  referencedColumns: ["id"];
15044
15575
  }];
15045
15576
  };
15046
- quote_activities: {
15577
+ reception_notifications: {
15047
15578
  Row: {
15579
+ booking_id: string | null;
15048
15580
  created_at: string;
15049
- event_type: string;
15050
15581
  id: string;
15051
- metadata: import("./types").Json;
15052
- quote_id: string;
15053
- user_id: string | null;
15582
+ is_read: boolean;
15583
+ message: string;
15584
+ recipient_email: string | null;
15585
+ title: string;
15586
+ type: string;
15054
15587
  };
15055
15588
  Insert: {
15589
+ booking_id?: string | null;
15056
15590
  created_at?: string;
15057
- event_type: string;
15058
15591
  id?: string;
15059
- metadata?: import("./types").Json;
15060
- quote_id: string;
15061
- user_id?: string | null;
15592
+ is_read?: boolean;
15593
+ message: string;
15594
+ recipient_email?: string | null;
15595
+ title: string;
15596
+ type: string;
15062
15597
  };
15063
15598
  Update: {
15599
+ booking_id?: string | null;
15064
15600
  created_at?: string;
15065
- event_type?: string;
15066
15601
  id?: string;
15067
- metadata?: import("./types").Json;
15068
- quote_id?: string;
15069
- user_id?: string | null;
15602
+ is_read?: boolean;
15603
+ message?: string;
15604
+ recipient_email?: string | null;
15605
+ title?: string;
15606
+ type?: string;
15070
15607
  };
15071
15608
  Relationships: [{
15072
- foreignKeyName: "quote_activities_quote_id_fkey";
15073
- columns: ["quote_id"];
15609
+ foreignKeyName: "reception_notifications_booking_id_fkey";
15610
+ columns: ["booking_id"];
15074
15611
  isOneToOne: false;
15075
- referencedRelation: "quotes";
15612
+ referencedRelation: "bookings";
15076
15613
  referencedColumns: ["id"];
15077
15614
  }];
15078
15615
  };
15079
- quote_attachments: {
15616
+ role_assignments: {
15080
15617
  Row: {
15081
15618
  created_at: string;
15082
- file_name: string;
15083
- file_size: number | null;
15084
- file_url: string;
15085
15619
  id: string;
15086
- mime_type: string | null;
15087
- quote_id: string;
15620
+ role_id: string;
15621
+ user_id: string;
15088
15622
  };
15089
15623
  Insert: {
15090
15624
  created_at?: string;
15091
- file_name: string;
15092
- file_size?: number | null;
15093
- file_url: string;
15094
15625
  id?: string;
15095
- mime_type?: string | null;
15096
- quote_id: string;
15626
+ role_id: string;
15627
+ user_id: string;
15097
15628
  };
15098
15629
  Update: {
15099
15630
  created_at?: string;
15100
- file_name?: string;
15101
- file_size?: number | null;
15102
- file_url?: string;
15103
15631
  id?: string;
15104
- mime_type?: string | null;
15105
- quote_id?: string;
15632
+ role_id?: string;
15633
+ user_id?: string;
15106
15634
  };
15107
15635
  Relationships: [{
15108
- foreignKeyName: "quote_attachments_quote_id_fkey";
15109
- columns: ["quote_id"];
15636
+ foreignKeyName: "role_assignments_role_id_fkey";
15637
+ columns: ["role_id"];
15110
15638
  isOneToOne: false;
15111
- referencedRelation: "quotes";
15639
+ referencedRelation: "roles";
15112
15640
  referencedColumns: ["id"];
15113
15641
  }];
15114
15642
  };
15115
- quote_field_options: {
15643
+ role_permissions: {
15116
15644
  Row: {
15117
- created_at: string;
15118
- field_id: string;
15645
+ can_edit: boolean;
15646
+ can_view: boolean;
15647
+ feature_id: string;
15119
15648
  id: string;
15120
- label: string;
15121
- sort_order: number;
15122
- value: string;
15649
+ module_id: string;
15650
+ role_id: string;
15651
+ updated_at: string;
15123
15652
  };
15124
15653
  Insert: {
15125
- created_at?: string;
15126
- field_id: string;
15654
+ can_edit?: boolean;
15655
+ can_view?: boolean;
15656
+ feature_id?: string;
15127
15657
  id?: string;
15128
- label: string;
15129
- sort_order?: number;
15130
- value: string;
15131
- };
15132
- 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;
15658
+ module_id: string;
15659
+ role_id: string;
15660
+ updated_at?: string;
15574
15661
  };
15575
15662
  Update: {
15576
15663
  can_edit?: boolean;
@@ -16608,7 +16695,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16608
16695
  foreignKeyName: "time_logs_work_order_id_fkey";
16609
16696
  columns: ["work_order_id"];
16610
16697
  isOneToOne: false;
16611
- referencedRelation: "work_orders";
16698
+ referencedRelation: "werkbonnen";
16612
16699
  referencedColumns: ["id"];
16613
16700
  }];
16614
16701
  };
@@ -16740,6 +16827,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16740
16827
  };
16741
16828
  trade_item_stock: {
16742
16829
  Row: {
16830
+ change_source: string;
16743
16831
  connection_id: string;
16744
16832
  created_at: string;
16745
16833
  id: string;
@@ -16753,6 +16841,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16753
16841
  user_id: string;
16754
16842
  };
16755
16843
  Insert: {
16844
+ change_source?: string;
16756
16845
  connection_id: string;
16757
16846
  created_at?: string;
16758
16847
  id?: string;
@@ -16766,6 +16855,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16766
16855
  user_id: string;
16767
16856
  };
16768
16857
  Update: {
16858
+ change_source?: string;
16769
16859
  connection_id?: string;
16770
16860
  created_at?: string;
16771
16861
  id?: string;
@@ -17890,200 +17980,50 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17890
17980
  monteur_id?: string;
17891
17981
  note?: string | null;
17892
17982
  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;
17983
+ travel_km?: number;
18021
17984
  updated_at?: string;
17985
+ werkbon_id?: string | null;
18022
17986
  };
18023
- Relationships: [];
17987
+ Relationships: [{
17988
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
17989
+ columns: ["werkbon_id"];
17990
+ isOneToOne: false;
17991
+ referencedRelation: "werkbonnen";
17992
+ referencedColumns: ["id"];
17993
+ }];
18024
17994
  };
18025
- uren_offertes: {
17995
+ uren_exports: {
18026
17996
  Row: {
18027
17997
  created_at: string;
18028
17998
  created_by: string | null;
18029
- customer_id: string | null;
18030
- customer_name: string | null;
18031
- dynamic_fields: import("./types").Json;
18032
- estimated_minutes: number;
17999
+ file_name: string | null;
18033
18000
  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;
18040
- updated_at: string;
18041
- valid_until: string | null;
18042
- vat_percentage: number;
18001
+ monteur_ids: string[];
18002
+ period_end: string;
18003
+ period_start: string;
18004
+ row_count: number;
18043
18005
  };
18044
18006
  Insert: {
18045
18007
  created_at?: string;
18046
18008
  created_by?: string | null;
18047
- customer_id?: string | null;
18048
- customer_name?: string | null;
18049
- dynamic_fields?: import("./types").Json;
18050
- estimated_minutes?: number;
18009
+ file_name?: string | null;
18051
18010
  id?: string;
18052
- note?: string | null;
18053
- quote_number?: string | null;
18054
- status?: string;
18055
- title?: string;
18056
- total_excl_cents?: number;
18057
- total_incl_cents?: number;
18058
- updated_at?: string;
18059
- valid_until?: string | null;
18060
- vat_percentage?: number;
18011
+ monteur_ids?: string[];
18012
+ period_end: string;
18013
+ period_start: string;
18014
+ row_count?: number;
18061
18015
  };
18062
18016
  Update: {
18063
18017
  created_at?: string;
18064
18018
  created_by?: string | null;
18065
- customer_id?: string | null;
18066
- customer_name?: string | null;
18067
- dynamic_fields?: import("./types").Json;
18068
- estimated_minutes?: number;
18019
+ file_name?: string | null;
18069
18020
  id?: string;
18070
- note?: string | null;
18071
- quote_number?: string | null;
18072
- status?: string;
18073
- title?: string;
18074
- total_excl_cents?: number;
18075
- total_incl_cents?: number;
18076
- updated_at?: string;
18077
- valid_until?: string | null;
18078
- vat_percentage?: number;
18021
+ monteur_ids?: string[];
18022
+ period_end?: string;
18023
+ period_start?: string;
18024
+ row_count?: number;
18079
18025
  };
18080
- Relationships: [{
18081
- foreignKeyName: "uren_offertes_customer_id_fkey";
18082
- columns: ["customer_id"];
18083
- isOneToOne: false;
18084
- referencedRelation: "itk_customers";
18085
- referencedColumns: ["id"];
18086
- }];
18026
+ Relationships: [];
18087
18027
  };
18088
18028
  uren_settings: {
18089
18029
  Row: {
@@ -19771,6 +19711,37 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19771
19711
  };
19772
19712
  Relationships: [];
19773
19713
  };
19714
+ planning_overview: {
19715
+ Row: {
19716
+ assigned_monteur_id: string | null;
19717
+ assistants: import("./types").Json | null;
19718
+ budget_mandate_cents: number | null;
19719
+ created_at: string | null;
19720
+ created_by: string | null;
19721
+ customer_id: string | null;
19722
+ customer_name: string | null;
19723
+ duration_minutes: number | null;
19724
+ end_at: string | null;
19725
+ id: string | null;
19726
+ needs_detail_review: boolean | null;
19727
+ notes: string | null;
19728
+ project_number: string | null;
19729
+ review_reasons: string[] | null;
19730
+ start_at: string | null;
19731
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
19732
+ updated_at: string | null;
19733
+ viewer_role: string | null;
19734
+ werkbon_id: string | null;
19735
+ work_address: string | null;
19736
+ };
19737
+ Relationships: [{
19738
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19739
+ columns: ["werkbon_id"];
19740
+ isOneToOne: false;
19741
+ referencedRelation: "werkbonnen";
19742
+ referencedColumns: ["id"];
19743
+ }];
19744
+ };
19774
19745
  product_group_stock_view: {
19775
19746
  Row: {
19776
19747
  item_count: number | null;
@@ -20366,6 +20337,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20366
20337
  Args: never;
20367
20338
  Returns: number;
20368
20339
  };
20340
+ calculate_floriday_desired_stock: {
20341
+ Args: {
20342
+ p_connection_id: string;
20343
+ p_product_id: string;
20344
+ };
20345
+ Returns: {
20346
+ desired_availability: boolean;
20347
+ desired_quantity: number;
20348
+ erp_available: number;
20349
+ stock_mode: string;
20350
+ }[];
20351
+ };
20369
20352
  calculate_layer_stock: {
20370
20353
  Args: {
20371
20354
  p_product_id: string;
@@ -20427,6 +20410,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20427
20410
  is_herprint: boolean;
20428
20411
  kopieen: number;
20429
20412
  layout_id: string | null;
20413
+ lokaal_opgeslagen_op: string | null;
20414
+ lokale_pdf_fout: string | null;
20415
+ lokale_pdf_status: string | null;
20430
20416
  opgepakt_op: string | null;
20431
20417
  paginas: number;
20432
20418
  payload: import("./types").Json;
@@ -20435,6 +20421,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20435
20421
  pogingen: number;
20436
20422
  printer_id: string | null;
20437
20423
  render_html: string | null;
20424
+ resultaat_pdf_base64: string | null;
20438
20425
  status: Database["public"]["Enums"]["print_job_status"];
20439
20426
  updated_at: string;
20440
20427
  volgende_poging: string | null;
@@ -20456,6 +20443,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20456
20443
  attempts: number;
20457
20444
  connection_id: string;
20458
20445
  created_at: string;
20446
+ dead_lettered_at: string | null;
20459
20447
  desired_available: boolean | null;
20460
20448
  gateway_attempt_id: string | null;
20461
20449
  id: string;
@@ -20464,9 +20452,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20464
20452
  locked_by: string | null;
20465
20453
  next_attempt_at: string;
20466
20454
  number_of_pieces: number;
20455
+ product_id: string | null;
20467
20456
  sent_at: string | null;
20468
20457
  status: string;
20458
+ stock_mode: string | null;
20469
20459
  superseded_by: string | null;
20460
+ target_week: number | null;
20461
+ target_year: number | null;
20470
20462
  trade_item_id: string;
20471
20463
  updated_at: string;
20472
20464
  user_id: string;
@@ -20526,6 +20518,53 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20526
20518
  isSetofReturn: true;
20527
20519
  };
20528
20520
  };
20521
+ claim_pdf_print_jobs: {
20522
+ Args: {
20523
+ _max?: number;
20524
+ };
20525
+ Returns: {
20526
+ agent_id: string | null;
20527
+ bron_job_id: string | null;
20528
+ created_at: string;
20529
+ documentnaam: string;
20530
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
20531
+ extern_job_id: string | null;
20532
+ foutmelding: string | null;
20533
+ gebruiker_id: string | null;
20534
+ gebruiker_naam: string;
20535
+ gebruikte_bron: string | null;
20536
+ gebruikte_layout_id: string | null;
20537
+ gestart_op: string | null;
20538
+ herkomst: string | null;
20539
+ id: string;
20540
+ idempotentie_sleutel: string | null;
20541
+ is_herprint: boolean;
20542
+ kopieen: number;
20543
+ layout_id: string | null;
20544
+ lokaal_opgeslagen_op: string | null;
20545
+ lokale_pdf_fout: string | null;
20546
+ lokale_pdf_status: string | null;
20547
+ opgepakt_op: string | null;
20548
+ paginas: number;
20549
+ payload: import("./types").Json;
20550
+ pdf_base64: string | null;
20551
+ pdf_url: string | null;
20552
+ pogingen: number;
20553
+ printer_id: string | null;
20554
+ render_html: string | null;
20555
+ resultaat_pdf_base64: string | null;
20556
+ status: Database["public"]["Enums"]["print_job_status"];
20557
+ updated_at: string;
20558
+ volgende_poging: string | null;
20559
+ voltooid_op: string | null;
20560
+ }[];
20561
+ SetofOptions: {
20562
+ from: "*";
20563
+ to: "print_jobs";
20564
+ isOneToOne: false;
20565
+ isSetofReturn: true;
20566
+ };
20567
+ };
20529
20568
  claim_print_jobs: {
20530
20569
  Args: {
20531
20570
  _agent_id: string;
@@ -20550,6 +20589,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20550
20589
  is_herprint: boolean;
20551
20590
  kopieen: number;
20552
20591
  layout_id: string | null;
20592
+ lokaal_opgeslagen_op: string | null;
20593
+ lokale_pdf_fout: string | null;
20594
+ lokale_pdf_status: string | null;
20553
20595
  opgepakt_op: string | null;
20554
20596
  paginas: number;
20555
20597
  payload: import("./types").Json;
@@ -20558,6 +20600,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20558
20600
  pogingen: number;
20559
20601
  printer_id: string | null;
20560
20602
  render_html: string | null;
20603
+ resultaat_pdf_base64: string | null;
20561
20604
  status: Database["public"]["Enums"]["print_job_status"];
20562
20605
  updated_at: string;
20563
20606
  volgende_poging: string | null;
@@ -20698,6 +20741,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20698
20741
  order_id: string;
20699
20742
  order_source: string;
20700
20743
  pick_date: string;
20744
+ printed_at: string;
20745
+ printed_today: boolean;
20701
20746
  status: string;
20702
20747
  }[];
20703
20748
  };
@@ -20894,6 +20939,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20894
20939
  };
20895
20940
  Returns: string;
20896
20941
  };
20942
+ floriday_capture_stock_snapshot: {
20943
+ Args: never;
20944
+ Returns: number;
20945
+ };
20946
+ floriday_cleanup_stock_queue_v2: {
20947
+ Args: never;
20948
+ Returns: undefined;
20949
+ };
20950
+ floriday_compact_stock_snapshots: {
20951
+ Args: never;
20952
+ Returns: undefined;
20953
+ };
20954
+ floriday_default_owner: {
20955
+ Args: {
20956
+ p_connection_id: string;
20957
+ };
20958
+ Returns: string;
20959
+ };
20897
20960
  floriday_effective_price: {
20898
20961
  Args: {
20899
20962
  _buyer_id: string;
@@ -20911,6 +20974,34 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20911
20974
  source_id: string;
20912
20975
  }[];
20913
20976
  };
20977
+ floriday_fill_publish_horizon: {
20978
+ Args: never;
20979
+ Returns: number;
20980
+ };
20981
+ floriday_ingest_sales_orders: {
20982
+ Args: {
20983
+ p_limit?: number;
20984
+ };
20985
+ Returns: number;
20986
+ };
20987
+ floriday_publish_horizon_weeks: {
20988
+ Args: never;
20989
+ Returns: number;
20990
+ };
20991
+ floriday_recompute_inventory: {
20992
+ Args: {
20993
+ p_connection_id: string;
20994
+ p_force?: boolean;
20995
+ p_product_id: string;
20996
+ };
20997
+ Returns: undefined;
20998
+ };
20999
+ floriday_requeue_dead_letters: {
21000
+ Args: {
21001
+ p_connection_id?: string;
21002
+ };
21003
+ Returns: number;
21004
+ };
20914
21005
  format_cart_number: {
20915
21006
  Args: {
20916
21007
  p_pick_date: string;
@@ -21127,6 +21218,131 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21127
21218
  Args: never;
21128
21219
  Returns: string;
21129
21220
  };
21221
+ handover_get: {
21222
+ Args: {
21223
+ _module_id: string;
21224
+ };
21225
+ Returns: import("./types").Json;
21226
+ };
21227
+ handover_kern_naam: {
21228
+ Args: {
21229
+ _naam: string;
21230
+ };
21231
+ Returns: string;
21232
+ };
21233
+ handover_ketenmodel: {
21234
+ Args: never;
21235
+ Returns: import("./types").Json;
21236
+ };
21237
+ handover_kruisconflicten: {
21238
+ Args: never;
21239
+ Returns: import("./types").Json;
21240
+ };
21241
+ handover_list: {
21242
+ Args: never;
21243
+ Returns: import("./types").Json;
21244
+ };
21245
+ handover_mag_schrijven: {
21246
+ Args: {
21247
+ _module_id: string;
21248
+ };
21249
+ Returns: boolean;
21250
+ };
21251
+ handover_norm_naam: {
21252
+ Args: {
21253
+ _naam: string;
21254
+ };
21255
+ Returns: string;
21256
+ };
21257
+ handover_publish: {
21258
+ Args: {
21259
+ _bevindingen?: string;
21260
+ _bezit_tabellen?: string[];
21261
+ _conflicten_snapshot?: import("./types").Json;
21262
+ _contractfuncties?: string[];
21263
+ _inhoud_md: string;
21264
+ _module_id: string;
21265
+ _module_titel: string;
21266
+ _ontbrekende_contracten?: string[];
21267
+ _samenvatting?: string;
21268
+ };
21269
+ Returns: number;
21270
+ };
21271
+ handover_publish_via_token: {
21272
+ Args: {
21273
+ _bevindingen?: string;
21274
+ _bezit_tabellen?: string[];
21275
+ _conflicten_snapshot?: import("./types").Json;
21276
+ _contractfuncties?: string[];
21277
+ _inhoud_md: string;
21278
+ _module_id: string;
21279
+ _module_titel: string;
21280
+ _ontbrekende_contracten?: string[];
21281
+ _samenvatting?: string;
21282
+ _token_hash: string;
21283
+ };
21284
+ Returns: number;
21285
+ };
21286
+ handover_status: {
21287
+ Args: never;
21288
+ Returns: import("./types").Json;
21289
+ };
21290
+ handover_synonym_kern: {
21291
+ Args: {
21292
+ _naam: string;
21293
+ };
21294
+ Returns: string;
21295
+ };
21296
+ handover_token_intrekken: {
21297
+ Args: {
21298
+ _id: string;
21299
+ };
21300
+ Returns: boolean;
21301
+ };
21302
+ handover_token_lijst: {
21303
+ Args: never;
21304
+ Returns: import("./types").Json;
21305
+ };
21306
+ handover_token_maken: {
21307
+ Args: {
21308
+ _label?: string;
21309
+ _module_id: string;
21310
+ };
21311
+ Returns: string;
21312
+ };
21313
+ handover_update: {
21314
+ Args: {
21315
+ _bezit_tabellen?: string[];
21316
+ _contractfuncties?: string[];
21317
+ _herzieningstermijn_dagen?: number;
21318
+ _inhoud_md?: string;
21319
+ _module_id: string;
21320
+ _module_titel?: string;
21321
+ _samenvatting?: string;
21322
+ _versie: number;
21323
+ };
21324
+ Returns: boolean;
21325
+ } | {
21326
+ Args: {
21327
+ _bevindingen?: string;
21328
+ _bezit_tabellen?: string[];
21329
+ _contractfuncties?: string[];
21330
+ _herzieningstermijn_dagen?: number;
21331
+ _inhoud_md?: string;
21332
+ _module_id: string;
21333
+ _module_titel?: string;
21334
+ _ontbrekende_contracten?: string[];
21335
+ _samenvatting?: string;
21336
+ _versie: number;
21337
+ };
21338
+ Returns: boolean;
21339
+ };
21340
+ handover_versies: {
21341
+ Args: {
21342
+ _module_id: string;
21343
+ };
21344
+ Returns: import("./types").Json;
21345
+ };
21130
21346
  has_module_permission: {
21131
21347
  Args: {
21132
21348
  _min: string;
@@ -21146,6 +21362,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21146
21362
  Args: never;
21147
21363
  Returns: boolean;
21148
21364
  };
21365
+ instructie_get: {
21366
+ Args: {
21367
+ _sleutel: string;
21368
+ };
21369
+ Returns: import("./types").Json;
21370
+ };
21371
+ instructie_list: {
21372
+ Args: never;
21373
+ Returns: import("./types").Json;
21374
+ };
21375
+ instructie_publish: {
21376
+ Args: {
21377
+ _inhoud_md: string;
21378
+ _sleutel: string;
21379
+ _titel: string;
21380
+ _toelichting?: string;
21381
+ };
21382
+ Returns: number;
21383
+ };
21149
21384
  invoice_create_from_source: {
21150
21385
  Args: {
21151
21386
  _payload?: import("./types").Json;
@@ -21370,6 +21605,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21370
21605
  };
21371
21606
  Returns: boolean;
21372
21607
  };
21608
+ logistics_barcode_lookup: {
21609
+ Args: {
21610
+ p_barcode: string;
21611
+ };
21612
+ Returns: import("./types").Json;
21613
+ };
21373
21614
  logistics_buffer_criteria: {
21374
21615
  Args: {
21375
21616
  p_settings: import("./types").Json;
@@ -21406,6 +21647,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21406
21647
  };
21407
21648
  Returns: number;
21408
21649
  };
21650
+ logistics_cancel_orphan_tasks: {
21651
+ Args: never;
21652
+ Returns: number;
21653
+ };
21409
21654
  logistics_capacity_day_check: {
21410
21655
  Args: {
21411
21656
  p_from?: string;
@@ -21426,6 +21671,41 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21426
21671
  };
21427
21672
  Returns: number;
21428
21673
  };
21674
+ logistics_cart_barcode_value: {
21675
+ Args: {
21676
+ _cart_id: string;
21677
+ };
21678
+ Returns: string;
21679
+ };
21680
+ logistics_cart_index: {
21681
+ Args: {
21682
+ p_from?: string;
21683
+ p_to?: string;
21684
+ };
21685
+ Returns: {
21686
+ cart_id: string;
21687
+ cart_index: number;
21688
+ cart_label: string;
21689
+ delivery_date: string;
21690
+ is_announced: boolean;
21691
+ is_controlled: boolean;
21692
+ is_printed: boolean;
21693
+ is_shared: boolean;
21694
+ order_number: string;
21695
+ order_source: string;
21696
+ order_uuid: string;
21697
+ pick_date: string;
21698
+ printed_at: string;
21699
+ shifted: boolean;
21700
+ task_status: string;
21701
+ }[];
21702
+ };
21703
+ logistics_cart_slip_plan: {
21704
+ Args: {
21705
+ p_order_id: string;
21706
+ };
21707
+ Returns: import("./types").Json;
21708
+ };
21429
21709
  logistics_check_order_allowed: {
21430
21710
  Args: {
21431
21711
  p_lines: import("./types").Json;
@@ -21574,6 +21854,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21574
21854
  isSetofReturn: false;
21575
21855
  };
21576
21856
  };
21857
+ logistics_consistency_check: {
21858
+ Args: never;
21859
+ Returns: {
21860
+ agenda_carts: number;
21861
+ announced_carts: number;
21862
+ control_carts: number;
21863
+ delivery_carts: number;
21864
+ ok: boolean;
21865
+ orphan_tasks: number;
21866
+ pick_date: string;
21867
+ raw_carts: number;
21868
+ sales_carts: number;
21869
+ station_carts: number;
21870
+ }[];
21871
+ };
21577
21872
  logistics_delay_customer_email: {
21578
21873
  Args: {
21579
21874
  p_customer: string;
@@ -21587,12 +21882,35 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21587
21882
  subject: string;
21588
21883
  }[];
21589
21884
  };
21885
+ logistics_delivery_agenda: {
21886
+ Args: {
21887
+ p_from?: string;
21888
+ p_to?: string;
21889
+ };
21890
+ Returns: {
21891
+ announced_count: number;
21892
+ cart_count: number;
21893
+ controlled_count: number;
21894
+ delivery_date: string;
21895
+ order_count: number;
21896
+ orders: import("./types").Json;
21897
+ plant_count: number;
21898
+ printed_count: number;
21899
+ }[];
21900
+ };
21590
21901
  logistics_document_layout: {
21591
21902
  Args: {
21592
21903
  _document_code: string;
21593
21904
  };
21594
21905
  Returns: import("./types").Json;
21595
21906
  };
21907
+ logistics_document_layout_v2: {
21908
+ Args: {
21909
+ _document_code: string;
21910
+ _is_partial?: boolean;
21911
+ };
21912
+ Returns: import("./types").Json;
21913
+ };
21596
21914
  logistics_document_station: {
21597
21915
  Args: {
21598
21916
  _document_code: string;
@@ -21618,6 +21936,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21618
21936
  };
21619
21937
  Returns: import("./types").Json;
21620
21938
  };
21939
+ logistics_ensure_cart_barcode: {
21940
+ Args: {
21941
+ _cart_id: string;
21942
+ };
21943
+ Returns: string;
21944
+ };
21621
21945
  logistics_fail_task: {
21622
21946
  Args: {
21623
21947
  p_error: string;
@@ -21663,6 +21987,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21663
21987
  isSetofReturn: false;
21664
21988
  };
21665
21989
  };
21990
+ logistics_floriday_cart_plan: {
21991
+ Args: {
21992
+ p_order_id: string;
21993
+ };
21994
+ Returns: {
21995
+ carrier_type: string;
21996
+ idx: number;
21997
+ packages: number;
21998
+ }[];
21999
+ };
21666
22000
  logistics_floriday_claim_pushes: {
21667
22001
  Args: {
21668
22002
  _lease_seconds?: number;
@@ -21767,6 +22101,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21767
22101
  };
21768
22102
  Returns: number;
21769
22103
  };
22104
+ logistics_order_overview: {
22105
+ Args: {
22106
+ p_from?: string;
22107
+ p_to?: string;
22108
+ };
22109
+ Returns: {
22110
+ cart_count: number;
22111
+ customer_name: string;
22112
+ delivery_date: string;
22113
+ order_number: string;
22114
+ order_source: string;
22115
+ order_uuid: string;
22116
+ pick_date: string;
22117
+ plant_count: number;
22118
+ printed_at: string;
22119
+ shifted: boolean;
22120
+ status: string;
22121
+ }[];
22122
+ };
21770
22123
  logistics_order_pick_day: {
21771
22124
  Args: {
21772
22125
  p_order_ref: string;
@@ -21779,6 +22132,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21779
22132
  };
21780
22133
  Returns: string;
21781
22134
  };
22135
+ logistics_pick_agenda: {
22136
+ Args: {
22137
+ p_from?: string;
22138
+ p_to?: string;
22139
+ };
22140
+ Returns: {
22141
+ cart_count: number;
22142
+ in_preparation: number;
22143
+ order_count: number;
22144
+ orders: import("./types").Json;
22145
+ pick_date: string;
22146
+ plant_count: number;
22147
+ ready: number;
22148
+ shifted_count: number;
22149
+ }[];
22150
+ };
21782
22151
  logistics_pick_email_purpose: {
21783
22152
  Args: never;
21784
22153
  Returns: string;
@@ -21833,6 +22202,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21833
22202
  };
21834
22203
  Returns: undefined;
21835
22204
  };
22205
+ logistics_plan_floriday_order: {
22206
+ Args: {
22207
+ p_buffer_id?: string;
22208
+ p_order_id: string;
22209
+ };
22210
+ Returns: number;
22211
+ };
21836
22212
  logistics_plan_impact_orders: {
21837
22213
  Args: {
21838
22214
  p_order_id: string;
@@ -21938,6 +22314,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21938
22314
  };
21939
22315
  Returns: import("./types").Json;
21940
22316
  };
22317
+ logistics_resolve_pick_document: {
22318
+ Args: {
22319
+ _is_herprint: boolean;
22320
+ _queue_item_id: string;
22321
+ _session_id: string;
22322
+ _voorbeeld: boolean;
22323
+ };
22324
+ Returns: import("./types").Json;
22325
+ };
21941
22326
  logistics_resolve_settings: {
21942
22327
  Args: {
21943
22328
  p_config_id: string;
@@ -22017,6 +22402,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22017
22402
  };
22018
22403
  Returns: string;
22019
22404
  };
22405
+ logistics_shipping_note_from_barcode: {
22406
+ Args: {
22407
+ p_allow_reprint?: boolean;
22408
+ p_barcode: string;
22409
+ p_station_id?: string;
22410
+ };
22411
+ Returns: import("./types").Json;
22412
+ };
22020
22413
  logistics_supersede_stale_tasks: {
22021
22414
  Args: {
22022
22415
  p_keep: string[];
@@ -22238,6 +22631,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22238
22631
  print_job_id: string | null;
22239
22632
  printed_at: string | null;
22240
22633
  printed_by: string | null;
22634
+ printed_cart_ids: import("./types").Json;
22241
22635
  printer_id: string | null;
22242
22636
  priority: number;
22243
22637
  reference: string | null;
@@ -22287,6 +22681,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22287
22681
  print_job_id: string | null;
22288
22682
  printed_at: string | null;
22289
22683
  printed_by: string | null;
22684
+ printed_cart_ids: import("./types").Json;
22290
22685
  printer_id: string | null;
22291
22686
  priority: number;
22292
22687
  reference: string | null;
@@ -22341,6 +22736,56 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22341
22736
  print_job_id: string | null;
22342
22737
  printed_at: string | null;
22343
22738
  printed_by: string | null;
22739
+ printed_cart_ids: import("./types").Json;
22740
+ printer_id: string | null;
22741
+ priority: number;
22742
+ reference: string | null;
22743
+ route: string | null;
22744
+ screen_id: string | null;
22745
+ station_id: string | null;
22746
+ status_id: string | null;
22747
+ updated_at: string;
22748
+ warnings: import("./types").Json;
22749
+ };
22750
+ SetofOptions: {
22751
+ from: "*";
22752
+ to: "pick_queue";
22753
+ isOneToOne: true;
22754
+ isSetofReturn: false;
22755
+ };
22756
+ };
22757
+ pick_complete_print_cart: {
22758
+ Args: {
22759
+ _cart_id: string;
22760
+ _printer_id: string;
22761
+ _queue_item_id: string;
22762
+ _session_id: string;
22763
+ };
22764
+ Returns: {
22765
+ announced_at: string;
22766
+ assigned_user_id: string | null;
22767
+ barcode: string | null;
22768
+ cancelled_at: string | null;
22769
+ cart_count: number;
22770
+ completed_at: string | null;
22771
+ country_code: string | null;
22772
+ created_at: string;
22773
+ customer_name: string | null;
22774
+ delivery_address: string | null;
22775
+ document_number: string | null;
22776
+ document_type_id: string | null;
22777
+ due_at: string | null;
22778
+ id: string;
22779
+ is_urgent: boolean;
22780
+ line_count: number;
22781
+ order_number: string | null;
22782
+ order_type: string | null;
22783
+ payload: import("./types").Json;
22784
+ print_count: number;
22785
+ print_job_id: string | null;
22786
+ printed_at: string | null;
22787
+ printed_by: string | null;
22788
+ printed_cart_ids: import("./types").Json;
22344
22789
  printer_id: string | null;
22345
22790
  priority: number;
22346
22791
  reference: string | null;
@@ -22384,6 +22829,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22384
22829
  _session_id?: string;
22385
22830
  };
22386
22831
  Returns: string;
22832
+ } | {
22833
+ Args: {
22834
+ _cart_id: string;
22835
+ _is_herprint: boolean;
22836
+ _printer_id: string;
22837
+ _queue_item_id: string;
22838
+ _session_id: string;
22839
+ };
22840
+ Returns: string;
22387
22841
  };
22388
22842
  pick_order_context: {
22389
22843
  Args: {
@@ -22392,6 +22846,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22392
22846
  };
22393
22847
  Returns: import("./types").Json;
22394
22848
  };
22849
+ pick_preview_job: {
22850
+ Args: {
22851
+ _queue_item_id: string;
22852
+ _station_slug: string;
22853
+ };
22854
+ Returns: import("./types").Json;
22855
+ };
22395
22856
  pick_print_job_status: {
22396
22857
  Args: {
22397
22858
  _job_id: string;
@@ -22457,6 +22918,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22457
22918
  print_job_id: string | null;
22458
22919
  printed_at: string | null;
22459
22920
  printed_by: string | null;
22921
+ printed_cart_ids: import("./types").Json;
22922
+ printer_id: string | null;
22923
+ priority: number;
22924
+ reference: string | null;
22925
+ route: string | null;
22926
+ screen_id: string | null;
22927
+ station_id: string | null;
22928
+ status_id: string | null;
22929
+ updated_at: string;
22930
+ warnings: import("./types").Json;
22931
+ };
22932
+ SetofOptions: {
22933
+ from: "*";
22934
+ to: "pick_queue";
22935
+ isOneToOne: true;
22936
+ isSetofReturn: false;
22937
+ };
22938
+ } | {
22939
+ Args: {
22940
+ _cart_id?: string;
22941
+ _queue_item_id: string;
22942
+ _session_id: string;
22943
+ };
22944
+ Returns: {
22945
+ announced_at: string;
22946
+ assigned_user_id: string | null;
22947
+ barcode: string | null;
22948
+ cancelled_at: string | null;
22949
+ cart_count: number;
22950
+ completed_at: string | null;
22951
+ country_code: string | null;
22952
+ created_at: string;
22953
+ customer_name: string | null;
22954
+ delivery_address: string | null;
22955
+ document_number: string | null;
22956
+ document_type_id: string | null;
22957
+ due_at: string | null;
22958
+ id: string;
22959
+ is_urgent: boolean;
22960
+ line_count: number;
22961
+ order_number: string | null;
22962
+ order_type: string | null;
22963
+ payload: import("./types").Json;
22964
+ print_count: number;
22965
+ print_job_id: string | null;
22966
+ printed_at: string | null;
22967
+ printed_by: string | null;
22968
+ printed_cart_ids: import("./types").Json;
22460
22969
  printer_id: string | null;
22461
22970
  priority: number;
22462
22971
  reference: string | null;
@@ -22569,6 +23078,66 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22569
23078
  };
22570
23079
  Returns: undefined;
22571
23080
  };
23081
+ planning_cancel_item: {
23082
+ Args: {
23083
+ _id: string;
23084
+ };
23085
+ Returns: undefined;
23086
+ };
23087
+ planning_list: {
23088
+ Args: {
23089
+ _from: string;
23090
+ _to: string;
23091
+ };
23092
+ Returns: {
23093
+ assigned_monteur_id: string | null;
23094
+ assistants: import("./types").Json | null;
23095
+ budget_mandate_cents: number | null;
23096
+ created_at: string | null;
23097
+ created_by: string | null;
23098
+ customer_id: string | null;
23099
+ customer_name: string | null;
23100
+ duration_minutes: number | null;
23101
+ end_at: string | null;
23102
+ id: string | null;
23103
+ needs_detail_review: boolean | null;
23104
+ notes: string | null;
23105
+ project_number: string | null;
23106
+ review_reasons: string[] | null;
23107
+ start_at: string | null;
23108
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
23109
+ updated_at: string | null;
23110
+ viewer_role: string | null;
23111
+ werkbon_id: string | null;
23112
+ work_address: string | null;
23113
+ }[];
23114
+ SetofOptions: {
23115
+ from: "*";
23116
+ to: "planning_overview";
23117
+ isOneToOne: false;
23118
+ isSetofReturn: true;
23119
+ };
23120
+ };
23121
+ planning_set_assistants: {
23122
+ Args: {
23123
+ _monteur_ids: string[];
23124
+ _planning_item_id: string;
23125
+ };
23126
+ Returns: undefined;
23127
+ };
23128
+ planning_upsert_item: {
23129
+ Args: {
23130
+ _assigned_monteur_id: string;
23131
+ _end_at: string;
23132
+ _notes?: string;
23133
+ _start_at: string;
23134
+ _werkbon_id: string;
23135
+ };
23136
+ Returns: {
23137
+ action: string;
23138
+ id: string;
23139
+ }[];
23140
+ };
22572
23141
  print_preview_toestaan: {
22573
23142
  Args: {
22574
23143
  _max?: number;
@@ -22741,6 +23310,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22741
23310
  };
22742
23311
  Returns: string;
22743
23312
  };
23313
+ resolve_print_job_printer_id: {
23314
+ Args: {
23315
+ _job: Database["public"]["Tables"]["print_jobs"]["Row"];
23316
+ };
23317
+ Returns: string;
23318
+ };
22744
23319
  resolve_product_id_for_item: {
22745
23320
  Args: {
22746
23321
  p_product_name: string;
@@ -23144,6 +23719,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23144
23719
  };
23145
23720
  Returns: string[];
23146
23721
  };
23722
+ start_time_log_at: {
23723
+ Args: {
23724
+ p_clicked_at?: string;
23725
+ p_employee_id: string;
23726
+ p_start_lat?: number;
23727
+ p_start_lng?: number;
23728
+ p_type: string;
23729
+ p_work_order_id?: string;
23730
+ };
23731
+ Returns: import("./types").Json;
23732
+ };
23733
+ stop_time_log: {
23734
+ Args: {
23735
+ p_employee_id: string;
23736
+ p_end_lat?: number;
23737
+ p_end_lng?: number;
23738
+ p_end_time: string;
23739
+ };
23740
+ Returns: import("./types").Json;
23741
+ };
23147
23742
  switch_time_log: {
23148
23743
  Args: {
23149
23744
  p_employee_id: string;
@@ -23332,6 +23927,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23332
23927
  };
23333
23928
  CompositeTypes: { [_ in never]: never; };
23334
23929
  }, {
23335
- PostgrestVersion: "14.17";
23930
+ PostgrestVersion: "14.5";
23336
23931
  }>;
23337
23932
  //# sourceMappingURL=client.server.d.ts.map