@flowselections/floriday-afhandeling-module 1.0.16 → 1.0.18
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/engine/FormulesPage.d.ts.map +1 -1
- package/dist-lib/components/engine/FormulesPage.js +2 -5
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +48 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +48 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.js +26 -7
- package/dist-lib/integrations/supabase/client.server.d.ts +48 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +50 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +96 -0
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/authGateway.server.d.ts.map +1 -1
- package/dist-lib/lib/authGateway.server.js +20 -16
- package/dist-lib/lib/carriers.functions.d.ts +240 -0
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +240 -0
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +480 -0
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/centralSecrets.server.d.ts +13 -0
- package/dist-lib/lib/centralSecrets.server.d.ts.map +1 -0
- package/dist-lib/lib/centralSecrets.server.js +83 -0
- package/dist-lib/lib/deliveryNotePrint.d.ts.map +1 -1
- package/dist-lib/lib/deliveryNotePrint.js +3 -3
- package/dist-lib/lib/floriday.functions.d.ts +48 -0
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayAutoProcess.d.ts.map +1 -1
- package/dist-lib/lib/floridayAutoProcess.js +3 -3
- package/dist-lib/lib/gatewayBase.d.ts +8 -0
- package/dist-lib/lib/gatewayBase.d.ts.map +1 -0
- package/dist-lib/lib/gatewayBase.js +26 -0
- package/dist-lib/lib/gatewayBase.server.d.ts +2 -0
- package/dist-lib/lib/gatewayBase.server.d.ts.map +1 -0
- package/dist-lib/lib/gatewayBase.server.js +18 -0
- package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +192 -0
- package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +48 -0
- package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +96 -0
- package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +384 -0
- package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +192 -0
- package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -1
- package/package.json +20 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authGateway.server.d.ts","sourceRoot":"","sources":["../../src/lib/authGateway.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authGateway.server.d.ts","sourceRoot":"","sources":["../../src/lib/authGateway.server.ts"],"names":[],"mappings":"AA6EA,iFAAiF;AACjF,wBAAsB,0BAA0B,CAC9C,aAAa,EAAE,MAAM,EAAE,GACtB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CA6BhC;AA8CD;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CACxC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,CAyElD"}
|
|
@@ -7,16 +7,12 @@
|
|
|
7
7
|
// signature = hex(HMAC-SHA256(AUTH_GATEWAY_HMAC_SECRET, message))
|
|
8
8
|
// headers = { "X-Signature": signature, "X-Timestamp": timestamp }
|
|
9
9
|
// Timestamp = ISO 8601 UTC, ±5 min venster.
|
|
10
|
-
|
|
10
|
+
// Web Crypto (browser/Node 15+/Workers) — geen node:crypto, want dist-lib
|
|
11
|
+
// wordt ook in de client-bundle van consumer-shells opgenomen.
|
|
11
12
|
import { createClient } from "@supabase/supabase-js";
|
|
12
|
-
|
|
13
|
+
import { resolveGatewayBaseServer } from "./gatewayBase.server";
|
|
14
|
+
import { getFloridayGatewaySecret } from "./centralSecrets.server";
|
|
13
15
|
const LOG = "[auth-gateway]";
|
|
14
|
-
function gatewayBase() {
|
|
15
|
-
const raw = process.env.AUTH_GATEWAY_URL ??
|
|
16
|
-
process.env.VITE_AUTH_GATEWAY_URL ??
|
|
17
|
-
GATEWAY_URL_FALLBACK;
|
|
18
|
-
return raw.replace(/\/$/, "");
|
|
19
|
-
}
|
|
20
16
|
function getSupabase() {
|
|
21
17
|
const url = process.env.SUPABASE_URL ?? process.env.VITE_SUPABASE_URL;
|
|
22
18
|
const key = process.env.SUPABASE_PUBLISHABLE_KEY ?? process.env.VITE_SUPABASE_PUBLISHABLE_KEY;
|
|
@@ -100,8 +96,12 @@ export async function resolveDeliveryOrdersBatch(salesOrderIds) {
|
|
|
100
96
|
}
|
|
101
97
|
return out;
|
|
102
98
|
}
|
|
103
|
-
function signBody(secret, timestamp, body) {
|
|
104
|
-
|
|
99
|
+
async function signBody(secret, timestamp, body) {
|
|
100
|
+
const key = await globalThis.crypto.subtle.importKey("raw", new TextEncoder().encode(secret), { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
|
|
101
|
+
const sig = await globalThis.crypto.subtle.sign("HMAC", key, new TextEncoder().encode(`${timestamp}.${body}`));
|
|
102
|
+
return Array.from(new Uint8Array(sig))
|
|
103
|
+
.map((b) => b.toString(16).padStart(2, "0"))
|
|
104
|
+
.join("");
|
|
105
105
|
}
|
|
106
106
|
async function fetchPdfAsBase64(url) {
|
|
107
107
|
try {
|
|
@@ -136,13 +136,16 @@ async function fetchPdfAsBase64(url) {
|
|
|
136
136
|
* Nooit throws — de pakbon-print moet altijd door kunnen gaan.
|
|
137
137
|
*/
|
|
138
138
|
export async function fetchDeliveryNotePdf(salesOrderId) {
|
|
139
|
-
|
|
140
|
-
if (!secret) {
|
|
141
|
-
console.error(`${LOG} AUTH_GATEWAY_HMAC_SECRET ontbreekt — kan afleverbrief niet ophalen`);
|
|
139
|
+
if (!salesOrderId)
|
|
142
140
|
return null;
|
|
141
|
+
let secret;
|
|
142
|
+
try {
|
|
143
|
+
secret = await getFloridayGatewaySecret();
|
|
143
144
|
}
|
|
144
|
-
|
|
145
|
+
catch (e) {
|
|
146
|
+
console.error(`${LOG} HMAC-secret niet beschikbaar — kan afleverbrief niet ophalen`, e instanceof Error ? e.message : String(e));
|
|
145
147
|
return null;
|
|
148
|
+
}
|
|
146
149
|
const deliveryOrderIds = await resolveDeliveryOrderIds(salesOrderId);
|
|
147
150
|
if (deliveryOrderIds.length === 0) {
|
|
148
151
|
return null; // nog geen delivery-order — normaal gedrag
|
|
@@ -159,9 +162,10 @@ export async function fetchDeliveryNotePdf(salesOrderId) {
|
|
|
159
162
|
};
|
|
160
163
|
const bodyStr = JSON.stringify(payload);
|
|
161
164
|
const timestamp = new Date().toISOString();
|
|
162
|
-
const signature = signBody(secret, timestamp, bodyStr);
|
|
165
|
+
const signature = await signBody(secret, timestamp, bodyStr);
|
|
163
166
|
try {
|
|
164
|
-
const
|
|
167
|
+
const base = await resolveGatewayBaseServer();
|
|
168
|
+
const res = await fetch(`${base}/api/public/gateway/pdf`, {
|
|
165
169
|
method: "POST",
|
|
166
170
|
headers: {
|
|
167
171
|
"Content-Type": "application/json",
|
|
@@ -1161,6 +1161,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
1161
1161
|
optimization_strategy: string;
|
|
1162
1162
|
own_cart_from_layers: number;
|
|
1163
1163
|
pick_time_mode: string;
|
|
1164
|
+
plants_per_day: number;
|
|
1164
1165
|
plants_per_hour: number;
|
|
1165
1166
|
require_same_carrier: boolean;
|
|
1166
1167
|
require_same_crate_type: boolean;
|
|
@@ -1184,6 +1185,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
1184
1185
|
optimization_strategy?: string;
|
|
1185
1186
|
own_cart_from_layers?: number;
|
|
1186
1187
|
pick_time_mode?: string;
|
|
1188
|
+
plants_per_day?: number;
|
|
1187
1189
|
plants_per_hour?: number;
|
|
1188
1190
|
require_same_carrier?: boolean;
|
|
1189
1191
|
require_same_crate_type?: boolean;
|
|
@@ -1207,6 +1209,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
1207
1209
|
optimization_strategy?: string;
|
|
1208
1210
|
own_cart_from_layers?: number;
|
|
1209
1211
|
pick_time_mode?: string;
|
|
1212
|
+
plants_per_day?: number;
|
|
1210
1213
|
plants_per_hour?: number;
|
|
1211
1214
|
require_same_carrier?: boolean;
|
|
1212
1215
|
require_same_crate_type?: boolean;
|
|
@@ -10184,6 +10187,51 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
10184
10187
|
referencedColumns: ["id"];
|
|
10185
10188
|
}];
|
|
10186
10189
|
};
|
|
10190
|
+
twinfield_invoice_pdf_cache: {
|
|
10191
|
+
Row: {
|
|
10192
|
+
connection_id: string;
|
|
10193
|
+
created_at: string;
|
|
10194
|
+
fetched_at: string;
|
|
10195
|
+
id: string;
|
|
10196
|
+
invoice_number: string;
|
|
10197
|
+
last_accessed_at: string;
|
|
10198
|
+
object_path: string;
|
|
10199
|
+
office_code: string;
|
|
10200
|
+
size_bytes: number;
|
|
10201
|
+
updated_at: string;
|
|
10202
|
+
};
|
|
10203
|
+
Insert: {
|
|
10204
|
+
connection_id: string;
|
|
10205
|
+
created_at?: string;
|
|
10206
|
+
fetched_at?: string;
|
|
10207
|
+
id?: string;
|
|
10208
|
+
invoice_number: string;
|
|
10209
|
+
last_accessed_at?: string;
|
|
10210
|
+
object_path: string;
|
|
10211
|
+
office_code: string;
|
|
10212
|
+
size_bytes?: number;
|
|
10213
|
+
updated_at?: string;
|
|
10214
|
+
};
|
|
10215
|
+
Update: {
|
|
10216
|
+
connection_id?: string;
|
|
10217
|
+
created_at?: string;
|
|
10218
|
+
fetched_at?: string;
|
|
10219
|
+
id?: string;
|
|
10220
|
+
invoice_number?: string;
|
|
10221
|
+
last_accessed_at?: string;
|
|
10222
|
+
object_path?: string;
|
|
10223
|
+
office_code?: string;
|
|
10224
|
+
size_bytes?: number;
|
|
10225
|
+
updated_at?: string;
|
|
10226
|
+
};
|
|
10227
|
+
Relationships: [{
|
|
10228
|
+
foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
|
|
10229
|
+
columns: ["connection_id"];
|
|
10230
|
+
isOneToOne: false;
|
|
10231
|
+
referencedRelation: "twinfield_connections";
|
|
10232
|
+
referencedColumns: ["id"];
|
|
10233
|
+
}];
|
|
10234
|
+
};
|
|
10187
10235
|
twinfield_invoice_settings: {
|
|
10188
10236
|
Row: {
|
|
10189
10237
|
created_at: string;
|
|
@@ -13676,6 +13724,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
13676
13724
|
optimization_strategy: string;
|
|
13677
13725
|
own_cart_from_layers: number;
|
|
13678
13726
|
pick_time_mode: string;
|
|
13727
|
+
plants_per_day: number;
|
|
13679
13728
|
plants_per_hour: number;
|
|
13680
13729
|
require_same_carrier: boolean;
|
|
13681
13730
|
require_same_crate_type: boolean;
|
|
@@ -13699,6 +13748,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
13699
13748
|
optimization_strategy?: string;
|
|
13700
13749
|
own_cart_from_layers?: number;
|
|
13701
13750
|
pick_time_mode?: string;
|
|
13751
|
+
plants_per_day?: number;
|
|
13702
13752
|
plants_per_hour?: number;
|
|
13703
13753
|
require_same_carrier?: boolean;
|
|
13704
13754
|
require_same_crate_type?: boolean;
|
|
@@ -13722,6 +13772,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
13722
13772
|
optimization_strategy?: string;
|
|
13723
13773
|
own_cart_from_layers?: number;
|
|
13724
13774
|
pick_time_mode?: string;
|
|
13775
|
+
plants_per_day?: number;
|
|
13725
13776
|
plants_per_hour?: number;
|
|
13726
13777
|
require_same_carrier?: boolean;
|
|
13727
13778
|
require_same_crate_type?: boolean;
|
|
@@ -22699,6 +22750,51 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
22699
22750
|
referencedColumns: ["id"];
|
|
22700
22751
|
}];
|
|
22701
22752
|
};
|
|
22753
|
+
twinfield_invoice_pdf_cache: {
|
|
22754
|
+
Row: {
|
|
22755
|
+
connection_id: string;
|
|
22756
|
+
created_at: string;
|
|
22757
|
+
fetched_at: string;
|
|
22758
|
+
id: string;
|
|
22759
|
+
invoice_number: string;
|
|
22760
|
+
last_accessed_at: string;
|
|
22761
|
+
object_path: string;
|
|
22762
|
+
office_code: string;
|
|
22763
|
+
size_bytes: number;
|
|
22764
|
+
updated_at: string;
|
|
22765
|
+
};
|
|
22766
|
+
Insert: {
|
|
22767
|
+
connection_id: string;
|
|
22768
|
+
created_at?: string;
|
|
22769
|
+
fetched_at?: string;
|
|
22770
|
+
id?: string;
|
|
22771
|
+
invoice_number: string;
|
|
22772
|
+
last_accessed_at?: string;
|
|
22773
|
+
object_path: string;
|
|
22774
|
+
office_code: string;
|
|
22775
|
+
size_bytes?: number;
|
|
22776
|
+
updated_at?: string;
|
|
22777
|
+
};
|
|
22778
|
+
Update: {
|
|
22779
|
+
connection_id?: string;
|
|
22780
|
+
created_at?: string;
|
|
22781
|
+
fetched_at?: string;
|
|
22782
|
+
id?: string;
|
|
22783
|
+
invoice_number?: string;
|
|
22784
|
+
last_accessed_at?: string;
|
|
22785
|
+
object_path?: string;
|
|
22786
|
+
office_code?: string;
|
|
22787
|
+
size_bytes?: number;
|
|
22788
|
+
updated_at?: string;
|
|
22789
|
+
};
|
|
22790
|
+
Relationships: [{
|
|
22791
|
+
foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
|
|
22792
|
+
columns: ["connection_id"];
|
|
22793
|
+
isOneToOne: false;
|
|
22794
|
+
referencedRelation: "twinfield_connections";
|
|
22795
|
+
referencedColumns: ["id"];
|
|
22796
|
+
}];
|
|
22797
|
+
};
|
|
22702
22798
|
twinfield_invoice_settings: {
|
|
22703
22799
|
Row: {
|
|
22704
22800
|
created_at: string;
|
|
@@ -26195,6 +26291,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
26195
26291
|
optimization_strategy: string;
|
|
26196
26292
|
own_cart_from_layers: number;
|
|
26197
26293
|
pick_time_mode: string;
|
|
26294
|
+
plants_per_day: number;
|
|
26198
26295
|
plants_per_hour: number;
|
|
26199
26296
|
require_same_carrier: boolean;
|
|
26200
26297
|
require_same_crate_type: boolean;
|
|
@@ -26218,6 +26315,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
26218
26315
|
optimization_strategy?: string;
|
|
26219
26316
|
own_cart_from_layers?: number;
|
|
26220
26317
|
pick_time_mode?: string;
|
|
26318
|
+
plants_per_day?: number;
|
|
26221
26319
|
plants_per_hour?: number;
|
|
26222
26320
|
require_same_carrier?: boolean;
|
|
26223
26321
|
require_same_crate_type?: boolean;
|
|
@@ -26241,6 +26339,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
26241
26339
|
optimization_strategy?: string;
|
|
26242
26340
|
own_cart_from_layers?: number;
|
|
26243
26341
|
pick_time_mode?: string;
|
|
26342
|
+
plants_per_day?: number;
|
|
26244
26343
|
plants_per_hour?: number;
|
|
26245
26344
|
require_same_carrier?: boolean;
|
|
26246
26345
|
require_same_crate_type?: boolean;
|
|
@@ -35218,6 +35317,51 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
35218
35317
|
referencedColumns: ["id"];
|
|
35219
35318
|
}];
|
|
35220
35319
|
};
|
|
35320
|
+
twinfield_invoice_pdf_cache: {
|
|
35321
|
+
Row: {
|
|
35322
|
+
connection_id: string;
|
|
35323
|
+
created_at: string;
|
|
35324
|
+
fetched_at: string;
|
|
35325
|
+
id: string;
|
|
35326
|
+
invoice_number: string;
|
|
35327
|
+
last_accessed_at: string;
|
|
35328
|
+
object_path: string;
|
|
35329
|
+
office_code: string;
|
|
35330
|
+
size_bytes: number;
|
|
35331
|
+
updated_at: string;
|
|
35332
|
+
};
|
|
35333
|
+
Insert: {
|
|
35334
|
+
connection_id: string;
|
|
35335
|
+
created_at?: string;
|
|
35336
|
+
fetched_at?: string;
|
|
35337
|
+
id?: string;
|
|
35338
|
+
invoice_number: string;
|
|
35339
|
+
last_accessed_at?: string;
|
|
35340
|
+
object_path: string;
|
|
35341
|
+
office_code: string;
|
|
35342
|
+
size_bytes?: number;
|
|
35343
|
+
updated_at?: string;
|
|
35344
|
+
};
|
|
35345
|
+
Update: {
|
|
35346
|
+
connection_id?: string;
|
|
35347
|
+
created_at?: string;
|
|
35348
|
+
fetched_at?: string;
|
|
35349
|
+
id?: string;
|
|
35350
|
+
invoice_number?: string;
|
|
35351
|
+
last_accessed_at?: string;
|
|
35352
|
+
object_path?: string;
|
|
35353
|
+
office_code?: string;
|
|
35354
|
+
size_bytes?: number;
|
|
35355
|
+
updated_at?: string;
|
|
35356
|
+
};
|
|
35357
|
+
Relationships: [{
|
|
35358
|
+
foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
|
|
35359
|
+
columns: ["connection_id"];
|
|
35360
|
+
isOneToOne: false;
|
|
35361
|
+
referencedRelation: "twinfield_connections";
|
|
35362
|
+
referencedColumns: ["id"];
|
|
35363
|
+
}];
|
|
35364
|
+
};
|
|
35221
35365
|
twinfield_invoice_settings: {
|
|
35222
35366
|
Row: {
|
|
35223
35367
|
created_at: string;
|
|
@@ -38716,6 +38860,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
38716
38860
|
optimization_strategy: string;
|
|
38717
38861
|
own_cart_from_layers: number;
|
|
38718
38862
|
pick_time_mode: string;
|
|
38863
|
+
plants_per_day: number;
|
|
38719
38864
|
plants_per_hour: number;
|
|
38720
38865
|
require_same_carrier: boolean;
|
|
38721
38866
|
require_same_crate_type: boolean;
|
|
@@ -38739,6 +38884,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
38739
38884
|
optimization_strategy?: string;
|
|
38740
38885
|
own_cart_from_layers?: number;
|
|
38741
38886
|
pick_time_mode?: string;
|
|
38887
|
+
plants_per_day?: number;
|
|
38742
38888
|
plants_per_hour?: number;
|
|
38743
38889
|
require_same_carrier?: boolean;
|
|
38744
38890
|
require_same_crate_type?: boolean;
|
|
@@ -38762,6 +38908,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
38762
38908
|
optimization_strategy?: string;
|
|
38763
38909
|
own_cart_from_layers?: number;
|
|
38764
38910
|
pick_time_mode?: string;
|
|
38911
|
+
plants_per_day?: number;
|
|
38765
38912
|
plants_per_hour?: number;
|
|
38766
38913
|
require_same_carrier?: boolean;
|
|
38767
38914
|
require_same_crate_type?: boolean;
|
|
@@ -47739,6 +47886,51 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
47739
47886
|
referencedColumns: ["id"];
|
|
47740
47887
|
}];
|
|
47741
47888
|
};
|
|
47889
|
+
twinfield_invoice_pdf_cache: {
|
|
47890
|
+
Row: {
|
|
47891
|
+
connection_id: string;
|
|
47892
|
+
created_at: string;
|
|
47893
|
+
fetched_at: string;
|
|
47894
|
+
id: string;
|
|
47895
|
+
invoice_number: string;
|
|
47896
|
+
last_accessed_at: string;
|
|
47897
|
+
object_path: string;
|
|
47898
|
+
office_code: string;
|
|
47899
|
+
size_bytes: number;
|
|
47900
|
+
updated_at: string;
|
|
47901
|
+
};
|
|
47902
|
+
Insert: {
|
|
47903
|
+
connection_id: string;
|
|
47904
|
+
created_at?: string;
|
|
47905
|
+
fetched_at?: string;
|
|
47906
|
+
id?: string;
|
|
47907
|
+
invoice_number: string;
|
|
47908
|
+
last_accessed_at?: string;
|
|
47909
|
+
object_path: string;
|
|
47910
|
+
office_code: string;
|
|
47911
|
+
size_bytes?: number;
|
|
47912
|
+
updated_at?: string;
|
|
47913
|
+
};
|
|
47914
|
+
Update: {
|
|
47915
|
+
connection_id?: string;
|
|
47916
|
+
created_at?: string;
|
|
47917
|
+
fetched_at?: string;
|
|
47918
|
+
id?: string;
|
|
47919
|
+
invoice_number?: string;
|
|
47920
|
+
last_accessed_at?: string;
|
|
47921
|
+
object_path?: string;
|
|
47922
|
+
office_code?: string;
|
|
47923
|
+
size_bytes?: number;
|
|
47924
|
+
updated_at?: string;
|
|
47925
|
+
};
|
|
47926
|
+
Relationships: [{
|
|
47927
|
+
foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
|
|
47928
|
+
columns: ["connection_id"];
|
|
47929
|
+
isOneToOne: false;
|
|
47930
|
+
referencedRelation: "twinfield_connections";
|
|
47931
|
+
referencedColumns: ["id"];
|
|
47932
|
+
}];
|
|
47933
|
+
};
|
|
47742
47934
|
twinfield_invoice_settings: {
|
|
47743
47935
|
Row: {
|
|
47744
47936
|
created_at: string;
|
|
@@ -51235,6 +51427,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
51235
51427
|
optimization_strategy: string;
|
|
51236
51428
|
own_cart_from_layers: number;
|
|
51237
51429
|
pick_time_mode: string;
|
|
51430
|
+
plants_per_day: number;
|
|
51238
51431
|
plants_per_hour: number;
|
|
51239
51432
|
require_same_carrier: boolean;
|
|
51240
51433
|
require_same_crate_type: boolean;
|
|
@@ -51258,6 +51451,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
51258
51451
|
optimization_strategy?: string;
|
|
51259
51452
|
own_cart_from_layers?: number;
|
|
51260
51453
|
pick_time_mode?: string;
|
|
51454
|
+
plants_per_day?: number;
|
|
51261
51455
|
plants_per_hour?: number;
|
|
51262
51456
|
require_same_carrier?: boolean;
|
|
51263
51457
|
require_same_crate_type?: boolean;
|
|
@@ -51281,6 +51475,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
51281
51475
|
optimization_strategy?: string;
|
|
51282
51476
|
own_cart_from_layers?: number;
|
|
51283
51477
|
pick_time_mode?: string;
|
|
51478
|
+
plants_per_day?: number;
|
|
51284
51479
|
plants_per_hour?: number;
|
|
51285
51480
|
require_same_carrier?: boolean;
|
|
51286
51481
|
require_same_crate_type?: boolean;
|
|
@@ -60258,6 +60453,51 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
60258
60453
|
referencedColumns: ["id"];
|
|
60259
60454
|
}];
|
|
60260
60455
|
};
|
|
60456
|
+
twinfield_invoice_pdf_cache: {
|
|
60457
|
+
Row: {
|
|
60458
|
+
connection_id: string;
|
|
60459
|
+
created_at: string;
|
|
60460
|
+
fetched_at: string;
|
|
60461
|
+
id: string;
|
|
60462
|
+
invoice_number: string;
|
|
60463
|
+
last_accessed_at: string;
|
|
60464
|
+
object_path: string;
|
|
60465
|
+
office_code: string;
|
|
60466
|
+
size_bytes: number;
|
|
60467
|
+
updated_at: string;
|
|
60468
|
+
};
|
|
60469
|
+
Insert: {
|
|
60470
|
+
connection_id: string;
|
|
60471
|
+
created_at?: string;
|
|
60472
|
+
fetched_at?: string;
|
|
60473
|
+
id?: string;
|
|
60474
|
+
invoice_number: string;
|
|
60475
|
+
last_accessed_at?: string;
|
|
60476
|
+
object_path: string;
|
|
60477
|
+
office_code: string;
|
|
60478
|
+
size_bytes?: number;
|
|
60479
|
+
updated_at?: string;
|
|
60480
|
+
};
|
|
60481
|
+
Update: {
|
|
60482
|
+
connection_id?: string;
|
|
60483
|
+
created_at?: string;
|
|
60484
|
+
fetched_at?: string;
|
|
60485
|
+
id?: string;
|
|
60486
|
+
invoice_number?: string;
|
|
60487
|
+
last_accessed_at?: string;
|
|
60488
|
+
object_path?: string;
|
|
60489
|
+
office_code?: string;
|
|
60490
|
+
size_bytes?: number;
|
|
60491
|
+
updated_at?: string;
|
|
60492
|
+
};
|
|
60493
|
+
Relationships: [{
|
|
60494
|
+
foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
|
|
60495
|
+
columns: ["connection_id"];
|
|
60496
|
+
isOneToOne: false;
|
|
60497
|
+
referencedRelation: "twinfield_connections";
|
|
60498
|
+
referencedColumns: ["id"];
|
|
60499
|
+
}];
|
|
60500
|
+
};
|
|
60261
60501
|
twinfield_invoice_settings: {
|
|
60262
60502
|
Row: {
|
|
60263
60503
|
created_at: string;
|