@flowselections/floriday-authenticatie-module 1.0.55 → 1.0.58

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.
Files changed (28) hide show
  1. package/dist-lib/components/TemplatePage.d.ts +1 -1
  2. package/dist-lib/components/TemplatePage.d.ts.map +1 -1
  3. package/dist-lib/components/floriday/FlorydayApiLogPage.d.ts +1 -1
  4. package/dist-lib/components/floriday/FlorydayApiLogPage.d.ts.map +1 -1
  5. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts +1 -1
  6. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts.map +1 -1
  7. package/dist-lib/components/floriday/FlorydayCredentialStatusBanner.d.ts +1 -1
  8. package/dist-lib/components/floriday/FlorydayCredentialStatusBanner.d.ts.map +1 -1
  9. package/dist-lib/components/floriday/FlorydayShellRoutesCard.d.ts +1 -1
  10. package/dist-lib/components/floriday/FlorydayShellRoutesCard.d.ts.map +1 -1
  11. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +1 -1
  12. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -1
  13. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts +1 -1
  14. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts.map +1 -1
  15. package/dist-lib/components/floriday/FlorydayWebhooksCard.d.ts +1 -1
  16. package/dist-lib/components/floriday/FlorydayWebhooksCard.d.ts.map +1 -1
  17. package/dist-lib/components/floriday/TokenHealthCard.d.ts +1 -1
  18. package/dist-lib/components/floriday/TokenHealthCard.d.ts.map +1 -1
  19. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts +1 -1
  20. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts.map +1 -1
  21. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts +1 -1
  22. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/client.js +1 -1
  24. package/dist-lib/integrations/supabase/client.server.js +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +540 -3
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/package.json +506 -1
  28. package/dist-lib/assets/floriday-logo.png.asset.json +0 -11
@@ -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;
@@ -12845,6 +13001,7 @@ export type Database = {
12845
13001
  slip_job_id: string;
12846
13002
  status: string;
12847
13003
  updated_at: string;
13004
+ voor_herstel: boolean;
12848
13005
  };
12849
13006
  Insert: {
12850
13007
  attempts?: number;
@@ -12865,6 +13022,7 @@ export type Database = {
12865
13022
  slip_job_id: string;
12866
13023
  status?: string;
12867
13024
  updated_at?: string;
13025
+ voor_herstel?: boolean;
12868
13026
  };
12869
13027
  Update: {
12870
13028
  attempts?: number;
@@ -12885,6 +13043,7 @@ export type Database = {
12885
13043
  slip_job_id?: string;
12886
13044
  status?: string;
12887
13045
  updated_at?: string;
13046
+ voor_herstel?: boolean;
12888
13047
  };
12889
13048
  Relationships: [];
12890
13049
  };
@@ -15445,6 +15604,7 @@ export type Database = {
15445
15604
  Row: {
15446
15605
  boxes: number | null;
15447
15606
  cart_id: string;
15607
+ components: Json | null;
15448
15608
  crates: number;
15449
15609
  crates_in_layer: number | null;
15450
15610
  crates_per_layer: number;
@@ -15463,6 +15623,7 @@ export type Database = {
15463
15623
  Insert: {
15464
15624
  boxes?: number | null;
15465
15625
  cart_id: string;
15626
+ components?: Json | null;
15466
15627
  crates: number;
15467
15628
  crates_in_layer?: number | null;
15468
15629
  crates_per_layer?: number;
@@ -15481,6 +15642,7 @@ export type Database = {
15481
15642
  Update: {
15482
15643
  boxes?: number | null;
15483
15644
  cart_id?: string;
15645
+ components?: Json | null;
15484
15646
  crates?: number;
15485
15647
  crates_in_layer?: number | null;
15486
15648
  crates_per_layer?: number;
@@ -19088,7 +19250,7 @@ export type Database = {
19088
19250
  id?: string;
19089
19251
  product_group_id: string;
19090
19252
  quantity?: number;
19091
- sort_order?: number;
19253
+ sort_order: number;
19092
19254
  trade_item_id: string;
19093
19255
  };
19094
19256
  Update: {
@@ -21043,43 +21205,212 @@ export type Database = {
21043
21205
  };
21044
21206
  Relationships: [];
21045
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
+ };
21046
21347
  stock_import_runs: {
21047
21348
  Row: {
21349
+ chunk_size: number | null;
21048
21350
  connection_id: string | null;
21049
21351
  created_at: string;
21050
21352
  created_rows: number;
21353
+ done_chunks: number;
21051
21354
  errors: Json;
21355
+ file_hash: string | null;
21052
21356
  filename: string | null;
21357
+ finished_at: string | null;
21053
21358
  id: string;
21054
21359
  mutations: Json;
21360
+ rows_purged_at: string | null;
21055
21361
  skipped_rows: number;
21362
+ status: string;
21363
+ total_chunks: number;
21056
21364
  total_rows: number;
21365
+ undo_skipped_rows: number;
21366
+ undone_rows: number;
21367
+ updated_at: string;
21057
21368
  updated_rows: number;
21058
21369
  user_id: string;
21059
21370
  };
21060
21371
  Insert: {
21372
+ chunk_size?: number | null;
21061
21373
  connection_id?: string | null;
21062
21374
  created_at?: string;
21063
21375
  created_rows?: number;
21376
+ done_chunks?: number;
21064
21377
  errors?: Json;
21378
+ file_hash?: string | null;
21065
21379
  filename?: string | null;
21380
+ finished_at?: string | null;
21066
21381
  id?: string;
21067
21382
  mutations?: Json;
21383
+ rows_purged_at?: string | null;
21068
21384
  skipped_rows?: number;
21385
+ status?: string;
21386
+ total_chunks?: number;
21069
21387
  total_rows?: number;
21388
+ undo_skipped_rows?: number;
21389
+ undone_rows?: number;
21390
+ updated_at?: string;
21070
21391
  updated_rows?: number;
21071
21392
  user_id: string;
21072
21393
  };
21073
21394
  Update: {
21395
+ chunk_size?: number | null;
21074
21396
  connection_id?: string | null;
21075
21397
  created_at?: string;
21076
21398
  created_rows?: number;
21399
+ done_chunks?: number;
21077
21400
  errors?: Json;
21401
+ file_hash?: string | null;
21078
21402
  filename?: string | null;
21403
+ finished_at?: string | null;
21079
21404
  id?: string;
21080
21405
  mutations?: Json;
21406
+ rows_purged_at?: string | null;
21081
21407
  skipped_rows?: number;
21408
+ status?: string;
21409
+ total_chunks?: number;
21082
21410
  total_rows?: number;
21411
+ undo_skipped_rows?: number;
21412
+ undone_rows?: number;
21413
+ updated_at?: string;
21083
21414
  updated_rows?: number;
21084
21415
  user_id?: string;
21085
21416
  };
@@ -26987,6 +27318,15 @@ export type Database = {
26987
27318
  };
26988
27319
  };
26989
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
+ };
26990
27330
  _floriday_schedule_job: {
26991
27331
  Args: {
26992
27332
  p_apikey: string;
@@ -27010,6 +27350,12 @@ export type Database = {
27010
27350
  };
27011
27351
  Returns: Json;
27012
27352
  };
27353
+ _stock_import_caller: {
27354
+ Args: {
27355
+ p_owner: string;
27356
+ };
27357
+ Returns: boolean;
27358
+ };
27013
27359
  _wo_is_planner: {
27014
27360
  Args: never;
27015
27361
  Returns: boolean;
@@ -27289,6 +27635,7 @@ export type Database = {
27289
27635
  dead_lettered_at: string | null;
27290
27636
  desired_available: boolean | null;
27291
27637
  gateway_attempt_id: string | null;
27638
+ gateway_unreachable_since: string | null;
27292
27639
  id: string;
27293
27640
  last_error: string | null;
27294
27641
  locked_at: string | null;
@@ -27950,7 +28297,7 @@ export type Database = {
27950
28297
  };
27951
28298
  floriday_cleanup_stock_queue_v2: {
27952
28299
  Args: never;
27953
- Returns: undefined;
28300
+ Returns: Json;
27954
28301
  };
27955
28302
  floriday_compact_stock_snapshots: {
27956
28303
  Args: never;
@@ -28002,6 +28349,10 @@ export type Database = {
28002
28349
  };
28003
28350
  Returns: number;
28004
28351
  };
28352
+ floriday_orphan_settings_count: {
28353
+ Args: never;
28354
+ Returns: number;
28355
+ };
28005
28356
  floriday_publish_horizon_weeks: {
28006
28357
  Args: never;
28007
28358
  Returns: number;
@@ -28945,6 +29296,24 @@ export type Database = {
28945
29296
  };
28946
29297
  Returns: string;
28947
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
+ };
28948
29317
  logistics_allowed_load_carriers: {
28949
29318
  Args: {
28950
29319
  p_strategy_id?: string;
@@ -28958,6 +29327,13 @@ export type Database = {
28958
29327
  };
28959
29328
  Returns: string;
28960
29329
  };
29330
+ logistics_apply_cart_swap: {
29331
+ Args: {
29332
+ p_delete_ids: string[];
29333
+ p_new_carts: Json;
29334
+ };
29335
+ Returns: Json;
29336
+ };
28961
29337
  logistics_apply_document_layouts: {
28962
29338
  Args: never;
28963
29339
  Returns: undefined;
@@ -29634,6 +30010,15 @@ export type Database = {
29634
30010
  };
29635
30011
  Returns: Database["public"]["Enums"]["doc_layout_type"][];
29636
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
+ };
29637
30022
  logistics_emit_event: {
29638
30023
  Args: {
29639
30024
  p_event_type: string;
@@ -29892,6 +30277,18 @@ export type Database = {
29892
30277
  };
29893
30278
  Returns: boolean;
29894
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
+ };
29895
30292
  logistics_fulfill_barcode_requests: {
29896
30293
  Args: {
29897
30294
  p_limit?: number;
@@ -29913,12 +30310,24 @@ export type Database = {
29913
30310
  };
29914
30311
  Returns: boolean;
29915
30312
  };
30313
+ logistics_is_group_label: {
30314
+ Args: {
30315
+ p_label: string;
30316
+ };
30317
+ Returns: boolean;
30318
+ };
29916
30319
  logistics_is_pick_workday: {
29917
30320
  Args: {
29918
30321
  p_date: string;
29919
30322
  };
29920
30323
  Returns: boolean;
29921
30324
  };
30325
+ logistics_key_product: {
30326
+ Args: {
30327
+ p_key: string;
30328
+ };
30329
+ Returns: string;
30330
+ };
29922
30331
  logistics_layout_method_status: {
29923
30332
  Args: never;
29924
30333
  Returns: Json;
@@ -30021,6 +30430,12 @@ export type Database = {
30021
30430
  };
30022
30431
  Returns: undefined;
30023
30432
  };
30433
+ logistics_order_current_warnings: {
30434
+ Args: {
30435
+ p_order_id: string;
30436
+ };
30437
+ Returns: string[];
30438
+ };
30024
30439
  logistics_order_documents_ready: {
30025
30440
  Args: {
30026
30441
  p_order_ref: string;
@@ -30473,6 +30888,21 @@ export type Database = {
30473
30888
  Args: never;
30474
30889
  Returns: number;
30475
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
+ };
30476
30906
  logistics_planner_cart_snapshot: {
30477
30907
  Args: {
30478
30908
  p_buffer_id: string;
@@ -30488,6 +30918,23 @@ export type Database = {
30488
30918
  Args: never;
30489
30919
  Returns: number;
30490
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
+ };
30491
30938
  logistics_prepare_pick_documents: {
30492
30939
  Args: {
30493
30940
  p_limit?: number;
@@ -30559,6 +31006,12 @@ export type Database = {
30559
31006
  Args: never;
30560
31007
  Returns: number;
30561
31008
  };
31009
+ logistics_recompute_reserved_targeted: {
31010
+ Args: {
31011
+ p_product_id: string;
31012
+ };
31013
+ Returns: Json;
31014
+ };
30562
31015
  logistics_reconcile_missing_plan_queue: {
30563
31016
  Args: never;
30564
31017
  Returns: number;
@@ -30612,6 +31065,13 @@ export type Database = {
30612
31065
  };
30613
31066
  Returns: Json;
30614
31067
  };
31068
+ logistics_replan_selected_orders: {
31069
+ Args: {
31070
+ p_order_ids: string[];
31071
+ p_reason?: string;
31072
+ };
31073
+ Returns: Json;
31074
+ };
30615
31075
  logistics_report_delay: {
30616
31076
  Args: {
30617
31077
  p_expected_date?: string;
@@ -30628,6 +31088,12 @@ export type Database = {
30628
31088
  };
30629
31089
  Returns: string;
30630
31090
  };
31091
+ logistics_report_frozen_shortage: {
31092
+ Args: {
31093
+ p_order_item_ids: string[];
31094
+ };
31095
+ Returns: undefined;
31096
+ };
30631
31097
  logistics_rescan_orders: {
30632
31098
  Args: {
30633
31099
  p_days?: number;
@@ -30656,6 +31122,13 @@ export type Database = {
30656
31122
  };
30657
31123
  Returns: Json;
30658
31124
  };
31125
+ logistics_reserved_fast_skip: {
31126
+ Args: {
31127
+ p_key: string;
31128
+ p_raw: string;
31129
+ };
31130
+ Returns: boolean;
31131
+ };
30659
31132
  logistics_reserved_key: {
30660
31133
  Args: {
30661
31134
  p_key: string;
@@ -30681,6 +31154,12 @@ export type Database = {
30681
31154
  };
30682
31155
  Returns: string;
30683
31156
  };
31157
+ logistics_resolve_product_match: {
31158
+ Args: {
31159
+ p_label: string;
31160
+ };
31161
+ Returns: Record<string, unknown>;
31162
+ };
30684
31163
  logistics_resolve_settings: {
30685
31164
  Args: {
30686
31165
  p_config_id: string;
@@ -30801,6 +31280,16 @@ export type Database = {
30801
31280
  };
30802
31281
  Returns: string;
30803
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
+ };
30804
31293
  logistics_shipping_note_status: {
30805
31294
  Args: {
30806
31295
  p_cart_id?: string;
@@ -30808,6 +31297,12 @@ export type Database = {
30808
31297
  };
30809
31298
  Returns: Json;
30810
31299
  };
31300
+ logistics_shipping_note_wake: {
31301
+ Args: {
31302
+ _slip_job_id: string;
31303
+ };
31304
+ Returns: number;
31305
+ };
30811
31306
  logistics_shipping_notes_wake_all: {
30812
31307
  Args: never;
30813
31308
  Returns: Json;
@@ -30842,6 +31337,7 @@ export type Database = {
30842
31337
  slip_job_id: string;
30843
31338
  status: string;
30844
31339
  updated_at: string;
31340
+ voor_herstel: boolean;
30845
31341
  }[];
30846
31342
  SetofOptions: {
30847
31343
  from: "*";
@@ -30862,6 +31358,13 @@ export type Database = {
30862
31358
  };
30863
31359
  Returns: undefined;
30864
31360
  };
31361
+ logistics_slip_note_hold: {
31362
+ Args: {
31363
+ _id: string;
31364
+ _reason: string;
31365
+ };
31366
+ Returns: undefined;
31367
+ };
30865
31368
  logistics_slip_note_keep_waiting: {
30866
31369
  Args: {
30867
31370
  _class?: string;
@@ -33287,6 +33790,40 @@ export type Database = {
33287
33790
  };
33288
33791
  Returns: Json;
33289
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
+ };
33290
33827
  stop_time_log: {
33291
33828
  Args: {
33292
33829
  p_employee_id: string;