@flowselections/floriday-authenticatie-module 1.0.54 → 1.0.56
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/settings/FlorydaySettingsCard.d.ts.map +1 -1
- package/dist-lib/components/settings/FlorydaySettingsCard.js +26 -48
- package/dist-lib/index.js +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +913 -4
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cron/process-stock-queue.d.ts +18 -1
- package/dist-lib/lib/cron/process-stock-queue.d.ts.map +1 -1
- package/dist-lib/lib/cron/process-stock-queue.js +71 -23
- package/dist-lib/lib/floriday-gln.d.ts +6 -0
- package/dist-lib/lib/floriday-gln.d.ts.map +1 -0
- package/dist-lib/lib/floriday-gln.js +22 -0
- package/dist-lib/lib/floriday-own-config.d.ts +68 -0
- package/dist-lib/lib/floriday-own-config.d.ts.map +1 -0
- package/dist-lib/lib/floriday-own-config.js +73 -0
- package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sync.functions.js +8 -0
- package/dist-lib/lib/floriday.functions.d.ts +38 -12
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +145 -41
- package/package.json +4 -504
|
@@ -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;
|
|
@@ -7244,6 +7247,7 @@ export type Database = {
|
|
|
7244
7247
|
Row: {
|
|
7245
7248
|
action_reason: string | null;
|
|
7246
7249
|
buffer_quantity: number;
|
|
7250
|
+
computed_available: number | null;
|
|
7247
7251
|
connection_id: string;
|
|
7248
7252
|
created_at: string;
|
|
7249
7253
|
desired_availability: boolean;
|
|
@@ -7255,15 +7259,18 @@ export type Database = {
|
|
|
7255
7259
|
last_enqueued_at: string | null;
|
|
7256
7260
|
last_published_at: string | null;
|
|
7257
7261
|
last_sync_error: string | null;
|
|
7262
|
+
limiting_product_id: string | null;
|
|
7258
7263
|
manual_quantity: number | null;
|
|
7259
7264
|
maximum_quantity: number | null;
|
|
7260
7265
|
packing_size: number | null;
|
|
7261
7266
|
product_id: string;
|
|
7267
|
+
product_type: string | null;
|
|
7262
7268
|
quantity_control: string;
|
|
7263
7269
|
remote_available: boolean | null;
|
|
7264
7270
|
remote_checked_at: string | null;
|
|
7265
7271
|
remote_quantity: number | null;
|
|
7266
7272
|
stock_mode: string;
|
|
7273
|
+
structure_detail: Json | null;
|
|
7267
7274
|
sync_status: string;
|
|
7268
7275
|
updated_at: string;
|
|
7269
7276
|
updated_by: string | null;
|
|
@@ -7272,6 +7279,7 @@ export type Database = {
|
|
|
7272
7279
|
Insert: {
|
|
7273
7280
|
action_reason?: string | null;
|
|
7274
7281
|
buffer_quantity?: number;
|
|
7282
|
+
computed_available?: number | null;
|
|
7275
7283
|
connection_id: string;
|
|
7276
7284
|
created_at?: string;
|
|
7277
7285
|
desired_availability?: boolean;
|
|
@@ -7283,15 +7291,18 @@ export type Database = {
|
|
|
7283
7291
|
last_enqueued_at?: string | null;
|
|
7284
7292
|
last_published_at?: string | null;
|
|
7285
7293
|
last_sync_error?: string | null;
|
|
7294
|
+
limiting_product_id?: string | null;
|
|
7286
7295
|
manual_quantity?: number | null;
|
|
7287
7296
|
maximum_quantity?: number | null;
|
|
7288
7297
|
packing_size?: number | null;
|
|
7289
7298
|
product_id: string;
|
|
7299
|
+
product_type?: string | null;
|
|
7290
7300
|
quantity_control?: string;
|
|
7291
7301
|
remote_available?: boolean | null;
|
|
7292
7302
|
remote_checked_at?: string | null;
|
|
7293
7303
|
remote_quantity?: number | null;
|
|
7294
7304
|
stock_mode?: string;
|
|
7305
|
+
structure_detail?: Json | null;
|
|
7295
7306
|
sync_status?: string;
|
|
7296
7307
|
updated_at?: string;
|
|
7297
7308
|
updated_by?: string | null;
|
|
@@ -7300,6 +7311,7 @@ export type Database = {
|
|
|
7300
7311
|
Update: {
|
|
7301
7312
|
action_reason?: string | null;
|
|
7302
7313
|
buffer_quantity?: number;
|
|
7314
|
+
computed_available?: number | null;
|
|
7303
7315
|
connection_id?: string;
|
|
7304
7316
|
created_at?: string;
|
|
7305
7317
|
desired_availability?: boolean;
|
|
@@ -7311,21 +7323,39 @@ export type Database = {
|
|
|
7311
7323
|
last_enqueued_at?: string | null;
|
|
7312
7324
|
last_published_at?: string | null;
|
|
7313
7325
|
last_sync_error?: string | null;
|
|
7326
|
+
limiting_product_id?: string | null;
|
|
7314
7327
|
manual_quantity?: number | null;
|
|
7315
7328
|
maximum_quantity?: number | null;
|
|
7316
7329
|
packing_size?: number | null;
|
|
7317
7330
|
product_id?: string;
|
|
7331
|
+
product_type?: string | null;
|
|
7318
7332
|
quantity_control?: string;
|
|
7319
7333
|
remote_available?: boolean | null;
|
|
7320
7334
|
remote_checked_at?: string | null;
|
|
7321
7335
|
remote_quantity?: number | null;
|
|
7322
7336
|
stock_mode?: string;
|
|
7337
|
+
structure_detail?: Json | null;
|
|
7323
7338
|
sync_status?: string;
|
|
7324
7339
|
updated_at?: string;
|
|
7325
7340
|
updated_by?: string | null;
|
|
7326
7341
|
user_id?: string;
|
|
7327
7342
|
};
|
|
7328
|
-
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
|
+
];
|
|
7329
7359
|
};
|
|
7330
7360
|
floriday_invoices_cache: {
|
|
7331
7361
|
Row: {
|
|
@@ -7674,6 +7704,39 @@ export type Database = {
|
|
|
7674
7704
|
}
|
|
7675
7705
|
];
|
|
7676
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
|
+
};
|
|
7677
7740
|
floriday_rate_limit_state: {
|
|
7678
7741
|
Row: {
|
|
7679
7742
|
bucket: string;
|
|
@@ -8828,6 +8891,99 @@ export type Database = {
|
|
|
8828
8891
|
}
|
|
8829
8892
|
];
|
|
8830
8893
|
};
|
|
8894
|
+
inventory_recompute_limits: {
|
|
8895
|
+
Row: {
|
|
8896
|
+
drain_batch: number;
|
|
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;
|
|
8903
|
+
max_ms_inline: number;
|
|
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;
|
|
8913
|
+
updated_at: string;
|
|
8914
|
+
};
|
|
8915
|
+
Insert: {
|
|
8916
|
+
drain_batch?: number;
|
|
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;
|
|
8923
|
+
max_ms_inline?: number;
|
|
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;
|
|
8933
|
+
updated_at?: string;
|
|
8934
|
+
};
|
|
8935
|
+
Update: {
|
|
8936
|
+
drain_batch?: number;
|
|
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;
|
|
8943
|
+
max_ms_inline?: number;
|
|
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;
|
|
8953
|
+
updated_at?: string;
|
|
8954
|
+
};
|
|
8955
|
+
Relationships: [];
|
|
8956
|
+
};
|
|
8957
|
+
inventory_recompute_queue: {
|
|
8958
|
+
Row: {
|
|
8959
|
+
attempts: number;
|
|
8960
|
+
created_at: string;
|
|
8961
|
+
enqueued_at: string;
|
|
8962
|
+
last_error: string | null;
|
|
8963
|
+
product_id: string;
|
|
8964
|
+
reason: string | null;
|
|
8965
|
+
updated_at: string;
|
|
8966
|
+
};
|
|
8967
|
+
Insert: {
|
|
8968
|
+
attempts?: number;
|
|
8969
|
+
created_at?: string;
|
|
8970
|
+
enqueued_at?: string;
|
|
8971
|
+
last_error?: string | null;
|
|
8972
|
+
product_id: string;
|
|
8973
|
+
reason?: string | null;
|
|
8974
|
+
updated_at?: string;
|
|
8975
|
+
};
|
|
8976
|
+
Update: {
|
|
8977
|
+
attempts?: number;
|
|
8978
|
+
created_at?: string;
|
|
8979
|
+
enqueued_at?: string;
|
|
8980
|
+
last_error?: string | null;
|
|
8981
|
+
product_id?: string;
|
|
8982
|
+
reason?: string | null;
|
|
8983
|
+
updated_at?: string;
|
|
8984
|
+
};
|
|
8985
|
+
Relationships: [];
|
|
8986
|
+
};
|
|
8831
8987
|
inventory_settings: {
|
|
8832
8988
|
Row: {
|
|
8833
8989
|
created_at: string;
|
|
@@ -11026,6 +11182,69 @@ export type Database = {
|
|
|
11026
11182
|
};
|
|
11027
11183
|
Relationships: [];
|
|
11028
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
|
+
};
|
|
11029
11248
|
logistics_base_url_checks: {
|
|
11030
11249
|
Row: {
|
|
11031
11250
|
candidate_host: string | null;
|
|
@@ -12599,6 +12818,45 @@ export type Database = {
|
|
|
12599
12818
|
};
|
|
12600
12819
|
Relationships: [];
|
|
12601
12820
|
};
|
|
12821
|
+
logistics_reservation_allocations: {
|
|
12822
|
+
Row: {
|
|
12823
|
+
computed_at: string;
|
|
12824
|
+
created_at: string;
|
|
12825
|
+
group_id: string | null;
|
|
12826
|
+
id: string;
|
|
12827
|
+
line_qty: number | null;
|
|
12828
|
+
order_item_id: string;
|
|
12829
|
+
qty: number;
|
|
12830
|
+
source: string;
|
|
12831
|
+
trade_item_key: string;
|
|
12832
|
+
updated_at: string;
|
|
12833
|
+
};
|
|
12834
|
+
Insert: {
|
|
12835
|
+
computed_at?: string;
|
|
12836
|
+
created_at?: string;
|
|
12837
|
+
group_id?: string | null;
|
|
12838
|
+
id?: string;
|
|
12839
|
+
line_qty?: number | null;
|
|
12840
|
+
order_item_id: string;
|
|
12841
|
+
qty: number;
|
|
12842
|
+
source: string;
|
|
12843
|
+
trade_item_key: string;
|
|
12844
|
+
updated_at?: string;
|
|
12845
|
+
};
|
|
12846
|
+
Update: {
|
|
12847
|
+
computed_at?: string;
|
|
12848
|
+
created_at?: string;
|
|
12849
|
+
group_id?: string | null;
|
|
12850
|
+
id?: string;
|
|
12851
|
+
line_qty?: number | null;
|
|
12852
|
+
order_item_id?: string;
|
|
12853
|
+
qty?: number;
|
|
12854
|
+
source?: string;
|
|
12855
|
+
trade_item_key?: string;
|
|
12856
|
+
updated_at?: string;
|
|
12857
|
+
};
|
|
12858
|
+
Relationships: [];
|
|
12859
|
+
};
|
|
12602
12860
|
logistics_rule_configs: {
|
|
12603
12861
|
Row: {
|
|
12604
12862
|
created_at: string;
|
|
@@ -12743,6 +13001,7 @@ export type Database = {
|
|
|
12743
13001
|
slip_job_id: string;
|
|
12744
13002
|
status: string;
|
|
12745
13003
|
updated_at: string;
|
|
13004
|
+
voor_herstel: boolean;
|
|
12746
13005
|
};
|
|
12747
13006
|
Insert: {
|
|
12748
13007
|
attempts?: number;
|
|
@@ -12763,6 +13022,7 @@ export type Database = {
|
|
|
12763
13022
|
slip_job_id: string;
|
|
12764
13023
|
status?: string;
|
|
12765
13024
|
updated_at?: string;
|
|
13025
|
+
voor_herstel?: boolean;
|
|
12766
13026
|
};
|
|
12767
13027
|
Update: {
|
|
12768
13028
|
attempts?: number;
|
|
@@ -12783,6 +13043,7 @@ export type Database = {
|
|
|
12783
13043
|
slip_job_id?: string;
|
|
12784
13044
|
status?: string;
|
|
12785
13045
|
updated_at?: string;
|
|
13046
|
+
voor_herstel?: boolean;
|
|
12786
13047
|
};
|
|
12787
13048
|
Relationships: [];
|
|
12788
13049
|
};
|
|
@@ -15343,6 +15604,7 @@ export type Database = {
|
|
|
15343
15604
|
Row: {
|
|
15344
15605
|
boxes: number | null;
|
|
15345
15606
|
cart_id: string;
|
|
15607
|
+
components: Json | null;
|
|
15346
15608
|
crates: number;
|
|
15347
15609
|
crates_in_layer: number | null;
|
|
15348
15610
|
crates_per_layer: number;
|
|
@@ -15361,6 +15623,7 @@ export type Database = {
|
|
|
15361
15623
|
Insert: {
|
|
15362
15624
|
boxes?: number | null;
|
|
15363
15625
|
cart_id: string;
|
|
15626
|
+
components?: Json | null;
|
|
15364
15627
|
crates: number;
|
|
15365
15628
|
crates_in_layer?: number | null;
|
|
15366
15629
|
crates_per_layer?: number;
|
|
@@ -15379,6 +15642,7 @@ export type Database = {
|
|
|
15379
15642
|
Update: {
|
|
15380
15643
|
boxes?: number | null;
|
|
15381
15644
|
cart_id?: string;
|
|
15645
|
+
components?: Json | null;
|
|
15382
15646
|
crates?: number;
|
|
15383
15647
|
crates_in_layer?: number | null;
|
|
15384
15648
|
crates_per_layer?: number;
|
|
@@ -18986,7 +19250,7 @@ export type Database = {
|
|
|
18986
19250
|
id?: string;
|
|
18987
19251
|
product_group_id: string;
|
|
18988
19252
|
quantity?: number;
|
|
18989
|
-
sort_order
|
|
19253
|
+
sort_order: number;
|
|
18990
19254
|
trade_item_id: string;
|
|
18991
19255
|
};
|
|
18992
19256
|
Update: {
|
|
@@ -20217,6 +20481,7 @@ export type Database = {
|
|
|
20217
20481
|
is_protected: boolean;
|
|
20218
20482
|
key: string;
|
|
20219
20483
|
name: string;
|
|
20484
|
+
permissions_initialized: boolean;
|
|
20220
20485
|
updated_at: string;
|
|
20221
20486
|
};
|
|
20222
20487
|
Insert: {
|
|
@@ -20225,6 +20490,7 @@ export type Database = {
|
|
|
20225
20490
|
is_protected?: boolean;
|
|
20226
20491
|
key: string;
|
|
20227
20492
|
name: string;
|
|
20493
|
+
permissions_initialized?: boolean;
|
|
20228
20494
|
updated_at?: string;
|
|
20229
20495
|
};
|
|
20230
20496
|
Update: {
|
|
@@ -20233,6 +20499,7 @@ export type Database = {
|
|
|
20233
20499
|
is_protected?: boolean;
|
|
20234
20500
|
key?: string;
|
|
20235
20501
|
name?: string;
|
|
20502
|
+
permissions_initialized?: boolean;
|
|
20236
20503
|
updated_at?: string;
|
|
20237
20504
|
};
|
|
20238
20505
|
Relationships: [];
|
|
@@ -20938,43 +21205,212 @@ export type Database = {
|
|
|
20938
21205
|
};
|
|
20939
21206
|
Relationships: [];
|
|
20940
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
|
+
};
|
|
20941
21347
|
stock_import_runs: {
|
|
20942
21348
|
Row: {
|
|
21349
|
+
chunk_size: number | null;
|
|
20943
21350
|
connection_id: string | null;
|
|
20944
21351
|
created_at: string;
|
|
20945
21352
|
created_rows: number;
|
|
21353
|
+
done_chunks: number;
|
|
20946
21354
|
errors: Json;
|
|
21355
|
+
file_hash: string | null;
|
|
20947
21356
|
filename: string | null;
|
|
21357
|
+
finished_at: string | null;
|
|
20948
21358
|
id: string;
|
|
20949
21359
|
mutations: Json;
|
|
21360
|
+
rows_purged_at: string | null;
|
|
20950
21361
|
skipped_rows: number;
|
|
21362
|
+
status: string;
|
|
21363
|
+
total_chunks: number;
|
|
20951
21364
|
total_rows: number;
|
|
21365
|
+
undo_skipped_rows: number;
|
|
21366
|
+
undone_rows: number;
|
|
21367
|
+
updated_at: string;
|
|
20952
21368
|
updated_rows: number;
|
|
20953
21369
|
user_id: string;
|
|
20954
21370
|
};
|
|
20955
21371
|
Insert: {
|
|
21372
|
+
chunk_size?: number | null;
|
|
20956
21373
|
connection_id?: string | null;
|
|
20957
21374
|
created_at?: string;
|
|
20958
21375
|
created_rows?: number;
|
|
21376
|
+
done_chunks?: number;
|
|
20959
21377
|
errors?: Json;
|
|
21378
|
+
file_hash?: string | null;
|
|
20960
21379
|
filename?: string | null;
|
|
21380
|
+
finished_at?: string | null;
|
|
20961
21381
|
id?: string;
|
|
20962
21382
|
mutations?: Json;
|
|
21383
|
+
rows_purged_at?: string | null;
|
|
20963
21384
|
skipped_rows?: number;
|
|
21385
|
+
status?: string;
|
|
21386
|
+
total_chunks?: number;
|
|
20964
21387
|
total_rows?: number;
|
|
21388
|
+
undo_skipped_rows?: number;
|
|
21389
|
+
undone_rows?: number;
|
|
21390
|
+
updated_at?: string;
|
|
20965
21391
|
updated_rows?: number;
|
|
20966
21392
|
user_id: string;
|
|
20967
21393
|
};
|
|
20968
21394
|
Update: {
|
|
21395
|
+
chunk_size?: number | null;
|
|
20969
21396
|
connection_id?: string | null;
|
|
20970
21397
|
created_at?: string;
|
|
20971
21398
|
created_rows?: number;
|
|
21399
|
+
done_chunks?: number;
|
|
20972
21400
|
errors?: Json;
|
|
21401
|
+
file_hash?: string | null;
|
|
20973
21402
|
filename?: string | null;
|
|
21403
|
+
finished_at?: string | null;
|
|
20974
21404
|
id?: string;
|
|
20975
21405
|
mutations?: Json;
|
|
21406
|
+
rows_purged_at?: string | null;
|
|
20976
21407
|
skipped_rows?: number;
|
|
21408
|
+
status?: string;
|
|
21409
|
+
total_chunks?: number;
|
|
20977
21410
|
total_rows?: number;
|
|
21411
|
+
undo_skipped_rows?: number;
|
|
21412
|
+
undone_rows?: number;
|
|
21413
|
+
updated_at?: string;
|
|
20978
21414
|
updated_rows?: number;
|
|
20979
21415
|
user_id?: string;
|
|
20980
21416
|
};
|
|
@@ -20984,6 +21420,7 @@ export type Database = {
|
|
|
20984
21420
|
Row: {
|
|
20985
21421
|
acknowledged_at: string | null;
|
|
20986
21422
|
acknowledged_by: string | null;
|
|
21423
|
+
alert_kind: string;
|
|
20987
21424
|
created_at: string;
|
|
20988
21425
|
id: string;
|
|
20989
21426
|
item_count: number;
|
|
@@ -20994,6 +21431,7 @@ export type Database = {
|
|
|
20994
21431
|
Insert: {
|
|
20995
21432
|
acknowledged_at?: string | null;
|
|
20996
21433
|
acknowledged_by?: string | null;
|
|
21434
|
+
alert_kind?: string;
|
|
20997
21435
|
created_at?: string;
|
|
20998
21436
|
id?: string;
|
|
20999
21437
|
item_count?: number;
|
|
@@ -21004,6 +21442,7 @@ export type Database = {
|
|
|
21004
21442
|
Update: {
|
|
21005
21443
|
acknowledged_at?: string | null;
|
|
21006
21444
|
acknowledged_by?: string | null;
|
|
21445
|
+
alert_kind?: string;
|
|
21007
21446
|
created_at?: string;
|
|
21008
21447
|
id?: string;
|
|
21009
21448
|
item_count?: number;
|
|
@@ -21070,7 +21509,46 @@ export type Database = {
|
|
|
21070
21509
|
};
|
|
21071
21510
|
Relationships: [];
|
|
21072
21511
|
};
|
|
21073
|
-
|
|
21512
|
+
structure_cleanup_log: {
|
|
21513
|
+
Row: {
|
|
21514
|
+
action: string;
|
|
21515
|
+
batch: string;
|
|
21516
|
+
created_at: string;
|
|
21517
|
+
id: string;
|
|
21518
|
+
new_row: Json | null;
|
|
21519
|
+
old_row: Json;
|
|
21520
|
+
reason: string;
|
|
21521
|
+
row_id: string;
|
|
21522
|
+
step: number;
|
|
21523
|
+
table_name: string;
|
|
21524
|
+
};
|
|
21525
|
+
Insert: {
|
|
21526
|
+
action: string;
|
|
21527
|
+
batch: string;
|
|
21528
|
+
created_at?: string;
|
|
21529
|
+
id?: string;
|
|
21530
|
+
new_row?: Json | null;
|
|
21531
|
+
old_row: Json;
|
|
21532
|
+
reason: string;
|
|
21533
|
+
row_id: string;
|
|
21534
|
+
step: number;
|
|
21535
|
+
table_name: string;
|
|
21536
|
+
};
|
|
21537
|
+
Update: {
|
|
21538
|
+
action?: string;
|
|
21539
|
+
batch?: string;
|
|
21540
|
+
created_at?: string;
|
|
21541
|
+
id?: string;
|
|
21542
|
+
new_row?: Json | null;
|
|
21543
|
+
old_row?: Json;
|
|
21544
|
+
reason?: string;
|
|
21545
|
+
row_id?: string;
|
|
21546
|
+
step?: number;
|
|
21547
|
+
table_name?: string;
|
|
21548
|
+
};
|
|
21549
|
+
Relationships: [];
|
|
21550
|
+
};
|
|
21551
|
+
supplier_contacts: {
|
|
21074
21552
|
Row: {
|
|
21075
21553
|
created_at: string;
|
|
21076
21554
|
email: string | null;
|
|
@@ -26840,6 +27318,15 @@ export type Database = {
|
|
|
26840
27318
|
};
|
|
26841
27319
|
};
|
|
26842
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
|
+
};
|
|
26843
27330
|
_floriday_schedule_job: {
|
|
26844
27331
|
Args: {
|
|
26845
27332
|
p_apikey: string;
|
|
@@ -26863,6 +27350,12 @@ export type Database = {
|
|
|
26863
27350
|
};
|
|
26864
27351
|
Returns: Json;
|
|
26865
27352
|
};
|
|
27353
|
+
_stock_import_caller: {
|
|
27354
|
+
Args: {
|
|
27355
|
+
p_owner: string;
|
|
27356
|
+
};
|
|
27357
|
+
Returns: boolean;
|
|
27358
|
+
};
|
|
26866
27359
|
_wo_is_planner: {
|
|
26867
27360
|
Args: never;
|
|
26868
27361
|
Returns: boolean;
|
|
@@ -27006,6 +27499,15 @@ export type Database = {
|
|
|
27006
27499
|
};
|
|
27007
27500
|
Returns: number;
|
|
27008
27501
|
};
|
|
27502
|
+
calculate_structure_available: {
|
|
27503
|
+
Args: {
|
|
27504
|
+
p_connection_id: string;
|
|
27505
|
+
p_level?: number;
|
|
27506
|
+
p_path?: string[];
|
|
27507
|
+
p_product_id: string;
|
|
27508
|
+
};
|
|
27509
|
+
Returns: Json;
|
|
27510
|
+
};
|
|
27009
27511
|
call_exact_route: {
|
|
27010
27512
|
Args: {
|
|
27011
27513
|
path: string;
|
|
@@ -27034,6 +27536,19 @@ export type Database = {
|
|
|
27034
27536
|
};
|
|
27035
27537
|
Returns: Json;
|
|
27036
27538
|
};
|
|
27539
|
+
check_product_structure: {
|
|
27540
|
+
Args: {
|
|
27541
|
+
p_child: string;
|
|
27542
|
+
p_kind: string;
|
|
27543
|
+
p_name?: string;
|
|
27544
|
+
p_parent: string;
|
|
27545
|
+
};
|
|
27546
|
+
Returns: {
|
|
27547
|
+
code: string;
|
|
27548
|
+
message: string;
|
|
27549
|
+
ok: boolean;
|
|
27550
|
+
}[];
|
|
27551
|
+
};
|
|
27037
27552
|
check_trade_item_available_stock: {
|
|
27038
27553
|
Args: {
|
|
27039
27554
|
p_connection_id?: string;
|
|
@@ -27120,6 +27635,7 @@ export type Database = {
|
|
|
27120
27635
|
dead_lettered_at: string | null;
|
|
27121
27636
|
desired_available: boolean | null;
|
|
27122
27637
|
gateway_attempt_id: string | null;
|
|
27638
|
+
gateway_unreachable_since: string | null;
|
|
27123
27639
|
id: string;
|
|
27124
27640
|
last_error: string | null;
|
|
27125
27641
|
locked_at: string | null;
|
|
@@ -27447,6 +27963,15 @@ export type Database = {
|
|
|
27447
27963
|
wait_ms: number;
|
|
27448
27964
|
}[];
|
|
27449
27965
|
};
|
|
27966
|
+
consume_order_item: {
|
|
27967
|
+
Args: {
|
|
27968
|
+
p_order_id: string;
|
|
27969
|
+
p_order_item_id: string;
|
|
27970
|
+
p_reason: string;
|
|
27971
|
+
p_source: string;
|
|
27972
|
+
};
|
|
27973
|
+
Returns: number;
|
|
27974
|
+
};
|
|
27450
27975
|
consume_print_agent_pairing: {
|
|
27451
27976
|
Args: {
|
|
27452
27977
|
_pairing_hash: string;
|
|
@@ -27579,6 +28104,10 @@ export type Database = {
|
|
|
27579
28104
|
};
|
|
27580
28105
|
Returns: Json;
|
|
27581
28106
|
};
|
|
28107
|
+
drain_inventory_recompute_queue: {
|
|
28108
|
+
Args: never;
|
|
28109
|
+
Returns: number;
|
|
28110
|
+
};
|
|
27582
28111
|
effective_module_permission: {
|
|
27583
28112
|
Args: {
|
|
27584
28113
|
_module_id: string;
|
|
@@ -27651,6 +28180,18 @@ export type Database = {
|
|
|
27651
28180
|
};
|
|
27652
28181
|
Returns: undefined;
|
|
27653
28182
|
};
|
|
28183
|
+
enqueue_structure_recompute: {
|
|
28184
|
+
Args: {
|
|
28185
|
+
p_include_self?: boolean;
|
|
28186
|
+
p_product_ids: string[];
|
|
28187
|
+
p_reason: string;
|
|
28188
|
+
};
|
|
28189
|
+
Returns: number;
|
|
28190
|
+
};
|
|
28191
|
+
ensure_inventory_recompute_drain: {
|
|
28192
|
+
Args: never;
|
|
28193
|
+
Returns: undefined;
|
|
28194
|
+
};
|
|
27654
28195
|
ensure_system_roles: {
|
|
27655
28196
|
Args: never;
|
|
27656
28197
|
Returns: {
|
|
@@ -27756,7 +28297,7 @@ export type Database = {
|
|
|
27756
28297
|
};
|
|
27757
28298
|
floriday_cleanup_stock_queue_v2: {
|
|
27758
28299
|
Args: never;
|
|
27759
|
-
Returns:
|
|
28300
|
+
Returns: Json;
|
|
27760
28301
|
};
|
|
27761
28302
|
floriday_compact_stock_snapshots: {
|
|
27762
28303
|
Args: never;
|
|
@@ -27768,6 +28309,19 @@ export type Database = {
|
|
|
27768
28309
|
};
|
|
27769
28310
|
Returns: string;
|
|
27770
28311
|
};
|
|
28312
|
+
floriday_desired_stock_regression_check: {
|
|
28313
|
+
Args: never;
|
|
28314
|
+
Returns: {
|
|
28315
|
+
actual: number;
|
|
28316
|
+
available: number;
|
|
28317
|
+
equal: boolean;
|
|
28318
|
+
expected: number;
|
|
28319
|
+
packing: number;
|
|
28320
|
+
product_id: string;
|
|
28321
|
+
product_name: string;
|
|
28322
|
+
stock_mode: string;
|
|
28323
|
+
}[];
|
|
28324
|
+
};
|
|
27771
28325
|
floriday_effective_price: {
|
|
27772
28326
|
Args: {
|
|
27773
28327
|
_buyer_id: string;
|
|
@@ -27795,6 +28349,10 @@ export type Database = {
|
|
|
27795
28349
|
};
|
|
27796
28350
|
Returns: number;
|
|
27797
28351
|
};
|
|
28352
|
+
floriday_orphan_settings_count: {
|
|
28353
|
+
Args: never;
|
|
28354
|
+
Returns: number;
|
|
28355
|
+
};
|
|
27798
28356
|
floriday_publish_horizon_weeks: {
|
|
27799
28357
|
Args: never;
|
|
27800
28358
|
Returns: number;
|
|
@@ -28026,6 +28584,18 @@ export type Database = {
|
|
|
28026
28584
|
updated_at: string;
|
|
28027
28585
|
}[];
|
|
28028
28586
|
};
|
|
28587
|
+
get_product_structure_totals: {
|
|
28588
|
+
Args: {
|
|
28589
|
+
p_product_id: string;
|
|
28590
|
+
};
|
|
28591
|
+
Returns: Json;
|
|
28592
|
+
};
|
|
28593
|
+
get_product_structure_totals_batch: {
|
|
28594
|
+
Args: {
|
|
28595
|
+
p_product_ids: string[];
|
|
28596
|
+
};
|
|
28597
|
+
Returns: Json[];
|
|
28598
|
+
};
|
|
28029
28599
|
get_room_busy_windows: {
|
|
28030
28600
|
Args: {
|
|
28031
28601
|
p_from: string;
|
|
@@ -28449,6 +29019,10 @@ export type Database = {
|
|
|
28449
29019
|
};
|
|
28450
29020
|
Returns: number;
|
|
28451
29021
|
};
|
|
29022
|
+
inventory_inline_budget_ok: {
|
|
29023
|
+
Args: never;
|
|
29024
|
+
Returns: boolean;
|
|
29025
|
+
};
|
|
28452
29026
|
invoice_auto_concept_for_work_order: {
|
|
28453
29027
|
Args: {
|
|
28454
29028
|
_wo_id: string;
|
|
@@ -28722,6 +29296,24 @@ export type Database = {
|
|
|
28722
29296
|
};
|
|
28723
29297
|
Returns: string;
|
|
28724
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
|
+
};
|
|
28725
29317
|
logistics_allowed_load_carriers: {
|
|
28726
29318
|
Args: {
|
|
28727
29319
|
p_strategy_id?: string;
|
|
@@ -28735,6 +29327,13 @@ export type Database = {
|
|
|
28735
29327
|
};
|
|
28736
29328
|
Returns: string;
|
|
28737
29329
|
};
|
|
29330
|
+
logistics_apply_cart_swap: {
|
|
29331
|
+
Args: {
|
|
29332
|
+
p_delete_ids: string[];
|
|
29333
|
+
p_new_carts: Json;
|
|
29334
|
+
};
|
|
29335
|
+
Returns: Json;
|
|
29336
|
+
};
|
|
28738
29337
|
logistics_apply_document_layouts: {
|
|
28739
29338
|
Args: never;
|
|
28740
29339
|
Returns: undefined;
|
|
@@ -29411,6 +30010,15 @@ export type Database = {
|
|
|
29411
30010
|
};
|
|
29412
30011
|
Returns: Database["public"]["Enums"]["doc_layout_type"][];
|
|
29413
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
|
+
};
|
|
29414
30022
|
logistics_emit_event: {
|
|
29415
30023
|
Args: {
|
|
29416
30024
|
p_event_type: string;
|
|
@@ -29466,6 +30074,20 @@ export type Database = {
|
|
|
29466
30074
|
};
|
|
29467
30075
|
Returns: Json;
|
|
29468
30076
|
};
|
|
30077
|
+
logistics_expand_line: {
|
|
30078
|
+
Args: {
|
|
30079
|
+
p_depth?: number;
|
|
30080
|
+
p_path?: string[];
|
|
30081
|
+
p_product_id: string;
|
|
30082
|
+
p_qty: number;
|
|
30083
|
+
};
|
|
30084
|
+
Returns: {
|
|
30085
|
+
kind: string;
|
|
30086
|
+
note: string;
|
|
30087
|
+
qty: number;
|
|
30088
|
+
ref: string;
|
|
30089
|
+
}[];
|
|
30090
|
+
};
|
|
29469
30091
|
logistics_fail_task: {
|
|
29470
30092
|
Args: {
|
|
29471
30093
|
p_error: string;
|
|
@@ -29655,6 +30277,18 @@ export type Database = {
|
|
|
29655
30277
|
};
|
|
29656
30278
|
Returns: boolean;
|
|
29657
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
|
+
};
|
|
29658
30292
|
logistics_fulfill_barcode_requests: {
|
|
29659
30293
|
Args: {
|
|
29660
30294
|
p_limit?: number;
|
|
@@ -29676,12 +30310,24 @@ export type Database = {
|
|
|
29676
30310
|
};
|
|
29677
30311
|
Returns: boolean;
|
|
29678
30312
|
};
|
|
30313
|
+
logistics_is_group_label: {
|
|
30314
|
+
Args: {
|
|
30315
|
+
p_label: string;
|
|
30316
|
+
};
|
|
30317
|
+
Returns: boolean;
|
|
30318
|
+
};
|
|
29679
30319
|
logistics_is_pick_workday: {
|
|
29680
30320
|
Args: {
|
|
29681
30321
|
p_date: string;
|
|
29682
30322
|
};
|
|
29683
30323
|
Returns: boolean;
|
|
29684
30324
|
};
|
|
30325
|
+
logistics_key_product: {
|
|
30326
|
+
Args: {
|
|
30327
|
+
p_key: string;
|
|
30328
|
+
};
|
|
30329
|
+
Returns: string;
|
|
30330
|
+
};
|
|
29685
30331
|
logistics_layout_method_status: {
|
|
29686
30332
|
Args: never;
|
|
29687
30333
|
Returns: Json;
|
|
@@ -29784,6 +30430,12 @@ export type Database = {
|
|
|
29784
30430
|
};
|
|
29785
30431
|
Returns: undefined;
|
|
29786
30432
|
};
|
|
30433
|
+
logistics_order_current_warnings: {
|
|
30434
|
+
Args: {
|
|
30435
|
+
p_order_id: string;
|
|
30436
|
+
};
|
|
30437
|
+
Returns: string[];
|
|
30438
|
+
};
|
|
29787
30439
|
logistics_order_documents_ready: {
|
|
29788
30440
|
Args: {
|
|
29789
30441
|
p_order_ref: string;
|
|
@@ -29865,6 +30517,18 @@ export type Database = {
|
|
|
29865
30517
|
};
|
|
29866
30518
|
Returns: boolean;
|
|
29867
30519
|
};
|
|
30520
|
+
logistics_order_line_allocation: {
|
|
30521
|
+
Args: {
|
|
30522
|
+
p_order_item_id: string;
|
|
30523
|
+
};
|
|
30524
|
+
Returns: {
|
|
30525
|
+
group_id: string;
|
|
30526
|
+
note: string;
|
|
30527
|
+
qty: number;
|
|
30528
|
+
source: string;
|
|
30529
|
+
trade_item_key: string;
|
|
30530
|
+
}[];
|
|
30531
|
+
};
|
|
29868
30532
|
logistics_order_line_duplicates: {
|
|
29869
30533
|
Args: {
|
|
29870
30534
|
p_order_id: string;
|
|
@@ -30224,6 +30888,21 @@ export type Database = {
|
|
|
30224
30888
|
Args: never;
|
|
30225
30889
|
Returns: number;
|
|
30226
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
|
+
};
|
|
30227
30906
|
logistics_planner_cart_snapshot: {
|
|
30228
30907
|
Args: {
|
|
30229
30908
|
p_buffer_id: string;
|
|
@@ -30239,6 +30918,23 @@ export type Database = {
|
|
|
30239
30918
|
Args: never;
|
|
30240
30919
|
Returns: number;
|
|
30241
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
|
+
};
|
|
30242
30938
|
logistics_prepare_pick_documents: {
|
|
30243
30939
|
Args: {
|
|
30244
30940
|
p_limit?: number;
|
|
@@ -30310,6 +31006,12 @@ export type Database = {
|
|
|
30310
31006
|
Args: never;
|
|
30311
31007
|
Returns: number;
|
|
30312
31008
|
};
|
|
31009
|
+
logistics_recompute_reserved_targeted: {
|
|
31010
|
+
Args: {
|
|
31011
|
+
p_product_id: string;
|
|
31012
|
+
};
|
|
31013
|
+
Returns: Json;
|
|
31014
|
+
};
|
|
30313
31015
|
logistics_reconcile_missing_plan_queue: {
|
|
30314
31016
|
Args: never;
|
|
30315
31017
|
Returns: number;
|
|
@@ -30363,6 +31065,13 @@ export type Database = {
|
|
|
30363
31065
|
};
|
|
30364
31066
|
Returns: Json;
|
|
30365
31067
|
};
|
|
31068
|
+
logistics_replan_selected_orders: {
|
|
31069
|
+
Args: {
|
|
31070
|
+
p_order_ids: string[];
|
|
31071
|
+
p_reason?: string;
|
|
31072
|
+
};
|
|
31073
|
+
Returns: Json;
|
|
31074
|
+
};
|
|
30366
31075
|
logistics_report_delay: {
|
|
30367
31076
|
Args: {
|
|
30368
31077
|
p_expected_date?: string;
|
|
@@ -30379,6 +31088,12 @@ export type Database = {
|
|
|
30379
31088
|
};
|
|
30380
31089
|
Returns: string;
|
|
30381
31090
|
};
|
|
31091
|
+
logistics_report_frozen_shortage: {
|
|
31092
|
+
Args: {
|
|
31093
|
+
p_order_item_ids: string[];
|
|
31094
|
+
};
|
|
31095
|
+
Returns: undefined;
|
|
31096
|
+
};
|
|
30382
31097
|
logistics_rescan_orders: {
|
|
30383
31098
|
Args: {
|
|
30384
31099
|
p_days?: number;
|
|
@@ -30407,6 +31122,13 @@ export type Database = {
|
|
|
30407
31122
|
};
|
|
30408
31123
|
Returns: Json;
|
|
30409
31124
|
};
|
|
31125
|
+
logistics_reserved_fast_skip: {
|
|
31126
|
+
Args: {
|
|
31127
|
+
p_key: string;
|
|
31128
|
+
p_raw: string;
|
|
31129
|
+
};
|
|
31130
|
+
Returns: boolean;
|
|
31131
|
+
};
|
|
30410
31132
|
logistics_reserved_key: {
|
|
30411
31133
|
Args: {
|
|
30412
31134
|
p_key: string;
|
|
@@ -30432,6 +31154,12 @@ export type Database = {
|
|
|
30432
31154
|
};
|
|
30433
31155
|
Returns: string;
|
|
30434
31156
|
};
|
|
31157
|
+
logistics_resolve_product_match: {
|
|
31158
|
+
Args: {
|
|
31159
|
+
p_label: string;
|
|
31160
|
+
};
|
|
31161
|
+
Returns: Record<string, unknown>;
|
|
31162
|
+
};
|
|
30435
31163
|
logistics_resolve_settings: {
|
|
30436
31164
|
Args: {
|
|
30437
31165
|
p_config_id: string;
|
|
@@ -30552,6 +31280,16 @@ export type Database = {
|
|
|
30552
31280
|
};
|
|
30553
31281
|
Returns: string;
|
|
30554
31282
|
};
|
|
31283
|
+
logistics_shipping_note_max_attempts: {
|
|
31284
|
+
Args: never;
|
|
31285
|
+
Returns: number;
|
|
31286
|
+
};
|
|
31287
|
+
logistics_shipping_note_release: {
|
|
31288
|
+
Args: {
|
|
31289
|
+
_order_number?: string;
|
|
31290
|
+
};
|
|
31291
|
+
Returns: number;
|
|
31292
|
+
};
|
|
30555
31293
|
logistics_shipping_note_status: {
|
|
30556
31294
|
Args: {
|
|
30557
31295
|
p_cart_id?: string;
|
|
@@ -30559,6 +31297,12 @@ export type Database = {
|
|
|
30559
31297
|
};
|
|
30560
31298
|
Returns: Json;
|
|
30561
31299
|
};
|
|
31300
|
+
logistics_shipping_note_wake: {
|
|
31301
|
+
Args: {
|
|
31302
|
+
_slip_job_id: string;
|
|
31303
|
+
};
|
|
31304
|
+
Returns: number;
|
|
31305
|
+
};
|
|
30562
31306
|
logistics_shipping_notes_wake_all: {
|
|
30563
31307
|
Args: never;
|
|
30564
31308
|
Returns: Json;
|
|
@@ -30593,6 +31337,7 @@ export type Database = {
|
|
|
30593
31337
|
slip_job_id: string;
|
|
30594
31338
|
status: string;
|
|
30595
31339
|
updated_at: string;
|
|
31340
|
+
voor_herstel: boolean;
|
|
30596
31341
|
}[];
|
|
30597
31342
|
SetofOptions: {
|
|
30598
31343
|
from: "*";
|
|
@@ -30613,6 +31358,13 @@ export type Database = {
|
|
|
30613
31358
|
};
|
|
30614
31359
|
Returns: undefined;
|
|
30615
31360
|
};
|
|
31361
|
+
logistics_slip_note_hold: {
|
|
31362
|
+
Args: {
|
|
31363
|
+
_id: string;
|
|
31364
|
+
_reason: string;
|
|
31365
|
+
};
|
|
31366
|
+
Returns: undefined;
|
|
31367
|
+
};
|
|
30616
31368
|
logistics_slip_note_keep_waiting: {
|
|
30617
31369
|
Args: {
|
|
30618
31370
|
_class?: string;
|
|
@@ -32016,6 +32768,12 @@ export type Database = {
|
|
|
32016
32768
|
};
|
|
32017
32769
|
Returns: Json;
|
|
32018
32770
|
};
|
|
32771
|
+
process_inventory_recompute_queue: {
|
|
32772
|
+
Args: {
|
|
32773
|
+
p_limit?: number;
|
|
32774
|
+
};
|
|
32775
|
+
Returns: number;
|
|
32776
|
+
};
|
|
32019
32777
|
process_logistics_event: {
|
|
32020
32778
|
Args: {
|
|
32021
32779
|
p_event_id: string;
|
|
@@ -32030,6 +32788,80 @@ export type Database = {
|
|
|
32030
32788
|
};
|
|
32031
32789
|
Returns: Json;
|
|
32032
32790
|
};
|
|
32791
|
+
product_active_group_id: {
|
|
32792
|
+
Args: {
|
|
32793
|
+
p_product_id: string;
|
|
32794
|
+
};
|
|
32795
|
+
Returns: string;
|
|
32796
|
+
};
|
|
32797
|
+
product_id_from_ref: {
|
|
32798
|
+
Args: {
|
|
32799
|
+
p_ref: string;
|
|
32800
|
+
};
|
|
32801
|
+
Returns: string;
|
|
32802
|
+
};
|
|
32803
|
+
product_is_set: {
|
|
32804
|
+
Args: {
|
|
32805
|
+
p_product_id: string;
|
|
32806
|
+
};
|
|
32807
|
+
Returns: boolean;
|
|
32808
|
+
};
|
|
32809
|
+
product_label: {
|
|
32810
|
+
Args: {
|
|
32811
|
+
p_id: string;
|
|
32812
|
+
};
|
|
32813
|
+
Returns: string;
|
|
32814
|
+
};
|
|
32815
|
+
product_member_group_ids: {
|
|
32816
|
+
Args: {
|
|
32817
|
+
p_product_id: string;
|
|
32818
|
+
};
|
|
32819
|
+
Returns: string[];
|
|
32820
|
+
};
|
|
32821
|
+
product_own_available: {
|
|
32822
|
+
Args: {
|
|
32823
|
+
p_connection_id: string;
|
|
32824
|
+
p_product_id: string;
|
|
32825
|
+
};
|
|
32826
|
+
Returns: Record<string, unknown>;
|
|
32827
|
+
};
|
|
32828
|
+
product_set_depth_above: {
|
|
32829
|
+
Args: {
|
|
32830
|
+
p_path?: string[];
|
|
32831
|
+
p_product_id: string;
|
|
32832
|
+
};
|
|
32833
|
+
Returns: number;
|
|
32834
|
+
};
|
|
32835
|
+
product_set_depth_below: {
|
|
32836
|
+
Args: {
|
|
32837
|
+
p_path?: string[];
|
|
32838
|
+
p_product_id: string;
|
|
32839
|
+
};
|
|
32840
|
+
Returns: number;
|
|
32841
|
+
};
|
|
32842
|
+
product_structure_ancestors: {
|
|
32843
|
+
Args: {
|
|
32844
|
+
p_product_ids: string[];
|
|
32845
|
+
};
|
|
32846
|
+
Returns: string[];
|
|
32847
|
+
};
|
|
32848
|
+
product_structure_max_depth: {
|
|
32849
|
+
Args: never;
|
|
32850
|
+
Returns: number;
|
|
32851
|
+
};
|
|
32852
|
+
product_structure_path: {
|
|
32853
|
+
Args: {
|
|
32854
|
+
p_from: string;
|
|
32855
|
+
p_target: string;
|
|
32856
|
+
};
|
|
32857
|
+
Returns: string[];
|
|
32858
|
+
};
|
|
32859
|
+
product_type: {
|
|
32860
|
+
Args: {
|
|
32861
|
+
p_product_id: string;
|
|
32862
|
+
};
|
|
32863
|
+
Returns: string;
|
|
32864
|
+
};
|
|
32033
32865
|
promote_floriday_customer: {
|
|
32034
32866
|
Args: {
|
|
32035
32867
|
_org_id: string;
|
|
@@ -32270,6 +33102,14 @@ export type Database = {
|
|
|
32270
33102
|
};
|
|
32271
33103
|
Returns: Json;
|
|
32272
33104
|
};
|
|
33105
|
+
requeue_skipped_stock_rows: {
|
|
33106
|
+
Args: {
|
|
33107
|
+
p_connection_id: string;
|
|
33108
|
+
p_status: string;
|
|
33109
|
+
p_trade_item_id?: string;
|
|
33110
|
+
};
|
|
33111
|
+
Returns: number;
|
|
33112
|
+
};
|
|
32273
33113
|
reset_cart_layer_positions: {
|
|
32274
33114
|
Args: {
|
|
32275
33115
|
p_cart_id: string;
|
|
@@ -32382,6 +33222,41 @@ export type Database = {
|
|
|
32382
33222
|
Args: never;
|
|
32383
33223
|
Returns: undefined;
|
|
32384
33224
|
};
|
|
33225
|
+
save_belading: {
|
|
33226
|
+
Args: {
|
|
33227
|
+
p_expected_updated_at: string;
|
|
33228
|
+
p_packing_configuration_id: string;
|
|
33229
|
+
p_product_id: string;
|
|
33230
|
+
p_tenant_id: string;
|
|
33231
|
+
p_trade_item_floriday_id: string;
|
|
33232
|
+
p_values: Json;
|
|
33233
|
+
};
|
|
33234
|
+
Returns: Json;
|
|
33235
|
+
};
|
|
33236
|
+
save_product_group: {
|
|
33237
|
+
Args: {
|
|
33238
|
+
p_description: string;
|
|
33239
|
+
p_expected_updated_at: string;
|
|
33240
|
+
p_head_product_id: string;
|
|
33241
|
+
p_id: string;
|
|
33242
|
+
p_is_active: boolean;
|
|
33243
|
+
p_members: Json;
|
|
33244
|
+
p_name: string;
|
|
33245
|
+
};
|
|
33246
|
+
Returns: Json;
|
|
33247
|
+
};
|
|
33248
|
+
save_samenstelling: {
|
|
33249
|
+
Args: {
|
|
33250
|
+
p_components: Json;
|
|
33251
|
+
p_expected_updated_at: string;
|
|
33252
|
+
p_external: Json;
|
|
33253
|
+
p_packing_configuration_id: string;
|
|
33254
|
+
p_parent_id: string;
|
|
33255
|
+
p_parent_kind: string;
|
|
33256
|
+
p_tenant_id: string;
|
|
33257
|
+
};
|
|
33258
|
+
Returns: Json;
|
|
33259
|
+
};
|
|
32385
33260
|
scan_cancel_kar: {
|
|
32386
33261
|
Args: {
|
|
32387
33262
|
p_kar_id: string;
|
|
@@ -32915,6 +33790,40 @@ export type Database = {
|
|
|
32915
33790
|
};
|
|
32916
33791
|
Returns: Json;
|
|
32917
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
|
+
};
|
|
32918
33827
|
stop_time_log: {
|
|
32919
33828
|
Args: {
|
|
32920
33829
|
p_employee_id: string;
|