@flowselections/floriday-voorraad 1.0.40 → 1.0.42

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 (50) hide show
  1. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/ValidationOverviewTable.js +45 -14
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts +914 -19
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.d.ts +914 -19
  6. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.server.d.ts +914 -19
  8. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.d.ts +914 -17
  10. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  11. package/dist-lib/lib/floricode-required-features.functions.d.ts +914 -19
  12. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/floriday-2026v1.server.d.ts +1 -1
  14. package/dist-lib/lib/floriday-2026v1.server.d.ts.map +1 -1
  15. package/dist-lib/lib/floriday-2026v1.server.js +4 -0
  16. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +914 -19
  17. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-env.functions.d.ts +1790 -0
  19. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-gateway.functions.d.ts +5370 -0
  21. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-gateway.server.d.ts +7 -1
  23. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-gateway.server.js +50 -3
  25. package/dist-lib/lib/floriday-relink.d.ts +16 -0
  26. package/dist-lib/lib/floriday-relink.d.ts.map +1 -0
  27. package/dist-lib/lib/floriday-relink.js +14 -0
  28. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +1790 -0
  29. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-warehouse.functions.d.ts +2685 -0
  31. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-write-gate.server.d.ts +60 -0
  33. package/dist-lib/lib/floriday-write-gate.server.d.ts.map +1 -0
  34. package/dist-lib/lib/floriday-write-gate.server.js +196 -0
  35. package/dist-lib/lib/floriday-writes.functions.d.ts +1790 -0
  36. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/inventory-settings.functions.d.ts +1790 -0
  38. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/logistics-buffer-events.server.d.ts +13 -0
  40. package/dist-lib/lib/logistics-buffer-events.server.d.ts.map +1 -0
  41. package/dist-lib/lib/logistics-buffer-events.server.js +365 -0
  42. package/dist-lib/lib/logistics-events.d.ts.map +1 -1
  43. package/dist-lib/lib/logistics-events.js +36 -7
  44. package/dist-lib/lib/logistics-tasks.server.d.ts.map +1 -1
  45. package/dist-lib/lib/logistics-tasks.server.js +38 -6
  46. package/dist-lib/lib/module-health.functions.d.ts +1790 -0
  47. package/dist-lib/lib/module-health.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/stock-sync.functions.d.ts +1790 -0
  49. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  50. package/package.json +1 -1
@@ -2154,6 +2154,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
2154
2154
  created_at: string;
2155
2155
  currency: string;
2156
2156
  distribute_over: string | null;
2157
+ external_id: string | null;
2158
+ external_synced_at: string | null;
2157
2159
  group_type: string;
2158
2160
  handling_fee: number | null;
2159
2161
  id: string;
@@ -2166,6 +2168,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
2166
2168
  rounding: string;
2167
2169
  rounding_step: number;
2168
2170
  sort_order: number;
2171
+ source: string;
2169
2172
  unit: string;
2170
2173
  updated_at: string;
2171
2174
  };
@@ -2176,6 +2179,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
2176
2179
  created_at?: string;
2177
2180
  currency?: string;
2178
2181
  distribute_over?: string | null;
2182
+ external_id?: string | null;
2183
+ external_synced_at?: string | null;
2179
2184
  group_type?: string;
2180
2185
  handling_fee?: number | null;
2181
2186
  id?: string;
@@ -2188,6 +2193,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
2188
2193
  rounding?: string;
2189
2194
  rounding_step?: number;
2190
2195
  sort_order?: number;
2196
+ source?: string;
2191
2197
  unit?: string;
2192
2198
  updated_at?: string;
2193
2199
  };
@@ -2198,6 +2204,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
2198
2204
  created_at?: string;
2199
2205
  currency?: string;
2200
2206
  distribute_over?: string | null;
2207
+ external_id?: string | null;
2208
+ external_synced_at?: string | null;
2201
2209
  group_type?: string;
2202
2210
  handling_fee?: number | null;
2203
2211
  id?: string;
@@ -2210,6 +2218,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
2210
2218
  rounding?: string;
2211
2219
  rounding_step?: number;
2212
2220
  sort_order?: number;
2221
+ source?: string;
2213
2222
  unit?: string;
2214
2223
  updated_at?: string;
2215
2224
  };
@@ -5800,6 +5809,84 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
5800
5809
  referencedColumns: ["id"];
5801
5810
  }];
5802
5811
  };
5812
+ floriday_catalog_prices_cache: {
5813
+ Row: {
5814
+ connection_id: string;
5815
+ created_at: string;
5816
+ currency: string;
5817
+ id: string;
5818
+ is_deleted: boolean;
5819
+ price: number | null;
5820
+ price_group_id: string | null;
5821
+ price_group_name: string | null;
5822
+ price_type: string;
5823
+ raw: import("../integrations/supabase/types").Json | null;
5824
+ sales_unit: string | null;
5825
+ sequence_number: number;
5826
+ supplier_article_code: string | null;
5827
+ supply_line_id: string;
5828
+ synced_at: string;
5829
+ trade_item_id: string | null;
5830
+ updated_at: string;
5831
+ valid_from: string | null;
5832
+ valid_to: string | null;
5833
+ week: number | null;
5834
+ year: number | null;
5835
+ };
5836
+ Insert: {
5837
+ connection_id: string;
5838
+ created_at?: string;
5839
+ currency?: string;
5840
+ id?: string;
5841
+ is_deleted?: boolean;
5842
+ price?: number | null;
5843
+ price_group_id?: string | null;
5844
+ price_group_name?: string | null;
5845
+ price_type?: string;
5846
+ raw?: import("../integrations/supabase/types").Json | null;
5847
+ sales_unit?: string | null;
5848
+ sequence_number?: number;
5849
+ supplier_article_code?: string | null;
5850
+ supply_line_id: string;
5851
+ synced_at?: string;
5852
+ trade_item_id?: string | null;
5853
+ updated_at?: string;
5854
+ valid_from?: string | null;
5855
+ valid_to?: string | null;
5856
+ week?: number | null;
5857
+ year?: number | null;
5858
+ };
5859
+ Update: {
5860
+ connection_id?: string;
5861
+ created_at?: string;
5862
+ currency?: string;
5863
+ id?: string;
5864
+ is_deleted?: boolean;
5865
+ price?: number | null;
5866
+ price_group_id?: string | null;
5867
+ price_group_name?: string | null;
5868
+ price_type?: string;
5869
+ raw?: import("../integrations/supabase/types").Json | null;
5870
+ sales_unit?: string | null;
5871
+ sequence_number?: number;
5872
+ supplier_article_code?: string | null;
5873
+ supply_line_id?: string;
5874
+ synced_at?: string;
5875
+ trade_item_id?: string | null;
5876
+ updated_at?: string;
5877
+ valid_from?: string | null;
5878
+ valid_to?: string | null;
5879
+ week?: number | null;
5880
+ year?: number | null;
5881
+ };
5882
+ Relationships: [{
5883
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
5884
+ columns: ["connection_id"];
5885
+ isOneToOne: false;
5886
+ referencedRelation: "floriday_connections";
5887
+ referencedColumns: ["id"];
5888
+ }];
5889
+ };
5803
5890
  floriday_clock_presales_cache: {
5804
5891
  Row: {
5805
5892
  buyer_organization_id: string | null;
@@ -9073,6 +9160,30 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9073
9160
  referencedColumns: ["id"];
9074
9161
  }];
9075
9162
  };
9163
+ job_locks: {
9164
+ Row: {
9165
+ created_at: string;
9166
+ lock_key: string;
9167
+ locked_until: string;
9168
+ owner: string | null;
9169
+ updated_at: string;
9170
+ };
9171
+ Insert: {
9172
+ created_at?: string;
9173
+ lock_key: string;
9174
+ locked_until: string;
9175
+ owner?: string | null;
9176
+ updated_at?: string;
9177
+ };
9178
+ Update: {
9179
+ created_at?: string;
9180
+ lock_key?: string;
9181
+ locked_until?: string;
9182
+ owner?: string | null;
9183
+ updated_at?: string;
9184
+ };
9185
+ Relationships: [];
9186
+ };
9076
9187
  layout_logos: {
9077
9188
  Row: {
9078
9189
  bestand_url: string;
@@ -10042,6 +10153,36 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10042
10153
  };
10043
10154
  Relationships: [];
10044
10155
  };
10156
+ logistics_floriday_push_refusals: {
10157
+ Row: {
10158
+ action: string | null;
10159
+ created_at: string;
10160
+ id: string;
10161
+ order_ref: string;
10162
+ reason: string;
10163
+ source_module: string | null;
10164
+ source_shell: string | null;
10165
+ };
10166
+ Insert: {
10167
+ action?: string | null;
10168
+ created_at?: string;
10169
+ id?: string;
10170
+ order_ref: string;
10171
+ reason: string;
10172
+ source_module?: string | null;
10173
+ source_shell?: string | null;
10174
+ };
10175
+ Update: {
10176
+ action?: string | null;
10177
+ created_at?: string;
10178
+ id?: string;
10179
+ order_ref?: string;
10180
+ reason?: string;
10181
+ source_module?: string | null;
10182
+ source_shell?: string | null;
10183
+ };
10184
+ Relationships: [];
10185
+ };
10045
10186
  logistics_floriday_pushes: {
10046
10187
  Row: {
10047
10188
  attempts: number;
@@ -10117,6 +10258,42 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10117
10258
  };
10118
10259
  Relationships: [];
10119
10260
  };
10261
+ logistics_floriday_status_sends: {
10262
+ Row: {
10263
+ action: string;
10264
+ created_at: string;
10265
+ detail: string | null;
10266
+ http_status: number | null;
10267
+ id: string;
10268
+ ok: boolean;
10269
+ order_ref: string;
10270
+ source_module: string | null;
10271
+ source_shell: string | null;
10272
+ };
10273
+ Insert: {
10274
+ action: string;
10275
+ created_at?: string;
10276
+ detail?: string | null;
10277
+ http_status?: number | null;
10278
+ id?: string;
10279
+ ok?: boolean;
10280
+ order_ref: string;
10281
+ source_module?: string | null;
10282
+ source_shell?: string | null;
10283
+ };
10284
+ Update: {
10285
+ action?: string;
10286
+ created_at?: string;
10287
+ detail?: string | null;
10288
+ http_status?: number | null;
10289
+ id?: string;
10290
+ ok?: boolean;
10291
+ order_ref?: string;
10292
+ source_module?: string | null;
10293
+ source_shell?: string | null;
10294
+ };
10295
+ Relationships: [];
10296
+ };
10120
10297
  logistics_formulas: {
10121
10298
  Row: {
10122
10299
  created_at: string;
@@ -10189,6 +10366,108 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10189
10366
  };
10190
10367
  Relationships: [];
10191
10368
  };
10369
+ logistics_opening_exceptions: {
10370
+ Row: {
10371
+ closes: string | null;
10372
+ created_at: string;
10373
+ day: string;
10374
+ id: string;
10375
+ is_closed: boolean;
10376
+ note: string | null;
10377
+ opens: string | null;
10378
+ };
10379
+ Insert: {
10380
+ closes?: string | null;
10381
+ created_at?: string;
10382
+ day: string;
10383
+ id?: string;
10384
+ is_closed?: boolean;
10385
+ note?: string | null;
10386
+ opens?: string | null;
10387
+ };
10388
+ Update: {
10389
+ closes?: string | null;
10390
+ created_at?: string;
10391
+ day?: string;
10392
+ id?: string;
10393
+ is_closed?: boolean;
10394
+ note?: string | null;
10395
+ opens?: string | null;
10396
+ };
10397
+ Relationships: [];
10398
+ };
10399
+ logistics_opening_hours: {
10400
+ Row: {
10401
+ closes: string;
10402
+ created_at: string;
10403
+ id: string;
10404
+ is_active: boolean;
10405
+ note: string | null;
10406
+ opens: string;
10407
+ weekday: number;
10408
+ };
10409
+ Insert: {
10410
+ closes: string;
10411
+ created_at?: string;
10412
+ id?: string;
10413
+ is_active?: boolean;
10414
+ note?: string | null;
10415
+ opens: string;
10416
+ weekday: number;
10417
+ };
10418
+ Update: {
10419
+ closes?: string;
10420
+ created_at?: string;
10421
+ id?: string;
10422
+ is_active?: boolean;
10423
+ note?: string | null;
10424
+ opens?: string;
10425
+ weekday?: number;
10426
+ };
10427
+ Relationships: [];
10428
+ };
10429
+ logistics_pick_data_requests: {
10430
+ Row: {
10431
+ actions: import("../integrations/supabase/types").Json;
10432
+ created_at: string;
10433
+ event_id: string | null;
10434
+ finished_at: string | null;
10435
+ id: string;
10436
+ missing: import("../integrations/supabase/types").Json;
10437
+ order_ref: string;
10438
+ reason: string | null;
10439
+ result: import("../integrations/supabase/types").Json | null;
10440
+ status: string;
10441
+ unit_ref: string | null;
10442
+ };
10443
+ Insert: {
10444
+ actions?: import("../integrations/supabase/types").Json;
10445
+ created_at?: string;
10446
+ event_id?: string | null;
10447
+ finished_at?: string | null;
10448
+ id?: string;
10449
+ missing?: import("../integrations/supabase/types").Json;
10450
+ order_ref: string;
10451
+ reason?: string | null;
10452
+ result?: import("../integrations/supabase/types").Json | null;
10453
+ status?: string;
10454
+ unit_ref?: string | null;
10455
+ };
10456
+ Update: {
10457
+ actions?: import("../integrations/supabase/types").Json;
10458
+ created_at?: string;
10459
+ event_id?: string | null;
10460
+ finished_at?: string | null;
10461
+ id?: string;
10462
+ missing?: import("../integrations/supabase/types").Json;
10463
+ order_ref?: string;
10464
+ reason?: string | null;
10465
+ result?: import("../integrations/supabase/types").Json | null;
10466
+ status?: string;
10467
+ unit_ref?: string | null;
10468
+ };
10469
+ Relationships: [];
10470
+ };
10192
10471
  logistics_pickup_moments: {
10193
10472
  Row: {
10194
10473
  carrier_ref: string | null;
@@ -10235,6 +10514,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10235
10514
  next_attempt_at: string;
10236
10515
  order_id: string;
10237
10516
  reason: string;
10517
+ reason_code: string | null;
10238
10518
  status: string;
10239
10519
  updated_at: string;
10240
10520
  };
@@ -10247,6 +10527,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10247
10527
  next_attempt_at?: string;
10248
10528
  order_id: string;
10249
10529
  reason?: string;
10530
+ reason_code?: string | null;
10250
10531
  status?: string;
10251
10532
  updated_at?: string;
10252
10533
  };
@@ -10259,6 +10540,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10259
10540
  next_attempt_at?: string;
10260
10541
  order_id?: string;
10261
10542
  reason?: string;
10543
+ reason_code?: string | null;
10262
10544
  status?: string;
10263
10545
  updated_at?: string;
10264
10546
  };
@@ -10645,6 +10927,69 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10645
10927
  };
10646
10928
  Relationships: [];
10647
10929
  };
10930
+ logistics_slip_shipping_note: {
10931
+ Row: {
10932
+ attempts: number;
10933
+ batch_key: string | null;
10934
+ cart_id: string | null;
10935
+ created_at: string;
10936
+ error: string | null;
10937
+ error_code: string | null;
10938
+ fulfillment_order_id: string | null;
10939
+ id: string;
10940
+ locked_until: string | null;
10941
+ next_attempt_at: string | null;
10942
+ order_id: string | null;
10943
+ order_number: string | null;
10944
+ print_job_id: string | null;
10945
+ printer_id: string | null;
10946
+ retry_class: string | null;
10947
+ slip_job_id: string;
10948
+ status: string;
10949
+ updated_at: string;
10950
+ };
10951
+ Insert: {
10952
+ attempts?: number;
10953
+ batch_key?: string | null;
10954
+ cart_id?: string | null;
10955
+ created_at?: string;
10956
+ error?: string | null;
10957
+ error_code?: string | null;
10958
+ fulfillment_order_id?: string | null;
10959
+ id?: string;
10960
+ locked_until?: string | null;
10961
+ next_attempt_at?: string | null;
10962
+ order_id?: string | null;
10963
+ order_number?: string | null;
10964
+ print_job_id?: string | null;
10965
+ printer_id?: string | null;
10966
+ retry_class?: string | null;
10967
+ slip_job_id: string;
10968
+ status?: string;
10969
+ updated_at?: string;
10970
+ };
10971
+ Update: {
10972
+ attempts?: number;
10973
+ batch_key?: string | null;
10974
+ cart_id?: string | null;
10975
+ created_at?: string;
10976
+ error?: string | null;
10977
+ error_code?: string | null;
10978
+ fulfillment_order_id?: string | null;
10979
+ id?: string;
10980
+ locked_until?: string | null;
10981
+ next_attempt_at?: string | null;
10982
+ order_id?: string | null;
10983
+ order_number?: string | null;
10984
+ print_job_id?: string | null;
10985
+ printer_id?: string | null;
10986
+ retry_class?: string | null;
10987
+ slip_job_id?: string;
10988
+ status?: string;
10989
+ updated_at?: string;
10990
+ };
10991
+ Relationships: [];
10992
+ };
10648
10993
  logistics_staff_planning: {
10649
10994
  Row: {
10650
10995
  created_at: string;
@@ -10963,6 +11308,39 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
10963
11308
  referencedColumns: ["id"];
10964
11309
  }];
10965
11310
  };
11311
+ logistics_tick_heartbeat: {
11312
+ Row: {
11313
+ id: boolean;
11314
+ last_tick_at: string;
11315
+ };
11316
+ Insert: {
11317
+ id?: boolean;
11318
+ last_tick_at?: string;
11319
+ };
11320
+ Update: {
11321
+ id?: boolean;
11322
+ last_tick_at?: string;
11323
+ };
11324
+ Relationships: [];
11325
+ };
11326
+ logistics_time_settings: {
11327
+ Row: {
11328
+ id: boolean;
11329
+ timezone: string;
11330
+ updated_at: string;
11331
+ };
11332
+ Insert: {
11333
+ id?: boolean;
11334
+ timezone: string;
11335
+ updated_at?: string;
11336
+ };
11337
+ Update: {
11338
+ id?: boolean;
11339
+ timezone?: string;
11340
+ updated_at?: string;
11341
+ };
11342
+ Relationships: [];
11343
+ };
10966
11344
  logistics_variables: {
10967
11345
  Row: {
10968
11346
  created_at: string;
@@ -13353,6 +13731,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13353
13731
  customer_name: string;
13354
13732
  deleted_at: string | null;
13355
13733
  delivery_date: string | null;
13734
+ floriday_order_group_key: string | null;
13356
13735
  floriday_sales_order_id: string | null;
13357
13736
  id: string;
13358
13737
  invoice_due_at: string | null;
@@ -13380,6 +13759,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13380
13759
  customer_name?: string;
13381
13760
  deleted_at?: string | null;
13382
13761
  delivery_date?: string | null;
13762
+ floriday_order_group_key?: string | null;
13383
13763
  floriday_sales_order_id?: string | null;
13384
13764
  id?: string;
13385
13765
  invoice_due_at?: string | null;
@@ -13407,6 +13787,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13407
13787
  customer_name?: string;
13408
13788
  deleted_at?: string | null;
13409
13789
  delivery_date?: string | null;
13790
+ floriday_order_group_key?: string | null;
13410
13791
  floriday_sales_order_id?: string | null;
13411
13792
  id?: string;
13412
13793
  invoice_due_at?: string | null;
@@ -13600,6 +13981,27 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
13600
13981
  };
13601
13982
  Relationships: [];
13602
13983
  };
13984
+ pick_buffer_event_cursor: {
13985
+ Row: {
13986
+ created_at: string;
13987
+ id: boolean;
13988
+ last_event_at: string;
13989
+ updated_at: string;
13990
+ };
13991
+ Insert: {
13992
+ created_at?: string;
13993
+ id?: boolean;
13994
+ last_event_at?: string;
13995
+ updated_at?: string;
13996
+ };
13997
+ Update: {
13998
+ created_at?: string;
13999
+ id?: boolean;
14000
+ last_event_at?: string;
14001
+ updated_at?: string;
14002
+ };
14003
+ Relationships: [];
14004
+ };
13603
14005
  pick_countries: {
13604
14006
  Row: {
13605
14007
  active: boolean;
@@ -19249,6 +19651,36 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
19249
19651
  referencedColumns: ["id"];
19250
19652
  }];
19251
19653
  };
19654
+ voorraad_buffer_state: {
19655
+ Row: {
19656
+ buffer_id: string;
19657
+ buffer_key: string | null;
19658
+ closed_at: string | null;
19659
+ created_at: string;
19660
+ detached_orders: import("../integrations/supabase/types").Json;
19661
+ reason: string | null;
19662
+ updated_at: string;
19663
+ };
19664
+ Insert: {
19665
+ buffer_id: string;
19666
+ buffer_key?: string | null;
19667
+ closed_at?: string | null;
19668
+ created_at?: string;
19669
+ detached_orders?: import("../integrations/supabase/types").Json;
19670
+ reason?: string | null;
19671
+ updated_at?: string;
19672
+ };
19673
+ Update: {
19674
+ buffer_id?: string;
19675
+ buffer_key?: string | null;
19676
+ closed_at?: string | null;
19677
+ created_at?: string;
19678
+ detached_orders?: import("../integrations/supabase/types").Json;
19679
+ reason?: string | null;
19680
+ updated_at?: string;
19681
+ };
19682
+ Relationships: [];
19683
+ };
19252
19684
  voorraad_custom_fields: {
19253
19685
  Row: {
19254
19686
  created_at: string;
@@ -19291,6 +19723,36 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
19291
19723
  };
19292
19724
  Relationships: [];
19293
19725
  };
19726
+ voorraad_logistics_event_log: {
19727
+ Row: {
19728
+ created_at: string;
19729
+ event_id: string;
19730
+ event_type: string;
19731
+ order_ref: string | null;
19732
+ processed_at: string;
19733
+ result: import("../integrations/supabase/types").Json;
19734
+ updated_at: string;
19735
+ };
19736
+ Insert: {
19737
+ created_at?: string;
19738
+ event_id: string;
19739
+ event_type: string;
19740
+ order_ref?: string | null;
19741
+ processed_at?: string;
19742
+ result?: import("../integrations/supabase/types").Json;
19743
+ updated_at?: string;
19744
+ };
19745
+ Update: {
19746
+ created_at?: string;
19747
+ event_id?: string;
19748
+ event_type?: string;
19749
+ order_ref?: string | null;
19750
+ processed_at?: string;
19751
+ result?: import("../integrations/supabase/types").Json;
19752
+ updated_at?: string;
19753
+ };
19754
+ Relationships: [];
19755
+ };
19294
19756
  voorraad_media_upload_failures: {
19295
19757
  Row: {
19296
19758
  action: string;
@@ -22116,6 +22578,17 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22116
22578
  };
22117
22579
  Returns: boolean;
22118
22580
  };
22581
+ floriday_adopt_connection: {
22582
+ Args: {
22583
+ p_new: string;
22584
+ p_old: string;
22585
+ };
22586
+ Returns: import("../integrations/supabase/types").Json;
22587
+ };
22588
+ floriday_autoheal_connections: {
22589
+ Args: never;
22590
+ Returns: import("../integrations/supabase/types").Json;
22591
+ };
22119
22592
  floriday_capture_stock_snapshot: {
22120
22593
  Args: never;
22121
22594
  Returns: number;
@@ -22173,6 +22646,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22173
22646
  };
22174
22647
  Returns: undefined;
22175
22648
  };
22649
+ floriday_relink_products: {
22650
+ Args: {
22651
+ p_connection_id?: string;
22652
+ };
22653
+ Returns: import("../integrations/supabase/types").Json;
22654
+ };
22176
22655
  floriday_requeue_dead_letters: {
22177
22656
  Args: {
22178
22657
  p_connection_id?: string;
@@ -22794,6 +23273,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22794
23273
  };
22795
23274
  Returns: string;
22796
23275
  };
23276
+ logistics_active_layout_method: {
23277
+ Args: never;
23278
+ Returns: string;
23279
+ };
22797
23280
  logistics_active_pick_workdays: {
22798
23281
  Args: never;
22799
23282
  Returns: string[];
@@ -22845,6 +23328,30 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22845
23328
  };
22846
23329
  Returns: import("../integrations/supabase/types").Json;
22847
23330
  };
23331
+ logistics_block_reason_code: {
23332
+ Args: {
23333
+ p_details?: import("../integrations/supabase/types").Json;
23334
+ p_reason: string;
23335
+ };
23336
+ Returns: string;
23337
+ };
23338
+ logistics_blocked_orders: {
23339
+ Args: never;
23340
+ Returns: {
23341
+ attempts: number;
23342
+ blocked_since: string;
23343
+ delivery_date: string;
23344
+ order_id: string;
23345
+ order_ref: string;
23346
+ queue_id: string;
23347
+ reason: string;
23348
+ reason_code: string;
23349
+ }[];
23350
+ };
23351
+ logistics_blocked_overview: {
23352
+ Args: never;
23353
+ Returns: import("../integrations/supabase/types").Json;
23354
+ };
22848
23355
  logistics_buffer_criteria: {
22849
23356
  Args: {
22850
23357
  p_settings: import("../integrations/supabase/types").Json;
@@ -22859,6 +23366,39 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22859
23366
  };
22860
23367
  Returns: import("../integrations/supabase/types").Json;
22861
23368
  };
23369
+ logistics_buffer_detach_late_orders: {
23370
+ Args: {
23371
+ p_buffer?: string;
23372
+ };
23373
+ Returns: import("../integrations/supabase/types").Json;
23374
+ };
23375
+ logistics_buffer_frozen_order: {
23376
+ Args: {
23377
+ p_order_id: string;
23378
+ };
23379
+ Returns: boolean;
23380
+ };
23381
+ logistics_buffer_handled: {
23382
+ Args: {
23383
+ p_buffer: string;
23384
+ };
23385
+ Returns: boolean;
23386
+ };
23387
+ logistics_buffer_notify: {
23388
+ Args: {
23389
+ p_event_type: string;
23390
+ p_idempotency_key: string;
23391
+ p_order_ref: string;
23392
+ p_payload: import("../integrations/supabase/types").Json;
23393
+ };
23394
+ Returns: string;
23395
+ };
23396
+ logistics_buffer_open_key: {
23397
+ Args: {
23398
+ p_base_key: string;
23399
+ };
23400
+ Returns: string;
23401
+ };
22862
23402
  logistics_buffer_simulate: {
22863
23403
  Args: {
22864
23404
  p_orders?: import("../integrations/supabase/types").Json;
@@ -22911,6 +23451,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22911
23451
  };
22912
23452
  Returns: string;
22913
23453
  };
23454
+ logistics_cart_checkin_at: {
23455
+ Args: {
23456
+ p_cart_id: string;
23457
+ };
23458
+ Returns: string;
23459
+ };
22914
23460
  logistics_cart_handled: {
22915
23461
  Args: {
22916
23462
  p_cart_index: number;
@@ -22944,10 +23490,53 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22944
23490
  task_status: string;
22945
23491
  }[];
22946
23492
  };
23493
+ logistics_cart_is_full: {
23494
+ Args: {
23495
+ p_cart_id: string;
23496
+ };
23497
+ Returns: boolean;
23498
+ };
22947
23499
  logistics_cart_layout_method: {
22948
23500
  Args: never;
22949
23501
  Returns: import("../integrations/supabase/types").Json;
22950
23502
  };
23503
+ logistics_cart_order_refs: {
23504
+ Args: {
23505
+ p_cart_id: string;
23506
+ };
23507
+ Returns: string[];
23508
+ };
23509
+ logistics_cart_plan_overview: {
23510
+ Args: {
23511
+ p_days?: number;
23512
+ };
23513
+ Returns: {
23514
+ cart_total: number;
23515
+ delivery_date: string;
23516
+ order_ref: string;
23517
+ plan_ready: boolean;
23518
+ reason: string;
23519
+ released: boolean;
23520
+ }[];
23521
+ };
23522
+ logistics_cart_plan_status: {
23523
+ Args: {
23524
+ p_ref: string;
23525
+ };
23526
+ Returns: import("../integrations/supabase/types").Json;
23527
+ };
23528
+ logistics_cart_release_reason: {
23529
+ Args: {
23530
+ p_cart_id: string;
23531
+ };
23532
+ Returns: string;
23533
+ };
23534
+ logistics_cart_released: {
23535
+ Args: {
23536
+ p_cart_id: string;
23537
+ };
23538
+ Returns: boolean;
23539
+ };
22951
23540
  logistics_cart_seq: {
22952
23541
  Args: {
22953
23542
  p_order_uuid?: string;
@@ -22998,6 +23587,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22998
23587
  unit_ref: string;
22999
23588
  }[];
23000
23589
  };
23590
+ logistics_carts_per_print: {
23591
+ Args: never;
23592
+ Returns: number;
23593
+ };
23001
23594
  logistics_check_order_allowed: {
23002
23595
  Args: {
23003
23596
  p_lines: import("../integrations/supabase/types").Json;
@@ -23101,6 +23694,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23101
23694
  isSetofReturn: false;
23102
23695
  };
23103
23696
  };
23697
+ logistics_cleanup_orphan_print_jobs: {
23698
+ Args: never;
23699
+ Returns: import("../integrations/supabase/types").Json;
23700
+ };
23104
23701
  logistics_complete_task: {
23105
23702
  Args: {
23106
23703
  p_result?: import("../integrations/supabase/types").Json;
@@ -23163,6 +23760,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23163
23760
  station_carts: number;
23164
23761
  }[];
23165
23762
  };
23763
+ logistics_control_complete_cart: {
23764
+ Args: {
23765
+ p_cart_id: string;
23766
+ };
23767
+ Returns: number;
23768
+ };
23166
23769
  logistics_control_scan_approve: {
23167
23770
  Args: {
23168
23771
  p_allow_reprint?: boolean;
@@ -23242,6 +23845,15 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23242
23845
  Args: never;
23243
23846
  Returns: import("../integrations/supabase/types").Json;
23244
23847
  };
23848
+ logistics_day_windows: {
23849
+ Args: {
23850
+ p_day: string;
23851
+ };
23852
+ Returns: {
23853
+ win_end: string;
23854
+ win_start: string;
23855
+ }[];
23856
+ };
23245
23857
  logistics_delay_customer_email: {
23246
23858
  Args: {
23247
23859
  p_customer: string;
@@ -23309,6 +23921,17 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23309
23921
  };
23310
23922
  Returns: import("../integrations/supabase/types").Json;
23311
23923
  };
23924
+ logistics_enqueue_shipping_note_with_slip: {
23925
+ Args: {
23926
+ _cart_id: string;
23927
+ _is_herprint: boolean;
23928
+ _printer_id: string;
23929
+ _queue_item_id: string;
23930
+ _session_id: string;
23931
+ _slip_job_id: string;
23932
+ };
23933
+ Returns: string;
23934
+ };
23312
23935
  logistics_enqueue_sticker_with_slip: {
23313
23936
  Args: {
23314
23937
  _cart_id: string;
@@ -23326,6 +23949,14 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23326
23949
  };
23327
23950
  Returns: string;
23328
23951
  };
23952
+ logistics_ensure_pick_data: {
23953
+ Args: {
23954
+ p_event_id?: string;
23955
+ p_missing?: import("../integrations/supabase/types").Json;
23956
+ p_ref: string;
23957
+ };
23958
+ Returns: import("../integrations/supabase/types").Json;
23959
+ };
23329
23960
  logistics_fail_task: {
23330
23961
  Args: {
23331
23962
  p_error: string;
@@ -23447,6 +24078,38 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23447
24078
  };
23448
24079
  Returns: string;
23449
24080
  };
24081
+ logistics_floriday_gate_status: {
24082
+ Args: never;
24083
+ Returns: import("../integrations/supabase/types").Json;
24084
+ };
24085
+ logistics_floriday_log_refusal: {
24086
+ Args: {
24087
+ _action?: string;
24088
+ _module?: string;
24089
+ _order_ref: string;
24090
+ _reason: string;
24091
+ _shell?: string;
24092
+ };
24093
+ Returns: undefined;
24094
+ };
24095
+ logistics_floriday_log_send: {
24096
+ Args: {
24097
+ _action: string;
24098
+ _detail?: string;
24099
+ _http_status?: number;
24100
+ _module?: string;
24101
+ _ok: boolean;
24102
+ _order_ref: string;
24103
+ _shell?: string;
24104
+ };
24105
+ Returns: undefined;
24106
+ };
24107
+ logistics_floriday_order_approved: {
24108
+ Args: {
24109
+ _order_ref: string;
24110
+ };
24111
+ Returns: boolean;
24112
+ };
23450
24113
  logistics_floriday_prune_pushes: {
23451
24114
  Args: {
23452
24115
  _days?: number;
@@ -23461,6 +24124,20 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23461
24124
  };
23462
24125
  Returns: string;
23463
24126
  };
24127
+ logistics_floriday_status_updates_enabled: {
24128
+ Args: never;
24129
+ Returns: boolean;
24130
+ };
24131
+ logistics_floriday_stock_updates_enabled: {
24132
+ Args: never;
24133
+ Returns: boolean;
24134
+ };
24135
+ logistics_floriday_write_allowed: {
24136
+ Args: {
24137
+ _action: string;
24138
+ };
24139
+ Returns: boolean;
24140
+ };
23464
24141
  logistics_fulfill_barcode_requests: {
23465
24142
  Args: {
23466
24143
  p_limit?: number;
@@ -23481,6 +24158,16 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23481
24158
  };
23482
24159
  Returns: boolean;
23483
24160
  };
24161
+ logistics_layout_method_status: {
24162
+ Args: never;
24163
+ Returns: import("../integrations/supabase/types").Json;
24164
+ };
24165
+ logistics_link_order_items: {
24166
+ Args: {
24167
+ p_order?: string;
24168
+ };
24169
+ Returns: import("../integrations/supabase/types").Json;
24170
+ };
23484
24171
  logistics_live_carriers: {
23485
24172
  Args: {
23486
24173
  p_order_ref: string;
@@ -23493,6 +24180,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23493
24180
  };
23494
24181
  Returns: number;
23495
24182
  };
24183
+ logistics_merge_partial_carts: {
24184
+ Args: {
24185
+ p_limit?: number;
24186
+ };
24187
+ Returns: import("../integrations/supabase/types").Json;
24188
+ };
23496
24189
  logistics_next_workday_date: {
23497
24190
  Args: {
23498
24191
  p_date: string;
@@ -23507,12 +24200,22 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23507
24200
  };
23508
24201
  Returns: string;
23509
24202
  };
24203
+ logistics_normalize_product_label: {
24204
+ Args: {
24205
+ p_label: string;
24206
+ };
24207
+ Returns: string;
24208
+ };
23510
24209
  logistics_not_past: {
23511
24210
  Args: {
23512
24211
  p_ts: string;
23513
24212
  };
23514
24213
  Returns: string;
23515
24214
  };
24215
+ logistics_opening_timezone: {
24216
+ Args: never;
24217
+ Returns: string;
24218
+ };
23516
24219
  logistics_order_cart_count: {
23517
24220
  Args: {
23518
24221
  p_order_ref: string;
@@ -23597,6 +24300,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23597
24300
  Args: never;
23598
24301
  Returns: import("../integrations/supabase/types").Json;
23599
24302
  };
24303
+ logistics_pick_partial_mode: {
24304
+ Args: never;
24305
+ Returns: string;
24306
+ };
23600
24307
  logistics_pick_start_estimate: {
23601
24308
  Args: {
23602
24309
  p_order: import("../integrations/supabase/types").Json;
@@ -23695,6 +24402,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23695
24402
  Args: never;
23696
24403
  Returns: number;
23697
24404
  };
24405
+ logistics_plan_retry: {
24406
+ Args: {
24407
+ p_order_ids: string[];
24408
+ };
24409
+ Returns: number;
24410
+ };
23698
24411
  logistics_plan_setting: {
23699
24412
  Args: {
23700
24413
  p_default: number;
@@ -23702,6 +24415,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23702
24415
  };
23703
24416
  Returns: number;
23704
24417
  };
24418
+ logistics_prepare_pick_documents: {
24419
+ Args: {
24420
+ p_limit?: number;
24421
+ };
24422
+ Returns: import("../integrations/supabase/types").Json;
24423
+ };
23705
24424
  logistics_prune_buffer_member_queue: {
23706
24425
  Args: never;
23707
24426
  Returns: number;
@@ -23742,12 +24461,30 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23742
24461
  Args: never;
23743
24462
  Returns: import("../integrations/supabase/types").Json;
23744
24463
  };
24464
+ logistics_refresh_pick_queue_status: {
24465
+ Args: {
24466
+ p_ref: string;
24467
+ };
24468
+ Returns: number;
24469
+ };
23745
24470
  logistics_refresh_pickup_moments: {
23746
24471
  Args: {
23747
24472
  p_weeks?: number;
23748
24473
  };
23749
24474
  Returns: import("../integrations/supabase/types").Json;
23750
24475
  };
24476
+ logistics_replan_all: {
24477
+ Args: {
24478
+ p_reason?: string;
24479
+ };
24480
+ Returns: import("../integrations/supabase/types").Json;
24481
+ };
24482
+ logistics_replan_all_force: {
24483
+ Args: {
24484
+ p_reason?: string;
24485
+ };
24486
+ Returns: import("../integrations/supabase/types").Json;
24487
+ };
23751
24488
  logistics_report_delay: {
23752
24489
  Args: {
23753
24490
  p_expected_date?: string;
@@ -23801,6 +24538,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23801
24538
  };
23802
24539
  Returns: import("../integrations/supabase/types").Json;
23803
24540
  };
24541
+ logistics_resolve_product_id: {
24542
+ Args: {
24543
+ p_label: string;
24544
+ };
24545
+ Returns: string;
24546
+ };
23804
24547
  logistics_resolve_settings: {
23805
24548
  Args: {
23806
24549
  p_config_id: string;
@@ -23886,6 +24629,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23886
24629
  };
23887
24630
  Returns: string;
23888
24631
  };
24632
+ logistics_shipping_note_follows_slip: {
24633
+ Args: never;
24634
+ Returns: boolean;
24635
+ };
23889
24636
  logistics_shipping_note_from_barcode: {
23890
24637
  Args: {
23891
24638
  p_allow_reprint?: boolean;
@@ -23894,10 +24641,76 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23894
24641
  };
23895
24642
  Returns: import("../integrations/supabase/types").Json;
23896
24643
  };
24644
+ logistics_shipping_note_job_for_slip: {
24645
+ Args: {
24646
+ _slip_job_id: string;
24647
+ };
24648
+ Returns: string;
24649
+ };
24650
+ logistics_slip_note_claim: {
24651
+ Args: {
24652
+ _lease_seconds?: number;
24653
+ _limit?: number;
24654
+ };
24655
+ Returns: {
24656
+ attempts: number;
24657
+ batch_key: string | null;
24658
+ cart_id: string | null;
24659
+ created_at: string;
24660
+ error: string | null;
24661
+ error_code: string | null;
24662
+ fulfillment_order_id: string | null;
24663
+ id: string;
24664
+ locked_until: string | null;
24665
+ next_attempt_at: string | null;
24666
+ order_id: string | null;
24667
+ order_number: string | null;
24668
+ print_job_id: string | null;
24669
+ printer_id: string | null;
24670
+ retry_class: string | null;
24671
+ slip_job_id: string;
24672
+ status: string;
24673
+ updated_at: string;
24674
+ }[];
24675
+ SetofOptions: {
24676
+ from: "*";
24677
+ to: "logistics_slip_shipping_note";
24678
+ isOneToOne: false;
24679
+ isSetofReturn: true;
24680
+ };
24681
+ };
24682
+ logistics_slip_note_finish: {
24683
+ Args: {
24684
+ _error?: string;
24685
+ _error_code?: string;
24686
+ _fulfillment_order_id?: string;
24687
+ _id: string;
24688
+ _ok: boolean;
24689
+ _print_job_id?: string;
24690
+ _status?: string;
24691
+ };
24692
+ Returns: undefined;
24693
+ };
24694
+ logistics_slip_note_keep_waiting: {
24695
+ Args: {
24696
+ _class?: string;
24697
+ _id: string;
24698
+ _reason: string;
24699
+ };
24700
+ Returns: undefined;
24701
+ };
23897
24702
  logistics_sticker_follows_slip: {
23898
24703
  Args: never;
23899
24704
  Returns: boolean;
23900
24705
  };
24706
+ logistics_subtract_working_minutes: {
24707
+ Args: {
24708
+ p_deadline: string;
24709
+ p_max_workdays?: number;
24710
+ p_minutes: number;
24711
+ };
24712
+ Returns: import("../integrations/supabase/types").Json;
24713
+ };
23901
24714
  logistics_supersede_stale_tasks: {
23902
24715
  Args: {
23903
24716
  p_keep: string[];
@@ -23930,6 +24743,16 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23930
24743
  };
23931
24744
  Returns: number;
23932
24745
  };
24746
+ logistics_tick_ping: {
24747
+ Args: never;
24748
+ Returns: string;
24749
+ };
24750
+ logistics_timezone_options: {
24751
+ Args: never;
24752
+ Returns: {
24753
+ name: string;
24754
+ }[];
24755
+ };
23933
24756
  logistics_upsert_task: {
23934
24757
  Args: {
23935
24758
  p_buffer_ref: string;
@@ -23949,6 +24772,16 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
23949
24772
  };
23950
24773
  Returns: string;
23951
24774
  };
24775
+ logistics_valid_timezone: {
24776
+ Args: {
24777
+ _tz: string;
24778
+ };
24779
+ Returns: boolean;
24780
+ };
24781
+ logistics_working_hours_status: {
24782
+ Args: never;
24783
+ Returns: import("../integrations/supabase/types").Json;
24784
+ };
23952
24785
  logistics_write_buffer_layer_positions: {
23953
24786
  Args: {
23954
24787
  p_buffer_id: string;
@@ -24073,6 +24906,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24073
24906
  };
24074
24907
  Returns: import("../integrations/supabase/types").Json;
24075
24908
  };
24909
+ order_heeft_bevestigde_karren: {
24910
+ Args: {
24911
+ p_order_id: string;
24912
+ };
24913
+ Returns: boolean;
24914
+ };
24076
24915
  order_number_prefix: {
24077
24916
  Args: {
24078
24917
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -24108,6 +24947,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24108
24947
  online: boolean;
24109
24948
  }[];
24110
24949
  };
24950
+ pick_apply_buffer_events: {
24951
+ Args: never;
24952
+ Returns: import("../integrations/supabase/types").Json;
24953
+ };
24111
24954
  pick_available_pick_days: {
24112
24955
  Args: {
24113
24956
  _max_days?: number;
@@ -24117,6 +24960,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24117
24960
  pick_day: string;
24118
24961
  }[];
24119
24962
  };
24963
+ pick_buffer_order_ids: {
24964
+ Args: {
24965
+ _order_id: string;
24966
+ };
24967
+ Returns: string[];
24968
+ };
24120
24969
  pick_cart_breakdown: {
24121
24970
  Args: {
24122
24971
  _order_id: string;
@@ -24176,6 +25025,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24176
25025
  pick_claim_next_document: {
24177
25026
  Args: {
24178
25027
  _country_code: string;
25028
+ _pick_day?: string;
24179
25029
  _screen_id: string;
24180
25030
  _session_id: string;
24181
25031
  _station_id: string;
@@ -24464,6 +25314,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24464
25314
  omschrijving: string;
24465
25315
  }[];
24466
25316
  };
25317
+ pick_queue_cart_plan: {
25318
+ Args: {
25319
+ _queue_item_id: string;
25320
+ };
25321
+ Returns: import("../integrations/supabase/types").Json;
25322
+ };
24467
25323
  pick_reference_data_status: {
24468
25324
  Args: never;
24469
25325
  Returns: import("../integrations/supabase/types").Json;
@@ -24478,6 +25334,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24478
25334
  };
24479
25335
  Returns: undefined;
24480
25336
  };
25337
+ pick_report_missing_cart_plan: {
25338
+ Args: never;
25339
+ Returns: import("../integrations/supabase/types").Json;
25340
+ };
24481
25341
  pick_reprint_cart: {
24482
25342
  Args: {
24483
25343
  _cart_id: string;
@@ -25018,6 +25878,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25018
25878
  };
25019
25879
  Returns: boolean;
25020
25880
  };
25881
+ release_job_lock: {
25882
+ Args: {
25883
+ _key: string;
25884
+ };
25885
+ Returns: undefined;
25886
+ };
25021
25887
  release_local_pdf_job: {
25022
25888
  Args: {
25023
25889
  _job_id: string;
@@ -25207,6 +26073,16 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25207
26073
  };
25208
26074
  Returns: import("../integrations/supabase/types").Json;
25209
26075
  };
26076
+ scan_log_code: {
26077
+ Args: {
26078
+ p_code: string;
26079
+ p_latency_ms?: number;
26080
+ p_message?: string;
26081
+ p_result: string;
26082
+ p_scanner_key?: string;
26083
+ };
26084
+ Returns: string;
26085
+ };
25210
26086
  scan_open_pakbonnen: {
25211
26087
  Args: {
25212
26088
  p_dagen?: number;
@@ -25351,6 +26227,13 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25351
26227
  };
25352
26228
  Returns: number;
25353
26229
  };
26230
+ schedule_floriday_catalog_prices_sync: {
26231
+ Args: {
26232
+ p_apikey: string;
26233
+ p_url: string;
26234
+ };
26235
+ Returns: number;
26236
+ };
25354
26237
  schedule_floriday_clock_presales_sync: {
25355
26238
  Args: {
25356
26239
  p_apikey: string;
@@ -25651,6 +26534,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25651
26534
  };
25652
26535
  Returns: undefined;
25653
26536
  };
26537
+ sync_floriday_prices_into_price_groups: {
26538
+ Args: never;
26539
+ Returns: number;
26540
+ };
25654
26541
  sync_layer_stock: {
25655
26542
  Args: {
25656
26543
  p_product_id: string;
@@ -25696,6 +26583,14 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25696
26583
  row_count: number;
25697
26584
  }[];
25698
26585
  };
26586
+ try_acquire_job_lock: {
26587
+ Args: {
26588
+ _key: string;
26589
+ _owner?: string;
26590
+ _seconds?: number;
26591
+ };
26592
+ Returns: boolean;
26593
+ };
25699
26594
  try_debtor_lock: {
25700
26595
  Args: {
25701
26596
  _group_key: string;
@@ -28007,6 +28902,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
28007
28902
  created_at: string;
28008
28903
  currency: string;
28009
28904
  distribute_over: string | null;
28905
+ external_id: string | null;
28906
+ external_synced_at: string | null;
28010
28907
  group_type: string;
28011
28908
  handling_fee: number | null;
28012
28909
  id: string;
@@ -28019,6 +28916,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
28019
28916
  rounding: string;
28020
28917
  rounding_step: number;
28021
28918
  sort_order: number;
28919
+ source: string;
28022
28920
  unit: string;
28023
28921
  updated_at: string;
28024
28922
  };
@@ -28029,6 +28927,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
28029
28927
  created_at?: string;
28030
28928
  currency?: string;
28031
28929
  distribute_over?: string | null;
28930
+ external_id?: string | null;
28931
+ external_synced_at?: string | null;
28032
28932
  group_type?: string;
28033
28933
  handling_fee?: number | null;
28034
28934
  id?: string;
@@ -28041,6 +28941,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
28041
28941
  rounding?: string;
28042
28942
  rounding_step?: number;
28043
28943
  sort_order?: number;
28944
+ source?: string;
28044
28945
  unit?: string;
28045
28946
  updated_at?: string;
28046
28947
  };
@@ -28051,6 +28952,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
28051
28952
  created_at?: string;
28052
28953
  currency?: string;
28053
28954
  distribute_over?: string | null;
28955
+ external_id?: string | null;
28956
+ external_synced_at?: string | null;
28054
28957
  group_type?: string;
28055
28958
  handling_fee?: number | null;
28056
28959
  id?: string;
@@ -28063,6 +28966,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
28063
28966
  rounding?: string;
28064
28967
  rounding_step?: number;
28065
28968
  sort_order?: number;
28969
+ source?: string;
28066
28970
  unit?: string;
28067
28971
  updated_at?: string;
28068
28972
  };
@@ -31653,6 +32557,84 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
31653
32557
  referencedColumns: ["id"];
31654
32558
  }];
31655
32559
  };
32560
+ floriday_catalog_prices_cache: {
32561
+ Row: {
32562
+ connection_id: string;
32563
+ created_at: string;
32564
+ currency: string;
32565
+ id: string;
32566
+ is_deleted: boolean;
32567
+ price: number | null;
32568
+ price_group_id: string | null;
32569
+ price_group_name: string | null;
32570
+ price_type: string;
32571
+ raw: import("../integrations/supabase/types").Json | null;
32572
+ sales_unit: string | null;
32573
+ sequence_number: number;
32574
+ supplier_article_code: string | null;
32575
+ supply_line_id: string;
32576
+ synced_at: string;
32577
+ trade_item_id: string | null;
32578
+ updated_at: string;
32579
+ valid_from: string | null;
32580
+ valid_to: string | null;
32581
+ week: number | null;
32582
+ year: number | null;
32583
+ };
32584
+ Insert: {
32585
+ connection_id: string;
32586
+ created_at?: string;
32587
+ currency?: string;
32588
+ id?: string;
32589
+ is_deleted?: boolean;
32590
+ price?: number | null;
32591
+ price_group_id?: string | null;
32592
+ price_group_name?: string | null;
32593
+ price_type?: string;
32594
+ raw?: import("../integrations/supabase/types").Json | null;
32595
+ sales_unit?: string | null;
32596
+ sequence_number?: number;
32597
+ supplier_article_code?: string | null;
32598
+ supply_line_id: string;
32599
+ synced_at?: string;
32600
+ trade_item_id?: string | null;
32601
+ updated_at?: string;
32602
+ valid_from?: string | null;
32603
+ valid_to?: string | null;
32604
+ week?: number | null;
32605
+ year?: number | null;
32606
+ };
32607
+ Update: {
32608
+ connection_id?: string;
32609
+ created_at?: string;
32610
+ currency?: string;
32611
+ id?: string;
32612
+ is_deleted?: boolean;
32613
+ price?: number | null;
32614
+ price_group_id?: string | null;
32615
+ price_group_name?: string | null;
32616
+ price_type?: string;
32617
+ raw?: import("../integrations/supabase/types").Json | null;
32618
+ sales_unit?: string | null;
32619
+ sequence_number?: number;
32620
+ supplier_article_code?: string | null;
32621
+ supply_line_id?: string;
32622
+ synced_at?: string;
32623
+ trade_item_id?: string | null;
32624
+ updated_at?: string;
32625
+ valid_from?: string | null;
32626
+ valid_to?: string | null;
32627
+ week?: number | null;
32628
+ year?: number | null;
32629
+ };
32630
+ Relationships: [{
32631
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
32632
+ columns: ["connection_id"];
32633
+ isOneToOne: false;
32634
+ referencedRelation: "floriday_connections";
32635
+ referencedColumns: ["id"];
32636
+ }];
32637
+ };
31656
32638
  floriday_clock_presales_cache: {
31657
32639
  Row: {
31658
32640
  buyer_organization_id: string | null;
@@ -34926,6 +35908,30 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
34926
35908
  referencedColumns: ["id"];
34927
35909
  }];
34928
35910
  };
35911
+ job_locks: {
35912
+ Row: {
35913
+ created_at: string;
35914
+ lock_key: string;
35915
+ locked_until: string;
35916
+ owner: string | null;
35917
+ updated_at: string;
35918
+ };
35919
+ Insert: {
35920
+ created_at?: string;
35921
+ lock_key: string;
35922
+ locked_until: string;
35923
+ owner?: string | null;
35924
+ updated_at?: string;
35925
+ };
35926
+ Update: {
35927
+ created_at?: string;
35928
+ lock_key?: string;
35929
+ locked_until?: string;
35930
+ owner?: string | null;
35931
+ updated_at?: string;
35932
+ };
35933
+ Relationships: [];
35934
+ };
34929
35935
  layout_logos: {
34930
35936
  Row: {
34931
35937
  bestand_url: string;
@@ -35895,6 +36901,36 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
35895
36901
  };
35896
36902
  Relationships: [];
35897
36903
  };
36904
+ logistics_floriday_push_refusals: {
36905
+ Row: {
36906
+ action: string | null;
36907
+ created_at: string;
36908
+ id: string;
36909
+ order_ref: string;
36910
+ reason: string;
36911
+ source_module: string | null;
36912
+ source_shell: string | null;
36913
+ };
36914
+ Insert: {
36915
+ action?: string | null;
36916
+ created_at?: string;
36917
+ id?: string;
36918
+ order_ref: string;
36919
+ reason: string;
36920
+ source_module?: string | null;
36921
+ source_shell?: string | null;
36922
+ };
36923
+ Update: {
36924
+ action?: string | null;
36925
+ created_at?: string;
36926
+ id?: string;
36927
+ order_ref?: string;
36928
+ reason?: string;
36929
+ source_module?: string | null;
36930
+ source_shell?: string | null;
36931
+ };
36932
+ Relationships: [];
36933
+ };
35898
36934
  logistics_floriday_pushes: {
35899
36935
  Row: {
35900
36936
  attempts: number;
@@ -35970,6 +37006,42 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
35970
37006
  };
35971
37007
  Relationships: [];
35972
37008
  };
37009
+ logistics_floriday_status_sends: {
37010
+ Row: {
37011
+ action: string;
37012
+ created_at: string;
37013
+ detail: string | null;
37014
+ http_status: number | null;
37015
+ id: string;
37016
+ ok: boolean;
37017
+ order_ref: string;
37018
+ source_module: string | null;
37019
+ source_shell: string | null;
37020
+ };
37021
+ Insert: {
37022
+ action: string;
37023
+ created_at?: string;
37024
+ detail?: string | null;
37025
+ http_status?: number | null;
37026
+ id?: string;
37027
+ ok?: boolean;
37028
+ order_ref: string;
37029
+ source_module?: string | null;
37030
+ source_shell?: string | null;
37031
+ };
37032
+ Update: {
37033
+ action?: string;
37034
+ created_at?: string;
37035
+ detail?: string | null;
37036
+ http_status?: number | null;
37037
+ id?: string;
37038
+ ok?: boolean;
37039
+ order_ref?: string;
37040
+ source_module?: string | null;
37041
+ source_shell?: string | null;
37042
+ };
37043
+ Relationships: [];
37044
+ };
35973
37045
  logistics_formulas: {
35974
37046
  Row: {
35975
37047
  created_at: string;
@@ -36042,6 +37114,108 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36042
37114
  };
36043
37115
  Relationships: [];
36044
37116
  };
37117
+ logistics_opening_exceptions: {
37118
+ Row: {
37119
+ closes: string | null;
37120
+ created_at: string;
37121
+ day: string;
37122
+ id: string;
37123
+ is_closed: boolean;
37124
+ note: string | null;
37125
+ opens: string | null;
37126
+ };
37127
+ Insert: {
37128
+ closes?: string | null;
37129
+ created_at?: string;
37130
+ day: string;
37131
+ id?: string;
37132
+ is_closed?: boolean;
37133
+ note?: string | null;
37134
+ opens?: string | null;
37135
+ };
37136
+ Update: {
37137
+ closes?: string | null;
37138
+ created_at?: string;
37139
+ day?: string;
37140
+ id?: string;
37141
+ is_closed?: boolean;
37142
+ note?: string | null;
37143
+ opens?: string | null;
37144
+ };
37145
+ Relationships: [];
37146
+ };
37147
+ logistics_opening_hours: {
37148
+ Row: {
37149
+ closes: string;
37150
+ created_at: string;
37151
+ id: string;
37152
+ is_active: boolean;
37153
+ note: string | null;
37154
+ opens: string;
37155
+ weekday: number;
37156
+ };
37157
+ Insert: {
37158
+ closes: string;
37159
+ created_at?: string;
37160
+ id?: string;
37161
+ is_active?: boolean;
37162
+ note?: string | null;
37163
+ opens: string;
37164
+ weekday: number;
37165
+ };
37166
+ Update: {
37167
+ closes?: string;
37168
+ created_at?: string;
37169
+ id?: string;
37170
+ is_active?: boolean;
37171
+ note?: string | null;
37172
+ opens?: string;
37173
+ weekday?: number;
37174
+ };
37175
+ Relationships: [];
37176
+ };
37177
+ logistics_pick_data_requests: {
37178
+ Row: {
37179
+ actions: import("../integrations/supabase/types").Json;
37180
+ created_at: string;
37181
+ event_id: string | null;
37182
+ finished_at: string | null;
37183
+ id: string;
37184
+ missing: import("../integrations/supabase/types").Json;
37185
+ order_ref: string;
37186
+ reason: string | null;
37187
+ result: import("../integrations/supabase/types").Json | null;
37188
+ status: string;
37189
+ unit_ref: string | null;
37190
+ };
37191
+ Insert: {
37192
+ actions?: import("../integrations/supabase/types").Json;
37193
+ created_at?: string;
37194
+ event_id?: string | null;
37195
+ finished_at?: string | null;
37196
+ id?: string;
37197
+ missing?: import("../integrations/supabase/types").Json;
37198
+ order_ref: string;
37199
+ reason?: string | null;
37200
+ result?: import("../integrations/supabase/types").Json | null;
37201
+ status?: string;
37202
+ unit_ref?: string | null;
37203
+ };
37204
+ Update: {
37205
+ actions?: import("../integrations/supabase/types").Json;
37206
+ created_at?: string;
37207
+ event_id?: string | null;
37208
+ finished_at?: string | null;
37209
+ id?: string;
37210
+ missing?: import("../integrations/supabase/types").Json;
37211
+ order_ref?: string;
37212
+ reason?: string | null;
37213
+ result?: import("../integrations/supabase/types").Json | null;
37214
+ status?: string;
37215
+ unit_ref?: string | null;
37216
+ };
37217
+ Relationships: [];
37218
+ };
36045
37219
  logistics_pickup_moments: {
36046
37220
  Row: {
36047
37221
  carrier_ref: string | null;
@@ -36088,6 +37262,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36088
37262
  next_attempt_at: string;
36089
37263
  order_id: string;
36090
37264
  reason: string;
37265
+ reason_code: string | null;
36091
37266
  status: string;
36092
37267
  updated_at: string;
36093
37268
  };
@@ -36100,6 +37275,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36100
37275
  next_attempt_at?: string;
36101
37276
  order_id: string;
36102
37277
  reason?: string;
37278
+ reason_code?: string | null;
36103
37279
  status?: string;
36104
37280
  updated_at?: string;
36105
37281
  };
@@ -36112,6 +37288,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36112
37288
  next_attempt_at?: string;
36113
37289
  order_id?: string;
36114
37290
  reason?: string;
37291
+ reason_code?: string | null;
36115
37292
  status?: string;
36116
37293
  updated_at?: string;
36117
37294
  };
@@ -36498,6 +37675,69 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36498
37675
  };
36499
37676
  Relationships: [];
36500
37677
  };
37678
+ logistics_slip_shipping_note: {
37679
+ Row: {
37680
+ attempts: number;
37681
+ batch_key: string | null;
37682
+ cart_id: string | null;
37683
+ created_at: string;
37684
+ error: string | null;
37685
+ error_code: string | null;
37686
+ fulfillment_order_id: string | null;
37687
+ id: string;
37688
+ locked_until: string | null;
37689
+ next_attempt_at: string | null;
37690
+ order_id: string | null;
37691
+ order_number: string | null;
37692
+ print_job_id: string | null;
37693
+ printer_id: string | null;
37694
+ retry_class: string | null;
37695
+ slip_job_id: string;
37696
+ status: string;
37697
+ updated_at: string;
37698
+ };
37699
+ Insert: {
37700
+ attempts?: number;
37701
+ batch_key?: string | null;
37702
+ cart_id?: string | null;
37703
+ created_at?: string;
37704
+ error?: string | null;
37705
+ error_code?: string | null;
37706
+ fulfillment_order_id?: string | null;
37707
+ id?: string;
37708
+ locked_until?: string | null;
37709
+ next_attempt_at?: string | null;
37710
+ order_id?: string | null;
37711
+ order_number?: string | null;
37712
+ print_job_id?: string | null;
37713
+ printer_id?: string | null;
37714
+ retry_class?: string | null;
37715
+ slip_job_id: string;
37716
+ status?: string;
37717
+ updated_at?: string;
37718
+ };
37719
+ Update: {
37720
+ attempts?: number;
37721
+ batch_key?: string | null;
37722
+ cart_id?: string | null;
37723
+ created_at?: string;
37724
+ error?: string | null;
37725
+ error_code?: string | null;
37726
+ fulfillment_order_id?: string | null;
37727
+ id?: string;
37728
+ locked_until?: string | null;
37729
+ next_attempt_at?: string | null;
37730
+ order_id?: string | null;
37731
+ order_number?: string | null;
37732
+ print_job_id?: string | null;
37733
+ printer_id?: string | null;
37734
+ retry_class?: string | null;
37735
+ slip_job_id?: string;
37736
+ status?: string;
37737
+ updated_at?: string;
37738
+ };
37739
+ Relationships: [];
37740
+ };
36501
37741
  logistics_staff_planning: {
36502
37742
  Row: {
36503
37743
  created_at: string;
@@ -36816,6 +38056,39 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
36816
38056
  referencedColumns: ["id"];
36817
38057
  }];
36818
38058
  };
38059
+ logistics_tick_heartbeat: {
38060
+ Row: {
38061
+ id: boolean;
38062
+ last_tick_at: string;
38063
+ };
38064
+ Insert: {
38065
+ id?: boolean;
38066
+ last_tick_at?: string;
38067
+ };
38068
+ Update: {
38069
+ id?: boolean;
38070
+ last_tick_at?: string;
38071
+ };
38072
+ Relationships: [];
38073
+ };
38074
+ logistics_time_settings: {
38075
+ Row: {
38076
+ id: boolean;
38077
+ timezone: string;
38078
+ updated_at: string;
38079
+ };
38080
+ Insert: {
38081
+ id?: boolean;
38082
+ timezone: string;
38083
+ updated_at?: string;
38084
+ };
38085
+ Update: {
38086
+ id?: boolean;
38087
+ timezone?: string;
38088
+ updated_at?: string;
38089
+ };
38090
+ Relationships: [];
38091
+ };
36819
38092
  logistics_variables: {
36820
38093
  Row: {
36821
38094
  created_at: string;
@@ -39206,6 +40479,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39206
40479
  customer_name: string;
39207
40480
  deleted_at: string | null;
39208
40481
  delivery_date: string | null;
40482
+ floriday_order_group_key: string | null;
39209
40483
  floriday_sales_order_id: string | null;
39210
40484
  id: string;
39211
40485
  invoice_due_at: string | null;
@@ -39233,6 +40507,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39233
40507
  customer_name?: string;
39234
40508
  deleted_at?: string | null;
39235
40509
  delivery_date?: string | null;
40510
+ floriday_order_group_key?: string | null;
39236
40511
  floriday_sales_order_id?: string | null;
39237
40512
  id?: string;
39238
40513
  invoice_due_at?: string | null;
@@ -39260,6 +40535,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39260
40535
  customer_name?: string;
39261
40536
  deleted_at?: string | null;
39262
40537
  delivery_date?: string | null;
40538
+ floriday_order_group_key?: string | null;
39263
40539
  floriday_sales_order_id?: string | null;
39264
40540
  id?: string;
39265
40541
  invoice_due_at?: string | null;
@@ -39453,6 +40729,27 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39453
40729
  };
39454
40730
  Relationships: [];
39455
40731
  };
40732
+ pick_buffer_event_cursor: {
40733
+ Row: {
40734
+ created_at: string;
40735
+ id: boolean;
40736
+ last_event_at: string;
40737
+ updated_at: string;
40738
+ };
40739
+ Insert: {
40740
+ created_at?: string;
40741
+ id?: boolean;
40742
+ last_event_at?: string;
40743
+ updated_at?: string;
40744
+ };
40745
+ Update: {
40746
+ created_at?: string;
40747
+ id?: boolean;
40748
+ last_event_at?: string;
40749
+ updated_at?: string;
40750
+ };
40751
+ Relationships: [];
40752
+ };
39456
40753
  pick_countries: {
39457
40754
  Row: {
39458
40755
  active: boolean;
@@ -45102,6 +46399,36 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
45102
46399
  referencedColumns: ["id"];
45103
46400
  }];
45104
46401
  };
46402
+ voorraad_buffer_state: {
46403
+ Row: {
46404
+ buffer_id: string;
46405
+ buffer_key: string | null;
46406
+ closed_at: string | null;
46407
+ created_at: string;
46408
+ detached_orders: import("../integrations/supabase/types").Json;
46409
+ reason: string | null;
46410
+ updated_at: string;
46411
+ };
46412
+ Insert: {
46413
+ buffer_id: string;
46414
+ buffer_key?: string | null;
46415
+ closed_at?: string | null;
46416
+ created_at?: string;
46417
+ detached_orders?: import("../integrations/supabase/types").Json;
46418
+ reason?: string | null;
46419
+ updated_at?: string;
46420
+ };
46421
+ Update: {
46422
+ buffer_id?: string;
46423
+ buffer_key?: string | null;
46424
+ closed_at?: string | null;
46425
+ created_at?: string;
46426
+ detached_orders?: import("../integrations/supabase/types").Json;
46427
+ reason?: string | null;
46428
+ updated_at?: string;
46429
+ };
46430
+ Relationships: [];
46431
+ };
45105
46432
  voorraad_custom_fields: {
45106
46433
  Row: {
45107
46434
  created_at: string;
@@ -45144,6 +46471,36 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
45144
46471
  };
45145
46472
  Relationships: [];
45146
46473
  };
46474
+ voorraad_logistics_event_log: {
46475
+ Row: {
46476
+ created_at: string;
46477
+ event_id: string;
46478
+ event_type: string;
46479
+ order_ref: string | null;
46480
+ processed_at: string;
46481
+ result: import("../integrations/supabase/types").Json;
46482
+ updated_at: string;
46483
+ };
46484
+ Insert: {
46485
+ created_at?: string;
46486
+ event_id: string;
46487
+ event_type: string;
46488
+ order_ref?: string | null;
46489
+ processed_at?: string;
46490
+ result?: import("../integrations/supabase/types").Json;
46491
+ updated_at?: string;
46492
+ };
46493
+ Update: {
46494
+ created_at?: string;
46495
+ event_id?: string;
46496
+ event_type?: string;
46497
+ order_ref?: string | null;
46498
+ processed_at?: string;
46499
+ result?: import("../integrations/supabase/types").Json;
46500
+ updated_at?: string;
46501
+ };
46502
+ Relationships: [];
46503
+ };
45147
46504
  voorraad_media_upload_failures: {
45148
46505
  Row: {
45149
46506
  action: string;
@@ -47969,6 +49326,17 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
47969
49326
  };
47970
49327
  Returns: boolean;
47971
49328
  };
49329
+ floriday_adopt_connection: {
49330
+ Args: {
49331
+ p_new: string;
49332
+ p_old: string;
49333
+ };
49334
+ Returns: import("../integrations/supabase/types").Json;
49335
+ };
49336
+ floriday_autoheal_connections: {
49337
+ Args: never;
49338
+ Returns: import("../integrations/supabase/types").Json;
49339
+ };
47972
49340
  floriday_capture_stock_snapshot: {
47973
49341
  Args: never;
47974
49342
  Returns: number;
@@ -48026,6 +49394,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
48026
49394
  };
48027
49395
  Returns: undefined;
48028
49396
  };
49397
+ floriday_relink_products: {
49398
+ Args: {
49399
+ p_connection_id?: string;
49400
+ };
49401
+ Returns: import("../integrations/supabase/types").Json;
49402
+ };
48029
49403
  floriday_requeue_dead_letters: {
48030
49404
  Args: {
48031
49405
  p_connection_id?: string;
@@ -48647,6 +50021,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
48647
50021
  };
48648
50022
  Returns: string;
48649
50023
  };
50024
+ logistics_active_layout_method: {
50025
+ Args: never;
50026
+ Returns: string;
50027
+ };
48650
50028
  logistics_active_pick_workdays: {
48651
50029
  Args: never;
48652
50030
  Returns: string[];
@@ -48698,6 +50076,30 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
48698
50076
  };
48699
50077
  Returns: import("../integrations/supabase/types").Json;
48700
50078
  };
50079
+ logistics_block_reason_code: {
50080
+ Args: {
50081
+ p_details?: import("../integrations/supabase/types").Json;
50082
+ p_reason: string;
50083
+ };
50084
+ Returns: string;
50085
+ };
50086
+ logistics_blocked_orders: {
50087
+ Args: never;
50088
+ Returns: {
50089
+ attempts: number;
50090
+ blocked_since: string;
50091
+ delivery_date: string;
50092
+ order_id: string;
50093
+ order_ref: string;
50094
+ queue_id: string;
50095
+ reason: string;
50096
+ reason_code: string;
50097
+ }[];
50098
+ };
50099
+ logistics_blocked_overview: {
50100
+ Args: never;
50101
+ Returns: import("../integrations/supabase/types").Json;
50102
+ };
48701
50103
  logistics_buffer_criteria: {
48702
50104
  Args: {
48703
50105
  p_settings: import("../integrations/supabase/types").Json;
@@ -48712,6 +50114,39 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
48712
50114
  };
48713
50115
  Returns: import("../integrations/supabase/types").Json;
48714
50116
  };
50117
+ logistics_buffer_detach_late_orders: {
50118
+ Args: {
50119
+ p_buffer?: string;
50120
+ };
50121
+ Returns: import("../integrations/supabase/types").Json;
50122
+ };
50123
+ logistics_buffer_frozen_order: {
50124
+ Args: {
50125
+ p_order_id: string;
50126
+ };
50127
+ Returns: boolean;
50128
+ };
50129
+ logistics_buffer_handled: {
50130
+ Args: {
50131
+ p_buffer: string;
50132
+ };
50133
+ Returns: boolean;
50134
+ };
50135
+ logistics_buffer_notify: {
50136
+ Args: {
50137
+ p_event_type: string;
50138
+ p_idempotency_key: string;
50139
+ p_order_ref: string;
50140
+ p_payload: import("../integrations/supabase/types").Json;
50141
+ };
50142
+ Returns: string;
50143
+ };
50144
+ logistics_buffer_open_key: {
50145
+ Args: {
50146
+ p_base_key: string;
50147
+ };
50148
+ Returns: string;
50149
+ };
48715
50150
  logistics_buffer_simulate: {
48716
50151
  Args: {
48717
50152
  p_orders?: import("../integrations/supabase/types").Json;
@@ -48764,6 +50199,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
48764
50199
  };
48765
50200
  Returns: string;
48766
50201
  };
50202
+ logistics_cart_checkin_at: {
50203
+ Args: {
50204
+ p_cart_id: string;
50205
+ };
50206
+ Returns: string;
50207
+ };
48767
50208
  logistics_cart_handled: {
48768
50209
  Args: {
48769
50210
  p_cart_index: number;
@@ -48797,10 +50238,53 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
48797
50238
  task_status: string;
48798
50239
  }[];
48799
50240
  };
50241
+ logistics_cart_is_full: {
50242
+ Args: {
50243
+ p_cart_id: string;
50244
+ };
50245
+ Returns: boolean;
50246
+ };
48800
50247
  logistics_cart_layout_method: {
48801
50248
  Args: never;
48802
50249
  Returns: import("../integrations/supabase/types").Json;
48803
50250
  };
50251
+ logistics_cart_order_refs: {
50252
+ Args: {
50253
+ p_cart_id: string;
50254
+ };
50255
+ Returns: string[];
50256
+ };
50257
+ logistics_cart_plan_overview: {
50258
+ Args: {
50259
+ p_days?: number;
50260
+ };
50261
+ Returns: {
50262
+ cart_total: number;
50263
+ delivery_date: string;
50264
+ order_ref: string;
50265
+ plan_ready: boolean;
50266
+ reason: string;
50267
+ released: boolean;
50268
+ }[];
50269
+ };
50270
+ logistics_cart_plan_status: {
50271
+ Args: {
50272
+ p_ref: string;
50273
+ };
50274
+ Returns: import("../integrations/supabase/types").Json;
50275
+ };
50276
+ logistics_cart_release_reason: {
50277
+ Args: {
50278
+ p_cart_id: string;
50279
+ };
50280
+ Returns: string;
50281
+ };
50282
+ logistics_cart_released: {
50283
+ Args: {
50284
+ p_cart_id: string;
50285
+ };
50286
+ Returns: boolean;
50287
+ };
48804
50288
  logistics_cart_seq: {
48805
50289
  Args: {
48806
50290
  p_order_uuid?: string;
@@ -48851,6 +50335,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
48851
50335
  unit_ref: string;
48852
50336
  }[];
48853
50337
  };
50338
+ logistics_carts_per_print: {
50339
+ Args: never;
50340
+ Returns: number;
50341
+ };
48854
50342
  logistics_check_order_allowed: {
48855
50343
  Args: {
48856
50344
  p_lines: import("../integrations/supabase/types").Json;
@@ -48954,6 +50442,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
48954
50442
  isSetofReturn: false;
48955
50443
  };
48956
50444
  };
50445
+ logistics_cleanup_orphan_print_jobs: {
50446
+ Args: never;
50447
+ Returns: import("../integrations/supabase/types").Json;
50448
+ };
48957
50449
  logistics_complete_task: {
48958
50450
  Args: {
48959
50451
  p_result?: import("../integrations/supabase/types").Json;
@@ -49016,6 +50508,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49016
50508
  station_carts: number;
49017
50509
  }[];
49018
50510
  };
50511
+ logistics_control_complete_cart: {
50512
+ Args: {
50513
+ p_cart_id: string;
50514
+ };
50515
+ Returns: number;
50516
+ };
49019
50517
  logistics_control_scan_approve: {
49020
50518
  Args: {
49021
50519
  p_allow_reprint?: boolean;
@@ -49095,6 +50593,15 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49095
50593
  Args: never;
49096
50594
  Returns: import("../integrations/supabase/types").Json;
49097
50595
  };
50596
+ logistics_day_windows: {
50597
+ Args: {
50598
+ p_day: string;
50599
+ };
50600
+ Returns: {
50601
+ win_end: string;
50602
+ win_start: string;
50603
+ }[];
50604
+ };
49098
50605
  logistics_delay_customer_email: {
49099
50606
  Args: {
49100
50607
  p_customer: string;
@@ -49162,6 +50669,17 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49162
50669
  };
49163
50670
  Returns: import("../integrations/supabase/types").Json;
49164
50671
  };
50672
+ logistics_enqueue_shipping_note_with_slip: {
50673
+ Args: {
50674
+ _cart_id: string;
50675
+ _is_herprint: boolean;
50676
+ _printer_id: string;
50677
+ _queue_item_id: string;
50678
+ _session_id: string;
50679
+ _slip_job_id: string;
50680
+ };
50681
+ Returns: string;
50682
+ };
49165
50683
  logistics_enqueue_sticker_with_slip: {
49166
50684
  Args: {
49167
50685
  _cart_id: string;
@@ -49179,6 +50697,14 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49179
50697
  };
49180
50698
  Returns: string;
49181
50699
  };
50700
+ logistics_ensure_pick_data: {
50701
+ Args: {
50702
+ p_event_id?: string;
50703
+ p_missing?: import("../integrations/supabase/types").Json;
50704
+ p_ref: string;
50705
+ };
50706
+ Returns: import("../integrations/supabase/types").Json;
50707
+ };
49182
50708
  logistics_fail_task: {
49183
50709
  Args: {
49184
50710
  p_error: string;
@@ -49300,6 +50826,38 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49300
50826
  };
49301
50827
  Returns: string;
49302
50828
  };
50829
+ logistics_floriday_gate_status: {
50830
+ Args: never;
50831
+ Returns: import("../integrations/supabase/types").Json;
50832
+ };
50833
+ logistics_floriday_log_refusal: {
50834
+ Args: {
50835
+ _action?: string;
50836
+ _module?: string;
50837
+ _order_ref: string;
50838
+ _reason: string;
50839
+ _shell?: string;
50840
+ };
50841
+ Returns: undefined;
50842
+ };
50843
+ logistics_floriday_log_send: {
50844
+ Args: {
50845
+ _action: string;
50846
+ _detail?: string;
50847
+ _http_status?: number;
50848
+ _module?: string;
50849
+ _ok: boolean;
50850
+ _order_ref: string;
50851
+ _shell?: string;
50852
+ };
50853
+ Returns: undefined;
50854
+ };
50855
+ logistics_floriday_order_approved: {
50856
+ Args: {
50857
+ _order_ref: string;
50858
+ };
50859
+ Returns: boolean;
50860
+ };
49303
50861
  logistics_floriday_prune_pushes: {
49304
50862
  Args: {
49305
50863
  _days?: number;
@@ -49314,6 +50872,20 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49314
50872
  };
49315
50873
  Returns: string;
49316
50874
  };
50875
+ logistics_floriday_status_updates_enabled: {
50876
+ Args: never;
50877
+ Returns: boolean;
50878
+ };
50879
+ logistics_floriday_stock_updates_enabled: {
50880
+ Args: never;
50881
+ Returns: boolean;
50882
+ };
50883
+ logistics_floriday_write_allowed: {
50884
+ Args: {
50885
+ _action: string;
50886
+ };
50887
+ Returns: boolean;
50888
+ };
49317
50889
  logistics_fulfill_barcode_requests: {
49318
50890
  Args: {
49319
50891
  p_limit?: number;
@@ -49334,6 +50906,16 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49334
50906
  };
49335
50907
  Returns: boolean;
49336
50908
  };
50909
+ logistics_layout_method_status: {
50910
+ Args: never;
50911
+ Returns: import("../integrations/supabase/types").Json;
50912
+ };
50913
+ logistics_link_order_items: {
50914
+ Args: {
50915
+ p_order?: string;
50916
+ };
50917
+ Returns: import("../integrations/supabase/types").Json;
50918
+ };
49337
50919
  logistics_live_carriers: {
49338
50920
  Args: {
49339
50921
  p_order_ref: string;
@@ -49346,6 +50928,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49346
50928
  };
49347
50929
  Returns: number;
49348
50930
  };
50931
+ logistics_merge_partial_carts: {
50932
+ Args: {
50933
+ p_limit?: number;
50934
+ };
50935
+ Returns: import("../integrations/supabase/types").Json;
50936
+ };
49349
50937
  logistics_next_workday_date: {
49350
50938
  Args: {
49351
50939
  p_date: string;
@@ -49360,12 +50948,22 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49360
50948
  };
49361
50949
  Returns: string;
49362
50950
  };
50951
+ logistics_normalize_product_label: {
50952
+ Args: {
50953
+ p_label: string;
50954
+ };
50955
+ Returns: string;
50956
+ };
49363
50957
  logistics_not_past: {
49364
50958
  Args: {
49365
50959
  p_ts: string;
49366
50960
  };
49367
50961
  Returns: string;
49368
50962
  };
50963
+ logistics_opening_timezone: {
50964
+ Args: never;
50965
+ Returns: string;
50966
+ };
49369
50967
  logistics_order_cart_count: {
49370
50968
  Args: {
49371
50969
  p_order_ref: string;
@@ -49450,6 +51048,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49450
51048
  Args: never;
49451
51049
  Returns: import("../integrations/supabase/types").Json;
49452
51050
  };
51051
+ logistics_pick_partial_mode: {
51052
+ Args: never;
51053
+ Returns: string;
51054
+ };
49453
51055
  logistics_pick_start_estimate: {
49454
51056
  Args: {
49455
51057
  p_order: import("../integrations/supabase/types").Json;
@@ -49548,6 +51150,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49548
51150
  Args: never;
49549
51151
  Returns: number;
49550
51152
  };
51153
+ logistics_plan_retry: {
51154
+ Args: {
51155
+ p_order_ids: string[];
51156
+ };
51157
+ Returns: number;
51158
+ };
49551
51159
  logistics_plan_setting: {
49552
51160
  Args: {
49553
51161
  p_default: number;
@@ -49555,6 +51163,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49555
51163
  };
49556
51164
  Returns: number;
49557
51165
  };
51166
+ logistics_prepare_pick_documents: {
51167
+ Args: {
51168
+ p_limit?: number;
51169
+ };
51170
+ Returns: import("../integrations/supabase/types").Json;
51171
+ };
49558
51172
  logistics_prune_buffer_member_queue: {
49559
51173
  Args: never;
49560
51174
  Returns: number;
@@ -49595,12 +51209,30 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49595
51209
  Args: never;
49596
51210
  Returns: import("../integrations/supabase/types").Json;
49597
51211
  };
51212
+ logistics_refresh_pick_queue_status: {
51213
+ Args: {
51214
+ p_ref: string;
51215
+ };
51216
+ Returns: number;
51217
+ };
49598
51218
  logistics_refresh_pickup_moments: {
49599
51219
  Args: {
49600
51220
  p_weeks?: number;
49601
51221
  };
49602
51222
  Returns: import("../integrations/supabase/types").Json;
49603
51223
  };
51224
+ logistics_replan_all: {
51225
+ Args: {
51226
+ p_reason?: string;
51227
+ };
51228
+ Returns: import("../integrations/supabase/types").Json;
51229
+ };
51230
+ logistics_replan_all_force: {
51231
+ Args: {
51232
+ p_reason?: string;
51233
+ };
51234
+ Returns: import("../integrations/supabase/types").Json;
51235
+ };
49604
51236
  logistics_report_delay: {
49605
51237
  Args: {
49606
51238
  p_expected_date?: string;
@@ -49654,6 +51286,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49654
51286
  };
49655
51287
  Returns: import("../integrations/supabase/types").Json;
49656
51288
  };
51289
+ logistics_resolve_product_id: {
51290
+ Args: {
51291
+ p_label: string;
51292
+ };
51293
+ Returns: string;
51294
+ };
49657
51295
  logistics_resolve_settings: {
49658
51296
  Args: {
49659
51297
  p_config_id: string;
@@ -49739,6 +51377,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49739
51377
  };
49740
51378
  Returns: string;
49741
51379
  };
51380
+ logistics_shipping_note_follows_slip: {
51381
+ Args: never;
51382
+ Returns: boolean;
51383
+ };
49742
51384
  logistics_shipping_note_from_barcode: {
49743
51385
  Args: {
49744
51386
  p_allow_reprint?: boolean;
@@ -49747,10 +51389,76 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49747
51389
  };
49748
51390
  Returns: import("../integrations/supabase/types").Json;
49749
51391
  };
51392
+ logistics_shipping_note_job_for_slip: {
51393
+ Args: {
51394
+ _slip_job_id: string;
51395
+ };
51396
+ Returns: string;
51397
+ };
51398
+ logistics_slip_note_claim: {
51399
+ Args: {
51400
+ _lease_seconds?: number;
51401
+ _limit?: number;
51402
+ };
51403
+ Returns: {
51404
+ attempts: number;
51405
+ batch_key: string | null;
51406
+ cart_id: string | null;
51407
+ created_at: string;
51408
+ error: string | null;
51409
+ error_code: string | null;
51410
+ fulfillment_order_id: string | null;
51411
+ id: string;
51412
+ locked_until: string | null;
51413
+ next_attempt_at: string | null;
51414
+ order_id: string | null;
51415
+ order_number: string | null;
51416
+ print_job_id: string | null;
51417
+ printer_id: string | null;
51418
+ retry_class: string | null;
51419
+ slip_job_id: string;
51420
+ status: string;
51421
+ updated_at: string;
51422
+ }[];
51423
+ SetofOptions: {
51424
+ from: "*";
51425
+ to: "logistics_slip_shipping_note";
51426
+ isOneToOne: false;
51427
+ isSetofReturn: true;
51428
+ };
51429
+ };
51430
+ logistics_slip_note_finish: {
51431
+ Args: {
51432
+ _error?: string;
51433
+ _error_code?: string;
51434
+ _fulfillment_order_id?: string;
51435
+ _id: string;
51436
+ _ok: boolean;
51437
+ _print_job_id?: string;
51438
+ _status?: string;
51439
+ };
51440
+ Returns: undefined;
51441
+ };
51442
+ logistics_slip_note_keep_waiting: {
51443
+ Args: {
51444
+ _class?: string;
51445
+ _id: string;
51446
+ _reason: string;
51447
+ };
51448
+ Returns: undefined;
51449
+ };
49750
51450
  logistics_sticker_follows_slip: {
49751
51451
  Args: never;
49752
51452
  Returns: boolean;
49753
51453
  };
51454
+ logistics_subtract_working_minutes: {
51455
+ Args: {
51456
+ p_deadline: string;
51457
+ p_max_workdays?: number;
51458
+ p_minutes: number;
51459
+ };
51460
+ Returns: import("../integrations/supabase/types").Json;
51461
+ };
49754
51462
  logistics_supersede_stale_tasks: {
49755
51463
  Args: {
49756
51464
  p_keep: string[];
@@ -49783,6 +51491,16 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49783
51491
  };
49784
51492
  Returns: number;
49785
51493
  };
51494
+ logistics_tick_ping: {
51495
+ Args: never;
51496
+ Returns: string;
51497
+ };
51498
+ logistics_timezone_options: {
51499
+ Args: never;
51500
+ Returns: {
51501
+ name: string;
51502
+ }[];
51503
+ };
49786
51504
  logistics_upsert_task: {
49787
51505
  Args: {
49788
51506
  p_buffer_ref: string;
@@ -49802,6 +51520,16 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49802
51520
  };
49803
51521
  Returns: string;
49804
51522
  };
51523
+ logistics_valid_timezone: {
51524
+ Args: {
51525
+ _tz: string;
51526
+ };
51527
+ Returns: boolean;
51528
+ };
51529
+ logistics_working_hours_status: {
51530
+ Args: never;
51531
+ Returns: import("../integrations/supabase/types").Json;
51532
+ };
49805
51533
  logistics_write_buffer_layer_positions: {
49806
51534
  Args: {
49807
51535
  p_buffer_id: string;
@@ -49926,6 +51654,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49926
51654
  };
49927
51655
  Returns: import("../integrations/supabase/types").Json;
49928
51656
  };
51657
+ order_heeft_bevestigde_karren: {
51658
+ Args: {
51659
+ p_order_id: string;
51660
+ };
51661
+ Returns: boolean;
51662
+ };
49929
51663
  order_number_prefix: {
49930
51664
  Args: {
49931
51665
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -49961,6 +51695,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49961
51695
  online: boolean;
49962
51696
  }[];
49963
51697
  };
51698
+ pick_apply_buffer_events: {
51699
+ Args: never;
51700
+ Returns: import("../integrations/supabase/types").Json;
51701
+ };
49964
51702
  pick_available_pick_days: {
49965
51703
  Args: {
49966
51704
  _max_days?: number;
@@ -49970,6 +51708,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
49970
51708
  pick_day: string;
49971
51709
  }[];
49972
51710
  };
51711
+ pick_buffer_order_ids: {
51712
+ Args: {
51713
+ _order_id: string;
51714
+ };
51715
+ Returns: string[];
51716
+ };
49973
51717
  pick_cart_breakdown: {
49974
51718
  Args: {
49975
51719
  _order_id: string;
@@ -50029,6 +51773,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50029
51773
  pick_claim_next_document: {
50030
51774
  Args: {
50031
51775
  _country_code: string;
51776
+ _pick_day?: string;
50032
51777
  _screen_id: string;
50033
51778
  _session_id: string;
50034
51779
  _station_id: string;
@@ -50317,6 +52062,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50317
52062
  omschrijving: string;
50318
52063
  }[];
50319
52064
  };
52065
+ pick_queue_cart_plan: {
52066
+ Args: {
52067
+ _queue_item_id: string;
52068
+ };
52069
+ Returns: import("../integrations/supabase/types").Json;
52070
+ };
50320
52071
  pick_reference_data_status: {
50321
52072
  Args: never;
50322
52073
  Returns: import("../integrations/supabase/types").Json;
@@ -50331,6 +52082,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50331
52082
  };
50332
52083
  Returns: undefined;
50333
52084
  };
52085
+ pick_report_missing_cart_plan: {
52086
+ Args: never;
52087
+ Returns: import("../integrations/supabase/types").Json;
52088
+ };
50334
52089
  pick_reprint_cart: {
50335
52090
  Args: {
50336
52091
  _cart_id: string;
@@ -50871,6 +52626,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
50871
52626
  };
50872
52627
  Returns: boolean;
50873
52628
  };
52629
+ release_job_lock: {
52630
+ Args: {
52631
+ _key: string;
52632
+ };
52633
+ Returns: undefined;
52634
+ };
50874
52635
  release_local_pdf_job: {
50875
52636
  Args: {
50876
52637
  _job_id: string;
@@ -51060,6 +52821,16 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
51060
52821
  };
51061
52822
  Returns: import("../integrations/supabase/types").Json;
51062
52823
  };
52824
+ scan_log_code: {
52825
+ Args: {
52826
+ p_code: string;
52827
+ p_latency_ms?: number;
52828
+ p_message?: string;
52829
+ p_result: string;
52830
+ p_scanner_key?: string;
52831
+ };
52832
+ Returns: string;
52833
+ };
51063
52834
  scan_open_pakbonnen: {
51064
52835
  Args: {
51065
52836
  p_dagen?: number;
@@ -51204,6 +52975,13 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
51204
52975
  };
51205
52976
  Returns: number;
51206
52977
  };
52978
+ schedule_floriday_catalog_prices_sync: {
52979
+ Args: {
52980
+ p_apikey: string;
52981
+ p_url: string;
52982
+ };
52983
+ Returns: number;
52984
+ };
51207
52985
  schedule_floriday_clock_presales_sync: {
51208
52986
  Args: {
51209
52987
  p_apikey: string;
@@ -51504,6 +53282,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
51504
53282
  };
51505
53283
  Returns: undefined;
51506
53284
  };
53285
+ sync_floriday_prices_into_price_groups: {
53286
+ Args: never;
53287
+ Returns: number;
53288
+ };
51507
53289
  sync_layer_stock: {
51508
53290
  Args: {
51509
53291
  p_product_id: string;
@@ -51549,6 +53331,14 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
51549
53331
  row_count: number;
51550
53332
  }[];
51551
53333
  };
53334
+ try_acquire_job_lock: {
53335
+ Args: {
53336
+ _key: string;
53337
+ _owner?: string;
53338
+ _seconds?: number;
53339
+ };
53340
+ Returns: boolean;
53341
+ };
51552
53342
  try_debtor_lock: {
51553
53343
  Args: {
51554
53344
  _group_key: string;