@flowselections/mailbox-orders 1.0.36 → 1.0.37

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;
@@ -14188,6 +14292,7 @@ export type Database = {
14188
14292
  bron_id: string;
14189
14293
  cart_id: string | null;
14190
14294
  created_at: string;
14295
+ eigen_sticker_id: string | null;
14191
14296
  fulfillment_order_id: string | null;
14192
14297
  handled_at: string | null;
14193
14298
  handled_error: string | null;
@@ -14214,6 +14319,7 @@ export type Database = {
14214
14319
  bron_id: string;
14215
14320
  cart_id?: string | null;
14216
14321
  created_at?: string;
14322
+ eigen_sticker_id?: string | null;
14217
14323
  fulfillment_order_id?: string | null;
14218
14324
  handled_at?: string | null;
14219
14325
  handled_error?: string | null;
@@ -14240,6 +14346,7 @@ export type Database = {
14240
14346
  bron_id?: string;
14241
14347
  cart_id?: string | null;
14242
14348
  created_at?: string;
14349
+ eigen_sticker_id?: string | null;
14243
14350
  fulfillment_order_id?: string | null;
14244
14351
  handled_at?: string | null;
14245
14352
  handled_error?: string | null;
@@ -17516,60 +17623,72 @@ export type Database = {
17516
17623
  created_at: string;
17517
17624
  id: string;
17518
17625
  layers_per_cart: number | null;
17626
+ load_carrier_type: string | null;
17519
17627
  needs_sticker: boolean;
17520
17628
  order_id: string;
17521
17629
  packing_locked_at: string | null;
17522
17630
  packing_locked_by: string | null;
17631
+ packing_source: string | null;
17523
17632
  plants_per_crate: number | null;
17524
17633
  product_id: string | null;
17525
17634
  product_name: string;
17526
17635
  quantity: number;
17636
+ quantity_crates: number | null;
17527
17637
  quarantine_reason: string | null;
17528
17638
  quarantined_at: string | null;
17529
17639
  quarantined_into_order_id: string | null;
17530
17640
  source_line_key: string | null;
17531
17641
  unit: string;
17532
17642
  unit_price: number | null;
17643
+ vbn_package_code: string | null;
17533
17644
  };
17534
17645
  Insert: {
17535
17646
  crates_per_layer?: number | null;
17536
17647
  created_at?: string;
17537
17648
  id?: string;
17538
17649
  layers_per_cart?: number | null;
17650
+ load_carrier_type?: string | null;
17539
17651
  needs_sticker?: boolean;
17540
17652
  order_id: string;
17541
17653
  packing_locked_at?: string | null;
17542
17654
  packing_locked_by?: string | null;
17655
+ packing_source?: string | null;
17543
17656
  plants_per_crate?: number | null;
17544
17657
  product_id?: string | null;
17545
17658
  product_name: string;
17546
17659
  quantity?: number;
17660
+ quantity_crates?: number | null;
17547
17661
  quarantine_reason?: string | null;
17548
17662
  quarantined_at?: string | null;
17549
17663
  quarantined_into_order_id?: string | null;
17550
17664
  source_line_key?: string | null;
17551
17665
  unit?: string;
17552
17666
  unit_price?: number | null;
17667
+ vbn_package_code?: string | null;
17553
17668
  };
17554
17669
  Update: {
17555
17670
  crates_per_layer?: number | null;
17556
17671
  created_at?: string;
17557
17672
  id?: string;
17558
17673
  layers_per_cart?: number | null;
17674
+ load_carrier_type?: string | null;
17559
17675
  needs_sticker?: boolean;
17560
17676
  order_id?: string;
17561
17677
  packing_locked_at?: string | null;
17562
17678
  packing_locked_by?: string | null;
17679
+ packing_source?: string | null;
17563
17680
  plants_per_crate?: number | null;
17564
17681
  product_id?: string | null;
17565
17682
  product_name?: string;
17566
17683
  quantity?: number;
17684
+ quantity_crates?: number | null;
17567
17685
  quarantine_reason?: string | null;
17568
17686
  quarantined_at?: string | null;
17569
17687
  quarantined_into_order_id?: string | null;
17570
17688
  source_line_key?: string | null;
17571
17689
  unit?: string;
17572
17690
  unit_price?: number | null;
17691
+ vbn_package_code?: string | null;
17573
17692
  };
17574
17693
  Relationships: [
17575
17694
  {
@@ -21439,6 +21558,85 @@ export type Database = {
21439
21558
  };
21440
21559
  Relationships: [];
21441
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
+ };
21442
21640
  product_suppliers: {
21443
21641
  Row: {
21444
21642
  created_at: string;
@@ -29619,6 +29817,15 @@ export type Database = {
29619
29817
  };
29620
29818
  Returns: Json;
29621
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
+ };
29622
29829
  afh_signup_config: {
29623
29830
  Args: never;
29624
29831
  Returns: Json;
@@ -30450,6 +30657,8 @@ export type Database = {
30450
30657
  cart_index: number;
30451
30658
  cart_number: string;
30452
30659
  cart_number_id: string;
30660
+ country_code: string;
30661
+ crates_on_cart: number;
30453
30662
  order_id: string;
30454
30663
  order_number: string;
30455
30664
  order_source: string;
@@ -30843,6 +31052,14 @@ export type Database = {
30843
31052
  Args: never;
30844
31053
  Returns: Json;
30845
31054
  };
31055
+ floriday_background_jobs_status: {
31056
+ Args: never;
31057
+ Returns: {
31058
+ active: boolean;
31059
+ jobname: string;
31060
+ schedule: string;
31061
+ }[];
31062
+ };
30846
31063
  floriday_capture_stock_snapshot: {
30847
31064
  Args: never;
30848
31065
  Returns: number;
@@ -30959,6 +31176,10 @@ export type Database = {
30959
31176
  };
30960
31177
  Returns: Json;
30961
31178
  };
31179
+ floriday_legacy_packing_sync_present: {
31180
+ Args: never;
31181
+ Returns: Json;
31182
+ };
30962
31183
  floriday_make_erp_leading: {
30963
31184
  Args: {
30964
31185
  p_connection_id: string;
@@ -31910,6 +32131,10 @@ export type Database = {
31910
32131
  Args: never;
31911
32132
  Returns: Json;
31912
32133
  };
32134
+ klanten_refresh_grouped_if_stale: {
32135
+ Args: never;
32136
+ Returns: boolean;
32137
+ };
31913
32138
  klanten_set_auto_promote: {
31914
32139
  Args: {
31915
32140
  p_kind: string;
@@ -31968,6 +32193,13 @@ export type Database = {
31968
32193
  Args: never;
31969
32194
  Returns: Json;
31970
32195
  };
32196
+ layout_voor_document: {
32197
+ Args: {
32198
+ p_documenttype: string;
32199
+ p_order_id: string;
32200
+ };
32201
+ Returns: Json;
32202
+ };
31971
32203
  layout_zorg_systeemlayouts: {
31972
32204
  Args: never;
31973
32205
  Returns: number;
@@ -32254,6 +32486,14 @@ export type Database = {
32254
32486
  Args: never;
32255
32487
  Returns: number;
32256
32488
  };
32489
+ logistics_belading_bevestig: {
32490
+ Args: {
32491
+ p_order_id: string;
32492
+ p_redenen?: string[];
32493
+ p_sleutel: string;
32494
+ };
32495
+ Returns: Json;
32496
+ };
32257
32497
  logistics_belading_verstuurder: {
32258
32498
  Args: never;
32259
32499
  Returns: string;
@@ -32640,6 +32880,16 @@ export type Database = {
32640
32880
  order_uuid: string;
32641
32881
  }[];
32642
32882
  };
32883
+ logistics_cart_seq_dubbel: {
32884
+ Args: {
32885
+ p_order_uuid?: string;
32886
+ };
32887
+ Returns: {
32888
+ cart_ids: string[];
32889
+ cart_index: number;
32890
+ order_uuid: string;
32891
+ }[];
32892
+ };
32643
32893
  logistics_cart_slip_plan: {
32644
32894
  Args: {
32645
32895
  p_order_id: string;
@@ -33062,6 +33312,13 @@ export type Database = {
33062
33312
  };
33063
33313
  Returns: Json;
33064
33314
  };
33315
+ logistics_document_for_order: {
33316
+ Args: {
33317
+ p_documenttype: string;
33318
+ p_order_id: string;
33319
+ };
33320
+ Returns: Json;
33321
+ };
33065
33322
  logistics_document_layout: {
33066
33323
  Args: {
33067
33324
  _document_code: string;
@@ -33075,6 +33332,10 @@ export type Database = {
33075
33332
  };
33076
33333
  Returns: Json;
33077
33334
  };
33335
+ logistics_document_selection_status: {
33336
+ Args: never;
33337
+ Returns: Json;
33338
+ };
33078
33339
  logistics_document_station: {
33079
33340
  Args: {
33080
33341
  _document_code: string;
@@ -33380,6 +33641,12 @@ export type Database = {
33380
33641
  Args: never;
33381
33642
  Returns: Json;
33382
33643
  };
33644
+ logistics_floriday_shipping_document: {
33645
+ Args: {
33646
+ p_order_id: string;
33647
+ };
33648
+ Returns: Json;
33649
+ };
33383
33650
  logistics_floriday_status_updates_enabled: {
33384
33651
  Args: never;
33385
33652
  Returns: boolean;
@@ -33893,6 +34160,21 @@ export type Database = {
33893
34160
  Args: never;
33894
34161
  Returns: Json;
33895
34162
  };
34163
+ logistics_own_sticker_count: {
34164
+ Args: {
34165
+ p_ppc_product: number;
34166
+ p_ppc_regel: number;
34167
+ p_quantity: number;
34168
+ p_unit: string;
34169
+ };
34170
+ Returns: number;
34171
+ };
34172
+ logistics_own_sticker_sync: {
34173
+ Args: {
34174
+ p_limit?: number;
34175
+ };
34176
+ Returns: Json;
34177
+ };
33896
34178
  logistics_own_transport_departure: {
33897
34179
  Args: {
33898
34180
  p_delivery_date: string;
@@ -33900,6 +34182,18 @@ export type Database = {
33900
34182
  };
33901
34183
  Returns: Json;
33902
34184
  };
34185
+ logistics_own_traysticker_payload: {
34186
+ Args: {
34187
+ p_id: string;
34188
+ };
34189
+ Returns: Json;
34190
+ };
34191
+ logistics_own_traysticker_sync: {
34192
+ Args: {
34193
+ p_limit?: number;
34194
+ };
34195
+ Returns: Json;
34196
+ };
33903
34197
  logistics_packing_autofix: {
33904
34198
  Args: {
33905
34199
  p_limit?: number;
@@ -34200,6 +34494,15 @@ export type Database = {
34200
34494
  Args: never;
34201
34495
  Returns: number;
34202
34496
  };
34497
+ logistics_plan_queue_dubbel: {
34498
+ Args: never;
34499
+ Returns: {
34500
+ nieuwste: string;
34501
+ open_opdrachten: number;
34502
+ order_id: string;
34503
+ oudste: string;
34504
+ }[];
34505
+ };
34203
34506
  logistics_plan_queue_list: {
34204
34507
  Args: {
34205
34508
  p_limit?: number;
@@ -34241,6 +34544,13 @@ export type Database = {
34241
34544
  };
34242
34545
  Returns: number;
34243
34546
  };
34547
+ logistics_plan_retry_later: {
34548
+ Args: {
34549
+ p_id: string;
34550
+ p_seconds?: number;
34551
+ };
34552
+ Returns: undefined;
34553
+ };
34244
34554
  logistics_plan_setting: {
34245
34555
  Args: {
34246
34556
  p_default: number;
@@ -35275,6 +35585,15 @@ export type Database = {
35275
35585
  };
35276
35586
  Returns: Json;
35277
35587
  };
35588
+ logistics_tray_plants: {
35589
+ Args: {
35590
+ p_fust: number;
35591
+ p_fusten: number;
35592
+ p_ppc: number;
35593
+ p_regel_totaal: number;
35594
+ };
35595
+ Returns: number;
35596
+ };
35278
35597
  logistics_try_uuid: {
35279
35598
  Args: {
35280
35599
  p: string;
@@ -36279,6 +36598,13 @@ export type Database = {
36279
36598
  };
36280
36599
  Returns: Json;
36281
36600
  };
36601
+ pickstation_document_for_order: {
36602
+ Args: {
36603
+ p_queue_item_id: string;
36604
+ p_slug: string;
36605
+ };
36606
+ Returns: Json;
36607
+ };
36282
36608
  pickstation_get_orders_raw: {
36283
36609
  Args: never;
36284
36610
  Returns: Json;
@@ -36645,6 +36971,34 @@ export type Database = {
36645
36971
  };
36646
36972
  Returns: Record<string, unknown>;
36647
36973
  };
36974
+ product_packings_derive: {
36975
+ Args: {
36976
+ p_product_id: string;
36977
+ };
36978
+ Returns: undefined;
36979
+ };
36980
+ product_packings_replace: {
36981
+ Args: {
36982
+ p_packings: Json;
36983
+ p_product_id: string;
36984
+ p_source: string;
36985
+ };
36986
+ Returns: number;
36987
+ };
36988
+ product_packings_sync_from_floriday: {
36989
+ Args: {
36990
+ p_connection_id: string;
36991
+ p_only_existing?: boolean;
36992
+ p_product_ids: string[];
36993
+ };
36994
+ Returns: Json;
36995
+ };
36996
+ product_primary_pieces: {
36997
+ Args: {
36998
+ p_product_id: string;
36999
+ };
37000
+ Returns: number;
37001
+ };
36648
37002
  product_set_depth_above: {
36649
37003
  Args: {
36650
37004
  p_path?: string[];
@@ -37868,12 +38222,6 @@ export type Database = {
37868
38222
  Args: never;
37869
38223
  Returns: undefined;
37870
38224
  };
37871
- sync_cached_packing_from_product: {
37872
- Args: {
37873
- p_product_id: string;
37874
- };
37875
- Returns: undefined;
37876
- };
37877
38225
  sync_floriday_prices_into_price_groups: {
37878
38226
  Args: never;
37879
38227
  Returns: number;
@@ -37884,12 +38232,6 @@ export type Database = {
37884
38232
  };
37885
38233
  Returns: undefined;
37886
38234
  };
37887
- sync_order_cart_item_packing_from_product: {
37888
- Args: {
37889
- p_product_id: string;
37890
- };
37891
- Returns: undefined;
37892
- };
37893
38235
  sync_order_item_fusten: {
37894
38236
  Args: {
37895
38237
  _order_item_id: string;
@@ -37902,12 +38244,6 @@ export type Database = {
37902
38244
  };
37903
38245
  Returns: undefined;
37904
38246
  };
37905
- sync_product_packing_from_floriday_cache: {
37906
- Args: {
37907
- p_floriday_id: string;
37908
- };
37909
- Returns: undefined;
37910
- };
37911
38247
  sync_sick_time_off: {
37912
38248
  Args: {
37913
38249
  _period_id: string;
@@ -38589,6 +38925,49 @@ export type Database = {
38589
38925
  };
38590
38926
  Returns: Json;
38591
38927
  };
38928
+ verkoop_insert_manual_order: {
38929
+ Args: {
38930
+ p_idempotency_key: string;
38931
+ p_items: Json;
38932
+ p_order: Json;
38933
+ };
38934
+ Returns: Json;
38935
+ };
38936
+ verkoop_packing_drift_apply: {
38937
+ Args: {
38938
+ p_order_ids: string[];
38939
+ };
38940
+ Returns: {
38941
+ lines_updated: number;
38942
+ order_id: string;
38943
+ order_number: string;
38944
+ replan_event: string;
38945
+ }[];
38946
+ };
38947
+ verkoop_packing_drift_report: {
38948
+ Args: never;
38949
+ Returns: {
38950
+ afgesloten: boolean;
38951
+ cache_match: string;
38952
+ cur_crates_per_layer: number;
38953
+ cur_layers_per_cart: number;
38954
+ cur_load_carrier_type: string;
38955
+ cur_packing_source: string;
38956
+ cur_plants_per_crate: number;
38957
+ cur_vbn_package_code: string;
38958
+ fd_crates_per_layer: number;
38959
+ fd_layers_per_cart: number;
38960
+ fd_load_carrier_type: string;
38961
+ fd_plants_per_crate: number;
38962
+ fd_vbn_package_code: string;
38963
+ order_id: string;
38964
+ order_item_id: string;
38965
+ order_number: string;
38966
+ order_status: string;
38967
+ sales_order_id: string;
38968
+ vastgezet: boolean;
38969
+ }[];
38970
+ };
38592
38971
  vervang_printer: {
38593
38972
  Args: {
38594
38973
  _nieuw: string;
@@ -38602,6 +38981,15 @@ export type Database = {
38602
38981
  };
38603
38982
  Returns: Json;
38604
38983
  };
38984
+ voorraad_alert_floriday_not_updated: {
38985
+ Args: {
38986
+ p_key: string;
38987
+ p_order_id: string;
38988
+ p_order_item_id: string;
38989
+ p_qty: number;
38990
+ };
38991
+ Returns: undefined;
38992
+ };
38605
38993
  voorraad_can_write: {
38606
38994
  Args: never;
38607
38995
  Returns: boolean;
@@ -38624,6 +39012,12 @@ export type Database = {
38624
39012
  };
38625
39013
  Returns: string[];
38626
39014
  };
39015
+ voorraad_floriday_leads_key: {
39016
+ Args: {
39017
+ p_key: string;
39018
+ };
39019
+ Returns: boolean;
39020
+ };
38627
39021
  voorraad_hook_base_url: {
38628
39022
  Args: never;
38629
39023
  Returns: string;
@@ -38641,6 +39035,12 @@ export type Database = {
38641
39035
  };
38642
39036
  Returns: undefined;
38643
39037
  };
39038
+ voorraad_mark_floriday_sold_before_switch: {
39039
+ Args: {
39040
+ p_product_id: string;
39041
+ };
39042
+ Returns: number;
39043
+ };
38644
39044
  voorraad_production_enabled: {
38645
39045
  Args: never;
38646
39046
  Returns: boolean;