@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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3597
3714
  };
3598
3715
  email_auth_outbox: {
3599
3716
  Row: {
3717
+ attachments: import("./types").Json;
3600
3718
  attempts: number;
3601
3719
  bcc_addresses: string[];
3602
3720
  cc_addresses: string[];
@@ -3619,6 +3737,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3619
3737
  updated_at: string;
3620
3738
  };
3621
3739
  Insert: {
3740
+ attachments?: import("./types").Json;
3622
3741
  attempts?: number;
3623
3742
  bcc_addresses?: string[];
3624
3743
  cc_addresses?: string[];
@@ -3641,6 +3760,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3641
3760
  updated_at?: string;
3642
3761
  };
3643
3762
  Update: {
3763
+ attachments?: import("./types").Json;
3644
3764
  attempts?: number;
3645
3765
  bcc_addresses?: string[];
3646
3766
  cc_addresses?: string[];
@@ -5602,6 +5722,102 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./types").Json | null;
5749
+ resource_type: string | null;
5750
+ response: import("./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("./types").Json | null;
5776
+ resource_type?: string | null;
5777
+ response?: import("./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("./types").Json | null;
5803
+ resource_type?: string | null;
5804
+ response?: import("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./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("./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("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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,14 +10645,152 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10288
10645
  };
10289
10646
  Relationships: [];
10290
10647
  };
10291
- logistics_pickup_moments: {
10648
+ logistics_opening_exceptions: {
10292
10649
  Row: {
10293
- carrier_ref: string | null;
10650
+ closes: string | null;
10294
10651
  created_at: string;
10652
+ day: string;
10295
10653
  id: string;
10296
- label: string | null;
10297
- moment_date: string;
10298
- pickup_time: 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("./types").Json;
10747
+ created_at: string;
10748
+ event_id: string | null;
10749
+ finished_at: string | null;
10750
+ id: string;
10751
+ missing: import("./types").Json;
10752
+ order_ref: string;
10753
+ reason: string | null;
10754
+ result: import("./types").Json | null;
10755
+ status: string;
10756
+ unit_ref: string | null;
10757
+ };
10758
+ Insert: {
10759
+ actions?: import("./types").Json;
10760
+ created_at?: string;
10761
+ event_id?: string | null;
10762
+ finished_at?: string | null;
10763
+ id?: string;
10764
+ missing?: import("./types").Json;
10765
+ order_ref: string;
10766
+ reason?: string | null;
10767
+ result?: import("./types").Json | null;
10768
+ status?: string;
10769
+ unit_ref?: string | null;
10770
+ };
10771
+ Update: {
10772
+ actions?: import("./types").Json;
10773
+ created_at?: string;
10774
+ event_id?: string | null;
10775
+ finished_at?: string | null;
10776
+ id?: string;
10777
+ missing?: import("./types").Json;
10778
+ order_ref?: string;
10779
+ reason?: string | null;
10780
+ result?: import("./types").Json | null;
10781
+ status?: string;
10782
+ unit_ref?: string | null;
10783
+ };
10784
+ Relationships: [];
10785
+ };
10786
+ logistics_pickup_moments: {
10787
+ Row: {
10788
+ carrier_ref: string | null;
10789
+ created_at: string;
10790
+ id: string;
10791
+ label: string | null;
10792
+ moment_date: string;
10793
+ pickup_time: string;
10299
10794
  sequence: number;
10300
10795
  updated_at: string;
10301
10796
  user_id: string;
@@ -10747,6 +11242,69 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./types").Json | null;
11664
+ cart_ref: string | null;
11665
+ created_at: string;
11666
+ db_action: string | null;
11667
+ db_new: import("./types").Json | null;
11668
+ db_old: import("./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("./types").Json | null;
11678
+ external_status: string | null;
11679
+ external_system: string | null;
11680
+ id: string;
11681
+ input: import("./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("./types").Json | null;
11688
+ phase: string;
11689
+ reads: import("./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("./types").Json | null;
11697
+ };
11698
+ Insert: {
11699
+ actor?: string | null;
11700
+ attempts?: number;
11701
+ calc?: import("./types").Json | null;
11702
+ cart_ref?: string | null;
11703
+ created_at?: string;
11704
+ db_action?: string | null;
11705
+ db_new?: import("./types").Json | null;
11706
+ db_old?: import("./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("./types").Json | null;
11716
+ external_status?: string | null;
11717
+ external_system?: string | null;
11718
+ id?: string;
11719
+ input?: import("./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("./types").Json | null;
11726
+ phase: string;
11727
+ reads?: import("./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("./types").Json | null;
11735
+ };
11736
+ Update: {
11737
+ actor?: string | null;
11738
+ attempts?: number;
11739
+ calc?: import("./types").Json | null;
11740
+ cart_ref?: string | null;
11741
+ created_at?: string;
11742
+ db_action?: string | null;
11743
+ db_new?: import("./types").Json | null;
11744
+ db_old?: import("./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("./types").Json | null;
11754
+ external_status?: string | null;
11755
+ external_system?: string | null;
11756
+ id?: string;
11757
+ input?: import("./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("./types").Json | null;
11764
+ phase?: string;
11765
+ reads?: import("./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("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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,69 +15520,186 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14824
15520
  referencedColumns: ["id"];
14825
15521
  }];
14826
15522
  };
14827
- print_agents: {
15523
+ price_list_rows: {
14828
15524
  Row: {
14829
- actief: boolean;
15525
+ action: string;
14830
15526
  created_at: string;
14831
- gemelde_printers: import("./types").Json;
14832
15527
  id: string;
14833
- laatst_gezien: string | null;
14834
- locatie: string;
14835
- naam: string;
14836
- pairing_code_hash: string | null;
14837
- pairing_expires_at: string | null;
14838
- pairing_used_at: string | null;
14839
- token_hash: string;
14840
- updated_at: string;
14841
- versie: string;
15528
+ message: string | null;
15529
+ parsed: import("./types").Json;
15530
+ price_list_id: string;
15531
+ raw: import("./types").Json;
15532
+ row_number: number;
15533
+ supplier_product_id: string | null;
14842
15534
  };
14843
15535
  Insert: {
14844
- actief?: boolean;
15536
+ action?: string;
14845
15537
  created_at?: string;
14846
- gemelde_printers?: import("./types").Json;
14847
15538
  id?: string;
14848
- laatst_gezien?: string | null;
14849
- locatie?: string;
14850
- naam: string;
14851
- pairing_code_hash?: string | null;
14852
- pairing_expires_at?: string | null;
14853
- pairing_used_at?: string | null;
14854
- token_hash: string;
14855
- updated_at?: string;
14856
- versie?: string;
15539
+ message?: string | null;
15540
+ parsed?: import("./types").Json;
15541
+ price_list_id: string;
15542
+ raw?: import("./types").Json;
15543
+ row_number: number;
15544
+ supplier_product_id?: string | null;
14857
15545
  };
14858
15546
  Update: {
14859
- actief?: boolean;
15547
+ action?: string;
14860
15548
  created_at?: string;
14861
- gemelde_printers?: import("./types").Json;
14862
15549
  id?: string;
14863
- laatst_gezien?: string | null;
14864
- locatie?: string;
14865
- naam?: string;
14866
- pairing_code_hash?: string | null;
14867
- pairing_expires_at?: string | null;
14868
- pairing_used_at?: string | null;
14869
- token_hash?: string;
14870
- updated_at?: string;
14871
- versie?: string;
15550
+ message?: string | null;
15551
+ parsed?: import("./types").Json;
15552
+ price_list_id?: string;
15553
+ raw?: import("./types").Json;
15554
+ row_number?: number;
15555
+ supplier_product_id?: string | null;
14872
15556
  };
14873
- Relationships: [];
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
+ }];
14874
15570
  };
14875
- print_dedupe_events: {
15571
+ price_lists: {
14876
15572
  Row: {
14877
- bestaande_job_id: string | null;
14878
15573
  created_at: string;
14879
- detail: string | null;
14880
- documentnaam: string | null;
14881
- documenttype: string | null;
15574
+ created_by: string | null;
15575
+ file_hash: string | null;
15576
+ file_name: string;
15577
+ file_path: string | null;
15578
+ headers: string[];
14882
15579
  id: string;
14883
- idempotentie_sleutel: string;
14884
- reden: string;
14885
- };
14886
- Insert: {
14887
- bestaande_job_id?: string | null;
14888
- created_at?: string;
14889
- detail?: string | null;
15580
+ preview: import("./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("./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("./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("./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("./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("./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
+ };
15640
+ print_agents: {
15641
+ Row: {
15642
+ actief: boolean;
15643
+ created_at: string;
15644
+ gemelde_printers: import("./types").Json;
15645
+ id: string;
15646
+ laatst_gezien: string | null;
15647
+ locatie: string;
15648
+ naam: string;
15649
+ pairing_code_hash: string | null;
15650
+ pairing_expires_at: string | null;
15651
+ pairing_used_at: string | null;
15652
+ token_hash: string;
15653
+ updated_at: string;
15654
+ versie: string;
15655
+ };
15656
+ Insert: {
15657
+ actief?: boolean;
15658
+ created_at?: string;
15659
+ gemelde_printers?: import("./types").Json;
15660
+ id?: string;
15661
+ laatst_gezien?: string | null;
15662
+ locatie?: string;
15663
+ naam: string;
15664
+ pairing_code_hash?: string | null;
15665
+ pairing_expires_at?: string | null;
15666
+ pairing_used_at?: string | null;
15667
+ token_hash: string;
15668
+ updated_at?: string;
15669
+ versie?: string;
15670
+ };
15671
+ Update: {
15672
+ actief?: boolean;
15673
+ created_at?: string;
15674
+ gemelde_printers?: import("./types").Json;
15675
+ id?: string;
15676
+ laatst_gezien?: string | null;
15677
+ locatie?: string;
15678
+ naam?: string;
15679
+ pairing_code_hash?: string | null;
15680
+ pairing_expires_at?: string | null;
15681
+ pairing_used_at?: string | null;
15682
+ token_hash?: string;
15683
+ updated_at?: string;
15684
+ versie?: string;
15685
+ };
15686
+ Relationships: [];
15687
+ };
15688
+ print_dedupe_events: {
15689
+ Row: {
15690
+ bestaande_job_id: string | null;
15691
+ created_at: string;
15692
+ detail: string | null;
15693
+ documentnaam: string | null;
15694
+ documenttype: string | null;
15695
+ id: string;
15696
+ idempotentie_sleutel: string;
15697
+ reden: string;
15698
+ };
15699
+ Insert: {
15700
+ bestaande_job_id?: string | null;
15701
+ created_at?: string;
15702
+ detail?: string | null;
14890
15703
  documentnaam?: string | null;
14891
15704
  documenttype?: string | null;
14892
15705
  id?: string;
@@ -16381,30 +17194,108 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./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("./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("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17398
18475
  suppliers: {
17399
18476
  Row: {
17400
18477
  address: string | null;
18478
+ category: string | null;
17401
18479
  column_mappings: import("./types").Json | null;
17402
18480
  contact_person: string | null;
17403
18481
  created_at: string;
@@ -17405,13 +18483,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./types").Json | null;
17416
18505
  contact_person?: string | null;
17417
18506
  created_at?: string;
@@ -17419,13 +18508,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./types").Json | null;
17430
18530
  contact_person?: string | null;
17431
18531
  created_at?: string;
@@ -17433,10 +18533,20 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./types").Json;
23943
+ };
23944
+ Returns: import("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23243
24407
  };
23244
24408
  Returns: import("./types").Json;
23245
24409
  };
24410
+ logistics_cart_plan_status_core: {
24411
+ Args: {
24412
+ p_ref: string;
24413
+ };
24414
+ Returns: import("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./types").Json;
@@ -23396,6 +24582,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23396
24582
  isSetofReturn: false;
23397
24583
  };
23398
24584
  };
24585
+ logistics_cleanup_orphan_print_jobs: {
24586
+ Args: never;
24587
+ Returns: import("./types").Json;
24588
+ };
23399
24589
  logistics_complete_task: {
23400
24590
  Args: {
23401
24591
  p_result?: import("./types").Json;
@@ -23458,6 +24648,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23537
24733
  Args: never;
23538
24734
  Returns: import("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23604
24809
  };
23605
24810
  Returns: import("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23621
24837
  };
23622
24838
  Returns: string;
23623
24839
  };
24840
+ logistics_ensure_pick_data: {
24841
+ Args: {
24842
+ p_event_id?: string;
24843
+ p_missing?: import("./types").Json;
24844
+ p_ref: string;
24845
+ };
24846
+ Returns: import("./types").Json;
24847
+ };
24848
+ logistics_ensure_shipping_notes: {
24849
+ Args: {
24850
+ p_limit?: number;
24851
+ };
24852
+ Returns: import("./types").Json;
24853
+ };
23624
24854
  logistics_fail_task: {
23625
24855
  Args: {
23626
24856
  p_error: string;
@@ -23666,6 +24896,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23666
24896
  isSetofReturn: false;
23667
24897
  };
23668
24898
  };
24899
+ logistics_fix_wrong_shipping_notes: {
24900
+ Args: never;
24901
+ Returns: import("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./types").Json;
25100
+ };
23837
25101
  logistics_next_workday_date: {
23838
25102
  Args: {
23839
25103
  p_date: string;
@@ -23860,6 +25124,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23916
25196
  };
23917
25197
  Returns: string;
23918
25198
  };
25199
+ logistics_payload_is_floriday: {
25200
+ Args: {
25201
+ _payload: import("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23944
25230
  Args: never;
23945
25231
  Returns: import("./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("./types").Json;
@@ -24034,6 +25324,20 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24055
25359
  };
24056
25360
  Returns: number;
24057
25361
  };
25362
+ logistics_plan_state_for: {
25363
+ Args: {
25364
+ p_ref: string;
25365
+ };
25366
+ Returns: import("./types").Json;
25367
+ };
25368
+ logistics_prepare_pick_documents: {
25369
+ Args: {
25370
+ p_limit?: number;
25371
+ };
25372
+ Returns: import("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24095
25411
  Args: never;
24096
25412
  Returns: import("./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("./types").Json;
24103
25425
  };
25426
+ logistics_refresh_plan_state: {
25427
+ Args: {
25428
+ p_limit?: number;
25429
+ };
25430
+ Returns: import("./types").Json;
25431
+ };
24104
25432
  logistics_replan_all: {
24105
25433
  Args: {
24106
25434
  p_reason?: string;
24107
25435
  };
24108
25436
  Returns: import("./types").Json;
24109
25437
  };
25438
+ logistics_replan_all_force: {
25439
+ Args: {
25440
+ p_reason?: string;
25441
+ };
25442
+ Returns: import("./types").Json;
25443
+ };
24110
25444
  logistics_report_delay: {
24111
25445
  Args: {
24112
25446
  p_expected_date?: string;
@@ -24251,6 +25585,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
24259
25597
  };
24260
25598
  Returns: import("./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("./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("./types").Json;
25679
+ };
24266
25680
  logistics_supersede_stale_tasks: {
24267
25681
  Args: {
24268
25682
  p_keep: string[];
@@ -24299,6 +25713,109 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./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("./types").Json;
25734
+ };
25735
+ logistics_trace_batch: {
25736
+ Args: {
25737
+ p: import("./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("./types").Json;
25760
+ };
25761
+ logistics_trace_order_state: {
25762
+ Args: {
25763
+ p_order_ref: string;
25764
+ };
25765
+ Returns: import("./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("./types").Json;
25789
+ };
25790
+ logistics_trace_redact: {
25791
+ Args: {
25792
+ p: import("./types").Json;
25793
+ };
25794
+ Returns: import("./types").Json;
25795
+ };
25796
+ logistics_trace_timeline: {
25797
+ Args: {
25798
+ p_limit?: number;
25799
+ p_order_ref: string;
25800
+ };
25801
+ Returns: import("./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("./types").Json;
25812
+ };
25813
+ logistics_trace_versions: {
25814
+ Args: {
25815
+ p_order_ref: string;
25816
+ };
25817
+ Returns: import("./types").Json;
25818
+ };
24302
25819
  logistics_upsert_task: {
24303
25820
  Args: {
24304
25821
  p_buffer_ref: string;
@@ -24318,6 +25835,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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("./types").Json;
@@ -25763,6 +27294,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
26195
27737
  Args: never;
26196
27738
  Returns: string;
26197
27739
  };
27740
+ voorraad_cleanup_old_rows: {
27741
+ Args: never;
27742
+ Returns: import("./types").Json;
27743
+ };
26198
27744
  wake_print_queue: {
26199
27745
  Args: {
26200
27746
  _min_interval_ms?: number;