@flowselections/logistiek-engine 1.0.7 → 1.0.9

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 (34) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/RuleEnginePage.d.ts +1 -1
  3. package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
  4. package/dist-lib/components/RuleEnginePage.js +22 -2
  5. package/dist-lib/hooks/useRecalcJob.js +1 -1
  6. package/dist-lib/hooks/useRuleEngine.d.ts.map +1 -1
  7. package/dist-lib/hooks/useRuleEngine.js +3 -1
  8. package/dist-lib/integrations/supabase/auth-attacher.js +1 -1
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts +695 -128
  10. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/client.d.ts +8 -787
  12. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.server.d.ts +695 -128
  14. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/moduleClient.d.ts +21640 -0
  16. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -0
  17. package/dist-lib/integrations/supabase/moduleClient.js +31 -0
  18. package/dist-lib/integrations/supabase/types.d.ts +727 -155
  19. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/types.js +3 -0
  21. package/dist-lib/lib/floridayDocuments.functions.d.ts +2085 -384
  22. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floridayPush.functions.d.ts +695 -128
  24. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +3505 -645
  26. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +1390 -256
  28. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +695 -128
  30. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/modulePrompts.d.ts +0 -1
  32. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  33. package/dist-lib/lib/modulePrompts.js +970 -960
  34. package/package.json +1 -1
@@ -1683,7 +1683,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1683
1683
  city: string | null;
1684
1684
  country: string | null;
1685
1685
  created_at: string;
1686
- customer_id: string;
1686
+ customer_id: string | null;
1687
1687
  external_key: string | null;
1688
1688
  external_provider: string | null;
1689
1689
  floriday_location_id: string | null;
@@ -1707,7 +1707,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1707
1707
  city?: string | null;
1708
1708
  country?: string | null;
1709
1709
  created_at?: string;
1710
- customer_id: string;
1710
+ customer_id?: string | null;
1711
1711
  external_key?: string | null;
1712
1712
  external_provider?: string | null;
1713
1713
  floriday_location_id?: string | null;
@@ -1731,7 +1731,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1731
1731
  city?: string | null;
1732
1732
  country?: string | null;
1733
1733
  created_at?: string;
1734
- customer_id?: string;
1734
+ customer_id?: string | null;
1735
1735
  external_key?: string | null;
1736
1736
  external_provider?: string | null;
1737
1737
  floriday_location_id?: string | null;
@@ -5694,17 +5694,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5694
5694
  attempts: number;
5695
5695
  connection_id: string;
5696
5696
  created_at: string;
5697
- desired_available: boolean | null;
5698
5697
  gateway_attempt_id: string | null;
5699
5698
  id: string;
5700
5699
  last_error: string | null;
5701
- locked_at: string | null;
5702
- locked_by: string | null;
5703
- next_attempt_at: string;
5704
5700
  number_of_pieces: number;
5705
5701
  sent_at: string | null;
5706
5702
  status: string;
5707
- superseded_by: string | null;
5708
5703
  trade_item_id: string;
5709
5704
  updated_at: string;
5710
5705
  user_id: string;
@@ -5713,17 +5708,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5713
5708
  attempts?: number;
5714
5709
  connection_id: string;
5715
5710
  created_at?: string;
5716
- desired_available?: boolean | null;
5717
5711
  gateway_attempt_id?: string | null;
5718
5712
  id?: string;
5719
5713
  last_error?: string | null;
5720
- locked_at?: string | null;
5721
- locked_by?: string | null;
5722
- next_attempt_at?: string;
5723
5714
  number_of_pieces?: number;
5724
5715
  sent_at?: string | null;
5725
5716
  status?: string;
5726
- superseded_by?: string | null;
5727
5717
  trade_item_id: string;
5728
5718
  updated_at?: string;
5729
5719
  user_id: string;
@@ -5732,17 +5722,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5732
5722
  attempts?: number;
5733
5723
  connection_id?: string;
5734
5724
  created_at?: string;
5735
- desired_available?: boolean | null;
5736
5725
  gateway_attempt_id?: string | null;
5737
5726
  id?: string;
5738
5727
  last_error?: string | null;
5739
- locked_at?: string | null;
5740
- locked_by?: string | null;
5741
- next_attempt_at?: string;
5742
5728
  number_of_pieces?: number;
5743
5729
  sent_at?: string | null;
5744
5730
  status?: string;
5745
- superseded_by?: string | null;
5746
5731
  trade_item_id?: string;
5747
5732
  updated_at?: string;
5748
5733
  user_id?: string;
@@ -6479,7 +6464,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6479
6464
  Row: {
6480
6465
  buyer_organization_id: string | null;
6481
6466
  connection_id: string;
6482
- controlled_at: string | null;
6483
6467
  created_at: string;
6484
6468
  data: import("./types").Json;
6485
6469
  floriday_id: string;
@@ -6491,7 +6475,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6491
6475
  Insert: {
6492
6476
  buyer_organization_id?: string | null;
6493
6477
  connection_id: string;
6494
- controlled_at?: string | null;
6495
6478
  created_at?: string;
6496
6479
  data: import("./types").Json;
6497
6480
  floriday_id: string;
@@ -6503,7 +6486,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6503
6486
  Update: {
6504
6487
  buyer_organization_id?: string | null;
6505
6488
  connection_id?: string;
6506
- controlled_at?: string | null;
6507
6489
  created_at?: string;
6508
6490
  data?: import("./types").Json;
6509
6491
  floriday_id?: string;
@@ -7405,54 +7387,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7405
7387
  };
7406
7388
  Relationships: [];
7407
7389
  };
7408
- invoice_timing_settings: {
7409
- Row: {
7410
- anchor: string;
7411
- business_days_only: boolean;
7412
- created_at: string;
7413
- enabled: boolean;
7414
- id: string;
7415
- offset_days: number;
7416
- pickup_anchor: string;
7417
- pickup_business_days_only: boolean;
7418
- pickup_offset_days: number;
7419
- pickup_time_of_day: string;
7420
- singleton: boolean;
7421
- time_of_day: string;
7422
- updated_at: string;
7423
- };
7424
- Insert: {
7425
- anchor?: string;
7426
- business_days_only?: boolean;
7427
- created_at?: string;
7428
- enabled?: boolean;
7429
- id?: string;
7430
- offset_days?: number;
7431
- pickup_anchor?: string;
7432
- pickup_business_days_only?: boolean;
7433
- pickup_offset_days?: number;
7434
- pickup_time_of_day?: string;
7435
- singleton?: boolean;
7436
- time_of_day?: string;
7437
- updated_at?: string;
7438
- };
7439
- Update: {
7440
- anchor?: string;
7441
- business_days_only?: boolean;
7442
- created_at?: string;
7443
- enabled?: boolean;
7444
- id?: string;
7445
- offset_days?: number;
7446
- pickup_anchor?: string;
7447
- pickup_business_days_only?: boolean;
7448
- pickup_offset_days?: number;
7449
- pickup_time_of_day?: string;
7450
- singleton?: boolean;
7451
- time_of_day?: string;
7452
- updated_at?: string;
7453
- };
7454
- Relationships: [];
7455
- };
7456
7390
  itk_contact_persons: {
7457
7391
  Row: {
7458
7392
  created_at: string;
@@ -8542,69 +8476,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8542
8476
  };
8543
8477
  Relationships: [];
8544
8478
  };
8545
- logistics_floriday_pushes: {
8546
- Row: {
8547
- attempts: number;
8548
- created_at: string;
8549
- first_queued_at: string;
8550
- fulfillment_order_id: string | null;
8551
- id: string;
8552
- last_error: string | null;
8553
- last_error_at: string | null;
8554
- last_sent_hash: string | null;
8555
- locked_by: string | null;
8556
- locked_until: string | null;
8557
- next_attempt_at: string;
8558
- order_ref: string;
8559
- payload: import("./types").Json;
8560
- payload_hash: string | null;
8561
- revision: number;
8562
- sent_at: string | null;
8563
- status: string;
8564
- updated_at: string;
8565
- };
8566
- Insert: {
8567
- attempts?: number;
8568
- created_at?: string;
8569
- first_queued_at?: string;
8570
- fulfillment_order_id?: string | null;
8571
- id?: string;
8572
- last_error?: string | null;
8573
- last_error_at?: string | null;
8574
- last_sent_hash?: string | null;
8575
- locked_by?: string | null;
8576
- locked_until?: string | null;
8577
- next_attempt_at?: string;
8578
- order_ref: string;
8579
- payload?: import("./types").Json;
8580
- payload_hash?: string | null;
8581
- revision?: number;
8582
- sent_at?: string | null;
8583
- status?: string;
8584
- updated_at?: string;
8585
- };
8586
- Update: {
8587
- attempts?: number;
8588
- created_at?: string;
8589
- first_queued_at?: string;
8590
- fulfillment_order_id?: string | null;
8591
- id?: string;
8592
- last_error?: string | null;
8593
- last_error_at?: string | null;
8594
- last_sent_hash?: string | null;
8595
- locked_by?: string | null;
8596
- locked_until?: string | null;
8597
- next_attempt_at?: string;
8598
- order_ref?: string;
8599
- payload?: import("./types").Json;
8600
- payload_hash?: string | null;
8601
- revision?: number;
8602
- sent_at?: string | null;
8603
- status?: string;
8604
- updated_at?: string;
8605
- };
8606
- Relationships: [];
8607
- };
8608
8479
  logistics_formulas: {
8609
8480
  Row: {
8610
8481
  created_at: string;
@@ -8683,45 +8554,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8683
8554
  };
8684
8555
  Relationships: [];
8685
8556
  };
8686
- logistics_plan_queue: {
8687
- Row: {
8688
- attempts: number;
8689
- claimed_at: string | null;
8690
- enqueued_at: string;
8691
- error: string | null;
8692
- id: string;
8693
- next_attempt_at: string;
8694
- order_id: string;
8695
- reason: string;
8696
- status: string;
8697
- updated_at: string;
8698
- };
8699
- Insert: {
8700
- attempts?: number;
8701
- claimed_at?: string | null;
8702
- enqueued_at?: string;
8703
- error?: string | null;
8704
- id?: string;
8705
- next_attempt_at?: string;
8706
- order_id: string;
8707
- reason?: string;
8708
- status?: string;
8709
- updated_at?: string;
8710
- };
8711
- Update: {
8712
- attempts?: number;
8713
- claimed_at?: string | null;
8714
- enqueued_at?: string;
8715
- error?: string | null;
8716
- id?: string;
8717
- next_attempt_at?: string;
8718
- order_id?: string;
8719
- reason?: string;
8720
- status?: string;
8721
- updated_at?: string;
8722
- };
8723
- Relationships: [];
8724
- };
8725
8557
  logistics_plan_runs: {
8726
8558
  Row: {
8727
8559
  created_at: string;
@@ -8797,24 +8629,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8797
8629
  referencedColumns: ["id"];
8798
8630
  }];
8799
8631
  };
8800
- logistics_plan_settings: {
8801
- Row: {
8802
- key: string;
8803
- updated_at: string;
8804
- value: string;
8805
- };
8806
- Insert: {
8807
- key: string;
8808
- updated_at?: string;
8809
- value: string;
8810
- };
8811
- Update: {
8812
- key?: string;
8813
- updated_at?: string;
8814
- value?: string;
8815
- };
8816
- Relationships: [];
8817
- };
8818
8632
  logistics_rebuffer_state: {
8819
8633
  Row: {
8820
8634
  created_at: string;
@@ -9273,8 +9087,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9273
9087
  };
9274
9088
  logistics_tasks: {
9275
9089
  Row: {
9276
- attempt_log: import("./types").Json;
9277
- attempts: number;
9278
9090
  buffer_ref: string | null;
9279
9091
  claimed_at: string | null;
9280
9092
  claimed_by: string | null;
@@ -9284,8 +9096,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9284
9096
  due_at: string | null;
9285
9097
  error: string | null;
9286
9098
  id: string;
9287
- last_error: string | null;
9288
- next_attempt_at: string | null;
9289
9099
  order_ref: string;
9290
9100
  owner_module: string;
9291
9101
  payload: import("./types").Json;
@@ -9306,8 +9116,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9306
9116
  user_id: string;
9307
9117
  };
9308
9118
  Insert: {
9309
- attempt_log?: import("./types").Json;
9310
- attempts?: number;
9311
9119
  buffer_ref?: string | null;
9312
9120
  claimed_at?: string | null;
9313
9121
  claimed_by?: string | null;
@@ -9317,8 +9125,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9317
9125
  due_at?: string | null;
9318
9126
  error?: string | null;
9319
9127
  id?: string;
9320
- last_error?: string | null;
9321
- next_attempt_at?: string | null;
9322
9128
  order_ref: string;
9323
9129
  owner_module: string;
9324
9130
  payload?: import("./types").Json;
@@ -9339,8 +9145,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9339
9145
  user_id?: string;
9340
9146
  };
9341
9147
  Update: {
9342
- attempt_log?: import("./types").Json;
9343
- attempts?: number;
9344
9148
  buffer_ref?: string | null;
9345
9149
  claimed_at?: string | null;
9346
9150
  claimed_by?: string | null;
@@ -9350,8 +9154,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9350
9154
  due_at?: string | null;
9351
9155
  error?: string | null;
9352
9156
  id?: string;
9353
- last_error?: string | null;
9354
- next_attempt_at?: string | null;
9355
9157
  order_ref?: string;
9356
9158
  owner_module?: string;
9357
9159
  payload?: import("./types").Json;
@@ -9525,17 +9327,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9525
9327
  };
9526
9328
  mailbox_messages: {
9527
9329
  Row: {
9528
- attachments: import("./types").Json;
9529
9330
  body_html: string | null;
9530
9331
  body_text: string | null;
9531
- cc_recipients: import("./types").Json;
9532
9332
  connection_id: string | null;
9533
9333
  created_at: string;
9534
9334
  error_message: string | null;
9535
9335
  external_id: string | null;
9536
9336
  from_email: string | null;
9537
9337
  from_name: string | null;
9538
- has_attachments: boolean;
9539
9338
  id: string;
9540
9339
  message_id: string | null;
9541
9340
  profile_id: string | null;
@@ -9543,22 +9342,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9543
9342
  received_at: string | null;
9544
9343
  status: string;
9545
9344
  subject: string | null;
9546
- to_recipients: import("./types").Json;
9547
9345
  uid: number | null;
9548
9346
  updated_at: string;
9549
9347
  };
9550
9348
  Insert: {
9551
- attachments?: import("./types").Json;
9552
9349
  body_html?: string | null;
9553
9350
  body_text?: string | null;
9554
- cc_recipients?: import("./types").Json;
9555
9351
  connection_id?: string | null;
9556
9352
  created_at?: string;
9557
9353
  error_message?: string | null;
9558
9354
  external_id?: string | null;
9559
9355
  from_email?: string | null;
9560
9356
  from_name?: string | null;
9561
- has_attachments?: boolean;
9562
9357
  id?: string;
9563
9358
  message_id?: string | null;
9564
9359
  profile_id?: string | null;
@@ -9566,22 +9361,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9566
9361
  received_at?: string | null;
9567
9362
  status?: string;
9568
9363
  subject?: string | null;
9569
- to_recipients?: import("./types").Json;
9570
9364
  uid?: number | null;
9571
9365
  updated_at?: string;
9572
9366
  };
9573
9367
  Update: {
9574
- attachments?: import("./types").Json;
9575
9368
  body_html?: string | null;
9576
9369
  body_text?: string | null;
9577
- cc_recipients?: import("./types").Json;
9578
9370
  connection_id?: string | null;
9579
9371
  created_at?: string;
9580
9372
  error_message?: string | null;
9581
9373
  external_id?: string | null;
9582
9374
  from_email?: string | null;
9583
9375
  from_name?: string | null;
9584
- has_attachments?: boolean;
9585
9376
  id?: string;
9586
9377
  message_id?: string | null;
9587
9378
  profile_id?: string | null;
@@ -9589,7 +9380,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9589
9380
  received_at?: string | null;
9590
9381
  status?: string;
9591
9382
  subject?: string | null;
9592
- to_recipients?: import("./types").Json;
9593
9383
  uid?: number | null;
9594
9384
  updated_at?: string;
9595
9385
  };
@@ -9997,36 +9787,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9997
9787
  };
9998
9788
  Relationships: [];
9999
9789
  };
10000
- module_registry: {
10001
- Row: {
10002
- created_at: string;
10003
- is_active: boolean;
10004
- last_seen_at: string;
10005
- module_id: string;
10006
- name: string;
10007
- shell_id: string | null;
10008
- sort_order: number | null;
10009
- };
10010
- Insert: {
10011
- created_at?: string;
10012
- is_active?: boolean;
10013
- last_seen_at?: string;
10014
- module_id: string;
10015
- name: string;
10016
- shell_id?: string | null;
10017
- sort_order?: number | null;
10018
- };
10019
- Update: {
10020
- created_at?: string;
10021
- is_active?: boolean;
10022
- last_seen_at?: string;
10023
- module_id?: string;
10024
- name?: string;
10025
- shell_id?: string | null;
10026
- sort_order?: number | null;
10027
- };
10028
- Relationships: [];
10029
- };
10030
9790
  module_runtime_config: {
10031
9791
  Row: {
10032
9792
  key: string;
@@ -10743,7 +10503,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10743
10503
  };
10744
10504
  offer_settings: {
10745
10505
  Row: {
10746
- brand_name: string | null;
10747
10506
  button_color: string;
10748
10507
  created_at: string;
10749
10508
  default_countries: string[];
@@ -10765,7 +10524,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10765
10524
  updated_at: string;
10766
10525
  };
10767
10526
  Insert: {
10768
- brand_name?: string | null;
10769
10527
  button_color?: string;
10770
10528
  created_at?: string;
10771
10529
  default_countries?: string[];
@@ -10787,7 +10545,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10787
10545
  updated_at?: string;
10788
10546
  };
10789
10547
  Update: {
10790
- brand_name?: string | null;
10791
10548
  button_color?: string;
10792
10549
  created_at?: string;
10793
10550
  default_countries?: string[];
@@ -11086,45 +10843,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11086
10843
  };
11087
10844
  Relationships: [];
11088
10845
  };
11089
- order_invoice_links: {
11090
- Row: {
11091
- attempts: number;
11092
- created_at: string;
11093
- error_message: string | null;
11094
- id: string;
11095
- invoice_number: string | null;
11096
- next_attempt_at: string;
11097
- order_id: string;
11098
- processed_at: string | null;
11099
- status: string;
11100
- updated_at: string;
11101
- };
11102
- Insert: {
11103
- attempts?: number;
11104
- created_at?: string;
11105
- error_message?: string | null;
11106
- id?: string;
11107
- invoice_number?: string | null;
11108
- next_attempt_at?: string;
11109
- order_id: string;
11110
- processed_at?: string | null;
11111
- status?: string;
11112
- updated_at?: string;
11113
- };
11114
- Update: {
11115
- attempts?: number;
11116
- created_at?: string;
11117
- error_message?: string | null;
11118
- id?: string;
11119
- invoice_number?: string | null;
11120
- next_attempt_at?: string;
11121
- order_id?: string;
11122
- processed_at?: string | null;
11123
- status?: string;
11124
- updated_at?: string;
11125
- };
11126
- Relationships: [];
11127
- };
11128
10846
  order_items: {
11129
10847
  Row: {
11130
10848
  crates_per_layer: number | null;
@@ -11307,7 +11025,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11307
11025
  delivery_date: string | null;
11308
11026
  floriday_sales_order_id: string | null;
11309
11027
  id: string;
11310
- invoice_due_at: string | null;
11311
11028
  is_reservation: boolean;
11312
11029
  notes: string | null;
11313
11030
  order_date: string;
@@ -11329,7 +11046,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11329
11046
  delivery_date?: string | null;
11330
11047
  floriday_sales_order_id?: string | null;
11331
11048
  id?: string;
11332
- invoice_due_at?: string | null;
11333
11049
  is_reservation?: boolean;
11334
11050
  notes?: string | null;
11335
11051
  order_date?: string;
@@ -11351,7 +11067,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11351
11067
  delivery_date?: string | null;
11352
11068
  floriday_sales_order_id?: string | null;
11353
11069
  id?: string;
11354
- invoice_due_at?: string | null;
11355
11070
  is_reservation?: boolean;
11356
11071
  notes?: string | null;
11357
11072
  order_date?: string;
@@ -12548,27 +12263,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12548
12263
  created_at: string;
12549
12264
  documentnaam: string;
12550
12265
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12551
- extern_job_id: string | null;
12552
12266
  foutmelding: string | null;
12553
12267
  gebruiker_id: string | null;
12554
12268
  gebruiker_naam: string;
12555
12269
  gestart_op: string | null;
12556
12270
  id: string;
12557
- idempotentie_sleutel: string | null;
12558
12271
  is_herprint: boolean;
12559
12272
  kopieen: number;
12560
12273
  layout_id: string | null;
12561
12274
  opgepakt_op: string | null;
12562
12275
  paginas: number;
12563
12276
  payload: import("./types").Json;
12564
- pdf_base64: string | null;
12565
- pdf_url: string | null;
12566
12277
  pogingen: number;
12567
12278
  printer_id: string | null;
12568
12279
  render_html: string | null;
12569
12280
  status: Database["public"]["Enums"]["print_job_status"];
12570
12281
  updated_at: string;
12571
- volgende_poging: string | null;
12572
12282
  voltooid_op: string | null;
12573
12283
  };
12574
12284
  Insert: {
@@ -12577,27 +12287,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12577
12287
  created_at?: string;
12578
12288
  documentnaam?: string;
12579
12289
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12580
- extern_job_id?: string | null;
12581
12290
  foutmelding?: string | null;
12582
12291
  gebruiker_id?: string | null;
12583
12292
  gebruiker_naam?: string;
12584
12293
  gestart_op?: string | null;
12585
12294
  id?: string;
12586
- idempotentie_sleutel?: string | null;
12587
12295
  is_herprint?: boolean;
12588
12296
  kopieen?: number;
12589
12297
  layout_id?: string | null;
12590
12298
  opgepakt_op?: string | null;
12591
12299
  paginas?: number;
12592
12300
  payload?: import("./types").Json;
12593
- pdf_base64?: string | null;
12594
- pdf_url?: string | null;
12595
12301
  pogingen?: number;
12596
12302
  printer_id?: string | null;
12597
12303
  render_html?: string | null;
12598
12304
  status?: Database["public"]["Enums"]["print_job_status"];
12599
12305
  updated_at?: string;
12600
- volgende_poging?: string | null;
12601
12306
  voltooid_op?: string | null;
12602
12307
  };
12603
12308
  Update: {
@@ -12606,27 +12311,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12606
12311
  created_at?: string;
12607
12312
  documentnaam?: string;
12608
12313
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12609
- extern_job_id?: string | null;
12610
12314
  foutmelding?: string | null;
12611
12315
  gebruiker_id?: string | null;
12612
12316
  gebruiker_naam?: string;
12613
12317
  gestart_op?: string | null;
12614
12318
  id?: string;
12615
- idempotentie_sleutel?: string | null;
12616
12319
  is_herprint?: boolean;
12617
12320
  kopieen?: number;
12618
12321
  layout_id?: string | null;
12619
12322
  opgepakt_op?: string | null;
12620
12323
  paginas?: number;
12621
12324
  payload?: import("./types").Json;
12622
- pdf_base64?: string | null;
12623
- pdf_url?: string | null;
12624
12325
  pogingen?: number;
12625
12326
  printer_id?: string | null;
12626
12327
  render_html?: string | null;
12627
12328
  status?: Database["public"]["Enums"]["print_job_status"];
12628
12329
  updated_at?: string;
12629
- volgende_poging?: string | null;
12630
12330
  voltooid_op?: string | null;
12631
12331
  };
12632
12332
  Relationships: [{
@@ -12649,63 +12349,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12649
12349
  referencedColumns: ["id"];
12650
12350
  }];
12651
12351
  };
12652
- print_queue_runners: {
12653
- Row: {
12654
- actief: boolean;
12655
- basis_url: string;
12656
- created_at: string;
12657
- id: string;
12658
- laatst_gezien: string;
12659
- tick_sleutel: string;
12660
- updated_at: string;
12661
- };
12662
- Insert: {
12663
- actief?: boolean;
12664
- basis_url: string;
12665
- created_at?: string;
12666
- id?: string;
12667
- laatst_gezien?: string;
12668
- tick_sleutel?: string;
12669
- updated_at?: string;
12670
- };
12671
- Update: {
12672
- actief?: boolean;
12673
- basis_url?: string;
12674
- created_at?: string;
12675
- id?: string;
12676
- laatst_gezien?: string;
12677
- tick_sleutel?: string;
12678
- updated_at?: string;
12679
- };
12680
- Relationships: [];
12681
- };
12682
- print_queue_settings: {
12683
- Row: {
12684
- bewaar_bestanden_dagen: number;
12685
- bewaar_opdrachten_dagen: number;
12686
- created_at: string;
12687
- dubbel_venster_minuten: number;
12688
- id: string;
12689
- updated_at: string;
12690
- };
12691
- Insert: {
12692
- bewaar_bestanden_dagen?: number;
12693
- bewaar_opdrachten_dagen?: number;
12694
- created_at?: string;
12695
- dubbel_venster_minuten?: number;
12696
- id?: string;
12697
- updated_at?: string;
12698
- };
12699
- Update: {
12700
- bewaar_bestanden_dagen?: number;
12701
- bewaar_opdrachten_dagen?: number;
12702
- created_at?: string;
12703
- dubbel_venster_minuten?: number;
12704
- id?: string;
12705
- updated_at?: string;
12706
- };
12707
- Relationships: [];
12708
- };
12709
12352
  print_rules: {
12710
12353
  Row: {
12711
12354
  actief: boolean;
@@ -12866,7 +12509,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12866
12509
  agent_id: string | null;
12867
12510
  created_at: string;
12868
12511
  driver: string;
12869
- extern_printer_id: string | null;
12870
12512
  id: string;
12871
12513
  ip_adres: string | null;
12872
12514
  laatst_gezien: string | null;
@@ -12888,7 +12530,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12888
12530
  agent_id?: string | null;
12889
12531
  created_at?: string;
12890
12532
  driver?: string;
12891
- extern_printer_id?: string | null;
12892
12533
  id?: string;
12893
12534
  ip_adres?: string | null;
12894
12535
  laatst_gezien?: string | null;
@@ -12910,7 +12551,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12910
12551
  agent_id?: string | null;
12911
12552
  created_at?: string;
12912
12553
  driver?: string;
12913
- extern_printer_id?: string | null;
12914
12554
  id?: string;
12915
12555
  ip_adres?: string | null;
12916
12556
  laatst_gezien?: string | null;
@@ -15546,8 +15186,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15546
15186
  };
15547
15187
  twinfield_invoice_settings: {
15548
15188
  Row: {
15549
- auto_invoice_enabled: boolean;
15550
- auto_invoice_trigger_statuses: string[];
15551
15189
  created_at: string;
15552
15190
  debtor_gl_account: string;
15553
15191
  default_credit_invoice_type: string | null;
@@ -15568,8 +15206,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15568
15206
  vat_code_export: string | null;
15569
15207
  };
15570
15208
  Insert: {
15571
- auto_invoice_enabled?: boolean;
15572
- auto_invoice_trigger_statuses?: string[];
15573
15209
  created_at?: string;
15574
15210
  debtor_gl_account?: string;
15575
15211
  default_credit_invoice_type?: string | null;
@@ -15590,8 +15226,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15590
15226
  vat_code_export?: string | null;
15591
15227
  };
15592
15228
  Update: {
15593
- auto_invoice_enabled?: boolean;
15594
- auto_invoice_trigger_statuses?: string[];
15595
15229
  created_at?: string;
15596
15230
  debtor_gl_account?: string;
15597
15231
  default_credit_invoice_type?: string | null;
@@ -16654,50 +16288,23 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16654
16288
  referencedColumns: ["id"];
16655
16289
  }];
16656
16290
  };
16657
- user_module_permissions: {
16291
+ user_roles: {
16658
16292
  Row: {
16659
16293
  created_at: string;
16660
16294
  id: string;
16661
- module_id: string;
16662
- permission: string;
16663
- updated_at: string;
16295
+ role: Database["public"]["Enums"]["app_role"];
16664
16296
  user_id: string;
16665
16297
  };
16666
16298
  Insert: {
16667
16299
  created_at?: string;
16668
16300
  id?: string;
16669
- module_id: string;
16670
- permission: string;
16671
- updated_at?: string;
16301
+ role: Database["public"]["Enums"]["app_role"];
16672
16302
  user_id: string;
16673
16303
  };
16674
16304
  Update: {
16675
16305
  created_at?: string;
16676
16306
  id?: string;
16677
- module_id?: string;
16678
- permission?: string;
16679
- updated_at?: string;
16680
- user_id?: string;
16681
- };
16682
- Relationships: [];
16683
- };
16684
- user_roles: {
16685
- Row: {
16686
- created_at: string;
16687
- id: string;
16688
- role: Database["public"]["Enums"]["app_role"];
16689
- user_id: string;
16690
- };
16691
- Insert: {
16692
- created_at?: string;
16693
- id?: string;
16694
- role: Database["public"]["Enums"]["app_role"];
16695
- user_id: string;
16696
- };
16697
- Update: {
16698
- created_at?: string;
16699
- id?: string;
16700
- role?: Database["public"]["Enums"]["app_role"];
16307
+ role?: Database["public"]["Enums"]["app_role"];
16701
16308
  user_id?: string;
16702
16309
  };
16703
16310
  Relationships: [{
@@ -18514,10 +18121,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18514
18121
  processed_items: number;
18515
18122
  }[];
18516
18123
  };
18517
- backfill_order_auto_invoice_queue: {
18518
- Args: never;
18519
- Returns: number;
18520
- };
18521
18124
  calculate_layer_stock: {
18522
18125
  Args: {
18523
18126
  p_product_id: string;
@@ -18552,125 +18155,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18552
18155
  };
18553
18156
  Returns: import("./types").Json;
18554
18157
  };
18555
- claim_cloud_print_jobs: {
18556
- Args: {
18557
- _max?: number;
18558
- };
18559
- Returns: {
18560
- agent_id: string | null;
18561
- bron_job_id: string | null;
18562
- created_at: string;
18563
- documentnaam: string;
18564
- documenttype: Database["public"]["Enums"]["doc_layout_type"];
18565
- extern_job_id: string | null;
18566
- foutmelding: string | null;
18567
- gebruiker_id: string | null;
18568
- gebruiker_naam: string;
18569
- gestart_op: string | null;
18570
- id: string;
18571
- idempotentie_sleutel: string | null;
18572
- is_herprint: boolean;
18573
- kopieen: number;
18574
- layout_id: string | null;
18575
- opgepakt_op: string | null;
18576
- paginas: number;
18577
- payload: import("./types").Json;
18578
- pdf_base64: string | null;
18579
- pdf_url: string | null;
18580
- pogingen: number;
18581
- printer_id: string | null;
18582
- render_html: string | null;
18583
- status: Database["public"]["Enums"]["print_job_status"];
18584
- updated_at: string;
18585
- volgende_poging: string | null;
18586
- voltooid_op: string | null;
18587
- }[];
18588
- SetofOptions: {
18589
- from: "*";
18590
- to: "print_jobs";
18591
- isOneToOne: false;
18592
- isSetofReturn: true;
18593
- };
18594
- };
18595
- claim_floriday_stock_queue: {
18596
- Args: {
18597
- p_limit?: number;
18598
- p_worker?: string;
18599
- };
18600
- Returns: {
18601
- attempts: number;
18602
- connection_id: string;
18603
- created_at: string;
18604
- desired_available: boolean | null;
18605
- gateway_attempt_id: string | null;
18606
- id: string;
18607
- last_error: string | null;
18608
- locked_at: string | null;
18609
- locked_by: string | null;
18610
- next_attempt_at: string;
18611
- number_of_pieces: number;
18612
- sent_at: string | null;
18613
- status: string;
18614
- superseded_by: string | null;
18615
- trade_item_id: string;
18616
- updated_at: string;
18617
- user_id: string;
18618
- }[];
18619
- SetofOptions: {
18620
- from: "*";
18621
- to: "floriday_continuous_stock_queue";
18622
- isOneToOne: false;
18623
- isSetofReturn: true;
18624
- };
18625
- };
18626
- claim_logistics_tasks: {
18627
- Args: {
18628
- _limit?: number;
18629
- _owner_module: string;
18630
- _stale_minutes?: number;
18631
- _task_type: string;
18632
- _worker: string;
18633
- };
18634
- Returns: {
18635
- attempt_log: import("./types").Json;
18636
- attempts: number;
18637
- buffer_ref: string | null;
18638
- claimed_at: string | null;
18639
- claimed_by: string | null;
18640
- completed_at: string | null;
18641
- created_at: string;
18642
- depends_on: string[];
18643
- due_at: string | null;
18644
- error: string | null;
18645
- id: string;
18646
- last_error: string | null;
18647
- next_attempt_at: string | null;
18648
- order_ref: string;
18649
- owner_module: string;
18650
- payload: import("./types").Json;
18651
- plan_run_id: string | null;
18652
- planned_end: string | null;
18653
- planned_start: string | null;
18654
- priority: number;
18655
- result: import("./types").Json | null;
18656
- rule_config_id: string | null;
18657
- rule_version: number | null;
18658
- sequence: number;
18659
- shadow: boolean;
18660
- started_at: string | null;
18661
- status: string;
18662
- strategy_id: string | null;
18663
- task_type: string;
18664
- updated_at: string;
18665
- user_id: string;
18666
- }[];
18667
- SetofOptions: {
18668
- from: "*";
18669
- to: "logistics_tasks";
18670
- isOneToOne: false;
18671
- isSetofReturn: true;
18672
- };
18673
- };
18674
18158
  claim_print_jobs: {
18675
18159
  Args: {
18676
18160
  _agent_id: string;
@@ -18682,27 +18166,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18682
18166
  created_at: string;
18683
18167
  documentnaam: string;
18684
18168
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
18685
- extern_job_id: string | null;
18686
18169
  foutmelding: string | null;
18687
18170
  gebruiker_id: string | null;
18688
18171
  gebruiker_naam: string;
18689
18172
  gestart_op: string | null;
18690
18173
  id: string;
18691
- idempotentie_sleutel: string | null;
18692
18174
  is_herprint: boolean;
18693
18175
  kopieen: number;
18694
18176
  layout_id: string | null;
18695
18177
  opgepakt_op: string | null;
18696
18178
  paginas: number;
18697
18179
  payload: import("./types").Json;
18698
- pdf_base64: string | null;
18699
- pdf_url: string | null;
18700
18180
  pogingen: number;
18701
18181
  printer_id: string | null;
18702
18182
  render_html: string | null;
18703
18183
  status: Database["public"]["Enums"]["print_job_status"];
18704
18184
  updated_at: string;
18705
- volgende_poging: string | null;
18706
18185
  voltooid_op: string | null;
18707
18186
  }[];
18708
18187
  SetofOptions: {
@@ -18740,28 +18219,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18740
18219
  isSetofReturn: true;
18741
18220
  };
18742
18221
  };
18743
- cleanup_floriday_stock_queue: {
18744
- Args: never;
18745
- Returns: undefined;
18746
- };
18747
18222
  cleanup_old_bookings: {
18748
18223
  Args: never;
18749
18224
  Returns: undefined;
18750
18225
  };
18751
- cleanup_voorraad_module_history: {
18752
- Args: never;
18753
- Returns: undefined;
18754
- };
18755
- complete_floriday_stock_queue: {
18756
- Args: {
18757
- p_attempt_id?: string;
18758
- p_error?: string;
18759
- p_id: string;
18760
- p_ok: boolean;
18761
- p_permanent?: boolean;
18762
- };
18763
- Returns: undefined;
18764
- };
18765
18226
  consume_bom_for_production: {
18766
18227
  Args: {
18767
18228
  p_connection_id: string;
@@ -18873,13 +18334,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18873
18334
  };
18874
18335
  Returns: import("./types").Json;
18875
18336
  };
18876
- effective_module_permission: {
18877
- Args: {
18878
- _module_id: string;
18879
- _user_id: string;
18880
- };
18881
- Returns: string;
18882
- };
18883
18337
  email_auth_decrypt: {
18884
18338
  Args: {
18885
18339
  cipher: string;
@@ -19165,10 +18619,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19165
18619
  };
19166
18620
  Returns: number;
19167
18621
  };
19168
- get_offer_branding: {
19169
- Args: never;
19170
- Returns: import("./types").Json;
19171
- };
19172
18622
  get_offer_by_link_code: {
19173
18623
  Args: {
19174
18624
  p_code: string;
@@ -19460,8 +18910,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19460
18910
  p_worker?: string;
19461
18911
  };
19462
18912
  Returns: {
19463
- attempt_log: import("./types").Json;
19464
- attempts: number;
19465
18913
  buffer_ref: string | null;
19466
18914
  claimed_at: string | null;
19467
18915
  claimed_by: string | null;
@@ -19471,8 +18919,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19471
18919
  due_at: string | null;
19472
18920
  error: string | null;
19473
18921
  id: string;
19474
- last_error: string | null;
19475
- next_attempt_at: string | null;
19476
18922
  order_ref: string;
19477
18923
  owner_module: string;
19478
18924
  payload: import("./types").Json;
@@ -19505,8 +18951,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19505
18951
  p_worker?: string;
19506
18952
  };
19507
18953
  Returns: {
19508
- attempt_log: import("./types").Json;
19509
- attempts: number;
19510
18954
  buffer_ref: string | null;
19511
18955
  claimed_at: string | null;
19512
18956
  claimed_by: string | null;
@@ -19516,8 +18960,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19516
18960
  due_at: string | null;
19517
18961
  error: string | null;
19518
18962
  id: string;
19519
- last_error: string | null;
19520
- next_attempt_at: string | null;
19521
18963
  order_ref: string;
19522
18964
  owner_module: string;
19523
18965
  payload: import("./types").Json;
@@ -19550,8 +18992,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19550
18992
  p_task_id: string;
19551
18993
  };
19552
18994
  Returns: {
19553
- attempt_log: import("./types").Json;
19554
- attempts: number;
19555
18995
  buffer_ref: string | null;
19556
18996
  claimed_at: string | null;
19557
18997
  claimed_by: string | null;
@@ -19561,8 +19001,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19561
19001
  due_at: string | null;
19562
19002
  error: string | null;
19563
19003
  id: string;
19564
- last_error: string | null;
19565
- next_attempt_at: string | null;
19566
19004
  order_ref: string;
19567
19005
  owner_module: string;
19568
19006
  payload: import("./types").Json;
@@ -19644,8 +19082,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19644
19082
  p_task_id: string;
19645
19083
  };
19646
19084
  Returns: {
19647
- attempt_log: import("./types").Json;
19648
- attempts: number;
19649
19085
  buffer_ref: string | null;
19650
19086
  claimed_at: string | null;
19651
19087
  claimed_by: string | null;
@@ -19655,8 +19091,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19655
19091
  due_at: string | null;
19656
19092
  error: string | null;
19657
19093
  id: string;
19658
- last_error: string | null;
19659
- next_attempt_at: string | null;
19660
19094
  order_ref: string;
19661
19095
  owner_module: string;
19662
19096
  payload: import("./types").Json;
@@ -19683,51 +19117,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19683
19117
  isSetofReturn: false;
19684
19118
  };
19685
19119
  };
19686
- logistics_floriday_claim_pushes: {
19687
- Args: {
19688
- _lease_seconds?: number;
19689
- _limit?: number;
19690
- _worker?: string;
19691
- };
19692
- Returns: {
19693
- attempts: number;
19694
- fulfillment_order_id: string;
19695
- id: string;
19696
- last_sent_hash: string;
19697
- order_ref: string;
19698
- payload: import("./types").Json;
19699
- payload_hash: string;
19700
- revision: number;
19701
- }[];
19702
- };
19703
- logistics_floriday_finish_push: {
19704
- Args: {
19705
- _error?: string;
19706
- _fulfillment_order_id?: string;
19707
- _id: string;
19708
- _max_age_hours?: number;
19709
- _max_attempts?: number;
19710
- _ok: boolean;
19711
- _permanent?: boolean;
19712
- _revision: number;
19713
- _sent_hash?: string;
19714
- };
19715
- Returns: string;
19716
- };
19717
- logistics_floriday_prune_pushes: {
19718
- Args: {
19719
- _days?: number;
19720
- };
19721
- Returns: number;
19722
- };
19723
- logistics_floriday_queue_push: {
19724
- Args: {
19725
- _order_ref: string;
19726
- _payload?: import("./types").Json;
19727
- _payload_hash?: string;
19728
- };
19729
- Returns: string;
19730
- };
19731
19120
  logistics_live_carriers: {
19732
19121
  Args: {
19733
19122
  p_order_ref: string;
@@ -19780,65 +19169,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19780
19169
  };
19781
19170
  Returns: number;
19782
19171
  };
19783
- logistics_plan_claim: {
19784
- Args: {
19785
- p_limit?: number;
19786
- };
19787
- Returns: {
19788
- attempts: number;
19789
- id: string;
19790
- order_id: string;
19791
- }[];
19792
- };
19793
- logistics_plan_enqueue: {
19794
- Args: {
19795
- p_order_id: string;
19796
- p_reason?: string;
19797
- };
19798
- Returns: undefined;
19799
- };
19800
- logistics_plan_ensure_event: {
19801
- Args: {
19802
- p_order_id: string;
19803
- };
19804
- Returns: boolean;
19805
- };
19806
- logistics_plan_finish: {
19807
- Args: {
19808
- p_error?: string;
19809
- p_id: string;
19810
- };
19811
- Returns: undefined;
19812
- };
19813
- logistics_plan_impact_orders: {
19814
- Args: {
19815
- p_order_id: string;
19816
- };
19817
- Returns: {
19818
- buffer_id: string;
19819
- order_id: string;
19820
- plan_date: string;
19821
- }[];
19822
- };
19823
- logistics_plan_kick: {
19824
- Args: never;
19825
- Returns: undefined;
19826
- };
19827
- logistics_plan_prune: {
19828
- Args: never;
19829
- Returns: number;
19830
- };
19831
- logistics_plan_release_stale: {
19832
- Args: never;
19833
- Returns: number;
19834
- };
19835
- logistics_plan_setting: {
19836
- Args: {
19837
- p_default: number;
19838
- p_key: string;
19839
- };
19840
- Returns: number;
19841
- };
19842
19172
  logistics_queue_capacity_email: {
19843
19173
  Args: {
19844
19174
  p_alert_id: string;
@@ -20077,13 +19407,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20077
19407
  };
20078
19408
  Returns: undefined;
20079
19409
  };
20080
- my_module_permissions: {
20081
- Args: never;
20082
- Returns: {
20083
- module_id: string;
20084
- permission: string;
20085
- }[];
20086
- };
20087
19410
  next_manufacture_partij: {
20088
19411
  Args: {
20089
19412
  _tenant_id: string;
@@ -20134,13 +19457,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20134
19457
  };
20135
19458
  Returns: boolean;
20136
19459
  };
20137
- opruim_print_historie: {
20138
- Args: never;
20139
- Returns: {
20140
- ontdaan: number;
20141
- verwijderd: number;
20142
- }[];
20143
- };
20144
19460
  order_number_prefix: {
20145
19461
  Args: {
20146
19462
  p_custom_fields?: import("./types").Json;
@@ -20148,15 +19464,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20148
19464
  };
20149
19465
  Returns: string;
20150
19466
  };
20151
- pick_active_printers: {
20152
- Args: never;
20153
- Returns: {
20154
- id: string;
20155
- locatie: string;
20156
- naam: string;
20157
- online: boolean;
20158
- }[];
20159
- };
20160
19467
  pick_claim_document: {
20161
19468
  Args: {
20162
19469
  _queue_item_id: string;
@@ -20343,52 +19650,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20343
19650
  };
20344
19651
  Returns: undefined;
20345
19652
  };
20346
- pick_reset_print: {
20347
- Args: {
20348
- _queue_item_id: string;
20349
- _session_id: string;
20350
- };
20351
- Returns: {
20352
- announced_at: string;
20353
- assigned_user_id: string | null;
20354
- barcode: string | null;
20355
- cancelled_at: string | null;
20356
- cart_count: number;
20357
- completed_at: string | null;
20358
- country_code: string | null;
20359
- created_at: string;
20360
- customer_name: string | null;
20361
- delivery_address: string | null;
20362
- document_number: string | null;
20363
- document_type_id: string | null;
20364
- due_at: string | null;
20365
- id: string;
20366
- is_urgent: boolean;
20367
- line_count: number;
20368
- order_number: string | null;
20369
- order_type: string | null;
20370
- payload: import("./types").Json;
20371
- print_count: number;
20372
- print_job_id: string | null;
20373
- printed_at: string | null;
20374
- printed_by: string | null;
20375
- printer_id: string | null;
20376
- priority: number;
20377
- reference: string | null;
20378
- route: string | null;
20379
- screen_id: string | null;
20380
- station_id: string | null;
20381
- status_id: string | null;
20382
- updated_at: string;
20383
- warnings: import("./types").Json;
20384
- };
20385
- SetofOptions: {
20386
- from: "*";
20387
- to: "pick_queue";
20388
- isOneToOne: true;
20389
- isSetofReturn: false;
20390
- };
20391
- };
20392
19653
  pick_station_dashboard: {
20393
19654
  Args: never;
20394
19655
  Returns: {
@@ -20535,12 +19796,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20535
19796
  };
20536
19797
  Returns: undefined;
20537
19798
  };
20538
- reset_stalled_floriday_stock_queue: {
20539
- Args: {
20540
- p_include_failed?: boolean;
20541
- };
20542
- Returns: number;
20543
- };
20544
19799
  resolve_group_allocation: {
20545
19800
  Args: {
20546
19801
  _needed: number;
@@ -20585,28 +19840,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20585
19840
  };
20586
19841
  Returns: import("./types").Json;
20587
19842
  };
20588
- ruim_print_jobs_op: {
20589
- Args: {
20590
- _bewaar_dagen?: number;
20591
- };
20592
- Returns: number;
20593
- };
20594
19843
  run_floriday_continuous_stock_sync: {
20595
19844
  Args: never;
20596
19845
  Returns: undefined;
20597
19846
  };
20598
- run_floriday_stock_queue_process: {
20599
- Args: never;
20600
- Returns: undefined;
20601
- };
20602
- run_logistics_tasks_dispatch: {
20603
- Args: never;
20604
- Returns: undefined;
20605
- };
20606
- run_print_queue_ticks: {
20607
- Args: never;
20608
- Returns: number;
20609
- };
20610
19847
  run_twinfield_queue_tick: {
20611
19848
  Args: never;
20612
19849
  Returns: undefined;
@@ -20847,13 +20084,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20847
20084
  };
20848
20085
  Returns: number;
20849
20086
  };
20850
- schedule_floriday_stock_queue_process: {
20851
- Args: {
20852
- p_apikey: string;
20853
- p_url: string;
20854
- };
20855
- Returns: number;
20856
- };
20857
20087
  schedule_floriday_token_refresh: {
20858
20088
  Args: {
20859
20089
  p_apikey: string;
@@ -20994,15 +20224,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20994
20224
  };
20995
20225
  Returns: undefined;
20996
20226
  };
20997
- trade_item_stock_duplicates: {
20998
- Args: never;
20999
- Returns: {
21000
- keys: string[];
21001
- product_id: string;
21002
- product_name: string;
21003
- row_count: number;
21004
- }[];
21005
- };
21006
20227
  try_debtor_lock: {
21007
20228
  Args: {
21008
20229
  _group_key: string;
@@ -21052,7 +20273,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
21052
20273
  };
21053
20274
  Enums: {
21054
20275
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21055
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20276
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21056
20277
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
21057
20278
  doc_orientation: "portrait" | "landscape";
21058
20279
  exact_env: "staging" | "live";