@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
@@ -2179,6 +2179,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
2179
2179
  created_at: string;
2180
2180
  currency: string;
2181
2181
  distribute_over: string | null;
2182
+ external_id: string | null;
2183
+ external_synced_at: string | null;
2182
2184
  group_type: string;
2183
2185
  handling_fee: number | null;
2184
2186
  id: string;
@@ -2191,6 +2193,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
2191
2193
  rounding: string;
2192
2194
  rounding_step: number;
2193
2195
  sort_order: number;
2196
+ source: string;
2194
2197
  unit: string;
2195
2198
  updated_at: string;
2196
2199
  };
@@ -2201,6 +2204,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
2201
2204
  created_at?: string;
2202
2205
  currency?: string;
2203
2206
  distribute_over?: string | null;
2207
+ external_id?: string | null;
2208
+ external_synced_at?: string | null;
2204
2209
  group_type?: string;
2205
2210
  handling_fee?: number | null;
2206
2211
  id?: string;
@@ -2213,6 +2218,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
2213
2218
  rounding?: string;
2214
2219
  rounding_step?: number;
2215
2220
  sort_order?: number;
2221
+ source?: string;
2216
2222
  unit?: string;
2217
2223
  updated_at?: string;
2218
2224
  };
@@ -2223,6 +2229,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
2223
2229
  created_at?: string;
2224
2230
  currency?: string;
2225
2231
  distribute_over?: string | null;
2232
+ external_id?: string | null;
2233
+ external_synced_at?: string | null;
2226
2234
  group_type?: string;
2227
2235
  handling_fee?: number | null;
2228
2236
  id?: string;
@@ -2235,6 +2243,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
2235
2243
  rounding?: string;
2236
2244
  rounding_step?: number;
2237
2245
  sort_order?: number;
2246
+ source?: string;
2238
2247
  unit?: string;
2239
2248
  updated_at?: string;
2240
2249
  };
@@ -9098,6 +9107,30 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9098
9107
  referencedColumns: ["id"];
9099
9108
  }];
9100
9109
  };
9110
+ job_locks: {
9111
+ Row: {
9112
+ created_at: string;
9113
+ lock_key: string;
9114
+ locked_until: string;
9115
+ owner: string | null;
9116
+ updated_at: string;
9117
+ };
9118
+ Insert: {
9119
+ created_at?: string;
9120
+ lock_key: string;
9121
+ locked_until: string;
9122
+ owner?: string | null;
9123
+ updated_at?: string;
9124
+ };
9125
+ Update: {
9126
+ created_at?: string;
9127
+ lock_key?: string;
9128
+ locked_until?: string;
9129
+ owner?: string | null;
9130
+ updated_at?: string;
9131
+ };
9132
+ Relationships: [];
9133
+ };
9101
9134
  layout_logos: {
9102
9135
  Row: {
9103
9136
  bestand_url: string;
@@ -10067,6 +10100,27 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
10067
10100
  };
10068
10101
  Relationships: [];
10069
10102
  };
10103
+ logistics_floriday_push_refusals: {
10104
+ Row: {
10105
+ created_at: string;
10106
+ id: string;
10107
+ order_ref: string;
10108
+ reason: string;
10109
+ };
10110
+ Insert: {
10111
+ created_at?: string;
10112
+ id?: string;
10113
+ order_ref: string;
10114
+ reason: string;
10115
+ };
10116
+ Update: {
10117
+ created_at?: string;
10118
+ id?: string;
10119
+ order_ref?: string;
10120
+ reason?: string;
10121
+ };
10122
+ Relationships: [];
10123
+ };
10070
10124
  logistics_floriday_pushes: {
10071
10125
  Row: {
10072
10126
  attempts: number;
@@ -10260,6 +10314,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
10260
10314
  next_attempt_at: string;
10261
10315
  order_id: string;
10262
10316
  reason: string;
10317
+ reason_code: string | null;
10263
10318
  status: string;
10264
10319
  updated_at: string;
10265
10320
  };
@@ -10272,6 +10327,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
10272
10327
  next_attempt_at?: string;
10273
10328
  order_id: string;
10274
10329
  reason?: string;
10330
+ reason_code?: string | null;
10275
10331
  status?: string;
10276
10332
  updated_at?: string;
10277
10333
  };
@@ -10284,6 +10340,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
10284
10340
  next_attempt_at?: string;
10285
10341
  order_id?: string;
10286
10342
  reason?: string;
10343
+ reason_code?: string | null;
10287
10344
  status?: string;
10288
10345
  updated_at?: string;
10289
10346
  };
@@ -10988,6 +11045,21 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
10988
11045
  referencedColumns: ["id"];
10989
11046
  }];
10990
11047
  };
11048
+ logistics_tick_heartbeat: {
11049
+ Row: {
11050
+ id: boolean;
11051
+ last_tick_at: string;
11052
+ };
11053
+ Insert: {
11054
+ id?: boolean;
11055
+ last_tick_at?: string;
11056
+ };
11057
+ Update: {
11058
+ id?: boolean;
11059
+ last_tick_at?: string;
11060
+ };
11061
+ Relationships: [];
11062
+ };
10991
11063
  logistics_variables: {
10992
11064
  Row: {
10993
11065
  created_at: string;
@@ -13625,6 +13697,27 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
13625
13697
  };
13626
13698
  Relationships: [];
13627
13699
  };
13700
+ pick_buffer_event_cursor: {
13701
+ Row: {
13702
+ created_at: string;
13703
+ id: boolean;
13704
+ last_event_at: string;
13705
+ updated_at: string;
13706
+ };
13707
+ Insert: {
13708
+ created_at?: string;
13709
+ id?: boolean;
13710
+ last_event_at?: string;
13711
+ updated_at?: string;
13712
+ };
13713
+ Update: {
13714
+ created_at?: string;
13715
+ id?: boolean;
13716
+ last_event_at?: string;
13717
+ updated_at?: string;
13718
+ };
13719
+ Relationships: [];
13720
+ };
13628
13721
  pick_countries: {
13629
13722
  Row: {
13630
13723
  active: boolean;
@@ -19274,6 +19367,36 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
19274
19367
  referencedColumns: ["id"];
19275
19368
  }];
19276
19369
  };
19370
+ voorraad_buffer_state: {
19371
+ Row: {
19372
+ buffer_id: string;
19373
+ buffer_key: string | null;
19374
+ closed_at: string | null;
19375
+ created_at: string;
19376
+ detached_orders: import("../integrations/supabase/types").Json;
19377
+ reason: string | null;
19378
+ updated_at: string;
19379
+ };
19380
+ Insert: {
19381
+ buffer_id: string;
19382
+ buffer_key?: string | null;
19383
+ closed_at?: string | null;
19384
+ created_at?: string;
19385
+ detached_orders?: import("../integrations/supabase/types").Json;
19386
+ reason?: string | null;
19387
+ updated_at?: string;
19388
+ };
19389
+ Update: {
19390
+ buffer_id?: string;
19391
+ buffer_key?: string | null;
19392
+ closed_at?: string | null;
19393
+ created_at?: string;
19394
+ detached_orders?: import("../integrations/supabase/types").Json;
19395
+ reason?: string | null;
19396
+ updated_at?: string;
19397
+ };
19398
+ Relationships: [];
19399
+ };
19277
19400
  voorraad_custom_fields: {
19278
19401
  Row: {
19279
19402
  created_at: string;
@@ -19316,6 +19439,36 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
19316
19439
  };
19317
19440
  Relationships: [];
19318
19441
  };
19442
+ voorraad_logistics_event_log: {
19443
+ Row: {
19444
+ created_at: string;
19445
+ event_id: string;
19446
+ event_type: string;
19447
+ order_ref: string | null;
19448
+ processed_at: string;
19449
+ result: import("../integrations/supabase/types").Json;
19450
+ updated_at: string;
19451
+ };
19452
+ Insert: {
19453
+ created_at?: string;
19454
+ event_id: string;
19455
+ event_type: string;
19456
+ order_ref?: string | null;
19457
+ processed_at?: string;
19458
+ result?: import("../integrations/supabase/types").Json;
19459
+ updated_at?: string;
19460
+ };
19461
+ Update: {
19462
+ created_at?: string;
19463
+ event_id?: string;
19464
+ event_type?: string;
19465
+ order_ref?: string | null;
19466
+ processed_at?: string;
19467
+ result?: import("../integrations/supabase/types").Json;
19468
+ updated_at?: string;
19469
+ };
19470
+ Relationships: [];
19471
+ };
19319
19472
  voorraad_media_upload_failures: {
19320
19473
  Row: {
19321
19474
  action: string;
@@ -22141,6 +22294,17 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
22141
22294
  };
22142
22295
  Returns: boolean;
22143
22296
  };
22297
+ floriday_adopt_connection: {
22298
+ Args: {
22299
+ p_new: string;
22300
+ p_old: string;
22301
+ };
22302
+ Returns: import("../integrations/supabase/types").Json;
22303
+ };
22304
+ floriday_autoheal_connections: {
22305
+ Args: never;
22306
+ Returns: import("../integrations/supabase/types").Json;
22307
+ };
22144
22308
  floriday_capture_stock_snapshot: {
22145
22309
  Args: never;
22146
22310
  Returns: number;
@@ -22198,6 +22362,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
22198
22362
  };
22199
22363
  Returns: undefined;
22200
22364
  };
22365
+ floriday_relink_products: {
22366
+ Args: {
22367
+ p_connection_id?: string;
22368
+ };
22369
+ Returns: import("../integrations/supabase/types").Json;
22370
+ };
22201
22371
  floriday_requeue_dead_letters: {
22202
22372
  Args: {
22203
22373
  p_connection_id?: string;
@@ -22819,6 +22989,10 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
22819
22989
  };
22820
22990
  Returns: string;
22821
22991
  };
22992
+ logistics_active_layout_method: {
22993
+ Args: never;
22994
+ Returns: string;
22995
+ };
22822
22996
  logistics_active_pick_workdays: {
22823
22997
  Args: never;
22824
22998
  Returns: string[];
@@ -22870,6 +23044,30 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
22870
23044
  };
22871
23045
  Returns: import("../integrations/supabase/types").Json;
22872
23046
  };
23047
+ logistics_block_reason_code: {
23048
+ Args: {
23049
+ p_details?: import("../integrations/supabase/types").Json;
23050
+ p_reason: string;
23051
+ };
23052
+ Returns: string;
23053
+ };
23054
+ logistics_blocked_orders: {
23055
+ Args: never;
23056
+ Returns: {
23057
+ attempts: number;
23058
+ blocked_since: string;
23059
+ delivery_date: string;
23060
+ order_id: string;
23061
+ order_ref: string;
23062
+ queue_id: string;
23063
+ reason: string;
23064
+ reason_code: string;
23065
+ }[];
23066
+ };
23067
+ logistics_blocked_overview: {
23068
+ Args: never;
23069
+ Returns: import("../integrations/supabase/types").Json;
23070
+ };
22873
23071
  logistics_buffer_criteria: {
22874
23072
  Args: {
22875
23073
  p_settings: import("../integrations/supabase/types").Json;
@@ -22884,6 +23082,39 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
22884
23082
  };
22885
23083
  Returns: import("../integrations/supabase/types").Json;
22886
23084
  };
23085
+ logistics_buffer_detach_late_orders: {
23086
+ Args: {
23087
+ p_buffer?: string;
23088
+ };
23089
+ Returns: import("../integrations/supabase/types").Json;
23090
+ };
23091
+ logistics_buffer_frozen_order: {
23092
+ Args: {
23093
+ p_order_id: string;
23094
+ };
23095
+ Returns: boolean;
23096
+ };
23097
+ logistics_buffer_handled: {
23098
+ Args: {
23099
+ p_buffer: string;
23100
+ };
23101
+ Returns: boolean;
23102
+ };
23103
+ logistics_buffer_notify: {
23104
+ Args: {
23105
+ p_event_type: string;
23106
+ p_idempotency_key: string;
23107
+ p_order_ref: string;
23108
+ p_payload: import("../integrations/supabase/types").Json;
23109
+ };
23110
+ Returns: string;
23111
+ };
23112
+ logistics_buffer_open_key: {
23113
+ Args: {
23114
+ p_base_key: string;
23115
+ };
23116
+ Returns: string;
23117
+ };
22887
23118
  logistics_buffer_simulate: {
22888
23119
  Args: {
22889
23120
  p_orders?: import("../integrations/supabase/types").Json;
@@ -22973,6 +23204,25 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
22973
23204
  Args: never;
22974
23205
  Returns: import("../integrations/supabase/types").Json;
22975
23206
  };
23207
+ logistics_cart_plan_overview: {
23208
+ Args: {
23209
+ p_days?: number;
23210
+ };
23211
+ Returns: {
23212
+ cart_total: number;
23213
+ delivery_date: string;
23214
+ order_ref: string;
23215
+ plan_ready: boolean;
23216
+ reason: string;
23217
+ released: boolean;
23218
+ }[];
23219
+ };
23220
+ logistics_cart_plan_status: {
23221
+ Args: {
23222
+ p_ref: string;
23223
+ };
23224
+ Returns: import("../integrations/supabase/types").Json;
23225
+ };
22976
23226
  logistics_cart_seq: {
22977
23227
  Args: {
22978
23228
  p_order_uuid?: string;
@@ -23472,6 +23722,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
23472
23722
  };
23473
23723
  Returns: string;
23474
23724
  };
23725
+ logistics_floriday_order_approved: {
23726
+ Args: {
23727
+ _order_ref: string;
23728
+ };
23729
+ Returns: boolean;
23730
+ };
23475
23731
  logistics_floriday_prune_pushes: {
23476
23732
  Args: {
23477
23733
  _days?: number;
@@ -23486,6 +23742,10 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
23486
23742
  };
23487
23743
  Returns: string;
23488
23744
  };
23745
+ logistics_floriday_status_updates_enabled: {
23746
+ Args: never;
23747
+ Returns: boolean;
23748
+ };
23489
23749
  logistics_fulfill_barcode_requests: {
23490
23750
  Args: {
23491
23751
  p_limit?: number;
@@ -23506,6 +23766,16 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
23506
23766
  };
23507
23767
  Returns: boolean;
23508
23768
  };
23769
+ logistics_layout_method_status: {
23770
+ Args: never;
23771
+ Returns: import("../integrations/supabase/types").Json;
23772
+ };
23773
+ logistics_link_order_items: {
23774
+ Args: {
23775
+ p_order?: string;
23776
+ };
23777
+ Returns: import("../integrations/supabase/types").Json;
23778
+ };
23509
23779
  logistics_live_carriers: {
23510
23780
  Args: {
23511
23781
  p_order_ref: string;
@@ -23532,6 +23802,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
23532
23802
  };
23533
23803
  Returns: string;
23534
23804
  };
23805
+ logistics_normalize_product_label: {
23806
+ Args: {
23807
+ p_label: string;
23808
+ };
23809
+ Returns: string;
23810
+ };
23535
23811
  logistics_not_past: {
23536
23812
  Args: {
23537
23813
  p_ts: string;
@@ -23720,6 +23996,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
23720
23996
  Args: never;
23721
23997
  Returns: number;
23722
23998
  };
23999
+ logistics_plan_retry: {
24000
+ Args: {
24001
+ p_order_ids: string[];
24002
+ };
24003
+ Returns: number;
24004
+ };
23723
24005
  logistics_plan_setting: {
23724
24006
  Args: {
23725
24007
  p_default: number;
@@ -23773,6 +24055,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
23773
24055
  };
23774
24056
  Returns: import("../integrations/supabase/types").Json;
23775
24057
  };
24058
+ logistics_replan_all: {
24059
+ Args: {
24060
+ p_reason?: string;
24061
+ };
24062
+ Returns: import("../integrations/supabase/types").Json;
24063
+ };
23776
24064
  logistics_report_delay: {
23777
24065
  Args: {
23778
24066
  p_expected_date?: string;
@@ -23826,6 +24114,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
23826
24114
  };
23827
24115
  Returns: import("../integrations/supabase/types").Json;
23828
24116
  };
24117
+ logistics_resolve_product_id: {
24118
+ Args: {
24119
+ p_label: string;
24120
+ };
24121
+ Returns: string;
24122
+ };
23829
24123
  logistics_resolve_settings: {
23830
24124
  Args: {
23831
24125
  p_config_id: string;
@@ -23955,6 +24249,10 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
23955
24249
  };
23956
24250
  Returns: number;
23957
24251
  };
24252
+ logistics_tick_ping: {
24253
+ Args: never;
24254
+ Returns: string;
24255
+ };
23958
24256
  logistics_upsert_task: {
23959
24257
  Args: {
23960
24258
  p_buffer_ref: string;
@@ -24098,6 +24396,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
24098
24396
  };
24099
24397
  Returns: import("../integrations/supabase/types").Json;
24100
24398
  };
24399
+ order_heeft_bevestigde_karren: {
24400
+ Args: {
24401
+ p_order_id: string;
24402
+ };
24403
+ Returns: boolean;
24404
+ };
24101
24405
  order_number_prefix: {
24102
24406
  Args: {
24103
24407
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -24133,6 +24437,10 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
24133
24437
  online: boolean;
24134
24438
  }[];
24135
24439
  };
24440
+ pick_apply_buffer_events: {
24441
+ Args: never;
24442
+ Returns: import("../integrations/supabase/types").Json;
24443
+ };
24136
24444
  pick_available_pick_days: {
24137
24445
  Args: {
24138
24446
  _max_days?: number;
@@ -24142,6 +24450,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
24142
24450
  pick_day: string;
24143
24451
  }[];
24144
24452
  };
24453
+ pick_buffer_order_ids: {
24454
+ Args: {
24455
+ _order_id: string;
24456
+ };
24457
+ Returns: string[];
24458
+ };
24145
24459
  pick_cart_breakdown: {
24146
24460
  Args: {
24147
24461
  _order_id: string;
@@ -24201,6 +24515,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
24201
24515
  pick_claim_next_document: {
24202
24516
  Args: {
24203
24517
  _country_code: string;
24518
+ _pick_day?: string;
24204
24519
  _screen_id: string;
24205
24520
  _session_id: string;
24206
24521
  _station_id: string;
@@ -24489,6 +24804,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
24489
24804
  omschrijving: string;
24490
24805
  }[];
24491
24806
  };
24807
+ pick_queue_cart_plan: {
24808
+ Args: {
24809
+ _queue_item_id: string;
24810
+ };
24811
+ Returns: import("../integrations/supabase/types").Json;
24812
+ };
24492
24813
  pick_reference_data_status: {
24493
24814
  Args: never;
24494
24815
  Returns: import("../integrations/supabase/types").Json;
@@ -24503,6 +24824,10 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
24503
24824
  };
24504
24825
  Returns: undefined;
24505
24826
  };
24827
+ pick_report_missing_cart_plan: {
24828
+ Args: never;
24829
+ Returns: import("../integrations/supabase/types").Json;
24830
+ };
24506
24831
  pick_reprint_cart: {
24507
24832
  Args: {
24508
24833
  _cart_id: string;
@@ -25043,6 +25368,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25043
25368
  };
25044
25369
  Returns: boolean;
25045
25370
  };
25371
+ release_job_lock: {
25372
+ Args: {
25373
+ _key: string;
25374
+ };
25375
+ Returns: undefined;
25376
+ };
25046
25377
  release_local_pdf_job: {
25047
25378
  Args: {
25048
25379
  _job_id: string;
@@ -25232,6 +25563,16 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25232
25563
  };
25233
25564
  Returns: import("../integrations/supabase/types").Json;
25234
25565
  };
25566
+ scan_log_code: {
25567
+ Args: {
25568
+ p_code: string;
25569
+ p_latency_ms?: number;
25570
+ p_message?: string;
25571
+ p_result: string;
25572
+ p_scanner_key?: string;
25573
+ };
25574
+ Returns: string;
25575
+ };
25235
25576
  scan_open_pakbonnen: {
25236
25577
  Args: {
25237
25578
  p_dagen?: number;
@@ -25721,6 +26062,14 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25721
26062
  row_count: number;
25722
26063
  }[];
25723
26064
  };
26065
+ try_acquire_job_lock: {
26066
+ Args: {
26067
+ _key: string;
26068
+ _owner?: string;
26069
+ _seconds?: number;
26070
+ };
26071
+ Returns: boolean;
26072
+ };
25724
26073
  try_debtor_lock: {
25725
26074
  Args: {
25726
26075
  _group_key: string;
@@ -28025,6 +28374,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
28025
28374
  created_at: string;
28026
28375
  currency: string;
28027
28376
  distribute_over: string | null;
28377
+ external_id: string | null;
28378
+ external_synced_at: string | null;
28028
28379
  group_type: string;
28029
28380
  handling_fee: number | null;
28030
28381
  id: string;
@@ -28037,6 +28388,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
28037
28388
  rounding: string;
28038
28389
  rounding_step: number;
28039
28390
  sort_order: number;
28391
+ source: string;
28040
28392
  unit: string;
28041
28393
  updated_at: string;
28042
28394
  };
@@ -28047,6 +28399,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
28047
28399
  created_at?: string;
28048
28400
  currency?: string;
28049
28401
  distribute_over?: string | null;
28402
+ external_id?: string | null;
28403
+ external_synced_at?: string | null;
28050
28404
  group_type?: string;
28051
28405
  handling_fee?: number | null;
28052
28406
  id?: string;
@@ -28059,6 +28413,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
28059
28413
  rounding?: string;
28060
28414
  rounding_step?: number;
28061
28415
  sort_order?: number;
28416
+ source?: string;
28062
28417
  unit?: string;
28063
28418
  updated_at?: string;
28064
28419
  };
@@ -28069,6 +28424,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
28069
28424
  created_at?: string;
28070
28425
  currency?: string;
28071
28426
  distribute_over?: string | null;
28427
+ external_id?: string | null;
28428
+ external_synced_at?: string | null;
28072
28429
  group_type?: string;
28073
28430
  handling_fee?: number | null;
28074
28431
  id?: string;
@@ -28081,6 +28438,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
28081
28438
  rounding?: string;
28082
28439
  rounding_step?: number;
28083
28440
  sort_order?: number;
28441
+ source?: string;
28084
28442
  unit?: string;
28085
28443
  updated_at?: string;
28086
28444
  };
@@ -34944,6 +35302,30 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
34944
35302
  referencedColumns: ["id"];
34945
35303
  }];
34946
35304
  };
35305
+ job_locks: {
35306
+ Row: {
35307
+ created_at: string;
35308
+ lock_key: string;
35309
+ locked_until: string;
35310
+ owner: string | null;
35311
+ updated_at: string;
35312
+ };
35313
+ Insert: {
35314
+ created_at?: string;
35315
+ lock_key: string;
35316
+ locked_until: string;
35317
+ owner?: string | null;
35318
+ updated_at?: string;
35319
+ };
35320
+ Update: {
35321
+ created_at?: string;
35322
+ lock_key?: string;
35323
+ locked_until?: string;
35324
+ owner?: string | null;
35325
+ updated_at?: string;
35326
+ };
35327
+ Relationships: [];
35328
+ };
34947
35329
  layout_logos: {
34948
35330
  Row: {
34949
35331
  bestand_url: string;
@@ -35913,6 +36295,27 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
35913
36295
  };
35914
36296
  Relationships: [];
35915
36297
  };
36298
+ logistics_floriday_push_refusals: {
36299
+ Row: {
36300
+ created_at: string;
36301
+ id: string;
36302
+ order_ref: string;
36303
+ reason: string;
36304
+ };
36305
+ Insert: {
36306
+ created_at?: string;
36307
+ id?: string;
36308
+ order_ref: string;
36309
+ reason: string;
36310
+ };
36311
+ Update: {
36312
+ created_at?: string;
36313
+ id?: string;
36314
+ order_ref?: string;
36315
+ reason?: string;
36316
+ };
36317
+ Relationships: [];
36318
+ };
35916
36319
  logistics_floriday_pushes: {
35917
36320
  Row: {
35918
36321
  attempts: number;
@@ -36106,6 +36509,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
36106
36509
  next_attempt_at: string;
36107
36510
  order_id: string;
36108
36511
  reason: string;
36512
+ reason_code: string | null;
36109
36513
  status: string;
36110
36514
  updated_at: string;
36111
36515
  };
@@ -36118,6 +36522,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
36118
36522
  next_attempt_at?: string;
36119
36523
  order_id: string;
36120
36524
  reason?: string;
36525
+ reason_code?: string | null;
36121
36526
  status?: string;
36122
36527
  updated_at?: string;
36123
36528
  };
@@ -36130,6 +36535,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
36130
36535
  next_attempt_at?: string;
36131
36536
  order_id?: string;
36132
36537
  reason?: string;
36538
+ reason_code?: string | null;
36133
36539
  status?: string;
36134
36540
  updated_at?: string;
36135
36541
  };
@@ -36834,6 +37240,21 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
36834
37240
  referencedColumns: ["id"];
36835
37241
  }];
36836
37242
  };
37243
+ logistics_tick_heartbeat: {
37244
+ Row: {
37245
+ id: boolean;
37246
+ last_tick_at: string;
37247
+ };
37248
+ Insert: {
37249
+ id?: boolean;
37250
+ last_tick_at?: string;
37251
+ };
37252
+ Update: {
37253
+ id?: boolean;
37254
+ last_tick_at?: string;
37255
+ };
37256
+ Relationships: [];
37257
+ };
36837
37258
  logistics_variables: {
36838
37259
  Row: {
36839
37260
  created_at: string;
@@ -39471,6 +39892,27 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39471
39892
  };
39472
39893
  Relationships: [];
39473
39894
  };
39895
+ pick_buffer_event_cursor: {
39896
+ Row: {
39897
+ created_at: string;
39898
+ id: boolean;
39899
+ last_event_at: string;
39900
+ updated_at: string;
39901
+ };
39902
+ Insert: {
39903
+ created_at?: string;
39904
+ id?: boolean;
39905
+ last_event_at?: string;
39906
+ updated_at?: string;
39907
+ };
39908
+ Update: {
39909
+ created_at?: string;
39910
+ id?: boolean;
39911
+ last_event_at?: string;
39912
+ updated_at?: string;
39913
+ };
39914
+ Relationships: [];
39915
+ };
39474
39916
  pick_countries: {
39475
39917
  Row: {
39476
39918
  active: boolean;
@@ -45120,6 +45562,36 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
45120
45562
  referencedColumns: ["id"];
45121
45563
  }];
45122
45564
  };
45565
+ voorraad_buffer_state: {
45566
+ Row: {
45567
+ buffer_id: string;
45568
+ buffer_key: string | null;
45569
+ closed_at: string | null;
45570
+ created_at: string;
45571
+ detached_orders: import("../integrations/supabase/types").Json;
45572
+ reason: string | null;
45573
+ updated_at: string;
45574
+ };
45575
+ Insert: {
45576
+ buffer_id: string;
45577
+ buffer_key?: string | null;
45578
+ closed_at?: string | null;
45579
+ created_at?: string;
45580
+ detached_orders?: import("../integrations/supabase/types").Json;
45581
+ reason?: string | null;
45582
+ updated_at?: string;
45583
+ };
45584
+ Update: {
45585
+ buffer_id?: string;
45586
+ buffer_key?: string | null;
45587
+ closed_at?: string | null;
45588
+ created_at?: string;
45589
+ detached_orders?: import("../integrations/supabase/types").Json;
45590
+ reason?: string | null;
45591
+ updated_at?: string;
45592
+ };
45593
+ Relationships: [];
45594
+ };
45123
45595
  voorraad_custom_fields: {
45124
45596
  Row: {
45125
45597
  created_at: string;
@@ -45162,6 +45634,36 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
45162
45634
  };
45163
45635
  Relationships: [];
45164
45636
  };
45637
+ voorraad_logistics_event_log: {
45638
+ Row: {
45639
+ created_at: string;
45640
+ event_id: string;
45641
+ event_type: string;
45642
+ order_ref: string | null;
45643
+ processed_at: string;
45644
+ result: import("../integrations/supabase/types").Json;
45645
+ updated_at: string;
45646
+ };
45647
+ Insert: {
45648
+ created_at?: string;
45649
+ event_id: string;
45650
+ event_type: string;
45651
+ order_ref?: string | null;
45652
+ processed_at?: string;
45653
+ result?: import("../integrations/supabase/types").Json;
45654
+ updated_at?: string;
45655
+ };
45656
+ Update: {
45657
+ created_at?: string;
45658
+ event_id?: string;
45659
+ event_type?: string;
45660
+ order_ref?: string | null;
45661
+ processed_at?: string;
45662
+ result?: import("../integrations/supabase/types").Json;
45663
+ updated_at?: string;
45664
+ };
45665
+ Relationships: [];
45666
+ };
45165
45667
  voorraad_media_upload_failures: {
45166
45668
  Row: {
45167
45669
  action: string;
@@ -47987,6 +48489,17 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
47987
48489
  };
47988
48490
  Returns: boolean;
47989
48491
  };
48492
+ floriday_adopt_connection: {
48493
+ Args: {
48494
+ p_new: string;
48495
+ p_old: string;
48496
+ };
48497
+ Returns: import("../integrations/supabase/types").Json;
48498
+ };
48499
+ floriday_autoheal_connections: {
48500
+ Args: never;
48501
+ Returns: import("../integrations/supabase/types").Json;
48502
+ };
47990
48503
  floriday_capture_stock_snapshot: {
47991
48504
  Args: never;
47992
48505
  Returns: number;
@@ -48044,6 +48557,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
48044
48557
  };
48045
48558
  Returns: undefined;
48046
48559
  };
48560
+ floriday_relink_products: {
48561
+ Args: {
48562
+ p_connection_id?: string;
48563
+ };
48564
+ Returns: import("../integrations/supabase/types").Json;
48565
+ };
48047
48566
  floriday_requeue_dead_letters: {
48048
48567
  Args: {
48049
48568
  p_connection_id?: string;
@@ -48665,6 +49184,10 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
48665
49184
  };
48666
49185
  Returns: string;
48667
49186
  };
49187
+ logistics_active_layout_method: {
49188
+ Args: never;
49189
+ Returns: string;
49190
+ };
48668
49191
  logistics_active_pick_workdays: {
48669
49192
  Args: never;
48670
49193
  Returns: string[];
@@ -48716,6 +49239,30 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
48716
49239
  };
48717
49240
  Returns: import("../integrations/supabase/types").Json;
48718
49241
  };
49242
+ logistics_block_reason_code: {
49243
+ Args: {
49244
+ p_details?: import("../integrations/supabase/types").Json;
49245
+ p_reason: string;
49246
+ };
49247
+ Returns: string;
49248
+ };
49249
+ logistics_blocked_orders: {
49250
+ Args: never;
49251
+ Returns: {
49252
+ attempts: number;
49253
+ blocked_since: string;
49254
+ delivery_date: string;
49255
+ order_id: string;
49256
+ order_ref: string;
49257
+ queue_id: string;
49258
+ reason: string;
49259
+ reason_code: string;
49260
+ }[];
49261
+ };
49262
+ logistics_blocked_overview: {
49263
+ Args: never;
49264
+ Returns: import("../integrations/supabase/types").Json;
49265
+ };
48719
49266
  logistics_buffer_criteria: {
48720
49267
  Args: {
48721
49268
  p_settings: import("../integrations/supabase/types").Json;
@@ -48730,6 +49277,39 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
48730
49277
  };
48731
49278
  Returns: import("../integrations/supabase/types").Json;
48732
49279
  };
49280
+ logistics_buffer_detach_late_orders: {
49281
+ Args: {
49282
+ p_buffer?: string;
49283
+ };
49284
+ Returns: import("../integrations/supabase/types").Json;
49285
+ };
49286
+ logistics_buffer_frozen_order: {
49287
+ Args: {
49288
+ p_order_id: string;
49289
+ };
49290
+ Returns: boolean;
49291
+ };
49292
+ logistics_buffer_handled: {
49293
+ Args: {
49294
+ p_buffer: string;
49295
+ };
49296
+ Returns: boolean;
49297
+ };
49298
+ logistics_buffer_notify: {
49299
+ Args: {
49300
+ p_event_type: string;
49301
+ p_idempotency_key: string;
49302
+ p_order_ref: string;
49303
+ p_payload: import("../integrations/supabase/types").Json;
49304
+ };
49305
+ Returns: string;
49306
+ };
49307
+ logistics_buffer_open_key: {
49308
+ Args: {
49309
+ p_base_key: string;
49310
+ };
49311
+ Returns: string;
49312
+ };
48733
49313
  logistics_buffer_simulate: {
48734
49314
  Args: {
48735
49315
  p_orders?: import("../integrations/supabase/types").Json;
@@ -48819,6 +49399,25 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
48819
49399
  Args: never;
48820
49400
  Returns: import("../integrations/supabase/types").Json;
48821
49401
  };
49402
+ logistics_cart_plan_overview: {
49403
+ Args: {
49404
+ p_days?: number;
49405
+ };
49406
+ Returns: {
49407
+ cart_total: number;
49408
+ delivery_date: string;
49409
+ order_ref: string;
49410
+ plan_ready: boolean;
49411
+ reason: string;
49412
+ released: boolean;
49413
+ }[];
49414
+ };
49415
+ logistics_cart_plan_status: {
49416
+ Args: {
49417
+ p_ref: string;
49418
+ };
49419
+ Returns: import("../integrations/supabase/types").Json;
49420
+ };
48822
49421
  logistics_cart_seq: {
48823
49422
  Args: {
48824
49423
  p_order_uuid?: string;
@@ -49318,6 +49917,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49318
49917
  };
49319
49918
  Returns: string;
49320
49919
  };
49920
+ logistics_floriday_order_approved: {
49921
+ Args: {
49922
+ _order_ref: string;
49923
+ };
49924
+ Returns: boolean;
49925
+ };
49321
49926
  logistics_floriday_prune_pushes: {
49322
49927
  Args: {
49323
49928
  _days?: number;
@@ -49332,6 +49937,10 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49332
49937
  };
49333
49938
  Returns: string;
49334
49939
  };
49940
+ logistics_floriday_status_updates_enabled: {
49941
+ Args: never;
49942
+ Returns: boolean;
49943
+ };
49335
49944
  logistics_fulfill_barcode_requests: {
49336
49945
  Args: {
49337
49946
  p_limit?: number;
@@ -49352,6 +49961,16 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49352
49961
  };
49353
49962
  Returns: boolean;
49354
49963
  };
49964
+ logistics_layout_method_status: {
49965
+ Args: never;
49966
+ Returns: import("../integrations/supabase/types").Json;
49967
+ };
49968
+ logistics_link_order_items: {
49969
+ Args: {
49970
+ p_order?: string;
49971
+ };
49972
+ Returns: import("../integrations/supabase/types").Json;
49973
+ };
49355
49974
  logistics_live_carriers: {
49356
49975
  Args: {
49357
49976
  p_order_ref: string;
@@ -49378,6 +49997,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49378
49997
  };
49379
49998
  Returns: string;
49380
49999
  };
50000
+ logistics_normalize_product_label: {
50001
+ Args: {
50002
+ p_label: string;
50003
+ };
50004
+ Returns: string;
50005
+ };
49381
50006
  logistics_not_past: {
49382
50007
  Args: {
49383
50008
  p_ts: string;
@@ -49566,6 +50191,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49566
50191
  Args: never;
49567
50192
  Returns: number;
49568
50193
  };
50194
+ logistics_plan_retry: {
50195
+ Args: {
50196
+ p_order_ids: string[];
50197
+ };
50198
+ Returns: number;
50199
+ };
49569
50200
  logistics_plan_setting: {
49570
50201
  Args: {
49571
50202
  p_default: number;
@@ -49619,6 +50250,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49619
50250
  };
49620
50251
  Returns: import("../integrations/supabase/types").Json;
49621
50252
  };
50253
+ logistics_replan_all: {
50254
+ Args: {
50255
+ p_reason?: string;
50256
+ };
50257
+ Returns: import("../integrations/supabase/types").Json;
50258
+ };
49622
50259
  logistics_report_delay: {
49623
50260
  Args: {
49624
50261
  p_expected_date?: string;
@@ -49672,6 +50309,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49672
50309
  };
49673
50310
  Returns: import("../integrations/supabase/types").Json;
49674
50311
  };
50312
+ logistics_resolve_product_id: {
50313
+ Args: {
50314
+ p_label: string;
50315
+ };
50316
+ Returns: string;
50317
+ };
49675
50318
  logistics_resolve_settings: {
49676
50319
  Args: {
49677
50320
  p_config_id: string;
@@ -49801,6 +50444,10 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49801
50444
  };
49802
50445
  Returns: number;
49803
50446
  };
50447
+ logistics_tick_ping: {
50448
+ Args: never;
50449
+ Returns: string;
50450
+ };
49804
50451
  logistics_upsert_task: {
49805
50452
  Args: {
49806
50453
  p_buffer_ref: string;
@@ -49944,6 +50591,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49944
50591
  };
49945
50592
  Returns: import("../integrations/supabase/types").Json;
49946
50593
  };
50594
+ order_heeft_bevestigde_karren: {
50595
+ Args: {
50596
+ p_order_id: string;
50597
+ };
50598
+ Returns: boolean;
50599
+ };
49947
50600
  order_number_prefix: {
49948
50601
  Args: {
49949
50602
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -49979,6 +50632,10 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49979
50632
  online: boolean;
49980
50633
  }[];
49981
50634
  };
50635
+ pick_apply_buffer_events: {
50636
+ Args: never;
50637
+ Returns: import("../integrations/supabase/types").Json;
50638
+ };
49982
50639
  pick_available_pick_days: {
49983
50640
  Args: {
49984
50641
  _max_days?: number;
@@ -49988,6 +50645,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
49988
50645
  pick_day: string;
49989
50646
  }[];
49990
50647
  };
50648
+ pick_buffer_order_ids: {
50649
+ Args: {
50650
+ _order_id: string;
50651
+ };
50652
+ Returns: string[];
50653
+ };
49991
50654
  pick_cart_breakdown: {
49992
50655
  Args: {
49993
50656
  _order_id: string;
@@ -50047,6 +50710,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
50047
50710
  pick_claim_next_document: {
50048
50711
  Args: {
50049
50712
  _country_code: string;
50713
+ _pick_day?: string;
50050
50714
  _screen_id: string;
50051
50715
  _session_id: string;
50052
50716
  _station_id: string;
@@ -50335,6 +50999,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
50335
50999
  omschrijving: string;
50336
51000
  }[];
50337
51001
  };
51002
+ pick_queue_cart_plan: {
51003
+ Args: {
51004
+ _queue_item_id: string;
51005
+ };
51006
+ Returns: import("../integrations/supabase/types").Json;
51007
+ };
50338
51008
  pick_reference_data_status: {
50339
51009
  Args: never;
50340
51010
  Returns: import("../integrations/supabase/types").Json;
@@ -50349,6 +51019,10 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
50349
51019
  };
50350
51020
  Returns: undefined;
50351
51021
  };
51022
+ pick_report_missing_cart_plan: {
51023
+ Args: never;
51024
+ Returns: import("../integrations/supabase/types").Json;
51025
+ };
50352
51026
  pick_reprint_cart: {
50353
51027
  Args: {
50354
51028
  _cart_id: string;
@@ -50889,6 +51563,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
50889
51563
  };
50890
51564
  Returns: boolean;
50891
51565
  };
51566
+ release_job_lock: {
51567
+ Args: {
51568
+ _key: string;
51569
+ };
51570
+ Returns: undefined;
51571
+ };
50892
51572
  release_local_pdf_job: {
50893
51573
  Args: {
50894
51574
  _job_id: string;
@@ -51078,6 +51758,16 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
51078
51758
  };
51079
51759
  Returns: import("../integrations/supabase/types").Json;
51080
51760
  };
51761
+ scan_log_code: {
51762
+ Args: {
51763
+ p_code: string;
51764
+ p_latency_ms?: number;
51765
+ p_message?: string;
51766
+ p_result: string;
51767
+ p_scanner_key?: string;
51768
+ };
51769
+ Returns: string;
51770
+ };
51081
51771
  scan_open_pakbonnen: {
51082
51772
  Args: {
51083
51773
  p_dagen?: number;
@@ -51567,6 +52257,14 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
51567
52257
  row_count: number;
51568
52258
  }[];
51569
52259
  };
52260
+ try_acquire_job_lock: {
52261
+ Args: {
52262
+ _key: string;
52263
+ _owner?: string;
52264
+ _seconds?: number;
52265
+ };
52266
+ Returns: boolean;
52267
+ };
51570
52268
  try_debtor_lock: {
51571
52269
  Args: {
51572
52270
  _group_key: string;
@@ -53871,6 +54569,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53871
54569
  created_at: string;
53872
54570
  currency: string;
53873
54571
  distribute_over: string | null;
54572
+ external_id: string | null;
54573
+ external_synced_at: string | null;
53874
54574
  group_type: string;
53875
54575
  handling_fee: number | null;
53876
54576
  id: string;
@@ -53883,6 +54583,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53883
54583
  rounding: string;
53884
54584
  rounding_step: number;
53885
54585
  sort_order: number;
54586
+ source: string;
53886
54587
  unit: string;
53887
54588
  updated_at: string;
53888
54589
  };
@@ -53893,6 +54594,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53893
54594
  created_at?: string;
53894
54595
  currency?: string;
53895
54596
  distribute_over?: string | null;
54597
+ external_id?: string | null;
54598
+ external_synced_at?: string | null;
53896
54599
  group_type?: string;
53897
54600
  handling_fee?: number | null;
53898
54601
  id?: string;
@@ -53905,6 +54608,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53905
54608
  rounding?: string;
53906
54609
  rounding_step?: number;
53907
54610
  sort_order?: number;
54611
+ source?: string;
53908
54612
  unit?: string;
53909
54613
  updated_at?: string;
53910
54614
  };
@@ -53915,6 +54619,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53915
54619
  created_at?: string;
53916
54620
  currency?: string;
53917
54621
  distribute_over?: string | null;
54622
+ external_id?: string | null;
54623
+ external_synced_at?: string | null;
53918
54624
  group_type?: string;
53919
54625
  handling_fee?: number | null;
53920
54626
  id?: string;
@@ -53927,6 +54633,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
53927
54633
  rounding?: string;
53928
54634
  rounding_step?: number;
53929
54635
  sort_order?: number;
54636
+ source?: string;
53930
54637
  unit?: string;
53931
54638
  updated_at?: string;
53932
54639
  };
@@ -60790,6 +61497,30 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
60790
61497
  referencedColumns: ["id"];
60791
61498
  }];
60792
61499
  };
61500
+ job_locks: {
61501
+ Row: {
61502
+ created_at: string;
61503
+ lock_key: string;
61504
+ locked_until: string;
61505
+ owner: string | null;
61506
+ updated_at: string;
61507
+ };
61508
+ Insert: {
61509
+ created_at?: string;
61510
+ lock_key: string;
61511
+ locked_until: string;
61512
+ owner?: string | null;
61513
+ updated_at?: string;
61514
+ };
61515
+ Update: {
61516
+ created_at?: string;
61517
+ lock_key?: string;
61518
+ locked_until?: string;
61519
+ owner?: string | null;
61520
+ updated_at?: string;
61521
+ };
61522
+ Relationships: [];
61523
+ };
60793
61524
  layout_logos: {
60794
61525
  Row: {
60795
61526
  bestand_url: string;
@@ -61759,6 +62490,27 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
61759
62490
  };
61760
62491
  Relationships: [];
61761
62492
  };
62493
+ logistics_floriday_push_refusals: {
62494
+ Row: {
62495
+ created_at: string;
62496
+ id: string;
62497
+ order_ref: string;
62498
+ reason: string;
62499
+ };
62500
+ Insert: {
62501
+ created_at?: string;
62502
+ id?: string;
62503
+ order_ref: string;
62504
+ reason: string;
62505
+ };
62506
+ Update: {
62507
+ created_at?: string;
62508
+ id?: string;
62509
+ order_ref?: string;
62510
+ reason?: string;
62511
+ };
62512
+ Relationships: [];
62513
+ };
61762
62514
  logistics_floriday_pushes: {
61763
62515
  Row: {
61764
62516
  attempts: number;
@@ -61952,6 +62704,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
61952
62704
  next_attempt_at: string;
61953
62705
  order_id: string;
61954
62706
  reason: string;
62707
+ reason_code: string | null;
61955
62708
  status: string;
61956
62709
  updated_at: string;
61957
62710
  };
@@ -61964,6 +62717,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
61964
62717
  next_attempt_at?: string;
61965
62718
  order_id: string;
61966
62719
  reason?: string;
62720
+ reason_code?: string | null;
61967
62721
  status?: string;
61968
62722
  updated_at?: string;
61969
62723
  };
@@ -61976,6 +62730,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
61976
62730
  next_attempt_at?: string;
61977
62731
  order_id?: string;
61978
62732
  reason?: string;
62733
+ reason_code?: string | null;
61979
62734
  status?: string;
61980
62735
  updated_at?: string;
61981
62736
  };
@@ -62680,6 +63435,21 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
62680
63435
  referencedColumns: ["id"];
62681
63436
  }];
62682
63437
  };
63438
+ logistics_tick_heartbeat: {
63439
+ Row: {
63440
+ id: boolean;
63441
+ last_tick_at: string;
63442
+ };
63443
+ Insert: {
63444
+ id?: boolean;
63445
+ last_tick_at?: string;
63446
+ };
63447
+ Update: {
63448
+ id?: boolean;
63449
+ last_tick_at?: string;
63450
+ };
63451
+ Relationships: [];
63452
+ };
62683
63453
  logistics_variables: {
62684
63454
  Row: {
62685
63455
  created_at: string;
@@ -65317,6 +66087,27 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
65317
66087
  };
65318
66088
  Relationships: [];
65319
66089
  };
66090
+ pick_buffer_event_cursor: {
66091
+ Row: {
66092
+ created_at: string;
66093
+ id: boolean;
66094
+ last_event_at: string;
66095
+ updated_at: string;
66096
+ };
66097
+ Insert: {
66098
+ created_at?: string;
66099
+ id?: boolean;
66100
+ last_event_at?: string;
66101
+ updated_at?: string;
66102
+ };
66103
+ Update: {
66104
+ created_at?: string;
66105
+ id?: boolean;
66106
+ last_event_at?: string;
66107
+ updated_at?: string;
66108
+ };
66109
+ Relationships: [];
66110
+ };
65320
66111
  pick_countries: {
65321
66112
  Row: {
65322
66113
  active: boolean;
@@ -70966,6 +71757,36 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70966
71757
  referencedColumns: ["id"];
70967
71758
  }];
70968
71759
  };
71760
+ voorraad_buffer_state: {
71761
+ Row: {
71762
+ buffer_id: string;
71763
+ buffer_key: string | null;
71764
+ closed_at: string | null;
71765
+ created_at: string;
71766
+ detached_orders: import("../integrations/supabase/types").Json;
71767
+ reason: string | null;
71768
+ updated_at: string;
71769
+ };
71770
+ Insert: {
71771
+ buffer_id: string;
71772
+ buffer_key?: string | null;
71773
+ closed_at?: string | null;
71774
+ created_at?: string;
71775
+ detached_orders?: import("../integrations/supabase/types").Json;
71776
+ reason?: string | null;
71777
+ updated_at?: string;
71778
+ };
71779
+ Update: {
71780
+ buffer_id?: string;
71781
+ buffer_key?: string | null;
71782
+ closed_at?: string | null;
71783
+ created_at?: string;
71784
+ detached_orders?: import("../integrations/supabase/types").Json;
71785
+ reason?: string | null;
71786
+ updated_at?: string;
71787
+ };
71788
+ Relationships: [];
71789
+ };
70969
71790
  voorraad_custom_fields: {
70970
71791
  Row: {
70971
71792
  created_at: string;
@@ -71008,6 +71829,36 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
71008
71829
  };
71009
71830
  Relationships: [];
71010
71831
  };
71832
+ voorraad_logistics_event_log: {
71833
+ Row: {
71834
+ created_at: string;
71835
+ event_id: string;
71836
+ event_type: string;
71837
+ order_ref: string | null;
71838
+ processed_at: string;
71839
+ result: import("../integrations/supabase/types").Json;
71840
+ updated_at: string;
71841
+ };
71842
+ Insert: {
71843
+ created_at?: string;
71844
+ event_id: string;
71845
+ event_type: string;
71846
+ order_ref?: string | null;
71847
+ processed_at?: string;
71848
+ result?: import("../integrations/supabase/types").Json;
71849
+ updated_at?: string;
71850
+ };
71851
+ Update: {
71852
+ created_at?: string;
71853
+ event_id?: string;
71854
+ event_type?: string;
71855
+ order_ref?: string | null;
71856
+ processed_at?: string;
71857
+ result?: import("../integrations/supabase/types").Json;
71858
+ updated_at?: string;
71859
+ };
71860
+ Relationships: [];
71861
+ };
71011
71862
  voorraad_media_upload_failures: {
71012
71863
  Row: {
71013
71864
  action: string;
@@ -73833,6 +74684,17 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
73833
74684
  };
73834
74685
  Returns: boolean;
73835
74686
  };
74687
+ floriday_adopt_connection: {
74688
+ Args: {
74689
+ p_new: string;
74690
+ p_old: string;
74691
+ };
74692
+ Returns: import("../integrations/supabase/types").Json;
74693
+ };
74694
+ floriday_autoheal_connections: {
74695
+ Args: never;
74696
+ Returns: import("../integrations/supabase/types").Json;
74697
+ };
73836
74698
  floriday_capture_stock_snapshot: {
73837
74699
  Args: never;
73838
74700
  Returns: number;
@@ -73890,6 +74752,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
73890
74752
  };
73891
74753
  Returns: undefined;
73892
74754
  };
74755
+ floriday_relink_products: {
74756
+ Args: {
74757
+ p_connection_id?: string;
74758
+ };
74759
+ Returns: import("../integrations/supabase/types").Json;
74760
+ };
73893
74761
  floriday_requeue_dead_letters: {
73894
74762
  Args: {
73895
74763
  p_connection_id?: string;
@@ -74511,6 +75379,10 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
74511
75379
  };
74512
75380
  Returns: string;
74513
75381
  };
75382
+ logistics_active_layout_method: {
75383
+ Args: never;
75384
+ Returns: string;
75385
+ };
74514
75386
  logistics_active_pick_workdays: {
74515
75387
  Args: never;
74516
75388
  Returns: string[];
@@ -74562,6 +75434,30 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
74562
75434
  };
74563
75435
  Returns: import("../integrations/supabase/types").Json;
74564
75436
  };
75437
+ logistics_block_reason_code: {
75438
+ Args: {
75439
+ p_details?: import("../integrations/supabase/types").Json;
75440
+ p_reason: string;
75441
+ };
75442
+ Returns: string;
75443
+ };
75444
+ logistics_blocked_orders: {
75445
+ Args: never;
75446
+ Returns: {
75447
+ attempts: number;
75448
+ blocked_since: string;
75449
+ delivery_date: string;
75450
+ order_id: string;
75451
+ order_ref: string;
75452
+ queue_id: string;
75453
+ reason: string;
75454
+ reason_code: string;
75455
+ }[];
75456
+ };
75457
+ logistics_blocked_overview: {
75458
+ Args: never;
75459
+ Returns: import("../integrations/supabase/types").Json;
75460
+ };
74565
75461
  logistics_buffer_criteria: {
74566
75462
  Args: {
74567
75463
  p_settings: import("../integrations/supabase/types").Json;
@@ -74576,6 +75472,39 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
74576
75472
  };
74577
75473
  Returns: import("../integrations/supabase/types").Json;
74578
75474
  };
75475
+ logistics_buffer_detach_late_orders: {
75476
+ Args: {
75477
+ p_buffer?: string;
75478
+ };
75479
+ Returns: import("../integrations/supabase/types").Json;
75480
+ };
75481
+ logistics_buffer_frozen_order: {
75482
+ Args: {
75483
+ p_order_id: string;
75484
+ };
75485
+ Returns: boolean;
75486
+ };
75487
+ logistics_buffer_handled: {
75488
+ Args: {
75489
+ p_buffer: string;
75490
+ };
75491
+ Returns: boolean;
75492
+ };
75493
+ logistics_buffer_notify: {
75494
+ Args: {
75495
+ p_event_type: string;
75496
+ p_idempotency_key: string;
75497
+ p_order_ref: string;
75498
+ p_payload: import("../integrations/supabase/types").Json;
75499
+ };
75500
+ Returns: string;
75501
+ };
75502
+ logistics_buffer_open_key: {
75503
+ Args: {
75504
+ p_base_key: string;
75505
+ };
75506
+ Returns: string;
75507
+ };
74579
75508
  logistics_buffer_simulate: {
74580
75509
  Args: {
74581
75510
  p_orders?: import("../integrations/supabase/types").Json;
@@ -74665,6 +75594,25 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
74665
75594
  Args: never;
74666
75595
  Returns: import("../integrations/supabase/types").Json;
74667
75596
  };
75597
+ logistics_cart_plan_overview: {
75598
+ Args: {
75599
+ p_days?: number;
75600
+ };
75601
+ Returns: {
75602
+ cart_total: number;
75603
+ delivery_date: string;
75604
+ order_ref: string;
75605
+ plan_ready: boolean;
75606
+ reason: string;
75607
+ released: boolean;
75608
+ }[];
75609
+ };
75610
+ logistics_cart_plan_status: {
75611
+ Args: {
75612
+ p_ref: string;
75613
+ };
75614
+ Returns: import("../integrations/supabase/types").Json;
75615
+ };
74668
75616
  logistics_cart_seq: {
74669
75617
  Args: {
74670
75618
  p_order_uuid?: string;
@@ -75164,6 +76112,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75164
76112
  };
75165
76113
  Returns: string;
75166
76114
  };
76115
+ logistics_floriday_order_approved: {
76116
+ Args: {
76117
+ _order_ref: string;
76118
+ };
76119
+ Returns: boolean;
76120
+ };
75167
76121
  logistics_floriday_prune_pushes: {
75168
76122
  Args: {
75169
76123
  _days?: number;
@@ -75178,6 +76132,10 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75178
76132
  };
75179
76133
  Returns: string;
75180
76134
  };
76135
+ logistics_floriday_status_updates_enabled: {
76136
+ Args: never;
76137
+ Returns: boolean;
76138
+ };
75181
76139
  logistics_fulfill_barcode_requests: {
75182
76140
  Args: {
75183
76141
  p_limit?: number;
@@ -75198,6 +76156,16 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75198
76156
  };
75199
76157
  Returns: boolean;
75200
76158
  };
76159
+ logistics_layout_method_status: {
76160
+ Args: never;
76161
+ Returns: import("../integrations/supabase/types").Json;
76162
+ };
76163
+ logistics_link_order_items: {
76164
+ Args: {
76165
+ p_order?: string;
76166
+ };
76167
+ Returns: import("../integrations/supabase/types").Json;
76168
+ };
75201
76169
  logistics_live_carriers: {
75202
76170
  Args: {
75203
76171
  p_order_ref: string;
@@ -75224,6 +76192,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75224
76192
  };
75225
76193
  Returns: string;
75226
76194
  };
76195
+ logistics_normalize_product_label: {
76196
+ Args: {
76197
+ p_label: string;
76198
+ };
76199
+ Returns: string;
76200
+ };
75227
76201
  logistics_not_past: {
75228
76202
  Args: {
75229
76203
  p_ts: string;
@@ -75412,6 +76386,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75412
76386
  Args: never;
75413
76387
  Returns: number;
75414
76388
  };
76389
+ logistics_plan_retry: {
76390
+ Args: {
76391
+ p_order_ids: string[];
76392
+ };
76393
+ Returns: number;
76394
+ };
75415
76395
  logistics_plan_setting: {
75416
76396
  Args: {
75417
76397
  p_default: number;
@@ -75465,6 +76445,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75465
76445
  };
75466
76446
  Returns: import("../integrations/supabase/types").Json;
75467
76447
  };
76448
+ logistics_replan_all: {
76449
+ Args: {
76450
+ p_reason?: string;
76451
+ };
76452
+ Returns: import("../integrations/supabase/types").Json;
76453
+ };
75468
76454
  logistics_report_delay: {
75469
76455
  Args: {
75470
76456
  p_expected_date?: string;
@@ -75518,6 +76504,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75518
76504
  };
75519
76505
  Returns: import("../integrations/supabase/types").Json;
75520
76506
  };
76507
+ logistics_resolve_product_id: {
76508
+ Args: {
76509
+ p_label: string;
76510
+ };
76511
+ Returns: string;
76512
+ };
75521
76513
  logistics_resolve_settings: {
75522
76514
  Args: {
75523
76515
  p_config_id: string;
@@ -75647,6 +76639,10 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75647
76639
  };
75648
76640
  Returns: number;
75649
76641
  };
76642
+ logistics_tick_ping: {
76643
+ Args: never;
76644
+ Returns: string;
76645
+ };
75650
76646
  logistics_upsert_task: {
75651
76647
  Args: {
75652
76648
  p_buffer_ref: string;
@@ -75790,6 +76786,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75790
76786
  };
75791
76787
  Returns: import("../integrations/supabase/types").Json;
75792
76788
  };
76789
+ order_heeft_bevestigde_karren: {
76790
+ Args: {
76791
+ p_order_id: string;
76792
+ };
76793
+ Returns: boolean;
76794
+ };
75793
76795
  order_number_prefix: {
75794
76796
  Args: {
75795
76797
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -75825,6 +76827,10 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75825
76827
  online: boolean;
75826
76828
  }[];
75827
76829
  };
76830
+ pick_apply_buffer_events: {
76831
+ Args: never;
76832
+ Returns: import("../integrations/supabase/types").Json;
76833
+ };
75828
76834
  pick_available_pick_days: {
75829
76835
  Args: {
75830
76836
  _max_days?: number;
@@ -75834,6 +76840,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75834
76840
  pick_day: string;
75835
76841
  }[];
75836
76842
  };
76843
+ pick_buffer_order_ids: {
76844
+ Args: {
76845
+ _order_id: string;
76846
+ };
76847
+ Returns: string[];
76848
+ };
75837
76849
  pick_cart_breakdown: {
75838
76850
  Args: {
75839
76851
  _order_id: string;
@@ -75893,6 +76905,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
75893
76905
  pick_claim_next_document: {
75894
76906
  Args: {
75895
76907
  _country_code: string;
76908
+ _pick_day?: string;
75896
76909
  _screen_id: string;
75897
76910
  _session_id: string;
75898
76911
  _station_id: string;
@@ -76181,6 +77194,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
76181
77194
  omschrijving: string;
76182
77195
  }[];
76183
77196
  };
77197
+ pick_queue_cart_plan: {
77198
+ Args: {
77199
+ _queue_item_id: string;
77200
+ };
77201
+ Returns: import("../integrations/supabase/types").Json;
77202
+ };
76184
77203
  pick_reference_data_status: {
76185
77204
  Args: never;
76186
77205
  Returns: import("../integrations/supabase/types").Json;
@@ -76195,6 +77214,10 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
76195
77214
  };
76196
77215
  Returns: undefined;
76197
77216
  };
77217
+ pick_report_missing_cart_plan: {
77218
+ Args: never;
77219
+ Returns: import("../integrations/supabase/types").Json;
77220
+ };
76198
77221
  pick_reprint_cart: {
76199
77222
  Args: {
76200
77223
  _cart_id: string;
@@ -76735,6 +77758,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
76735
77758
  };
76736
77759
  Returns: boolean;
76737
77760
  };
77761
+ release_job_lock: {
77762
+ Args: {
77763
+ _key: string;
77764
+ };
77765
+ Returns: undefined;
77766
+ };
76738
77767
  release_local_pdf_job: {
76739
77768
  Args: {
76740
77769
  _job_id: string;
@@ -76924,6 +77953,16 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
76924
77953
  };
76925
77954
  Returns: import("../integrations/supabase/types").Json;
76926
77955
  };
77956
+ scan_log_code: {
77957
+ Args: {
77958
+ p_code: string;
77959
+ p_latency_ms?: number;
77960
+ p_message?: string;
77961
+ p_result: string;
77962
+ p_scanner_key?: string;
77963
+ };
77964
+ Returns: string;
77965
+ };
76927
77966
  scan_open_pakbonnen: {
76928
77967
  Args: {
76929
77968
  p_dagen?: number;
@@ -77413,6 +78452,14 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
77413
78452
  row_count: number;
77414
78453
  }[];
77415
78454
  };
78455
+ try_acquire_job_lock: {
78456
+ Args: {
78457
+ _key: string;
78458
+ _owner?: string;
78459
+ _seconds?: number;
78460
+ };
78461
+ Returns: boolean;
78462
+ };
77416
78463
  try_debtor_lock: {
77417
78464
  Args: {
77418
78465
  _group_key: string;
@@ -79717,6 +80764,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
79717
80764
  created_at: string;
79718
80765
  currency: string;
79719
80766
  distribute_over: string | null;
80767
+ external_id: string | null;
80768
+ external_synced_at: string | null;
79720
80769
  group_type: string;
79721
80770
  handling_fee: number | null;
79722
80771
  id: string;
@@ -79729,6 +80778,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
79729
80778
  rounding: string;
79730
80779
  rounding_step: number;
79731
80780
  sort_order: number;
80781
+ source: string;
79732
80782
  unit: string;
79733
80783
  updated_at: string;
79734
80784
  };
@@ -79739,6 +80789,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
79739
80789
  created_at?: string;
79740
80790
  currency?: string;
79741
80791
  distribute_over?: string | null;
80792
+ external_id?: string | null;
80793
+ external_synced_at?: string | null;
79742
80794
  group_type?: string;
79743
80795
  handling_fee?: number | null;
79744
80796
  id?: string;
@@ -79751,6 +80803,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
79751
80803
  rounding?: string;
79752
80804
  rounding_step?: number;
79753
80805
  sort_order?: number;
80806
+ source?: string;
79754
80807
  unit?: string;
79755
80808
  updated_at?: string;
79756
80809
  };
@@ -79761,6 +80814,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
79761
80814
  created_at?: string;
79762
80815
  currency?: string;
79763
80816
  distribute_over?: string | null;
80817
+ external_id?: string | null;
80818
+ external_synced_at?: string | null;
79764
80819
  group_type?: string;
79765
80820
  handling_fee?: number | null;
79766
80821
  id?: string;
@@ -79773,6 +80828,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
79773
80828
  rounding?: string;
79774
80829
  rounding_step?: number;
79775
80830
  sort_order?: number;
80831
+ source?: string;
79776
80832
  unit?: string;
79777
80833
  updated_at?: string;
79778
80834
  };
@@ -86636,6 +87692,30 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
86636
87692
  referencedColumns: ["id"];
86637
87693
  }];
86638
87694
  };
87695
+ job_locks: {
87696
+ Row: {
87697
+ created_at: string;
87698
+ lock_key: string;
87699
+ locked_until: string;
87700
+ owner: string | null;
87701
+ updated_at: string;
87702
+ };
87703
+ Insert: {
87704
+ created_at?: string;
87705
+ lock_key: string;
87706
+ locked_until: string;
87707
+ owner?: string | null;
87708
+ updated_at?: string;
87709
+ };
87710
+ Update: {
87711
+ created_at?: string;
87712
+ lock_key?: string;
87713
+ locked_until?: string;
87714
+ owner?: string | null;
87715
+ updated_at?: string;
87716
+ };
87717
+ Relationships: [];
87718
+ };
86639
87719
  layout_logos: {
86640
87720
  Row: {
86641
87721
  bestand_url: string;
@@ -87605,6 +88685,27 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
87605
88685
  };
87606
88686
  Relationships: [];
87607
88687
  };
88688
+ logistics_floriday_push_refusals: {
88689
+ Row: {
88690
+ created_at: string;
88691
+ id: string;
88692
+ order_ref: string;
88693
+ reason: string;
88694
+ };
88695
+ Insert: {
88696
+ created_at?: string;
88697
+ id?: string;
88698
+ order_ref: string;
88699
+ reason: string;
88700
+ };
88701
+ Update: {
88702
+ created_at?: string;
88703
+ id?: string;
88704
+ order_ref?: string;
88705
+ reason?: string;
88706
+ };
88707
+ Relationships: [];
88708
+ };
87608
88709
  logistics_floriday_pushes: {
87609
88710
  Row: {
87610
88711
  attempts: number;
@@ -87798,6 +88899,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
87798
88899
  next_attempt_at: string;
87799
88900
  order_id: string;
87800
88901
  reason: string;
88902
+ reason_code: string | null;
87801
88903
  status: string;
87802
88904
  updated_at: string;
87803
88905
  };
@@ -87810,6 +88912,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
87810
88912
  next_attempt_at?: string;
87811
88913
  order_id: string;
87812
88914
  reason?: string;
88915
+ reason_code?: string | null;
87813
88916
  status?: string;
87814
88917
  updated_at?: string;
87815
88918
  };
@@ -87822,6 +88925,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
87822
88925
  next_attempt_at?: string;
87823
88926
  order_id?: string;
87824
88927
  reason?: string;
88928
+ reason_code?: string | null;
87825
88929
  status?: string;
87826
88930
  updated_at?: string;
87827
88931
  };
@@ -88526,6 +89630,21 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
88526
89630
  referencedColumns: ["id"];
88527
89631
  }];
88528
89632
  };
89633
+ logistics_tick_heartbeat: {
89634
+ Row: {
89635
+ id: boolean;
89636
+ last_tick_at: string;
89637
+ };
89638
+ Insert: {
89639
+ id?: boolean;
89640
+ last_tick_at?: string;
89641
+ };
89642
+ Update: {
89643
+ id?: boolean;
89644
+ last_tick_at?: string;
89645
+ };
89646
+ Relationships: [];
89647
+ };
88529
89648
  logistics_variables: {
88530
89649
  Row: {
88531
89650
  created_at: string;
@@ -91163,6 +92282,27 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
91163
92282
  };
91164
92283
  Relationships: [];
91165
92284
  };
92285
+ pick_buffer_event_cursor: {
92286
+ Row: {
92287
+ created_at: string;
92288
+ id: boolean;
92289
+ last_event_at: string;
92290
+ updated_at: string;
92291
+ };
92292
+ Insert: {
92293
+ created_at?: string;
92294
+ id?: boolean;
92295
+ last_event_at?: string;
92296
+ updated_at?: string;
92297
+ };
92298
+ Update: {
92299
+ created_at?: string;
92300
+ id?: boolean;
92301
+ last_event_at?: string;
92302
+ updated_at?: string;
92303
+ };
92304
+ Relationships: [];
92305
+ };
91166
92306
  pick_countries: {
91167
92307
  Row: {
91168
92308
  active: boolean;
@@ -96812,6 +97952,36 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
96812
97952
  referencedColumns: ["id"];
96813
97953
  }];
96814
97954
  };
97955
+ voorraad_buffer_state: {
97956
+ Row: {
97957
+ buffer_id: string;
97958
+ buffer_key: string | null;
97959
+ closed_at: string | null;
97960
+ created_at: string;
97961
+ detached_orders: import("../integrations/supabase/types").Json;
97962
+ reason: string | null;
97963
+ updated_at: string;
97964
+ };
97965
+ Insert: {
97966
+ buffer_id: string;
97967
+ buffer_key?: string | null;
97968
+ closed_at?: string | null;
97969
+ created_at?: string;
97970
+ detached_orders?: import("../integrations/supabase/types").Json;
97971
+ reason?: string | null;
97972
+ updated_at?: string;
97973
+ };
97974
+ Update: {
97975
+ buffer_id?: string;
97976
+ buffer_key?: string | null;
97977
+ closed_at?: string | null;
97978
+ created_at?: string;
97979
+ detached_orders?: import("../integrations/supabase/types").Json;
97980
+ reason?: string | null;
97981
+ updated_at?: string;
97982
+ };
97983
+ Relationships: [];
97984
+ };
96815
97985
  voorraad_custom_fields: {
96816
97986
  Row: {
96817
97987
  created_at: string;
@@ -96854,6 +98024,36 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
96854
98024
  };
96855
98025
  Relationships: [];
96856
98026
  };
98027
+ voorraad_logistics_event_log: {
98028
+ Row: {
98029
+ created_at: string;
98030
+ event_id: string;
98031
+ event_type: string;
98032
+ order_ref: string | null;
98033
+ processed_at: string;
98034
+ result: import("../integrations/supabase/types").Json;
98035
+ updated_at: string;
98036
+ };
98037
+ Insert: {
98038
+ created_at?: string;
98039
+ event_id: string;
98040
+ event_type: string;
98041
+ order_ref?: string | null;
98042
+ processed_at?: string;
98043
+ result?: import("../integrations/supabase/types").Json;
98044
+ updated_at?: string;
98045
+ };
98046
+ Update: {
98047
+ created_at?: string;
98048
+ event_id?: string;
98049
+ event_type?: string;
98050
+ order_ref?: string | null;
98051
+ processed_at?: string;
98052
+ result?: import("../integrations/supabase/types").Json;
98053
+ updated_at?: string;
98054
+ };
98055
+ Relationships: [];
98056
+ };
96857
98057
  voorraad_media_upload_failures: {
96858
98058
  Row: {
96859
98059
  action: string;
@@ -99679,6 +100879,17 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99679
100879
  };
99680
100880
  Returns: boolean;
99681
100881
  };
100882
+ floriday_adopt_connection: {
100883
+ Args: {
100884
+ p_new: string;
100885
+ p_old: string;
100886
+ };
100887
+ Returns: import("../integrations/supabase/types").Json;
100888
+ };
100889
+ floriday_autoheal_connections: {
100890
+ Args: never;
100891
+ Returns: import("../integrations/supabase/types").Json;
100892
+ };
99682
100893
  floriday_capture_stock_snapshot: {
99683
100894
  Args: never;
99684
100895
  Returns: number;
@@ -99736,6 +100947,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99736
100947
  };
99737
100948
  Returns: undefined;
99738
100949
  };
100950
+ floriday_relink_products: {
100951
+ Args: {
100952
+ p_connection_id?: string;
100953
+ };
100954
+ Returns: import("../integrations/supabase/types").Json;
100955
+ };
99739
100956
  floriday_requeue_dead_letters: {
99740
100957
  Args: {
99741
100958
  p_connection_id?: string;
@@ -100357,6 +101574,10 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100357
101574
  };
100358
101575
  Returns: string;
100359
101576
  };
101577
+ logistics_active_layout_method: {
101578
+ Args: never;
101579
+ Returns: string;
101580
+ };
100360
101581
  logistics_active_pick_workdays: {
100361
101582
  Args: never;
100362
101583
  Returns: string[];
@@ -100408,6 +101629,30 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100408
101629
  };
100409
101630
  Returns: import("../integrations/supabase/types").Json;
100410
101631
  };
101632
+ logistics_block_reason_code: {
101633
+ Args: {
101634
+ p_details?: import("../integrations/supabase/types").Json;
101635
+ p_reason: string;
101636
+ };
101637
+ Returns: string;
101638
+ };
101639
+ logistics_blocked_orders: {
101640
+ Args: never;
101641
+ Returns: {
101642
+ attempts: number;
101643
+ blocked_since: string;
101644
+ delivery_date: string;
101645
+ order_id: string;
101646
+ order_ref: string;
101647
+ queue_id: string;
101648
+ reason: string;
101649
+ reason_code: string;
101650
+ }[];
101651
+ };
101652
+ logistics_blocked_overview: {
101653
+ Args: never;
101654
+ Returns: import("../integrations/supabase/types").Json;
101655
+ };
100411
101656
  logistics_buffer_criteria: {
100412
101657
  Args: {
100413
101658
  p_settings: import("../integrations/supabase/types").Json;
@@ -100422,6 +101667,39 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100422
101667
  };
100423
101668
  Returns: import("../integrations/supabase/types").Json;
100424
101669
  };
101670
+ logistics_buffer_detach_late_orders: {
101671
+ Args: {
101672
+ p_buffer?: string;
101673
+ };
101674
+ Returns: import("../integrations/supabase/types").Json;
101675
+ };
101676
+ logistics_buffer_frozen_order: {
101677
+ Args: {
101678
+ p_order_id: string;
101679
+ };
101680
+ Returns: boolean;
101681
+ };
101682
+ logistics_buffer_handled: {
101683
+ Args: {
101684
+ p_buffer: string;
101685
+ };
101686
+ Returns: boolean;
101687
+ };
101688
+ logistics_buffer_notify: {
101689
+ Args: {
101690
+ p_event_type: string;
101691
+ p_idempotency_key: string;
101692
+ p_order_ref: string;
101693
+ p_payload: import("../integrations/supabase/types").Json;
101694
+ };
101695
+ Returns: string;
101696
+ };
101697
+ logistics_buffer_open_key: {
101698
+ Args: {
101699
+ p_base_key: string;
101700
+ };
101701
+ Returns: string;
101702
+ };
100425
101703
  logistics_buffer_simulate: {
100426
101704
  Args: {
100427
101705
  p_orders?: import("../integrations/supabase/types").Json;
@@ -100511,6 +101789,25 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100511
101789
  Args: never;
100512
101790
  Returns: import("../integrations/supabase/types").Json;
100513
101791
  };
101792
+ logistics_cart_plan_overview: {
101793
+ Args: {
101794
+ p_days?: number;
101795
+ };
101796
+ Returns: {
101797
+ cart_total: number;
101798
+ delivery_date: string;
101799
+ order_ref: string;
101800
+ plan_ready: boolean;
101801
+ reason: string;
101802
+ released: boolean;
101803
+ }[];
101804
+ };
101805
+ logistics_cart_plan_status: {
101806
+ Args: {
101807
+ p_ref: string;
101808
+ };
101809
+ Returns: import("../integrations/supabase/types").Json;
101810
+ };
100514
101811
  logistics_cart_seq: {
100515
101812
  Args: {
100516
101813
  p_order_uuid?: string;
@@ -101010,6 +102307,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101010
102307
  };
101011
102308
  Returns: string;
101012
102309
  };
102310
+ logistics_floriday_order_approved: {
102311
+ Args: {
102312
+ _order_ref: string;
102313
+ };
102314
+ Returns: boolean;
102315
+ };
101013
102316
  logistics_floriday_prune_pushes: {
101014
102317
  Args: {
101015
102318
  _days?: number;
@@ -101024,6 +102327,10 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101024
102327
  };
101025
102328
  Returns: string;
101026
102329
  };
102330
+ logistics_floriday_status_updates_enabled: {
102331
+ Args: never;
102332
+ Returns: boolean;
102333
+ };
101027
102334
  logistics_fulfill_barcode_requests: {
101028
102335
  Args: {
101029
102336
  p_limit?: number;
@@ -101044,6 +102351,16 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101044
102351
  };
101045
102352
  Returns: boolean;
101046
102353
  };
102354
+ logistics_layout_method_status: {
102355
+ Args: never;
102356
+ Returns: import("../integrations/supabase/types").Json;
102357
+ };
102358
+ logistics_link_order_items: {
102359
+ Args: {
102360
+ p_order?: string;
102361
+ };
102362
+ Returns: import("../integrations/supabase/types").Json;
102363
+ };
101047
102364
  logistics_live_carriers: {
101048
102365
  Args: {
101049
102366
  p_order_ref: string;
@@ -101070,6 +102387,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101070
102387
  };
101071
102388
  Returns: string;
101072
102389
  };
102390
+ logistics_normalize_product_label: {
102391
+ Args: {
102392
+ p_label: string;
102393
+ };
102394
+ Returns: string;
102395
+ };
101073
102396
  logistics_not_past: {
101074
102397
  Args: {
101075
102398
  p_ts: string;
@@ -101258,6 +102581,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101258
102581
  Args: never;
101259
102582
  Returns: number;
101260
102583
  };
102584
+ logistics_plan_retry: {
102585
+ Args: {
102586
+ p_order_ids: string[];
102587
+ };
102588
+ Returns: number;
102589
+ };
101261
102590
  logistics_plan_setting: {
101262
102591
  Args: {
101263
102592
  p_default: number;
@@ -101311,6 +102640,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101311
102640
  };
101312
102641
  Returns: import("../integrations/supabase/types").Json;
101313
102642
  };
102643
+ logistics_replan_all: {
102644
+ Args: {
102645
+ p_reason?: string;
102646
+ };
102647
+ Returns: import("../integrations/supabase/types").Json;
102648
+ };
101314
102649
  logistics_report_delay: {
101315
102650
  Args: {
101316
102651
  p_expected_date?: string;
@@ -101364,6 +102699,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101364
102699
  };
101365
102700
  Returns: import("../integrations/supabase/types").Json;
101366
102701
  };
102702
+ logistics_resolve_product_id: {
102703
+ Args: {
102704
+ p_label: string;
102705
+ };
102706
+ Returns: string;
102707
+ };
101367
102708
  logistics_resolve_settings: {
101368
102709
  Args: {
101369
102710
  p_config_id: string;
@@ -101493,6 +102834,10 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101493
102834
  };
101494
102835
  Returns: number;
101495
102836
  };
102837
+ logistics_tick_ping: {
102838
+ Args: never;
102839
+ Returns: string;
102840
+ };
101496
102841
  logistics_upsert_task: {
101497
102842
  Args: {
101498
102843
  p_buffer_ref: string;
@@ -101636,6 +102981,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101636
102981
  };
101637
102982
  Returns: import("../integrations/supabase/types").Json;
101638
102983
  };
102984
+ order_heeft_bevestigde_karren: {
102985
+ Args: {
102986
+ p_order_id: string;
102987
+ };
102988
+ Returns: boolean;
102989
+ };
101639
102990
  order_number_prefix: {
101640
102991
  Args: {
101641
102992
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -101671,6 +103022,10 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101671
103022
  online: boolean;
101672
103023
  }[];
101673
103024
  };
103025
+ pick_apply_buffer_events: {
103026
+ Args: never;
103027
+ Returns: import("../integrations/supabase/types").Json;
103028
+ };
101674
103029
  pick_available_pick_days: {
101675
103030
  Args: {
101676
103031
  _max_days?: number;
@@ -101680,6 +103035,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101680
103035
  pick_day: string;
101681
103036
  }[];
101682
103037
  };
103038
+ pick_buffer_order_ids: {
103039
+ Args: {
103040
+ _order_id: string;
103041
+ };
103042
+ Returns: string[];
103043
+ };
101683
103044
  pick_cart_breakdown: {
101684
103045
  Args: {
101685
103046
  _order_id: string;
@@ -101739,6 +103100,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
101739
103100
  pick_claim_next_document: {
101740
103101
  Args: {
101741
103102
  _country_code: string;
103103
+ _pick_day?: string;
101742
103104
  _screen_id: string;
101743
103105
  _session_id: string;
101744
103106
  _station_id: string;
@@ -102027,6 +103389,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
102027
103389
  omschrijving: string;
102028
103390
  }[];
102029
103391
  };
103392
+ pick_queue_cart_plan: {
103393
+ Args: {
103394
+ _queue_item_id: string;
103395
+ };
103396
+ Returns: import("../integrations/supabase/types").Json;
103397
+ };
102030
103398
  pick_reference_data_status: {
102031
103399
  Args: never;
102032
103400
  Returns: import("../integrations/supabase/types").Json;
@@ -102041,6 +103409,10 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
102041
103409
  };
102042
103410
  Returns: undefined;
102043
103411
  };
103412
+ pick_report_missing_cart_plan: {
103413
+ Args: never;
103414
+ Returns: import("../integrations/supabase/types").Json;
103415
+ };
102044
103416
  pick_reprint_cart: {
102045
103417
  Args: {
102046
103418
  _cart_id: string;
@@ -102581,6 +103953,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
102581
103953
  };
102582
103954
  Returns: boolean;
102583
103955
  };
103956
+ release_job_lock: {
103957
+ Args: {
103958
+ _key: string;
103959
+ };
103960
+ Returns: undefined;
103961
+ };
102584
103962
  release_local_pdf_job: {
102585
103963
  Args: {
102586
103964
  _job_id: string;
@@ -102770,6 +104148,16 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
102770
104148
  };
102771
104149
  Returns: import("../integrations/supabase/types").Json;
102772
104150
  };
104151
+ scan_log_code: {
104152
+ Args: {
104153
+ p_code: string;
104154
+ p_latency_ms?: number;
104155
+ p_message?: string;
104156
+ p_result: string;
104157
+ p_scanner_key?: string;
104158
+ };
104159
+ Returns: string;
104160
+ };
102773
104161
  scan_open_pakbonnen: {
102774
104162
  Args: {
102775
104163
  p_dagen?: number;
@@ -103259,6 +104647,14 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
103259
104647
  row_count: number;
103260
104648
  }[];
103261
104649
  };
104650
+ try_acquire_job_lock: {
104651
+ Args: {
104652
+ _key: string;
104653
+ _owner?: string;
104654
+ _seconds?: number;
104655
+ };
104656
+ Returns: boolean;
104657
+ };
103262
104658
  try_debtor_lock: {
103263
104659
  Args: {
103264
104660
  _group_key: string;
@@ -105566,6 +106962,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
105566
106962
  created_at: string;
105567
106963
  currency: string;
105568
106964
  distribute_over: string | null;
106965
+ external_id: string | null;
106966
+ external_synced_at: string | null;
105569
106967
  group_type: string;
105570
106968
  handling_fee: number | null;
105571
106969
  id: string;
@@ -105578,6 +106976,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
105578
106976
  rounding: string;
105579
106977
  rounding_step: number;
105580
106978
  sort_order: number;
106979
+ source: string;
105581
106980
  unit: string;
105582
106981
  updated_at: string;
105583
106982
  };
@@ -105588,6 +106987,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
105588
106987
  created_at?: string;
105589
106988
  currency?: string;
105590
106989
  distribute_over?: string | null;
106990
+ external_id?: string | null;
106991
+ external_synced_at?: string | null;
105591
106992
  group_type?: string;
105592
106993
  handling_fee?: number | null;
105593
106994
  id?: string;
@@ -105600,6 +107001,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
105600
107001
  rounding?: string;
105601
107002
  rounding_step?: number;
105602
107003
  sort_order?: number;
107004
+ source?: string;
105603
107005
  unit?: string;
105604
107006
  updated_at?: string;
105605
107007
  };
@@ -105610,6 +107012,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
105610
107012
  created_at?: string;
105611
107013
  currency?: string;
105612
107014
  distribute_over?: string | null;
107015
+ external_id?: string | null;
107016
+ external_synced_at?: string | null;
105613
107017
  group_type?: string;
105614
107018
  handling_fee?: number | null;
105615
107019
  id?: string;
@@ -105622,6 +107026,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
105622
107026
  rounding?: string;
105623
107027
  rounding_step?: number;
105624
107028
  sort_order?: number;
107029
+ source?: string;
105625
107030
  unit?: string;
105626
107031
  updated_at?: string;
105627
107032
  };
@@ -112485,6 +113890,30 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
112485
113890
  referencedColumns: ["id"];
112486
113891
  }];
112487
113892
  };
113893
+ job_locks: {
113894
+ Row: {
113895
+ created_at: string;
113896
+ lock_key: string;
113897
+ locked_until: string;
113898
+ owner: string | null;
113899
+ updated_at: string;
113900
+ };
113901
+ Insert: {
113902
+ created_at?: string;
113903
+ lock_key: string;
113904
+ locked_until: string;
113905
+ owner?: string | null;
113906
+ updated_at?: string;
113907
+ };
113908
+ Update: {
113909
+ created_at?: string;
113910
+ lock_key?: string;
113911
+ locked_until?: string;
113912
+ owner?: string | null;
113913
+ updated_at?: string;
113914
+ };
113915
+ Relationships: [];
113916
+ };
112488
113917
  layout_logos: {
112489
113918
  Row: {
112490
113919
  bestand_url: string;
@@ -113454,6 +114883,27 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
113454
114883
  };
113455
114884
  Relationships: [];
113456
114885
  };
114886
+ logistics_floriday_push_refusals: {
114887
+ Row: {
114888
+ created_at: string;
114889
+ id: string;
114890
+ order_ref: string;
114891
+ reason: string;
114892
+ };
114893
+ Insert: {
114894
+ created_at?: string;
114895
+ id?: string;
114896
+ order_ref: string;
114897
+ reason: string;
114898
+ };
114899
+ Update: {
114900
+ created_at?: string;
114901
+ id?: string;
114902
+ order_ref?: string;
114903
+ reason?: string;
114904
+ };
114905
+ Relationships: [];
114906
+ };
113457
114907
  logistics_floriday_pushes: {
113458
114908
  Row: {
113459
114909
  attempts: number;
@@ -113647,6 +115097,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
113647
115097
  next_attempt_at: string;
113648
115098
  order_id: string;
113649
115099
  reason: string;
115100
+ reason_code: string | null;
113650
115101
  status: string;
113651
115102
  updated_at: string;
113652
115103
  };
@@ -113659,6 +115110,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
113659
115110
  next_attempt_at?: string;
113660
115111
  order_id: string;
113661
115112
  reason?: string;
115113
+ reason_code?: string | null;
113662
115114
  status?: string;
113663
115115
  updated_at?: string;
113664
115116
  };
@@ -113671,6 +115123,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
113671
115123
  next_attempt_at?: string;
113672
115124
  order_id?: string;
113673
115125
  reason?: string;
115126
+ reason_code?: string | null;
113674
115127
  status?: string;
113675
115128
  updated_at?: string;
113676
115129
  };
@@ -114375,6 +115828,21 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
114375
115828
  referencedColumns: ["id"];
114376
115829
  }];
114377
115830
  };
115831
+ logistics_tick_heartbeat: {
115832
+ Row: {
115833
+ id: boolean;
115834
+ last_tick_at: string;
115835
+ };
115836
+ Insert: {
115837
+ id?: boolean;
115838
+ last_tick_at?: string;
115839
+ };
115840
+ Update: {
115841
+ id?: boolean;
115842
+ last_tick_at?: string;
115843
+ };
115844
+ Relationships: [];
115845
+ };
114378
115846
  logistics_variables: {
114379
115847
  Row: {
114380
115848
  created_at: string;
@@ -117012,6 +118480,27 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
117012
118480
  };
117013
118481
  Relationships: [];
117014
118482
  };
118483
+ pick_buffer_event_cursor: {
118484
+ Row: {
118485
+ created_at: string;
118486
+ id: boolean;
118487
+ last_event_at: string;
118488
+ updated_at: string;
118489
+ };
118490
+ Insert: {
118491
+ created_at?: string;
118492
+ id?: boolean;
118493
+ last_event_at?: string;
118494
+ updated_at?: string;
118495
+ };
118496
+ Update: {
118497
+ created_at?: string;
118498
+ id?: boolean;
118499
+ last_event_at?: string;
118500
+ updated_at?: string;
118501
+ };
118502
+ Relationships: [];
118503
+ };
117015
118504
  pick_countries: {
117016
118505
  Row: {
117017
118506
  active: boolean;
@@ -122661,6 +124150,36 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
122661
124150
  referencedColumns: ["id"];
122662
124151
  }];
122663
124152
  };
124153
+ voorraad_buffer_state: {
124154
+ Row: {
124155
+ buffer_id: string;
124156
+ buffer_key: string | null;
124157
+ closed_at: string | null;
124158
+ created_at: string;
124159
+ detached_orders: import("../integrations/supabase/types").Json;
124160
+ reason: string | null;
124161
+ updated_at: string;
124162
+ };
124163
+ Insert: {
124164
+ buffer_id: string;
124165
+ buffer_key?: string | null;
124166
+ closed_at?: string | null;
124167
+ created_at?: string;
124168
+ detached_orders?: import("../integrations/supabase/types").Json;
124169
+ reason?: string | null;
124170
+ updated_at?: string;
124171
+ };
124172
+ Update: {
124173
+ buffer_id?: string;
124174
+ buffer_key?: string | null;
124175
+ closed_at?: string | null;
124176
+ created_at?: string;
124177
+ detached_orders?: import("../integrations/supabase/types").Json;
124178
+ reason?: string | null;
124179
+ updated_at?: string;
124180
+ };
124181
+ Relationships: [];
124182
+ };
122664
124183
  voorraad_custom_fields: {
122665
124184
  Row: {
122666
124185
  created_at: string;
@@ -122703,6 +124222,36 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
122703
124222
  };
122704
124223
  Relationships: [];
122705
124224
  };
124225
+ voorraad_logistics_event_log: {
124226
+ Row: {
124227
+ created_at: string;
124228
+ event_id: string;
124229
+ event_type: string;
124230
+ order_ref: string | null;
124231
+ processed_at: string;
124232
+ result: import("../integrations/supabase/types").Json;
124233
+ updated_at: string;
124234
+ };
124235
+ Insert: {
124236
+ created_at?: string;
124237
+ event_id: string;
124238
+ event_type: string;
124239
+ order_ref?: string | null;
124240
+ processed_at?: string;
124241
+ result?: import("../integrations/supabase/types").Json;
124242
+ updated_at?: string;
124243
+ };
124244
+ Update: {
124245
+ created_at?: string;
124246
+ event_id?: string;
124247
+ event_type?: string;
124248
+ order_ref?: string | null;
124249
+ processed_at?: string;
124250
+ result?: import("../integrations/supabase/types").Json;
124251
+ updated_at?: string;
124252
+ };
124253
+ Relationships: [];
124254
+ };
122706
124255
  voorraad_media_upload_failures: {
122707
124256
  Row: {
122708
124257
  action: string;
@@ -125528,6 +127077,17 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
125528
127077
  };
125529
127078
  Returns: boolean;
125530
127079
  };
127080
+ floriday_adopt_connection: {
127081
+ Args: {
127082
+ p_new: string;
127083
+ p_old: string;
127084
+ };
127085
+ Returns: import("../integrations/supabase/types").Json;
127086
+ };
127087
+ floriday_autoheal_connections: {
127088
+ Args: never;
127089
+ Returns: import("../integrations/supabase/types").Json;
127090
+ };
125531
127091
  floriday_capture_stock_snapshot: {
125532
127092
  Args: never;
125533
127093
  Returns: number;
@@ -125585,6 +127145,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
125585
127145
  };
125586
127146
  Returns: undefined;
125587
127147
  };
127148
+ floriday_relink_products: {
127149
+ Args: {
127150
+ p_connection_id?: string;
127151
+ };
127152
+ Returns: import("../integrations/supabase/types").Json;
127153
+ };
125588
127154
  floriday_requeue_dead_letters: {
125589
127155
  Args: {
125590
127156
  p_connection_id?: string;
@@ -126206,6 +127772,10 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
126206
127772
  };
126207
127773
  Returns: string;
126208
127774
  };
127775
+ logistics_active_layout_method: {
127776
+ Args: never;
127777
+ Returns: string;
127778
+ };
126209
127779
  logistics_active_pick_workdays: {
126210
127780
  Args: never;
126211
127781
  Returns: string[];
@@ -126257,6 +127827,30 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
126257
127827
  };
126258
127828
  Returns: import("../integrations/supabase/types").Json;
126259
127829
  };
127830
+ logistics_block_reason_code: {
127831
+ Args: {
127832
+ p_details?: import("../integrations/supabase/types").Json;
127833
+ p_reason: string;
127834
+ };
127835
+ Returns: string;
127836
+ };
127837
+ logistics_blocked_orders: {
127838
+ Args: never;
127839
+ Returns: {
127840
+ attempts: number;
127841
+ blocked_since: string;
127842
+ delivery_date: string;
127843
+ order_id: string;
127844
+ order_ref: string;
127845
+ queue_id: string;
127846
+ reason: string;
127847
+ reason_code: string;
127848
+ }[];
127849
+ };
127850
+ logistics_blocked_overview: {
127851
+ Args: never;
127852
+ Returns: import("../integrations/supabase/types").Json;
127853
+ };
126260
127854
  logistics_buffer_criteria: {
126261
127855
  Args: {
126262
127856
  p_settings: import("../integrations/supabase/types").Json;
@@ -126271,6 +127865,39 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
126271
127865
  };
126272
127866
  Returns: import("../integrations/supabase/types").Json;
126273
127867
  };
127868
+ logistics_buffer_detach_late_orders: {
127869
+ Args: {
127870
+ p_buffer?: string;
127871
+ };
127872
+ Returns: import("../integrations/supabase/types").Json;
127873
+ };
127874
+ logistics_buffer_frozen_order: {
127875
+ Args: {
127876
+ p_order_id: string;
127877
+ };
127878
+ Returns: boolean;
127879
+ };
127880
+ logistics_buffer_handled: {
127881
+ Args: {
127882
+ p_buffer: string;
127883
+ };
127884
+ Returns: boolean;
127885
+ };
127886
+ logistics_buffer_notify: {
127887
+ Args: {
127888
+ p_event_type: string;
127889
+ p_idempotency_key: string;
127890
+ p_order_ref: string;
127891
+ p_payload: import("../integrations/supabase/types").Json;
127892
+ };
127893
+ Returns: string;
127894
+ };
127895
+ logistics_buffer_open_key: {
127896
+ Args: {
127897
+ p_base_key: string;
127898
+ };
127899
+ Returns: string;
127900
+ };
126274
127901
  logistics_buffer_simulate: {
126275
127902
  Args: {
126276
127903
  p_orders?: import("../integrations/supabase/types").Json;
@@ -126360,6 +127987,25 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
126360
127987
  Args: never;
126361
127988
  Returns: import("../integrations/supabase/types").Json;
126362
127989
  };
127990
+ logistics_cart_plan_overview: {
127991
+ Args: {
127992
+ p_days?: number;
127993
+ };
127994
+ Returns: {
127995
+ cart_total: number;
127996
+ delivery_date: string;
127997
+ order_ref: string;
127998
+ plan_ready: boolean;
127999
+ reason: string;
128000
+ released: boolean;
128001
+ }[];
128002
+ };
128003
+ logistics_cart_plan_status: {
128004
+ Args: {
128005
+ p_ref: string;
128006
+ };
128007
+ Returns: import("../integrations/supabase/types").Json;
128008
+ };
126363
128009
  logistics_cart_seq: {
126364
128010
  Args: {
126365
128011
  p_order_uuid?: string;
@@ -126859,6 +128505,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
126859
128505
  };
126860
128506
  Returns: string;
126861
128507
  };
128508
+ logistics_floriday_order_approved: {
128509
+ Args: {
128510
+ _order_ref: string;
128511
+ };
128512
+ Returns: boolean;
128513
+ };
126862
128514
  logistics_floriday_prune_pushes: {
126863
128515
  Args: {
126864
128516
  _days?: number;
@@ -126873,6 +128525,10 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
126873
128525
  };
126874
128526
  Returns: string;
126875
128527
  };
128528
+ logistics_floriday_status_updates_enabled: {
128529
+ Args: never;
128530
+ Returns: boolean;
128531
+ };
126876
128532
  logistics_fulfill_barcode_requests: {
126877
128533
  Args: {
126878
128534
  p_limit?: number;
@@ -126893,6 +128549,16 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
126893
128549
  };
126894
128550
  Returns: boolean;
126895
128551
  };
128552
+ logistics_layout_method_status: {
128553
+ Args: never;
128554
+ Returns: import("../integrations/supabase/types").Json;
128555
+ };
128556
+ logistics_link_order_items: {
128557
+ Args: {
128558
+ p_order?: string;
128559
+ };
128560
+ Returns: import("../integrations/supabase/types").Json;
128561
+ };
126896
128562
  logistics_live_carriers: {
126897
128563
  Args: {
126898
128564
  p_order_ref: string;
@@ -126919,6 +128585,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
126919
128585
  };
126920
128586
  Returns: string;
126921
128587
  };
128588
+ logistics_normalize_product_label: {
128589
+ Args: {
128590
+ p_label: string;
128591
+ };
128592
+ Returns: string;
128593
+ };
126922
128594
  logistics_not_past: {
126923
128595
  Args: {
126924
128596
  p_ts: string;
@@ -127107,6 +128779,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
127107
128779
  Args: never;
127108
128780
  Returns: number;
127109
128781
  };
128782
+ logistics_plan_retry: {
128783
+ Args: {
128784
+ p_order_ids: string[];
128785
+ };
128786
+ Returns: number;
128787
+ };
127110
128788
  logistics_plan_setting: {
127111
128789
  Args: {
127112
128790
  p_default: number;
@@ -127160,6 +128838,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
127160
128838
  };
127161
128839
  Returns: import("../integrations/supabase/types").Json;
127162
128840
  };
128841
+ logistics_replan_all: {
128842
+ Args: {
128843
+ p_reason?: string;
128844
+ };
128845
+ Returns: import("../integrations/supabase/types").Json;
128846
+ };
127163
128847
  logistics_report_delay: {
127164
128848
  Args: {
127165
128849
  p_expected_date?: string;
@@ -127213,6 +128897,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
127213
128897
  };
127214
128898
  Returns: import("../integrations/supabase/types").Json;
127215
128899
  };
128900
+ logistics_resolve_product_id: {
128901
+ Args: {
128902
+ p_label: string;
128903
+ };
128904
+ Returns: string;
128905
+ };
127216
128906
  logistics_resolve_settings: {
127217
128907
  Args: {
127218
128908
  p_config_id: string;
@@ -127342,6 +129032,10 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
127342
129032
  };
127343
129033
  Returns: number;
127344
129034
  };
129035
+ logistics_tick_ping: {
129036
+ Args: never;
129037
+ Returns: string;
129038
+ };
127345
129039
  logistics_upsert_task: {
127346
129040
  Args: {
127347
129041
  p_buffer_ref: string;
@@ -127485,6 +129179,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
127485
129179
  };
127486
129180
  Returns: import("../integrations/supabase/types").Json;
127487
129181
  };
129182
+ order_heeft_bevestigde_karren: {
129183
+ Args: {
129184
+ p_order_id: string;
129185
+ };
129186
+ Returns: boolean;
129187
+ };
127488
129188
  order_number_prefix: {
127489
129189
  Args: {
127490
129190
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -127520,6 +129220,10 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
127520
129220
  online: boolean;
127521
129221
  }[];
127522
129222
  };
129223
+ pick_apply_buffer_events: {
129224
+ Args: never;
129225
+ Returns: import("../integrations/supabase/types").Json;
129226
+ };
127523
129227
  pick_available_pick_days: {
127524
129228
  Args: {
127525
129229
  _max_days?: number;
@@ -127529,6 +129233,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
127529
129233
  pick_day: string;
127530
129234
  }[];
127531
129235
  };
129236
+ pick_buffer_order_ids: {
129237
+ Args: {
129238
+ _order_id: string;
129239
+ };
129240
+ Returns: string[];
129241
+ };
127532
129242
  pick_cart_breakdown: {
127533
129243
  Args: {
127534
129244
  _order_id: string;
@@ -127588,6 +129298,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
127588
129298
  pick_claim_next_document: {
127589
129299
  Args: {
127590
129300
  _country_code: string;
129301
+ _pick_day?: string;
127591
129302
  _screen_id: string;
127592
129303
  _session_id: string;
127593
129304
  _station_id: string;
@@ -127876,6 +129587,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
127876
129587
  omschrijving: string;
127877
129588
  }[];
127878
129589
  };
129590
+ pick_queue_cart_plan: {
129591
+ Args: {
129592
+ _queue_item_id: string;
129593
+ };
129594
+ Returns: import("../integrations/supabase/types").Json;
129595
+ };
127879
129596
  pick_reference_data_status: {
127880
129597
  Args: never;
127881
129598
  Returns: import("../integrations/supabase/types").Json;
@@ -127890,6 +129607,10 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
127890
129607
  };
127891
129608
  Returns: undefined;
127892
129609
  };
129610
+ pick_report_missing_cart_plan: {
129611
+ Args: never;
129612
+ Returns: import("../integrations/supabase/types").Json;
129613
+ };
127893
129614
  pick_reprint_cart: {
127894
129615
  Args: {
127895
129616
  _cart_id: string;
@@ -128430,6 +130151,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
128430
130151
  };
128431
130152
  Returns: boolean;
128432
130153
  };
130154
+ release_job_lock: {
130155
+ Args: {
130156
+ _key: string;
130157
+ };
130158
+ Returns: undefined;
130159
+ };
128433
130160
  release_local_pdf_job: {
128434
130161
  Args: {
128435
130162
  _job_id: string;
@@ -128619,6 +130346,16 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
128619
130346
  };
128620
130347
  Returns: import("../integrations/supabase/types").Json;
128621
130348
  };
130349
+ scan_log_code: {
130350
+ Args: {
130351
+ p_code: string;
130352
+ p_latency_ms?: number;
130353
+ p_message?: string;
130354
+ p_result: string;
130355
+ p_scanner_key?: string;
130356
+ };
130357
+ Returns: string;
130358
+ };
128622
130359
  scan_open_pakbonnen: {
128623
130360
  Args: {
128624
130361
  p_dagen?: number;
@@ -129108,6 +130845,14 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
129108
130845
  row_count: number;
129109
130846
  }[];
129110
130847
  };
130848
+ try_acquire_job_lock: {
130849
+ Args: {
130850
+ _key: string;
130851
+ _owner?: string;
130852
+ _seconds?: number;
130853
+ };
130854
+ Returns: boolean;
130855
+ };
129111
130856
  try_debtor_lock: {
129112
130857
  Args: {
129113
130858
  _group_key: string;
@@ -131425,6 +133170,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
131425
133170
  created_at: string;
131426
133171
  currency: string;
131427
133172
  distribute_over: string | null;
133173
+ external_id: string | null;
133174
+ external_synced_at: string | null;
131428
133175
  group_type: string;
131429
133176
  handling_fee: number | null;
131430
133177
  id: string;
@@ -131437,6 +133184,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
131437
133184
  rounding: string;
131438
133185
  rounding_step: number;
131439
133186
  sort_order: number;
133187
+ source: string;
131440
133188
  unit: string;
131441
133189
  updated_at: string;
131442
133190
  };
@@ -131447,6 +133195,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
131447
133195
  created_at?: string;
131448
133196
  currency?: string;
131449
133197
  distribute_over?: string | null;
133198
+ external_id?: string | null;
133199
+ external_synced_at?: string | null;
131450
133200
  group_type?: string;
131451
133201
  handling_fee?: number | null;
131452
133202
  id?: string;
@@ -131459,6 +133209,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
131459
133209
  rounding?: string;
131460
133210
  rounding_step?: number;
131461
133211
  sort_order?: number;
133212
+ source?: string;
131462
133213
  unit?: string;
131463
133214
  updated_at?: string;
131464
133215
  };
@@ -131469,6 +133220,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
131469
133220
  created_at?: string;
131470
133221
  currency?: string;
131471
133222
  distribute_over?: string | null;
133223
+ external_id?: string | null;
133224
+ external_synced_at?: string | null;
131472
133225
  group_type?: string;
131473
133226
  handling_fee?: number | null;
131474
133227
  id?: string;
@@ -131481,6 +133234,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
131481
133234
  rounding?: string;
131482
133235
  rounding_step?: number;
131483
133236
  sort_order?: number;
133237
+ source?: string;
131484
133238
  unit?: string;
131485
133239
  updated_at?: string;
131486
133240
  };
@@ -138344,6 +140098,30 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
138344
140098
  referencedColumns: ["id"];
138345
140099
  }];
138346
140100
  };
140101
+ job_locks: {
140102
+ Row: {
140103
+ created_at: string;
140104
+ lock_key: string;
140105
+ locked_until: string;
140106
+ owner: string | null;
140107
+ updated_at: string;
140108
+ };
140109
+ Insert: {
140110
+ created_at?: string;
140111
+ lock_key: string;
140112
+ locked_until: string;
140113
+ owner?: string | null;
140114
+ updated_at?: string;
140115
+ };
140116
+ Update: {
140117
+ created_at?: string;
140118
+ lock_key?: string;
140119
+ locked_until?: string;
140120
+ owner?: string | null;
140121
+ updated_at?: string;
140122
+ };
140123
+ Relationships: [];
140124
+ };
138347
140125
  layout_logos: {
138348
140126
  Row: {
138349
140127
  bestand_url: string;
@@ -139313,6 +141091,27 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
139313
141091
  };
139314
141092
  Relationships: [];
139315
141093
  };
141094
+ logistics_floriday_push_refusals: {
141095
+ Row: {
141096
+ created_at: string;
141097
+ id: string;
141098
+ order_ref: string;
141099
+ reason: string;
141100
+ };
141101
+ Insert: {
141102
+ created_at?: string;
141103
+ id?: string;
141104
+ order_ref: string;
141105
+ reason: string;
141106
+ };
141107
+ Update: {
141108
+ created_at?: string;
141109
+ id?: string;
141110
+ order_ref?: string;
141111
+ reason?: string;
141112
+ };
141113
+ Relationships: [];
141114
+ };
139316
141115
  logistics_floriday_pushes: {
139317
141116
  Row: {
139318
141117
  attempts: number;
@@ -139506,6 +141305,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
139506
141305
  next_attempt_at: string;
139507
141306
  order_id: string;
139508
141307
  reason: string;
141308
+ reason_code: string | null;
139509
141309
  status: string;
139510
141310
  updated_at: string;
139511
141311
  };
@@ -139518,6 +141318,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
139518
141318
  next_attempt_at?: string;
139519
141319
  order_id: string;
139520
141320
  reason?: string;
141321
+ reason_code?: string | null;
139521
141322
  status?: string;
139522
141323
  updated_at?: string;
139523
141324
  };
@@ -139530,6 +141331,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
139530
141331
  next_attempt_at?: string;
139531
141332
  order_id?: string;
139532
141333
  reason?: string;
141334
+ reason_code?: string | null;
139533
141335
  status?: string;
139534
141336
  updated_at?: string;
139535
141337
  };
@@ -140234,6 +142036,21 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
140234
142036
  referencedColumns: ["id"];
140235
142037
  }];
140236
142038
  };
142039
+ logistics_tick_heartbeat: {
142040
+ Row: {
142041
+ id: boolean;
142042
+ last_tick_at: string;
142043
+ };
142044
+ Insert: {
142045
+ id?: boolean;
142046
+ last_tick_at?: string;
142047
+ };
142048
+ Update: {
142049
+ id?: boolean;
142050
+ last_tick_at?: string;
142051
+ };
142052
+ Relationships: [];
142053
+ };
140237
142054
  logistics_variables: {
140238
142055
  Row: {
140239
142056
  created_at: string;
@@ -142871,6 +144688,27 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
142871
144688
  };
142872
144689
  Relationships: [];
142873
144690
  };
144691
+ pick_buffer_event_cursor: {
144692
+ Row: {
144693
+ created_at: string;
144694
+ id: boolean;
144695
+ last_event_at: string;
144696
+ updated_at: string;
144697
+ };
144698
+ Insert: {
144699
+ created_at?: string;
144700
+ id?: boolean;
144701
+ last_event_at?: string;
144702
+ updated_at?: string;
144703
+ };
144704
+ Update: {
144705
+ created_at?: string;
144706
+ id?: boolean;
144707
+ last_event_at?: string;
144708
+ updated_at?: string;
144709
+ };
144710
+ Relationships: [];
144711
+ };
142874
144712
  pick_countries: {
142875
144713
  Row: {
142876
144714
  active: boolean;
@@ -148520,6 +150358,36 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
148520
150358
  referencedColumns: ["id"];
148521
150359
  }];
148522
150360
  };
150361
+ voorraad_buffer_state: {
150362
+ Row: {
150363
+ buffer_id: string;
150364
+ buffer_key: string | null;
150365
+ closed_at: string | null;
150366
+ created_at: string;
150367
+ detached_orders: import("../integrations/supabase/types").Json;
150368
+ reason: string | null;
150369
+ updated_at: string;
150370
+ };
150371
+ Insert: {
150372
+ buffer_id: string;
150373
+ buffer_key?: string | null;
150374
+ closed_at?: string | null;
150375
+ created_at?: string;
150376
+ detached_orders?: import("../integrations/supabase/types").Json;
150377
+ reason?: string | null;
150378
+ updated_at?: string;
150379
+ };
150380
+ Update: {
150381
+ buffer_id?: string;
150382
+ buffer_key?: string | null;
150383
+ closed_at?: string | null;
150384
+ created_at?: string;
150385
+ detached_orders?: import("../integrations/supabase/types").Json;
150386
+ reason?: string | null;
150387
+ updated_at?: string;
150388
+ };
150389
+ Relationships: [];
150390
+ };
148523
150391
  voorraad_custom_fields: {
148524
150392
  Row: {
148525
150393
  created_at: string;
@@ -148562,6 +150430,36 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
148562
150430
  };
148563
150431
  Relationships: [];
148564
150432
  };
150433
+ voorraad_logistics_event_log: {
150434
+ Row: {
150435
+ created_at: string;
150436
+ event_id: string;
150437
+ event_type: string;
150438
+ order_ref: string | null;
150439
+ processed_at: string;
150440
+ result: import("../integrations/supabase/types").Json;
150441
+ updated_at: string;
150442
+ };
150443
+ Insert: {
150444
+ created_at?: string;
150445
+ event_id: string;
150446
+ event_type: string;
150447
+ order_ref?: string | null;
150448
+ processed_at?: string;
150449
+ result?: import("../integrations/supabase/types").Json;
150450
+ updated_at?: string;
150451
+ };
150452
+ Update: {
150453
+ created_at?: string;
150454
+ event_id?: string;
150455
+ event_type?: string;
150456
+ order_ref?: string | null;
150457
+ processed_at?: string;
150458
+ result?: import("../integrations/supabase/types").Json;
150459
+ updated_at?: string;
150460
+ };
150461
+ Relationships: [];
150462
+ };
148565
150463
  voorraad_media_upload_failures: {
148566
150464
  Row: {
148567
150465
  action: string;
@@ -151387,6 +153285,17 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
151387
153285
  };
151388
153286
  Returns: boolean;
151389
153287
  };
153288
+ floriday_adopt_connection: {
153289
+ Args: {
153290
+ p_new: string;
153291
+ p_old: string;
153292
+ };
153293
+ Returns: import("../integrations/supabase/types").Json;
153294
+ };
153295
+ floriday_autoheal_connections: {
153296
+ Args: never;
153297
+ Returns: import("../integrations/supabase/types").Json;
153298
+ };
151390
153299
  floriday_capture_stock_snapshot: {
151391
153300
  Args: never;
151392
153301
  Returns: number;
@@ -151444,6 +153353,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
151444
153353
  };
151445
153354
  Returns: undefined;
151446
153355
  };
153356
+ floriday_relink_products: {
153357
+ Args: {
153358
+ p_connection_id?: string;
153359
+ };
153360
+ Returns: import("../integrations/supabase/types").Json;
153361
+ };
151447
153362
  floriday_requeue_dead_letters: {
151448
153363
  Args: {
151449
153364
  p_connection_id?: string;
@@ -152065,6 +153980,10 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
152065
153980
  };
152066
153981
  Returns: string;
152067
153982
  };
153983
+ logistics_active_layout_method: {
153984
+ Args: never;
153985
+ Returns: string;
153986
+ };
152068
153987
  logistics_active_pick_workdays: {
152069
153988
  Args: never;
152070
153989
  Returns: string[];
@@ -152116,6 +154035,30 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
152116
154035
  };
152117
154036
  Returns: import("../integrations/supabase/types").Json;
152118
154037
  };
154038
+ logistics_block_reason_code: {
154039
+ Args: {
154040
+ p_details?: import("../integrations/supabase/types").Json;
154041
+ p_reason: string;
154042
+ };
154043
+ Returns: string;
154044
+ };
154045
+ logistics_blocked_orders: {
154046
+ Args: never;
154047
+ Returns: {
154048
+ attempts: number;
154049
+ blocked_since: string;
154050
+ delivery_date: string;
154051
+ order_id: string;
154052
+ order_ref: string;
154053
+ queue_id: string;
154054
+ reason: string;
154055
+ reason_code: string;
154056
+ }[];
154057
+ };
154058
+ logistics_blocked_overview: {
154059
+ Args: never;
154060
+ Returns: import("../integrations/supabase/types").Json;
154061
+ };
152119
154062
  logistics_buffer_criteria: {
152120
154063
  Args: {
152121
154064
  p_settings: import("../integrations/supabase/types").Json;
@@ -152130,6 +154073,39 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
152130
154073
  };
152131
154074
  Returns: import("../integrations/supabase/types").Json;
152132
154075
  };
154076
+ logistics_buffer_detach_late_orders: {
154077
+ Args: {
154078
+ p_buffer?: string;
154079
+ };
154080
+ Returns: import("../integrations/supabase/types").Json;
154081
+ };
154082
+ logistics_buffer_frozen_order: {
154083
+ Args: {
154084
+ p_order_id: string;
154085
+ };
154086
+ Returns: boolean;
154087
+ };
154088
+ logistics_buffer_handled: {
154089
+ Args: {
154090
+ p_buffer: string;
154091
+ };
154092
+ Returns: boolean;
154093
+ };
154094
+ logistics_buffer_notify: {
154095
+ Args: {
154096
+ p_event_type: string;
154097
+ p_idempotency_key: string;
154098
+ p_order_ref: string;
154099
+ p_payload: import("../integrations/supabase/types").Json;
154100
+ };
154101
+ Returns: string;
154102
+ };
154103
+ logistics_buffer_open_key: {
154104
+ Args: {
154105
+ p_base_key: string;
154106
+ };
154107
+ Returns: string;
154108
+ };
152133
154109
  logistics_buffer_simulate: {
152134
154110
  Args: {
152135
154111
  p_orders?: import("../integrations/supabase/types").Json;
@@ -152219,6 +154195,25 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
152219
154195
  Args: never;
152220
154196
  Returns: import("../integrations/supabase/types").Json;
152221
154197
  };
154198
+ logistics_cart_plan_overview: {
154199
+ Args: {
154200
+ p_days?: number;
154201
+ };
154202
+ Returns: {
154203
+ cart_total: number;
154204
+ delivery_date: string;
154205
+ order_ref: string;
154206
+ plan_ready: boolean;
154207
+ reason: string;
154208
+ released: boolean;
154209
+ }[];
154210
+ };
154211
+ logistics_cart_plan_status: {
154212
+ Args: {
154213
+ p_ref: string;
154214
+ };
154215
+ Returns: import("../integrations/supabase/types").Json;
154216
+ };
152222
154217
  logistics_cart_seq: {
152223
154218
  Args: {
152224
154219
  p_order_uuid?: string;
@@ -152718,6 +154713,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
152718
154713
  };
152719
154714
  Returns: string;
152720
154715
  };
154716
+ logistics_floriday_order_approved: {
154717
+ Args: {
154718
+ _order_ref: string;
154719
+ };
154720
+ Returns: boolean;
154721
+ };
152721
154722
  logistics_floriday_prune_pushes: {
152722
154723
  Args: {
152723
154724
  _days?: number;
@@ -152732,6 +154733,10 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
152732
154733
  };
152733
154734
  Returns: string;
152734
154735
  };
154736
+ logistics_floriday_status_updates_enabled: {
154737
+ Args: never;
154738
+ Returns: boolean;
154739
+ };
152735
154740
  logistics_fulfill_barcode_requests: {
152736
154741
  Args: {
152737
154742
  p_limit?: number;
@@ -152752,6 +154757,16 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
152752
154757
  };
152753
154758
  Returns: boolean;
152754
154759
  };
154760
+ logistics_layout_method_status: {
154761
+ Args: never;
154762
+ Returns: import("../integrations/supabase/types").Json;
154763
+ };
154764
+ logistics_link_order_items: {
154765
+ Args: {
154766
+ p_order?: string;
154767
+ };
154768
+ Returns: import("../integrations/supabase/types").Json;
154769
+ };
152755
154770
  logistics_live_carriers: {
152756
154771
  Args: {
152757
154772
  p_order_ref: string;
@@ -152778,6 +154793,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
152778
154793
  };
152779
154794
  Returns: string;
152780
154795
  };
154796
+ logistics_normalize_product_label: {
154797
+ Args: {
154798
+ p_label: string;
154799
+ };
154800
+ Returns: string;
154801
+ };
152781
154802
  logistics_not_past: {
152782
154803
  Args: {
152783
154804
  p_ts: string;
@@ -152966,6 +154987,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
152966
154987
  Args: never;
152967
154988
  Returns: number;
152968
154989
  };
154990
+ logistics_plan_retry: {
154991
+ Args: {
154992
+ p_order_ids: string[];
154993
+ };
154994
+ Returns: number;
154995
+ };
152969
154996
  logistics_plan_setting: {
152970
154997
  Args: {
152971
154998
  p_default: number;
@@ -153019,6 +155046,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
153019
155046
  };
153020
155047
  Returns: import("../integrations/supabase/types").Json;
153021
155048
  };
155049
+ logistics_replan_all: {
155050
+ Args: {
155051
+ p_reason?: string;
155052
+ };
155053
+ Returns: import("../integrations/supabase/types").Json;
155054
+ };
153022
155055
  logistics_report_delay: {
153023
155056
  Args: {
153024
155057
  p_expected_date?: string;
@@ -153072,6 +155105,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
153072
155105
  };
153073
155106
  Returns: import("../integrations/supabase/types").Json;
153074
155107
  };
155108
+ logistics_resolve_product_id: {
155109
+ Args: {
155110
+ p_label: string;
155111
+ };
155112
+ Returns: string;
155113
+ };
153075
155114
  logistics_resolve_settings: {
153076
155115
  Args: {
153077
155116
  p_config_id: string;
@@ -153201,6 +155240,10 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
153201
155240
  };
153202
155241
  Returns: number;
153203
155242
  };
155243
+ logistics_tick_ping: {
155244
+ Args: never;
155245
+ Returns: string;
155246
+ };
153204
155247
  logistics_upsert_task: {
153205
155248
  Args: {
153206
155249
  p_buffer_ref: string;
@@ -153344,6 +155387,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
153344
155387
  };
153345
155388
  Returns: import("../integrations/supabase/types").Json;
153346
155389
  };
155390
+ order_heeft_bevestigde_karren: {
155391
+ Args: {
155392
+ p_order_id: string;
155393
+ };
155394
+ Returns: boolean;
155395
+ };
153347
155396
  order_number_prefix: {
153348
155397
  Args: {
153349
155398
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -153379,6 +155428,10 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
153379
155428
  online: boolean;
153380
155429
  }[];
153381
155430
  };
155431
+ pick_apply_buffer_events: {
155432
+ Args: never;
155433
+ Returns: import("../integrations/supabase/types").Json;
155434
+ };
153382
155435
  pick_available_pick_days: {
153383
155436
  Args: {
153384
155437
  _max_days?: number;
@@ -153388,6 +155441,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
153388
155441
  pick_day: string;
153389
155442
  }[];
153390
155443
  };
155444
+ pick_buffer_order_ids: {
155445
+ Args: {
155446
+ _order_id: string;
155447
+ };
155448
+ Returns: string[];
155449
+ };
153391
155450
  pick_cart_breakdown: {
153392
155451
  Args: {
153393
155452
  _order_id: string;
@@ -153447,6 +155506,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
153447
155506
  pick_claim_next_document: {
153448
155507
  Args: {
153449
155508
  _country_code: string;
155509
+ _pick_day?: string;
153450
155510
  _screen_id: string;
153451
155511
  _session_id: string;
153452
155512
  _station_id: string;
@@ -153735,6 +155795,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
153735
155795
  omschrijving: string;
153736
155796
  }[];
153737
155797
  };
155798
+ pick_queue_cart_plan: {
155799
+ Args: {
155800
+ _queue_item_id: string;
155801
+ };
155802
+ Returns: import("../integrations/supabase/types").Json;
155803
+ };
153738
155804
  pick_reference_data_status: {
153739
155805
  Args: never;
153740
155806
  Returns: import("../integrations/supabase/types").Json;
@@ -153749,6 +155815,10 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
153749
155815
  };
153750
155816
  Returns: undefined;
153751
155817
  };
155818
+ pick_report_missing_cart_plan: {
155819
+ Args: never;
155820
+ Returns: import("../integrations/supabase/types").Json;
155821
+ };
153752
155822
  pick_reprint_cart: {
153753
155823
  Args: {
153754
155824
  _cart_id: string;
@@ -154289,6 +156359,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
154289
156359
  };
154290
156360
  Returns: boolean;
154291
156361
  };
156362
+ release_job_lock: {
156363
+ Args: {
156364
+ _key: string;
156365
+ };
156366
+ Returns: undefined;
156367
+ };
154292
156368
  release_local_pdf_job: {
154293
156369
  Args: {
154294
156370
  _job_id: string;
@@ -154478,6 +156554,16 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
154478
156554
  };
154479
156555
  Returns: import("../integrations/supabase/types").Json;
154480
156556
  };
156557
+ scan_log_code: {
156558
+ Args: {
156559
+ p_code: string;
156560
+ p_latency_ms?: number;
156561
+ p_message?: string;
156562
+ p_result: string;
156563
+ p_scanner_key?: string;
156564
+ };
156565
+ Returns: string;
156566
+ };
154481
156567
  scan_open_pakbonnen: {
154482
156568
  Args: {
154483
156569
  p_dagen?: number;
@@ -154967,6 +157053,14 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
154967
157053
  row_count: number;
154968
157054
  }[];
154969
157055
  };
157056
+ try_acquire_job_lock: {
157057
+ Args: {
157058
+ _key: string;
157059
+ _owner?: string;
157060
+ _seconds?: number;
157061
+ };
157062
+ Returns: boolean;
157063
+ };
154970
157064
  try_debtor_lock: {
154971
157065
  Args: {
154972
157066
  _group_key: string;