@flowselections/logistiek-engine 1.0.89 → 1.0.94

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/FlowOrders.js +1 -1
  2. package/dist-lib/hooks/useShippingNoteStatus.d.ts +2 -0
  3. package/dist-lib/hooks/useShippingNoteStatus.d.ts.map +1 -1
  4. package/dist-lib/hooks/useShippingNoteStatus.js +13 -1
  5. package/dist-lib/hooks/useShippingNoteStatus.test.d.ts +2 -0
  6. package/dist-lib/hooks/useShippingNoteStatus.test.d.ts.map +1 -0
  7. package/dist-lib/hooks/useShippingNoteStatus.test.js +20 -0
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts +356 -0
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts +356 -0
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/moduleClient.d.ts +356 -0
  13. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.d.ts +364 -0
  15. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  16. package/dist-lib/lib/cartCoverage.functions.d.ts +356 -0
  17. package/dist-lib/lib/cartCoverage.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floridayDocuments.functions.d.ts +1068 -0
  19. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floridayPush.functions.d.ts +356 -0
  21. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1780 -0
  23. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +712 -0
  25. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +356 -0
  27. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/plannerDiff.functions.d.ts +356 -0
  29. package/dist-lib/lib/plannerDiff.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/ruleEngineSchema.js +2 -2
  31. package/package.json +158 -158
@@ -752,6 +752,27 @@ export type Database = {
752
752
  };
753
753
  Relationships: [];
754
754
  };
755
+ artikelen_instellingen: {
756
+ Row: {
757
+ created_at: string;
758
+ id: number;
759
+ marge_procent: number;
760
+ updated_at: string;
761
+ };
762
+ Insert: {
763
+ created_at?: string;
764
+ id?: number;
765
+ marge_procent?: number;
766
+ updated_at?: string;
767
+ };
768
+ Update: {
769
+ created_at?: string;
770
+ id?: number;
771
+ marge_procent?: number;
772
+ updated_at?: string;
773
+ };
774
+ Relationships: [];
775
+ };
755
776
  artikelen_veldconfig: {
756
777
  Row: {
757
778
  bron_pad: string;
@@ -10677,6 +10698,30 @@ export type Database = {
10677
10698
  };
10678
10699
  Relationships: [];
10679
10700
  };
10701
+ logistics_cart_barcode_archief: {
10702
+ Row: {
10703
+ barcode: string;
10704
+ cart_id: string;
10705
+ created_at: string | null;
10706
+ gearchiveerd_op: string;
10707
+ order_id: string | null;
10708
+ };
10709
+ Insert: {
10710
+ barcode: string;
10711
+ cart_id: string;
10712
+ created_at?: string | null;
10713
+ gearchiveerd_op?: string;
10714
+ order_id?: string | null;
10715
+ };
10716
+ Update: {
10717
+ barcode?: string;
10718
+ cart_id?: string;
10719
+ created_at?: string | null;
10720
+ gearchiveerd_op?: string;
10721
+ order_id?: string | null;
10722
+ };
10723
+ Relationships: [];
10724
+ };
10680
10725
  logistics_control_scan: {
10681
10726
  Row: {
10682
10727
  approved_at: string | null;
@@ -15049,6 +15094,7 @@ export type Database = {
15049
15094
  next_attempt_at: string;
15050
15095
  order_id: string;
15051
15096
  processed_at: string | null;
15097
+ send_error: string | null;
15052
15098
  status: string;
15053
15099
  updated_at: string;
15054
15100
  };
@@ -15062,6 +15108,7 @@ export type Database = {
15062
15108
  next_attempt_at?: string;
15063
15109
  order_id: string;
15064
15110
  processed_at?: string | null;
15111
+ send_error?: string | null;
15065
15112
  status?: string;
15066
15113
  updated_at?: string;
15067
15114
  };
@@ -15075,6 +15122,7 @@ export type Database = {
15075
15122
  next_attempt_at?: string;
15076
15123
  order_id?: string;
15077
15124
  processed_at?: string | null;
15125
+ send_error?: string | null;
15078
15126
  status?: string;
15079
15127
  updated_at?: string;
15080
15128
  };
@@ -18218,6 +18266,9 @@ export type Database = {
18218
18266
  lead_time_days: number | null;
18219
18267
  min_order_quantity: number | null;
18220
18268
  notes: string | null;
18269
+ previous_price_cents: number | null;
18270
+ price_source: string;
18271
+ price_updated_at: string | null;
18221
18272
  product_id: string;
18222
18273
  purchase_price_cents: number | null;
18223
18274
  supplier_article_number: string | null;
@@ -18231,6 +18282,9 @@ export type Database = {
18231
18282
  lead_time_days?: number | null;
18232
18283
  min_order_quantity?: number | null;
18233
18284
  notes?: string | null;
18285
+ previous_price_cents?: number | null;
18286
+ price_source?: string;
18287
+ price_updated_at?: string | null;
18234
18288
  product_id: string;
18235
18289
  purchase_price_cents?: number | null;
18236
18290
  supplier_article_number?: string | null;
@@ -18244,6 +18298,9 @@ export type Database = {
18244
18298
  lead_time_days?: number | null;
18245
18299
  min_order_quantity?: number | null;
18246
18300
  notes?: string | null;
18301
+ previous_price_cents?: number | null;
18302
+ price_source?: string;
18303
+ price_updated_at?: string | null;
18247
18304
  product_id?: string;
18248
18305
  purchase_price_cents?: number | null;
18249
18306
  supplier_article_number?: string | null;
@@ -18801,9 +18858,13 @@ export type Database = {
18801
18858
  purchase_order_items: {
18802
18859
  Row: {
18803
18860
  article_number: string | null;
18861
+ cancel_reason: string | null;
18862
+ cancelled_at: string | null;
18804
18863
  created_at: string;
18805
18864
  delivery_date: string | null;
18806
18865
  id: string;
18866
+ incoming_booked: number;
18867
+ line_status: string;
18807
18868
  name: string;
18808
18869
  note: string | null;
18809
18870
  pot_size: string | null;
@@ -18811,6 +18872,8 @@ export type Database = {
18811
18872
  product_type: string;
18812
18873
  purchase_order_id: string;
18813
18874
  quantity: number;
18875
+ received_at: string | null;
18876
+ received_booked: number;
18814
18877
  supplier_id: string | null;
18815
18878
  supplier_product_id: string | null;
18816
18879
  unit_price_cents: number;
@@ -18818,9 +18881,13 @@ export type Database = {
18818
18881
  };
18819
18882
  Insert: {
18820
18883
  article_number?: string | null;
18884
+ cancel_reason?: string | null;
18885
+ cancelled_at?: string | null;
18821
18886
  created_at?: string;
18822
18887
  delivery_date?: string | null;
18823
18888
  id?: string;
18889
+ incoming_booked?: number;
18890
+ line_status?: string;
18824
18891
  name?: string;
18825
18892
  note?: string | null;
18826
18893
  pot_size?: string | null;
@@ -18828,6 +18895,8 @@ export type Database = {
18828
18895
  product_type?: string;
18829
18896
  purchase_order_id: string;
18830
18897
  quantity?: number;
18898
+ received_at?: string | null;
18899
+ received_booked?: number;
18831
18900
  supplier_id?: string | null;
18832
18901
  supplier_product_id?: string | null;
18833
18902
  unit_price_cents?: number;
@@ -18835,9 +18904,13 @@ export type Database = {
18835
18904
  };
18836
18905
  Update: {
18837
18906
  article_number?: string | null;
18907
+ cancel_reason?: string | null;
18908
+ cancelled_at?: string | null;
18838
18909
  created_at?: string;
18839
18910
  delivery_date?: string | null;
18840
18911
  id?: string;
18912
+ incoming_booked?: number;
18913
+ line_status?: string;
18841
18914
  name?: string;
18842
18915
  note?: string | null;
18843
18916
  pot_size?: string | null;
@@ -18845,6 +18918,8 @@ export type Database = {
18845
18918
  product_type?: string;
18846
18919
  purchase_order_id?: string;
18847
18920
  quantity?: number;
18921
+ received_at?: string | null;
18922
+ received_booked?: number;
18848
18923
  supplier_id?: string | null;
18849
18924
  supplier_product_id?: string | null;
18850
18925
  unit_price_cents?: number;
@@ -18957,6 +19032,161 @@ export type Database = {
18957
19032
  }
18958
19033
  ];
18959
19034
  };
19035
+ purchase_request_events: {
19036
+ Row: {
19037
+ created_at: string;
19038
+ details: Json | null;
19039
+ event_type: string;
19040
+ id: string;
19041
+ request_id: string;
19042
+ };
19043
+ Insert: {
19044
+ created_at?: string;
19045
+ details?: Json | null;
19046
+ event_type: string;
19047
+ id?: string;
19048
+ request_id: string;
19049
+ };
19050
+ Update: {
19051
+ created_at?: string;
19052
+ details?: Json | null;
19053
+ event_type?: string;
19054
+ id?: string;
19055
+ request_id?: string;
19056
+ };
19057
+ Relationships: [
19058
+ {
19059
+ foreignKeyName: "purchase_request_events_request_id_fkey";
19060
+ columns: ["request_id"];
19061
+ isOneToOne: false;
19062
+ referencedRelation: "purchase_requests";
19063
+ referencedColumns: ["id"];
19064
+ }
19065
+ ];
19066
+ };
19067
+ purchase_request_responses: {
19068
+ Row: {
19069
+ confirmed_date: string | null;
19070
+ confirmed_price_cents: number | null;
19071
+ confirmed_quantity: number;
19072
+ created_at: string;
19073
+ id: string;
19074
+ not_available: boolean;
19075
+ note: string | null;
19076
+ purchase_order_item_id: string;
19077
+ request_id: string;
19078
+ updated_at: string;
19079
+ };
19080
+ Insert: {
19081
+ confirmed_date?: string | null;
19082
+ confirmed_price_cents?: number | null;
19083
+ confirmed_quantity?: number;
19084
+ created_at?: string;
19085
+ id?: string;
19086
+ not_available?: boolean;
19087
+ note?: string | null;
19088
+ purchase_order_item_id: string;
19089
+ request_id: string;
19090
+ updated_at?: string;
19091
+ };
19092
+ Update: {
19093
+ confirmed_date?: string | null;
19094
+ confirmed_price_cents?: number | null;
19095
+ confirmed_quantity?: number;
19096
+ created_at?: string;
19097
+ id?: string;
19098
+ not_available?: boolean;
19099
+ note?: string | null;
19100
+ purchase_order_item_id?: string;
19101
+ request_id?: string;
19102
+ updated_at?: string;
19103
+ };
19104
+ Relationships: [
19105
+ {
19106
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
19107
+ columns: ["purchase_order_item_id"];
19108
+ isOneToOne: false;
19109
+ referencedRelation: "purchase_order_items";
19110
+ referencedColumns: ["id"];
19111
+ },
19112
+ {
19113
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
19114
+ columns: ["request_id"];
19115
+ isOneToOne: false;
19116
+ referencedRelation: "purchase_requests";
19117
+ referencedColumns: ["id"];
19118
+ }
19119
+ ];
19120
+ };
19121
+ purchase_requests: {
19122
+ Row: {
19123
+ created_at: string;
19124
+ expires_at: string;
19125
+ first_viewed_at: string | null;
19126
+ id: string;
19127
+ processed_at: string | null;
19128
+ purchase_order_id: string;
19129
+ responded_at: string | null;
19130
+ sent_at: string;
19131
+ status: string;
19132
+ supplier_id: string | null;
19133
+ supplier_name: string;
19134
+ supplier_note: string | null;
19135
+ to_address: string | null;
19136
+ token_hash: string;
19137
+ updated_at: string;
19138
+ };
19139
+ Insert: {
19140
+ created_at?: string;
19141
+ expires_at?: string;
19142
+ first_viewed_at?: string | null;
19143
+ id?: string;
19144
+ processed_at?: string | null;
19145
+ purchase_order_id: string;
19146
+ responded_at?: string | null;
19147
+ sent_at?: string;
19148
+ status?: string;
19149
+ supplier_id?: string | null;
19150
+ supplier_name?: string;
19151
+ supplier_note?: string | null;
19152
+ to_address?: string | null;
19153
+ token_hash: string;
19154
+ updated_at?: string;
19155
+ };
19156
+ Update: {
19157
+ created_at?: string;
19158
+ expires_at?: string;
19159
+ first_viewed_at?: string | null;
19160
+ id?: string;
19161
+ processed_at?: string | null;
19162
+ purchase_order_id?: string;
19163
+ responded_at?: string | null;
19164
+ sent_at?: string;
19165
+ status?: string;
19166
+ supplier_id?: string | null;
19167
+ supplier_name?: string;
19168
+ supplier_note?: string | null;
19169
+ to_address?: string | null;
19170
+ token_hash?: string;
19171
+ updated_at?: string;
19172
+ };
19173
+ Relationships: [
19174
+ {
19175
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
19176
+ columns: ["purchase_order_id"];
19177
+ isOneToOne: false;
19178
+ referencedRelation: "purchase_orders";
19179
+ referencedColumns: ["id"];
19180
+ },
19181
+ {
19182
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
19183
+ columns: ["supplier_id"];
19184
+ isOneToOne: false;
19185
+ referencedRelation: "suppliers";
19186
+ referencedColumns: ["id"];
19187
+ }
19188
+ ];
19189
+ };
18960
19190
  reception_notifications: {
18961
19191
  Row: {
18962
19192
  booking_id: string | null;
@@ -21170,6 +21400,7 @@ export type Database = {
21170
21400
  auto_invoice_enabled: boolean;
21171
21401
  auto_invoice_start_date: string | null;
21172
21402
  auto_invoice_trigger_statuses: string[];
21403
+ auto_send_mode: string | null;
21173
21404
  created_at: string;
21174
21405
  debtor_gl_account: string;
21175
21406
  default_article_code: string | null;
@@ -21198,6 +21429,7 @@ export type Database = {
21198
21429
  auto_invoice_enabled?: boolean;
21199
21430
  auto_invoice_start_date?: string | null;
21200
21431
  auto_invoice_trigger_statuses?: string[];
21432
+ auto_send_mode?: string | null;
21201
21433
  created_at?: string;
21202
21434
  debtor_gl_account?: string;
21203
21435
  default_article_code?: string | null;
@@ -21226,6 +21458,7 @@ export type Database = {
21226
21458
  auto_invoice_enabled?: boolean;
21227
21459
  auto_invoice_start_date?: string | null;
21228
21460
  auto_invoice_trigger_statuses?: string[];
21461
+ auto_send_mode?: string | null;
21229
21462
  created_at?: string;
21230
21463
  debtor_gl_account?: string;
21231
21464
  default_article_code?: string | null;
@@ -26553,13 +26786,66 @@ export type Database = {
26553
26786
  };
26554
26787
  Returns: Json;
26555
26788
  };
26789
+ inkoop_cancel_line: {
26790
+ Args: {
26791
+ _item_id: string;
26792
+ _reason: string;
26793
+ };
26794
+ Returns: string;
26795
+ };
26796
+ inkoop_get_supplier_request: {
26797
+ Args: {
26798
+ _token: string;
26799
+ };
26800
+ Returns: Json;
26801
+ };
26802
+ inkoop_hash_token: {
26803
+ Args: {
26804
+ _token: string;
26805
+ };
26806
+ Returns: string;
26807
+ };
26808
+ inkoop_html_escape: {
26809
+ Args: {
26810
+ _t: string;
26811
+ };
26812
+ Returns: string;
26813
+ };
26814
+ inkoop_list_artikelen: {
26815
+ Args: never;
26816
+ Returns: {
26817
+ article_number: string;
26818
+ barcode: string;
26819
+ id: string;
26820
+ incoming_quantity: number;
26821
+ is_layer: boolean;
26822
+ location: string;
26823
+ min_quantity: number;
26824
+ preferred_supplier_name: string;
26825
+ product: string;
26826
+ product_type: string;
26827
+ purchase_price: number;
26828
+ quantity: number;
26829
+ sale_price: number;
26830
+ supplier_count: number;
26831
+ unit: string;
26832
+ }[];
26833
+ };
26556
26834
  inkoop_next_order_number: {
26557
26835
  Args: never;
26558
26836
  Returns: string;
26559
26837
  };
26838
+ inkoop_process_request: {
26839
+ Args: {
26840
+ _request_id: string;
26841
+ };
26842
+ Returns: undefined;
26843
+ };
26560
26844
  inkoop_send_order: {
26561
26845
  Args: {
26846
+ _base_url?: string;
26562
26847
  _order_id: string;
26848
+ _resend?: boolean;
26563
26849
  };
26564
26850
  Returns: {
26565
26851
  outbox_id: string;
@@ -26574,6 +26860,26 @@ export type Database = {
26574
26860
  };
26575
26861
  Returns: undefined;
26576
26862
  };
26863
+ inkoop_stock_key: {
26864
+ Args: {
26865
+ p_product_id: string;
26866
+ };
26867
+ Returns: string;
26868
+ };
26869
+ inkoop_submit_supplier_response: {
26870
+ Args: {
26871
+ _lines: Json;
26872
+ _note?: string;
26873
+ _token: string;
26874
+ };
26875
+ Returns: Json;
26876
+ };
26877
+ inkoop_sync_item_stock: {
26878
+ Args: {
26879
+ p_item_id: string;
26880
+ };
26881
+ Returns: undefined;
26882
+ };
26577
26883
  instructie_get: {
26578
26884
  Args: {
26579
26885
  _sleutel: string;
@@ -27011,6 +27317,12 @@ export type Database = {
27011
27317
  };
27012
27318
  Returns: number;
27013
27319
  };
27320
+ logistics_cart_barcode_opschonen: {
27321
+ Args: {
27322
+ p_portie?: number;
27323
+ };
27324
+ Returns: Json;
27325
+ };
27014
27326
  logistics_cart_barcode_value: {
27015
27327
  Args: {
27016
27328
  _cart_id: string;
@@ -28620,6 +28932,13 @@ export type Database = {
28620
28932
  };
28621
28933
  Returns: string;
28622
28934
  };
28935
+ logistics_shipping_note_status: {
28936
+ Args: {
28937
+ p_cart_id?: string;
28938
+ p_slip_job_id?: string;
28939
+ };
28940
+ Returns: Json;
28941
+ };
28623
28942
  logistics_shipping_notes_wake_all: {
28624
28943
  Args: never;
28625
28944
  Returns: Json;
@@ -30299,6 +30618,13 @@ export type Database = {
30299
30618
  };
30300
30619
  Returns: Json;
30301
30620
  };
30621
+ scan_controleer_pincode: {
30622
+ Args: {
30623
+ p_pin: string;
30624
+ p_scanner_id: string;
30625
+ };
30626
+ Returns: boolean;
30627
+ };
30302
30628
  scan_dashboard_stats: {
30303
30629
  Args: {
30304
30630
  p_dagen?: number;
@@ -30318,6 +30644,12 @@ export type Database = {
30318
30644
  };
30319
30645
  Returns: Json;
30320
30646
  };
30647
+ scan_heeft_pincode: {
30648
+ Args: {
30649
+ p_scanner_id: string;
30650
+ };
30651
+ Returns: boolean;
30652
+ };
30321
30653
  scan_kar_compleet: {
30322
30654
  Args: {
30323
30655
  p_allow_reprint?: boolean;
@@ -30335,6 +30667,7 @@ export type Database = {
30335
30667
  Args: {
30336
30668
  p_code: string;
30337
30669
  p_latency_ms?: number;
30670
+ p_medewerker?: string;
30338
30671
  p_message?: string;
30339
30672
  p_result: string;
30340
30673
  p_scanner_key?: string;
@@ -30407,6 +30740,22 @@ export type Database = {
30407
30740
  };
30408
30741
  Returns: undefined;
30409
30742
  };
30743
+ scan_scanner_info: {
30744
+ Args: {
30745
+ p_slug: string;
30746
+ };
30747
+ Returns: {
30748
+ actief: boolean;
30749
+ heeft_pincode: boolean;
30750
+ id: string;
30751
+ naam: string;
30752
+ omschrijving: string;
30753
+ printer_id: string;
30754
+ type: string;
30755
+ vereist_medewerker: boolean;
30756
+ werkplek: string;
30757
+ }[];
30758
+ };
30410
30759
  scan_sessie_annuleren: {
30411
30760
  Args: {
30412
30761
  p_sessie_id: string;
@@ -31369,6 +31718,21 @@ export type Database = {
31369
31718
  };
31370
31719
  Returns: Json;
31371
31720
  };
31721
+ wo_list_colleague_planning: {
31722
+ Args: {
31723
+ _from: string;
31724
+ _monteur_id: string;
31725
+ _to: string;
31726
+ };
31727
+ Returns: {
31728
+ end_at: string;
31729
+ id: string;
31730
+ role: string;
31731
+ start_at: string;
31732
+ status: string;
31733
+ werkbon_id: string;
31734
+ }[];
31735
+ };
31372
31736
  wo_list_offerte_requests: {
31373
31737
  Args: {
31374
31738
  _status?: string;