@flowselections/logistiek-engine 1.0.34 → 1.0.53

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 (160) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/FlowCanvas.d.ts +28 -0
  3. package/dist-lib/components/FlowCanvas.d.ts.map +1 -0
  4. package/dist-lib/components/FlowCanvas.js +429 -0
  5. package/dist-lib/components/FlowOrders.d.ts +8 -0
  6. package/dist-lib/components/FlowOrders.d.ts.map +1 -0
  7. package/dist-lib/components/FlowOrders.js +125 -0
  8. package/dist-lib/components/FlowPage.d.ts +2 -0
  9. package/dist-lib/components/FlowPage.d.ts.map +1 -0
  10. package/dist-lib/components/FlowPage.js +141 -0
  11. package/dist-lib/components/InklapbaarVenster.d.ts +9 -0
  12. package/dist-lib/components/InklapbaarVenster.d.ts.map +1 -0
  13. package/dist-lib/components/InklapbaarVenster.js +10 -0
  14. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  15. package/dist-lib/components/LogistiekEnginePage.js +9 -3
  16. package/dist-lib/components/LogistiekEngineQueuePage.d.ts +2 -0
  17. package/dist-lib/components/LogistiekEngineQueuePage.d.ts.map +1 -0
  18. package/dist-lib/components/LogistiekEngineQueuePage.js +11 -0
  19. package/dist-lib/components/NodeTracePanel.d.ts +11 -0
  20. package/dist-lib/components/NodeTracePanel.d.ts.map +1 -0
  21. package/dist-lib/components/NodeTracePanel.js +40 -0
  22. package/dist-lib/components/OrderJourneyBar.d.ts +9 -0
  23. package/dist-lib/components/OrderJourneyBar.d.ts.map +1 -0
  24. package/dist-lib/components/OrderJourneyBar.js +26 -0
  25. package/dist-lib/components/OrderLogboek.d.ts +10 -0
  26. package/dist-lib/components/OrderLogboek.d.ts.map +1 -0
  27. package/dist-lib/components/OrderLogboek.js +92 -0
  28. package/dist-lib/components/OrderStopBanner.d.ts +5 -0
  29. package/dist-lib/components/OrderStopBanner.d.ts.map +1 -0
  30. package/dist-lib/components/OrderStopBanner.js +22 -0
  31. package/dist-lib/components/OrderTraceDetails.d.ts +22 -0
  32. package/dist-lib/components/OrderTraceDetails.d.ts.map +1 -0
  33. package/dist-lib/components/OrderTraceDetails.js +87 -0
  34. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  35. package/dist-lib/components/RegiePage.js +11 -69
  36. package/dist-lib/components/WerktijdenCard.d.ts +2 -0
  37. package/dist-lib/components/WerktijdenCard.d.ts.map +1 -0
  38. package/dist-lib/components/WerktijdenCard.js +37 -0
  39. package/dist-lib/components/WerkwijzeHerindelingCard.d.ts.map +1 -1
  40. package/dist-lib/components/WerkwijzeHerindelingCard.js +100 -6
  41. package/dist-lib/hooks/useLogisticsTrace.d.ts +78 -0
  42. package/dist-lib/hooks/useLogisticsTrace.d.ts.map +1 -0
  43. package/dist-lib/hooks/useLogisticsTrace.js +152 -0
  44. package/dist-lib/hooks/useOrderNodeTrace.d.ts +11 -0
  45. package/dist-lib/hooks/useOrderNodeTrace.d.ts.map +1 -0
  46. package/dist-lib/hooks/useOrderNodeTrace.js +26 -0
  47. package/dist-lib/hooks/useOrderTrace.d.ts +74 -0
  48. package/dist-lib/hooks/useOrderTrace.d.ts.map +1 -0
  49. package/dist-lib/hooks/useOrderTrace.js +134 -0
  50. package/dist-lib/hooks/useOrderVersies.d.ts +47 -0
  51. package/dist-lib/hooks/useOrderVersies.d.ts.map +1 -0
  52. package/dist-lib/hooks/useOrderVersies.js +180 -0
  53. package/dist-lib/hooks/useRuleEngine.d.ts +1 -0
  54. package/dist-lib/hooks/useRuleEngine.d.ts.map +1 -1
  55. package/dist-lib/hooks/useRuleEngine.js +1 -0
  56. package/dist-lib/hooks/useShippingNoteStatus.d.ts +29 -0
  57. package/dist-lib/hooks/useShippingNoteStatus.d.ts.map +1 -0
  58. package/dist-lib/hooks/useShippingNoteStatus.js +107 -0
  59. package/dist-lib/hooks/useWerktijden.d.ts +33 -0
  60. package/dist-lib/hooks/useWerktijden.d.ts.map +1 -0
  61. package/dist-lib/hooks/useWerktijden.js +88 -0
  62. package/dist-lib/hooks/useWerkwijzeStatus.d.ts +12 -1
  63. package/dist-lib/hooks/useWerkwijzeStatus.d.ts.map +1 -1
  64. package/dist-lib/hooks/useWerkwijzeStatus.js +60 -4
  65. package/dist-lib/index.d.ts +13 -0
  66. package/dist-lib/index.d.ts.map +1 -1
  67. package/dist-lib/index.js +13 -0
  68. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1600 -54
  69. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  70. package/dist-lib/integrations/supabase/client.server.d.ts +1600 -54
  71. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  72. package/dist-lib/integrations/supabase/client.server.js +1 -1
  73. package/dist-lib/integrations/supabase/moduleClient.d.ts +1600 -54
  74. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  75. package/dist-lib/integrations/supabase/types.d.ts +1618 -50
  76. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  77. package/dist-lib/lib/cartPlanRequests.server.d.ts +1 -1
  78. package/dist-lib/lib/cartPlanRequests.server.d.ts.map +1 -1
  79. package/dist-lib/lib/cartPlanRequests.server.js +49 -8
  80. package/dist-lib/lib/floridayDocuments.functions.d.ts +4644 -6
  81. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  82. package/dist-lib/lib/floridayDocuments.functions.js +1 -1
  83. package/dist-lib/lib/floridayDocuments.server.d.ts +14 -0
  84. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  85. package/dist-lib/lib/floridayDocuments.server.js +58 -0
  86. package/dist-lib/lib/floridayGuard.server.d.ts +1 -1
  87. package/dist-lib/lib/floridayGuard.server.d.ts.map +1 -1
  88. package/dist-lib/lib/floridayGuard.server.js +6 -3
  89. package/dist-lib/lib/floridayPush.functions.d.ts +1600 -54
  90. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  91. package/dist-lib/lib/floridayPush.functions.js +1 -1
  92. package/dist-lib/lib/flowGraph.d.ts +43 -0
  93. package/dist-lib/lib/flowGraph.d.ts.map +1 -0
  94. package/dist-lib/lib/flowGraph.js +153 -0
  95. package/dist-lib/lib/flowNodes.d.ts +23 -0
  96. package/dist-lib/lib/flowNodes.d.ts.map +1 -0
  97. package/dist-lib/lib/flowNodes.js +58 -0
  98. package/dist-lib/lib/flowRoute.d.ts +107 -0
  99. package/dist-lib/lib/flowRoute.d.ts.map +1 -0
  100. package/dist-lib/lib/flowRoute.js +280 -0
  101. package/dist-lib/lib/flowTree.d.ts +64 -0
  102. package/dist-lib/lib/flowTree.d.ts.map +1 -0
  103. package/dist-lib/lib/flowTree.js +519 -0
  104. package/dist-lib/lib/handlers/index.d.ts +1 -0
  105. package/dist-lib/lib/handlers/index.d.ts.map +1 -1
  106. package/dist-lib/lib/handlers/index.js +1 -0
  107. package/dist-lib/lib/handlers/logistics-shipping-note-now.server.d.ts +3 -0
  108. package/dist-lib/lib/handlers/logistics-shipping-note-now.server.d.ts.map +1 -0
  109. package/dist-lib/lib/handlers/logistics-shipping-note-now.server.js +100 -0
  110. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  111. package/dist-lib/lib/handlers/logistics-tick.server.js +97 -2
  112. package/dist-lib/lib/loadCarrierPlanner.d.ts +2 -0
  113. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  114. package/dist-lib/lib/loadCarrierPlanner.js +18 -0
  115. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +7740 -10
  116. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  117. package/dist-lib/lib/loadCarrierPlanning.functions.js +1 -1
  118. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +9 -0
  119. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  120. package/dist-lib/lib/loadCarrierPlanning.server.js +44 -17
  121. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  122. package/dist-lib/lib/logisticsPlanner.js +14 -2
  123. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +3096 -4
  124. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  125. package/dist-lib/lib/logisticsRecalcJob.functions.js +1 -1
  126. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1600 -54
  127. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  128. package/dist-lib/lib/logisticsRecalculate.functions.js +1 -1
  129. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  130. package/dist-lib/lib/modulePrompts.js +3459 -2677
  131. package/dist-lib/lib/nodeTrace.d.ts +61 -0
  132. package/dist-lib/lib/nodeTrace.d.ts.map +1 -0
  133. package/dist-lib/lib/nodeTrace.js +191 -0
  134. package/dist-lib/lib/pickQueueCleanup.server.d.ts +14 -0
  135. package/dist-lib/lib/pickQueueCleanup.server.d.ts.map +1 -0
  136. package/dist-lib/lib/pickQueueCleanup.server.js +80 -0
  137. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  138. package/dist-lib/lib/planQueue.server.js +140 -0
  139. package/dist-lib/lib/ruleEngineImpact.d.ts.map +1 -1
  140. package/dist-lib/lib/ruleEngineImpact.js +11 -4
  141. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  142. package/dist-lib/lib/ruleEngineSchema.js +50 -6
  143. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  144. package/dist-lib/lib/ruleEngineWizard.js +3 -1
  145. package/dist-lib/lib/shippingNoteQueue.server.d.ts +18 -0
  146. package/dist-lib/lib/shippingNoteQueue.server.d.ts.map +1 -0
  147. package/dist-lib/lib/shippingNoteQueue.server.js +304 -0
  148. package/dist-lib/lib/trace.server.d.ts +75 -0
  149. package/dist-lib/lib/trace.server.d.ts.map +1 -0
  150. package/dist-lib/lib/trace.server.js +75 -0
  151. package/dist-lib/lib/vakUitleg.d.ts +19 -0
  152. package/dist-lib/lib/vakUitleg.d.ts.map +1 -0
  153. package/dist-lib/lib/vakUitleg.js +132 -0
  154. package/package.json +26 -2
  155. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +0 -2
  156. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +0 -1
  157. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +0 -41
  158. package/dist-lib/integrations/supabase/client.d.ts +0 -20293
  159. package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
  160. package/dist-lib/integrations/supabase/client.js +0 -13
@@ -1827,6 +1827,42 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1827
1827
  };
1828
1828
  Relationships: [];
1829
1829
  };
1830
+ customer_assortment_items: {
1831
+ Row: {
1832
+ created_at: string;
1833
+ customer_key: string;
1834
+ id: string;
1835
+ in_assortment: boolean;
1836
+ manual_override: boolean;
1837
+ source: string;
1838
+ synced_at: string | null;
1839
+ trade_item_key: string;
1840
+ updated_at: string;
1841
+ };
1842
+ Insert: {
1843
+ created_at?: string;
1844
+ customer_key: string;
1845
+ id?: string;
1846
+ in_assortment?: boolean;
1847
+ manual_override?: boolean;
1848
+ source?: string;
1849
+ synced_at?: string | null;
1850
+ trade_item_key: string;
1851
+ updated_at?: string;
1852
+ };
1853
+ Update: {
1854
+ created_at?: string;
1855
+ customer_key?: string;
1856
+ id?: string;
1857
+ in_assortment?: boolean;
1858
+ manual_override?: boolean;
1859
+ source?: string;
1860
+ synced_at?: string | null;
1861
+ trade_item_key?: string;
1862
+ updated_at?: string;
1863
+ };
1864
+ Relationships: [];
1865
+ };
1830
1866
  customer_audit_log: {
1831
1867
  Row: {
1832
1868
  action: string;
@@ -2229,6 +2265,63 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
2229
2265
  };
2230
2266
  Relationships: [];
2231
2267
  };
2268
+ customer_product_stickers: {
2269
+ Row: {
2270
+ content_hash: string | null;
2271
+ created_at: string;
2272
+ customer_key: string;
2273
+ file_name: string;
2274
+ file_path: string;
2275
+ file_size: number | null;
2276
+ floriday_sticker_id: string | null;
2277
+ floriday_synced_at: string | null;
2278
+ height_mm: number | null;
2279
+ id: string;
2280
+ mime_type: string | null;
2281
+ source: string;
2282
+ trade_item_key: string;
2283
+ updated_at: string;
2284
+ uploaded_by: string | null;
2285
+ width_mm: number | null;
2286
+ };
2287
+ Insert: {
2288
+ content_hash?: string | null;
2289
+ created_at?: string;
2290
+ customer_key: string;
2291
+ file_name: string;
2292
+ file_path: string;
2293
+ file_size?: number | null;
2294
+ floriday_sticker_id?: string | null;
2295
+ floriday_synced_at?: string | null;
2296
+ height_mm?: number | null;
2297
+ id?: string;
2298
+ mime_type?: string | null;
2299
+ source?: string;
2300
+ trade_item_key: string;
2301
+ updated_at?: string;
2302
+ uploaded_by?: string | null;
2303
+ width_mm?: number | null;
2304
+ };
2305
+ Update: {
2306
+ content_hash?: string | null;
2307
+ created_at?: string;
2308
+ customer_key?: string;
2309
+ file_name?: string;
2310
+ file_path?: string;
2311
+ file_size?: number | null;
2312
+ floriday_sticker_id?: string | null;
2313
+ floriday_synced_at?: string | null;
2314
+ height_mm?: number | null;
2315
+ id?: string;
2316
+ mime_type?: string | null;
2317
+ source?: string;
2318
+ trade_item_key?: string;
2319
+ updated_at?: string;
2320
+ uploaded_by?: string | null;
2321
+ width_mm?: number | null;
2322
+ };
2323
+ Relationships: [];
2324
+ };
2232
2325
  customer_selected_assortment: {
2233
2326
  Row: {
2234
2327
  article_number: string | null;
@@ -2277,6 +2370,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
2277
2370
  referencedColumns: ["id"];
2278
2371
  }];
2279
2372
  };
2373
+ customer_sticker_settings: {
2374
+ Row: {
2375
+ created_at: string;
2376
+ customer_key: string;
2377
+ height_mm: number;
2378
+ updated_at: string;
2379
+ width_mm: number;
2380
+ };
2381
+ Insert: {
2382
+ created_at?: string;
2383
+ customer_key: string;
2384
+ height_mm?: number;
2385
+ updated_at?: string;
2386
+ width_mm?: number;
2387
+ };
2388
+ Update: {
2389
+ created_at?: string;
2390
+ customer_key?: string;
2391
+ height_mm?: number;
2392
+ updated_at?: string;
2393
+ width_mm?: number;
2394
+ };
2395
+ Relationships: [];
2396
+ };
2280
2397
  customer_trade_settings: {
2281
2398
  Row: {
2282
2399
  category: string;
@@ -3602,6 +3719,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3602
3719
  };
3603
3720
  email_auth_outbox: {
3604
3721
  Row: {
3722
+ attachments: import("../integrations/supabase/types").Json;
3605
3723
  attempts: number;
3606
3724
  bcc_addresses: string[];
3607
3725
  cc_addresses: string[];
@@ -3624,6 +3742,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3624
3742
  updated_at: string;
3625
3743
  };
3626
3744
  Insert: {
3745
+ attachments?: import("../integrations/supabase/types").Json;
3627
3746
  attempts?: number;
3628
3747
  bcc_addresses?: string[];
3629
3748
  cc_addresses?: string[];
@@ -3646,6 +3765,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3646
3765
  updated_at?: string;
3647
3766
  };
3648
3767
  Update: {
3768
+ attachments?: import("../integrations/supabase/types").Json;
3649
3769
  attempts?: number;
3650
3770
  bcc_addresses?: string[];
3651
3771
  cc_addresses?: string[];
@@ -5607,6 +5727,102 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
5607
5727
  referencedColumns: ["id"];
5608
5728
  }];
5609
5729
  };
5730
+ floriday_api_log: {
5731
+ Row: {
5732
+ action: string | null;
5733
+ caller: string | null;
5734
+ connection_id: string | null;
5735
+ created_at: string;
5736
+ cursor_from: number | null;
5737
+ direction: string;
5738
+ duration_ms: number | null;
5739
+ environment: string | null;
5740
+ error: string | null;
5741
+ floriday_id: string | null;
5742
+ floriday_reference: string | null;
5743
+ http_status: number;
5744
+ id: string;
5745
+ item_count: number | null;
5746
+ kind: string | null;
5747
+ local_id: string | null;
5748
+ local_reference: string | null;
5749
+ method: string;
5750
+ module: string | null;
5751
+ ok: boolean;
5752
+ path: string;
5753
+ request: import("../integrations/supabase/types").Json | null;
5754
+ resource_type: string | null;
5755
+ response: import("../integrations/supabase/types").Json | null;
5756
+ write_log_id: string | null;
5757
+ };
5758
+ Insert: {
5759
+ action?: string | null;
5760
+ caller?: string | null;
5761
+ connection_id?: string | null;
5762
+ created_at?: string;
5763
+ cursor_from?: number | null;
5764
+ direction: string;
5765
+ duration_ms?: number | null;
5766
+ environment?: string | null;
5767
+ error?: string | null;
5768
+ floriday_id?: string | null;
5769
+ floriday_reference?: string | null;
5770
+ http_status?: number;
5771
+ id?: string;
5772
+ item_count?: number | null;
5773
+ kind?: string | null;
5774
+ local_id?: string | null;
5775
+ local_reference?: string | null;
5776
+ method: string;
5777
+ module?: string | null;
5778
+ ok?: boolean;
5779
+ path: string;
5780
+ request?: import("../integrations/supabase/types").Json | null;
5781
+ resource_type?: string | null;
5782
+ response?: import("../integrations/supabase/types").Json | null;
5783
+ write_log_id?: string | null;
5784
+ };
5785
+ Update: {
5786
+ action?: string | null;
5787
+ caller?: string | null;
5788
+ connection_id?: string | null;
5789
+ created_at?: string;
5790
+ cursor_from?: number | null;
5791
+ direction?: string;
5792
+ duration_ms?: number | null;
5793
+ environment?: string | null;
5794
+ error?: string | null;
5795
+ floriday_id?: string | null;
5796
+ floriday_reference?: string | null;
5797
+ http_status?: number;
5798
+ id?: string;
5799
+ item_count?: number | null;
5800
+ kind?: string | null;
5801
+ local_id?: string | null;
5802
+ local_reference?: string | null;
5803
+ method?: string;
5804
+ module?: string | null;
5805
+ ok?: boolean;
5806
+ path?: string;
5807
+ request?: import("../integrations/supabase/types").Json | null;
5808
+ resource_type?: string | null;
5809
+ response?: import("../integrations/supabase/types").Json | null;
5810
+ write_log_id?: string | null;
5811
+ };
5812
+ Relationships: [{
5813
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5814
+ columns: ["connection_id"];
5815
+ isOneToOne: false;
5816
+ referencedRelation: "floriday_connections";
5817
+ referencedColumns: ["id"];
5818
+ }, {
5819
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5820
+ columns: ["write_log_id"];
5821
+ isOneToOne: false;
5822
+ referencedRelation: "floriday_write_log";
5823
+ referencedColumns: ["id"];
5824
+ }];
5825
+ };
5610
5826
  floriday_auction_letters_cache: {
5611
5827
  Row: {
5612
5828
  auction_letter_code: string;
@@ -5814,6 +6030,84 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
5814
6030
  referencedColumns: ["id"];
5815
6031
  }];
5816
6032
  };
6033
+ floriday_catalog_prices_cache: {
6034
+ Row: {
6035
+ connection_id: string;
6036
+ created_at: string;
6037
+ currency: string;
6038
+ id: string;
6039
+ is_deleted: boolean;
6040
+ price: number | null;
6041
+ price_group_id: string | null;
6042
+ price_group_name: string | null;
6043
+ price_type: string;
6044
+ raw: import("../integrations/supabase/types").Json | null;
6045
+ sales_unit: string | null;
6046
+ sequence_number: number;
6047
+ supplier_article_code: string | null;
6048
+ supply_line_id: string;
6049
+ synced_at: string;
6050
+ trade_item_id: string | null;
6051
+ updated_at: string;
6052
+ valid_from: string | null;
6053
+ valid_to: string | null;
6054
+ week: number | null;
6055
+ year: number | null;
6056
+ };
6057
+ Insert: {
6058
+ connection_id: string;
6059
+ created_at?: string;
6060
+ currency?: string;
6061
+ id?: string;
6062
+ is_deleted?: boolean;
6063
+ price?: number | null;
6064
+ price_group_id?: string | null;
6065
+ price_group_name?: string | null;
6066
+ price_type?: string;
6067
+ raw?: import("../integrations/supabase/types").Json | null;
6068
+ sales_unit?: string | null;
6069
+ sequence_number?: number;
6070
+ supplier_article_code?: string | null;
6071
+ supply_line_id: string;
6072
+ synced_at?: string;
6073
+ trade_item_id?: string | null;
6074
+ updated_at?: string;
6075
+ valid_from?: string | null;
6076
+ valid_to?: string | null;
6077
+ week?: number | null;
6078
+ year?: number | null;
6079
+ };
6080
+ Update: {
6081
+ connection_id?: string;
6082
+ created_at?: string;
6083
+ currency?: string;
6084
+ id?: string;
6085
+ is_deleted?: boolean;
6086
+ price?: number | null;
6087
+ price_group_id?: string | null;
6088
+ price_group_name?: string | null;
6089
+ price_type?: string;
6090
+ raw?: import("../integrations/supabase/types").Json | null;
6091
+ sales_unit?: string | null;
6092
+ sequence_number?: number;
6093
+ supplier_article_code?: string | null;
6094
+ supply_line_id?: string;
6095
+ synced_at?: string;
6096
+ trade_item_id?: string | null;
6097
+ updated_at?: string;
6098
+ valid_from?: string | null;
6099
+ valid_to?: string | null;
6100
+ week?: number | null;
6101
+ year?: number | null;
6102
+ };
6103
+ Relationships: [{
6104
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6105
+ columns: ["connection_id"];
6106
+ isOneToOne: false;
6107
+ referencedRelation: "floriday_connections";
6108
+ referencedColumns: ["id"];
6109
+ }];
6110
+ };
5817
6111
  floriday_clock_presales_cache: {
5818
6112
  Row: {
5819
6113
  buyer_organization_id: string | null;
@@ -6729,6 +7023,69 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6729
7023
  referencedColumns: ["id"];
6730
7024
  }];
6731
7025
  };
7026
+ floriday_link_templates: {
7027
+ Row: {
7028
+ created_at: string;
7029
+ floriday_url_template: string | null;
7030
+ is_active: boolean;
7031
+ label: string;
7032
+ local_url_template: string | null;
7033
+ resource_type: string;
7034
+ updated_at: string;
7035
+ };
7036
+ Insert: {
7037
+ created_at?: string;
7038
+ floriday_url_template?: string | null;
7039
+ is_active?: boolean;
7040
+ label: string;
7041
+ local_url_template?: string | null;
7042
+ resource_type: string;
7043
+ updated_at?: string;
7044
+ };
7045
+ Update: {
7046
+ created_at?: string;
7047
+ floriday_url_template?: string | null;
7048
+ is_active?: boolean;
7049
+ label?: string;
7050
+ local_url_template?: string | null;
7051
+ resource_type?: string;
7052
+ updated_at?: string;
7053
+ };
7054
+ Relationships: [];
7055
+ };
7056
+ floriday_log_retention: {
7057
+ Row: {
7058
+ created_at: string;
7059
+ direction: string | null;
7060
+ id: string;
7061
+ keep_failed_days: number | null;
7062
+ keep_ok_days: number | null;
7063
+ note: string | null;
7064
+ resource_type: string | null;
7065
+ updated_at: string;
7066
+ };
7067
+ Insert: {
7068
+ created_at?: string;
7069
+ direction?: string | null;
7070
+ id?: string;
7071
+ keep_failed_days?: number | null;
7072
+ keep_ok_days?: number | null;
7073
+ note?: string | null;
7074
+ resource_type?: string | null;
7075
+ updated_at?: string;
7076
+ };
7077
+ Update: {
7078
+ created_at?: string;
7079
+ direction?: string | null;
7080
+ id?: string;
7081
+ keep_failed_days?: number | null;
7082
+ keep_ok_days?: number | null;
7083
+ note?: string | null;
7084
+ resource_type?: string | null;
7085
+ updated_at?: string;
7086
+ };
7087
+ Relationships: [];
7088
+ };
6732
7089
  floriday_logistic_labels_cache: {
6733
7090
  Row: {
6734
7091
  byte_size: number | null;
@@ -10293,14 +10650,152 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10293
10650
  };
10294
10651
  Relationships: [];
10295
10652
  };
10296
- logistics_pickup_moments: {
10653
+ logistics_opening_exceptions: {
10297
10654
  Row: {
10298
- carrier_ref: string | null;
10655
+ closes: string | null;
10299
10656
  created_at: string;
10657
+ day: string;
10300
10658
  id: string;
10301
- label: string | null;
10302
- moment_date: string;
10303
- pickup_time: string;
10659
+ is_closed: boolean;
10660
+ note: string | null;
10661
+ opens: string | null;
10662
+ };
10663
+ Insert: {
10664
+ closes?: string | null;
10665
+ created_at?: string;
10666
+ day: string;
10667
+ id?: string;
10668
+ is_closed?: boolean;
10669
+ note?: string | null;
10670
+ opens?: string | null;
10671
+ };
10672
+ Update: {
10673
+ closes?: string | null;
10674
+ created_at?: string;
10675
+ day?: string;
10676
+ id?: string;
10677
+ is_closed?: boolean;
10678
+ note?: string | null;
10679
+ opens?: string | null;
10680
+ };
10681
+ Relationships: [];
10682
+ };
10683
+ logistics_opening_hours: {
10684
+ Row: {
10685
+ closes: string;
10686
+ created_at: string;
10687
+ id: string;
10688
+ is_active: boolean;
10689
+ note: string | null;
10690
+ opens: string;
10691
+ weekday: number;
10692
+ };
10693
+ Insert: {
10694
+ closes: string;
10695
+ created_at?: string;
10696
+ id?: string;
10697
+ is_active?: boolean;
10698
+ note?: string | null;
10699
+ opens: string;
10700
+ weekday: number;
10701
+ };
10702
+ Update: {
10703
+ closes?: string;
10704
+ created_at?: string;
10705
+ id?: string;
10706
+ is_active?: boolean;
10707
+ note?: string | null;
10708
+ opens?: string;
10709
+ weekday?: number;
10710
+ };
10711
+ Relationships: [];
10712
+ };
10713
+ logistics_order_merges: {
10714
+ Row: {
10715
+ group_key: string;
10716
+ id: string;
10717
+ items_moved: number;
10718
+ kept_order_id: string;
10719
+ kept_order_number: string | null;
10720
+ merged_at: string;
10721
+ merged_order_id: string;
10722
+ merged_order_number: string | null;
10723
+ sales_order_id: string | null;
10724
+ };
10725
+ Insert: {
10726
+ group_key: string;
10727
+ id?: string;
10728
+ items_moved?: number;
10729
+ kept_order_id: string;
10730
+ kept_order_number?: string | null;
10731
+ merged_at?: string;
10732
+ merged_order_id: string;
10733
+ merged_order_number?: string | null;
10734
+ sales_order_id?: string | null;
10735
+ };
10736
+ Update: {
10737
+ group_key?: string;
10738
+ id?: string;
10739
+ items_moved?: number;
10740
+ kept_order_id?: string;
10741
+ kept_order_number?: string | null;
10742
+ merged_at?: string;
10743
+ merged_order_id?: string;
10744
+ merged_order_number?: string | null;
10745
+ sales_order_id?: string | null;
10746
+ };
10747
+ Relationships: [];
10748
+ };
10749
+ logistics_pick_data_requests: {
10750
+ Row: {
10751
+ actions: import("../integrations/supabase/types").Json;
10752
+ created_at: string;
10753
+ event_id: string | null;
10754
+ finished_at: string | null;
10755
+ id: string;
10756
+ missing: import("../integrations/supabase/types").Json;
10757
+ order_ref: string;
10758
+ reason: string | null;
10759
+ result: import("../integrations/supabase/types").Json | null;
10760
+ status: string;
10761
+ unit_ref: string | null;
10762
+ };
10763
+ Insert: {
10764
+ actions?: import("../integrations/supabase/types").Json;
10765
+ created_at?: string;
10766
+ event_id?: string | null;
10767
+ finished_at?: string | null;
10768
+ id?: string;
10769
+ missing?: import("../integrations/supabase/types").Json;
10770
+ order_ref: string;
10771
+ reason?: string | null;
10772
+ result?: import("../integrations/supabase/types").Json | null;
10773
+ status?: string;
10774
+ unit_ref?: string | null;
10775
+ };
10776
+ Update: {
10777
+ actions?: import("../integrations/supabase/types").Json;
10778
+ created_at?: string;
10779
+ event_id?: string | null;
10780
+ finished_at?: string | null;
10781
+ id?: string;
10782
+ missing?: import("../integrations/supabase/types").Json;
10783
+ order_ref?: string;
10784
+ reason?: string | null;
10785
+ result?: import("../integrations/supabase/types").Json | null;
10786
+ status?: string;
10787
+ unit_ref?: string | null;
10788
+ };
10789
+ Relationships: [];
10790
+ };
10791
+ logistics_pickup_moments: {
10792
+ Row: {
10793
+ carrier_ref: string | null;
10794
+ created_at: string;
10795
+ id: string;
10796
+ label: string | null;
10797
+ moment_date: string;
10798
+ pickup_time: string;
10304
10799
  sequence: number;
10305
10800
  updated_at: string;
10306
10801
  user_id: string;
@@ -10752,6 +11247,69 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10752
11247
  };
10753
11248
  Relationships: [];
10754
11249
  };
11250
+ logistics_slip_shipping_note: {
11251
+ Row: {
11252
+ attempts: number;
11253
+ batch_key: string | null;
11254
+ cart_id: string | null;
11255
+ created_at: string;
11256
+ error: string | null;
11257
+ error_code: string | null;
11258
+ fulfillment_order_id: string | null;
11259
+ id: string;
11260
+ locked_until: string | null;
11261
+ next_attempt_at: string | null;
11262
+ order_id: string | null;
11263
+ order_number: string | null;
11264
+ print_job_id: string | null;
11265
+ printer_id: string | null;
11266
+ retry_class: string | null;
11267
+ slip_job_id: string;
11268
+ status: string;
11269
+ updated_at: string;
11270
+ };
11271
+ Insert: {
11272
+ attempts?: number;
11273
+ batch_key?: string | null;
11274
+ cart_id?: string | null;
11275
+ created_at?: string;
11276
+ error?: string | null;
11277
+ error_code?: string | null;
11278
+ fulfillment_order_id?: string | null;
11279
+ id?: string;
11280
+ locked_until?: string | null;
11281
+ next_attempt_at?: string | null;
11282
+ order_id?: string | null;
11283
+ order_number?: string | null;
11284
+ print_job_id?: string | null;
11285
+ printer_id?: string | null;
11286
+ retry_class?: string | null;
11287
+ slip_job_id: string;
11288
+ status?: string;
11289
+ updated_at?: string;
11290
+ };
11291
+ Update: {
11292
+ attempts?: number;
11293
+ batch_key?: string | null;
11294
+ cart_id?: string | null;
11295
+ created_at?: string;
11296
+ error?: string | null;
11297
+ error_code?: string | null;
11298
+ fulfillment_order_id?: string | null;
11299
+ id?: string;
11300
+ locked_until?: string | null;
11301
+ next_attempt_at?: string | null;
11302
+ order_id?: string | null;
11303
+ order_number?: string | null;
11304
+ print_job_id?: string | null;
11305
+ printer_id?: string | null;
11306
+ retry_class?: string | null;
11307
+ slip_job_id?: string;
11308
+ status?: string;
11309
+ updated_at?: string;
11310
+ };
11311
+ Relationships: [];
11312
+ };
10755
11313
  logistics_staff_planning: {
10756
11314
  Row: {
10757
11315
  created_at: string;
@@ -11085,6 +11643,141 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
11085
11643
  };
11086
11644
  Relationships: [];
11087
11645
  };
11646
+ logistics_time_settings: {
11647
+ Row: {
11648
+ id: boolean;
11649
+ timezone: string;
11650
+ updated_at: string;
11651
+ };
11652
+ Insert: {
11653
+ id?: boolean;
11654
+ timezone: string;
11655
+ updated_at?: string;
11656
+ };
11657
+ Update: {
11658
+ id?: boolean;
11659
+ timezone?: string;
11660
+ updated_at?: string;
11661
+ };
11662
+ Relationships: [];
11663
+ };
11664
+ logistics_trace_events: {
11665
+ Row: {
11666
+ actor: string | null;
11667
+ attempts: number;
11668
+ calc: import("../integrations/supabase/types").Json | null;
11669
+ cart_ref: string | null;
11670
+ created_at: string;
11671
+ db_action: string | null;
11672
+ db_new: import("../integrations/supabase/types").Json | null;
11673
+ db_old: import("../integrations/supabase/types").Json | null;
11674
+ db_record: string | null;
11675
+ db_table: string | null;
11676
+ decision: string | null;
11677
+ duration_ms: number | null;
11678
+ error: string | null;
11679
+ error_class: string | null;
11680
+ external_action: string | null;
11681
+ external_ref: string | null;
11682
+ external_response: import("../integrations/supabase/types").Json | null;
11683
+ external_status: string | null;
11684
+ external_system: string | null;
11685
+ id: string;
11686
+ input: import("../integrations/supabase/types").Json | null;
11687
+ next_attempt_at: string | null;
11688
+ next_step: string | null;
11689
+ node_id: string | null;
11690
+ order_ref: string | null;
11691
+ order_source: string | null;
11692
+ output: import("../integrations/supabase/types").Json | null;
11693
+ phase: string;
11694
+ reads: import("../integrations/supabase/types").Json | null;
11695
+ reason: string | null;
11696
+ rule: string | null;
11697
+ slip_ref: string | null;
11698
+ status: string;
11699
+ step: string;
11700
+ trace_id: string;
11701
+ values_used: import("../integrations/supabase/types").Json | null;
11702
+ };
11703
+ Insert: {
11704
+ actor?: string | null;
11705
+ attempts?: number;
11706
+ calc?: import("../integrations/supabase/types").Json | null;
11707
+ cart_ref?: string | null;
11708
+ created_at?: string;
11709
+ db_action?: string | null;
11710
+ db_new?: import("../integrations/supabase/types").Json | null;
11711
+ db_old?: import("../integrations/supabase/types").Json | null;
11712
+ db_record?: string | null;
11713
+ db_table?: string | null;
11714
+ decision?: string | null;
11715
+ duration_ms?: number | null;
11716
+ error?: string | null;
11717
+ error_class?: string | null;
11718
+ external_action?: string | null;
11719
+ external_ref?: string | null;
11720
+ external_response?: import("../integrations/supabase/types").Json | null;
11721
+ external_status?: string | null;
11722
+ external_system?: string | null;
11723
+ id?: string;
11724
+ input?: import("../integrations/supabase/types").Json | null;
11725
+ next_attempt_at?: string | null;
11726
+ next_step?: string | null;
11727
+ node_id?: string | null;
11728
+ order_ref?: string | null;
11729
+ order_source?: string | null;
11730
+ output?: import("../integrations/supabase/types").Json | null;
11731
+ phase: string;
11732
+ reads?: import("../integrations/supabase/types").Json | null;
11733
+ reason?: string | null;
11734
+ rule?: string | null;
11735
+ slip_ref?: string | null;
11736
+ status: string;
11737
+ step: string;
11738
+ trace_id?: string;
11739
+ values_used?: import("../integrations/supabase/types").Json | null;
11740
+ };
11741
+ Update: {
11742
+ actor?: string | null;
11743
+ attempts?: number;
11744
+ calc?: import("../integrations/supabase/types").Json | null;
11745
+ cart_ref?: string | null;
11746
+ created_at?: string;
11747
+ db_action?: string | null;
11748
+ db_new?: import("../integrations/supabase/types").Json | null;
11749
+ db_old?: import("../integrations/supabase/types").Json | null;
11750
+ db_record?: string | null;
11751
+ db_table?: string | null;
11752
+ decision?: string | null;
11753
+ duration_ms?: number | null;
11754
+ error?: string | null;
11755
+ error_class?: string | null;
11756
+ external_action?: string | null;
11757
+ external_ref?: string | null;
11758
+ external_response?: import("../integrations/supabase/types").Json | null;
11759
+ external_status?: string | null;
11760
+ external_system?: string | null;
11761
+ id?: string;
11762
+ input?: import("../integrations/supabase/types").Json | null;
11763
+ next_attempt_at?: string | null;
11764
+ next_step?: string | null;
11765
+ node_id?: string | null;
11766
+ order_ref?: string | null;
11767
+ order_source?: string | null;
11768
+ output?: import("../integrations/supabase/types").Json | null;
11769
+ phase?: string;
11770
+ reads?: import("../integrations/supabase/types").Json | null;
11771
+ reason?: string | null;
11772
+ rule?: string | null;
11773
+ slip_ref?: string | null;
11774
+ status?: string;
11775
+ step?: string;
11776
+ trace_id?: string;
11777
+ values_used?: import("../integrations/supabase/types").Json | null;
11778
+ };
11779
+ Relationships: [];
11780
+ };
11088
11781
  logistics_variables: {
11089
11782
  Row: {
11090
11783
  created_at: string;
@@ -13475,6 +14168,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13475
14168
  customer_name: string;
13476
14169
  deleted_at: string | null;
13477
14170
  delivery_date: string | null;
14171
+ floriday_order_group_key: string | null;
13478
14172
  floriday_sales_order_id: string | null;
13479
14173
  id: string;
13480
14174
  invoice_due_at: string | null;
@@ -13502,6 +14196,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13502
14196
  customer_name?: string;
13503
14197
  deleted_at?: string | null;
13504
14198
  delivery_date?: string | null;
14199
+ floriday_order_group_key?: string | null;
13505
14200
  floriday_sales_order_id?: string | null;
13506
14201
  id?: string;
13507
14202
  invoice_due_at?: string | null;
@@ -13529,6 +14224,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13529
14224
  customer_name?: string;
13530
14225
  deleted_at?: string | null;
13531
14226
  delivery_date?: string | null;
14227
+ floriday_order_group_key?: string | null;
13532
14228
  floriday_sales_order_id?: string | null;
13533
14229
  id?: string;
13534
14230
  invoice_due_at?: string | null;
@@ -14829,69 +15525,186 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14829
15525
  referencedColumns: ["id"];
14830
15526
  }];
14831
15527
  };
14832
- print_agents: {
15528
+ price_list_rows: {
14833
15529
  Row: {
14834
- actief: boolean;
15530
+ action: string;
14835
15531
  created_at: string;
14836
- gemelde_printers: import("../integrations/supabase/types").Json;
14837
15532
  id: string;
14838
- laatst_gezien: string | null;
14839
- locatie: string;
14840
- naam: string;
14841
- pairing_code_hash: string | null;
14842
- pairing_expires_at: string | null;
14843
- pairing_used_at: string | null;
14844
- token_hash: string;
14845
- updated_at: string;
14846
- versie: string;
15533
+ message: string | null;
15534
+ parsed: import("../integrations/supabase/types").Json;
15535
+ price_list_id: string;
15536
+ raw: import("../integrations/supabase/types").Json;
15537
+ row_number: number;
15538
+ supplier_product_id: string | null;
14847
15539
  };
14848
15540
  Insert: {
14849
- actief?: boolean;
15541
+ action?: string;
14850
15542
  created_at?: string;
14851
- gemelde_printers?: import("../integrations/supabase/types").Json;
14852
15543
  id?: string;
14853
- laatst_gezien?: string | null;
14854
- locatie?: string;
14855
- naam: string;
14856
- pairing_code_hash?: string | null;
14857
- pairing_expires_at?: string | null;
14858
- pairing_used_at?: string | null;
14859
- token_hash: string;
14860
- updated_at?: string;
14861
- versie?: string;
15544
+ message?: string | null;
15545
+ parsed?: import("../integrations/supabase/types").Json;
15546
+ price_list_id: string;
15547
+ raw?: import("../integrations/supabase/types").Json;
15548
+ row_number: number;
15549
+ supplier_product_id?: string | null;
14862
15550
  };
14863
15551
  Update: {
14864
- actief?: boolean;
15552
+ action?: string;
14865
15553
  created_at?: string;
14866
- gemelde_printers?: import("../integrations/supabase/types").Json;
14867
15554
  id?: string;
14868
- laatst_gezien?: string | null;
14869
- locatie?: string;
14870
- naam?: string;
14871
- pairing_code_hash?: string | null;
14872
- pairing_expires_at?: string | null;
14873
- pairing_used_at?: string | null;
14874
- token_hash?: string;
14875
- updated_at?: string;
14876
- versie?: string;
15555
+ message?: string | null;
15556
+ parsed?: import("../integrations/supabase/types").Json;
15557
+ price_list_id?: string;
15558
+ raw?: import("../integrations/supabase/types").Json;
15559
+ row_number?: number;
15560
+ supplier_product_id?: string | null;
14877
15561
  };
14878
- Relationships: [];
15562
+ Relationships: [{
15563
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
15564
+ columns: ["price_list_id"];
15565
+ isOneToOne: false;
15566
+ referencedRelation: "price_lists";
15567
+ referencedColumns: ["id"];
15568
+ }, {
15569
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
15570
+ columns: ["supplier_product_id"];
15571
+ isOneToOne: false;
15572
+ referencedRelation: "supplier_products";
15573
+ referencedColumns: ["id"];
15574
+ }];
14879
15575
  };
14880
- print_dedupe_events: {
15576
+ price_lists: {
14881
15577
  Row: {
14882
- bestaande_job_id: string | null;
14883
15578
  created_at: string;
14884
- detail: string | null;
14885
- documentnaam: string | null;
14886
- documenttype: string | null;
15579
+ created_by: string | null;
15580
+ file_hash: string | null;
15581
+ file_name: string;
15582
+ file_path: string | null;
15583
+ headers: string[];
14887
15584
  id: string;
14888
- idempotentie_sleutel: string;
14889
- reden: string;
14890
- };
14891
- Insert: {
14892
- bestaande_job_id?: string | null;
14893
- created_at?: string;
14894
- detail?: string | null;
15585
+ preview: import("../integrations/supabase/types").Json;
15586
+ processed_at: string | null;
15587
+ reason: string | null;
15588
+ row_count: number;
15589
+ sheet_name: string | null;
15590
+ source: string;
15591
+ stats: import("../integrations/supabase/types").Json;
15592
+ status: string;
15593
+ supplier_guess: string | null;
15594
+ supplier_id: string | null;
15595
+ updated_at: string;
15596
+ };
15597
+ Insert: {
15598
+ created_at?: string;
15599
+ created_by?: string | null;
15600
+ file_hash?: string | null;
15601
+ file_name: string;
15602
+ file_path?: string | null;
15603
+ headers?: string[];
15604
+ id?: string;
15605
+ preview?: import("../integrations/supabase/types").Json;
15606
+ processed_at?: string | null;
15607
+ reason?: string | null;
15608
+ row_count?: number;
15609
+ sheet_name?: string | null;
15610
+ source?: string;
15611
+ stats?: import("../integrations/supabase/types").Json;
15612
+ status?: string;
15613
+ supplier_guess?: string | null;
15614
+ supplier_id?: string | null;
15615
+ updated_at?: string;
15616
+ };
15617
+ Update: {
15618
+ created_at?: string;
15619
+ created_by?: string | null;
15620
+ file_hash?: string | null;
15621
+ file_name?: string;
15622
+ file_path?: string | null;
15623
+ headers?: string[];
15624
+ id?: string;
15625
+ preview?: import("../integrations/supabase/types").Json;
15626
+ processed_at?: string | null;
15627
+ reason?: string | null;
15628
+ row_count?: number;
15629
+ sheet_name?: string | null;
15630
+ source?: string;
15631
+ stats?: import("../integrations/supabase/types").Json;
15632
+ status?: string;
15633
+ supplier_guess?: string | null;
15634
+ supplier_id?: string | null;
15635
+ updated_at?: string;
15636
+ };
15637
+ Relationships: [{
15638
+ foreignKeyName: "price_lists_supplier_id_fkey";
15639
+ columns: ["supplier_id"];
15640
+ isOneToOne: false;
15641
+ referencedRelation: "suppliers";
15642
+ referencedColumns: ["id"];
15643
+ }];
15644
+ };
15645
+ print_agents: {
15646
+ Row: {
15647
+ actief: boolean;
15648
+ created_at: string;
15649
+ gemelde_printers: import("../integrations/supabase/types").Json;
15650
+ id: string;
15651
+ laatst_gezien: string | null;
15652
+ locatie: string;
15653
+ naam: string;
15654
+ pairing_code_hash: string | null;
15655
+ pairing_expires_at: string | null;
15656
+ pairing_used_at: string | null;
15657
+ token_hash: string;
15658
+ updated_at: string;
15659
+ versie: string;
15660
+ };
15661
+ Insert: {
15662
+ actief?: boolean;
15663
+ created_at?: string;
15664
+ gemelde_printers?: import("../integrations/supabase/types").Json;
15665
+ id?: string;
15666
+ laatst_gezien?: string | null;
15667
+ locatie?: string;
15668
+ naam: string;
15669
+ pairing_code_hash?: string | null;
15670
+ pairing_expires_at?: string | null;
15671
+ pairing_used_at?: string | null;
15672
+ token_hash: string;
15673
+ updated_at?: string;
15674
+ versie?: string;
15675
+ };
15676
+ Update: {
15677
+ actief?: boolean;
15678
+ created_at?: string;
15679
+ gemelde_printers?: import("../integrations/supabase/types").Json;
15680
+ id?: string;
15681
+ laatst_gezien?: string | null;
15682
+ locatie?: string;
15683
+ naam?: string;
15684
+ pairing_code_hash?: string | null;
15685
+ pairing_expires_at?: string | null;
15686
+ pairing_used_at?: string | null;
15687
+ token_hash?: string;
15688
+ updated_at?: string;
15689
+ versie?: string;
15690
+ };
15691
+ Relationships: [];
15692
+ };
15693
+ print_dedupe_events: {
15694
+ Row: {
15695
+ bestaande_job_id: string | null;
15696
+ created_at: string;
15697
+ detail: string | null;
15698
+ documentnaam: string | null;
15699
+ documenttype: string | null;
15700
+ id: string;
15701
+ idempotentie_sleutel: string;
15702
+ reden: string;
15703
+ };
15704
+ Insert: {
15705
+ bestaande_job_id?: string | null;
15706
+ created_at?: string;
15707
+ detail?: string | null;
14895
15708
  documentnaam?: string | null;
14896
15709
  documenttype?: string | null;
14897
15710
  id?: string;
@@ -16386,30 +17199,108 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16386
17199
  referencedColumns: ["id"];
16387
17200
  }];
16388
17201
  };
17202
+ purchase_order_dispatches: {
17203
+ Row: {
17204
+ created_at: string;
17205
+ id: string;
17206
+ last_error: string | null;
17207
+ outbox_id: string | null;
17208
+ purchase_order_id: string;
17209
+ status: string;
17210
+ supplier_id: string | null;
17211
+ supplier_name: string;
17212
+ to_address: string;
17213
+ updated_at: string;
17214
+ };
17215
+ Insert: {
17216
+ created_at?: string;
17217
+ id?: string;
17218
+ last_error?: string | null;
17219
+ outbox_id?: string | null;
17220
+ purchase_order_id: string;
17221
+ status?: string;
17222
+ supplier_id?: string | null;
17223
+ supplier_name?: string;
17224
+ to_address: string;
17225
+ updated_at?: string;
17226
+ };
17227
+ Update: {
17228
+ created_at?: string;
17229
+ id?: string;
17230
+ last_error?: string | null;
17231
+ outbox_id?: string | null;
17232
+ purchase_order_id?: string;
17233
+ status?: string;
17234
+ supplier_id?: string | null;
17235
+ supplier_name?: string;
17236
+ to_address?: string;
17237
+ updated_at?: string;
17238
+ };
17239
+ Relationships: [{
17240
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
17241
+ columns: ["purchase_order_id"];
17242
+ isOneToOne: false;
17243
+ referencedRelation: "purchase_orders";
17244
+ referencedColumns: ["id"];
17245
+ }, {
17246
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
17247
+ columns: ["supplier_id"];
17248
+ isOneToOne: false;
17249
+ referencedRelation: "suppliers";
17250
+ referencedColumns: ["id"];
17251
+ }];
17252
+ };
16389
17253
  purchase_order_items: {
16390
17254
  Row: {
17255
+ article_number: string | null;
16391
17256
  created_at: string;
17257
+ delivery_date: string | null;
16392
17258
  id: string;
17259
+ name: string;
17260
+ note: string | null;
17261
+ pot_size: string | null;
16393
17262
  product_id: string | null;
16394
17263
  product_type: string;
16395
17264
  purchase_order_id: string;
16396
17265
  quantity: number;
17266
+ supplier_id: string | null;
17267
+ supplier_product_id: string | null;
17268
+ unit_price_cents: number;
17269
+ updated_at: string;
16397
17270
  };
16398
17271
  Insert: {
17272
+ article_number?: string | null;
16399
17273
  created_at?: string;
17274
+ delivery_date?: string | null;
16400
17275
  id?: string;
17276
+ name?: string;
17277
+ note?: string | null;
17278
+ pot_size?: string | null;
16401
17279
  product_id?: string | null;
16402
17280
  product_type?: string;
16403
17281
  purchase_order_id: string;
16404
17282
  quantity?: number;
17283
+ supplier_id?: string | null;
17284
+ supplier_product_id?: string | null;
17285
+ unit_price_cents?: number;
17286
+ updated_at?: string;
16405
17287
  };
16406
17288
  Update: {
17289
+ article_number?: string | null;
16407
17290
  created_at?: string;
17291
+ delivery_date?: string | null;
16408
17292
  id?: string;
17293
+ name?: string;
17294
+ note?: string | null;
17295
+ pot_size?: string | null;
16409
17296
  product_id?: string | null;
16410
17297
  product_type?: string;
16411
17298
  purchase_order_id?: string;
16412
17299
  quantity?: number;
17300
+ supplier_id?: string | null;
17301
+ supplier_product_id?: string | null;
17302
+ unit_price_cents?: number;
17303
+ updated_at?: string;
16413
17304
  };
16414
17305
  Relationships: [{
16415
17306
  foreignKeyName: "purchase_order_items_product_id_fkey";
@@ -16429,43 +17320,70 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16429
17320
  isOneToOne: false;
16430
17321
  referencedRelation: "purchase_orders";
16431
17322
  referencedColumns: ["id"];
17323
+ }, {
17324
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
17325
+ columns: ["supplier_id"];
17326
+ isOneToOne: false;
17327
+ referencedRelation: "suppliers";
17328
+ referencedColumns: ["id"];
17329
+ }, {
17330
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
17331
+ columns: ["supplier_product_id"];
17332
+ isOneToOne: false;
17333
+ referencedRelation: "supplier_products";
17334
+ referencedColumns: ["id"];
16432
17335
  }];
16433
17336
  };
16434
17337
  purchase_orders: {
16435
17338
  Row: {
17339
+ contact_person: string | null;
16436
17340
  created_at: string;
17341
+ created_by: string | null;
16437
17342
  expected_delivery_date: string;
16438
17343
  id: string;
16439
17344
  location_id: string | null;
16440
17345
  notes: string | null;
16441
17346
  order_number: string;
17347
+ reference: string | null;
17348
+ sent_at: string | null;
16442
17349
  status: string;
16443
17350
  supplier_id: string | null;
16444
17351
  supplier_name: string;
17352
+ total_cents: number;
16445
17353
  updated_at: string;
16446
17354
  };
16447
17355
  Insert: {
17356
+ contact_person?: string | null;
16448
17357
  created_at?: string;
16449
- expected_delivery_date: string;
17358
+ created_by?: string | null;
17359
+ expected_delivery_date?: string;
16450
17360
  id?: string;
16451
17361
  location_id?: string | null;
16452
17362
  notes?: string | null;
16453
- order_number: string;
17363
+ order_number?: string;
17364
+ reference?: string | null;
17365
+ sent_at?: string | null;
16454
17366
  status?: string;
16455
17367
  supplier_id?: string | null;
16456
17368
  supplier_name?: string;
17369
+ total_cents?: number;
16457
17370
  updated_at?: string;
16458
17371
  };
16459
17372
  Update: {
17373
+ contact_person?: string | null;
16460
17374
  created_at?: string;
17375
+ created_by?: string | null;
16461
17376
  expected_delivery_date?: string;
16462
17377
  id?: string;
16463
17378
  location_id?: string | null;
16464
17379
  notes?: string | null;
16465
17380
  order_number?: string;
17381
+ reference?: string | null;
17382
+ sent_at?: string | null;
16466
17383
  status?: string;
16467
17384
  supplier_id?: string | null;
16468
17385
  supplier_name?: string;
17386
+ total_cents?: number;
16469
17387
  updated_at?: string;
16470
17388
  };
16471
17389
  Relationships: [{
@@ -17352,15 +18270,160 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17352
18270
  };
17353
18271
  Relationships: [];
17354
18272
  };
18273
+ supplier_contacts: {
18274
+ Row: {
18275
+ created_at: string;
18276
+ email: string | null;
18277
+ id: string;
18278
+ is_primary: boolean;
18279
+ name: string;
18280
+ phone: string | null;
18281
+ role: string | null;
18282
+ supplier_id: string;
18283
+ updated_at: string;
18284
+ };
18285
+ Insert: {
18286
+ created_at?: string;
18287
+ email?: string | null;
18288
+ id?: string;
18289
+ is_primary?: boolean;
18290
+ name: string;
18291
+ phone?: string | null;
18292
+ role?: string | null;
18293
+ supplier_id: string;
18294
+ updated_at?: string;
18295
+ };
18296
+ Update: {
18297
+ created_at?: string;
18298
+ email?: string | null;
18299
+ id?: string;
18300
+ is_primary?: boolean;
18301
+ name?: string;
18302
+ phone?: string | null;
18303
+ role?: string | null;
18304
+ supplier_id?: string;
18305
+ updated_at?: string;
18306
+ };
18307
+ Relationships: [{
18308
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
18309
+ columns: ["supplier_id"];
18310
+ isOneToOne: false;
18311
+ referencedRelation: "suppliers";
18312
+ referencedColumns: ["id"];
18313
+ }];
18314
+ };
18315
+ supplier_price_history: {
18316
+ Row: {
18317
+ created_at: string;
18318
+ id: string;
18319
+ new_price_cents: number;
18320
+ old_price_cents: number | null;
18321
+ price_list_id: string | null;
18322
+ supplier_id: string | null;
18323
+ supplier_product_id: string;
18324
+ };
18325
+ Insert: {
18326
+ created_at?: string;
18327
+ id?: string;
18328
+ new_price_cents: number;
18329
+ old_price_cents?: number | null;
18330
+ price_list_id?: string | null;
18331
+ supplier_id?: string | null;
18332
+ supplier_product_id: string;
18333
+ };
18334
+ Update: {
18335
+ created_at?: string;
18336
+ id?: string;
18337
+ new_price_cents?: number;
18338
+ old_price_cents?: number | null;
18339
+ price_list_id?: string | null;
18340
+ supplier_id?: string | null;
18341
+ supplier_product_id?: string;
18342
+ };
18343
+ Relationships: [{
18344
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
18345
+ columns: ["price_list_id"];
18346
+ isOneToOne: false;
18347
+ referencedRelation: "price_lists";
18348
+ referencedColumns: ["id"];
18349
+ }, {
18350
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
18351
+ columns: ["supplier_product_id"];
18352
+ isOneToOne: false;
18353
+ referencedRelation: "supplier_products";
18354
+ referencedColumns: ["id"];
18355
+ }];
18356
+ };
18357
+ supplier_price_list_mappings: {
18358
+ Row: {
18359
+ column_map: import("../integrations/supabase/types").Json;
18360
+ created_at: string;
18361
+ deactivate_missing: boolean;
18362
+ decimal_separator: string;
18363
+ expected_headers: string[];
18364
+ extract_pot_from_name: boolean;
18365
+ header_row: number;
18366
+ id: string;
18367
+ max_error_ratio: number;
18368
+ price_is_cents: boolean;
18369
+ sheet_name: string | null;
18370
+ supplier_id: string;
18371
+ updated_at: string;
18372
+ };
18373
+ Insert: {
18374
+ column_map?: import("../integrations/supabase/types").Json;
18375
+ created_at?: string;
18376
+ deactivate_missing?: boolean;
18377
+ decimal_separator?: string;
18378
+ expected_headers?: string[];
18379
+ extract_pot_from_name?: boolean;
18380
+ header_row?: number;
18381
+ id?: string;
18382
+ max_error_ratio?: number;
18383
+ price_is_cents?: boolean;
18384
+ sheet_name?: string | null;
18385
+ supplier_id: string;
18386
+ updated_at?: string;
18387
+ };
18388
+ Update: {
18389
+ column_map?: import("../integrations/supabase/types").Json;
18390
+ created_at?: string;
18391
+ deactivate_missing?: boolean;
18392
+ decimal_separator?: string;
18393
+ expected_headers?: string[];
18394
+ extract_pot_from_name?: boolean;
18395
+ header_row?: number;
18396
+ id?: string;
18397
+ max_error_ratio?: number;
18398
+ price_is_cents?: boolean;
18399
+ sheet_name?: string | null;
18400
+ supplier_id?: string;
18401
+ updated_at?: string;
18402
+ };
18403
+ Relationships: [{
18404
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
18405
+ columns: ["supplier_id"];
18406
+ isOneToOne: true;
18407
+ referencedRelation: "suppliers";
18408
+ referencedColumns: ["id"];
18409
+ }];
18410
+ };
17355
18411
  supplier_products: {
17356
18412
  Row: {
17357
18413
  article_number: string | null;
18414
+ available_quantity: number;
17358
18415
  created_at: string;
18416
+ height: string | null;
17359
18417
  id: string;
18418
+ is_active: boolean;
18419
+ min_order: number;
17360
18420
  name: string;
17361
18421
  notes: string | null;
18422
+ order_unit: number;
17362
18423
  pot_size: string | null;
17363
18424
  price: number | null;
18425
+ price_cents: number;
18426
+ quality: string | null;
17364
18427
  quantity: number | null;
17365
18428
  supplier_id: string;
17366
18429
  unit: string;
@@ -17368,12 +18431,19 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17368
18431
  };
17369
18432
  Insert: {
17370
18433
  article_number?: string | null;
18434
+ available_quantity?: number;
17371
18435
  created_at?: string;
18436
+ height?: string | null;
17372
18437
  id?: string;
18438
+ is_active?: boolean;
18439
+ min_order?: number;
17373
18440
  name: string;
17374
18441
  notes?: string | null;
18442
+ order_unit?: number;
17375
18443
  pot_size?: string | null;
17376
18444
  price?: number | null;
18445
+ price_cents?: number;
18446
+ quality?: string | null;
17377
18447
  quantity?: number | null;
17378
18448
  supplier_id: string;
17379
18449
  unit?: string;
@@ -17381,12 +18451,19 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17381
18451
  };
17382
18452
  Update: {
17383
18453
  article_number?: string | null;
18454
+ available_quantity?: number;
17384
18455
  created_at?: string;
18456
+ height?: string | null;
17385
18457
  id?: string;
18458
+ is_active?: boolean;
18459
+ min_order?: number;
17386
18460
  name?: string;
17387
18461
  notes?: string | null;
18462
+ order_unit?: number;
17388
18463
  pot_size?: string | null;
17389
18464
  price?: number | null;
18465
+ price_cents?: number;
18466
+ quality?: string | null;
17390
18467
  quantity?: number | null;
17391
18468
  supplier_id?: string;
17392
18469
  unit?: string;
@@ -17403,6 +18480,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17403
18480
  suppliers: {
17404
18481
  Row: {
17405
18482
  address: string | null;
18483
+ category: string | null;
17406
18484
  column_mappings: import("../integrations/supabase/types").Json | null;
17407
18485
  contact_person: string | null;
17408
18486
  created_at: string;
@@ -17410,13 +18488,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17410
18488
  email: string | null;
17411
18489
  id: string;
17412
18490
  imported_file_name: string | null;
18491
+ is_preferred: boolean;
18492
+ kvk_number: string | null;
18493
+ lead_time_days: number | null;
18494
+ min_order_amount_cents: number;
17413
18495
  name: string;
17414
18496
  notes: string | null;
18497
+ order_days: string[];
18498
+ order_email: string | null;
18499
+ payment_terms_days: number | null;
17415
18500
  phone: string | null;
18501
+ status: string;
17416
18502
  updated_at: string;
18503
+ vat_number: string | null;
18504
+ website: string | null;
17417
18505
  };
17418
18506
  Insert: {
17419
18507
  address?: string | null;
18508
+ category?: string | null;
17420
18509
  column_mappings?: import("../integrations/supabase/types").Json | null;
17421
18510
  contact_person?: string | null;
17422
18511
  created_at?: string;
@@ -17424,13 +18513,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17424
18513
  email?: string | null;
17425
18514
  id?: string;
17426
18515
  imported_file_name?: string | null;
18516
+ is_preferred?: boolean;
18517
+ kvk_number?: string | null;
18518
+ lead_time_days?: number | null;
18519
+ min_order_amount_cents?: number;
17427
18520
  name: string;
17428
18521
  notes?: string | null;
18522
+ order_days?: string[];
18523
+ order_email?: string | null;
18524
+ payment_terms_days?: number | null;
17429
18525
  phone?: string | null;
18526
+ status?: string;
17430
18527
  updated_at?: string;
18528
+ vat_number?: string | null;
18529
+ website?: string | null;
17431
18530
  };
17432
18531
  Update: {
17433
18532
  address?: string | null;
18533
+ category?: string | null;
17434
18534
  column_mappings?: import("../integrations/supabase/types").Json | null;
17435
18535
  contact_person?: string | null;
17436
18536
  created_at?: string;
@@ -17438,10 +18538,20 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17438
18538
  email?: string | null;
17439
18539
  id?: string;
17440
18540
  imported_file_name?: string | null;
18541
+ is_preferred?: boolean;
18542
+ kvk_number?: string | null;
18543
+ lead_time_days?: number | null;
18544
+ min_order_amount_cents?: number;
17441
18545
  name?: string;
17442
18546
  notes?: string | null;
18547
+ order_days?: string[];
18548
+ order_email?: string | null;
18549
+ payment_terms_days?: number | null;
17443
18550
  phone?: string | null;
18551
+ status?: string;
17444
18552
  updated_at?: string;
18553
+ vat_number?: string | null;
18554
+ website?: string | null;
17445
18555
  };
17446
18556
  Relationships: [];
17447
18557
  };
@@ -18443,11 +19553,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18443
19553
  auto_invoice_trigger_statuses: string[];
18444
19554
  created_at: string;
18445
19555
  debtor_gl_account: string;
19556
+ default_article_code: string | null;
18446
19557
  default_credit_invoice_type: string | null;
18447
19558
  default_gl_account: string;
18448
19559
  default_invoice_type: string;
18449
19560
  default_payment_term_days: number;
18450
19561
  default_vat_code: string;
19562
+ email_purpose: string | null;
18451
19563
  home_country_code: string;
18452
19564
  invoice_enabled_ao: boolean;
18453
19565
  invoice_enabled_fo: boolean;
@@ -18469,11 +19581,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18469
19581
  auto_invoice_trigger_statuses?: string[];
18470
19582
  created_at?: string;
18471
19583
  debtor_gl_account?: string;
19584
+ default_article_code?: string | null;
18472
19585
  default_credit_invoice_type?: string | null;
18473
19586
  default_gl_account?: string;
18474
19587
  default_invoice_type?: string;
18475
19588
  default_payment_term_days?: number;
18476
19589
  default_vat_code?: string;
19590
+ email_purpose?: string | null;
18477
19591
  home_country_code?: string;
18478
19592
  invoice_enabled_ao?: boolean;
18479
19593
  invoice_enabled_fo?: boolean;
@@ -18495,11 +19609,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18495
19609
  auto_invoice_trigger_statuses?: string[];
18496
19610
  created_at?: string;
18497
19611
  debtor_gl_account?: string;
19612
+ default_article_code?: string | null;
18498
19613
  default_credit_invoice_type?: string | null;
18499
19614
  default_gl_account?: string;
18500
19615
  default_invoice_type?: string;
18501
19616
  default_payment_term_days?: number;
18502
19617
  default_vat_code?: string;
19618
+ email_purpose?: string | null;
18503
19619
  home_country_code?: string;
18504
19620
  invoice_enabled_ao?: boolean;
18505
19621
  invoice_enabled_fo?: boolean;
@@ -21654,6 +22770,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21654
22770
  Args: never;
21655
22771
  Returns: boolean;
21656
22772
  };
22773
+ cancel_open_print_jobs: {
22774
+ Args: {
22775
+ _cutoff: string;
22776
+ };
22777
+ Returns: {
22778
+ extern_job_id: string;
22779
+ id: string;
22780
+ }[];
22781
+ };
21657
22782
  check_offer_product_available_stock: {
21658
22783
  Args: {
21659
22784
  p_campaign_product_id: string;
@@ -22816,6 +23941,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22816
23941
  Args: never;
22817
23942
  Returns: boolean;
22818
23943
  };
23944
+ inkoop_apply_price_list: {
23945
+ Args: {
23946
+ _price_list_id: string;
23947
+ _rows: import("../integrations/supabase/types").Json;
23948
+ };
23949
+ Returns: import("../integrations/supabase/types").Json;
23950
+ };
23951
+ inkoop_next_order_number: {
23952
+ Args: never;
23953
+ Returns: string;
23954
+ };
23955
+ inkoop_send_order: {
23956
+ Args: {
23957
+ _order_id: string;
23958
+ };
23959
+ Returns: {
23960
+ outbox_id: string;
23961
+ supplier_name: string;
23962
+ to_address: string;
23963
+ }[];
23964
+ };
22819
23965
  instructie_get: {
22820
23966
  Args: {
22821
23967
  _sleutel: string;
@@ -23192,6 +24338,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23192
24338
  };
23193
24339
  Returns: string;
23194
24340
  };
24341
+ logistics_cart_checkin_at: {
24342
+ Args: {
24343
+ p_cart_id: string;
24344
+ };
24345
+ Returns: string;
24346
+ };
23195
24347
  logistics_cart_handled: {
23196
24348
  Args: {
23197
24349
  p_cart_index: number;
@@ -23225,10 +24377,22 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23225
24377
  task_status: string;
23226
24378
  }[];
23227
24379
  };
24380
+ logistics_cart_is_full: {
24381
+ Args: {
24382
+ p_cart_id: string;
24383
+ };
24384
+ Returns: boolean;
24385
+ };
23228
24386
  logistics_cart_layout_method: {
23229
24387
  Args: never;
23230
24388
  Returns: import("../integrations/supabase/types").Json;
23231
24389
  };
24390
+ logistics_cart_order_refs: {
24391
+ Args: {
24392
+ p_cart_id: string;
24393
+ };
24394
+ Returns: string[];
24395
+ };
23232
24396
  logistics_cart_plan_overview: {
23233
24397
  Args: {
23234
24398
  p_days?: number;
@@ -23248,6 +24412,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23248
24412
  };
23249
24413
  Returns: import("../integrations/supabase/types").Json;
23250
24414
  };
24415
+ logistics_cart_plan_status_core: {
24416
+ Args: {
24417
+ p_ref: string;
24418
+ };
24419
+ Returns: import("../integrations/supabase/types").Json;
24420
+ };
24421
+ logistics_cart_release_reason: {
24422
+ Args: {
24423
+ p_cart_id: string;
24424
+ };
24425
+ Returns: string;
24426
+ };
24427
+ logistics_cart_released: {
24428
+ Args: {
24429
+ p_cart_id: string;
24430
+ };
24431
+ Returns: boolean;
24432
+ };
23251
24433
  logistics_cart_seq: {
23252
24434
  Args: {
23253
24435
  p_order_uuid?: string;
@@ -23298,6 +24480,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23298
24480
  unit_ref: string;
23299
24481
  }[];
23300
24482
  };
24483
+ logistics_carts_per_print: {
24484
+ Args: never;
24485
+ Returns: number;
24486
+ };
23301
24487
  logistics_check_order_allowed: {
23302
24488
  Args: {
23303
24489
  p_lines: import("../integrations/supabase/types").Json;
@@ -23401,6 +24587,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23401
24587
  isSetofReturn: false;
23402
24588
  };
23403
24589
  };
24590
+ logistics_cleanup_orphan_print_jobs: {
24591
+ Args: never;
24592
+ Returns: import("../integrations/supabase/types").Json;
24593
+ };
23404
24594
  logistics_complete_task: {
23405
24595
  Args: {
23406
24596
  p_result?: import("../integrations/supabase/types").Json;
@@ -23463,6 +24653,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23463
24653
  station_carts: number;
23464
24654
  }[];
23465
24655
  };
24656
+ logistics_control_complete_cart: {
24657
+ Args: {
24658
+ p_cart_id: string;
24659
+ };
24660
+ Returns: number;
24661
+ };
23466
24662
  logistics_control_scan_approve: {
23467
24663
  Args: {
23468
24664
  p_allow_reprint?: boolean;
@@ -23542,6 +24738,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23542
24738
  Args: never;
23543
24739
  Returns: import("../integrations/supabase/types").Json;
23544
24740
  };
24741
+ logistics_day_windows: {
24742
+ Args: {
24743
+ p_day: string;
24744
+ };
24745
+ Returns: {
24746
+ win_end: string;
24747
+ win_start: string;
24748
+ }[];
24749
+ };
23545
24750
  logistics_delay_customer_email: {
23546
24751
  Args: {
23547
24752
  p_customer: string;
@@ -23609,6 +24814,17 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23609
24814
  };
23610
24815
  Returns: import("../integrations/supabase/types").Json;
23611
24816
  };
24817
+ logistics_enqueue_shipping_note_with_slip: {
24818
+ Args: {
24819
+ _cart_id: string;
24820
+ _is_herprint: boolean;
24821
+ _printer_id: string;
24822
+ _queue_item_id: string;
24823
+ _session_id: string;
24824
+ _slip_job_id: string;
24825
+ };
24826
+ Returns: string;
24827
+ };
23612
24828
  logistics_enqueue_sticker_with_slip: {
23613
24829
  Args: {
23614
24830
  _cart_id: string;
@@ -23626,6 +24842,20 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23626
24842
  };
23627
24843
  Returns: string;
23628
24844
  };
24845
+ logistics_ensure_pick_data: {
24846
+ Args: {
24847
+ p_event_id?: string;
24848
+ p_missing?: import("../integrations/supabase/types").Json;
24849
+ p_ref: string;
24850
+ };
24851
+ Returns: import("../integrations/supabase/types").Json;
24852
+ };
24853
+ logistics_ensure_shipping_notes: {
24854
+ Args: {
24855
+ p_limit?: number;
24856
+ };
24857
+ Returns: import("../integrations/supabase/types").Json;
24858
+ };
23629
24859
  logistics_fail_task: {
23630
24860
  Args: {
23631
24861
  p_error: string;
@@ -23671,6 +24901,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23671
24901
  isSetofReturn: false;
23672
24902
  };
23673
24903
  };
24904
+ logistics_fix_wrong_shipping_notes: {
24905
+ Args: never;
24906
+ Returns: import("../integrations/supabase/types").Json;
24907
+ };
23674
24908
  logistics_floriday_cart_plan: {
23675
24909
  Args: {
23676
24910
  p_order_id: string;
@@ -23698,6 +24932,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23698
24932
  revision: number;
23699
24933
  }[];
23700
24934
  };
24935
+ logistics_floriday_delivery_note_create_enabled: {
24936
+ Args: never;
24937
+ Returns: boolean;
24938
+ };
23701
24939
  logistics_floriday_finish_push: {
23702
24940
  Args: {
23703
24941
  _error?: string;
@@ -23797,6 +25035,16 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23797
25035
  Args: never;
23798
25036
  Returns: boolean;
23799
25037
  };
25038
+ logistics_floriday_stock_updates_enabled: {
25039
+ Args: never;
25040
+ Returns: boolean;
25041
+ };
25042
+ logistics_floriday_write_allowed: {
25043
+ Args: {
25044
+ _action: string;
25045
+ };
25046
+ Returns: boolean;
25047
+ };
23800
25048
  logistics_fulfill_barcode_requests: {
23801
25049
  Args: {
23802
25050
  p_limit?: number;
@@ -23839,6 +25087,22 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23839
25087
  };
23840
25088
  Returns: number;
23841
25089
  };
25090
+ logistics_merge_floriday_lines: {
25091
+ Args: {
25092
+ p_order_id: string;
25093
+ };
25094
+ Returns: string;
25095
+ };
25096
+ logistics_merge_lines_enabled: {
25097
+ Args: never;
25098
+ Returns: boolean;
25099
+ };
25100
+ logistics_merge_partial_carts: {
25101
+ Args: {
25102
+ p_limit?: number;
25103
+ };
25104
+ Returns: import("../integrations/supabase/types").Json;
25105
+ };
23842
25106
  logistics_next_workday_date: {
23843
25107
  Args: {
23844
25108
  p_date: string;
@@ -23865,6 +25129,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23865
25129
  };
23866
25130
  Returns: string;
23867
25131
  };
25132
+ logistics_opening_timezone: {
25133
+ Args: never;
25134
+ Returns: string;
25135
+ };
23868
25136
  logistics_order_cart_count: {
23869
25137
  Args: {
23870
25138
  p_order_ref: string;
@@ -23884,6 +25152,18 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23884
25152
  };
23885
25153
  Returns: boolean;
23886
25154
  };
25155
+ logistics_order_merge_key: {
25156
+ Args: {
25157
+ p_group_key: string;
25158
+ };
25159
+ Returns: string;
25160
+ };
25161
+ logistics_order_mergeable: {
25162
+ Args: {
25163
+ p_order_id: string;
25164
+ };
25165
+ Returns: boolean;
25166
+ };
23887
25167
  logistics_order_overview: {
23888
25168
  Args: {
23889
25169
  p_from?: string;
@@ -23921,6 +25201,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23921
25201
  };
23922
25202
  Returns: string;
23923
25203
  };
25204
+ logistics_payload_is_floriday: {
25205
+ Args: {
25206
+ _payload: import("../integrations/supabase/types").Json;
25207
+ };
25208
+ Returns: boolean;
25209
+ };
23924
25210
  logistics_pick_agenda: {
23925
25211
  Args: {
23926
25212
  p_from?: string;
@@ -23949,6 +25235,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23949
25235
  Args: never;
23950
25236
  Returns: import("../integrations/supabase/types").Json;
23951
25237
  };
25238
+ logistics_pick_partial_mode: {
25239
+ Args: never;
25240
+ Returns: string;
25241
+ };
23952
25242
  logistics_pick_start_estimate: {
23953
25243
  Args: {
23954
25244
  p_order: import("../integrations/supabase/types").Json;
@@ -24039,6 +25329,20 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24039
25329
  Args: never;
24040
25330
  Returns: undefined;
24041
25331
  };
25332
+ logistics_plan_progress: {
25333
+ Args: {
25334
+ p_refs: string[];
25335
+ };
25336
+ Returns: {
25337
+ cart_plan_ready: boolean;
25338
+ cart_plan_reason: string;
25339
+ cart_plan_released: boolean;
25340
+ plan_progress: number;
25341
+ plan_state: string;
25342
+ plan_state_since: string;
25343
+ unit_ref: string;
25344
+ }[];
25345
+ };
24042
25346
  logistics_plan_prune: {
24043
25347
  Args: never;
24044
25348
  Returns: number;
@@ -24060,6 +25364,18 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24060
25364
  };
24061
25365
  Returns: number;
24062
25366
  };
25367
+ logistics_plan_state_for: {
25368
+ Args: {
25369
+ p_ref: string;
25370
+ };
25371
+ Returns: import("../integrations/supabase/types").Json;
25372
+ };
25373
+ logistics_prepare_pick_documents: {
25374
+ Args: {
25375
+ p_limit?: number;
25376
+ };
25377
+ Returns: import("../integrations/supabase/types").Json;
25378
+ };
24063
25379
  logistics_prune_buffer_member_queue: {
24064
25380
  Args: never;
24065
25381
  Returns: number;
@@ -24100,18 +25416,36 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24100
25416
  Args: never;
24101
25417
  Returns: import("../integrations/supabase/types").Json;
24102
25418
  };
25419
+ logistics_refresh_pick_queue_status: {
25420
+ Args: {
25421
+ p_ref: string;
25422
+ };
25423
+ Returns: number;
25424
+ };
24103
25425
  logistics_refresh_pickup_moments: {
24104
25426
  Args: {
24105
25427
  p_weeks?: number;
24106
25428
  };
24107
25429
  Returns: import("../integrations/supabase/types").Json;
24108
25430
  };
25431
+ logistics_refresh_plan_state: {
25432
+ Args: {
25433
+ p_limit?: number;
25434
+ };
25435
+ Returns: import("../integrations/supabase/types").Json;
25436
+ };
24109
25437
  logistics_replan_all: {
24110
25438
  Args: {
24111
25439
  p_reason?: string;
24112
25440
  };
24113
25441
  Returns: import("../integrations/supabase/types").Json;
24114
25442
  };
25443
+ logistics_replan_all_force: {
25444
+ Args: {
25445
+ p_reason?: string;
25446
+ };
25447
+ Returns: import("../integrations/supabase/types").Json;
25448
+ };
24115
25449
  logistics_report_delay: {
24116
25450
  Args: {
24117
25451
  p_expected_date?: string;
@@ -24256,6 +25590,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24256
25590
  };
24257
25591
  Returns: string;
24258
25592
  };
25593
+ logistics_shipping_note_follows_slip: {
25594
+ Args: never;
25595
+ Returns: boolean;
25596
+ };
24259
25597
  logistics_shipping_note_from_barcode: {
24260
25598
  Args: {
24261
25599
  p_allow_reprint?: boolean;
@@ -24264,10 +25602,86 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24264
25602
  };
24265
25603
  Returns: import("../integrations/supabase/types").Json;
24266
25604
  };
25605
+ logistics_shipping_note_job_for_slip: {
25606
+ Args: {
25607
+ _slip_job_id: string;
25608
+ };
25609
+ Returns: string;
25610
+ };
25611
+ logistics_shipping_notes_wake_all: {
25612
+ Args: never;
25613
+ Returns: import("../integrations/supabase/types").Json;
25614
+ };
25615
+ logistics_slip_is_floriday: {
25616
+ Args: {
25617
+ _slip_job_id: string;
25618
+ };
25619
+ Returns: boolean;
25620
+ };
25621
+ logistics_slip_note_claim: {
25622
+ Args: {
25623
+ _lease_seconds?: number;
25624
+ _limit?: number;
25625
+ };
25626
+ Returns: {
25627
+ attempts: number;
25628
+ batch_key: string | null;
25629
+ cart_id: string | null;
25630
+ created_at: string;
25631
+ error: string | null;
25632
+ error_code: string | null;
25633
+ fulfillment_order_id: string | null;
25634
+ id: string;
25635
+ locked_until: string | null;
25636
+ next_attempt_at: string | null;
25637
+ order_id: string | null;
25638
+ order_number: string | null;
25639
+ print_job_id: string | null;
25640
+ printer_id: string | null;
25641
+ retry_class: string | null;
25642
+ slip_job_id: string;
25643
+ status: string;
25644
+ updated_at: string;
25645
+ }[];
25646
+ SetofOptions: {
25647
+ from: "*";
25648
+ to: "logistics_slip_shipping_note";
25649
+ isOneToOne: false;
25650
+ isSetofReturn: true;
25651
+ };
25652
+ };
25653
+ logistics_slip_note_finish: {
25654
+ Args: {
25655
+ _error?: string;
25656
+ _error_code?: string;
25657
+ _fulfillment_order_id?: string;
25658
+ _id: string;
25659
+ _ok: boolean;
25660
+ _print_job_id?: string;
25661
+ _status?: string;
25662
+ };
25663
+ Returns: undefined;
25664
+ };
25665
+ logistics_slip_note_keep_waiting: {
25666
+ Args: {
25667
+ _class?: string;
25668
+ _id: string;
25669
+ _reason: string;
25670
+ };
25671
+ Returns: undefined;
25672
+ };
24267
25673
  logistics_sticker_follows_slip: {
24268
25674
  Args: never;
24269
25675
  Returns: boolean;
24270
25676
  };
25677
+ logistics_subtract_working_minutes: {
25678
+ Args: {
25679
+ p_deadline: string;
25680
+ p_max_workdays?: number;
25681
+ p_minutes: number;
25682
+ };
25683
+ Returns: import("../integrations/supabase/types").Json;
25684
+ };
24271
25685
  logistics_supersede_stale_tasks: {
24272
25686
  Args: {
24273
25687
  p_keep: string[];
@@ -24304,6 +25718,109 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24304
25718
  Args: never;
24305
25719
  Returns: string;
24306
25720
  };
25721
+ logistics_timezone_options: {
25722
+ Args: never;
25723
+ Returns: {
25724
+ name: string;
25725
+ }[];
25726
+ };
25727
+ logistics_trace: {
25728
+ Args: {
25729
+ p: import("../integrations/supabase/types").Json;
25730
+ };
25731
+ Returns: string;
25732
+ };
25733
+ logistics_trace_all_orders: {
25734
+ Args: {
25735
+ p_limit?: number;
25736
+ p_search?: string;
25737
+ };
25738
+ Returns: import("../integrations/supabase/types").Json;
25739
+ };
25740
+ logistics_trace_batch: {
25741
+ Args: {
25742
+ p: import("../integrations/supabase/types").Json;
25743
+ };
25744
+ Returns: number;
25745
+ };
25746
+ logistics_trace_node: {
25747
+ Args: {
25748
+ p_op?: string;
25749
+ p_status?: string;
25750
+ p_table: string;
25751
+ };
25752
+ Returns: string;
25753
+ };
25754
+ logistics_trace_order_overview: {
25755
+ Args: {
25756
+ p_error_class?: string;
25757
+ p_limit?: number;
25758
+ p_search?: string;
25759
+ p_since?: string;
25760
+ p_source?: string;
25761
+ p_state?: string;
25762
+ p_step?: string;
25763
+ };
25764
+ Returns: import("../integrations/supabase/types").Json;
25765
+ };
25766
+ logistics_trace_order_state: {
25767
+ Args: {
25768
+ p_order_ref: string;
25769
+ };
25770
+ Returns: import("../integrations/supabase/types").Json;
25771
+ };
25772
+ logistics_trace_order_step: {
25773
+ Args: {
25774
+ p_class?: string;
25775
+ p_decision?: string;
25776
+ p_error?: string;
25777
+ p_next_step?: string;
25778
+ p_node: string;
25779
+ p_order_id: string;
25780
+ p_reason?: string;
25781
+ p_status: string;
25782
+ p_step: string;
25783
+ };
25784
+ Returns: undefined;
25785
+ };
25786
+ logistics_trace_orders: {
25787
+ Args: {
25788
+ p_limit?: number;
25789
+ p_search?: string;
25790
+ p_since?: string;
25791
+ p_status?: string;
25792
+ };
25793
+ Returns: import("../integrations/supabase/types").Json;
25794
+ };
25795
+ logistics_trace_redact: {
25796
+ Args: {
25797
+ p: import("../integrations/supabase/types").Json;
25798
+ };
25799
+ Returns: import("../integrations/supabase/types").Json;
25800
+ };
25801
+ logistics_trace_timeline: {
25802
+ Args: {
25803
+ p_limit?: number;
25804
+ p_order_ref: string;
25805
+ };
25806
+ Returns: import("../integrations/supabase/types").Json;
25807
+ };
25808
+ logistics_trace_version_events: {
25809
+ Args: {
25810
+ p_from?: string;
25811
+ p_limit?: number;
25812
+ p_order_ref: string;
25813
+ p_to?: string;
25814
+ p_version_id: string;
25815
+ };
25816
+ Returns: import("../integrations/supabase/types").Json;
25817
+ };
25818
+ logistics_trace_versions: {
25819
+ Args: {
25820
+ p_order_ref: string;
25821
+ };
25822
+ Returns: import("../integrations/supabase/types").Json;
25823
+ };
24307
25824
  logistics_upsert_task: {
24308
25825
  Args: {
24309
25826
  p_buffer_ref: string;
@@ -24323,6 +25840,16 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24323
25840
  };
24324
25841
  Returns: string;
24325
25842
  };
25843
+ logistics_valid_timezone: {
25844
+ Args: {
25845
+ _tz: string;
25846
+ };
25847
+ Returns: boolean;
25848
+ };
25849
+ logistics_working_hours_status: {
25850
+ Args: never;
25851
+ Returns: import("../integrations/supabase/types").Json;
25852
+ };
24326
25853
  logistics_write_buffer_layer_positions: {
24327
25854
  Args: {
24328
25855
  p_buffer_id: string;
@@ -25335,6 +26862,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25335
26862
  };
25336
26863
  Returns: undefined;
25337
26864
  };
26865
+ prune_floriday_api_log: {
26866
+ Args: never;
26867
+ Returns: number;
26868
+ };
25338
26869
  quote_create_from_source: {
25339
26870
  Args: {
25340
26871
  _payload?: import("../integrations/supabase/types").Json;
@@ -25768,6 +27299,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
25768
27299
  };
25769
27300
  Returns: number;
25770
27301
  };
27302
+ schedule_floriday_catalog_prices_sync: {
27303
+ Args: {
27304
+ p_apikey: string;
27305
+ p_url: string;
27306
+ };
27307
+ Returns: number;
27308
+ };
25771
27309
  schedule_floriday_clock_presales_sync: {
25772
27310
  Args: {
25773
27311
  p_apikey: string;
@@ -26068,6 +27606,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
26068
27606
  };
26069
27607
  Returns: undefined;
26070
27608
  };
27609
+ sync_floriday_prices_into_price_groups: {
27610
+ Args: never;
27611
+ Returns: number;
27612
+ };
26071
27613
  sync_layer_stock: {
26072
27614
  Args: {
26073
27615
  p_product_id: string;
@@ -26200,6 +27742,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
26200
27742
  Args: never;
26201
27743
  Returns: string;
26202
27744
  };
27745
+ voorraad_cleanup_old_rows: {
27746
+ Args: never;
27747
+ Returns: import("../integrations/supabase/types").Json;
27748
+ };
26203
27749
  wake_print_queue: {
26204
27750
  Args: {
26205
27751
  _min_interval_ms?: number;