@flowselections/floriday-afhandeling-module 1.0.41 → 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 (29) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.js +54 -54
  2. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  3. package/dist-lib/components/afhandeling/ControlePage.js +51 -9
  4. package/dist-lib/components/afhandeling/DagDetailDialog.js +1 -1
  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/pickstation/PakbonTemplate.js +70 -70
  8. package/dist-lib/hooks/usePickAgenda.d.ts +1 -1
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1256 -824
  10. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/client.server.d.ts +1256 -824
  12. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.server.js +1 -1
  14. package/dist-lib/integrations/supabase/moduleClient.d.ts +1256 -824
  15. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/types.d.ts +1269 -853
  17. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  18. package/dist-lib/lib/afhandelingSettings.functions.d.ts +2189 -1321
  19. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  21. package/dist-lib/lib/carriers.functions.d.ts +5315 -3155
  22. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/cartAssignments.functions.d.ts +5315 -3155
  24. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/cartControl.functions.d.ts +10545 -6245
  26. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday.functions.d.ts +1259 -825
  28. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  29. package/package.json +1 -1
@@ -2852,6 +2852,84 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2852
2852
  };
2853
2853
  Relationships: [];
2854
2854
  };
2855
+ delivery_notes: {
2856
+ Row: {
2857
+ byte_size: number | null;
2858
+ connection_id: string | null;
2859
+ content_type: string;
2860
+ created_at: string;
2861
+ error_message: string | null;
2862
+ fetched_at: string | null;
2863
+ fulfillment_order_id: string | null;
2864
+ http_status: number | null;
2865
+ id: string;
2866
+ label_code: string | null;
2867
+ letter: string | null;
2868
+ load_carrier_index: number | null;
2869
+ load_carrier_type: string | null;
2870
+ order_id: string | null;
2871
+ order_number: string | null;
2872
+ packages: number | null;
2873
+ source: string;
2874
+ status: string;
2875
+ storage_bucket: string;
2876
+ storage_path: string | null;
2877
+ updated_at: string;
2878
+ };
2879
+ Insert: {
2880
+ byte_size?: number | null;
2881
+ connection_id?: string | null;
2882
+ content_type?: string;
2883
+ created_at?: string;
2884
+ error_message?: string | null;
2885
+ fetched_at?: string | null;
2886
+ fulfillment_order_id?: string | null;
2887
+ http_status?: number | null;
2888
+ id?: string;
2889
+ label_code?: string | null;
2890
+ letter?: string | null;
2891
+ load_carrier_index?: number | null;
2892
+ load_carrier_type?: string | null;
2893
+ order_id?: string | null;
2894
+ order_number?: string | null;
2895
+ packages?: number | null;
2896
+ source?: string;
2897
+ status?: string;
2898
+ storage_bucket?: string;
2899
+ storage_path?: string | null;
2900
+ updated_at?: string;
2901
+ };
2902
+ Update: {
2903
+ byte_size?: number | null;
2904
+ connection_id?: string | null;
2905
+ content_type?: string;
2906
+ created_at?: string;
2907
+ error_message?: string | null;
2908
+ fetched_at?: string | null;
2909
+ fulfillment_order_id?: string | null;
2910
+ http_status?: number | null;
2911
+ id?: string;
2912
+ label_code?: string | null;
2913
+ letter?: string | null;
2914
+ load_carrier_index?: number | null;
2915
+ load_carrier_type?: string | null;
2916
+ order_id?: string | null;
2917
+ order_number?: string | null;
2918
+ packages?: number | null;
2919
+ source?: string;
2920
+ status?: string;
2921
+ storage_bucket?: string;
2922
+ storage_path?: string | null;
2923
+ updated_at?: string;
2924
+ };
2925
+ Relationships: [{
2926
+ foreignKeyName: "delivery_notes_order_id_fkey";
2927
+ columns: ["order_id"];
2928
+ isOneToOne: false;
2929
+ referencedRelation: "orders";
2930
+ referencedColumns: ["id"];
2931
+ }];
2932
+ };
2855
2933
  document_bronregels: {
2856
2934
  Row: {
2857
2935
  bron: string;
@@ -5905,10 +5983,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5905
5983
  };
5906
5984
  floriday_connections: {
5907
5985
  Row: {
5908
- access_token: string | null;
5909
5986
  api_key: string;
5910
- client_id: string;
5911
- client_secret: string;
5912
5987
  created_at: string;
5913
5988
  customers_endpoint: string | null;
5914
5989
  environment: string;
@@ -5923,10 +5998,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5923
5998
  updated_at: string;
5924
5999
  };
5925
6000
  Insert: {
5926
- access_token?: string | null;
5927
6001
  api_key: string;
5928
- client_id: string;
5929
- client_secret: string;
5930
6002
  created_at?: string;
5931
6003
  customers_endpoint?: string | null;
5932
6004
  environment: string;
@@ -5941,10 +6013,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5941
6013
  updated_at?: string;
5942
6014
  };
5943
6015
  Update: {
5944
- access_token?: string | null;
5945
6016
  api_key?: string;
5946
- client_id?: string;
5947
- client_secret?: string;
5948
6017
  created_at?: string;
5949
6018
  customers_endpoint?: string | null;
5950
6019
  environment?: string;
@@ -6028,6 +6097,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6028
6097
  attempts: number;
6029
6098
  connection_id: string;
6030
6099
  created_at: string;
6100
+ dead_lettered_at: string | null;
6031
6101
  desired_available: boolean | null;
6032
6102
  gateway_attempt_id: string | null;
6033
6103
  id: string;
@@ -6036,9 +6106,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6036
6106
  locked_by: string | null;
6037
6107
  next_attempt_at: string;
6038
6108
  number_of_pieces: number;
6109
+ product_id: string | null;
6039
6110
  sent_at: string | null;
6040
6111
  status: string;
6112
+ stock_mode: string | null;
6041
6113
  superseded_by: string | null;
6114
+ target_week: number | null;
6115
+ target_year: number | null;
6042
6116
  trade_item_id: string;
6043
6117
  updated_at: string;
6044
6118
  user_id: string;
@@ -6047,6 +6121,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6047
6121
  attempts?: number;
6048
6122
  connection_id: string;
6049
6123
  created_at?: string;
6124
+ dead_lettered_at?: string | null;
6050
6125
  desired_available?: boolean | null;
6051
6126
  gateway_attempt_id?: string | null;
6052
6127
  id?: string;
@@ -6055,9 +6130,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6055
6130
  locked_by?: string | null;
6056
6131
  next_attempt_at?: string;
6057
6132
  number_of_pieces?: number;
6133
+ product_id?: string | null;
6058
6134
  sent_at?: string | null;
6059
6135
  status?: string;
6136
+ stock_mode?: string | null;
6060
6137
  superseded_by?: string | null;
6138
+ target_week?: number | null;
6139
+ target_year?: number | null;
6061
6140
  trade_item_id: string;
6062
6141
  updated_at?: string;
6063
6142
  user_id: string;
@@ -6066,6 +6145,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6066
6145
  attempts?: number;
6067
6146
  connection_id?: string;
6068
6147
  created_at?: string;
6148
+ dead_lettered_at?: string | null;
6069
6149
  desired_available?: boolean | null;
6070
6150
  gateway_attempt_id?: string | null;
6071
6151
  id?: string;
@@ -6074,9 +6154,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6074
6154
  locked_by?: string | null;
6075
6155
  next_attempt_at?: string;
6076
6156
  number_of_pieces?: number;
6157
+ product_id?: string | null;
6077
6158
  sent_at?: string | null;
6078
6159
  status?: string;
6160
+ stock_mode?: string | null;
6079
6161
  superseded_by?: string | null;
6162
+ target_week?: number | null;
6163
+ target_year?: number | null;
6080
6164
  trade_item_id?: string;
6081
6165
  updated_at?: string;
6082
6166
  user_id?: string;
@@ -6485,6 +6569,87 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6485
6569
  referencedColumns: ["id"];
6486
6570
  }];
6487
6571
  };
6572
+ floriday_inventory_settings: {
6573
+ Row: {
6574
+ buffer_quantity: number;
6575
+ connection_id: string;
6576
+ created_at: string;
6577
+ desired_availability: boolean;
6578
+ desired_quantity: number;
6579
+ fixed_quantity: number | null;
6580
+ floriday_trade_item_id: string | null;
6581
+ id: string;
6582
+ last_confirmed_at: string | null;
6583
+ last_enqueued_at: string | null;
6584
+ last_published_at: string | null;
6585
+ last_sync_error: string | null;
6586
+ manual_quantity: number | null;
6587
+ maximum_quantity: number | null;
6588
+ product_id: string;
6589
+ quantity_control: string;
6590
+ remote_available: boolean | null;
6591
+ remote_checked_at: string | null;
6592
+ remote_quantity: number | null;
6593
+ stock_mode: string;
6594
+ sync_status: string;
6595
+ updated_at: string;
6596
+ updated_by: string | null;
6597
+ user_id: string;
6598
+ };
6599
+ Insert: {
6600
+ buffer_quantity?: number;
6601
+ connection_id: string;
6602
+ created_at?: string;
6603
+ desired_availability?: boolean;
6604
+ desired_quantity?: number;
6605
+ fixed_quantity?: number | null;
6606
+ floriday_trade_item_id?: string | null;
6607
+ id?: string;
6608
+ last_confirmed_at?: string | null;
6609
+ last_enqueued_at?: string | null;
6610
+ last_published_at?: string | null;
6611
+ last_sync_error?: string | null;
6612
+ manual_quantity?: number | null;
6613
+ maximum_quantity?: number | null;
6614
+ product_id: string;
6615
+ quantity_control?: string;
6616
+ remote_available?: boolean | null;
6617
+ remote_checked_at?: string | null;
6618
+ remote_quantity?: number | null;
6619
+ stock_mode?: string;
6620
+ sync_status?: string;
6621
+ updated_at?: string;
6622
+ updated_by?: string | null;
6623
+ user_id: string;
6624
+ };
6625
+ Update: {
6626
+ buffer_quantity?: number;
6627
+ connection_id?: string;
6628
+ created_at?: string;
6629
+ desired_availability?: boolean;
6630
+ desired_quantity?: number;
6631
+ fixed_quantity?: number | null;
6632
+ floriday_trade_item_id?: string | null;
6633
+ id?: string;
6634
+ last_confirmed_at?: string | null;
6635
+ last_enqueued_at?: string | null;
6636
+ last_published_at?: string | null;
6637
+ last_sync_error?: string | null;
6638
+ manual_quantity?: number | null;
6639
+ maximum_quantity?: number | null;
6640
+ product_id?: string;
6641
+ quantity_control?: string;
6642
+ remote_available?: boolean | null;
6643
+ remote_checked_at?: string | null;
6644
+ remote_quantity?: number | null;
6645
+ stock_mode?: string;
6646
+ sync_status?: string;
6647
+ updated_at?: string;
6648
+ updated_by?: string | null;
6649
+ user_id?: string;
6650
+ };
6651
+ Relationships: [];
6652
+ };
6488
6653
  floriday_invoices_cache: {
6489
6654
  Row: {
6490
6655
  buyer_organization_id: string | null;
@@ -6773,6 +6938,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6773
6938
  };
6774
6939
  Relationships: [];
6775
6940
  };
6941
+ floriday_sales_order_ingest: {
6942
+ Row: {
6943
+ connection_id: string;
6944
+ created_at: string;
6945
+ id: string;
6946
+ impact: import("./types").Json;
6947
+ order_status: string | null;
6948
+ order_version: number;
6949
+ processed_at: string;
6950
+ sales_order_id: string;
6951
+ };
6952
+ Insert: {
6953
+ connection_id: string;
6954
+ created_at?: string;
6955
+ id?: string;
6956
+ impact?: import("./types").Json;
6957
+ order_status?: string | null;
6958
+ order_version?: number;
6959
+ processed_at?: string;
6960
+ sales_order_id: string;
6961
+ };
6962
+ Update: {
6963
+ connection_id?: string;
6964
+ created_at?: string;
6965
+ id?: string;
6966
+ impact?: import("./types").Json;
6967
+ order_status?: string | null;
6968
+ order_version?: number;
6969
+ processed_at?: string;
6970
+ sales_order_id?: string;
6971
+ };
6972
+ Relationships: [];
6973
+ };
6776
6974
  floriday_sales_strategies_cache: {
6777
6975
  Row: {
6778
6976
  connection_id: string;
@@ -6872,6 +7070,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6872
7070
  };
6873
7071
  Relationships: [];
6874
7072
  };
7073
+ floriday_sync_cursors: {
7074
+ Row: {
7075
+ connection_id: string;
7076
+ created_at: string;
7077
+ id: string;
7078
+ last_error: string | null;
7079
+ last_sync_at: string | null;
7080
+ resource_type: string;
7081
+ sequence_number: number;
7082
+ updated_at: string;
7083
+ };
7084
+ Insert: {
7085
+ connection_id: string;
7086
+ created_at?: string;
7087
+ id?: string;
7088
+ last_error?: string | null;
7089
+ last_sync_at?: string | null;
7090
+ resource_type: string;
7091
+ sequence_number?: number;
7092
+ updated_at?: string;
7093
+ };
7094
+ Update: {
7095
+ connection_id?: string;
7096
+ created_at?: string;
7097
+ id?: string;
7098
+ last_error?: string | null;
7099
+ last_sync_at?: string | null;
7100
+ resource_type?: string;
7101
+ sequence_number?: number;
7102
+ updated_at?: string;
7103
+ };
7104
+ Relationships: [];
7105
+ };
6875
7106
  floriday_sync_state: {
6876
7107
  Row: {
6877
7108
  connection_id: string;
@@ -7562,6 +7793,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7562
7793
  };
7563
7794
  Relationships: [];
7564
7795
  };
7796
+ inventory_stock_snapshots: {
7797
+ Row: {
7798
+ connection_id: string;
7799
+ created_at: string;
7800
+ erp_available_quantity: number;
7801
+ floriday_desired_quantity: number;
7802
+ floriday_remote_quantity: number | null;
7803
+ granularity: string;
7804
+ id: string;
7805
+ snapshot_at: string;
7806
+ user_id: string | null;
7807
+ };
7808
+ Insert: {
7809
+ connection_id: string;
7810
+ created_at?: string;
7811
+ erp_available_quantity?: number;
7812
+ floriday_desired_quantity?: number;
7813
+ floriday_remote_quantity?: number | null;
7814
+ granularity?: string;
7815
+ id?: string;
7816
+ snapshot_at?: string;
7817
+ user_id?: string | null;
7818
+ };
7819
+ Update: {
7820
+ connection_id?: string;
7821
+ created_at?: string;
7822
+ erp_available_quantity?: number;
7823
+ floriday_desired_quantity?: number;
7824
+ floriday_remote_quantity?: number | null;
7825
+ granularity?: string;
7826
+ id?: string;
7827
+ snapshot_at?: string;
7828
+ user_id?: string | null;
7829
+ };
7830
+ Relationships: [];
7831
+ };
7565
7832
  invoice_items: {
7566
7833
  Row: {
7567
7834
  created_at: string;
@@ -8070,13 +8337,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8070
8337
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8071
8338
  updated_at?: string;
8072
8339
  };
8073
- Relationships: [{
8074
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8075
- columns: ["legacy_customer_id"];
8076
- isOneToOne: false;
8077
- referencedRelation: "customers";
8078
- referencedColumns: ["id"];
8079
- }];
8340
+ Relationships: [];
8080
8341
  };
8081
8342
  itk_dynamic_fields: {
8082
8343
  Row: {
@@ -8108,104 +8369,278 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8108
8369
  };
8109
8370
  Relationships: [];
8110
8371
  };
8111
- itk_offerte_events: {
8372
+ itk_handover_rechten: {
8112
8373
  Row: {
8113
8374
  created_at: string;
8114
- event_type: string;
8115
8375
  id: string;
8116
- metadata: import("./types").Json;
8117
- offerte_id: string;
8118
- omschrijving: string | null;
8376
+ module_id: string;
8377
+ rol: Database["public"]["Enums"]["app_role"] | null;
8378
+ updated_at: string;
8119
8379
  user_id: string | null;
8120
8380
  };
8121
8381
  Insert: {
8122
8382
  created_at?: string;
8123
- event_type: string;
8124
8383
  id?: string;
8125
- metadata?: import("./types").Json;
8126
- offerte_id: string;
8127
- omschrijving?: string | null;
8384
+ module_id: string;
8385
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8386
+ updated_at?: string;
8128
8387
  user_id?: string | null;
8129
8388
  };
8130
8389
  Update: {
8131
8390
  created_at?: string;
8132
- event_type?: string;
8133
8391
  id?: string;
8134
- metadata?: import("./types").Json;
8135
- offerte_id?: string;
8136
- omschrijving?: string | null;
8392
+ module_id?: string;
8393
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8394
+ updated_at?: string;
8137
8395
  user_id?: string | null;
8138
8396
  };
8139
- Relationships: [{
8140
- foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8141
- columns: ["offerte_id"];
8142
- isOneToOne: false;
8143
- referencedRelation: "itk_offertes";
8144
- referencedColumns: ["id"];
8145
- }];
8397
+ Relationships: [];
8146
8398
  };
8147
- itk_offerte_regels: {
8399
+ itk_handover_tokens: {
8148
8400
  Row: {
8401
+ aangemaakt_door: string | null;
8149
8402
  created_at: string;
8150
8403
  id: string;
8151
- line_total_cents: number;
8152
- offerte_id: string;
8153
- omschrijving: string;
8154
- package_id: string | null;
8155
- quantity: number;
8156
- sort_order: number;
8157
- source: string;
8158
- unit_price_cents: number;
8404
+ is_actief: boolean;
8405
+ laatst_gebruikt_op: string | null;
8406
+ label: string;
8407
+ module_id: string;
8408
+ token_hash: string;
8159
8409
  updated_at: string;
8410
+ verloopt_op: string | null;
8160
8411
  };
8161
8412
  Insert: {
8413
+ aangemaakt_door?: string | null;
8162
8414
  created_at?: string;
8163
8415
  id?: string;
8164
- line_total_cents?: number;
8165
- offerte_id: string;
8166
- omschrijving?: string;
8167
- package_id?: string | null;
8168
- quantity?: number;
8169
- sort_order?: number;
8170
- source?: string;
8171
- unit_price_cents?: number;
8416
+ is_actief?: boolean;
8417
+ laatst_gebruikt_op?: string | null;
8418
+ label?: string;
8419
+ module_id: string;
8420
+ token_hash: string;
8172
8421
  updated_at?: string;
8422
+ verloopt_op?: string | null;
8173
8423
  };
8174
8424
  Update: {
8425
+ aangemaakt_door?: string | null;
8175
8426
  created_at?: string;
8176
8427
  id?: string;
8177
- line_total_cents?: number;
8178
- offerte_id?: string;
8179
- omschrijving?: string;
8180
- package_id?: string | null;
8181
- quantity?: number;
8182
- sort_order?: number;
8183
- source?: string;
8184
- unit_price_cents?: number;
8428
+ is_actief?: boolean;
8429
+ laatst_gebruikt_op?: string | null;
8430
+ label?: string;
8431
+ module_id?: string;
8432
+ token_hash?: string;
8185
8433
  updated_at?: string;
8434
+ verloopt_op?: string | null;
8186
8435
  };
8187
- Relationships: [{
8188
- foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8189
- columns: ["offerte_id"];
8190
- isOneToOne: false;
8191
- referencedRelation: "itk_offertes";
8192
- referencedColumns: ["id"];
8193
- }, {
8194
- foreignKeyName: "itk_offerte_regels_package_id_fkey";
8195
- columns: ["package_id"];
8196
- isOneToOne: false;
8197
- referencedRelation: "werkbon_packages";
8198
- referencedColumns: ["id"];
8199
- }];
8436
+ Relationships: [];
8200
8437
  };
8201
- itk_offerte_settings: {
8438
+ itk_module_handovers: {
8202
8439
  Row: {
8203
- auto_convert_binnen_mandaat: boolean;
8440
+ bevindingen: string | null;
8441
+ bezit_tabellen: string[];
8442
+ conflicten_snapshot: import("./types").Json;
8443
+ contractfuncties: string[];
8204
8444
  created_at: string;
8205
- default_geldigheid_dagen: number;
8206
- default_vat_rate: number;
8445
+ eigenaar_module_id: string | null;
8446
+ gepubliceerd_door: string | null;
8447
+ gepubliceerd_op: string;
8448
+ herzieningstermijn_dagen: number;
8207
8449
  id: string;
8208
- singleton: boolean;
8450
+ inhoud_md: string;
8451
+ is_actueel: boolean;
8452
+ module_id: string;
8453
+ module_titel: string;
8454
+ ontbrekende_contracten: string[];
8455
+ samenvatting: string | null;
8456
+ updated_at: string;
8457
+ versie: number;
8458
+ };
8459
+ Insert: {
8460
+ bevindingen?: string | null;
8461
+ bezit_tabellen?: string[];
8462
+ conflicten_snapshot?: import("./types").Json;
8463
+ contractfuncties?: string[];
8464
+ created_at?: string;
8465
+ eigenaar_module_id?: string | null;
8466
+ gepubliceerd_door?: string | null;
8467
+ gepubliceerd_op?: string;
8468
+ herzieningstermijn_dagen?: number;
8469
+ id?: string;
8470
+ inhoud_md: string;
8471
+ is_actueel?: boolean;
8472
+ module_id: string;
8473
+ module_titel: string;
8474
+ ontbrekende_contracten?: string[];
8475
+ samenvatting?: string | null;
8476
+ updated_at?: string;
8477
+ versie?: number;
8478
+ };
8479
+ Update: {
8480
+ bevindingen?: string | null;
8481
+ bezit_tabellen?: string[];
8482
+ conflicten_snapshot?: import("./types").Json;
8483
+ contractfuncties?: string[];
8484
+ created_at?: string;
8485
+ eigenaar_module_id?: string | null;
8486
+ gepubliceerd_door?: string | null;
8487
+ gepubliceerd_op?: string;
8488
+ herzieningstermijn_dagen?: number;
8489
+ id?: string;
8490
+ inhoud_md?: string;
8491
+ is_actueel?: boolean;
8492
+ module_id?: string;
8493
+ module_titel?: string;
8494
+ ontbrekende_contracten?: string[];
8495
+ samenvatting?: string | null;
8496
+ updated_at?: string;
8497
+ versie?: number;
8498
+ };
8499
+ Relationships: [];
8500
+ };
8501
+ itk_module_instructies: {
8502
+ Row: {
8503
+ created_at: string;
8504
+ eigenaar_module_id: string;
8505
+ gepubliceerd_door: string | null;
8506
+ gepubliceerd_op: string;
8507
+ id: string;
8508
+ inhoud_md: string;
8509
+ is_actueel: boolean;
8510
+ sleutel: string;
8511
+ titel: string;
8512
+ toelichting: string | null;
8513
+ updated_at: string;
8514
+ versie: number;
8515
+ };
8516
+ Insert: {
8517
+ created_at?: string;
8518
+ eigenaar_module_id?: string;
8519
+ gepubliceerd_door?: string | null;
8520
+ gepubliceerd_op?: string;
8521
+ id?: string;
8522
+ inhoud_md: string;
8523
+ is_actueel?: boolean;
8524
+ sleutel: string;
8525
+ titel: string;
8526
+ toelichting?: string | null;
8527
+ updated_at?: string;
8528
+ versie?: number;
8529
+ };
8530
+ Update: {
8531
+ created_at?: string;
8532
+ eigenaar_module_id?: string;
8533
+ gepubliceerd_door?: string | null;
8534
+ gepubliceerd_op?: string;
8535
+ id?: string;
8536
+ inhoud_md?: string;
8537
+ is_actueel?: boolean;
8538
+ sleutel?: string;
8539
+ titel?: string;
8540
+ toelichting?: string | null;
8541
+ updated_at?: string;
8542
+ versie?: number;
8543
+ };
8544
+ Relationships: [];
8545
+ };
8546
+ itk_offerte_events: {
8547
+ Row: {
8548
+ created_at: string;
8549
+ event_type: string;
8550
+ id: string;
8551
+ metadata: import("./types").Json;
8552
+ offerte_id: string;
8553
+ omschrijving: string | null;
8554
+ user_id: string | null;
8555
+ };
8556
+ Insert: {
8557
+ created_at?: string;
8558
+ event_type: string;
8559
+ id?: string;
8560
+ metadata?: import("./types").Json;
8561
+ offerte_id: string;
8562
+ omschrijving?: string | null;
8563
+ user_id?: string | null;
8564
+ };
8565
+ Update: {
8566
+ created_at?: string;
8567
+ event_type?: string;
8568
+ id?: string;
8569
+ metadata?: import("./types").Json;
8570
+ offerte_id?: string;
8571
+ omschrijving?: string | null;
8572
+ user_id?: string | null;
8573
+ };
8574
+ Relationships: [{
8575
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8576
+ columns: ["offerte_id"];
8577
+ isOneToOne: false;
8578
+ referencedRelation: "itk_offertes";
8579
+ referencedColumns: ["id"];
8580
+ }];
8581
+ };
8582
+ itk_offerte_regels: {
8583
+ Row: {
8584
+ created_at: string;
8585
+ id: string;
8586
+ line_total_cents: number;
8587
+ offerte_id: string;
8588
+ omschrijving: string;
8589
+ package_id: string | null;
8590
+ quantity: number;
8591
+ sort_order: number;
8592
+ source: string;
8593
+ unit_price_cents: number;
8594
+ updated_at: string;
8595
+ };
8596
+ Insert: {
8597
+ created_at?: string;
8598
+ id?: string;
8599
+ line_total_cents?: number;
8600
+ offerte_id: string;
8601
+ omschrijving?: string;
8602
+ package_id?: string | null;
8603
+ quantity?: number;
8604
+ sort_order?: number;
8605
+ source?: string;
8606
+ unit_price_cents?: number;
8607
+ updated_at?: string;
8608
+ };
8609
+ Update: {
8610
+ created_at?: string;
8611
+ id?: string;
8612
+ line_total_cents?: number;
8613
+ offerte_id?: string;
8614
+ omschrijving?: string;
8615
+ package_id?: string | null;
8616
+ quantity?: number;
8617
+ sort_order?: number;
8618
+ source?: string;
8619
+ unit_price_cents?: number;
8620
+ updated_at?: string;
8621
+ };
8622
+ Relationships: [{
8623
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8624
+ columns: ["offerte_id"];
8625
+ isOneToOne: false;
8626
+ referencedRelation: "itk_offertes";
8627
+ referencedColumns: ["id"];
8628
+ }, {
8629
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8630
+ columns: ["package_id"];
8631
+ isOneToOne: false;
8632
+ referencedRelation: "werkbon_packages";
8633
+ referencedColumns: ["id"];
8634
+ }];
8635
+ };
8636
+ itk_offerte_settings: {
8637
+ Row: {
8638
+ auto_convert_binnen_mandaat: boolean;
8639
+ created_at: string;
8640
+ default_geldigheid_dagen: number;
8641
+ default_vat_rate: number;
8642
+ id: string;
8643
+ singleton: boolean;
8209
8644
  updated_at: string;
8210
8645
  };
8211
8646
  Insert: {
@@ -8966,6 +9401,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8966
9401
  };
8967
9402
  Relationships: [];
8968
9403
  };
9404
+ logistics_cart_barcode: {
9405
+ Row: {
9406
+ barcode: string;
9407
+ cart_id: string;
9408
+ created_at: string;
9409
+ order_id: string | null;
9410
+ };
9411
+ Insert: {
9412
+ barcode: string;
9413
+ cart_id: string;
9414
+ created_at?: string;
9415
+ order_id?: string | null;
9416
+ };
9417
+ Update: {
9418
+ barcode?: string;
9419
+ cart_id?: string;
9420
+ created_at?: string;
9421
+ order_id?: string | null;
9422
+ };
9423
+ Relationships: [];
9424
+ };
8969
9425
  logistics_decisions: {
8970
9426
  Row: {
8971
9427
  created_at: string;
@@ -9794,6 +10250,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9794
10250
  referencedColumns: ["id"];
9795
10251
  }];
9796
10252
  };
10253
+ logistics_shipping_note_scan: {
10254
+ Row: {
10255
+ barcode: string;
10256
+ cart_id: string;
10257
+ id: string;
10258
+ is_reprint: boolean;
10259
+ order_id: string | null;
10260
+ print_job_id: string | null;
10261
+ scanned_at: string;
10262
+ };
10263
+ Insert: {
10264
+ barcode: string;
10265
+ cart_id: string;
10266
+ id?: string;
10267
+ is_reprint?: boolean;
10268
+ order_id?: string | null;
10269
+ print_job_id?: string | null;
10270
+ scanned_at?: string;
10271
+ };
10272
+ Update: {
10273
+ barcode?: string;
10274
+ cart_id?: string;
10275
+ id?: string;
10276
+ is_reprint?: boolean;
10277
+ order_id?: string | null;
10278
+ print_job_id?: string | null;
10279
+ scanned_at?: string;
10280
+ };
10281
+ Relationships: [];
10282
+ };
9797
10283
  logistics_staff_planning: {
9798
10284
  Row: {
9799
10285
  created_at: string;
@@ -11887,10 +12373,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11887
12373
  boxes: number | null;
11888
12374
  cart_id: string;
11889
12375
  crates: number;
12376
+ crates_in_layer: number | null;
11890
12377
  crates_per_layer: number;
11891
12378
  created_at: string;
11892
12379
  id: string;
11893
12380
  layer_fraction: number;
12381
+ layer_index: number | null;
11894
12382
  layer_share_pct: number;
11895
12383
  layers_per_cart: number;
11896
12384
  order_item_id: string | null;
@@ -11903,10 +12391,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11903
12391
  boxes?: number | null;
11904
12392
  cart_id: string;
11905
12393
  crates: number;
12394
+ crates_in_layer?: number | null;
11906
12395
  crates_per_layer?: number;
11907
12396
  created_at?: string;
11908
12397
  id?: string;
11909
12398
  layer_fraction?: number;
12399
+ layer_index?: number | null;
11910
12400
  layer_share_pct?: number;
11911
12401
  layers_per_cart?: number;
11912
12402
  order_item_id?: string | null;
@@ -11919,10 +12409,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11919
12409
  boxes?: number | null;
11920
12410
  cart_id?: string;
11921
12411
  crates?: number;
12412
+ crates_in_layer?: number | null;
11922
12413
  crates_per_layer?: number;
11923
12414
  created_at?: string;
11924
12415
  id?: string;
11925
12416
  layer_fraction?: number;
12417
+ layer_index?: number | null;
11926
12418
  layer_share_pct?: number;
11927
12419
  layers_per_cart?: number;
11928
12420
  order_item_id?: string | null;
@@ -11962,6 +12454,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11962
12454
  id: string;
11963
12455
  is_auto: boolean;
11964
12456
  is_complete: boolean;
12457
+ layout_method: string | null;
11965
12458
  max_layers: number | null;
11966
12459
  moved_at: string | null;
11967
12460
  moved_from_moment_id: string | null;
@@ -11986,6 +12479,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11986
12479
  id?: string;
11987
12480
  is_auto?: boolean;
11988
12481
  is_complete?: boolean;
12482
+ layout_method?: string | null;
11989
12483
  max_layers?: number | null;
11990
12484
  moved_at?: string | null;
11991
12485
  moved_from_moment_id?: string | null;
@@ -12010,6 +12504,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12010
12504
  id?: string;
12011
12505
  is_auto?: boolean;
12012
12506
  is_complete?: boolean;
12507
+ layout_method?: string | null;
12013
12508
  max_layers?: number | null;
12014
12509
  moved_at?: string | null;
12015
12510
  moved_from_moment_id?: string | null;
@@ -12615,6 +13110,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12615
13110
  print_job_id: string | null;
12616
13111
  printed_at: string | null;
12617
13112
  printed_by: string | null;
13113
+ printed_cart_ids: import("./types").Json;
12618
13114
  printer_id: string | null;
12619
13115
  priority: number;
12620
13116
  reference: string | null;
@@ -12649,6 +13145,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12649
13145
  print_job_id?: string | null;
12650
13146
  printed_at?: string | null;
12651
13147
  printed_by?: string | null;
13148
+ printed_cart_ids?: import("./types").Json;
12652
13149
  printer_id?: string | null;
12653
13150
  priority?: number;
12654
13151
  reference?: string | null;
@@ -12683,6 +13180,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12683
13180
  print_job_id?: string | null;
12684
13181
  printed_at?: string | null;
12685
13182
  printed_by?: string | null;
13183
+ printed_cart_ids?: import("./types").Json;
12686
13184
  printer_id?: string | null;
12687
13185
  priority?: number;
12688
13186
  reference?: string | null;
@@ -13482,6 +13980,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13482
13980
  isOneToOne: false;
13483
13981
  referencedRelation: "planning_items";
13484
13982
  referencedColumns: ["id"];
13983
+ }, {
13984
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
13985
+ columns: ["planning_item_id"];
13986
+ isOneToOne: false;
13987
+ referencedRelation: "planning_overview";
13988
+ referencedColumns: ["id"];
13485
13989
  }];
13486
13990
  };
13487
13991
  planning_items: {
@@ -14591,6 +15095,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14591
15095
  created_at: string;
14592
15096
  custom_fields: import("./types").Json;
14593
15097
  floriday_trade_item_id: string | null;
15098
+ fust_type_id: string | null;
14594
15099
  id: string;
14595
15100
  image_url: string | null;
14596
15101
  incoming_quantity: number;
@@ -14598,6 +15103,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14598
15103
  layers_per_cart: number;
14599
15104
  location: string;
14600
15105
  min_quantity: number;
15106
+ plant_height_cm: number | null;
14601
15107
  plants_per_crate: number;
14602
15108
  product: string;
14603
15109
  product_type: string;
@@ -14617,6 +15123,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14617
15123
  created_at?: string;
14618
15124
  custom_fields?: import("./types").Json;
14619
15125
  floriday_trade_item_id?: string | null;
15126
+ fust_type_id?: string | null;
14620
15127
  id?: string;
14621
15128
  image_url?: string | null;
14622
15129
  incoming_quantity?: number;
@@ -14624,6 +15131,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14624
15131
  layers_per_cart?: number;
14625
15132
  location: string;
14626
15133
  min_quantity?: number;
15134
+ plant_height_cm?: number | null;
14627
15135
  plants_per_crate?: number;
14628
15136
  product: string;
14629
15137
  product_type?: string;
@@ -14643,6 +15151,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14643
15151
  created_at?: string;
14644
15152
  custom_fields?: import("./types").Json;
14645
15153
  floriday_trade_item_id?: string | null;
15154
+ fust_type_id?: string | null;
14646
15155
  id?: string;
14647
15156
  image_url?: string | null;
14648
15157
  incoming_quantity?: number;
@@ -14650,6 +15159,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14650
15159
  layers_per_cart?: number;
14651
15160
  location?: string;
14652
15161
  min_quantity?: number;
15162
+ plant_height_cm?: number | null;
14653
15163
  plants_per_crate?: number;
14654
15164
  product?: string;
14655
15165
  product_type?: string;
@@ -14661,7 +15171,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14661
15171
  updated_at?: string;
14662
15172
  weight?: string | null;
14663
15173
  };
14664
- Relationships: [];
15174
+ Relationships: [{
15175
+ foreignKeyName: "products_fust_type_id_fkey";
15176
+ columns: ["fust_type_id"];
15177
+ isOneToOne: false;
15178
+ referencedRelation: "fust_types";
15179
+ referencedColumns: ["id"];
15180
+ }];
14665
15181
  };
14666
15182
  profile_modules: {
14667
15183
  Row: {
@@ -15059,534 +15575,90 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15059
15575
  referencedColumns: ["id"];
15060
15576
  }];
15061
15577
  };
15062
- quote_activities: {
15578
+ reception_notifications: {
15063
15579
  Row: {
15580
+ booking_id: string | null;
15064
15581
  created_at: string;
15065
- event_type: string;
15066
15582
  id: string;
15067
- metadata: import("./types").Json;
15068
- quote_id: string;
15069
- user_id: string | null;
15583
+ is_read: boolean;
15584
+ message: string;
15585
+ recipient_email: string | null;
15586
+ title: string;
15587
+ type: string;
15070
15588
  };
15071
15589
  Insert: {
15590
+ booking_id?: string | null;
15072
15591
  created_at?: string;
15073
- event_type: string;
15074
15592
  id?: string;
15075
- metadata?: import("./types").Json;
15076
- quote_id: string;
15077
- user_id?: string | null;
15593
+ is_read?: boolean;
15594
+ message: string;
15595
+ recipient_email?: string | null;
15596
+ title: string;
15597
+ type: string;
15078
15598
  };
15079
15599
  Update: {
15600
+ booking_id?: string | null;
15080
15601
  created_at?: string;
15081
- event_type?: string;
15082
15602
  id?: string;
15083
- metadata?: import("./types").Json;
15084
- quote_id?: string;
15085
- user_id?: string | null;
15603
+ is_read?: boolean;
15604
+ message?: string;
15605
+ recipient_email?: string | null;
15606
+ title?: string;
15607
+ type?: string;
15086
15608
  };
15087
15609
  Relationships: [{
15088
- foreignKeyName: "quote_activities_quote_id_fkey";
15089
- columns: ["quote_id"];
15610
+ foreignKeyName: "reception_notifications_booking_id_fkey";
15611
+ columns: ["booking_id"];
15090
15612
  isOneToOne: false;
15091
- referencedRelation: "quotes";
15613
+ referencedRelation: "bookings";
15092
15614
  referencedColumns: ["id"];
15093
15615
  }];
15094
15616
  };
15095
- quote_attachments: {
15617
+ role_assignments: {
15096
15618
  Row: {
15097
15619
  created_at: string;
15098
- file_name: string;
15099
- file_size: number | null;
15100
- file_url: string;
15101
15620
  id: string;
15102
- mime_type: string | null;
15103
- quote_id: string;
15621
+ role_id: string;
15622
+ user_id: string;
15104
15623
  };
15105
15624
  Insert: {
15106
15625
  created_at?: string;
15107
- file_name: string;
15108
- file_size?: number | null;
15109
- file_url: string;
15110
15626
  id?: string;
15111
- mime_type?: string | null;
15112
- quote_id: string;
15627
+ role_id: string;
15628
+ user_id: string;
15113
15629
  };
15114
15630
  Update: {
15115
15631
  created_at?: string;
15116
- file_name?: string;
15117
- file_size?: number | null;
15118
- file_url?: string;
15119
15632
  id?: string;
15120
- mime_type?: string | null;
15121
- quote_id?: string;
15633
+ role_id?: string;
15634
+ user_id?: string;
15122
15635
  };
15123
15636
  Relationships: [{
15124
- foreignKeyName: "quote_attachments_quote_id_fkey";
15125
- columns: ["quote_id"];
15637
+ foreignKeyName: "role_assignments_role_id_fkey";
15638
+ columns: ["role_id"];
15126
15639
  isOneToOne: false;
15127
- referencedRelation: "quotes";
15640
+ referencedRelation: "roles";
15128
15641
  referencedColumns: ["id"];
15129
15642
  }];
15130
15643
  };
15131
- quote_field_options: {
15644
+ role_permissions: {
15132
15645
  Row: {
15133
- created_at: string;
15134
- field_id: string;
15646
+ can_edit: boolean;
15647
+ can_view: boolean;
15648
+ feature_id: string;
15135
15649
  id: string;
15136
- label: string;
15137
- sort_order: number;
15138
- value: string;
15650
+ module_id: string;
15651
+ role_id: string;
15652
+ updated_at: string;
15139
15653
  };
15140
15654
  Insert: {
15141
- created_at?: string;
15142
- field_id: string;
15655
+ can_edit?: boolean;
15656
+ can_view?: boolean;
15657
+ feature_id?: string;
15143
15658
  id?: string;
15144
- label: string;
15145
- sort_order?: number;
15146
- value: string;
15147
- };
15148
- Update: {
15149
- created_at?: string;
15150
- field_id?: string;
15151
- id?: string;
15152
- label?: string;
15153
- sort_order?: number;
15154
- value?: string;
15155
- };
15156
- Relationships: [{
15157
- foreignKeyName: "quote_field_options_field_id_fkey";
15158
- columns: ["field_id"];
15159
- isOneToOne: false;
15160
- referencedRelation: "quote_field_settings";
15161
- referencedColumns: ["id"];
15162
- }];
15163
- };
15164
- quote_field_settings: {
15165
- Row: {
15166
- created_at: string;
15167
- default_value: string | null;
15168
- field_key: string;
15169
- field_type: string;
15170
- id: string;
15171
- is_system: boolean;
15172
- label: string;
15173
- required: boolean;
15174
- sort_order: number;
15175
- updated_at: string;
15176
- visible: boolean;
15177
- };
15178
- Insert: {
15179
- created_at?: string;
15180
- default_value?: string | null;
15181
- field_key: string;
15182
- field_type: string;
15183
- id?: string;
15184
- is_system?: boolean;
15185
- label: string;
15186
- required?: boolean;
15187
- sort_order?: number;
15188
- updated_at?: string;
15189
- visible?: boolean;
15190
- };
15191
- Update: {
15192
- created_at?: string;
15193
- default_value?: string | null;
15194
- field_key?: string;
15195
- field_type?: string;
15196
- id?: string;
15197
- is_system?: boolean;
15198
- label?: string;
15199
- required?: boolean;
15200
- sort_order?: number;
15201
- updated_at?: string;
15202
- visible?: boolean;
15203
- };
15204
- Relationships: [];
15205
- };
15206
- quote_items: {
15207
- Row: {
15208
- category: string | null;
15209
- created_at: string;
15210
- description: string;
15211
- id: string;
15212
- line_total: number;
15213
- module_id: string | null;
15214
- name: string | null;
15215
- quantity: number;
15216
- quote_id: string;
15217
- sort_order: number;
15218
- unit_price: number;
15219
- };
15220
- Insert: {
15221
- category?: string | null;
15222
- created_at?: string;
15223
- description?: string;
15224
- id?: string;
15225
- line_total?: number;
15226
- module_id?: string | null;
15227
- name?: string | null;
15228
- quantity?: number;
15229
- quote_id: string;
15230
- sort_order?: number;
15231
- unit_price?: number;
15232
- };
15233
- Update: {
15234
- category?: string | null;
15235
- created_at?: string;
15236
- description?: string;
15237
- id?: string;
15238
- line_total?: number;
15239
- module_id?: string | null;
15240
- name?: string | null;
15241
- quantity?: number;
15242
- quote_id?: string;
15243
- sort_order?: number;
15244
- unit_price?: number;
15245
- };
15246
- Relationships: [{
15247
- foreignKeyName: "quote_items_module_id_fkey";
15248
- columns: ["module_id"];
15249
- isOneToOne: false;
15250
- referencedRelation: "quote_modules";
15251
- referencedColumns: ["id"];
15252
- }, {
15253
- foreignKeyName: "quote_items_quote_id_fkey";
15254
- columns: ["quote_id"];
15255
- isOneToOne: false;
15256
- referencedRelation: "quotes";
15257
- referencedColumns: ["id"];
15258
- }];
15259
- };
15260
- quote_modules: {
15261
- Row: {
15262
- category: string | null;
15263
- created_at: string;
15264
- description: string | null;
15265
- id: string;
15266
- is_active: boolean;
15267
- name: string;
15268
- price: number;
15269
- sort_order: number;
15270
- updated_at: string;
15271
- };
15272
- Insert: {
15273
- category?: string | null;
15274
- created_at?: string;
15275
- description?: string | null;
15276
- id?: string;
15277
- is_active?: boolean;
15278
- name: string;
15279
- price?: number;
15280
- sort_order?: number;
15281
- updated_at?: string;
15282
- };
15283
- Update: {
15284
- category?: string | null;
15285
- created_at?: string;
15286
- description?: string | null;
15287
- id?: string;
15288
- is_active?: boolean;
15289
- name?: string;
15290
- price?: number;
15291
- sort_order?: number;
15292
- updated_at?: string;
15293
- };
15294
- Relationships: [];
15295
- };
15296
- quote_templates: {
15297
- Row: {
15298
- created_at: string;
15299
- description: string | null;
15300
- field_values: import("./types").Json;
15301
- id: string;
15302
- is_default: boolean;
15303
- items: import("./types").Json;
15304
- name: string;
15305
- updated_at: string;
15306
- vat_rate: number;
15307
- };
15308
- Insert: {
15309
- created_at?: string;
15310
- description?: string | null;
15311
- field_values?: import("./types").Json;
15312
- id?: string;
15313
- is_default?: boolean;
15314
- items?: import("./types").Json;
15315
- name: string;
15316
- updated_at?: string;
15317
- vat_rate?: number;
15318
- };
15319
- Update: {
15320
- created_at?: string;
15321
- description?: string | null;
15322
- field_values?: import("./types").Json;
15323
- id?: string;
15324
- is_default?: boolean;
15325
- items?: import("./types").Json;
15326
- name?: string;
15327
- updated_at?: string;
15328
- vat_rate?: number;
15329
- };
15330
- Relationships: [];
15331
- };
15332
- quote_terms: {
15333
- Row: {
15334
- content: string | null;
15335
- created_at: string;
15336
- file_url: string | null;
15337
- id: string;
15338
- is_active: boolean;
15339
- name: string;
15340
- published_at: string | null;
15341
- updated_at: string;
15342
- version: string;
15343
- };
15344
- Insert: {
15345
- content?: string | null;
15346
- created_at?: string;
15347
- file_url?: string | null;
15348
- id?: string;
15349
- is_active?: boolean;
15350
- name: string;
15351
- published_at?: string | null;
15352
- updated_at?: string;
15353
- version?: string;
15354
- };
15355
- Update: {
15356
- content?: string | null;
15357
- created_at?: string;
15358
- file_url?: string | null;
15359
- id?: string;
15360
- is_active?: boolean;
15361
- name?: string;
15362
- published_at?: string | null;
15363
- updated_at?: string;
15364
- version?: string;
15365
- };
15366
- Relationships: [];
15367
- };
15368
- quotes: {
15369
- Row: {
15370
- accepted_at: string | null;
15371
- archived_at: string | null;
15372
- contact_id: string | null;
15373
- created_at: string;
15374
- customer_id: string | null;
15375
- discount: number;
15376
- expires_at: string | null;
15377
- field_values: import("./types").Json;
15378
- id: string;
15379
- notes: string | null;
15380
- owner_id: string | null;
15381
- personal_message: string | null;
15382
- project_id: string | null;
15383
- prospect_id: string | null;
15384
- public_token: string;
15385
- quote_number: string | null;
15386
- recipient_email: string | null;
15387
- recipient_name: string | null;
15388
- rejected_at: string | null;
15389
- sent_at: string | null;
15390
- status: string;
15391
- subtotal: number;
15392
- template_id: string | null;
15393
- terms_id: string | null;
15394
- title: string;
15395
- total: number;
15396
- updated_at: string;
15397
- valid_until: string | null;
15398
- vat_amount: number;
15399
- vat_rate: number;
15400
- viewed_at: string | null;
15401
- };
15402
- Insert: {
15403
- accepted_at?: string | null;
15404
- archived_at?: string | null;
15405
- contact_id?: string | null;
15406
- created_at?: string;
15407
- customer_id?: string | null;
15408
- discount?: number;
15409
- expires_at?: string | null;
15410
- field_values?: import("./types").Json;
15411
- id?: string;
15412
- notes?: string | null;
15413
- owner_id?: string | null;
15414
- personal_message?: string | null;
15415
- project_id?: string | null;
15416
- prospect_id?: string | null;
15417
- public_token?: string;
15418
- quote_number?: string | null;
15419
- recipient_email?: string | null;
15420
- recipient_name?: string | null;
15421
- rejected_at?: string | null;
15422
- sent_at?: string | null;
15423
- status?: string;
15424
- subtotal?: number;
15425
- template_id?: string | null;
15426
- terms_id?: string | null;
15427
- title?: string;
15428
- total?: number;
15429
- updated_at?: string;
15430
- valid_until?: string | null;
15431
- vat_amount?: number;
15432
- vat_rate?: number;
15433
- viewed_at?: string | null;
15434
- };
15435
- Update: {
15436
- accepted_at?: string | null;
15437
- archived_at?: string | null;
15438
- contact_id?: string | null;
15439
- created_at?: string;
15440
- customer_id?: string | null;
15441
- discount?: number;
15442
- expires_at?: string | null;
15443
- field_values?: import("./types").Json;
15444
- id?: string;
15445
- notes?: string | null;
15446
- owner_id?: string | null;
15447
- personal_message?: string | null;
15448
- project_id?: string | null;
15449
- prospect_id?: string | null;
15450
- public_token?: string;
15451
- quote_number?: string | null;
15452
- recipient_email?: string | null;
15453
- recipient_name?: string | null;
15454
- rejected_at?: string | null;
15455
- sent_at?: string | null;
15456
- status?: string;
15457
- subtotal?: number;
15458
- template_id?: string | null;
15459
- terms_id?: string | null;
15460
- title?: string;
15461
- total?: number;
15462
- updated_at?: string;
15463
- valid_until?: string | null;
15464
- vat_amount?: number;
15465
- vat_rate?: number;
15466
- viewed_at?: string | null;
15467
- };
15468
- Relationships: [{
15469
- foreignKeyName: "quotes_contact_id_fkey";
15470
- columns: ["contact_id"];
15471
- isOneToOne: false;
15472
- referencedRelation: "customer_contacts";
15473
- referencedColumns: ["id"];
15474
- }, {
15475
- foreignKeyName: "quotes_customer_id_fkey";
15476
- columns: ["customer_id"];
15477
- isOneToOne: false;
15478
- referencedRelation: "customers";
15479
- referencedColumns: ["id"];
15480
- }, {
15481
- foreignKeyName: "quotes_project_id_fkey";
15482
- columns: ["project_id"];
15483
- isOneToOne: false;
15484
- referencedRelation: "projects";
15485
- referencedColumns: ["id"];
15486
- }, {
15487
- foreignKeyName: "quotes_prospect_id_fkey";
15488
- columns: ["prospect_id"];
15489
- isOneToOne: false;
15490
- referencedRelation: "prospects";
15491
- referencedColumns: ["id"];
15492
- }, {
15493
- foreignKeyName: "quotes_template_id_fkey";
15494
- columns: ["template_id"];
15495
- isOneToOne: false;
15496
- referencedRelation: "quote_templates";
15497
- referencedColumns: ["id"];
15498
- }, {
15499
- foreignKeyName: "quotes_terms_id_fkey";
15500
- columns: ["terms_id"];
15501
- isOneToOne: false;
15502
- referencedRelation: "quote_terms";
15503
- referencedColumns: ["id"];
15504
- }];
15505
- };
15506
- reception_notifications: {
15507
- Row: {
15508
- booking_id: string | null;
15509
- created_at: string;
15510
- id: string;
15511
- is_read: boolean;
15512
- message: string;
15513
- recipient_email: string | null;
15514
- title: string;
15515
- type: string;
15516
- };
15517
- Insert: {
15518
- booking_id?: string | null;
15519
- created_at?: string;
15520
- id?: string;
15521
- is_read?: boolean;
15522
- message: string;
15523
- recipient_email?: string | null;
15524
- title: string;
15525
- type: string;
15526
- };
15527
- Update: {
15528
- booking_id?: string | null;
15529
- created_at?: string;
15530
- id?: string;
15531
- is_read?: boolean;
15532
- message?: string;
15533
- recipient_email?: string | null;
15534
- title?: string;
15535
- type?: string;
15536
- };
15537
- Relationships: [{
15538
- foreignKeyName: "reception_notifications_booking_id_fkey";
15539
- columns: ["booking_id"];
15540
- isOneToOne: false;
15541
- referencedRelation: "bookings";
15542
- referencedColumns: ["id"];
15543
- }];
15544
- };
15545
- role_assignments: {
15546
- Row: {
15547
- created_at: string;
15548
- id: string;
15549
- role_id: string;
15550
- user_id: string;
15551
- };
15552
- Insert: {
15553
- created_at?: string;
15554
- id?: string;
15555
- role_id: string;
15556
- user_id: string;
15557
- };
15558
- Update: {
15559
- created_at?: string;
15560
- id?: string;
15561
- role_id?: string;
15562
- user_id?: string;
15563
- };
15564
- Relationships: [{
15565
- foreignKeyName: "role_assignments_role_id_fkey";
15566
- columns: ["role_id"];
15567
- isOneToOne: false;
15568
- referencedRelation: "roles";
15569
- referencedColumns: ["id"];
15570
- }];
15571
- };
15572
- role_permissions: {
15573
- Row: {
15574
- can_edit: boolean;
15575
- can_view: boolean;
15576
- feature_id: string;
15577
- id: string;
15578
- module_id: string;
15579
- role_id: string;
15580
- updated_at: string;
15581
- };
15582
- Insert: {
15583
- can_edit?: boolean;
15584
- can_view?: boolean;
15585
- feature_id?: string;
15586
- id?: string;
15587
- module_id: string;
15588
- role_id: string;
15589
- updated_at?: string;
15659
+ module_id: string;
15660
+ role_id: string;
15661
+ updated_at?: string;
15590
15662
  };
15591
15663
  Update: {
15592
15664
  can_edit?: boolean;
@@ -16624,7 +16696,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16624
16696
  foreignKeyName: "time_logs_work_order_id_fkey";
16625
16697
  columns: ["work_order_id"];
16626
16698
  isOneToOne: false;
16627
- referencedRelation: "work_orders";
16699
+ referencedRelation: "werkbonnen";
16628
16700
  referencedColumns: ["id"];
16629
16701
  }];
16630
16702
  };
@@ -16756,6 +16828,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16756
16828
  };
16757
16829
  trade_item_stock: {
16758
16830
  Row: {
16831
+ change_source: string;
16759
16832
  connection_id: string;
16760
16833
  created_at: string;
16761
16834
  id: string;
@@ -16769,6 +16842,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16769
16842
  user_id: string;
16770
16843
  };
16771
16844
  Insert: {
16845
+ change_source?: string;
16772
16846
  connection_id: string;
16773
16847
  created_at?: string;
16774
16848
  id?: string;
@@ -16782,6 +16856,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16782
16856
  user_id: string;
16783
16857
  };
16784
16858
  Update: {
16859
+ change_source?: string;
16785
16860
  connection_id?: string;
16786
16861
  created_at?: string;
16787
16862
  id?: string;
@@ -17839,268 +17914,118 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17839
17914
  break_minutes?: number | null;
17840
17915
  contract_hours_per_week?: number;
17841
17916
  created_at?: string;
17842
- daily_threshold_hours?: number | null;
17843
- id?: string;
17844
- include_travel?: boolean | null;
17845
- monteur_id: string;
17846
- ov02_percentage?: number | null;
17847
- ov03_percentage?: number | null;
17848
- updated_at?: string;
17849
- weekly_threshold_hours?: number | null;
17850
- workday_end?: string | null;
17851
- workday_start?: string | null;
17852
- };
17853
- Update: {
17854
- break_minutes?: number | null;
17855
- contract_hours_per_week?: number;
17856
- created_at?: string;
17857
- daily_threshold_hours?: number | null;
17858
- id?: string;
17859
- include_travel?: boolean | null;
17860
- monteur_id?: string;
17861
- ov02_percentage?: number | null;
17862
- ov03_percentage?: number | null;
17863
- updated_at?: string;
17864
- weekly_threshold_hours?: number | null;
17865
- workday_end?: string | null;
17866
- workday_start?: string | null;
17867
- };
17868
- Relationships: [];
17869
- };
17870
- uren_entries: {
17871
- Row: {
17872
- created_at: string;
17873
- created_by: string | null;
17874
- entry_date: string;
17875
- hours: number;
17876
- id: string;
17877
- kind: string;
17878
- monteur_id: string;
17879
- note: string | null;
17880
- source: string;
17881
- travel_km: number;
17882
- updated_at: string;
17883
- werkbon_id: string | null;
17884
- };
17885
- Insert: {
17886
- created_at?: string;
17887
- created_by?: string | null;
17888
- entry_date: string;
17889
- hours?: number;
17890
- id?: string;
17891
- kind?: string;
17892
- monteur_id: string;
17893
- note?: string | null;
17894
- source?: string;
17895
- travel_km?: number;
17896
- updated_at?: string;
17897
- werkbon_id?: string | null;
17898
- };
17899
- Update: {
17900
- created_at?: string;
17901
- created_by?: string | null;
17902
- entry_date?: string;
17903
- hours?: number;
17904
- id?: string;
17905
- kind?: string;
17906
- monteur_id?: string;
17907
- note?: string | null;
17908
- source?: string;
17909
- travel_km?: number;
17910
- updated_at?: string;
17911
- werkbon_id?: string | null;
17912
- };
17913
- Relationships: [{
17914
- foreignKeyName: "uren_entries_werkbon_id_fkey";
17915
- columns: ["werkbon_id"];
17916
- isOneToOne: false;
17917
- referencedRelation: "werkbonnen";
17918
- referencedColumns: ["id"];
17919
- }];
17920
- };
17921
- uren_exports: {
17922
- Row: {
17923
- created_at: string;
17924
- created_by: string | null;
17925
- file_name: string | null;
17926
- id: string;
17927
- monteur_ids: string[];
17928
- period_end: string;
17929
- period_start: string;
17930
- row_count: number;
17931
- };
17932
- Insert: {
17933
- created_at?: string;
17934
- created_by?: string | null;
17935
- file_name?: string | null;
17936
- id?: string;
17937
- monteur_ids?: string[];
17938
- period_end: string;
17939
- period_start: string;
17940
- row_count?: number;
17941
- };
17942
- Update: {
17943
- created_at?: string;
17944
- created_by?: string | null;
17945
- file_name?: string | null;
17946
- id?: string;
17947
- monteur_ids?: string[];
17948
- period_end?: string;
17949
- period_start?: string;
17950
- row_count?: number;
17951
- };
17952
- Relationships: [];
17953
- };
17954
- uren_offerte_regels: {
17955
- Row: {
17956
- created_at: string;
17957
- description: string;
17958
- duration_minutes: number;
17959
- id: string;
17960
- offerte_id: string;
17961
- package_id: string | null;
17962
- quantity: number;
17963
- sort_order: number;
17964
- total_cents: number;
17965
- unit_price_cents: number;
17966
- };
17967
- Insert: {
17968
- created_at?: string;
17969
- description: string;
17970
- duration_minutes?: number;
17971
- id?: string;
17972
- offerte_id: string;
17973
- package_id?: string | null;
17974
- quantity?: number;
17975
- sort_order?: number;
17976
- total_cents?: number;
17977
- unit_price_cents?: number;
17978
- };
17979
- Update: {
17980
- created_at?: string;
17981
- description?: string;
17982
- duration_minutes?: number;
17983
- id?: string;
17984
- offerte_id?: string;
17985
- package_id?: string | null;
17986
- quantity?: number;
17987
- sort_order?: number;
17988
- total_cents?: number;
17989
- unit_price_cents?: number;
17990
- };
17991
- Relationships: [{
17992
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
17993
- columns: ["offerte_id"];
17994
- isOneToOne: false;
17995
- referencedRelation: "uren_offertes";
17996
- referencedColumns: ["id"];
17997
- }, {
17998
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
17999
- columns: ["package_id"];
18000
- isOneToOne: false;
18001
- referencedRelation: "werkbon_packages";
18002
- referencedColumns: ["id"];
18003
- }];
18004
- };
18005
- uren_offerte_velden: {
18006
- Row: {
18007
- created_at: string;
18008
- field_type: string;
18009
- id: string;
18010
- key: string;
18011
- label: string;
18012
- options: string[];
18013
- required: boolean;
18014
- sort_order: number;
18015
- updated_at: string;
18016
- };
18017
- Insert: {
18018
- created_at?: string;
18019
- field_type?: string;
18020
- id?: string;
18021
- key: string;
18022
- label: string;
18023
- options?: string[];
18024
- required?: boolean;
18025
- sort_order?: number;
17917
+ daily_threshold_hours?: number | null;
17918
+ id?: string;
17919
+ include_travel?: boolean | null;
17920
+ monteur_id: string;
17921
+ ov02_percentage?: number | null;
17922
+ ov03_percentage?: number | null;
18026
17923
  updated_at?: string;
17924
+ weekly_threshold_hours?: number | null;
17925
+ workday_end?: string | null;
17926
+ workday_start?: string | null;
18027
17927
  };
18028
17928
  Update: {
17929
+ break_minutes?: number | null;
17930
+ contract_hours_per_week?: number;
18029
17931
  created_at?: string;
18030
- field_type?: string;
17932
+ daily_threshold_hours?: number | null;
18031
17933
  id?: string;
18032
- key?: string;
18033
- label?: string;
18034
- options?: string[];
18035
- required?: boolean;
18036
- sort_order?: number;
17934
+ include_travel?: boolean | null;
17935
+ monteur_id?: string;
17936
+ ov02_percentage?: number | null;
17937
+ ov03_percentage?: number | null;
18037
17938
  updated_at?: string;
17939
+ weekly_threshold_hours?: number | null;
17940
+ workday_end?: string | null;
17941
+ workday_start?: string | null;
18038
17942
  };
18039
17943
  Relationships: [];
18040
17944
  };
18041
- uren_offertes: {
17945
+ uren_entries: {
18042
17946
  Row: {
18043
17947
  created_at: string;
18044
17948
  created_by: string | null;
18045
- customer_id: string | null;
18046
- customer_name: string | null;
18047
- dynamic_fields: import("./types").Json;
18048
- estimated_minutes: number;
17949
+ entry_date: string;
17950
+ hours: number;
18049
17951
  id: string;
17952
+ kind: string;
17953
+ monteur_id: string;
18050
17954
  note: string | null;
18051
- quote_number: string | null;
18052
- status: string;
18053
- title: string;
18054
- total_excl_cents: number;
18055
- total_incl_cents: number;
17955
+ source: string;
17956
+ travel_km: number;
18056
17957
  updated_at: string;
18057
- valid_until: string | null;
18058
- vat_percentage: number;
17958
+ werkbon_id: string | null;
18059
17959
  };
18060
17960
  Insert: {
18061
17961
  created_at?: string;
18062
17962
  created_by?: string | null;
18063
- customer_id?: string | null;
18064
- customer_name?: string | null;
18065
- dynamic_fields?: import("./types").Json;
18066
- estimated_minutes?: number;
17963
+ entry_date: string;
17964
+ hours?: number;
18067
17965
  id?: string;
17966
+ kind?: string;
17967
+ monteur_id: string;
18068
17968
  note?: string | null;
18069
- quote_number?: string | null;
18070
- status?: string;
18071
- title?: string;
18072
- total_excl_cents?: number;
18073
- total_incl_cents?: number;
17969
+ source?: string;
17970
+ travel_km?: number;
18074
17971
  updated_at?: string;
18075
- valid_until?: string | null;
18076
- vat_percentage?: number;
17972
+ werkbon_id?: string | null;
18077
17973
  };
18078
17974
  Update: {
18079
17975
  created_at?: string;
18080
17976
  created_by?: string | null;
18081
- customer_id?: string | null;
18082
- customer_name?: string | null;
18083
- dynamic_fields?: import("./types").Json;
18084
- estimated_minutes?: number;
17977
+ entry_date?: string;
17978
+ hours?: number;
18085
17979
  id?: string;
17980
+ kind?: string;
17981
+ monteur_id?: string;
18086
17982
  note?: string | null;
18087
- quote_number?: string | null;
18088
- status?: string;
18089
- title?: string;
18090
- total_excl_cents?: number;
18091
- total_incl_cents?: number;
17983
+ source?: string;
17984
+ travel_km?: number;
18092
17985
  updated_at?: string;
18093
- valid_until?: string | null;
18094
- vat_percentage?: number;
17986
+ werkbon_id?: string | null;
18095
17987
  };
18096
17988
  Relationships: [{
18097
- foreignKeyName: "uren_offertes_customer_id_fkey";
18098
- columns: ["customer_id"];
17989
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
17990
+ columns: ["werkbon_id"];
18099
17991
  isOneToOne: false;
18100
- referencedRelation: "itk_customers";
17992
+ referencedRelation: "werkbonnen";
18101
17993
  referencedColumns: ["id"];
18102
17994
  }];
18103
17995
  };
17996
+ uren_exports: {
17997
+ Row: {
17998
+ created_at: string;
17999
+ created_by: string | null;
18000
+ file_name: string | null;
18001
+ id: string;
18002
+ monteur_ids: string[];
18003
+ period_end: string;
18004
+ period_start: string;
18005
+ row_count: number;
18006
+ };
18007
+ Insert: {
18008
+ created_at?: string;
18009
+ created_by?: string | null;
18010
+ file_name?: string | null;
18011
+ id?: string;
18012
+ monteur_ids?: string[];
18013
+ period_end: string;
18014
+ period_start: string;
18015
+ row_count?: number;
18016
+ };
18017
+ Update: {
18018
+ created_at?: string;
18019
+ created_by?: string | null;
18020
+ file_name?: string | null;
18021
+ id?: string;
18022
+ monteur_ids?: string[];
18023
+ period_end?: string;
18024
+ period_start?: string;
18025
+ row_count?: number;
18026
+ };
18027
+ Relationships: [];
18028
+ };
18104
18029
  uren_settings: {
18105
18030
  Row: {
18106
18031
  break_minutes: number;
@@ -19787,6 +19712,37 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19787
19712
  };
19788
19713
  Relationships: [];
19789
19714
  };
19715
+ planning_overview: {
19716
+ Row: {
19717
+ assigned_monteur_id: string | null;
19718
+ assistants: import("./types").Json | null;
19719
+ budget_mandate_cents: number | null;
19720
+ created_at: string | null;
19721
+ created_by: string | null;
19722
+ customer_id: string | null;
19723
+ customer_name: string | null;
19724
+ duration_minutes: number | null;
19725
+ end_at: string | null;
19726
+ id: string | null;
19727
+ needs_detail_review: boolean | null;
19728
+ notes: string | null;
19729
+ project_number: string | null;
19730
+ review_reasons: string[] | null;
19731
+ start_at: string | null;
19732
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
19733
+ updated_at: string | null;
19734
+ viewer_role: string | null;
19735
+ werkbon_id: string | null;
19736
+ work_address: string | null;
19737
+ };
19738
+ Relationships: [{
19739
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19740
+ columns: ["werkbon_id"];
19741
+ isOneToOne: false;
19742
+ referencedRelation: "werkbonnen";
19743
+ referencedColumns: ["id"];
19744
+ }];
19745
+ };
19790
19746
  product_group_stock_view: {
19791
19747
  Row: {
19792
19748
  item_count: number | null;
@@ -20382,6 +20338,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20382
20338
  Args: never;
20383
20339
  Returns: number;
20384
20340
  };
20341
+ calculate_floriday_desired_stock: {
20342
+ Args: {
20343
+ p_connection_id: string;
20344
+ p_product_id: string;
20345
+ };
20346
+ Returns: {
20347
+ desired_availability: boolean;
20348
+ desired_quantity: number;
20349
+ erp_available: number;
20350
+ stock_mode: string;
20351
+ }[];
20352
+ };
20385
20353
  calculate_layer_stock: {
20386
20354
  Args: {
20387
20355
  p_product_id: string;
@@ -20476,6 +20444,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20476
20444
  attempts: number;
20477
20445
  connection_id: string;
20478
20446
  created_at: string;
20447
+ dead_lettered_at: string | null;
20479
20448
  desired_available: boolean | null;
20480
20449
  gateway_attempt_id: string | null;
20481
20450
  id: string;
@@ -20484,9 +20453,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20484
20453
  locked_by: string | null;
20485
20454
  next_attempt_at: string;
20486
20455
  number_of_pieces: number;
20456
+ product_id: string | null;
20487
20457
  sent_at: string | null;
20488
20458
  status: string;
20459
+ stock_mode: string | null;
20489
20460
  superseded_by: string | null;
20461
+ target_week: number | null;
20462
+ target_year: number | null;
20490
20463
  trade_item_id: string;
20491
20464
  updated_at: string;
20492
20465
  user_id: string;
@@ -20967,6 +20940,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20967
20940
  };
20968
20941
  Returns: string;
20969
20942
  };
20943
+ floriday_capture_stock_snapshot: {
20944
+ Args: never;
20945
+ Returns: number;
20946
+ };
20947
+ floriday_cleanup_stock_queue_v2: {
20948
+ Args: never;
20949
+ Returns: undefined;
20950
+ };
20951
+ floriday_compact_stock_snapshots: {
20952
+ Args: never;
20953
+ Returns: undefined;
20954
+ };
20955
+ floriday_default_owner: {
20956
+ Args: {
20957
+ p_connection_id: string;
20958
+ };
20959
+ Returns: string;
20960
+ };
20970
20961
  floriday_effective_price: {
20971
20962
  Args: {
20972
20963
  _buyer_id: string;
@@ -20984,6 +20975,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20984
20975
  source_id: string;
20985
20976
  }[];
20986
20977
  };
20978
+ floriday_fill_publish_horizon: {
20979
+ Args: never;
20980
+ Returns: number;
20981
+ };
20982
+ floriday_ingest_sales_orders: {
20983
+ Args: {
20984
+ p_limit?: number;
20985
+ };
20986
+ Returns: number;
20987
+ };
20988
+ floriday_publish_horizon_weeks: {
20989
+ Args: never;
20990
+ Returns: number;
20991
+ };
20992
+ floriday_recompute_inventory: {
20993
+ Args: {
20994
+ p_connection_id: string;
20995
+ p_force?: boolean;
20996
+ p_product_id: string;
20997
+ };
20998
+ Returns: undefined;
20999
+ };
21000
+ floriday_requeue_dead_letters: {
21001
+ Args: {
21002
+ p_connection_id?: string;
21003
+ };
21004
+ Returns: number;
21005
+ };
20987
21006
  format_cart_number: {
20988
21007
  Args: {
20989
21008
  p_pick_date: string;
@@ -21163,42 +21182,167 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21163
21182
  ordered_at: string;
21164
21183
  }[];
21165
21184
  };
21166
- get_or_assign_floriday_order_number: {
21185
+ get_or_assign_floriday_order_number: {
21186
+ Args: {
21187
+ p_floriday_id: string;
21188
+ };
21189
+ Returns: string;
21190
+ };
21191
+ get_product_group_available_stock: {
21192
+ Args: {
21193
+ p_group_id: string;
21194
+ };
21195
+ Returns: number;
21196
+ };
21197
+ get_room_busy_windows: {
21198
+ Args: {
21199
+ p_from: string;
21200
+ p_to: string;
21201
+ };
21202
+ Returns: {
21203
+ end_time: string;
21204
+ room_id: string;
21205
+ start_time: string;
21206
+ status: string;
21207
+ }[];
21208
+ };
21209
+ get_twinfield_cron_jobs: {
21210
+ Args: never;
21211
+ Returns: {
21212
+ active: boolean;
21213
+ jobname: string;
21214
+ schedule: string;
21215
+ url: string;
21216
+ }[];
21217
+ };
21218
+ get_user_tenant_id: {
21219
+ Args: never;
21220
+ Returns: string;
21221
+ };
21222
+ handover_get: {
21223
+ Args: {
21224
+ _module_id: string;
21225
+ };
21226
+ Returns: import("./types").Json;
21227
+ };
21228
+ handover_kern_naam: {
21229
+ Args: {
21230
+ _naam: string;
21231
+ };
21232
+ Returns: string;
21233
+ };
21234
+ handover_ketenmodel: {
21235
+ Args: never;
21236
+ Returns: import("./types").Json;
21237
+ };
21238
+ handover_kruisconflicten: {
21239
+ Args: never;
21240
+ Returns: import("./types").Json;
21241
+ };
21242
+ handover_list: {
21243
+ Args: never;
21244
+ Returns: import("./types").Json;
21245
+ };
21246
+ handover_mag_schrijven: {
21247
+ Args: {
21248
+ _module_id: string;
21249
+ };
21250
+ Returns: boolean;
21251
+ };
21252
+ handover_norm_naam: {
21253
+ Args: {
21254
+ _naam: string;
21255
+ };
21256
+ Returns: string;
21257
+ };
21258
+ handover_publish: {
21259
+ Args: {
21260
+ _bevindingen?: string;
21261
+ _bezit_tabellen?: string[];
21262
+ _conflicten_snapshot?: import("./types").Json;
21263
+ _contractfuncties?: string[];
21264
+ _inhoud_md: string;
21265
+ _module_id: string;
21266
+ _module_titel: string;
21267
+ _ontbrekende_contracten?: string[];
21268
+ _samenvatting?: string;
21269
+ };
21270
+ Returns: number;
21271
+ };
21272
+ handover_publish_via_token: {
21273
+ Args: {
21274
+ _bevindingen?: string;
21275
+ _bezit_tabellen?: string[];
21276
+ _conflicten_snapshot?: import("./types").Json;
21277
+ _contractfuncties?: string[];
21278
+ _inhoud_md: string;
21279
+ _module_id: string;
21280
+ _module_titel: string;
21281
+ _ontbrekende_contracten?: string[];
21282
+ _samenvatting?: string;
21283
+ _token_hash: string;
21284
+ };
21285
+ Returns: number;
21286
+ };
21287
+ handover_status: {
21288
+ Args: never;
21289
+ Returns: import("./types").Json;
21290
+ };
21291
+ handover_synonym_kern: {
21292
+ Args: {
21293
+ _naam: string;
21294
+ };
21295
+ Returns: string;
21296
+ };
21297
+ handover_token_intrekken: {
21298
+ Args: {
21299
+ _id: string;
21300
+ };
21301
+ Returns: boolean;
21302
+ };
21303
+ handover_token_lijst: {
21304
+ Args: never;
21305
+ Returns: import("./types").Json;
21306
+ };
21307
+ handover_token_maken: {
21167
21308
  Args: {
21168
- p_floriday_id: string;
21309
+ _label?: string;
21310
+ _module_id: string;
21169
21311
  };
21170
21312
  Returns: string;
21171
21313
  };
21172
- get_product_group_available_stock: {
21314
+ handover_update: {
21173
21315
  Args: {
21174
- p_group_id: string;
21316
+ _bezit_tabellen?: string[];
21317
+ _contractfuncties?: string[];
21318
+ _herzieningstermijn_dagen?: number;
21319
+ _inhoud_md?: string;
21320
+ _module_id: string;
21321
+ _module_titel?: string;
21322
+ _samenvatting?: string;
21323
+ _versie: number;
21175
21324
  };
21176
- Returns: number;
21177
- };
21178
- get_room_busy_windows: {
21325
+ Returns: boolean;
21326
+ } | {
21179
21327
  Args: {
21180
- p_from: string;
21181
- p_to: string;
21328
+ _bevindingen?: string;
21329
+ _bezit_tabellen?: string[];
21330
+ _contractfuncties?: string[];
21331
+ _herzieningstermijn_dagen?: number;
21332
+ _inhoud_md?: string;
21333
+ _module_id: string;
21334
+ _module_titel?: string;
21335
+ _ontbrekende_contracten?: string[];
21336
+ _samenvatting?: string;
21337
+ _versie: number;
21182
21338
  };
21183
- Returns: {
21184
- end_time: string;
21185
- room_id: string;
21186
- start_time: string;
21187
- status: string;
21188
- }[];
21189
- };
21190
- get_twinfield_cron_jobs: {
21191
- Args: never;
21192
- Returns: {
21193
- active: boolean;
21194
- jobname: string;
21195
- schedule: string;
21196
- url: string;
21197
- }[];
21339
+ Returns: boolean;
21198
21340
  };
21199
- get_user_tenant_id: {
21200
- Args: never;
21201
- Returns: string;
21341
+ handover_versies: {
21342
+ Args: {
21343
+ _module_id: string;
21344
+ };
21345
+ Returns: import("./types").Json;
21202
21346
  };
21203
21347
  has_module_permission: {
21204
21348
  Args: {
@@ -21219,6 +21363,25 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21219
21363
  Args: never;
21220
21364
  Returns: boolean;
21221
21365
  };
21366
+ instructie_get: {
21367
+ Args: {
21368
+ _sleutel: string;
21369
+ };
21370
+ Returns: import("./types").Json;
21371
+ };
21372
+ instructie_list: {
21373
+ Args: never;
21374
+ Returns: import("./types").Json;
21375
+ };
21376
+ instructie_publish: {
21377
+ Args: {
21378
+ _inhoud_md: string;
21379
+ _sleutel: string;
21380
+ _titel: string;
21381
+ _toelichting?: string;
21382
+ };
21383
+ Returns: number;
21384
+ };
21222
21385
  invoice_create_from_source: {
21223
21386
  Args: {
21224
21387
  _payload?: import("./types").Json;
@@ -21443,6 +21606,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21443
21606
  };
21444
21607
  Returns: boolean;
21445
21608
  };
21609
+ logistics_barcode_lookup: {
21610
+ Args: {
21611
+ p_barcode: string;
21612
+ };
21613
+ Returns: import("./types").Json;
21614
+ };
21446
21615
  logistics_buffer_criteria: {
21447
21616
  Args: {
21448
21617
  p_settings: import("./types").Json;
@@ -21503,6 +21672,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21503
21672
  };
21504
21673
  Returns: number;
21505
21674
  };
21675
+ logistics_cart_barcode_value: {
21676
+ Args: {
21677
+ _cart_id: string;
21678
+ };
21679
+ Returns: string;
21680
+ };
21506
21681
  logistics_cart_index: {
21507
21682
  Args: {
21508
21683
  p_from?: string;
@@ -21512,6 +21687,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21512
21687
  cart_id: string;
21513
21688
  cart_index: number;
21514
21689
  cart_label: string;
21690
+ delivery_date: string;
21691
+ is_announced: boolean;
21692
+ is_controlled: boolean;
21693
+ is_printed: boolean;
21515
21694
  is_shared: boolean;
21516
21695
  order_number: string;
21517
21696
  order_source: string;
@@ -21522,6 +21701,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21522
21701
  task_status: string;
21523
21702
  }[];
21524
21703
  };
21704
+ logistics_cart_slip_plan: {
21705
+ Args: {
21706
+ p_order_id: string;
21707
+ };
21708
+ Returns: import("./types").Json;
21709
+ };
21525
21710
  logistics_check_order_allowed: {
21526
21711
  Args: {
21527
21712
  p_lines: import("./types").Json;
@@ -21674,11 +21859,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21674
21859
  Args: never;
21675
21860
  Returns: {
21676
21861
  agenda_carts: number;
21862
+ announced_carts: number;
21677
21863
  control_carts: number;
21864
+ delivery_carts: number;
21678
21865
  ok: boolean;
21679
21866
  orphan_tasks: number;
21680
21867
  pick_date: string;
21681
21868
  raw_carts: number;
21869
+ sales_carts: number;
21870
+ station_carts: number;
21682
21871
  }[];
21683
21872
  };
21684
21873
  logistics_delay_customer_email: {
@@ -21694,12 +21883,35 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21694
21883
  subject: string;
21695
21884
  }[];
21696
21885
  };
21886
+ logistics_delivery_agenda: {
21887
+ Args: {
21888
+ p_from?: string;
21889
+ p_to?: string;
21890
+ };
21891
+ Returns: {
21892
+ announced_count: number;
21893
+ cart_count: number;
21894
+ controlled_count: number;
21895
+ delivery_date: string;
21896
+ order_count: number;
21897
+ orders: import("./types").Json;
21898
+ plant_count: number;
21899
+ printed_count: number;
21900
+ }[];
21901
+ };
21697
21902
  logistics_document_layout: {
21698
21903
  Args: {
21699
21904
  _document_code: string;
21700
21905
  };
21701
21906
  Returns: import("./types").Json;
21702
21907
  };
21908
+ logistics_document_layout_v2: {
21909
+ Args: {
21910
+ _document_code: string;
21911
+ _is_partial?: boolean;
21912
+ };
21913
+ Returns: import("./types").Json;
21914
+ };
21703
21915
  logistics_document_station: {
21704
21916
  Args: {
21705
21917
  _document_code: string;
@@ -21725,6 +21937,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21725
21937
  };
21726
21938
  Returns: import("./types").Json;
21727
21939
  };
21940
+ logistics_ensure_cart_barcode: {
21941
+ Args: {
21942
+ _cart_id: string;
21943
+ };
21944
+ Returns: string;
21945
+ };
21728
21946
  logistics_fail_task: {
21729
21947
  Args: {
21730
21948
  p_error: string;
@@ -21770,6 +21988,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21770
21988
  isSetofReturn: false;
21771
21989
  };
21772
21990
  };
21991
+ logistics_floriday_cart_plan: {
21992
+ Args: {
21993
+ p_order_id: string;
21994
+ };
21995
+ Returns: {
21996
+ carrier_type: string;
21997
+ idx: number;
21998
+ packages: number;
21999
+ }[];
22000
+ };
21773
22001
  logistics_floriday_claim_pushes: {
21774
22002
  Args: {
21775
22003
  _lease_seconds?: number;
@@ -21975,6 +22203,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21975
22203
  };
21976
22204
  Returns: undefined;
21977
22205
  };
22206
+ logistics_plan_floriday_order: {
22207
+ Args: {
22208
+ p_buffer_id?: string;
22209
+ p_order_id: string;
22210
+ };
22211
+ Returns: number;
22212
+ };
21978
22213
  logistics_plan_impact_orders: {
21979
22214
  Args: {
21980
22215
  p_order_id: string;
@@ -22168,6 +22403,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22168
22403
  };
22169
22404
  Returns: string;
22170
22405
  };
22406
+ logistics_shipping_note_from_barcode: {
22407
+ Args: {
22408
+ p_allow_reprint?: boolean;
22409
+ p_barcode: string;
22410
+ p_station_id?: string;
22411
+ };
22412
+ Returns: import("./types").Json;
22413
+ };
22171
22414
  logistics_supersede_stale_tasks: {
22172
22415
  Args: {
22173
22416
  p_keep: string[];
@@ -22389,6 +22632,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22389
22632
  print_job_id: string | null;
22390
22633
  printed_at: string | null;
22391
22634
  printed_by: string | null;
22635
+ printed_cart_ids: import("./types").Json;
22392
22636
  printer_id: string | null;
22393
22637
  priority: number;
22394
22638
  reference: string | null;
@@ -22438,6 +22682,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22438
22682
  print_job_id: string | null;
22439
22683
  printed_at: string | null;
22440
22684
  printed_by: string | null;
22685
+ printed_cart_ids: import("./types").Json;
22441
22686
  printer_id: string | null;
22442
22687
  priority: number;
22443
22688
  reference: string | null;
@@ -22492,6 +22737,56 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22492
22737
  print_job_id: string | null;
22493
22738
  printed_at: string | null;
22494
22739
  printed_by: string | null;
22740
+ printed_cart_ids: import("./types").Json;
22741
+ printer_id: string | null;
22742
+ priority: number;
22743
+ reference: string | null;
22744
+ route: string | null;
22745
+ screen_id: string | null;
22746
+ station_id: string | null;
22747
+ status_id: string | null;
22748
+ updated_at: string;
22749
+ warnings: import("./types").Json;
22750
+ };
22751
+ SetofOptions: {
22752
+ from: "*";
22753
+ to: "pick_queue";
22754
+ isOneToOne: true;
22755
+ isSetofReturn: false;
22756
+ };
22757
+ };
22758
+ pick_complete_print_cart: {
22759
+ Args: {
22760
+ _cart_id: string;
22761
+ _printer_id: string;
22762
+ _queue_item_id: string;
22763
+ _session_id: string;
22764
+ };
22765
+ Returns: {
22766
+ announced_at: string;
22767
+ assigned_user_id: string | null;
22768
+ barcode: string | null;
22769
+ cancelled_at: string | null;
22770
+ cart_count: number;
22771
+ completed_at: string | null;
22772
+ country_code: string | null;
22773
+ created_at: string;
22774
+ customer_name: string | null;
22775
+ delivery_address: string | null;
22776
+ document_number: string | null;
22777
+ document_type_id: string | null;
22778
+ due_at: string | null;
22779
+ id: string;
22780
+ is_urgent: boolean;
22781
+ line_count: number;
22782
+ order_number: string | null;
22783
+ order_type: string | null;
22784
+ payload: import("./types").Json;
22785
+ print_count: number;
22786
+ print_job_id: string | null;
22787
+ printed_at: string | null;
22788
+ printed_by: string | null;
22789
+ printed_cart_ids: import("./types").Json;
22495
22790
  printer_id: string | null;
22496
22791
  priority: number;
22497
22792
  reference: string | null;
@@ -22535,6 +22830,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22535
22830
  _session_id?: string;
22536
22831
  };
22537
22832
  Returns: string;
22833
+ } | {
22834
+ Args: {
22835
+ _cart_id: string;
22836
+ _is_herprint: boolean;
22837
+ _printer_id: string;
22838
+ _queue_item_id: string;
22839
+ _session_id: string;
22840
+ };
22841
+ Returns: string;
22538
22842
  };
22539
22843
  pick_order_context: {
22540
22844
  Args: {
@@ -22615,6 +22919,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22615
22919
  print_job_id: string | null;
22616
22920
  printed_at: string | null;
22617
22921
  printed_by: string | null;
22922
+ printed_cart_ids: import("./types").Json;
22923
+ printer_id: string | null;
22924
+ priority: number;
22925
+ reference: string | null;
22926
+ route: string | null;
22927
+ screen_id: string | null;
22928
+ station_id: string | null;
22929
+ status_id: string | null;
22930
+ updated_at: string;
22931
+ warnings: import("./types").Json;
22932
+ };
22933
+ SetofOptions: {
22934
+ from: "*";
22935
+ to: "pick_queue";
22936
+ isOneToOne: true;
22937
+ isSetofReturn: false;
22938
+ };
22939
+ } | {
22940
+ Args: {
22941
+ _cart_id?: string;
22942
+ _queue_item_id: string;
22943
+ _session_id: string;
22944
+ };
22945
+ Returns: {
22946
+ announced_at: string;
22947
+ assigned_user_id: string | null;
22948
+ barcode: string | null;
22949
+ cancelled_at: string | null;
22950
+ cart_count: number;
22951
+ completed_at: string | null;
22952
+ country_code: string | null;
22953
+ created_at: string;
22954
+ customer_name: string | null;
22955
+ delivery_address: string | null;
22956
+ document_number: string | null;
22957
+ document_type_id: string | null;
22958
+ due_at: string | null;
22959
+ id: string;
22960
+ is_urgent: boolean;
22961
+ line_count: number;
22962
+ order_number: string | null;
22963
+ order_type: string | null;
22964
+ payload: import("./types").Json;
22965
+ print_count: number;
22966
+ print_job_id: string | null;
22967
+ printed_at: string | null;
22968
+ printed_by: string | null;
22969
+ printed_cart_ids: import("./types").Json;
22618
22970
  printer_id: string | null;
22619
22971
  priority: number;
22620
22972
  reference: string | null;
@@ -22727,6 +23079,66 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
22727
23079
  };
22728
23080
  Returns: undefined;
22729
23081
  };
23082
+ planning_cancel_item: {
23083
+ Args: {
23084
+ _id: string;
23085
+ };
23086
+ Returns: undefined;
23087
+ };
23088
+ planning_list: {
23089
+ Args: {
23090
+ _from: string;
23091
+ _to: string;
23092
+ };
23093
+ Returns: {
23094
+ assigned_monteur_id: string | null;
23095
+ assistants: import("./types").Json | null;
23096
+ budget_mandate_cents: number | null;
23097
+ created_at: string | null;
23098
+ created_by: string | null;
23099
+ customer_id: string | null;
23100
+ customer_name: string | null;
23101
+ duration_minutes: number | null;
23102
+ end_at: string | null;
23103
+ id: string | null;
23104
+ needs_detail_review: boolean | null;
23105
+ notes: string | null;
23106
+ project_number: string | null;
23107
+ review_reasons: string[] | null;
23108
+ start_at: string | null;
23109
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
23110
+ updated_at: string | null;
23111
+ viewer_role: string | null;
23112
+ werkbon_id: string | null;
23113
+ work_address: string | null;
23114
+ }[];
23115
+ SetofOptions: {
23116
+ from: "*";
23117
+ to: "planning_overview";
23118
+ isOneToOne: false;
23119
+ isSetofReturn: true;
23120
+ };
23121
+ };
23122
+ planning_set_assistants: {
23123
+ Args: {
23124
+ _monteur_ids: string[];
23125
+ _planning_item_id: string;
23126
+ };
23127
+ Returns: undefined;
23128
+ };
23129
+ planning_upsert_item: {
23130
+ Args: {
23131
+ _assigned_monteur_id: string;
23132
+ _end_at: string;
23133
+ _notes?: string;
23134
+ _start_at: string;
23135
+ _werkbon_id: string;
23136
+ };
23137
+ Returns: {
23138
+ action: string;
23139
+ id: string;
23140
+ }[];
23141
+ };
22730
23142
  print_preview_toestaan: {
22731
23143
  Args: {
22732
23144
  _max?: number;
@@ -23308,6 +23720,26 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
23308
23720
  };
23309
23721
  Returns: string[];
23310
23722
  };
23723
+ start_time_log_at: {
23724
+ Args: {
23725
+ p_clicked_at?: string;
23726
+ p_employee_id: string;
23727
+ p_start_lat?: number;
23728
+ p_start_lng?: number;
23729
+ p_type: string;
23730
+ p_work_order_id?: string;
23731
+ };
23732
+ Returns: import("./types").Json;
23733
+ };
23734
+ stop_time_log: {
23735
+ Args: {
23736
+ p_employee_id: string;
23737
+ p_end_lat?: number;
23738
+ p_end_lng?: number;
23739
+ p_end_time: string;
23740
+ };
23741
+ Returns: import("./types").Json;
23742
+ };
23311
23743
  switch_time_log: {
23312
23744
  Args: {
23313
23745
  p_employee_id: string;