@flowselections/logistiek-engine 1.0.167 → 1.0.170

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 (30) hide show
  1. package/dist-lib/components/FloridayPoortCard.d.ts.map +1 -1
  2. package/dist-lib/components/FloridayPoortCard.js +8 -2
  3. package/dist-lib/hooks/useFloridayGate.d.ts +2 -0
  4. package/dist-lib/hooks/useFloridayGate.d.ts.map +1 -1
  5. package/dist-lib/hooks/useFloridayGate.js +9 -2
  6. package/dist-lib/index.d.ts +0 -1
  7. package/dist-lib/index.d.ts.map +1 -1
  8. package/dist-lib/index.js +1 -5
  9. package/dist-lib/integrations/supabase/types.d.ts +669 -0
  10. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  11. package/dist-lib/lib/autoSend.server.d.ts +1 -0
  12. package/dist-lib/lib/autoSend.server.d.ts.map +1 -1
  13. package/dist-lib/lib/autoSend.server.js +17 -2
  14. package/dist-lib/lib/floridayPush.server.d.ts +3 -0
  15. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  16. package/dist-lib/lib/floridayPush.server.js +25 -0
  17. package/dist-lib/lib/floridayWriteMode.d.ts +15 -0
  18. package/dist-lib/lib/floridayWriteMode.d.ts.map +1 -0
  19. package/dist-lib/lib/floridayWriteMode.js +44 -0
  20. package/dist-lib/lib/floridayWriteMode.server.d.ts +5 -0
  21. package/dist-lib/lib/floridayWriteMode.server.d.ts.map +1 -0
  22. package/dist-lib/lib/floridayWriteMode.server.js +11 -0
  23. package/dist-lib/lib/handlers/logistics-tick.server.js +18 -0
  24. package/dist-lib/lib/moduleVersion.d.ts +1 -1
  25. package/dist-lib/lib/moduleVersion.js +1 -1
  26. package/dist-lib/lib/shippingNoteQueue.server.d.ts.map +1 -1
  27. package/dist-lib/lib/shippingNoteQueue.server.js +15 -0
  28. package/dist-lib/lib/stickerQueue.server.d.ts.map +1 -1
  29. package/dist-lib/lib/stickerQueue.server.js +14 -0
  30. package/package.json +1 -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: [];
@@ -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
  };
@@ -7604,7 +7622,11 @@ export type Database = {
7604
7622
  created_at: string;
7605
7623
  desired_availability: boolean;
7606
7624
  desired_quantity: number;
7625
+ erp_leading: boolean | null;
7626
+ erp_leading_at: string | null;
7627
+ first_positive_published_at: string | null;
7607
7628
  fixed_quantity: number | null;
7629
+ floriday_offer_forms: Json | null;
7608
7630
  floriday_trade_item_id: string | null;
7609
7631
  id: string;
7610
7632
  last_confirmed_at: string | null;
@@ -7636,7 +7658,11 @@ export type Database = {
7636
7658
  created_at?: string;
7637
7659
  desired_availability?: boolean;
7638
7660
  desired_quantity?: number;
7661
+ erp_leading?: boolean | null;
7662
+ erp_leading_at?: string | null;
7663
+ first_positive_published_at?: string | null;
7639
7664
  fixed_quantity?: number | null;
7665
+ floriday_offer_forms?: Json | null;
7640
7666
  floriday_trade_item_id?: string | null;
7641
7667
  id?: string;
7642
7668
  last_confirmed_at?: string | null;
@@ -7668,7 +7694,11 @@ export type Database = {
7668
7694
  created_at?: string;
7669
7695
  desired_availability?: boolean;
7670
7696
  desired_quantity?: number;
7697
+ erp_leading?: boolean | null;
7698
+ erp_leading_at?: string | null;
7699
+ first_positive_published_at?: string | null;
7671
7700
  fixed_quantity?: number | null;
7701
+ floriday_offer_forms?: Json | null;
7672
7702
  floriday_trade_item_id?: string | null;
7673
7703
  id?: string;
7674
7704
  last_confirmed_at?: string | null;
@@ -8529,6 +8559,116 @@ export type Database = {
8529
8559
  }
8530
8560
  ];
8531
8561
  };
8562
+ floriday_takeover_items: {
8563
+ Row: {
8564
+ created_at: string;
8565
+ created_product: boolean;
8566
+ id: string;
8567
+ new_price: number | null;
8568
+ new_stock: number | null;
8569
+ offer_forms: Json | null;
8570
+ old_erp_leading: boolean | null;
8571
+ old_offer_forms: Json | null;
8572
+ old_price: number | null;
8573
+ old_stock: number | null;
8574
+ price_source: string | null;
8575
+ product_id: string;
8576
+ run_id: string;
8577
+ stock_source: string | null;
8578
+ trade_item_id: string;
8579
+ undo_skipped_reason: string | null;
8580
+ undone: boolean;
8581
+ };
8582
+ Insert: {
8583
+ created_at?: string;
8584
+ created_product?: boolean;
8585
+ id?: string;
8586
+ new_price?: number | null;
8587
+ new_stock?: number | null;
8588
+ offer_forms?: Json | null;
8589
+ old_erp_leading?: boolean | null;
8590
+ old_offer_forms?: Json | null;
8591
+ old_price?: number | null;
8592
+ old_stock?: number | null;
8593
+ price_source?: string | null;
8594
+ product_id: string;
8595
+ run_id: string;
8596
+ stock_source?: string | null;
8597
+ trade_item_id: string;
8598
+ undo_skipped_reason?: string | null;
8599
+ undone?: boolean;
8600
+ };
8601
+ Update: {
8602
+ created_at?: string;
8603
+ created_product?: boolean;
8604
+ id?: string;
8605
+ new_price?: number | null;
8606
+ new_stock?: number | null;
8607
+ offer_forms?: Json | null;
8608
+ old_erp_leading?: boolean | null;
8609
+ old_offer_forms?: Json | null;
8610
+ old_price?: number | null;
8611
+ old_stock?: number | null;
8612
+ price_source?: string | null;
8613
+ product_id?: string;
8614
+ run_id?: string;
8615
+ stock_source?: string | null;
8616
+ trade_item_id?: string;
8617
+ undo_skipped_reason?: string | null;
8618
+ undone?: boolean;
8619
+ };
8620
+ Relationships: [
8621
+ {
8622
+ foreignKeyName: "floriday_takeover_items_run_id_fkey";
8623
+ columns: ["run_id"];
8624
+ isOneToOne: false;
8625
+ referencedRelation: "floriday_takeover_runs";
8626
+ referencedColumns: ["id"];
8627
+ }
8628
+ ];
8629
+ };
8630
+ floriday_takeover_runs: {
8631
+ Row: {
8632
+ connection_id: string;
8633
+ created_at: string;
8634
+ created_products: number;
8635
+ id: string;
8636
+ status: string;
8637
+ total_items: number;
8638
+ undo_skipped_items: number;
8639
+ undone_at: string | null;
8640
+ undone_items: number;
8641
+ updated_at: string;
8642
+ user_id: string;
8643
+ };
8644
+ Insert: {
8645
+ connection_id: string;
8646
+ created_at?: string;
8647
+ created_products?: number;
8648
+ id?: string;
8649
+ status?: string;
8650
+ total_items?: number;
8651
+ undo_skipped_items?: number;
8652
+ undone_at?: string | null;
8653
+ undone_items?: number;
8654
+ updated_at?: string;
8655
+ user_id: string;
8656
+ };
8657
+ Update: {
8658
+ connection_id?: string;
8659
+ created_at?: string;
8660
+ created_products?: number;
8661
+ id?: string;
8662
+ status?: string;
8663
+ total_items?: number;
8664
+ undo_skipped_items?: number;
8665
+ undone_at?: string | null;
8666
+ undone_items?: number;
8667
+ updated_at?: string;
8668
+ user_id?: string;
8669
+ };
8670
+ Relationships: [];
8671
+ };
8532
8672
  floriday_token_refresh_log: {
8533
8673
  Row: {
8534
8674
  attempted_at: string;
@@ -14616,6 +14756,45 @@ export type Database = {
14616
14756
  };
14617
14757
  Relationships: [];
14618
14758
  };
14759
+ mailbox_ai_runs: {
14760
+ Row: {
14761
+ error: string | null;
14762
+ finished_at: string | null;
14763
+ id: string;
14764
+ input_tokens: number | null;
14765
+ is_test: boolean;
14766
+ message_id: string | null;
14767
+ ok: boolean | null;
14768
+ output_tokens: number | null;
14769
+ started_at: string;
14770
+ trigger: string;
14771
+ };
14772
+ Insert: {
14773
+ error?: string | null;
14774
+ finished_at?: string | null;
14775
+ id?: string;
14776
+ input_tokens?: number | null;
14777
+ is_test?: boolean;
14778
+ message_id?: string | null;
14779
+ ok?: boolean | null;
14780
+ output_tokens?: number | null;
14781
+ started_at?: string;
14782
+ trigger?: string;
14783
+ };
14784
+ Update: {
14785
+ error?: string | null;
14786
+ finished_at?: string | null;
14787
+ id?: string;
14788
+ input_tokens?: number | null;
14789
+ is_test?: boolean;
14790
+ message_id?: string | null;
14791
+ ok?: boolean | null;
14792
+ output_tokens?: number | null;
14793
+ started_at?: string;
14794
+ trigger?: string;
14795
+ };
14796
+ Relationships: [];
14797
+ };
14619
14798
  mailbox_ai_settings: {
14620
14799
  Row: {
14621
14800
  active_goal_key: string | null;
@@ -14649,6 +14828,78 @@ export type Database = {
14649
14828
  };
14650
14829
  Relationships: [];
14651
14830
  };
14831
+ mailbox_filter_settings: {
14832
+ Row: {
14833
+ analyze_unknown_with_signals: boolean;
14834
+ conf_green: number;
14835
+ conf_orange: number;
14836
+ created_at: string;
14837
+ domain_match: boolean;
14838
+ duplicate_days: number;
14839
+ id: string;
14840
+ max_agent_reparse: number;
14841
+ max_ai_per_day: number;
14842
+ max_ai_per_month: number;
14843
+ max_candidates: number;
14844
+ max_retries_per_run: number;
14845
+ max_retry_attempts: number;
14846
+ min_signals_unknown: number;
14847
+ negative_keywords: string[];
14848
+ order_keywords: string[];
14849
+ order_patterns: string[];
14850
+ singleton: boolean;
14851
+ skip_domains: string[];
14852
+ skip_senders: string[];
14853
+ updated_at: string;
14854
+ };
14855
+ Insert: {
14856
+ analyze_unknown_with_signals?: boolean;
14857
+ conf_green?: number;
14858
+ conf_orange?: number;
14859
+ created_at?: string;
14860
+ domain_match?: boolean;
14861
+ duplicate_days?: number;
14862
+ id?: string;
14863
+ max_agent_reparse?: number;
14864
+ max_ai_per_day?: number;
14865
+ max_ai_per_month?: number;
14866
+ max_candidates?: number;
14867
+ max_retries_per_run?: number;
14868
+ max_retry_attempts?: number;
14869
+ min_signals_unknown?: number;
14870
+ negative_keywords?: string[];
14871
+ order_keywords?: string[];
14872
+ order_patterns?: string[];
14873
+ singleton?: boolean;
14874
+ skip_domains?: string[];
14875
+ skip_senders?: string[];
14876
+ updated_at?: string;
14877
+ };
14878
+ Update: {
14879
+ analyze_unknown_with_signals?: boolean;
14880
+ conf_green?: number;
14881
+ conf_orange?: number;
14882
+ created_at?: string;
14883
+ domain_match?: boolean;
14884
+ duplicate_days?: number;
14885
+ id?: string;
14886
+ max_agent_reparse?: number;
14887
+ max_ai_per_day?: number;
14888
+ max_ai_per_month?: number;
14889
+ max_candidates?: number;
14890
+ max_retries_per_run?: number;
14891
+ max_retry_attempts?: number;
14892
+ min_signals_unknown?: number;
14893
+ negative_keywords?: string[];
14894
+ order_keywords?: string[];
14895
+ order_patterns?: string[];
14896
+ singleton?: boolean;
14897
+ skip_domains?: string[];
14898
+ skip_senders?: string[];
14899
+ updated_at?: string;
14900
+ };
14901
+ Relationships: [];
14902
+ };
14652
14903
  mailbox_ingest_runs: {
14653
14904
  Row: {
14654
14905
  connection_id: string | null;
@@ -14687,6 +14938,10 @@ export type Database = {
14687
14938
  };
14688
14939
  mailbox_messages: {
14689
14940
  Row: {
14941
+ analysis_count: number;
14942
+ analysis_note: string | null;
14943
+ analysis_started_at: string | null;
14944
+ analysis_state: string | null;
14690
14945
  attachments: Json;
14691
14946
  body_html: string | null;
14692
14947
  body_text: string | null;
@@ -14695,6 +14950,8 @@ export type Database = {
14695
14950
  created_at: string;
14696
14951
  error_message: string | null;
14697
14952
  external_id: string | null;
14953
+ filter_outcome: string | null;
14954
+ filter_reason: string | null;
14698
14955
  from_email: string | null;
14699
14956
  from_name: string | null;
14700
14957
  has_attachments: boolean;
@@ -14711,6 +14968,10 @@ export type Database = {
14711
14968
  updated_at: string;
14712
14969
  };
14713
14970
  Insert: {
14971
+ analysis_count?: number;
14972
+ analysis_note?: string | null;
14973
+ analysis_started_at?: string | null;
14974
+ analysis_state?: string | null;
14714
14975
  attachments?: Json;
14715
14976
  body_html?: string | null;
14716
14977
  body_text?: string | null;
@@ -14719,6 +14980,8 @@ export type Database = {
14719
14980
  created_at?: string;
14720
14981
  error_message?: string | null;
14721
14982
  external_id?: string | null;
14983
+ filter_outcome?: string | null;
14984
+ filter_reason?: string | null;
14722
14985
  from_email?: string | null;
14723
14986
  from_name?: string | null;
14724
14987
  has_attachments?: boolean;
@@ -14735,6 +14998,10 @@ export type Database = {
14735
14998
  updated_at?: string;
14736
14999
  };
14737
15000
  Update: {
15001
+ analysis_count?: number;
15002
+ analysis_note?: string | null;
15003
+ analysis_started_at?: string | null;
15004
+ analysis_state?: string | null;
14738
15005
  attachments?: Json;
14739
15006
  body_html?: string | null;
14740
15007
  body_text?: string | null;
@@ -14743,6 +15010,8 @@ export type Database = {
14743
15010
  created_at?: string;
14744
15011
  error_message?: string | null;
14745
15012
  external_id?: string | null;
15013
+ filter_outcome?: string | null;
15014
+ filter_reason?: string | null;
14746
15015
  from_email?: string | null;
14747
15016
  from_name?: string | null;
14748
15017
  has_attachments?: boolean;
@@ -14789,6 +15058,7 @@ export type Database = {
14789
15058
  confidence: number | null;
14790
15059
  created_at: string;
14791
15060
  created_order_id: string | null;
15061
+ customer_reference: string | null;
14792
15062
  delivery_date: string | null;
14793
15063
  id: string;
14794
15064
  matched_customer_id: string | null;
@@ -14807,6 +15077,7 @@ export type Database = {
14807
15077
  confidence?: number | null;
14808
15078
  created_at?: string;
14809
15079
  created_order_id?: string | null;
15080
+ customer_reference?: string | null;
14810
15081
  delivery_date?: string | null;
14811
15082
  id?: string;
14812
15083
  matched_customer_id?: string | null;
@@ -14825,6 +15096,7 @@ export type Database = {
14825
15096
  confidence?: number | null;
14826
15097
  created_at?: string;
14827
15098
  created_order_id?: string | null;
15099
+ customer_reference?: string | null;
14828
15100
  delivery_date?: string | null;
14829
15101
  id?: string;
14830
15102
  matched_customer_id?: string | null;
@@ -14961,43 +15233,85 @@ export type Database = {
14961
15233
  };
14962
15234
  mailbox_proposal_lines: {
14963
15235
  Row: {
15236
+ belading: Json | null;
15237
+ confidence: Json | null;
14964
15238
  created_at: string;
15239
+ currency: string | null;
14965
15240
  id: string;
14966
15241
  match_confidence: number | null;
15242
+ match_source: string | null;
15243
+ name_in_mail: string | null;
15244
+ pieces_per_unit: number | null;
14967
15245
  plant_type: string | null;
15246
+ plants: number | null;
15247
+ price_per: string | null;
14968
15248
  product_id: string | null;
14969
15249
  proposal_id: string;
15250
+ qty_in_mail: number | null;
14970
15251
  quantity: number | null;
15252
+ raw_code: string | null;
14971
15253
  raw_product_text: string | null;
14972
15254
  sort_order: number;
14973
15255
  unit: string | null;
15256
+ unit_kind: string | null;
15257
+ unit_price: number | null;
15258
+ unit_text: string | null;
14974
15259
  updated_at: string;
15260
+ warnings: string[] | null;
14975
15261
  };
14976
15262
  Insert: {
15263
+ belading?: Json | null;
15264
+ confidence?: Json | null;
14977
15265
  created_at?: string;
15266
+ currency?: string | null;
14978
15267
  id?: string;
14979
15268
  match_confidence?: number | null;
15269
+ match_source?: string | null;
15270
+ name_in_mail?: string | null;
15271
+ pieces_per_unit?: number | null;
14980
15272
  plant_type?: string | null;
15273
+ plants?: number | null;
15274
+ price_per?: string | null;
14981
15275
  product_id?: string | null;
14982
15276
  proposal_id: string;
15277
+ qty_in_mail?: number | null;
14983
15278
  quantity?: number | null;
15279
+ raw_code?: string | null;
14984
15280
  raw_product_text?: string | null;
14985
15281
  sort_order?: number;
14986
15282
  unit?: string | null;
15283
+ unit_kind?: string | null;
15284
+ unit_price?: number | null;
15285
+ unit_text?: string | null;
14987
15286
  updated_at?: string;
15287
+ warnings?: string[] | null;
14988
15288
  };
14989
15289
  Update: {
15290
+ belading?: Json | null;
15291
+ confidence?: Json | null;
14990
15292
  created_at?: string;
15293
+ currency?: string | null;
14991
15294
  id?: string;
14992
15295
  match_confidence?: number | null;
15296
+ match_source?: string | null;
15297
+ name_in_mail?: string | null;
15298
+ pieces_per_unit?: number | null;
14993
15299
  plant_type?: string | null;
15300
+ plants?: number | null;
15301
+ price_per?: string | null;
14994
15302
  product_id?: string | null;
14995
15303
  proposal_id?: string;
15304
+ qty_in_mail?: number | null;
14996
15305
  quantity?: number | null;
15306
+ raw_code?: string | null;
14997
15307
  raw_product_text?: string | null;
14998
15308
  sort_order?: number;
14999
15309
  unit?: string | null;
15310
+ unit_kind?: string | null;
15311
+ unit_price?: number | null;
15312
+ unit_text?: string | null;
15000
15313
  updated_at?: string;
15314
+ warnings?: string[] | null;
15001
15315
  };
15002
15316
  Relationships: [
15003
15317
  {
@@ -15071,6 +15385,51 @@ export type Database = {
15071
15385
  };
15072
15386
  Relationships: [];
15073
15387
  };
15388
+ mailbox_test_cases: {
15389
+ Row: {
15390
+ body_text: string;
15391
+ created_at: string;
15392
+ expected: Json;
15393
+ from_email: string;
15394
+ has_attachment: boolean;
15395
+ id: string;
15396
+ last_result: Json | null;
15397
+ last_run_at: string | null;
15398
+ name: string;
15399
+ sort_order: number;
15400
+ subject: string;
15401
+ updated_at: string;
15402
+ };
15403
+ Insert: {
15404
+ body_text?: string;
15405
+ created_at?: string;
15406
+ expected?: Json;
15407
+ from_email?: string;
15408
+ has_attachment?: boolean;
15409
+ id?: string;
15410
+ last_result?: Json | null;
15411
+ last_run_at?: string | null;
15412
+ name: string;
15413
+ sort_order?: number;
15414
+ subject?: string;
15415
+ updated_at?: string;
15416
+ };
15417
+ Update: {
15418
+ body_text?: string;
15419
+ created_at?: string;
15420
+ expected?: Json;
15421
+ from_email?: string;
15422
+ has_attachment?: boolean;
15423
+ id?: string;
15424
+ last_result?: Json | null;
15425
+ last_run_at?: string | null;
15426
+ name?: string;
15427
+ sort_order?: number;
15428
+ subject?: string;
15429
+ updated_at?: string;
15430
+ };
15431
+ Relationships: [];
15432
+ };
15074
15433
  manufacture_product_components: {
15075
15434
  Row: {
15076
15435
  component_type: string;
@@ -16193,10 +16552,12 @@ export type Database = {
16193
16552
  id: string;
16194
16553
  items: Json;
16195
16554
  notes: string | null;
16555
+ order_creation_attempts: number;
16196
16556
  order_creation_error: string | null;
16197
16557
  order_creation_failed_at: string | null;
16198
16558
  order_id: string | null;
16199
16559
  order_number: string | null;
16560
+ order_retry_payload: Json | null;
16200
16561
  recipient_id: string;
16201
16562
  total_amount: number;
16202
16563
  };
@@ -16210,10 +16571,12 @@ export type Database = {
16210
16571
  id?: string;
16211
16572
  items?: Json;
16212
16573
  notes?: string | null;
16574
+ order_creation_attempts?: number;
16213
16575
  order_creation_error?: string | null;
16214
16576
  order_creation_failed_at?: string | null;
16215
16577
  order_id?: string | null;
16216
16578
  order_number?: string | null;
16579
+ order_retry_payload?: Json | null;
16217
16580
  recipient_id: string;
16218
16581
  total_amount?: number;
16219
16582
  };
@@ -16227,10 +16590,12 @@ export type Database = {
16227
16590
  id?: string;
16228
16591
  items?: Json;
16229
16592
  notes?: string | null;
16593
+ order_creation_attempts?: number;
16230
16594
  order_creation_error?: string | null;
16231
16595
  order_creation_failed_at?: string | null;
16232
16596
  order_id?: string | null;
16233
16597
  order_number?: string | null;
16598
+ order_retry_payload?: Json | null;
16234
16599
  recipient_id?: string;
16235
16600
  total_amount?: number;
16236
16601
  };
@@ -20984,6 +21349,69 @@ export type Database = {
20984
21349
  }
20985
21350
  ];
20986
21351
  };
21352
+ productontwerp_import_map: {
21353
+ Row: {
21354
+ created_at: string;
21355
+ entity_type: string;
21356
+ id: string;
21357
+ imported_at: string;
21358
+ match_method: string | null;
21359
+ source_id: string;
21360
+ source_shell_id: string;
21361
+ target_id: string;
21362
+ updated_at: string;
21363
+ };
21364
+ Insert: {
21365
+ created_at?: string;
21366
+ entity_type: string;
21367
+ id?: string;
21368
+ imported_at?: string;
21369
+ match_method?: string | null;
21370
+ source_id: string;
21371
+ source_shell_id: string;
21372
+ target_id: string;
21373
+ updated_at?: string;
21374
+ };
21375
+ Update: {
21376
+ created_at?: string;
21377
+ entity_type?: string;
21378
+ id?: string;
21379
+ imported_at?: string;
21380
+ match_method?: string | null;
21381
+ source_id?: string;
21382
+ source_shell_id?: string;
21383
+ target_id?: string;
21384
+ updated_at?: string;
21385
+ };
21386
+ Relationships: [];
21387
+ };
21388
+ productontwerp_structure_codes: {
21389
+ Row: {
21390
+ code: string;
21391
+ created_at: string;
21392
+ entity_id: string;
21393
+ entity_type: string;
21394
+ id: string;
21395
+ updated_at: string;
21396
+ };
21397
+ Insert: {
21398
+ code: string;
21399
+ created_at?: string;
21400
+ entity_id: string;
21401
+ entity_type: string;
21402
+ id?: string;
21403
+ updated_at?: string;
21404
+ };
21405
+ Update: {
21406
+ code?: string;
21407
+ created_at?: string;
21408
+ entity_id?: string;
21409
+ entity_type?: string;
21410
+ id?: string;
21411
+ updated_at?: string;
21412
+ };
21413
+ Relationships: [];
21414
+ };
20987
21415
  products: {
20988
21416
  Row: {
20989
21417
  article_number: string | null;
@@ -28810,6 +29238,10 @@ export type Database = {
28810
29238
  };
28811
29239
  };
28812
29240
  Functions: {
29241
+ _arm_offer_order_retry: {
29242
+ Args: never;
29243
+ Returns: undefined;
29244
+ };
28813
29245
  _floriday_queue_cleanup_batch: {
28814
29246
  Args: {
28815
29247
  p_days: number;
@@ -30117,6 +30549,30 @@ export type Database = {
30117
30549
  };
30118
30550
  Returns: boolean;
30119
30551
  };
30552
+ floricode_sync_cron_schedule: {
30553
+ Args: {
30554
+ p_apikey: string;
30555
+ p_schedule: string;
30556
+ p_url: string;
30557
+ };
30558
+ Returns: number;
30559
+ };
30560
+ floricode_sync_cron_set_schedule: {
30561
+ Args: {
30562
+ p_schedule: string;
30563
+ };
30564
+ Returns: boolean;
30565
+ };
30566
+ floricode_sync_cron_status: {
30567
+ Args: never;
30568
+ Returns: {
30569
+ active: boolean;
30570
+ last_run_at: string;
30571
+ last_run_status: string;
30572
+ schedule: string;
30573
+ scheduled: boolean;
30574
+ }[];
30575
+ };
30120
30576
  floriday_adopt_connection: {
30121
30577
  Args: {
30122
30578
  p_new: string;
@@ -30176,6 +30632,26 @@ export type Database = {
30176
30632
  source_id: string;
30177
30633
  }[];
30178
30634
  };
30635
+ floriday_erp_leading_preview: {
30636
+ Args: {
30637
+ p_connection_id: string;
30638
+ p_product_ids: string[];
30639
+ p_stock_mode?: string;
30640
+ };
30641
+ Returns: {
30642
+ blocker: string;
30643
+ desired_available: boolean;
30644
+ desired_quantity: number;
30645
+ horizon_weeks: number;
30646
+ offer_forms: Json;
30647
+ product_id: string;
30648
+ product_name: string;
30649
+ sale_price: number;
30650
+ stock_mode: string;
30651
+ trade_item_id: string;
30652
+ weeks: Json;
30653
+ }[];
30654
+ };
30179
30655
  floriday_fill_publish_horizon: {
30180
30656
  Args: never;
30181
30657
  Returns: number;
@@ -30186,6 +30662,20 @@ export type Database = {
30186
30662
  };
30187
30663
  Returns: number;
30188
30664
  };
30665
+ floriday_leading_summary: {
30666
+ Args: {
30667
+ p_connection_id: string;
30668
+ };
30669
+ Returns: Json;
30670
+ };
30671
+ floriday_make_erp_leading: {
30672
+ Args: {
30673
+ p_connection_id: string;
30674
+ p_product_ids: string[];
30675
+ p_stock_mode?: string;
30676
+ };
30677
+ Returns: Json;
30678
+ };
30189
30679
  floriday_network_status: {
30190
30680
  Args: {
30191
30681
  p_organization_id: string;
@@ -30197,6 +30687,12 @@ export type Database = {
30197
30687
  synced_at: string;
30198
30688
  }[];
30199
30689
  };
30690
+ floriday_norm_offer_forms: {
30691
+ Args: {
30692
+ p: Json;
30693
+ };
30694
+ Returns: Json;
30695
+ };
30200
30696
  floriday_orphan_settings_count: {
30201
30697
  Args: never;
30202
30698
  Returns: number;
@@ -30225,10 +30721,27 @@ export type Database = {
30225
30721
  };
30226
30722
  Returns: number;
30227
30723
  };
30724
+ floriday_takeover_apply: {
30725
+ Args: {
30726
+ p_connection_id: string;
30727
+ p_items: Json;
30728
+ };
30729
+ Returns: Json;
30730
+ };
30731
+ floriday_takeover_undo: {
30732
+ Args: {
30733
+ p_run_id: string;
30734
+ };
30735
+ Returns: Json;
30736
+ };
30228
30737
  floriday_today_announce_summary: {
30229
30738
  Args: never;
30230
30739
  Returns: Json;
30231
30740
  };
30741
+ floriday_write_mode: {
30742
+ Args: never;
30743
+ Returns: Json;
30744
+ };
30232
30745
  format_cart_number: {
30233
30746
  Args: {
30234
30747
  p_pick_date: string;
@@ -31217,6 +31730,14 @@ export type Database = {
31217
31730
  };
31218
31731
  Returns: string;
31219
31732
  };
31733
+ log_offer_event_by_code: {
31734
+ Args: {
31735
+ p_code: string;
31736
+ p_event_type: string;
31737
+ p_metadata?: Json;
31738
+ };
31739
+ Returns: boolean;
31740
+ };
31220
31741
  logistics_active_layout_method: {
31221
31742
  Args: never;
31222
31743
  Returns: string;
@@ -31640,6 +32161,12 @@ export type Database = {
31640
32161
  };
31641
32162
  Returns: boolean;
31642
32163
  };
32164
+ logistics_cart_has_packing_slip: {
32165
+ Args: {
32166
+ p_cart_id: string;
32167
+ };
32168
+ Returns: boolean;
32169
+ };
31643
32170
  logistics_cart_ids_frozen: {
31644
32171
  Args: {
31645
32172
  p_cart_ids: string[];
@@ -32198,6 +32725,7 @@ export type Database = {
32198
32725
  p_delivery_date: string;
32199
32726
  p_delivery_location: string;
32200
32727
  p_moment_key?: string;
32728
+ p_own_transport?: boolean;
32201
32729
  };
32202
32730
  Returns: Json;
32203
32731
  };
@@ -32452,6 +32980,10 @@ export type Database = {
32452
32980
  Args: never;
32453
32981
  Returns: Json;
32454
32982
  };
32983
+ logistics_floriday_is_read_only: {
32984
+ Args: never;
32985
+ Returns: boolean;
32986
+ };
32455
32987
  logistics_floriday_layout_id: {
32456
32988
  Args: {
32457
32989
  p_documenttype: string;
@@ -32492,6 +33024,13 @@ export type Database = {
32492
33024
  };
32493
33025
  Returns: number;
32494
33026
  };
33027
+ logistics_floriday_push_hold_read_only: {
33028
+ Args: {
33029
+ _id: string;
33030
+ _revision: number;
33031
+ };
33032
+ Returns: string;
33033
+ };
32495
33034
  logistics_floriday_queue_push: {
32496
33035
  Args: {
32497
33036
  _order_ref: string;
@@ -32500,6 +33039,10 @@ export type Database = {
32500
33039
  };
32501
33040
  Returns: string;
32502
33041
  };
33042
+ logistics_floriday_release_read_only: {
33043
+ Args: never;
33044
+ Returns: Json;
33045
+ };
32503
33046
  logistics_floriday_status_updates_enabled: {
32504
33047
  Args: never;
32505
33048
  Returns: boolean;
@@ -32651,6 +33194,12 @@ export type Database = {
32651
33194
  };
32652
33195
  Returns: string;
32653
33196
  };
33197
+ logistics_nl_date: {
33198
+ Args: {
33199
+ p_day: string;
33200
+ };
33201
+ Returns: string;
33202
+ };
32654
33203
  logistics_nl_moment: {
32655
33204
  Args: {
32656
33205
  p_at: string;
@@ -32863,6 +33412,12 @@ export type Database = {
32863
33412
  };
32864
33413
  Returns: boolean;
32865
33414
  };
33415
+ logistics_order_is_shipped_status: {
33416
+ Args: {
33417
+ p_status: string;
33418
+ };
33419
+ Returns: boolean;
33420
+ };
32866
33421
  logistics_order_is_topick: {
32867
33422
  Args: {
32868
33423
  p_order_id: string;
@@ -33001,6 +33556,13 @@ export type Database = {
33001
33556
  Args: never;
33002
33557
  Returns: Json;
33003
33558
  };
33559
+ logistics_own_transport_departure: {
33560
+ Args: {
33561
+ p_delivery_date: string;
33562
+ p_pickup_at: string;
33563
+ };
33564
+ Returns: Json;
33565
+ };
33004
33566
  logistics_packing_autofix: {
33005
33567
  Args: {
33006
33568
  p_limit?: number;
@@ -33817,6 +34379,10 @@ export type Database = {
33817
34379
  peer_order_id: string;
33818
34380
  }[];
33819
34381
  };
34382
+ logistics_shell_base_url: {
34383
+ Args: never;
34384
+ Returns: string;
34385
+ };
33820
34386
  logistics_shift_to_workday: {
33821
34387
  Args: {
33822
34388
  p_days: string[];
@@ -33896,6 +34462,12 @@ export type Database = {
33896
34462
  };
33897
34463
  Returns: boolean;
33898
34464
  };
34465
+ logistics_slip_is_herprint: {
34466
+ Args: {
34467
+ p_slip_job_id: string;
34468
+ };
34469
+ Returns: boolean;
34470
+ };
33899
34471
  logistics_slip_note_claim: {
33900
34472
  Args: {
33901
34473
  _lease_seconds?: number;
@@ -33969,6 +34541,12 @@ export type Database = {
33969
34541
  };
33970
34542
  Returns: undefined;
33971
34543
  };
34544
+ logistics_slip_note_hold_read_only: {
34545
+ Args: {
34546
+ _id: string;
34547
+ };
34548
+ Returns: undefined;
34549
+ };
33972
34550
  logistics_slip_note_keep_waiting: {
33973
34551
  Args: {
33974
34552
  _class?: string;
@@ -33987,6 +34565,12 @@ export type Database = {
33987
34565
  };
33988
34566
  Returns: Json;
33989
34567
  };
34568
+ logistics_slip_note_skip_herprint: {
34569
+ Args: {
34570
+ _id: string;
34571
+ };
34572
+ Returns: undefined;
34573
+ };
33990
34574
  logistics_status_after_shipping: {
33991
34575
  Args: {
33992
34576
  p_status: string;
@@ -34101,6 +34685,12 @@ export type Database = {
34101
34685
  Args: never;
34102
34686
  Returns: Json;
34103
34687
  };
34688
+ logistics_sync_stock_alert_email_status: {
34689
+ Args: {
34690
+ p_limit?: number;
34691
+ };
34692
+ Returns: Json;
34693
+ };
34104
34694
  logistics_sync_task_carriers: {
34105
34695
  Args: {
34106
34696
  p_order_ref?: string;
@@ -34389,6 +34979,12 @@ export type Database = {
34389
34979
  };
34390
34980
  Returns: boolean;
34391
34981
  };
34982
+ logistics_verkoop_order_link: {
34983
+ Args: {
34984
+ p_order_id: string;
34985
+ };
34986
+ Returns: string;
34987
+ };
34392
34988
  logistics_working_hours_status: {
34393
34989
  Args: never;
34394
34990
  Returns: Json;
@@ -34405,6 +35001,14 @@ export type Database = {
34405
35001
  };
34406
35002
  Returns: number;
34407
35003
  };
35004
+ mailbox_claim_analysis: {
35005
+ Args: {
35006
+ p_force?: boolean;
35007
+ p_message_id: string;
35008
+ p_trigger?: string;
35009
+ };
35010
+ Returns: Json;
35011
+ };
34408
35012
  mark_offer_clicked: {
34409
35013
  Args: {
34410
35014
  p_code: string;
@@ -35735,6 +36339,23 @@ export type Database = {
35735
36339
  };
35736
36340
  Returns: string;
35737
36341
  };
36342
+ productontwerp_export: {
36343
+ Args: never;
36344
+ Returns: Json;
36345
+ };
36346
+ productontwerp_import: {
36347
+ Args: {
36348
+ p_dry_run: boolean;
36349
+ p_payload: Json;
36350
+ };
36351
+ Returns: Json;
36352
+ };
36353
+ productontwerp_product_ref: {
36354
+ Args: {
36355
+ p_id: string;
36356
+ };
36357
+ Returns: Json;
36358
+ };
35738
36359
  promote_floriday_customer: {
35739
36360
  Args: {
35740
36361
  _org_id: string;
@@ -35900,6 +36521,13 @@ export type Database = {
35900
36521
  };
35901
36522
  Returns: undefined;
35902
36523
  };
36524
+ record_offer_order_failure: {
36525
+ Args: {
36526
+ p_error: string;
36527
+ p_offer_order_id: string;
36528
+ };
36529
+ Returns: undefined;
36530
+ };
35903
36531
  refresh_external_customers_grouped: {
35904
36532
  Args: never;
35905
36533
  Returns: undefined;
@@ -36036,6 +36664,10 @@ export type Database = {
36036
36664
  };
36037
36665
  Returns: string;
36038
36666
  };
36667
+ retry_offer_orders: {
36668
+ Args: never;
36669
+ Returns: number;
36670
+ };
36039
36671
  retry_twinfield_push: {
36040
36672
  Args: {
36041
36673
  _customer_id: string;
@@ -36189,6 +36821,18 @@ export type Database = {
36189
36821
  };
36190
36822
  Returns: Json;
36191
36823
  };
36824
+ scan_kar_logs: {
36825
+ Args: {
36826
+ p_cart_ids: string[];
36827
+ };
36828
+ Returns: {
36829
+ created_at: string;
36830
+ kar_id: string;
36831
+ medewerker_naam: string;
36832
+ message: string;
36833
+ result: string;
36834
+ }[];
36835
+ };
36192
36836
  scan_kar_regels: {
36193
36837
  Args: {
36194
36838
  p_cart_id: string;
@@ -36206,6 +36850,7 @@ export type Database = {
36206
36850
  scan_log_code: {
36207
36851
  Args: {
36208
36852
  p_code: string;
36853
+ p_kar_id?: string;
36209
36854
  p_latency_ms?: number;
36210
36855
  p_medewerker?: string;
36211
36856
  p_message?: string;
@@ -36645,6 +37290,12 @@ export type Database = {
36645
37290
  };
36646
37291
  Returns: undefined;
36647
37292
  };
37293
+ set_primary_delivery_location: {
37294
+ Args: {
37295
+ p_location_id: string;
37296
+ };
37297
+ Returns: undefined;
37298
+ };
36648
37299
  set_product_stock: {
36649
37300
  Args: {
36650
37301
  p_incoming_stock?: number;
@@ -37493,6 +38144,24 @@ export type Database = {
37493
38144
  };
37494
38145
  Returns: number;
37495
38146
  };
38147
+ verkoop_create_order: {
38148
+ Args: {
38149
+ p_accept_late_signup?: boolean;
38150
+ p_accepted_by?: string;
38151
+ p_carrier_id: string;
38152
+ p_customer_id: string;
38153
+ p_customer_reference?: string;
38154
+ p_delivery_date: string;
38155
+ p_delivery_location_id: string;
38156
+ p_lines: Json;
38157
+ p_moment_key?: string;
38158
+ p_notes?: string;
38159
+ p_own_transport?: boolean;
38160
+ p_source: string;
38161
+ p_source_id: string;
38162
+ };
38163
+ Returns: Json;
38164
+ };
37496
38165
  vervang_printer: {
37497
38166
  Args: {
37498
38167
  _nieuw: string;