@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
@@ -2851,6 +2851,84 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
2851
2851
  };
2852
2852
  Relationships: [];
2853
2853
  };
2854
+ delivery_notes: {
2855
+ Row: {
2856
+ byte_size: number | null;
2857
+ connection_id: string | null;
2858
+ content_type: string;
2859
+ created_at: string;
2860
+ error_message: string | null;
2861
+ fetched_at: string | null;
2862
+ fulfillment_order_id: string | null;
2863
+ http_status: number | null;
2864
+ id: string;
2865
+ label_code: string | null;
2866
+ letter: string | null;
2867
+ load_carrier_index: number | null;
2868
+ load_carrier_type: string | null;
2869
+ order_id: string | null;
2870
+ order_number: string | null;
2871
+ packages: number | null;
2872
+ source: string;
2873
+ status: string;
2874
+ storage_bucket: string;
2875
+ storage_path: string | null;
2876
+ updated_at: string;
2877
+ };
2878
+ Insert: {
2879
+ byte_size?: number | null;
2880
+ connection_id?: string | null;
2881
+ content_type?: string;
2882
+ created_at?: string;
2883
+ error_message?: string | null;
2884
+ fetched_at?: string | null;
2885
+ fulfillment_order_id?: string | null;
2886
+ http_status?: number | null;
2887
+ id?: string;
2888
+ label_code?: string | null;
2889
+ letter?: string | null;
2890
+ load_carrier_index?: number | null;
2891
+ load_carrier_type?: string | null;
2892
+ order_id?: string | null;
2893
+ order_number?: string | null;
2894
+ packages?: number | null;
2895
+ source?: string;
2896
+ status?: string;
2897
+ storage_bucket?: string;
2898
+ storage_path?: string | null;
2899
+ updated_at?: string;
2900
+ };
2901
+ Update: {
2902
+ byte_size?: number | null;
2903
+ connection_id?: string | null;
2904
+ content_type?: string;
2905
+ created_at?: string;
2906
+ error_message?: string | null;
2907
+ fetched_at?: string | null;
2908
+ fulfillment_order_id?: string | null;
2909
+ http_status?: number | null;
2910
+ id?: string;
2911
+ label_code?: string | null;
2912
+ letter?: string | null;
2913
+ load_carrier_index?: number | null;
2914
+ load_carrier_type?: string | null;
2915
+ order_id?: string | null;
2916
+ order_number?: string | null;
2917
+ packages?: number | null;
2918
+ source?: string;
2919
+ status?: string;
2920
+ storage_bucket?: string;
2921
+ storage_path?: string | null;
2922
+ updated_at?: string;
2923
+ };
2924
+ Relationships: [{
2925
+ foreignKeyName: "delivery_notes_order_id_fkey";
2926
+ columns: ["order_id"];
2927
+ isOneToOne: false;
2928
+ referencedRelation: "orders";
2929
+ referencedColumns: ["id"];
2930
+ }];
2931
+ };
2854
2932
  document_bronregels: {
2855
2933
  Row: {
2856
2934
  bron: string;
@@ -5904,10 +5982,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
5904
5982
  };
5905
5983
  floriday_connections: {
5906
5984
  Row: {
5907
- access_token: string | null;
5908
5985
  api_key: string;
5909
- client_id: string;
5910
- client_secret: string;
5911
5986
  created_at: string;
5912
5987
  customers_endpoint: string | null;
5913
5988
  environment: string;
@@ -5922,10 +5997,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
5922
5997
  updated_at: string;
5923
5998
  };
5924
5999
  Insert: {
5925
- access_token?: string | null;
5926
6000
  api_key: string;
5927
- client_id: string;
5928
- client_secret: string;
5929
6001
  created_at?: string;
5930
6002
  customers_endpoint?: string | null;
5931
6003
  environment: string;
@@ -5940,10 +6012,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
5940
6012
  updated_at?: string;
5941
6013
  };
5942
6014
  Update: {
5943
- access_token?: string | null;
5944
6015
  api_key?: string;
5945
- client_id?: string;
5946
- client_secret?: string;
5947
6016
  created_at?: string;
5948
6017
  customers_endpoint?: string | null;
5949
6018
  environment?: string;
@@ -6027,6 +6096,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
6027
6096
  attempts: number;
6028
6097
  connection_id: string;
6029
6098
  created_at: string;
6099
+ dead_lettered_at: string | null;
6030
6100
  desired_available: boolean | null;
6031
6101
  gateway_attempt_id: string | null;
6032
6102
  id: string;
@@ -6035,9 +6105,13 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
6035
6105
  locked_by: string | null;
6036
6106
  next_attempt_at: string;
6037
6107
  number_of_pieces: number;
6108
+ product_id: string | null;
6038
6109
  sent_at: string | null;
6039
6110
  status: string;
6111
+ stock_mode: string | null;
6040
6112
  superseded_by: string | null;
6113
+ target_week: number | null;
6114
+ target_year: number | null;
6041
6115
  trade_item_id: string;
6042
6116
  updated_at: string;
6043
6117
  user_id: string;
@@ -6046,6 +6120,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
6046
6120
  attempts?: number;
6047
6121
  connection_id: string;
6048
6122
  created_at?: string;
6123
+ dead_lettered_at?: string | null;
6049
6124
  desired_available?: boolean | null;
6050
6125
  gateway_attempt_id?: string | null;
6051
6126
  id?: string;
@@ -6054,9 +6129,13 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
6054
6129
  locked_by?: string | null;
6055
6130
  next_attempt_at?: string;
6056
6131
  number_of_pieces?: number;
6132
+ product_id?: string | null;
6057
6133
  sent_at?: string | null;
6058
6134
  status?: string;
6135
+ stock_mode?: string | null;
6059
6136
  superseded_by?: string | null;
6137
+ target_week?: number | null;
6138
+ target_year?: number | null;
6060
6139
  trade_item_id: string;
6061
6140
  updated_at?: string;
6062
6141
  user_id: string;
@@ -6065,6 +6144,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
6065
6144
  attempts?: number;
6066
6145
  connection_id?: string;
6067
6146
  created_at?: string;
6147
+ dead_lettered_at?: string | null;
6068
6148
  desired_available?: boolean | null;
6069
6149
  gateway_attempt_id?: string | null;
6070
6150
  id?: string;
@@ -6073,9 +6153,13 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
6073
6153
  locked_by?: string | null;
6074
6154
  next_attempt_at?: string;
6075
6155
  number_of_pieces?: number;
6156
+ product_id?: string | null;
6076
6157
  sent_at?: string | null;
6077
6158
  status?: string;
6159
+ stock_mode?: string | null;
6078
6160
  superseded_by?: string | null;
6161
+ target_week?: number | null;
6162
+ target_year?: number | null;
6079
6163
  trade_item_id?: string;
6080
6164
  updated_at?: string;
6081
6165
  user_id?: string;
@@ -6484,6 +6568,87 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
6484
6568
  referencedColumns: ["id"];
6485
6569
  }];
6486
6570
  };
6571
+ floriday_inventory_settings: {
6572
+ Row: {
6573
+ buffer_quantity: number;
6574
+ connection_id: string;
6575
+ created_at: string;
6576
+ desired_availability: boolean;
6577
+ desired_quantity: number;
6578
+ fixed_quantity: number | null;
6579
+ floriday_trade_item_id: string | null;
6580
+ id: string;
6581
+ last_confirmed_at: string | null;
6582
+ last_enqueued_at: string | null;
6583
+ last_published_at: string | null;
6584
+ last_sync_error: string | null;
6585
+ manual_quantity: number | null;
6586
+ maximum_quantity: number | null;
6587
+ product_id: string;
6588
+ quantity_control: string;
6589
+ remote_available: boolean | null;
6590
+ remote_checked_at: string | null;
6591
+ remote_quantity: number | null;
6592
+ stock_mode: string;
6593
+ sync_status: string;
6594
+ updated_at: string;
6595
+ updated_by: string | null;
6596
+ user_id: string;
6597
+ };
6598
+ Insert: {
6599
+ buffer_quantity?: number;
6600
+ connection_id: string;
6601
+ created_at?: string;
6602
+ desired_availability?: boolean;
6603
+ desired_quantity?: number;
6604
+ fixed_quantity?: number | null;
6605
+ floriday_trade_item_id?: string | null;
6606
+ id?: string;
6607
+ last_confirmed_at?: string | null;
6608
+ last_enqueued_at?: string | null;
6609
+ last_published_at?: string | null;
6610
+ last_sync_error?: string | null;
6611
+ manual_quantity?: number | null;
6612
+ maximum_quantity?: number | null;
6613
+ product_id: string;
6614
+ quantity_control?: string;
6615
+ remote_available?: boolean | null;
6616
+ remote_checked_at?: string | null;
6617
+ remote_quantity?: number | null;
6618
+ stock_mode?: string;
6619
+ sync_status?: string;
6620
+ updated_at?: string;
6621
+ updated_by?: string | null;
6622
+ user_id: string;
6623
+ };
6624
+ Update: {
6625
+ buffer_quantity?: number;
6626
+ connection_id?: string;
6627
+ created_at?: string;
6628
+ desired_availability?: boolean;
6629
+ desired_quantity?: number;
6630
+ fixed_quantity?: number | null;
6631
+ floriday_trade_item_id?: string | null;
6632
+ id?: string;
6633
+ last_confirmed_at?: string | null;
6634
+ last_enqueued_at?: string | null;
6635
+ last_published_at?: string | null;
6636
+ last_sync_error?: string | null;
6637
+ manual_quantity?: number | null;
6638
+ maximum_quantity?: number | null;
6639
+ product_id?: string;
6640
+ quantity_control?: string;
6641
+ remote_available?: boolean | null;
6642
+ remote_checked_at?: string | null;
6643
+ remote_quantity?: number | null;
6644
+ stock_mode?: string;
6645
+ sync_status?: string;
6646
+ updated_at?: string;
6647
+ updated_by?: string | null;
6648
+ user_id?: string;
6649
+ };
6650
+ Relationships: [];
6651
+ };
6487
6652
  floriday_invoices_cache: {
6488
6653
  Row: {
6489
6654
  buyer_organization_id: string | null;
@@ -6772,6 +6937,39 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
6772
6937
  };
6773
6938
  Relationships: [];
6774
6939
  };
6940
+ floriday_sales_order_ingest: {
6941
+ Row: {
6942
+ connection_id: string;
6943
+ created_at: string;
6944
+ id: string;
6945
+ impact: import("../integrations/supabase/types").Json;
6946
+ order_status: string | null;
6947
+ order_version: number;
6948
+ processed_at: string;
6949
+ sales_order_id: string;
6950
+ };
6951
+ Insert: {
6952
+ connection_id: string;
6953
+ created_at?: string;
6954
+ id?: string;
6955
+ impact?: import("../integrations/supabase/types").Json;
6956
+ order_status?: string | null;
6957
+ order_version?: number;
6958
+ processed_at?: string;
6959
+ sales_order_id: string;
6960
+ };
6961
+ Update: {
6962
+ connection_id?: string;
6963
+ created_at?: string;
6964
+ id?: string;
6965
+ impact?: import("../integrations/supabase/types").Json;
6966
+ order_status?: string | null;
6967
+ order_version?: number;
6968
+ processed_at?: string;
6969
+ sales_order_id?: string;
6970
+ };
6971
+ Relationships: [];
6972
+ };
6775
6973
  floriday_sales_strategies_cache: {
6776
6974
  Row: {
6777
6975
  connection_id: string;
@@ -6871,6 +7069,39 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
6871
7069
  };
6872
7070
  Relationships: [];
6873
7071
  };
7072
+ floriday_sync_cursors: {
7073
+ Row: {
7074
+ connection_id: string;
7075
+ created_at: string;
7076
+ id: string;
7077
+ last_error: string | null;
7078
+ last_sync_at: string | null;
7079
+ resource_type: string;
7080
+ sequence_number: number;
7081
+ updated_at: string;
7082
+ };
7083
+ Insert: {
7084
+ connection_id: string;
7085
+ created_at?: string;
7086
+ id?: string;
7087
+ last_error?: string | null;
7088
+ last_sync_at?: string | null;
7089
+ resource_type: string;
7090
+ sequence_number?: number;
7091
+ updated_at?: string;
7092
+ };
7093
+ Update: {
7094
+ connection_id?: string;
7095
+ created_at?: string;
7096
+ id?: string;
7097
+ last_error?: string | null;
7098
+ last_sync_at?: string | null;
7099
+ resource_type?: string;
7100
+ sequence_number?: number;
7101
+ updated_at?: string;
7102
+ };
7103
+ Relationships: [];
7104
+ };
6874
7105
  floriday_sync_state: {
6875
7106
  Row: {
6876
7107
  connection_id: string;
@@ -7561,6 +7792,42 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
7561
7792
  };
7562
7793
  Relationships: [];
7563
7794
  };
7795
+ inventory_stock_snapshots: {
7796
+ Row: {
7797
+ connection_id: string;
7798
+ created_at: string;
7799
+ erp_available_quantity: number;
7800
+ floriday_desired_quantity: number;
7801
+ floriday_remote_quantity: number | null;
7802
+ granularity: string;
7803
+ id: string;
7804
+ snapshot_at: string;
7805
+ user_id: string | null;
7806
+ };
7807
+ Insert: {
7808
+ connection_id: string;
7809
+ created_at?: string;
7810
+ erp_available_quantity?: number;
7811
+ floriday_desired_quantity?: number;
7812
+ floriday_remote_quantity?: number | null;
7813
+ granularity?: string;
7814
+ id?: string;
7815
+ snapshot_at?: string;
7816
+ user_id?: string | null;
7817
+ };
7818
+ Update: {
7819
+ connection_id?: string;
7820
+ created_at?: string;
7821
+ erp_available_quantity?: number;
7822
+ floriday_desired_quantity?: number;
7823
+ floriday_remote_quantity?: number | null;
7824
+ granularity?: string;
7825
+ id?: string;
7826
+ snapshot_at?: string;
7827
+ user_id?: string | null;
7828
+ };
7829
+ Relationships: [];
7830
+ };
7564
7831
  invoice_items: {
7565
7832
  Row: {
7566
7833
  created_at: string;
@@ -8069,13 +8336,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8069
8336
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
8070
8337
  updated_at?: string;
8071
8338
  };
8072
- Relationships: [{
8073
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8074
- columns: ["legacy_customer_id"];
8075
- isOneToOne: false;
8076
- referencedRelation: "customers";
8077
- referencedColumns: ["id"];
8078
- }];
8339
+ Relationships: [];
8079
8340
  };
8080
8341
  itk_dynamic_fields: {
8081
8342
  Row: {
@@ -8107,6 +8368,180 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8107
8368
  };
8108
8369
  Relationships: [];
8109
8370
  };
8371
+ itk_handover_rechten: {
8372
+ Row: {
8373
+ created_at: string;
8374
+ id: string;
8375
+ module_id: string;
8376
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8377
+ updated_at: string;
8378
+ user_id: string | null;
8379
+ };
8380
+ Insert: {
8381
+ created_at?: string;
8382
+ id?: string;
8383
+ module_id: string;
8384
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8385
+ updated_at?: string;
8386
+ user_id?: string | null;
8387
+ };
8388
+ Update: {
8389
+ created_at?: string;
8390
+ id?: string;
8391
+ module_id?: string;
8392
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8393
+ updated_at?: string;
8394
+ user_id?: string | null;
8395
+ };
8396
+ Relationships: [];
8397
+ };
8398
+ itk_handover_tokens: {
8399
+ Row: {
8400
+ aangemaakt_door: string | null;
8401
+ created_at: string;
8402
+ id: string;
8403
+ is_actief: boolean;
8404
+ laatst_gebruikt_op: string | null;
8405
+ label: string;
8406
+ module_id: string;
8407
+ token_hash: string;
8408
+ updated_at: string;
8409
+ verloopt_op: string | null;
8410
+ };
8411
+ Insert: {
8412
+ aangemaakt_door?: string | null;
8413
+ created_at?: string;
8414
+ id?: string;
8415
+ is_actief?: boolean;
8416
+ laatst_gebruikt_op?: string | null;
8417
+ label?: string;
8418
+ module_id: string;
8419
+ token_hash: string;
8420
+ updated_at?: string;
8421
+ verloopt_op?: string | null;
8422
+ };
8423
+ Update: {
8424
+ aangemaakt_door?: string | null;
8425
+ created_at?: string;
8426
+ id?: string;
8427
+ is_actief?: boolean;
8428
+ laatst_gebruikt_op?: string | null;
8429
+ label?: string;
8430
+ module_id?: string;
8431
+ token_hash?: string;
8432
+ updated_at?: string;
8433
+ verloopt_op?: string | null;
8434
+ };
8435
+ Relationships: [];
8436
+ };
8437
+ itk_module_handovers: {
8438
+ Row: {
8439
+ bevindingen: string | null;
8440
+ bezit_tabellen: string[];
8441
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
8442
+ contractfuncties: string[];
8443
+ created_at: string;
8444
+ eigenaar_module_id: string | null;
8445
+ gepubliceerd_door: string | null;
8446
+ gepubliceerd_op: string;
8447
+ herzieningstermijn_dagen: number;
8448
+ id: string;
8449
+ inhoud_md: string;
8450
+ is_actueel: boolean;
8451
+ module_id: string;
8452
+ module_titel: string;
8453
+ ontbrekende_contracten: string[];
8454
+ samenvatting: string | null;
8455
+ updated_at: string;
8456
+ versie: number;
8457
+ };
8458
+ Insert: {
8459
+ bevindingen?: string | null;
8460
+ bezit_tabellen?: string[];
8461
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8462
+ contractfuncties?: string[];
8463
+ created_at?: string;
8464
+ eigenaar_module_id?: string | null;
8465
+ gepubliceerd_door?: string | null;
8466
+ gepubliceerd_op?: string;
8467
+ herzieningstermijn_dagen?: number;
8468
+ id?: string;
8469
+ inhoud_md: string;
8470
+ is_actueel?: boolean;
8471
+ module_id: string;
8472
+ module_titel: string;
8473
+ ontbrekende_contracten?: string[];
8474
+ samenvatting?: string | null;
8475
+ updated_at?: string;
8476
+ versie?: number;
8477
+ };
8478
+ Update: {
8479
+ bevindingen?: string | null;
8480
+ bezit_tabellen?: string[];
8481
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8482
+ contractfuncties?: string[];
8483
+ created_at?: string;
8484
+ eigenaar_module_id?: string | null;
8485
+ gepubliceerd_door?: string | null;
8486
+ gepubliceerd_op?: string;
8487
+ herzieningstermijn_dagen?: number;
8488
+ id?: string;
8489
+ inhoud_md?: string;
8490
+ is_actueel?: boolean;
8491
+ module_id?: string;
8492
+ module_titel?: string;
8493
+ ontbrekende_contracten?: string[];
8494
+ samenvatting?: string | null;
8495
+ updated_at?: string;
8496
+ versie?: number;
8497
+ };
8498
+ Relationships: [];
8499
+ };
8500
+ itk_module_instructies: {
8501
+ Row: {
8502
+ created_at: string;
8503
+ eigenaar_module_id: string;
8504
+ gepubliceerd_door: string | null;
8505
+ gepubliceerd_op: string;
8506
+ id: string;
8507
+ inhoud_md: string;
8508
+ is_actueel: boolean;
8509
+ sleutel: string;
8510
+ titel: string;
8511
+ toelichting: string | null;
8512
+ updated_at: string;
8513
+ versie: number;
8514
+ };
8515
+ Insert: {
8516
+ created_at?: string;
8517
+ eigenaar_module_id?: string;
8518
+ gepubliceerd_door?: string | null;
8519
+ gepubliceerd_op?: string;
8520
+ id?: string;
8521
+ inhoud_md: string;
8522
+ is_actueel?: boolean;
8523
+ sleutel: string;
8524
+ titel: string;
8525
+ toelichting?: string | null;
8526
+ updated_at?: string;
8527
+ versie?: number;
8528
+ };
8529
+ Update: {
8530
+ created_at?: string;
8531
+ eigenaar_module_id?: string;
8532
+ gepubliceerd_door?: string | null;
8533
+ gepubliceerd_op?: string;
8534
+ id?: string;
8535
+ inhoud_md?: string;
8536
+ is_actueel?: boolean;
8537
+ sleutel?: string;
8538
+ titel?: string;
8539
+ toelichting?: string | null;
8540
+ updated_at?: string;
8541
+ versie?: number;
8542
+ };
8543
+ Relationships: [];
8544
+ };
8110
8545
  itk_offerte_events: {
8111
8546
  Row: {
8112
8547
  created_at: string;
@@ -10735,6 +11170,24 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10735
11170
  };
10736
11171
  Relationships: [];
10737
11172
  };
11173
+ maps_job_lease: {
11174
+ Row: {
11175
+ job: string;
11176
+ locked_until: string;
11177
+ updated_at: string;
11178
+ };
11179
+ Insert: {
11180
+ job: string;
11181
+ locked_until?: string;
11182
+ updated_at?: string;
11183
+ };
11184
+ Update: {
11185
+ job?: string;
11186
+ locked_until?: string;
11187
+ updated_at?: string;
11188
+ };
11189
+ Relationships: [];
11190
+ };
10738
11191
  maps_request_queue: {
10739
11192
  Row: {
10740
11193
  attempts: number;
@@ -10796,6 +11249,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10796
11249
  last_error: string | null;
10797
11250
  last_error_at: string | null;
10798
11251
  last_success_at: string | null;
11252
+ provider: string;
10799
11253
  updated_at: string;
10800
11254
  };
10801
11255
  Insert: {
@@ -10807,6 +11261,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10807
11261
  last_error?: string | null;
10808
11262
  last_error_at?: string | null;
10809
11263
  last_success_at?: string | null;
11264
+ provider?: string;
10810
11265
  updated_at?: string;
10811
11266
  };
10812
11267
  Update: {
@@ -10818,6 +11273,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10818
11273
  last_error?: string | null;
10819
11274
  last_error_at?: string | null;
10820
11275
  last_success_at?: string | null;
11276
+ provider?: string;
10821
11277
  updated_at?: string;
10822
11278
  };
10823
11279
  Relationships: [];
@@ -13460,6 +13916,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13460
13916
  isOneToOne: false;
13461
13917
  referencedRelation: "planning_items";
13462
13918
  referencedColumns: ["id"];
13919
+ }, {
13920
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
13921
+ columns: ["planning_item_id"];
13922
+ isOneToOne: false;
13923
+ referencedRelation: "planning_overview";
13924
+ referencedColumns: ["id"];
13463
13925
  }];
13464
13926
  };
13465
13927
  planning_items: {
@@ -13555,6 +14017,39 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13555
14017
  };
13556
14018
  Relationships: [];
13557
14019
  };
14020
+ print_dedupe_events: {
14021
+ Row: {
14022
+ bestaande_job_id: string | null;
14023
+ created_at: string;
14024
+ detail: string | null;
14025
+ documentnaam: string | null;
14026
+ documenttype: string | null;
14027
+ id: string;
14028
+ idempotentie_sleutel: string;
14029
+ reden: string;
14030
+ };
14031
+ Insert: {
14032
+ bestaande_job_id?: string | null;
14033
+ created_at?: string;
14034
+ detail?: string | null;
14035
+ documentnaam?: string | null;
14036
+ documenttype?: string | null;
14037
+ id?: string;
14038
+ idempotentie_sleutel: string;
14039
+ reden: string;
14040
+ };
14041
+ Update: {
14042
+ bestaande_job_id?: string | null;
14043
+ created_at?: string;
14044
+ detail?: string | null;
14045
+ documentnaam?: string | null;
14046
+ documenttype?: string | null;
14047
+ id?: string;
14048
+ idempotentie_sleutel?: string;
14049
+ reden?: string;
14050
+ };
14051
+ Relationships: [];
14052
+ };
13558
14053
  print_job_logs: {
13559
14054
  Row: {
13560
14055
  created_at: string;
@@ -13596,6 +14091,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13596
14091
  foutmelding: string | null;
13597
14092
  gebruiker_id: string | null;
13598
14093
  gebruiker_naam: string;
14094
+ gebruikte_bron: string | null;
14095
+ gebruikte_layout_id: string | null;
13599
14096
  gestart_op: string | null;
13600
14097
  herkomst: string | null;
13601
14098
  id: string;
@@ -13603,6 +14100,9 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13603
14100
  is_herprint: boolean;
13604
14101
  kopieen: number;
13605
14102
  layout_id: string | null;
14103
+ lokaal_opgeslagen_op: string | null;
14104
+ lokale_pdf_fout: string | null;
14105
+ lokale_pdf_status: string | null;
13606
14106
  opgepakt_op: string | null;
13607
14107
  paginas: number;
13608
14108
  payload: import("../integrations/supabase/types").Json;
@@ -13611,6 +14111,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13611
14111
  pogingen: number;
13612
14112
  printer_id: string | null;
13613
14113
  render_html: string | null;
14114
+ resultaat_pdf_base64: string | null;
13614
14115
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13615
14116
  updated_at: string;
13616
14117
  volgende_poging: string | null;
@@ -13626,6 +14127,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13626
14127
  foutmelding?: string | null;
13627
14128
  gebruiker_id?: string | null;
13628
14129
  gebruiker_naam?: string;
14130
+ gebruikte_bron?: string | null;
14131
+ gebruikte_layout_id?: string | null;
13629
14132
  gestart_op?: string | null;
13630
14133
  herkomst?: string | null;
13631
14134
  id?: string;
@@ -13633,6 +14136,9 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13633
14136
  is_herprint?: boolean;
13634
14137
  kopieen?: number;
13635
14138
  layout_id?: string | null;
14139
+ lokaal_opgeslagen_op?: string | null;
14140
+ lokale_pdf_fout?: string | null;
14141
+ lokale_pdf_status?: string | null;
13636
14142
  opgepakt_op?: string | null;
13637
14143
  paginas?: number;
13638
14144
  payload?: import("../integrations/supabase/types").Json;
@@ -13641,6 +14147,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13641
14147
  pogingen?: number;
13642
14148
  printer_id?: string | null;
13643
14149
  render_html?: string | null;
14150
+ resultaat_pdf_base64?: string | null;
13644
14151
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13645
14152
  updated_at?: string;
13646
14153
  volgende_poging?: string | null;
@@ -13656,6 +14163,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13656
14163
  foutmelding?: string | null;
13657
14164
  gebruiker_id?: string | null;
13658
14165
  gebruiker_naam?: string;
14166
+ gebruikte_bron?: string | null;
14167
+ gebruikte_layout_id?: string | null;
13659
14168
  gestart_op?: string | null;
13660
14169
  herkomst?: string | null;
13661
14170
  id?: string;
@@ -13663,6 +14172,9 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13663
14172
  is_herprint?: boolean;
13664
14173
  kopieen?: number;
13665
14174
  layout_id?: string | null;
14175
+ lokaal_opgeslagen_op?: string | null;
14176
+ lokale_pdf_fout?: string | null;
14177
+ lokale_pdf_status?: string | null;
13666
14178
  opgepakt_op?: string | null;
13667
14179
  paginas?: number;
13668
14180
  payload?: import("../integrations/supabase/types").Json;
@@ -13671,6 +14183,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13671
14183
  pogingen?: number;
13672
14184
  printer_id?: string | null;
13673
14185
  render_html?: string | null;
14186
+ resultaat_pdf_base64?: string | null;
13674
14187
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13675
14188
  updated_at?: string;
13676
14189
  volgende_poging?: string | null;
@@ -13789,6 +14302,39 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13789
14302
  };
13790
14303
  Relationships: [];
13791
14304
  };
14305
+ print_preview_events: {
14306
+ Row: {
14307
+ code: string | null;
14308
+ created_at: string;
14309
+ detail: import("../integrations/supabase/types").Json;
14310
+ id: string;
14311
+ queue_item_id: string | null;
14312
+ reden: string | null;
14313
+ station_slug: string | null;
14314
+ uitkomst: string;
14315
+ };
14316
+ Insert: {
14317
+ code?: string | null;
14318
+ created_at?: string;
14319
+ detail?: import("../integrations/supabase/types").Json;
14320
+ id?: string;
14321
+ queue_item_id?: string | null;
14322
+ reden?: string | null;
14323
+ station_slug?: string | null;
14324
+ uitkomst?: string;
14325
+ };
14326
+ Update: {
14327
+ code?: string | null;
14328
+ created_at?: string;
14329
+ detail?: import("../integrations/supabase/types").Json;
14330
+ id?: string;
14331
+ queue_item_id?: string | null;
14332
+ reden?: string | null;
14333
+ station_slug?: string | null;
14334
+ uitkomst?: string;
14335
+ };
14336
+ Relationships: [];
14337
+ };
13792
14338
  print_queue_runners: {
13793
14339
  Row: {
13794
14340
  actief: boolean;
@@ -14028,6 +14574,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
14028
14574
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14029
14575
  online: boolean;
14030
14576
  papierformaat: string;
14577
+ pdf_map: string | null;
14031
14578
  poort: number | null;
14032
14579
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14033
14580
  systeemnaam: string;
@@ -14053,6 +14600,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
14053
14600
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14054
14601
  online?: boolean;
14055
14602
  papierformaat?: string;
14603
+ pdf_map?: string | null;
14056
14604
  poort?: number | null;
14057
14605
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14058
14606
  systeemnaam?: string;
@@ -14078,6 +14626,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
14078
14626
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14079
14627
  online?: boolean;
14080
14628
  papierformaat?: string;
14629
+ pdf_map?: string | null;
14081
14630
  poort?: number | null;
14082
14631
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14083
14632
  systeemnaam?: string;
@@ -14950,450 +15499,6 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
14950
15499
  referencedColumns: ["id"];
14951
15500
  }];
14952
15501
  };
14953
- quote_activities: {
14954
- Row: {
14955
- created_at: string;
14956
- event_type: string;
14957
- id: string;
14958
- metadata: import("../integrations/supabase/types").Json;
14959
- quote_id: string;
14960
- user_id: string | null;
14961
- };
14962
- Insert: {
14963
- created_at?: string;
14964
- event_type: string;
14965
- id?: string;
14966
- metadata?: import("../integrations/supabase/types").Json;
14967
- quote_id: string;
14968
- user_id?: string | null;
14969
- };
14970
- Update: {
14971
- created_at?: string;
14972
- event_type?: string;
14973
- id?: string;
14974
- metadata?: import("../integrations/supabase/types").Json;
14975
- quote_id?: string;
14976
- user_id?: string | null;
14977
- };
14978
- Relationships: [{
14979
- foreignKeyName: "quote_activities_quote_id_fkey";
14980
- columns: ["quote_id"];
14981
- isOneToOne: false;
14982
- referencedRelation: "quotes";
14983
- referencedColumns: ["id"];
14984
- }];
14985
- };
14986
- quote_attachments: {
14987
- Row: {
14988
- created_at: string;
14989
- file_name: string;
14990
- file_size: number | null;
14991
- file_url: string;
14992
- id: string;
14993
- mime_type: string | null;
14994
- quote_id: string;
14995
- };
14996
- Insert: {
14997
- created_at?: string;
14998
- file_name: string;
14999
- file_size?: number | null;
15000
- file_url: string;
15001
- id?: string;
15002
- mime_type?: string | null;
15003
- quote_id: string;
15004
- };
15005
- Update: {
15006
- created_at?: string;
15007
- file_name?: string;
15008
- file_size?: number | null;
15009
- file_url?: string;
15010
- id?: string;
15011
- mime_type?: string | null;
15012
- quote_id?: string;
15013
- };
15014
- Relationships: [{
15015
- foreignKeyName: "quote_attachments_quote_id_fkey";
15016
- columns: ["quote_id"];
15017
- isOneToOne: false;
15018
- referencedRelation: "quotes";
15019
- referencedColumns: ["id"];
15020
- }];
15021
- };
15022
- quote_field_options: {
15023
- Row: {
15024
- created_at: string;
15025
- field_id: string;
15026
- id: string;
15027
- label: string;
15028
- sort_order: number;
15029
- value: string;
15030
- };
15031
- Insert: {
15032
- created_at?: string;
15033
- field_id: string;
15034
- id?: string;
15035
- label: string;
15036
- sort_order?: number;
15037
- value: string;
15038
- };
15039
- Update: {
15040
- created_at?: string;
15041
- field_id?: string;
15042
- id?: string;
15043
- label?: string;
15044
- sort_order?: number;
15045
- value?: string;
15046
- };
15047
- Relationships: [{
15048
- foreignKeyName: "quote_field_options_field_id_fkey";
15049
- columns: ["field_id"];
15050
- isOneToOne: false;
15051
- referencedRelation: "quote_field_settings";
15052
- referencedColumns: ["id"];
15053
- }];
15054
- };
15055
- quote_field_settings: {
15056
- Row: {
15057
- created_at: string;
15058
- default_value: string | null;
15059
- field_key: string;
15060
- field_type: string;
15061
- id: string;
15062
- is_system: boolean;
15063
- label: string;
15064
- required: boolean;
15065
- sort_order: number;
15066
- updated_at: string;
15067
- visible: boolean;
15068
- };
15069
- Insert: {
15070
- created_at?: string;
15071
- default_value?: string | null;
15072
- field_key: string;
15073
- field_type: string;
15074
- id?: string;
15075
- is_system?: boolean;
15076
- label: string;
15077
- required?: boolean;
15078
- sort_order?: number;
15079
- updated_at?: string;
15080
- visible?: boolean;
15081
- };
15082
- Update: {
15083
- created_at?: string;
15084
- default_value?: string | null;
15085
- field_key?: string;
15086
- field_type?: string;
15087
- id?: string;
15088
- is_system?: boolean;
15089
- label?: string;
15090
- required?: boolean;
15091
- sort_order?: number;
15092
- updated_at?: string;
15093
- visible?: boolean;
15094
- };
15095
- Relationships: [];
15096
- };
15097
- quote_items: {
15098
- Row: {
15099
- category: string | null;
15100
- created_at: string;
15101
- description: string;
15102
- id: string;
15103
- line_total: number;
15104
- module_id: string | null;
15105
- name: string | null;
15106
- quantity: number;
15107
- quote_id: string;
15108
- sort_order: number;
15109
- unit_price: number;
15110
- };
15111
- Insert: {
15112
- category?: string | null;
15113
- created_at?: string;
15114
- description?: string;
15115
- id?: string;
15116
- line_total?: number;
15117
- module_id?: string | null;
15118
- name?: string | null;
15119
- quantity?: number;
15120
- quote_id: string;
15121
- sort_order?: number;
15122
- unit_price?: number;
15123
- };
15124
- Update: {
15125
- category?: string | null;
15126
- created_at?: string;
15127
- description?: string;
15128
- id?: string;
15129
- line_total?: number;
15130
- module_id?: string | null;
15131
- name?: string | null;
15132
- quantity?: number;
15133
- quote_id?: string;
15134
- sort_order?: number;
15135
- unit_price?: number;
15136
- };
15137
- Relationships: [{
15138
- foreignKeyName: "quote_items_module_id_fkey";
15139
- columns: ["module_id"];
15140
- isOneToOne: false;
15141
- referencedRelation: "quote_modules";
15142
- referencedColumns: ["id"];
15143
- }, {
15144
- foreignKeyName: "quote_items_quote_id_fkey";
15145
- columns: ["quote_id"];
15146
- isOneToOne: false;
15147
- referencedRelation: "quotes";
15148
- referencedColumns: ["id"];
15149
- }];
15150
- };
15151
- quote_modules: {
15152
- Row: {
15153
- category: string | null;
15154
- created_at: string;
15155
- description: string | null;
15156
- id: string;
15157
- is_active: boolean;
15158
- name: string;
15159
- price: number;
15160
- sort_order: number;
15161
- updated_at: string;
15162
- };
15163
- Insert: {
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
- Update: {
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
- Relationships: [];
15186
- };
15187
- quote_templates: {
15188
- Row: {
15189
- created_at: string;
15190
- description: string | null;
15191
- field_values: import("../integrations/supabase/types").Json;
15192
- id: string;
15193
- is_default: boolean;
15194
- items: import("../integrations/supabase/types").Json;
15195
- name: string;
15196
- updated_at: string;
15197
- vat_rate: number;
15198
- };
15199
- Insert: {
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
- Update: {
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
- Relationships: [];
15222
- };
15223
- quote_terms: {
15224
- Row: {
15225
- content: string | null;
15226
- created_at: string;
15227
- file_url: string | null;
15228
- id: string;
15229
- is_active: boolean;
15230
- name: string;
15231
- published_at: string | null;
15232
- updated_at: string;
15233
- version: string;
15234
- };
15235
- Insert: {
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
- Update: {
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
- Relationships: [];
15258
- };
15259
- quotes: {
15260
- Row: {
15261
- accepted_at: string | null;
15262
- archived_at: string | null;
15263
- contact_id: string | null;
15264
- created_at: string;
15265
- customer_id: string | null;
15266
- discount: number;
15267
- expires_at: string | null;
15268
- field_values: import("../integrations/supabase/types").Json;
15269
- id: string;
15270
- notes: string | null;
15271
- owner_id: string | null;
15272
- personal_message: string | null;
15273
- project_id: string | null;
15274
- prospect_id: string | null;
15275
- public_token: string;
15276
- quote_number: string | null;
15277
- recipient_email: string | null;
15278
- recipient_name: string | null;
15279
- rejected_at: string | null;
15280
- sent_at: string | null;
15281
- status: string;
15282
- subtotal: number;
15283
- template_id: string | null;
15284
- terms_id: string | null;
15285
- title: string;
15286
- total: number;
15287
- updated_at: string;
15288
- valid_until: string | null;
15289
- vat_amount: number;
15290
- vat_rate: number;
15291
- viewed_at: string | null;
15292
- };
15293
- Insert: {
15294
- accepted_at?: string | null;
15295
- archived_at?: string | null;
15296
- contact_id?: string | null;
15297
- created_at?: string;
15298
- customer_id?: string | null;
15299
- discount?: number;
15300
- expires_at?: string | null;
15301
- field_values?: import("../integrations/supabase/types").Json;
15302
- id?: string;
15303
- notes?: string | null;
15304
- owner_id?: string | null;
15305
- personal_message?: string | null;
15306
- project_id?: string | null;
15307
- prospect_id?: string | null;
15308
- public_token?: string;
15309
- quote_number?: string | null;
15310
- recipient_email?: string | null;
15311
- recipient_name?: string | null;
15312
- rejected_at?: string | null;
15313
- sent_at?: string | null;
15314
- status?: string;
15315
- subtotal?: number;
15316
- template_id?: string | null;
15317
- terms_id?: string | null;
15318
- title?: string;
15319
- total?: number;
15320
- updated_at?: string;
15321
- valid_until?: string | null;
15322
- vat_amount?: number;
15323
- vat_rate?: number;
15324
- viewed_at?: string | null;
15325
- };
15326
- Update: {
15327
- accepted_at?: string | null;
15328
- archived_at?: string | null;
15329
- contact_id?: string | null;
15330
- created_at?: string;
15331
- customer_id?: string | null;
15332
- discount?: number;
15333
- expires_at?: string | null;
15334
- field_values?: import("../integrations/supabase/types").Json;
15335
- id?: string;
15336
- notes?: string | null;
15337
- owner_id?: string | null;
15338
- personal_message?: string | null;
15339
- project_id?: string | null;
15340
- prospect_id?: string | null;
15341
- public_token?: string;
15342
- quote_number?: string | null;
15343
- recipient_email?: string | null;
15344
- recipient_name?: string | null;
15345
- rejected_at?: string | null;
15346
- sent_at?: string | null;
15347
- status?: string;
15348
- subtotal?: number;
15349
- template_id?: string | null;
15350
- terms_id?: string | null;
15351
- title?: string;
15352
- total?: number;
15353
- updated_at?: string;
15354
- valid_until?: string | null;
15355
- vat_amount?: number;
15356
- vat_rate?: number;
15357
- viewed_at?: string | null;
15358
- };
15359
- Relationships: [{
15360
- foreignKeyName: "quotes_contact_id_fkey";
15361
- columns: ["contact_id"];
15362
- isOneToOne: false;
15363
- referencedRelation: "customer_contacts";
15364
- referencedColumns: ["id"];
15365
- }, {
15366
- foreignKeyName: "quotes_customer_id_fkey";
15367
- columns: ["customer_id"];
15368
- isOneToOne: false;
15369
- referencedRelation: "customers";
15370
- referencedColumns: ["id"];
15371
- }, {
15372
- foreignKeyName: "quotes_project_id_fkey";
15373
- columns: ["project_id"];
15374
- isOneToOne: false;
15375
- referencedRelation: "projects";
15376
- referencedColumns: ["id"];
15377
- }, {
15378
- foreignKeyName: "quotes_prospect_id_fkey";
15379
- columns: ["prospect_id"];
15380
- isOneToOne: false;
15381
- referencedRelation: "prospects";
15382
- referencedColumns: ["id"];
15383
- }, {
15384
- foreignKeyName: "quotes_template_id_fkey";
15385
- columns: ["template_id"];
15386
- isOneToOne: false;
15387
- referencedRelation: "quote_templates";
15388
- referencedColumns: ["id"];
15389
- }, {
15390
- foreignKeyName: "quotes_terms_id_fkey";
15391
- columns: ["terms_id"];
15392
- isOneToOne: false;
15393
- referencedRelation: "quote_terms";
15394
- referencedColumns: ["id"];
15395
- }];
15396
- };
15397
15502
  reception_notifications: {
15398
15503
  Row: {
15399
15504
  booking_id: string | null;
@@ -16515,7 +16620,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
16515
16620
  foreignKeyName: "time_logs_work_order_id_fkey";
16516
16621
  columns: ["work_order_id"];
16517
16622
  isOneToOne: false;
16518
- referencedRelation: "work_orders";
16623
+ referencedRelation: "werkbonnen";
16519
16624
  referencedColumns: ["id"];
16520
16625
  }];
16521
16626
  };
@@ -16647,6 +16752,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
16647
16752
  };
16648
16753
  trade_item_stock: {
16649
16754
  Row: {
16755
+ change_source: string;
16650
16756
  connection_id: string;
16651
16757
  created_at: string;
16652
16758
  id: string;
@@ -16660,6 +16766,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
16660
16766
  user_id: string;
16661
16767
  };
16662
16768
  Insert: {
16769
+ change_source?: string;
16663
16770
  connection_id: string;
16664
16771
  created_at?: string;
16665
16772
  id?: string;
@@ -16673,6 +16780,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
16673
16780
  user_id: string;
16674
16781
  };
16675
16782
  Update: {
16783
+ change_source?: string;
16676
16784
  connection_id?: string;
16677
16785
  created_at?: string;
16678
16786
  id?: string;
@@ -17842,156 +17950,6 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
17842
17950
  };
17843
17951
  Relationships: [];
17844
17952
  };
17845
- uren_offerte_regels: {
17846
- Row: {
17847
- created_at: string;
17848
- description: string;
17849
- duration_minutes: number;
17850
- id: string;
17851
- offerte_id: string;
17852
- package_id: string | null;
17853
- quantity: number;
17854
- sort_order: number;
17855
- total_cents: number;
17856
- unit_price_cents: number;
17857
- };
17858
- Insert: {
17859
- created_at?: string;
17860
- description: string;
17861
- duration_minutes?: number;
17862
- id?: string;
17863
- offerte_id: string;
17864
- package_id?: string | null;
17865
- quantity?: number;
17866
- sort_order?: number;
17867
- total_cents?: number;
17868
- unit_price_cents?: number;
17869
- };
17870
- Update: {
17871
- created_at?: string;
17872
- description?: string;
17873
- duration_minutes?: number;
17874
- id?: string;
17875
- offerte_id?: string;
17876
- package_id?: string | null;
17877
- quantity?: number;
17878
- sort_order?: number;
17879
- total_cents?: number;
17880
- unit_price_cents?: number;
17881
- };
17882
- Relationships: [{
17883
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
17884
- columns: ["offerte_id"];
17885
- isOneToOne: false;
17886
- referencedRelation: "uren_offertes";
17887
- referencedColumns: ["id"];
17888
- }, {
17889
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
17890
- columns: ["package_id"];
17891
- isOneToOne: false;
17892
- referencedRelation: "werkbon_packages";
17893
- referencedColumns: ["id"];
17894
- }];
17895
- };
17896
- uren_offerte_velden: {
17897
- Row: {
17898
- created_at: string;
17899
- field_type: string;
17900
- id: string;
17901
- key: string;
17902
- label: string;
17903
- options: string[];
17904
- required: boolean;
17905
- sort_order: number;
17906
- updated_at: string;
17907
- };
17908
- Insert: {
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
- Update: {
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
- Relationships: [];
17931
- };
17932
- uren_offertes: {
17933
- Row: {
17934
- created_at: string;
17935
- created_by: string | null;
17936
- customer_id: string | null;
17937
- customer_name: string | null;
17938
- dynamic_fields: import("../integrations/supabase/types").Json;
17939
- estimated_minutes: number;
17940
- id: string;
17941
- note: string | null;
17942
- quote_number: string | null;
17943
- status: string;
17944
- title: string;
17945
- total_excl_cents: number;
17946
- total_incl_cents: number;
17947
- updated_at: string;
17948
- valid_until: string | null;
17949
- vat_percentage: number;
17950
- };
17951
- Insert: {
17952
- created_at?: string;
17953
- created_by?: string | null;
17954
- customer_id?: string | null;
17955
- customer_name?: string | null;
17956
- dynamic_fields?: import("../integrations/supabase/types").Json;
17957
- estimated_minutes?: number;
17958
- id?: string;
17959
- note?: string | null;
17960
- quote_number?: string | null;
17961
- status?: string;
17962
- title?: string;
17963
- total_excl_cents?: number;
17964
- total_incl_cents?: number;
17965
- updated_at?: string;
17966
- valid_until?: string | null;
17967
- vat_percentage?: number;
17968
- };
17969
- Update: {
17970
- created_at?: string;
17971
- created_by?: string | null;
17972
- customer_id?: string | null;
17973
- customer_name?: string | null;
17974
- dynamic_fields?: import("../integrations/supabase/types").Json;
17975
- estimated_minutes?: number;
17976
- id?: string;
17977
- note?: string | null;
17978
- quote_number?: string | null;
17979
- status?: string;
17980
- title?: string;
17981
- total_excl_cents?: number;
17982
- total_incl_cents?: number;
17983
- updated_at?: string;
17984
- valid_until?: string | null;
17985
- vat_percentage?: number;
17986
- };
17987
- Relationships: [{
17988
- foreignKeyName: "uren_offertes_customer_id_fkey";
17989
- columns: ["customer_id"];
17990
- isOneToOne: false;
17991
- referencedRelation: "itk_customers";
17992
- referencedColumns: ["id"];
17993
- }];
17994
- };
17995
17953
  uren_settings: {
17996
17954
  Row: {
17997
17955
  break_minutes: number;
@@ -19678,6 +19636,37 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
19678
19636
  };
19679
19637
  Relationships: [];
19680
19638
  };
19639
+ planning_overview: {
19640
+ Row: {
19641
+ assigned_monteur_id: string | null;
19642
+ assistants: import("../integrations/supabase/types").Json | null;
19643
+ budget_mandate_cents: number | null;
19644
+ created_at: string | null;
19645
+ created_by: string | null;
19646
+ customer_id: string | null;
19647
+ customer_name: string | null;
19648
+ duration_minutes: number | null;
19649
+ end_at: string | null;
19650
+ id: string | null;
19651
+ needs_detail_review: boolean | null;
19652
+ notes: string | null;
19653
+ project_number: string | null;
19654
+ review_reasons: string[] | null;
19655
+ start_at: string | null;
19656
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
19657
+ updated_at: string | null;
19658
+ viewer_role: string | null;
19659
+ werkbon_id: string | null;
19660
+ work_address: string | null;
19661
+ };
19662
+ Relationships: [{
19663
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19664
+ columns: ["werkbon_id"];
19665
+ isOneToOne: false;
19666
+ referencedRelation: "werkbonnen";
19667
+ referencedColumns: ["id"];
19668
+ }];
19669
+ };
19681
19670
  product_group_stock_view: {
19682
19671
  Row: {
19683
19672
  item_count: number | null;
@@ -20273,6 +20262,18 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20273
20262
  Args: never;
20274
20263
  Returns: number;
20275
20264
  };
20265
+ calculate_floriday_desired_stock: {
20266
+ Args: {
20267
+ p_connection_id: string;
20268
+ p_product_id: string;
20269
+ };
20270
+ Returns: {
20271
+ desired_availability: boolean;
20272
+ desired_quantity: number;
20273
+ erp_available: number;
20274
+ stock_mode: string;
20275
+ }[];
20276
+ };
20276
20277
  calculate_layer_stock: {
20277
20278
  Args: {
20278
20279
  p_product_id: string;
@@ -20325,6 +20326,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20325
20326
  foutmelding: string | null;
20326
20327
  gebruiker_id: string | null;
20327
20328
  gebruiker_naam: string;
20329
+ gebruikte_bron: string | null;
20330
+ gebruikte_layout_id: string | null;
20328
20331
  gestart_op: string | null;
20329
20332
  herkomst: string | null;
20330
20333
  id: string;
@@ -20332,6 +20335,9 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20332
20335
  is_herprint: boolean;
20333
20336
  kopieen: number;
20334
20337
  layout_id: string | null;
20338
+ lokaal_opgeslagen_op: string | null;
20339
+ lokale_pdf_fout: string | null;
20340
+ lokale_pdf_status: string | null;
20335
20341
  opgepakt_op: string | null;
20336
20342
  paginas: number;
20337
20343
  payload: import("../integrations/supabase/types").Json;
@@ -20340,6 +20346,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20340
20346
  pogingen: number;
20341
20347
  printer_id: string | null;
20342
20348
  render_html: string | null;
20349
+ resultaat_pdf_base64: string | null;
20343
20350
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20344
20351
  updated_at: string;
20345
20352
  volgende_poging: string | null;
@@ -20361,6 +20368,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20361
20368
  attempts: number;
20362
20369
  connection_id: string;
20363
20370
  created_at: string;
20371
+ dead_lettered_at: string | null;
20364
20372
  desired_available: boolean | null;
20365
20373
  gateway_attempt_id: string | null;
20366
20374
  id: string;
@@ -20369,9 +20377,13 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20369
20377
  locked_by: string | null;
20370
20378
  next_attempt_at: string;
20371
20379
  number_of_pieces: number;
20380
+ product_id: string | null;
20372
20381
  sent_at: string | null;
20373
20382
  status: string;
20383
+ stock_mode: string | null;
20374
20384
  superseded_by: string | null;
20385
+ target_week: number | null;
20386
+ target_year: number | null;
20375
20387
  trade_item_id: string;
20376
20388
  updated_at: string;
20377
20389
  user_id: string;
@@ -20431,6 +20443,53 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20431
20443
  isSetofReturn: true;
20432
20444
  };
20433
20445
  };
20446
+ claim_pdf_print_jobs: {
20447
+ Args: {
20448
+ _max?: number;
20449
+ };
20450
+ Returns: {
20451
+ agent_id: string | null;
20452
+ bron_job_id: string | null;
20453
+ created_at: string;
20454
+ documentnaam: string;
20455
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20456
+ extern_job_id: string | null;
20457
+ foutmelding: string | null;
20458
+ gebruiker_id: string | null;
20459
+ gebruiker_naam: string;
20460
+ gebruikte_bron: string | null;
20461
+ gebruikte_layout_id: string | null;
20462
+ gestart_op: string | null;
20463
+ herkomst: string | null;
20464
+ id: string;
20465
+ idempotentie_sleutel: string | null;
20466
+ is_herprint: boolean;
20467
+ kopieen: number;
20468
+ layout_id: string | null;
20469
+ lokaal_opgeslagen_op: string | null;
20470
+ lokale_pdf_fout: string | null;
20471
+ lokale_pdf_status: string | null;
20472
+ opgepakt_op: string | null;
20473
+ paginas: number;
20474
+ payload: import("../integrations/supabase/types").Json;
20475
+ pdf_base64: string | null;
20476
+ pdf_url: string | null;
20477
+ pogingen: number;
20478
+ printer_id: string | null;
20479
+ render_html: string | null;
20480
+ resultaat_pdf_base64: string | null;
20481
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20482
+ updated_at: string;
20483
+ volgende_poging: string | null;
20484
+ voltooid_op: string | null;
20485
+ }[];
20486
+ SetofOptions: {
20487
+ from: "*";
20488
+ to: "print_jobs";
20489
+ isOneToOne: false;
20490
+ isSetofReturn: true;
20491
+ };
20492
+ };
20434
20493
  claim_print_jobs: {
20435
20494
  Args: {
20436
20495
  _agent_id: string;
@@ -20446,6 +20505,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20446
20505
  foutmelding: string | null;
20447
20506
  gebruiker_id: string | null;
20448
20507
  gebruiker_naam: string;
20508
+ gebruikte_bron: string | null;
20509
+ gebruikte_layout_id: string | null;
20449
20510
  gestart_op: string | null;
20450
20511
  herkomst: string | null;
20451
20512
  id: string;
@@ -20453,6 +20514,9 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20453
20514
  is_herprint: boolean;
20454
20515
  kopieen: number;
20455
20516
  layout_id: string | null;
20517
+ lokaal_opgeslagen_op: string | null;
20518
+ lokale_pdf_fout: string | null;
20519
+ lokale_pdf_status: string | null;
20456
20520
  opgepakt_op: string | null;
20457
20521
  paginas: number;
20458
20522
  payload: import("../integrations/supabase/types").Json;
@@ -20461,6 +20525,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20461
20525
  pogingen: number;
20462
20526
  printer_id: string | null;
20463
20527
  render_html: string | null;
20528
+ resultaat_pdf_base64: string | null;
20464
20529
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20465
20530
  updated_at: string;
20466
20531
  volgende_poging: string | null;
@@ -20601,6 +20666,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20601
20666
  order_id: string;
20602
20667
  order_source: string;
20603
20668
  pick_date: string;
20669
+ printed_at: string;
20670
+ printed_today: boolean;
20604
20671
  status: string;
20605
20672
  }[];
20606
20673
  };
@@ -20797,6 +20864,24 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20797
20864
  };
20798
20865
  Returns: string;
20799
20866
  };
20867
+ floriday_capture_stock_snapshot: {
20868
+ Args: never;
20869
+ Returns: number;
20870
+ };
20871
+ floriday_cleanup_stock_queue_v2: {
20872
+ Args: never;
20873
+ Returns: undefined;
20874
+ };
20875
+ floriday_compact_stock_snapshots: {
20876
+ Args: never;
20877
+ Returns: undefined;
20878
+ };
20879
+ floriday_default_owner: {
20880
+ Args: {
20881
+ p_connection_id: string;
20882
+ };
20883
+ Returns: string;
20884
+ };
20800
20885
  floriday_effective_price: {
20801
20886
  Args: {
20802
20887
  _buyer_id: string;
@@ -20814,6 +20899,34 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
20814
20899
  source_id: string;
20815
20900
  }[];
20816
20901
  };
20902
+ floriday_fill_publish_horizon: {
20903
+ Args: never;
20904
+ Returns: number;
20905
+ };
20906
+ floriday_ingest_sales_orders: {
20907
+ Args: {
20908
+ p_limit?: number;
20909
+ };
20910
+ Returns: number;
20911
+ };
20912
+ floriday_publish_horizon_weeks: {
20913
+ Args: never;
20914
+ Returns: number;
20915
+ };
20916
+ floriday_recompute_inventory: {
20917
+ Args: {
20918
+ p_connection_id: string;
20919
+ p_force?: boolean;
20920
+ p_product_id: string;
20921
+ };
20922
+ Returns: undefined;
20923
+ };
20924
+ floriday_requeue_dead_letters: {
20925
+ Args: {
20926
+ p_connection_id?: string;
20927
+ };
20928
+ Returns: number;
20929
+ };
20817
20930
  format_cart_number: {
20818
20931
  Args: {
20819
20932
  p_pick_date: string;
@@ -21030,6 +21143,131 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21030
21143
  Args: never;
21031
21144
  Returns: string;
21032
21145
  };
21146
+ handover_get: {
21147
+ Args: {
21148
+ _module_id: string;
21149
+ };
21150
+ Returns: import("../integrations/supabase/types").Json;
21151
+ };
21152
+ handover_kern_naam: {
21153
+ Args: {
21154
+ _naam: string;
21155
+ };
21156
+ Returns: string;
21157
+ };
21158
+ handover_ketenmodel: {
21159
+ Args: never;
21160
+ Returns: import("../integrations/supabase/types").Json;
21161
+ };
21162
+ handover_kruisconflicten: {
21163
+ Args: never;
21164
+ Returns: import("../integrations/supabase/types").Json;
21165
+ };
21166
+ handover_list: {
21167
+ Args: never;
21168
+ Returns: import("../integrations/supabase/types").Json;
21169
+ };
21170
+ handover_mag_schrijven: {
21171
+ Args: {
21172
+ _module_id: string;
21173
+ };
21174
+ Returns: boolean;
21175
+ };
21176
+ handover_norm_naam: {
21177
+ Args: {
21178
+ _naam: string;
21179
+ };
21180
+ Returns: string;
21181
+ };
21182
+ handover_publish: {
21183
+ Args: {
21184
+ _bevindingen?: string;
21185
+ _bezit_tabellen?: string[];
21186
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21187
+ _contractfuncties?: string[];
21188
+ _inhoud_md: string;
21189
+ _module_id: string;
21190
+ _module_titel: string;
21191
+ _ontbrekende_contracten?: string[];
21192
+ _samenvatting?: string;
21193
+ };
21194
+ Returns: number;
21195
+ };
21196
+ handover_publish_via_token: {
21197
+ Args: {
21198
+ _bevindingen?: string;
21199
+ _bezit_tabellen?: string[];
21200
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21201
+ _contractfuncties?: string[];
21202
+ _inhoud_md: string;
21203
+ _module_id: string;
21204
+ _module_titel: string;
21205
+ _ontbrekende_contracten?: string[];
21206
+ _samenvatting?: string;
21207
+ _token_hash: string;
21208
+ };
21209
+ Returns: number;
21210
+ };
21211
+ handover_status: {
21212
+ Args: never;
21213
+ Returns: import("../integrations/supabase/types").Json;
21214
+ };
21215
+ handover_synonym_kern: {
21216
+ Args: {
21217
+ _naam: string;
21218
+ };
21219
+ Returns: string;
21220
+ };
21221
+ handover_token_intrekken: {
21222
+ Args: {
21223
+ _id: string;
21224
+ };
21225
+ Returns: boolean;
21226
+ };
21227
+ handover_token_lijst: {
21228
+ Args: never;
21229
+ Returns: import("../integrations/supabase/types").Json;
21230
+ };
21231
+ handover_token_maken: {
21232
+ Args: {
21233
+ _label?: string;
21234
+ _module_id: string;
21235
+ };
21236
+ Returns: string;
21237
+ };
21238
+ handover_update: {
21239
+ Args: {
21240
+ _bezit_tabellen?: string[];
21241
+ _contractfuncties?: string[];
21242
+ _herzieningstermijn_dagen?: number;
21243
+ _inhoud_md?: string;
21244
+ _module_id: string;
21245
+ _module_titel?: string;
21246
+ _samenvatting?: string;
21247
+ _versie: number;
21248
+ };
21249
+ Returns: boolean;
21250
+ } | {
21251
+ Args: {
21252
+ _bevindingen?: string;
21253
+ _bezit_tabellen?: string[];
21254
+ _contractfuncties?: string[];
21255
+ _herzieningstermijn_dagen?: number;
21256
+ _inhoud_md?: string;
21257
+ _module_id: string;
21258
+ _module_titel?: string;
21259
+ _ontbrekende_contracten?: string[];
21260
+ _samenvatting?: string;
21261
+ _versie: number;
21262
+ };
21263
+ Returns: boolean;
21264
+ };
21265
+ handover_versies: {
21266
+ Args: {
21267
+ _module_id: string;
21268
+ };
21269
+ Returns: import("../integrations/supabase/types").Json;
21270
+ };
21033
21271
  has_module_permission: {
21034
21272
  Args: {
21035
21273
  _min: string;
@@ -21049,6 +21287,25 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21049
21287
  Args: never;
21050
21288
  Returns: boolean;
21051
21289
  };
21290
+ instructie_get: {
21291
+ Args: {
21292
+ _sleutel: string;
21293
+ };
21294
+ Returns: import("../integrations/supabase/types").Json;
21295
+ };
21296
+ instructie_list: {
21297
+ Args: never;
21298
+ Returns: import("../integrations/supabase/types").Json;
21299
+ };
21300
+ instructie_publish: {
21301
+ Args: {
21302
+ _inhoud_md: string;
21303
+ _sleutel: string;
21304
+ _titel: string;
21305
+ _toelichting?: string;
21306
+ };
21307
+ Returns: number;
21308
+ };
21052
21309
  invoice_create_from_source: {
21053
21310
  Args: {
21054
21311
  _payload?: import("../integrations/supabase/types").Json;
@@ -21309,6 +21566,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21309
21566
  };
21310
21567
  Returns: number;
21311
21568
  };
21569
+ logistics_cancel_orphan_tasks: {
21570
+ Args: never;
21571
+ Returns: number;
21572
+ };
21312
21573
  logistics_capacity_day_check: {
21313
21574
  Args: {
21314
21575
  p_from?: string;
@@ -21329,6 +21590,25 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21329
21590
  };
21330
21591
  Returns: number;
21331
21592
  };
21593
+ logistics_cart_index: {
21594
+ Args: {
21595
+ p_from?: string;
21596
+ p_to?: string;
21597
+ };
21598
+ Returns: {
21599
+ cart_id: string;
21600
+ cart_index: number;
21601
+ cart_label: string;
21602
+ is_shared: boolean;
21603
+ order_number: string;
21604
+ order_source: string;
21605
+ order_uuid: string;
21606
+ pick_date: string;
21607
+ printed_at: string;
21608
+ shifted: boolean;
21609
+ task_status: string;
21610
+ }[];
21611
+ };
21332
21612
  logistics_check_order_allowed: {
21333
21613
  Args: {
21334
21614
  p_lines: import("../integrations/supabase/types").Json;
@@ -21477,6 +21757,17 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21477
21757
  isSetofReturn: false;
21478
21758
  };
21479
21759
  };
21760
+ logistics_consistency_check: {
21761
+ Args: never;
21762
+ Returns: {
21763
+ agenda_carts: number;
21764
+ control_carts: number;
21765
+ ok: boolean;
21766
+ orphan_tasks: number;
21767
+ pick_date: string;
21768
+ raw_carts: number;
21769
+ }[];
21770
+ };
21480
21771
  logistics_delay_customer_email: {
21481
21772
  Args: {
21482
21773
  p_customer: string;
@@ -21502,6 +21793,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21502
21793
  };
21503
21794
  Returns: string;
21504
21795
  };
21796
+ logistics_document_type_map: {
21797
+ Args: {
21798
+ _document_code: string;
21799
+ };
21800
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
21801
+ };
21505
21802
  logistics_emit_event: {
21506
21803
  Args: {
21507
21804
  p_event_type: string;
@@ -21560,6 +21857,16 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21560
21857
  isSetofReturn: false;
21561
21858
  };
21562
21859
  };
21860
+ logistics_floriday_cart_plan: {
21861
+ Args: {
21862
+ p_order_id: string;
21863
+ };
21864
+ Returns: {
21865
+ carrier_type: string;
21866
+ idx: number;
21867
+ packages: number;
21868
+ }[];
21869
+ };
21563
21870
  logistics_floriday_claim_pushes: {
21564
21871
  Args: {
21565
21872
  _lease_seconds?: number;
@@ -21664,6 +21971,25 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21664
21971
  };
21665
21972
  Returns: number;
21666
21973
  };
21974
+ logistics_order_overview: {
21975
+ Args: {
21976
+ p_from?: string;
21977
+ p_to?: string;
21978
+ };
21979
+ Returns: {
21980
+ cart_count: number;
21981
+ customer_name: string;
21982
+ delivery_date: string;
21983
+ order_number: string;
21984
+ order_source: string;
21985
+ order_uuid: string;
21986
+ pick_date: string;
21987
+ plant_count: number;
21988
+ printed_at: string;
21989
+ shifted: boolean;
21990
+ status: string;
21991
+ }[];
21992
+ };
21667
21993
  logistics_order_pick_day: {
21668
21994
  Args: {
21669
21995
  p_order_ref: string;
@@ -21676,6 +22002,22 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21676
22002
  };
21677
22003
  Returns: string;
21678
22004
  };
22005
+ logistics_pick_agenda: {
22006
+ Args: {
22007
+ p_from?: string;
22008
+ p_to?: string;
22009
+ };
22010
+ Returns: {
22011
+ cart_count: number;
22012
+ in_preparation: number;
22013
+ order_count: number;
22014
+ orders: import("../integrations/supabase/types").Json;
22015
+ pick_date: string;
22016
+ plant_count: number;
22017
+ ready: number;
22018
+ shifted_count: number;
22019
+ }[];
22020
+ };
21679
22021
  logistics_pick_email_purpose: {
21680
22022
  Args: never;
21681
22023
  Returns: string;
@@ -21730,6 +22072,13 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21730
22072
  };
21731
22073
  Returns: undefined;
21732
22074
  };
22075
+ logistics_plan_floriday_order: {
22076
+ Args: {
22077
+ p_buffer_id?: string;
22078
+ p_order_id: string;
22079
+ };
22080
+ Returns: number;
22081
+ };
21733
22082
  logistics_plan_impact_orders: {
21734
22083
  Args: {
21735
22084
  p_order_id: string;
@@ -21835,6 +22184,15 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21835
22184
  };
21836
22185
  Returns: import("../integrations/supabase/types").Json;
21837
22186
  };
22187
+ logistics_resolve_pick_document: {
22188
+ Args: {
22189
+ _is_herprint: boolean;
22190
+ _queue_item_id: string;
22191
+ _session_id: string;
22192
+ _voorbeeld: boolean;
22193
+ };
22194
+ Returns: import("../integrations/supabase/types").Json;
22195
+ };
21838
22196
  logistics_resolve_settings: {
21839
22197
  Args: {
21840
22198
  p_config_id: string;
@@ -22275,6 +22633,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22275
22633
  };
22276
22634
  pick_enqueue_print_job: {
22277
22635
  Args: {
22636
+ _is_herprint?: boolean;
22278
22637
  _printer_id?: string;
22279
22638
  _queue_item_id: string;
22280
22639
  _session_id?: string;
@@ -22288,6 +22647,13 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22288
22647
  };
22289
22648
  Returns: import("../integrations/supabase/types").Json;
22290
22649
  };
22650
+ pick_preview_job: {
22651
+ Args: {
22652
+ _queue_item_id: string;
22653
+ _station_slug: string;
22654
+ };
22655
+ Returns: import("../integrations/supabase/types").Json;
22656
+ };
22291
22657
  pick_print_job_status: {
22292
22658
  Args: {
22293
22659
  _job_id: string;
@@ -22465,6 +22831,84 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22465
22831
  };
22466
22832
  Returns: undefined;
22467
22833
  };
22834
+ planning_cancel_item: {
22835
+ Args: {
22836
+ _id: string;
22837
+ };
22838
+ Returns: undefined;
22839
+ };
22840
+ planning_list: {
22841
+ Args: {
22842
+ _from: string;
22843
+ _to: string;
22844
+ };
22845
+ Returns: {
22846
+ assigned_monteur_id: string | null;
22847
+ assistants: import("../integrations/supabase/types").Json | null;
22848
+ budget_mandate_cents: number | null;
22849
+ created_at: string | null;
22850
+ created_by: string | null;
22851
+ customer_id: string | null;
22852
+ customer_name: string | null;
22853
+ duration_minutes: number | null;
22854
+ end_at: string | null;
22855
+ id: string | null;
22856
+ needs_detail_review: boolean | null;
22857
+ notes: string | null;
22858
+ project_number: string | null;
22859
+ review_reasons: string[] | null;
22860
+ start_at: string | null;
22861
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
22862
+ updated_at: string | null;
22863
+ viewer_role: string | null;
22864
+ werkbon_id: string | null;
22865
+ work_address: string | null;
22866
+ }[];
22867
+ SetofOptions: {
22868
+ from: "*";
22869
+ to: "planning_overview";
22870
+ isOneToOne: false;
22871
+ isSetofReturn: true;
22872
+ };
22873
+ };
22874
+ planning_set_assistants: {
22875
+ Args: {
22876
+ _monteur_ids: string[];
22877
+ _planning_item_id: string;
22878
+ };
22879
+ Returns: undefined;
22880
+ };
22881
+ planning_upsert_item: {
22882
+ Args: {
22883
+ _assigned_monteur_id: string;
22884
+ _end_at: string;
22885
+ _notes?: string;
22886
+ _start_at: string;
22887
+ _werkbon_id: string;
22888
+ };
22889
+ Returns: {
22890
+ action: string;
22891
+ id: string;
22892
+ }[];
22893
+ };
22894
+ print_preview_toestaan: {
22895
+ Args: {
22896
+ _max?: number;
22897
+ _queue_item_id: string;
22898
+ _station_slug: string;
22899
+ _venster_sec?: number;
22900
+ };
22901
+ Returns: import("../integrations/supabase/types").Json;
22902
+ };
22903
+ print_preview_weiger: {
22904
+ Args: {
22905
+ _code: string;
22906
+ _queue_item_id: string;
22907
+ _reden: string;
22908
+ _station_slug: string;
22909
+ };
22910
+ Returns: undefined;
22911
+ };
22468
22912
  process_logistics_event: {
22469
22913
  Args: {
22470
22914
  p_event_id: string;
@@ -22582,6 +23026,14 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22582
23026
  };
22583
23027
  Returns: undefined;
22584
23028
  };
23029
+ replace_order_carts: {
23030
+ Args: {
23031
+ p_buffer_id: string;
23032
+ p_carts: import("../integrations/supabase/types").Json;
23033
+ p_order_id: string;
23034
+ };
23035
+ Returns: import("../integrations/supabase/types").Json;
23036
+ };
22585
23037
  reset_floriday_sync_cursor: {
22586
23038
  Args: {
22587
23039
  p_connection_id: string;
@@ -22611,6 +23063,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22611
23063
  };
22612
23064
  Returns: string;
22613
23065
  };
23066
+ resolve_print_job_printer_id: {
23067
+ Args: {
23068
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
23069
+ };
23070
+ Returns: string;
23071
+ };
22614
23072
  resolve_product_id_for_item: {
22615
23073
  Args: {
22616
23074
  p_product_name: string;
@@ -23014,6 +23472,26 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23014
23472
  };
23015
23473
  Returns: string[];
23016
23474
  };
23475
+ start_time_log_at: {
23476
+ Args: {
23477
+ p_clicked_at?: string;
23478
+ p_employee_id: string;
23479
+ p_start_lat?: number;
23480
+ p_start_lng?: number;
23481
+ p_type: string;
23482
+ p_work_order_id?: string;
23483
+ };
23484
+ Returns: import("../integrations/supabase/types").Json;
23485
+ };
23486
+ stop_time_log: {
23487
+ Args: {
23488
+ p_employee_id: string;
23489
+ p_end_lat?: number;
23490
+ p_end_lng?: number;
23491
+ p_end_time: string;
23492
+ };
23493
+ Returns: import("../integrations/supabase/types").Json;
23494
+ };
23017
23495
  switch_time_log: {
23018
23496
  Args: {
23019
23497
  p_employee_id: string;
@@ -23202,7 +23680,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23202
23680
  };
23203
23681
  CompositeTypes: { [_ in never]: never; };
23204
23682
  }, {
23205
- PostgrestVersion: "14.17";
23683
+ PostgrestVersion: "14.5";
23206
23684
  }>;
23207
23685
  userId: string;
23208
23686
  claims: import("@supabase/auth-js").JwtPayload;
@@ -26067,6 +26545,84 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
26067
26545
  };
26068
26546
  Relationships: [];
26069
26547
  };
26548
+ delivery_notes: {
26549
+ Row: {
26550
+ byte_size: number | null;
26551
+ connection_id: string | null;
26552
+ content_type: string;
26553
+ created_at: string;
26554
+ error_message: string | null;
26555
+ fetched_at: string | null;
26556
+ fulfillment_order_id: string | null;
26557
+ http_status: number | null;
26558
+ id: string;
26559
+ label_code: string | null;
26560
+ letter: string | null;
26561
+ load_carrier_index: number | null;
26562
+ load_carrier_type: string | null;
26563
+ order_id: string | null;
26564
+ order_number: string | null;
26565
+ packages: number | null;
26566
+ source: string;
26567
+ status: string;
26568
+ storage_bucket: string;
26569
+ storage_path: string | null;
26570
+ updated_at: string;
26571
+ };
26572
+ Insert: {
26573
+ byte_size?: number | null;
26574
+ connection_id?: string | null;
26575
+ content_type?: string;
26576
+ created_at?: string;
26577
+ error_message?: string | null;
26578
+ fetched_at?: string | null;
26579
+ fulfillment_order_id?: string | null;
26580
+ http_status?: number | null;
26581
+ id?: string;
26582
+ label_code?: string | null;
26583
+ letter?: string | null;
26584
+ load_carrier_index?: number | null;
26585
+ load_carrier_type?: string | null;
26586
+ order_id?: string | null;
26587
+ order_number?: string | null;
26588
+ packages?: number | null;
26589
+ source?: string;
26590
+ status?: string;
26591
+ storage_bucket?: string;
26592
+ storage_path?: string | null;
26593
+ updated_at?: string;
26594
+ };
26595
+ Update: {
26596
+ byte_size?: number | null;
26597
+ connection_id?: string | null;
26598
+ content_type?: string;
26599
+ created_at?: string;
26600
+ error_message?: string | null;
26601
+ fetched_at?: string | null;
26602
+ fulfillment_order_id?: string | null;
26603
+ http_status?: number | null;
26604
+ id?: string;
26605
+ label_code?: string | null;
26606
+ letter?: string | null;
26607
+ load_carrier_index?: number | null;
26608
+ load_carrier_type?: string | null;
26609
+ order_id?: string | null;
26610
+ order_number?: string | null;
26611
+ packages?: number | null;
26612
+ source?: string;
26613
+ status?: string;
26614
+ storage_bucket?: string;
26615
+ storage_path?: string | null;
26616
+ updated_at?: string;
26617
+ };
26618
+ Relationships: [{
26619
+ foreignKeyName: "delivery_notes_order_id_fkey";
26620
+ columns: ["order_id"];
26621
+ isOneToOne: false;
26622
+ referencedRelation: "orders";
26623
+ referencedColumns: ["id"];
26624
+ }];
26625
+ };
26070
26626
  document_bronregels: {
26071
26627
  Row: {
26072
26628
  bron: string;
@@ -29120,10 +29676,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29120
29676
  };
29121
29677
  floriday_connections: {
29122
29678
  Row: {
29123
- access_token: string | null;
29124
29679
  api_key: string;
29125
- client_id: string;
29126
- client_secret: string;
29127
29680
  created_at: string;
29128
29681
  customers_endpoint: string | null;
29129
29682
  environment: string;
@@ -29138,10 +29691,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29138
29691
  updated_at: string;
29139
29692
  };
29140
29693
  Insert: {
29141
- access_token?: string | null;
29142
29694
  api_key: string;
29143
- client_id: string;
29144
- client_secret: string;
29145
29695
  created_at?: string;
29146
29696
  customers_endpoint?: string | null;
29147
29697
  environment: string;
@@ -29156,10 +29706,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29156
29706
  updated_at?: string;
29157
29707
  };
29158
29708
  Update: {
29159
- access_token?: string | null;
29160
29709
  api_key?: string;
29161
- client_id?: string;
29162
- client_secret?: string;
29163
29710
  created_at?: string;
29164
29711
  customers_endpoint?: string | null;
29165
29712
  environment?: string;
@@ -29243,6 +29790,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29243
29790
  attempts: number;
29244
29791
  connection_id: string;
29245
29792
  created_at: string;
29793
+ dead_lettered_at: string | null;
29246
29794
  desired_available: boolean | null;
29247
29795
  gateway_attempt_id: string | null;
29248
29796
  id: string;
@@ -29251,9 +29799,13 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29251
29799
  locked_by: string | null;
29252
29800
  next_attempt_at: string;
29253
29801
  number_of_pieces: number;
29802
+ product_id: string | null;
29254
29803
  sent_at: string | null;
29255
29804
  status: string;
29805
+ stock_mode: string | null;
29256
29806
  superseded_by: string | null;
29807
+ target_week: number | null;
29808
+ target_year: number | null;
29257
29809
  trade_item_id: string;
29258
29810
  updated_at: string;
29259
29811
  user_id: string;
@@ -29262,6 +29814,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29262
29814
  attempts?: number;
29263
29815
  connection_id: string;
29264
29816
  created_at?: string;
29817
+ dead_lettered_at?: string | null;
29265
29818
  desired_available?: boolean | null;
29266
29819
  gateway_attempt_id?: string | null;
29267
29820
  id?: string;
@@ -29270,9 +29823,13 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29270
29823
  locked_by?: string | null;
29271
29824
  next_attempt_at?: string;
29272
29825
  number_of_pieces?: number;
29826
+ product_id?: string | null;
29273
29827
  sent_at?: string | null;
29274
29828
  status?: string;
29829
+ stock_mode?: string | null;
29275
29830
  superseded_by?: string | null;
29831
+ target_week?: number | null;
29832
+ target_year?: number | null;
29276
29833
  trade_item_id: string;
29277
29834
  updated_at?: string;
29278
29835
  user_id: string;
@@ -29281,6 +29838,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29281
29838
  attempts?: number;
29282
29839
  connection_id?: string;
29283
29840
  created_at?: string;
29841
+ dead_lettered_at?: string | null;
29284
29842
  desired_available?: boolean | null;
29285
29843
  gateway_attempt_id?: string | null;
29286
29844
  id?: string;
@@ -29289,9 +29847,13 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29289
29847
  locked_by?: string | null;
29290
29848
  next_attempt_at?: string;
29291
29849
  number_of_pieces?: number;
29850
+ product_id?: string | null;
29292
29851
  sent_at?: string | null;
29293
29852
  status?: string;
29853
+ stock_mode?: string | null;
29294
29854
  superseded_by?: string | null;
29855
+ target_week?: number | null;
29856
+ target_year?: number | null;
29295
29857
  trade_item_id?: string;
29296
29858
  updated_at?: string;
29297
29859
  user_id?: string;
@@ -29700,6 +30262,87 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29700
30262
  referencedColumns: ["id"];
29701
30263
  }];
29702
30264
  };
30265
+ floriday_inventory_settings: {
30266
+ Row: {
30267
+ buffer_quantity: number;
30268
+ connection_id: string;
30269
+ created_at: string;
30270
+ desired_availability: boolean;
30271
+ desired_quantity: number;
30272
+ fixed_quantity: number | null;
30273
+ floriday_trade_item_id: string | null;
30274
+ id: string;
30275
+ last_confirmed_at: string | null;
30276
+ last_enqueued_at: string | null;
30277
+ last_published_at: string | null;
30278
+ last_sync_error: string | null;
30279
+ manual_quantity: number | null;
30280
+ maximum_quantity: number | null;
30281
+ product_id: string;
30282
+ quantity_control: string;
30283
+ remote_available: boolean | null;
30284
+ remote_checked_at: string | null;
30285
+ remote_quantity: number | null;
30286
+ stock_mode: string;
30287
+ sync_status: string;
30288
+ updated_at: string;
30289
+ updated_by: string | null;
30290
+ user_id: string;
30291
+ };
30292
+ Insert: {
30293
+ buffer_quantity?: number;
30294
+ connection_id: string;
30295
+ created_at?: string;
30296
+ desired_availability?: boolean;
30297
+ desired_quantity?: number;
30298
+ fixed_quantity?: number | null;
30299
+ floriday_trade_item_id?: string | null;
30300
+ id?: string;
30301
+ last_confirmed_at?: string | null;
30302
+ last_enqueued_at?: string | null;
30303
+ last_published_at?: string | null;
30304
+ last_sync_error?: string | null;
30305
+ manual_quantity?: number | null;
30306
+ maximum_quantity?: number | null;
30307
+ product_id: string;
30308
+ quantity_control?: string;
30309
+ remote_available?: boolean | null;
30310
+ remote_checked_at?: string | null;
30311
+ remote_quantity?: number | null;
30312
+ stock_mode?: string;
30313
+ sync_status?: string;
30314
+ updated_at?: string;
30315
+ updated_by?: string | null;
30316
+ user_id: string;
30317
+ };
30318
+ Update: {
30319
+ buffer_quantity?: number;
30320
+ connection_id?: string;
30321
+ created_at?: string;
30322
+ desired_availability?: boolean;
30323
+ desired_quantity?: number;
30324
+ fixed_quantity?: number | null;
30325
+ floriday_trade_item_id?: string | null;
30326
+ id?: string;
30327
+ last_confirmed_at?: string | null;
30328
+ last_enqueued_at?: string | null;
30329
+ last_published_at?: string | null;
30330
+ last_sync_error?: string | null;
30331
+ manual_quantity?: number | null;
30332
+ maximum_quantity?: number | null;
30333
+ product_id?: string;
30334
+ quantity_control?: string;
30335
+ remote_available?: boolean | null;
30336
+ remote_checked_at?: string | null;
30337
+ remote_quantity?: number | null;
30338
+ stock_mode?: string;
30339
+ sync_status?: string;
30340
+ updated_at?: string;
30341
+ updated_by?: string | null;
30342
+ user_id?: string;
30343
+ };
30344
+ Relationships: [];
30345
+ };
29703
30346
  floriday_invoices_cache: {
29704
30347
  Row: {
29705
30348
  buyer_organization_id: string | null;
@@ -29988,6 +30631,39 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
29988
30631
  };
29989
30632
  Relationships: [];
29990
30633
  };
30634
+ floriday_sales_order_ingest: {
30635
+ Row: {
30636
+ connection_id: string;
30637
+ created_at: string;
30638
+ id: string;
30639
+ impact: import("../integrations/supabase/types").Json;
30640
+ order_status: string | null;
30641
+ order_version: number;
30642
+ processed_at: string;
30643
+ sales_order_id: string;
30644
+ };
30645
+ Insert: {
30646
+ connection_id: string;
30647
+ created_at?: string;
30648
+ id?: string;
30649
+ impact?: import("../integrations/supabase/types").Json;
30650
+ order_status?: string | null;
30651
+ order_version?: number;
30652
+ processed_at?: string;
30653
+ sales_order_id: string;
30654
+ };
30655
+ Update: {
30656
+ connection_id?: string;
30657
+ created_at?: string;
30658
+ id?: string;
30659
+ impact?: import("../integrations/supabase/types").Json;
30660
+ order_status?: string | null;
30661
+ order_version?: number;
30662
+ processed_at?: string;
30663
+ sales_order_id?: string;
30664
+ };
30665
+ Relationships: [];
30666
+ };
29991
30667
  floriday_sales_strategies_cache: {
29992
30668
  Row: {
29993
30669
  connection_id: string;
@@ -30087,6 +30763,39 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
30087
30763
  };
30088
30764
  Relationships: [];
30089
30765
  };
30766
+ floriday_sync_cursors: {
30767
+ Row: {
30768
+ connection_id: string;
30769
+ created_at: string;
30770
+ id: string;
30771
+ last_error: string | null;
30772
+ last_sync_at: string | null;
30773
+ resource_type: string;
30774
+ sequence_number: number;
30775
+ updated_at: string;
30776
+ };
30777
+ Insert: {
30778
+ connection_id: string;
30779
+ created_at?: string;
30780
+ id?: string;
30781
+ last_error?: string | null;
30782
+ last_sync_at?: string | null;
30783
+ resource_type: string;
30784
+ sequence_number?: number;
30785
+ updated_at?: string;
30786
+ };
30787
+ Update: {
30788
+ connection_id?: string;
30789
+ created_at?: string;
30790
+ id?: string;
30791
+ last_error?: string | null;
30792
+ last_sync_at?: string | null;
30793
+ resource_type?: string;
30794
+ sequence_number?: number;
30795
+ updated_at?: string;
30796
+ };
30797
+ Relationships: [];
30798
+ };
30090
30799
  floriday_sync_state: {
30091
30800
  Row: {
30092
30801
  connection_id: string;
@@ -30777,6 +31486,42 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
30777
31486
  };
30778
31487
  Relationships: [];
30779
31488
  };
31489
+ inventory_stock_snapshots: {
31490
+ Row: {
31491
+ connection_id: string;
31492
+ created_at: string;
31493
+ erp_available_quantity: number;
31494
+ floriday_desired_quantity: number;
31495
+ floriday_remote_quantity: number | null;
31496
+ granularity: string;
31497
+ id: string;
31498
+ snapshot_at: string;
31499
+ user_id: string | null;
31500
+ };
31501
+ Insert: {
31502
+ connection_id: string;
31503
+ created_at?: string;
31504
+ erp_available_quantity?: number;
31505
+ floriday_desired_quantity?: number;
31506
+ floriday_remote_quantity?: number | null;
31507
+ granularity?: string;
31508
+ id?: string;
31509
+ snapshot_at?: string;
31510
+ user_id?: string | null;
31511
+ };
31512
+ Update: {
31513
+ connection_id?: string;
31514
+ created_at?: string;
31515
+ erp_available_quantity?: number;
31516
+ floriday_desired_quantity?: number;
31517
+ floriday_remote_quantity?: number | null;
31518
+ granularity?: string;
31519
+ id?: string;
31520
+ snapshot_at?: string;
31521
+ user_id?: string | null;
31522
+ };
31523
+ Relationships: [];
31524
+ };
30780
31525
  invoice_items: {
30781
31526
  Row: {
30782
31527
  created_at: string;
@@ -31285,13 +32030,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
31285
32030
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
31286
32031
  updated_at?: string;
31287
32032
  };
31288
- Relationships: [{
31289
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
31290
- columns: ["legacy_customer_id"];
31291
- isOneToOne: false;
31292
- referencedRelation: "customers";
31293
- referencedColumns: ["id"];
31294
- }];
32033
+ Relationships: [];
31295
32034
  };
31296
32035
  itk_dynamic_fields: {
31297
32036
  Row: {
@@ -31323,6 +32062,180 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
31323
32062
  };
31324
32063
  Relationships: [];
31325
32064
  };
32065
+ itk_handover_rechten: {
32066
+ Row: {
32067
+ created_at: string;
32068
+ id: string;
32069
+ module_id: string;
32070
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32071
+ updated_at: string;
32072
+ user_id: string | null;
32073
+ };
32074
+ Insert: {
32075
+ created_at?: string;
32076
+ id?: string;
32077
+ module_id: string;
32078
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32079
+ updated_at?: string;
32080
+ user_id?: string | null;
32081
+ };
32082
+ Update: {
32083
+ created_at?: string;
32084
+ id?: string;
32085
+ module_id?: string;
32086
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32087
+ updated_at?: string;
32088
+ user_id?: string | null;
32089
+ };
32090
+ Relationships: [];
32091
+ };
32092
+ itk_handover_tokens: {
32093
+ Row: {
32094
+ aangemaakt_door: string | null;
32095
+ created_at: string;
32096
+ id: string;
32097
+ is_actief: boolean;
32098
+ laatst_gebruikt_op: string | null;
32099
+ label: string;
32100
+ module_id: string;
32101
+ token_hash: string;
32102
+ updated_at: string;
32103
+ verloopt_op: string | null;
32104
+ };
32105
+ Insert: {
32106
+ aangemaakt_door?: string | null;
32107
+ created_at?: string;
32108
+ id?: string;
32109
+ is_actief?: boolean;
32110
+ laatst_gebruikt_op?: string | null;
32111
+ label?: string;
32112
+ module_id: string;
32113
+ token_hash: string;
32114
+ updated_at?: string;
32115
+ verloopt_op?: string | null;
32116
+ };
32117
+ Update: {
32118
+ aangemaakt_door?: string | null;
32119
+ created_at?: string;
32120
+ id?: string;
32121
+ is_actief?: boolean;
32122
+ laatst_gebruikt_op?: string | null;
32123
+ label?: string;
32124
+ module_id?: string;
32125
+ token_hash?: string;
32126
+ updated_at?: string;
32127
+ verloopt_op?: string | null;
32128
+ };
32129
+ Relationships: [];
32130
+ };
32131
+ itk_module_handovers: {
32132
+ Row: {
32133
+ bevindingen: string | null;
32134
+ bezit_tabellen: string[];
32135
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
32136
+ contractfuncties: string[];
32137
+ created_at: string;
32138
+ eigenaar_module_id: string | null;
32139
+ gepubliceerd_door: string | null;
32140
+ gepubliceerd_op: string;
32141
+ herzieningstermijn_dagen: number;
32142
+ id: string;
32143
+ inhoud_md: string;
32144
+ is_actueel: boolean;
32145
+ module_id: string;
32146
+ module_titel: string;
32147
+ ontbrekende_contracten: string[];
32148
+ samenvatting: string | null;
32149
+ updated_at: string;
32150
+ versie: number;
32151
+ };
32152
+ Insert: {
32153
+ bevindingen?: string | null;
32154
+ bezit_tabellen?: string[];
32155
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
32156
+ contractfuncties?: string[];
32157
+ created_at?: string;
32158
+ eigenaar_module_id?: string | null;
32159
+ gepubliceerd_door?: string | null;
32160
+ gepubliceerd_op?: string;
32161
+ herzieningstermijn_dagen?: number;
32162
+ id?: string;
32163
+ inhoud_md: string;
32164
+ is_actueel?: boolean;
32165
+ module_id: string;
32166
+ module_titel: string;
32167
+ ontbrekende_contracten?: string[];
32168
+ samenvatting?: string | null;
32169
+ updated_at?: string;
32170
+ versie?: number;
32171
+ };
32172
+ Update: {
32173
+ bevindingen?: string | null;
32174
+ bezit_tabellen?: string[];
32175
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
32176
+ contractfuncties?: string[];
32177
+ created_at?: string;
32178
+ eigenaar_module_id?: string | null;
32179
+ gepubliceerd_door?: string | null;
32180
+ gepubliceerd_op?: string;
32181
+ herzieningstermijn_dagen?: number;
32182
+ id?: string;
32183
+ inhoud_md?: string;
32184
+ is_actueel?: boolean;
32185
+ module_id?: string;
32186
+ module_titel?: string;
32187
+ ontbrekende_contracten?: string[];
32188
+ samenvatting?: string | null;
32189
+ updated_at?: string;
32190
+ versie?: number;
32191
+ };
32192
+ Relationships: [];
32193
+ };
32194
+ itk_module_instructies: {
32195
+ Row: {
32196
+ created_at: string;
32197
+ eigenaar_module_id: string;
32198
+ gepubliceerd_door: string | null;
32199
+ gepubliceerd_op: string;
32200
+ id: string;
32201
+ inhoud_md: string;
32202
+ is_actueel: boolean;
32203
+ sleutel: string;
32204
+ titel: string;
32205
+ toelichting: string | null;
32206
+ updated_at: string;
32207
+ versie: number;
32208
+ };
32209
+ Insert: {
32210
+ created_at?: string;
32211
+ eigenaar_module_id?: string;
32212
+ gepubliceerd_door?: string | null;
32213
+ gepubliceerd_op?: string;
32214
+ id?: string;
32215
+ inhoud_md: string;
32216
+ is_actueel?: boolean;
32217
+ sleutel: string;
32218
+ titel: string;
32219
+ toelichting?: string | null;
32220
+ updated_at?: string;
32221
+ versie?: number;
32222
+ };
32223
+ Update: {
32224
+ created_at?: string;
32225
+ eigenaar_module_id?: string;
32226
+ gepubliceerd_door?: string | null;
32227
+ gepubliceerd_op?: string;
32228
+ id?: string;
32229
+ inhoud_md?: string;
32230
+ is_actueel?: boolean;
32231
+ sleutel?: string;
32232
+ titel?: string;
32233
+ toelichting?: string | null;
32234
+ updated_at?: string;
32235
+ versie?: number;
32236
+ };
32237
+ Relationships: [];
32238
+ };
31326
32239
  itk_offerte_events: {
31327
32240
  Row: {
31328
32241
  created_at: string;
@@ -33951,6 +34864,24 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
33951
34864
  };
33952
34865
  Relationships: [];
33953
34866
  };
34867
+ maps_job_lease: {
34868
+ Row: {
34869
+ job: string;
34870
+ locked_until: string;
34871
+ updated_at: string;
34872
+ };
34873
+ Insert: {
34874
+ job: string;
34875
+ locked_until?: string;
34876
+ updated_at?: string;
34877
+ };
34878
+ Update: {
34879
+ job?: string;
34880
+ locked_until?: string;
34881
+ updated_at?: string;
34882
+ };
34883
+ Relationships: [];
34884
+ };
33954
34885
  maps_request_queue: {
33955
34886
  Row: {
33956
34887
  attempts: number;
@@ -34012,6 +34943,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
34012
34943
  last_error: string | null;
34013
34944
  last_error_at: string | null;
34014
34945
  last_success_at: string | null;
34946
+ provider: string;
34015
34947
  updated_at: string;
34016
34948
  };
34017
34949
  Insert: {
@@ -34023,6 +34955,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
34023
34955
  last_error?: string | null;
34024
34956
  last_error_at?: string | null;
34025
34957
  last_success_at?: string | null;
34958
+ provider?: string;
34026
34959
  updated_at?: string;
34027
34960
  };
34028
34961
  Update: {
@@ -34034,6 +34967,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
34034
34967
  last_error?: string | null;
34035
34968
  last_error_at?: string | null;
34036
34969
  last_success_at?: string | null;
34970
+ provider?: string;
34037
34971
  updated_at?: string;
34038
34972
  };
34039
34973
  Relationships: [];
@@ -36676,6 +37610,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36676
37610
  isOneToOne: false;
36677
37611
  referencedRelation: "planning_items";
36678
37612
  referencedColumns: ["id"];
37613
+ }, {
37614
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
37615
+ columns: ["planning_item_id"];
37616
+ isOneToOne: false;
37617
+ referencedRelation: "planning_overview";
37618
+ referencedColumns: ["id"];
36679
37619
  }];
36680
37620
  };
36681
37621
  planning_items: {
@@ -36771,6 +37711,39 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36771
37711
  };
36772
37712
  Relationships: [];
36773
37713
  };
37714
+ print_dedupe_events: {
37715
+ Row: {
37716
+ bestaande_job_id: string | null;
37717
+ created_at: string;
37718
+ detail: string | null;
37719
+ documentnaam: string | null;
37720
+ documenttype: string | null;
37721
+ id: string;
37722
+ idempotentie_sleutel: string;
37723
+ reden: string;
37724
+ };
37725
+ Insert: {
37726
+ bestaande_job_id?: string | null;
37727
+ created_at?: string;
37728
+ detail?: string | null;
37729
+ documentnaam?: string | null;
37730
+ documenttype?: string | null;
37731
+ id?: string;
37732
+ idempotentie_sleutel: string;
37733
+ reden: string;
37734
+ };
37735
+ Update: {
37736
+ bestaande_job_id?: string | null;
37737
+ created_at?: string;
37738
+ detail?: string | null;
37739
+ documentnaam?: string | null;
37740
+ documenttype?: string | null;
37741
+ id?: string;
37742
+ idempotentie_sleutel?: string;
37743
+ reden?: string;
37744
+ };
37745
+ Relationships: [];
37746
+ };
36774
37747
  print_job_logs: {
36775
37748
  Row: {
36776
37749
  created_at: string;
@@ -36812,6 +37785,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36812
37785
  foutmelding: string | null;
36813
37786
  gebruiker_id: string | null;
36814
37787
  gebruiker_naam: string;
37788
+ gebruikte_bron: string | null;
37789
+ gebruikte_layout_id: string | null;
36815
37790
  gestart_op: string | null;
36816
37791
  herkomst: string | null;
36817
37792
  id: string;
@@ -36819,6 +37794,9 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36819
37794
  is_herprint: boolean;
36820
37795
  kopieen: number;
36821
37796
  layout_id: string | null;
37797
+ lokaal_opgeslagen_op: string | null;
37798
+ lokale_pdf_fout: string | null;
37799
+ lokale_pdf_status: string | null;
36822
37800
  opgepakt_op: string | null;
36823
37801
  paginas: number;
36824
37802
  payload: import("../integrations/supabase/types").Json;
@@ -36827,6 +37805,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36827
37805
  pogingen: number;
36828
37806
  printer_id: string | null;
36829
37807
  render_html: string | null;
37808
+ resultaat_pdf_base64: string | null;
36830
37809
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36831
37810
  updated_at: string;
36832
37811
  volgende_poging: string | null;
@@ -36842,6 +37821,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36842
37821
  foutmelding?: string | null;
36843
37822
  gebruiker_id?: string | null;
36844
37823
  gebruiker_naam?: string;
37824
+ gebruikte_bron?: string | null;
37825
+ gebruikte_layout_id?: string | null;
36845
37826
  gestart_op?: string | null;
36846
37827
  herkomst?: string | null;
36847
37828
  id?: string;
@@ -36849,6 +37830,9 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36849
37830
  is_herprint?: boolean;
36850
37831
  kopieen?: number;
36851
37832
  layout_id?: string | null;
37833
+ lokaal_opgeslagen_op?: string | null;
37834
+ lokale_pdf_fout?: string | null;
37835
+ lokale_pdf_status?: string | null;
36852
37836
  opgepakt_op?: string | null;
36853
37837
  paginas?: number;
36854
37838
  payload?: import("../integrations/supabase/types").Json;
@@ -36857,6 +37841,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36857
37841
  pogingen?: number;
36858
37842
  printer_id?: string | null;
36859
37843
  render_html?: string | null;
37844
+ resultaat_pdf_base64?: string | null;
36860
37845
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36861
37846
  updated_at?: string;
36862
37847
  volgende_poging?: string | null;
@@ -36872,6 +37857,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36872
37857
  foutmelding?: string | null;
36873
37858
  gebruiker_id?: string | null;
36874
37859
  gebruiker_naam?: string;
37860
+ gebruikte_bron?: string | null;
37861
+ gebruikte_layout_id?: string | null;
36875
37862
  gestart_op?: string | null;
36876
37863
  herkomst?: string | null;
36877
37864
  id?: string;
@@ -36879,6 +37866,9 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36879
37866
  is_herprint?: boolean;
36880
37867
  kopieen?: number;
36881
37868
  layout_id?: string | null;
37869
+ lokaal_opgeslagen_op?: string | null;
37870
+ lokale_pdf_fout?: string | null;
37871
+ lokale_pdf_status?: string | null;
36882
37872
  opgepakt_op?: string | null;
36883
37873
  paginas?: number;
36884
37874
  payload?: import("../integrations/supabase/types").Json;
@@ -36887,6 +37877,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36887
37877
  pogingen?: number;
36888
37878
  printer_id?: string | null;
36889
37879
  render_html?: string | null;
37880
+ resultaat_pdf_base64?: string | null;
36890
37881
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36891
37882
  updated_at?: string;
36892
37883
  volgende_poging?: string | null;
@@ -37005,6 +37996,39 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
37005
37996
  };
37006
37997
  Relationships: [];
37007
37998
  };
37999
+ print_preview_events: {
38000
+ Row: {
38001
+ code: string | null;
38002
+ created_at: string;
38003
+ detail: import("../integrations/supabase/types").Json;
38004
+ id: string;
38005
+ queue_item_id: string | null;
38006
+ reden: string | null;
38007
+ station_slug: string | null;
38008
+ uitkomst: string;
38009
+ };
38010
+ Insert: {
38011
+ code?: string | null;
38012
+ created_at?: string;
38013
+ detail?: import("../integrations/supabase/types").Json;
38014
+ id?: string;
38015
+ queue_item_id?: string | null;
38016
+ reden?: string | null;
38017
+ station_slug?: string | null;
38018
+ uitkomst?: string;
38019
+ };
38020
+ Update: {
38021
+ code?: string | null;
38022
+ created_at?: string;
38023
+ detail?: import("../integrations/supabase/types").Json;
38024
+ id?: string;
38025
+ queue_item_id?: string | null;
38026
+ reden?: string | null;
38027
+ station_slug?: string | null;
38028
+ uitkomst?: string;
38029
+ };
38030
+ Relationships: [];
38031
+ };
37008
38032
  print_queue_runners: {
37009
38033
  Row: {
37010
38034
  actief: boolean;
@@ -37244,6 +38268,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
37244
38268
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37245
38269
  online: boolean;
37246
38270
  papierformaat: string;
38271
+ pdf_map: string | null;
37247
38272
  poort: number | null;
37248
38273
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37249
38274
  systeemnaam: string;
@@ -37269,6 +38294,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
37269
38294
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37270
38295
  online?: boolean;
37271
38296
  papierformaat?: string;
38297
+ pdf_map?: string | null;
37272
38298
  poort?: number | null;
37273
38299
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37274
38300
  systeemnaam?: string;
@@ -37294,6 +38320,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
37294
38320
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37295
38321
  online?: boolean;
37296
38322
  papierformaat?: string;
38323
+ pdf_map?: string | null;
37297
38324
  poort?: number | null;
37298
38325
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37299
38326
  systeemnaam?: string;
@@ -38166,450 +39193,6 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38166
39193
  referencedColumns: ["id"];
38167
39194
  }];
38168
39195
  };
38169
- quote_activities: {
38170
- Row: {
38171
- created_at: string;
38172
- event_type: string;
38173
- id: string;
38174
- metadata: import("../integrations/supabase/types").Json;
38175
- quote_id: string;
38176
- user_id: string | null;
38177
- };
38178
- Insert: {
38179
- created_at?: string;
38180
- event_type: string;
38181
- id?: string;
38182
- metadata?: import("../integrations/supabase/types").Json;
38183
- quote_id: string;
38184
- user_id?: string | null;
38185
- };
38186
- Update: {
38187
- created_at?: string;
38188
- event_type?: string;
38189
- id?: string;
38190
- metadata?: import("../integrations/supabase/types").Json;
38191
- quote_id?: string;
38192
- user_id?: string | null;
38193
- };
38194
- Relationships: [{
38195
- foreignKeyName: "quote_activities_quote_id_fkey";
38196
- columns: ["quote_id"];
38197
- isOneToOne: false;
38198
- referencedRelation: "quotes";
38199
- referencedColumns: ["id"];
38200
- }];
38201
- };
38202
- quote_attachments: {
38203
- Row: {
38204
- created_at: string;
38205
- file_name: string;
38206
- file_size: number | null;
38207
- file_url: string;
38208
- id: string;
38209
- mime_type: string | null;
38210
- quote_id: string;
38211
- };
38212
- Insert: {
38213
- created_at?: string;
38214
- file_name: string;
38215
- file_size?: number | null;
38216
- file_url: string;
38217
- id?: string;
38218
- mime_type?: string | null;
38219
- quote_id: string;
38220
- };
38221
- Update: {
38222
- created_at?: string;
38223
- file_name?: string;
38224
- file_size?: number | null;
38225
- file_url?: string;
38226
- id?: string;
38227
- mime_type?: string | null;
38228
- quote_id?: string;
38229
- };
38230
- Relationships: [{
38231
- foreignKeyName: "quote_attachments_quote_id_fkey";
38232
- columns: ["quote_id"];
38233
- isOneToOne: false;
38234
- referencedRelation: "quotes";
38235
- referencedColumns: ["id"];
38236
- }];
38237
- };
38238
- quote_field_options: {
38239
- Row: {
38240
- created_at: string;
38241
- field_id: string;
38242
- id: string;
38243
- label: string;
38244
- sort_order: number;
38245
- value: string;
38246
- };
38247
- Insert: {
38248
- created_at?: string;
38249
- field_id: string;
38250
- id?: string;
38251
- label: string;
38252
- sort_order?: number;
38253
- value: string;
38254
- };
38255
- Update: {
38256
- created_at?: string;
38257
- field_id?: string;
38258
- id?: string;
38259
- label?: string;
38260
- sort_order?: number;
38261
- value?: string;
38262
- };
38263
- Relationships: [{
38264
- foreignKeyName: "quote_field_options_field_id_fkey";
38265
- columns: ["field_id"];
38266
- isOneToOne: false;
38267
- referencedRelation: "quote_field_settings";
38268
- referencedColumns: ["id"];
38269
- }];
38270
- };
38271
- quote_field_settings: {
38272
- Row: {
38273
- created_at: string;
38274
- default_value: string | null;
38275
- field_key: string;
38276
- field_type: string;
38277
- id: string;
38278
- is_system: boolean;
38279
- label: string;
38280
- required: boolean;
38281
- sort_order: number;
38282
- updated_at: string;
38283
- visible: boolean;
38284
- };
38285
- Insert: {
38286
- created_at?: string;
38287
- default_value?: string | null;
38288
- field_key: string;
38289
- field_type: string;
38290
- id?: string;
38291
- is_system?: boolean;
38292
- label: string;
38293
- required?: boolean;
38294
- sort_order?: number;
38295
- updated_at?: string;
38296
- visible?: boolean;
38297
- };
38298
- Update: {
38299
- created_at?: string;
38300
- default_value?: string | null;
38301
- field_key?: string;
38302
- field_type?: string;
38303
- id?: string;
38304
- is_system?: boolean;
38305
- label?: string;
38306
- required?: boolean;
38307
- sort_order?: number;
38308
- updated_at?: string;
38309
- visible?: boolean;
38310
- };
38311
- Relationships: [];
38312
- };
38313
- quote_items: {
38314
- Row: {
38315
- category: string | null;
38316
- created_at: string;
38317
- description: string;
38318
- id: string;
38319
- line_total: number;
38320
- module_id: string | null;
38321
- name: string | null;
38322
- quantity: number;
38323
- quote_id: string;
38324
- sort_order: number;
38325
- unit_price: number;
38326
- };
38327
- Insert: {
38328
- category?: string | null;
38329
- created_at?: string;
38330
- description?: string;
38331
- id?: string;
38332
- line_total?: number;
38333
- module_id?: string | null;
38334
- name?: string | null;
38335
- quantity?: number;
38336
- quote_id: string;
38337
- sort_order?: number;
38338
- unit_price?: number;
38339
- };
38340
- Update: {
38341
- category?: string | null;
38342
- created_at?: string;
38343
- description?: string;
38344
- id?: string;
38345
- line_total?: number;
38346
- module_id?: string | null;
38347
- name?: string | null;
38348
- quantity?: number;
38349
- quote_id?: string;
38350
- sort_order?: number;
38351
- unit_price?: number;
38352
- };
38353
- Relationships: [{
38354
- foreignKeyName: "quote_items_module_id_fkey";
38355
- columns: ["module_id"];
38356
- isOneToOne: false;
38357
- referencedRelation: "quote_modules";
38358
- referencedColumns: ["id"];
38359
- }, {
38360
- foreignKeyName: "quote_items_quote_id_fkey";
38361
- columns: ["quote_id"];
38362
- isOneToOne: false;
38363
- referencedRelation: "quotes";
38364
- referencedColumns: ["id"];
38365
- }];
38366
- };
38367
- quote_modules: {
38368
- Row: {
38369
- category: string | null;
38370
- created_at: string;
38371
- description: string | null;
38372
- id: string;
38373
- is_active: boolean;
38374
- name: string;
38375
- price: number;
38376
- sort_order: number;
38377
- updated_at: string;
38378
- };
38379
- Insert: {
38380
- category?: string | null;
38381
- created_at?: string;
38382
- description?: string | null;
38383
- id?: string;
38384
- is_active?: boolean;
38385
- name: string;
38386
- price?: number;
38387
- sort_order?: number;
38388
- updated_at?: string;
38389
- };
38390
- Update: {
38391
- category?: string | null;
38392
- created_at?: string;
38393
- description?: string | null;
38394
- id?: string;
38395
- is_active?: boolean;
38396
- name?: string;
38397
- price?: number;
38398
- sort_order?: number;
38399
- updated_at?: string;
38400
- };
38401
- Relationships: [];
38402
- };
38403
- quote_templates: {
38404
- Row: {
38405
- created_at: string;
38406
- description: string | null;
38407
- field_values: import("../integrations/supabase/types").Json;
38408
- id: string;
38409
- is_default: boolean;
38410
- items: import("../integrations/supabase/types").Json;
38411
- name: string;
38412
- updated_at: string;
38413
- vat_rate: number;
38414
- };
38415
- Insert: {
38416
- created_at?: string;
38417
- description?: string | null;
38418
- field_values?: import("../integrations/supabase/types").Json;
38419
- id?: string;
38420
- is_default?: boolean;
38421
- items?: import("../integrations/supabase/types").Json;
38422
- name: string;
38423
- updated_at?: string;
38424
- vat_rate?: number;
38425
- };
38426
- Update: {
38427
- created_at?: string;
38428
- description?: string | null;
38429
- field_values?: import("../integrations/supabase/types").Json;
38430
- id?: string;
38431
- is_default?: boolean;
38432
- items?: import("../integrations/supabase/types").Json;
38433
- name?: string;
38434
- updated_at?: string;
38435
- vat_rate?: number;
38436
- };
38437
- Relationships: [];
38438
- };
38439
- quote_terms: {
38440
- Row: {
38441
- content: string | null;
38442
- created_at: string;
38443
- file_url: string | null;
38444
- id: string;
38445
- is_active: boolean;
38446
- name: string;
38447
- published_at: string | null;
38448
- updated_at: string;
38449
- version: string;
38450
- };
38451
- Insert: {
38452
- content?: string | null;
38453
- created_at?: string;
38454
- file_url?: string | null;
38455
- id?: string;
38456
- is_active?: boolean;
38457
- name: string;
38458
- published_at?: string | null;
38459
- updated_at?: string;
38460
- version?: string;
38461
- };
38462
- Update: {
38463
- content?: string | null;
38464
- created_at?: string;
38465
- file_url?: string | null;
38466
- id?: string;
38467
- is_active?: boolean;
38468
- name?: string;
38469
- published_at?: string | null;
38470
- updated_at?: string;
38471
- version?: string;
38472
- };
38473
- Relationships: [];
38474
- };
38475
- quotes: {
38476
- Row: {
38477
- accepted_at: string | null;
38478
- archived_at: string | null;
38479
- contact_id: string | null;
38480
- created_at: string;
38481
- customer_id: string | null;
38482
- discount: number;
38483
- expires_at: string | null;
38484
- field_values: import("../integrations/supabase/types").Json;
38485
- id: string;
38486
- notes: string | null;
38487
- owner_id: string | null;
38488
- personal_message: string | null;
38489
- project_id: string | null;
38490
- prospect_id: string | null;
38491
- public_token: string;
38492
- quote_number: string | null;
38493
- recipient_email: string | null;
38494
- recipient_name: string | null;
38495
- rejected_at: string | null;
38496
- sent_at: string | null;
38497
- status: string;
38498
- subtotal: number;
38499
- template_id: string | null;
38500
- terms_id: string | null;
38501
- title: string;
38502
- total: number;
38503
- updated_at: string;
38504
- valid_until: string | null;
38505
- vat_amount: number;
38506
- vat_rate: number;
38507
- viewed_at: string | null;
38508
- };
38509
- Insert: {
38510
- accepted_at?: string | null;
38511
- archived_at?: string | null;
38512
- contact_id?: string | null;
38513
- created_at?: string;
38514
- customer_id?: string | null;
38515
- discount?: number;
38516
- expires_at?: string | null;
38517
- field_values?: import("../integrations/supabase/types").Json;
38518
- id?: string;
38519
- notes?: string | null;
38520
- owner_id?: string | null;
38521
- personal_message?: string | null;
38522
- project_id?: string | null;
38523
- prospect_id?: string | null;
38524
- public_token?: string;
38525
- quote_number?: string | null;
38526
- recipient_email?: string | null;
38527
- recipient_name?: string | null;
38528
- rejected_at?: string | null;
38529
- sent_at?: string | null;
38530
- status?: string;
38531
- subtotal?: number;
38532
- template_id?: string | null;
38533
- terms_id?: string | null;
38534
- title?: string;
38535
- total?: number;
38536
- updated_at?: string;
38537
- valid_until?: string | null;
38538
- vat_amount?: number;
38539
- vat_rate?: number;
38540
- viewed_at?: string | null;
38541
- };
38542
- Update: {
38543
- accepted_at?: string | null;
38544
- archived_at?: string | null;
38545
- contact_id?: string | null;
38546
- created_at?: string;
38547
- customer_id?: string | null;
38548
- discount?: number;
38549
- expires_at?: string | null;
38550
- field_values?: import("../integrations/supabase/types").Json;
38551
- id?: string;
38552
- notes?: string | null;
38553
- owner_id?: string | null;
38554
- personal_message?: string | null;
38555
- project_id?: string | null;
38556
- prospect_id?: string | null;
38557
- public_token?: string;
38558
- quote_number?: string | null;
38559
- recipient_email?: string | null;
38560
- recipient_name?: string | null;
38561
- rejected_at?: string | null;
38562
- sent_at?: string | null;
38563
- status?: string;
38564
- subtotal?: number;
38565
- template_id?: string | null;
38566
- terms_id?: string | null;
38567
- title?: string;
38568
- total?: number;
38569
- updated_at?: string;
38570
- valid_until?: string | null;
38571
- vat_amount?: number;
38572
- vat_rate?: number;
38573
- viewed_at?: string | null;
38574
- };
38575
- Relationships: [{
38576
- foreignKeyName: "quotes_contact_id_fkey";
38577
- columns: ["contact_id"];
38578
- isOneToOne: false;
38579
- referencedRelation: "customer_contacts";
38580
- referencedColumns: ["id"];
38581
- }, {
38582
- foreignKeyName: "quotes_customer_id_fkey";
38583
- columns: ["customer_id"];
38584
- isOneToOne: false;
38585
- referencedRelation: "customers";
38586
- referencedColumns: ["id"];
38587
- }, {
38588
- foreignKeyName: "quotes_project_id_fkey";
38589
- columns: ["project_id"];
38590
- isOneToOne: false;
38591
- referencedRelation: "projects";
38592
- referencedColumns: ["id"];
38593
- }, {
38594
- foreignKeyName: "quotes_prospect_id_fkey";
38595
- columns: ["prospect_id"];
38596
- isOneToOne: false;
38597
- referencedRelation: "prospects";
38598
- referencedColumns: ["id"];
38599
- }, {
38600
- foreignKeyName: "quotes_template_id_fkey";
38601
- columns: ["template_id"];
38602
- isOneToOne: false;
38603
- referencedRelation: "quote_templates";
38604
- referencedColumns: ["id"];
38605
- }, {
38606
- foreignKeyName: "quotes_terms_id_fkey";
38607
- columns: ["terms_id"];
38608
- isOneToOne: false;
38609
- referencedRelation: "quote_terms";
38610
- referencedColumns: ["id"];
38611
- }];
38612
- };
38613
39196
  reception_notifications: {
38614
39197
  Row: {
38615
39198
  booking_id: string | null;
@@ -39731,7 +40314,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39731
40314
  foreignKeyName: "time_logs_work_order_id_fkey";
39732
40315
  columns: ["work_order_id"];
39733
40316
  isOneToOne: false;
39734
- referencedRelation: "work_orders";
40317
+ referencedRelation: "werkbonnen";
39735
40318
  referencedColumns: ["id"];
39736
40319
  }];
39737
40320
  };
@@ -39863,6 +40446,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39863
40446
  };
39864
40447
  trade_item_stock: {
39865
40448
  Row: {
40449
+ change_source: string;
39866
40450
  connection_id: string;
39867
40451
  created_at: string;
39868
40452
  id: string;
@@ -39876,6 +40460,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39876
40460
  user_id: string;
39877
40461
  };
39878
40462
  Insert: {
40463
+ change_source?: string;
39879
40464
  connection_id: string;
39880
40465
  created_at?: string;
39881
40466
  id?: string;
@@ -39889,6 +40474,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39889
40474
  user_id: string;
39890
40475
  };
39891
40476
  Update: {
40477
+ change_source?: string;
39892
40478
  connection_id?: string;
39893
40479
  created_at?: string;
39894
40480
  id?: string;
@@ -41058,156 +41644,6 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
41058
41644
  };
41059
41645
  Relationships: [];
41060
41646
  };
41061
- uren_offerte_regels: {
41062
- Row: {
41063
- created_at: string;
41064
- description: string;
41065
- duration_minutes: number;
41066
- id: string;
41067
- offerte_id: string;
41068
- package_id: string | null;
41069
- quantity: number;
41070
- sort_order: number;
41071
- total_cents: number;
41072
- unit_price_cents: number;
41073
- };
41074
- Insert: {
41075
- created_at?: string;
41076
- description: string;
41077
- duration_minutes?: number;
41078
- id?: string;
41079
- offerte_id: string;
41080
- package_id?: string | null;
41081
- quantity?: number;
41082
- sort_order?: number;
41083
- total_cents?: number;
41084
- unit_price_cents?: number;
41085
- };
41086
- Update: {
41087
- created_at?: string;
41088
- description?: string;
41089
- duration_minutes?: number;
41090
- id?: string;
41091
- offerte_id?: string;
41092
- package_id?: string | null;
41093
- quantity?: number;
41094
- sort_order?: number;
41095
- total_cents?: number;
41096
- unit_price_cents?: number;
41097
- };
41098
- Relationships: [{
41099
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
41100
- columns: ["offerte_id"];
41101
- isOneToOne: false;
41102
- referencedRelation: "uren_offertes";
41103
- referencedColumns: ["id"];
41104
- }, {
41105
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
41106
- columns: ["package_id"];
41107
- isOneToOne: false;
41108
- referencedRelation: "werkbon_packages";
41109
- referencedColumns: ["id"];
41110
- }];
41111
- };
41112
- uren_offerte_velden: {
41113
- Row: {
41114
- created_at: string;
41115
- field_type: string;
41116
- id: string;
41117
- key: string;
41118
- label: string;
41119
- options: string[];
41120
- required: boolean;
41121
- sort_order: number;
41122
- updated_at: string;
41123
- };
41124
- Insert: {
41125
- created_at?: string;
41126
- field_type?: string;
41127
- id?: string;
41128
- key: string;
41129
- label: string;
41130
- options?: string[];
41131
- required?: boolean;
41132
- sort_order?: number;
41133
- updated_at?: string;
41134
- };
41135
- Update: {
41136
- created_at?: string;
41137
- field_type?: string;
41138
- id?: string;
41139
- key?: string;
41140
- label?: string;
41141
- options?: string[];
41142
- required?: boolean;
41143
- sort_order?: number;
41144
- updated_at?: string;
41145
- };
41146
- Relationships: [];
41147
- };
41148
- uren_offertes: {
41149
- Row: {
41150
- created_at: string;
41151
- created_by: string | null;
41152
- customer_id: string | null;
41153
- customer_name: string | null;
41154
- dynamic_fields: import("../integrations/supabase/types").Json;
41155
- estimated_minutes: number;
41156
- id: string;
41157
- note: string | null;
41158
- quote_number: string | null;
41159
- status: string;
41160
- title: string;
41161
- total_excl_cents: number;
41162
- total_incl_cents: number;
41163
- updated_at: string;
41164
- valid_until: string | null;
41165
- vat_percentage: number;
41166
- };
41167
- Insert: {
41168
- created_at?: string;
41169
- created_by?: string | null;
41170
- customer_id?: string | null;
41171
- customer_name?: string | null;
41172
- dynamic_fields?: import("../integrations/supabase/types").Json;
41173
- estimated_minutes?: number;
41174
- id?: string;
41175
- note?: string | null;
41176
- quote_number?: string | null;
41177
- status?: string;
41178
- title?: string;
41179
- total_excl_cents?: number;
41180
- total_incl_cents?: number;
41181
- updated_at?: string;
41182
- valid_until?: string | null;
41183
- vat_percentage?: number;
41184
- };
41185
- Update: {
41186
- created_at?: string;
41187
- created_by?: string | null;
41188
- customer_id?: string | null;
41189
- customer_name?: string | null;
41190
- dynamic_fields?: import("../integrations/supabase/types").Json;
41191
- estimated_minutes?: number;
41192
- id?: string;
41193
- note?: string | null;
41194
- quote_number?: string | null;
41195
- status?: string;
41196
- title?: string;
41197
- total_excl_cents?: number;
41198
- total_incl_cents?: number;
41199
- updated_at?: string;
41200
- valid_until?: string | null;
41201
- vat_percentage?: number;
41202
- };
41203
- Relationships: [{
41204
- foreignKeyName: "uren_offertes_customer_id_fkey";
41205
- columns: ["customer_id"];
41206
- isOneToOne: false;
41207
- referencedRelation: "itk_customers";
41208
- referencedColumns: ["id"];
41209
- }];
41210
- };
41211
41647
  uren_settings: {
41212
41648
  Row: {
41213
41649
  break_minutes: number;
@@ -42894,6 +43330,37 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
42894
43330
  };
42895
43331
  Relationships: [];
42896
43332
  };
43333
+ planning_overview: {
43334
+ Row: {
43335
+ assigned_monteur_id: string | null;
43336
+ assistants: import("../integrations/supabase/types").Json | null;
43337
+ budget_mandate_cents: number | null;
43338
+ created_at: string | null;
43339
+ created_by: string | null;
43340
+ customer_id: string | null;
43341
+ customer_name: string | null;
43342
+ duration_minutes: number | null;
43343
+ end_at: string | null;
43344
+ id: string | null;
43345
+ needs_detail_review: boolean | null;
43346
+ notes: string | null;
43347
+ project_number: string | null;
43348
+ review_reasons: string[] | null;
43349
+ start_at: string | null;
43350
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
43351
+ updated_at: string | null;
43352
+ viewer_role: string | null;
43353
+ werkbon_id: string | null;
43354
+ work_address: string | null;
43355
+ };
43356
+ Relationships: [{
43357
+ foreignKeyName: "planning_items_werkbon_id_fkey";
43358
+ columns: ["werkbon_id"];
43359
+ isOneToOne: false;
43360
+ referencedRelation: "werkbonnen";
43361
+ referencedColumns: ["id"];
43362
+ }];
43363
+ };
42897
43364
  product_group_stock_view: {
42898
43365
  Row: {
42899
43366
  item_count: number | null;
@@ -43489,6 +43956,18 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
43489
43956
  Args: never;
43490
43957
  Returns: number;
43491
43958
  };
43959
+ calculate_floriday_desired_stock: {
43960
+ Args: {
43961
+ p_connection_id: string;
43962
+ p_product_id: string;
43963
+ };
43964
+ Returns: {
43965
+ desired_availability: boolean;
43966
+ desired_quantity: number;
43967
+ erp_available: number;
43968
+ stock_mode: string;
43969
+ }[];
43970
+ };
43492
43971
  calculate_layer_stock: {
43493
43972
  Args: {
43494
43973
  p_product_id: string;
@@ -43541,6 +44020,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
43541
44020
  foutmelding: string | null;
43542
44021
  gebruiker_id: string | null;
43543
44022
  gebruiker_naam: string;
44023
+ gebruikte_bron: string | null;
44024
+ gebruikte_layout_id: string | null;
43544
44025
  gestart_op: string | null;
43545
44026
  herkomst: string | null;
43546
44027
  id: string;
@@ -43548,6 +44029,9 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
43548
44029
  is_herprint: boolean;
43549
44030
  kopieen: number;
43550
44031
  layout_id: string | null;
44032
+ lokaal_opgeslagen_op: string | null;
44033
+ lokale_pdf_fout: string | null;
44034
+ lokale_pdf_status: string | null;
43551
44035
  opgepakt_op: string | null;
43552
44036
  paginas: number;
43553
44037
  payload: import("../integrations/supabase/types").Json;
@@ -43556,6 +44040,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
43556
44040
  pogingen: number;
43557
44041
  printer_id: string | null;
43558
44042
  render_html: string | null;
44043
+ resultaat_pdf_base64: string | null;
43559
44044
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43560
44045
  updated_at: string;
43561
44046
  volgende_poging: string | null;
@@ -43577,6 +44062,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
43577
44062
  attempts: number;
43578
44063
  connection_id: string;
43579
44064
  created_at: string;
44065
+ dead_lettered_at: string | null;
43580
44066
  desired_available: boolean | null;
43581
44067
  gateway_attempt_id: string | null;
43582
44068
  id: string;
@@ -43585,9 +44071,13 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
43585
44071
  locked_by: string | null;
43586
44072
  next_attempt_at: string;
43587
44073
  number_of_pieces: number;
44074
+ product_id: string | null;
43588
44075
  sent_at: string | null;
43589
44076
  status: string;
44077
+ stock_mode: string | null;
43590
44078
  superseded_by: string | null;
44079
+ target_week: number | null;
44080
+ target_year: number | null;
43591
44081
  trade_item_id: string;
43592
44082
  updated_at: string;
43593
44083
  user_id: string;
@@ -43647,6 +44137,53 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
43647
44137
  isSetofReturn: true;
43648
44138
  };
43649
44139
  };
44140
+ claim_pdf_print_jobs: {
44141
+ Args: {
44142
+ _max?: number;
44143
+ };
44144
+ Returns: {
44145
+ agent_id: string | null;
44146
+ bron_job_id: string | null;
44147
+ created_at: string;
44148
+ documentnaam: string;
44149
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44150
+ extern_job_id: string | null;
44151
+ foutmelding: string | null;
44152
+ gebruiker_id: string | null;
44153
+ gebruiker_naam: string;
44154
+ gebruikte_bron: string | null;
44155
+ gebruikte_layout_id: string | null;
44156
+ gestart_op: string | null;
44157
+ herkomst: string | null;
44158
+ id: string;
44159
+ idempotentie_sleutel: string | null;
44160
+ is_herprint: boolean;
44161
+ kopieen: number;
44162
+ layout_id: string | null;
44163
+ lokaal_opgeslagen_op: string | null;
44164
+ lokale_pdf_fout: string | null;
44165
+ lokale_pdf_status: string | null;
44166
+ opgepakt_op: string | null;
44167
+ paginas: number;
44168
+ payload: import("../integrations/supabase/types").Json;
44169
+ pdf_base64: string | null;
44170
+ pdf_url: string | null;
44171
+ pogingen: number;
44172
+ printer_id: string | null;
44173
+ render_html: string | null;
44174
+ resultaat_pdf_base64: string | null;
44175
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44176
+ updated_at: string;
44177
+ volgende_poging: string | null;
44178
+ voltooid_op: string | null;
44179
+ }[];
44180
+ SetofOptions: {
44181
+ from: "*";
44182
+ to: "print_jobs";
44183
+ isOneToOne: false;
44184
+ isSetofReturn: true;
44185
+ };
44186
+ };
43650
44187
  claim_print_jobs: {
43651
44188
  Args: {
43652
44189
  _agent_id: string;
@@ -43662,6 +44199,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
43662
44199
  foutmelding: string | null;
43663
44200
  gebruiker_id: string | null;
43664
44201
  gebruiker_naam: string;
44202
+ gebruikte_bron: string | null;
44203
+ gebruikte_layout_id: string | null;
43665
44204
  gestart_op: string | null;
43666
44205
  herkomst: string | null;
43667
44206
  id: string;
@@ -43669,6 +44208,9 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
43669
44208
  is_herprint: boolean;
43670
44209
  kopieen: number;
43671
44210
  layout_id: string | null;
44211
+ lokaal_opgeslagen_op: string | null;
44212
+ lokale_pdf_fout: string | null;
44213
+ lokale_pdf_status: string | null;
43672
44214
  opgepakt_op: string | null;
43673
44215
  paginas: number;
43674
44216
  payload: import("../integrations/supabase/types").Json;
@@ -43677,6 +44219,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
43677
44219
  pogingen: number;
43678
44220
  printer_id: string | null;
43679
44221
  render_html: string | null;
44222
+ resultaat_pdf_base64: string | null;
43680
44223
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43681
44224
  updated_at: string;
43682
44225
  volgende_poging: string | null;
@@ -43817,6 +44360,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
43817
44360
  order_id: string;
43818
44361
  order_source: string;
43819
44362
  pick_date: string;
44363
+ printed_at: string;
44364
+ printed_today: boolean;
43820
44365
  status: string;
43821
44366
  }[];
43822
44367
  };
@@ -44013,6 +44558,24 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44013
44558
  };
44014
44559
  Returns: string;
44015
44560
  };
44561
+ floriday_capture_stock_snapshot: {
44562
+ Args: never;
44563
+ Returns: number;
44564
+ };
44565
+ floriday_cleanup_stock_queue_v2: {
44566
+ Args: never;
44567
+ Returns: undefined;
44568
+ };
44569
+ floriday_compact_stock_snapshots: {
44570
+ Args: never;
44571
+ Returns: undefined;
44572
+ };
44573
+ floriday_default_owner: {
44574
+ Args: {
44575
+ p_connection_id: string;
44576
+ };
44577
+ Returns: string;
44578
+ };
44016
44579
  floriday_effective_price: {
44017
44580
  Args: {
44018
44581
  _buyer_id: string;
@@ -44030,6 +44593,34 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44030
44593
  source_id: string;
44031
44594
  }[];
44032
44595
  };
44596
+ floriday_fill_publish_horizon: {
44597
+ Args: never;
44598
+ Returns: number;
44599
+ };
44600
+ floriday_ingest_sales_orders: {
44601
+ Args: {
44602
+ p_limit?: number;
44603
+ };
44604
+ Returns: number;
44605
+ };
44606
+ floriday_publish_horizon_weeks: {
44607
+ Args: never;
44608
+ Returns: number;
44609
+ };
44610
+ floriday_recompute_inventory: {
44611
+ Args: {
44612
+ p_connection_id: string;
44613
+ p_force?: boolean;
44614
+ p_product_id: string;
44615
+ };
44616
+ Returns: undefined;
44617
+ };
44618
+ floriday_requeue_dead_letters: {
44619
+ Args: {
44620
+ p_connection_id?: string;
44621
+ };
44622
+ Returns: number;
44623
+ };
44033
44624
  format_cart_number: {
44034
44625
  Args: {
44035
44626
  p_pick_date: string;
@@ -44246,6 +44837,131 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44246
44837
  Args: never;
44247
44838
  Returns: string;
44248
44839
  };
44840
+ handover_get: {
44841
+ Args: {
44842
+ _module_id: string;
44843
+ };
44844
+ Returns: import("../integrations/supabase/types").Json;
44845
+ };
44846
+ handover_kern_naam: {
44847
+ Args: {
44848
+ _naam: string;
44849
+ };
44850
+ Returns: string;
44851
+ };
44852
+ handover_ketenmodel: {
44853
+ Args: never;
44854
+ Returns: import("../integrations/supabase/types").Json;
44855
+ };
44856
+ handover_kruisconflicten: {
44857
+ Args: never;
44858
+ Returns: import("../integrations/supabase/types").Json;
44859
+ };
44860
+ handover_list: {
44861
+ Args: never;
44862
+ Returns: import("../integrations/supabase/types").Json;
44863
+ };
44864
+ handover_mag_schrijven: {
44865
+ Args: {
44866
+ _module_id: string;
44867
+ };
44868
+ Returns: boolean;
44869
+ };
44870
+ handover_norm_naam: {
44871
+ Args: {
44872
+ _naam: string;
44873
+ };
44874
+ Returns: string;
44875
+ };
44876
+ handover_publish: {
44877
+ Args: {
44878
+ _bevindingen?: string;
44879
+ _bezit_tabellen?: string[];
44880
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
44881
+ _contractfuncties?: string[];
44882
+ _inhoud_md: string;
44883
+ _module_id: string;
44884
+ _module_titel: string;
44885
+ _ontbrekende_contracten?: string[];
44886
+ _samenvatting?: string;
44887
+ };
44888
+ Returns: number;
44889
+ };
44890
+ handover_publish_via_token: {
44891
+ Args: {
44892
+ _bevindingen?: string;
44893
+ _bezit_tabellen?: string[];
44894
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
44895
+ _contractfuncties?: string[];
44896
+ _inhoud_md: string;
44897
+ _module_id: string;
44898
+ _module_titel: string;
44899
+ _ontbrekende_contracten?: string[];
44900
+ _samenvatting?: string;
44901
+ _token_hash: string;
44902
+ };
44903
+ Returns: number;
44904
+ };
44905
+ handover_status: {
44906
+ Args: never;
44907
+ Returns: import("../integrations/supabase/types").Json;
44908
+ };
44909
+ handover_synonym_kern: {
44910
+ Args: {
44911
+ _naam: string;
44912
+ };
44913
+ Returns: string;
44914
+ };
44915
+ handover_token_intrekken: {
44916
+ Args: {
44917
+ _id: string;
44918
+ };
44919
+ Returns: boolean;
44920
+ };
44921
+ handover_token_lijst: {
44922
+ Args: never;
44923
+ Returns: import("../integrations/supabase/types").Json;
44924
+ };
44925
+ handover_token_maken: {
44926
+ Args: {
44927
+ _label?: string;
44928
+ _module_id: string;
44929
+ };
44930
+ Returns: string;
44931
+ };
44932
+ handover_update: {
44933
+ Args: {
44934
+ _bezit_tabellen?: string[];
44935
+ _contractfuncties?: string[];
44936
+ _herzieningstermijn_dagen?: number;
44937
+ _inhoud_md?: string;
44938
+ _module_id: string;
44939
+ _module_titel?: string;
44940
+ _samenvatting?: string;
44941
+ _versie: number;
44942
+ };
44943
+ Returns: boolean;
44944
+ } | {
44945
+ Args: {
44946
+ _bevindingen?: string;
44947
+ _bezit_tabellen?: string[];
44948
+ _contractfuncties?: string[];
44949
+ _herzieningstermijn_dagen?: number;
44950
+ _inhoud_md?: string;
44951
+ _module_id: string;
44952
+ _module_titel?: string;
44953
+ _ontbrekende_contracten?: string[];
44954
+ _samenvatting?: string;
44955
+ _versie: number;
44956
+ };
44957
+ Returns: boolean;
44958
+ };
44959
+ handover_versies: {
44960
+ Args: {
44961
+ _module_id: string;
44962
+ };
44963
+ Returns: import("../integrations/supabase/types").Json;
44964
+ };
44249
44965
  has_module_permission: {
44250
44966
  Args: {
44251
44967
  _min: string;
@@ -44265,6 +44981,25 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44265
44981
  Args: never;
44266
44982
  Returns: boolean;
44267
44983
  };
44984
+ instructie_get: {
44985
+ Args: {
44986
+ _sleutel: string;
44987
+ };
44988
+ Returns: import("../integrations/supabase/types").Json;
44989
+ };
44990
+ instructie_list: {
44991
+ Args: never;
44992
+ Returns: import("../integrations/supabase/types").Json;
44993
+ };
44994
+ instructie_publish: {
44995
+ Args: {
44996
+ _inhoud_md: string;
44997
+ _sleutel: string;
44998
+ _titel: string;
44999
+ _toelichting?: string;
45000
+ };
45001
+ Returns: number;
45002
+ };
44268
45003
  invoice_create_from_source: {
44269
45004
  Args: {
44270
45005
  _payload?: import("../integrations/supabase/types").Json;
@@ -44525,6 +45260,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44525
45260
  };
44526
45261
  Returns: number;
44527
45262
  };
45263
+ logistics_cancel_orphan_tasks: {
45264
+ Args: never;
45265
+ Returns: number;
45266
+ };
44528
45267
  logistics_capacity_day_check: {
44529
45268
  Args: {
44530
45269
  p_from?: string;
@@ -44545,6 +45284,25 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44545
45284
  };
44546
45285
  Returns: number;
44547
45286
  };
45287
+ logistics_cart_index: {
45288
+ Args: {
45289
+ p_from?: string;
45290
+ p_to?: string;
45291
+ };
45292
+ Returns: {
45293
+ cart_id: string;
45294
+ cart_index: number;
45295
+ cart_label: string;
45296
+ is_shared: boolean;
45297
+ order_number: string;
45298
+ order_source: string;
45299
+ order_uuid: string;
45300
+ pick_date: string;
45301
+ printed_at: string;
45302
+ shifted: boolean;
45303
+ task_status: string;
45304
+ }[];
45305
+ };
44548
45306
  logistics_check_order_allowed: {
44549
45307
  Args: {
44550
45308
  p_lines: import("../integrations/supabase/types").Json;
@@ -44693,6 +45451,17 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44693
45451
  isSetofReturn: false;
44694
45452
  };
44695
45453
  };
45454
+ logistics_consistency_check: {
45455
+ Args: never;
45456
+ Returns: {
45457
+ agenda_carts: number;
45458
+ control_carts: number;
45459
+ ok: boolean;
45460
+ orphan_tasks: number;
45461
+ pick_date: string;
45462
+ raw_carts: number;
45463
+ }[];
45464
+ };
44696
45465
  logistics_delay_customer_email: {
44697
45466
  Args: {
44698
45467
  p_customer: string;
@@ -44718,6 +45487,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44718
45487
  };
44719
45488
  Returns: string;
44720
45489
  };
45490
+ logistics_document_type_map: {
45491
+ Args: {
45492
+ _document_code: string;
45493
+ };
45494
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
45495
+ };
44721
45496
  logistics_emit_event: {
44722
45497
  Args: {
44723
45498
  p_event_type: string;
@@ -44776,6 +45551,16 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44776
45551
  isSetofReturn: false;
44777
45552
  };
44778
45553
  };
45554
+ logistics_floriday_cart_plan: {
45555
+ Args: {
45556
+ p_order_id: string;
45557
+ };
45558
+ Returns: {
45559
+ carrier_type: string;
45560
+ idx: number;
45561
+ packages: number;
45562
+ }[];
45563
+ };
44779
45564
  logistics_floriday_claim_pushes: {
44780
45565
  Args: {
44781
45566
  _lease_seconds?: number;
@@ -44880,6 +45665,25 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44880
45665
  };
44881
45666
  Returns: number;
44882
45667
  };
45668
+ logistics_order_overview: {
45669
+ Args: {
45670
+ p_from?: string;
45671
+ p_to?: string;
45672
+ };
45673
+ Returns: {
45674
+ cart_count: number;
45675
+ customer_name: string;
45676
+ delivery_date: string;
45677
+ order_number: string;
45678
+ order_source: string;
45679
+ order_uuid: string;
45680
+ pick_date: string;
45681
+ plant_count: number;
45682
+ printed_at: string;
45683
+ shifted: boolean;
45684
+ status: string;
45685
+ }[];
45686
+ };
44883
45687
  logistics_order_pick_day: {
44884
45688
  Args: {
44885
45689
  p_order_ref: string;
@@ -44892,6 +45696,22 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44892
45696
  };
44893
45697
  Returns: string;
44894
45698
  };
45699
+ logistics_pick_agenda: {
45700
+ Args: {
45701
+ p_from?: string;
45702
+ p_to?: string;
45703
+ };
45704
+ Returns: {
45705
+ cart_count: number;
45706
+ in_preparation: number;
45707
+ order_count: number;
45708
+ orders: import("../integrations/supabase/types").Json;
45709
+ pick_date: string;
45710
+ plant_count: number;
45711
+ ready: number;
45712
+ shifted_count: number;
45713
+ }[];
45714
+ };
44895
45715
  logistics_pick_email_purpose: {
44896
45716
  Args: never;
44897
45717
  Returns: string;
@@ -44946,6 +45766,13 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
44946
45766
  };
44947
45767
  Returns: undefined;
44948
45768
  };
45769
+ logistics_plan_floriday_order: {
45770
+ Args: {
45771
+ p_buffer_id?: string;
45772
+ p_order_id: string;
45773
+ };
45774
+ Returns: number;
45775
+ };
44949
45776
  logistics_plan_impact_orders: {
44950
45777
  Args: {
44951
45778
  p_order_id: string;
@@ -45051,6 +45878,15 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
45051
45878
  };
45052
45879
  Returns: import("../integrations/supabase/types").Json;
45053
45880
  };
45881
+ logistics_resolve_pick_document: {
45882
+ Args: {
45883
+ _is_herprint: boolean;
45884
+ _queue_item_id: string;
45885
+ _session_id: string;
45886
+ _voorbeeld: boolean;
45887
+ };
45888
+ Returns: import("../integrations/supabase/types").Json;
45889
+ };
45054
45890
  logistics_resolve_settings: {
45055
45891
  Args: {
45056
45892
  p_config_id: string;
@@ -45491,6 +46327,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
45491
46327
  };
45492
46328
  pick_enqueue_print_job: {
45493
46329
  Args: {
46330
+ _is_herprint?: boolean;
45494
46331
  _printer_id?: string;
45495
46332
  _queue_item_id: string;
45496
46333
  _session_id?: string;
@@ -45504,6 +46341,13 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
45504
46341
  };
45505
46342
  Returns: import("../integrations/supabase/types").Json;
45506
46343
  };
46344
+ pick_preview_job: {
46345
+ Args: {
46346
+ _queue_item_id: string;
46347
+ _station_slug: string;
46348
+ };
46349
+ Returns: import("../integrations/supabase/types").Json;
46350
+ };
45507
46351
  pick_print_job_status: {
45508
46352
  Args: {
45509
46353
  _job_id: string;
@@ -45681,6 +46525,84 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
45681
46525
  };
45682
46526
  Returns: undefined;
45683
46527
  };
46528
+ planning_cancel_item: {
46529
+ Args: {
46530
+ _id: string;
46531
+ };
46532
+ Returns: undefined;
46533
+ };
46534
+ planning_list: {
46535
+ Args: {
46536
+ _from: string;
46537
+ _to: string;
46538
+ };
46539
+ Returns: {
46540
+ assigned_monteur_id: string | null;
46541
+ assistants: import("../integrations/supabase/types").Json | null;
46542
+ budget_mandate_cents: number | null;
46543
+ created_at: string | null;
46544
+ created_by: string | null;
46545
+ customer_id: string | null;
46546
+ customer_name: string | null;
46547
+ duration_minutes: number | null;
46548
+ end_at: string | null;
46549
+ id: string | null;
46550
+ needs_detail_review: boolean | null;
46551
+ notes: string | null;
46552
+ project_number: string | null;
46553
+ review_reasons: string[] | null;
46554
+ start_at: string | null;
46555
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
46556
+ updated_at: string | null;
46557
+ viewer_role: string | null;
46558
+ werkbon_id: string | null;
46559
+ work_address: string | null;
46560
+ }[];
46561
+ SetofOptions: {
46562
+ from: "*";
46563
+ to: "planning_overview";
46564
+ isOneToOne: false;
46565
+ isSetofReturn: true;
46566
+ };
46567
+ };
46568
+ planning_set_assistants: {
46569
+ Args: {
46570
+ _monteur_ids: string[];
46571
+ _planning_item_id: string;
46572
+ };
46573
+ Returns: undefined;
46574
+ };
46575
+ planning_upsert_item: {
46576
+ Args: {
46577
+ _assigned_monteur_id: string;
46578
+ _end_at: string;
46579
+ _notes?: string;
46580
+ _start_at: string;
46581
+ _werkbon_id: string;
46582
+ };
46583
+ Returns: {
46584
+ action: string;
46585
+ id: string;
46586
+ }[];
46587
+ };
46588
+ print_preview_toestaan: {
46589
+ Args: {
46590
+ _max?: number;
46591
+ _queue_item_id: string;
46592
+ _station_slug: string;
46593
+ _venster_sec?: number;
46594
+ };
46595
+ Returns: import("../integrations/supabase/types").Json;
46596
+ };
46597
+ print_preview_weiger: {
46598
+ Args: {
46599
+ _code: string;
46600
+ _queue_item_id: string;
46601
+ _reden: string;
46602
+ _station_slug: string;
46603
+ };
46604
+ Returns: undefined;
46605
+ };
45684
46606
  process_logistics_event: {
45685
46607
  Args: {
45686
46608
  p_event_id: string;
@@ -45798,6 +46720,14 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
45798
46720
  };
45799
46721
  Returns: undefined;
45800
46722
  };
46723
+ replace_order_carts: {
46724
+ Args: {
46725
+ p_buffer_id: string;
46726
+ p_carts: import("../integrations/supabase/types").Json;
46727
+ p_order_id: string;
46728
+ };
46729
+ Returns: import("../integrations/supabase/types").Json;
46730
+ };
45801
46731
  reset_floriday_sync_cursor: {
45802
46732
  Args: {
45803
46733
  p_connection_id: string;
@@ -45827,6 +46757,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
45827
46757
  };
45828
46758
  Returns: string;
45829
46759
  };
46760
+ resolve_print_job_printer_id: {
46761
+ Args: {
46762
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46763
+ };
46764
+ Returns: string;
46765
+ };
45830
46766
  resolve_product_id_for_item: {
45831
46767
  Args: {
45832
46768
  p_product_name: string;
@@ -46230,6 +47166,26 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
46230
47166
  };
46231
47167
  Returns: string[];
46232
47168
  };
47169
+ start_time_log_at: {
47170
+ Args: {
47171
+ p_clicked_at?: string;
47172
+ p_employee_id: string;
47173
+ p_start_lat?: number;
47174
+ p_start_lng?: number;
47175
+ p_type: string;
47176
+ p_work_order_id?: string;
47177
+ };
47178
+ Returns: import("../integrations/supabase/types").Json;
47179
+ };
47180
+ stop_time_log: {
47181
+ Args: {
47182
+ p_employee_id: string;
47183
+ p_end_lat?: number;
47184
+ p_end_lng?: number;
47185
+ p_end_time: string;
47186
+ };
47187
+ Returns: import("../integrations/supabase/types").Json;
47188
+ };
46233
47189
  switch_time_log: {
46234
47190
  Args: {
46235
47191
  p_employee_id: string;
@@ -46418,7 +47374,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
46418
47374
  };
46419
47375
  CompositeTypes: { [_ in never]: never; };
46420
47376
  }, {
46421
- PostgrestVersion: "14.17";
47377
+ PostgrestVersion: "14.5";
46422
47378
  }>;
46423
47379
  userId: string;
46424
47380
  claims: import("@supabase/auth-js").JwtPayload;