@flowselections/floriday-voorraad 1.0.54 → 1.0.59

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.
@@ -1 +1 @@
1
- {"version":3,"file":"StockIntegrityAlert.d.ts","sourceRoot":"","sources":["../../../src/components/voorraad/StockIntegrityAlert.tsx"],"names":[],"mappings":"AAuBA,wBAAgB,mBAAmB,uCAoFlC"}
1
+ {"version":3,"file":"StockIntegrityAlert.d.ts","sourceRoot":"","sources":["../../../src/components/voorraad/StockIntegrityAlert.tsx"],"names":[],"mappings":"AAoCA,wBAAgB,mBAAmB,uCA2GlC"}
@@ -8,8 +8,18 @@ import { useCallback, useEffect, useState } from "react";
8
8
  import { AlertOctagon } from "lucide-react";
9
9
  import { toast } from "sonner";
10
10
  import { supabase } from "../../integrations/supabase/client";
11
+ const keyToProductId = (k) => k.replace(/^product:/, "");
12
+ function label(it, names) {
13
+ const found = names.get(it.trade_item_key);
14
+ const code = it.article_code ?? found?.code ?? null;
15
+ const name = it.name ?? found?.name ?? null;
16
+ if (code || name)
17
+ return [code, name].filter(Boolean).join(" – ");
18
+ return "onbekend artikel";
19
+ }
11
20
  export function StockIntegrityAlert() {
12
21
  const [alerts, setAlerts] = useState([]);
22
+ const [names, setNames] = useState(new Map());
13
23
  const load = useCallback(async () => {
14
24
  const { data, error } = await supabase
15
25
  .from("stock_integrity_alerts")
@@ -22,7 +32,29 @@ export function StockIntegrityAlert() {
22
32
  console.error("Voorraadbewaking laden mislukt:", error.message);
23
33
  return;
24
34
  }
25
- setAlerts(Array.isArray(data) ? data : []);
35
+ const list = Array.isArray(data) ? data : [];
36
+ setAlerts(list);
37
+ // Oude alarmen zonder naam: naam opzoeken via de sleutel.
38
+ const keys = Array.from(new Set(list.flatMap((a) => (Array.isArray(a.items) ? a.items.slice(0, 10) : []))
39
+ .filter((it) => !it.article_code && !it.name)
40
+ .map((it) => it.trade_item_key)));
41
+ if (keys.length === 0)
42
+ return;
43
+ const uuidRe = /^[0-9a-f-]{36}$/i;
44
+ const ids = keys.map(keyToProductId).filter((k) => uuidRe.test(k));
45
+ const map = new Map();
46
+ const [byId, byFid] = await Promise.all([
47
+ ids.length ? supabase.from("products").select("id, article_number, product").in("id", ids) : { data: [] },
48
+ supabase.from("products").select("floriday_trade_item_id, article_number, product").in("floriday_trade_item_id", keys),
49
+ ]);
50
+ for (const p of (byId.data ?? [])) {
51
+ for (const k of keys)
52
+ if (keyToProductId(k) === p.id)
53
+ map.set(k, { code: p.article_number, name: p.product });
54
+ }
55
+ for (const p of (byFid.data ?? []))
56
+ map.set(p.floriday_trade_item_id, { code: p.article_number, name: p.product });
57
+ setNames(map);
26
58
  }, []);
27
59
  useEffect(() => {
28
60
  void load();
@@ -51,5 +83,5 @@ export function StockIntegrityAlert() {
51
83
  };
52
84
  if (alerts.length === 0)
53
85
  return null;
54
- return (_jsx("div", { className: "space-y-2", children: alerts.map((a) => (_jsxs("div", { className: "flex items-start gap-3 rounded-md border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive", children: [_jsx(AlertOctagon, { className: "mt-0.5 h-4 w-4 shrink-0" }), _jsxs("div", { className: "flex-1 space-y-1", children: [_jsxs("p", { className: "font-medium", children: [a.item_count, " artikelen gingen tegelijk naar voorraad 0 (", new Date(a.created_at).toLocaleString("nl-NL"), "). Controleer of dit klopt."] }), _jsx("ul", { className: "text-xs text-foreground/80", children: (Array.isArray(a.items) ? a.items : []).slice(0, 10).map((it, i) => (_jsxs("li", { children: [it.trade_item_key, ": was ", it.physical_before, it.change_source ? ` (bron ${it.change_source})` : " (bron onbekend)"] }, `${it.trade_item_key}-${i}`))) })] }), _jsx("button", { type: "button", className: "rounded-md border border-destructive/40 bg-background px-3 py-1 text-xs font-medium text-foreground hover:bg-muted", onClick: () => void acknowledge(a.id), children: "Gezien" })] }, a.id))) }));
86
+ return (_jsx("div", { className: "space-y-2", children: alerts.map((a) => (_jsxs("div", { className: "flex items-start gap-3 rounded-md border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive", children: [_jsx(AlertOctagon, { className: "mt-0.5 h-4 w-4 shrink-0" }), _jsxs("div", { className: "flex-1 space-y-1", children: [_jsxs("p", { className: "font-medium", children: [a.item_count, " artikelen gingen tegelijk naar voorraad 0 (", new Date(a.created_at).toLocaleString("nl-NL"), "). Controleer of dit klopt."] }), _jsx("ul", { className: "text-xs text-foreground/80", children: (Array.isArray(a.items) ? a.items : []).slice(0, 10).map((it, i) => (_jsxs("li", { children: [label(it, names), ": was ", it.physical_before, it.change_source ? ` (bron ${it.change_source})` : " (bron onbekend)"] }, `${it.trade_item_key}-${i}`))) })] }), _jsx("button", { type: "button", className: "rounded-md border border-destructive/40 bg-background px-3 py-1 text-xs font-medium text-foreground hover:bg-muted", onClick: () => void acknowledge(a.id), children: "Gezien" })] }, a.id))) }));
55
87
  }
@@ -7337,7 +7337,22 @@ export type Database = {
7337
7337
  updated_by?: string | null;
7338
7338
  user_id?: string;
7339
7339
  };
7340
- Relationships: [];
7340
+ Relationships: [
7341
+ {
7342
+ foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7343
+ columns: ["product_id"];
7344
+ isOneToOne: false;
7345
+ referencedRelation: "logistics_product_dimensions";
7346
+ referencedColumns: ["product_id"];
7347
+ },
7348
+ {
7349
+ foreignKeyName: "floriday_inventory_settings_product_id_fkey";
7350
+ columns: ["product_id"];
7351
+ isOneToOne: false;
7352
+ referencedRelation: "products";
7353
+ referencedColumns: ["id"];
7354
+ }
7355
+ ];
7341
7356
  };
7342
7357
  floriday_invoices_cache: {
7343
7358
  Row: {
@@ -7686,6 +7701,39 @@ export type Database = {
7686
7701
  }
7687
7702
  ];
7688
7703
  };
7704
+ floriday_queue_cleanup_runs: {
7705
+ Row: {
7706
+ created_at: string;
7707
+ deleted: Json;
7708
+ error: string | null;
7709
+ finished_at: string | null;
7710
+ id: string;
7711
+ more_remaining: boolean;
7712
+ orphan_settings: number | null;
7713
+ started_at: string;
7714
+ };
7715
+ Insert: {
7716
+ created_at?: string;
7717
+ deleted?: Json;
7718
+ error?: string | null;
7719
+ finished_at?: string | null;
7720
+ id?: string;
7721
+ more_remaining?: boolean;
7722
+ orphan_settings?: number | null;
7723
+ started_at?: string;
7724
+ };
7725
+ Update: {
7726
+ created_at?: string;
7727
+ deleted?: Json;
7728
+ error?: string | null;
7729
+ finished_at?: string | null;
7730
+ id?: string;
7731
+ more_remaining?: boolean;
7732
+ orphan_settings?: number | null;
7733
+ started_at?: string;
7734
+ };
7735
+ Relationships: [];
7736
+ };
7689
7737
  floriday_rate_limit_state: {
7690
7738
  Row: {
7691
7739
  bucket: string;
@@ -8844,22 +8892,55 @@ export type Database = {
8844
8892
  Row: {
8845
8893
  drain_batch: number;
8846
8894
  id: boolean;
8895
+ import_chunk_size: number;
8896
+ import_max_bytes: number;
8897
+ import_max_rows: number;
8898
+ import_new_chunk_size: number;
8899
+ import_retention_days: number;
8847
8900
  max_ms_inline: number;
8848
8901
  max_parents_inline: number;
8902
+ queue_cleanup_batch: number;
8903
+ queue_cleanup_max_batches: number;
8904
+ queue_failed_days: number;
8905
+ queue_sent_days: number;
8906
+ queue_skipped_days: number;
8907
+ queue_superseded_days: number;
8849
8908
  updated_at: string;
8850
8909
  };
8851
8910
  Insert: {
8852
8911
  drain_batch?: number;
8853
8912
  id?: boolean;
8913
+ import_chunk_size?: number;
8914
+ import_max_bytes?: number;
8915
+ import_max_rows?: number;
8916
+ import_new_chunk_size?: number;
8917
+ import_retention_days?: number;
8854
8918
  max_ms_inline?: number;
8855
8919
  max_parents_inline?: number;
8920
+ queue_cleanup_batch?: number;
8921
+ queue_cleanup_max_batches?: number;
8922
+ queue_failed_days?: number;
8923
+ queue_sent_days?: number;
8924
+ queue_skipped_days?: number;
8925
+ queue_superseded_days?: number;
8856
8926
  updated_at?: string;
8857
8927
  };
8858
8928
  Update: {
8859
8929
  drain_batch?: number;
8860
8930
  id?: boolean;
8931
+ import_chunk_size?: number;
8932
+ import_max_bytes?: number;
8933
+ import_max_rows?: number;
8934
+ import_new_chunk_size?: number;
8935
+ import_retention_days?: number;
8861
8936
  max_ms_inline?: number;
8862
8937
  max_parents_inline?: number;
8938
+ queue_cleanup_batch?: number;
8939
+ queue_cleanup_max_batches?: number;
8940
+ queue_failed_days?: number;
8941
+ queue_sent_days?: number;
8942
+ queue_skipped_days?: number;
8943
+ queue_superseded_days?: number;
8863
8944
  updated_at?: string;
8864
8945
  };
8865
8946
  Relationships: [];
@@ -11092,6 +11173,42 @@ export type Database = {
11092
11173
  };
11093
11174
  Relationships: [];
11094
11175
  };
11176
+ logistics_autolink_audit: {
11177
+ Row: {
11178
+ created_at: string;
11179
+ id: string;
11180
+ match_type: string;
11181
+ order_id: string | null;
11182
+ order_item_id: string | null;
11183
+ order_source: string | null;
11184
+ product_floriday_id: string | null;
11185
+ product_id: string | null;
11186
+ product_name: string | null;
11187
+ };
11188
+ Insert: {
11189
+ created_at?: string;
11190
+ id?: string;
11191
+ match_type: string;
11192
+ order_id?: string | null;
11193
+ order_item_id?: string | null;
11194
+ order_source?: string | null;
11195
+ product_floriday_id?: string | null;
11196
+ product_id?: string | null;
11197
+ product_name?: string | null;
11198
+ };
11199
+ Update: {
11200
+ created_at?: string;
11201
+ id?: string;
11202
+ match_type?: string;
11203
+ order_id?: string | null;
11204
+ order_item_id?: string | null;
11205
+ order_source?: string | null;
11206
+ product_floriday_id?: string | null;
11207
+ product_id?: string | null;
11208
+ product_name?: string | null;
11209
+ };
11210
+ Relationships: [];
11211
+ };
11095
11212
  logistics_base_url_checks: {
11096
11213
  Row: {
11097
11214
  candidate_host: string | null;
@@ -12845,6 +12962,7 @@ export type Database = {
12845
12962
  slip_job_id: string;
12846
12963
  status: string;
12847
12964
  updated_at: string;
12965
+ voor_herstel: boolean;
12848
12966
  };
12849
12967
  Insert: {
12850
12968
  attempts?: number;
@@ -12865,6 +12983,7 @@ export type Database = {
12865
12983
  slip_job_id: string;
12866
12984
  status?: string;
12867
12985
  updated_at?: string;
12986
+ voor_herstel?: boolean;
12868
12987
  };
12869
12988
  Update: {
12870
12989
  attempts?: number;
@@ -12885,6 +13004,7 @@ export type Database = {
12885
13004
  slip_job_id?: string;
12886
13005
  status?: string;
12887
13006
  updated_at?: string;
13007
+ voor_herstel?: boolean;
12888
13008
  };
12889
13009
  Relationships: [];
12890
13010
  };
@@ -21043,43 +21163,212 @@ export type Database = {
21043
21163
  };
21044
21164
  Relationships: [];
21045
21165
  };
21166
+ stock_import_chunks: {
21167
+ Row: {
21168
+ chunk_no: number;
21169
+ created_at: string;
21170
+ duration_ms: number | null;
21171
+ processed_at: string | null;
21172
+ run_id: string;
21173
+ status: string;
21174
+ undone_at: string | null;
21175
+ updated_at: string;
21176
+ };
21177
+ Insert: {
21178
+ chunk_no: number;
21179
+ created_at?: string;
21180
+ duration_ms?: number | null;
21181
+ processed_at?: string | null;
21182
+ run_id: string;
21183
+ status?: string;
21184
+ undone_at?: string | null;
21185
+ updated_at?: string;
21186
+ };
21187
+ Update: {
21188
+ chunk_no?: number;
21189
+ created_at?: string;
21190
+ duration_ms?: number | null;
21191
+ processed_at?: string | null;
21192
+ run_id?: string;
21193
+ status?: string;
21194
+ undone_at?: string | null;
21195
+ updated_at?: string;
21196
+ };
21197
+ Relationships: [
21198
+ {
21199
+ foreignKeyName: "stock_import_chunks_run_id_fkey";
21200
+ columns: ["run_id"];
21201
+ isOneToOne: false;
21202
+ referencedRelation: "stock_import_runs";
21203
+ referencedColumns: ["id"];
21204
+ }
21205
+ ];
21206
+ };
21207
+ stock_import_rows: {
21208
+ Row: {
21209
+ article_code: string | null;
21210
+ article_name: string | null;
21211
+ chunk_no: number;
21212
+ connection_id: string | null;
21213
+ created_at: string;
21214
+ custom_values: Json | null;
21215
+ error: string | null;
21216
+ id: string;
21217
+ incoming_after: number | null;
21218
+ incoming_before: number | null;
21219
+ incoming_in: number | null;
21220
+ is_new: boolean;
21221
+ minimum_after: number | null;
21222
+ minimum_before: number | null;
21223
+ minimum_in: number | null;
21224
+ new_payload: Json | null;
21225
+ note: string | null;
21226
+ physical_after: number | null;
21227
+ physical_before: number | null;
21228
+ physical_in: number | null;
21229
+ processed_at: string | null;
21230
+ product_id: string | null;
21231
+ row_no: number;
21232
+ run_id: string;
21233
+ status: string;
21234
+ trade_item_key: string | null;
21235
+ updated_at: string;
21236
+ };
21237
+ Insert: {
21238
+ article_code?: string | null;
21239
+ article_name?: string | null;
21240
+ chunk_no: number;
21241
+ connection_id?: string | null;
21242
+ created_at?: string;
21243
+ custom_values?: Json | null;
21244
+ error?: string | null;
21245
+ id?: string;
21246
+ incoming_after?: number | null;
21247
+ incoming_before?: number | null;
21248
+ incoming_in?: number | null;
21249
+ is_new?: boolean;
21250
+ minimum_after?: number | null;
21251
+ minimum_before?: number | null;
21252
+ minimum_in?: number | null;
21253
+ new_payload?: Json | null;
21254
+ note?: string | null;
21255
+ physical_after?: number | null;
21256
+ physical_before?: number | null;
21257
+ physical_in?: number | null;
21258
+ processed_at?: string | null;
21259
+ product_id?: string | null;
21260
+ row_no: number;
21261
+ run_id: string;
21262
+ status?: string;
21263
+ trade_item_key?: string | null;
21264
+ updated_at?: string;
21265
+ };
21266
+ Update: {
21267
+ article_code?: string | null;
21268
+ article_name?: string | null;
21269
+ chunk_no?: number;
21270
+ connection_id?: string | null;
21271
+ created_at?: string;
21272
+ custom_values?: Json | null;
21273
+ error?: string | null;
21274
+ id?: string;
21275
+ incoming_after?: number | null;
21276
+ incoming_before?: number | null;
21277
+ incoming_in?: number | null;
21278
+ is_new?: boolean;
21279
+ minimum_after?: number | null;
21280
+ minimum_before?: number | null;
21281
+ minimum_in?: number | null;
21282
+ new_payload?: Json | null;
21283
+ note?: string | null;
21284
+ physical_after?: number | null;
21285
+ physical_before?: number | null;
21286
+ physical_in?: number | null;
21287
+ processed_at?: string | null;
21288
+ product_id?: string | null;
21289
+ row_no?: number;
21290
+ run_id?: string;
21291
+ status?: string;
21292
+ trade_item_key?: string | null;
21293
+ updated_at?: string;
21294
+ };
21295
+ Relationships: [
21296
+ {
21297
+ foreignKeyName: "stock_import_rows_run_id_fkey";
21298
+ columns: ["run_id"];
21299
+ isOneToOne: false;
21300
+ referencedRelation: "stock_import_runs";
21301
+ referencedColumns: ["id"];
21302
+ }
21303
+ ];
21304
+ };
21046
21305
  stock_import_runs: {
21047
21306
  Row: {
21307
+ chunk_size: number | null;
21048
21308
  connection_id: string | null;
21049
21309
  created_at: string;
21050
21310
  created_rows: number;
21311
+ done_chunks: number;
21051
21312
  errors: Json;
21313
+ file_hash: string | null;
21052
21314
  filename: string | null;
21315
+ finished_at: string | null;
21053
21316
  id: string;
21054
21317
  mutations: Json;
21318
+ rows_purged_at: string | null;
21055
21319
  skipped_rows: number;
21320
+ status: string;
21321
+ total_chunks: number;
21056
21322
  total_rows: number;
21323
+ undo_skipped_rows: number;
21324
+ undone_rows: number;
21325
+ updated_at: string;
21057
21326
  updated_rows: number;
21058
21327
  user_id: string;
21059
21328
  };
21060
21329
  Insert: {
21330
+ chunk_size?: number | null;
21061
21331
  connection_id?: string | null;
21062
21332
  created_at?: string;
21063
21333
  created_rows?: number;
21334
+ done_chunks?: number;
21064
21335
  errors?: Json;
21336
+ file_hash?: string | null;
21065
21337
  filename?: string | null;
21338
+ finished_at?: string | null;
21066
21339
  id?: string;
21067
21340
  mutations?: Json;
21341
+ rows_purged_at?: string | null;
21068
21342
  skipped_rows?: number;
21343
+ status?: string;
21344
+ total_chunks?: number;
21069
21345
  total_rows?: number;
21346
+ undo_skipped_rows?: number;
21347
+ undone_rows?: number;
21348
+ updated_at?: string;
21070
21349
  updated_rows?: number;
21071
21350
  user_id: string;
21072
21351
  };
21073
21352
  Update: {
21353
+ chunk_size?: number | null;
21074
21354
  connection_id?: string | null;
21075
21355
  created_at?: string;
21076
21356
  created_rows?: number;
21357
+ done_chunks?: number;
21077
21358
  errors?: Json;
21359
+ file_hash?: string | null;
21078
21360
  filename?: string | null;
21361
+ finished_at?: string | null;
21079
21362
  id?: string;
21080
21363
  mutations?: Json;
21364
+ rows_purged_at?: string | null;
21081
21365
  skipped_rows?: number;
21366
+ status?: string;
21367
+ total_chunks?: number;
21082
21368
  total_rows?: number;
21369
+ undo_skipped_rows?: number;
21370
+ undone_rows?: number;
21371
+ updated_at?: string;
21083
21372
  updated_rows?: number;
21084
21373
  user_id?: string;
21085
21374
  };
@@ -26987,6 +27276,15 @@ export type Database = {
26987
27276
  };
26988
27277
  };
26989
27278
  Functions: {
27279
+ _floriday_queue_cleanup_batch: {
27280
+ Args: {
27281
+ p_days: number;
27282
+ p_keep_latest: boolean;
27283
+ p_limit: number;
27284
+ p_statuses: string[];
27285
+ };
27286
+ Returns: number;
27287
+ };
26990
27288
  _floriday_schedule_job: {
26991
27289
  Args: {
26992
27290
  p_apikey: string;
@@ -27010,6 +27308,12 @@ export type Database = {
27010
27308
  };
27011
27309
  Returns: Json;
27012
27310
  };
27311
+ _stock_import_caller: {
27312
+ Args: {
27313
+ p_owner: string;
27314
+ };
27315
+ Returns: boolean;
27316
+ };
27013
27317
  _wo_is_planner: {
27014
27318
  Args: never;
27015
27319
  Returns: boolean;
@@ -27950,7 +28254,7 @@ export type Database = {
27950
28254
  };
27951
28255
  floriday_cleanup_stock_queue_v2: {
27952
28256
  Args: never;
27953
- Returns: undefined;
28257
+ Returns: Json;
27954
28258
  };
27955
28259
  floriday_compact_stock_snapshots: {
27956
28260
  Args: never;
@@ -28002,6 +28306,10 @@ export type Database = {
28002
28306
  };
28003
28307
  Returns: number;
28004
28308
  };
28309
+ floriday_orphan_settings_count: {
28310
+ Args: never;
28311
+ Returns: number;
28312
+ };
28005
28313
  floriday_publish_horizon_weeks: {
28006
28314
  Args: never;
28007
28315
  Returns: number;
@@ -28958,6 +29266,13 @@ export type Database = {
28958
29266
  };
28959
29267
  Returns: string;
28960
29268
  };
29269
+ logistics_apply_cart_swap: {
29270
+ Args: {
29271
+ p_delete_ids: string[];
29272
+ p_new_carts: Json;
29273
+ };
29274
+ Returns: Json;
29275
+ };
28961
29276
  logistics_apply_document_layouts: {
28962
29277
  Args: never;
28963
29278
  Returns: undefined;
@@ -29913,6 +30228,12 @@ export type Database = {
29913
30228
  };
29914
30229
  Returns: boolean;
29915
30230
  };
30231
+ logistics_is_group_label: {
30232
+ Args: {
30233
+ p_label: string;
30234
+ };
30235
+ Returns: boolean;
30236
+ };
29916
30237
  logistics_is_pick_workday: {
29917
30238
  Args: {
29918
30239
  p_date: string;
@@ -30473,6 +30794,21 @@ export type Database = {
30473
30794
  Args: never;
30474
30795
  Returns: number;
30475
30796
  };
30797
+ logistics_plan_wachttijd: {
30798
+ Args: {
30799
+ p_order_id: string;
30800
+ p_reason: string;
30801
+ };
30802
+ Returns: Json;
30803
+ };
30804
+ logistics_plan_wachttijd_melden: {
30805
+ Args: {
30806
+ p_order_id: string;
30807
+ p_reason: string;
30808
+ p_wacht: Json;
30809
+ };
30810
+ Returns: undefined;
30811
+ };
30476
30812
  logistics_planner_cart_snapshot: {
30477
30813
  Args: {
30478
30814
  p_buffer_id: string;
@@ -30559,6 +30895,12 @@ export type Database = {
30559
30895
  Args: never;
30560
30896
  Returns: number;
30561
30897
  };
30898
+ logistics_recompute_reserved_targeted: {
30899
+ Args: {
30900
+ p_product_id: string;
30901
+ };
30902
+ Returns: Json;
30903
+ };
30562
30904
  logistics_reconcile_missing_plan_queue: {
30563
30905
  Args: never;
30564
30906
  Returns: number;
@@ -30656,6 +30998,13 @@ export type Database = {
30656
30998
  };
30657
30999
  Returns: Json;
30658
31000
  };
31001
+ logistics_reserved_fast_skip: {
31002
+ Args: {
31003
+ p_key: string;
31004
+ p_raw: string;
31005
+ };
31006
+ Returns: boolean;
31007
+ };
30659
31008
  logistics_reserved_key: {
30660
31009
  Args: {
30661
31010
  p_key: string;
@@ -30681,6 +31030,12 @@ export type Database = {
30681
31030
  };
30682
31031
  Returns: string;
30683
31032
  };
31033
+ logistics_resolve_product_match: {
31034
+ Args: {
31035
+ p_label: string;
31036
+ };
31037
+ Returns: Record<string, unknown>;
31038
+ };
30684
31039
  logistics_resolve_settings: {
30685
31040
  Args: {
30686
31041
  p_config_id: string;
@@ -30801,6 +31156,16 @@ export type Database = {
30801
31156
  };
30802
31157
  Returns: string;
30803
31158
  };
31159
+ logistics_shipping_note_max_attempts: {
31160
+ Args: never;
31161
+ Returns: number;
31162
+ };
31163
+ logistics_shipping_note_release: {
31164
+ Args: {
31165
+ _order_number?: string;
31166
+ };
31167
+ Returns: number;
31168
+ };
30804
31169
  logistics_shipping_note_status: {
30805
31170
  Args: {
30806
31171
  p_cart_id?: string;
@@ -30808,6 +31173,12 @@ export type Database = {
30808
31173
  };
30809
31174
  Returns: Json;
30810
31175
  };
31176
+ logistics_shipping_note_wake: {
31177
+ Args: {
31178
+ _slip_job_id: string;
31179
+ };
31180
+ Returns: number;
31181
+ };
30811
31182
  logistics_shipping_notes_wake_all: {
30812
31183
  Args: never;
30813
31184
  Returns: Json;
@@ -30842,6 +31213,7 @@ export type Database = {
30842
31213
  slip_job_id: string;
30843
31214
  status: string;
30844
31215
  updated_at: string;
31216
+ voor_herstel: boolean;
30845
31217
  }[];
30846
31218
  SetofOptions: {
30847
31219
  from: "*";
@@ -30862,6 +31234,13 @@ export type Database = {
30862
31234
  };
30863
31235
  Returns: undefined;
30864
31236
  };
31237
+ logistics_slip_note_hold: {
31238
+ Args: {
31239
+ _id: string;
31240
+ _reason: string;
31241
+ };
31242
+ Returns: undefined;
31243
+ };
30865
31244
  logistics_slip_note_keep_waiting: {
30866
31245
  Args: {
30867
31246
  _class?: string;
@@ -33287,6 +33666,40 @@ export type Database = {
33287
33666
  };
33288
33667
  Returns: Json;
33289
33668
  };
33669
+ stock_import_cleanup: {
33670
+ Args: never;
33671
+ Returns: number;
33672
+ };
33673
+ stock_import_create: {
33674
+ Args: {
33675
+ p_connection_id: string;
33676
+ p_file_hash: string;
33677
+ p_filename: string;
33678
+ p_force?: boolean;
33679
+ p_rows: Json;
33680
+ };
33681
+ Returns: Json;
33682
+ };
33683
+ stock_import_process_chunk: {
33684
+ Args: {
33685
+ p_chunk_no: number;
33686
+ p_run_id: string;
33687
+ };
33688
+ Returns: Json;
33689
+ };
33690
+ stock_import_stop: {
33691
+ Args: {
33692
+ p_run_id: string;
33693
+ };
33694
+ Returns: Json;
33695
+ };
33696
+ stock_import_undo_chunk: {
33697
+ Args: {
33698
+ p_chunk_no: number;
33699
+ p_run_id: string;
33700
+ };
33701
+ Returns: Json;
33702
+ };
33290
33703
  stop_time_log: {
33291
33704
  Args: {
33292
33705
  p_employee_id: string;