@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
@@ -1684,7 +1684,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1684
1684
  city: string | null;
1685
1685
  country: string | null;
1686
1686
  created_at: string;
1687
- customer_id: string | null;
1687
+ customer_id: string;
1688
1688
  external_key: string | null;
1689
1689
  external_provider: string | null;
1690
1690
  floriday_location_id: string | null;
@@ -1708,7 +1708,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1708
1708
  city?: string | null;
1709
1709
  country?: string | null;
1710
1710
  created_at?: string;
1711
- customer_id?: string | null;
1711
+ customer_id: string;
1712
1712
  external_key?: string | null;
1713
1713
  external_provider?: string | null;
1714
1714
  floriday_location_id?: string | null;
@@ -1732,7 +1732,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1732
1732
  city?: string | null;
1733
1733
  country?: string | null;
1734
1734
  created_at?: string;
1735
- customer_id?: string | null;
1735
+ customer_id?: string;
1736
1736
  external_key?: string | null;
1737
1737
  external_provider?: string | null;
1738
1738
  floriday_location_id?: string | null;
@@ -6480,6 +6480,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6480
6480
  Row: {
6481
6481
  buyer_organization_id: string | null;
6482
6482
  connection_id: string;
6483
+ controlled_at: string | null;
6483
6484
  created_at: string;
6484
6485
  data: import("./types.js").Json;
6485
6486
  floriday_id: string;
@@ -6491,6 +6492,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6491
6492
  Insert: {
6492
6493
  buyer_organization_id?: string | null;
6493
6494
  connection_id: string;
6495
+ controlled_at?: string | null;
6494
6496
  created_at?: string;
6495
6497
  data: import("./types.js").Json;
6496
6498
  floriday_id: string;
@@ -6502,6 +6504,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6502
6504
  Update: {
6503
6505
  buyer_organization_id?: string | null;
6504
6506
  connection_id?: string;
6507
+ controlled_at?: string | null;
6505
6508
  created_at?: string;
6506
6509
  data?: import("./types.js").Json;
6507
6510
  floriday_id?: string;
@@ -7403,6 +7406,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7403
7406
  };
7404
7407
  Relationships: [];
7405
7408
  };
7409
+ invoice_timing_settings: {
7410
+ Row: {
7411
+ anchor: string;
7412
+ business_days_only: boolean;
7413
+ created_at: string;
7414
+ enabled: boolean;
7415
+ id: string;
7416
+ offset_days: number;
7417
+ pickup_anchor: string;
7418
+ pickup_business_days_only: boolean;
7419
+ pickup_offset_days: number;
7420
+ pickup_time_of_day: string;
7421
+ singleton: boolean;
7422
+ time_of_day: string;
7423
+ updated_at: string;
7424
+ };
7425
+ Insert: {
7426
+ anchor?: string;
7427
+ business_days_only?: boolean;
7428
+ created_at?: string;
7429
+ enabled?: boolean;
7430
+ id?: string;
7431
+ offset_days?: number;
7432
+ pickup_anchor?: string;
7433
+ pickup_business_days_only?: boolean;
7434
+ pickup_offset_days?: number;
7435
+ pickup_time_of_day?: string;
7436
+ singleton?: boolean;
7437
+ time_of_day?: string;
7438
+ updated_at?: string;
7439
+ };
7440
+ Update: {
7441
+ anchor?: string;
7442
+ business_days_only?: boolean;
7443
+ created_at?: string;
7444
+ enabled?: boolean;
7445
+ id?: string;
7446
+ offset_days?: number;
7447
+ pickup_anchor?: string;
7448
+ pickup_business_days_only?: boolean;
7449
+ pickup_offset_days?: number;
7450
+ pickup_time_of_day?: string;
7451
+ singleton?: boolean;
7452
+ time_of_day?: string;
7453
+ updated_at?: string;
7454
+ };
7455
+ Relationships: [];
7456
+ };
7406
7457
  itk_contact_persons: {
7407
7458
  Row: {
7408
7459
  created_at: string;
@@ -8492,6 +8543,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8492
8543
  };
8493
8544
  Relationships: [];
8494
8545
  };
8546
+ logistics_floriday_pushes: {
8547
+ Row: {
8548
+ attempts: number;
8549
+ created_at: string;
8550
+ first_queued_at: string;
8551
+ fulfillment_order_id: string | null;
8552
+ id: string;
8553
+ last_error: string | null;
8554
+ last_error_at: string | null;
8555
+ last_sent_hash: string | null;
8556
+ locked_by: string | null;
8557
+ locked_until: string | null;
8558
+ next_attempt_at: string;
8559
+ order_ref: string;
8560
+ payload: import("./types.js").Json;
8561
+ payload_hash: string | null;
8562
+ revision: number;
8563
+ sent_at: string | null;
8564
+ status: string;
8565
+ updated_at: string;
8566
+ };
8567
+ Insert: {
8568
+ attempts?: number;
8569
+ created_at?: string;
8570
+ first_queued_at?: string;
8571
+ fulfillment_order_id?: string | null;
8572
+ id?: string;
8573
+ last_error?: string | null;
8574
+ last_error_at?: string | null;
8575
+ last_sent_hash?: string | null;
8576
+ locked_by?: string | null;
8577
+ locked_until?: string | null;
8578
+ next_attempt_at?: string;
8579
+ order_ref: string;
8580
+ payload?: import("./types.js").Json;
8581
+ payload_hash?: string | null;
8582
+ revision?: number;
8583
+ sent_at?: string | null;
8584
+ status?: string;
8585
+ updated_at?: string;
8586
+ };
8587
+ Update: {
8588
+ attempts?: number;
8589
+ created_at?: string;
8590
+ first_queued_at?: string;
8591
+ fulfillment_order_id?: string | null;
8592
+ id?: string;
8593
+ last_error?: string | null;
8594
+ last_error_at?: string | null;
8595
+ last_sent_hash?: string | null;
8596
+ locked_by?: string | null;
8597
+ locked_until?: string | null;
8598
+ next_attempt_at?: string;
8599
+ order_ref?: string;
8600
+ payload?: import("./types.js").Json;
8601
+ payload_hash?: string | null;
8602
+ revision?: number;
8603
+ sent_at?: string | null;
8604
+ status?: string;
8605
+ updated_at?: string;
8606
+ };
8607
+ Relationships: [];
8608
+ };
8495
8609
  logistics_formulas: {
8496
8610
  Row: {
8497
8611
  created_at: string;
@@ -8570,6 +8684,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8570
8684
  };
8571
8685
  Relationships: [];
8572
8686
  };
8687
+ logistics_plan_queue: {
8688
+ Row: {
8689
+ attempts: number;
8690
+ claimed_at: string | null;
8691
+ enqueued_at: string;
8692
+ error: string | null;
8693
+ id: string;
8694
+ next_attempt_at: string;
8695
+ order_id: string;
8696
+ reason: string;
8697
+ status: string;
8698
+ updated_at: string;
8699
+ };
8700
+ Insert: {
8701
+ attempts?: number;
8702
+ claimed_at?: string | null;
8703
+ enqueued_at?: string;
8704
+ error?: string | null;
8705
+ id?: string;
8706
+ next_attempt_at?: string;
8707
+ order_id: string;
8708
+ reason?: string;
8709
+ status?: string;
8710
+ updated_at?: string;
8711
+ };
8712
+ Update: {
8713
+ attempts?: number;
8714
+ claimed_at?: string | null;
8715
+ enqueued_at?: string;
8716
+ error?: string | null;
8717
+ id?: string;
8718
+ next_attempt_at?: string;
8719
+ order_id?: string;
8720
+ reason?: string;
8721
+ status?: string;
8722
+ updated_at?: string;
8723
+ };
8724
+ Relationships: [];
8725
+ };
8573
8726
  logistics_plan_runs: {
8574
8727
  Row: {
8575
8728
  created_at: string;
@@ -8645,6 +8798,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8645
8798
  referencedColumns: ["id"];
8646
8799
  }];
8647
8800
  };
8801
+ logistics_plan_settings: {
8802
+ Row: {
8803
+ key: string;
8804
+ updated_at: string;
8805
+ value: string;
8806
+ };
8807
+ Insert: {
8808
+ key: string;
8809
+ updated_at?: string;
8810
+ value: string;
8811
+ };
8812
+ Update: {
8813
+ key?: string;
8814
+ updated_at?: string;
8815
+ value?: string;
8816
+ };
8817
+ Relationships: [];
8818
+ };
8648
8819
  logistics_rebuffer_state: {
8649
8820
  Row: {
8650
8821
  created_at: string;
@@ -9355,14 +9526,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9355
9526
  };
9356
9527
  mailbox_messages: {
9357
9528
  Row: {
9529
+ attachments: import("./types.js").Json;
9358
9530
  body_html: string | null;
9359
9531
  body_text: string | null;
9532
+ cc_recipients: import("./types.js").Json;
9360
9533
  connection_id: string | null;
9361
9534
  created_at: string;
9362
9535
  error_message: string | null;
9363
9536
  external_id: string | null;
9364
9537
  from_email: string | null;
9365
9538
  from_name: string | null;
9539
+ has_attachments: boolean;
9366
9540
  id: string;
9367
9541
  message_id: string | null;
9368
9542
  profile_id: string | null;
@@ -9370,18 +9544,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9370
9544
  received_at: string | null;
9371
9545
  status: string;
9372
9546
  subject: string | null;
9547
+ to_recipients: import("./types.js").Json;
9373
9548
  uid: number | null;
9374
9549
  updated_at: string;
9375
9550
  };
9376
9551
  Insert: {
9552
+ attachments?: import("./types.js").Json;
9377
9553
  body_html?: string | null;
9378
9554
  body_text?: string | null;
9555
+ cc_recipients?: import("./types.js").Json;
9379
9556
  connection_id?: string | null;
9380
9557
  created_at?: string;
9381
9558
  error_message?: string | null;
9382
9559
  external_id?: string | null;
9383
9560
  from_email?: string | null;
9384
9561
  from_name?: string | null;
9562
+ has_attachments?: boolean;
9385
9563
  id?: string;
9386
9564
  message_id?: string | null;
9387
9565
  profile_id?: string | null;
@@ -9389,18 +9567,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9389
9567
  received_at?: string | null;
9390
9568
  status?: string;
9391
9569
  subject?: string | null;
9570
+ to_recipients?: import("./types.js").Json;
9392
9571
  uid?: number | null;
9393
9572
  updated_at?: string;
9394
9573
  };
9395
9574
  Update: {
9575
+ attachments?: import("./types.js").Json;
9396
9576
  body_html?: string | null;
9397
9577
  body_text?: string | null;
9578
+ cc_recipients?: import("./types.js").Json;
9398
9579
  connection_id?: string | null;
9399
9580
  created_at?: string;
9400
9581
  error_message?: string | null;
9401
9582
  external_id?: string | null;
9402
9583
  from_email?: string | null;
9403
9584
  from_name?: string | null;
9585
+ has_attachments?: boolean;
9404
9586
  id?: string;
9405
9587
  message_id?: string | null;
9406
9588
  profile_id?: string | null;
@@ -9408,6 +9590,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9408
9590
  received_at?: string | null;
9409
9591
  status?: string;
9410
9592
  subject?: string | null;
9593
+ to_recipients?: import("./types.js").Json;
9411
9594
  uid?: number | null;
9412
9595
  updated_at?: string;
9413
9596
  };
@@ -9788,6 +9971,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9788
9971
  };
9789
9972
  Relationships: [];
9790
9973
  };
9974
+ module_features: {
9975
+ Row: {
9976
+ created_at: string;
9977
+ feature_id: string;
9978
+ id: string;
9979
+ is_active: boolean;
9980
+ last_seen_at: string;
9981
+ module_id: string;
9982
+ name: string;
9983
+ };
9984
+ Insert: {
9985
+ created_at?: string;
9986
+ feature_id: string;
9987
+ id?: string;
9988
+ is_active?: boolean;
9989
+ last_seen_at?: string;
9990
+ module_id: string;
9991
+ name: string;
9992
+ };
9993
+ Update: {
9994
+ created_at?: string;
9995
+ feature_id?: string;
9996
+ id?: string;
9997
+ is_active?: boolean;
9998
+ last_seen_at?: string;
9999
+ module_id?: string;
10000
+ name?: string;
10001
+ };
10002
+ Relationships: [];
10003
+ };
9791
10004
  module_permissions: {
9792
10005
  Row: {
9793
10006
  created_at: string;
@@ -9815,6 +10028,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9815
10028
  };
9816
10029
  Relationships: [];
9817
10030
  };
10031
+ module_registry: {
10032
+ Row: {
10033
+ created_at: string;
10034
+ is_active: boolean;
10035
+ last_seen_at: string;
10036
+ module_id: string;
10037
+ name: string;
10038
+ shell_id: string | null;
10039
+ sort_order: number | null;
10040
+ };
10041
+ Insert: {
10042
+ created_at?: string;
10043
+ is_active?: boolean;
10044
+ last_seen_at?: string;
10045
+ module_id: string;
10046
+ name: string;
10047
+ shell_id?: string | null;
10048
+ sort_order?: number | null;
10049
+ };
10050
+ Update: {
10051
+ created_at?: string;
10052
+ is_active?: boolean;
10053
+ last_seen_at?: string;
10054
+ module_id?: string;
10055
+ name?: string;
10056
+ shell_id?: string | null;
10057
+ sort_order?: number | null;
10058
+ };
10059
+ Relationships: [];
10060
+ };
9818
10061
  module_runtime_config: {
9819
10062
  Row: {
9820
10063
  key: string;
@@ -10874,6 +11117,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10874
11117
  };
10875
11118
  Relationships: [];
10876
11119
  };
11120
+ order_invoice_links: {
11121
+ Row: {
11122
+ attempts: number;
11123
+ created_at: string;
11124
+ error_message: string | null;
11125
+ id: string;
11126
+ invoice_number: string | null;
11127
+ next_attempt_at: string;
11128
+ order_id: string;
11129
+ processed_at: string | null;
11130
+ status: string;
11131
+ updated_at: string;
11132
+ };
11133
+ Insert: {
11134
+ attempts?: number;
11135
+ created_at?: string;
11136
+ error_message?: string | null;
11137
+ id?: string;
11138
+ invoice_number?: string | null;
11139
+ next_attempt_at?: string;
11140
+ order_id: string;
11141
+ processed_at?: string | null;
11142
+ status?: string;
11143
+ updated_at?: string;
11144
+ };
11145
+ Update: {
11146
+ attempts?: number;
11147
+ created_at?: string;
11148
+ error_message?: string | null;
11149
+ id?: string;
11150
+ invoice_number?: string | null;
11151
+ next_attempt_at?: string;
11152
+ order_id?: string;
11153
+ processed_at?: string | null;
11154
+ status?: string;
11155
+ updated_at?: string;
11156
+ };
11157
+ Relationships: [];
11158
+ };
10877
11159
  order_items: {
10878
11160
  Row: {
10879
11161
  crates_per_layer: number | null;
@@ -11056,6 +11338,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11056
11338
  delivery_date: string | null;
11057
11339
  floriday_sales_order_id: string | null;
11058
11340
  id: string;
11341
+ invoice_due_at: string | null;
11059
11342
  is_reservation: boolean;
11060
11343
  notes: string | null;
11061
11344
  order_date: string;
@@ -11077,6 +11360,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11077
11360
  delivery_date?: string | null;
11078
11361
  floriday_sales_order_id?: string | null;
11079
11362
  id?: string;
11363
+ invoice_due_at?: string | null;
11080
11364
  is_reservation?: boolean;
11081
11365
  notes?: string | null;
11082
11366
  order_date?: string;
@@ -11098,6 +11382,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11098
11382
  delivery_date?: string | null;
11099
11383
  floriday_sales_order_id?: string | null;
11100
11384
  id?: string;
11385
+ invoice_due_at?: string | null;
11101
11386
  is_reservation?: boolean;
11102
11387
  notes?: string | null;
11103
11388
  order_date?: string;
@@ -12294,22 +12579,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12294
12579
  created_at: string;
12295
12580
  documentnaam: string;
12296
12581
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12582
+ extern_job_id: string | null;
12297
12583
  foutmelding: string | null;
12298
12584
  gebruiker_id: string | null;
12299
12585
  gebruiker_naam: string;
12300
12586
  gestart_op: string | null;
12301
12587
  id: string;
12588
+ idempotentie_sleutel: string | null;
12302
12589
  is_herprint: boolean;
12303
12590
  kopieen: number;
12304
12591
  layout_id: string | null;
12305
12592
  opgepakt_op: string | null;
12306
12593
  paginas: number;
12307
12594
  payload: import("./types.js").Json;
12595
+ pdf_base64: string | null;
12596
+ pdf_url: string | null;
12308
12597
  pogingen: number;
12309
12598
  printer_id: string | null;
12310
12599
  render_html: string | null;
12311
12600
  status: Database["public"]["Enums"]["print_job_status"];
12312
12601
  updated_at: string;
12602
+ volgende_poging: string | null;
12313
12603
  voltooid_op: string | null;
12314
12604
  };
12315
12605
  Insert: {
@@ -12318,22 +12608,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12318
12608
  created_at?: string;
12319
12609
  documentnaam?: string;
12320
12610
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12611
+ extern_job_id?: string | null;
12321
12612
  foutmelding?: string | null;
12322
12613
  gebruiker_id?: string | null;
12323
12614
  gebruiker_naam?: string;
12324
12615
  gestart_op?: string | null;
12325
12616
  id?: string;
12617
+ idempotentie_sleutel?: string | null;
12326
12618
  is_herprint?: boolean;
12327
12619
  kopieen?: number;
12328
12620
  layout_id?: string | null;
12329
12621
  opgepakt_op?: string | null;
12330
12622
  paginas?: number;
12331
12623
  payload?: import("./types.js").Json;
12624
+ pdf_base64?: string | null;
12625
+ pdf_url?: string | null;
12332
12626
  pogingen?: number;
12333
12627
  printer_id?: string | null;
12334
12628
  render_html?: string | null;
12335
12629
  status?: Database["public"]["Enums"]["print_job_status"];
12336
12630
  updated_at?: string;
12631
+ volgende_poging?: string | null;
12337
12632
  voltooid_op?: string | null;
12338
12633
  };
12339
12634
  Update: {
@@ -12342,22 +12637,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12342
12637
  created_at?: string;
12343
12638
  documentnaam?: string;
12344
12639
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12640
+ extern_job_id?: string | null;
12345
12641
  foutmelding?: string | null;
12346
12642
  gebruiker_id?: string | null;
12347
12643
  gebruiker_naam?: string;
12348
12644
  gestart_op?: string | null;
12349
12645
  id?: string;
12646
+ idempotentie_sleutel?: string | null;
12350
12647
  is_herprint?: boolean;
12351
12648
  kopieen?: number;
12352
12649
  layout_id?: string | null;
12353
12650
  opgepakt_op?: string | null;
12354
12651
  paginas?: number;
12355
12652
  payload?: import("./types.js").Json;
12653
+ pdf_base64?: string | null;
12654
+ pdf_url?: string | null;
12356
12655
  pogingen?: number;
12357
12656
  printer_id?: string | null;
12358
12657
  render_html?: string | null;
12359
12658
  status?: Database["public"]["Enums"]["print_job_status"];
12360
12659
  updated_at?: string;
12660
+ volgende_poging?: string | null;
12361
12661
  voltooid_op?: string | null;
12362
12662
  };
12363
12663
  Relationships: [{
@@ -12380,6 +12680,72 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12380
12680
  referencedColumns: ["id"];
12381
12681
  }];
12382
12682
  };
12683
+ print_queue_runners: {
12684
+ Row: {
12685
+ actief: boolean;
12686
+ basis_url: string;
12687
+ created_at: string;
12688
+ id: string;
12689
+ laatst_gezien: string;
12690
+ laatste_fout: string | null;
12691
+ laatste_request_id: number | null;
12692
+ mislukte_posts: number;
12693
+ tick_sleutel: string;
12694
+ updated_at: string;
12695
+ };
12696
+ Insert: {
12697
+ actief?: boolean;
12698
+ basis_url: string;
12699
+ created_at?: string;
12700
+ id?: string;
12701
+ laatst_gezien?: string;
12702
+ laatste_fout?: string | null;
12703
+ laatste_request_id?: number | null;
12704
+ mislukte_posts?: number;
12705
+ tick_sleutel?: string;
12706
+ updated_at?: string;
12707
+ };
12708
+ Update: {
12709
+ actief?: boolean;
12710
+ basis_url?: string;
12711
+ created_at?: string;
12712
+ id?: string;
12713
+ laatst_gezien?: string;
12714
+ laatste_fout?: string | null;
12715
+ laatste_request_id?: number | null;
12716
+ mislukte_posts?: number;
12717
+ tick_sleutel?: string;
12718
+ updated_at?: string;
12719
+ };
12720
+ Relationships: [];
12721
+ };
12722
+ print_queue_settings: {
12723
+ Row: {
12724
+ bewaar_bestanden_dagen: number;
12725
+ bewaar_opdrachten_dagen: number;
12726
+ created_at: string;
12727
+ dubbel_venster_minuten: number;
12728
+ id: string;
12729
+ updated_at: string;
12730
+ };
12731
+ Insert: {
12732
+ bewaar_bestanden_dagen?: number;
12733
+ bewaar_opdrachten_dagen?: number;
12734
+ created_at?: string;
12735
+ dubbel_venster_minuten?: number;
12736
+ id?: string;
12737
+ updated_at?: string;
12738
+ };
12739
+ Update: {
12740
+ bewaar_bestanden_dagen?: number;
12741
+ bewaar_opdrachten_dagen?: number;
12742
+ created_at?: string;
12743
+ dubbel_venster_minuten?: number;
12744
+ id?: string;
12745
+ updated_at?: string;
12746
+ };
12747
+ Relationships: [];
12748
+ };
12383
12749
  print_rules: {
12384
12750
  Row: {
12385
12751
  actief: boolean;
@@ -12540,6 +12906,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12540
12906
  agent_id: string | null;
12541
12907
  created_at: string;
12542
12908
  driver: string;
12909
+ extern_printer_id: string | null;
12543
12910
  id: string;
12544
12911
  ip_adres: string | null;
12545
12912
  laatst_gezien: string | null;
@@ -12561,6 +12928,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12561
12928
  agent_id?: string | null;
12562
12929
  created_at?: string;
12563
12930
  driver?: string;
12931
+ extern_printer_id?: string | null;
12564
12932
  id?: string;
12565
12933
  ip_adres?: string | null;
12566
12934
  laatst_gezien?: string | null;
@@ -12582,6 +12950,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12582
12950
  agent_id?: string | null;
12583
12951
  created_at?: string;
12584
12952
  driver?: string;
12953
+ extern_printer_id?: string | null;
12585
12954
  id?: string;
12586
12955
  ip_adres?: string | null;
12587
12956
  laatst_gezien?: string | null;
@@ -13853,12 +14222,102 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13853
14222
  referencedColumns: ["id"];
13854
14223
  }];
13855
14224
  };
13856
- rooms: {
14225
+ role_assignments: {
13857
14226
  Row: {
13858
- capacity: number;
13859
- color_code: string | null;
13860
14227
  created_at: string;
13861
- description: string | null;
14228
+ id: string;
14229
+ role_id: string;
14230
+ user_id: string;
14231
+ };
14232
+ Insert: {
14233
+ created_at?: string;
14234
+ id?: string;
14235
+ role_id: string;
14236
+ user_id: string;
14237
+ };
14238
+ Update: {
14239
+ created_at?: string;
14240
+ id?: string;
14241
+ role_id?: string;
14242
+ user_id?: string;
14243
+ };
14244
+ Relationships: [{
14245
+ foreignKeyName: "role_assignments_role_id_fkey";
14246
+ columns: ["role_id"];
14247
+ isOneToOne: false;
14248
+ referencedRelation: "roles";
14249
+ referencedColumns: ["id"];
14250
+ }];
14251
+ };
14252
+ role_permissions: {
14253
+ Row: {
14254
+ can_edit: boolean;
14255
+ can_view: boolean;
14256
+ feature_id: string;
14257
+ id: string;
14258
+ module_id: string;
14259
+ role_id: string;
14260
+ updated_at: string;
14261
+ };
14262
+ Insert: {
14263
+ can_edit?: boolean;
14264
+ can_view?: boolean;
14265
+ feature_id?: string;
14266
+ id?: string;
14267
+ module_id: string;
14268
+ role_id: string;
14269
+ updated_at?: string;
14270
+ };
14271
+ Update: {
14272
+ can_edit?: boolean;
14273
+ can_view?: boolean;
14274
+ feature_id?: string;
14275
+ id?: string;
14276
+ module_id?: string;
14277
+ role_id?: string;
14278
+ updated_at?: string;
14279
+ };
14280
+ Relationships: [{
14281
+ foreignKeyName: "role_permissions_role_id_fkey";
14282
+ columns: ["role_id"];
14283
+ isOneToOne: false;
14284
+ referencedRelation: "roles";
14285
+ referencedColumns: ["id"];
14286
+ }];
14287
+ };
14288
+ roles: {
14289
+ Row: {
14290
+ created_at: string;
14291
+ id: string;
14292
+ is_protected: boolean;
14293
+ key: string;
14294
+ name: string;
14295
+ updated_at: string;
14296
+ };
14297
+ Insert: {
14298
+ created_at?: string;
14299
+ id?: string;
14300
+ is_protected?: boolean;
14301
+ key: string;
14302
+ name: string;
14303
+ updated_at?: string;
14304
+ };
14305
+ Update: {
14306
+ created_at?: string;
14307
+ id?: string;
14308
+ is_protected?: boolean;
14309
+ key?: string;
14310
+ name?: string;
14311
+ updated_at?: string;
14312
+ };
14313
+ Relationships: [];
14314
+ };
14315
+ rooms: {
14316
+ Row: {
14317
+ capacity: number;
14318
+ color_code: string | null;
14319
+ created_at: string;
14320
+ description: string | null;
13862
14321
  hourly_rate: number;
13863
14322
  id: string;
13864
14323
  image_url: string | null;
@@ -15217,6 +15676,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15217
15676
  };
15218
15677
  twinfield_invoice_settings: {
15219
15678
  Row: {
15679
+ auto_invoice_enabled: boolean;
15680
+ auto_invoice_trigger_statuses: string[];
15220
15681
  created_at: string;
15221
15682
  debtor_gl_account: string;
15222
15683
  default_credit_invoice_type: string | null;
@@ -15237,6 +15698,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15237
15698
  vat_code_export: string | null;
15238
15699
  };
15239
15700
  Insert: {
15701
+ auto_invoice_enabled?: boolean;
15702
+ auto_invoice_trigger_statuses?: string[];
15240
15703
  created_at?: string;
15241
15704
  debtor_gl_account?: string;
15242
15705
  default_credit_invoice_type?: string | null;
@@ -15257,6 +15720,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15257
15720
  vat_code_export?: string | null;
15258
15721
  };
15259
15722
  Update: {
15723
+ auto_invoice_enabled?: boolean;
15724
+ auto_invoice_trigger_statuses?: string[];
15260
15725
  created_at?: string;
15261
15726
  debtor_gl_account?: string;
15262
15727
  default_credit_invoice_type?: string | null;
@@ -16319,6 +16784,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16319
16784
  referencedColumns: ["id"];
16320
16785
  }];
16321
16786
  };
16787
+ user_module_permissions: {
16788
+ Row: {
16789
+ created_at: string;
16790
+ feature_id: string;
16791
+ id: string;
16792
+ module_id: string;
16793
+ permission: string;
16794
+ updated_at: string;
16795
+ user_id: string;
16796
+ };
16797
+ Insert: {
16798
+ created_at?: string;
16799
+ feature_id?: string;
16800
+ id?: string;
16801
+ module_id: string;
16802
+ permission: string;
16803
+ updated_at?: string;
16804
+ user_id: string;
16805
+ };
16806
+ Update: {
16807
+ created_at?: string;
16808
+ feature_id?: string;
16809
+ id?: string;
16810
+ module_id?: string;
16811
+ permission?: string;
16812
+ updated_at?: string;
16813
+ user_id?: string;
16814
+ };
16815
+ Relationships: [];
16816
+ };
16322
16817
  user_roles: {
16323
16818
  Row: {
16324
16819
  created_at: string;
@@ -18152,6 +18647,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18152
18647
  processed_items: number;
18153
18648
  }[];
18154
18649
  };
18650
+ backfill_order_auto_invoice_queue: {
18651
+ Args: never;
18652
+ Returns: number;
18653
+ };
18155
18654
  calculate_layer_stock: {
18156
18655
  Args: {
18157
18656
  p_product_id: string;
@@ -18186,6 +18685,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18186
18685
  };
18187
18686
  Returns: import("./types.js").Json;
18188
18687
  };
18688
+ claim_cloud_print_jobs: {
18689
+ Args: {
18690
+ _max?: number;
18691
+ };
18692
+ Returns: {
18693
+ agent_id: string | null;
18694
+ bron_job_id: string | null;
18695
+ created_at: string;
18696
+ documentnaam: string;
18697
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
18698
+ extern_job_id: string | null;
18699
+ foutmelding: string | null;
18700
+ gebruiker_id: string | null;
18701
+ gebruiker_naam: string;
18702
+ gestart_op: string | null;
18703
+ id: string;
18704
+ idempotentie_sleutel: string | null;
18705
+ is_herprint: boolean;
18706
+ kopieen: number;
18707
+ layout_id: string | null;
18708
+ opgepakt_op: string | null;
18709
+ paginas: number;
18710
+ payload: import("./types.js").Json;
18711
+ pdf_base64: string | null;
18712
+ pdf_url: string | null;
18713
+ pogingen: number;
18714
+ printer_id: string | null;
18715
+ render_html: string | null;
18716
+ status: Database["public"]["Enums"]["print_job_status"];
18717
+ updated_at: string;
18718
+ volgende_poging: string | null;
18719
+ voltooid_op: string | null;
18720
+ }[];
18721
+ SetofOptions: {
18722
+ from: "*";
18723
+ to: "print_jobs";
18724
+ isOneToOne: false;
18725
+ isSetofReturn: true;
18726
+ };
18727
+ };
18189
18728
  claim_floriday_stock_queue: {
18190
18729
  Args: {
18191
18730
  p_limit?: number;
@@ -18276,22 +18815,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18276
18815
  created_at: string;
18277
18816
  documentnaam: string;
18278
18817
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
18818
+ extern_job_id: string | null;
18279
18819
  foutmelding: string | null;
18280
18820
  gebruiker_id: string | null;
18281
18821
  gebruiker_naam: string;
18282
18822
  gestart_op: string | null;
18283
18823
  id: string;
18824
+ idempotentie_sleutel: string | null;
18284
18825
  is_herprint: boolean;
18285
18826
  kopieen: number;
18286
18827
  layout_id: string | null;
18287
18828
  opgepakt_op: string | null;
18288
18829
  paginas: number;
18289
18830
  payload: import("./types.js").Json;
18831
+ pdf_base64: string | null;
18832
+ pdf_url: string | null;
18290
18833
  pogingen: number;
18291
18834
  printer_id: string | null;
18292
18835
  render_html: string | null;
18293
18836
  status: Database["public"]["Enums"]["print_job_status"];
18294
18837
  updated_at: string;
18838
+ volgende_poging: string | null;
18295
18839
  voltooid_op: string | null;
18296
18840
  }[];
18297
18841
  SetofOptions: {
@@ -18337,6 +18881,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18337
18881
  Args: never;
18338
18882
  Returns: undefined;
18339
18883
  };
18884
+ cleanup_voorraad_module_history: {
18885
+ Args: never;
18886
+ Returns: undefined;
18887
+ };
18340
18888
  complete_floriday_stock_queue: {
18341
18889
  Args: {
18342
18890
  p_attempt_id?: string;
@@ -18458,6 +19006,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18458
19006
  };
18459
19007
  Returns: import("./types.js").Json;
18460
19008
  };
19009
+ effective_module_permission: {
19010
+ Args: {
19011
+ _module_id: string;
19012
+ _user_id: string;
19013
+ };
19014
+ Returns: string;
19015
+ } | {
19016
+ Args: {
19017
+ _feature_id?: string;
19018
+ _module_id: string;
19019
+ _user_id: string;
19020
+ };
19021
+ Returns: string;
19022
+ };
18461
19023
  email_auth_decrypt: {
18462
19024
  Args: {
18463
19025
  cipher: string;
@@ -19261,6 +19823,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19261
19823
  isSetofReturn: false;
19262
19824
  };
19263
19825
  };
19826
+ logistics_floriday_claim_pushes: {
19827
+ Args: {
19828
+ _lease_seconds?: number;
19829
+ _limit?: number;
19830
+ _worker?: string;
19831
+ };
19832
+ Returns: {
19833
+ attempts: number;
19834
+ fulfillment_order_id: string;
19835
+ id: string;
19836
+ last_sent_hash: string;
19837
+ order_ref: string;
19838
+ payload: import("./types.js").Json;
19839
+ payload_hash: string;
19840
+ revision: number;
19841
+ }[];
19842
+ };
19843
+ logistics_floriday_finish_push: {
19844
+ Args: {
19845
+ _error?: string;
19846
+ _fulfillment_order_id?: string;
19847
+ _id: string;
19848
+ _max_age_hours?: number;
19849
+ _max_attempts?: number;
19850
+ _ok: boolean;
19851
+ _permanent?: boolean;
19852
+ _revision: number;
19853
+ _sent_hash?: string;
19854
+ };
19855
+ Returns: string;
19856
+ };
19857
+ logistics_floriday_prune_pushes: {
19858
+ Args: {
19859
+ _days?: number;
19860
+ };
19861
+ Returns: number;
19862
+ };
19863
+ logistics_floriday_queue_push: {
19864
+ Args: {
19865
+ _order_ref: string;
19866
+ _payload?: import("./types.js").Json;
19867
+ _payload_hash?: string;
19868
+ };
19869
+ Returns: string;
19870
+ };
19264
19871
  logistics_live_carriers: {
19265
19872
  Args: {
19266
19873
  p_order_ref: string;
@@ -19313,6 +19920,65 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19313
19920
  };
19314
19921
  Returns: number;
19315
19922
  };
19923
+ logistics_plan_claim: {
19924
+ Args: {
19925
+ p_limit?: number;
19926
+ };
19927
+ Returns: {
19928
+ attempts: number;
19929
+ id: string;
19930
+ order_id: string;
19931
+ }[];
19932
+ };
19933
+ logistics_plan_enqueue: {
19934
+ Args: {
19935
+ p_order_id: string;
19936
+ p_reason?: string;
19937
+ };
19938
+ Returns: undefined;
19939
+ };
19940
+ logistics_plan_ensure_event: {
19941
+ Args: {
19942
+ p_order_id: string;
19943
+ };
19944
+ Returns: boolean;
19945
+ };
19946
+ logistics_plan_finish: {
19947
+ Args: {
19948
+ p_error?: string;
19949
+ p_id: string;
19950
+ };
19951
+ Returns: undefined;
19952
+ };
19953
+ logistics_plan_impact_orders: {
19954
+ Args: {
19955
+ p_order_id: string;
19956
+ };
19957
+ Returns: {
19958
+ buffer_id: string;
19959
+ order_id: string;
19960
+ plan_date: string;
19961
+ }[];
19962
+ };
19963
+ logistics_plan_kick: {
19964
+ Args: never;
19965
+ Returns: undefined;
19966
+ };
19967
+ logistics_plan_prune: {
19968
+ Args: never;
19969
+ Returns: number;
19970
+ };
19971
+ logistics_plan_release_stale: {
19972
+ Args: never;
19973
+ Returns: number;
19974
+ };
19975
+ logistics_plan_setting: {
19976
+ Args: {
19977
+ p_default: number;
19978
+ p_key: string;
19979
+ };
19980
+ Returns: number;
19981
+ };
19316
19982
  logistics_queue_capacity_email: {
19317
19983
  Args: {
19318
19984
  p_alert_id: string;
@@ -19551,6 +20217,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19551
20217
  };
19552
20218
  Returns: undefined;
19553
20219
  };
20220
+ my_module_permissions: {
20221
+ Args: never;
20222
+ Returns: {
20223
+ feature_id: string;
20224
+ module_id: string;
20225
+ permission: string;
20226
+ }[];
20227
+ };
19554
20228
  next_manufacture_partij: {
19555
20229
  Args: {
19556
20230
  _tenant_id: string;
@@ -19601,6 +20275,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19601
20275
  };
19602
20276
  Returns: boolean;
19603
20277
  };
20278
+ opruim_print_historie: {
20279
+ Args: never;
20280
+ Returns: {
20281
+ ontdaan: number;
20282
+ verwijderd: number;
20283
+ }[];
20284
+ };
19604
20285
  order_number_prefix: {
19605
20286
  Args: {
19606
20287
  p_custom_fields?: import("./types.js").Json;
@@ -19608,6 +20289,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19608
20289
  };
19609
20290
  Returns: string;
19610
20291
  };
20292
+ pick_active_printers: {
20293
+ Args: never;
20294
+ Returns: {
20295
+ id: string;
20296
+ locatie: string;
20297
+ naam: string;
20298
+ online: boolean;
20299
+ }[];
20300
+ };
19611
20301
  pick_claim_document: {
19612
20302
  Args: {
19613
20303
  _queue_item_id: string;
@@ -19794,6 +20484,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19794
20484
  };
19795
20485
  Returns: undefined;
19796
20486
  };
20487
+ pick_reset_print: {
20488
+ Args: {
20489
+ _queue_item_id: string;
20490
+ _session_id: string;
20491
+ };
20492
+ Returns: {
20493
+ announced_at: string;
20494
+ assigned_user_id: string | null;
20495
+ barcode: string | null;
20496
+ cancelled_at: string | null;
20497
+ cart_count: number;
20498
+ completed_at: string | null;
20499
+ country_code: string | null;
20500
+ created_at: string;
20501
+ customer_name: string | null;
20502
+ delivery_address: string | null;
20503
+ document_number: string | null;
20504
+ document_type_id: string | null;
20505
+ due_at: string | null;
20506
+ id: string;
20507
+ is_urgent: boolean;
20508
+ line_count: number;
20509
+ order_number: string | null;
20510
+ order_type: string | null;
20511
+ payload: import("./types.js").Json;
20512
+ print_count: number;
20513
+ print_job_id: string | null;
20514
+ printed_at: string | null;
20515
+ printed_by: string | null;
20516
+ printer_id: string | null;
20517
+ priority: number;
20518
+ reference: string | null;
20519
+ route: string | null;
20520
+ screen_id: string | null;
20521
+ station_id: string | null;
20522
+ status_id: string | null;
20523
+ updated_at: string;
20524
+ warnings: import("./types.js").Json;
20525
+ };
20526
+ SetofOptions: {
20527
+ from: "*";
20528
+ to: "pick_queue";
20529
+ isOneToOne: true;
20530
+ isSetofReturn: false;
20531
+ };
20532
+ };
19797
20533
  pick_station_dashboard: {
19798
20534
  Args: never;
19799
20535
  Returns: {
@@ -19940,6 +20676,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19940
20676
  };
19941
20677
  Returns: undefined;
19942
20678
  };
20679
+ reset_stalled_floriday_stock_queue: {
20680
+ Args: {
20681
+ p_include_failed?: boolean;
20682
+ };
20683
+ Returns: number;
20684
+ };
19943
20685
  resolve_group_allocation: {
19944
20686
  Args: {
19945
20687
  _needed: number;
@@ -19984,14 +20726,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19984
20726
  };
19985
20727
  Returns: import("./types.js").Json;
19986
20728
  };
20729
+ ruim_print_jobs_op: {
20730
+ Args: {
20731
+ _bewaar_dagen?: number;
20732
+ };
20733
+ Returns: number;
20734
+ };
19987
20735
  run_floriday_continuous_stock_sync: {
19988
20736
  Args: never;
19989
20737
  Returns: undefined;
19990
20738
  };
20739
+ run_floriday_stock_queue_process: {
20740
+ Args: never;
20741
+ Returns: undefined;
20742
+ };
19991
20743
  run_logistics_tasks_dispatch: {
19992
20744
  Args: never;
19993
20745
  Returns: undefined;
19994
20746
  };
20747
+ run_print_queue_ticks: {
20748
+ Args: never;
20749
+ Returns: number;
20750
+ };
19995
20751
  run_twinfield_queue_tick: {
19996
20752
  Args: never;
19997
20753
  Returns: undefined;
@@ -20379,6 +21135,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20379
21135
  };
20380
21136
  Returns: undefined;
20381
21137
  };
21138
+ trade_item_stock_duplicates: {
21139
+ Args: never;
21140
+ Returns: {
21141
+ keys: string[];
21142
+ product_id: string;
21143
+ product_name: string;
21144
+ row_count: number;
21145
+ }[];
21146
+ };
20382
21147
  try_debtor_lock: {
20383
21148
  Args: {
20384
21149
  _group_key: string;
@@ -20428,7 +21193,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20428
21193
  };
20429
21194
  Enums: {
20430
21195
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20431
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21196
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20432
21197
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20433
21198
  doc_orientation: "portrait" | "landscape";
20434
21199
  exact_env: "staging" | "live";