@flowselections/floriday-klanten-module 1.0.34 → 1.0.35

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 (90) hide show
  1. package/dist-lib/assets/floriday-logo.png.asset.json +11 -0
  2. package/dist-lib/components/klanten/CustomerAssortmentTab.d.ts +5 -0
  3. package/dist-lib/components/klanten/CustomerAssortmentTab.d.ts.map +1 -0
  4. package/dist-lib/components/klanten/CustomerAssortmentTab.js +74 -0
  5. package/dist-lib/components/klanten/FloridayPriceImportDialog.d.ts +5 -0
  6. package/dist-lib/components/klanten/FloridayPriceImportDialog.d.ts.map +1 -0
  7. package/dist-lib/components/klanten/FloridayPriceImportDialog.js +55 -0
  8. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
  9. package/dist-lib/components/klanten/GroupedKlantDetail.js +4 -3
  10. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
  11. package/dist-lib/components/klanten/KlantDetail.js +10 -2
  12. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  13. package/dist-lib/components/klanten/KlantenOverzicht.js +24 -3
  14. package/dist-lib/components/klanten/pricegroups/CustomerPriceGroupSelect.d.ts +4 -0
  15. package/dist-lib/components/klanten/pricegroups/CustomerPriceGroupSelect.d.ts.map +1 -0
  16. package/dist-lib/components/klanten/pricegroups/CustomerPriceGroupSelect.js +47 -0
  17. package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts.map +1 -1
  18. package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.js +2 -1
  19. package/dist-lib/components/klanten/pricegroups/PriceGroupItemPrices.d.ts +5 -0
  20. package/dist-lib/components/klanten/pricegroups/PriceGroupItemPrices.d.ts.map +1 -0
  21. package/dist-lib/components/klanten/pricegroups/PriceGroupItemPrices.js +83 -0
  22. package/dist-lib/index.d.ts +8 -0
  23. package/dist-lib/index.d.ts.map +1 -1
  24. package/dist-lib/index.js +8 -0
  25. package/dist-lib/integrations/supabase/auth-middleware.d.ts +595 -0
  26. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/client.d.ts +595 -0
  28. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  29. package/dist-lib/integrations/supabase/client.server.d.ts +595 -0
  30. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/types.d.ts +597 -0
  32. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  33. package/dist-lib/lib/accounting/twinfield/mapping.js +13 -13
  34. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +1785 -0
  35. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/accounting.functions.d.ts +1785 -0
  37. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/customer-analytics.functions.d.ts +595 -0
  39. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/customer-assortment.functions.d.ts +26666 -0
  41. package/dist-lib/lib/customer-assortment.functions.d.ts.map +1 -0
  42. package/dist-lib/lib/customer-assortment.functions.js +280 -0
  43. package/dist-lib/lib/customer-notes.functions.d.ts +1190 -0
  44. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/customer-revenue.functions.d.ts +595 -0
  46. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/customers.functions.d.ts +5355 -0
  48. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/delivery-locations.functions.d.ts +2975 -0
  50. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/errors.d.ts +12 -0
  52. package/dist-lib/lib/errors.d.ts.map +1 -1
  53. package/dist-lib/lib/errors.js +24 -0
  54. package/dist-lib/lib/external-customers.functions.d.ts +2380 -0
  55. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/floriday-assortment.functions.d.ts +595 -0
  57. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/floriday-catalog-prices.d.ts +33 -0
  59. package/dist-lib/lib/floriday-catalog-prices.d.ts.map +1 -0
  60. package/dist-lib/lib/floriday-catalog-prices.js +98 -0
  61. package/dist-lib/lib/floriday-discounts.functions.d.ts +1190 -0
  62. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/floriday-price-import.functions.d.ts +53265 -0
  64. package/dist-lib/lib/floriday-price-import.functions.d.ts.map +1 -0
  65. package/dist-lib/lib/floriday-price-import.functions.js +219 -0
  66. package/dist-lib/lib/floriday-trade-items.functions.d.ts +595 -0
  67. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/floriday.server.d.ts +55 -0
  69. package/dist-lib/lib/floriday.server.d.ts.map +1 -0
  70. package/dist-lib/lib/floriday.server.js +765 -0
  71. package/dist-lib/lib/local-discounts.functions.d.ts +4165 -0
  72. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  73. package/dist-lib/lib/logistics-events.functions.d.ts +595 -0
  74. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/logistics-strategy.functions.d.ts +2380 -0
  76. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  77. package/dist-lib/lib/overdue-invoices.functions.d.ts +595 -0
  78. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  79. package/dist-lib/lib/price-groups-local.functions.d.ts +137905 -27
  80. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  81. package/dist-lib/lib/price-groups-local.functions.js +145 -0
  82. package/dist-lib/lib/price-groups.functions.d.ts +601 -1
  83. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  84. package/dist-lib/lib/twinfield-adopt.functions.d.ts +1190 -0
  85. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  86. package/dist-lib/lib/twinfield-ledger.functions.d.ts +595 -0
  87. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  88. package/dist-lib/lib/twinfield-ledger.server.js +21 -21
  89. package/package.json +1 -1
  90. package/public/flowselections-assets/Klanten/twinfield-logo.svg +217 -217
@@ -5809,6 +5809,84 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
5809
5809
  referencedColumns: ["id"];
5810
5810
  }];
5811
5811
  };
5812
+ floriday_catalog_prices_cache: {
5813
+ Row: {
5814
+ connection_id: string;
5815
+ created_at: string;
5816
+ currency: string;
5817
+ id: string;
5818
+ is_deleted: boolean;
5819
+ price: number | null;
5820
+ price_group_id: string | null;
5821
+ price_group_name: string | null;
5822
+ price_type: string;
5823
+ raw: import("../integrations/supabase/types").Json | null;
5824
+ sales_unit: string | null;
5825
+ sequence_number: number;
5826
+ supplier_article_code: string | null;
5827
+ supply_line_id: string;
5828
+ synced_at: string;
5829
+ trade_item_id: string | null;
5830
+ updated_at: string;
5831
+ valid_from: string | null;
5832
+ valid_to: string | null;
5833
+ week: number | null;
5834
+ year: number | null;
5835
+ };
5836
+ Insert: {
5837
+ connection_id: string;
5838
+ created_at?: string;
5839
+ currency?: string;
5840
+ id?: string;
5841
+ is_deleted?: boolean;
5842
+ price?: number | null;
5843
+ price_group_id?: string | null;
5844
+ price_group_name?: string | null;
5845
+ price_type?: string;
5846
+ raw?: import("../integrations/supabase/types").Json | null;
5847
+ sales_unit?: string | null;
5848
+ sequence_number?: number;
5849
+ supplier_article_code?: string | null;
5850
+ supply_line_id: string;
5851
+ synced_at?: string;
5852
+ trade_item_id?: string | null;
5853
+ updated_at?: string;
5854
+ valid_from?: string | null;
5855
+ valid_to?: string | null;
5856
+ week?: number | null;
5857
+ year?: number | null;
5858
+ };
5859
+ Update: {
5860
+ connection_id?: string;
5861
+ created_at?: string;
5862
+ currency?: string;
5863
+ id?: string;
5864
+ is_deleted?: boolean;
5865
+ price?: number | null;
5866
+ price_group_id?: string | null;
5867
+ price_group_name?: string | null;
5868
+ price_type?: string;
5869
+ raw?: import("../integrations/supabase/types").Json | null;
5870
+ sales_unit?: string | null;
5871
+ sequence_number?: number;
5872
+ supplier_article_code?: string | null;
5873
+ supply_line_id?: string;
5874
+ synced_at?: string;
5875
+ trade_item_id?: string | null;
5876
+ updated_at?: string;
5877
+ valid_from?: string | null;
5878
+ valid_to?: string | null;
5879
+ week?: number | null;
5880
+ year?: number | null;
5881
+ };
5882
+ Relationships: [{
5883
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
5884
+ columns: ["connection_id"];
5885
+ isOneToOne: false;
5886
+ referencedRelation: "floriday_connections";
5887
+ referencedColumns: ["id"];
5888
+ }];
5889
+ };
5812
5890
  floriday_clock_presales_cache: {
5813
5891
  Row: {
5814
5892
  buyer_organization_id: string | null;
@@ -10075,6 +10153,36 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
10075
10153
  };
10076
10154
  Relationships: [];
10077
10155
  };
10156
+ logistics_floriday_push_refusals: {
10157
+ Row: {
10158
+ action: string | null;
10159
+ created_at: string;
10160
+ id: string;
10161
+ order_ref: string;
10162
+ reason: string;
10163
+ source_module: string | null;
10164
+ source_shell: string | null;
10165
+ };
10166
+ Insert: {
10167
+ action?: string | null;
10168
+ created_at?: string;
10169
+ id?: string;
10170
+ order_ref: string;
10171
+ reason: string;
10172
+ source_module?: string | null;
10173
+ source_shell?: string | null;
10174
+ };
10175
+ Update: {
10176
+ action?: string | null;
10177
+ created_at?: string;
10178
+ id?: string;
10179
+ order_ref?: string;
10180
+ reason?: string;
10181
+ source_module?: string | null;
10182
+ source_shell?: string | null;
10183
+ };
10184
+ Relationships: [];
10185
+ };
10078
10186
  logistics_floriday_pushes: {
10079
10187
  Row: {
10080
10188
  attempts: number;
@@ -10150,6 +10258,42 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
10150
10258
  };
10151
10259
  Relationships: [];
10152
10260
  };
10261
+ logistics_floriday_status_sends: {
10262
+ Row: {
10263
+ action: string;
10264
+ created_at: string;
10265
+ detail: string | null;
10266
+ http_status: number | null;
10267
+ id: string;
10268
+ ok: boolean;
10269
+ order_ref: string;
10270
+ source_module: string | null;
10271
+ source_shell: string | null;
10272
+ };
10273
+ Insert: {
10274
+ action: string;
10275
+ created_at?: string;
10276
+ detail?: string | null;
10277
+ http_status?: number | null;
10278
+ id?: string;
10279
+ ok?: boolean;
10280
+ order_ref: string;
10281
+ source_module?: string | null;
10282
+ source_shell?: string | null;
10283
+ };
10284
+ Update: {
10285
+ action?: string;
10286
+ created_at?: string;
10287
+ detail?: string | null;
10288
+ http_status?: number | null;
10289
+ id?: string;
10290
+ ok?: boolean;
10291
+ order_ref?: string;
10292
+ source_module?: string | null;
10293
+ source_shell?: string | null;
10294
+ };
10295
+ Relationships: [];
10296
+ };
10153
10297
  logistics_formulas: {
10154
10298
  Row: {
10155
10299
  created_at: string;
@@ -10222,6 +10366,108 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
10222
10366
  };
10223
10367
  Relationships: [];
10224
10368
  };
10369
+ logistics_opening_exceptions: {
10370
+ Row: {
10371
+ closes: string | null;
10372
+ created_at: string;
10373
+ day: string;
10374
+ id: string;
10375
+ is_closed: boolean;
10376
+ note: string | null;
10377
+ opens: string | null;
10378
+ };
10379
+ Insert: {
10380
+ closes?: string | null;
10381
+ created_at?: string;
10382
+ day: string;
10383
+ id?: string;
10384
+ is_closed?: boolean;
10385
+ note?: string | null;
10386
+ opens?: string | null;
10387
+ };
10388
+ Update: {
10389
+ closes?: string | null;
10390
+ created_at?: string;
10391
+ day?: string;
10392
+ id?: string;
10393
+ is_closed?: boolean;
10394
+ note?: string | null;
10395
+ opens?: string | null;
10396
+ };
10397
+ Relationships: [];
10398
+ };
10399
+ logistics_opening_hours: {
10400
+ Row: {
10401
+ closes: string;
10402
+ created_at: string;
10403
+ id: string;
10404
+ is_active: boolean;
10405
+ note: string | null;
10406
+ opens: string;
10407
+ weekday: number;
10408
+ };
10409
+ Insert: {
10410
+ closes: string;
10411
+ created_at?: string;
10412
+ id?: string;
10413
+ is_active?: boolean;
10414
+ note?: string | null;
10415
+ opens: string;
10416
+ weekday: number;
10417
+ };
10418
+ Update: {
10419
+ closes?: string;
10420
+ created_at?: string;
10421
+ id?: string;
10422
+ is_active?: boolean;
10423
+ note?: string | null;
10424
+ opens?: string;
10425
+ weekday?: number;
10426
+ };
10427
+ Relationships: [];
10428
+ };
10429
+ logistics_pick_data_requests: {
10430
+ Row: {
10431
+ actions: import("../integrations/supabase/types").Json;
10432
+ created_at: string;
10433
+ event_id: string | null;
10434
+ finished_at: string | null;
10435
+ id: string;
10436
+ missing: import("../integrations/supabase/types").Json;
10437
+ order_ref: string;
10438
+ reason: string | null;
10439
+ result: import("../integrations/supabase/types").Json | null;
10440
+ status: string;
10441
+ unit_ref: string | null;
10442
+ };
10443
+ Insert: {
10444
+ actions?: import("../integrations/supabase/types").Json;
10445
+ created_at?: string;
10446
+ event_id?: string | null;
10447
+ finished_at?: string | null;
10448
+ id?: string;
10449
+ missing?: import("../integrations/supabase/types").Json;
10450
+ order_ref: string;
10451
+ reason?: string | null;
10452
+ result?: import("../integrations/supabase/types").Json | null;
10453
+ status?: string;
10454
+ unit_ref?: string | null;
10455
+ };
10456
+ Update: {
10457
+ actions?: import("../integrations/supabase/types").Json;
10458
+ created_at?: string;
10459
+ event_id?: string | null;
10460
+ finished_at?: string | null;
10461
+ id?: string;
10462
+ missing?: import("../integrations/supabase/types").Json;
10463
+ order_ref?: string;
10464
+ reason?: string | null;
10465
+ result?: import("../integrations/supabase/types").Json | null;
10466
+ status?: string;
10467
+ unit_ref?: string | null;
10468
+ };
10469
+ Relationships: [];
10470
+ };
10225
10471
  logistics_pickup_moments: {
10226
10472
  Row: {
10227
10473
  carrier_ref: string | null;
@@ -11014,6 +11260,24 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
11014
11260
  };
11015
11261
  Relationships: [];
11016
11262
  };
11263
+ logistics_time_settings: {
11264
+ Row: {
11265
+ id: boolean;
11266
+ timezone: string;
11267
+ updated_at: string;
11268
+ };
11269
+ Insert: {
11270
+ id?: boolean;
11271
+ timezone: string;
11272
+ updated_at?: string;
11273
+ };
11274
+ Update: {
11275
+ id?: boolean;
11276
+ timezone?: string;
11277
+ updated_at?: string;
11278
+ };
11279
+ Relationships: [];
11280
+ };
11017
11281
  logistics_variables: {
11018
11282
  Row: {
11019
11283
  created_at: string;
@@ -13404,6 +13668,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
13404
13668
  customer_name: string;
13405
13669
  deleted_at: string | null;
13406
13670
  delivery_date: string | null;
13671
+ floriday_order_group_key: string | null;
13407
13672
  floriday_sales_order_id: string | null;
13408
13673
  id: string;
13409
13674
  invoice_due_at: string | null;
@@ -13431,6 +13696,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
13431
13696
  customer_name?: string;
13432
13697
  deleted_at?: string | null;
13433
13698
  delivery_date?: string | null;
13699
+ floriday_order_group_key?: string | null;
13434
13700
  floriday_sales_order_id?: string | null;
13435
13701
  id?: string;
13436
13702
  invoice_due_at?: string | null;
@@ -13458,6 +13724,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
13458
13724
  customer_name?: string;
13459
13725
  deleted_at?: string | null;
13460
13726
  delivery_date?: string | null;
13727
+ floriday_order_group_key?: string | null;
13461
13728
  floriday_sales_order_id?: string | null;
13462
13729
  id?: string;
13463
13730
  invoice_due_at?: string | null;
@@ -13651,6 +13918,27 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
13651
13918
  };
13652
13919
  Relationships: [];
13653
13920
  };
13921
+ pick_buffer_event_cursor: {
13922
+ Row: {
13923
+ created_at: string;
13924
+ id: boolean;
13925
+ last_event_at: string;
13926
+ updated_at: string;
13927
+ };
13928
+ Insert: {
13929
+ created_at?: string;
13930
+ id?: boolean;
13931
+ last_event_at?: string;
13932
+ updated_at?: string;
13933
+ };
13934
+ Update: {
13935
+ created_at?: string;
13936
+ id?: boolean;
13937
+ last_event_at?: string;
13938
+ updated_at?: string;
13939
+ };
13940
+ Relationships: [];
13941
+ };
13654
13942
  pick_countries: {
13655
13943
  Row: {
13656
13944
  active: boolean;
@@ -19300,6 +19588,36 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
19300
19588
  referencedColumns: ["id"];
19301
19589
  }];
19302
19590
  };
19591
+ voorraad_buffer_state: {
19592
+ Row: {
19593
+ buffer_id: string;
19594
+ buffer_key: string | null;
19595
+ closed_at: string | null;
19596
+ created_at: string;
19597
+ detached_orders: import("../integrations/supabase/types").Json;
19598
+ reason: string | null;
19599
+ updated_at: string;
19600
+ };
19601
+ Insert: {
19602
+ buffer_id: string;
19603
+ buffer_key?: string | null;
19604
+ closed_at?: string | null;
19605
+ created_at?: string;
19606
+ detached_orders?: import("../integrations/supabase/types").Json;
19607
+ reason?: string | null;
19608
+ updated_at?: string;
19609
+ };
19610
+ Update: {
19611
+ buffer_id?: string;
19612
+ buffer_key?: string | null;
19613
+ closed_at?: string | null;
19614
+ created_at?: string;
19615
+ detached_orders?: import("../integrations/supabase/types").Json;
19616
+ reason?: string | null;
19617
+ updated_at?: string;
19618
+ };
19619
+ Relationships: [];
19620
+ };
19303
19621
  voorraad_custom_fields: {
19304
19622
  Row: {
19305
19623
  created_at: string;
@@ -19342,6 +19660,36 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
19342
19660
  };
19343
19661
  Relationships: [];
19344
19662
  };
19663
+ voorraad_logistics_event_log: {
19664
+ Row: {
19665
+ created_at: string;
19666
+ event_id: string;
19667
+ event_type: string;
19668
+ order_ref: string | null;
19669
+ processed_at: string;
19670
+ result: import("../integrations/supabase/types").Json;
19671
+ updated_at: string;
19672
+ };
19673
+ Insert: {
19674
+ created_at?: string;
19675
+ event_id: string;
19676
+ event_type: string;
19677
+ order_ref?: string | null;
19678
+ processed_at?: string;
19679
+ result?: import("../integrations/supabase/types").Json;
19680
+ updated_at?: string;
19681
+ };
19682
+ Update: {
19683
+ created_at?: string;
19684
+ event_id?: string;
19685
+ event_type?: string;
19686
+ order_ref?: string | null;
19687
+ processed_at?: string;
19688
+ result?: import("../integrations/supabase/types").Json;
19689
+ updated_at?: string;
19690
+ };
19691
+ Relationships: [];
19692
+ };
19345
19693
  voorraad_media_upload_failures: {
19346
19694
  Row: {
19347
19695
  action: string;
@@ -22167,6 +22515,17 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
22167
22515
  };
22168
22516
  Returns: boolean;
22169
22517
  };
22518
+ floriday_adopt_connection: {
22519
+ Args: {
22520
+ p_new: string;
22521
+ p_old: string;
22522
+ };
22523
+ Returns: import("../integrations/supabase/types").Json;
22524
+ };
22525
+ floriday_autoheal_connections: {
22526
+ Args: never;
22527
+ Returns: import("../integrations/supabase/types").Json;
22528
+ };
22170
22529
  floriday_capture_stock_snapshot: {
22171
22530
  Args: never;
22172
22531
  Returns: number;
@@ -22224,6 +22583,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
22224
22583
  };
22225
22584
  Returns: undefined;
22226
22585
  };
22586
+ floriday_relink_products: {
22587
+ Args: {
22588
+ p_connection_id?: string;
22589
+ };
22590
+ Returns: import("../integrations/supabase/types").Json;
22591
+ };
22227
22592
  floriday_requeue_dead_letters: {
22228
22593
  Args: {
22229
22594
  p_connection_id?: string;
@@ -22845,6 +23210,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
22845
23210
  };
22846
23211
  Returns: string;
22847
23212
  };
23213
+ logistics_active_layout_method: {
23214
+ Args: never;
23215
+ Returns: string;
23216
+ };
22848
23217
  logistics_active_pick_workdays: {
22849
23218
  Args: never;
22850
23219
  Returns: string[];
@@ -22952,6 +23321,15 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
22952
23321
  };
22953
23322
  Returns: boolean;
22954
23323
  };
23324
+ logistics_buffer_notify: {
23325
+ Args: {
23326
+ p_event_type: string;
23327
+ p_idempotency_key: string;
23328
+ p_order_ref: string;
23329
+ p_payload: import("../integrations/supabase/types").Json;
23330
+ };
23331
+ Returns: string;
23332
+ };
22955
23333
  logistics_buffer_open_key: {
22956
23334
  Args: {
22957
23335
  p_base_key: string;
@@ -23010,6 +23388,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23010
23388
  };
23011
23389
  Returns: string;
23012
23390
  };
23391
+ logistics_cart_checkin_at: {
23392
+ Args: {
23393
+ p_cart_id: string;
23394
+ };
23395
+ Returns: string;
23396
+ };
23013
23397
  logistics_cart_handled: {
23014
23398
  Args: {
23015
23399
  p_cart_index: number;
@@ -23043,10 +23427,22 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23043
23427
  task_status: string;
23044
23428
  }[];
23045
23429
  };
23430
+ logistics_cart_is_full: {
23431
+ Args: {
23432
+ p_cart_id: string;
23433
+ };
23434
+ Returns: boolean;
23435
+ };
23046
23436
  logistics_cart_layout_method: {
23047
23437
  Args: never;
23048
23438
  Returns: import("../integrations/supabase/types").Json;
23049
23439
  };
23440
+ logistics_cart_order_refs: {
23441
+ Args: {
23442
+ p_cart_id: string;
23443
+ };
23444
+ Returns: string[];
23445
+ };
23050
23446
  logistics_cart_plan_overview: {
23051
23447
  Args: {
23052
23448
  p_days?: number;
@@ -23066,6 +23462,18 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23066
23462
  };
23067
23463
  Returns: import("../integrations/supabase/types").Json;
23068
23464
  };
23465
+ logistics_cart_release_reason: {
23466
+ Args: {
23467
+ p_cart_id: string;
23468
+ };
23469
+ Returns: string;
23470
+ };
23471
+ logistics_cart_released: {
23472
+ Args: {
23473
+ p_cart_id: string;
23474
+ };
23475
+ Returns: boolean;
23476
+ };
23069
23477
  logistics_cart_seq: {
23070
23478
  Args: {
23071
23479
  p_order_uuid?: string;
@@ -23219,6 +23627,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23219
23627
  isSetofReturn: false;
23220
23628
  };
23221
23629
  };
23630
+ logistics_cleanup_orphan_print_jobs: {
23631
+ Args: never;
23632
+ Returns: import("../integrations/supabase/types").Json;
23633
+ };
23222
23634
  logistics_complete_task: {
23223
23635
  Args: {
23224
23636
  p_result?: import("../integrations/supabase/types").Json;
@@ -23281,6 +23693,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23281
23693
  station_carts: number;
23282
23694
  }[];
23283
23695
  };
23696
+ logistics_control_complete_cart: {
23697
+ Args: {
23698
+ p_cart_id: string;
23699
+ };
23700
+ Returns: number;
23701
+ };
23284
23702
  logistics_control_scan_approve: {
23285
23703
  Args: {
23286
23704
  p_allow_reprint?: boolean;
@@ -23360,6 +23778,15 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23360
23778
  Args: never;
23361
23779
  Returns: import("../integrations/supabase/types").Json;
23362
23780
  };
23781
+ logistics_day_windows: {
23782
+ Args: {
23783
+ p_day: string;
23784
+ };
23785
+ Returns: {
23786
+ win_end: string;
23787
+ win_start: string;
23788
+ }[];
23789
+ };
23363
23790
  logistics_delay_customer_email: {
23364
23791
  Args: {
23365
23792
  p_customer: string;
@@ -23427,6 +23854,17 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23427
23854
  };
23428
23855
  Returns: import("../integrations/supabase/types").Json;
23429
23856
  };
23857
+ logistics_enqueue_shipping_note_with_slip: {
23858
+ Args: {
23859
+ _cart_id: string;
23860
+ _is_herprint: boolean;
23861
+ _printer_id: string;
23862
+ _queue_item_id: string;
23863
+ _session_id: string;
23864
+ _slip_job_id: string;
23865
+ };
23866
+ Returns: string;
23867
+ };
23430
23868
  logistics_enqueue_sticker_with_slip: {
23431
23869
  Args: {
23432
23870
  _cart_id: string;
@@ -23444,6 +23882,14 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23444
23882
  };
23445
23883
  Returns: string;
23446
23884
  };
23885
+ logistics_ensure_pick_data: {
23886
+ Args: {
23887
+ p_event_id?: string;
23888
+ p_missing?: import("../integrations/supabase/types").Json;
23889
+ p_ref: string;
23890
+ };
23891
+ Returns: import("../integrations/supabase/types").Json;
23892
+ };
23447
23893
  logistics_fail_task: {
23448
23894
  Args: {
23449
23895
  p_error: string;
@@ -23565,6 +24011,38 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23565
24011
  };
23566
24012
  Returns: string;
23567
24013
  };
24014
+ logistics_floriday_gate_status: {
24015
+ Args: never;
24016
+ Returns: import("../integrations/supabase/types").Json;
24017
+ };
24018
+ logistics_floriday_log_refusal: {
24019
+ Args: {
24020
+ _action?: string;
24021
+ _module?: string;
24022
+ _order_ref: string;
24023
+ _reason: string;
24024
+ _shell?: string;
24025
+ };
24026
+ Returns: undefined;
24027
+ };
24028
+ logistics_floriday_log_send: {
24029
+ Args: {
24030
+ _action: string;
24031
+ _detail?: string;
24032
+ _http_status?: number;
24033
+ _module?: string;
24034
+ _ok: boolean;
24035
+ _order_ref: string;
24036
+ _shell?: string;
24037
+ };
24038
+ Returns: undefined;
24039
+ };
24040
+ logistics_floriday_order_approved: {
24041
+ Args: {
24042
+ _order_ref: string;
24043
+ };
24044
+ Returns: boolean;
24045
+ };
23568
24046
  logistics_floriday_prune_pushes: {
23569
24047
  Args: {
23570
24048
  _days?: number;
@@ -23579,6 +24057,20 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23579
24057
  };
23580
24058
  Returns: string;
23581
24059
  };
24060
+ logistics_floriday_status_updates_enabled: {
24061
+ Args: never;
24062
+ Returns: boolean;
24063
+ };
24064
+ logistics_floriday_stock_updates_enabled: {
24065
+ Args: never;
24066
+ Returns: boolean;
24067
+ };
24068
+ logistics_floriday_write_allowed: {
24069
+ Args: {
24070
+ _action: string;
24071
+ };
24072
+ Returns: boolean;
24073
+ };
23582
24074
  logistics_fulfill_barcode_requests: {
23583
24075
  Args: {
23584
24076
  p_limit?: number;
@@ -23599,6 +24091,16 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23599
24091
  };
23600
24092
  Returns: boolean;
23601
24093
  };
24094
+ logistics_layout_method_status: {
24095
+ Args: never;
24096
+ Returns: import("../integrations/supabase/types").Json;
24097
+ };
24098
+ logistics_link_order_items: {
24099
+ Args: {
24100
+ p_order?: string;
24101
+ };
24102
+ Returns: import("../integrations/supabase/types").Json;
24103
+ };
23602
24104
  logistics_live_carriers: {
23603
24105
  Args: {
23604
24106
  p_order_ref: string;
@@ -23611,6 +24113,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23611
24113
  };
23612
24114
  Returns: number;
23613
24115
  };
24116
+ logistics_merge_partial_carts: {
24117
+ Args: {
24118
+ p_limit?: number;
24119
+ };
24120
+ Returns: import("../integrations/supabase/types").Json;
24121
+ };
23614
24122
  logistics_next_workday_date: {
23615
24123
  Args: {
23616
24124
  p_date: string;
@@ -23625,12 +24133,22 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23625
24133
  };
23626
24134
  Returns: string;
23627
24135
  };
24136
+ logistics_normalize_product_label: {
24137
+ Args: {
24138
+ p_label: string;
24139
+ };
24140
+ Returns: string;
24141
+ };
23628
24142
  logistics_not_past: {
23629
24143
  Args: {
23630
24144
  p_ts: string;
23631
24145
  };
23632
24146
  Returns: string;
23633
24147
  };
24148
+ logistics_opening_timezone: {
24149
+ Args: never;
24150
+ Returns: string;
24151
+ };
23634
24152
  logistics_order_cart_count: {
23635
24153
  Args: {
23636
24154
  p_order_ref: string;
@@ -23715,6 +24233,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23715
24233
  Args: never;
23716
24234
  Returns: import("../integrations/supabase/types").Json;
23717
24235
  };
24236
+ logistics_pick_partial_mode: {
24237
+ Args: never;
24238
+ Returns: string;
24239
+ };
23718
24240
  logistics_pick_start_estimate: {
23719
24241
  Args: {
23720
24242
  p_order: import("../integrations/supabase/types").Json;
@@ -23826,6 +24348,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23826
24348
  };
23827
24349
  Returns: number;
23828
24350
  };
24351
+ logistics_prepare_pick_documents: {
24352
+ Args: {
24353
+ p_limit?: number;
24354
+ };
24355
+ Returns: import("../integrations/supabase/types").Json;
24356
+ };
23829
24357
  logistics_prune_buffer_member_queue: {
23830
24358
  Args: never;
23831
24359
  Returns: number;
@@ -23866,12 +24394,30 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23866
24394
  Args: never;
23867
24395
  Returns: import("../integrations/supabase/types").Json;
23868
24396
  };
24397
+ logistics_refresh_pick_queue_status: {
24398
+ Args: {
24399
+ p_ref: string;
24400
+ };
24401
+ Returns: number;
24402
+ };
23869
24403
  logistics_refresh_pickup_moments: {
23870
24404
  Args: {
23871
24405
  p_weeks?: number;
23872
24406
  };
23873
24407
  Returns: import("../integrations/supabase/types").Json;
23874
24408
  };
24409
+ logistics_replan_all: {
24410
+ Args: {
24411
+ p_reason?: string;
24412
+ };
24413
+ Returns: import("../integrations/supabase/types").Json;
24414
+ };
24415
+ logistics_replan_all_force: {
24416
+ Args: {
24417
+ p_reason?: string;
24418
+ };
24419
+ Returns: import("../integrations/supabase/types").Json;
24420
+ };
23875
24421
  logistics_report_delay: {
23876
24422
  Args: {
23877
24423
  p_expected_date?: string;
@@ -23925,6 +24471,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
23925
24471
  };
23926
24472
  Returns: import("../integrations/supabase/types").Json;
23927
24473
  };
24474
+ logistics_resolve_product_id: {
24475
+ Args: {
24476
+ p_label: string;
24477
+ };
24478
+ Returns: string;
24479
+ };
23928
24480
  logistics_resolve_settings: {
23929
24481
  Args: {
23930
24482
  p_config_id: string;
@@ -24010,6 +24562,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
24010
24562
  };
24011
24563
  Returns: string;
24012
24564
  };
24565
+ logistics_shipping_note_follows_slip: {
24566
+ Args: never;
24567
+ Returns: boolean;
24568
+ };
24013
24569
  logistics_shipping_note_from_barcode: {
24014
24570
  Args: {
24015
24571
  p_allow_reprint?: boolean;
@@ -24022,6 +24578,14 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
24022
24578
  Args: never;
24023
24579
  Returns: boolean;
24024
24580
  };
24581
+ logistics_subtract_working_minutes: {
24582
+ Args: {
24583
+ p_deadline: string;
24584
+ p_max_workdays?: number;
24585
+ p_minutes: number;
24586
+ };
24587
+ Returns: import("../integrations/supabase/types").Json;
24588
+ };
24025
24589
  logistics_supersede_stale_tasks: {
24026
24590
  Args: {
24027
24591
  p_keep: string[];
@@ -24058,6 +24622,12 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
24058
24622
  Args: never;
24059
24623
  Returns: string;
24060
24624
  };
24625
+ logistics_timezone_options: {
24626
+ Args: never;
24627
+ Returns: {
24628
+ name: string;
24629
+ }[];
24630
+ };
24061
24631
  logistics_upsert_task: {
24062
24632
  Args: {
24063
24633
  p_buffer_ref: string;
@@ -24077,6 +24647,16 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
24077
24647
  };
24078
24648
  Returns: string;
24079
24649
  };
24650
+ logistics_valid_timezone: {
24651
+ Args: {
24652
+ _tz: string;
24653
+ };
24654
+ Returns: boolean;
24655
+ };
24656
+ logistics_working_hours_status: {
24657
+ Args: never;
24658
+ Returns: import("../integrations/supabase/types").Json;
24659
+ };
24080
24660
  logistics_write_buffer_layer_positions: {
24081
24661
  Args: {
24082
24662
  p_buffer_id: string;
@@ -24242,6 +24822,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
24242
24822
  online: boolean;
24243
24823
  }[];
24244
24824
  };
24825
+ pick_apply_buffer_events: {
24826
+ Args: never;
24827
+ Returns: import("../integrations/supabase/types").Json;
24828
+ };
24245
24829
  pick_available_pick_days: {
24246
24830
  Args: {
24247
24831
  _max_days?: number;
@@ -25518,6 +26102,13 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
25518
26102
  };
25519
26103
  Returns: number;
25520
26104
  };
26105
+ schedule_floriday_catalog_prices_sync: {
26106
+ Args: {
26107
+ p_apikey: string;
26108
+ p_url: string;
26109
+ };
26110
+ Returns: number;
26111
+ };
25521
26112
  schedule_floriday_clock_presales_sync: {
25522
26113
  Args: {
25523
26114
  p_apikey: string;
@@ -25818,6 +26409,10 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
25818
26409
  };
25819
26410
  Returns: undefined;
25820
26411
  };
26412
+ sync_floriday_prices_into_price_groups: {
26413
+ Args: never;
26414
+ Returns: number;
26415
+ };
25821
26416
  sync_layer_stock: {
25822
26417
  Args: {
25823
26418
  p_product_id: string;
@@ -31836,6 +32431,84 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
31836
32431
  referencedColumns: ["id"];
31837
32432
  }];
31838
32433
  };
32434
+ floriday_catalog_prices_cache: {
32435
+ Row: {
32436
+ connection_id: string;
32437
+ created_at: string;
32438
+ currency: string;
32439
+ id: string;
32440
+ is_deleted: boolean;
32441
+ price: number | null;
32442
+ price_group_id: string | null;
32443
+ price_group_name: string | null;
32444
+ price_type: string;
32445
+ raw: import("../integrations/supabase/types").Json | null;
32446
+ sales_unit: string | null;
32447
+ sequence_number: number;
32448
+ supplier_article_code: string | null;
32449
+ supply_line_id: string;
32450
+ synced_at: string;
32451
+ trade_item_id: string | null;
32452
+ updated_at: string;
32453
+ valid_from: string | null;
32454
+ valid_to: string | null;
32455
+ week: number | null;
32456
+ year: number | null;
32457
+ };
32458
+ Insert: {
32459
+ connection_id: string;
32460
+ created_at?: string;
32461
+ currency?: string;
32462
+ id?: string;
32463
+ is_deleted?: boolean;
32464
+ price?: number | null;
32465
+ price_group_id?: string | null;
32466
+ price_group_name?: string | null;
32467
+ price_type?: string;
32468
+ raw?: import("../integrations/supabase/types").Json | null;
32469
+ sales_unit?: string | null;
32470
+ sequence_number?: number;
32471
+ supplier_article_code?: string | null;
32472
+ supply_line_id: string;
32473
+ synced_at?: string;
32474
+ trade_item_id?: string | null;
32475
+ updated_at?: string;
32476
+ valid_from?: string | null;
32477
+ valid_to?: string | null;
32478
+ week?: number | null;
32479
+ year?: number | null;
32480
+ };
32481
+ Update: {
32482
+ connection_id?: string;
32483
+ created_at?: string;
32484
+ currency?: string;
32485
+ id?: string;
32486
+ is_deleted?: boolean;
32487
+ price?: number | null;
32488
+ price_group_id?: string | null;
32489
+ price_group_name?: string | null;
32490
+ price_type?: string;
32491
+ raw?: import("../integrations/supabase/types").Json | null;
32492
+ sales_unit?: string | null;
32493
+ sequence_number?: number;
32494
+ supplier_article_code?: string | null;
32495
+ supply_line_id?: string;
32496
+ synced_at?: string;
32497
+ trade_item_id?: string | null;
32498
+ updated_at?: string;
32499
+ valid_from?: string | null;
32500
+ valid_to?: string | null;
32501
+ week?: number | null;
32502
+ year?: number | null;
32503
+ };
32504
+ Relationships: [{
32505
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
32506
+ columns: ["connection_id"];
32507
+ isOneToOne: false;
32508
+ referencedRelation: "floriday_connections";
32509
+ referencedColumns: ["id"];
32510
+ }];
32511
+ };
31839
32512
  floriday_clock_presales_cache: {
31840
32513
  Row: {
31841
32514
  buyer_organization_id: string | null;
@@ -36102,6 +36775,36 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
36102
36775
  };
36103
36776
  Relationships: [];
36104
36777
  };
36778
+ logistics_floriday_push_refusals: {
36779
+ Row: {
36780
+ action: string | null;
36781
+ created_at: string;
36782
+ id: string;
36783
+ order_ref: string;
36784
+ reason: string;
36785
+ source_module: string | null;
36786
+ source_shell: string | null;
36787
+ };
36788
+ Insert: {
36789
+ action?: string | null;
36790
+ created_at?: string;
36791
+ id?: string;
36792
+ order_ref: string;
36793
+ reason: string;
36794
+ source_module?: string | null;
36795
+ source_shell?: string | null;
36796
+ };
36797
+ Update: {
36798
+ action?: string | null;
36799
+ created_at?: string;
36800
+ id?: string;
36801
+ order_ref?: string;
36802
+ reason?: string;
36803
+ source_module?: string | null;
36804
+ source_shell?: string | null;
36805
+ };
36806
+ Relationships: [];
36807
+ };
36105
36808
  logistics_floriday_pushes: {
36106
36809
  Row: {
36107
36810
  attempts: number;
@@ -36177,6 +36880,42 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
36177
36880
  };
36178
36881
  Relationships: [];
36179
36882
  };
36883
+ logistics_floriday_status_sends: {
36884
+ Row: {
36885
+ action: string;
36886
+ created_at: string;
36887
+ detail: string | null;
36888
+ http_status: number | null;
36889
+ id: string;
36890
+ ok: boolean;
36891
+ order_ref: string;
36892
+ source_module: string | null;
36893
+ source_shell: string | null;
36894
+ };
36895
+ Insert: {
36896
+ action: string;
36897
+ created_at?: string;
36898
+ detail?: string | null;
36899
+ http_status?: number | null;
36900
+ id?: string;
36901
+ ok?: boolean;
36902
+ order_ref: string;
36903
+ source_module?: string | null;
36904
+ source_shell?: string | null;
36905
+ };
36906
+ Update: {
36907
+ action?: string;
36908
+ created_at?: string;
36909
+ detail?: string | null;
36910
+ http_status?: number | null;
36911
+ id?: string;
36912
+ ok?: boolean;
36913
+ order_ref?: string;
36914
+ source_module?: string | null;
36915
+ source_shell?: string | null;
36916
+ };
36917
+ Relationships: [];
36918
+ };
36180
36919
  logistics_formulas: {
36181
36920
  Row: {
36182
36921
  created_at: string;
@@ -36249,6 +36988,108 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
36249
36988
  };
36250
36989
  Relationships: [];
36251
36990
  };
36991
+ logistics_opening_exceptions: {
36992
+ Row: {
36993
+ closes: string | null;
36994
+ created_at: string;
36995
+ day: string;
36996
+ id: string;
36997
+ is_closed: boolean;
36998
+ note: string | null;
36999
+ opens: string | null;
37000
+ };
37001
+ Insert: {
37002
+ closes?: string | null;
37003
+ created_at?: string;
37004
+ day: string;
37005
+ id?: string;
37006
+ is_closed?: boolean;
37007
+ note?: string | null;
37008
+ opens?: string | null;
37009
+ };
37010
+ Update: {
37011
+ closes?: string | null;
37012
+ created_at?: string;
37013
+ day?: string;
37014
+ id?: string;
37015
+ is_closed?: boolean;
37016
+ note?: string | null;
37017
+ opens?: string | null;
37018
+ };
37019
+ Relationships: [];
37020
+ };
37021
+ logistics_opening_hours: {
37022
+ Row: {
37023
+ closes: string;
37024
+ created_at: string;
37025
+ id: string;
37026
+ is_active: boolean;
37027
+ note: string | null;
37028
+ opens: string;
37029
+ weekday: number;
37030
+ };
37031
+ Insert: {
37032
+ closes: string;
37033
+ created_at?: string;
37034
+ id?: string;
37035
+ is_active?: boolean;
37036
+ note?: string | null;
37037
+ opens: string;
37038
+ weekday: number;
37039
+ };
37040
+ Update: {
37041
+ closes?: string;
37042
+ created_at?: string;
37043
+ id?: string;
37044
+ is_active?: boolean;
37045
+ note?: string | null;
37046
+ opens?: string;
37047
+ weekday?: number;
37048
+ };
37049
+ Relationships: [];
37050
+ };
37051
+ logistics_pick_data_requests: {
37052
+ Row: {
37053
+ actions: import("../integrations/supabase/types").Json;
37054
+ created_at: string;
37055
+ event_id: string | null;
37056
+ finished_at: string | null;
37057
+ id: string;
37058
+ missing: import("../integrations/supabase/types").Json;
37059
+ order_ref: string;
37060
+ reason: string | null;
37061
+ result: import("../integrations/supabase/types").Json | null;
37062
+ status: string;
37063
+ unit_ref: string | null;
37064
+ };
37065
+ Insert: {
37066
+ actions?: import("../integrations/supabase/types").Json;
37067
+ created_at?: string;
37068
+ event_id?: string | null;
37069
+ finished_at?: string | null;
37070
+ id?: string;
37071
+ missing?: import("../integrations/supabase/types").Json;
37072
+ order_ref: string;
37073
+ reason?: string | null;
37074
+ result?: import("../integrations/supabase/types").Json | null;
37075
+ status?: string;
37076
+ unit_ref?: string | null;
37077
+ };
37078
+ Update: {
37079
+ actions?: import("../integrations/supabase/types").Json;
37080
+ created_at?: string;
37081
+ event_id?: string | null;
37082
+ finished_at?: string | null;
37083
+ id?: string;
37084
+ missing?: import("../integrations/supabase/types").Json;
37085
+ order_ref?: string;
37086
+ reason?: string | null;
37087
+ result?: import("../integrations/supabase/types").Json | null;
37088
+ status?: string;
37089
+ unit_ref?: string | null;
37090
+ };
37091
+ Relationships: [];
37092
+ };
36252
37093
  logistics_pickup_moments: {
36253
37094
  Row: {
36254
37095
  carrier_ref: string | null;
@@ -37041,6 +37882,24 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
37041
37882
  };
37042
37883
  Relationships: [];
37043
37884
  };
37885
+ logistics_time_settings: {
37886
+ Row: {
37887
+ id: boolean;
37888
+ timezone: string;
37889
+ updated_at: string;
37890
+ };
37891
+ Insert: {
37892
+ id?: boolean;
37893
+ timezone: string;
37894
+ updated_at?: string;
37895
+ };
37896
+ Update: {
37897
+ id?: boolean;
37898
+ timezone?: string;
37899
+ updated_at?: string;
37900
+ };
37901
+ Relationships: [];
37902
+ };
37044
37903
  logistics_variables: {
37045
37904
  Row: {
37046
37905
  created_at: string;
@@ -39431,6 +40290,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
39431
40290
  customer_name: string;
39432
40291
  deleted_at: string | null;
39433
40292
  delivery_date: string | null;
40293
+ floriday_order_group_key: string | null;
39434
40294
  floriday_sales_order_id: string | null;
39435
40295
  id: string;
39436
40296
  invoice_due_at: string | null;
@@ -39458,6 +40318,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
39458
40318
  customer_name?: string;
39459
40319
  deleted_at?: string | null;
39460
40320
  delivery_date?: string | null;
40321
+ floriday_order_group_key?: string | null;
39461
40322
  floriday_sales_order_id?: string | null;
39462
40323
  id?: string;
39463
40324
  invoice_due_at?: string | null;
@@ -39485,6 +40346,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
39485
40346
  customer_name?: string;
39486
40347
  deleted_at?: string | null;
39487
40348
  delivery_date?: string | null;
40349
+ floriday_order_group_key?: string | null;
39488
40350
  floriday_sales_order_id?: string | null;
39489
40351
  id?: string;
39490
40352
  invoice_due_at?: string | null;
@@ -39678,6 +40540,27 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
39678
40540
  };
39679
40541
  Relationships: [];
39680
40542
  };
40543
+ pick_buffer_event_cursor: {
40544
+ Row: {
40545
+ created_at: string;
40546
+ id: boolean;
40547
+ last_event_at: string;
40548
+ updated_at: string;
40549
+ };
40550
+ Insert: {
40551
+ created_at?: string;
40552
+ id?: boolean;
40553
+ last_event_at?: string;
40554
+ updated_at?: string;
40555
+ };
40556
+ Update: {
40557
+ created_at?: string;
40558
+ id?: boolean;
40559
+ last_event_at?: string;
40560
+ updated_at?: string;
40561
+ };
40562
+ Relationships: [];
40563
+ };
39681
40564
  pick_countries: {
39682
40565
  Row: {
39683
40566
  active: boolean;
@@ -45327,6 +46210,36 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
45327
46210
  referencedColumns: ["id"];
45328
46211
  }];
45329
46212
  };
46213
+ voorraad_buffer_state: {
46214
+ Row: {
46215
+ buffer_id: string;
46216
+ buffer_key: string | null;
46217
+ closed_at: string | null;
46218
+ created_at: string;
46219
+ detached_orders: import("../integrations/supabase/types").Json;
46220
+ reason: string | null;
46221
+ updated_at: string;
46222
+ };
46223
+ Insert: {
46224
+ buffer_id: string;
46225
+ buffer_key?: string | null;
46226
+ closed_at?: string | null;
46227
+ created_at?: string;
46228
+ detached_orders?: import("../integrations/supabase/types").Json;
46229
+ reason?: string | null;
46230
+ updated_at?: string;
46231
+ };
46232
+ Update: {
46233
+ buffer_id?: string;
46234
+ buffer_key?: string | null;
46235
+ closed_at?: string | null;
46236
+ created_at?: string;
46237
+ detached_orders?: import("../integrations/supabase/types").Json;
46238
+ reason?: string | null;
46239
+ updated_at?: string;
46240
+ };
46241
+ Relationships: [];
46242
+ };
45330
46243
  voorraad_custom_fields: {
45331
46244
  Row: {
45332
46245
  created_at: string;
@@ -45369,6 +46282,36 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
45369
46282
  };
45370
46283
  Relationships: [];
45371
46284
  };
46285
+ voorraad_logistics_event_log: {
46286
+ Row: {
46287
+ created_at: string;
46288
+ event_id: string;
46289
+ event_type: string;
46290
+ order_ref: string | null;
46291
+ processed_at: string;
46292
+ result: import("../integrations/supabase/types").Json;
46293
+ updated_at: string;
46294
+ };
46295
+ Insert: {
46296
+ created_at?: string;
46297
+ event_id: string;
46298
+ event_type: string;
46299
+ order_ref?: string | null;
46300
+ processed_at?: string;
46301
+ result?: import("../integrations/supabase/types").Json;
46302
+ updated_at?: string;
46303
+ };
46304
+ Update: {
46305
+ created_at?: string;
46306
+ event_id?: string;
46307
+ event_type?: string;
46308
+ order_ref?: string | null;
46309
+ processed_at?: string;
46310
+ result?: import("../integrations/supabase/types").Json;
46311
+ updated_at?: string;
46312
+ };
46313
+ Relationships: [];
46314
+ };
45372
46315
  voorraad_media_upload_failures: {
45373
46316
  Row: {
45374
46317
  action: string;
@@ -48194,6 +49137,17 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
48194
49137
  };
48195
49138
  Returns: boolean;
48196
49139
  };
49140
+ floriday_adopt_connection: {
49141
+ Args: {
49142
+ p_new: string;
49143
+ p_old: string;
49144
+ };
49145
+ Returns: import("../integrations/supabase/types").Json;
49146
+ };
49147
+ floriday_autoheal_connections: {
49148
+ Args: never;
49149
+ Returns: import("../integrations/supabase/types").Json;
49150
+ };
48197
49151
  floriday_capture_stock_snapshot: {
48198
49152
  Args: never;
48199
49153
  Returns: number;
@@ -48251,6 +49205,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
48251
49205
  };
48252
49206
  Returns: undefined;
48253
49207
  };
49208
+ floriday_relink_products: {
49209
+ Args: {
49210
+ p_connection_id?: string;
49211
+ };
49212
+ Returns: import("../integrations/supabase/types").Json;
49213
+ };
48254
49214
  floriday_requeue_dead_letters: {
48255
49215
  Args: {
48256
49216
  p_connection_id?: string;
@@ -48872,6 +49832,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
48872
49832
  };
48873
49833
  Returns: string;
48874
49834
  };
49835
+ logistics_active_layout_method: {
49836
+ Args: never;
49837
+ Returns: string;
49838
+ };
48875
49839
  logistics_active_pick_workdays: {
48876
49840
  Args: never;
48877
49841
  Returns: string[];
@@ -48979,6 +49943,15 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
48979
49943
  };
48980
49944
  Returns: boolean;
48981
49945
  };
49946
+ logistics_buffer_notify: {
49947
+ Args: {
49948
+ p_event_type: string;
49949
+ p_idempotency_key: string;
49950
+ p_order_ref: string;
49951
+ p_payload: import("../integrations/supabase/types").Json;
49952
+ };
49953
+ Returns: string;
49954
+ };
48982
49955
  logistics_buffer_open_key: {
48983
49956
  Args: {
48984
49957
  p_base_key: string;
@@ -49037,6 +50010,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49037
50010
  };
49038
50011
  Returns: string;
49039
50012
  };
50013
+ logistics_cart_checkin_at: {
50014
+ Args: {
50015
+ p_cart_id: string;
50016
+ };
50017
+ Returns: string;
50018
+ };
49040
50019
  logistics_cart_handled: {
49041
50020
  Args: {
49042
50021
  p_cart_index: number;
@@ -49070,10 +50049,22 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49070
50049
  task_status: string;
49071
50050
  }[];
49072
50051
  };
50052
+ logistics_cart_is_full: {
50053
+ Args: {
50054
+ p_cart_id: string;
50055
+ };
50056
+ Returns: boolean;
50057
+ };
49073
50058
  logistics_cart_layout_method: {
49074
50059
  Args: never;
49075
50060
  Returns: import("../integrations/supabase/types").Json;
49076
50061
  };
50062
+ logistics_cart_order_refs: {
50063
+ Args: {
50064
+ p_cart_id: string;
50065
+ };
50066
+ Returns: string[];
50067
+ };
49077
50068
  logistics_cart_plan_overview: {
49078
50069
  Args: {
49079
50070
  p_days?: number;
@@ -49093,6 +50084,18 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49093
50084
  };
49094
50085
  Returns: import("../integrations/supabase/types").Json;
49095
50086
  };
50087
+ logistics_cart_release_reason: {
50088
+ Args: {
50089
+ p_cart_id: string;
50090
+ };
50091
+ Returns: string;
50092
+ };
50093
+ logistics_cart_released: {
50094
+ Args: {
50095
+ p_cart_id: string;
50096
+ };
50097
+ Returns: boolean;
50098
+ };
49096
50099
  logistics_cart_seq: {
49097
50100
  Args: {
49098
50101
  p_order_uuid?: string;
@@ -49246,6 +50249,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49246
50249
  isSetofReturn: false;
49247
50250
  };
49248
50251
  };
50252
+ logistics_cleanup_orphan_print_jobs: {
50253
+ Args: never;
50254
+ Returns: import("../integrations/supabase/types").Json;
50255
+ };
49249
50256
  logistics_complete_task: {
49250
50257
  Args: {
49251
50258
  p_result?: import("../integrations/supabase/types").Json;
@@ -49308,6 +50315,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49308
50315
  station_carts: number;
49309
50316
  }[];
49310
50317
  };
50318
+ logistics_control_complete_cart: {
50319
+ Args: {
50320
+ p_cart_id: string;
50321
+ };
50322
+ Returns: number;
50323
+ };
49311
50324
  logistics_control_scan_approve: {
49312
50325
  Args: {
49313
50326
  p_allow_reprint?: boolean;
@@ -49387,6 +50400,15 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49387
50400
  Args: never;
49388
50401
  Returns: import("../integrations/supabase/types").Json;
49389
50402
  };
50403
+ logistics_day_windows: {
50404
+ Args: {
50405
+ p_day: string;
50406
+ };
50407
+ Returns: {
50408
+ win_end: string;
50409
+ win_start: string;
50410
+ }[];
50411
+ };
49390
50412
  logistics_delay_customer_email: {
49391
50413
  Args: {
49392
50414
  p_customer: string;
@@ -49454,6 +50476,17 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49454
50476
  };
49455
50477
  Returns: import("../integrations/supabase/types").Json;
49456
50478
  };
50479
+ logistics_enqueue_shipping_note_with_slip: {
50480
+ Args: {
50481
+ _cart_id: string;
50482
+ _is_herprint: boolean;
50483
+ _printer_id: string;
50484
+ _queue_item_id: string;
50485
+ _session_id: string;
50486
+ _slip_job_id: string;
50487
+ };
50488
+ Returns: string;
50489
+ };
49457
50490
  logistics_enqueue_sticker_with_slip: {
49458
50491
  Args: {
49459
50492
  _cart_id: string;
@@ -49471,6 +50504,14 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49471
50504
  };
49472
50505
  Returns: string;
49473
50506
  };
50507
+ logistics_ensure_pick_data: {
50508
+ Args: {
50509
+ p_event_id?: string;
50510
+ p_missing?: import("../integrations/supabase/types").Json;
50511
+ p_ref: string;
50512
+ };
50513
+ Returns: import("../integrations/supabase/types").Json;
50514
+ };
49474
50515
  logistics_fail_task: {
49475
50516
  Args: {
49476
50517
  p_error: string;
@@ -49592,6 +50633,38 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49592
50633
  };
49593
50634
  Returns: string;
49594
50635
  };
50636
+ logistics_floriday_gate_status: {
50637
+ Args: never;
50638
+ Returns: import("../integrations/supabase/types").Json;
50639
+ };
50640
+ logistics_floriday_log_refusal: {
50641
+ Args: {
50642
+ _action?: string;
50643
+ _module?: string;
50644
+ _order_ref: string;
50645
+ _reason: string;
50646
+ _shell?: string;
50647
+ };
50648
+ Returns: undefined;
50649
+ };
50650
+ logistics_floriday_log_send: {
50651
+ Args: {
50652
+ _action: string;
50653
+ _detail?: string;
50654
+ _http_status?: number;
50655
+ _module?: string;
50656
+ _ok: boolean;
50657
+ _order_ref: string;
50658
+ _shell?: string;
50659
+ };
50660
+ Returns: undefined;
50661
+ };
50662
+ logistics_floriday_order_approved: {
50663
+ Args: {
50664
+ _order_ref: string;
50665
+ };
50666
+ Returns: boolean;
50667
+ };
49595
50668
  logistics_floriday_prune_pushes: {
49596
50669
  Args: {
49597
50670
  _days?: number;
@@ -49606,6 +50679,20 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49606
50679
  };
49607
50680
  Returns: string;
49608
50681
  };
50682
+ logistics_floriday_status_updates_enabled: {
50683
+ Args: never;
50684
+ Returns: boolean;
50685
+ };
50686
+ logistics_floriday_stock_updates_enabled: {
50687
+ Args: never;
50688
+ Returns: boolean;
50689
+ };
50690
+ logistics_floriday_write_allowed: {
50691
+ Args: {
50692
+ _action: string;
50693
+ };
50694
+ Returns: boolean;
50695
+ };
49609
50696
  logistics_fulfill_barcode_requests: {
49610
50697
  Args: {
49611
50698
  p_limit?: number;
@@ -49626,6 +50713,16 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49626
50713
  };
49627
50714
  Returns: boolean;
49628
50715
  };
50716
+ logistics_layout_method_status: {
50717
+ Args: never;
50718
+ Returns: import("../integrations/supabase/types").Json;
50719
+ };
50720
+ logistics_link_order_items: {
50721
+ Args: {
50722
+ p_order?: string;
50723
+ };
50724
+ Returns: import("../integrations/supabase/types").Json;
50725
+ };
49629
50726
  logistics_live_carriers: {
49630
50727
  Args: {
49631
50728
  p_order_ref: string;
@@ -49638,6 +50735,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49638
50735
  };
49639
50736
  Returns: number;
49640
50737
  };
50738
+ logistics_merge_partial_carts: {
50739
+ Args: {
50740
+ p_limit?: number;
50741
+ };
50742
+ Returns: import("../integrations/supabase/types").Json;
50743
+ };
49641
50744
  logistics_next_workday_date: {
49642
50745
  Args: {
49643
50746
  p_date: string;
@@ -49652,12 +50755,22 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49652
50755
  };
49653
50756
  Returns: string;
49654
50757
  };
50758
+ logistics_normalize_product_label: {
50759
+ Args: {
50760
+ p_label: string;
50761
+ };
50762
+ Returns: string;
50763
+ };
49655
50764
  logistics_not_past: {
49656
50765
  Args: {
49657
50766
  p_ts: string;
49658
50767
  };
49659
50768
  Returns: string;
49660
50769
  };
50770
+ logistics_opening_timezone: {
50771
+ Args: never;
50772
+ Returns: string;
50773
+ };
49661
50774
  logistics_order_cart_count: {
49662
50775
  Args: {
49663
50776
  p_order_ref: string;
@@ -49742,6 +50855,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49742
50855
  Args: never;
49743
50856
  Returns: import("../integrations/supabase/types").Json;
49744
50857
  };
50858
+ logistics_pick_partial_mode: {
50859
+ Args: never;
50860
+ Returns: string;
50861
+ };
49745
50862
  logistics_pick_start_estimate: {
49746
50863
  Args: {
49747
50864
  p_order: import("../integrations/supabase/types").Json;
@@ -49853,6 +50970,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49853
50970
  };
49854
50971
  Returns: number;
49855
50972
  };
50973
+ logistics_prepare_pick_documents: {
50974
+ Args: {
50975
+ p_limit?: number;
50976
+ };
50977
+ Returns: import("../integrations/supabase/types").Json;
50978
+ };
49856
50979
  logistics_prune_buffer_member_queue: {
49857
50980
  Args: never;
49858
50981
  Returns: number;
@@ -49893,12 +51016,30 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49893
51016
  Args: never;
49894
51017
  Returns: import("../integrations/supabase/types").Json;
49895
51018
  };
51019
+ logistics_refresh_pick_queue_status: {
51020
+ Args: {
51021
+ p_ref: string;
51022
+ };
51023
+ Returns: number;
51024
+ };
49896
51025
  logistics_refresh_pickup_moments: {
49897
51026
  Args: {
49898
51027
  p_weeks?: number;
49899
51028
  };
49900
51029
  Returns: import("../integrations/supabase/types").Json;
49901
51030
  };
51031
+ logistics_replan_all: {
51032
+ Args: {
51033
+ p_reason?: string;
51034
+ };
51035
+ Returns: import("../integrations/supabase/types").Json;
51036
+ };
51037
+ logistics_replan_all_force: {
51038
+ Args: {
51039
+ p_reason?: string;
51040
+ };
51041
+ Returns: import("../integrations/supabase/types").Json;
51042
+ };
49902
51043
  logistics_report_delay: {
49903
51044
  Args: {
49904
51045
  p_expected_date?: string;
@@ -49952,6 +51093,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
49952
51093
  };
49953
51094
  Returns: import("../integrations/supabase/types").Json;
49954
51095
  };
51096
+ logistics_resolve_product_id: {
51097
+ Args: {
51098
+ p_label: string;
51099
+ };
51100
+ Returns: string;
51101
+ };
49955
51102
  logistics_resolve_settings: {
49956
51103
  Args: {
49957
51104
  p_config_id: string;
@@ -50037,6 +51184,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50037
51184
  };
50038
51185
  Returns: string;
50039
51186
  };
51187
+ logistics_shipping_note_follows_slip: {
51188
+ Args: never;
51189
+ Returns: boolean;
51190
+ };
50040
51191
  logistics_shipping_note_from_barcode: {
50041
51192
  Args: {
50042
51193
  p_allow_reprint?: boolean;
@@ -50049,6 +51200,14 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50049
51200
  Args: never;
50050
51201
  Returns: boolean;
50051
51202
  };
51203
+ logistics_subtract_working_minutes: {
51204
+ Args: {
51205
+ p_deadline: string;
51206
+ p_max_workdays?: number;
51207
+ p_minutes: number;
51208
+ };
51209
+ Returns: import("../integrations/supabase/types").Json;
51210
+ };
50052
51211
  logistics_supersede_stale_tasks: {
50053
51212
  Args: {
50054
51213
  p_keep: string[];
@@ -50085,6 +51244,12 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50085
51244
  Args: never;
50086
51245
  Returns: string;
50087
51246
  };
51247
+ logistics_timezone_options: {
51248
+ Args: never;
51249
+ Returns: {
51250
+ name: string;
51251
+ }[];
51252
+ };
50088
51253
  logistics_upsert_task: {
50089
51254
  Args: {
50090
51255
  p_buffer_ref: string;
@@ -50104,6 +51269,16 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50104
51269
  };
50105
51270
  Returns: string;
50106
51271
  };
51272
+ logistics_valid_timezone: {
51273
+ Args: {
51274
+ _tz: string;
51275
+ };
51276
+ Returns: boolean;
51277
+ };
51278
+ logistics_working_hours_status: {
51279
+ Args: never;
51280
+ Returns: import("../integrations/supabase/types").Json;
51281
+ };
50107
51282
  logistics_write_buffer_layer_positions: {
50108
51283
  Args: {
50109
51284
  p_buffer_id: string;
@@ -50269,6 +51444,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
50269
51444
  online: boolean;
50270
51445
  }[];
50271
51446
  };
51447
+ pick_apply_buffer_events: {
51448
+ Args: never;
51449
+ Returns: import("../integrations/supabase/types").Json;
51450
+ };
50272
51451
  pick_available_pick_days: {
50273
51452
  Args: {
50274
51453
  _max_days?: number;
@@ -51545,6 +52724,13 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
51545
52724
  };
51546
52725
  Returns: number;
51547
52726
  };
52727
+ schedule_floriday_catalog_prices_sync: {
52728
+ Args: {
52729
+ p_apikey: string;
52730
+ p_url: string;
52731
+ };
52732
+ Returns: number;
52733
+ };
51548
52734
  schedule_floriday_clock_presales_sync: {
51549
52735
  Args: {
51550
52736
  p_apikey: string;
@@ -51845,6 +53031,10 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
51845
53031
  };
51846
53032
  Returns: undefined;
51847
53033
  };
53034
+ sync_floriday_prices_into_price_groups: {
53035
+ Args: never;
53036
+ Returns: number;
53037
+ };
51848
53038
  sync_layer_stock: {
51849
53039
  Args: {
51850
53040
  p_product_id: string;