@flowselections/floriday-verkoop-module 1.0.100 → 1.0.104

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 (33) hide show
  1. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/CreateOrderPage.js +44 -4
  3. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  4. package/dist-lib/components/verkoop/EditLocalOrderDialog.js +11 -5
  5. package/dist-lib/components/verkoop/OrderLinePackingCard.d.ts.map +1 -1
  6. package/dist-lib/components/verkoop/OrderLinePackingCard.js +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +956 -15
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/create-order.functions.d.ts +17 -0
  10. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/create-order.functions.js +95 -8
  12. package/dist-lib/lib/customer-stickers.check.d.ts +2 -0
  13. package/dist-lib/lib/customer-stickers.check.d.ts.map +1 -0
  14. package/dist-lib/lib/customer-stickers.check.js +19 -0
  15. package/dist-lib/lib/customer-stickers.d.ts +14 -0
  16. package/dist-lib/lib/customer-stickers.d.ts.map +1 -0
  17. package/dist-lib/lib/customer-stickers.js +19 -0
  18. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floriday-mirror.functions.js +60 -77
  20. package/dist-lib/lib/floriday-promote-customer.check.d.ts +2 -0
  21. package/dist-lib/lib/floriday-promote-customer.check.d.ts.map +1 -0
  22. package/dist-lib/lib/floriday-promote-customer.check.js +28 -0
  23. package/dist-lib/lib/floriday-promote-customer.d.ts +12 -0
  24. package/dist-lib/lib/floriday-promote-customer.d.ts.map +1 -0
  25. package/dist-lib/lib/floriday-promote-customer.js +43 -0
  26. package/dist-lib/lib/module-version.d.ts +1 -1
  27. package/dist-lib/lib/module-version.d.ts.map +1 -1
  28. package/dist-lib/lib/module-version.js +1 -1
  29. package/dist-lib/lib/order-item-packing.functions.d.ts +2 -0
  30. package/dist-lib/lib/order-item-packing.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/order-item-packing.functions.js +2 -1
  32. package/package.json +9 -4
  33. package/schema/verkoop.sql +1939 -0
@@ -606,24 +606,36 @@ export type Database = {
606
606
  ai_modules: {
607
607
  Row: {
608
608
  ai_enabled: boolean;
609
+ ai_source: string;
609
610
  created_at: string;
611
+ declared_ai: boolean;
610
612
  id: string;
613
+ is_in_use: boolean;
614
+ last_declared_at: string | null;
611
615
  module_key: string;
612
616
  module_name: string;
613
617
  updated_at: string;
614
618
  };
615
619
  Insert: {
616
620
  ai_enabled?: boolean;
621
+ ai_source?: string;
617
622
  created_at?: string;
623
+ declared_ai?: boolean;
618
624
  id?: string;
625
+ is_in_use?: boolean;
626
+ last_declared_at?: string | null;
619
627
  module_key: string;
620
628
  module_name: string;
621
629
  updated_at?: string;
622
630
  };
623
631
  Update: {
624
632
  ai_enabled?: boolean;
633
+ ai_source?: string;
625
634
  created_at?: string;
635
+ declared_ai?: boolean;
626
636
  id?: string;
637
+ is_in_use?: boolean;
638
+ last_declared_at?: string | null;
627
639
  module_key?: string;
628
640
  module_name?: string;
629
641
  updated_at?: string;
@@ -2235,6 +2247,50 @@ export type Database = {
2235
2247
  }
2236
2248
  ];
2237
2249
  };
2250
+ customer_match_suggestions: {
2251
+ Row: {
2252
+ created_at: string;
2253
+ customer_id: string;
2254
+ decided_at: string | null;
2255
+ decided_by: string | null;
2256
+ floriday_organization_id: string;
2257
+ id: string;
2258
+ reason: string;
2259
+ status: string;
2260
+ updated_at: string;
2261
+ };
2262
+ Insert: {
2263
+ created_at?: string;
2264
+ customer_id: string;
2265
+ decided_at?: string | null;
2266
+ decided_by?: string | null;
2267
+ floriday_organization_id: string;
2268
+ id?: string;
2269
+ reason: string;
2270
+ status?: string;
2271
+ updated_at?: string;
2272
+ };
2273
+ Update: {
2274
+ created_at?: string;
2275
+ customer_id?: string;
2276
+ decided_at?: string | null;
2277
+ decided_by?: string | null;
2278
+ floriday_organization_id?: string;
2279
+ id?: string;
2280
+ reason?: string;
2281
+ status?: string;
2282
+ updated_at?: string;
2283
+ };
2284
+ Relationships: [
2285
+ {
2286
+ foreignKeyName: "customer_match_suggestions_customer_id_fkey";
2287
+ columns: ["customer_id"];
2288
+ isOneToOne: false;
2289
+ referencedRelation: "customers";
2290
+ referencedColumns: ["id"];
2291
+ }
2292
+ ];
2293
+ };
2238
2294
  customer_notes: {
2239
2295
  Row: {
2240
2296
  created_at: string;
@@ -3770,6 +3826,8 @@ export type Database = {
3770
3826
  orientatie: Database["public"]["Enums"]["doc_orientation"];
3771
3827
  page_settings: Json;
3772
3828
  papierformaat: string;
3829
+ standaard_sleutel: string | null;
3830
+ standaard_versie: number | null;
3773
3831
  systeem: boolean;
3774
3832
  thumbnail_url: string | null;
3775
3833
  updated_at: string;
@@ -3795,6 +3853,8 @@ export type Database = {
3795
3853
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3796
3854
  page_settings?: Json;
3797
3855
  papierformaat?: string;
3856
+ standaard_sleutel?: string | null;
3857
+ standaard_versie?: number | null;
3798
3858
  systeem?: boolean;
3799
3859
  thumbnail_url?: string | null;
3800
3860
  updated_at?: string;
@@ -3820,6 +3880,8 @@ export type Database = {
3820
3880
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3821
3881
  page_settings?: Json;
3822
3882
  papierformaat?: string;
3883
+ standaard_sleutel?: string | null;
3884
+ standaard_versie?: number | null;
3823
3885
  systeem?: boolean;
3824
3886
  thumbnail_url?: string | null;
3825
3887
  updated_at?: string;
@@ -6766,9 +6828,16 @@ export type Database = {
6766
6828
  id: string;
6767
6829
  is_active: boolean;
6768
6830
  label: string;
6831
+ organization_fetched_at: string | null;
6832
+ organization_id: string | null;
6833
+ organization_mailing_address: Json | null;
6769
6834
  organization_name: string | null;
6835
+ organization_physical_address: Json | null;
6770
6836
  preferred_warehouse_id: string | null;
6771
6837
  preferred_warehouse_name: string | null;
6838
+ read_only: boolean;
6839
+ read_only_changed_at: string | null;
6840
+ read_only_changed_by: string | null;
6772
6841
  token_expires_at: string | null;
6773
6842
  updated_at: string;
6774
6843
  };
@@ -6781,9 +6850,16 @@ export type Database = {
6781
6850
  id?: string;
6782
6851
  is_active?: boolean;
6783
6852
  label?: string;
6853
+ organization_fetched_at?: string | null;
6854
+ organization_id?: string | null;
6855
+ organization_mailing_address?: Json | null;
6784
6856
  organization_name?: string | null;
6857
+ organization_physical_address?: Json | null;
6785
6858
  preferred_warehouse_id?: string | null;
6786
6859
  preferred_warehouse_name?: string | null;
6860
+ read_only?: boolean;
6861
+ read_only_changed_at?: string | null;
6862
+ read_only_changed_by?: string | null;
6787
6863
  token_expires_at?: string | null;
6788
6864
  updated_at?: string;
6789
6865
  };
@@ -6796,9 +6872,16 @@ export type Database = {
6796
6872
  id?: string;
6797
6873
  is_active?: boolean;
6798
6874
  label?: string;
6875
+ organization_fetched_at?: string | null;
6876
+ organization_id?: string | null;
6877
+ organization_mailing_address?: Json | null;
6799
6878
  organization_name?: string | null;
6879
+ organization_physical_address?: Json | null;
6800
6880
  preferred_warehouse_id?: string | null;
6801
6881
  preferred_warehouse_name?: string | null;
6882
+ read_only?: boolean;
6883
+ read_only_changed_at?: string | null;
6884
+ read_only_changed_by?: string | null;
6802
6885
  token_expires_at?: string | null;
6803
6886
  updated_at?: string;
6804
6887
  };
@@ -7056,6 +7139,44 @@ export type Database = {
7056
7139
  }
7057
7140
  ];
7058
7141
  };
7142
+ floriday_customer_offers_cache: {
7143
+ Row: {
7144
+ connection_id: string;
7145
+ data: Json;
7146
+ fetched_at: string;
7147
+ floriday_id: string;
7148
+ is_deleted: boolean;
7149
+ sequence_number: number;
7150
+ updated_at: string;
7151
+ };
7152
+ Insert: {
7153
+ connection_id: string;
7154
+ data?: Json;
7155
+ fetched_at?: string;
7156
+ floriday_id: string;
7157
+ is_deleted?: boolean;
7158
+ sequence_number?: number;
7159
+ updated_at?: string;
7160
+ };
7161
+ Update: {
7162
+ connection_id?: string;
7163
+ data?: Json;
7164
+ fetched_at?: string;
7165
+ floriday_id?: string;
7166
+ is_deleted?: boolean;
7167
+ sequence_number?: number;
7168
+ updated_at?: string;
7169
+ };
7170
+ Relationships: [
7171
+ {
7172
+ foreignKeyName: "floriday_customer_offers_cache_connection_id_fkey";
7173
+ columns: ["connection_id"];
7174
+ isOneToOne: false;
7175
+ referencedRelation: "floriday_connections";
7176
+ referencedColumns: ["id"];
7177
+ }
7178
+ ];
7179
+ };
7059
7180
  floriday_customer_sticker_pdfs_cache: {
7060
7181
  Row: {
7061
7182
  byte_size: number | null;
@@ -7613,8 +7734,14 @@ export type Database = {
7613
7734
  created_at: string;
7614
7735
  desired_availability: boolean;
7615
7736
  desired_quantity: number;
7737
+ erp_leading: boolean | null;
7738
+ erp_leading_at: string | null;
7739
+ first_positive_published_at: string | null;
7616
7740
  fixed_quantity: number | null;
7741
+ floriday_offer_forms: Json | null;
7617
7742
  floriday_trade_item_id: string | null;
7743
+ follow_floriday_at: string | null;
7744
+ follow_floriday_result: string | null;
7618
7745
  id: string;
7619
7746
  last_confirmed_at: string | null;
7620
7747
  last_enqueued_at: string | null;
@@ -7645,8 +7772,14 @@ export type Database = {
7645
7772
  created_at?: string;
7646
7773
  desired_availability?: boolean;
7647
7774
  desired_quantity?: number;
7775
+ erp_leading?: boolean | null;
7776
+ erp_leading_at?: string | null;
7777
+ first_positive_published_at?: string | null;
7648
7778
  fixed_quantity?: number | null;
7779
+ floriday_offer_forms?: Json | null;
7649
7780
  floriday_trade_item_id?: string | null;
7781
+ follow_floriday_at?: string | null;
7782
+ follow_floriday_result?: string | null;
7650
7783
  id?: string;
7651
7784
  last_confirmed_at?: string | null;
7652
7785
  last_enqueued_at?: string | null;
@@ -7677,8 +7810,14 @@ export type Database = {
7677
7810
  created_at?: string;
7678
7811
  desired_availability?: boolean;
7679
7812
  desired_quantity?: number;
7813
+ erp_leading?: boolean | null;
7814
+ erp_leading_at?: string | null;
7815
+ first_positive_published_at?: string | null;
7680
7816
  fixed_quantity?: number | null;
7817
+ floriday_offer_forms?: Json | null;
7681
7818
  floriday_trade_item_id?: string | null;
7819
+ follow_floriday_at?: string | null;
7820
+ follow_floriday_result?: string | null;
7682
7821
  id?: string;
7683
7822
  last_confirmed_at?: string | null;
7684
7823
  last_enqueued_at?: string | null;
@@ -8496,33 +8635,45 @@ export type Database = {
8496
8635
  };
8497
8636
  floriday_sync_state: {
8498
8637
  Row: {
8638
+ backfill_done_at: string | null;
8639
+ backfill_started_at: string | null;
8640
+ backfill_target_sequence: number | null;
8499
8641
  connection_id: string;
8500
8642
  entity_type: string;
8501
8643
  last_error: string | null;
8502
8644
  last_items_processed: number | null;
8503
8645
  last_max_sequence_seen: number | null;
8646
+ last_rate_limited_at: string | null;
8504
8647
  last_sequence_number: number;
8505
8648
  last_success_at: string | null;
8506
8649
  last_synced_at: string | null;
8507
8650
  updated_at: string;
8508
8651
  };
8509
8652
  Insert: {
8653
+ backfill_done_at?: string | null;
8654
+ backfill_started_at?: string | null;
8655
+ backfill_target_sequence?: number | null;
8510
8656
  connection_id: string;
8511
8657
  entity_type: string;
8512
8658
  last_error?: string | null;
8513
8659
  last_items_processed?: number | null;
8514
8660
  last_max_sequence_seen?: number | null;
8661
+ last_rate_limited_at?: string | null;
8515
8662
  last_sequence_number?: number;
8516
8663
  last_success_at?: string | null;
8517
8664
  last_synced_at?: string | null;
8518
8665
  updated_at?: string;
8519
8666
  };
8520
8667
  Update: {
8668
+ backfill_done_at?: string | null;
8669
+ backfill_started_at?: string | null;
8670
+ backfill_target_sequence?: number | null;
8521
8671
  connection_id?: string;
8522
8672
  entity_type?: string;
8523
8673
  last_error?: string | null;
8524
8674
  last_items_processed?: number | null;
8525
8675
  last_max_sequence_seen?: number | null;
8676
+ last_rate_limited_at?: string | null;
8526
8677
  last_sequence_number?: number;
8527
8678
  last_success_at?: string | null;
8528
8679
  last_synced_at?: string | null;
@@ -8538,6 +8689,116 @@ export type Database = {
8538
8689
  }
8539
8690
  ];
8540
8691
  };
8692
+ floriday_takeover_items: {
8693
+ Row: {
8694
+ created_at: string;
8695
+ created_product: boolean;
8696
+ id: string;
8697
+ new_price: number | null;
8698
+ new_stock: number | null;
8699
+ offer_forms: Json | null;
8700
+ old_erp_leading: boolean | null;
8701
+ old_offer_forms: Json | null;
8702
+ old_price: number | null;
8703
+ old_stock: number | null;
8704
+ price_source: string | null;
8705
+ product_id: string;
8706
+ run_id: string;
8707
+ stock_source: string | null;
8708
+ trade_item_id: string;
8709
+ undo_skipped_reason: string | null;
8710
+ undone: boolean;
8711
+ };
8712
+ Insert: {
8713
+ created_at?: string;
8714
+ created_product?: boolean;
8715
+ id?: string;
8716
+ new_price?: number | null;
8717
+ new_stock?: number | null;
8718
+ offer_forms?: Json | null;
8719
+ old_erp_leading?: boolean | null;
8720
+ old_offer_forms?: Json | null;
8721
+ old_price?: number | null;
8722
+ old_stock?: number | null;
8723
+ price_source?: string | null;
8724
+ product_id: string;
8725
+ run_id: string;
8726
+ stock_source?: string | null;
8727
+ trade_item_id: string;
8728
+ undo_skipped_reason?: string | null;
8729
+ undone?: boolean;
8730
+ };
8731
+ Update: {
8732
+ created_at?: string;
8733
+ created_product?: boolean;
8734
+ id?: string;
8735
+ new_price?: number | null;
8736
+ new_stock?: number | null;
8737
+ offer_forms?: Json | null;
8738
+ old_erp_leading?: boolean | null;
8739
+ old_offer_forms?: Json | null;
8740
+ old_price?: number | null;
8741
+ old_stock?: number | null;
8742
+ price_source?: string | null;
8743
+ product_id?: string;
8744
+ run_id?: string;
8745
+ stock_source?: string | null;
8746
+ trade_item_id?: string;
8747
+ undo_skipped_reason?: string | null;
8748
+ undone?: boolean;
8749
+ };
8750
+ Relationships: [
8751
+ {
8752
+ foreignKeyName: "floriday_takeover_items_run_id_fkey";
8753
+ columns: ["run_id"];
8754
+ isOneToOne: false;
8755
+ referencedRelation: "floriday_takeover_runs";
8756
+ referencedColumns: ["id"];
8757
+ }
8758
+ ];
8759
+ };
8760
+ floriday_takeover_runs: {
8761
+ Row: {
8762
+ connection_id: string;
8763
+ created_at: string;
8764
+ created_products: number;
8765
+ id: string;
8766
+ status: string;
8767
+ total_items: number;
8768
+ undo_skipped_items: number;
8769
+ undone_at: string | null;
8770
+ undone_items: number;
8771
+ updated_at: string;
8772
+ user_id: string;
8773
+ };
8774
+ Insert: {
8775
+ connection_id: string;
8776
+ created_at?: string;
8777
+ created_products?: number;
8778
+ id?: string;
8779
+ status?: string;
8780
+ total_items?: number;
8781
+ undo_skipped_items?: number;
8782
+ undone_at?: string | null;
8783
+ undone_items?: number;
8784
+ updated_at?: string;
8785
+ user_id: string;
8786
+ };
8787
+ Update: {
8788
+ connection_id?: string;
8789
+ created_at?: string;
8790
+ created_products?: number;
8791
+ id?: string;
8792
+ status?: string;
8793
+ total_items?: number;
8794
+ undo_skipped_items?: number;
8795
+ undone_at?: string | null;
8796
+ undone_items?: number;
8797
+ updated_at?: string;
8798
+ user_id?: string;
8799
+ };
8800
+ Relationships: [];
8801
+ };
8541
8802
  floriday_token_refresh_log: {
8542
8803
  Row: {
8543
8804
  attempted_at: string;
@@ -11183,6 +11444,36 @@ export type Database = {
11183
11444
  };
11184
11445
  Relationships: [];
11185
11446
  };
11447
+ layout_auto_acties: {
11448
+ Row: {
11449
+ actie: string;
11450
+ created_at: string;
11451
+ detail: string;
11452
+ documenttype: string | null;
11453
+ id: string;
11454
+ layout_id: string | null;
11455
+ printer_id: string | null;
11456
+ };
11457
+ Insert: {
11458
+ actie: string;
11459
+ created_at?: string;
11460
+ detail?: string;
11461
+ documenttype?: string | null;
11462
+ id?: string;
11463
+ layout_id?: string | null;
11464
+ printer_id?: string | null;
11465
+ };
11466
+ Update: {
11467
+ actie?: string;
11468
+ created_at?: string;
11469
+ detail?: string;
11470
+ documenttype?: string | null;
11471
+ id?: string;
11472
+ layout_id?: string | null;
11473
+ printer_id?: string | null;
11474
+ };
11475
+ Relationships: [];
11476
+ };
11186
11477
  layout_logos: {
11187
11478
  Row: {
11188
11479
  bestand_url: string;
@@ -11240,6 +11531,51 @@ export type Database = {
11240
11531
  };
11241
11532
  Relationships: [];
11242
11533
  };
11534
+ layout_standaarden: {
11535
+ Row: {
11536
+ breedte_mm: number;
11537
+ config: Json;
11538
+ created_at: string;
11539
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
11540
+ hoogte_mm: number;
11541
+ naam: string;
11542
+ omschrijving: string;
11543
+ page_settings: Json;
11544
+ papierformaat: string;
11545
+ sleutel: string;
11546
+ updated_at: string;
11547
+ versie: number;
11548
+ };
11549
+ Insert: {
11550
+ breedte_mm?: number;
11551
+ config?: Json;
11552
+ created_at?: string;
11553
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
11554
+ hoogte_mm?: number;
11555
+ naam: string;
11556
+ omschrijving?: string;
11557
+ page_settings?: Json;
11558
+ papierformaat?: string;
11559
+ sleutel: string;
11560
+ updated_at?: string;
11561
+ versie: number;
11562
+ };
11563
+ Update: {
11564
+ breedte_mm?: number;
11565
+ config?: Json;
11566
+ created_at?: string;
11567
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
11568
+ hoogte_mm?: number;
11569
+ naam?: string;
11570
+ omschrijving?: string;
11571
+ page_settings?: Json;
11572
+ papierformaat?: string;
11573
+ sleutel?: string;
11574
+ updated_at?: string;
11575
+ versie?: number;
11576
+ };
11577
+ Relationships: [];
11578
+ };
11243
11579
  leave_requests: {
11244
11580
  Row: {
11245
11581
  cancellation_requested_at: string | null;
@@ -14625,6 +14961,45 @@ export type Database = {
14625
14961
  };
14626
14962
  Relationships: [];
14627
14963
  };
14964
+ mailbox_ai_runs: {
14965
+ Row: {
14966
+ error: string | null;
14967
+ finished_at: string | null;
14968
+ id: string;
14969
+ input_tokens: number | null;
14970
+ is_test: boolean;
14971
+ message_id: string | null;
14972
+ ok: boolean | null;
14973
+ output_tokens: number | null;
14974
+ started_at: string;
14975
+ trigger: string;
14976
+ };
14977
+ Insert: {
14978
+ error?: string | null;
14979
+ finished_at?: string | null;
14980
+ id?: string;
14981
+ input_tokens?: number | null;
14982
+ is_test?: boolean;
14983
+ message_id?: string | null;
14984
+ ok?: boolean | null;
14985
+ output_tokens?: number | null;
14986
+ started_at?: string;
14987
+ trigger?: string;
14988
+ };
14989
+ Update: {
14990
+ error?: string | null;
14991
+ finished_at?: string | null;
14992
+ id?: string;
14993
+ input_tokens?: number | null;
14994
+ is_test?: boolean;
14995
+ message_id?: string | null;
14996
+ ok?: boolean | null;
14997
+ output_tokens?: number | null;
14998
+ started_at?: string;
14999
+ trigger?: string;
15000
+ };
15001
+ Relationships: [];
15002
+ };
14628
15003
  mailbox_ai_settings: {
14629
15004
  Row: {
14630
15005
  active_goal_key: string | null;
@@ -14658,6 +15033,78 @@ export type Database = {
14658
15033
  };
14659
15034
  Relationships: [];
14660
15035
  };
15036
+ mailbox_filter_settings: {
15037
+ Row: {
15038
+ analyze_unknown_with_signals: boolean;
15039
+ conf_green: number;
15040
+ conf_orange: number;
15041
+ created_at: string;
15042
+ domain_match: boolean;
15043
+ duplicate_days: number;
15044
+ id: string;
15045
+ max_agent_reparse: number;
15046
+ max_ai_per_day: number;
15047
+ max_ai_per_month: number;
15048
+ max_candidates: number;
15049
+ max_retries_per_run: number;
15050
+ max_retry_attempts: number;
15051
+ min_signals_unknown: number;
15052
+ negative_keywords: string[];
15053
+ order_keywords: string[];
15054
+ order_patterns: string[];
15055
+ singleton: boolean;
15056
+ skip_domains: string[];
15057
+ skip_senders: string[];
15058
+ updated_at: string;
15059
+ };
15060
+ Insert: {
15061
+ analyze_unknown_with_signals?: boolean;
15062
+ conf_green?: number;
15063
+ conf_orange?: number;
15064
+ created_at?: string;
15065
+ domain_match?: boolean;
15066
+ duplicate_days?: number;
15067
+ id?: string;
15068
+ max_agent_reparse?: number;
15069
+ max_ai_per_day?: number;
15070
+ max_ai_per_month?: number;
15071
+ max_candidates?: number;
15072
+ max_retries_per_run?: number;
15073
+ max_retry_attempts?: number;
15074
+ min_signals_unknown?: number;
15075
+ negative_keywords?: string[];
15076
+ order_keywords?: string[];
15077
+ order_patterns?: string[];
15078
+ singleton?: boolean;
15079
+ skip_domains?: string[];
15080
+ skip_senders?: string[];
15081
+ updated_at?: string;
15082
+ };
15083
+ Update: {
15084
+ analyze_unknown_with_signals?: boolean;
15085
+ conf_green?: number;
15086
+ conf_orange?: number;
15087
+ created_at?: string;
15088
+ domain_match?: boolean;
15089
+ duplicate_days?: number;
15090
+ id?: string;
15091
+ max_agent_reparse?: number;
15092
+ max_ai_per_day?: number;
15093
+ max_ai_per_month?: number;
15094
+ max_candidates?: number;
15095
+ max_retries_per_run?: number;
15096
+ max_retry_attempts?: number;
15097
+ min_signals_unknown?: number;
15098
+ negative_keywords?: string[];
15099
+ order_keywords?: string[];
15100
+ order_patterns?: string[];
15101
+ singleton?: boolean;
15102
+ skip_domains?: string[];
15103
+ skip_senders?: string[];
15104
+ updated_at?: string;
15105
+ };
15106
+ Relationships: [];
15107
+ };
14661
15108
  mailbox_ingest_runs: {
14662
15109
  Row: {
14663
15110
  connection_id: string | null;
@@ -14696,6 +15143,10 @@ export type Database = {
14696
15143
  };
14697
15144
  mailbox_messages: {
14698
15145
  Row: {
15146
+ analysis_count: number;
15147
+ analysis_note: string | null;
15148
+ analysis_started_at: string | null;
15149
+ analysis_state: string | null;
14699
15150
  attachments: Json;
14700
15151
  body_html: string | null;
14701
15152
  body_text: string | null;
@@ -14704,6 +15155,8 @@ export type Database = {
14704
15155
  created_at: string;
14705
15156
  error_message: string | null;
14706
15157
  external_id: string | null;
15158
+ filter_outcome: string | null;
15159
+ filter_reason: string | null;
14707
15160
  from_email: string | null;
14708
15161
  from_name: string | null;
14709
15162
  has_attachments: boolean;
@@ -14720,6 +15173,10 @@ export type Database = {
14720
15173
  updated_at: string;
14721
15174
  };
14722
15175
  Insert: {
15176
+ analysis_count?: number;
15177
+ analysis_note?: string | null;
15178
+ analysis_started_at?: string | null;
15179
+ analysis_state?: string | null;
14723
15180
  attachments?: Json;
14724
15181
  body_html?: string | null;
14725
15182
  body_text?: string | null;
@@ -14728,6 +15185,8 @@ export type Database = {
14728
15185
  created_at?: string;
14729
15186
  error_message?: string | null;
14730
15187
  external_id?: string | null;
15188
+ filter_outcome?: string | null;
15189
+ filter_reason?: string | null;
14731
15190
  from_email?: string | null;
14732
15191
  from_name?: string | null;
14733
15192
  has_attachments?: boolean;
@@ -14744,6 +15203,10 @@ export type Database = {
14744
15203
  updated_at?: string;
14745
15204
  };
14746
15205
  Update: {
15206
+ analysis_count?: number;
15207
+ analysis_note?: string | null;
15208
+ analysis_started_at?: string | null;
15209
+ analysis_state?: string | null;
14747
15210
  attachments?: Json;
14748
15211
  body_html?: string | null;
14749
15212
  body_text?: string | null;
@@ -14752,6 +15215,8 @@ export type Database = {
14752
15215
  created_at?: string;
14753
15216
  error_message?: string | null;
14754
15217
  external_id?: string | null;
15218
+ filter_outcome?: string | null;
15219
+ filter_reason?: string | null;
14755
15220
  from_email?: string | null;
14756
15221
  from_name?: string | null;
14757
15222
  has_attachments?: boolean;
@@ -14798,6 +15263,7 @@ export type Database = {
14798
15263
  confidence: number | null;
14799
15264
  created_at: string;
14800
15265
  created_order_id: string | null;
15266
+ customer_reference: string | null;
14801
15267
  delivery_date: string | null;
14802
15268
  id: string;
14803
15269
  matched_customer_id: string | null;
@@ -14816,6 +15282,7 @@ export type Database = {
14816
15282
  confidence?: number | null;
14817
15283
  created_at?: string;
14818
15284
  created_order_id?: string | null;
15285
+ customer_reference?: string | null;
14819
15286
  delivery_date?: string | null;
14820
15287
  id?: string;
14821
15288
  matched_customer_id?: string | null;
@@ -14834,6 +15301,7 @@ export type Database = {
14834
15301
  confidence?: number | null;
14835
15302
  created_at?: string;
14836
15303
  created_order_id?: string | null;
15304
+ customer_reference?: string | null;
14837
15305
  delivery_date?: string | null;
14838
15306
  id?: string;
14839
15307
  matched_customer_id?: string | null;
@@ -14970,43 +15438,85 @@ export type Database = {
14970
15438
  };
14971
15439
  mailbox_proposal_lines: {
14972
15440
  Row: {
15441
+ belading: Json | null;
15442
+ confidence: Json | null;
14973
15443
  created_at: string;
15444
+ currency: string | null;
14974
15445
  id: string;
14975
15446
  match_confidence: number | null;
15447
+ match_source: string | null;
15448
+ name_in_mail: string | null;
15449
+ pieces_per_unit: number | null;
14976
15450
  plant_type: string | null;
15451
+ plants: number | null;
15452
+ price_per: string | null;
14977
15453
  product_id: string | null;
14978
15454
  proposal_id: string;
15455
+ qty_in_mail: number | null;
14979
15456
  quantity: number | null;
15457
+ raw_code: string | null;
14980
15458
  raw_product_text: string | null;
14981
15459
  sort_order: number;
14982
15460
  unit: string | null;
15461
+ unit_kind: string | null;
15462
+ unit_price: number | null;
15463
+ unit_text: string | null;
14983
15464
  updated_at: string;
15465
+ warnings: string[] | null;
14984
15466
  };
14985
15467
  Insert: {
15468
+ belading?: Json | null;
15469
+ confidence?: Json | null;
14986
15470
  created_at?: string;
15471
+ currency?: string | null;
14987
15472
  id?: string;
14988
15473
  match_confidence?: number | null;
15474
+ match_source?: string | null;
15475
+ name_in_mail?: string | null;
15476
+ pieces_per_unit?: number | null;
14989
15477
  plant_type?: string | null;
15478
+ plants?: number | null;
15479
+ price_per?: string | null;
14990
15480
  product_id?: string | null;
14991
15481
  proposal_id: string;
15482
+ qty_in_mail?: number | null;
14992
15483
  quantity?: number | null;
15484
+ raw_code?: string | null;
14993
15485
  raw_product_text?: string | null;
14994
15486
  sort_order?: number;
14995
15487
  unit?: string | null;
15488
+ unit_kind?: string | null;
15489
+ unit_price?: number | null;
15490
+ unit_text?: string | null;
14996
15491
  updated_at?: string;
15492
+ warnings?: string[] | null;
14997
15493
  };
14998
15494
  Update: {
15495
+ belading?: Json | null;
15496
+ confidence?: Json | null;
14999
15497
  created_at?: string;
15498
+ currency?: string | null;
15000
15499
  id?: string;
15001
15500
  match_confidence?: number | null;
15501
+ match_source?: string | null;
15502
+ name_in_mail?: string | null;
15503
+ pieces_per_unit?: number | null;
15002
15504
  plant_type?: string | null;
15505
+ plants?: number | null;
15506
+ price_per?: string | null;
15003
15507
  product_id?: string | null;
15004
15508
  proposal_id?: string;
15509
+ qty_in_mail?: number | null;
15005
15510
  quantity?: number | null;
15511
+ raw_code?: string | null;
15006
15512
  raw_product_text?: string | null;
15007
15513
  sort_order?: number;
15008
15514
  unit?: string | null;
15515
+ unit_kind?: string | null;
15516
+ unit_price?: number | null;
15517
+ unit_text?: string | null;
15009
15518
  updated_at?: string;
15519
+ warnings?: string[] | null;
15010
15520
  };
15011
15521
  Relationships: [
15012
15522
  {
@@ -15080,6 +15590,51 @@ export type Database = {
15080
15590
  };
15081
15591
  Relationships: [];
15082
15592
  };
15593
+ mailbox_test_cases: {
15594
+ Row: {
15595
+ body_text: string;
15596
+ created_at: string;
15597
+ expected: Json;
15598
+ from_email: string;
15599
+ has_attachment: boolean;
15600
+ id: string;
15601
+ last_result: Json | null;
15602
+ last_run_at: string | null;
15603
+ name: string;
15604
+ sort_order: number;
15605
+ subject: string;
15606
+ updated_at: string;
15607
+ };
15608
+ Insert: {
15609
+ body_text?: string;
15610
+ created_at?: string;
15611
+ expected?: Json;
15612
+ from_email?: string;
15613
+ has_attachment?: boolean;
15614
+ id?: string;
15615
+ last_result?: Json | null;
15616
+ last_run_at?: string | null;
15617
+ name: string;
15618
+ sort_order?: number;
15619
+ subject?: string;
15620
+ updated_at?: string;
15621
+ };
15622
+ Update: {
15623
+ body_text?: string;
15624
+ created_at?: string;
15625
+ expected?: Json;
15626
+ from_email?: string;
15627
+ has_attachment?: boolean;
15628
+ id?: string;
15629
+ last_result?: Json | null;
15630
+ last_run_at?: string | null;
15631
+ name?: string;
15632
+ sort_order?: number;
15633
+ subject?: string;
15634
+ updated_at?: string;
15635
+ };
15636
+ Relationships: [];
15637
+ };
15083
15638
  manufacture_product_components: {
15084
15639
  Row: {
15085
15640
  component_type: string;
@@ -15144,7 +15699,7 @@ export type Database = {
15144
15699
  name: string;
15145
15700
  produced_stock: number;
15146
15701
  product_code: string;
15147
- tenant_id: string;
15702
+ tenant_id: string | null;
15148
15703
  updated_at: string;
15149
15704
  };
15150
15705
  Insert: {
@@ -15155,7 +15710,7 @@ export type Database = {
15155
15710
  name: string;
15156
15711
  produced_stock?: number;
15157
15712
  product_code: string;
15158
- tenant_id: string;
15713
+ tenant_id?: string | null;
15159
15714
  updated_at?: string;
15160
15715
  };
15161
15716
  Update: {
@@ -15166,7 +15721,7 @@ export type Database = {
15166
15721
  name?: string;
15167
15722
  produced_stock?: number;
15168
15723
  product_code?: string;
15169
- tenant_id?: string;
15724
+ tenant_id?: string | null;
15170
15725
  updated_at?: string;
15171
15726
  };
15172
15727
  Relationships: [];
@@ -16961,6 +17516,7 @@ export type Database = {
16961
17516
  created_at: string;
16962
17517
  id: string;
16963
17518
  layers_per_cart: number | null;
17519
+ needs_sticker: boolean;
16964
17520
  order_id: string;
16965
17521
  packing_locked_at: string | null;
16966
17522
  packing_locked_by: string | null;
@@ -16980,6 +17536,7 @@ export type Database = {
16980
17536
  created_at?: string;
16981
17537
  id?: string;
16982
17538
  layers_per_cart?: number | null;
17539
+ needs_sticker?: boolean;
16983
17540
  order_id: string;
16984
17541
  packing_locked_at?: string | null;
16985
17542
  packing_locked_by?: string | null;
@@ -16999,6 +17556,7 @@ export type Database = {
16999
17556
  created_at?: string;
17000
17557
  id?: string;
17001
17558
  layers_per_cart?: number | null;
17559
+ needs_sticker?: boolean;
17002
17560
  order_id?: string;
17003
17561
  packing_locked_at?: string | null;
17004
17562
  packing_locked_by?: string | null;
@@ -20455,7 +21013,7 @@ export type Database = {
20455
21013
  parent_trade_item_floriday_id: string | null;
20456
21014
  quantity: number;
20457
21015
  sort_order: number;
20458
- tenant_id: string;
21016
+ tenant_id: string | null;
20459
21017
  unit: string;
20460
21018
  updated_at: string;
20461
21019
  };
@@ -20468,7 +21026,7 @@ export type Database = {
20468
21026
  parent_trade_item_floriday_id?: string | null;
20469
21027
  quantity?: number;
20470
21028
  sort_order?: number;
20471
- tenant_id: string;
21029
+ tenant_id?: string | null;
20472
21030
  unit?: string;
20473
21031
  updated_at?: string;
20474
21032
  };
@@ -20481,7 +21039,7 @@ export type Database = {
20481
21039
  parent_trade_item_floriday_id?: string | null;
20482
21040
  quantity?: number;
20483
21041
  sort_order?: number;
20484
- tenant_id?: string;
21042
+ tenant_id?: string | null;
20485
21043
  unit?: string;
20486
21044
  updated_at?: string;
20487
21045
  };
@@ -20514,7 +21072,7 @@ export type Database = {
20514
21072
  parent_trade_item_floriday_id: string | null;
20515
21073
  quantity: number;
20516
21074
  sort_order: number;
20517
- tenant_id: string;
21075
+ tenant_id: string | null;
20518
21076
  unit: string;
20519
21077
  updated_at: string;
20520
21078
  };
@@ -20529,7 +21087,7 @@ export type Database = {
20529
21087
  parent_trade_item_floriday_id?: string | null;
20530
21088
  quantity?: number;
20531
21089
  sort_order?: number;
20532
- tenant_id: string;
21090
+ tenant_id?: string | null;
20533
21091
  unit?: string;
20534
21092
  updated_at?: string;
20535
21093
  };
@@ -20544,7 +21102,7 @@ export type Database = {
20544
21102
  parent_trade_item_floriday_id?: string | null;
20545
21103
  quantity?: number;
20546
21104
  sort_order?: number;
20547
- tenant_id?: string;
21105
+ tenant_id?: string | null;
20548
21106
  unit?: string;
20549
21107
  updated_at?: string;
20550
21108
  };
@@ -20724,7 +21282,7 @@ export type Database = {
20724
21282
  id: string;
20725
21283
  is_active: boolean;
20726
21284
  name: string;
20727
- tenant_id: string;
21285
+ tenant_id: string | null;
20728
21286
  updated_at: string;
20729
21287
  };
20730
21288
  Insert: {
@@ -20735,7 +21293,7 @@ export type Database = {
20735
21293
  id?: string;
20736
21294
  is_active?: boolean;
20737
21295
  name: string;
20738
- tenant_id: string;
21296
+ tenant_id?: string | null;
20739
21297
  updated_at?: string;
20740
21298
  };
20741
21299
  Update: {
@@ -20746,7 +21304,7 @@ export type Database = {
20746
21304
  id?: string;
20747
21305
  is_active?: boolean;
20748
21306
  name?: string;
20749
- tenant_id?: string;
21307
+ tenant_id?: string | null;
20750
21308
  updated_at?: string;
20751
21309
  };
20752
21310
  Relationships: [
@@ -20781,7 +21339,7 @@ export type Database = {
20781
21339
  packages_per_layer: number | null;
20782
21340
  packing_configuration_id: string;
20783
21341
  product_id: string | null;
20784
- tenant_id: string;
21342
+ tenant_id: string | null;
20785
21343
  trade_item_floriday_id: string | null;
20786
21344
  units_per_package: number | null;
20787
21345
  updated_at: string;
@@ -20800,7 +21358,7 @@ export type Database = {
20800
21358
  packages_per_layer?: number | null;
20801
21359
  packing_configuration_id?: string;
20802
21360
  product_id?: string | null;
20803
- tenant_id: string;
21361
+ tenant_id?: string | null;
20804
21362
  trade_item_floriday_id?: string | null;
20805
21363
  units_per_package?: number | null;
20806
21364
  updated_at?: string;
@@ -20819,7 +21377,7 @@ export type Database = {
20819
21377
  packages_per_layer?: number | null;
20820
21378
  packing_configuration_id?: string;
20821
21379
  product_id?: string | null;
20822
- tenant_id?: string;
21380
+ tenant_id?: string | null;
20823
21381
  trade_item_floriday_id?: string | null;
20824
21382
  units_per_package?: number | null;
20825
21383
  updated_at?: string;
@@ -20999,6 +21557,69 @@ export type Database = {
20999
21557
  }
21000
21558
  ];
21001
21559
  };
21560
+ productontwerp_import_map: {
21561
+ Row: {
21562
+ created_at: string;
21563
+ entity_type: string;
21564
+ id: string;
21565
+ imported_at: string;
21566
+ match_method: string | null;
21567
+ source_id: string;
21568
+ source_shell_id: string;
21569
+ target_id: string;
21570
+ updated_at: string;
21571
+ };
21572
+ Insert: {
21573
+ created_at?: string;
21574
+ entity_type: string;
21575
+ id?: string;
21576
+ imported_at?: string;
21577
+ match_method?: string | null;
21578
+ source_id: string;
21579
+ source_shell_id: string;
21580
+ target_id: string;
21581
+ updated_at?: string;
21582
+ };
21583
+ Update: {
21584
+ created_at?: string;
21585
+ entity_type?: string;
21586
+ id?: string;
21587
+ imported_at?: string;
21588
+ match_method?: string | null;
21589
+ source_id?: string;
21590
+ source_shell_id?: string;
21591
+ target_id?: string;
21592
+ updated_at?: string;
21593
+ };
21594
+ Relationships: [];
21595
+ };
21596
+ productontwerp_structure_codes: {
21597
+ Row: {
21598
+ code: string;
21599
+ created_at: string;
21600
+ entity_id: string;
21601
+ entity_type: string;
21602
+ id: string;
21603
+ updated_at: string;
21604
+ };
21605
+ Insert: {
21606
+ code: string;
21607
+ created_at?: string;
21608
+ entity_id: string;
21609
+ entity_type: string;
21610
+ id?: string;
21611
+ updated_at?: string;
21612
+ };
21613
+ Update: {
21614
+ code?: string;
21615
+ created_at?: string;
21616
+ entity_id?: string;
21617
+ entity_type?: string;
21618
+ id?: string;
21619
+ updated_at?: string;
21620
+ };
21621
+ Relationships: [];
21622
+ };
21002
21623
  products: {
21003
21624
  Row: {
21004
21625
  article_number: string | null;
@@ -28856,6 +29477,10 @@ export type Database = {
28856
29477
  };
28857
29478
  Returns: string[][];
28858
29479
  };
29480
+ _layout_is_beheerder: {
29481
+ Args: never;
29482
+ Returns: boolean;
29483
+ };
28859
29484
  _migrate_rewrite_stock_key: {
28860
29485
  Args: {
28861
29486
  _from_key: string;
@@ -29071,6 +29696,26 @@ export type Database = {
29071
29696
  Args: never;
29072
29697
  Returns: Json;
29073
29698
  };
29699
+ ai_is_admin: {
29700
+ Args: {
29701
+ _uid: string;
29702
+ };
29703
+ Returns: boolean;
29704
+ };
29705
+ ai_register_consumers: {
29706
+ Args: {
29707
+ _full_list?: boolean;
29708
+ _modules: Json;
29709
+ _source?: string;
29710
+ };
29711
+ Returns: Json;
29712
+ };
29713
+ ai_register_runtime_consumer: {
29714
+ Args: {
29715
+ _module_key: string;
29716
+ };
29717
+ Returns: boolean;
29718
+ };
29074
29719
  ai_usage_by_module: {
29075
29720
  Args: {
29076
29721
  _from: string;
@@ -30183,6 +30828,18 @@ export type Database = {
30183
30828
  Args: never;
30184
30829
  Returns: undefined;
30185
30830
  };
30831
+ floriday_customer_candidates: {
30832
+ Args: never;
30833
+ Returns: {
30834
+ in_cache: boolean;
30835
+ organization_id: string;
30836
+ reason: string;
30837
+ }[];
30838
+ };
30839
+ floriday_customer_promotion_preview: {
30840
+ Args: never;
30841
+ Returns: Json;
30842
+ };
30186
30843
  floriday_default_owner: {
30187
30844
  Args: {
30188
30845
  p_connection_id: string;
@@ -30219,16 +30876,70 @@ export type Database = {
30219
30876
  source_id: string;
30220
30877
  }[];
30221
30878
  };
30879
+ floriday_eigen_organisatie: {
30880
+ Args: never;
30881
+ Returns: {
30882
+ adres: string;
30883
+ gln: string;
30884
+ land: string;
30885
+ naam: string;
30886
+ opgehaald_op: string;
30887
+ organisatie_id: string;
30888
+ plaats: string;
30889
+ postcode: string;
30890
+ }[];
30891
+ };
30892
+ floriday_erp_leading_preview: {
30893
+ Args: {
30894
+ p_connection_id: string;
30895
+ p_product_ids: string[];
30896
+ p_stock_mode?: string;
30897
+ };
30898
+ Returns: {
30899
+ blocker: string;
30900
+ desired_available: boolean;
30901
+ desired_quantity: number;
30902
+ horizon_weeks: number;
30903
+ offer_forms: Json;
30904
+ product_id: string;
30905
+ product_name: string;
30906
+ sale_price: number;
30907
+ stock_mode: string;
30908
+ trade_item_id: string;
30909
+ weeks: Json;
30910
+ }[];
30911
+ };
30222
30912
  floriday_fill_publish_horizon: {
30223
30913
  Args: never;
30224
30914
  Returns: number;
30225
30915
  };
30916
+ floriday_follow_apply: {
30917
+ Args: {
30918
+ p_connection_id: string;
30919
+ p_items: Json;
30920
+ };
30921
+ Returns: Json;
30922
+ };
30226
30923
  floriday_ingest_sales_orders: {
30227
30924
  Args: {
30228
30925
  p_limit?: number;
30229
30926
  };
30230
30927
  Returns: number;
30231
30928
  };
30929
+ floriday_leading_summary: {
30930
+ Args: {
30931
+ p_connection_id: string;
30932
+ };
30933
+ Returns: Json;
30934
+ };
30935
+ floriday_make_erp_leading: {
30936
+ Args: {
30937
+ p_connection_id: string;
30938
+ p_product_ids: string[];
30939
+ p_stock_mode?: string;
30940
+ };
30941
+ Returns: Json;
30942
+ };
30232
30943
  floriday_network_status: {
30233
30944
  Args: {
30234
30945
  p_organization_id: string;
@@ -30240,6 +30951,12 @@ export type Database = {
30240
30951
  synced_at: string;
30241
30952
  }[];
30242
30953
  };
30954
+ floriday_norm_offer_forms: {
30955
+ Args: {
30956
+ p: Json;
30957
+ };
30958
+ Returns: Json;
30959
+ };
30243
30960
  floriday_orphan_settings_count: {
30244
30961
  Args: never;
30245
30962
  Returns: number;
@@ -30268,10 +30985,34 @@ export type Database = {
30268
30985
  };
30269
30986
  Returns: number;
30270
30987
  };
30988
+ floriday_takeover_apply: {
30989
+ Args: {
30990
+ p_connection_id: string;
30991
+ p_items: Json;
30992
+ };
30993
+ Returns: Json;
30994
+ };
30995
+ floriday_takeover_fetch_state: {
30996
+ Args: {
30997
+ p_connection_id: string;
30998
+ p_entity?: string;
30999
+ };
31000
+ Returns: string;
31001
+ };
31002
+ floriday_takeover_undo: {
31003
+ Args: {
31004
+ p_run_id: string;
31005
+ };
31006
+ Returns: Json;
31007
+ };
30271
31008
  floriday_today_announce_summary: {
30272
31009
  Args: never;
30273
31010
  Returns: Json;
30274
31011
  };
31012
+ floriday_write_mode: {
31013
+ Args: never;
31014
+ Returns: Json;
31015
+ };
30275
31016
  format_cart_number: {
30276
31017
  Args: {
30277
31018
  p_pick_date: string;
@@ -31130,6 +31871,25 @@ export type Database = {
31130
31871
  };
31131
31872
  Returns: boolean;
31132
31873
  };
31874
+ klanten_auto_promote_status: {
31875
+ Args: never;
31876
+ Returns: Json;
31877
+ };
31878
+ klanten_install_check: {
31879
+ Args: never;
31880
+ Returns: Json;
31881
+ };
31882
+ klanten_promote_round: {
31883
+ Args: never;
31884
+ Returns: Json;
31885
+ };
31886
+ klanten_set_auto_promote: {
31887
+ Args: {
31888
+ p_kind: string;
31889
+ p_on: boolean;
31890
+ };
31891
+ Returns: Json;
31892
+ };
31133
31893
  layout_print_document: {
31134
31894
  Args: {
31135
31895
  _documentnaam: string;
@@ -31156,6 +31916,18 @@ export type Database = {
31156
31916
  status: string;
31157
31917
  }[];
31158
31918
  };
31919
+ layout_standaard_overnemen: {
31920
+ Args: {
31921
+ _layout_id: string;
31922
+ };
31923
+ Returns: Json;
31924
+ };
31925
+ layout_versie_terugzetten: {
31926
+ Args: {
31927
+ _versie_id: string;
31928
+ };
31929
+ Returns: number;
31930
+ };
31159
31931
  layout_verwijzing_omzetten: {
31160
31932
  Args: {
31161
31933
  _nieuw: string;
@@ -31169,6 +31941,10 @@ export type Database = {
31169
31941
  Args: never;
31170
31942
  Returns: Json;
31171
31943
  };
31944
+ layout_zorg_systeemlayouts: {
31945
+ Args: never;
31946
+ Returns: number;
31947
+ };
31172
31948
  list_medewerkers: {
31173
31949
  Args: never;
31174
31950
  Returns: {
@@ -31691,6 +32467,12 @@ export type Database = {
31691
32467
  };
31692
32468
  Returns: boolean;
31693
32469
  };
32470
+ logistics_cart_has_packing_slip: {
32471
+ Args: {
32472
+ p_cart_id: string;
32473
+ };
32474
+ Returns: boolean;
32475
+ };
31694
32476
  logistics_cart_ids_frozen: {
31695
32477
  Args: {
31696
32478
  p_cart_ids: string[];
@@ -32249,6 +33031,7 @@ export type Database = {
32249
33031
  p_delivery_date: string;
32250
33032
  p_delivery_location: string;
32251
33033
  p_moment_key?: string;
33034
+ p_own_transport?: boolean;
32252
33035
  };
32253
33036
  Returns: Json;
32254
33037
  };
@@ -32335,6 +33118,10 @@ export type Database = {
32335
33118
  };
32336
33119
  Returns: Json;
32337
33120
  };
33121
+ logistics_ensure_runtime_defaults: {
33122
+ Args: never;
33123
+ Returns: undefined;
33124
+ };
32338
33125
  logistics_ensure_shipping_notes: {
32339
33126
  Args: {
32340
33127
  p_limit?: number;
@@ -32503,6 +33290,10 @@ export type Database = {
32503
33290
  Args: never;
32504
33291
  Returns: Json;
32505
33292
  };
33293
+ logistics_floriday_is_read_only: {
33294
+ Args: never;
33295
+ Returns: boolean;
33296
+ };
32506
33297
  logistics_floriday_layout_id: {
32507
33298
  Args: {
32508
33299
  p_documenttype: string;
@@ -32543,6 +33334,13 @@ export type Database = {
32543
33334
  };
32544
33335
  Returns: number;
32545
33336
  };
33337
+ logistics_floriday_push_hold_read_only: {
33338
+ Args: {
33339
+ _id: string;
33340
+ _revision: number;
33341
+ };
33342
+ Returns: string;
33343
+ };
32546
33344
  logistics_floriday_queue_push: {
32547
33345
  Args: {
32548
33346
  _order_ref: string;
@@ -32551,6 +33349,10 @@ export type Database = {
32551
33349
  };
32552
33350
  Returns: string;
32553
33351
  };
33352
+ logistics_floriday_release_read_only: {
33353
+ Args: never;
33354
+ Returns: Json;
33355
+ };
32554
33356
  logistics_floriday_status_updates_enabled: {
32555
33357
  Args: never;
32556
33358
  Returns: boolean;
@@ -32702,6 +33504,12 @@ export type Database = {
32702
33504
  };
32703
33505
  Returns: string;
32704
33506
  };
33507
+ logistics_nl_date: {
33508
+ Args: {
33509
+ p_day: string;
33510
+ };
33511
+ Returns: string;
33512
+ };
32705
33513
  logistics_nl_moment: {
32706
33514
  Args: {
32707
33515
  p_at: string;
@@ -32914,6 +33722,12 @@ export type Database = {
32914
33722
  };
32915
33723
  Returns: boolean;
32916
33724
  };
33725
+ logistics_order_is_shipped_status: {
33726
+ Args: {
33727
+ p_status: string;
33728
+ };
33729
+ Returns: boolean;
33730
+ };
32917
33731
  logistics_order_is_topick: {
32918
33732
  Args: {
32919
33733
  p_order_id: string;
@@ -33052,6 +33866,13 @@ export type Database = {
33052
33866
  Args: never;
33053
33867
  Returns: Json;
33054
33868
  };
33869
+ logistics_own_transport_departure: {
33870
+ Args: {
33871
+ p_delivery_date: string;
33872
+ p_pickup_at: string;
33873
+ };
33874
+ Returns: Json;
33875
+ };
33055
33876
  logistics_packing_autofix: {
33056
33877
  Args: {
33057
33878
  p_limit?: number;
@@ -33597,6 +34418,12 @@ export type Database = {
33597
34418
  };
33598
34419
  Returns: Json;
33599
34420
  };
34421
+ logistics_register_tick_apikey: {
34422
+ Args: {
34423
+ p_key: string;
34424
+ };
34425
+ Returns: Json;
34426
+ };
33600
34427
  logistics_replan_all: {
33601
34428
  Args: {
33602
34429
  p_reason?: string;
@@ -33868,6 +34695,10 @@ export type Database = {
33868
34695
  peer_order_id: string;
33869
34696
  }[];
33870
34697
  };
34698
+ logistics_shell_base_url: {
34699
+ Args: never;
34700
+ Returns: string;
34701
+ };
33871
34702
  logistics_shift_to_workday: {
33872
34703
  Args: {
33873
34704
  p_days: string[];
@@ -33947,6 +34778,12 @@ export type Database = {
33947
34778
  };
33948
34779
  Returns: boolean;
33949
34780
  };
34781
+ logistics_slip_is_herprint: {
34782
+ Args: {
34783
+ p_slip_job_id: string;
34784
+ };
34785
+ Returns: boolean;
34786
+ };
33950
34787
  logistics_slip_note_claim: {
33951
34788
  Args: {
33952
34789
  _lease_seconds?: number;
@@ -34020,6 +34857,12 @@ export type Database = {
34020
34857
  };
34021
34858
  Returns: undefined;
34022
34859
  };
34860
+ logistics_slip_note_hold_read_only: {
34861
+ Args: {
34862
+ _id: string;
34863
+ };
34864
+ Returns: undefined;
34865
+ };
34023
34866
  logistics_slip_note_keep_waiting: {
34024
34867
  Args: {
34025
34868
  _class?: string;
@@ -34038,6 +34881,12 @@ export type Database = {
34038
34881
  };
34039
34882
  Returns: Json;
34040
34883
  };
34884
+ logistics_slip_note_skip_herprint: {
34885
+ Args: {
34886
+ _id: string;
34887
+ };
34888
+ Returns: undefined;
34889
+ };
34041
34890
  logistics_status_after_shipping: {
34042
34891
  Args: {
34043
34892
  p_status: string;
@@ -34152,6 +35001,12 @@ export type Database = {
34152
35001
  Args: never;
34153
35002
  Returns: Json;
34154
35003
  };
35004
+ logistics_sync_stock_alert_email_status: {
35005
+ Args: {
35006
+ p_limit?: number;
35007
+ };
35008
+ Returns: Json;
35009
+ };
34155
35010
  logistics_sync_task_carriers: {
34156
35011
  Args: {
34157
35012
  p_order_ref?: string;
@@ -34440,6 +35295,12 @@ export type Database = {
34440
35295
  };
34441
35296
  Returns: boolean;
34442
35297
  };
35298
+ logistics_verkoop_order_link: {
35299
+ Args: {
35300
+ p_order_id: string;
35301
+ };
35302
+ Returns: string;
35303
+ };
34443
35304
  logistics_working_hours_status: {
34444
35305
  Args: never;
34445
35306
  Returns: Json;
@@ -34456,6 +35317,14 @@ export type Database = {
34456
35317
  };
34457
35318
  Returns: number;
34458
35319
  };
35320
+ mailbox_claim_analysis: {
35321
+ Args: {
35322
+ p_force?: boolean;
35323
+ p_message_id: string;
35324
+ p_trigger?: string;
35325
+ };
35326
+ Returns: Json;
35327
+ };
34459
35328
  mark_offer_clicked: {
34460
35329
  Args: {
34461
35330
  p_code: string;
@@ -35786,6 +36655,60 @@ export type Database = {
35786
36655
  };
35787
36656
  Returns: string;
35788
36657
  };
36658
+ productontwerp_can_write: {
36659
+ Args: never;
36660
+ Returns: boolean;
36661
+ };
36662
+ productontwerp_create_missing_products: {
36663
+ Args: {
36664
+ p_items: Json;
36665
+ p_run_id: string;
36666
+ };
36667
+ Returns: Json;
36668
+ };
36669
+ productontwerp_export: {
36670
+ Args: never;
36671
+ Returns: Json;
36672
+ };
36673
+ productontwerp_import: {
36674
+ Args: {
36675
+ p_dry_run: boolean;
36676
+ p_payload: Json;
36677
+ };
36678
+ Returns: Json;
36679
+ };
36680
+ productontwerp_nl_error: {
36681
+ Args: {
36682
+ p_detail: string;
36683
+ p_msg: string;
36684
+ p_state: string;
36685
+ };
36686
+ Returns: string;
36687
+ };
36688
+ productontwerp_product_ref: {
36689
+ Args: {
36690
+ p_id: string;
36691
+ };
36692
+ Returns: Json;
36693
+ };
36694
+ productontwerp_queue_count: {
36695
+ Args: never;
36696
+ Returns: number;
36697
+ };
36698
+ productontwerp_rollback_created_products: {
36699
+ Args: {
36700
+ p_run_id: string;
36701
+ };
36702
+ Returns: Json;
36703
+ };
36704
+ productontwerp_unique_group_name: {
36705
+ Args: {
36706
+ p_article: string;
36707
+ p_base: string;
36708
+ p_used: string[];
36709
+ };
36710
+ Returns: string;
36711
+ };
35789
36712
  promote_floriday_customer: {
35790
36713
  Args: {
35791
36714
  _org_id: string;
@@ -36137,6 +37060,10 @@ export type Database = {
36137
37060
  Args: never;
36138
37061
  Returns: undefined;
36139
37062
  };
37063
+ run_floriday_follow: {
37064
+ Args: never;
37065
+ Returns: undefined;
37066
+ };
36140
37067
  run_floriday_stock_queue_process: {
36141
37068
  Args: never;
36142
37069
  Returns: undefined;
@@ -36515,6 +37442,13 @@ export type Database = {
36515
37442
  };
36516
37443
  Returns: number;
36517
37444
  };
37445
+ schedule_floriday_customer_offers_sync: {
37446
+ Args: {
37447
+ p_apikey: string;
37448
+ p_url: string;
37449
+ };
37450
+ Returns: number;
37451
+ };
36518
37452
  schedule_floriday_customer_organizations_sync: {
36519
37453
  Args: {
36520
37454
  p_apikey: string;
@@ -37648,6 +38582,13 @@ export type Database = {
37648
38582
  Args: never;
37649
38583
  Returns: boolean;
37650
38584
  };
38585
+ voorraad_schema_ddl: {
38586
+ Args: {
38587
+ p_functions: string[];
38588
+ p_tables: string[];
38589
+ };
38590
+ Returns: string;
38591
+ };
37651
38592
  voorraad_week_is_past: {
37652
38593
  Args: {
37653
38594
  p_week: number;