@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
@@ -21,6 +21,7 @@ export type CustomerAssortmentItem = {
21
21
  handling_per_unit: number;
22
22
  floriday_source: "price_group" | "contract" | null;
23
23
  floriday_source_label: string | null;
24
+ in_assortment: boolean;
24
25
  };
25
26
  export type CustomerAssortmentResult = {
26
27
  items: CustomerAssortmentItem[];
@@ -39,6 +40,7 @@ export type CustomerAssortmentResult = {
39
40
  total: number;
40
41
  priced: number;
41
42
  restricted: number;
43
+ in_assortment: number;
42
44
  last_synced_at: string | null;
43
45
  };
44
46
  };
@@ -88,9 +90,7 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
88
90
  id?: string;
89
91
  max_workdays_earlier_pick?: number;
90
92
  pick_days_before_transport?: number;
91
- pick_distribution_enabled
92
- /** tradeItemName kan een string of een taal-object zijn ({ nl: "…", en: "…" }). */
93
- ?: boolean;
93
+ pick_distribution_enabled?: boolean;
94
94
  pick_weekdays?: number[];
95
95
  signup_mail_enabled?: boolean;
96
96
  signup_mail_lead_minutes?: number;
@@ -1868,6 +1868,42 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
1868
1868
  };
1869
1869
  Relationships: [];
1870
1870
  };
1871
+ customer_assortment_items: {
1872
+ Row: {
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
+ Insert: {
1884
+ created_at?: string;
1885
+ customer_key: string;
1886
+ id?: string;
1887
+ in_assortment?: boolean;
1888
+ manual_override?: boolean;
1889
+ source?: string;
1890
+ synced_at?: string | null;
1891
+ trade_item_key: string;
1892
+ updated_at?: string;
1893
+ };
1894
+ Update: {
1895
+ created_at?: string;
1896
+ customer_key?: string;
1897
+ id?: string;
1898
+ in_assortment?: boolean;
1899
+ manual_override?: boolean;
1900
+ source?: string;
1901
+ synced_at?: string | null;
1902
+ trade_item_key?: string;
1903
+ updated_at?: string;
1904
+ };
1905
+ Relationships: [];
1906
+ };
1871
1907
  customer_audit_log: {
1872
1908
  Row: {
1873
1909
  action: string;
@@ -2272,40 +2308,58 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
2272
2308
  };
2273
2309
  customer_product_stickers: {
2274
2310
  Row: {
2311
+ content_hash: string | null;
2275
2312
  created_at: string;
2276
2313
  customer_key: string;
2277
2314
  file_name: string;
2278
2315
  file_path: string;
2279
2316
  file_size: number | null;
2317
+ floriday_sticker_id: string | null;
2318
+ floriday_synced_at: string | null;
2319
+ height_mm: number | null;
2280
2320
  id: string;
2281
2321
  mime_type: string | null;
2322
+ source: string;
2282
2323
  trade_item_key: string;
2283
2324
  updated_at: string;
2284
2325
  uploaded_by: string | null;
2326
+ width_mm: number | null;
2285
2327
  };
2286
2328
  Insert: {
2329
+ content_hash?: string | null;
2287
2330
  created_at?: string;
2288
2331
  customer_key: string;
2289
2332
  file_name: string;
2290
2333
  file_path: string;
2291
2334
  file_size?: number | null;
2335
+ floriday_sticker_id?: string | null;
2336
+ floriday_synced_at?: string | null;
2337
+ height_mm?: number | null;
2292
2338
  id?: string;
2293
2339
  mime_type?: string | null;
2340
+ source?: string;
2294
2341
  trade_item_key: string;
2295
2342
  updated_at?: string;
2296
2343
  uploaded_by?: string | null;
2344
+ width_mm?: number | null;
2297
2345
  };
2298
2346
  Update: {
2347
+ content_hash?: string | null;
2299
2348
  created_at?: string;
2300
2349
  customer_key?: string;
2301
2350
  file_name?: string;
2302
2351
  file_path?: string;
2303
2352
  file_size?: number | null;
2353
+ floriday_sticker_id?: string | null;
2354
+ floriday_synced_at?: string | null;
2355
+ height_mm?: number | null;
2304
2356
  id?: string;
2305
2357
  mime_type?: string | null;
2358
+ source?: string;
2306
2359
  trade_item_key?: string;
2307
2360
  updated_at?: string;
2308
2361
  uploaded_by?: string | null;
2362
+ width_mm?: number | null;
2309
2363
  };
2310
2364
  Relationships: [];
2311
2365
  };
@@ -11613,6 +11667,7 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
11613
11667
  Row: {
11614
11668
  actor: string | null;
11615
11669
  attempts: number;
11670
+ calc: import("../integrations/supabase/types").Json | null;
11616
11671
  cart_ref: string | null;
11617
11672
  created_at: string;
11618
11673
  db_action: string | null;
@@ -11623,6 +11678,7 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
11623
11678
  decision: string | null;
11624
11679
  duration_ms: number | null;
11625
11680
  error: string | null;
11681
+ error_class: string | null;
11626
11682
  external_action: string | null;
11627
11683
  external_ref: string | null;
11628
11684
  external_response: import("../integrations/supabase/types").Json | null;
@@ -11631,6 +11687,8 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
11631
11687
  id: string;
11632
11688
  input: import("../integrations/supabase/types").Json | null;
11633
11689
  next_attempt_at: string | null;
11690
+ next_step: string | null;
11691
+ node_id: string | null;
11634
11692
  order_ref: string | null;
11635
11693
  order_source: string | null;
11636
11694
  output: import("../integrations/supabase/types").Json | null;
@@ -11647,6 +11705,7 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
11647
11705
  Insert: {
11648
11706
  actor?: string | null;
11649
11707
  attempts?: number;
11708
+ calc?: import("../integrations/supabase/types").Json | null;
11650
11709
  cart_ref?: string | null;
11651
11710
  created_at?: string;
11652
11711
  db_action?: string | null;
@@ -11657,6 +11716,7 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
11657
11716
  decision?: string | null;
11658
11717
  duration_ms?: number | null;
11659
11718
  error?: string | null;
11719
+ error_class?: string | null;
11660
11720
  external_action?: string | null;
11661
11721
  external_ref?: string | null;
11662
11722
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11665,6 +11725,8 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
11665
11725
  id?: string;
11666
11726
  input?: import("../integrations/supabase/types").Json | null;
11667
11727
  next_attempt_at?: string | null;
11728
+ next_step?: string | null;
11729
+ node_id?: string | null;
11668
11730
  order_ref?: string | null;
11669
11731
  order_source?: string | null;
11670
11732
  output?: import("../integrations/supabase/types").Json | null;
@@ -11681,6 +11743,7 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
11681
11743
  Update: {
11682
11744
  actor?: string | null;
11683
11745
  attempts?: number;
11746
+ calc?: import("../integrations/supabase/types").Json | null;
11684
11747
  cart_ref?: string | null;
11685
11748
  created_at?: string;
11686
11749
  db_action?: string | null;
@@ -11691,6 +11754,7 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
11691
11754
  decision?: string | null;
11692
11755
  duration_ms?: number | null;
11693
11756
  error?: string | null;
11757
+ error_class?: string | null;
11694
11758
  external_action?: string | null;
11695
11759
  external_ref?: string | null;
11696
11760
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11699,6 +11763,8 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
11699
11763
  id?: string;
11700
11764
  input?: import("../integrations/supabase/types").Json | null;
11701
11765
  next_attempt_at?: string | null;
11766
+ next_step?: string | null;
11767
+ node_id?: string | null;
11702
11768
  order_ref?: string | null;
11703
11769
  order_source?: string | null;
11704
11770
  output?: import("../integrations/supabase/types").Json | null;
@@ -25203,12 +25269,59 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
25203
25269
  };
25204
25270
  Returns: string;
25205
25271
  };
25272
+ logistics_trace_all_orders: {
25273
+ Args: {
25274
+ p_limit?: number;
25275
+ p_search?: string;
25276
+ };
25277
+ Returns: import("../integrations/supabase/types").Json;
25278
+ };
25206
25279
  logistics_trace_batch: {
25207
25280
  Args: {
25208
25281
  p: import("../integrations/supabase/types").Json;
25209
25282
  };
25210
25283
  Returns: number;
25211
25284
  };
25285
+ logistics_trace_node: {
25286
+ Args: {
25287
+ p_op?: string;
25288
+ p_status?: string;
25289
+ p_table: string;
25290
+ };
25291
+ Returns: string;
25292
+ };
25293
+ logistics_trace_order_overview: {
25294
+ Args: {
25295
+ p_error_class?: string;
25296
+ p_limit?: number;
25297
+ p_search?: string;
25298
+ p_since?: string;
25299
+ p_source?: string;
25300
+ p_state?: string;
25301
+ p_step?: string;
25302
+ };
25303
+ Returns: import("../integrations/supabase/types").Json;
25304
+ };
25305
+ logistics_trace_order_state: {
25306
+ Args: {
25307
+ p_order_ref: string;
25308
+ };
25309
+ Returns: import("../integrations/supabase/types").Json;
25310
+ };
25311
+ logistics_trace_order_step: {
25312
+ Args: {
25313
+ p_class?: string;
25314
+ p_decision?: string;
25315
+ p_error?: string;
25316
+ p_next_step?: string;
25317
+ p_node: string;
25318
+ p_order_id: string;
25319
+ p_reason?: string;
25320
+ p_status: string;
25321
+ p_step: string;
25322
+ };
25323
+ Returns: undefined;
25324
+ };
25212
25325
  logistics_trace_orders: {
25213
25326
  Args: {
25214
25327
  p_limit?: number;
@@ -25231,6 +25344,22 @@ export declare const listCustomerAssortment: import("@tanstack/start-client-core
25231
25344
  };
25232
25345
  Returns: import("../integrations/supabase/types").Json;
25233
25346
  };
25347
+ logistics_trace_version_events: {
25348
+ Args: {
25349
+ p_from?: string;
25350
+ p_limit?: number;
25351
+ p_order_ref: string;
25352
+ p_to?: string;
25353
+ p_version_id: string;
25354
+ };
25355
+ Returns: import("../integrations/supabase/types").Json;
25356
+ };
25357
+ logistics_trace_versions: {
25358
+ Args: {
25359
+ p_order_ref: string;
25360
+ };
25361
+ Returns: import("../integrations/supabase/types").Json;
25362
+ };
25234
25363
  logistics_upsert_task: {
25235
25364
  Args: {
25236
25365
  p_buffer_ref: string;