@flowselections/layout-maker 1.69.3 → 1.69.5

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.
@@ -1531,6 +1531,7 @@ export type Database = {
1531
1531
  cart_numbers: {
1532
1532
  Row: {
1533
1533
  assigned_at: string;
1534
+ cart_id: string | null;
1534
1535
  cart_index: number;
1535
1536
  cart_number: string;
1536
1537
  day_seq: number | null;
@@ -1544,6 +1545,7 @@ export type Database = {
1544
1545
  };
1545
1546
  Insert: {
1546
1547
  assigned_at?: string;
1548
+ cart_id?: string | null;
1547
1549
  cart_index: number;
1548
1550
  cart_number: string;
1549
1551
  day_seq?: number | null;
@@ -1557,6 +1559,7 @@ export type Database = {
1557
1559
  };
1558
1560
  Update: {
1559
1561
  assigned_at?: string;
1562
+ cart_id?: string | null;
1560
1563
  cart_index?: number;
1561
1564
  cart_number?: string;
1562
1565
  day_seq?: number | null;
@@ -7276,16 +7279,22 @@ export type Database = {
7276
7279
  connection_id: string;
7277
7280
  created_at: string;
7278
7281
  data: Json;
7282
+ delivery_date_time: string | null;
7279
7283
  fetched_at: string;
7280
7284
  floriday_id: string;
7285
+ has_file: boolean | null;
7281
7286
  id: string;
7282
7287
  is_deleted: boolean;
7288
+ is_handled: boolean | null;
7289
+ last_requested_on: string | null;
7290
+ number_of_copies: number | null;
7283
7291
  quantity: number | null;
7284
7292
  sales_order_id: string | null;
7285
7293
  sequence_number: number;
7286
7294
  should_be_printed: boolean | null;
7287
7295
  status: string | null;
7288
7296
  sticker_height_mm: number | null;
7297
+ sticker_provided_by: string | null;
7289
7298
  sticker_type: string | null;
7290
7299
  sticker_width_mm: number | null;
7291
7300
  trade_item_id: string | null;
@@ -7295,16 +7304,22 @@ export type Database = {
7295
7304
  connection_id: string;
7296
7305
  created_at?: string;
7297
7306
  data?: Json;
7307
+ delivery_date_time?: string | null;
7298
7308
  fetched_at?: string;
7299
7309
  floriday_id: string;
7310
+ has_file?: boolean | null;
7300
7311
  id?: string;
7301
7312
  is_deleted?: boolean;
7313
+ is_handled?: boolean | null;
7314
+ last_requested_on?: string | null;
7315
+ number_of_copies?: number | null;
7302
7316
  quantity?: number | null;
7303
7317
  sales_order_id?: string | null;
7304
7318
  sequence_number?: number;
7305
7319
  should_be_printed?: boolean | null;
7306
7320
  status?: string | null;
7307
7321
  sticker_height_mm?: number | null;
7322
+ sticker_provided_by?: string | null;
7308
7323
  sticker_type?: string | null;
7309
7324
  sticker_width_mm?: number | null;
7310
7325
  trade_item_id?: string | null;
@@ -7314,16 +7329,22 @@ export type Database = {
7314
7329
  connection_id?: string;
7315
7330
  created_at?: string;
7316
7331
  data?: Json;
7332
+ delivery_date_time?: string | null;
7317
7333
  fetched_at?: string;
7318
7334
  floriday_id?: string;
7335
+ has_file?: boolean | null;
7319
7336
  id?: string;
7320
7337
  is_deleted?: boolean;
7338
+ is_handled?: boolean | null;
7339
+ last_requested_on?: string | null;
7340
+ number_of_copies?: number | null;
7321
7341
  quantity?: number | null;
7322
7342
  sales_order_id?: string | null;
7323
7343
  sequence_number?: number;
7324
7344
  should_be_printed?: boolean | null;
7325
7345
  status?: string | null;
7326
7346
  sticker_height_mm?: number | null;
7347
+ sticker_provided_by?: string | null;
7327
7348
  sticker_type?: string | null;
7328
7349
  sticker_width_mm?: number | null;
7329
7350
  trade_item_id?: string | null;
@@ -8206,6 +8227,59 @@ export type Database = {
8206
8227
  };
8207
8228
  Relationships: [];
8208
8229
  };
8230
+ floriday_packing_mismatches: {
8231
+ Row: {
8232
+ api_value: Json | null;
8233
+ cache_is_deleted: boolean;
8234
+ cache_value: Json | null;
8235
+ check_outcome: string;
8236
+ connection_id: string;
8237
+ details: string | null;
8238
+ detected_at: string;
8239
+ entity: string;
8240
+ floriday_id: string;
8241
+ id: string;
8242
+ last_checked_at: string;
8243
+ resolved_at: string | null;
8244
+ };
8245
+ Insert: {
8246
+ api_value?: Json | null;
8247
+ cache_is_deleted?: boolean;
8248
+ cache_value?: Json | null;
8249
+ check_outcome?: string;
8250
+ connection_id: string;
8251
+ details?: string | null;
8252
+ detected_at?: string;
8253
+ entity: string;
8254
+ floriday_id: string;
8255
+ id?: string;
8256
+ last_checked_at?: string;
8257
+ resolved_at?: string | null;
8258
+ };
8259
+ Update: {
8260
+ api_value?: Json | null;
8261
+ cache_is_deleted?: boolean;
8262
+ cache_value?: Json | null;
8263
+ check_outcome?: string;
8264
+ connection_id?: string;
8265
+ details?: string | null;
8266
+ detected_at?: string;
8267
+ entity?: string;
8268
+ floriday_id?: string;
8269
+ id?: string;
8270
+ last_checked_at?: string;
8271
+ resolved_at?: string | null;
8272
+ };
8273
+ Relationships: [
8274
+ {
8275
+ foreignKeyName: "floriday_packing_mismatches_connection_id_fkey";
8276
+ columns: ["connection_id"];
8277
+ isOneToOne: false;
8278
+ referencedRelation: "floriday_connections";
8279
+ referencedColumns: ["id"];
8280
+ }
8281
+ ];
8282
+ };
8209
8283
  floriday_packings_cache: {
8210
8284
  Row: {
8211
8285
  connection_id: string;
@@ -12149,6 +12223,36 @@ export type Database = {
12149
12223
  };
12150
12224
  Relationships: [];
12151
12225
  };
12226
+ logistics_belading_bevestigingen: {
12227
+ Row: {
12228
+ bevestigd_door: string | null;
12229
+ bevestigd_op: string;
12230
+ created_at: string;
12231
+ id: string;
12232
+ order_id: string;
12233
+ redenen: string[];
12234
+ verpakking_sleutel: string;
12235
+ };
12236
+ Insert: {
12237
+ bevestigd_door?: string | null;
12238
+ bevestigd_op?: string;
12239
+ created_at?: string;
12240
+ id?: string;
12241
+ order_id: string;
12242
+ redenen?: string[];
12243
+ verpakking_sleutel: string;
12244
+ };
12245
+ Update: {
12246
+ bevestigd_door?: string | null;
12247
+ bevestigd_op?: string;
12248
+ created_at?: string;
12249
+ id?: string;
12250
+ order_id?: string;
12251
+ redenen?: string[];
12252
+ verpakking_sleutel?: string;
12253
+ };
12254
+ Relationships: [];
12255
+ };
12152
12256
  logistics_capacity_alerts: {
12153
12257
  Row: {
12154
12258
  available_minutes: number;
@@ -17519,60 +17623,72 @@ export type Database = {
17519
17623
  created_at: string;
17520
17624
  id: string;
17521
17625
  layers_per_cart: number | null;
17626
+ load_carrier_type: string | null;
17522
17627
  needs_sticker: boolean;
17523
17628
  order_id: string;
17524
17629
  packing_locked_at: string | null;
17525
17630
  packing_locked_by: string | null;
17631
+ packing_source: string | null;
17526
17632
  plants_per_crate: number | null;
17527
17633
  product_id: string | null;
17528
17634
  product_name: string;
17529
17635
  quantity: number;
17636
+ quantity_crates: number | null;
17530
17637
  quarantine_reason: string | null;
17531
17638
  quarantined_at: string | null;
17532
17639
  quarantined_into_order_id: string | null;
17533
17640
  source_line_key: string | null;
17534
17641
  unit: string;
17535
17642
  unit_price: number | null;
17643
+ vbn_package_code: string | null;
17536
17644
  };
17537
17645
  Insert: {
17538
17646
  crates_per_layer?: number | null;
17539
17647
  created_at?: string;
17540
17648
  id?: string;
17541
17649
  layers_per_cart?: number | null;
17650
+ load_carrier_type?: string | null;
17542
17651
  needs_sticker?: boolean;
17543
17652
  order_id: string;
17544
17653
  packing_locked_at?: string | null;
17545
17654
  packing_locked_by?: string | null;
17655
+ packing_source?: string | null;
17546
17656
  plants_per_crate?: number | null;
17547
17657
  product_id?: string | null;
17548
17658
  product_name: string;
17549
17659
  quantity?: number;
17660
+ quantity_crates?: number | null;
17550
17661
  quarantine_reason?: string | null;
17551
17662
  quarantined_at?: string | null;
17552
17663
  quarantined_into_order_id?: string | null;
17553
17664
  source_line_key?: string | null;
17554
17665
  unit?: string;
17555
17666
  unit_price?: number | null;
17667
+ vbn_package_code?: string | null;
17556
17668
  };
17557
17669
  Update: {
17558
17670
  crates_per_layer?: number | null;
17559
17671
  created_at?: string;
17560
17672
  id?: string;
17561
17673
  layers_per_cart?: number | null;
17674
+ load_carrier_type?: string | null;
17562
17675
  needs_sticker?: boolean;
17563
17676
  order_id?: string;
17564
17677
  packing_locked_at?: string | null;
17565
17678
  packing_locked_by?: string | null;
17679
+ packing_source?: string | null;
17566
17680
  plants_per_crate?: number | null;
17567
17681
  product_id?: string | null;
17568
17682
  product_name?: string;
17569
17683
  quantity?: number;
17684
+ quantity_crates?: number | null;
17570
17685
  quarantine_reason?: string | null;
17571
17686
  quarantined_at?: string | null;
17572
17687
  quarantined_into_order_id?: string | null;
17573
17688
  source_line_key?: string | null;
17574
17689
  unit?: string;
17575
17690
  unit_price?: number | null;
17691
+ vbn_package_code?: string | null;
17576
17692
  };
17577
17693
  Relationships: [
17578
17694
  {
@@ -21442,6 +21558,85 @@ export type Database = {
21442
21558
  };
21443
21559
  Relationships: [];
21444
21560
  };
21561
+ product_packings: {
21562
+ Row: {
21563
+ created_at: string;
21564
+ custom_package_id: string | null;
21565
+ customer_organization_ids: string[];
21566
+ floriday_packing_id: string | null;
21567
+ fust_type_id: string | null;
21568
+ id: string;
21569
+ is_primary: boolean;
21570
+ layers_per_load_carrier: number | null;
21571
+ load_carrier: string | null;
21572
+ packages_per_layer: number | null;
21573
+ pieces_per_package: number | null;
21574
+ product_id: string;
21575
+ sort_order: number;
21576
+ source: string;
21577
+ updated_at: string;
21578
+ vbn_package_code: number | null;
21579
+ };
21580
+ Insert: {
21581
+ created_at?: string;
21582
+ custom_package_id?: string | null;
21583
+ customer_organization_ids?: string[];
21584
+ floriday_packing_id?: string | null;
21585
+ fust_type_id?: string | null;
21586
+ id?: string;
21587
+ is_primary?: boolean;
21588
+ layers_per_load_carrier?: number | null;
21589
+ load_carrier?: string | null;
21590
+ packages_per_layer?: number | null;
21591
+ pieces_per_package?: number | null;
21592
+ product_id: string;
21593
+ sort_order?: number;
21594
+ source?: string;
21595
+ updated_at?: string;
21596
+ vbn_package_code?: number | null;
21597
+ };
21598
+ Update: {
21599
+ created_at?: string;
21600
+ custom_package_id?: string | null;
21601
+ customer_organization_ids?: string[];
21602
+ floriday_packing_id?: string | null;
21603
+ fust_type_id?: string | null;
21604
+ id?: string;
21605
+ is_primary?: boolean;
21606
+ layers_per_load_carrier?: number | null;
21607
+ load_carrier?: string | null;
21608
+ packages_per_layer?: number | null;
21609
+ pieces_per_package?: number | null;
21610
+ product_id?: string;
21611
+ sort_order?: number;
21612
+ source?: string;
21613
+ updated_at?: string;
21614
+ vbn_package_code?: number | null;
21615
+ };
21616
+ Relationships: [
21617
+ {
21618
+ foreignKeyName: "product_packings_fust_type_id_fkey";
21619
+ columns: ["fust_type_id"];
21620
+ isOneToOne: false;
21621
+ referencedRelation: "fust_types";
21622
+ referencedColumns: ["id"];
21623
+ },
21624
+ {
21625
+ foreignKeyName: "product_packings_product_id_fkey";
21626
+ columns: ["product_id"];
21627
+ isOneToOne: false;
21628
+ referencedRelation: "logistics_product_dimensions";
21629
+ referencedColumns: ["product_id"];
21630
+ },
21631
+ {
21632
+ foreignKeyName: "product_packings_product_id_fkey";
21633
+ columns: ["product_id"];
21634
+ isOneToOne: false;
21635
+ referencedRelation: "products";
21636
+ referencedColumns: ["id"];
21637
+ }
21638
+ ];
21639
+ };
21445
21640
  product_suppliers: {
21446
21641
  Row: {
21447
21642
  created_at: string;
@@ -29622,6 +29817,15 @@ export type Database = {
29622
29817
  };
29623
29818
  Returns: Json;
29624
29819
  };
29820
+ afh_resolve_cart_id: {
29821
+ Args: {
29822
+ p_cart_index: number;
29823
+ p_given: string;
29824
+ p_order: string;
29825
+ p_source: string;
29826
+ };
29827
+ Returns: string;
29828
+ };
29625
29829
  afh_signup_config: {
29626
29830
  Args: never;
29627
29831
  Returns: Json;
@@ -30453,6 +30657,8 @@ export type Database = {
30453
30657
  cart_index: number;
30454
30658
  cart_number: string;
30455
30659
  cart_number_id: string;
30660
+ country_code: string;
30661
+ crates_on_cart: number;
30456
30662
  order_id: string;
30457
30663
  order_number: string;
30458
30664
  order_source: string;
@@ -30962,6 +31168,10 @@ export type Database = {
30962
31168
  };
30963
31169
  Returns: Json;
30964
31170
  };
31171
+ floriday_legacy_packing_sync_present: {
31172
+ Args: never;
31173
+ Returns: Json;
31174
+ };
30965
31175
  floriday_make_erp_leading: {
30966
31176
  Args: {
30967
31177
  p_connection_id: string;
@@ -32268,6 +32478,14 @@ export type Database = {
32268
32478
  Args: never;
32269
32479
  Returns: number;
32270
32480
  };
32481
+ logistics_belading_bevestig: {
32482
+ Args: {
32483
+ p_order_id: string;
32484
+ p_redenen?: string[];
32485
+ p_sleutel: string;
32486
+ };
32487
+ Returns: Json;
32488
+ };
32271
32489
  logistics_belading_verstuurder: {
32272
32490
  Args: never;
32273
32491
  Returns: string;
@@ -32654,6 +32872,16 @@ export type Database = {
32654
32872
  order_uuid: string;
32655
32873
  }[];
32656
32874
  };
32875
+ logistics_cart_seq_dubbel: {
32876
+ Args: {
32877
+ p_order_uuid?: string;
32878
+ };
32879
+ Returns: {
32880
+ cart_ids: string[];
32881
+ cart_index: number;
32882
+ order_uuid: string;
32883
+ }[];
32884
+ };
32657
32885
  logistics_cart_slip_plan: {
32658
32886
  Args: {
32659
32887
  p_order_id: string;
@@ -33946,6 +34174,18 @@ export type Database = {
33946
34174
  };
33947
34175
  Returns: Json;
33948
34176
  };
34177
+ logistics_own_traysticker_payload: {
34178
+ Args: {
34179
+ p_id: string;
34180
+ };
34181
+ Returns: Json;
34182
+ };
34183
+ logistics_own_traysticker_sync: {
34184
+ Args: {
34185
+ p_limit?: number;
34186
+ };
34187
+ Returns: Json;
34188
+ };
33949
34189
  logistics_packing_autofix: {
33950
34190
  Args: {
33951
34191
  p_limit?: number;
@@ -34246,6 +34486,15 @@ export type Database = {
34246
34486
  Args: never;
34247
34487
  Returns: number;
34248
34488
  };
34489
+ logistics_plan_queue_dubbel: {
34490
+ Args: never;
34491
+ Returns: {
34492
+ nieuwste: string;
34493
+ open_opdrachten: number;
34494
+ order_id: string;
34495
+ oudste: string;
34496
+ }[];
34497
+ };
34249
34498
  logistics_plan_queue_list: {
34250
34499
  Args: {
34251
34500
  p_limit?: number;
@@ -34287,6 +34536,13 @@ export type Database = {
34287
34536
  };
34288
34537
  Returns: number;
34289
34538
  };
34539
+ logistics_plan_retry_later: {
34540
+ Args: {
34541
+ p_id: string;
34542
+ p_seconds?: number;
34543
+ };
34544
+ Returns: undefined;
34545
+ };
34290
34546
  logistics_plan_setting: {
34291
34547
  Args: {
34292
34548
  p_default: number;
@@ -35321,6 +35577,15 @@ export type Database = {
35321
35577
  };
35322
35578
  Returns: Json;
35323
35579
  };
35580
+ logistics_tray_plants: {
35581
+ Args: {
35582
+ p_fust: number;
35583
+ p_fusten: number;
35584
+ p_ppc: number;
35585
+ p_regel_totaal: number;
35586
+ };
35587
+ Returns: number;
35588
+ };
35324
35589
  logistics_try_uuid: {
35325
35590
  Args: {
35326
35591
  p: string;
@@ -36698,6 +36963,34 @@ export type Database = {
36698
36963
  };
36699
36964
  Returns: Record<string, unknown>;
36700
36965
  };
36966
+ product_packings_derive: {
36967
+ Args: {
36968
+ p_product_id: string;
36969
+ };
36970
+ Returns: undefined;
36971
+ };
36972
+ product_packings_replace: {
36973
+ Args: {
36974
+ p_packings: Json;
36975
+ p_product_id: string;
36976
+ p_source: string;
36977
+ };
36978
+ Returns: number;
36979
+ };
36980
+ product_packings_sync_from_floriday: {
36981
+ Args: {
36982
+ p_connection_id: string;
36983
+ p_only_existing?: boolean;
36984
+ p_product_ids: string[];
36985
+ };
36986
+ Returns: Json;
36987
+ };
36988
+ product_primary_pieces: {
36989
+ Args: {
36990
+ p_product_id: string;
36991
+ };
36992
+ Returns: number;
36993
+ };
36701
36994
  product_set_depth_above: {
36702
36995
  Args: {
36703
36996
  p_path?: string[];
@@ -37921,12 +38214,6 @@ export type Database = {
37921
38214
  Args: never;
37922
38215
  Returns: undefined;
37923
38216
  };
37924
- sync_cached_packing_from_product: {
37925
- Args: {
37926
- p_product_id: string;
37927
- };
37928
- Returns: undefined;
37929
- };
37930
38217
  sync_floriday_prices_into_price_groups: {
37931
38218
  Args: never;
37932
38219
  Returns: number;
@@ -37937,12 +38224,6 @@ export type Database = {
37937
38224
  };
37938
38225
  Returns: undefined;
37939
38226
  };
37940
- sync_order_cart_item_packing_from_product: {
37941
- Args: {
37942
- p_product_id: string;
37943
- };
37944
- Returns: undefined;
37945
- };
37946
38227
  sync_order_item_fusten: {
37947
38228
  Args: {
37948
38229
  _order_item_id: string;
@@ -37955,12 +38236,6 @@ export type Database = {
37955
38236
  };
37956
38237
  Returns: undefined;
37957
38238
  };
37958
- sync_product_packing_from_floriday_cache: {
37959
- Args: {
37960
- p_floriday_id: string;
37961
- };
37962
- Returns: undefined;
37963
- };
37964
38239
  sync_sick_time_off: {
37965
38240
  Args: {
37966
38241
  _period_id: string;
@@ -38642,6 +38917,41 @@ export type Database = {
38642
38917
  };
38643
38918
  Returns: Json;
38644
38919
  };
38920
+ verkoop_packing_drift_apply: {
38921
+ Args: {
38922
+ p_order_ids: string[];
38923
+ };
38924
+ Returns: {
38925
+ lines_updated: number;
38926
+ order_id: string;
38927
+ order_number: string;
38928
+ replan_event: string;
38929
+ }[];
38930
+ };
38931
+ verkoop_packing_drift_report: {
38932
+ Args: never;
38933
+ Returns: {
38934
+ afgesloten: boolean;
38935
+ cache_match: string;
38936
+ cur_crates_per_layer: number;
38937
+ cur_layers_per_cart: number;
38938
+ cur_load_carrier_type: string;
38939
+ cur_packing_source: string;
38940
+ cur_plants_per_crate: number;
38941
+ cur_vbn_package_code: string;
38942
+ fd_crates_per_layer: number;
38943
+ fd_layers_per_cart: number;
38944
+ fd_load_carrier_type: string;
38945
+ fd_plants_per_crate: number;
38946
+ fd_vbn_package_code: string;
38947
+ order_id: string;
38948
+ order_item_id: string;
38949
+ order_number: string;
38950
+ order_status: string;
38951
+ sales_order_id: string;
38952
+ vastgezet: boolean;
38953
+ }[];
38954
+ };
38645
38955
  vervang_printer: {
38646
38956
  Args: {
38647
38957
  _nieuw: string;