@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
@@ -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: {
@@ -14590,6 +15094,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14590
15094
  created_at: string;
14591
15095
  custom_fields: import("./types").Json;
14592
15096
  floriday_trade_item_id: string | null;
15097
+ fust_type_id: string | null;
14593
15098
  id: string;
14594
15099
  image_url: string | null;
14595
15100
  incoming_quantity: number;
@@ -14597,6 +15102,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14597
15102
  layers_per_cart: number;
14598
15103
  location: string;
14599
15104
  min_quantity: number;
15105
+ plant_height_cm: number | null;
14600
15106
  plants_per_crate: number;
14601
15107
  product: string;
14602
15108
  product_type: string;
@@ -14616,6 +15122,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14616
15122
  created_at?: string;
14617
15123
  custom_fields?: import("./types").Json;
14618
15124
  floriday_trade_item_id?: string | null;
15125
+ fust_type_id?: string | null;
14619
15126
  id?: string;
14620
15127
  image_url?: string | null;
14621
15128
  incoming_quantity?: number;
@@ -14623,6 +15130,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14623
15130
  layers_per_cart?: number;
14624
15131
  location: string;
14625
15132
  min_quantity?: number;
15133
+ plant_height_cm?: number | null;
14626
15134
  plants_per_crate?: number;
14627
15135
  product: string;
14628
15136
  product_type?: string;
@@ -14642,6 +15150,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14642
15150
  created_at?: string;
14643
15151
  custom_fields?: import("./types").Json;
14644
15152
  floriday_trade_item_id?: string | null;
15153
+ fust_type_id?: string | null;
14645
15154
  id?: string;
14646
15155
  image_url?: string | null;
14647
15156
  incoming_quantity?: number;
@@ -14649,6 +15158,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14649
15158
  layers_per_cart?: number;
14650
15159
  location?: string;
14651
15160
  min_quantity?: number;
15161
+ plant_height_cm?: number | null;
14652
15162
  plants_per_crate?: number;
14653
15163
  product?: string;
14654
15164
  product_type?: string;
@@ -14660,7 +15170,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14660
15170
  updated_at?: string;
14661
15171
  weight?: string | null;
14662
15172
  };
14663
- 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
+ }];
14664
15180
  };
14665
15181
  profile_modules: {
14666
15182
  Row: {
@@ -15058,534 +15574,90 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15058
15574
  referencedColumns: ["id"];
15059
15575
  }];
15060
15576
  };
15061
- quote_activities: {
15577
+ reception_notifications: {
15062
15578
  Row: {
15579
+ booking_id: string | null;
15063
15580
  created_at: string;
15064
- event_type: string;
15065
15581
  id: string;
15066
- metadata: import("./types").Json;
15067
- quote_id: string;
15068
- user_id: string | null;
15582
+ is_read: boolean;
15583
+ message: string;
15584
+ recipient_email: string | null;
15585
+ title: string;
15586
+ type: string;
15069
15587
  };
15070
15588
  Insert: {
15589
+ booking_id?: string | null;
15071
15590
  created_at?: string;
15072
- event_type: string;
15073
15591
  id?: string;
15074
- metadata?: import("./types").Json;
15075
- quote_id: string;
15076
- user_id?: string | null;
15592
+ is_read?: boolean;
15593
+ message: string;
15594
+ recipient_email?: string | null;
15595
+ title: string;
15596
+ type: string;
15077
15597
  };
15078
15598
  Update: {
15599
+ booking_id?: string | null;
15079
15600
  created_at?: string;
15080
- event_type?: string;
15081
15601
  id?: string;
15082
- metadata?: import("./types").Json;
15083
- quote_id?: string;
15084
- user_id?: string | null;
15602
+ is_read?: boolean;
15603
+ message?: string;
15604
+ recipient_email?: string | null;
15605
+ title?: string;
15606
+ type?: string;
15085
15607
  };
15086
15608
  Relationships: [{
15087
- foreignKeyName: "quote_activities_quote_id_fkey";
15088
- columns: ["quote_id"];
15609
+ foreignKeyName: "reception_notifications_booking_id_fkey";
15610
+ columns: ["booking_id"];
15089
15611
  isOneToOne: false;
15090
- referencedRelation: "quotes";
15612
+ referencedRelation: "bookings";
15091
15613
  referencedColumns: ["id"];
15092
15614
  }];
15093
15615
  };
15094
- quote_attachments: {
15616
+ role_assignments: {
15095
15617
  Row: {
15096
15618
  created_at: string;
15097
- file_name: string;
15098
- file_size: number | null;
15099
- file_url: string;
15100
15619
  id: string;
15101
- mime_type: string | null;
15102
- quote_id: string;
15620
+ role_id: string;
15621
+ user_id: string;
15103
15622
  };
15104
15623
  Insert: {
15105
15624
  created_at?: string;
15106
- file_name: string;
15107
- file_size?: number | null;
15108
- file_url: string;
15109
15625
  id?: string;
15110
- mime_type?: string | null;
15111
- quote_id: string;
15626
+ role_id: string;
15627
+ user_id: string;
15112
15628
  };
15113
15629
  Update: {
15114
15630
  created_at?: string;
15115
- file_name?: string;
15116
- file_size?: number | null;
15117
- file_url?: string;
15118
15631
  id?: string;
15119
- mime_type?: string | null;
15120
- quote_id?: string;
15632
+ role_id?: string;
15633
+ user_id?: string;
15121
15634
  };
15122
15635
  Relationships: [{
15123
- foreignKeyName: "quote_attachments_quote_id_fkey";
15124
- columns: ["quote_id"];
15636
+ foreignKeyName: "role_assignments_role_id_fkey";
15637
+ columns: ["role_id"];
15125
15638
  isOneToOne: false;
15126
- referencedRelation: "quotes";
15639
+ referencedRelation: "roles";
15127
15640
  referencedColumns: ["id"];
15128
15641
  }];
15129
15642
  };
15130
- quote_field_options: {
15643
+ role_permissions: {
15131
15644
  Row: {
15132
- created_at: string;
15133
- field_id: string;
15645
+ can_edit: boolean;
15646
+ can_view: boolean;
15647
+ feature_id: string;
15134
15648
  id: string;
15135
- label: string;
15136
- sort_order: number;
15137
- value: string;
15649
+ module_id: string;
15650
+ role_id: string;
15651
+ updated_at: string;
15138
15652
  };
15139
15653
  Insert: {
15140
- created_at?: string;
15141
- field_id: string;
15654
+ can_edit?: boolean;
15655
+ can_view?: boolean;
15656
+ feature_id?: string;
15142
15657
  id?: string;
15143
- label: string;
15144
- sort_order?: number;
15145
- value: string;
15146
- };
15147
- Update: {
15148
- created_at?: string;
15149
- field_id?: string;
15150
- id?: string;
15151
- label?: string;
15152
- sort_order?: number;
15153
- value?: string;
15154
- };
15155
- Relationships: [{
15156
- foreignKeyName: "quote_field_options_field_id_fkey";
15157
- columns: ["field_id"];
15158
- isOneToOne: false;
15159
- referencedRelation: "quote_field_settings";
15160
- referencedColumns: ["id"];
15161
- }];
15162
- };
15163
- quote_field_settings: {
15164
- Row: {
15165
- created_at: string;
15166
- default_value: string | null;
15167
- field_key: string;
15168
- field_type: string;
15169
- id: string;
15170
- is_system: boolean;
15171
- label: string;
15172
- required: boolean;
15173
- sort_order: number;
15174
- updated_at: string;
15175
- visible: boolean;
15176
- };
15177
- Insert: {
15178
- created_at?: string;
15179
- default_value?: string | null;
15180
- field_key: string;
15181
- field_type: string;
15182
- id?: string;
15183
- is_system?: boolean;
15184
- label: string;
15185
- required?: boolean;
15186
- sort_order?: number;
15187
- updated_at?: string;
15188
- visible?: boolean;
15189
- };
15190
- Update: {
15191
- created_at?: string;
15192
- default_value?: string | null;
15193
- field_key?: string;
15194
- field_type?: string;
15195
- id?: string;
15196
- is_system?: boolean;
15197
- label?: string;
15198
- required?: boolean;
15199
- sort_order?: number;
15200
- updated_at?: string;
15201
- visible?: boolean;
15202
- };
15203
- Relationships: [];
15204
- };
15205
- quote_items: {
15206
- Row: {
15207
- category: string | null;
15208
- created_at: string;
15209
- description: string;
15210
- id: string;
15211
- line_total: number;
15212
- module_id: string | null;
15213
- name: string | null;
15214
- quantity: number;
15215
- quote_id: string;
15216
- sort_order: number;
15217
- unit_price: number;
15218
- };
15219
- Insert: {
15220
- category?: string | null;
15221
- created_at?: string;
15222
- description?: string;
15223
- id?: string;
15224
- line_total?: number;
15225
- module_id?: string | null;
15226
- name?: string | null;
15227
- quantity?: number;
15228
- quote_id: string;
15229
- sort_order?: number;
15230
- unit_price?: number;
15231
- };
15232
- Update: {
15233
- category?: string | null;
15234
- created_at?: string;
15235
- description?: string;
15236
- id?: string;
15237
- line_total?: number;
15238
- module_id?: string | null;
15239
- name?: string | null;
15240
- quantity?: number;
15241
- quote_id?: string;
15242
- sort_order?: number;
15243
- unit_price?: number;
15244
- };
15245
- Relationships: [{
15246
- foreignKeyName: "quote_items_module_id_fkey";
15247
- columns: ["module_id"];
15248
- isOneToOne: false;
15249
- referencedRelation: "quote_modules";
15250
- referencedColumns: ["id"];
15251
- }, {
15252
- foreignKeyName: "quote_items_quote_id_fkey";
15253
- columns: ["quote_id"];
15254
- isOneToOne: false;
15255
- referencedRelation: "quotes";
15256
- referencedColumns: ["id"];
15257
- }];
15258
- };
15259
- quote_modules: {
15260
- Row: {
15261
- category: string | null;
15262
- created_at: string;
15263
- description: string | null;
15264
- id: string;
15265
- is_active: boolean;
15266
- name: string;
15267
- price: number;
15268
- sort_order: number;
15269
- updated_at: string;
15270
- };
15271
- Insert: {
15272
- category?: string | null;
15273
- created_at?: string;
15274
- description?: string | null;
15275
- id?: string;
15276
- is_active?: boolean;
15277
- name: string;
15278
- price?: number;
15279
- sort_order?: number;
15280
- updated_at?: string;
15281
- };
15282
- Update: {
15283
- category?: string | null;
15284
- created_at?: string;
15285
- description?: string | null;
15286
- id?: string;
15287
- is_active?: boolean;
15288
- name?: string;
15289
- price?: number;
15290
- sort_order?: number;
15291
- updated_at?: string;
15292
- };
15293
- Relationships: [];
15294
- };
15295
- quote_templates: {
15296
- Row: {
15297
- created_at: string;
15298
- description: string | null;
15299
- field_values: import("./types").Json;
15300
- id: string;
15301
- is_default: boolean;
15302
- items: import("./types").Json;
15303
- name: string;
15304
- updated_at: string;
15305
- vat_rate: number;
15306
- };
15307
- Insert: {
15308
- created_at?: string;
15309
- description?: string | null;
15310
- field_values?: import("./types").Json;
15311
- id?: string;
15312
- is_default?: boolean;
15313
- items?: import("./types").Json;
15314
- name: string;
15315
- updated_at?: string;
15316
- vat_rate?: number;
15317
- };
15318
- Update: {
15319
- created_at?: string;
15320
- description?: string | null;
15321
- field_values?: import("./types").Json;
15322
- id?: string;
15323
- is_default?: boolean;
15324
- items?: import("./types").Json;
15325
- name?: string;
15326
- updated_at?: string;
15327
- vat_rate?: number;
15328
- };
15329
- Relationships: [];
15330
- };
15331
- quote_terms: {
15332
- Row: {
15333
- content: string | null;
15334
- created_at: string;
15335
- file_url: string | null;
15336
- id: string;
15337
- is_active: boolean;
15338
- name: string;
15339
- published_at: string | null;
15340
- updated_at: string;
15341
- version: string;
15342
- };
15343
- Insert: {
15344
- content?: string | null;
15345
- created_at?: string;
15346
- file_url?: string | null;
15347
- id?: string;
15348
- is_active?: boolean;
15349
- name: string;
15350
- published_at?: string | null;
15351
- updated_at?: string;
15352
- version?: string;
15353
- };
15354
- Update: {
15355
- content?: string | null;
15356
- created_at?: string;
15357
- file_url?: string | null;
15358
- id?: string;
15359
- is_active?: boolean;
15360
- name?: string;
15361
- published_at?: string | null;
15362
- updated_at?: string;
15363
- version?: string;
15364
- };
15365
- Relationships: [];
15366
- };
15367
- quotes: {
15368
- Row: {
15369
- accepted_at: string | null;
15370
- archived_at: string | null;
15371
- contact_id: string | null;
15372
- created_at: string;
15373
- customer_id: string | null;
15374
- discount: number;
15375
- expires_at: string | null;
15376
- field_values: import("./types").Json;
15377
- id: string;
15378
- notes: string | null;
15379
- owner_id: string | null;
15380
- personal_message: string | null;
15381
- project_id: string | null;
15382
- prospect_id: string | null;
15383
- public_token: string;
15384
- quote_number: string | null;
15385
- recipient_email: string | null;
15386
- recipient_name: string | null;
15387
- rejected_at: string | null;
15388
- sent_at: string | null;
15389
- status: string;
15390
- subtotal: number;
15391
- template_id: string | null;
15392
- terms_id: string | null;
15393
- title: string;
15394
- total: number;
15395
- updated_at: string;
15396
- valid_until: string | null;
15397
- vat_amount: number;
15398
- vat_rate: number;
15399
- viewed_at: string | null;
15400
- };
15401
- Insert: {
15402
- accepted_at?: string | null;
15403
- archived_at?: string | null;
15404
- contact_id?: string | null;
15405
- created_at?: string;
15406
- customer_id?: string | null;
15407
- discount?: number;
15408
- expires_at?: string | null;
15409
- field_values?: import("./types").Json;
15410
- id?: string;
15411
- notes?: string | null;
15412
- owner_id?: string | null;
15413
- personal_message?: string | null;
15414
- project_id?: string | null;
15415
- prospect_id?: string | null;
15416
- public_token?: string;
15417
- quote_number?: string | null;
15418
- recipient_email?: string | null;
15419
- recipient_name?: string | null;
15420
- rejected_at?: string | null;
15421
- sent_at?: string | null;
15422
- status?: string;
15423
- subtotal?: number;
15424
- template_id?: string | null;
15425
- terms_id?: string | null;
15426
- title?: string;
15427
- total?: number;
15428
- updated_at?: string;
15429
- valid_until?: string | null;
15430
- vat_amount?: number;
15431
- vat_rate?: number;
15432
- viewed_at?: string | null;
15433
- };
15434
- Update: {
15435
- accepted_at?: string | null;
15436
- archived_at?: string | null;
15437
- contact_id?: string | null;
15438
- created_at?: string;
15439
- customer_id?: string | null;
15440
- discount?: number;
15441
- expires_at?: string | null;
15442
- field_values?: import("./types").Json;
15443
- id?: string;
15444
- notes?: string | null;
15445
- owner_id?: string | null;
15446
- personal_message?: string | null;
15447
- project_id?: string | null;
15448
- prospect_id?: string | null;
15449
- public_token?: string;
15450
- quote_number?: string | null;
15451
- recipient_email?: string | null;
15452
- recipient_name?: string | null;
15453
- rejected_at?: string | null;
15454
- sent_at?: string | null;
15455
- status?: string;
15456
- subtotal?: number;
15457
- template_id?: string | null;
15458
- terms_id?: string | null;
15459
- title?: string;
15460
- total?: number;
15461
- updated_at?: string;
15462
- valid_until?: string | null;
15463
- vat_amount?: number;
15464
- vat_rate?: number;
15465
- viewed_at?: string | null;
15466
- };
15467
- Relationships: [{
15468
- foreignKeyName: "quotes_contact_id_fkey";
15469
- columns: ["contact_id"];
15470
- isOneToOne: false;
15471
- referencedRelation: "customer_contacts";
15472
- referencedColumns: ["id"];
15473
- }, {
15474
- foreignKeyName: "quotes_customer_id_fkey";
15475
- columns: ["customer_id"];
15476
- isOneToOne: false;
15477
- referencedRelation: "customers";
15478
- referencedColumns: ["id"];
15479
- }, {
15480
- foreignKeyName: "quotes_project_id_fkey";
15481
- columns: ["project_id"];
15482
- isOneToOne: false;
15483
- referencedRelation: "projects";
15484
- referencedColumns: ["id"];
15485
- }, {
15486
- foreignKeyName: "quotes_prospect_id_fkey";
15487
- columns: ["prospect_id"];
15488
- isOneToOne: false;
15489
- referencedRelation: "prospects";
15490
- referencedColumns: ["id"];
15491
- }, {
15492
- foreignKeyName: "quotes_template_id_fkey";
15493
- columns: ["template_id"];
15494
- isOneToOne: false;
15495
- referencedRelation: "quote_templates";
15496
- referencedColumns: ["id"];
15497
- }, {
15498
- foreignKeyName: "quotes_terms_id_fkey";
15499
- columns: ["terms_id"];
15500
- isOneToOne: false;
15501
- referencedRelation: "quote_terms";
15502
- referencedColumns: ["id"];
15503
- }];
15504
- };
15505
- reception_notifications: {
15506
- Row: {
15507
- booking_id: string | null;
15508
- created_at: string;
15509
- id: string;
15510
- is_read: boolean;
15511
- message: string;
15512
- recipient_email: string | null;
15513
- title: string;
15514
- type: string;
15515
- };
15516
- Insert: {
15517
- booking_id?: string | null;
15518
- created_at?: string;
15519
- id?: string;
15520
- is_read?: boolean;
15521
- message: string;
15522
- recipient_email?: string | null;
15523
- title: string;
15524
- type: string;
15525
- };
15526
- Update: {
15527
- booking_id?: string | null;
15528
- created_at?: string;
15529
- id?: string;
15530
- is_read?: boolean;
15531
- message?: string;
15532
- recipient_email?: string | null;
15533
- title?: string;
15534
- type?: string;
15535
- };
15536
- Relationships: [{
15537
- foreignKeyName: "reception_notifications_booking_id_fkey";
15538
- columns: ["booking_id"];
15539
- isOneToOne: false;
15540
- referencedRelation: "bookings";
15541
- referencedColumns: ["id"];
15542
- }];
15543
- };
15544
- role_assignments: {
15545
- Row: {
15546
- created_at: string;
15547
- id: string;
15548
- role_id: string;
15549
- user_id: string;
15550
- };
15551
- Insert: {
15552
- created_at?: string;
15553
- id?: string;
15554
- role_id: string;
15555
- user_id: string;
15556
- };
15557
- Update: {
15558
- created_at?: string;
15559
- id?: string;
15560
- role_id?: string;
15561
- user_id?: string;
15562
- };
15563
- Relationships: [{
15564
- foreignKeyName: "role_assignments_role_id_fkey";
15565
- columns: ["role_id"];
15566
- isOneToOne: false;
15567
- referencedRelation: "roles";
15568
- referencedColumns: ["id"];
15569
- }];
15570
- };
15571
- role_permissions: {
15572
- Row: {
15573
- can_edit: boolean;
15574
- can_view: boolean;
15575
- feature_id: string;
15576
- id: string;
15577
- module_id: string;
15578
- role_id: string;
15579
- updated_at: string;
15580
- };
15581
- Insert: {
15582
- can_edit?: boolean;
15583
- can_view?: boolean;
15584
- feature_id?: string;
15585
- id?: string;
15586
- module_id: string;
15587
- role_id: string;
15588
- updated_at?: string;
15658
+ module_id: string;
15659
+ role_id: string;
15660
+ updated_at?: string;
15589
15661
  };
15590
15662
  Update: {
15591
15663
  can_edit?: boolean;
@@ -16623,7 +16695,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16623
16695
  foreignKeyName: "time_logs_work_order_id_fkey";
16624
16696
  columns: ["work_order_id"];
16625
16697
  isOneToOne: false;
16626
- referencedRelation: "work_orders";
16698
+ referencedRelation: "werkbonnen";
16627
16699
  referencedColumns: ["id"];
16628
16700
  }];
16629
16701
  };
@@ -16755,6 +16827,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16755
16827
  };
16756
16828
  trade_item_stock: {
16757
16829
  Row: {
16830
+ change_source: string;
16758
16831
  connection_id: string;
16759
16832
  created_at: string;
16760
16833
  id: string;
@@ -16768,6 +16841,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16768
16841
  user_id: string;
16769
16842
  };
16770
16843
  Insert: {
16844
+ change_source?: string;
16771
16845
  connection_id: string;
16772
16846
  created_at?: string;
16773
16847
  id?: string;
@@ -16781,6 +16855,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16781
16855
  user_id: string;
16782
16856
  };
16783
16857
  Update: {
16858
+ change_source?: string;
16784
16859
  connection_id?: string;
16785
16860
  created_at?: string;
16786
16861
  id?: string;
@@ -17838,268 +17913,118 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17838
17913
  break_minutes?: number | null;
17839
17914
  contract_hours_per_week?: number;
17840
17915
  created_at?: string;
17841
- daily_threshold_hours?: number | null;
17842
- id?: string;
17843
- include_travel?: boolean | null;
17844
- monteur_id: string;
17845
- ov02_percentage?: number | null;
17846
- ov03_percentage?: number | null;
17847
- updated_at?: string;
17848
- weekly_threshold_hours?: number | null;
17849
- workday_end?: string | null;
17850
- workday_start?: string | null;
17851
- };
17852
- Update: {
17853
- break_minutes?: number | null;
17854
- contract_hours_per_week?: number;
17855
- created_at?: string;
17856
- daily_threshold_hours?: number | null;
17857
- id?: string;
17858
- include_travel?: boolean | null;
17859
- monteur_id?: string;
17860
- ov02_percentage?: number | null;
17861
- ov03_percentage?: number | null;
17862
- updated_at?: string;
17863
- weekly_threshold_hours?: number | null;
17864
- workday_end?: string | null;
17865
- workday_start?: string | null;
17866
- };
17867
- Relationships: [];
17868
- };
17869
- uren_entries: {
17870
- Row: {
17871
- created_at: string;
17872
- created_by: string | null;
17873
- entry_date: string;
17874
- hours: number;
17875
- id: string;
17876
- kind: string;
17877
- monteur_id: string;
17878
- note: string | null;
17879
- source: string;
17880
- travel_km: number;
17881
- updated_at: string;
17882
- werkbon_id: string | null;
17883
- };
17884
- Insert: {
17885
- created_at?: string;
17886
- created_by?: string | null;
17887
- entry_date: string;
17888
- hours?: number;
17889
- id?: string;
17890
- kind?: string;
17891
- monteur_id: string;
17892
- note?: string | null;
17893
- source?: string;
17894
- travel_km?: number;
17895
- updated_at?: string;
17896
- werkbon_id?: string | null;
17897
- };
17898
- Update: {
17899
- created_at?: string;
17900
- created_by?: string | null;
17901
- entry_date?: string;
17902
- hours?: number;
17903
- id?: string;
17904
- kind?: string;
17905
- monteur_id?: string;
17906
- note?: string | null;
17907
- source?: string;
17908
- travel_km?: number;
17909
- updated_at?: string;
17910
- werkbon_id?: string | null;
17911
- };
17912
- Relationships: [{
17913
- foreignKeyName: "uren_entries_werkbon_id_fkey";
17914
- columns: ["werkbon_id"];
17915
- isOneToOne: false;
17916
- referencedRelation: "werkbonnen";
17917
- referencedColumns: ["id"];
17918
- }];
17919
- };
17920
- uren_exports: {
17921
- Row: {
17922
- created_at: string;
17923
- created_by: string | null;
17924
- file_name: string | null;
17925
- id: string;
17926
- monteur_ids: string[];
17927
- period_end: string;
17928
- period_start: string;
17929
- row_count: number;
17930
- };
17931
- Insert: {
17932
- created_at?: string;
17933
- created_by?: string | null;
17934
- file_name?: string | null;
17935
- id?: string;
17936
- monteur_ids?: string[];
17937
- period_end: string;
17938
- period_start: string;
17939
- row_count?: number;
17940
- };
17941
- Update: {
17942
- created_at?: string;
17943
- created_by?: string | null;
17944
- file_name?: string | null;
17945
- id?: string;
17946
- monteur_ids?: string[];
17947
- period_end?: string;
17948
- period_start?: string;
17949
- row_count?: number;
17950
- };
17951
- Relationships: [];
17952
- };
17953
- uren_offerte_regels: {
17954
- Row: {
17955
- created_at: string;
17956
- description: string;
17957
- duration_minutes: number;
17958
- id: string;
17959
- offerte_id: string;
17960
- package_id: string | null;
17961
- quantity: number;
17962
- sort_order: number;
17963
- total_cents: number;
17964
- unit_price_cents: number;
17965
- };
17966
- Insert: {
17967
- created_at?: string;
17968
- description: string;
17969
- duration_minutes?: number;
17970
- id?: string;
17971
- offerte_id: string;
17972
- package_id?: string | null;
17973
- quantity?: number;
17974
- sort_order?: number;
17975
- total_cents?: number;
17976
- unit_price_cents?: number;
17977
- };
17978
- Update: {
17979
- created_at?: string;
17980
- description?: string;
17981
- duration_minutes?: number;
17982
- id?: string;
17983
- offerte_id?: string;
17984
- package_id?: string | null;
17985
- quantity?: number;
17986
- sort_order?: number;
17987
- total_cents?: number;
17988
- unit_price_cents?: number;
17989
- };
17990
- Relationships: [{
17991
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
17992
- columns: ["offerte_id"];
17993
- isOneToOne: false;
17994
- referencedRelation: "uren_offertes";
17995
- referencedColumns: ["id"];
17996
- }, {
17997
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
17998
- columns: ["package_id"];
17999
- isOneToOne: false;
18000
- referencedRelation: "werkbon_packages";
18001
- referencedColumns: ["id"];
18002
- }];
18003
- };
18004
- uren_offerte_velden: {
18005
- Row: {
18006
- created_at: string;
18007
- field_type: string;
18008
- id: string;
18009
- key: string;
18010
- label: string;
18011
- options: string[];
18012
- required: boolean;
18013
- sort_order: number;
18014
- updated_at: string;
18015
- };
18016
- Insert: {
18017
- created_at?: string;
18018
- field_type?: string;
18019
- id?: string;
18020
- key: string;
18021
- label: string;
18022
- options?: string[];
18023
- required?: boolean;
18024
- sort_order?: number;
17916
+ daily_threshold_hours?: number | null;
17917
+ id?: string;
17918
+ include_travel?: boolean | null;
17919
+ monteur_id: string;
17920
+ ov02_percentage?: number | null;
17921
+ ov03_percentage?: number | null;
18025
17922
  updated_at?: string;
17923
+ weekly_threshold_hours?: number | null;
17924
+ workday_end?: string | null;
17925
+ workday_start?: string | null;
18026
17926
  };
18027
17927
  Update: {
17928
+ break_minutes?: number | null;
17929
+ contract_hours_per_week?: number;
18028
17930
  created_at?: string;
18029
- field_type?: string;
17931
+ daily_threshold_hours?: number | null;
18030
17932
  id?: string;
18031
- key?: string;
18032
- label?: string;
18033
- options?: string[];
18034
- required?: boolean;
18035
- sort_order?: number;
17933
+ include_travel?: boolean | null;
17934
+ monteur_id?: string;
17935
+ ov02_percentage?: number | null;
17936
+ ov03_percentage?: number | null;
18036
17937
  updated_at?: string;
17938
+ weekly_threshold_hours?: number | null;
17939
+ workday_end?: string | null;
17940
+ workday_start?: string | null;
18037
17941
  };
18038
17942
  Relationships: [];
18039
17943
  };
18040
- uren_offertes: {
17944
+ uren_entries: {
18041
17945
  Row: {
18042
17946
  created_at: string;
18043
17947
  created_by: string | null;
18044
- customer_id: string | null;
18045
- customer_name: string | null;
18046
- dynamic_fields: import("./types").Json;
18047
- estimated_minutes: number;
17948
+ entry_date: string;
17949
+ hours: number;
18048
17950
  id: string;
17951
+ kind: string;
17952
+ monteur_id: string;
18049
17953
  note: string | null;
18050
- quote_number: string | null;
18051
- status: string;
18052
- title: string;
18053
- total_excl_cents: number;
18054
- total_incl_cents: number;
17954
+ source: string;
17955
+ travel_km: number;
18055
17956
  updated_at: string;
18056
- valid_until: string | null;
18057
- vat_percentage: number;
17957
+ werkbon_id: string | null;
18058
17958
  };
18059
17959
  Insert: {
18060
17960
  created_at?: string;
18061
17961
  created_by?: string | null;
18062
- customer_id?: string | null;
18063
- customer_name?: string | null;
18064
- dynamic_fields?: import("./types").Json;
18065
- estimated_minutes?: number;
17962
+ entry_date: string;
17963
+ hours?: number;
18066
17964
  id?: string;
17965
+ kind?: string;
17966
+ monteur_id: string;
18067
17967
  note?: string | null;
18068
- quote_number?: string | null;
18069
- status?: string;
18070
- title?: string;
18071
- total_excl_cents?: number;
18072
- total_incl_cents?: number;
17968
+ source?: string;
17969
+ travel_km?: number;
18073
17970
  updated_at?: string;
18074
- valid_until?: string | null;
18075
- vat_percentage?: number;
17971
+ werkbon_id?: string | null;
18076
17972
  };
18077
17973
  Update: {
18078
17974
  created_at?: string;
18079
17975
  created_by?: string | null;
18080
- customer_id?: string | null;
18081
- customer_name?: string | null;
18082
- dynamic_fields?: import("./types").Json;
18083
- estimated_minutes?: number;
17976
+ entry_date?: string;
17977
+ hours?: number;
18084
17978
  id?: string;
17979
+ kind?: string;
17980
+ monteur_id?: string;
18085
17981
  note?: string | null;
18086
- quote_number?: string | null;
18087
- status?: string;
18088
- title?: string;
18089
- total_excl_cents?: number;
18090
- total_incl_cents?: number;
17982
+ source?: string;
17983
+ travel_km?: number;
18091
17984
  updated_at?: string;
18092
- valid_until?: string | null;
18093
- vat_percentage?: number;
17985
+ werkbon_id?: string | null;
18094
17986
  };
18095
17987
  Relationships: [{
18096
- foreignKeyName: "uren_offertes_customer_id_fkey";
18097
- columns: ["customer_id"];
17988
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
17989
+ columns: ["werkbon_id"];
18098
17990
  isOneToOne: false;
18099
- referencedRelation: "itk_customers";
17991
+ referencedRelation: "werkbonnen";
18100
17992
  referencedColumns: ["id"];
18101
17993
  }];
18102
17994
  };
17995
+ uren_exports: {
17996
+ Row: {
17997
+ created_at: string;
17998
+ created_by: string | null;
17999
+ file_name: string | null;
18000
+ id: string;
18001
+ monteur_ids: string[];
18002
+ period_end: string;
18003
+ period_start: string;
18004
+ row_count: number;
18005
+ };
18006
+ Insert: {
18007
+ created_at?: string;
18008
+ created_by?: string | null;
18009
+ file_name?: string | null;
18010
+ id?: string;
18011
+ monteur_ids?: string[];
18012
+ period_end: string;
18013
+ period_start: string;
18014
+ row_count?: number;
18015
+ };
18016
+ Update: {
18017
+ created_at?: string;
18018
+ created_by?: string | null;
18019
+ file_name?: string | null;
18020
+ id?: string;
18021
+ monteur_ids?: string[];
18022
+ period_end?: string;
18023
+ period_start?: string;
18024
+ row_count?: number;
18025
+ };
18026
+ Relationships: [];
18027
+ };
18103
18028
  uren_settings: {
18104
18029
  Row: {
18105
18030
  break_minutes: number;
@@ -19786,6 +19711,37 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19786
19711
  };
19787
19712
  Relationships: [];
19788
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
+ };
19789
19745
  product_group_stock_view: {
19790
19746
  Row: {
19791
19747
  item_count: number | null;
@@ -20381,6 +20337,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20381
20337
  Args: never;
20382
20338
  Returns: number;
20383
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
+ };
20384
20352
  calculate_layer_stock: {
20385
20353
  Args: {
20386
20354
  p_product_id: string;
@@ -20475,6 +20443,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20475
20443
  attempts: number;
20476
20444
  connection_id: string;
20477
20445
  created_at: string;
20446
+ dead_lettered_at: string | null;
20478
20447
  desired_available: boolean | null;
20479
20448
  gateway_attempt_id: string | null;
20480
20449
  id: string;
@@ -20483,9 +20452,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20483
20452
  locked_by: string | null;
20484
20453
  next_attempt_at: string;
20485
20454
  number_of_pieces: number;
20455
+ product_id: string | null;
20486
20456
  sent_at: string | null;
20487
20457
  status: string;
20458
+ stock_mode: string | null;
20488
20459
  superseded_by: string | null;
20460
+ target_week: number | null;
20461
+ target_year: number | null;
20489
20462
  trade_item_id: string;
20490
20463
  updated_at: string;
20491
20464
  user_id: string;
@@ -20966,6 +20939,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20966
20939
  };
20967
20940
  Returns: string;
20968
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
+ };
20969
20960
  floriday_effective_price: {
20970
20961
  Args: {
20971
20962
  _buyer_id: string;
@@ -20983,6 +20974,34 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20983
20974
  source_id: string;
20984
20975
  }[];
20985
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
+ };
20986
21005
  format_cart_number: {
20987
21006
  Args: {
20988
21007
  p_pick_date: string;
@@ -21162,42 +21181,167 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21162
21181
  ordered_at: string;
21163
21182
  }[];
21164
21183
  };
21165
- get_or_assign_floriday_order_number: {
21184
+ get_or_assign_floriday_order_number: {
21185
+ Args: {
21186
+ p_floriday_id: string;
21187
+ };
21188
+ Returns: string;
21189
+ };
21190
+ get_product_group_available_stock: {
21191
+ Args: {
21192
+ p_group_id: string;
21193
+ };
21194
+ Returns: number;
21195
+ };
21196
+ get_room_busy_windows: {
21197
+ Args: {
21198
+ p_from: string;
21199
+ p_to: string;
21200
+ };
21201
+ Returns: {
21202
+ end_time: string;
21203
+ room_id: string;
21204
+ start_time: string;
21205
+ status: string;
21206
+ }[];
21207
+ };
21208
+ get_twinfield_cron_jobs: {
21209
+ Args: never;
21210
+ Returns: {
21211
+ active: boolean;
21212
+ jobname: string;
21213
+ schedule: string;
21214
+ url: string;
21215
+ }[];
21216
+ };
21217
+ get_user_tenant_id: {
21218
+ Args: never;
21219
+ Returns: string;
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: {
21166
21307
  Args: {
21167
- p_floriday_id: string;
21308
+ _label?: string;
21309
+ _module_id: string;
21168
21310
  };
21169
21311
  Returns: string;
21170
21312
  };
21171
- get_product_group_available_stock: {
21313
+ handover_update: {
21172
21314
  Args: {
21173
- p_group_id: string;
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;
21174
21323
  };
21175
- Returns: number;
21176
- };
21177
- get_room_busy_windows: {
21324
+ Returns: boolean;
21325
+ } | {
21178
21326
  Args: {
21179
- p_from: string;
21180
- p_to: string;
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;
21181
21337
  };
21182
- Returns: {
21183
- end_time: string;
21184
- room_id: string;
21185
- start_time: string;
21186
- status: string;
21187
- }[];
21188
- };
21189
- get_twinfield_cron_jobs: {
21190
- Args: never;
21191
- Returns: {
21192
- active: boolean;
21193
- jobname: string;
21194
- schedule: string;
21195
- url: string;
21196
- }[];
21338
+ Returns: boolean;
21197
21339
  };
21198
- get_user_tenant_id: {
21199
- Args: never;
21200
- Returns: string;
21340
+ handover_versies: {
21341
+ Args: {
21342
+ _module_id: string;
21343
+ };
21344
+ Returns: import("./types").Json;
21201
21345
  };
21202
21346
  has_module_permission: {
21203
21347
  Args: {
@@ -21218,6 +21362,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21218
21362
  Args: never;
21219
21363
  Returns: boolean;
21220
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
+ };
21221
21384
  invoice_create_from_source: {
21222
21385
  Args: {
21223
21386
  _payload?: import("./types").Json;
@@ -21442,6 +21605,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21442
21605
  };
21443
21606
  Returns: boolean;
21444
21607
  };
21608
+ logistics_barcode_lookup: {
21609
+ Args: {
21610
+ p_barcode: string;
21611
+ };
21612
+ Returns: import("./types").Json;
21613
+ };
21445
21614
  logistics_buffer_criteria: {
21446
21615
  Args: {
21447
21616
  p_settings: import("./types").Json;
@@ -21502,6 +21671,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21502
21671
  };
21503
21672
  Returns: number;
21504
21673
  };
21674
+ logistics_cart_barcode_value: {
21675
+ Args: {
21676
+ _cart_id: string;
21677
+ };
21678
+ Returns: string;
21679
+ };
21505
21680
  logistics_cart_index: {
21506
21681
  Args: {
21507
21682
  p_from?: string;
@@ -21511,6 +21686,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21511
21686
  cart_id: string;
21512
21687
  cart_index: number;
21513
21688
  cart_label: string;
21689
+ delivery_date: string;
21690
+ is_announced: boolean;
21691
+ is_controlled: boolean;
21692
+ is_printed: boolean;
21514
21693
  is_shared: boolean;
21515
21694
  order_number: string;
21516
21695
  order_source: string;
@@ -21521,6 +21700,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21521
21700
  task_status: string;
21522
21701
  }[];
21523
21702
  };
21703
+ logistics_cart_slip_plan: {
21704
+ Args: {
21705
+ p_order_id: string;
21706
+ };
21707
+ Returns: import("./types").Json;
21708
+ };
21524
21709
  logistics_check_order_allowed: {
21525
21710
  Args: {
21526
21711
  p_lines: import("./types").Json;
@@ -21673,11 +21858,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21673
21858
  Args: never;
21674
21859
  Returns: {
21675
21860
  agenda_carts: number;
21861
+ announced_carts: number;
21676
21862
  control_carts: number;
21863
+ delivery_carts: number;
21677
21864
  ok: boolean;
21678
21865
  orphan_tasks: number;
21679
21866
  pick_date: string;
21680
21867
  raw_carts: number;
21868
+ sales_carts: number;
21869
+ station_carts: number;
21681
21870
  }[];
21682
21871
  };
21683
21872
  logistics_delay_customer_email: {
@@ -21693,12 +21882,35 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21693
21882
  subject: string;
21694
21883
  }[];
21695
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
+ };
21696
21901
  logistics_document_layout: {
21697
21902
  Args: {
21698
21903
  _document_code: string;
21699
21904
  };
21700
21905
  Returns: import("./types").Json;
21701
21906
  };
21907
+ logistics_document_layout_v2: {
21908
+ Args: {
21909
+ _document_code: string;
21910
+ _is_partial?: boolean;
21911
+ };
21912
+ Returns: import("./types").Json;
21913
+ };
21702
21914
  logistics_document_station: {
21703
21915
  Args: {
21704
21916
  _document_code: string;
@@ -21724,6 +21936,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21724
21936
  };
21725
21937
  Returns: import("./types").Json;
21726
21938
  };
21939
+ logistics_ensure_cart_barcode: {
21940
+ Args: {
21941
+ _cart_id: string;
21942
+ };
21943
+ Returns: string;
21944
+ };
21727
21945
  logistics_fail_task: {
21728
21946
  Args: {
21729
21947
  p_error: string;
@@ -21769,6 +21987,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21769
21987
  isSetofReturn: false;
21770
21988
  };
21771
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
+ };
21772
22000
  logistics_floriday_claim_pushes: {
21773
22001
  Args: {
21774
22002
  _lease_seconds?: number;
@@ -21974,6 +22202,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21974
22202
  };
21975
22203
  Returns: undefined;
21976
22204
  };
22205
+ logistics_plan_floriday_order: {
22206
+ Args: {
22207
+ p_buffer_id?: string;
22208
+ p_order_id: string;
22209
+ };
22210
+ Returns: number;
22211
+ };
21977
22212
  logistics_plan_impact_orders: {
21978
22213
  Args: {
21979
22214
  p_order_id: string;
@@ -22167,6 +22402,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22167
22402
  };
22168
22403
  Returns: string;
22169
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
+ };
22170
22413
  logistics_supersede_stale_tasks: {
22171
22414
  Args: {
22172
22415
  p_keep: string[];
@@ -22388,6 +22631,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22388
22631
  print_job_id: string | null;
22389
22632
  printed_at: string | null;
22390
22633
  printed_by: string | null;
22634
+ printed_cart_ids: import("./types").Json;
22391
22635
  printer_id: string | null;
22392
22636
  priority: number;
22393
22637
  reference: string | null;
@@ -22437,6 +22681,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22437
22681
  print_job_id: string | null;
22438
22682
  printed_at: string | null;
22439
22683
  printed_by: string | null;
22684
+ printed_cart_ids: import("./types").Json;
22440
22685
  printer_id: string | null;
22441
22686
  priority: number;
22442
22687
  reference: string | null;
@@ -22491,6 +22736,56 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22491
22736
  print_job_id: string | null;
22492
22737
  printed_at: string | null;
22493
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;
22494
22789
  printer_id: string | null;
22495
22790
  priority: number;
22496
22791
  reference: string | null;
@@ -22534,6 +22829,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22534
22829
  _session_id?: string;
22535
22830
  };
22536
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;
22537
22841
  };
22538
22842
  pick_order_context: {
22539
22843
  Args: {
@@ -22614,6 +22918,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22614
22918
  print_job_id: string | null;
22615
22919
  printed_at: string | null;
22616
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;
22617
22969
  printer_id: string | null;
22618
22970
  priority: number;
22619
22971
  reference: string | null;
@@ -22726,6 +23078,66 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22726
23078
  };
22727
23079
  Returns: undefined;
22728
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
+ };
22729
23141
  print_preview_toestaan: {
22730
23142
  Args: {
22731
23143
  _max?: number;
@@ -23307,6 +23719,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23307
23719
  };
23308
23720
  Returns: string[];
23309
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
+ };
23310
23742
  switch_time_log: {
23311
23743
  Args: {
23312
23744
  p_employee_id: string;