@flowselections/logistiek-engine 1.0.113 → 1.0.118
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/integrations/supabase/types.d.ts +512 -2
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanning.server.d.ts +47 -0
- package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanning.server.js +181 -220
- package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
- package/dist-lib/lib/modulePrompts.js +140 -0
- package/dist-lib/lib/moduleVersion.d.ts +1 -1
- package/dist-lib/lib/moduleVersion.js +1 -1
- package/package.json +1 -1
|
@@ -6653,6 +6653,7 @@ export type Database = {
|
|
|
6653
6653
|
dead_lettered_at: string | null;
|
|
6654
6654
|
desired_available: boolean | null;
|
|
6655
6655
|
gateway_attempt_id: string | null;
|
|
6656
|
+
gateway_unreachable_since: string | null;
|
|
6656
6657
|
id: string;
|
|
6657
6658
|
last_error: string | null;
|
|
6658
6659
|
locked_at: string | null;
|
|
@@ -6680,6 +6681,7 @@ export type Database = {
|
|
|
6680
6681
|
dead_lettered_at?: string | null;
|
|
6681
6682
|
desired_available?: boolean | null;
|
|
6682
6683
|
gateway_attempt_id?: string | null;
|
|
6684
|
+
gateway_unreachable_since?: string | null;
|
|
6683
6685
|
id?: string;
|
|
6684
6686
|
last_error?: string | null;
|
|
6685
6687
|
locked_at?: string | null;
|
|
@@ -6707,6 +6709,7 @@ export type Database = {
|
|
|
6707
6709
|
dead_lettered_at?: string | null;
|
|
6708
6710
|
desired_available?: boolean | null;
|
|
6709
6711
|
gateway_attempt_id?: string | null;
|
|
6712
|
+
gateway_unreachable_since?: string | null;
|
|
6710
6713
|
id?: string;
|
|
6711
6714
|
last_error?: string | null;
|
|
6712
6715
|
locked_at?: string | null;
|
|
@@ -7337,7 +7340,22 @@ export type Database = {
|
|
|
7337
7340
|
updated_by?: string | null;
|
|
7338
7341
|
user_id?: string;
|
|
7339
7342
|
};
|
|
7340
|
-
Relationships: [
|
|
7343
|
+
Relationships: [
|
|
7344
|
+
{
|
|
7345
|
+
foreignKeyName: "floriday_inventory_settings_product_id_fkey";
|
|
7346
|
+
columns: ["product_id"];
|
|
7347
|
+
isOneToOne: false;
|
|
7348
|
+
referencedRelation: "logistics_product_dimensions";
|
|
7349
|
+
referencedColumns: ["product_id"];
|
|
7350
|
+
},
|
|
7351
|
+
{
|
|
7352
|
+
foreignKeyName: "floriday_inventory_settings_product_id_fkey";
|
|
7353
|
+
columns: ["product_id"];
|
|
7354
|
+
isOneToOne: false;
|
|
7355
|
+
referencedRelation: "products";
|
|
7356
|
+
referencedColumns: ["id"];
|
|
7357
|
+
}
|
|
7358
|
+
];
|
|
7341
7359
|
};
|
|
7342
7360
|
floriday_invoices_cache: {
|
|
7343
7361
|
Row: {
|
|
@@ -7686,6 +7704,39 @@ export type Database = {
|
|
|
7686
7704
|
}
|
|
7687
7705
|
];
|
|
7688
7706
|
};
|
|
7707
|
+
floriday_queue_cleanup_runs: {
|
|
7708
|
+
Row: {
|
|
7709
|
+
created_at: string;
|
|
7710
|
+
deleted: Json;
|
|
7711
|
+
error: string | null;
|
|
7712
|
+
finished_at: string | null;
|
|
7713
|
+
id: string;
|
|
7714
|
+
more_remaining: boolean;
|
|
7715
|
+
orphan_settings: number | null;
|
|
7716
|
+
started_at: string;
|
|
7717
|
+
};
|
|
7718
|
+
Insert: {
|
|
7719
|
+
created_at?: string;
|
|
7720
|
+
deleted?: Json;
|
|
7721
|
+
error?: string | null;
|
|
7722
|
+
finished_at?: string | null;
|
|
7723
|
+
id?: string;
|
|
7724
|
+
more_remaining?: boolean;
|
|
7725
|
+
orphan_settings?: number | null;
|
|
7726
|
+
started_at?: string;
|
|
7727
|
+
};
|
|
7728
|
+
Update: {
|
|
7729
|
+
created_at?: string;
|
|
7730
|
+
deleted?: Json;
|
|
7731
|
+
error?: string | null;
|
|
7732
|
+
finished_at?: string | null;
|
|
7733
|
+
id?: string;
|
|
7734
|
+
more_remaining?: boolean;
|
|
7735
|
+
orphan_settings?: number | null;
|
|
7736
|
+
started_at?: string;
|
|
7737
|
+
};
|
|
7738
|
+
Relationships: [];
|
|
7739
|
+
};
|
|
7689
7740
|
floriday_rate_limit_state: {
|
|
7690
7741
|
Row: {
|
|
7691
7742
|
bucket: string;
|
|
@@ -8844,22 +8895,61 @@ export type Database = {
|
|
|
8844
8895
|
Row: {
|
|
8845
8896
|
drain_batch: number;
|
|
8846
8897
|
id: boolean;
|
|
8898
|
+
import_chunk_size: number;
|
|
8899
|
+
import_max_bytes: number;
|
|
8900
|
+
import_max_rows: number;
|
|
8901
|
+
import_new_chunk_size: number;
|
|
8902
|
+
import_retention_days: number;
|
|
8847
8903
|
max_ms_inline: number;
|
|
8848
8904
|
max_parents_inline: number;
|
|
8905
|
+
queue_cleanup_batch: number;
|
|
8906
|
+
queue_cleanup_max_batches: number;
|
|
8907
|
+
queue_failed_days: number;
|
|
8908
|
+
queue_gateway_backoff_minutes: number[];
|
|
8909
|
+
queue_gateway_give_up_hours: number;
|
|
8910
|
+
queue_sent_days: number;
|
|
8911
|
+
queue_skipped_days: number;
|
|
8912
|
+
queue_superseded_days: number;
|
|
8849
8913
|
updated_at: string;
|
|
8850
8914
|
};
|
|
8851
8915
|
Insert: {
|
|
8852
8916
|
drain_batch?: number;
|
|
8853
8917
|
id?: boolean;
|
|
8918
|
+
import_chunk_size?: number;
|
|
8919
|
+
import_max_bytes?: number;
|
|
8920
|
+
import_max_rows?: number;
|
|
8921
|
+
import_new_chunk_size?: number;
|
|
8922
|
+
import_retention_days?: number;
|
|
8854
8923
|
max_ms_inline?: number;
|
|
8855
8924
|
max_parents_inline?: number;
|
|
8925
|
+
queue_cleanup_batch?: number;
|
|
8926
|
+
queue_cleanup_max_batches?: number;
|
|
8927
|
+
queue_failed_days?: number;
|
|
8928
|
+
queue_gateway_backoff_minutes?: number[];
|
|
8929
|
+
queue_gateway_give_up_hours?: number;
|
|
8930
|
+
queue_sent_days?: number;
|
|
8931
|
+
queue_skipped_days?: number;
|
|
8932
|
+
queue_superseded_days?: number;
|
|
8856
8933
|
updated_at?: string;
|
|
8857
8934
|
};
|
|
8858
8935
|
Update: {
|
|
8859
8936
|
drain_batch?: number;
|
|
8860
8937
|
id?: boolean;
|
|
8938
|
+
import_chunk_size?: number;
|
|
8939
|
+
import_max_bytes?: number;
|
|
8940
|
+
import_max_rows?: number;
|
|
8941
|
+
import_new_chunk_size?: number;
|
|
8942
|
+
import_retention_days?: number;
|
|
8861
8943
|
max_ms_inline?: number;
|
|
8862
8944
|
max_parents_inline?: number;
|
|
8945
|
+
queue_cleanup_batch?: number;
|
|
8946
|
+
queue_cleanup_max_batches?: number;
|
|
8947
|
+
queue_failed_days?: number;
|
|
8948
|
+
queue_gateway_backoff_minutes?: number[];
|
|
8949
|
+
queue_gateway_give_up_hours?: number;
|
|
8950
|
+
queue_sent_days?: number;
|
|
8951
|
+
queue_skipped_days?: number;
|
|
8952
|
+
queue_superseded_days?: number;
|
|
8863
8953
|
updated_at?: string;
|
|
8864
8954
|
};
|
|
8865
8955
|
Relationships: [];
|
|
@@ -11092,6 +11182,69 @@ export type Database = {
|
|
|
11092
11182
|
};
|
|
11093
11183
|
Relationships: [];
|
|
11094
11184
|
};
|
|
11185
|
+
logistics_allocation_fingerprint: {
|
|
11186
|
+
Row: {
|
|
11187
|
+
created_at: string;
|
|
11188
|
+
fingerprint: string;
|
|
11189
|
+
last_replan_at: string | null;
|
|
11190
|
+
order_id: string;
|
|
11191
|
+
pending_since: string | null;
|
|
11192
|
+
updated_at: string;
|
|
11193
|
+
};
|
|
11194
|
+
Insert: {
|
|
11195
|
+
created_at?: string;
|
|
11196
|
+
fingerprint: string;
|
|
11197
|
+
last_replan_at?: string | null;
|
|
11198
|
+
order_id: string;
|
|
11199
|
+
pending_since?: string | null;
|
|
11200
|
+
updated_at?: string;
|
|
11201
|
+
};
|
|
11202
|
+
Update: {
|
|
11203
|
+
created_at?: string;
|
|
11204
|
+
fingerprint?: string;
|
|
11205
|
+
last_replan_at?: string | null;
|
|
11206
|
+
order_id?: string;
|
|
11207
|
+
pending_since?: string | null;
|
|
11208
|
+
updated_at?: string;
|
|
11209
|
+
};
|
|
11210
|
+
Relationships: [];
|
|
11211
|
+
};
|
|
11212
|
+
logistics_autolink_audit: {
|
|
11213
|
+
Row: {
|
|
11214
|
+
created_at: string;
|
|
11215
|
+
id: string;
|
|
11216
|
+
match_type: string;
|
|
11217
|
+
order_id: string | null;
|
|
11218
|
+
order_item_id: string | null;
|
|
11219
|
+
order_source: string | null;
|
|
11220
|
+
product_floriday_id: string | null;
|
|
11221
|
+
product_id: string | null;
|
|
11222
|
+
product_name: string | null;
|
|
11223
|
+
};
|
|
11224
|
+
Insert: {
|
|
11225
|
+
created_at?: string;
|
|
11226
|
+
id?: string;
|
|
11227
|
+
match_type: string;
|
|
11228
|
+
order_id?: string | null;
|
|
11229
|
+
order_item_id?: string | null;
|
|
11230
|
+
order_source?: string | null;
|
|
11231
|
+
product_floriday_id?: string | null;
|
|
11232
|
+
product_id?: string | null;
|
|
11233
|
+
product_name?: string | null;
|
|
11234
|
+
};
|
|
11235
|
+
Update: {
|
|
11236
|
+
created_at?: string;
|
|
11237
|
+
id?: string;
|
|
11238
|
+
match_type?: string;
|
|
11239
|
+
order_id?: string | null;
|
|
11240
|
+
order_item_id?: string | null;
|
|
11241
|
+
order_source?: string | null;
|
|
11242
|
+
product_floriday_id?: string | null;
|
|
11243
|
+
product_id?: string | null;
|
|
11244
|
+
product_name?: string | null;
|
|
11245
|
+
};
|
|
11246
|
+
Relationships: [];
|
|
11247
|
+
};
|
|
11095
11248
|
logistics_base_url_checks: {
|
|
11096
11249
|
Row: {
|
|
11097
11250
|
candidate_host: string | null;
|
|
@@ -12671,6 +12824,7 @@ export type Database = {
|
|
|
12671
12824
|
created_at: string;
|
|
12672
12825
|
group_id: string | null;
|
|
12673
12826
|
id: string;
|
|
12827
|
+
line_qty: number | null;
|
|
12674
12828
|
order_item_id: string;
|
|
12675
12829
|
qty: number;
|
|
12676
12830
|
source: string;
|
|
@@ -12682,6 +12836,7 @@ export type Database = {
|
|
|
12682
12836
|
created_at?: string;
|
|
12683
12837
|
group_id?: string | null;
|
|
12684
12838
|
id?: string;
|
|
12839
|
+
line_qty?: number | null;
|
|
12685
12840
|
order_item_id: string;
|
|
12686
12841
|
qty: number;
|
|
12687
12842
|
source: string;
|
|
@@ -12693,6 +12848,7 @@ export type Database = {
|
|
|
12693
12848
|
created_at?: string;
|
|
12694
12849
|
group_id?: string | null;
|
|
12695
12850
|
id?: string;
|
|
12851
|
+
line_qty?: number | null;
|
|
12696
12852
|
order_item_id?: string;
|
|
12697
12853
|
qty?: number;
|
|
12698
12854
|
source?: string;
|
|
@@ -15448,6 +15604,7 @@ export type Database = {
|
|
|
15448
15604
|
Row: {
|
|
15449
15605
|
boxes: number | null;
|
|
15450
15606
|
cart_id: string;
|
|
15607
|
+
components: Json | null;
|
|
15451
15608
|
crates: number;
|
|
15452
15609
|
crates_in_layer: number | null;
|
|
15453
15610
|
crates_per_layer: number;
|
|
@@ -15466,6 +15623,7 @@ export type Database = {
|
|
|
15466
15623
|
Insert: {
|
|
15467
15624
|
boxes?: number | null;
|
|
15468
15625
|
cart_id: string;
|
|
15626
|
+
components?: Json | null;
|
|
15469
15627
|
crates: number;
|
|
15470
15628
|
crates_in_layer?: number | null;
|
|
15471
15629
|
crates_per_layer?: number;
|
|
@@ -15484,6 +15642,7 @@ export type Database = {
|
|
|
15484
15642
|
Update: {
|
|
15485
15643
|
boxes?: number | null;
|
|
15486
15644
|
cart_id?: string;
|
|
15645
|
+
components?: Json | null;
|
|
15487
15646
|
crates?: number;
|
|
15488
15647
|
crates_in_layer?: number | null;
|
|
15489
15648
|
crates_per_layer?: number;
|
|
@@ -21046,43 +21205,212 @@ export type Database = {
|
|
|
21046
21205
|
};
|
|
21047
21206
|
Relationships: [];
|
|
21048
21207
|
};
|
|
21208
|
+
stock_import_chunks: {
|
|
21209
|
+
Row: {
|
|
21210
|
+
chunk_no: number;
|
|
21211
|
+
created_at: string;
|
|
21212
|
+
duration_ms: number | null;
|
|
21213
|
+
processed_at: string | null;
|
|
21214
|
+
run_id: string;
|
|
21215
|
+
status: string;
|
|
21216
|
+
undone_at: string | null;
|
|
21217
|
+
updated_at: string;
|
|
21218
|
+
};
|
|
21219
|
+
Insert: {
|
|
21220
|
+
chunk_no: number;
|
|
21221
|
+
created_at?: string;
|
|
21222
|
+
duration_ms?: number | null;
|
|
21223
|
+
processed_at?: string | null;
|
|
21224
|
+
run_id: string;
|
|
21225
|
+
status?: string;
|
|
21226
|
+
undone_at?: string | null;
|
|
21227
|
+
updated_at?: string;
|
|
21228
|
+
};
|
|
21229
|
+
Update: {
|
|
21230
|
+
chunk_no?: number;
|
|
21231
|
+
created_at?: string;
|
|
21232
|
+
duration_ms?: number | null;
|
|
21233
|
+
processed_at?: string | null;
|
|
21234
|
+
run_id?: string;
|
|
21235
|
+
status?: string;
|
|
21236
|
+
undone_at?: string | null;
|
|
21237
|
+
updated_at?: string;
|
|
21238
|
+
};
|
|
21239
|
+
Relationships: [
|
|
21240
|
+
{
|
|
21241
|
+
foreignKeyName: "stock_import_chunks_run_id_fkey";
|
|
21242
|
+
columns: ["run_id"];
|
|
21243
|
+
isOneToOne: false;
|
|
21244
|
+
referencedRelation: "stock_import_runs";
|
|
21245
|
+
referencedColumns: ["id"];
|
|
21246
|
+
}
|
|
21247
|
+
];
|
|
21248
|
+
};
|
|
21249
|
+
stock_import_rows: {
|
|
21250
|
+
Row: {
|
|
21251
|
+
article_code: string | null;
|
|
21252
|
+
article_name: string | null;
|
|
21253
|
+
chunk_no: number;
|
|
21254
|
+
connection_id: string | null;
|
|
21255
|
+
created_at: string;
|
|
21256
|
+
custom_values: Json | null;
|
|
21257
|
+
error: string | null;
|
|
21258
|
+
id: string;
|
|
21259
|
+
incoming_after: number | null;
|
|
21260
|
+
incoming_before: number | null;
|
|
21261
|
+
incoming_in: number | null;
|
|
21262
|
+
is_new: boolean;
|
|
21263
|
+
minimum_after: number | null;
|
|
21264
|
+
minimum_before: number | null;
|
|
21265
|
+
minimum_in: number | null;
|
|
21266
|
+
new_payload: Json | null;
|
|
21267
|
+
note: string | null;
|
|
21268
|
+
physical_after: number | null;
|
|
21269
|
+
physical_before: number | null;
|
|
21270
|
+
physical_in: number | null;
|
|
21271
|
+
processed_at: string | null;
|
|
21272
|
+
product_id: string | null;
|
|
21273
|
+
row_no: number;
|
|
21274
|
+
run_id: string;
|
|
21275
|
+
status: string;
|
|
21276
|
+
trade_item_key: string | null;
|
|
21277
|
+
updated_at: string;
|
|
21278
|
+
};
|
|
21279
|
+
Insert: {
|
|
21280
|
+
article_code?: string | null;
|
|
21281
|
+
article_name?: string | null;
|
|
21282
|
+
chunk_no: number;
|
|
21283
|
+
connection_id?: string | null;
|
|
21284
|
+
created_at?: string;
|
|
21285
|
+
custom_values?: Json | null;
|
|
21286
|
+
error?: string | null;
|
|
21287
|
+
id?: string;
|
|
21288
|
+
incoming_after?: number | null;
|
|
21289
|
+
incoming_before?: number | null;
|
|
21290
|
+
incoming_in?: number | null;
|
|
21291
|
+
is_new?: boolean;
|
|
21292
|
+
minimum_after?: number | null;
|
|
21293
|
+
minimum_before?: number | null;
|
|
21294
|
+
minimum_in?: number | null;
|
|
21295
|
+
new_payload?: Json | null;
|
|
21296
|
+
note?: string | null;
|
|
21297
|
+
physical_after?: number | null;
|
|
21298
|
+
physical_before?: number | null;
|
|
21299
|
+
physical_in?: number | null;
|
|
21300
|
+
processed_at?: string | null;
|
|
21301
|
+
product_id?: string | null;
|
|
21302
|
+
row_no: number;
|
|
21303
|
+
run_id: string;
|
|
21304
|
+
status?: string;
|
|
21305
|
+
trade_item_key?: string | null;
|
|
21306
|
+
updated_at?: string;
|
|
21307
|
+
};
|
|
21308
|
+
Update: {
|
|
21309
|
+
article_code?: string | null;
|
|
21310
|
+
article_name?: string | null;
|
|
21311
|
+
chunk_no?: number;
|
|
21312
|
+
connection_id?: string | null;
|
|
21313
|
+
created_at?: string;
|
|
21314
|
+
custom_values?: Json | null;
|
|
21315
|
+
error?: string | null;
|
|
21316
|
+
id?: string;
|
|
21317
|
+
incoming_after?: number | null;
|
|
21318
|
+
incoming_before?: number | null;
|
|
21319
|
+
incoming_in?: number | null;
|
|
21320
|
+
is_new?: boolean;
|
|
21321
|
+
minimum_after?: number | null;
|
|
21322
|
+
minimum_before?: number | null;
|
|
21323
|
+
minimum_in?: number | null;
|
|
21324
|
+
new_payload?: Json | null;
|
|
21325
|
+
note?: string | null;
|
|
21326
|
+
physical_after?: number | null;
|
|
21327
|
+
physical_before?: number | null;
|
|
21328
|
+
physical_in?: number | null;
|
|
21329
|
+
processed_at?: string | null;
|
|
21330
|
+
product_id?: string | null;
|
|
21331
|
+
row_no?: number;
|
|
21332
|
+
run_id?: string;
|
|
21333
|
+
status?: string;
|
|
21334
|
+
trade_item_key?: string | null;
|
|
21335
|
+
updated_at?: string;
|
|
21336
|
+
};
|
|
21337
|
+
Relationships: [
|
|
21338
|
+
{
|
|
21339
|
+
foreignKeyName: "stock_import_rows_run_id_fkey";
|
|
21340
|
+
columns: ["run_id"];
|
|
21341
|
+
isOneToOne: false;
|
|
21342
|
+
referencedRelation: "stock_import_runs";
|
|
21343
|
+
referencedColumns: ["id"];
|
|
21344
|
+
}
|
|
21345
|
+
];
|
|
21346
|
+
};
|
|
21049
21347
|
stock_import_runs: {
|
|
21050
21348
|
Row: {
|
|
21349
|
+
chunk_size: number | null;
|
|
21051
21350
|
connection_id: string | null;
|
|
21052
21351
|
created_at: string;
|
|
21053
21352
|
created_rows: number;
|
|
21353
|
+
done_chunks: number;
|
|
21054
21354
|
errors: Json;
|
|
21355
|
+
file_hash: string | null;
|
|
21055
21356
|
filename: string | null;
|
|
21357
|
+
finished_at: string | null;
|
|
21056
21358
|
id: string;
|
|
21057
21359
|
mutations: Json;
|
|
21360
|
+
rows_purged_at: string | null;
|
|
21058
21361
|
skipped_rows: number;
|
|
21362
|
+
status: string;
|
|
21363
|
+
total_chunks: number;
|
|
21059
21364
|
total_rows: number;
|
|
21365
|
+
undo_skipped_rows: number;
|
|
21366
|
+
undone_rows: number;
|
|
21367
|
+
updated_at: string;
|
|
21060
21368
|
updated_rows: number;
|
|
21061
21369
|
user_id: string;
|
|
21062
21370
|
};
|
|
21063
21371
|
Insert: {
|
|
21372
|
+
chunk_size?: number | null;
|
|
21064
21373
|
connection_id?: string | null;
|
|
21065
21374
|
created_at?: string;
|
|
21066
21375
|
created_rows?: number;
|
|
21376
|
+
done_chunks?: number;
|
|
21067
21377
|
errors?: Json;
|
|
21378
|
+
file_hash?: string | null;
|
|
21068
21379
|
filename?: string | null;
|
|
21380
|
+
finished_at?: string | null;
|
|
21069
21381
|
id?: string;
|
|
21070
21382
|
mutations?: Json;
|
|
21383
|
+
rows_purged_at?: string | null;
|
|
21071
21384
|
skipped_rows?: number;
|
|
21385
|
+
status?: string;
|
|
21386
|
+
total_chunks?: number;
|
|
21072
21387
|
total_rows?: number;
|
|
21388
|
+
undo_skipped_rows?: number;
|
|
21389
|
+
undone_rows?: number;
|
|
21390
|
+
updated_at?: string;
|
|
21073
21391
|
updated_rows?: number;
|
|
21074
21392
|
user_id: string;
|
|
21075
21393
|
};
|
|
21076
21394
|
Update: {
|
|
21395
|
+
chunk_size?: number | null;
|
|
21077
21396
|
connection_id?: string | null;
|
|
21078
21397
|
created_at?: string;
|
|
21079
21398
|
created_rows?: number;
|
|
21399
|
+
done_chunks?: number;
|
|
21080
21400
|
errors?: Json;
|
|
21401
|
+
file_hash?: string | null;
|
|
21081
21402
|
filename?: string | null;
|
|
21403
|
+
finished_at?: string | null;
|
|
21082
21404
|
id?: string;
|
|
21083
21405
|
mutations?: Json;
|
|
21406
|
+
rows_purged_at?: string | null;
|
|
21084
21407
|
skipped_rows?: number;
|
|
21408
|
+
status?: string;
|
|
21409
|
+
total_chunks?: number;
|
|
21085
21410
|
total_rows?: number;
|
|
21411
|
+
undo_skipped_rows?: number;
|
|
21412
|
+
undone_rows?: number;
|
|
21413
|
+
updated_at?: string;
|
|
21086
21414
|
updated_rows?: number;
|
|
21087
21415
|
user_id?: string;
|
|
21088
21416
|
};
|
|
@@ -26990,6 +27318,15 @@ export type Database = {
|
|
|
26990
27318
|
};
|
|
26991
27319
|
};
|
|
26992
27320
|
Functions: {
|
|
27321
|
+
_floriday_queue_cleanup_batch: {
|
|
27322
|
+
Args: {
|
|
27323
|
+
p_days: number;
|
|
27324
|
+
p_keep_latest: boolean;
|
|
27325
|
+
p_limit: number;
|
|
27326
|
+
p_statuses: string[];
|
|
27327
|
+
};
|
|
27328
|
+
Returns: number;
|
|
27329
|
+
};
|
|
26993
27330
|
_floriday_schedule_job: {
|
|
26994
27331
|
Args: {
|
|
26995
27332
|
p_apikey: string;
|
|
@@ -27013,6 +27350,12 @@ export type Database = {
|
|
|
27013
27350
|
};
|
|
27014
27351
|
Returns: Json;
|
|
27015
27352
|
};
|
|
27353
|
+
_stock_import_caller: {
|
|
27354
|
+
Args: {
|
|
27355
|
+
p_owner: string;
|
|
27356
|
+
};
|
|
27357
|
+
Returns: boolean;
|
|
27358
|
+
};
|
|
27016
27359
|
_wo_is_planner: {
|
|
27017
27360
|
Args: never;
|
|
27018
27361
|
Returns: boolean;
|
|
@@ -27292,6 +27635,7 @@ export type Database = {
|
|
|
27292
27635
|
dead_lettered_at: string | null;
|
|
27293
27636
|
desired_available: boolean | null;
|
|
27294
27637
|
gateway_attempt_id: string | null;
|
|
27638
|
+
gateway_unreachable_since: string | null;
|
|
27295
27639
|
id: string;
|
|
27296
27640
|
last_error: string | null;
|
|
27297
27641
|
locked_at: string | null;
|
|
@@ -27953,7 +28297,7 @@ export type Database = {
|
|
|
27953
28297
|
};
|
|
27954
28298
|
floriday_cleanup_stock_queue_v2: {
|
|
27955
28299
|
Args: never;
|
|
27956
|
-
Returns:
|
|
28300
|
+
Returns: Json;
|
|
27957
28301
|
};
|
|
27958
28302
|
floriday_compact_stock_snapshots: {
|
|
27959
28303
|
Args: never;
|
|
@@ -28005,6 +28349,10 @@ export type Database = {
|
|
|
28005
28349
|
};
|
|
28006
28350
|
Returns: number;
|
|
28007
28351
|
};
|
|
28352
|
+
floriday_orphan_settings_count: {
|
|
28353
|
+
Args: never;
|
|
28354
|
+
Returns: number;
|
|
28355
|
+
};
|
|
28008
28356
|
floriday_publish_horizon_weeks: {
|
|
28009
28357
|
Args: never;
|
|
28010
28358
|
Returns: number;
|
|
@@ -28948,6 +29296,24 @@ export type Database = {
|
|
|
28948
29296
|
};
|
|
28949
29297
|
Returns: string;
|
|
28950
29298
|
};
|
|
29299
|
+
logistics_allocation_check_changes: {
|
|
29300
|
+
Args: {
|
|
29301
|
+
p_order_item_ids?: string[];
|
|
29302
|
+
};
|
|
29303
|
+
Returns: Json;
|
|
29304
|
+
};
|
|
29305
|
+
logistics_allocation_fp: {
|
|
29306
|
+
Args: {
|
|
29307
|
+
p_order_id: string;
|
|
29308
|
+
};
|
|
29309
|
+
Returns: string;
|
|
29310
|
+
};
|
|
29311
|
+
logistics_allocation_frozen: {
|
|
29312
|
+
Args: {
|
|
29313
|
+
p_order_id: string;
|
|
29314
|
+
};
|
|
29315
|
+
Returns: boolean;
|
|
29316
|
+
};
|
|
28951
29317
|
logistics_allowed_load_carriers: {
|
|
28952
29318
|
Args: {
|
|
28953
29319
|
p_strategy_id?: string;
|
|
@@ -28961,6 +29327,13 @@ export type Database = {
|
|
|
28961
29327
|
};
|
|
28962
29328
|
Returns: string;
|
|
28963
29329
|
};
|
|
29330
|
+
logistics_apply_cart_swap: {
|
|
29331
|
+
Args: {
|
|
29332
|
+
p_delete_ids: string[];
|
|
29333
|
+
p_new_carts: Json;
|
|
29334
|
+
};
|
|
29335
|
+
Returns: Json;
|
|
29336
|
+
};
|
|
28964
29337
|
logistics_apply_document_layouts: {
|
|
28965
29338
|
Args: never;
|
|
28966
29339
|
Returns: undefined;
|
|
@@ -29637,6 +30010,15 @@ export type Database = {
|
|
|
29637
30010
|
};
|
|
29638
30011
|
Returns: Database["public"]["Enums"]["doc_layout_type"][];
|
|
29639
30012
|
};
|
|
30013
|
+
logistics_double_group_lines: {
|
|
30014
|
+
Args: {
|
|
30015
|
+
p_order_id?: string;
|
|
30016
|
+
};
|
|
30017
|
+
Returns: {
|
|
30018
|
+
group_id: string;
|
|
30019
|
+
order_item_id: string;
|
|
30020
|
+
}[];
|
|
30021
|
+
};
|
|
29640
30022
|
logistics_emit_event: {
|
|
29641
30023
|
Args: {
|
|
29642
30024
|
p_event_type: string;
|
|
@@ -29895,6 +30277,18 @@ export type Database = {
|
|
|
29895
30277
|
};
|
|
29896
30278
|
Returns: boolean;
|
|
29897
30279
|
};
|
|
30280
|
+
logistics_frozen_allocation_scaled: {
|
|
30281
|
+
Args: {
|
|
30282
|
+
p_new_qty: number;
|
|
30283
|
+
p_order_item_id: string;
|
|
30284
|
+
};
|
|
30285
|
+
Returns: {
|
|
30286
|
+
group_id: string;
|
|
30287
|
+
qty: number;
|
|
30288
|
+
source: string;
|
|
30289
|
+
trade_item_key: string;
|
|
30290
|
+
}[];
|
|
30291
|
+
};
|
|
29898
30292
|
logistics_fulfill_barcode_requests: {
|
|
29899
30293
|
Args: {
|
|
29900
30294
|
p_limit?: number;
|
|
@@ -29916,12 +30310,24 @@ export type Database = {
|
|
|
29916
30310
|
};
|
|
29917
30311
|
Returns: boolean;
|
|
29918
30312
|
};
|
|
30313
|
+
logistics_is_group_label: {
|
|
30314
|
+
Args: {
|
|
30315
|
+
p_label: string;
|
|
30316
|
+
};
|
|
30317
|
+
Returns: boolean;
|
|
30318
|
+
};
|
|
29919
30319
|
logistics_is_pick_workday: {
|
|
29920
30320
|
Args: {
|
|
29921
30321
|
p_date: string;
|
|
29922
30322
|
};
|
|
29923
30323
|
Returns: boolean;
|
|
29924
30324
|
};
|
|
30325
|
+
logistics_key_product: {
|
|
30326
|
+
Args: {
|
|
30327
|
+
p_key: string;
|
|
30328
|
+
};
|
|
30329
|
+
Returns: string;
|
|
30330
|
+
};
|
|
29925
30331
|
logistics_layout_method_status: {
|
|
29926
30332
|
Args: never;
|
|
29927
30333
|
Returns: Json;
|
|
@@ -30024,6 +30430,12 @@ export type Database = {
|
|
|
30024
30430
|
};
|
|
30025
30431
|
Returns: undefined;
|
|
30026
30432
|
};
|
|
30433
|
+
logistics_order_current_warnings: {
|
|
30434
|
+
Args: {
|
|
30435
|
+
p_order_id: string;
|
|
30436
|
+
};
|
|
30437
|
+
Returns: string[];
|
|
30438
|
+
};
|
|
30027
30439
|
logistics_order_documents_ready: {
|
|
30028
30440
|
Args: {
|
|
30029
30441
|
p_order_ref: string;
|
|
@@ -30476,6 +30888,21 @@ export type Database = {
|
|
|
30476
30888
|
Args: never;
|
|
30477
30889
|
Returns: number;
|
|
30478
30890
|
};
|
|
30891
|
+
logistics_plan_wachttijd: {
|
|
30892
|
+
Args: {
|
|
30893
|
+
p_order_id: string;
|
|
30894
|
+
p_reason: string;
|
|
30895
|
+
};
|
|
30896
|
+
Returns: Json;
|
|
30897
|
+
};
|
|
30898
|
+
logistics_plan_wachttijd_melden: {
|
|
30899
|
+
Args: {
|
|
30900
|
+
p_order_id: string;
|
|
30901
|
+
p_reason: string;
|
|
30902
|
+
p_wacht: Json;
|
|
30903
|
+
};
|
|
30904
|
+
Returns: undefined;
|
|
30905
|
+
};
|
|
30479
30906
|
logistics_planner_cart_snapshot: {
|
|
30480
30907
|
Args: {
|
|
30481
30908
|
p_buffer_id: string;
|
|
@@ -30491,6 +30918,23 @@ export type Database = {
|
|
|
30491
30918
|
Args: never;
|
|
30492
30919
|
Returns: number;
|
|
30493
30920
|
};
|
|
30921
|
+
logistics_planner_lines: {
|
|
30922
|
+
Args: {
|
|
30923
|
+
p_order_id: string;
|
|
30924
|
+
};
|
|
30925
|
+
Returns: {
|
|
30926
|
+
components: Json;
|
|
30927
|
+
frozen: boolean;
|
|
30928
|
+
group_id: string;
|
|
30929
|
+
note: string;
|
|
30930
|
+
order_item_id: string;
|
|
30931
|
+
product_id: string;
|
|
30932
|
+
product_name: string;
|
|
30933
|
+
qty: number;
|
|
30934
|
+
trade_item_key: string;
|
|
30935
|
+
unit_kind: string;
|
|
30936
|
+
}[];
|
|
30937
|
+
};
|
|
30494
30938
|
logistics_prepare_pick_documents: {
|
|
30495
30939
|
Args: {
|
|
30496
30940
|
p_limit?: number;
|
|
@@ -30562,6 +31006,12 @@ export type Database = {
|
|
|
30562
31006
|
Args: never;
|
|
30563
31007
|
Returns: number;
|
|
30564
31008
|
};
|
|
31009
|
+
logistics_recompute_reserved_targeted: {
|
|
31010
|
+
Args: {
|
|
31011
|
+
p_product_id: string;
|
|
31012
|
+
};
|
|
31013
|
+
Returns: Json;
|
|
31014
|
+
};
|
|
30565
31015
|
logistics_reconcile_missing_plan_queue: {
|
|
30566
31016
|
Args: never;
|
|
30567
31017
|
Returns: number;
|
|
@@ -30615,6 +31065,13 @@ export type Database = {
|
|
|
30615
31065
|
};
|
|
30616
31066
|
Returns: Json;
|
|
30617
31067
|
};
|
|
31068
|
+
logistics_replan_selected_orders: {
|
|
31069
|
+
Args: {
|
|
31070
|
+
p_order_ids: string[];
|
|
31071
|
+
p_reason?: string;
|
|
31072
|
+
};
|
|
31073
|
+
Returns: Json;
|
|
31074
|
+
};
|
|
30618
31075
|
logistics_report_delay: {
|
|
30619
31076
|
Args: {
|
|
30620
31077
|
p_expected_date?: string;
|
|
@@ -30631,6 +31088,12 @@ export type Database = {
|
|
|
30631
31088
|
};
|
|
30632
31089
|
Returns: string;
|
|
30633
31090
|
};
|
|
31091
|
+
logistics_report_frozen_shortage: {
|
|
31092
|
+
Args: {
|
|
31093
|
+
p_order_item_ids: string[];
|
|
31094
|
+
};
|
|
31095
|
+
Returns: undefined;
|
|
31096
|
+
};
|
|
30634
31097
|
logistics_rescan_orders: {
|
|
30635
31098
|
Args: {
|
|
30636
31099
|
p_days?: number;
|
|
@@ -30659,6 +31122,13 @@ export type Database = {
|
|
|
30659
31122
|
};
|
|
30660
31123
|
Returns: Json;
|
|
30661
31124
|
};
|
|
31125
|
+
logistics_reserved_fast_skip: {
|
|
31126
|
+
Args: {
|
|
31127
|
+
p_key: string;
|
|
31128
|
+
p_raw: string;
|
|
31129
|
+
};
|
|
31130
|
+
Returns: boolean;
|
|
31131
|
+
};
|
|
30662
31132
|
logistics_reserved_key: {
|
|
30663
31133
|
Args: {
|
|
30664
31134
|
p_key: string;
|
|
@@ -30684,6 +31154,12 @@ export type Database = {
|
|
|
30684
31154
|
};
|
|
30685
31155
|
Returns: string;
|
|
30686
31156
|
};
|
|
31157
|
+
logistics_resolve_product_match: {
|
|
31158
|
+
Args: {
|
|
31159
|
+
p_label: string;
|
|
31160
|
+
};
|
|
31161
|
+
Returns: Record<string, unknown>;
|
|
31162
|
+
};
|
|
30687
31163
|
logistics_resolve_settings: {
|
|
30688
31164
|
Args: {
|
|
30689
31165
|
p_config_id: string;
|
|
@@ -33314,6 +33790,40 @@ export type Database = {
|
|
|
33314
33790
|
};
|
|
33315
33791
|
Returns: Json;
|
|
33316
33792
|
};
|
|
33793
|
+
stock_import_cleanup: {
|
|
33794
|
+
Args: never;
|
|
33795
|
+
Returns: number;
|
|
33796
|
+
};
|
|
33797
|
+
stock_import_create: {
|
|
33798
|
+
Args: {
|
|
33799
|
+
p_connection_id: string;
|
|
33800
|
+
p_file_hash: string;
|
|
33801
|
+
p_filename: string;
|
|
33802
|
+
p_force?: boolean;
|
|
33803
|
+
p_rows: Json;
|
|
33804
|
+
};
|
|
33805
|
+
Returns: Json;
|
|
33806
|
+
};
|
|
33807
|
+
stock_import_process_chunk: {
|
|
33808
|
+
Args: {
|
|
33809
|
+
p_chunk_no: number;
|
|
33810
|
+
p_run_id: string;
|
|
33811
|
+
};
|
|
33812
|
+
Returns: Json;
|
|
33813
|
+
};
|
|
33814
|
+
stock_import_stop: {
|
|
33815
|
+
Args: {
|
|
33816
|
+
p_run_id: string;
|
|
33817
|
+
};
|
|
33818
|
+
Returns: Json;
|
|
33819
|
+
};
|
|
33820
|
+
stock_import_undo_chunk: {
|
|
33821
|
+
Args: {
|
|
33822
|
+
p_chunk_no: number;
|
|
33823
|
+
p_run_id: string;
|
|
33824
|
+
};
|
|
33825
|
+
Returns: Json;
|
|
33826
|
+
};
|
|
33317
33827
|
stop_time_log: {
|
|
33318
33828
|
Args: {
|
|
33319
33829
|
p_employee_id: string;
|