@flowselections/ai-authenticatie 1.0.13 → 1.0.15

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 (53) hide show
  1. package/dist-lib/components/AiAuthenticatiePage.js +12 -12
  2. package/dist-lib/components/AiModuleDetailPage.js +8 -8
  3. package/dist-lib/components/AiModuleTestPanel.js +2 -2
  4. package/dist-lib/components/AiPeriodFilter.d.ts +1 -1
  5. package/dist-lib/components/AiPeriodFilter.js +1 -1
  6. package/dist-lib/components/ModuleAgentsDialog.d.ts +2 -2
  7. package/dist-lib/components/ModuleAgentsDialog.js +1 -1
  8. package/dist-lib/components/ProviderManageDialog.d.ts +1 -1
  9. package/dist-lib/components/ProviderManageDialog.js +6 -6
  10. package/dist-lib/components/settings/AiAuthenticatieSettingsCard.js +1 -1
  11. package/dist-lib/hooks/useAiCostOverview.d.ts +1 -1
  12. package/dist-lib/hooks/useAiCostOverview.js +1 -1
  13. package/dist-lib/hooks/useAiForGoal.d.ts +2 -2
  14. package/dist-lib/hooks/useAiForGoal.js +2 -2
  15. package/dist-lib/hooks/useAiForModule.d.ts +1 -1
  16. package/dist-lib/hooks/useAiForModule.js +1 -1
  17. package/dist-lib/hooks/useAiModules.d.ts +1 -1
  18. package/dist-lib/hooks/useAiModules.js +1 -1
  19. package/dist-lib/hooks/useAiPricing.d.ts +1 -1
  20. package/dist-lib/hooks/useAiPricing.js +1 -1
  21. package/dist-lib/hooks/useAiUsage.d.ts +1 -1
  22. package/dist-lib/hooks/useAiUsage.js +1 -1
  23. package/dist-lib/hooks/useAiUsageByModule.d.ts +1 -1
  24. package/dist-lib/hooks/useAiUsageByModule.js +1 -1
  25. package/dist-lib/hooks/useModules.d.ts +1 -1
  26. package/dist-lib/hooks/useModules.js +1 -1
  27. package/dist-lib/index.d.ts +25 -25
  28. package/dist-lib/index.js +18 -18
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1 -1
  30. package/dist-lib/integrations/supabase/client.server.d.ts +1 -1
  31. package/dist-lib/integrations/supabase/types.d.ts +1892 -0
  32. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  33. package/dist-lib/lib/aiChat.functions.d.ts +4 -4
  34. package/dist-lib/lib/aiChat.functions.js +3 -3
  35. package/dist-lib/lib/aiChat.server.d.ts +1 -1
  36. package/dist-lib/lib/aiChat.server.js +1 -1
  37. package/dist-lib/lib/aiChat.stream.d.ts +1 -1
  38. package/dist-lib/lib/aiChat.stream.server.d.ts +1 -1
  39. package/dist-lib/lib/aiChat.stream.server.js +2 -2
  40. package/dist-lib/lib/aiCredentialTest.functions.d.ts +2 -2
  41. package/dist-lib/lib/aiCredentialTest.functions.js +1 -1
  42. package/dist-lib/lib/aiModules.functions.d.ts +7 -7
  43. package/dist-lib/lib/aiModules.functions.js +2 -2
  44. package/dist-lib/lib/aiPricing.functions.d.ts +3 -3
  45. package/dist-lib/lib/aiPricing.functions.js +2 -2
  46. package/dist-lib/lib/aiUsage.functions.d.ts +2 -2
  47. package/dist-lib/lib/aiUsage.functions.js +1 -1
  48. package/dist-lib/lib/aiUsage.server.d.ts +1 -1
  49. package/dist-lib/lib/aiUsageByModule.functions.d.ts +2 -2
  50. package/dist-lib/lib/aiUsageByModule.functions.js +1 -1
  51. package/dist-lib/lib/modules.functions.d.ts +4 -4
  52. package/dist-lib/lib/modules.functions.js +2 -2
  53. package/package.json +2 -2
@@ -1231,38 +1231,62 @@ export type Database = {
1231
1231
  Row: {
1232
1232
  carrier_id: string;
1233
1233
  cart_count: number;
1234
+ cart_ids: string[] | null;
1234
1235
  created_at: string;
1236
+ fingerprint: string | null;
1235
1237
  id: string;
1238
+ kind: string;
1236
1239
  order_count: number;
1240
+ order_ids: string[] | null;
1237
1241
  outbox_id: string | null;
1238
1242
  pickup_date: string;
1239
1243
  pickup_moment_key: string;
1244
+ previous_cart_count: number | null;
1245
+ recipient: string | null;
1240
1246
  sent_at: string;
1241
1247
  signup_deadline: string;
1248
+ source: string;
1249
+ version: number;
1242
1250
  };
1243
1251
  Insert: {
1244
1252
  carrier_id: string;
1245
1253
  cart_count?: number;
1254
+ cart_ids?: string[] | null;
1246
1255
  created_at?: string;
1256
+ fingerprint?: string | null;
1247
1257
  id?: string;
1258
+ kind?: string;
1248
1259
  order_count?: number;
1260
+ order_ids?: string[] | null;
1249
1261
  outbox_id?: string | null;
1250
1262
  pickup_date: string;
1251
1263
  pickup_moment_key: string;
1264
+ previous_cart_count?: number | null;
1265
+ recipient?: string | null;
1252
1266
  sent_at?: string;
1253
1267
  signup_deadline: string;
1268
+ source?: string;
1269
+ version?: number;
1254
1270
  };
1255
1271
  Update: {
1256
1272
  carrier_id?: string;
1257
1273
  cart_count?: number;
1274
+ cart_ids?: string[] | null;
1258
1275
  created_at?: string;
1276
+ fingerprint?: string | null;
1259
1277
  id?: string;
1278
+ kind?: string;
1260
1279
  order_count?: number;
1280
+ order_ids?: string[] | null;
1261
1281
  outbox_id?: string | null;
1262
1282
  pickup_date?: string;
1263
1283
  pickup_moment_key?: string;
1284
+ previous_cart_count?: number | null;
1285
+ recipient?: string | null;
1264
1286
  sent_at?: string;
1265
1287
  signup_deadline?: string;
1288
+ source?: string;
1289
+ version?: number;
1266
1290
  };
1267
1291
  Relationships: [
1268
1292
  {
@@ -2211,6 +2235,50 @@ export type Database = {
2211
2235
  }
2212
2236
  ];
2213
2237
  };
2238
+ customer_match_suggestions: {
2239
+ Row: {
2240
+ created_at: string;
2241
+ customer_id: string;
2242
+ decided_at: string | null;
2243
+ decided_by: string | null;
2244
+ floriday_organization_id: string;
2245
+ id: string;
2246
+ reason: string;
2247
+ status: string;
2248
+ updated_at: string;
2249
+ };
2250
+ Insert: {
2251
+ created_at?: string;
2252
+ customer_id: string;
2253
+ decided_at?: string | null;
2254
+ decided_by?: string | null;
2255
+ floriday_organization_id: string;
2256
+ id?: string;
2257
+ reason: string;
2258
+ status?: string;
2259
+ updated_at?: string;
2260
+ };
2261
+ Update: {
2262
+ created_at?: string;
2263
+ customer_id?: string;
2264
+ decided_at?: string | null;
2265
+ decided_by?: string | null;
2266
+ floriday_organization_id?: string;
2267
+ id?: string;
2268
+ reason?: string;
2269
+ status?: string;
2270
+ updated_at?: string;
2271
+ };
2272
+ Relationships: [
2273
+ {
2274
+ foreignKeyName: "customer_match_suggestions_customer_id_fkey";
2275
+ columns: ["customer_id"];
2276
+ isOneToOne: false;
2277
+ referencedRelation: "customers";
2278
+ referencedColumns: ["id"];
2279
+ }
2280
+ ];
2281
+ };
2214
2282
  customer_notes: {
2215
2283
  Row: {
2216
2284
  created_at: string;
@@ -3746,6 +3814,8 @@ export type Database = {
3746
3814
  orientatie: Database["public"]["Enums"]["doc_orientation"];
3747
3815
  page_settings: Json;
3748
3816
  papierformaat: string;
3817
+ standaard_sleutel: string | null;
3818
+ standaard_versie: number | null;
3749
3819
  systeem: boolean;
3750
3820
  thumbnail_url: string | null;
3751
3821
  updated_at: string;
@@ -3771,6 +3841,8 @@ export type Database = {
3771
3841
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3772
3842
  page_settings?: Json;
3773
3843
  papierformaat?: string;
3844
+ standaard_sleutel?: string | null;
3845
+ standaard_versie?: number | null;
3774
3846
  systeem?: boolean;
3775
3847
  thumbnail_url?: string | null;
3776
3848
  updated_at?: string;
@@ -3796,6 +3868,8 @@ export type Database = {
3796
3868
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3797
3869
  page_settings?: Json;
3798
3870
  papierformaat?: string;
3871
+ standaard_sleutel?: string | null;
3872
+ standaard_versie?: number | null;
3799
3873
  systeem?: boolean;
3800
3874
  thumbnail_url?: string | null;
3801
3875
  updated_at?: string;
@@ -5955,33 +6029,42 @@ export type Database = {
5955
6029
  };
5956
6030
  floricode_sync_state: {
5957
6031
  Row: {
6032
+ completed_at: string | null;
5958
6033
  cursor_skip: number;
5959
6034
  error_message: string | null;
5960
6035
  last_change_date_time: string | null;
5961
6036
  last_sequence_number: number;
5962
6037
  last_sync_at: string | null;
6038
+ pending_change_date_time: string | null;
5963
6039
  resource: string;
5964
6040
  status: string;
6041
+ total_count: number | null;
5965
6042
  updated_at: string;
5966
6043
  };
5967
6044
  Insert: {
6045
+ completed_at?: string | null;
5968
6046
  cursor_skip?: number;
5969
6047
  error_message?: string | null;
5970
6048
  last_change_date_time?: string | null;
5971
6049
  last_sequence_number?: number;
5972
6050
  last_sync_at?: string | null;
6051
+ pending_change_date_time?: string | null;
5973
6052
  resource: string;
5974
6053
  status?: string;
6054
+ total_count?: number | null;
5975
6055
  updated_at?: string;
5976
6056
  };
5977
6057
  Update: {
6058
+ completed_at?: string | null;
5978
6059
  cursor_skip?: number;
5979
6060
  error_message?: string | null;
5980
6061
  last_change_date_time?: string | null;
5981
6062
  last_sequence_number?: number;
5982
6063
  last_sync_at?: string | null;
6064
+ pending_change_date_time?: string | null;
5983
6065
  resource?: string;
5984
6066
  status?: string;
6067
+ total_count?: number | null;
5985
6068
  updated_at?: string;
5986
6069
  };
5987
6070
  Relationships: [];
@@ -6733,9 +6816,16 @@ export type Database = {
6733
6816
  id: string;
6734
6817
  is_active: boolean;
6735
6818
  label: string;
6819
+ organization_fetched_at: string | null;
6820
+ organization_id: string | null;
6821
+ organization_mailing_address: Json | null;
6736
6822
  organization_name: string | null;
6823
+ organization_physical_address: Json | null;
6737
6824
  preferred_warehouse_id: string | null;
6738
6825
  preferred_warehouse_name: string | null;
6826
+ read_only: boolean;
6827
+ read_only_changed_at: string | null;
6828
+ read_only_changed_by: string | null;
6739
6829
  token_expires_at: string | null;
6740
6830
  updated_at: string;
6741
6831
  };
@@ -6748,9 +6838,16 @@ export type Database = {
6748
6838
  id?: string;
6749
6839
  is_active?: boolean;
6750
6840
  label?: string;
6841
+ organization_fetched_at?: string | null;
6842
+ organization_id?: string | null;
6843
+ organization_mailing_address?: Json | null;
6751
6844
  organization_name?: string | null;
6845
+ organization_physical_address?: Json | null;
6752
6846
  preferred_warehouse_id?: string | null;
6753
6847
  preferred_warehouse_name?: string | null;
6848
+ read_only?: boolean;
6849
+ read_only_changed_at?: string | null;
6850
+ read_only_changed_by?: string | null;
6754
6851
  token_expires_at?: string | null;
6755
6852
  updated_at?: string;
6756
6853
  };
@@ -6763,9 +6860,16 @@ export type Database = {
6763
6860
  id?: string;
6764
6861
  is_active?: boolean;
6765
6862
  label?: string;
6863
+ organization_fetched_at?: string | null;
6864
+ organization_id?: string | null;
6865
+ organization_mailing_address?: Json | null;
6766
6866
  organization_name?: string | null;
6867
+ organization_physical_address?: Json | null;
6767
6868
  preferred_warehouse_id?: string | null;
6768
6869
  preferred_warehouse_name?: string | null;
6870
+ read_only?: boolean;
6871
+ read_only_changed_at?: string | null;
6872
+ read_only_changed_by?: string | null;
6769
6873
  token_expires_at?: string | null;
6770
6874
  updated_at?: string;
6771
6875
  };
@@ -7023,6 +7127,44 @@ export type Database = {
7023
7127
  }
7024
7128
  ];
7025
7129
  };
7130
+ floriday_customer_offers_cache: {
7131
+ Row: {
7132
+ connection_id: string;
7133
+ data: Json;
7134
+ fetched_at: string;
7135
+ floriday_id: string;
7136
+ is_deleted: boolean;
7137
+ sequence_number: number;
7138
+ updated_at: string;
7139
+ };
7140
+ Insert: {
7141
+ connection_id: string;
7142
+ data?: Json;
7143
+ fetched_at?: string;
7144
+ floriday_id: string;
7145
+ is_deleted?: boolean;
7146
+ sequence_number?: number;
7147
+ updated_at?: string;
7148
+ };
7149
+ Update: {
7150
+ connection_id?: string;
7151
+ data?: Json;
7152
+ fetched_at?: string;
7153
+ floriday_id?: string;
7154
+ is_deleted?: boolean;
7155
+ sequence_number?: number;
7156
+ updated_at?: string;
7157
+ };
7158
+ Relationships: [
7159
+ {
7160
+ foreignKeyName: "floriday_customer_offers_cache_connection_id_fkey";
7161
+ columns: ["connection_id"];
7162
+ isOneToOne: false;
7163
+ referencedRelation: "floriday_connections";
7164
+ referencedColumns: ["id"];
7165
+ }
7166
+ ];
7167
+ };
7026
7168
  floriday_customer_sticker_pdfs_cache: {
7027
7169
  Row: {
7028
7170
  byte_size: number | null;
@@ -7129,7 +7271,11 @@ export type Database = {
7129
7271
  quantity: number | null;
7130
7272
  sales_order_id: string | null;
7131
7273
  sequence_number: number;
7274
+ should_be_printed: boolean | null;
7132
7275
  status: string | null;
7276
+ sticker_height_mm: number | null;
7277
+ sticker_type: string | null;
7278
+ sticker_width_mm: number | null;
7133
7279
  trade_item_id: string | null;
7134
7280
  updated_at: string;
7135
7281
  };
@@ -7144,7 +7290,11 @@ export type Database = {
7144
7290
  quantity?: number | null;
7145
7291
  sales_order_id?: string | null;
7146
7292
  sequence_number?: number;
7293
+ should_be_printed?: boolean | null;
7147
7294
  status?: string | null;
7295
+ sticker_height_mm?: number | null;
7296
+ sticker_type?: string | null;
7297
+ sticker_width_mm?: number | null;
7148
7298
  trade_item_id?: string | null;
7149
7299
  updated_at?: string;
7150
7300
  };
@@ -7159,7 +7309,11 @@ export type Database = {
7159
7309
  quantity?: number | null;
7160
7310
  sales_order_id?: string | null;
7161
7311
  sequence_number?: number;
7312
+ should_be_printed?: boolean | null;
7162
7313
  status?: string | null;
7314
+ sticker_height_mm?: number | null;
7315
+ sticker_type?: string | null;
7316
+ sticker_width_mm?: number | null;
7163
7317
  trade_item_id?: string | null;
7164
7318
  updated_at?: string;
7165
7319
  };
@@ -7568,8 +7722,14 @@ export type Database = {
7568
7722
  created_at: string;
7569
7723
  desired_availability: boolean;
7570
7724
  desired_quantity: number;
7725
+ erp_leading: boolean | null;
7726
+ erp_leading_at: string | null;
7727
+ first_positive_published_at: string | null;
7571
7728
  fixed_quantity: number | null;
7729
+ floriday_offer_forms: Json | null;
7572
7730
  floriday_trade_item_id: string | null;
7731
+ follow_floriday_at: string | null;
7732
+ follow_floriday_result: string | null;
7573
7733
  id: string;
7574
7734
  last_confirmed_at: string | null;
7575
7735
  last_enqueued_at: string | null;
@@ -7600,8 +7760,14 @@ export type Database = {
7600
7760
  created_at?: string;
7601
7761
  desired_availability?: boolean;
7602
7762
  desired_quantity?: number;
7763
+ erp_leading?: boolean | null;
7764
+ erp_leading_at?: string | null;
7765
+ first_positive_published_at?: string | null;
7603
7766
  fixed_quantity?: number | null;
7767
+ floriday_offer_forms?: Json | null;
7604
7768
  floriday_trade_item_id?: string | null;
7769
+ follow_floriday_at?: string | null;
7770
+ follow_floriday_result?: string | null;
7605
7771
  id?: string;
7606
7772
  last_confirmed_at?: string | null;
7607
7773
  last_enqueued_at?: string | null;
@@ -7632,8 +7798,14 @@ export type Database = {
7632
7798
  created_at?: string;
7633
7799
  desired_availability?: boolean;
7634
7800
  desired_quantity?: number;
7801
+ erp_leading?: boolean | null;
7802
+ erp_leading_at?: string | null;
7803
+ first_positive_published_at?: string | null;
7635
7804
  fixed_quantity?: number | null;
7805
+ floriday_offer_forms?: Json | null;
7636
7806
  floriday_trade_item_id?: string | null;
7807
+ follow_floriday_at?: string | null;
7808
+ follow_floriday_result?: string | null;
7637
7809
  id?: string;
7638
7810
  last_confirmed_at?: string | null;
7639
7811
  last_enqueued_at?: string | null;
@@ -8451,30 +8623,45 @@ export type Database = {
8451
8623
  };
8452
8624
  floriday_sync_state: {
8453
8625
  Row: {
8626
+ backfill_done_at: string | null;
8627
+ backfill_started_at: string | null;
8628
+ backfill_target_sequence: number | null;
8454
8629
  connection_id: string;
8455
8630
  entity_type: string;
8456
8631
  last_error: string | null;
8457
8632
  last_items_processed: number | null;
8633
+ last_max_sequence_seen: number | null;
8634
+ last_rate_limited_at: string | null;
8458
8635
  last_sequence_number: number;
8459
8636
  last_success_at: string | null;
8460
8637
  last_synced_at: string | null;
8461
8638
  updated_at: string;
8462
8639
  };
8463
8640
  Insert: {
8641
+ backfill_done_at?: string | null;
8642
+ backfill_started_at?: string | null;
8643
+ backfill_target_sequence?: number | null;
8464
8644
  connection_id: string;
8465
8645
  entity_type: string;
8466
8646
  last_error?: string | null;
8467
8647
  last_items_processed?: number | null;
8648
+ last_max_sequence_seen?: number | null;
8649
+ last_rate_limited_at?: string | null;
8468
8650
  last_sequence_number?: number;
8469
8651
  last_success_at?: string | null;
8470
8652
  last_synced_at?: string | null;
8471
8653
  updated_at?: string;
8472
8654
  };
8473
8655
  Update: {
8656
+ backfill_done_at?: string | null;
8657
+ backfill_started_at?: string | null;
8658
+ backfill_target_sequence?: number | null;
8474
8659
  connection_id?: string;
8475
8660
  entity_type?: string;
8476
8661
  last_error?: string | null;
8477
8662
  last_items_processed?: number | null;
8663
+ last_max_sequence_seen?: number | null;
8664
+ last_rate_limited_at?: string | null;
8478
8665
  last_sequence_number?: number;
8479
8666
  last_success_at?: string | null;
8480
8667
  last_synced_at?: string | null;
@@ -8490,6 +8677,116 @@ export type Database = {
8490
8677
  }
8491
8678
  ];
8492
8679
  };
8680
+ floriday_takeover_items: {
8681
+ Row: {
8682
+ created_at: string;
8683
+ created_product: boolean;
8684
+ id: string;
8685
+ new_price: number | null;
8686
+ new_stock: number | null;
8687
+ offer_forms: Json | null;
8688
+ old_erp_leading: boolean | null;
8689
+ old_offer_forms: Json | null;
8690
+ old_price: number | null;
8691
+ old_stock: number | null;
8692
+ price_source: string | null;
8693
+ product_id: string;
8694
+ run_id: string;
8695
+ stock_source: string | null;
8696
+ trade_item_id: string;
8697
+ undo_skipped_reason: string | null;
8698
+ undone: boolean;
8699
+ };
8700
+ Insert: {
8701
+ created_at?: string;
8702
+ created_product?: boolean;
8703
+ id?: string;
8704
+ new_price?: number | null;
8705
+ new_stock?: number | null;
8706
+ offer_forms?: Json | null;
8707
+ old_erp_leading?: boolean | null;
8708
+ old_offer_forms?: Json | null;
8709
+ old_price?: number | null;
8710
+ old_stock?: number | null;
8711
+ price_source?: string | null;
8712
+ product_id: string;
8713
+ run_id: string;
8714
+ stock_source?: string | null;
8715
+ trade_item_id: string;
8716
+ undo_skipped_reason?: string | null;
8717
+ undone?: boolean;
8718
+ };
8719
+ Update: {
8720
+ created_at?: string;
8721
+ created_product?: boolean;
8722
+ id?: string;
8723
+ new_price?: number | null;
8724
+ new_stock?: number | null;
8725
+ offer_forms?: Json | null;
8726
+ old_erp_leading?: boolean | null;
8727
+ old_offer_forms?: Json | null;
8728
+ old_price?: number | null;
8729
+ old_stock?: number | null;
8730
+ price_source?: string | null;
8731
+ product_id?: string;
8732
+ run_id?: string;
8733
+ stock_source?: string | null;
8734
+ trade_item_id?: string;
8735
+ undo_skipped_reason?: string | null;
8736
+ undone?: boolean;
8737
+ };
8738
+ Relationships: [
8739
+ {
8740
+ foreignKeyName: "floriday_takeover_items_run_id_fkey";
8741
+ columns: ["run_id"];
8742
+ isOneToOne: false;
8743
+ referencedRelation: "floriday_takeover_runs";
8744
+ referencedColumns: ["id"];
8745
+ }
8746
+ ];
8747
+ };
8748
+ floriday_takeover_runs: {
8749
+ Row: {
8750
+ connection_id: string;
8751
+ created_at: string;
8752
+ created_products: number;
8753
+ id: string;
8754
+ status: string;
8755
+ total_items: number;
8756
+ undo_skipped_items: number;
8757
+ undone_at: string | null;
8758
+ undone_items: number;
8759
+ updated_at: string;
8760
+ user_id: string;
8761
+ };
8762
+ Insert: {
8763
+ connection_id: string;
8764
+ created_at?: string;
8765
+ created_products?: number;
8766
+ id?: string;
8767
+ status?: string;
8768
+ total_items?: number;
8769
+ undo_skipped_items?: number;
8770
+ undone_at?: string | null;
8771
+ undone_items?: number;
8772
+ updated_at?: string;
8773
+ user_id: string;
8774
+ };
8775
+ Update: {
8776
+ connection_id?: string;
8777
+ created_at?: string;
8778
+ created_products?: number;
8779
+ id?: string;
8780
+ status?: string;
8781
+ total_items?: number;
8782
+ undo_skipped_items?: number;
8783
+ undone_at?: string | null;
8784
+ undone_items?: number;
8785
+ updated_at?: string;
8786
+ user_id?: string;
8787
+ };
8788
+ Relationships: [];
8789
+ };
8493
8790
  floriday_token_refresh_log: {
8494
8791
  Row: {
8495
8792
  attempted_at: string;
@@ -11135,6 +11432,36 @@ export type Database = {
11135
11432
  };
11136
11433
  Relationships: [];
11137
11434
  };
11435
+ layout_auto_acties: {
11436
+ Row: {
11437
+ actie: string;
11438
+ created_at: string;
11439
+ detail: string;
11440
+ documenttype: string | null;
11441
+ id: string;
11442
+ layout_id: string | null;
11443
+ printer_id: string | null;
11444
+ };
11445
+ Insert: {
11446
+ actie: string;
11447
+ created_at?: string;
11448
+ detail?: string;
11449
+ documenttype?: string | null;
11450
+ id?: string;
11451
+ layout_id?: string | null;
11452
+ printer_id?: string | null;
11453
+ };
11454
+ Update: {
11455
+ actie?: string;
11456
+ created_at?: string;
11457
+ detail?: string;
11458
+ documenttype?: string | null;
11459
+ id?: string;
11460
+ layout_id?: string | null;
11461
+ printer_id?: string | null;
11462
+ };
11463
+ Relationships: [];
11464
+ };
11138
11465
  layout_logos: {
11139
11466
  Row: {
11140
11467
  bestand_url: string;
@@ -11150,6 +11477,7 @@ export type Database = {
11150
11477
  is_standaard: boolean;
11151
11478
  naam: string;
11152
11479
  omschrijving: string;
11480
+ origineel_pad: string | null;
11153
11481
  transparant: boolean;
11154
11482
  updated_at: string;
11155
11483
  };
@@ -11167,6 +11495,7 @@ export type Database = {
11167
11495
  is_standaard?: boolean;
11168
11496
  naam: string;
11169
11497
  omschrijving?: string;
11498
+ origineel_pad?: string | null;
11170
11499
  transparant?: boolean;
11171
11500
  updated_at?: string;
11172
11501
  };
@@ -11184,11 +11513,57 @@ export type Database = {
11184
11513
  is_standaard?: boolean;
11185
11514
  naam?: string;
11186
11515
  omschrijving?: string;
11516
+ origineel_pad?: string | null;
11187
11517
  transparant?: boolean;
11188
11518
  updated_at?: string;
11189
11519
  };
11190
11520
  Relationships: [];
11191
11521
  };
11522
+ layout_standaarden: {
11523
+ Row: {
11524
+ breedte_mm: number;
11525
+ config: Json;
11526
+ created_at: string;
11527
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
11528
+ hoogte_mm: number;
11529
+ naam: string;
11530
+ omschrijving: string;
11531
+ page_settings: Json;
11532
+ papierformaat: string;
11533
+ sleutel: string;
11534
+ updated_at: string;
11535
+ versie: number;
11536
+ };
11537
+ Insert: {
11538
+ breedte_mm?: number;
11539
+ config?: Json;
11540
+ created_at?: string;
11541
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
11542
+ hoogte_mm?: number;
11543
+ naam: string;
11544
+ omschrijving?: string;
11545
+ page_settings?: Json;
11546
+ papierformaat?: string;
11547
+ sleutel: string;
11548
+ updated_at?: string;
11549
+ versie: number;
11550
+ };
11551
+ Update: {
11552
+ breedte_mm?: number;
11553
+ config?: Json;
11554
+ created_at?: string;
11555
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
11556
+ hoogte_mm?: number;
11557
+ naam?: string;
11558
+ omschrijving?: string;
11559
+ page_settings?: Json;
11560
+ papierformaat?: string;
11561
+ sleutel?: string;
11562
+ updated_at?: string;
11563
+ versie?: number;
11564
+ };
11565
+ Relationships: [];
11566
+ };
11192
11567
  leave_requests: {
11193
11568
  Row: {
11194
11569
  cancellation_requested_at: string | null;
@@ -11914,6 +12289,36 @@ export type Database = {
11914
12289
  };
11915
12290
  Relationships: [];
11916
12291
  };
12292
+ logistics_cart_archive_log: {
12293
+ Row: {
12294
+ action: string;
12295
+ actor: string | null;
12296
+ cart_id: string;
12297
+ created_at: string;
12298
+ id: string;
12299
+ reason: string | null;
12300
+ snapshot: Json | null;
12301
+ };
12302
+ Insert: {
12303
+ action: string;
12304
+ actor?: string | null;
12305
+ cart_id: string;
12306
+ created_at?: string;
12307
+ id?: string;
12308
+ reason?: string | null;
12309
+ snapshot?: Json | null;
12310
+ };
12311
+ Update: {
12312
+ action?: string;
12313
+ actor?: string | null;
12314
+ cart_id?: string;
12315
+ created_at?: string;
12316
+ id?: string;
12317
+ reason?: string | null;
12318
+ snapshot?: Json | null;
12319
+ };
12320
+ Relationships: [];
12321
+ };
11917
12322
  logistics_cart_barcode: {
11918
12323
  Row: {
11919
12324
  barcode: string;
@@ -12212,6 +12617,33 @@ export type Database = {
12212
12617
  }
12213
12618
  ];
12214
12619
  };
12620
+ logistics_departure_check: {
12621
+ Row: {
12622
+ after: Json | null;
12623
+ before: Json | null;
12624
+ check_run: string;
12625
+ created_at: string;
12626
+ id: number;
12627
+ order_id: string;
12628
+ };
12629
+ Insert: {
12630
+ after?: Json | null;
12631
+ before?: Json | null;
12632
+ check_run: string;
12633
+ created_at?: string;
12634
+ id?: never;
12635
+ order_id: string;
12636
+ };
12637
+ Update: {
12638
+ after?: Json | null;
12639
+ before?: Json | null;
12640
+ check_run?: string;
12641
+ created_at?: string;
12642
+ id?: never;
12643
+ order_id?: string;
12644
+ };
12645
+ Relationships: [];
12646
+ };
12215
12647
  logistics_document_prints: {
12216
12648
  Row: {
12217
12649
  created_at: string;
@@ -12322,6 +12754,39 @@ export type Database = {
12322
12754
  };
12323
12755
  Relationships: [];
12324
12756
  };
12757
+ logistics_external_fulfillment: {
12758
+ Row: {
12759
+ applied_at: string;
12760
+ created_at: string;
12761
+ event_id: string | null;
12762
+ full_fulfilled: boolean;
12763
+ order_id: string;
12764
+ reason: string;
12765
+ sales_order_ids: string[];
12766
+ updated_at: string;
12767
+ };
12768
+ Insert: {
12769
+ applied_at?: string;
12770
+ created_at?: string;
12771
+ event_id?: string | null;
12772
+ full_fulfilled?: boolean;
12773
+ order_id: string;
12774
+ reason?: string;
12775
+ sales_order_ids?: string[];
12776
+ updated_at?: string;
12777
+ };
12778
+ Update: {
12779
+ applied_at?: string;
12780
+ created_at?: string;
12781
+ event_id?: string | null;
12782
+ full_fulfilled?: boolean;
12783
+ order_id?: string;
12784
+ reason?: string;
12785
+ sales_order_ids?: string[];
12786
+ updated_at?: string;
12787
+ };
12788
+ Relationships: [];
12789
+ };
12325
12790
  logistics_floriday_carrier_map: {
12326
12791
  Row: {
12327
12792
  carrier_code: string;
@@ -12615,6 +13080,27 @@ export type Database = {
12615
13080
  };
12616
13081
  Relationships: [];
12617
13082
  };
13083
+ logistics_order_change_fp: {
13084
+ Row: {
13085
+ fp: string | null;
13086
+ frozen_fp: string | null;
13087
+ order_id: string;
13088
+ updated_at: string;
13089
+ };
13090
+ Insert: {
13091
+ fp?: string | null;
13092
+ frozen_fp?: string | null;
13093
+ order_id: string;
13094
+ updated_at?: string;
13095
+ };
13096
+ Update: {
13097
+ fp?: string | null;
13098
+ frozen_fp?: string | null;
13099
+ order_id?: string;
13100
+ updated_at?: string;
13101
+ };
13102
+ Relationships: [];
13103
+ };
12618
13104
  logistics_order_finalize_queue: {
12619
13105
  Row: {
12620
13106
  attempts: number;
@@ -13241,7 +13727,9 @@ export type Database = {
13241
13727
  id: boolean;
13242
13728
  last_checked: number;
13243
13729
  last_duration_ms: number;
13730
+ last_error: string | null;
13244
13731
  last_mode: string | null;
13732
+ last_report: Json | null;
13245
13733
  last_run_at: string | null;
13246
13734
  last_updated: number;
13247
13735
  last_would_change: number | null;
@@ -13254,7 +13742,9 @@ export type Database = {
13254
13742
  id?: boolean;
13255
13743
  last_checked?: number;
13256
13744
  last_duration_ms?: number;
13745
+ last_error?: string | null;
13257
13746
  last_mode?: string | null;
13747
+ last_report?: Json | null;
13258
13748
  last_run_at?: string | null;
13259
13749
  last_updated?: number;
13260
13750
  last_would_change?: number | null;
@@ -13267,7 +13757,9 @@ export type Database = {
13267
13757
  id?: boolean;
13268
13758
  last_checked?: number;
13269
13759
  last_duration_ms?: number;
13760
+ last_error?: string | null;
13270
13761
  last_mode?: string | null;
13762
+ last_report?: Json | null;
13271
13763
  last_run_at?: string | null;
13272
13764
  last_updated?: number;
13273
13765
  last_would_change?: number | null;
@@ -13688,6 +14180,8 @@ export type Database = {
13688
14180
  handled_at: string | null;
13689
14181
  handled_error: string | null;
13690
14182
  handled_next_at: string | null;
14183
+ herprint_reden: string | null;
14184
+ herprint_requested_at: string | null;
13691
14185
  hoogte_mm: number | null;
13692
14186
  id: string;
13693
14187
  kopieen: number;
@@ -13699,6 +14193,7 @@ export type Database = {
13699
14193
  reden: string | null;
13700
14194
  soort: string;
13701
14195
  status: string;
14196
+ sticker_type: string | null;
13702
14197
  updated_at: string;
13703
14198
  };
13704
14199
  Insert: {
@@ -13711,6 +14206,8 @@ export type Database = {
13711
14206
  handled_at?: string | null;
13712
14207
  handled_error?: string | null;
13713
14208
  handled_next_at?: string | null;
14209
+ herprint_reden?: string | null;
14210
+ herprint_requested_at?: string | null;
13714
14211
  hoogte_mm?: number | null;
13715
14212
  id?: string;
13716
14213
  kopieen?: number;
@@ -13722,6 +14219,7 @@ export type Database = {
13722
14219
  reden?: string | null;
13723
14220
  soort: string;
13724
14221
  status?: string;
14222
+ sticker_type?: string | null;
13725
14223
  updated_at?: string;
13726
14224
  };
13727
14225
  Update: {
@@ -13734,6 +14232,8 @@ export type Database = {
13734
14232
  handled_at?: string | null;
13735
14233
  handled_error?: string | null;
13736
14234
  handled_next_at?: string | null;
14235
+ herprint_reden?: string | null;
14236
+ herprint_requested_at?: string | null;
13737
14237
  hoogte_mm?: number | null;
13738
14238
  id?: string;
13739
14239
  kopieen?: number;
@@ -13745,6 +14245,7 @@ export type Database = {
13745
14245
  reden?: string | null;
13746
14246
  soort?: string;
13747
14247
  status?: string;
14248
+ sticker_type?: string | null;
13748
14249
  updated_at?: string;
13749
14250
  };
13750
14251
  Relationships: [];
@@ -14094,19 +14595,52 @@ export type Database = {
14094
14595
  };
14095
14596
  Relationships: [];
14096
14597
  };
14598
+ logistics_tick_runs: {
14599
+ Row: {
14600
+ duration_ms: number | null;
14601
+ finished_at: string | null;
14602
+ has_error: boolean;
14603
+ id: number;
14604
+ started_at: string;
14605
+ steps: Json;
14606
+ };
14607
+ Insert: {
14608
+ duration_ms?: number | null;
14609
+ finished_at?: string | null;
14610
+ has_error?: boolean;
14611
+ id?: never;
14612
+ started_at?: string;
14613
+ steps?: Json;
14614
+ };
14615
+ Update: {
14616
+ duration_ms?: number | null;
14617
+ finished_at?: string | null;
14618
+ has_error?: boolean;
14619
+ id?: never;
14620
+ started_at?: string;
14621
+ steps?: Json;
14622
+ };
14623
+ Relationships: [];
14624
+ };
14097
14625
  logistics_time_settings: {
14098
14626
  Row: {
14627
+ departure_rule_since: string | null;
14099
14628
  id: boolean;
14629
+ rule_160_since: string | null;
14100
14630
  timezone: string;
14101
14631
  updated_at: string;
14102
14632
  };
14103
14633
  Insert: {
14634
+ departure_rule_since?: string | null;
14104
14635
  id?: boolean;
14636
+ rule_160_since?: string | null;
14105
14637
  timezone: string;
14106
14638
  updated_at?: string;
14107
14639
  };
14108
14640
  Update: {
14641
+ departure_rule_since?: string | null;
14109
14642
  id?: boolean;
14643
+ rule_160_since?: string | null;
14110
14644
  timezone?: string;
14111
14645
  updated_at?: string;
14112
14646
  };
@@ -14415,6 +14949,45 @@ export type Database = {
14415
14949
  };
14416
14950
  Relationships: [];
14417
14951
  };
14952
+ mailbox_ai_runs: {
14953
+ Row: {
14954
+ error: string | null;
14955
+ finished_at: string | null;
14956
+ id: string;
14957
+ input_tokens: number | null;
14958
+ is_test: boolean;
14959
+ message_id: string | null;
14960
+ ok: boolean | null;
14961
+ output_tokens: number | null;
14962
+ started_at: string;
14963
+ trigger: string;
14964
+ };
14965
+ Insert: {
14966
+ error?: string | null;
14967
+ finished_at?: string | null;
14968
+ id?: string;
14969
+ input_tokens?: number | null;
14970
+ is_test?: boolean;
14971
+ message_id?: string | null;
14972
+ ok?: boolean | null;
14973
+ output_tokens?: number | null;
14974
+ started_at?: string;
14975
+ trigger?: string;
14976
+ };
14977
+ Update: {
14978
+ error?: string | null;
14979
+ finished_at?: string | null;
14980
+ id?: string;
14981
+ input_tokens?: number | null;
14982
+ is_test?: boolean;
14983
+ message_id?: string | null;
14984
+ ok?: boolean | null;
14985
+ output_tokens?: number | null;
14986
+ started_at?: string;
14987
+ trigger?: string;
14988
+ };
14989
+ Relationships: [];
14990
+ };
14418
14991
  mailbox_ai_settings: {
14419
14992
  Row: {
14420
14993
  active_goal_key: string | null;
@@ -14448,6 +15021,78 @@ export type Database = {
14448
15021
  };
14449
15022
  Relationships: [];
14450
15023
  };
15024
+ mailbox_filter_settings: {
15025
+ Row: {
15026
+ analyze_unknown_with_signals: boolean;
15027
+ conf_green: number;
15028
+ conf_orange: number;
15029
+ created_at: string;
15030
+ domain_match: boolean;
15031
+ duplicate_days: number;
15032
+ id: string;
15033
+ max_agent_reparse: number;
15034
+ max_ai_per_day: number;
15035
+ max_ai_per_month: number;
15036
+ max_candidates: number;
15037
+ max_retries_per_run: number;
15038
+ max_retry_attempts: number;
15039
+ min_signals_unknown: number;
15040
+ negative_keywords: string[];
15041
+ order_keywords: string[];
15042
+ order_patterns: string[];
15043
+ singleton: boolean;
15044
+ skip_domains: string[];
15045
+ skip_senders: string[];
15046
+ updated_at: string;
15047
+ };
15048
+ Insert: {
15049
+ analyze_unknown_with_signals?: boolean;
15050
+ conf_green?: number;
15051
+ conf_orange?: number;
15052
+ created_at?: string;
15053
+ domain_match?: boolean;
15054
+ duplicate_days?: number;
15055
+ id?: string;
15056
+ max_agent_reparse?: number;
15057
+ max_ai_per_day?: number;
15058
+ max_ai_per_month?: number;
15059
+ max_candidates?: number;
15060
+ max_retries_per_run?: number;
15061
+ max_retry_attempts?: number;
15062
+ min_signals_unknown?: number;
15063
+ negative_keywords?: string[];
15064
+ order_keywords?: string[];
15065
+ order_patterns?: string[];
15066
+ singleton?: boolean;
15067
+ skip_domains?: string[];
15068
+ skip_senders?: string[];
15069
+ updated_at?: string;
15070
+ };
15071
+ Update: {
15072
+ analyze_unknown_with_signals?: boolean;
15073
+ conf_green?: number;
15074
+ conf_orange?: number;
15075
+ created_at?: string;
15076
+ domain_match?: boolean;
15077
+ duplicate_days?: number;
15078
+ id?: string;
15079
+ max_agent_reparse?: number;
15080
+ max_ai_per_day?: number;
15081
+ max_ai_per_month?: number;
15082
+ max_candidates?: number;
15083
+ max_retries_per_run?: number;
15084
+ max_retry_attempts?: number;
15085
+ min_signals_unknown?: number;
15086
+ negative_keywords?: string[];
15087
+ order_keywords?: string[];
15088
+ order_patterns?: string[];
15089
+ singleton?: boolean;
15090
+ skip_domains?: string[];
15091
+ skip_senders?: string[];
15092
+ updated_at?: string;
15093
+ };
15094
+ Relationships: [];
15095
+ };
14451
15096
  mailbox_ingest_runs: {
14452
15097
  Row: {
14453
15098
  connection_id: string | null;
@@ -14486,6 +15131,10 @@ export type Database = {
14486
15131
  };
14487
15132
  mailbox_messages: {
14488
15133
  Row: {
15134
+ analysis_count: number;
15135
+ analysis_note: string | null;
15136
+ analysis_started_at: string | null;
15137
+ analysis_state: string | null;
14489
15138
  attachments: Json;
14490
15139
  body_html: string | null;
14491
15140
  body_text: string | null;
@@ -14494,6 +15143,8 @@ export type Database = {
14494
15143
  created_at: string;
14495
15144
  error_message: string | null;
14496
15145
  external_id: string | null;
15146
+ filter_outcome: string | null;
15147
+ filter_reason: string | null;
14497
15148
  from_email: string | null;
14498
15149
  from_name: string | null;
14499
15150
  has_attachments: boolean;
@@ -14510,6 +15161,10 @@ export type Database = {
14510
15161
  updated_at: string;
14511
15162
  };
14512
15163
  Insert: {
15164
+ analysis_count?: number;
15165
+ analysis_note?: string | null;
15166
+ analysis_started_at?: string | null;
15167
+ analysis_state?: string | null;
14513
15168
  attachments?: Json;
14514
15169
  body_html?: string | null;
14515
15170
  body_text?: string | null;
@@ -14518,6 +15173,8 @@ export type Database = {
14518
15173
  created_at?: string;
14519
15174
  error_message?: string | null;
14520
15175
  external_id?: string | null;
15176
+ filter_outcome?: string | null;
15177
+ filter_reason?: string | null;
14521
15178
  from_email?: string | null;
14522
15179
  from_name?: string | null;
14523
15180
  has_attachments?: boolean;
@@ -14534,6 +15191,10 @@ export type Database = {
14534
15191
  updated_at?: string;
14535
15192
  };
14536
15193
  Update: {
15194
+ analysis_count?: number;
15195
+ analysis_note?: string | null;
15196
+ analysis_started_at?: string | null;
15197
+ analysis_state?: string | null;
14537
15198
  attachments?: Json;
14538
15199
  body_html?: string | null;
14539
15200
  body_text?: string | null;
@@ -14542,6 +15203,8 @@ export type Database = {
14542
15203
  created_at?: string;
14543
15204
  error_message?: string | null;
14544
15205
  external_id?: string | null;
15206
+ filter_outcome?: string | null;
15207
+ filter_reason?: string | null;
14545
15208
  from_email?: string | null;
14546
15209
  from_name?: string | null;
14547
15210
  has_attachments?: boolean;
@@ -14588,6 +15251,7 @@ export type Database = {
14588
15251
  confidence: number | null;
14589
15252
  created_at: string;
14590
15253
  created_order_id: string | null;
15254
+ customer_reference: string | null;
14591
15255
  delivery_date: string | null;
14592
15256
  id: string;
14593
15257
  matched_customer_id: string | null;
@@ -14606,6 +15270,7 @@ export type Database = {
14606
15270
  confidence?: number | null;
14607
15271
  created_at?: string;
14608
15272
  created_order_id?: string | null;
15273
+ customer_reference?: string | null;
14609
15274
  delivery_date?: string | null;
14610
15275
  id?: string;
14611
15276
  matched_customer_id?: string | null;
@@ -14624,6 +15289,7 @@ export type Database = {
14624
15289
  confidence?: number | null;
14625
15290
  created_at?: string;
14626
15291
  created_order_id?: string | null;
15292
+ customer_reference?: string | null;
14627
15293
  delivery_date?: string | null;
14628
15294
  id?: string;
14629
15295
  matched_customer_id?: string | null;
@@ -14760,43 +15426,85 @@ export type Database = {
14760
15426
  };
14761
15427
  mailbox_proposal_lines: {
14762
15428
  Row: {
15429
+ belading: Json | null;
15430
+ confidence: Json | null;
14763
15431
  created_at: string;
15432
+ currency: string | null;
14764
15433
  id: string;
14765
15434
  match_confidence: number | null;
15435
+ match_source: string | null;
15436
+ name_in_mail: string | null;
15437
+ pieces_per_unit: number | null;
14766
15438
  plant_type: string | null;
15439
+ plants: number | null;
15440
+ price_per: string | null;
14767
15441
  product_id: string | null;
14768
15442
  proposal_id: string;
15443
+ qty_in_mail: number | null;
14769
15444
  quantity: number | null;
15445
+ raw_code: string | null;
14770
15446
  raw_product_text: string | null;
14771
15447
  sort_order: number;
14772
15448
  unit: string | null;
15449
+ unit_kind: string | null;
15450
+ unit_price: number | null;
15451
+ unit_text: string | null;
14773
15452
  updated_at: string;
15453
+ warnings: string[] | null;
14774
15454
  };
14775
15455
  Insert: {
15456
+ belading?: Json | null;
15457
+ confidence?: Json | null;
14776
15458
  created_at?: string;
15459
+ currency?: string | null;
14777
15460
  id?: string;
14778
15461
  match_confidence?: number | null;
15462
+ match_source?: string | null;
15463
+ name_in_mail?: string | null;
15464
+ pieces_per_unit?: number | null;
14779
15465
  plant_type?: string | null;
15466
+ plants?: number | null;
15467
+ price_per?: string | null;
14780
15468
  product_id?: string | null;
14781
15469
  proposal_id: string;
15470
+ qty_in_mail?: number | null;
14782
15471
  quantity?: number | null;
15472
+ raw_code?: string | null;
14783
15473
  raw_product_text?: string | null;
14784
15474
  sort_order?: number;
14785
15475
  unit?: string | null;
15476
+ unit_kind?: string | null;
15477
+ unit_price?: number | null;
15478
+ unit_text?: string | null;
14786
15479
  updated_at?: string;
15480
+ warnings?: string[] | null;
14787
15481
  };
14788
15482
  Update: {
15483
+ belading?: Json | null;
15484
+ confidence?: Json | null;
14789
15485
  created_at?: string;
15486
+ currency?: string | null;
14790
15487
  id?: string;
14791
15488
  match_confidence?: number | null;
15489
+ match_source?: string | null;
15490
+ name_in_mail?: string | null;
15491
+ pieces_per_unit?: number | null;
14792
15492
  plant_type?: string | null;
15493
+ plants?: number | null;
15494
+ price_per?: string | null;
14793
15495
  product_id?: string | null;
14794
15496
  proposal_id?: string;
15497
+ qty_in_mail?: number | null;
14795
15498
  quantity?: number | null;
15499
+ raw_code?: string | null;
14796
15500
  raw_product_text?: string | null;
14797
15501
  sort_order?: number;
14798
15502
  unit?: string | null;
15503
+ unit_kind?: string | null;
15504
+ unit_price?: number | null;
15505
+ unit_text?: string | null;
14799
15506
  updated_at?: string;
15507
+ warnings?: string[] | null;
14800
15508
  };
14801
15509
  Relationships: [
14802
15510
  {
@@ -14870,6 +15578,51 @@ export type Database = {
14870
15578
  };
14871
15579
  Relationships: [];
14872
15580
  };
15581
+ mailbox_test_cases: {
15582
+ Row: {
15583
+ body_text: string;
15584
+ created_at: string;
15585
+ expected: Json;
15586
+ from_email: string;
15587
+ has_attachment: boolean;
15588
+ id: string;
15589
+ last_result: Json | null;
15590
+ last_run_at: string | null;
15591
+ name: string;
15592
+ sort_order: number;
15593
+ subject: string;
15594
+ updated_at: string;
15595
+ };
15596
+ Insert: {
15597
+ body_text?: string;
15598
+ created_at?: string;
15599
+ expected?: Json;
15600
+ from_email?: string;
15601
+ has_attachment?: boolean;
15602
+ id?: string;
15603
+ last_result?: Json | null;
15604
+ last_run_at?: string | null;
15605
+ name: string;
15606
+ sort_order?: number;
15607
+ subject?: string;
15608
+ updated_at?: string;
15609
+ };
15610
+ Update: {
15611
+ body_text?: string;
15612
+ created_at?: string;
15613
+ expected?: Json;
15614
+ from_email?: string;
15615
+ has_attachment?: boolean;
15616
+ id?: string;
15617
+ last_result?: Json | null;
15618
+ last_run_at?: string | null;
15619
+ name?: string;
15620
+ sort_order?: number;
15621
+ subject?: string;
15622
+ updated_at?: string;
15623
+ };
15624
+ Relationships: [];
15625
+ };
14873
15626
  manufacture_product_components: {
14874
15627
  Row: {
14875
15628
  component_type: string;
@@ -15992,10 +16745,12 @@ export type Database = {
15992
16745
  id: string;
15993
16746
  items: Json;
15994
16747
  notes: string | null;
16748
+ order_creation_attempts: number;
15995
16749
  order_creation_error: string | null;
15996
16750
  order_creation_failed_at: string | null;
15997
16751
  order_id: string | null;
15998
16752
  order_number: string | null;
16753
+ order_retry_payload: Json | null;
15999
16754
  recipient_id: string;
16000
16755
  total_amount: number;
16001
16756
  };
@@ -16009,10 +16764,12 @@ export type Database = {
16009
16764
  id?: string;
16010
16765
  items?: Json;
16011
16766
  notes?: string | null;
16767
+ order_creation_attempts?: number;
16012
16768
  order_creation_error?: string | null;
16013
16769
  order_creation_failed_at?: string | null;
16014
16770
  order_id?: string | null;
16015
16771
  order_number?: string | null;
16772
+ order_retry_payload?: Json | null;
16016
16773
  recipient_id: string;
16017
16774
  total_amount?: number;
16018
16775
  };
@@ -16026,10 +16783,12 @@ export type Database = {
16026
16783
  id?: string;
16027
16784
  items?: Json;
16028
16785
  notes?: string | null;
16786
+ order_creation_attempts?: number;
16029
16787
  order_creation_error?: string | null;
16030
16788
  order_creation_failed_at?: string | null;
16031
16789
  order_id?: string | null;
16032
16790
  order_number?: string | null;
16791
+ order_retry_payload?: Json | null;
16033
16792
  recipient_id?: string;
16034
16793
  total_amount?: number;
16035
16794
  };
@@ -16447,14 +17206,20 @@ export type Database = {
16447
17206
  order_carts: {
16448
17207
  Row: {
16449
17208
  algorithm_version: number;
17209
+ archived_at: string | null;
17210
+ archived_by: string | null;
17211
+ archived_reason: string | null;
16450
17212
  buffer_id: string | null;
17213
+ carrier_id: string | null;
16451
17214
  carrier_type: string;
16452
17215
  carrier_type_id: string | null;
16453
17216
  cart_number: number;
16454
17217
  created_at: string;
17218
+ departure_at: string | null;
16455
17219
  id: string;
16456
17220
  is_auto: boolean;
16457
17221
  is_complete: boolean;
17222
+ late_signup: boolean;
16458
17223
  layout_method: string | null;
16459
17224
  max_layers: number | null;
16460
17225
  moved_at: string | null;
@@ -16465,6 +17230,7 @@ export type Database = {
16465
17230
  order_id: string | null;
16466
17231
  pickup_locked: boolean;
16467
17232
  pickup_moment_id: string | null;
17233
+ pickup_moment_key: string | null;
16468
17234
  source: string;
16469
17235
  total_carts: number | null;
16470
17236
  total_layers_used: number;
@@ -16473,14 +17239,20 @@ export type Database = {
16473
17239
  };
16474
17240
  Insert: {
16475
17241
  algorithm_version?: number;
17242
+ archived_at?: string | null;
17243
+ archived_by?: string | null;
17244
+ archived_reason?: string | null;
16476
17245
  buffer_id?: string | null;
17246
+ carrier_id?: string | null;
16477
17247
  carrier_type?: string;
16478
17248
  carrier_type_id?: string | null;
16479
17249
  cart_number: number;
16480
17250
  created_at?: string;
17251
+ departure_at?: string | null;
16481
17252
  id?: string;
16482
17253
  is_auto?: boolean;
16483
17254
  is_complete?: boolean;
17255
+ late_signup?: boolean;
16484
17256
  layout_method?: string | null;
16485
17257
  max_layers?: number | null;
16486
17258
  moved_at?: string | null;
@@ -16491,6 +17263,7 @@ export type Database = {
16491
17263
  order_id?: string | null;
16492
17264
  pickup_locked?: boolean;
16493
17265
  pickup_moment_id?: string | null;
17266
+ pickup_moment_key?: string | null;
16494
17267
  source?: string;
16495
17268
  total_carts?: number | null;
16496
17269
  total_layers_used?: number;
@@ -16499,14 +17272,20 @@ export type Database = {
16499
17272
  };
16500
17273
  Update: {
16501
17274
  algorithm_version?: number;
17275
+ archived_at?: string | null;
17276
+ archived_by?: string | null;
17277
+ archived_reason?: string | null;
16502
17278
  buffer_id?: string | null;
17279
+ carrier_id?: string | null;
16503
17280
  carrier_type?: string;
16504
17281
  carrier_type_id?: string | null;
16505
17282
  cart_number?: number;
16506
17283
  created_at?: string;
17284
+ departure_at?: string | null;
16507
17285
  id?: string;
16508
17286
  is_auto?: boolean;
16509
17287
  is_complete?: boolean;
17288
+ late_signup?: boolean;
16510
17289
  layout_method?: string | null;
16511
17290
  max_layers?: number | null;
16512
17291
  moved_at?: string | null;
@@ -16517,6 +17296,7 @@ export type Database = {
16517
17296
  order_id?: string | null;
16518
17297
  pickup_locked?: boolean;
16519
17298
  pickup_moment_id?: string | null;
17299
+ pickup_moment_key?: string | null;
16520
17300
  source?: string;
16521
17301
  total_carts?: number | null;
16522
17302
  total_layers_used?: number;
@@ -16668,6 +17448,7 @@ export type Database = {
16668
17448
  Row: {
16669
17449
  administration_code: string | null;
16670
17450
  attempts: number;
17451
+ block_reason: string | null;
16671
17452
  created_at: string;
16672
17453
  error_message: string | null;
16673
17454
  id: string;
@@ -16675,6 +17456,8 @@ export type Database = {
16675
17456
  next_attempt_at: string;
16676
17457
  order_id: string;
16677
17458
  processed_at: string | null;
17459
+ revive_reason: string | null;
17460
+ revived_at: string | null;
16678
17461
  send_error: string | null;
16679
17462
  status: string;
16680
17463
  updated_at: string;
@@ -16682,6 +17465,7 @@ export type Database = {
16682
17465
  Insert: {
16683
17466
  administration_code?: string | null;
16684
17467
  attempts?: number;
17468
+ block_reason?: string | null;
16685
17469
  created_at?: string;
16686
17470
  error_message?: string | null;
16687
17471
  id?: string;
@@ -16689,6 +17473,8 @@ export type Database = {
16689
17473
  next_attempt_at?: string;
16690
17474
  order_id: string;
16691
17475
  processed_at?: string | null;
17476
+ revive_reason?: string | null;
17477
+ revived_at?: string | null;
16692
17478
  send_error?: string | null;
16693
17479
  status?: string;
16694
17480
  updated_at?: string;
@@ -16696,6 +17482,7 @@ export type Database = {
16696
17482
  Update: {
16697
17483
  administration_code?: string | null;
16698
17484
  attempts?: number;
17485
+ block_reason?: string | null;
16699
17486
  created_at?: string;
16700
17487
  error_message?: string | null;
16701
17488
  id?: string;
@@ -16703,6 +17490,8 @@ export type Database = {
16703
17490
  next_attempt_at?: string;
16704
17491
  order_id?: string;
16705
17492
  processed_at?: string | null;
17493
+ revive_reason?: string | null;
17494
+ revived_at?: string | null;
16706
17495
  send_error?: string | null;
16707
17496
  status?: string;
16708
17497
  updated_at?: string;
@@ -19104,18 +19893,21 @@ export type Database = {
19104
19893
  genegeerd_door: string | null;
19105
19894
  genegeerd_op: string;
19106
19895
  id: string;
19896
+ printnode_computer_id: number | null;
19107
19897
  };
19108
19898
  Insert: {
19109
19899
  computer_naam: string;
19110
19900
  genegeerd_door?: string | null;
19111
19901
  genegeerd_op?: string;
19112
19902
  id?: string;
19903
+ printnode_computer_id?: number | null;
19113
19904
  };
19114
19905
  Update: {
19115
19906
  computer_naam?: string;
19116
19907
  genegeerd_door?: string | null;
19117
19908
  genegeerd_op?: string;
19118
19909
  id?: string;
19910
+ printnode_computer_id?: number | null;
19119
19911
  };
19120
19912
  Relationships: [];
19121
19913
  };
@@ -19203,6 +19995,8 @@ export type Database = {
19203
19995
  updated_at: string;
19204
19996
  verloopt_na_s: number | null;
19205
19997
  verwerkingsfase: string;
19998
+ verwerkt_door_runner: string | null;
19999
+ verwerkt_met_versie: string | null;
19206
20000
  volgende_poging: string | null;
19207
20001
  voltooid_op: string | null;
19208
20002
  };
@@ -19257,6 +20051,8 @@ export type Database = {
19257
20051
  updated_at?: string;
19258
20052
  verloopt_na_s?: number | null;
19259
20053
  verwerkingsfase?: string;
20054
+ verwerkt_door_runner?: string | null;
20055
+ verwerkt_met_versie?: string | null;
19260
20056
  volgende_poging?: string | null;
19261
20057
  voltooid_op?: string | null;
19262
20058
  };
@@ -19311,6 +20107,8 @@ export type Database = {
19311
20107
  updated_at?: string;
19312
20108
  verloopt_na_s?: number | null;
19313
20109
  verwerkingsfase?: string;
20110
+ verwerkt_door_runner?: string | null;
20111
+ verwerkt_met_versie?: string | null;
19314
20112
  volgende_poging?: string | null;
19315
20113
  voltooid_op?: string | null;
19316
20114
  };
@@ -19351,6 +20149,7 @@ export type Database = {
19351
20149
  created_at: string;
19352
20150
  id: string;
19353
20151
  print_plek_id: string;
20152
+ printnode_computer_id: number | null;
19354
20153
  updated_at: string;
19355
20154
  };
19356
20155
  Insert: {
@@ -19358,6 +20157,7 @@ export type Database = {
19358
20157
  created_at?: string;
19359
20158
  id?: string;
19360
20159
  print_plek_id: string;
20160
+ printnode_computer_id?: number | null;
19361
20161
  updated_at?: string;
19362
20162
  };
19363
20163
  Update: {
@@ -19365,6 +20165,7 @@ export type Database = {
19365
20165
  created_at?: string;
19366
20166
  id?: string;
19367
20167
  print_plek_id?: string;
20168
+ printnode_computer_id?: number | null;
19368
20169
  updated_at?: string;
19369
20170
  };
19370
20171
  Relationships: [
@@ -19511,6 +20312,42 @@ export type Database = {
19511
20312
  };
19512
20313
  Relationships: [];
19513
20314
  };
20315
+ print_printer_verwijder_herstel: {
20316
+ Row: {
20317
+ created_at: string;
20318
+ extern_printer_id: string | null;
20319
+ hersteld_op: string | null;
20320
+ id: string;
20321
+ print_plek_id: string;
20322
+ printer_id: string;
20323
+ printer_naam: string | null;
20324
+ regels: Json;
20325
+ verwijderd_op: string;
20326
+ };
20327
+ Insert: {
20328
+ created_at?: string;
20329
+ extern_printer_id?: string | null;
20330
+ hersteld_op?: string | null;
20331
+ id?: string;
20332
+ print_plek_id: string;
20333
+ printer_id: string;
20334
+ printer_naam?: string | null;
20335
+ regels?: Json;
20336
+ verwijderd_op?: string;
20337
+ };
20338
+ Update: {
20339
+ created_at?: string;
20340
+ extern_printer_id?: string | null;
20341
+ hersteld_op?: string | null;
20342
+ id?: string;
20343
+ print_plek_id?: string;
20344
+ printer_id?: string;
20345
+ printer_naam?: string | null;
20346
+ regels?: Json;
20347
+ verwijderd_op?: string;
20348
+ };
20349
+ Relationships: [];
20350
+ };
19514
20351
  print_queue_leases: {
19515
20352
  Row: {
19516
20353
  created_at: string;
@@ -19543,10 +20380,12 @@ export type Database = {
19543
20380
  id: string;
19544
20381
  laatst_gezien: string;
19545
20382
  laatste_fout: string | null;
20383
+ laatste_ok: string | null;
19546
20384
  laatste_request_id: number | null;
19547
20385
  laatste_wakeup: string | null;
19548
20386
  mislukte_posts: number;
19549
20387
  mislukte_wakeups: number;
20388
+ module_versie: string | null;
19550
20389
  tick_sleutel: string;
19551
20390
  updated_at: string;
19552
20391
  };
@@ -19557,10 +20396,12 @@ export type Database = {
19557
20396
  id?: string;
19558
20397
  laatst_gezien?: string;
19559
20398
  laatste_fout?: string | null;
20399
+ laatste_ok?: string | null;
19560
20400
  laatste_request_id?: number | null;
19561
20401
  laatste_wakeup?: string | null;
19562
20402
  mislukte_posts?: number;
19563
20403
  mislukte_wakeups?: number;
20404
+ module_versie?: string | null;
19564
20405
  tick_sleutel?: string;
19565
20406
  updated_at?: string;
19566
20407
  };
@@ -19571,10 +20412,12 @@ export type Database = {
19571
20412
  id?: string;
19572
20413
  laatst_gezien?: string;
19573
20414
  laatste_fout?: string | null;
20415
+ laatste_ok?: string | null;
19574
20416
  laatste_request_id?: number | null;
19575
20417
  laatste_wakeup?: string | null;
19576
20418
  mislukte_posts?: number;
19577
20419
  mislukte_wakeups?: number;
20420
+ module_versie?: string | null;
19578
20421
  tick_sleutel?: string;
19579
20422
  updated_at?: string;
19580
20423
  };
@@ -19664,6 +20507,30 @@ export type Database = {
19664
20507
  }
19665
20508
  ];
19666
20509
  };
20510
+ print_shell_stilstand: {
20511
+ Row: {
20512
+ gemeld_op: string;
20513
+ id: number;
20514
+ opgelost_op: string | null;
20515
+ reden: string;
20516
+ sinds: string | null;
20517
+ };
20518
+ Insert: {
20519
+ gemeld_op?: string;
20520
+ id?: number;
20521
+ opgelost_op?: string | null;
20522
+ reden: string;
20523
+ sinds?: string | null;
20524
+ };
20525
+ Update: {
20526
+ gemeld_op?: string;
20527
+ id?: number;
20528
+ opgelost_op?: string | null;
20529
+ reden?: string;
20530
+ sinds?: string | null;
20531
+ };
20532
+ Relationships: [];
20533
+ };
19667
20534
  print_werkplek_afwijkingen: {
19668
20535
  Row: {
19669
20536
  created_at: string;
@@ -20675,6 +21542,69 @@ export type Database = {
20675
21542
  }
20676
21543
  ];
20677
21544
  };
21545
+ productontwerp_import_map: {
21546
+ Row: {
21547
+ created_at: string;
21548
+ entity_type: string;
21549
+ id: string;
21550
+ imported_at: string;
21551
+ match_method: string | null;
21552
+ source_id: string;
21553
+ source_shell_id: string;
21554
+ target_id: string;
21555
+ updated_at: string;
21556
+ };
21557
+ Insert: {
21558
+ created_at?: string;
21559
+ entity_type: string;
21560
+ id?: string;
21561
+ imported_at?: string;
21562
+ match_method?: string | null;
21563
+ source_id: string;
21564
+ source_shell_id: string;
21565
+ target_id: string;
21566
+ updated_at?: string;
21567
+ };
21568
+ Update: {
21569
+ created_at?: string;
21570
+ entity_type?: string;
21571
+ id?: string;
21572
+ imported_at?: string;
21573
+ match_method?: string | null;
21574
+ source_id?: string;
21575
+ source_shell_id?: string;
21576
+ target_id?: string;
21577
+ updated_at?: string;
21578
+ };
21579
+ Relationships: [];
21580
+ };
21581
+ productontwerp_structure_codes: {
21582
+ Row: {
21583
+ code: string;
21584
+ created_at: string;
21585
+ entity_id: string;
21586
+ entity_type: string;
21587
+ id: string;
21588
+ updated_at: string;
21589
+ };
21590
+ Insert: {
21591
+ code: string;
21592
+ created_at?: string;
21593
+ entity_id: string;
21594
+ entity_type: string;
21595
+ id?: string;
21596
+ updated_at?: string;
21597
+ };
21598
+ Update: {
21599
+ code?: string;
21600
+ created_at?: string;
21601
+ entity_id?: string;
21602
+ entity_type?: string;
21603
+ id?: string;
21604
+ updated_at?: string;
21605
+ };
21606
+ Relationships: [];
21607
+ };
20678
21608
  products: {
20679
21609
  Row: {
20680
21610
  article_number: string | null;
@@ -28501,6 +29431,10 @@ export type Database = {
28501
29431
  };
28502
29432
  };
28503
29433
  Functions: {
29434
+ _arm_offer_order_retry: {
29435
+ Args: never;
29436
+ Returns: undefined;
29437
+ };
28504
29438
  _floriday_queue_cleanup_batch: {
28505
29439
  Args: {
28506
29440
  p_days: number;
@@ -28528,6 +29462,10 @@ export type Database = {
28528
29462
  };
28529
29463
  Returns: string[][];
28530
29464
  };
29465
+ _layout_is_beheerder: {
29466
+ Args: never;
29467
+ Returns: boolean;
29468
+ };
28531
29469
  _migrate_rewrite_stock_key: {
28532
29470
  Args: {
28533
29471
  _from_key: string;
@@ -28535,12 +29473,44 @@ export type Database = {
28535
29473
  };
28536
29474
  Returns: undefined;
28537
29475
  };
29476
+ _pick_station_for_cart: {
29477
+ Args: {
29478
+ p_cart_id: string;
29479
+ };
29480
+ Returns: string;
29481
+ };
29482
+ _pick_sticker_ids_for_cart: {
29483
+ Args: {
29484
+ p_cart_id: string;
29485
+ };
29486
+ Returns: string[];
29487
+ };
29488
+ _print_meld_stilstand: {
29489
+ Args: {
29490
+ _reden: string;
29491
+ _sinds: string;
29492
+ };
29493
+ Returns: undefined;
29494
+ };
28538
29495
  _quote_release_work_order_intern: {
28539
29496
  Args: {
28540
29497
  _offerte_id: string;
28541
29498
  };
28542
29499
  Returns: Json;
28543
29500
  };
29501
+ _scan_kar_floriday_afgehandeld: {
29502
+ Args: {
29503
+ p_cart_id: string;
29504
+ p_order_id?: string;
29505
+ };
29506
+ Returns: Json;
29507
+ };
29508
+ _scan_kar_pakbon_geprint: {
29509
+ Args: {
29510
+ p_cart_id: string;
29511
+ };
29512
+ Returns: Json;
29513
+ };
28544
29514
  _scan_kar_voortgang: {
28545
29515
  Args: {
28546
29516
  p_cart_id: string;
@@ -28564,6 +29534,24 @@ export type Database = {
28564
29534
  };
28565
29535
  Returns: string;
28566
29536
  };
29537
+ afh_html: {
29538
+ Args: {
29539
+ _s: string;
29540
+ };
29541
+ Returns: string;
29542
+ };
29543
+ afh_kar_tekst: {
29544
+ Args: {
29545
+ n: number;
29546
+ };
29547
+ Returns: string;
29548
+ };
29549
+ afh_nl_date: {
29550
+ Args: {
29551
+ _d: string;
29552
+ };
29553
+ Returns: string;
29554
+ };
28567
29555
  afh_normalize_country: {
28568
29556
  Args: {
28569
29557
  _raw: string;
@@ -28576,6 +29564,108 @@ export type Database = {
28576
29564
  };
28577
29565
  Returns: string;
28578
29566
  };
29567
+ afh_order_floriday_afgehandeld: {
29568
+ Args: {
29569
+ p_order_id: string;
29570
+ };
29571
+ Returns: boolean;
29572
+ };
29573
+ afh_pick_workdays: {
29574
+ Args: {
29575
+ p_from: string;
29576
+ p_to: string;
29577
+ };
29578
+ Returns: Json;
29579
+ };
29580
+ afh_signup_config: {
29581
+ Args: never;
29582
+ Returns: Json;
29583
+ };
29584
+ afh_signup_engine_moments: {
29585
+ Args: {
29586
+ p_order_ids: string[];
29587
+ };
29588
+ Returns: Json;
29589
+ };
29590
+ afh_signup_find_group: {
29591
+ Args: {
29592
+ p_carrier_id: string;
29593
+ p_moment_key: string;
29594
+ p_pickup_date: string;
29595
+ p_tz: string;
29596
+ };
29597
+ Returns: Json;
29598
+ };
29599
+ afh_signup_groups: {
29600
+ Args: {
29601
+ p_from: string;
29602
+ p_to: string;
29603
+ p_tz: string;
29604
+ };
29605
+ Returns: Json;
29606
+ };
29607
+ afh_signup_groups_base: {
29608
+ Args: {
29609
+ p_from: string;
29610
+ p_to: string;
29611
+ p_tz: string;
29612
+ };
29613
+ Returns: Json;
29614
+ };
29615
+ afh_signup_groups_wacht: {
29616
+ Args: {
29617
+ p_from: string;
29618
+ p_to: string;
29619
+ p_tz: string;
29620
+ };
29621
+ Returns: Json;
29622
+ };
29623
+ afh_signup_mail: {
29624
+ Args: {
29625
+ g: Json;
29626
+ p_prev: number;
29627
+ p_tz: string;
29628
+ };
29629
+ Returns: Json;
29630
+ };
29631
+ afh_signup_mail_base: {
29632
+ Args: {
29633
+ g: Json;
29634
+ p_prev: number;
29635
+ p_tz: string;
29636
+ };
29637
+ Returns: Json;
29638
+ };
29639
+ afh_signup_mail_wacht: {
29640
+ Args: {
29641
+ g: Json;
29642
+ p_prev: number;
29643
+ p_tz: string;
29644
+ };
29645
+ Returns: Json;
29646
+ };
29647
+ afh_signup_send_group: {
29648
+ Args: {
29649
+ g: Json;
29650
+ p_connection: string;
29651
+ p_purpose: string;
29652
+ p_source: string;
29653
+ p_tz: string;
29654
+ p_user: string;
29655
+ };
29656
+ Returns: Json;
29657
+ };
29658
+ afh_signup_send_group_base: {
29659
+ Args: {
29660
+ g: Json;
29661
+ p_connection: string;
29662
+ p_purpose: string;
29663
+ p_source: string;
29664
+ p_tz: string;
29665
+ p_user: string;
29666
+ };
29667
+ Returns: Json;
29668
+ };
28579
29669
  afh_subtract_workdays: {
28580
29670
  Args: {
28581
29671
  _date: string;
@@ -28583,6 +29673,14 @@ export type Database = {
28583
29673
  };
28584
29674
  Returns: string;
28585
29675
  };
29676
+ afhandeling_signup_cron_status: {
29677
+ Args: never;
29678
+ Returns: Json;
29679
+ };
29680
+ afhandeling_sync_signup_cron: {
29681
+ Args: never;
29682
+ Returns: Json;
29683
+ };
28586
29684
  ai_usage_by_module: {
28587
29685
  Args: {
28588
29686
  _from: string;
@@ -28724,6 +29822,29 @@ export type Database = {
28724
29822
  id: string;
28725
29823
  }[];
28726
29824
  };
29825
+ carrier_signup_overview: {
29826
+ Args: {
29827
+ p_from: string;
29828
+ p_to: string;
29829
+ };
29830
+ Returns: Json;
29831
+ };
29832
+ carrier_signup_preview: {
29833
+ Args: {
29834
+ p_carrier_id: string;
29835
+ p_moment_key: string;
29836
+ p_pickup_date: string;
29837
+ };
29838
+ Returns: Json;
29839
+ };
29840
+ carrier_signup_send_now: {
29841
+ Args: {
29842
+ p_carrier_id: string;
29843
+ p_moment_key: string;
29844
+ p_pickup_date: string;
29845
+ };
29846
+ Returns: Json;
29847
+ };
28727
29848
  check_offer_product_available_stock: {
28728
29849
  Args: {
28729
29850
  p_campaign_product_id: string;
@@ -28814,6 +29935,8 @@ export type Database = {
28814
29935
  updated_at: string;
28815
29936
  verloopt_na_s: number | null;
28816
29937
  verwerkingsfase: string;
29938
+ verwerkt_door_runner: string | null;
29939
+ verwerkt_met_versie: string | null;
28817
29940
  volgende_poging: string | null;
28818
29941
  voltooid_op: string | null;
28819
29942
  }[];
@@ -29010,6 +30133,8 @@ export type Database = {
29010
30133
  updated_at: string;
29011
30134
  verloopt_na_s: number | null;
29012
30135
  verwerkingsfase: string;
30136
+ verwerkt_door_runner: string | null;
30137
+ verwerkt_met_versie: string | null;
29013
30138
  volgende_poging: string | null;
29014
30139
  voltooid_op: string | null;
29015
30140
  }[];
@@ -29076,6 +30201,8 @@ export type Database = {
29076
30201
  updated_at: string;
29077
30202
  verloopt_na_s: number | null;
29078
30203
  verwerkingsfase: string;
30204
+ verwerkt_door_runner: string | null;
30205
+ verwerkt_met_versie: string | null;
29079
30206
  volgende_poging: string | null;
29080
30207
  voltooid_op: string | null;
29081
30208
  }[];
@@ -29303,6 +30430,10 @@ export type Database = {
29303
30430
  };
29304
30431
  Returns: Json;
29305
30432
  };
30433
+ control_today_scan_summary: {
30434
+ Args: never;
30435
+ Returns: Json;
30436
+ };
29306
30437
  count_distinct_regulatory_products: {
29307
30438
  Args: never;
29308
30439
  Returns: number;
@@ -29343,6 +30474,10 @@ export type Database = {
29343
30474
  Args: never;
29344
30475
  Returns: Json;
29345
30476
  };
30477
+ dashboard_alert_counts_v3: {
30478
+ Args: never;
30479
+ Returns: Json;
30480
+ };
29346
30481
  dashboard_alert_rows: {
29347
30482
  Args: {
29348
30483
  check_id: string;
@@ -29395,6 +30530,10 @@ export type Database = {
29395
30530
  };
29396
30531
  Returns: Json;
29397
30532
  };
30533
+ dashboard_today_summary: {
30534
+ Args: never;
30535
+ Returns: Json;
30536
+ };
29398
30537
  dashboard_werkbon_funnel: {
29399
30538
  Args: {
29400
30539
  _periode?: string;
@@ -29607,6 +30746,30 @@ export type Database = {
29607
30746
  };
29608
30747
  Returns: boolean;
29609
30748
  };
30749
+ floricode_sync_cron_schedule: {
30750
+ Args: {
30751
+ p_apikey: string;
30752
+ p_schedule: string;
30753
+ p_url: string;
30754
+ };
30755
+ Returns: number;
30756
+ };
30757
+ floricode_sync_cron_set_schedule: {
30758
+ Args: {
30759
+ p_schedule: string;
30760
+ };
30761
+ Returns: boolean;
30762
+ };
30763
+ floricode_sync_cron_status: {
30764
+ Args: never;
30765
+ Returns: {
30766
+ active: boolean;
30767
+ last_run_at: string;
30768
+ last_run_status: string;
30769
+ schedule: string;
30770
+ scheduled: boolean;
30771
+ }[];
30772
+ };
29610
30773
  floriday_adopt_connection: {
29611
30774
  Args: {
29612
30775
  p_new: string;
@@ -29630,6 +30793,18 @@ export type Database = {
29630
30793
  Args: never;
29631
30794
  Returns: undefined;
29632
30795
  };
30796
+ floriday_customer_candidates: {
30797
+ Args: never;
30798
+ Returns: {
30799
+ in_cache: boolean;
30800
+ organization_id: string;
30801
+ reason: string;
30802
+ }[];
30803
+ };
30804
+ floriday_customer_promotion_preview: {
30805
+ Args: never;
30806
+ Returns: Json;
30807
+ };
29633
30808
  floriday_default_owner: {
29634
30809
  Args: {
29635
30810
  p_connection_id: string;
@@ -29666,16 +30841,87 @@ export type Database = {
29666
30841
  source_id: string;
29667
30842
  }[];
29668
30843
  };
30844
+ floriday_eigen_organisatie: {
30845
+ Args: never;
30846
+ Returns: {
30847
+ adres: string;
30848
+ gln: string;
30849
+ land: string;
30850
+ naam: string;
30851
+ opgehaald_op: string;
30852
+ organisatie_id: string;
30853
+ plaats: string;
30854
+ postcode: string;
30855
+ }[];
30856
+ };
30857
+ floriday_erp_leading_preview: {
30858
+ Args: {
30859
+ p_connection_id: string;
30860
+ p_product_ids: string[];
30861
+ p_stock_mode?: string;
30862
+ };
30863
+ Returns: {
30864
+ blocker: string;
30865
+ desired_available: boolean;
30866
+ desired_quantity: number;
30867
+ horizon_weeks: number;
30868
+ offer_forms: Json;
30869
+ product_id: string;
30870
+ product_name: string;
30871
+ sale_price: number;
30872
+ stock_mode: string;
30873
+ trade_item_id: string;
30874
+ weeks: Json;
30875
+ }[];
30876
+ };
29669
30877
  floriday_fill_publish_horizon: {
29670
30878
  Args: never;
29671
30879
  Returns: number;
29672
30880
  };
30881
+ floriday_follow_apply: {
30882
+ Args: {
30883
+ p_connection_id: string;
30884
+ p_items: Json;
30885
+ };
30886
+ Returns: Json;
30887
+ };
29673
30888
  floriday_ingest_sales_orders: {
29674
30889
  Args: {
29675
30890
  p_limit?: number;
29676
30891
  };
29677
30892
  Returns: number;
29678
30893
  };
30894
+ floriday_leading_summary: {
30895
+ Args: {
30896
+ p_connection_id: string;
30897
+ };
30898
+ Returns: Json;
30899
+ };
30900
+ floriday_make_erp_leading: {
30901
+ Args: {
30902
+ p_connection_id: string;
30903
+ p_product_ids: string[];
30904
+ p_stock_mode?: string;
30905
+ };
30906
+ Returns: Json;
30907
+ };
30908
+ floriday_network_status: {
30909
+ Args: {
30910
+ p_organization_id: string;
30911
+ };
30912
+ Returns: {
30913
+ in_network: boolean;
30914
+ is_deleted: boolean;
30915
+ list_synced_at: string;
30916
+ synced_at: string;
30917
+ }[];
30918
+ };
30919
+ floriday_norm_offer_forms: {
30920
+ Args: {
30921
+ p: Json;
30922
+ };
30923
+ Returns: Json;
30924
+ };
29679
30925
  floriday_orphan_settings_count: {
29680
30926
  Args: never;
29681
30927
  Returns: number;
@@ -29704,6 +30950,34 @@ export type Database = {
29704
30950
  };
29705
30951
  Returns: number;
29706
30952
  };
30953
+ floriday_takeover_apply: {
30954
+ Args: {
30955
+ p_connection_id: string;
30956
+ p_items: Json;
30957
+ };
30958
+ Returns: Json;
30959
+ };
30960
+ floriday_takeover_fetch_state: {
30961
+ Args: {
30962
+ p_connection_id: string;
30963
+ p_entity?: string;
30964
+ };
30965
+ Returns: string;
30966
+ };
30967
+ floriday_takeover_undo: {
30968
+ Args: {
30969
+ p_run_id: string;
30970
+ };
30971
+ Returns: Json;
30972
+ };
30973
+ floriday_today_announce_summary: {
30974
+ Args: never;
30975
+ Returns: Json;
30976
+ };
30977
+ floriday_write_mode: {
30978
+ Args: never;
30979
+ Returns: Json;
30980
+ };
29707
30981
  format_cart_number: {
29708
30982
  Args: {
29709
30983
  p_pick_date: string;
@@ -30487,6 +31761,10 @@ export type Database = {
30487
31761
  };
30488
31762
  Returns: Json;
30489
31763
  };
31764
+ invoices_ready_summary: {
31765
+ Args: never;
31766
+ Returns: Json;
31767
+ };
30490
31768
  is_authenticated: {
30491
31769
  Args: never;
30492
31770
  Returns: boolean;
@@ -30558,6 +31836,10 @@ export type Database = {
30558
31836
  };
30559
31837
  Returns: boolean;
30560
31838
  };
31839
+ klanten_install_check: {
31840
+ Args: never;
31841
+ Returns: Json;
31842
+ };
30561
31843
  layout_print_document: {
30562
31844
  Args: {
30563
31845
  _documentnaam: string;
@@ -30584,6 +31866,18 @@ export type Database = {
30584
31866
  status: string;
30585
31867
  }[];
30586
31868
  };
31869
+ layout_standaard_overnemen: {
31870
+ Args: {
31871
+ _layout_id: string;
31872
+ };
31873
+ Returns: Json;
31874
+ };
31875
+ layout_versie_terugzetten: {
31876
+ Args: {
31877
+ _versie_id: string;
31878
+ };
31879
+ Returns: number;
31880
+ };
30587
31881
  layout_verwijzing_omzetten: {
30588
31882
  Args: {
30589
31883
  _nieuw: string;
@@ -30597,6 +31891,10 @@ export type Database = {
30597
31891
  Args: never;
30598
31892
  Returns: Json;
30599
31893
  };
31894
+ layout_zorg_systeemlayouts: {
31895
+ Args: never;
31896
+ Returns: number;
31897
+ };
30600
31898
  list_medewerkers: {
30601
31899
  Args: never;
30602
31900
  Returns: {
@@ -30688,6 +31986,14 @@ export type Database = {
30688
31986
  };
30689
31987
  Returns: string;
30690
31988
  };
31989
+ log_offer_event_by_code: {
31990
+ Args: {
31991
+ p_code: string;
31992
+ p_event_type: string;
31993
+ p_metadata?: Json;
31994
+ };
31995
+ Returns: boolean;
31996
+ };
30691
31997
  logistics_active_layout_method: {
30692
31998
  Args: never;
30693
31999
  Returns: string;
@@ -30750,6 +32056,12 @@ export type Database = {
30750
32056
  Args: never;
30751
32057
  Returns: undefined;
30752
32058
  };
32059
+ logistics_apply_external_fulfillment: {
32060
+ Args: {
32061
+ p_event_id: string;
32062
+ };
32063
+ Returns: string;
32064
+ };
30753
32065
  logistics_apply_order_buffer: {
30754
32066
  Args: {
30755
32067
  p_order_id: string;
@@ -30900,6 +32212,12 @@ export type Database = {
30900
32212
  };
30901
32213
  Returns: Json;
30902
32214
  };
32215
+ logistics_buffer_closed_for_join: {
32216
+ Args: {
32217
+ p_buffer: string;
32218
+ };
32219
+ Returns: boolean;
32220
+ };
30903
32221
  logistics_buffer_criteria: {
30904
32222
  Args: {
30905
32223
  p_settings: Json;
@@ -30928,6 +32246,12 @@ export type Database = {
30928
32246
  };
30929
32247
  Returns: Json;
30930
32248
  };
32249
+ logistics_buffer_frozen: {
32250
+ Args: {
32251
+ p_buffer: string;
32252
+ };
32253
+ Returns: boolean;
32254
+ };
30931
32255
  logistics_buffer_frozen_order: {
30932
32256
  Args: {
30933
32257
  p_order_id: string;
@@ -30968,6 +32292,12 @@ export type Database = {
30968
32292
  };
30969
32293
  Returns: Json;
30970
32294
  };
32295
+ logistics_buffer_target: {
32296
+ Args: {
32297
+ p_order_id: string;
32298
+ };
32299
+ Returns: Json;
32300
+ };
30971
32301
  logistics_buffer_value: {
30972
32302
  Args: {
30973
32303
  p_criterion: string;
@@ -30987,6 +32317,12 @@ export type Database = {
30987
32317
  Args: never;
30988
32318
  Returns: number;
30989
32319
  };
32320
+ logistics_cancel_stale_cart_pick_rows: {
32321
+ Args: {
32322
+ p_order_ids: string[];
32323
+ };
32324
+ Returns: number;
32325
+ };
30990
32326
  logistics_capacity_day_check: {
30991
32327
  Args: {
30992
32328
  p_from?: string;
@@ -31000,6 +32336,13 @@ export type Database = {
31000
32336
  };
31001
32337
  Returns: Json;
31002
32338
  };
32339
+ logistics_carrier_for_location: {
32340
+ Args: {
32341
+ p_customer_id: string;
32342
+ p_location: string;
32343
+ };
32344
+ Returns: string;
32345
+ };
31003
32346
  logistics_carrier_minutes: {
31004
32347
  Args: {
31005
32348
  p_carrier: string;
@@ -31007,6 +32350,32 @@ export type Database = {
31007
32350
  };
31008
32351
  Returns: number;
31009
32352
  };
32353
+ logistics_cart_archive: {
32354
+ Args: {
32355
+ p_confirm_count: number;
32356
+ p_ids: string[];
32357
+ p_reason: string;
32358
+ };
32359
+ Returns: Json;
32360
+ };
32361
+ logistics_cart_archive_classify: {
32362
+ Args: never;
32363
+ Returns: {
32364
+ buffer_id: string;
32365
+ cart_id: string;
32366
+ cart_number: number;
32367
+ created_at: string;
32368
+ deel: string;
32369
+ groep: string;
32370
+ order_id: string;
32371
+ order_number: string;
32372
+ reden: string;
32373
+ }[];
32374
+ };
32375
+ logistics_cart_archive_preview: {
32376
+ Args: never;
32377
+ Returns: Json;
32378
+ };
31010
32379
  logistics_cart_barcode_opschonen: {
31011
32380
  Args: {
31012
32381
  p_portie?: number;
@@ -31029,6 +32398,12 @@ export type Database = {
31029
32398
  Args: never;
31030
32399
  Returns: Json;
31031
32400
  };
32401
+ logistics_cart_extra_fields: {
32402
+ Args: {
32403
+ p_cart_id: string;
32404
+ };
32405
+ Returns: Json;
32406
+ };
31032
32407
  logistics_cart_fixed_numbering: {
31033
32408
  Args: {
31034
32409
  p_cart_id: string;
@@ -31042,6 +32417,12 @@ export type Database = {
31042
32417
  };
31043
32418
  Returns: boolean;
31044
32419
  };
32420
+ logistics_cart_has_packing_slip: {
32421
+ Args: {
32422
+ p_cart_id: string;
32423
+ };
32424
+ Returns: boolean;
32425
+ };
31045
32426
  logistics_cart_ids_frozen: {
31046
32427
  Args: {
31047
32428
  p_cart_ids: string[];
@@ -31074,6 +32455,12 @@ export type Database = {
31074
32455
  task_status: string;
31075
32456
  }[];
31076
32457
  };
32458
+ logistics_cart_is_archived: {
32459
+ Args: {
32460
+ p_cart_id: string;
32461
+ };
32462
+ Returns: boolean;
32463
+ };
31077
32464
  logistics_cart_is_frozen: {
31078
32465
  Args: {
31079
32466
  p_cart_id: string;
@@ -31108,6 +32495,12 @@ export type Database = {
31108
32495
  };
31109
32496
  Returns: string[];
31110
32497
  };
32498
+ logistics_cart_pick_starts_at: {
32499
+ Args: {
32500
+ p_cart_id: string;
32501
+ };
32502
+ Returns: string;
32503
+ };
31111
32504
  logistics_cart_plan_overview: {
31112
32505
  Args: {
31113
32506
  p_days?: number;
@@ -31133,6 +32526,12 @@ export type Database = {
31133
32526
  };
31134
32527
  Returns: Json;
31135
32528
  };
32529
+ logistics_cart_plan_status_core_v152: {
32530
+ Args: {
32531
+ p_ref: string;
32532
+ };
32533
+ Returns: Json;
32534
+ };
31136
32535
  logistics_cart_release_reason: {
31137
32536
  Args: {
31138
32537
  p_cart_id: string;
@@ -31170,12 +32569,25 @@ export type Database = {
31170
32569
  };
31171
32570
  Returns: Json;
31172
32571
  };
32572
+ logistics_cart_slip_queued: {
32573
+ Args: {
32574
+ p_cart: string;
32575
+ };
32576
+ Returns: boolean;
32577
+ };
31173
32578
  logistics_cart_sticker_state: {
31174
32579
  Args: {
31175
32580
  p_cart_id: string;
31176
32581
  };
31177
32582
  Returns: Json;
31178
32583
  };
32584
+ logistics_cart_unarchive: {
32585
+ Args: {
32586
+ p_ids: string[];
32587
+ p_reason: string;
32588
+ };
32589
+ Returns: Json;
32590
+ };
31179
32591
  logistics_cart_units: {
31180
32592
  Args: {
31181
32593
  p_from?: string;
@@ -31554,6 +32966,25 @@ export type Database = {
31554
32966
  printed_count: number;
31555
32967
  }[];
31556
32968
  };
32969
+ logistics_departure_calc: {
32970
+ Args: {
32971
+ p_carrier_id: string;
32972
+ p_delivery_date: string;
32973
+ p_moment_key?: string;
32974
+ p_ref_at: string;
32975
+ };
32976
+ Returns: Json;
32977
+ };
32978
+ logistics_departure_preview: {
32979
+ Args: {
32980
+ p_carrier_id: string;
32981
+ p_delivery_date: string;
32982
+ p_delivery_location: string;
32983
+ p_moment_key?: string;
32984
+ p_own_transport?: boolean;
32985
+ };
32986
+ Returns: Json;
32987
+ };
31557
32988
  logistics_document_layout: {
31558
32989
  Args: {
31559
32990
  _document_code: string;
@@ -31637,6 +33068,10 @@ export type Database = {
31637
33068
  };
31638
33069
  Returns: Json;
31639
33070
  };
33071
+ logistics_ensure_runtime_defaults: {
33072
+ Args: never;
33073
+ Returns: undefined;
33074
+ };
31640
33075
  logistics_ensure_shipping_notes: {
31641
33076
  Args: {
31642
33077
  p_limit?: number;
@@ -31657,6 +33092,17 @@ export type Database = {
31657
33092
  ref: string;
31658
33093
  }[];
31659
33094
  };
33095
+ logistics_external_fulfillment_key_report: {
33096
+ Args: never;
33097
+ Returns: {
33098
+ ander_nummer: number;
33099
+ floriday_sales_order_id: string;
33100
+ order_id: string;
33101
+ order_number: string;
33102
+ regels: number;
33103
+ zonder_nummer: number;
33104
+ }[];
33105
+ };
31660
33106
  logistics_fail_task: {
31661
33107
  Args: {
31662
33108
  p_error: string;
@@ -31702,6 +33148,10 @@ export type Database = {
31702
33148
  isSetofReturn: false;
31703
33149
  };
31704
33150
  };
33151
+ logistics_fill_cart_departure: {
33152
+ Args: never;
33153
+ Returns: number;
33154
+ };
31705
33155
  logistics_fix_wrong_shipping_notes: {
31706
33156
  Args: never;
31707
33157
  Returns: Json;
@@ -31790,6 +33240,10 @@ export type Database = {
31790
33240
  Args: never;
31791
33241
  Returns: Json;
31792
33242
  };
33243
+ logistics_floriday_is_read_only: {
33244
+ Args: never;
33245
+ Returns: boolean;
33246
+ };
31793
33247
  logistics_floriday_layout_id: {
31794
33248
  Args: {
31795
33249
  p_documenttype: string;
@@ -31830,6 +33284,13 @@ export type Database = {
31830
33284
  };
31831
33285
  Returns: number;
31832
33286
  };
33287
+ logistics_floriday_push_hold_read_only: {
33288
+ Args: {
33289
+ _id: string;
33290
+ _revision: number;
33291
+ };
33292
+ Returns: string;
33293
+ };
31833
33294
  logistics_floriday_queue_push: {
31834
33295
  Args: {
31835
33296
  _order_ref: string;
@@ -31838,6 +33299,10 @@ export type Database = {
31838
33299
  };
31839
33300
  Returns: string;
31840
33301
  };
33302
+ logistics_floriday_release_read_only: {
33303
+ Args: never;
33304
+ Returns: Json;
33305
+ };
31841
33306
  logistics_floriday_status_updates_enabled: {
31842
33307
  Args: never;
31843
33308
  Returns: boolean;
@@ -31901,6 +33366,13 @@ export type Database = {
31901
33366
  };
31902
33367
  Returns: boolean;
31903
33368
  };
33369
+ logistics_item_external_fulfilled: {
33370
+ Args: {
33371
+ p_order_id: string;
33372
+ p_source_line_key: string;
33373
+ };
33374
+ Returns: boolean;
33375
+ };
31904
33376
  logistics_key_product: {
31905
33377
  Args: {
31906
33378
  p_key: string;
@@ -31982,6 +33454,19 @@ export type Database = {
31982
33454
  };
31983
33455
  Returns: string;
31984
33456
  };
33457
+ logistics_nl_date: {
33458
+ Args: {
33459
+ p_day: string;
33460
+ };
33461
+ Returns: string;
33462
+ };
33463
+ logistics_nl_moment: {
33464
+ Args: {
33465
+ p_at: string;
33466
+ p_tz: string;
33467
+ };
33468
+ Returns: string;
33469
+ };
31985
33470
  logistics_normalize_product_label: {
31986
33471
  Args: {
31987
33472
  p_label: string;
@@ -32022,6 +33507,12 @@ export type Database = {
32022
33507
  };
32023
33508
  Returns: boolean;
32024
33509
  };
33510
+ logistics_order_carrier_id: {
33511
+ Args: {
33512
+ p_order_id: string;
33513
+ };
33514
+ Returns: string;
33515
+ };
32025
33516
  logistics_order_cart_approval: {
32026
33517
  Args: {
32027
33518
  _order_ref: string;
@@ -32062,6 +33553,27 @@ export type Database = {
32062
33553
  };
32063
33554
  Returns: Json;
32064
33555
  };
33556
+ logistics_order_departure: {
33557
+ Args: {
33558
+ p_order_id: string;
33559
+ };
33560
+ Returns: Json;
33561
+ };
33562
+ logistics_order_departure_list: {
33563
+ Args: {
33564
+ p_order_ids: string[];
33565
+ };
33566
+ Returns: {
33567
+ carrierId: string;
33568
+ departureAt: string;
33569
+ lateSignup: boolean;
33570
+ momentKey: string;
33571
+ ok: boolean;
33572
+ order_id: string;
33573
+ reason: string;
33574
+ signupDeadline: string;
33575
+ }[];
33576
+ };
32065
33577
  logistics_order_documents_ready: {
32066
33578
  Args: {
32067
33579
  p_order_ref: string;
@@ -32074,6 +33586,12 @@ export type Database = {
32074
33586
  };
32075
33587
  Returns: boolean;
32076
33588
  };
33589
+ logistics_order_external_state: {
33590
+ Args: {
33591
+ p_order_id: string;
33592
+ };
33593
+ Returns: Json;
33594
+ };
32077
33595
  logistics_order_finalize_enqueue: {
32078
33596
  Args: {
32079
33597
  p_order_id: string;
@@ -32118,6 +33636,12 @@ export type Database = {
32118
33636
  };
32119
33637
  Returns: number;
32120
33638
  };
33639
+ logistics_order_fp: {
33640
+ Args: {
33641
+ p_order_id: string;
33642
+ };
33643
+ Returns: string;
33644
+ };
32121
33645
  logistics_order_frozen: {
32122
33646
  Args: {
32123
33647
  p_order_id: string;
@@ -32148,6 +33672,12 @@ export type Database = {
32148
33672
  };
32149
33673
  Returns: boolean;
32150
33674
  };
33675
+ logistics_order_is_shipped_status: {
33676
+ Args: {
33677
+ p_status: string;
33678
+ };
33679
+ Returns: boolean;
33680
+ };
32151
33681
  logistics_order_is_topick: {
32152
33682
  Args: {
32153
33683
  p_order_id: string;
@@ -32223,6 +33753,26 @@ export type Database = {
32223
33753
  Returns: Json;
32224
33754
  };
32225
33755
  logistics_order_plan_coverage_list: {
33756
+ Args: {
33757
+ p_order_ids: string[];
33758
+ };
33759
+ Returns: {
33760
+ buffer_cart_count: number;
33761
+ buffer_id: string;
33762
+ buffer_order_count: number;
33763
+ cart_count: number;
33764
+ label: string;
33765
+ order_id: string;
33766
+ order_number: string;
33767
+ pick_row_count: number;
33768
+ pick_status: string;
33769
+ picked_at: string;
33770
+ progress_pct: number;
33771
+ reason: string;
33772
+ state: string;
33773
+ }[];
33774
+ };
33775
+ logistics_order_plan_coverage_list_v152: {
32226
33776
  Args: {
32227
33777
  p_order_ids: string[];
32228
33778
  };
@@ -32240,6 +33790,12 @@ export type Database = {
32240
33790
  state: string;
32241
33791
  }[];
32242
33792
  };
33793
+ logistics_order_plan_coverage_v165: {
33794
+ Args: {
33795
+ p_order_id: string;
33796
+ };
33797
+ Returns: Json;
33798
+ };
32243
33799
  logistics_order_released: {
32244
33800
  Args: {
32245
33801
  p_order_ref: string;
@@ -32252,10 +33808,21 @@ export type Database = {
32252
33808
  };
32253
33809
  Returns: Json;
32254
33810
  };
33811
+ logistics_orphan_carts_list: {
33812
+ Args: never;
33813
+ Returns: Json;
33814
+ };
32255
33815
  logistics_orphan_carts_summary: {
32256
33816
  Args: never;
32257
33817
  Returns: Json;
32258
33818
  };
33819
+ logistics_own_transport_departure: {
33820
+ Args: {
33821
+ p_delivery_date: string;
33822
+ p_pickup_at: string;
33823
+ };
33824
+ Returns: Json;
33825
+ };
32259
33826
  logistics_packing_autofix: {
32260
33827
  Args: {
32261
33828
  p_limit?: number;
@@ -32402,6 +33969,10 @@ export type Database = {
32402
33969
  unit_ref: string;
32403
33970
  }[];
32404
33971
  };
33972
+ logistics_pickup_moments_today: {
33973
+ Args: never;
33974
+ Returns: Json;
33975
+ };
32405
33976
  logistics_plan_all: {
32406
33977
  Args: {
32407
33978
  p_user_id?: string;
@@ -32726,6 +34297,12 @@ export type Database = {
32726
34297
  Args: never;
32727
34298
  Returns: number;
32728
34299
  };
34300
+ logistics_rebuffer_candidates: {
34301
+ Args: never;
34302
+ Returns: {
34303
+ order_id: string;
34304
+ }[];
34305
+ };
32729
34306
  logistics_rebuffer_open_orders: {
32730
34307
  Args: {
32731
34308
  p_strategy_id?: string;
@@ -32742,6 +34319,23 @@ export type Database = {
32742
34319
  Args: never;
32743
34320
  Returns: Json;
32744
34321
  };
34322
+ logistics_rebuffer_report: {
34323
+ Args: never;
34324
+ Returns: Json;
34325
+ };
34326
+ logistics_rebuffer_simulate_open: {
34327
+ Args: never;
34328
+ Returns: {
34329
+ buffer_id: string;
34330
+ changed: boolean;
34331
+ cur_label: string;
34332
+ delivery_date: string;
34333
+ id: string;
34334
+ new_label: string;
34335
+ order_number: string;
34336
+ reason: string;
34337
+ }[];
34338
+ };
32745
34339
  logistics_recalc_tick_kick: {
32746
34340
  Args: never;
32747
34341
  Returns: number;
@@ -32774,6 +34368,12 @@ export type Database = {
32774
34368
  };
32775
34369
  Returns: Json;
32776
34370
  };
34371
+ logistics_register_tick_apikey: {
34372
+ Args: {
34373
+ p_key: string;
34374
+ };
34375
+ Returns: Json;
34376
+ };
32777
34377
  logistics_replan_all: {
32778
34378
  Args: {
32779
34379
  p_reason?: string;
@@ -32980,6 +34580,13 @@ export type Database = {
32980
34580
  };
32981
34581
  Returns: Json;
32982
34582
  };
34583
+ logistics_sales_order_external_fulfilled: {
34584
+ Args: {
34585
+ p_order_id: string;
34586
+ p_sales_order_id: string;
34587
+ };
34588
+ Returns: boolean;
34589
+ };
32983
34590
  logistics_scan_delays: {
32984
34591
  Args: never;
32985
34592
  Returns: number;
@@ -33038,6 +34645,10 @@ export type Database = {
33038
34645
  peer_order_id: string;
33039
34646
  }[];
33040
34647
  };
34648
+ logistics_shell_base_url: {
34649
+ Args: never;
34650
+ Returns: string;
34651
+ };
33041
34652
  logistics_shift_to_workday: {
33042
34653
  Args: {
33043
34654
  p_days: string[];
@@ -33051,6 +34662,13 @@ export type Database = {
33051
34662
  };
33052
34663
  Returns: Json;
33053
34664
  };
34665
+ logistics_shipping_note_ensure_accepted: {
34666
+ Args: {
34667
+ p_limit?: number;
34668
+ p_order_id?: string;
34669
+ };
34670
+ Returns: number;
34671
+ };
33054
34672
  logistics_shipping_note_follows_slip: {
33055
34673
  Args: never;
33056
34674
  Returns: boolean;
@@ -33110,6 +34728,12 @@ export type Database = {
33110
34728
  };
33111
34729
  Returns: boolean;
33112
34730
  };
34731
+ logistics_slip_is_herprint: {
34732
+ Args: {
34733
+ p_slip_job_id: string;
34734
+ };
34735
+ Returns: boolean;
34736
+ };
33113
34737
  logistics_slip_note_claim: {
33114
34738
  Args: {
33115
34739
  _lease_seconds?: number;
@@ -33183,6 +34807,12 @@ export type Database = {
33183
34807
  };
33184
34808
  Returns: undefined;
33185
34809
  };
34810
+ logistics_slip_note_hold_read_only: {
34811
+ Args: {
34812
+ _id: string;
34813
+ };
34814
+ Returns: undefined;
34815
+ };
33186
34816
  logistics_slip_note_keep_waiting: {
33187
34817
  Args: {
33188
34818
  _class?: string;
@@ -33201,6 +34831,22 @@ export type Database = {
33201
34831
  };
33202
34832
  Returns: Json;
33203
34833
  };
34834
+ logistics_slip_note_skip_herprint: {
34835
+ Args: {
34836
+ _id: string;
34837
+ };
34838
+ Returns: undefined;
34839
+ };
34840
+ logistics_status_after_shipping: {
34841
+ Args: {
34842
+ p_status: string;
34843
+ };
34844
+ Returns: boolean;
34845
+ };
34846
+ logistics_sticker_blocked_list: {
34847
+ Args: never;
34848
+ Returns: Json;
34849
+ };
33204
34850
  logistics_sticker_cart_plek: {
33205
34851
  Args: {
33206
34852
  _cart: string;
@@ -33208,6 +34854,26 @@ export type Database = {
33208
34854
  };
33209
34855
  Returns: string;
33210
34856
  };
34857
+ logistics_sticker_distribution: {
34858
+ Args: {
34859
+ p_copies: number;
34860
+ p_order: string;
34861
+ p_trade_item: string;
34862
+ p_type: string;
34863
+ };
34864
+ Returns: {
34865
+ cart_id: string;
34866
+ crates: number;
34867
+ kopieen: number;
34868
+ pieces: number;
34869
+ }[];
34870
+ };
34871
+ logistics_sticker_external_fulfilled: {
34872
+ Args: {
34873
+ p_sticker_print_id: string;
34874
+ };
34875
+ Returns: boolean;
34876
+ };
33211
34877
  logistics_sticker_follows_slip: {
33212
34878
  Args: never;
33213
34879
  Returns: boolean;
@@ -33249,6 +34915,13 @@ export type Database = {
33249
34915
  };
33250
34916
  Returns: undefined;
33251
34917
  };
34918
+ logistics_subtract_pick_workdays: {
34919
+ Args: {
34920
+ p_day: string;
34921
+ p_days: number;
34922
+ };
34923
+ Returns: string;
34924
+ };
33252
34925
  logistics_subtract_working_minutes: {
33253
34926
  Args: {
33254
34927
  p_deadline: string;
@@ -33278,12 +34951,24 @@ export type Database = {
33278
34951
  Args: never;
33279
34952
  Returns: Json;
33280
34953
  };
34954
+ logistics_sync_stock_alert_email_status: {
34955
+ Args: {
34956
+ p_limit?: number;
34957
+ };
34958
+ Returns: Json;
34959
+ };
33281
34960
  logistics_sync_task_carriers: {
33282
34961
  Args: {
33283
34962
  p_order_ref?: string;
33284
34963
  };
33285
34964
  Returns: number;
33286
34965
  };
34966
+ logistics_sync_task_status: {
34967
+ Args: {
34968
+ p_order_ref?: string;
34969
+ };
34970
+ Returns: number;
34971
+ };
33287
34972
  logistics_task_open_counts: {
33288
34973
  Args: never;
33289
34974
  Returns: {
@@ -33334,12 +35019,20 @@ export type Database = {
33334
35019
  Args: never;
33335
35020
  Returns: string;
33336
35021
  };
35022
+ logistics_tick_runs_prune: {
35023
+ Args: never;
35024
+ Returns: number;
35025
+ };
33337
35026
  logistics_timezone_options: {
33338
35027
  Args: never;
33339
35028
  Returns: {
33340
35029
  name: string;
33341
35030
  }[];
33342
35031
  };
35032
+ logistics_today_cart_ids: {
35033
+ Args: never;
35034
+ Returns: string[];
35035
+ };
33343
35036
  logistics_trace: {
33344
35037
  Args: {
33345
35038
  p: Json;
@@ -33505,6 +35198,12 @@ export type Database = {
33505
35198
  };
33506
35199
  Returns: Json;
33507
35200
  };
35201
+ logistics_try_uuid: {
35202
+ Args: {
35203
+ p: string;
35204
+ };
35205
+ Returns: string;
35206
+ };
33508
35207
  logistics_tz: {
33509
35208
  Args: never;
33510
35209
  Returns: string;
@@ -33546,6 +35245,12 @@ export type Database = {
33546
35245
  };
33547
35246
  Returns: boolean;
33548
35247
  };
35248
+ logistics_verkoop_order_link: {
35249
+ Args: {
35250
+ p_order_id: string;
35251
+ };
35252
+ Returns: string;
35253
+ };
33549
35254
  logistics_working_hours_status: {
33550
35255
  Args: never;
33551
35256
  Returns: Json;
@@ -33562,6 +35267,14 @@ export type Database = {
33562
35267
  };
33563
35268
  Returns: number;
33564
35269
  };
35270
+ mailbox_claim_analysis: {
35271
+ Args: {
35272
+ p_force?: boolean;
35273
+ p_message_id: string;
35274
+ p_trigger?: string;
35275
+ };
35276
+ Returns: Json;
35277
+ };
33565
35278
  mark_offer_clicked: {
33566
35279
  Args: {
33567
35280
  p_code: string;
@@ -34122,6 +35835,12 @@ export type Database = {
34122
35835
  };
34123
35836
  Returns: Json;
34124
35837
  };
35838
+ pick_queue_cart_plan_v152: {
35839
+ Args: {
35840
+ _queue_item_id: string;
35841
+ };
35842
+ Returns: Json;
35843
+ };
34125
35844
  pick_reference_data_status: {
34126
35845
  Args: never;
34127
35846
  Returns: Json;
@@ -34445,6 +36164,12 @@ export type Database = {
34445
36164
  };
34446
36165
  Returns: string;
34447
36166
  };
36167
+ pick_sticker_past_controle: {
36168
+ Args: {
36169
+ p_cart_id: string;
36170
+ };
36171
+ Returns: Json;
36172
+ };
34448
36173
  pick_sync_pick_day: {
34449
36174
  Args: {
34450
36175
  _day: string;
@@ -34524,6 +36249,21 @@ export type Database = {
34524
36249
  };
34525
36250
  Returns: undefined;
34526
36251
  };
36252
+ pickstation_sticker_past_controle: {
36253
+ Args: {
36254
+ p_cart_id: string;
36255
+ p_slug: string;
36256
+ };
36257
+ Returns: Json;
36258
+ };
36259
+ pickstation_sticker_reprint: {
36260
+ Args: {
36261
+ p_cart_id: string;
36262
+ p_reden?: string;
36263
+ p_slug: string;
36264
+ };
36265
+ Returns: Json;
36266
+ };
34527
36267
  plan_standby_batch: {
34528
36268
  Args: {
34529
36269
  _items: Json;
@@ -34676,6 +36416,14 @@ export type Database = {
34676
36416
  status: string;
34677
36417
  }[];
34678
36418
  };
36419
+ print_kopieen_aantal: {
36420
+ Args: {
36421
+ _kopieen: number;
36422
+ _payload: Json;
36423
+ _type: string;
36424
+ };
36425
+ Returns: number;
36426
+ };
34679
36427
  print_preview_toestaan: {
34680
36428
  Args: {
34681
36429
  _max?: number;
@@ -34694,6 +36442,16 @@ export type Database = {
34694
36442
  };
34695
36443
  Returns: undefined;
34696
36444
  };
36445
+ print_shell_url: {
36446
+ Args: never;
36447
+ Returns: string;
36448
+ };
36449
+ print_url_norm: {
36450
+ Args: {
36451
+ _u: string;
36452
+ };
36453
+ Returns: string;
36454
+ };
34697
36455
  print_werkplek_keuze: {
34698
36456
  Args: {
34699
36457
  _documenttype: string;
@@ -34708,6 +36466,20 @@ export type Database = {
34708
36466
  };
34709
36467
  Returns: Json;
34710
36468
  };
36469
+ printer_herstel_uitvoeren: {
36470
+ Args: {
36471
+ _plek: string;
36472
+ _printer: string;
36473
+ };
36474
+ Returns: number;
36475
+ };
36476
+ printer_herstel_voorstel: {
36477
+ Args: {
36478
+ _plek: string;
36479
+ _printer: string;
36480
+ };
36481
+ Returns: number;
36482
+ };
34711
36483
  printer_routering: {
34712
36484
  Args: {
34713
36485
  _documenttype: string;
@@ -34719,6 +36491,13 @@ export type Database = {
34719
36491
  };
34720
36492
  Returns: Json;
34721
36493
  };
36494
+ printer_verwijder_verwijzingen: {
36495
+ Args: {
36496
+ _plek: string;
36497
+ _printer: string;
36498
+ };
36499
+ Returns: Json;
36500
+ };
34722
36501
  printplek_printer: {
34723
36502
  Args: {
34724
36503
  _documenttype: string;
@@ -34826,6 +36605,23 @@ export type Database = {
34826
36605
  };
34827
36606
  Returns: string;
34828
36607
  };
36608
+ productontwerp_export: {
36609
+ Args: never;
36610
+ Returns: Json;
36611
+ };
36612
+ productontwerp_import: {
36613
+ Args: {
36614
+ p_dry_run: boolean;
36615
+ p_payload: Json;
36616
+ };
36617
+ Returns: Json;
36618
+ };
36619
+ productontwerp_product_ref: {
36620
+ Args: {
36621
+ p_id: string;
36622
+ };
36623
+ Returns: Json;
36624
+ };
34829
36625
  promote_floriday_customer: {
34830
36626
  Args: {
34831
36627
  _org_id: string;
@@ -34991,6 +36787,13 @@ export type Database = {
34991
36787
  };
34992
36788
  Returns: undefined;
34993
36789
  };
36790
+ record_offer_order_failure: {
36791
+ Args: {
36792
+ p_error: string;
36793
+ p_offer_order_id: string;
36794
+ };
36795
+ Returns: undefined;
36796
+ };
34994
36797
  refresh_external_customers_grouped: {
34995
36798
  Args: never;
34996
36799
  Returns: undefined;
@@ -35127,6 +36930,10 @@ export type Database = {
35127
36930
  };
35128
36931
  Returns: string;
35129
36932
  };
36933
+ retry_offer_orders: {
36934
+ Args: never;
36935
+ Returns: number;
36936
+ };
35130
36937
  retry_twinfield_push: {
35131
36938
  Args: {
35132
36939
  _customer_id: string;
@@ -35166,6 +36973,10 @@ export type Database = {
35166
36973
  Args: never;
35167
36974
  Returns: undefined;
35168
36975
  };
36976
+ run_floriday_follow: {
36977
+ Args: never;
36978
+ Returns: undefined;
36979
+ };
35169
36980
  run_floriday_stock_queue_process: {
35170
36981
  Args: never;
35171
36982
  Returns: undefined;
@@ -35256,6 +37067,7 @@ export type Database = {
35256
37067
  scan_eindcontrole: {
35257
37068
  Args: {
35258
37069
  p_barcode: string;
37070
+ p_bevestig_niet_geprint?: boolean;
35259
37071
  p_scanner_id?: string;
35260
37072
  };
35261
37073
  Returns: Json;
@@ -35279,6 +37091,18 @@ export type Database = {
35279
37091
  };
35280
37092
  Returns: Json;
35281
37093
  };
37094
+ scan_kar_logs: {
37095
+ Args: {
37096
+ p_cart_ids: string[];
37097
+ };
37098
+ Returns: {
37099
+ created_at: string;
37100
+ kar_id: string;
37101
+ medewerker_naam: string;
37102
+ message: string;
37103
+ result: string;
37104
+ }[];
37105
+ };
35282
37106
  scan_kar_regels: {
35283
37107
  Args: {
35284
37108
  p_cart_id: string;
@@ -35296,6 +37120,7 @@ export type Database = {
35296
37120
  scan_log_code: {
35297
37121
  Args: {
35298
37122
  p_code: string;
37123
+ p_kar_id?: string;
35299
37124
  p_latency_ms?: number;
35300
37125
  p_medewerker?: string;
35301
37126
  p_message?: string;
@@ -35530,6 +37355,13 @@ export type Database = {
35530
37355
  };
35531
37356
  Returns: number;
35532
37357
  };
37358
+ schedule_floriday_customer_offers_sync: {
37359
+ Args: {
37360
+ p_apikey: string;
37361
+ p_url: string;
37362
+ };
37363
+ Returns: number;
37364
+ };
35533
37365
  schedule_floriday_customer_organizations_sync: {
35534
37366
  Args: {
35535
37367
  p_apikey: string;
@@ -35735,6 +37567,12 @@ export type Database = {
35735
37567
  };
35736
37568
  Returns: undefined;
35737
37569
  };
37570
+ set_primary_delivery_location: {
37571
+ Args: {
37572
+ p_location_id: string;
37573
+ };
37574
+ Returns: undefined;
37575
+ };
35738
37576
  set_product_stock: {
35739
37577
  Args: {
35740
37578
  p_incoming_stock?: number;
@@ -35796,6 +37634,13 @@ export type Database = {
35796
37634
  };
35797
37635
  Returns: Json;
35798
37636
  };
37637
+ sticker_past_controle: {
37638
+ Args: {
37639
+ _print_plek_id?: string;
37640
+ _sticker_ids: string[];
37641
+ };
37642
+ Returns: Json;
37643
+ };
35799
37644
  stock_import_cleanup: {
35800
37645
  Args: never;
35801
37646
  Returns: number;
@@ -35979,6 +37824,14 @@ export type Database = {
35979
37824
  };
35980
37825
  Returns: boolean;
35981
37826
  };
37827
+ twinfield_connection_offices: {
37828
+ Args: never;
37829
+ Returns: {
37830
+ connection_id: string;
37831
+ is_active: boolean;
37832
+ office_code: string;
37833
+ }[];
37834
+ };
35982
37835
  twinfield_cron_lock_acquire: {
35983
37836
  Args: {
35984
37837
  _job_name: string;
@@ -36568,6 +38421,24 @@ export type Database = {
36568
38421
  };
36569
38422
  Returns: number;
36570
38423
  };
38424
+ verkoop_create_order: {
38425
+ Args: {
38426
+ p_accept_late_signup?: boolean;
38427
+ p_accepted_by?: string;
38428
+ p_carrier_id: string;
38429
+ p_customer_id: string;
38430
+ p_customer_reference?: string;
38431
+ p_delivery_date: string;
38432
+ p_delivery_location_id: string;
38433
+ p_lines: Json;
38434
+ p_moment_key?: string;
38435
+ p_notes?: string;
38436
+ p_own_transport?: boolean;
38437
+ p_source: string;
38438
+ p_source_id: string;
38439
+ };
38440
+ Returns: Json;
38441
+ };
36571
38442
  vervang_printer: {
36572
38443
  Args: {
36573
38444
  _nieuw: string;
@@ -36589,6 +38460,20 @@ export type Database = {
36589
38460
  Args: never;
36590
38461
  Returns: Json;
36591
38462
  };
38463
+ voorraad_consume_external_fulfilled: {
38464
+ Args: {
38465
+ p_ids: string[];
38466
+ p_order_id: string;
38467
+ p_source: string;
38468
+ };
38469
+ Returns: number;
38470
+ };
38471
+ voorraad_external_fulfilled_ids: {
38472
+ Args: {
38473
+ p_cf: Json;
38474
+ };
38475
+ Returns: string[];
38476
+ };
36592
38477
  voorraad_hook_base_url: {
36593
38478
  Args: never;
36594
38479
  Returns: string;
@@ -36610,6 +38495,13 @@ export type Database = {
36610
38495
  Args: never;
36611
38496
  Returns: boolean;
36612
38497
  };
38498
+ voorraad_schema_ddl: {
38499
+ Args: {
38500
+ p_functions: string[];
38501
+ p_tables: string[];
38502
+ };
38503
+ Returns: string;
38504
+ };
36613
38505
  voorraad_week_is_past: {
36614
38506
  Args: {
36615
38507
  p_week: number;