@flowselections/floriday-klanten-module 1.0.53 → 1.0.55

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.
@@ -2235,6 +2235,50 @@ export type Database = {
2235
2235
  }
2236
2236
  ];
2237
2237
  };
2238
+ customer_match_suggestions: {
2239
+ Row: {
2240
+ created_at: string;
2241
+ customer_id: string;
2242
+ decided_at: string | null;
2243
+ decided_by: string | null;
2244
+ floriday_organization_id: string;
2245
+ id: string;
2246
+ reason: string;
2247
+ status: string;
2248
+ updated_at: string;
2249
+ };
2250
+ Insert: {
2251
+ created_at?: string;
2252
+ customer_id: string;
2253
+ decided_at?: string | null;
2254
+ decided_by?: string | null;
2255
+ floriday_organization_id: string;
2256
+ id?: string;
2257
+ reason: string;
2258
+ status?: string;
2259
+ updated_at?: string;
2260
+ };
2261
+ Update: {
2262
+ created_at?: string;
2263
+ customer_id?: string;
2264
+ decided_at?: string | null;
2265
+ decided_by?: string | null;
2266
+ floriday_organization_id?: string;
2267
+ id?: string;
2268
+ reason?: string;
2269
+ status?: string;
2270
+ updated_at?: string;
2271
+ };
2272
+ Relationships: [
2273
+ {
2274
+ foreignKeyName: "customer_match_suggestions_customer_id_fkey";
2275
+ columns: ["customer_id"];
2276
+ isOneToOne: false;
2277
+ referencedRelation: "customers";
2278
+ referencedColumns: ["id"];
2279
+ }
2280
+ ];
2281
+ };
2238
2282
  customer_notes: {
2239
2283
  Row: {
2240
2284
  created_at: string;
@@ -3770,6 +3814,8 @@ export type Database = {
3770
3814
  orientatie: Database["public"]["Enums"]["doc_orientation"];
3771
3815
  page_settings: Json;
3772
3816
  papierformaat: string;
3817
+ standaard_sleutel: string | null;
3818
+ standaard_versie: number | null;
3773
3819
  systeem: boolean;
3774
3820
  thumbnail_url: string | null;
3775
3821
  updated_at: string;
@@ -3795,6 +3841,8 @@ export type Database = {
3795
3841
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3796
3842
  page_settings?: Json;
3797
3843
  papierformaat?: string;
3844
+ standaard_sleutel?: string | null;
3845
+ standaard_versie?: number | null;
3798
3846
  systeem?: boolean;
3799
3847
  thumbnail_url?: string | null;
3800
3848
  updated_at?: string;
@@ -3820,6 +3868,8 @@ export type Database = {
3820
3868
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3821
3869
  page_settings?: Json;
3822
3870
  papierformaat?: string;
3871
+ standaard_sleutel?: string | null;
3872
+ standaard_versie?: number | null;
3823
3873
  systeem?: boolean;
3824
3874
  thumbnail_url?: string | null;
3825
3875
  updated_at?: string;
@@ -6766,9 +6816,16 @@ export type Database = {
6766
6816
  id: string;
6767
6817
  is_active: boolean;
6768
6818
  label: string;
6819
+ organization_fetched_at: string | null;
6820
+ organization_id: string | null;
6821
+ organization_mailing_address: Json | null;
6769
6822
  organization_name: string | null;
6823
+ organization_physical_address: Json | null;
6770
6824
  preferred_warehouse_id: string | null;
6771
6825
  preferred_warehouse_name: string | null;
6826
+ read_only: boolean;
6827
+ read_only_changed_at: string | null;
6828
+ read_only_changed_by: string | null;
6772
6829
  token_expires_at: string | null;
6773
6830
  updated_at: string;
6774
6831
  };
@@ -6781,9 +6838,16 @@ export type Database = {
6781
6838
  id?: string;
6782
6839
  is_active?: boolean;
6783
6840
  label?: string;
6841
+ organization_fetched_at?: string | null;
6842
+ organization_id?: string | null;
6843
+ organization_mailing_address?: Json | null;
6784
6844
  organization_name?: string | null;
6845
+ organization_physical_address?: Json | null;
6785
6846
  preferred_warehouse_id?: string | null;
6786
6847
  preferred_warehouse_name?: string | null;
6848
+ read_only?: boolean;
6849
+ read_only_changed_at?: string | null;
6850
+ read_only_changed_by?: string | null;
6787
6851
  token_expires_at?: string | null;
6788
6852
  updated_at?: string;
6789
6853
  };
@@ -6796,9 +6860,16 @@ export type Database = {
6796
6860
  id?: string;
6797
6861
  is_active?: boolean;
6798
6862
  label?: string;
6863
+ organization_fetched_at?: string | null;
6864
+ organization_id?: string | null;
6865
+ organization_mailing_address?: Json | null;
6799
6866
  organization_name?: string | null;
6867
+ organization_physical_address?: Json | null;
6800
6868
  preferred_warehouse_id?: string | null;
6801
6869
  preferred_warehouse_name?: string | null;
6870
+ read_only?: boolean;
6871
+ read_only_changed_at?: string | null;
6872
+ read_only_changed_by?: string | null;
6802
6873
  token_expires_at?: string | null;
6803
6874
  updated_at?: string;
6804
6875
  };
@@ -7056,6 +7127,44 @@ export type Database = {
7056
7127
  }
7057
7128
  ];
7058
7129
  };
7130
+ floriday_customer_offers_cache: {
7131
+ Row: {
7132
+ connection_id: string;
7133
+ data: Json;
7134
+ fetched_at: string;
7135
+ floriday_id: string;
7136
+ is_deleted: boolean;
7137
+ sequence_number: number;
7138
+ updated_at: string;
7139
+ };
7140
+ Insert: {
7141
+ connection_id: string;
7142
+ data?: Json;
7143
+ fetched_at?: string;
7144
+ floriday_id: string;
7145
+ is_deleted?: boolean;
7146
+ sequence_number?: number;
7147
+ updated_at?: string;
7148
+ };
7149
+ Update: {
7150
+ connection_id?: string;
7151
+ data?: Json;
7152
+ fetched_at?: string;
7153
+ floriday_id?: string;
7154
+ is_deleted?: boolean;
7155
+ sequence_number?: number;
7156
+ updated_at?: string;
7157
+ };
7158
+ Relationships: [
7159
+ {
7160
+ foreignKeyName: "floriday_customer_offers_cache_connection_id_fkey";
7161
+ columns: ["connection_id"];
7162
+ isOneToOne: false;
7163
+ referencedRelation: "floriday_connections";
7164
+ referencedColumns: ["id"];
7165
+ }
7166
+ ];
7167
+ };
7059
7168
  floriday_customer_sticker_pdfs_cache: {
7060
7169
  Row: {
7061
7170
  byte_size: number | null;
@@ -7613,8 +7722,14 @@ export type Database = {
7613
7722
  created_at: string;
7614
7723
  desired_availability: boolean;
7615
7724
  desired_quantity: number;
7725
+ erp_leading: boolean | null;
7726
+ erp_leading_at: string | null;
7727
+ first_positive_published_at: string | null;
7616
7728
  fixed_quantity: number | null;
7729
+ floriday_offer_forms: Json | null;
7617
7730
  floriday_trade_item_id: string | null;
7731
+ follow_floriday_at: string | null;
7732
+ follow_floriday_result: string | null;
7618
7733
  id: string;
7619
7734
  last_confirmed_at: string | null;
7620
7735
  last_enqueued_at: string | null;
@@ -7645,8 +7760,14 @@ export type Database = {
7645
7760
  created_at?: string;
7646
7761
  desired_availability?: boolean;
7647
7762
  desired_quantity?: number;
7763
+ erp_leading?: boolean | null;
7764
+ erp_leading_at?: string | null;
7765
+ first_positive_published_at?: string | null;
7648
7766
  fixed_quantity?: number | null;
7767
+ floriday_offer_forms?: Json | null;
7649
7768
  floriday_trade_item_id?: string | null;
7769
+ follow_floriday_at?: string | null;
7770
+ follow_floriday_result?: string | null;
7650
7771
  id?: string;
7651
7772
  last_confirmed_at?: string | null;
7652
7773
  last_enqueued_at?: string | null;
@@ -7677,8 +7798,14 @@ export type Database = {
7677
7798
  created_at?: string;
7678
7799
  desired_availability?: boolean;
7679
7800
  desired_quantity?: number;
7801
+ erp_leading?: boolean | null;
7802
+ erp_leading_at?: string | null;
7803
+ first_positive_published_at?: string | null;
7680
7804
  fixed_quantity?: number | null;
7805
+ floriday_offer_forms?: Json | null;
7681
7806
  floriday_trade_item_id?: string | null;
7807
+ follow_floriday_at?: string | null;
7808
+ follow_floriday_result?: string | null;
7682
7809
  id?: string;
7683
7810
  last_confirmed_at?: string | null;
7684
7811
  last_enqueued_at?: string | null;
@@ -8496,33 +8623,45 @@ export type Database = {
8496
8623
  };
8497
8624
  floriday_sync_state: {
8498
8625
  Row: {
8626
+ backfill_done_at: string | null;
8627
+ backfill_started_at: string | null;
8628
+ backfill_target_sequence: number | null;
8499
8629
  connection_id: string;
8500
8630
  entity_type: string;
8501
8631
  last_error: string | null;
8502
8632
  last_items_processed: number | null;
8503
8633
  last_max_sequence_seen: number | null;
8634
+ last_rate_limited_at: string | null;
8504
8635
  last_sequence_number: number;
8505
8636
  last_success_at: string | null;
8506
8637
  last_synced_at: string | null;
8507
8638
  updated_at: string;
8508
8639
  };
8509
8640
  Insert: {
8641
+ backfill_done_at?: string | null;
8642
+ backfill_started_at?: string | null;
8643
+ backfill_target_sequence?: number | null;
8510
8644
  connection_id: string;
8511
8645
  entity_type: string;
8512
8646
  last_error?: string | null;
8513
8647
  last_items_processed?: number | null;
8514
8648
  last_max_sequence_seen?: number | null;
8649
+ last_rate_limited_at?: string | null;
8515
8650
  last_sequence_number?: number;
8516
8651
  last_success_at?: string | null;
8517
8652
  last_synced_at?: string | null;
8518
8653
  updated_at?: string;
8519
8654
  };
8520
8655
  Update: {
8656
+ backfill_done_at?: string | null;
8657
+ backfill_started_at?: string | null;
8658
+ backfill_target_sequence?: number | null;
8521
8659
  connection_id?: string;
8522
8660
  entity_type?: string;
8523
8661
  last_error?: string | null;
8524
8662
  last_items_processed?: number | null;
8525
8663
  last_max_sequence_seen?: number | null;
8664
+ last_rate_limited_at?: string | null;
8526
8665
  last_sequence_number?: number;
8527
8666
  last_success_at?: string | null;
8528
8667
  last_synced_at?: string | null;
@@ -8538,6 +8677,116 @@ export type Database = {
8538
8677
  }
8539
8678
  ];
8540
8679
  };
8680
+ floriday_takeover_items: {
8681
+ Row: {
8682
+ created_at: string;
8683
+ created_product: boolean;
8684
+ id: string;
8685
+ new_price: number | null;
8686
+ new_stock: number | null;
8687
+ offer_forms: Json | null;
8688
+ old_erp_leading: boolean | null;
8689
+ old_offer_forms: Json | null;
8690
+ old_price: number | null;
8691
+ old_stock: number | null;
8692
+ price_source: string | null;
8693
+ product_id: string;
8694
+ run_id: string;
8695
+ stock_source: string | null;
8696
+ trade_item_id: string;
8697
+ undo_skipped_reason: string | null;
8698
+ undone: boolean;
8699
+ };
8700
+ Insert: {
8701
+ created_at?: string;
8702
+ created_product?: boolean;
8703
+ id?: string;
8704
+ new_price?: number | null;
8705
+ new_stock?: number | null;
8706
+ offer_forms?: Json | null;
8707
+ old_erp_leading?: boolean | null;
8708
+ old_offer_forms?: Json | null;
8709
+ old_price?: number | null;
8710
+ old_stock?: number | null;
8711
+ price_source?: string | null;
8712
+ product_id: string;
8713
+ run_id: string;
8714
+ stock_source?: string | null;
8715
+ trade_item_id: string;
8716
+ undo_skipped_reason?: string | null;
8717
+ undone?: boolean;
8718
+ };
8719
+ Update: {
8720
+ created_at?: string;
8721
+ created_product?: boolean;
8722
+ id?: string;
8723
+ new_price?: number | null;
8724
+ new_stock?: number | null;
8725
+ offer_forms?: Json | null;
8726
+ old_erp_leading?: boolean | null;
8727
+ old_offer_forms?: Json | null;
8728
+ old_price?: number | null;
8729
+ old_stock?: number | null;
8730
+ price_source?: string | null;
8731
+ product_id?: string;
8732
+ run_id?: string;
8733
+ stock_source?: string | null;
8734
+ trade_item_id?: string;
8735
+ undo_skipped_reason?: string | null;
8736
+ undone?: boolean;
8737
+ };
8738
+ Relationships: [
8739
+ {
8740
+ foreignKeyName: "floriday_takeover_items_run_id_fkey";
8741
+ columns: ["run_id"];
8742
+ isOneToOne: false;
8743
+ referencedRelation: "floriday_takeover_runs";
8744
+ referencedColumns: ["id"];
8745
+ }
8746
+ ];
8747
+ };
8748
+ floriday_takeover_runs: {
8749
+ Row: {
8750
+ connection_id: string;
8751
+ created_at: string;
8752
+ created_products: number;
8753
+ id: string;
8754
+ status: string;
8755
+ total_items: number;
8756
+ undo_skipped_items: number;
8757
+ undone_at: string | null;
8758
+ undone_items: number;
8759
+ updated_at: string;
8760
+ user_id: string;
8761
+ };
8762
+ Insert: {
8763
+ connection_id: string;
8764
+ created_at?: string;
8765
+ created_products?: number;
8766
+ id?: string;
8767
+ status?: string;
8768
+ total_items?: number;
8769
+ undo_skipped_items?: number;
8770
+ undone_at?: string | null;
8771
+ undone_items?: number;
8772
+ updated_at?: string;
8773
+ user_id: string;
8774
+ };
8775
+ Update: {
8776
+ connection_id?: string;
8777
+ created_at?: string;
8778
+ created_products?: number;
8779
+ id?: string;
8780
+ status?: string;
8781
+ total_items?: number;
8782
+ undo_skipped_items?: number;
8783
+ undone_at?: string | null;
8784
+ undone_items?: number;
8785
+ updated_at?: string;
8786
+ user_id?: string;
8787
+ };
8788
+ Relationships: [];
8789
+ };
8541
8790
  floriday_token_refresh_log: {
8542
8791
  Row: {
8543
8792
  attempted_at: string;
@@ -11183,6 +11432,36 @@ export type Database = {
11183
11432
  };
11184
11433
  Relationships: [];
11185
11434
  };
11435
+ layout_auto_acties: {
11436
+ Row: {
11437
+ actie: string;
11438
+ created_at: string;
11439
+ detail: string;
11440
+ documenttype: string | null;
11441
+ id: string;
11442
+ layout_id: string | null;
11443
+ printer_id: string | null;
11444
+ };
11445
+ Insert: {
11446
+ actie: string;
11447
+ created_at?: string;
11448
+ detail?: string;
11449
+ documenttype?: string | null;
11450
+ id?: string;
11451
+ layout_id?: string | null;
11452
+ printer_id?: string | null;
11453
+ };
11454
+ Update: {
11455
+ actie?: string;
11456
+ created_at?: string;
11457
+ detail?: string;
11458
+ documenttype?: string | null;
11459
+ id?: string;
11460
+ layout_id?: string | null;
11461
+ printer_id?: string | null;
11462
+ };
11463
+ Relationships: [];
11464
+ };
11186
11465
  layout_logos: {
11187
11466
  Row: {
11188
11467
  bestand_url: string;
@@ -11240,6 +11519,51 @@ export type Database = {
11240
11519
  };
11241
11520
  Relationships: [];
11242
11521
  };
11522
+ layout_standaarden: {
11523
+ Row: {
11524
+ breedte_mm: number;
11525
+ config: Json;
11526
+ created_at: string;
11527
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
11528
+ hoogte_mm: number;
11529
+ naam: string;
11530
+ omschrijving: string;
11531
+ page_settings: Json;
11532
+ papierformaat: string;
11533
+ sleutel: string;
11534
+ updated_at: string;
11535
+ versie: number;
11536
+ };
11537
+ Insert: {
11538
+ breedte_mm?: number;
11539
+ config?: Json;
11540
+ created_at?: string;
11541
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
11542
+ hoogte_mm?: number;
11543
+ naam: string;
11544
+ omschrijving?: string;
11545
+ page_settings?: Json;
11546
+ papierformaat?: string;
11547
+ sleutel: string;
11548
+ updated_at?: string;
11549
+ versie: number;
11550
+ };
11551
+ Update: {
11552
+ breedte_mm?: number;
11553
+ config?: Json;
11554
+ created_at?: string;
11555
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
11556
+ hoogte_mm?: number;
11557
+ naam?: string;
11558
+ omschrijving?: string;
11559
+ page_settings?: Json;
11560
+ papierformaat?: string;
11561
+ sleutel?: string;
11562
+ updated_at?: string;
11563
+ versie?: number;
11564
+ };
11565
+ Relationships: [];
11566
+ };
11243
11567
  leave_requests: {
11244
11568
  Row: {
11245
11569
  cancellation_requested_at: string | null;
@@ -14625,6 +14949,45 @@ export type Database = {
14625
14949
  };
14626
14950
  Relationships: [];
14627
14951
  };
14952
+ mailbox_ai_runs: {
14953
+ Row: {
14954
+ error: string | null;
14955
+ finished_at: string | null;
14956
+ id: string;
14957
+ input_tokens: number | null;
14958
+ is_test: boolean;
14959
+ message_id: string | null;
14960
+ ok: boolean | null;
14961
+ output_tokens: number | null;
14962
+ started_at: string;
14963
+ trigger: string;
14964
+ };
14965
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
14990
+ };
14628
14991
  mailbox_ai_settings: {
14629
14992
  Row: {
14630
14993
  active_goal_key: string | null;
@@ -14658,6 +15021,78 @@ export type Database = {
14658
15021
  };
14659
15022
  Relationships: [];
14660
15023
  };
15024
+ mailbox_filter_settings: {
15025
+ Row: {
15026
+ analyze_unknown_with_signals: boolean;
15027
+ conf_green: number;
15028
+ conf_orange: number;
15029
+ created_at: string;
15030
+ domain_match: boolean;
15031
+ duplicate_days: number;
15032
+ id: string;
15033
+ max_agent_reparse: number;
15034
+ max_ai_per_day: number;
15035
+ max_ai_per_month: number;
15036
+ max_candidates: number;
15037
+ max_retries_per_run: number;
15038
+ max_retry_attempts: number;
15039
+ min_signals_unknown: number;
15040
+ negative_keywords: string[];
15041
+ order_keywords: string[];
15042
+ order_patterns: string[];
15043
+ singleton: boolean;
15044
+ skip_domains: string[];
15045
+ skip_senders: string[];
15046
+ updated_at: string;
15047
+ };
15048
+ Insert: {
15049
+ analyze_unknown_with_signals?: boolean;
15050
+ conf_green?: number;
15051
+ conf_orange?: number;
15052
+ created_at?: string;
15053
+ domain_match?: boolean;
15054
+ duplicate_days?: number;
15055
+ id?: string;
15056
+ max_agent_reparse?: number;
15057
+ max_ai_per_day?: number;
15058
+ max_ai_per_month?: number;
15059
+ max_candidates?: number;
15060
+ max_retries_per_run?: number;
15061
+ max_retry_attempts?: number;
15062
+ min_signals_unknown?: number;
15063
+ negative_keywords?: string[];
15064
+ order_keywords?: string[];
15065
+ order_patterns?: string[];
15066
+ singleton?: boolean;
15067
+ skip_domains?: string[];
15068
+ skip_senders?: string[];
15069
+ updated_at?: string;
15070
+ };
15071
+ Update: {
15072
+ analyze_unknown_with_signals?: boolean;
15073
+ conf_green?: number;
15074
+ conf_orange?: number;
15075
+ created_at?: string;
15076
+ domain_match?: boolean;
15077
+ duplicate_days?: number;
15078
+ id?: string;
15079
+ max_agent_reparse?: number;
15080
+ max_ai_per_day?: number;
15081
+ max_ai_per_month?: number;
15082
+ max_candidates?: number;
15083
+ max_retries_per_run?: number;
15084
+ max_retry_attempts?: number;
15085
+ min_signals_unknown?: number;
15086
+ negative_keywords?: string[];
15087
+ order_keywords?: string[];
15088
+ order_patterns?: string[];
15089
+ singleton?: boolean;
15090
+ skip_domains?: string[];
15091
+ skip_senders?: string[];
15092
+ updated_at?: string;
15093
+ };
15094
+ Relationships: [];
15095
+ };
14661
15096
  mailbox_ingest_runs: {
14662
15097
  Row: {
14663
15098
  connection_id: string | null;
@@ -14696,6 +15131,10 @@ export type Database = {
14696
15131
  };
14697
15132
  mailbox_messages: {
14698
15133
  Row: {
15134
+ analysis_count: number;
15135
+ analysis_note: string | null;
15136
+ analysis_started_at: string | null;
15137
+ analysis_state: string | null;
14699
15138
  attachments: Json;
14700
15139
  body_html: string | null;
14701
15140
  body_text: string | null;
@@ -14704,6 +15143,8 @@ export type Database = {
14704
15143
  created_at: string;
14705
15144
  error_message: string | null;
14706
15145
  external_id: string | null;
15146
+ filter_outcome: string | null;
15147
+ filter_reason: string | null;
14707
15148
  from_email: string | null;
14708
15149
  from_name: string | null;
14709
15150
  has_attachments: boolean;
@@ -14720,6 +15161,10 @@ export type Database = {
14720
15161
  updated_at: string;
14721
15162
  };
14722
15163
  Insert: {
15164
+ analysis_count?: number;
15165
+ analysis_note?: string | null;
15166
+ analysis_started_at?: string | null;
15167
+ analysis_state?: string | null;
14723
15168
  attachments?: Json;
14724
15169
  body_html?: string | null;
14725
15170
  body_text?: string | null;
@@ -14728,6 +15173,8 @@ export type Database = {
14728
15173
  created_at?: string;
14729
15174
  error_message?: string | null;
14730
15175
  external_id?: string | null;
15176
+ filter_outcome?: string | null;
15177
+ filter_reason?: string | null;
14731
15178
  from_email?: string | null;
14732
15179
  from_name?: string | null;
14733
15180
  has_attachments?: boolean;
@@ -14744,6 +15191,10 @@ export type Database = {
14744
15191
  updated_at?: string;
14745
15192
  };
14746
15193
  Update: {
15194
+ analysis_count?: number;
15195
+ analysis_note?: string | null;
15196
+ analysis_started_at?: string | null;
15197
+ analysis_state?: string | null;
14747
15198
  attachments?: Json;
14748
15199
  body_html?: string | null;
14749
15200
  body_text?: string | null;
@@ -14752,6 +15203,8 @@ export type Database = {
14752
15203
  created_at?: string;
14753
15204
  error_message?: string | null;
14754
15205
  external_id?: string | null;
15206
+ filter_outcome?: string | null;
15207
+ filter_reason?: string | null;
14755
15208
  from_email?: string | null;
14756
15209
  from_name?: string | null;
14757
15210
  has_attachments?: boolean;
@@ -14798,6 +15251,7 @@ export type Database = {
14798
15251
  confidence: number | null;
14799
15252
  created_at: string;
14800
15253
  created_order_id: string | null;
15254
+ customer_reference: string | null;
14801
15255
  delivery_date: string | null;
14802
15256
  id: string;
14803
15257
  matched_customer_id: string | null;
@@ -14816,6 +15270,7 @@ export type Database = {
14816
15270
  confidence?: number | null;
14817
15271
  created_at?: string;
14818
15272
  created_order_id?: string | null;
15273
+ customer_reference?: string | null;
14819
15274
  delivery_date?: string | null;
14820
15275
  id?: string;
14821
15276
  matched_customer_id?: string | null;
@@ -14834,6 +15289,7 @@ export type Database = {
14834
15289
  confidence?: number | null;
14835
15290
  created_at?: string;
14836
15291
  created_order_id?: string | null;
15292
+ customer_reference?: string | null;
14837
15293
  delivery_date?: string | null;
14838
15294
  id?: string;
14839
15295
  matched_customer_id?: string | null;
@@ -14970,43 +15426,85 @@ export type Database = {
14970
15426
  };
14971
15427
  mailbox_proposal_lines: {
14972
15428
  Row: {
15429
+ belading: Json | null;
15430
+ confidence: Json | null;
14973
15431
  created_at: string;
15432
+ currency: string | null;
14974
15433
  id: string;
14975
15434
  match_confidence: number | null;
15435
+ match_source: string | null;
15436
+ name_in_mail: string | null;
15437
+ pieces_per_unit: number | null;
14976
15438
  plant_type: string | null;
15439
+ plants: number | null;
15440
+ price_per: string | null;
14977
15441
  product_id: string | null;
14978
15442
  proposal_id: string;
15443
+ qty_in_mail: number | null;
14979
15444
  quantity: number | null;
15445
+ raw_code: string | null;
14980
15446
  raw_product_text: string | null;
14981
15447
  sort_order: number;
14982
15448
  unit: string | null;
15449
+ unit_kind: string | null;
15450
+ unit_price: number | null;
15451
+ unit_text: string | null;
14983
15452
  updated_at: string;
15453
+ warnings: string[] | null;
14984
15454
  };
14985
15455
  Insert: {
15456
+ belading?: Json | null;
15457
+ confidence?: Json | null;
14986
15458
  created_at?: string;
15459
+ currency?: string | null;
14987
15460
  id?: string;
14988
15461
  match_confidence?: number | null;
15462
+ match_source?: string | null;
15463
+ name_in_mail?: string | null;
15464
+ pieces_per_unit?: number | null;
14989
15465
  plant_type?: string | null;
15466
+ plants?: number | null;
15467
+ price_per?: string | null;
14990
15468
  product_id?: string | null;
14991
15469
  proposal_id: string;
15470
+ qty_in_mail?: number | null;
14992
15471
  quantity?: number | null;
15472
+ raw_code?: string | null;
14993
15473
  raw_product_text?: string | null;
14994
15474
  sort_order?: number;
14995
15475
  unit?: string | null;
15476
+ unit_kind?: string | null;
15477
+ unit_price?: number | null;
15478
+ unit_text?: string | null;
14996
15479
  updated_at?: string;
15480
+ warnings?: string[] | null;
14997
15481
  };
14998
15482
  Update: {
15483
+ belading?: Json | null;
15484
+ confidence?: Json | null;
14999
15485
  created_at?: string;
15486
+ currency?: string | null;
15000
15487
  id?: string;
15001
15488
  match_confidence?: number | null;
15489
+ match_source?: string | null;
15490
+ name_in_mail?: string | null;
15491
+ pieces_per_unit?: number | null;
15002
15492
  plant_type?: string | null;
15493
+ plants?: number | null;
15494
+ price_per?: string | null;
15003
15495
  product_id?: string | null;
15004
15496
  proposal_id?: string;
15497
+ qty_in_mail?: number | null;
15005
15498
  quantity?: number | null;
15499
+ raw_code?: string | null;
15006
15500
  raw_product_text?: string | null;
15007
15501
  sort_order?: number;
15008
15502
  unit?: string | null;
15503
+ unit_kind?: string | null;
15504
+ unit_price?: number | null;
15505
+ unit_text?: string | null;
15009
15506
  updated_at?: string;
15507
+ warnings?: string[] | null;
15010
15508
  };
15011
15509
  Relationships: [
15012
15510
  {
@@ -15080,6 +15578,51 @@ export type Database = {
15080
15578
  };
15081
15579
  Relationships: [];
15082
15580
  };
15581
+ mailbox_test_cases: {
15582
+ Row: {
15583
+ body_text: string;
15584
+ created_at: string;
15585
+ expected: Json;
15586
+ from_email: string;
15587
+ has_attachment: boolean;
15588
+ id: string;
15589
+ last_result: Json | null;
15590
+ last_run_at: string | null;
15591
+ name: string;
15592
+ sort_order: number;
15593
+ subject: string;
15594
+ updated_at: string;
15595
+ };
15596
+ Insert: {
15597
+ body_text?: string;
15598
+ created_at?: string;
15599
+ expected?: Json;
15600
+ from_email?: string;
15601
+ has_attachment?: boolean;
15602
+ id?: string;
15603
+ last_result?: Json | null;
15604
+ last_run_at?: string | null;
15605
+ name: string;
15606
+ sort_order?: number;
15607
+ subject?: string;
15608
+ updated_at?: string;
15609
+ };
15610
+ Update: {
15611
+ body_text?: string;
15612
+ created_at?: string;
15613
+ expected?: Json;
15614
+ from_email?: string;
15615
+ has_attachment?: boolean;
15616
+ id?: string;
15617
+ last_result?: Json | null;
15618
+ last_run_at?: string | null;
15619
+ name?: string;
15620
+ sort_order?: number;
15621
+ subject?: string;
15622
+ updated_at?: string;
15623
+ };
15624
+ Relationships: [];
15625
+ };
15083
15626
  manufacture_product_components: {
15084
15627
  Row: {
15085
15628
  component_type: string;
@@ -20999,6 +21542,69 @@ export type Database = {
20999
21542
  }
21000
21543
  ];
21001
21544
  };
21545
+ productontwerp_import_map: {
21546
+ Row: {
21547
+ created_at: string;
21548
+ entity_type: string;
21549
+ id: string;
21550
+ imported_at: string;
21551
+ match_method: string | null;
21552
+ source_id: string;
21553
+ source_shell_id: string;
21554
+ target_id: string;
21555
+ updated_at: string;
21556
+ };
21557
+ Insert: {
21558
+ created_at?: string;
21559
+ entity_type: string;
21560
+ id?: string;
21561
+ imported_at?: string;
21562
+ match_method?: string | null;
21563
+ source_id: string;
21564
+ source_shell_id: string;
21565
+ target_id: string;
21566
+ updated_at?: string;
21567
+ };
21568
+ Update: {
21569
+ created_at?: string;
21570
+ entity_type?: string;
21571
+ id?: string;
21572
+ imported_at?: string;
21573
+ match_method?: string | null;
21574
+ source_id?: string;
21575
+ source_shell_id?: string;
21576
+ target_id?: string;
21577
+ updated_at?: string;
21578
+ };
21579
+ Relationships: [];
21580
+ };
21581
+ productontwerp_structure_codes: {
21582
+ Row: {
21583
+ code: string;
21584
+ created_at: string;
21585
+ entity_id: string;
21586
+ entity_type: string;
21587
+ id: string;
21588
+ updated_at: string;
21589
+ };
21590
+ Insert: {
21591
+ code: string;
21592
+ created_at?: string;
21593
+ entity_id: string;
21594
+ entity_type: string;
21595
+ id?: string;
21596
+ updated_at?: string;
21597
+ };
21598
+ Update: {
21599
+ code?: string;
21600
+ created_at?: string;
21601
+ entity_id?: string;
21602
+ entity_type?: string;
21603
+ id?: string;
21604
+ updated_at?: string;
21605
+ };
21606
+ Relationships: [];
21607
+ };
21002
21608
  products: {
21003
21609
  Row: {
21004
21610
  article_number: string | null;
@@ -28856,6 +29462,10 @@ export type Database = {
28856
29462
  };
28857
29463
  Returns: string[][];
28858
29464
  };
29465
+ _layout_is_beheerder: {
29466
+ Args: never;
29467
+ Returns: boolean;
29468
+ };
28859
29469
  _migrate_rewrite_stock_key: {
28860
29470
  Args: {
28861
29471
  _from_key: string;
@@ -30183,6 +30793,18 @@ export type Database = {
30183
30793
  Args: never;
30184
30794
  Returns: undefined;
30185
30795
  };
30796
+ floriday_customer_candidates: {
30797
+ Args: never;
30798
+ Returns: {
30799
+ in_cache: boolean;
30800
+ organization_id: string;
30801
+ reason: string;
30802
+ }[];
30803
+ };
30804
+ floriday_customer_promotion_preview: {
30805
+ Args: never;
30806
+ Returns: Json;
30807
+ };
30186
30808
  floriday_default_owner: {
30187
30809
  Args: {
30188
30810
  p_connection_id: string;
@@ -30219,16 +30841,70 @@ export type Database = {
30219
30841
  source_id: string;
30220
30842
  }[];
30221
30843
  };
30844
+ floriday_eigen_organisatie: {
30845
+ Args: never;
30846
+ Returns: {
30847
+ adres: string;
30848
+ gln: string;
30849
+ land: string;
30850
+ naam: string;
30851
+ opgehaald_op: string;
30852
+ organisatie_id: string;
30853
+ plaats: string;
30854
+ postcode: string;
30855
+ }[];
30856
+ };
30857
+ floriday_erp_leading_preview: {
30858
+ Args: {
30859
+ p_connection_id: string;
30860
+ p_product_ids: string[];
30861
+ p_stock_mode?: string;
30862
+ };
30863
+ Returns: {
30864
+ blocker: string;
30865
+ desired_available: boolean;
30866
+ desired_quantity: number;
30867
+ horizon_weeks: number;
30868
+ offer_forms: Json;
30869
+ product_id: string;
30870
+ product_name: string;
30871
+ sale_price: number;
30872
+ stock_mode: string;
30873
+ trade_item_id: string;
30874
+ weeks: Json;
30875
+ }[];
30876
+ };
30222
30877
  floriday_fill_publish_horizon: {
30223
30878
  Args: never;
30224
30879
  Returns: number;
30225
30880
  };
30881
+ floriday_follow_apply: {
30882
+ Args: {
30883
+ p_connection_id: string;
30884
+ p_items: Json;
30885
+ };
30886
+ Returns: Json;
30887
+ };
30226
30888
  floriday_ingest_sales_orders: {
30227
30889
  Args: {
30228
30890
  p_limit?: number;
30229
30891
  };
30230
30892
  Returns: number;
30231
30893
  };
30894
+ floriday_leading_summary: {
30895
+ Args: {
30896
+ p_connection_id: string;
30897
+ };
30898
+ Returns: Json;
30899
+ };
30900
+ floriday_make_erp_leading: {
30901
+ Args: {
30902
+ p_connection_id: string;
30903
+ p_product_ids: string[];
30904
+ p_stock_mode?: string;
30905
+ };
30906
+ Returns: Json;
30907
+ };
30232
30908
  floriday_network_status: {
30233
30909
  Args: {
30234
30910
  p_organization_id: string;
@@ -30240,6 +30916,12 @@ export type Database = {
30240
30916
  synced_at: string;
30241
30917
  }[];
30242
30918
  };
30919
+ floriday_norm_offer_forms: {
30920
+ Args: {
30921
+ p: Json;
30922
+ };
30923
+ Returns: Json;
30924
+ };
30243
30925
  floriday_orphan_settings_count: {
30244
30926
  Args: never;
30245
30927
  Returns: number;
@@ -30268,10 +30950,34 @@ export type Database = {
30268
30950
  };
30269
30951
  Returns: number;
30270
30952
  };
30953
+ floriday_takeover_apply: {
30954
+ Args: {
30955
+ p_connection_id: string;
30956
+ p_items: Json;
30957
+ };
30958
+ Returns: Json;
30959
+ };
30960
+ floriday_takeover_fetch_state: {
30961
+ Args: {
30962
+ p_connection_id: string;
30963
+ p_entity?: string;
30964
+ };
30965
+ Returns: string;
30966
+ };
30967
+ floriday_takeover_undo: {
30968
+ Args: {
30969
+ p_run_id: string;
30970
+ };
30971
+ Returns: Json;
30972
+ };
30271
30973
  floriday_today_announce_summary: {
30272
30974
  Args: never;
30273
30975
  Returns: Json;
30274
30976
  };
30977
+ floriday_write_mode: {
30978
+ Args: never;
30979
+ Returns: Json;
30980
+ };
30275
30981
  format_cart_number: {
30276
30982
  Args: {
30277
30983
  p_pick_date: string;
@@ -31130,6 +31836,10 @@ export type Database = {
31130
31836
  };
31131
31837
  Returns: boolean;
31132
31838
  };
31839
+ klanten_install_check: {
31840
+ Args: never;
31841
+ Returns: Json;
31842
+ };
31133
31843
  layout_print_document: {
31134
31844
  Args: {
31135
31845
  _documentnaam: string;
@@ -31156,6 +31866,18 @@ export type Database = {
31156
31866
  status: string;
31157
31867
  }[];
31158
31868
  };
31869
+ layout_standaard_overnemen: {
31870
+ Args: {
31871
+ _layout_id: string;
31872
+ };
31873
+ Returns: Json;
31874
+ };
31875
+ layout_versie_terugzetten: {
31876
+ Args: {
31877
+ _versie_id: string;
31878
+ };
31879
+ Returns: number;
31880
+ };
31159
31881
  layout_verwijzing_omzetten: {
31160
31882
  Args: {
31161
31883
  _nieuw: string;
@@ -31169,6 +31891,10 @@ export type Database = {
31169
31891
  Args: never;
31170
31892
  Returns: Json;
31171
31893
  };
31894
+ layout_zorg_systeemlayouts: {
31895
+ Args: never;
31896
+ Returns: number;
31897
+ };
31172
31898
  list_medewerkers: {
31173
31899
  Args: never;
31174
31900
  Returns: {
@@ -31691,6 +32417,12 @@ export type Database = {
31691
32417
  };
31692
32418
  Returns: boolean;
31693
32419
  };
32420
+ logistics_cart_has_packing_slip: {
32421
+ Args: {
32422
+ p_cart_id: string;
32423
+ };
32424
+ Returns: boolean;
32425
+ };
31694
32426
  logistics_cart_ids_frozen: {
31695
32427
  Args: {
31696
32428
  p_cart_ids: string[];
@@ -32249,6 +32981,7 @@ export type Database = {
32249
32981
  p_delivery_date: string;
32250
32982
  p_delivery_location: string;
32251
32983
  p_moment_key?: string;
32984
+ p_own_transport?: boolean;
32252
32985
  };
32253
32986
  Returns: Json;
32254
32987
  };
@@ -32335,6 +33068,10 @@ export type Database = {
32335
33068
  };
32336
33069
  Returns: Json;
32337
33070
  };
33071
+ logistics_ensure_runtime_defaults: {
33072
+ Args: never;
33073
+ Returns: undefined;
33074
+ };
32338
33075
  logistics_ensure_shipping_notes: {
32339
33076
  Args: {
32340
33077
  p_limit?: number;
@@ -32503,6 +33240,10 @@ export type Database = {
32503
33240
  Args: never;
32504
33241
  Returns: Json;
32505
33242
  };
33243
+ logistics_floriday_is_read_only: {
33244
+ Args: never;
33245
+ Returns: boolean;
33246
+ };
32506
33247
  logistics_floriday_layout_id: {
32507
33248
  Args: {
32508
33249
  p_documenttype: string;
@@ -32543,6 +33284,13 @@ export type Database = {
32543
33284
  };
32544
33285
  Returns: number;
32545
33286
  };
33287
+ logistics_floriday_push_hold_read_only: {
33288
+ Args: {
33289
+ _id: string;
33290
+ _revision: number;
33291
+ };
33292
+ Returns: string;
33293
+ };
32546
33294
  logistics_floriday_queue_push: {
32547
33295
  Args: {
32548
33296
  _order_ref: string;
@@ -32551,6 +33299,10 @@ export type Database = {
32551
33299
  };
32552
33300
  Returns: string;
32553
33301
  };
33302
+ logistics_floriday_release_read_only: {
33303
+ Args: never;
33304
+ Returns: Json;
33305
+ };
32554
33306
  logistics_floriday_status_updates_enabled: {
32555
33307
  Args: never;
32556
33308
  Returns: boolean;
@@ -32702,6 +33454,12 @@ export type Database = {
32702
33454
  };
32703
33455
  Returns: string;
32704
33456
  };
33457
+ logistics_nl_date: {
33458
+ Args: {
33459
+ p_day: string;
33460
+ };
33461
+ Returns: string;
33462
+ };
32705
33463
  logistics_nl_moment: {
32706
33464
  Args: {
32707
33465
  p_at: string;
@@ -32914,6 +33672,12 @@ export type Database = {
32914
33672
  };
32915
33673
  Returns: boolean;
32916
33674
  };
33675
+ logistics_order_is_shipped_status: {
33676
+ Args: {
33677
+ p_status: string;
33678
+ };
33679
+ Returns: boolean;
33680
+ };
32917
33681
  logistics_order_is_topick: {
32918
33682
  Args: {
32919
33683
  p_order_id: string;
@@ -33052,6 +33816,13 @@ export type Database = {
33052
33816
  Args: never;
33053
33817
  Returns: Json;
33054
33818
  };
33819
+ logistics_own_transport_departure: {
33820
+ Args: {
33821
+ p_delivery_date: string;
33822
+ p_pickup_at: string;
33823
+ };
33824
+ Returns: Json;
33825
+ };
33055
33826
  logistics_packing_autofix: {
33056
33827
  Args: {
33057
33828
  p_limit?: number;
@@ -33868,6 +34639,10 @@ export type Database = {
33868
34639
  peer_order_id: string;
33869
34640
  }[];
33870
34641
  };
34642
+ logistics_shell_base_url: {
34643
+ Args: never;
34644
+ Returns: string;
34645
+ };
33871
34646
  logistics_shift_to_workday: {
33872
34647
  Args: {
33873
34648
  p_days: string[];
@@ -33947,6 +34722,12 @@ export type Database = {
33947
34722
  };
33948
34723
  Returns: boolean;
33949
34724
  };
34725
+ logistics_slip_is_herprint: {
34726
+ Args: {
34727
+ p_slip_job_id: string;
34728
+ };
34729
+ Returns: boolean;
34730
+ };
33950
34731
  logistics_slip_note_claim: {
33951
34732
  Args: {
33952
34733
  _lease_seconds?: number;
@@ -34020,6 +34801,12 @@ export type Database = {
34020
34801
  };
34021
34802
  Returns: undefined;
34022
34803
  };
34804
+ logistics_slip_note_hold_read_only: {
34805
+ Args: {
34806
+ _id: string;
34807
+ };
34808
+ Returns: undefined;
34809
+ };
34023
34810
  logistics_slip_note_keep_waiting: {
34024
34811
  Args: {
34025
34812
  _class?: string;
@@ -34038,6 +34825,12 @@ export type Database = {
34038
34825
  };
34039
34826
  Returns: Json;
34040
34827
  };
34828
+ logistics_slip_note_skip_herprint: {
34829
+ Args: {
34830
+ _id: string;
34831
+ };
34832
+ Returns: undefined;
34833
+ };
34041
34834
  logistics_status_after_shipping: {
34042
34835
  Args: {
34043
34836
  p_status: string;
@@ -34152,6 +34945,12 @@ export type Database = {
34152
34945
  Args: never;
34153
34946
  Returns: Json;
34154
34947
  };
34948
+ logistics_sync_stock_alert_email_status: {
34949
+ Args: {
34950
+ p_limit?: number;
34951
+ };
34952
+ Returns: Json;
34953
+ };
34155
34954
  logistics_sync_task_carriers: {
34156
34955
  Args: {
34157
34956
  p_order_ref?: string;
@@ -34440,6 +35239,12 @@ export type Database = {
34440
35239
  };
34441
35240
  Returns: boolean;
34442
35241
  };
35242
+ logistics_verkoop_order_link: {
35243
+ Args: {
35244
+ p_order_id: string;
35245
+ };
35246
+ Returns: string;
35247
+ };
34443
35248
  logistics_working_hours_status: {
34444
35249
  Args: never;
34445
35250
  Returns: Json;
@@ -34456,6 +35261,14 @@ export type Database = {
34456
35261
  };
34457
35262
  Returns: number;
34458
35263
  };
35264
+ mailbox_claim_analysis: {
35265
+ Args: {
35266
+ p_force?: boolean;
35267
+ p_message_id: string;
35268
+ p_trigger?: string;
35269
+ };
35270
+ Returns: Json;
35271
+ };
34459
35272
  mark_offer_clicked: {
34460
35273
  Args: {
34461
35274
  p_code: string;
@@ -35786,6 +36599,23 @@ export type Database = {
35786
36599
  };
35787
36600
  Returns: string;
35788
36601
  };
36602
+ productontwerp_export: {
36603
+ Args: never;
36604
+ Returns: Json;
36605
+ };
36606
+ productontwerp_import: {
36607
+ Args: {
36608
+ p_dry_run: boolean;
36609
+ p_payload: Json;
36610
+ };
36611
+ Returns: Json;
36612
+ };
36613
+ productontwerp_product_ref: {
36614
+ Args: {
36615
+ p_id: string;
36616
+ };
36617
+ Returns: Json;
36618
+ };
35789
36619
  promote_floriday_customer: {
35790
36620
  Args: {
35791
36621
  _org_id: string;
@@ -36137,6 +36967,10 @@ export type Database = {
36137
36967
  Args: never;
36138
36968
  Returns: undefined;
36139
36969
  };
36970
+ run_floriday_follow: {
36971
+ Args: never;
36972
+ Returns: undefined;
36973
+ };
36140
36974
  run_floriday_stock_queue_process: {
36141
36975
  Args: never;
36142
36976
  Returns: undefined;
@@ -36251,6 +37085,18 @@ export type Database = {
36251
37085
  };
36252
37086
  Returns: Json;
36253
37087
  };
37088
+ scan_kar_logs: {
37089
+ Args: {
37090
+ p_cart_ids: string[];
37091
+ };
37092
+ Returns: {
37093
+ created_at: string;
37094
+ kar_id: string;
37095
+ medewerker_naam: string;
37096
+ message: string;
37097
+ result: string;
37098
+ }[];
37099
+ };
36254
37100
  scan_kar_regels: {
36255
37101
  Args: {
36256
37102
  p_cart_id: string;
@@ -36268,6 +37114,7 @@ export type Database = {
36268
37114
  scan_log_code: {
36269
37115
  Args: {
36270
37116
  p_code: string;
37117
+ p_kar_id?: string;
36271
37118
  p_latency_ms?: number;
36272
37119
  p_medewerker?: string;
36273
37120
  p_message?: string;
@@ -36502,6 +37349,13 @@ export type Database = {
36502
37349
  };
36503
37350
  Returns: number;
36504
37351
  };
37352
+ schedule_floriday_customer_offers_sync: {
37353
+ Args: {
37354
+ p_apikey: string;
37355
+ p_url: string;
37356
+ };
37357
+ Returns: number;
37358
+ };
36505
37359
  schedule_floriday_customer_organizations_sync: {
36506
37360
  Args: {
36507
37361
  p_apikey: string;
@@ -37561,6 +38415,24 @@ export type Database = {
37561
38415
  };
37562
38416
  Returns: number;
37563
38417
  };
38418
+ verkoop_create_order: {
38419
+ Args: {
38420
+ p_accept_late_signup?: boolean;
38421
+ p_accepted_by?: string;
38422
+ p_carrier_id: string;
38423
+ p_customer_id: string;
38424
+ p_customer_reference?: string;
38425
+ p_delivery_date: string;
38426
+ p_delivery_location_id: string;
38427
+ p_lines: Json;
38428
+ p_moment_key?: string;
38429
+ p_notes?: string;
38430
+ p_own_transport?: boolean;
38431
+ p_source: string;
38432
+ p_source_id: string;
38433
+ };
38434
+ Returns: Json;
38435
+ };
37564
38436
  vervang_printer: {
37565
38437
  Args: {
37566
38438
  _nieuw: string;
@@ -37617,6 +38489,13 @@ export type Database = {
37617
38489
  Args: never;
37618
38490
  Returns: boolean;
37619
38491
  };
38492
+ voorraad_schema_ddl: {
38493
+ Args: {
38494
+ p_functions: string[];
38495
+ p_tables: string[];
38496
+ };
38497
+ Returns: string;
38498
+ };
37620
38499
  voorraad_week_is_past: {
37621
38500
  Args: {
37622
38501
  p_week: number;