@flowselections/logistiek-engine 1.0.34 → 1.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/FlowCanvas.d.ts +28 -0
  3. package/dist-lib/components/FlowCanvas.d.ts.map +1 -0
  4. package/dist-lib/components/FlowCanvas.js +429 -0
  5. package/dist-lib/components/FlowOrders.d.ts +8 -0
  6. package/dist-lib/components/FlowOrders.d.ts.map +1 -0
  7. package/dist-lib/components/FlowOrders.js +125 -0
  8. package/dist-lib/components/FlowPage.d.ts +2 -0
  9. package/dist-lib/components/FlowPage.d.ts.map +1 -0
  10. package/dist-lib/components/FlowPage.js +141 -0
  11. package/dist-lib/components/InklapbaarVenster.d.ts +9 -0
  12. package/dist-lib/components/InklapbaarVenster.d.ts.map +1 -0
  13. package/dist-lib/components/InklapbaarVenster.js +10 -0
  14. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  15. package/dist-lib/components/LogistiekEnginePage.js +9 -3
  16. package/dist-lib/components/LogistiekEngineQueuePage.d.ts +2 -0
  17. package/dist-lib/components/LogistiekEngineQueuePage.d.ts.map +1 -0
  18. package/dist-lib/components/LogistiekEngineQueuePage.js +11 -0
  19. package/dist-lib/components/NodeTracePanel.d.ts +11 -0
  20. package/dist-lib/components/NodeTracePanel.d.ts.map +1 -0
  21. package/dist-lib/components/NodeTracePanel.js +40 -0
  22. package/dist-lib/components/OrderJourneyBar.d.ts +9 -0
  23. package/dist-lib/components/OrderJourneyBar.d.ts.map +1 -0
  24. package/dist-lib/components/OrderJourneyBar.js +26 -0
  25. package/dist-lib/components/OrderLogboek.d.ts +10 -0
  26. package/dist-lib/components/OrderLogboek.d.ts.map +1 -0
  27. package/dist-lib/components/OrderLogboek.js +92 -0
  28. package/dist-lib/components/OrderStopBanner.d.ts +5 -0
  29. package/dist-lib/components/OrderStopBanner.d.ts.map +1 -0
  30. package/dist-lib/components/OrderStopBanner.js +22 -0
  31. package/dist-lib/components/OrderTraceDetails.d.ts +22 -0
  32. package/dist-lib/components/OrderTraceDetails.d.ts.map +1 -0
  33. package/dist-lib/components/OrderTraceDetails.js +87 -0
  34. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  35. package/dist-lib/components/RegiePage.js +11 -69
  36. package/dist-lib/components/WerktijdenCard.d.ts +2 -0
  37. package/dist-lib/components/WerktijdenCard.d.ts.map +1 -0
  38. package/dist-lib/components/WerktijdenCard.js +37 -0
  39. package/dist-lib/components/WerkwijzeHerindelingCard.d.ts.map +1 -1
  40. package/dist-lib/components/WerkwijzeHerindelingCard.js +100 -6
  41. package/dist-lib/hooks/useLogisticsTrace.d.ts +78 -0
  42. package/dist-lib/hooks/useLogisticsTrace.d.ts.map +1 -0
  43. package/dist-lib/hooks/useLogisticsTrace.js +152 -0
  44. package/dist-lib/hooks/useOrderNodeTrace.d.ts +11 -0
  45. package/dist-lib/hooks/useOrderNodeTrace.d.ts.map +1 -0
  46. package/dist-lib/hooks/useOrderNodeTrace.js +26 -0
  47. package/dist-lib/hooks/useOrderTrace.d.ts +74 -0
  48. package/dist-lib/hooks/useOrderTrace.d.ts.map +1 -0
  49. package/dist-lib/hooks/useOrderTrace.js +134 -0
  50. package/dist-lib/hooks/useOrderVersies.d.ts +47 -0
  51. package/dist-lib/hooks/useOrderVersies.d.ts.map +1 -0
  52. package/dist-lib/hooks/useOrderVersies.js +180 -0
  53. package/dist-lib/hooks/useRuleEngine.d.ts +1 -0
  54. package/dist-lib/hooks/useRuleEngine.d.ts.map +1 -1
  55. package/dist-lib/hooks/useRuleEngine.js +1 -0
  56. package/dist-lib/hooks/useShippingNoteStatus.d.ts +29 -0
  57. package/dist-lib/hooks/useShippingNoteStatus.d.ts.map +1 -0
  58. package/dist-lib/hooks/useShippingNoteStatus.js +107 -0
  59. package/dist-lib/hooks/useWerktijden.d.ts +33 -0
  60. package/dist-lib/hooks/useWerktijden.d.ts.map +1 -0
  61. package/dist-lib/hooks/useWerktijden.js +88 -0
  62. package/dist-lib/hooks/useWerkwijzeStatus.d.ts +12 -1
  63. package/dist-lib/hooks/useWerkwijzeStatus.d.ts.map +1 -1
  64. package/dist-lib/hooks/useWerkwijzeStatus.js +60 -4
  65. package/dist-lib/index.d.ts +13 -0
  66. package/dist-lib/index.d.ts.map +1 -1
  67. package/dist-lib/index.js +13 -0
  68. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1600 -54
  69. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  70. package/dist-lib/integrations/supabase/client.server.d.ts +1600 -54
  71. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  72. package/dist-lib/integrations/supabase/client.server.js +1 -1
  73. package/dist-lib/integrations/supabase/moduleClient.d.ts +1600 -54
  74. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  75. package/dist-lib/integrations/supabase/types.d.ts +1618 -50
  76. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  77. package/dist-lib/lib/cartPlanRequests.server.d.ts +1 -1
  78. package/dist-lib/lib/cartPlanRequests.server.d.ts.map +1 -1
  79. package/dist-lib/lib/cartPlanRequests.server.js +49 -8
  80. package/dist-lib/lib/floridayDocuments.functions.d.ts +4644 -6
  81. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  82. package/dist-lib/lib/floridayDocuments.functions.js +1 -1
  83. package/dist-lib/lib/floridayDocuments.server.d.ts +14 -0
  84. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  85. package/dist-lib/lib/floridayDocuments.server.js +58 -0
  86. package/dist-lib/lib/floridayGuard.server.d.ts +1 -1
  87. package/dist-lib/lib/floridayGuard.server.d.ts.map +1 -1
  88. package/dist-lib/lib/floridayGuard.server.js +6 -3
  89. package/dist-lib/lib/floridayPush.functions.d.ts +1600 -54
  90. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  91. package/dist-lib/lib/floridayPush.functions.js +1 -1
  92. package/dist-lib/lib/flowGraph.d.ts +43 -0
  93. package/dist-lib/lib/flowGraph.d.ts.map +1 -0
  94. package/dist-lib/lib/flowGraph.js +153 -0
  95. package/dist-lib/lib/flowNodes.d.ts +23 -0
  96. package/dist-lib/lib/flowNodes.d.ts.map +1 -0
  97. package/dist-lib/lib/flowNodes.js +58 -0
  98. package/dist-lib/lib/flowRoute.d.ts +107 -0
  99. package/dist-lib/lib/flowRoute.d.ts.map +1 -0
  100. package/dist-lib/lib/flowRoute.js +280 -0
  101. package/dist-lib/lib/flowTree.d.ts +64 -0
  102. package/dist-lib/lib/flowTree.d.ts.map +1 -0
  103. package/dist-lib/lib/flowTree.js +519 -0
  104. package/dist-lib/lib/handlers/index.d.ts +1 -0
  105. package/dist-lib/lib/handlers/index.d.ts.map +1 -1
  106. package/dist-lib/lib/handlers/index.js +1 -0
  107. package/dist-lib/lib/handlers/logistics-shipping-note-now.server.d.ts +3 -0
  108. package/dist-lib/lib/handlers/logistics-shipping-note-now.server.d.ts.map +1 -0
  109. package/dist-lib/lib/handlers/logistics-shipping-note-now.server.js +100 -0
  110. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  111. package/dist-lib/lib/handlers/logistics-tick.server.js +97 -2
  112. package/dist-lib/lib/loadCarrierPlanner.d.ts +2 -0
  113. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  114. package/dist-lib/lib/loadCarrierPlanner.js +18 -0
  115. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +7740 -10
  116. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  117. package/dist-lib/lib/loadCarrierPlanning.functions.js +1 -1
  118. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +9 -0
  119. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  120. package/dist-lib/lib/loadCarrierPlanning.server.js +44 -17
  121. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  122. package/dist-lib/lib/logisticsPlanner.js +14 -2
  123. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +3096 -4
  124. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  125. package/dist-lib/lib/logisticsRecalcJob.functions.js +1 -1
  126. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1600 -54
  127. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  128. package/dist-lib/lib/logisticsRecalculate.functions.js +1 -1
  129. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  130. package/dist-lib/lib/modulePrompts.js +3459 -2677
  131. package/dist-lib/lib/nodeTrace.d.ts +61 -0
  132. package/dist-lib/lib/nodeTrace.d.ts.map +1 -0
  133. package/dist-lib/lib/nodeTrace.js +191 -0
  134. package/dist-lib/lib/pickQueueCleanup.server.d.ts +14 -0
  135. package/dist-lib/lib/pickQueueCleanup.server.d.ts.map +1 -0
  136. package/dist-lib/lib/pickQueueCleanup.server.js +80 -0
  137. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  138. package/dist-lib/lib/planQueue.server.js +140 -0
  139. package/dist-lib/lib/ruleEngineImpact.d.ts.map +1 -1
  140. package/dist-lib/lib/ruleEngineImpact.js +11 -4
  141. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  142. package/dist-lib/lib/ruleEngineSchema.js +50 -6
  143. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  144. package/dist-lib/lib/ruleEngineWizard.js +3 -1
  145. package/dist-lib/lib/shippingNoteQueue.server.d.ts +18 -0
  146. package/dist-lib/lib/shippingNoteQueue.server.d.ts.map +1 -0
  147. package/dist-lib/lib/shippingNoteQueue.server.js +304 -0
  148. package/dist-lib/lib/trace.server.d.ts +75 -0
  149. package/dist-lib/lib/trace.server.d.ts.map +1 -0
  150. package/dist-lib/lib/trace.server.js +75 -0
  151. package/dist-lib/lib/vakUitleg.d.ts +19 -0
  152. package/dist-lib/lib/vakUitleg.d.ts.map +1 -0
  153. package/dist-lib/lib/vakUitleg.js +132 -0
  154. package/package.json +26 -2
  155. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +0 -2
  156. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +0 -1
  157. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +0 -41
  158. package/dist-lib/integrations/supabase/client.d.ts +0 -20293
  159. package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
  160. package/dist-lib/integrations/supabase/client.js +0 -13
@@ -1823,6 +1823,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1823
1823
  };
1824
1824
  Relationships: [];
1825
1825
  };
1826
+ customer_assortment_items: {
1827
+ Row: {
1828
+ created_at: string;
1829
+ customer_key: string;
1830
+ id: string;
1831
+ in_assortment: boolean;
1832
+ manual_override: boolean;
1833
+ source: string;
1834
+ synced_at: string | null;
1835
+ trade_item_key: string;
1836
+ updated_at: string;
1837
+ };
1838
+ Insert: {
1839
+ created_at?: string;
1840
+ customer_key: string;
1841
+ id?: string;
1842
+ in_assortment?: boolean;
1843
+ manual_override?: boolean;
1844
+ source?: string;
1845
+ synced_at?: string | null;
1846
+ trade_item_key: string;
1847
+ updated_at?: string;
1848
+ };
1849
+ Update: {
1850
+ created_at?: string;
1851
+ customer_key?: string;
1852
+ id?: string;
1853
+ in_assortment?: boolean;
1854
+ manual_override?: boolean;
1855
+ source?: string;
1856
+ synced_at?: string | null;
1857
+ trade_item_key?: string;
1858
+ updated_at?: string;
1859
+ };
1860
+ Relationships: [];
1861
+ };
1826
1862
  customer_audit_log: {
1827
1863
  Row: {
1828
1864
  action: string;
@@ -2225,6 +2261,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2225
2261
  };
2226
2262
  Relationships: [];
2227
2263
  };
2264
+ customer_product_stickers: {
2265
+ Row: {
2266
+ content_hash: string | null;
2267
+ created_at: string;
2268
+ customer_key: string;
2269
+ file_name: string;
2270
+ file_path: string;
2271
+ file_size: number | null;
2272
+ floriday_sticker_id: string | null;
2273
+ floriday_synced_at: string | null;
2274
+ height_mm: number | null;
2275
+ id: string;
2276
+ mime_type: string | null;
2277
+ source: string;
2278
+ trade_item_key: string;
2279
+ updated_at: string;
2280
+ uploaded_by: string | null;
2281
+ width_mm: number | null;
2282
+ };
2283
+ Insert: {
2284
+ content_hash?: string | null;
2285
+ created_at?: string;
2286
+ customer_key: string;
2287
+ file_name: string;
2288
+ file_path: string;
2289
+ file_size?: number | null;
2290
+ floriday_sticker_id?: string | null;
2291
+ floriday_synced_at?: string | null;
2292
+ height_mm?: number | null;
2293
+ id?: string;
2294
+ mime_type?: string | null;
2295
+ source?: string;
2296
+ trade_item_key: string;
2297
+ updated_at?: string;
2298
+ uploaded_by?: string | null;
2299
+ width_mm?: number | null;
2300
+ };
2301
+ Update: {
2302
+ content_hash?: string | null;
2303
+ created_at?: string;
2304
+ customer_key?: string;
2305
+ file_name?: string;
2306
+ file_path?: string;
2307
+ file_size?: number | null;
2308
+ floriday_sticker_id?: string | null;
2309
+ floriday_synced_at?: string | null;
2310
+ height_mm?: number | null;
2311
+ id?: string;
2312
+ mime_type?: string | null;
2313
+ source?: string;
2314
+ trade_item_key?: string;
2315
+ updated_at?: string;
2316
+ uploaded_by?: string | null;
2317
+ width_mm?: number | null;
2318
+ };
2319
+ Relationships: [];
2320
+ };
2228
2321
  customer_selected_assortment: {
2229
2322
  Row: {
2230
2323
  article_number: string | null;
@@ -2273,6 +2366,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2273
2366
  referencedColumns: ["id"];
2274
2367
  }];
2275
2368
  };
2369
+ customer_sticker_settings: {
2370
+ Row: {
2371
+ created_at: string;
2372
+ customer_key: string;
2373
+ height_mm: number;
2374
+ updated_at: string;
2375
+ width_mm: number;
2376
+ };
2377
+ Insert: {
2378
+ created_at?: string;
2379
+ customer_key: string;
2380
+ height_mm?: number;
2381
+ updated_at?: string;
2382
+ width_mm?: number;
2383
+ };
2384
+ Update: {
2385
+ created_at?: string;
2386
+ customer_key?: string;
2387
+ height_mm?: number;
2388
+ updated_at?: string;
2389
+ width_mm?: number;
2390
+ };
2391
+ Relationships: [];
2392
+ };
2276
2393
  customer_trade_settings: {
2277
2394
  Row: {
2278
2395
  category: string;
@@ -3598,6 +3715,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3598
3715
  };
3599
3716
  email_auth_outbox: {
3600
3717
  Row: {
3718
+ attachments: import("./types").Json;
3601
3719
  attempts: number;
3602
3720
  bcc_addresses: string[];
3603
3721
  cc_addresses: string[];
@@ -3620,6 +3738,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3620
3738
  updated_at: string;
3621
3739
  };
3622
3740
  Insert: {
3741
+ attachments?: import("./types").Json;
3623
3742
  attempts?: number;
3624
3743
  bcc_addresses?: string[];
3625
3744
  cc_addresses?: string[];
@@ -3642,6 +3761,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3642
3761
  updated_at?: string;
3643
3762
  };
3644
3763
  Update: {
3764
+ attachments?: import("./types").Json;
3645
3765
  attempts?: number;
3646
3766
  bcc_addresses?: string[];
3647
3767
  cc_addresses?: string[];
@@ -5603,6 +5723,102 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5603
5723
  referencedColumns: ["id"];
5604
5724
  }];
5605
5725
  };
5726
+ floriday_api_log: {
5727
+ Row: {
5728
+ action: string | null;
5729
+ caller: string | null;
5730
+ connection_id: string | null;
5731
+ created_at: string;
5732
+ cursor_from: number | null;
5733
+ direction: string;
5734
+ duration_ms: number | null;
5735
+ environment: string | null;
5736
+ error: string | null;
5737
+ floriday_id: string | null;
5738
+ floriday_reference: string | null;
5739
+ http_status: number;
5740
+ id: string;
5741
+ item_count: number | null;
5742
+ kind: string | null;
5743
+ local_id: string | null;
5744
+ local_reference: string | null;
5745
+ method: string;
5746
+ module: string | null;
5747
+ ok: boolean;
5748
+ path: string;
5749
+ request: import("./types").Json | null;
5750
+ resource_type: string | null;
5751
+ response: import("./types").Json | null;
5752
+ write_log_id: string | null;
5753
+ };
5754
+ Insert: {
5755
+ action?: string | null;
5756
+ caller?: string | null;
5757
+ connection_id?: string | null;
5758
+ created_at?: string;
5759
+ cursor_from?: number | null;
5760
+ direction: string;
5761
+ duration_ms?: number | null;
5762
+ environment?: string | null;
5763
+ error?: string | null;
5764
+ floriday_id?: string | null;
5765
+ floriday_reference?: string | null;
5766
+ http_status?: number;
5767
+ id?: string;
5768
+ item_count?: number | null;
5769
+ kind?: string | null;
5770
+ local_id?: string | null;
5771
+ local_reference?: string | null;
5772
+ method: string;
5773
+ module?: string | null;
5774
+ ok?: boolean;
5775
+ path: string;
5776
+ request?: import("./types").Json | null;
5777
+ resource_type?: string | null;
5778
+ response?: import("./types").Json | null;
5779
+ write_log_id?: string | null;
5780
+ };
5781
+ Update: {
5782
+ action?: string | null;
5783
+ caller?: string | null;
5784
+ connection_id?: string | null;
5785
+ created_at?: string;
5786
+ cursor_from?: number | null;
5787
+ direction?: string;
5788
+ duration_ms?: number | null;
5789
+ environment?: string | null;
5790
+ error?: string | null;
5791
+ floriday_id?: string | null;
5792
+ floriday_reference?: string | null;
5793
+ http_status?: number;
5794
+ id?: string;
5795
+ item_count?: number | null;
5796
+ kind?: string | null;
5797
+ local_id?: string | null;
5798
+ local_reference?: string | null;
5799
+ method?: string;
5800
+ module?: string | null;
5801
+ ok?: boolean;
5802
+ path?: string;
5803
+ request?: import("./types").Json | null;
5804
+ resource_type?: string | null;
5805
+ response?: import("./types").Json | null;
5806
+ write_log_id?: string | null;
5807
+ };
5808
+ Relationships: [{
5809
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5810
+ columns: ["connection_id"];
5811
+ isOneToOne: false;
5812
+ referencedRelation: "floriday_connections";
5813
+ referencedColumns: ["id"];
5814
+ }, {
5815
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5816
+ columns: ["write_log_id"];
5817
+ isOneToOne: false;
5818
+ referencedRelation: "floriday_write_log";
5819
+ referencedColumns: ["id"];
5820
+ }];
5821
+ };
5606
5822
  floriday_auction_letters_cache: {
5607
5823
  Row: {
5608
5824
  auction_letter_code: string;
@@ -5810,6 +6026,84 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5810
6026
  referencedColumns: ["id"];
5811
6027
  }];
5812
6028
  };
6029
+ floriday_catalog_prices_cache: {
6030
+ Row: {
6031
+ connection_id: string;
6032
+ created_at: string;
6033
+ currency: string;
6034
+ id: string;
6035
+ is_deleted: boolean;
6036
+ price: number | null;
6037
+ price_group_id: string | null;
6038
+ price_group_name: string | null;
6039
+ price_type: string;
6040
+ raw: import("./types").Json | null;
6041
+ sales_unit: string | null;
6042
+ sequence_number: number;
6043
+ supplier_article_code: string | null;
6044
+ supply_line_id: string;
6045
+ synced_at: string;
6046
+ trade_item_id: string | null;
6047
+ updated_at: string;
6048
+ valid_from: string | null;
6049
+ valid_to: string | null;
6050
+ week: number | null;
6051
+ year: number | null;
6052
+ };
6053
+ Insert: {
6054
+ connection_id: string;
6055
+ created_at?: string;
6056
+ currency?: string;
6057
+ id?: string;
6058
+ is_deleted?: boolean;
6059
+ price?: number | null;
6060
+ price_group_id?: string | null;
6061
+ price_group_name?: string | null;
6062
+ price_type?: string;
6063
+ raw?: import("./types").Json | null;
6064
+ sales_unit?: string | null;
6065
+ sequence_number?: number;
6066
+ supplier_article_code?: string | null;
6067
+ supply_line_id: string;
6068
+ synced_at?: string;
6069
+ trade_item_id?: string | null;
6070
+ updated_at?: string;
6071
+ valid_from?: string | null;
6072
+ valid_to?: string | null;
6073
+ week?: number | null;
6074
+ year?: number | null;
6075
+ };
6076
+ Update: {
6077
+ connection_id?: string;
6078
+ created_at?: string;
6079
+ currency?: string;
6080
+ id?: string;
6081
+ is_deleted?: boolean;
6082
+ price?: number | null;
6083
+ price_group_id?: string | null;
6084
+ price_group_name?: string | null;
6085
+ price_type?: string;
6086
+ raw?: import("./types").Json | null;
6087
+ sales_unit?: string | null;
6088
+ sequence_number?: number;
6089
+ supplier_article_code?: string | null;
6090
+ supply_line_id?: string;
6091
+ synced_at?: string;
6092
+ trade_item_id?: string | null;
6093
+ updated_at?: string;
6094
+ valid_from?: string | null;
6095
+ valid_to?: string | null;
6096
+ week?: number | null;
6097
+ year?: number | null;
6098
+ };
6099
+ Relationships: [{
6100
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6101
+ columns: ["connection_id"];
6102
+ isOneToOne: false;
6103
+ referencedRelation: "floriday_connections";
6104
+ referencedColumns: ["id"];
6105
+ }];
6106
+ };
5813
6107
  floriday_clock_presales_cache: {
5814
6108
  Row: {
5815
6109
  buyer_organization_id: string | null;
@@ -6725,6 +7019,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6725
7019
  referencedColumns: ["id"];
6726
7020
  }];
6727
7021
  };
7022
+ floriday_link_templates: {
7023
+ Row: {
7024
+ created_at: string;
7025
+ floriday_url_template: string | null;
7026
+ is_active: boolean;
7027
+ label: string;
7028
+ local_url_template: string | null;
7029
+ resource_type: string;
7030
+ updated_at: string;
7031
+ };
7032
+ Insert: {
7033
+ created_at?: string;
7034
+ floriday_url_template?: string | null;
7035
+ is_active?: boolean;
7036
+ label: string;
7037
+ local_url_template?: string | null;
7038
+ resource_type: string;
7039
+ updated_at?: string;
7040
+ };
7041
+ Update: {
7042
+ created_at?: string;
7043
+ floriday_url_template?: string | null;
7044
+ is_active?: boolean;
7045
+ label?: string;
7046
+ local_url_template?: string | null;
7047
+ resource_type?: string;
7048
+ updated_at?: string;
7049
+ };
7050
+ Relationships: [];
7051
+ };
7052
+ floriday_log_retention: {
7053
+ Row: {
7054
+ created_at: string;
7055
+ direction: string | null;
7056
+ id: string;
7057
+ keep_failed_days: number | null;
7058
+ keep_ok_days: number | null;
7059
+ note: string | null;
7060
+ resource_type: string | null;
7061
+ updated_at: string;
7062
+ };
7063
+ Insert: {
7064
+ created_at?: string;
7065
+ direction?: string | null;
7066
+ id?: string;
7067
+ keep_failed_days?: number | null;
7068
+ keep_ok_days?: number | null;
7069
+ note?: string | null;
7070
+ resource_type?: string | null;
7071
+ updated_at?: string;
7072
+ };
7073
+ Update: {
7074
+ created_at?: string;
7075
+ direction?: string | null;
7076
+ id?: string;
7077
+ keep_failed_days?: number | null;
7078
+ keep_ok_days?: number | null;
7079
+ note?: string | null;
7080
+ resource_type?: string | null;
7081
+ updated_at?: string;
7082
+ };
7083
+ Relationships: [];
7084
+ };
6728
7085
  floriday_logistic_labels_cache: {
6729
7086
  Row: {
6730
7087
  byte_size: number | null;
@@ -10289,14 +10646,152 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10289
10646
  };
10290
10647
  Relationships: [];
10291
10648
  };
10292
- logistics_pickup_moments: {
10649
+ logistics_opening_exceptions: {
10293
10650
  Row: {
10294
- carrier_ref: string | null;
10651
+ closes: string | null;
10295
10652
  created_at: string;
10653
+ day: string;
10296
10654
  id: string;
10297
- label: string | null;
10298
- moment_date: string;
10299
- pickup_time: string;
10655
+ is_closed: boolean;
10656
+ note: string | null;
10657
+ opens: string | null;
10658
+ };
10659
+ Insert: {
10660
+ closes?: string | null;
10661
+ created_at?: string;
10662
+ day: string;
10663
+ id?: string;
10664
+ is_closed?: boolean;
10665
+ note?: string | null;
10666
+ opens?: string | null;
10667
+ };
10668
+ Update: {
10669
+ closes?: string | null;
10670
+ created_at?: string;
10671
+ day?: string;
10672
+ id?: string;
10673
+ is_closed?: boolean;
10674
+ note?: string | null;
10675
+ opens?: string | null;
10676
+ };
10677
+ Relationships: [];
10678
+ };
10679
+ logistics_opening_hours: {
10680
+ Row: {
10681
+ closes: string;
10682
+ created_at: string;
10683
+ id: string;
10684
+ is_active: boolean;
10685
+ note: string | null;
10686
+ opens: string;
10687
+ weekday: number;
10688
+ };
10689
+ Insert: {
10690
+ closes: string;
10691
+ created_at?: string;
10692
+ id?: string;
10693
+ is_active?: boolean;
10694
+ note?: string | null;
10695
+ opens: string;
10696
+ weekday: number;
10697
+ };
10698
+ Update: {
10699
+ closes?: string;
10700
+ created_at?: string;
10701
+ id?: string;
10702
+ is_active?: boolean;
10703
+ note?: string | null;
10704
+ opens?: string;
10705
+ weekday?: number;
10706
+ };
10707
+ Relationships: [];
10708
+ };
10709
+ logistics_order_merges: {
10710
+ Row: {
10711
+ group_key: string;
10712
+ id: string;
10713
+ items_moved: number;
10714
+ kept_order_id: string;
10715
+ kept_order_number: string | null;
10716
+ merged_at: string;
10717
+ merged_order_id: string;
10718
+ merged_order_number: string | null;
10719
+ sales_order_id: string | null;
10720
+ };
10721
+ Insert: {
10722
+ group_key: string;
10723
+ id?: string;
10724
+ items_moved?: number;
10725
+ kept_order_id: string;
10726
+ kept_order_number?: string | null;
10727
+ merged_at?: string;
10728
+ merged_order_id: string;
10729
+ merged_order_number?: string | null;
10730
+ sales_order_id?: string | null;
10731
+ };
10732
+ Update: {
10733
+ group_key?: string;
10734
+ id?: string;
10735
+ items_moved?: number;
10736
+ kept_order_id?: string;
10737
+ kept_order_number?: string | null;
10738
+ merged_at?: string;
10739
+ merged_order_id?: string;
10740
+ merged_order_number?: string | null;
10741
+ sales_order_id?: string | null;
10742
+ };
10743
+ Relationships: [];
10744
+ };
10745
+ logistics_pick_data_requests: {
10746
+ Row: {
10747
+ actions: import("./types").Json;
10748
+ created_at: string;
10749
+ event_id: string | null;
10750
+ finished_at: string | null;
10751
+ id: string;
10752
+ missing: import("./types").Json;
10753
+ order_ref: string;
10754
+ reason: string | null;
10755
+ result: import("./types").Json | null;
10756
+ status: string;
10757
+ unit_ref: string | null;
10758
+ };
10759
+ Insert: {
10760
+ actions?: import("./types").Json;
10761
+ created_at?: string;
10762
+ event_id?: string | null;
10763
+ finished_at?: string | null;
10764
+ id?: string;
10765
+ missing?: import("./types").Json;
10766
+ order_ref: string;
10767
+ reason?: string | null;
10768
+ result?: import("./types").Json | null;
10769
+ status?: string;
10770
+ unit_ref?: string | null;
10771
+ };
10772
+ Update: {
10773
+ actions?: import("./types").Json;
10774
+ created_at?: string;
10775
+ event_id?: string | null;
10776
+ finished_at?: string | null;
10777
+ id?: string;
10778
+ missing?: import("./types").Json;
10779
+ order_ref?: string;
10780
+ reason?: string | null;
10781
+ result?: import("./types").Json | null;
10782
+ status?: string;
10783
+ unit_ref?: string | null;
10784
+ };
10785
+ Relationships: [];
10786
+ };
10787
+ logistics_pickup_moments: {
10788
+ Row: {
10789
+ carrier_ref: string | null;
10790
+ created_at: string;
10791
+ id: string;
10792
+ label: string | null;
10793
+ moment_date: string;
10794
+ pickup_time: string;
10300
10795
  sequence: number;
10301
10796
  updated_at: string;
10302
10797
  user_id: string;
@@ -10748,6 +11243,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10748
11243
  };
10749
11244
  Relationships: [];
10750
11245
  };
11246
+ logistics_slip_shipping_note: {
11247
+ Row: {
11248
+ attempts: number;
11249
+ batch_key: string | null;
11250
+ cart_id: string | null;
11251
+ created_at: string;
11252
+ error: string | null;
11253
+ error_code: string | null;
11254
+ fulfillment_order_id: string | null;
11255
+ id: string;
11256
+ locked_until: string | null;
11257
+ next_attempt_at: string | null;
11258
+ order_id: string | null;
11259
+ order_number: string | null;
11260
+ print_job_id: string | null;
11261
+ printer_id: string | null;
11262
+ retry_class: string | null;
11263
+ slip_job_id: string;
11264
+ status: string;
11265
+ updated_at: string;
11266
+ };
11267
+ Insert: {
11268
+ attempts?: number;
11269
+ batch_key?: string | null;
11270
+ cart_id?: string | null;
11271
+ created_at?: string;
11272
+ error?: string | null;
11273
+ error_code?: string | null;
11274
+ fulfillment_order_id?: string | null;
11275
+ id?: string;
11276
+ locked_until?: string | null;
11277
+ next_attempt_at?: string | null;
11278
+ order_id?: string | null;
11279
+ order_number?: string | null;
11280
+ print_job_id?: string | null;
11281
+ printer_id?: string | null;
11282
+ retry_class?: string | null;
11283
+ slip_job_id: string;
11284
+ status?: string;
11285
+ updated_at?: string;
11286
+ };
11287
+ Update: {
11288
+ attempts?: number;
11289
+ batch_key?: string | null;
11290
+ cart_id?: string | null;
11291
+ created_at?: string;
11292
+ error?: string | null;
11293
+ error_code?: string | null;
11294
+ fulfillment_order_id?: string | null;
11295
+ id?: string;
11296
+ locked_until?: string | null;
11297
+ next_attempt_at?: string | null;
11298
+ order_id?: string | null;
11299
+ order_number?: string | null;
11300
+ print_job_id?: string | null;
11301
+ printer_id?: string | null;
11302
+ retry_class?: string | null;
11303
+ slip_job_id?: string;
11304
+ status?: string;
11305
+ updated_at?: string;
11306
+ };
11307
+ Relationships: [];
11308
+ };
10751
11309
  logistics_staff_planning: {
10752
11310
  Row: {
10753
11311
  created_at: string;
@@ -11081,6 +11639,141 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11081
11639
  };
11082
11640
  Relationships: [];
11083
11641
  };
11642
+ logistics_time_settings: {
11643
+ Row: {
11644
+ id: boolean;
11645
+ timezone: string;
11646
+ updated_at: string;
11647
+ };
11648
+ Insert: {
11649
+ id?: boolean;
11650
+ timezone: string;
11651
+ updated_at?: string;
11652
+ };
11653
+ Update: {
11654
+ id?: boolean;
11655
+ timezone?: string;
11656
+ updated_at?: string;
11657
+ };
11658
+ Relationships: [];
11659
+ };
11660
+ logistics_trace_events: {
11661
+ Row: {
11662
+ actor: string | null;
11663
+ attempts: number;
11664
+ calc: import("./types").Json | null;
11665
+ cart_ref: string | null;
11666
+ created_at: string;
11667
+ db_action: string | null;
11668
+ db_new: import("./types").Json | null;
11669
+ db_old: import("./types").Json | null;
11670
+ db_record: string | null;
11671
+ db_table: string | null;
11672
+ decision: string | null;
11673
+ duration_ms: number | null;
11674
+ error: string | null;
11675
+ error_class: string | null;
11676
+ external_action: string | null;
11677
+ external_ref: string | null;
11678
+ external_response: import("./types").Json | null;
11679
+ external_status: string | null;
11680
+ external_system: string | null;
11681
+ id: string;
11682
+ input: import("./types").Json | null;
11683
+ next_attempt_at: string | null;
11684
+ next_step: string | null;
11685
+ node_id: string | null;
11686
+ order_ref: string | null;
11687
+ order_source: string | null;
11688
+ output: import("./types").Json | null;
11689
+ phase: string;
11690
+ reads: import("./types").Json | null;
11691
+ reason: string | null;
11692
+ rule: string | null;
11693
+ slip_ref: string | null;
11694
+ status: string;
11695
+ step: string;
11696
+ trace_id: string;
11697
+ values_used: import("./types").Json | null;
11698
+ };
11699
+ Insert: {
11700
+ actor?: string | null;
11701
+ attempts?: number;
11702
+ calc?: import("./types").Json | null;
11703
+ cart_ref?: string | null;
11704
+ created_at?: string;
11705
+ db_action?: string | null;
11706
+ db_new?: import("./types").Json | null;
11707
+ db_old?: import("./types").Json | null;
11708
+ db_record?: string | null;
11709
+ db_table?: string | null;
11710
+ decision?: string | null;
11711
+ duration_ms?: number | null;
11712
+ error?: string | null;
11713
+ error_class?: string | null;
11714
+ external_action?: string | null;
11715
+ external_ref?: string | null;
11716
+ external_response?: import("./types").Json | null;
11717
+ external_status?: string | null;
11718
+ external_system?: string | null;
11719
+ id?: string;
11720
+ input?: import("./types").Json | null;
11721
+ next_attempt_at?: string | null;
11722
+ next_step?: string | null;
11723
+ node_id?: string | null;
11724
+ order_ref?: string | null;
11725
+ order_source?: string | null;
11726
+ output?: import("./types").Json | null;
11727
+ phase: string;
11728
+ reads?: import("./types").Json | null;
11729
+ reason?: string | null;
11730
+ rule?: string | null;
11731
+ slip_ref?: string | null;
11732
+ status: string;
11733
+ step: string;
11734
+ trace_id?: string;
11735
+ values_used?: import("./types").Json | null;
11736
+ };
11737
+ Update: {
11738
+ actor?: string | null;
11739
+ attempts?: number;
11740
+ calc?: import("./types").Json | null;
11741
+ cart_ref?: string | null;
11742
+ created_at?: string;
11743
+ db_action?: string | null;
11744
+ db_new?: import("./types").Json | null;
11745
+ db_old?: import("./types").Json | null;
11746
+ db_record?: string | null;
11747
+ db_table?: string | null;
11748
+ decision?: string | null;
11749
+ duration_ms?: number | null;
11750
+ error?: string | null;
11751
+ error_class?: string | null;
11752
+ external_action?: string | null;
11753
+ external_ref?: string | null;
11754
+ external_response?: import("./types").Json | null;
11755
+ external_status?: string | null;
11756
+ external_system?: string | null;
11757
+ id?: string;
11758
+ input?: import("./types").Json | null;
11759
+ next_attempt_at?: string | null;
11760
+ next_step?: string | null;
11761
+ node_id?: string | null;
11762
+ order_ref?: string | null;
11763
+ order_source?: string | null;
11764
+ output?: import("./types").Json | null;
11765
+ phase?: string;
11766
+ reads?: import("./types").Json | null;
11767
+ reason?: string | null;
11768
+ rule?: string | null;
11769
+ slip_ref?: string | null;
11770
+ status?: string;
11771
+ step?: string;
11772
+ trace_id?: string;
11773
+ values_used?: import("./types").Json | null;
11774
+ };
11775
+ Relationships: [];
11776
+ };
11084
11777
  logistics_variables: {
11085
11778
  Row: {
11086
11779
  created_at: string;
@@ -13471,6 +14164,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13471
14164
  customer_name: string;
13472
14165
  deleted_at: string | null;
13473
14166
  delivery_date: string | null;
14167
+ floriday_order_group_key: string | null;
13474
14168
  floriday_sales_order_id: string | null;
13475
14169
  id: string;
13476
14170
  invoice_due_at: string | null;
@@ -13498,6 +14192,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13498
14192
  customer_name?: string;
13499
14193
  deleted_at?: string | null;
13500
14194
  delivery_date?: string | null;
14195
+ floriday_order_group_key?: string | null;
13501
14196
  floriday_sales_order_id?: string | null;
13502
14197
  id?: string;
13503
14198
  invoice_due_at?: string | null;
@@ -13525,6 +14220,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13525
14220
  customer_name?: string;
13526
14221
  deleted_at?: string | null;
13527
14222
  delivery_date?: string | null;
14223
+ floriday_order_group_key?: string | null;
13528
14224
  floriday_sales_order_id?: string | null;
13529
14225
  id?: string;
13530
14226
  invoice_due_at?: string | null;
@@ -14825,69 +15521,186 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14825
15521
  referencedColumns: ["id"];
14826
15522
  }];
14827
15523
  };
14828
- print_agents: {
15524
+ price_list_rows: {
14829
15525
  Row: {
14830
- actief: boolean;
15526
+ action: string;
14831
15527
  created_at: string;
14832
- gemelde_printers: import("./types").Json;
14833
15528
  id: string;
14834
- laatst_gezien: string | null;
14835
- locatie: string;
14836
- naam: string;
14837
- pairing_code_hash: string | null;
14838
- pairing_expires_at: string | null;
14839
- pairing_used_at: string | null;
14840
- token_hash: string;
14841
- updated_at: string;
14842
- versie: string;
15529
+ message: string | null;
15530
+ parsed: import("./types").Json;
15531
+ price_list_id: string;
15532
+ raw: import("./types").Json;
15533
+ row_number: number;
15534
+ supplier_product_id: string | null;
14843
15535
  };
14844
15536
  Insert: {
14845
- actief?: boolean;
15537
+ action?: string;
14846
15538
  created_at?: string;
14847
- gemelde_printers?: import("./types").Json;
14848
15539
  id?: string;
14849
- laatst_gezien?: string | null;
14850
- locatie?: string;
14851
- naam: string;
14852
- pairing_code_hash?: string | null;
14853
- pairing_expires_at?: string | null;
14854
- pairing_used_at?: string | null;
14855
- token_hash: string;
14856
- updated_at?: string;
14857
- versie?: string;
15540
+ message?: string | null;
15541
+ parsed?: import("./types").Json;
15542
+ price_list_id: string;
15543
+ raw?: import("./types").Json;
15544
+ row_number: number;
15545
+ supplier_product_id?: string | null;
14858
15546
  };
14859
15547
  Update: {
14860
- actief?: boolean;
15548
+ action?: string;
14861
15549
  created_at?: string;
14862
- gemelde_printers?: import("./types").Json;
14863
15550
  id?: string;
14864
- laatst_gezien?: string | null;
14865
- locatie?: string;
14866
- naam?: string;
14867
- pairing_code_hash?: string | null;
14868
- pairing_expires_at?: string | null;
14869
- pairing_used_at?: string | null;
14870
- token_hash?: string;
14871
- updated_at?: string;
14872
- versie?: string;
15551
+ message?: string | null;
15552
+ parsed?: import("./types").Json;
15553
+ price_list_id?: string;
15554
+ raw?: import("./types").Json;
15555
+ row_number?: number;
15556
+ supplier_product_id?: string | null;
14873
15557
  };
14874
- Relationships: [];
15558
+ Relationships: [{
15559
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
15560
+ columns: ["price_list_id"];
15561
+ isOneToOne: false;
15562
+ referencedRelation: "price_lists";
15563
+ referencedColumns: ["id"];
15564
+ }, {
15565
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
15566
+ columns: ["supplier_product_id"];
15567
+ isOneToOne: false;
15568
+ referencedRelation: "supplier_products";
15569
+ referencedColumns: ["id"];
15570
+ }];
14875
15571
  };
14876
- print_dedupe_events: {
15572
+ price_lists: {
14877
15573
  Row: {
14878
- bestaande_job_id: string | null;
14879
15574
  created_at: string;
14880
- detail: string | null;
14881
- documentnaam: string | null;
14882
- documenttype: string | null;
15575
+ created_by: string | null;
15576
+ file_hash: string | null;
15577
+ file_name: string;
15578
+ file_path: string | null;
15579
+ headers: string[];
14883
15580
  id: string;
14884
- idempotentie_sleutel: string;
14885
- reden: string;
14886
- };
14887
- Insert: {
14888
- bestaande_job_id?: string | null;
14889
- created_at?: string;
14890
- detail?: string | null;
15581
+ preview: import("./types").Json;
15582
+ processed_at: string | null;
15583
+ reason: string | null;
15584
+ row_count: number;
15585
+ sheet_name: string | null;
15586
+ source: string;
15587
+ stats: import("./types").Json;
15588
+ status: string;
15589
+ supplier_guess: string | null;
15590
+ supplier_id: string | null;
15591
+ updated_at: string;
15592
+ };
15593
+ Insert: {
15594
+ created_at?: string;
15595
+ created_by?: string | null;
15596
+ file_hash?: string | null;
15597
+ file_name: string;
15598
+ file_path?: string | null;
15599
+ headers?: string[];
15600
+ id?: string;
15601
+ preview?: import("./types").Json;
15602
+ processed_at?: string | null;
15603
+ reason?: string | null;
15604
+ row_count?: number;
15605
+ sheet_name?: string | null;
15606
+ source?: string;
15607
+ stats?: import("./types").Json;
15608
+ status?: string;
15609
+ supplier_guess?: string | null;
15610
+ supplier_id?: string | null;
15611
+ updated_at?: string;
15612
+ };
15613
+ Update: {
15614
+ created_at?: string;
15615
+ created_by?: string | null;
15616
+ file_hash?: string | null;
15617
+ file_name?: string;
15618
+ file_path?: string | null;
15619
+ headers?: string[];
15620
+ id?: string;
15621
+ preview?: import("./types").Json;
15622
+ processed_at?: string | null;
15623
+ reason?: string | null;
15624
+ row_count?: number;
15625
+ sheet_name?: string | null;
15626
+ source?: string;
15627
+ stats?: import("./types").Json;
15628
+ status?: string;
15629
+ supplier_guess?: string | null;
15630
+ supplier_id?: string | null;
15631
+ updated_at?: string;
15632
+ };
15633
+ Relationships: [{
15634
+ foreignKeyName: "price_lists_supplier_id_fkey";
15635
+ columns: ["supplier_id"];
15636
+ isOneToOne: false;
15637
+ referencedRelation: "suppliers";
15638
+ referencedColumns: ["id"];
15639
+ }];
15640
+ };
15641
+ print_agents: {
15642
+ Row: {
15643
+ actief: boolean;
15644
+ created_at: string;
15645
+ gemelde_printers: import("./types").Json;
15646
+ id: string;
15647
+ laatst_gezien: string | null;
15648
+ locatie: string;
15649
+ naam: string;
15650
+ pairing_code_hash: string | null;
15651
+ pairing_expires_at: string | null;
15652
+ pairing_used_at: string | null;
15653
+ token_hash: string;
15654
+ updated_at: string;
15655
+ versie: string;
15656
+ };
15657
+ Insert: {
15658
+ actief?: boolean;
15659
+ created_at?: string;
15660
+ gemelde_printers?: import("./types").Json;
15661
+ id?: string;
15662
+ laatst_gezien?: string | null;
15663
+ locatie?: string;
15664
+ naam: string;
15665
+ pairing_code_hash?: string | null;
15666
+ pairing_expires_at?: string | null;
15667
+ pairing_used_at?: string | null;
15668
+ token_hash: string;
15669
+ updated_at?: string;
15670
+ versie?: string;
15671
+ };
15672
+ Update: {
15673
+ actief?: boolean;
15674
+ created_at?: string;
15675
+ gemelde_printers?: import("./types").Json;
15676
+ id?: string;
15677
+ laatst_gezien?: string | null;
15678
+ locatie?: string;
15679
+ naam?: string;
15680
+ pairing_code_hash?: string | null;
15681
+ pairing_expires_at?: string | null;
15682
+ pairing_used_at?: string | null;
15683
+ token_hash?: string;
15684
+ updated_at?: string;
15685
+ versie?: string;
15686
+ };
15687
+ Relationships: [];
15688
+ };
15689
+ print_dedupe_events: {
15690
+ Row: {
15691
+ bestaande_job_id: string | null;
15692
+ created_at: string;
15693
+ detail: string | null;
15694
+ documentnaam: string | null;
15695
+ documenttype: string | null;
15696
+ id: string;
15697
+ idempotentie_sleutel: string;
15698
+ reden: string;
15699
+ };
15700
+ Insert: {
15701
+ bestaande_job_id?: string | null;
15702
+ created_at?: string;
15703
+ detail?: string | null;
14891
15704
  documentnaam?: string | null;
14892
15705
  documenttype?: string | null;
14893
15706
  id?: string;
@@ -16382,30 +17195,108 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16382
17195
  referencedColumns: ["id"];
16383
17196
  }];
16384
17197
  };
17198
+ purchase_order_dispatches: {
17199
+ Row: {
17200
+ created_at: string;
17201
+ id: string;
17202
+ last_error: string | null;
17203
+ outbox_id: string | null;
17204
+ purchase_order_id: string;
17205
+ status: string;
17206
+ supplier_id: string | null;
17207
+ supplier_name: string;
17208
+ to_address: string;
17209
+ updated_at: string;
17210
+ };
17211
+ Insert: {
17212
+ created_at?: string;
17213
+ id?: string;
17214
+ last_error?: string | null;
17215
+ outbox_id?: string | null;
17216
+ purchase_order_id: string;
17217
+ status?: string;
17218
+ supplier_id?: string | null;
17219
+ supplier_name?: string;
17220
+ to_address: string;
17221
+ updated_at?: string;
17222
+ };
17223
+ Update: {
17224
+ created_at?: string;
17225
+ id?: string;
17226
+ last_error?: string | null;
17227
+ outbox_id?: string | null;
17228
+ purchase_order_id?: string;
17229
+ status?: string;
17230
+ supplier_id?: string | null;
17231
+ supplier_name?: string;
17232
+ to_address?: string;
17233
+ updated_at?: string;
17234
+ };
17235
+ Relationships: [{
17236
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
17237
+ columns: ["purchase_order_id"];
17238
+ isOneToOne: false;
17239
+ referencedRelation: "purchase_orders";
17240
+ referencedColumns: ["id"];
17241
+ }, {
17242
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
17243
+ columns: ["supplier_id"];
17244
+ isOneToOne: false;
17245
+ referencedRelation: "suppliers";
17246
+ referencedColumns: ["id"];
17247
+ }];
17248
+ };
16385
17249
  purchase_order_items: {
16386
17250
  Row: {
17251
+ article_number: string | null;
16387
17252
  created_at: string;
17253
+ delivery_date: string | null;
16388
17254
  id: string;
17255
+ name: string;
17256
+ note: string | null;
17257
+ pot_size: string | null;
16389
17258
  product_id: string | null;
16390
17259
  product_type: string;
16391
17260
  purchase_order_id: string;
16392
17261
  quantity: number;
17262
+ supplier_id: string | null;
17263
+ supplier_product_id: string | null;
17264
+ unit_price_cents: number;
17265
+ updated_at: string;
16393
17266
  };
16394
17267
  Insert: {
17268
+ article_number?: string | null;
16395
17269
  created_at?: string;
17270
+ delivery_date?: string | null;
16396
17271
  id?: string;
17272
+ name?: string;
17273
+ note?: string | null;
17274
+ pot_size?: string | null;
16397
17275
  product_id?: string | null;
16398
17276
  product_type?: string;
16399
17277
  purchase_order_id: string;
16400
17278
  quantity?: number;
17279
+ supplier_id?: string | null;
17280
+ supplier_product_id?: string | null;
17281
+ unit_price_cents?: number;
17282
+ updated_at?: string;
16401
17283
  };
16402
17284
  Update: {
17285
+ article_number?: string | null;
16403
17286
  created_at?: string;
17287
+ delivery_date?: string | null;
16404
17288
  id?: string;
17289
+ name?: string;
17290
+ note?: string | null;
17291
+ pot_size?: string | null;
16405
17292
  product_id?: string | null;
16406
17293
  product_type?: string;
16407
17294
  purchase_order_id?: string;
16408
17295
  quantity?: number;
17296
+ supplier_id?: string | null;
17297
+ supplier_product_id?: string | null;
17298
+ unit_price_cents?: number;
17299
+ updated_at?: string;
16409
17300
  };
16410
17301
  Relationships: [{
16411
17302
  foreignKeyName: "purchase_order_items_product_id_fkey";
@@ -16425,43 +17316,70 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16425
17316
  isOneToOne: false;
16426
17317
  referencedRelation: "purchase_orders";
16427
17318
  referencedColumns: ["id"];
17319
+ }, {
17320
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
17321
+ columns: ["supplier_id"];
17322
+ isOneToOne: false;
17323
+ referencedRelation: "suppliers";
17324
+ referencedColumns: ["id"];
17325
+ }, {
17326
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
17327
+ columns: ["supplier_product_id"];
17328
+ isOneToOne: false;
17329
+ referencedRelation: "supplier_products";
17330
+ referencedColumns: ["id"];
16428
17331
  }];
16429
17332
  };
16430
17333
  purchase_orders: {
16431
17334
  Row: {
17335
+ contact_person: string | null;
16432
17336
  created_at: string;
17337
+ created_by: string | null;
16433
17338
  expected_delivery_date: string;
16434
17339
  id: string;
16435
17340
  location_id: string | null;
16436
17341
  notes: string | null;
16437
17342
  order_number: string;
17343
+ reference: string | null;
17344
+ sent_at: string | null;
16438
17345
  status: string;
16439
17346
  supplier_id: string | null;
16440
17347
  supplier_name: string;
17348
+ total_cents: number;
16441
17349
  updated_at: string;
16442
17350
  };
16443
17351
  Insert: {
17352
+ contact_person?: string | null;
16444
17353
  created_at?: string;
16445
- expected_delivery_date: string;
17354
+ created_by?: string | null;
17355
+ expected_delivery_date?: string;
16446
17356
  id?: string;
16447
17357
  location_id?: string | null;
16448
17358
  notes?: string | null;
16449
- order_number: string;
17359
+ order_number?: string;
17360
+ reference?: string | null;
17361
+ sent_at?: string | null;
16450
17362
  status?: string;
16451
17363
  supplier_id?: string | null;
16452
17364
  supplier_name?: string;
17365
+ total_cents?: number;
16453
17366
  updated_at?: string;
16454
17367
  };
16455
17368
  Update: {
17369
+ contact_person?: string | null;
16456
17370
  created_at?: string;
17371
+ created_by?: string | null;
16457
17372
  expected_delivery_date?: string;
16458
17373
  id?: string;
16459
17374
  location_id?: string | null;
16460
17375
  notes?: string | null;
16461
17376
  order_number?: string;
17377
+ reference?: string | null;
17378
+ sent_at?: string | null;
16462
17379
  status?: string;
16463
17380
  supplier_id?: string | null;
16464
17381
  supplier_name?: string;
17382
+ total_cents?: number;
16465
17383
  updated_at?: string;
16466
17384
  };
16467
17385
  Relationships: [{
@@ -17348,15 +18266,160 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17348
18266
  };
17349
18267
  Relationships: [];
17350
18268
  };
18269
+ supplier_contacts: {
18270
+ Row: {
18271
+ created_at: string;
18272
+ email: string | null;
18273
+ id: string;
18274
+ is_primary: boolean;
18275
+ name: string;
18276
+ phone: string | null;
18277
+ role: string | null;
18278
+ supplier_id: string;
18279
+ updated_at: string;
18280
+ };
18281
+ Insert: {
18282
+ created_at?: string;
18283
+ email?: string | null;
18284
+ id?: string;
18285
+ is_primary?: boolean;
18286
+ name: string;
18287
+ phone?: string | null;
18288
+ role?: string | null;
18289
+ supplier_id: string;
18290
+ updated_at?: string;
18291
+ };
18292
+ Update: {
18293
+ created_at?: string;
18294
+ email?: string | null;
18295
+ id?: string;
18296
+ is_primary?: boolean;
18297
+ name?: string;
18298
+ phone?: string | null;
18299
+ role?: string | null;
18300
+ supplier_id?: string;
18301
+ updated_at?: string;
18302
+ };
18303
+ Relationships: [{
18304
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
18305
+ columns: ["supplier_id"];
18306
+ isOneToOne: false;
18307
+ referencedRelation: "suppliers";
18308
+ referencedColumns: ["id"];
18309
+ }];
18310
+ };
18311
+ supplier_price_history: {
18312
+ Row: {
18313
+ created_at: string;
18314
+ id: string;
18315
+ new_price_cents: number;
18316
+ old_price_cents: number | null;
18317
+ price_list_id: string | null;
18318
+ supplier_id: string | null;
18319
+ supplier_product_id: string;
18320
+ };
18321
+ Insert: {
18322
+ created_at?: string;
18323
+ id?: string;
18324
+ new_price_cents: number;
18325
+ old_price_cents?: number | null;
18326
+ price_list_id?: string | null;
18327
+ supplier_id?: string | null;
18328
+ supplier_product_id: string;
18329
+ };
18330
+ Update: {
18331
+ created_at?: string;
18332
+ id?: string;
18333
+ new_price_cents?: number;
18334
+ old_price_cents?: number | null;
18335
+ price_list_id?: string | null;
18336
+ supplier_id?: string | null;
18337
+ supplier_product_id?: string;
18338
+ };
18339
+ Relationships: [{
18340
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
18341
+ columns: ["price_list_id"];
18342
+ isOneToOne: false;
18343
+ referencedRelation: "price_lists";
18344
+ referencedColumns: ["id"];
18345
+ }, {
18346
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
18347
+ columns: ["supplier_product_id"];
18348
+ isOneToOne: false;
18349
+ referencedRelation: "supplier_products";
18350
+ referencedColumns: ["id"];
18351
+ }];
18352
+ };
18353
+ supplier_price_list_mappings: {
18354
+ Row: {
18355
+ column_map: import("./types").Json;
18356
+ created_at: string;
18357
+ deactivate_missing: boolean;
18358
+ decimal_separator: string;
18359
+ expected_headers: string[];
18360
+ extract_pot_from_name: boolean;
18361
+ header_row: number;
18362
+ id: string;
18363
+ max_error_ratio: number;
18364
+ price_is_cents: boolean;
18365
+ sheet_name: string | null;
18366
+ supplier_id: string;
18367
+ updated_at: string;
18368
+ };
18369
+ Insert: {
18370
+ column_map?: import("./types").Json;
18371
+ created_at?: string;
18372
+ deactivate_missing?: boolean;
18373
+ decimal_separator?: string;
18374
+ expected_headers?: string[];
18375
+ extract_pot_from_name?: boolean;
18376
+ header_row?: number;
18377
+ id?: string;
18378
+ max_error_ratio?: number;
18379
+ price_is_cents?: boolean;
18380
+ sheet_name?: string | null;
18381
+ supplier_id: string;
18382
+ updated_at?: string;
18383
+ };
18384
+ Update: {
18385
+ column_map?: import("./types").Json;
18386
+ created_at?: string;
18387
+ deactivate_missing?: boolean;
18388
+ decimal_separator?: string;
18389
+ expected_headers?: string[];
18390
+ extract_pot_from_name?: boolean;
18391
+ header_row?: number;
18392
+ id?: string;
18393
+ max_error_ratio?: number;
18394
+ price_is_cents?: boolean;
18395
+ sheet_name?: string | null;
18396
+ supplier_id?: string;
18397
+ updated_at?: string;
18398
+ };
18399
+ Relationships: [{
18400
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
18401
+ columns: ["supplier_id"];
18402
+ isOneToOne: true;
18403
+ referencedRelation: "suppliers";
18404
+ referencedColumns: ["id"];
18405
+ }];
18406
+ };
17351
18407
  supplier_products: {
17352
18408
  Row: {
17353
18409
  article_number: string | null;
18410
+ available_quantity: number;
17354
18411
  created_at: string;
18412
+ height: string | null;
17355
18413
  id: string;
18414
+ is_active: boolean;
18415
+ min_order: number;
17356
18416
  name: string;
17357
18417
  notes: string | null;
18418
+ order_unit: number;
17358
18419
  pot_size: string | null;
17359
18420
  price: number | null;
18421
+ price_cents: number;
18422
+ quality: string | null;
17360
18423
  quantity: number | null;
17361
18424
  supplier_id: string;
17362
18425
  unit: string;
@@ -17364,12 +18427,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17364
18427
  };
17365
18428
  Insert: {
17366
18429
  article_number?: string | null;
18430
+ available_quantity?: number;
17367
18431
  created_at?: string;
18432
+ height?: string | null;
17368
18433
  id?: string;
18434
+ is_active?: boolean;
18435
+ min_order?: number;
17369
18436
  name: string;
17370
18437
  notes?: string | null;
18438
+ order_unit?: number;
17371
18439
  pot_size?: string | null;
17372
18440
  price?: number | null;
18441
+ price_cents?: number;
18442
+ quality?: string | null;
17373
18443
  quantity?: number | null;
17374
18444
  supplier_id: string;
17375
18445
  unit?: string;
@@ -17377,12 +18447,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17377
18447
  };
17378
18448
  Update: {
17379
18449
  article_number?: string | null;
18450
+ available_quantity?: number;
17380
18451
  created_at?: string;
18452
+ height?: string | null;
17381
18453
  id?: string;
18454
+ is_active?: boolean;
18455
+ min_order?: number;
17382
18456
  name?: string;
17383
18457
  notes?: string | null;
18458
+ order_unit?: number;
17384
18459
  pot_size?: string | null;
17385
18460
  price?: number | null;
18461
+ price_cents?: number;
18462
+ quality?: string | null;
17386
18463
  quantity?: number | null;
17387
18464
  supplier_id?: string;
17388
18465
  unit?: string;
@@ -17399,6 +18476,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17399
18476
  suppliers: {
17400
18477
  Row: {
17401
18478
  address: string | null;
18479
+ category: string | null;
17402
18480
  column_mappings: import("./types").Json | null;
17403
18481
  contact_person: string | null;
17404
18482
  created_at: string;
@@ -17406,13 +18484,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17406
18484
  email: string | null;
17407
18485
  id: string;
17408
18486
  imported_file_name: string | null;
18487
+ is_preferred: boolean;
18488
+ kvk_number: string | null;
18489
+ lead_time_days: number | null;
18490
+ min_order_amount_cents: number;
17409
18491
  name: string;
17410
18492
  notes: string | null;
18493
+ order_days: string[];
18494
+ order_email: string | null;
18495
+ payment_terms_days: number | null;
17411
18496
  phone: string | null;
18497
+ status: string;
17412
18498
  updated_at: string;
18499
+ vat_number: string | null;
18500
+ website: string | null;
17413
18501
  };
17414
18502
  Insert: {
17415
18503
  address?: string | null;
18504
+ category?: string | null;
17416
18505
  column_mappings?: import("./types").Json | null;
17417
18506
  contact_person?: string | null;
17418
18507
  created_at?: string;
@@ -17420,13 +18509,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17420
18509
  email?: string | null;
17421
18510
  id?: string;
17422
18511
  imported_file_name?: string | null;
18512
+ is_preferred?: boolean;
18513
+ kvk_number?: string | null;
18514
+ lead_time_days?: number | null;
18515
+ min_order_amount_cents?: number;
17423
18516
  name: string;
17424
18517
  notes?: string | null;
18518
+ order_days?: string[];
18519
+ order_email?: string | null;
18520
+ payment_terms_days?: number | null;
17425
18521
  phone?: string | null;
18522
+ status?: string;
17426
18523
  updated_at?: string;
18524
+ vat_number?: string | null;
18525
+ website?: string | null;
17427
18526
  };
17428
18527
  Update: {
17429
18528
  address?: string | null;
18529
+ category?: string | null;
17430
18530
  column_mappings?: import("./types").Json | null;
17431
18531
  contact_person?: string | null;
17432
18532
  created_at?: string;
@@ -17434,10 +18534,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17434
18534
  email?: string | null;
17435
18535
  id?: string;
17436
18536
  imported_file_name?: string | null;
18537
+ is_preferred?: boolean;
18538
+ kvk_number?: string | null;
18539
+ lead_time_days?: number | null;
18540
+ min_order_amount_cents?: number;
17437
18541
  name?: string;
17438
18542
  notes?: string | null;
18543
+ order_days?: string[];
18544
+ order_email?: string | null;
18545
+ payment_terms_days?: number | null;
17439
18546
  phone?: string | null;
18547
+ status?: string;
17440
18548
  updated_at?: string;
18549
+ vat_number?: string | null;
18550
+ website?: string | null;
17441
18551
  };
17442
18552
  Relationships: [];
17443
18553
  };
@@ -18439,11 +19549,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18439
19549
  auto_invoice_trigger_statuses: string[];
18440
19550
  created_at: string;
18441
19551
  debtor_gl_account: string;
19552
+ default_article_code: string | null;
18442
19553
  default_credit_invoice_type: string | null;
18443
19554
  default_gl_account: string;
18444
19555
  default_invoice_type: string;
18445
19556
  default_payment_term_days: number;
18446
19557
  default_vat_code: string;
19558
+ email_purpose: string | null;
18447
19559
  home_country_code: string;
18448
19560
  invoice_enabled_ao: boolean;
18449
19561
  invoice_enabled_fo: boolean;
@@ -18465,11 +19577,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18465
19577
  auto_invoice_trigger_statuses?: string[];
18466
19578
  created_at?: string;
18467
19579
  debtor_gl_account?: string;
19580
+ default_article_code?: string | null;
18468
19581
  default_credit_invoice_type?: string | null;
18469
19582
  default_gl_account?: string;
18470
19583
  default_invoice_type?: string;
18471
19584
  default_payment_term_days?: number;
18472
19585
  default_vat_code?: string;
19586
+ email_purpose?: string | null;
18473
19587
  home_country_code?: string;
18474
19588
  invoice_enabled_ao?: boolean;
18475
19589
  invoice_enabled_fo?: boolean;
@@ -18491,11 +19605,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18491
19605
  auto_invoice_trigger_statuses?: string[];
18492
19606
  created_at?: string;
18493
19607
  debtor_gl_account?: string;
19608
+ default_article_code?: string | null;
18494
19609
  default_credit_invoice_type?: string | null;
18495
19610
  default_gl_account?: string;
18496
19611
  default_invoice_type?: string;
18497
19612
  default_payment_term_days?: number;
18498
19613
  default_vat_code?: string;
19614
+ email_purpose?: string | null;
18499
19615
  home_country_code?: string;
18500
19616
  invoice_enabled_ao?: boolean;
18501
19617
  invoice_enabled_fo?: boolean;
@@ -21650,6 +22766,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21650
22766
  Args: never;
21651
22767
  Returns: boolean;
21652
22768
  };
22769
+ cancel_open_print_jobs: {
22770
+ Args: {
22771
+ _cutoff: string;
22772
+ };
22773
+ Returns: {
22774
+ extern_job_id: string;
22775
+ id: string;
22776
+ }[];
22777
+ };
21653
22778
  check_offer_product_available_stock: {
21654
22779
  Args: {
21655
22780
  p_campaign_product_id: string;
@@ -22812,6 +23937,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22812
23937
  Args: never;
22813
23938
  Returns: boolean;
22814
23939
  };
23940
+ inkoop_apply_price_list: {
23941
+ Args: {
23942
+ _price_list_id: string;
23943
+ _rows: import("./types").Json;
23944
+ };
23945
+ Returns: import("./types").Json;
23946
+ };
23947
+ inkoop_next_order_number: {
23948
+ Args: never;
23949
+ Returns: string;
23950
+ };
23951
+ inkoop_send_order: {
23952
+ Args: {
23953
+ _order_id: string;
23954
+ };
23955
+ Returns: {
23956
+ outbox_id: string;
23957
+ supplier_name: string;
23958
+ to_address: string;
23959
+ }[];
23960
+ };
22815
23961
  instructie_get: {
22816
23962
  Args: {
22817
23963
  _sleutel: string;
@@ -23188,6 +24334,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23188
24334
  };
23189
24335
  Returns: string;
23190
24336
  };
24337
+ logistics_cart_checkin_at: {
24338
+ Args: {
24339
+ p_cart_id: string;
24340
+ };
24341
+ Returns: string;
24342
+ };
23191
24343
  logistics_cart_handled: {
23192
24344
  Args: {
23193
24345
  p_cart_index: number;
@@ -23221,10 +24373,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23221
24373
  task_status: string;
23222
24374
  }[];
23223
24375
  };
24376
+ logistics_cart_is_full: {
24377
+ Args: {
24378
+ p_cart_id: string;
24379
+ };
24380
+ Returns: boolean;
24381
+ };
23224
24382
  logistics_cart_layout_method: {
23225
24383
  Args: never;
23226
24384
  Returns: import("./types").Json;
23227
24385
  };
24386
+ logistics_cart_order_refs: {
24387
+ Args: {
24388
+ p_cart_id: string;
24389
+ };
24390
+ Returns: string[];
24391
+ };
23228
24392
  logistics_cart_plan_overview: {
23229
24393
  Args: {
23230
24394
  p_days?: number;
@@ -23244,6 +24408,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23244
24408
  };
23245
24409
  Returns: import("./types").Json;
23246
24410
  };
24411
+ logistics_cart_plan_status_core: {
24412
+ Args: {
24413
+ p_ref: string;
24414
+ };
24415
+ Returns: import("./types").Json;
24416
+ };
24417
+ logistics_cart_release_reason: {
24418
+ Args: {
24419
+ p_cart_id: string;
24420
+ };
24421
+ Returns: string;
24422
+ };
24423
+ logistics_cart_released: {
24424
+ Args: {
24425
+ p_cart_id: string;
24426
+ };
24427
+ Returns: boolean;
24428
+ };
23247
24429
  logistics_cart_seq: {
23248
24430
  Args: {
23249
24431
  p_order_uuid?: string;
@@ -23294,6 +24476,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23294
24476
  unit_ref: string;
23295
24477
  }[];
23296
24478
  };
24479
+ logistics_carts_per_print: {
24480
+ Args: never;
24481
+ Returns: number;
24482
+ };
23297
24483
  logistics_check_order_allowed: {
23298
24484
  Args: {
23299
24485
  p_lines: import("./types").Json;
@@ -23397,6 +24583,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23397
24583
  isSetofReturn: false;
23398
24584
  };
23399
24585
  };
24586
+ logistics_cleanup_orphan_print_jobs: {
24587
+ Args: never;
24588
+ Returns: import("./types").Json;
24589
+ };
23400
24590
  logistics_complete_task: {
23401
24591
  Args: {
23402
24592
  p_result?: import("./types").Json;
@@ -23459,6 +24649,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23459
24649
  station_carts: number;
23460
24650
  }[];
23461
24651
  };
24652
+ logistics_control_complete_cart: {
24653
+ Args: {
24654
+ p_cart_id: string;
24655
+ };
24656
+ Returns: number;
24657
+ };
23462
24658
  logistics_control_scan_approve: {
23463
24659
  Args: {
23464
24660
  p_allow_reprint?: boolean;
@@ -23538,6 +24734,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23538
24734
  Args: never;
23539
24735
  Returns: import("./types").Json;
23540
24736
  };
24737
+ logistics_day_windows: {
24738
+ Args: {
24739
+ p_day: string;
24740
+ };
24741
+ Returns: {
24742
+ win_end: string;
24743
+ win_start: string;
24744
+ }[];
24745
+ };
23541
24746
  logistics_delay_customer_email: {
23542
24747
  Args: {
23543
24748
  p_customer: string;
@@ -23605,6 +24810,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23605
24810
  };
23606
24811
  Returns: import("./types").Json;
23607
24812
  };
24813
+ logistics_enqueue_shipping_note_with_slip: {
24814
+ Args: {
24815
+ _cart_id: string;
24816
+ _is_herprint: boolean;
24817
+ _printer_id: string;
24818
+ _queue_item_id: string;
24819
+ _session_id: string;
24820
+ _slip_job_id: string;
24821
+ };
24822
+ Returns: string;
24823
+ };
23608
24824
  logistics_enqueue_sticker_with_slip: {
23609
24825
  Args: {
23610
24826
  _cart_id: string;
@@ -23622,6 +24838,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23622
24838
  };
23623
24839
  Returns: string;
23624
24840
  };
24841
+ logistics_ensure_pick_data: {
24842
+ Args: {
24843
+ p_event_id?: string;
24844
+ p_missing?: import("./types").Json;
24845
+ p_ref: string;
24846
+ };
24847
+ Returns: import("./types").Json;
24848
+ };
24849
+ logistics_ensure_shipping_notes: {
24850
+ Args: {
24851
+ p_limit?: number;
24852
+ };
24853
+ Returns: import("./types").Json;
24854
+ };
23625
24855
  logistics_fail_task: {
23626
24856
  Args: {
23627
24857
  p_error: string;
@@ -23667,6 +24897,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23667
24897
  isSetofReturn: false;
23668
24898
  };
23669
24899
  };
24900
+ logistics_fix_wrong_shipping_notes: {
24901
+ Args: never;
24902
+ Returns: import("./types").Json;
24903
+ };
23670
24904
  logistics_floriday_cart_plan: {
23671
24905
  Args: {
23672
24906
  p_order_id: string;
@@ -23694,6 +24928,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23694
24928
  revision: number;
23695
24929
  }[];
23696
24930
  };
24931
+ logistics_floriday_delivery_note_create_enabled: {
24932
+ Args: never;
24933
+ Returns: boolean;
24934
+ };
23697
24935
  logistics_floriday_finish_push: {
23698
24936
  Args: {
23699
24937
  _error?: string;
@@ -23793,6 +25031,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23793
25031
  Args: never;
23794
25032
  Returns: boolean;
23795
25033
  };
25034
+ logistics_floriday_stock_updates_enabled: {
25035
+ Args: never;
25036
+ Returns: boolean;
25037
+ };
25038
+ logistics_floriday_write_allowed: {
25039
+ Args: {
25040
+ _action: string;
25041
+ };
25042
+ Returns: boolean;
25043
+ };
23796
25044
  logistics_fulfill_barcode_requests: {
23797
25045
  Args: {
23798
25046
  p_limit?: number;
@@ -23835,6 +25083,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23835
25083
  };
23836
25084
  Returns: number;
23837
25085
  };
25086
+ logistics_merge_floriday_lines: {
25087
+ Args: {
25088
+ p_order_id: string;
25089
+ };
25090
+ Returns: string;
25091
+ };
25092
+ logistics_merge_lines_enabled: {
25093
+ Args: never;
25094
+ Returns: boolean;
25095
+ };
25096
+ logistics_merge_partial_carts: {
25097
+ Args: {
25098
+ p_limit?: number;
25099
+ };
25100
+ Returns: import("./types").Json;
25101
+ };
23838
25102
  logistics_next_workday_date: {
23839
25103
  Args: {
23840
25104
  p_date: string;
@@ -23861,6 +25125,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23861
25125
  };
23862
25126
  Returns: string;
23863
25127
  };
25128
+ logistics_opening_timezone: {
25129
+ Args: never;
25130
+ Returns: string;
25131
+ };
23864
25132
  logistics_order_cart_count: {
23865
25133
  Args: {
23866
25134
  p_order_ref: string;
@@ -23880,6 +25148,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23880
25148
  };
23881
25149
  Returns: boolean;
23882
25150
  };
25151
+ logistics_order_merge_key: {
25152
+ Args: {
25153
+ p_group_key: string;
25154
+ };
25155
+ Returns: string;
25156
+ };
25157
+ logistics_order_mergeable: {
25158
+ Args: {
25159
+ p_order_id: string;
25160
+ };
25161
+ Returns: boolean;
25162
+ };
23883
25163
  logistics_order_overview: {
23884
25164
  Args: {
23885
25165
  p_from?: string;
@@ -23917,6 +25197,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23917
25197
  };
23918
25198
  Returns: string;
23919
25199
  };
25200
+ logistics_payload_is_floriday: {
25201
+ Args: {
25202
+ _payload: import("./types").Json;
25203
+ };
25204
+ Returns: boolean;
25205
+ };
23920
25206
  logistics_pick_agenda: {
23921
25207
  Args: {
23922
25208
  p_from?: string;
@@ -23945,6 +25231,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23945
25231
  Args: never;
23946
25232
  Returns: import("./types").Json;
23947
25233
  };
25234
+ logistics_pick_partial_mode: {
25235
+ Args: never;
25236
+ Returns: string;
25237
+ };
23948
25238
  logistics_pick_start_estimate: {
23949
25239
  Args: {
23950
25240
  p_order: import("./types").Json;
@@ -24035,6 +25325,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24035
25325
  Args: never;
24036
25326
  Returns: undefined;
24037
25327
  };
25328
+ logistics_plan_progress: {
25329
+ Args: {
25330
+ p_refs: string[];
25331
+ };
25332
+ Returns: {
25333
+ cart_plan_ready: boolean;
25334
+ cart_plan_reason: string;
25335
+ cart_plan_released: boolean;
25336
+ plan_progress: number;
25337
+ plan_state: string;
25338
+ plan_state_since: string;
25339
+ unit_ref: string;
25340
+ }[];
25341
+ };
24038
25342
  logistics_plan_prune: {
24039
25343
  Args: never;
24040
25344
  Returns: number;
@@ -24056,6 +25360,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24056
25360
  };
24057
25361
  Returns: number;
24058
25362
  };
25363
+ logistics_plan_state_for: {
25364
+ Args: {
25365
+ p_ref: string;
25366
+ };
25367
+ Returns: import("./types").Json;
25368
+ };
25369
+ logistics_prepare_pick_documents: {
25370
+ Args: {
25371
+ p_limit?: number;
25372
+ };
25373
+ Returns: import("./types").Json;
25374
+ };
24059
25375
  logistics_prune_buffer_member_queue: {
24060
25376
  Args: never;
24061
25377
  Returns: number;
@@ -24096,18 +25412,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24096
25412
  Args: never;
24097
25413
  Returns: import("./types").Json;
24098
25414
  };
25415
+ logistics_refresh_pick_queue_status: {
25416
+ Args: {
25417
+ p_ref: string;
25418
+ };
25419
+ Returns: number;
25420
+ };
24099
25421
  logistics_refresh_pickup_moments: {
24100
25422
  Args: {
24101
25423
  p_weeks?: number;
24102
25424
  };
24103
25425
  Returns: import("./types").Json;
24104
25426
  };
25427
+ logistics_refresh_plan_state: {
25428
+ Args: {
25429
+ p_limit?: number;
25430
+ };
25431
+ Returns: import("./types").Json;
25432
+ };
24105
25433
  logistics_replan_all: {
24106
25434
  Args: {
24107
25435
  p_reason?: string;
24108
25436
  };
24109
25437
  Returns: import("./types").Json;
24110
25438
  };
25439
+ logistics_replan_all_force: {
25440
+ Args: {
25441
+ p_reason?: string;
25442
+ };
25443
+ Returns: import("./types").Json;
25444
+ };
24111
25445
  logistics_report_delay: {
24112
25446
  Args: {
24113
25447
  p_expected_date?: string;
@@ -24252,6 +25586,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24252
25586
  };
24253
25587
  Returns: string;
24254
25588
  };
25589
+ logistics_shipping_note_follows_slip: {
25590
+ Args: never;
25591
+ Returns: boolean;
25592
+ };
24255
25593
  logistics_shipping_note_from_barcode: {
24256
25594
  Args: {
24257
25595
  p_allow_reprint?: boolean;
@@ -24260,10 +25598,86 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24260
25598
  };
24261
25599
  Returns: import("./types").Json;
24262
25600
  };
25601
+ logistics_shipping_note_job_for_slip: {
25602
+ Args: {
25603
+ _slip_job_id: string;
25604
+ };
25605
+ Returns: string;
25606
+ };
25607
+ logistics_shipping_notes_wake_all: {
25608
+ Args: never;
25609
+ Returns: import("./types").Json;
25610
+ };
25611
+ logistics_slip_is_floriday: {
25612
+ Args: {
25613
+ _slip_job_id: string;
25614
+ };
25615
+ Returns: boolean;
25616
+ };
25617
+ logistics_slip_note_claim: {
25618
+ Args: {
25619
+ _lease_seconds?: number;
25620
+ _limit?: number;
25621
+ };
25622
+ Returns: {
25623
+ attempts: number;
25624
+ batch_key: string | null;
25625
+ cart_id: string | null;
25626
+ created_at: string;
25627
+ error: string | null;
25628
+ error_code: string | null;
25629
+ fulfillment_order_id: string | null;
25630
+ id: string;
25631
+ locked_until: string | null;
25632
+ next_attempt_at: string | null;
25633
+ order_id: string | null;
25634
+ order_number: string | null;
25635
+ print_job_id: string | null;
25636
+ printer_id: string | null;
25637
+ retry_class: string | null;
25638
+ slip_job_id: string;
25639
+ status: string;
25640
+ updated_at: string;
25641
+ }[];
25642
+ SetofOptions: {
25643
+ from: "*";
25644
+ to: "logistics_slip_shipping_note";
25645
+ isOneToOne: false;
25646
+ isSetofReturn: true;
25647
+ };
25648
+ };
25649
+ logistics_slip_note_finish: {
25650
+ Args: {
25651
+ _error?: string;
25652
+ _error_code?: string;
25653
+ _fulfillment_order_id?: string;
25654
+ _id: string;
25655
+ _ok: boolean;
25656
+ _print_job_id?: string;
25657
+ _status?: string;
25658
+ };
25659
+ Returns: undefined;
25660
+ };
25661
+ logistics_slip_note_keep_waiting: {
25662
+ Args: {
25663
+ _class?: string;
25664
+ _id: string;
25665
+ _reason: string;
25666
+ };
25667
+ Returns: undefined;
25668
+ };
24263
25669
  logistics_sticker_follows_slip: {
24264
25670
  Args: never;
24265
25671
  Returns: boolean;
24266
25672
  };
25673
+ logistics_subtract_working_minutes: {
25674
+ Args: {
25675
+ p_deadline: string;
25676
+ p_max_workdays?: number;
25677
+ p_minutes: number;
25678
+ };
25679
+ Returns: import("./types").Json;
25680
+ };
24267
25681
  logistics_supersede_stale_tasks: {
24268
25682
  Args: {
24269
25683
  p_keep: string[];
@@ -24300,6 +25714,109 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24300
25714
  Args: never;
24301
25715
  Returns: string;
24302
25716
  };
25717
+ logistics_timezone_options: {
25718
+ Args: never;
25719
+ Returns: {
25720
+ name: string;
25721
+ }[];
25722
+ };
25723
+ logistics_trace: {
25724
+ Args: {
25725
+ p: import("./types").Json;
25726
+ };
25727
+ Returns: string;
25728
+ };
25729
+ logistics_trace_all_orders: {
25730
+ Args: {
25731
+ p_limit?: number;
25732
+ p_search?: string;
25733
+ };
25734
+ Returns: import("./types").Json;
25735
+ };
25736
+ logistics_trace_batch: {
25737
+ Args: {
25738
+ p: import("./types").Json;
25739
+ };
25740
+ Returns: number;
25741
+ };
25742
+ logistics_trace_node: {
25743
+ Args: {
25744
+ p_op?: string;
25745
+ p_status?: string;
25746
+ p_table: string;
25747
+ };
25748
+ Returns: string;
25749
+ };
25750
+ logistics_trace_order_overview: {
25751
+ Args: {
25752
+ p_error_class?: string;
25753
+ p_limit?: number;
25754
+ p_search?: string;
25755
+ p_since?: string;
25756
+ p_source?: string;
25757
+ p_state?: string;
25758
+ p_step?: string;
25759
+ };
25760
+ Returns: import("./types").Json;
25761
+ };
25762
+ logistics_trace_order_state: {
25763
+ Args: {
25764
+ p_order_ref: string;
25765
+ };
25766
+ Returns: import("./types").Json;
25767
+ };
25768
+ logistics_trace_order_step: {
25769
+ Args: {
25770
+ p_class?: string;
25771
+ p_decision?: string;
25772
+ p_error?: string;
25773
+ p_next_step?: string;
25774
+ p_node: string;
25775
+ p_order_id: string;
25776
+ p_reason?: string;
25777
+ p_status: string;
25778
+ p_step: string;
25779
+ };
25780
+ Returns: undefined;
25781
+ };
25782
+ logistics_trace_orders: {
25783
+ Args: {
25784
+ p_limit?: number;
25785
+ p_search?: string;
25786
+ p_since?: string;
25787
+ p_status?: string;
25788
+ };
25789
+ Returns: import("./types").Json;
25790
+ };
25791
+ logistics_trace_redact: {
25792
+ Args: {
25793
+ p: import("./types").Json;
25794
+ };
25795
+ Returns: import("./types").Json;
25796
+ };
25797
+ logistics_trace_timeline: {
25798
+ Args: {
25799
+ p_limit?: number;
25800
+ p_order_ref: string;
25801
+ };
25802
+ Returns: import("./types").Json;
25803
+ };
25804
+ logistics_trace_version_events: {
25805
+ Args: {
25806
+ p_from?: string;
25807
+ p_limit?: number;
25808
+ p_order_ref: string;
25809
+ p_to?: string;
25810
+ p_version_id: string;
25811
+ };
25812
+ Returns: import("./types").Json;
25813
+ };
25814
+ logistics_trace_versions: {
25815
+ Args: {
25816
+ p_order_ref: string;
25817
+ };
25818
+ Returns: import("./types").Json;
25819
+ };
24303
25820
  logistics_upsert_task: {
24304
25821
  Args: {
24305
25822
  p_buffer_ref: string;
@@ -24319,6 +25836,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24319
25836
  };
24320
25837
  Returns: string;
24321
25838
  };
25839
+ logistics_valid_timezone: {
25840
+ Args: {
25841
+ _tz: string;
25842
+ };
25843
+ Returns: boolean;
25844
+ };
25845
+ logistics_working_hours_status: {
25846
+ Args: never;
25847
+ Returns: import("./types").Json;
25848
+ };
24322
25849
  logistics_write_buffer_layer_positions: {
24323
25850
  Args: {
24324
25851
  p_buffer_id: string;
@@ -25331,6 +26858,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25331
26858
  };
25332
26859
  Returns: undefined;
25333
26860
  };
26861
+ prune_floriday_api_log: {
26862
+ Args: never;
26863
+ Returns: number;
26864
+ };
25334
26865
  quote_create_from_source: {
25335
26866
  Args: {
25336
26867
  _payload?: import("./types").Json;
@@ -25764,6 +27295,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25764
27295
  };
25765
27296
  Returns: number;
25766
27297
  };
27298
+ schedule_floriday_catalog_prices_sync: {
27299
+ Args: {
27300
+ p_apikey: string;
27301
+ p_url: string;
27302
+ };
27303
+ Returns: number;
27304
+ };
25767
27305
  schedule_floriday_clock_presales_sync: {
25768
27306
  Args: {
25769
27307
  p_apikey: string;
@@ -26064,6 +27602,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26064
27602
  };
26065
27603
  Returns: undefined;
26066
27604
  };
27605
+ sync_floriday_prices_into_price_groups: {
27606
+ Args: never;
27607
+ Returns: number;
27608
+ };
26067
27609
  sync_layer_stock: {
26068
27610
  Args: {
26069
27611
  p_product_id: string;
@@ -26196,6 +27738,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26196
27738
  Args: never;
26197
27739
  Returns: string;
26198
27740
  };
27741
+ voorraad_cleanup_old_rows: {
27742
+ Args: never;
27743
+ Returns: import("./types").Json;
27744
+ };
26199
27745
  wake_print_queue: {
26200
27746
  Args: {
26201
27747
  _min_interval_ms?: number;