@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
@@ -1826,6 +1826,42 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
1826
1826
  };
1827
1827
  Relationships: [];
1828
1828
  };
1829
+ customer_assortment_items: {
1830
+ Row: {
1831
+ created_at: string;
1832
+ customer_key: string;
1833
+ id: string;
1834
+ in_assortment: boolean;
1835
+ manual_override: boolean;
1836
+ source: string;
1837
+ synced_at: string | null;
1838
+ trade_item_key: string;
1839
+ updated_at: string;
1840
+ };
1841
+ Insert: {
1842
+ created_at?: string;
1843
+ customer_key: string;
1844
+ id?: string;
1845
+ in_assortment?: boolean;
1846
+ manual_override?: boolean;
1847
+ source?: string;
1848
+ synced_at?: string | null;
1849
+ trade_item_key: string;
1850
+ updated_at?: string;
1851
+ };
1852
+ Update: {
1853
+ created_at?: string;
1854
+ customer_key?: string;
1855
+ id?: string;
1856
+ in_assortment?: boolean;
1857
+ manual_override?: boolean;
1858
+ source?: string;
1859
+ synced_at?: string | null;
1860
+ trade_item_key?: string;
1861
+ updated_at?: string;
1862
+ };
1863
+ Relationships: [];
1864
+ };
1829
1865
  customer_audit_log: {
1830
1866
  Row: {
1831
1867
  action: string;
@@ -2230,40 +2266,58 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
2230
2266
  };
2231
2267
  customer_product_stickers: {
2232
2268
  Row: {
2269
+ content_hash: string | null;
2233
2270
  created_at: string;
2234
2271
  customer_key: string;
2235
2272
  file_name: string;
2236
2273
  file_path: string;
2237
2274
  file_size: number | null;
2275
+ floriday_sticker_id: string | null;
2276
+ floriday_synced_at: string | null;
2277
+ height_mm: number | null;
2238
2278
  id: string;
2239
2279
  mime_type: string | null;
2280
+ source: string;
2240
2281
  trade_item_key: string;
2241
2282
  updated_at: string;
2242
2283
  uploaded_by: string | null;
2284
+ width_mm: number | null;
2243
2285
  };
2244
2286
  Insert: {
2287
+ content_hash?: string | null;
2245
2288
  created_at?: string;
2246
2289
  customer_key: string;
2247
2290
  file_name: string;
2248
2291
  file_path: string;
2249
2292
  file_size?: number | null;
2293
+ floriday_sticker_id?: string | null;
2294
+ floriday_synced_at?: string | null;
2295
+ height_mm?: number | null;
2250
2296
  id?: string;
2251
2297
  mime_type?: string | null;
2298
+ source?: string;
2252
2299
  trade_item_key: string;
2253
2300
  updated_at?: string;
2254
2301
  uploaded_by?: string | null;
2302
+ width_mm?: number | null;
2255
2303
  };
2256
2304
  Update: {
2305
+ content_hash?: string | null;
2257
2306
  created_at?: string;
2258
2307
  customer_key?: string;
2259
2308
  file_name?: string;
2260
2309
  file_path?: string;
2261
2310
  file_size?: number | null;
2311
+ floriday_sticker_id?: string | null;
2312
+ floriday_synced_at?: string | null;
2313
+ height_mm?: number | null;
2262
2314
  id?: string;
2263
2315
  mime_type?: string | null;
2316
+ source?: string;
2264
2317
  trade_item_key?: string;
2265
2318
  updated_at?: string;
2266
2319
  uploaded_by?: string | null;
2320
+ width_mm?: number | null;
2267
2321
  };
2268
2322
  Relationships: [];
2269
2323
  };
@@ -11571,6 +11625,7 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
11571
11625
  Row: {
11572
11626
  actor: string | null;
11573
11627
  attempts: number;
11628
+ calc: import("../integrations/supabase/types").Json | null;
11574
11629
  cart_ref: string | null;
11575
11630
  created_at: string;
11576
11631
  db_action: string | null;
@@ -11581,6 +11636,7 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
11581
11636
  decision: string | null;
11582
11637
  duration_ms: number | null;
11583
11638
  error: string | null;
11639
+ error_class: string | null;
11584
11640
  external_action: string | null;
11585
11641
  external_ref: string | null;
11586
11642
  external_response: import("../integrations/supabase/types").Json | null;
@@ -11589,6 +11645,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
11589
11645
  id: string;
11590
11646
  input: import("../integrations/supabase/types").Json | null;
11591
11647
  next_attempt_at: string | null;
11648
+ next_step: string | null;
11649
+ node_id: string | null;
11592
11650
  order_ref: string | null;
11593
11651
  order_source: string | null;
11594
11652
  output: import("../integrations/supabase/types").Json | null;
@@ -11605,6 +11663,7 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
11605
11663
  Insert: {
11606
11664
  actor?: string | null;
11607
11665
  attempts?: number;
11666
+ calc?: import("../integrations/supabase/types").Json | null;
11608
11667
  cart_ref?: string | null;
11609
11668
  created_at?: string;
11610
11669
  db_action?: string | null;
@@ -11615,6 +11674,7 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
11615
11674
  decision?: string | null;
11616
11675
  duration_ms?: number | null;
11617
11676
  error?: string | null;
11677
+ error_class?: string | null;
11618
11678
  external_action?: string | null;
11619
11679
  external_ref?: string | null;
11620
11680
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11623,6 +11683,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
11623
11683
  id?: string;
11624
11684
  input?: import("../integrations/supabase/types").Json | null;
11625
11685
  next_attempt_at?: string | null;
11686
+ next_step?: string | null;
11687
+ node_id?: string | null;
11626
11688
  order_ref?: string | null;
11627
11689
  order_source?: string | null;
11628
11690
  output?: import("../integrations/supabase/types").Json | null;
@@ -11639,6 +11701,7 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
11639
11701
  Update: {
11640
11702
  actor?: string | null;
11641
11703
  attempts?: number;
11704
+ calc?: import("../integrations/supabase/types").Json | null;
11642
11705
  cart_ref?: string | null;
11643
11706
  created_at?: string;
11644
11707
  db_action?: string | null;
@@ -11649,6 +11712,7 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
11649
11712
  decision?: string | null;
11650
11713
  duration_ms?: number | null;
11651
11714
  error?: string | null;
11715
+ error_class?: string | null;
11652
11716
  external_action?: string | null;
11653
11717
  external_ref?: string | null;
11654
11718
  external_response?: import("../integrations/supabase/types").Json | null;
@@ -11657,6 +11721,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
11657
11721
  id?: string;
11658
11722
  input?: import("../integrations/supabase/types").Json | null;
11659
11723
  next_attempt_at?: string | null;
11724
+ next_step?: string | null;
11725
+ node_id?: string | null;
11660
11726
  order_ref?: string | null;
11661
11727
  order_source?: string | null;
11662
11728
  output?: import("../integrations/supabase/types").Json | null;
@@ -25161,12 +25227,59 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
25161
25227
  };
25162
25228
  Returns: string;
25163
25229
  };
25230
+ logistics_trace_all_orders: {
25231
+ Args: {
25232
+ p_limit?: number;
25233
+ p_search?: string;
25234
+ };
25235
+ Returns: import("../integrations/supabase/types").Json;
25236
+ };
25164
25237
  logistics_trace_batch: {
25165
25238
  Args: {
25166
25239
  p: import("../integrations/supabase/types").Json;
25167
25240
  };
25168
25241
  Returns: number;
25169
25242
  };
25243
+ logistics_trace_node: {
25244
+ Args: {
25245
+ p_op?: string;
25246
+ p_status?: string;
25247
+ p_table: string;
25248
+ };
25249
+ Returns: string;
25250
+ };
25251
+ logistics_trace_order_overview: {
25252
+ Args: {
25253
+ p_error_class?: string;
25254
+ p_limit?: number;
25255
+ p_search?: string;
25256
+ p_since?: string;
25257
+ p_source?: string;
25258
+ p_state?: string;
25259
+ p_step?: string;
25260
+ };
25261
+ Returns: import("../integrations/supabase/types").Json;
25262
+ };
25263
+ logistics_trace_order_state: {
25264
+ Args: {
25265
+ p_order_ref: string;
25266
+ };
25267
+ Returns: import("../integrations/supabase/types").Json;
25268
+ };
25269
+ logistics_trace_order_step: {
25270
+ Args: {
25271
+ p_class?: string;
25272
+ p_decision?: string;
25273
+ p_error?: string;
25274
+ p_next_step?: string;
25275
+ p_node: string;
25276
+ p_order_id: string;
25277
+ p_reason?: string;
25278
+ p_status: string;
25279
+ p_step: string;
25280
+ };
25281
+ Returns: undefined;
25282
+ };
25170
25283
  logistics_trace_orders: {
25171
25284
  Args: {
25172
25285
  p_limit?: number;
@@ -25189,6 +25302,22 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
25189
25302
  };
25190
25303
  Returns: import("../integrations/supabase/types").Json;
25191
25304
  };
25305
+ logistics_trace_version_events: {
25306
+ Args: {
25307
+ p_from?: string;
25308
+ p_limit?: number;
25309
+ p_order_ref: string;
25310
+ p_to?: string;
25311
+ p_version_id: string;
25312
+ };
25313
+ Returns: import("../integrations/supabase/types").Json;
25314
+ };
25315
+ logistics_trace_versions: {
25316
+ Args: {
25317
+ p_order_ref: string;
25318
+ };
25319
+ Returns: import("../integrations/supabase/types").Json;
25320
+ };
25192
25321
  logistics_upsert_task: {
25193
25322
  Args: {
25194
25323
  p_buffer_ref: string;