@flowselections/floriday-voorraad 1.0.52 → 1.0.54

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;
@@ -18986,7 +19088,7 @@ export type Database = {
18986
19088
  id?: string;
18987
19089
  product_group_id: string;
18988
19090
  quantity?: number;
18989
- sort_order?: number;
19091
+ sort_order: number;
18990
19092
  trade_item_id: string;
18991
19093
  };
18992
19094
  Update: {
@@ -20217,6 +20319,7 @@ export type Database = {
20217
20319
  is_protected: boolean;
20218
20320
  key: string;
20219
20321
  name: string;
20322
+ permissions_initialized: boolean;
20220
20323
  updated_at: string;
20221
20324
  };
20222
20325
  Insert: {
@@ -20225,6 +20328,7 @@ export type Database = {
20225
20328
  is_protected?: boolean;
20226
20329
  key: string;
20227
20330
  name: string;
20331
+ permissions_initialized?: boolean;
20228
20332
  updated_at?: string;
20229
20333
  };
20230
20334
  Update: {
@@ -20233,6 +20337,7 @@ export type Database = {
20233
20337
  is_protected?: boolean;
20234
20338
  key?: string;
20235
20339
  name?: string;
20340
+ permissions_initialized?: boolean;
20236
20341
  updated_at?: string;
20237
20342
  };
20238
20343
  Relationships: [];
@@ -20984,6 +21089,7 @@ export type Database = {
20984
21089
  Row: {
20985
21090
  acknowledged_at: string | null;
20986
21091
  acknowledged_by: string | null;
21092
+ alert_kind: string;
20987
21093
  created_at: string;
20988
21094
  id: string;
20989
21095
  item_count: number;
@@ -20994,6 +21100,7 @@ export type Database = {
20994
21100
  Insert: {
20995
21101
  acknowledged_at?: string | null;
20996
21102
  acknowledged_by?: string | null;
21103
+ alert_kind?: string;
20997
21104
  created_at?: string;
20998
21105
  id?: string;
20999
21106
  item_count?: number;
@@ -21004,6 +21111,7 @@ export type Database = {
21004
21111
  Update: {
21005
21112
  acknowledged_at?: string | null;
21006
21113
  acknowledged_by?: string | null;
21114
+ alert_kind?: string;
21007
21115
  created_at?: string;
21008
21116
  id?: string;
21009
21117
  item_count?: number;
@@ -21070,6 +21178,45 @@ export type Database = {
21070
21178
  };
21071
21179
  Relationships: [];
21072
21180
  };
21181
+ structure_cleanup_log: {
21182
+ Row: {
21183
+ action: string;
21184
+ batch: string;
21185
+ created_at: string;
21186
+ id: string;
21187
+ new_row: Json | null;
21188
+ old_row: Json;
21189
+ reason: string;
21190
+ row_id: string;
21191
+ step: number;
21192
+ table_name: string;
21193
+ };
21194
+ Insert: {
21195
+ action: string;
21196
+ batch: string;
21197
+ created_at?: string;
21198
+ id?: string;
21199
+ new_row?: Json | null;
21200
+ old_row: Json;
21201
+ reason: string;
21202
+ row_id: string;
21203
+ step: number;
21204
+ table_name: string;
21205
+ };
21206
+ Update: {
21207
+ action?: string;
21208
+ batch?: string;
21209
+ created_at?: string;
21210
+ id?: string;
21211
+ new_row?: Json | null;
21212
+ old_row?: Json;
21213
+ reason?: string;
21214
+ row_id?: string;
21215
+ step?: number;
21216
+ table_name?: string;
21217
+ };
21218
+ Relationships: [];
21219
+ };
21073
21220
  supplier_contacts: {
21074
21221
  Row: {
21075
21222
  created_at: string;
@@ -27006,6 +27153,15 @@ export type Database = {
27006
27153
  };
27007
27154
  Returns: number;
27008
27155
  };
27156
+ calculate_structure_available: {
27157
+ Args: {
27158
+ p_connection_id: string;
27159
+ p_level?: number;
27160
+ p_path?: string[];
27161
+ p_product_id: string;
27162
+ };
27163
+ Returns: Json;
27164
+ };
27009
27165
  call_exact_route: {
27010
27166
  Args: {
27011
27167
  path: string;
@@ -27034,6 +27190,19 @@ export type Database = {
27034
27190
  };
27035
27191
  Returns: Json;
27036
27192
  };
27193
+ check_product_structure: {
27194
+ Args: {
27195
+ p_child: string;
27196
+ p_kind: string;
27197
+ p_name?: string;
27198
+ p_parent: string;
27199
+ };
27200
+ Returns: {
27201
+ code: string;
27202
+ message: string;
27203
+ ok: boolean;
27204
+ }[];
27205
+ };
27037
27206
  check_trade_item_available_stock: {
27038
27207
  Args: {
27039
27208
  p_connection_id?: string;
@@ -27447,6 +27616,15 @@ export type Database = {
27447
27616
  wait_ms: number;
27448
27617
  }[];
27449
27618
  };
27619
+ consume_order_item: {
27620
+ Args: {
27621
+ p_order_id: string;
27622
+ p_order_item_id: string;
27623
+ p_reason: string;
27624
+ p_source: string;
27625
+ };
27626
+ Returns: number;
27627
+ };
27450
27628
  consume_print_agent_pairing: {
27451
27629
  Args: {
27452
27630
  _pairing_hash: string;
@@ -27579,6 +27757,10 @@ export type Database = {
27579
27757
  };
27580
27758
  Returns: Json;
27581
27759
  };
27760
+ drain_inventory_recompute_queue: {
27761
+ Args: never;
27762
+ Returns: number;
27763
+ };
27582
27764
  effective_module_permission: {
27583
27765
  Args: {
27584
27766
  _module_id: string;
@@ -27651,6 +27833,18 @@ export type Database = {
27651
27833
  };
27652
27834
  Returns: undefined;
27653
27835
  };
27836
+ enqueue_structure_recompute: {
27837
+ Args: {
27838
+ p_include_self?: boolean;
27839
+ p_product_ids: string[];
27840
+ p_reason: string;
27841
+ };
27842
+ Returns: number;
27843
+ };
27844
+ ensure_inventory_recompute_drain: {
27845
+ Args: never;
27846
+ Returns: undefined;
27847
+ };
27654
27848
  ensure_system_roles: {
27655
27849
  Args: never;
27656
27850
  Returns: {
@@ -27768,6 +27962,19 @@ export type Database = {
27768
27962
  };
27769
27963
  Returns: string;
27770
27964
  };
27965
+ floriday_desired_stock_regression_check: {
27966
+ Args: never;
27967
+ Returns: {
27968
+ actual: number;
27969
+ available: number;
27970
+ equal: boolean;
27971
+ expected: number;
27972
+ packing: number;
27973
+ product_id: string;
27974
+ product_name: string;
27975
+ stock_mode: string;
27976
+ }[];
27977
+ };
27771
27978
  floriday_effective_price: {
27772
27979
  Args: {
27773
27980
  _buyer_id: string;
@@ -28026,6 +28233,18 @@ export type Database = {
28026
28233
  updated_at: string;
28027
28234
  }[];
28028
28235
  };
28236
+ get_product_structure_totals: {
28237
+ Args: {
28238
+ p_product_id: string;
28239
+ };
28240
+ Returns: Json;
28241
+ };
28242
+ get_product_structure_totals_batch: {
28243
+ Args: {
28244
+ p_product_ids: string[];
28245
+ };
28246
+ Returns: Json[];
28247
+ };
28029
28248
  get_room_busy_windows: {
28030
28249
  Args: {
28031
28250
  p_from: string;
@@ -28449,6 +28668,10 @@ export type Database = {
28449
28668
  };
28450
28669
  Returns: number;
28451
28670
  };
28671
+ inventory_inline_budget_ok: {
28672
+ Args: never;
28673
+ Returns: boolean;
28674
+ };
28452
28675
  invoice_auto_concept_for_work_order: {
28453
28676
  Args: {
28454
28677
  _wo_id: string;
@@ -29466,6 +29689,20 @@ export type Database = {
29466
29689
  };
29467
29690
  Returns: Json;
29468
29691
  };
29692
+ logistics_expand_line: {
29693
+ Args: {
29694
+ p_depth?: number;
29695
+ p_path?: string[];
29696
+ p_product_id: string;
29697
+ p_qty: number;
29698
+ };
29699
+ Returns: {
29700
+ kind: string;
29701
+ note: string;
29702
+ qty: number;
29703
+ ref: string;
29704
+ }[];
29705
+ };
29469
29706
  logistics_fail_task: {
29470
29707
  Args: {
29471
29708
  p_error: string;
@@ -29865,6 +30102,18 @@ export type Database = {
29865
30102
  };
29866
30103
  Returns: boolean;
29867
30104
  };
30105
+ logistics_order_line_allocation: {
30106
+ Args: {
30107
+ p_order_item_id: string;
30108
+ };
30109
+ Returns: {
30110
+ group_id: string;
30111
+ note: string;
30112
+ qty: number;
30113
+ source: string;
30114
+ trade_item_key: string;
30115
+ }[];
30116
+ };
29868
30117
  logistics_order_line_duplicates: {
29869
30118
  Args: {
29870
30119
  p_order_id: string;
@@ -32016,6 +32265,12 @@ export type Database = {
32016
32265
  };
32017
32266
  Returns: Json;
32018
32267
  };
32268
+ process_inventory_recompute_queue: {
32269
+ Args: {
32270
+ p_limit?: number;
32271
+ };
32272
+ Returns: number;
32273
+ };
32019
32274
  process_logistics_event: {
32020
32275
  Args: {
32021
32276
  p_event_id: string;
@@ -32030,6 +32285,80 @@ export type Database = {
32030
32285
  };
32031
32286
  Returns: Json;
32032
32287
  };
32288
+ product_active_group_id: {
32289
+ Args: {
32290
+ p_product_id: string;
32291
+ };
32292
+ Returns: string;
32293
+ };
32294
+ product_id_from_ref: {
32295
+ Args: {
32296
+ p_ref: string;
32297
+ };
32298
+ Returns: string;
32299
+ };
32300
+ product_is_set: {
32301
+ Args: {
32302
+ p_product_id: string;
32303
+ };
32304
+ Returns: boolean;
32305
+ };
32306
+ product_label: {
32307
+ Args: {
32308
+ p_id: string;
32309
+ };
32310
+ Returns: string;
32311
+ };
32312
+ product_member_group_ids: {
32313
+ Args: {
32314
+ p_product_id: string;
32315
+ };
32316
+ Returns: string[];
32317
+ };
32318
+ product_own_available: {
32319
+ Args: {
32320
+ p_connection_id: string;
32321
+ p_product_id: string;
32322
+ };
32323
+ Returns: Record<string, unknown>;
32324
+ };
32325
+ product_set_depth_above: {
32326
+ Args: {
32327
+ p_path?: string[];
32328
+ p_product_id: string;
32329
+ };
32330
+ Returns: number;
32331
+ };
32332
+ product_set_depth_below: {
32333
+ Args: {
32334
+ p_path?: string[];
32335
+ p_product_id: string;
32336
+ };
32337
+ Returns: number;
32338
+ };
32339
+ product_structure_ancestors: {
32340
+ Args: {
32341
+ p_product_ids: string[];
32342
+ };
32343
+ Returns: string[];
32344
+ };
32345
+ product_structure_max_depth: {
32346
+ Args: never;
32347
+ Returns: number;
32348
+ };
32349
+ product_structure_path: {
32350
+ Args: {
32351
+ p_from: string;
32352
+ p_target: string;
32353
+ };
32354
+ Returns: string[];
32355
+ };
32356
+ product_type: {
32357
+ Args: {
32358
+ p_product_id: string;
32359
+ };
32360
+ Returns: string;
32361
+ };
32033
32362
  promote_floriday_customer: {
32034
32363
  Args: {
32035
32364
  _org_id: string;
@@ -32270,6 +32599,14 @@ export type Database = {
32270
32599
  };
32271
32600
  Returns: Json;
32272
32601
  };
32602
+ requeue_skipped_stock_rows: {
32603
+ Args: {
32604
+ p_connection_id: string;
32605
+ p_status: string;
32606
+ p_trade_item_id?: string;
32607
+ };
32608
+ Returns: number;
32609
+ };
32273
32610
  reset_cart_layer_positions: {
32274
32611
  Args: {
32275
32612
  p_cart_id: string;
@@ -32382,6 +32719,41 @@ export type Database = {
32382
32719
  Args: never;
32383
32720
  Returns: undefined;
32384
32721
  };
32722
+ save_belading: {
32723
+ Args: {
32724
+ p_expected_updated_at: string;
32725
+ p_packing_configuration_id: string;
32726
+ p_product_id: string;
32727
+ p_tenant_id: string;
32728
+ p_trade_item_floriday_id: string;
32729
+ p_values: Json;
32730
+ };
32731
+ Returns: Json;
32732
+ };
32733
+ save_product_group: {
32734
+ Args: {
32735
+ p_description: string;
32736
+ p_expected_updated_at: string;
32737
+ p_head_product_id: string;
32738
+ p_id: string;
32739
+ p_is_active: boolean;
32740
+ p_members: Json;
32741
+ p_name: string;
32742
+ };
32743
+ Returns: Json;
32744
+ };
32745
+ save_samenstelling: {
32746
+ Args: {
32747
+ p_components: Json;
32748
+ p_expected_updated_at: string;
32749
+ p_external: Json;
32750
+ p_packing_configuration_id: string;
32751
+ p_parent_id: string;
32752
+ p_parent_kind: string;
32753
+ p_tenant_id: string;
32754
+ };
32755
+ Returns: Json;
32756
+ };
32385
32757
  scan_cancel_kar: {
32386
32758
  Args: {
32387
32759
  p_kar_id: string;