@flowselections/floriday-voorraad 1.0.53 → 1.0.55

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.
@@ -7244,6 +7244,7 @@ export type Database = {
7244
7244
  Row: {
7245
7245
  action_reason: string | null;
7246
7246
  buffer_quantity: number;
7247
+ computed_available: number | null;
7247
7248
  connection_id: string;
7248
7249
  created_at: string;
7249
7250
  desired_availability: boolean;
@@ -7255,15 +7256,18 @@ export type Database = {
7255
7256
  last_enqueued_at: string | null;
7256
7257
  last_published_at: string | null;
7257
7258
  last_sync_error: string | null;
7259
+ limiting_product_id: string | null;
7258
7260
  manual_quantity: number | null;
7259
7261
  maximum_quantity: number | null;
7260
7262
  packing_size: number | null;
7261
7263
  product_id: string;
7264
+ product_type: string | null;
7262
7265
  quantity_control: string;
7263
7266
  remote_available: boolean | null;
7264
7267
  remote_checked_at: string | null;
7265
7268
  remote_quantity: number | null;
7266
7269
  stock_mode: string;
7270
+ structure_detail: Json | null;
7267
7271
  sync_status: string;
7268
7272
  updated_at: string;
7269
7273
  updated_by: string | null;
@@ -7272,6 +7276,7 @@ export type Database = {
7272
7276
  Insert: {
7273
7277
  action_reason?: string | null;
7274
7278
  buffer_quantity?: number;
7279
+ computed_available?: number | null;
7275
7280
  connection_id: string;
7276
7281
  created_at?: string;
7277
7282
  desired_availability?: boolean;
@@ -7283,15 +7288,18 @@ export type Database = {
7283
7288
  last_enqueued_at?: string | null;
7284
7289
  last_published_at?: string | null;
7285
7290
  last_sync_error?: string | null;
7291
+ limiting_product_id?: string | null;
7286
7292
  manual_quantity?: number | null;
7287
7293
  maximum_quantity?: number | null;
7288
7294
  packing_size?: number | null;
7289
7295
  product_id: string;
7296
+ product_type?: string | null;
7290
7297
  quantity_control?: string;
7291
7298
  remote_available?: boolean | null;
7292
7299
  remote_checked_at?: string | null;
7293
7300
  remote_quantity?: number | null;
7294
7301
  stock_mode?: string;
7302
+ structure_detail?: Json | null;
7295
7303
  sync_status?: string;
7296
7304
  updated_at?: string;
7297
7305
  updated_by?: string | null;
@@ -7300,6 +7308,7 @@ export type Database = {
7300
7308
  Update: {
7301
7309
  action_reason?: string | null;
7302
7310
  buffer_quantity?: number;
7311
+ computed_available?: number | null;
7303
7312
  connection_id?: string;
7304
7313
  created_at?: string;
7305
7314
  desired_availability?: boolean;
@@ -7311,15 +7320,18 @@ export type Database = {
7311
7320
  last_enqueued_at?: string | null;
7312
7321
  last_published_at?: string | null;
7313
7322
  last_sync_error?: string | null;
7323
+ limiting_product_id?: string | null;
7314
7324
  manual_quantity?: number | null;
7315
7325
  maximum_quantity?: number | null;
7316
7326
  packing_size?: number | null;
7317
7327
  product_id?: string;
7328
+ product_type?: string | null;
7318
7329
  quantity_control?: string;
7319
7330
  remote_available?: boolean | null;
7320
7331
  remote_checked_at?: string | null;
7321
7332
  remote_quantity?: number | null;
7322
7333
  stock_mode?: string;
7334
+ structure_detail?: Json | null;
7323
7335
  sync_status?: string;
7324
7336
  updated_at?: string;
7325
7337
  updated_by?: string | null;
@@ -8828,6 +8840,60 @@ export type Database = {
8828
8840
  }
8829
8841
  ];
8830
8842
  };
8843
+ inventory_recompute_limits: {
8844
+ Row: {
8845
+ drain_batch: number;
8846
+ id: boolean;
8847
+ max_ms_inline: number;
8848
+ max_parents_inline: number;
8849
+ updated_at: string;
8850
+ };
8851
+ Insert: {
8852
+ drain_batch?: number;
8853
+ id?: boolean;
8854
+ max_ms_inline?: number;
8855
+ max_parents_inline?: number;
8856
+ updated_at?: string;
8857
+ };
8858
+ Update: {
8859
+ drain_batch?: number;
8860
+ id?: boolean;
8861
+ max_ms_inline?: number;
8862
+ max_parents_inline?: number;
8863
+ updated_at?: string;
8864
+ };
8865
+ Relationships: [];
8866
+ };
8867
+ inventory_recompute_queue: {
8868
+ Row: {
8869
+ attempts: number;
8870
+ created_at: string;
8871
+ enqueued_at: string;
8872
+ last_error: string | null;
8873
+ product_id: string;
8874
+ reason: string | null;
8875
+ updated_at: string;
8876
+ };
8877
+ Insert: {
8878
+ attempts?: number;
8879
+ created_at?: string;
8880
+ enqueued_at?: string;
8881
+ last_error?: string | null;
8882
+ product_id: string;
8883
+ reason?: string | null;
8884
+ updated_at?: string;
8885
+ };
8886
+ Update: {
8887
+ attempts?: number;
8888
+ created_at?: string;
8889
+ enqueued_at?: string;
8890
+ last_error?: string | null;
8891
+ product_id?: string;
8892
+ reason?: string | null;
8893
+ updated_at?: string;
8894
+ };
8895
+ Relationships: [];
8896
+ };
8831
8897
  inventory_settings: {
8832
8898
  Row: {
8833
8899
  created_at: string;
@@ -12599,6 +12665,42 @@ export type Database = {
12599
12665
  };
12600
12666
  Relationships: [];
12601
12667
  };
12668
+ logistics_reservation_allocations: {
12669
+ Row: {
12670
+ computed_at: string;
12671
+ created_at: string;
12672
+ group_id: string | null;
12673
+ id: string;
12674
+ order_item_id: string;
12675
+ qty: number;
12676
+ source: string;
12677
+ trade_item_key: string;
12678
+ updated_at: string;
12679
+ };
12680
+ Insert: {
12681
+ computed_at?: string;
12682
+ created_at?: string;
12683
+ group_id?: string | null;
12684
+ id?: string;
12685
+ order_item_id: string;
12686
+ qty: number;
12687
+ source: string;
12688
+ trade_item_key: string;
12689
+ updated_at?: string;
12690
+ };
12691
+ Update: {
12692
+ computed_at?: string;
12693
+ created_at?: string;
12694
+ group_id?: string | null;
12695
+ id?: string;
12696
+ order_item_id?: string;
12697
+ qty?: number;
12698
+ source?: string;
12699
+ trade_item_key?: string;
12700
+ updated_at?: string;
12701
+ };
12702
+ Relationships: [];
12703
+ };
12602
12704
  logistics_rule_configs: {
12603
12705
  Row: {
12604
12706
  created_at: string;
@@ -12743,6 +12845,7 @@ export type Database = {
12743
12845
  slip_job_id: string;
12744
12846
  status: string;
12745
12847
  updated_at: string;
12848
+ voor_herstel: boolean;
12746
12849
  };
12747
12850
  Insert: {
12748
12851
  attempts?: number;
@@ -12763,6 +12866,7 @@ export type Database = {
12763
12866
  slip_job_id: string;
12764
12867
  status?: string;
12765
12868
  updated_at?: string;
12869
+ voor_herstel?: boolean;
12766
12870
  };
12767
12871
  Update: {
12768
12872
  attempts?: number;
@@ -12783,6 +12887,7 @@ export type Database = {
12783
12887
  slip_job_id?: string;
12784
12888
  status?: string;
12785
12889
  updated_at?: string;
12890
+ voor_herstel?: boolean;
12786
12891
  };
12787
12892
  Relationships: [];
12788
12893
  };
@@ -18986,7 +19091,7 @@ export type Database = {
18986
19091
  id?: string;
18987
19092
  product_group_id: string;
18988
19093
  quantity?: number;
18989
- sort_order?: number;
19094
+ sort_order: number;
18990
19095
  trade_item_id: string;
18991
19096
  };
18992
19097
  Update: {
@@ -20217,6 +20322,7 @@ export type Database = {
20217
20322
  is_protected: boolean;
20218
20323
  key: string;
20219
20324
  name: string;
20325
+ permissions_initialized: boolean;
20220
20326
  updated_at: string;
20221
20327
  };
20222
20328
  Insert: {
@@ -20225,6 +20331,7 @@ export type Database = {
20225
20331
  is_protected?: boolean;
20226
20332
  key: string;
20227
20333
  name: string;
20334
+ permissions_initialized?: boolean;
20228
20335
  updated_at?: string;
20229
20336
  };
20230
20337
  Update: {
@@ -20233,6 +20340,7 @@ export type Database = {
20233
20340
  is_protected?: boolean;
20234
20341
  key?: string;
20235
20342
  name?: string;
20343
+ permissions_initialized?: boolean;
20236
20344
  updated_at?: string;
20237
20345
  };
20238
20346
  Relationships: [];
@@ -20984,6 +21092,7 @@ export type Database = {
20984
21092
  Row: {
20985
21093
  acknowledged_at: string | null;
20986
21094
  acknowledged_by: string | null;
21095
+ alert_kind: string;
20987
21096
  created_at: string;
20988
21097
  id: string;
20989
21098
  item_count: number;
@@ -20994,6 +21103,7 @@ export type Database = {
20994
21103
  Insert: {
20995
21104
  acknowledged_at?: string | null;
20996
21105
  acknowledged_by?: string | null;
21106
+ alert_kind?: string;
20997
21107
  created_at?: string;
20998
21108
  id?: string;
20999
21109
  item_count?: number;
@@ -21004,6 +21114,7 @@ export type Database = {
21004
21114
  Update: {
21005
21115
  acknowledged_at?: string | null;
21006
21116
  acknowledged_by?: string | null;
21117
+ alert_kind?: string;
21007
21118
  created_at?: string;
21008
21119
  id?: string;
21009
21120
  item_count?: number;
@@ -21070,6 +21181,45 @@ export type Database = {
21070
21181
  };
21071
21182
  Relationships: [];
21072
21183
  };
21184
+ structure_cleanup_log: {
21185
+ Row: {
21186
+ action: string;
21187
+ batch: string;
21188
+ created_at: string;
21189
+ id: string;
21190
+ new_row: Json | null;
21191
+ old_row: Json;
21192
+ reason: string;
21193
+ row_id: string;
21194
+ step: number;
21195
+ table_name: string;
21196
+ };
21197
+ Insert: {
21198
+ action: string;
21199
+ batch: string;
21200
+ created_at?: string;
21201
+ id?: string;
21202
+ new_row?: Json | null;
21203
+ old_row: Json;
21204
+ reason: string;
21205
+ row_id: string;
21206
+ step: number;
21207
+ table_name: string;
21208
+ };
21209
+ Update: {
21210
+ action?: string;
21211
+ batch?: string;
21212
+ created_at?: string;
21213
+ id?: string;
21214
+ new_row?: Json | null;
21215
+ old_row?: Json;
21216
+ reason?: string;
21217
+ row_id?: string;
21218
+ step?: number;
21219
+ table_name?: string;
21220
+ };
21221
+ Relationships: [];
21222
+ };
21073
21223
  supplier_contacts: {
21074
21224
  Row: {
21075
21225
  created_at: string;
@@ -27006,6 +27156,15 @@ export type Database = {
27006
27156
  };
27007
27157
  Returns: number;
27008
27158
  };
27159
+ calculate_structure_available: {
27160
+ Args: {
27161
+ p_connection_id: string;
27162
+ p_level?: number;
27163
+ p_path?: string[];
27164
+ p_product_id: string;
27165
+ };
27166
+ Returns: Json;
27167
+ };
27009
27168
  call_exact_route: {
27010
27169
  Args: {
27011
27170
  path: string;
@@ -27034,6 +27193,19 @@ export type Database = {
27034
27193
  };
27035
27194
  Returns: Json;
27036
27195
  };
27196
+ check_product_structure: {
27197
+ Args: {
27198
+ p_child: string;
27199
+ p_kind: string;
27200
+ p_name?: string;
27201
+ p_parent: string;
27202
+ };
27203
+ Returns: {
27204
+ code: string;
27205
+ message: string;
27206
+ ok: boolean;
27207
+ }[];
27208
+ };
27037
27209
  check_trade_item_available_stock: {
27038
27210
  Args: {
27039
27211
  p_connection_id?: string;
@@ -27447,6 +27619,15 @@ export type Database = {
27447
27619
  wait_ms: number;
27448
27620
  }[];
27449
27621
  };
27622
+ consume_order_item: {
27623
+ Args: {
27624
+ p_order_id: string;
27625
+ p_order_item_id: string;
27626
+ p_reason: string;
27627
+ p_source: string;
27628
+ };
27629
+ Returns: number;
27630
+ };
27450
27631
  consume_print_agent_pairing: {
27451
27632
  Args: {
27452
27633
  _pairing_hash: string;
@@ -27579,6 +27760,10 @@ export type Database = {
27579
27760
  };
27580
27761
  Returns: Json;
27581
27762
  };
27763
+ drain_inventory_recompute_queue: {
27764
+ Args: never;
27765
+ Returns: number;
27766
+ };
27582
27767
  effective_module_permission: {
27583
27768
  Args: {
27584
27769
  _module_id: string;
@@ -27651,6 +27836,18 @@ export type Database = {
27651
27836
  };
27652
27837
  Returns: undefined;
27653
27838
  };
27839
+ enqueue_structure_recompute: {
27840
+ Args: {
27841
+ p_include_self?: boolean;
27842
+ p_product_ids: string[];
27843
+ p_reason: string;
27844
+ };
27845
+ Returns: number;
27846
+ };
27847
+ ensure_inventory_recompute_drain: {
27848
+ Args: never;
27849
+ Returns: undefined;
27850
+ };
27654
27851
  ensure_system_roles: {
27655
27852
  Args: never;
27656
27853
  Returns: {
@@ -27768,6 +27965,19 @@ export type Database = {
27768
27965
  };
27769
27966
  Returns: string;
27770
27967
  };
27968
+ floriday_desired_stock_regression_check: {
27969
+ Args: never;
27970
+ Returns: {
27971
+ actual: number;
27972
+ available: number;
27973
+ equal: boolean;
27974
+ expected: number;
27975
+ packing: number;
27976
+ product_id: string;
27977
+ product_name: string;
27978
+ stock_mode: string;
27979
+ }[];
27980
+ };
27771
27981
  floriday_effective_price: {
27772
27982
  Args: {
27773
27983
  _buyer_id: string;
@@ -28026,6 +28236,18 @@ export type Database = {
28026
28236
  updated_at: string;
28027
28237
  }[];
28028
28238
  };
28239
+ get_product_structure_totals: {
28240
+ Args: {
28241
+ p_product_id: string;
28242
+ };
28243
+ Returns: Json;
28244
+ };
28245
+ get_product_structure_totals_batch: {
28246
+ Args: {
28247
+ p_product_ids: string[];
28248
+ };
28249
+ Returns: Json[];
28250
+ };
28029
28251
  get_room_busy_windows: {
28030
28252
  Args: {
28031
28253
  p_from: string;
@@ -28449,6 +28671,10 @@ export type Database = {
28449
28671
  };
28450
28672
  Returns: number;
28451
28673
  };
28674
+ inventory_inline_budget_ok: {
28675
+ Args: never;
28676
+ Returns: boolean;
28677
+ };
28452
28678
  invoice_auto_concept_for_work_order: {
28453
28679
  Args: {
28454
28680
  _wo_id: string;
@@ -29466,6 +29692,20 @@ export type Database = {
29466
29692
  };
29467
29693
  Returns: Json;
29468
29694
  };
29695
+ logistics_expand_line: {
29696
+ Args: {
29697
+ p_depth?: number;
29698
+ p_path?: string[];
29699
+ p_product_id: string;
29700
+ p_qty: number;
29701
+ };
29702
+ Returns: {
29703
+ kind: string;
29704
+ note: string;
29705
+ qty: number;
29706
+ ref: string;
29707
+ }[];
29708
+ };
29469
29709
  logistics_fail_task: {
29470
29710
  Args: {
29471
29711
  p_error: string;
@@ -29865,6 +30105,18 @@ export type Database = {
29865
30105
  };
29866
30106
  Returns: boolean;
29867
30107
  };
30108
+ logistics_order_line_allocation: {
30109
+ Args: {
30110
+ p_order_item_id: string;
30111
+ };
30112
+ Returns: {
30113
+ group_id: string;
30114
+ note: string;
30115
+ qty: number;
30116
+ source: string;
30117
+ trade_item_key: string;
30118
+ }[];
30119
+ };
29868
30120
  logistics_order_line_duplicates: {
29869
30121
  Args: {
29870
30122
  p_order_id: string;
@@ -30552,6 +30804,16 @@ export type Database = {
30552
30804
  };
30553
30805
  Returns: string;
30554
30806
  };
30807
+ logistics_shipping_note_max_attempts: {
30808
+ Args: never;
30809
+ Returns: number;
30810
+ };
30811
+ logistics_shipping_note_release: {
30812
+ Args: {
30813
+ _order_number?: string;
30814
+ };
30815
+ Returns: number;
30816
+ };
30555
30817
  logistics_shipping_note_status: {
30556
30818
  Args: {
30557
30819
  p_cart_id?: string;
@@ -30559,6 +30821,12 @@ export type Database = {
30559
30821
  };
30560
30822
  Returns: Json;
30561
30823
  };
30824
+ logistics_shipping_note_wake: {
30825
+ Args: {
30826
+ _slip_job_id: string;
30827
+ };
30828
+ Returns: number;
30829
+ };
30562
30830
  logistics_shipping_notes_wake_all: {
30563
30831
  Args: never;
30564
30832
  Returns: Json;
@@ -30593,6 +30861,7 @@ export type Database = {
30593
30861
  slip_job_id: string;
30594
30862
  status: string;
30595
30863
  updated_at: string;
30864
+ voor_herstel: boolean;
30596
30865
  }[];
30597
30866
  SetofOptions: {
30598
30867
  from: "*";
@@ -30613,6 +30882,13 @@ export type Database = {
30613
30882
  };
30614
30883
  Returns: undefined;
30615
30884
  };
30885
+ logistics_slip_note_hold: {
30886
+ Args: {
30887
+ _id: string;
30888
+ _reason: string;
30889
+ };
30890
+ Returns: undefined;
30891
+ };
30616
30892
  logistics_slip_note_keep_waiting: {
30617
30893
  Args: {
30618
30894
  _class?: string;
@@ -32016,6 +32292,12 @@ export type Database = {
32016
32292
  };
32017
32293
  Returns: Json;
32018
32294
  };
32295
+ process_inventory_recompute_queue: {
32296
+ Args: {
32297
+ p_limit?: number;
32298
+ };
32299
+ Returns: number;
32300
+ };
32019
32301
  process_logistics_event: {
32020
32302
  Args: {
32021
32303
  p_event_id: string;
@@ -32030,6 +32312,80 @@ export type Database = {
32030
32312
  };
32031
32313
  Returns: Json;
32032
32314
  };
32315
+ product_active_group_id: {
32316
+ Args: {
32317
+ p_product_id: string;
32318
+ };
32319
+ Returns: string;
32320
+ };
32321
+ product_id_from_ref: {
32322
+ Args: {
32323
+ p_ref: string;
32324
+ };
32325
+ Returns: string;
32326
+ };
32327
+ product_is_set: {
32328
+ Args: {
32329
+ p_product_id: string;
32330
+ };
32331
+ Returns: boolean;
32332
+ };
32333
+ product_label: {
32334
+ Args: {
32335
+ p_id: string;
32336
+ };
32337
+ Returns: string;
32338
+ };
32339
+ product_member_group_ids: {
32340
+ Args: {
32341
+ p_product_id: string;
32342
+ };
32343
+ Returns: string[];
32344
+ };
32345
+ product_own_available: {
32346
+ Args: {
32347
+ p_connection_id: string;
32348
+ p_product_id: string;
32349
+ };
32350
+ Returns: Record<string, unknown>;
32351
+ };
32352
+ product_set_depth_above: {
32353
+ Args: {
32354
+ p_path?: string[];
32355
+ p_product_id: string;
32356
+ };
32357
+ Returns: number;
32358
+ };
32359
+ product_set_depth_below: {
32360
+ Args: {
32361
+ p_path?: string[];
32362
+ p_product_id: string;
32363
+ };
32364
+ Returns: number;
32365
+ };
32366
+ product_structure_ancestors: {
32367
+ Args: {
32368
+ p_product_ids: string[];
32369
+ };
32370
+ Returns: string[];
32371
+ };
32372
+ product_structure_max_depth: {
32373
+ Args: never;
32374
+ Returns: number;
32375
+ };
32376
+ product_structure_path: {
32377
+ Args: {
32378
+ p_from: string;
32379
+ p_target: string;
32380
+ };
32381
+ Returns: string[];
32382
+ };
32383
+ product_type: {
32384
+ Args: {
32385
+ p_product_id: string;
32386
+ };
32387
+ Returns: string;
32388
+ };
32033
32389
  promote_floriday_customer: {
32034
32390
  Args: {
32035
32391
  _org_id: string;
@@ -32270,6 +32626,14 @@ export type Database = {
32270
32626
  };
32271
32627
  Returns: Json;
32272
32628
  };
32629
+ requeue_skipped_stock_rows: {
32630
+ Args: {
32631
+ p_connection_id: string;
32632
+ p_status: string;
32633
+ p_trade_item_id?: string;
32634
+ };
32635
+ Returns: number;
32636
+ };
32273
32637
  reset_cart_layer_positions: {
32274
32638
  Args: {
32275
32639
  p_cart_id: string;
@@ -32382,6 +32746,41 @@ export type Database = {
32382
32746
  Args: never;
32383
32747
  Returns: undefined;
32384
32748
  };
32749
+ save_belading: {
32750
+ Args: {
32751
+ p_expected_updated_at: string;
32752
+ p_packing_configuration_id: string;
32753
+ p_product_id: string;
32754
+ p_tenant_id: string;
32755
+ p_trade_item_floriday_id: string;
32756
+ p_values: Json;
32757
+ };
32758
+ Returns: Json;
32759
+ };
32760
+ save_product_group: {
32761
+ Args: {
32762
+ p_description: string;
32763
+ p_expected_updated_at: string;
32764
+ p_head_product_id: string;
32765
+ p_id: string;
32766
+ p_is_active: boolean;
32767
+ p_members: Json;
32768
+ p_name: string;
32769
+ };
32770
+ Returns: Json;
32771
+ };
32772
+ save_samenstelling: {
32773
+ Args: {
32774
+ p_components: Json;
32775
+ p_expected_updated_at: string;
32776
+ p_external: Json;
32777
+ p_packing_configuration_id: string;
32778
+ p_parent_id: string;
32779
+ p_parent_kind: string;
32780
+ p_tenant_id: string;
32781
+ };
32782
+ Returns: Json;
32783
+ };
32385
32784
  scan_cancel_kar: {
32386
32785
  Args: {
32387
32786
  p_kar_id: string;