@flowselections/floriday-verkoop-module 1.0.54 → 1.0.55
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/verkoop/OrderKarindelingCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderKarindelingCard.js +6 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +42 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +42 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +42 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +42 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cart-lock.functions.d.ts +42 -0
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +462 -0
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +128 -26
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.js +55 -32
- package/dist-lib/lib/create-order.functions.d.ts +714 -0
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +126 -0
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +42 -0
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +42 -0
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +294 -0
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +210 -0
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.d.ts +168 -0
- package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.js +12 -6
- package/dist-lib/lib/load-carriers.functions.d.ts +42 -0
- package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.d.ts +210 -0
- package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.js +10 -5
- package/dist-lib/lib/logistics-stock.functions.d.ts +84 -0
- package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.d.ts +42 -0
- package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.js +15 -9
- package/dist-lib/lib/order-buffers.functions.d.ts +126 -0
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.js +10 -10
- package/dist-lib/lib/order-carrier.functions.d.ts +84 -0
- package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-carrier.functions.js +20 -11
- package/dist-lib/lib/order-pickup.functions.d.ts +84 -0
- package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-pickup.functions.js +20 -11
- package/dist-lib/lib/order-row.server.d.ts +24 -0
- package/dist-lib/lib/order-row.server.d.ts.map +1 -0
- package/dist-lib/lib/order-row.server.js +58 -0
- package/dist-lib/lib/order-shipments.functions.d.ts +168 -0
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.js +11 -6
- package/dist-lib/lib/salesorders-list.functions.d.ts +42 -0
- package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.d.ts +210 -0
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +84 -0
- package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +42 -0
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { createServerFn } from "@tanstack/react-start";
|
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware";
|
|
5
5
|
import { normalizeTime } from "./carrier-availability";
|
|
6
|
-
|
|
6
|
+
import { assertRowsAffected, resolveOrderRow } from "./order-row.server";
|
|
7
7
|
function addDaysISO(iso, n) {
|
|
8
8
|
const [y, m, d] = iso.split("-").map(Number);
|
|
9
9
|
const dt = new Date(y, (m ?? 1) - 1, d ?? 1);
|
|
@@ -65,22 +65,29 @@ function buildOptions(carrier, deliveryISO) {
|
|
|
65
65
|
return out;
|
|
66
66
|
}
|
|
67
67
|
async function findOrder(supabase, orderId) {
|
|
68
|
-
|
|
69
|
-
const
|
|
68
|
+
// DTO-id kan een Floriday salesOrderId zijn; resolveOrderRow vertaalt dat.
|
|
69
|
+
const row = await resolveOrderRow(supabase, orderId);
|
|
70
|
+
const { data, error } = await supabase
|
|
70
71
|
.from("orders")
|
|
71
72
|
.select("id, buffer_id, delivery_date, custom_fields")
|
|
72
|
-
.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return (
|
|
73
|
+
.eq("id", row.id)
|
|
74
|
+
.maybeSingle();
|
|
75
|
+
if (error)
|
|
76
|
+
throw new Error(error.message);
|
|
77
|
+
return (data ?? null);
|
|
77
78
|
}
|
|
78
79
|
export const getOrderPickupMoment = createServerFn({ method: "GET" })
|
|
79
80
|
.middleware([requireSupabaseAuth])
|
|
80
81
|
.inputValidator((input) => z.object({ orderId: z.string().min(1) }).parse(input))
|
|
81
82
|
.handler(async ({ data, context }) => {
|
|
82
83
|
const supabase = context.supabase;
|
|
83
|
-
|
|
84
|
+
let order = null;
|
|
85
|
+
try {
|
|
86
|
+
order = await findOrder(supabase, data.orderId);
|
|
87
|
+
}
|
|
88
|
+
catch {
|
|
89
|
+
order = null;
|
|
90
|
+
}
|
|
84
91
|
if (!order) {
|
|
85
92
|
return { selectedKey: null, selected: null, options: [] };
|
|
86
93
|
}
|
|
@@ -124,10 +131,12 @@ export const setOrderPickupMoment = createServerFn({ method: "POST" })
|
|
|
124
131
|
cf.pickup_moment = data.key;
|
|
125
132
|
if (deliveryTime)
|
|
126
133
|
cf.delivery_time = deliveryTime;
|
|
127
|
-
const { error } = await supabase.from("orders")
|
|
134
|
+
const { data: updated, error } = await supabase.from("orders")
|
|
128
135
|
.update({ custom_fields: cf })
|
|
129
|
-
.eq("id", order.id)
|
|
136
|
+
.eq("id", order.id)
|
|
137
|
+
.select("id");
|
|
130
138
|
if (error)
|
|
131
139
|
throw new Error(error.message);
|
|
140
|
+
assertRowsAffected(updated, "Ophaalmoment opslaan");
|
|
132
141
|
return { ok: true };
|
|
133
142
|
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type MinimalClient = {
|
|
2
|
+
from: (table: string) => any;
|
|
3
|
+
};
|
|
4
|
+
export interface ResolvedOrderRow {
|
|
5
|
+
id: string;
|
|
6
|
+
order_number: string | null;
|
|
7
|
+
buffer_id: string | null;
|
|
8
|
+
floriday_sales_order_id: string | null;
|
|
9
|
+
}
|
|
10
|
+
/** Verwijdert UI-prefixes zoals `local:` / `order:` van een DTO-id. */
|
|
11
|
+
export declare function stripOrderIdPrefix(raw: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* Zoekt de orders-rij bij een id uit de UI.
|
|
14
|
+
* Twee stappen: eerst orders.id, alleen bij geen treffer
|
|
15
|
+
* orders.floriday_sales_order_id. Niet gevonden = harde fout.
|
|
16
|
+
*/
|
|
17
|
+
export declare function resolveOrderRow(supabase: MinimalClient, rawId: string): Promise<ResolvedOrderRow>;
|
|
18
|
+
/**
|
|
19
|
+
* Controleert dat een update/delete echt rijen heeft geraakt.
|
|
20
|
+
* `rows` is het resultaat van `.select("id")` op de mutatie.
|
|
21
|
+
*/
|
|
22
|
+
export declare function assertRowsAffected(rows: unknown[] | null | undefined, what: string): void;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=order-row.server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-row.server.d.ts","sourceRoot":"","sources":["../../src/lib/order-row.server.ts"],"names":[],"mappings":"AAcA,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,GAAG,CAAC;CAC9B,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAID,uEAAuE;AACvE,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,gBAAgB,CAAC,CA8B3B;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,EAClC,IAAI,EAAE,MAAM,GACX,IAAI,CAIN"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Eén bron voor het vertalen van een id uit de UI naar de echte orders-rij.
|
|
2
|
+
//
|
|
3
|
+
// LET OP — dit is twee keer misgegaan (ordernummers en karindeling):
|
|
4
|
+
// de id in de DTO is voor Floriday-orders het *salesOrderId*
|
|
5
|
+
// (orders.floriday_sales_order_id) en NIET orders.id. Een server-fn die
|
|
6
|
+
// blind `.eq("id", dtoId)` doet leest niets — en bij een UPDATE raakt hij
|
|
7
|
+
// nul rijen zonder fout, wat een stille datafout is.
|
|
8
|
+
//
|
|
9
|
+
// Gebruik daarom altijd resolveOrderRow() voordat je op orders leest of
|
|
10
|
+
// schrijft, en controleer bij schrijven het aantal geraakte rijen
|
|
11
|
+
// (assertRowsAffected).
|
|
12
|
+
//
|
|
13
|
+
// Zie ook: resolveOrderNumbers() in ./order-numbers.server.ts
|
|
14
|
+
const SELECT = "id, order_number, buffer_id, floriday_sales_order_id";
|
|
15
|
+
/** Verwijdert UI-prefixes zoals `local:` / `order:` van een DTO-id. */
|
|
16
|
+
export function stripOrderIdPrefix(raw) {
|
|
17
|
+
return String(raw ?? "").replace(/^(local|order|proposal):/, "").trim();
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Zoekt de orders-rij bij een id uit de UI.
|
|
21
|
+
* Twee stappen: eerst orders.id, alleen bij geen treffer
|
|
22
|
+
* orders.floriday_sales_order_id. Niet gevonden = harde fout.
|
|
23
|
+
*/
|
|
24
|
+
export async function resolveOrderRow(supabase, rawId) {
|
|
25
|
+
const id = stripOrderIdPrefix(rawId);
|
|
26
|
+
if (!id)
|
|
27
|
+
throw new Error("Geen order-id opgegeven.");
|
|
28
|
+
const byId = await supabase.from("orders").select(SELECT).eq("id", id).maybeSingle();
|
|
29
|
+
if (byId.error && byId.error.code !== "22P02") {
|
|
30
|
+
throw new Error(`Order opzoeken mislukt: ${byId.error.message}`);
|
|
31
|
+
}
|
|
32
|
+
const byFo = await supabase
|
|
33
|
+
.from("orders")
|
|
34
|
+
.select(SELECT)
|
|
35
|
+
.eq("floriday_sales_order_id", id)
|
|
36
|
+
.maybeSingle();
|
|
37
|
+
if (byFo.error) {
|
|
38
|
+
throw new Error(`Order opzoeken mislukt: ${byFo.error.message}`);
|
|
39
|
+
}
|
|
40
|
+
const rowById = (byId.data ?? null);
|
|
41
|
+
const rowByFo = (byFo.data ?? null);
|
|
42
|
+
if (rowById && rowByFo && rowById.id !== rowByFo.id) {
|
|
43
|
+
console.warn(`[resolveOrderRow] id-botsing: ${id} is zowel orders.id (${rowById.id}) als floriday_sales_order_id van ${rowByFo.id}. orders.id wint.`);
|
|
44
|
+
}
|
|
45
|
+
const row = rowById ?? rowByFo;
|
|
46
|
+
if (!row)
|
|
47
|
+
throw new Error(`Order niet gevonden (${id}).`);
|
|
48
|
+
return row;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Controleert dat een update/delete echt rijen heeft geraakt.
|
|
52
|
+
* `rows` is het resultaat van `.select("id")` op de mutatie.
|
|
53
|
+
*/
|
|
54
|
+
export function assertRowsAffected(rows, what) {
|
|
55
|
+
if (!rows || rows.length === 0) {
|
|
56
|
+
throw new Error(`${what}: er is geen enkele orderregel bijgewerkt.`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -10735,6 +10735,24 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
10735
10735
|
};
|
|
10736
10736
|
Relationships: [];
|
|
10737
10737
|
};
|
|
10738
|
+
maps_job_lease: {
|
|
10739
|
+
Row: {
|
|
10740
|
+
job: string;
|
|
10741
|
+
locked_until: string;
|
|
10742
|
+
updated_at: string;
|
|
10743
|
+
};
|
|
10744
|
+
Insert: {
|
|
10745
|
+
job: string;
|
|
10746
|
+
locked_until?: string;
|
|
10747
|
+
updated_at?: string;
|
|
10748
|
+
};
|
|
10749
|
+
Update: {
|
|
10750
|
+
job?: string;
|
|
10751
|
+
locked_until?: string;
|
|
10752
|
+
updated_at?: string;
|
|
10753
|
+
};
|
|
10754
|
+
Relationships: [];
|
|
10755
|
+
};
|
|
10738
10756
|
maps_request_queue: {
|
|
10739
10757
|
Row: {
|
|
10740
10758
|
attempts: number;
|
|
@@ -13596,6 +13614,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
13596
13614
|
foutmelding: string | null;
|
|
13597
13615
|
gebruiker_id: string | null;
|
|
13598
13616
|
gebruiker_naam: string;
|
|
13617
|
+
gebruikte_bron: string | null;
|
|
13618
|
+
gebruikte_layout_id: string | null;
|
|
13599
13619
|
gestart_op: string | null;
|
|
13600
13620
|
herkomst: string | null;
|
|
13601
13621
|
id: string;
|
|
@@ -13626,6 +13646,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
13626
13646
|
foutmelding?: string | null;
|
|
13627
13647
|
gebruiker_id?: string | null;
|
|
13628
13648
|
gebruiker_naam?: string;
|
|
13649
|
+
gebruikte_bron?: string | null;
|
|
13650
|
+
gebruikte_layout_id?: string | null;
|
|
13629
13651
|
gestart_op?: string | null;
|
|
13630
13652
|
herkomst?: string | null;
|
|
13631
13653
|
id?: string;
|
|
@@ -13656,6 +13678,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
13656
13678
|
foutmelding?: string | null;
|
|
13657
13679
|
gebruiker_id?: string | null;
|
|
13658
13680
|
gebruiker_naam?: string;
|
|
13681
|
+
gebruikte_bron?: string | null;
|
|
13682
|
+
gebruikte_layout_id?: string | null;
|
|
13659
13683
|
gestart_op?: string | null;
|
|
13660
13684
|
herkomst?: string | null;
|
|
13661
13685
|
id?: string;
|
|
@@ -20325,6 +20349,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
20325
20349
|
foutmelding: string | null;
|
|
20326
20350
|
gebruiker_id: string | null;
|
|
20327
20351
|
gebruiker_naam: string;
|
|
20352
|
+
gebruikte_bron: string | null;
|
|
20353
|
+
gebruikte_layout_id: string | null;
|
|
20328
20354
|
gestart_op: string | null;
|
|
20329
20355
|
herkomst: string | null;
|
|
20330
20356
|
id: string;
|
|
@@ -20446,6 +20472,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
20446
20472
|
foutmelding: string | null;
|
|
20447
20473
|
gebruiker_id: string | null;
|
|
20448
20474
|
gebruiker_naam: string;
|
|
20475
|
+
gebruikte_bron: string | null;
|
|
20476
|
+
gebruikte_layout_id: string | null;
|
|
20449
20477
|
gestart_op: string | null;
|
|
20450
20478
|
herkomst: string | null;
|
|
20451
20479
|
id: string;
|
|
@@ -21502,6 +21530,12 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
21502
21530
|
};
|
|
21503
21531
|
Returns: string;
|
|
21504
21532
|
};
|
|
21533
|
+
logistics_document_type_map: {
|
|
21534
|
+
Args: {
|
|
21535
|
+
_document_code: string;
|
|
21536
|
+
};
|
|
21537
|
+
Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
|
|
21538
|
+
};
|
|
21505
21539
|
logistics_emit_event: {
|
|
21506
21540
|
Args: {
|
|
21507
21541
|
p_event_type: string;
|
|
@@ -21965,6 +21999,14 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
21965
21999
|
};
|
|
21966
22000
|
Returns: string;
|
|
21967
22001
|
};
|
|
22002
|
+
maps_cron_token: {
|
|
22003
|
+
Args: never;
|
|
22004
|
+
Returns: string;
|
|
22005
|
+
};
|
|
22006
|
+
maps_kick_queue: {
|
|
22007
|
+
Args: never;
|
|
22008
|
+
Returns: undefined;
|
|
22009
|
+
};
|
|
21968
22010
|
mark_offer_clicked: {
|
|
21969
22011
|
Args: {
|
|
21970
22012
|
p_code: string;
|
|
@@ -33978,6 +34020,24 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
33978
34020
|
};
|
|
33979
34021
|
Relationships: [];
|
|
33980
34022
|
};
|
|
34023
|
+
maps_job_lease: {
|
|
34024
|
+
Row: {
|
|
34025
|
+
job: string;
|
|
34026
|
+
locked_until: string;
|
|
34027
|
+
updated_at: string;
|
|
34028
|
+
};
|
|
34029
|
+
Insert: {
|
|
34030
|
+
job: string;
|
|
34031
|
+
locked_until?: string;
|
|
34032
|
+
updated_at?: string;
|
|
34033
|
+
};
|
|
34034
|
+
Update: {
|
|
34035
|
+
job?: string;
|
|
34036
|
+
locked_until?: string;
|
|
34037
|
+
updated_at?: string;
|
|
34038
|
+
};
|
|
34039
|
+
Relationships: [];
|
|
34040
|
+
};
|
|
33981
34041
|
maps_request_queue: {
|
|
33982
34042
|
Row: {
|
|
33983
34043
|
attempts: number;
|
|
@@ -36839,6 +36899,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
36839
36899
|
foutmelding: string | null;
|
|
36840
36900
|
gebruiker_id: string | null;
|
|
36841
36901
|
gebruiker_naam: string;
|
|
36902
|
+
gebruikte_bron: string | null;
|
|
36903
|
+
gebruikte_layout_id: string | null;
|
|
36842
36904
|
gestart_op: string | null;
|
|
36843
36905
|
herkomst: string | null;
|
|
36844
36906
|
id: string;
|
|
@@ -36869,6 +36931,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
36869
36931
|
foutmelding?: string | null;
|
|
36870
36932
|
gebruiker_id?: string | null;
|
|
36871
36933
|
gebruiker_naam?: string;
|
|
36934
|
+
gebruikte_bron?: string | null;
|
|
36935
|
+
gebruikte_layout_id?: string | null;
|
|
36872
36936
|
gestart_op?: string | null;
|
|
36873
36937
|
herkomst?: string | null;
|
|
36874
36938
|
id?: string;
|
|
@@ -36899,6 +36963,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
36899
36963
|
foutmelding?: string | null;
|
|
36900
36964
|
gebruiker_id?: string | null;
|
|
36901
36965
|
gebruiker_naam?: string;
|
|
36966
|
+
gebruikte_bron?: string | null;
|
|
36967
|
+
gebruikte_layout_id?: string | null;
|
|
36902
36968
|
gestart_op?: string | null;
|
|
36903
36969
|
herkomst?: string | null;
|
|
36904
36970
|
id?: string;
|
|
@@ -43568,6 +43634,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
43568
43634
|
foutmelding: string | null;
|
|
43569
43635
|
gebruiker_id: string | null;
|
|
43570
43636
|
gebruiker_naam: string;
|
|
43637
|
+
gebruikte_bron: string | null;
|
|
43638
|
+
gebruikte_layout_id: string | null;
|
|
43571
43639
|
gestart_op: string | null;
|
|
43572
43640
|
herkomst: string | null;
|
|
43573
43641
|
id: string;
|
|
@@ -43689,6 +43757,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
43689
43757
|
foutmelding: string | null;
|
|
43690
43758
|
gebruiker_id: string | null;
|
|
43691
43759
|
gebruiker_naam: string;
|
|
43760
|
+
gebruikte_bron: string | null;
|
|
43761
|
+
gebruikte_layout_id: string | null;
|
|
43692
43762
|
gestart_op: string | null;
|
|
43693
43763
|
herkomst: string | null;
|
|
43694
43764
|
id: string;
|
|
@@ -44745,6 +44815,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
44745
44815
|
};
|
|
44746
44816
|
Returns: string;
|
|
44747
44817
|
};
|
|
44818
|
+
logistics_document_type_map: {
|
|
44819
|
+
Args: {
|
|
44820
|
+
_document_code: string;
|
|
44821
|
+
};
|
|
44822
|
+
Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
|
|
44823
|
+
};
|
|
44748
44824
|
logistics_emit_event: {
|
|
44749
44825
|
Args: {
|
|
44750
44826
|
p_event_type: string;
|
|
@@ -45208,6 +45284,14 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
45208
45284
|
};
|
|
45209
45285
|
Returns: string;
|
|
45210
45286
|
};
|
|
45287
|
+
maps_cron_token: {
|
|
45288
|
+
Args: never;
|
|
45289
|
+
Returns: string;
|
|
45290
|
+
};
|
|
45291
|
+
maps_kick_queue: {
|
|
45292
|
+
Args: never;
|
|
45293
|
+
Returns: undefined;
|
|
45294
|
+
};
|
|
45211
45295
|
mark_offer_clicked: {
|
|
45212
45296
|
Args: {
|
|
45213
45297
|
p_code: string;
|
|
@@ -57202,6 +57286,24 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
57202
57286
|
};
|
|
57203
57287
|
Relationships: [];
|
|
57204
57288
|
};
|
|
57289
|
+
maps_job_lease: {
|
|
57290
|
+
Row: {
|
|
57291
|
+
job: string;
|
|
57292
|
+
locked_until: string;
|
|
57293
|
+
updated_at: string;
|
|
57294
|
+
};
|
|
57295
|
+
Insert: {
|
|
57296
|
+
job: string;
|
|
57297
|
+
locked_until?: string;
|
|
57298
|
+
updated_at?: string;
|
|
57299
|
+
};
|
|
57300
|
+
Update: {
|
|
57301
|
+
job?: string;
|
|
57302
|
+
locked_until?: string;
|
|
57303
|
+
updated_at?: string;
|
|
57304
|
+
};
|
|
57305
|
+
Relationships: [];
|
|
57306
|
+
};
|
|
57205
57307
|
maps_request_queue: {
|
|
57206
57308
|
Row: {
|
|
57207
57309
|
attempts: number;
|
|
@@ -60063,6 +60165,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
60063
60165
|
foutmelding: string | null;
|
|
60064
60166
|
gebruiker_id: string | null;
|
|
60065
60167
|
gebruiker_naam: string;
|
|
60168
|
+
gebruikte_bron: string | null;
|
|
60169
|
+
gebruikte_layout_id: string | null;
|
|
60066
60170
|
gestart_op: string | null;
|
|
60067
60171
|
herkomst: string | null;
|
|
60068
60172
|
id: string;
|
|
@@ -60093,6 +60197,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
60093
60197
|
foutmelding?: string | null;
|
|
60094
60198
|
gebruiker_id?: string | null;
|
|
60095
60199
|
gebruiker_naam?: string;
|
|
60200
|
+
gebruikte_bron?: string | null;
|
|
60201
|
+
gebruikte_layout_id?: string | null;
|
|
60096
60202
|
gestart_op?: string | null;
|
|
60097
60203
|
herkomst?: string | null;
|
|
60098
60204
|
id?: string;
|
|
@@ -60123,6 +60229,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
60123
60229
|
foutmelding?: string | null;
|
|
60124
60230
|
gebruiker_id?: string | null;
|
|
60125
60231
|
gebruiker_naam?: string;
|
|
60232
|
+
gebruikte_bron?: string | null;
|
|
60233
|
+
gebruikte_layout_id?: string | null;
|
|
60126
60234
|
gestart_op?: string | null;
|
|
60127
60235
|
herkomst?: string | null;
|
|
60128
60236
|
id?: string;
|
|
@@ -66792,6 +66900,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
66792
66900
|
foutmelding: string | null;
|
|
66793
66901
|
gebruiker_id: string | null;
|
|
66794
66902
|
gebruiker_naam: string;
|
|
66903
|
+
gebruikte_bron: string | null;
|
|
66904
|
+
gebruikte_layout_id: string | null;
|
|
66795
66905
|
gestart_op: string | null;
|
|
66796
66906
|
herkomst: string | null;
|
|
66797
66907
|
id: string;
|
|
@@ -66913,6 +67023,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
66913
67023
|
foutmelding: string | null;
|
|
66914
67024
|
gebruiker_id: string | null;
|
|
66915
67025
|
gebruiker_naam: string;
|
|
67026
|
+
gebruikte_bron: string | null;
|
|
67027
|
+
gebruikte_layout_id: string | null;
|
|
66916
67028
|
gestart_op: string | null;
|
|
66917
67029
|
herkomst: string | null;
|
|
66918
67030
|
id: string;
|
|
@@ -67969,6 +68081,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
67969
68081
|
};
|
|
67970
68082
|
Returns: string;
|
|
67971
68083
|
};
|
|
68084
|
+
logistics_document_type_map: {
|
|
68085
|
+
Args: {
|
|
68086
|
+
_document_code: string;
|
|
68087
|
+
};
|
|
68088
|
+
Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
|
|
68089
|
+
};
|
|
67972
68090
|
logistics_emit_event: {
|
|
67973
68091
|
Args: {
|
|
67974
68092
|
p_event_type: string;
|
|
@@ -68432,6 +68550,14 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
68432
68550
|
};
|
|
68433
68551
|
Returns: string;
|
|
68434
68552
|
};
|
|
68553
|
+
maps_cron_token: {
|
|
68554
|
+
Args: never;
|
|
68555
|
+
Returns: string;
|
|
68556
|
+
};
|
|
68557
|
+
maps_kick_queue: {
|
|
68558
|
+
Args: never;
|
|
68559
|
+
Returns: undefined;
|
|
68560
|
+
};
|
|
68435
68561
|
mark_offer_clicked: {
|
|
68436
68562
|
Args: {
|
|
68437
68563
|
p_code: string;
|
|
@@ -80415,6 +80541,24 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
80415
80541
|
};
|
|
80416
80542
|
Relationships: [];
|
|
80417
80543
|
};
|
|
80544
|
+
maps_job_lease: {
|
|
80545
|
+
Row: {
|
|
80546
|
+
job: string;
|
|
80547
|
+
locked_until: string;
|
|
80548
|
+
updated_at: string;
|
|
80549
|
+
};
|
|
80550
|
+
Insert: {
|
|
80551
|
+
job: string;
|
|
80552
|
+
locked_until?: string;
|
|
80553
|
+
updated_at?: string;
|
|
80554
|
+
};
|
|
80555
|
+
Update: {
|
|
80556
|
+
job?: string;
|
|
80557
|
+
locked_until?: string;
|
|
80558
|
+
updated_at?: string;
|
|
80559
|
+
};
|
|
80560
|
+
Relationships: [];
|
|
80561
|
+
};
|
|
80418
80562
|
maps_request_queue: {
|
|
80419
80563
|
Row: {
|
|
80420
80564
|
attempts: number;
|
|
@@ -83276,6 +83420,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
83276
83420
|
foutmelding: string | null;
|
|
83277
83421
|
gebruiker_id: string | null;
|
|
83278
83422
|
gebruiker_naam: string;
|
|
83423
|
+
gebruikte_bron: string | null;
|
|
83424
|
+
gebruikte_layout_id: string | null;
|
|
83279
83425
|
gestart_op: string | null;
|
|
83280
83426
|
herkomst: string | null;
|
|
83281
83427
|
id: string;
|
|
@@ -83306,6 +83452,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
83306
83452
|
foutmelding?: string | null;
|
|
83307
83453
|
gebruiker_id?: string | null;
|
|
83308
83454
|
gebruiker_naam?: string;
|
|
83455
|
+
gebruikte_bron?: string | null;
|
|
83456
|
+
gebruikte_layout_id?: string | null;
|
|
83309
83457
|
gestart_op?: string | null;
|
|
83310
83458
|
herkomst?: string | null;
|
|
83311
83459
|
id?: string;
|
|
@@ -83336,6 +83484,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
83336
83484
|
foutmelding?: string | null;
|
|
83337
83485
|
gebruiker_id?: string | null;
|
|
83338
83486
|
gebruiker_naam?: string;
|
|
83487
|
+
gebruikte_bron?: string | null;
|
|
83488
|
+
gebruikte_layout_id?: string | null;
|
|
83339
83489
|
gestart_op?: string | null;
|
|
83340
83490
|
herkomst?: string | null;
|
|
83341
83491
|
id?: string;
|
|
@@ -90005,6 +90155,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
90005
90155
|
foutmelding: string | null;
|
|
90006
90156
|
gebruiker_id: string | null;
|
|
90007
90157
|
gebruiker_naam: string;
|
|
90158
|
+
gebruikte_bron: string | null;
|
|
90159
|
+
gebruikte_layout_id: string | null;
|
|
90008
90160
|
gestart_op: string | null;
|
|
90009
90161
|
herkomst: string | null;
|
|
90010
90162
|
id: string;
|
|
@@ -90126,6 +90278,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
90126
90278
|
foutmelding: string | null;
|
|
90127
90279
|
gebruiker_id: string | null;
|
|
90128
90280
|
gebruiker_naam: string;
|
|
90281
|
+
gebruikte_bron: string | null;
|
|
90282
|
+
gebruikte_layout_id: string | null;
|
|
90129
90283
|
gestart_op: string | null;
|
|
90130
90284
|
herkomst: string | null;
|
|
90131
90285
|
id: string;
|
|
@@ -91182,6 +91336,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
91182
91336
|
};
|
|
91183
91337
|
Returns: string;
|
|
91184
91338
|
};
|
|
91339
|
+
logistics_document_type_map: {
|
|
91340
|
+
Args: {
|
|
91341
|
+
_document_code: string;
|
|
91342
|
+
};
|
|
91343
|
+
Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
|
|
91344
|
+
};
|
|
91185
91345
|
logistics_emit_event: {
|
|
91186
91346
|
Args: {
|
|
91187
91347
|
p_event_type: string;
|
|
@@ -91645,6 +91805,14 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
91645
91805
|
};
|
|
91646
91806
|
Returns: string;
|
|
91647
91807
|
};
|
|
91808
|
+
maps_cron_token: {
|
|
91809
|
+
Args: never;
|
|
91810
|
+
Returns: string;
|
|
91811
|
+
};
|
|
91812
|
+
maps_kick_queue: {
|
|
91813
|
+
Args: never;
|
|
91814
|
+
Returns: undefined;
|
|
91815
|
+
};
|
|
91648
91816
|
mark_offer_clicked: {
|
|
91649
91817
|
Args: {
|
|
91650
91818
|
p_code: string;
|