@flowselections/logistiek-engine 1.0.15 → 1.0.17
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/RuleEnginePage.js +1 -1
- package/dist-lib/components/rule-engine/RuleFieldInput.d.ts +1 -1
- package/dist-lib/components/rule-engine/RuleFieldInput.d.ts.map +1 -1
- package/dist-lib/components/rule-engine/RuleFieldInput.js +11 -3
- package/dist-lib/hooks/useDocumentLayouts.d.ts +1 -0
- package/dist-lib/hooks/useDocumentLayouts.d.ts.map +1 -1
- package/dist-lib/hooks/useDocumentLayouts.js +8 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +55 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +55 -1
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/moduleClient.d.ts +55 -1
- package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +58 -1
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floridayDocuments.functions.d.ts +165 -3
- package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayPush.functions.d.ts +55 -1
- package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanner.d.ts +1 -1
- package/dist-lib/lib/loadCarrierPlanner.js +1 -1
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +275 -5
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanning.server.d.ts +6 -0
- package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanning.server.js +83 -17
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +110 -2
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts +55 -1
- 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 +103 -0
- package/dist-lib/lib/ruleEngineSchema.d.ts +7 -1
- package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
- package/dist-lib/lib/ruleEngineSchema.js +48 -8
- package/package.json +1 -1
|
@@ -45,6 +45,12 @@ export interface BeladingRules {
|
|
|
45
45
|
export declare function loadBeladingRules(sb: SupabaseClient): Promise<BeladingRules | null>;
|
|
46
46
|
/** Past de grenzen uit de werkwijze toe op het capaciteitsprofiel van een ladingdrager. */
|
|
47
47
|
export declare function applyRulesToProfile(profile: CarrierProfile, rules: BeladingRules | null): CarrierProfile;
|
|
48
|
+
/**
|
|
49
|
+
* Verdeelt de planten over ladingdragers volgens de Floriday-verhouding:
|
|
50
|
+
* planten per kar = pieces_per_package x packages_per_layer x layers_per_load_carrier.
|
|
51
|
+
* Geen optimalisatie, geen mengregels, geen laagherverdeling — alleen vullen.
|
|
52
|
+
*/
|
|
53
|
+
export declare function planByFloridayPacking(inputs: PlannerInputItem[], profile: CarrierProfile, packing: Belading): PlannedLoadUnit[];
|
|
48
54
|
export interface ReplanResult {
|
|
49
55
|
ok: boolean;
|
|
50
56
|
bufferId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadCarrierPlanning.server.d.ts","sourceRoot":"","sources":["../../src/lib/loadCarrierPlanning.server.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"loadCarrierPlanning.server.d.ts","sourceRoot":"","sources":["../../src/lib/loadCarrierPlanning.server.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cA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MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;CAC3B;AAGD,MAAM,WAAW,aAAa;IAC5B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,wBAAsB,oBAAoB,CACxC,EAAE,EAAE,cAAc,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,CAyUvB;AAGD,wBAAsB,mBAAmB,CACvC,EAAE,EAAE,cAAc,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAI9B"}
|
|
@@ -342,6 +342,75 @@ export function applyRulesToProfile(profile, rules) {
|
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
// ---------------------------------------------------------------------------
|
|
345
|
+
// Overname-pad: de beladingverhouding van Floriday letterlijk volgen
|
|
346
|
+
// ---------------------------------------------------------------------------
|
|
347
|
+
/**
|
|
348
|
+
* Verdeelt de planten over ladingdragers volgens de Floriday-verhouding:
|
|
349
|
+
* planten per kar = pieces_per_package x packages_per_layer x layers_per_load_carrier.
|
|
350
|
+
* Geen optimalisatie, geen mengregels, geen laagherverdeling — alleen vullen.
|
|
351
|
+
*/
|
|
352
|
+
export function planByFloridayPacking(inputs, profile, packing) {
|
|
353
|
+
const ppc = Math.max(1, packing.plants_per_crate);
|
|
354
|
+
const cpl = Math.max(1, packing.crates_per_layer);
|
|
355
|
+
const lpc = Math.max(1, packing.layers_per_cart);
|
|
356
|
+
const perCart = ppc * cpl * lpc;
|
|
357
|
+
const carts = [];
|
|
358
|
+
let current = null;
|
|
359
|
+
let currentPlants = 0;
|
|
360
|
+
const openCart = () => {
|
|
361
|
+
current = {
|
|
362
|
+
cart_number: carts.length + 1,
|
|
363
|
+
carrier_type: profile.code,
|
|
364
|
+
carrier_type_id: profile.id ?? null,
|
|
365
|
+
source: "auto",
|
|
366
|
+
is_complete: false,
|
|
367
|
+
occupancy_pct: 0,
|
|
368
|
+
total_layers_used: 0,
|
|
369
|
+
max_layers: lpc,
|
|
370
|
+
weight_kg: null,
|
|
371
|
+
items: [],
|
|
372
|
+
};
|
|
373
|
+
currentPlants = 0;
|
|
374
|
+
carts.push(current);
|
|
375
|
+
};
|
|
376
|
+
for (const input of inputs) {
|
|
377
|
+
let left = Math.max(0, Math.round(input.plants));
|
|
378
|
+
while (left > 0) {
|
|
379
|
+
if (!current || currentPlants >= perCart)
|
|
380
|
+
openCart();
|
|
381
|
+
const cart = current;
|
|
382
|
+
const take = Math.min(left, perCart - currentPlants);
|
|
383
|
+
const crates = Math.max(1, Math.ceil(take / ppc));
|
|
384
|
+
const layerFraction = crates / cpl;
|
|
385
|
+
const item = {
|
|
386
|
+
order_item_id: input.order_item_id,
|
|
387
|
+
order_id: input.order_id ?? null,
|
|
388
|
+
product_id: input.product_id,
|
|
389
|
+
product_name: input.product_name,
|
|
390
|
+
crates,
|
|
391
|
+
plants: take,
|
|
392
|
+
boxes: crates,
|
|
393
|
+
weight_kg: input.weight_per_crate != null ? Number((input.weight_per_crate * crates).toFixed(2)) : null,
|
|
394
|
+
plants_per_crate: ppc,
|
|
395
|
+
crates_per_layer: cpl,
|
|
396
|
+
layers_per_cart: lpc,
|
|
397
|
+
layer_fraction: Number(layerFraction.toFixed(3)),
|
|
398
|
+
layer_share_pct: Number(((100 * layerFraction) / lpc).toFixed(2)),
|
|
399
|
+
};
|
|
400
|
+
cart.items.push(item);
|
|
401
|
+
currentPlants += take;
|
|
402
|
+
left -= take;
|
|
403
|
+
cart.total_layers_used = Number(cart.items.reduce((s, i) => s + i.layer_fraction, 0).toFixed(2));
|
|
404
|
+
cart.occupancy_pct = Number(((100 * currentPlants) / perCart).toFixed(1));
|
|
405
|
+
cart.is_complete = currentPlants >= perCart;
|
|
406
|
+
cart.weight_kg = cart.items.some((i) => i.weight_kg != null)
|
|
407
|
+
? Number(cart.items.reduce((s, i) => s + (i.weight_kg ?? 0), 0).toFixed(2))
|
|
408
|
+
: null;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
return carts;
|
|
412
|
+
}
|
|
413
|
+
// ---------------------------------------------------------------------------
|
|
345
414
|
// Herplannen van een buffer
|
|
346
415
|
// ---------------------------------------------------------------------------
|
|
347
416
|
/** Maximaal aantal ladingdragers dat één orderbuffer mag opleveren. */
|
|
@@ -447,25 +516,22 @@ export async function replanBufferInternal(sb, bufferId, options = {}) {
|
|
|
447
516
|
}
|
|
448
517
|
let plannedCarts = [];
|
|
449
518
|
let usedFloridayPacking = false;
|
|
519
|
+
// Overname-pad: één order in de buffer én een volledige Floriday-verpakking.
|
|
520
|
+
// Dan neemt de engine de verhouding van Floriday over en optimaliseert niet.
|
|
521
|
+
// (De oude tak eiste `floriday_packing.carts` als array; Floriday stuurt zo'n
|
|
522
|
+
// kant-en-klare karrenlijst nergens mee, die tak is nooit genomen en is
|
|
523
|
+
// daarom verwijderd.)
|
|
450
524
|
const solo = orderRows.length === 1 ? orderRows[0] : null;
|
|
451
|
-
const
|
|
452
|
-
const
|
|
453
|
-
|
|
525
|
+
const soloPacking = solo ? beladingFromFloridayPacking(solo.custom_fields?.floriday_packing) : null;
|
|
526
|
+
const takeoverProfile = profileFor(profiles, options.carrierType ?? defaultProfile.code);
|
|
527
|
+
const takeoverAllowed = takeoverProfile.capacity_model === "layered" || takeoverProfile.capacity_model === "stacked";
|
|
528
|
+
if (solo && soloPacking && takeoverAllowed) {
|
|
454
529
|
usedFloridayPacking = true;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
carrier_type_id: profile.id ?? null,
|
|
461
|
-
source: "auto",
|
|
462
|
-
is_complete: Boolean(c.is_complete),
|
|
463
|
-
occupancy_pct: Number(c.occupancy_pct ?? 100),
|
|
464
|
-
total_layers_used: Number(c.total_layers_used ?? profile.layers_per_carrier),
|
|
465
|
-
max_layers: profile.layers_per_carrier,
|
|
466
|
-
weight_kg: null,
|
|
467
|
-
items: Array.isArray(c.items) ? c.items : [],
|
|
468
|
-
}));
|
|
530
|
+
plannedCarts = planByFloridayPacking(inputs, takeoverProfile, soloPacking);
|
|
531
|
+
console.log(`[logistiek-engine] buffer ${bufferId}: overname Floriday-verpakking ` +
|
|
532
|
+
`(${soloPacking.plants_per_crate}x${soloPacking.crates_per_layer}x${soloPacking.layers_per_cart} = ` +
|
|
533
|
+
`${soloPacking.plants_per_crate * soloPacking.crates_per_layer * soloPacking.layers_per_cart} planten/kar) ` +
|
|
534
|
+
`-> ${plannedCarts.length} ladingdragers`);
|
|
469
535
|
}
|
|
470
536
|
else {
|
|
471
537
|
// Ladingdrager per orderregel bepalen en per type een ronde draaien.
|
|
@@ -18619,6 +18619,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18619
18619
|
werkbon_package_items: {
|
|
18620
18620
|
Row: {
|
|
18621
18621
|
article_number: string | null;
|
|
18622
|
+
artikel_id: string | null;
|
|
18622
18623
|
created_at: string;
|
|
18623
18624
|
gtin: string | null;
|
|
18624
18625
|
id: string;
|
|
@@ -18636,6 +18637,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18636
18637
|
};
|
|
18637
18638
|
Insert: {
|
|
18638
18639
|
article_number?: string | null;
|
|
18640
|
+
artikel_id?: string | null;
|
|
18639
18641
|
created_at?: string;
|
|
18640
18642
|
gtin?: string | null;
|
|
18641
18643
|
id?: string;
|
|
@@ -18653,6 +18655,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18653
18655
|
};
|
|
18654
18656
|
Update: {
|
|
18655
18657
|
article_number?: string | null;
|
|
18658
|
+
artikel_id?: string | null;
|
|
18656
18659
|
created_at?: string;
|
|
18657
18660
|
gtin?: string | null;
|
|
18658
18661
|
id?: string;
|
|
@@ -18669,6 +18672,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
18669
18672
|
updated_at?: string;
|
|
18670
18673
|
};
|
|
18671
18674
|
Relationships: [{
|
|
18675
|
+
foreignKeyName: "werkbon_package_items_artikel_id_fkey";
|
|
18676
|
+
columns: ["artikel_id"];
|
|
18677
|
+
isOneToOne: false;
|
|
18678
|
+
referencedRelation: "artikelen_cache";
|
|
18679
|
+
referencedColumns: ["id"];
|
|
18680
|
+
}, {
|
|
18672
18681
|
foreignKeyName: "werkbon_package_items_package_id_fkey";
|
|
18673
18682
|
columns: ["package_id"];
|
|
18674
18683
|
isOneToOne: false;
|
|
@@ -19891,6 +19900,20 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
19891
19900
|
referencedColumns: ["id"];
|
|
19892
19901
|
}];
|
|
19893
19902
|
};
|
|
19903
|
+
v_werkbon_totalen: {
|
|
19904
|
+
Row: {
|
|
19905
|
+
packages_cents: number | null;
|
|
19906
|
+
packages_minutes: number | null;
|
|
19907
|
+
werkbon_id: string | null;
|
|
19908
|
+
};
|
|
19909
|
+
Relationships: [{
|
|
19910
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
19911
|
+
columns: ["werkbon_id"];
|
|
19912
|
+
isOneToOne: false;
|
|
19913
|
+
referencedRelation: "werkbonnen";
|
|
19914
|
+
referencedColumns: ["id"];
|
|
19915
|
+
}];
|
|
19916
|
+
};
|
|
19894
19917
|
};
|
|
19895
19918
|
Functions: {
|
|
19896
19919
|
_floriday_schedule_job: {
|
|
@@ -21827,6 +21850,25 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
21827
21850
|
};
|
|
21828
21851
|
Returns: string;
|
|
21829
21852
|
};
|
|
21853
|
+
pakket_suggesties_voor_tekst: {
|
|
21854
|
+
Args: {
|
|
21855
|
+
_tekst: string;
|
|
21856
|
+
};
|
|
21857
|
+
Returns: {
|
|
21858
|
+
hit_type: string;
|
|
21859
|
+
package_id: string;
|
|
21860
|
+
priority: number;
|
|
21861
|
+
}[];
|
|
21862
|
+
};
|
|
21863
|
+
pakket_voor_reistijd: {
|
|
21864
|
+
Args: {
|
|
21865
|
+
_minuten: number;
|
|
21866
|
+
};
|
|
21867
|
+
Returns: {
|
|
21868
|
+
package_id: string;
|
|
21869
|
+
priority: number;
|
|
21870
|
+
}[];
|
|
21871
|
+
};
|
|
21830
21872
|
pick_active_printers: {
|
|
21831
21873
|
Args: never;
|
|
21832
21874
|
Returns: {
|
|
@@ -22877,6 +22919,18 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
22877
22919
|
Args: never;
|
|
22878
22920
|
Returns: string;
|
|
22879
22921
|
};
|
|
22922
|
+
werkbon_totalen: {
|
|
22923
|
+
Args: {
|
|
22924
|
+
_werkbon_id: string;
|
|
22925
|
+
};
|
|
22926
|
+
Returns: {
|
|
22927
|
+
materials_cents: number;
|
|
22928
|
+
packages_cents: number;
|
|
22929
|
+
packages_minutes: number;
|
|
22930
|
+
total_cents: number;
|
|
22931
|
+
total_minutes: number;
|
|
22932
|
+
}[];
|
|
22933
|
+
};
|
|
22880
22934
|
wo_create_from_source: {
|
|
22881
22935
|
Args: {
|
|
22882
22936
|
_payload?: import("../integrations/supabase/types").Json;
|
|
@@ -22915,7 +22969,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
22915
22969
|
};
|
|
22916
22970
|
CompositeTypes: { [_ in never]: never; };
|
|
22917
22971
|
}, {
|
|
22918
|
-
PostgrestVersion: "14.
|
|
22972
|
+
PostgrestVersion: "14.17";
|
|
22919
22973
|
}>;
|
|
22920
22974
|
userId: string;
|
|
22921
22975
|
claims: import("@supabase/auth-js").User;
|
|
@@ -41549,6 +41603,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
41549
41603
|
werkbon_package_items: {
|
|
41550
41604
|
Row: {
|
|
41551
41605
|
article_number: string | null;
|
|
41606
|
+
artikel_id: string | null;
|
|
41552
41607
|
created_at: string;
|
|
41553
41608
|
gtin: string | null;
|
|
41554
41609
|
id: string;
|
|
@@ -41566,6 +41621,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
41566
41621
|
};
|
|
41567
41622
|
Insert: {
|
|
41568
41623
|
article_number?: string | null;
|
|
41624
|
+
artikel_id?: string | null;
|
|
41569
41625
|
created_at?: string;
|
|
41570
41626
|
gtin?: string | null;
|
|
41571
41627
|
id?: string;
|
|
@@ -41583,6 +41639,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
41583
41639
|
};
|
|
41584
41640
|
Update: {
|
|
41585
41641
|
article_number?: string | null;
|
|
41642
|
+
artikel_id?: string | null;
|
|
41586
41643
|
created_at?: string;
|
|
41587
41644
|
gtin?: string | null;
|
|
41588
41645
|
id?: string;
|
|
@@ -41599,6 +41656,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
41599
41656
|
updated_at?: string;
|
|
41600
41657
|
};
|
|
41601
41658
|
Relationships: [{
|
|
41659
|
+
foreignKeyName: "werkbon_package_items_artikel_id_fkey";
|
|
41660
|
+
columns: ["artikel_id"];
|
|
41661
|
+
isOneToOne: false;
|
|
41662
|
+
referencedRelation: "artikelen_cache";
|
|
41663
|
+
referencedColumns: ["id"];
|
|
41664
|
+
}, {
|
|
41602
41665
|
foreignKeyName: "werkbon_package_items_package_id_fkey";
|
|
41603
41666
|
columns: ["package_id"];
|
|
41604
41667
|
isOneToOne: false;
|
|
@@ -42821,6 +42884,20 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
42821
42884
|
referencedColumns: ["id"];
|
|
42822
42885
|
}];
|
|
42823
42886
|
};
|
|
42887
|
+
v_werkbon_totalen: {
|
|
42888
|
+
Row: {
|
|
42889
|
+
packages_cents: number | null;
|
|
42890
|
+
packages_minutes: number | null;
|
|
42891
|
+
werkbon_id: string | null;
|
|
42892
|
+
};
|
|
42893
|
+
Relationships: [{
|
|
42894
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
42895
|
+
columns: ["werkbon_id"];
|
|
42896
|
+
isOneToOne: false;
|
|
42897
|
+
referencedRelation: "werkbonnen";
|
|
42898
|
+
referencedColumns: ["id"];
|
|
42899
|
+
}];
|
|
42900
|
+
};
|
|
42824
42901
|
};
|
|
42825
42902
|
Functions: {
|
|
42826
42903
|
_floriday_schedule_job: {
|
|
@@ -44757,6 +44834,25 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
44757
44834
|
};
|
|
44758
44835
|
Returns: string;
|
|
44759
44836
|
};
|
|
44837
|
+
pakket_suggesties_voor_tekst: {
|
|
44838
|
+
Args: {
|
|
44839
|
+
_tekst: string;
|
|
44840
|
+
};
|
|
44841
|
+
Returns: {
|
|
44842
|
+
hit_type: string;
|
|
44843
|
+
package_id: string;
|
|
44844
|
+
priority: number;
|
|
44845
|
+
}[];
|
|
44846
|
+
};
|
|
44847
|
+
pakket_voor_reistijd: {
|
|
44848
|
+
Args: {
|
|
44849
|
+
_minuten: number;
|
|
44850
|
+
};
|
|
44851
|
+
Returns: {
|
|
44852
|
+
package_id: string;
|
|
44853
|
+
priority: number;
|
|
44854
|
+
}[];
|
|
44855
|
+
};
|
|
44760
44856
|
pick_active_printers: {
|
|
44761
44857
|
Args: never;
|
|
44762
44858
|
Returns: {
|
|
@@ -45807,6 +45903,18 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
45807
45903
|
Args: never;
|
|
45808
45904
|
Returns: string;
|
|
45809
45905
|
};
|
|
45906
|
+
werkbon_totalen: {
|
|
45907
|
+
Args: {
|
|
45908
|
+
_werkbon_id: string;
|
|
45909
|
+
};
|
|
45910
|
+
Returns: {
|
|
45911
|
+
materials_cents: number;
|
|
45912
|
+
packages_cents: number;
|
|
45913
|
+
packages_minutes: number;
|
|
45914
|
+
total_cents: number;
|
|
45915
|
+
total_minutes: number;
|
|
45916
|
+
}[];
|
|
45917
|
+
};
|
|
45810
45918
|
wo_create_from_source: {
|
|
45811
45919
|
Args: {
|
|
45812
45920
|
_payload?: import("../integrations/supabase/types").Json;
|
|
@@ -45845,7 +45953,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
45845
45953
|
};
|
|
45846
45954
|
CompositeTypes: { [_ in never]: never; };
|
|
45847
45955
|
}, {
|
|
45848
|
-
PostgrestVersion: "14.
|
|
45956
|
+
PostgrestVersion: "14.17";
|
|
45849
45957
|
}>;
|
|
45850
45958
|
userId: string;
|
|
45851
45959
|
claims: import("@supabase/auth-js").User;
|