@flowselections/layout-maker 1.67.1 → 1.69.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.
- package/dist-lib/components/LayoutsPage.d.ts.map +1 -1
- package/dist-lib/components/LayoutsPage.js +2 -2
- package/dist-lib/integrations/supabase/types.d.ts +146 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/printQueue.server.d.ts +5 -0
- package/dist-lib/lib/printQueue.server.d.ts.map +1 -1
- package/dist-lib/lib/printQueue.server.js +33 -0
- package/dist-lib/lib/printService.functions.d.ts +3 -2
- package/dist-lib/lib/printService.functions.d.ts.map +1 -1
- package/dist-lib/lib/printService.functions.js +9 -5
- package/dist-lib/lib/standaardLayouts.server.d.ts +19 -0
- package/dist-lib/lib/standaardLayouts.server.d.ts.map +1 -1
- package/dist-lib/lib/standaardLayouts.server.js +44 -1
- package/dist-lib/lib/standaardenBron.d.ts +15 -0
- package/dist-lib/lib/standaardenBron.d.ts.map +1 -0
- package/dist-lib/lib/standaardenBron.js +272 -0
- package/dist-lib/lib/useDocumentData.d.ts +2 -0
- package/dist-lib/lib/useDocumentData.d.ts.map +1 -1
- package/dist-lib/lib/useDocumentData.js +6 -0
- package/dist-lib/lib/versie.generated.d.ts +1 -1
- package/dist-lib/lib/versie.generated.js +1 -1
- package/package.json +1 -1
- package/sql/print-schema.sql +103 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutsPage.d.ts","sourceRoot":"","sources":["../../src/components/LayoutsPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LayoutsPage.d.ts","sourceRoot":"","sources":["../../src/components/LayoutsPage.tsx"],"names":[],"mappings":"AAkFA,wBAAgB,WAAW,CAAC,EAAE,OAAe,EAAE,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,+BAipB1E"}
|
|
@@ -10,7 +10,7 @@ import { supabase as moduleDb } from "../lib/supabaseClient.js";
|
|
|
10
10
|
import { maakStandaardLayout } from "../lib/useDocumentData.js";
|
|
11
11
|
import { ontbrekendeStandaarden, soortenZonderKeuze } from "../lib/klaarOmTePrinten.js";
|
|
12
12
|
import { documentTypeLabel as soortLabel } from "../lib/documentTypes.js";
|
|
13
|
-
import { dupliceerLayout, maakLayout, updateLayout, useLayouts, verwijderLayout, } from "../lib/useDocumentData.js";
|
|
13
|
+
import { dupliceerLayout, maakLayout, updateLayout, useLayouts, laatsteLayoutBeheerMelding, verwijderLayout, } from "../lib/useDocumentData.js";
|
|
14
14
|
import { LayoutPrinterSelect } from "./LayoutPrinterSelect.js";
|
|
15
15
|
import { DOCUMENT_TYPES, FLORIDAY_LAYOUT_TOELICHTING, PAPIERFORMATEN, documentTypeLabel, isFloridayLayout, } from "../lib/documentTypes.js";
|
|
16
16
|
import { DOCUMENT_PROFIELEN, documentProfiel, primaireProfielen, standaardConfig, } from "../lib/documentProfiles.js";
|
|
@@ -167,7 +167,7 @@ export function LayoutsPage({ ingebed = false } = {}) {
|
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
const Wrapper = ingebed ? "div" : "main";
|
|
170
|
-
return (_jsxs(Wrapper, { className: ingebed ? "space-y-6" : "p-6 space-y-6", children: [_jsxs("div", { className: "flex flex-wrap items-end justify-between gap-4", children: [!ingebed && (_jsxs("div", { children: [_jsx("h1", { className: "text-xl font-semibold", children: "Documentlayouts" }), _jsx("p", { className: "text-sm text-muted-foreground", children: "Ontwerp pakbonnen, facturen, etiketten en alle andere documenten." })] })), _jsx("div", { className: "ml-auto flex gap-2", children: _jsxs(Button, { onClick: () => setWizardOpen(true), children: [_jsx(Plus, { className: "mr-2 h-4 w-4" }), " Nieuwe layout"] }) })] }), ontbrekendeStandaarden(layouts).map((o) => (_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 rounded-md border border-destructive/40 bg-destructive/5 p-3 text-sm", children: [_jsxs("span", { children: ["Geen standaardlayout voor ", soortLabel(o.soort), " \u2013 maak deze standaard: ", _jsx("strong", { children: o.naam || "naamloos" })] }), _jsx(Button, { size: "sm", onClick: async () => {
|
|
170
|
+
return (_jsxs(Wrapper, { className: ingebed ? "space-y-6" : "p-6 space-y-6", children: [_jsxs("div", { className: "flex flex-wrap items-end justify-between gap-4", children: [!ingebed && (_jsxs("div", { children: [_jsx("h1", { className: "text-xl font-semibold", children: "Documentlayouts" }), _jsx("p", { className: "text-sm text-muted-foreground", children: "Ontwerp pakbonnen, facturen, etiketten en alle andere documenten." })] })), _jsx("div", { className: "ml-auto flex gap-2", children: _jsxs(Button, { onClick: () => setWizardOpen(true), children: [_jsx(Plus, { className: "mr-2 h-4 w-4" }), " Nieuwe layout"] }) })] }), !loading && laatsteLayoutBeheerMelding() && (_jsxs("details", { className: "rounded-md border border-border bg-muted/40 px-3 py-2 text-xs text-muted-foreground", children: [_jsx("summary", { className: "cursor-pointer", children: "Details voor beheer" }), _jsx("p", { className: "mt-2", children: laatsteLayoutBeheerMelding() })] })), ontbrekendeStandaarden(layouts).map((o) => (_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 rounded-md border border-destructive/40 bg-destructive/5 p-3 text-sm", children: [_jsxs("span", { children: ["Geen standaardlayout voor ", soortLabel(o.soort), " \u2013 maak deze standaard: ", _jsx("strong", { children: o.naam || "naamloos" })] }), _jsx(Button, { size: "sm", onClick: async () => {
|
|
171
171
|
try {
|
|
172
172
|
await maakStandaardLayout(o.layoutId);
|
|
173
173
|
toast.success(`${o.naam || "Layout"} is nu de standaard voor ${soortLabel(o.soort)}`);
|
|
@@ -14188,6 +14188,7 @@ export type Database = {
|
|
|
14188
14188
|
bron_id: string;
|
|
14189
14189
|
cart_id: string | null;
|
|
14190
14190
|
created_at: string;
|
|
14191
|
+
eigen_sticker_id: string | null;
|
|
14191
14192
|
fulfillment_order_id: string | null;
|
|
14192
14193
|
handled_at: string | null;
|
|
14193
14194
|
handled_error: string | null;
|
|
@@ -14214,6 +14215,7 @@ export type Database = {
|
|
|
14214
14215
|
bron_id: string;
|
|
14215
14216
|
cart_id?: string | null;
|
|
14216
14217
|
created_at?: string;
|
|
14218
|
+
eigen_sticker_id?: string | null;
|
|
14217
14219
|
fulfillment_order_id?: string | null;
|
|
14218
14220
|
handled_at?: string | null;
|
|
14219
14221
|
handled_error?: string | null;
|
|
@@ -14240,6 +14242,7 @@ export type Database = {
|
|
|
14240
14242
|
bron_id?: string;
|
|
14241
14243
|
cart_id?: string | null;
|
|
14242
14244
|
created_at?: string;
|
|
14245
|
+
eigen_sticker_id?: string | null;
|
|
14243
14246
|
fulfillment_order_id?: string | null;
|
|
14244
14247
|
handled_at?: string | null;
|
|
14245
14248
|
handled_error?: string | null;
|
|
@@ -24640,6 +24643,10 @@ export type Database = {
|
|
|
24640
24643
|
superseded_at: string | null;
|
|
24641
24644
|
updated_at: string;
|
|
24642
24645
|
user_id: string;
|
|
24646
|
+
write_enabled: boolean;
|
|
24647
|
+
write_enabled_at: string | null;
|
|
24648
|
+
write_enabled_by: string | null;
|
|
24649
|
+
write_enabled_reason: string | null;
|
|
24643
24650
|
};
|
|
24644
24651
|
Insert: {
|
|
24645
24652
|
account_key?: string | null;
|
|
@@ -24666,6 +24673,10 @@ export type Database = {
|
|
|
24666
24673
|
superseded_at?: string | null;
|
|
24667
24674
|
updated_at?: string;
|
|
24668
24675
|
user_id: string;
|
|
24676
|
+
write_enabled?: boolean;
|
|
24677
|
+
write_enabled_at?: string | null;
|
|
24678
|
+
write_enabled_by?: string | null;
|
|
24679
|
+
write_enabled_reason?: string | null;
|
|
24669
24680
|
};
|
|
24670
24681
|
Update: {
|
|
24671
24682
|
account_key?: string | null;
|
|
@@ -24692,6 +24703,10 @@ export type Database = {
|
|
|
24692
24703
|
superseded_at?: string | null;
|
|
24693
24704
|
updated_at?: string;
|
|
24694
24705
|
user_id?: string;
|
|
24706
|
+
write_enabled?: boolean;
|
|
24707
|
+
write_enabled_at?: string | null;
|
|
24708
|
+
write_enabled_by?: string | null;
|
|
24709
|
+
write_enabled_reason?: string | null;
|
|
24695
24710
|
};
|
|
24696
24711
|
Relationships: [];
|
|
24697
24712
|
};
|
|
@@ -25580,6 +25595,21 @@ export type Database = {
|
|
|
25580
25595
|
};
|
|
25581
25596
|
Relationships: [];
|
|
25582
25597
|
};
|
|
25598
|
+
twinfield_schema_upgrades: {
|
|
25599
|
+
Row: {
|
|
25600
|
+
applied_at: string;
|
|
25601
|
+
key: string;
|
|
25602
|
+
};
|
|
25603
|
+
Insert: {
|
|
25604
|
+
applied_at?: string;
|
|
25605
|
+
key: string;
|
|
25606
|
+
};
|
|
25607
|
+
Update: {
|
|
25608
|
+
applied_at?: string;
|
|
25609
|
+
key?: string;
|
|
25610
|
+
};
|
|
25611
|
+
Relationships: [];
|
|
25612
|
+
};
|
|
25583
25613
|
twinfield_session_cache: {
|
|
25584
25614
|
Row: {
|
|
25585
25615
|
cluster: string;
|
|
@@ -31871,10 +31901,29 @@ export type Database = {
|
|
|
31871
31901
|
};
|
|
31872
31902
|
Returns: boolean;
|
|
31873
31903
|
};
|
|
31904
|
+
klanten_auto_promote_status: {
|
|
31905
|
+
Args: never;
|
|
31906
|
+
Returns: Json;
|
|
31907
|
+
};
|
|
31874
31908
|
klanten_install_check: {
|
|
31875
31909
|
Args: never;
|
|
31876
31910
|
Returns: Json;
|
|
31877
31911
|
};
|
|
31912
|
+
klanten_promote_round: {
|
|
31913
|
+
Args: never;
|
|
31914
|
+
Returns: Json;
|
|
31915
|
+
};
|
|
31916
|
+
klanten_refresh_grouped_if_stale: {
|
|
31917
|
+
Args: never;
|
|
31918
|
+
Returns: boolean;
|
|
31919
|
+
};
|
|
31920
|
+
klanten_set_auto_promote: {
|
|
31921
|
+
Args: {
|
|
31922
|
+
p_kind: string;
|
|
31923
|
+
p_on: boolean;
|
|
31924
|
+
};
|
|
31925
|
+
Returns: Json;
|
|
31926
|
+
};
|
|
31878
31927
|
layout_print_document: {
|
|
31879
31928
|
Args: {
|
|
31880
31929
|
_documentnaam: string;
|
|
@@ -31926,6 +31975,13 @@ export type Database = {
|
|
|
31926
31975
|
Args: never;
|
|
31927
31976
|
Returns: Json;
|
|
31928
31977
|
};
|
|
31978
|
+
layout_voor_document: {
|
|
31979
|
+
Args: {
|
|
31980
|
+
p_documenttype: string;
|
|
31981
|
+
p_order_id: string;
|
|
31982
|
+
};
|
|
31983
|
+
Returns: Json;
|
|
31984
|
+
};
|
|
31929
31985
|
layout_zorg_systeemlayouts: {
|
|
31930
31986
|
Args: never;
|
|
31931
31987
|
Returns: number;
|
|
@@ -33020,6 +33076,13 @@ export type Database = {
|
|
|
33020
33076
|
};
|
|
33021
33077
|
Returns: Json;
|
|
33022
33078
|
};
|
|
33079
|
+
logistics_document_for_order: {
|
|
33080
|
+
Args: {
|
|
33081
|
+
p_documenttype: string;
|
|
33082
|
+
p_order_id: string;
|
|
33083
|
+
};
|
|
33084
|
+
Returns: Json;
|
|
33085
|
+
};
|
|
33023
33086
|
logistics_document_layout: {
|
|
33024
33087
|
Args: {
|
|
33025
33088
|
_document_code: string;
|
|
@@ -33033,6 +33096,10 @@ export type Database = {
|
|
|
33033
33096
|
};
|
|
33034
33097
|
Returns: Json;
|
|
33035
33098
|
};
|
|
33099
|
+
logistics_document_selection_status: {
|
|
33100
|
+
Args: never;
|
|
33101
|
+
Returns: Json;
|
|
33102
|
+
};
|
|
33036
33103
|
logistics_document_station: {
|
|
33037
33104
|
Args: {
|
|
33038
33105
|
_document_code: string;
|
|
@@ -33851,6 +33918,21 @@ export type Database = {
|
|
|
33851
33918
|
Args: never;
|
|
33852
33919
|
Returns: Json;
|
|
33853
33920
|
};
|
|
33921
|
+
logistics_own_sticker_count: {
|
|
33922
|
+
Args: {
|
|
33923
|
+
p_ppc_product: number;
|
|
33924
|
+
p_ppc_regel: number;
|
|
33925
|
+
p_quantity: number;
|
|
33926
|
+
p_unit: string;
|
|
33927
|
+
};
|
|
33928
|
+
Returns: number;
|
|
33929
|
+
};
|
|
33930
|
+
logistics_own_sticker_sync: {
|
|
33931
|
+
Args: {
|
|
33932
|
+
p_limit?: number;
|
|
33933
|
+
};
|
|
33934
|
+
Returns: Json;
|
|
33935
|
+
};
|
|
33854
33936
|
logistics_own_transport_departure: {
|
|
33855
33937
|
Args: {
|
|
33856
33938
|
p_delivery_date: string;
|
|
@@ -36237,6 +36319,13 @@ export type Database = {
|
|
|
36237
36319
|
};
|
|
36238
36320
|
Returns: Json;
|
|
36239
36321
|
};
|
|
36322
|
+
pickstation_document_for_order: {
|
|
36323
|
+
Args: {
|
|
36324
|
+
p_queue_item_id: string;
|
|
36325
|
+
p_slug: string;
|
|
36326
|
+
};
|
|
36327
|
+
Returns: Json;
|
|
36328
|
+
};
|
|
36240
36329
|
pickstation_get_orders_raw: {
|
|
36241
36330
|
Args: never;
|
|
36242
36331
|
Returns: Json;
|
|
@@ -37896,6 +37985,12 @@ export type Database = {
|
|
|
37896
37985
|
};
|
|
37897
37986
|
Returns: boolean;
|
|
37898
37987
|
};
|
|
37988
|
+
twinfield_cancel_queue_item: {
|
|
37989
|
+
Args: {
|
|
37990
|
+
p_id: string;
|
|
37991
|
+
};
|
|
37992
|
+
Returns: boolean;
|
|
37993
|
+
};
|
|
37899
37994
|
twinfield_connection_offices: {
|
|
37900
37995
|
Args: never;
|
|
37901
37996
|
Returns: {
|
|
@@ -37925,6 +38020,19 @@ export type Database = {
|
|
|
37925
38020
|
};
|
|
37926
38021
|
Returns: Json;
|
|
37927
38022
|
};
|
|
38023
|
+
twinfield_gated_queue: {
|
|
38024
|
+
Args: {
|
|
38025
|
+
p_connection_id: string;
|
|
38026
|
+
};
|
|
38027
|
+
Returns: {
|
|
38028
|
+
action: string;
|
|
38029
|
+
created_at: string;
|
|
38030
|
+
customer_id: string;
|
|
38031
|
+
id: string;
|
|
38032
|
+
payload: Json;
|
|
38033
|
+
status: string;
|
|
38034
|
+
}[];
|
|
38035
|
+
};
|
|
37928
38036
|
twinfield_handle_administration_change: {
|
|
37929
38037
|
Args: {
|
|
37930
38038
|
_administration_code: string;
|
|
@@ -37932,6 +38040,10 @@ export type Database = {
|
|
|
37932
38040
|
};
|
|
37933
38041
|
Returns: undefined;
|
|
37934
38042
|
};
|
|
38043
|
+
twinfield_is_admin: {
|
|
38044
|
+
Args: never;
|
|
38045
|
+
Returns: boolean;
|
|
38046
|
+
};
|
|
37935
38047
|
twinfield_prune_push_queue: {
|
|
37936
38048
|
Args: never;
|
|
37937
38049
|
Returns: number;
|
|
@@ -37943,6 +38055,13 @@ export type Database = {
|
|
|
37943
38055
|
};
|
|
37944
38056
|
Returns: Json;
|
|
37945
38057
|
};
|
|
38058
|
+
twinfield_set_write_enabled: {
|
|
38059
|
+
Args: {
|
|
38060
|
+
p_connection_id: string;
|
|
38061
|
+
p_enabled: boolean;
|
|
38062
|
+
};
|
|
38063
|
+
Returns: Json;
|
|
38064
|
+
};
|
|
37946
38065
|
twinfield_sync_apply: {
|
|
37947
38066
|
Args: {
|
|
37948
38067
|
_base: Json;
|
|
@@ -37979,6 +38098,12 @@ export type Database = {
|
|
|
37979
38098
|
};
|
|
37980
38099
|
Returns: Json;
|
|
37981
38100
|
};
|
|
38101
|
+
twinfield_write_allowed: {
|
|
38102
|
+
Args: {
|
|
38103
|
+
p_connection_id: string;
|
|
38104
|
+
};
|
|
38105
|
+
Returns: boolean;
|
|
38106
|
+
};
|
|
37982
38107
|
upsert_auto_fulfillment_log: {
|
|
37983
38108
|
Args: {
|
|
37984
38109
|
p_connection_id: string;
|
|
@@ -38524,6 +38649,15 @@ export type Database = {
|
|
|
38524
38649
|
};
|
|
38525
38650
|
Returns: Json;
|
|
38526
38651
|
};
|
|
38652
|
+
voorraad_alert_floriday_not_updated: {
|
|
38653
|
+
Args: {
|
|
38654
|
+
p_key: string;
|
|
38655
|
+
p_order_id: string;
|
|
38656
|
+
p_order_item_id: string;
|
|
38657
|
+
p_qty: number;
|
|
38658
|
+
};
|
|
38659
|
+
Returns: undefined;
|
|
38660
|
+
};
|
|
38527
38661
|
voorraad_can_write: {
|
|
38528
38662
|
Args: never;
|
|
38529
38663
|
Returns: boolean;
|
|
@@ -38546,6 +38680,12 @@ export type Database = {
|
|
|
38546
38680
|
};
|
|
38547
38681
|
Returns: string[];
|
|
38548
38682
|
};
|
|
38683
|
+
voorraad_floriday_leads_key: {
|
|
38684
|
+
Args: {
|
|
38685
|
+
p_key: string;
|
|
38686
|
+
};
|
|
38687
|
+
Returns: boolean;
|
|
38688
|
+
};
|
|
38549
38689
|
voorraad_hook_base_url: {
|
|
38550
38690
|
Args: never;
|
|
38551
38691
|
Returns: string;
|
|
@@ -38563,6 +38703,12 @@ export type Database = {
|
|
|
38563
38703
|
};
|
|
38564
38704
|
Returns: undefined;
|
|
38565
38705
|
};
|
|
38706
|
+
voorraad_mark_floriday_sold_before_switch: {
|
|
38707
|
+
Args: {
|
|
38708
|
+
p_product_id: string;
|
|
38709
|
+
};
|
|
38710
|
+
Returns: number;
|
|
38711
|
+
};
|
|
38566
38712
|
voorraad_production_enabled: {
|
|
38567
38713
|
Args: never;
|
|
38568
38714
|
Returns: boolean;
|