@flowselections/floriday-verkoop-module 1.0.61 → 1.0.62

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 (68) hide show
  1. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +18 -5
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts +771 -5
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +771 -5
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +776 -5
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/buffer-events.functions.d.ts +771 -5
  10. package/dist-lib/lib/buffer-events.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/cart-layers.functions.d.ts +3064 -0
  12. package/dist-lib/lib/cart-layers.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-lock.functions.d.ts +771 -5
  14. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-planning-settings.functions.d.ts +8426 -0
  16. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-replan.functions.d.ts +2299 -1
  18. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/cart-replan.functions.js +8 -47
  20. package/dist-lib/lib/create-order.functions.d.ts +13022 -0
  21. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/create-order.functions.js +3 -16
  23. package/dist-lib/lib/cron/replan-carts.d.ts +1 -1
  24. package/dist-lib/lib/cron/replan-carts.d.ts.map +1 -1
  25. package/dist-lib/lib/cron/replan-carts.js +10 -15
  26. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1532 -0
  27. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-mirror.functions.d.ts +771 -5
  29. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-public.functions.d.ts +5362 -0
  31. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-writes.functions.d.ts +1532 -0
  33. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/invoice-timing.functions.d.ts +3064 -0
  35. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/load-carriers.functions.d.ts +771 -5
  37. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/logistics-engine.functions.d.ts +3830 -0
  39. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/logistics-engine.server.d.ts.map +1 -1
  41. package/dist-lib/lib/logistics-engine.server.js +2 -9
  42. package/dist-lib/lib/logistics-stock.functions.d.ts +1532 -0
  43. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/order-addresses.functions.d.ts +771 -5
  45. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/order-buffers.functions.d.ts +2307 -3
  47. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/order-buffers.functions.js +3 -12
  49. package/dist-lib/lib/order-carrier.functions.d.ts +1532 -0
  50. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/order-fulfill.functions.d.ts +771 -5
  52. package/dist-lib/lib/order-fulfill.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/order-pickup.functions.d.ts +1532 -0
  54. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/order-shipments.functions.d.ts +3064 -0
  56. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/product-dimensions.functions.d.ts +1532 -0
  58. package/dist-lib/lib/product-dimensions.functions.d.ts.map +1 -1
  59. package/dist-lib/lib/salesorders-list.functions.d.ts +1532 -0
  60. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/salesorders.functions.d.ts +4623 -17
  62. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/salesorders.functions.js +16 -21
  64. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +1532 -0
  65. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/tradeitems.functions.d.ts +771 -5
  67. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  68. package/package.json +1 -1
@@ -2272,6 +2272,45 @@ export type Database = {
2272
2272
  };
2273
2273
  Relationships: [];
2274
2274
  };
2275
+ customer_product_stickers: {
2276
+ Row: {
2277
+ created_at: string;
2278
+ customer_key: string;
2279
+ file_name: string;
2280
+ file_path: string;
2281
+ file_size: number | null;
2282
+ id: string;
2283
+ mime_type: string | null;
2284
+ trade_item_key: string;
2285
+ updated_at: string;
2286
+ uploaded_by: string | null;
2287
+ };
2288
+ Insert: {
2289
+ created_at?: string;
2290
+ customer_key: string;
2291
+ file_name: string;
2292
+ file_path: string;
2293
+ file_size?: number | null;
2294
+ id?: string;
2295
+ mime_type?: string | null;
2296
+ trade_item_key: string;
2297
+ updated_at?: string;
2298
+ uploaded_by?: string | null;
2299
+ };
2300
+ Update: {
2301
+ created_at?: string;
2302
+ customer_key?: string;
2303
+ file_name?: string;
2304
+ file_path?: string;
2305
+ file_size?: number | null;
2306
+ id?: string;
2307
+ mime_type?: string | null;
2308
+ trade_item_key?: string;
2309
+ updated_at?: string;
2310
+ uploaded_by?: string | null;
2311
+ };
2312
+ Relationships: [];
2313
+ };
2275
2314
  customer_selected_assortment: {
2276
2315
  Row: {
2277
2316
  article_number: string | null;
@@ -2322,6 +2361,30 @@ export type Database = {
2322
2361
  }
2323
2362
  ];
2324
2363
  };
2364
+ customer_sticker_settings: {
2365
+ Row: {
2366
+ created_at: string;
2367
+ customer_key: string;
2368
+ height_mm: number;
2369
+ updated_at: string;
2370
+ width_mm: number;
2371
+ };
2372
+ Insert: {
2373
+ created_at?: string;
2374
+ customer_key: string;
2375
+ height_mm?: number;
2376
+ updated_at?: string;
2377
+ width_mm?: number;
2378
+ };
2379
+ Update: {
2380
+ created_at?: string;
2381
+ customer_key?: string;
2382
+ height_mm?: number;
2383
+ updated_at?: string;
2384
+ width_mm?: number;
2385
+ };
2386
+ Relationships: [];
2387
+ };
2325
2388
  customer_trade_settings: {
2326
2389
  Row: {
2327
2390
  category: string;
@@ -5731,6 +5794,105 @@ export type Database = {
5731
5794
  }
5732
5795
  ];
5733
5796
  };
5797
+ floriday_api_log: {
5798
+ Row: {
5799
+ action: string | null;
5800
+ caller: string | null;
5801
+ connection_id: string | null;
5802
+ created_at: string;
5803
+ cursor_from: number | null;
5804
+ direction: string;
5805
+ duration_ms: number | null;
5806
+ environment: string | null;
5807
+ error: string | null;
5808
+ floriday_id: string | null;
5809
+ floriday_reference: string | null;
5810
+ http_status: number;
5811
+ id: string;
5812
+ item_count: number | null;
5813
+ kind: string | null;
5814
+ local_id: string | null;
5815
+ local_reference: string | null;
5816
+ method: string;
5817
+ module: string | null;
5818
+ ok: boolean;
5819
+ path: string;
5820
+ request: Json | null;
5821
+ resource_type: string | null;
5822
+ response: Json | null;
5823
+ write_log_id: string | null;
5824
+ };
5825
+ Insert: {
5826
+ action?: string | null;
5827
+ caller?: string | null;
5828
+ connection_id?: string | null;
5829
+ created_at?: string;
5830
+ cursor_from?: number | null;
5831
+ direction: string;
5832
+ duration_ms?: number | null;
5833
+ environment?: string | null;
5834
+ error?: string | null;
5835
+ floriday_id?: string | null;
5836
+ floriday_reference?: string | null;
5837
+ http_status?: number;
5838
+ id?: string;
5839
+ item_count?: number | null;
5840
+ kind?: string | null;
5841
+ local_id?: string | null;
5842
+ local_reference?: string | null;
5843
+ method: string;
5844
+ module?: string | null;
5845
+ ok?: boolean;
5846
+ path: string;
5847
+ request?: Json | null;
5848
+ resource_type?: string | null;
5849
+ response?: Json | null;
5850
+ write_log_id?: string | null;
5851
+ };
5852
+ Update: {
5853
+ action?: string | null;
5854
+ caller?: string | null;
5855
+ connection_id?: string | null;
5856
+ created_at?: string;
5857
+ cursor_from?: number | null;
5858
+ direction?: string;
5859
+ duration_ms?: number | null;
5860
+ environment?: string | null;
5861
+ error?: string | null;
5862
+ floriday_id?: string | null;
5863
+ floriday_reference?: string | null;
5864
+ http_status?: number;
5865
+ id?: string;
5866
+ item_count?: number | null;
5867
+ kind?: string | null;
5868
+ local_id?: string | null;
5869
+ local_reference?: string | null;
5870
+ method?: string;
5871
+ module?: string | null;
5872
+ ok?: boolean;
5873
+ path?: string;
5874
+ request?: Json | null;
5875
+ resource_type?: string | null;
5876
+ response?: Json | null;
5877
+ write_log_id?: string | null;
5878
+ };
5879
+ Relationships: [
5880
+ {
5881
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5882
+ columns: ["connection_id"];
5883
+ isOneToOne: false;
5884
+ referencedRelation: "floriday_connections";
5885
+ referencedColumns: ["id"];
5886
+ },
5887
+ {
5888
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5889
+ columns: ["write_log_id"];
5890
+ isOneToOne: false;
5891
+ referencedRelation: "floriday_write_log";
5892
+ referencedColumns: ["id"];
5893
+ }
5894
+ ];
5895
+ };
5734
5896
  floriday_auction_letters_cache: {
5735
5897
  Row: {
5736
5898
  auction_letter_code: string;
@@ -5948,6 +6110,86 @@ export type Database = {
5948
6110
  }
5949
6111
  ];
5950
6112
  };
6113
+ floriday_catalog_prices_cache: {
6114
+ Row: {
6115
+ connection_id: string;
6116
+ created_at: string;
6117
+ currency: string;
6118
+ id: string;
6119
+ is_deleted: boolean;
6120
+ price: number | null;
6121
+ price_group_id: string | null;
6122
+ price_group_name: string | null;
6123
+ price_type: string;
6124
+ raw: Json | null;
6125
+ sales_unit: string | null;
6126
+ sequence_number: number;
6127
+ supplier_article_code: string | null;
6128
+ supply_line_id: string;
6129
+ synced_at: string;
6130
+ trade_item_id: string | null;
6131
+ updated_at: string;
6132
+ valid_from: string | null;
6133
+ valid_to: string | null;
6134
+ week: number | null;
6135
+ year: number | null;
6136
+ };
6137
+ Insert: {
6138
+ connection_id: string;
6139
+ created_at?: string;
6140
+ currency?: string;
6141
+ id?: string;
6142
+ is_deleted?: boolean;
6143
+ price?: number | null;
6144
+ price_group_id?: string | null;
6145
+ price_group_name?: string | null;
6146
+ price_type?: string;
6147
+ raw?: Json | null;
6148
+ sales_unit?: string | null;
6149
+ sequence_number?: number;
6150
+ supplier_article_code?: string | null;
6151
+ supply_line_id: string;
6152
+ synced_at?: string;
6153
+ trade_item_id?: string | null;
6154
+ updated_at?: string;
6155
+ valid_from?: string | null;
6156
+ valid_to?: string | null;
6157
+ week?: number | null;
6158
+ year?: number | null;
6159
+ };
6160
+ Update: {
6161
+ connection_id?: string;
6162
+ created_at?: string;
6163
+ currency?: string;
6164
+ id?: string;
6165
+ is_deleted?: boolean;
6166
+ price?: number | null;
6167
+ price_group_id?: string | null;
6168
+ price_group_name?: string | null;
6169
+ price_type?: string;
6170
+ raw?: Json | null;
6171
+ sales_unit?: string | null;
6172
+ sequence_number?: number;
6173
+ supplier_article_code?: string | null;
6174
+ supply_line_id?: string;
6175
+ synced_at?: string;
6176
+ trade_item_id?: string | null;
6177
+ updated_at?: string;
6178
+ valid_from?: string | null;
6179
+ valid_to?: string | null;
6180
+ week?: number | null;
6181
+ year?: number | null;
6182
+ };
6183
+ Relationships: [
6184
+ {
6185
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6186
+ columns: ["connection_id"];
6187
+ isOneToOne: false;
6188
+ referencedRelation: "floriday_connections";
6189
+ referencedColumns: ["id"];
6190
+ }
6191
+ ];
6192
+ };
5951
6193
  floriday_clock_presales_cache: {
5952
6194
  Row: {
5953
6195
  buyer_organization_id: string | null;
@@ -6893,6 +7135,69 @@ export type Database = {
6893
7135
  }
6894
7136
  ];
6895
7137
  };
7138
+ floriday_link_templates: {
7139
+ Row: {
7140
+ created_at: string;
7141
+ floriday_url_template: string | null;
7142
+ is_active: boolean;
7143
+ label: string;
7144
+ local_url_template: string | null;
7145
+ resource_type: string;
7146
+ updated_at: string;
7147
+ };
7148
+ Insert: {
7149
+ created_at?: string;
7150
+ floriday_url_template?: string | null;
7151
+ is_active?: boolean;
7152
+ label: string;
7153
+ local_url_template?: string | null;
7154
+ resource_type: string;
7155
+ updated_at?: string;
7156
+ };
7157
+ Update: {
7158
+ created_at?: string;
7159
+ floriday_url_template?: string | null;
7160
+ is_active?: boolean;
7161
+ label?: string;
7162
+ local_url_template?: string | null;
7163
+ resource_type?: string;
7164
+ updated_at?: string;
7165
+ };
7166
+ Relationships: [];
7167
+ };
7168
+ floriday_log_retention: {
7169
+ Row: {
7170
+ created_at: string;
7171
+ direction: string | null;
7172
+ id: string;
7173
+ keep_failed_days: number | null;
7174
+ keep_ok_days: number | null;
7175
+ note: string | null;
7176
+ resource_type: string | null;
7177
+ updated_at: string;
7178
+ };
7179
+ Insert: {
7180
+ created_at?: string;
7181
+ direction?: string | null;
7182
+ id?: string;
7183
+ keep_failed_days?: number | null;
7184
+ keep_ok_days?: number | null;
7185
+ note?: string | null;
7186
+ resource_type?: string | null;
7187
+ updated_at?: string;
7188
+ };
7189
+ Update: {
7190
+ created_at?: string;
7191
+ direction?: string | null;
7192
+ id?: string;
7193
+ keep_failed_days?: number | null;
7194
+ keep_ok_days?: number | null;
7195
+ note?: string | null;
7196
+ resource_type?: string | null;
7197
+ updated_at?: string;
7198
+ };
7199
+ Relationships: [];
7200
+ };
6896
7201
  floriday_logistic_labels_cache: {
6897
7202
  Row: {
6898
7203
  byte_size: number | null;
@@ -10616,6 +10921,48 @@ export type Database = {
10616
10921
  };
10617
10922
  Relationships: [];
10618
10923
  };
10924
+ logistics_pick_data_requests: {
10925
+ Row: {
10926
+ actions: Json;
10927
+ created_at: string;
10928
+ event_id: string | null;
10929
+ finished_at: string | null;
10930
+ id: string;
10931
+ missing: Json;
10932
+ order_ref: string;
10933
+ reason: string | null;
10934
+ result: Json | null;
10935
+ status: string;
10936
+ unit_ref: string | null;
10937
+ };
10938
+ Insert: {
10939
+ actions?: Json;
10940
+ created_at?: string;
10941
+ event_id?: string | null;
10942
+ finished_at?: string | null;
10943
+ id?: string;
10944
+ missing?: Json;
10945
+ order_ref: string;
10946
+ reason?: string | null;
10947
+ result?: Json | null;
10948
+ status?: string;
10949
+ unit_ref?: string | null;
10950
+ };
10951
+ Update: {
10952
+ actions?: Json;
10953
+ created_at?: string;
10954
+ event_id?: string | null;
10955
+ finished_at?: string | null;
10956
+ id?: string;
10957
+ missing?: Json;
10958
+ order_ref?: string;
10959
+ reason?: string | null;
10960
+ result?: Json | null;
10961
+ status?: string;
10962
+ unit_ref?: string | null;
10963
+ };
10964
+ Relationships: [];
10965
+ };
10619
10966
  logistics_pickup_moments: {
10620
10967
  Row: {
10621
10968
  carrier_ref: string | null;
@@ -11069,16 +11416,79 @@ export type Database = {
11069
11416
  is_reprint?: boolean;
11070
11417
  order_id?: string | null;
11071
11418
  print_job_id?: string | null;
11072
- scanned_at?: string;
11419
+ scanned_at?: string;
11420
+ };
11421
+ Update: {
11422
+ barcode?: string;
11423
+ cart_id?: string;
11424
+ id?: string;
11425
+ is_reprint?: boolean;
11426
+ order_id?: string | null;
11427
+ print_job_id?: string | null;
11428
+ scanned_at?: string;
11429
+ };
11430
+ Relationships: [];
11431
+ };
11432
+ logistics_slip_shipping_note: {
11433
+ Row: {
11434
+ attempts: number;
11435
+ batch_key: string | null;
11436
+ cart_id: string | null;
11437
+ created_at: string;
11438
+ error: string | null;
11439
+ error_code: string | null;
11440
+ fulfillment_order_id: string | null;
11441
+ id: string;
11442
+ locked_until: string | null;
11443
+ next_attempt_at: string | null;
11444
+ order_id: string | null;
11445
+ order_number: string | null;
11446
+ print_job_id: string | null;
11447
+ printer_id: string | null;
11448
+ retry_class: string | null;
11449
+ slip_job_id: string;
11450
+ status: string;
11451
+ updated_at: string;
11452
+ };
11453
+ Insert: {
11454
+ attempts?: number;
11455
+ batch_key?: string | null;
11456
+ cart_id?: string | null;
11457
+ created_at?: string;
11458
+ error?: string | null;
11459
+ error_code?: string | null;
11460
+ fulfillment_order_id?: string | null;
11461
+ id?: string;
11462
+ locked_until?: string | null;
11463
+ next_attempt_at?: string | null;
11464
+ order_id?: string | null;
11465
+ order_number?: string | null;
11466
+ print_job_id?: string | null;
11467
+ printer_id?: string | null;
11468
+ retry_class?: string | null;
11469
+ slip_job_id: string;
11470
+ status?: string;
11471
+ updated_at?: string;
11073
11472
  };
11074
11473
  Update: {
11075
- barcode?: string;
11076
- cart_id?: string;
11474
+ attempts?: number;
11475
+ batch_key?: string | null;
11476
+ cart_id?: string | null;
11477
+ created_at?: string;
11478
+ error?: string | null;
11479
+ error_code?: string | null;
11480
+ fulfillment_order_id?: string | null;
11077
11481
  id?: string;
11078
- is_reprint?: boolean;
11482
+ locked_until?: string | null;
11483
+ next_attempt_at?: string | null;
11079
11484
  order_id?: string | null;
11485
+ order_number?: string | null;
11080
11486
  print_job_id?: string | null;
11081
- scanned_at?: string;
11487
+ printer_id?: string | null;
11488
+ retry_class?: string | null;
11489
+ slip_job_id?: string;
11490
+ status?: string;
11491
+ updated_at?: string;
11082
11492
  };
11083
11493
  Relationships: [];
11084
11494
  };
@@ -11439,6 +11849,111 @@ export type Database = {
11439
11849
  };
11440
11850
  Relationships: [];
11441
11851
  };
11852
+ logistics_trace_events: {
11853
+ Row: {
11854
+ actor: string | null;
11855
+ attempts: number;
11856
+ cart_ref: string | null;
11857
+ created_at: string;
11858
+ db_action: string | null;
11859
+ db_new: Json | null;
11860
+ db_old: Json | null;
11861
+ db_record: string | null;
11862
+ db_table: string | null;
11863
+ decision: string | null;
11864
+ duration_ms: number | null;
11865
+ error: string | null;
11866
+ external_action: string | null;
11867
+ external_ref: string | null;
11868
+ external_response: Json | null;
11869
+ external_status: string | null;
11870
+ external_system: string | null;
11871
+ id: string;
11872
+ input: Json | null;
11873
+ next_attempt_at: string | null;
11874
+ order_ref: string | null;
11875
+ order_source: string | null;
11876
+ output: Json | null;
11877
+ phase: string;
11878
+ reads: Json | null;
11879
+ reason: string | null;
11880
+ rule: string | null;
11881
+ slip_ref: string | null;
11882
+ status: string;
11883
+ step: string;
11884
+ trace_id: string;
11885
+ values_used: Json | null;
11886
+ };
11887
+ Insert: {
11888
+ actor?: string | null;
11889
+ attempts?: number;
11890
+ cart_ref?: string | null;
11891
+ created_at?: string;
11892
+ db_action?: string | null;
11893
+ db_new?: Json | null;
11894
+ db_old?: Json | null;
11895
+ db_record?: string | null;
11896
+ db_table?: string | null;
11897
+ decision?: string | null;
11898
+ duration_ms?: number | null;
11899
+ error?: string | null;
11900
+ external_action?: string | null;
11901
+ external_ref?: string | null;
11902
+ external_response?: Json | null;
11903
+ external_status?: string | null;
11904
+ external_system?: string | null;
11905
+ id?: string;
11906
+ input?: Json | null;
11907
+ next_attempt_at?: string | null;
11908
+ order_ref?: string | null;
11909
+ order_source?: string | null;
11910
+ output?: Json | null;
11911
+ phase: string;
11912
+ reads?: Json | null;
11913
+ reason?: string | null;
11914
+ rule?: string | null;
11915
+ slip_ref?: string | null;
11916
+ status: string;
11917
+ step: string;
11918
+ trace_id?: string;
11919
+ values_used?: Json | null;
11920
+ };
11921
+ Update: {
11922
+ actor?: string | null;
11923
+ attempts?: number;
11924
+ cart_ref?: string | null;
11925
+ created_at?: string;
11926
+ db_action?: string | null;
11927
+ db_new?: Json | null;
11928
+ db_old?: Json | null;
11929
+ db_record?: string | null;
11930
+ db_table?: string | null;
11931
+ decision?: string | null;
11932
+ duration_ms?: number | null;
11933
+ error?: string | null;
11934
+ external_action?: string | null;
11935
+ external_ref?: string | null;
11936
+ external_response?: Json | null;
11937
+ external_status?: string | null;
11938
+ external_system?: string | null;
11939
+ id?: string;
11940
+ input?: Json | null;
11941
+ next_attempt_at?: string | null;
11942
+ order_ref?: string | null;
11943
+ order_source?: string | null;
11944
+ output?: Json | null;
11945
+ phase?: string;
11946
+ reads?: Json | null;
11947
+ reason?: string | null;
11948
+ rule?: string | null;
11949
+ slip_ref?: string | null;
11950
+ status?: string;
11951
+ step?: string;
11952
+ trace_id?: string;
11953
+ values_used?: Json | null;
11954
+ };
11955
+ Relationships: [];
11956
+ };
11442
11957
  logistics_variables: {
11443
11958
  Row: {
11444
11959
  created_at: string;
@@ -22315,6 +22830,15 @@ export type Database = {
22315
22830
  Args: never;
22316
22831
  Returns: boolean;
22317
22832
  };
22833
+ cancel_open_print_jobs: {
22834
+ Args: {
22835
+ _cutoff: string;
22836
+ };
22837
+ Returns: {
22838
+ extern_job_id: string;
22839
+ id: string;
22840
+ }[];
22841
+ };
22318
22842
  check_offer_product_available_stock: {
22319
22843
  Args: {
22320
22844
  p_campaign_product_id: string;
@@ -23853,6 +24377,12 @@ export type Database = {
23853
24377
  };
23854
24378
  Returns: string;
23855
24379
  };
24380
+ logistics_cart_checkin_at: {
24381
+ Args: {
24382
+ p_cart_id: string;
24383
+ };
24384
+ Returns: string;
24385
+ };
23856
24386
  logistics_cart_handled: {
23857
24387
  Args: {
23858
24388
  p_cart_index: number;
@@ -23886,10 +24416,22 @@ export type Database = {
23886
24416
  task_status: string;
23887
24417
  }[];
23888
24418
  };
24419
+ logistics_cart_is_full: {
24420
+ Args: {
24421
+ p_cart_id: string;
24422
+ };
24423
+ Returns: boolean;
24424
+ };
23889
24425
  logistics_cart_layout_method: {
23890
24426
  Args: never;
23891
24427
  Returns: Json;
23892
24428
  };
24429
+ logistics_cart_order_refs: {
24430
+ Args: {
24431
+ p_cart_id: string;
24432
+ };
24433
+ Returns: string[];
24434
+ };
23893
24435
  logistics_cart_plan_overview: {
23894
24436
  Args: {
23895
24437
  p_days?: number;
@@ -23909,6 +24451,24 @@ export type Database = {
23909
24451
  };
23910
24452
  Returns: Json;
23911
24453
  };
24454
+ logistics_cart_plan_status_core: {
24455
+ Args: {
24456
+ p_ref: string;
24457
+ };
24458
+ Returns: Json;
24459
+ };
24460
+ logistics_cart_release_reason: {
24461
+ Args: {
24462
+ p_cart_id: string;
24463
+ };
24464
+ Returns: string;
24465
+ };
24466
+ logistics_cart_released: {
24467
+ Args: {
24468
+ p_cart_id: string;
24469
+ };
24470
+ Returns: boolean;
24471
+ };
23912
24472
  logistics_cart_seq: {
23913
24473
  Args: {
23914
24474
  p_order_uuid?: string;
@@ -23959,6 +24519,10 @@ export type Database = {
23959
24519
  unit_ref: string;
23960
24520
  }[];
23961
24521
  };
24522
+ logistics_carts_per_print: {
24523
+ Args: never;
24524
+ Returns: number;
24525
+ };
23962
24526
  logistics_check_order_allowed: {
23963
24527
  Args: {
23964
24528
  p_lines: Json;
@@ -24062,6 +24626,10 @@ export type Database = {
24062
24626
  isSetofReturn: false;
24063
24627
  };
24064
24628
  };
24629
+ logistics_cleanup_orphan_print_jobs: {
24630
+ Args: never;
24631
+ Returns: Json;
24632
+ };
24065
24633
  logistics_complete_task: {
24066
24634
  Args: {
24067
24635
  p_result?: Json;
@@ -24313,6 +24881,20 @@ export type Database = {
24313
24881
  };
24314
24882
  Returns: string;
24315
24883
  };
24884
+ logistics_ensure_pick_data: {
24885
+ Args: {
24886
+ p_event_id?: string;
24887
+ p_missing?: Json;
24888
+ p_ref: string;
24889
+ };
24890
+ Returns: Json;
24891
+ };
24892
+ logistics_ensure_shipping_notes: {
24893
+ Args: {
24894
+ p_limit?: number;
24895
+ };
24896
+ Returns: Json;
24897
+ };
24316
24898
  logistics_fail_task: {
24317
24899
  Args: {
24318
24900
  p_error: string;
@@ -24358,6 +24940,10 @@ export type Database = {
24358
24940
  isSetofReturn: false;
24359
24941
  };
24360
24942
  };
24943
+ logistics_fix_wrong_shipping_notes: {
24944
+ Args: never;
24945
+ Returns: Json;
24946
+ };
24361
24947
  logistics_floriday_cart_plan: {
24362
24948
  Args: {
24363
24949
  p_order_id: string;
@@ -24385,6 +24971,10 @@ export type Database = {
24385
24971
  revision: number;
24386
24972
  }[];
24387
24973
  };
24974
+ logistics_floriday_delivery_note_create_enabled: {
24975
+ Args: never;
24976
+ Returns: boolean;
24977
+ };
24388
24978
  logistics_floriday_finish_push: {
24389
24979
  Args: {
24390
24980
  _error?: string;
@@ -24536,6 +25126,12 @@ export type Database = {
24536
25126
  };
24537
25127
  Returns: number;
24538
25128
  };
25129
+ logistics_merge_partial_carts: {
25130
+ Args: {
25131
+ p_limit?: number;
25132
+ };
25133
+ Returns: Json;
25134
+ };
24539
25135
  logistics_next_workday_date: {
24540
25136
  Args: {
24541
25137
  p_date: string;
@@ -24622,6 +25218,12 @@ export type Database = {
24622
25218
  };
24623
25219
  Returns: string;
24624
25220
  };
25221
+ logistics_payload_is_floriday: {
25222
+ Args: {
25223
+ _payload: Json;
25224
+ };
25225
+ Returns: boolean;
25226
+ };
24625
25227
  logistics_pick_agenda: {
24626
25228
  Args: {
24627
25229
  p_from?: string;
@@ -24650,6 +25252,10 @@ export type Database = {
24650
25252
  Args: never;
24651
25253
  Returns: Json;
24652
25254
  };
25255
+ logistics_pick_partial_mode: {
25256
+ Args: never;
25257
+ Returns: string;
25258
+ };
24653
25259
  logistics_pick_start_estimate: {
24654
25260
  Args: {
24655
25261
  p_order: Json;
@@ -24740,6 +25346,20 @@ export type Database = {
24740
25346
  Args: never;
24741
25347
  Returns: undefined;
24742
25348
  };
25349
+ logistics_plan_progress: {
25350
+ Args: {
25351
+ p_refs: string[];
25352
+ };
25353
+ Returns: {
25354
+ cart_plan_ready: boolean;
25355
+ cart_plan_reason: string;
25356
+ cart_plan_released: boolean;
25357
+ plan_progress: number;
25358
+ plan_state: string;
25359
+ plan_state_since: string;
25360
+ unit_ref: string;
25361
+ }[];
25362
+ };
24743
25363
  logistics_plan_prune: {
24744
25364
  Args: never;
24745
25365
  Returns: number;
@@ -24761,6 +25381,18 @@ export type Database = {
24761
25381
  };
24762
25382
  Returns: number;
24763
25383
  };
25384
+ logistics_plan_state_for: {
25385
+ Args: {
25386
+ p_ref: string;
25387
+ };
25388
+ Returns: Json;
25389
+ };
25390
+ logistics_prepare_pick_documents: {
25391
+ Args: {
25392
+ p_limit?: number;
25393
+ };
25394
+ Returns: Json;
25395
+ };
24764
25396
  logistics_prune_buffer_member_queue: {
24765
25397
  Args: never;
24766
25398
  Returns: number;
@@ -24801,18 +25433,36 @@ export type Database = {
24801
25433
  Args: never;
24802
25434
  Returns: Json;
24803
25435
  };
25436
+ logistics_refresh_pick_queue_status: {
25437
+ Args: {
25438
+ p_ref: string;
25439
+ };
25440
+ Returns: number;
25441
+ };
24804
25442
  logistics_refresh_pickup_moments: {
24805
25443
  Args: {
24806
25444
  p_weeks?: number;
24807
25445
  };
24808
25446
  Returns: Json;
24809
25447
  };
25448
+ logistics_refresh_plan_state: {
25449
+ Args: {
25450
+ p_limit?: number;
25451
+ };
25452
+ Returns: Json;
25453
+ };
24810
25454
  logistics_replan_all: {
24811
25455
  Args: {
24812
25456
  p_reason?: string;
24813
25457
  };
24814
25458
  Returns: Json;
24815
25459
  };
25460
+ logistics_replan_all_force: {
25461
+ Args: {
25462
+ p_reason?: string;
25463
+ };
25464
+ Returns: Json;
25465
+ };
24816
25466
  logistics_report_delay: {
24817
25467
  Args: {
24818
25468
  p_expected_date?: string;
@@ -24969,6 +25619,74 @@ export type Database = {
24969
25619
  };
24970
25620
  Returns: Json;
24971
25621
  };
25622
+ logistics_shipping_note_job_for_slip: {
25623
+ Args: {
25624
+ _slip_job_id: string;
25625
+ };
25626
+ Returns: string;
25627
+ };
25628
+ logistics_shipping_notes_wake_all: {
25629
+ Args: never;
25630
+ Returns: Json;
25631
+ };
25632
+ logistics_slip_is_floriday: {
25633
+ Args: {
25634
+ _slip_job_id: string;
25635
+ };
25636
+ Returns: boolean;
25637
+ };
25638
+ logistics_slip_note_claim: {
25639
+ Args: {
25640
+ _lease_seconds?: number;
25641
+ _limit?: number;
25642
+ };
25643
+ Returns: {
25644
+ attempts: number;
25645
+ batch_key: string | null;
25646
+ cart_id: string | null;
25647
+ created_at: string;
25648
+ error: string | null;
25649
+ error_code: string | null;
25650
+ fulfillment_order_id: string | null;
25651
+ id: string;
25652
+ locked_until: string | null;
25653
+ next_attempt_at: string | null;
25654
+ order_id: string | null;
25655
+ order_number: string | null;
25656
+ print_job_id: string | null;
25657
+ printer_id: string | null;
25658
+ retry_class: string | null;
25659
+ slip_job_id: string;
25660
+ status: string;
25661
+ updated_at: string;
25662
+ }[];
25663
+ SetofOptions: {
25664
+ from: "*";
25665
+ to: "logistics_slip_shipping_note";
25666
+ isOneToOne: false;
25667
+ isSetofReturn: true;
25668
+ };
25669
+ };
25670
+ logistics_slip_note_finish: {
25671
+ Args: {
25672
+ _error?: string;
25673
+ _error_code?: string;
25674
+ _fulfillment_order_id?: string;
25675
+ _id: string;
25676
+ _ok: boolean;
25677
+ _print_job_id?: string;
25678
+ _status?: string;
25679
+ };
25680
+ Returns: undefined;
25681
+ };
25682
+ logistics_slip_note_keep_waiting: {
25683
+ Args: {
25684
+ _class?: string;
25685
+ _id: string;
25686
+ _reason: string;
25687
+ };
25688
+ Returns: undefined;
25689
+ };
24972
25690
  logistics_sticker_follows_slip: {
24973
25691
  Args: never;
24974
25692
  Returns: boolean;
@@ -25023,6 +25741,40 @@ export type Database = {
25023
25741
  name: string;
25024
25742
  }[];
25025
25743
  };
25744
+ logistics_trace: {
25745
+ Args: {
25746
+ p: Json;
25747
+ };
25748
+ Returns: string;
25749
+ };
25750
+ logistics_trace_batch: {
25751
+ Args: {
25752
+ p: Json;
25753
+ };
25754
+ Returns: number;
25755
+ };
25756
+ logistics_trace_orders: {
25757
+ Args: {
25758
+ p_limit?: number;
25759
+ p_search?: string;
25760
+ p_since?: string;
25761
+ p_status?: string;
25762
+ };
25763
+ Returns: Json;
25764
+ };
25765
+ logistics_trace_redact: {
25766
+ Args: {
25767
+ p: Json;
25768
+ };
25769
+ Returns: Json;
25770
+ };
25771
+ logistics_trace_timeline: {
25772
+ Args: {
25773
+ p_limit?: number;
25774
+ p_order_ref: string;
25775
+ };
25776
+ Returns: Json;
25777
+ };
25026
25778
  logistics_upsert_task: {
25027
25779
  Args: {
25028
25780
  p_buffer_ref: string;
@@ -26064,6 +26816,10 @@ export type Database = {
26064
26816
  };
26065
26817
  Returns: undefined;
26066
26818
  };
26819
+ prune_floriday_api_log: {
26820
+ Args: never;
26821
+ Returns: number;
26822
+ };
26067
26823
  quote_create_from_source: {
26068
26824
  Args: {
26069
26825
  _payload?: Json;
@@ -26497,6 +27253,13 @@ export type Database = {
26497
27253
  };
26498
27254
  Returns: number;
26499
27255
  };
27256
+ schedule_floriday_catalog_prices_sync: {
27257
+ Args: {
27258
+ p_apikey: string;
27259
+ p_url: string;
27260
+ };
27261
+ Returns: number;
27262
+ };
26500
27263
  schedule_floriday_clock_presales_sync: {
26501
27264
  Args: {
26502
27265
  p_apikey: string;
@@ -26797,6 +27560,10 @@ export type Database = {
26797
27560
  };
26798
27561
  Returns: undefined;
26799
27562
  };
27563
+ sync_floriday_prices_into_price_groups: {
27564
+ Args: never;
27565
+ Returns: number;
27566
+ };
26800
27567
  sync_layer_stock: {
26801
27568
  Args: {
26802
27569
  p_product_id: string;
@@ -26929,6 +27696,10 @@ export type Database = {
26929
27696
  Args: never;
26930
27697
  Returns: string;
26931
27698
  };
27699
+ voorraad_cleanup_old_rows: {
27700
+ Args: never;
27701
+ Returns: Json;
27702
+ };
26932
27703
  wake_print_queue: {
26933
27704
  Args: {
26934
27705
  _min_interval_ms?: number;