@flowselections/floriday-afhandeling-module 1.0.76 → 1.0.78

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 (31) hide show
  1. package/dist-lib/components/afhandeling/DeliveryLocationPicker.d.ts +6 -0
  2. package/dist-lib/components/afhandeling/DeliveryLocationPicker.d.ts.map +1 -0
  3. package/dist-lib/components/afhandeling/DeliveryLocationPicker.js +29 -0
  4. package/dist-lib/components/afhandeling/SignupAutoSendBlock.d.ts +5 -0
  5. package/dist-lib/components/afhandeling/SignupAutoSendBlock.d.ts.map +1 -0
  6. package/dist-lib/components/afhandeling/SignupAutoSendBlock.js +37 -0
  7. package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
  8. package/dist-lib/components/afhandeling/VervoerderForm.js +15 -4
  9. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  10. package/dist-lib/components/afhandeling/VervoerdersPage.js +24 -4
  11. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
  12. package/dist-lib/components/settings/AfhandelingSettingsCard.js +2 -1
  13. package/dist-lib/components/settings/VervoerdersSettingsCard.js +4 -4
  14. package/dist-lib/integrations/supabase/types.d.ts +215 -25
  15. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  16. package/dist-lib/lib/carrierReadiness.d.ts +26 -0
  17. package/dist-lib/lib/carrierReadiness.d.ts.map +1 -0
  18. package/dist-lib/lib/carrierReadiness.js +32 -0
  19. package/dist-lib/lib/carrierSignup.functions.d.ts +57 -0
  20. package/dist-lib/lib/carrierSignup.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/carrierSignup.functions.js +43 -0
  22. package/dist-lib/lib/carriers.functions.d.ts +43 -1
  23. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/carriers.functions.js +80 -21
  25. package/dist-lib/lib/floridayFulfilled.d.ts.map +1 -1
  26. package/dist-lib/lib/floridayFulfilled.js +2 -0
  27. package/dist-lib/lib/signupMailText.d.ts +2 -0
  28. package/dist-lib/lib/signupMailText.d.ts.map +1 -1
  29. package/dist-lib/lib/signupMailText.js +25 -0
  30. package/package.json +3 -2
  31. package/schema/90_afhandeling.sql +1591 -0
@@ -2654,6 +2654,7 @@ export type Database = {
2654
2654
  custom_fields: Json;
2655
2655
  customer_class: string | null;
2656
2656
  customer_number: string | null;
2657
+ default_carrier_id: string | null;
2657
2658
  discount_days: number | null;
2658
2659
  discount_percentage: number | null;
2659
2660
  discount_surcharge: string;
@@ -2746,6 +2747,7 @@ export type Database = {
2746
2747
  custom_fields?: Json;
2747
2748
  customer_class?: string | null;
2748
2749
  customer_number?: string | null;
2750
+ default_carrier_id?: string | null;
2749
2751
  discount_days?: number | null;
2750
2752
  discount_percentage?: number | null;
2751
2753
  discount_surcharge?: string;
@@ -2838,6 +2840,7 @@ export type Database = {
2838
2840
  custom_fields?: Json;
2839
2841
  customer_class?: string | null;
2840
2842
  customer_number?: string | null;
2843
+ default_carrier_id?: string | null;
2841
2844
  discount_days?: number | null;
2842
2845
  discount_percentage?: number | null;
2843
2846
  discount_surcharge?: string;
@@ -2891,7 +2894,15 @@ export type Database = {
2891
2894
  vat_number?: string | null;
2892
2895
  website?: string | null;
2893
2896
  };
2894
- Relationships: [];
2897
+ Relationships: [
2898
+ {
2899
+ foreignKeyName: "customers_default_carrier_id_fkey";
2900
+ columns: ["default_carrier_id"];
2901
+ isOneToOne: false;
2902
+ referencedRelation: "carriers";
2903
+ referencedColumns: ["id"];
2904
+ }
2905
+ ];
2895
2906
  };
2896
2907
  dashboard_ai_conversations: {
2897
2908
  Row: {
@@ -7279,16 +7290,22 @@ export type Database = {
7279
7290
  connection_id: string;
7280
7291
  created_at: string;
7281
7292
  data: Json;
7293
+ delivery_date_time: string | null;
7282
7294
  fetched_at: string;
7283
7295
  floriday_id: string;
7296
+ has_file: boolean | null;
7284
7297
  id: string;
7285
7298
  is_deleted: boolean;
7299
+ is_handled: boolean | null;
7300
+ last_requested_on: string | null;
7301
+ number_of_copies: number | null;
7286
7302
  quantity: number | null;
7287
7303
  sales_order_id: string | null;
7288
7304
  sequence_number: number;
7289
7305
  should_be_printed: boolean | null;
7290
7306
  status: string | null;
7291
7307
  sticker_height_mm: number | null;
7308
+ sticker_provided_by: string | null;
7292
7309
  sticker_type: string | null;
7293
7310
  sticker_width_mm: number | null;
7294
7311
  trade_item_id: string | null;
@@ -7298,16 +7315,22 @@ export type Database = {
7298
7315
  connection_id: string;
7299
7316
  created_at?: string;
7300
7317
  data?: Json;
7318
+ delivery_date_time?: string | null;
7301
7319
  fetched_at?: string;
7302
7320
  floriday_id: string;
7321
+ has_file?: boolean | null;
7303
7322
  id?: string;
7304
7323
  is_deleted?: boolean;
7324
+ is_handled?: boolean | null;
7325
+ last_requested_on?: string | null;
7326
+ number_of_copies?: number | null;
7305
7327
  quantity?: number | null;
7306
7328
  sales_order_id?: string | null;
7307
7329
  sequence_number?: number;
7308
7330
  should_be_printed?: boolean | null;
7309
7331
  status?: string | null;
7310
7332
  sticker_height_mm?: number | null;
7333
+ sticker_provided_by?: string | null;
7311
7334
  sticker_type?: string | null;
7312
7335
  sticker_width_mm?: number | null;
7313
7336
  trade_item_id?: string | null;
@@ -7317,16 +7340,22 @@ export type Database = {
7317
7340
  connection_id?: string;
7318
7341
  created_at?: string;
7319
7342
  data?: Json;
7343
+ delivery_date_time?: string | null;
7320
7344
  fetched_at?: string;
7321
7345
  floriday_id?: string;
7346
+ has_file?: boolean | null;
7322
7347
  id?: string;
7323
7348
  is_deleted?: boolean;
7349
+ is_handled?: boolean | null;
7350
+ last_requested_on?: string | null;
7351
+ number_of_copies?: number | null;
7324
7352
  quantity?: number | null;
7325
7353
  sales_order_id?: string | null;
7326
7354
  sequence_number?: number;
7327
7355
  should_be_printed?: boolean | null;
7328
7356
  status?: string | null;
7329
7357
  sticker_height_mm?: number | null;
7358
+ sticker_provided_by?: string | null;
7330
7359
  sticker_type?: string | null;
7331
7360
  sticker_width_mm?: number | null;
7332
7361
  trade_item_id?: string | null;
@@ -8212,7 +8241,9 @@ export type Database = {
8212
8241
  floriday_packing_mismatches: {
8213
8242
  Row: {
8214
8243
  api_value: Json | null;
8244
+ cache_is_deleted: boolean;
8215
8245
  cache_value: Json | null;
8246
+ check_outcome: string;
8216
8247
  connection_id: string;
8217
8248
  details: string | null;
8218
8249
  detected_at: string;
@@ -8224,7 +8255,9 @@ export type Database = {
8224
8255
  };
8225
8256
  Insert: {
8226
8257
  api_value?: Json | null;
8258
+ cache_is_deleted?: boolean;
8227
8259
  cache_value?: Json | null;
8260
+ check_outcome?: string;
8228
8261
  connection_id: string;
8229
8262
  details?: string | null;
8230
8263
  detected_at?: string;
@@ -8236,7 +8269,9 @@ export type Database = {
8236
8269
  };
8237
8270
  Update: {
8238
8271
  api_value?: Json | null;
8272
+ cache_is_deleted?: boolean;
8239
8273
  cache_value?: Json | null;
8274
+ check_outcome?: string;
8240
8275
  connection_id?: string;
8241
8276
  details?: string | null;
8242
8277
  detected_at?: string;
@@ -17599,60 +17634,72 @@ export type Database = {
17599
17634
  created_at: string;
17600
17635
  id: string;
17601
17636
  layers_per_cart: number | null;
17637
+ load_carrier_type: string | null;
17602
17638
  needs_sticker: boolean;
17603
17639
  order_id: string;
17604
17640
  packing_locked_at: string | null;
17605
17641
  packing_locked_by: string | null;
17642
+ packing_source: string | null;
17606
17643
  plants_per_crate: number | null;
17607
17644
  product_id: string | null;
17608
17645
  product_name: string;
17609
17646
  quantity: number;
17647
+ quantity_crates: number | null;
17610
17648
  quarantine_reason: string | null;
17611
17649
  quarantined_at: string | null;
17612
17650
  quarantined_into_order_id: string | null;
17613
17651
  source_line_key: string | null;
17614
17652
  unit: string;
17615
17653
  unit_price: number | null;
17654
+ vbn_package_code: string | null;
17616
17655
  };
17617
17656
  Insert: {
17618
17657
  crates_per_layer?: number | null;
17619
17658
  created_at?: string;
17620
17659
  id?: string;
17621
17660
  layers_per_cart?: number | null;
17661
+ load_carrier_type?: string | null;
17622
17662
  needs_sticker?: boolean;
17623
17663
  order_id: string;
17624
17664
  packing_locked_at?: string | null;
17625
17665
  packing_locked_by?: string | null;
17666
+ packing_source?: string | null;
17626
17667
  plants_per_crate?: number | null;
17627
17668
  product_id?: string | null;
17628
17669
  product_name: string;
17629
17670
  quantity?: number;
17671
+ quantity_crates?: number | null;
17630
17672
  quarantine_reason?: string | null;
17631
17673
  quarantined_at?: string | null;
17632
17674
  quarantined_into_order_id?: string | null;
17633
17675
  source_line_key?: string | null;
17634
17676
  unit?: string;
17635
17677
  unit_price?: number | null;
17678
+ vbn_package_code?: string | null;
17636
17679
  };
17637
17680
  Update: {
17638
17681
  crates_per_layer?: number | null;
17639
17682
  created_at?: string;
17640
17683
  id?: string;
17641
17684
  layers_per_cart?: number | null;
17685
+ load_carrier_type?: string | null;
17642
17686
  needs_sticker?: boolean;
17643
17687
  order_id?: string;
17644
17688
  packing_locked_at?: string | null;
17645
17689
  packing_locked_by?: string | null;
17690
+ packing_source?: string | null;
17646
17691
  plants_per_crate?: number | null;
17647
17692
  product_id?: string | null;
17648
17693
  product_name?: string;
17649
17694
  quantity?: number;
17695
+ quantity_crates?: number | null;
17650
17696
  quarantine_reason?: string | null;
17651
17697
  quarantined_at?: string | null;
17652
17698
  quarantined_into_order_id?: string | null;
17653
17699
  source_line_key?: string | null;
17654
17700
  unit?: string;
17655
17701
  unit_price?: number | null;
17702
+ vbn_package_code?: string | null;
17656
17703
  };
17657
17704
  Relationships: [
17658
17705
  {
@@ -24776,16 +24823,56 @@ export type Database = {
24776
24823
  }
24777
24824
  ];
24778
24825
  };
24826
+ twinfield_connection_label_log: {
24827
+ Row: {
24828
+ changed_at: string;
24829
+ changed_by: string | null;
24830
+ changed_by_role: string | null;
24831
+ connection_id: string;
24832
+ field: string;
24833
+ id: string;
24834
+ new_value: string | null;
24835
+ note: string | null;
24836
+ office_code: string | null;
24837
+ old_value: string | null;
24838
+ };
24839
+ Insert: {
24840
+ changed_at?: string;
24841
+ changed_by?: string | null;
24842
+ changed_by_role?: string | null;
24843
+ connection_id: string;
24844
+ field: string;
24845
+ id?: string;
24846
+ new_value?: string | null;
24847
+ note?: string | null;
24848
+ office_code?: string | null;
24849
+ old_value?: string | null;
24850
+ };
24851
+ Update: {
24852
+ changed_at?: string;
24853
+ changed_by?: string | null;
24854
+ changed_by_role?: string | null;
24855
+ connection_id?: string;
24856
+ field?: string;
24857
+ id?: string;
24858
+ new_value?: string | null;
24859
+ note?: string | null;
24860
+ office_code?: string | null;
24861
+ old_value?: string | null;
24862
+ };
24863
+ Relationships: [];
24864
+ };
24779
24865
  twinfield_connections: {
24780
24866
  Row: {
24781
24867
  account_key: string | null;
24868
+ central_environment: string | null;
24782
24869
  cluster_uri: string | null;
24783
24870
  company_code: string | null;
24784
24871
  company_name: string | null;
24785
24872
  connected_at: string | null;
24786
24873
  created_at: string;
24787
24874
  disconnected_at: string | null;
24788
- environment: string;
24875
+ environment: string | null;
24789
24876
  granted_scopes: string[] | null;
24790
24877
  id: string;
24791
24878
  initial_sync_completed_at: string | null;
@@ -24794,8 +24881,12 @@ export type Database = {
24794
24881
  initial_sync_started_at: string | null;
24795
24882
  is_active: boolean;
24796
24883
  label: string | null;
24884
+ label_set_at: string | null;
24885
+ label_set_by: string | null;
24886
+ label_source: string | null;
24797
24887
  missing_scopes: string[] | null;
24798
24888
  office_code: string | null;
24889
+ organisation_code: string | null;
24799
24890
  redirect_uri: string | null;
24800
24891
  scope_checked_at: string | null;
24801
24892
  scope_state: string | null;
@@ -24809,13 +24900,14 @@ export type Database = {
24809
24900
  };
24810
24901
  Insert: {
24811
24902
  account_key?: string | null;
24903
+ central_environment?: string | null;
24812
24904
  cluster_uri?: string | null;
24813
24905
  company_code?: string | null;
24814
24906
  company_name?: string | null;
24815
24907
  connected_at?: string | null;
24816
24908
  created_at?: string;
24817
24909
  disconnected_at?: string | null;
24818
- environment: string;
24910
+ environment?: string | null;
24819
24911
  granted_scopes?: string[] | null;
24820
24912
  id?: string;
24821
24913
  initial_sync_completed_at?: string | null;
@@ -24824,8 +24916,12 @@ export type Database = {
24824
24916
  initial_sync_started_at?: string | null;
24825
24917
  is_active?: boolean;
24826
24918
  label?: string | null;
24919
+ label_set_at?: string | null;
24920
+ label_set_by?: string | null;
24921
+ label_source?: string | null;
24827
24922
  missing_scopes?: string[] | null;
24828
24923
  office_code?: string | null;
24924
+ organisation_code?: string | null;
24829
24925
  redirect_uri?: string | null;
24830
24926
  scope_checked_at?: string | null;
24831
24927
  scope_state?: string | null;
@@ -24839,13 +24935,14 @@ export type Database = {
24839
24935
  };
24840
24936
  Update: {
24841
24937
  account_key?: string | null;
24938
+ central_environment?: string | null;
24842
24939
  cluster_uri?: string | null;
24843
24940
  company_code?: string | null;
24844
24941
  company_name?: string | null;
24845
24942
  connected_at?: string | null;
24846
24943
  created_at?: string;
24847
24944
  disconnected_at?: string | null;
24848
- environment?: string;
24945
+ environment?: string | null;
24849
24946
  granted_scopes?: string[] | null;
24850
24947
  id?: string;
24851
24948
  initial_sync_completed_at?: string | null;
@@ -24854,8 +24951,12 @@ export type Database = {
24854
24951
  initial_sync_started_at?: string | null;
24855
24952
  is_active?: boolean;
24856
24953
  label?: string | null;
24954
+ label_set_at?: string | null;
24955
+ label_set_by?: string | null;
24956
+ label_source?: string | null;
24857
24957
  missing_scopes?: string[] | null;
24858
24958
  office_code?: string | null;
24959
+ organisation_code?: string | null;
24859
24960
  redirect_uri?: string | null;
24860
24961
  scope_checked_at?: string | null;
24861
24962
  scope_state?: string | null;
@@ -25795,7 +25896,7 @@ export type Database = {
25795
25896
  };
25796
25897
  twinfield_settings: {
25797
25898
  Row: {
25798
- active_environment: string;
25899
+ active_environment: string | null;
25799
25900
  cron_registered_at: string | null;
25800
25901
  cron_registration_error: string | null;
25801
25902
  cron_schedules: Json;
@@ -25805,7 +25906,7 @@ export type Database = {
25805
25906
  updated_at: string;
25806
25907
  };
25807
25908
  Insert: {
25808
- active_environment?: string;
25909
+ active_environment?: string | null;
25809
25910
  cron_registered_at?: string | null;
25810
25911
  cron_registration_error?: string | null;
25811
25912
  cron_schedules?: Json;
@@ -25815,7 +25916,7 @@ export type Database = {
25815
25916
  updated_at?: string;
25816
25917
  };
25817
25918
  Update: {
25818
- active_environment?: string;
25919
+ active_environment?: string | null;
25819
25920
  cron_registered_at?: string | null;
25820
25921
  cron_registration_error?: string | null;
25821
25922
  cron_schedules?: Json;
@@ -31016,6 +31117,14 @@ export type Database = {
31016
31117
  Args: never;
31017
31118
  Returns: Json;
31018
31119
  };
31120
+ floriday_background_jobs_status: {
31121
+ Args: never;
31122
+ Returns: {
31123
+ active: boolean;
31124
+ jobname: string;
31125
+ schedule: string;
31126
+ }[];
31127
+ };
31019
31128
  floriday_capture_stock_snapshot: {
31020
31129
  Args: never;
31021
31130
  Returns: number;
@@ -31132,6 +31241,10 @@ export type Database = {
31132
31241
  };
31133
31242
  Returns: Json;
31134
31243
  };
31244
+ floriday_legacy_packing_sync_present: {
31245
+ Args: never;
31246
+ Returns: Json;
31247
+ };
31135
31248
  floriday_make_erp_leading: {
31136
31249
  Args: {
31137
31250
  p_connection_id: string;
@@ -38174,12 +38287,6 @@ export type Database = {
38174
38287
  Args: never;
38175
38288
  Returns: undefined;
38176
38289
  };
38177
- sync_cached_packing_from_product: {
38178
- Args: {
38179
- p_product_id: string;
38180
- };
38181
- Returns: undefined;
38182
- };
38183
38290
  sync_floriday_prices_into_price_groups: {
38184
38291
  Args: never;
38185
38292
  Returns: number;
@@ -38190,12 +38297,6 @@ export type Database = {
38190
38297
  };
38191
38298
  Returns: undefined;
38192
38299
  };
38193
- sync_order_cart_item_packing_from_product: {
38194
- Args: {
38195
- p_product_id: string;
38196
- };
38197
- Returns: undefined;
38198
- };
38199
38300
  sync_order_item_fusten: {
38200
38301
  Args: {
38201
38302
  _order_item_id: string;
@@ -38208,12 +38309,6 @@ export type Database = {
38208
38309
  };
38209
38310
  Returns: undefined;
38210
38311
  };
38211
- sync_product_packing_from_floriday_cache: {
38212
- Args: {
38213
- p_floriday_id: string;
38214
- };
38215
- Returns: undefined;
38216
- };
38217
38312
  sync_sick_time_off: {
38218
38313
  Args: {
38219
38314
  _period_id: string;
@@ -38244,6 +38339,15 @@ export type Database = {
38244
38339
  };
38245
38340
  Returns: boolean;
38246
38341
  };
38342
+ twinfield_auth_install_check: {
38343
+ Args: never;
38344
+ Returns: {
38345
+ object_kind: string;
38346
+ object_name: string;
38347
+ present: boolean;
38348
+ schema_version: string;
38349
+ }[];
38350
+ };
38247
38351
  twinfield_cancel_queue_item: {
38248
38352
  Args: {
38249
38353
  p_id: string;
@@ -38253,11 +38357,32 @@ export type Database = {
38253
38357
  twinfield_connection_offices: {
38254
38358
  Args: never;
38255
38359
  Returns: {
38360
+ company_name: string;
38256
38361
  connection_id: string;
38362
+ environment: string;
38363
+ in_shell_omgeving: boolean;
38257
38364
  is_active: boolean;
38365
+ label_source: string;
38258
38366
  office_code: string;
38259
38367
  }[];
38260
38368
  };
38369
+ twinfield_connection_usage: {
38370
+ Args: never;
38371
+ Returns: {
38372
+ archived: boolean;
38373
+ company_name: string;
38374
+ connected_at: string;
38375
+ connection_id: string;
38376
+ environment: string;
38377
+ gebruikt_door_facturatie: boolean;
38378
+ in_shell_omgeving: boolean;
38379
+ is_active: boolean;
38380
+ label_source: string;
38381
+ leest: boolean;
38382
+ office_code: string;
38383
+ user_id: string;
38384
+ }[];
38385
+ };
38261
38386
  twinfield_cron_lock_acquire: {
38262
38387
  Args: {
38263
38388
  _job_name: string;
@@ -38303,10 +38428,24 @@ export type Database = {
38303
38428
  Args: never;
38304
38429
  Returns: boolean;
38305
38430
  };
38431
+ twinfield_mark_label_pending: {
38432
+ Args: {
38433
+ p_connection_id: string;
38434
+ };
38435
+ Returns: boolean;
38436
+ };
38306
38437
  twinfield_prune_push_queue: {
38307
38438
  Args: never;
38308
38439
  Returns: number;
38309
38440
  };
38441
+ twinfield_record_central_facts: {
38442
+ Args: {
38443
+ p_central_environment: string;
38444
+ p_connection_id: string;
38445
+ p_organisation_code: string;
38446
+ };
38447
+ Returns: Json;
38448
+ };
38310
38449
  twinfield_register_cron: {
38311
38450
  Args: {
38312
38451
  apikey?: string;
@@ -38314,6 +38453,14 @@ export type Database = {
38314
38453
  };
38315
38454
  Returns: Json;
38316
38455
  };
38456
+ twinfield_set_connection_label: {
38457
+ Args: {
38458
+ p_also_shell?: boolean;
38459
+ p_connection_id: string;
38460
+ p_environment: string;
38461
+ };
38462
+ Returns: Json;
38463
+ };
38317
38464
  twinfield_set_write_enabled: {
38318
38465
  Args: {
38319
38466
  p_connection_id: string;
@@ -38895,6 +39042,49 @@ export type Database = {
38895
39042
  };
38896
39043
  Returns: Json;
38897
39044
  };
39045
+ verkoop_insert_manual_order: {
39046
+ Args: {
39047
+ p_idempotency_key: string;
39048
+ p_items: Json;
39049
+ p_order: Json;
39050
+ };
39051
+ Returns: Json;
39052
+ };
39053
+ verkoop_packing_drift_apply: {
39054
+ Args: {
39055
+ p_order_ids: string[];
39056
+ };
39057
+ Returns: {
39058
+ lines_updated: number;
39059
+ order_id: string;
39060
+ order_number: string;
39061
+ replan_event: string;
39062
+ }[];
39063
+ };
39064
+ verkoop_packing_drift_report: {
39065
+ Args: never;
39066
+ Returns: {
39067
+ afgesloten: boolean;
39068
+ cache_match: string;
39069
+ cur_crates_per_layer: number;
39070
+ cur_layers_per_cart: number;
39071
+ cur_load_carrier_type: string;
39072
+ cur_packing_source: string;
39073
+ cur_plants_per_crate: number;
39074
+ cur_vbn_package_code: string;
39075
+ fd_crates_per_layer: number;
39076
+ fd_layers_per_cart: number;
39077
+ fd_load_carrier_type: string;
39078
+ fd_plants_per_crate: number;
39079
+ fd_vbn_package_code: string;
39080
+ order_id: string;
39081
+ order_item_id: string;
39082
+ order_number: string;
39083
+ order_status: string;
39084
+ sales_order_id: string;
39085
+ vastgezet: boolean;
39086
+ }[];
39087
+ };
38898
39088
  vervang_printer: {
38899
39089
  Args: {
38900
39090
  _nieuw: string;