@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
@@ -1875,6 +1875,42 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
1875
1875
  };
1876
1876
  Relationships: [];
1877
1877
  };
1878
+ customer_assortment_items: {
1879
+ Row: {
1880
+ created_at: string;
1881
+ customer_key: string;
1882
+ id: string;
1883
+ in_assortment: boolean;
1884
+ manual_override: boolean;
1885
+ source: string;
1886
+ synced_at: string | null;
1887
+ trade_item_key: string;
1888
+ updated_at: string;
1889
+ };
1890
+ Insert: {
1891
+ created_at?: string;
1892
+ customer_key: string;
1893
+ id?: string;
1894
+ in_assortment?: boolean;
1895
+ manual_override?: boolean;
1896
+ source?: string;
1897
+ synced_at?: string | null;
1898
+ trade_item_key: string;
1899
+ updated_at?: string;
1900
+ };
1901
+ Update: {
1902
+ created_at?: string;
1903
+ customer_key?: string;
1904
+ id?: string;
1905
+ in_assortment?: boolean;
1906
+ manual_override?: boolean;
1907
+ source?: string;
1908
+ synced_at?: string | null;
1909
+ trade_item_key?: string;
1910
+ updated_at?: string;
1911
+ };
1912
+ Relationships: [];
1913
+ };
1878
1914
  customer_audit_log: {
1879
1915
  Row: {
1880
1916
  action: string;
@@ -2279,40 +2315,58 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
2279
2315
  };
2280
2316
  customer_product_stickers: {
2281
2317
  Row: {
2318
+ content_hash: string | null;
2282
2319
  created_at: string;
2283
2320
  customer_key: string;
2284
2321
  file_name: string;
2285
2322
  file_path: string;
2286
2323
  file_size: number | null;
2324
+ floriday_sticker_id: string | null;
2325
+ floriday_synced_at: string | null;
2326
+ height_mm: number | null;
2287
2327
  id: string;
2288
2328
  mime_type: string | null;
2329
+ source: string;
2289
2330
  trade_item_key: string;
2290
2331
  updated_at: string;
2291
2332
  uploaded_by: string | null;
2333
+ width_mm: number | null;
2292
2334
  };
2293
2335
  Insert: {
2336
+ content_hash?: string | null;
2294
2337
  created_at?: string;
2295
2338
  customer_key: string;
2296
2339
  file_name: string;
2297
2340
  file_path: string;
2298
2341
  file_size?: number | null;
2342
+ floriday_sticker_id?: string | null;
2343
+ floriday_synced_at?: string | null;
2344
+ height_mm?: number | null;
2299
2345
  id?: string;
2300
2346
  mime_type?: string | null;
2347
+ source?: string;
2301
2348
  trade_item_key: string;
2302
2349
  updated_at?: string;
2303
2350
  uploaded_by?: string | null;
2351
+ width_mm?: number | null;
2304
2352
  };
2305
2353
  Update: {
2354
+ content_hash?: string | null;
2306
2355
  created_at?: string;
2307
2356
  customer_key?: string;
2308
2357
  file_name?: string;
2309
2358
  file_path?: string;
2310
2359
  file_size?: number | null;
2360
+ floriday_sticker_id?: string | null;
2361
+ floriday_synced_at?: string | null;
2362
+ height_mm?: number | null;
2311
2363
  id?: string;
2312
2364
  mime_type?: string | null;
2365
+ source?: string;
2313
2366
  trade_item_key?: string;
2314
2367
  updated_at?: string;
2315
2368
  uploaded_by?: string | null;
2369
+ width_mm?: number | null;
2316
2370
  };
2317
2371
  Relationships: [];
2318
2372
  };
@@ -11620,6 +11674,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
11620
11674
  Row: {
11621
11675
  actor: string | null;
11622
11676
  attempts: number;
11677
+ calc: import("../integrations/supabase/types").Json | null;
11623
11678
  cart_ref: string | null;
11624
11679
  created_at: string;
11625
11680
  db_action: string | null;
@@ -11630,6 +11685,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
11630
11685
  decision: string | null;
11631
11686
  duration_ms: number | null;
11632
11687
  error: string | null;
11688
+ error_class: string | null;
11633
11689
  external_action: string | null;
11634
11690
  external_ref: string | null;
11635
11691
  external_response: import("../integrations/supabase/types").Json | null;
@@ -11638,6 +11694,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
11638
11694
  id: string;
11639
11695
  input: import("../integrations/supabase/types").Json | null;
11640
11696
  next_attempt_at: string | null;
11697
+ next_step: string | null;
11698
+ node_id: string | null;
11641
11699
  order_ref: string | null;
11642
11700
  order_source: string | null;
11643
11701
  output: import("../integrations/supabase/types").Json | null;
@@ -11654,6 +11712,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
11654
11712
  Insert: {
11655
11713
  actor?: string | null;
11656
11714
  attempts?: number;
11715
+ calc?: import("../integrations/supabase/types").Json | null;
11657
11716
  cart_ref?: string | null;
11658
11717
  created_at?: string;
11659
11718
  db_action?: string | null;
@@ -11664,6 +11723,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
11664
11723
  decision?: string | null;
11665
11724
  duration_ms?: number | null;
11666
11725
  error?: string | null;
11726
+ error_class?: string | null;
11667
11727
  external_action?: string | null;
11668
11728
  external_ref?: string | null;
11669
11729
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11672,6 +11732,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
11672
11732
  id?: string;
11673
11733
  input?: import("../integrations/supabase/types").Json | null;
11674
11734
  next_attempt_at?: string | null;
11735
+ next_step?: string | null;
11736
+ node_id?: string | null;
11675
11737
  order_ref?: string | null;
11676
11738
  order_source?: string | null;
11677
11739
  output?: import("../integrations/supabase/types").Json | null;
@@ -11688,6 +11750,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
11688
11750
  Update: {
11689
11751
  actor?: string | null;
11690
11752
  attempts?: number;
11753
+ calc?: import("../integrations/supabase/types").Json | null;
11691
11754
  cart_ref?: string | null;
11692
11755
  created_at?: string;
11693
11756
  db_action?: string | null;
@@ -11698,6 +11761,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
11698
11761
  decision?: string | null;
11699
11762
  duration_ms?: number | null;
11700
11763
  error?: string | null;
11764
+ error_class?: string | null;
11701
11765
  external_action?: string | null;
11702
11766
  external_ref?: string | null;
11703
11767
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11706,6 +11770,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
11706
11770
  id?: string;
11707
11771
  input?: import("../integrations/supabase/types").Json | null;
11708
11772
  next_attempt_at?: string | null;
11773
+ next_step?: string | null;
11774
+ node_id?: string | null;
11709
11775
  order_ref?: string | null;
11710
11776
  order_source?: string | null;
11711
11777
  output?: import("../integrations/supabase/types").Json | null;
@@ -25210,12 +25276,59 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
25210
25276
  };
25211
25277
  Returns: string;
25212
25278
  };
25279
+ logistics_trace_all_orders: {
25280
+ Args: {
25281
+ p_limit?: number;
25282
+ p_search?: string;
25283
+ };
25284
+ Returns: import("../integrations/supabase/types").Json;
25285
+ };
25213
25286
  logistics_trace_batch: {
25214
25287
  Args: {
25215
25288
  p: import("../integrations/supabase/types").Json;
25216
25289
  };
25217
25290
  Returns: number;
25218
25291
  };
25292
+ logistics_trace_node: {
25293
+ Args: {
25294
+ p_op?: string;
25295
+ p_status?: string;
25296
+ p_table: string;
25297
+ };
25298
+ Returns: string;
25299
+ };
25300
+ logistics_trace_order_overview: {
25301
+ Args: {
25302
+ p_error_class?: string;
25303
+ p_limit?: number;
25304
+ p_search?: string;
25305
+ p_since?: string;
25306
+ p_source?: string;
25307
+ p_state?: string;
25308
+ p_step?: string;
25309
+ };
25310
+ Returns: import("../integrations/supabase/types").Json;
25311
+ };
25312
+ logistics_trace_order_state: {
25313
+ Args: {
25314
+ p_order_ref: string;
25315
+ };
25316
+ Returns: import("../integrations/supabase/types").Json;
25317
+ };
25318
+ logistics_trace_order_step: {
25319
+ Args: {
25320
+ p_class?: string;
25321
+ p_decision?: string;
25322
+ p_error?: string;
25323
+ p_next_step?: string;
25324
+ p_node: string;
25325
+ p_order_id: string;
25326
+ p_reason?: string;
25327
+ p_status: string;
25328
+ p_step: string;
25329
+ };
25330
+ Returns: undefined;
25331
+ };
25219
25332
  logistics_trace_orders: {
25220
25333
  Args: {
25221
25334
  p_limit?: number;
@@ -25238,6 +25351,22 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
25238
25351
  };
25239
25352
  Returns: import("../integrations/supabase/types").Json;
25240
25353
  };
25354
+ logistics_trace_version_events: {
25355
+ Args: {
25356
+ p_from?: string;
25357
+ p_limit?: number;
25358
+ p_order_ref: string;
25359
+ p_to?: string;
25360
+ p_version_id: string;
25361
+ };
25362
+ Returns: import("../integrations/supabase/types").Json;
25363
+ };
25364
+ logistics_trace_versions: {
25365
+ Args: {
25366
+ p_order_ref: string;
25367
+ };
25368
+ Returns: import("../integrations/supabase/types").Json;
25369
+ };
25241
25370
  logistics_upsert_task: {
25242
25371
  Args: {
25243
25372
  p_buffer_ref: string;