@flowselections/floriday-voorraad 1.0.40 → 1.0.41

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 (41) 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 +349 -0
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.d.ts +349 -0
  6. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.server.d.ts +349 -0
  8. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.d.ts +349 -0
  10. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  11. package/dist-lib/lib/floricode-required-features.functions.d.ts +349 -0
  12. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +349 -0
  14. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/floriday-env.functions.d.ts +698 -0
  16. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/floriday-gateway.functions.d.ts +2094 -0
  18. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floriday-relink.d.ts +16 -0
  20. package/dist-lib/lib/floriday-relink.d.ts.map +1 -0
  21. package/dist-lib/lib/floriday-relink.js +14 -0
  22. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +698 -0
  23. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-warehouse.functions.d.ts +1047 -0
  25. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-writes.functions.d.ts +698 -0
  27. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/inventory-settings.functions.d.ts +698 -0
  29. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/logistics-buffer-events.server.d.ts +13 -0
  31. package/dist-lib/lib/logistics-buffer-events.server.d.ts.map +1 -0
  32. package/dist-lib/lib/logistics-buffer-events.server.js +365 -0
  33. package/dist-lib/lib/logistics-events.d.ts.map +1 -1
  34. package/dist-lib/lib/logistics-events.js +36 -7
  35. package/dist-lib/lib/logistics-tasks.server.d.ts.map +1 -1
  36. package/dist-lib/lib/logistics-tasks.server.js +38 -6
  37. package/dist-lib/lib/module-health.functions.d.ts +698 -0
  38. package/dist-lib/lib/module-health.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/stock-sync.functions.d.ts +698 -0
  40. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  41. package/package.json +1 -1
@@ -2168,6 +2168,8 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
2168
2168
  created_at: string;
2169
2169
  currency: string;
2170
2170
  distribute_over: string | null;
2171
+ external_id: string | null;
2172
+ external_synced_at: string | null;
2171
2173
  group_type: string;
2172
2174
  handling_fee: number | null;
2173
2175
  id: string;
@@ -2180,6 +2182,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
2180
2182
  rounding: string;
2181
2183
  rounding_step: number;
2182
2184
  sort_order: number;
2185
+ source: string;
2183
2186
  unit: string;
2184
2187
  updated_at: string;
2185
2188
  };
@@ -2190,6 +2193,8 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
2190
2193
  created_at?: string;
2191
2194
  currency?: string;
2192
2195
  distribute_over?: string | null;
2196
+ external_id?: string | null;
2197
+ external_synced_at?: string | null;
2193
2198
  group_type?: string;
2194
2199
  handling_fee?: number | null;
2195
2200
  id?: string;
@@ -2202,6 +2207,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
2202
2207
  rounding?: string;
2203
2208
  rounding_step?: number;
2204
2209
  sort_order?: number;
2210
+ source?: string;
2205
2211
  unit?: string;
2206
2212
  updated_at?: string;
2207
2213
  };
@@ -2212,6 +2218,8 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
2212
2218
  created_at?: string;
2213
2219
  currency?: string;
2214
2220
  distribute_over?: string | null;
2221
+ external_id?: string | null;
2222
+ external_synced_at?: string | null;
2215
2223
  group_type?: string;
2216
2224
  handling_fee?: number | null;
2217
2225
  id?: string;
@@ -2224,6 +2232,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
2224
2232
  rounding?: string;
2225
2233
  rounding_step?: number;
2226
2234
  sort_order?: number;
2235
+ source?: string;
2227
2236
  unit?: string;
2228
2237
  updated_at?: string;
2229
2238
  };
@@ -9087,6 +9096,30 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
9087
9096
  referencedColumns: ["id"];
9088
9097
  }];
9089
9098
  };
9099
+ job_locks: {
9100
+ Row: {
9101
+ created_at: string;
9102
+ lock_key: string;
9103
+ locked_until: string;
9104
+ owner: string | null;
9105
+ updated_at: string;
9106
+ };
9107
+ Insert: {
9108
+ created_at?: string;
9109
+ lock_key: string;
9110
+ locked_until: string;
9111
+ owner?: string | null;
9112
+ updated_at?: string;
9113
+ };
9114
+ Update: {
9115
+ created_at?: string;
9116
+ lock_key?: string;
9117
+ locked_until?: string;
9118
+ owner?: string | null;
9119
+ updated_at?: string;
9120
+ };
9121
+ Relationships: [];
9122
+ };
9090
9123
  layout_logos: {
9091
9124
  Row: {
9092
9125
  bestand_url: string;
@@ -10056,6 +10089,27 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
10056
10089
  };
10057
10090
  Relationships: [];
10058
10091
  };
10092
+ logistics_floriday_push_refusals: {
10093
+ Row: {
10094
+ created_at: string;
10095
+ id: string;
10096
+ order_ref: string;
10097
+ reason: string;
10098
+ };
10099
+ Insert: {
10100
+ created_at?: string;
10101
+ id?: string;
10102
+ order_ref: string;
10103
+ reason: string;
10104
+ };
10105
+ Update: {
10106
+ created_at?: string;
10107
+ id?: string;
10108
+ order_ref?: string;
10109
+ reason?: string;
10110
+ };
10111
+ Relationships: [];
10112
+ };
10059
10113
  logistics_floriday_pushes: {
10060
10114
  Row: {
10061
10115
  attempts: number;
@@ -10249,6 +10303,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
10249
10303
  next_attempt_at: string;
10250
10304
  order_id: string;
10251
10305
  reason: string;
10306
+ reason_code: string | null;
10252
10307
  status: string;
10253
10308
  updated_at: string;
10254
10309
  };
@@ -10261,6 +10316,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
10261
10316
  next_attempt_at?: string;
10262
10317
  order_id: string;
10263
10318
  reason?: string;
10319
+ reason_code?: string | null;
10264
10320
  status?: string;
10265
10321
  updated_at?: string;
10266
10322
  };
@@ -10273,6 +10329,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
10273
10329
  next_attempt_at?: string;
10274
10330
  order_id?: string;
10275
10331
  reason?: string;
10332
+ reason_code?: string | null;
10276
10333
  status?: string;
10277
10334
  updated_at?: string;
10278
10335
  };
@@ -10977,6 +11034,21 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
10977
11034
  referencedColumns: ["id"];
10978
11035
  }];
10979
11036
  };
11037
+ logistics_tick_heartbeat: {
11038
+ Row: {
11039
+ id: boolean;
11040
+ last_tick_at: string;
11041
+ };
11042
+ Insert: {
11043
+ id?: boolean;
11044
+ last_tick_at?: string;
11045
+ };
11046
+ Update: {
11047
+ id?: boolean;
11048
+ last_tick_at?: string;
11049
+ };
11050
+ Relationships: [];
11051
+ };
10980
11052
  logistics_variables: {
10981
11053
  Row: {
10982
11054
  created_at: string;
@@ -13614,6 +13686,27 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
13614
13686
  };
13615
13687
  Relationships: [];
13616
13688
  };
13689
+ pick_buffer_event_cursor: {
13690
+ Row: {
13691
+ created_at: string;
13692
+ id: boolean;
13693
+ last_event_at: string;
13694
+ updated_at: string;
13695
+ };
13696
+ Insert: {
13697
+ created_at?: string;
13698
+ id?: boolean;
13699
+ last_event_at?: string;
13700
+ updated_at?: string;
13701
+ };
13702
+ Update: {
13703
+ created_at?: string;
13704
+ id?: boolean;
13705
+ last_event_at?: string;
13706
+ updated_at?: string;
13707
+ };
13708
+ Relationships: [];
13709
+ };
13617
13710
  pick_countries: {
13618
13711
  Row: {
13619
13712
  active: boolean;
@@ -19263,6 +19356,36 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
19263
19356
  referencedColumns: ["id"];
19264
19357
  }];
19265
19358
  };
19359
+ voorraad_buffer_state: {
19360
+ Row: {
19361
+ buffer_id: string;
19362
+ buffer_key: string | null;
19363
+ closed_at: string | null;
19364
+ created_at: string;
19365
+ detached_orders: import("../integrations/supabase/types").Json;
19366
+ reason: string | null;
19367
+ updated_at: string;
19368
+ };
19369
+ Insert: {
19370
+ buffer_id: string;
19371
+ buffer_key?: string | null;
19372
+ closed_at?: string | null;
19373
+ created_at?: string;
19374
+ detached_orders?: import("../integrations/supabase/types").Json;
19375
+ reason?: string | null;
19376
+ updated_at?: string;
19377
+ };
19378
+ Update: {
19379
+ buffer_id?: string;
19380
+ buffer_key?: string | null;
19381
+ closed_at?: string | null;
19382
+ created_at?: string;
19383
+ detached_orders?: import("../integrations/supabase/types").Json;
19384
+ reason?: string | null;
19385
+ updated_at?: string;
19386
+ };
19387
+ Relationships: [];
19388
+ };
19266
19389
  voorraad_custom_fields: {
19267
19390
  Row: {
19268
19391
  created_at: string;
@@ -19305,6 +19428,36 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
19305
19428
  };
19306
19429
  Relationships: [];
19307
19430
  };
19431
+ voorraad_logistics_event_log: {
19432
+ Row: {
19433
+ created_at: string;
19434
+ event_id: string;
19435
+ event_type: string;
19436
+ order_ref: string | null;
19437
+ processed_at: string;
19438
+ result: import("../integrations/supabase/types").Json;
19439
+ updated_at: string;
19440
+ };
19441
+ Insert: {
19442
+ created_at?: string;
19443
+ event_id: string;
19444
+ event_type: string;
19445
+ order_ref?: string | null;
19446
+ processed_at?: string;
19447
+ result?: import("../integrations/supabase/types").Json;
19448
+ updated_at?: string;
19449
+ };
19450
+ Update: {
19451
+ created_at?: string;
19452
+ event_id?: string;
19453
+ event_type?: string;
19454
+ order_ref?: string | null;
19455
+ processed_at?: string;
19456
+ result?: import("../integrations/supabase/types").Json;
19457
+ updated_at?: string;
19458
+ };
19459
+ Relationships: [];
19460
+ };
19308
19461
  voorraad_media_upload_failures: {
19309
19462
  Row: {
19310
19463
  action: string;
@@ -22130,6 +22283,17 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
22130
22283
  };
22131
22284
  Returns: boolean;
22132
22285
  };
22286
+ floriday_adopt_connection: {
22287
+ Args: {
22288
+ p_new: string;
22289
+ p_old: string;
22290
+ };
22291
+ Returns: import("../integrations/supabase/types").Json;
22292
+ };
22293
+ floriday_autoheal_connections: {
22294
+ Args: never;
22295
+ Returns: import("../integrations/supabase/types").Json;
22296
+ };
22133
22297
  floriday_capture_stock_snapshot: {
22134
22298
  Args: never;
22135
22299
  Returns: number;
@@ -22187,6 +22351,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
22187
22351
  };
22188
22352
  Returns: undefined;
22189
22353
  };
22354
+ floriday_relink_products: {
22355
+ Args: {
22356
+ p_connection_id?: string;
22357
+ };
22358
+ Returns: import("../integrations/supabase/types").Json;
22359
+ };
22190
22360
  floriday_requeue_dead_letters: {
22191
22361
  Args: {
22192
22362
  p_connection_id?: string;
@@ -22808,6 +22978,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
22808
22978
  };
22809
22979
  Returns: string;
22810
22980
  };
22981
+ logistics_active_layout_method: {
22982
+ Args: never;
22983
+ Returns: string;
22984
+ };
22811
22985
  logistics_active_pick_workdays: {
22812
22986
  Args: never;
22813
22987
  Returns: string[];
@@ -22859,6 +23033,30 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
22859
23033
  };
22860
23034
  Returns: import("../integrations/supabase/types").Json;
22861
23035
  };
23036
+ logistics_block_reason_code: {
23037
+ Args: {
23038
+ p_details?: import("../integrations/supabase/types").Json;
23039
+ p_reason: string;
23040
+ };
23041
+ Returns: string;
23042
+ };
23043
+ logistics_blocked_orders: {
23044
+ Args: never;
23045
+ Returns: {
23046
+ attempts: number;
23047
+ blocked_since: string;
23048
+ delivery_date: string;
23049
+ order_id: string;
23050
+ order_ref: string;
23051
+ queue_id: string;
23052
+ reason: string;
23053
+ reason_code: string;
23054
+ }[];
23055
+ };
23056
+ logistics_blocked_overview: {
23057
+ Args: never;
23058
+ Returns: import("../integrations/supabase/types").Json;
23059
+ };
22862
23060
  logistics_buffer_criteria: {
22863
23061
  Args: {
22864
23062
  p_settings: import("../integrations/supabase/types").Json;
@@ -22873,6 +23071,39 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
22873
23071
  };
22874
23072
  Returns: import("../integrations/supabase/types").Json;
22875
23073
  };
23074
+ logistics_buffer_detach_late_orders: {
23075
+ Args: {
23076
+ p_buffer?: string;
23077
+ };
23078
+ Returns: import("../integrations/supabase/types").Json;
23079
+ };
23080
+ logistics_buffer_frozen_order: {
23081
+ Args: {
23082
+ p_order_id: string;
23083
+ };
23084
+ Returns: boolean;
23085
+ };
23086
+ logistics_buffer_handled: {
23087
+ Args: {
23088
+ p_buffer: string;
23089
+ };
23090
+ Returns: boolean;
23091
+ };
23092
+ logistics_buffer_notify: {
23093
+ Args: {
23094
+ p_event_type: string;
23095
+ p_idempotency_key: string;
23096
+ p_order_ref: string;
23097
+ p_payload: import("../integrations/supabase/types").Json;
23098
+ };
23099
+ Returns: string;
23100
+ };
23101
+ logistics_buffer_open_key: {
23102
+ Args: {
23103
+ p_base_key: string;
23104
+ };
23105
+ Returns: string;
23106
+ };
22876
23107
  logistics_buffer_simulate: {
22877
23108
  Args: {
22878
23109
  p_orders?: import("../integrations/supabase/types").Json;
@@ -22962,6 +23193,25 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
22962
23193
  Args: never;
22963
23194
  Returns: import("../integrations/supabase/types").Json;
22964
23195
  };
23196
+ logistics_cart_plan_overview: {
23197
+ Args: {
23198
+ p_days?: number;
23199
+ };
23200
+ Returns: {
23201
+ cart_total: number;
23202
+ delivery_date: string;
23203
+ order_ref: string;
23204
+ plan_ready: boolean;
23205
+ reason: string;
23206
+ released: boolean;
23207
+ }[];
23208
+ };
23209
+ logistics_cart_plan_status: {
23210
+ Args: {
23211
+ p_ref: string;
23212
+ };
23213
+ Returns: import("../integrations/supabase/types").Json;
23214
+ };
22965
23215
  logistics_cart_seq: {
22966
23216
  Args: {
22967
23217
  p_order_uuid?: string;
@@ -23461,6 +23711,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23461
23711
  };
23462
23712
  Returns: string;
23463
23713
  };
23714
+ logistics_floriday_order_approved: {
23715
+ Args: {
23716
+ _order_ref: string;
23717
+ };
23718
+ Returns: boolean;
23719
+ };
23464
23720
  logistics_floriday_prune_pushes: {
23465
23721
  Args: {
23466
23722
  _days?: number;
@@ -23475,6 +23731,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23475
23731
  };
23476
23732
  Returns: string;
23477
23733
  };
23734
+ logistics_floriday_status_updates_enabled: {
23735
+ Args: never;
23736
+ Returns: boolean;
23737
+ };
23478
23738
  logistics_fulfill_barcode_requests: {
23479
23739
  Args: {
23480
23740
  p_limit?: number;
@@ -23495,6 +23755,16 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23495
23755
  };
23496
23756
  Returns: boolean;
23497
23757
  };
23758
+ logistics_layout_method_status: {
23759
+ Args: never;
23760
+ Returns: import("../integrations/supabase/types").Json;
23761
+ };
23762
+ logistics_link_order_items: {
23763
+ Args: {
23764
+ p_order?: string;
23765
+ };
23766
+ Returns: import("../integrations/supabase/types").Json;
23767
+ };
23498
23768
  logistics_live_carriers: {
23499
23769
  Args: {
23500
23770
  p_order_ref: string;
@@ -23521,6 +23791,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23521
23791
  };
23522
23792
  Returns: string;
23523
23793
  };
23794
+ logistics_normalize_product_label: {
23795
+ Args: {
23796
+ p_label: string;
23797
+ };
23798
+ Returns: string;
23799
+ };
23524
23800
  logistics_not_past: {
23525
23801
  Args: {
23526
23802
  p_ts: string;
@@ -23709,6 +23985,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23709
23985
  Args: never;
23710
23986
  Returns: number;
23711
23987
  };
23988
+ logistics_plan_retry: {
23989
+ Args: {
23990
+ p_order_ids: string[];
23991
+ };
23992
+ Returns: number;
23993
+ };
23712
23994
  logistics_plan_setting: {
23713
23995
  Args: {
23714
23996
  p_default: number;
@@ -23762,6 +24044,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23762
24044
  };
23763
24045
  Returns: import("../integrations/supabase/types").Json;
23764
24046
  };
24047
+ logistics_replan_all: {
24048
+ Args: {
24049
+ p_reason?: string;
24050
+ };
24051
+ Returns: import("../integrations/supabase/types").Json;
24052
+ };
23765
24053
  logistics_report_delay: {
23766
24054
  Args: {
23767
24055
  p_expected_date?: string;
@@ -23815,6 +24103,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23815
24103
  };
23816
24104
  Returns: import("../integrations/supabase/types").Json;
23817
24105
  };
24106
+ logistics_resolve_product_id: {
24107
+ Args: {
24108
+ p_label: string;
24109
+ };
24110
+ Returns: string;
24111
+ };
23818
24112
  logistics_resolve_settings: {
23819
24113
  Args: {
23820
24114
  p_config_id: string;
@@ -23944,6 +24238,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
23944
24238
  };
23945
24239
  Returns: number;
23946
24240
  };
24241
+ logistics_tick_ping: {
24242
+ Args: never;
24243
+ Returns: string;
24244
+ };
23947
24245
  logistics_upsert_task: {
23948
24246
  Args: {
23949
24247
  p_buffer_ref: string;
@@ -24087,6 +24385,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24087
24385
  };
24088
24386
  Returns: import("../integrations/supabase/types").Json;
24089
24387
  };
24388
+ order_heeft_bevestigde_karren: {
24389
+ Args: {
24390
+ p_order_id: string;
24391
+ };
24392
+ Returns: boolean;
24393
+ };
24090
24394
  order_number_prefix: {
24091
24395
  Args: {
24092
24396
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -24122,6 +24426,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24122
24426
  online: boolean;
24123
24427
  }[];
24124
24428
  };
24429
+ pick_apply_buffer_events: {
24430
+ Args: never;
24431
+ Returns: import("../integrations/supabase/types").Json;
24432
+ };
24125
24433
  pick_available_pick_days: {
24126
24434
  Args: {
24127
24435
  _max_days?: number;
@@ -24131,6 +24439,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24131
24439
  pick_day: string;
24132
24440
  }[];
24133
24441
  };
24442
+ pick_buffer_order_ids: {
24443
+ Args: {
24444
+ _order_id: string;
24445
+ };
24446
+ Returns: string[];
24447
+ };
24134
24448
  pick_cart_breakdown: {
24135
24449
  Args: {
24136
24450
  _order_id: string;
@@ -24190,6 +24504,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24190
24504
  pick_claim_next_document: {
24191
24505
  Args: {
24192
24506
  _country_code: string;
24507
+ _pick_day?: string;
24193
24508
  _screen_id: string;
24194
24509
  _session_id: string;
24195
24510
  _station_id: string;
@@ -24478,6 +24793,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24478
24793
  omschrijving: string;
24479
24794
  }[];
24480
24795
  };
24796
+ pick_queue_cart_plan: {
24797
+ Args: {
24798
+ _queue_item_id: string;
24799
+ };
24800
+ Returns: import("../integrations/supabase/types").Json;
24801
+ };
24481
24802
  pick_reference_data_status: {
24482
24803
  Args: never;
24483
24804
  Returns: import("../integrations/supabase/types").Json;
@@ -24492,6 +24813,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
24492
24813
  };
24493
24814
  Returns: undefined;
24494
24815
  };
24816
+ pick_report_missing_cart_plan: {
24817
+ Args: never;
24818
+ Returns: import("../integrations/supabase/types").Json;
24819
+ };
24495
24820
  pick_reprint_cart: {
24496
24821
  Args: {
24497
24822
  _cart_id: string;
@@ -25032,6 +25357,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
25032
25357
  };
25033
25358
  Returns: boolean;
25034
25359
  };
25360
+ release_job_lock: {
25361
+ Args: {
25362
+ _key: string;
25363
+ };
25364
+ Returns: undefined;
25365
+ };
25035
25366
  release_local_pdf_job: {
25036
25367
  Args: {
25037
25368
  _job_id: string;
@@ -25221,6 +25552,16 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
25221
25552
  };
25222
25553
  Returns: import("../integrations/supabase/types").Json;
25223
25554
  };
25555
+ scan_log_code: {
25556
+ Args: {
25557
+ p_code: string;
25558
+ p_latency_ms?: number;
25559
+ p_message?: string;
25560
+ p_result: string;
25561
+ p_scanner_key?: string;
25562
+ };
25563
+ Returns: string;
25564
+ };
25224
25565
  scan_open_pakbonnen: {
25225
25566
  Args: {
25226
25567
  p_dagen?: number;
@@ -25710,6 +26051,14 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
25710
26051
  row_count: number;
25711
26052
  }[];
25712
26053
  };
26054
+ try_acquire_job_lock: {
26055
+ Args: {
26056
+ _key: string;
26057
+ _owner?: string;
26058
+ _seconds?: number;
26059
+ };
26060
+ Returns: boolean;
26061
+ };
25713
26062
  try_debtor_lock: {
25714
26063
  Args: {
25715
26064
  _group_key: string;
@@ -28019,6 +28368,8 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
28019
28368
  created_at: string;
28020
28369
  currency: string;
28021
28370
  distribute_over: string | null;
28371
+ external_id: string | null;
28372
+ external_synced_at: string | null;
28022
28373
  group_type: string;
28023
28374
  handling_fee: number | null;
28024
28375
  id: string;
@@ -28031,6 +28382,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
28031
28382
  rounding: string;
28032
28383
  rounding_step: number;
28033
28384
  sort_order: number;
28385
+ source: string;
28034
28386
  unit: string;
28035
28387
  updated_at: string;
28036
28388
  };
@@ -28041,6 +28393,8 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
28041
28393
  created_at?: string;
28042
28394
  currency?: string;
28043
28395
  distribute_over?: string | null;
28396
+ external_id?: string | null;
28397
+ external_synced_at?: string | null;
28044
28398
  group_type?: string;
28045
28399
  handling_fee?: number | null;
28046
28400
  id?: string;
@@ -28053,6 +28407,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
28053
28407
  rounding?: string;
28054
28408
  rounding_step?: number;
28055
28409
  sort_order?: number;
28410
+ source?: string;
28056
28411
  unit?: string;
28057
28412
  updated_at?: string;
28058
28413
  };
@@ -28063,6 +28418,8 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
28063
28418
  created_at?: string;
28064
28419
  currency?: string;
28065
28420
  distribute_over?: string | null;
28421
+ external_id?: string | null;
28422
+ external_synced_at?: string | null;
28066
28423
  group_type?: string;
28067
28424
  handling_fee?: number | null;
28068
28425
  id?: string;
@@ -28075,6 +28432,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
28075
28432
  rounding?: string;
28076
28433
  rounding_step?: number;
28077
28434
  sort_order?: number;
28435
+ source?: string;
28078
28436
  unit?: string;
28079
28437
  updated_at?: string;
28080
28438
  };
@@ -34938,6 +35296,30 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
34938
35296
  referencedColumns: ["id"];
34939
35297
  }];
34940
35298
  };
35299
+ job_locks: {
35300
+ Row: {
35301
+ created_at: string;
35302
+ lock_key: string;
35303
+ locked_until: string;
35304
+ owner: string | null;
35305
+ updated_at: string;
35306
+ };
35307
+ Insert: {
35308
+ created_at?: string;
35309
+ lock_key: string;
35310
+ locked_until: string;
35311
+ owner?: string | null;
35312
+ updated_at?: string;
35313
+ };
35314
+ Update: {
35315
+ created_at?: string;
35316
+ lock_key?: string;
35317
+ locked_until?: string;
35318
+ owner?: string | null;
35319
+ updated_at?: string;
35320
+ };
35321
+ Relationships: [];
35322
+ };
34941
35323
  layout_logos: {
34942
35324
  Row: {
34943
35325
  bestand_url: string;
@@ -35907,6 +36289,27 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
35907
36289
  };
35908
36290
  Relationships: [];
35909
36291
  };
36292
+ logistics_floriday_push_refusals: {
36293
+ Row: {
36294
+ created_at: string;
36295
+ id: string;
36296
+ order_ref: string;
36297
+ reason: string;
36298
+ };
36299
+ Insert: {
36300
+ created_at?: string;
36301
+ id?: string;
36302
+ order_ref: string;
36303
+ reason: string;
36304
+ };
36305
+ Update: {
36306
+ created_at?: string;
36307
+ id?: string;
36308
+ order_ref?: string;
36309
+ reason?: string;
36310
+ };
36311
+ Relationships: [];
36312
+ };
35910
36313
  logistics_floriday_pushes: {
35911
36314
  Row: {
35912
36315
  attempts: number;
@@ -36100,6 +36503,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
36100
36503
  next_attempt_at: string;
36101
36504
  order_id: string;
36102
36505
  reason: string;
36506
+ reason_code: string | null;
36103
36507
  status: string;
36104
36508
  updated_at: string;
36105
36509
  };
@@ -36112,6 +36516,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
36112
36516
  next_attempt_at?: string;
36113
36517
  order_id: string;
36114
36518
  reason?: string;
36519
+ reason_code?: string | null;
36115
36520
  status?: string;
36116
36521
  updated_at?: string;
36117
36522
  };
@@ -36124,6 +36529,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
36124
36529
  next_attempt_at?: string;
36125
36530
  order_id?: string;
36126
36531
  reason?: string;
36532
+ reason_code?: string | null;
36127
36533
  status?: string;
36128
36534
  updated_at?: string;
36129
36535
  };
@@ -36828,6 +37234,21 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
36828
37234
  referencedColumns: ["id"];
36829
37235
  }];
36830
37236
  };
37237
+ logistics_tick_heartbeat: {
37238
+ Row: {
37239
+ id: boolean;
37240
+ last_tick_at: string;
37241
+ };
37242
+ Insert: {
37243
+ id?: boolean;
37244
+ last_tick_at?: string;
37245
+ };
37246
+ Update: {
37247
+ id?: boolean;
37248
+ last_tick_at?: string;
37249
+ };
37250
+ Relationships: [];
37251
+ };
36831
37252
  logistics_variables: {
36832
37253
  Row: {
36833
37254
  created_at: string;
@@ -39465,6 +39886,27 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
39465
39886
  };
39466
39887
  Relationships: [];
39467
39888
  };
39889
+ pick_buffer_event_cursor: {
39890
+ Row: {
39891
+ created_at: string;
39892
+ id: boolean;
39893
+ last_event_at: string;
39894
+ updated_at: string;
39895
+ };
39896
+ Insert: {
39897
+ created_at?: string;
39898
+ id?: boolean;
39899
+ last_event_at?: string;
39900
+ updated_at?: string;
39901
+ };
39902
+ Update: {
39903
+ created_at?: string;
39904
+ id?: boolean;
39905
+ last_event_at?: string;
39906
+ updated_at?: string;
39907
+ };
39908
+ Relationships: [];
39909
+ };
39468
39910
  pick_countries: {
39469
39911
  Row: {
39470
39912
  active: boolean;
@@ -45114,6 +45556,36 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
45114
45556
  referencedColumns: ["id"];
45115
45557
  }];
45116
45558
  };
45559
+ voorraad_buffer_state: {
45560
+ Row: {
45561
+ buffer_id: string;
45562
+ buffer_key: string | null;
45563
+ closed_at: string | null;
45564
+ created_at: string;
45565
+ detached_orders: import("../integrations/supabase/types").Json;
45566
+ reason: string | null;
45567
+ updated_at: string;
45568
+ };
45569
+ Insert: {
45570
+ buffer_id: string;
45571
+ buffer_key?: string | null;
45572
+ closed_at?: string | null;
45573
+ created_at?: string;
45574
+ detached_orders?: import("../integrations/supabase/types").Json;
45575
+ reason?: string | null;
45576
+ updated_at?: string;
45577
+ };
45578
+ Update: {
45579
+ buffer_id?: string;
45580
+ buffer_key?: string | null;
45581
+ closed_at?: string | null;
45582
+ created_at?: string;
45583
+ detached_orders?: import("../integrations/supabase/types").Json;
45584
+ reason?: string | null;
45585
+ updated_at?: string;
45586
+ };
45587
+ Relationships: [];
45588
+ };
45117
45589
  voorraad_custom_fields: {
45118
45590
  Row: {
45119
45591
  created_at: string;
@@ -45156,6 +45628,36 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
45156
45628
  };
45157
45629
  Relationships: [];
45158
45630
  };
45631
+ voorraad_logistics_event_log: {
45632
+ Row: {
45633
+ created_at: string;
45634
+ event_id: string;
45635
+ event_type: string;
45636
+ order_ref: string | null;
45637
+ processed_at: string;
45638
+ result: import("../integrations/supabase/types").Json;
45639
+ updated_at: string;
45640
+ };
45641
+ Insert: {
45642
+ created_at?: string;
45643
+ event_id: string;
45644
+ event_type: string;
45645
+ order_ref?: string | null;
45646
+ processed_at?: string;
45647
+ result?: import("../integrations/supabase/types").Json;
45648
+ updated_at?: string;
45649
+ };
45650
+ Update: {
45651
+ created_at?: string;
45652
+ event_id?: string;
45653
+ event_type?: string;
45654
+ order_ref?: string | null;
45655
+ processed_at?: string;
45656
+ result?: import("../integrations/supabase/types").Json;
45657
+ updated_at?: string;
45658
+ };
45659
+ Relationships: [];
45660
+ };
45159
45661
  voorraad_media_upload_failures: {
45160
45662
  Row: {
45161
45663
  action: string;
@@ -47981,6 +48483,17 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
47981
48483
  };
47982
48484
  Returns: boolean;
47983
48485
  };
48486
+ floriday_adopt_connection: {
48487
+ Args: {
48488
+ p_new: string;
48489
+ p_old: string;
48490
+ };
48491
+ Returns: import("../integrations/supabase/types").Json;
48492
+ };
48493
+ floriday_autoheal_connections: {
48494
+ Args: never;
48495
+ Returns: import("../integrations/supabase/types").Json;
48496
+ };
47984
48497
  floriday_capture_stock_snapshot: {
47985
48498
  Args: never;
47986
48499
  Returns: number;
@@ -48038,6 +48551,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
48038
48551
  };
48039
48552
  Returns: undefined;
48040
48553
  };
48554
+ floriday_relink_products: {
48555
+ Args: {
48556
+ p_connection_id?: string;
48557
+ };
48558
+ Returns: import("../integrations/supabase/types").Json;
48559
+ };
48041
48560
  floriday_requeue_dead_letters: {
48042
48561
  Args: {
48043
48562
  p_connection_id?: string;
@@ -48659,6 +49178,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
48659
49178
  };
48660
49179
  Returns: string;
48661
49180
  };
49181
+ logistics_active_layout_method: {
49182
+ Args: never;
49183
+ Returns: string;
49184
+ };
48662
49185
  logistics_active_pick_workdays: {
48663
49186
  Args: never;
48664
49187
  Returns: string[];
@@ -48710,6 +49233,30 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
48710
49233
  };
48711
49234
  Returns: import("../integrations/supabase/types").Json;
48712
49235
  };
49236
+ logistics_block_reason_code: {
49237
+ Args: {
49238
+ p_details?: import("../integrations/supabase/types").Json;
49239
+ p_reason: string;
49240
+ };
49241
+ Returns: string;
49242
+ };
49243
+ logistics_blocked_orders: {
49244
+ Args: never;
49245
+ Returns: {
49246
+ attempts: number;
49247
+ blocked_since: string;
49248
+ delivery_date: string;
49249
+ order_id: string;
49250
+ order_ref: string;
49251
+ queue_id: string;
49252
+ reason: string;
49253
+ reason_code: string;
49254
+ }[];
49255
+ };
49256
+ logistics_blocked_overview: {
49257
+ Args: never;
49258
+ Returns: import("../integrations/supabase/types").Json;
49259
+ };
48713
49260
  logistics_buffer_criteria: {
48714
49261
  Args: {
48715
49262
  p_settings: import("../integrations/supabase/types").Json;
@@ -48724,6 +49271,39 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
48724
49271
  };
48725
49272
  Returns: import("../integrations/supabase/types").Json;
48726
49273
  };
49274
+ logistics_buffer_detach_late_orders: {
49275
+ Args: {
49276
+ p_buffer?: string;
49277
+ };
49278
+ Returns: import("../integrations/supabase/types").Json;
49279
+ };
49280
+ logistics_buffer_frozen_order: {
49281
+ Args: {
49282
+ p_order_id: string;
49283
+ };
49284
+ Returns: boolean;
49285
+ };
49286
+ logistics_buffer_handled: {
49287
+ Args: {
49288
+ p_buffer: string;
49289
+ };
49290
+ Returns: boolean;
49291
+ };
49292
+ logistics_buffer_notify: {
49293
+ Args: {
49294
+ p_event_type: string;
49295
+ p_idempotency_key: string;
49296
+ p_order_ref: string;
49297
+ p_payload: import("../integrations/supabase/types").Json;
49298
+ };
49299
+ Returns: string;
49300
+ };
49301
+ logistics_buffer_open_key: {
49302
+ Args: {
49303
+ p_base_key: string;
49304
+ };
49305
+ Returns: string;
49306
+ };
48727
49307
  logistics_buffer_simulate: {
48728
49308
  Args: {
48729
49309
  p_orders?: import("../integrations/supabase/types").Json;
@@ -48813,6 +49393,25 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
48813
49393
  Args: never;
48814
49394
  Returns: import("../integrations/supabase/types").Json;
48815
49395
  };
49396
+ logistics_cart_plan_overview: {
49397
+ Args: {
49398
+ p_days?: number;
49399
+ };
49400
+ Returns: {
49401
+ cart_total: number;
49402
+ delivery_date: string;
49403
+ order_ref: string;
49404
+ plan_ready: boolean;
49405
+ reason: string;
49406
+ released: boolean;
49407
+ }[];
49408
+ };
49409
+ logistics_cart_plan_status: {
49410
+ Args: {
49411
+ p_ref: string;
49412
+ };
49413
+ Returns: import("../integrations/supabase/types").Json;
49414
+ };
48816
49415
  logistics_cart_seq: {
48817
49416
  Args: {
48818
49417
  p_order_uuid?: string;
@@ -49312,6 +49911,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49312
49911
  };
49313
49912
  Returns: string;
49314
49913
  };
49914
+ logistics_floriday_order_approved: {
49915
+ Args: {
49916
+ _order_ref: string;
49917
+ };
49918
+ Returns: boolean;
49919
+ };
49315
49920
  logistics_floriday_prune_pushes: {
49316
49921
  Args: {
49317
49922
  _days?: number;
@@ -49326,6 +49931,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49326
49931
  };
49327
49932
  Returns: string;
49328
49933
  };
49934
+ logistics_floriday_status_updates_enabled: {
49935
+ Args: never;
49936
+ Returns: boolean;
49937
+ };
49329
49938
  logistics_fulfill_barcode_requests: {
49330
49939
  Args: {
49331
49940
  p_limit?: number;
@@ -49346,6 +49955,16 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49346
49955
  };
49347
49956
  Returns: boolean;
49348
49957
  };
49958
+ logistics_layout_method_status: {
49959
+ Args: never;
49960
+ Returns: import("../integrations/supabase/types").Json;
49961
+ };
49962
+ logistics_link_order_items: {
49963
+ Args: {
49964
+ p_order?: string;
49965
+ };
49966
+ Returns: import("../integrations/supabase/types").Json;
49967
+ };
49349
49968
  logistics_live_carriers: {
49350
49969
  Args: {
49351
49970
  p_order_ref: string;
@@ -49372,6 +49991,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49372
49991
  };
49373
49992
  Returns: string;
49374
49993
  };
49994
+ logistics_normalize_product_label: {
49995
+ Args: {
49996
+ p_label: string;
49997
+ };
49998
+ Returns: string;
49999
+ };
49375
50000
  logistics_not_past: {
49376
50001
  Args: {
49377
50002
  p_ts: string;
@@ -49560,6 +50185,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49560
50185
  Args: never;
49561
50186
  Returns: number;
49562
50187
  };
50188
+ logistics_plan_retry: {
50189
+ Args: {
50190
+ p_order_ids: string[];
50191
+ };
50192
+ Returns: number;
50193
+ };
49563
50194
  logistics_plan_setting: {
49564
50195
  Args: {
49565
50196
  p_default: number;
@@ -49613,6 +50244,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49613
50244
  };
49614
50245
  Returns: import("../integrations/supabase/types").Json;
49615
50246
  };
50247
+ logistics_replan_all: {
50248
+ Args: {
50249
+ p_reason?: string;
50250
+ };
50251
+ Returns: import("../integrations/supabase/types").Json;
50252
+ };
49616
50253
  logistics_report_delay: {
49617
50254
  Args: {
49618
50255
  p_expected_date?: string;
@@ -49666,6 +50303,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49666
50303
  };
49667
50304
  Returns: import("../integrations/supabase/types").Json;
49668
50305
  };
50306
+ logistics_resolve_product_id: {
50307
+ Args: {
50308
+ p_label: string;
50309
+ };
50310
+ Returns: string;
50311
+ };
49669
50312
  logistics_resolve_settings: {
49670
50313
  Args: {
49671
50314
  p_config_id: string;
@@ -49795,6 +50438,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49795
50438
  };
49796
50439
  Returns: number;
49797
50440
  };
50441
+ logistics_tick_ping: {
50442
+ Args: never;
50443
+ Returns: string;
50444
+ };
49798
50445
  logistics_upsert_task: {
49799
50446
  Args: {
49800
50447
  p_buffer_ref: string;
@@ -49938,6 +50585,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49938
50585
  };
49939
50586
  Returns: import("../integrations/supabase/types").Json;
49940
50587
  };
50588
+ order_heeft_bevestigde_karren: {
50589
+ Args: {
50590
+ p_order_id: string;
50591
+ };
50592
+ Returns: boolean;
50593
+ };
49941
50594
  order_number_prefix: {
49942
50595
  Args: {
49943
50596
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -49973,6 +50626,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49973
50626
  online: boolean;
49974
50627
  }[];
49975
50628
  };
50629
+ pick_apply_buffer_events: {
50630
+ Args: never;
50631
+ Returns: import("../integrations/supabase/types").Json;
50632
+ };
49976
50633
  pick_available_pick_days: {
49977
50634
  Args: {
49978
50635
  _max_days?: number;
@@ -49982,6 +50639,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
49982
50639
  pick_day: string;
49983
50640
  }[];
49984
50641
  };
50642
+ pick_buffer_order_ids: {
50643
+ Args: {
50644
+ _order_id: string;
50645
+ };
50646
+ Returns: string[];
50647
+ };
49985
50648
  pick_cart_breakdown: {
49986
50649
  Args: {
49987
50650
  _order_id: string;
@@ -50041,6 +50704,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50041
50704
  pick_claim_next_document: {
50042
50705
  Args: {
50043
50706
  _country_code: string;
50707
+ _pick_day?: string;
50044
50708
  _screen_id: string;
50045
50709
  _session_id: string;
50046
50710
  _station_id: string;
@@ -50329,6 +50993,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50329
50993
  omschrijving: string;
50330
50994
  }[];
50331
50995
  };
50996
+ pick_queue_cart_plan: {
50997
+ Args: {
50998
+ _queue_item_id: string;
50999
+ };
51000
+ Returns: import("../integrations/supabase/types").Json;
51001
+ };
50332
51002
  pick_reference_data_status: {
50333
51003
  Args: never;
50334
51004
  Returns: import("../integrations/supabase/types").Json;
@@ -50343,6 +51013,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50343
51013
  };
50344
51014
  Returns: undefined;
50345
51015
  };
51016
+ pick_report_missing_cart_plan: {
51017
+ Args: never;
51018
+ Returns: import("../integrations/supabase/types").Json;
51019
+ };
50346
51020
  pick_reprint_cart: {
50347
51021
  Args: {
50348
51022
  _cart_id: string;
@@ -50883,6 +51557,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
50883
51557
  };
50884
51558
  Returns: boolean;
50885
51559
  };
51560
+ release_job_lock: {
51561
+ Args: {
51562
+ _key: string;
51563
+ };
51564
+ Returns: undefined;
51565
+ };
50886
51566
  release_local_pdf_job: {
50887
51567
  Args: {
50888
51568
  _job_id: string;
@@ -51072,6 +51752,16 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
51072
51752
  };
51073
51753
  Returns: import("../integrations/supabase/types").Json;
51074
51754
  };
51755
+ scan_log_code: {
51756
+ Args: {
51757
+ p_code: string;
51758
+ p_latency_ms?: number;
51759
+ p_message?: string;
51760
+ p_result: string;
51761
+ p_scanner_key?: string;
51762
+ };
51763
+ Returns: string;
51764
+ };
51075
51765
  scan_open_pakbonnen: {
51076
51766
  Args: {
51077
51767
  p_dagen?: number;
@@ -51561,6 +52251,14 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
51561
52251
  row_count: number;
51562
52252
  }[];
51563
52253
  };
52254
+ try_acquire_job_lock: {
52255
+ Args: {
52256
+ _key: string;
52257
+ _owner?: string;
52258
+ _seconds?: number;
52259
+ };
52260
+ Returns: boolean;
52261
+ };
51564
52262
  try_debtor_lock: {
51565
52263
  Args: {
51566
52264
  _group_key: string;
@@ -53865,6 +54563,8 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53865
54563
  created_at: string;
53866
54564
  currency: string;
53867
54565
  distribute_over: string | null;
54566
+ external_id: string | null;
54567
+ external_synced_at: string | null;
53868
54568
  group_type: string;
53869
54569
  handling_fee: number | null;
53870
54570
  id: string;
@@ -53877,6 +54577,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53877
54577
  rounding: string;
53878
54578
  rounding_step: number;
53879
54579
  sort_order: number;
54580
+ source: string;
53880
54581
  unit: string;
53881
54582
  updated_at: string;
53882
54583
  };
@@ -53887,6 +54588,8 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53887
54588
  created_at?: string;
53888
54589
  currency?: string;
53889
54590
  distribute_over?: string | null;
54591
+ external_id?: string | null;
54592
+ external_synced_at?: string | null;
53890
54593
  group_type?: string;
53891
54594
  handling_fee?: number | null;
53892
54595
  id?: string;
@@ -53899,6 +54602,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53899
54602
  rounding?: string;
53900
54603
  rounding_step?: number;
53901
54604
  sort_order?: number;
54605
+ source?: string;
53902
54606
  unit?: string;
53903
54607
  updated_at?: string;
53904
54608
  };
@@ -53909,6 +54613,8 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53909
54613
  created_at?: string;
53910
54614
  currency?: string;
53911
54615
  distribute_over?: string | null;
54616
+ external_id?: string | null;
54617
+ external_synced_at?: string | null;
53912
54618
  group_type?: string;
53913
54619
  handling_fee?: number | null;
53914
54620
  id?: string;
@@ -53921,6 +54627,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
53921
54627
  rounding?: string;
53922
54628
  rounding_step?: number;
53923
54629
  sort_order?: number;
54630
+ source?: string;
53924
54631
  unit?: string;
53925
54632
  updated_at?: string;
53926
54633
  };
@@ -60784,6 +61491,30 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
60784
61491
  referencedColumns: ["id"];
60785
61492
  }];
60786
61493
  };
61494
+ job_locks: {
61495
+ Row: {
61496
+ created_at: string;
61497
+ lock_key: string;
61498
+ locked_until: string;
61499
+ owner: string | null;
61500
+ updated_at: string;
61501
+ };
61502
+ Insert: {
61503
+ created_at?: string;
61504
+ lock_key: string;
61505
+ locked_until: string;
61506
+ owner?: string | null;
61507
+ updated_at?: string;
61508
+ };
61509
+ Update: {
61510
+ created_at?: string;
61511
+ lock_key?: string;
61512
+ locked_until?: string;
61513
+ owner?: string | null;
61514
+ updated_at?: string;
61515
+ };
61516
+ Relationships: [];
61517
+ };
60787
61518
  layout_logos: {
60788
61519
  Row: {
60789
61520
  bestand_url: string;
@@ -61753,6 +62484,27 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
61753
62484
  };
61754
62485
  Relationships: [];
61755
62486
  };
62487
+ logistics_floriday_push_refusals: {
62488
+ Row: {
62489
+ created_at: string;
62490
+ id: string;
62491
+ order_ref: string;
62492
+ reason: string;
62493
+ };
62494
+ Insert: {
62495
+ created_at?: string;
62496
+ id?: string;
62497
+ order_ref: string;
62498
+ reason: string;
62499
+ };
62500
+ Update: {
62501
+ created_at?: string;
62502
+ id?: string;
62503
+ order_ref?: string;
62504
+ reason?: string;
62505
+ };
62506
+ Relationships: [];
62507
+ };
61756
62508
  logistics_floriday_pushes: {
61757
62509
  Row: {
61758
62510
  attempts: number;
@@ -61946,6 +62698,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
61946
62698
  next_attempt_at: string;
61947
62699
  order_id: string;
61948
62700
  reason: string;
62701
+ reason_code: string | null;
61949
62702
  status: string;
61950
62703
  updated_at: string;
61951
62704
  };
@@ -61958,6 +62711,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
61958
62711
  next_attempt_at?: string;
61959
62712
  order_id: string;
61960
62713
  reason?: string;
62714
+ reason_code?: string | null;
61961
62715
  status?: string;
61962
62716
  updated_at?: string;
61963
62717
  };
@@ -61970,6 +62724,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
61970
62724
  next_attempt_at?: string;
61971
62725
  order_id?: string;
61972
62726
  reason?: string;
62727
+ reason_code?: string | null;
61973
62728
  status?: string;
61974
62729
  updated_at?: string;
61975
62730
  };
@@ -62674,6 +63429,21 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
62674
63429
  referencedColumns: ["id"];
62675
63430
  }];
62676
63431
  };
63432
+ logistics_tick_heartbeat: {
63433
+ Row: {
63434
+ id: boolean;
63435
+ last_tick_at: string;
63436
+ };
63437
+ Insert: {
63438
+ id?: boolean;
63439
+ last_tick_at?: string;
63440
+ };
63441
+ Update: {
63442
+ id?: boolean;
63443
+ last_tick_at?: string;
63444
+ };
63445
+ Relationships: [];
63446
+ };
62677
63447
  logistics_variables: {
62678
63448
  Row: {
62679
63449
  created_at: string;
@@ -65311,6 +66081,27 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
65311
66081
  };
65312
66082
  Relationships: [];
65313
66083
  };
66084
+ pick_buffer_event_cursor: {
66085
+ Row: {
66086
+ created_at: string;
66087
+ id: boolean;
66088
+ last_event_at: string;
66089
+ updated_at: string;
66090
+ };
66091
+ Insert: {
66092
+ created_at?: string;
66093
+ id?: boolean;
66094
+ last_event_at?: string;
66095
+ updated_at?: string;
66096
+ };
66097
+ Update: {
66098
+ created_at?: string;
66099
+ id?: boolean;
66100
+ last_event_at?: string;
66101
+ updated_at?: string;
66102
+ };
66103
+ Relationships: [];
66104
+ };
65314
66105
  pick_countries: {
65315
66106
  Row: {
65316
66107
  active: boolean;
@@ -70960,6 +71751,36 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
70960
71751
  referencedColumns: ["id"];
70961
71752
  }];
70962
71753
  };
71754
+ voorraad_buffer_state: {
71755
+ Row: {
71756
+ buffer_id: string;
71757
+ buffer_key: string | null;
71758
+ closed_at: string | null;
71759
+ created_at: string;
71760
+ detached_orders: import("../integrations/supabase/types").Json;
71761
+ reason: string | null;
71762
+ updated_at: string;
71763
+ };
71764
+ Insert: {
71765
+ buffer_id: string;
71766
+ buffer_key?: string | null;
71767
+ closed_at?: string | null;
71768
+ created_at?: string;
71769
+ detached_orders?: import("../integrations/supabase/types").Json;
71770
+ reason?: string | null;
71771
+ updated_at?: string;
71772
+ };
71773
+ Update: {
71774
+ buffer_id?: string;
71775
+ buffer_key?: string | null;
71776
+ closed_at?: string | null;
71777
+ created_at?: string;
71778
+ detached_orders?: import("../integrations/supabase/types").Json;
71779
+ reason?: string | null;
71780
+ updated_at?: string;
71781
+ };
71782
+ Relationships: [];
71783
+ };
70963
71784
  voorraad_custom_fields: {
70964
71785
  Row: {
70965
71786
  created_at: string;
@@ -71002,6 +71823,36 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
71002
71823
  };
71003
71824
  Relationships: [];
71004
71825
  };
71826
+ voorraad_logistics_event_log: {
71827
+ Row: {
71828
+ created_at: string;
71829
+ event_id: string;
71830
+ event_type: string;
71831
+ order_ref: string | null;
71832
+ processed_at: string;
71833
+ result: import("../integrations/supabase/types").Json;
71834
+ updated_at: string;
71835
+ };
71836
+ Insert: {
71837
+ created_at?: string;
71838
+ event_id: string;
71839
+ event_type: string;
71840
+ order_ref?: string | null;
71841
+ processed_at?: string;
71842
+ result?: import("../integrations/supabase/types").Json;
71843
+ updated_at?: string;
71844
+ };
71845
+ Update: {
71846
+ created_at?: string;
71847
+ event_id?: string;
71848
+ event_type?: string;
71849
+ order_ref?: string | null;
71850
+ processed_at?: string;
71851
+ result?: import("../integrations/supabase/types").Json;
71852
+ updated_at?: string;
71853
+ };
71854
+ Relationships: [];
71855
+ };
71005
71856
  voorraad_media_upload_failures: {
71006
71857
  Row: {
71007
71858
  action: string;
@@ -73827,6 +74678,17 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
73827
74678
  };
73828
74679
  Returns: boolean;
73829
74680
  };
74681
+ floriday_adopt_connection: {
74682
+ Args: {
74683
+ p_new: string;
74684
+ p_old: string;
74685
+ };
74686
+ Returns: import("../integrations/supabase/types").Json;
74687
+ };
74688
+ floriday_autoheal_connections: {
74689
+ Args: never;
74690
+ Returns: import("../integrations/supabase/types").Json;
74691
+ };
73830
74692
  floriday_capture_stock_snapshot: {
73831
74693
  Args: never;
73832
74694
  Returns: number;
@@ -73884,6 +74746,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
73884
74746
  };
73885
74747
  Returns: undefined;
73886
74748
  };
74749
+ floriday_relink_products: {
74750
+ Args: {
74751
+ p_connection_id?: string;
74752
+ };
74753
+ Returns: import("../integrations/supabase/types").Json;
74754
+ };
73887
74755
  floriday_requeue_dead_letters: {
73888
74756
  Args: {
73889
74757
  p_connection_id?: string;
@@ -74505,6 +75373,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
74505
75373
  };
74506
75374
  Returns: string;
74507
75375
  };
75376
+ logistics_active_layout_method: {
75377
+ Args: never;
75378
+ Returns: string;
75379
+ };
74508
75380
  logistics_active_pick_workdays: {
74509
75381
  Args: never;
74510
75382
  Returns: string[];
@@ -74556,6 +75428,30 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
74556
75428
  };
74557
75429
  Returns: import("../integrations/supabase/types").Json;
74558
75430
  };
75431
+ logistics_block_reason_code: {
75432
+ Args: {
75433
+ p_details?: import("../integrations/supabase/types").Json;
75434
+ p_reason: string;
75435
+ };
75436
+ Returns: string;
75437
+ };
75438
+ logistics_blocked_orders: {
75439
+ Args: never;
75440
+ Returns: {
75441
+ attempts: number;
75442
+ blocked_since: string;
75443
+ delivery_date: string;
75444
+ order_id: string;
75445
+ order_ref: string;
75446
+ queue_id: string;
75447
+ reason: string;
75448
+ reason_code: string;
75449
+ }[];
75450
+ };
75451
+ logistics_blocked_overview: {
75452
+ Args: never;
75453
+ Returns: import("../integrations/supabase/types").Json;
75454
+ };
74559
75455
  logistics_buffer_criteria: {
74560
75456
  Args: {
74561
75457
  p_settings: import("../integrations/supabase/types").Json;
@@ -74570,6 +75466,39 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
74570
75466
  };
74571
75467
  Returns: import("../integrations/supabase/types").Json;
74572
75468
  };
75469
+ logistics_buffer_detach_late_orders: {
75470
+ Args: {
75471
+ p_buffer?: string;
75472
+ };
75473
+ Returns: import("../integrations/supabase/types").Json;
75474
+ };
75475
+ logistics_buffer_frozen_order: {
75476
+ Args: {
75477
+ p_order_id: string;
75478
+ };
75479
+ Returns: boolean;
75480
+ };
75481
+ logistics_buffer_handled: {
75482
+ Args: {
75483
+ p_buffer: string;
75484
+ };
75485
+ Returns: boolean;
75486
+ };
75487
+ logistics_buffer_notify: {
75488
+ Args: {
75489
+ p_event_type: string;
75490
+ p_idempotency_key: string;
75491
+ p_order_ref: string;
75492
+ p_payload: import("../integrations/supabase/types").Json;
75493
+ };
75494
+ Returns: string;
75495
+ };
75496
+ logistics_buffer_open_key: {
75497
+ Args: {
75498
+ p_base_key: string;
75499
+ };
75500
+ Returns: string;
75501
+ };
74573
75502
  logistics_buffer_simulate: {
74574
75503
  Args: {
74575
75504
  p_orders?: import("../integrations/supabase/types").Json;
@@ -74659,6 +75588,25 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
74659
75588
  Args: never;
74660
75589
  Returns: import("../integrations/supabase/types").Json;
74661
75590
  };
75591
+ logistics_cart_plan_overview: {
75592
+ Args: {
75593
+ p_days?: number;
75594
+ };
75595
+ Returns: {
75596
+ cart_total: number;
75597
+ delivery_date: string;
75598
+ order_ref: string;
75599
+ plan_ready: boolean;
75600
+ reason: string;
75601
+ released: boolean;
75602
+ }[];
75603
+ };
75604
+ logistics_cart_plan_status: {
75605
+ Args: {
75606
+ p_ref: string;
75607
+ };
75608
+ Returns: import("../integrations/supabase/types").Json;
75609
+ };
74662
75610
  logistics_cart_seq: {
74663
75611
  Args: {
74664
75612
  p_order_uuid?: string;
@@ -75158,6 +76106,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75158
76106
  };
75159
76107
  Returns: string;
75160
76108
  };
76109
+ logistics_floriday_order_approved: {
76110
+ Args: {
76111
+ _order_ref: string;
76112
+ };
76113
+ Returns: boolean;
76114
+ };
75161
76115
  logistics_floriday_prune_pushes: {
75162
76116
  Args: {
75163
76117
  _days?: number;
@@ -75172,6 +76126,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75172
76126
  };
75173
76127
  Returns: string;
75174
76128
  };
76129
+ logistics_floriday_status_updates_enabled: {
76130
+ Args: never;
76131
+ Returns: boolean;
76132
+ };
75175
76133
  logistics_fulfill_barcode_requests: {
75176
76134
  Args: {
75177
76135
  p_limit?: number;
@@ -75192,6 +76150,16 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75192
76150
  };
75193
76151
  Returns: boolean;
75194
76152
  };
76153
+ logistics_layout_method_status: {
76154
+ Args: never;
76155
+ Returns: import("../integrations/supabase/types").Json;
76156
+ };
76157
+ logistics_link_order_items: {
76158
+ Args: {
76159
+ p_order?: string;
76160
+ };
76161
+ Returns: import("../integrations/supabase/types").Json;
76162
+ };
75195
76163
  logistics_live_carriers: {
75196
76164
  Args: {
75197
76165
  p_order_ref: string;
@@ -75218,6 +76186,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75218
76186
  };
75219
76187
  Returns: string;
75220
76188
  };
76189
+ logistics_normalize_product_label: {
76190
+ Args: {
76191
+ p_label: string;
76192
+ };
76193
+ Returns: string;
76194
+ };
75221
76195
  logistics_not_past: {
75222
76196
  Args: {
75223
76197
  p_ts: string;
@@ -75406,6 +76380,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75406
76380
  Args: never;
75407
76381
  Returns: number;
75408
76382
  };
76383
+ logistics_plan_retry: {
76384
+ Args: {
76385
+ p_order_ids: string[];
76386
+ };
76387
+ Returns: number;
76388
+ };
75409
76389
  logistics_plan_setting: {
75410
76390
  Args: {
75411
76391
  p_default: number;
@@ -75459,6 +76439,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75459
76439
  };
75460
76440
  Returns: import("../integrations/supabase/types").Json;
75461
76441
  };
76442
+ logistics_replan_all: {
76443
+ Args: {
76444
+ p_reason?: string;
76445
+ };
76446
+ Returns: import("../integrations/supabase/types").Json;
76447
+ };
75462
76448
  logistics_report_delay: {
75463
76449
  Args: {
75464
76450
  p_expected_date?: string;
@@ -75512,6 +76498,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75512
76498
  };
75513
76499
  Returns: import("../integrations/supabase/types").Json;
75514
76500
  };
76501
+ logistics_resolve_product_id: {
76502
+ Args: {
76503
+ p_label: string;
76504
+ };
76505
+ Returns: string;
76506
+ };
75515
76507
  logistics_resolve_settings: {
75516
76508
  Args: {
75517
76509
  p_config_id: string;
@@ -75641,6 +76633,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75641
76633
  };
75642
76634
  Returns: number;
75643
76635
  };
76636
+ logistics_tick_ping: {
76637
+ Args: never;
76638
+ Returns: string;
76639
+ };
75644
76640
  logistics_upsert_task: {
75645
76641
  Args: {
75646
76642
  p_buffer_ref: string;
@@ -75784,6 +76780,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75784
76780
  };
75785
76781
  Returns: import("../integrations/supabase/types").Json;
75786
76782
  };
76783
+ order_heeft_bevestigde_karren: {
76784
+ Args: {
76785
+ p_order_id: string;
76786
+ };
76787
+ Returns: boolean;
76788
+ };
75787
76789
  order_number_prefix: {
75788
76790
  Args: {
75789
76791
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -75819,6 +76821,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75819
76821
  online: boolean;
75820
76822
  }[];
75821
76823
  };
76824
+ pick_apply_buffer_events: {
76825
+ Args: never;
76826
+ Returns: import("../integrations/supabase/types").Json;
76827
+ };
75822
76828
  pick_available_pick_days: {
75823
76829
  Args: {
75824
76830
  _max_days?: number;
@@ -75828,6 +76834,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75828
76834
  pick_day: string;
75829
76835
  }[];
75830
76836
  };
76837
+ pick_buffer_order_ids: {
76838
+ Args: {
76839
+ _order_id: string;
76840
+ };
76841
+ Returns: string[];
76842
+ };
75831
76843
  pick_cart_breakdown: {
75832
76844
  Args: {
75833
76845
  _order_id: string;
@@ -75887,6 +76899,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
75887
76899
  pick_claim_next_document: {
75888
76900
  Args: {
75889
76901
  _country_code: string;
76902
+ _pick_day?: string;
75890
76903
  _screen_id: string;
75891
76904
  _session_id: string;
75892
76905
  _station_id: string;
@@ -76175,6 +77188,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76175
77188
  omschrijving: string;
76176
77189
  }[];
76177
77190
  };
77191
+ pick_queue_cart_plan: {
77192
+ Args: {
77193
+ _queue_item_id: string;
77194
+ };
77195
+ Returns: import("../integrations/supabase/types").Json;
77196
+ };
76178
77197
  pick_reference_data_status: {
76179
77198
  Args: never;
76180
77199
  Returns: import("../integrations/supabase/types").Json;
@@ -76189,6 +77208,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76189
77208
  };
76190
77209
  Returns: undefined;
76191
77210
  };
77211
+ pick_report_missing_cart_plan: {
77212
+ Args: never;
77213
+ Returns: import("../integrations/supabase/types").Json;
77214
+ };
76192
77215
  pick_reprint_cart: {
76193
77216
  Args: {
76194
77217
  _cart_id: string;
@@ -76729,6 +77752,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76729
77752
  };
76730
77753
  Returns: boolean;
76731
77754
  };
77755
+ release_job_lock: {
77756
+ Args: {
77757
+ _key: string;
77758
+ };
77759
+ Returns: undefined;
77760
+ };
76732
77761
  release_local_pdf_job: {
76733
77762
  Args: {
76734
77763
  _job_id: string;
@@ -76918,6 +77947,16 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
76918
77947
  };
76919
77948
  Returns: import("../integrations/supabase/types").Json;
76920
77949
  };
77950
+ scan_log_code: {
77951
+ Args: {
77952
+ p_code: string;
77953
+ p_latency_ms?: number;
77954
+ p_message?: string;
77955
+ p_result: string;
77956
+ p_scanner_key?: string;
77957
+ };
77958
+ Returns: string;
77959
+ };
76921
77960
  scan_open_pakbonnen: {
76922
77961
  Args: {
76923
77962
  p_dagen?: number;
@@ -77407,6 +78446,14 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
77407
78446
  row_count: number;
77408
78447
  }[];
77409
78448
  };
78449
+ try_acquire_job_lock: {
78450
+ Args: {
78451
+ _key: string;
78452
+ _owner?: string;
78453
+ _seconds?: number;
78454
+ };
78455
+ Returns: boolean;
78456
+ };
77410
78457
  try_debtor_lock: {
77411
78458
  Args: {
77412
78459
  _group_key: string;