@flowselections/floriday-authenticatie-module 1.0.35 → 1.0.37

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 (33) hide show
  1. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +1 -1
  2. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -1
  3. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +1 -1
  4. package/dist-lib/components/floriday/TokenHealthCard.js +1 -1
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts +773 -8
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.d.ts +773 -8
  8. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts +773 -8
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +778 -9
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/types.js +12 -1
  14. package/dist-lib/lib/floricode.functions.d.ts +5503 -148
  15. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +773 -8
  17. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-labels.functions.d.ts +773 -8
  19. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-public.functions.d.ts +4734 -144
  21. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-public.functions.js +1 -1
  23. package/dist-lib/lib/floriday-stickers.functions.d.ts +773 -8
  24. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-sync.functions.d.ts +23959 -244
  26. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-writes.functions.d.ts +4734 -144
  28. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-writes.functions.js +1 -1
  30. package/dist-lib/lib/floriday.functions.d.ts +14731 -196
  31. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/gateway/cached-list.js +1 -1
  33. package/package.json +2 -2
@@ -1683,7 +1683,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1683
1683
  city: string | null;
1684
1684
  country: string | null;
1685
1685
  created_at: string;
1686
- customer_id: string | null;
1686
+ customer_id: string;
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1707
1707
  city?: string | null;
1708
1708
  country?: string | null;
1709
1709
  created_at?: string;
1710
- customer_id?: string | null;
1710
+ customer_id: string;
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 supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1731
1731
  city?: string | null;
1732
1732
  country?: string | null;
1733
1733
  created_at?: string;
1734
- customer_id?: string | null;
1734
+ customer_id?: string;
1735
1735
  external_key?: string | null;
1736
1736
  external_provider?: string | null;
1737
1737
  floriday_location_id?: string | null;
@@ -6479,6 +6479,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6479
6479
  Row: {
6480
6480
  buyer_organization_id: string | null;
6481
6481
  connection_id: string;
6482
+ controlled_at: string | null;
6482
6483
  created_at: string;
6483
6484
  data: import("./types.js").Json;
6484
6485
  floriday_id: string;
@@ -6490,6 +6491,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6490
6491
  Insert: {
6491
6492
  buyer_organization_id?: string | null;
6492
6493
  connection_id: string;
6494
+ controlled_at?: string | null;
6493
6495
  created_at?: string;
6494
6496
  data: import("./types.js").Json;
6495
6497
  floriday_id: string;
@@ -6501,6 +6503,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6501
6503
  Update: {
6502
6504
  buyer_organization_id?: string | null;
6503
6505
  connection_id?: string;
6506
+ controlled_at?: string | null;
6504
6507
  created_at?: string;
6505
6508
  data?: import("./types.js").Json;
6506
6509
  floriday_id?: string;
@@ -7402,6 +7405,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7402
7405
  };
7403
7406
  Relationships: [];
7404
7407
  };
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
+ };
7405
7456
  itk_contact_persons: {
7406
7457
  Row: {
7407
7458
  created_at: string;
@@ -8491,6 +8542,69 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8491
8542
  };
8492
8543
  Relationships: [];
8493
8544
  };
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.js").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.js").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.js").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
+ };
8494
8608
  logistics_formulas: {
8495
8609
  Row: {
8496
8610
  created_at: string;
@@ -8569,6 +8683,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8569
8683
  };
8570
8684
  Relationships: [];
8571
8685
  };
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
+ };
8572
8725
  logistics_plan_runs: {
8573
8726
  Row: {
8574
8727
  created_at: string;
@@ -8644,6 +8797,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8644
8797
  referencedColumns: ["id"];
8645
8798
  }];
8646
8799
  };
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
+ };
8647
8818
  logistics_rebuffer_state: {
8648
8819
  Row: {
8649
8820
  created_at: string;
@@ -9354,14 +9525,17 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9354
9525
  };
9355
9526
  mailbox_messages: {
9356
9527
  Row: {
9528
+ attachments: import("./types.js").Json;
9357
9529
  body_html: string | null;
9358
9530
  body_text: string | null;
9531
+ cc_recipients: import("./types.js").Json;
9359
9532
  connection_id: string | null;
9360
9533
  created_at: string;
9361
9534
  error_message: string | null;
9362
9535
  external_id: string | null;
9363
9536
  from_email: string | null;
9364
9537
  from_name: string | null;
9538
+ has_attachments: boolean;
9365
9539
  id: string;
9366
9540
  message_id: string | null;
9367
9541
  profile_id: string | null;
@@ -9369,18 +9543,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9369
9543
  received_at: string | null;
9370
9544
  status: string;
9371
9545
  subject: string | null;
9546
+ to_recipients: import("./types.js").Json;
9372
9547
  uid: number | null;
9373
9548
  updated_at: string;
9374
9549
  };
9375
9550
  Insert: {
9551
+ attachments?: import("./types.js").Json;
9376
9552
  body_html?: string | null;
9377
9553
  body_text?: string | null;
9554
+ cc_recipients?: import("./types.js").Json;
9378
9555
  connection_id?: string | null;
9379
9556
  created_at?: string;
9380
9557
  error_message?: string | null;
9381
9558
  external_id?: string | null;
9382
9559
  from_email?: string | null;
9383
9560
  from_name?: string | null;
9561
+ has_attachments?: boolean;
9384
9562
  id?: string;
9385
9563
  message_id?: string | null;
9386
9564
  profile_id?: string | null;
@@ -9388,18 +9566,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9388
9566
  received_at?: string | null;
9389
9567
  status?: string;
9390
9568
  subject?: string | null;
9569
+ to_recipients?: import("./types.js").Json;
9391
9570
  uid?: number | null;
9392
9571
  updated_at?: string;
9393
9572
  };
9394
9573
  Update: {
9574
+ attachments?: import("./types.js").Json;
9395
9575
  body_html?: string | null;
9396
9576
  body_text?: string | null;
9577
+ cc_recipients?: import("./types.js").Json;
9397
9578
  connection_id?: string | null;
9398
9579
  created_at?: string;
9399
9580
  error_message?: string | null;
9400
9581
  external_id?: string | null;
9401
9582
  from_email?: string | null;
9402
9583
  from_name?: string | null;
9584
+ has_attachments?: boolean;
9403
9585
  id?: string;
9404
9586
  message_id?: string | null;
9405
9587
  profile_id?: string | null;
@@ -9407,6 +9589,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9407
9589
  received_at?: string | null;
9408
9590
  status?: string;
9409
9591
  subject?: string | null;
9592
+ to_recipients?: import("./types.js").Json;
9410
9593
  uid?: number | null;
9411
9594
  updated_at?: string;
9412
9595
  };
@@ -9787,6 +9970,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9787
9970
  };
9788
9971
  Relationships: [];
9789
9972
  };
9973
+ module_features: {
9974
+ Row: {
9975
+ created_at: string;
9976
+ feature_id: string;
9977
+ id: string;
9978
+ is_active: boolean;
9979
+ last_seen_at: string;
9980
+ module_id: string;
9981
+ name: string;
9982
+ };
9983
+ Insert: {
9984
+ created_at?: string;
9985
+ feature_id: string;
9986
+ id?: string;
9987
+ is_active?: boolean;
9988
+ last_seen_at?: string;
9989
+ module_id: string;
9990
+ name: string;
9991
+ };
9992
+ Update: {
9993
+ created_at?: string;
9994
+ feature_id?: string;
9995
+ id?: string;
9996
+ is_active?: boolean;
9997
+ last_seen_at?: string;
9998
+ module_id?: string;
9999
+ name?: string;
10000
+ };
10001
+ Relationships: [];
10002
+ };
9790
10003
  module_permissions: {
9791
10004
  Row: {
9792
10005
  created_at: string;
@@ -9814,6 +10027,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9814
10027
  };
9815
10028
  Relationships: [];
9816
10029
  };
10030
+ module_registry: {
10031
+ Row: {
10032
+ created_at: string;
10033
+ is_active: boolean;
10034
+ last_seen_at: string;
10035
+ module_id: string;
10036
+ name: string;
10037
+ shell_id: string | null;
10038
+ sort_order: number | null;
10039
+ };
10040
+ Insert: {
10041
+ created_at?: string;
10042
+ is_active?: boolean;
10043
+ last_seen_at?: string;
10044
+ module_id: string;
10045
+ name: string;
10046
+ shell_id?: string | null;
10047
+ sort_order?: number | null;
10048
+ };
10049
+ Update: {
10050
+ created_at?: string;
10051
+ is_active?: boolean;
10052
+ last_seen_at?: string;
10053
+ module_id?: string;
10054
+ name?: string;
10055
+ shell_id?: string | null;
10056
+ sort_order?: number | null;
10057
+ };
10058
+ Relationships: [];
10059
+ };
9817
10060
  module_runtime_config: {
9818
10061
  Row: {
9819
10062
  key: string;
@@ -10873,6 +11116,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10873
11116
  };
10874
11117
  Relationships: [];
10875
11118
  };
11119
+ order_invoice_links: {
11120
+ Row: {
11121
+ attempts: number;
11122
+ created_at: string;
11123
+ error_message: string | null;
11124
+ id: string;
11125
+ invoice_number: string | null;
11126
+ next_attempt_at: string;
11127
+ order_id: string;
11128
+ processed_at: string | null;
11129
+ status: string;
11130
+ updated_at: string;
11131
+ };
11132
+ Insert: {
11133
+ attempts?: number;
11134
+ created_at?: string;
11135
+ error_message?: string | null;
11136
+ id?: string;
11137
+ invoice_number?: string | null;
11138
+ next_attempt_at?: string;
11139
+ order_id: string;
11140
+ processed_at?: string | null;
11141
+ status?: string;
11142
+ updated_at?: string;
11143
+ };
11144
+ Update: {
11145
+ attempts?: number;
11146
+ created_at?: string;
11147
+ error_message?: string | null;
11148
+ id?: string;
11149
+ invoice_number?: string | null;
11150
+ next_attempt_at?: string;
11151
+ order_id?: string;
11152
+ processed_at?: string | null;
11153
+ status?: string;
11154
+ updated_at?: string;
11155
+ };
11156
+ Relationships: [];
11157
+ };
10876
11158
  order_items: {
10877
11159
  Row: {
10878
11160
  crates_per_layer: number | null;
@@ -11055,6 +11337,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11055
11337
  delivery_date: string | null;
11056
11338
  floriday_sales_order_id: string | null;
11057
11339
  id: string;
11340
+ invoice_due_at: string | null;
11058
11341
  is_reservation: boolean;
11059
11342
  notes: string | null;
11060
11343
  order_date: string;
@@ -11076,6 +11359,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11076
11359
  delivery_date?: string | null;
11077
11360
  floriday_sales_order_id?: string | null;
11078
11361
  id?: string;
11362
+ invoice_due_at?: string | null;
11079
11363
  is_reservation?: boolean;
11080
11364
  notes?: string | null;
11081
11365
  order_date?: string;
@@ -11097,6 +11381,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11097
11381
  delivery_date?: string | null;
11098
11382
  floriday_sales_order_id?: string | null;
11099
11383
  id?: string;
11384
+ invoice_due_at?: string | null;
11100
11385
  is_reservation?: boolean;
11101
11386
  notes?: string | null;
11102
11387
  order_date?: string;
@@ -12293,22 +12578,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12293
12578
  created_at: string;
12294
12579
  documentnaam: string;
12295
12580
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12581
+ extern_job_id: string | null;
12296
12582
  foutmelding: string | null;
12297
12583
  gebruiker_id: string | null;
12298
12584
  gebruiker_naam: string;
12299
12585
  gestart_op: string | null;
12300
12586
  id: string;
12587
+ idempotentie_sleutel: string | null;
12301
12588
  is_herprint: boolean;
12302
12589
  kopieen: number;
12303
12590
  layout_id: string | null;
12304
12591
  opgepakt_op: string | null;
12305
12592
  paginas: number;
12306
12593
  payload: import("./types.js").Json;
12594
+ pdf_base64: string | null;
12595
+ pdf_url: string | null;
12307
12596
  pogingen: number;
12308
12597
  printer_id: string | null;
12309
12598
  render_html: string | null;
12310
12599
  status: Database["public"]["Enums"]["print_job_status"];
12311
12600
  updated_at: string;
12601
+ volgende_poging: string | null;
12312
12602
  voltooid_op: string | null;
12313
12603
  };
12314
12604
  Insert: {
@@ -12317,22 +12607,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12317
12607
  created_at?: string;
12318
12608
  documentnaam?: string;
12319
12609
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12610
+ extern_job_id?: string | null;
12320
12611
  foutmelding?: string | null;
12321
12612
  gebruiker_id?: string | null;
12322
12613
  gebruiker_naam?: string;
12323
12614
  gestart_op?: string | null;
12324
12615
  id?: string;
12616
+ idempotentie_sleutel?: string | null;
12325
12617
  is_herprint?: boolean;
12326
12618
  kopieen?: number;
12327
12619
  layout_id?: string | null;
12328
12620
  opgepakt_op?: string | null;
12329
12621
  paginas?: number;
12330
12622
  payload?: import("./types.js").Json;
12623
+ pdf_base64?: string | null;
12624
+ pdf_url?: string | null;
12331
12625
  pogingen?: number;
12332
12626
  printer_id?: string | null;
12333
12627
  render_html?: string | null;
12334
12628
  status?: Database["public"]["Enums"]["print_job_status"];
12335
12629
  updated_at?: string;
12630
+ volgende_poging?: string | null;
12336
12631
  voltooid_op?: string | null;
12337
12632
  };
12338
12633
  Update: {
@@ -12341,22 +12636,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12341
12636
  created_at?: string;
12342
12637
  documentnaam?: string;
12343
12638
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12639
+ extern_job_id?: string | null;
12344
12640
  foutmelding?: string | null;
12345
12641
  gebruiker_id?: string | null;
12346
12642
  gebruiker_naam?: string;
12347
12643
  gestart_op?: string | null;
12348
12644
  id?: string;
12645
+ idempotentie_sleutel?: string | null;
12349
12646
  is_herprint?: boolean;
12350
12647
  kopieen?: number;
12351
12648
  layout_id?: string | null;
12352
12649
  opgepakt_op?: string | null;
12353
12650
  paginas?: number;
12354
12651
  payload?: import("./types.js").Json;
12652
+ pdf_base64?: string | null;
12653
+ pdf_url?: string | null;
12355
12654
  pogingen?: number;
12356
12655
  printer_id?: string | null;
12357
12656
  render_html?: string | null;
12358
12657
  status?: Database["public"]["Enums"]["print_job_status"];
12359
12658
  updated_at?: string;
12659
+ volgende_poging?: string | null;
12360
12660
  voltooid_op?: string | null;
12361
12661
  };
12362
12662
  Relationships: [{
@@ -12379,6 +12679,72 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12379
12679
  referencedColumns: ["id"];
12380
12680
  }];
12381
12681
  };
12682
+ print_queue_runners: {
12683
+ Row: {
12684
+ actief: boolean;
12685
+ basis_url: string;
12686
+ created_at: string;
12687
+ id: string;
12688
+ laatst_gezien: string;
12689
+ laatste_fout: string | null;
12690
+ laatste_request_id: number | null;
12691
+ mislukte_posts: number;
12692
+ tick_sleutel: string;
12693
+ updated_at: string;
12694
+ };
12695
+ Insert: {
12696
+ actief?: boolean;
12697
+ basis_url: string;
12698
+ created_at?: string;
12699
+ id?: string;
12700
+ laatst_gezien?: string;
12701
+ laatste_fout?: string | null;
12702
+ laatste_request_id?: number | null;
12703
+ mislukte_posts?: number;
12704
+ tick_sleutel?: string;
12705
+ updated_at?: string;
12706
+ };
12707
+ Update: {
12708
+ actief?: boolean;
12709
+ basis_url?: string;
12710
+ created_at?: string;
12711
+ id?: string;
12712
+ laatst_gezien?: string;
12713
+ laatste_fout?: string | null;
12714
+ laatste_request_id?: number | null;
12715
+ mislukte_posts?: number;
12716
+ tick_sleutel?: string;
12717
+ updated_at?: string;
12718
+ };
12719
+ Relationships: [];
12720
+ };
12721
+ print_queue_settings: {
12722
+ Row: {
12723
+ bewaar_bestanden_dagen: number;
12724
+ bewaar_opdrachten_dagen: number;
12725
+ created_at: string;
12726
+ dubbel_venster_minuten: number;
12727
+ id: string;
12728
+ updated_at: string;
12729
+ };
12730
+ Insert: {
12731
+ bewaar_bestanden_dagen?: number;
12732
+ bewaar_opdrachten_dagen?: number;
12733
+ created_at?: string;
12734
+ dubbel_venster_minuten?: number;
12735
+ id?: string;
12736
+ updated_at?: string;
12737
+ };
12738
+ Update: {
12739
+ bewaar_bestanden_dagen?: number;
12740
+ bewaar_opdrachten_dagen?: number;
12741
+ created_at?: string;
12742
+ dubbel_venster_minuten?: number;
12743
+ id?: string;
12744
+ updated_at?: string;
12745
+ };
12746
+ Relationships: [];
12747
+ };
12382
12748
  print_rules: {
12383
12749
  Row: {
12384
12750
  actief: boolean;
@@ -12539,6 +12905,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12539
12905
  agent_id: string | null;
12540
12906
  created_at: string;
12541
12907
  driver: string;
12908
+ extern_printer_id: string | null;
12542
12909
  id: string;
12543
12910
  ip_adres: string | null;
12544
12911
  laatst_gezien: string | null;
@@ -12560,6 +12927,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12560
12927
  agent_id?: string | null;
12561
12928
  created_at?: string;
12562
12929
  driver?: string;
12930
+ extern_printer_id?: string | null;
12563
12931
  id?: string;
12564
12932
  ip_adres?: string | null;
12565
12933
  laatst_gezien?: string | null;
@@ -12581,6 +12949,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12581
12949
  agent_id?: string | null;
12582
12950
  created_at?: string;
12583
12951
  driver?: string;
12952
+ extern_printer_id?: string | null;
12584
12953
  id?: string;
12585
12954
  ip_adres?: string | null;
12586
12955
  laatst_gezien?: string | null;
@@ -13852,12 +14221,102 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13852
14221
  referencedColumns: ["id"];
13853
14222
  }];
13854
14223
  };
13855
- rooms: {
14224
+ role_assignments: {
13856
14225
  Row: {
13857
- capacity: number;
13858
- color_code: string | null;
13859
14226
  created_at: string;
13860
- description: string | null;
14227
+ id: string;
14228
+ role_id: string;
14229
+ user_id: string;
14230
+ };
14231
+ Insert: {
14232
+ created_at?: string;
14233
+ id?: string;
14234
+ role_id: string;
14235
+ user_id: string;
14236
+ };
14237
+ Update: {
14238
+ created_at?: string;
14239
+ id?: string;
14240
+ role_id?: string;
14241
+ user_id?: string;
14242
+ };
14243
+ Relationships: [{
14244
+ foreignKeyName: "role_assignments_role_id_fkey";
14245
+ columns: ["role_id"];
14246
+ isOneToOne: false;
14247
+ referencedRelation: "roles";
14248
+ referencedColumns: ["id"];
14249
+ }];
14250
+ };
14251
+ role_permissions: {
14252
+ Row: {
14253
+ can_edit: boolean;
14254
+ can_view: boolean;
14255
+ feature_id: string;
14256
+ id: string;
14257
+ module_id: string;
14258
+ role_id: string;
14259
+ updated_at: string;
14260
+ };
14261
+ Insert: {
14262
+ can_edit?: boolean;
14263
+ can_view?: boolean;
14264
+ feature_id?: string;
14265
+ id?: string;
14266
+ module_id: string;
14267
+ role_id: string;
14268
+ updated_at?: string;
14269
+ };
14270
+ Update: {
14271
+ can_edit?: boolean;
14272
+ can_view?: boolean;
14273
+ feature_id?: string;
14274
+ id?: string;
14275
+ module_id?: string;
14276
+ role_id?: string;
14277
+ updated_at?: string;
14278
+ };
14279
+ Relationships: [{
14280
+ foreignKeyName: "role_permissions_role_id_fkey";
14281
+ columns: ["role_id"];
14282
+ isOneToOne: false;
14283
+ referencedRelation: "roles";
14284
+ referencedColumns: ["id"];
14285
+ }];
14286
+ };
14287
+ roles: {
14288
+ Row: {
14289
+ created_at: string;
14290
+ id: string;
14291
+ is_protected: boolean;
14292
+ key: string;
14293
+ name: string;
14294
+ updated_at: string;
14295
+ };
14296
+ Insert: {
14297
+ created_at?: string;
14298
+ id?: string;
14299
+ is_protected?: boolean;
14300
+ key: string;
14301
+ name: string;
14302
+ updated_at?: string;
14303
+ };
14304
+ Update: {
14305
+ created_at?: string;
14306
+ id?: string;
14307
+ is_protected?: boolean;
14308
+ key?: string;
14309
+ name?: string;
14310
+ updated_at?: string;
14311
+ };
14312
+ Relationships: [];
14313
+ };
14314
+ rooms: {
14315
+ Row: {
14316
+ capacity: number;
14317
+ color_code: string | null;
14318
+ created_at: string;
14319
+ description: string | null;
13861
14320
  hourly_rate: number;
13862
14321
  id: string;
13863
14322
  image_url: string | null;
@@ -15216,6 +15675,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15216
15675
  };
15217
15676
  twinfield_invoice_settings: {
15218
15677
  Row: {
15678
+ auto_invoice_enabled: boolean;
15679
+ auto_invoice_trigger_statuses: string[];
15219
15680
  created_at: string;
15220
15681
  debtor_gl_account: string;
15221
15682
  default_credit_invoice_type: string | null;
@@ -15236,6 +15697,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15236
15697
  vat_code_export: string | null;
15237
15698
  };
15238
15699
  Insert: {
15700
+ auto_invoice_enabled?: boolean;
15701
+ auto_invoice_trigger_statuses?: string[];
15239
15702
  created_at?: string;
15240
15703
  debtor_gl_account?: string;
15241
15704
  default_credit_invoice_type?: string | null;
@@ -15256,6 +15719,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15256
15719
  vat_code_export?: string | null;
15257
15720
  };
15258
15721
  Update: {
15722
+ auto_invoice_enabled?: boolean;
15723
+ auto_invoice_trigger_statuses?: string[];
15259
15724
  created_at?: string;
15260
15725
  debtor_gl_account?: string;
15261
15726
  default_credit_invoice_type?: string | null;
@@ -16318,6 +16783,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16318
16783
  referencedColumns: ["id"];
16319
16784
  }];
16320
16785
  };
16786
+ user_module_permissions: {
16787
+ Row: {
16788
+ created_at: string;
16789
+ feature_id: string;
16790
+ id: string;
16791
+ module_id: string;
16792
+ permission: string;
16793
+ updated_at: string;
16794
+ user_id: string;
16795
+ };
16796
+ Insert: {
16797
+ created_at?: string;
16798
+ feature_id?: string;
16799
+ id?: string;
16800
+ module_id: string;
16801
+ permission: string;
16802
+ updated_at?: string;
16803
+ user_id: string;
16804
+ };
16805
+ Update: {
16806
+ created_at?: string;
16807
+ feature_id?: string;
16808
+ id?: string;
16809
+ module_id?: string;
16810
+ permission?: string;
16811
+ updated_at?: string;
16812
+ user_id?: string;
16813
+ };
16814
+ Relationships: [];
16815
+ };
16321
16816
  user_roles: {
16322
16817
  Row: {
16323
16818
  created_at: string;
@@ -18151,6 +18646,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18151
18646
  processed_items: number;
18152
18647
  }[];
18153
18648
  };
18649
+ backfill_order_auto_invoice_queue: {
18650
+ Args: never;
18651
+ Returns: number;
18652
+ };
18154
18653
  calculate_layer_stock: {
18155
18654
  Args: {
18156
18655
  p_product_id: string;
@@ -18185,6 +18684,46 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18185
18684
  };
18186
18685
  Returns: import("./types.js").Json;
18187
18686
  };
18687
+ claim_cloud_print_jobs: {
18688
+ Args: {
18689
+ _max?: number;
18690
+ };
18691
+ Returns: {
18692
+ agent_id: string | null;
18693
+ bron_job_id: string | null;
18694
+ created_at: string;
18695
+ documentnaam: string;
18696
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
18697
+ extern_job_id: string | null;
18698
+ foutmelding: string | null;
18699
+ gebruiker_id: string | null;
18700
+ gebruiker_naam: string;
18701
+ gestart_op: string | null;
18702
+ id: string;
18703
+ idempotentie_sleutel: string | null;
18704
+ is_herprint: boolean;
18705
+ kopieen: number;
18706
+ layout_id: string | null;
18707
+ opgepakt_op: string | null;
18708
+ paginas: number;
18709
+ payload: import("./types.js").Json;
18710
+ pdf_base64: string | null;
18711
+ pdf_url: string | null;
18712
+ pogingen: number;
18713
+ printer_id: string | null;
18714
+ render_html: string | null;
18715
+ status: Database["public"]["Enums"]["print_job_status"];
18716
+ updated_at: string;
18717
+ volgende_poging: string | null;
18718
+ voltooid_op: string | null;
18719
+ }[];
18720
+ SetofOptions: {
18721
+ from: "*";
18722
+ to: "print_jobs";
18723
+ isOneToOne: false;
18724
+ isSetofReturn: true;
18725
+ };
18726
+ };
18188
18727
  claim_floriday_stock_queue: {
18189
18728
  Args: {
18190
18729
  p_limit?: number;
@@ -18275,22 +18814,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18275
18814
  created_at: string;
18276
18815
  documentnaam: string;
18277
18816
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
18817
+ extern_job_id: string | null;
18278
18818
  foutmelding: string | null;
18279
18819
  gebruiker_id: string | null;
18280
18820
  gebruiker_naam: string;
18281
18821
  gestart_op: string | null;
18282
18822
  id: string;
18823
+ idempotentie_sleutel: string | null;
18283
18824
  is_herprint: boolean;
18284
18825
  kopieen: number;
18285
18826
  layout_id: string | null;
18286
18827
  opgepakt_op: string | null;
18287
18828
  paginas: number;
18288
18829
  payload: import("./types.js").Json;
18830
+ pdf_base64: string | null;
18831
+ pdf_url: string | null;
18289
18832
  pogingen: number;
18290
18833
  printer_id: string | null;
18291
18834
  render_html: string | null;
18292
18835
  status: Database["public"]["Enums"]["print_job_status"];
18293
18836
  updated_at: string;
18837
+ volgende_poging: string | null;
18294
18838
  voltooid_op: string | null;
18295
18839
  }[];
18296
18840
  SetofOptions: {
@@ -18336,6 +18880,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18336
18880
  Args: never;
18337
18881
  Returns: undefined;
18338
18882
  };
18883
+ cleanup_voorraad_module_history: {
18884
+ Args: never;
18885
+ Returns: undefined;
18886
+ };
18339
18887
  complete_floriday_stock_queue: {
18340
18888
  Args: {
18341
18889
  p_attempt_id?: string;
@@ -18457,6 +19005,20 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18457
19005
  };
18458
19006
  Returns: import("./types.js").Json;
18459
19007
  };
19008
+ effective_module_permission: {
19009
+ Args: {
19010
+ _module_id: string;
19011
+ _user_id: string;
19012
+ };
19013
+ Returns: string;
19014
+ } | {
19015
+ Args: {
19016
+ _feature_id?: string;
19017
+ _module_id: string;
19018
+ _user_id: string;
19019
+ };
19020
+ Returns: string;
19021
+ };
18460
19022
  email_auth_decrypt: {
18461
19023
  Args: {
18462
19024
  cipher: string;
@@ -19260,6 +19822,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19260
19822
  isSetofReturn: false;
19261
19823
  };
19262
19824
  };
19825
+ logistics_floriday_claim_pushes: {
19826
+ Args: {
19827
+ _lease_seconds?: number;
19828
+ _limit?: number;
19829
+ _worker?: string;
19830
+ };
19831
+ Returns: {
19832
+ attempts: number;
19833
+ fulfillment_order_id: string;
19834
+ id: string;
19835
+ last_sent_hash: string;
19836
+ order_ref: string;
19837
+ payload: import("./types.js").Json;
19838
+ payload_hash: string;
19839
+ revision: number;
19840
+ }[];
19841
+ };
19842
+ logistics_floriday_finish_push: {
19843
+ Args: {
19844
+ _error?: string;
19845
+ _fulfillment_order_id?: string;
19846
+ _id: string;
19847
+ _max_age_hours?: number;
19848
+ _max_attempts?: number;
19849
+ _ok: boolean;
19850
+ _permanent?: boolean;
19851
+ _revision: number;
19852
+ _sent_hash?: string;
19853
+ };
19854
+ Returns: string;
19855
+ };
19856
+ logistics_floriday_prune_pushes: {
19857
+ Args: {
19858
+ _days?: number;
19859
+ };
19860
+ Returns: number;
19861
+ };
19862
+ logistics_floriday_queue_push: {
19863
+ Args: {
19864
+ _order_ref: string;
19865
+ _payload?: import("./types.js").Json;
19866
+ _payload_hash?: string;
19867
+ };
19868
+ Returns: string;
19869
+ };
19263
19870
  logistics_live_carriers: {
19264
19871
  Args: {
19265
19872
  p_order_ref: string;
@@ -19312,6 +19919,65 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19312
19919
  };
19313
19920
  Returns: number;
19314
19921
  };
19922
+ logistics_plan_claim: {
19923
+ Args: {
19924
+ p_limit?: number;
19925
+ };
19926
+ Returns: {
19927
+ attempts: number;
19928
+ id: string;
19929
+ order_id: string;
19930
+ }[];
19931
+ };
19932
+ logistics_plan_enqueue: {
19933
+ Args: {
19934
+ p_order_id: string;
19935
+ p_reason?: string;
19936
+ };
19937
+ Returns: undefined;
19938
+ };
19939
+ logistics_plan_ensure_event: {
19940
+ Args: {
19941
+ p_order_id: string;
19942
+ };
19943
+ Returns: boolean;
19944
+ };
19945
+ logistics_plan_finish: {
19946
+ Args: {
19947
+ p_error?: string;
19948
+ p_id: string;
19949
+ };
19950
+ Returns: undefined;
19951
+ };
19952
+ logistics_plan_impact_orders: {
19953
+ Args: {
19954
+ p_order_id: string;
19955
+ };
19956
+ Returns: {
19957
+ buffer_id: string;
19958
+ order_id: string;
19959
+ plan_date: string;
19960
+ }[];
19961
+ };
19962
+ logistics_plan_kick: {
19963
+ Args: never;
19964
+ Returns: undefined;
19965
+ };
19966
+ logistics_plan_prune: {
19967
+ Args: never;
19968
+ Returns: number;
19969
+ };
19970
+ logistics_plan_release_stale: {
19971
+ Args: never;
19972
+ Returns: number;
19973
+ };
19974
+ logistics_plan_setting: {
19975
+ Args: {
19976
+ p_default: number;
19977
+ p_key: string;
19978
+ };
19979
+ Returns: number;
19980
+ };
19315
19981
  logistics_queue_capacity_email: {
19316
19982
  Args: {
19317
19983
  p_alert_id: string;
@@ -19550,6 +20216,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19550
20216
  };
19551
20217
  Returns: undefined;
19552
20218
  };
20219
+ my_module_permissions: {
20220
+ Args: never;
20221
+ Returns: {
20222
+ feature_id: string;
20223
+ module_id: string;
20224
+ permission: string;
20225
+ }[];
20226
+ };
19553
20227
  next_manufacture_partij: {
19554
20228
  Args: {
19555
20229
  _tenant_id: string;
@@ -19600,6 +20274,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19600
20274
  };
19601
20275
  Returns: boolean;
19602
20276
  };
20277
+ opruim_print_historie: {
20278
+ Args: never;
20279
+ Returns: {
20280
+ ontdaan: number;
20281
+ verwijderd: number;
20282
+ }[];
20283
+ };
19603
20284
  order_number_prefix: {
19604
20285
  Args: {
19605
20286
  p_custom_fields?: import("./types.js").Json;
@@ -19607,6 +20288,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19607
20288
  };
19608
20289
  Returns: string;
19609
20290
  };
20291
+ pick_active_printers: {
20292
+ Args: never;
20293
+ Returns: {
20294
+ id: string;
20295
+ locatie: string;
20296
+ naam: string;
20297
+ online: boolean;
20298
+ }[];
20299
+ };
19610
20300
  pick_claim_document: {
19611
20301
  Args: {
19612
20302
  _queue_item_id: string;
@@ -19793,6 +20483,52 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19793
20483
  };
19794
20484
  Returns: undefined;
19795
20485
  };
20486
+ pick_reset_print: {
20487
+ Args: {
20488
+ _queue_item_id: string;
20489
+ _session_id: string;
20490
+ };
20491
+ Returns: {
20492
+ announced_at: string;
20493
+ assigned_user_id: string | null;
20494
+ barcode: string | null;
20495
+ cancelled_at: string | null;
20496
+ cart_count: number;
20497
+ completed_at: string | null;
20498
+ country_code: string | null;
20499
+ created_at: string;
20500
+ customer_name: string | null;
20501
+ delivery_address: string | null;
20502
+ document_number: string | null;
20503
+ document_type_id: string | null;
20504
+ due_at: string | null;
20505
+ id: string;
20506
+ is_urgent: boolean;
20507
+ line_count: number;
20508
+ order_number: string | null;
20509
+ order_type: string | null;
20510
+ payload: import("./types.js").Json;
20511
+ print_count: number;
20512
+ print_job_id: string | null;
20513
+ printed_at: string | null;
20514
+ printed_by: string | null;
20515
+ printer_id: string | null;
20516
+ priority: number;
20517
+ reference: string | null;
20518
+ route: string | null;
20519
+ screen_id: string | null;
20520
+ station_id: string | null;
20521
+ status_id: string | null;
20522
+ updated_at: string;
20523
+ warnings: import("./types.js").Json;
20524
+ };
20525
+ SetofOptions: {
20526
+ from: "*";
20527
+ to: "pick_queue";
20528
+ isOneToOne: true;
20529
+ isSetofReturn: false;
20530
+ };
20531
+ };
19796
20532
  pick_station_dashboard: {
19797
20533
  Args: never;
19798
20534
  Returns: {
@@ -19939,6 +20675,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19939
20675
  };
19940
20676
  Returns: undefined;
19941
20677
  };
20678
+ reset_stalled_floriday_stock_queue: {
20679
+ Args: {
20680
+ p_include_failed?: boolean;
20681
+ };
20682
+ Returns: number;
20683
+ };
19942
20684
  resolve_group_allocation: {
19943
20685
  Args: {
19944
20686
  _needed: number;
@@ -19983,14 +20725,28 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19983
20725
  };
19984
20726
  Returns: import("./types.js").Json;
19985
20727
  };
20728
+ ruim_print_jobs_op: {
20729
+ Args: {
20730
+ _bewaar_dagen?: number;
20731
+ };
20732
+ Returns: number;
20733
+ };
19986
20734
  run_floriday_continuous_stock_sync: {
19987
20735
  Args: never;
19988
20736
  Returns: undefined;
19989
20737
  };
20738
+ run_floriday_stock_queue_process: {
20739
+ Args: never;
20740
+ Returns: undefined;
20741
+ };
19990
20742
  run_logistics_tasks_dispatch: {
19991
20743
  Args: never;
19992
20744
  Returns: undefined;
19993
20745
  };
20746
+ run_print_queue_ticks: {
20747
+ Args: never;
20748
+ Returns: number;
20749
+ };
19994
20750
  run_twinfield_queue_tick: {
19995
20751
  Args: never;
19996
20752
  Returns: undefined;
@@ -20378,6 +21134,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20378
21134
  };
20379
21135
  Returns: undefined;
20380
21136
  };
21137
+ trade_item_stock_duplicates: {
21138
+ Args: never;
21139
+ Returns: {
21140
+ keys: string[];
21141
+ product_id: string;
21142
+ product_name: string;
21143
+ row_count: number;
21144
+ }[];
21145
+ };
20381
21146
  try_debtor_lock: {
20382
21147
  Args: {
20383
21148
  _group_key: string;
@@ -20427,7 +21192,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20427
21192
  };
20428
21193
  Enums: {
20429
21194
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20430
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21195
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20431
21196
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20432
21197
  doc_orientation: "portrait" | "landscape";
20433
21198
  exact_env: "staging" | "live";