@flowselections/logistiek-engine 1.0.24 → 1.0.25
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/LogistiekEnginePage.d.ts.map +1 -1
- package/dist-lib/components/LogistiekEnginePage.js +8 -2
- package/dist-lib/components/RegiePage.d.ts.map +1 -1
- package/dist-lib/components/RegiePage.js +1 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +226 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +226 -1
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/moduleClient.d.ts +226 -1
- package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +228 -1
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floridayDocuments.functions.d.ts +678 -3
- package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
- package/dist-lib/lib/floridayPush.functions.d.ts +226 -1
- 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 +11 -0
- package/dist-lib/lib/loadCarrierPlanner.d.ts +6 -0
- package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanner.js +3 -0
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1130 -5
- 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 +3 -0
- package/dist-lib/lib/logisticsPlanner.d.ts +2 -0
- package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
- package/dist-lib/lib/logisticsPlanner.js +17 -0
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +452 -2
- package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsRecalculate.functions.d.ts +226 -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 +185 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ export type Json = string | number | boolean | null | {
|
|
|
3
3
|
} | Json[];
|
|
4
4
|
export type Database = {
|
|
5
5
|
__InternalSupabase: {
|
|
6
|
-
PostgrestVersion: "14.
|
|
6
|
+
PostgrestVersion: "14.5";
|
|
7
7
|
};
|
|
8
8
|
public: {
|
|
9
9
|
Tables: {
|
|
@@ -2911,6 +2911,86 @@ export type Database = {
|
|
|
2911
2911
|
};
|
|
2912
2912
|
Relationships: [];
|
|
2913
2913
|
};
|
|
2914
|
+
delivery_notes: {
|
|
2915
|
+
Row: {
|
|
2916
|
+
byte_size: number | null;
|
|
2917
|
+
connection_id: string | null;
|
|
2918
|
+
content_type: string;
|
|
2919
|
+
created_at: string;
|
|
2920
|
+
error_message: string | null;
|
|
2921
|
+
fetched_at: string | null;
|
|
2922
|
+
fulfillment_order_id: string | null;
|
|
2923
|
+
http_status: number | null;
|
|
2924
|
+
id: string;
|
|
2925
|
+
label_code: string | null;
|
|
2926
|
+
letter: string | null;
|
|
2927
|
+
load_carrier_index: number | null;
|
|
2928
|
+
load_carrier_type: string | null;
|
|
2929
|
+
order_id: string | null;
|
|
2930
|
+
order_number: string | null;
|
|
2931
|
+
packages: number | null;
|
|
2932
|
+
source: string;
|
|
2933
|
+
status: string;
|
|
2934
|
+
storage_bucket: string;
|
|
2935
|
+
storage_path: string | null;
|
|
2936
|
+
updated_at: string;
|
|
2937
|
+
};
|
|
2938
|
+
Insert: {
|
|
2939
|
+
byte_size?: number | null;
|
|
2940
|
+
connection_id?: string | null;
|
|
2941
|
+
content_type?: string;
|
|
2942
|
+
created_at?: string;
|
|
2943
|
+
error_message?: string | null;
|
|
2944
|
+
fetched_at?: string | null;
|
|
2945
|
+
fulfillment_order_id?: string | null;
|
|
2946
|
+
http_status?: number | null;
|
|
2947
|
+
id?: string;
|
|
2948
|
+
label_code?: string | null;
|
|
2949
|
+
letter?: string | null;
|
|
2950
|
+
load_carrier_index?: number | null;
|
|
2951
|
+
load_carrier_type?: string | null;
|
|
2952
|
+
order_id?: string | null;
|
|
2953
|
+
order_number?: string | null;
|
|
2954
|
+
packages?: number | null;
|
|
2955
|
+
source?: string;
|
|
2956
|
+
status?: string;
|
|
2957
|
+
storage_bucket?: string;
|
|
2958
|
+
storage_path?: string | null;
|
|
2959
|
+
updated_at?: string;
|
|
2960
|
+
};
|
|
2961
|
+
Update: {
|
|
2962
|
+
byte_size?: number | null;
|
|
2963
|
+
connection_id?: string | null;
|
|
2964
|
+
content_type?: string;
|
|
2965
|
+
created_at?: string;
|
|
2966
|
+
error_message?: string | null;
|
|
2967
|
+
fetched_at?: string | null;
|
|
2968
|
+
fulfillment_order_id?: string | null;
|
|
2969
|
+
http_status?: number | null;
|
|
2970
|
+
id?: string;
|
|
2971
|
+
label_code?: string | null;
|
|
2972
|
+
letter?: string | null;
|
|
2973
|
+
load_carrier_index?: number | null;
|
|
2974
|
+
load_carrier_type?: string | null;
|
|
2975
|
+
order_id?: string | null;
|
|
2976
|
+
order_number?: string | null;
|
|
2977
|
+
packages?: number | null;
|
|
2978
|
+
source?: string;
|
|
2979
|
+
status?: string;
|
|
2980
|
+
storage_bucket?: string;
|
|
2981
|
+
storage_path?: string | null;
|
|
2982
|
+
updated_at?: string;
|
|
2983
|
+
};
|
|
2984
|
+
Relationships: [
|
|
2985
|
+
{
|
|
2986
|
+
foreignKeyName: "delivery_notes_order_id_fkey";
|
|
2987
|
+
columns: ["order_id"];
|
|
2988
|
+
isOneToOne: false;
|
|
2989
|
+
referencedRelation: "orders";
|
|
2990
|
+
referencedColumns: ["id"];
|
|
2991
|
+
}
|
|
2992
|
+
];
|
|
2993
|
+
};
|
|
2914
2994
|
document_bronregels: {
|
|
2915
2995
|
Row: {
|
|
2916
2996
|
bron: string;
|
|
@@ -14041,6 +14121,9 @@ export type Database = {
|
|
|
14041
14121
|
is_herprint: boolean;
|
|
14042
14122
|
kopieen: number;
|
|
14043
14123
|
layout_id: string | null;
|
|
14124
|
+
lokaal_opgeslagen_op: string | null;
|
|
14125
|
+
lokale_pdf_fout: string | null;
|
|
14126
|
+
lokale_pdf_status: string | null;
|
|
14044
14127
|
opgepakt_op: string | null;
|
|
14045
14128
|
paginas: number;
|
|
14046
14129
|
payload: Json;
|
|
@@ -14049,6 +14132,7 @@ export type Database = {
|
|
|
14049
14132
|
pogingen: number;
|
|
14050
14133
|
printer_id: string | null;
|
|
14051
14134
|
render_html: string | null;
|
|
14135
|
+
resultaat_pdf_base64: string | null;
|
|
14052
14136
|
status: Database["public"]["Enums"]["print_job_status"];
|
|
14053
14137
|
updated_at: string;
|
|
14054
14138
|
volgende_poging: string | null;
|
|
@@ -14073,6 +14157,9 @@ export type Database = {
|
|
|
14073
14157
|
is_herprint?: boolean;
|
|
14074
14158
|
kopieen?: number;
|
|
14075
14159
|
layout_id?: string | null;
|
|
14160
|
+
lokaal_opgeslagen_op?: string | null;
|
|
14161
|
+
lokale_pdf_fout?: string | null;
|
|
14162
|
+
lokale_pdf_status?: string | null;
|
|
14076
14163
|
opgepakt_op?: string | null;
|
|
14077
14164
|
paginas?: number;
|
|
14078
14165
|
payload?: Json;
|
|
@@ -14081,6 +14168,7 @@ export type Database = {
|
|
|
14081
14168
|
pogingen?: number;
|
|
14082
14169
|
printer_id?: string | null;
|
|
14083
14170
|
render_html?: string | null;
|
|
14171
|
+
resultaat_pdf_base64?: string | null;
|
|
14084
14172
|
status?: Database["public"]["Enums"]["print_job_status"];
|
|
14085
14173
|
updated_at?: string;
|
|
14086
14174
|
volgende_poging?: string | null;
|
|
@@ -14105,6 +14193,9 @@ export type Database = {
|
|
|
14105
14193
|
is_herprint?: boolean;
|
|
14106
14194
|
kopieen?: number;
|
|
14107
14195
|
layout_id?: string | null;
|
|
14196
|
+
lokaal_opgeslagen_op?: string | null;
|
|
14197
|
+
lokale_pdf_fout?: string | null;
|
|
14198
|
+
lokale_pdf_status?: string | null;
|
|
14108
14199
|
opgepakt_op?: string | null;
|
|
14109
14200
|
paginas?: number;
|
|
14110
14201
|
payload?: Json;
|
|
@@ -14113,6 +14204,7 @@ export type Database = {
|
|
|
14113
14204
|
pogingen?: number;
|
|
14114
14205
|
printer_id?: string | null;
|
|
14115
14206
|
render_html?: string | null;
|
|
14207
|
+
resultaat_pdf_base64?: string | null;
|
|
14116
14208
|
status?: Database["public"]["Enums"]["print_job_status"];
|
|
14117
14209
|
updated_at?: string;
|
|
14118
14210
|
volgende_poging?: string | null;
|
|
@@ -14519,6 +14611,7 @@ export type Database = {
|
|
|
14519
14611
|
ondersteunde_laden: Json | null;
|
|
14520
14612
|
online: boolean;
|
|
14521
14613
|
papierformaat: string;
|
|
14614
|
+
pdf_map: string | null;
|
|
14522
14615
|
poort: number | null;
|
|
14523
14616
|
soort: Database["public"]["Enums"]["printer_kind"];
|
|
14524
14617
|
systeemnaam: string;
|
|
@@ -14544,6 +14637,7 @@ export type Database = {
|
|
|
14544
14637
|
ondersteunde_laden?: Json | null;
|
|
14545
14638
|
online?: boolean;
|
|
14546
14639
|
papierformaat?: string;
|
|
14640
|
+
pdf_map?: string | null;
|
|
14547
14641
|
poort?: number | null;
|
|
14548
14642
|
soort?: Database["public"]["Enums"]["printer_kind"];
|
|
14549
14643
|
systeemnaam?: string;
|
|
@@ -14569,6 +14663,7 @@ export type Database = {
|
|
|
14569
14663
|
ondersteunde_laden?: Json | null;
|
|
14570
14664
|
online?: boolean;
|
|
14571
14665
|
papierformaat?: string;
|
|
14666
|
+
pdf_map?: string | null;
|
|
14572
14667
|
poort?: number | null;
|
|
14573
14668
|
soort?: Database["public"]["Enums"]["printer_kind"];
|
|
14574
14669
|
systeemnaam?: string;
|
|
@@ -20986,6 +21081,9 @@ export type Database = {
|
|
|
20986
21081
|
is_herprint: boolean;
|
|
20987
21082
|
kopieen: number;
|
|
20988
21083
|
layout_id: string | null;
|
|
21084
|
+
lokaal_opgeslagen_op: string | null;
|
|
21085
|
+
lokale_pdf_fout: string | null;
|
|
21086
|
+
lokale_pdf_status: string | null;
|
|
20989
21087
|
opgepakt_op: string | null;
|
|
20990
21088
|
paginas: number;
|
|
20991
21089
|
payload: Json;
|
|
@@ -20994,6 +21092,7 @@ export type Database = {
|
|
|
20994
21092
|
pogingen: number;
|
|
20995
21093
|
printer_id: string | null;
|
|
20996
21094
|
render_html: string | null;
|
|
21095
|
+
resultaat_pdf_base64: string | null;
|
|
20997
21096
|
status: Database["public"]["Enums"]["print_job_status"];
|
|
20998
21097
|
updated_at: string;
|
|
20999
21098
|
volgende_poging: string | null;
|
|
@@ -21085,6 +21184,53 @@ export type Database = {
|
|
|
21085
21184
|
isSetofReturn: true;
|
|
21086
21185
|
};
|
|
21087
21186
|
};
|
|
21187
|
+
claim_pdf_print_jobs: {
|
|
21188
|
+
Args: {
|
|
21189
|
+
_max?: number;
|
|
21190
|
+
};
|
|
21191
|
+
Returns: {
|
|
21192
|
+
agent_id: string | null;
|
|
21193
|
+
bron_job_id: string | null;
|
|
21194
|
+
created_at: string;
|
|
21195
|
+
documentnaam: string;
|
|
21196
|
+
documenttype: Database["public"]["Enums"]["doc_layout_type"];
|
|
21197
|
+
extern_job_id: string | null;
|
|
21198
|
+
foutmelding: string | null;
|
|
21199
|
+
gebruiker_id: string | null;
|
|
21200
|
+
gebruiker_naam: string;
|
|
21201
|
+
gebruikte_bron: string | null;
|
|
21202
|
+
gebruikte_layout_id: string | null;
|
|
21203
|
+
gestart_op: string | null;
|
|
21204
|
+
herkomst: string | null;
|
|
21205
|
+
id: string;
|
|
21206
|
+
idempotentie_sleutel: string | null;
|
|
21207
|
+
is_herprint: boolean;
|
|
21208
|
+
kopieen: number;
|
|
21209
|
+
layout_id: string | null;
|
|
21210
|
+
lokaal_opgeslagen_op: string | null;
|
|
21211
|
+
lokale_pdf_fout: string | null;
|
|
21212
|
+
lokale_pdf_status: string | null;
|
|
21213
|
+
opgepakt_op: string | null;
|
|
21214
|
+
paginas: number;
|
|
21215
|
+
payload: Json;
|
|
21216
|
+
pdf_base64: string | null;
|
|
21217
|
+
pdf_url: string | null;
|
|
21218
|
+
pogingen: number;
|
|
21219
|
+
printer_id: string | null;
|
|
21220
|
+
render_html: string | null;
|
|
21221
|
+
resultaat_pdf_base64: string | null;
|
|
21222
|
+
status: Database["public"]["Enums"]["print_job_status"];
|
|
21223
|
+
updated_at: string;
|
|
21224
|
+
volgende_poging: string | null;
|
|
21225
|
+
voltooid_op: string | null;
|
|
21226
|
+
}[];
|
|
21227
|
+
SetofOptions: {
|
|
21228
|
+
from: "*";
|
|
21229
|
+
to: "print_jobs";
|
|
21230
|
+
isOneToOne: false;
|
|
21231
|
+
isSetofReturn: true;
|
|
21232
|
+
};
|
|
21233
|
+
};
|
|
21088
21234
|
claim_print_jobs: {
|
|
21089
21235
|
Args: {
|
|
21090
21236
|
_agent_id: string;
|
|
@@ -21109,6 +21255,9 @@ export type Database = {
|
|
|
21109
21255
|
is_herprint: boolean;
|
|
21110
21256
|
kopieen: number;
|
|
21111
21257
|
layout_id: string | null;
|
|
21258
|
+
lokaal_opgeslagen_op: string | null;
|
|
21259
|
+
lokale_pdf_fout: string | null;
|
|
21260
|
+
lokale_pdf_status: string | null;
|
|
21112
21261
|
opgepakt_op: string | null;
|
|
21113
21262
|
paginas: number;
|
|
21114
21263
|
payload: Json;
|
|
@@ -21117,6 +21266,7 @@ export type Database = {
|
|
|
21117
21266
|
pogingen: number;
|
|
21118
21267
|
printer_id: string | null;
|
|
21119
21268
|
render_html: string | null;
|
|
21269
|
+
resultaat_pdf_base64: string | null;
|
|
21120
21270
|
status: Database["public"]["Enums"]["print_job_status"];
|
|
21121
21271
|
updated_at: string;
|
|
21122
21272
|
volgende_poging: string | null;
|
|
@@ -21257,6 +21407,8 @@ export type Database = {
|
|
|
21257
21407
|
order_id: string;
|
|
21258
21408
|
order_source: string;
|
|
21259
21409
|
pick_date: string;
|
|
21410
|
+
printed_at: string;
|
|
21411
|
+
printed_today: boolean;
|
|
21260
21412
|
status: string;
|
|
21261
21413
|
}[];
|
|
21262
21414
|
};
|
|
@@ -21965,6 +22117,10 @@ export type Database = {
|
|
|
21965
22117
|
};
|
|
21966
22118
|
Returns: number;
|
|
21967
22119
|
};
|
|
22120
|
+
logistics_cancel_orphan_tasks: {
|
|
22121
|
+
Args: never;
|
|
22122
|
+
Returns: number;
|
|
22123
|
+
};
|
|
21968
22124
|
logistics_capacity_day_check: {
|
|
21969
22125
|
Args: {
|
|
21970
22126
|
p_from?: string;
|
|
@@ -21985,6 +22141,25 @@ export type Database = {
|
|
|
21985
22141
|
};
|
|
21986
22142
|
Returns: number;
|
|
21987
22143
|
};
|
|
22144
|
+
logistics_cart_index: {
|
|
22145
|
+
Args: {
|
|
22146
|
+
p_from?: string;
|
|
22147
|
+
p_to?: string;
|
|
22148
|
+
};
|
|
22149
|
+
Returns: {
|
|
22150
|
+
cart_id: string;
|
|
22151
|
+
cart_index: number;
|
|
22152
|
+
cart_label: string;
|
|
22153
|
+
is_shared: boolean;
|
|
22154
|
+
order_number: string;
|
|
22155
|
+
order_source: string;
|
|
22156
|
+
order_uuid: string;
|
|
22157
|
+
pick_date: string;
|
|
22158
|
+
printed_at: string;
|
|
22159
|
+
shifted: boolean;
|
|
22160
|
+
task_status: string;
|
|
22161
|
+
}[];
|
|
22162
|
+
};
|
|
21988
22163
|
logistics_check_order_allowed: {
|
|
21989
22164
|
Args: {
|
|
21990
22165
|
p_lines: Json;
|
|
@@ -22133,6 +22308,17 @@ export type Database = {
|
|
|
22133
22308
|
isSetofReturn: false;
|
|
22134
22309
|
};
|
|
22135
22310
|
};
|
|
22311
|
+
logistics_consistency_check: {
|
|
22312
|
+
Args: never;
|
|
22313
|
+
Returns: {
|
|
22314
|
+
agenda_carts: number;
|
|
22315
|
+
control_carts: number;
|
|
22316
|
+
ok: boolean;
|
|
22317
|
+
orphan_tasks: number;
|
|
22318
|
+
pick_date: string;
|
|
22319
|
+
raw_carts: number;
|
|
22320
|
+
}[];
|
|
22321
|
+
};
|
|
22136
22322
|
logistics_delay_customer_email: {
|
|
22137
22323
|
Args: {
|
|
22138
22324
|
p_customer: string;
|
|
@@ -22326,6 +22512,25 @@ export type Database = {
|
|
|
22326
22512
|
};
|
|
22327
22513
|
Returns: number;
|
|
22328
22514
|
};
|
|
22515
|
+
logistics_order_overview: {
|
|
22516
|
+
Args: {
|
|
22517
|
+
p_from?: string;
|
|
22518
|
+
p_to?: string;
|
|
22519
|
+
};
|
|
22520
|
+
Returns: {
|
|
22521
|
+
cart_count: number;
|
|
22522
|
+
customer_name: string;
|
|
22523
|
+
delivery_date: string;
|
|
22524
|
+
order_number: string;
|
|
22525
|
+
order_source: string;
|
|
22526
|
+
order_uuid: string;
|
|
22527
|
+
pick_date: string;
|
|
22528
|
+
plant_count: number;
|
|
22529
|
+
printed_at: string;
|
|
22530
|
+
shifted: boolean;
|
|
22531
|
+
status: string;
|
|
22532
|
+
}[];
|
|
22533
|
+
};
|
|
22329
22534
|
logistics_order_pick_day: {
|
|
22330
22535
|
Args: {
|
|
22331
22536
|
p_order_ref: string;
|
|
@@ -22338,6 +22543,22 @@ export type Database = {
|
|
|
22338
22543
|
};
|
|
22339
22544
|
Returns: string;
|
|
22340
22545
|
};
|
|
22546
|
+
logistics_pick_agenda: {
|
|
22547
|
+
Args: {
|
|
22548
|
+
p_from?: string;
|
|
22549
|
+
p_to?: string;
|
|
22550
|
+
};
|
|
22551
|
+
Returns: {
|
|
22552
|
+
cart_count: number;
|
|
22553
|
+
in_preparation: number;
|
|
22554
|
+
order_count: number;
|
|
22555
|
+
orders: Json;
|
|
22556
|
+
pick_date: string;
|
|
22557
|
+
plant_count: number;
|
|
22558
|
+
ready: number;
|
|
22559
|
+
shifted_count: number;
|
|
22560
|
+
}[];
|
|
22561
|
+
};
|
|
22341
22562
|
logistics_pick_email_purpose: {
|
|
22342
22563
|
Args: never;
|
|
22343
22564
|
Returns: string;
|
|
@@ -23316,6 +23537,12 @@ export type Database = {
|
|
|
23316
23537
|
};
|
|
23317
23538
|
Returns: string;
|
|
23318
23539
|
};
|
|
23540
|
+
resolve_print_job_printer_id: {
|
|
23541
|
+
Args: {
|
|
23542
|
+
_job: Database["public"]["Tables"]["print_jobs"]["Row"];
|
|
23543
|
+
};
|
|
23544
|
+
Returns: string;
|
|
23545
|
+
};
|
|
23319
23546
|
resolve_product_id_for_item: {
|
|
23320
23547
|
Args: {
|
|
23321
23548
|
p_product_name: string;
|