@flowselections/floriday-voorraad 1.0.84 → 1.0.87

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.
@@ -5979,33 +5979,42 @@ export type Database = {
5979
5979
  };
5980
5980
  floricode_sync_state: {
5981
5981
  Row: {
5982
+ completed_at: string | null;
5982
5983
  cursor_skip: number;
5983
5984
  error_message: string | null;
5984
5985
  last_change_date_time: string | null;
5985
5986
  last_sequence_number: number;
5986
5987
  last_sync_at: string | null;
5988
+ pending_change_date_time: string | null;
5987
5989
  resource: string;
5988
5990
  status: string;
5991
+ total_count: number | null;
5989
5992
  updated_at: string;
5990
5993
  };
5991
5994
  Insert: {
5995
+ completed_at?: string | null;
5992
5996
  cursor_skip?: number;
5993
5997
  error_message?: string | null;
5994
5998
  last_change_date_time?: string | null;
5995
5999
  last_sequence_number?: number;
5996
6000
  last_sync_at?: string | null;
6001
+ pending_change_date_time?: string | null;
5997
6002
  resource: string;
5998
6003
  status?: string;
6004
+ total_count?: number | null;
5999
6005
  updated_at?: string;
6000
6006
  };
6001
6007
  Update: {
6008
+ completed_at?: string | null;
6002
6009
  cursor_skip?: number;
6003
6010
  error_message?: string | null;
6004
6011
  last_change_date_time?: string | null;
6005
6012
  last_sequence_number?: number;
6006
6013
  last_sync_at?: string | null;
6014
+ pending_change_date_time?: string | null;
6007
6015
  resource?: string;
6008
6016
  status?: string;
6017
+ total_count?: number | null;
6009
6018
  updated_at?: string;
6010
6019
  };
6011
6020
  Relationships: [];
@@ -6760,6 +6769,9 @@ export type Database = {
6760
6769
  organization_name: string | null;
6761
6770
  preferred_warehouse_id: string | null;
6762
6771
  preferred_warehouse_name: string | null;
6772
+ read_only: boolean;
6773
+ read_only_changed_at: string | null;
6774
+ read_only_changed_by: string | null;
6763
6775
  token_expires_at: string | null;
6764
6776
  updated_at: string;
6765
6777
  };
@@ -6775,6 +6787,9 @@ export type Database = {
6775
6787
  organization_name?: string | null;
6776
6788
  preferred_warehouse_id?: string | null;
6777
6789
  preferred_warehouse_name?: string | null;
6790
+ read_only?: boolean;
6791
+ read_only_changed_at?: string | null;
6792
+ read_only_changed_by?: string | null;
6778
6793
  token_expires_at?: string | null;
6779
6794
  updated_at?: string;
6780
6795
  };
@@ -6790,6 +6805,9 @@ export type Database = {
6790
6805
  organization_name?: string | null;
6791
6806
  preferred_warehouse_id?: string | null;
6792
6807
  preferred_warehouse_name?: string | null;
6808
+ read_only?: boolean;
6809
+ read_only_changed_at?: string | null;
6810
+ read_only_changed_by?: string | null;
6793
6811
  token_expires_at?: string | null;
6794
6812
  updated_at?: string;
6795
6813
  };
@@ -7047,6 +7065,44 @@ export type Database = {
7047
7065
  }
7048
7066
  ];
7049
7067
  };
7068
+ floriday_customer_offers_cache: {
7069
+ Row: {
7070
+ connection_id: string;
7071
+ data: Json;
7072
+ fetched_at: string;
7073
+ floriday_id: string;
7074
+ is_deleted: boolean;
7075
+ sequence_number: number;
7076
+ updated_at: string;
7077
+ };
7078
+ Insert: {
7079
+ connection_id: string;
7080
+ data?: Json;
7081
+ fetched_at?: string;
7082
+ floriday_id: string;
7083
+ is_deleted?: boolean;
7084
+ sequence_number?: number;
7085
+ updated_at?: string;
7086
+ };
7087
+ Update: {
7088
+ connection_id?: string;
7089
+ data?: Json;
7090
+ fetched_at?: string;
7091
+ floriday_id?: string;
7092
+ is_deleted?: boolean;
7093
+ sequence_number?: number;
7094
+ updated_at?: string;
7095
+ };
7096
+ Relationships: [
7097
+ {
7098
+ foreignKeyName: "floriday_customer_offers_cache_connection_id_fkey";
7099
+ columns: ["connection_id"];
7100
+ isOneToOne: false;
7101
+ referencedRelation: "floriday_connections";
7102
+ referencedColumns: ["id"];
7103
+ }
7104
+ ];
7105
+ };
7050
7106
  floriday_customer_sticker_pdfs_cache: {
7051
7107
  Row: {
7052
7108
  byte_size: number | null;
@@ -7604,7 +7660,11 @@ export type Database = {
7604
7660
  created_at: string;
7605
7661
  desired_availability: boolean;
7606
7662
  desired_quantity: number;
7663
+ erp_leading: boolean | null;
7664
+ erp_leading_at: string | null;
7665
+ first_positive_published_at: string | null;
7607
7666
  fixed_quantity: number | null;
7667
+ floriday_offer_forms: Json | null;
7608
7668
  floriday_trade_item_id: string | null;
7609
7669
  id: string;
7610
7670
  last_confirmed_at: string | null;
@@ -7636,7 +7696,11 @@ export type Database = {
7636
7696
  created_at?: string;
7637
7697
  desired_availability?: boolean;
7638
7698
  desired_quantity?: number;
7699
+ erp_leading?: boolean | null;
7700
+ erp_leading_at?: string | null;
7701
+ first_positive_published_at?: string | null;
7639
7702
  fixed_quantity?: number | null;
7703
+ floriday_offer_forms?: Json | null;
7640
7704
  floriday_trade_item_id?: string | null;
7641
7705
  id?: string;
7642
7706
  last_confirmed_at?: string | null;
@@ -7668,7 +7732,11 @@ export type Database = {
7668
7732
  created_at?: string;
7669
7733
  desired_availability?: boolean;
7670
7734
  desired_quantity?: number;
7735
+ erp_leading?: boolean | null;
7736
+ erp_leading_at?: string | null;
7737
+ first_positive_published_at?: string | null;
7671
7738
  fixed_quantity?: number | null;
7739
+ floriday_offer_forms?: Json | null;
7672
7740
  floriday_trade_item_id?: string | null;
7673
7741
  id?: string;
7674
7742
  last_confirmed_at?: string | null;
@@ -8487,33 +8555,45 @@ export type Database = {
8487
8555
  };
8488
8556
  floriday_sync_state: {
8489
8557
  Row: {
8558
+ backfill_done_at: string | null;
8559
+ backfill_started_at: string | null;
8560
+ backfill_target_sequence: number | null;
8490
8561
  connection_id: string;
8491
8562
  entity_type: string;
8492
8563
  last_error: string | null;
8493
8564
  last_items_processed: number | null;
8494
8565
  last_max_sequence_seen: number | null;
8566
+ last_rate_limited_at: string | null;
8495
8567
  last_sequence_number: number;
8496
8568
  last_success_at: string | null;
8497
8569
  last_synced_at: string | null;
8498
8570
  updated_at: string;
8499
8571
  };
8500
8572
  Insert: {
8573
+ backfill_done_at?: string | null;
8574
+ backfill_started_at?: string | null;
8575
+ backfill_target_sequence?: number | null;
8501
8576
  connection_id: string;
8502
8577
  entity_type: string;
8503
8578
  last_error?: string | null;
8504
8579
  last_items_processed?: number | null;
8505
8580
  last_max_sequence_seen?: number | null;
8581
+ last_rate_limited_at?: string | null;
8506
8582
  last_sequence_number?: number;
8507
8583
  last_success_at?: string | null;
8508
8584
  last_synced_at?: string | null;
8509
8585
  updated_at?: string;
8510
8586
  };
8511
8587
  Update: {
8588
+ backfill_done_at?: string | null;
8589
+ backfill_started_at?: string | null;
8590
+ backfill_target_sequence?: number | null;
8512
8591
  connection_id?: string;
8513
8592
  entity_type?: string;
8514
8593
  last_error?: string | null;
8515
8594
  last_items_processed?: number | null;
8516
8595
  last_max_sequence_seen?: number | null;
8596
+ last_rate_limited_at?: string | null;
8517
8597
  last_sequence_number?: number;
8518
8598
  last_success_at?: string | null;
8519
8599
  last_synced_at?: string | null;
@@ -8529,6 +8609,116 @@ export type Database = {
8529
8609
  }
8530
8610
  ];
8531
8611
  };
8612
+ floriday_takeover_items: {
8613
+ Row: {
8614
+ created_at: string;
8615
+ created_product: boolean;
8616
+ id: string;
8617
+ new_price: number | null;
8618
+ new_stock: number | null;
8619
+ offer_forms: Json | null;
8620
+ old_erp_leading: boolean | null;
8621
+ old_offer_forms: Json | null;
8622
+ old_price: number | null;
8623
+ old_stock: number | null;
8624
+ price_source: string | null;
8625
+ product_id: string;
8626
+ run_id: string;
8627
+ stock_source: string | null;
8628
+ trade_item_id: string;
8629
+ undo_skipped_reason: string | null;
8630
+ undone: boolean;
8631
+ };
8632
+ Insert: {
8633
+ created_at?: string;
8634
+ created_product?: boolean;
8635
+ id?: string;
8636
+ new_price?: number | null;
8637
+ new_stock?: number | null;
8638
+ offer_forms?: Json | null;
8639
+ old_erp_leading?: boolean | null;
8640
+ old_offer_forms?: Json | null;
8641
+ old_price?: number | null;
8642
+ old_stock?: number | null;
8643
+ price_source?: string | null;
8644
+ product_id: string;
8645
+ run_id: string;
8646
+ stock_source?: string | null;
8647
+ trade_item_id: string;
8648
+ undo_skipped_reason?: string | null;
8649
+ undone?: boolean;
8650
+ };
8651
+ Update: {
8652
+ created_at?: string;
8653
+ created_product?: boolean;
8654
+ id?: string;
8655
+ new_price?: number | null;
8656
+ new_stock?: number | null;
8657
+ offer_forms?: Json | null;
8658
+ old_erp_leading?: boolean | null;
8659
+ old_offer_forms?: Json | null;
8660
+ old_price?: number | null;
8661
+ old_stock?: number | null;
8662
+ price_source?: string | null;
8663
+ product_id?: string;
8664
+ run_id?: string;
8665
+ stock_source?: string | null;
8666
+ trade_item_id?: string;
8667
+ undo_skipped_reason?: string | null;
8668
+ undone?: boolean;
8669
+ };
8670
+ Relationships: [
8671
+ {
8672
+ foreignKeyName: "floriday_takeover_items_run_id_fkey";
8673
+ columns: ["run_id"];
8674
+ isOneToOne: false;
8675
+ referencedRelation: "floriday_takeover_runs";
8676
+ referencedColumns: ["id"];
8677
+ }
8678
+ ];
8679
+ };
8680
+ floriday_takeover_runs: {
8681
+ Row: {
8682
+ connection_id: string;
8683
+ created_at: string;
8684
+ created_products: number;
8685
+ id: string;
8686
+ status: string;
8687
+ total_items: number;
8688
+ undo_skipped_items: number;
8689
+ undone_at: string | null;
8690
+ undone_items: number;
8691
+ updated_at: string;
8692
+ user_id: string;
8693
+ };
8694
+ Insert: {
8695
+ connection_id: string;
8696
+ created_at?: string;
8697
+ created_products?: number;
8698
+ id?: string;
8699
+ status?: string;
8700
+ total_items?: number;
8701
+ undo_skipped_items?: number;
8702
+ undone_at?: string | null;
8703
+ undone_items?: number;
8704
+ updated_at?: string;
8705
+ user_id: string;
8706
+ };
8707
+ Update: {
8708
+ connection_id?: string;
8709
+ created_at?: string;
8710
+ created_products?: number;
8711
+ id?: string;
8712
+ status?: string;
8713
+ total_items?: number;
8714
+ undo_skipped_items?: number;
8715
+ undone_at?: string | null;
8716
+ undone_items?: number;
8717
+ updated_at?: string;
8718
+ user_id?: string;
8719
+ };
8720
+ Relationships: [];
8721
+ };
8532
8722
  floriday_token_refresh_log: {
8533
8723
  Row: {
8534
8724
  attempted_at: string;
@@ -14616,6 +14806,45 @@ export type Database = {
14616
14806
  };
14617
14807
  Relationships: [];
14618
14808
  };
14809
+ mailbox_ai_runs: {
14810
+ Row: {
14811
+ error: string | null;
14812
+ finished_at: string | null;
14813
+ id: string;
14814
+ input_tokens: number | null;
14815
+ is_test: boolean;
14816
+ message_id: string | null;
14817
+ ok: boolean | null;
14818
+ output_tokens: number | null;
14819
+ started_at: string;
14820
+ trigger: string;
14821
+ };
14822
+ Insert: {
14823
+ error?: string | null;
14824
+ finished_at?: string | null;
14825
+ id?: string;
14826
+ input_tokens?: number | null;
14827
+ is_test?: boolean;
14828
+ message_id?: string | null;
14829
+ ok?: boolean | null;
14830
+ output_tokens?: number | null;
14831
+ started_at?: string;
14832
+ trigger?: string;
14833
+ };
14834
+ Update: {
14835
+ error?: string | null;
14836
+ finished_at?: string | null;
14837
+ id?: string;
14838
+ input_tokens?: number | null;
14839
+ is_test?: boolean;
14840
+ message_id?: string | null;
14841
+ ok?: boolean | null;
14842
+ output_tokens?: number | null;
14843
+ started_at?: string;
14844
+ trigger?: string;
14845
+ };
14846
+ Relationships: [];
14847
+ };
14619
14848
  mailbox_ai_settings: {
14620
14849
  Row: {
14621
14850
  active_goal_key: string | null;
@@ -14649,6 +14878,78 @@ export type Database = {
14649
14878
  };
14650
14879
  Relationships: [];
14651
14880
  };
14881
+ mailbox_filter_settings: {
14882
+ Row: {
14883
+ analyze_unknown_with_signals: boolean;
14884
+ conf_green: number;
14885
+ conf_orange: number;
14886
+ created_at: string;
14887
+ domain_match: boolean;
14888
+ duplicate_days: number;
14889
+ id: string;
14890
+ max_agent_reparse: number;
14891
+ max_ai_per_day: number;
14892
+ max_ai_per_month: number;
14893
+ max_candidates: number;
14894
+ max_retries_per_run: number;
14895
+ max_retry_attempts: number;
14896
+ min_signals_unknown: number;
14897
+ negative_keywords: string[];
14898
+ order_keywords: string[];
14899
+ order_patterns: string[];
14900
+ singleton: boolean;
14901
+ skip_domains: string[];
14902
+ skip_senders: string[];
14903
+ updated_at: string;
14904
+ };
14905
+ Insert: {
14906
+ analyze_unknown_with_signals?: boolean;
14907
+ conf_green?: number;
14908
+ conf_orange?: number;
14909
+ created_at?: string;
14910
+ domain_match?: boolean;
14911
+ duplicate_days?: number;
14912
+ id?: string;
14913
+ max_agent_reparse?: number;
14914
+ max_ai_per_day?: number;
14915
+ max_ai_per_month?: number;
14916
+ max_candidates?: number;
14917
+ max_retries_per_run?: number;
14918
+ max_retry_attempts?: number;
14919
+ min_signals_unknown?: number;
14920
+ negative_keywords?: string[];
14921
+ order_keywords?: string[];
14922
+ order_patterns?: string[];
14923
+ singleton?: boolean;
14924
+ skip_domains?: string[];
14925
+ skip_senders?: string[];
14926
+ updated_at?: string;
14927
+ };
14928
+ Update: {
14929
+ analyze_unknown_with_signals?: boolean;
14930
+ conf_green?: number;
14931
+ conf_orange?: number;
14932
+ created_at?: string;
14933
+ domain_match?: boolean;
14934
+ duplicate_days?: number;
14935
+ id?: string;
14936
+ max_agent_reparse?: number;
14937
+ max_ai_per_day?: number;
14938
+ max_ai_per_month?: number;
14939
+ max_candidates?: number;
14940
+ max_retries_per_run?: number;
14941
+ max_retry_attempts?: number;
14942
+ min_signals_unknown?: number;
14943
+ negative_keywords?: string[];
14944
+ order_keywords?: string[];
14945
+ order_patterns?: string[];
14946
+ singleton?: boolean;
14947
+ skip_domains?: string[];
14948
+ skip_senders?: string[];
14949
+ updated_at?: string;
14950
+ };
14951
+ Relationships: [];
14952
+ };
14652
14953
  mailbox_ingest_runs: {
14653
14954
  Row: {
14654
14955
  connection_id: string | null;
@@ -14687,6 +14988,10 @@ export type Database = {
14687
14988
  };
14688
14989
  mailbox_messages: {
14689
14990
  Row: {
14991
+ analysis_count: number;
14992
+ analysis_note: string | null;
14993
+ analysis_started_at: string | null;
14994
+ analysis_state: string | null;
14690
14995
  attachments: Json;
14691
14996
  body_html: string | null;
14692
14997
  body_text: string | null;
@@ -14695,6 +15000,8 @@ export type Database = {
14695
15000
  created_at: string;
14696
15001
  error_message: string | null;
14697
15002
  external_id: string | null;
15003
+ filter_outcome: string | null;
15004
+ filter_reason: string | null;
14698
15005
  from_email: string | null;
14699
15006
  from_name: string | null;
14700
15007
  has_attachments: boolean;
@@ -14711,6 +15018,10 @@ export type Database = {
14711
15018
  updated_at: string;
14712
15019
  };
14713
15020
  Insert: {
15021
+ analysis_count?: number;
15022
+ analysis_note?: string | null;
15023
+ analysis_started_at?: string | null;
15024
+ analysis_state?: string | null;
14714
15025
  attachments?: Json;
14715
15026
  body_html?: string | null;
14716
15027
  body_text?: string | null;
@@ -14719,6 +15030,8 @@ export type Database = {
14719
15030
  created_at?: string;
14720
15031
  error_message?: string | null;
14721
15032
  external_id?: string | null;
15033
+ filter_outcome?: string | null;
15034
+ filter_reason?: string | null;
14722
15035
  from_email?: string | null;
14723
15036
  from_name?: string | null;
14724
15037
  has_attachments?: boolean;
@@ -14735,6 +15048,10 @@ export type Database = {
14735
15048
  updated_at?: string;
14736
15049
  };
14737
15050
  Update: {
15051
+ analysis_count?: number;
15052
+ analysis_note?: string | null;
15053
+ analysis_started_at?: string | null;
15054
+ analysis_state?: string | null;
14738
15055
  attachments?: Json;
14739
15056
  body_html?: string | null;
14740
15057
  body_text?: string | null;
@@ -14743,6 +15060,8 @@ export type Database = {
14743
15060
  created_at?: string;
14744
15061
  error_message?: string | null;
14745
15062
  external_id?: string | null;
15063
+ filter_outcome?: string | null;
15064
+ filter_reason?: string | null;
14746
15065
  from_email?: string | null;
14747
15066
  from_name?: string | null;
14748
15067
  has_attachments?: boolean;
@@ -14789,6 +15108,7 @@ export type Database = {
14789
15108
  confidence: number | null;
14790
15109
  created_at: string;
14791
15110
  created_order_id: string | null;
15111
+ customer_reference: string | null;
14792
15112
  delivery_date: string | null;
14793
15113
  id: string;
14794
15114
  matched_customer_id: string | null;
@@ -14807,6 +15127,7 @@ export type Database = {
14807
15127
  confidence?: number | null;
14808
15128
  created_at?: string;
14809
15129
  created_order_id?: string | null;
15130
+ customer_reference?: string | null;
14810
15131
  delivery_date?: string | null;
14811
15132
  id?: string;
14812
15133
  matched_customer_id?: string | null;
@@ -14825,6 +15146,7 @@ export type Database = {
14825
15146
  confidence?: number | null;
14826
15147
  created_at?: string;
14827
15148
  created_order_id?: string | null;
15149
+ customer_reference?: string | null;
14828
15150
  delivery_date?: string | null;
14829
15151
  id?: string;
14830
15152
  matched_customer_id?: string | null;
@@ -14961,43 +15283,85 @@ export type Database = {
14961
15283
  };
14962
15284
  mailbox_proposal_lines: {
14963
15285
  Row: {
15286
+ belading: Json | null;
15287
+ confidence: Json | null;
14964
15288
  created_at: string;
15289
+ currency: string | null;
14965
15290
  id: string;
14966
15291
  match_confidence: number | null;
15292
+ match_source: string | null;
15293
+ name_in_mail: string | null;
15294
+ pieces_per_unit: number | null;
14967
15295
  plant_type: string | null;
15296
+ plants: number | null;
15297
+ price_per: string | null;
14968
15298
  product_id: string | null;
14969
15299
  proposal_id: string;
15300
+ qty_in_mail: number | null;
14970
15301
  quantity: number | null;
15302
+ raw_code: string | null;
14971
15303
  raw_product_text: string | null;
14972
15304
  sort_order: number;
14973
15305
  unit: string | null;
15306
+ unit_kind: string | null;
15307
+ unit_price: number | null;
15308
+ unit_text: string | null;
14974
15309
  updated_at: string;
15310
+ warnings: string[] | null;
14975
15311
  };
14976
15312
  Insert: {
15313
+ belading?: Json | null;
15314
+ confidence?: Json | null;
14977
15315
  created_at?: string;
15316
+ currency?: string | null;
14978
15317
  id?: string;
14979
15318
  match_confidence?: number | null;
15319
+ match_source?: string | null;
15320
+ name_in_mail?: string | null;
15321
+ pieces_per_unit?: number | null;
14980
15322
  plant_type?: string | null;
15323
+ plants?: number | null;
15324
+ price_per?: string | null;
14981
15325
  product_id?: string | null;
14982
15326
  proposal_id: string;
15327
+ qty_in_mail?: number | null;
14983
15328
  quantity?: number | null;
15329
+ raw_code?: string | null;
14984
15330
  raw_product_text?: string | null;
14985
15331
  sort_order?: number;
14986
15332
  unit?: string | null;
15333
+ unit_kind?: string | null;
15334
+ unit_price?: number | null;
15335
+ unit_text?: string | null;
14987
15336
  updated_at?: string;
15337
+ warnings?: string[] | null;
14988
15338
  };
14989
15339
  Update: {
15340
+ belading?: Json | null;
15341
+ confidence?: Json | null;
14990
15342
  created_at?: string;
15343
+ currency?: string | null;
14991
15344
  id?: string;
14992
15345
  match_confidence?: number | null;
15346
+ match_source?: string | null;
15347
+ name_in_mail?: string | null;
15348
+ pieces_per_unit?: number | null;
14993
15349
  plant_type?: string | null;
15350
+ plants?: number | null;
15351
+ price_per?: string | null;
14994
15352
  product_id?: string | null;
14995
15353
  proposal_id?: string;
15354
+ qty_in_mail?: number | null;
14996
15355
  quantity?: number | null;
15356
+ raw_code?: string | null;
14997
15357
  raw_product_text?: string | null;
14998
15358
  sort_order?: number;
14999
15359
  unit?: string | null;
15360
+ unit_kind?: string | null;
15361
+ unit_price?: number | null;
15362
+ unit_text?: string | null;
15000
15363
  updated_at?: string;
15364
+ warnings?: string[] | null;
15001
15365
  };
15002
15366
  Relationships: [
15003
15367
  {
@@ -15071,6 +15435,51 @@ export type Database = {
15071
15435
  };
15072
15436
  Relationships: [];
15073
15437
  };
15438
+ mailbox_test_cases: {
15439
+ Row: {
15440
+ body_text: string;
15441
+ created_at: string;
15442
+ expected: Json;
15443
+ from_email: string;
15444
+ has_attachment: boolean;
15445
+ id: string;
15446
+ last_result: Json | null;
15447
+ last_run_at: string | null;
15448
+ name: string;
15449
+ sort_order: number;
15450
+ subject: string;
15451
+ updated_at: string;
15452
+ };
15453
+ Insert: {
15454
+ body_text?: string;
15455
+ created_at?: string;
15456
+ expected?: Json;
15457
+ from_email?: string;
15458
+ has_attachment?: boolean;
15459
+ id?: string;
15460
+ last_result?: Json | null;
15461
+ last_run_at?: string | null;
15462
+ name: string;
15463
+ sort_order?: number;
15464
+ subject?: string;
15465
+ updated_at?: string;
15466
+ };
15467
+ Update: {
15468
+ body_text?: string;
15469
+ created_at?: string;
15470
+ expected?: Json;
15471
+ from_email?: string;
15472
+ has_attachment?: boolean;
15473
+ id?: string;
15474
+ last_result?: Json | null;
15475
+ last_run_at?: string | null;
15476
+ name?: string;
15477
+ sort_order?: number;
15478
+ subject?: string;
15479
+ updated_at?: string;
15480
+ };
15481
+ Relationships: [];
15482
+ };
15074
15483
  manufacture_product_components: {
15075
15484
  Row: {
15076
15485
  component_type: string;
@@ -16193,10 +16602,12 @@ export type Database = {
16193
16602
  id: string;
16194
16603
  items: Json;
16195
16604
  notes: string | null;
16605
+ order_creation_attempts: number;
16196
16606
  order_creation_error: string | null;
16197
16607
  order_creation_failed_at: string | null;
16198
16608
  order_id: string | null;
16199
16609
  order_number: string | null;
16610
+ order_retry_payload: Json | null;
16200
16611
  recipient_id: string;
16201
16612
  total_amount: number;
16202
16613
  };
@@ -16210,10 +16621,12 @@ export type Database = {
16210
16621
  id?: string;
16211
16622
  items?: Json;
16212
16623
  notes?: string | null;
16624
+ order_creation_attempts?: number;
16213
16625
  order_creation_error?: string | null;
16214
16626
  order_creation_failed_at?: string | null;
16215
16627
  order_id?: string | null;
16216
16628
  order_number?: string | null;
16629
+ order_retry_payload?: Json | null;
16217
16630
  recipient_id: string;
16218
16631
  total_amount?: number;
16219
16632
  };
@@ -16227,10 +16640,12 @@ export type Database = {
16227
16640
  id?: string;
16228
16641
  items?: Json;
16229
16642
  notes?: string | null;
16643
+ order_creation_attempts?: number;
16230
16644
  order_creation_error?: string | null;
16231
16645
  order_creation_failed_at?: string | null;
16232
16646
  order_id?: string | null;
16233
16647
  order_number?: string | null;
16648
+ order_retry_payload?: Json | null;
16234
16649
  recipient_id?: string;
16235
16650
  total_amount?: number;
16236
16651
  };
@@ -20984,6 +21399,69 @@ export type Database = {
20984
21399
  }
20985
21400
  ];
20986
21401
  };
21402
+ productontwerp_import_map: {
21403
+ Row: {
21404
+ created_at: string;
21405
+ entity_type: string;
21406
+ id: string;
21407
+ imported_at: string;
21408
+ match_method: string | null;
21409
+ source_id: string;
21410
+ source_shell_id: string;
21411
+ target_id: string;
21412
+ updated_at: string;
21413
+ };
21414
+ Insert: {
21415
+ created_at?: string;
21416
+ entity_type: string;
21417
+ id?: string;
21418
+ imported_at?: string;
21419
+ match_method?: string | null;
21420
+ source_id: string;
21421
+ source_shell_id: string;
21422
+ target_id: string;
21423
+ updated_at?: string;
21424
+ };
21425
+ Update: {
21426
+ created_at?: string;
21427
+ entity_type?: string;
21428
+ id?: string;
21429
+ imported_at?: string;
21430
+ match_method?: string | null;
21431
+ source_id?: string;
21432
+ source_shell_id?: string;
21433
+ target_id?: string;
21434
+ updated_at?: string;
21435
+ };
21436
+ Relationships: [];
21437
+ };
21438
+ productontwerp_structure_codes: {
21439
+ Row: {
21440
+ code: string;
21441
+ created_at: string;
21442
+ entity_id: string;
21443
+ entity_type: string;
21444
+ id: string;
21445
+ updated_at: string;
21446
+ };
21447
+ Insert: {
21448
+ code: string;
21449
+ created_at?: string;
21450
+ entity_id: string;
21451
+ entity_type: string;
21452
+ id?: string;
21453
+ updated_at?: string;
21454
+ };
21455
+ Update: {
21456
+ code?: string;
21457
+ created_at?: string;
21458
+ entity_id?: string;
21459
+ entity_type?: string;
21460
+ id?: string;
21461
+ updated_at?: string;
21462
+ };
21463
+ Relationships: [];
21464
+ };
20987
21465
  products: {
20988
21466
  Row: {
20989
21467
  article_number: string | null;
@@ -28810,6 +29288,10 @@ export type Database = {
28810
29288
  };
28811
29289
  };
28812
29290
  Functions: {
29291
+ _arm_offer_order_retry: {
29292
+ Args: never;
29293
+ Returns: undefined;
29294
+ };
28813
29295
  _floriday_queue_cleanup_batch: {
28814
29296
  Args: {
28815
29297
  p_days: number;
@@ -30117,6 +30599,30 @@ export type Database = {
30117
30599
  };
30118
30600
  Returns: boolean;
30119
30601
  };
30602
+ floricode_sync_cron_schedule: {
30603
+ Args: {
30604
+ p_apikey: string;
30605
+ p_schedule: string;
30606
+ p_url: string;
30607
+ };
30608
+ Returns: number;
30609
+ };
30610
+ floricode_sync_cron_set_schedule: {
30611
+ Args: {
30612
+ p_schedule: string;
30613
+ };
30614
+ Returns: boolean;
30615
+ };
30616
+ floricode_sync_cron_status: {
30617
+ Args: never;
30618
+ Returns: {
30619
+ active: boolean;
30620
+ last_run_at: string;
30621
+ last_run_status: string;
30622
+ schedule: string;
30623
+ scheduled: boolean;
30624
+ }[];
30625
+ };
30120
30626
  floriday_adopt_connection: {
30121
30627
  Args: {
30122
30628
  p_new: string;
@@ -30176,6 +30682,26 @@ export type Database = {
30176
30682
  source_id: string;
30177
30683
  }[];
30178
30684
  };
30685
+ floriday_erp_leading_preview: {
30686
+ Args: {
30687
+ p_connection_id: string;
30688
+ p_product_ids: string[];
30689
+ p_stock_mode?: string;
30690
+ };
30691
+ Returns: {
30692
+ blocker: string;
30693
+ desired_available: boolean;
30694
+ desired_quantity: number;
30695
+ horizon_weeks: number;
30696
+ offer_forms: Json;
30697
+ product_id: string;
30698
+ product_name: string;
30699
+ sale_price: number;
30700
+ stock_mode: string;
30701
+ trade_item_id: string;
30702
+ weeks: Json;
30703
+ }[];
30704
+ };
30179
30705
  floriday_fill_publish_horizon: {
30180
30706
  Args: never;
30181
30707
  Returns: number;
@@ -30186,6 +30712,20 @@ export type Database = {
30186
30712
  };
30187
30713
  Returns: number;
30188
30714
  };
30715
+ floriday_leading_summary: {
30716
+ Args: {
30717
+ p_connection_id: string;
30718
+ };
30719
+ Returns: Json;
30720
+ };
30721
+ floriday_make_erp_leading: {
30722
+ Args: {
30723
+ p_connection_id: string;
30724
+ p_product_ids: string[];
30725
+ p_stock_mode?: string;
30726
+ };
30727
+ Returns: Json;
30728
+ };
30189
30729
  floriday_network_status: {
30190
30730
  Args: {
30191
30731
  p_organization_id: string;
@@ -30197,6 +30737,12 @@ export type Database = {
30197
30737
  synced_at: string;
30198
30738
  }[];
30199
30739
  };
30740
+ floriday_norm_offer_forms: {
30741
+ Args: {
30742
+ p: Json;
30743
+ };
30744
+ Returns: Json;
30745
+ };
30200
30746
  floriday_orphan_settings_count: {
30201
30747
  Args: never;
30202
30748
  Returns: number;
@@ -30225,10 +30771,34 @@ export type Database = {
30225
30771
  };
30226
30772
  Returns: number;
30227
30773
  };
30774
+ floriday_takeover_apply: {
30775
+ Args: {
30776
+ p_connection_id: string;
30777
+ p_items: Json;
30778
+ };
30779
+ Returns: Json;
30780
+ };
30781
+ floriday_takeover_fetch_state: {
30782
+ Args: {
30783
+ p_connection_id: string;
30784
+ p_entity?: string;
30785
+ };
30786
+ Returns: string;
30787
+ };
30788
+ floriday_takeover_undo: {
30789
+ Args: {
30790
+ p_run_id: string;
30791
+ };
30792
+ Returns: Json;
30793
+ };
30228
30794
  floriday_today_announce_summary: {
30229
30795
  Args: never;
30230
30796
  Returns: Json;
30231
30797
  };
30798
+ floriday_write_mode: {
30799
+ Args: never;
30800
+ Returns: Json;
30801
+ };
30232
30802
  format_cart_number: {
30233
30803
  Args: {
30234
30804
  p_pick_date: string;
@@ -31217,6 +31787,14 @@ export type Database = {
31217
31787
  };
31218
31788
  Returns: string;
31219
31789
  };
31790
+ log_offer_event_by_code: {
31791
+ Args: {
31792
+ p_code: string;
31793
+ p_event_type: string;
31794
+ p_metadata?: Json;
31795
+ };
31796
+ Returns: boolean;
31797
+ };
31220
31798
  logistics_active_layout_method: {
31221
31799
  Args: never;
31222
31800
  Returns: string;
@@ -31640,6 +32218,12 @@ export type Database = {
31640
32218
  };
31641
32219
  Returns: boolean;
31642
32220
  };
32221
+ logistics_cart_has_packing_slip: {
32222
+ Args: {
32223
+ p_cart_id: string;
32224
+ };
32225
+ Returns: boolean;
32226
+ };
31643
32227
  logistics_cart_ids_frozen: {
31644
32228
  Args: {
31645
32229
  p_cart_ids: string[];
@@ -32198,6 +32782,7 @@ export type Database = {
32198
32782
  p_delivery_date: string;
32199
32783
  p_delivery_location: string;
32200
32784
  p_moment_key?: string;
32785
+ p_own_transport?: boolean;
32201
32786
  };
32202
32787
  Returns: Json;
32203
32788
  };
@@ -32452,6 +33037,10 @@ export type Database = {
32452
33037
  Args: never;
32453
33038
  Returns: Json;
32454
33039
  };
33040
+ logistics_floriday_is_read_only: {
33041
+ Args: never;
33042
+ Returns: boolean;
33043
+ };
32455
33044
  logistics_floriday_layout_id: {
32456
33045
  Args: {
32457
33046
  p_documenttype: string;
@@ -32492,6 +33081,13 @@ export type Database = {
32492
33081
  };
32493
33082
  Returns: number;
32494
33083
  };
33084
+ logistics_floriday_push_hold_read_only: {
33085
+ Args: {
33086
+ _id: string;
33087
+ _revision: number;
33088
+ };
33089
+ Returns: string;
33090
+ };
32495
33091
  logistics_floriday_queue_push: {
32496
33092
  Args: {
32497
33093
  _order_ref: string;
@@ -32500,6 +33096,10 @@ export type Database = {
32500
33096
  };
32501
33097
  Returns: string;
32502
33098
  };
33099
+ logistics_floriday_release_read_only: {
33100
+ Args: never;
33101
+ Returns: Json;
33102
+ };
32503
33103
  logistics_floriday_status_updates_enabled: {
32504
33104
  Args: never;
32505
33105
  Returns: boolean;
@@ -32651,6 +33251,12 @@ export type Database = {
32651
33251
  };
32652
33252
  Returns: string;
32653
33253
  };
33254
+ logistics_nl_date: {
33255
+ Args: {
33256
+ p_day: string;
33257
+ };
33258
+ Returns: string;
33259
+ };
32654
33260
  logistics_nl_moment: {
32655
33261
  Args: {
32656
33262
  p_at: string;
@@ -32863,6 +33469,12 @@ export type Database = {
32863
33469
  };
32864
33470
  Returns: boolean;
32865
33471
  };
33472
+ logistics_order_is_shipped_status: {
33473
+ Args: {
33474
+ p_status: string;
33475
+ };
33476
+ Returns: boolean;
33477
+ };
32866
33478
  logistics_order_is_topick: {
32867
33479
  Args: {
32868
33480
  p_order_id: string;
@@ -33001,6 +33613,13 @@ export type Database = {
33001
33613
  Args: never;
33002
33614
  Returns: Json;
33003
33615
  };
33616
+ logistics_own_transport_departure: {
33617
+ Args: {
33618
+ p_delivery_date: string;
33619
+ p_pickup_at: string;
33620
+ };
33621
+ Returns: Json;
33622
+ };
33004
33623
  logistics_packing_autofix: {
33005
33624
  Args: {
33006
33625
  p_limit?: number;
@@ -33817,6 +34436,10 @@ export type Database = {
33817
34436
  peer_order_id: string;
33818
34437
  }[];
33819
34438
  };
34439
+ logistics_shell_base_url: {
34440
+ Args: never;
34441
+ Returns: string;
34442
+ };
33820
34443
  logistics_shift_to_workday: {
33821
34444
  Args: {
33822
34445
  p_days: string[];
@@ -33896,6 +34519,12 @@ export type Database = {
33896
34519
  };
33897
34520
  Returns: boolean;
33898
34521
  };
34522
+ logistics_slip_is_herprint: {
34523
+ Args: {
34524
+ p_slip_job_id: string;
34525
+ };
34526
+ Returns: boolean;
34527
+ };
33899
34528
  logistics_slip_note_claim: {
33900
34529
  Args: {
33901
34530
  _lease_seconds?: number;
@@ -33969,6 +34598,12 @@ export type Database = {
33969
34598
  };
33970
34599
  Returns: undefined;
33971
34600
  };
34601
+ logistics_slip_note_hold_read_only: {
34602
+ Args: {
34603
+ _id: string;
34604
+ };
34605
+ Returns: undefined;
34606
+ };
33972
34607
  logistics_slip_note_keep_waiting: {
33973
34608
  Args: {
33974
34609
  _class?: string;
@@ -33987,6 +34622,12 @@ export type Database = {
33987
34622
  };
33988
34623
  Returns: Json;
33989
34624
  };
34625
+ logistics_slip_note_skip_herprint: {
34626
+ Args: {
34627
+ _id: string;
34628
+ };
34629
+ Returns: undefined;
34630
+ };
33990
34631
  logistics_status_after_shipping: {
33991
34632
  Args: {
33992
34633
  p_status: string;
@@ -34101,6 +34742,12 @@ export type Database = {
34101
34742
  Args: never;
34102
34743
  Returns: Json;
34103
34744
  };
34745
+ logistics_sync_stock_alert_email_status: {
34746
+ Args: {
34747
+ p_limit?: number;
34748
+ };
34749
+ Returns: Json;
34750
+ };
34104
34751
  logistics_sync_task_carriers: {
34105
34752
  Args: {
34106
34753
  p_order_ref?: string;
@@ -34389,6 +35036,12 @@ export type Database = {
34389
35036
  };
34390
35037
  Returns: boolean;
34391
35038
  };
35039
+ logistics_verkoop_order_link: {
35040
+ Args: {
35041
+ p_order_id: string;
35042
+ };
35043
+ Returns: string;
35044
+ };
34392
35045
  logistics_working_hours_status: {
34393
35046
  Args: never;
34394
35047
  Returns: Json;
@@ -34405,6 +35058,14 @@ export type Database = {
34405
35058
  };
34406
35059
  Returns: number;
34407
35060
  };
35061
+ mailbox_claim_analysis: {
35062
+ Args: {
35063
+ p_force?: boolean;
35064
+ p_message_id: string;
35065
+ p_trigger?: string;
35066
+ };
35067
+ Returns: Json;
35068
+ };
34408
35069
  mark_offer_clicked: {
34409
35070
  Args: {
34410
35071
  p_code: string;
@@ -35735,6 +36396,23 @@ export type Database = {
35735
36396
  };
35736
36397
  Returns: string;
35737
36398
  };
36399
+ productontwerp_export: {
36400
+ Args: never;
36401
+ Returns: Json;
36402
+ };
36403
+ productontwerp_import: {
36404
+ Args: {
36405
+ p_dry_run: boolean;
36406
+ p_payload: Json;
36407
+ };
36408
+ Returns: Json;
36409
+ };
36410
+ productontwerp_product_ref: {
36411
+ Args: {
36412
+ p_id: string;
36413
+ };
36414
+ Returns: Json;
36415
+ };
35738
36416
  promote_floriday_customer: {
35739
36417
  Args: {
35740
36418
  _org_id: string;
@@ -35900,6 +36578,13 @@ export type Database = {
35900
36578
  };
35901
36579
  Returns: undefined;
35902
36580
  };
36581
+ record_offer_order_failure: {
36582
+ Args: {
36583
+ p_error: string;
36584
+ p_offer_order_id: string;
36585
+ };
36586
+ Returns: undefined;
36587
+ };
35903
36588
  refresh_external_customers_grouped: {
35904
36589
  Args: never;
35905
36590
  Returns: undefined;
@@ -36036,6 +36721,10 @@ export type Database = {
36036
36721
  };
36037
36722
  Returns: string;
36038
36723
  };
36724
+ retry_offer_orders: {
36725
+ Args: never;
36726
+ Returns: number;
36727
+ };
36039
36728
  retry_twinfield_push: {
36040
36729
  Args: {
36041
36730
  _customer_id: string;
@@ -36189,6 +36878,18 @@ export type Database = {
36189
36878
  };
36190
36879
  Returns: Json;
36191
36880
  };
36881
+ scan_kar_logs: {
36882
+ Args: {
36883
+ p_cart_ids: string[];
36884
+ };
36885
+ Returns: {
36886
+ created_at: string;
36887
+ kar_id: string;
36888
+ medewerker_naam: string;
36889
+ message: string;
36890
+ result: string;
36891
+ }[];
36892
+ };
36192
36893
  scan_kar_regels: {
36193
36894
  Args: {
36194
36895
  p_cart_id: string;
@@ -36206,6 +36907,7 @@ export type Database = {
36206
36907
  scan_log_code: {
36207
36908
  Args: {
36208
36909
  p_code: string;
36910
+ p_kar_id?: string;
36209
36911
  p_latency_ms?: number;
36210
36912
  p_medewerker?: string;
36211
36913
  p_message?: string;
@@ -36440,6 +37142,13 @@ export type Database = {
36440
37142
  };
36441
37143
  Returns: number;
36442
37144
  };
37145
+ schedule_floriday_customer_offers_sync: {
37146
+ Args: {
37147
+ p_apikey: string;
37148
+ p_url: string;
37149
+ };
37150
+ Returns: number;
37151
+ };
36443
37152
  schedule_floriday_customer_organizations_sync: {
36444
37153
  Args: {
36445
37154
  p_apikey: string;
@@ -36645,6 +37354,12 @@ export type Database = {
36645
37354
  };
36646
37355
  Returns: undefined;
36647
37356
  };
37357
+ set_primary_delivery_location: {
37358
+ Args: {
37359
+ p_location_id: string;
37360
+ };
37361
+ Returns: undefined;
37362
+ };
36648
37363
  set_product_stock: {
36649
37364
  Args: {
36650
37365
  p_incoming_stock?: number;
@@ -37493,6 +38208,24 @@ export type Database = {
37493
38208
  };
37494
38209
  Returns: number;
37495
38210
  };
38211
+ verkoop_create_order: {
38212
+ Args: {
38213
+ p_accept_late_signup?: boolean;
38214
+ p_accepted_by?: string;
38215
+ p_carrier_id: string;
38216
+ p_customer_id: string;
38217
+ p_customer_reference?: string;
38218
+ p_delivery_date: string;
38219
+ p_delivery_location_id: string;
38220
+ p_lines: Json;
38221
+ p_moment_key?: string;
38222
+ p_notes?: string;
38223
+ p_own_transport?: boolean;
38224
+ p_source: string;
38225
+ p_source_id: string;
38226
+ };
38227
+ Returns: Json;
38228
+ };
37496
38229
  vervang_printer: {
37497
38230
  Args: {
37498
38231
  _nieuw: string;