@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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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 getModuleHealth: import("@tanstack/start-client-core").Opti
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;
@@ -26072,6 +26550,84 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
26072
26550
  };
26073
26551
  Relationships: [];
26074
26552
  };
26553
+ delivery_notes: {
26554
+ Row: {
26555
+ byte_size: number | null;
26556
+ connection_id: string | null;
26557
+ content_type: string;
26558
+ created_at: string;
26559
+ error_message: string | null;
26560
+ fetched_at: string | null;
26561
+ fulfillment_order_id: string | null;
26562
+ http_status: number | null;
26563
+ id: string;
26564
+ label_code: string | null;
26565
+ letter: string | null;
26566
+ load_carrier_index: number | null;
26567
+ load_carrier_type: string | null;
26568
+ order_id: string | null;
26569
+ order_number: string | null;
26570
+ packages: number | null;
26571
+ source: string;
26572
+ status: string;
26573
+ storage_bucket: string;
26574
+ storage_path: string | null;
26575
+ updated_at: string;
26576
+ };
26577
+ Insert: {
26578
+ byte_size?: number | null;
26579
+ connection_id?: string | null;
26580
+ content_type?: string;
26581
+ created_at?: string;
26582
+ error_message?: string | null;
26583
+ fetched_at?: string | null;
26584
+ fulfillment_order_id?: string | null;
26585
+ http_status?: number | null;
26586
+ id?: string;
26587
+ label_code?: string | null;
26588
+ letter?: string | null;
26589
+ load_carrier_index?: number | null;
26590
+ load_carrier_type?: string | null;
26591
+ order_id?: string | null;
26592
+ order_number?: string | null;
26593
+ packages?: number | null;
26594
+ source?: string;
26595
+ status?: string;
26596
+ storage_bucket?: string;
26597
+ storage_path?: string | null;
26598
+ updated_at?: string;
26599
+ };
26600
+ Update: {
26601
+ byte_size?: number | null;
26602
+ connection_id?: string | null;
26603
+ content_type?: string;
26604
+ created_at?: string;
26605
+ error_message?: string | null;
26606
+ fetched_at?: string | null;
26607
+ fulfillment_order_id?: string | null;
26608
+ http_status?: number | null;
26609
+ id?: string;
26610
+ label_code?: string | null;
26611
+ letter?: string | null;
26612
+ load_carrier_index?: number | null;
26613
+ load_carrier_type?: string | null;
26614
+ order_id?: string | null;
26615
+ order_number?: string | null;
26616
+ packages?: number | null;
26617
+ source?: string;
26618
+ status?: string;
26619
+ storage_bucket?: string;
26620
+ storage_path?: string | null;
26621
+ updated_at?: string;
26622
+ };
26623
+ Relationships: [{
26624
+ foreignKeyName: "delivery_notes_order_id_fkey";
26625
+ columns: ["order_id"];
26626
+ isOneToOne: false;
26627
+ referencedRelation: "orders";
26628
+ referencedColumns: ["id"];
26629
+ }];
26630
+ };
26075
26631
  document_bronregels: {
26076
26632
  Row: {
26077
26633
  bron: string;
@@ -29125,10 +29681,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
29125
29681
  };
29126
29682
  floriday_connections: {
29127
29683
  Row: {
29128
- access_token: string | null;
29129
29684
  api_key: string;
29130
- client_id: string;
29131
- client_secret: string;
29132
29685
  created_at: string;
29133
29686
  customers_endpoint: string | null;
29134
29687
  environment: string;
@@ -29143,10 +29696,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
29143
29696
  updated_at: string;
29144
29697
  };
29145
29698
  Insert: {
29146
- access_token?: string | null;
29147
29699
  api_key: string;
29148
- client_id: string;
29149
- client_secret: string;
29150
29700
  created_at?: string;
29151
29701
  customers_endpoint?: string | null;
29152
29702
  environment: string;
@@ -29161,10 +29711,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
29161
29711
  updated_at?: string;
29162
29712
  };
29163
29713
  Update: {
29164
- access_token?: string | null;
29165
29714
  api_key?: string;
29166
- client_id?: string;
29167
- client_secret?: string;
29168
29715
  created_at?: string;
29169
29716
  customers_endpoint?: string | null;
29170
29717
  environment?: string;
@@ -29248,6 +29795,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
29248
29795
  attempts: number;
29249
29796
  connection_id: string;
29250
29797
  created_at: string;
29798
+ dead_lettered_at: string | null;
29251
29799
  desired_available: boolean | null;
29252
29800
  gateway_attempt_id: string | null;
29253
29801
  id: string;
@@ -29256,9 +29804,13 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
29256
29804
  locked_by: string | null;
29257
29805
  next_attempt_at: string;
29258
29806
  number_of_pieces: number;
29807
+ product_id: string | null;
29259
29808
  sent_at: string | null;
29260
29809
  status: string;
29810
+ stock_mode: string | null;
29261
29811
  superseded_by: string | null;
29812
+ target_week: number | null;
29813
+ target_year: number | null;
29262
29814
  trade_item_id: string;
29263
29815
  updated_at: string;
29264
29816
  user_id: string;
@@ -29267,6 +29819,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
29267
29819
  attempts?: number;
29268
29820
  connection_id: string;
29269
29821
  created_at?: string;
29822
+ dead_lettered_at?: string | null;
29270
29823
  desired_available?: boolean | null;
29271
29824
  gateway_attempt_id?: string | null;
29272
29825
  id?: string;
@@ -29275,9 +29828,13 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
29275
29828
  locked_by?: string | null;
29276
29829
  next_attempt_at?: string;
29277
29830
  number_of_pieces?: number;
29831
+ product_id?: string | null;
29278
29832
  sent_at?: string | null;
29279
29833
  status?: string;
29834
+ stock_mode?: string | null;
29280
29835
  superseded_by?: string | null;
29836
+ target_week?: number | null;
29837
+ target_year?: number | null;
29281
29838
  trade_item_id: string;
29282
29839
  updated_at?: string;
29283
29840
  user_id: string;
@@ -29286,6 +29843,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
29286
29843
  attempts?: number;
29287
29844
  connection_id?: string;
29288
29845
  created_at?: string;
29846
+ dead_lettered_at?: string | null;
29289
29847
  desired_available?: boolean | null;
29290
29848
  gateway_attempt_id?: string | null;
29291
29849
  id?: string;
@@ -29294,9 +29852,13 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
29294
29852
  locked_by?: string | null;
29295
29853
  next_attempt_at?: string;
29296
29854
  number_of_pieces?: number;
29855
+ product_id?: string | null;
29297
29856
  sent_at?: string | null;
29298
29857
  status?: string;
29858
+ stock_mode?: string | null;
29299
29859
  superseded_by?: string | null;
29860
+ target_week?: number | null;
29861
+ target_year?: number | null;
29300
29862
  trade_item_id?: string;
29301
29863
  updated_at?: string;
29302
29864
  user_id?: string;
@@ -29705,6 +30267,87 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
29705
30267
  referencedColumns: ["id"];
29706
30268
  }];
29707
30269
  };
30270
+ floriday_inventory_settings: {
30271
+ Row: {
30272
+ buffer_quantity: number;
30273
+ connection_id: string;
30274
+ created_at: string;
30275
+ desired_availability: boolean;
30276
+ desired_quantity: number;
30277
+ fixed_quantity: number | null;
30278
+ floriday_trade_item_id: string | null;
30279
+ id: string;
30280
+ last_confirmed_at: string | null;
30281
+ last_enqueued_at: string | null;
30282
+ last_published_at: string | null;
30283
+ last_sync_error: string | null;
30284
+ manual_quantity: number | null;
30285
+ maximum_quantity: number | null;
30286
+ product_id: string;
30287
+ quantity_control: string;
30288
+ remote_available: boolean | null;
30289
+ remote_checked_at: string | null;
30290
+ remote_quantity: number | null;
30291
+ stock_mode: string;
30292
+ sync_status: string;
30293
+ updated_at: string;
30294
+ updated_by: string | null;
30295
+ user_id: string;
30296
+ };
30297
+ Insert: {
30298
+ buffer_quantity?: number;
30299
+ connection_id: string;
30300
+ created_at?: string;
30301
+ desired_availability?: boolean;
30302
+ desired_quantity?: number;
30303
+ fixed_quantity?: number | null;
30304
+ floriday_trade_item_id?: string | null;
30305
+ id?: string;
30306
+ last_confirmed_at?: string | null;
30307
+ last_enqueued_at?: string | null;
30308
+ last_published_at?: string | null;
30309
+ last_sync_error?: string | null;
30310
+ manual_quantity?: number | null;
30311
+ maximum_quantity?: number | null;
30312
+ product_id: string;
30313
+ quantity_control?: string;
30314
+ remote_available?: boolean | null;
30315
+ remote_checked_at?: string | null;
30316
+ remote_quantity?: number | null;
30317
+ stock_mode?: string;
30318
+ sync_status?: string;
30319
+ updated_at?: string;
30320
+ updated_by?: string | null;
30321
+ user_id: string;
30322
+ };
30323
+ Update: {
30324
+ buffer_quantity?: number;
30325
+ connection_id?: string;
30326
+ created_at?: string;
30327
+ desired_availability?: boolean;
30328
+ desired_quantity?: number;
30329
+ fixed_quantity?: number | null;
30330
+ floriday_trade_item_id?: string | null;
30331
+ id?: string;
30332
+ last_confirmed_at?: string | null;
30333
+ last_enqueued_at?: string | null;
30334
+ last_published_at?: string | null;
30335
+ last_sync_error?: string | null;
30336
+ manual_quantity?: number | null;
30337
+ maximum_quantity?: number | null;
30338
+ product_id?: string;
30339
+ quantity_control?: string;
30340
+ remote_available?: boolean | null;
30341
+ remote_checked_at?: string | null;
30342
+ remote_quantity?: number | null;
30343
+ stock_mode?: string;
30344
+ sync_status?: string;
30345
+ updated_at?: string;
30346
+ updated_by?: string | null;
30347
+ user_id?: string;
30348
+ };
30349
+ Relationships: [];
30350
+ };
29708
30351
  floriday_invoices_cache: {
29709
30352
  Row: {
29710
30353
  buyer_organization_id: string | null;
@@ -29993,6 +30636,39 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
29993
30636
  };
29994
30637
  Relationships: [];
29995
30638
  };
30639
+ floriday_sales_order_ingest: {
30640
+ Row: {
30641
+ connection_id: string;
30642
+ created_at: string;
30643
+ id: string;
30644
+ impact: import("../integrations/supabase/types").Json;
30645
+ order_status: string | null;
30646
+ order_version: number;
30647
+ processed_at: string;
30648
+ sales_order_id: string;
30649
+ };
30650
+ Insert: {
30651
+ connection_id: string;
30652
+ created_at?: string;
30653
+ id?: string;
30654
+ impact?: import("../integrations/supabase/types").Json;
30655
+ order_status?: string | null;
30656
+ order_version?: number;
30657
+ processed_at?: string;
30658
+ sales_order_id: string;
30659
+ };
30660
+ Update: {
30661
+ connection_id?: string;
30662
+ created_at?: string;
30663
+ id?: string;
30664
+ impact?: import("../integrations/supabase/types").Json;
30665
+ order_status?: string | null;
30666
+ order_version?: number;
30667
+ processed_at?: string;
30668
+ sales_order_id?: string;
30669
+ };
30670
+ Relationships: [];
30671
+ };
29996
30672
  floriday_sales_strategies_cache: {
29997
30673
  Row: {
29998
30674
  connection_id: string;
@@ -30092,6 +30768,39 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
30092
30768
  };
30093
30769
  Relationships: [];
30094
30770
  };
30771
+ floriday_sync_cursors: {
30772
+ Row: {
30773
+ connection_id: string;
30774
+ created_at: string;
30775
+ id: string;
30776
+ last_error: string | null;
30777
+ last_sync_at: string | null;
30778
+ resource_type: string;
30779
+ sequence_number: number;
30780
+ updated_at: string;
30781
+ };
30782
+ Insert: {
30783
+ connection_id: string;
30784
+ created_at?: string;
30785
+ id?: string;
30786
+ last_error?: string | null;
30787
+ last_sync_at?: string | null;
30788
+ resource_type: string;
30789
+ sequence_number?: number;
30790
+ updated_at?: string;
30791
+ };
30792
+ Update: {
30793
+ connection_id?: string;
30794
+ created_at?: string;
30795
+ id?: string;
30796
+ last_error?: string | null;
30797
+ last_sync_at?: string | null;
30798
+ resource_type?: string;
30799
+ sequence_number?: number;
30800
+ updated_at?: string;
30801
+ };
30802
+ Relationships: [];
30803
+ };
30095
30804
  floriday_sync_state: {
30096
30805
  Row: {
30097
30806
  connection_id: string;
@@ -30782,6 +31491,42 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
30782
31491
  };
30783
31492
  Relationships: [];
30784
31493
  };
31494
+ inventory_stock_snapshots: {
31495
+ Row: {
31496
+ connection_id: string;
31497
+ created_at: string;
31498
+ erp_available_quantity: number;
31499
+ floriday_desired_quantity: number;
31500
+ floriday_remote_quantity: number | null;
31501
+ granularity: string;
31502
+ id: string;
31503
+ snapshot_at: string;
31504
+ user_id: string | null;
31505
+ };
31506
+ Insert: {
31507
+ connection_id: string;
31508
+ created_at?: string;
31509
+ erp_available_quantity?: number;
31510
+ floriday_desired_quantity?: number;
31511
+ floriday_remote_quantity?: number | null;
31512
+ granularity?: string;
31513
+ id?: string;
31514
+ snapshot_at?: string;
31515
+ user_id?: string | null;
31516
+ };
31517
+ Update: {
31518
+ connection_id?: string;
31519
+ created_at?: string;
31520
+ erp_available_quantity?: number;
31521
+ floriday_desired_quantity?: number;
31522
+ floriday_remote_quantity?: number | null;
31523
+ granularity?: string;
31524
+ id?: string;
31525
+ snapshot_at?: string;
31526
+ user_id?: string | null;
31527
+ };
31528
+ Relationships: [];
31529
+ };
30785
31530
  invoice_items: {
30786
31531
  Row: {
30787
31532
  created_at: string;
@@ -31290,13 +32035,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
31290
32035
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
31291
32036
  updated_at?: string;
31292
32037
  };
31293
- Relationships: [{
31294
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
31295
- columns: ["legacy_customer_id"];
31296
- isOneToOne: false;
31297
- referencedRelation: "customers";
31298
- referencedColumns: ["id"];
31299
- }];
32038
+ Relationships: [];
31300
32039
  };
31301
32040
  itk_dynamic_fields: {
31302
32041
  Row: {
@@ -31328,6 +32067,180 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
31328
32067
  };
31329
32068
  Relationships: [];
31330
32069
  };
32070
+ itk_handover_rechten: {
32071
+ Row: {
32072
+ created_at: string;
32073
+ id: string;
32074
+ module_id: string;
32075
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32076
+ updated_at: string;
32077
+ user_id: string | null;
32078
+ };
32079
+ Insert: {
32080
+ created_at?: string;
32081
+ id?: string;
32082
+ module_id: string;
32083
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32084
+ updated_at?: string;
32085
+ user_id?: string | null;
32086
+ };
32087
+ Update: {
32088
+ created_at?: string;
32089
+ id?: string;
32090
+ module_id?: string;
32091
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32092
+ updated_at?: string;
32093
+ user_id?: string | null;
32094
+ };
32095
+ Relationships: [];
32096
+ };
32097
+ itk_handover_tokens: {
32098
+ Row: {
32099
+ aangemaakt_door: string | null;
32100
+ created_at: string;
32101
+ id: string;
32102
+ is_actief: boolean;
32103
+ laatst_gebruikt_op: string | null;
32104
+ label: string;
32105
+ module_id: string;
32106
+ token_hash: string;
32107
+ updated_at: string;
32108
+ verloopt_op: string | null;
32109
+ };
32110
+ Insert: {
32111
+ aangemaakt_door?: string | null;
32112
+ created_at?: string;
32113
+ id?: string;
32114
+ is_actief?: boolean;
32115
+ laatst_gebruikt_op?: string | null;
32116
+ label?: string;
32117
+ module_id: string;
32118
+ token_hash: string;
32119
+ updated_at?: string;
32120
+ verloopt_op?: string | null;
32121
+ };
32122
+ Update: {
32123
+ aangemaakt_door?: string | null;
32124
+ created_at?: string;
32125
+ id?: string;
32126
+ is_actief?: boolean;
32127
+ laatst_gebruikt_op?: string | null;
32128
+ label?: string;
32129
+ module_id?: string;
32130
+ token_hash?: string;
32131
+ updated_at?: string;
32132
+ verloopt_op?: string | null;
32133
+ };
32134
+ Relationships: [];
32135
+ };
32136
+ itk_module_handovers: {
32137
+ Row: {
32138
+ bevindingen: string | null;
32139
+ bezit_tabellen: string[];
32140
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
32141
+ contractfuncties: string[];
32142
+ created_at: string;
32143
+ eigenaar_module_id: string | null;
32144
+ gepubliceerd_door: string | null;
32145
+ gepubliceerd_op: string;
32146
+ herzieningstermijn_dagen: number;
32147
+ id: string;
32148
+ inhoud_md: string;
32149
+ is_actueel: boolean;
32150
+ module_id: string;
32151
+ module_titel: string;
32152
+ ontbrekende_contracten: string[];
32153
+ samenvatting: string | null;
32154
+ updated_at: string;
32155
+ versie: number;
32156
+ };
32157
+ Insert: {
32158
+ bevindingen?: string | null;
32159
+ bezit_tabellen?: string[];
32160
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
32161
+ contractfuncties?: string[];
32162
+ created_at?: string;
32163
+ eigenaar_module_id?: string | null;
32164
+ gepubliceerd_door?: string | null;
32165
+ gepubliceerd_op?: string;
32166
+ herzieningstermijn_dagen?: number;
32167
+ id?: string;
32168
+ inhoud_md: string;
32169
+ is_actueel?: boolean;
32170
+ module_id: string;
32171
+ module_titel: string;
32172
+ ontbrekende_contracten?: string[];
32173
+ samenvatting?: string | null;
32174
+ updated_at?: string;
32175
+ versie?: number;
32176
+ };
32177
+ Update: {
32178
+ bevindingen?: string | null;
32179
+ bezit_tabellen?: string[];
32180
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
32181
+ contractfuncties?: string[];
32182
+ created_at?: string;
32183
+ eigenaar_module_id?: string | null;
32184
+ gepubliceerd_door?: string | null;
32185
+ gepubliceerd_op?: string;
32186
+ herzieningstermijn_dagen?: number;
32187
+ id?: string;
32188
+ inhoud_md?: string;
32189
+ is_actueel?: boolean;
32190
+ module_id?: string;
32191
+ module_titel?: string;
32192
+ ontbrekende_contracten?: string[];
32193
+ samenvatting?: string | null;
32194
+ updated_at?: string;
32195
+ versie?: number;
32196
+ };
32197
+ Relationships: [];
32198
+ };
32199
+ itk_module_instructies: {
32200
+ Row: {
32201
+ created_at: string;
32202
+ eigenaar_module_id: string;
32203
+ gepubliceerd_door: string | null;
32204
+ gepubliceerd_op: string;
32205
+ id: string;
32206
+ inhoud_md: string;
32207
+ is_actueel: boolean;
32208
+ sleutel: string;
32209
+ titel: string;
32210
+ toelichting: string | null;
32211
+ updated_at: string;
32212
+ versie: number;
32213
+ };
32214
+ Insert: {
32215
+ created_at?: string;
32216
+ eigenaar_module_id?: string;
32217
+ gepubliceerd_door?: string | null;
32218
+ gepubliceerd_op?: string;
32219
+ id?: string;
32220
+ inhoud_md: string;
32221
+ is_actueel?: boolean;
32222
+ sleutel: string;
32223
+ titel: string;
32224
+ toelichting?: string | null;
32225
+ updated_at?: string;
32226
+ versie?: number;
32227
+ };
32228
+ Update: {
32229
+ created_at?: string;
32230
+ eigenaar_module_id?: string;
32231
+ gepubliceerd_door?: string | null;
32232
+ gepubliceerd_op?: string;
32233
+ id?: string;
32234
+ inhoud_md?: string;
32235
+ is_actueel?: boolean;
32236
+ sleutel?: string;
32237
+ titel?: string;
32238
+ toelichting?: string | null;
32239
+ updated_at?: string;
32240
+ versie?: number;
32241
+ };
32242
+ Relationships: [];
32243
+ };
31331
32244
  itk_offerte_events: {
31332
32245
  Row: {
31333
32246
  created_at: string;
@@ -33956,6 +34869,24 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
33956
34869
  };
33957
34870
  Relationships: [];
33958
34871
  };
34872
+ maps_job_lease: {
34873
+ Row: {
34874
+ job: string;
34875
+ locked_until: string;
34876
+ updated_at: string;
34877
+ };
34878
+ Insert: {
34879
+ job: string;
34880
+ locked_until?: string;
34881
+ updated_at?: string;
34882
+ };
34883
+ Update: {
34884
+ job?: string;
34885
+ locked_until?: string;
34886
+ updated_at?: string;
34887
+ };
34888
+ Relationships: [];
34889
+ };
33959
34890
  maps_request_queue: {
33960
34891
  Row: {
33961
34892
  attempts: number;
@@ -34017,6 +34948,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
34017
34948
  last_error: string | null;
34018
34949
  last_error_at: string | null;
34019
34950
  last_success_at: string | null;
34951
+ provider: string;
34020
34952
  updated_at: string;
34021
34953
  };
34022
34954
  Insert: {
@@ -34028,6 +34960,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
34028
34960
  last_error?: string | null;
34029
34961
  last_error_at?: string | null;
34030
34962
  last_success_at?: string | null;
34963
+ provider?: string;
34031
34964
  updated_at?: string;
34032
34965
  };
34033
34966
  Update: {
@@ -34039,6 +34972,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
34039
34972
  last_error?: string | null;
34040
34973
  last_error_at?: string | null;
34041
34974
  last_success_at?: string | null;
34975
+ provider?: string;
34042
34976
  updated_at?: string;
34043
34977
  };
34044
34978
  Relationships: [];
@@ -36681,6 +37615,12 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36681
37615
  isOneToOne: false;
36682
37616
  referencedRelation: "planning_items";
36683
37617
  referencedColumns: ["id"];
37618
+ }, {
37619
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
37620
+ columns: ["planning_item_id"];
37621
+ isOneToOne: false;
37622
+ referencedRelation: "planning_overview";
37623
+ referencedColumns: ["id"];
36684
37624
  }];
36685
37625
  };
36686
37626
  planning_items: {
@@ -36776,6 +37716,39 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36776
37716
  };
36777
37717
  Relationships: [];
36778
37718
  };
37719
+ print_dedupe_events: {
37720
+ Row: {
37721
+ bestaande_job_id: string | null;
37722
+ created_at: string;
37723
+ detail: string | null;
37724
+ documentnaam: string | null;
37725
+ documenttype: string | null;
37726
+ id: string;
37727
+ idempotentie_sleutel: string;
37728
+ reden: string;
37729
+ };
37730
+ Insert: {
37731
+ bestaande_job_id?: string | null;
37732
+ created_at?: string;
37733
+ detail?: string | null;
37734
+ documentnaam?: string | null;
37735
+ documenttype?: string | null;
37736
+ id?: string;
37737
+ idempotentie_sleutel: string;
37738
+ reden: string;
37739
+ };
37740
+ Update: {
37741
+ bestaande_job_id?: string | null;
37742
+ created_at?: string;
37743
+ detail?: string | null;
37744
+ documentnaam?: string | null;
37745
+ documenttype?: string | null;
37746
+ id?: string;
37747
+ idempotentie_sleutel?: string;
37748
+ reden?: string;
37749
+ };
37750
+ Relationships: [];
37751
+ };
36779
37752
  print_job_logs: {
36780
37753
  Row: {
36781
37754
  created_at: string;
@@ -36817,6 +37790,8 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36817
37790
  foutmelding: string | null;
36818
37791
  gebruiker_id: string | null;
36819
37792
  gebruiker_naam: string;
37793
+ gebruikte_bron: string | null;
37794
+ gebruikte_layout_id: string | null;
36820
37795
  gestart_op: string | null;
36821
37796
  herkomst: string | null;
36822
37797
  id: string;
@@ -36824,6 +37799,9 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36824
37799
  is_herprint: boolean;
36825
37800
  kopieen: number;
36826
37801
  layout_id: string | null;
37802
+ lokaal_opgeslagen_op: string | null;
37803
+ lokale_pdf_fout: string | null;
37804
+ lokale_pdf_status: string | null;
36827
37805
  opgepakt_op: string | null;
36828
37806
  paginas: number;
36829
37807
  payload: import("../integrations/supabase/types").Json;
@@ -36832,6 +37810,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36832
37810
  pogingen: number;
36833
37811
  printer_id: string | null;
36834
37812
  render_html: string | null;
37813
+ resultaat_pdf_base64: string | null;
36835
37814
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36836
37815
  updated_at: string;
36837
37816
  volgende_poging: string | null;
@@ -36847,6 +37826,8 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36847
37826
  foutmelding?: string | null;
36848
37827
  gebruiker_id?: string | null;
36849
37828
  gebruiker_naam?: string;
37829
+ gebruikte_bron?: string | null;
37830
+ gebruikte_layout_id?: string | null;
36850
37831
  gestart_op?: string | null;
36851
37832
  herkomst?: string | null;
36852
37833
  id?: string;
@@ -36854,6 +37835,9 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36854
37835
  is_herprint?: boolean;
36855
37836
  kopieen?: number;
36856
37837
  layout_id?: string | null;
37838
+ lokaal_opgeslagen_op?: string | null;
37839
+ lokale_pdf_fout?: string | null;
37840
+ lokale_pdf_status?: string | null;
36857
37841
  opgepakt_op?: string | null;
36858
37842
  paginas?: number;
36859
37843
  payload?: import("../integrations/supabase/types").Json;
@@ -36862,6 +37846,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36862
37846
  pogingen?: number;
36863
37847
  printer_id?: string | null;
36864
37848
  render_html?: string | null;
37849
+ resultaat_pdf_base64?: string | null;
36865
37850
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36866
37851
  updated_at?: string;
36867
37852
  volgende_poging?: string | null;
@@ -36877,6 +37862,8 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36877
37862
  foutmelding?: string | null;
36878
37863
  gebruiker_id?: string | null;
36879
37864
  gebruiker_naam?: string;
37865
+ gebruikte_bron?: string | null;
37866
+ gebruikte_layout_id?: string | null;
36880
37867
  gestart_op?: string | null;
36881
37868
  herkomst?: string | null;
36882
37869
  id?: string;
@@ -36884,6 +37871,9 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36884
37871
  is_herprint?: boolean;
36885
37872
  kopieen?: number;
36886
37873
  layout_id?: string | null;
37874
+ lokaal_opgeslagen_op?: string | null;
37875
+ lokale_pdf_fout?: string | null;
37876
+ lokale_pdf_status?: string | null;
36887
37877
  opgepakt_op?: string | null;
36888
37878
  paginas?: number;
36889
37879
  payload?: import("../integrations/supabase/types").Json;
@@ -36892,6 +37882,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
36892
37882
  pogingen?: number;
36893
37883
  printer_id?: string | null;
36894
37884
  render_html?: string | null;
37885
+ resultaat_pdf_base64?: string | null;
36895
37886
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36896
37887
  updated_at?: string;
36897
37888
  volgende_poging?: string | null;
@@ -37010,6 +38001,39 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
37010
38001
  };
37011
38002
  Relationships: [];
37012
38003
  };
38004
+ print_preview_events: {
38005
+ Row: {
38006
+ code: string | null;
38007
+ created_at: string;
38008
+ detail: import("../integrations/supabase/types").Json;
38009
+ id: string;
38010
+ queue_item_id: string | null;
38011
+ reden: string | null;
38012
+ station_slug: string | null;
38013
+ uitkomst: string;
38014
+ };
38015
+ Insert: {
38016
+ code?: string | null;
38017
+ created_at?: string;
38018
+ detail?: import("../integrations/supabase/types").Json;
38019
+ id?: string;
38020
+ queue_item_id?: string | null;
38021
+ reden?: string | null;
38022
+ station_slug?: string | null;
38023
+ uitkomst?: string;
38024
+ };
38025
+ Update: {
38026
+ code?: string | null;
38027
+ created_at?: string;
38028
+ detail?: import("../integrations/supabase/types").Json;
38029
+ id?: string;
38030
+ queue_item_id?: string | null;
38031
+ reden?: string | null;
38032
+ station_slug?: string | null;
38033
+ uitkomst?: string;
38034
+ };
38035
+ Relationships: [];
38036
+ };
37013
38037
  print_queue_runners: {
37014
38038
  Row: {
37015
38039
  actief: boolean;
@@ -37249,6 +38273,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
37249
38273
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37250
38274
  online: boolean;
37251
38275
  papierformaat: string;
38276
+ pdf_map: string | null;
37252
38277
  poort: number | null;
37253
38278
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37254
38279
  systeemnaam: string;
@@ -37274,6 +38299,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
37274
38299
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37275
38300
  online?: boolean;
37276
38301
  papierformaat?: string;
38302
+ pdf_map?: string | null;
37277
38303
  poort?: number | null;
37278
38304
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37279
38305
  systeemnaam?: string;
@@ -37299,6 +38325,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
37299
38325
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37300
38326
  online?: boolean;
37301
38327
  papierformaat?: string;
38328
+ pdf_map?: string | null;
37302
38329
  poort?: number | null;
37303
38330
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37304
38331
  systeemnaam?: string;
@@ -38171,450 +39198,6 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
38171
39198
  referencedColumns: ["id"];
38172
39199
  }];
38173
39200
  };
38174
- quote_activities: {
38175
- Row: {
38176
- created_at: string;
38177
- event_type: string;
38178
- id: string;
38179
- metadata: import("../integrations/supabase/types").Json;
38180
- quote_id: string;
38181
- user_id: string | null;
38182
- };
38183
- Insert: {
38184
- created_at?: string;
38185
- event_type: string;
38186
- id?: string;
38187
- metadata?: import("../integrations/supabase/types").Json;
38188
- quote_id: string;
38189
- user_id?: string | null;
38190
- };
38191
- Update: {
38192
- created_at?: string;
38193
- event_type?: string;
38194
- id?: string;
38195
- metadata?: import("../integrations/supabase/types").Json;
38196
- quote_id?: string;
38197
- user_id?: string | null;
38198
- };
38199
- Relationships: [{
38200
- foreignKeyName: "quote_activities_quote_id_fkey";
38201
- columns: ["quote_id"];
38202
- isOneToOne: false;
38203
- referencedRelation: "quotes";
38204
- referencedColumns: ["id"];
38205
- }];
38206
- };
38207
- quote_attachments: {
38208
- Row: {
38209
- created_at: string;
38210
- file_name: string;
38211
- file_size: number | null;
38212
- file_url: string;
38213
- id: string;
38214
- mime_type: string | null;
38215
- quote_id: string;
38216
- };
38217
- Insert: {
38218
- created_at?: string;
38219
- file_name: string;
38220
- file_size?: number | null;
38221
- file_url: string;
38222
- id?: string;
38223
- mime_type?: string | null;
38224
- quote_id: string;
38225
- };
38226
- Update: {
38227
- created_at?: string;
38228
- file_name?: string;
38229
- file_size?: number | null;
38230
- file_url?: string;
38231
- id?: string;
38232
- mime_type?: string | null;
38233
- quote_id?: string;
38234
- };
38235
- Relationships: [{
38236
- foreignKeyName: "quote_attachments_quote_id_fkey";
38237
- columns: ["quote_id"];
38238
- isOneToOne: false;
38239
- referencedRelation: "quotes";
38240
- referencedColumns: ["id"];
38241
- }];
38242
- };
38243
- quote_field_options: {
38244
- Row: {
38245
- created_at: string;
38246
- field_id: string;
38247
- id: string;
38248
- label: string;
38249
- sort_order: number;
38250
- value: string;
38251
- };
38252
- Insert: {
38253
- created_at?: string;
38254
- field_id: string;
38255
- id?: string;
38256
- label: string;
38257
- sort_order?: number;
38258
- value: string;
38259
- };
38260
- Update: {
38261
- created_at?: string;
38262
- field_id?: string;
38263
- id?: string;
38264
- label?: string;
38265
- sort_order?: number;
38266
- value?: string;
38267
- };
38268
- Relationships: [{
38269
- foreignKeyName: "quote_field_options_field_id_fkey";
38270
- columns: ["field_id"];
38271
- isOneToOne: false;
38272
- referencedRelation: "quote_field_settings";
38273
- referencedColumns: ["id"];
38274
- }];
38275
- };
38276
- quote_field_settings: {
38277
- Row: {
38278
- created_at: string;
38279
- default_value: string | null;
38280
- field_key: string;
38281
- field_type: string;
38282
- id: string;
38283
- is_system: boolean;
38284
- label: string;
38285
- required: boolean;
38286
- sort_order: number;
38287
- updated_at: string;
38288
- visible: boolean;
38289
- };
38290
- Insert: {
38291
- created_at?: string;
38292
- default_value?: string | null;
38293
- field_key: string;
38294
- field_type: string;
38295
- id?: string;
38296
- is_system?: boolean;
38297
- label: string;
38298
- required?: boolean;
38299
- sort_order?: number;
38300
- updated_at?: string;
38301
- visible?: boolean;
38302
- };
38303
- Update: {
38304
- created_at?: string;
38305
- default_value?: string | null;
38306
- field_key?: string;
38307
- field_type?: string;
38308
- id?: string;
38309
- is_system?: boolean;
38310
- label?: string;
38311
- required?: boolean;
38312
- sort_order?: number;
38313
- updated_at?: string;
38314
- visible?: boolean;
38315
- };
38316
- Relationships: [];
38317
- };
38318
- quote_items: {
38319
- Row: {
38320
- category: string | null;
38321
- created_at: string;
38322
- description: string;
38323
- id: string;
38324
- line_total: number;
38325
- module_id: string | null;
38326
- name: string | null;
38327
- quantity: number;
38328
- quote_id: string;
38329
- sort_order: number;
38330
- unit_price: number;
38331
- };
38332
- Insert: {
38333
- category?: string | null;
38334
- created_at?: string;
38335
- description?: string;
38336
- id?: string;
38337
- line_total?: number;
38338
- module_id?: string | null;
38339
- name?: string | null;
38340
- quantity?: number;
38341
- quote_id: string;
38342
- sort_order?: number;
38343
- unit_price?: number;
38344
- };
38345
- Update: {
38346
- category?: string | null;
38347
- created_at?: string;
38348
- description?: string;
38349
- id?: string;
38350
- line_total?: number;
38351
- module_id?: string | null;
38352
- name?: string | null;
38353
- quantity?: number;
38354
- quote_id?: string;
38355
- sort_order?: number;
38356
- unit_price?: number;
38357
- };
38358
- Relationships: [{
38359
- foreignKeyName: "quote_items_module_id_fkey";
38360
- columns: ["module_id"];
38361
- isOneToOne: false;
38362
- referencedRelation: "quote_modules";
38363
- referencedColumns: ["id"];
38364
- }, {
38365
- foreignKeyName: "quote_items_quote_id_fkey";
38366
- columns: ["quote_id"];
38367
- isOneToOne: false;
38368
- referencedRelation: "quotes";
38369
- referencedColumns: ["id"];
38370
- }];
38371
- };
38372
- quote_modules: {
38373
- Row: {
38374
- category: string | null;
38375
- created_at: string;
38376
- description: string | null;
38377
- id: string;
38378
- is_active: boolean;
38379
- name: string;
38380
- price: number;
38381
- sort_order: number;
38382
- updated_at: string;
38383
- };
38384
- Insert: {
38385
- category?: string | null;
38386
- created_at?: string;
38387
- description?: string | null;
38388
- id?: string;
38389
- is_active?: boolean;
38390
- name: string;
38391
- price?: number;
38392
- sort_order?: number;
38393
- updated_at?: string;
38394
- };
38395
- Update: {
38396
- category?: string | null;
38397
- created_at?: string;
38398
- description?: string | null;
38399
- id?: string;
38400
- is_active?: boolean;
38401
- name?: string;
38402
- price?: number;
38403
- sort_order?: number;
38404
- updated_at?: string;
38405
- };
38406
- Relationships: [];
38407
- };
38408
- quote_templates: {
38409
- Row: {
38410
- created_at: string;
38411
- description: string | null;
38412
- field_values: import("../integrations/supabase/types").Json;
38413
- id: string;
38414
- is_default: boolean;
38415
- items: import("../integrations/supabase/types").Json;
38416
- name: string;
38417
- updated_at: string;
38418
- vat_rate: number;
38419
- };
38420
- Insert: {
38421
- created_at?: string;
38422
- description?: string | null;
38423
- field_values?: import("../integrations/supabase/types").Json;
38424
- id?: string;
38425
- is_default?: boolean;
38426
- items?: import("../integrations/supabase/types").Json;
38427
- name: string;
38428
- updated_at?: string;
38429
- vat_rate?: number;
38430
- };
38431
- Update: {
38432
- created_at?: string;
38433
- description?: string | null;
38434
- field_values?: import("../integrations/supabase/types").Json;
38435
- id?: string;
38436
- is_default?: boolean;
38437
- items?: import("../integrations/supabase/types").Json;
38438
- name?: string;
38439
- updated_at?: string;
38440
- vat_rate?: number;
38441
- };
38442
- Relationships: [];
38443
- };
38444
- quote_terms: {
38445
- Row: {
38446
- content: string | null;
38447
- created_at: string;
38448
- file_url: string | null;
38449
- id: string;
38450
- is_active: boolean;
38451
- name: string;
38452
- published_at: string | null;
38453
- updated_at: string;
38454
- version: string;
38455
- };
38456
- Insert: {
38457
- content?: string | null;
38458
- created_at?: string;
38459
- file_url?: string | null;
38460
- id?: string;
38461
- is_active?: boolean;
38462
- name: string;
38463
- published_at?: string | null;
38464
- updated_at?: string;
38465
- version?: string;
38466
- };
38467
- Update: {
38468
- content?: string | null;
38469
- created_at?: string;
38470
- file_url?: string | null;
38471
- id?: string;
38472
- is_active?: boolean;
38473
- name?: string;
38474
- published_at?: string | null;
38475
- updated_at?: string;
38476
- version?: string;
38477
- };
38478
- Relationships: [];
38479
- };
38480
- quotes: {
38481
- Row: {
38482
- accepted_at: string | null;
38483
- archived_at: string | null;
38484
- contact_id: string | null;
38485
- created_at: string;
38486
- customer_id: string | null;
38487
- discount: number;
38488
- expires_at: string | null;
38489
- field_values: import("../integrations/supabase/types").Json;
38490
- id: string;
38491
- notes: string | null;
38492
- owner_id: string | null;
38493
- personal_message: string | null;
38494
- project_id: string | null;
38495
- prospect_id: string | null;
38496
- public_token: string;
38497
- quote_number: string | null;
38498
- recipient_email: string | null;
38499
- recipient_name: string | null;
38500
- rejected_at: string | null;
38501
- sent_at: string | null;
38502
- status: string;
38503
- subtotal: number;
38504
- template_id: string | null;
38505
- terms_id: string | null;
38506
- title: string;
38507
- total: number;
38508
- updated_at: string;
38509
- valid_until: string | null;
38510
- vat_amount: number;
38511
- vat_rate: number;
38512
- viewed_at: string | null;
38513
- };
38514
- Insert: {
38515
- accepted_at?: string | null;
38516
- archived_at?: string | null;
38517
- contact_id?: string | null;
38518
- created_at?: string;
38519
- customer_id?: string | null;
38520
- discount?: number;
38521
- expires_at?: string | null;
38522
- field_values?: import("../integrations/supabase/types").Json;
38523
- id?: string;
38524
- notes?: string | null;
38525
- owner_id?: string | null;
38526
- personal_message?: string | null;
38527
- project_id?: string | null;
38528
- prospect_id?: string | null;
38529
- public_token?: string;
38530
- quote_number?: string | null;
38531
- recipient_email?: string | null;
38532
- recipient_name?: string | null;
38533
- rejected_at?: string | null;
38534
- sent_at?: string | null;
38535
- status?: string;
38536
- subtotal?: number;
38537
- template_id?: string | null;
38538
- terms_id?: string | null;
38539
- title?: string;
38540
- total?: number;
38541
- updated_at?: string;
38542
- valid_until?: string | null;
38543
- vat_amount?: number;
38544
- vat_rate?: number;
38545
- viewed_at?: string | null;
38546
- };
38547
- Update: {
38548
- accepted_at?: string | null;
38549
- archived_at?: string | null;
38550
- contact_id?: string | null;
38551
- created_at?: string;
38552
- customer_id?: string | null;
38553
- discount?: number;
38554
- expires_at?: string | null;
38555
- field_values?: import("../integrations/supabase/types").Json;
38556
- id?: string;
38557
- notes?: string | null;
38558
- owner_id?: string | null;
38559
- personal_message?: string | null;
38560
- project_id?: string | null;
38561
- prospect_id?: string | null;
38562
- public_token?: string;
38563
- quote_number?: string | null;
38564
- recipient_email?: string | null;
38565
- recipient_name?: string | null;
38566
- rejected_at?: string | null;
38567
- sent_at?: string | null;
38568
- status?: string;
38569
- subtotal?: number;
38570
- template_id?: string | null;
38571
- terms_id?: string | null;
38572
- title?: string;
38573
- total?: number;
38574
- updated_at?: string;
38575
- valid_until?: string | null;
38576
- vat_amount?: number;
38577
- vat_rate?: number;
38578
- viewed_at?: string | null;
38579
- };
38580
- Relationships: [{
38581
- foreignKeyName: "quotes_contact_id_fkey";
38582
- columns: ["contact_id"];
38583
- isOneToOne: false;
38584
- referencedRelation: "customer_contacts";
38585
- referencedColumns: ["id"];
38586
- }, {
38587
- foreignKeyName: "quotes_customer_id_fkey";
38588
- columns: ["customer_id"];
38589
- isOneToOne: false;
38590
- referencedRelation: "customers";
38591
- referencedColumns: ["id"];
38592
- }, {
38593
- foreignKeyName: "quotes_project_id_fkey";
38594
- columns: ["project_id"];
38595
- isOneToOne: false;
38596
- referencedRelation: "projects";
38597
- referencedColumns: ["id"];
38598
- }, {
38599
- foreignKeyName: "quotes_prospect_id_fkey";
38600
- columns: ["prospect_id"];
38601
- isOneToOne: false;
38602
- referencedRelation: "prospects";
38603
- referencedColumns: ["id"];
38604
- }, {
38605
- foreignKeyName: "quotes_template_id_fkey";
38606
- columns: ["template_id"];
38607
- isOneToOne: false;
38608
- referencedRelation: "quote_templates";
38609
- referencedColumns: ["id"];
38610
- }, {
38611
- foreignKeyName: "quotes_terms_id_fkey";
38612
- columns: ["terms_id"];
38613
- isOneToOne: false;
38614
- referencedRelation: "quote_terms";
38615
- referencedColumns: ["id"];
38616
- }];
38617
- };
38618
39201
  reception_notifications: {
38619
39202
  Row: {
38620
39203
  booking_id: string | null;
@@ -39736,7 +40319,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
39736
40319
  foreignKeyName: "time_logs_work_order_id_fkey";
39737
40320
  columns: ["work_order_id"];
39738
40321
  isOneToOne: false;
39739
- referencedRelation: "work_orders";
40322
+ referencedRelation: "werkbonnen";
39740
40323
  referencedColumns: ["id"];
39741
40324
  }];
39742
40325
  };
@@ -39868,6 +40451,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
39868
40451
  };
39869
40452
  trade_item_stock: {
39870
40453
  Row: {
40454
+ change_source: string;
39871
40455
  connection_id: string;
39872
40456
  created_at: string;
39873
40457
  id: string;
@@ -39881,6 +40465,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
39881
40465
  user_id: string;
39882
40466
  };
39883
40467
  Insert: {
40468
+ change_source?: string;
39884
40469
  connection_id: string;
39885
40470
  created_at?: string;
39886
40471
  id?: string;
@@ -39894,6 +40479,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
39894
40479
  user_id: string;
39895
40480
  };
39896
40481
  Update: {
40482
+ change_source?: string;
39897
40483
  connection_id?: string;
39898
40484
  created_at?: string;
39899
40485
  id?: string;
@@ -41063,156 +41649,6 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
41063
41649
  };
41064
41650
  Relationships: [];
41065
41651
  };
41066
- uren_offerte_regels: {
41067
- Row: {
41068
- created_at: string;
41069
- description: string;
41070
- duration_minutes: number;
41071
- id: string;
41072
- offerte_id: string;
41073
- package_id: string | null;
41074
- quantity: number;
41075
- sort_order: number;
41076
- total_cents: number;
41077
- unit_price_cents: number;
41078
- };
41079
- Insert: {
41080
- created_at?: string;
41081
- description: string;
41082
- duration_minutes?: number;
41083
- id?: string;
41084
- offerte_id: string;
41085
- package_id?: string | null;
41086
- quantity?: number;
41087
- sort_order?: number;
41088
- total_cents?: number;
41089
- unit_price_cents?: number;
41090
- };
41091
- Update: {
41092
- created_at?: string;
41093
- description?: string;
41094
- duration_minutes?: number;
41095
- id?: string;
41096
- offerte_id?: string;
41097
- package_id?: string | null;
41098
- quantity?: number;
41099
- sort_order?: number;
41100
- total_cents?: number;
41101
- unit_price_cents?: number;
41102
- };
41103
- Relationships: [{
41104
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
41105
- columns: ["offerte_id"];
41106
- isOneToOne: false;
41107
- referencedRelation: "uren_offertes";
41108
- referencedColumns: ["id"];
41109
- }, {
41110
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
41111
- columns: ["package_id"];
41112
- isOneToOne: false;
41113
- referencedRelation: "werkbon_packages";
41114
- referencedColumns: ["id"];
41115
- }];
41116
- };
41117
- uren_offerte_velden: {
41118
- Row: {
41119
- created_at: string;
41120
- field_type: string;
41121
- id: string;
41122
- key: string;
41123
- label: string;
41124
- options: string[];
41125
- required: boolean;
41126
- sort_order: number;
41127
- updated_at: string;
41128
- };
41129
- Insert: {
41130
- created_at?: string;
41131
- field_type?: string;
41132
- id?: string;
41133
- key: string;
41134
- label: string;
41135
- options?: string[];
41136
- required?: boolean;
41137
- sort_order?: number;
41138
- updated_at?: string;
41139
- };
41140
- Update: {
41141
- created_at?: string;
41142
- field_type?: string;
41143
- id?: string;
41144
- key?: string;
41145
- label?: string;
41146
- options?: string[];
41147
- required?: boolean;
41148
- sort_order?: number;
41149
- updated_at?: string;
41150
- };
41151
- Relationships: [];
41152
- };
41153
- uren_offertes: {
41154
- Row: {
41155
- created_at: string;
41156
- created_by: string | null;
41157
- customer_id: string | null;
41158
- customer_name: string | null;
41159
- dynamic_fields: import("../integrations/supabase/types").Json;
41160
- estimated_minutes: number;
41161
- id: string;
41162
- note: string | null;
41163
- quote_number: string | null;
41164
- status: string;
41165
- title: string;
41166
- total_excl_cents: number;
41167
- total_incl_cents: number;
41168
- updated_at: string;
41169
- valid_until: string | null;
41170
- vat_percentage: number;
41171
- };
41172
- Insert: {
41173
- created_at?: string;
41174
- created_by?: string | null;
41175
- customer_id?: string | null;
41176
- customer_name?: string | null;
41177
- dynamic_fields?: import("../integrations/supabase/types").Json;
41178
- estimated_minutes?: number;
41179
- id?: string;
41180
- note?: string | null;
41181
- quote_number?: string | null;
41182
- status?: string;
41183
- title?: string;
41184
- total_excl_cents?: number;
41185
- total_incl_cents?: number;
41186
- updated_at?: string;
41187
- valid_until?: string | null;
41188
- vat_percentage?: number;
41189
- };
41190
- Update: {
41191
- created_at?: string;
41192
- created_by?: string | null;
41193
- customer_id?: string | null;
41194
- customer_name?: string | null;
41195
- dynamic_fields?: import("../integrations/supabase/types").Json;
41196
- estimated_minutes?: number;
41197
- id?: string;
41198
- note?: string | null;
41199
- quote_number?: string | null;
41200
- status?: string;
41201
- title?: string;
41202
- total_excl_cents?: number;
41203
- total_incl_cents?: number;
41204
- updated_at?: string;
41205
- valid_until?: string | null;
41206
- vat_percentage?: number;
41207
- };
41208
- Relationships: [{
41209
- foreignKeyName: "uren_offertes_customer_id_fkey";
41210
- columns: ["customer_id"];
41211
- isOneToOne: false;
41212
- referencedRelation: "itk_customers";
41213
- referencedColumns: ["id"];
41214
- }];
41215
- };
41216
41652
  uren_settings: {
41217
41653
  Row: {
41218
41654
  break_minutes: number;
@@ -42899,6 +43335,37 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
42899
43335
  };
42900
43336
  Relationships: [];
42901
43337
  };
43338
+ planning_overview: {
43339
+ Row: {
43340
+ assigned_monteur_id: string | null;
43341
+ assistants: import("../integrations/supabase/types").Json | null;
43342
+ budget_mandate_cents: number | null;
43343
+ created_at: string | null;
43344
+ created_by: string | null;
43345
+ customer_id: string | null;
43346
+ customer_name: string | null;
43347
+ duration_minutes: number | null;
43348
+ end_at: string | null;
43349
+ id: string | null;
43350
+ needs_detail_review: boolean | null;
43351
+ notes: string | null;
43352
+ project_number: string | null;
43353
+ review_reasons: string[] | null;
43354
+ start_at: string | null;
43355
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
43356
+ updated_at: string | null;
43357
+ viewer_role: string | null;
43358
+ werkbon_id: string | null;
43359
+ work_address: string | null;
43360
+ };
43361
+ Relationships: [{
43362
+ foreignKeyName: "planning_items_werkbon_id_fkey";
43363
+ columns: ["werkbon_id"];
43364
+ isOneToOne: false;
43365
+ referencedRelation: "werkbonnen";
43366
+ referencedColumns: ["id"];
43367
+ }];
43368
+ };
42902
43369
  product_group_stock_view: {
42903
43370
  Row: {
42904
43371
  item_count: number | null;
@@ -43494,6 +43961,18 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
43494
43961
  Args: never;
43495
43962
  Returns: number;
43496
43963
  };
43964
+ calculate_floriday_desired_stock: {
43965
+ Args: {
43966
+ p_connection_id: string;
43967
+ p_product_id: string;
43968
+ };
43969
+ Returns: {
43970
+ desired_availability: boolean;
43971
+ desired_quantity: number;
43972
+ erp_available: number;
43973
+ stock_mode: string;
43974
+ }[];
43975
+ };
43497
43976
  calculate_layer_stock: {
43498
43977
  Args: {
43499
43978
  p_product_id: string;
@@ -43546,6 +44025,8 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
43546
44025
  foutmelding: string | null;
43547
44026
  gebruiker_id: string | null;
43548
44027
  gebruiker_naam: string;
44028
+ gebruikte_bron: string | null;
44029
+ gebruikte_layout_id: string | null;
43549
44030
  gestart_op: string | null;
43550
44031
  herkomst: string | null;
43551
44032
  id: string;
@@ -43553,6 +44034,9 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
43553
44034
  is_herprint: boolean;
43554
44035
  kopieen: number;
43555
44036
  layout_id: string | null;
44037
+ lokaal_opgeslagen_op: string | null;
44038
+ lokale_pdf_fout: string | null;
44039
+ lokale_pdf_status: string | null;
43556
44040
  opgepakt_op: string | null;
43557
44041
  paginas: number;
43558
44042
  payload: import("../integrations/supabase/types").Json;
@@ -43561,6 +44045,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
43561
44045
  pogingen: number;
43562
44046
  printer_id: string | null;
43563
44047
  render_html: string | null;
44048
+ resultaat_pdf_base64: string | null;
43564
44049
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43565
44050
  updated_at: string;
43566
44051
  volgende_poging: string | null;
@@ -43582,6 +44067,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
43582
44067
  attempts: number;
43583
44068
  connection_id: string;
43584
44069
  created_at: string;
44070
+ dead_lettered_at: string | null;
43585
44071
  desired_available: boolean | null;
43586
44072
  gateway_attempt_id: string | null;
43587
44073
  id: string;
@@ -43590,9 +44076,13 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
43590
44076
  locked_by: string | null;
43591
44077
  next_attempt_at: string;
43592
44078
  number_of_pieces: number;
44079
+ product_id: string | null;
43593
44080
  sent_at: string | null;
43594
44081
  status: string;
44082
+ stock_mode: string | null;
43595
44083
  superseded_by: string | null;
44084
+ target_week: number | null;
44085
+ target_year: number | null;
43596
44086
  trade_item_id: string;
43597
44087
  updated_at: string;
43598
44088
  user_id: string;
@@ -43652,6 +44142,53 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
43652
44142
  isSetofReturn: true;
43653
44143
  };
43654
44144
  };
44145
+ claim_pdf_print_jobs: {
44146
+ Args: {
44147
+ _max?: number;
44148
+ };
44149
+ Returns: {
44150
+ agent_id: string | null;
44151
+ bron_job_id: string | null;
44152
+ created_at: string;
44153
+ documentnaam: string;
44154
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44155
+ extern_job_id: string | null;
44156
+ foutmelding: string | null;
44157
+ gebruiker_id: string | null;
44158
+ gebruiker_naam: string;
44159
+ gebruikte_bron: string | null;
44160
+ gebruikte_layout_id: string | null;
44161
+ gestart_op: string | null;
44162
+ herkomst: string | null;
44163
+ id: string;
44164
+ idempotentie_sleutel: string | null;
44165
+ is_herprint: boolean;
44166
+ kopieen: number;
44167
+ layout_id: string | null;
44168
+ lokaal_opgeslagen_op: string | null;
44169
+ lokale_pdf_fout: string | null;
44170
+ lokale_pdf_status: string | null;
44171
+ opgepakt_op: string | null;
44172
+ paginas: number;
44173
+ payload: import("../integrations/supabase/types").Json;
44174
+ pdf_base64: string | null;
44175
+ pdf_url: string | null;
44176
+ pogingen: number;
44177
+ printer_id: string | null;
44178
+ render_html: string | null;
44179
+ resultaat_pdf_base64: string | null;
44180
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44181
+ updated_at: string;
44182
+ volgende_poging: string | null;
44183
+ voltooid_op: string | null;
44184
+ }[];
44185
+ SetofOptions: {
44186
+ from: "*";
44187
+ to: "print_jobs";
44188
+ isOneToOne: false;
44189
+ isSetofReturn: true;
44190
+ };
44191
+ };
43655
44192
  claim_print_jobs: {
43656
44193
  Args: {
43657
44194
  _agent_id: string;
@@ -43667,6 +44204,8 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
43667
44204
  foutmelding: string | null;
43668
44205
  gebruiker_id: string | null;
43669
44206
  gebruiker_naam: string;
44207
+ gebruikte_bron: string | null;
44208
+ gebruikte_layout_id: string | null;
43670
44209
  gestart_op: string | null;
43671
44210
  herkomst: string | null;
43672
44211
  id: string;
@@ -43674,6 +44213,9 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
43674
44213
  is_herprint: boolean;
43675
44214
  kopieen: number;
43676
44215
  layout_id: string | null;
44216
+ lokaal_opgeslagen_op: string | null;
44217
+ lokale_pdf_fout: string | null;
44218
+ lokale_pdf_status: string | null;
43677
44219
  opgepakt_op: string | null;
43678
44220
  paginas: number;
43679
44221
  payload: import("../integrations/supabase/types").Json;
@@ -43682,6 +44224,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
43682
44224
  pogingen: number;
43683
44225
  printer_id: string | null;
43684
44226
  render_html: string | null;
44227
+ resultaat_pdf_base64: string | null;
43685
44228
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43686
44229
  updated_at: string;
43687
44230
  volgende_poging: string | null;
@@ -43822,6 +44365,8 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
43822
44365
  order_id: string;
43823
44366
  order_source: string;
43824
44367
  pick_date: string;
44368
+ printed_at: string;
44369
+ printed_today: boolean;
43825
44370
  status: string;
43826
44371
  }[];
43827
44372
  };
@@ -44018,6 +44563,24 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44018
44563
  };
44019
44564
  Returns: string;
44020
44565
  };
44566
+ floriday_capture_stock_snapshot: {
44567
+ Args: never;
44568
+ Returns: number;
44569
+ };
44570
+ floriday_cleanup_stock_queue_v2: {
44571
+ Args: never;
44572
+ Returns: undefined;
44573
+ };
44574
+ floriday_compact_stock_snapshots: {
44575
+ Args: never;
44576
+ Returns: undefined;
44577
+ };
44578
+ floriday_default_owner: {
44579
+ Args: {
44580
+ p_connection_id: string;
44581
+ };
44582
+ Returns: string;
44583
+ };
44021
44584
  floriday_effective_price: {
44022
44585
  Args: {
44023
44586
  _buyer_id: string;
@@ -44035,6 +44598,34 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44035
44598
  source_id: string;
44036
44599
  }[];
44037
44600
  };
44601
+ floriday_fill_publish_horizon: {
44602
+ Args: never;
44603
+ Returns: number;
44604
+ };
44605
+ floriday_ingest_sales_orders: {
44606
+ Args: {
44607
+ p_limit?: number;
44608
+ };
44609
+ Returns: number;
44610
+ };
44611
+ floriday_publish_horizon_weeks: {
44612
+ Args: never;
44613
+ Returns: number;
44614
+ };
44615
+ floriday_recompute_inventory: {
44616
+ Args: {
44617
+ p_connection_id: string;
44618
+ p_force?: boolean;
44619
+ p_product_id: string;
44620
+ };
44621
+ Returns: undefined;
44622
+ };
44623
+ floriday_requeue_dead_letters: {
44624
+ Args: {
44625
+ p_connection_id?: string;
44626
+ };
44627
+ Returns: number;
44628
+ };
44038
44629
  format_cart_number: {
44039
44630
  Args: {
44040
44631
  p_pick_date: string;
@@ -44251,6 +44842,131 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44251
44842
  Args: never;
44252
44843
  Returns: string;
44253
44844
  };
44845
+ handover_get: {
44846
+ Args: {
44847
+ _module_id: string;
44848
+ };
44849
+ Returns: import("../integrations/supabase/types").Json;
44850
+ };
44851
+ handover_kern_naam: {
44852
+ Args: {
44853
+ _naam: string;
44854
+ };
44855
+ Returns: string;
44856
+ };
44857
+ handover_ketenmodel: {
44858
+ Args: never;
44859
+ Returns: import("../integrations/supabase/types").Json;
44860
+ };
44861
+ handover_kruisconflicten: {
44862
+ Args: never;
44863
+ Returns: import("../integrations/supabase/types").Json;
44864
+ };
44865
+ handover_list: {
44866
+ Args: never;
44867
+ Returns: import("../integrations/supabase/types").Json;
44868
+ };
44869
+ handover_mag_schrijven: {
44870
+ Args: {
44871
+ _module_id: string;
44872
+ };
44873
+ Returns: boolean;
44874
+ };
44875
+ handover_norm_naam: {
44876
+ Args: {
44877
+ _naam: string;
44878
+ };
44879
+ Returns: string;
44880
+ };
44881
+ handover_publish: {
44882
+ Args: {
44883
+ _bevindingen?: string;
44884
+ _bezit_tabellen?: string[];
44885
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
44886
+ _contractfuncties?: string[];
44887
+ _inhoud_md: string;
44888
+ _module_id: string;
44889
+ _module_titel: string;
44890
+ _ontbrekende_contracten?: string[];
44891
+ _samenvatting?: string;
44892
+ };
44893
+ Returns: number;
44894
+ };
44895
+ handover_publish_via_token: {
44896
+ Args: {
44897
+ _bevindingen?: string;
44898
+ _bezit_tabellen?: string[];
44899
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
44900
+ _contractfuncties?: string[];
44901
+ _inhoud_md: string;
44902
+ _module_id: string;
44903
+ _module_titel: string;
44904
+ _ontbrekende_contracten?: string[];
44905
+ _samenvatting?: string;
44906
+ _token_hash: string;
44907
+ };
44908
+ Returns: number;
44909
+ };
44910
+ handover_status: {
44911
+ Args: never;
44912
+ Returns: import("../integrations/supabase/types").Json;
44913
+ };
44914
+ handover_synonym_kern: {
44915
+ Args: {
44916
+ _naam: string;
44917
+ };
44918
+ Returns: string;
44919
+ };
44920
+ handover_token_intrekken: {
44921
+ Args: {
44922
+ _id: string;
44923
+ };
44924
+ Returns: boolean;
44925
+ };
44926
+ handover_token_lijst: {
44927
+ Args: never;
44928
+ Returns: import("../integrations/supabase/types").Json;
44929
+ };
44930
+ handover_token_maken: {
44931
+ Args: {
44932
+ _label?: string;
44933
+ _module_id: string;
44934
+ };
44935
+ Returns: string;
44936
+ };
44937
+ handover_update: {
44938
+ Args: {
44939
+ _bezit_tabellen?: string[];
44940
+ _contractfuncties?: string[];
44941
+ _herzieningstermijn_dagen?: number;
44942
+ _inhoud_md?: string;
44943
+ _module_id: string;
44944
+ _module_titel?: string;
44945
+ _samenvatting?: string;
44946
+ _versie: number;
44947
+ };
44948
+ Returns: boolean;
44949
+ } | {
44950
+ Args: {
44951
+ _bevindingen?: string;
44952
+ _bezit_tabellen?: string[];
44953
+ _contractfuncties?: string[];
44954
+ _herzieningstermijn_dagen?: number;
44955
+ _inhoud_md?: string;
44956
+ _module_id: string;
44957
+ _module_titel?: string;
44958
+ _ontbrekende_contracten?: string[];
44959
+ _samenvatting?: string;
44960
+ _versie: number;
44961
+ };
44962
+ Returns: boolean;
44963
+ };
44964
+ handover_versies: {
44965
+ Args: {
44966
+ _module_id: string;
44967
+ };
44968
+ Returns: import("../integrations/supabase/types").Json;
44969
+ };
44254
44970
  has_module_permission: {
44255
44971
  Args: {
44256
44972
  _min: string;
@@ -44270,6 +44986,25 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44270
44986
  Args: never;
44271
44987
  Returns: boolean;
44272
44988
  };
44989
+ instructie_get: {
44990
+ Args: {
44991
+ _sleutel: string;
44992
+ };
44993
+ Returns: import("../integrations/supabase/types").Json;
44994
+ };
44995
+ instructie_list: {
44996
+ Args: never;
44997
+ Returns: import("../integrations/supabase/types").Json;
44998
+ };
44999
+ instructie_publish: {
45000
+ Args: {
45001
+ _inhoud_md: string;
45002
+ _sleutel: string;
45003
+ _titel: string;
45004
+ _toelichting?: string;
45005
+ };
45006
+ Returns: number;
45007
+ };
44273
45008
  invoice_create_from_source: {
44274
45009
  Args: {
44275
45010
  _payload?: import("../integrations/supabase/types").Json;
@@ -44530,6 +45265,10 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44530
45265
  };
44531
45266
  Returns: number;
44532
45267
  };
45268
+ logistics_cancel_orphan_tasks: {
45269
+ Args: never;
45270
+ Returns: number;
45271
+ };
44533
45272
  logistics_capacity_day_check: {
44534
45273
  Args: {
44535
45274
  p_from?: string;
@@ -44550,6 +45289,25 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44550
45289
  };
44551
45290
  Returns: number;
44552
45291
  };
45292
+ logistics_cart_index: {
45293
+ Args: {
45294
+ p_from?: string;
45295
+ p_to?: string;
45296
+ };
45297
+ Returns: {
45298
+ cart_id: string;
45299
+ cart_index: number;
45300
+ cart_label: string;
45301
+ is_shared: boolean;
45302
+ order_number: string;
45303
+ order_source: string;
45304
+ order_uuid: string;
45305
+ pick_date: string;
45306
+ printed_at: string;
45307
+ shifted: boolean;
45308
+ task_status: string;
45309
+ }[];
45310
+ };
44553
45311
  logistics_check_order_allowed: {
44554
45312
  Args: {
44555
45313
  p_lines: import("../integrations/supabase/types").Json;
@@ -44698,6 +45456,17 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44698
45456
  isSetofReturn: false;
44699
45457
  };
44700
45458
  };
45459
+ logistics_consistency_check: {
45460
+ Args: never;
45461
+ Returns: {
45462
+ agenda_carts: number;
45463
+ control_carts: number;
45464
+ ok: boolean;
45465
+ orphan_tasks: number;
45466
+ pick_date: string;
45467
+ raw_carts: number;
45468
+ }[];
45469
+ };
44701
45470
  logistics_delay_customer_email: {
44702
45471
  Args: {
44703
45472
  p_customer: string;
@@ -44723,6 +45492,12 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44723
45492
  };
44724
45493
  Returns: string;
44725
45494
  };
45495
+ logistics_document_type_map: {
45496
+ Args: {
45497
+ _document_code: string;
45498
+ };
45499
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
45500
+ };
44726
45501
  logistics_emit_event: {
44727
45502
  Args: {
44728
45503
  p_event_type: string;
@@ -44781,6 +45556,16 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44781
45556
  isSetofReturn: false;
44782
45557
  };
44783
45558
  };
45559
+ logistics_floriday_cart_plan: {
45560
+ Args: {
45561
+ p_order_id: string;
45562
+ };
45563
+ Returns: {
45564
+ carrier_type: string;
45565
+ idx: number;
45566
+ packages: number;
45567
+ }[];
45568
+ };
44784
45569
  logistics_floriday_claim_pushes: {
44785
45570
  Args: {
44786
45571
  _lease_seconds?: number;
@@ -44885,6 +45670,25 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44885
45670
  };
44886
45671
  Returns: number;
44887
45672
  };
45673
+ logistics_order_overview: {
45674
+ Args: {
45675
+ p_from?: string;
45676
+ p_to?: string;
45677
+ };
45678
+ Returns: {
45679
+ cart_count: number;
45680
+ customer_name: string;
45681
+ delivery_date: string;
45682
+ order_number: string;
45683
+ order_source: string;
45684
+ order_uuid: string;
45685
+ pick_date: string;
45686
+ plant_count: number;
45687
+ printed_at: string;
45688
+ shifted: boolean;
45689
+ status: string;
45690
+ }[];
45691
+ };
44888
45692
  logistics_order_pick_day: {
44889
45693
  Args: {
44890
45694
  p_order_ref: string;
@@ -44897,6 +45701,22 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44897
45701
  };
44898
45702
  Returns: string;
44899
45703
  };
45704
+ logistics_pick_agenda: {
45705
+ Args: {
45706
+ p_from?: string;
45707
+ p_to?: string;
45708
+ };
45709
+ Returns: {
45710
+ cart_count: number;
45711
+ in_preparation: number;
45712
+ order_count: number;
45713
+ orders: import("../integrations/supabase/types").Json;
45714
+ pick_date: string;
45715
+ plant_count: number;
45716
+ ready: number;
45717
+ shifted_count: number;
45718
+ }[];
45719
+ };
44900
45720
  logistics_pick_email_purpose: {
44901
45721
  Args: never;
44902
45722
  Returns: string;
@@ -44951,6 +45771,13 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
44951
45771
  };
44952
45772
  Returns: undefined;
44953
45773
  };
45774
+ logistics_plan_floriday_order: {
45775
+ Args: {
45776
+ p_buffer_id?: string;
45777
+ p_order_id: string;
45778
+ };
45779
+ Returns: number;
45780
+ };
44954
45781
  logistics_plan_impact_orders: {
44955
45782
  Args: {
44956
45783
  p_order_id: string;
@@ -45056,6 +45883,15 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
45056
45883
  };
45057
45884
  Returns: import("../integrations/supabase/types").Json;
45058
45885
  };
45886
+ logistics_resolve_pick_document: {
45887
+ Args: {
45888
+ _is_herprint: boolean;
45889
+ _queue_item_id: string;
45890
+ _session_id: string;
45891
+ _voorbeeld: boolean;
45892
+ };
45893
+ Returns: import("../integrations/supabase/types").Json;
45894
+ };
45059
45895
  logistics_resolve_settings: {
45060
45896
  Args: {
45061
45897
  p_config_id: string;
@@ -45496,6 +46332,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
45496
46332
  };
45497
46333
  pick_enqueue_print_job: {
45498
46334
  Args: {
46335
+ _is_herprint?: boolean;
45499
46336
  _printer_id?: string;
45500
46337
  _queue_item_id: string;
45501
46338
  _session_id?: string;
@@ -45509,6 +46346,13 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
45509
46346
  };
45510
46347
  Returns: import("../integrations/supabase/types").Json;
45511
46348
  };
46349
+ pick_preview_job: {
46350
+ Args: {
46351
+ _queue_item_id: string;
46352
+ _station_slug: string;
46353
+ };
46354
+ Returns: import("../integrations/supabase/types").Json;
46355
+ };
45512
46356
  pick_print_job_status: {
45513
46357
  Args: {
45514
46358
  _job_id: string;
@@ -45686,6 +46530,84 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
45686
46530
  };
45687
46531
  Returns: undefined;
45688
46532
  };
46533
+ planning_cancel_item: {
46534
+ Args: {
46535
+ _id: string;
46536
+ };
46537
+ Returns: undefined;
46538
+ };
46539
+ planning_list: {
46540
+ Args: {
46541
+ _from: string;
46542
+ _to: string;
46543
+ };
46544
+ Returns: {
46545
+ assigned_monteur_id: string | null;
46546
+ assistants: import("../integrations/supabase/types").Json | null;
46547
+ budget_mandate_cents: number | null;
46548
+ created_at: string | null;
46549
+ created_by: string | null;
46550
+ customer_id: string | null;
46551
+ customer_name: string | null;
46552
+ duration_minutes: number | null;
46553
+ end_at: string | null;
46554
+ id: string | null;
46555
+ needs_detail_review: boolean | null;
46556
+ notes: string | null;
46557
+ project_number: string | null;
46558
+ review_reasons: string[] | null;
46559
+ start_at: string | null;
46560
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
46561
+ updated_at: string | null;
46562
+ viewer_role: string | null;
46563
+ werkbon_id: string | null;
46564
+ work_address: string | null;
46565
+ }[];
46566
+ SetofOptions: {
46567
+ from: "*";
46568
+ to: "planning_overview";
46569
+ isOneToOne: false;
46570
+ isSetofReturn: true;
46571
+ };
46572
+ };
46573
+ planning_set_assistants: {
46574
+ Args: {
46575
+ _monteur_ids: string[];
46576
+ _planning_item_id: string;
46577
+ };
46578
+ Returns: undefined;
46579
+ };
46580
+ planning_upsert_item: {
46581
+ Args: {
46582
+ _assigned_monteur_id: string;
46583
+ _end_at: string;
46584
+ _notes?: string;
46585
+ _start_at: string;
46586
+ _werkbon_id: string;
46587
+ };
46588
+ Returns: {
46589
+ action: string;
46590
+ id: string;
46591
+ }[];
46592
+ };
46593
+ print_preview_toestaan: {
46594
+ Args: {
46595
+ _max?: number;
46596
+ _queue_item_id: string;
46597
+ _station_slug: string;
46598
+ _venster_sec?: number;
46599
+ };
46600
+ Returns: import("../integrations/supabase/types").Json;
46601
+ };
46602
+ print_preview_weiger: {
46603
+ Args: {
46604
+ _code: string;
46605
+ _queue_item_id: string;
46606
+ _reden: string;
46607
+ _station_slug: string;
46608
+ };
46609
+ Returns: undefined;
46610
+ };
45689
46611
  process_logistics_event: {
45690
46612
  Args: {
45691
46613
  p_event_id: string;
@@ -45803,6 +46725,14 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
45803
46725
  };
45804
46726
  Returns: undefined;
45805
46727
  };
46728
+ replace_order_carts: {
46729
+ Args: {
46730
+ p_buffer_id: string;
46731
+ p_carts: import("../integrations/supabase/types").Json;
46732
+ p_order_id: string;
46733
+ };
46734
+ Returns: import("../integrations/supabase/types").Json;
46735
+ };
45806
46736
  reset_floriday_sync_cursor: {
45807
46737
  Args: {
45808
46738
  p_connection_id: string;
@@ -45832,6 +46762,12 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
45832
46762
  };
45833
46763
  Returns: string;
45834
46764
  };
46765
+ resolve_print_job_printer_id: {
46766
+ Args: {
46767
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46768
+ };
46769
+ Returns: string;
46770
+ };
45835
46771
  resolve_product_id_for_item: {
45836
46772
  Args: {
45837
46773
  p_product_name: string;
@@ -46235,6 +47171,26 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
46235
47171
  };
46236
47172
  Returns: string[];
46237
47173
  };
47174
+ start_time_log_at: {
47175
+ Args: {
47176
+ p_clicked_at?: string;
47177
+ p_employee_id: string;
47178
+ p_start_lat?: number;
47179
+ p_start_lng?: number;
47180
+ p_type: string;
47181
+ p_work_order_id?: string;
47182
+ };
47183
+ Returns: import("../integrations/supabase/types").Json;
47184
+ };
47185
+ stop_time_log: {
47186
+ Args: {
47187
+ p_employee_id: string;
47188
+ p_end_lat?: number;
47189
+ p_end_lng?: number;
47190
+ p_end_time: string;
47191
+ };
47192
+ Returns: import("../integrations/supabase/types").Json;
47193
+ };
46238
47194
  switch_time_log: {
46239
47195
  Args: {
46240
47196
  p_employee_id: string;
@@ -46423,7 +47379,7 @@ export declare const recoverStockQueue: import("@tanstack/start-client-core").Op
46423
47379
  };
46424
47380
  CompositeTypes: { [_ in never]: never; };
46425
47381
  }, {
46426
- PostgrestVersion: "14.17";
47382
+ PostgrestVersion: "14.5";
46427
47383
  }>;
46428
47384
  userId: string;
46429
47385
  claims: import("@supabase/auth-js").JwtPayload;