@flowselections/logistiek-engine 1.0.94 → 1.0.99
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/MisluktVerzendbrievenCard.d.ts +2 -0
- package/dist-lib/components/MisluktVerzendbrievenCard.d.ts.map +1 -0
- package/dist-lib/components/MisluktVerzendbrievenCard.js +50 -0
- package/dist-lib/components/RegiePage.d.ts.map +1 -1
- package/dist-lib/components/RegiePage.js +2 -1
- package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
- package/dist-lib/components/RuleEnginePage.js +3 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +59 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +59 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/moduleClient.d.ts +59 -0
- package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +59 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cartCoverage.functions.d.ts +59 -0
- package/dist-lib/lib/cartCoverage.functions.d.ts.map +1 -1
- package/dist-lib/lib/controlScan.server.d.ts +2 -0
- package/dist-lib/lib/controlScan.server.d.ts.map +1 -1
- package/dist-lib/lib/controlScan.server.js +59 -53
- package/dist-lib/lib/expandGroups.test.d.ts +2 -0
- package/dist-lib/lib/expandGroups.test.d.ts.map +1 -0
- package/dist-lib/lib/expandGroups.test.js +80 -0
- package/dist-lib/lib/floridayDocuments.functions.d.ts +177 -0
- package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayPush.functions.d.ts +59 -0
- package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
- package/dist-lib/lib/layoutPrint.server.d.ts +27 -0
- package/dist-lib/lib/layoutPrint.server.d.ts.map +1 -0
- package/dist-lib/lib/layoutPrint.server.js +48 -0
- package/dist-lib/lib/layoutPrint.test.d.ts +2 -0
- package/dist-lib/lib/layoutPrint.test.d.ts.map +1 -0
- package/dist-lib/lib/layoutPrint.test.js +47 -0
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +295 -0
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanning.server.js +72 -8
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +118 -0
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts +59 -0
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
- package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
- package/dist-lib/lib/modulePrompts.js +54 -0
- package/dist-lib/lib/moduleVersion.d.ts +2 -0
- package/dist-lib/lib/moduleVersion.d.ts.map +1 -0
- package/dist-lib/lib/moduleVersion.js +2 -0
- package/dist-lib/lib/plannerDiff.functions.d.ts +59 -0
- package/dist-lib/lib/plannerDiff.functions.d.ts.map +1 -1
- package/dist-lib/lib/shippingNoteQueue.server.d.ts.map +1 -1
- package/dist-lib/lib/shippingNoteQueue.server.js +40 -49
- package/package.json +2 -1
|
@@ -6,6 +6,8 @@ export interface ControlScanRun {
|
|
|
6
6
|
failed: number;
|
|
7
7
|
errors: string[];
|
|
8
8
|
}
|
|
9
|
+
/** Maximaal aantal wachtrondes op Floriday voordat de controle als mislukt stopt. */
|
|
10
|
+
export declare const CONTROL_SCAN_MAX_ATTEMPTS = 60;
|
|
9
11
|
export declare function runControlScanQueue(sb: SupabaseClient, options?: {
|
|
10
12
|
limit?: number;
|
|
11
13
|
}): Promise<ControlScanRun>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controlScan.server.d.ts","sourceRoot":"","sources":["../../src/lib/controlScan.server.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"controlScan.server.d.ts","sourceRoot":"","sources":["../../src/lib/controlScan.server.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5D,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAcD,qFAAqF;AACrF,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAwC5C,wBAAsB,mBAAmB,CACvC,EAAE,EAAE,cAAc,EAClB,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/B,OAAO,CAAC,cAAc,CAAC,CAmKzB"}
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
// en dubbele scans worden al in de database geblokkeerd. Geen omgevings- of
|
|
15
15
|
// klantwaarden in deze code; de printer komt uit de werkwijze in de database.
|
|
16
16
|
// ============================================================================
|
|
17
|
+
import { printViaLayout } from "./layoutPrint.server.js";
|
|
18
|
+
/** Maximaal aantal wachtrondes op Floriday voordat de controle als mislukt stopt. */
|
|
19
|
+
export const CONTROL_SCAN_MAX_ATTEMPTS = 60;
|
|
17
20
|
function pickPdf(result) {
|
|
18
21
|
const base64 = result["pdfBase64"] ??
|
|
19
22
|
result["base64"] ??
|
|
@@ -25,12 +28,28 @@ function pickPdf(result) {
|
|
|
25
28
|
null;
|
|
26
29
|
return { base64: base64 ?? null, url: url ?? null };
|
|
27
30
|
}
|
|
28
|
-
/**
|
|
29
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Laat de controle wachten op Floriday. Pogingen blijven meetellen; na het
|
|
33
|
+
* maximum eindigt de controle als mislukt in plaats van eeuwig te wachten.
|
|
34
|
+
* Geeft true terug als de controle nu terminaal is afgesloten.
|
|
35
|
+
*/
|
|
36
|
+
async function keepWaiting(sb, row) {
|
|
37
|
+
const attempts = Number(row.attempts ?? 0);
|
|
38
|
+
if (attempts >= CONTROL_SCAN_MAX_ATTEMPTS) {
|
|
39
|
+
await sb.rpc("logistics_control_scan_finish", {
|
|
40
|
+
_id: row.id,
|
|
41
|
+
_ok: false,
|
|
42
|
+
_status: "mislukt",
|
|
43
|
+
_error_code: "wachtlimiet",
|
|
44
|
+
_error: `Na ${attempts} pogingen kende Floriday deze order nog steeds niet; de controle is gestopt. Controleer de order in Floriday en scan opnieuw.`,
|
|
45
|
+
});
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
30
48
|
await sb
|
|
31
49
|
.from("logistics_control_scan")
|
|
32
|
-
.update({ locked_until: null,
|
|
33
|
-
.eq("id", id);
|
|
50
|
+
.update({ locked_until: null, updated_at: new Date().toISOString() })
|
|
51
|
+
.eq("id", row.id);
|
|
52
|
+
return false;
|
|
34
53
|
}
|
|
35
54
|
export async function runControlScanQueue(sb, options = {}) {
|
|
36
55
|
const run = { claimed: 0, printed: 0, waiting: 0, failed: 0, errors: [] };
|
|
@@ -88,8 +107,10 @@ export async function runControlScanQueue(sb, options = {}) {
|
|
|
88
107
|
continue;
|
|
89
108
|
}
|
|
90
109
|
if (!fulfillmentOrderId) {
|
|
91
|
-
await keepWaiting(sb, row
|
|
92
|
-
|
|
110
|
+
if (await keepWaiting(sb, row))
|
|
111
|
+
run.failed++;
|
|
112
|
+
else
|
|
113
|
+
run.waiting++;
|
|
93
114
|
continue;
|
|
94
115
|
}
|
|
95
116
|
const doc = (await getFlorydayDocument(sb, {
|
|
@@ -122,54 +143,39 @@ export async function runControlScanQueue(sb, options = {}) {
|
|
|
122
143
|
run.failed++;
|
|
123
144
|
continue;
|
|
124
145
|
}
|
|
125
|
-
//
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
})
|
|
157
|
-
.select("id")
|
|
158
|
-
.maybeSingle();
|
|
159
|
-
if (jobError) {
|
|
160
|
-
await sb.rpc("logistics_control_scan_finish", {
|
|
161
|
-
_id: row.id,
|
|
162
|
-
_ok: false,
|
|
163
|
-
_status: "mislukt",
|
|
164
|
-
_fulfillment_order_id: fulfillmentOrderId,
|
|
165
|
-
_error_code: "printjob",
|
|
166
|
-
_error: `De afleverbrief kon niet worden klaargezet om te printen: ${jobError.message}`,
|
|
167
|
-
});
|
|
168
|
-
run.failed++;
|
|
169
|
-
continue;
|
|
170
|
-
}
|
|
171
|
-
jobId = job?.["id"] ?? null;
|
|
146
|
+
// Via de Layout maker; idempotent per controle.
|
|
147
|
+
const printed = await printViaLayout(sb, {
|
|
148
|
+
documenttype: "afleverbrief",
|
|
149
|
+
documentnaam: `Afleverbrief ${row.order_number}`,
|
|
150
|
+
pdfBase64: base64,
|
|
151
|
+
pdfUrl: url,
|
|
152
|
+
printPlekId: null,
|
|
153
|
+
herkomst: "floriday",
|
|
154
|
+
idempotentieSleutel: `controle-scan:${row.id}`,
|
|
155
|
+
payload: {
|
|
156
|
+
source: "controle_scan",
|
|
157
|
+
is_floriday: true,
|
|
158
|
+
order_id: row.order_id,
|
|
159
|
+
ordernummer: row.order_number,
|
|
160
|
+
order_number: row.order_number,
|
|
161
|
+
cart_id: row.cart_id,
|
|
162
|
+
fulfillment_order_id: fulfillmentOrderId,
|
|
163
|
+
control_scan_id: row.id,
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
if (!printed.ok) {
|
|
167
|
+
await sb.rpc("logistics_control_scan_finish", {
|
|
168
|
+
_id: row.id,
|
|
169
|
+
_ok: false,
|
|
170
|
+
_status: "mislukt",
|
|
171
|
+
_fulfillment_order_id: fulfillmentOrderId,
|
|
172
|
+
_error_code: printed.errorCode.toLowerCase(),
|
|
173
|
+
_error: printed.error,
|
|
174
|
+
});
|
|
175
|
+
run.failed++;
|
|
176
|
+
continue;
|
|
172
177
|
}
|
|
178
|
+
const jobId = printed.jobId;
|
|
173
179
|
await sb.rpc("logistics_control_scan_finish", {
|
|
174
180
|
_id: row.id,
|
|
175
181
|
_ok: true,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expandGroups.test.d.ts","sourceRoot":"","sources":["../../src/lib/expandGroups.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { expandOrderItemsForPlanner } from "./loadCarrierPlanning.server";
|
|
3
|
+
function stub(tables) {
|
|
4
|
+
return {
|
|
5
|
+
from(table) {
|
|
6
|
+
let rows = [...(tables[table] ?? [])];
|
|
7
|
+
const b = {
|
|
8
|
+
select: () => b,
|
|
9
|
+
order: () => b,
|
|
10
|
+
in: (col, vals) => {
|
|
11
|
+
rows = rows.filter((r) => vals.includes(r[col]));
|
|
12
|
+
return b;
|
|
13
|
+
},
|
|
14
|
+
eq: (col, v) => {
|
|
15
|
+
rows = rows.filter((r) => r[col] === v);
|
|
16
|
+
return b;
|
|
17
|
+
},
|
|
18
|
+
or: (expr) => {
|
|
19
|
+
const conds = expr.split(",").map((c) => {
|
|
20
|
+
const [col, , ...rest] = c.split(".");
|
|
21
|
+
return [col, rest.join(".")];
|
|
22
|
+
});
|
|
23
|
+
rows = rows.filter((r) => conds.some(([col, v]) => String(r[col]) === v));
|
|
24
|
+
return b;
|
|
25
|
+
},
|
|
26
|
+
then: (res) => res({ data: rows }),
|
|
27
|
+
};
|
|
28
|
+
return b;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const GERBERA = "11111111-1111-4111-8111-111111111111";
|
|
33
|
+
const GROUP = "22222222-2222-4222-8222-222222222222";
|
|
34
|
+
const KOPIE = "33333333-3333-4333-8333-333333333333";
|
|
35
|
+
const ONBEKEND = "44444444-4444-4444-8444-444444444444";
|
|
36
|
+
const products = [
|
|
37
|
+
{ id: GERBERA, product: "Gerbera Red Naomi #9", floriday_trade_item_id: GERBERA, plants_per_crate: 20, crates_per_layer: 8, layers_per_cart: 12 },
|
|
38
|
+
{ id: KOPIE, product: "Flow Selections plant (kopie)", floriday_trade_item_id: KOPIE, plants_per_crate: 6, crates_per_layer: 6, layers_per_cart: 6 },
|
|
39
|
+
];
|
|
40
|
+
describe("expandOrderItemsForPlanner — productgroepen", () => {
|
|
41
|
+
it("gekoppeld artikel gaat voor een productgroep met dezelfde naam", async () => {
|
|
42
|
+
const sb = stub({
|
|
43
|
+
products,
|
|
44
|
+
product_groups: [{ id: GROUP, name: "Gerbera Red Naomi #9" }],
|
|
45
|
+
product_group_items: [{ product_group_id: GROUP, trade_item_id: KOPIE, quantity: 1, sort_order: 0 }],
|
|
46
|
+
});
|
|
47
|
+
const out = await expandOrderItemsForPlanner(sb, [
|
|
48
|
+
{
|
|
49
|
+
id: "regel-1",
|
|
50
|
+
order_id: "o1",
|
|
51
|
+
product_id: GERBERA,
|
|
52
|
+
product_name: "Gerbera Red Naomi #9",
|
|
53
|
+
quantity: 240,
|
|
54
|
+
products: products[0],
|
|
55
|
+
},
|
|
56
|
+
]);
|
|
57
|
+
expect(out).toHaveLength(1);
|
|
58
|
+
expect(out[0].product_id).toBe(GERBERA);
|
|
59
|
+
expect(out[0].product_name).toBe("Gerbera Red Naomi #9");
|
|
60
|
+
expect(out[0].plants).toBe(240);
|
|
61
|
+
});
|
|
62
|
+
it("onbekend groepslid krijgt geen id als naam en blokkeert", async () => {
|
|
63
|
+
const sources = new Map();
|
|
64
|
+
const sb = stub({
|
|
65
|
+
products,
|
|
66
|
+
product_groups: [{ id: GROUP, name: "Mix" }],
|
|
67
|
+
product_group_items: [
|
|
68
|
+
{ product_group_id: GROUP, trade_item_id: ONBEKEND, quantity: 1, sort_order: 0 },
|
|
69
|
+
{ product_group_id: GROUP, trade_item_id: KOPIE, quantity: 1, sort_order: 1 },
|
|
70
|
+
],
|
|
71
|
+
});
|
|
72
|
+
const out = await expandOrderItemsForPlanner(sb, [{ id: "regel-2", order_id: "o1", product_id: GROUP, product_name: "Mix", quantity: 12 }], { sources: sources });
|
|
73
|
+
for (const i of out)
|
|
74
|
+
expect(i.product_name).not.toContain(ONBEKEND);
|
|
75
|
+
const onbekend = out.find((i) => i.order_item_id === `regel-2::${ONBEKEND}`);
|
|
76
|
+
expect(onbekend?.product_id ?? null).toBeNull();
|
|
77
|
+
expect(onbekend?.product_name).toBe("Mix — onbekend groepslid");
|
|
78
|
+
expect(sources.get(`regel-2::${ONBEKEND}`)).toBe("geen");
|
|
79
|
+
});
|
|
80
|
+
});
|
|
@@ -16107,18 +16107,24 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
16107
16107
|
Row: {
|
|
16108
16108
|
id: boolean;
|
|
16109
16109
|
last_cleanup_at: string | null;
|
|
16110
|
+
last_error: string | null;
|
|
16111
|
+
last_error_at: string | null;
|
|
16110
16112
|
last_sync_at: string | null;
|
|
16111
16113
|
updated_at: string;
|
|
16112
16114
|
};
|
|
16113
16115
|
Insert: {
|
|
16114
16116
|
id?: boolean;
|
|
16115
16117
|
last_cleanup_at?: string | null;
|
|
16118
|
+
last_error?: string | null;
|
|
16119
|
+
last_error_at?: string | null;
|
|
16116
16120
|
last_sync_at?: string | null;
|
|
16117
16121
|
updated_at?: string;
|
|
16118
16122
|
};
|
|
16119
16123
|
Update: {
|
|
16120
16124
|
id?: boolean;
|
|
16121
16125
|
last_cleanup_at?: string | null;
|
|
16126
|
+
last_error?: string | null;
|
|
16127
|
+
last_error_at?: string | null;
|
|
16122
16128
|
last_sync_at?: string | null;
|
|
16123
16129
|
updated_at?: string;
|
|
16124
16130
|
};
|
|
@@ -26392,6 +26398,27 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
26392
26398
|
};
|
|
26393
26399
|
Returns: boolean;
|
|
26394
26400
|
};
|
|
26401
|
+
layout_print_document: {
|
|
26402
|
+
Args: {
|
|
26403
|
+
_documentnaam: string;
|
|
26404
|
+
_documenttype: string;
|
|
26405
|
+
_herkomst?: string;
|
|
26406
|
+
_idempotentie_sleutel?: string;
|
|
26407
|
+
_is_herprint?: boolean;
|
|
26408
|
+
_kopieen?: number;
|
|
26409
|
+
_layout_id?: string;
|
|
26410
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
26411
|
+
_pdf_base64?: string;
|
|
26412
|
+
_pdf_url?: string;
|
|
26413
|
+
_print_plek_id?: string;
|
|
26414
|
+
_werkplek?: string;
|
|
26415
|
+
};
|
|
26416
|
+
Returns: {
|
|
26417
|
+
bestaand: boolean;
|
|
26418
|
+
job_id: string;
|
|
26419
|
+
printer_id: string;
|
|
26420
|
+
}[];
|
|
26421
|
+
};
|
|
26395
26422
|
list_medewerkers: {
|
|
26396
26423
|
Args: never;
|
|
26397
26424
|
Returns: {
|
|
@@ -27094,6 +27121,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
27094
27121
|
};
|
|
27095
27122
|
Returns: import("../integrations/supabase/types").Json;
|
|
27096
27123
|
};
|
|
27124
|
+
logistics_control_scan_print_own: {
|
|
27125
|
+
Args: {
|
|
27126
|
+
p_is_herprint?: boolean;
|
|
27127
|
+
p_scan_id: string;
|
|
27128
|
+
};
|
|
27129
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
27130
|
+
};
|
|
27097
27131
|
logistics_control_scan_retry: {
|
|
27098
27132
|
Args: {
|
|
27099
27133
|
_id: string;
|
|
@@ -27998,6 +28032,21 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
27998
28032
|
};
|
|
27999
28033
|
Returns: import("../integrations/supabase/types").Json;
|
|
28000
28034
|
};
|
|
28035
|
+
logistics_print_via_layout: {
|
|
28036
|
+
Args: {
|
|
28037
|
+
_documentnaam: string;
|
|
28038
|
+
_documenttype: string;
|
|
28039
|
+
_herkomst: string;
|
|
28040
|
+
_idempotentie_sleutel: string;
|
|
28041
|
+
_is_herprint: boolean;
|
|
28042
|
+
_layout_id: string;
|
|
28043
|
+
_payload: import("../integrations/supabase/types").Json;
|
|
28044
|
+
_pdf_base64: string;
|
|
28045
|
+
_pdf_url: string;
|
|
28046
|
+
_print_plek_id: string;
|
|
28047
|
+
};
|
|
28048
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
28049
|
+
};
|
|
28001
28050
|
logistics_prune_buffer_member_queue: {
|
|
28002
28051
|
Args: never;
|
|
28003
28052
|
Returns: number;
|
|
@@ -28353,6 +28402,12 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
28353
28402
|
};
|
|
28354
28403
|
Returns: undefined;
|
|
28355
28404
|
};
|
|
28405
|
+
logistics_slip_note_retry: {
|
|
28406
|
+
Args: {
|
|
28407
|
+
_id: string;
|
|
28408
|
+
};
|
|
28409
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
28410
|
+
};
|
|
28356
28411
|
logistics_sticker_follows_slip: {
|
|
28357
28412
|
Args: never;
|
|
28358
28413
|
Returns: boolean;
|
|
@@ -29097,6 +29152,10 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
|
|
|
29097
29152
|
};
|
|
29098
29153
|
Returns: string;
|
|
29099
29154
|
};
|
|
29155
|
+
pick_is_reference_admin: {
|
|
29156
|
+
Args: never;
|
|
29157
|
+
Returns: boolean;
|
|
29158
|
+
};
|
|
29100
29159
|
pick_mark_printed: {
|
|
29101
29160
|
Args: {
|
|
29102
29161
|
_queue_item_id: string;
|
|
@@ -47264,18 +47323,24 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
47264
47323
|
Row: {
|
|
47265
47324
|
id: boolean;
|
|
47266
47325
|
last_cleanup_at: string | null;
|
|
47326
|
+
last_error: string | null;
|
|
47327
|
+
last_error_at: string | null;
|
|
47267
47328
|
last_sync_at: string | null;
|
|
47268
47329
|
updated_at: string;
|
|
47269
47330
|
};
|
|
47270
47331
|
Insert: {
|
|
47271
47332
|
id?: boolean;
|
|
47272
47333
|
last_cleanup_at?: string | null;
|
|
47334
|
+
last_error?: string | null;
|
|
47335
|
+
last_error_at?: string | null;
|
|
47273
47336
|
last_sync_at?: string | null;
|
|
47274
47337
|
updated_at?: string;
|
|
47275
47338
|
};
|
|
47276
47339
|
Update: {
|
|
47277
47340
|
id?: boolean;
|
|
47278
47341
|
last_cleanup_at?: string | null;
|
|
47342
|
+
last_error?: string | null;
|
|
47343
|
+
last_error_at?: string | null;
|
|
47279
47344
|
last_sync_at?: string | null;
|
|
47280
47345
|
updated_at?: string;
|
|
47281
47346
|
};
|
|
@@ -57549,6 +57614,27 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
57549
57614
|
};
|
|
57550
57615
|
Returns: boolean;
|
|
57551
57616
|
};
|
|
57617
|
+
layout_print_document: {
|
|
57618
|
+
Args: {
|
|
57619
|
+
_documentnaam: string;
|
|
57620
|
+
_documenttype: string;
|
|
57621
|
+
_herkomst?: string;
|
|
57622
|
+
_idempotentie_sleutel?: string;
|
|
57623
|
+
_is_herprint?: boolean;
|
|
57624
|
+
_kopieen?: number;
|
|
57625
|
+
_layout_id?: string;
|
|
57626
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
57627
|
+
_pdf_base64?: string;
|
|
57628
|
+
_pdf_url?: string;
|
|
57629
|
+
_print_plek_id?: string;
|
|
57630
|
+
_werkplek?: string;
|
|
57631
|
+
};
|
|
57632
|
+
Returns: {
|
|
57633
|
+
bestaand: boolean;
|
|
57634
|
+
job_id: string;
|
|
57635
|
+
printer_id: string;
|
|
57636
|
+
}[];
|
|
57637
|
+
};
|
|
57552
57638
|
list_medewerkers: {
|
|
57553
57639
|
Args: never;
|
|
57554
57640
|
Returns: {
|
|
@@ -58251,6 +58337,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
58251
58337
|
};
|
|
58252
58338
|
Returns: import("../integrations/supabase/types").Json;
|
|
58253
58339
|
};
|
|
58340
|
+
logistics_control_scan_print_own: {
|
|
58341
|
+
Args: {
|
|
58342
|
+
p_is_herprint?: boolean;
|
|
58343
|
+
p_scan_id: string;
|
|
58344
|
+
};
|
|
58345
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
58346
|
+
};
|
|
58254
58347
|
logistics_control_scan_retry: {
|
|
58255
58348
|
Args: {
|
|
58256
58349
|
_id: string;
|
|
@@ -59155,6 +59248,21 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
59155
59248
|
};
|
|
59156
59249
|
Returns: import("../integrations/supabase/types").Json;
|
|
59157
59250
|
};
|
|
59251
|
+
logistics_print_via_layout: {
|
|
59252
|
+
Args: {
|
|
59253
|
+
_documentnaam: string;
|
|
59254
|
+
_documenttype: string;
|
|
59255
|
+
_herkomst: string;
|
|
59256
|
+
_idempotentie_sleutel: string;
|
|
59257
|
+
_is_herprint: boolean;
|
|
59258
|
+
_layout_id: string;
|
|
59259
|
+
_payload: import("../integrations/supabase/types").Json;
|
|
59260
|
+
_pdf_base64: string;
|
|
59261
|
+
_pdf_url: string;
|
|
59262
|
+
_print_plek_id: string;
|
|
59263
|
+
};
|
|
59264
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
59265
|
+
};
|
|
59158
59266
|
logistics_prune_buffer_member_queue: {
|
|
59159
59267
|
Args: never;
|
|
59160
59268
|
Returns: number;
|
|
@@ -59510,6 +59618,12 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
59510
59618
|
};
|
|
59511
59619
|
Returns: undefined;
|
|
59512
59620
|
};
|
|
59621
|
+
logistics_slip_note_retry: {
|
|
59622
|
+
Args: {
|
|
59623
|
+
_id: string;
|
|
59624
|
+
};
|
|
59625
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
59626
|
+
};
|
|
59513
59627
|
logistics_sticker_follows_slip: {
|
|
59514
59628
|
Args: never;
|
|
59515
59629
|
Returns: boolean;
|
|
@@ -60254,6 +60368,10 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
|
|
|
60254
60368
|
};
|
|
60255
60369
|
Returns: string;
|
|
60256
60370
|
};
|
|
60371
|
+
pick_is_reference_admin: {
|
|
60372
|
+
Args: never;
|
|
60373
|
+
Returns: boolean;
|
|
60374
|
+
};
|
|
60257
60375
|
pick_mark_printed: {
|
|
60258
60376
|
Args: {
|
|
60259
60377
|
_queue_item_id: string;
|
|
@@ -78454,18 +78572,24 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
78454
78572
|
Row: {
|
|
78455
78573
|
id: boolean;
|
|
78456
78574
|
last_cleanup_at: string | null;
|
|
78575
|
+
last_error: string | null;
|
|
78576
|
+
last_error_at: string | null;
|
|
78457
78577
|
last_sync_at: string | null;
|
|
78458
78578
|
updated_at: string;
|
|
78459
78579
|
};
|
|
78460
78580
|
Insert: {
|
|
78461
78581
|
id?: boolean;
|
|
78462
78582
|
last_cleanup_at?: string | null;
|
|
78583
|
+
last_error?: string | null;
|
|
78584
|
+
last_error_at?: string | null;
|
|
78463
78585
|
last_sync_at?: string | null;
|
|
78464
78586
|
updated_at?: string;
|
|
78465
78587
|
};
|
|
78466
78588
|
Update: {
|
|
78467
78589
|
id?: boolean;
|
|
78468
78590
|
last_cleanup_at?: string | null;
|
|
78591
|
+
last_error?: string | null;
|
|
78592
|
+
last_error_at?: string | null;
|
|
78469
78593
|
last_sync_at?: string | null;
|
|
78470
78594
|
updated_at?: string;
|
|
78471
78595
|
};
|
|
@@ -88739,6 +88863,27 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
88739
88863
|
};
|
|
88740
88864
|
Returns: boolean;
|
|
88741
88865
|
};
|
|
88866
|
+
layout_print_document: {
|
|
88867
|
+
Args: {
|
|
88868
|
+
_documentnaam: string;
|
|
88869
|
+
_documenttype: string;
|
|
88870
|
+
_herkomst?: string;
|
|
88871
|
+
_idempotentie_sleutel?: string;
|
|
88872
|
+
_is_herprint?: boolean;
|
|
88873
|
+
_kopieen?: number;
|
|
88874
|
+
_layout_id?: string;
|
|
88875
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
88876
|
+
_pdf_base64?: string;
|
|
88877
|
+
_pdf_url?: string;
|
|
88878
|
+
_print_plek_id?: string;
|
|
88879
|
+
_werkplek?: string;
|
|
88880
|
+
};
|
|
88881
|
+
Returns: {
|
|
88882
|
+
bestaand: boolean;
|
|
88883
|
+
job_id: string;
|
|
88884
|
+
printer_id: string;
|
|
88885
|
+
}[];
|
|
88886
|
+
};
|
|
88742
88887
|
list_medewerkers: {
|
|
88743
88888
|
Args: never;
|
|
88744
88889
|
Returns: {
|
|
@@ -89441,6 +89586,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
89441
89586
|
};
|
|
89442
89587
|
Returns: import("../integrations/supabase/types").Json;
|
|
89443
89588
|
};
|
|
89589
|
+
logistics_control_scan_print_own: {
|
|
89590
|
+
Args: {
|
|
89591
|
+
p_is_herprint?: boolean;
|
|
89592
|
+
p_scan_id: string;
|
|
89593
|
+
};
|
|
89594
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
89595
|
+
};
|
|
89444
89596
|
logistics_control_scan_retry: {
|
|
89445
89597
|
Args: {
|
|
89446
89598
|
_id: string;
|
|
@@ -90345,6 +90497,21 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
90345
90497
|
};
|
|
90346
90498
|
Returns: import("../integrations/supabase/types").Json;
|
|
90347
90499
|
};
|
|
90500
|
+
logistics_print_via_layout: {
|
|
90501
|
+
Args: {
|
|
90502
|
+
_documentnaam: string;
|
|
90503
|
+
_documenttype: string;
|
|
90504
|
+
_herkomst: string;
|
|
90505
|
+
_idempotentie_sleutel: string;
|
|
90506
|
+
_is_herprint: boolean;
|
|
90507
|
+
_layout_id: string;
|
|
90508
|
+
_payload: import("../integrations/supabase/types").Json;
|
|
90509
|
+
_pdf_base64: string;
|
|
90510
|
+
_pdf_url: string;
|
|
90511
|
+
_print_plek_id: string;
|
|
90512
|
+
};
|
|
90513
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
90514
|
+
};
|
|
90348
90515
|
logistics_prune_buffer_member_queue: {
|
|
90349
90516
|
Args: never;
|
|
90350
90517
|
Returns: number;
|
|
@@ -90700,6 +90867,12 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
90700
90867
|
};
|
|
90701
90868
|
Returns: undefined;
|
|
90702
90869
|
};
|
|
90870
|
+
logistics_slip_note_retry: {
|
|
90871
|
+
Args: {
|
|
90872
|
+
_id: string;
|
|
90873
|
+
};
|
|
90874
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
90875
|
+
};
|
|
90703
90876
|
logistics_sticker_follows_slip: {
|
|
90704
90877
|
Args: never;
|
|
90705
90878
|
Returns: boolean;
|
|
@@ -91444,6 +91617,10 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
|
|
|
91444
91617
|
};
|
|
91445
91618
|
Returns: string;
|
|
91446
91619
|
};
|
|
91620
|
+
pick_is_reference_admin: {
|
|
91621
|
+
Args: never;
|
|
91622
|
+
Returns: boolean;
|
|
91623
|
+
};
|
|
91447
91624
|
pick_mark_printed: {
|
|
91448
91625
|
Args: {
|
|
91449
91626
|
_queue_item_id: string;
|