@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
@@ -7,6 +7,9 @@ export type CustomerSticker = {
7
7
  file_size: number | null;
8
8
  updated_at: string;
9
9
  url: string | null;
10
+ source: "manual" | "floriday";
11
+ width_mm: number | null;
12
+ height_mm: number | null;
10
13
  };
11
14
  export type StickerFormat = {
12
15
  width_mm: number;
@@ -1840,6 +1843,42 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
1840
1843
  };
1841
1844
  Relationships: [];
1842
1845
  };
1846
+ customer_assortment_items: {
1847
+ Row: {
1848
+ created_at: string;
1849
+ customer_key: string;
1850
+ id: string;
1851
+ in_assortment: boolean;
1852
+ manual_override: boolean;
1853
+ source: string;
1854
+ synced_at: string | null;
1855
+ trade_item_key: string;
1856
+ updated_at: string;
1857
+ };
1858
+ Insert: {
1859
+ created_at?: string;
1860
+ customer_key: string;
1861
+ id?: string;
1862
+ in_assortment?: boolean;
1863
+ manual_override?: boolean;
1864
+ source?: string;
1865
+ synced_at?: string | null;
1866
+ trade_item_key: string;
1867
+ updated_at?: string;
1868
+ };
1869
+ Update: {
1870
+ created_at?: string;
1871
+ customer_key?: string;
1872
+ id?: string;
1873
+ in_assortment?: boolean;
1874
+ manual_override?: boolean;
1875
+ source?: string;
1876
+ synced_at?: string | null;
1877
+ trade_item_key?: string;
1878
+ updated_at?: string;
1879
+ };
1880
+ Relationships: [];
1881
+ };
1843
1882
  customer_audit_log: {
1844
1883
  Row: {
1845
1884
  action: string;
@@ -2244,40 +2283,58 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
2244
2283
  };
2245
2284
  customer_product_stickers: {
2246
2285
  Row: {
2286
+ content_hash: string | null;
2247
2287
  created_at: string;
2248
2288
  customer_key: string;
2249
2289
  file_name: string;
2250
2290
  file_path: string;
2251
2291
  file_size: number | null;
2292
+ floriday_sticker_id: string | null;
2293
+ floriday_synced_at: string | null;
2294
+ height_mm: number | null;
2252
2295
  id: string;
2253
2296
  mime_type: string | null;
2297
+ source: string;
2254
2298
  trade_item_key: string;
2255
2299
  updated_at: string;
2256
2300
  uploaded_by: string | null;
2301
+ width_mm: number | null;
2257
2302
  };
2258
2303
  Insert: {
2304
+ content_hash?: string | null;
2259
2305
  created_at?: string;
2260
2306
  customer_key: string;
2261
2307
  file_name: string;
2262
2308
  file_path: string;
2263
2309
  file_size?: number | null;
2310
+ floriday_sticker_id?: string | null;
2311
+ floriday_synced_at?: string | null;
2312
+ height_mm?: number | null;
2264
2313
  id?: string;
2265
2314
  mime_type?: string | null;
2315
+ source?: string;
2266
2316
  trade_item_key: string;
2267
2317
  updated_at?: string;
2268
2318
  uploaded_by?: string | null;
2319
+ width_mm?: number | null;
2269
2320
  };
2270
2321
  Update: {
2322
+ content_hash?: string | null;
2271
2323
  created_at?: string;
2272
2324
  customer_key?: string;
2273
2325
  file_name?: string;
2274
2326
  file_path?: string;
2275
2327
  file_size?: number | null;
2328
+ floriday_sticker_id?: string | null;
2329
+ floriday_synced_at?: string | null;
2330
+ height_mm?: number | null;
2276
2331
  id?: string;
2277
2332
  mime_type?: string | null;
2333
+ source?: string;
2278
2334
  trade_item_key?: string;
2279
2335
  updated_at?: string;
2280
2336
  uploaded_by?: string | null;
2337
+ width_mm?: number | null;
2281
2338
  };
2282
2339
  Relationships: [];
2283
2340
  };
@@ -11585,6 +11642,7 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
11585
11642
  Row: {
11586
11643
  actor: string | null;
11587
11644
  attempts: number;
11645
+ calc: import("../integrations/supabase/types").Json | null;
11588
11646
  cart_ref: string | null;
11589
11647
  created_at: string;
11590
11648
  db_action: string | null;
@@ -11595,6 +11653,7 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
11595
11653
  decision: string | null;
11596
11654
  duration_ms: number | null;
11597
11655
  error: string | null;
11656
+ error_class: string | null;
11598
11657
  external_action: string | null;
11599
11658
  external_ref: string | null;
11600
11659
  external_response: import("../integrations/supabase/types").Json | null;
@@ -11603,6 +11662,8 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
11603
11662
  id: string;
11604
11663
  input: import("../integrations/supabase/types").Json | null;
11605
11664
  next_attempt_at: string | null;
11665
+ next_step: string | null;
11666
+ node_id: string | null;
11606
11667
  order_ref: string | null;
11607
11668
  order_source: string | null;
11608
11669
  output: import("../integrations/supabase/types").Json | null;
@@ -11619,6 +11680,7 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
11619
11680
  Insert: {
11620
11681
  actor?: string | null;
11621
11682
  attempts?: number;
11683
+ calc?: import("../integrations/supabase/types").Json | null;
11622
11684
  cart_ref?: string | null;
11623
11685
  created_at?: string;
11624
11686
  db_action?: string | null;
@@ -11629,6 +11691,7 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
11629
11691
  decision?: string | null;
11630
11692
  duration_ms?: number | null;
11631
11693
  error?: string | null;
11694
+ error_class?: string | null;
11632
11695
  external_action?: string | null;
11633
11696
  external_ref?: string | null;
11634
11697
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11637,6 +11700,8 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
11637
11700
  id?: string;
11638
11701
  input?: import("../integrations/supabase/types").Json | null;
11639
11702
  next_attempt_at?: string | null;
11703
+ next_step?: string | null;
11704
+ node_id?: string | null;
11640
11705
  order_ref?: string | null;
11641
11706
  order_source?: string | null;
11642
11707
  output?: import("../integrations/supabase/types").Json | null;
@@ -11653,6 +11718,7 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
11653
11718
  Update: {
11654
11719
  actor?: string | null;
11655
11720
  attempts?: number;
11721
+ calc?: import("../integrations/supabase/types").Json | null;
11656
11722
  cart_ref?: string | null;
11657
11723
  created_at?: string;
11658
11724
  db_action?: string | null;
@@ -11663,6 +11729,7 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
11663
11729
  decision?: string | null;
11664
11730
  duration_ms?: number | null;
11665
11731
  error?: string | null;
11732
+ error_class?: string | null;
11666
11733
  external_action?: string | null;
11667
11734
  external_ref?: string | null;
11668
11735
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11671,6 +11738,8 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
11671
11738
  id?: string;
11672
11739
  input?: import("../integrations/supabase/types").Json | null;
11673
11740
  next_attempt_at?: string | null;
11741
+ next_step?: string | null;
11742
+ node_id?: string | null;
11674
11743
  order_ref?: string | null;
11675
11744
  order_source?: string | null;
11676
11745
  output?: import("../integrations/supabase/types").Json | null;
@@ -25175,12 +25244,59 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
25175
25244
  };
25176
25245
  Returns: string;
25177
25246
  };
25247
+ logistics_trace_all_orders: {
25248
+ Args: {
25249
+ p_limit?: number;
25250
+ p_search?: string;
25251
+ };
25252
+ Returns: import("../integrations/supabase/types").Json;
25253
+ };
25178
25254
  logistics_trace_batch: {
25179
25255
  Args: {
25180
25256
  p: import("../integrations/supabase/types").Json;
25181
25257
  };
25182
25258
  Returns: number;
25183
25259
  };
25260
+ logistics_trace_node: {
25261
+ Args: {
25262
+ p_op?: string;
25263
+ p_status?: string;
25264
+ p_table: string;
25265
+ };
25266
+ Returns: string;
25267
+ };
25268
+ logistics_trace_order_overview: {
25269
+ Args: {
25270
+ p_error_class?: string;
25271
+ p_limit?: number;
25272
+ p_search?: string;
25273
+ p_since?: string;
25274
+ p_source?: string;
25275
+ p_state?: string;
25276
+ p_step?: string;
25277
+ };
25278
+ Returns: import("../integrations/supabase/types").Json;
25279
+ };
25280
+ logistics_trace_order_state: {
25281
+ Args: {
25282
+ p_order_ref: string;
25283
+ };
25284
+ Returns: import("../integrations/supabase/types").Json;
25285
+ };
25286
+ logistics_trace_order_step: {
25287
+ Args: {
25288
+ p_class?: string;
25289
+ p_decision?: string;
25290
+ p_error?: string;
25291
+ p_next_step?: string;
25292
+ p_node: string;
25293
+ p_order_id: string;
25294
+ p_reason?: string;
25295
+ p_status: string;
25296
+ p_step: string;
25297
+ };
25298
+ Returns: undefined;
25299
+ };
25184
25300
  logistics_trace_orders: {
25185
25301
  Args: {
25186
25302
  p_limit?: number;
@@ -25203,6 +25319,22 @@ export declare const listCustomerStickers: import("@tanstack/start-client-core")
25203
25319
  };
25204
25320
  Returns: import("../integrations/supabase/types").Json;
25205
25321
  };
25322
+ logistics_trace_version_events: {
25323
+ Args: {
25324
+ p_from?: string;
25325
+ p_limit?: number;
25326
+ p_order_ref: string;
25327
+ p_to?: string;
25328
+ p_version_id: string;
25329
+ };
25330
+ Returns: import("../integrations/supabase/types").Json;
25331
+ };
25332
+ logistics_trace_versions: {
25333
+ Args: {
25334
+ p_order_ref: string;
25335
+ };
25336
+ Returns: import("../integrations/supabase/types").Json;
25337
+ };
25206
25338
  logistics_upsert_task: {
25207
25339
  Args: {
25208
25340
  p_buffer_ref: string;
@@ -29023,6 +29155,42 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
29023
29155
  };
29024
29156
  Relationships: [];
29025
29157
  };
29158
+ customer_assortment_items: {
29159
+ Row: {
29160
+ created_at: string;
29161
+ customer_key: string;
29162
+ id: string;
29163
+ in_assortment: boolean;
29164
+ manual_override: boolean;
29165
+ source: string;
29166
+ synced_at: string | null;
29167
+ trade_item_key: string;
29168
+ updated_at: string;
29169
+ };
29170
+ Insert: {
29171
+ created_at?: string;
29172
+ customer_key: string;
29173
+ id?: string;
29174
+ in_assortment?: boolean;
29175
+ manual_override?: boolean;
29176
+ source?: string;
29177
+ synced_at?: string | null;
29178
+ trade_item_key: string;
29179
+ updated_at?: string;
29180
+ };
29181
+ Update: {
29182
+ created_at?: string;
29183
+ customer_key?: string;
29184
+ id?: string;
29185
+ in_assortment?: boolean;
29186
+ manual_override?: boolean;
29187
+ source?: string;
29188
+ synced_at?: string | null;
29189
+ trade_item_key?: string;
29190
+ updated_at?: string;
29191
+ };
29192
+ Relationships: [];
29193
+ };
29026
29194
  customer_audit_log: {
29027
29195
  Row: {
29028
29196
  action: string;
@@ -29427,40 +29595,58 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
29427
29595
  };
29428
29596
  customer_product_stickers: {
29429
29597
  Row: {
29598
+ content_hash: string | null;
29430
29599
  created_at: string;
29431
29600
  customer_key: string;
29432
29601
  file_name: string;
29433
29602
  file_path: string;
29434
29603
  file_size: number | null;
29604
+ floriday_sticker_id: string | null;
29605
+ floriday_synced_at: string | null;
29606
+ height_mm: number | null;
29435
29607
  id: string;
29436
29608
  mime_type: string | null;
29609
+ source: string;
29437
29610
  trade_item_key: string;
29438
29611
  updated_at: string;
29439
29612
  uploaded_by: string | null;
29613
+ width_mm: number | null;
29440
29614
  };
29441
29615
  Insert: {
29616
+ content_hash?: string | null;
29442
29617
  created_at?: string;
29443
29618
  customer_key: string;
29444
29619
  file_name: string;
29445
29620
  file_path: string;
29446
29621
  file_size?: number | null;
29622
+ floriday_sticker_id?: string | null;
29623
+ floriday_synced_at?: string | null;
29624
+ height_mm?: number | null;
29447
29625
  id?: string;
29448
29626
  mime_type?: string | null;
29627
+ source?: string;
29449
29628
  trade_item_key: string;
29450
29629
  updated_at?: string;
29451
29630
  uploaded_by?: string | null;
29631
+ width_mm?: number | null;
29452
29632
  };
29453
29633
  Update: {
29634
+ content_hash?: string | null;
29454
29635
  created_at?: string;
29455
29636
  customer_key?: string;
29456
29637
  file_name?: string;
29457
29638
  file_path?: string;
29458
29639
  file_size?: number | null;
29640
+ floriday_sticker_id?: string | null;
29641
+ floriday_synced_at?: string | null;
29642
+ height_mm?: number | null;
29459
29643
  id?: string;
29460
29644
  mime_type?: string | null;
29645
+ source?: string;
29461
29646
  trade_item_key?: string;
29462
29647
  updated_at?: string;
29463
29648
  uploaded_by?: string | null;
29649
+ width_mm?: number | null;
29464
29650
  };
29465
29651
  Relationships: [];
29466
29652
  };
@@ -38768,6 +38954,7 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
38768
38954
  Row: {
38769
38955
  actor: string | null;
38770
38956
  attempts: number;
38957
+ calc: import("../integrations/supabase/types").Json | null;
38771
38958
  cart_ref: string | null;
38772
38959
  created_at: string;
38773
38960
  db_action: string | null;
@@ -38778,6 +38965,7 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
38778
38965
  decision: string | null;
38779
38966
  duration_ms: number | null;
38780
38967
  error: string | null;
38968
+ error_class: string | null;
38781
38969
  external_action: string | null;
38782
38970
  external_ref: string | null;
38783
38971
  external_response: import("../integrations/supabase/types").Json | null;
@@ -38786,6 +38974,8 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
38786
38974
  id: string;
38787
38975
  input: import("../integrations/supabase/types").Json | null;
38788
38976
  next_attempt_at: string | null;
38977
+ next_step: string | null;
38978
+ node_id: string | null;
38789
38979
  order_ref: string | null;
38790
38980
  order_source: string | null;
38791
38981
  output: import("../integrations/supabase/types").Json | null;
@@ -38802,6 +38992,7 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
38802
38992
  Insert: {
38803
38993
  actor?: string | null;
38804
38994
  attempts?: number;
38995
+ calc?: import("../integrations/supabase/types").Json | null;
38805
38996
  cart_ref?: string | null;
38806
38997
  created_at?: string;
38807
38998
  db_action?: string | null;
@@ -38812,6 +39003,7 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
38812
39003
  decision?: string | null;
38813
39004
  duration_ms?: number | null;
38814
39005
  error?: string | null;
39006
+ error_class?: string | null;
38815
39007
  external_action?: string | null;
38816
39008
  external_ref?: string | null;
38817
39009
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -38820,6 +39012,8 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
38820
39012
  id?: string;
38821
39013
  input?: import("../integrations/supabase/types").Json | null;
38822
39014
  next_attempt_at?: string | null;
39015
+ next_step?: string | null;
39016
+ node_id?: string | null;
38823
39017
  order_ref?: string | null;
38824
39018
  order_source?: string | null;
38825
39019
  output?: import("../integrations/supabase/types").Json | null;
@@ -38836,6 +39030,7 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
38836
39030
  Update: {
38837
39031
  actor?: string | null;
38838
39032
  attempts?: number;
39033
+ calc?: import("../integrations/supabase/types").Json | null;
38839
39034
  cart_ref?: string | null;
38840
39035
  created_at?: string;
38841
39036
  db_action?: string | null;
@@ -38846,6 +39041,7 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
38846
39041
  decision?: string | null;
38847
39042
  duration_ms?: number | null;
38848
39043
  error?: string | null;
39044
+ error_class?: string | null;
38849
39045
  external_action?: string | null;
38850
39046
  external_ref?: string | null;
38851
39047
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -38854,6 +39050,8 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
38854
39050
  id?: string;
38855
39051
  input?: import("../integrations/supabase/types").Json | null;
38856
39052
  next_attempt_at?: string | null;
39053
+ next_step?: string | null;
39054
+ node_id?: string | null;
38857
39055
  order_ref?: string | null;
38858
39056
  order_source?: string | null;
38859
39057
  output?: import("../integrations/supabase/types").Json | null;
@@ -52358,12 +52556,59 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
52358
52556
  };
52359
52557
  Returns: string;
52360
52558
  };
52559
+ logistics_trace_all_orders: {
52560
+ Args: {
52561
+ p_limit?: number;
52562
+ p_search?: string;
52563
+ };
52564
+ Returns: import("../integrations/supabase/types").Json;
52565
+ };
52361
52566
  logistics_trace_batch: {
52362
52567
  Args: {
52363
52568
  p: import("../integrations/supabase/types").Json;
52364
52569
  };
52365
52570
  Returns: number;
52366
52571
  };
52572
+ logistics_trace_node: {
52573
+ Args: {
52574
+ p_op?: string;
52575
+ p_status?: string;
52576
+ p_table: string;
52577
+ };
52578
+ Returns: string;
52579
+ };
52580
+ logistics_trace_order_overview: {
52581
+ Args: {
52582
+ p_error_class?: string;
52583
+ p_limit?: number;
52584
+ p_search?: string;
52585
+ p_since?: string;
52586
+ p_source?: string;
52587
+ p_state?: string;
52588
+ p_step?: string;
52589
+ };
52590
+ Returns: import("../integrations/supabase/types").Json;
52591
+ };
52592
+ logistics_trace_order_state: {
52593
+ Args: {
52594
+ p_order_ref: string;
52595
+ };
52596
+ Returns: import("../integrations/supabase/types").Json;
52597
+ };
52598
+ logistics_trace_order_step: {
52599
+ Args: {
52600
+ p_class?: string;
52601
+ p_decision?: string;
52602
+ p_error?: string;
52603
+ p_next_step?: string;
52604
+ p_node: string;
52605
+ p_order_id: string;
52606
+ p_reason?: string;
52607
+ p_status: string;
52608
+ p_step: string;
52609
+ };
52610
+ Returns: undefined;
52611
+ };
52367
52612
  logistics_trace_orders: {
52368
52613
  Args: {
52369
52614
  p_limit?: number;
@@ -52386,6 +52631,22 @@ export declare const confirmStickerUpload: import("@tanstack/start-client-core")
52386
52631
  };
52387
52632
  Returns: import("../integrations/supabase/types").Json;
52388
52633
  };
52634
+ logistics_trace_version_events: {
52635
+ Args: {
52636
+ p_from?: string;
52637
+ p_limit?: number;
52638
+ p_order_ref: string;
52639
+ p_to?: string;
52640
+ p_version_id: string;
52641
+ };
52642
+ Returns: import("../integrations/supabase/types").Json;
52643
+ };
52644
+ logistics_trace_versions: {
52645
+ Args: {
52646
+ p_order_ref: string;
52647
+ };
52648
+ Returns: import("../integrations/supabase/types").Json;
52649
+ };
52389
52650
  logistics_upsert_task: {
52390
52651
  Args: {
52391
52652
  p_buffer_ref: string;
@@ -56213,6 +56474,42 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
56213
56474
  };
56214
56475
  Relationships: [];
56215
56476
  };
56477
+ customer_assortment_items: {
56478
+ Row: {
56479
+ created_at: string;
56480
+ customer_key: string;
56481
+ id: string;
56482
+ in_assortment: boolean;
56483
+ manual_override: boolean;
56484
+ source: string;
56485
+ synced_at: string | null;
56486
+ trade_item_key: string;
56487
+ updated_at: string;
56488
+ };
56489
+ Insert: {
56490
+ created_at?: string;
56491
+ customer_key: string;
56492
+ id?: string;
56493
+ in_assortment?: boolean;
56494
+ manual_override?: boolean;
56495
+ source?: string;
56496
+ synced_at?: string | null;
56497
+ trade_item_key: string;
56498
+ updated_at?: string;
56499
+ };
56500
+ Update: {
56501
+ created_at?: string;
56502
+ customer_key?: string;
56503
+ id?: string;
56504
+ in_assortment?: boolean;
56505
+ manual_override?: boolean;
56506
+ source?: string;
56507
+ synced_at?: string | null;
56508
+ trade_item_key?: string;
56509
+ updated_at?: string;
56510
+ };
56511
+ Relationships: [];
56512
+ };
56216
56513
  customer_audit_log: {
56217
56514
  Row: {
56218
56515
  action: string;
@@ -56617,40 +56914,58 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
56617
56914
  };
56618
56915
  customer_product_stickers: {
56619
56916
  Row: {
56917
+ content_hash: string | null;
56620
56918
  created_at: string;
56621
56919
  customer_key: string;
56622
56920
  file_name: string;
56623
56921
  file_path: string;
56624
56922
  file_size: number | null;
56923
+ floriday_sticker_id: string | null;
56924
+ floriday_synced_at: string | null;
56925
+ height_mm: number | null;
56625
56926
  id: string;
56626
56927
  mime_type: string | null;
56928
+ source: string;
56627
56929
  trade_item_key: string;
56628
56930
  updated_at: string;
56629
56931
  uploaded_by: string | null;
56932
+ width_mm: number | null;
56630
56933
  };
56631
56934
  Insert: {
56935
+ content_hash?: string | null;
56632
56936
  created_at?: string;
56633
56937
  customer_key: string;
56634
56938
  file_name: string;
56635
56939
  file_path: string;
56636
56940
  file_size?: number | null;
56941
+ floriday_sticker_id?: string | null;
56942
+ floriday_synced_at?: string | null;
56943
+ height_mm?: number | null;
56637
56944
  id?: string;
56638
56945
  mime_type?: string | null;
56946
+ source?: string;
56639
56947
  trade_item_key: string;
56640
56948
  updated_at?: string;
56641
56949
  uploaded_by?: string | null;
56950
+ width_mm?: number | null;
56642
56951
  };
56643
56952
  Update: {
56953
+ content_hash?: string | null;
56644
56954
  created_at?: string;
56645
56955
  customer_key?: string;
56646
56956
  file_name?: string;
56647
56957
  file_path?: string;
56648
56958
  file_size?: number | null;
56959
+ floriday_sticker_id?: string | null;
56960
+ floriday_synced_at?: string | null;
56961
+ height_mm?: number | null;
56649
56962
  id?: string;
56650
56963
  mime_type?: string | null;
56964
+ source?: string;
56651
56965
  trade_item_key?: string;
56652
56966
  updated_at?: string;
56653
56967
  uploaded_by?: string | null;
56968
+ width_mm?: number | null;
56654
56969
  };
56655
56970
  Relationships: [];
56656
56971
  };
@@ -65958,6 +66273,7 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
65958
66273
  Row: {
65959
66274
  actor: string | null;
65960
66275
  attempts: number;
66276
+ calc: import("../integrations/supabase/types").Json | null;
65961
66277
  cart_ref: string | null;
65962
66278
  created_at: string;
65963
66279
  db_action: string | null;
@@ -65968,6 +66284,7 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
65968
66284
  decision: string | null;
65969
66285
  duration_ms: number | null;
65970
66286
  error: string | null;
66287
+ error_class: string | null;
65971
66288
  external_action: string | null;
65972
66289
  external_ref: string | null;
65973
66290
  external_response: import("../integrations/supabase/types").Json | null;
@@ -65976,6 +66293,8 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
65976
66293
  id: string;
65977
66294
  input: import("../integrations/supabase/types").Json | null;
65978
66295
  next_attempt_at: string | null;
66296
+ next_step: string | null;
66297
+ node_id: string | null;
65979
66298
  order_ref: string | null;
65980
66299
  order_source: string | null;
65981
66300
  output: import("../integrations/supabase/types").Json | null;
@@ -65992,6 +66311,7 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
65992
66311
  Insert: {
65993
66312
  actor?: string | null;
65994
66313
  attempts?: number;
66314
+ calc?: import("../integrations/supabase/types").Json | null;
65995
66315
  cart_ref?: string | null;
65996
66316
  created_at?: string;
65997
66317
  db_action?: string | null;
@@ -66002,6 +66322,7 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
66002
66322
  decision?: string | null;
66003
66323
  duration_ms?: number | null;
66004
66324
  error?: string | null;
66325
+ error_class?: string | null;
66005
66326
  external_action?: string | null;
66006
66327
  external_ref?: string | null;
66007
66328
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -66010,6 +66331,8 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
66010
66331
  id?: string;
66011
66332
  input?: import("../integrations/supabase/types").Json | null;
66012
66333
  next_attempt_at?: string | null;
66334
+ next_step?: string | null;
66335
+ node_id?: string | null;
66013
66336
  order_ref?: string | null;
66014
66337
  order_source?: string | null;
66015
66338
  output?: import("../integrations/supabase/types").Json | null;
@@ -66026,6 +66349,7 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
66026
66349
  Update: {
66027
66350
  actor?: string | null;
66028
66351
  attempts?: number;
66352
+ calc?: import("../integrations/supabase/types").Json | null;
66029
66353
  cart_ref?: string | null;
66030
66354
  created_at?: string;
66031
66355
  db_action?: string | null;
@@ -66036,6 +66360,7 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
66036
66360
  decision?: string | null;
66037
66361
  duration_ms?: number | null;
66038
66362
  error?: string | null;
66363
+ error_class?: string | null;
66039
66364
  external_action?: string | null;
66040
66365
  external_ref?: string | null;
66041
66366
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -66044,6 +66369,8 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
66044
66369
  id?: string;
66045
66370
  input?: import("../integrations/supabase/types").Json | null;
66046
66371
  next_attempt_at?: string | null;
66372
+ next_step?: string | null;
66373
+ node_id?: string | null;
66047
66374
  order_ref?: string | null;
66048
66375
  order_source?: string | null;
66049
66376
  output?: import("../integrations/supabase/types").Json | null;
@@ -79548,12 +79875,59 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
79548
79875
  };
79549
79876
  Returns: string;
79550
79877
  };
79878
+ logistics_trace_all_orders: {
79879
+ Args: {
79880
+ p_limit?: number;
79881
+ p_search?: string;
79882
+ };
79883
+ Returns: import("../integrations/supabase/types").Json;
79884
+ };
79551
79885
  logistics_trace_batch: {
79552
79886
  Args: {
79553
79887
  p: import("../integrations/supabase/types").Json;
79554
79888
  };
79555
79889
  Returns: number;
79556
79890
  };
79891
+ logistics_trace_node: {
79892
+ Args: {
79893
+ p_op?: string;
79894
+ p_status?: string;
79895
+ p_table: string;
79896
+ };
79897
+ Returns: string;
79898
+ };
79899
+ logistics_trace_order_overview: {
79900
+ Args: {
79901
+ p_error_class?: string;
79902
+ p_limit?: number;
79903
+ p_search?: string;
79904
+ p_since?: string;
79905
+ p_source?: string;
79906
+ p_state?: string;
79907
+ p_step?: string;
79908
+ };
79909
+ Returns: import("../integrations/supabase/types").Json;
79910
+ };
79911
+ logistics_trace_order_state: {
79912
+ Args: {
79913
+ p_order_ref: string;
79914
+ };
79915
+ Returns: import("../integrations/supabase/types").Json;
79916
+ };
79917
+ logistics_trace_order_step: {
79918
+ Args: {
79919
+ p_class?: string;
79920
+ p_decision?: string;
79921
+ p_error?: string;
79922
+ p_next_step?: string;
79923
+ p_node: string;
79924
+ p_order_id: string;
79925
+ p_reason?: string;
79926
+ p_status: string;
79927
+ p_step: string;
79928
+ };
79929
+ Returns: undefined;
79930
+ };
79557
79931
  logistics_trace_orders: {
79558
79932
  Args: {
79559
79933
  p_limit?: number;
@@ -79576,6 +79950,22 @@ export declare const deleteCustomerSticker: import("@tanstack/start-client-core"
79576
79950
  };
79577
79951
  Returns: import("../integrations/supabase/types").Json;
79578
79952
  };
79953
+ logistics_trace_version_events: {
79954
+ Args: {
79955
+ p_from?: string;
79956
+ p_limit?: number;
79957
+ p_order_ref: string;
79958
+ p_to?: string;
79959
+ p_version_id: string;
79960
+ };
79961
+ Returns: import("../integrations/supabase/types").Json;
79962
+ };
79963
+ logistics_trace_versions: {
79964
+ Args: {
79965
+ p_order_ref: string;
79966
+ };
79967
+ Returns: import("../integrations/supabase/types").Json;
79968
+ };
79579
79969
  logistics_upsert_task: {
79580
79970
  Args: {
79581
79971
  p_buffer_ref: string;
@@ -83399,6 +83789,42 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
83399
83789
  };
83400
83790
  Relationships: [];
83401
83791
  };
83792
+ customer_assortment_items: {
83793
+ Row: {
83794
+ created_at: string;
83795
+ customer_key: string;
83796
+ id: string;
83797
+ in_assortment: boolean;
83798
+ manual_override: boolean;
83799
+ source: string;
83800
+ synced_at: string | null;
83801
+ trade_item_key: string;
83802
+ updated_at: string;
83803
+ };
83804
+ Insert: {
83805
+ created_at?: string;
83806
+ customer_key: string;
83807
+ id?: string;
83808
+ in_assortment?: boolean;
83809
+ manual_override?: boolean;
83810
+ source?: string;
83811
+ synced_at?: string | null;
83812
+ trade_item_key: string;
83813
+ updated_at?: string;
83814
+ };
83815
+ Update: {
83816
+ created_at?: string;
83817
+ customer_key?: string;
83818
+ id?: string;
83819
+ in_assortment?: boolean;
83820
+ manual_override?: boolean;
83821
+ source?: string;
83822
+ synced_at?: string | null;
83823
+ trade_item_key?: string;
83824
+ updated_at?: string;
83825
+ };
83826
+ Relationships: [];
83827
+ };
83402
83828
  customer_audit_log: {
83403
83829
  Row: {
83404
83830
  action: string;
@@ -83803,40 +84229,58 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
83803
84229
  };
83804
84230
  customer_product_stickers: {
83805
84231
  Row: {
84232
+ content_hash: string | null;
83806
84233
  created_at: string;
83807
84234
  customer_key: string;
83808
84235
  file_name: string;
83809
84236
  file_path: string;
83810
84237
  file_size: number | null;
84238
+ floriday_sticker_id: string | null;
84239
+ floriday_synced_at: string | null;
84240
+ height_mm: number | null;
83811
84241
  id: string;
83812
84242
  mime_type: string | null;
84243
+ source: string;
83813
84244
  trade_item_key: string;
83814
84245
  updated_at: string;
83815
84246
  uploaded_by: string | null;
84247
+ width_mm: number | null;
83816
84248
  };
83817
84249
  Insert: {
84250
+ content_hash?: string | null;
83818
84251
  created_at?: string;
83819
84252
  customer_key: string;
83820
84253
  file_name: string;
83821
84254
  file_path: string;
83822
84255
  file_size?: number | null;
84256
+ floriday_sticker_id?: string | null;
84257
+ floriday_synced_at?: string | null;
84258
+ height_mm?: number | null;
83823
84259
  id?: string;
83824
84260
  mime_type?: string | null;
84261
+ source?: string;
83825
84262
  trade_item_key: string;
83826
84263
  updated_at?: string;
83827
84264
  uploaded_by?: string | null;
84265
+ width_mm?: number | null;
83828
84266
  };
83829
84267
  Update: {
84268
+ content_hash?: string | null;
83830
84269
  created_at?: string;
83831
84270
  customer_key?: string;
83832
84271
  file_name?: string;
83833
84272
  file_path?: string;
83834
84273
  file_size?: number | null;
84274
+ floriday_sticker_id?: string | null;
84275
+ floriday_synced_at?: string | null;
84276
+ height_mm?: number | null;
83835
84277
  id?: string;
83836
84278
  mime_type?: string | null;
84279
+ source?: string;
83837
84280
  trade_item_key?: string;
83838
84281
  updated_at?: string;
83839
84282
  uploaded_by?: string | null;
84283
+ width_mm?: number | null;
83840
84284
  };
83841
84285
  Relationships: [];
83842
84286
  };
@@ -93144,6 +93588,7 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
93144
93588
  Row: {
93145
93589
  actor: string | null;
93146
93590
  attempts: number;
93591
+ calc: import("../integrations/supabase/types").Json | null;
93147
93592
  cart_ref: string | null;
93148
93593
  created_at: string;
93149
93594
  db_action: string | null;
@@ -93154,6 +93599,7 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
93154
93599
  decision: string | null;
93155
93600
  duration_ms: number | null;
93156
93601
  error: string | null;
93602
+ error_class: string | null;
93157
93603
  external_action: string | null;
93158
93604
  external_ref: string | null;
93159
93605
  external_response: import("../integrations/supabase/types").Json | null;
@@ -93162,6 +93608,8 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
93162
93608
  id: string;
93163
93609
  input: import("../integrations/supabase/types").Json | null;
93164
93610
  next_attempt_at: string | null;
93611
+ next_step: string | null;
93612
+ node_id: string | null;
93165
93613
  order_ref: string | null;
93166
93614
  order_source: string | null;
93167
93615
  output: import("../integrations/supabase/types").Json | null;
@@ -93178,6 +93626,7 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
93178
93626
  Insert: {
93179
93627
  actor?: string | null;
93180
93628
  attempts?: number;
93629
+ calc?: import("../integrations/supabase/types").Json | null;
93181
93630
  cart_ref?: string | null;
93182
93631
  created_at?: string;
93183
93632
  db_action?: string | null;
@@ -93188,6 +93637,7 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
93188
93637
  decision?: string | null;
93189
93638
  duration_ms?: number | null;
93190
93639
  error?: string | null;
93640
+ error_class?: string | null;
93191
93641
  external_action?: string | null;
93192
93642
  external_ref?: string | null;
93193
93643
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -93196,6 +93646,8 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
93196
93646
  id?: string;
93197
93647
  input?: import("../integrations/supabase/types").Json | null;
93198
93648
  next_attempt_at?: string | null;
93649
+ next_step?: string | null;
93650
+ node_id?: string | null;
93199
93651
  order_ref?: string | null;
93200
93652
  order_source?: string | null;
93201
93653
  output?: import("../integrations/supabase/types").Json | null;
@@ -93212,6 +93664,7 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
93212
93664
  Update: {
93213
93665
  actor?: string | null;
93214
93666
  attempts?: number;
93667
+ calc?: import("../integrations/supabase/types").Json | null;
93215
93668
  cart_ref?: string | null;
93216
93669
  created_at?: string;
93217
93670
  db_action?: string | null;
@@ -93222,6 +93675,7 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
93222
93675
  decision?: string | null;
93223
93676
  duration_ms?: number | null;
93224
93677
  error?: string | null;
93678
+ error_class?: string | null;
93225
93679
  external_action?: string | null;
93226
93680
  external_ref?: string | null;
93227
93681
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -93230,6 +93684,8 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
93230
93684
  id?: string;
93231
93685
  input?: import("../integrations/supabase/types").Json | null;
93232
93686
  next_attempt_at?: string | null;
93687
+ next_step?: string | null;
93688
+ node_id?: string | null;
93233
93689
  order_ref?: string | null;
93234
93690
  order_source?: string | null;
93235
93691
  output?: import("../integrations/supabase/types").Json | null;
@@ -106734,12 +107190,59 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
106734
107190
  };
106735
107191
  Returns: string;
106736
107192
  };
107193
+ logistics_trace_all_orders: {
107194
+ Args: {
107195
+ p_limit?: number;
107196
+ p_search?: string;
107197
+ };
107198
+ Returns: import("../integrations/supabase/types").Json;
107199
+ };
106737
107200
  logistics_trace_batch: {
106738
107201
  Args: {
106739
107202
  p: import("../integrations/supabase/types").Json;
106740
107203
  };
106741
107204
  Returns: number;
106742
107205
  };
107206
+ logistics_trace_node: {
107207
+ Args: {
107208
+ p_op?: string;
107209
+ p_status?: string;
107210
+ p_table: string;
107211
+ };
107212
+ Returns: string;
107213
+ };
107214
+ logistics_trace_order_overview: {
107215
+ Args: {
107216
+ p_error_class?: string;
107217
+ p_limit?: number;
107218
+ p_search?: string;
107219
+ p_since?: string;
107220
+ p_source?: string;
107221
+ p_state?: string;
107222
+ p_step?: string;
107223
+ };
107224
+ Returns: import("../integrations/supabase/types").Json;
107225
+ };
107226
+ logistics_trace_order_state: {
107227
+ Args: {
107228
+ p_order_ref: string;
107229
+ };
107230
+ Returns: import("../integrations/supabase/types").Json;
107231
+ };
107232
+ logistics_trace_order_step: {
107233
+ Args: {
107234
+ p_class?: string;
107235
+ p_decision?: string;
107236
+ p_error?: string;
107237
+ p_next_step?: string;
107238
+ p_node: string;
107239
+ p_order_id: string;
107240
+ p_reason?: string;
107241
+ p_status: string;
107242
+ p_step: string;
107243
+ };
107244
+ Returns: undefined;
107245
+ };
106743
107246
  logistics_trace_orders: {
106744
107247
  Args: {
106745
107248
  p_limit?: number;
@@ -106762,6 +107265,22 @@ export declare const getCustomerStickerSettings: import("@tanstack/start-client-
106762
107265
  };
106763
107266
  Returns: import("../integrations/supabase/types").Json;
106764
107267
  };
107268
+ logistics_trace_version_events: {
107269
+ Args: {
107270
+ p_from?: string;
107271
+ p_limit?: number;
107272
+ p_order_ref: string;
107273
+ p_to?: string;
107274
+ p_version_id: string;
107275
+ };
107276
+ Returns: import("../integrations/supabase/types").Json;
107277
+ };
107278
+ logistics_trace_versions: {
107279
+ Args: {
107280
+ p_order_ref: string;
107281
+ };
107282
+ Returns: import("../integrations/supabase/types").Json;
107283
+ };
106765
107284
  logistics_upsert_task: {
106766
107285
  Args: {
106767
107286
  p_buffer_ref: string;
@@ -110582,6 +111101,42 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
110582
111101
  };
110583
111102
  Relationships: [];
110584
111103
  };
111104
+ customer_assortment_items: {
111105
+ Row: {
111106
+ created_at: string;
111107
+ customer_key: string;
111108
+ id: string;
111109
+ in_assortment: boolean;
111110
+ manual_override: boolean;
111111
+ source: string;
111112
+ synced_at: string | null;
111113
+ trade_item_key: string;
111114
+ updated_at: string;
111115
+ };
111116
+ Insert: {
111117
+ created_at?: string;
111118
+ customer_key: string;
111119
+ id?: string;
111120
+ in_assortment?: boolean;
111121
+ manual_override?: boolean;
111122
+ source?: string;
111123
+ synced_at?: string | null;
111124
+ trade_item_key: string;
111125
+ updated_at?: string;
111126
+ };
111127
+ Update: {
111128
+ created_at?: string;
111129
+ customer_key?: string;
111130
+ id?: string;
111131
+ in_assortment?: boolean;
111132
+ manual_override?: boolean;
111133
+ source?: string;
111134
+ synced_at?: string | null;
111135
+ trade_item_key?: string;
111136
+ updated_at?: string;
111137
+ };
111138
+ Relationships: [];
111139
+ };
110585
111140
  customer_audit_log: {
110586
111141
  Row: {
110587
111142
  action: string;
@@ -110986,40 +111541,58 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
110986
111541
  };
110987
111542
  customer_product_stickers: {
110988
111543
  Row: {
111544
+ content_hash: string | null;
110989
111545
  created_at: string;
110990
111546
  customer_key: string;
110991
111547
  file_name: string;
110992
111548
  file_path: string;
110993
111549
  file_size: number | null;
111550
+ floriday_sticker_id: string | null;
111551
+ floriday_synced_at: string | null;
111552
+ height_mm: number | null;
110994
111553
  id: string;
110995
111554
  mime_type: string | null;
111555
+ source: string;
110996
111556
  trade_item_key: string;
110997
111557
  updated_at: string;
110998
111558
  uploaded_by: string | null;
111559
+ width_mm: number | null;
110999
111560
  };
111000
111561
  Insert: {
111562
+ content_hash?: string | null;
111001
111563
  created_at?: string;
111002
111564
  customer_key: string;
111003
111565
  file_name: string;
111004
111566
  file_path: string;
111005
111567
  file_size?: number | null;
111568
+ floriday_sticker_id?: string | null;
111569
+ floriday_synced_at?: string | null;
111570
+ height_mm?: number | null;
111006
111571
  id?: string;
111007
111572
  mime_type?: string | null;
111573
+ source?: string;
111008
111574
  trade_item_key: string;
111009
111575
  updated_at?: string;
111010
111576
  uploaded_by?: string | null;
111577
+ width_mm?: number | null;
111011
111578
  };
111012
111579
  Update: {
111580
+ content_hash?: string | null;
111013
111581
  created_at?: string;
111014
111582
  customer_key?: string;
111015
111583
  file_name?: string;
111016
111584
  file_path?: string;
111017
111585
  file_size?: number | null;
111586
+ floriday_sticker_id?: string | null;
111587
+ floriday_synced_at?: string | null;
111588
+ height_mm?: number | null;
111018
111589
  id?: string;
111019
111590
  mime_type?: string | null;
111591
+ source?: string;
111020
111592
  trade_item_key?: string;
111021
111593
  updated_at?: string;
111022
111594
  uploaded_by?: string | null;
111595
+ width_mm?: number | null;
111023
111596
  };
111024
111597
  Relationships: [];
111025
111598
  };
@@ -120327,6 +120900,7 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
120327
120900
  Row: {
120328
120901
  actor: string | null;
120329
120902
  attempts: number;
120903
+ calc: import("../integrations/supabase/types").Json | null;
120330
120904
  cart_ref: string | null;
120331
120905
  created_at: string;
120332
120906
  db_action: string | null;
@@ -120337,6 +120911,7 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
120337
120911
  decision: string | null;
120338
120912
  duration_ms: number | null;
120339
120913
  error: string | null;
120914
+ error_class: string | null;
120340
120915
  external_action: string | null;
120341
120916
  external_ref: string | null;
120342
120917
  external_response: import("../integrations/supabase/types").Json | null;
@@ -120345,6 +120920,8 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
120345
120920
  id: string;
120346
120921
  input: import("../integrations/supabase/types").Json | null;
120347
120922
  next_attempt_at: string | null;
120923
+ next_step: string | null;
120924
+ node_id: string | null;
120348
120925
  order_ref: string | null;
120349
120926
  order_source: string | null;
120350
120927
  output: import("../integrations/supabase/types").Json | null;
@@ -120361,6 +120938,7 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
120361
120938
  Insert: {
120362
120939
  actor?: string | null;
120363
120940
  attempts?: number;
120941
+ calc?: import("../integrations/supabase/types").Json | null;
120364
120942
  cart_ref?: string | null;
120365
120943
  created_at?: string;
120366
120944
  db_action?: string | null;
@@ -120371,6 +120949,7 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
120371
120949
  decision?: string | null;
120372
120950
  duration_ms?: number | null;
120373
120951
  error?: string | null;
120952
+ error_class?: string | null;
120374
120953
  external_action?: string | null;
120375
120954
  external_ref?: string | null;
120376
120955
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -120379,6 +120958,8 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
120379
120958
  id?: string;
120380
120959
  input?: import("../integrations/supabase/types").Json | null;
120381
120960
  next_attempt_at?: string | null;
120961
+ next_step?: string | null;
120962
+ node_id?: string | null;
120382
120963
  order_ref?: string | null;
120383
120964
  order_source?: string | null;
120384
120965
  output?: import("../integrations/supabase/types").Json | null;
@@ -120395,6 +120976,7 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
120395
120976
  Update: {
120396
120977
  actor?: string | null;
120397
120978
  attempts?: number;
120979
+ calc?: import("../integrations/supabase/types").Json | null;
120398
120980
  cart_ref?: string | null;
120399
120981
  created_at?: string;
120400
120982
  db_action?: string | null;
@@ -120405,6 +120987,7 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
120405
120987
  decision?: string | null;
120406
120988
  duration_ms?: number | null;
120407
120989
  error?: string | null;
120990
+ error_class?: string | null;
120408
120991
  external_action?: string | null;
120409
120992
  external_ref?: string | null;
120410
120993
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -120413,6 +120996,8 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
120413
120996
  id?: string;
120414
120997
  input?: import("../integrations/supabase/types").Json | null;
120415
120998
  next_attempt_at?: string | null;
120999
+ next_step?: string | null;
121000
+ node_id?: string | null;
120416
121001
  order_ref?: string | null;
120417
121002
  order_source?: string | null;
120418
121003
  output?: import("../integrations/supabase/types").Json | null;
@@ -133917,12 +134502,59 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
133917
134502
  };
133918
134503
  Returns: string;
133919
134504
  };
134505
+ logistics_trace_all_orders: {
134506
+ Args: {
134507
+ p_limit?: number;
134508
+ p_search?: string;
134509
+ };
134510
+ Returns: import("../integrations/supabase/types").Json;
134511
+ };
133920
134512
  logistics_trace_batch: {
133921
134513
  Args: {
133922
134514
  p: import("../integrations/supabase/types").Json;
133923
134515
  };
133924
134516
  Returns: number;
133925
134517
  };
134518
+ logistics_trace_node: {
134519
+ Args: {
134520
+ p_op?: string;
134521
+ p_status?: string;
134522
+ p_table: string;
134523
+ };
134524
+ Returns: string;
134525
+ };
134526
+ logistics_trace_order_overview: {
134527
+ Args: {
134528
+ p_error_class?: string;
134529
+ p_limit?: number;
134530
+ p_search?: string;
134531
+ p_since?: string;
134532
+ p_source?: string;
134533
+ p_state?: string;
134534
+ p_step?: string;
134535
+ };
134536
+ Returns: import("../integrations/supabase/types").Json;
134537
+ };
134538
+ logistics_trace_order_state: {
134539
+ Args: {
134540
+ p_order_ref: string;
134541
+ };
134542
+ Returns: import("../integrations/supabase/types").Json;
134543
+ };
134544
+ logistics_trace_order_step: {
134545
+ Args: {
134546
+ p_class?: string;
134547
+ p_decision?: string;
134548
+ p_error?: string;
134549
+ p_next_step?: string;
134550
+ p_node: string;
134551
+ p_order_id: string;
134552
+ p_reason?: string;
134553
+ p_status: string;
134554
+ p_step: string;
134555
+ };
134556
+ Returns: undefined;
134557
+ };
133926
134558
  logistics_trace_orders: {
133927
134559
  Args: {
133928
134560
  p_limit?: number;
@@ -133945,6 +134577,22 @@ export declare const setCustomerStickerSettings: import("@tanstack/start-client-
133945
134577
  };
133946
134578
  Returns: import("../integrations/supabase/types").Json;
133947
134579
  };
134580
+ logistics_trace_version_events: {
134581
+ Args: {
134582
+ p_from?: string;
134583
+ p_limit?: number;
134584
+ p_order_ref: string;
134585
+ p_to?: string;
134586
+ p_version_id: string;
134587
+ };
134588
+ Returns: import("../integrations/supabase/types").Json;
134589
+ };
134590
+ logistics_trace_versions: {
134591
+ Args: {
134592
+ p_order_ref: string;
134593
+ };
134594
+ Returns: import("../integrations/supabase/types").Json;
134595
+ };
133948
134596
  logistics_upsert_task: {
133949
134597
  Args: {
133950
134598
  p_buffer_ref: string;
@@ -137773,6 +138421,42 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
137773
138421
  };
137774
138422
  Relationships: [];
137775
138423
  };
138424
+ customer_assortment_items: {
138425
+ Row: {
138426
+ created_at: string;
138427
+ customer_key: string;
138428
+ id: string;
138429
+ in_assortment: boolean;
138430
+ manual_override: boolean;
138431
+ source: string;
138432
+ synced_at: string | null;
138433
+ trade_item_key: string;
138434
+ updated_at: string;
138435
+ };
138436
+ Insert: {
138437
+ created_at?: string;
138438
+ customer_key: string;
138439
+ id?: string;
138440
+ in_assortment?: boolean;
138441
+ manual_override?: boolean;
138442
+ source?: string;
138443
+ synced_at?: string | null;
138444
+ trade_item_key: string;
138445
+ updated_at?: string;
138446
+ };
138447
+ Update: {
138448
+ created_at?: string;
138449
+ customer_key?: string;
138450
+ id?: string;
138451
+ in_assortment?: boolean;
138452
+ manual_override?: boolean;
138453
+ source?: string;
138454
+ synced_at?: string | null;
138455
+ trade_item_key?: string;
138456
+ updated_at?: string;
138457
+ };
138458
+ Relationships: [];
138459
+ };
137776
138460
  customer_audit_log: {
137777
138461
  Row: {
137778
138462
  action: string;
@@ -138177,40 +138861,58 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
138177
138861
  };
138178
138862
  customer_product_stickers: {
138179
138863
  Row: {
138864
+ content_hash: string | null;
138180
138865
  created_at: string;
138181
138866
  customer_key: string;
138182
138867
  file_name: string;
138183
138868
  file_path: string;
138184
138869
  file_size: number | null;
138870
+ floriday_sticker_id: string | null;
138871
+ floriday_synced_at: string | null;
138872
+ height_mm: number | null;
138185
138873
  id: string;
138186
138874
  mime_type: string | null;
138875
+ source: string;
138187
138876
  trade_item_key: string;
138188
138877
  updated_at: string;
138189
138878
  uploaded_by: string | null;
138879
+ width_mm: number | null;
138190
138880
  };
138191
138881
  Insert: {
138882
+ content_hash?: string | null;
138192
138883
  created_at?: string;
138193
138884
  customer_key: string;
138194
138885
  file_name: string;
138195
138886
  file_path: string;
138196
138887
  file_size?: number | null;
138888
+ floriday_sticker_id?: string | null;
138889
+ floriday_synced_at?: string | null;
138890
+ height_mm?: number | null;
138197
138891
  id?: string;
138198
138892
  mime_type?: string | null;
138893
+ source?: string;
138199
138894
  trade_item_key: string;
138200
138895
  updated_at?: string;
138201
138896
  uploaded_by?: string | null;
138897
+ width_mm?: number | null;
138202
138898
  };
138203
138899
  Update: {
138900
+ content_hash?: string | null;
138204
138901
  created_at?: string;
138205
138902
  customer_key?: string;
138206
138903
  file_name?: string;
138207
138904
  file_path?: string;
138208
138905
  file_size?: number | null;
138906
+ floriday_sticker_id?: string | null;
138907
+ floriday_synced_at?: string | null;
138908
+ height_mm?: number | null;
138209
138909
  id?: string;
138210
138910
  mime_type?: string | null;
138911
+ source?: string;
138211
138912
  trade_item_key?: string;
138212
138913
  updated_at?: string;
138213
138914
  uploaded_by?: string | null;
138915
+ width_mm?: number | null;
138214
138916
  };
138215
138917
  Relationships: [];
138216
138918
  };
@@ -147518,6 +148220,7 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
147518
148220
  Row: {
147519
148221
  actor: string | null;
147520
148222
  attempts: number;
148223
+ calc: import("../integrations/supabase/types").Json | null;
147521
148224
  cart_ref: string | null;
147522
148225
  created_at: string;
147523
148226
  db_action: string | null;
@@ -147528,6 +148231,7 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
147528
148231
  decision: string | null;
147529
148232
  duration_ms: number | null;
147530
148233
  error: string | null;
148234
+ error_class: string | null;
147531
148235
  external_action: string | null;
147532
148236
  external_ref: string | null;
147533
148237
  external_response: import("../integrations/supabase/types").Json | null;
@@ -147536,6 +148240,8 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
147536
148240
  id: string;
147537
148241
  input: import("../integrations/supabase/types").Json | null;
147538
148242
  next_attempt_at: string | null;
148243
+ next_step: string | null;
148244
+ node_id: string | null;
147539
148245
  order_ref: string | null;
147540
148246
  order_source: string | null;
147541
148247
  output: import("../integrations/supabase/types").Json | null;
@@ -147552,6 +148258,7 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
147552
148258
  Insert: {
147553
148259
  actor?: string | null;
147554
148260
  attempts?: number;
148261
+ calc?: import("../integrations/supabase/types").Json | null;
147555
148262
  cart_ref?: string | null;
147556
148263
  created_at?: string;
147557
148264
  db_action?: string | null;
@@ -147562,6 +148269,7 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
147562
148269
  decision?: string | null;
147563
148270
  duration_ms?: number | null;
147564
148271
  error?: string | null;
148272
+ error_class?: string | null;
147565
148273
  external_action?: string | null;
147566
148274
  external_ref?: string | null;
147567
148275
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -147570,6 +148278,8 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
147570
148278
  id?: string;
147571
148279
  input?: import("../integrations/supabase/types").Json | null;
147572
148280
  next_attempt_at?: string | null;
148281
+ next_step?: string | null;
148282
+ node_id?: string | null;
147573
148283
  order_ref?: string | null;
147574
148284
  order_source?: string | null;
147575
148285
  output?: import("../integrations/supabase/types").Json | null;
@@ -147586,6 +148296,7 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
147586
148296
  Update: {
147587
148297
  actor?: string | null;
147588
148298
  attempts?: number;
148299
+ calc?: import("../integrations/supabase/types").Json | null;
147589
148300
  cart_ref?: string | null;
147590
148301
  created_at?: string;
147591
148302
  db_action?: string | null;
@@ -147596,6 +148307,7 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
147596
148307
  decision?: string | null;
147597
148308
  duration_ms?: number | null;
147598
148309
  error?: string | null;
148310
+ error_class?: string | null;
147599
148311
  external_action?: string | null;
147600
148312
  external_ref?: string | null;
147601
148313
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -147604,6 +148316,8 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
147604
148316
  id?: string;
147605
148317
  input?: import("../integrations/supabase/types").Json | null;
147606
148318
  next_attempt_at?: string | null;
148319
+ next_step?: string | null;
148320
+ node_id?: string | null;
147607
148321
  order_ref?: string | null;
147608
148322
  order_source?: string | null;
147609
148323
  output?: import("../integrations/supabase/types").Json | null;
@@ -161108,12 +161822,59 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
161108
161822
  };
161109
161823
  Returns: string;
161110
161824
  };
161825
+ logistics_trace_all_orders: {
161826
+ Args: {
161827
+ p_limit?: number;
161828
+ p_search?: string;
161829
+ };
161830
+ Returns: import("../integrations/supabase/types").Json;
161831
+ };
161111
161832
  logistics_trace_batch: {
161112
161833
  Args: {
161113
161834
  p: import("../integrations/supabase/types").Json;
161114
161835
  };
161115
161836
  Returns: number;
161116
161837
  };
161838
+ logistics_trace_node: {
161839
+ Args: {
161840
+ p_op?: string;
161841
+ p_status?: string;
161842
+ p_table: string;
161843
+ };
161844
+ Returns: string;
161845
+ };
161846
+ logistics_trace_order_overview: {
161847
+ Args: {
161848
+ p_error_class?: string;
161849
+ p_limit?: number;
161850
+ p_search?: string;
161851
+ p_since?: string;
161852
+ p_source?: string;
161853
+ p_state?: string;
161854
+ p_step?: string;
161855
+ };
161856
+ Returns: import("../integrations/supabase/types").Json;
161857
+ };
161858
+ logistics_trace_order_state: {
161859
+ Args: {
161860
+ p_order_ref: string;
161861
+ };
161862
+ Returns: import("../integrations/supabase/types").Json;
161863
+ };
161864
+ logistics_trace_order_step: {
161865
+ Args: {
161866
+ p_class?: string;
161867
+ p_decision?: string;
161868
+ p_error?: string;
161869
+ p_next_step?: string;
161870
+ p_node: string;
161871
+ p_order_id: string;
161872
+ p_reason?: string;
161873
+ p_status: string;
161874
+ p_step: string;
161875
+ };
161876
+ Returns: undefined;
161877
+ };
161117
161878
  logistics_trace_orders: {
161118
161879
  Args: {
161119
161880
  p_limit?: number;
@@ -161136,6 +161897,22 @@ export declare const getStickerForPrint: import("@tanstack/start-client-core").O
161136
161897
  };
161137
161898
  Returns: import("../integrations/supabase/types").Json;
161138
161899
  };
161900
+ logistics_trace_version_events: {
161901
+ Args: {
161902
+ p_from?: string;
161903
+ p_limit?: number;
161904
+ p_order_ref: string;
161905
+ p_to?: string;
161906
+ p_version_id: string;
161907
+ };
161908
+ Returns: import("../integrations/supabase/types").Json;
161909
+ };
161910
+ logistics_trace_versions: {
161911
+ Args: {
161912
+ p_order_ref: string;
161913
+ };
161914
+ Returns: import("../integrations/supabase/types").Json;
161915
+ };
161139
161916
  logistics_upsert_task: {
161140
161917
  Args: {
161141
161918
  p_buffer_ref: string;
@@ -164970,6 +165747,42 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
164970
165747
  };
164971
165748
  Relationships: [];
164972
165749
  };
165750
+ customer_assortment_items: {
165751
+ Row: {
165752
+ created_at: string;
165753
+ customer_key: string;
165754
+ id: string;
165755
+ in_assortment: boolean;
165756
+ manual_override: boolean;
165757
+ source: string;
165758
+ synced_at: string | null;
165759
+ trade_item_key: string;
165760
+ updated_at: string;
165761
+ };
165762
+ Insert: {
165763
+ created_at?: string;
165764
+ customer_key: string;
165765
+ id?: string;
165766
+ in_assortment?: boolean;
165767
+ manual_override?: boolean;
165768
+ source?: string;
165769
+ synced_at?: string | null;
165770
+ trade_item_key: string;
165771
+ updated_at?: string;
165772
+ };
165773
+ Update: {
165774
+ created_at?: string;
165775
+ customer_key?: string;
165776
+ id?: string;
165777
+ in_assortment?: boolean;
165778
+ manual_override?: boolean;
165779
+ source?: string;
165780
+ synced_at?: string | null;
165781
+ trade_item_key?: string;
165782
+ updated_at?: string;
165783
+ };
165784
+ Relationships: [];
165785
+ };
164973
165786
  customer_audit_log: {
164974
165787
  Row: {
164975
165788
  action: string;
@@ -165374,40 +166187,58 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
165374
166187
  };
165375
166188
  customer_product_stickers: {
165376
166189
  Row: {
166190
+ content_hash: string | null;
165377
166191
  created_at: string;
165378
166192
  customer_key: string;
165379
166193
  file_name: string;
165380
166194
  file_path: string;
165381
166195
  file_size: number | null;
166196
+ floriday_sticker_id: string | null;
166197
+ floriday_synced_at: string | null;
166198
+ height_mm: number | null;
165382
166199
  id: string;
165383
166200
  mime_type: string | null;
166201
+ source: string;
165384
166202
  trade_item_key: string;
165385
166203
  updated_at: string;
165386
166204
  uploaded_by: string | null;
166205
+ width_mm: number | null;
165387
166206
  };
165388
166207
  Insert: {
166208
+ content_hash?: string | null;
165389
166209
  created_at?: string;
165390
166210
  customer_key: string;
165391
166211
  file_name: string;
165392
166212
  file_path: string;
165393
166213
  file_size?: number | null;
166214
+ floriday_sticker_id?: string | null;
166215
+ floriday_synced_at?: string | null;
166216
+ height_mm?: number | null;
165394
166217
  id?: string;
165395
166218
  mime_type?: string | null;
166219
+ source?: string;
165396
166220
  trade_item_key: string;
165397
166221
  updated_at?: string;
165398
166222
  uploaded_by?: string | null;
166223
+ width_mm?: number | null;
165399
166224
  };
165400
166225
  Update: {
166226
+ content_hash?: string | null;
165401
166227
  created_at?: string;
165402
166228
  customer_key?: string;
165403
166229
  file_name?: string;
165404
166230
  file_path?: string;
165405
166231
  file_size?: number | null;
166232
+ floriday_sticker_id?: string | null;
166233
+ floriday_synced_at?: string | null;
166234
+ height_mm?: number | null;
165406
166235
  id?: string;
165407
166236
  mime_type?: string | null;
166237
+ source?: string;
165408
166238
  trade_item_key?: string;
165409
166239
  updated_at?: string;
165410
166240
  uploaded_by?: string | null;
166241
+ width_mm?: number | null;
165411
166242
  };
165412
166243
  Relationships: [];
165413
166244
  };
@@ -174715,6 +175546,7 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
174715
175546
  Row: {
174716
175547
  actor: string | null;
174717
175548
  attempts: number;
175549
+ calc: import("../integrations/supabase/types").Json | null;
174718
175550
  cart_ref: string | null;
174719
175551
  created_at: string;
174720
175552
  db_action: string | null;
@@ -174725,6 +175557,7 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
174725
175557
  decision: string | null;
174726
175558
  duration_ms: number | null;
174727
175559
  error: string | null;
175560
+ error_class: string | null;
174728
175561
  external_action: string | null;
174729
175562
  external_ref: string | null;
174730
175563
  external_response: import("../integrations/supabase/types").Json | null;
@@ -174733,6 +175566,8 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
174733
175566
  id: string;
174734
175567
  input: import("../integrations/supabase/types").Json | null;
174735
175568
  next_attempt_at: string | null;
175569
+ next_step: string | null;
175570
+ node_id: string | null;
174736
175571
  order_ref: string | null;
174737
175572
  order_source: string | null;
174738
175573
  output: import("../integrations/supabase/types").Json | null;
@@ -174749,6 +175584,7 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
174749
175584
  Insert: {
174750
175585
  actor?: string | null;
174751
175586
  attempts?: number;
175587
+ calc?: import("../integrations/supabase/types").Json | null;
174752
175588
  cart_ref?: string | null;
174753
175589
  created_at?: string;
174754
175590
  db_action?: string | null;
@@ -174759,6 +175595,7 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
174759
175595
  decision?: string | null;
174760
175596
  duration_ms?: number | null;
174761
175597
  error?: string | null;
175598
+ error_class?: string | null;
174762
175599
  external_action?: string | null;
174763
175600
  external_ref?: string | null;
174764
175601
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -174767,6 +175604,8 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
174767
175604
  id?: string;
174768
175605
  input?: import("../integrations/supabase/types").Json | null;
174769
175606
  next_attempt_at?: string | null;
175607
+ next_step?: string | null;
175608
+ node_id?: string | null;
174770
175609
  order_ref?: string | null;
174771
175610
  order_source?: string | null;
174772
175611
  output?: import("../integrations/supabase/types").Json | null;
@@ -174783,6 +175622,7 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
174783
175622
  Update: {
174784
175623
  actor?: string | null;
174785
175624
  attempts?: number;
175625
+ calc?: import("../integrations/supabase/types").Json | null;
174786
175626
  cart_ref?: string | null;
174787
175627
  created_at?: string;
174788
175628
  db_action?: string | null;
@@ -174793,6 +175633,7 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
174793
175633
  decision?: string | null;
174794
175634
  duration_ms?: number | null;
174795
175635
  error?: string | null;
175636
+ error_class?: string | null;
174796
175637
  external_action?: string | null;
174797
175638
  external_ref?: string | null;
174798
175639
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -174801,6 +175642,8 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
174801
175642
  id?: string;
174802
175643
  input?: import("../integrations/supabase/types").Json | null;
174803
175644
  next_attempt_at?: string | null;
175645
+ next_step?: string | null;
175646
+ node_id?: string | null;
174804
175647
  order_ref?: string | null;
174805
175648
  order_source?: string | null;
174806
175649
  output?: import("../integrations/supabase/types").Json | null;
@@ -188305,12 +189148,59 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
188305
189148
  };
188306
189149
  Returns: string;
188307
189150
  };
189151
+ logistics_trace_all_orders: {
189152
+ Args: {
189153
+ p_limit?: number;
189154
+ p_search?: string;
189155
+ };
189156
+ Returns: import("../integrations/supabase/types").Json;
189157
+ };
188308
189158
  logistics_trace_batch: {
188309
189159
  Args: {
188310
189160
  p: import("../integrations/supabase/types").Json;
188311
189161
  };
188312
189162
  Returns: number;
188313
189163
  };
189164
+ logistics_trace_node: {
189165
+ Args: {
189166
+ p_op?: string;
189167
+ p_status?: string;
189168
+ p_table: string;
189169
+ };
189170
+ Returns: string;
189171
+ };
189172
+ logistics_trace_order_overview: {
189173
+ Args: {
189174
+ p_error_class?: string;
189175
+ p_limit?: number;
189176
+ p_search?: string;
189177
+ p_since?: string;
189178
+ p_source?: string;
189179
+ p_state?: string;
189180
+ p_step?: string;
189181
+ };
189182
+ Returns: import("../integrations/supabase/types").Json;
189183
+ };
189184
+ logistics_trace_order_state: {
189185
+ Args: {
189186
+ p_order_ref: string;
189187
+ };
189188
+ Returns: import("../integrations/supabase/types").Json;
189189
+ };
189190
+ logistics_trace_order_step: {
189191
+ Args: {
189192
+ p_class?: string;
189193
+ p_decision?: string;
189194
+ p_error?: string;
189195
+ p_next_step?: string;
189196
+ p_node: string;
189197
+ p_order_id: string;
189198
+ p_reason?: string;
189199
+ p_status: string;
189200
+ p_step: string;
189201
+ };
189202
+ Returns: undefined;
189203
+ };
188314
189204
  logistics_trace_orders: {
188315
189205
  Args: {
188316
189206
  p_limit?: number;
@@ -188333,6 +189223,22 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
188333
189223
  };
188334
189224
  Returns: import("../integrations/supabase/types").Json;
188335
189225
  };
189226
+ logistics_trace_version_events: {
189227
+ Args: {
189228
+ p_from?: string;
189229
+ p_limit?: number;
189230
+ p_order_ref: string;
189231
+ p_to?: string;
189232
+ p_version_id: string;
189233
+ };
189234
+ Returns: import("../integrations/supabase/types").Json;
189235
+ };
189236
+ logistics_trace_versions: {
189237
+ Args: {
189238
+ p_order_ref: string;
189239
+ };
189240
+ Returns: import("../integrations/supabase/types").Json;
189241
+ };
188336
189242
  logistics_upsert_task: {
188337
189243
  Args: {
188338
189244
  p_buffer_ref: string;
@@ -190341,6 +191247,7 @@ export declare const suggestStickerMatches: import("@tanstack/start-client-core"
190341
191247
  }[];
190342
191248
  }, Promise<{
190343
191249
  suggestions: StickerMatchSuggestion[];
191250
+ aiError?: string | null;
190344
191251
  }>>;
190345
191252
  export declare const commitStickerBatch: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
190346
191253
  supabase: import("@supabase/supabase-js").SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
@@ -192166,6 +193073,42 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
192166
193073
  };
192167
193074
  Relationships: [];
192168
193075
  };
193076
+ customer_assortment_items: {
193077
+ Row: {
193078
+ created_at: string;
193079
+ customer_key: string;
193080
+ id: string;
193081
+ in_assortment: boolean;
193082
+ manual_override: boolean;
193083
+ source: string;
193084
+ synced_at: string | null;
193085
+ trade_item_key: string;
193086
+ updated_at: string;
193087
+ };
193088
+ Insert: {
193089
+ created_at?: string;
193090
+ customer_key: string;
193091
+ id?: string;
193092
+ in_assortment?: boolean;
193093
+ manual_override?: boolean;
193094
+ source?: string;
193095
+ synced_at?: string | null;
193096
+ trade_item_key: string;
193097
+ updated_at?: string;
193098
+ };
193099
+ Update: {
193100
+ created_at?: string;
193101
+ customer_key?: string;
193102
+ id?: string;
193103
+ in_assortment?: boolean;
193104
+ manual_override?: boolean;
193105
+ source?: string;
193106
+ synced_at?: string | null;
193107
+ trade_item_key?: string;
193108
+ updated_at?: string;
193109
+ };
193110
+ Relationships: [];
193111
+ };
192169
193112
  customer_audit_log: {
192170
193113
  Row: {
192171
193114
  action: string;
@@ -192570,40 +193513,58 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
192570
193513
  };
192571
193514
  customer_product_stickers: {
192572
193515
  Row: {
193516
+ content_hash: string | null;
192573
193517
  created_at: string;
192574
193518
  customer_key: string;
192575
193519
  file_name: string;
192576
193520
  file_path: string;
192577
193521
  file_size: number | null;
193522
+ floriday_sticker_id: string | null;
193523
+ floriday_synced_at: string | null;
193524
+ height_mm: number | null;
192578
193525
  id: string;
192579
193526
  mime_type: string | null;
193527
+ source: string;
192580
193528
  trade_item_key: string;
192581
193529
  updated_at: string;
192582
193530
  uploaded_by: string | null;
193531
+ width_mm: number | null;
192583
193532
  };
192584
193533
  Insert: {
193534
+ content_hash?: string | null;
192585
193535
  created_at?: string;
192586
193536
  customer_key: string;
192587
193537
  file_name: string;
192588
193538
  file_path: string;
192589
193539
  file_size?: number | null;
193540
+ floriday_sticker_id?: string | null;
193541
+ floriday_synced_at?: string | null;
193542
+ height_mm?: number | null;
192590
193543
  id?: string;
192591
193544
  mime_type?: string | null;
193545
+ source?: string;
192592
193546
  trade_item_key: string;
192593
193547
  updated_at?: string;
192594
193548
  uploaded_by?: string | null;
193549
+ width_mm?: number | null;
192595
193550
  };
192596
193551
  Update: {
193552
+ content_hash?: string | null;
192597
193553
  created_at?: string;
192598
193554
  customer_key?: string;
192599
193555
  file_name?: string;
192600
193556
  file_path?: string;
192601
193557
  file_size?: number | null;
193558
+ floriday_sticker_id?: string | null;
193559
+ floriday_synced_at?: string | null;
193560
+ height_mm?: number | null;
192602
193561
  id?: string;
192603
193562
  mime_type?: string | null;
193563
+ source?: string;
192604
193564
  trade_item_key?: string;
192605
193565
  updated_at?: string;
192606
193566
  uploaded_by?: string | null;
193567
+ width_mm?: number | null;
192607
193568
  };
192608
193569
  Relationships: [];
192609
193570
  };
@@ -201911,6 +202872,7 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
201911
202872
  Row: {
201912
202873
  actor: string | null;
201913
202874
  attempts: number;
202875
+ calc: import("../integrations/supabase/types").Json | null;
201914
202876
  cart_ref: string | null;
201915
202877
  created_at: string;
201916
202878
  db_action: string | null;
@@ -201921,6 +202883,7 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
201921
202883
  decision: string | null;
201922
202884
  duration_ms: number | null;
201923
202885
  error: string | null;
202886
+ error_class: string | null;
201924
202887
  external_action: string | null;
201925
202888
  external_ref: string | null;
201926
202889
  external_response: import("../integrations/supabase/types").Json | null;
@@ -201929,6 +202892,8 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
201929
202892
  id: string;
201930
202893
  input: import("../integrations/supabase/types").Json | null;
201931
202894
  next_attempt_at: string | null;
202895
+ next_step: string | null;
202896
+ node_id: string | null;
201932
202897
  order_ref: string | null;
201933
202898
  order_source: string | null;
201934
202899
  output: import("../integrations/supabase/types").Json | null;
@@ -201945,6 +202910,7 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
201945
202910
  Insert: {
201946
202911
  actor?: string | null;
201947
202912
  attempts?: number;
202913
+ calc?: import("../integrations/supabase/types").Json | null;
201948
202914
  cart_ref?: string | null;
201949
202915
  created_at?: string;
201950
202916
  db_action?: string | null;
@@ -201955,6 +202921,7 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
201955
202921
  decision?: string | null;
201956
202922
  duration_ms?: number | null;
201957
202923
  error?: string | null;
202924
+ error_class?: string | null;
201958
202925
  external_action?: string | null;
201959
202926
  external_ref?: string | null;
201960
202927
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -201963,6 +202930,8 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
201963
202930
  id?: string;
201964
202931
  input?: import("../integrations/supabase/types").Json | null;
201965
202932
  next_attempt_at?: string | null;
202933
+ next_step?: string | null;
202934
+ node_id?: string | null;
201966
202935
  order_ref?: string | null;
201967
202936
  order_source?: string | null;
201968
202937
  output?: import("../integrations/supabase/types").Json | null;
@@ -201979,6 +202948,7 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
201979
202948
  Update: {
201980
202949
  actor?: string | null;
201981
202950
  attempts?: number;
202951
+ calc?: import("../integrations/supabase/types").Json | null;
201982
202952
  cart_ref?: string | null;
201983
202953
  created_at?: string;
201984
202954
  db_action?: string | null;
@@ -201989,6 +202959,7 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
201989
202959
  decision?: string | null;
201990
202960
  duration_ms?: number | null;
201991
202961
  error?: string | null;
202962
+ error_class?: string | null;
201992
202963
  external_action?: string | null;
201993
202964
  external_ref?: string | null;
201994
202965
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -201997,6 +202968,8 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
201997
202968
  id?: string;
201998
202969
  input?: import("../integrations/supabase/types").Json | null;
201999
202970
  next_attempt_at?: string | null;
202971
+ next_step?: string | null;
202972
+ node_id?: string | null;
202000
202973
  order_ref?: string | null;
202001
202974
  order_source?: string | null;
202002
202975
  output?: import("../integrations/supabase/types").Json | null;
@@ -215501,12 +216474,59 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
215501
216474
  };
215502
216475
  Returns: string;
215503
216476
  };
216477
+ logistics_trace_all_orders: {
216478
+ Args: {
216479
+ p_limit?: number;
216480
+ p_search?: string;
216481
+ };
216482
+ Returns: import("../integrations/supabase/types").Json;
216483
+ };
215504
216484
  logistics_trace_batch: {
215505
216485
  Args: {
215506
216486
  p: import("../integrations/supabase/types").Json;
215507
216487
  };
215508
216488
  Returns: number;
215509
216489
  };
216490
+ logistics_trace_node: {
216491
+ Args: {
216492
+ p_op?: string;
216493
+ p_status?: string;
216494
+ p_table: string;
216495
+ };
216496
+ Returns: string;
216497
+ };
216498
+ logistics_trace_order_overview: {
216499
+ Args: {
216500
+ p_error_class?: string;
216501
+ p_limit?: number;
216502
+ p_search?: string;
216503
+ p_since?: string;
216504
+ p_source?: string;
216505
+ p_state?: string;
216506
+ p_step?: string;
216507
+ };
216508
+ Returns: import("../integrations/supabase/types").Json;
216509
+ };
216510
+ logistics_trace_order_state: {
216511
+ Args: {
216512
+ p_order_ref: string;
216513
+ };
216514
+ Returns: import("../integrations/supabase/types").Json;
216515
+ };
216516
+ logistics_trace_order_step: {
216517
+ Args: {
216518
+ p_class?: string;
216519
+ p_decision?: string;
216520
+ p_error?: string;
216521
+ p_next_step?: string;
216522
+ p_node: string;
216523
+ p_order_id: string;
216524
+ p_reason?: string;
216525
+ p_status: string;
216526
+ p_step: string;
216527
+ };
216528
+ Returns: undefined;
216529
+ };
215510
216530
  logistics_trace_orders: {
215511
216531
  Args: {
215512
216532
  p_limit?: number;
@@ -215529,6 +216549,22 @@ export declare const commitStickerBatch: import("@tanstack/start-client-core").O
215529
216549
  };
215530
216550
  Returns: import("../integrations/supabase/types").Json;
215531
216551
  };
216552
+ logistics_trace_version_events: {
216553
+ Args: {
216554
+ p_from?: string;
216555
+ p_limit?: number;
216556
+ p_order_ref: string;
216557
+ p_to?: string;
216558
+ p_version_id: string;
216559
+ };
216560
+ Returns: import("../integrations/supabase/types").Json;
216561
+ };
216562
+ logistics_trace_versions: {
216563
+ Args: {
216564
+ p_order_ref: string;
216565
+ };
216566
+ Returns: import("../integrations/supabase/types").Json;
216567
+ };
215532
216568
  logistics_upsert_task: {
215533
216569
  Args: {
215534
216570
  p_buffer_ref: string;
@@ -219366,6 +220402,42 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
219366
220402
  };
219367
220403
  Relationships: [];
219368
220404
  };
220405
+ customer_assortment_items: {
220406
+ Row: {
220407
+ created_at: string;
220408
+ customer_key: string;
220409
+ id: string;
220410
+ in_assortment: boolean;
220411
+ manual_override: boolean;
220412
+ source: string;
220413
+ synced_at: string | null;
220414
+ trade_item_key: string;
220415
+ updated_at: string;
220416
+ };
220417
+ Insert: {
220418
+ created_at?: string;
220419
+ customer_key: string;
220420
+ id?: string;
220421
+ in_assortment?: boolean;
220422
+ manual_override?: boolean;
220423
+ source?: string;
220424
+ synced_at?: string | null;
220425
+ trade_item_key: string;
220426
+ updated_at?: string;
220427
+ };
220428
+ Update: {
220429
+ created_at?: string;
220430
+ customer_key?: string;
220431
+ id?: string;
220432
+ in_assortment?: boolean;
220433
+ manual_override?: boolean;
220434
+ source?: string;
220435
+ synced_at?: string | null;
220436
+ trade_item_key?: string;
220437
+ updated_at?: string;
220438
+ };
220439
+ Relationships: [];
220440
+ };
219369
220441
  customer_audit_log: {
219370
220442
  Row: {
219371
220443
  action: string;
@@ -219770,40 +220842,58 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
219770
220842
  };
219771
220843
  customer_product_stickers: {
219772
220844
  Row: {
220845
+ content_hash: string | null;
219773
220846
  created_at: string;
219774
220847
  customer_key: string;
219775
220848
  file_name: string;
219776
220849
  file_path: string;
219777
220850
  file_size: number | null;
220851
+ floriday_sticker_id: string | null;
220852
+ floriday_synced_at: string | null;
220853
+ height_mm: number | null;
219778
220854
  id: string;
219779
220855
  mime_type: string | null;
220856
+ source: string;
219780
220857
  trade_item_key: string;
219781
220858
  updated_at: string;
219782
220859
  uploaded_by: string | null;
220860
+ width_mm: number | null;
219783
220861
  };
219784
220862
  Insert: {
220863
+ content_hash?: string | null;
219785
220864
  created_at?: string;
219786
220865
  customer_key: string;
219787
220866
  file_name: string;
219788
220867
  file_path: string;
219789
220868
  file_size?: number | null;
220869
+ floriday_sticker_id?: string | null;
220870
+ floriday_synced_at?: string | null;
220871
+ height_mm?: number | null;
219790
220872
  id?: string;
219791
220873
  mime_type?: string | null;
220874
+ source?: string;
219792
220875
  trade_item_key: string;
219793
220876
  updated_at?: string;
219794
220877
  uploaded_by?: string | null;
220878
+ width_mm?: number | null;
219795
220879
  };
219796
220880
  Update: {
220881
+ content_hash?: string | null;
219797
220882
  created_at?: string;
219798
220883
  customer_key?: string;
219799
220884
  file_name?: string;
219800
220885
  file_path?: string;
219801
220886
  file_size?: number | null;
220887
+ floriday_sticker_id?: string | null;
220888
+ floriday_synced_at?: string | null;
220889
+ height_mm?: number | null;
219802
220890
  id?: string;
219803
220891
  mime_type?: string | null;
220892
+ source?: string;
219804
220893
  trade_item_key?: string;
219805
220894
  updated_at?: string;
219806
220895
  uploaded_by?: string | null;
220896
+ width_mm?: number | null;
219807
220897
  };
219808
220898
  Relationships: [];
219809
220899
  };
@@ -229111,6 +230201,7 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
229111
230201
  Row: {
229112
230202
  actor: string | null;
229113
230203
  attempts: number;
230204
+ calc: import("../integrations/supabase/types").Json | null;
229114
230205
  cart_ref: string | null;
229115
230206
  created_at: string;
229116
230207
  db_action: string | null;
@@ -229121,6 +230212,7 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
229121
230212
  decision: string | null;
229122
230213
  duration_ms: number | null;
229123
230214
  error: string | null;
230215
+ error_class: string | null;
229124
230216
  external_action: string | null;
229125
230217
  external_ref: string | null;
229126
230218
  external_response: import("../integrations/supabase/types").Json | null;
@@ -229129,6 +230221,8 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
229129
230221
  id: string;
229130
230222
  input: import("../integrations/supabase/types").Json | null;
229131
230223
  next_attempt_at: string | null;
230224
+ next_step: string | null;
230225
+ node_id: string | null;
229132
230226
  order_ref: string | null;
229133
230227
  order_source: string | null;
229134
230228
  output: import("../integrations/supabase/types").Json | null;
@@ -229145,6 +230239,7 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
229145
230239
  Insert: {
229146
230240
  actor?: string | null;
229147
230241
  attempts?: number;
230242
+ calc?: import("../integrations/supabase/types").Json | null;
229148
230243
  cart_ref?: string | null;
229149
230244
  created_at?: string;
229150
230245
  db_action?: string | null;
@@ -229155,6 +230250,7 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
229155
230250
  decision?: string | null;
229156
230251
  duration_ms?: number | null;
229157
230252
  error?: string | null;
230253
+ error_class?: string | null;
229158
230254
  external_action?: string | null;
229159
230255
  external_ref?: string | null;
229160
230256
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -229163,6 +230259,8 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
229163
230259
  id?: string;
229164
230260
  input?: import("../integrations/supabase/types").Json | null;
229165
230261
  next_attempt_at?: string | null;
230262
+ next_step?: string | null;
230263
+ node_id?: string | null;
229166
230264
  order_ref?: string | null;
229167
230265
  order_source?: string | null;
229168
230266
  output?: import("../integrations/supabase/types").Json | null;
@@ -229179,6 +230277,7 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
229179
230277
  Update: {
229180
230278
  actor?: string | null;
229181
230279
  attempts?: number;
230280
+ calc?: import("../integrations/supabase/types").Json | null;
229182
230281
  cart_ref?: string | null;
229183
230282
  created_at?: string;
229184
230283
  db_action?: string | null;
@@ -229189,6 +230288,7 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
229189
230288
  decision?: string | null;
229190
230289
  duration_ms?: number | null;
229191
230290
  error?: string | null;
230291
+ error_class?: string | null;
229192
230292
  external_action?: string | null;
229193
230293
  external_ref?: string | null;
229194
230294
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -229197,6 +230297,8 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
229197
230297
  id?: string;
229198
230298
  input?: import("../integrations/supabase/types").Json | null;
229199
230299
  next_attempt_at?: string | null;
230300
+ next_step?: string | null;
230301
+ node_id?: string | null;
229200
230302
  order_ref?: string | null;
229201
230303
  order_source?: string | null;
229202
230304
  output?: import("../integrations/supabase/types").Json | null;
@@ -242701,12 +243803,59 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
242701
243803
  };
242702
243804
  Returns: string;
242703
243805
  };
243806
+ logistics_trace_all_orders: {
243807
+ Args: {
243808
+ p_limit?: number;
243809
+ p_search?: string;
243810
+ };
243811
+ Returns: import("../integrations/supabase/types").Json;
243812
+ };
242704
243813
  logistics_trace_batch: {
242705
243814
  Args: {
242706
243815
  p: import("../integrations/supabase/types").Json;
242707
243816
  };
242708
243817
  Returns: number;
242709
243818
  };
243819
+ logistics_trace_node: {
243820
+ Args: {
243821
+ p_op?: string;
243822
+ p_status?: string;
243823
+ p_table: string;
243824
+ };
243825
+ Returns: string;
243826
+ };
243827
+ logistics_trace_order_overview: {
243828
+ Args: {
243829
+ p_error_class?: string;
243830
+ p_limit?: number;
243831
+ p_search?: string;
243832
+ p_since?: string;
243833
+ p_source?: string;
243834
+ p_state?: string;
243835
+ p_step?: string;
243836
+ };
243837
+ Returns: import("../integrations/supabase/types").Json;
243838
+ };
243839
+ logistics_trace_order_state: {
243840
+ Args: {
243841
+ p_order_ref: string;
243842
+ };
243843
+ Returns: import("../integrations/supabase/types").Json;
243844
+ };
243845
+ logistics_trace_order_step: {
243846
+ Args: {
243847
+ p_class?: string;
243848
+ p_decision?: string;
243849
+ p_error?: string;
243850
+ p_next_step?: string;
243851
+ p_node: string;
243852
+ p_order_id: string;
243853
+ p_reason?: string;
243854
+ p_status: string;
243855
+ p_step: string;
243856
+ };
243857
+ Returns: undefined;
243858
+ };
242710
243859
  logistics_trace_orders: {
242711
243860
  Args: {
242712
243861
  p_limit?: number;
@@ -242729,6 +243878,22 @@ export declare const discardStickerBatch: import("@tanstack/start-client-core").
242729
243878
  };
242730
243879
  Returns: import("../integrations/supabase/types").Json;
242731
243880
  };
243881
+ logistics_trace_version_events: {
243882
+ Args: {
243883
+ p_from?: string;
243884
+ p_limit?: number;
243885
+ p_order_ref: string;
243886
+ p_to?: string;
243887
+ p_version_id: string;
243888
+ };
243889
+ Returns: import("../integrations/supabase/types").Json;
243890
+ };
243891
+ logistics_trace_versions: {
243892
+ Args: {
243893
+ p_order_ref: string;
243894
+ };
243895
+ Returns: import("../integrations/supabase/types").Json;
243896
+ };
242732
243897
  logistics_upsert_task: {
242733
243898
  Args: {
242734
243899
  p_buffer_ref: string;