@flowselections/logistiek-engine 1.0.33 → 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 (166) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/FloridayPoortCard.d.ts.map +1 -1
  3. package/dist-lib/components/FloridayPoortCard.js +2 -1
  4. package/dist-lib/components/FlowCanvas.d.ts +28 -0
  5. package/dist-lib/components/FlowCanvas.d.ts.map +1 -0
  6. package/dist-lib/components/FlowCanvas.js +429 -0
  7. package/dist-lib/components/FlowOrders.d.ts +8 -0
  8. package/dist-lib/components/FlowOrders.d.ts.map +1 -0
  9. package/dist-lib/components/FlowOrders.js +125 -0
  10. package/dist-lib/components/FlowPage.d.ts +2 -0
  11. package/dist-lib/components/FlowPage.d.ts.map +1 -0
  12. package/dist-lib/components/FlowPage.js +141 -0
  13. package/dist-lib/components/InklapbaarVenster.d.ts +9 -0
  14. package/dist-lib/components/InklapbaarVenster.d.ts.map +1 -0
  15. package/dist-lib/components/InklapbaarVenster.js +10 -0
  16. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  17. package/dist-lib/components/LogistiekEnginePage.js +9 -3
  18. package/dist-lib/components/LogistiekEngineQueuePage.d.ts +2 -0
  19. package/dist-lib/components/LogistiekEngineQueuePage.d.ts.map +1 -0
  20. package/dist-lib/components/LogistiekEngineQueuePage.js +11 -0
  21. package/dist-lib/components/NodeTracePanel.d.ts +11 -0
  22. package/dist-lib/components/NodeTracePanel.d.ts.map +1 -0
  23. package/dist-lib/components/NodeTracePanel.js +40 -0
  24. package/dist-lib/components/OrderJourneyBar.d.ts +9 -0
  25. package/dist-lib/components/OrderJourneyBar.d.ts.map +1 -0
  26. package/dist-lib/components/OrderJourneyBar.js +26 -0
  27. package/dist-lib/components/OrderLogboek.d.ts +10 -0
  28. package/dist-lib/components/OrderLogboek.d.ts.map +1 -0
  29. package/dist-lib/components/OrderLogboek.js +92 -0
  30. package/dist-lib/components/OrderStopBanner.d.ts +5 -0
  31. package/dist-lib/components/OrderStopBanner.d.ts.map +1 -0
  32. package/dist-lib/components/OrderStopBanner.js +22 -0
  33. package/dist-lib/components/OrderTraceDetails.d.ts +22 -0
  34. package/dist-lib/components/OrderTraceDetails.d.ts.map +1 -0
  35. package/dist-lib/components/OrderTraceDetails.js +87 -0
  36. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  37. package/dist-lib/components/RegiePage.js +11 -69
  38. package/dist-lib/components/WerktijdenCard.d.ts +2 -0
  39. package/dist-lib/components/WerktijdenCard.d.ts.map +1 -0
  40. package/dist-lib/components/WerktijdenCard.js +37 -0
  41. package/dist-lib/components/WerkwijzeHerindelingCard.d.ts.map +1 -1
  42. package/dist-lib/components/WerkwijzeHerindelingCard.js +100 -6
  43. package/dist-lib/hooks/useFloridayGate.d.ts +10 -0
  44. package/dist-lib/hooks/useFloridayGate.d.ts.map +1 -1
  45. package/dist-lib/hooks/useFloridayGate.js +4 -0
  46. package/dist-lib/hooks/useLogisticsTrace.d.ts +78 -0
  47. package/dist-lib/hooks/useLogisticsTrace.d.ts.map +1 -0
  48. package/dist-lib/hooks/useLogisticsTrace.js +152 -0
  49. package/dist-lib/hooks/useOrderNodeTrace.d.ts +11 -0
  50. package/dist-lib/hooks/useOrderNodeTrace.d.ts.map +1 -0
  51. package/dist-lib/hooks/useOrderNodeTrace.js +26 -0
  52. package/dist-lib/hooks/useOrderTrace.d.ts +74 -0
  53. package/dist-lib/hooks/useOrderTrace.d.ts.map +1 -0
  54. package/dist-lib/hooks/useOrderTrace.js +134 -0
  55. package/dist-lib/hooks/useOrderVersies.d.ts +47 -0
  56. package/dist-lib/hooks/useOrderVersies.d.ts.map +1 -0
  57. package/dist-lib/hooks/useOrderVersies.js +180 -0
  58. package/dist-lib/hooks/useRuleEngine.d.ts +1 -0
  59. package/dist-lib/hooks/useRuleEngine.d.ts.map +1 -1
  60. package/dist-lib/hooks/useRuleEngine.js +1 -0
  61. package/dist-lib/hooks/useShippingNoteStatus.d.ts +29 -0
  62. package/dist-lib/hooks/useShippingNoteStatus.d.ts.map +1 -0
  63. package/dist-lib/hooks/useShippingNoteStatus.js +107 -0
  64. package/dist-lib/hooks/useWerktijden.d.ts +33 -0
  65. package/dist-lib/hooks/useWerktijden.d.ts.map +1 -0
  66. package/dist-lib/hooks/useWerktijden.js +88 -0
  67. package/dist-lib/hooks/useWerkwijzeStatus.d.ts +12 -1
  68. package/dist-lib/hooks/useWerkwijzeStatus.d.ts.map +1 -1
  69. package/dist-lib/hooks/useWerkwijzeStatus.js +60 -4
  70. package/dist-lib/index.d.ts +13 -0
  71. package/dist-lib/index.d.ts.map +1 -1
  72. package/dist-lib/index.js +13 -0
  73. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1600 -54
  74. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  75. package/dist-lib/integrations/supabase/client.server.d.ts +1600 -54
  76. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  77. package/dist-lib/integrations/supabase/client.server.js +1 -1
  78. package/dist-lib/integrations/supabase/moduleClient.d.ts +1600 -54
  79. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  80. package/dist-lib/integrations/supabase/types.d.ts +1618 -50
  81. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  82. package/dist-lib/lib/cartPlanRequests.server.d.ts +1 -1
  83. package/dist-lib/lib/cartPlanRequests.server.d.ts.map +1 -1
  84. package/dist-lib/lib/cartPlanRequests.server.js +49 -8
  85. package/dist-lib/lib/floridayDocuments.functions.d.ts +4644 -6
  86. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  87. package/dist-lib/lib/floridayDocuments.functions.js +1 -1
  88. package/dist-lib/lib/floridayDocuments.server.d.ts +14 -0
  89. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  90. package/dist-lib/lib/floridayDocuments.server.js +58 -0
  91. package/dist-lib/lib/floridayGuard.server.d.ts +2 -2
  92. package/dist-lib/lib/floridayGuard.server.d.ts.map +1 -1
  93. package/dist-lib/lib/floridayGuard.server.js +34 -5
  94. package/dist-lib/lib/floridayPush.functions.d.ts +1600 -54
  95. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  96. package/dist-lib/lib/floridayPush.functions.js +1 -1
  97. package/dist-lib/lib/flowGraph.d.ts +43 -0
  98. package/dist-lib/lib/flowGraph.d.ts.map +1 -0
  99. package/dist-lib/lib/flowGraph.js +153 -0
  100. package/dist-lib/lib/flowNodes.d.ts +23 -0
  101. package/dist-lib/lib/flowNodes.d.ts.map +1 -0
  102. package/dist-lib/lib/flowNodes.js +58 -0
  103. package/dist-lib/lib/flowRoute.d.ts +107 -0
  104. package/dist-lib/lib/flowRoute.d.ts.map +1 -0
  105. package/dist-lib/lib/flowRoute.js +280 -0
  106. package/dist-lib/lib/flowTree.d.ts +64 -0
  107. package/dist-lib/lib/flowTree.d.ts.map +1 -0
  108. package/dist-lib/lib/flowTree.js +519 -0
  109. package/dist-lib/lib/handlers/index.d.ts +1 -0
  110. package/dist-lib/lib/handlers/index.d.ts.map +1 -1
  111. package/dist-lib/lib/handlers/index.js +1 -0
  112. package/dist-lib/lib/handlers/logistics-shipping-note-now.server.d.ts +3 -0
  113. package/dist-lib/lib/handlers/logistics-shipping-note-now.server.d.ts.map +1 -0
  114. package/dist-lib/lib/handlers/logistics-shipping-note-now.server.js +100 -0
  115. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  116. package/dist-lib/lib/handlers/logistics-tick.server.js +97 -2
  117. package/dist-lib/lib/loadCarrierPlanner.d.ts +2 -0
  118. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  119. package/dist-lib/lib/loadCarrierPlanner.js +18 -0
  120. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +7740 -10
  121. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  122. package/dist-lib/lib/loadCarrierPlanning.functions.js +1 -1
  123. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +9 -0
  124. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  125. package/dist-lib/lib/loadCarrierPlanning.server.js +44 -17
  126. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  127. package/dist-lib/lib/logisticsPlanner.js +14 -2
  128. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +3096 -4
  129. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  130. package/dist-lib/lib/logisticsRecalcJob.functions.js +1 -1
  131. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1600 -54
  132. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  133. package/dist-lib/lib/logisticsRecalculate.functions.js +1 -1
  134. package/dist-lib/lib/modulePrompts.d.ts +1 -0
  135. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  136. package/dist-lib/lib/modulePrompts.js +3482 -2610
  137. package/dist-lib/lib/nodeTrace.d.ts +61 -0
  138. package/dist-lib/lib/nodeTrace.d.ts.map +1 -0
  139. package/dist-lib/lib/nodeTrace.js +191 -0
  140. package/dist-lib/lib/pickQueueCleanup.server.d.ts +14 -0
  141. package/dist-lib/lib/pickQueueCleanup.server.d.ts.map +1 -0
  142. package/dist-lib/lib/pickQueueCleanup.server.js +80 -0
  143. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  144. package/dist-lib/lib/planQueue.server.js +140 -0
  145. package/dist-lib/lib/ruleEngineImpact.d.ts.map +1 -1
  146. package/dist-lib/lib/ruleEngineImpact.js +11 -4
  147. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  148. package/dist-lib/lib/ruleEngineSchema.js +57 -6
  149. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  150. package/dist-lib/lib/ruleEngineWizard.js +3 -1
  151. package/dist-lib/lib/shippingNoteQueue.server.d.ts +18 -0
  152. package/dist-lib/lib/shippingNoteQueue.server.d.ts.map +1 -0
  153. package/dist-lib/lib/shippingNoteQueue.server.js +304 -0
  154. package/dist-lib/lib/trace.server.d.ts +75 -0
  155. package/dist-lib/lib/trace.server.d.ts.map +1 -0
  156. package/dist-lib/lib/trace.server.js +75 -0
  157. package/dist-lib/lib/vakUitleg.d.ts +19 -0
  158. package/dist-lib/lib/vakUitleg.d.ts.map +1 -0
  159. package/dist-lib/lib/vakUitleg.js +132 -0
  160. package/package.json +26 -2
  161. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +0 -2
  162. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +0 -1
  163. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +0 -41
  164. package/dist-lib/integrations/supabase/client.d.ts +0 -20293
  165. package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
  166. package/dist-lib/integrations/supabase/client.js +0 -13
@@ -1822,6 +1822,42 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
1822
1822
  };
1823
1823
  Relationships: [];
1824
1824
  };
1825
+ customer_assortment_items: {
1826
+ Row: {
1827
+ created_at: string;
1828
+ customer_key: string;
1829
+ id: string;
1830
+ in_assortment: boolean;
1831
+ manual_override: boolean;
1832
+ source: string;
1833
+ synced_at: string | null;
1834
+ trade_item_key: string;
1835
+ updated_at: string;
1836
+ };
1837
+ Insert: {
1838
+ created_at?: string;
1839
+ customer_key: string;
1840
+ id?: string;
1841
+ in_assortment?: boolean;
1842
+ manual_override?: boolean;
1843
+ source?: string;
1844
+ synced_at?: string | null;
1845
+ trade_item_key: string;
1846
+ updated_at?: string;
1847
+ };
1848
+ Update: {
1849
+ created_at?: string;
1850
+ customer_key?: string;
1851
+ id?: string;
1852
+ in_assortment?: boolean;
1853
+ manual_override?: boolean;
1854
+ source?: string;
1855
+ synced_at?: string | null;
1856
+ trade_item_key?: string;
1857
+ updated_at?: string;
1858
+ };
1859
+ Relationships: [];
1860
+ };
1825
1861
  customer_audit_log: {
1826
1862
  Row: {
1827
1863
  action: string;
@@ -2224,6 +2260,63 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
2224
2260
  };
2225
2261
  Relationships: [];
2226
2262
  };
2263
+ customer_product_stickers: {
2264
+ Row: {
2265
+ content_hash: string | null;
2266
+ created_at: string;
2267
+ customer_key: string;
2268
+ file_name: string;
2269
+ file_path: string;
2270
+ file_size: number | null;
2271
+ floriday_sticker_id: string | null;
2272
+ floriday_synced_at: string | null;
2273
+ height_mm: number | null;
2274
+ id: string;
2275
+ mime_type: string | null;
2276
+ source: string;
2277
+ trade_item_key: string;
2278
+ updated_at: string;
2279
+ uploaded_by: string | null;
2280
+ width_mm: number | null;
2281
+ };
2282
+ Insert: {
2283
+ content_hash?: string | null;
2284
+ created_at?: string;
2285
+ customer_key: string;
2286
+ file_name: string;
2287
+ file_path: string;
2288
+ file_size?: number | null;
2289
+ floriday_sticker_id?: string | null;
2290
+ floriday_synced_at?: string | null;
2291
+ height_mm?: number | null;
2292
+ id?: string;
2293
+ mime_type?: string | null;
2294
+ source?: string;
2295
+ trade_item_key: string;
2296
+ updated_at?: string;
2297
+ uploaded_by?: string | null;
2298
+ width_mm?: number | null;
2299
+ };
2300
+ Update: {
2301
+ content_hash?: string | null;
2302
+ created_at?: string;
2303
+ customer_key?: string;
2304
+ file_name?: string;
2305
+ file_path?: string;
2306
+ file_size?: number | null;
2307
+ floriday_sticker_id?: string | null;
2308
+ floriday_synced_at?: string | null;
2309
+ height_mm?: number | null;
2310
+ id?: string;
2311
+ mime_type?: string | null;
2312
+ source?: string;
2313
+ trade_item_key?: string;
2314
+ updated_at?: string;
2315
+ uploaded_by?: string | null;
2316
+ width_mm?: number | null;
2317
+ };
2318
+ Relationships: [];
2319
+ };
2227
2320
  customer_selected_assortment: {
2228
2321
  Row: {
2229
2322
  article_number: string | null;
@@ -2272,6 +2365,30 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
2272
2365
  referencedColumns: ["id"];
2273
2366
  }];
2274
2367
  };
2368
+ customer_sticker_settings: {
2369
+ Row: {
2370
+ created_at: string;
2371
+ customer_key: string;
2372
+ height_mm: number;
2373
+ updated_at: string;
2374
+ width_mm: number;
2375
+ };
2376
+ Insert: {
2377
+ created_at?: string;
2378
+ customer_key: string;
2379
+ height_mm?: number;
2380
+ updated_at?: string;
2381
+ width_mm?: number;
2382
+ };
2383
+ Update: {
2384
+ created_at?: string;
2385
+ customer_key?: string;
2386
+ height_mm?: number;
2387
+ updated_at?: string;
2388
+ width_mm?: number;
2389
+ };
2390
+ Relationships: [];
2391
+ };
2275
2392
  customer_trade_settings: {
2276
2393
  Row: {
2277
2394
  category: string;
@@ -3597,6 +3714,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
3597
3714
  };
3598
3715
  email_auth_outbox: {
3599
3716
  Row: {
3717
+ attachments: import("../integrations/supabase/types").Json;
3600
3718
  attempts: number;
3601
3719
  bcc_addresses: string[];
3602
3720
  cc_addresses: string[];
@@ -3619,6 +3737,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
3619
3737
  updated_at: string;
3620
3738
  };
3621
3739
  Insert: {
3740
+ attachments?: import("../integrations/supabase/types").Json;
3622
3741
  attempts?: number;
3623
3742
  bcc_addresses?: string[];
3624
3743
  cc_addresses?: string[];
@@ -3641,6 +3760,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
3641
3760
  updated_at?: string;
3642
3761
  };
3643
3762
  Update: {
3763
+ attachments?: import("../integrations/supabase/types").Json;
3644
3764
  attempts?: number;
3645
3765
  bcc_addresses?: string[];
3646
3766
  cc_addresses?: string[];
@@ -5602,6 +5722,102 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
5602
5722
  referencedColumns: ["id"];
5603
5723
  }];
5604
5724
  };
5725
+ floriday_api_log: {
5726
+ Row: {
5727
+ action: string | null;
5728
+ caller: string | null;
5729
+ connection_id: string | null;
5730
+ created_at: string;
5731
+ cursor_from: number | null;
5732
+ direction: string;
5733
+ duration_ms: number | null;
5734
+ environment: string | null;
5735
+ error: string | null;
5736
+ floriday_id: string | null;
5737
+ floriday_reference: string | null;
5738
+ http_status: number;
5739
+ id: string;
5740
+ item_count: number | null;
5741
+ kind: string | null;
5742
+ local_id: string | null;
5743
+ local_reference: string | null;
5744
+ method: string;
5745
+ module: string | null;
5746
+ ok: boolean;
5747
+ path: string;
5748
+ request: import("../integrations/supabase/types").Json | null;
5749
+ resource_type: string | null;
5750
+ response: import("../integrations/supabase/types").Json | null;
5751
+ write_log_id: string | null;
5752
+ };
5753
+ Insert: {
5754
+ action?: string | null;
5755
+ caller?: string | null;
5756
+ connection_id?: string | null;
5757
+ created_at?: string;
5758
+ cursor_from?: number | null;
5759
+ direction: string;
5760
+ duration_ms?: number | null;
5761
+ environment?: string | null;
5762
+ error?: string | null;
5763
+ floriday_id?: string | null;
5764
+ floriday_reference?: string | null;
5765
+ http_status?: number;
5766
+ id?: string;
5767
+ item_count?: number | null;
5768
+ kind?: string | null;
5769
+ local_id?: string | null;
5770
+ local_reference?: string | null;
5771
+ method: string;
5772
+ module?: string | null;
5773
+ ok?: boolean;
5774
+ path: string;
5775
+ request?: import("../integrations/supabase/types").Json | null;
5776
+ resource_type?: string | null;
5777
+ response?: import("../integrations/supabase/types").Json | null;
5778
+ write_log_id?: string | null;
5779
+ };
5780
+ Update: {
5781
+ action?: string | null;
5782
+ caller?: string | null;
5783
+ connection_id?: string | null;
5784
+ created_at?: string;
5785
+ cursor_from?: number | null;
5786
+ direction?: string;
5787
+ duration_ms?: number | null;
5788
+ environment?: string | null;
5789
+ error?: string | null;
5790
+ floriday_id?: string | null;
5791
+ floriday_reference?: string | null;
5792
+ http_status?: number;
5793
+ id?: string;
5794
+ item_count?: number | null;
5795
+ kind?: string | null;
5796
+ local_id?: string | null;
5797
+ local_reference?: string | null;
5798
+ method?: string;
5799
+ module?: string | null;
5800
+ ok?: boolean;
5801
+ path?: string;
5802
+ request?: import("../integrations/supabase/types").Json | null;
5803
+ resource_type?: string | null;
5804
+ response?: import("../integrations/supabase/types").Json | null;
5805
+ write_log_id?: string | null;
5806
+ };
5807
+ Relationships: [{
5808
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5809
+ columns: ["connection_id"];
5810
+ isOneToOne: false;
5811
+ referencedRelation: "floriday_connections";
5812
+ referencedColumns: ["id"];
5813
+ }, {
5814
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5815
+ columns: ["write_log_id"];
5816
+ isOneToOne: false;
5817
+ referencedRelation: "floriday_write_log";
5818
+ referencedColumns: ["id"];
5819
+ }];
5820
+ };
5605
5821
  floriday_auction_letters_cache: {
5606
5822
  Row: {
5607
5823
  auction_letter_code: string;
@@ -5809,6 +6025,84 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
5809
6025
  referencedColumns: ["id"];
5810
6026
  }];
5811
6027
  };
6028
+ floriday_catalog_prices_cache: {
6029
+ Row: {
6030
+ connection_id: string;
6031
+ created_at: string;
6032
+ currency: string;
6033
+ id: string;
6034
+ is_deleted: boolean;
6035
+ price: number | null;
6036
+ price_group_id: string | null;
6037
+ price_group_name: string | null;
6038
+ price_type: string;
6039
+ raw: import("../integrations/supabase/types").Json | null;
6040
+ sales_unit: string | null;
6041
+ sequence_number: number;
6042
+ supplier_article_code: string | null;
6043
+ supply_line_id: string;
6044
+ synced_at: string;
6045
+ trade_item_id: string | null;
6046
+ updated_at: string;
6047
+ valid_from: string | null;
6048
+ valid_to: string | null;
6049
+ week: number | null;
6050
+ year: number | null;
6051
+ };
6052
+ Insert: {
6053
+ connection_id: string;
6054
+ created_at?: string;
6055
+ currency?: string;
6056
+ id?: string;
6057
+ is_deleted?: boolean;
6058
+ price?: number | null;
6059
+ price_group_id?: string | null;
6060
+ price_group_name?: string | null;
6061
+ price_type?: string;
6062
+ raw?: import("../integrations/supabase/types").Json | null;
6063
+ sales_unit?: string | null;
6064
+ sequence_number?: number;
6065
+ supplier_article_code?: string | null;
6066
+ supply_line_id: string;
6067
+ synced_at?: string;
6068
+ trade_item_id?: string | null;
6069
+ updated_at?: string;
6070
+ valid_from?: string | null;
6071
+ valid_to?: string | null;
6072
+ week?: number | null;
6073
+ year?: number | null;
6074
+ };
6075
+ Update: {
6076
+ connection_id?: string;
6077
+ created_at?: string;
6078
+ currency?: string;
6079
+ id?: string;
6080
+ is_deleted?: boolean;
6081
+ price?: number | null;
6082
+ price_group_id?: string | null;
6083
+ price_group_name?: string | null;
6084
+ price_type?: string;
6085
+ raw?: import("../integrations/supabase/types").Json | null;
6086
+ sales_unit?: string | null;
6087
+ sequence_number?: number;
6088
+ supplier_article_code?: string | null;
6089
+ supply_line_id?: string;
6090
+ synced_at?: string;
6091
+ trade_item_id?: string | null;
6092
+ updated_at?: string;
6093
+ valid_from?: string | null;
6094
+ valid_to?: string | null;
6095
+ week?: number | null;
6096
+ year?: number | null;
6097
+ };
6098
+ Relationships: [{
6099
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6100
+ columns: ["connection_id"];
6101
+ isOneToOne: false;
6102
+ referencedRelation: "floriday_connections";
6103
+ referencedColumns: ["id"];
6104
+ }];
6105
+ };
5812
6106
  floriday_clock_presales_cache: {
5813
6107
  Row: {
5814
6108
  buyer_organization_id: string | null;
@@ -6724,6 +7018,69 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
6724
7018
  referencedColumns: ["id"];
6725
7019
  }];
6726
7020
  };
7021
+ floriday_link_templates: {
7022
+ Row: {
7023
+ created_at: string;
7024
+ floriday_url_template: string | null;
7025
+ is_active: boolean;
7026
+ label: string;
7027
+ local_url_template: string | null;
7028
+ resource_type: string;
7029
+ updated_at: string;
7030
+ };
7031
+ Insert: {
7032
+ created_at?: string;
7033
+ floriday_url_template?: string | null;
7034
+ is_active?: boolean;
7035
+ label: string;
7036
+ local_url_template?: string | null;
7037
+ resource_type: string;
7038
+ updated_at?: string;
7039
+ };
7040
+ Update: {
7041
+ created_at?: string;
7042
+ floriday_url_template?: string | null;
7043
+ is_active?: boolean;
7044
+ label?: string;
7045
+ local_url_template?: string | null;
7046
+ resource_type?: string;
7047
+ updated_at?: string;
7048
+ };
7049
+ Relationships: [];
7050
+ };
7051
+ floriday_log_retention: {
7052
+ Row: {
7053
+ created_at: string;
7054
+ direction: string | null;
7055
+ id: string;
7056
+ keep_failed_days: number | null;
7057
+ keep_ok_days: number | null;
7058
+ note: string | null;
7059
+ resource_type: string | null;
7060
+ updated_at: string;
7061
+ };
7062
+ Insert: {
7063
+ created_at?: string;
7064
+ direction?: string | null;
7065
+ id?: string;
7066
+ keep_failed_days?: number | null;
7067
+ keep_ok_days?: number | null;
7068
+ note?: string | null;
7069
+ resource_type?: string | null;
7070
+ updated_at?: string;
7071
+ };
7072
+ Update: {
7073
+ created_at?: string;
7074
+ direction?: string | null;
7075
+ id?: string;
7076
+ keep_failed_days?: number | null;
7077
+ keep_ok_days?: number | null;
7078
+ note?: string | null;
7079
+ resource_type?: string | null;
7080
+ updated_at?: string;
7081
+ };
7082
+ Relationships: [];
7083
+ };
6727
7084
  floriday_logistic_labels_cache: {
6728
7085
  Row: {
6729
7086
  byte_size: number | null;
@@ -10288,6 +10645,144 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10288
10645
  };
10289
10646
  Relationships: [];
10290
10647
  };
10648
+ logistics_opening_exceptions: {
10649
+ Row: {
10650
+ closes: string | null;
10651
+ created_at: string;
10652
+ day: string;
10653
+ id: string;
10654
+ is_closed: boolean;
10655
+ note: string | null;
10656
+ opens: string | null;
10657
+ };
10658
+ Insert: {
10659
+ closes?: string | null;
10660
+ created_at?: string;
10661
+ day: string;
10662
+ id?: string;
10663
+ is_closed?: boolean;
10664
+ note?: string | null;
10665
+ opens?: string | null;
10666
+ };
10667
+ Update: {
10668
+ closes?: string | null;
10669
+ created_at?: string;
10670
+ day?: string;
10671
+ id?: string;
10672
+ is_closed?: boolean;
10673
+ note?: string | null;
10674
+ opens?: string | null;
10675
+ };
10676
+ Relationships: [];
10677
+ };
10678
+ logistics_opening_hours: {
10679
+ Row: {
10680
+ closes: string;
10681
+ created_at: string;
10682
+ id: string;
10683
+ is_active: boolean;
10684
+ note: string | null;
10685
+ opens: string;
10686
+ weekday: number;
10687
+ };
10688
+ Insert: {
10689
+ closes: string;
10690
+ created_at?: string;
10691
+ id?: string;
10692
+ is_active?: boolean;
10693
+ note?: string | null;
10694
+ opens: string;
10695
+ weekday: number;
10696
+ };
10697
+ Update: {
10698
+ closes?: string;
10699
+ created_at?: string;
10700
+ id?: string;
10701
+ is_active?: boolean;
10702
+ note?: string | null;
10703
+ opens?: string;
10704
+ weekday?: number;
10705
+ };
10706
+ Relationships: [];
10707
+ };
10708
+ logistics_order_merges: {
10709
+ Row: {
10710
+ group_key: string;
10711
+ id: string;
10712
+ items_moved: number;
10713
+ kept_order_id: string;
10714
+ kept_order_number: string | null;
10715
+ merged_at: string;
10716
+ merged_order_id: string;
10717
+ merged_order_number: string | null;
10718
+ sales_order_id: string | null;
10719
+ };
10720
+ Insert: {
10721
+ group_key: string;
10722
+ id?: string;
10723
+ items_moved?: number;
10724
+ kept_order_id: string;
10725
+ kept_order_number?: string | null;
10726
+ merged_at?: string;
10727
+ merged_order_id: string;
10728
+ merged_order_number?: string | null;
10729
+ sales_order_id?: string | null;
10730
+ };
10731
+ Update: {
10732
+ group_key?: string;
10733
+ id?: string;
10734
+ items_moved?: number;
10735
+ kept_order_id?: string;
10736
+ kept_order_number?: string | null;
10737
+ merged_at?: string;
10738
+ merged_order_id?: string;
10739
+ merged_order_number?: string | null;
10740
+ sales_order_id?: string | null;
10741
+ };
10742
+ Relationships: [];
10743
+ };
10744
+ logistics_pick_data_requests: {
10745
+ Row: {
10746
+ actions: import("../integrations/supabase/types").Json;
10747
+ created_at: string;
10748
+ event_id: string | null;
10749
+ finished_at: string | null;
10750
+ id: string;
10751
+ missing: import("../integrations/supabase/types").Json;
10752
+ order_ref: string;
10753
+ reason: string | null;
10754
+ result: import("../integrations/supabase/types").Json | null;
10755
+ status: string;
10756
+ unit_ref: string | null;
10757
+ };
10758
+ Insert: {
10759
+ actions?: import("../integrations/supabase/types").Json;
10760
+ created_at?: string;
10761
+ event_id?: string | null;
10762
+ finished_at?: string | null;
10763
+ id?: string;
10764
+ missing?: import("../integrations/supabase/types").Json;
10765
+ order_ref: string;
10766
+ reason?: string | null;
10767
+ result?: import("../integrations/supabase/types").Json | null;
10768
+ status?: string;
10769
+ unit_ref?: string | null;
10770
+ };
10771
+ Update: {
10772
+ actions?: import("../integrations/supabase/types").Json;
10773
+ created_at?: string;
10774
+ event_id?: string | null;
10775
+ finished_at?: string | null;
10776
+ id?: string;
10777
+ missing?: import("../integrations/supabase/types").Json;
10778
+ order_ref?: string;
10779
+ reason?: string | null;
10780
+ result?: import("../integrations/supabase/types").Json | null;
10781
+ status?: string;
10782
+ unit_ref?: string | null;
10783
+ };
10784
+ Relationships: [];
10785
+ };
10291
10786
  logistics_pickup_moments: {
10292
10787
  Row: {
10293
10788
  carrier_ref: string | null;
@@ -10747,6 +11242,69 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
10747
11242
  };
10748
11243
  Relationships: [];
10749
11244
  };
11245
+ logistics_slip_shipping_note: {
11246
+ Row: {
11247
+ attempts: number;
11248
+ batch_key: string | null;
11249
+ cart_id: string | null;
11250
+ created_at: string;
11251
+ error: string | null;
11252
+ error_code: string | null;
11253
+ fulfillment_order_id: string | null;
11254
+ id: string;
11255
+ locked_until: string | null;
11256
+ next_attempt_at: string | null;
11257
+ order_id: string | null;
11258
+ order_number: string | null;
11259
+ print_job_id: string | null;
11260
+ printer_id: string | null;
11261
+ retry_class: string | null;
11262
+ slip_job_id: string;
11263
+ status: string;
11264
+ updated_at: string;
11265
+ };
11266
+ Insert: {
11267
+ attempts?: number;
11268
+ batch_key?: string | null;
11269
+ cart_id?: string | null;
11270
+ created_at?: string;
11271
+ error?: string | null;
11272
+ error_code?: string | null;
11273
+ fulfillment_order_id?: string | null;
11274
+ id?: string;
11275
+ locked_until?: string | null;
11276
+ next_attempt_at?: string | null;
11277
+ order_id?: string | null;
11278
+ order_number?: string | null;
11279
+ print_job_id?: string | null;
11280
+ printer_id?: string | null;
11281
+ retry_class?: string | null;
11282
+ slip_job_id: string;
11283
+ status?: string;
11284
+ updated_at?: string;
11285
+ };
11286
+ Update: {
11287
+ attempts?: number;
11288
+ batch_key?: string | null;
11289
+ cart_id?: string | null;
11290
+ created_at?: string;
11291
+ error?: string | null;
11292
+ error_code?: string | null;
11293
+ fulfillment_order_id?: string | null;
11294
+ id?: string;
11295
+ locked_until?: string | null;
11296
+ next_attempt_at?: string | null;
11297
+ order_id?: string | null;
11298
+ order_number?: string | null;
11299
+ print_job_id?: string | null;
11300
+ printer_id?: string | null;
11301
+ retry_class?: string | null;
11302
+ slip_job_id?: string;
11303
+ status?: string;
11304
+ updated_at?: string;
11305
+ };
11306
+ Relationships: [];
11307
+ };
10750
11308
  logistics_staff_planning: {
10751
11309
  Row: {
10752
11310
  created_at: string;
@@ -11080,6 +11638,141 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
11080
11638
  };
11081
11639
  Relationships: [];
11082
11640
  };
11641
+ logistics_time_settings: {
11642
+ Row: {
11643
+ id: boolean;
11644
+ timezone: string;
11645
+ updated_at: string;
11646
+ };
11647
+ Insert: {
11648
+ id?: boolean;
11649
+ timezone: string;
11650
+ updated_at?: string;
11651
+ };
11652
+ Update: {
11653
+ id?: boolean;
11654
+ timezone?: string;
11655
+ updated_at?: string;
11656
+ };
11657
+ Relationships: [];
11658
+ };
11659
+ logistics_trace_events: {
11660
+ Row: {
11661
+ actor: string | null;
11662
+ attempts: number;
11663
+ calc: import("../integrations/supabase/types").Json | null;
11664
+ cart_ref: string | null;
11665
+ created_at: string;
11666
+ db_action: string | null;
11667
+ db_new: import("../integrations/supabase/types").Json | null;
11668
+ db_old: import("../integrations/supabase/types").Json | null;
11669
+ db_record: string | null;
11670
+ db_table: string | null;
11671
+ decision: string | null;
11672
+ duration_ms: number | null;
11673
+ error: string | null;
11674
+ error_class: string | null;
11675
+ external_action: string | null;
11676
+ external_ref: string | null;
11677
+ external_response: import("../integrations/supabase/types").Json | null;
11678
+ external_status: string | null;
11679
+ external_system: string | null;
11680
+ id: string;
11681
+ input: import("../integrations/supabase/types").Json | null;
11682
+ next_attempt_at: string | null;
11683
+ next_step: string | null;
11684
+ node_id: string | null;
11685
+ order_ref: string | null;
11686
+ order_source: string | null;
11687
+ output: import("../integrations/supabase/types").Json | null;
11688
+ phase: string;
11689
+ reads: import("../integrations/supabase/types").Json | null;
11690
+ reason: string | null;
11691
+ rule: string | null;
11692
+ slip_ref: string | null;
11693
+ status: string;
11694
+ step: string;
11695
+ trace_id: string;
11696
+ values_used: import("../integrations/supabase/types").Json | null;
11697
+ };
11698
+ Insert: {
11699
+ actor?: string | null;
11700
+ attempts?: number;
11701
+ calc?: import("../integrations/supabase/types").Json | null;
11702
+ cart_ref?: string | null;
11703
+ created_at?: string;
11704
+ db_action?: string | null;
11705
+ db_new?: import("../integrations/supabase/types").Json | null;
11706
+ db_old?: import("../integrations/supabase/types").Json | null;
11707
+ db_record?: string | null;
11708
+ db_table?: string | null;
11709
+ decision?: string | null;
11710
+ duration_ms?: number | null;
11711
+ error?: string | null;
11712
+ error_class?: string | null;
11713
+ external_action?: string | null;
11714
+ external_ref?: string | null;
11715
+ external_response?: import("../integrations/supabase/types").Json | null;
11716
+ external_status?: string | null;
11717
+ external_system?: string | null;
11718
+ id?: string;
11719
+ input?: import("../integrations/supabase/types").Json | null;
11720
+ next_attempt_at?: string | null;
11721
+ next_step?: string | null;
11722
+ node_id?: string | null;
11723
+ order_ref?: string | null;
11724
+ order_source?: string | null;
11725
+ output?: import("../integrations/supabase/types").Json | null;
11726
+ phase: string;
11727
+ reads?: import("../integrations/supabase/types").Json | null;
11728
+ reason?: string | null;
11729
+ rule?: string | null;
11730
+ slip_ref?: string | null;
11731
+ status: string;
11732
+ step: string;
11733
+ trace_id?: string;
11734
+ values_used?: import("../integrations/supabase/types").Json | null;
11735
+ };
11736
+ Update: {
11737
+ actor?: string | null;
11738
+ attempts?: number;
11739
+ calc?: import("../integrations/supabase/types").Json | null;
11740
+ cart_ref?: string | null;
11741
+ created_at?: string;
11742
+ db_action?: string | null;
11743
+ db_new?: import("../integrations/supabase/types").Json | null;
11744
+ db_old?: import("../integrations/supabase/types").Json | null;
11745
+ db_record?: string | null;
11746
+ db_table?: string | null;
11747
+ decision?: string | null;
11748
+ duration_ms?: number | null;
11749
+ error?: string | null;
11750
+ error_class?: string | null;
11751
+ external_action?: string | null;
11752
+ external_ref?: string | null;
11753
+ external_response?: import("../integrations/supabase/types").Json | null;
11754
+ external_status?: string | null;
11755
+ external_system?: string | null;
11756
+ id?: string;
11757
+ input?: import("../integrations/supabase/types").Json | null;
11758
+ next_attempt_at?: string | null;
11759
+ next_step?: string | null;
11760
+ node_id?: string | null;
11761
+ order_ref?: string | null;
11762
+ order_source?: string | null;
11763
+ output?: import("../integrations/supabase/types").Json | null;
11764
+ phase?: string;
11765
+ reads?: import("../integrations/supabase/types").Json | null;
11766
+ reason?: string | null;
11767
+ rule?: string | null;
11768
+ slip_ref?: string | null;
11769
+ status?: string;
11770
+ step?: string;
11771
+ trace_id?: string;
11772
+ values_used?: import("../integrations/supabase/types").Json | null;
11773
+ };
11774
+ Relationships: [];
11775
+ };
11083
11776
  logistics_variables: {
11084
11777
  Row: {
11085
11778
  created_at: string;
@@ -13470,6 +14163,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13470
14163
  customer_name: string;
13471
14164
  deleted_at: string | null;
13472
14165
  delivery_date: string | null;
14166
+ floriday_order_group_key: string | null;
13473
14167
  floriday_sales_order_id: string | null;
13474
14168
  id: string;
13475
14169
  invoice_due_at: string | null;
@@ -13497,6 +14191,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13497
14191
  customer_name?: string;
13498
14192
  deleted_at?: string | null;
13499
14193
  delivery_date?: string | null;
14194
+ floriday_order_group_key?: string | null;
13500
14195
  floriday_sales_order_id?: string | null;
13501
14196
  id?: string;
13502
14197
  invoice_due_at?: string | null;
@@ -13524,6 +14219,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13524
14219
  customer_name?: string;
13525
14220
  deleted_at?: string | null;
13526
14221
  delivery_date?: string | null;
14222
+ floriday_order_group_key?: string | null;
13527
14223
  floriday_sales_order_id?: string | null;
13528
14224
  id?: string;
13529
14225
  invoice_due_at?: string | null;
@@ -14824,6 +15520,123 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
14824
15520
  referencedColumns: ["id"];
14825
15521
  }];
14826
15522
  };
15523
+ price_list_rows: {
15524
+ Row: {
15525
+ action: string;
15526
+ created_at: string;
15527
+ id: string;
15528
+ message: string | null;
15529
+ parsed: import("../integrations/supabase/types").Json;
15530
+ price_list_id: string;
15531
+ raw: import("../integrations/supabase/types").Json;
15532
+ row_number: number;
15533
+ supplier_product_id: string | null;
15534
+ };
15535
+ Insert: {
15536
+ action?: string;
15537
+ created_at?: string;
15538
+ id?: string;
15539
+ message?: string | null;
15540
+ parsed?: import("../integrations/supabase/types").Json;
15541
+ price_list_id: string;
15542
+ raw?: import("../integrations/supabase/types").Json;
15543
+ row_number: number;
15544
+ supplier_product_id?: string | null;
15545
+ };
15546
+ Update: {
15547
+ action?: string;
15548
+ created_at?: string;
15549
+ id?: string;
15550
+ message?: string | null;
15551
+ parsed?: import("../integrations/supabase/types").Json;
15552
+ price_list_id?: string;
15553
+ raw?: import("../integrations/supabase/types").Json;
15554
+ row_number?: number;
15555
+ supplier_product_id?: string | null;
15556
+ };
15557
+ Relationships: [{
15558
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
15559
+ columns: ["price_list_id"];
15560
+ isOneToOne: false;
15561
+ referencedRelation: "price_lists";
15562
+ referencedColumns: ["id"];
15563
+ }, {
15564
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
15565
+ columns: ["supplier_product_id"];
15566
+ isOneToOne: false;
15567
+ referencedRelation: "supplier_products";
15568
+ referencedColumns: ["id"];
15569
+ }];
15570
+ };
15571
+ price_lists: {
15572
+ Row: {
15573
+ created_at: string;
15574
+ created_by: string | null;
15575
+ file_hash: string | null;
15576
+ file_name: string;
15577
+ file_path: string | null;
15578
+ headers: string[];
15579
+ id: string;
15580
+ preview: import("../integrations/supabase/types").Json;
15581
+ processed_at: string | null;
15582
+ reason: string | null;
15583
+ row_count: number;
15584
+ sheet_name: string | null;
15585
+ source: string;
15586
+ stats: import("../integrations/supabase/types").Json;
15587
+ status: string;
15588
+ supplier_guess: string | null;
15589
+ supplier_id: string | null;
15590
+ updated_at: string;
15591
+ };
15592
+ Insert: {
15593
+ created_at?: string;
15594
+ created_by?: string | null;
15595
+ file_hash?: string | null;
15596
+ file_name: string;
15597
+ file_path?: string | null;
15598
+ headers?: string[];
15599
+ id?: string;
15600
+ preview?: import("../integrations/supabase/types").Json;
15601
+ processed_at?: string | null;
15602
+ reason?: string | null;
15603
+ row_count?: number;
15604
+ sheet_name?: string | null;
15605
+ source?: string;
15606
+ stats?: import("../integrations/supabase/types").Json;
15607
+ status?: string;
15608
+ supplier_guess?: string | null;
15609
+ supplier_id?: string | null;
15610
+ updated_at?: string;
15611
+ };
15612
+ Update: {
15613
+ created_at?: string;
15614
+ created_by?: string | null;
15615
+ file_hash?: string | null;
15616
+ file_name?: string;
15617
+ file_path?: string | null;
15618
+ headers?: string[];
15619
+ id?: string;
15620
+ preview?: import("../integrations/supabase/types").Json;
15621
+ processed_at?: string | null;
15622
+ reason?: string | null;
15623
+ row_count?: number;
15624
+ sheet_name?: string | null;
15625
+ source?: string;
15626
+ stats?: import("../integrations/supabase/types").Json;
15627
+ status?: string;
15628
+ supplier_guess?: string | null;
15629
+ supplier_id?: string | null;
15630
+ updated_at?: string;
15631
+ };
15632
+ Relationships: [{
15633
+ foreignKeyName: "price_lists_supplier_id_fkey";
15634
+ columns: ["supplier_id"];
15635
+ isOneToOne: false;
15636
+ referencedRelation: "suppliers";
15637
+ referencedColumns: ["id"];
15638
+ }];
15639
+ };
14827
15640
  print_agents: {
14828
15641
  Row: {
14829
15642
  actief: boolean;
@@ -16381,30 +17194,108 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
16381
17194
  referencedColumns: ["id"];
16382
17195
  }];
16383
17196
  };
17197
+ purchase_order_dispatches: {
17198
+ Row: {
17199
+ created_at: string;
17200
+ id: string;
17201
+ last_error: string | null;
17202
+ outbox_id: string | null;
17203
+ purchase_order_id: string;
17204
+ status: string;
17205
+ supplier_id: string | null;
17206
+ supplier_name: string;
17207
+ to_address: string;
17208
+ updated_at: string;
17209
+ };
17210
+ Insert: {
17211
+ created_at?: string;
17212
+ id?: string;
17213
+ last_error?: string | null;
17214
+ outbox_id?: string | null;
17215
+ purchase_order_id: string;
17216
+ status?: string;
17217
+ supplier_id?: string | null;
17218
+ supplier_name?: string;
17219
+ to_address: string;
17220
+ updated_at?: string;
17221
+ };
17222
+ Update: {
17223
+ created_at?: string;
17224
+ id?: string;
17225
+ last_error?: string | null;
17226
+ outbox_id?: string | null;
17227
+ purchase_order_id?: string;
17228
+ status?: string;
17229
+ supplier_id?: string | null;
17230
+ supplier_name?: string;
17231
+ to_address?: string;
17232
+ updated_at?: string;
17233
+ };
17234
+ Relationships: [{
17235
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
17236
+ columns: ["purchase_order_id"];
17237
+ isOneToOne: false;
17238
+ referencedRelation: "purchase_orders";
17239
+ referencedColumns: ["id"];
17240
+ }, {
17241
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
17242
+ columns: ["supplier_id"];
17243
+ isOneToOne: false;
17244
+ referencedRelation: "suppliers";
17245
+ referencedColumns: ["id"];
17246
+ }];
17247
+ };
16384
17248
  purchase_order_items: {
16385
17249
  Row: {
17250
+ article_number: string | null;
16386
17251
  created_at: string;
17252
+ delivery_date: string | null;
16387
17253
  id: string;
17254
+ name: string;
17255
+ note: string | null;
17256
+ pot_size: string | null;
16388
17257
  product_id: string | null;
16389
17258
  product_type: string;
16390
17259
  purchase_order_id: string;
16391
17260
  quantity: number;
17261
+ supplier_id: string | null;
17262
+ supplier_product_id: string | null;
17263
+ unit_price_cents: number;
17264
+ updated_at: string;
16392
17265
  };
16393
17266
  Insert: {
17267
+ article_number?: string | null;
16394
17268
  created_at?: string;
17269
+ delivery_date?: string | null;
16395
17270
  id?: string;
17271
+ name?: string;
17272
+ note?: string | null;
17273
+ pot_size?: string | null;
16396
17274
  product_id?: string | null;
16397
17275
  product_type?: string;
16398
17276
  purchase_order_id: string;
16399
17277
  quantity?: number;
17278
+ supplier_id?: string | null;
17279
+ supplier_product_id?: string | null;
17280
+ unit_price_cents?: number;
17281
+ updated_at?: string;
16400
17282
  };
16401
17283
  Update: {
17284
+ article_number?: string | null;
16402
17285
  created_at?: string;
17286
+ delivery_date?: string | null;
16403
17287
  id?: string;
17288
+ name?: string;
17289
+ note?: string | null;
17290
+ pot_size?: string | null;
16404
17291
  product_id?: string | null;
16405
17292
  product_type?: string;
16406
17293
  purchase_order_id?: string;
16407
17294
  quantity?: number;
17295
+ supplier_id?: string | null;
17296
+ supplier_product_id?: string | null;
17297
+ unit_price_cents?: number;
17298
+ updated_at?: string;
16408
17299
  };
16409
17300
  Relationships: [{
16410
17301
  foreignKeyName: "purchase_order_items_product_id_fkey";
@@ -16424,43 +17315,70 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
16424
17315
  isOneToOne: false;
16425
17316
  referencedRelation: "purchase_orders";
16426
17317
  referencedColumns: ["id"];
17318
+ }, {
17319
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
17320
+ columns: ["supplier_id"];
17321
+ isOneToOne: false;
17322
+ referencedRelation: "suppliers";
17323
+ referencedColumns: ["id"];
17324
+ }, {
17325
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
17326
+ columns: ["supplier_product_id"];
17327
+ isOneToOne: false;
17328
+ referencedRelation: "supplier_products";
17329
+ referencedColumns: ["id"];
16427
17330
  }];
16428
17331
  };
16429
17332
  purchase_orders: {
16430
17333
  Row: {
17334
+ contact_person: string | null;
16431
17335
  created_at: string;
17336
+ created_by: string | null;
16432
17337
  expected_delivery_date: string;
16433
17338
  id: string;
16434
17339
  location_id: string | null;
16435
17340
  notes: string | null;
16436
17341
  order_number: string;
17342
+ reference: string | null;
17343
+ sent_at: string | null;
16437
17344
  status: string;
16438
17345
  supplier_id: string | null;
16439
17346
  supplier_name: string;
17347
+ total_cents: number;
16440
17348
  updated_at: string;
16441
17349
  };
16442
17350
  Insert: {
17351
+ contact_person?: string | null;
16443
17352
  created_at?: string;
16444
- expected_delivery_date: string;
17353
+ created_by?: string | null;
17354
+ expected_delivery_date?: string;
16445
17355
  id?: string;
16446
17356
  location_id?: string | null;
16447
17357
  notes?: string | null;
16448
- order_number: string;
17358
+ order_number?: string;
17359
+ reference?: string | null;
17360
+ sent_at?: string | null;
16449
17361
  status?: string;
16450
17362
  supplier_id?: string | null;
16451
17363
  supplier_name?: string;
17364
+ total_cents?: number;
16452
17365
  updated_at?: string;
16453
17366
  };
16454
17367
  Update: {
17368
+ contact_person?: string | null;
16455
17369
  created_at?: string;
17370
+ created_by?: string | null;
16456
17371
  expected_delivery_date?: string;
16457
17372
  id?: string;
16458
17373
  location_id?: string | null;
16459
17374
  notes?: string | null;
16460
17375
  order_number?: string;
17376
+ reference?: string | null;
17377
+ sent_at?: string | null;
16461
17378
  status?: string;
16462
17379
  supplier_id?: string | null;
16463
17380
  supplier_name?: string;
17381
+ total_cents?: number;
16464
17382
  updated_at?: string;
16465
17383
  };
16466
17384
  Relationships: [{
@@ -17347,15 +18265,160 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
17347
18265
  };
17348
18266
  Relationships: [];
17349
18267
  };
18268
+ supplier_contacts: {
18269
+ Row: {
18270
+ created_at: string;
18271
+ email: string | null;
18272
+ id: string;
18273
+ is_primary: boolean;
18274
+ name: string;
18275
+ phone: string | null;
18276
+ role: string | null;
18277
+ supplier_id: string;
18278
+ updated_at: string;
18279
+ };
18280
+ Insert: {
18281
+ created_at?: string;
18282
+ email?: string | null;
18283
+ id?: string;
18284
+ is_primary?: boolean;
18285
+ name: string;
18286
+ phone?: string | null;
18287
+ role?: string | null;
18288
+ supplier_id: string;
18289
+ updated_at?: string;
18290
+ };
18291
+ Update: {
18292
+ created_at?: string;
18293
+ email?: string | null;
18294
+ id?: string;
18295
+ is_primary?: boolean;
18296
+ name?: string;
18297
+ phone?: string | null;
18298
+ role?: string | null;
18299
+ supplier_id?: string;
18300
+ updated_at?: string;
18301
+ };
18302
+ Relationships: [{
18303
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
18304
+ columns: ["supplier_id"];
18305
+ isOneToOne: false;
18306
+ referencedRelation: "suppliers";
18307
+ referencedColumns: ["id"];
18308
+ }];
18309
+ };
18310
+ supplier_price_history: {
18311
+ Row: {
18312
+ created_at: string;
18313
+ id: string;
18314
+ new_price_cents: number;
18315
+ old_price_cents: number | null;
18316
+ price_list_id: string | null;
18317
+ supplier_id: string | null;
18318
+ supplier_product_id: string;
18319
+ };
18320
+ Insert: {
18321
+ created_at?: string;
18322
+ id?: string;
18323
+ new_price_cents: number;
18324
+ old_price_cents?: number | null;
18325
+ price_list_id?: string | null;
18326
+ supplier_id?: string | null;
18327
+ supplier_product_id: string;
18328
+ };
18329
+ Update: {
18330
+ created_at?: string;
18331
+ id?: string;
18332
+ new_price_cents?: number;
18333
+ old_price_cents?: number | null;
18334
+ price_list_id?: string | null;
18335
+ supplier_id?: string | null;
18336
+ supplier_product_id?: string;
18337
+ };
18338
+ Relationships: [{
18339
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
18340
+ columns: ["price_list_id"];
18341
+ isOneToOne: false;
18342
+ referencedRelation: "price_lists";
18343
+ referencedColumns: ["id"];
18344
+ }, {
18345
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
18346
+ columns: ["supplier_product_id"];
18347
+ isOneToOne: false;
18348
+ referencedRelation: "supplier_products";
18349
+ referencedColumns: ["id"];
18350
+ }];
18351
+ };
18352
+ supplier_price_list_mappings: {
18353
+ Row: {
18354
+ column_map: import("../integrations/supabase/types").Json;
18355
+ created_at: string;
18356
+ deactivate_missing: boolean;
18357
+ decimal_separator: string;
18358
+ expected_headers: string[];
18359
+ extract_pot_from_name: boolean;
18360
+ header_row: number;
18361
+ id: string;
18362
+ max_error_ratio: number;
18363
+ price_is_cents: boolean;
18364
+ sheet_name: string | null;
18365
+ supplier_id: string;
18366
+ updated_at: string;
18367
+ };
18368
+ Insert: {
18369
+ column_map?: import("../integrations/supabase/types").Json;
18370
+ created_at?: string;
18371
+ deactivate_missing?: boolean;
18372
+ decimal_separator?: string;
18373
+ expected_headers?: string[];
18374
+ extract_pot_from_name?: boolean;
18375
+ header_row?: number;
18376
+ id?: string;
18377
+ max_error_ratio?: number;
18378
+ price_is_cents?: boolean;
18379
+ sheet_name?: string | null;
18380
+ supplier_id: string;
18381
+ updated_at?: string;
18382
+ };
18383
+ Update: {
18384
+ column_map?: import("../integrations/supabase/types").Json;
18385
+ created_at?: string;
18386
+ deactivate_missing?: boolean;
18387
+ decimal_separator?: string;
18388
+ expected_headers?: string[];
18389
+ extract_pot_from_name?: boolean;
18390
+ header_row?: number;
18391
+ id?: string;
18392
+ max_error_ratio?: number;
18393
+ price_is_cents?: boolean;
18394
+ sheet_name?: string | null;
18395
+ supplier_id?: string;
18396
+ updated_at?: string;
18397
+ };
18398
+ Relationships: [{
18399
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
18400
+ columns: ["supplier_id"];
18401
+ isOneToOne: true;
18402
+ referencedRelation: "suppliers";
18403
+ referencedColumns: ["id"];
18404
+ }];
18405
+ };
17350
18406
  supplier_products: {
17351
18407
  Row: {
17352
18408
  article_number: string | null;
18409
+ available_quantity: number;
17353
18410
  created_at: string;
18411
+ height: string | null;
17354
18412
  id: string;
18413
+ is_active: boolean;
18414
+ min_order: number;
17355
18415
  name: string;
17356
18416
  notes: string | null;
18417
+ order_unit: number;
17357
18418
  pot_size: string | null;
17358
18419
  price: number | null;
18420
+ price_cents: number;
18421
+ quality: string | null;
17359
18422
  quantity: number | null;
17360
18423
  supplier_id: string;
17361
18424
  unit: string;
@@ -17363,12 +18426,19 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
17363
18426
  };
17364
18427
  Insert: {
17365
18428
  article_number?: string | null;
18429
+ available_quantity?: number;
17366
18430
  created_at?: string;
18431
+ height?: string | null;
17367
18432
  id?: string;
18433
+ is_active?: boolean;
18434
+ min_order?: number;
17368
18435
  name: string;
17369
18436
  notes?: string | null;
18437
+ order_unit?: number;
17370
18438
  pot_size?: string | null;
17371
18439
  price?: number | null;
18440
+ price_cents?: number;
18441
+ quality?: string | null;
17372
18442
  quantity?: number | null;
17373
18443
  supplier_id: string;
17374
18444
  unit?: string;
@@ -17376,12 +18446,19 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
17376
18446
  };
17377
18447
  Update: {
17378
18448
  article_number?: string | null;
18449
+ available_quantity?: number;
17379
18450
  created_at?: string;
18451
+ height?: string | null;
17380
18452
  id?: string;
18453
+ is_active?: boolean;
18454
+ min_order?: number;
17381
18455
  name?: string;
17382
18456
  notes?: string | null;
18457
+ order_unit?: number;
17383
18458
  pot_size?: string | null;
17384
18459
  price?: number | null;
18460
+ price_cents?: number;
18461
+ quality?: string | null;
17385
18462
  quantity?: number | null;
17386
18463
  supplier_id?: string;
17387
18464
  unit?: string;
@@ -17398,6 +18475,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
17398
18475
  suppliers: {
17399
18476
  Row: {
17400
18477
  address: string | null;
18478
+ category: string | null;
17401
18479
  column_mappings: import("../integrations/supabase/types").Json | null;
17402
18480
  contact_person: string | null;
17403
18481
  created_at: string;
@@ -17405,13 +18483,24 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
17405
18483
  email: string | null;
17406
18484
  id: string;
17407
18485
  imported_file_name: string | null;
18486
+ is_preferred: boolean;
18487
+ kvk_number: string | null;
18488
+ lead_time_days: number | null;
18489
+ min_order_amount_cents: number;
17408
18490
  name: string;
17409
18491
  notes: string | null;
18492
+ order_days: string[];
18493
+ order_email: string | null;
18494
+ payment_terms_days: number | null;
17410
18495
  phone: string | null;
18496
+ status: string;
17411
18497
  updated_at: string;
18498
+ vat_number: string | null;
18499
+ website: string | null;
17412
18500
  };
17413
18501
  Insert: {
17414
18502
  address?: string | null;
18503
+ category?: string | null;
17415
18504
  column_mappings?: import("../integrations/supabase/types").Json | null;
17416
18505
  contact_person?: string | null;
17417
18506
  created_at?: string;
@@ -17419,13 +18508,24 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
17419
18508
  email?: string | null;
17420
18509
  id?: string;
17421
18510
  imported_file_name?: string | null;
18511
+ is_preferred?: boolean;
18512
+ kvk_number?: string | null;
18513
+ lead_time_days?: number | null;
18514
+ min_order_amount_cents?: number;
17422
18515
  name: string;
17423
18516
  notes?: string | null;
18517
+ order_days?: string[];
18518
+ order_email?: string | null;
18519
+ payment_terms_days?: number | null;
17424
18520
  phone?: string | null;
18521
+ status?: string;
17425
18522
  updated_at?: string;
18523
+ vat_number?: string | null;
18524
+ website?: string | null;
17426
18525
  };
17427
18526
  Update: {
17428
18527
  address?: string | null;
18528
+ category?: string | null;
17429
18529
  column_mappings?: import("../integrations/supabase/types").Json | null;
17430
18530
  contact_person?: string | null;
17431
18531
  created_at?: string;
@@ -17433,10 +18533,20 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
17433
18533
  email?: string | null;
17434
18534
  id?: string;
17435
18535
  imported_file_name?: string | null;
18536
+ is_preferred?: boolean;
18537
+ kvk_number?: string | null;
18538
+ lead_time_days?: number | null;
18539
+ min_order_amount_cents?: number;
17436
18540
  name?: string;
17437
18541
  notes?: string | null;
18542
+ order_days?: string[];
18543
+ order_email?: string | null;
18544
+ payment_terms_days?: number | null;
17438
18545
  phone?: string | null;
18546
+ status?: string;
17439
18547
  updated_at?: string;
18548
+ vat_number?: string | null;
18549
+ website?: string | null;
17440
18550
  };
17441
18551
  Relationships: [];
17442
18552
  };
@@ -18438,11 +19548,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18438
19548
  auto_invoice_trigger_statuses: string[];
18439
19549
  created_at: string;
18440
19550
  debtor_gl_account: string;
19551
+ default_article_code: string | null;
18441
19552
  default_credit_invoice_type: string | null;
18442
19553
  default_gl_account: string;
18443
19554
  default_invoice_type: string;
18444
19555
  default_payment_term_days: number;
18445
19556
  default_vat_code: string;
19557
+ email_purpose: string | null;
18446
19558
  home_country_code: string;
18447
19559
  invoice_enabled_ao: boolean;
18448
19560
  invoice_enabled_fo: boolean;
@@ -18464,11 +19576,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18464
19576
  auto_invoice_trigger_statuses?: string[];
18465
19577
  created_at?: string;
18466
19578
  debtor_gl_account?: string;
19579
+ default_article_code?: string | null;
18467
19580
  default_credit_invoice_type?: string | null;
18468
19581
  default_gl_account?: string;
18469
19582
  default_invoice_type?: string;
18470
19583
  default_payment_term_days?: number;
18471
19584
  default_vat_code?: string;
19585
+ email_purpose?: string | null;
18472
19586
  home_country_code?: string;
18473
19587
  invoice_enabled_ao?: boolean;
18474
19588
  invoice_enabled_fo?: boolean;
@@ -18490,11 +19604,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
18490
19604
  auto_invoice_trigger_statuses?: string[];
18491
19605
  created_at?: string;
18492
19606
  debtor_gl_account?: string;
19607
+ default_article_code?: string | null;
18493
19608
  default_credit_invoice_type?: string | null;
18494
19609
  default_gl_account?: string;
18495
19610
  default_invoice_type?: string;
18496
19611
  default_payment_term_days?: number;
18497
19612
  default_vat_code?: string;
19613
+ email_purpose?: string | null;
18498
19614
  home_country_code?: string;
18499
19615
  invoice_enabled_ao?: boolean;
18500
19616
  invoice_enabled_fo?: boolean;
@@ -21649,6 +22765,15 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21649
22765
  Args: never;
21650
22766
  Returns: boolean;
21651
22767
  };
22768
+ cancel_open_print_jobs: {
22769
+ Args: {
22770
+ _cutoff: string;
22771
+ };
22772
+ Returns: {
22773
+ extern_job_id: string;
22774
+ id: string;
22775
+ }[];
22776
+ };
21652
22777
  check_offer_product_available_stock: {
21653
22778
  Args: {
21654
22779
  p_campaign_product_id: string;
@@ -22811,6 +23936,27 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22811
23936
  Args: never;
22812
23937
  Returns: boolean;
22813
23938
  };
23939
+ inkoop_apply_price_list: {
23940
+ Args: {
23941
+ _price_list_id: string;
23942
+ _rows: import("../integrations/supabase/types").Json;
23943
+ };
23944
+ Returns: import("../integrations/supabase/types").Json;
23945
+ };
23946
+ inkoop_next_order_number: {
23947
+ Args: never;
23948
+ Returns: string;
23949
+ };
23950
+ inkoop_send_order: {
23951
+ Args: {
23952
+ _order_id: string;
23953
+ };
23954
+ Returns: {
23955
+ outbox_id: string;
23956
+ supplier_name: string;
23957
+ to_address: string;
23958
+ }[];
23959
+ };
22814
23960
  instructie_get: {
22815
23961
  Args: {
22816
23962
  _sleutel: string;
@@ -23187,6 +24333,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23187
24333
  };
23188
24334
  Returns: string;
23189
24335
  };
24336
+ logistics_cart_checkin_at: {
24337
+ Args: {
24338
+ p_cart_id: string;
24339
+ };
24340
+ Returns: string;
24341
+ };
23190
24342
  logistics_cart_handled: {
23191
24343
  Args: {
23192
24344
  p_cart_index: number;
@@ -23220,10 +24372,22 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23220
24372
  task_status: string;
23221
24373
  }[];
23222
24374
  };
24375
+ logistics_cart_is_full: {
24376
+ Args: {
24377
+ p_cart_id: string;
24378
+ };
24379
+ Returns: boolean;
24380
+ };
23223
24381
  logistics_cart_layout_method: {
23224
24382
  Args: never;
23225
24383
  Returns: import("../integrations/supabase/types").Json;
23226
24384
  };
24385
+ logistics_cart_order_refs: {
24386
+ Args: {
24387
+ p_cart_id: string;
24388
+ };
24389
+ Returns: string[];
24390
+ };
23227
24391
  logistics_cart_plan_overview: {
23228
24392
  Args: {
23229
24393
  p_days?: number;
@@ -23243,6 +24407,24 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23243
24407
  };
23244
24408
  Returns: import("../integrations/supabase/types").Json;
23245
24409
  };
24410
+ logistics_cart_plan_status_core: {
24411
+ Args: {
24412
+ p_ref: string;
24413
+ };
24414
+ Returns: import("../integrations/supabase/types").Json;
24415
+ };
24416
+ logistics_cart_release_reason: {
24417
+ Args: {
24418
+ p_cart_id: string;
24419
+ };
24420
+ Returns: string;
24421
+ };
24422
+ logistics_cart_released: {
24423
+ Args: {
24424
+ p_cart_id: string;
24425
+ };
24426
+ Returns: boolean;
24427
+ };
23246
24428
  logistics_cart_seq: {
23247
24429
  Args: {
23248
24430
  p_order_uuid?: string;
@@ -23293,6 +24475,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23293
24475
  unit_ref: string;
23294
24476
  }[];
23295
24477
  };
24478
+ logistics_carts_per_print: {
24479
+ Args: never;
24480
+ Returns: number;
24481
+ };
23296
24482
  logistics_check_order_allowed: {
23297
24483
  Args: {
23298
24484
  p_lines: import("../integrations/supabase/types").Json;
@@ -23396,6 +24582,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23396
24582
  isSetofReturn: false;
23397
24583
  };
23398
24584
  };
24585
+ logistics_cleanup_orphan_print_jobs: {
24586
+ Args: never;
24587
+ Returns: import("../integrations/supabase/types").Json;
24588
+ };
23399
24589
  logistics_complete_task: {
23400
24590
  Args: {
23401
24591
  p_result?: import("../integrations/supabase/types").Json;
@@ -23458,6 +24648,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23458
24648
  station_carts: number;
23459
24649
  }[];
23460
24650
  };
24651
+ logistics_control_complete_cart: {
24652
+ Args: {
24653
+ p_cart_id: string;
24654
+ };
24655
+ Returns: number;
24656
+ };
23461
24657
  logistics_control_scan_approve: {
23462
24658
  Args: {
23463
24659
  p_allow_reprint?: boolean;
@@ -23537,6 +24733,15 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23537
24733
  Args: never;
23538
24734
  Returns: import("../integrations/supabase/types").Json;
23539
24735
  };
24736
+ logistics_day_windows: {
24737
+ Args: {
24738
+ p_day: string;
24739
+ };
24740
+ Returns: {
24741
+ win_end: string;
24742
+ win_start: string;
24743
+ }[];
24744
+ };
23540
24745
  logistics_delay_customer_email: {
23541
24746
  Args: {
23542
24747
  p_customer: string;
@@ -23604,6 +24809,17 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23604
24809
  };
23605
24810
  Returns: import("../integrations/supabase/types").Json;
23606
24811
  };
24812
+ logistics_enqueue_shipping_note_with_slip: {
24813
+ Args: {
24814
+ _cart_id: string;
24815
+ _is_herprint: boolean;
24816
+ _printer_id: string;
24817
+ _queue_item_id: string;
24818
+ _session_id: string;
24819
+ _slip_job_id: string;
24820
+ };
24821
+ Returns: string;
24822
+ };
23607
24823
  logistics_enqueue_sticker_with_slip: {
23608
24824
  Args: {
23609
24825
  _cart_id: string;
@@ -23621,6 +24837,20 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23621
24837
  };
23622
24838
  Returns: string;
23623
24839
  };
24840
+ logistics_ensure_pick_data: {
24841
+ Args: {
24842
+ p_event_id?: string;
24843
+ p_missing?: import("../integrations/supabase/types").Json;
24844
+ p_ref: string;
24845
+ };
24846
+ Returns: import("../integrations/supabase/types").Json;
24847
+ };
24848
+ logistics_ensure_shipping_notes: {
24849
+ Args: {
24850
+ p_limit?: number;
24851
+ };
24852
+ Returns: import("../integrations/supabase/types").Json;
24853
+ };
23624
24854
  logistics_fail_task: {
23625
24855
  Args: {
23626
24856
  p_error: string;
@@ -23666,6 +24896,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23666
24896
  isSetofReturn: false;
23667
24897
  };
23668
24898
  };
24899
+ logistics_fix_wrong_shipping_notes: {
24900
+ Args: never;
24901
+ Returns: import("../integrations/supabase/types").Json;
24902
+ };
23669
24903
  logistics_floriday_cart_plan: {
23670
24904
  Args: {
23671
24905
  p_order_id: string;
@@ -23693,6 +24927,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23693
24927
  revision: number;
23694
24928
  }[];
23695
24929
  };
24930
+ logistics_floriday_delivery_note_create_enabled: {
24931
+ Args: never;
24932
+ Returns: boolean;
24933
+ };
23696
24934
  logistics_floriday_finish_push: {
23697
24935
  Args: {
23698
24936
  _error?: string;
@@ -23792,6 +25030,16 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23792
25030
  Args: never;
23793
25031
  Returns: boolean;
23794
25032
  };
25033
+ logistics_floriday_stock_updates_enabled: {
25034
+ Args: never;
25035
+ Returns: boolean;
25036
+ };
25037
+ logistics_floriday_write_allowed: {
25038
+ Args: {
25039
+ _action: string;
25040
+ };
25041
+ Returns: boolean;
25042
+ };
23795
25043
  logistics_fulfill_barcode_requests: {
23796
25044
  Args: {
23797
25045
  p_limit?: number;
@@ -23834,6 +25082,22 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23834
25082
  };
23835
25083
  Returns: number;
23836
25084
  };
25085
+ logistics_merge_floriday_lines: {
25086
+ Args: {
25087
+ p_order_id: string;
25088
+ };
25089
+ Returns: string;
25090
+ };
25091
+ logistics_merge_lines_enabled: {
25092
+ Args: never;
25093
+ Returns: boolean;
25094
+ };
25095
+ logistics_merge_partial_carts: {
25096
+ Args: {
25097
+ p_limit?: number;
25098
+ };
25099
+ Returns: import("../integrations/supabase/types").Json;
25100
+ };
23837
25101
  logistics_next_workday_date: {
23838
25102
  Args: {
23839
25103
  p_date: string;
@@ -23860,6 +25124,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23860
25124
  };
23861
25125
  Returns: string;
23862
25126
  };
25127
+ logistics_opening_timezone: {
25128
+ Args: never;
25129
+ Returns: string;
25130
+ };
23863
25131
  logistics_order_cart_count: {
23864
25132
  Args: {
23865
25133
  p_order_ref: string;
@@ -23879,6 +25147,18 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23879
25147
  };
23880
25148
  Returns: boolean;
23881
25149
  };
25150
+ logistics_order_merge_key: {
25151
+ Args: {
25152
+ p_group_key: string;
25153
+ };
25154
+ Returns: string;
25155
+ };
25156
+ logistics_order_mergeable: {
25157
+ Args: {
25158
+ p_order_id: string;
25159
+ };
25160
+ Returns: boolean;
25161
+ };
23882
25162
  logistics_order_overview: {
23883
25163
  Args: {
23884
25164
  p_from?: string;
@@ -23916,6 +25196,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23916
25196
  };
23917
25197
  Returns: string;
23918
25198
  };
25199
+ logistics_payload_is_floriday: {
25200
+ Args: {
25201
+ _payload: import("../integrations/supabase/types").Json;
25202
+ };
25203
+ Returns: boolean;
25204
+ };
23919
25205
  logistics_pick_agenda: {
23920
25206
  Args: {
23921
25207
  p_from?: string;
@@ -23944,6 +25230,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23944
25230
  Args: never;
23945
25231
  Returns: import("../integrations/supabase/types").Json;
23946
25232
  };
25233
+ logistics_pick_partial_mode: {
25234
+ Args: never;
25235
+ Returns: string;
25236
+ };
23947
25237
  logistics_pick_start_estimate: {
23948
25238
  Args: {
23949
25239
  p_order: import("../integrations/supabase/types").Json;
@@ -24034,6 +25324,20 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
24034
25324
  Args: never;
24035
25325
  Returns: undefined;
24036
25326
  };
25327
+ logistics_plan_progress: {
25328
+ Args: {
25329
+ p_refs: string[];
25330
+ };
25331
+ Returns: {
25332
+ cart_plan_ready: boolean;
25333
+ cart_plan_reason: string;
25334
+ cart_plan_released: boolean;
25335
+ plan_progress: number;
25336
+ plan_state: string;
25337
+ plan_state_since: string;
25338
+ unit_ref: string;
25339
+ }[];
25340
+ };
24037
25341
  logistics_plan_prune: {
24038
25342
  Args: never;
24039
25343
  Returns: number;
@@ -24055,6 +25359,18 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
24055
25359
  };
24056
25360
  Returns: number;
24057
25361
  };
25362
+ logistics_plan_state_for: {
25363
+ Args: {
25364
+ p_ref: string;
25365
+ };
25366
+ Returns: import("../integrations/supabase/types").Json;
25367
+ };
25368
+ logistics_prepare_pick_documents: {
25369
+ Args: {
25370
+ p_limit?: number;
25371
+ };
25372
+ Returns: import("../integrations/supabase/types").Json;
25373
+ };
24058
25374
  logistics_prune_buffer_member_queue: {
24059
25375
  Args: never;
24060
25376
  Returns: number;
@@ -24095,18 +25411,36 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
24095
25411
  Args: never;
24096
25412
  Returns: import("../integrations/supabase/types").Json;
24097
25413
  };
25414
+ logistics_refresh_pick_queue_status: {
25415
+ Args: {
25416
+ p_ref: string;
25417
+ };
25418
+ Returns: number;
25419
+ };
24098
25420
  logistics_refresh_pickup_moments: {
24099
25421
  Args: {
24100
25422
  p_weeks?: number;
24101
25423
  };
24102
25424
  Returns: import("../integrations/supabase/types").Json;
24103
25425
  };
25426
+ logistics_refresh_plan_state: {
25427
+ Args: {
25428
+ p_limit?: number;
25429
+ };
25430
+ Returns: import("../integrations/supabase/types").Json;
25431
+ };
24104
25432
  logistics_replan_all: {
24105
25433
  Args: {
24106
25434
  p_reason?: string;
24107
25435
  };
24108
25436
  Returns: import("../integrations/supabase/types").Json;
24109
25437
  };
25438
+ logistics_replan_all_force: {
25439
+ Args: {
25440
+ p_reason?: string;
25441
+ };
25442
+ Returns: import("../integrations/supabase/types").Json;
25443
+ };
24110
25444
  logistics_report_delay: {
24111
25445
  Args: {
24112
25446
  p_expected_date?: string;
@@ -24251,6 +25585,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
24251
25585
  };
24252
25586
  Returns: string;
24253
25587
  };
25588
+ logistics_shipping_note_follows_slip: {
25589
+ Args: never;
25590
+ Returns: boolean;
25591
+ };
24254
25592
  logistics_shipping_note_from_barcode: {
24255
25593
  Args: {
24256
25594
  p_allow_reprint?: boolean;
@@ -24259,10 +25597,86 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
24259
25597
  };
24260
25598
  Returns: import("../integrations/supabase/types").Json;
24261
25599
  };
25600
+ logistics_shipping_note_job_for_slip: {
25601
+ Args: {
25602
+ _slip_job_id: string;
25603
+ };
25604
+ Returns: string;
25605
+ };
25606
+ logistics_shipping_notes_wake_all: {
25607
+ Args: never;
25608
+ Returns: import("../integrations/supabase/types").Json;
25609
+ };
25610
+ logistics_slip_is_floriday: {
25611
+ Args: {
25612
+ _slip_job_id: string;
25613
+ };
25614
+ Returns: boolean;
25615
+ };
25616
+ logistics_slip_note_claim: {
25617
+ Args: {
25618
+ _lease_seconds?: number;
25619
+ _limit?: number;
25620
+ };
25621
+ Returns: {
25622
+ attempts: number;
25623
+ batch_key: string | null;
25624
+ cart_id: string | null;
25625
+ created_at: string;
25626
+ error: string | null;
25627
+ error_code: string | null;
25628
+ fulfillment_order_id: string | null;
25629
+ id: string;
25630
+ locked_until: string | null;
25631
+ next_attempt_at: string | null;
25632
+ order_id: string | null;
25633
+ order_number: string | null;
25634
+ print_job_id: string | null;
25635
+ printer_id: string | null;
25636
+ retry_class: string | null;
25637
+ slip_job_id: string;
25638
+ status: string;
25639
+ updated_at: string;
25640
+ }[];
25641
+ SetofOptions: {
25642
+ from: "*";
25643
+ to: "logistics_slip_shipping_note";
25644
+ isOneToOne: false;
25645
+ isSetofReturn: true;
25646
+ };
25647
+ };
25648
+ logistics_slip_note_finish: {
25649
+ Args: {
25650
+ _error?: string;
25651
+ _error_code?: string;
25652
+ _fulfillment_order_id?: string;
25653
+ _id: string;
25654
+ _ok: boolean;
25655
+ _print_job_id?: string;
25656
+ _status?: string;
25657
+ };
25658
+ Returns: undefined;
25659
+ };
25660
+ logistics_slip_note_keep_waiting: {
25661
+ Args: {
25662
+ _class?: string;
25663
+ _id: string;
25664
+ _reason: string;
25665
+ };
25666
+ Returns: undefined;
25667
+ };
24262
25668
  logistics_sticker_follows_slip: {
24263
25669
  Args: never;
24264
25670
  Returns: boolean;
24265
25671
  };
25672
+ logistics_subtract_working_minutes: {
25673
+ Args: {
25674
+ p_deadline: string;
25675
+ p_max_workdays?: number;
25676
+ p_minutes: number;
25677
+ };
25678
+ Returns: import("../integrations/supabase/types").Json;
25679
+ };
24266
25680
  logistics_supersede_stale_tasks: {
24267
25681
  Args: {
24268
25682
  p_keep: string[];
@@ -24299,6 +25713,109 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
24299
25713
  Args: never;
24300
25714
  Returns: string;
24301
25715
  };
25716
+ logistics_timezone_options: {
25717
+ Args: never;
25718
+ Returns: {
25719
+ name: string;
25720
+ }[];
25721
+ };
25722
+ logistics_trace: {
25723
+ Args: {
25724
+ p: import("../integrations/supabase/types").Json;
25725
+ };
25726
+ Returns: string;
25727
+ };
25728
+ logistics_trace_all_orders: {
25729
+ Args: {
25730
+ p_limit?: number;
25731
+ p_search?: string;
25732
+ };
25733
+ Returns: import("../integrations/supabase/types").Json;
25734
+ };
25735
+ logistics_trace_batch: {
25736
+ Args: {
25737
+ p: import("../integrations/supabase/types").Json;
25738
+ };
25739
+ Returns: number;
25740
+ };
25741
+ logistics_trace_node: {
25742
+ Args: {
25743
+ p_op?: string;
25744
+ p_status?: string;
25745
+ p_table: string;
25746
+ };
25747
+ Returns: string;
25748
+ };
25749
+ logistics_trace_order_overview: {
25750
+ Args: {
25751
+ p_error_class?: string;
25752
+ p_limit?: number;
25753
+ p_search?: string;
25754
+ p_since?: string;
25755
+ p_source?: string;
25756
+ p_state?: string;
25757
+ p_step?: string;
25758
+ };
25759
+ Returns: import("../integrations/supabase/types").Json;
25760
+ };
25761
+ logistics_trace_order_state: {
25762
+ Args: {
25763
+ p_order_ref: string;
25764
+ };
25765
+ Returns: import("../integrations/supabase/types").Json;
25766
+ };
25767
+ logistics_trace_order_step: {
25768
+ Args: {
25769
+ p_class?: string;
25770
+ p_decision?: string;
25771
+ p_error?: string;
25772
+ p_next_step?: string;
25773
+ p_node: string;
25774
+ p_order_id: string;
25775
+ p_reason?: string;
25776
+ p_status: string;
25777
+ p_step: string;
25778
+ };
25779
+ Returns: undefined;
25780
+ };
25781
+ logistics_trace_orders: {
25782
+ Args: {
25783
+ p_limit?: number;
25784
+ p_search?: string;
25785
+ p_since?: string;
25786
+ p_status?: string;
25787
+ };
25788
+ Returns: import("../integrations/supabase/types").Json;
25789
+ };
25790
+ logistics_trace_redact: {
25791
+ Args: {
25792
+ p: import("../integrations/supabase/types").Json;
25793
+ };
25794
+ Returns: import("../integrations/supabase/types").Json;
25795
+ };
25796
+ logistics_trace_timeline: {
25797
+ Args: {
25798
+ p_limit?: number;
25799
+ p_order_ref: string;
25800
+ };
25801
+ Returns: import("../integrations/supabase/types").Json;
25802
+ };
25803
+ logistics_trace_version_events: {
25804
+ Args: {
25805
+ p_from?: string;
25806
+ p_limit?: number;
25807
+ p_order_ref: string;
25808
+ p_to?: string;
25809
+ p_version_id: string;
25810
+ };
25811
+ Returns: import("../integrations/supabase/types").Json;
25812
+ };
25813
+ logistics_trace_versions: {
25814
+ Args: {
25815
+ p_order_ref: string;
25816
+ };
25817
+ Returns: import("../integrations/supabase/types").Json;
25818
+ };
24302
25819
  logistics_upsert_task: {
24303
25820
  Args: {
24304
25821
  p_buffer_ref: string;
@@ -24318,6 +25835,16 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
24318
25835
  };
24319
25836
  Returns: string;
24320
25837
  };
25838
+ logistics_valid_timezone: {
25839
+ Args: {
25840
+ _tz: string;
25841
+ };
25842
+ Returns: boolean;
25843
+ };
25844
+ logistics_working_hours_status: {
25845
+ Args: never;
25846
+ Returns: import("../integrations/supabase/types").Json;
25847
+ };
24321
25848
  logistics_write_buffer_layer_positions: {
24322
25849
  Args: {
24323
25850
  p_buffer_id: string;
@@ -25330,6 +26857,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
25330
26857
  };
25331
26858
  Returns: undefined;
25332
26859
  };
26860
+ prune_floriday_api_log: {
26861
+ Args: never;
26862
+ Returns: number;
26863
+ };
25333
26864
  quote_create_from_source: {
25334
26865
  Args: {
25335
26866
  _payload?: import("../integrations/supabase/types").Json;
@@ -25763,6 +27294,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
25763
27294
  };
25764
27295
  Returns: number;
25765
27296
  };
27297
+ schedule_floriday_catalog_prices_sync: {
27298
+ Args: {
27299
+ p_apikey: string;
27300
+ p_url: string;
27301
+ };
27302
+ Returns: number;
27303
+ };
25766
27304
  schedule_floriday_clock_presales_sync: {
25767
27305
  Args: {
25768
27306
  p_apikey: string;
@@ -26063,6 +27601,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
26063
27601
  };
26064
27602
  Returns: undefined;
26065
27603
  };
27604
+ sync_floriday_prices_into_price_groups: {
27605
+ Args: never;
27606
+ Returns: number;
27607
+ };
26066
27608
  sync_layer_stock: {
26067
27609
  Args: {
26068
27610
  p_product_id: string;
@@ -26195,6 +27737,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
26195
27737
  Args: never;
26196
27738
  Returns: string;
26197
27739
  };
27740
+ voorraad_cleanup_old_rows: {
27741
+ Args: never;
27742
+ Returns: import("../integrations/supabase/types").Json;
27743
+ };
26198
27744
  wake_print_queue: {
26199
27745
  Args: {
26200
27746
  _min_interval_ms?: number;
@@ -28096,6 +29642,42 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28096
29642
  };
28097
29643
  Relationships: [];
28098
29644
  };
29645
+ customer_assortment_items: {
29646
+ Row: {
29647
+ created_at: string;
29648
+ customer_key: string;
29649
+ id: string;
29650
+ in_assortment: boolean;
29651
+ manual_override: boolean;
29652
+ source: string;
29653
+ synced_at: string | null;
29654
+ trade_item_key: string;
29655
+ updated_at: string;
29656
+ };
29657
+ Insert: {
29658
+ created_at?: string;
29659
+ customer_key: string;
29660
+ id?: string;
29661
+ in_assortment?: boolean;
29662
+ manual_override?: boolean;
29663
+ source?: string;
29664
+ synced_at?: string | null;
29665
+ trade_item_key: string;
29666
+ updated_at?: string;
29667
+ };
29668
+ Update: {
29669
+ created_at?: string;
29670
+ customer_key?: string;
29671
+ id?: string;
29672
+ in_assortment?: boolean;
29673
+ manual_override?: boolean;
29674
+ source?: string;
29675
+ synced_at?: string | null;
29676
+ trade_item_key?: string;
29677
+ updated_at?: string;
29678
+ };
29679
+ Relationships: [];
29680
+ };
28099
29681
  customer_audit_log: {
28100
29682
  Row: {
28101
29683
  action: string;
@@ -28498,6 +30080,63 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28498
30080
  };
28499
30081
  Relationships: [];
28500
30082
  };
30083
+ customer_product_stickers: {
30084
+ Row: {
30085
+ content_hash: string | null;
30086
+ created_at: string;
30087
+ customer_key: string;
30088
+ file_name: string;
30089
+ file_path: string;
30090
+ file_size: number | null;
30091
+ floriday_sticker_id: string | null;
30092
+ floriday_synced_at: string | null;
30093
+ height_mm: number | null;
30094
+ id: string;
30095
+ mime_type: string | null;
30096
+ source: string;
30097
+ trade_item_key: string;
30098
+ updated_at: string;
30099
+ uploaded_by: string | null;
30100
+ width_mm: number | null;
30101
+ };
30102
+ Insert: {
30103
+ content_hash?: string | null;
30104
+ created_at?: string;
30105
+ customer_key: string;
30106
+ file_name: string;
30107
+ file_path: string;
30108
+ file_size?: number | null;
30109
+ floriday_sticker_id?: string | null;
30110
+ floriday_synced_at?: string | null;
30111
+ height_mm?: number | null;
30112
+ id?: string;
30113
+ mime_type?: string | null;
30114
+ source?: string;
30115
+ trade_item_key: string;
30116
+ updated_at?: string;
30117
+ uploaded_by?: string | null;
30118
+ width_mm?: number | null;
30119
+ };
30120
+ Update: {
30121
+ content_hash?: string | null;
30122
+ created_at?: string;
30123
+ customer_key?: string;
30124
+ file_name?: string;
30125
+ file_path?: string;
30126
+ file_size?: number | null;
30127
+ floriday_sticker_id?: string | null;
30128
+ floriday_synced_at?: string | null;
30129
+ height_mm?: number | null;
30130
+ id?: string;
30131
+ mime_type?: string | null;
30132
+ source?: string;
30133
+ trade_item_key?: string;
30134
+ updated_at?: string;
30135
+ uploaded_by?: string | null;
30136
+ width_mm?: number | null;
30137
+ };
30138
+ Relationships: [];
30139
+ };
28501
30140
  customer_selected_assortment: {
28502
30141
  Row: {
28503
30142
  article_number: string | null;
@@ -28546,6 +30185,30 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
28546
30185
  referencedColumns: ["id"];
28547
30186
  }];
28548
30187
  };
30188
+ customer_sticker_settings: {
30189
+ Row: {
30190
+ created_at: string;
30191
+ customer_key: string;
30192
+ height_mm: number;
30193
+ updated_at: string;
30194
+ width_mm: number;
30195
+ };
30196
+ Insert: {
30197
+ created_at?: string;
30198
+ customer_key: string;
30199
+ height_mm?: number;
30200
+ updated_at?: string;
30201
+ width_mm?: number;
30202
+ };
30203
+ Update: {
30204
+ created_at?: string;
30205
+ customer_key?: string;
30206
+ height_mm?: number;
30207
+ updated_at?: string;
30208
+ width_mm?: number;
30209
+ };
30210
+ Relationships: [];
30211
+ };
28549
30212
  customer_trade_settings: {
28550
30213
  Row: {
28551
30214
  category: string;
@@ -29871,6 +31534,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29871
31534
  };
29872
31535
  email_auth_outbox: {
29873
31536
  Row: {
31537
+ attachments: import("../integrations/supabase/types").Json;
29874
31538
  attempts: number;
29875
31539
  bcc_addresses: string[];
29876
31540
  cc_addresses: string[];
@@ -29893,6 +31557,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29893
31557
  updated_at: string;
29894
31558
  };
29895
31559
  Insert: {
31560
+ attachments?: import("../integrations/supabase/types").Json;
29896
31561
  attempts?: number;
29897
31562
  bcc_addresses?: string[];
29898
31563
  cc_addresses?: string[];
@@ -29915,6 +31580,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
29915
31580
  updated_at?: string;
29916
31581
  };
29917
31582
  Update: {
31583
+ attachments?: import("../integrations/supabase/types").Json;
29918
31584
  attempts?: number;
29919
31585
  bcc_addresses?: string[];
29920
31586
  cc_addresses?: string[];
@@ -31876,6 +33542,102 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
31876
33542
  referencedColumns: ["id"];
31877
33543
  }];
31878
33544
  };
33545
+ floriday_api_log: {
33546
+ Row: {
33547
+ action: string | null;
33548
+ caller: string | null;
33549
+ connection_id: string | null;
33550
+ created_at: string;
33551
+ cursor_from: number | null;
33552
+ direction: string;
33553
+ duration_ms: number | null;
33554
+ environment: string | null;
33555
+ error: string | null;
33556
+ floriday_id: string | null;
33557
+ floriday_reference: string | null;
33558
+ http_status: number;
33559
+ id: string;
33560
+ item_count: number | null;
33561
+ kind: string | null;
33562
+ local_id: string | null;
33563
+ local_reference: string | null;
33564
+ method: string;
33565
+ module: string | null;
33566
+ ok: boolean;
33567
+ path: string;
33568
+ request: import("../integrations/supabase/types").Json | null;
33569
+ resource_type: string | null;
33570
+ response: import("../integrations/supabase/types").Json | null;
33571
+ write_log_id: string | null;
33572
+ };
33573
+ Insert: {
33574
+ action?: string | null;
33575
+ caller?: string | null;
33576
+ connection_id?: string | null;
33577
+ created_at?: string;
33578
+ cursor_from?: number | null;
33579
+ direction: string;
33580
+ duration_ms?: number | null;
33581
+ environment?: string | null;
33582
+ error?: string | null;
33583
+ floriday_id?: string | null;
33584
+ floriday_reference?: string | null;
33585
+ http_status?: number;
33586
+ id?: string;
33587
+ item_count?: number | null;
33588
+ kind?: string | null;
33589
+ local_id?: string | null;
33590
+ local_reference?: string | null;
33591
+ method: string;
33592
+ module?: string | null;
33593
+ ok?: boolean;
33594
+ path: string;
33595
+ request?: import("../integrations/supabase/types").Json | null;
33596
+ resource_type?: string | null;
33597
+ response?: import("../integrations/supabase/types").Json | null;
33598
+ write_log_id?: string | null;
33599
+ };
33600
+ Update: {
33601
+ action?: string | null;
33602
+ caller?: string | null;
33603
+ connection_id?: string | null;
33604
+ created_at?: string;
33605
+ cursor_from?: number | null;
33606
+ direction?: string;
33607
+ duration_ms?: number | null;
33608
+ environment?: string | null;
33609
+ error?: string | null;
33610
+ floriday_id?: string | null;
33611
+ floriday_reference?: string | null;
33612
+ http_status?: number;
33613
+ id?: string;
33614
+ item_count?: number | null;
33615
+ kind?: string | null;
33616
+ local_id?: string | null;
33617
+ local_reference?: string | null;
33618
+ method?: string;
33619
+ module?: string | null;
33620
+ ok?: boolean;
33621
+ path?: string;
33622
+ request?: import("../integrations/supabase/types").Json | null;
33623
+ resource_type?: string | null;
33624
+ response?: import("../integrations/supabase/types").Json | null;
33625
+ write_log_id?: string | null;
33626
+ };
33627
+ Relationships: [{
33628
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
33629
+ columns: ["connection_id"];
33630
+ isOneToOne: false;
33631
+ referencedRelation: "floriday_connections";
33632
+ referencedColumns: ["id"];
33633
+ }, {
33634
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
33635
+ columns: ["write_log_id"];
33636
+ isOneToOne: false;
33637
+ referencedRelation: "floriday_write_log";
33638
+ referencedColumns: ["id"];
33639
+ }];
33640
+ };
31879
33641
  floriday_auction_letters_cache: {
31880
33642
  Row: {
31881
33643
  auction_letter_code: string;
@@ -32083,6 +33845,84 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32083
33845
  referencedColumns: ["id"];
32084
33846
  }];
32085
33847
  };
33848
+ floriday_catalog_prices_cache: {
33849
+ Row: {
33850
+ connection_id: string;
33851
+ created_at: string;
33852
+ currency: string;
33853
+ id: string;
33854
+ is_deleted: boolean;
33855
+ price: number | null;
33856
+ price_group_id: string | null;
33857
+ price_group_name: string | null;
33858
+ price_type: string;
33859
+ raw: import("../integrations/supabase/types").Json | null;
33860
+ sales_unit: string | null;
33861
+ sequence_number: number;
33862
+ supplier_article_code: string | null;
33863
+ supply_line_id: string;
33864
+ synced_at: string;
33865
+ trade_item_id: string | null;
33866
+ updated_at: string;
33867
+ valid_from: string | null;
33868
+ valid_to: string | null;
33869
+ week: number | null;
33870
+ year: number | null;
33871
+ };
33872
+ Insert: {
33873
+ connection_id: string;
33874
+ created_at?: string;
33875
+ currency?: string;
33876
+ id?: string;
33877
+ is_deleted?: boolean;
33878
+ price?: number | null;
33879
+ price_group_id?: string | null;
33880
+ price_group_name?: string | null;
33881
+ price_type?: string;
33882
+ raw?: import("../integrations/supabase/types").Json | null;
33883
+ sales_unit?: string | null;
33884
+ sequence_number?: number;
33885
+ supplier_article_code?: string | null;
33886
+ supply_line_id: string;
33887
+ synced_at?: string;
33888
+ trade_item_id?: string | null;
33889
+ updated_at?: string;
33890
+ valid_from?: string | null;
33891
+ valid_to?: string | null;
33892
+ week?: number | null;
33893
+ year?: number | null;
33894
+ };
33895
+ Update: {
33896
+ connection_id?: string;
33897
+ created_at?: string;
33898
+ currency?: string;
33899
+ id?: string;
33900
+ is_deleted?: boolean;
33901
+ price?: number | null;
33902
+ price_group_id?: string | null;
33903
+ price_group_name?: string | null;
33904
+ price_type?: string;
33905
+ raw?: import("../integrations/supabase/types").Json | null;
33906
+ sales_unit?: string | null;
33907
+ sequence_number?: number;
33908
+ supplier_article_code?: string | null;
33909
+ supply_line_id?: string;
33910
+ synced_at?: string;
33911
+ trade_item_id?: string | null;
33912
+ updated_at?: string;
33913
+ valid_from?: string | null;
33914
+ valid_to?: string | null;
33915
+ week?: number | null;
33916
+ year?: number | null;
33917
+ };
33918
+ Relationships: [{
33919
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
33920
+ columns: ["connection_id"];
33921
+ isOneToOne: false;
33922
+ referencedRelation: "floriday_connections";
33923
+ referencedColumns: ["id"];
33924
+ }];
33925
+ };
32086
33926
  floriday_clock_presales_cache: {
32087
33927
  Row: {
32088
33928
  buyer_organization_id: string | null;
@@ -32998,6 +34838,69 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
32998
34838
  referencedColumns: ["id"];
32999
34839
  }];
33000
34840
  };
34841
+ floriday_link_templates: {
34842
+ Row: {
34843
+ created_at: string;
34844
+ floriday_url_template: string | null;
34845
+ is_active: boolean;
34846
+ label: string;
34847
+ local_url_template: string | null;
34848
+ resource_type: string;
34849
+ updated_at: string;
34850
+ };
34851
+ Insert: {
34852
+ created_at?: string;
34853
+ floriday_url_template?: string | null;
34854
+ is_active?: boolean;
34855
+ label: string;
34856
+ local_url_template?: string | null;
34857
+ resource_type: string;
34858
+ updated_at?: string;
34859
+ };
34860
+ Update: {
34861
+ created_at?: string;
34862
+ floriday_url_template?: string | null;
34863
+ is_active?: boolean;
34864
+ label?: string;
34865
+ local_url_template?: string | null;
34866
+ resource_type?: string;
34867
+ updated_at?: string;
34868
+ };
34869
+ Relationships: [];
34870
+ };
34871
+ floriday_log_retention: {
34872
+ Row: {
34873
+ created_at: string;
34874
+ direction: string | null;
34875
+ id: string;
34876
+ keep_failed_days: number | null;
34877
+ keep_ok_days: number | null;
34878
+ note: string | null;
34879
+ resource_type: string | null;
34880
+ updated_at: string;
34881
+ };
34882
+ Insert: {
34883
+ created_at?: string;
34884
+ direction?: string | null;
34885
+ id?: string;
34886
+ keep_failed_days?: number | null;
34887
+ keep_ok_days?: number | null;
34888
+ note?: string | null;
34889
+ resource_type?: string | null;
34890
+ updated_at?: string;
34891
+ };
34892
+ Update: {
34893
+ created_at?: string;
34894
+ direction?: string | null;
34895
+ id?: string;
34896
+ keep_failed_days?: number | null;
34897
+ keep_ok_days?: number | null;
34898
+ note?: string | null;
34899
+ resource_type?: string | null;
34900
+ updated_at?: string;
34901
+ };
34902
+ Relationships: [];
34903
+ };
33001
34904
  floriday_logistic_labels_cache: {
33002
34905
  Row: {
33003
34906
  byte_size: number | null;
@@ -36562,6 +38465,144 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36562
38465
  };
36563
38466
  Relationships: [];
36564
38467
  };
38468
+ logistics_opening_exceptions: {
38469
+ Row: {
38470
+ closes: string | null;
38471
+ created_at: string;
38472
+ day: string;
38473
+ id: string;
38474
+ is_closed: boolean;
38475
+ note: string | null;
38476
+ opens: string | null;
38477
+ };
38478
+ Insert: {
38479
+ closes?: string | null;
38480
+ created_at?: string;
38481
+ day: string;
38482
+ id?: string;
38483
+ is_closed?: boolean;
38484
+ note?: string | null;
38485
+ opens?: string | null;
38486
+ };
38487
+ Update: {
38488
+ closes?: string | null;
38489
+ created_at?: string;
38490
+ day?: string;
38491
+ id?: string;
38492
+ is_closed?: boolean;
38493
+ note?: string | null;
38494
+ opens?: string | null;
38495
+ };
38496
+ Relationships: [];
38497
+ };
38498
+ logistics_opening_hours: {
38499
+ Row: {
38500
+ closes: string;
38501
+ created_at: string;
38502
+ id: string;
38503
+ is_active: boolean;
38504
+ note: string | null;
38505
+ opens: string;
38506
+ weekday: number;
38507
+ };
38508
+ Insert: {
38509
+ closes: string;
38510
+ created_at?: string;
38511
+ id?: string;
38512
+ is_active?: boolean;
38513
+ note?: string | null;
38514
+ opens: string;
38515
+ weekday: number;
38516
+ };
38517
+ Update: {
38518
+ closes?: string;
38519
+ created_at?: string;
38520
+ id?: string;
38521
+ is_active?: boolean;
38522
+ note?: string | null;
38523
+ opens?: string;
38524
+ weekday?: number;
38525
+ };
38526
+ Relationships: [];
38527
+ };
38528
+ logistics_order_merges: {
38529
+ Row: {
38530
+ group_key: string;
38531
+ id: string;
38532
+ items_moved: number;
38533
+ kept_order_id: string;
38534
+ kept_order_number: string | null;
38535
+ merged_at: string;
38536
+ merged_order_id: string;
38537
+ merged_order_number: string | null;
38538
+ sales_order_id: string | null;
38539
+ };
38540
+ Insert: {
38541
+ group_key: string;
38542
+ id?: string;
38543
+ items_moved?: number;
38544
+ kept_order_id: string;
38545
+ kept_order_number?: string | null;
38546
+ merged_at?: string;
38547
+ merged_order_id: string;
38548
+ merged_order_number?: string | null;
38549
+ sales_order_id?: string | null;
38550
+ };
38551
+ Update: {
38552
+ group_key?: string;
38553
+ id?: string;
38554
+ items_moved?: number;
38555
+ kept_order_id?: string;
38556
+ kept_order_number?: string | null;
38557
+ merged_at?: string;
38558
+ merged_order_id?: string;
38559
+ merged_order_number?: string | null;
38560
+ sales_order_id?: string | null;
38561
+ };
38562
+ Relationships: [];
38563
+ };
38564
+ logistics_pick_data_requests: {
38565
+ Row: {
38566
+ actions: import("../integrations/supabase/types").Json;
38567
+ created_at: string;
38568
+ event_id: string | null;
38569
+ finished_at: string | null;
38570
+ id: string;
38571
+ missing: import("../integrations/supabase/types").Json;
38572
+ order_ref: string;
38573
+ reason: string | null;
38574
+ result: import("../integrations/supabase/types").Json | null;
38575
+ status: string;
38576
+ unit_ref: string | null;
38577
+ };
38578
+ Insert: {
38579
+ actions?: import("../integrations/supabase/types").Json;
38580
+ created_at?: string;
38581
+ event_id?: string | null;
38582
+ finished_at?: string | null;
38583
+ id?: string;
38584
+ missing?: import("../integrations/supabase/types").Json;
38585
+ order_ref: string;
38586
+ reason?: string | null;
38587
+ result?: import("../integrations/supabase/types").Json | null;
38588
+ status?: string;
38589
+ unit_ref?: string | null;
38590
+ };
38591
+ Update: {
38592
+ actions?: import("../integrations/supabase/types").Json;
38593
+ created_at?: string;
38594
+ event_id?: string | null;
38595
+ finished_at?: string | null;
38596
+ id?: string;
38597
+ missing?: import("../integrations/supabase/types").Json;
38598
+ order_ref?: string;
38599
+ reason?: string | null;
38600
+ result?: import("../integrations/supabase/types").Json | null;
38601
+ status?: string;
38602
+ unit_ref?: string | null;
38603
+ };
38604
+ Relationships: [];
38605
+ };
36565
38606
  logistics_pickup_moments: {
36566
38607
  Row: {
36567
38608
  carrier_ref: string | null;
@@ -37021,6 +39062,69 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37021
39062
  };
37022
39063
  Relationships: [];
37023
39064
  };
39065
+ logistics_slip_shipping_note: {
39066
+ Row: {
39067
+ attempts: number;
39068
+ batch_key: string | null;
39069
+ cart_id: string | null;
39070
+ created_at: string;
39071
+ error: string | null;
39072
+ error_code: string | null;
39073
+ fulfillment_order_id: string | null;
39074
+ id: string;
39075
+ locked_until: string | null;
39076
+ next_attempt_at: string | null;
39077
+ order_id: string | null;
39078
+ order_number: string | null;
39079
+ print_job_id: string | null;
39080
+ printer_id: string | null;
39081
+ retry_class: string | null;
39082
+ slip_job_id: string;
39083
+ status: string;
39084
+ updated_at: string;
39085
+ };
39086
+ Insert: {
39087
+ attempts?: number;
39088
+ batch_key?: string | null;
39089
+ cart_id?: string | null;
39090
+ created_at?: string;
39091
+ error?: string | null;
39092
+ error_code?: string | null;
39093
+ fulfillment_order_id?: string | null;
39094
+ id?: string;
39095
+ locked_until?: string | null;
39096
+ next_attempt_at?: string | null;
39097
+ order_id?: string | null;
39098
+ order_number?: string | null;
39099
+ print_job_id?: string | null;
39100
+ printer_id?: string | null;
39101
+ retry_class?: string | null;
39102
+ slip_job_id: string;
39103
+ status?: string;
39104
+ updated_at?: string;
39105
+ };
39106
+ Update: {
39107
+ attempts?: number;
39108
+ batch_key?: string | null;
39109
+ cart_id?: string | null;
39110
+ created_at?: string;
39111
+ error?: string | null;
39112
+ error_code?: string | null;
39113
+ fulfillment_order_id?: string | null;
39114
+ id?: string;
39115
+ locked_until?: string | null;
39116
+ next_attempt_at?: string | null;
39117
+ order_id?: string | null;
39118
+ order_number?: string | null;
39119
+ print_job_id?: string | null;
39120
+ printer_id?: string | null;
39121
+ retry_class?: string | null;
39122
+ slip_job_id?: string;
39123
+ status?: string;
39124
+ updated_at?: string;
39125
+ };
39126
+ Relationships: [];
39127
+ };
37024
39128
  logistics_staff_planning: {
37025
39129
  Row: {
37026
39130
  created_at: string;
@@ -37354,6 +39458,141 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37354
39458
  };
37355
39459
  Relationships: [];
37356
39460
  };
39461
+ logistics_time_settings: {
39462
+ Row: {
39463
+ id: boolean;
39464
+ timezone: string;
39465
+ updated_at: string;
39466
+ };
39467
+ Insert: {
39468
+ id?: boolean;
39469
+ timezone: string;
39470
+ updated_at?: string;
39471
+ };
39472
+ Update: {
39473
+ id?: boolean;
39474
+ timezone?: string;
39475
+ updated_at?: string;
39476
+ };
39477
+ Relationships: [];
39478
+ };
39479
+ logistics_trace_events: {
39480
+ Row: {
39481
+ actor: string | null;
39482
+ attempts: number;
39483
+ calc: import("../integrations/supabase/types").Json | null;
39484
+ cart_ref: string | null;
39485
+ created_at: string;
39486
+ db_action: string | null;
39487
+ db_new: import("../integrations/supabase/types").Json | null;
39488
+ db_old: import("../integrations/supabase/types").Json | null;
39489
+ db_record: string | null;
39490
+ db_table: string | null;
39491
+ decision: string | null;
39492
+ duration_ms: number | null;
39493
+ error: string | null;
39494
+ error_class: string | null;
39495
+ external_action: string | null;
39496
+ external_ref: string | null;
39497
+ external_response: import("../integrations/supabase/types").Json | null;
39498
+ external_status: string | null;
39499
+ external_system: string | null;
39500
+ id: string;
39501
+ input: import("../integrations/supabase/types").Json | null;
39502
+ next_attempt_at: string | null;
39503
+ next_step: string | null;
39504
+ node_id: string | null;
39505
+ order_ref: string | null;
39506
+ order_source: string | null;
39507
+ output: import("../integrations/supabase/types").Json | null;
39508
+ phase: string;
39509
+ reads: import("../integrations/supabase/types").Json | null;
39510
+ reason: string | null;
39511
+ rule: string | null;
39512
+ slip_ref: string | null;
39513
+ status: string;
39514
+ step: string;
39515
+ trace_id: string;
39516
+ values_used: import("../integrations/supabase/types").Json | null;
39517
+ };
39518
+ Insert: {
39519
+ actor?: string | null;
39520
+ attempts?: number;
39521
+ calc?: import("../integrations/supabase/types").Json | null;
39522
+ cart_ref?: string | null;
39523
+ created_at?: string;
39524
+ db_action?: string | null;
39525
+ db_new?: import("../integrations/supabase/types").Json | null;
39526
+ db_old?: import("../integrations/supabase/types").Json | null;
39527
+ db_record?: string | null;
39528
+ db_table?: string | null;
39529
+ decision?: string | null;
39530
+ duration_ms?: number | null;
39531
+ error?: string | null;
39532
+ error_class?: string | null;
39533
+ external_action?: string | null;
39534
+ external_ref?: string | null;
39535
+ external_response?: import("../integrations/supabase/types").Json | null;
39536
+ external_status?: string | null;
39537
+ external_system?: string | null;
39538
+ id?: string;
39539
+ input?: import("../integrations/supabase/types").Json | null;
39540
+ next_attempt_at?: string | null;
39541
+ next_step?: string | null;
39542
+ node_id?: string | null;
39543
+ order_ref?: string | null;
39544
+ order_source?: string | null;
39545
+ output?: import("../integrations/supabase/types").Json | null;
39546
+ phase: string;
39547
+ reads?: import("../integrations/supabase/types").Json | null;
39548
+ reason?: string | null;
39549
+ rule?: string | null;
39550
+ slip_ref?: string | null;
39551
+ status: string;
39552
+ step: string;
39553
+ trace_id?: string;
39554
+ values_used?: import("../integrations/supabase/types").Json | null;
39555
+ };
39556
+ Update: {
39557
+ actor?: string | null;
39558
+ attempts?: number;
39559
+ calc?: import("../integrations/supabase/types").Json | null;
39560
+ cart_ref?: string | null;
39561
+ created_at?: string;
39562
+ db_action?: string | null;
39563
+ db_new?: import("../integrations/supabase/types").Json | null;
39564
+ db_old?: import("../integrations/supabase/types").Json | null;
39565
+ db_record?: string | null;
39566
+ db_table?: string | null;
39567
+ decision?: string | null;
39568
+ duration_ms?: number | null;
39569
+ error?: string | null;
39570
+ error_class?: string | null;
39571
+ external_action?: string | null;
39572
+ external_ref?: string | null;
39573
+ external_response?: import("../integrations/supabase/types").Json | null;
39574
+ external_status?: string | null;
39575
+ external_system?: string | null;
39576
+ id?: string;
39577
+ input?: import("../integrations/supabase/types").Json | null;
39578
+ next_attempt_at?: string | null;
39579
+ next_step?: string | null;
39580
+ node_id?: string | null;
39581
+ order_ref?: string | null;
39582
+ order_source?: string | null;
39583
+ output?: import("../integrations/supabase/types").Json | null;
39584
+ phase?: string;
39585
+ reads?: import("../integrations/supabase/types").Json | null;
39586
+ reason?: string | null;
39587
+ rule?: string | null;
39588
+ slip_ref?: string | null;
39589
+ status?: string;
39590
+ step?: string;
39591
+ trace_id?: string;
39592
+ values_used?: import("../integrations/supabase/types").Json | null;
39593
+ };
39594
+ Relationships: [];
39595
+ };
37357
39596
  logistics_variables: {
37358
39597
  Row: {
37359
39598
  created_at: string;
@@ -39744,6 +41983,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39744
41983
  customer_name: string;
39745
41984
  deleted_at: string | null;
39746
41985
  delivery_date: string | null;
41986
+ floriday_order_group_key: string | null;
39747
41987
  floriday_sales_order_id: string | null;
39748
41988
  id: string;
39749
41989
  invoice_due_at: string | null;
@@ -39771,6 +42011,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39771
42011
  customer_name?: string;
39772
42012
  deleted_at?: string | null;
39773
42013
  delivery_date?: string | null;
42014
+ floriday_order_group_key?: string | null;
39774
42015
  floriday_sales_order_id?: string | null;
39775
42016
  id?: string;
39776
42017
  invoice_due_at?: string | null;
@@ -39798,6 +42039,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
39798
42039
  customer_name?: string;
39799
42040
  deleted_at?: string | null;
39800
42041
  delivery_date?: string | null;
42042
+ floriday_order_group_key?: string | null;
39801
42043
  floriday_sales_order_id?: string | null;
39802
42044
  id?: string;
39803
42045
  invoice_due_at?: string | null;
@@ -41098,6 +43340,123 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
41098
43340
  referencedColumns: ["id"];
41099
43341
  }];
41100
43342
  };
43343
+ price_list_rows: {
43344
+ Row: {
43345
+ action: string;
43346
+ created_at: string;
43347
+ id: string;
43348
+ message: string | null;
43349
+ parsed: import("../integrations/supabase/types").Json;
43350
+ price_list_id: string;
43351
+ raw: import("../integrations/supabase/types").Json;
43352
+ row_number: number;
43353
+ supplier_product_id: string | null;
43354
+ };
43355
+ Insert: {
43356
+ action?: string;
43357
+ created_at?: string;
43358
+ id?: string;
43359
+ message?: string | null;
43360
+ parsed?: import("../integrations/supabase/types").Json;
43361
+ price_list_id: string;
43362
+ raw?: import("../integrations/supabase/types").Json;
43363
+ row_number: number;
43364
+ supplier_product_id?: string | null;
43365
+ };
43366
+ Update: {
43367
+ action?: string;
43368
+ created_at?: string;
43369
+ id?: string;
43370
+ message?: string | null;
43371
+ parsed?: import("../integrations/supabase/types").Json;
43372
+ price_list_id?: string;
43373
+ raw?: import("../integrations/supabase/types").Json;
43374
+ row_number?: number;
43375
+ supplier_product_id?: string | null;
43376
+ };
43377
+ Relationships: [{
43378
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
43379
+ columns: ["price_list_id"];
43380
+ isOneToOne: false;
43381
+ referencedRelation: "price_lists";
43382
+ referencedColumns: ["id"];
43383
+ }, {
43384
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
43385
+ columns: ["supplier_product_id"];
43386
+ isOneToOne: false;
43387
+ referencedRelation: "supplier_products";
43388
+ referencedColumns: ["id"];
43389
+ }];
43390
+ };
43391
+ price_lists: {
43392
+ Row: {
43393
+ created_at: string;
43394
+ created_by: string | null;
43395
+ file_hash: string | null;
43396
+ file_name: string;
43397
+ file_path: string | null;
43398
+ headers: string[];
43399
+ id: string;
43400
+ preview: import("../integrations/supabase/types").Json;
43401
+ processed_at: string | null;
43402
+ reason: string | null;
43403
+ row_count: number;
43404
+ sheet_name: string | null;
43405
+ source: string;
43406
+ stats: import("../integrations/supabase/types").Json;
43407
+ status: string;
43408
+ supplier_guess: string | null;
43409
+ supplier_id: string | null;
43410
+ updated_at: string;
43411
+ };
43412
+ Insert: {
43413
+ created_at?: string;
43414
+ created_by?: string | null;
43415
+ file_hash?: string | null;
43416
+ file_name: string;
43417
+ file_path?: string | null;
43418
+ headers?: string[];
43419
+ id?: string;
43420
+ preview?: import("../integrations/supabase/types").Json;
43421
+ processed_at?: string | null;
43422
+ reason?: string | null;
43423
+ row_count?: number;
43424
+ sheet_name?: string | null;
43425
+ source?: string;
43426
+ stats?: import("../integrations/supabase/types").Json;
43427
+ status?: string;
43428
+ supplier_guess?: string | null;
43429
+ supplier_id?: string | null;
43430
+ updated_at?: string;
43431
+ };
43432
+ Update: {
43433
+ created_at?: string;
43434
+ created_by?: string | null;
43435
+ file_hash?: string | null;
43436
+ file_name?: string;
43437
+ file_path?: string | null;
43438
+ headers?: string[];
43439
+ id?: string;
43440
+ preview?: import("../integrations/supabase/types").Json;
43441
+ processed_at?: string | null;
43442
+ reason?: string | null;
43443
+ row_count?: number;
43444
+ sheet_name?: string | null;
43445
+ source?: string;
43446
+ stats?: import("../integrations/supabase/types").Json;
43447
+ status?: string;
43448
+ supplier_guess?: string | null;
43449
+ supplier_id?: string | null;
43450
+ updated_at?: string;
43451
+ };
43452
+ Relationships: [{
43453
+ foreignKeyName: "price_lists_supplier_id_fkey";
43454
+ columns: ["supplier_id"];
43455
+ isOneToOne: false;
43456
+ referencedRelation: "suppliers";
43457
+ referencedColumns: ["id"];
43458
+ }];
43459
+ };
41101
43460
  print_agents: {
41102
43461
  Row: {
41103
43462
  actief: boolean;
@@ -42655,30 +45014,108 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42655
45014
  referencedColumns: ["id"];
42656
45015
  }];
42657
45016
  };
45017
+ purchase_order_dispatches: {
45018
+ Row: {
45019
+ created_at: string;
45020
+ id: string;
45021
+ last_error: string | null;
45022
+ outbox_id: string | null;
45023
+ purchase_order_id: string;
45024
+ status: string;
45025
+ supplier_id: string | null;
45026
+ supplier_name: string;
45027
+ to_address: string;
45028
+ updated_at: string;
45029
+ };
45030
+ Insert: {
45031
+ created_at?: string;
45032
+ id?: string;
45033
+ last_error?: string | null;
45034
+ outbox_id?: string | null;
45035
+ purchase_order_id: string;
45036
+ status?: string;
45037
+ supplier_id?: string | null;
45038
+ supplier_name?: string;
45039
+ to_address: string;
45040
+ updated_at?: string;
45041
+ };
45042
+ Update: {
45043
+ created_at?: string;
45044
+ id?: string;
45045
+ last_error?: string | null;
45046
+ outbox_id?: string | null;
45047
+ purchase_order_id?: string;
45048
+ status?: string;
45049
+ supplier_id?: string | null;
45050
+ supplier_name?: string;
45051
+ to_address?: string;
45052
+ updated_at?: string;
45053
+ };
45054
+ Relationships: [{
45055
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
45056
+ columns: ["purchase_order_id"];
45057
+ isOneToOne: false;
45058
+ referencedRelation: "purchase_orders";
45059
+ referencedColumns: ["id"];
45060
+ }, {
45061
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
45062
+ columns: ["supplier_id"];
45063
+ isOneToOne: false;
45064
+ referencedRelation: "suppliers";
45065
+ referencedColumns: ["id"];
45066
+ }];
45067
+ };
42658
45068
  purchase_order_items: {
42659
45069
  Row: {
45070
+ article_number: string | null;
42660
45071
  created_at: string;
45072
+ delivery_date: string | null;
42661
45073
  id: string;
45074
+ name: string;
45075
+ note: string | null;
45076
+ pot_size: string | null;
42662
45077
  product_id: string | null;
42663
45078
  product_type: string;
42664
45079
  purchase_order_id: string;
42665
45080
  quantity: number;
45081
+ supplier_id: string | null;
45082
+ supplier_product_id: string | null;
45083
+ unit_price_cents: number;
45084
+ updated_at: string;
42666
45085
  };
42667
45086
  Insert: {
45087
+ article_number?: string | null;
42668
45088
  created_at?: string;
45089
+ delivery_date?: string | null;
42669
45090
  id?: string;
45091
+ name?: string;
45092
+ note?: string | null;
45093
+ pot_size?: string | null;
42670
45094
  product_id?: string | null;
42671
45095
  product_type?: string;
42672
45096
  purchase_order_id: string;
42673
45097
  quantity?: number;
45098
+ supplier_id?: string | null;
45099
+ supplier_product_id?: string | null;
45100
+ unit_price_cents?: number;
45101
+ updated_at?: string;
42674
45102
  };
42675
45103
  Update: {
45104
+ article_number?: string | null;
42676
45105
  created_at?: string;
45106
+ delivery_date?: string | null;
42677
45107
  id?: string;
45108
+ name?: string;
45109
+ note?: string | null;
45110
+ pot_size?: string | null;
42678
45111
  product_id?: string | null;
42679
45112
  product_type?: string;
42680
45113
  purchase_order_id?: string;
42681
45114
  quantity?: number;
45115
+ supplier_id?: string | null;
45116
+ supplier_product_id?: string | null;
45117
+ unit_price_cents?: number;
45118
+ updated_at?: string;
42682
45119
  };
42683
45120
  Relationships: [{
42684
45121
  foreignKeyName: "purchase_order_items_product_id_fkey";
@@ -42698,43 +45135,70 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
42698
45135
  isOneToOne: false;
42699
45136
  referencedRelation: "purchase_orders";
42700
45137
  referencedColumns: ["id"];
45138
+ }, {
45139
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
45140
+ columns: ["supplier_id"];
45141
+ isOneToOne: false;
45142
+ referencedRelation: "suppliers";
45143
+ referencedColumns: ["id"];
45144
+ }, {
45145
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
45146
+ columns: ["supplier_product_id"];
45147
+ isOneToOne: false;
45148
+ referencedRelation: "supplier_products";
45149
+ referencedColumns: ["id"];
42701
45150
  }];
42702
45151
  };
42703
45152
  purchase_orders: {
42704
45153
  Row: {
45154
+ contact_person: string | null;
42705
45155
  created_at: string;
45156
+ created_by: string | null;
42706
45157
  expected_delivery_date: string;
42707
45158
  id: string;
42708
45159
  location_id: string | null;
42709
45160
  notes: string | null;
42710
45161
  order_number: string;
45162
+ reference: string | null;
45163
+ sent_at: string | null;
42711
45164
  status: string;
42712
45165
  supplier_id: string | null;
42713
45166
  supplier_name: string;
45167
+ total_cents: number;
42714
45168
  updated_at: string;
42715
45169
  };
42716
45170
  Insert: {
45171
+ contact_person?: string | null;
42717
45172
  created_at?: string;
42718
- expected_delivery_date: string;
45173
+ created_by?: string | null;
45174
+ expected_delivery_date?: string;
42719
45175
  id?: string;
42720
45176
  location_id?: string | null;
42721
45177
  notes?: string | null;
42722
- order_number: string;
45178
+ order_number?: string;
45179
+ reference?: string | null;
45180
+ sent_at?: string | null;
42723
45181
  status?: string;
42724
45182
  supplier_id?: string | null;
42725
45183
  supplier_name?: string;
45184
+ total_cents?: number;
42726
45185
  updated_at?: string;
42727
45186
  };
42728
45187
  Update: {
45188
+ contact_person?: string | null;
42729
45189
  created_at?: string;
45190
+ created_by?: string | null;
42730
45191
  expected_delivery_date?: string;
42731
45192
  id?: string;
42732
45193
  location_id?: string | null;
42733
45194
  notes?: string | null;
42734
45195
  order_number?: string;
45196
+ reference?: string | null;
45197
+ sent_at?: string | null;
42735
45198
  status?: string;
42736
45199
  supplier_id?: string | null;
42737
45200
  supplier_name?: string;
45201
+ total_cents?: number;
42738
45202
  updated_at?: string;
42739
45203
  };
42740
45204
  Relationships: [{
@@ -43621,15 +46085,160 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43621
46085
  };
43622
46086
  Relationships: [];
43623
46087
  };
46088
+ supplier_contacts: {
46089
+ Row: {
46090
+ created_at: string;
46091
+ email: string | null;
46092
+ id: string;
46093
+ is_primary: boolean;
46094
+ name: string;
46095
+ phone: string | null;
46096
+ role: string | null;
46097
+ supplier_id: string;
46098
+ updated_at: string;
46099
+ };
46100
+ Insert: {
46101
+ created_at?: string;
46102
+ email?: string | null;
46103
+ id?: string;
46104
+ is_primary?: boolean;
46105
+ name: string;
46106
+ phone?: string | null;
46107
+ role?: string | null;
46108
+ supplier_id: string;
46109
+ updated_at?: string;
46110
+ };
46111
+ Update: {
46112
+ created_at?: string;
46113
+ email?: string | null;
46114
+ id?: string;
46115
+ is_primary?: boolean;
46116
+ name?: string;
46117
+ phone?: string | null;
46118
+ role?: string | null;
46119
+ supplier_id?: string;
46120
+ updated_at?: string;
46121
+ };
46122
+ Relationships: [{
46123
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
46124
+ columns: ["supplier_id"];
46125
+ isOneToOne: false;
46126
+ referencedRelation: "suppliers";
46127
+ referencedColumns: ["id"];
46128
+ }];
46129
+ };
46130
+ supplier_price_history: {
46131
+ Row: {
46132
+ created_at: string;
46133
+ id: string;
46134
+ new_price_cents: number;
46135
+ old_price_cents: number | null;
46136
+ price_list_id: string | null;
46137
+ supplier_id: string | null;
46138
+ supplier_product_id: string;
46139
+ };
46140
+ Insert: {
46141
+ created_at?: string;
46142
+ id?: string;
46143
+ new_price_cents: number;
46144
+ old_price_cents?: number | null;
46145
+ price_list_id?: string | null;
46146
+ supplier_id?: string | null;
46147
+ supplier_product_id: string;
46148
+ };
46149
+ Update: {
46150
+ created_at?: string;
46151
+ id?: string;
46152
+ new_price_cents?: number;
46153
+ old_price_cents?: number | null;
46154
+ price_list_id?: string | null;
46155
+ supplier_id?: string | null;
46156
+ supplier_product_id?: string;
46157
+ };
46158
+ Relationships: [{
46159
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
46160
+ columns: ["price_list_id"];
46161
+ isOneToOne: false;
46162
+ referencedRelation: "price_lists";
46163
+ referencedColumns: ["id"];
46164
+ }, {
46165
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
46166
+ columns: ["supplier_product_id"];
46167
+ isOneToOne: false;
46168
+ referencedRelation: "supplier_products";
46169
+ referencedColumns: ["id"];
46170
+ }];
46171
+ };
46172
+ supplier_price_list_mappings: {
46173
+ Row: {
46174
+ column_map: import("../integrations/supabase/types").Json;
46175
+ created_at: string;
46176
+ deactivate_missing: boolean;
46177
+ decimal_separator: string;
46178
+ expected_headers: string[];
46179
+ extract_pot_from_name: boolean;
46180
+ header_row: number;
46181
+ id: string;
46182
+ max_error_ratio: number;
46183
+ price_is_cents: boolean;
46184
+ sheet_name: string | null;
46185
+ supplier_id: string;
46186
+ updated_at: string;
46187
+ };
46188
+ Insert: {
46189
+ column_map?: import("../integrations/supabase/types").Json;
46190
+ created_at?: string;
46191
+ deactivate_missing?: boolean;
46192
+ decimal_separator?: string;
46193
+ expected_headers?: string[];
46194
+ extract_pot_from_name?: boolean;
46195
+ header_row?: number;
46196
+ id?: string;
46197
+ max_error_ratio?: number;
46198
+ price_is_cents?: boolean;
46199
+ sheet_name?: string | null;
46200
+ supplier_id: string;
46201
+ updated_at?: string;
46202
+ };
46203
+ Update: {
46204
+ column_map?: import("../integrations/supabase/types").Json;
46205
+ created_at?: string;
46206
+ deactivate_missing?: boolean;
46207
+ decimal_separator?: string;
46208
+ expected_headers?: string[];
46209
+ extract_pot_from_name?: boolean;
46210
+ header_row?: number;
46211
+ id?: string;
46212
+ max_error_ratio?: number;
46213
+ price_is_cents?: boolean;
46214
+ sheet_name?: string | null;
46215
+ supplier_id?: string;
46216
+ updated_at?: string;
46217
+ };
46218
+ Relationships: [{
46219
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
46220
+ columns: ["supplier_id"];
46221
+ isOneToOne: true;
46222
+ referencedRelation: "suppliers";
46223
+ referencedColumns: ["id"];
46224
+ }];
46225
+ };
43624
46226
  supplier_products: {
43625
46227
  Row: {
43626
46228
  article_number: string | null;
46229
+ available_quantity: number;
43627
46230
  created_at: string;
46231
+ height: string | null;
43628
46232
  id: string;
46233
+ is_active: boolean;
46234
+ min_order: number;
43629
46235
  name: string;
43630
46236
  notes: string | null;
46237
+ order_unit: number;
43631
46238
  pot_size: string | null;
43632
46239
  price: number | null;
46240
+ price_cents: number;
46241
+ quality: string | null;
43633
46242
  quantity: number | null;
43634
46243
  supplier_id: string;
43635
46244
  unit: string;
@@ -43637,12 +46246,19 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43637
46246
  };
43638
46247
  Insert: {
43639
46248
  article_number?: string | null;
46249
+ available_quantity?: number;
43640
46250
  created_at?: string;
46251
+ height?: string | null;
43641
46252
  id?: string;
46253
+ is_active?: boolean;
46254
+ min_order?: number;
43642
46255
  name: string;
43643
46256
  notes?: string | null;
46257
+ order_unit?: number;
43644
46258
  pot_size?: string | null;
43645
46259
  price?: number | null;
46260
+ price_cents?: number;
46261
+ quality?: string | null;
43646
46262
  quantity?: number | null;
43647
46263
  supplier_id: string;
43648
46264
  unit?: string;
@@ -43650,12 +46266,19 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43650
46266
  };
43651
46267
  Update: {
43652
46268
  article_number?: string | null;
46269
+ available_quantity?: number;
43653
46270
  created_at?: string;
46271
+ height?: string | null;
43654
46272
  id?: string;
46273
+ is_active?: boolean;
46274
+ min_order?: number;
43655
46275
  name?: string;
43656
46276
  notes?: string | null;
46277
+ order_unit?: number;
43657
46278
  pot_size?: string | null;
43658
46279
  price?: number | null;
46280
+ price_cents?: number;
46281
+ quality?: string | null;
43659
46282
  quantity?: number | null;
43660
46283
  supplier_id?: string;
43661
46284
  unit?: string;
@@ -43672,6 +46295,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43672
46295
  suppliers: {
43673
46296
  Row: {
43674
46297
  address: string | null;
46298
+ category: string | null;
43675
46299
  column_mappings: import("../integrations/supabase/types").Json | null;
43676
46300
  contact_person: string | null;
43677
46301
  created_at: string;
@@ -43679,13 +46303,24 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43679
46303
  email: string | null;
43680
46304
  id: string;
43681
46305
  imported_file_name: string | null;
46306
+ is_preferred: boolean;
46307
+ kvk_number: string | null;
46308
+ lead_time_days: number | null;
46309
+ min_order_amount_cents: number;
43682
46310
  name: string;
43683
46311
  notes: string | null;
46312
+ order_days: string[];
46313
+ order_email: string | null;
46314
+ payment_terms_days: number | null;
43684
46315
  phone: string | null;
46316
+ status: string;
43685
46317
  updated_at: string;
46318
+ vat_number: string | null;
46319
+ website: string | null;
43686
46320
  };
43687
46321
  Insert: {
43688
46322
  address?: string | null;
46323
+ category?: string | null;
43689
46324
  column_mappings?: import("../integrations/supabase/types").Json | null;
43690
46325
  contact_person?: string | null;
43691
46326
  created_at?: string;
@@ -43693,13 +46328,24 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43693
46328
  email?: string | null;
43694
46329
  id?: string;
43695
46330
  imported_file_name?: string | null;
46331
+ is_preferred?: boolean;
46332
+ kvk_number?: string | null;
46333
+ lead_time_days?: number | null;
46334
+ min_order_amount_cents?: number;
43696
46335
  name: string;
43697
46336
  notes?: string | null;
46337
+ order_days?: string[];
46338
+ order_email?: string | null;
46339
+ payment_terms_days?: number | null;
43698
46340
  phone?: string | null;
46341
+ status?: string;
43699
46342
  updated_at?: string;
46343
+ vat_number?: string | null;
46344
+ website?: string | null;
43700
46345
  };
43701
46346
  Update: {
43702
46347
  address?: string | null;
46348
+ category?: string | null;
43703
46349
  column_mappings?: import("../integrations/supabase/types").Json | null;
43704
46350
  contact_person?: string | null;
43705
46351
  created_at?: string;
@@ -43707,10 +46353,20 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43707
46353
  email?: string | null;
43708
46354
  id?: string;
43709
46355
  imported_file_name?: string | null;
46356
+ is_preferred?: boolean;
46357
+ kvk_number?: string | null;
46358
+ lead_time_days?: number | null;
46359
+ min_order_amount_cents?: number;
43710
46360
  name?: string;
43711
46361
  notes?: string | null;
46362
+ order_days?: string[];
46363
+ order_email?: string | null;
46364
+ payment_terms_days?: number | null;
43712
46365
  phone?: string | null;
46366
+ status?: string;
43713
46367
  updated_at?: string;
46368
+ vat_number?: string | null;
46369
+ website?: string | null;
43714
46370
  };
43715
46371
  Relationships: [];
43716
46372
  };
@@ -44712,11 +47368,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44712
47368
  auto_invoice_trigger_statuses: string[];
44713
47369
  created_at: string;
44714
47370
  debtor_gl_account: string;
47371
+ default_article_code: string | null;
44715
47372
  default_credit_invoice_type: string | null;
44716
47373
  default_gl_account: string;
44717
47374
  default_invoice_type: string;
44718
47375
  default_payment_term_days: number;
44719
47376
  default_vat_code: string;
47377
+ email_purpose: string | null;
44720
47378
  home_country_code: string;
44721
47379
  invoice_enabled_ao: boolean;
44722
47380
  invoice_enabled_fo: boolean;
@@ -44738,11 +47396,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44738
47396
  auto_invoice_trigger_statuses?: string[];
44739
47397
  created_at?: string;
44740
47398
  debtor_gl_account?: string;
47399
+ default_article_code?: string | null;
44741
47400
  default_credit_invoice_type?: string | null;
44742
47401
  default_gl_account?: string;
44743
47402
  default_invoice_type?: string;
44744
47403
  default_payment_term_days?: number;
44745
47404
  default_vat_code?: string;
47405
+ email_purpose?: string | null;
44746
47406
  home_country_code?: string;
44747
47407
  invoice_enabled_ao?: boolean;
44748
47408
  invoice_enabled_fo?: boolean;
@@ -44764,11 +47424,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44764
47424
  auto_invoice_trigger_statuses?: string[];
44765
47425
  created_at?: string;
44766
47426
  debtor_gl_account?: string;
47427
+ default_article_code?: string | null;
44767
47428
  default_credit_invoice_type?: string | null;
44768
47429
  default_gl_account?: string;
44769
47430
  default_invoice_type?: string;
44770
47431
  default_payment_term_days?: number;
44771
47432
  default_vat_code?: string;
47433
+ email_purpose?: string | null;
44772
47434
  home_country_code?: string;
44773
47435
  invoice_enabled_ao?: boolean;
44774
47436
  invoice_enabled_fo?: boolean;
@@ -47923,6 +50585,15 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
47923
50585
  Args: never;
47924
50586
  Returns: boolean;
47925
50587
  };
50588
+ cancel_open_print_jobs: {
50589
+ Args: {
50590
+ _cutoff: string;
50591
+ };
50592
+ Returns: {
50593
+ extern_job_id: string;
50594
+ id: string;
50595
+ }[];
50596
+ };
47926
50597
  check_offer_product_available_stock: {
47927
50598
  Args: {
47928
50599
  p_campaign_product_id: string;
@@ -49085,6 +51756,27 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49085
51756
  Args: never;
49086
51757
  Returns: boolean;
49087
51758
  };
51759
+ inkoop_apply_price_list: {
51760
+ Args: {
51761
+ _price_list_id: string;
51762
+ _rows: import("../integrations/supabase/types").Json;
51763
+ };
51764
+ Returns: import("../integrations/supabase/types").Json;
51765
+ };
51766
+ inkoop_next_order_number: {
51767
+ Args: never;
51768
+ Returns: string;
51769
+ };
51770
+ inkoop_send_order: {
51771
+ Args: {
51772
+ _order_id: string;
51773
+ };
51774
+ Returns: {
51775
+ outbox_id: string;
51776
+ supplier_name: string;
51777
+ to_address: string;
51778
+ }[];
51779
+ };
49088
51780
  instructie_get: {
49089
51781
  Args: {
49090
51782
  _sleutel: string;
@@ -49461,6 +52153,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49461
52153
  };
49462
52154
  Returns: string;
49463
52155
  };
52156
+ logistics_cart_checkin_at: {
52157
+ Args: {
52158
+ p_cart_id: string;
52159
+ };
52160
+ Returns: string;
52161
+ };
49464
52162
  logistics_cart_handled: {
49465
52163
  Args: {
49466
52164
  p_cart_index: number;
@@ -49494,10 +52192,22 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49494
52192
  task_status: string;
49495
52193
  }[];
49496
52194
  };
52195
+ logistics_cart_is_full: {
52196
+ Args: {
52197
+ p_cart_id: string;
52198
+ };
52199
+ Returns: boolean;
52200
+ };
49497
52201
  logistics_cart_layout_method: {
49498
52202
  Args: never;
49499
52203
  Returns: import("../integrations/supabase/types").Json;
49500
52204
  };
52205
+ logistics_cart_order_refs: {
52206
+ Args: {
52207
+ p_cart_id: string;
52208
+ };
52209
+ Returns: string[];
52210
+ };
49501
52211
  logistics_cart_plan_overview: {
49502
52212
  Args: {
49503
52213
  p_days?: number;
@@ -49517,6 +52227,24 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49517
52227
  };
49518
52228
  Returns: import("../integrations/supabase/types").Json;
49519
52229
  };
52230
+ logistics_cart_plan_status_core: {
52231
+ Args: {
52232
+ p_ref: string;
52233
+ };
52234
+ Returns: import("../integrations/supabase/types").Json;
52235
+ };
52236
+ logistics_cart_release_reason: {
52237
+ Args: {
52238
+ p_cart_id: string;
52239
+ };
52240
+ Returns: string;
52241
+ };
52242
+ logistics_cart_released: {
52243
+ Args: {
52244
+ p_cart_id: string;
52245
+ };
52246
+ Returns: boolean;
52247
+ };
49520
52248
  logistics_cart_seq: {
49521
52249
  Args: {
49522
52250
  p_order_uuid?: string;
@@ -49567,6 +52295,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49567
52295
  unit_ref: string;
49568
52296
  }[];
49569
52297
  };
52298
+ logistics_carts_per_print: {
52299
+ Args: never;
52300
+ Returns: number;
52301
+ };
49570
52302
  logistics_check_order_allowed: {
49571
52303
  Args: {
49572
52304
  p_lines: import("../integrations/supabase/types").Json;
@@ -49670,6 +52402,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49670
52402
  isSetofReturn: false;
49671
52403
  };
49672
52404
  };
52405
+ logistics_cleanup_orphan_print_jobs: {
52406
+ Args: never;
52407
+ Returns: import("../integrations/supabase/types").Json;
52408
+ };
49673
52409
  logistics_complete_task: {
49674
52410
  Args: {
49675
52411
  p_result?: import("../integrations/supabase/types").Json;
@@ -49732,6 +52468,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49732
52468
  station_carts: number;
49733
52469
  }[];
49734
52470
  };
52471
+ logistics_control_complete_cart: {
52472
+ Args: {
52473
+ p_cart_id: string;
52474
+ };
52475
+ Returns: number;
52476
+ };
49735
52477
  logistics_control_scan_approve: {
49736
52478
  Args: {
49737
52479
  p_allow_reprint?: boolean;
@@ -49811,6 +52553,15 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49811
52553
  Args: never;
49812
52554
  Returns: import("../integrations/supabase/types").Json;
49813
52555
  };
52556
+ logistics_day_windows: {
52557
+ Args: {
52558
+ p_day: string;
52559
+ };
52560
+ Returns: {
52561
+ win_end: string;
52562
+ win_start: string;
52563
+ }[];
52564
+ };
49814
52565
  logistics_delay_customer_email: {
49815
52566
  Args: {
49816
52567
  p_customer: string;
@@ -49878,6 +52629,17 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49878
52629
  };
49879
52630
  Returns: import("../integrations/supabase/types").Json;
49880
52631
  };
52632
+ logistics_enqueue_shipping_note_with_slip: {
52633
+ Args: {
52634
+ _cart_id: string;
52635
+ _is_herprint: boolean;
52636
+ _printer_id: string;
52637
+ _queue_item_id: string;
52638
+ _session_id: string;
52639
+ _slip_job_id: string;
52640
+ };
52641
+ Returns: string;
52642
+ };
49881
52643
  logistics_enqueue_sticker_with_slip: {
49882
52644
  Args: {
49883
52645
  _cart_id: string;
@@ -49895,6 +52657,20 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49895
52657
  };
49896
52658
  Returns: string;
49897
52659
  };
52660
+ logistics_ensure_pick_data: {
52661
+ Args: {
52662
+ p_event_id?: string;
52663
+ p_missing?: import("../integrations/supabase/types").Json;
52664
+ p_ref: string;
52665
+ };
52666
+ Returns: import("../integrations/supabase/types").Json;
52667
+ };
52668
+ logistics_ensure_shipping_notes: {
52669
+ Args: {
52670
+ p_limit?: number;
52671
+ };
52672
+ Returns: import("../integrations/supabase/types").Json;
52673
+ };
49898
52674
  logistics_fail_task: {
49899
52675
  Args: {
49900
52676
  p_error: string;
@@ -49940,6 +52716,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49940
52716
  isSetofReturn: false;
49941
52717
  };
49942
52718
  };
52719
+ logistics_fix_wrong_shipping_notes: {
52720
+ Args: never;
52721
+ Returns: import("../integrations/supabase/types").Json;
52722
+ };
49943
52723
  logistics_floriday_cart_plan: {
49944
52724
  Args: {
49945
52725
  p_order_id: string;
@@ -49967,6 +52747,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
49967
52747
  revision: number;
49968
52748
  }[];
49969
52749
  };
52750
+ logistics_floriday_delivery_note_create_enabled: {
52751
+ Args: never;
52752
+ Returns: boolean;
52753
+ };
49970
52754
  logistics_floriday_finish_push: {
49971
52755
  Args: {
49972
52756
  _error?: string;
@@ -50066,6 +52850,16 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50066
52850
  Args: never;
50067
52851
  Returns: boolean;
50068
52852
  };
52853
+ logistics_floriday_stock_updates_enabled: {
52854
+ Args: never;
52855
+ Returns: boolean;
52856
+ };
52857
+ logistics_floriday_write_allowed: {
52858
+ Args: {
52859
+ _action: string;
52860
+ };
52861
+ Returns: boolean;
52862
+ };
50069
52863
  logistics_fulfill_barcode_requests: {
50070
52864
  Args: {
50071
52865
  p_limit?: number;
@@ -50108,6 +52902,22 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50108
52902
  };
50109
52903
  Returns: number;
50110
52904
  };
52905
+ logistics_merge_floriday_lines: {
52906
+ Args: {
52907
+ p_order_id: string;
52908
+ };
52909
+ Returns: string;
52910
+ };
52911
+ logistics_merge_lines_enabled: {
52912
+ Args: never;
52913
+ Returns: boolean;
52914
+ };
52915
+ logistics_merge_partial_carts: {
52916
+ Args: {
52917
+ p_limit?: number;
52918
+ };
52919
+ Returns: import("../integrations/supabase/types").Json;
52920
+ };
50111
52921
  logistics_next_workday_date: {
50112
52922
  Args: {
50113
52923
  p_date: string;
@@ -50134,6 +52944,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50134
52944
  };
50135
52945
  Returns: string;
50136
52946
  };
52947
+ logistics_opening_timezone: {
52948
+ Args: never;
52949
+ Returns: string;
52950
+ };
50137
52951
  logistics_order_cart_count: {
50138
52952
  Args: {
50139
52953
  p_order_ref: string;
@@ -50153,6 +52967,18 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50153
52967
  };
50154
52968
  Returns: boolean;
50155
52969
  };
52970
+ logistics_order_merge_key: {
52971
+ Args: {
52972
+ p_group_key: string;
52973
+ };
52974
+ Returns: string;
52975
+ };
52976
+ logistics_order_mergeable: {
52977
+ Args: {
52978
+ p_order_id: string;
52979
+ };
52980
+ Returns: boolean;
52981
+ };
50156
52982
  logistics_order_overview: {
50157
52983
  Args: {
50158
52984
  p_from?: string;
@@ -50190,6 +53016,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50190
53016
  };
50191
53017
  Returns: string;
50192
53018
  };
53019
+ logistics_payload_is_floriday: {
53020
+ Args: {
53021
+ _payload: import("../integrations/supabase/types").Json;
53022
+ };
53023
+ Returns: boolean;
53024
+ };
50193
53025
  logistics_pick_agenda: {
50194
53026
  Args: {
50195
53027
  p_from?: string;
@@ -50218,6 +53050,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50218
53050
  Args: never;
50219
53051
  Returns: import("../integrations/supabase/types").Json;
50220
53052
  };
53053
+ logistics_pick_partial_mode: {
53054
+ Args: never;
53055
+ Returns: string;
53056
+ };
50221
53057
  logistics_pick_start_estimate: {
50222
53058
  Args: {
50223
53059
  p_order: import("../integrations/supabase/types").Json;
@@ -50308,6 +53144,20 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50308
53144
  Args: never;
50309
53145
  Returns: undefined;
50310
53146
  };
53147
+ logistics_plan_progress: {
53148
+ Args: {
53149
+ p_refs: string[];
53150
+ };
53151
+ Returns: {
53152
+ cart_plan_ready: boolean;
53153
+ cart_plan_reason: string;
53154
+ cart_plan_released: boolean;
53155
+ plan_progress: number;
53156
+ plan_state: string;
53157
+ plan_state_since: string;
53158
+ unit_ref: string;
53159
+ }[];
53160
+ };
50311
53161
  logistics_plan_prune: {
50312
53162
  Args: never;
50313
53163
  Returns: number;
@@ -50329,6 +53179,18 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50329
53179
  };
50330
53180
  Returns: number;
50331
53181
  };
53182
+ logistics_plan_state_for: {
53183
+ Args: {
53184
+ p_ref: string;
53185
+ };
53186
+ Returns: import("../integrations/supabase/types").Json;
53187
+ };
53188
+ logistics_prepare_pick_documents: {
53189
+ Args: {
53190
+ p_limit?: number;
53191
+ };
53192
+ Returns: import("../integrations/supabase/types").Json;
53193
+ };
50332
53194
  logistics_prune_buffer_member_queue: {
50333
53195
  Args: never;
50334
53196
  Returns: number;
@@ -50369,18 +53231,36 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50369
53231
  Args: never;
50370
53232
  Returns: import("../integrations/supabase/types").Json;
50371
53233
  };
53234
+ logistics_refresh_pick_queue_status: {
53235
+ Args: {
53236
+ p_ref: string;
53237
+ };
53238
+ Returns: number;
53239
+ };
50372
53240
  logistics_refresh_pickup_moments: {
50373
53241
  Args: {
50374
53242
  p_weeks?: number;
50375
53243
  };
50376
53244
  Returns: import("../integrations/supabase/types").Json;
50377
53245
  };
53246
+ logistics_refresh_plan_state: {
53247
+ Args: {
53248
+ p_limit?: number;
53249
+ };
53250
+ Returns: import("../integrations/supabase/types").Json;
53251
+ };
50378
53252
  logistics_replan_all: {
50379
53253
  Args: {
50380
53254
  p_reason?: string;
50381
53255
  };
50382
53256
  Returns: import("../integrations/supabase/types").Json;
50383
53257
  };
53258
+ logistics_replan_all_force: {
53259
+ Args: {
53260
+ p_reason?: string;
53261
+ };
53262
+ Returns: import("../integrations/supabase/types").Json;
53263
+ };
50384
53264
  logistics_report_delay: {
50385
53265
  Args: {
50386
53266
  p_expected_date?: string;
@@ -50525,6 +53405,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50525
53405
  };
50526
53406
  Returns: string;
50527
53407
  };
53408
+ logistics_shipping_note_follows_slip: {
53409
+ Args: never;
53410
+ Returns: boolean;
53411
+ };
50528
53412
  logistics_shipping_note_from_barcode: {
50529
53413
  Args: {
50530
53414
  p_allow_reprint?: boolean;
@@ -50533,10 +53417,86 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50533
53417
  };
50534
53418
  Returns: import("../integrations/supabase/types").Json;
50535
53419
  };
53420
+ logistics_shipping_note_job_for_slip: {
53421
+ Args: {
53422
+ _slip_job_id: string;
53423
+ };
53424
+ Returns: string;
53425
+ };
53426
+ logistics_shipping_notes_wake_all: {
53427
+ Args: never;
53428
+ Returns: import("../integrations/supabase/types").Json;
53429
+ };
53430
+ logistics_slip_is_floriday: {
53431
+ Args: {
53432
+ _slip_job_id: string;
53433
+ };
53434
+ Returns: boolean;
53435
+ };
53436
+ logistics_slip_note_claim: {
53437
+ Args: {
53438
+ _lease_seconds?: number;
53439
+ _limit?: number;
53440
+ };
53441
+ Returns: {
53442
+ attempts: number;
53443
+ batch_key: string | null;
53444
+ cart_id: string | null;
53445
+ created_at: string;
53446
+ error: string | null;
53447
+ error_code: string | null;
53448
+ fulfillment_order_id: string | null;
53449
+ id: string;
53450
+ locked_until: string | null;
53451
+ next_attempt_at: string | null;
53452
+ order_id: string | null;
53453
+ order_number: string | null;
53454
+ print_job_id: string | null;
53455
+ printer_id: string | null;
53456
+ retry_class: string | null;
53457
+ slip_job_id: string;
53458
+ status: string;
53459
+ updated_at: string;
53460
+ }[];
53461
+ SetofOptions: {
53462
+ from: "*";
53463
+ to: "logistics_slip_shipping_note";
53464
+ isOneToOne: false;
53465
+ isSetofReturn: true;
53466
+ };
53467
+ };
53468
+ logistics_slip_note_finish: {
53469
+ Args: {
53470
+ _error?: string;
53471
+ _error_code?: string;
53472
+ _fulfillment_order_id?: string;
53473
+ _id: string;
53474
+ _ok: boolean;
53475
+ _print_job_id?: string;
53476
+ _status?: string;
53477
+ };
53478
+ Returns: undefined;
53479
+ };
53480
+ logistics_slip_note_keep_waiting: {
53481
+ Args: {
53482
+ _class?: string;
53483
+ _id: string;
53484
+ _reason: string;
53485
+ };
53486
+ Returns: undefined;
53487
+ };
50536
53488
  logistics_sticker_follows_slip: {
50537
53489
  Args: never;
50538
53490
  Returns: boolean;
50539
53491
  };
53492
+ logistics_subtract_working_minutes: {
53493
+ Args: {
53494
+ p_deadline: string;
53495
+ p_max_workdays?: number;
53496
+ p_minutes: number;
53497
+ };
53498
+ Returns: import("../integrations/supabase/types").Json;
53499
+ };
50540
53500
  logistics_supersede_stale_tasks: {
50541
53501
  Args: {
50542
53502
  p_keep: string[];
@@ -50573,6 +53533,109 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50573
53533
  Args: never;
50574
53534
  Returns: string;
50575
53535
  };
53536
+ logistics_timezone_options: {
53537
+ Args: never;
53538
+ Returns: {
53539
+ name: string;
53540
+ }[];
53541
+ };
53542
+ logistics_trace: {
53543
+ Args: {
53544
+ p: import("../integrations/supabase/types").Json;
53545
+ };
53546
+ Returns: string;
53547
+ };
53548
+ logistics_trace_all_orders: {
53549
+ Args: {
53550
+ p_limit?: number;
53551
+ p_search?: string;
53552
+ };
53553
+ Returns: import("../integrations/supabase/types").Json;
53554
+ };
53555
+ logistics_trace_batch: {
53556
+ Args: {
53557
+ p: import("../integrations/supabase/types").Json;
53558
+ };
53559
+ Returns: number;
53560
+ };
53561
+ logistics_trace_node: {
53562
+ Args: {
53563
+ p_op?: string;
53564
+ p_status?: string;
53565
+ p_table: string;
53566
+ };
53567
+ Returns: string;
53568
+ };
53569
+ logistics_trace_order_overview: {
53570
+ Args: {
53571
+ p_error_class?: string;
53572
+ p_limit?: number;
53573
+ p_search?: string;
53574
+ p_since?: string;
53575
+ p_source?: string;
53576
+ p_state?: string;
53577
+ p_step?: string;
53578
+ };
53579
+ Returns: import("../integrations/supabase/types").Json;
53580
+ };
53581
+ logistics_trace_order_state: {
53582
+ Args: {
53583
+ p_order_ref: string;
53584
+ };
53585
+ Returns: import("../integrations/supabase/types").Json;
53586
+ };
53587
+ logistics_trace_order_step: {
53588
+ Args: {
53589
+ p_class?: string;
53590
+ p_decision?: string;
53591
+ p_error?: string;
53592
+ p_next_step?: string;
53593
+ p_node: string;
53594
+ p_order_id: string;
53595
+ p_reason?: string;
53596
+ p_status: string;
53597
+ p_step: string;
53598
+ };
53599
+ Returns: undefined;
53600
+ };
53601
+ logistics_trace_orders: {
53602
+ Args: {
53603
+ p_limit?: number;
53604
+ p_search?: string;
53605
+ p_since?: string;
53606
+ p_status?: string;
53607
+ };
53608
+ Returns: import("../integrations/supabase/types").Json;
53609
+ };
53610
+ logistics_trace_redact: {
53611
+ Args: {
53612
+ p: import("../integrations/supabase/types").Json;
53613
+ };
53614
+ Returns: import("../integrations/supabase/types").Json;
53615
+ };
53616
+ logistics_trace_timeline: {
53617
+ Args: {
53618
+ p_limit?: number;
53619
+ p_order_ref: string;
53620
+ };
53621
+ Returns: import("../integrations/supabase/types").Json;
53622
+ };
53623
+ logistics_trace_version_events: {
53624
+ Args: {
53625
+ p_from?: string;
53626
+ p_limit?: number;
53627
+ p_order_ref: string;
53628
+ p_to?: string;
53629
+ p_version_id: string;
53630
+ };
53631
+ Returns: import("../integrations/supabase/types").Json;
53632
+ };
53633
+ logistics_trace_versions: {
53634
+ Args: {
53635
+ p_order_ref: string;
53636
+ };
53637
+ Returns: import("../integrations/supabase/types").Json;
53638
+ };
50576
53639
  logistics_upsert_task: {
50577
53640
  Args: {
50578
53641
  p_buffer_ref: string;
@@ -50592,6 +53655,16 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
50592
53655
  };
50593
53656
  Returns: string;
50594
53657
  };
53658
+ logistics_valid_timezone: {
53659
+ Args: {
53660
+ _tz: string;
53661
+ };
53662
+ Returns: boolean;
53663
+ };
53664
+ logistics_working_hours_status: {
53665
+ Args: never;
53666
+ Returns: import("../integrations/supabase/types").Json;
53667
+ };
50595
53668
  logistics_write_buffer_layer_positions: {
50596
53669
  Args: {
50597
53670
  p_buffer_id: string;
@@ -51604,6 +54677,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
51604
54677
  };
51605
54678
  Returns: undefined;
51606
54679
  };
54680
+ prune_floriday_api_log: {
54681
+ Args: never;
54682
+ Returns: number;
54683
+ };
51607
54684
  quote_create_from_source: {
51608
54685
  Args: {
51609
54686
  _payload?: import("../integrations/supabase/types").Json;
@@ -52037,6 +55114,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
52037
55114
  };
52038
55115
  Returns: number;
52039
55116
  };
55117
+ schedule_floriday_catalog_prices_sync: {
55118
+ Args: {
55119
+ p_apikey: string;
55120
+ p_url: string;
55121
+ };
55122
+ Returns: number;
55123
+ };
52040
55124
  schedule_floriday_clock_presales_sync: {
52041
55125
  Args: {
52042
55126
  p_apikey: string;
@@ -52337,6 +55421,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
52337
55421
  };
52338
55422
  Returns: undefined;
52339
55423
  };
55424
+ sync_floriday_prices_into_price_groups: {
55425
+ Args: never;
55426
+ Returns: number;
55427
+ };
52340
55428
  sync_layer_stock: {
52341
55429
  Args: {
52342
55430
  p_product_id: string;
@@ -52469,6 +55557,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
52469
55557
  Args: never;
52470
55558
  Returns: string;
52471
55559
  };
55560
+ voorraad_cleanup_old_rows: {
55561
+ Args: never;
55562
+ Returns: import("../integrations/supabase/types").Json;
55563
+ };
52472
55564
  wake_print_queue: {
52473
55565
  Args: {
52474
55566
  _min_interval_ms?: number;