@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
@@ -1833,6 +1833,42 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
1833
1833
  };
1834
1834
  Relationships: [];
1835
1835
  };
1836
+ customer_assortment_items: {
1837
+ Row: {
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
+ Insert: {
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
+ Update: {
1860
+ created_at?: string;
1861
+ customer_key?: string;
1862
+ id?: string;
1863
+ in_assortment?: boolean;
1864
+ manual_override?: boolean;
1865
+ source?: string;
1866
+ synced_at?: string | null;
1867
+ trade_item_key?: string;
1868
+ updated_at?: string;
1869
+ };
1870
+ Relationships: [];
1871
+ };
1836
1872
  customer_audit_log: {
1837
1873
  Row: {
1838
1874
  action: string;
@@ -2237,40 +2273,58 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
2237
2273
  };
2238
2274
  customer_product_stickers: {
2239
2275
  Row: {
2276
+ content_hash: string | null;
2240
2277
  created_at: string;
2241
2278
  customer_key: string;
2242
2279
  file_name: string;
2243
2280
  file_path: string;
2244
2281
  file_size: number | null;
2282
+ floriday_sticker_id: string | null;
2283
+ floriday_synced_at: string | null;
2284
+ height_mm: number | null;
2245
2285
  id: string;
2246
2286
  mime_type: string | null;
2287
+ source: string;
2247
2288
  trade_item_key: string;
2248
2289
  updated_at: string;
2249
2290
  uploaded_by: string | null;
2291
+ width_mm: number | null;
2250
2292
  };
2251
2293
  Insert: {
2294
+ content_hash?: string | null;
2252
2295
  created_at?: string;
2253
2296
  customer_key: string;
2254
2297
  file_name: string;
2255
2298
  file_path: string;
2256
2299
  file_size?: number | null;
2300
+ floriday_sticker_id?: string | null;
2301
+ floriday_synced_at?: string | null;
2302
+ height_mm?: number | null;
2257
2303
  id?: string;
2258
2304
  mime_type?: string | null;
2305
+ source?: string;
2259
2306
  trade_item_key: string;
2260
2307
  updated_at?: string;
2261
2308
  uploaded_by?: string | null;
2309
+ width_mm?: number | null;
2262
2310
  };
2263
2311
  Update: {
2312
+ content_hash?: string | null;
2264
2313
  created_at?: string;
2265
2314
  customer_key?: string;
2266
2315
  file_name?: string;
2267
2316
  file_path?: string;
2268
2317
  file_size?: number | null;
2318
+ floriday_sticker_id?: string | null;
2319
+ floriday_synced_at?: string | null;
2320
+ height_mm?: number | null;
2269
2321
  id?: string;
2270
2322
  mime_type?: string | null;
2323
+ source?: string;
2271
2324
  trade_item_key?: string;
2272
2325
  updated_at?: string;
2273
2326
  uploaded_by?: string | null;
2327
+ width_mm?: number | null;
2274
2328
  };
2275
2329
  Relationships: [];
2276
2330
  };
@@ -11578,6 +11632,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
11578
11632
  Row: {
11579
11633
  actor: string | null;
11580
11634
  attempts: number;
11635
+ calc: import("../integrations/supabase/types").Json | null;
11581
11636
  cart_ref: string | null;
11582
11637
  created_at: string;
11583
11638
  db_action: string | null;
@@ -11588,6 +11643,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
11588
11643
  decision: string | null;
11589
11644
  duration_ms: number | null;
11590
11645
  error: string | null;
11646
+ error_class: string | null;
11591
11647
  external_action: string | null;
11592
11648
  external_ref: string | null;
11593
11649
  external_response: import("../integrations/supabase/types").Json | null;
@@ -11596,6 +11652,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
11596
11652
  id: string;
11597
11653
  input: import("../integrations/supabase/types").Json | null;
11598
11654
  next_attempt_at: string | null;
11655
+ next_step: string | null;
11656
+ node_id: string | null;
11599
11657
  order_ref: string | null;
11600
11658
  order_source: string | null;
11601
11659
  output: import("../integrations/supabase/types").Json | null;
@@ -11612,6 +11670,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
11612
11670
  Insert: {
11613
11671
  actor?: string | null;
11614
11672
  attempts?: number;
11673
+ calc?: import("../integrations/supabase/types").Json | null;
11615
11674
  cart_ref?: string | null;
11616
11675
  created_at?: string;
11617
11676
  db_action?: string | null;
@@ -11622,6 +11681,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
11622
11681
  decision?: string | null;
11623
11682
  duration_ms?: number | null;
11624
11683
  error?: string | null;
11684
+ error_class?: string | null;
11625
11685
  external_action?: string | null;
11626
11686
  external_ref?: string | null;
11627
11687
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11630,6 +11690,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
11630
11690
  id?: string;
11631
11691
  input?: import("../integrations/supabase/types").Json | null;
11632
11692
  next_attempt_at?: string | null;
11693
+ next_step?: string | null;
11694
+ node_id?: string | null;
11633
11695
  order_ref?: string | null;
11634
11696
  order_source?: string | null;
11635
11697
  output?: import("../integrations/supabase/types").Json | null;
@@ -11646,6 +11708,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
11646
11708
  Update: {
11647
11709
  actor?: string | null;
11648
11710
  attempts?: number;
11711
+ calc?: import("../integrations/supabase/types").Json | null;
11649
11712
  cart_ref?: string | null;
11650
11713
  created_at?: string;
11651
11714
  db_action?: string | null;
@@ -11656,6 +11719,7 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
11656
11719
  decision?: string | null;
11657
11720
  duration_ms?: number | null;
11658
11721
  error?: string | null;
11722
+ error_class?: string | null;
11659
11723
  external_action?: string | null;
11660
11724
  external_ref?: string | null;
11661
11725
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11664,6 +11728,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
11664
11728
  id?: string;
11665
11729
  input?: import("../integrations/supabase/types").Json | null;
11666
11730
  next_attempt_at?: string | null;
11731
+ next_step?: string | null;
11732
+ node_id?: string | null;
11667
11733
  order_ref?: string | null;
11668
11734
  order_source?: string | null;
11669
11735
  output?: import("../integrations/supabase/types").Json | null;
@@ -25168,12 +25234,59 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
25168
25234
  };
25169
25235
  Returns: string;
25170
25236
  };
25237
+ logistics_trace_all_orders: {
25238
+ Args: {
25239
+ p_limit?: number;
25240
+ p_search?: string;
25241
+ };
25242
+ Returns: import("../integrations/supabase/types").Json;
25243
+ };
25171
25244
  logistics_trace_batch: {
25172
25245
  Args: {
25173
25246
  p: import("../integrations/supabase/types").Json;
25174
25247
  };
25175
25248
  Returns: number;
25176
25249
  };
25250
+ logistics_trace_node: {
25251
+ Args: {
25252
+ p_op?: string;
25253
+ p_status?: string;
25254
+ p_table: string;
25255
+ };
25256
+ Returns: string;
25257
+ };
25258
+ logistics_trace_order_overview: {
25259
+ Args: {
25260
+ p_error_class?: string;
25261
+ p_limit?: number;
25262
+ p_search?: string;
25263
+ p_since?: string;
25264
+ p_source?: string;
25265
+ p_state?: string;
25266
+ p_step?: string;
25267
+ };
25268
+ Returns: import("../integrations/supabase/types").Json;
25269
+ };
25270
+ logistics_trace_order_state: {
25271
+ Args: {
25272
+ p_order_ref: string;
25273
+ };
25274
+ Returns: import("../integrations/supabase/types").Json;
25275
+ };
25276
+ logistics_trace_order_step: {
25277
+ Args: {
25278
+ p_class?: string;
25279
+ p_decision?: string;
25280
+ p_error?: string;
25281
+ p_next_step?: string;
25282
+ p_node: string;
25283
+ p_order_id: string;
25284
+ p_reason?: string;
25285
+ p_status: string;
25286
+ p_step: string;
25287
+ };
25288
+ Returns: undefined;
25289
+ };
25177
25290
  logistics_trace_orders: {
25178
25291
  Args: {
25179
25292
  p_limit?: number;
@@ -25196,6 +25309,22 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
25196
25309
  };
25197
25310
  Returns: import("../integrations/supabase/types").Json;
25198
25311
  };
25312
+ logistics_trace_version_events: {
25313
+ Args: {
25314
+ p_from?: string;
25315
+ p_limit?: number;
25316
+ p_order_ref: string;
25317
+ p_to?: string;
25318
+ p_version_id: string;
25319
+ };
25320
+ Returns: import("../integrations/supabase/types").Json;
25321
+ };
25322
+ logistics_trace_versions: {
25323
+ Args: {
25324
+ p_order_ref: string;
25325
+ };
25326
+ Returns: import("../integrations/supabase/types").Json;
25327
+ };
25199
25328
  logistics_upsert_task: {
25200
25329
  Args: {
25201
25330
  p_buffer_ref: string;