@flowselections/floriday-klanten-module 1.0.36 → 1.0.37

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 (67) hide show
  1. package/dist-lib/components/klanten/BulkStickerUploadDialog.d.ts.map +1 -1
  2. package/dist-lib/components/klanten/BulkStickerUploadDialog.js +30 -8
  3. package/dist-lib/components/klanten/CustomerAssortmentTab.d.ts.map +1 -1
  4. package/dist-lib/components/klanten/CustomerAssortmentTab.js +48 -10
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts +129 -0
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.d.ts +129 -0
  8. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts +129 -0
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +129 -0
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/accounting/twinfield/client.server.d.ts +7 -8
  14. package/dist-lib/lib/accounting/twinfield/client.server.d.ts.map +1 -1
  15. package/dist-lib/lib/accounting/twinfield/client.server.js +147 -78
  16. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +387 -0
  17. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/accounting/twinfield/worker.server.d.ts.map +1 -1
  19. package/dist-lib/lib/accounting/twinfield/worker.server.js +17 -0
  20. package/dist-lib/lib/accounting.functions.d.ts +387 -0
  21. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/customer-analytics.functions.d.ts +129 -0
  23. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/customer-assortment.functions.d.ts +132 -3
  25. package/dist-lib/lib/customer-assortment.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/customer-assortment.functions.js +12 -0
  27. package/dist-lib/lib/customer-notes.functions.d.ts +258 -0
  28. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/customer-revenue.functions.d.ts +129 -0
  30. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/customer-stickers.functions.d.ts +1165 -0
  32. package/dist-lib/lib/customer-stickers.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/customer-stickers.functions.js +122 -75
  34. package/dist-lib/lib/customers.functions.d.ts +1161 -0
  35. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/delivery-locations.functions.d.ts +645 -0
  37. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/external-customers.functions.d.ts +516 -0
  39. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/floriday-assortment.functions.d.ts +129 -0
  41. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/floriday-discounts.functions.d.ts +258 -0
  43. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-price-import.functions.d.ts +258 -0
  45. package/dist-lib/lib/floriday-price-import.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/floriday-sticker-import.functions.d.ts +27323 -0
  47. package/dist-lib/lib/floriday-sticker-import.functions.d.ts.map +1 -0
  48. package/dist-lib/lib/floriday-sticker-import.functions.js +307 -0
  49. package/dist-lib/lib/floriday-trade-items.functions.d.ts +129 -0
  50. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/local-discounts.functions.d.ts +903 -0
  52. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/logistics-events.functions.d.ts +129 -0
  54. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/logistics-strategy.functions.d.ts +516 -0
  56. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/overdue-invoices.functions.d.ts +129 -0
  58. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  59. package/dist-lib/lib/price-groups-local.functions.d.ts +1677 -0
  60. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/price-groups.functions.d.ts +129 -0
  62. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/twinfield-adopt.functions.d.ts +258 -0
  64. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  65. package/dist-lib/lib/twinfield-ledger.functions.d.ts +129 -0
  66. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  67. package/package.json +2 -2
@@ -1864,6 +1864,42 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
1864
1864
  };
1865
1865
  Relationships: [];
1866
1866
  };
1867
+ customer_assortment_items: {
1868
+ Row: {
1869
+ created_at: string;
1870
+ customer_key: string;
1871
+ id: string;
1872
+ in_assortment: boolean;
1873
+ manual_override: boolean;
1874
+ source: string;
1875
+ synced_at: string | null;
1876
+ trade_item_key: string;
1877
+ updated_at: string;
1878
+ };
1879
+ Insert: {
1880
+ created_at?: string;
1881
+ customer_key: string;
1882
+ id?: string;
1883
+ in_assortment?: boolean;
1884
+ manual_override?: boolean;
1885
+ source?: string;
1886
+ synced_at?: string | null;
1887
+ trade_item_key: string;
1888
+ updated_at?: string;
1889
+ };
1890
+ Update: {
1891
+ created_at?: string;
1892
+ customer_key?: string;
1893
+ id?: string;
1894
+ in_assortment?: boolean;
1895
+ manual_override?: boolean;
1896
+ source?: string;
1897
+ synced_at?: string | null;
1898
+ trade_item_key?: string;
1899
+ updated_at?: string;
1900
+ };
1901
+ Relationships: [];
1902
+ };
1867
1903
  customer_audit_log: {
1868
1904
  Row: {
1869
1905
  action: string;
@@ -2268,40 +2304,58 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
2268
2304
  };
2269
2305
  customer_product_stickers: {
2270
2306
  Row: {
2307
+ content_hash: string | null;
2271
2308
  created_at: string;
2272
2309
  customer_key: string;
2273
2310
  file_name: string;
2274
2311
  file_path: string;
2275
2312
  file_size: number | null;
2313
+ floriday_sticker_id: string | null;
2314
+ floriday_synced_at: string | null;
2315
+ height_mm: number | null;
2276
2316
  id: string;
2277
2317
  mime_type: string | null;
2318
+ source: string;
2278
2319
  trade_item_key: string;
2279
2320
  updated_at: string;
2280
2321
  uploaded_by: string | null;
2322
+ width_mm: number | null;
2281
2323
  };
2282
2324
  Insert: {
2325
+ content_hash?: string | null;
2283
2326
  created_at?: string;
2284
2327
  customer_key: string;
2285
2328
  file_name: string;
2286
2329
  file_path: string;
2287
2330
  file_size?: number | null;
2331
+ floriday_sticker_id?: string | null;
2332
+ floriday_synced_at?: string | null;
2333
+ height_mm?: number | null;
2288
2334
  id?: string;
2289
2335
  mime_type?: string | null;
2336
+ source?: string;
2290
2337
  trade_item_key: string;
2291
2338
  updated_at?: string;
2292
2339
  uploaded_by?: string | null;
2340
+ width_mm?: number | null;
2293
2341
  };
2294
2342
  Update: {
2343
+ content_hash?: string | null;
2295
2344
  created_at?: string;
2296
2345
  customer_key?: string;
2297
2346
  file_name?: string;
2298
2347
  file_path?: string;
2299
2348
  file_size?: number | null;
2349
+ floriday_sticker_id?: string | null;
2350
+ floriday_synced_at?: string | null;
2351
+ height_mm?: number | null;
2300
2352
  id?: string;
2301
2353
  mime_type?: string | null;
2354
+ source?: string;
2302
2355
  trade_item_key?: string;
2303
2356
  updated_at?: string;
2304
2357
  uploaded_by?: string | null;
2358
+ width_mm?: number | null;
2305
2359
  };
2306
2360
  Relationships: [];
2307
2361
  };
@@ -11609,6 +11663,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11609
11663
  Row: {
11610
11664
  actor: string | null;
11611
11665
  attempts: number;
11666
+ calc: import("../integrations/supabase/types").Json | null;
11612
11667
  cart_ref: string | null;
11613
11668
  created_at: string;
11614
11669
  db_action: string | null;
@@ -11619,6 +11674,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11619
11674
  decision: string | null;
11620
11675
  duration_ms: number | null;
11621
11676
  error: string | null;
11677
+ error_class: string | null;
11622
11678
  external_action: string | null;
11623
11679
  external_ref: string | null;
11624
11680
  external_response: import("../integrations/supabase/types").Json | null;
@@ -11627,6 +11683,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11627
11683
  id: string;
11628
11684
  input: import("../integrations/supabase/types").Json | null;
11629
11685
  next_attempt_at: string | null;
11686
+ next_step: string | null;
11687
+ node_id: string | null;
11630
11688
  order_ref: string | null;
11631
11689
  order_source: string | null;
11632
11690
  output: import("../integrations/supabase/types").Json | null;
@@ -11643,6 +11701,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11643
11701
  Insert: {
11644
11702
  actor?: string | null;
11645
11703
  attempts?: number;
11704
+ calc?: import("../integrations/supabase/types").Json | null;
11646
11705
  cart_ref?: string | null;
11647
11706
  created_at?: string;
11648
11707
  db_action?: string | null;
@@ -11653,6 +11712,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11653
11712
  decision?: string | null;
11654
11713
  duration_ms?: number | null;
11655
11714
  error?: string | null;
11715
+ error_class?: string | null;
11656
11716
  external_action?: string | null;
11657
11717
  external_ref?: string | null;
11658
11718
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11661,6 +11721,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11661
11721
  id?: string;
11662
11722
  input?: import("../integrations/supabase/types").Json | null;
11663
11723
  next_attempt_at?: string | null;
11724
+ next_step?: string | null;
11725
+ node_id?: string | null;
11664
11726
  order_ref?: string | null;
11665
11727
  order_source?: string | null;
11666
11728
  output?: import("../integrations/supabase/types").Json | null;
@@ -11677,6 +11739,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11677
11739
  Update: {
11678
11740
  actor?: string | null;
11679
11741
  attempts?: number;
11742
+ calc?: import("../integrations/supabase/types").Json | null;
11680
11743
  cart_ref?: string | null;
11681
11744
  created_at?: string;
11682
11745
  db_action?: string | null;
@@ -11687,6 +11750,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11687
11750
  decision?: string | null;
11688
11751
  duration_ms?: number | null;
11689
11752
  error?: string | null;
11753
+ error_class?: string | null;
11690
11754
  external_action?: string | null;
11691
11755
  external_ref?: string | null;
11692
11756
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11695,6 +11759,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11695
11759
  id?: string;
11696
11760
  input?: import("../integrations/supabase/types").Json | null;
11697
11761
  next_attempt_at?: string | null;
11762
+ next_step?: string | null;
11763
+ node_id?: string | null;
11698
11764
  order_ref?: string | null;
11699
11765
  order_source?: string | null;
11700
11766
  output?: import("../integrations/supabase/types").Json | null;
@@ -25199,12 +25265,59 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
25199
25265
  };
25200
25266
  Returns: string;
25201
25267
  };
25268
+ logistics_trace_all_orders: {
25269
+ Args: {
25270
+ p_limit?: number;
25271
+ p_search?: string;
25272
+ };
25273
+ Returns: import("../integrations/supabase/types").Json;
25274
+ };
25202
25275
  logistics_trace_batch: {
25203
25276
  Args: {
25204
25277
  p: import("../integrations/supabase/types").Json;
25205
25278
  };
25206
25279
  Returns: number;
25207
25280
  };
25281
+ logistics_trace_node: {
25282
+ Args: {
25283
+ p_op?: string;
25284
+ p_status?: string;
25285
+ p_table: string;
25286
+ };
25287
+ Returns: string;
25288
+ };
25289
+ logistics_trace_order_overview: {
25290
+ Args: {
25291
+ p_error_class?: string;
25292
+ p_limit?: number;
25293
+ p_search?: string;
25294
+ p_since?: string;
25295
+ p_source?: string;
25296
+ p_state?: string;
25297
+ p_step?: string;
25298
+ };
25299
+ Returns: import("../integrations/supabase/types").Json;
25300
+ };
25301
+ logistics_trace_order_state: {
25302
+ Args: {
25303
+ p_order_ref: string;
25304
+ };
25305
+ Returns: import("../integrations/supabase/types").Json;
25306
+ };
25307
+ logistics_trace_order_step: {
25308
+ Args: {
25309
+ p_class?: string;
25310
+ p_decision?: string;
25311
+ p_error?: string;
25312
+ p_next_step?: string;
25313
+ p_node: string;
25314
+ p_order_id: string;
25315
+ p_reason?: string;
25316
+ p_status: string;
25317
+ p_step: string;
25318
+ };
25319
+ Returns: undefined;
25320
+ };
25208
25321
  logistics_trace_orders: {
25209
25322
  Args: {
25210
25323
  p_limit?: number;
@@ -25227,6 +25340,22 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
25227
25340
  };
25228
25341
  Returns: import("../integrations/supabase/types").Json;
25229
25342
  };
25343
+ logistics_trace_version_events: {
25344
+ Args: {
25345
+ p_from?: string;
25346
+ p_limit?: number;
25347
+ p_order_ref: string;
25348
+ p_to?: string;
25349
+ p_version_id: string;
25350
+ };
25351
+ Returns: import("../integrations/supabase/types").Json;
25352
+ };
25353
+ logistics_trace_versions: {
25354
+ Args: {
25355
+ p_order_ref: string;
25356
+ };
25357
+ Returns: import("../integrations/supabase/types").Json;
25358
+ };
25230
25359
  logistics_upsert_task: {
25231
25360
  Args: {
25232
25361
  p_buffer_ref: string;
@@ -29054,6 +29183,42 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
29054
29183
  };
29055
29184
  Relationships: [];
29056
29185
  };
29186
+ customer_assortment_items: {
29187
+ Row: {
29188
+ created_at: string;
29189
+ customer_key: string;
29190
+ id: string;
29191
+ in_assortment: boolean;
29192
+ manual_override: boolean;
29193
+ source: string;
29194
+ synced_at: string | null;
29195
+ trade_item_key: string;
29196
+ updated_at: string;
29197
+ };
29198
+ Insert: {
29199
+ created_at?: string;
29200
+ customer_key: string;
29201
+ id?: string;
29202
+ in_assortment?: boolean;
29203
+ manual_override?: boolean;
29204
+ source?: string;
29205
+ synced_at?: string | null;
29206
+ trade_item_key: string;
29207
+ updated_at?: string;
29208
+ };
29209
+ Update: {
29210
+ created_at?: string;
29211
+ customer_key?: string;
29212
+ id?: string;
29213
+ in_assortment?: boolean;
29214
+ manual_override?: boolean;
29215
+ source?: string;
29216
+ synced_at?: string | null;
29217
+ trade_item_key?: string;
29218
+ updated_at?: string;
29219
+ };
29220
+ Relationships: [];
29221
+ };
29057
29222
  customer_audit_log: {
29058
29223
  Row: {
29059
29224
  action: string;
@@ -29458,40 +29623,58 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
29458
29623
  };
29459
29624
  customer_product_stickers: {
29460
29625
  Row: {
29626
+ content_hash: string | null;
29461
29627
  created_at: string;
29462
29628
  customer_key: string;
29463
29629
  file_name: string;
29464
29630
  file_path: string;
29465
29631
  file_size: number | null;
29632
+ floriday_sticker_id: string | null;
29633
+ floriday_synced_at: string | null;
29634
+ height_mm: number | null;
29466
29635
  id: string;
29467
29636
  mime_type: string | null;
29637
+ source: string;
29468
29638
  trade_item_key: string;
29469
29639
  updated_at: string;
29470
29640
  uploaded_by: string | null;
29641
+ width_mm: number | null;
29471
29642
  };
29472
29643
  Insert: {
29644
+ content_hash?: string | null;
29473
29645
  created_at?: string;
29474
29646
  customer_key: string;
29475
29647
  file_name: string;
29476
29648
  file_path: string;
29477
29649
  file_size?: number | null;
29650
+ floriday_sticker_id?: string | null;
29651
+ floriday_synced_at?: string | null;
29652
+ height_mm?: number | null;
29478
29653
  id?: string;
29479
29654
  mime_type?: string | null;
29655
+ source?: string;
29480
29656
  trade_item_key: string;
29481
29657
  updated_at?: string;
29482
29658
  uploaded_by?: string | null;
29659
+ width_mm?: number | null;
29483
29660
  };
29484
29661
  Update: {
29662
+ content_hash?: string | null;
29485
29663
  created_at?: string;
29486
29664
  customer_key?: string;
29487
29665
  file_name?: string;
29488
29666
  file_path?: string;
29489
29667
  file_size?: number | null;
29668
+ floriday_sticker_id?: string | null;
29669
+ floriday_synced_at?: string | null;
29670
+ height_mm?: number | null;
29490
29671
  id?: string;
29491
29672
  mime_type?: string | null;
29673
+ source?: string;
29492
29674
  trade_item_key?: string;
29493
29675
  updated_at?: string;
29494
29676
  uploaded_by?: string | null;
29677
+ width_mm?: number | null;
29495
29678
  };
29496
29679
  Relationships: [];
29497
29680
  };
@@ -38799,6 +38982,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38799
38982
  Row: {
38800
38983
  actor: string | null;
38801
38984
  attempts: number;
38985
+ calc: import("../integrations/supabase/types").Json | null;
38802
38986
  cart_ref: string | null;
38803
38987
  created_at: string;
38804
38988
  db_action: string | null;
@@ -38809,6 +38993,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38809
38993
  decision: string | null;
38810
38994
  duration_ms: number | null;
38811
38995
  error: string | null;
38996
+ error_class: string | null;
38812
38997
  external_action: string | null;
38813
38998
  external_ref: string | null;
38814
38999
  external_response: import("../integrations/supabase/types").Json | null;
@@ -38817,6 +39002,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38817
39002
  id: string;
38818
39003
  input: import("../integrations/supabase/types").Json | null;
38819
39004
  next_attempt_at: string | null;
39005
+ next_step: string | null;
39006
+ node_id: string | null;
38820
39007
  order_ref: string | null;
38821
39008
  order_source: string | null;
38822
39009
  output: import("../integrations/supabase/types").Json | null;
@@ -38833,6 +39020,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38833
39020
  Insert: {
38834
39021
  actor?: string | null;
38835
39022
  attempts?: number;
39023
+ calc?: import("../integrations/supabase/types").Json | null;
38836
39024
  cart_ref?: string | null;
38837
39025
  created_at?: string;
38838
39026
  db_action?: string | null;
@@ -38843,6 +39031,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38843
39031
  decision?: string | null;
38844
39032
  duration_ms?: number | null;
38845
39033
  error?: string | null;
39034
+ error_class?: string | null;
38846
39035
  external_action?: string | null;
38847
39036
  external_ref?: string | null;
38848
39037
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -38851,6 +39040,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38851
39040
  id?: string;
38852
39041
  input?: import("../integrations/supabase/types").Json | null;
38853
39042
  next_attempt_at?: string | null;
39043
+ next_step?: string | null;
39044
+ node_id?: string | null;
38854
39045
  order_ref?: string | null;
38855
39046
  order_source?: string | null;
38856
39047
  output?: import("../integrations/supabase/types").Json | null;
@@ -38867,6 +39058,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38867
39058
  Update: {
38868
39059
  actor?: string | null;
38869
39060
  attempts?: number;
39061
+ calc?: import("../integrations/supabase/types").Json | null;
38870
39062
  cart_ref?: string | null;
38871
39063
  created_at?: string;
38872
39064
  db_action?: string | null;
@@ -38877,6 +39069,7 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38877
39069
  decision?: string | null;
38878
39070
  duration_ms?: number | null;
38879
39071
  error?: string | null;
39072
+ error_class?: string | null;
38880
39073
  external_action?: string | null;
38881
39074
  external_ref?: string | null;
38882
39075
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -38885,6 +39078,8 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
38885
39078
  id?: string;
38886
39079
  input?: import("../integrations/supabase/types").Json | null;
38887
39080
  next_attempt_at?: string | null;
39081
+ next_step?: string | null;
39082
+ node_id?: string | null;
38888
39083
  order_ref?: string | null;
38889
39084
  order_source?: string | null;
38890
39085
  output?: import("../integrations/supabase/types").Json | null;
@@ -52389,12 +52584,59 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
52389
52584
  };
52390
52585
  Returns: string;
52391
52586
  };
52587
+ logistics_trace_all_orders: {
52588
+ Args: {
52589
+ p_limit?: number;
52590
+ p_search?: string;
52591
+ };
52592
+ Returns: import("../integrations/supabase/types").Json;
52593
+ };
52392
52594
  logistics_trace_batch: {
52393
52595
  Args: {
52394
52596
  p: import("../integrations/supabase/types").Json;
52395
52597
  };
52396
52598
  Returns: number;
52397
52599
  };
52600
+ logistics_trace_node: {
52601
+ Args: {
52602
+ p_op?: string;
52603
+ p_status?: string;
52604
+ p_table: string;
52605
+ };
52606
+ Returns: string;
52607
+ };
52608
+ logistics_trace_order_overview: {
52609
+ Args: {
52610
+ p_error_class?: string;
52611
+ p_limit?: number;
52612
+ p_search?: string;
52613
+ p_since?: string;
52614
+ p_source?: string;
52615
+ p_state?: string;
52616
+ p_step?: string;
52617
+ };
52618
+ Returns: import("../integrations/supabase/types").Json;
52619
+ };
52620
+ logistics_trace_order_state: {
52621
+ Args: {
52622
+ p_order_ref: string;
52623
+ };
52624
+ Returns: import("../integrations/supabase/types").Json;
52625
+ };
52626
+ logistics_trace_order_step: {
52627
+ Args: {
52628
+ p_class?: string;
52629
+ p_decision?: string;
52630
+ p_error?: string;
52631
+ p_next_step?: string;
52632
+ p_node: string;
52633
+ p_order_id: string;
52634
+ p_reason?: string;
52635
+ p_status: string;
52636
+ p_step: string;
52637
+ };
52638
+ Returns: undefined;
52639
+ };
52398
52640
  logistics_trace_orders: {
52399
52641
  Args: {
52400
52642
  p_limit?: number;
@@ -52417,6 +52659,22 @@ export declare const listDeliveryLocations: import("@tanstack/start-client-core"
52417
52659
  };
52418
52660
  Returns: import("../integrations/supabase/types").Json;
52419
52661
  };
52662
+ logistics_trace_version_events: {
52663
+ Args: {
52664
+ p_from?: string;
52665
+ p_limit?: number;
52666
+ p_order_ref: string;
52667
+ p_to?: string;
52668
+ p_version_id: string;
52669
+ };
52670
+ Returns: import("../integrations/supabase/types").Json;
52671
+ };
52672
+ logistics_trace_versions: {
52673
+ Args: {
52674
+ p_order_ref: string;
52675
+ };
52676
+ Returns: import("../integrations/supabase/types").Json;
52677
+ };
52420
52678
  logistics_upsert_task: {
52421
52679
  Args: {
52422
52680
  p_buffer_ref: string;
@@ -56270,6 +56528,42 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
56270
56528
  };
56271
56529
  Relationships: [];
56272
56530
  };
56531
+ customer_assortment_items: {
56532
+ Row: {
56533
+ created_at: string;
56534
+ customer_key: string;
56535
+ id: string;
56536
+ in_assortment: boolean;
56537
+ manual_override: boolean;
56538
+ source: string;
56539
+ synced_at: string | null;
56540
+ trade_item_key: string;
56541
+ updated_at: string;
56542
+ };
56543
+ Insert: {
56544
+ created_at?: string;
56545
+ customer_key: string;
56546
+ id?: string;
56547
+ in_assortment?: boolean;
56548
+ manual_override?: boolean;
56549
+ source?: string;
56550
+ synced_at?: string | null;
56551
+ trade_item_key: string;
56552
+ updated_at?: string;
56553
+ };
56554
+ Update: {
56555
+ created_at?: string;
56556
+ customer_key?: string;
56557
+ id?: string;
56558
+ in_assortment?: boolean;
56559
+ manual_override?: boolean;
56560
+ source?: string;
56561
+ synced_at?: string | null;
56562
+ trade_item_key?: string;
56563
+ updated_at?: string;
56564
+ };
56565
+ Relationships: [];
56566
+ };
56273
56567
  customer_audit_log: {
56274
56568
  Row: {
56275
56569
  action: string;
@@ -56674,40 +56968,58 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
56674
56968
  };
56675
56969
  customer_product_stickers: {
56676
56970
  Row: {
56971
+ content_hash: string | null;
56677
56972
  created_at: string;
56678
56973
  customer_key: string;
56679
56974
  file_name: string;
56680
56975
  file_path: string;
56681
56976
  file_size: number | null;
56977
+ floriday_sticker_id: string | null;
56978
+ floriday_synced_at: string | null;
56979
+ height_mm: number | null;
56682
56980
  id: string;
56683
56981
  mime_type: string | null;
56982
+ source: string;
56684
56983
  trade_item_key: string;
56685
56984
  updated_at: string;
56686
56985
  uploaded_by: string | null;
56986
+ width_mm: number | null;
56687
56987
  };
56688
56988
  Insert: {
56989
+ content_hash?: string | null;
56689
56990
  created_at?: string;
56690
56991
  customer_key: string;
56691
56992
  file_name: string;
56692
56993
  file_path: string;
56693
56994
  file_size?: number | null;
56995
+ floriday_sticker_id?: string | null;
56996
+ floriday_synced_at?: string | null;
56997
+ height_mm?: number | null;
56694
56998
  id?: string;
56695
56999
  mime_type?: string | null;
57000
+ source?: string;
56696
57001
  trade_item_key: string;
56697
57002
  updated_at?: string;
56698
57003
  uploaded_by?: string | null;
57004
+ width_mm?: number | null;
56699
57005
  };
56700
57006
  Update: {
57007
+ content_hash?: string | null;
56701
57008
  created_at?: string;
56702
57009
  customer_key?: string;
56703
57010
  file_name?: string;
56704
57011
  file_path?: string;
56705
57012
  file_size?: number | null;
57013
+ floriday_sticker_id?: string | null;
57014
+ floriday_synced_at?: string | null;
57015
+ height_mm?: number | null;
56706
57016
  id?: string;
56707
57017
  mime_type?: string | null;
57018
+ source?: string;
56708
57019
  trade_item_key?: string;
56709
57020
  updated_at?: string;
56710
57021
  uploaded_by?: string | null;
57022
+ width_mm?: number | null;
56711
57023
  };
56712
57024
  Relationships: [];
56713
57025
  };
@@ -66015,6 +66327,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
66015
66327
  Row: {
66016
66328
  actor: string | null;
66017
66329
  attempts: number;
66330
+ calc: import("../integrations/supabase/types").Json | null;
66018
66331
  cart_ref: string | null;
66019
66332
  created_at: string;
66020
66333
  db_action: string | null;
@@ -66025,6 +66338,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
66025
66338
  decision: string | null;
66026
66339
  duration_ms: number | null;
66027
66340
  error: string | null;
66341
+ error_class: string | null;
66028
66342
  external_action: string | null;
66029
66343
  external_ref: string | null;
66030
66344
  external_response: import("../integrations/supabase/types").Json | null;
@@ -66033,6 +66347,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
66033
66347
  id: string;
66034
66348
  input: import("../integrations/supabase/types").Json | null;
66035
66349
  next_attempt_at: string | null;
66350
+ next_step: string | null;
66351
+ node_id: string | null;
66036
66352
  order_ref: string | null;
66037
66353
  order_source: string | null;
66038
66354
  output: import("../integrations/supabase/types").Json | null;
@@ -66049,6 +66365,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
66049
66365
  Insert: {
66050
66366
  actor?: string | null;
66051
66367
  attempts?: number;
66368
+ calc?: import("../integrations/supabase/types").Json | null;
66052
66369
  cart_ref?: string | null;
66053
66370
  created_at?: string;
66054
66371
  db_action?: string | null;
@@ -66059,6 +66376,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
66059
66376
  decision?: string | null;
66060
66377
  duration_ms?: number | null;
66061
66378
  error?: string | null;
66379
+ error_class?: string | null;
66062
66380
  external_action?: string | null;
66063
66381
  external_ref?: string | null;
66064
66382
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -66067,6 +66385,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
66067
66385
  id?: string;
66068
66386
  input?: import("../integrations/supabase/types").Json | null;
66069
66387
  next_attempt_at?: string | null;
66388
+ next_step?: string | null;
66389
+ node_id?: string | null;
66070
66390
  order_ref?: string | null;
66071
66391
  order_source?: string | null;
66072
66392
  output?: import("../integrations/supabase/types").Json | null;
@@ -66083,6 +66403,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
66083
66403
  Update: {
66084
66404
  actor?: string | null;
66085
66405
  attempts?: number;
66406
+ calc?: import("../integrations/supabase/types").Json | null;
66086
66407
  cart_ref?: string | null;
66087
66408
  created_at?: string;
66088
66409
  db_action?: string | null;
@@ -66093,6 +66414,7 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
66093
66414
  decision?: string | null;
66094
66415
  duration_ms?: number | null;
66095
66416
  error?: string | null;
66417
+ error_class?: string | null;
66096
66418
  external_action?: string | null;
66097
66419
  external_ref?: string | null;
66098
66420
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -66101,6 +66423,8 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
66101
66423
  id?: string;
66102
66424
  input?: import("../integrations/supabase/types").Json | null;
66103
66425
  next_attempt_at?: string | null;
66426
+ next_step?: string | null;
66427
+ node_id?: string | null;
66104
66428
  order_ref?: string | null;
66105
66429
  order_source?: string | null;
66106
66430
  output?: import("../integrations/supabase/types").Json | null;
@@ -79605,12 +79929,59 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
79605
79929
  };
79606
79930
  Returns: string;
79607
79931
  };
79932
+ logistics_trace_all_orders: {
79933
+ Args: {
79934
+ p_limit?: number;
79935
+ p_search?: string;
79936
+ };
79937
+ Returns: import("../integrations/supabase/types").Json;
79938
+ };
79608
79939
  logistics_trace_batch: {
79609
79940
  Args: {
79610
79941
  p: import("../integrations/supabase/types").Json;
79611
79942
  };
79612
79943
  Returns: number;
79613
79944
  };
79945
+ logistics_trace_node: {
79946
+ Args: {
79947
+ p_op?: string;
79948
+ p_status?: string;
79949
+ p_table: string;
79950
+ };
79951
+ Returns: string;
79952
+ };
79953
+ logistics_trace_order_overview: {
79954
+ Args: {
79955
+ p_error_class?: string;
79956
+ p_limit?: number;
79957
+ p_search?: string;
79958
+ p_since?: string;
79959
+ p_source?: string;
79960
+ p_state?: string;
79961
+ p_step?: string;
79962
+ };
79963
+ Returns: import("../integrations/supabase/types").Json;
79964
+ };
79965
+ logistics_trace_order_state: {
79966
+ Args: {
79967
+ p_order_ref: string;
79968
+ };
79969
+ Returns: import("../integrations/supabase/types").Json;
79970
+ };
79971
+ logistics_trace_order_step: {
79972
+ Args: {
79973
+ p_class?: string;
79974
+ p_decision?: string;
79975
+ p_error?: string;
79976
+ p_next_step?: string;
79977
+ p_node: string;
79978
+ p_order_id: string;
79979
+ p_reason?: string;
79980
+ p_status: string;
79981
+ p_step: string;
79982
+ };
79983
+ Returns: undefined;
79984
+ };
79614
79985
  logistics_trace_orders: {
79615
79986
  Args: {
79616
79987
  p_limit?: number;
@@ -79633,6 +80004,22 @@ export declare const upsertDeliveryLocation: import("@tanstack/start-client-core
79633
80004
  };
79634
80005
  Returns: import("../integrations/supabase/types").Json;
79635
80006
  };
80007
+ logistics_trace_version_events: {
80008
+ Args: {
80009
+ p_from?: string;
80010
+ p_limit?: number;
80011
+ p_order_ref: string;
80012
+ p_to?: string;
80013
+ p_version_id: string;
80014
+ };
80015
+ Returns: import("../integrations/supabase/types").Json;
80016
+ };
80017
+ logistics_trace_versions: {
80018
+ Args: {
80019
+ p_order_ref: string;
80020
+ };
80021
+ Returns: import("../integrations/supabase/types").Json;
80022
+ };
79636
80023
  logistics_upsert_task: {
79637
80024
  Args: {
79638
80025
  p_buffer_ref: string;
@@ -83493,6 +83880,42 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
83493
83880
  };
83494
83881
  Relationships: [];
83495
83882
  };
83883
+ customer_assortment_items: {
83884
+ Row: {
83885
+ created_at: string;
83886
+ customer_key: string;
83887
+ id: string;
83888
+ in_assortment: boolean;
83889
+ manual_override: boolean;
83890
+ source: string;
83891
+ synced_at: string | null;
83892
+ trade_item_key: string;
83893
+ updated_at: string;
83894
+ };
83895
+ Insert: {
83896
+ created_at?: string;
83897
+ customer_key: string;
83898
+ id?: string;
83899
+ in_assortment?: boolean;
83900
+ manual_override?: boolean;
83901
+ source?: string;
83902
+ synced_at?: string | null;
83903
+ trade_item_key: string;
83904
+ updated_at?: string;
83905
+ };
83906
+ Update: {
83907
+ created_at?: string;
83908
+ customer_key?: string;
83909
+ id?: string;
83910
+ in_assortment?: boolean;
83911
+ manual_override?: boolean;
83912
+ source?: string;
83913
+ synced_at?: string | null;
83914
+ trade_item_key?: string;
83915
+ updated_at?: string;
83916
+ };
83917
+ Relationships: [];
83918
+ };
83496
83919
  customer_audit_log: {
83497
83920
  Row: {
83498
83921
  action: string;
@@ -83897,40 +84320,58 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
83897
84320
  };
83898
84321
  customer_product_stickers: {
83899
84322
  Row: {
84323
+ content_hash: string | null;
83900
84324
  created_at: string;
83901
84325
  customer_key: string;
83902
84326
  file_name: string;
83903
84327
  file_path: string;
83904
84328
  file_size: number | null;
84329
+ floriday_sticker_id: string | null;
84330
+ floriday_synced_at: string | null;
84331
+ height_mm: number | null;
83905
84332
  id: string;
83906
84333
  mime_type: string | null;
84334
+ source: string;
83907
84335
  trade_item_key: string;
83908
84336
  updated_at: string;
83909
84337
  uploaded_by: string | null;
84338
+ width_mm: number | null;
83910
84339
  };
83911
84340
  Insert: {
84341
+ content_hash?: string | null;
83912
84342
  created_at?: string;
83913
84343
  customer_key: string;
83914
84344
  file_name: string;
83915
84345
  file_path: string;
83916
84346
  file_size?: number | null;
84347
+ floriday_sticker_id?: string | null;
84348
+ floriday_synced_at?: string | null;
84349
+ height_mm?: number | null;
83917
84350
  id?: string;
83918
84351
  mime_type?: string | null;
84352
+ source?: string;
83919
84353
  trade_item_key: string;
83920
84354
  updated_at?: string;
83921
84355
  uploaded_by?: string | null;
84356
+ width_mm?: number | null;
83922
84357
  };
83923
84358
  Update: {
84359
+ content_hash?: string | null;
83924
84360
  created_at?: string;
83925
84361
  customer_key?: string;
83926
84362
  file_name?: string;
83927
84363
  file_path?: string;
83928
84364
  file_size?: number | null;
84365
+ floriday_sticker_id?: string | null;
84366
+ floriday_synced_at?: string | null;
84367
+ height_mm?: number | null;
83929
84368
  id?: string;
83930
84369
  mime_type?: string | null;
84370
+ source?: string;
83931
84371
  trade_item_key?: string;
83932
84372
  updated_at?: string;
83933
84373
  uploaded_by?: string | null;
84374
+ width_mm?: number | null;
83934
84375
  };
83935
84376
  Relationships: [];
83936
84377
  };
@@ -93238,6 +93679,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
93238
93679
  Row: {
93239
93680
  actor: string | null;
93240
93681
  attempts: number;
93682
+ calc: import("../integrations/supabase/types").Json | null;
93241
93683
  cart_ref: string | null;
93242
93684
  created_at: string;
93243
93685
  db_action: string | null;
@@ -93248,6 +93690,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
93248
93690
  decision: string | null;
93249
93691
  duration_ms: number | null;
93250
93692
  error: string | null;
93693
+ error_class: string | null;
93251
93694
  external_action: string | null;
93252
93695
  external_ref: string | null;
93253
93696
  external_response: import("../integrations/supabase/types").Json | null;
@@ -93256,6 +93699,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
93256
93699
  id: string;
93257
93700
  input: import("../integrations/supabase/types").Json | null;
93258
93701
  next_attempt_at: string | null;
93702
+ next_step: string | null;
93703
+ node_id: string | null;
93259
93704
  order_ref: string | null;
93260
93705
  order_source: string | null;
93261
93706
  output: import("../integrations/supabase/types").Json | null;
@@ -93272,6 +93717,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
93272
93717
  Insert: {
93273
93718
  actor?: string | null;
93274
93719
  attempts?: number;
93720
+ calc?: import("../integrations/supabase/types").Json | null;
93275
93721
  cart_ref?: string | null;
93276
93722
  created_at?: string;
93277
93723
  db_action?: string | null;
@@ -93282,6 +93728,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
93282
93728
  decision?: string | null;
93283
93729
  duration_ms?: number | null;
93284
93730
  error?: string | null;
93731
+ error_class?: string | null;
93285
93732
  external_action?: string | null;
93286
93733
  external_ref?: string | null;
93287
93734
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -93290,6 +93737,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
93290
93737
  id?: string;
93291
93738
  input?: import("../integrations/supabase/types").Json | null;
93292
93739
  next_attempt_at?: string | null;
93740
+ next_step?: string | null;
93741
+ node_id?: string | null;
93293
93742
  order_ref?: string | null;
93294
93743
  order_source?: string | null;
93295
93744
  output?: import("../integrations/supabase/types").Json | null;
@@ -93306,6 +93755,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
93306
93755
  Update: {
93307
93756
  actor?: string | null;
93308
93757
  attempts?: number;
93758
+ calc?: import("../integrations/supabase/types").Json | null;
93309
93759
  cart_ref?: string | null;
93310
93760
  created_at?: string;
93311
93761
  db_action?: string | null;
@@ -93316,6 +93766,7 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
93316
93766
  decision?: string | null;
93317
93767
  duration_ms?: number | null;
93318
93768
  error?: string | null;
93769
+ error_class?: string | null;
93319
93770
  external_action?: string | null;
93320
93771
  external_ref?: string | null;
93321
93772
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -93324,6 +93775,8 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
93324
93775
  id?: string;
93325
93776
  input?: import("../integrations/supabase/types").Json | null;
93326
93777
  next_attempt_at?: string | null;
93778
+ next_step?: string | null;
93779
+ node_id?: string | null;
93327
93780
  order_ref?: string | null;
93328
93781
  order_source?: string | null;
93329
93782
  output?: import("../integrations/supabase/types").Json | null;
@@ -106828,12 +107281,59 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
106828
107281
  };
106829
107282
  Returns: string;
106830
107283
  };
107284
+ logistics_trace_all_orders: {
107285
+ Args: {
107286
+ p_limit?: number;
107287
+ p_search?: string;
107288
+ };
107289
+ Returns: import("../integrations/supabase/types").Json;
107290
+ };
106831
107291
  logistics_trace_batch: {
106832
107292
  Args: {
106833
107293
  p: import("../integrations/supabase/types").Json;
106834
107294
  };
106835
107295
  Returns: number;
106836
107296
  };
107297
+ logistics_trace_node: {
107298
+ Args: {
107299
+ p_op?: string;
107300
+ p_status?: string;
107301
+ p_table: string;
107302
+ };
107303
+ Returns: string;
107304
+ };
107305
+ logistics_trace_order_overview: {
107306
+ Args: {
107307
+ p_error_class?: string;
107308
+ p_limit?: number;
107309
+ p_search?: string;
107310
+ p_since?: string;
107311
+ p_source?: string;
107312
+ p_state?: string;
107313
+ p_step?: string;
107314
+ };
107315
+ Returns: import("../integrations/supabase/types").Json;
107316
+ };
107317
+ logistics_trace_order_state: {
107318
+ Args: {
107319
+ p_order_ref: string;
107320
+ };
107321
+ Returns: import("../integrations/supabase/types").Json;
107322
+ };
107323
+ logistics_trace_order_step: {
107324
+ Args: {
107325
+ p_class?: string;
107326
+ p_decision?: string;
107327
+ p_error?: string;
107328
+ p_next_step?: string;
107329
+ p_node: string;
107330
+ p_order_id: string;
107331
+ p_reason?: string;
107332
+ p_status: string;
107333
+ p_step: string;
107334
+ };
107335
+ Returns: undefined;
107336
+ };
106837
107337
  logistics_trace_orders: {
106838
107338
  Args: {
106839
107339
  p_limit?: number;
@@ -106856,6 +107356,22 @@ export declare const deleteDeliveryLocation: import("@tanstack/start-client-core
106856
107356
  };
106857
107357
  Returns: import("../integrations/supabase/types").Json;
106858
107358
  };
107359
+ logistics_trace_version_events: {
107360
+ Args: {
107361
+ p_from?: string;
107362
+ p_limit?: number;
107363
+ p_order_ref: string;
107364
+ p_to?: string;
107365
+ p_version_id: string;
107366
+ };
107367
+ Returns: import("../integrations/supabase/types").Json;
107368
+ };
107369
+ logistics_trace_versions: {
107370
+ Args: {
107371
+ p_order_ref: string;
107372
+ };
107373
+ Returns: import("../integrations/supabase/types").Json;
107374
+ };
106859
107375
  logistics_upsert_task: {
106860
107376
  Args: {
106861
107377
  p_buffer_ref: string;
@@ -110696,6 +111212,42 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
110696
111212
  };
110697
111213
  Relationships: [];
110698
111214
  };
111215
+ customer_assortment_items: {
111216
+ Row: {
111217
+ created_at: string;
111218
+ customer_key: string;
111219
+ id: string;
111220
+ in_assortment: boolean;
111221
+ manual_override: boolean;
111222
+ source: string;
111223
+ synced_at: string | null;
111224
+ trade_item_key: string;
111225
+ updated_at: string;
111226
+ };
111227
+ Insert: {
111228
+ created_at?: string;
111229
+ customer_key: string;
111230
+ id?: string;
111231
+ in_assortment?: boolean;
111232
+ manual_override?: boolean;
111233
+ source?: string;
111234
+ synced_at?: string | null;
111235
+ trade_item_key: string;
111236
+ updated_at?: string;
111237
+ };
111238
+ Update: {
111239
+ created_at?: string;
111240
+ customer_key?: string;
111241
+ id?: string;
111242
+ in_assortment?: boolean;
111243
+ manual_override?: boolean;
111244
+ source?: string;
111245
+ synced_at?: string | null;
111246
+ trade_item_key?: string;
111247
+ updated_at?: string;
111248
+ };
111249
+ Relationships: [];
111250
+ };
110699
111251
  customer_audit_log: {
110700
111252
  Row: {
110701
111253
  action: string;
@@ -111100,40 +111652,58 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
111100
111652
  };
111101
111653
  customer_product_stickers: {
111102
111654
  Row: {
111655
+ content_hash: string | null;
111103
111656
  created_at: string;
111104
111657
  customer_key: string;
111105
111658
  file_name: string;
111106
111659
  file_path: string;
111107
111660
  file_size: number | null;
111661
+ floriday_sticker_id: string | null;
111662
+ floriday_synced_at: string | null;
111663
+ height_mm: number | null;
111108
111664
  id: string;
111109
111665
  mime_type: string | null;
111666
+ source: string;
111110
111667
  trade_item_key: string;
111111
111668
  updated_at: string;
111112
111669
  uploaded_by: string | null;
111670
+ width_mm: number | null;
111113
111671
  };
111114
111672
  Insert: {
111673
+ content_hash?: string | null;
111115
111674
  created_at?: string;
111116
111675
  customer_key: string;
111117
111676
  file_name: string;
111118
111677
  file_path: string;
111119
111678
  file_size?: number | null;
111679
+ floriday_sticker_id?: string | null;
111680
+ floriday_synced_at?: string | null;
111681
+ height_mm?: number | null;
111120
111682
  id?: string;
111121
111683
  mime_type?: string | null;
111684
+ source?: string;
111122
111685
  trade_item_key: string;
111123
111686
  updated_at?: string;
111124
111687
  uploaded_by?: string | null;
111688
+ width_mm?: number | null;
111125
111689
  };
111126
111690
  Update: {
111691
+ content_hash?: string | null;
111127
111692
  created_at?: string;
111128
111693
  customer_key?: string;
111129
111694
  file_name?: string;
111130
111695
  file_path?: string;
111131
111696
  file_size?: number | null;
111697
+ floriday_sticker_id?: string | null;
111698
+ floriday_synced_at?: string | null;
111699
+ height_mm?: number | null;
111132
111700
  id?: string;
111133
111701
  mime_type?: string | null;
111702
+ source?: string;
111134
111703
  trade_item_key?: string;
111135
111704
  updated_at?: string;
111136
111705
  uploaded_by?: string | null;
111706
+ width_mm?: number | null;
111137
111707
  };
111138
111708
  Relationships: [];
111139
111709
  };
@@ -120441,6 +121011,7 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
120441
121011
  Row: {
120442
121012
  actor: string | null;
120443
121013
  attempts: number;
121014
+ calc: import("../integrations/supabase/types").Json | null;
120444
121015
  cart_ref: string | null;
120445
121016
  created_at: string;
120446
121017
  db_action: string | null;
@@ -120451,6 +121022,7 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
120451
121022
  decision: string | null;
120452
121023
  duration_ms: number | null;
120453
121024
  error: string | null;
121025
+ error_class: string | null;
120454
121026
  external_action: string | null;
120455
121027
  external_ref: string | null;
120456
121028
  external_response: import("../integrations/supabase/types").Json | null;
@@ -120459,6 +121031,8 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
120459
121031
  id: string;
120460
121032
  input: import("../integrations/supabase/types").Json | null;
120461
121033
  next_attempt_at: string | null;
121034
+ next_step: string | null;
121035
+ node_id: string | null;
120462
121036
  order_ref: string | null;
120463
121037
  order_source: string | null;
120464
121038
  output: import("../integrations/supabase/types").Json | null;
@@ -120475,6 +121049,7 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
120475
121049
  Insert: {
120476
121050
  actor?: string | null;
120477
121051
  attempts?: number;
121052
+ calc?: import("../integrations/supabase/types").Json | null;
120478
121053
  cart_ref?: string | null;
120479
121054
  created_at?: string;
120480
121055
  db_action?: string | null;
@@ -120485,6 +121060,7 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
120485
121060
  decision?: string | null;
120486
121061
  duration_ms?: number | null;
120487
121062
  error?: string | null;
121063
+ error_class?: string | null;
120488
121064
  external_action?: string | null;
120489
121065
  external_ref?: string | null;
120490
121066
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -120493,6 +121069,8 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
120493
121069
  id?: string;
120494
121070
  input?: import("../integrations/supabase/types").Json | null;
120495
121071
  next_attempt_at?: string | null;
121072
+ next_step?: string | null;
121073
+ node_id?: string | null;
120496
121074
  order_ref?: string | null;
120497
121075
  order_source?: string | null;
120498
121076
  output?: import("../integrations/supabase/types").Json | null;
@@ -120509,6 +121087,7 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
120509
121087
  Update: {
120510
121088
  actor?: string | null;
120511
121089
  attempts?: number;
121090
+ calc?: import("../integrations/supabase/types").Json | null;
120512
121091
  cart_ref?: string | null;
120513
121092
  created_at?: string;
120514
121093
  db_action?: string | null;
@@ -120519,6 +121098,7 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
120519
121098
  decision?: string | null;
120520
121099
  duration_ms?: number | null;
120521
121100
  error?: string | null;
121101
+ error_class?: string | null;
120522
121102
  external_action?: string | null;
120523
121103
  external_ref?: string | null;
120524
121104
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -120527,6 +121107,8 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
120527
121107
  id?: string;
120528
121108
  input?: import("../integrations/supabase/types").Json | null;
120529
121109
  next_attempt_at?: string | null;
121110
+ next_step?: string | null;
121111
+ node_id?: string | null;
120530
121112
  order_ref?: string | null;
120531
121113
  order_source?: string | null;
120532
121114
  output?: import("../integrations/supabase/types").Json | null;
@@ -134031,12 +134613,59 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
134031
134613
  };
134032
134614
  Returns: string;
134033
134615
  };
134616
+ logistics_trace_all_orders: {
134617
+ Args: {
134618
+ p_limit?: number;
134619
+ p_search?: string;
134620
+ };
134621
+ Returns: import("../integrations/supabase/types").Json;
134622
+ };
134034
134623
  logistics_trace_batch: {
134035
134624
  Args: {
134036
134625
  p: import("../integrations/supabase/types").Json;
134037
134626
  };
134038
134627
  Returns: number;
134039
134628
  };
134629
+ logistics_trace_node: {
134630
+ Args: {
134631
+ p_op?: string;
134632
+ p_status?: string;
134633
+ p_table: string;
134634
+ };
134635
+ Returns: string;
134636
+ };
134637
+ logistics_trace_order_overview: {
134638
+ Args: {
134639
+ p_error_class?: string;
134640
+ p_limit?: number;
134641
+ p_search?: string;
134642
+ p_since?: string;
134643
+ p_source?: string;
134644
+ p_state?: string;
134645
+ p_step?: string;
134646
+ };
134647
+ Returns: import("../integrations/supabase/types").Json;
134648
+ };
134649
+ logistics_trace_order_state: {
134650
+ Args: {
134651
+ p_order_ref: string;
134652
+ };
134653
+ Returns: import("../integrations/supabase/types").Json;
134654
+ };
134655
+ logistics_trace_order_step: {
134656
+ Args: {
134657
+ p_class?: string;
134658
+ p_decision?: string;
134659
+ p_error?: string;
134660
+ p_next_step?: string;
134661
+ p_node: string;
134662
+ p_order_id: string;
134663
+ p_reason?: string;
134664
+ p_status: string;
134665
+ p_step: string;
134666
+ };
134667
+ Returns: undefined;
134668
+ };
134040
134669
  logistics_trace_orders: {
134041
134670
  Args: {
134042
134671
  p_limit?: number;
@@ -134059,6 +134688,22 @@ export declare const importFloridayDeliveryLocations: import("@tanstack/start-cl
134059
134688
  };
134060
134689
  Returns: import("../integrations/supabase/types").Json;
134061
134690
  };
134691
+ logistics_trace_version_events: {
134692
+ Args: {
134693
+ p_from?: string;
134694
+ p_limit?: number;
134695
+ p_order_ref: string;
134696
+ p_to?: string;
134697
+ p_version_id: string;
134698
+ };
134699
+ Returns: import("../integrations/supabase/types").Json;
134700
+ };
134701
+ logistics_trace_versions: {
134702
+ Args: {
134703
+ p_order_ref: string;
134704
+ };
134705
+ Returns: import("../integrations/supabase/types").Json;
134706
+ };
134062
134707
  logistics_upsert_task: {
134063
134708
  Args: {
134064
134709
  p_buffer_ref: string;