@flowselections/floriday-verkoop-module 1.0.45 → 1.0.47

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 (69) hide show
  1. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +3 -1
  2. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  3. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.js +90 -19
  4. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/SalesOrderDetailView.js +1 -1
  6. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +6 -0
  7. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -0
  8. package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.js +26 -0
  9. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  10. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +2 -1
  11. package/dist-lib/integrations/supabase/auth-middleware.d.ts +864 -161
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.d.ts +864 -161
  14. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.js +2 -1
  16. package/dist-lib/integrations/supabase/client.server.d.ts +864 -161
  17. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +6 -0
  19. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -0
  20. package/dist-lib/integrations/supabase/previewAuthStorage.js +92 -0
  21. package/dist-lib/integrations/supabase/types.d.ts +904 -185
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/lib/cart-lock.functions.d.ts +864 -161
  24. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/cart-planning-settings.functions.d.ts +9577 -1844
  26. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/cart-replan.functions.d.ts +2544 -435
  28. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/create-order.functions.d.ts +14914 -2963
  30. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +2544 -435
  32. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +864 -161
  34. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floriday-mirror.functions.d.ts +864 -161
  36. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/floriday-mirror.functions.js +39 -10
  38. package/dist-lib/lib/floriday-public.functions.d.ts +6019 -1098
  39. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/floriday-writes.functions.d.ts +4240 -725
  41. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/invoice-timing.functions.d.ts +3392 -580
  43. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/load-carriers.functions.d.ts +864 -161
  45. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/logistics-engine.functions.d.ts +4240 -725
  47. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/logistics-stock.functions.d.ts +1696 -290
  49. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/order-addresses.functions.d.ts +864 -161
  51. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/order-buffers.functions.d.ts +2544 -435
  53. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/order-carrier.functions.d.ts +1696 -290
  55. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/order-pickup.functions.d.ts +1696 -290
  57. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/order-shipments.functions.d.ts +3392 -580
  59. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/salesorders-list.functions.d.ts +864 -161
  61. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/salesorders.functions.d.ts +4240 -725
  63. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +45850 -0
  65. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -0
  66. package/dist-lib/lib/stock-consumption-alerts.functions.js +50 -0
  67. package/dist-lib/lib/tradeitems.functions.d.ts +864 -161
  68. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  69. package/package.json +2 -1
@@ -692,6 +692,99 @@ export type Database = {
692
692
  };
693
693
  Relationships: [];
694
694
  };
695
+ artikelen_cache: {
696
+ Row: {
697
+ artikelcode: string;
698
+ bron: string;
699
+ bruto_prijs_cent: number | null;
700
+ created_at: string;
701
+ eenheid: string;
702
+ fabrikant: string | null;
703
+ fetched_at: string;
704
+ gtin: string | null;
705
+ id: string;
706
+ naam: string;
707
+ netto_prijs_cent: number | null;
708
+ omschrijving: string | null;
709
+ raw: Json;
710
+ updated_at: string;
711
+ valuta: string;
712
+ };
713
+ Insert: {
714
+ artikelcode: string;
715
+ bron?: string;
716
+ bruto_prijs_cent?: number | null;
717
+ created_at?: string;
718
+ eenheid?: string;
719
+ fabrikant?: string | null;
720
+ fetched_at?: string;
721
+ gtin?: string | null;
722
+ id?: string;
723
+ naam: string;
724
+ netto_prijs_cent?: number | null;
725
+ omschrijving?: string | null;
726
+ raw?: Json;
727
+ updated_at?: string;
728
+ valuta?: string;
729
+ };
730
+ Update: {
731
+ artikelcode?: string;
732
+ bron?: string;
733
+ bruto_prijs_cent?: number | null;
734
+ created_at?: string;
735
+ eenheid?: string;
736
+ fabrikant?: string | null;
737
+ fetched_at?: string;
738
+ gtin?: string | null;
739
+ id?: string;
740
+ naam?: string;
741
+ netto_prijs_cent?: number | null;
742
+ omschrijving?: string | null;
743
+ raw?: Json;
744
+ updated_at?: string;
745
+ valuta?: string;
746
+ };
747
+ Relationships: [];
748
+ };
749
+ artikelen_veldconfig: {
750
+ Row: {
751
+ bron_pad: string;
752
+ created_at: string;
753
+ id: string;
754
+ label: string;
755
+ sort_order: number;
756
+ type: string;
757
+ updated_at: string;
758
+ veld_key: string;
759
+ zichtbaar_in_detail: boolean;
760
+ zichtbaar_in_lijst: boolean;
761
+ };
762
+ Insert: {
763
+ bron_pad: string;
764
+ created_at?: string;
765
+ id?: string;
766
+ label: string;
767
+ sort_order?: number;
768
+ type?: string;
769
+ updated_at?: string;
770
+ veld_key: string;
771
+ zichtbaar_in_detail?: boolean;
772
+ zichtbaar_in_lijst?: boolean;
773
+ };
774
+ Update: {
775
+ bron_pad?: string;
776
+ created_at?: string;
777
+ id?: string;
778
+ label?: string;
779
+ sort_order?: number;
780
+ type?: string;
781
+ updated_at?: string;
782
+ veld_key?: string;
783
+ zichtbaar_in_detail?: boolean;
784
+ zichtbaar_in_lijst?: boolean;
785
+ };
786
+ Relationships: [];
787
+ };
695
788
  booking_items: {
696
789
  Row: {
697
790
  booking_id: string;
@@ -2818,6 +2911,44 @@ export type Database = {
2818
2911
  };
2819
2912
  Relationships: [];
2820
2913
  };
2914
+ document_bronregels: {
2915
+ Row: {
2916
+ bron: string;
2917
+ created_at: string;
2918
+ documenttype: string;
2919
+ herkomst: string;
2920
+ id: string;
2921
+ layout_id: string | null;
2922
+ updated_at: string;
2923
+ };
2924
+ Insert: {
2925
+ bron?: string;
2926
+ created_at?: string;
2927
+ documenttype: string;
2928
+ herkomst: string;
2929
+ id?: string;
2930
+ layout_id?: string | null;
2931
+ updated_at?: string;
2932
+ };
2933
+ Update: {
2934
+ bron?: string;
2935
+ created_at?: string;
2936
+ documenttype?: string;
2937
+ herkomst?: string;
2938
+ id?: string;
2939
+ layout_id?: string | null;
2940
+ updated_at?: string;
2941
+ };
2942
+ Relationships: [
2943
+ {
2944
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2945
+ columns: ["layout_id"];
2946
+ isOneToOne: false;
2947
+ referencedRelation: "document_layouts";
2948
+ referencedColumns: ["id"];
2949
+ }
2950
+ ];
2951
+ };
2821
2952
  document_formaat_printers: {
2822
2953
  Row: {
2823
2954
  created_at: string;
@@ -3108,6 +3239,7 @@ export type Database = {
3108
3239
  Row: {
3109
3240
  actief: boolean;
3110
3241
  breedte_mm: number;
3242
+ bron: string;
3111
3243
  config: Json;
3112
3244
  created_at: string;
3113
3245
  created_by: string | null;
@@ -3125,12 +3257,14 @@ export type Database = {
3125
3257
  orientatie: Database["public"]["Enums"]["doc_orientation"];
3126
3258
  page_settings: Json;
3127
3259
  papierformaat: string;
3260
+ systeem: boolean;
3128
3261
  thumbnail_url: string | null;
3129
3262
  updated_at: string;
3130
3263
  };
3131
3264
  Insert: {
3132
3265
  actief?: boolean;
3133
3266
  breedte_mm?: number;
3267
+ bron?: string;
3134
3268
  config?: Json;
3135
3269
  created_at?: string;
3136
3270
  created_by?: string | null;
@@ -3148,12 +3282,14 @@ export type Database = {
3148
3282
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3149
3283
  page_settings?: Json;
3150
3284
  papierformaat?: string;
3285
+ systeem?: boolean;
3151
3286
  thumbnail_url?: string | null;
3152
3287
  updated_at?: string;
3153
3288
  };
3154
3289
  Update: {
3155
3290
  actief?: boolean;
3156
3291
  breedte_mm?: number;
3292
+ bron?: string;
3157
3293
  config?: Json;
3158
3294
  created_at?: string;
3159
3295
  created_by?: string | null;
@@ -3171,11 +3307,95 @@ export type Database = {
3171
3307
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3172
3308
  page_settings?: Json;
3173
3309
  papierformaat?: string;
3310
+ systeem?: boolean;
3174
3311
  thumbnail_url?: string | null;
3175
3312
  updated_at?: string;
3176
3313
  };
3177
3314
  Relationships: [];
3178
3315
  };
3316
+ document_printplek_printers: {
3317
+ Row: {
3318
+ created_at: string;
3319
+ documenttype: string;
3320
+ id: string;
3321
+ papierformaat: string | null;
3322
+ print_plek_id: string;
3323
+ printer_id: string | null;
3324
+ updated_at: string;
3325
+ };
3326
+ Insert: {
3327
+ created_at?: string;
3328
+ documenttype: string;
3329
+ id?: string;
3330
+ papierformaat?: string | null;
3331
+ print_plek_id: string;
3332
+ printer_id?: string | null;
3333
+ updated_at?: string;
3334
+ };
3335
+ Update: {
3336
+ created_at?: string;
3337
+ documenttype?: string;
3338
+ id?: string;
3339
+ papierformaat?: string | null;
3340
+ print_plek_id?: string;
3341
+ printer_id?: string | null;
3342
+ updated_at?: string;
3343
+ };
3344
+ Relationships: [
3345
+ {
3346
+ foreignKeyName: "document_printplek_printers_print_plek_id_fkey";
3347
+ columns: ["print_plek_id"];
3348
+ isOneToOne: false;
3349
+ referencedRelation: "print_plekken";
3350
+ referencedColumns: ["id"];
3351
+ },
3352
+ {
3353
+ foreignKeyName: "document_printplek_printers_printer_id_fkey";
3354
+ columns: ["printer_id"];
3355
+ isOneToOne: false;
3356
+ referencedRelation: "printers";
3357
+ referencedColumns: ["id"];
3358
+ }
3359
+ ];
3360
+ };
3361
+ document_werkplek_printers: {
3362
+ Row: {
3363
+ created_at: string;
3364
+ documenttype: string;
3365
+ id: string;
3366
+ papierformaat: string | null;
3367
+ printer_id: string | null;
3368
+ updated_at: string;
3369
+ werkplek: string;
3370
+ };
3371
+ Insert: {
3372
+ created_at?: string;
3373
+ documenttype: string;
3374
+ id?: string;
3375
+ papierformaat?: string | null;
3376
+ printer_id?: string | null;
3377
+ updated_at?: string;
3378
+ werkplek: string;
3379
+ };
3380
+ Update: {
3381
+ created_at?: string;
3382
+ documenttype?: string;
3383
+ id?: string;
3384
+ papierformaat?: string | null;
3385
+ printer_id?: string | null;
3386
+ updated_at?: string;
3387
+ werkplek?: string;
3388
+ };
3389
+ Relationships: [
3390
+ {
3391
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3392
+ columns: ["printer_id"];
3393
+ isOneToOne: false;
3394
+ referencedRelation: "printers";
3395
+ referencedColumns: ["id"];
3396
+ }
3397
+ ];
3398
+ };
3179
3399
  email_auth_connections: {
3180
3400
  Row: {
3181
3401
  access_token_encrypted: string | null;
@@ -5157,42 +5377,6 @@ export type Database = {
5157
5377
  };
5158
5378
  Relationships: [];
5159
5379
  };
5160
- facturen: {
5161
- Row: {
5162
- bedrag_incl_btw: number;
5163
- created_at: string;
5164
- datum: string;
5165
- factuurnummer: string;
5166
- id: string;
5167
- klantnaam: string;
5168
- status: string;
5169
- updated_at: string;
5170
- user_id: string;
5171
- };
5172
- Insert: {
5173
- bedrag_incl_btw: number;
5174
- created_at?: string;
5175
- datum?: string;
5176
- factuurnummer: string;
5177
- id?: string;
5178
- klantnaam: string;
5179
- status?: string;
5180
- updated_at?: string;
5181
- user_id?: string;
5182
- };
5183
- Update: {
5184
- bedrag_incl_btw?: number;
5185
- created_at?: string;
5186
- datum?: string;
5187
- factuurnummer?: string;
5188
- id?: string;
5189
- klantnaam?: string;
5190
- status?: string;
5191
- updated_at?: string;
5192
- user_id?: string;
5193
- };
5194
- Relationships: [];
5195
- };
5196
5380
  floricode_connection_settings: {
5197
5381
  Row: {
5198
5382
  catalog_key: string | null;
@@ -7578,8 +7762,66 @@ export type Database = {
7578
7762
  };
7579
7763
  Relationships: [];
7580
7764
  };
7765
+ invoice_items: {
7766
+ Row: {
7767
+ created_at: string;
7768
+ description: string;
7769
+ id: string;
7770
+ invoice_id: string;
7771
+ kind: string;
7772
+ quantity: number;
7773
+ sort_order: number;
7774
+ source_line_ref: string | null;
7775
+ total_cents: number;
7776
+ unit: string;
7777
+ unit_price_cents: number;
7778
+ };
7779
+ Insert: {
7780
+ created_at?: string;
7781
+ description?: string;
7782
+ id?: string;
7783
+ invoice_id: string;
7784
+ kind?: string;
7785
+ quantity?: number;
7786
+ sort_order?: number;
7787
+ source_line_ref?: string | null;
7788
+ total_cents?: number;
7789
+ unit?: string;
7790
+ unit_price_cents?: number;
7791
+ };
7792
+ Update: {
7793
+ created_at?: string;
7794
+ description?: string;
7795
+ id?: string;
7796
+ invoice_id?: string;
7797
+ kind?: string;
7798
+ quantity?: number;
7799
+ sort_order?: number;
7800
+ source_line_ref?: string | null;
7801
+ total_cents?: number;
7802
+ unit?: string;
7803
+ unit_price_cents?: number;
7804
+ };
7805
+ Relationships: [
7806
+ {
7807
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7808
+ columns: ["invoice_id"];
7809
+ isOneToOne: false;
7810
+ referencedRelation: "invoices";
7811
+ referencedColumns: ["id"];
7812
+ },
7813
+ {
7814
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7815
+ columns: ["invoice_id"];
7816
+ isOneToOne: false;
7817
+ referencedRelation: "uren_facturen";
7818
+ referencedColumns: ["id"];
7819
+ }
7820
+ ];
7821
+ };
7581
7822
  invoice_post_idempotency: {
7582
7823
  Row: {
7824
+ administration_code: string;
7583
7825
  client_request_id: string;
7584
7826
  completed_at: string | null;
7585
7827
  created_at: string;
@@ -7589,6 +7831,7 @@ export type Database = {
7589
7831
  user_id: string;
7590
7832
  };
7591
7833
  Insert: {
7834
+ administration_code?: string;
7592
7835
  client_request_id: string;
7593
7836
  completed_at?: string | null;
7594
7837
  created_at?: string;
@@ -7598,6 +7841,7 @@ export type Database = {
7598
7841
  user_id: string;
7599
7842
  };
7600
7843
  Update: {
7844
+ administration_code?: string;
7601
7845
  client_request_id?: string;
7602
7846
  completed_at?: string | null;
7603
7847
  created_at?: string;
@@ -7808,30 +8052,101 @@ export type Database = {
7808
8052
  };
7809
8053
  Relationships: [];
7810
8054
  };
7811
- itk_contact_persons: {
8055
+ invoices: {
7812
8056
  Row: {
7813
8057
  created_at: string;
7814
- customer_id: string;
7815
- email: string | null;
8058
+ created_by: string | null;
8059
+ customer_id: string | null;
8060
+ customer_name: string | null;
8061
+ due_date: string | null;
7816
8062
  id: string;
7817
- name: string;
7818
- phone: string | null;
7819
- role: string | null;
8063
+ invoice_date: string;
8064
+ invoice_number: string | null;
8065
+ note: string | null;
8066
+ source_number: string | null;
8067
+ source_ref: string | null;
8068
+ source_type: string;
8069
+ status: string;
8070
+ subtotal_cents: number;
8071
+ total_cents: number;
7820
8072
  updated_at: string;
8073
+ vat_cents: number;
8074
+ vat_rate: number;
7821
8075
  };
7822
8076
  Insert: {
7823
8077
  created_at?: string;
7824
- customer_id: string;
7825
- email?: string | null;
8078
+ created_by?: string | null;
8079
+ customer_id?: string | null;
8080
+ customer_name?: string | null;
8081
+ due_date?: string | null;
7826
8082
  id?: string;
7827
- name: string;
7828
- phone?: string | null;
7829
- role?: string | null;
7830
- updated_at?: string;
7831
- };
7832
- Update: {
7833
- created_at?: string;
7834
- customer_id?: string;
8083
+ invoice_date?: string;
8084
+ invoice_number?: string | null;
8085
+ note?: string | null;
8086
+ source_number?: string | null;
8087
+ source_ref?: string | null;
8088
+ source_type?: string;
8089
+ status?: string;
8090
+ subtotal_cents?: number;
8091
+ total_cents?: number;
8092
+ updated_at?: string;
8093
+ vat_cents?: number;
8094
+ vat_rate?: number;
8095
+ };
8096
+ Update: {
8097
+ created_at?: string;
8098
+ created_by?: string | null;
8099
+ customer_id?: string | null;
8100
+ customer_name?: string | null;
8101
+ due_date?: string | null;
8102
+ id?: string;
8103
+ invoice_date?: string;
8104
+ invoice_number?: string | null;
8105
+ note?: string | null;
8106
+ source_number?: string | null;
8107
+ source_ref?: string | null;
8108
+ source_type?: string;
8109
+ status?: string;
8110
+ subtotal_cents?: number;
8111
+ total_cents?: number;
8112
+ updated_at?: string;
8113
+ vat_cents?: number;
8114
+ vat_rate?: number;
8115
+ };
8116
+ Relationships: [
8117
+ {
8118
+ foreignKeyName: "invoices_customer_id_fkey";
8119
+ columns: ["customer_id"];
8120
+ isOneToOne: false;
8121
+ referencedRelation: "itk_customers";
8122
+ referencedColumns: ["id"];
8123
+ }
8124
+ ];
8125
+ };
8126
+ itk_contact_persons: {
8127
+ Row: {
8128
+ created_at: string;
8129
+ customer_id: string;
8130
+ email: string | null;
8131
+ id: string;
8132
+ name: string;
8133
+ phone: string | null;
8134
+ role: string | null;
8135
+ updated_at: string;
8136
+ };
8137
+ Insert: {
8138
+ created_at?: string;
8139
+ customer_id: string;
8140
+ email?: string | null;
8141
+ id?: string;
8142
+ name: string;
8143
+ phone?: string | null;
8144
+ role?: string | null;
8145
+ updated_at?: string;
8146
+ };
8147
+ Update: {
8148
+ created_at?: string;
8149
+ customer_id?: string;
7835
8150
  email?: string | null;
7836
8151
  id?: string;
7837
8152
  name?: string;
@@ -9200,6 +9515,10 @@ export type Database = {
9200
9515
  id: string;
9201
9516
  last_error: string | null;
9202
9517
  last_error_at: string | null;
9518
+ last_error_code: string | null;
9519
+ last_gateway_status: number | null;
9520
+ last_queued_at: string | null;
9521
+ last_response: Json | null;
9203
9522
  last_sent_hash: string | null;
9204
9523
  locked_by: string | null;
9205
9524
  locked_until: string | null;
@@ -9220,6 +9539,10 @@ export type Database = {
9220
9539
  id?: string;
9221
9540
  last_error?: string | null;
9222
9541
  last_error_at?: string | null;
9542
+ last_error_code?: string | null;
9543
+ last_gateway_status?: number | null;
9544
+ last_queued_at?: string | null;
9545
+ last_response?: Json | null;
9223
9546
  last_sent_hash?: string | null;
9224
9547
  locked_by?: string | null;
9225
9548
  locked_until?: string | null;
@@ -9240,6 +9563,10 @@ export type Database = {
9240
9563
  id?: string;
9241
9564
  last_error?: string | null;
9242
9565
  last_error_at?: string | null;
9566
+ last_error_code?: string | null;
9567
+ last_gateway_status?: number | null;
9568
+ last_queued_at?: string | null;
9569
+ last_response?: Json | null;
9243
9570
  last_sent_hash?: string | null;
9244
9571
  locked_by?: string | null;
9245
9572
  locked_until?: string | null;
@@ -10831,6 +11158,7 @@ export type Database = {
10831
11158
  enforce: boolean;
10832
11159
  is_active: boolean;
10833
11160
  last_seen_at: string;
11161
+ missing_count: number;
10834
11162
  module_id: string;
10835
11163
  name: string;
10836
11164
  shell_id: string | null;
@@ -10841,6 +11169,7 @@ export type Database = {
10841
11169
  enforce?: boolean;
10842
11170
  is_active?: boolean;
10843
11171
  last_seen_at?: string;
11172
+ missing_count?: number;
10844
11173
  module_id: string;
10845
11174
  name: string;
10846
11175
  shell_id?: string | null;
@@ -10851,6 +11180,7 @@ export type Database = {
10851
11180
  enforce?: boolean;
10852
11181
  is_active?: boolean;
10853
11182
  last_seen_at?: string;
11183
+ missing_count?: number;
10854
11184
  module_id?: string;
10855
11185
  name?: string;
10856
11186
  shell_id?: string | null;
@@ -11882,6 +12212,7 @@ export type Database = {
11882
12212
  };
11883
12213
  order_invoice_links: {
11884
12214
  Row: {
12215
+ administration_code: string | null;
11885
12216
  attempts: number;
11886
12217
  created_at: string;
11887
12218
  error_message: string | null;
@@ -11894,6 +12225,7 @@ export type Database = {
11894
12225
  updated_at: string;
11895
12226
  };
11896
12227
  Insert: {
12228
+ administration_code?: string | null;
11897
12229
  attempts?: number;
11898
12230
  created_at?: string;
11899
12231
  error_message?: string | null;
@@ -11906,6 +12238,7 @@ export type Database = {
11906
12238
  updated_at?: string;
11907
12239
  };
11908
12240
  Update: {
12241
+ administration_code?: string | null;
11909
12242
  attempts?: number;
11910
12243
  created_at?: string;
11911
12244
  error_message?: string | null;
@@ -13115,6 +13448,27 @@ export type Database = {
13115
13448
  }
13116
13449
  ];
13117
13450
  };
13451
+ pick_sync_state: {
13452
+ Row: {
13453
+ id: boolean;
13454
+ last_cleanup_at: string | null;
13455
+ last_sync_at: string | null;
13456
+ updated_at: string;
13457
+ };
13458
+ Insert: {
13459
+ id?: boolean;
13460
+ last_cleanup_at?: string | null;
13461
+ last_sync_at?: string | null;
13462
+ updated_at?: string;
13463
+ };
13464
+ Update: {
13465
+ id?: boolean;
13466
+ last_cleanup_at?: string | null;
13467
+ last_sync_at?: string | null;
13468
+ updated_at?: string;
13469
+ };
13470
+ Relationships: [];
13471
+ };
13118
13472
  pick_task_document_types: {
13119
13473
  Row: {
13120
13474
  created_at: string;
@@ -13406,6 +13760,7 @@ export type Database = {
13406
13760
  gebruiker_id: string | null;
13407
13761
  gebruiker_naam: string;
13408
13762
  gestart_op: string | null;
13763
+ herkomst: string | null;
13409
13764
  id: string;
13410
13765
  idempotentie_sleutel: string | null;
13411
13766
  is_herprint: boolean;
@@ -13435,6 +13790,7 @@ export type Database = {
13435
13790
  gebruiker_id?: string | null;
13436
13791
  gebruiker_naam?: string;
13437
13792
  gestart_op?: string | null;
13793
+ herkomst?: string | null;
13438
13794
  id?: string;
13439
13795
  idempotentie_sleutel?: string | null;
13440
13796
  is_herprint?: boolean;
@@ -13464,6 +13820,7 @@ export type Database = {
13464
13820
  gebruiker_id?: string | null;
13465
13821
  gebruiker_naam?: string;
13466
13822
  gestart_op?: string | null;
13823
+ herkomst?: string | null;
13467
13824
  id?: string;
13468
13825
  idempotentie_sleutel?: string | null;
13469
13826
  is_herprint?: boolean;
@@ -13506,6 +13863,103 @@ export type Database = {
13506
13863
  }
13507
13864
  ];
13508
13865
  };
13866
+ print_plek_computers: {
13867
+ Row: {
13868
+ computer_naam: string;
13869
+ created_at: string;
13870
+ id: string;
13871
+ print_plek_id: string;
13872
+ updated_at: string;
13873
+ };
13874
+ Insert: {
13875
+ computer_naam: string;
13876
+ created_at?: string;
13877
+ id?: string;
13878
+ print_plek_id: string;
13879
+ updated_at?: string;
13880
+ };
13881
+ Update: {
13882
+ computer_naam?: string;
13883
+ created_at?: string;
13884
+ id?: string;
13885
+ print_plek_id?: string;
13886
+ updated_at?: string;
13887
+ };
13888
+ Relationships: [
13889
+ {
13890
+ foreignKeyName: "print_plek_computers_print_plek_id_fkey";
13891
+ columns: ["print_plek_id"];
13892
+ isOneToOne: false;
13893
+ referencedRelation: "print_plekken";
13894
+ referencedColumns: ["id"];
13895
+ }
13896
+ ];
13897
+ };
13898
+ print_plek_koppelingen: {
13899
+ Row: {
13900
+ bron: string;
13901
+ bron_id: string;
13902
+ created_at: string;
13903
+ id: string;
13904
+ label: string | null;
13905
+ print_plek_id: string;
13906
+ updated_at: string;
13907
+ };
13908
+ Insert: {
13909
+ bron: string;
13910
+ bron_id: string;
13911
+ created_at?: string;
13912
+ id?: string;
13913
+ label?: string | null;
13914
+ print_plek_id: string;
13915
+ updated_at?: string;
13916
+ };
13917
+ Update: {
13918
+ bron?: string;
13919
+ bron_id?: string;
13920
+ created_at?: string;
13921
+ id?: string;
13922
+ label?: string | null;
13923
+ print_plek_id?: string;
13924
+ updated_at?: string;
13925
+ };
13926
+ Relationships: [
13927
+ {
13928
+ foreignKeyName: "print_plek_koppelingen_print_plek_id_fkey";
13929
+ columns: ["print_plek_id"];
13930
+ isOneToOne: false;
13931
+ referencedRelation: "print_plekken";
13932
+ referencedColumns: ["id"];
13933
+ }
13934
+ ];
13935
+ };
13936
+ print_plekken: {
13937
+ Row: {
13938
+ actief: boolean;
13939
+ created_at: string;
13940
+ id: string;
13941
+ naam: string;
13942
+ omschrijving: string | null;
13943
+ updated_at: string;
13944
+ };
13945
+ Insert: {
13946
+ actief?: boolean;
13947
+ created_at?: string;
13948
+ id?: string;
13949
+ naam: string;
13950
+ omschrijving?: string | null;
13951
+ updated_at?: string;
13952
+ };
13953
+ Update: {
13954
+ actief?: boolean;
13955
+ created_at?: string;
13956
+ id?: string;
13957
+ naam?: string;
13958
+ omschrijving?: string | null;
13959
+ updated_at?: string;
13960
+ };
13961
+ Relationships: [];
13962
+ };
13509
13963
  print_queue_runners: {
13510
13964
  Row: {
13511
13965
  actief: boolean;
@@ -15738,6 +16192,45 @@ export type Database = {
15738
16192
  };
15739
16193
  Relationships: [];
15740
16194
  };
16195
+ stock_consumption_alerts: {
16196
+ Row: {
16197
+ alert_type: string;
16198
+ created_at: string;
16199
+ id: string;
16200
+ mutation_log_id: string | null;
16201
+ order_id: string | null;
16202
+ order_item_id: string | null;
16203
+ qty: number;
16204
+ reason: string | null;
16205
+ resolved_at: string | null;
16206
+ updated_at: string;
16207
+ };
16208
+ Insert: {
16209
+ alert_type: string;
16210
+ created_at?: string;
16211
+ id?: string;
16212
+ mutation_log_id?: string | null;
16213
+ order_id?: string | null;
16214
+ order_item_id?: string | null;
16215
+ qty?: number;
16216
+ reason?: string | null;
16217
+ resolved_at?: string | null;
16218
+ updated_at?: string;
16219
+ };
16220
+ Update: {
16221
+ alert_type?: string;
16222
+ created_at?: string;
16223
+ id?: string;
16224
+ mutation_log_id?: string | null;
16225
+ order_id?: string | null;
16226
+ order_item_id?: string | null;
16227
+ qty?: number;
16228
+ reason?: string | null;
16229
+ resolved_at?: string | null;
16230
+ updated_at?: string;
16231
+ };
16232
+ Relationships: [];
16233
+ };
15741
16234
  stock_import_runs: {
15742
16235
  Row: {
15743
16236
  connection_id: string | null;
@@ -16563,12 +17056,16 @@ export type Database = {
16563
17056
  company_name: string | null;
16564
17057
  connected_at: string | null;
16565
17058
  created_at: string;
17059
+ disconnected_at: string | null;
16566
17060
  environment: string;
16567
17061
  id: string;
17062
+ initial_sync_completed_at: string | null;
17063
+ initial_sync_started_at: string | null;
16568
17064
  is_active: boolean;
16569
17065
  label: string | null;
16570
17066
  office_code: string | null;
16571
17067
  redirect_uri: string | null;
17068
+ superseded_at: string | null;
16572
17069
  updated_at: string;
16573
17070
  user_id: string;
16574
17071
  };
@@ -16579,12 +17076,16 @@ export type Database = {
16579
17076
  company_name?: string | null;
16580
17077
  connected_at?: string | null;
16581
17078
  created_at?: string;
17079
+ disconnected_at?: string | null;
16582
17080
  environment: string;
16583
17081
  id?: string;
17082
+ initial_sync_completed_at?: string | null;
17083
+ initial_sync_started_at?: string | null;
16584
17084
  is_active?: boolean;
16585
17085
  label?: string | null;
16586
17086
  office_code?: string | null;
16587
17087
  redirect_uri?: string | null;
17088
+ superseded_at?: string | null;
16588
17089
  updated_at?: string;
16589
17090
  user_id: string;
16590
17091
  };
@@ -16595,12 +17096,16 @@ export type Database = {
16595
17096
  company_name?: string | null;
16596
17097
  connected_at?: string | null;
16597
17098
  created_at?: string;
17099
+ disconnected_at?: string | null;
16598
17100
  environment?: string;
16599
17101
  id?: string;
17102
+ initial_sync_completed_at?: string | null;
17103
+ initial_sync_started_at?: string | null;
16600
17104
  is_active?: boolean;
16601
17105
  label?: string | null;
16602
17106
  office_code?: string | null;
16603
17107
  redirect_uri?: string | null;
17108
+ superseded_at?: string | null;
16604
17109
  updated_at?: string;
16605
17110
  user_id?: string;
16606
17111
  };
@@ -16660,6 +17165,7 @@ export type Database = {
16660
17165
  twinfield_customers: {
16661
17166
  Row: {
16662
17167
  address: string | null;
17168
+ administration_code: string;
16663
17169
  city: string | null;
16664
17170
  country: string | null;
16665
17171
  created_at: string;
@@ -16679,6 +17185,7 @@ export type Database = {
16679
17185
  };
16680
17186
  Insert: {
16681
17187
  address?: string | null;
17188
+ administration_code?: string;
16682
17189
  city?: string | null;
16683
17190
  country?: string | null;
16684
17191
  created_at?: string;
@@ -16698,6 +17205,7 @@ export type Database = {
16698
17205
  };
16699
17206
  Update: {
16700
17207
  address?: string | null;
17208
+ administration_code?: string;
16701
17209
  city?: string | null;
16702
17210
  country?: string | null;
16703
17211
  created_at?: string;
@@ -16919,7 +17427,9 @@ export type Database = {
16919
17427
  };
16920
17428
  twinfield_invoice_settings: {
16921
17429
  Row: {
17430
+ administration_code: string | null;
16922
17431
  auto_invoice_enabled: boolean;
17432
+ auto_invoice_start_date: string | null;
16923
17433
  auto_invoice_trigger_statuses: string[];
16924
17434
  created_at: string;
16925
17435
  debtor_gl_account: string;
@@ -16933,15 +17443,19 @@ export type Database = {
16933
17443
  invoice_enabled_fo: boolean;
16934
17444
  invoice_enabled_ho: boolean;
16935
17445
  invoice_enabled_mo: boolean;
17446
+ needs_review: boolean;
16936
17447
  payment_gl_account: string;
16937
17448
  payment_journal_code: string;
17449
+ settings_confirmed_at: string | null;
16938
17450
  updated_at: string;
16939
17451
  user_id: string;
16940
17452
  vat_code_eu_reverse: string | null;
16941
17453
  vat_code_export: string | null;
16942
17454
  };
16943
17455
  Insert: {
17456
+ administration_code?: string | null;
16944
17457
  auto_invoice_enabled?: boolean;
17458
+ auto_invoice_start_date?: string | null;
16945
17459
  auto_invoice_trigger_statuses?: string[];
16946
17460
  created_at?: string;
16947
17461
  debtor_gl_account?: string;
@@ -16955,15 +17469,19 @@ export type Database = {
16955
17469
  invoice_enabled_fo?: boolean;
16956
17470
  invoice_enabled_ho?: boolean;
16957
17471
  invoice_enabled_mo?: boolean;
17472
+ needs_review?: boolean;
16958
17473
  payment_gl_account?: string;
16959
17474
  payment_journal_code?: string;
17475
+ settings_confirmed_at?: string | null;
16960
17476
  updated_at?: string;
16961
17477
  user_id: string;
16962
17478
  vat_code_eu_reverse?: string | null;
16963
17479
  vat_code_export?: string | null;
16964
17480
  };
16965
17481
  Update: {
17482
+ administration_code?: string | null;
16966
17483
  auto_invoice_enabled?: boolean;
17484
+ auto_invoice_start_date?: string | null;
16967
17485
  auto_invoice_trigger_statuses?: string[];
16968
17486
  created_at?: string;
16969
17487
  debtor_gl_account?: string;
@@ -16977,8 +17495,10 @@ export type Database = {
16977
17495
  invoice_enabled_fo?: boolean;
16978
17496
  invoice_enabled_ho?: boolean;
16979
17497
  invoice_enabled_mo?: boolean;
17498
+ needs_review?: boolean;
16980
17499
  payment_gl_account?: string;
16981
17500
  payment_journal_code?: string;
17501
+ settings_confirmed_at?: string | null;
16982
17502
  updated_at?: string;
16983
17503
  user_id?: string;
16984
17504
  vat_code_eu_reverse?: string | null;
@@ -17592,148 +18112,35 @@ export type Database = {
17592
18112
  };
17593
18113
  Relationships: [];
17594
18114
  };
17595
- uren_facturen: {
18115
+ uren_offerte_regels: {
17596
18116
  Row: {
17597
18117
  created_at: string;
17598
- created_by: string | null;
17599
- customer_id: string | null;
17600
- customer_name: string | null;
18118
+ description: string;
18119
+ duration_minutes: number;
17601
18120
  id: string;
17602
- invoice_number: string | null;
17603
- note: string | null;
17604
- status: string;
17605
- total_excl_cents: number;
17606
- total_incl_cents: number;
17607
- updated_at: string;
17608
- vat_cents: number;
17609
- vat_percentage: number;
17610
- werkbon_id: string | null;
18121
+ offerte_id: string;
18122
+ package_id: string | null;
18123
+ quantity: number;
18124
+ sort_order: number;
18125
+ total_cents: number;
18126
+ unit_price_cents: number;
17611
18127
  };
17612
18128
  Insert: {
17613
18129
  created_at?: string;
17614
- created_by?: string | null;
17615
- customer_id?: string | null;
17616
- customer_name?: string | null;
18130
+ description: string;
18131
+ duration_minutes?: number;
17617
18132
  id?: string;
17618
- invoice_number?: string | null;
17619
- note?: string | null;
17620
- status?: string;
17621
- total_excl_cents?: number;
17622
- total_incl_cents?: number;
17623
- updated_at?: string;
17624
- vat_cents?: number;
17625
- vat_percentage?: number;
17626
- werkbon_id?: string | null;
18133
+ offerte_id: string;
18134
+ package_id?: string | null;
18135
+ quantity?: number;
18136
+ sort_order?: number;
18137
+ total_cents?: number;
18138
+ unit_price_cents?: number;
17627
18139
  };
17628
18140
  Update: {
17629
18141
  created_at?: string;
17630
- created_by?: string | null;
17631
- customer_id?: string | null;
17632
- customer_name?: string | null;
17633
- id?: string;
17634
- invoice_number?: string | null;
17635
- note?: string | null;
17636
- status?: string;
17637
- total_excl_cents?: number;
17638
- total_incl_cents?: number;
17639
- updated_at?: string;
17640
- vat_cents?: number;
17641
- vat_percentage?: number;
17642
- werkbon_id?: string | null;
17643
- };
17644
- Relationships: [
17645
- {
17646
- foreignKeyName: "uren_facturen_customer_id_fkey";
17647
- columns: ["customer_id"];
17648
- isOneToOne: false;
17649
- referencedRelation: "itk_customers";
17650
- referencedColumns: ["id"];
17651
- },
17652
- {
17653
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17654
- columns: ["werkbon_id"];
17655
- isOneToOne: true;
17656
- referencedRelation: "werkbonnen";
17657
- referencedColumns: ["id"];
17658
- }
17659
- ];
17660
- };
17661
- uren_factuur_regels: {
17662
- Row: {
17663
- created_at: string;
17664
- description: string;
17665
- factuur_id: string;
17666
- id: string;
17667
- kind: string | null;
17668
- quantity: number;
17669
- sort_order: number;
17670
- total_cents: number;
17671
- unit: string;
17672
- unit_price_cents: number;
17673
- };
17674
- Insert: {
17675
- created_at?: string;
17676
- description: string;
17677
- factuur_id: string;
17678
- id?: string;
17679
- kind?: string | null;
17680
- quantity?: number;
17681
- sort_order?: number;
17682
- total_cents?: number;
17683
- unit?: string;
17684
- unit_price_cents?: number;
17685
- };
17686
- Update: {
17687
- created_at?: string;
17688
- description?: string;
17689
- factuur_id?: string;
17690
- id?: string;
17691
- kind?: string | null;
17692
- quantity?: number;
17693
- sort_order?: number;
17694
- total_cents?: number;
17695
- unit?: string;
17696
- unit_price_cents?: number;
17697
- };
17698
- Relationships: [
17699
- {
17700
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17701
- columns: ["factuur_id"];
17702
- isOneToOne: false;
17703
- referencedRelation: "uren_facturen";
17704
- referencedColumns: ["id"];
17705
- }
17706
- ];
17707
- };
17708
- uren_offerte_regels: {
17709
- Row: {
17710
- created_at: string;
17711
- description: string;
17712
- duration_minutes: number;
17713
- id: string;
17714
- offerte_id: string;
17715
- package_id: string | null;
17716
- quantity: number;
17717
- sort_order: number;
17718
- total_cents: number;
17719
- unit_price_cents: number;
17720
- };
17721
- Insert: {
17722
- created_at?: string;
17723
- description: string;
17724
- duration_minutes?: number;
17725
- id?: string;
17726
- offerte_id: string;
17727
- package_id?: string | null;
17728
- quantity?: number;
17729
- sort_order?: number;
17730
- total_cents?: number;
17731
- unit_price_cents?: number;
17732
- };
17733
- Update: {
17734
- created_at?: string;
17735
- description?: string;
17736
- duration_minutes?: number;
18142
+ description?: string;
18143
+ duration_minutes?: number;
17737
18144
  id?: string;
17738
18145
  offerte_id?: string;
17739
18146
  package_id?: string | null;
@@ -18988,6 +19395,9 @@ export type Database = {
18988
19395
  scheduled_end_time: string | null;
18989
19396
  scheduled_start_time: string | null;
18990
19397
  sequence_number: number;
19398
+ signature_accepted_at: string | null;
19399
+ signature_by_user_id: string | null;
19400
+ signature_name: string | null;
18991
19401
  source_email_meta: Json | null;
18992
19402
  source_mailbox_message_id: string | null;
18993
19403
  source_pdf_path: string | null;
@@ -19023,6 +19433,9 @@ export type Database = {
19023
19433
  scheduled_end_time?: string | null;
19024
19434
  scheduled_start_time?: string | null;
19025
19435
  sequence_number: number;
19436
+ signature_accepted_at?: string | null;
19437
+ signature_by_user_id?: string | null;
19438
+ signature_name?: string | null;
19026
19439
  source_email_meta?: Json | null;
19027
19440
  source_mailbox_message_id?: string | null;
19028
19441
  source_pdf_path?: string | null;
@@ -19058,6 +19471,9 @@ export type Database = {
19058
19471
  scheduled_end_time?: string | null;
19059
19472
  scheduled_start_time?: string | null;
19060
19473
  sequence_number?: number;
19474
+ signature_accepted_at?: string | null;
19475
+ signature_by_user_id?: string | null;
19476
+ signature_name?: string | null;
19061
19477
  source_email_meta?: Json | null;
19062
19478
  source_mailbox_message_id?: string | null;
19063
19479
  source_pdf_path?: string | null;
@@ -19587,6 +20003,119 @@ export type Database = {
19587
20003
  };
19588
20004
  Relationships: [];
19589
20005
  };
20006
+ uren_facturen: {
20007
+ Row: {
20008
+ created_at: string | null;
20009
+ created_by: string | null;
20010
+ customer_id: string | null;
20011
+ customer_name: string | null;
20012
+ id: string | null;
20013
+ invoice_number: string | null;
20014
+ note: string | null;
20015
+ status: string | null;
20016
+ total_excl_cents: number | null;
20017
+ total_incl_cents: number | null;
20018
+ updated_at: string | null;
20019
+ vat_cents: number | null;
20020
+ vat_percentage: number | null;
20021
+ werkbon_id: string | null;
20022
+ };
20023
+ Insert: {
20024
+ created_at?: string | null;
20025
+ created_by?: string | null;
20026
+ customer_id?: string | null;
20027
+ customer_name?: string | null;
20028
+ id?: string | null;
20029
+ invoice_number?: string | null;
20030
+ note?: string | null;
20031
+ status?: string | null;
20032
+ total_excl_cents?: number | null;
20033
+ total_incl_cents?: number | null;
20034
+ updated_at?: string | null;
20035
+ vat_cents?: number | null;
20036
+ vat_percentage?: number | null;
20037
+ werkbon_id?: never;
20038
+ };
20039
+ Update: {
20040
+ created_at?: string | null;
20041
+ created_by?: string | null;
20042
+ customer_id?: string | null;
20043
+ customer_name?: string | null;
20044
+ id?: string | null;
20045
+ invoice_number?: string | null;
20046
+ note?: string | null;
20047
+ status?: string | null;
20048
+ total_excl_cents?: number | null;
20049
+ total_incl_cents?: number | null;
20050
+ updated_at?: string | null;
20051
+ vat_cents?: number | null;
20052
+ vat_percentage?: number | null;
20053
+ werkbon_id?: never;
20054
+ };
20055
+ Relationships: [
20056
+ {
20057
+ foreignKeyName: "invoices_customer_id_fkey";
20058
+ columns: ["customer_id"];
20059
+ isOneToOne: false;
20060
+ referencedRelation: "itk_customers";
20061
+ referencedColumns: ["id"];
20062
+ }
20063
+ ];
20064
+ };
20065
+ uren_factuur_regels: {
20066
+ Row: {
20067
+ created_at: string | null;
20068
+ description: string | null;
20069
+ factuur_id: string | null;
20070
+ id: string | null;
20071
+ kind: string | null;
20072
+ quantity: number | null;
20073
+ sort_order: number | null;
20074
+ total_cents: number | null;
20075
+ unit: string | null;
20076
+ unit_price_cents: number | null;
20077
+ };
20078
+ Insert: {
20079
+ created_at?: string | null;
20080
+ description?: string | null;
20081
+ factuur_id?: string | null;
20082
+ id?: string | null;
20083
+ kind?: string | null;
20084
+ quantity?: number | null;
20085
+ sort_order?: number | null;
20086
+ total_cents?: number | null;
20087
+ unit?: string | null;
20088
+ unit_price_cents?: number | null;
20089
+ };
20090
+ Update: {
20091
+ created_at?: string | null;
20092
+ description?: string | null;
20093
+ factuur_id?: string | null;
20094
+ id?: string | null;
20095
+ kind?: string | null;
20096
+ quantity?: number | null;
20097
+ sort_order?: number | null;
20098
+ total_cents?: number | null;
20099
+ unit?: string | null;
20100
+ unit_price_cents?: number | null;
20101
+ };
20102
+ Relationships: [
20103
+ {
20104
+ foreignKeyName: "invoice_items_invoice_id_fkey";
20105
+ columns: ["factuur_id"];
20106
+ isOneToOne: false;
20107
+ referencedRelation: "invoices";
20108
+ referencedColumns: ["id"];
20109
+ },
20110
+ {
20111
+ foreignKeyName: "invoice_items_invoice_id_fkey";
20112
+ columns: ["factuur_id"];
20113
+ isOneToOne: false;
20114
+ referencedRelation: "uren_facturen";
20115
+ referencedColumns: ["id"];
20116
+ }
20117
+ ];
20118
+ };
19590
20119
  v_external_customers_exact: {
19591
20120
  Row: {
19592
20121
  account_number: string | null;
@@ -20102,6 +20631,7 @@ export type Database = {
20102
20631
  gebruiker_id: string | null;
20103
20632
  gebruiker_naam: string;
20104
20633
  gestart_op: string | null;
20634
+ herkomst: string | null;
20105
20635
  id: string;
20106
20636
  idempotentie_sleutel: string | null;
20107
20637
  is_herprint: boolean;
@@ -20222,6 +20752,7 @@ export type Database = {
20222
20752
  gebruiker_id: string | null;
20223
20753
  gebruiker_naam: string;
20224
20754
  gestart_op: string | null;
20755
+ herkomst: string | null;
20225
20756
  id: string;
20226
20757
  idempotentie_sleutel: string | null;
20227
20758
  is_herprint: boolean;
@@ -20823,6 +21354,46 @@ export type Database = {
20823
21354
  Args: never;
20824
21355
  Returns: boolean;
20825
21356
  };
21357
+ invoice_create_from_source: {
21358
+ Args: {
21359
+ _payload?: Json;
21360
+ _source_id: string;
21361
+ _source_type: string;
21362
+ };
21363
+ Returns: Json;
21364
+ };
21365
+ invoice_get_billable_lines: {
21366
+ Args: {
21367
+ _invoice_id: string;
21368
+ };
21369
+ Returns: Json;
21370
+ };
21371
+ invoice_get_for_source: {
21372
+ Args: {
21373
+ _source_id: string;
21374
+ _source_type: string;
21375
+ };
21376
+ Returns: Json;
21377
+ };
21378
+ invoice_get_summary: {
21379
+ Args: {
21380
+ _invoice_id: string;
21381
+ };
21382
+ Returns: Json;
21383
+ };
21384
+ invoice_list_sources: {
21385
+ Args: {
21386
+ _limit?: number;
21387
+ _source_type?: string;
21388
+ };
21389
+ Returns: Json;
21390
+ };
21391
+ invoice_recalc_totals: {
21392
+ Args: {
21393
+ _invoice_id: string;
21394
+ };
21395
+ Returns: Json;
21396
+ };
20826
21397
  is_authenticated: {
20827
21398
  Args: never;
20828
21399
  Returns: boolean;
@@ -20891,6 +21462,29 @@ export type Database = {
20891
21462
  roles: string[];
20892
21463
  }[];
20893
21464
  };
21465
+ list_monteur_absences: {
21466
+ Args: {
21467
+ _from: string;
21468
+ _to: string;
21469
+ };
21470
+ Returns: {
21471
+ absence_date: string;
21472
+ end_time: string;
21473
+ full_day: boolean;
21474
+ kind: string;
21475
+ monteur_id: string;
21476
+ start_time: string;
21477
+ }[];
21478
+ };
21479
+ list_monteurs: {
21480
+ Args: never;
21481
+ Returns: {
21482
+ avatar_url: string;
21483
+ display_name: string;
21484
+ email: string;
21485
+ id: string;
21486
+ }[];
21487
+ };
20894
21488
  list_my_planning_items: {
20895
21489
  Args: {
20896
21490
  _from: string;
@@ -21302,6 +21896,41 @@ export type Database = {
21302
21896
  };
21303
21897
  Returns: string;
21304
21898
  };
21899
+ logistics_floriday_finish_push_v2: {
21900
+ Args: {
21901
+ _error?: string;
21902
+ _error_code?: string;
21903
+ _fulfillment_order_id?: string;
21904
+ _gateway_status?: number;
21905
+ _id: string;
21906
+ _max_age_hours?: number;
21907
+ _max_attempts?: number;
21908
+ _ok: boolean;
21909
+ _permanent?: boolean;
21910
+ _response?: Json;
21911
+ _revision: number;
21912
+ _sent_hash?: string;
21913
+ };
21914
+ Returns: string;
21915
+ };
21916
+ logistics_floriday_finish_push_v3: {
21917
+ Args: {
21918
+ _error?: string;
21919
+ _error_code?: string;
21920
+ _fulfillment_order_id?: string;
21921
+ _gateway_status?: number;
21922
+ _id: string;
21923
+ _max_age_hours?: number;
21924
+ _max_attempts?: number;
21925
+ _outcome: string;
21926
+ _permanent?: boolean;
21927
+ _response?: Json;
21928
+ _revision: number;
21929
+ _sent_hash?: string;
21930
+ _wait_max_age_hours?: number;
21931
+ };
21932
+ Returns: string;
21933
+ };
21305
21934
  logistics_floriday_prune_pushes: {
21306
21935
  Args: {
21307
21936
  _days?: number;
@@ -21730,6 +22359,12 @@ export type Database = {
21730
22359
  verwijderd: number;
21731
22360
  }[];
21732
22361
  };
22362
+ order_departure_proof: {
22363
+ Args: {
22364
+ p_order_id: string;
22365
+ };
22366
+ Returns: Json;
22367
+ };
21733
22368
  order_number_prefix: {
21734
22369
  Args: {
21735
22370
  p_custom_fields?: Json;
@@ -21844,6 +22479,13 @@ export type Database = {
21844
22479
  isSetofReturn: false;
21845
22480
  };
21846
22481
  };
22482
+ pick_cleanup_maintenance: {
22483
+ Args: {
22484
+ _heartbeat_hours?: number;
22485
+ _log_days?: number;
22486
+ };
22487
+ Returns: Json;
22488
+ };
21847
22489
  pick_complete_print: {
21848
22490
  Args: {
21849
22491
  _printer_id: string;
@@ -21895,6 +22537,14 @@ export type Database = {
21895
22537
  Args: never;
21896
22538
  Returns: string;
21897
22539
  };
22540
+ pick_day_counts: {
22541
+ Args: {
22542
+ _pick_day?: string;
22543
+ _screen_id?: string;
22544
+ _station_id?: string;
22545
+ };
22546
+ Returns: Json;
22547
+ };
21898
22548
  pick_document_layout_data: {
21899
22549
  Args: {
21900
22550
  _layout_id: string;
@@ -21922,6 +22572,14 @@ export type Database = {
21922
22572
  };
21923
22573
  Returns: Json;
21924
22574
  };
22575
+ pick_print_plekken: {
22576
+ Args: never;
22577
+ Returns: {
22578
+ id: string;
22579
+ naam: string;
22580
+ omschrijving: string;
22581
+ }[];
22582
+ };
21925
22583
  pick_release_expired_locks: {
21926
22584
  Args: never;
21927
22585
  Returns: number;
@@ -21932,6 +22590,14 @@ export type Database = {
21932
22590
  };
21933
22591
  Returns: undefined;
21934
22592
  };
22593
+ pick_reprint_document: {
22594
+ Args: {
22595
+ _queue_item_id: string;
22596
+ _session_id: string;
22597
+ _throttle_seconds?: number;
22598
+ };
22599
+ Returns: string;
22600
+ };
21935
22601
  pick_reset_print: {
21936
22602
  Args: {
21937
22603
  _queue_item_id: string;
@@ -21978,6 +22644,13 @@ export type Database = {
21978
22644
  isSetofReturn: false;
21979
22645
  };
21980
22646
  };
22647
+ pick_set_station_print_plek: {
22648
+ Args: {
22649
+ _print_plek_id: string;
22650
+ _station_id: string;
22651
+ };
22652
+ Returns: string;
22653
+ };
21981
22654
  pick_station_dashboard: {
21982
22655
  Args: never;
21983
22656
  Returns: {
@@ -21990,6 +22663,25 @@ export type Database = {
21990
22663
  waiting: number;
21991
22664
  }[];
21992
22665
  };
22666
+ pick_station_print_plek: {
22667
+ Args: {
22668
+ _station_id: string;
22669
+ };
22670
+ Returns: {
22671
+ naam: string;
22672
+ omschrijving: string;
22673
+ print_plek_id: string;
22674
+ }[];
22675
+ };
22676
+ pick_station_print_plekken: {
22677
+ Args: never;
22678
+ Returns: {
22679
+ naam: string;
22680
+ omschrijving: string;
22681
+ print_plek_id: string;
22682
+ station_id: string;
22683
+ }[];
22684
+ };
21993
22685
  pick_station_slugify: {
21994
22686
  Args: {
21995
22687
  _id: string;
@@ -21997,6 +22689,12 @@ export type Database = {
21997
22689
  };
21998
22690
  Returns: string;
21999
22691
  };
22692
+ pick_sync_queue_throttled: {
22693
+ Args: {
22694
+ _min_seconds?: number;
22695
+ };
22696
+ Returns: Json;
22697
+ };
22000
22698
  pickstation_get_orders_raw: {
22001
22699
  Args: never;
22002
22700
  Returns: Json;
@@ -22142,6 +22840,12 @@ export type Database = {
22142
22840
  };
22143
22841
  Returns: boolean;
22144
22842
  };
22843
+ release_stale_order_invoice_links: {
22844
+ Args: {
22845
+ _minutes?: number;
22846
+ };
22847
+ Returns: number;
22848
+ };
22145
22849
  reorder_customer_price_groups: {
22146
22850
  Args: {
22147
22851
  _ids: string[];
@@ -22660,6 +23364,20 @@ export type Database = {
22660
23364
  };
22661
23365
  Returns: undefined;
22662
23366
  };
23367
+ twinfield_deactivate_connection: {
23368
+ Args: {
23369
+ p_connection_id: string;
23370
+ p_user_id: string;
23371
+ };
23372
+ Returns: Json;
23373
+ };
23374
+ twinfield_handle_administration_change: {
23375
+ Args: {
23376
+ _administration_code: string;
23377
+ _user_id: string;
23378
+ };
23379
+ Returns: undefined;
23380
+ };
22663
23381
  twinfield_prune_push_queue: {
22664
23382
  Args: never;
22665
23383
  Returns: number;
@@ -22679,10 +23397,11 @@ export type Database = {
22679
23397
  p_company_name?: string;
22680
23398
  p_environment: string;
22681
23399
  p_office_code?: string;
23400
+ p_reset_sync?: boolean;
22682
23401
  p_status?: string;
22683
23402
  p_user_id: string;
22684
23403
  };
22685
- Returns: string;
23404
+ Returns: Json;
22686
23405
  };
22687
23406
  upsert_auto_fulfillment_log: {
22688
23407
  Args: {