@flowselections/logistiek-engine 1.0.10 → 1.0.12

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 (28) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1125 -189
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  4. package/dist-lib/integrations/supabase/client.d.ts +158 -1515
  5. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  6. package/dist-lib/integrations/supabase/client.server.d.ts +1125 -189
  7. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/moduleClient.d.ts +1125 -189
  9. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/types.d.ts +1152 -185
  11. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  12. package/dist-lib/lib/floridayDocuments.functions.d.ts +3135 -327
  13. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  14. package/dist-lib/lib/floridayDocuments.server.d.ts +14 -1
  15. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  16. package/dist-lib/lib/floridayDocuments.server.js +1 -1
  17. package/dist-lib/lib/floridayPush.functions.d.ts +1125 -189
  18. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  20. package/dist-lib/lib/floridayPush.server.js +48 -6
  21. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5255 -550
  22. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2090 -218
  24. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1125 -189
  26. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/modulePrompts.js +970 -970
  28. package/package.json +2 -2
@@ -2759,6 +2759,42 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
2759
2759
  };
2760
2760
  Relationships: [];
2761
2761
  };
2762
+ document_bronregels: {
2763
+ Row: {
2764
+ bron: string;
2765
+ created_at: string;
2766
+ documenttype: string;
2767
+ herkomst: string;
2768
+ id: string;
2769
+ layout_id: string | null;
2770
+ updated_at: string;
2771
+ };
2772
+ Insert: {
2773
+ bron?: string;
2774
+ created_at?: string;
2775
+ documenttype: string;
2776
+ herkomst: string;
2777
+ id?: string;
2778
+ layout_id?: string | null;
2779
+ updated_at?: string;
2780
+ };
2781
+ Update: {
2782
+ bron?: string;
2783
+ created_at?: string;
2784
+ documenttype?: string;
2785
+ herkomst?: string;
2786
+ id?: string;
2787
+ layout_id?: string | null;
2788
+ updated_at?: string;
2789
+ };
2790
+ Relationships: [{
2791
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2792
+ columns: ["layout_id"];
2793
+ isOneToOne: false;
2794
+ referencedRelation: "document_layouts";
2795
+ referencedColumns: ["id"];
2796
+ }];
2797
+ };
2762
2798
  document_formaat_printers: {
2763
2799
  Row: {
2764
2800
  created_at: string;
@@ -3036,6 +3072,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
3036
3072
  Row: {
3037
3073
  actief: boolean;
3038
3074
  breedte_mm: number;
3075
+ bron: string;
3039
3076
  config: import("./types").Json;
3040
3077
  created_at: string;
3041
3078
  created_by: string | null;
@@ -3053,12 +3090,14 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
3053
3090
  orientatie: Database["public"]["Enums"]["doc_orientation"];
3054
3091
  page_settings: import("./types").Json;
3055
3092
  papierformaat: string;
3093
+ systeem: boolean;
3056
3094
  thumbnail_url: string | null;
3057
3095
  updated_at: string;
3058
3096
  };
3059
3097
  Insert: {
3060
3098
  actief?: boolean;
3061
3099
  breedte_mm?: number;
3100
+ bron?: string;
3062
3101
  config?: import("./types").Json;
3063
3102
  created_at?: string;
3064
3103
  created_by?: string | null;
@@ -3076,12 +3115,14 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
3076
3115
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3077
3116
  page_settings?: import("./types").Json;
3078
3117
  papierformaat?: string;
3118
+ systeem?: boolean;
3079
3119
  thumbnail_url?: string | null;
3080
3120
  updated_at?: string;
3081
3121
  };
3082
3122
  Update: {
3083
3123
  actief?: boolean;
3084
3124
  breedte_mm?: number;
3125
+ bron?: string;
3085
3126
  config?: import("./types").Json;
3086
3127
  created_at?: string;
3087
3128
  created_by?: string | null;
@@ -3099,11 +3140,48 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
3099
3140
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3100
3141
  page_settings?: import("./types").Json;
3101
3142
  papierformaat?: string;
3143
+ systeem?: boolean;
3102
3144
  thumbnail_url?: string | null;
3103
3145
  updated_at?: string;
3104
3146
  };
3105
3147
  Relationships: [];
3106
3148
  };
3149
+ document_werkplek_printers: {
3150
+ Row: {
3151
+ created_at: string;
3152
+ documenttype: string;
3153
+ id: string;
3154
+ papierformaat: string | null;
3155
+ printer_id: string | null;
3156
+ updated_at: string;
3157
+ werkplek: string;
3158
+ };
3159
+ Insert: {
3160
+ created_at?: string;
3161
+ documenttype: string;
3162
+ id?: string;
3163
+ papierformaat?: string | null;
3164
+ printer_id?: string | null;
3165
+ updated_at?: string;
3166
+ werkplek: string;
3167
+ };
3168
+ Update: {
3169
+ created_at?: string;
3170
+ documenttype?: string;
3171
+ id?: string;
3172
+ papierformaat?: string | null;
3173
+ printer_id?: string | null;
3174
+ updated_at?: string;
3175
+ werkplek?: string;
3176
+ };
3177
+ Relationships: [{
3178
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3179
+ columns: ["printer_id"];
3180
+ isOneToOne: false;
3181
+ referencedRelation: "printers";
3182
+ referencedColumns: ["id"];
3183
+ }];
3184
+ };
3107
3185
  email_auth_connections: {
3108
3186
  Row: {
3109
3187
  access_token_encrypted: string | null;
@@ -7349,8 +7427,63 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
7349
7427
  };
7350
7428
  Relationships: [];
7351
7429
  };
7430
+ invoice_items: {
7431
+ Row: {
7432
+ created_at: string;
7433
+ description: string;
7434
+ id: string;
7435
+ invoice_id: string;
7436
+ kind: string;
7437
+ quantity: number;
7438
+ sort_order: number;
7439
+ source_line_ref: string | null;
7440
+ total_cents: number;
7441
+ unit: string;
7442
+ unit_price_cents: number;
7443
+ };
7444
+ Insert: {
7445
+ created_at?: string;
7446
+ description?: string;
7447
+ id?: string;
7448
+ invoice_id: string;
7449
+ kind?: string;
7450
+ quantity?: number;
7451
+ sort_order?: number;
7452
+ source_line_ref?: string | null;
7453
+ total_cents?: number;
7454
+ unit?: string;
7455
+ unit_price_cents?: number;
7456
+ };
7457
+ Update: {
7458
+ created_at?: string;
7459
+ description?: string;
7460
+ id?: string;
7461
+ invoice_id?: string;
7462
+ kind?: string;
7463
+ quantity?: number;
7464
+ sort_order?: number;
7465
+ source_line_ref?: string | null;
7466
+ total_cents?: number;
7467
+ unit?: string;
7468
+ unit_price_cents?: number;
7469
+ };
7470
+ Relationships: [{
7471
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7472
+ columns: ["invoice_id"];
7473
+ isOneToOne: false;
7474
+ referencedRelation: "invoices";
7475
+ referencedColumns: ["id"];
7476
+ }, {
7477
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7478
+ columns: ["invoice_id"];
7479
+ isOneToOne: false;
7480
+ referencedRelation: "uren_facturen";
7481
+ referencedColumns: ["id"];
7482
+ }];
7483
+ };
7352
7484
  invoice_post_idempotency: {
7353
7485
  Row: {
7486
+ administration_code: string;
7354
7487
  client_request_id: string;
7355
7488
  completed_at: string | null;
7356
7489
  created_at: string;
@@ -7360,6 +7493,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
7360
7493
  user_id: string;
7361
7494
  };
7362
7495
  Insert: {
7496
+ administration_code?: string;
7363
7497
  client_request_id: string;
7364
7498
  completed_at?: string | null;
7365
7499
  created_at?: string;
@@ -7369,6 +7503,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
7369
7503
  user_id: string;
7370
7504
  };
7371
7505
  Update: {
7506
+ administration_code?: string;
7372
7507
  client_request_id?: string;
7373
7508
  completed_at?: string | null;
7374
7509
  created_at?: string;
@@ -7574,6 +7709,75 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
7574
7709
  };
7575
7710
  Relationships: [];
7576
7711
  };
7712
+ invoices: {
7713
+ Row: {
7714
+ created_at: string;
7715
+ created_by: string | null;
7716
+ customer_id: string | null;
7717
+ customer_name: string | null;
7718
+ due_date: string | null;
7719
+ id: string;
7720
+ invoice_date: string;
7721
+ invoice_number: string | null;
7722
+ note: string | null;
7723
+ source_number: string | null;
7724
+ source_ref: string | null;
7725
+ source_type: string;
7726
+ status: string;
7727
+ subtotal_cents: number;
7728
+ total_cents: number;
7729
+ updated_at: string;
7730
+ vat_cents: number;
7731
+ vat_rate: number;
7732
+ };
7733
+ Insert: {
7734
+ created_at?: string;
7735
+ created_by?: string | null;
7736
+ customer_id?: string | null;
7737
+ customer_name?: string | null;
7738
+ due_date?: string | null;
7739
+ id?: string;
7740
+ invoice_date?: string;
7741
+ invoice_number?: string | null;
7742
+ note?: string | null;
7743
+ source_number?: string | null;
7744
+ source_ref?: string | null;
7745
+ source_type?: string;
7746
+ status?: string;
7747
+ subtotal_cents?: number;
7748
+ total_cents?: number;
7749
+ updated_at?: string;
7750
+ vat_cents?: number;
7751
+ vat_rate?: number;
7752
+ };
7753
+ Update: {
7754
+ created_at?: string;
7755
+ created_by?: string | null;
7756
+ customer_id?: string | null;
7757
+ customer_name?: string | null;
7758
+ due_date?: string | null;
7759
+ id?: string;
7760
+ invoice_date?: string;
7761
+ invoice_number?: string | null;
7762
+ note?: string | null;
7763
+ source_number?: string | null;
7764
+ source_ref?: string | null;
7765
+ source_type?: string;
7766
+ status?: string;
7767
+ subtotal_cents?: number;
7768
+ total_cents?: number;
7769
+ updated_at?: string;
7770
+ vat_cents?: number;
7771
+ vat_rate?: number;
7772
+ };
7773
+ Relationships: [{
7774
+ foreignKeyName: "invoices_customer_id_fkey";
7775
+ columns: ["customer_id"];
7776
+ isOneToOne: false;
7777
+ referencedRelation: "itk_customers";
7778
+ referencedColumns: ["id"];
7779
+ }];
7780
+ };
7577
7781
  itk_contact_persons: {
7578
7782
  Row: {
7579
7783
  created_at: string;
@@ -7769,108 +7973,360 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
7769
7973
  };
7770
7974
  Relationships: [];
7771
7975
  };
7772
- itk_work_locations: {
7976
+ itk_offerte_events: {
7773
7977
  Row: {
7774
- city: string | null;
7775
7978
  created_at: string;
7776
- customer_id: string;
7979
+ event_type: string;
7777
7980
  id: string;
7778
- instructions: string | null;
7779
- label: string;
7780
- latitude: number | null;
7781
- longitude: number | null;
7782
- postcode: string | null;
7783
- street: string | null;
7784
- updated_at: string;
7981
+ metadata: import("./types").Json;
7982
+ offerte_id: string;
7983
+ omschrijving: string | null;
7984
+ user_id: string | null;
7785
7985
  };
7786
7986
  Insert: {
7787
- city?: string | null;
7788
7987
  created_at?: string;
7789
- customer_id: string;
7988
+ event_type: string;
7790
7989
  id?: string;
7791
- instructions?: string | null;
7792
- label: string;
7793
- latitude?: number | null;
7794
- longitude?: number | null;
7795
- postcode?: string | null;
7796
- street?: string | null;
7797
- updated_at?: string;
7990
+ metadata?: import("./types").Json;
7991
+ offerte_id: string;
7992
+ omschrijving?: string | null;
7993
+ user_id?: string | null;
7798
7994
  };
7799
7995
  Update: {
7800
- city?: string | null;
7801
7996
  created_at?: string;
7802
- customer_id?: string;
7997
+ event_type?: string;
7803
7998
  id?: string;
7804
- instructions?: string | null;
7805
- label?: string;
7806
- latitude?: number | null;
7807
- longitude?: number | null;
7808
- postcode?: string | null;
7809
- street?: string | null;
7810
- updated_at?: string;
7999
+ metadata?: import("./types").Json;
8000
+ offerte_id?: string;
8001
+ omschrijving?: string | null;
8002
+ user_id?: string | null;
7811
8003
  };
7812
8004
  Relationships: [{
7813
- foreignKeyName: "itk_work_locations_customer_id_fkey";
7814
- columns: ["customer_id"];
8005
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8006
+ columns: ["offerte_id"];
7815
8007
  isOneToOne: false;
7816
- referencedRelation: "itk_customers";
8008
+ referencedRelation: "itk_offertes";
7817
8009
  referencedColumns: ["id"];
7818
8010
  }];
7819
8011
  };
7820
- layout_logos: {
8012
+ itk_offerte_regels: {
7821
8013
  Row: {
7822
- bestand_url: string;
7823
- bestandsgrootte: number;
7824
- bestandspad: string | null;
7825
- bestandstype: string;
7826
- breedte: number;
7827
- categorie: string;
7828
8014
  created_at: string;
7829
- hash: string | null;
7830
- hoogte: number;
7831
8015
  id: string;
7832
- is_standaard: boolean;
7833
- naam: string;
8016
+ line_total_cents: number;
8017
+ offerte_id: string;
7834
8018
  omschrijving: string;
7835
- transparant: boolean;
8019
+ package_id: string | null;
8020
+ quantity: number;
8021
+ sort_order: number;
8022
+ source: string;
8023
+ unit_price_cents: number;
7836
8024
  updated_at: string;
7837
8025
  };
7838
8026
  Insert: {
7839
- bestand_url: string;
7840
- bestandsgrootte?: number;
7841
- bestandspad?: string | null;
7842
- bestandstype?: string;
7843
- breedte?: number;
7844
- categorie?: string;
7845
8027
  created_at?: string;
7846
- hash?: string | null;
7847
- hoogte?: number;
7848
8028
  id?: string;
7849
- is_standaard?: boolean;
7850
- naam: string;
8029
+ line_total_cents?: number;
8030
+ offerte_id: string;
7851
8031
  omschrijving?: string;
7852
- transparant?: boolean;
8032
+ package_id?: string | null;
8033
+ quantity?: number;
8034
+ sort_order?: number;
8035
+ source?: string;
8036
+ unit_price_cents?: number;
7853
8037
  updated_at?: string;
7854
8038
  };
7855
8039
  Update: {
7856
- bestand_url?: string;
7857
- bestandsgrootte?: number;
7858
- bestandspad?: string | null;
7859
- bestandstype?: string;
7860
- breedte?: number;
7861
- categorie?: string;
7862
8040
  created_at?: string;
7863
- hash?: string | null;
7864
- hoogte?: number;
7865
8041
  id?: string;
7866
- is_standaard?: boolean;
7867
- naam?: string;
8042
+ line_total_cents?: number;
8043
+ offerte_id?: string;
7868
8044
  omschrijving?: string;
7869
- transparant?: boolean;
7870
- updated_at?: string;
7871
- };
7872
- Relationships: [];
7873
- };
8045
+ package_id?: string | null;
8046
+ quantity?: number;
8047
+ sort_order?: number;
8048
+ source?: string;
8049
+ unit_price_cents?: number;
8050
+ updated_at?: string;
8051
+ };
8052
+ Relationships: [{
8053
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8054
+ columns: ["offerte_id"];
8055
+ isOneToOne: false;
8056
+ referencedRelation: "itk_offertes";
8057
+ referencedColumns: ["id"];
8058
+ }, {
8059
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8060
+ columns: ["package_id"];
8061
+ isOneToOne: false;
8062
+ referencedRelation: "werkbon_packages";
8063
+ referencedColumns: ["id"];
8064
+ }];
8065
+ };
8066
+ itk_offerte_settings: {
8067
+ Row: {
8068
+ auto_convert_binnen_mandaat: boolean;
8069
+ created_at: string;
8070
+ default_geldigheid_dagen: number;
8071
+ default_vat_rate: number;
8072
+ id: string;
8073
+ singleton: boolean;
8074
+ updated_at: string;
8075
+ };
8076
+ Insert: {
8077
+ auto_convert_binnen_mandaat?: boolean;
8078
+ created_at?: string;
8079
+ default_geldigheid_dagen?: number;
8080
+ default_vat_rate?: number;
8081
+ id?: string;
8082
+ singleton?: boolean;
8083
+ updated_at?: string;
8084
+ };
8085
+ Update: {
8086
+ auto_convert_binnen_mandaat?: boolean;
8087
+ created_at?: string;
8088
+ default_geldigheid_dagen?: number;
8089
+ default_vat_rate?: number;
8090
+ id?: string;
8091
+ singleton?: boolean;
8092
+ updated_at?: string;
8093
+ };
8094
+ Relationships: [];
8095
+ };
8096
+ itk_offertes: {
8097
+ Row: {
8098
+ ai_generated: boolean;
8099
+ approved_at: string | null;
8100
+ binnen_mandaat: boolean;
8101
+ contact_id: string | null;
8102
+ converted_at: string | null;
8103
+ created_at: string;
8104
+ created_by: string | null;
8105
+ customer_id: string | null;
8106
+ follow_up_werkbon_id: string | null;
8107
+ id: string;
8108
+ jaar: number;
8109
+ mandaat_restant_cents: number;
8110
+ notities: string | null;
8111
+ offerte_number: string | null;
8112
+ omschrijving: string;
8113
+ rejected_at: string | null;
8114
+ sent_at: string | null;
8115
+ source_number: string | null;
8116
+ source_ref: string | null;
8117
+ source_type: string;
8118
+ status: string;
8119
+ subtotal_cents: number;
8120
+ total_cents: number;
8121
+ updated_at: string;
8122
+ valid_until: string | null;
8123
+ vat_cents: number;
8124
+ vat_rate: number;
8125
+ viewed_at: string | null;
8126
+ volgnummer: number | null;
8127
+ werkbon_id: string | null;
8128
+ work_location_id: string | null;
8129
+ };
8130
+ Insert: {
8131
+ ai_generated?: boolean;
8132
+ approved_at?: string | null;
8133
+ binnen_mandaat?: boolean;
8134
+ contact_id?: string | null;
8135
+ converted_at?: string | null;
8136
+ created_at?: string;
8137
+ created_by?: string | null;
8138
+ customer_id?: string | null;
8139
+ follow_up_werkbon_id?: string | null;
8140
+ id?: string;
8141
+ jaar?: number;
8142
+ mandaat_restant_cents?: number;
8143
+ notities?: string | null;
8144
+ offerte_number?: string | null;
8145
+ omschrijving?: string;
8146
+ rejected_at?: string | null;
8147
+ sent_at?: string | null;
8148
+ source_number?: string | null;
8149
+ source_ref?: string | null;
8150
+ source_type?: string;
8151
+ status?: string;
8152
+ subtotal_cents?: number;
8153
+ total_cents?: number;
8154
+ updated_at?: string;
8155
+ valid_until?: string | null;
8156
+ vat_cents?: number;
8157
+ vat_rate?: number;
8158
+ viewed_at?: string | null;
8159
+ volgnummer?: number | null;
8160
+ werkbon_id?: string | null;
8161
+ work_location_id?: string | null;
8162
+ };
8163
+ Update: {
8164
+ ai_generated?: boolean;
8165
+ approved_at?: string | null;
8166
+ binnen_mandaat?: boolean;
8167
+ contact_id?: string | null;
8168
+ converted_at?: string | null;
8169
+ created_at?: string;
8170
+ created_by?: string | null;
8171
+ customer_id?: string | null;
8172
+ follow_up_werkbon_id?: string | null;
8173
+ id?: string;
8174
+ jaar?: number;
8175
+ mandaat_restant_cents?: number;
8176
+ notities?: string | null;
8177
+ offerte_number?: string | null;
8178
+ omschrijving?: string;
8179
+ rejected_at?: string | null;
8180
+ sent_at?: string | null;
8181
+ source_number?: string | null;
8182
+ source_ref?: string | null;
8183
+ source_type?: string;
8184
+ status?: string;
8185
+ subtotal_cents?: number;
8186
+ total_cents?: number;
8187
+ updated_at?: string;
8188
+ valid_until?: string | null;
8189
+ vat_cents?: number;
8190
+ vat_rate?: number;
8191
+ viewed_at?: string | null;
8192
+ volgnummer?: number | null;
8193
+ werkbon_id?: string | null;
8194
+ work_location_id?: string | null;
8195
+ };
8196
+ Relationships: [{
8197
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8198
+ columns: ["contact_id"];
8199
+ isOneToOne: false;
8200
+ referencedRelation: "itk_contact_persons";
8201
+ referencedColumns: ["id"];
8202
+ }, {
8203
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8204
+ columns: ["customer_id"];
8205
+ isOneToOne: false;
8206
+ referencedRelation: "itk_customers";
8207
+ referencedColumns: ["id"];
8208
+ }, {
8209
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8210
+ columns: ["follow_up_werkbon_id"];
8211
+ isOneToOne: false;
8212
+ referencedRelation: "werkbonnen";
8213
+ referencedColumns: ["id"];
8214
+ }, {
8215
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8216
+ columns: ["werkbon_id"];
8217
+ isOneToOne: false;
8218
+ referencedRelation: "werkbonnen";
8219
+ referencedColumns: ["id"];
8220
+ }, {
8221
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8222
+ columns: ["work_location_id"];
8223
+ isOneToOne: false;
8224
+ referencedRelation: "itk_work_locations";
8225
+ referencedColumns: ["id"];
8226
+ }];
8227
+ };
8228
+ itk_work_locations: {
8229
+ Row: {
8230
+ city: string | null;
8231
+ created_at: string;
8232
+ customer_id: string;
8233
+ id: string;
8234
+ instructions: string | null;
8235
+ label: string;
8236
+ latitude: number | null;
8237
+ longitude: number | null;
8238
+ postcode: string | null;
8239
+ street: string | null;
8240
+ updated_at: string;
8241
+ };
8242
+ Insert: {
8243
+ city?: string | null;
8244
+ created_at?: string;
8245
+ customer_id: string;
8246
+ id?: string;
8247
+ instructions?: string | null;
8248
+ label: string;
8249
+ latitude?: number | null;
8250
+ longitude?: number | null;
8251
+ postcode?: string | null;
8252
+ street?: string | null;
8253
+ updated_at?: string;
8254
+ };
8255
+ Update: {
8256
+ city?: string | null;
8257
+ created_at?: string;
8258
+ customer_id?: string;
8259
+ id?: string;
8260
+ instructions?: string | null;
8261
+ label?: string;
8262
+ latitude?: number | null;
8263
+ longitude?: number | null;
8264
+ postcode?: string | null;
8265
+ street?: string | null;
8266
+ updated_at?: string;
8267
+ };
8268
+ Relationships: [{
8269
+ foreignKeyName: "itk_work_locations_customer_id_fkey";
8270
+ columns: ["customer_id"];
8271
+ isOneToOne: false;
8272
+ referencedRelation: "itk_customers";
8273
+ referencedColumns: ["id"];
8274
+ }];
8275
+ };
8276
+ layout_logos: {
8277
+ Row: {
8278
+ bestand_url: string;
8279
+ bestandsgrootte: number;
8280
+ bestandspad: string | null;
8281
+ bestandstype: string;
8282
+ breedte: number;
8283
+ categorie: string;
8284
+ created_at: string;
8285
+ hash: string | null;
8286
+ hoogte: number;
8287
+ id: string;
8288
+ is_standaard: boolean;
8289
+ naam: string;
8290
+ omschrijving: string;
8291
+ transparant: boolean;
8292
+ updated_at: string;
8293
+ };
8294
+ Insert: {
8295
+ bestand_url: string;
8296
+ bestandsgrootte?: number;
8297
+ bestandspad?: string | null;
8298
+ bestandstype?: string;
8299
+ breedte?: number;
8300
+ categorie?: string;
8301
+ created_at?: string;
8302
+ hash?: string | null;
8303
+ hoogte?: number;
8304
+ id?: string;
8305
+ is_standaard?: boolean;
8306
+ naam: string;
8307
+ omschrijving?: string;
8308
+ transparant?: boolean;
8309
+ updated_at?: string;
8310
+ };
8311
+ Update: {
8312
+ bestand_url?: string;
8313
+ bestandsgrootte?: number;
8314
+ bestandspad?: string | null;
8315
+ bestandstype?: string;
8316
+ breedte?: number;
8317
+ categorie?: string;
8318
+ created_at?: string;
8319
+ hash?: string | null;
8320
+ hoogte?: number;
8321
+ id?: string;
8322
+ is_standaard?: boolean;
8323
+ naam?: string;
8324
+ omschrijving?: string;
8325
+ transparant?: boolean;
8326
+ updated_at?: string;
8327
+ };
8328
+ Relationships: [];
8329
+ };
7874
8330
  leave_requests: {
7875
8331
  Row: {
7876
8332
  created_at: string;
@@ -8669,6 +9125,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8669
9125
  id: string;
8670
9126
  last_error: string | null;
8671
9127
  last_error_at: string | null;
9128
+ last_error_code: string | null;
9129
+ last_gateway_status: number | null;
9130
+ last_response: import("./types").Json | null;
8672
9131
  last_sent_hash: string | null;
8673
9132
  locked_by: string | null;
8674
9133
  locked_until: string | null;
@@ -8689,6 +9148,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8689
9148
  id?: string;
8690
9149
  last_error?: string | null;
8691
9150
  last_error_at?: string | null;
9151
+ last_error_code?: string | null;
9152
+ last_gateway_status?: number | null;
9153
+ last_response?: import("./types").Json | null;
8692
9154
  last_sent_hash?: string | null;
8693
9155
  locked_by?: string | null;
8694
9156
  locked_until?: string | null;
@@ -8709,6 +9171,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8709
9171
  id?: string;
8710
9172
  last_error?: string | null;
8711
9173
  last_error_at?: string | null;
9174
+ last_error_code?: string | null;
9175
+ last_gateway_status?: number | null;
9176
+ last_response?: import("./types").Json | null;
8712
9177
  last_sent_hash?: string | null;
8713
9178
  locked_by?: string | null;
8714
9179
  locked_until?: string | null;
@@ -10142,6 +10607,63 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
10142
10607
  referencedColumns: ["id"];
10143
10608
  }];
10144
10609
  };
10610
+ medewerker_details: {
10611
+ Row: {
10612
+ color: string | null;
10613
+ created_at: string;
10614
+ hours_fri: number | null;
10615
+ hours_mon: number | null;
10616
+ hours_thu: number | null;
10617
+ hours_tue: number | null;
10618
+ hours_wed: number | null;
10619
+ id: string;
10620
+ is_active: boolean;
10621
+ leave_balance_hours: number;
10622
+ persnr: string | null;
10623
+ phone: string | null;
10624
+ profile_id: string;
10625
+ updated_at: string;
10626
+ };
10627
+ Insert: {
10628
+ color?: string | null;
10629
+ created_at?: string;
10630
+ hours_fri?: number | null;
10631
+ hours_mon?: number | null;
10632
+ hours_thu?: number | null;
10633
+ hours_tue?: number | null;
10634
+ hours_wed?: number | null;
10635
+ id?: string;
10636
+ is_active?: boolean;
10637
+ leave_balance_hours?: number;
10638
+ persnr?: string | null;
10639
+ phone?: string | null;
10640
+ profile_id: string;
10641
+ updated_at?: string;
10642
+ };
10643
+ Update: {
10644
+ color?: string | null;
10645
+ created_at?: string;
10646
+ hours_fri?: number | null;
10647
+ hours_mon?: number | null;
10648
+ hours_thu?: number | null;
10649
+ hours_tue?: number | null;
10650
+ hours_wed?: number | null;
10651
+ id?: string;
10652
+ is_active?: boolean;
10653
+ leave_balance_hours?: number;
10654
+ persnr?: string | null;
10655
+ phone?: string | null;
10656
+ profile_id?: string;
10657
+ updated_at?: string;
10658
+ };
10659
+ Relationships: [{
10660
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10661
+ columns: ["profile_id"];
10662
+ isOneToOne: true;
10663
+ referencedRelation: "profiles";
10664
+ referencedColumns: ["id"];
10665
+ }];
10666
+ };
10145
10667
  module_features: {
10146
10668
  Row: {
10147
10669
  created_at: string;
@@ -10205,6 +10727,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
10205
10727
  enforce: boolean;
10206
10728
  is_active: boolean;
10207
10729
  last_seen_at: string;
10730
+ missing_count: number;
10208
10731
  module_id: string;
10209
10732
  name: string;
10210
10733
  shell_id: string | null;
@@ -10215,6 +10738,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
10215
10738
  enforce?: boolean;
10216
10739
  is_active?: boolean;
10217
10740
  last_seen_at?: string;
10741
+ missing_count?: number;
10218
10742
  module_id: string;
10219
10743
  name: string;
10220
10744
  shell_id?: string | null;
@@ -10225,6 +10749,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
10225
10749
  enforce?: boolean;
10226
10750
  is_active?: boolean;
10227
10751
  last_seen_at?: string;
10752
+ missing_count?: number;
10228
10753
  module_id?: string;
10229
10754
  name?: string;
10230
10755
  shell_id?: string | null;
@@ -11224,6 +11749,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
11224
11749
  };
11225
11750
  order_invoice_links: {
11226
11751
  Row: {
11752
+ administration_code: string | null;
11227
11753
  attempts: number;
11228
11754
  created_at: string;
11229
11755
  error_message: string | null;
@@ -11236,6 +11762,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
11236
11762
  updated_at: string;
11237
11763
  };
11238
11764
  Insert: {
11765
+ administration_code?: string | null;
11239
11766
  attempts?: number;
11240
11767
  created_at?: string;
11241
11768
  error_message?: string | null;
@@ -11248,6 +11775,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
11248
11775
  updated_at?: string;
11249
11776
  };
11250
11777
  Update: {
11778
+ administration_code?: string | null;
11251
11779
  attempts?: number;
11252
11780
  created_at?: string;
11253
11781
  error_message?: string | null;
@@ -11435,6 +11963,8 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
11435
11963
  orders: {
11436
11964
  Row: {
11437
11965
  buffer_id: string | null;
11966
+ cancel_reason: string | null;
11967
+ cancelled_at: string | null;
11438
11968
  created_at: string;
11439
11969
  custom_fields: import("./types").Json;
11440
11970
  customer_id: string | null;
@@ -11457,6 +11987,8 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
11457
11987
  };
11458
11988
  Insert: {
11459
11989
  buffer_id?: string | null;
11990
+ cancel_reason?: string | null;
11991
+ cancelled_at?: string | null;
11460
11992
  created_at?: string;
11461
11993
  custom_fields?: import("./types").Json;
11462
11994
  customer_id?: string | null;
@@ -11479,6 +12011,8 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
11479
12011
  };
11480
12012
  Update: {
11481
12013
  buffer_id?: string | null;
12014
+ cancel_reason?: string | null;
12015
+ cancelled_at?: string | null;
11482
12016
  created_at?: string;
11483
12017
  custom_fields?: import("./types").Json;
11484
12018
  customer_id?: string | null;
@@ -12407,6 +12941,27 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12407
12941
  referencedColumns: ["id"];
12408
12942
  }];
12409
12943
  };
12944
+ pick_sync_state: {
12945
+ Row: {
12946
+ id: boolean;
12947
+ last_cleanup_at: string | null;
12948
+ last_sync_at: string | null;
12949
+ updated_at: string;
12950
+ };
12951
+ Insert: {
12952
+ id?: boolean;
12953
+ last_cleanup_at?: string | null;
12954
+ last_sync_at?: string | null;
12955
+ updated_at?: string;
12956
+ };
12957
+ Update: {
12958
+ id?: boolean;
12959
+ last_cleanup_at?: string | null;
12960
+ last_sync_at?: string | null;
12961
+ updated_at?: string;
12962
+ };
12963
+ Relationships: [];
12964
+ };
12410
12965
  pick_task_document_types: {
12411
12966
  Row: {
12412
12967
  created_at: string;
@@ -12689,6 +13244,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12689
13244
  gebruiker_id: string | null;
12690
13245
  gebruiker_naam: string;
12691
13246
  gestart_op: string | null;
13247
+ herkomst: string | null;
12692
13248
  id: string;
12693
13249
  idempotentie_sleutel: string | null;
12694
13250
  is_herprint: boolean;
@@ -12718,6 +13274,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12718
13274
  gebruiker_id?: string | null;
12719
13275
  gebruiker_naam?: string;
12720
13276
  gestart_op?: string | null;
13277
+ herkomst?: string | null;
12721
13278
  id?: string;
12722
13279
  idempotentie_sleutel?: string | null;
12723
13280
  is_herprint?: boolean;
@@ -12747,6 +13304,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12747
13304
  gebruiker_id?: string | null;
12748
13305
  gebruiker_naam?: string;
12749
13306
  gestart_op?: string | null;
13307
+ herkomst?: string | null;
12750
13308
  id?: string;
12751
13309
  idempotentie_sleutel?: string | null;
12752
13310
  is_herprint?: boolean;
@@ -13541,6 +14099,66 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
13541
14099
  };
13542
14100
  Relationships: [];
13543
14101
  };
14102
+ profile_modules: {
14103
+ Row: {
14104
+ created_at: string;
14105
+ id: string;
14106
+ module_id: string;
14107
+ profile_id: string;
14108
+ };
14109
+ Insert: {
14110
+ created_at?: string;
14111
+ id?: string;
14112
+ module_id: string;
14113
+ profile_id: string;
14114
+ };
14115
+ Update: {
14116
+ created_at?: string;
14117
+ id?: string;
14118
+ module_id?: string;
14119
+ profile_id?: string;
14120
+ };
14121
+ Relationships: [{
14122
+ foreignKeyName: "profile_modules_profile_id_fkey";
14123
+ columns: ["profile_id"];
14124
+ isOneToOne: false;
14125
+ referencedRelation: "profiles_org";
14126
+ referencedColumns: ["id"];
14127
+ }];
14128
+ };
14129
+ profile_roles: {
14130
+ Row: {
14131
+ created_at: string;
14132
+ id: string;
14133
+ profile_id: string;
14134
+ role_id: string;
14135
+ };
14136
+ Insert: {
14137
+ created_at?: string;
14138
+ id?: string;
14139
+ profile_id: string;
14140
+ role_id: string;
14141
+ };
14142
+ Update: {
14143
+ created_at?: string;
14144
+ id?: string;
14145
+ profile_id?: string;
14146
+ role_id?: string;
14147
+ };
14148
+ Relationships: [{
14149
+ foreignKeyName: "profile_roles_profile_id_fkey";
14150
+ columns: ["profile_id"];
14151
+ isOneToOne: false;
14152
+ referencedRelation: "profiles_org";
14153
+ referencedColumns: ["id"];
14154
+ }, {
14155
+ foreignKeyName: "profile_roles_role_id_fkey";
14156
+ columns: ["role_id"];
14157
+ isOneToOne: false;
14158
+ referencedRelation: "roles";
14159
+ referencedColumns: ["id"];
14160
+ }];
14161
+ };
13544
14162
  profiles: {
13545
14163
  Row: {
13546
14164
  address: string | null;
@@ -13586,6 +14204,39 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
13586
14204
  referencedColumns: ["id"];
13587
14205
  }];
13588
14206
  };
14207
+ profiles_org: {
14208
+ Row: {
14209
+ created_at: string;
14210
+ id: string;
14211
+ is_default: boolean;
14212
+ name: string;
14213
+ tenant_id: string | null;
14214
+ updated_at: string;
14215
+ };
14216
+ Insert: {
14217
+ created_at?: string;
14218
+ id?: string;
14219
+ is_default?: boolean;
14220
+ name: string;
14221
+ tenant_id?: string | null;
14222
+ updated_at?: string;
14223
+ };
14224
+ Update: {
14225
+ created_at?: string;
14226
+ id?: string;
14227
+ is_default?: boolean;
14228
+ name?: string;
14229
+ tenant_id?: string | null;
14230
+ updated_at?: string;
14231
+ };
14232
+ Relationships: [{
14233
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14234
+ columns: ["tenant_id"];
14235
+ isOneToOne: false;
14236
+ referencedRelation: "tenants";
14237
+ referencedColumns: ["id"];
14238
+ }];
14239
+ };
13589
14240
  projects: {
13590
14241
  Row: {
13591
14242
  contact_name: string | null;
@@ -14760,6 +15411,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14760
15411
  type: string;
14761
15412
  updated_at: string;
14762
15413
  vereist_medewerker: boolean;
15414
+ werkplek: string | null;
14763
15415
  };
14764
15416
  Insert: {
14765
15417
  actief?: boolean;
@@ -14773,6 +15425,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14773
15425
  type?: string;
14774
15426
  updated_at?: string;
14775
15427
  vereist_medewerker?: boolean;
15428
+ werkplek?: string | null;
14776
15429
  };
14777
15430
  Update: {
14778
15431
  actief?: boolean;
@@ -14786,9 +15439,46 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14786
15439
  type?: string;
14787
15440
  updated_at?: string;
14788
15441
  vereist_medewerker?: boolean;
15442
+ werkplek?: string | null;
14789
15443
  };
14790
15444
  Relationships: [];
14791
15445
  };
15446
+ sick_periods: {
15447
+ Row: {
15448
+ created_at: string;
15449
+ employee_id: string;
15450
+ end_date: string | null;
15451
+ id: string;
15452
+ notes: string | null;
15453
+ start_date: string;
15454
+ updated_at: string;
15455
+ };
15456
+ Insert: {
15457
+ created_at?: string;
15458
+ employee_id: string;
15459
+ end_date?: string | null;
15460
+ id?: string;
15461
+ notes?: string | null;
15462
+ start_date: string;
15463
+ updated_at?: string;
15464
+ };
15465
+ Update: {
15466
+ created_at?: string;
15467
+ employee_id?: string;
15468
+ end_date?: string | null;
15469
+ id?: string;
15470
+ notes?: string | null;
15471
+ start_date?: string;
15472
+ updated_at?: string;
15473
+ };
15474
+ Relationships: [{
15475
+ foreignKeyName: "sick_periods_employee_id_fkey";
15476
+ columns: ["employee_id"];
15477
+ isOneToOne: false;
15478
+ referencedRelation: "profiles";
15479
+ referencedColumns: ["id"];
15480
+ }];
15481
+ };
14792
15482
  sidebar_config: {
14793
15483
  Row: {
14794
15484
  id: string;
@@ -15619,12 +16309,16 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15619
16309
  company_name: string | null;
15620
16310
  connected_at: string | null;
15621
16311
  created_at: string;
16312
+ disconnected_at: string | null;
15622
16313
  environment: string;
15623
16314
  id: string;
16315
+ initial_sync_completed_at: string | null;
16316
+ initial_sync_started_at: string | null;
15624
16317
  is_active: boolean;
15625
16318
  label: string | null;
15626
16319
  office_code: string | null;
15627
16320
  redirect_uri: string | null;
16321
+ superseded_at: string | null;
15628
16322
  updated_at: string;
15629
16323
  user_id: string;
15630
16324
  };
@@ -15635,12 +16329,16 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15635
16329
  company_name?: string | null;
15636
16330
  connected_at?: string | null;
15637
16331
  created_at?: string;
16332
+ disconnected_at?: string | null;
15638
16333
  environment: string;
15639
16334
  id?: string;
16335
+ initial_sync_completed_at?: string | null;
16336
+ initial_sync_started_at?: string | null;
15640
16337
  is_active?: boolean;
15641
16338
  label?: string | null;
15642
16339
  office_code?: string | null;
15643
16340
  redirect_uri?: string | null;
16341
+ superseded_at?: string | null;
15644
16342
  updated_at?: string;
15645
16343
  user_id: string;
15646
16344
  };
@@ -15651,12 +16349,16 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15651
16349
  company_name?: string | null;
15652
16350
  connected_at?: string | null;
15653
16351
  created_at?: string;
16352
+ disconnected_at?: string | null;
15654
16353
  environment?: string;
15655
16354
  id?: string;
16355
+ initial_sync_completed_at?: string | null;
16356
+ initial_sync_started_at?: string | null;
15656
16357
  is_active?: boolean;
15657
16358
  label?: string | null;
15658
16359
  office_code?: string | null;
15659
16360
  redirect_uri?: string | null;
16361
+ superseded_at?: string | null;
15660
16362
  updated_at?: string;
15661
16363
  user_id?: string;
15662
16364
  };
@@ -15716,6 +16418,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15716
16418
  twinfield_customers: {
15717
16419
  Row: {
15718
16420
  address: string | null;
16421
+ administration_code: string;
15719
16422
  city: string | null;
15720
16423
  country: string | null;
15721
16424
  created_at: string;
@@ -15735,6 +16438,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15735
16438
  };
15736
16439
  Insert: {
15737
16440
  address?: string | null;
16441
+ administration_code?: string;
15738
16442
  city?: string | null;
15739
16443
  country?: string | null;
15740
16444
  created_at?: string;
@@ -15754,6 +16458,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15754
16458
  };
15755
16459
  Update: {
15756
16460
  address?: string | null;
16461
+ administration_code?: string;
15757
16462
  city?: string | null;
15758
16463
  country?: string | null;
15759
16464
  created_at?: string;
@@ -15967,7 +16672,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15967
16672
  };
15968
16673
  twinfield_invoice_settings: {
15969
16674
  Row: {
16675
+ administration_code: string | null;
15970
16676
  auto_invoice_enabled: boolean;
16677
+ auto_invoice_start_date: string | null;
15971
16678
  auto_invoice_trigger_statuses: string[];
15972
16679
  created_at: string;
15973
16680
  debtor_gl_account: string;
@@ -15981,15 +16688,19 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15981
16688
  invoice_enabled_fo: boolean;
15982
16689
  invoice_enabled_ho: boolean;
15983
16690
  invoice_enabled_mo: boolean;
16691
+ needs_review: boolean;
15984
16692
  payment_gl_account: string;
15985
16693
  payment_journal_code: string;
16694
+ settings_confirmed_at: string | null;
15986
16695
  updated_at: string;
15987
16696
  user_id: string;
15988
16697
  vat_code_eu_reverse: string | null;
15989
16698
  vat_code_export: string | null;
15990
16699
  };
15991
16700
  Insert: {
16701
+ administration_code?: string | null;
15992
16702
  auto_invoice_enabled?: boolean;
16703
+ auto_invoice_start_date?: string | null;
15993
16704
  auto_invoice_trigger_statuses?: string[];
15994
16705
  created_at?: string;
15995
16706
  debtor_gl_account?: string;
@@ -16003,15 +16714,19 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
16003
16714
  invoice_enabled_fo?: boolean;
16004
16715
  invoice_enabled_ho?: boolean;
16005
16716
  invoice_enabled_mo?: boolean;
16717
+ needs_review?: boolean;
16006
16718
  payment_gl_account?: string;
16007
16719
  payment_journal_code?: string;
16720
+ settings_confirmed_at?: string | null;
16008
16721
  updated_at?: string;
16009
16722
  user_id: string;
16010
16723
  vat_code_eu_reverse?: string | null;
16011
16724
  vat_code_export?: string | null;
16012
16725
  };
16013
16726
  Update: {
16727
+ administration_code?: string | null;
16014
16728
  auto_invoice_enabled?: boolean;
16729
+ auto_invoice_start_date?: string | null;
16015
16730
  auto_invoice_trigger_statuses?: string[];
16016
16731
  created_at?: string;
16017
16732
  debtor_gl_account?: string;
@@ -16025,8 +16740,10 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
16025
16740
  invoice_enabled_fo?: boolean;
16026
16741
  invoice_enabled_ho?: boolean;
16027
16742
  invoice_enabled_mo?: boolean;
16743
+ needs_review?: boolean;
16028
16744
  payment_gl_account?: string;
16029
16745
  payment_journal_code?: string;
16746
+ settings_confirmed_at?: string | null;
16030
16747
  updated_at?: string;
16031
16748
  user_id?: string;
16032
16749
  vat_code_eu_reverse?: string | null;
@@ -16614,130 +17331,22 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
16614
17331
  created_by?: string | null;
16615
17332
  file_name?: string | null;
16616
17333
  id?: string;
16617
- monteur_ids?: string[];
16618
- period_end: string;
16619
- period_start: string;
16620
- row_count?: number;
16621
- };
16622
- Update: {
16623
- created_at?: string;
16624
- created_by?: string | null;
16625
- file_name?: string | null;
16626
- id?: string;
16627
- monteur_ids?: string[];
16628
- period_end?: string;
16629
- period_start?: string;
16630
- row_count?: number;
16631
- };
16632
- Relationships: [];
16633
- };
16634
- uren_facturen: {
16635
- Row: {
16636
- created_at: string;
16637
- created_by: string | null;
16638
- customer_id: string | null;
16639
- customer_name: string | null;
16640
- id: string;
16641
- invoice_number: string | null;
16642
- note: string | null;
16643
- status: string;
16644
- total_excl_cents: number;
16645
- total_incl_cents: number;
16646
- updated_at: string;
16647
- vat_cents: number;
16648
- vat_percentage: number;
16649
- werkbon_id: string | null;
16650
- };
16651
- Insert: {
16652
- created_at?: string;
16653
- created_by?: string | null;
16654
- customer_id?: string | null;
16655
- customer_name?: string | null;
16656
- id?: string;
16657
- invoice_number?: string | null;
16658
- note?: string | null;
16659
- status?: string;
16660
- total_excl_cents?: number;
16661
- total_incl_cents?: number;
16662
- updated_at?: string;
16663
- vat_cents?: number;
16664
- vat_percentage?: number;
16665
- werkbon_id?: string | null;
16666
- };
16667
- Update: {
16668
- created_at?: string;
16669
- created_by?: string | null;
16670
- customer_id?: string | null;
16671
- customer_name?: string | null;
16672
- id?: string;
16673
- invoice_number?: string | null;
16674
- note?: string | null;
16675
- status?: string;
16676
- total_excl_cents?: number;
16677
- total_incl_cents?: number;
16678
- updated_at?: string;
16679
- vat_cents?: number;
16680
- vat_percentage?: number;
16681
- werkbon_id?: string | null;
16682
- };
16683
- Relationships: [{
16684
- foreignKeyName: "uren_facturen_customer_id_fkey";
16685
- columns: ["customer_id"];
16686
- isOneToOne: false;
16687
- referencedRelation: "itk_customers";
16688
- referencedColumns: ["id"];
16689
- }, {
16690
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
16691
- columns: ["werkbon_id"];
16692
- isOneToOne: true;
16693
- referencedRelation: "werkbonnen";
16694
- referencedColumns: ["id"];
16695
- }];
16696
- };
16697
- uren_factuur_regels: {
16698
- Row: {
16699
- created_at: string;
16700
- description: string;
16701
- factuur_id: string;
16702
- id: string;
16703
- kind: string | null;
16704
- quantity: number;
16705
- sort_order: number;
16706
- total_cents: number;
16707
- unit: string;
16708
- unit_price_cents: number;
16709
- };
16710
- Insert: {
16711
- created_at?: string;
16712
- description: string;
16713
- factuur_id: string;
16714
- id?: string;
16715
- kind?: string | null;
16716
- quantity?: number;
16717
- sort_order?: number;
16718
- total_cents?: number;
16719
- unit?: string;
16720
- unit_price_cents?: number;
17334
+ monteur_ids?: string[];
17335
+ period_end: string;
17336
+ period_start: string;
17337
+ row_count?: number;
16721
17338
  };
16722
17339
  Update: {
16723
17340
  created_at?: string;
16724
- description?: string;
16725
- factuur_id?: string;
17341
+ created_by?: string | null;
17342
+ file_name?: string | null;
16726
17343
  id?: string;
16727
- kind?: string | null;
16728
- quantity?: number;
16729
- sort_order?: number;
16730
- total_cents?: number;
16731
- unit?: string;
16732
- unit_price_cents?: number;
17344
+ monteur_ids?: string[];
17345
+ period_end?: string;
17346
+ period_start?: string;
17347
+ row_count?: number;
16733
17348
  };
16734
- Relationships: [{
16735
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
16736
- columns: ["factuur_id"];
16737
- isOneToOne: false;
16738
- referencedRelation: "uren_facturen";
16739
- referencedColumns: ["id"];
16740
- }];
17349
+ Relationships: [];
16741
17350
  };
16742
17351
  uren_offerte_regels: {
16743
17352
  Row: {
@@ -18578,6 +19187,114 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
18578
19187
  };
18579
19188
  Relationships: [];
18580
19189
  };
19190
+ uren_facturen: {
19191
+ Row: {
19192
+ created_at: string | null;
19193
+ created_by: string | null;
19194
+ customer_id: string | null;
19195
+ customer_name: string | null;
19196
+ id: string | null;
19197
+ invoice_number: string | null;
19198
+ note: string | null;
19199
+ status: string | null;
19200
+ total_excl_cents: number | null;
19201
+ total_incl_cents: number | null;
19202
+ updated_at: string | null;
19203
+ vat_cents: number | null;
19204
+ vat_percentage: number | null;
19205
+ werkbon_id: string | null;
19206
+ };
19207
+ Insert: {
19208
+ created_at?: string | null;
19209
+ created_by?: string | null;
19210
+ customer_id?: string | null;
19211
+ customer_name?: string | null;
19212
+ id?: string | null;
19213
+ invoice_number?: string | null;
19214
+ note?: string | null;
19215
+ status?: string | null;
19216
+ total_excl_cents?: number | null;
19217
+ total_incl_cents?: number | null;
19218
+ updated_at?: string | null;
19219
+ vat_cents?: number | null;
19220
+ vat_percentage?: number | null;
19221
+ werkbon_id?: never;
19222
+ };
19223
+ Update: {
19224
+ created_at?: string | null;
19225
+ created_by?: string | null;
19226
+ customer_id?: string | null;
19227
+ customer_name?: string | null;
19228
+ id?: string | null;
19229
+ invoice_number?: string | null;
19230
+ note?: string | null;
19231
+ status?: string | null;
19232
+ total_excl_cents?: number | null;
19233
+ total_incl_cents?: number | null;
19234
+ updated_at?: string | null;
19235
+ vat_cents?: number | null;
19236
+ vat_percentage?: number | null;
19237
+ werkbon_id?: never;
19238
+ };
19239
+ Relationships: [{
19240
+ foreignKeyName: "invoices_customer_id_fkey";
19241
+ columns: ["customer_id"];
19242
+ isOneToOne: false;
19243
+ referencedRelation: "itk_customers";
19244
+ referencedColumns: ["id"];
19245
+ }];
19246
+ };
19247
+ uren_factuur_regels: {
19248
+ Row: {
19249
+ created_at: string | null;
19250
+ description: string | null;
19251
+ factuur_id: string | null;
19252
+ id: string | null;
19253
+ kind: string | null;
19254
+ quantity: number | null;
19255
+ sort_order: number | null;
19256
+ total_cents: number | null;
19257
+ unit: string | null;
19258
+ unit_price_cents: number | null;
19259
+ };
19260
+ Insert: {
19261
+ created_at?: string | null;
19262
+ description?: string | null;
19263
+ factuur_id?: string | null;
19264
+ id?: string | null;
19265
+ kind?: string | null;
19266
+ quantity?: number | null;
19267
+ sort_order?: number | null;
19268
+ total_cents?: number | null;
19269
+ unit?: string | null;
19270
+ unit_price_cents?: number | null;
19271
+ };
19272
+ Update: {
19273
+ created_at?: string | null;
19274
+ description?: string | null;
19275
+ factuur_id?: string | null;
19276
+ id?: string | null;
19277
+ kind?: string | null;
19278
+ quantity?: number | null;
19279
+ sort_order?: number | null;
19280
+ total_cents?: number | null;
19281
+ unit?: string | null;
19282
+ unit_price_cents?: number | null;
19283
+ };
19284
+ Relationships: [{
19285
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19286
+ columns: ["factuur_id"];
19287
+ isOneToOne: false;
19288
+ referencedRelation: "invoices";
19289
+ referencedColumns: ["id"];
19290
+ }, {
19291
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19292
+ columns: ["factuur_id"];
19293
+ isOneToOne: false;
19294
+ referencedRelation: "uren_facturen";
19295
+ referencedColumns: ["id"];
19296
+ }];
19297
+ };
18581
19298
  v_external_customers_exact: {
18582
19299
  Row: {
18583
19300
  account_number: string | null;
@@ -19083,6 +19800,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
19083
19800
  gebruiker_id: string | null;
19084
19801
  gebruiker_naam: string;
19085
19802
  gestart_op: string | null;
19803
+ herkomst: string | null;
19086
19804
  id: string;
19087
19805
  idempotentie_sleutel: string | null;
19088
19806
  is_herprint: boolean;
@@ -19203,6 +19921,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
19203
19921
  gebruiker_id: string | null;
19204
19922
  gebruiker_naam: string;
19205
19923
  gestart_op: string | null;
19924
+ herkomst: string | null;
19206
19925
  id: string;
19207
19926
  idempotentie_sleutel: string | null;
19208
19927
  is_herprint: boolean;
@@ -19473,6 +20192,13 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
19473
20192
  };
19474
20193
  Returns: string;
19475
20194
  };
20195
+ employee_day_hours: {
20196
+ Args: {
20197
+ _day: string;
20198
+ _employee_id: string;
20199
+ };
20200
+ Returns: number;
20201
+ };
19476
20202
  enqueue_cart_replan_if_unlocked: {
19477
20203
  Args: {
19478
20204
  p_order_id: string;
@@ -19797,6 +20523,46 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
19797
20523
  Args: never;
19798
20524
  Returns: boolean;
19799
20525
  };
20526
+ invoice_create_from_source: {
20527
+ Args: {
20528
+ _payload?: import("./types").Json;
20529
+ _source_id: string;
20530
+ _source_type: string;
20531
+ };
20532
+ Returns: import("./types").Json;
20533
+ };
20534
+ invoice_get_billable_lines: {
20535
+ Args: {
20536
+ _invoice_id: string;
20537
+ };
20538
+ Returns: import("./types").Json;
20539
+ };
20540
+ invoice_get_for_source: {
20541
+ Args: {
20542
+ _source_id: string;
20543
+ _source_type: string;
20544
+ };
20545
+ Returns: import("./types").Json;
20546
+ };
20547
+ invoice_get_summary: {
20548
+ Args: {
20549
+ _invoice_id: string;
20550
+ };
20551
+ Returns: import("./types").Json;
20552
+ };
20553
+ invoice_list_sources: {
20554
+ Args: {
20555
+ _limit?: number;
20556
+ _source_type?: string;
20557
+ };
20558
+ Returns: import("./types").Json;
20559
+ };
20560
+ invoice_recalc_totals: {
20561
+ Args: {
20562
+ _invoice_id: string;
20563
+ };
20564
+ Returns: import("./types").Json;
20565
+ };
19800
20566
  is_authenticated: {
19801
20567
  Args: never;
19802
20568
  Returns: boolean;
@@ -19826,6 +20592,19 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
19826
20592
  Args: never;
19827
20593
  Returns: boolean;
19828
20594
  };
20595
+ itk_offerte_naar_werkbon: {
20596
+ Args: {
20597
+ _offerte_id: string;
20598
+ };
20599
+ Returns: string;
20600
+ };
20601
+ itk_offerte_restant_mandaat: {
20602
+ Args: {
20603
+ _exclude_offerte_id?: string;
20604
+ _werkbon_id: string;
20605
+ };
20606
+ Returns: number;
20607
+ };
19829
20608
  jwt_has_role: {
19830
20609
  Args: {
19831
20610
  _role: Database["public"]["Enums"]["app_role"];
@@ -19836,12 +20615,45 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
19836
20615
  Args: never;
19837
20616
  Returns: {
19838
20617
  avatar_url: string;
20618
+ color: string;
19839
20619
  display_name: string;
19840
20620
  email: string;
20621
+ hours_fri: number;
20622
+ hours_mon: number;
20623
+ hours_thu: number;
20624
+ hours_tue: number;
20625
+ hours_wed: number;
19841
20626
  id: string;
20627
+ is_active: boolean;
20628
+ leave_balance_hours: number;
20629
+ persnr: string;
20630
+ phone: string;
19842
20631
  roles: string[];
19843
20632
  }[];
19844
20633
  };
20634
+ list_monteur_absences: {
20635
+ Args: {
20636
+ _from: string;
20637
+ _to: string;
20638
+ };
20639
+ Returns: {
20640
+ absence_date: string;
20641
+ end_time: string;
20642
+ full_day: boolean;
20643
+ kind: string;
20644
+ monteur_id: string;
20645
+ start_time: string;
20646
+ }[];
20647
+ };
20648
+ list_monteurs: {
20649
+ Args: never;
20650
+ Returns: {
20651
+ avatar_url: string;
20652
+ display_name: string;
20653
+ email: string;
20654
+ id: string;
20655
+ }[];
20656
+ };
19845
20657
  list_my_planning_items: {
19846
20658
  Args: {
19847
20659
  _from: string;
@@ -20253,6 +21065,23 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20253
21065
  };
20254
21066
  Returns: string;
20255
21067
  };
21068
+ logistics_floriday_finish_push_v2: {
21069
+ Args: {
21070
+ _error?: string;
21071
+ _error_code?: string;
21072
+ _fulfillment_order_id?: string;
21073
+ _gateway_status?: number;
21074
+ _id: string;
21075
+ _max_age_hours?: number;
21076
+ _max_attempts?: number;
21077
+ _ok: boolean;
21078
+ _permanent?: boolean;
21079
+ _response?: import("./types").Json;
21080
+ _revision: number;
21081
+ _sent_hash?: string;
21082
+ };
21083
+ Returns: string;
21084
+ };
20256
21085
  logistics_floriday_prune_pushes: {
20257
21086
  Args: {
20258
21087
  _days?: number;
@@ -20795,6 +21624,13 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20795
21624
  isSetofReturn: false;
20796
21625
  };
20797
21626
  };
21627
+ pick_cleanup_maintenance: {
21628
+ Args: {
21629
+ _heartbeat_hours?: number;
21630
+ _log_days?: number;
21631
+ };
21632
+ Returns: import("./types").Json;
21633
+ };
20798
21634
  pick_complete_print: {
20799
21635
  Args: {
20800
21636
  _printer_id: string;
@@ -20846,6 +21682,14 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20846
21682
  Args: never;
20847
21683
  Returns: string;
20848
21684
  };
21685
+ pick_day_counts: {
21686
+ Args: {
21687
+ _pick_day?: string;
21688
+ _screen_id?: string;
21689
+ _station_id?: string;
21690
+ };
21691
+ Returns: import("./types").Json;
21692
+ };
20849
21693
  pick_document_layout_data: {
20850
21694
  Args: {
20851
21695
  _layout_id: string;
@@ -20883,6 +21727,14 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20883
21727
  };
20884
21728
  Returns: undefined;
20885
21729
  };
21730
+ pick_reprint_document: {
21731
+ Args: {
21732
+ _queue_item_id: string;
21733
+ _session_id: string;
21734
+ _throttle_seconds?: number;
21735
+ };
21736
+ Returns: string;
21737
+ };
20886
21738
  pick_reset_print: {
20887
21739
  Args: {
20888
21740
  _queue_item_id: string;
@@ -20948,6 +21800,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20948
21800
  };
20949
21801
  Returns: string;
20950
21802
  };
21803
+ pick_sync_queue_throttled: {
21804
+ Args: {
21805
+ _min_seconds?: number;
21806
+ };
21807
+ Returns: import("./types").Json;
21808
+ };
20951
21809
  pickstation_get_orders_raw: {
20952
21810
  Args: never;
20953
21811
  Returns: import("./types").Json;
@@ -21009,6 +21867,37 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21009
21867
  };
21010
21868
  Returns: undefined;
21011
21869
  };
21870
+ quote_create_from_source: {
21871
+ Args: {
21872
+ _payload?: import("./types").Json;
21873
+ _source_id: string;
21874
+ _source_type: string;
21875
+ };
21876
+ Returns: string;
21877
+ };
21878
+ quote_get_billable_lines: {
21879
+ Args: {
21880
+ _quotation_id: string;
21881
+ };
21882
+ Returns: import("./types").Json;
21883
+ };
21884
+ quote_get_summary: {
21885
+ Args: {
21886
+ _quotation_id: string;
21887
+ };
21888
+ Returns: import("./types").Json;
21889
+ };
21890
+ quote_list_packages: {
21891
+ Args: never;
21892
+ Returns: import("./types").Json;
21893
+ };
21894
+ quote_list_sources: {
21895
+ Args: {
21896
+ _limit?: number;
21897
+ _source_type?: string;
21898
+ };
21899
+ Returns: import("./types").Json;
21900
+ };
21012
21901
  recompute_all_reserved_stock: {
21013
21902
  Args: never;
21014
21903
  Returns: undefined;
@@ -21062,6 +21951,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21062
21951
  };
21063
21952
  Returns: boolean;
21064
21953
  };
21954
+ release_stale_order_invoice_links: {
21955
+ Args: {
21956
+ _minutes?: number;
21957
+ };
21958
+ Returns: number;
21959
+ };
21065
21960
  reorder_customer_price_groups: {
21066
21961
  Args: {
21067
21962
  _ids: string[];
@@ -21544,6 +22439,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21544
22439
  };
21545
22440
  Returns: undefined;
21546
22441
  };
22442
+ sync_sick_time_off: {
22443
+ Args: {
22444
+ _period_id: string;
22445
+ };
22446
+ Returns: number;
22447
+ };
21547
22448
  trade_item_stock_duplicates: {
21548
22449
  Args: never;
21549
22450
  Returns: {
@@ -21574,6 +22475,20 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21574
22475
  };
21575
22476
  Returns: undefined;
21576
22477
  };
22478
+ twinfield_deactivate_connection: {
22479
+ Args: {
22480
+ p_connection_id: string;
22481
+ p_user_id: string;
22482
+ };
22483
+ Returns: import("./types").Json;
22484
+ };
22485
+ twinfield_handle_administration_change: {
22486
+ Args: {
22487
+ _administration_code: string;
22488
+ _user_id: string;
22489
+ };
22490
+ Returns: undefined;
22491
+ };
21577
22492
  twinfield_prune_push_queue: {
21578
22493
  Args: never;
21579
22494
  Returns: number;
@@ -21593,10 +22508,11 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21593
22508
  p_company_name?: string;
21594
22509
  p_environment: string;
21595
22510
  p_office_code?: string;
22511
+ p_reset_sync?: boolean;
21596
22512
  p_status?: string;
21597
22513
  p_user_id: string;
21598
22514
  };
21599
- Returns: string;
22515
+ Returns: import("./types").Json;
21600
22516
  };
21601
22517
  upsert_auto_fulfillment_log: {
21602
22518
  Args: {
@@ -21617,6 +22533,26 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21617
22533
  Args: never;
21618
22534
  Returns: string;
21619
22535
  };
22536
+ wo_create_from_source: {
22537
+ Args: {
22538
+ _payload?: import("./types").Json;
22539
+ _source_id: string;
22540
+ _source_type: string;
22541
+ };
22542
+ Returns: string;
22543
+ };
22544
+ wo_get_billable_lines: {
22545
+ Args: {
22546
+ _work_order_id: string;
22547
+ };
22548
+ Returns: import("./types").Json;
22549
+ };
22550
+ wo_get_summary: {
22551
+ Args: {
22552
+ _work_order_id: string;
22553
+ };
22554
+ Returns: import("./types").Json;
22555
+ };
21620
22556
  };
21621
22557
  Enums: {
21622
22558
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";