@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
@@ -1822,6 +1822,42 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
1822
1822
  };
1823
1823
  Relationships: [];
1824
1824
  };
1825
+ customer_assortment_items: {
1826
+ Row: {
1827
+ created_at: string;
1828
+ customer_key: string;
1829
+ id: string;
1830
+ in_assortment: boolean;
1831
+ manual_override: boolean;
1832
+ source: string;
1833
+ synced_at: string | null;
1834
+ trade_item_key: string;
1835
+ updated_at: string;
1836
+ };
1837
+ Insert: {
1838
+ created_at?: string;
1839
+ customer_key: string;
1840
+ id?: string;
1841
+ in_assortment?: boolean;
1842
+ manual_override?: boolean;
1843
+ source?: string;
1844
+ synced_at?: string | null;
1845
+ trade_item_key: string;
1846
+ updated_at?: string;
1847
+ };
1848
+ Update: {
1849
+ created_at?: string;
1850
+ customer_key?: string;
1851
+ id?: string;
1852
+ in_assortment?: boolean;
1853
+ manual_override?: boolean;
1854
+ source?: string;
1855
+ synced_at?: string | null;
1856
+ trade_item_key?: string;
1857
+ updated_at?: string;
1858
+ };
1859
+ Relationships: [];
1860
+ };
1825
1861
  customer_audit_log: {
1826
1862
  Row: {
1827
1863
  action: string;
@@ -2226,40 +2262,58 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
2226
2262
  };
2227
2263
  customer_product_stickers: {
2228
2264
  Row: {
2265
+ content_hash: string | null;
2229
2266
  created_at: string;
2230
2267
  customer_key: string;
2231
2268
  file_name: string;
2232
2269
  file_path: string;
2233
2270
  file_size: number | null;
2271
+ floriday_sticker_id: string | null;
2272
+ floriday_synced_at: string | null;
2273
+ height_mm: number | null;
2234
2274
  id: string;
2235
2275
  mime_type: string | null;
2276
+ source: string;
2236
2277
  trade_item_key: string;
2237
2278
  updated_at: string;
2238
2279
  uploaded_by: string | null;
2280
+ width_mm: number | null;
2239
2281
  };
2240
2282
  Insert: {
2283
+ content_hash?: string | null;
2241
2284
  created_at?: string;
2242
2285
  customer_key: string;
2243
2286
  file_name: string;
2244
2287
  file_path: string;
2245
2288
  file_size?: number | null;
2289
+ floriday_sticker_id?: string | null;
2290
+ floriday_synced_at?: string | null;
2291
+ height_mm?: number | null;
2246
2292
  id?: string;
2247
2293
  mime_type?: string | null;
2294
+ source?: string;
2248
2295
  trade_item_key: string;
2249
2296
  updated_at?: string;
2250
2297
  uploaded_by?: string | null;
2298
+ width_mm?: number | null;
2251
2299
  };
2252
2300
  Update: {
2301
+ content_hash?: string | null;
2253
2302
  created_at?: string;
2254
2303
  customer_key?: string;
2255
2304
  file_name?: string;
2256
2305
  file_path?: string;
2257
2306
  file_size?: number | null;
2307
+ floriday_sticker_id?: string | null;
2308
+ floriday_synced_at?: string | null;
2309
+ height_mm?: number | null;
2258
2310
  id?: string;
2259
2311
  mime_type?: string | null;
2312
+ source?: string;
2260
2313
  trade_item_key?: string;
2261
2314
  updated_at?: string;
2262
2315
  uploaded_by?: string | null;
2316
+ width_mm?: number | null;
2263
2317
  };
2264
2318
  Relationships: [];
2265
2319
  };
@@ -11567,6 +11621,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
11567
11621
  Row: {
11568
11622
  actor: string | null;
11569
11623
  attempts: number;
11624
+ calc: import("../../../integrations/supabase/types").Json | null;
11570
11625
  cart_ref: string | null;
11571
11626
  created_at: string;
11572
11627
  db_action: string | null;
@@ -11577,6 +11632,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
11577
11632
  decision: string | null;
11578
11633
  duration_ms: number | null;
11579
11634
  error: string | null;
11635
+ error_class: string | null;
11580
11636
  external_action: string | null;
11581
11637
  external_ref: string | null;
11582
11638
  external_response: import("../../../integrations/supabase/types").Json | null;
@@ -11585,6 +11641,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
11585
11641
  id: string;
11586
11642
  input: import("../../../integrations/supabase/types").Json | null;
11587
11643
  next_attempt_at: string | null;
11644
+ next_step: string | null;
11645
+ node_id: string | null;
11588
11646
  order_ref: string | null;
11589
11647
  order_source: string | null;
11590
11648
  output: import("../../../integrations/supabase/types").Json | null;
@@ -11601,6 +11659,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
11601
11659
  Insert: {
11602
11660
  actor?: string | null;
11603
11661
  attempts?: number;
11662
+ calc?: import("../../../integrations/supabase/types").Json | null;
11604
11663
  cart_ref?: string | null;
11605
11664
  created_at?: string;
11606
11665
  db_action?: string | null;
@@ -11611,6 +11670,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
11611
11670
  decision?: string | null;
11612
11671
  duration_ms?: number | null;
11613
11672
  error?: string | null;
11673
+ error_class?: string | null;
11614
11674
  external_action?: string | null;
11615
11675
  external_ref?: string | null;
11616
11676
  external_response?: import("../../../integrations/supabase/types").Json | null;
@@ -11619,6 +11679,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
11619
11679
  id?: string;
11620
11680
  input?: import("../../../integrations/supabase/types").Json | null;
11621
11681
  next_attempt_at?: string | null;
11682
+ next_step?: string | null;
11683
+ node_id?: string | null;
11622
11684
  order_ref?: string | null;
11623
11685
  order_source?: string | null;
11624
11686
  output?: import("../../../integrations/supabase/types").Json | null;
@@ -11635,6 +11697,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
11635
11697
  Update: {
11636
11698
  actor?: string | null;
11637
11699
  attempts?: number;
11700
+ calc?: import("../../../integrations/supabase/types").Json | null;
11638
11701
  cart_ref?: string | null;
11639
11702
  created_at?: string;
11640
11703
  db_action?: string | null;
@@ -11645,6 +11708,7 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
11645
11708
  decision?: string | null;
11646
11709
  duration_ms?: number | null;
11647
11710
  error?: string | null;
11711
+ error_class?: string | null;
11648
11712
  external_action?: string | null;
11649
11713
  external_ref?: string | null;
11650
11714
  external_response?: import("../../../integrations/supabase/types").Json | null;
@@ -11653,6 +11717,8 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
11653
11717
  id?: string;
11654
11718
  input?: import("../../../integrations/supabase/types").Json | null;
11655
11719
  next_attempt_at?: string | null;
11720
+ next_step?: string | null;
11721
+ node_id?: string | null;
11656
11722
  order_ref?: string | null;
11657
11723
  order_source?: string | null;
11658
11724
  output?: import("../../../integrations/supabase/types").Json | null;
@@ -25157,12 +25223,59 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
25157
25223
  };
25158
25224
  Returns: string;
25159
25225
  };
25226
+ logistics_trace_all_orders: {
25227
+ Args: {
25228
+ p_limit?: number;
25229
+ p_search?: string;
25230
+ };
25231
+ Returns: import("../../../integrations/supabase/types").Json;
25232
+ };
25160
25233
  logistics_trace_batch: {
25161
25234
  Args: {
25162
25235
  p: import("../../../integrations/supabase/types").Json;
25163
25236
  };
25164
25237
  Returns: number;
25165
25238
  };
25239
+ logistics_trace_node: {
25240
+ Args: {
25241
+ p_op?: string;
25242
+ p_status?: string;
25243
+ p_table: string;
25244
+ };
25245
+ Returns: string;
25246
+ };
25247
+ logistics_trace_order_overview: {
25248
+ Args: {
25249
+ p_error_class?: string;
25250
+ p_limit?: number;
25251
+ p_search?: string;
25252
+ p_since?: string;
25253
+ p_source?: string;
25254
+ p_state?: string;
25255
+ p_step?: string;
25256
+ };
25257
+ Returns: import("../../../integrations/supabase/types").Json;
25258
+ };
25259
+ logistics_trace_order_state: {
25260
+ Args: {
25261
+ p_order_ref: string;
25262
+ };
25263
+ Returns: import("../../../integrations/supabase/types").Json;
25264
+ };
25265
+ logistics_trace_order_step: {
25266
+ Args: {
25267
+ p_class?: string;
25268
+ p_decision?: string;
25269
+ p_error?: string;
25270
+ p_next_step?: string;
25271
+ p_node: string;
25272
+ p_order_id: string;
25273
+ p_reason?: string;
25274
+ p_status: string;
25275
+ p_step: string;
25276
+ };
25277
+ Returns: undefined;
25278
+ };
25166
25279
  logistics_trace_orders: {
25167
25280
  Args: {
25168
25281
  p_limit?: number;
@@ -25185,6 +25298,22 @@ export declare const processTwinfieldPushQueue: import("@tanstack/start-client-c
25185
25298
  };
25186
25299
  Returns: import("../../../integrations/supabase/types").Json;
25187
25300
  };
25301
+ logistics_trace_version_events: {
25302
+ Args: {
25303
+ p_from?: string;
25304
+ p_limit?: number;
25305
+ p_order_ref: string;
25306
+ p_to?: string;
25307
+ p_version_id: string;
25308
+ };
25309
+ Returns: import("../../../integrations/supabase/types").Json;
25310
+ };
25311
+ logistics_trace_versions: {
25312
+ Args: {
25313
+ p_order_ref: string;
25314
+ };
25315
+ Returns: import("../../../integrations/supabase/types").Json;
25316
+ };
25188
25317
  logistics_upsert_task: {
25189
25318
  Args: {
25190
25319
  p_buffer_ref: string;
@@ -29007,6 +29136,42 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
29007
29136
  };
29008
29137
  Relationships: [];
29009
29138
  };
29139
+ customer_assortment_items: {
29140
+ Row: {
29141
+ created_at: string;
29142
+ customer_key: string;
29143
+ id: string;
29144
+ in_assortment: boolean;
29145
+ manual_override: boolean;
29146
+ source: string;
29147
+ synced_at: string | null;
29148
+ trade_item_key: string;
29149
+ updated_at: string;
29150
+ };
29151
+ Insert: {
29152
+ created_at?: string;
29153
+ customer_key: string;
29154
+ id?: string;
29155
+ in_assortment?: boolean;
29156
+ manual_override?: boolean;
29157
+ source?: string;
29158
+ synced_at?: string | null;
29159
+ trade_item_key: string;
29160
+ updated_at?: string;
29161
+ };
29162
+ Update: {
29163
+ created_at?: string;
29164
+ customer_key?: string;
29165
+ id?: string;
29166
+ in_assortment?: boolean;
29167
+ manual_override?: boolean;
29168
+ source?: string;
29169
+ synced_at?: string | null;
29170
+ trade_item_key?: string;
29171
+ updated_at?: string;
29172
+ };
29173
+ Relationships: [];
29174
+ };
29010
29175
  customer_audit_log: {
29011
29176
  Row: {
29012
29177
  action: string;
@@ -29411,40 +29576,58 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
29411
29576
  };
29412
29577
  customer_product_stickers: {
29413
29578
  Row: {
29579
+ content_hash: string | null;
29414
29580
  created_at: string;
29415
29581
  customer_key: string;
29416
29582
  file_name: string;
29417
29583
  file_path: string;
29418
29584
  file_size: number | null;
29585
+ floriday_sticker_id: string | null;
29586
+ floriday_synced_at: string | null;
29587
+ height_mm: number | null;
29419
29588
  id: string;
29420
29589
  mime_type: string | null;
29590
+ source: string;
29421
29591
  trade_item_key: string;
29422
29592
  updated_at: string;
29423
29593
  uploaded_by: string | null;
29594
+ width_mm: number | null;
29424
29595
  };
29425
29596
  Insert: {
29597
+ content_hash?: string | null;
29426
29598
  created_at?: string;
29427
29599
  customer_key: string;
29428
29600
  file_name: string;
29429
29601
  file_path: string;
29430
29602
  file_size?: number | null;
29603
+ floriday_sticker_id?: string | null;
29604
+ floriday_synced_at?: string | null;
29605
+ height_mm?: number | null;
29431
29606
  id?: string;
29432
29607
  mime_type?: string | null;
29608
+ source?: string;
29433
29609
  trade_item_key: string;
29434
29610
  updated_at?: string;
29435
29611
  uploaded_by?: string | null;
29612
+ width_mm?: number | null;
29436
29613
  };
29437
29614
  Update: {
29615
+ content_hash?: string | null;
29438
29616
  created_at?: string;
29439
29617
  customer_key?: string;
29440
29618
  file_name?: string;
29441
29619
  file_path?: string;
29442
29620
  file_size?: number | null;
29621
+ floriday_sticker_id?: string | null;
29622
+ floriday_synced_at?: string | null;
29623
+ height_mm?: number | null;
29443
29624
  id?: string;
29444
29625
  mime_type?: string | null;
29626
+ source?: string;
29445
29627
  trade_item_key?: string;
29446
29628
  updated_at?: string;
29447
29629
  uploaded_by?: string | null;
29630
+ width_mm?: number | null;
29448
29631
  };
29449
29632
  Relationships: [];
29450
29633
  };
@@ -38752,6 +38935,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38752
38935
  Row: {
38753
38936
  actor: string | null;
38754
38937
  attempts: number;
38938
+ calc: import("../../../integrations/supabase/types").Json | null;
38755
38939
  cart_ref: string | null;
38756
38940
  created_at: string;
38757
38941
  db_action: string | null;
@@ -38762,6 +38946,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38762
38946
  decision: string | null;
38763
38947
  duration_ms: number | null;
38764
38948
  error: string | null;
38949
+ error_class: string | null;
38765
38950
  external_action: string | null;
38766
38951
  external_ref: string | null;
38767
38952
  external_response: import("../../../integrations/supabase/types").Json | null;
@@ -38770,6 +38955,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38770
38955
  id: string;
38771
38956
  input: import("../../../integrations/supabase/types").Json | null;
38772
38957
  next_attempt_at: string | null;
38958
+ next_step: string | null;
38959
+ node_id: string | null;
38773
38960
  order_ref: string | null;
38774
38961
  order_source: string | null;
38775
38962
  output: import("../../../integrations/supabase/types").Json | null;
@@ -38786,6 +38973,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38786
38973
  Insert: {
38787
38974
  actor?: string | null;
38788
38975
  attempts?: number;
38976
+ calc?: import("../../../integrations/supabase/types").Json | null;
38789
38977
  cart_ref?: string | null;
38790
38978
  created_at?: string;
38791
38979
  db_action?: string | null;
@@ -38796,6 +38984,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38796
38984
  decision?: string | null;
38797
38985
  duration_ms?: number | null;
38798
38986
  error?: string | null;
38987
+ error_class?: string | null;
38799
38988
  external_action?: string | null;
38800
38989
  external_ref?: string | null;
38801
38990
  external_response?: import("../../../integrations/supabase/types").Json | null;
@@ -38804,6 +38993,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38804
38993
  id?: string;
38805
38994
  input?: import("../../../integrations/supabase/types").Json | null;
38806
38995
  next_attempt_at?: string | null;
38996
+ next_step?: string | null;
38997
+ node_id?: string | null;
38807
38998
  order_ref?: string | null;
38808
38999
  order_source?: string | null;
38809
39000
  output?: import("../../../integrations/supabase/types").Json | null;
@@ -38820,6 +39011,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38820
39011
  Update: {
38821
39012
  actor?: string | null;
38822
39013
  attempts?: number;
39014
+ calc?: import("../../../integrations/supabase/types").Json | null;
38823
39015
  cart_ref?: string | null;
38824
39016
  created_at?: string;
38825
39017
  db_action?: string | null;
@@ -38830,6 +39022,7 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38830
39022
  decision?: string | null;
38831
39023
  duration_ms?: number | null;
38832
39024
  error?: string | null;
39025
+ error_class?: string | null;
38833
39026
  external_action?: string | null;
38834
39027
  external_ref?: string | null;
38835
39028
  external_response?: import("../../../integrations/supabase/types").Json | null;
@@ -38838,6 +39031,8 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
38838
39031
  id?: string;
38839
39032
  input?: import("../../../integrations/supabase/types").Json | null;
38840
39033
  next_attempt_at?: string | null;
39034
+ next_step?: string | null;
39035
+ node_id?: string | null;
38841
39036
  order_ref?: string | null;
38842
39037
  order_source?: string | null;
38843
39038
  output?: import("../../../integrations/supabase/types").Json | null;
@@ -52342,12 +52537,59 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
52342
52537
  };
52343
52538
  Returns: string;
52344
52539
  };
52540
+ logistics_trace_all_orders: {
52541
+ Args: {
52542
+ p_limit?: number;
52543
+ p_search?: string;
52544
+ };
52545
+ Returns: import("../../../integrations/supabase/types").Json;
52546
+ };
52345
52547
  logistics_trace_batch: {
52346
52548
  Args: {
52347
52549
  p: import("../../../integrations/supabase/types").Json;
52348
52550
  };
52349
52551
  Returns: number;
52350
52552
  };
52553
+ logistics_trace_node: {
52554
+ Args: {
52555
+ p_op?: string;
52556
+ p_status?: string;
52557
+ p_table: string;
52558
+ };
52559
+ Returns: string;
52560
+ };
52561
+ logistics_trace_order_overview: {
52562
+ Args: {
52563
+ p_error_class?: string;
52564
+ p_limit?: number;
52565
+ p_search?: string;
52566
+ p_since?: string;
52567
+ p_source?: string;
52568
+ p_state?: string;
52569
+ p_step?: string;
52570
+ };
52571
+ Returns: import("../../../integrations/supabase/types").Json;
52572
+ };
52573
+ logistics_trace_order_state: {
52574
+ Args: {
52575
+ p_order_ref: string;
52576
+ };
52577
+ Returns: import("../../../integrations/supabase/types").Json;
52578
+ };
52579
+ logistics_trace_order_step: {
52580
+ Args: {
52581
+ p_class?: string;
52582
+ p_decision?: string;
52583
+ p_error?: string;
52584
+ p_next_step?: string;
52585
+ p_node: string;
52586
+ p_order_id: string;
52587
+ p_reason?: string;
52588
+ p_status: string;
52589
+ p_step: string;
52590
+ };
52591
+ Returns: undefined;
52592
+ };
52351
52593
  logistics_trace_orders: {
52352
52594
  Args: {
52353
52595
  p_limit?: number;
@@ -52370,6 +52612,22 @@ export declare const retryTwinfieldPush: import("@tanstack/start-client-core").R
52370
52612
  };
52371
52613
  Returns: import("../../../integrations/supabase/types").Json;
52372
52614
  };
52615
+ logistics_trace_version_events: {
52616
+ Args: {
52617
+ p_from?: string;
52618
+ p_limit?: number;
52619
+ p_order_ref: string;
52620
+ p_to?: string;
52621
+ p_version_id: string;
52622
+ };
52623
+ Returns: import("../../../integrations/supabase/types").Json;
52624
+ };
52625
+ logistics_trace_versions: {
52626
+ Args: {
52627
+ p_order_ref: string;
52628
+ };
52629
+ Returns: import("../../../integrations/supabase/types").Json;
52630
+ };
52373
52631
  logistics_upsert_task: {
52374
52632
  Args: {
52375
52633
  p_buffer_ref: string;
@@ -56194,6 +56452,42 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
56194
56452
  };
56195
56453
  Relationships: [];
56196
56454
  };
56455
+ customer_assortment_items: {
56456
+ Row: {
56457
+ created_at: string;
56458
+ customer_key: string;
56459
+ id: string;
56460
+ in_assortment: boolean;
56461
+ manual_override: boolean;
56462
+ source: string;
56463
+ synced_at: string | null;
56464
+ trade_item_key: string;
56465
+ updated_at: string;
56466
+ };
56467
+ Insert: {
56468
+ created_at?: string;
56469
+ customer_key: string;
56470
+ id?: string;
56471
+ in_assortment?: boolean;
56472
+ manual_override?: boolean;
56473
+ source?: string;
56474
+ synced_at?: string | null;
56475
+ trade_item_key: string;
56476
+ updated_at?: string;
56477
+ };
56478
+ Update: {
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
+ Relationships: [];
56490
+ };
56197
56491
  customer_audit_log: {
56198
56492
  Row: {
56199
56493
  action: string;
@@ -56598,40 +56892,58 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
56598
56892
  };
56599
56893
  customer_product_stickers: {
56600
56894
  Row: {
56895
+ content_hash: string | null;
56601
56896
  created_at: string;
56602
56897
  customer_key: string;
56603
56898
  file_name: string;
56604
56899
  file_path: string;
56605
56900
  file_size: number | null;
56901
+ floriday_sticker_id: string | null;
56902
+ floriday_synced_at: string | null;
56903
+ height_mm: number | null;
56606
56904
  id: string;
56607
56905
  mime_type: string | null;
56906
+ source: string;
56608
56907
  trade_item_key: string;
56609
56908
  updated_at: string;
56610
56909
  uploaded_by: string | null;
56910
+ width_mm: number | null;
56611
56911
  };
56612
56912
  Insert: {
56913
+ content_hash?: string | null;
56613
56914
  created_at?: string;
56614
56915
  customer_key: string;
56615
56916
  file_name: string;
56616
56917
  file_path: string;
56617
56918
  file_size?: number | null;
56919
+ floriday_sticker_id?: string | null;
56920
+ floriday_synced_at?: string | null;
56921
+ height_mm?: number | null;
56618
56922
  id?: string;
56619
56923
  mime_type?: string | null;
56924
+ source?: string;
56620
56925
  trade_item_key: string;
56621
56926
  updated_at?: string;
56622
56927
  uploaded_by?: string | null;
56928
+ width_mm?: number | null;
56623
56929
  };
56624
56930
  Update: {
56931
+ content_hash?: string | null;
56625
56932
  created_at?: string;
56626
56933
  customer_key?: string;
56627
56934
  file_name?: string;
56628
56935
  file_path?: string;
56629
56936
  file_size?: number | null;
56937
+ floriday_sticker_id?: string | null;
56938
+ floriday_synced_at?: string | null;
56939
+ height_mm?: number | null;
56630
56940
  id?: string;
56631
56941
  mime_type?: string | null;
56942
+ source?: string;
56632
56943
  trade_item_key?: string;
56633
56944
  updated_at?: string;
56634
56945
  uploaded_by?: string | null;
56946
+ width_mm?: number | null;
56635
56947
  };
56636
56948
  Relationships: [];
56637
56949
  };
@@ -65939,6 +66251,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
65939
66251
  Row: {
65940
66252
  actor: string | null;
65941
66253
  attempts: number;
66254
+ calc: import("../../../integrations/supabase/types").Json | null;
65942
66255
  cart_ref: string | null;
65943
66256
  created_at: string;
65944
66257
  db_action: string | null;
@@ -65949,6 +66262,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
65949
66262
  decision: string | null;
65950
66263
  duration_ms: number | null;
65951
66264
  error: string | null;
66265
+ error_class: string | null;
65952
66266
  external_action: string | null;
65953
66267
  external_ref: string | null;
65954
66268
  external_response: import("../../../integrations/supabase/types").Json | null;
@@ -65957,6 +66271,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
65957
66271
  id: string;
65958
66272
  input: import("../../../integrations/supabase/types").Json | null;
65959
66273
  next_attempt_at: string | null;
66274
+ next_step: string | null;
66275
+ node_id: string | null;
65960
66276
  order_ref: string | null;
65961
66277
  order_source: string | null;
65962
66278
  output: import("../../../integrations/supabase/types").Json | null;
@@ -65973,6 +66289,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
65973
66289
  Insert: {
65974
66290
  actor?: string | null;
65975
66291
  attempts?: number;
66292
+ calc?: import("../../../integrations/supabase/types").Json | null;
65976
66293
  cart_ref?: string | null;
65977
66294
  created_at?: string;
65978
66295
  db_action?: string | null;
@@ -65983,6 +66300,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
65983
66300
  decision?: string | null;
65984
66301
  duration_ms?: number | null;
65985
66302
  error?: string | null;
66303
+ error_class?: string | null;
65986
66304
  external_action?: string | null;
65987
66305
  external_ref?: string | null;
65988
66306
  external_response?: import("../../../integrations/supabase/types").Json | null;
@@ -65991,6 +66309,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
65991
66309
  id?: string;
65992
66310
  input?: import("../../../integrations/supabase/types").Json | null;
65993
66311
  next_attempt_at?: string | null;
66312
+ next_step?: string | null;
66313
+ node_id?: string | null;
65994
66314
  order_ref?: string | null;
65995
66315
  order_source?: string | null;
65996
66316
  output?: import("../../../integrations/supabase/types").Json | null;
@@ -66007,6 +66327,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
66007
66327
  Update: {
66008
66328
  actor?: string | null;
66009
66329
  attempts?: number;
66330
+ calc?: import("../../../integrations/supabase/types").Json | null;
66010
66331
  cart_ref?: string | null;
66011
66332
  created_at?: string;
66012
66333
  db_action?: string | null;
@@ -66017,6 +66338,7 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
66017
66338
  decision?: string | null;
66018
66339
  duration_ms?: number | null;
66019
66340
  error?: string | null;
66341
+ error_class?: string | null;
66020
66342
  external_action?: string | null;
66021
66343
  external_ref?: string | null;
66022
66344
  external_response?: import("../../../integrations/supabase/types").Json | null;
@@ -66025,6 +66347,8 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
66025
66347
  id?: string;
66026
66348
  input?: import("../../../integrations/supabase/types").Json | null;
66027
66349
  next_attempt_at?: string | null;
66350
+ next_step?: string | null;
66351
+ node_id?: string | null;
66028
66352
  order_ref?: string | null;
66029
66353
  order_source?: string | null;
66030
66354
  output?: import("../../../integrations/supabase/types").Json | null;
@@ -79529,12 +79853,59 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
79529
79853
  };
79530
79854
  Returns: string;
79531
79855
  };
79856
+ logistics_trace_all_orders: {
79857
+ Args: {
79858
+ p_limit?: number;
79859
+ p_search?: string;
79860
+ };
79861
+ Returns: import("../../../integrations/supabase/types").Json;
79862
+ };
79532
79863
  logistics_trace_batch: {
79533
79864
  Args: {
79534
79865
  p: import("../../../integrations/supabase/types").Json;
79535
79866
  };
79536
79867
  Returns: number;
79537
79868
  };
79869
+ logistics_trace_node: {
79870
+ Args: {
79871
+ p_op?: string;
79872
+ p_status?: string;
79873
+ p_table: string;
79874
+ };
79875
+ Returns: string;
79876
+ };
79877
+ logistics_trace_order_overview: {
79878
+ Args: {
79879
+ p_error_class?: string;
79880
+ p_limit?: number;
79881
+ p_search?: string;
79882
+ p_since?: string;
79883
+ p_source?: string;
79884
+ p_state?: string;
79885
+ p_step?: string;
79886
+ };
79887
+ Returns: import("../../../integrations/supabase/types").Json;
79888
+ };
79889
+ logistics_trace_order_state: {
79890
+ Args: {
79891
+ p_order_ref: string;
79892
+ };
79893
+ Returns: import("../../../integrations/supabase/types").Json;
79894
+ };
79895
+ logistics_trace_order_step: {
79896
+ Args: {
79897
+ p_class?: string;
79898
+ p_decision?: string;
79899
+ p_error?: string;
79900
+ p_next_step?: string;
79901
+ p_node: string;
79902
+ p_order_id: string;
79903
+ p_reason?: string;
79904
+ p_status: string;
79905
+ p_step: string;
79906
+ };
79907
+ Returns: undefined;
79908
+ };
79538
79909
  logistics_trace_orders: {
79539
79910
  Args: {
79540
79911
  p_limit?: number;
@@ -79557,6 +79928,22 @@ export declare const getTwinfieldSyncStatus: import("@tanstack/start-client-core
79557
79928
  };
79558
79929
  Returns: import("../../../integrations/supabase/types").Json;
79559
79930
  };
79931
+ logistics_trace_version_events: {
79932
+ Args: {
79933
+ p_from?: string;
79934
+ p_limit?: number;
79935
+ p_order_ref: string;
79936
+ p_to?: string;
79937
+ p_version_id: string;
79938
+ };
79939
+ Returns: import("../../../integrations/supabase/types").Json;
79940
+ };
79941
+ logistics_trace_versions: {
79942
+ Args: {
79943
+ p_order_ref: string;
79944
+ };
79945
+ Returns: import("../../../integrations/supabase/types").Json;
79946
+ };
79560
79947
  logistics_upsert_task: {
79561
79948
  Args: {
79562
79949
  p_buffer_ref: string;