@flowselections/floriday-voorraad 1.0.43 → 1.0.45

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 (32) hide show
  1. package/dist-lib/components/voorraad/StockPushMonitor.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/StockPushMonitor.js +31 -2
  3. package/dist-lib/hooks/useStockPushJobs.d.ts +2 -0
  4. package/dist-lib/hooks/useStockPushJobs.d.ts.map +1 -1
  5. package/dist-lib/hooks/useStockPushJobs.js +3 -1
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts +107 -0
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.d.ts +107 -0
  9. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts +107 -0
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/types.d.ts +107 -0
  13. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  14. package/dist-lib/lib/floricode-required-features.functions.d.ts +107 -0
  15. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +107 -0
  17. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-env.functions.d.ts +214 -0
  19. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-gateway.functions.d.ts +642 -0
  21. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +214 -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 +321 -0
  25. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-writes.functions.d.ts +214 -0
  27. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/inventory-settings.functions.d.ts +214 -0
  29. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/stock-sync.functions.d.ts +214 -0
  31. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  32. package/package.json +1 -1
@@ -1847,6 +1847,42 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
1847
1847
  };
1848
1848
  Relationships: [];
1849
1849
  };
1850
+ customer_assortment_items: {
1851
+ Row: {
1852
+ created_at: string;
1853
+ customer_key: string;
1854
+ id: string;
1855
+ in_assortment: boolean;
1856
+ manual_override: boolean;
1857
+ source: string;
1858
+ synced_at: string | null;
1859
+ trade_item_key: string;
1860
+ updated_at: string;
1861
+ };
1862
+ Insert: {
1863
+ created_at?: string;
1864
+ customer_key: string;
1865
+ id?: string;
1866
+ in_assortment?: boolean;
1867
+ manual_override?: boolean;
1868
+ source?: string;
1869
+ synced_at?: string | null;
1870
+ trade_item_key: string;
1871
+ updated_at?: string;
1872
+ };
1873
+ Update: {
1874
+ created_at?: string;
1875
+ customer_key?: string;
1876
+ id?: string;
1877
+ in_assortment?: boolean;
1878
+ manual_override?: boolean;
1879
+ source?: string;
1880
+ synced_at?: string | null;
1881
+ trade_item_key?: string;
1882
+ updated_at?: string;
1883
+ };
1884
+ Relationships: [];
1885
+ };
1850
1886
  customer_audit_log: {
1851
1887
  Row: {
1852
1888
  action: string;
@@ -2251,40 +2287,58 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
2251
2287
  };
2252
2288
  customer_product_stickers: {
2253
2289
  Row: {
2290
+ content_hash: string | null;
2254
2291
  created_at: string;
2255
2292
  customer_key: string;
2256
2293
  file_name: string;
2257
2294
  file_path: string;
2258
2295
  file_size: number | null;
2296
+ floriday_sticker_id: string | null;
2297
+ floriday_synced_at: string | null;
2298
+ height_mm: number | null;
2259
2299
  id: string;
2260
2300
  mime_type: string | null;
2301
+ source: string;
2261
2302
  trade_item_key: string;
2262
2303
  updated_at: string;
2263
2304
  uploaded_by: string | null;
2305
+ width_mm: number | null;
2264
2306
  };
2265
2307
  Insert: {
2308
+ content_hash?: string | null;
2266
2309
  created_at?: string;
2267
2310
  customer_key: string;
2268
2311
  file_name: string;
2269
2312
  file_path: string;
2270
2313
  file_size?: number | null;
2314
+ floriday_sticker_id?: string | null;
2315
+ floriday_synced_at?: string | null;
2316
+ height_mm?: number | null;
2271
2317
  id?: string;
2272
2318
  mime_type?: string | null;
2319
+ source?: string;
2273
2320
  trade_item_key: string;
2274
2321
  updated_at?: string;
2275
2322
  uploaded_by?: string | null;
2323
+ width_mm?: number | null;
2276
2324
  };
2277
2325
  Update: {
2326
+ content_hash?: string | null;
2278
2327
  created_at?: string;
2279
2328
  customer_key?: string;
2280
2329
  file_name?: string;
2281
2330
  file_path?: string;
2282
2331
  file_size?: number | null;
2332
+ floriday_sticker_id?: string | null;
2333
+ floriday_synced_at?: string | null;
2334
+ height_mm?: number | null;
2283
2335
  id?: string;
2284
2336
  mime_type?: string | null;
2337
+ source?: string;
2285
2338
  trade_item_key?: string;
2286
2339
  updated_at?: string;
2287
2340
  uploaded_by?: string | null;
2341
+ width_mm?: number | null;
2288
2342
  };
2289
2343
  Relationships: [];
2290
2344
  };
@@ -11592,6 +11646,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
11592
11646
  Row: {
11593
11647
  actor: string | null;
11594
11648
  attempts: number;
11649
+ calc: import("../integrations/supabase/types").Json | null;
11595
11650
  cart_ref: string | null;
11596
11651
  created_at: string;
11597
11652
  db_action: string | null;
@@ -11602,6 +11657,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
11602
11657
  decision: string | null;
11603
11658
  duration_ms: number | null;
11604
11659
  error: string | null;
11660
+ error_class: string | null;
11605
11661
  external_action: string | null;
11606
11662
  external_ref: string | null;
11607
11663
  external_response: import("../integrations/supabase/types").Json | null;
@@ -11610,6 +11666,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
11610
11666
  id: string;
11611
11667
  input: import("../integrations/supabase/types").Json | null;
11612
11668
  next_attempt_at: string | null;
11669
+ next_step: string | null;
11670
+ node_id: string | null;
11613
11671
  order_ref: string | null;
11614
11672
  order_source: string | null;
11615
11673
  output: import("../integrations/supabase/types").Json | null;
@@ -11626,6 +11684,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
11626
11684
  Insert: {
11627
11685
  actor?: string | null;
11628
11686
  attempts?: number;
11687
+ calc?: import("../integrations/supabase/types").Json | null;
11629
11688
  cart_ref?: string | null;
11630
11689
  created_at?: string;
11631
11690
  db_action?: string | null;
@@ -11636,6 +11695,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
11636
11695
  decision?: string | null;
11637
11696
  duration_ms?: number | null;
11638
11697
  error?: string | null;
11698
+ error_class?: string | null;
11639
11699
  external_action?: string | null;
11640
11700
  external_ref?: string | null;
11641
11701
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11644,6 +11704,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
11644
11704
  id?: string;
11645
11705
  input?: import("../integrations/supabase/types").Json | null;
11646
11706
  next_attempt_at?: string | null;
11707
+ next_step?: string | null;
11708
+ node_id?: string | null;
11647
11709
  order_ref?: string | null;
11648
11710
  order_source?: string | null;
11649
11711
  output?: import("../integrations/supabase/types").Json | null;
@@ -11660,6 +11722,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
11660
11722
  Update: {
11661
11723
  actor?: string | null;
11662
11724
  attempts?: number;
11725
+ calc?: import("../integrations/supabase/types").Json | null;
11663
11726
  cart_ref?: string | null;
11664
11727
  created_at?: string;
11665
11728
  db_action?: string | null;
@@ -11670,6 +11733,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
11670
11733
  decision?: string | null;
11671
11734
  duration_ms?: number | null;
11672
11735
  error?: string | null;
11736
+ error_class?: string | null;
11673
11737
  external_action?: string | null;
11674
11738
  external_ref?: string | null;
11675
11739
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11678,6 +11742,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
11678
11742
  id?: string;
11679
11743
  input?: import("../integrations/supabase/types").Json | null;
11680
11744
  next_attempt_at?: string | null;
11745
+ next_step?: string | null;
11746
+ node_id?: string | null;
11681
11747
  order_ref?: string | null;
11682
11748
  order_source?: string | null;
11683
11749
  output?: import("../integrations/supabase/types").Json | null;
@@ -25182,12 +25248,37 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25182
25248
  };
25183
25249
  Returns: string;
25184
25250
  };
25251
+ logistics_trace_all_orders: {
25252
+ Args: {
25253
+ p_limit?: number;
25254
+ p_search?: string;
25255
+ };
25256
+ Returns: import("../integrations/supabase/types").Json;
25257
+ };
25185
25258
  logistics_trace_batch: {
25186
25259
  Args: {
25187
25260
  p: import("../integrations/supabase/types").Json;
25188
25261
  };
25189
25262
  Returns: number;
25190
25263
  };
25264
+ logistics_trace_order_overview: {
25265
+ Args: {
25266
+ p_error_class?: string;
25267
+ p_limit?: number;
25268
+ p_search?: string;
25269
+ p_since?: string;
25270
+ p_source?: string;
25271
+ p_state?: string;
25272
+ p_step?: string;
25273
+ };
25274
+ Returns: import("../integrations/supabase/types").Json;
25275
+ };
25276
+ logistics_trace_order_state: {
25277
+ Args: {
25278
+ p_order_ref: string;
25279
+ };
25280
+ Returns: import("../integrations/supabase/types").Json;
25281
+ };
25191
25282
  logistics_trace_orders: {
25192
25283
  Args: {
25193
25284
  p_limit?: number;
@@ -25210,6 +25301,22 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25210
25301
  };
25211
25302
  Returns: import("../integrations/supabase/types").Json;
25212
25303
  };
25304
+ logistics_trace_version_events: {
25305
+ Args: {
25306
+ p_from?: string;
25307
+ p_limit?: number;
25308
+ p_order_ref: string;
25309
+ p_to?: string;
25310
+ p_version_id: string;
25311
+ };
25312
+ Returns: import("../integrations/supabase/types").Json;
25313
+ };
25314
+ logistics_trace_versions: {
25315
+ Args: {
25316
+ p_order_ref: string;
25317
+ };
25318
+ Returns: import("../integrations/supabase/types").Json;
25319
+ };
25213
25320
  logistics_upsert_task: {
25214
25321
  Args: {
25215
25322
  p_buffer_ref: string;
@@ -29028,6 +29135,42 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
29028
29135
  };
29029
29136
  Relationships: [];
29030
29137
  };
29138
+ customer_assortment_items: {
29139
+ Row: {
29140
+ created_at: string;
29141
+ customer_key: string;
29142
+ id: string;
29143
+ in_assortment: boolean;
29144
+ manual_override: boolean;
29145
+ source: string;
29146
+ synced_at: string | null;
29147
+ trade_item_key: string;
29148
+ updated_at: string;
29149
+ };
29150
+ Insert: {
29151
+ created_at?: string;
29152
+ customer_key: string;
29153
+ id?: string;
29154
+ in_assortment?: boolean;
29155
+ manual_override?: boolean;
29156
+ source?: string;
29157
+ synced_at?: string | null;
29158
+ trade_item_key: string;
29159
+ updated_at?: string;
29160
+ };
29161
+ Update: {
29162
+ created_at?: string;
29163
+ customer_key?: string;
29164
+ id?: string;
29165
+ in_assortment?: boolean;
29166
+ manual_override?: boolean;
29167
+ source?: string;
29168
+ synced_at?: string | null;
29169
+ trade_item_key?: string;
29170
+ updated_at?: string;
29171
+ };
29172
+ Relationships: [];
29173
+ };
29031
29174
  customer_audit_log: {
29032
29175
  Row: {
29033
29176
  action: string;
@@ -29432,40 +29575,58 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
29432
29575
  };
29433
29576
  customer_product_stickers: {
29434
29577
  Row: {
29578
+ content_hash: string | null;
29435
29579
  created_at: string;
29436
29580
  customer_key: string;
29437
29581
  file_name: string;
29438
29582
  file_path: string;
29439
29583
  file_size: number | null;
29584
+ floriday_sticker_id: string | null;
29585
+ floriday_synced_at: string | null;
29586
+ height_mm: number | null;
29440
29587
  id: string;
29441
29588
  mime_type: string | null;
29589
+ source: string;
29442
29590
  trade_item_key: string;
29443
29591
  updated_at: string;
29444
29592
  uploaded_by: string | null;
29593
+ width_mm: number | null;
29445
29594
  };
29446
29595
  Insert: {
29596
+ content_hash?: string | null;
29447
29597
  created_at?: string;
29448
29598
  customer_key: string;
29449
29599
  file_name: string;
29450
29600
  file_path: string;
29451
29601
  file_size?: number | null;
29602
+ floriday_sticker_id?: string | null;
29603
+ floriday_synced_at?: string | null;
29604
+ height_mm?: number | null;
29452
29605
  id?: string;
29453
29606
  mime_type?: string | null;
29607
+ source?: string;
29454
29608
  trade_item_key: string;
29455
29609
  updated_at?: string;
29456
29610
  uploaded_by?: string | null;
29611
+ width_mm?: number | null;
29457
29612
  };
29458
29613
  Update: {
29614
+ content_hash?: string | null;
29459
29615
  created_at?: string;
29460
29616
  customer_key?: string;
29461
29617
  file_name?: string;
29462
29618
  file_path?: string;
29463
29619
  file_size?: number | null;
29620
+ floriday_sticker_id?: string | null;
29621
+ floriday_synced_at?: string | null;
29622
+ height_mm?: number | null;
29464
29623
  id?: string;
29465
29624
  mime_type?: string | null;
29625
+ source?: string;
29466
29626
  trade_item_key?: string;
29467
29627
  updated_at?: string;
29468
29628
  uploaded_by?: string | null;
29629
+ width_mm?: number | null;
29469
29630
  };
29470
29631
  Relationships: [];
29471
29632
  };
@@ -38773,6 +38934,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38773
38934
  Row: {
38774
38935
  actor: string | null;
38775
38936
  attempts: number;
38937
+ calc: import("../integrations/supabase/types").Json | null;
38776
38938
  cart_ref: string | null;
38777
38939
  created_at: string;
38778
38940
  db_action: string | null;
@@ -38783,6 +38945,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38783
38945
  decision: string | null;
38784
38946
  duration_ms: number | null;
38785
38947
  error: string | null;
38948
+ error_class: string | null;
38786
38949
  external_action: string | null;
38787
38950
  external_ref: string | null;
38788
38951
  external_response: import("../integrations/supabase/types").Json | null;
@@ -38791,6 +38954,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38791
38954
  id: string;
38792
38955
  input: import("../integrations/supabase/types").Json | null;
38793
38956
  next_attempt_at: string | null;
38957
+ next_step: string | null;
38958
+ node_id: string | null;
38794
38959
  order_ref: string | null;
38795
38960
  order_source: string | null;
38796
38961
  output: import("../integrations/supabase/types").Json | null;
@@ -38807,6 +38972,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38807
38972
  Insert: {
38808
38973
  actor?: string | null;
38809
38974
  attempts?: number;
38975
+ calc?: import("../integrations/supabase/types").Json | null;
38810
38976
  cart_ref?: string | null;
38811
38977
  created_at?: string;
38812
38978
  db_action?: string | null;
@@ -38817,6 +38983,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38817
38983
  decision?: string | null;
38818
38984
  duration_ms?: number | null;
38819
38985
  error?: string | null;
38986
+ error_class?: string | null;
38820
38987
  external_action?: string | null;
38821
38988
  external_ref?: string | null;
38822
38989
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -38825,6 +38992,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38825
38992
  id?: string;
38826
38993
  input?: import("../integrations/supabase/types").Json | null;
38827
38994
  next_attempt_at?: string | null;
38995
+ next_step?: string | null;
38996
+ node_id?: string | null;
38828
38997
  order_ref?: string | null;
38829
38998
  order_source?: string | null;
38830
38999
  output?: import("../integrations/supabase/types").Json | null;
@@ -38841,6 +39010,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38841
39010
  Update: {
38842
39011
  actor?: string | null;
38843
39012
  attempts?: number;
39013
+ calc?: import("../integrations/supabase/types").Json | null;
38844
39014
  cart_ref?: string | null;
38845
39015
  created_at?: string;
38846
39016
  db_action?: string | null;
@@ -38851,6 +39021,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38851
39021
  decision?: string | null;
38852
39022
  duration_ms?: number | null;
38853
39023
  error?: string | null;
39024
+ error_class?: string | null;
38854
39025
  external_action?: string | null;
38855
39026
  external_ref?: string | null;
38856
39027
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -38859,6 +39030,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38859
39030
  id?: string;
38860
39031
  input?: import("../integrations/supabase/types").Json | null;
38861
39032
  next_attempt_at?: string | null;
39033
+ next_step?: string | null;
39034
+ node_id?: string | null;
38862
39035
  order_ref?: string | null;
38863
39036
  order_source?: string | null;
38864
39037
  output?: import("../integrations/supabase/types").Json | null;
@@ -52363,12 +52536,37 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
52363
52536
  };
52364
52537
  Returns: string;
52365
52538
  };
52539
+ logistics_trace_all_orders: {
52540
+ Args: {
52541
+ p_limit?: number;
52542
+ p_search?: string;
52543
+ };
52544
+ Returns: import("../integrations/supabase/types").Json;
52545
+ };
52366
52546
  logistics_trace_batch: {
52367
52547
  Args: {
52368
52548
  p: import("../integrations/supabase/types").Json;
52369
52549
  };
52370
52550
  Returns: number;
52371
52551
  };
52552
+ logistics_trace_order_overview: {
52553
+ Args: {
52554
+ p_error_class?: string;
52555
+ p_limit?: number;
52556
+ p_search?: string;
52557
+ p_since?: string;
52558
+ p_source?: string;
52559
+ p_state?: string;
52560
+ p_step?: string;
52561
+ };
52562
+ Returns: import("../integrations/supabase/types").Json;
52563
+ };
52564
+ logistics_trace_order_state: {
52565
+ Args: {
52566
+ p_order_ref: string;
52567
+ };
52568
+ Returns: import("../integrations/supabase/types").Json;
52569
+ };
52372
52570
  logistics_trace_orders: {
52373
52571
  Args: {
52374
52572
  p_limit?: number;
@@ -52391,6 +52589,22 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
52391
52589
  };
52392
52590
  Returns: import("../integrations/supabase/types").Json;
52393
52591
  };
52592
+ logistics_trace_version_events: {
52593
+ Args: {
52594
+ p_from?: string;
52595
+ p_limit?: number;
52596
+ p_order_ref: string;
52597
+ p_to?: string;
52598
+ p_version_id: string;
52599
+ };
52600
+ Returns: import("../integrations/supabase/types").Json;
52601
+ };
52602
+ logistics_trace_versions: {
52603
+ Args: {
52604
+ p_order_ref: string;
52605
+ };
52606
+ Returns: import("../integrations/supabase/types").Json;
52607
+ };
52394
52608
  logistics_upsert_task: {
52395
52609
  Args: {
52396
52610
  p_buffer_ref: string;
@@ -56209,6 +56423,42 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
56209
56423
  };
56210
56424
  Relationships: [];
56211
56425
  };
56426
+ customer_assortment_items: {
56427
+ Row: {
56428
+ created_at: string;
56429
+ customer_key: string;
56430
+ id: string;
56431
+ in_assortment: boolean;
56432
+ manual_override: boolean;
56433
+ source: string;
56434
+ synced_at: string | null;
56435
+ trade_item_key: string;
56436
+ updated_at: string;
56437
+ };
56438
+ Insert: {
56439
+ created_at?: string;
56440
+ customer_key: string;
56441
+ id?: string;
56442
+ in_assortment?: boolean;
56443
+ manual_override?: boolean;
56444
+ source?: string;
56445
+ synced_at?: string | null;
56446
+ trade_item_key: string;
56447
+ updated_at?: string;
56448
+ };
56449
+ Update: {
56450
+ created_at?: string;
56451
+ customer_key?: string;
56452
+ id?: string;
56453
+ in_assortment?: boolean;
56454
+ manual_override?: boolean;
56455
+ source?: string;
56456
+ synced_at?: string | null;
56457
+ trade_item_key?: string;
56458
+ updated_at?: string;
56459
+ };
56460
+ Relationships: [];
56461
+ };
56212
56462
  customer_audit_log: {
56213
56463
  Row: {
56214
56464
  action: string;
@@ -56613,40 +56863,58 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
56613
56863
  };
56614
56864
  customer_product_stickers: {
56615
56865
  Row: {
56866
+ content_hash: string | null;
56616
56867
  created_at: string;
56617
56868
  customer_key: string;
56618
56869
  file_name: string;
56619
56870
  file_path: string;
56620
56871
  file_size: number | null;
56872
+ floriday_sticker_id: string | null;
56873
+ floriday_synced_at: string | null;
56874
+ height_mm: number | null;
56621
56875
  id: string;
56622
56876
  mime_type: string | null;
56877
+ source: string;
56623
56878
  trade_item_key: string;
56624
56879
  updated_at: string;
56625
56880
  uploaded_by: string | null;
56881
+ width_mm: number | null;
56626
56882
  };
56627
56883
  Insert: {
56884
+ content_hash?: string | null;
56628
56885
  created_at?: string;
56629
56886
  customer_key: string;
56630
56887
  file_name: string;
56631
56888
  file_path: string;
56632
56889
  file_size?: number | null;
56890
+ floriday_sticker_id?: string | null;
56891
+ floriday_synced_at?: string | null;
56892
+ height_mm?: number | null;
56633
56893
  id?: string;
56634
56894
  mime_type?: string | null;
56895
+ source?: string;
56635
56896
  trade_item_key: string;
56636
56897
  updated_at?: string;
56637
56898
  uploaded_by?: string | null;
56899
+ width_mm?: number | null;
56638
56900
  };
56639
56901
  Update: {
56902
+ content_hash?: string | null;
56640
56903
  created_at?: string;
56641
56904
  customer_key?: string;
56642
56905
  file_name?: string;
56643
56906
  file_path?: string;
56644
56907
  file_size?: number | null;
56908
+ floriday_sticker_id?: string | null;
56909
+ floriday_synced_at?: string | null;
56910
+ height_mm?: number | null;
56645
56911
  id?: string;
56646
56912
  mime_type?: string | null;
56913
+ source?: string;
56647
56914
  trade_item_key?: string;
56648
56915
  updated_at?: string;
56649
56916
  uploaded_by?: string | null;
56917
+ width_mm?: number | null;
56650
56918
  };
56651
56919
  Relationships: [];
56652
56920
  };
@@ -65954,6 +66222,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
65954
66222
  Row: {
65955
66223
  actor: string | null;
65956
66224
  attempts: number;
66225
+ calc: import("../integrations/supabase/types").Json | null;
65957
66226
  cart_ref: string | null;
65958
66227
  created_at: string;
65959
66228
  db_action: string | null;
@@ -65964,6 +66233,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
65964
66233
  decision: string | null;
65965
66234
  duration_ms: number | null;
65966
66235
  error: string | null;
66236
+ error_class: string | null;
65967
66237
  external_action: string | null;
65968
66238
  external_ref: string | null;
65969
66239
  external_response: import("../integrations/supabase/types").Json | null;
@@ -65972,6 +66242,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
65972
66242
  id: string;
65973
66243
  input: import("../integrations/supabase/types").Json | null;
65974
66244
  next_attempt_at: string | null;
66245
+ next_step: string | null;
66246
+ node_id: string | null;
65975
66247
  order_ref: string | null;
65976
66248
  order_source: string | null;
65977
66249
  output: import("../integrations/supabase/types").Json | null;
@@ -65988,6 +66260,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
65988
66260
  Insert: {
65989
66261
  actor?: string | null;
65990
66262
  attempts?: number;
66263
+ calc?: import("../integrations/supabase/types").Json | null;
65991
66264
  cart_ref?: string | null;
65992
66265
  created_at?: string;
65993
66266
  db_action?: string | null;
@@ -65998,6 +66271,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
65998
66271
  decision?: string | null;
65999
66272
  duration_ms?: number | null;
66000
66273
  error?: string | null;
66274
+ error_class?: string | null;
66001
66275
  external_action?: string | null;
66002
66276
  external_ref?: string | null;
66003
66277
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -66006,6 +66280,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
66006
66280
  id?: string;
66007
66281
  input?: import("../integrations/supabase/types").Json | null;
66008
66282
  next_attempt_at?: string | null;
66283
+ next_step?: string | null;
66284
+ node_id?: string | null;
66009
66285
  order_ref?: string | null;
66010
66286
  order_source?: string | null;
66011
66287
  output?: import("../integrations/supabase/types").Json | null;
@@ -66022,6 +66298,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
66022
66298
  Update: {
66023
66299
  actor?: string | null;
66024
66300
  attempts?: number;
66301
+ calc?: import("../integrations/supabase/types").Json | null;
66025
66302
  cart_ref?: string | null;
66026
66303
  created_at?: string;
66027
66304
  db_action?: string | null;
@@ -66032,6 +66309,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
66032
66309
  decision?: string | null;
66033
66310
  duration_ms?: number | null;
66034
66311
  error?: string | null;
66312
+ error_class?: string | null;
66035
66313
  external_action?: string | null;
66036
66314
  external_ref?: string | null;
66037
66315
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -66040,6 +66318,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
66040
66318
  id?: string;
66041
66319
  input?: import("../integrations/supabase/types").Json | null;
66042
66320
  next_attempt_at?: string | null;
66321
+ next_step?: string | null;
66322
+ node_id?: string | null;
66043
66323
  order_ref?: string | null;
66044
66324
  order_source?: string | null;
66045
66325
  output?: import("../integrations/supabase/types").Json | null;
@@ -79544,12 +79824,37 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
79544
79824
  };
79545
79825
  Returns: string;
79546
79826
  };
79827
+ logistics_trace_all_orders: {
79828
+ Args: {
79829
+ p_limit?: number;
79830
+ p_search?: string;
79831
+ };
79832
+ Returns: import("../integrations/supabase/types").Json;
79833
+ };
79547
79834
  logistics_trace_batch: {
79548
79835
  Args: {
79549
79836
  p: import("../integrations/supabase/types").Json;
79550
79837
  };
79551
79838
  Returns: number;
79552
79839
  };
79840
+ logistics_trace_order_overview: {
79841
+ Args: {
79842
+ p_error_class?: string;
79843
+ p_limit?: number;
79844
+ p_search?: string;
79845
+ p_since?: string;
79846
+ p_source?: string;
79847
+ p_state?: string;
79848
+ p_step?: string;
79849
+ };
79850
+ Returns: import("../integrations/supabase/types").Json;
79851
+ };
79852
+ logistics_trace_order_state: {
79853
+ Args: {
79854
+ p_order_ref: string;
79855
+ };
79856
+ Returns: import("../integrations/supabase/types").Json;
79857
+ };
79553
79858
  logistics_trace_orders: {
79554
79859
  Args: {
79555
79860
  p_limit?: number;
@@ -79572,6 +79877,22 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
79572
79877
  };
79573
79878
  Returns: import("../integrations/supabase/types").Json;
79574
79879
  };
79880
+ logistics_trace_version_events: {
79881
+ Args: {
79882
+ p_from?: string;
79883
+ p_limit?: number;
79884
+ p_order_ref: string;
79885
+ p_to?: string;
79886
+ p_version_id: string;
79887
+ };
79888
+ Returns: import("../integrations/supabase/types").Json;
79889
+ };
79890
+ logistics_trace_versions: {
79891
+ Args: {
79892
+ p_order_ref: string;
79893
+ };
79894
+ Returns: import("../integrations/supabase/types").Json;
79895
+ };
79575
79896
  logistics_upsert_task: {
79576
79897
  Args: {
79577
79898
  p_buffer_ref: string;
@@ -83390,6 +83711,42 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
83390
83711
  };
83391
83712
  Relationships: [];
83392
83713
  };
83714
+ customer_assortment_items: {
83715
+ Row: {
83716
+ created_at: string;
83717
+ customer_key: string;
83718
+ id: string;
83719
+ in_assortment: boolean;
83720
+ manual_override: boolean;
83721
+ source: string;
83722
+ synced_at: string | null;
83723
+ trade_item_key: string;
83724
+ updated_at: string;
83725
+ };
83726
+ Insert: {
83727
+ created_at?: string;
83728
+ customer_key: string;
83729
+ id?: string;
83730
+ in_assortment?: boolean;
83731
+ manual_override?: boolean;
83732
+ source?: string;
83733
+ synced_at?: string | null;
83734
+ trade_item_key: string;
83735
+ updated_at?: string;
83736
+ };
83737
+ Update: {
83738
+ created_at?: string;
83739
+ customer_key?: string;
83740
+ id?: string;
83741
+ in_assortment?: boolean;
83742
+ manual_override?: boolean;
83743
+ source?: string;
83744
+ synced_at?: string | null;
83745
+ trade_item_key?: string;
83746
+ updated_at?: string;
83747
+ };
83748
+ Relationships: [];
83749
+ };
83393
83750
  customer_audit_log: {
83394
83751
  Row: {
83395
83752
  action: string;
@@ -83794,40 +84151,58 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
83794
84151
  };
83795
84152
  customer_product_stickers: {
83796
84153
  Row: {
84154
+ content_hash: string | null;
83797
84155
  created_at: string;
83798
84156
  customer_key: string;
83799
84157
  file_name: string;
83800
84158
  file_path: string;
83801
84159
  file_size: number | null;
84160
+ floriday_sticker_id: string | null;
84161
+ floriday_synced_at: string | null;
84162
+ height_mm: number | null;
83802
84163
  id: string;
83803
84164
  mime_type: string | null;
84165
+ source: string;
83804
84166
  trade_item_key: string;
83805
84167
  updated_at: string;
83806
84168
  uploaded_by: string | null;
84169
+ width_mm: number | null;
83807
84170
  };
83808
84171
  Insert: {
84172
+ content_hash?: string | null;
83809
84173
  created_at?: string;
83810
84174
  customer_key: string;
83811
84175
  file_name: string;
83812
84176
  file_path: string;
83813
84177
  file_size?: number | null;
84178
+ floriday_sticker_id?: string | null;
84179
+ floriday_synced_at?: string | null;
84180
+ height_mm?: number | null;
83814
84181
  id?: string;
83815
84182
  mime_type?: string | null;
84183
+ source?: string;
83816
84184
  trade_item_key: string;
83817
84185
  updated_at?: string;
83818
84186
  uploaded_by?: string | null;
84187
+ width_mm?: number | null;
83819
84188
  };
83820
84189
  Update: {
84190
+ content_hash?: string | null;
83821
84191
  created_at?: string;
83822
84192
  customer_key?: string;
83823
84193
  file_name?: string;
83824
84194
  file_path?: string;
83825
84195
  file_size?: number | null;
84196
+ floriday_sticker_id?: string | null;
84197
+ floriday_synced_at?: string | null;
84198
+ height_mm?: number | null;
83826
84199
  id?: string;
83827
84200
  mime_type?: string | null;
84201
+ source?: string;
83828
84202
  trade_item_key?: string;
83829
84203
  updated_at?: string;
83830
84204
  uploaded_by?: string | null;
84205
+ width_mm?: number | null;
83831
84206
  };
83832
84207
  Relationships: [];
83833
84208
  };
@@ -93135,6 +93510,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
93135
93510
  Row: {
93136
93511
  actor: string | null;
93137
93512
  attempts: number;
93513
+ calc: import("../integrations/supabase/types").Json | null;
93138
93514
  cart_ref: string | null;
93139
93515
  created_at: string;
93140
93516
  db_action: string | null;
@@ -93145,6 +93521,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
93145
93521
  decision: string | null;
93146
93522
  duration_ms: number | null;
93147
93523
  error: string | null;
93524
+ error_class: string | null;
93148
93525
  external_action: string | null;
93149
93526
  external_ref: string | null;
93150
93527
  external_response: import("../integrations/supabase/types").Json | null;
@@ -93153,6 +93530,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
93153
93530
  id: string;
93154
93531
  input: import("../integrations/supabase/types").Json | null;
93155
93532
  next_attempt_at: string | null;
93533
+ next_step: string | null;
93534
+ node_id: string | null;
93156
93535
  order_ref: string | null;
93157
93536
  order_source: string | null;
93158
93537
  output: import("../integrations/supabase/types").Json | null;
@@ -93169,6 +93548,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
93169
93548
  Insert: {
93170
93549
  actor?: string | null;
93171
93550
  attempts?: number;
93551
+ calc?: import("../integrations/supabase/types").Json | null;
93172
93552
  cart_ref?: string | null;
93173
93553
  created_at?: string;
93174
93554
  db_action?: string | null;
@@ -93179,6 +93559,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
93179
93559
  decision?: string | null;
93180
93560
  duration_ms?: number | null;
93181
93561
  error?: string | null;
93562
+ error_class?: string | null;
93182
93563
  external_action?: string | null;
93183
93564
  external_ref?: string | null;
93184
93565
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -93187,6 +93568,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
93187
93568
  id?: string;
93188
93569
  input?: import("../integrations/supabase/types").Json | null;
93189
93570
  next_attempt_at?: string | null;
93571
+ next_step?: string | null;
93572
+ node_id?: string | null;
93190
93573
  order_ref?: string | null;
93191
93574
  order_source?: string | null;
93192
93575
  output?: import("../integrations/supabase/types").Json | null;
@@ -93203,6 +93586,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
93203
93586
  Update: {
93204
93587
  actor?: string | null;
93205
93588
  attempts?: number;
93589
+ calc?: import("../integrations/supabase/types").Json | null;
93206
93590
  cart_ref?: string | null;
93207
93591
  created_at?: string;
93208
93592
  db_action?: string | null;
@@ -93213,6 +93597,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
93213
93597
  decision?: string | null;
93214
93598
  duration_ms?: number | null;
93215
93599
  error?: string | null;
93600
+ error_class?: string | null;
93216
93601
  external_action?: string | null;
93217
93602
  external_ref?: string | null;
93218
93603
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -93221,6 +93606,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
93221
93606
  id?: string;
93222
93607
  input?: import("../integrations/supabase/types").Json | null;
93223
93608
  next_attempt_at?: string | null;
93609
+ next_step?: string | null;
93610
+ node_id?: string | null;
93224
93611
  order_ref?: string | null;
93225
93612
  order_source?: string | null;
93226
93613
  output?: import("../integrations/supabase/types").Json | null;
@@ -106725,12 +107112,37 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
106725
107112
  };
106726
107113
  Returns: string;
106727
107114
  };
107115
+ logistics_trace_all_orders: {
107116
+ Args: {
107117
+ p_limit?: number;
107118
+ p_search?: string;
107119
+ };
107120
+ Returns: import("../integrations/supabase/types").Json;
107121
+ };
106728
107122
  logistics_trace_batch: {
106729
107123
  Args: {
106730
107124
  p: import("../integrations/supabase/types").Json;
106731
107125
  };
106732
107126
  Returns: number;
106733
107127
  };
107128
+ logistics_trace_order_overview: {
107129
+ Args: {
107130
+ p_error_class?: string;
107131
+ p_limit?: number;
107132
+ p_search?: string;
107133
+ p_since?: string;
107134
+ p_source?: string;
107135
+ p_state?: string;
107136
+ p_step?: string;
107137
+ };
107138
+ Returns: import("../integrations/supabase/types").Json;
107139
+ };
107140
+ logistics_trace_order_state: {
107141
+ Args: {
107142
+ p_order_ref: string;
107143
+ };
107144
+ Returns: import("../integrations/supabase/types").Json;
107145
+ };
106734
107146
  logistics_trace_orders: {
106735
107147
  Args: {
106736
107148
  p_limit?: number;
@@ -106753,6 +107165,22 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
106753
107165
  };
106754
107166
  Returns: import("../integrations/supabase/types").Json;
106755
107167
  };
107168
+ logistics_trace_version_events: {
107169
+ Args: {
107170
+ p_from?: string;
107171
+ p_limit?: number;
107172
+ p_order_ref: string;
107173
+ p_to?: string;
107174
+ p_version_id: string;
107175
+ };
107176
+ Returns: import("../integrations/supabase/types").Json;
107177
+ };
107178
+ logistics_trace_versions: {
107179
+ Args: {
107180
+ p_order_ref: string;
107181
+ };
107182
+ Returns: import("../integrations/supabase/types").Json;
107183
+ };
106756
107184
  logistics_upsert_task: {
106757
107185
  Args: {
106758
107186
  p_buffer_ref: string;
@@ -110574,6 +111002,42 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
110574
111002
  };
110575
111003
  Relationships: [];
110576
111004
  };
111005
+ customer_assortment_items: {
111006
+ Row: {
111007
+ created_at: string;
111008
+ customer_key: string;
111009
+ id: string;
111010
+ in_assortment: boolean;
111011
+ manual_override: boolean;
111012
+ source: string;
111013
+ synced_at: string | null;
111014
+ trade_item_key: string;
111015
+ updated_at: string;
111016
+ };
111017
+ Insert: {
111018
+ created_at?: string;
111019
+ customer_key: string;
111020
+ id?: string;
111021
+ in_assortment?: boolean;
111022
+ manual_override?: boolean;
111023
+ source?: string;
111024
+ synced_at?: string | null;
111025
+ trade_item_key: string;
111026
+ updated_at?: string;
111027
+ };
111028
+ Update: {
111029
+ created_at?: string;
111030
+ customer_key?: string;
111031
+ id?: string;
111032
+ in_assortment?: boolean;
111033
+ manual_override?: boolean;
111034
+ source?: string;
111035
+ synced_at?: string | null;
111036
+ trade_item_key?: string;
111037
+ updated_at?: string;
111038
+ };
111039
+ Relationships: [];
111040
+ };
110577
111041
  customer_audit_log: {
110578
111042
  Row: {
110579
111043
  action: string;
@@ -110978,40 +111442,58 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
110978
111442
  };
110979
111443
  customer_product_stickers: {
110980
111444
  Row: {
111445
+ content_hash: string | null;
110981
111446
  created_at: string;
110982
111447
  customer_key: string;
110983
111448
  file_name: string;
110984
111449
  file_path: string;
110985
111450
  file_size: number | null;
111451
+ floriday_sticker_id: string | null;
111452
+ floriday_synced_at: string | null;
111453
+ height_mm: number | null;
110986
111454
  id: string;
110987
111455
  mime_type: string | null;
111456
+ source: string;
110988
111457
  trade_item_key: string;
110989
111458
  updated_at: string;
110990
111459
  uploaded_by: string | null;
111460
+ width_mm: number | null;
110991
111461
  };
110992
111462
  Insert: {
111463
+ content_hash?: string | null;
110993
111464
  created_at?: string;
110994
111465
  customer_key: string;
110995
111466
  file_name: string;
110996
111467
  file_path: string;
110997
111468
  file_size?: number | null;
111469
+ floriday_sticker_id?: string | null;
111470
+ floriday_synced_at?: string | null;
111471
+ height_mm?: number | null;
110998
111472
  id?: string;
110999
111473
  mime_type?: string | null;
111474
+ source?: string;
111000
111475
  trade_item_key: string;
111001
111476
  updated_at?: string;
111002
111477
  uploaded_by?: string | null;
111478
+ width_mm?: number | null;
111003
111479
  };
111004
111480
  Update: {
111481
+ content_hash?: string | null;
111005
111482
  created_at?: string;
111006
111483
  customer_key?: string;
111007
111484
  file_name?: string;
111008
111485
  file_path?: string;
111009
111486
  file_size?: number | null;
111487
+ floriday_sticker_id?: string | null;
111488
+ floriday_synced_at?: string | null;
111489
+ height_mm?: number | null;
111010
111490
  id?: string;
111011
111491
  mime_type?: string | null;
111492
+ source?: string;
111012
111493
  trade_item_key?: string;
111013
111494
  updated_at?: string;
111014
111495
  uploaded_by?: string | null;
111496
+ width_mm?: number | null;
111015
111497
  };
111016
111498
  Relationships: [];
111017
111499
  };
@@ -120319,6 +120801,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
120319
120801
  Row: {
120320
120802
  actor: string | null;
120321
120803
  attempts: number;
120804
+ calc: import("../integrations/supabase/types").Json | null;
120322
120805
  cart_ref: string | null;
120323
120806
  created_at: string;
120324
120807
  db_action: string | null;
@@ -120329,6 +120812,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
120329
120812
  decision: string | null;
120330
120813
  duration_ms: number | null;
120331
120814
  error: string | null;
120815
+ error_class: string | null;
120332
120816
  external_action: string | null;
120333
120817
  external_ref: string | null;
120334
120818
  external_response: import("../integrations/supabase/types").Json | null;
@@ -120337,6 +120821,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
120337
120821
  id: string;
120338
120822
  input: import("../integrations/supabase/types").Json | null;
120339
120823
  next_attempt_at: string | null;
120824
+ next_step: string | null;
120825
+ node_id: string | null;
120340
120826
  order_ref: string | null;
120341
120827
  order_source: string | null;
120342
120828
  output: import("../integrations/supabase/types").Json | null;
@@ -120353,6 +120839,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
120353
120839
  Insert: {
120354
120840
  actor?: string | null;
120355
120841
  attempts?: number;
120842
+ calc?: import("../integrations/supabase/types").Json | null;
120356
120843
  cart_ref?: string | null;
120357
120844
  created_at?: string;
120358
120845
  db_action?: string | null;
@@ -120363,6 +120850,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
120363
120850
  decision?: string | null;
120364
120851
  duration_ms?: number | null;
120365
120852
  error?: string | null;
120853
+ error_class?: string | null;
120366
120854
  external_action?: string | null;
120367
120855
  external_ref?: string | null;
120368
120856
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -120371,6 +120859,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
120371
120859
  id?: string;
120372
120860
  input?: import("../integrations/supabase/types").Json | null;
120373
120861
  next_attempt_at?: string | null;
120862
+ next_step?: string | null;
120863
+ node_id?: string | null;
120374
120864
  order_ref?: string | null;
120375
120865
  order_source?: string | null;
120376
120866
  output?: import("../integrations/supabase/types").Json | null;
@@ -120387,6 +120877,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
120387
120877
  Update: {
120388
120878
  actor?: string | null;
120389
120879
  attempts?: number;
120880
+ calc?: import("../integrations/supabase/types").Json | null;
120390
120881
  cart_ref?: string | null;
120391
120882
  created_at?: string;
120392
120883
  db_action?: string | null;
@@ -120397,6 +120888,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
120397
120888
  decision?: string | null;
120398
120889
  duration_ms?: number | null;
120399
120890
  error?: string | null;
120891
+ error_class?: string | null;
120400
120892
  external_action?: string | null;
120401
120893
  external_ref?: string | null;
120402
120894
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -120405,6 +120897,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
120405
120897
  id?: string;
120406
120898
  input?: import("../integrations/supabase/types").Json | null;
120407
120899
  next_attempt_at?: string | null;
120900
+ next_step?: string | null;
120901
+ node_id?: string | null;
120408
120902
  order_ref?: string | null;
120409
120903
  order_source?: string | null;
120410
120904
  output?: import("../integrations/supabase/types").Json | null;
@@ -133909,12 +134403,37 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
133909
134403
  };
133910
134404
  Returns: string;
133911
134405
  };
134406
+ logistics_trace_all_orders: {
134407
+ Args: {
134408
+ p_limit?: number;
134409
+ p_search?: string;
134410
+ };
134411
+ Returns: import("../integrations/supabase/types").Json;
134412
+ };
133912
134413
  logistics_trace_batch: {
133913
134414
  Args: {
133914
134415
  p: import("../integrations/supabase/types").Json;
133915
134416
  };
133916
134417
  Returns: number;
133917
134418
  };
134419
+ logistics_trace_order_overview: {
134420
+ Args: {
134421
+ p_error_class?: string;
134422
+ p_limit?: number;
134423
+ p_search?: string;
134424
+ p_since?: string;
134425
+ p_source?: string;
134426
+ p_state?: string;
134427
+ p_step?: string;
134428
+ };
134429
+ Returns: import("../integrations/supabase/types").Json;
134430
+ };
134431
+ logistics_trace_order_state: {
134432
+ Args: {
134433
+ p_order_ref: string;
134434
+ };
134435
+ Returns: import("../integrations/supabase/types").Json;
134436
+ };
133918
134437
  logistics_trace_orders: {
133919
134438
  Args: {
133920
134439
  p_limit?: number;
@@ -133937,6 +134456,22 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
133937
134456
  };
133938
134457
  Returns: import("../integrations/supabase/types").Json;
133939
134458
  };
134459
+ logistics_trace_version_events: {
134460
+ Args: {
134461
+ p_from?: string;
134462
+ p_limit?: number;
134463
+ p_order_ref: string;
134464
+ p_to?: string;
134465
+ p_version_id: string;
134466
+ };
134467
+ Returns: import("../integrations/supabase/types").Json;
134468
+ };
134469
+ logistics_trace_versions: {
134470
+ Args: {
134471
+ p_order_ref: string;
134472
+ };
134473
+ Returns: import("../integrations/supabase/types").Json;
134474
+ };
133940
134475
  logistics_upsert_task: {
133941
134476
  Args: {
133942
134477
  p_buffer_ref: string;
@@ -137768,6 +138303,42 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
137768
138303
  };
137769
138304
  Relationships: [];
137770
138305
  };
138306
+ customer_assortment_items: {
138307
+ Row: {
138308
+ created_at: string;
138309
+ customer_key: string;
138310
+ id: string;
138311
+ in_assortment: boolean;
138312
+ manual_override: boolean;
138313
+ source: string;
138314
+ synced_at: string | null;
138315
+ trade_item_key: string;
138316
+ updated_at: string;
138317
+ };
138318
+ Insert: {
138319
+ created_at?: string;
138320
+ customer_key: string;
138321
+ id?: string;
138322
+ in_assortment?: boolean;
138323
+ manual_override?: boolean;
138324
+ source?: string;
138325
+ synced_at?: string | null;
138326
+ trade_item_key: string;
138327
+ updated_at?: string;
138328
+ };
138329
+ Update: {
138330
+ created_at?: string;
138331
+ customer_key?: string;
138332
+ id?: string;
138333
+ in_assortment?: boolean;
138334
+ manual_override?: boolean;
138335
+ source?: string;
138336
+ synced_at?: string | null;
138337
+ trade_item_key?: string;
138338
+ updated_at?: string;
138339
+ };
138340
+ Relationships: [];
138341
+ };
137771
138342
  customer_audit_log: {
137772
138343
  Row: {
137773
138344
  action: string;
@@ -138172,40 +138743,58 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
138172
138743
  };
138173
138744
  customer_product_stickers: {
138174
138745
  Row: {
138746
+ content_hash: string | null;
138175
138747
  created_at: string;
138176
138748
  customer_key: string;
138177
138749
  file_name: string;
138178
138750
  file_path: string;
138179
138751
  file_size: number | null;
138752
+ floriday_sticker_id: string | null;
138753
+ floriday_synced_at: string | null;
138754
+ height_mm: number | null;
138180
138755
  id: string;
138181
138756
  mime_type: string | null;
138757
+ source: string;
138182
138758
  trade_item_key: string;
138183
138759
  updated_at: string;
138184
138760
  uploaded_by: string | null;
138761
+ width_mm: number | null;
138185
138762
  };
138186
138763
  Insert: {
138764
+ content_hash?: string | null;
138187
138765
  created_at?: string;
138188
138766
  customer_key: string;
138189
138767
  file_name: string;
138190
138768
  file_path: string;
138191
138769
  file_size?: number | null;
138770
+ floriday_sticker_id?: string | null;
138771
+ floriday_synced_at?: string | null;
138772
+ height_mm?: number | null;
138192
138773
  id?: string;
138193
138774
  mime_type?: string | null;
138775
+ source?: string;
138194
138776
  trade_item_key: string;
138195
138777
  updated_at?: string;
138196
138778
  uploaded_by?: string | null;
138779
+ width_mm?: number | null;
138197
138780
  };
138198
138781
  Update: {
138782
+ content_hash?: string | null;
138199
138783
  created_at?: string;
138200
138784
  customer_key?: string;
138201
138785
  file_name?: string;
138202
138786
  file_path?: string;
138203
138787
  file_size?: number | null;
138788
+ floriday_sticker_id?: string | null;
138789
+ floriday_synced_at?: string | null;
138790
+ height_mm?: number | null;
138204
138791
  id?: string;
138205
138792
  mime_type?: string | null;
138793
+ source?: string;
138206
138794
  trade_item_key?: string;
138207
138795
  updated_at?: string;
138208
138796
  uploaded_by?: string | null;
138797
+ width_mm?: number | null;
138209
138798
  };
138210
138799
  Relationships: [];
138211
138800
  };
@@ -147513,6 +148102,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
147513
148102
  Row: {
147514
148103
  actor: string | null;
147515
148104
  attempts: number;
148105
+ calc: import("../integrations/supabase/types").Json | null;
147516
148106
  cart_ref: string | null;
147517
148107
  created_at: string;
147518
148108
  db_action: string | null;
@@ -147523,6 +148113,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
147523
148113
  decision: string | null;
147524
148114
  duration_ms: number | null;
147525
148115
  error: string | null;
148116
+ error_class: string | null;
147526
148117
  external_action: string | null;
147527
148118
  external_ref: string | null;
147528
148119
  external_response: import("../integrations/supabase/types").Json | null;
@@ -147531,6 +148122,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
147531
148122
  id: string;
147532
148123
  input: import("../integrations/supabase/types").Json | null;
147533
148124
  next_attempt_at: string | null;
148125
+ next_step: string | null;
148126
+ node_id: string | null;
147534
148127
  order_ref: string | null;
147535
148128
  order_source: string | null;
147536
148129
  output: import("../integrations/supabase/types").Json | null;
@@ -147547,6 +148140,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
147547
148140
  Insert: {
147548
148141
  actor?: string | null;
147549
148142
  attempts?: number;
148143
+ calc?: import("../integrations/supabase/types").Json | null;
147550
148144
  cart_ref?: string | null;
147551
148145
  created_at?: string;
147552
148146
  db_action?: string | null;
@@ -147557,6 +148151,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
147557
148151
  decision?: string | null;
147558
148152
  duration_ms?: number | null;
147559
148153
  error?: string | null;
148154
+ error_class?: string | null;
147560
148155
  external_action?: string | null;
147561
148156
  external_ref?: string | null;
147562
148157
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -147565,6 +148160,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
147565
148160
  id?: string;
147566
148161
  input?: import("../integrations/supabase/types").Json | null;
147567
148162
  next_attempt_at?: string | null;
148163
+ next_step?: string | null;
148164
+ node_id?: string | null;
147568
148165
  order_ref?: string | null;
147569
148166
  order_source?: string | null;
147570
148167
  output?: import("../integrations/supabase/types").Json | null;
@@ -147581,6 +148178,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
147581
148178
  Update: {
147582
148179
  actor?: string | null;
147583
148180
  attempts?: number;
148181
+ calc?: import("../integrations/supabase/types").Json | null;
147584
148182
  cart_ref?: string | null;
147585
148183
  created_at?: string;
147586
148184
  db_action?: string | null;
@@ -147591,6 +148189,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
147591
148189
  decision?: string | null;
147592
148190
  duration_ms?: number | null;
147593
148191
  error?: string | null;
148192
+ error_class?: string | null;
147594
148193
  external_action?: string | null;
147595
148194
  external_ref?: string | null;
147596
148195
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -147599,6 +148198,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
147599
148198
  id?: string;
147600
148199
  input?: import("../integrations/supabase/types").Json | null;
147601
148200
  next_attempt_at?: string | null;
148201
+ next_step?: string | null;
148202
+ node_id?: string | null;
147602
148203
  order_ref?: string | null;
147603
148204
  order_source?: string | null;
147604
148205
  output?: import("../integrations/supabase/types").Json | null;
@@ -161103,12 +161704,37 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161103
161704
  };
161104
161705
  Returns: string;
161105
161706
  };
161707
+ logistics_trace_all_orders: {
161708
+ Args: {
161709
+ p_limit?: number;
161710
+ p_search?: string;
161711
+ };
161712
+ Returns: import("../integrations/supabase/types").Json;
161713
+ };
161106
161714
  logistics_trace_batch: {
161107
161715
  Args: {
161108
161716
  p: import("../integrations/supabase/types").Json;
161109
161717
  };
161110
161718
  Returns: number;
161111
161719
  };
161720
+ logistics_trace_order_overview: {
161721
+ Args: {
161722
+ p_error_class?: string;
161723
+ p_limit?: number;
161724
+ p_search?: string;
161725
+ p_since?: string;
161726
+ p_source?: string;
161727
+ p_state?: string;
161728
+ p_step?: string;
161729
+ };
161730
+ Returns: import("../integrations/supabase/types").Json;
161731
+ };
161732
+ logistics_trace_order_state: {
161733
+ Args: {
161734
+ p_order_ref: string;
161735
+ };
161736
+ Returns: import("../integrations/supabase/types").Json;
161737
+ };
161112
161738
  logistics_trace_orders: {
161113
161739
  Args: {
161114
161740
  p_limit?: number;
@@ -161131,6 +161757,22 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161131
161757
  };
161132
161758
  Returns: import("../integrations/supabase/types").Json;
161133
161759
  };
161760
+ logistics_trace_version_events: {
161761
+ Args: {
161762
+ p_from?: string;
161763
+ p_limit?: number;
161764
+ p_order_ref: string;
161765
+ p_to?: string;
161766
+ p_version_id: string;
161767
+ };
161768
+ Returns: import("../integrations/supabase/types").Json;
161769
+ };
161770
+ logistics_trace_versions: {
161771
+ Args: {
161772
+ p_order_ref: string;
161773
+ };
161774
+ Returns: import("../integrations/supabase/types").Json;
161775
+ };
161134
161776
  logistics_upsert_task: {
161135
161777
  Args: {
161136
161778
  p_buffer_ref: string;