@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
@@ -1830,6 +1830,42 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
1830
1830
  };
1831
1831
  Relationships: [];
1832
1832
  };
1833
+ customer_assortment_items: {
1834
+ Row: {
1835
+ created_at: string;
1836
+ customer_key: string;
1837
+ id: string;
1838
+ in_assortment: boolean;
1839
+ manual_override: boolean;
1840
+ source: string;
1841
+ synced_at: string | null;
1842
+ trade_item_key: string;
1843
+ updated_at: string;
1844
+ };
1845
+ Insert: {
1846
+ created_at?: string;
1847
+ customer_key: string;
1848
+ id?: string;
1849
+ in_assortment?: boolean;
1850
+ manual_override?: boolean;
1851
+ source?: string;
1852
+ synced_at?: string | null;
1853
+ trade_item_key: string;
1854
+ updated_at?: string;
1855
+ };
1856
+ Update: {
1857
+ created_at?: string;
1858
+ customer_key?: string;
1859
+ id?: string;
1860
+ in_assortment?: boolean;
1861
+ manual_override?: boolean;
1862
+ source?: string;
1863
+ synced_at?: string | null;
1864
+ trade_item_key?: string;
1865
+ updated_at?: string;
1866
+ };
1867
+ Relationships: [];
1868
+ };
1833
1869
  customer_audit_log: {
1834
1870
  Row: {
1835
1871
  action: string;
@@ -2234,40 +2270,58 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
2234
2270
  };
2235
2271
  customer_product_stickers: {
2236
2272
  Row: {
2273
+ content_hash: string | null;
2237
2274
  created_at: string;
2238
2275
  customer_key: string;
2239
2276
  file_name: string;
2240
2277
  file_path: string;
2241
2278
  file_size: number | null;
2279
+ floriday_sticker_id: string | null;
2280
+ floriday_synced_at: string | null;
2281
+ height_mm: number | null;
2242
2282
  id: string;
2243
2283
  mime_type: string | null;
2284
+ source: string;
2244
2285
  trade_item_key: string;
2245
2286
  updated_at: string;
2246
2287
  uploaded_by: string | null;
2288
+ width_mm: number | null;
2247
2289
  };
2248
2290
  Insert: {
2291
+ content_hash?: string | null;
2249
2292
  created_at?: string;
2250
2293
  customer_key: string;
2251
2294
  file_name: string;
2252
2295
  file_path: string;
2253
2296
  file_size?: number | null;
2297
+ floriday_sticker_id?: string | null;
2298
+ floriday_synced_at?: string | null;
2299
+ height_mm?: number | null;
2254
2300
  id?: string;
2255
2301
  mime_type?: string | null;
2302
+ source?: string;
2256
2303
  trade_item_key: string;
2257
2304
  updated_at?: string;
2258
2305
  uploaded_by?: string | null;
2306
+ width_mm?: number | null;
2259
2307
  };
2260
2308
  Update: {
2309
+ content_hash?: string | null;
2261
2310
  created_at?: string;
2262
2311
  customer_key?: string;
2263
2312
  file_name?: string;
2264
2313
  file_path?: string;
2265
2314
  file_size?: number | null;
2315
+ floriday_sticker_id?: string | null;
2316
+ floriday_synced_at?: string | null;
2317
+ height_mm?: number | null;
2266
2318
  id?: string;
2267
2319
  mime_type?: string | null;
2320
+ source?: string;
2268
2321
  trade_item_key?: string;
2269
2322
  updated_at?: string;
2270
2323
  uploaded_by?: string | null;
2324
+ width_mm?: number | null;
2271
2325
  };
2272
2326
  Relationships: [];
2273
2327
  };
@@ -11575,6 +11629,7 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
11575
11629
  Row: {
11576
11630
  actor: string | null;
11577
11631
  attempts: number;
11632
+ calc: import("../integrations/supabase/types").Json | null;
11578
11633
  cart_ref: string | null;
11579
11634
  created_at: string;
11580
11635
  db_action: string | null;
@@ -11585,6 +11640,7 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
11585
11640
  decision: string | null;
11586
11641
  duration_ms: number | null;
11587
11642
  error: string | null;
11643
+ error_class: string | null;
11588
11644
  external_action: string | null;
11589
11645
  external_ref: string | null;
11590
11646
  external_response: import("../integrations/supabase/types").Json | null;
@@ -11593,6 +11649,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
11593
11649
  id: string;
11594
11650
  input: import("../integrations/supabase/types").Json | null;
11595
11651
  next_attempt_at: string | null;
11652
+ next_step: string | null;
11653
+ node_id: string | null;
11596
11654
  order_ref: string | null;
11597
11655
  order_source: string | null;
11598
11656
  output: import("../integrations/supabase/types").Json | null;
@@ -11609,6 +11667,7 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
11609
11667
  Insert: {
11610
11668
  actor?: string | null;
11611
11669
  attempts?: number;
11670
+ calc?: import("../integrations/supabase/types").Json | null;
11612
11671
  cart_ref?: string | null;
11613
11672
  created_at?: string;
11614
11673
  db_action?: string | null;
@@ -11619,6 +11678,7 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
11619
11678
  decision?: string | null;
11620
11679
  duration_ms?: number | null;
11621
11680
  error?: string | null;
11681
+ error_class?: string | null;
11622
11682
  external_action?: string | null;
11623
11683
  external_ref?: string | null;
11624
11684
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11627,6 +11687,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
11627
11687
  id?: string;
11628
11688
  input?: import("../integrations/supabase/types").Json | null;
11629
11689
  next_attempt_at?: string | null;
11690
+ next_step?: string | null;
11691
+ node_id?: string | null;
11630
11692
  order_ref?: string | null;
11631
11693
  order_source?: string | null;
11632
11694
  output?: import("../integrations/supabase/types").Json | null;
@@ -11643,6 +11705,7 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
11643
11705
  Update: {
11644
11706
  actor?: string | null;
11645
11707
  attempts?: number;
11708
+ calc?: import("../integrations/supabase/types").Json | null;
11646
11709
  cart_ref?: string | null;
11647
11710
  created_at?: string;
11648
11711
  db_action?: string | null;
@@ -11653,6 +11716,7 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
11653
11716
  decision?: string | null;
11654
11717
  duration_ms?: number | null;
11655
11718
  error?: string | null;
11719
+ error_class?: string | null;
11656
11720
  external_action?: string | null;
11657
11721
  external_ref?: string | null;
11658
11722
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11661,6 +11725,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
11661
11725
  id?: string;
11662
11726
  input?: import("../integrations/supabase/types").Json | null;
11663
11727
  next_attempt_at?: string | null;
11728
+ next_step?: string | null;
11729
+ node_id?: string | null;
11664
11730
  order_ref?: string | null;
11665
11731
  order_source?: string | null;
11666
11732
  output?: import("../integrations/supabase/types").Json | null;
@@ -25165,12 +25231,59 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
25165
25231
  };
25166
25232
  Returns: string;
25167
25233
  };
25234
+ logistics_trace_all_orders: {
25235
+ Args: {
25236
+ p_limit?: number;
25237
+ p_search?: string;
25238
+ };
25239
+ Returns: import("../integrations/supabase/types").Json;
25240
+ };
25168
25241
  logistics_trace_batch: {
25169
25242
  Args: {
25170
25243
  p: import("../integrations/supabase/types").Json;
25171
25244
  };
25172
25245
  Returns: number;
25173
25246
  };
25247
+ logistics_trace_node: {
25248
+ Args: {
25249
+ p_op?: string;
25250
+ p_status?: string;
25251
+ p_table: string;
25252
+ };
25253
+ Returns: string;
25254
+ };
25255
+ logistics_trace_order_overview: {
25256
+ Args: {
25257
+ p_error_class?: string;
25258
+ p_limit?: number;
25259
+ p_search?: string;
25260
+ p_since?: string;
25261
+ p_source?: string;
25262
+ p_state?: string;
25263
+ p_step?: string;
25264
+ };
25265
+ Returns: import("../integrations/supabase/types").Json;
25266
+ };
25267
+ logistics_trace_order_state: {
25268
+ Args: {
25269
+ p_order_ref: string;
25270
+ };
25271
+ Returns: import("../integrations/supabase/types").Json;
25272
+ };
25273
+ logistics_trace_order_step: {
25274
+ Args: {
25275
+ p_class?: string;
25276
+ p_decision?: string;
25277
+ p_error?: string;
25278
+ p_next_step?: string;
25279
+ p_node: string;
25280
+ p_order_id: string;
25281
+ p_reason?: string;
25282
+ p_status: string;
25283
+ p_step: string;
25284
+ };
25285
+ Returns: undefined;
25286
+ };
25174
25287
  logistics_trace_orders: {
25175
25288
  Args: {
25176
25289
  p_limit?: number;
@@ -25193,6 +25306,22 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
25193
25306
  };
25194
25307
  Returns: import("../integrations/supabase/types").Json;
25195
25308
  };
25309
+ logistics_trace_version_events: {
25310
+ Args: {
25311
+ p_from?: string;
25312
+ p_limit?: number;
25313
+ p_order_ref: string;
25314
+ p_to?: string;
25315
+ p_version_id: string;
25316
+ };
25317
+ Returns: import("../integrations/supabase/types").Json;
25318
+ };
25319
+ logistics_trace_versions: {
25320
+ Args: {
25321
+ p_order_ref: string;
25322
+ };
25323
+ Returns: import("../integrations/supabase/types").Json;
25324
+ };
25196
25325
  logistics_upsert_task: {
25197
25326
  Args: {
25198
25327
  p_buffer_ref: string;