@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
@@ -1846,6 +1846,42 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
1846
1846
  };
1847
1847
  Relationships: [];
1848
1848
  };
1849
+ customer_assortment_items: {
1850
+ Row: {
1851
+ created_at: string;
1852
+ customer_key: string;
1853
+ id: string;
1854
+ in_assortment: boolean;
1855
+ manual_override: boolean;
1856
+ source: string;
1857
+ synced_at: string | null;
1858
+ trade_item_key: string;
1859
+ updated_at: string;
1860
+ };
1861
+ Insert: {
1862
+ created_at?: string;
1863
+ customer_key: string;
1864
+ id?: string;
1865
+ in_assortment?: boolean;
1866
+ manual_override?: boolean;
1867
+ source?: string;
1868
+ synced_at?: string | null;
1869
+ trade_item_key: string;
1870
+ updated_at?: string;
1871
+ };
1872
+ Update: {
1873
+ created_at?: string;
1874
+ customer_key?: string;
1875
+ id?: string;
1876
+ in_assortment?: boolean;
1877
+ manual_override?: boolean;
1878
+ source?: string;
1879
+ synced_at?: string | null;
1880
+ trade_item_key?: string;
1881
+ updated_at?: string;
1882
+ };
1883
+ Relationships: [];
1884
+ };
1849
1885
  customer_audit_log: {
1850
1886
  Row: {
1851
1887
  action: string;
@@ -2250,40 +2286,58 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
2250
2286
  };
2251
2287
  customer_product_stickers: {
2252
2288
  Row: {
2289
+ content_hash: string | null;
2253
2290
  created_at: string;
2254
2291
  customer_key: string;
2255
2292
  file_name: string;
2256
2293
  file_path: string;
2257
2294
  file_size: number | null;
2295
+ floriday_sticker_id: string | null;
2296
+ floriday_synced_at: string | null;
2297
+ height_mm: number | null;
2258
2298
  id: string;
2259
2299
  mime_type: string | null;
2300
+ source: string;
2260
2301
  trade_item_key: string;
2261
2302
  updated_at: string;
2262
2303
  uploaded_by: string | null;
2304
+ width_mm: number | null;
2263
2305
  };
2264
2306
  Insert: {
2307
+ content_hash?: string | null;
2265
2308
  created_at?: string;
2266
2309
  customer_key: string;
2267
2310
  file_name: string;
2268
2311
  file_path: string;
2269
2312
  file_size?: number | null;
2313
+ floriday_sticker_id?: string | null;
2314
+ floriday_synced_at?: string | null;
2315
+ height_mm?: number | null;
2270
2316
  id?: string;
2271
2317
  mime_type?: string | null;
2318
+ source?: string;
2272
2319
  trade_item_key: string;
2273
2320
  updated_at?: string;
2274
2321
  uploaded_by?: string | null;
2322
+ width_mm?: number | null;
2275
2323
  };
2276
2324
  Update: {
2325
+ content_hash?: string | null;
2277
2326
  created_at?: string;
2278
2327
  customer_key?: string;
2279
2328
  file_name?: string;
2280
2329
  file_path?: string;
2281
2330
  file_size?: number | null;
2331
+ floriday_sticker_id?: string | null;
2332
+ floriday_synced_at?: string | null;
2333
+ height_mm?: number | null;
2282
2334
  id?: string;
2283
2335
  mime_type?: string | null;
2336
+ source?: string;
2284
2337
  trade_item_key?: string;
2285
2338
  updated_at?: string;
2286
2339
  uploaded_by?: string | null;
2340
+ width_mm?: number | null;
2287
2341
  };
2288
2342
  Relationships: [];
2289
2343
  };
@@ -11591,6 +11645,7 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
11591
11645
  Row: {
11592
11646
  actor: string | null;
11593
11647
  attempts: number;
11648
+ calc: import("../integrations/supabase/types").Json | null;
11594
11649
  cart_ref: string | null;
11595
11650
  created_at: string;
11596
11651
  db_action: string | null;
@@ -11601,6 +11656,7 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
11601
11656
  decision: string | null;
11602
11657
  duration_ms: number | null;
11603
11658
  error: string | null;
11659
+ error_class: string | null;
11604
11660
  external_action: string | null;
11605
11661
  external_ref: string | null;
11606
11662
  external_response: import("../integrations/supabase/types").Json | null;
@@ -11609,6 +11665,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
11609
11665
  id: string;
11610
11666
  input: import("../integrations/supabase/types").Json | null;
11611
11667
  next_attempt_at: string | null;
11668
+ next_step: string | null;
11669
+ node_id: string | null;
11612
11670
  order_ref: string | null;
11613
11671
  order_source: string | null;
11614
11672
  output: import("../integrations/supabase/types").Json | null;
@@ -11625,6 +11683,7 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
11625
11683
  Insert: {
11626
11684
  actor?: string | null;
11627
11685
  attempts?: number;
11686
+ calc?: import("../integrations/supabase/types").Json | null;
11628
11687
  cart_ref?: string | null;
11629
11688
  created_at?: string;
11630
11689
  db_action?: string | null;
@@ -11635,6 +11694,7 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
11635
11694
  decision?: string | null;
11636
11695
  duration_ms?: number | null;
11637
11696
  error?: string | null;
11697
+ error_class?: string | null;
11638
11698
  external_action?: string | null;
11639
11699
  external_ref?: string | null;
11640
11700
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11643,6 +11703,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
11643
11703
  id?: string;
11644
11704
  input?: import("../integrations/supabase/types").Json | null;
11645
11705
  next_attempt_at?: string | null;
11706
+ next_step?: string | null;
11707
+ node_id?: string | null;
11646
11708
  order_ref?: string | null;
11647
11709
  order_source?: string | null;
11648
11710
  output?: import("../integrations/supabase/types").Json | null;
@@ -11659,6 +11721,7 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
11659
11721
  Update: {
11660
11722
  actor?: string | null;
11661
11723
  attempts?: number;
11724
+ calc?: import("../integrations/supabase/types").Json | null;
11662
11725
  cart_ref?: string | null;
11663
11726
  created_at?: string;
11664
11727
  db_action?: string | null;
@@ -11669,6 +11732,7 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
11669
11732
  decision?: string | null;
11670
11733
  duration_ms?: number | null;
11671
11734
  error?: string | null;
11735
+ error_class?: string | null;
11672
11736
  external_action?: string | null;
11673
11737
  external_ref?: string | null;
11674
11738
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11677,6 +11741,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
11677
11741
  id?: string;
11678
11742
  input?: import("../integrations/supabase/types").Json | null;
11679
11743
  next_attempt_at?: string | null;
11744
+ next_step?: string | null;
11745
+ node_id?: string | null;
11680
11746
  order_ref?: string | null;
11681
11747
  order_source?: string | null;
11682
11748
  output?: import("../integrations/supabase/types").Json | null;
@@ -25181,12 +25247,59 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
25181
25247
  };
25182
25248
  Returns: string;
25183
25249
  };
25250
+ logistics_trace_all_orders: {
25251
+ Args: {
25252
+ p_limit?: number;
25253
+ p_search?: string;
25254
+ };
25255
+ Returns: import("../integrations/supabase/types").Json;
25256
+ };
25184
25257
  logistics_trace_batch: {
25185
25258
  Args: {
25186
25259
  p: import("../integrations/supabase/types").Json;
25187
25260
  };
25188
25261
  Returns: number;
25189
25262
  };
25263
+ logistics_trace_node: {
25264
+ Args: {
25265
+ p_op?: string;
25266
+ p_status?: string;
25267
+ p_table: string;
25268
+ };
25269
+ Returns: string;
25270
+ };
25271
+ logistics_trace_order_overview: {
25272
+ Args: {
25273
+ p_error_class?: string;
25274
+ p_limit?: number;
25275
+ p_search?: string;
25276
+ p_since?: string;
25277
+ p_source?: string;
25278
+ p_state?: string;
25279
+ p_step?: string;
25280
+ };
25281
+ Returns: import("../integrations/supabase/types").Json;
25282
+ };
25283
+ logistics_trace_order_state: {
25284
+ Args: {
25285
+ p_order_ref: string;
25286
+ };
25287
+ Returns: import("../integrations/supabase/types").Json;
25288
+ };
25289
+ logistics_trace_order_step: {
25290
+ Args: {
25291
+ p_class?: string;
25292
+ p_decision?: string;
25293
+ p_error?: string;
25294
+ p_next_step?: string;
25295
+ p_node: string;
25296
+ p_order_id: string;
25297
+ p_reason?: string;
25298
+ p_status: string;
25299
+ p_step: string;
25300
+ };
25301
+ Returns: undefined;
25302
+ };
25190
25303
  logistics_trace_orders: {
25191
25304
  Args: {
25192
25305
  p_limit?: number;
@@ -25209,6 +25322,22 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
25209
25322
  };
25210
25323
  Returns: import("../integrations/supabase/types").Json;
25211
25324
  };
25325
+ logistics_trace_version_events: {
25326
+ Args: {
25327
+ p_from?: string;
25328
+ p_limit?: number;
25329
+ p_order_ref: string;
25330
+ p_to?: string;
25331
+ p_version_id: string;
25332
+ };
25333
+ Returns: import("../integrations/supabase/types").Json;
25334
+ };
25335
+ logistics_trace_versions: {
25336
+ Args: {
25337
+ p_order_ref: string;
25338
+ };
25339
+ Returns: import("../integrations/supabase/types").Json;
25340
+ };
25212
25341
  logistics_upsert_task: {
25213
25342
  Args: {
25214
25343
  p_buffer_ref: string;