@flowselections/logistiek-engine 1.0.28 → 1.0.29
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/GeblokkeerdeOrdersCard.d.ts +2 -0
- package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts.map +1 -0
- package/dist-lib/components/GeblokkeerdeOrdersCard.js +44 -0
- package/dist-lib/components/RegiePage.d.ts.map +1 -1
- package/dist-lib/components/RegiePage.js +2 -1
- package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts +28 -0
- package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts.map +1 -0
- package/dist-lib/hooks/useGeblokkeerdeOrders.js +94 -0
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +1 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +52 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +52 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/moduleClient.d.ts +52 -0
- package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +52 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floridayDocuments.functions.d.ts +156 -0
- package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayPush.functions.d.ts +52 -0
- package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
- package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
- package/dist-lib/lib/handlers/logistics-tick.server.js +7 -0
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +260 -0
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanning.server.js +23 -3
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +104 -0
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts +52 -0
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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,EAEpB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAA0B,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAA+C,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAkCrG,wBAAgB,cAAc,CAC5B,KAAK,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,aAAa,CAAC,EAAE,GAAG,CAAA;CAAE,EACtG,IAAI,EAAE,MAAM,GACX;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAqCvD;AAID,wBAAsB,6BAA6B,CAAC,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAmE/G;AAMD,UAAU,QAAQ;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,wDAAwD;AACxD,MAAM,MAAM,cAAc,GAAG,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
p_order_ids: orderIds,
|
|
861
861
|
p_reason: reason,
|
|
862
862
|
p_details: {
|
|
863
|
+
// Stabiele sleutel: nooit afgeleid uit ordernummers of aantallen.
|
|
864
|
+
reason_code: "belading_onbekend",
|
|
863
865
|
bufferId,
|
|
864
866
|
path: "typescript",
|
|
865
867
|
carrier: guardProfile.code,
|
|
@@ -940,6 +942,7 @@ export async function replanBufferInternal(sb, bufferId, options = {}) {
|
|
|
940
942
|
p_order_ids: orderIds,
|
|
941
943
|
p_reason: reason,
|
|
942
944
|
p_details: {
|
|
945
|
+
reason_code: "afmetingen_onbekend",
|
|
943
946
|
bufferId,
|
|
944
947
|
path: "afmetingen",
|
|
945
948
|
carrier: carrierRow?.code ?? null,
|
|
@@ -1026,6 +1029,7 @@ export async function replanBufferInternal(sb, bufferId, options = {}) {
|
|
|
1026
1029
|
p_order_ids: orderIds,
|
|
1027
1030
|
p_reason: reason,
|
|
1028
1031
|
p_details: {
|
|
1032
|
+
reason_code: "kargrens_overschreden",
|
|
1029
1033
|
bufferId,
|
|
1030
1034
|
path: "typescript",
|
|
1031
1035
|
carts: plannedCarts.length,
|
|
@@ -1097,7 +1101,12 @@ export async function replanBufferInternal(sb, bufferId, options = {}) {
|
|
|
1097
1101
|
const { error: blockError } = await sb.rpc("logistics_plan_block", {
|
|
1098
1102
|
p_order_ids: orderIds,
|
|
1099
1103
|
p_reason: reason,
|
|
1100
|
-
p_details: {
|
|
1104
|
+
p_details: {
|
|
1105
|
+
reason_code: "geen_karren",
|
|
1106
|
+
bufferId,
|
|
1107
|
+
path: useDimensions ? "afmetingen" : "belading",
|
|
1108
|
+
carts: 0,
|
|
1109
|
+
},
|
|
1101
1110
|
});
|
|
1102
1111
|
if (blockError)
|
|
1103
1112
|
warnings.push(`Blokkade kon niet worden vastgelegd: ${blockError.message}`);
|
|
@@ -1289,7 +1298,13 @@ export async function replanBufferInternal(sb, bufferId, options = {}) {
|
|
|
1289
1298
|
await sb.rpc("logistics_plan_block", {
|
|
1290
1299
|
p_order_ids: orderIds,
|
|
1291
1300
|
p_reason: reason,
|
|
1292
|
-
p_details: {
|
|
1301
|
+
p_details: {
|
|
1302
|
+
reason_code: "verificatie_mislukt",
|
|
1303
|
+
bufferId,
|
|
1304
|
+
path: "verificatie",
|
|
1305
|
+
expectedMethod,
|
|
1306
|
+
expectedVersion,
|
|
1307
|
+
},
|
|
1293
1308
|
});
|
|
1294
1309
|
return {
|
|
1295
1310
|
ok: false,
|
|
@@ -1320,7 +1335,12 @@ export async function replanBufferInternal(sb, bufferId, options = {}) {
|
|
|
1320
1335
|
await sb.rpc("logistics_plan_block", {
|
|
1321
1336
|
p_order_ids: stillMissing,
|
|
1322
1337
|
p_reason: reason,
|
|
1323
|
-
p_details: {
|
|
1338
|
+
p_details: {
|
|
1339
|
+
reason_code: "bufferdekking_onvolledig",
|
|
1340
|
+
bufferId,
|
|
1341
|
+
path: "bufferdekking",
|
|
1342
|
+
missing: refs,
|
|
1343
|
+
},
|
|
1324
1344
|
});
|
|
1325
1345
|
return {
|
|
1326
1346
|
ok: false,
|
|
@@ -10235,6 +10235,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
10235
10235
|
next_attempt_at: string;
|
|
10236
10236
|
order_id: string;
|
|
10237
10237
|
reason: string;
|
|
10238
|
+
reason_code: string | null;
|
|
10238
10239
|
status: string;
|
|
10239
10240
|
updated_at: string;
|
|
10240
10241
|
};
|
|
@@ -10247,6 +10248,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
10247
10248
|
next_attempt_at?: string;
|
|
10248
10249
|
order_id: string;
|
|
10249
10250
|
reason?: string;
|
|
10251
|
+
reason_code?: string | null;
|
|
10250
10252
|
status?: string;
|
|
10251
10253
|
updated_at?: string;
|
|
10252
10254
|
};
|
|
@@ -10259,6 +10261,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
10259
10261
|
next_attempt_at?: string;
|
|
10260
10262
|
order_id?: string;
|
|
10261
10263
|
reason?: string;
|
|
10264
|
+
reason_code?: string | null;
|
|
10262
10265
|
status?: string;
|
|
10263
10266
|
updated_at?: string;
|
|
10264
10267
|
};
|
|
@@ -10963,6 +10966,21 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
10963
10966
|
referencedColumns: ["id"];
|
|
10964
10967
|
}];
|
|
10965
10968
|
};
|
|
10969
|
+
logistics_tick_heartbeat: {
|
|
10970
|
+
Row: {
|
|
10971
|
+
id: boolean;
|
|
10972
|
+
last_tick_at: string;
|
|
10973
|
+
};
|
|
10974
|
+
Insert: {
|
|
10975
|
+
id?: boolean;
|
|
10976
|
+
last_tick_at?: string;
|
|
10977
|
+
};
|
|
10978
|
+
Update: {
|
|
10979
|
+
id?: boolean;
|
|
10980
|
+
last_tick_at?: string;
|
|
10981
|
+
};
|
|
10982
|
+
Relationships: [];
|
|
10983
|
+
};
|
|
10966
10984
|
logistics_variables: {
|
|
10967
10985
|
Row: {
|
|
10968
10986
|
created_at: string;
|
|
@@ -22845,6 +22863,30 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
22845
22863
|
};
|
|
22846
22864
|
Returns: import("../integrations/supabase/types").Json;
|
|
22847
22865
|
};
|
|
22866
|
+
logistics_block_reason_code: {
|
|
22867
|
+
Args: {
|
|
22868
|
+
p_details?: import("../integrations/supabase/types").Json;
|
|
22869
|
+
p_reason: string;
|
|
22870
|
+
};
|
|
22871
|
+
Returns: string;
|
|
22872
|
+
};
|
|
22873
|
+
logistics_blocked_orders: {
|
|
22874
|
+
Args: never;
|
|
22875
|
+
Returns: {
|
|
22876
|
+
attempts: number;
|
|
22877
|
+
blocked_since: string;
|
|
22878
|
+
delivery_date: string;
|
|
22879
|
+
order_id: string;
|
|
22880
|
+
order_ref: string;
|
|
22881
|
+
queue_id: string;
|
|
22882
|
+
reason: string;
|
|
22883
|
+
reason_code: string;
|
|
22884
|
+
}[];
|
|
22885
|
+
};
|
|
22886
|
+
logistics_blocked_overview: {
|
|
22887
|
+
Args: never;
|
|
22888
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22889
|
+
};
|
|
22848
22890
|
logistics_buffer_criteria: {
|
|
22849
22891
|
Args: {
|
|
22850
22892
|
p_settings: import("../integrations/supabase/types").Json;
|
|
@@ -23714,6 +23756,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
23714
23756
|
Args: never;
|
|
23715
23757
|
Returns: number;
|
|
23716
23758
|
};
|
|
23759
|
+
logistics_plan_retry: {
|
|
23760
|
+
Args: {
|
|
23761
|
+
p_order_ids: string[];
|
|
23762
|
+
};
|
|
23763
|
+
Returns: number;
|
|
23764
|
+
};
|
|
23717
23765
|
logistics_plan_setting: {
|
|
23718
23766
|
Args: {
|
|
23719
23767
|
p_default: number;
|
|
@@ -23949,6 +23997,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
|
|
|
23949
23997
|
};
|
|
23950
23998
|
Returns: number;
|
|
23951
23999
|
};
|
|
24000
|
+
logistics_tick_ping: {
|
|
24001
|
+
Args: never;
|
|
24002
|
+
Returns: string;
|
|
24003
|
+
};
|
|
23952
24004
|
logistics_upsert_task: {
|
|
23953
24005
|
Args: {
|
|
23954
24006
|
p_buffer_ref: string;
|
|
@@ -36141,6 +36193,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
36141
36193
|
next_attempt_at: string;
|
|
36142
36194
|
order_id: string;
|
|
36143
36195
|
reason: string;
|
|
36196
|
+
reason_code: string | null;
|
|
36144
36197
|
status: string;
|
|
36145
36198
|
updated_at: string;
|
|
36146
36199
|
};
|
|
@@ -36153,6 +36206,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
36153
36206
|
next_attempt_at?: string;
|
|
36154
36207
|
order_id: string;
|
|
36155
36208
|
reason?: string;
|
|
36209
|
+
reason_code?: string | null;
|
|
36156
36210
|
status?: string;
|
|
36157
36211
|
updated_at?: string;
|
|
36158
36212
|
};
|
|
@@ -36165,6 +36219,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
36165
36219
|
next_attempt_at?: string;
|
|
36166
36220
|
order_id?: string;
|
|
36167
36221
|
reason?: string;
|
|
36222
|
+
reason_code?: string | null;
|
|
36168
36223
|
status?: string;
|
|
36169
36224
|
updated_at?: string;
|
|
36170
36225
|
};
|
|
@@ -36869,6 +36924,21 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
36869
36924
|
referencedColumns: ["id"];
|
|
36870
36925
|
}];
|
|
36871
36926
|
};
|
|
36927
|
+
logistics_tick_heartbeat: {
|
|
36928
|
+
Row: {
|
|
36929
|
+
id: boolean;
|
|
36930
|
+
last_tick_at: string;
|
|
36931
|
+
};
|
|
36932
|
+
Insert: {
|
|
36933
|
+
id?: boolean;
|
|
36934
|
+
last_tick_at?: string;
|
|
36935
|
+
};
|
|
36936
|
+
Update: {
|
|
36937
|
+
id?: boolean;
|
|
36938
|
+
last_tick_at?: string;
|
|
36939
|
+
};
|
|
36940
|
+
Relationships: [];
|
|
36941
|
+
};
|
|
36872
36942
|
logistics_variables: {
|
|
36873
36943
|
Row: {
|
|
36874
36944
|
created_at: string;
|
|
@@ -48751,6 +48821,30 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
48751
48821
|
};
|
|
48752
48822
|
Returns: import("../integrations/supabase/types").Json;
|
|
48753
48823
|
};
|
|
48824
|
+
logistics_block_reason_code: {
|
|
48825
|
+
Args: {
|
|
48826
|
+
p_details?: import("../integrations/supabase/types").Json;
|
|
48827
|
+
p_reason: string;
|
|
48828
|
+
};
|
|
48829
|
+
Returns: string;
|
|
48830
|
+
};
|
|
48831
|
+
logistics_blocked_orders: {
|
|
48832
|
+
Args: never;
|
|
48833
|
+
Returns: {
|
|
48834
|
+
attempts: number;
|
|
48835
|
+
blocked_since: string;
|
|
48836
|
+
delivery_date: string;
|
|
48837
|
+
order_id: string;
|
|
48838
|
+
order_ref: string;
|
|
48839
|
+
queue_id: string;
|
|
48840
|
+
reason: string;
|
|
48841
|
+
reason_code: string;
|
|
48842
|
+
}[];
|
|
48843
|
+
};
|
|
48844
|
+
logistics_blocked_overview: {
|
|
48845
|
+
Args: never;
|
|
48846
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
48847
|
+
};
|
|
48754
48848
|
logistics_buffer_criteria: {
|
|
48755
48849
|
Args: {
|
|
48756
48850
|
p_settings: import("../integrations/supabase/types").Json;
|
|
@@ -49620,6 +49714,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
49620
49714
|
Args: never;
|
|
49621
49715
|
Returns: number;
|
|
49622
49716
|
};
|
|
49717
|
+
logistics_plan_retry: {
|
|
49718
|
+
Args: {
|
|
49719
|
+
p_order_ids: string[];
|
|
49720
|
+
};
|
|
49721
|
+
Returns: number;
|
|
49722
|
+
};
|
|
49623
49723
|
logistics_plan_setting: {
|
|
49624
49724
|
Args: {
|
|
49625
49725
|
p_default: number;
|
|
@@ -49855,6 +49955,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
|
|
|
49855
49955
|
};
|
|
49856
49956
|
Returns: number;
|
|
49857
49957
|
};
|
|
49958
|
+
logistics_tick_ping: {
|
|
49959
|
+
Args: never;
|
|
49960
|
+
Returns: string;
|
|
49961
|
+
};
|
|
49858
49962
|
logistics_upsert_task: {
|
|
49859
49963
|
Args: {
|
|
49860
49964
|
p_buffer_ref: string;
|