@flowselections/floriday-verkoop-module 1.0.54 → 1.0.56
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 +7 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +45 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +45 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +45 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +45 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cart-lock.functions.d.ts +45 -0
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +495 -0
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +137 -26
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.js +93 -63
- package/dist-lib/lib/create-order.functions.d.ts +765 -0
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +135 -0
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +45 -0
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +45 -0
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +315 -0
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +225 -0
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.d.ts +180 -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 +45 -0
- package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.d.ts +225 -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 +90 -0
- package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.d.ts +45 -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 +135 -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 +90 -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 +90 -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 +180 -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/product-name.d.ts +3 -0
- package/dist-lib/lib/product-name.d.ts.map +1 -0
- package/dist-lib/lib/product-name.js +43 -0
- package/dist-lib/lib/salesorders-list.functions.d.ts +45 -0
- package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.d.ts +225 -0
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +90 -0
- package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +45 -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;
|
|
@@ -10796,6 +10814,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
10796
10814
|
last_error: string | null;
|
|
10797
10815
|
last_error_at: string | null;
|
|
10798
10816
|
last_success_at: string | null;
|
|
10817
|
+
provider: string;
|
|
10799
10818
|
updated_at: string;
|
|
10800
10819
|
};
|
|
10801
10820
|
Insert: {
|
|
@@ -10807,6 +10826,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
10807
10826
|
last_error?: string | null;
|
|
10808
10827
|
last_error_at?: string | null;
|
|
10809
10828
|
last_success_at?: string | null;
|
|
10829
|
+
provider?: string;
|
|
10810
10830
|
updated_at?: string;
|
|
10811
10831
|
};
|
|
10812
10832
|
Update: {
|
|
@@ -10818,6 +10838,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
10818
10838
|
last_error?: string | null;
|
|
10819
10839
|
last_error_at?: string | null;
|
|
10820
10840
|
last_success_at?: string | null;
|
|
10841
|
+
provider?: string;
|
|
10821
10842
|
updated_at?: string;
|
|
10822
10843
|
};
|
|
10823
10844
|
Relationships: [];
|
|
@@ -13596,6 +13617,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
13596
13617
|
foutmelding: string | null;
|
|
13597
13618
|
gebruiker_id: string | null;
|
|
13598
13619
|
gebruiker_naam: string;
|
|
13620
|
+
gebruikte_bron: string | null;
|
|
13621
|
+
gebruikte_layout_id: string | null;
|
|
13599
13622
|
gestart_op: string | null;
|
|
13600
13623
|
herkomst: string | null;
|
|
13601
13624
|
id: string;
|
|
@@ -13626,6 +13649,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
13626
13649
|
foutmelding?: string | null;
|
|
13627
13650
|
gebruiker_id?: string | null;
|
|
13628
13651
|
gebruiker_naam?: string;
|
|
13652
|
+
gebruikte_bron?: string | null;
|
|
13653
|
+
gebruikte_layout_id?: string | null;
|
|
13629
13654
|
gestart_op?: string | null;
|
|
13630
13655
|
herkomst?: string | null;
|
|
13631
13656
|
id?: string;
|
|
@@ -13656,6 +13681,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
13656
13681
|
foutmelding?: string | null;
|
|
13657
13682
|
gebruiker_id?: string | null;
|
|
13658
13683
|
gebruiker_naam?: string;
|
|
13684
|
+
gebruikte_bron?: string | null;
|
|
13685
|
+
gebruikte_layout_id?: string | null;
|
|
13659
13686
|
gestart_op?: string | null;
|
|
13660
13687
|
herkomst?: string | null;
|
|
13661
13688
|
id?: string;
|
|
@@ -20325,6 +20352,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
20325
20352
|
foutmelding: string | null;
|
|
20326
20353
|
gebruiker_id: string | null;
|
|
20327
20354
|
gebruiker_naam: string;
|
|
20355
|
+
gebruikte_bron: string | null;
|
|
20356
|
+
gebruikte_layout_id: string | null;
|
|
20328
20357
|
gestart_op: string | null;
|
|
20329
20358
|
herkomst: string | null;
|
|
20330
20359
|
id: string;
|
|
@@ -20446,6 +20475,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
20446
20475
|
foutmelding: string | null;
|
|
20447
20476
|
gebruiker_id: string | null;
|
|
20448
20477
|
gebruiker_naam: string;
|
|
20478
|
+
gebruikte_bron: string | null;
|
|
20479
|
+
gebruikte_layout_id: string | null;
|
|
20449
20480
|
gestart_op: string | null;
|
|
20450
20481
|
herkomst: string | null;
|
|
20451
20482
|
id: string;
|
|
@@ -21502,6 +21533,12 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
21502
21533
|
};
|
|
21503
21534
|
Returns: string;
|
|
21504
21535
|
};
|
|
21536
|
+
logistics_document_type_map: {
|
|
21537
|
+
Args: {
|
|
21538
|
+
_document_code: string;
|
|
21539
|
+
};
|
|
21540
|
+
Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
|
|
21541
|
+
};
|
|
21505
21542
|
logistics_emit_event: {
|
|
21506
21543
|
Args: {
|
|
21507
21544
|
p_event_type: string;
|
|
@@ -22582,6 +22619,14 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
|
|
|
22582
22619
|
};
|
|
22583
22620
|
Returns: undefined;
|
|
22584
22621
|
};
|
|
22622
|
+
replace_order_carts: {
|
|
22623
|
+
Args: {
|
|
22624
|
+
p_buffer_id: string;
|
|
22625
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
22626
|
+
p_order_id: string;
|
|
22627
|
+
};
|
|
22628
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22629
|
+
};
|
|
22585
22630
|
reset_floriday_sync_cursor: {
|
|
22586
22631
|
Args: {
|
|
22587
22632
|
p_connection_id: string;
|
|
@@ -33978,6 +34023,24 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
33978
34023
|
};
|
|
33979
34024
|
Relationships: [];
|
|
33980
34025
|
};
|
|
34026
|
+
maps_job_lease: {
|
|
34027
|
+
Row: {
|
|
34028
|
+
job: string;
|
|
34029
|
+
locked_until: string;
|
|
34030
|
+
updated_at: string;
|
|
34031
|
+
};
|
|
34032
|
+
Insert: {
|
|
34033
|
+
job: string;
|
|
34034
|
+
locked_until?: string;
|
|
34035
|
+
updated_at?: string;
|
|
34036
|
+
};
|
|
34037
|
+
Update: {
|
|
34038
|
+
job?: string;
|
|
34039
|
+
locked_until?: string;
|
|
34040
|
+
updated_at?: string;
|
|
34041
|
+
};
|
|
34042
|
+
Relationships: [];
|
|
34043
|
+
};
|
|
33981
34044
|
maps_request_queue: {
|
|
33982
34045
|
Row: {
|
|
33983
34046
|
attempts: number;
|
|
@@ -34039,6 +34102,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
34039
34102
|
last_error: string | null;
|
|
34040
34103
|
last_error_at: string | null;
|
|
34041
34104
|
last_success_at: string | null;
|
|
34105
|
+
provider: string;
|
|
34042
34106
|
updated_at: string;
|
|
34043
34107
|
};
|
|
34044
34108
|
Insert: {
|
|
@@ -34050,6 +34114,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
34050
34114
|
last_error?: string | null;
|
|
34051
34115
|
last_error_at?: string | null;
|
|
34052
34116
|
last_success_at?: string | null;
|
|
34117
|
+
provider?: string;
|
|
34053
34118
|
updated_at?: string;
|
|
34054
34119
|
};
|
|
34055
34120
|
Update: {
|
|
@@ -34061,6 +34126,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
34061
34126
|
last_error?: string | null;
|
|
34062
34127
|
last_error_at?: string | null;
|
|
34063
34128
|
last_success_at?: string | null;
|
|
34129
|
+
provider?: string;
|
|
34064
34130
|
updated_at?: string;
|
|
34065
34131
|
};
|
|
34066
34132
|
Relationships: [];
|
|
@@ -36839,6 +36905,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
36839
36905
|
foutmelding: string | null;
|
|
36840
36906
|
gebruiker_id: string | null;
|
|
36841
36907
|
gebruiker_naam: string;
|
|
36908
|
+
gebruikte_bron: string | null;
|
|
36909
|
+
gebruikte_layout_id: string | null;
|
|
36842
36910
|
gestart_op: string | null;
|
|
36843
36911
|
herkomst: string | null;
|
|
36844
36912
|
id: string;
|
|
@@ -36869,6 +36937,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
36869
36937
|
foutmelding?: string | null;
|
|
36870
36938
|
gebruiker_id?: string | null;
|
|
36871
36939
|
gebruiker_naam?: string;
|
|
36940
|
+
gebruikte_bron?: string | null;
|
|
36941
|
+
gebruikte_layout_id?: string | null;
|
|
36872
36942
|
gestart_op?: string | null;
|
|
36873
36943
|
herkomst?: string | null;
|
|
36874
36944
|
id?: string;
|
|
@@ -36899,6 +36969,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
36899
36969
|
foutmelding?: string | null;
|
|
36900
36970
|
gebruiker_id?: string | null;
|
|
36901
36971
|
gebruiker_naam?: string;
|
|
36972
|
+
gebruikte_bron?: string | null;
|
|
36973
|
+
gebruikte_layout_id?: string | null;
|
|
36902
36974
|
gestart_op?: string | null;
|
|
36903
36975
|
herkomst?: string | null;
|
|
36904
36976
|
id?: string;
|
|
@@ -43568,6 +43640,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
43568
43640
|
foutmelding: string | null;
|
|
43569
43641
|
gebruiker_id: string | null;
|
|
43570
43642
|
gebruiker_naam: string;
|
|
43643
|
+
gebruikte_bron: string | null;
|
|
43644
|
+
gebruikte_layout_id: string | null;
|
|
43571
43645
|
gestart_op: string | null;
|
|
43572
43646
|
herkomst: string | null;
|
|
43573
43647
|
id: string;
|
|
@@ -43689,6 +43763,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
43689
43763
|
foutmelding: string | null;
|
|
43690
43764
|
gebruiker_id: string | null;
|
|
43691
43765
|
gebruiker_naam: string;
|
|
43766
|
+
gebruikte_bron: string | null;
|
|
43767
|
+
gebruikte_layout_id: string | null;
|
|
43692
43768
|
gestart_op: string | null;
|
|
43693
43769
|
herkomst: string | null;
|
|
43694
43770
|
id: string;
|
|
@@ -44745,6 +44821,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
44745
44821
|
};
|
|
44746
44822
|
Returns: string;
|
|
44747
44823
|
};
|
|
44824
|
+
logistics_document_type_map: {
|
|
44825
|
+
Args: {
|
|
44826
|
+
_document_code: string;
|
|
44827
|
+
};
|
|
44828
|
+
Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
|
|
44829
|
+
};
|
|
44748
44830
|
logistics_emit_event: {
|
|
44749
44831
|
Args: {
|
|
44750
44832
|
p_event_type: string;
|
|
@@ -45825,6 +45907,14 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
|
|
|
45825
45907
|
};
|
|
45826
45908
|
Returns: undefined;
|
|
45827
45909
|
};
|
|
45910
|
+
replace_order_carts: {
|
|
45911
|
+
Args: {
|
|
45912
|
+
p_buffer_id: string;
|
|
45913
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
45914
|
+
p_order_id: string;
|
|
45915
|
+
};
|
|
45916
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
45917
|
+
};
|
|
45828
45918
|
reset_floriday_sync_cursor: {
|
|
45829
45919
|
Args: {
|
|
45830
45920
|
p_connection_id: string;
|
|
@@ -57202,6 +57292,24 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
57202
57292
|
};
|
|
57203
57293
|
Relationships: [];
|
|
57204
57294
|
};
|
|
57295
|
+
maps_job_lease: {
|
|
57296
|
+
Row: {
|
|
57297
|
+
job: string;
|
|
57298
|
+
locked_until: string;
|
|
57299
|
+
updated_at: string;
|
|
57300
|
+
};
|
|
57301
|
+
Insert: {
|
|
57302
|
+
job: string;
|
|
57303
|
+
locked_until?: string;
|
|
57304
|
+
updated_at?: string;
|
|
57305
|
+
};
|
|
57306
|
+
Update: {
|
|
57307
|
+
job?: string;
|
|
57308
|
+
locked_until?: string;
|
|
57309
|
+
updated_at?: string;
|
|
57310
|
+
};
|
|
57311
|
+
Relationships: [];
|
|
57312
|
+
};
|
|
57205
57313
|
maps_request_queue: {
|
|
57206
57314
|
Row: {
|
|
57207
57315
|
attempts: number;
|
|
@@ -57263,6 +57371,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
57263
57371
|
last_error: string | null;
|
|
57264
57372
|
last_error_at: string | null;
|
|
57265
57373
|
last_success_at: string | null;
|
|
57374
|
+
provider: string;
|
|
57266
57375
|
updated_at: string;
|
|
57267
57376
|
};
|
|
57268
57377
|
Insert: {
|
|
@@ -57274,6 +57383,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
57274
57383
|
last_error?: string | null;
|
|
57275
57384
|
last_error_at?: string | null;
|
|
57276
57385
|
last_success_at?: string | null;
|
|
57386
|
+
provider?: string;
|
|
57277
57387
|
updated_at?: string;
|
|
57278
57388
|
};
|
|
57279
57389
|
Update: {
|
|
@@ -57285,6 +57395,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
57285
57395
|
last_error?: string | null;
|
|
57286
57396
|
last_error_at?: string | null;
|
|
57287
57397
|
last_success_at?: string | null;
|
|
57398
|
+
provider?: string;
|
|
57288
57399
|
updated_at?: string;
|
|
57289
57400
|
};
|
|
57290
57401
|
Relationships: [];
|
|
@@ -60063,6 +60174,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
60063
60174
|
foutmelding: string | null;
|
|
60064
60175
|
gebruiker_id: string | null;
|
|
60065
60176
|
gebruiker_naam: string;
|
|
60177
|
+
gebruikte_bron: string | null;
|
|
60178
|
+
gebruikte_layout_id: string | null;
|
|
60066
60179
|
gestart_op: string | null;
|
|
60067
60180
|
herkomst: string | null;
|
|
60068
60181
|
id: string;
|
|
@@ -60093,6 +60206,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
60093
60206
|
foutmelding?: string | null;
|
|
60094
60207
|
gebruiker_id?: string | null;
|
|
60095
60208
|
gebruiker_naam?: string;
|
|
60209
|
+
gebruikte_bron?: string | null;
|
|
60210
|
+
gebruikte_layout_id?: string | null;
|
|
60096
60211
|
gestart_op?: string | null;
|
|
60097
60212
|
herkomst?: string | null;
|
|
60098
60213
|
id?: string;
|
|
@@ -60123,6 +60238,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
60123
60238
|
foutmelding?: string | null;
|
|
60124
60239
|
gebruiker_id?: string | null;
|
|
60125
60240
|
gebruiker_naam?: string;
|
|
60241
|
+
gebruikte_bron?: string | null;
|
|
60242
|
+
gebruikte_layout_id?: string | null;
|
|
60126
60243
|
gestart_op?: string | null;
|
|
60127
60244
|
herkomst?: string | null;
|
|
60128
60245
|
id?: string;
|
|
@@ -66792,6 +66909,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
66792
66909
|
foutmelding: string | null;
|
|
66793
66910
|
gebruiker_id: string | null;
|
|
66794
66911
|
gebruiker_naam: string;
|
|
66912
|
+
gebruikte_bron: string | null;
|
|
66913
|
+
gebruikte_layout_id: string | null;
|
|
66795
66914
|
gestart_op: string | null;
|
|
66796
66915
|
herkomst: string | null;
|
|
66797
66916
|
id: string;
|
|
@@ -66913,6 +67032,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
66913
67032
|
foutmelding: string | null;
|
|
66914
67033
|
gebruiker_id: string | null;
|
|
66915
67034
|
gebruiker_naam: string;
|
|
67035
|
+
gebruikte_bron: string | null;
|
|
67036
|
+
gebruikte_layout_id: string | null;
|
|
66916
67037
|
gestart_op: string | null;
|
|
66917
67038
|
herkomst: string | null;
|
|
66918
67039
|
id: string;
|
|
@@ -67969,6 +68090,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
67969
68090
|
};
|
|
67970
68091
|
Returns: string;
|
|
67971
68092
|
};
|
|
68093
|
+
logistics_document_type_map: {
|
|
68094
|
+
Args: {
|
|
68095
|
+
_document_code: string;
|
|
68096
|
+
};
|
|
68097
|
+
Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
|
|
68098
|
+
};
|
|
67972
68099
|
logistics_emit_event: {
|
|
67973
68100
|
Args: {
|
|
67974
68101
|
p_event_type: string;
|
|
@@ -69049,6 +69176,14 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
|
|
|
69049
69176
|
};
|
|
69050
69177
|
Returns: undefined;
|
|
69051
69178
|
};
|
|
69179
|
+
replace_order_carts: {
|
|
69180
|
+
Args: {
|
|
69181
|
+
p_buffer_id: string;
|
|
69182
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
69183
|
+
p_order_id: string;
|
|
69184
|
+
};
|
|
69185
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
69186
|
+
};
|
|
69052
69187
|
reset_floriday_sync_cursor: {
|
|
69053
69188
|
Args: {
|
|
69054
69189
|
p_connection_id: string;
|
|
@@ -80415,6 +80550,24 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
80415
80550
|
};
|
|
80416
80551
|
Relationships: [];
|
|
80417
80552
|
};
|
|
80553
|
+
maps_job_lease: {
|
|
80554
|
+
Row: {
|
|
80555
|
+
job: string;
|
|
80556
|
+
locked_until: string;
|
|
80557
|
+
updated_at: string;
|
|
80558
|
+
};
|
|
80559
|
+
Insert: {
|
|
80560
|
+
job: string;
|
|
80561
|
+
locked_until?: string;
|
|
80562
|
+
updated_at?: string;
|
|
80563
|
+
};
|
|
80564
|
+
Update: {
|
|
80565
|
+
job?: string;
|
|
80566
|
+
locked_until?: string;
|
|
80567
|
+
updated_at?: string;
|
|
80568
|
+
};
|
|
80569
|
+
Relationships: [];
|
|
80570
|
+
};
|
|
80418
80571
|
maps_request_queue: {
|
|
80419
80572
|
Row: {
|
|
80420
80573
|
attempts: number;
|
|
@@ -80476,6 +80629,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
80476
80629
|
last_error: string | null;
|
|
80477
80630
|
last_error_at: string | null;
|
|
80478
80631
|
last_success_at: string | null;
|
|
80632
|
+
provider: string;
|
|
80479
80633
|
updated_at: string;
|
|
80480
80634
|
};
|
|
80481
80635
|
Insert: {
|
|
@@ -80487,6 +80641,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
80487
80641
|
last_error?: string | null;
|
|
80488
80642
|
last_error_at?: string | null;
|
|
80489
80643
|
last_success_at?: string | null;
|
|
80644
|
+
provider?: string;
|
|
80490
80645
|
updated_at?: string;
|
|
80491
80646
|
};
|
|
80492
80647
|
Update: {
|
|
@@ -80498,6 +80653,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
80498
80653
|
last_error?: string | null;
|
|
80499
80654
|
last_error_at?: string | null;
|
|
80500
80655
|
last_success_at?: string | null;
|
|
80656
|
+
provider?: string;
|
|
80501
80657
|
updated_at?: string;
|
|
80502
80658
|
};
|
|
80503
80659
|
Relationships: [];
|
|
@@ -83276,6 +83432,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
83276
83432
|
foutmelding: string | null;
|
|
83277
83433
|
gebruiker_id: string | null;
|
|
83278
83434
|
gebruiker_naam: string;
|
|
83435
|
+
gebruikte_bron: string | null;
|
|
83436
|
+
gebruikte_layout_id: string | null;
|
|
83279
83437
|
gestart_op: string | null;
|
|
83280
83438
|
herkomst: string | null;
|
|
83281
83439
|
id: string;
|
|
@@ -83306,6 +83464,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
83306
83464
|
foutmelding?: string | null;
|
|
83307
83465
|
gebruiker_id?: string | null;
|
|
83308
83466
|
gebruiker_naam?: string;
|
|
83467
|
+
gebruikte_bron?: string | null;
|
|
83468
|
+
gebruikte_layout_id?: string | null;
|
|
83309
83469
|
gestart_op?: string | null;
|
|
83310
83470
|
herkomst?: string | null;
|
|
83311
83471
|
id?: string;
|
|
@@ -83336,6 +83496,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
83336
83496
|
foutmelding?: string | null;
|
|
83337
83497
|
gebruiker_id?: string | null;
|
|
83338
83498
|
gebruiker_naam?: string;
|
|
83499
|
+
gebruikte_bron?: string | null;
|
|
83500
|
+
gebruikte_layout_id?: string | null;
|
|
83339
83501
|
gestart_op?: string | null;
|
|
83340
83502
|
herkomst?: string | null;
|
|
83341
83503
|
id?: string;
|
|
@@ -90005,6 +90167,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
90005
90167
|
foutmelding: string | null;
|
|
90006
90168
|
gebruiker_id: string | null;
|
|
90007
90169
|
gebruiker_naam: string;
|
|
90170
|
+
gebruikte_bron: string | null;
|
|
90171
|
+
gebruikte_layout_id: string | null;
|
|
90008
90172
|
gestart_op: string | null;
|
|
90009
90173
|
herkomst: string | null;
|
|
90010
90174
|
id: string;
|
|
@@ -90126,6 +90290,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
90126
90290
|
foutmelding: string | null;
|
|
90127
90291
|
gebruiker_id: string | null;
|
|
90128
90292
|
gebruiker_naam: string;
|
|
90293
|
+
gebruikte_bron: string | null;
|
|
90294
|
+
gebruikte_layout_id: string | null;
|
|
90129
90295
|
gestart_op: string | null;
|
|
90130
90296
|
herkomst: string | null;
|
|
90131
90297
|
id: string;
|
|
@@ -91182,6 +91348,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
91182
91348
|
};
|
|
91183
91349
|
Returns: string;
|
|
91184
91350
|
};
|
|
91351
|
+
logistics_document_type_map: {
|
|
91352
|
+
Args: {
|
|
91353
|
+
_document_code: string;
|
|
91354
|
+
};
|
|
91355
|
+
Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
|
|
91356
|
+
};
|
|
91185
91357
|
logistics_emit_event: {
|
|
91186
91358
|
Args: {
|
|
91187
91359
|
p_event_type: string;
|
|
@@ -92262,6 +92434,14 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
|
|
|
92262
92434
|
};
|
|
92263
92435
|
Returns: undefined;
|
|
92264
92436
|
};
|
|
92437
|
+
replace_order_carts: {
|
|
92438
|
+
Args: {
|
|
92439
|
+
p_buffer_id: string;
|
|
92440
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
92441
|
+
p_order_id: string;
|
|
92442
|
+
};
|
|
92443
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
92444
|
+
};
|
|
92265
92445
|
reset_floriday_sync_cursor: {
|
|
92266
92446
|
Args: {
|
|
92267
92447
|
p_connection_id: string;
|