@flowselections/layout-maker 1.57.1 → 1.58.1

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.
@@ -7,7 +7,7 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
7
7
  // gewijzigd, alleen getoond met een link.
8
8
  // ============================================================================
9
9
  import { useState } from "react";
10
- import { Badge, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, toast } from "@flowselections/core";
10
+ import { Badge, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, toast, useShellModules } from "@flowselections/core";
11
11
  import { AlertTriangle, ExternalLink } from "lucide-react";
12
12
  import { documentTypeLabel } from "../lib/documentTypes.js";
13
13
  import { maakStandaardLayout } from "../lib/useDocumentData.js";
@@ -43,7 +43,8 @@ export function LayoutVerwijzingenKaart({ onGewijzigd }) {
43
43
  })] }, s.documenttype))) })] }));
44
44
  }
45
45
  function VerwijzingRegel({ v, naarStandaard, beheerder, onKlaar, }) {
46
- const plek = plekVanVerwijzing(v);
46
+ const shell = useShellModules();
47
+ const plek = plekVanVerwijzing(v, (shell?.modules ?? null));
47
48
  return (_jsxs("li", { className: "flex flex-wrap items-center gap-2 text-xs", children: [_jsxs("span", { children: [plek.module, " \u203A ", plek.scherm, v.rij_naam ? ` (${v.rij_naam}${v.rij_actief === false ? ", niet actief" : ""})` : v.rij_actief === false ? " (niet actief)" : ""] }), !isEigenVerwijzing(v) && plek.link ? (_jsxs("a", { href: plek.link, className: "text-primary inline-flex items-center gap-1 underline", children: ["Openen ", _jsx(ExternalLink, { className: "h-3 w-3" })] })) : null, naarStandaard ? (_jsxs(Button, { size: "sm", variant: "ghost", disabled: !beheerder, title: beheerder ? undefined : "Alleen beheerders kunnen dit wijzigen", onClick: async () => {
48
49
  if (!window.confirm(`Deze regel laten wijzen naar "${naarStandaard.naam}"?`))
49
50
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"WerkplekOmzettingStap.d.ts","sourceRoot":"","sources":["../../src/components/WerkplekOmzettingStap.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAA+B,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAW9F,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EAAE,KAAK,EACf,QAAQ,EACR,SAAS,EACT,OAAO,EACP,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,+BAuFA"}
1
+ {"version":3,"file":"WerkplekOmzettingStap.d.ts","sourceRoot":"","sources":["../../src/components/WerkplekOmzettingStap.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAA+B,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAW9F,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EAAE,KAAK,EACf,QAAQ,EACR,SAAS,EACT,OAAO,EACP,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,+BA8FA"}
@@ -26,7 +26,7 @@ export function WerkplekOmzettingStap({ voorstel: begin, printers, beheerder, on
26
26
  return (_jsxs("div", { className: "space-y-3 text-sm", children: [_jsx("p", { children: "Op basis van de huidige instellingen stelt de module deze werkplekken voor. Controleer per documentsoort de printer van nu en die van na de omzetting. Er wordt pas iets aangemaakt als je bevestigt." }), voorstel.map((w, i) => {
27
27
  const etiket = printers.find((p) => p.id === w.label_printer_id)?.geladen_etiket;
28
28
  const verschillen = w.soorten.filter((s) => s.verschil).length;
29
- return (_jsxs("div", { className: "space-y-2 rounded border p-2", "data-werkplek-voorstel": w.print_plek_id ?? "kantoor", children: [_jsxs("div", { className: "grid gap-2 sm:grid-cols-[8rem_1fr]", children: [_jsx("span", { children: "Naam" }), _jsx(Input, { value: w.naam, disabled: w.bestaat || !beheerder, onChange: (e) => wijzig(i, { naam: e.target.value }) }), _jsx("span", { children: "A4-printer" }), _jsxs("select", { className: selectKlasse, disabled: w.bestaat || !beheerder, value: w.a4_printer_id ?? "", onChange: (e) => wijzig(i, { a4_printer_id: e.target.value || null }), children: [_jsx("option", { value: "", children: "\u2014 geen \u2014" }), bruikbaar.map((p) => _jsx("option", { value: p.id, children: printerTitel(p) }, p.id))] }), _jsx("span", { children: "Labelprinter" }), _jsxs("select", { className: selectKlasse, disabled: w.bestaat || !beheerder, value: w.label_printer_id ?? "", onChange: (e) => wijzig(i, { label_printer_id: e.target.value || null }), children: [_jsx("option", { value: "", children: "\u2014 geen \u2014" }), bruikbaar.map((p) => _jsx("option", { value: p.id, children: printerTitel(p) }, p.id))] }), _jsx("span", { children: "Geladen etiket" }), _jsx("span", { className: etiket ? "" : "text-destructive", children: etiket ? JSON.stringify(etiket) : "nog niet ingesteld — stel het in bij Werkplekken" })] }), _jsxs("div", { className: "flex items-center gap-2", children: [w.print_plek_id ? _jsx(Badge, { variant: "outline", children: "gekoppeld aan printplek" }) : _jsx(Badge, { variant: "outline", children: "op basis van standaardregels" }), w.bestaat ? _jsx(Badge, { variant: "secondary", children: "bestaat al \u2014 wordt overgeslagen" }) : null, _jsxs(Badge, { variant: verschillen ? "destructive" : "secondary", children: [verschillen, " verschillen"] })] }), _jsxs("table", { className: "w-full text-xs", children: [_jsx("thead", { children: _jsxs("tr", { className: "text-muted-foreground text-left", children: [_jsx("th", { className: "py-0.5", children: "Documentsoort" }), _jsx("th", { children: "Nu" }), _jsx("th", { children: "Bron nu" }), _jsx("th", { children: "Na omzetting" })] }) }), _jsx("tbody", { children: w.soorten.map((s) => (_jsxs("tr", { className: s.verschil ? "bg-destructive/10 font-medium" : "", "data-verschil": s.verschil ? "ja" : "nee", children: [_jsx("td", { className: "py-0.5", children: documentTypeLabel(s.documenttype) }), _jsx("td", { children: titel(s.printer_id) }), _jsx("td", { children: BRON[s.bron ?? "geen"] ?? s.bron }), _jsxs("td", { children: [titel(s.na_printer_id), s.klasse === "label" ? " (label)" : " (A4)"] })] }, s.documenttype))) })] })] }, `${w.print_plek_id ?? "kantoor"}`));
29
+ return (_jsxs("div", { className: "space-y-2 rounded border p-2", "data-werkplek-voorstel": w.print_plek_id ?? "kantoor", children: [_jsxs("div", { className: "grid gap-2 sm:grid-cols-[8rem_1fr]", children: [_jsx("span", { children: "Naam" }), _jsx(Input, { value: w.naam, disabled: w.bestaat || !beheerder, onChange: (e) => wijzig(i, { naam: e.target.value }) }), _jsx("span", { children: "A4-printer" }), _jsxs("select", { className: selectKlasse, disabled: w.bestaat || !beheerder, value: w.a4_printer_id ?? "", onChange: (e) => wijzig(i, { a4_printer_id: e.target.value || null }), children: [_jsx("option", { value: "", children: "\u2014 geen \u2014" }), bruikbaar.map((p) => _jsx("option", { value: p.id, children: printerTitel(p) }, p.id))] }), _jsx("span", { children: "Labelprinter" }), _jsxs("select", { className: selectKlasse, disabled: w.bestaat || !beheerder, value: w.label_printer_id ?? "", onChange: (e) => wijzig(i, { label_printer_id: e.target.value || null }), children: [_jsx("option", { value: "", children: "\u2014 geen \u2014" }), bruikbaar.map((p) => _jsx("option", { value: p.id, children: printerTitel(p) }, p.id))] }), _jsx("span", { children: "Geladen etiket" }), _jsx("span", { className: etiket ? "" : "text-destructive", children: etiket ? JSON.stringify(etiket) : "nog niet ingesteld — stel het in bij Werkplekken" })] }), _jsxs("div", { className: "flex items-center gap-2", children: [w.print_plek_id ? _jsx(Badge, { variant: "outline", children: "gekoppeld aan printplek" }) : _jsx(Badge, { variant: "outline", children: "op basis van standaardregels" }), w.bestaat ? _jsx(Badge, { variant: "secondary", children: "bestaat al \u2014 wordt overgeslagen" }) : null, _jsxs(Badge, { variant: verschillen ? "destructive" : "secondary", children: [verschillen, " verschillen"] })] }), _jsxs("table", { className: "w-full text-xs", children: [_jsx("thead", { children: _jsxs("tr", { className: "text-muted-foreground text-left", children: [_jsx("th", { className: "py-0.5", children: "Documentsoort" }), _jsx("th", { children: "Nu" }), _jsx("th", { children: "Bron nu" }), _jsx("th", { children: "Na omzetting" })] }) }), _jsx("tbody", { children: w.soorten.map((s) => (_jsxs("tr", { className: s.verschil ? "bg-destructive/10 font-medium" : "", "data-verschil": s.verschil ? "ja" : "nee", children: [_jsxs("td", { className: "py-0.5", children: [documentTypeLabel(s.documenttype), s.geen_etiketlayout ? (_jsx("div", { className: "text-destructive", "data-geen-etiketlayout": "ja", children: "Deze soort heeft nog geen etiketlayout (layout staat op A4)" })) : null] }), _jsx("td", { children: titel(s.printer_id) }), _jsx("td", { children: BRON[s.bron ?? "geen"] ?? s.bron }), _jsxs("td", { children: [titel(s.na_printer_id), s.klasse === "label" ? " (label)" : " (A4)"] })] }, s.documenttype))) })] })] }, `${w.print_plek_id ?? "kantoor"}`));
30
30
  }), !beheerder ? _jsx("p", { className: "text-muted-foreground", children: "Alleen beheerders kunnen dit wijzigen." }) : null, _jsxs("div", { className: "flex justify-between", children: [_jsx(Button, { variant: "ghost", onClick: onOverslaan, children: "Overslaan, zelf instellen" }), _jsx(Button, { disabled: !beheerder || bezig || !nieuw.length || nieuw.some((w) => !w.naam.trim() || (!w.a4_printer_id && !w.label_printer_id)), onClick: async () => {
31
31
  if (!window.confirm(`${nieuw.length} werkplek(ken) aanmaken? De verschillen hierboven gaan dan gelden voor wie deze werkplek kiest.`))
32
32
  return;
@@ -1056,10 +1056,13 @@ export type Database = {
1056
1056
  created_at: string;
1057
1057
  daily_regular_hours: number;
1058
1058
  default_hourly_rate: number;
1059
+ default_vacation_days: number;
1059
1060
  id: string;
1061
+ last_cleanup_on: string | null;
1060
1062
  materials_markup_percent: number;
1061
1063
  max_daily_hours: number;
1062
1064
  max_weekly_hours: number;
1065
+ meal_after_minutes: number;
1063
1066
  meal_allowance_amount: number;
1064
1067
  overtime_pct_178: number;
1065
1068
  overtime_pct_189: number;
@@ -1088,10 +1091,13 @@ export type Database = {
1088
1091
  created_at?: string;
1089
1092
  daily_regular_hours?: number;
1090
1093
  default_hourly_rate?: number;
1094
+ default_vacation_days?: number;
1091
1095
  id?: string;
1096
+ last_cleanup_on?: string | null;
1092
1097
  materials_markup_percent?: number;
1093
1098
  max_daily_hours?: number;
1094
1099
  max_weekly_hours?: number;
1100
+ meal_after_minutes?: number;
1095
1101
  meal_allowance_amount?: number;
1096
1102
  overtime_pct_178?: number;
1097
1103
  overtime_pct_189?: number;
@@ -1120,10 +1126,13 @@ export type Database = {
1120
1126
  created_at?: string;
1121
1127
  daily_regular_hours?: number;
1122
1128
  default_hourly_rate?: number;
1129
+ default_vacation_days?: number;
1123
1130
  id?: string;
1131
+ last_cleanup_on?: string | null;
1124
1132
  materials_markup_percent?: number;
1125
1133
  max_daily_hours?: number;
1126
1134
  max_weekly_hours?: number;
1135
+ meal_after_minutes?: number;
1127
1136
  meal_allowance_amount?: number;
1128
1137
  overtime_pct_178?: number;
1129
1138
  overtime_pct_189?: number;
@@ -2602,6 +2611,7 @@ export type Database = {
2602
2611
  twinfield_base_snapshot: Json | null;
2603
2612
  twinfield_base_version: number | null;
2604
2613
  twinfield_code: string | null;
2614
+ twinfield_create_on_insert: boolean;
2605
2615
  twinfield_last_hash: string | null;
2606
2616
  twinfield_missing_since: string | null;
2607
2617
  twinfield_present: boolean;
@@ -2693,6 +2703,7 @@ export type Database = {
2693
2703
  twinfield_base_snapshot?: Json | null;
2694
2704
  twinfield_base_version?: number | null;
2695
2705
  twinfield_code?: string | null;
2706
+ twinfield_create_on_insert?: boolean;
2696
2707
  twinfield_last_hash?: string | null;
2697
2708
  twinfield_missing_since?: string | null;
2698
2709
  twinfield_present?: boolean;
@@ -2784,6 +2795,7 @@ export type Database = {
2784
2795
  twinfield_base_snapshot?: Json | null;
2785
2796
  twinfield_base_version?: number | null;
2786
2797
  twinfield_code?: string | null;
2798
+ twinfield_create_on_insert?: boolean;
2787
2799
  twinfield_last_hash?: string | null;
2788
2800
  twinfield_missing_since?: string | null;
2789
2801
  twinfield_present?: boolean;
@@ -7052,6 +7064,59 @@ export type Database = {
7052
7064
  }
7053
7065
  ];
7054
7066
  };
7067
+ floriday_customer_sticker_upload_requests_cache: {
7068
+ Row: {
7069
+ connection_id: string;
7070
+ created_at: string;
7071
+ customer_sticker_id: string | null;
7072
+ data: Json;
7073
+ expires_on: string | null;
7074
+ fetched_at: string;
7075
+ floriday_id: string;
7076
+ id: string;
7077
+ responded_on: string | null;
7078
+ sales_order_id: string | null;
7079
+ sequence_number: number;
7080
+ status: string | null;
7081
+ };
7082
+ Insert: {
7083
+ connection_id: string;
7084
+ created_at?: string;
7085
+ customer_sticker_id?: string | null;
7086
+ data?: Json;
7087
+ expires_on?: string | null;
7088
+ fetched_at?: string;
7089
+ floriday_id: string;
7090
+ id?: string;
7091
+ responded_on?: string | null;
7092
+ sales_order_id?: string | null;
7093
+ sequence_number?: number;
7094
+ status?: string | null;
7095
+ };
7096
+ Update: {
7097
+ connection_id?: string;
7098
+ created_at?: string;
7099
+ customer_sticker_id?: string | null;
7100
+ data?: Json;
7101
+ expires_on?: string | null;
7102
+ fetched_at?: string;
7103
+ floriday_id?: string;
7104
+ id?: string;
7105
+ responded_on?: string | null;
7106
+ sales_order_id?: string | null;
7107
+ sequence_number?: number;
7108
+ status?: string | null;
7109
+ };
7110
+ Relationships: [
7111
+ {
7112
+ foreignKeyName: "floriday_customer_sticker_upload_requests_ca_connection_id_fkey";
7113
+ columns: ["connection_id"];
7114
+ isOneToOne: false;
7115
+ referencedRelation: "floriday_connections";
7116
+ referencedColumns: ["id"];
7117
+ }
7118
+ ];
7119
+ };
7055
7120
  floriday_customer_stickers_cache: {
7056
7121
  Row: {
7057
7122
  connection_id: string;
@@ -7379,6 +7444,59 @@ export type Database = {
7379
7444
  }
7380
7445
  ];
7381
7446
  };
7447
+ floriday_document_versions: {
7448
+ Row: {
7449
+ bucket: string;
7450
+ byte_size: number | null;
7451
+ connection_id: string;
7452
+ content_sha256: string;
7453
+ content_type: string | null;
7454
+ created_at: string;
7455
+ delivery_date: string | null;
7456
+ document_id: string;
7457
+ document_kind: string;
7458
+ id: string;
7459
+ storage_path: string;
7460
+ version: number;
7461
+ };
7462
+ Insert: {
7463
+ bucket: string;
7464
+ byte_size?: number | null;
7465
+ connection_id: string;
7466
+ content_sha256: string;
7467
+ content_type?: string | null;
7468
+ created_at?: string;
7469
+ delivery_date?: string | null;
7470
+ document_id: string;
7471
+ document_kind: string;
7472
+ id?: string;
7473
+ storage_path: string;
7474
+ version: number;
7475
+ };
7476
+ Update: {
7477
+ bucket?: string;
7478
+ byte_size?: number | null;
7479
+ connection_id?: string;
7480
+ content_sha256?: string;
7481
+ content_type?: string | null;
7482
+ created_at?: string;
7483
+ delivery_date?: string | null;
7484
+ document_id?: string;
7485
+ document_kind?: string;
7486
+ id?: string;
7487
+ storage_path?: string;
7488
+ version?: number;
7489
+ };
7490
+ Relationships: [
7491
+ {
7492
+ foreignKeyName: "floriday_document_versions_connection_id_fkey";
7493
+ columns: ["connection_id"];
7494
+ isOneToOne: false;
7495
+ referencedRelation: "floriday_connections";
7496
+ referencedColumns: ["id"];
7497
+ }
7498
+ ];
7499
+ };
7382
7500
  floriday_fulfillment_orders_cache: {
7383
7501
  Row: {
7384
7502
  auction_date: string | null;
@@ -13587,6 +13705,7 @@ export type Database = {
13587
13705
  order_id: string | null;
13588
13706
  order_ref: string;
13589
13707
  priority: number;
13708
+ resolution_reason: string | null;
13590
13709
  resolved_at: string | null;
13591
13710
  resolved_by: string | null;
13592
13711
  shortages: Json;
@@ -13609,6 +13728,7 @@ export type Database = {
13609
13728
  order_id?: string | null;
13610
13729
  order_ref: string;
13611
13730
  priority?: number;
13731
+ resolution_reason?: string | null;
13612
13732
  resolved_at?: string | null;
13613
13733
  resolved_by?: string | null;
13614
13734
  shortages?: Json;
@@ -13631,6 +13751,7 @@ export type Database = {
13631
13751
  order_id?: string | null;
13632
13752
  order_ref?: string;
13633
13753
  priority?: number;
13754
+ resolution_reason?: string | null;
13634
13755
  resolved_at?: string | null;
13635
13756
  resolved_by?: string | null;
13636
13757
  shortages?: Json;
@@ -29043,6 +29164,10 @@ export type Database = {
29043
29164
  Args: never;
29044
29165
  Returns: Json;
29045
29166
  };
29167
+ dashboard_alert_counts_v2: {
29168
+ Args: never;
29169
+ Returns: Json;
29170
+ };
29046
29171
  dashboard_alert_rows: {
29047
29172
  Args: {
29048
29173
  check_id: string;
@@ -29050,6 +29175,17 @@ export type Database = {
29050
29175
  };
29051
29176
  Returns: Json;
29052
29177
  };
29178
+ dashboard_alert_rows_v2: {
29179
+ Args: {
29180
+ check_id: string;
29181
+ row_limit?: number;
29182
+ };
29183
+ Returns: Json;
29184
+ };
29185
+ dashboard_ensure_start_page: {
29186
+ Args: never;
29187
+ Returns: string;
29188
+ };
29053
29189
  dashboard_funnel_betaald: {
29054
29190
  Args: {
29055
29191
  _bedragen: number[];
@@ -29071,6 +29207,19 @@ export type Database = {
29071
29207
  table_name: string;
29072
29208
  }[];
29073
29209
  };
29210
+ dashboard_order_state: {
29211
+ Args: {
29212
+ _order_id: string;
29213
+ };
29214
+ Returns: string;
29215
+ };
29216
+ dashboard_pit_tellingen: {
29217
+ Args: {
29218
+ _mail_connecties?: string[];
29219
+ _vandaag: string;
29220
+ };
29221
+ Returns: Json;
29222
+ };
29074
29223
  dashboard_werkbon_funnel: {
29075
29224
  Args: {
29076
29225
  _periode?: string;
@@ -30111,6 +30260,13 @@ export type Database = {
30111
30260
  };
30112
30261
  Returns: Json;
30113
30262
  };
30263
+ invoice_register_send: {
30264
+ Args: {
30265
+ _invoice_id: string;
30266
+ _outbox_id: string;
30267
+ };
30268
+ Returns: Json;
30269
+ };
30114
30270
  invoice_resync_concept_from_work_order: {
30115
30271
  Args: {
30116
30272
  _werkbon_id: string;
@@ -30136,6 +30292,13 @@ export type Database = {
30136
30292
  };
30137
30293
  Returns: Json;
30138
30294
  };
30295
+ invoice_status_transition_ok: {
30296
+ Args: {
30297
+ _from: string;
30298
+ _to: string;
30299
+ };
30300
+ Returns: boolean;
30301
+ };
30139
30302
  invoice_update_full: {
30140
30303
  Args: {
30141
30304
  _invoice_id: string;
@@ -30178,6 +30341,19 @@ export type Database = {
30178
30341
  Args: never;
30179
30342
  Returns: boolean;
30180
30343
  };
30344
+ itk_customer_stats: {
30345
+ Args: {
30346
+ _customer_ids: string[];
30347
+ };
30348
+ Returns: {
30349
+ afgerond: number;
30350
+ bezig: number;
30351
+ customer_id: string;
30352
+ klussen: number;
30353
+ omzet_cents: number;
30354
+ open: number;
30355
+ }[];
30356
+ };
30181
30357
  itk_offerte_naar_werkbon: {
30182
30358
  Args: {
30183
30359
  _offerte_id: string;
@@ -30191,6 +30367,16 @@ export type Database = {
30191
30367
  };
30192
30368
  Returns: number;
30193
30369
  };
30370
+ itk_top_customers_by_revenue: {
30371
+ Args: {
30372
+ _limit?: number;
30373
+ };
30374
+ Returns: {
30375
+ customer_id: string;
30376
+ name: string;
30377
+ omzet_cents: number;
30378
+ }[];
30379
+ };
30194
30380
  jwt_has_role: {
30195
30381
  Args: {
30196
30382
  _role: Database["public"]["Enums"]["app_role"];
@@ -30401,6 +30587,20 @@ export type Database = {
30401
30587
  };
30402
30588
  Returns: boolean;
30403
30589
  };
30590
+ logistics_archived_orders: {
30591
+ Args: never;
30592
+ Returns: {
30593
+ archived_at: string;
30594
+ attempts: number;
30595
+ delivery_date: string;
30596
+ last_error: string;
30597
+ order_id: string;
30598
+ order_ref: string;
30599
+ queue_id: string;
30600
+ reason: string;
30601
+ reason_code: string;
30602
+ }[];
30603
+ };
30404
30604
  logistics_backorder_allowed: {
30405
30605
  Args: {
30406
30606
  p_strategy_id?: string;
@@ -31546,6 +31746,12 @@ export type Database = {
31546
31746
  };
31547
31747
  Returns: string[];
31548
31748
  };
31749
+ logistics_order_definitively_blocked: {
31750
+ Args: {
31751
+ p_order_id: string;
31752
+ };
31753
+ Returns: Json;
31754
+ };
31549
31755
  logistics_order_documents_ready: {
31550
31756
  Args: {
31551
31757
  p_order_ref: string;
@@ -31614,6 +31820,12 @@ export type Database = {
31614
31820
  };
31615
31821
  Returns: boolean;
31616
31822
  };
31823
+ logistics_order_is_archived: {
31824
+ Args: {
31825
+ p_order_id: string;
31826
+ };
31827
+ Returns: Json;
31828
+ };
31617
31829
  logistics_order_is_backlog: {
31618
31830
  Args: {
31619
31831
  p_order_id: string;
@@ -31884,6 +32096,14 @@ export type Database = {
31884
32096
  order_id: string;
31885
32097
  }[];
31886
32098
  };
32099
+ logistics_plan_close_claim: {
32100
+ Args: {
32101
+ p_id: string;
32102
+ p_reason: string;
32103
+ p_reason_code?: string;
32104
+ };
32105
+ Returns: boolean;
32106
+ };
31887
32107
  logistics_plan_coverage_check: {
31888
32108
  Args: {
31889
32109
  p_limit?: number;
@@ -31939,6 +32159,10 @@ export type Database = {
31939
32159
  };
31940
32160
  Returns: number;
31941
32161
  };
32162
+ logistics_plan_housekeeping: {
32163
+ Args: never;
32164
+ Returns: Json;
32165
+ };
31942
32166
  logistics_plan_impact_orders: {
31943
32167
  Args: {
31944
32168
  p_order_id: string;
@@ -32050,6 +32274,12 @@ export type Database = {
32050
32274
  Args: never;
32051
32275
  Returns: number;
32052
32276
  };
32277
+ logistics_plan_unarchive: {
32278
+ Args: {
32279
+ p_order_ids: string[];
32280
+ };
32281
+ Returns: number;
32282
+ };
32053
32283
  logistics_plan_wachttijd: {
32054
32284
  Args: {
32055
32285
  p_order_id: string;
@@ -33869,6 +34099,13 @@ export type Database = {
33869
34099
  };
33870
34100
  Returns: Json;
33871
34101
  };
34102
+ pickstation_cart_sticker_state: {
34103
+ Args: {
34104
+ p_cart_id: string;
34105
+ p_slug: string;
34106
+ };
34107
+ Returns: Json;
34108
+ };
33872
34109
  pickstation_get_orders_raw: {
33873
34110
  Args: never;
33874
34111
  Returns: Json;
@@ -33891,6 +34128,13 @@ export type Database = {
33891
34128
  };
33892
34129
  Returns: undefined;
33893
34130
  };
34131
+ pickstation_order_sticker_meldingen: {
34132
+ Args: {
34133
+ p_order_id: string;
34134
+ p_slug: string;
34135
+ };
34136
+ Returns: Json;
34137
+ };
33894
34138
  pickstation_resolve_delivery_orders: {
33895
34139
  Args: {
33896
34140
  p_sales_order_ids: string[];
@@ -33956,6 +34200,12 @@ export type Database = {
33956
34200
  };
33957
34201
  Returns: undefined;
33958
34202
  };
34203
+ planning_cleanup_old_logs: {
34204
+ Args: {
34205
+ _keep_days?: number;
34206
+ };
34207
+ Returns: number;
34208
+ };
33959
34209
  planning_html_escape: {
33960
34210
  Args: {
33961
34211
  t: string;
@@ -34028,6 +34278,12 @@ export type Database = {
34028
34278
  };
34029
34279
  Returns: string;
34030
34280
  };
34281
+ print_is_etiketsoort: {
34282
+ Args: {
34283
+ _t: string;
34284
+ };
34285
+ Returns: boolean;
34286
+ };
34031
34287
  print_job_status_uitgebreid: {
34032
34288
  Args: {
34033
34289
  _job_id: string;
@@ -35390,6 +35646,10 @@ export type Database = {
35390
35646
  };
35391
35647
  Returns: undefined;
35392
35648
  };
35649
+ uren_cao_settings_zorg: {
35650
+ Args: never;
35651
+ Returns: string;
35652
+ };
35393
35653
  uren_collega_agenda: {
35394
35654
  Args: {
35395
35655
  _monteur: string;
@@ -35550,10 +35810,22 @@ export type Database = {
35550
35810
  Args: never;
35551
35811
  Returns: number;
35552
35812
  };
35813
+ uren_module_gezondheid: {
35814
+ Args: never;
35815
+ Returns: Json;
35816
+ };
35817
+ uren_module_status: {
35818
+ Args: never;
35819
+ Returns: Json;
35820
+ };
35553
35821
  uren_my_monteur_id: {
35554
35822
  Args: never;
35555
35823
  Returns: string;
35556
35824
  };
35825
+ uren_opschonen_indien_nodig: {
35826
+ Args: never;
35827
+ Returns: boolean;
35828
+ };
35557
35829
  uren_overuren_indienen: {
35558
35830
  Args: {
35559
35831
  _datum: string;
@@ -36086,7 +36358,7 @@ export type Database = {
36086
36358
  Enums: {
36087
36359
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
36088
36360
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
36089
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
36361
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief" | "traysticker";
36090
36362
  doc_orientation: "portrait" | "landscape";
36091
36363
  exact_env: "staging" | "live";
36092
36364
  exact_push_status: "pending" | "sent" | "error";
@@ -36157,7 +36429,7 @@ export declare const Constants: {
36157
36429
  readonly Enums: {
36158
36430
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
36159
36431
  readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie", "superadmin"];
36160
- readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
36432
+ readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief", "traysticker"];
36161
36433
  readonly doc_orientation: readonly ["portrait", "landscape"];
36162
36434
  readonly exact_env: readonly ["staging", "live"];
36163
36435
  readonly exact_push_status: readonly ["pending", "sent", "error"];