@flowselections/floriday-voorraad 1.0.38 → 1.0.39

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 (120) hide show
  1. package/dist-lib/components/TemplatePage.d.ts +1 -1
  2. package/dist-lib/components/TemplatePage.d.ts.map +1 -1
  3. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts +1 -1
  4. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts.map +1 -1
  5. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts +1 -1
  6. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts.map +1 -1
  7. package/dist-lib/components/voorraad/ArtikelWizard.d.ts +1 -1
  8. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  9. package/dist-lib/components/voorraad/ConnectionBadge.d.ts +1 -1
  10. package/dist-lib/components/voorraad/ConnectionBadge.d.ts.map +1 -1
  11. package/dist-lib/components/voorraad/EditArtikelPage.d.ts +1 -1
  12. package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
  13. package/dist-lib/components/voorraad/ExcelExportButton.d.ts +1 -1
  14. package/dist-lib/components/voorraad/ExcelExportButton.d.ts.map +1 -1
  15. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts +1 -1
  16. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts.map +1 -1
  17. package/dist-lib/components/voorraad/FloridayStatusBadge.d.ts +1 -1
  18. package/dist-lib/components/voorraad/FloridayStatusBadge.d.ts.map +1 -1
  19. package/dist-lib/components/voorraad/FustenPage.d.ts +1 -1
  20. package/dist-lib/components/voorraad/FustenPage.d.ts.map +1 -1
  21. package/dist-lib/components/voorraad/InventorySettingsDrawer.d.ts +10 -0
  22. package/dist-lib/components/voorraad/InventorySettingsDrawer.d.ts.map +1 -0
  23. package/dist-lib/components/voorraad/InventorySettingsDrawer.js +99 -0
  24. package/dist-lib/components/voorraad/InventoryStatusBadge.d.ts +6 -0
  25. package/dist-lib/components/voorraad/InventoryStatusBadge.d.ts.map +1 -0
  26. package/dist-lib/components/voorraad/InventoryStatusBadge.js +43 -0
  27. package/dist-lib/components/voorraad/ModuleHealthCard.d.ts +1 -1
  28. package/dist-lib/components/voorraad/ModuleHealthCard.d.ts.map +1 -1
  29. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts +1 -1
  30. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts.map +1 -1
  31. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts +1 -1
  32. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts.map +1 -1
  33. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts +1 -1
  34. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -1
  35. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts +1 -1
  36. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts.map +1 -1
  37. package/dist-lib/components/voorraad/ProductLinkCard.d.ts +1 -1
  38. package/dist-lib/components/voorraad/ProductLinkCard.d.ts.map +1 -1
  39. package/dist-lib/components/voorraad/PublicatiesPage.d.ts +1 -1
  40. package/dist-lib/components/voorraad/PublicatiesPage.d.ts.map +1 -1
  41. package/dist-lib/components/voorraad/PublishProgressCard.d.ts +1 -1
  42. package/dist-lib/components/voorraad/PublishProgressCard.d.ts.map +1 -1
  43. package/dist-lib/components/voorraad/PublishReadinessCard.d.ts +1 -1
  44. package/dist-lib/components/voorraad/PublishReadinessCard.d.ts.map +1 -1
  45. package/dist-lib/components/voorraad/StepSamenstelling.d.ts +1 -1
  46. package/dist-lib/components/voorraad/StepSamenstelling.d.ts.map +1 -1
  47. package/dist-lib/components/voorraad/StockBulkButtons.d.ts +1 -1
  48. package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
  49. package/dist-lib/components/voorraad/StockHistoryChart.d.ts +4 -0
  50. package/dist-lib/components/voorraad/StockHistoryChart.d.ts.map +1 -0
  51. package/dist-lib/components/voorraad/StockHistoryChart.js +53 -0
  52. package/dist-lib/components/voorraad/StockPushMonitor.d.ts +1 -1
  53. package/dist-lib/components/voorraad/StockPushMonitor.d.ts.map +1 -1
  54. package/dist-lib/components/voorraad/StockSyncStatus.d.ts +1 -1
  55. package/dist-lib/components/voorraad/StockSyncStatus.d.ts.map +1 -1
  56. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts +1 -1
  57. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts.map +1 -1
  58. package/dist-lib/components/voorraad/ValidationPage.d.ts +1 -1
  59. package/dist-lib/components/voorraad/ValidationPage.d.ts.map +1 -1
  60. package/dist-lib/components/voorraad/VoorraadDashboard.d.ts +1 -1
  61. package/dist-lib/components/voorraad/VoorraadDashboard.d.ts.map +1 -1
  62. package/dist-lib/components/voorraad/VoorraadPage.d.ts +1 -1
  63. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  64. package/dist-lib/components/voorraad/VoorraadPage.js +29 -1
  65. package/dist-lib/components/voorraad/VoorraadPagination.d.ts +1 -1
  66. package/dist-lib/components/voorraad/VoorraadPagination.d.ts.map +1 -1
  67. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +1 -1
  68. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
  69. package/dist-lib/components/voorraad/VoorraadTable.d.ts +10 -2
  70. package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
  71. package/dist-lib/components/voorraad/VoorraadTable.js +17 -6
  72. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts +1 -1
  73. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts.map +1 -1
  74. package/dist-lib/hooks/useInventorySettings.d.ts +29 -0
  75. package/dist-lib/hooks/useInventorySettings.d.ts.map +1 -0
  76. package/dist-lib/hooks/useInventorySettings.js +62 -0
  77. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1195 -717
  78. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  79. package/dist-lib/integrations/supabase/client.d.ts +1195 -717
  80. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  81. package/dist-lib/integrations/supabase/client.js +1 -1
  82. package/dist-lib/integrations/supabase/client.server.d.ts +1195 -717
  83. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  84. package/dist-lib/integrations/supabase/client.server.js +1 -1
  85. package/dist-lib/integrations/supabase/types.d.ts +1208 -748
  86. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  87. package/dist-lib/lib/floricode-required-features.functions.d.ts +1196 -724
  88. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  89. package/dist-lib/lib/floriday-2026v1.server.d.ts +77 -0
  90. package/dist-lib/lib/floriday-2026v1.server.d.ts.map +1 -0
  91. package/dist-lib/lib/floriday-2026v1.server.js +178 -0
  92. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +1198 -718
  93. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  94. package/dist-lib/lib/floriday-env.functions.d.ts +2180 -1224
  95. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  96. package/dist-lib/lib/floriday-gateway.functions.d.ts +6852 -3984
  97. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  98. package/dist-lib/lib/floriday-stock-supply.server.d.ts +18 -7
  99. package/dist-lib/lib/floriday-stock-supply.server.d.ts.map +1 -1
  100. package/dist-lib/lib/floriday-stock-supply.server.js +70 -68
  101. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +2180 -1224
  102. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  103. package/dist-lib/lib/floriday-warehouse.functions.d.ts +3476 -2042
  104. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  105. package/dist-lib/lib/floriday-writes.functions.d.ts +2180 -1224
  106. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  107. package/dist-lib/lib/inventory-settings.functions.d.ts +47391 -0
  108. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -0
  109. package/dist-lib/lib/inventory-settings.functions.js +97 -0
  110. package/dist-lib/lib/module-health.functions.d.ts +2180 -1224
  111. package/dist-lib/lib/module-health.functions.d.ts.map +1 -1
  112. package/dist-lib/lib/stock-sync.functions.d.ts +2180 -1224
  113. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  114. package/package.json +1 -1
  115. package/dist-lib/components/settings/VoorraadSettingsCard.d.ts +0 -2
  116. package/dist-lib/components/settings/VoorraadSettingsCard.d.ts.map +0 -1
  117. package/dist-lib/components/settings/VoorraadSettingsCard.js +0 -39
  118. package/dist-lib/components/voorraad/ConnectionPicker.d.ts +0 -8
  119. package/dist-lib/components/voorraad/ConnectionPicker.d.ts.map +0 -1
  120. package/dist-lib/components/voorraad/ConnectionPicker.js +0 -8
@@ -2862,6 +2862,84 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
2862
2862
  };
2863
2863
  Relationships: [];
2864
2864
  };
2865
+ delivery_notes: {
2866
+ Row: {
2867
+ byte_size: number | null;
2868
+ connection_id: string | null;
2869
+ content_type: string;
2870
+ created_at: string;
2871
+ error_message: string | null;
2872
+ fetched_at: string | null;
2873
+ fulfillment_order_id: string | null;
2874
+ http_status: number | null;
2875
+ id: string;
2876
+ label_code: string | null;
2877
+ letter: string | null;
2878
+ load_carrier_index: number | null;
2879
+ load_carrier_type: string | null;
2880
+ order_id: string | null;
2881
+ order_number: string | null;
2882
+ packages: number | null;
2883
+ source: string;
2884
+ status: string;
2885
+ storage_bucket: string;
2886
+ storage_path: string | null;
2887
+ updated_at: string;
2888
+ };
2889
+ Insert: {
2890
+ byte_size?: number | null;
2891
+ connection_id?: string | null;
2892
+ content_type?: string;
2893
+ created_at?: string;
2894
+ error_message?: string | null;
2895
+ fetched_at?: string | null;
2896
+ fulfillment_order_id?: string | null;
2897
+ http_status?: number | null;
2898
+ id?: string;
2899
+ label_code?: string | null;
2900
+ letter?: string | null;
2901
+ load_carrier_index?: number | null;
2902
+ load_carrier_type?: string | null;
2903
+ order_id?: string | null;
2904
+ order_number?: string | null;
2905
+ packages?: number | null;
2906
+ source?: string;
2907
+ status?: string;
2908
+ storage_bucket?: string;
2909
+ storage_path?: string | null;
2910
+ updated_at?: string;
2911
+ };
2912
+ Update: {
2913
+ byte_size?: number | null;
2914
+ connection_id?: string | null;
2915
+ content_type?: string;
2916
+ created_at?: string;
2917
+ error_message?: string | null;
2918
+ fetched_at?: string | null;
2919
+ fulfillment_order_id?: string | null;
2920
+ http_status?: number | null;
2921
+ id?: string;
2922
+ label_code?: string | null;
2923
+ letter?: string | null;
2924
+ load_carrier_index?: number | null;
2925
+ load_carrier_type?: string | null;
2926
+ order_id?: string | null;
2927
+ order_number?: string | null;
2928
+ packages?: number | null;
2929
+ source?: string;
2930
+ status?: string;
2931
+ storage_bucket?: string;
2932
+ storage_path?: string | null;
2933
+ updated_at?: string;
2934
+ };
2935
+ Relationships: [{
2936
+ foreignKeyName: "delivery_notes_order_id_fkey";
2937
+ columns: ["order_id"];
2938
+ isOneToOne: false;
2939
+ referencedRelation: "orders";
2940
+ referencedColumns: ["id"];
2941
+ }];
2942
+ };
2865
2943
  document_bronregels: {
2866
2944
  Row: {
2867
2945
  bron: string;
@@ -5915,10 +5993,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
5915
5993
  };
5916
5994
  floriday_connections: {
5917
5995
  Row: {
5918
- access_token: string | null;
5919
5996
  api_key: string;
5920
- client_id: string;
5921
- client_secret: string;
5922
5997
  created_at: string;
5923
5998
  customers_endpoint: string | null;
5924
5999
  environment: string;
@@ -5933,10 +6008,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
5933
6008
  updated_at: string;
5934
6009
  };
5935
6010
  Insert: {
5936
- access_token?: string | null;
5937
6011
  api_key: string;
5938
- client_id: string;
5939
- client_secret: string;
5940
6012
  created_at?: string;
5941
6013
  customers_endpoint?: string | null;
5942
6014
  environment: string;
@@ -5951,10 +6023,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
5951
6023
  updated_at?: string;
5952
6024
  };
5953
6025
  Update: {
5954
- access_token?: string | null;
5955
6026
  api_key?: string;
5956
- client_id?: string;
5957
- client_secret?: string;
5958
6027
  created_at?: string;
5959
6028
  customers_endpoint?: string | null;
5960
6029
  environment?: string;
@@ -6038,6 +6107,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6038
6107
  attempts: number;
6039
6108
  connection_id: string;
6040
6109
  created_at: string;
6110
+ dead_lettered_at: string | null;
6041
6111
  desired_available: boolean | null;
6042
6112
  gateway_attempt_id: string | null;
6043
6113
  id: string;
@@ -6046,9 +6116,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6046
6116
  locked_by: string | null;
6047
6117
  next_attempt_at: string;
6048
6118
  number_of_pieces: number;
6119
+ product_id: string | null;
6049
6120
  sent_at: string | null;
6050
6121
  status: string;
6122
+ stock_mode: string | null;
6051
6123
  superseded_by: string | null;
6124
+ target_week: number | null;
6125
+ target_year: number | null;
6052
6126
  trade_item_id: string;
6053
6127
  updated_at: string;
6054
6128
  user_id: string;
@@ -6057,6 +6131,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6057
6131
  attempts?: number;
6058
6132
  connection_id: string;
6059
6133
  created_at?: string;
6134
+ dead_lettered_at?: string | null;
6060
6135
  desired_available?: boolean | null;
6061
6136
  gateway_attempt_id?: string | null;
6062
6137
  id?: string;
@@ -6065,9 +6140,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6065
6140
  locked_by?: string | null;
6066
6141
  next_attempt_at?: string;
6067
6142
  number_of_pieces?: number;
6143
+ product_id?: string | null;
6068
6144
  sent_at?: string | null;
6069
6145
  status?: string;
6146
+ stock_mode?: string | null;
6070
6147
  superseded_by?: string | null;
6148
+ target_week?: number | null;
6149
+ target_year?: number | null;
6071
6150
  trade_item_id: string;
6072
6151
  updated_at?: string;
6073
6152
  user_id: string;
@@ -6076,6 +6155,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6076
6155
  attempts?: number;
6077
6156
  connection_id?: string;
6078
6157
  created_at?: string;
6158
+ dead_lettered_at?: string | null;
6079
6159
  desired_available?: boolean | null;
6080
6160
  gateway_attempt_id?: string | null;
6081
6161
  id?: string;
@@ -6084,9 +6164,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6084
6164
  locked_by?: string | null;
6085
6165
  next_attempt_at?: string;
6086
6166
  number_of_pieces?: number;
6167
+ product_id?: string | null;
6087
6168
  sent_at?: string | null;
6088
6169
  status?: string;
6170
+ stock_mode?: string | null;
6089
6171
  superseded_by?: string | null;
6172
+ target_week?: number | null;
6173
+ target_year?: number | null;
6090
6174
  trade_item_id?: string;
6091
6175
  updated_at?: string;
6092
6176
  user_id?: string;
@@ -6495,6 +6579,87 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6495
6579
  referencedColumns: ["id"];
6496
6580
  }];
6497
6581
  };
6582
+ floriday_inventory_settings: {
6583
+ Row: {
6584
+ buffer_quantity: number;
6585
+ connection_id: string;
6586
+ created_at: string;
6587
+ desired_availability: boolean;
6588
+ desired_quantity: number;
6589
+ fixed_quantity: number | null;
6590
+ floriday_trade_item_id: string | null;
6591
+ id: string;
6592
+ last_confirmed_at: string | null;
6593
+ last_enqueued_at: string | null;
6594
+ last_published_at: string | null;
6595
+ last_sync_error: string | null;
6596
+ manual_quantity: number | null;
6597
+ maximum_quantity: number | null;
6598
+ product_id: string;
6599
+ quantity_control: string;
6600
+ remote_available: boolean | null;
6601
+ remote_checked_at: string | null;
6602
+ remote_quantity: number | null;
6603
+ stock_mode: string;
6604
+ sync_status: string;
6605
+ updated_at: string;
6606
+ updated_by: string | null;
6607
+ user_id: string;
6608
+ };
6609
+ Insert: {
6610
+ buffer_quantity?: number;
6611
+ connection_id: string;
6612
+ created_at?: string;
6613
+ desired_availability?: boolean;
6614
+ desired_quantity?: number;
6615
+ fixed_quantity?: number | null;
6616
+ floriday_trade_item_id?: string | null;
6617
+ id?: string;
6618
+ last_confirmed_at?: string | null;
6619
+ last_enqueued_at?: string | null;
6620
+ last_published_at?: string | null;
6621
+ last_sync_error?: string | null;
6622
+ manual_quantity?: number | null;
6623
+ maximum_quantity?: number | null;
6624
+ product_id: string;
6625
+ quantity_control?: string;
6626
+ remote_available?: boolean | null;
6627
+ remote_checked_at?: string | null;
6628
+ remote_quantity?: number | null;
6629
+ stock_mode?: string;
6630
+ sync_status?: string;
6631
+ updated_at?: string;
6632
+ updated_by?: string | null;
6633
+ user_id: string;
6634
+ };
6635
+ Update: {
6636
+ buffer_quantity?: number;
6637
+ connection_id?: string;
6638
+ created_at?: string;
6639
+ desired_availability?: boolean;
6640
+ desired_quantity?: number;
6641
+ fixed_quantity?: number | null;
6642
+ floriday_trade_item_id?: string | null;
6643
+ id?: string;
6644
+ last_confirmed_at?: string | null;
6645
+ last_enqueued_at?: string | null;
6646
+ last_published_at?: string | null;
6647
+ last_sync_error?: string | null;
6648
+ manual_quantity?: number | null;
6649
+ maximum_quantity?: number | null;
6650
+ product_id?: string;
6651
+ quantity_control?: string;
6652
+ remote_available?: boolean | null;
6653
+ remote_checked_at?: string | null;
6654
+ remote_quantity?: number | null;
6655
+ stock_mode?: string;
6656
+ sync_status?: string;
6657
+ updated_at?: string;
6658
+ updated_by?: string | null;
6659
+ user_id?: string;
6660
+ };
6661
+ Relationships: [];
6662
+ };
6498
6663
  floriday_invoices_cache: {
6499
6664
  Row: {
6500
6665
  buyer_organization_id: string | null;
@@ -6783,6 +6948,39 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6783
6948
  };
6784
6949
  Relationships: [];
6785
6950
  };
6951
+ floriday_sales_order_ingest: {
6952
+ Row: {
6953
+ connection_id: string;
6954
+ created_at: string;
6955
+ id: string;
6956
+ impact: import("../integrations/supabase/types").Json;
6957
+ order_status: string | null;
6958
+ order_version: number;
6959
+ processed_at: string;
6960
+ sales_order_id: string;
6961
+ };
6962
+ Insert: {
6963
+ connection_id: string;
6964
+ created_at?: string;
6965
+ id?: string;
6966
+ impact?: import("../integrations/supabase/types").Json;
6967
+ order_status?: string | null;
6968
+ order_version?: number;
6969
+ processed_at?: string;
6970
+ sales_order_id: string;
6971
+ };
6972
+ Update: {
6973
+ connection_id?: string;
6974
+ created_at?: string;
6975
+ id?: string;
6976
+ impact?: import("../integrations/supabase/types").Json;
6977
+ order_status?: string | null;
6978
+ order_version?: number;
6979
+ processed_at?: string;
6980
+ sales_order_id?: string;
6981
+ };
6982
+ Relationships: [];
6983
+ };
6786
6984
  floriday_sales_strategies_cache: {
6787
6985
  Row: {
6788
6986
  connection_id: string;
@@ -6882,6 +7080,39 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
6882
7080
  };
6883
7081
  Relationships: [];
6884
7082
  };
7083
+ floriday_sync_cursors: {
7084
+ Row: {
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
+ Insert: {
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
+ Update: {
7105
+ connection_id?: string;
7106
+ created_at?: string;
7107
+ id?: string;
7108
+ last_error?: string | null;
7109
+ last_sync_at?: string | null;
7110
+ resource_type?: string;
7111
+ sequence_number?: number;
7112
+ updated_at?: string;
7113
+ };
7114
+ Relationships: [];
7115
+ };
6885
7116
  floriday_sync_state: {
6886
7117
  Row: {
6887
7118
  connection_id: string;
@@ -7572,6 +7803,42 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
7572
7803
  };
7573
7804
  Relationships: [];
7574
7805
  };
7806
+ inventory_stock_snapshots: {
7807
+ Row: {
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
+ Insert: {
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
+ Update: {
7830
+ connection_id?: string;
7831
+ created_at?: string;
7832
+ erp_available_quantity?: number;
7833
+ floriday_desired_quantity?: number;
7834
+ floriday_remote_quantity?: number | null;
7835
+ granularity?: string;
7836
+ id?: string;
7837
+ snapshot_at?: string;
7838
+ user_id?: string | null;
7839
+ };
7840
+ Relationships: [];
7841
+ };
7575
7842
  invoice_items: {
7576
7843
  Row: {
7577
7844
  created_at: string;
@@ -8080,13 +8347,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8080
8347
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
8081
8348
  updated_at?: string;
8082
8349
  };
8083
- Relationships: [{
8084
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8085
- columns: ["legacy_customer_id"];
8086
- isOneToOne: false;
8087
- referencedRelation: "customers";
8088
- referencedColumns: ["id"];
8089
- }];
8350
+ Relationships: [];
8090
8351
  };
8091
8352
  itk_dynamic_fields: {
8092
8353
  Row: {
@@ -8118,6 +8379,180 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8118
8379
  };
8119
8380
  Relationships: [];
8120
8381
  };
8382
+ itk_handover_rechten: {
8383
+ Row: {
8384
+ created_at: string;
8385
+ id: string;
8386
+ module_id: string;
8387
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8388
+ updated_at: string;
8389
+ user_id: string | null;
8390
+ };
8391
+ Insert: {
8392
+ created_at?: string;
8393
+ id?: string;
8394
+ module_id: string;
8395
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8396
+ updated_at?: string;
8397
+ user_id?: string | null;
8398
+ };
8399
+ Update: {
8400
+ created_at?: string;
8401
+ id?: string;
8402
+ module_id?: string;
8403
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8404
+ updated_at?: string;
8405
+ user_id?: string | null;
8406
+ };
8407
+ Relationships: [];
8408
+ };
8409
+ itk_handover_tokens: {
8410
+ Row: {
8411
+ aangemaakt_door: string | null;
8412
+ created_at: string;
8413
+ id: string;
8414
+ is_actief: boolean;
8415
+ laatst_gebruikt_op: string | null;
8416
+ label: string;
8417
+ module_id: string;
8418
+ token_hash: string;
8419
+ updated_at: string;
8420
+ verloopt_op: string | null;
8421
+ };
8422
+ Insert: {
8423
+ aangemaakt_door?: string | null;
8424
+ created_at?: string;
8425
+ id?: string;
8426
+ is_actief?: boolean;
8427
+ laatst_gebruikt_op?: string | null;
8428
+ label?: string;
8429
+ module_id: string;
8430
+ token_hash: string;
8431
+ updated_at?: string;
8432
+ verloopt_op?: string | null;
8433
+ };
8434
+ Update: {
8435
+ aangemaakt_door?: string | null;
8436
+ created_at?: string;
8437
+ id?: string;
8438
+ is_actief?: boolean;
8439
+ laatst_gebruikt_op?: string | null;
8440
+ label?: string;
8441
+ module_id?: string;
8442
+ token_hash?: string;
8443
+ updated_at?: string;
8444
+ verloopt_op?: string | null;
8445
+ };
8446
+ Relationships: [];
8447
+ };
8448
+ itk_module_handovers: {
8449
+ Row: {
8450
+ bevindingen: string | null;
8451
+ bezit_tabellen: string[];
8452
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
8453
+ contractfuncties: string[];
8454
+ created_at: string;
8455
+ eigenaar_module_id: string | null;
8456
+ gepubliceerd_door: string | null;
8457
+ gepubliceerd_op: string;
8458
+ herzieningstermijn_dagen: number;
8459
+ id: string;
8460
+ inhoud_md: string;
8461
+ is_actueel: boolean;
8462
+ module_id: string;
8463
+ module_titel: string;
8464
+ ontbrekende_contracten: string[];
8465
+ samenvatting: string | null;
8466
+ updated_at: string;
8467
+ versie: number;
8468
+ };
8469
+ Insert: {
8470
+ bevindingen?: string | null;
8471
+ bezit_tabellen?: string[];
8472
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8473
+ contractfuncties?: string[];
8474
+ created_at?: string;
8475
+ eigenaar_module_id?: string | null;
8476
+ gepubliceerd_door?: string | null;
8477
+ gepubliceerd_op?: string;
8478
+ herzieningstermijn_dagen?: number;
8479
+ id?: string;
8480
+ inhoud_md: string;
8481
+ is_actueel?: boolean;
8482
+ module_id: string;
8483
+ module_titel: string;
8484
+ ontbrekende_contracten?: string[];
8485
+ samenvatting?: string | null;
8486
+ updated_at?: string;
8487
+ versie?: number;
8488
+ };
8489
+ Update: {
8490
+ bevindingen?: string | null;
8491
+ bezit_tabellen?: string[];
8492
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8493
+ contractfuncties?: string[];
8494
+ created_at?: string;
8495
+ eigenaar_module_id?: string | null;
8496
+ gepubliceerd_door?: string | null;
8497
+ gepubliceerd_op?: string;
8498
+ herzieningstermijn_dagen?: number;
8499
+ id?: string;
8500
+ inhoud_md?: string;
8501
+ is_actueel?: boolean;
8502
+ module_id?: string;
8503
+ module_titel?: string;
8504
+ ontbrekende_contracten?: string[];
8505
+ samenvatting?: string | null;
8506
+ updated_at?: string;
8507
+ versie?: number;
8508
+ };
8509
+ Relationships: [];
8510
+ };
8511
+ itk_module_instructies: {
8512
+ Row: {
8513
+ created_at: string;
8514
+ eigenaar_module_id: string;
8515
+ gepubliceerd_door: string | null;
8516
+ gepubliceerd_op: string;
8517
+ id: string;
8518
+ inhoud_md: string;
8519
+ is_actueel: boolean;
8520
+ sleutel: string;
8521
+ titel: string;
8522
+ toelichting: string | null;
8523
+ updated_at: string;
8524
+ versie: number;
8525
+ };
8526
+ Insert: {
8527
+ created_at?: string;
8528
+ eigenaar_module_id?: string;
8529
+ gepubliceerd_door?: string | null;
8530
+ gepubliceerd_op?: string;
8531
+ id?: string;
8532
+ inhoud_md: string;
8533
+ is_actueel?: boolean;
8534
+ sleutel: string;
8535
+ titel: string;
8536
+ toelichting?: string | null;
8537
+ updated_at?: string;
8538
+ versie?: number;
8539
+ };
8540
+ Update: {
8541
+ created_at?: string;
8542
+ eigenaar_module_id?: string;
8543
+ gepubliceerd_door?: string | null;
8544
+ gepubliceerd_op?: string;
8545
+ id?: string;
8546
+ inhoud_md?: string;
8547
+ is_actueel?: boolean;
8548
+ sleutel?: string;
8549
+ titel?: string;
8550
+ toelichting?: string | null;
8551
+ updated_at?: string;
8552
+ versie?: number;
8553
+ };
8554
+ Relationships: [];
8555
+ };
8121
8556
  itk_offerte_events: {
8122
8557
  Row: {
8123
8558
  created_at: string;
@@ -10746,6 +11181,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10746
11181
  };
10747
11182
  Relationships: [];
10748
11183
  };
11184
+ maps_job_lease: {
11185
+ Row: {
11186
+ job: string;
11187
+ locked_until: string;
11188
+ updated_at: string;
11189
+ };
11190
+ Insert: {
11191
+ job: string;
11192
+ locked_until?: string;
11193
+ updated_at?: string;
11194
+ };
11195
+ Update: {
11196
+ job?: string;
11197
+ locked_until?: string;
11198
+ updated_at?: string;
11199
+ };
11200
+ Relationships: [];
11201
+ };
10749
11202
  maps_request_queue: {
10750
11203
  Row: {
10751
11204
  attempts: number;
@@ -10807,6 +11260,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10807
11260
  last_error: string | null;
10808
11261
  last_error_at: string | null;
10809
11262
  last_success_at: string | null;
11263
+ provider: string;
10810
11264
  updated_at: string;
10811
11265
  };
10812
11266
  Insert: {
@@ -10818,6 +11272,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10818
11272
  last_error?: string | null;
10819
11273
  last_error_at?: string | null;
10820
11274
  last_success_at?: string | null;
11275
+ provider?: string;
10821
11276
  updated_at?: string;
10822
11277
  };
10823
11278
  Update: {
@@ -10829,6 +11284,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
10829
11284
  last_error?: string | null;
10830
11285
  last_error_at?: string | null;
10831
11286
  last_success_at?: string | null;
11287
+ provider?: string;
10832
11288
  updated_at?: string;
10833
11289
  };
10834
11290
  Relationships: [];
@@ -13471,6 +13927,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13471
13927
  isOneToOne: false;
13472
13928
  referencedRelation: "planning_items";
13473
13929
  referencedColumns: ["id"];
13930
+ }, {
13931
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
13932
+ columns: ["planning_item_id"];
13933
+ isOneToOne: false;
13934
+ referencedRelation: "planning_overview";
13935
+ referencedColumns: ["id"];
13474
13936
  }];
13475
13937
  };
13476
13938
  planning_items: {
@@ -13566,6 +14028,39 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13566
14028
  };
13567
14029
  Relationships: [];
13568
14030
  };
14031
+ print_dedupe_events: {
14032
+ Row: {
14033
+ bestaande_job_id: string | null;
14034
+ created_at: string;
14035
+ detail: string | null;
14036
+ documentnaam: string | null;
14037
+ documenttype: string | null;
14038
+ id: string;
14039
+ idempotentie_sleutel: string;
14040
+ reden: string;
14041
+ };
14042
+ Insert: {
14043
+ bestaande_job_id?: string | null;
14044
+ created_at?: string;
14045
+ detail?: string | null;
14046
+ documentnaam?: string | null;
14047
+ documenttype?: string | null;
14048
+ id?: string;
14049
+ idempotentie_sleutel: string;
14050
+ reden: string;
14051
+ };
14052
+ Update: {
14053
+ bestaande_job_id?: string | null;
14054
+ created_at?: string;
14055
+ detail?: string | null;
14056
+ documentnaam?: string | null;
14057
+ documenttype?: string | null;
14058
+ id?: string;
14059
+ idempotentie_sleutel?: string;
14060
+ reden?: string;
14061
+ };
14062
+ Relationships: [];
14063
+ };
13569
14064
  print_job_logs: {
13570
14065
  Row: {
13571
14066
  created_at: string;
@@ -13607,6 +14102,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13607
14102
  foutmelding: string | null;
13608
14103
  gebruiker_id: string | null;
13609
14104
  gebruiker_naam: string;
14105
+ gebruikte_bron: string | null;
14106
+ gebruikte_layout_id: string | null;
13610
14107
  gestart_op: string | null;
13611
14108
  herkomst: string | null;
13612
14109
  id: string;
@@ -13614,6 +14111,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13614
14111
  is_herprint: boolean;
13615
14112
  kopieen: number;
13616
14113
  layout_id: string | null;
14114
+ lokaal_opgeslagen_op: string | null;
14115
+ lokale_pdf_fout: string | null;
14116
+ lokale_pdf_status: string | null;
13617
14117
  opgepakt_op: string | null;
13618
14118
  paginas: number;
13619
14119
  payload: import("../integrations/supabase/types").Json;
@@ -13622,6 +14122,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13622
14122
  pogingen: number;
13623
14123
  printer_id: string | null;
13624
14124
  render_html: string | null;
14125
+ resultaat_pdf_base64: string | null;
13625
14126
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13626
14127
  updated_at: string;
13627
14128
  volgende_poging: string | null;
@@ -13637,6 +14138,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13637
14138
  foutmelding?: string | null;
13638
14139
  gebruiker_id?: string | null;
13639
14140
  gebruiker_naam?: string;
14141
+ gebruikte_bron?: string | null;
14142
+ gebruikte_layout_id?: string | null;
13640
14143
  gestart_op?: string | null;
13641
14144
  herkomst?: string | null;
13642
14145
  id?: string;
@@ -13644,6 +14147,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13644
14147
  is_herprint?: boolean;
13645
14148
  kopieen?: number;
13646
14149
  layout_id?: string | null;
14150
+ lokaal_opgeslagen_op?: string | null;
14151
+ lokale_pdf_fout?: string | null;
14152
+ lokale_pdf_status?: string | null;
13647
14153
  opgepakt_op?: string | null;
13648
14154
  paginas?: number;
13649
14155
  payload?: import("../integrations/supabase/types").Json;
@@ -13652,6 +14158,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13652
14158
  pogingen?: number;
13653
14159
  printer_id?: string | null;
13654
14160
  render_html?: string | null;
14161
+ resultaat_pdf_base64?: string | null;
13655
14162
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13656
14163
  updated_at?: string;
13657
14164
  volgende_poging?: string | null;
@@ -13667,6 +14174,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13667
14174
  foutmelding?: string | null;
13668
14175
  gebruiker_id?: string | null;
13669
14176
  gebruiker_naam?: string;
14177
+ gebruikte_bron?: string | null;
14178
+ gebruikte_layout_id?: string | null;
13670
14179
  gestart_op?: string | null;
13671
14180
  herkomst?: string | null;
13672
14181
  id?: string;
@@ -13674,6 +14183,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13674
14183
  is_herprint?: boolean;
13675
14184
  kopieen?: number;
13676
14185
  layout_id?: string | null;
14186
+ lokaal_opgeslagen_op?: string | null;
14187
+ lokale_pdf_fout?: string | null;
14188
+ lokale_pdf_status?: string | null;
13677
14189
  opgepakt_op?: string | null;
13678
14190
  paginas?: number;
13679
14191
  payload?: import("../integrations/supabase/types").Json;
@@ -13682,6 +14194,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13682
14194
  pogingen?: number;
13683
14195
  printer_id?: string | null;
13684
14196
  render_html?: string | null;
14197
+ resultaat_pdf_base64?: string | null;
13685
14198
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13686
14199
  updated_at?: string;
13687
14200
  volgende_poging?: string | null;
@@ -13800,6 +14313,39 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
13800
14313
  };
13801
14314
  Relationships: [];
13802
14315
  };
14316
+ print_preview_events: {
14317
+ Row: {
14318
+ code: string | null;
14319
+ created_at: string;
14320
+ detail: import("../integrations/supabase/types").Json;
14321
+ id: string;
14322
+ queue_item_id: string | null;
14323
+ reden: string | null;
14324
+ station_slug: string | null;
14325
+ uitkomst: string;
14326
+ };
14327
+ Insert: {
14328
+ code?: string | null;
14329
+ created_at?: string;
14330
+ detail?: import("../integrations/supabase/types").Json;
14331
+ id?: string;
14332
+ queue_item_id?: string | null;
14333
+ reden?: string | null;
14334
+ station_slug?: string | null;
14335
+ uitkomst?: string;
14336
+ };
14337
+ Update: {
14338
+ code?: string | null;
14339
+ created_at?: string;
14340
+ detail?: import("../integrations/supabase/types").Json;
14341
+ id?: string;
14342
+ queue_item_id?: string | null;
14343
+ reden?: string | null;
14344
+ station_slug?: string | null;
14345
+ uitkomst?: string;
14346
+ };
14347
+ Relationships: [];
14348
+ };
13803
14349
  print_queue_runners: {
13804
14350
  Row: {
13805
14351
  actief: boolean;
@@ -14039,6 +14585,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
14039
14585
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14040
14586
  online: boolean;
14041
14587
  papierformaat: string;
14588
+ pdf_map: string | null;
14042
14589
  poort: number | null;
14043
14590
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14044
14591
  systeemnaam: string;
@@ -14064,6 +14611,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
14064
14611
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14065
14612
  online?: boolean;
14066
14613
  papierformaat?: string;
14614
+ pdf_map?: string | null;
14067
14615
  poort?: number | null;
14068
14616
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14069
14617
  systeemnaam?: string;
@@ -14089,6 +14637,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
14089
14637
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14090
14638
  online?: boolean;
14091
14639
  papierformaat?: string;
14640
+ pdf_map?: string | null;
14092
14641
  poort?: number | null;
14093
14642
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14094
14643
  systeemnaam?: string;
@@ -14961,450 +15510,6 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
14961
15510
  referencedColumns: ["id"];
14962
15511
  }];
14963
15512
  };
14964
- quote_activities: {
14965
- Row: {
14966
- created_at: string;
14967
- event_type: string;
14968
- id: string;
14969
- metadata: import("../integrations/supabase/types").Json;
14970
- quote_id: string;
14971
- user_id: string | null;
14972
- };
14973
- Insert: {
14974
- created_at?: string;
14975
- event_type: string;
14976
- id?: string;
14977
- metadata?: import("../integrations/supabase/types").Json;
14978
- quote_id: string;
14979
- user_id?: string | null;
14980
- };
14981
- Update: {
14982
- created_at?: string;
14983
- event_type?: string;
14984
- id?: string;
14985
- metadata?: import("../integrations/supabase/types").Json;
14986
- quote_id?: string;
14987
- user_id?: string | null;
14988
- };
14989
- Relationships: [{
14990
- foreignKeyName: "quote_activities_quote_id_fkey";
14991
- columns: ["quote_id"];
14992
- isOneToOne: false;
14993
- referencedRelation: "quotes";
14994
- referencedColumns: ["id"];
14995
- }];
14996
- };
14997
- quote_attachments: {
14998
- Row: {
14999
- created_at: string;
15000
- file_name: string;
15001
- file_size: number | null;
15002
- file_url: string;
15003
- id: string;
15004
- mime_type: string | null;
15005
- quote_id: string;
15006
- };
15007
- Insert: {
15008
- created_at?: string;
15009
- file_name: string;
15010
- file_size?: number | null;
15011
- file_url: string;
15012
- id?: string;
15013
- mime_type?: string | null;
15014
- quote_id: string;
15015
- };
15016
- Update: {
15017
- created_at?: string;
15018
- file_name?: string;
15019
- file_size?: number | null;
15020
- file_url?: string;
15021
- id?: string;
15022
- mime_type?: string | null;
15023
- quote_id?: string;
15024
- };
15025
- Relationships: [{
15026
- foreignKeyName: "quote_attachments_quote_id_fkey";
15027
- columns: ["quote_id"];
15028
- isOneToOne: false;
15029
- referencedRelation: "quotes";
15030
- referencedColumns: ["id"];
15031
- }];
15032
- };
15033
- quote_field_options: {
15034
- Row: {
15035
- created_at: string;
15036
- field_id: string;
15037
- id: string;
15038
- label: string;
15039
- sort_order: number;
15040
- value: string;
15041
- };
15042
- Insert: {
15043
- created_at?: string;
15044
- field_id: string;
15045
- id?: string;
15046
- label: string;
15047
- sort_order?: number;
15048
- value: string;
15049
- };
15050
- Update: {
15051
- created_at?: string;
15052
- field_id?: string;
15053
- id?: string;
15054
- label?: string;
15055
- sort_order?: number;
15056
- value?: string;
15057
- };
15058
- Relationships: [{
15059
- foreignKeyName: "quote_field_options_field_id_fkey";
15060
- columns: ["field_id"];
15061
- isOneToOne: false;
15062
- referencedRelation: "quote_field_settings";
15063
- referencedColumns: ["id"];
15064
- }];
15065
- };
15066
- quote_field_settings: {
15067
- Row: {
15068
- created_at: string;
15069
- default_value: string | null;
15070
- field_key: string;
15071
- field_type: string;
15072
- id: string;
15073
- is_system: boolean;
15074
- label: string;
15075
- required: boolean;
15076
- sort_order: number;
15077
- updated_at: string;
15078
- visible: boolean;
15079
- };
15080
- Insert: {
15081
- created_at?: string;
15082
- default_value?: string | null;
15083
- field_key: string;
15084
- field_type: string;
15085
- id?: string;
15086
- is_system?: boolean;
15087
- label: string;
15088
- required?: boolean;
15089
- sort_order?: number;
15090
- updated_at?: string;
15091
- visible?: boolean;
15092
- };
15093
- Update: {
15094
- created_at?: string;
15095
- default_value?: string | null;
15096
- field_key?: string;
15097
- field_type?: string;
15098
- id?: string;
15099
- is_system?: boolean;
15100
- label?: string;
15101
- required?: boolean;
15102
- sort_order?: number;
15103
- updated_at?: string;
15104
- visible?: boolean;
15105
- };
15106
- Relationships: [];
15107
- };
15108
- quote_items: {
15109
- Row: {
15110
- category: string | null;
15111
- created_at: string;
15112
- description: string;
15113
- id: string;
15114
- line_total: number;
15115
- module_id: string | null;
15116
- name: string | null;
15117
- quantity: number;
15118
- quote_id: string;
15119
- sort_order: number;
15120
- unit_price: number;
15121
- };
15122
- Insert: {
15123
- category?: string | null;
15124
- created_at?: string;
15125
- description?: string;
15126
- id?: string;
15127
- line_total?: number;
15128
- module_id?: string | null;
15129
- name?: string | null;
15130
- quantity?: number;
15131
- quote_id: string;
15132
- sort_order?: number;
15133
- unit_price?: number;
15134
- };
15135
- Update: {
15136
- category?: string | null;
15137
- created_at?: string;
15138
- description?: string;
15139
- id?: string;
15140
- line_total?: number;
15141
- module_id?: string | null;
15142
- name?: string | null;
15143
- quantity?: number;
15144
- quote_id?: string;
15145
- sort_order?: number;
15146
- unit_price?: number;
15147
- };
15148
- Relationships: [{
15149
- foreignKeyName: "quote_items_module_id_fkey";
15150
- columns: ["module_id"];
15151
- isOneToOne: false;
15152
- referencedRelation: "quote_modules";
15153
- referencedColumns: ["id"];
15154
- }, {
15155
- foreignKeyName: "quote_items_quote_id_fkey";
15156
- columns: ["quote_id"];
15157
- isOneToOne: false;
15158
- referencedRelation: "quotes";
15159
- referencedColumns: ["id"];
15160
- }];
15161
- };
15162
- quote_modules: {
15163
- Row: {
15164
- category: string | null;
15165
- created_at: string;
15166
- description: string | null;
15167
- id: string;
15168
- is_active: boolean;
15169
- name: string;
15170
- price: number;
15171
- sort_order: number;
15172
- updated_at: string;
15173
- };
15174
- Insert: {
15175
- category?: string | null;
15176
- created_at?: string;
15177
- description?: string | null;
15178
- id?: string;
15179
- is_active?: boolean;
15180
- name: string;
15181
- price?: number;
15182
- sort_order?: number;
15183
- updated_at?: string;
15184
- };
15185
- Update: {
15186
- category?: string | null;
15187
- created_at?: string;
15188
- description?: string | null;
15189
- id?: string;
15190
- is_active?: boolean;
15191
- name?: string;
15192
- price?: number;
15193
- sort_order?: number;
15194
- updated_at?: string;
15195
- };
15196
- Relationships: [];
15197
- };
15198
- quote_templates: {
15199
- Row: {
15200
- created_at: string;
15201
- description: string | null;
15202
- field_values: import("../integrations/supabase/types").Json;
15203
- id: string;
15204
- is_default: boolean;
15205
- items: import("../integrations/supabase/types").Json;
15206
- name: string;
15207
- updated_at: string;
15208
- vat_rate: number;
15209
- };
15210
- Insert: {
15211
- created_at?: string;
15212
- description?: string | null;
15213
- field_values?: import("../integrations/supabase/types").Json;
15214
- id?: string;
15215
- is_default?: boolean;
15216
- items?: import("../integrations/supabase/types").Json;
15217
- name: string;
15218
- updated_at?: string;
15219
- vat_rate?: number;
15220
- };
15221
- Update: {
15222
- created_at?: string;
15223
- description?: string | null;
15224
- field_values?: import("../integrations/supabase/types").Json;
15225
- id?: string;
15226
- is_default?: boolean;
15227
- items?: import("../integrations/supabase/types").Json;
15228
- name?: string;
15229
- updated_at?: string;
15230
- vat_rate?: number;
15231
- };
15232
- Relationships: [];
15233
- };
15234
- quote_terms: {
15235
- Row: {
15236
- content: string | null;
15237
- created_at: string;
15238
- file_url: string | null;
15239
- id: string;
15240
- is_active: boolean;
15241
- name: string;
15242
- published_at: string | null;
15243
- updated_at: string;
15244
- version: string;
15245
- };
15246
- Insert: {
15247
- content?: string | null;
15248
- created_at?: string;
15249
- file_url?: string | null;
15250
- id?: string;
15251
- is_active?: boolean;
15252
- name: string;
15253
- published_at?: string | null;
15254
- updated_at?: string;
15255
- version?: string;
15256
- };
15257
- Update: {
15258
- content?: string | null;
15259
- created_at?: string;
15260
- file_url?: string | null;
15261
- id?: string;
15262
- is_active?: boolean;
15263
- name?: string;
15264
- published_at?: string | null;
15265
- updated_at?: string;
15266
- version?: string;
15267
- };
15268
- Relationships: [];
15269
- };
15270
- quotes: {
15271
- Row: {
15272
- accepted_at: string | null;
15273
- archived_at: string | null;
15274
- contact_id: string | null;
15275
- created_at: string;
15276
- customer_id: string | null;
15277
- discount: number;
15278
- expires_at: string | null;
15279
- field_values: import("../integrations/supabase/types").Json;
15280
- id: string;
15281
- notes: string | null;
15282
- owner_id: string | null;
15283
- personal_message: string | null;
15284
- project_id: string | null;
15285
- prospect_id: string | null;
15286
- public_token: string;
15287
- quote_number: string | null;
15288
- recipient_email: string | null;
15289
- recipient_name: string | null;
15290
- rejected_at: string | null;
15291
- sent_at: string | null;
15292
- status: string;
15293
- subtotal: number;
15294
- template_id: string | null;
15295
- terms_id: string | null;
15296
- title: string;
15297
- total: number;
15298
- updated_at: string;
15299
- valid_until: string | null;
15300
- vat_amount: number;
15301
- vat_rate: number;
15302
- viewed_at: string | null;
15303
- };
15304
- Insert: {
15305
- accepted_at?: string | null;
15306
- archived_at?: string | null;
15307
- contact_id?: string | null;
15308
- created_at?: string;
15309
- customer_id?: string | null;
15310
- discount?: number;
15311
- expires_at?: string | null;
15312
- field_values?: import("../integrations/supabase/types").Json;
15313
- id?: string;
15314
- notes?: string | null;
15315
- owner_id?: string | null;
15316
- personal_message?: string | null;
15317
- project_id?: string | null;
15318
- prospect_id?: string | null;
15319
- public_token?: string;
15320
- quote_number?: string | null;
15321
- recipient_email?: string | null;
15322
- recipient_name?: string | null;
15323
- rejected_at?: string | null;
15324
- sent_at?: string | null;
15325
- status?: string;
15326
- subtotal?: number;
15327
- template_id?: string | null;
15328
- terms_id?: string | null;
15329
- title?: string;
15330
- total?: number;
15331
- updated_at?: string;
15332
- valid_until?: string | null;
15333
- vat_amount?: number;
15334
- vat_rate?: number;
15335
- viewed_at?: string | null;
15336
- };
15337
- Update: {
15338
- accepted_at?: string | null;
15339
- archived_at?: string | null;
15340
- contact_id?: string | null;
15341
- created_at?: string;
15342
- customer_id?: string | null;
15343
- discount?: number;
15344
- expires_at?: string | null;
15345
- field_values?: import("../integrations/supabase/types").Json;
15346
- id?: string;
15347
- notes?: string | null;
15348
- owner_id?: string | null;
15349
- personal_message?: string | null;
15350
- project_id?: string | null;
15351
- prospect_id?: string | null;
15352
- public_token?: string;
15353
- quote_number?: string | null;
15354
- recipient_email?: string | null;
15355
- recipient_name?: string | null;
15356
- rejected_at?: string | null;
15357
- sent_at?: string | null;
15358
- status?: string;
15359
- subtotal?: number;
15360
- template_id?: string | null;
15361
- terms_id?: string | null;
15362
- title?: string;
15363
- total?: number;
15364
- updated_at?: string;
15365
- valid_until?: string | null;
15366
- vat_amount?: number;
15367
- vat_rate?: number;
15368
- viewed_at?: string | null;
15369
- };
15370
- Relationships: [{
15371
- foreignKeyName: "quotes_contact_id_fkey";
15372
- columns: ["contact_id"];
15373
- isOneToOne: false;
15374
- referencedRelation: "customer_contacts";
15375
- referencedColumns: ["id"];
15376
- }, {
15377
- foreignKeyName: "quotes_customer_id_fkey";
15378
- columns: ["customer_id"];
15379
- isOneToOne: false;
15380
- referencedRelation: "customers";
15381
- referencedColumns: ["id"];
15382
- }, {
15383
- foreignKeyName: "quotes_project_id_fkey";
15384
- columns: ["project_id"];
15385
- isOneToOne: false;
15386
- referencedRelation: "projects";
15387
- referencedColumns: ["id"];
15388
- }, {
15389
- foreignKeyName: "quotes_prospect_id_fkey";
15390
- columns: ["prospect_id"];
15391
- isOneToOne: false;
15392
- referencedRelation: "prospects";
15393
- referencedColumns: ["id"];
15394
- }, {
15395
- foreignKeyName: "quotes_template_id_fkey";
15396
- columns: ["template_id"];
15397
- isOneToOne: false;
15398
- referencedRelation: "quote_templates";
15399
- referencedColumns: ["id"];
15400
- }, {
15401
- foreignKeyName: "quotes_terms_id_fkey";
15402
- columns: ["terms_id"];
15403
- isOneToOne: false;
15404
- referencedRelation: "quote_terms";
15405
- referencedColumns: ["id"];
15406
- }];
15407
- };
15408
15513
  reception_notifications: {
15409
15514
  Row: {
15410
15515
  booking_id: string | null;
@@ -16526,7 +16631,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
16526
16631
  foreignKeyName: "time_logs_work_order_id_fkey";
16527
16632
  columns: ["work_order_id"];
16528
16633
  isOneToOne: false;
16529
- referencedRelation: "work_orders";
16634
+ referencedRelation: "werkbonnen";
16530
16635
  referencedColumns: ["id"];
16531
16636
  }];
16532
16637
  };
@@ -16658,6 +16763,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
16658
16763
  };
16659
16764
  trade_item_stock: {
16660
16765
  Row: {
16766
+ change_source: string;
16661
16767
  connection_id: string;
16662
16768
  created_at: string;
16663
16769
  id: string;
@@ -16671,6 +16777,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
16671
16777
  user_id: string;
16672
16778
  };
16673
16779
  Insert: {
16780
+ change_source?: string;
16674
16781
  connection_id: string;
16675
16782
  created_at?: string;
16676
16783
  id?: string;
@@ -16684,6 +16791,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
16684
16791
  user_id: string;
16685
16792
  };
16686
16793
  Update: {
16794
+ change_source?: string;
16687
16795
  connection_id?: string;
16688
16796
  created_at?: string;
16689
16797
  id?: string;
@@ -17853,156 +17961,6 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
17853
17961
  };
17854
17962
  Relationships: [];
17855
17963
  };
17856
- uren_offerte_regels: {
17857
- Row: {
17858
- created_at: string;
17859
- description: string;
17860
- duration_minutes: number;
17861
- id: string;
17862
- offerte_id: string;
17863
- package_id: string | null;
17864
- quantity: number;
17865
- sort_order: number;
17866
- total_cents: number;
17867
- unit_price_cents: number;
17868
- };
17869
- Insert: {
17870
- created_at?: string;
17871
- description: string;
17872
- duration_minutes?: number;
17873
- id?: string;
17874
- offerte_id: string;
17875
- package_id?: string | null;
17876
- quantity?: number;
17877
- sort_order?: number;
17878
- total_cents?: number;
17879
- unit_price_cents?: number;
17880
- };
17881
- Update: {
17882
- created_at?: string;
17883
- description?: string;
17884
- duration_minutes?: number;
17885
- id?: string;
17886
- offerte_id?: string;
17887
- package_id?: string | null;
17888
- quantity?: number;
17889
- sort_order?: number;
17890
- total_cents?: number;
17891
- unit_price_cents?: number;
17892
- };
17893
- Relationships: [{
17894
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
17895
- columns: ["offerte_id"];
17896
- isOneToOne: false;
17897
- referencedRelation: "uren_offertes";
17898
- referencedColumns: ["id"];
17899
- }, {
17900
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
17901
- columns: ["package_id"];
17902
- isOneToOne: false;
17903
- referencedRelation: "werkbon_packages";
17904
- referencedColumns: ["id"];
17905
- }];
17906
- };
17907
- uren_offerte_velden: {
17908
- Row: {
17909
- created_at: string;
17910
- field_type: string;
17911
- id: string;
17912
- key: string;
17913
- label: string;
17914
- options: string[];
17915
- required: boolean;
17916
- sort_order: number;
17917
- updated_at: string;
17918
- };
17919
- Insert: {
17920
- created_at?: string;
17921
- field_type?: string;
17922
- id?: string;
17923
- key: string;
17924
- label: string;
17925
- options?: string[];
17926
- required?: boolean;
17927
- sort_order?: number;
17928
- updated_at?: string;
17929
- };
17930
- Update: {
17931
- created_at?: string;
17932
- field_type?: string;
17933
- id?: string;
17934
- key?: string;
17935
- label?: string;
17936
- options?: string[];
17937
- required?: boolean;
17938
- sort_order?: number;
17939
- updated_at?: string;
17940
- };
17941
- Relationships: [];
17942
- };
17943
- uren_offertes: {
17944
- Row: {
17945
- created_at: string;
17946
- created_by: string | null;
17947
- customer_id: string | null;
17948
- customer_name: string | null;
17949
- dynamic_fields: import("../integrations/supabase/types").Json;
17950
- estimated_minutes: number;
17951
- id: string;
17952
- note: string | null;
17953
- quote_number: string | null;
17954
- status: string;
17955
- title: string;
17956
- total_excl_cents: number;
17957
- total_incl_cents: number;
17958
- updated_at: string;
17959
- valid_until: string | null;
17960
- vat_percentage: number;
17961
- };
17962
- Insert: {
17963
- created_at?: string;
17964
- created_by?: string | null;
17965
- customer_id?: string | null;
17966
- customer_name?: string | null;
17967
- dynamic_fields?: import("../integrations/supabase/types").Json;
17968
- estimated_minutes?: number;
17969
- id?: string;
17970
- note?: string | null;
17971
- quote_number?: string | null;
17972
- status?: string;
17973
- title?: string;
17974
- total_excl_cents?: number;
17975
- total_incl_cents?: number;
17976
- updated_at?: string;
17977
- valid_until?: string | null;
17978
- vat_percentage?: number;
17979
- };
17980
- Update: {
17981
- created_at?: string;
17982
- created_by?: string | null;
17983
- customer_id?: string | null;
17984
- customer_name?: string | null;
17985
- dynamic_fields?: import("../integrations/supabase/types").Json;
17986
- estimated_minutes?: number;
17987
- id?: string;
17988
- note?: string | null;
17989
- quote_number?: string | null;
17990
- status?: string;
17991
- title?: string;
17992
- total_excl_cents?: number;
17993
- total_incl_cents?: number;
17994
- updated_at?: string;
17995
- valid_until?: string | null;
17996
- vat_percentage?: number;
17997
- };
17998
- Relationships: [{
17999
- foreignKeyName: "uren_offertes_customer_id_fkey";
18000
- columns: ["customer_id"];
18001
- isOneToOne: false;
18002
- referencedRelation: "itk_customers";
18003
- referencedColumns: ["id"];
18004
- }];
18005
- };
18006
17964
  uren_settings: {
18007
17965
  Row: {
18008
17966
  break_minutes: number;
@@ -19689,6 +19647,37 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
19689
19647
  };
19690
19648
  Relationships: [];
19691
19649
  };
19650
+ planning_overview: {
19651
+ Row: {
19652
+ assigned_monteur_id: string | null;
19653
+ assistants: import("../integrations/supabase/types").Json | null;
19654
+ budget_mandate_cents: number | null;
19655
+ created_at: string | null;
19656
+ created_by: string | null;
19657
+ customer_id: string | null;
19658
+ customer_name: string | null;
19659
+ duration_minutes: number | null;
19660
+ end_at: string | null;
19661
+ id: string | null;
19662
+ needs_detail_review: boolean | null;
19663
+ notes: string | null;
19664
+ project_number: string | null;
19665
+ review_reasons: string[] | null;
19666
+ start_at: string | null;
19667
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
19668
+ updated_at: string | null;
19669
+ viewer_role: string | null;
19670
+ werkbon_id: string | null;
19671
+ work_address: string | null;
19672
+ };
19673
+ Relationships: [{
19674
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19675
+ columns: ["werkbon_id"];
19676
+ isOneToOne: false;
19677
+ referencedRelation: "werkbonnen";
19678
+ referencedColumns: ["id"];
19679
+ }];
19680
+ };
19692
19681
  product_group_stock_view: {
19693
19682
  Row: {
19694
19683
  item_count: number | null;
@@ -20284,6 +20273,18 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20284
20273
  Args: never;
20285
20274
  Returns: number;
20286
20275
  };
20276
+ calculate_floriday_desired_stock: {
20277
+ Args: {
20278
+ p_connection_id: string;
20279
+ p_product_id: string;
20280
+ };
20281
+ Returns: {
20282
+ desired_availability: boolean;
20283
+ desired_quantity: number;
20284
+ erp_available: number;
20285
+ stock_mode: string;
20286
+ }[];
20287
+ };
20287
20288
  calculate_layer_stock: {
20288
20289
  Args: {
20289
20290
  p_product_id: string;
@@ -20336,6 +20337,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20336
20337
  foutmelding: string | null;
20337
20338
  gebruiker_id: string | null;
20338
20339
  gebruiker_naam: string;
20340
+ gebruikte_bron: string | null;
20341
+ gebruikte_layout_id: string | null;
20339
20342
  gestart_op: string | null;
20340
20343
  herkomst: string | null;
20341
20344
  id: string;
@@ -20343,6 +20346,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20343
20346
  is_herprint: boolean;
20344
20347
  kopieen: number;
20345
20348
  layout_id: string | null;
20349
+ lokaal_opgeslagen_op: string | null;
20350
+ lokale_pdf_fout: string | null;
20351
+ lokale_pdf_status: string | null;
20346
20352
  opgepakt_op: string | null;
20347
20353
  paginas: number;
20348
20354
  payload: import("../integrations/supabase/types").Json;
@@ -20351,6 +20357,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20351
20357
  pogingen: number;
20352
20358
  printer_id: string | null;
20353
20359
  render_html: string | null;
20360
+ resultaat_pdf_base64: string | null;
20354
20361
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20355
20362
  updated_at: string;
20356
20363
  volgende_poging: string | null;
@@ -20372,6 +20379,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20372
20379
  attempts: number;
20373
20380
  connection_id: string;
20374
20381
  created_at: string;
20382
+ dead_lettered_at: string | null;
20375
20383
  desired_available: boolean | null;
20376
20384
  gateway_attempt_id: string | null;
20377
20385
  id: string;
@@ -20380,9 +20388,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20380
20388
  locked_by: string | null;
20381
20389
  next_attempt_at: string;
20382
20390
  number_of_pieces: number;
20391
+ product_id: string | null;
20383
20392
  sent_at: string | null;
20384
20393
  status: string;
20394
+ stock_mode: string | null;
20385
20395
  superseded_by: string | null;
20396
+ target_week: number | null;
20397
+ target_year: number | null;
20386
20398
  trade_item_id: string;
20387
20399
  updated_at: string;
20388
20400
  user_id: string;
@@ -20442,6 +20454,53 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20442
20454
  isSetofReturn: true;
20443
20455
  };
20444
20456
  };
20457
+ claim_pdf_print_jobs: {
20458
+ Args: {
20459
+ _max?: number;
20460
+ };
20461
+ Returns: {
20462
+ agent_id: string | null;
20463
+ bron_job_id: string | null;
20464
+ created_at: string;
20465
+ documentnaam: string;
20466
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20467
+ extern_job_id: string | null;
20468
+ foutmelding: string | null;
20469
+ gebruiker_id: string | null;
20470
+ gebruiker_naam: string;
20471
+ gebruikte_bron: string | null;
20472
+ gebruikte_layout_id: string | null;
20473
+ gestart_op: string | null;
20474
+ herkomst: string | null;
20475
+ id: string;
20476
+ idempotentie_sleutel: string | null;
20477
+ is_herprint: boolean;
20478
+ kopieen: number;
20479
+ layout_id: string | null;
20480
+ lokaal_opgeslagen_op: string | null;
20481
+ lokale_pdf_fout: string | null;
20482
+ lokale_pdf_status: string | null;
20483
+ opgepakt_op: string | null;
20484
+ paginas: number;
20485
+ payload: import("../integrations/supabase/types").Json;
20486
+ pdf_base64: string | null;
20487
+ pdf_url: string | null;
20488
+ pogingen: number;
20489
+ printer_id: string | null;
20490
+ render_html: string | null;
20491
+ resultaat_pdf_base64: string | null;
20492
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20493
+ updated_at: string;
20494
+ volgende_poging: string | null;
20495
+ voltooid_op: string | null;
20496
+ }[];
20497
+ SetofOptions: {
20498
+ from: "*";
20499
+ to: "print_jobs";
20500
+ isOneToOne: false;
20501
+ isSetofReturn: true;
20502
+ };
20503
+ };
20445
20504
  claim_print_jobs: {
20446
20505
  Args: {
20447
20506
  _agent_id: string;
@@ -20457,6 +20516,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20457
20516
  foutmelding: string | null;
20458
20517
  gebruiker_id: string | null;
20459
20518
  gebruiker_naam: string;
20519
+ gebruikte_bron: string | null;
20520
+ gebruikte_layout_id: string | null;
20460
20521
  gestart_op: string | null;
20461
20522
  herkomst: string | null;
20462
20523
  id: string;
@@ -20464,6 +20525,9 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20464
20525
  is_herprint: boolean;
20465
20526
  kopieen: number;
20466
20527
  layout_id: string | null;
20528
+ lokaal_opgeslagen_op: string | null;
20529
+ lokale_pdf_fout: string | null;
20530
+ lokale_pdf_status: string | null;
20467
20531
  opgepakt_op: string | null;
20468
20532
  paginas: number;
20469
20533
  payload: import("../integrations/supabase/types").Json;
@@ -20472,6 +20536,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20472
20536
  pogingen: number;
20473
20537
  printer_id: string | null;
20474
20538
  render_html: string | null;
20539
+ resultaat_pdf_base64: string | null;
20475
20540
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20476
20541
  updated_at: string;
20477
20542
  volgende_poging: string | null;
@@ -20612,6 +20677,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20612
20677
  order_id: string;
20613
20678
  order_source: string;
20614
20679
  pick_date: string;
20680
+ printed_at: string;
20681
+ printed_today: boolean;
20615
20682
  status: string;
20616
20683
  }[];
20617
20684
  };
@@ -20808,6 +20875,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20808
20875
  };
20809
20876
  Returns: string;
20810
20877
  };
20878
+ floriday_capture_stock_snapshot: {
20879
+ Args: never;
20880
+ Returns: number;
20881
+ };
20882
+ floriday_cleanup_stock_queue_v2: {
20883
+ Args: never;
20884
+ Returns: undefined;
20885
+ };
20886
+ floriday_compact_stock_snapshots: {
20887
+ Args: never;
20888
+ Returns: undefined;
20889
+ };
20890
+ floriday_default_owner: {
20891
+ Args: {
20892
+ p_connection_id: string;
20893
+ };
20894
+ Returns: string;
20895
+ };
20811
20896
  floriday_effective_price: {
20812
20897
  Args: {
20813
20898
  _buyer_id: string;
@@ -20825,6 +20910,34 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20825
20910
  source_id: string;
20826
20911
  }[];
20827
20912
  };
20913
+ floriday_fill_publish_horizon: {
20914
+ Args: never;
20915
+ Returns: number;
20916
+ };
20917
+ floriday_ingest_sales_orders: {
20918
+ Args: {
20919
+ p_limit?: number;
20920
+ };
20921
+ Returns: number;
20922
+ };
20923
+ floriday_publish_horizon_weeks: {
20924
+ Args: never;
20925
+ Returns: number;
20926
+ };
20927
+ floriday_recompute_inventory: {
20928
+ Args: {
20929
+ p_connection_id: string;
20930
+ p_force?: boolean;
20931
+ p_product_id: string;
20932
+ };
20933
+ Returns: undefined;
20934
+ };
20935
+ floriday_requeue_dead_letters: {
20936
+ Args: {
20937
+ p_connection_id?: string;
20938
+ };
20939
+ Returns: number;
20940
+ };
20828
20941
  format_cart_number: {
20829
20942
  Args: {
20830
20943
  p_pick_date: string;
@@ -21041,6 +21154,131 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21041
21154
  Args: never;
21042
21155
  Returns: string;
21043
21156
  };
21157
+ handover_get: {
21158
+ Args: {
21159
+ _module_id: string;
21160
+ };
21161
+ Returns: import("../integrations/supabase/types").Json;
21162
+ };
21163
+ handover_kern_naam: {
21164
+ Args: {
21165
+ _naam: string;
21166
+ };
21167
+ Returns: string;
21168
+ };
21169
+ handover_ketenmodel: {
21170
+ Args: never;
21171
+ Returns: import("../integrations/supabase/types").Json;
21172
+ };
21173
+ handover_kruisconflicten: {
21174
+ Args: never;
21175
+ Returns: import("../integrations/supabase/types").Json;
21176
+ };
21177
+ handover_list: {
21178
+ Args: never;
21179
+ Returns: import("../integrations/supabase/types").Json;
21180
+ };
21181
+ handover_mag_schrijven: {
21182
+ Args: {
21183
+ _module_id: string;
21184
+ };
21185
+ Returns: boolean;
21186
+ };
21187
+ handover_norm_naam: {
21188
+ Args: {
21189
+ _naam: string;
21190
+ };
21191
+ Returns: string;
21192
+ };
21193
+ handover_publish: {
21194
+ Args: {
21195
+ _bevindingen?: string;
21196
+ _bezit_tabellen?: string[];
21197
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21198
+ _contractfuncties?: string[];
21199
+ _inhoud_md: string;
21200
+ _module_id: string;
21201
+ _module_titel: string;
21202
+ _ontbrekende_contracten?: string[];
21203
+ _samenvatting?: string;
21204
+ };
21205
+ Returns: number;
21206
+ };
21207
+ handover_publish_via_token: {
21208
+ Args: {
21209
+ _bevindingen?: string;
21210
+ _bezit_tabellen?: string[];
21211
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21212
+ _contractfuncties?: string[];
21213
+ _inhoud_md: string;
21214
+ _module_id: string;
21215
+ _module_titel: string;
21216
+ _ontbrekende_contracten?: string[];
21217
+ _samenvatting?: string;
21218
+ _token_hash: string;
21219
+ };
21220
+ Returns: number;
21221
+ };
21222
+ handover_status: {
21223
+ Args: never;
21224
+ Returns: import("../integrations/supabase/types").Json;
21225
+ };
21226
+ handover_synonym_kern: {
21227
+ Args: {
21228
+ _naam: string;
21229
+ };
21230
+ Returns: string;
21231
+ };
21232
+ handover_token_intrekken: {
21233
+ Args: {
21234
+ _id: string;
21235
+ };
21236
+ Returns: boolean;
21237
+ };
21238
+ handover_token_lijst: {
21239
+ Args: never;
21240
+ Returns: import("../integrations/supabase/types").Json;
21241
+ };
21242
+ handover_token_maken: {
21243
+ Args: {
21244
+ _label?: string;
21245
+ _module_id: string;
21246
+ };
21247
+ Returns: string;
21248
+ };
21249
+ handover_update: {
21250
+ Args: {
21251
+ _bezit_tabellen?: string[];
21252
+ _contractfuncties?: string[];
21253
+ _herzieningstermijn_dagen?: number;
21254
+ _inhoud_md?: string;
21255
+ _module_id: string;
21256
+ _module_titel?: string;
21257
+ _samenvatting?: string;
21258
+ _versie: number;
21259
+ };
21260
+ Returns: boolean;
21261
+ } | {
21262
+ Args: {
21263
+ _bevindingen?: string;
21264
+ _bezit_tabellen?: string[];
21265
+ _contractfuncties?: string[];
21266
+ _herzieningstermijn_dagen?: number;
21267
+ _inhoud_md?: string;
21268
+ _module_id: string;
21269
+ _module_titel?: string;
21270
+ _ontbrekende_contracten?: string[];
21271
+ _samenvatting?: string;
21272
+ _versie: number;
21273
+ };
21274
+ Returns: boolean;
21275
+ };
21276
+ handover_versies: {
21277
+ Args: {
21278
+ _module_id: string;
21279
+ };
21280
+ Returns: import("../integrations/supabase/types").Json;
21281
+ };
21044
21282
  has_module_permission: {
21045
21283
  Args: {
21046
21284
  _min: string;
@@ -21060,6 +21298,25 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21060
21298
  Args: never;
21061
21299
  Returns: boolean;
21062
21300
  };
21301
+ instructie_get: {
21302
+ Args: {
21303
+ _sleutel: string;
21304
+ };
21305
+ Returns: import("../integrations/supabase/types").Json;
21306
+ };
21307
+ instructie_list: {
21308
+ Args: never;
21309
+ Returns: import("../integrations/supabase/types").Json;
21310
+ };
21311
+ instructie_publish: {
21312
+ Args: {
21313
+ _inhoud_md: string;
21314
+ _sleutel: string;
21315
+ _titel: string;
21316
+ _toelichting?: string;
21317
+ };
21318
+ Returns: number;
21319
+ };
21063
21320
  invoice_create_from_source: {
21064
21321
  Args: {
21065
21322
  _payload?: import("../integrations/supabase/types").Json;
@@ -21320,6 +21577,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21320
21577
  };
21321
21578
  Returns: number;
21322
21579
  };
21580
+ logistics_cancel_orphan_tasks: {
21581
+ Args: never;
21582
+ Returns: number;
21583
+ };
21323
21584
  logistics_capacity_day_check: {
21324
21585
  Args: {
21325
21586
  p_from?: string;
@@ -21340,6 +21601,25 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21340
21601
  };
21341
21602
  Returns: number;
21342
21603
  };
21604
+ logistics_cart_index: {
21605
+ Args: {
21606
+ p_from?: string;
21607
+ p_to?: string;
21608
+ };
21609
+ Returns: {
21610
+ cart_id: string;
21611
+ cart_index: number;
21612
+ cart_label: string;
21613
+ is_shared: boolean;
21614
+ order_number: string;
21615
+ order_source: string;
21616
+ order_uuid: string;
21617
+ pick_date: string;
21618
+ printed_at: string;
21619
+ shifted: boolean;
21620
+ task_status: string;
21621
+ }[];
21622
+ };
21343
21623
  logistics_check_order_allowed: {
21344
21624
  Args: {
21345
21625
  p_lines: import("../integrations/supabase/types").Json;
@@ -21488,6 +21768,17 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21488
21768
  isSetofReturn: false;
21489
21769
  };
21490
21770
  };
21771
+ logistics_consistency_check: {
21772
+ Args: never;
21773
+ Returns: {
21774
+ agenda_carts: number;
21775
+ control_carts: number;
21776
+ ok: boolean;
21777
+ orphan_tasks: number;
21778
+ pick_date: string;
21779
+ raw_carts: number;
21780
+ }[];
21781
+ };
21491
21782
  logistics_delay_customer_email: {
21492
21783
  Args: {
21493
21784
  p_customer: string;
@@ -21513,6 +21804,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21513
21804
  };
21514
21805
  Returns: string;
21515
21806
  };
21807
+ logistics_document_type_map: {
21808
+ Args: {
21809
+ _document_code: string;
21810
+ };
21811
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
21812
+ };
21516
21813
  logistics_emit_event: {
21517
21814
  Args: {
21518
21815
  p_event_type: string;
@@ -21571,6 +21868,16 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21571
21868
  isSetofReturn: false;
21572
21869
  };
21573
21870
  };
21871
+ logistics_floriday_cart_plan: {
21872
+ Args: {
21873
+ p_order_id: string;
21874
+ };
21875
+ Returns: {
21876
+ carrier_type: string;
21877
+ idx: number;
21878
+ packages: number;
21879
+ }[];
21880
+ };
21574
21881
  logistics_floriday_claim_pushes: {
21575
21882
  Args: {
21576
21883
  _lease_seconds?: number;
@@ -21675,6 +21982,25 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21675
21982
  };
21676
21983
  Returns: number;
21677
21984
  };
21985
+ logistics_order_overview: {
21986
+ Args: {
21987
+ p_from?: string;
21988
+ p_to?: string;
21989
+ };
21990
+ Returns: {
21991
+ cart_count: number;
21992
+ customer_name: string;
21993
+ delivery_date: string;
21994
+ order_number: string;
21995
+ order_source: string;
21996
+ order_uuid: string;
21997
+ pick_date: string;
21998
+ plant_count: number;
21999
+ printed_at: string;
22000
+ shifted: boolean;
22001
+ status: string;
22002
+ }[];
22003
+ };
21678
22004
  logistics_order_pick_day: {
21679
22005
  Args: {
21680
22006
  p_order_ref: string;
@@ -21687,6 +22013,22 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21687
22013
  };
21688
22014
  Returns: string;
21689
22015
  };
22016
+ logistics_pick_agenda: {
22017
+ Args: {
22018
+ p_from?: string;
22019
+ p_to?: string;
22020
+ };
22021
+ Returns: {
22022
+ cart_count: number;
22023
+ in_preparation: number;
22024
+ order_count: number;
22025
+ orders: import("../integrations/supabase/types").Json;
22026
+ pick_date: string;
22027
+ plant_count: number;
22028
+ ready: number;
22029
+ shifted_count: number;
22030
+ }[];
22031
+ };
21690
22032
  logistics_pick_email_purpose: {
21691
22033
  Args: never;
21692
22034
  Returns: string;
@@ -21741,6 +22083,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21741
22083
  };
21742
22084
  Returns: undefined;
21743
22085
  };
22086
+ logistics_plan_floriday_order: {
22087
+ Args: {
22088
+ p_buffer_id?: string;
22089
+ p_order_id: string;
22090
+ };
22091
+ Returns: number;
22092
+ };
21744
22093
  logistics_plan_impact_orders: {
21745
22094
  Args: {
21746
22095
  p_order_id: string;
@@ -21846,6 +22195,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21846
22195
  };
21847
22196
  Returns: import("../integrations/supabase/types").Json;
21848
22197
  };
22198
+ logistics_resolve_pick_document: {
22199
+ Args: {
22200
+ _is_herprint: boolean;
22201
+ _queue_item_id: string;
22202
+ _session_id: string;
22203
+ _voorbeeld: boolean;
22204
+ };
22205
+ Returns: import("../integrations/supabase/types").Json;
22206
+ };
21849
22207
  logistics_resolve_settings: {
21850
22208
  Args: {
21851
22209
  p_config_id: string;
@@ -22286,6 +22644,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
22286
22644
  };
22287
22645
  pick_enqueue_print_job: {
22288
22646
  Args: {
22647
+ _is_herprint?: boolean;
22289
22648
  _printer_id?: string;
22290
22649
  _queue_item_id: string;
22291
22650
  _session_id?: string;
@@ -22299,6 +22658,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
22299
22658
  };
22300
22659
  Returns: import("../integrations/supabase/types").Json;
22301
22660
  };
22661
+ pick_preview_job: {
22662
+ Args: {
22663
+ _queue_item_id: string;
22664
+ _station_slug: string;
22665
+ };
22666
+ Returns: import("../integrations/supabase/types").Json;
22667
+ };
22302
22668
  pick_print_job_status: {
22303
22669
  Args: {
22304
22670
  _job_id: string;
@@ -22476,6 +22842,84 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
22476
22842
  };
22477
22843
  Returns: undefined;
22478
22844
  };
22845
+ planning_cancel_item: {
22846
+ Args: {
22847
+ _id: string;
22848
+ };
22849
+ Returns: undefined;
22850
+ };
22851
+ planning_list: {
22852
+ Args: {
22853
+ _from: string;
22854
+ _to: string;
22855
+ };
22856
+ Returns: {
22857
+ assigned_monteur_id: string | null;
22858
+ assistants: import("../integrations/supabase/types").Json | null;
22859
+ budget_mandate_cents: number | null;
22860
+ created_at: string | null;
22861
+ created_by: string | null;
22862
+ customer_id: string | null;
22863
+ customer_name: string | null;
22864
+ duration_minutes: number | null;
22865
+ end_at: string | null;
22866
+ id: string | null;
22867
+ needs_detail_review: boolean | null;
22868
+ notes: string | null;
22869
+ project_number: string | null;
22870
+ review_reasons: string[] | null;
22871
+ start_at: string | null;
22872
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
22873
+ updated_at: string | null;
22874
+ viewer_role: string | null;
22875
+ werkbon_id: string | null;
22876
+ work_address: string | null;
22877
+ }[];
22878
+ SetofOptions: {
22879
+ from: "*";
22880
+ to: "planning_overview";
22881
+ isOneToOne: false;
22882
+ isSetofReturn: true;
22883
+ };
22884
+ };
22885
+ planning_set_assistants: {
22886
+ Args: {
22887
+ _monteur_ids: string[];
22888
+ _planning_item_id: string;
22889
+ };
22890
+ Returns: undefined;
22891
+ };
22892
+ planning_upsert_item: {
22893
+ Args: {
22894
+ _assigned_monteur_id: string;
22895
+ _end_at: string;
22896
+ _notes?: string;
22897
+ _start_at: string;
22898
+ _werkbon_id: string;
22899
+ };
22900
+ Returns: {
22901
+ action: string;
22902
+ id: string;
22903
+ }[];
22904
+ };
22905
+ print_preview_toestaan: {
22906
+ Args: {
22907
+ _max?: number;
22908
+ _queue_item_id: string;
22909
+ _station_slug: string;
22910
+ _venster_sec?: number;
22911
+ };
22912
+ Returns: import("../integrations/supabase/types").Json;
22913
+ };
22914
+ print_preview_weiger: {
22915
+ Args: {
22916
+ _code: string;
22917
+ _queue_item_id: string;
22918
+ _reden: string;
22919
+ _station_slug: string;
22920
+ };
22921
+ Returns: undefined;
22922
+ };
22479
22923
  process_logistics_event: {
22480
22924
  Args: {
22481
22925
  p_event_id: string;
@@ -22593,6 +23037,14 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
22593
23037
  };
22594
23038
  Returns: undefined;
22595
23039
  };
23040
+ replace_order_carts: {
23041
+ Args: {
23042
+ p_buffer_id: string;
23043
+ p_carts: import("../integrations/supabase/types").Json;
23044
+ p_order_id: string;
23045
+ };
23046
+ Returns: import("../integrations/supabase/types").Json;
23047
+ };
22596
23048
  reset_floriday_sync_cursor: {
22597
23049
  Args: {
22598
23050
  p_connection_id: string;
@@ -22622,6 +23074,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
22622
23074
  };
22623
23075
  Returns: string;
22624
23076
  };
23077
+ resolve_print_job_printer_id: {
23078
+ Args: {
23079
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
23080
+ };
23081
+ Returns: string;
23082
+ };
22625
23083
  resolve_product_id_for_item: {
22626
23084
  Args: {
22627
23085
  p_product_name: string;
@@ -23025,6 +23483,26 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23025
23483
  };
23026
23484
  Returns: string[];
23027
23485
  };
23486
+ start_time_log_at: {
23487
+ Args: {
23488
+ p_clicked_at?: string;
23489
+ p_employee_id: string;
23490
+ p_start_lat?: number;
23491
+ p_start_lng?: number;
23492
+ p_type: string;
23493
+ p_work_order_id?: string;
23494
+ };
23495
+ Returns: import("../integrations/supabase/types").Json;
23496
+ };
23497
+ stop_time_log: {
23498
+ Args: {
23499
+ p_employee_id: string;
23500
+ p_end_lat?: number;
23501
+ p_end_lng?: number;
23502
+ p_end_time: string;
23503
+ };
23504
+ Returns: import("../integrations/supabase/types").Json;
23505
+ };
23028
23506
  switch_time_log: {
23029
23507
  Args: {
23030
23508
  p_employee_id: string;
@@ -23213,7 +23691,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
23213
23691
  };
23214
23692
  CompositeTypes: { [_ in never]: never; };
23215
23693
  }, {
23216
- PostgrestVersion: "14.17";
23694
+ PostgrestVersion: "14.5";
23217
23695
  }>;
23218
23696
  userId: string;
23219
23697
  claims: import("@supabase/auth-js").JwtPayload;
@@ -26071,6 +26549,84 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
26071
26549
  };
26072
26550
  Relationships: [];
26073
26551
  };
26552
+ delivery_notes: {
26553
+ Row: {
26554
+ byte_size: number | null;
26555
+ connection_id: string | null;
26556
+ content_type: string;
26557
+ created_at: string;
26558
+ error_message: string | null;
26559
+ fetched_at: string | null;
26560
+ fulfillment_order_id: string | null;
26561
+ http_status: number | null;
26562
+ id: string;
26563
+ label_code: string | null;
26564
+ letter: string | null;
26565
+ load_carrier_index: number | null;
26566
+ load_carrier_type: string | null;
26567
+ order_id: string | null;
26568
+ order_number: string | null;
26569
+ packages: number | null;
26570
+ source: string;
26571
+ status: string;
26572
+ storage_bucket: string;
26573
+ storage_path: string | null;
26574
+ updated_at: string;
26575
+ };
26576
+ Insert: {
26577
+ byte_size?: number | null;
26578
+ connection_id?: string | null;
26579
+ content_type?: string;
26580
+ created_at?: string;
26581
+ error_message?: string | null;
26582
+ fetched_at?: string | null;
26583
+ fulfillment_order_id?: string | null;
26584
+ http_status?: number | null;
26585
+ id?: string;
26586
+ label_code?: string | null;
26587
+ letter?: string | null;
26588
+ load_carrier_index?: number | null;
26589
+ load_carrier_type?: string | null;
26590
+ order_id?: string | null;
26591
+ order_number?: string | null;
26592
+ packages?: number | null;
26593
+ source?: string;
26594
+ status?: string;
26595
+ storage_bucket?: string;
26596
+ storage_path?: string | null;
26597
+ updated_at?: string;
26598
+ };
26599
+ Update: {
26600
+ byte_size?: number | null;
26601
+ connection_id?: string | null;
26602
+ content_type?: string;
26603
+ created_at?: string;
26604
+ error_message?: string | null;
26605
+ fetched_at?: string | null;
26606
+ fulfillment_order_id?: string | null;
26607
+ http_status?: number | null;
26608
+ id?: string;
26609
+ label_code?: string | null;
26610
+ letter?: string | null;
26611
+ load_carrier_index?: number | null;
26612
+ load_carrier_type?: string | null;
26613
+ order_id?: string | null;
26614
+ order_number?: string | null;
26615
+ packages?: number | null;
26616
+ source?: string;
26617
+ status?: string;
26618
+ storage_bucket?: string;
26619
+ storage_path?: string | null;
26620
+ updated_at?: string;
26621
+ };
26622
+ Relationships: [{
26623
+ foreignKeyName: "delivery_notes_order_id_fkey";
26624
+ columns: ["order_id"];
26625
+ isOneToOne: false;
26626
+ referencedRelation: "orders";
26627
+ referencedColumns: ["id"];
26628
+ }];
26629
+ };
26074
26630
  document_bronregels: {
26075
26631
  Row: {
26076
26632
  bron: string;
@@ -29124,10 +29680,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29124
29680
  };
29125
29681
  floriday_connections: {
29126
29682
  Row: {
29127
- access_token: string | null;
29128
29683
  api_key: string;
29129
- client_id: string;
29130
- client_secret: string;
29131
29684
  created_at: string;
29132
29685
  customers_endpoint: string | null;
29133
29686
  environment: string;
@@ -29142,10 +29695,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29142
29695
  updated_at: string;
29143
29696
  };
29144
29697
  Insert: {
29145
- access_token?: string | null;
29146
29698
  api_key: string;
29147
- client_id: string;
29148
- client_secret: string;
29149
29699
  created_at?: string;
29150
29700
  customers_endpoint?: string | null;
29151
29701
  environment: string;
@@ -29160,10 +29710,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29160
29710
  updated_at?: string;
29161
29711
  };
29162
29712
  Update: {
29163
- access_token?: string | null;
29164
29713
  api_key?: string;
29165
- client_id?: string;
29166
- client_secret?: string;
29167
29714
  created_at?: string;
29168
29715
  customers_endpoint?: string | null;
29169
29716
  environment?: string;
@@ -29247,6 +29794,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29247
29794
  attempts: number;
29248
29795
  connection_id: string;
29249
29796
  created_at: string;
29797
+ dead_lettered_at: string | null;
29250
29798
  desired_available: boolean | null;
29251
29799
  gateway_attempt_id: string | null;
29252
29800
  id: string;
@@ -29255,9 +29803,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29255
29803
  locked_by: string | null;
29256
29804
  next_attempt_at: string;
29257
29805
  number_of_pieces: number;
29806
+ product_id: string | null;
29258
29807
  sent_at: string | null;
29259
29808
  status: string;
29809
+ stock_mode: string | null;
29260
29810
  superseded_by: string | null;
29811
+ target_week: number | null;
29812
+ target_year: number | null;
29261
29813
  trade_item_id: string;
29262
29814
  updated_at: string;
29263
29815
  user_id: string;
@@ -29266,6 +29818,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29266
29818
  attempts?: number;
29267
29819
  connection_id: string;
29268
29820
  created_at?: string;
29821
+ dead_lettered_at?: string | null;
29269
29822
  desired_available?: boolean | null;
29270
29823
  gateway_attempt_id?: string | null;
29271
29824
  id?: string;
@@ -29274,9 +29827,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29274
29827
  locked_by?: string | null;
29275
29828
  next_attempt_at?: string;
29276
29829
  number_of_pieces?: number;
29830
+ product_id?: string | null;
29277
29831
  sent_at?: string | null;
29278
29832
  status?: string;
29833
+ stock_mode?: string | null;
29279
29834
  superseded_by?: string | null;
29835
+ target_week?: number | null;
29836
+ target_year?: number | null;
29280
29837
  trade_item_id: string;
29281
29838
  updated_at?: string;
29282
29839
  user_id: string;
@@ -29285,6 +29842,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29285
29842
  attempts?: number;
29286
29843
  connection_id?: string;
29287
29844
  created_at?: string;
29845
+ dead_lettered_at?: string | null;
29288
29846
  desired_available?: boolean | null;
29289
29847
  gateway_attempt_id?: string | null;
29290
29848
  id?: string;
@@ -29293,9 +29851,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29293
29851
  locked_by?: string | null;
29294
29852
  next_attempt_at?: string;
29295
29853
  number_of_pieces?: number;
29854
+ product_id?: string | null;
29296
29855
  sent_at?: string | null;
29297
29856
  status?: string;
29857
+ stock_mode?: string | null;
29298
29858
  superseded_by?: string | null;
29859
+ target_week?: number | null;
29860
+ target_year?: number | null;
29299
29861
  trade_item_id?: string;
29300
29862
  updated_at?: string;
29301
29863
  user_id?: string;
@@ -29704,6 +30266,87 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29704
30266
  referencedColumns: ["id"];
29705
30267
  }];
29706
30268
  };
30269
+ floriday_inventory_settings: {
30270
+ Row: {
30271
+ buffer_quantity: number;
30272
+ connection_id: string;
30273
+ created_at: string;
30274
+ desired_availability: boolean;
30275
+ desired_quantity: number;
30276
+ fixed_quantity: number | null;
30277
+ floriday_trade_item_id: string | null;
30278
+ id: string;
30279
+ last_confirmed_at: string | null;
30280
+ last_enqueued_at: string | null;
30281
+ last_published_at: string | null;
30282
+ last_sync_error: string | null;
30283
+ manual_quantity: number | null;
30284
+ maximum_quantity: number | null;
30285
+ product_id: string;
30286
+ quantity_control: string;
30287
+ remote_available: boolean | null;
30288
+ remote_checked_at: string | null;
30289
+ remote_quantity: number | null;
30290
+ stock_mode: string;
30291
+ sync_status: string;
30292
+ updated_at: string;
30293
+ updated_by: string | null;
30294
+ user_id: string;
30295
+ };
30296
+ Insert: {
30297
+ buffer_quantity?: number;
30298
+ connection_id: string;
30299
+ created_at?: string;
30300
+ desired_availability?: boolean;
30301
+ desired_quantity?: number;
30302
+ fixed_quantity?: number | null;
30303
+ floriday_trade_item_id?: string | null;
30304
+ id?: string;
30305
+ last_confirmed_at?: string | null;
30306
+ last_enqueued_at?: string | null;
30307
+ last_published_at?: string | null;
30308
+ last_sync_error?: string | null;
30309
+ manual_quantity?: number | null;
30310
+ maximum_quantity?: number | null;
30311
+ product_id: string;
30312
+ quantity_control?: string;
30313
+ remote_available?: boolean | null;
30314
+ remote_checked_at?: string | null;
30315
+ remote_quantity?: number | null;
30316
+ stock_mode?: string;
30317
+ sync_status?: string;
30318
+ updated_at?: string;
30319
+ updated_by?: string | null;
30320
+ user_id: string;
30321
+ };
30322
+ Update: {
30323
+ buffer_quantity?: number;
30324
+ connection_id?: string;
30325
+ created_at?: string;
30326
+ desired_availability?: boolean;
30327
+ desired_quantity?: number;
30328
+ fixed_quantity?: number | null;
30329
+ floriday_trade_item_id?: string | null;
30330
+ id?: string;
30331
+ last_confirmed_at?: string | null;
30332
+ last_enqueued_at?: string | null;
30333
+ last_published_at?: string | null;
30334
+ last_sync_error?: string | null;
30335
+ manual_quantity?: number | null;
30336
+ maximum_quantity?: number | null;
30337
+ product_id?: string;
30338
+ quantity_control?: string;
30339
+ remote_available?: boolean | null;
30340
+ remote_checked_at?: string | null;
30341
+ remote_quantity?: number | null;
30342
+ stock_mode?: string;
30343
+ sync_status?: string;
30344
+ updated_at?: string;
30345
+ updated_by?: string | null;
30346
+ user_id?: string;
30347
+ };
30348
+ Relationships: [];
30349
+ };
29707
30350
  floriday_invoices_cache: {
29708
30351
  Row: {
29709
30352
  buyer_organization_id: string | null;
@@ -29992,6 +30635,39 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
29992
30635
  };
29993
30636
  Relationships: [];
29994
30637
  };
30638
+ floriday_sales_order_ingest: {
30639
+ Row: {
30640
+ connection_id: string;
30641
+ created_at: string;
30642
+ id: string;
30643
+ impact: import("../integrations/supabase/types").Json;
30644
+ order_status: string | null;
30645
+ order_version: number;
30646
+ processed_at: string;
30647
+ sales_order_id: string;
30648
+ };
30649
+ Insert: {
30650
+ connection_id: string;
30651
+ created_at?: string;
30652
+ id?: string;
30653
+ impact?: import("../integrations/supabase/types").Json;
30654
+ order_status?: string | null;
30655
+ order_version?: number;
30656
+ processed_at?: string;
30657
+ sales_order_id: string;
30658
+ };
30659
+ Update: {
30660
+ connection_id?: string;
30661
+ created_at?: string;
30662
+ id?: string;
30663
+ impact?: import("../integrations/supabase/types").Json;
30664
+ order_status?: string | null;
30665
+ order_version?: number;
30666
+ processed_at?: string;
30667
+ sales_order_id?: string;
30668
+ };
30669
+ Relationships: [];
30670
+ };
29995
30671
  floriday_sales_strategies_cache: {
29996
30672
  Row: {
29997
30673
  connection_id: string;
@@ -30091,6 +30767,39 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
30091
30767
  };
30092
30768
  Relationships: [];
30093
30769
  };
30770
+ floriday_sync_cursors: {
30771
+ Row: {
30772
+ connection_id: string;
30773
+ created_at: string;
30774
+ id: string;
30775
+ last_error: string | null;
30776
+ last_sync_at: string | null;
30777
+ resource_type: string;
30778
+ sequence_number: number;
30779
+ updated_at: string;
30780
+ };
30781
+ Insert: {
30782
+ connection_id: string;
30783
+ created_at?: string;
30784
+ id?: string;
30785
+ last_error?: string | null;
30786
+ last_sync_at?: string | null;
30787
+ resource_type: string;
30788
+ sequence_number?: number;
30789
+ updated_at?: string;
30790
+ };
30791
+ Update: {
30792
+ connection_id?: string;
30793
+ created_at?: string;
30794
+ id?: string;
30795
+ last_error?: string | null;
30796
+ last_sync_at?: string | null;
30797
+ resource_type?: string;
30798
+ sequence_number?: number;
30799
+ updated_at?: string;
30800
+ };
30801
+ Relationships: [];
30802
+ };
30094
30803
  floriday_sync_state: {
30095
30804
  Row: {
30096
30805
  connection_id: string;
@@ -30781,6 +31490,42 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
30781
31490
  };
30782
31491
  Relationships: [];
30783
31492
  };
31493
+ inventory_stock_snapshots: {
31494
+ Row: {
31495
+ connection_id: string;
31496
+ created_at: string;
31497
+ erp_available_quantity: number;
31498
+ floriday_desired_quantity: number;
31499
+ floriday_remote_quantity: number | null;
31500
+ granularity: string;
31501
+ id: string;
31502
+ snapshot_at: string;
31503
+ user_id: string | null;
31504
+ };
31505
+ Insert: {
31506
+ connection_id: string;
31507
+ created_at?: string;
31508
+ erp_available_quantity?: number;
31509
+ floriday_desired_quantity?: number;
31510
+ floriday_remote_quantity?: number | null;
31511
+ granularity?: string;
31512
+ id?: string;
31513
+ snapshot_at?: string;
31514
+ user_id?: string | null;
31515
+ };
31516
+ Update: {
31517
+ connection_id?: string;
31518
+ created_at?: string;
31519
+ erp_available_quantity?: number;
31520
+ floriday_desired_quantity?: number;
31521
+ floriday_remote_quantity?: number | null;
31522
+ granularity?: string;
31523
+ id?: string;
31524
+ snapshot_at?: string;
31525
+ user_id?: string | null;
31526
+ };
31527
+ Relationships: [];
31528
+ };
30784
31529
  invoice_items: {
30785
31530
  Row: {
30786
31531
  created_at: string;
@@ -31289,13 +32034,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
31289
32034
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
31290
32035
  updated_at?: string;
31291
32036
  };
31292
- Relationships: [{
31293
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
31294
- columns: ["legacy_customer_id"];
31295
- isOneToOne: false;
31296
- referencedRelation: "customers";
31297
- referencedColumns: ["id"];
31298
- }];
32037
+ Relationships: [];
31299
32038
  };
31300
32039
  itk_dynamic_fields: {
31301
32040
  Row: {
@@ -31327,6 +32066,180 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
31327
32066
  };
31328
32067
  Relationships: [];
31329
32068
  };
32069
+ itk_handover_rechten: {
32070
+ Row: {
32071
+ created_at: string;
32072
+ id: string;
32073
+ module_id: string;
32074
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32075
+ updated_at: string;
32076
+ user_id: string | null;
32077
+ };
32078
+ Insert: {
32079
+ created_at?: string;
32080
+ id?: string;
32081
+ module_id: string;
32082
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32083
+ updated_at?: string;
32084
+ user_id?: string | null;
32085
+ };
32086
+ Update: {
32087
+ created_at?: string;
32088
+ id?: string;
32089
+ module_id?: string;
32090
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32091
+ updated_at?: string;
32092
+ user_id?: string | null;
32093
+ };
32094
+ Relationships: [];
32095
+ };
32096
+ itk_handover_tokens: {
32097
+ Row: {
32098
+ aangemaakt_door: string | null;
32099
+ created_at: string;
32100
+ id: string;
32101
+ is_actief: boolean;
32102
+ laatst_gebruikt_op: string | null;
32103
+ label: string;
32104
+ module_id: string;
32105
+ token_hash: string;
32106
+ updated_at: string;
32107
+ verloopt_op: string | null;
32108
+ };
32109
+ Insert: {
32110
+ aangemaakt_door?: string | null;
32111
+ created_at?: string;
32112
+ id?: string;
32113
+ is_actief?: boolean;
32114
+ laatst_gebruikt_op?: string | null;
32115
+ label?: string;
32116
+ module_id: string;
32117
+ token_hash: string;
32118
+ updated_at?: string;
32119
+ verloopt_op?: string | null;
32120
+ };
32121
+ Update: {
32122
+ aangemaakt_door?: string | null;
32123
+ created_at?: string;
32124
+ id?: string;
32125
+ is_actief?: boolean;
32126
+ laatst_gebruikt_op?: string | null;
32127
+ label?: string;
32128
+ module_id?: string;
32129
+ token_hash?: string;
32130
+ updated_at?: string;
32131
+ verloopt_op?: string | null;
32132
+ };
32133
+ Relationships: [];
32134
+ };
32135
+ itk_module_handovers: {
32136
+ Row: {
32137
+ bevindingen: string | null;
32138
+ bezit_tabellen: string[];
32139
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
32140
+ contractfuncties: string[];
32141
+ created_at: string;
32142
+ eigenaar_module_id: string | null;
32143
+ gepubliceerd_door: string | null;
32144
+ gepubliceerd_op: string;
32145
+ herzieningstermijn_dagen: number;
32146
+ id: string;
32147
+ inhoud_md: string;
32148
+ is_actueel: boolean;
32149
+ module_id: string;
32150
+ module_titel: string;
32151
+ ontbrekende_contracten: string[];
32152
+ samenvatting: string | null;
32153
+ updated_at: string;
32154
+ versie: number;
32155
+ };
32156
+ Insert: {
32157
+ bevindingen?: string | null;
32158
+ bezit_tabellen?: string[];
32159
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
32160
+ contractfuncties?: string[];
32161
+ created_at?: string;
32162
+ eigenaar_module_id?: string | null;
32163
+ gepubliceerd_door?: string | null;
32164
+ gepubliceerd_op?: string;
32165
+ herzieningstermijn_dagen?: number;
32166
+ id?: string;
32167
+ inhoud_md: string;
32168
+ is_actueel?: boolean;
32169
+ module_id: string;
32170
+ module_titel: string;
32171
+ ontbrekende_contracten?: string[];
32172
+ samenvatting?: string | null;
32173
+ updated_at?: string;
32174
+ versie?: number;
32175
+ };
32176
+ Update: {
32177
+ bevindingen?: string | null;
32178
+ bezit_tabellen?: string[];
32179
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
32180
+ contractfuncties?: string[];
32181
+ created_at?: string;
32182
+ eigenaar_module_id?: string | null;
32183
+ gepubliceerd_door?: string | null;
32184
+ gepubliceerd_op?: string;
32185
+ herzieningstermijn_dagen?: number;
32186
+ id?: string;
32187
+ inhoud_md?: string;
32188
+ is_actueel?: boolean;
32189
+ module_id?: string;
32190
+ module_titel?: string;
32191
+ ontbrekende_contracten?: string[];
32192
+ samenvatting?: string | null;
32193
+ updated_at?: string;
32194
+ versie?: number;
32195
+ };
32196
+ Relationships: [];
32197
+ };
32198
+ itk_module_instructies: {
32199
+ Row: {
32200
+ created_at: string;
32201
+ eigenaar_module_id: string;
32202
+ gepubliceerd_door: string | null;
32203
+ gepubliceerd_op: string;
32204
+ id: string;
32205
+ inhoud_md: string;
32206
+ is_actueel: boolean;
32207
+ sleutel: string;
32208
+ titel: string;
32209
+ toelichting: string | null;
32210
+ updated_at: string;
32211
+ versie: number;
32212
+ };
32213
+ Insert: {
32214
+ created_at?: string;
32215
+ eigenaar_module_id?: string;
32216
+ gepubliceerd_door?: string | null;
32217
+ gepubliceerd_op?: string;
32218
+ id?: string;
32219
+ inhoud_md: string;
32220
+ is_actueel?: boolean;
32221
+ sleutel: string;
32222
+ titel: string;
32223
+ toelichting?: string | null;
32224
+ updated_at?: string;
32225
+ versie?: number;
32226
+ };
32227
+ Update: {
32228
+ created_at?: string;
32229
+ eigenaar_module_id?: string;
32230
+ gepubliceerd_door?: string | null;
32231
+ gepubliceerd_op?: string;
32232
+ id?: string;
32233
+ inhoud_md?: string;
32234
+ is_actueel?: boolean;
32235
+ sleutel?: string;
32236
+ titel?: string;
32237
+ toelichting?: string | null;
32238
+ updated_at?: string;
32239
+ versie?: number;
32240
+ };
32241
+ Relationships: [];
32242
+ };
31330
32243
  itk_offerte_events: {
31331
32244
  Row: {
31332
32245
  created_at: string;
@@ -33955,6 +34868,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
33955
34868
  };
33956
34869
  Relationships: [];
33957
34870
  };
34871
+ maps_job_lease: {
34872
+ Row: {
34873
+ job: string;
34874
+ locked_until: string;
34875
+ updated_at: string;
34876
+ };
34877
+ Insert: {
34878
+ job: string;
34879
+ locked_until?: string;
34880
+ updated_at?: string;
34881
+ };
34882
+ Update: {
34883
+ job?: string;
34884
+ locked_until?: string;
34885
+ updated_at?: string;
34886
+ };
34887
+ Relationships: [];
34888
+ };
33958
34889
  maps_request_queue: {
33959
34890
  Row: {
33960
34891
  attempts: number;
@@ -34016,6 +34947,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
34016
34947
  last_error: string | null;
34017
34948
  last_error_at: string | null;
34018
34949
  last_success_at: string | null;
34950
+ provider: string;
34019
34951
  updated_at: string;
34020
34952
  };
34021
34953
  Insert: {
@@ -34027,6 +34959,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
34027
34959
  last_error?: string | null;
34028
34960
  last_error_at?: string | null;
34029
34961
  last_success_at?: string | null;
34962
+ provider?: string;
34030
34963
  updated_at?: string;
34031
34964
  };
34032
34965
  Update: {
@@ -34038,6 +34971,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
34038
34971
  last_error?: string | null;
34039
34972
  last_error_at?: string | null;
34040
34973
  last_success_at?: string | null;
34974
+ provider?: string;
34041
34975
  updated_at?: string;
34042
34976
  };
34043
34977
  Relationships: [];
@@ -36680,6 +37614,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36680
37614
  isOneToOne: false;
36681
37615
  referencedRelation: "planning_items";
36682
37616
  referencedColumns: ["id"];
37617
+ }, {
37618
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
37619
+ columns: ["planning_item_id"];
37620
+ isOneToOne: false;
37621
+ referencedRelation: "planning_overview";
37622
+ referencedColumns: ["id"];
36683
37623
  }];
36684
37624
  };
36685
37625
  planning_items: {
@@ -36775,6 +37715,39 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36775
37715
  };
36776
37716
  Relationships: [];
36777
37717
  };
37718
+ print_dedupe_events: {
37719
+ Row: {
37720
+ bestaande_job_id: string | null;
37721
+ created_at: string;
37722
+ detail: string | null;
37723
+ documentnaam: string | null;
37724
+ documenttype: string | null;
37725
+ id: string;
37726
+ idempotentie_sleutel: string;
37727
+ reden: string;
37728
+ };
37729
+ Insert: {
37730
+ bestaande_job_id?: string | null;
37731
+ created_at?: string;
37732
+ detail?: string | null;
37733
+ documentnaam?: string | null;
37734
+ documenttype?: string | null;
37735
+ id?: string;
37736
+ idempotentie_sleutel: string;
37737
+ reden: string;
37738
+ };
37739
+ Update: {
37740
+ bestaande_job_id?: string | null;
37741
+ created_at?: string;
37742
+ detail?: string | null;
37743
+ documentnaam?: string | null;
37744
+ documenttype?: string | null;
37745
+ id?: string;
37746
+ idempotentie_sleutel?: string;
37747
+ reden?: string;
37748
+ };
37749
+ Relationships: [];
37750
+ };
36778
37751
  print_job_logs: {
36779
37752
  Row: {
36780
37753
  created_at: string;
@@ -36816,6 +37789,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36816
37789
  foutmelding: string | null;
36817
37790
  gebruiker_id: string | null;
36818
37791
  gebruiker_naam: string;
37792
+ gebruikte_bron: string | null;
37793
+ gebruikte_layout_id: string | null;
36819
37794
  gestart_op: string | null;
36820
37795
  herkomst: string | null;
36821
37796
  id: string;
@@ -36823,6 +37798,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36823
37798
  is_herprint: boolean;
36824
37799
  kopieen: number;
36825
37800
  layout_id: string | null;
37801
+ lokaal_opgeslagen_op: string | null;
37802
+ lokale_pdf_fout: string | null;
37803
+ lokale_pdf_status: string | null;
36826
37804
  opgepakt_op: string | null;
36827
37805
  paginas: number;
36828
37806
  payload: import("../integrations/supabase/types").Json;
@@ -36831,6 +37809,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36831
37809
  pogingen: number;
36832
37810
  printer_id: string | null;
36833
37811
  render_html: string | null;
37812
+ resultaat_pdf_base64: string | null;
36834
37813
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36835
37814
  updated_at: string;
36836
37815
  volgende_poging: string | null;
@@ -36846,6 +37825,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36846
37825
  foutmelding?: string | null;
36847
37826
  gebruiker_id?: string | null;
36848
37827
  gebruiker_naam?: string;
37828
+ gebruikte_bron?: string | null;
37829
+ gebruikte_layout_id?: string | null;
36849
37830
  gestart_op?: string | null;
36850
37831
  herkomst?: string | null;
36851
37832
  id?: string;
@@ -36853,6 +37834,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36853
37834
  is_herprint?: boolean;
36854
37835
  kopieen?: number;
36855
37836
  layout_id?: string | null;
37837
+ lokaal_opgeslagen_op?: string | null;
37838
+ lokale_pdf_fout?: string | null;
37839
+ lokale_pdf_status?: string | null;
36856
37840
  opgepakt_op?: string | null;
36857
37841
  paginas?: number;
36858
37842
  payload?: import("../integrations/supabase/types").Json;
@@ -36861,6 +37845,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36861
37845
  pogingen?: number;
36862
37846
  printer_id?: string | null;
36863
37847
  render_html?: string | null;
37848
+ resultaat_pdf_base64?: string | null;
36864
37849
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36865
37850
  updated_at?: string;
36866
37851
  volgende_poging?: string | null;
@@ -36876,6 +37861,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36876
37861
  foutmelding?: string | null;
36877
37862
  gebruiker_id?: string | null;
36878
37863
  gebruiker_naam?: string;
37864
+ gebruikte_bron?: string | null;
37865
+ gebruikte_layout_id?: string | null;
36879
37866
  gestart_op?: string | null;
36880
37867
  herkomst?: string | null;
36881
37868
  id?: string;
@@ -36883,6 +37870,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36883
37870
  is_herprint?: boolean;
36884
37871
  kopieen?: number;
36885
37872
  layout_id?: string | null;
37873
+ lokaal_opgeslagen_op?: string | null;
37874
+ lokale_pdf_fout?: string | null;
37875
+ lokale_pdf_status?: string | null;
36886
37876
  opgepakt_op?: string | null;
36887
37877
  paginas?: number;
36888
37878
  payload?: import("../integrations/supabase/types").Json;
@@ -36891,6 +37881,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
36891
37881
  pogingen?: number;
36892
37882
  printer_id?: string | null;
36893
37883
  render_html?: string | null;
37884
+ resultaat_pdf_base64?: string | null;
36894
37885
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36895
37886
  updated_at?: string;
36896
37887
  volgende_poging?: string | null;
@@ -37009,6 +38000,39 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
37009
38000
  };
37010
38001
  Relationships: [];
37011
38002
  };
38003
+ print_preview_events: {
38004
+ Row: {
38005
+ code: string | null;
38006
+ created_at: string;
38007
+ detail: import("../integrations/supabase/types").Json;
38008
+ id: string;
38009
+ queue_item_id: string | null;
38010
+ reden: string | null;
38011
+ station_slug: string | null;
38012
+ uitkomst: string;
38013
+ };
38014
+ Insert: {
38015
+ code?: string | null;
38016
+ created_at?: string;
38017
+ detail?: import("../integrations/supabase/types").Json;
38018
+ id?: string;
38019
+ queue_item_id?: string | null;
38020
+ reden?: string | null;
38021
+ station_slug?: string | null;
38022
+ uitkomst?: string;
38023
+ };
38024
+ Update: {
38025
+ code?: string | null;
38026
+ created_at?: string;
38027
+ detail?: import("../integrations/supabase/types").Json;
38028
+ id?: string;
38029
+ queue_item_id?: string | null;
38030
+ reden?: string | null;
38031
+ station_slug?: string | null;
38032
+ uitkomst?: string;
38033
+ };
38034
+ Relationships: [];
38035
+ };
37012
38036
  print_queue_runners: {
37013
38037
  Row: {
37014
38038
  actief: boolean;
@@ -37248,6 +38272,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
37248
38272
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37249
38273
  online: boolean;
37250
38274
  papierformaat: string;
38275
+ pdf_map: string | null;
37251
38276
  poort: number | null;
37252
38277
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37253
38278
  systeemnaam: string;
@@ -37273,6 +38298,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
37273
38298
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37274
38299
  online?: boolean;
37275
38300
  papierformaat?: string;
38301
+ pdf_map?: string | null;
37276
38302
  poort?: number | null;
37277
38303
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37278
38304
  systeemnaam?: string;
@@ -37298,6 +38324,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
37298
38324
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37299
38325
  online?: boolean;
37300
38326
  papierformaat?: string;
38327
+ pdf_map?: string | null;
37301
38328
  poort?: number | null;
37302
38329
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37303
38330
  systeemnaam?: string;
@@ -38170,450 +39197,6 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38170
39197
  referencedColumns: ["id"];
38171
39198
  }];
38172
39199
  };
38173
- quote_activities: {
38174
- Row: {
38175
- created_at: string;
38176
- event_type: string;
38177
- id: string;
38178
- metadata: import("../integrations/supabase/types").Json;
38179
- quote_id: string;
38180
- user_id: string | null;
38181
- };
38182
- Insert: {
38183
- created_at?: string;
38184
- event_type: string;
38185
- id?: string;
38186
- metadata?: import("../integrations/supabase/types").Json;
38187
- quote_id: string;
38188
- user_id?: string | null;
38189
- };
38190
- Update: {
38191
- created_at?: string;
38192
- event_type?: string;
38193
- id?: string;
38194
- metadata?: import("../integrations/supabase/types").Json;
38195
- quote_id?: string;
38196
- user_id?: string | null;
38197
- };
38198
- Relationships: [{
38199
- foreignKeyName: "quote_activities_quote_id_fkey";
38200
- columns: ["quote_id"];
38201
- isOneToOne: false;
38202
- referencedRelation: "quotes";
38203
- referencedColumns: ["id"];
38204
- }];
38205
- };
38206
- quote_attachments: {
38207
- Row: {
38208
- created_at: string;
38209
- file_name: string;
38210
- file_size: number | null;
38211
- file_url: string;
38212
- id: string;
38213
- mime_type: string | null;
38214
- quote_id: string;
38215
- };
38216
- Insert: {
38217
- created_at?: string;
38218
- file_name: string;
38219
- file_size?: number | null;
38220
- file_url: string;
38221
- id?: string;
38222
- mime_type?: string | null;
38223
- quote_id: string;
38224
- };
38225
- Update: {
38226
- created_at?: string;
38227
- file_name?: string;
38228
- file_size?: number | null;
38229
- file_url?: string;
38230
- id?: string;
38231
- mime_type?: string | null;
38232
- quote_id?: string;
38233
- };
38234
- Relationships: [{
38235
- foreignKeyName: "quote_attachments_quote_id_fkey";
38236
- columns: ["quote_id"];
38237
- isOneToOne: false;
38238
- referencedRelation: "quotes";
38239
- referencedColumns: ["id"];
38240
- }];
38241
- };
38242
- quote_field_options: {
38243
- Row: {
38244
- created_at: string;
38245
- field_id: string;
38246
- id: string;
38247
- label: string;
38248
- sort_order: number;
38249
- value: string;
38250
- };
38251
- Insert: {
38252
- created_at?: string;
38253
- field_id: string;
38254
- id?: string;
38255
- label: string;
38256
- sort_order?: number;
38257
- value: string;
38258
- };
38259
- Update: {
38260
- created_at?: string;
38261
- field_id?: string;
38262
- id?: string;
38263
- label?: string;
38264
- sort_order?: number;
38265
- value?: string;
38266
- };
38267
- Relationships: [{
38268
- foreignKeyName: "quote_field_options_field_id_fkey";
38269
- columns: ["field_id"];
38270
- isOneToOne: false;
38271
- referencedRelation: "quote_field_settings";
38272
- referencedColumns: ["id"];
38273
- }];
38274
- };
38275
- quote_field_settings: {
38276
- Row: {
38277
- created_at: string;
38278
- default_value: string | null;
38279
- field_key: string;
38280
- field_type: string;
38281
- id: string;
38282
- is_system: boolean;
38283
- label: string;
38284
- required: boolean;
38285
- sort_order: number;
38286
- updated_at: string;
38287
- visible: boolean;
38288
- };
38289
- Insert: {
38290
- created_at?: string;
38291
- default_value?: string | null;
38292
- field_key: string;
38293
- field_type: string;
38294
- id?: string;
38295
- is_system?: boolean;
38296
- label: string;
38297
- required?: boolean;
38298
- sort_order?: number;
38299
- updated_at?: string;
38300
- visible?: boolean;
38301
- };
38302
- Update: {
38303
- created_at?: string;
38304
- default_value?: string | null;
38305
- field_key?: string;
38306
- field_type?: string;
38307
- id?: string;
38308
- is_system?: boolean;
38309
- label?: string;
38310
- required?: boolean;
38311
- sort_order?: number;
38312
- updated_at?: string;
38313
- visible?: boolean;
38314
- };
38315
- Relationships: [];
38316
- };
38317
- quote_items: {
38318
- Row: {
38319
- category: string | null;
38320
- created_at: string;
38321
- description: string;
38322
- id: string;
38323
- line_total: number;
38324
- module_id: string | null;
38325
- name: string | null;
38326
- quantity: number;
38327
- quote_id: string;
38328
- sort_order: number;
38329
- unit_price: number;
38330
- };
38331
- Insert: {
38332
- category?: string | null;
38333
- created_at?: string;
38334
- description?: string;
38335
- id?: string;
38336
- line_total?: number;
38337
- module_id?: string | null;
38338
- name?: string | null;
38339
- quantity?: number;
38340
- quote_id: string;
38341
- sort_order?: number;
38342
- unit_price?: number;
38343
- };
38344
- Update: {
38345
- category?: string | null;
38346
- created_at?: string;
38347
- description?: string;
38348
- id?: string;
38349
- line_total?: number;
38350
- module_id?: string | null;
38351
- name?: string | null;
38352
- quantity?: number;
38353
- quote_id?: string;
38354
- sort_order?: number;
38355
- unit_price?: number;
38356
- };
38357
- Relationships: [{
38358
- foreignKeyName: "quote_items_module_id_fkey";
38359
- columns: ["module_id"];
38360
- isOneToOne: false;
38361
- referencedRelation: "quote_modules";
38362
- referencedColumns: ["id"];
38363
- }, {
38364
- foreignKeyName: "quote_items_quote_id_fkey";
38365
- columns: ["quote_id"];
38366
- isOneToOne: false;
38367
- referencedRelation: "quotes";
38368
- referencedColumns: ["id"];
38369
- }];
38370
- };
38371
- quote_modules: {
38372
- Row: {
38373
- category: string | null;
38374
- created_at: string;
38375
- description: string | null;
38376
- id: string;
38377
- is_active: boolean;
38378
- name: string;
38379
- price: number;
38380
- sort_order: number;
38381
- updated_at: string;
38382
- };
38383
- Insert: {
38384
- category?: string | null;
38385
- created_at?: string;
38386
- description?: string | null;
38387
- id?: string;
38388
- is_active?: boolean;
38389
- name: string;
38390
- price?: number;
38391
- sort_order?: number;
38392
- updated_at?: string;
38393
- };
38394
- Update: {
38395
- category?: string | null;
38396
- created_at?: string;
38397
- description?: string | null;
38398
- id?: string;
38399
- is_active?: boolean;
38400
- name?: string;
38401
- price?: number;
38402
- sort_order?: number;
38403
- updated_at?: string;
38404
- };
38405
- Relationships: [];
38406
- };
38407
- quote_templates: {
38408
- Row: {
38409
- created_at: string;
38410
- description: string | null;
38411
- field_values: import("../integrations/supabase/types").Json;
38412
- id: string;
38413
- is_default: boolean;
38414
- items: import("../integrations/supabase/types").Json;
38415
- name: string;
38416
- updated_at: string;
38417
- vat_rate: number;
38418
- };
38419
- Insert: {
38420
- created_at?: string;
38421
- description?: string | null;
38422
- field_values?: import("../integrations/supabase/types").Json;
38423
- id?: string;
38424
- is_default?: boolean;
38425
- items?: import("../integrations/supabase/types").Json;
38426
- name: string;
38427
- updated_at?: string;
38428
- vat_rate?: number;
38429
- };
38430
- Update: {
38431
- created_at?: string;
38432
- description?: string | null;
38433
- field_values?: import("../integrations/supabase/types").Json;
38434
- id?: string;
38435
- is_default?: boolean;
38436
- items?: import("../integrations/supabase/types").Json;
38437
- name?: string;
38438
- updated_at?: string;
38439
- vat_rate?: number;
38440
- };
38441
- Relationships: [];
38442
- };
38443
- quote_terms: {
38444
- Row: {
38445
- content: string | null;
38446
- created_at: string;
38447
- file_url: string | null;
38448
- id: string;
38449
- is_active: boolean;
38450
- name: string;
38451
- published_at: string | null;
38452
- updated_at: string;
38453
- version: string;
38454
- };
38455
- Insert: {
38456
- content?: string | null;
38457
- created_at?: string;
38458
- file_url?: string | null;
38459
- id?: string;
38460
- is_active?: boolean;
38461
- name: string;
38462
- published_at?: string | null;
38463
- updated_at?: string;
38464
- version?: string;
38465
- };
38466
- Update: {
38467
- content?: string | null;
38468
- created_at?: string;
38469
- file_url?: string | null;
38470
- id?: string;
38471
- is_active?: boolean;
38472
- name?: string;
38473
- published_at?: string | null;
38474
- updated_at?: string;
38475
- version?: string;
38476
- };
38477
- Relationships: [];
38478
- };
38479
- quotes: {
38480
- Row: {
38481
- accepted_at: string | null;
38482
- archived_at: string | null;
38483
- contact_id: string | null;
38484
- created_at: string;
38485
- customer_id: string | null;
38486
- discount: number;
38487
- expires_at: string | null;
38488
- field_values: import("../integrations/supabase/types").Json;
38489
- id: string;
38490
- notes: string | null;
38491
- owner_id: string | null;
38492
- personal_message: string | null;
38493
- project_id: string | null;
38494
- prospect_id: string | null;
38495
- public_token: string;
38496
- quote_number: string | null;
38497
- recipient_email: string | null;
38498
- recipient_name: string | null;
38499
- rejected_at: string | null;
38500
- sent_at: string | null;
38501
- status: string;
38502
- subtotal: number;
38503
- template_id: string | null;
38504
- terms_id: string | null;
38505
- title: string;
38506
- total: number;
38507
- updated_at: string;
38508
- valid_until: string | null;
38509
- vat_amount: number;
38510
- vat_rate: number;
38511
- viewed_at: string | null;
38512
- };
38513
- Insert: {
38514
- accepted_at?: string | null;
38515
- archived_at?: string | null;
38516
- contact_id?: string | null;
38517
- created_at?: string;
38518
- customer_id?: string | null;
38519
- discount?: number;
38520
- expires_at?: string | null;
38521
- field_values?: import("../integrations/supabase/types").Json;
38522
- id?: string;
38523
- notes?: string | null;
38524
- owner_id?: string | null;
38525
- personal_message?: string | null;
38526
- project_id?: string | null;
38527
- prospect_id?: string | null;
38528
- public_token?: string;
38529
- quote_number?: string | null;
38530
- recipient_email?: string | null;
38531
- recipient_name?: string | null;
38532
- rejected_at?: string | null;
38533
- sent_at?: string | null;
38534
- status?: string;
38535
- subtotal?: number;
38536
- template_id?: string | null;
38537
- terms_id?: string | null;
38538
- title?: string;
38539
- total?: number;
38540
- updated_at?: string;
38541
- valid_until?: string | null;
38542
- vat_amount?: number;
38543
- vat_rate?: number;
38544
- viewed_at?: string | null;
38545
- };
38546
- Update: {
38547
- accepted_at?: string | null;
38548
- archived_at?: string | null;
38549
- contact_id?: string | null;
38550
- created_at?: string;
38551
- customer_id?: string | null;
38552
- discount?: number;
38553
- expires_at?: string | null;
38554
- field_values?: import("../integrations/supabase/types").Json;
38555
- id?: string;
38556
- notes?: string | null;
38557
- owner_id?: string | null;
38558
- personal_message?: string | null;
38559
- project_id?: string | null;
38560
- prospect_id?: string | null;
38561
- public_token?: string;
38562
- quote_number?: string | null;
38563
- recipient_email?: string | null;
38564
- recipient_name?: string | null;
38565
- rejected_at?: string | null;
38566
- sent_at?: string | null;
38567
- status?: string;
38568
- subtotal?: number;
38569
- template_id?: string | null;
38570
- terms_id?: string | null;
38571
- title?: string;
38572
- total?: number;
38573
- updated_at?: string;
38574
- valid_until?: string | null;
38575
- vat_amount?: number;
38576
- vat_rate?: number;
38577
- viewed_at?: string | null;
38578
- };
38579
- Relationships: [{
38580
- foreignKeyName: "quotes_contact_id_fkey";
38581
- columns: ["contact_id"];
38582
- isOneToOne: false;
38583
- referencedRelation: "customer_contacts";
38584
- referencedColumns: ["id"];
38585
- }, {
38586
- foreignKeyName: "quotes_customer_id_fkey";
38587
- columns: ["customer_id"];
38588
- isOneToOne: false;
38589
- referencedRelation: "customers";
38590
- referencedColumns: ["id"];
38591
- }, {
38592
- foreignKeyName: "quotes_project_id_fkey";
38593
- columns: ["project_id"];
38594
- isOneToOne: false;
38595
- referencedRelation: "projects";
38596
- referencedColumns: ["id"];
38597
- }, {
38598
- foreignKeyName: "quotes_prospect_id_fkey";
38599
- columns: ["prospect_id"];
38600
- isOneToOne: false;
38601
- referencedRelation: "prospects";
38602
- referencedColumns: ["id"];
38603
- }, {
38604
- foreignKeyName: "quotes_template_id_fkey";
38605
- columns: ["template_id"];
38606
- isOneToOne: false;
38607
- referencedRelation: "quote_templates";
38608
- referencedColumns: ["id"];
38609
- }, {
38610
- foreignKeyName: "quotes_terms_id_fkey";
38611
- columns: ["terms_id"];
38612
- isOneToOne: false;
38613
- referencedRelation: "quote_terms";
38614
- referencedColumns: ["id"];
38615
- }];
38616
- };
38617
39200
  reception_notifications: {
38618
39201
  Row: {
38619
39202
  booking_id: string | null;
@@ -39735,7 +40318,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39735
40318
  foreignKeyName: "time_logs_work_order_id_fkey";
39736
40319
  columns: ["work_order_id"];
39737
40320
  isOneToOne: false;
39738
- referencedRelation: "work_orders";
40321
+ referencedRelation: "werkbonnen";
39739
40322
  referencedColumns: ["id"];
39740
40323
  }];
39741
40324
  };
@@ -39867,6 +40450,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39867
40450
  };
39868
40451
  trade_item_stock: {
39869
40452
  Row: {
40453
+ change_source: string;
39870
40454
  connection_id: string;
39871
40455
  created_at: string;
39872
40456
  id: string;
@@ -39880,6 +40464,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39880
40464
  user_id: string;
39881
40465
  };
39882
40466
  Insert: {
40467
+ change_source?: string;
39883
40468
  connection_id: string;
39884
40469
  created_at?: string;
39885
40470
  id?: string;
@@ -39893,6 +40478,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39893
40478
  user_id: string;
39894
40479
  };
39895
40480
  Update: {
40481
+ change_source?: string;
39896
40482
  connection_id?: string;
39897
40483
  created_at?: string;
39898
40484
  id?: string;
@@ -41062,156 +41648,6 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
41062
41648
  };
41063
41649
  Relationships: [];
41064
41650
  };
41065
- uren_offerte_regels: {
41066
- Row: {
41067
- created_at: string;
41068
- description: string;
41069
- duration_minutes: number;
41070
- id: string;
41071
- offerte_id: string;
41072
- package_id: string | null;
41073
- quantity: number;
41074
- sort_order: number;
41075
- total_cents: number;
41076
- unit_price_cents: number;
41077
- };
41078
- Insert: {
41079
- created_at?: string;
41080
- description: string;
41081
- duration_minutes?: number;
41082
- id?: string;
41083
- offerte_id: string;
41084
- package_id?: string | null;
41085
- quantity?: number;
41086
- sort_order?: number;
41087
- total_cents?: number;
41088
- unit_price_cents?: number;
41089
- };
41090
- Update: {
41091
- created_at?: string;
41092
- description?: string;
41093
- duration_minutes?: number;
41094
- id?: string;
41095
- offerte_id?: string;
41096
- package_id?: string | null;
41097
- quantity?: number;
41098
- sort_order?: number;
41099
- total_cents?: number;
41100
- unit_price_cents?: number;
41101
- };
41102
- Relationships: [{
41103
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
41104
- columns: ["offerte_id"];
41105
- isOneToOne: false;
41106
- referencedRelation: "uren_offertes";
41107
- referencedColumns: ["id"];
41108
- }, {
41109
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
41110
- columns: ["package_id"];
41111
- isOneToOne: false;
41112
- referencedRelation: "werkbon_packages";
41113
- referencedColumns: ["id"];
41114
- }];
41115
- };
41116
- uren_offerte_velden: {
41117
- Row: {
41118
- created_at: string;
41119
- field_type: string;
41120
- id: string;
41121
- key: string;
41122
- label: string;
41123
- options: string[];
41124
- required: boolean;
41125
- sort_order: number;
41126
- updated_at: string;
41127
- };
41128
- Insert: {
41129
- created_at?: string;
41130
- field_type?: string;
41131
- id?: string;
41132
- key: string;
41133
- label: string;
41134
- options?: string[];
41135
- required?: boolean;
41136
- sort_order?: number;
41137
- updated_at?: string;
41138
- };
41139
- Update: {
41140
- created_at?: string;
41141
- field_type?: string;
41142
- id?: string;
41143
- key?: string;
41144
- label?: string;
41145
- options?: string[];
41146
- required?: boolean;
41147
- sort_order?: number;
41148
- updated_at?: string;
41149
- };
41150
- Relationships: [];
41151
- };
41152
- uren_offertes: {
41153
- Row: {
41154
- created_at: string;
41155
- created_by: string | null;
41156
- customer_id: string | null;
41157
- customer_name: string | null;
41158
- dynamic_fields: import("../integrations/supabase/types").Json;
41159
- estimated_minutes: number;
41160
- id: string;
41161
- note: string | null;
41162
- quote_number: string | null;
41163
- status: string;
41164
- title: string;
41165
- total_excl_cents: number;
41166
- total_incl_cents: number;
41167
- updated_at: string;
41168
- valid_until: string | null;
41169
- vat_percentage: number;
41170
- };
41171
- Insert: {
41172
- created_at?: string;
41173
- created_by?: string | null;
41174
- customer_id?: string | null;
41175
- customer_name?: string | null;
41176
- dynamic_fields?: import("../integrations/supabase/types").Json;
41177
- estimated_minutes?: number;
41178
- id?: string;
41179
- note?: string | null;
41180
- quote_number?: string | null;
41181
- status?: string;
41182
- title?: string;
41183
- total_excl_cents?: number;
41184
- total_incl_cents?: number;
41185
- updated_at?: string;
41186
- valid_until?: string | null;
41187
- vat_percentage?: number;
41188
- };
41189
- Update: {
41190
- created_at?: string;
41191
- created_by?: string | null;
41192
- customer_id?: string | null;
41193
- customer_name?: string | null;
41194
- dynamic_fields?: import("../integrations/supabase/types").Json;
41195
- estimated_minutes?: number;
41196
- id?: string;
41197
- note?: string | null;
41198
- quote_number?: string | null;
41199
- status?: string;
41200
- title?: string;
41201
- total_excl_cents?: number;
41202
- total_incl_cents?: number;
41203
- updated_at?: string;
41204
- valid_until?: string | null;
41205
- vat_percentage?: number;
41206
- };
41207
- Relationships: [{
41208
- foreignKeyName: "uren_offertes_customer_id_fkey";
41209
- columns: ["customer_id"];
41210
- isOneToOne: false;
41211
- referencedRelation: "itk_customers";
41212
- referencedColumns: ["id"];
41213
- }];
41214
- };
41215
41651
  uren_settings: {
41216
41652
  Row: {
41217
41653
  break_minutes: number;
@@ -42898,6 +43334,37 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
42898
43334
  };
42899
43335
  Relationships: [];
42900
43336
  };
43337
+ planning_overview: {
43338
+ Row: {
43339
+ assigned_monteur_id: string | null;
43340
+ assistants: import("../integrations/supabase/types").Json | null;
43341
+ budget_mandate_cents: number | null;
43342
+ created_at: string | null;
43343
+ created_by: string | null;
43344
+ customer_id: string | null;
43345
+ customer_name: string | null;
43346
+ duration_minutes: number | null;
43347
+ end_at: string | null;
43348
+ id: string | null;
43349
+ needs_detail_review: boolean | null;
43350
+ notes: string | null;
43351
+ project_number: string | null;
43352
+ review_reasons: string[] | null;
43353
+ start_at: string | null;
43354
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
43355
+ updated_at: string | null;
43356
+ viewer_role: string | null;
43357
+ werkbon_id: string | null;
43358
+ work_address: string | null;
43359
+ };
43360
+ Relationships: [{
43361
+ foreignKeyName: "planning_items_werkbon_id_fkey";
43362
+ columns: ["werkbon_id"];
43363
+ isOneToOne: false;
43364
+ referencedRelation: "werkbonnen";
43365
+ referencedColumns: ["id"];
43366
+ }];
43367
+ };
42901
43368
  product_group_stock_view: {
42902
43369
  Row: {
42903
43370
  item_count: number | null;
@@ -43493,6 +43960,18 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
43493
43960
  Args: never;
43494
43961
  Returns: number;
43495
43962
  };
43963
+ calculate_floriday_desired_stock: {
43964
+ Args: {
43965
+ p_connection_id: string;
43966
+ p_product_id: string;
43967
+ };
43968
+ Returns: {
43969
+ desired_availability: boolean;
43970
+ desired_quantity: number;
43971
+ erp_available: number;
43972
+ stock_mode: string;
43973
+ }[];
43974
+ };
43496
43975
  calculate_layer_stock: {
43497
43976
  Args: {
43498
43977
  p_product_id: string;
@@ -43545,6 +44024,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
43545
44024
  foutmelding: string | null;
43546
44025
  gebruiker_id: string | null;
43547
44026
  gebruiker_naam: string;
44027
+ gebruikte_bron: string | null;
44028
+ gebruikte_layout_id: string | null;
43548
44029
  gestart_op: string | null;
43549
44030
  herkomst: string | null;
43550
44031
  id: string;
@@ -43552,6 +44033,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
43552
44033
  is_herprint: boolean;
43553
44034
  kopieen: number;
43554
44035
  layout_id: string | null;
44036
+ lokaal_opgeslagen_op: string | null;
44037
+ lokale_pdf_fout: string | null;
44038
+ lokale_pdf_status: string | null;
43555
44039
  opgepakt_op: string | null;
43556
44040
  paginas: number;
43557
44041
  payload: import("../integrations/supabase/types").Json;
@@ -43560,6 +44044,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
43560
44044
  pogingen: number;
43561
44045
  printer_id: string | null;
43562
44046
  render_html: string | null;
44047
+ resultaat_pdf_base64: string | null;
43563
44048
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43564
44049
  updated_at: string;
43565
44050
  volgende_poging: string | null;
@@ -43581,6 +44066,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
43581
44066
  attempts: number;
43582
44067
  connection_id: string;
43583
44068
  created_at: string;
44069
+ dead_lettered_at: string | null;
43584
44070
  desired_available: boolean | null;
43585
44071
  gateway_attempt_id: string | null;
43586
44072
  id: string;
@@ -43589,9 +44075,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
43589
44075
  locked_by: string | null;
43590
44076
  next_attempt_at: string;
43591
44077
  number_of_pieces: number;
44078
+ product_id: string | null;
43592
44079
  sent_at: string | null;
43593
44080
  status: string;
44081
+ stock_mode: string | null;
43594
44082
  superseded_by: string | null;
44083
+ target_week: number | null;
44084
+ target_year: number | null;
43595
44085
  trade_item_id: string;
43596
44086
  updated_at: string;
43597
44087
  user_id: string;
@@ -43651,6 +44141,53 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
43651
44141
  isSetofReturn: true;
43652
44142
  };
43653
44143
  };
44144
+ claim_pdf_print_jobs: {
44145
+ Args: {
44146
+ _max?: number;
44147
+ };
44148
+ Returns: {
44149
+ agent_id: string | null;
44150
+ bron_job_id: string | null;
44151
+ created_at: string;
44152
+ documentnaam: string;
44153
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44154
+ extern_job_id: string | null;
44155
+ foutmelding: string | null;
44156
+ gebruiker_id: string | null;
44157
+ gebruiker_naam: string;
44158
+ gebruikte_bron: string | null;
44159
+ gebruikte_layout_id: string | null;
44160
+ gestart_op: string | null;
44161
+ herkomst: string | null;
44162
+ id: string;
44163
+ idempotentie_sleutel: string | null;
44164
+ is_herprint: boolean;
44165
+ kopieen: number;
44166
+ layout_id: string | null;
44167
+ lokaal_opgeslagen_op: string | null;
44168
+ lokale_pdf_fout: string | null;
44169
+ lokale_pdf_status: string | null;
44170
+ opgepakt_op: string | null;
44171
+ paginas: number;
44172
+ payload: import("../integrations/supabase/types").Json;
44173
+ pdf_base64: string | null;
44174
+ pdf_url: string | null;
44175
+ pogingen: number;
44176
+ printer_id: string | null;
44177
+ render_html: string | null;
44178
+ resultaat_pdf_base64: string | null;
44179
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44180
+ updated_at: string;
44181
+ volgende_poging: string | null;
44182
+ voltooid_op: string | null;
44183
+ }[];
44184
+ SetofOptions: {
44185
+ from: "*";
44186
+ to: "print_jobs";
44187
+ isOneToOne: false;
44188
+ isSetofReturn: true;
44189
+ };
44190
+ };
43654
44191
  claim_print_jobs: {
43655
44192
  Args: {
43656
44193
  _agent_id: string;
@@ -43666,6 +44203,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
43666
44203
  foutmelding: string | null;
43667
44204
  gebruiker_id: string | null;
43668
44205
  gebruiker_naam: string;
44206
+ gebruikte_bron: string | null;
44207
+ gebruikte_layout_id: string | null;
43669
44208
  gestart_op: string | null;
43670
44209
  herkomst: string | null;
43671
44210
  id: string;
@@ -43673,6 +44212,9 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
43673
44212
  is_herprint: boolean;
43674
44213
  kopieen: number;
43675
44214
  layout_id: string | null;
44215
+ lokaal_opgeslagen_op: string | null;
44216
+ lokale_pdf_fout: string | null;
44217
+ lokale_pdf_status: string | null;
43676
44218
  opgepakt_op: string | null;
43677
44219
  paginas: number;
43678
44220
  payload: import("../integrations/supabase/types").Json;
@@ -43681,6 +44223,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
43681
44223
  pogingen: number;
43682
44224
  printer_id: string | null;
43683
44225
  render_html: string | null;
44226
+ resultaat_pdf_base64: string | null;
43684
44227
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43685
44228
  updated_at: string;
43686
44229
  volgende_poging: string | null;
@@ -43821,6 +44364,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
43821
44364
  order_id: string;
43822
44365
  order_source: string;
43823
44366
  pick_date: string;
44367
+ printed_at: string;
44368
+ printed_today: boolean;
43824
44369
  status: string;
43825
44370
  }[];
43826
44371
  };
@@ -44017,6 +44562,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44017
44562
  };
44018
44563
  Returns: string;
44019
44564
  };
44565
+ floriday_capture_stock_snapshot: {
44566
+ Args: never;
44567
+ Returns: number;
44568
+ };
44569
+ floriday_cleanup_stock_queue_v2: {
44570
+ Args: never;
44571
+ Returns: undefined;
44572
+ };
44573
+ floriday_compact_stock_snapshots: {
44574
+ Args: never;
44575
+ Returns: undefined;
44576
+ };
44577
+ floriday_default_owner: {
44578
+ Args: {
44579
+ p_connection_id: string;
44580
+ };
44581
+ Returns: string;
44582
+ };
44020
44583
  floriday_effective_price: {
44021
44584
  Args: {
44022
44585
  _buyer_id: string;
@@ -44034,6 +44597,34 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44034
44597
  source_id: string;
44035
44598
  }[];
44036
44599
  };
44600
+ floriday_fill_publish_horizon: {
44601
+ Args: never;
44602
+ Returns: number;
44603
+ };
44604
+ floriday_ingest_sales_orders: {
44605
+ Args: {
44606
+ p_limit?: number;
44607
+ };
44608
+ Returns: number;
44609
+ };
44610
+ floriday_publish_horizon_weeks: {
44611
+ Args: never;
44612
+ Returns: number;
44613
+ };
44614
+ floriday_recompute_inventory: {
44615
+ Args: {
44616
+ p_connection_id: string;
44617
+ p_force?: boolean;
44618
+ p_product_id: string;
44619
+ };
44620
+ Returns: undefined;
44621
+ };
44622
+ floriday_requeue_dead_letters: {
44623
+ Args: {
44624
+ p_connection_id?: string;
44625
+ };
44626
+ Returns: number;
44627
+ };
44037
44628
  format_cart_number: {
44038
44629
  Args: {
44039
44630
  p_pick_date: string;
@@ -44250,6 +44841,131 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44250
44841
  Args: never;
44251
44842
  Returns: string;
44252
44843
  };
44844
+ handover_get: {
44845
+ Args: {
44846
+ _module_id: string;
44847
+ };
44848
+ Returns: import("../integrations/supabase/types").Json;
44849
+ };
44850
+ handover_kern_naam: {
44851
+ Args: {
44852
+ _naam: string;
44853
+ };
44854
+ Returns: string;
44855
+ };
44856
+ handover_ketenmodel: {
44857
+ Args: never;
44858
+ Returns: import("../integrations/supabase/types").Json;
44859
+ };
44860
+ handover_kruisconflicten: {
44861
+ Args: never;
44862
+ Returns: import("../integrations/supabase/types").Json;
44863
+ };
44864
+ handover_list: {
44865
+ Args: never;
44866
+ Returns: import("../integrations/supabase/types").Json;
44867
+ };
44868
+ handover_mag_schrijven: {
44869
+ Args: {
44870
+ _module_id: string;
44871
+ };
44872
+ Returns: boolean;
44873
+ };
44874
+ handover_norm_naam: {
44875
+ Args: {
44876
+ _naam: string;
44877
+ };
44878
+ Returns: string;
44879
+ };
44880
+ handover_publish: {
44881
+ Args: {
44882
+ _bevindingen?: string;
44883
+ _bezit_tabellen?: string[];
44884
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
44885
+ _contractfuncties?: string[];
44886
+ _inhoud_md: string;
44887
+ _module_id: string;
44888
+ _module_titel: string;
44889
+ _ontbrekende_contracten?: string[];
44890
+ _samenvatting?: string;
44891
+ };
44892
+ Returns: number;
44893
+ };
44894
+ handover_publish_via_token: {
44895
+ Args: {
44896
+ _bevindingen?: string;
44897
+ _bezit_tabellen?: string[];
44898
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
44899
+ _contractfuncties?: string[];
44900
+ _inhoud_md: string;
44901
+ _module_id: string;
44902
+ _module_titel: string;
44903
+ _ontbrekende_contracten?: string[];
44904
+ _samenvatting?: string;
44905
+ _token_hash: string;
44906
+ };
44907
+ Returns: number;
44908
+ };
44909
+ handover_status: {
44910
+ Args: never;
44911
+ Returns: import("../integrations/supabase/types").Json;
44912
+ };
44913
+ handover_synonym_kern: {
44914
+ Args: {
44915
+ _naam: string;
44916
+ };
44917
+ Returns: string;
44918
+ };
44919
+ handover_token_intrekken: {
44920
+ Args: {
44921
+ _id: string;
44922
+ };
44923
+ Returns: boolean;
44924
+ };
44925
+ handover_token_lijst: {
44926
+ Args: never;
44927
+ Returns: import("../integrations/supabase/types").Json;
44928
+ };
44929
+ handover_token_maken: {
44930
+ Args: {
44931
+ _label?: string;
44932
+ _module_id: string;
44933
+ };
44934
+ Returns: string;
44935
+ };
44936
+ handover_update: {
44937
+ Args: {
44938
+ _bezit_tabellen?: string[];
44939
+ _contractfuncties?: string[];
44940
+ _herzieningstermijn_dagen?: number;
44941
+ _inhoud_md?: string;
44942
+ _module_id: string;
44943
+ _module_titel?: string;
44944
+ _samenvatting?: string;
44945
+ _versie: number;
44946
+ };
44947
+ Returns: boolean;
44948
+ } | {
44949
+ Args: {
44950
+ _bevindingen?: string;
44951
+ _bezit_tabellen?: string[];
44952
+ _contractfuncties?: string[];
44953
+ _herzieningstermijn_dagen?: number;
44954
+ _inhoud_md?: string;
44955
+ _module_id: string;
44956
+ _module_titel?: string;
44957
+ _ontbrekende_contracten?: string[];
44958
+ _samenvatting?: string;
44959
+ _versie: number;
44960
+ };
44961
+ Returns: boolean;
44962
+ };
44963
+ handover_versies: {
44964
+ Args: {
44965
+ _module_id: string;
44966
+ };
44967
+ Returns: import("../integrations/supabase/types").Json;
44968
+ };
44253
44969
  has_module_permission: {
44254
44970
  Args: {
44255
44971
  _min: string;
@@ -44269,6 +44985,25 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44269
44985
  Args: never;
44270
44986
  Returns: boolean;
44271
44987
  };
44988
+ instructie_get: {
44989
+ Args: {
44990
+ _sleutel: string;
44991
+ };
44992
+ Returns: import("../integrations/supabase/types").Json;
44993
+ };
44994
+ instructie_list: {
44995
+ Args: never;
44996
+ Returns: import("../integrations/supabase/types").Json;
44997
+ };
44998
+ instructie_publish: {
44999
+ Args: {
45000
+ _inhoud_md: string;
45001
+ _sleutel: string;
45002
+ _titel: string;
45003
+ _toelichting?: string;
45004
+ };
45005
+ Returns: number;
45006
+ };
44272
45007
  invoice_create_from_source: {
44273
45008
  Args: {
44274
45009
  _payload?: import("../integrations/supabase/types").Json;
@@ -44529,6 +45264,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44529
45264
  };
44530
45265
  Returns: number;
44531
45266
  };
45267
+ logistics_cancel_orphan_tasks: {
45268
+ Args: never;
45269
+ Returns: number;
45270
+ };
44532
45271
  logistics_capacity_day_check: {
44533
45272
  Args: {
44534
45273
  p_from?: string;
@@ -44549,6 +45288,25 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44549
45288
  };
44550
45289
  Returns: number;
44551
45290
  };
45291
+ logistics_cart_index: {
45292
+ Args: {
45293
+ p_from?: string;
45294
+ p_to?: string;
45295
+ };
45296
+ Returns: {
45297
+ cart_id: string;
45298
+ cart_index: number;
45299
+ cart_label: string;
45300
+ is_shared: boolean;
45301
+ order_number: string;
45302
+ order_source: string;
45303
+ order_uuid: string;
45304
+ pick_date: string;
45305
+ printed_at: string;
45306
+ shifted: boolean;
45307
+ task_status: string;
45308
+ }[];
45309
+ };
44552
45310
  logistics_check_order_allowed: {
44553
45311
  Args: {
44554
45312
  p_lines: import("../integrations/supabase/types").Json;
@@ -44697,6 +45455,17 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44697
45455
  isSetofReturn: false;
44698
45456
  };
44699
45457
  };
45458
+ logistics_consistency_check: {
45459
+ Args: never;
45460
+ Returns: {
45461
+ agenda_carts: number;
45462
+ control_carts: number;
45463
+ ok: boolean;
45464
+ orphan_tasks: number;
45465
+ pick_date: string;
45466
+ raw_carts: number;
45467
+ }[];
45468
+ };
44700
45469
  logistics_delay_customer_email: {
44701
45470
  Args: {
44702
45471
  p_customer: string;
@@ -44722,6 +45491,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44722
45491
  };
44723
45492
  Returns: string;
44724
45493
  };
45494
+ logistics_document_type_map: {
45495
+ Args: {
45496
+ _document_code: string;
45497
+ };
45498
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
45499
+ };
44725
45500
  logistics_emit_event: {
44726
45501
  Args: {
44727
45502
  p_event_type: string;
@@ -44780,6 +45555,16 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44780
45555
  isSetofReturn: false;
44781
45556
  };
44782
45557
  };
45558
+ logistics_floriday_cart_plan: {
45559
+ Args: {
45560
+ p_order_id: string;
45561
+ };
45562
+ Returns: {
45563
+ carrier_type: string;
45564
+ idx: number;
45565
+ packages: number;
45566
+ }[];
45567
+ };
44783
45568
  logistics_floriday_claim_pushes: {
44784
45569
  Args: {
44785
45570
  _lease_seconds?: number;
@@ -44884,6 +45669,25 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44884
45669
  };
44885
45670
  Returns: number;
44886
45671
  };
45672
+ logistics_order_overview: {
45673
+ Args: {
45674
+ p_from?: string;
45675
+ p_to?: string;
45676
+ };
45677
+ Returns: {
45678
+ cart_count: number;
45679
+ customer_name: string;
45680
+ delivery_date: string;
45681
+ order_number: string;
45682
+ order_source: string;
45683
+ order_uuid: string;
45684
+ pick_date: string;
45685
+ plant_count: number;
45686
+ printed_at: string;
45687
+ shifted: boolean;
45688
+ status: string;
45689
+ }[];
45690
+ };
44887
45691
  logistics_order_pick_day: {
44888
45692
  Args: {
44889
45693
  p_order_ref: string;
@@ -44896,6 +45700,22 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44896
45700
  };
44897
45701
  Returns: string;
44898
45702
  };
45703
+ logistics_pick_agenda: {
45704
+ Args: {
45705
+ p_from?: string;
45706
+ p_to?: string;
45707
+ };
45708
+ Returns: {
45709
+ cart_count: number;
45710
+ in_preparation: number;
45711
+ order_count: number;
45712
+ orders: import("../integrations/supabase/types").Json;
45713
+ pick_date: string;
45714
+ plant_count: number;
45715
+ ready: number;
45716
+ shifted_count: number;
45717
+ }[];
45718
+ };
44899
45719
  logistics_pick_email_purpose: {
44900
45720
  Args: never;
44901
45721
  Returns: string;
@@ -44950,6 +45770,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44950
45770
  };
44951
45771
  Returns: undefined;
44952
45772
  };
45773
+ logistics_plan_floriday_order: {
45774
+ Args: {
45775
+ p_buffer_id?: string;
45776
+ p_order_id: string;
45777
+ };
45778
+ Returns: number;
45779
+ };
44953
45780
  logistics_plan_impact_orders: {
44954
45781
  Args: {
44955
45782
  p_order_id: string;
@@ -45055,6 +45882,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
45055
45882
  };
45056
45883
  Returns: import("../integrations/supabase/types").Json;
45057
45884
  };
45885
+ logistics_resolve_pick_document: {
45886
+ Args: {
45887
+ _is_herprint: boolean;
45888
+ _queue_item_id: string;
45889
+ _session_id: string;
45890
+ _voorbeeld: boolean;
45891
+ };
45892
+ Returns: import("../integrations/supabase/types").Json;
45893
+ };
45058
45894
  logistics_resolve_settings: {
45059
45895
  Args: {
45060
45896
  p_config_id: string;
@@ -45495,6 +46331,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
45495
46331
  };
45496
46332
  pick_enqueue_print_job: {
45497
46333
  Args: {
46334
+ _is_herprint?: boolean;
45498
46335
  _printer_id?: string;
45499
46336
  _queue_item_id: string;
45500
46337
  _session_id?: string;
@@ -45508,6 +46345,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
45508
46345
  };
45509
46346
  Returns: import("../integrations/supabase/types").Json;
45510
46347
  };
46348
+ pick_preview_job: {
46349
+ Args: {
46350
+ _queue_item_id: string;
46351
+ _station_slug: string;
46352
+ };
46353
+ Returns: import("../integrations/supabase/types").Json;
46354
+ };
45511
46355
  pick_print_job_status: {
45512
46356
  Args: {
45513
46357
  _job_id: string;
@@ -45685,6 +46529,84 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
45685
46529
  };
45686
46530
  Returns: undefined;
45687
46531
  };
46532
+ planning_cancel_item: {
46533
+ Args: {
46534
+ _id: string;
46535
+ };
46536
+ Returns: undefined;
46537
+ };
46538
+ planning_list: {
46539
+ Args: {
46540
+ _from: string;
46541
+ _to: string;
46542
+ };
46543
+ Returns: {
46544
+ assigned_monteur_id: string | null;
46545
+ assistants: import("../integrations/supabase/types").Json | null;
46546
+ budget_mandate_cents: number | null;
46547
+ created_at: string | null;
46548
+ created_by: string | null;
46549
+ customer_id: string | null;
46550
+ customer_name: string | null;
46551
+ duration_minutes: number | null;
46552
+ end_at: string | null;
46553
+ id: string | null;
46554
+ needs_detail_review: boolean | null;
46555
+ notes: string | null;
46556
+ project_number: string | null;
46557
+ review_reasons: string[] | null;
46558
+ start_at: string | null;
46559
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
46560
+ updated_at: string | null;
46561
+ viewer_role: string | null;
46562
+ werkbon_id: string | null;
46563
+ work_address: string | null;
46564
+ }[];
46565
+ SetofOptions: {
46566
+ from: "*";
46567
+ to: "planning_overview";
46568
+ isOneToOne: false;
46569
+ isSetofReturn: true;
46570
+ };
46571
+ };
46572
+ planning_set_assistants: {
46573
+ Args: {
46574
+ _monteur_ids: string[];
46575
+ _planning_item_id: string;
46576
+ };
46577
+ Returns: undefined;
46578
+ };
46579
+ planning_upsert_item: {
46580
+ Args: {
46581
+ _assigned_monteur_id: string;
46582
+ _end_at: string;
46583
+ _notes?: string;
46584
+ _start_at: string;
46585
+ _werkbon_id: string;
46586
+ };
46587
+ Returns: {
46588
+ action: string;
46589
+ id: string;
46590
+ }[];
46591
+ };
46592
+ print_preview_toestaan: {
46593
+ Args: {
46594
+ _max?: number;
46595
+ _queue_item_id: string;
46596
+ _station_slug: string;
46597
+ _venster_sec?: number;
46598
+ };
46599
+ Returns: import("../integrations/supabase/types").Json;
46600
+ };
46601
+ print_preview_weiger: {
46602
+ Args: {
46603
+ _code: string;
46604
+ _queue_item_id: string;
46605
+ _reden: string;
46606
+ _station_slug: string;
46607
+ };
46608
+ Returns: undefined;
46609
+ };
45688
46610
  process_logistics_event: {
45689
46611
  Args: {
45690
46612
  p_event_id: string;
@@ -45802,6 +46724,14 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
45802
46724
  };
45803
46725
  Returns: undefined;
45804
46726
  };
46727
+ replace_order_carts: {
46728
+ Args: {
46729
+ p_buffer_id: string;
46730
+ p_carts: import("../integrations/supabase/types").Json;
46731
+ p_order_id: string;
46732
+ };
46733
+ Returns: import("../integrations/supabase/types").Json;
46734
+ };
45805
46735
  reset_floriday_sync_cursor: {
45806
46736
  Args: {
45807
46737
  p_connection_id: string;
@@ -45831,6 +46761,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
45831
46761
  };
45832
46762
  Returns: string;
45833
46763
  };
46764
+ resolve_print_job_printer_id: {
46765
+ Args: {
46766
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46767
+ };
46768
+ Returns: string;
46769
+ };
45834
46770
  resolve_product_id_for_item: {
45835
46771
  Args: {
45836
46772
  p_product_name: string;
@@ -46234,6 +47170,26 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
46234
47170
  };
46235
47171
  Returns: string[];
46236
47172
  };
47173
+ start_time_log_at: {
47174
+ Args: {
47175
+ p_clicked_at?: string;
47176
+ p_employee_id: string;
47177
+ p_start_lat?: number;
47178
+ p_start_lng?: number;
47179
+ p_type: string;
47180
+ p_work_order_id?: string;
47181
+ };
47182
+ Returns: import("../integrations/supabase/types").Json;
47183
+ };
47184
+ stop_time_log: {
47185
+ Args: {
47186
+ p_employee_id: string;
47187
+ p_end_lat?: number;
47188
+ p_end_lng?: number;
47189
+ p_end_time: string;
47190
+ };
47191
+ Returns: import("../integrations/supabase/types").Json;
47192
+ };
46237
47193
  switch_time_log: {
46238
47194
  Args: {
46239
47195
  p_employee_id: string;
@@ -46422,7 +47378,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
46422
47378
  };
46423
47379
  CompositeTypes: { [_ in never]: never; };
46424
47380
  }, {
46425
- PostgrestVersion: "14.17";
47381
+ PostgrestVersion: "14.5";
46426
47382
  }>;
46427
47383
  userId: string;
46428
47384
  claims: import("@supabase/auth-js").JwtPayload;