@flowselections/mailbox-orders 1.0.30 → 1.0.32

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 (39) hide show
  1. package/dist-lib/components/MailboxProcessedPage.js +1 -1
  2. package/dist-lib/components/MailboxProposalsPage.d.ts.map +1 -1
  3. package/dist-lib/components/MailboxProposalsPage.js +202 -122
  4. package/dist-lib/components/MailboxSkippedPage.d.ts +2 -0
  5. package/dist-lib/components/MailboxSkippedPage.d.ts.map +1 -0
  6. package/dist-lib/components/MailboxSkippedPage.js +71 -0
  7. package/dist-lib/components/settings/MailboxFilterSettingsCard.d.ts +2 -0
  8. package/dist-lib/components/settings/MailboxFilterSettingsCard.d.ts.map +1 -0
  9. package/dist-lib/components/settings/MailboxFilterSettingsCard.js +78 -0
  10. package/dist-lib/components/settings/MailboxTestSetCard.d.ts +2 -0
  11. package/dist-lib/components/settings/MailboxTestSetCard.d.ts.map +1 -0
  12. package/dist-lib/components/settings/MailboxTestSetCard.js +69 -0
  13. package/dist-lib/index.d.ts +1 -0
  14. package/dist-lib/index.d.ts.map +1 -1
  15. package/dist-lib/index.js +8 -2
  16. package/dist-lib/integrations/supabase/types.d.ts +864 -1
  17. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  18. package/dist-lib/lib/mailbox-ai.server.d.ts +33 -12
  19. package/dist-lib/lib/mailbox-ai.server.d.ts.map +1 -1
  20. package/dist-lib/lib/mailbox-ai.server.js +47 -17
  21. package/dist-lib/lib/mailbox-filter-settings.functions.d.ts +143 -0
  22. package/dist-lib/lib/mailbox-filter-settings.functions.d.ts.map +1 -0
  23. package/dist-lib/lib/mailbox-filter-settings.functions.js +241 -0
  24. package/dist-lib/lib/mailbox-filter.d.ts +34 -0
  25. package/dist-lib/lib/mailbox-filter.d.ts.map +1 -0
  26. package/dist-lib/lib/mailbox-filter.js +121 -0
  27. package/dist-lib/lib/mailbox-ingest.server.d.ts +114 -17
  28. package/dist-lib/lib/mailbox-ingest.server.d.ts.map +1 -1
  29. package/dist-lib/lib/mailbox-ingest.server.js +594 -266
  30. package/dist-lib/lib/mailbox-match.d.ts +28 -0
  31. package/dist-lib/lib/mailbox-match.d.ts.map +1 -0
  32. package/dist-lib/lib/mailbox-match.js +74 -0
  33. package/dist-lib/lib/mailbox-units.d.ts +18 -0
  34. package/dist-lib/lib/mailbox-units.d.ts.map +1 -0
  35. package/dist-lib/lib/mailbox-units.js +80 -0
  36. package/dist-lib/lib/mailbox.functions.d.ts +74 -0
  37. package/dist-lib/lib/mailbox.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/mailbox.functions.js +170 -25
  39. package/package.json +6 -1
@@ -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: [];
@@ -7153,7 +7162,11 @@ export type Database = {
7153
7162
  quantity: number | null;
7154
7163
  sales_order_id: string | null;
7155
7164
  sequence_number: number;
7165
+ should_be_printed: boolean | null;
7156
7166
  status: string | null;
7167
+ sticker_height_mm: number | null;
7168
+ sticker_type: string | null;
7169
+ sticker_width_mm: number | null;
7157
7170
  trade_item_id: string | null;
7158
7171
  updated_at: string;
7159
7172
  };
@@ -7168,7 +7181,11 @@ export type Database = {
7168
7181
  quantity?: number | null;
7169
7182
  sales_order_id?: string | null;
7170
7183
  sequence_number?: number;
7184
+ should_be_printed?: boolean | null;
7171
7185
  status?: string | null;
7186
+ sticker_height_mm?: number | null;
7187
+ sticker_type?: string | null;
7188
+ sticker_width_mm?: number | null;
7172
7189
  trade_item_id?: string | null;
7173
7190
  updated_at?: string;
7174
7191
  };
@@ -7183,7 +7200,11 @@ export type Database = {
7183
7200
  quantity?: number | null;
7184
7201
  sales_order_id?: string | null;
7185
7202
  sequence_number?: number;
7203
+ should_be_printed?: boolean | null;
7186
7204
  status?: string | null;
7205
+ sticker_height_mm?: number | null;
7206
+ sticker_type?: string | null;
7207
+ sticker_width_mm?: number | null;
7187
7208
  trade_item_id?: string | null;
7188
7209
  updated_at?: string;
7189
7210
  };
@@ -11177,6 +11198,7 @@ export type Database = {
11177
11198
  is_standaard: boolean;
11178
11199
  naam: string;
11179
11200
  omschrijving: string;
11201
+ origineel_pad: string | null;
11180
11202
  transparant: boolean;
11181
11203
  updated_at: string;
11182
11204
  };
@@ -11194,6 +11216,7 @@ export type Database = {
11194
11216
  is_standaard?: boolean;
11195
11217
  naam: string;
11196
11218
  omschrijving?: string;
11219
+ origineel_pad?: string | null;
11197
11220
  transparant?: boolean;
11198
11221
  updated_at?: string;
11199
11222
  };
@@ -11211,6 +11234,7 @@ export type Database = {
11211
11234
  is_standaard?: boolean;
11212
11235
  naam?: string;
11213
11236
  omschrijving?: string;
11237
+ origineel_pad?: string | null;
11214
11238
  transparant?: boolean;
11215
11239
  updated_at?: string;
11216
11240
  };
@@ -12269,6 +12293,33 @@ export type Database = {
12269
12293
  }
12270
12294
  ];
12271
12295
  };
12296
+ logistics_departure_check: {
12297
+ Row: {
12298
+ after: Json | null;
12299
+ before: Json | null;
12300
+ check_run: string;
12301
+ created_at: string;
12302
+ id: number;
12303
+ order_id: string;
12304
+ };
12305
+ Insert: {
12306
+ after?: Json | null;
12307
+ before?: Json | null;
12308
+ check_run: string;
12309
+ created_at?: string;
12310
+ id?: never;
12311
+ order_id: string;
12312
+ };
12313
+ Update: {
12314
+ after?: Json | null;
12315
+ before?: Json | null;
12316
+ check_run?: string;
12317
+ created_at?: string;
12318
+ id?: never;
12319
+ order_id?: string;
12320
+ };
12321
+ Relationships: [];
12322
+ };
12272
12323
  logistics_document_prints: {
12273
12324
  Row: {
12274
12325
  created_at: string;
@@ -12379,6 +12430,39 @@ export type Database = {
12379
12430
  };
12380
12431
  Relationships: [];
12381
12432
  };
12433
+ logistics_external_fulfillment: {
12434
+ Row: {
12435
+ applied_at: string;
12436
+ created_at: string;
12437
+ event_id: string | null;
12438
+ full_fulfilled: boolean;
12439
+ order_id: string;
12440
+ reason: string;
12441
+ sales_order_ids: string[];
12442
+ updated_at: string;
12443
+ };
12444
+ Insert: {
12445
+ applied_at?: string;
12446
+ created_at?: string;
12447
+ event_id?: string | null;
12448
+ full_fulfilled?: boolean;
12449
+ order_id: string;
12450
+ reason?: string;
12451
+ sales_order_ids?: string[];
12452
+ updated_at?: string;
12453
+ };
12454
+ Update: {
12455
+ applied_at?: string;
12456
+ created_at?: string;
12457
+ event_id?: string | null;
12458
+ full_fulfilled?: boolean;
12459
+ order_id?: string;
12460
+ reason?: string;
12461
+ sales_order_ids?: string[];
12462
+ updated_at?: string;
12463
+ };
12464
+ Relationships: [];
12465
+ };
12382
12466
  logistics_floriday_carrier_map: {
12383
12467
  Row: {
12384
12468
  carrier_code: string;
@@ -13319,7 +13403,9 @@ export type Database = {
13319
13403
  id: boolean;
13320
13404
  last_checked: number;
13321
13405
  last_duration_ms: number;
13406
+ last_error: string | null;
13322
13407
  last_mode: string | null;
13408
+ last_report: Json | null;
13323
13409
  last_run_at: string | null;
13324
13410
  last_updated: number;
13325
13411
  last_would_change: number | null;
@@ -13332,7 +13418,9 @@ export type Database = {
13332
13418
  id?: boolean;
13333
13419
  last_checked?: number;
13334
13420
  last_duration_ms?: number;
13421
+ last_error?: string | null;
13335
13422
  last_mode?: string | null;
13423
+ last_report?: Json | null;
13336
13424
  last_run_at?: string | null;
13337
13425
  last_updated?: number;
13338
13426
  last_would_change?: number | null;
@@ -13345,7 +13433,9 @@ export type Database = {
13345
13433
  id?: boolean;
13346
13434
  last_checked?: number;
13347
13435
  last_duration_ms?: number;
13436
+ last_error?: string | null;
13348
13437
  last_mode?: string | null;
13438
+ last_report?: Json | null;
13349
13439
  last_run_at?: string | null;
13350
13440
  last_updated?: number;
13351
13441
  last_would_change?: number | null;
@@ -13766,6 +13856,8 @@ export type Database = {
13766
13856
  handled_at: string | null;
13767
13857
  handled_error: string | null;
13768
13858
  handled_next_at: string | null;
13859
+ herprint_reden: string | null;
13860
+ herprint_requested_at: string | null;
13769
13861
  hoogte_mm: number | null;
13770
13862
  id: string;
13771
13863
  kopieen: number;
@@ -13777,6 +13869,7 @@ export type Database = {
13777
13869
  reden: string | null;
13778
13870
  soort: string;
13779
13871
  status: string;
13872
+ sticker_type: string | null;
13780
13873
  updated_at: string;
13781
13874
  };
13782
13875
  Insert: {
@@ -13789,6 +13882,8 @@ export type Database = {
13789
13882
  handled_at?: string | null;
13790
13883
  handled_error?: string | null;
13791
13884
  handled_next_at?: string | null;
13885
+ herprint_reden?: string | null;
13886
+ herprint_requested_at?: string | null;
13792
13887
  hoogte_mm?: number | null;
13793
13888
  id?: string;
13794
13889
  kopieen?: number;
@@ -13800,6 +13895,7 @@ export type Database = {
13800
13895
  reden?: string | null;
13801
13896
  soort: string;
13802
13897
  status?: string;
13898
+ sticker_type?: string | null;
13803
13899
  updated_at?: string;
13804
13900
  };
13805
13901
  Update: {
@@ -13812,6 +13908,8 @@ export type Database = {
13812
13908
  handled_at?: string | null;
13813
13909
  handled_error?: string | null;
13814
13910
  handled_next_at?: string | null;
13911
+ herprint_reden?: string | null;
13912
+ herprint_requested_at?: string | null;
13815
13913
  hoogte_mm?: number | null;
13816
13914
  id?: string;
13817
13915
  kopieen?: number;
@@ -13823,6 +13921,7 @@ export type Database = {
13823
13921
  reden?: string | null;
13824
13922
  soort?: string;
13825
13923
  status?: string;
13924
+ sticker_type?: string | null;
13826
13925
  updated_at?: string;
13827
13926
  };
13828
13927
  Relationships: [];
@@ -14172,22 +14271,52 @@ export type Database = {
14172
14271
  };
14173
14272
  Relationships: [];
14174
14273
  };
14274
+ logistics_tick_runs: {
14275
+ Row: {
14276
+ duration_ms: number | null;
14277
+ finished_at: string | null;
14278
+ has_error: boolean;
14279
+ id: number;
14280
+ started_at: string;
14281
+ steps: Json;
14282
+ };
14283
+ Insert: {
14284
+ duration_ms?: number | null;
14285
+ finished_at?: string | null;
14286
+ has_error?: boolean;
14287
+ id?: never;
14288
+ started_at?: string;
14289
+ steps?: Json;
14290
+ };
14291
+ Update: {
14292
+ duration_ms?: number | null;
14293
+ finished_at?: string | null;
14294
+ has_error?: boolean;
14295
+ id?: never;
14296
+ started_at?: string;
14297
+ steps?: Json;
14298
+ };
14299
+ Relationships: [];
14300
+ };
14175
14301
  logistics_time_settings: {
14176
14302
  Row: {
14177
14303
  departure_rule_since: string | null;
14178
14304
  id: boolean;
14305
+ rule_160_since: string | null;
14179
14306
  timezone: string;
14180
14307
  updated_at: string;
14181
14308
  };
14182
14309
  Insert: {
14183
14310
  departure_rule_since?: string | null;
14184
14311
  id?: boolean;
14312
+ rule_160_since?: string | null;
14185
14313
  timezone: string;
14186
14314
  updated_at?: string;
14187
14315
  };
14188
14316
  Update: {
14189
14317
  departure_rule_since?: string | null;
14190
14318
  id?: boolean;
14319
+ rule_160_since?: string | null;
14191
14320
  timezone?: string;
14192
14321
  updated_at?: string;
14193
14322
  };
@@ -14496,6 +14625,45 @@ export type Database = {
14496
14625
  };
14497
14626
  Relationships: [];
14498
14627
  };
14628
+ mailbox_ai_runs: {
14629
+ Row: {
14630
+ error: string | null;
14631
+ finished_at: string | null;
14632
+ id: string;
14633
+ input_tokens: number | null;
14634
+ is_test: boolean;
14635
+ message_id: string | null;
14636
+ ok: boolean | null;
14637
+ output_tokens: number | null;
14638
+ started_at: string;
14639
+ trigger: string;
14640
+ };
14641
+ Insert: {
14642
+ error?: string | null;
14643
+ finished_at?: string | null;
14644
+ id?: string;
14645
+ input_tokens?: number | null;
14646
+ is_test?: boolean;
14647
+ message_id?: string | null;
14648
+ ok?: boolean | null;
14649
+ output_tokens?: number | null;
14650
+ started_at?: string;
14651
+ trigger?: string;
14652
+ };
14653
+ Update: {
14654
+ error?: string | null;
14655
+ finished_at?: string | null;
14656
+ id?: string;
14657
+ input_tokens?: number | null;
14658
+ is_test?: boolean;
14659
+ message_id?: string | null;
14660
+ ok?: boolean | null;
14661
+ output_tokens?: number | null;
14662
+ started_at?: string;
14663
+ trigger?: string;
14664
+ };
14665
+ Relationships: [];
14666
+ };
14499
14667
  mailbox_ai_settings: {
14500
14668
  Row: {
14501
14669
  active_goal_key: string | null;
@@ -14529,6 +14697,78 @@ export type Database = {
14529
14697
  };
14530
14698
  Relationships: [];
14531
14699
  };
14700
+ mailbox_filter_settings: {
14701
+ Row: {
14702
+ analyze_unknown_with_signals: boolean;
14703
+ conf_green: number;
14704
+ conf_orange: number;
14705
+ created_at: string;
14706
+ domain_match: boolean;
14707
+ duplicate_days: number;
14708
+ id: string;
14709
+ max_agent_reparse: number;
14710
+ max_ai_per_day: number;
14711
+ max_ai_per_month: number;
14712
+ max_candidates: number;
14713
+ max_retries_per_run: number;
14714
+ max_retry_attempts: number;
14715
+ min_signals_unknown: number;
14716
+ negative_keywords: string[];
14717
+ order_keywords: string[];
14718
+ order_patterns: string[];
14719
+ singleton: boolean;
14720
+ skip_domains: string[];
14721
+ skip_senders: string[];
14722
+ updated_at: string;
14723
+ };
14724
+ Insert: {
14725
+ analyze_unknown_with_signals?: boolean;
14726
+ conf_green?: number;
14727
+ conf_orange?: number;
14728
+ created_at?: string;
14729
+ domain_match?: boolean;
14730
+ duplicate_days?: number;
14731
+ id?: string;
14732
+ max_agent_reparse?: number;
14733
+ max_ai_per_day?: number;
14734
+ max_ai_per_month?: number;
14735
+ max_candidates?: number;
14736
+ max_retries_per_run?: number;
14737
+ max_retry_attempts?: number;
14738
+ min_signals_unknown?: number;
14739
+ negative_keywords?: string[];
14740
+ order_keywords?: string[];
14741
+ order_patterns?: string[];
14742
+ singleton?: boolean;
14743
+ skip_domains?: string[];
14744
+ skip_senders?: string[];
14745
+ updated_at?: string;
14746
+ };
14747
+ Update: {
14748
+ analyze_unknown_with_signals?: boolean;
14749
+ conf_green?: number;
14750
+ conf_orange?: number;
14751
+ created_at?: string;
14752
+ domain_match?: boolean;
14753
+ duplicate_days?: number;
14754
+ id?: string;
14755
+ max_agent_reparse?: number;
14756
+ max_ai_per_day?: number;
14757
+ max_ai_per_month?: number;
14758
+ max_candidates?: number;
14759
+ max_retries_per_run?: number;
14760
+ max_retry_attempts?: number;
14761
+ min_signals_unknown?: number;
14762
+ negative_keywords?: string[];
14763
+ order_keywords?: string[];
14764
+ order_patterns?: string[];
14765
+ singleton?: boolean;
14766
+ skip_domains?: string[];
14767
+ skip_senders?: string[];
14768
+ updated_at?: string;
14769
+ };
14770
+ Relationships: [];
14771
+ };
14532
14772
  mailbox_ingest_runs: {
14533
14773
  Row: {
14534
14774
  connection_id: string | null;
@@ -14567,6 +14807,10 @@ export type Database = {
14567
14807
  };
14568
14808
  mailbox_messages: {
14569
14809
  Row: {
14810
+ analysis_count: number;
14811
+ analysis_note: string | null;
14812
+ analysis_started_at: string | null;
14813
+ analysis_state: string | null;
14570
14814
  attachments: Json;
14571
14815
  body_html: string | null;
14572
14816
  body_text: string | null;
@@ -14575,6 +14819,8 @@ export type Database = {
14575
14819
  created_at: string;
14576
14820
  error_message: string | null;
14577
14821
  external_id: string | null;
14822
+ filter_outcome: string | null;
14823
+ filter_reason: string | null;
14578
14824
  from_email: string | null;
14579
14825
  from_name: string | null;
14580
14826
  has_attachments: boolean;
@@ -14591,6 +14837,10 @@ export type Database = {
14591
14837
  updated_at: string;
14592
14838
  };
14593
14839
  Insert: {
14840
+ analysis_count?: number;
14841
+ analysis_note?: string | null;
14842
+ analysis_started_at?: string | null;
14843
+ analysis_state?: string | null;
14594
14844
  attachments?: Json;
14595
14845
  body_html?: string | null;
14596
14846
  body_text?: string | null;
@@ -14599,6 +14849,8 @@ export type Database = {
14599
14849
  created_at?: string;
14600
14850
  error_message?: string | null;
14601
14851
  external_id?: string | null;
14852
+ filter_outcome?: string | null;
14853
+ filter_reason?: string | null;
14602
14854
  from_email?: string | null;
14603
14855
  from_name?: string | null;
14604
14856
  has_attachments?: boolean;
@@ -14615,6 +14867,10 @@ export type Database = {
14615
14867
  updated_at?: string;
14616
14868
  };
14617
14869
  Update: {
14870
+ analysis_count?: number;
14871
+ analysis_note?: string | null;
14872
+ analysis_started_at?: string | null;
14873
+ analysis_state?: string | null;
14618
14874
  attachments?: Json;
14619
14875
  body_html?: string | null;
14620
14876
  body_text?: string | null;
@@ -14623,6 +14879,8 @@ export type Database = {
14623
14879
  created_at?: string;
14624
14880
  error_message?: string | null;
14625
14881
  external_id?: string | null;
14882
+ filter_outcome?: string | null;
14883
+ filter_reason?: string | null;
14626
14884
  from_email?: string | null;
14627
14885
  from_name?: string | null;
14628
14886
  has_attachments?: boolean;
@@ -14669,6 +14927,7 @@ export type Database = {
14669
14927
  confidence: number | null;
14670
14928
  created_at: string;
14671
14929
  created_order_id: string | null;
14930
+ customer_reference: string | null;
14672
14931
  delivery_date: string | null;
14673
14932
  id: string;
14674
14933
  matched_customer_id: string | null;
@@ -14687,6 +14946,7 @@ export type Database = {
14687
14946
  confidence?: number | null;
14688
14947
  created_at?: string;
14689
14948
  created_order_id?: string | null;
14949
+ customer_reference?: string | null;
14690
14950
  delivery_date?: string | null;
14691
14951
  id?: string;
14692
14952
  matched_customer_id?: string | null;
@@ -14705,6 +14965,7 @@ export type Database = {
14705
14965
  confidence?: number | null;
14706
14966
  created_at?: string;
14707
14967
  created_order_id?: string | null;
14968
+ customer_reference?: string | null;
14708
14969
  delivery_date?: string | null;
14709
14970
  id?: string;
14710
14971
  matched_customer_id?: string | null;
@@ -14841,43 +15102,85 @@ export type Database = {
14841
15102
  };
14842
15103
  mailbox_proposal_lines: {
14843
15104
  Row: {
15105
+ belading: Json | null;
15106
+ confidence: Json | null;
14844
15107
  created_at: string;
15108
+ currency: string | null;
14845
15109
  id: string;
14846
15110
  match_confidence: number | null;
15111
+ match_source: string | null;
15112
+ name_in_mail: string | null;
15113
+ pieces_per_unit: number | null;
14847
15114
  plant_type: string | null;
15115
+ plants: number | null;
15116
+ price_per: string | null;
14848
15117
  product_id: string | null;
14849
15118
  proposal_id: string;
15119
+ qty_in_mail: number | null;
14850
15120
  quantity: number | null;
15121
+ raw_code: string | null;
14851
15122
  raw_product_text: string | null;
14852
15123
  sort_order: number;
14853
15124
  unit: string | null;
15125
+ unit_kind: string | null;
15126
+ unit_price: number | null;
15127
+ unit_text: string | null;
14854
15128
  updated_at: string;
15129
+ warnings: string[] | null;
14855
15130
  };
14856
15131
  Insert: {
15132
+ belading?: Json | null;
15133
+ confidence?: Json | null;
14857
15134
  created_at?: string;
15135
+ currency?: string | null;
14858
15136
  id?: string;
14859
15137
  match_confidence?: number | null;
15138
+ match_source?: string | null;
15139
+ name_in_mail?: string | null;
15140
+ pieces_per_unit?: number | null;
14860
15141
  plant_type?: string | null;
15142
+ plants?: number | null;
15143
+ price_per?: string | null;
14861
15144
  product_id?: string | null;
14862
15145
  proposal_id: string;
15146
+ qty_in_mail?: number | null;
14863
15147
  quantity?: number | null;
15148
+ raw_code?: string | null;
14864
15149
  raw_product_text?: string | null;
14865
15150
  sort_order?: number;
14866
15151
  unit?: string | null;
15152
+ unit_kind?: string | null;
15153
+ unit_price?: number | null;
15154
+ unit_text?: string | null;
14867
15155
  updated_at?: string;
15156
+ warnings?: string[] | null;
14868
15157
  };
14869
15158
  Update: {
15159
+ belading?: Json | null;
15160
+ confidence?: Json | null;
14870
15161
  created_at?: string;
15162
+ currency?: string | null;
14871
15163
  id?: string;
14872
15164
  match_confidence?: number | null;
15165
+ match_source?: string | null;
15166
+ name_in_mail?: string | null;
15167
+ pieces_per_unit?: number | null;
14873
15168
  plant_type?: string | null;
15169
+ plants?: number | null;
15170
+ price_per?: string | null;
14874
15171
  product_id?: string | null;
14875
15172
  proposal_id?: string;
15173
+ qty_in_mail?: number | null;
14876
15174
  quantity?: number | null;
15175
+ raw_code?: string | null;
14877
15176
  raw_product_text?: string | null;
14878
15177
  sort_order?: number;
14879
15178
  unit?: string | null;
15179
+ unit_kind?: string | null;
15180
+ unit_price?: number | null;
15181
+ unit_text?: string | null;
14880
15182
  updated_at?: string;
15183
+ warnings?: string[] | null;
14881
15184
  };
14882
15185
  Relationships: [
14883
15186
  {
@@ -14951,6 +15254,51 @@ export type Database = {
14951
15254
  };
14952
15255
  Relationships: [];
14953
15256
  };
15257
+ mailbox_test_cases: {
15258
+ Row: {
15259
+ body_text: string;
15260
+ created_at: string;
15261
+ expected: Json;
15262
+ from_email: string;
15263
+ has_attachment: boolean;
15264
+ id: string;
15265
+ last_result: Json | null;
15266
+ last_run_at: string | null;
15267
+ name: string;
15268
+ sort_order: number;
15269
+ subject: string;
15270
+ updated_at: string;
15271
+ };
15272
+ Insert: {
15273
+ body_text?: string;
15274
+ created_at?: string;
15275
+ expected?: Json;
15276
+ from_email?: string;
15277
+ has_attachment?: boolean;
15278
+ id?: string;
15279
+ last_result?: Json | null;
15280
+ last_run_at?: string | null;
15281
+ name: string;
15282
+ sort_order?: number;
15283
+ subject?: string;
15284
+ updated_at?: string;
15285
+ };
15286
+ Update: {
15287
+ body_text?: string;
15288
+ created_at?: string;
15289
+ expected?: Json;
15290
+ from_email?: string;
15291
+ has_attachment?: boolean;
15292
+ id?: string;
15293
+ last_result?: Json | null;
15294
+ last_run_at?: string | null;
15295
+ name?: string;
15296
+ sort_order?: number;
15297
+ subject?: string;
15298
+ updated_at?: string;
15299
+ };
15300
+ Relationships: [];
15301
+ };
14954
15302
  manufacture_product_components: {
14955
15303
  Row: {
14956
15304
  component_type: string;
@@ -16073,10 +16421,12 @@ export type Database = {
16073
16421
  id: string;
16074
16422
  items: Json;
16075
16423
  notes: string | null;
16424
+ order_creation_attempts: number;
16076
16425
  order_creation_error: string | null;
16077
16426
  order_creation_failed_at: string | null;
16078
16427
  order_id: string | null;
16079
16428
  order_number: string | null;
16429
+ order_retry_payload: Json | null;
16080
16430
  recipient_id: string;
16081
16431
  total_amount: number;
16082
16432
  };
@@ -16090,10 +16440,12 @@ export type Database = {
16090
16440
  id?: string;
16091
16441
  items?: Json;
16092
16442
  notes?: string | null;
16443
+ order_creation_attempts?: number;
16093
16444
  order_creation_error?: string | null;
16094
16445
  order_creation_failed_at?: string | null;
16095
16446
  order_id?: string | null;
16096
16447
  order_number?: string | null;
16448
+ order_retry_payload?: Json | null;
16097
16449
  recipient_id: string;
16098
16450
  total_amount?: number;
16099
16451
  };
@@ -16107,10 +16459,12 @@ export type Database = {
16107
16459
  id?: string;
16108
16460
  items?: Json;
16109
16461
  notes?: string | null;
16462
+ order_creation_attempts?: number;
16110
16463
  order_creation_error?: string | null;
16111
16464
  order_creation_failed_at?: string | null;
16112
16465
  order_id?: string | null;
16113
16466
  order_number?: string | null;
16467
+ order_retry_payload?: Json | null;
16114
16468
  recipient_id?: string;
16115
16469
  total_amount?: number;
16116
16470
  };
@@ -19634,6 +19988,42 @@ export type Database = {
19634
19988
  };
19635
19989
  Relationships: [];
19636
19990
  };
19991
+ print_printer_verwijder_herstel: {
19992
+ Row: {
19993
+ created_at: string;
19994
+ extern_printer_id: string | null;
19995
+ hersteld_op: string | null;
19996
+ id: string;
19997
+ print_plek_id: string;
19998
+ printer_id: string;
19999
+ printer_naam: string | null;
20000
+ regels: Json;
20001
+ verwijderd_op: string;
20002
+ };
20003
+ Insert: {
20004
+ created_at?: string;
20005
+ extern_printer_id?: string | null;
20006
+ hersteld_op?: string | null;
20007
+ id?: string;
20008
+ print_plek_id: string;
20009
+ printer_id: string;
20010
+ printer_naam?: string | null;
20011
+ regels?: Json;
20012
+ verwijderd_op?: string;
20013
+ };
20014
+ Update: {
20015
+ created_at?: string;
20016
+ extern_printer_id?: string | null;
20017
+ hersteld_op?: string | null;
20018
+ id?: string;
20019
+ print_plek_id?: string;
20020
+ printer_id?: string;
20021
+ printer_naam?: string | null;
20022
+ regels?: Json;
20023
+ verwijderd_op?: string;
20024
+ };
20025
+ Relationships: [];
20026
+ };
19637
20027
  print_queue_leases: {
19638
20028
  Row: {
19639
20029
  created_at: string;
@@ -28654,6 +29044,10 @@ export type Database = {
28654
29044
  };
28655
29045
  };
28656
29046
  Functions: {
29047
+ _arm_offer_order_retry: {
29048
+ Args: never;
29049
+ Returns: undefined;
29050
+ };
28657
29051
  _floriday_queue_cleanup_batch: {
28658
29052
  Args: {
28659
29053
  p_days: number;
@@ -28688,6 +29082,18 @@ export type Database = {
28688
29082
  };
28689
29083
  Returns: undefined;
28690
29084
  };
29085
+ _pick_station_for_cart: {
29086
+ Args: {
29087
+ p_cart_id: string;
29088
+ };
29089
+ Returns: string;
29090
+ };
29091
+ _pick_sticker_ids_for_cart: {
29092
+ Args: {
29093
+ p_cart_id: string;
29094
+ };
29095
+ Returns: string[];
29096
+ };
28691
29097
  _print_meld_stilstand: {
28692
29098
  Args: {
28693
29099
  _reden: string;
@@ -28701,6 +29107,19 @@ export type Database = {
28701
29107
  };
28702
29108
  Returns: Json;
28703
29109
  };
29110
+ _scan_kar_floriday_afgehandeld: {
29111
+ Args: {
29112
+ p_cart_id: string;
29113
+ p_order_id?: string;
29114
+ };
29115
+ Returns: Json;
29116
+ };
29117
+ _scan_kar_pakbon_geprint: {
29118
+ Args: {
29119
+ p_cart_id: string;
29120
+ };
29121
+ Returns: Json;
29122
+ };
28704
29123
  _scan_kar_voortgang: {
28705
29124
  Args: {
28706
29125
  p_cart_id: string;
@@ -28754,6 +29173,12 @@ export type Database = {
28754
29173
  };
28755
29174
  Returns: string;
28756
29175
  };
29176
+ afh_order_floriday_afgehandeld: {
29177
+ Args: {
29178
+ p_order_id: string;
29179
+ };
29180
+ Returns: boolean;
29181
+ };
28757
29182
  afh_pick_workdays: {
28758
29183
  Args: {
28759
29184
  p_from: string;
@@ -28788,6 +29213,22 @@ export type Database = {
28788
29213
  };
28789
29214
  Returns: Json;
28790
29215
  };
29216
+ afh_signup_groups_base: {
29217
+ Args: {
29218
+ p_from: string;
29219
+ p_to: string;
29220
+ p_tz: string;
29221
+ };
29222
+ Returns: Json;
29223
+ };
29224
+ afh_signup_groups_wacht: {
29225
+ Args: {
29226
+ p_from: string;
29227
+ p_to: string;
29228
+ p_tz: string;
29229
+ };
29230
+ Returns: Json;
29231
+ };
28791
29232
  afh_signup_mail: {
28792
29233
  Args: {
28793
29234
  g: Json;
@@ -28796,6 +29237,22 @@ export type Database = {
28796
29237
  };
28797
29238
  Returns: Json;
28798
29239
  };
29240
+ afh_signup_mail_base: {
29241
+ Args: {
29242
+ g: Json;
29243
+ p_prev: number;
29244
+ p_tz: string;
29245
+ };
29246
+ Returns: Json;
29247
+ };
29248
+ afh_signup_mail_wacht: {
29249
+ Args: {
29250
+ g: Json;
29251
+ p_prev: number;
29252
+ p_tz: string;
29253
+ };
29254
+ Returns: Json;
29255
+ };
28799
29256
  afh_signup_send_group: {
28800
29257
  Args: {
28801
29258
  g: Json;
@@ -28807,6 +29264,17 @@ export type Database = {
28807
29264
  };
28808
29265
  Returns: Json;
28809
29266
  };
29267
+ afh_signup_send_group_base: {
29268
+ Args: {
29269
+ g: Json;
29270
+ p_connection: string;
29271
+ p_purpose: string;
29272
+ p_source: string;
29273
+ p_tz: string;
29274
+ p_user: string;
29275
+ };
29276
+ Returns: Json;
29277
+ };
28810
29278
  afh_subtract_workdays: {
28811
29279
  Args: {
28812
29280
  _date: string;
@@ -29887,7 +30355,31 @@ export type Database = {
29887
30355
  };
29888
30356
  Returns: boolean;
29889
30357
  };
29890
- floriday_adopt_connection: {
30358
+ floricode_sync_cron_schedule: {
30359
+ Args: {
30360
+ p_apikey: string;
30361
+ p_schedule: string;
30362
+ p_url: string;
30363
+ };
30364
+ Returns: number;
30365
+ };
30366
+ floricode_sync_cron_set_schedule: {
30367
+ Args: {
30368
+ p_schedule: string;
30369
+ };
30370
+ Returns: boolean;
30371
+ };
30372
+ floricode_sync_cron_status: {
30373
+ Args: never;
30374
+ Returns: {
30375
+ active: boolean;
30376
+ last_run_at: string;
30377
+ last_run_status: string;
30378
+ schedule: string;
30379
+ scheduled: boolean;
30380
+ }[];
30381
+ };
30382
+ floriday_adopt_connection: {
29891
30383
  Args: {
29892
30384
  p_new: string;
29893
30385
  p_old: string;
@@ -30987,6 +31479,14 @@ export type Database = {
30987
31479
  };
30988
31480
  Returns: string;
30989
31481
  };
31482
+ log_offer_event_by_code: {
31483
+ Args: {
31484
+ p_code: string;
31485
+ p_event_type: string;
31486
+ p_metadata?: Json;
31487
+ };
31488
+ Returns: boolean;
31489
+ };
30990
31490
  logistics_active_layout_method: {
30991
31491
  Args: never;
30992
31492
  Returns: string;
@@ -31049,6 +31549,12 @@ export type Database = {
31049
31549
  Args: never;
31050
31550
  Returns: undefined;
31051
31551
  };
31552
+ logistics_apply_external_fulfillment: {
31553
+ Args: {
31554
+ p_event_id: string;
31555
+ };
31556
+ Returns: string;
31557
+ };
31052
31558
  logistics_apply_order_buffer: {
31053
31559
  Args: {
31054
31560
  p_order_id: string;
@@ -31199,6 +31705,12 @@ export type Database = {
31199
31705
  };
31200
31706
  Returns: Json;
31201
31707
  };
31708
+ logistics_buffer_closed_for_join: {
31709
+ Args: {
31710
+ p_buffer: string;
31711
+ };
31712
+ Returns: boolean;
31713
+ };
31202
31714
  logistics_buffer_criteria: {
31203
31715
  Args: {
31204
31716
  p_settings: Json;
@@ -31227,6 +31739,12 @@ export type Database = {
31227
31739
  };
31228
31740
  Returns: Json;
31229
31741
  };
31742
+ logistics_buffer_frozen: {
31743
+ Args: {
31744
+ p_buffer: string;
31745
+ };
31746
+ Returns: boolean;
31747
+ };
31230
31748
  logistics_buffer_frozen_order: {
31231
31749
  Args: {
31232
31750
  p_order_id: string;
@@ -31267,6 +31785,12 @@ export type Database = {
31267
31785
  };
31268
31786
  Returns: Json;
31269
31787
  };
31788
+ logistics_buffer_target: {
31789
+ Args: {
31790
+ p_order_id: string;
31791
+ };
31792
+ Returns: Json;
31793
+ };
31270
31794
  logistics_buffer_value: {
31271
31795
  Args: {
31272
31796
  p_criterion: string;
@@ -31286,6 +31810,12 @@ export type Database = {
31286
31810
  Args: never;
31287
31811
  Returns: number;
31288
31812
  };
31813
+ logistics_cancel_stale_cart_pick_rows: {
31814
+ Args: {
31815
+ p_order_ids: string[];
31816
+ };
31817
+ Returns: number;
31818
+ };
31289
31819
  logistics_capacity_day_check: {
31290
31820
  Args: {
31291
31821
  p_from?: string;
@@ -31299,6 +31829,13 @@ export type Database = {
31299
31829
  };
31300
31830
  Returns: Json;
31301
31831
  };
31832
+ logistics_carrier_for_location: {
31833
+ Args: {
31834
+ p_customer_id: string;
31835
+ p_location: string;
31836
+ };
31837
+ Returns: string;
31838
+ };
31302
31839
  logistics_carrier_minutes: {
31303
31840
  Args: {
31304
31841
  p_carrier: string;
@@ -31373,6 +31910,12 @@ export type Database = {
31373
31910
  };
31374
31911
  Returns: boolean;
31375
31912
  };
31913
+ logistics_cart_has_packing_slip: {
31914
+ Args: {
31915
+ p_cart_id: string;
31916
+ };
31917
+ Returns: boolean;
31918
+ };
31376
31919
  logistics_cart_ids_frozen: {
31377
31920
  Args: {
31378
31921
  p_cart_ids: string[];
@@ -31519,6 +32062,12 @@ export type Database = {
31519
32062
  };
31520
32063
  Returns: Json;
31521
32064
  };
32065
+ logistics_cart_slip_queued: {
32066
+ Args: {
32067
+ p_cart: string;
32068
+ };
32069
+ Returns: boolean;
32070
+ };
31522
32071
  logistics_cart_sticker_state: {
31523
32072
  Args: {
31524
32073
  p_cart_id: string;
@@ -31910,6 +32459,25 @@ export type Database = {
31910
32459
  printed_count: number;
31911
32460
  }[];
31912
32461
  };
32462
+ logistics_departure_calc: {
32463
+ Args: {
32464
+ p_carrier_id: string;
32465
+ p_delivery_date: string;
32466
+ p_moment_key?: string;
32467
+ p_ref_at: string;
32468
+ };
32469
+ Returns: Json;
32470
+ };
32471
+ logistics_departure_preview: {
32472
+ Args: {
32473
+ p_carrier_id: string;
32474
+ p_delivery_date: string;
32475
+ p_delivery_location: string;
32476
+ p_moment_key?: string;
32477
+ p_own_transport?: boolean;
32478
+ };
32479
+ Returns: Json;
32480
+ };
31913
32481
  logistics_document_layout: {
31914
32482
  Args: {
31915
32483
  _document_code: string;
@@ -32013,6 +32581,17 @@ export type Database = {
32013
32581
  ref: string;
32014
32582
  }[];
32015
32583
  };
32584
+ logistics_external_fulfillment_key_report: {
32585
+ Args: never;
32586
+ Returns: {
32587
+ ander_nummer: number;
32588
+ floriday_sales_order_id: string;
32589
+ order_id: string;
32590
+ order_number: string;
32591
+ regels: number;
32592
+ zonder_nummer: number;
32593
+ }[];
32594
+ };
32016
32595
  logistics_fail_task: {
32017
32596
  Args: {
32018
32597
  p_error: string;
@@ -32058,6 +32637,10 @@ export type Database = {
32058
32637
  isSetofReturn: false;
32059
32638
  };
32060
32639
  };
32640
+ logistics_fill_cart_departure: {
32641
+ Args: never;
32642
+ Returns: number;
32643
+ };
32061
32644
  logistics_fix_wrong_shipping_notes: {
32062
32645
  Args: never;
32063
32646
  Returns: Json;
@@ -32257,6 +32840,13 @@ export type Database = {
32257
32840
  };
32258
32841
  Returns: boolean;
32259
32842
  };
32843
+ logistics_item_external_fulfilled: {
32844
+ Args: {
32845
+ p_order_id: string;
32846
+ p_source_line_key: string;
32847
+ };
32848
+ Returns: boolean;
32849
+ };
32260
32850
  logistics_key_product: {
32261
32851
  Args: {
32262
32852
  p_key: string;
@@ -32338,6 +32928,19 @@ export type Database = {
32338
32928
  };
32339
32929
  Returns: string;
32340
32930
  };
32931
+ logistics_nl_date: {
32932
+ Args: {
32933
+ p_day: string;
32934
+ };
32935
+ Returns: string;
32936
+ };
32937
+ logistics_nl_moment: {
32938
+ Args: {
32939
+ p_at: string;
32940
+ p_tz: string;
32941
+ };
32942
+ Returns: string;
32943
+ };
32341
32944
  logistics_normalize_product_label: {
32342
32945
  Args: {
32343
32946
  p_label: string;
@@ -32430,6 +33033,21 @@ export type Database = {
32430
33033
  };
32431
33034
  Returns: Json;
32432
33035
  };
33036
+ logistics_order_departure_list: {
33037
+ Args: {
33038
+ p_order_ids: string[];
33039
+ };
33040
+ Returns: {
33041
+ carrierId: string;
33042
+ departureAt: string;
33043
+ lateSignup: boolean;
33044
+ momentKey: string;
33045
+ ok: boolean;
33046
+ order_id: string;
33047
+ reason: string;
33048
+ signupDeadline: string;
33049
+ }[];
33050
+ };
32433
33051
  logistics_order_documents_ready: {
32434
33052
  Args: {
32435
33053
  p_order_ref: string;
@@ -32442,6 +33060,12 @@ export type Database = {
32442
33060
  };
32443
33061
  Returns: boolean;
32444
33062
  };
33063
+ logistics_order_external_state: {
33064
+ Args: {
33065
+ p_order_id: string;
33066
+ };
33067
+ Returns: Json;
33068
+ };
32445
33069
  logistics_order_finalize_enqueue: {
32446
33070
  Args: {
32447
33071
  p_order_id: string;
@@ -32522,6 +33146,12 @@ export type Database = {
32522
33146
  };
32523
33147
  Returns: boolean;
32524
33148
  };
33149
+ logistics_order_is_shipped_status: {
33150
+ Args: {
33151
+ p_status: string;
33152
+ };
33153
+ Returns: boolean;
33154
+ };
32525
33155
  logistics_order_is_topick: {
32526
33156
  Args: {
32527
33157
  p_order_id: string;
@@ -32634,6 +33264,12 @@ export type Database = {
32634
33264
  state: string;
32635
33265
  }[];
32636
33266
  };
33267
+ logistics_order_plan_coverage_v165: {
33268
+ Args: {
33269
+ p_order_id: string;
33270
+ };
33271
+ Returns: Json;
33272
+ };
32637
33273
  logistics_order_released: {
32638
33274
  Args: {
32639
33275
  p_order_ref: string;
@@ -32654,6 +33290,13 @@ export type Database = {
32654
33290
  Args: never;
32655
33291
  Returns: Json;
32656
33292
  };
33293
+ logistics_own_transport_departure: {
33294
+ Args: {
33295
+ p_delivery_date: string;
33296
+ p_pickup_at: string;
33297
+ };
33298
+ Returns: Json;
33299
+ };
32657
33300
  logistics_packing_autofix: {
32658
33301
  Args: {
32659
33302
  p_limit?: number;
@@ -33128,6 +33771,12 @@ export type Database = {
33128
33771
  Args: never;
33129
33772
  Returns: number;
33130
33773
  };
33774
+ logistics_rebuffer_candidates: {
33775
+ Args: never;
33776
+ Returns: {
33777
+ order_id: string;
33778
+ }[];
33779
+ };
33131
33780
  logistics_rebuffer_open_orders: {
33132
33781
  Args: {
33133
33782
  p_strategy_id?: string;
@@ -33144,6 +33793,23 @@ export type Database = {
33144
33793
  Args: never;
33145
33794
  Returns: Json;
33146
33795
  };
33796
+ logistics_rebuffer_report: {
33797
+ Args: never;
33798
+ Returns: Json;
33799
+ };
33800
+ logistics_rebuffer_simulate_open: {
33801
+ Args: never;
33802
+ Returns: {
33803
+ buffer_id: string;
33804
+ changed: boolean;
33805
+ cur_label: string;
33806
+ delivery_date: string;
33807
+ id: string;
33808
+ new_label: string;
33809
+ order_number: string;
33810
+ reason: string;
33811
+ }[];
33812
+ };
33147
33813
  logistics_recalc_tick_kick: {
33148
33814
  Args: never;
33149
33815
  Returns: number;
@@ -33382,6 +34048,13 @@ export type Database = {
33382
34048
  };
33383
34049
  Returns: Json;
33384
34050
  };
34051
+ logistics_sales_order_external_fulfilled: {
34052
+ Args: {
34053
+ p_order_id: string;
34054
+ p_sales_order_id: string;
34055
+ };
34056
+ Returns: boolean;
34057
+ };
33385
34058
  logistics_scan_delays: {
33386
34059
  Args: never;
33387
34060
  Returns: number;
@@ -33440,6 +34113,10 @@ export type Database = {
33440
34113
  peer_order_id: string;
33441
34114
  }[];
33442
34115
  };
34116
+ logistics_shell_base_url: {
34117
+ Args: never;
34118
+ Returns: string;
34119
+ };
33443
34120
  logistics_shift_to_workday: {
33444
34121
  Args: {
33445
34122
  p_days: string[];
@@ -33519,6 +34196,12 @@ export type Database = {
33519
34196
  };
33520
34197
  Returns: boolean;
33521
34198
  };
34199
+ logistics_slip_is_herprint: {
34200
+ Args: {
34201
+ p_slip_job_id: string;
34202
+ };
34203
+ Returns: boolean;
34204
+ };
33522
34205
  logistics_slip_note_claim: {
33523
34206
  Args: {
33524
34207
  _lease_seconds?: number;
@@ -33610,12 +34293,22 @@ export type Database = {
33610
34293
  };
33611
34294
  Returns: Json;
33612
34295
  };
34296
+ logistics_slip_note_skip_herprint: {
34297
+ Args: {
34298
+ _id: string;
34299
+ };
34300
+ Returns: undefined;
34301
+ };
33613
34302
  logistics_status_after_shipping: {
33614
34303
  Args: {
33615
34304
  p_status: string;
33616
34305
  };
33617
34306
  Returns: boolean;
33618
34307
  };
34308
+ logistics_sticker_blocked_list: {
34309
+ Args: never;
34310
+ Returns: Json;
34311
+ };
33619
34312
  logistics_sticker_cart_plek: {
33620
34313
  Args: {
33621
34314
  _cart: string;
@@ -33623,6 +34316,26 @@ export type Database = {
33623
34316
  };
33624
34317
  Returns: string;
33625
34318
  };
34319
+ logistics_sticker_distribution: {
34320
+ Args: {
34321
+ p_copies: number;
34322
+ p_order: string;
34323
+ p_trade_item: string;
34324
+ p_type: string;
34325
+ };
34326
+ Returns: {
34327
+ cart_id: string;
34328
+ crates: number;
34329
+ kopieen: number;
34330
+ pieces: number;
34331
+ }[];
34332
+ };
34333
+ logistics_sticker_external_fulfilled: {
34334
+ Args: {
34335
+ p_sticker_print_id: string;
34336
+ };
34337
+ Returns: boolean;
34338
+ };
33626
34339
  logistics_sticker_follows_slip: {
33627
34340
  Args: never;
33628
34341
  Returns: boolean;
@@ -33700,12 +34413,24 @@ export type Database = {
33700
34413
  Args: never;
33701
34414
  Returns: Json;
33702
34415
  };
34416
+ logistics_sync_stock_alert_email_status: {
34417
+ Args: {
34418
+ p_limit?: number;
34419
+ };
34420
+ Returns: Json;
34421
+ };
33703
34422
  logistics_sync_task_carriers: {
33704
34423
  Args: {
33705
34424
  p_order_ref?: string;
33706
34425
  };
33707
34426
  Returns: number;
33708
34427
  };
34428
+ logistics_sync_task_status: {
34429
+ Args: {
34430
+ p_order_ref?: string;
34431
+ };
34432
+ Returns: number;
34433
+ };
33709
34434
  logistics_task_open_counts: {
33710
34435
  Args: never;
33711
34436
  Returns: {
@@ -33756,6 +34481,10 @@ export type Database = {
33756
34481
  Args: never;
33757
34482
  Returns: string;
33758
34483
  };
34484
+ logistics_tick_runs_prune: {
34485
+ Args: never;
34486
+ Returns: number;
34487
+ };
33759
34488
  logistics_timezone_options: {
33760
34489
  Args: never;
33761
34490
  Returns: {
@@ -33931,6 +34660,12 @@ export type Database = {
33931
34660
  };
33932
34661
  Returns: Json;
33933
34662
  };
34663
+ logistics_try_uuid: {
34664
+ Args: {
34665
+ p: string;
34666
+ };
34667
+ Returns: string;
34668
+ };
33934
34669
  logistics_tz: {
33935
34670
  Args: never;
33936
34671
  Returns: string;
@@ -33988,6 +34723,14 @@ export type Database = {
33988
34723
  };
33989
34724
  Returns: number;
33990
34725
  };
34726
+ mailbox_claim_analysis: {
34727
+ Args: {
34728
+ p_force?: boolean;
34729
+ p_message_id: string;
34730
+ p_trigger?: string;
34731
+ };
34732
+ Returns: Json;
34733
+ };
33991
34734
  mark_offer_clicked: {
33992
34735
  Args: {
33993
34736
  p_code: string;
@@ -34877,6 +35620,12 @@ export type Database = {
34877
35620
  };
34878
35621
  Returns: string;
34879
35622
  };
35623
+ pick_sticker_past_controle: {
35624
+ Args: {
35625
+ p_cart_id: string;
35626
+ };
35627
+ Returns: Json;
35628
+ };
34880
35629
  pick_sync_pick_day: {
34881
35630
  Args: {
34882
35631
  _day: string;
@@ -34956,6 +35705,21 @@ export type Database = {
34956
35705
  };
34957
35706
  Returns: undefined;
34958
35707
  };
35708
+ pickstation_sticker_past_controle: {
35709
+ Args: {
35710
+ p_cart_id: string;
35711
+ p_slug: string;
35712
+ };
35713
+ Returns: Json;
35714
+ };
35715
+ pickstation_sticker_reprint: {
35716
+ Args: {
35717
+ p_cart_id: string;
35718
+ p_reden?: string;
35719
+ p_slug: string;
35720
+ };
35721
+ Returns: Json;
35722
+ };
34959
35723
  plan_standby_batch: {
34960
35724
  Args: {
34961
35725
  _items: Json;
@@ -35108,6 +35872,14 @@ export type Database = {
35108
35872
  status: string;
35109
35873
  }[];
35110
35874
  };
35875
+ print_kopieen_aantal: {
35876
+ Args: {
35877
+ _kopieen: number;
35878
+ _payload: Json;
35879
+ _type: string;
35880
+ };
35881
+ Returns: number;
35882
+ };
35111
35883
  print_preview_toestaan: {
35112
35884
  Args: {
35113
35885
  _max?: number;
@@ -35150,6 +35922,20 @@ export type Database = {
35150
35922
  };
35151
35923
  Returns: Json;
35152
35924
  };
35925
+ printer_herstel_uitvoeren: {
35926
+ Args: {
35927
+ _plek: string;
35928
+ _printer: string;
35929
+ };
35930
+ Returns: number;
35931
+ };
35932
+ printer_herstel_voorstel: {
35933
+ Args: {
35934
+ _plek: string;
35935
+ _printer: string;
35936
+ };
35937
+ Returns: number;
35938
+ };
35153
35939
  printer_routering: {
35154
35940
  Args: {
35155
35941
  _documenttype: string;
@@ -35161,6 +35947,13 @@ export type Database = {
35161
35947
  };
35162
35948
  Returns: Json;
35163
35949
  };
35950
+ printer_verwijder_verwijzingen: {
35951
+ Args: {
35952
+ _plek: string;
35953
+ _printer: string;
35954
+ };
35955
+ Returns: Json;
35956
+ };
35164
35957
  printplek_printer: {
35165
35958
  Args: {
35166
35959
  _documenttype: string;
@@ -35433,6 +36226,13 @@ export type Database = {
35433
36226
  };
35434
36227
  Returns: undefined;
35435
36228
  };
36229
+ record_offer_order_failure: {
36230
+ Args: {
36231
+ p_error: string;
36232
+ p_offer_order_id: string;
36233
+ };
36234
+ Returns: undefined;
36235
+ };
35436
36236
  refresh_external_customers_grouped: {
35437
36237
  Args: never;
35438
36238
  Returns: undefined;
@@ -35569,6 +36369,10 @@ export type Database = {
35569
36369
  };
35570
36370
  Returns: string;
35571
36371
  };
36372
+ retry_offer_orders: {
36373
+ Args: never;
36374
+ Returns: number;
36375
+ };
35572
36376
  retry_twinfield_push: {
35573
36377
  Args: {
35574
36378
  _customer_id: string;
@@ -35698,6 +36502,7 @@ export type Database = {
35698
36502
  scan_eindcontrole: {
35699
36503
  Args: {
35700
36504
  p_barcode: string;
36505
+ p_bevestig_niet_geprint?: boolean;
35701
36506
  p_scanner_id?: string;
35702
36507
  };
35703
36508
  Returns: Json;
@@ -35721,6 +36526,18 @@ export type Database = {
35721
36526
  };
35722
36527
  Returns: Json;
35723
36528
  };
36529
+ scan_kar_logs: {
36530
+ Args: {
36531
+ p_cart_ids: string[];
36532
+ };
36533
+ Returns: {
36534
+ created_at: string;
36535
+ kar_id: string;
36536
+ medewerker_naam: string;
36537
+ message: string;
36538
+ result: string;
36539
+ }[];
36540
+ };
35724
36541
  scan_kar_regels: {
35725
36542
  Args: {
35726
36543
  p_cart_id: string;
@@ -35738,6 +36555,7 @@ export type Database = {
35738
36555
  scan_log_code: {
35739
36556
  Args: {
35740
36557
  p_code: string;
36558
+ p_kar_id?: string;
35741
36559
  p_latency_ms?: number;
35742
36560
  p_medewerker?: string;
35743
36561
  p_message?: string;
@@ -36177,6 +36995,12 @@ export type Database = {
36177
36995
  };
36178
36996
  Returns: undefined;
36179
36997
  };
36998
+ set_primary_delivery_location: {
36999
+ Args: {
37000
+ p_location_id: string;
37001
+ };
37002
+ Returns: undefined;
37003
+ };
36180
37004
  set_product_stock: {
36181
37005
  Args: {
36182
37006
  p_incoming_stock?: number;
@@ -36238,6 +37062,13 @@ export type Database = {
36238
37062
  };
36239
37063
  Returns: Json;
36240
37064
  };
37065
+ sticker_past_controle: {
37066
+ Args: {
37067
+ _print_plek_id?: string;
37068
+ _sticker_ids: string[];
37069
+ };
37070
+ Returns: Json;
37071
+ };
36241
37072
  stock_import_cleanup: {
36242
37073
  Args: never;
36243
37074
  Returns: number;
@@ -37018,6 +37849,24 @@ export type Database = {
37018
37849
  };
37019
37850
  Returns: number;
37020
37851
  };
37852
+ verkoop_create_order: {
37853
+ Args: {
37854
+ p_accept_late_signup?: boolean;
37855
+ p_accepted_by?: string;
37856
+ p_carrier_id: string;
37857
+ p_customer_id: string;
37858
+ p_customer_reference?: string;
37859
+ p_delivery_date: string;
37860
+ p_delivery_location_id: string;
37861
+ p_lines: Json;
37862
+ p_moment_key?: string;
37863
+ p_notes?: string;
37864
+ p_own_transport?: boolean;
37865
+ p_source: string;
37866
+ p_source_id: string;
37867
+ };
37868
+ Returns: Json;
37869
+ };
37021
37870
  vervang_printer: {
37022
37871
  Args: {
37023
37872
  _nieuw: string;
@@ -37039,6 +37888,20 @@ export type Database = {
37039
37888
  Args: never;
37040
37889
  Returns: Json;
37041
37890
  };
37891
+ voorraad_consume_external_fulfilled: {
37892
+ Args: {
37893
+ p_ids: string[];
37894
+ p_order_id: string;
37895
+ p_source: string;
37896
+ };
37897
+ Returns: number;
37898
+ };
37899
+ voorraad_external_fulfilled_ids: {
37900
+ Args: {
37901
+ p_cf: Json;
37902
+ };
37903
+ Returns: string[];
37904
+ };
37042
37905
  voorraad_hook_base_url: {
37043
37906
  Args: never;
37044
37907
  Returns: string;