@flowselections/layout-maker 1.7.3 → 1.8.1
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.
- package/README.md +132 -69
- package/dist-lib/components/LogosPage.d.ts.map +1 -1
- package/dist-lib/components/LogosPage.js +3 -2
- package/dist-lib/components/PrinterSetupWizard.js +1 -1
- package/dist-lib/index.d.ts +3 -3
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +3 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +393 -13
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +393 -13
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +409 -14
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -0
- package/dist-lib/lib/aiLayout.functions.d.ts +393 -13
- package/dist-lib/lib/aiLayout.functions.d.ts.map +1 -1
- package/dist-lib/lib/aiLayout.server.js +9 -9
- package/dist-lib/lib/browserPrint.js +5 -5
- package/dist-lib/lib/documentProfiles.d.ts.map +1 -1
- package/dist-lib/lib/documentProfiles.js +3 -0
- package/dist-lib/lib/documentTypes.d.ts +1 -1
- package/dist-lib/lib/documentTypes.d.ts.map +1 -1
- package/dist-lib/lib/documentTypes.js +3 -0
- package/dist-lib/lib/layoutPreview.js +7 -7
- package/dist-lib/lib/logoLibrary.d.ts +12 -0
- package/dist-lib/lib/logoLibrary.d.ts.map +1 -1
- package/dist-lib/lib/logoLibrary.js +39 -1
- package/dist-lib/lib/pakbonHtml.js +50 -50
- package/dist-lib/lib/printApi.d.ts +71 -0
- package/dist-lib/lib/printApi.d.ts.map +1 -1
- package/dist-lib/lib/printApi.js +152 -12
- package/dist-lib/lib/printService.functions.d.ts +1572 -52
- package/dist-lib/lib/printService.functions.d.ts.map +1 -1
- package/dist-lib/lib/productiebonHtml.js +15 -15
- package/dist-lib/lib/profielHtml.js +18 -18
- package/dist-lib/lib/supabaseAdmin.server.d.ts +5 -5
- package/dist-lib/lib/supabaseAdmin.server.js +43 -43
- package/dist-lib/lib/testpagina.js +1 -1
- package/package.json +1 -1
|
@@ -7768,6 +7768,249 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
7768
7768
|
};
|
|
7769
7769
|
Relationships: [];
|
|
7770
7770
|
};
|
|
7771
|
+
itk_offerte_events: {
|
|
7772
|
+
Row: {
|
|
7773
|
+
created_at: string;
|
|
7774
|
+
event_type: string;
|
|
7775
|
+
id: string;
|
|
7776
|
+
metadata: import("../integrations/supabase/types.js").Json;
|
|
7777
|
+
offerte_id: string;
|
|
7778
|
+
omschrijving: string | null;
|
|
7779
|
+
user_id: string | null;
|
|
7780
|
+
};
|
|
7781
|
+
Insert: {
|
|
7782
|
+
created_at?: string;
|
|
7783
|
+
event_type: string;
|
|
7784
|
+
id?: string;
|
|
7785
|
+
metadata?: import("../integrations/supabase/types.js").Json;
|
|
7786
|
+
offerte_id: string;
|
|
7787
|
+
omschrijving?: string | null;
|
|
7788
|
+
user_id?: string | null;
|
|
7789
|
+
};
|
|
7790
|
+
Update: {
|
|
7791
|
+
created_at?: string;
|
|
7792
|
+
event_type?: string;
|
|
7793
|
+
id?: string;
|
|
7794
|
+
metadata?: import("../integrations/supabase/types.js").Json;
|
|
7795
|
+
offerte_id?: string;
|
|
7796
|
+
omschrijving?: string | null;
|
|
7797
|
+
user_id?: string | null;
|
|
7798
|
+
};
|
|
7799
|
+
Relationships: [{
|
|
7800
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
7801
|
+
columns: ["offerte_id"];
|
|
7802
|
+
isOneToOne: false;
|
|
7803
|
+
referencedRelation: "itk_offertes";
|
|
7804
|
+
referencedColumns: ["id"];
|
|
7805
|
+
}];
|
|
7806
|
+
};
|
|
7807
|
+
itk_offerte_regels: {
|
|
7808
|
+
Row: {
|
|
7809
|
+
created_at: string;
|
|
7810
|
+
id: string;
|
|
7811
|
+
line_total_cents: number;
|
|
7812
|
+
offerte_id: string;
|
|
7813
|
+
omschrijving: string;
|
|
7814
|
+
package_id: string | null;
|
|
7815
|
+
quantity: number;
|
|
7816
|
+
sort_order: number;
|
|
7817
|
+
source: string;
|
|
7818
|
+
unit_price_cents: number;
|
|
7819
|
+
updated_at: string;
|
|
7820
|
+
};
|
|
7821
|
+
Insert: {
|
|
7822
|
+
created_at?: string;
|
|
7823
|
+
id?: string;
|
|
7824
|
+
line_total_cents?: number;
|
|
7825
|
+
offerte_id: string;
|
|
7826
|
+
omschrijving?: string;
|
|
7827
|
+
package_id?: string | null;
|
|
7828
|
+
quantity?: number;
|
|
7829
|
+
sort_order?: number;
|
|
7830
|
+
source?: string;
|
|
7831
|
+
unit_price_cents?: number;
|
|
7832
|
+
updated_at?: string;
|
|
7833
|
+
};
|
|
7834
|
+
Update: {
|
|
7835
|
+
created_at?: string;
|
|
7836
|
+
id?: string;
|
|
7837
|
+
line_total_cents?: number;
|
|
7838
|
+
offerte_id?: string;
|
|
7839
|
+
omschrijving?: string;
|
|
7840
|
+
package_id?: string | null;
|
|
7841
|
+
quantity?: number;
|
|
7842
|
+
sort_order?: number;
|
|
7843
|
+
source?: string;
|
|
7844
|
+
unit_price_cents?: number;
|
|
7845
|
+
updated_at?: string;
|
|
7846
|
+
};
|
|
7847
|
+
Relationships: [{
|
|
7848
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
7849
|
+
columns: ["offerte_id"];
|
|
7850
|
+
isOneToOne: false;
|
|
7851
|
+
referencedRelation: "itk_offertes";
|
|
7852
|
+
referencedColumns: ["id"];
|
|
7853
|
+
}, {
|
|
7854
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
7855
|
+
columns: ["package_id"];
|
|
7856
|
+
isOneToOne: false;
|
|
7857
|
+
referencedRelation: "werkbon_packages";
|
|
7858
|
+
referencedColumns: ["id"];
|
|
7859
|
+
}];
|
|
7860
|
+
};
|
|
7861
|
+
itk_offerte_settings: {
|
|
7862
|
+
Row: {
|
|
7863
|
+
auto_convert_binnen_mandaat: boolean;
|
|
7864
|
+
created_at: string;
|
|
7865
|
+
default_geldigheid_dagen: number;
|
|
7866
|
+
default_vat_rate: number;
|
|
7867
|
+
id: string;
|
|
7868
|
+
singleton: boolean;
|
|
7869
|
+
updated_at: string;
|
|
7870
|
+
};
|
|
7871
|
+
Insert: {
|
|
7872
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7873
|
+
created_at?: string;
|
|
7874
|
+
default_geldigheid_dagen?: number;
|
|
7875
|
+
default_vat_rate?: number;
|
|
7876
|
+
id?: string;
|
|
7877
|
+
singleton?: boolean;
|
|
7878
|
+
updated_at?: string;
|
|
7879
|
+
};
|
|
7880
|
+
Update: {
|
|
7881
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7882
|
+
created_at?: string;
|
|
7883
|
+
default_geldigheid_dagen?: number;
|
|
7884
|
+
default_vat_rate?: number;
|
|
7885
|
+
id?: string;
|
|
7886
|
+
singleton?: boolean;
|
|
7887
|
+
updated_at?: string;
|
|
7888
|
+
};
|
|
7889
|
+
Relationships: [];
|
|
7890
|
+
};
|
|
7891
|
+
itk_offertes: {
|
|
7892
|
+
Row: {
|
|
7893
|
+
ai_generated: boolean;
|
|
7894
|
+
approved_at: string | null;
|
|
7895
|
+
binnen_mandaat: boolean;
|
|
7896
|
+
contact_id: string | null;
|
|
7897
|
+
converted_at: string | null;
|
|
7898
|
+
created_at: string;
|
|
7899
|
+
created_by: string | null;
|
|
7900
|
+
customer_id: string | null;
|
|
7901
|
+
follow_up_werkbon_id: string | null;
|
|
7902
|
+
id: string;
|
|
7903
|
+
jaar: number;
|
|
7904
|
+
mandaat_restant_cents: number;
|
|
7905
|
+
notities: string | null;
|
|
7906
|
+
offerte_number: string | null;
|
|
7907
|
+
omschrijving: string;
|
|
7908
|
+
rejected_at: string | null;
|
|
7909
|
+
sent_at: string | null;
|
|
7910
|
+
status: string;
|
|
7911
|
+
subtotal_cents: number;
|
|
7912
|
+
total_cents: number;
|
|
7913
|
+
updated_at: string;
|
|
7914
|
+
valid_until: string | null;
|
|
7915
|
+
vat_cents: number;
|
|
7916
|
+
vat_rate: number;
|
|
7917
|
+
viewed_at: string | null;
|
|
7918
|
+
volgnummer: number | null;
|
|
7919
|
+
werkbon_id: string | null;
|
|
7920
|
+
work_location_id: string | null;
|
|
7921
|
+
};
|
|
7922
|
+
Insert: {
|
|
7923
|
+
ai_generated?: boolean;
|
|
7924
|
+
approved_at?: string | null;
|
|
7925
|
+
binnen_mandaat?: boolean;
|
|
7926
|
+
contact_id?: string | null;
|
|
7927
|
+
converted_at?: string | null;
|
|
7928
|
+
created_at?: string;
|
|
7929
|
+
created_by?: string | null;
|
|
7930
|
+
customer_id?: string | null;
|
|
7931
|
+
follow_up_werkbon_id?: string | null;
|
|
7932
|
+
id?: string;
|
|
7933
|
+
jaar?: number;
|
|
7934
|
+
mandaat_restant_cents?: number;
|
|
7935
|
+
notities?: string | null;
|
|
7936
|
+
offerte_number?: string | null;
|
|
7937
|
+
omschrijving?: string;
|
|
7938
|
+
rejected_at?: string | null;
|
|
7939
|
+
sent_at?: string | null;
|
|
7940
|
+
status?: string;
|
|
7941
|
+
subtotal_cents?: number;
|
|
7942
|
+
total_cents?: number;
|
|
7943
|
+
updated_at?: string;
|
|
7944
|
+
valid_until?: string | null;
|
|
7945
|
+
vat_cents?: number;
|
|
7946
|
+
vat_rate?: number;
|
|
7947
|
+
viewed_at?: string | null;
|
|
7948
|
+
volgnummer?: number | null;
|
|
7949
|
+
werkbon_id?: string | null;
|
|
7950
|
+
work_location_id?: string | null;
|
|
7951
|
+
};
|
|
7952
|
+
Update: {
|
|
7953
|
+
ai_generated?: boolean;
|
|
7954
|
+
approved_at?: string | null;
|
|
7955
|
+
binnen_mandaat?: boolean;
|
|
7956
|
+
contact_id?: string | null;
|
|
7957
|
+
converted_at?: string | null;
|
|
7958
|
+
created_at?: string;
|
|
7959
|
+
created_by?: string | null;
|
|
7960
|
+
customer_id?: string | null;
|
|
7961
|
+
follow_up_werkbon_id?: string | null;
|
|
7962
|
+
id?: string;
|
|
7963
|
+
jaar?: number;
|
|
7964
|
+
mandaat_restant_cents?: number;
|
|
7965
|
+
notities?: string | null;
|
|
7966
|
+
offerte_number?: string | null;
|
|
7967
|
+
omschrijving?: string;
|
|
7968
|
+
rejected_at?: string | null;
|
|
7969
|
+
sent_at?: string | null;
|
|
7970
|
+
status?: string;
|
|
7971
|
+
subtotal_cents?: number;
|
|
7972
|
+
total_cents?: number;
|
|
7973
|
+
updated_at?: string;
|
|
7974
|
+
valid_until?: string | null;
|
|
7975
|
+
vat_cents?: number;
|
|
7976
|
+
vat_rate?: number;
|
|
7977
|
+
viewed_at?: string | null;
|
|
7978
|
+
volgnummer?: number | null;
|
|
7979
|
+
werkbon_id?: string | null;
|
|
7980
|
+
work_location_id?: string | null;
|
|
7981
|
+
};
|
|
7982
|
+
Relationships: [{
|
|
7983
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
7984
|
+
columns: ["contact_id"];
|
|
7985
|
+
isOneToOne: false;
|
|
7986
|
+
referencedRelation: "itk_contact_persons";
|
|
7987
|
+
referencedColumns: ["id"];
|
|
7988
|
+
}, {
|
|
7989
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
7990
|
+
columns: ["customer_id"];
|
|
7991
|
+
isOneToOne: false;
|
|
7992
|
+
referencedRelation: "itk_customers";
|
|
7993
|
+
referencedColumns: ["id"];
|
|
7994
|
+
}, {
|
|
7995
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
7996
|
+
columns: ["follow_up_werkbon_id"];
|
|
7997
|
+
isOneToOne: false;
|
|
7998
|
+
referencedRelation: "werkbonnen";
|
|
7999
|
+
referencedColumns: ["id"];
|
|
8000
|
+
}, {
|
|
8001
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8002
|
+
columns: ["werkbon_id"];
|
|
8003
|
+
isOneToOne: false;
|
|
8004
|
+
referencedRelation: "werkbonnen";
|
|
8005
|
+
referencedColumns: ["id"];
|
|
8006
|
+
}, {
|
|
8007
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8008
|
+
columns: ["work_location_id"];
|
|
8009
|
+
isOneToOne: false;
|
|
8010
|
+
referencedRelation: "itk_work_locations";
|
|
8011
|
+
referencedColumns: ["id"];
|
|
8012
|
+
}];
|
|
8013
|
+
};
|
|
7771
8014
|
itk_work_locations: {
|
|
7772
8015
|
Row: {
|
|
7773
8016
|
city: string | null;
|
|
@@ -10141,6 +10384,63 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
10141
10384
|
referencedColumns: ["id"];
|
|
10142
10385
|
}];
|
|
10143
10386
|
};
|
|
10387
|
+
medewerker_details: {
|
|
10388
|
+
Row: {
|
|
10389
|
+
color: string | null;
|
|
10390
|
+
created_at: string;
|
|
10391
|
+
hours_fri: number | null;
|
|
10392
|
+
hours_mon: number | null;
|
|
10393
|
+
hours_thu: number | null;
|
|
10394
|
+
hours_tue: number | null;
|
|
10395
|
+
hours_wed: number | null;
|
|
10396
|
+
id: string;
|
|
10397
|
+
is_active: boolean;
|
|
10398
|
+
leave_balance_hours: number;
|
|
10399
|
+
persnr: string | null;
|
|
10400
|
+
phone: string | null;
|
|
10401
|
+
profile_id: string;
|
|
10402
|
+
updated_at: string;
|
|
10403
|
+
};
|
|
10404
|
+
Insert: {
|
|
10405
|
+
color?: string | null;
|
|
10406
|
+
created_at?: string;
|
|
10407
|
+
hours_fri?: number | null;
|
|
10408
|
+
hours_mon?: number | null;
|
|
10409
|
+
hours_thu?: number | null;
|
|
10410
|
+
hours_tue?: number | null;
|
|
10411
|
+
hours_wed?: number | null;
|
|
10412
|
+
id?: string;
|
|
10413
|
+
is_active?: boolean;
|
|
10414
|
+
leave_balance_hours?: number;
|
|
10415
|
+
persnr?: string | null;
|
|
10416
|
+
phone?: string | null;
|
|
10417
|
+
profile_id: string;
|
|
10418
|
+
updated_at?: string;
|
|
10419
|
+
};
|
|
10420
|
+
Update: {
|
|
10421
|
+
color?: string | null;
|
|
10422
|
+
created_at?: string;
|
|
10423
|
+
hours_fri?: number | null;
|
|
10424
|
+
hours_mon?: number | null;
|
|
10425
|
+
hours_thu?: number | null;
|
|
10426
|
+
hours_tue?: number | null;
|
|
10427
|
+
hours_wed?: number | null;
|
|
10428
|
+
id?: string;
|
|
10429
|
+
is_active?: boolean;
|
|
10430
|
+
leave_balance_hours?: number;
|
|
10431
|
+
persnr?: string | null;
|
|
10432
|
+
phone?: string | null;
|
|
10433
|
+
profile_id?: string;
|
|
10434
|
+
updated_at?: string;
|
|
10435
|
+
};
|
|
10436
|
+
Relationships: [{
|
|
10437
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10438
|
+
columns: ["profile_id"];
|
|
10439
|
+
isOneToOne: true;
|
|
10440
|
+
referencedRelation: "profiles";
|
|
10441
|
+
referencedColumns: ["id"];
|
|
10442
|
+
}];
|
|
10443
|
+
};
|
|
10144
10444
|
module_features: {
|
|
10145
10445
|
Row: {
|
|
10146
10446
|
created_at: string;
|
|
@@ -10201,6 +10501,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
10201
10501
|
module_registry: {
|
|
10202
10502
|
Row: {
|
|
10203
10503
|
created_at: string;
|
|
10504
|
+
enforce: boolean;
|
|
10204
10505
|
is_active: boolean;
|
|
10205
10506
|
last_seen_at: string;
|
|
10206
10507
|
module_id: string;
|
|
@@ -10210,6 +10511,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
10210
10511
|
};
|
|
10211
10512
|
Insert: {
|
|
10212
10513
|
created_at?: string;
|
|
10514
|
+
enforce?: boolean;
|
|
10213
10515
|
is_active?: boolean;
|
|
10214
10516
|
last_seen_at?: string;
|
|
10215
10517
|
module_id: string;
|
|
@@ -10219,6 +10521,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
10219
10521
|
};
|
|
10220
10522
|
Update: {
|
|
10221
10523
|
created_at?: string;
|
|
10524
|
+
enforce?: boolean;
|
|
10222
10525
|
is_active?: boolean;
|
|
10223
10526
|
last_seen_at?: string;
|
|
10224
10527
|
module_id?: string;
|
|
@@ -14756,6 +15059,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
14756
15059
|
type: string;
|
|
14757
15060
|
updated_at: string;
|
|
14758
15061
|
vereist_medewerker: boolean;
|
|
15062
|
+
werkplek: string | null;
|
|
14759
15063
|
};
|
|
14760
15064
|
Insert: {
|
|
14761
15065
|
actief?: boolean;
|
|
@@ -14769,6 +15073,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
14769
15073
|
type?: string;
|
|
14770
15074
|
updated_at?: string;
|
|
14771
15075
|
vereist_medewerker?: boolean;
|
|
15076
|
+
werkplek?: string | null;
|
|
14772
15077
|
};
|
|
14773
15078
|
Update: {
|
|
14774
15079
|
actief?: boolean;
|
|
@@ -14782,9 +15087,46 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
14782
15087
|
type?: string;
|
|
14783
15088
|
updated_at?: string;
|
|
14784
15089
|
vereist_medewerker?: boolean;
|
|
15090
|
+
werkplek?: string | null;
|
|
14785
15091
|
};
|
|
14786
15092
|
Relationships: [];
|
|
14787
15093
|
};
|
|
15094
|
+
sick_periods: {
|
|
15095
|
+
Row: {
|
|
15096
|
+
created_at: string;
|
|
15097
|
+
employee_id: string;
|
|
15098
|
+
end_date: string | null;
|
|
15099
|
+
id: string;
|
|
15100
|
+
notes: string | null;
|
|
15101
|
+
start_date: string;
|
|
15102
|
+
updated_at: string;
|
|
15103
|
+
};
|
|
15104
|
+
Insert: {
|
|
15105
|
+
created_at?: string;
|
|
15106
|
+
employee_id: string;
|
|
15107
|
+
end_date?: string | null;
|
|
15108
|
+
id?: string;
|
|
15109
|
+
notes?: string | null;
|
|
15110
|
+
start_date: string;
|
|
15111
|
+
updated_at?: string;
|
|
15112
|
+
};
|
|
15113
|
+
Update: {
|
|
15114
|
+
created_at?: string;
|
|
15115
|
+
employee_id?: string;
|
|
15116
|
+
end_date?: string | null;
|
|
15117
|
+
id?: string;
|
|
15118
|
+
notes?: string | null;
|
|
15119
|
+
start_date?: string;
|
|
15120
|
+
updated_at?: string;
|
|
15121
|
+
};
|
|
15122
|
+
Relationships: [{
|
|
15123
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15124
|
+
columns: ["employee_id"];
|
|
15125
|
+
isOneToOne: false;
|
|
15126
|
+
referencedRelation: "profiles";
|
|
15127
|
+
referencedColumns: ["id"];
|
|
15128
|
+
}];
|
|
15129
|
+
};
|
|
14788
15130
|
sidebar_config: {
|
|
14789
15131
|
Row: {
|
|
14790
15132
|
id: string;
|
|
@@ -18974,6 +19316,19 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
18974
19316
|
};
|
|
18975
19317
|
Returns: undefined;
|
|
18976
19318
|
};
|
|
19319
|
+
approve_mailbox_order_proposal: {
|
|
19320
|
+
Args: {
|
|
19321
|
+
p_custom_fields: import("../integrations/supabase/types.js").Json;
|
|
19322
|
+
p_customer_id: string;
|
|
19323
|
+
p_delivery_date: string;
|
|
19324
|
+
p_field_values?: import("../integrations/supabase/types.js").Json;
|
|
19325
|
+
p_lines: import("../integrations/supabase/types.js").Json;
|
|
19326
|
+
p_notes: string;
|
|
19327
|
+
p_proposal_id: string;
|
|
19328
|
+
p_reviewed_by: string;
|
|
19329
|
+
};
|
|
19330
|
+
Returns: import("../integrations/supabase/types.js").Json;
|
|
19331
|
+
};
|
|
18977
19332
|
assign_cart_numbers: {
|
|
18978
19333
|
Args: {
|
|
18979
19334
|
p_carts: import("../integrations/supabase/types.js").Json;
|
|
@@ -19405,7 +19760,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
19405
19760
|
Returns: string;
|
|
19406
19761
|
} | {
|
|
19407
19762
|
Args: {
|
|
19408
|
-
_feature_id
|
|
19763
|
+
_feature_id: string;
|
|
19409
19764
|
_module_id: string;
|
|
19410
19765
|
_user_id: string;
|
|
19411
19766
|
};
|
|
@@ -19456,6 +19811,13 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
19456
19811
|
};
|
|
19457
19812
|
Returns: string;
|
|
19458
19813
|
};
|
|
19814
|
+
employee_day_hours: {
|
|
19815
|
+
Args: {
|
|
19816
|
+
_day: string;
|
|
19817
|
+
_employee_id: string;
|
|
19818
|
+
};
|
|
19819
|
+
Returns: number;
|
|
19820
|
+
};
|
|
19459
19821
|
enqueue_cart_replan_if_unlocked: {
|
|
19460
19822
|
Args: {
|
|
19461
19823
|
p_order_id: string;
|
|
@@ -19809,6 +20171,19 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
19809
20171
|
Args: never;
|
|
19810
20172
|
Returns: boolean;
|
|
19811
20173
|
};
|
|
20174
|
+
itk_offerte_naar_werkbon: {
|
|
20175
|
+
Args: {
|
|
20176
|
+
_offerte_id: string;
|
|
20177
|
+
};
|
|
20178
|
+
Returns: string;
|
|
20179
|
+
};
|
|
20180
|
+
itk_offerte_restant_mandaat: {
|
|
20181
|
+
Args: {
|
|
20182
|
+
_exclude_offerte_id?: string;
|
|
20183
|
+
_werkbon_id: string;
|
|
20184
|
+
};
|
|
20185
|
+
Returns: number;
|
|
20186
|
+
};
|
|
19812
20187
|
jwt_has_role: {
|
|
19813
20188
|
Args: {
|
|
19814
20189
|
_role: import("../integrations/supabase/types.js").Database["public"]["Enums"]["app_role"];
|
|
@@ -19819,9 +20194,19 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
19819
20194
|
Args: never;
|
|
19820
20195
|
Returns: {
|
|
19821
20196
|
avatar_url: string;
|
|
20197
|
+
color: string;
|
|
19822
20198
|
display_name: string;
|
|
19823
20199
|
email: string;
|
|
20200
|
+
hours_fri: number;
|
|
20201
|
+
hours_mon: number;
|
|
20202
|
+
hours_thu: number;
|
|
20203
|
+
hours_tue: number;
|
|
20204
|
+
hours_wed: number;
|
|
19824
20205
|
id: string;
|
|
20206
|
+
is_active: boolean;
|
|
20207
|
+
leave_balance_hours: number;
|
|
20208
|
+
persnr: string;
|
|
20209
|
+
phone: string;
|
|
19825
20210
|
roles: string[];
|
|
19826
20211
|
}[];
|
|
19827
20212
|
};
|
|
@@ -20148,17 +20533,6 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
20148
20533
|
Returns: string;
|
|
20149
20534
|
};
|
|
20150
20535
|
logistics_emit_event: {
|
|
20151
|
-
Args: {
|
|
20152
|
-
p_event_type: string;
|
|
20153
|
-
p_idempotency_key?: string;
|
|
20154
|
-
p_order_ref: string;
|
|
20155
|
-
p_payload?: import("../integrations/supabase/types.js").Json;
|
|
20156
|
-
p_shadow?: boolean;
|
|
20157
|
-
p_source_module: string;
|
|
20158
|
-
p_strategy_id?: string;
|
|
20159
|
-
};
|
|
20160
|
-
Returns: import("../integrations/supabase/types.js").Json;
|
|
20161
|
-
} | {
|
|
20162
20536
|
Args: {
|
|
20163
20537
|
p_event_type: string;
|
|
20164
20538
|
p_idempotency_key?: string;
|
|
@@ -21538,6 +21912,12 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
21538
21912
|
};
|
|
21539
21913
|
Returns: undefined;
|
|
21540
21914
|
};
|
|
21915
|
+
sync_sick_time_off: {
|
|
21916
|
+
Args: {
|
|
21917
|
+
_period_id: string;
|
|
21918
|
+
};
|
|
21919
|
+
Returns: number;
|
|
21920
|
+
};
|
|
21541
21921
|
trade_item_stock_duplicates: {
|
|
21542
21922
|
Args: never;
|
|
21543
21923
|
Returns: {
|
|
@@ -21615,7 +21995,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
|
|
|
21615
21995
|
Enums: {
|
|
21616
21996
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21617
21997
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21618
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
21998
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21619
21999
|
doc_orientation: "portrait" | "landscape";
|
|
21620
22000
|
exact_env: "staging" | "live";
|
|
21621
22001
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -29412,6 +29792,249 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
29412
29792
|
};
|
|
29413
29793
|
Relationships: [];
|
|
29414
29794
|
};
|
|
29795
|
+
itk_offerte_events: {
|
|
29796
|
+
Row: {
|
|
29797
|
+
created_at: string;
|
|
29798
|
+
event_type: string;
|
|
29799
|
+
id: string;
|
|
29800
|
+
metadata: import("../integrations/supabase/types.js").Json;
|
|
29801
|
+
offerte_id: string;
|
|
29802
|
+
omschrijving: string | null;
|
|
29803
|
+
user_id: string | null;
|
|
29804
|
+
};
|
|
29805
|
+
Insert: {
|
|
29806
|
+
created_at?: string;
|
|
29807
|
+
event_type: string;
|
|
29808
|
+
id?: string;
|
|
29809
|
+
metadata?: import("../integrations/supabase/types.js").Json;
|
|
29810
|
+
offerte_id: string;
|
|
29811
|
+
omschrijving?: string | null;
|
|
29812
|
+
user_id?: string | null;
|
|
29813
|
+
};
|
|
29814
|
+
Update: {
|
|
29815
|
+
created_at?: string;
|
|
29816
|
+
event_type?: string;
|
|
29817
|
+
id?: string;
|
|
29818
|
+
metadata?: import("../integrations/supabase/types.js").Json;
|
|
29819
|
+
offerte_id?: string;
|
|
29820
|
+
omschrijving?: string | null;
|
|
29821
|
+
user_id?: string | null;
|
|
29822
|
+
};
|
|
29823
|
+
Relationships: [{
|
|
29824
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
29825
|
+
columns: ["offerte_id"];
|
|
29826
|
+
isOneToOne: false;
|
|
29827
|
+
referencedRelation: "itk_offertes";
|
|
29828
|
+
referencedColumns: ["id"];
|
|
29829
|
+
}];
|
|
29830
|
+
};
|
|
29831
|
+
itk_offerte_regels: {
|
|
29832
|
+
Row: {
|
|
29833
|
+
created_at: string;
|
|
29834
|
+
id: string;
|
|
29835
|
+
line_total_cents: number;
|
|
29836
|
+
offerte_id: string;
|
|
29837
|
+
omschrijving: string;
|
|
29838
|
+
package_id: string | null;
|
|
29839
|
+
quantity: number;
|
|
29840
|
+
sort_order: number;
|
|
29841
|
+
source: string;
|
|
29842
|
+
unit_price_cents: number;
|
|
29843
|
+
updated_at: string;
|
|
29844
|
+
};
|
|
29845
|
+
Insert: {
|
|
29846
|
+
created_at?: string;
|
|
29847
|
+
id?: string;
|
|
29848
|
+
line_total_cents?: number;
|
|
29849
|
+
offerte_id: string;
|
|
29850
|
+
omschrijving?: string;
|
|
29851
|
+
package_id?: string | null;
|
|
29852
|
+
quantity?: number;
|
|
29853
|
+
sort_order?: number;
|
|
29854
|
+
source?: string;
|
|
29855
|
+
unit_price_cents?: number;
|
|
29856
|
+
updated_at?: string;
|
|
29857
|
+
};
|
|
29858
|
+
Update: {
|
|
29859
|
+
created_at?: string;
|
|
29860
|
+
id?: string;
|
|
29861
|
+
line_total_cents?: number;
|
|
29862
|
+
offerte_id?: string;
|
|
29863
|
+
omschrijving?: string;
|
|
29864
|
+
package_id?: string | null;
|
|
29865
|
+
quantity?: number;
|
|
29866
|
+
sort_order?: number;
|
|
29867
|
+
source?: string;
|
|
29868
|
+
unit_price_cents?: number;
|
|
29869
|
+
updated_at?: string;
|
|
29870
|
+
};
|
|
29871
|
+
Relationships: [{
|
|
29872
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
29873
|
+
columns: ["offerte_id"];
|
|
29874
|
+
isOneToOne: false;
|
|
29875
|
+
referencedRelation: "itk_offertes";
|
|
29876
|
+
referencedColumns: ["id"];
|
|
29877
|
+
}, {
|
|
29878
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
29879
|
+
columns: ["package_id"];
|
|
29880
|
+
isOneToOne: false;
|
|
29881
|
+
referencedRelation: "werkbon_packages";
|
|
29882
|
+
referencedColumns: ["id"];
|
|
29883
|
+
}];
|
|
29884
|
+
};
|
|
29885
|
+
itk_offerte_settings: {
|
|
29886
|
+
Row: {
|
|
29887
|
+
auto_convert_binnen_mandaat: boolean;
|
|
29888
|
+
created_at: string;
|
|
29889
|
+
default_geldigheid_dagen: number;
|
|
29890
|
+
default_vat_rate: number;
|
|
29891
|
+
id: string;
|
|
29892
|
+
singleton: boolean;
|
|
29893
|
+
updated_at: string;
|
|
29894
|
+
};
|
|
29895
|
+
Insert: {
|
|
29896
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
29897
|
+
created_at?: string;
|
|
29898
|
+
default_geldigheid_dagen?: number;
|
|
29899
|
+
default_vat_rate?: number;
|
|
29900
|
+
id?: string;
|
|
29901
|
+
singleton?: boolean;
|
|
29902
|
+
updated_at?: string;
|
|
29903
|
+
};
|
|
29904
|
+
Update: {
|
|
29905
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
29906
|
+
created_at?: string;
|
|
29907
|
+
default_geldigheid_dagen?: number;
|
|
29908
|
+
default_vat_rate?: number;
|
|
29909
|
+
id?: string;
|
|
29910
|
+
singleton?: boolean;
|
|
29911
|
+
updated_at?: string;
|
|
29912
|
+
};
|
|
29913
|
+
Relationships: [];
|
|
29914
|
+
};
|
|
29915
|
+
itk_offertes: {
|
|
29916
|
+
Row: {
|
|
29917
|
+
ai_generated: boolean;
|
|
29918
|
+
approved_at: string | null;
|
|
29919
|
+
binnen_mandaat: boolean;
|
|
29920
|
+
contact_id: string | null;
|
|
29921
|
+
converted_at: string | null;
|
|
29922
|
+
created_at: string;
|
|
29923
|
+
created_by: string | null;
|
|
29924
|
+
customer_id: string | null;
|
|
29925
|
+
follow_up_werkbon_id: string | null;
|
|
29926
|
+
id: string;
|
|
29927
|
+
jaar: number;
|
|
29928
|
+
mandaat_restant_cents: number;
|
|
29929
|
+
notities: string | null;
|
|
29930
|
+
offerte_number: string | null;
|
|
29931
|
+
omschrijving: string;
|
|
29932
|
+
rejected_at: string | null;
|
|
29933
|
+
sent_at: string | null;
|
|
29934
|
+
status: string;
|
|
29935
|
+
subtotal_cents: number;
|
|
29936
|
+
total_cents: number;
|
|
29937
|
+
updated_at: string;
|
|
29938
|
+
valid_until: string | null;
|
|
29939
|
+
vat_cents: number;
|
|
29940
|
+
vat_rate: number;
|
|
29941
|
+
viewed_at: string | null;
|
|
29942
|
+
volgnummer: number | null;
|
|
29943
|
+
werkbon_id: string | null;
|
|
29944
|
+
work_location_id: string | null;
|
|
29945
|
+
};
|
|
29946
|
+
Insert: {
|
|
29947
|
+
ai_generated?: boolean;
|
|
29948
|
+
approved_at?: string | null;
|
|
29949
|
+
binnen_mandaat?: boolean;
|
|
29950
|
+
contact_id?: string | null;
|
|
29951
|
+
converted_at?: string | null;
|
|
29952
|
+
created_at?: string;
|
|
29953
|
+
created_by?: string | null;
|
|
29954
|
+
customer_id?: string | null;
|
|
29955
|
+
follow_up_werkbon_id?: string | null;
|
|
29956
|
+
id?: string;
|
|
29957
|
+
jaar?: number;
|
|
29958
|
+
mandaat_restant_cents?: number;
|
|
29959
|
+
notities?: string | null;
|
|
29960
|
+
offerte_number?: string | null;
|
|
29961
|
+
omschrijving?: string;
|
|
29962
|
+
rejected_at?: string | null;
|
|
29963
|
+
sent_at?: string | null;
|
|
29964
|
+
status?: string;
|
|
29965
|
+
subtotal_cents?: number;
|
|
29966
|
+
total_cents?: number;
|
|
29967
|
+
updated_at?: string;
|
|
29968
|
+
valid_until?: string | null;
|
|
29969
|
+
vat_cents?: number;
|
|
29970
|
+
vat_rate?: number;
|
|
29971
|
+
viewed_at?: string | null;
|
|
29972
|
+
volgnummer?: number | null;
|
|
29973
|
+
werkbon_id?: string | null;
|
|
29974
|
+
work_location_id?: string | null;
|
|
29975
|
+
};
|
|
29976
|
+
Update: {
|
|
29977
|
+
ai_generated?: boolean;
|
|
29978
|
+
approved_at?: string | null;
|
|
29979
|
+
binnen_mandaat?: boolean;
|
|
29980
|
+
contact_id?: string | null;
|
|
29981
|
+
converted_at?: string | null;
|
|
29982
|
+
created_at?: string;
|
|
29983
|
+
created_by?: string | null;
|
|
29984
|
+
customer_id?: string | null;
|
|
29985
|
+
follow_up_werkbon_id?: string | null;
|
|
29986
|
+
id?: string;
|
|
29987
|
+
jaar?: number;
|
|
29988
|
+
mandaat_restant_cents?: number;
|
|
29989
|
+
notities?: string | null;
|
|
29990
|
+
offerte_number?: string | null;
|
|
29991
|
+
omschrijving?: string;
|
|
29992
|
+
rejected_at?: string | null;
|
|
29993
|
+
sent_at?: string | null;
|
|
29994
|
+
status?: string;
|
|
29995
|
+
subtotal_cents?: number;
|
|
29996
|
+
total_cents?: number;
|
|
29997
|
+
updated_at?: string;
|
|
29998
|
+
valid_until?: string | null;
|
|
29999
|
+
vat_cents?: number;
|
|
30000
|
+
vat_rate?: number;
|
|
30001
|
+
viewed_at?: string | null;
|
|
30002
|
+
volgnummer?: number | null;
|
|
30003
|
+
werkbon_id?: string | null;
|
|
30004
|
+
work_location_id?: string | null;
|
|
30005
|
+
};
|
|
30006
|
+
Relationships: [{
|
|
30007
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
30008
|
+
columns: ["contact_id"];
|
|
30009
|
+
isOneToOne: false;
|
|
30010
|
+
referencedRelation: "itk_contact_persons";
|
|
30011
|
+
referencedColumns: ["id"];
|
|
30012
|
+
}, {
|
|
30013
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
30014
|
+
columns: ["customer_id"];
|
|
30015
|
+
isOneToOne: false;
|
|
30016
|
+
referencedRelation: "itk_customers";
|
|
30017
|
+
referencedColumns: ["id"];
|
|
30018
|
+
}, {
|
|
30019
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
30020
|
+
columns: ["follow_up_werkbon_id"];
|
|
30021
|
+
isOneToOne: false;
|
|
30022
|
+
referencedRelation: "werkbonnen";
|
|
30023
|
+
referencedColumns: ["id"];
|
|
30024
|
+
}, {
|
|
30025
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
30026
|
+
columns: ["werkbon_id"];
|
|
30027
|
+
isOneToOne: false;
|
|
30028
|
+
referencedRelation: "werkbonnen";
|
|
30029
|
+
referencedColumns: ["id"];
|
|
30030
|
+
}, {
|
|
30031
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
30032
|
+
columns: ["work_location_id"];
|
|
30033
|
+
isOneToOne: false;
|
|
30034
|
+
referencedRelation: "itk_work_locations";
|
|
30035
|
+
referencedColumns: ["id"];
|
|
30036
|
+
}];
|
|
30037
|
+
};
|
|
29415
30038
|
itk_work_locations: {
|
|
29416
30039
|
Row: {
|
|
29417
30040
|
city: string | null;
|
|
@@ -31785,6 +32408,63 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
31785
32408
|
referencedColumns: ["id"];
|
|
31786
32409
|
}];
|
|
31787
32410
|
};
|
|
32411
|
+
medewerker_details: {
|
|
32412
|
+
Row: {
|
|
32413
|
+
color: string | null;
|
|
32414
|
+
created_at: string;
|
|
32415
|
+
hours_fri: number | null;
|
|
32416
|
+
hours_mon: number | null;
|
|
32417
|
+
hours_thu: number | null;
|
|
32418
|
+
hours_tue: number | null;
|
|
32419
|
+
hours_wed: number | null;
|
|
32420
|
+
id: string;
|
|
32421
|
+
is_active: boolean;
|
|
32422
|
+
leave_balance_hours: number;
|
|
32423
|
+
persnr: string | null;
|
|
32424
|
+
phone: string | null;
|
|
32425
|
+
profile_id: string;
|
|
32426
|
+
updated_at: string;
|
|
32427
|
+
};
|
|
32428
|
+
Insert: {
|
|
32429
|
+
color?: string | null;
|
|
32430
|
+
created_at?: string;
|
|
32431
|
+
hours_fri?: number | null;
|
|
32432
|
+
hours_mon?: number | null;
|
|
32433
|
+
hours_thu?: number | null;
|
|
32434
|
+
hours_tue?: number | null;
|
|
32435
|
+
hours_wed?: number | null;
|
|
32436
|
+
id?: string;
|
|
32437
|
+
is_active?: boolean;
|
|
32438
|
+
leave_balance_hours?: number;
|
|
32439
|
+
persnr?: string | null;
|
|
32440
|
+
phone?: string | null;
|
|
32441
|
+
profile_id: string;
|
|
32442
|
+
updated_at?: string;
|
|
32443
|
+
};
|
|
32444
|
+
Update: {
|
|
32445
|
+
color?: string | null;
|
|
32446
|
+
created_at?: string;
|
|
32447
|
+
hours_fri?: number | null;
|
|
32448
|
+
hours_mon?: number | null;
|
|
32449
|
+
hours_thu?: number | null;
|
|
32450
|
+
hours_tue?: number | null;
|
|
32451
|
+
hours_wed?: number | null;
|
|
32452
|
+
id?: string;
|
|
32453
|
+
is_active?: boolean;
|
|
32454
|
+
leave_balance_hours?: number;
|
|
32455
|
+
persnr?: string | null;
|
|
32456
|
+
phone?: string | null;
|
|
32457
|
+
profile_id?: string;
|
|
32458
|
+
updated_at?: string;
|
|
32459
|
+
};
|
|
32460
|
+
Relationships: [{
|
|
32461
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
32462
|
+
columns: ["profile_id"];
|
|
32463
|
+
isOneToOne: true;
|
|
32464
|
+
referencedRelation: "profiles";
|
|
32465
|
+
referencedColumns: ["id"];
|
|
32466
|
+
}];
|
|
32467
|
+
};
|
|
31788
32468
|
module_features: {
|
|
31789
32469
|
Row: {
|
|
31790
32470
|
created_at: string;
|
|
@@ -31845,6 +32525,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
31845
32525
|
module_registry: {
|
|
31846
32526
|
Row: {
|
|
31847
32527
|
created_at: string;
|
|
32528
|
+
enforce: boolean;
|
|
31848
32529
|
is_active: boolean;
|
|
31849
32530
|
last_seen_at: string;
|
|
31850
32531
|
module_id: string;
|
|
@@ -31854,6 +32535,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
31854
32535
|
};
|
|
31855
32536
|
Insert: {
|
|
31856
32537
|
created_at?: string;
|
|
32538
|
+
enforce?: boolean;
|
|
31857
32539
|
is_active?: boolean;
|
|
31858
32540
|
last_seen_at?: string;
|
|
31859
32541
|
module_id: string;
|
|
@@ -31863,6 +32545,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
31863
32545
|
};
|
|
31864
32546
|
Update: {
|
|
31865
32547
|
created_at?: string;
|
|
32548
|
+
enforce?: boolean;
|
|
31866
32549
|
is_active?: boolean;
|
|
31867
32550
|
last_seen_at?: string;
|
|
31868
32551
|
module_id?: string;
|
|
@@ -36400,6 +37083,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
36400
37083
|
type: string;
|
|
36401
37084
|
updated_at: string;
|
|
36402
37085
|
vereist_medewerker: boolean;
|
|
37086
|
+
werkplek: string | null;
|
|
36403
37087
|
};
|
|
36404
37088
|
Insert: {
|
|
36405
37089
|
actief?: boolean;
|
|
@@ -36413,6 +37097,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
36413
37097
|
type?: string;
|
|
36414
37098
|
updated_at?: string;
|
|
36415
37099
|
vereist_medewerker?: boolean;
|
|
37100
|
+
werkplek?: string | null;
|
|
36416
37101
|
};
|
|
36417
37102
|
Update: {
|
|
36418
37103
|
actief?: boolean;
|
|
@@ -36426,9 +37111,46 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
36426
37111
|
type?: string;
|
|
36427
37112
|
updated_at?: string;
|
|
36428
37113
|
vereist_medewerker?: boolean;
|
|
37114
|
+
werkplek?: string | null;
|
|
36429
37115
|
};
|
|
36430
37116
|
Relationships: [];
|
|
36431
37117
|
};
|
|
37118
|
+
sick_periods: {
|
|
37119
|
+
Row: {
|
|
37120
|
+
created_at: string;
|
|
37121
|
+
employee_id: string;
|
|
37122
|
+
end_date: string | null;
|
|
37123
|
+
id: string;
|
|
37124
|
+
notes: string | null;
|
|
37125
|
+
start_date: string;
|
|
37126
|
+
updated_at: string;
|
|
37127
|
+
};
|
|
37128
|
+
Insert: {
|
|
37129
|
+
created_at?: string;
|
|
37130
|
+
employee_id: string;
|
|
37131
|
+
end_date?: string | null;
|
|
37132
|
+
id?: string;
|
|
37133
|
+
notes?: string | null;
|
|
37134
|
+
start_date: string;
|
|
37135
|
+
updated_at?: string;
|
|
37136
|
+
};
|
|
37137
|
+
Update: {
|
|
37138
|
+
created_at?: string;
|
|
37139
|
+
employee_id?: string;
|
|
37140
|
+
end_date?: string | null;
|
|
37141
|
+
id?: string;
|
|
37142
|
+
notes?: string | null;
|
|
37143
|
+
start_date?: string;
|
|
37144
|
+
updated_at?: string;
|
|
37145
|
+
};
|
|
37146
|
+
Relationships: [{
|
|
37147
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
37148
|
+
columns: ["employee_id"];
|
|
37149
|
+
isOneToOne: false;
|
|
37150
|
+
referencedRelation: "profiles";
|
|
37151
|
+
referencedColumns: ["id"];
|
|
37152
|
+
}];
|
|
37153
|
+
};
|
|
36432
37154
|
sidebar_config: {
|
|
36433
37155
|
Row: {
|
|
36434
37156
|
id: string;
|
|
@@ -40618,6 +41340,19 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
40618
41340
|
};
|
|
40619
41341
|
Returns: undefined;
|
|
40620
41342
|
};
|
|
41343
|
+
approve_mailbox_order_proposal: {
|
|
41344
|
+
Args: {
|
|
41345
|
+
p_custom_fields: import("../integrations/supabase/types.js").Json;
|
|
41346
|
+
p_customer_id: string;
|
|
41347
|
+
p_delivery_date: string;
|
|
41348
|
+
p_field_values?: import("../integrations/supabase/types.js").Json;
|
|
41349
|
+
p_lines: import("../integrations/supabase/types.js").Json;
|
|
41350
|
+
p_notes: string;
|
|
41351
|
+
p_proposal_id: string;
|
|
41352
|
+
p_reviewed_by: string;
|
|
41353
|
+
};
|
|
41354
|
+
Returns: import("../integrations/supabase/types.js").Json;
|
|
41355
|
+
};
|
|
40621
41356
|
assign_cart_numbers: {
|
|
40622
41357
|
Args: {
|
|
40623
41358
|
p_carts: import("../integrations/supabase/types.js").Json;
|
|
@@ -41049,7 +41784,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
41049
41784
|
Returns: string;
|
|
41050
41785
|
} | {
|
|
41051
41786
|
Args: {
|
|
41052
|
-
_feature_id
|
|
41787
|
+
_feature_id: string;
|
|
41053
41788
|
_module_id: string;
|
|
41054
41789
|
_user_id: string;
|
|
41055
41790
|
};
|
|
@@ -41100,6 +41835,13 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
41100
41835
|
};
|
|
41101
41836
|
Returns: string;
|
|
41102
41837
|
};
|
|
41838
|
+
employee_day_hours: {
|
|
41839
|
+
Args: {
|
|
41840
|
+
_day: string;
|
|
41841
|
+
_employee_id: string;
|
|
41842
|
+
};
|
|
41843
|
+
Returns: number;
|
|
41844
|
+
};
|
|
41103
41845
|
enqueue_cart_replan_if_unlocked: {
|
|
41104
41846
|
Args: {
|
|
41105
41847
|
p_order_id: string;
|
|
@@ -41453,6 +42195,19 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
41453
42195
|
Args: never;
|
|
41454
42196
|
Returns: boolean;
|
|
41455
42197
|
};
|
|
42198
|
+
itk_offerte_naar_werkbon: {
|
|
42199
|
+
Args: {
|
|
42200
|
+
_offerte_id: string;
|
|
42201
|
+
};
|
|
42202
|
+
Returns: string;
|
|
42203
|
+
};
|
|
42204
|
+
itk_offerte_restant_mandaat: {
|
|
42205
|
+
Args: {
|
|
42206
|
+
_exclude_offerte_id?: string;
|
|
42207
|
+
_werkbon_id: string;
|
|
42208
|
+
};
|
|
42209
|
+
Returns: number;
|
|
42210
|
+
};
|
|
41456
42211
|
jwt_has_role: {
|
|
41457
42212
|
Args: {
|
|
41458
42213
|
_role: import("../integrations/supabase/types.js").Database["public"]["Enums"]["app_role"];
|
|
@@ -41463,9 +42218,19 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
41463
42218
|
Args: never;
|
|
41464
42219
|
Returns: {
|
|
41465
42220
|
avatar_url: string;
|
|
42221
|
+
color: string;
|
|
41466
42222
|
display_name: string;
|
|
41467
42223
|
email: string;
|
|
42224
|
+
hours_fri: number;
|
|
42225
|
+
hours_mon: number;
|
|
42226
|
+
hours_thu: number;
|
|
42227
|
+
hours_tue: number;
|
|
42228
|
+
hours_wed: number;
|
|
41468
42229
|
id: string;
|
|
42230
|
+
is_active: boolean;
|
|
42231
|
+
leave_balance_hours: number;
|
|
42232
|
+
persnr: string;
|
|
42233
|
+
phone: string;
|
|
41469
42234
|
roles: string[];
|
|
41470
42235
|
}[];
|
|
41471
42236
|
};
|
|
@@ -41792,17 +42557,6 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
41792
42557
|
Returns: string;
|
|
41793
42558
|
};
|
|
41794
42559
|
logistics_emit_event: {
|
|
41795
|
-
Args: {
|
|
41796
|
-
p_event_type: string;
|
|
41797
|
-
p_idempotency_key?: string;
|
|
41798
|
-
p_order_ref: string;
|
|
41799
|
-
p_payload?: import("../integrations/supabase/types.js").Json;
|
|
41800
|
-
p_shadow?: boolean;
|
|
41801
|
-
p_source_module: string;
|
|
41802
|
-
p_strategy_id?: string;
|
|
41803
|
-
};
|
|
41804
|
-
Returns: import("../integrations/supabase/types.js").Json;
|
|
41805
|
-
} | {
|
|
41806
42560
|
Args: {
|
|
41807
42561
|
p_event_type: string;
|
|
41808
42562
|
p_idempotency_key?: string;
|
|
@@ -43182,6 +43936,12 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
43182
43936
|
};
|
|
43183
43937
|
Returns: undefined;
|
|
43184
43938
|
};
|
|
43939
|
+
sync_sick_time_off: {
|
|
43940
|
+
Args: {
|
|
43941
|
+
_period_id: string;
|
|
43942
|
+
};
|
|
43943
|
+
Returns: number;
|
|
43944
|
+
};
|
|
43185
43945
|
trade_item_stock_duplicates: {
|
|
43186
43946
|
Args: never;
|
|
43187
43947
|
Returns: {
|
|
@@ -43259,7 +44019,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
|
|
|
43259
44019
|
Enums: {
|
|
43260
44020
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
43261
44021
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
43262
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
44022
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
43263
44023
|
doc_orientation: "portrait" | "landscape";
|
|
43264
44024
|
exact_env: "staging" | "live";
|
|
43265
44025
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -51066,6 +51826,249 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
51066
51826
|
};
|
|
51067
51827
|
Relationships: [];
|
|
51068
51828
|
};
|
|
51829
|
+
itk_offerte_events: {
|
|
51830
|
+
Row: {
|
|
51831
|
+
created_at: string;
|
|
51832
|
+
event_type: string;
|
|
51833
|
+
id: string;
|
|
51834
|
+
metadata: import("../integrations/supabase/types.js").Json;
|
|
51835
|
+
offerte_id: string;
|
|
51836
|
+
omschrijving: string | null;
|
|
51837
|
+
user_id: string | null;
|
|
51838
|
+
};
|
|
51839
|
+
Insert: {
|
|
51840
|
+
created_at?: string;
|
|
51841
|
+
event_type: string;
|
|
51842
|
+
id?: string;
|
|
51843
|
+
metadata?: import("../integrations/supabase/types.js").Json;
|
|
51844
|
+
offerte_id: string;
|
|
51845
|
+
omschrijving?: string | null;
|
|
51846
|
+
user_id?: string | null;
|
|
51847
|
+
};
|
|
51848
|
+
Update: {
|
|
51849
|
+
created_at?: string;
|
|
51850
|
+
event_type?: string;
|
|
51851
|
+
id?: string;
|
|
51852
|
+
metadata?: import("../integrations/supabase/types.js").Json;
|
|
51853
|
+
offerte_id?: string;
|
|
51854
|
+
omschrijving?: string | null;
|
|
51855
|
+
user_id?: string | null;
|
|
51856
|
+
};
|
|
51857
|
+
Relationships: [{
|
|
51858
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
51859
|
+
columns: ["offerte_id"];
|
|
51860
|
+
isOneToOne: false;
|
|
51861
|
+
referencedRelation: "itk_offertes";
|
|
51862
|
+
referencedColumns: ["id"];
|
|
51863
|
+
}];
|
|
51864
|
+
};
|
|
51865
|
+
itk_offerte_regels: {
|
|
51866
|
+
Row: {
|
|
51867
|
+
created_at: string;
|
|
51868
|
+
id: string;
|
|
51869
|
+
line_total_cents: number;
|
|
51870
|
+
offerte_id: string;
|
|
51871
|
+
omschrijving: string;
|
|
51872
|
+
package_id: string | null;
|
|
51873
|
+
quantity: number;
|
|
51874
|
+
sort_order: number;
|
|
51875
|
+
source: string;
|
|
51876
|
+
unit_price_cents: number;
|
|
51877
|
+
updated_at: string;
|
|
51878
|
+
};
|
|
51879
|
+
Insert: {
|
|
51880
|
+
created_at?: string;
|
|
51881
|
+
id?: string;
|
|
51882
|
+
line_total_cents?: number;
|
|
51883
|
+
offerte_id: string;
|
|
51884
|
+
omschrijving?: string;
|
|
51885
|
+
package_id?: string | null;
|
|
51886
|
+
quantity?: number;
|
|
51887
|
+
sort_order?: number;
|
|
51888
|
+
source?: string;
|
|
51889
|
+
unit_price_cents?: number;
|
|
51890
|
+
updated_at?: string;
|
|
51891
|
+
};
|
|
51892
|
+
Update: {
|
|
51893
|
+
created_at?: string;
|
|
51894
|
+
id?: string;
|
|
51895
|
+
line_total_cents?: number;
|
|
51896
|
+
offerte_id?: string;
|
|
51897
|
+
omschrijving?: string;
|
|
51898
|
+
package_id?: string | null;
|
|
51899
|
+
quantity?: number;
|
|
51900
|
+
sort_order?: number;
|
|
51901
|
+
source?: string;
|
|
51902
|
+
unit_price_cents?: number;
|
|
51903
|
+
updated_at?: string;
|
|
51904
|
+
};
|
|
51905
|
+
Relationships: [{
|
|
51906
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
51907
|
+
columns: ["offerte_id"];
|
|
51908
|
+
isOneToOne: false;
|
|
51909
|
+
referencedRelation: "itk_offertes";
|
|
51910
|
+
referencedColumns: ["id"];
|
|
51911
|
+
}, {
|
|
51912
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
51913
|
+
columns: ["package_id"];
|
|
51914
|
+
isOneToOne: false;
|
|
51915
|
+
referencedRelation: "werkbon_packages";
|
|
51916
|
+
referencedColumns: ["id"];
|
|
51917
|
+
}];
|
|
51918
|
+
};
|
|
51919
|
+
itk_offerte_settings: {
|
|
51920
|
+
Row: {
|
|
51921
|
+
auto_convert_binnen_mandaat: boolean;
|
|
51922
|
+
created_at: string;
|
|
51923
|
+
default_geldigheid_dagen: number;
|
|
51924
|
+
default_vat_rate: number;
|
|
51925
|
+
id: string;
|
|
51926
|
+
singleton: boolean;
|
|
51927
|
+
updated_at: string;
|
|
51928
|
+
};
|
|
51929
|
+
Insert: {
|
|
51930
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
51931
|
+
created_at?: string;
|
|
51932
|
+
default_geldigheid_dagen?: number;
|
|
51933
|
+
default_vat_rate?: number;
|
|
51934
|
+
id?: string;
|
|
51935
|
+
singleton?: boolean;
|
|
51936
|
+
updated_at?: string;
|
|
51937
|
+
};
|
|
51938
|
+
Update: {
|
|
51939
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
51940
|
+
created_at?: string;
|
|
51941
|
+
default_geldigheid_dagen?: number;
|
|
51942
|
+
default_vat_rate?: number;
|
|
51943
|
+
id?: string;
|
|
51944
|
+
singleton?: boolean;
|
|
51945
|
+
updated_at?: string;
|
|
51946
|
+
};
|
|
51947
|
+
Relationships: [];
|
|
51948
|
+
};
|
|
51949
|
+
itk_offertes: {
|
|
51950
|
+
Row: {
|
|
51951
|
+
ai_generated: boolean;
|
|
51952
|
+
approved_at: string | null;
|
|
51953
|
+
binnen_mandaat: boolean;
|
|
51954
|
+
contact_id: string | null;
|
|
51955
|
+
converted_at: string | null;
|
|
51956
|
+
created_at: string;
|
|
51957
|
+
created_by: string | null;
|
|
51958
|
+
customer_id: string | null;
|
|
51959
|
+
follow_up_werkbon_id: string | null;
|
|
51960
|
+
id: string;
|
|
51961
|
+
jaar: number;
|
|
51962
|
+
mandaat_restant_cents: number;
|
|
51963
|
+
notities: string | null;
|
|
51964
|
+
offerte_number: string | null;
|
|
51965
|
+
omschrijving: string;
|
|
51966
|
+
rejected_at: string | null;
|
|
51967
|
+
sent_at: string | null;
|
|
51968
|
+
status: string;
|
|
51969
|
+
subtotal_cents: number;
|
|
51970
|
+
total_cents: number;
|
|
51971
|
+
updated_at: string;
|
|
51972
|
+
valid_until: string | null;
|
|
51973
|
+
vat_cents: number;
|
|
51974
|
+
vat_rate: number;
|
|
51975
|
+
viewed_at: string | null;
|
|
51976
|
+
volgnummer: number | null;
|
|
51977
|
+
werkbon_id: string | null;
|
|
51978
|
+
work_location_id: string | null;
|
|
51979
|
+
};
|
|
51980
|
+
Insert: {
|
|
51981
|
+
ai_generated?: boolean;
|
|
51982
|
+
approved_at?: string | null;
|
|
51983
|
+
binnen_mandaat?: boolean;
|
|
51984
|
+
contact_id?: string | null;
|
|
51985
|
+
converted_at?: string | null;
|
|
51986
|
+
created_at?: string;
|
|
51987
|
+
created_by?: string | null;
|
|
51988
|
+
customer_id?: string | null;
|
|
51989
|
+
follow_up_werkbon_id?: string | null;
|
|
51990
|
+
id?: string;
|
|
51991
|
+
jaar?: number;
|
|
51992
|
+
mandaat_restant_cents?: number;
|
|
51993
|
+
notities?: string | null;
|
|
51994
|
+
offerte_number?: string | null;
|
|
51995
|
+
omschrijving?: string;
|
|
51996
|
+
rejected_at?: string | null;
|
|
51997
|
+
sent_at?: string | null;
|
|
51998
|
+
status?: string;
|
|
51999
|
+
subtotal_cents?: number;
|
|
52000
|
+
total_cents?: number;
|
|
52001
|
+
updated_at?: string;
|
|
52002
|
+
valid_until?: string | null;
|
|
52003
|
+
vat_cents?: number;
|
|
52004
|
+
vat_rate?: number;
|
|
52005
|
+
viewed_at?: string | null;
|
|
52006
|
+
volgnummer?: number | null;
|
|
52007
|
+
werkbon_id?: string | null;
|
|
52008
|
+
work_location_id?: string | null;
|
|
52009
|
+
};
|
|
52010
|
+
Update: {
|
|
52011
|
+
ai_generated?: boolean;
|
|
52012
|
+
approved_at?: string | null;
|
|
52013
|
+
binnen_mandaat?: boolean;
|
|
52014
|
+
contact_id?: string | null;
|
|
52015
|
+
converted_at?: string | null;
|
|
52016
|
+
created_at?: string;
|
|
52017
|
+
created_by?: string | null;
|
|
52018
|
+
customer_id?: string | null;
|
|
52019
|
+
follow_up_werkbon_id?: string | null;
|
|
52020
|
+
id?: string;
|
|
52021
|
+
jaar?: number;
|
|
52022
|
+
mandaat_restant_cents?: number;
|
|
52023
|
+
notities?: string | null;
|
|
52024
|
+
offerte_number?: string | null;
|
|
52025
|
+
omschrijving?: string;
|
|
52026
|
+
rejected_at?: string | null;
|
|
52027
|
+
sent_at?: string | null;
|
|
52028
|
+
status?: string;
|
|
52029
|
+
subtotal_cents?: number;
|
|
52030
|
+
total_cents?: number;
|
|
52031
|
+
updated_at?: string;
|
|
52032
|
+
valid_until?: string | null;
|
|
52033
|
+
vat_cents?: number;
|
|
52034
|
+
vat_rate?: number;
|
|
52035
|
+
viewed_at?: string | null;
|
|
52036
|
+
volgnummer?: number | null;
|
|
52037
|
+
werkbon_id?: string | null;
|
|
52038
|
+
work_location_id?: string | null;
|
|
52039
|
+
};
|
|
52040
|
+
Relationships: [{
|
|
52041
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
52042
|
+
columns: ["contact_id"];
|
|
52043
|
+
isOneToOne: false;
|
|
52044
|
+
referencedRelation: "itk_contact_persons";
|
|
52045
|
+
referencedColumns: ["id"];
|
|
52046
|
+
}, {
|
|
52047
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
52048
|
+
columns: ["customer_id"];
|
|
52049
|
+
isOneToOne: false;
|
|
52050
|
+
referencedRelation: "itk_customers";
|
|
52051
|
+
referencedColumns: ["id"];
|
|
52052
|
+
}, {
|
|
52053
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
52054
|
+
columns: ["follow_up_werkbon_id"];
|
|
52055
|
+
isOneToOne: false;
|
|
52056
|
+
referencedRelation: "werkbonnen";
|
|
52057
|
+
referencedColumns: ["id"];
|
|
52058
|
+
}, {
|
|
52059
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
52060
|
+
columns: ["werkbon_id"];
|
|
52061
|
+
isOneToOne: false;
|
|
52062
|
+
referencedRelation: "werkbonnen";
|
|
52063
|
+
referencedColumns: ["id"];
|
|
52064
|
+
}, {
|
|
52065
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
52066
|
+
columns: ["work_location_id"];
|
|
52067
|
+
isOneToOne: false;
|
|
52068
|
+
referencedRelation: "itk_work_locations";
|
|
52069
|
+
referencedColumns: ["id"];
|
|
52070
|
+
}];
|
|
52071
|
+
};
|
|
51069
52072
|
itk_work_locations: {
|
|
51070
52073
|
Row: {
|
|
51071
52074
|
city: string | null;
|
|
@@ -53439,6 +54442,63 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
53439
54442
|
referencedColumns: ["id"];
|
|
53440
54443
|
}];
|
|
53441
54444
|
};
|
|
54445
|
+
medewerker_details: {
|
|
54446
|
+
Row: {
|
|
54447
|
+
color: string | null;
|
|
54448
|
+
created_at: string;
|
|
54449
|
+
hours_fri: number | null;
|
|
54450
|
+
hours_mon: number | null;
|
|
54451
|
+
hours_thu: number | null;
|
|
54452
|
+
hours_tue: number | null;
|
|
54453
|
+
hours_wed: number | null;
|
|
54454
|
+
id: string;
|
|
54455
|
+
is_active: boolean;
|
|
54456
|
+
leave_balance_hours: number;
|
|
54457
|
+
persnr: string | null;
|
|
54458
|
+
phone: string | null;
|
|
54459
|
+
profile_id: string;
|
|
54460
|
+
updated_at: string;
|
|
54461
|
+
};
|
|
54462
|
+
Insert: {
|
|
54463
|
+
color?: string | null;
|
|
54464
|
+
created_at?: string;
|
|
54465
|
+
hours_fri?: number | null;
|
|
54466
|
+
hours_mon?: number | null;
|
|
54467
|
+
hours_thu?: number | null;
|
|
54468
|
+
hours_tue?: number | null;
|
|
54469
|
+
hours_wed?: number | null;
|
|
54470
|
+
id?: string;
|
|
54471
|
+
is_active?: boolean;
|
|
54472
|
+
leave_balance_hours?: number;
|
|
54473
|
+
persnr?: string | null;
|
|
54474
|
+
phone?: string | null;
|
|
54475
|
+
profile_id: string;
|
|
54476
|
+
updated_at?: string;
|
|
54477
|
+
};
|
|
54478
|
+
Update: {
|
|
54479
|
+
color?: string | null;
|
|
54480
|
+
created_at?: string;
|
|
54481
|
+
hours_fri?: number | null;
|
|
54482
|
+
hours_mon?: number | null;
|
|
54483
|
+
hours_thu?: number | null;
|
|
54484
|
+
hours_tue?: number | null;
|
|
54485
|
+
hours_wed?: number | null;
|
|
54486
|
+
id?: string;
|
|
54487
|
+
is_active?: boolean;
|
|
54488
|
+
leave_balance_hours?: number;
|
|
54489
|
+
persnr?: string | null;
|
|
54490
|
+
phone?: string | null;
|
|
54491
|
+
profile_id?: string;
|
|
54492
|
+
updated_at?: string;
|
|
54493
|
+
};
|
|
54494
|
+
Relationships: [{
|
|
54495
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
54496
|
+
columns: ["profile_id"];
|
|
54497
|
+
isOneToOne: true;
|
|
54498
|
+
referencedRelation: "profiles";
|
|
54499
|
+
referencedColumns: ["id"];
|
|
54500
|
+
}];
|
|
54501
|
+
};
|
|
53442
54502
|
module_features: {
|
|
53443
54503
|
Row: {
|
|
53444
54504
|
created_at: string;
|
|
@@ -53499,6 +54559,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
53499
54559
|
module_registry: {
|
|
53500
54560
|
Row: {
|
|
53501
54561
|
created_at: string;
|
|
54562
|
+
enforce: boolean;
|
|
53502
54563
|
is_active: boolean;
|
|
53503
54564
|
last_seen_at: string;
|
|
53504
54565
|
module_id: string;
|
|
@@ -53508,6 +54569,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
53508
54569
|
};
|
|
53509
54570
|
Insert: {
|
|
53510
54571
|
created_at?: string;
|
|
54572
|
+
enforce?: boolean;
|
|
53511
54573
|
is_active?: boolean;
|
|
53512
54574
|
last_seen_at?: string;
|
|
53513
54575
|
module_id: string;
|
|
@@ -53517,6 +54579,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
53517
54579
|
};
|
|
53518
54580
|
Update: {
|
|
53519
54581
|
created_at?: string;
|
|
54582
|
+
enforce?: boolean;
|
|
53520
54583
|
is_active?: boolean;
|
|
53521
54584
|
last_seen_at?: string;
|
|
53522
54585
|
module_id?: string;
|
|
@@ -58054,6 +59117,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
58054
59117
|
type: string;
|
|
58055
59118
|
updated_at: string;
|
|
58056
59119
|
vereist_medewerker: boolean;
|
|
59120
|
+
werkplek: string | null;
|
|
58057
59121
|
};
|
|
58058
59122
|
Insert: {
|
|
58059
59123
|
actief?: boolean;
|
|
@@ -58067,6 +59131,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
58067
59131
|
type?: string;
|
|
58068
59132
|
updated_at?: string;
|
|
58069
59133
|
vereist_medewerker?: boolean;
|
|
59134
|
+
werkplek?: string | null;
|
|
58070
59135
|
};
|
|
58071
59136
|
Update: {
|
|
58072
59137
|
actief?: boolean;
|
|
@@ -58080,9 +59145,46 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
58080
59145
|
type?: string;
|
|
58081
59146
|
updated_at?: string;
|
|
58082
59147
|
vereist_medewerker?: boolean;
|
|
59148
|
+
werkplek?: string | null;
|
|
58083
59149
|
};
|
|
58084
59150
|
Relationships: [];
|
|
58085
59151
|
};
|
|
59152
|
+
sick_periods: {
|
|
59153
|
+
Row: {
|
|
59154
|
+
created_at: string;
|
|
59155
|
+
employee_id: string;
|
|
59156
|
+
end_date: string | null;
|
|
59157
|
+
id: string;
|
|
59158
|
+
notes: string | null;
|
|
59159
|
+
start_date: string;
|
|
59160
|
+
updated_at: string;
|
|
59161
|
+
};
|
|
59162
|
+
Insert: {
|
|
59163
|
+
created_at?: string;
|
|
59164
|
+
employee_id: string;
|
|
59165
|
+
end_date?: string | null;
|
|
59166
|
+
id?: string;
|
|
59167
|
+
notes?: string | null;
|
|
59168
|
+
start_date: string;
|
|
59169
|
+
updated_at?: string;
|
|
59170
|
+
};
|
|
59171
|
+
Update: {
|
|
59172
|
+
created_at?: string;
|
|
59173
|
+
employee_id?: string;
|
|
59174
|
+
end_date?: string | null;
|
|
59175
|
+
id?: string;
|
|
59176
|
+
notes?: string | null;
|
|
59177
|
+
start_date?: string;
|
|
59178
|
+
updated_at?: string;
|
|
59179
|
+
};
|
|
59180
|
+
Relationships: [{
|
|
59181
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
59182
|
+
columns: ["employee_id"];
|
|
59183
|
+
isOneToOne: false;
|
|
59184
|
+
referencedRelation: "profiles";
|
|
59185
|
+
referencedColumns: ["id"];
|
|
59186
|
+
}];
|
|
59187
|
+
};
|
|
58086
59188
|
sidebar_config: {
|
|
58087
59189
|
Row: {
|
|
58088
59190
|
id: string;
|
|
@@ -62272,6 +63374,19 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
62272
63374
|
};
|
|
62273
63375
|
Returns: undefined;
|
|
62274
63376
|
};
|
|
63377
|
+
approve_mailbox_order_proposal: {
|
|
63378
|
+
Args: {
|
|
63379
|
+
p_custom_fields: import("../integrations/supabase/types.js").Json;
|
|
63380
|
+
p_customer_id: string;
|
|
63381
|
+
p_delivery_date: string;
|
|
63382
|
+
p_field_values?: import("../integrations/supabase/types.js").Json;
|
|
63383
|
+
p_lines: import("../integrations/supabase/types.js").Json;
|
|
63384
|
+
p_notes: string;
|
|
63385
|
+
p_proposal_id: string;
|
|
63386
|
+
p_reviewed_by: string;
|
|
63387
|
+
};
|
|
63388
|
+
Returns: import("../integrations/supabase/types.js").Json;
|
|
63389
|
+
};
|
|
62275
63390
|
assign_cart_numbers: {
|
|
62276
63391
|
Args: {
|
|
62277
63392
|
p_carts: import("../integrations/supabase/types.js").Json;
|
|
@@ -62703,7 +63818,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
62703
63818
|
Returns: string;
|
|
62704
63819
|
} | {
|
|
62705
63820
|
Args: {
|
|
62706
|
-
_feature_id
|
|
63821
|
+
_feature_id: string;
|
|
62707
63822
|
_module_id: string;
|
|
62708
63823
|
_user_id: string;
|
|
62709
63824
|
};
|
|
@@ -62754,6 +63869,13 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
62754
63869
|
};
|
|
62755
63870
|
Returns: string;
|
|
62756
63871
|
};
|
|
63872
|
+
employee_day_hours: {
|
|
63873
|
+
Args: {
|
|
63874
|
+
_day: string;
|
|
63875
|
+
_employee_id: string;
|
|
63876
|
+
};
|
|
63877
|
+
Returns: number;
|
|
63878
|
+
};
|
|
62757
63879
|
enqueue_cart_replan_if_unlocked: {
|
|
62758
63880
|
Args: {
|
|
62759
63881
|
p_order_id: string;
|
|
@@ -63107,6 +64229,19 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
63107
64229
|
Args: never;
|
|
63108
64230
|
Returns: boolean;
|
|
63109
64231
|
};
|
|
64232
|
+
itk_offerte_naar_werkbon: {
|
|
64233
|
+
Args: {
|
|
64234
|
+
_offerte_id: string;
|
|
64235
|
+
};
|
|
64236
|
+
Returns: string;
|
|
64237
|
+
};
|
|
64238
|
+
itk_offerte_restant_mandaat: {
|
|
64239
|
+
Args: {
|
|
64240
|
+
_exclude_offerte_id?: string;
|
|
64241
|
+
_werkbon_id: string;
|
|
64242
|
+
};
|
|
64243
|
+
Returns: number;
|
|
64244
|
+
};
|
|
63110
64245
|
jwt_has_role: {
|
|
63111
64246
|
Args: {
|
|
63112
64247
|
_role: import("../integrations/supabase/types.js").Database["public"]["Enums"]["app_role"];
|
|
@@ -63117,9 +64252,19 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
63117
64252
|
Args: never;
|
|
63118
64253
|
Returns: {
|
|
63119
64254
|
avatar_url: string;
|
|
64255
|
+
color: string;
|
|
63120
64256
|
display_name: string;
|
|
63121
64257
|
email: string;
|
|
64258
|
+
hours_fri: number;
|
|
64259
|
+
hours_mon: number;
|
|
64260
|
+
hours_thu: number;
|
|
64261
|
+
hours_tue: number;
|
|
64262
|
+
hours_wed: number;
|
|
63122
64263
|
id: string;
|
|
64264
|
+
is_active: boolean;
|
|
64265
|
+
leave_balance_hours: number;
|
|
64266
|
+
persnr: string;
|
|
64267
|
+
phone: string;
|
|
63123
64268
|
roles: string[];
|
|
63124
64269
|
}[];
|
|
63125
64270
|
};
|
|
@@ -63446,17 +64591,6 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
63446
64591
|
Returns: string;
|
|
63447
64592
|
};
|
|
63448
64593
|
logistics_emit_event: {
|
|
63449
|
-
Args: {
|
|
63450
|
-
p_event_type: string;
|
|
63451
|
-
p_idempotency_key?: string;
|
|
63452
|
-
p_order_ref: string;
|
|
63453
|
-
p_payload?: import("../integrations/supabase/types.js").Json;
|
|
63454
|
-
p_shadow?: boolean;
|
|
63455
|
-
p_source_module: string;
|
|
63456
|
-
p_strategy_id?: string;
|
|
63457
|
-
};
|
|
63458
|
-
Returns: import("../integrations/supabase/types.js").Json;
|
|
63459
|
-
} | {
|
|
63460
64594
|
Args: {
|
|
63461
64595
|
p_event_type: string;
|
|
63462
64596
|
p_idempotency_key?: string;
|
|
@@ -64836,6 +65970,12 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
64836
65970
|
};
|
|
64837
65971
|
Returns: undefined;
|
|
64838
65972
|
};
|
|
65973
|
+
sync_sick_time_off: {
|
|
65974
|
+
Args: {
|
|
65975
|
+
_period_id: string;
|
|
65976
|
+
};
|
|
65977
|
+
Returns: number;
|
|
65978
|
+
};
|
|
64839
65979
|
trade_item_stock_duplicates: {
|
|
64840
65980
|
Args: never;
|
|
64841
65981
|
Returns: {
|
|
@@ -64913,7 +66053,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
|
|
|
64913
66053
|
Enums: {
|
|
64914
66054
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
64915
66055
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
64916
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
66056
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
64917
66057
|
doc_orientation: "portrait" | "landscape";
|
|
64918
66058
|
exact_env: "staging" | "live";
|
|
64919
66059
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -72714,6 +73854,249 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
72714
73854
|
};
|
|
72715
73855
|
Relationships: [];
|
|
72716
73856
|
};
|
|
73857
|
+
itk_offerte_events: {
|
|
73858
|
+
Row: {
|
|
73859
|
+
created_at: string;
|
|
73860
|
+
event_type: string;
|
|
73861
|
+
id: string;
|
|
73862
|
+
metadata: import("../integrations/supabase/types.js").Json;
|
|
73863
|
+
offerte_id: string;
|
|
73864
|
+
omschrijving: string | null;
|
|
73865
|
+
user_id: string | null;
|
|
73866
|
+
};
|
|
73867
|
+
Insert: {
|
|
73868
|
+
created_at?: string;
|
|
73869
|
+
event_type: string;
|
|
73870
|
+
id?: string;
|
|
73871
|
+
metadata?: import("../integrations/supabase/types.js").Json;
|
|
73872
|
+
offerte_id: string;
|
|
73873
|
+
omschrijving?: string | null;
|
|
73874
|
+
user_id?: string | null;
|
|
73875
|
+
};
|
|
73876
|
+
Update: {
|
|
73877
|
+
created_at?: string;
|
|
73878
|
+
event_type?: string;
|
|
73879
|
+
id?: string;
|
|
73880
|
+
metadata?: import("../integrations/supabase/types.js").Json;
|
|
73881
|
+
offerte_id?: string;
|
|
73882
|
+
omschrijving?: string | null;
|
|
73883
|
+
user_id?: string | null;
|
|
73884
|
+
};
|
|
73885
|
+
Relationships: [{
|
|
73886
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
73887
|
+
columns: ["offerte_id"];
|
|
73888
|
+
isOneToOne: false;
|
|
73889
|
+
referencedRelation: "itk_offertes";
|
|
73890
|
+
referencedColumns: ["id"];
|
|
73891
|
+
}];
|
|
73892
|
+
};
|
|
73893
|
+
itk_offerte_regels: {
|
|
73894
|
+
Row: {
|
|
73895
|
+
created_at: string;
|
|
73896
|
+
id: string;
|
|
73897
|
+
line_total_cents: number;
|
|
73898
|
+
offerte_id: string;
|
|
73899
|
+
omschrijving: string;
|
|
73900
|
+
package_id: string | null;
|
|
73901
|
+
quantity: number;
|
|
73902
|
+
sort_order: number;
|
|
73903
|
+
source: string;
|
|
73904
|
+
unit_price_cents: number;
|
|
73905
|
+
updated_at: string;
|
|
73906
|
+
};
|
|
73907
|
+
Insert: {
|
|
73908
|
+
created_at?: string;
|
|
73909
|
+
id?: string;
|
|
73910
|
+
line_total_cents?: number;
|
|
73911
|
+
offerte_id: string;
|
|
73912
|
+
omschrijving?: string;
|
|
73913
|
+
package_id?: string | null;
|
|
73914
|
+
quantity?: number;
|
|
73915
|
+
sort_order?: number;
|
|
73916
|
+
source?: string;
|
|
73917
|
+
unit_price_cents?: number;
|
|
73918
|
+
updated_at?: string;
|
|
73919
|
+
};
|
|
73920
|
+
Update: {
|
|
73921
|
+
created_at?: string;
|
|
73922
|
+
id?: string;
|
|
73923
|
+
line_total_cents?: number;
|
|
73924
|
+
offerte_id?: string;
|
|
73925
|
+
omschrijving?: string;
|
|
73926
|
+
package_id?: string | null;
|
|
73927
|
+
quantity?: number;
|
|
73928
|
+
sort_order?: number;
|
|
73929
|
+
source?: string;
|
|
73930
|
+
unit_price_cents?: number;
|
|
73931
|
+
updated_at?: string;
|
|
73932
|
+
};
|
|
73933
|
+
Relationships: [{
|
|
73934
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
73935
|
+
columns: ["offerte_id"];
|
|
73936
|
+
isOneToOne: false;
|
|
73937
|
+
referencedRelation: "itk_offertes";
|
|
73938
|
+
referencedColumns: ["id"];
|
|
73939
|
+
}, {
|
|
73940
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
73941
|
+
columns: ["package_id"];
|
|
73942
|
+
isOneToOne: false;
|
|
73943
|
+
referencedRelation: "werkbon_packages";
|
|
73944
|
+
referencedColumns: ["id"];
|
|
73945
|
+
}];
|
|
73946
|
+
};
|
|
73947
|
+
itk_offerte_settings: {
|
|
73948
|
+
Row: {
|
|
73949
|
+
auto_convert_binnen_mandaat: boolean;
|
|
73950
|
+
created_at: string;
|
|
73951
|
+
default_geldigheid_dagen: number;
|
|
73952
|
+
default_vat_rate: number;
|
|
73953
|
+
id: string;
|
|
73954
|
+
singleton: boolean;
|
|
73955
|
+
updated_at: string;
|
|
73956
|
+
};
|
|
73957
|
+
Insert: {
|
|
73958
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
73959
|
+
created_at?: string;
|
|
73960
|
+
default_geldigheid_dagen?: number;
|
|
73961
|
+
default_vat_rate?: number;
|
|
73962
|
+
id?: string;
|
|
73963
|
+
singleton?: boolean;
|
|
73964
|
+
updated_at?: string;
|
|
73965
|
+
};
|
|
73966
|
+
Update: {
|
|
73967
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
73968
|
+
created_at?: string;
|
|
73969
|
+
default_geldigheid_dagen?: number;
|
|
73970
|
+
default_vat_rate?: number;
|
|
73971
|
+
id?: string;
|
|
73972
|
+
singleton?: boolean;
|
|
73973
|
+
updated_at?: string;
|
|
73974
|
+
};
|
|
73975
|
+
Relationships: [];
|
|
73976
|
+
};
|
|
73977
|
+
itk_offertes: {
|
|
73978
|
+
Row: {
|
|
73979
|
+
ai_generated: boolean;
|
|
73980
|
+
approved_at: string | null;
|
|
73981
|
+
binnen_mandaat: boolean;
|
|
73982
|
+
contact_id: string | null;
|
|
73983
|
+
converted_at: string | null;
|
|
73984
|
+
created_at: string;
|
|
73985
|
+
created_by: string | null;
|
|
73986
|
+
customer_id: string | null;
|
|
73987
|
+
follow_up_werkbon_id: string | null;
|
|
73988
|
+
id: string;
|
|
73989
|
+
jaar: number;
|
|
73990
|
+
mandaat_restant_cents: number;
|
|
73991
|
+
notities: string | null;
|
|
73992
|
+
offerte_number: string | null;
|
|
73993
|
+
omschrijving: string;
|
|
73994
|
+
rejected_at: string | null;
|
|
73995
|
+
sent_at: string | null;
|
|
73996
|
+
status: string;
|
|
73997
|
+
subtotal_cents: number;
|
|
73998
|
+
total_cents: number;
|
|
73999
|
+
updated_at: string;
|
|
74000
|
+
valid_until: string | null;
|
|
74001
|
+
vat_cents: number;
|
|
74002
|
+
vat_rate: number;
|
|
74003
|
+
viewed_at: string | null;
|
|
74004
|
+
volgnummer: number | null;
|
|
74005
|
+
werkbon_id: string | null;
|
|
74006
|
+
work_location_id: string | null;
|
|
74007
|
+
};
|
|
74008
|
+
Insert: {
|
|
74009
|
+
ai_generated?: boolean;
|
|
74010
|
+
approved_at?: string | null;
|
|
74011
|
+
binnen_mandaat?: boolean;
|
|
74012
|
+
contact_id?: string | null;
|
|
74013
|
+
converted_at?: string | null;
|
|
74014
|
+
created_at?: string;
|
|
74015
|
+
created_by?: string | null;
|
|
74016
|
+
customer_id?: string | null;
|
|
74017
|
+
follow_up_werkbon_id?: string | null;
|
|
74018
|
+
id?: string;
|
|
74019
|
+
jaar?: number;
|
|
74020
|
+
mandaat_restant_cents?: number;
|
|
74021
|
+
notities?: string | null;
|
|
74022
|
+
offerte_number?: string | null;
|
|
74023
|
+
omschrijving?: string;
|
|
74024
|
+
rejected_at?: string | null;
|
|
74025
|
+
sent_at?: string | null;
|
|
74026
|
+
status?: string;
|
|
74027
|
+
subtotal_cents?: number;
|
|
74028
|
+
total_cents?: number;
|
|
74029
|
+
updated_at?: string;
|
|
74030
|
+
valid_until?: string | null;
|
|
74031
|
+
vat_cents?: number;
|
|
74032
|
+
vat_rate?: number;
|
|
74033
|
+
viewed_at?: string | null;
|
|
74034
|
+
volgnummer?: number | null;
|
|
74035
|
+
werkbon_id?: string | null;
|
|
74036
|
+
work_location_id?: string | null;
|
|
74037
|
+
};
|
|
74038
|
+
Update: {
|
|
74039
|
+
ai_generated?: boolean;
|
|
74040
|
+
approved_at?: string | null;
|
|
74041
|
+
binnen_mandaat?: boolean;
|
|
74042
|
+
contact_id?: string | null;
|
|
74043
|
+
converted_at?: string | null;
|
|
74044
|
+
created_at?: string;
|
|
74045
|
+
created_by?: string | null;
|
|
74046
|
+
customer_id?: string | null;
|
|
74047
|
+
follow_up_werkbon_id?: string | null;
|
|
74048
|
+
id?: string;
|
|
74049
|
+
jaar?: number;
|
|
74050
|
+
mandaat_restant_cents?: number;
|
|
74051
|
+
notities?: string | null;
|
|
74052
|
+
offerte_number?: string | null;
|
|
74053
|
+
omschrijving?: string;
|
|
74054
|
+
rejected_at?: string | null;
|
|
74055
|
+
sent_at?: string | null;
|
|
74056
|
+
status?: string;
|
|
74057
|
+
subtotal_cents?: number;
|
|
74058
|
+
total_cents?: number;
|
|
74059
|
+
updated_at?: string;
|
|
74060
|
+
valid_until?: string | null;
|
|
74061
|
+
vat_cents?: number;
|
|
74062
|
+
vat_rate?: number;
|
|
74063
|
+
viewed_at?: string | null;
|
|
74064
|
+
volgnummer?: number | null;
|
|
74065
|
+
werkbon_id?: string | null;
|
|
74066
|
+
work_location_id?: string | null;
|
|
74067
|
+
};
|
|
74068
|
+
Relationships: [{
|
|
74069
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
74070
|
+
columns: ["contact_id"];
|
|
74071
|
+
isOneToOne: false;
|
|
74072
|
+
referencedRelation: "itk_contact_persons";
|
|
74073
|
+
referencedColumns: ["id"];
|
|
74074
|
+
}, {
|
|
74075
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
74076
|
+
columns: ["customer_id"];
|
|
74077
|
+
isOneToOne: false;
|
|
74078
|
+
referencedRelation: "itk_customers";
|
|
74079
|
+
referencedColumns: ["id"];
|
|
74080
|
+
}, {
|
|
74081
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
74082
|
+
columns: ["follow_up_werkbon_id"];
|
|
74083
|
+
isOneToOne: false;
|
|
74084
|
+
referencedRelation: "werkbonnen";
|
|
74085
|
+
referencedColumns: ["id"];
|
|
74086
|
+
}, {
|
|
74087
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
74088
|
+
columns: ["werkbon_id"];
|
|
74089
|
+
isOneToOne: false;
|
|
74090
|
+
referencedRelation: "werkbonnen";
|
|
74091
|
+
referencedColumns: ["id"];
|
|
74092
|
+
}, {
|
|
74093
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
74094
|
+
columns: ["work_location_id"];
|
|
74095
|
+
isOneToOne: false;
|
|
74096
|
+
referencedRelation: "itk_work_locations";
|
|
74097
|
+
referencedColumns: ["id"];
|
|
74098
|
+
}];
|
|
74099
|
+
};
|
|
72717
74100
|
itk_work_locations: {
|
|
72718
74101
|
Row: {
|
|
72719
74102
|
city: string | null;
|
|
@@ -75087,6 +76470,63 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
75087
76470
|
referencedColumns: ["id"];
|
|
75088
76471
|
}];
|
|
75089
76472
|
};
|
|
76473
|
+
medewerker_details: {
|
|
76474
|
+
Row: {
|
|
76475
|
+
color: string | null;
|
|
76476
|
+
created_at: string;
|
|
76477
|
+
hours_fri: number | null;
|
|
76478
|
+
hours_mon: number | null;
|
|
76479
|
+
hours_thu: number | null;
|
|
76480
|
+
hours_tue: number | null;
|
|
76481
|
+
hours_wed: number | null;
|
|
76482
|
+
id: string;
|
|
76483
|
+
is_active: boolean;
|
|
76484
|
+
leave_balance_hours: number;
|
|
76485
|
+
persnr: string | null;
|
|
76486
|
+
phone: string | null;
|
|
76487
|
+
profile_id: string;
|
|
76488
|
+
updated_at: string;
|
|
76489
|
+
};
|
|
76490
|
+
Insert: {
|
|
76491
|
+
color?: string | null;
|
|
76492
|
+
created_at?: string;
|
|
76493
|
+
hours_fri?: number | null;
|
|
76494
|
+
hours_mon?: number | null;
|
|
76495
|
+
hours_thu?: number | null;
|
|
76496
|
+
hours_tue?: number | null;
|
|
76497
|
+
hours_wed?: number | null;
|
|
76498
|
+
id?: string;
|
|
76499
|
+
is_active?: boolean;
|
|
76500
|
+
leave_balance_hours?: number;
|
|
76501
|
+
persnr?: string | null;
|
|
76502
|
+
phone?: string | null;
|
|
76503
|
+
profile_id: string;
|
|
76504
|
+
updated_at?: string;
|
|
76505
|
+
};
|
|
76506
|
+
Update: {
|
|
76507
|
+
color?: string | null;
|
|
76508
|
+
created_at?: string;
|
|
76509
|
+
hours_fri?: number | null;
|
|
76510
|
+
hours_mon?: number | null;
|
|
76511
|
+
hours_thu?: number | null;
|
|
76512
|
+
hours_tue?: number | null;
|
|
76513
|
+
hours_wed?: number | null;
|
|
76514
|
+
id?: string;
|
|
76515
|
+
is_active?: boolean;
|
|
76516
|
+
leave_balance_hours?: number;
|
|
76517
|
+
persnr?: string | null;
|
|
76518
|
+
phone?: string | null;
|
|
76519
|
+
profile_id?: string;
|
|
76520
|
+
updated_at?: string;
|
|
76521
|
+
};
|
|
76522
|
+
Relationships: [{
|
|
76523
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
76524
|
+
columns: ["profile_id"];
|
|
76525
|
+
isOneToOne: true;
|
|
76526
|
+
referencedRelation: "profiles";
|
|
76527
|
+
referencedColumns: ["id"];
|
|
76528
|
+
}];
|
|
76529
|
+
};
|
|
75090
76530
|
module_features: {
|
|
75091
76531
|
Row: {
|
|
75092
76532
|
created_at: string;
|
|
@@ -75147,6 +76587,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
75147
76587
|
module_registry: {
|
|
75148
76588
|
Row: {
|
|
75149
76589
|
created_at: string;
|
|
76590
|
+
enforce: boolean;
|
|
75150
76591
|
is_active: boolean;
|
|
75151
76592
|
last_seen_at: string;
|
|
75152
76593
|
module_id: string;
|
|
@@ -75156,6 +76597,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
75156
76597
|
};
|
|
75157
76598
|
Insert: {
|
|
75158
76599
|
created_at?: string;
|
|
76600
|
+
enforce?: boolean;
|
|
75159
76601
|
is_active?: boolean;
|
|
75160
76602
|
last_seen_at?: string;
|
|
75161
76603
|
module_id: string;
|
|
@@ -75165,6 +76607,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
75165
76607
|
};
|
|
75166
76608
|
Update: {
|
|
75167
76609
|
created_at?: string;
|
|
76610
|
+
enforce?: boolean;
|
|
75168
76611
|
is_active?: boolean;
|
|
75169
76612
|
last_seen_at?: string;
|
|
75170
76613
|
module_id?: string;
|
|
@@ -79702,6 +81145,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
79702
81145
|
type: string;
|
|
79703
81146
|
updated_at: string;
|
|
79704
81147
|
vereist_medewerker: boolean;
|
|
81148
|
+
werkplek: string | null;
|
|
79705
81149
|
};
|
|
79706
81150
|
Insert: {
|
|
79707
81151
|
actief?: boolean;
|
|
@@ -79715,6 +81159,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
79715
81159
|
type?: string;
|
|
79716
81160
|
updated_at?: string;
|
|
79717
81161
|
vereist_medewerker?: boolean;
|
|
81162
|
+
werkplek?: string | null;
|
|
79718
81163
|
};
|
|
79719
81164
|
Update: {
|
|
79720
81165
|
actief?: boolean;
|
|
@@ -79728,9 +81173,46 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
79728
81173
|
type?: string;
|
|
79729
81174
|
updated_at?: string;
|
|
79730
81175
|
vereist_medewerker?: boolean;
|
|
81176
|
+
werkplek?: string | null;
|
|
79731
81177
|
};
|
|
79732
81178
|
Relationships: [];
|
|
79733
81179
|
};
|
|
81180
|
+
sick_periods: {
|
|
81181
|
+
Row: {
|
|
81182
|
+
created_at: string;
|
|
81183
|
+
employee_id: string;
|
|
81184
|
+
end_date: string | null;
|
|
81185
|
+
id: string;
|
|
81186
|
+
notes: string | null;
|
|
81187
|
+
start_date: string;
|
|
81188
|
+
updated_at: string;
|
|
81189
|
+
};
|
|
81190
|
+
Insert: {
|
|
81191
|
+
created_at?: string;
|
|
81192
|
+
employee_id: string;
|
|
81193
|
+
end_date?: string | null;
|
|
81194
|
+
id?: string;
|
|
81195
|
+
notes?: string | null;
|
|
81196
|
+
start_date: string;
|
|
81197
|
+
updated_at?: string;
|
|
81198
|
+
};
|
|
81199
|
+
Update: {
|
|
81200
|
+
created_at?: string;
|
|
81201
|
+
employee_id?: string;
|
|
81202
|
+
end_date?: string | null;
|
|
81203
|
+
id?: string;
|
|
81204
|
+
notes?: string | null;
|
|
81205
|
+
start_date?: string;
|
|
81206
|
+
updated_at?: string;
|
|
81207
|
+
};
|
|
81208
|
+
Relationships: [{
|
|
81209
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
81210
|
+
columns: ["employee_id"];
|
|
81211
|
+
isOneToOne: false;
|
|
81212
|
+
referencedRelation: "profiles";
|
|
81213
|
+
referencedColumns: ["id"];
|
|
81214
|
+
}];
|
|
81215
|
+
};
|
|
79734
81216
|
sidebar_config: {
|
|
79735
81217
|
Row: {
|
|
79736
81218
|
id: string;
|
|
@@ -83920,6 +85402,19 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
83920
85402
|
};
|
|
83921
85403
|
Returns: undefined;
|
|
83922
85404
|
};
|
|
85405
|
+
approve_mailbox_order_proposal: {
|
|
85406
|
+
Args: {
|
|
85407
|
+
p_custom_fields: import("../integrations/supabase/types.js").Json;
|
|
85408
|
+
p_customer_id: string;
|
|
85409
|
+
p_delivery_date: string;
|
|
85410
|
+
p_field_values?: import("../integrations/supabase/types.js").Json;
|
|
85411
|
+
p_lines: import("../integrations/supabase/types.js").Json;
|
|
85412
|
+
p_notes: string;
|
|
85413
|
+
p_proposal_id: string;
|
|
85414
|
+
p_reviewed_by: string;
|
|
85415
|
+
};
|
|
85416
|
+
Returns: import("../integrations/supabase/types.js").Json;
|
|
85417
|
+
};
|
|
83923
85418
|
assign_cart_numbers: {
|
|
83924
85419
|
Args: {
|
|
83925
85420
|
p_carts: import("../integrations/supabase/types.js").Json;
|
|
@@ -84351,7 +85846,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
84351
85846
|
Returns: string;
|
|
84352
85847
|
} | {
|
|
84353
85848
|
Args: {
|
|
84354
|
-
_feature_id
|
|
85849
|
+
_feature_id: string;
|
|
84355
85850
|
_module_id: string;
|
|
84356
85851
|
_user_id: string;
|
|
84357
85852
|
};
|
|
@@ -84402,6 +85897,13 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
84402
85897
|
};
|
|
84403
85898
|
Returns: string;
|
|
84404
85899
|
};
|
|
85900
|
+
employee_day_hours: {
|
|
85901
|
+
Args: {
|
|
85902
|
+
_day: string;
|
|
85903
|
+
_employee_id: string;
|
|
85904
|
+
};
|
|
85905
|
+
Returns: number;
|
|
85906
|
+
};
|
|
84405
85907
|
enqueue_cart_replan_if_unlocked: {
|
|
84406
85908
|
Args: {
|
|
84407
85909
|
p_order_id: string;
|
|
@@ -84755,6 +86257,19 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
84755
86257
|
Args: never;
|
|
84756
86258
|
Returns: boolean;
|
|
84757
86259
|
};
|
|
86260
|
+
itk_offerte_naar_werkbon: {
|
|
86261
|
+
Args: {
|
|
86262
|
+
_offerte_id: string;
|
|
86263
|
+
};
|
|
86264
|
+
Returns: string;
|
|
86265
|
+
};
|
|
86266
|
+
itk_offerte_restant_mandaat: {
|
|
86267
|
+
Args: {
|
|
86268
|
+
_exclude_offerte_id?: string;
|
|
86269
|
+
_werkbon_id: string;
|
|
86270
|
+
};
|
|
86271
|
+
Returns: number;
|
|
86272
|
+
};
|
|
84758
86273
|
jwt_has_role: {
|
|
84759
86274
|
Args: {
|
|
84760
86275
|
_role: import("../integrations/supabase/types.js").Database["public"]["Enums"]["app_role"];
|
|
@@ -84765,9 +86280,19 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
84765
86280
|
Args: never;
|
|
84766
86281
|
Returns: {
|
|
84767
86282
|
avatar_url: string;
|
|
86283
|
+
color: string;
|
|
84768
86284
|
display_name: string;
|
|
84769
86285
|
email: string;
|
|
86286
|
+
hours_fri: number;
|
|
86287
|
+
hours_mon: number;
|
|
86288
|
+
hours_thu: number;
|
|
86289
|
+
hours_tue: number;
|
|
86290
|
+
hours_wed: number;
|
|
84770
86291
|
id: string;
|
|
86292
|
+
is_active: boolean;
|
|
86293
|
+
leave_balance_hours: number;
|
|
86294
|
+
persnr: string;
|
|
86295
|
+
phone: string;
|
|
84771
86296
|
roles: string[];
|
|
84772
86297
|
}[];
|
|
84773
86298
|
};
|
|
@@ -85094,17 +86619,6 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
85094
86619
|
Returns: string;
|
|
85095
86620
|
};
|
|
85096
86621
|
logistics_emit_event: {
|
|
85097
|
-
Args: {
|
|
85098
|
-
p_event_type: string;
|
|
85099
|
-
p_idempotency_key?: string;
|
|
85100
|
-
p_order_ref: string;
|
|
85101
|
-
p_payload?: import("../integrations/supabase/types.js").Json;
|
|
85102
|
-
p_shadow?: boolean;
|
|
85103
|
-
p_source_module: string;
|
|
85104
|
-
p_strategy_id?: string;
|
|
85105
|
-
};
|
|
85106
|
-
Returns: import("../integrations/supabase/types.js").Json;
|
|
85107
|
-
} | {
|
|
85108
86622
|
Args: {
|
|
85109
86623
|
p_event_type: string;
|
|
85110
86624
|
p_idempotency_key?: string;
|
|
@@ -86484,6 +87998,12 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
86484
87998
|
};
|
|
86485
87999
|
Returns: undefined;
|
|
86486
88000
|
};
|
|
88001
|
+
sync_sick_time_off: {
|
|
88002
|
+
Args: {
|
|
88003
|
+
_period_id: string;
|
|
88004
|
+
};
|
|
88005
|
+
Returns: number;
|
|
88006
|
+
};
|
|
86487
88007
|
trade_item_stock_duplicates: {
|
|
86488
88008
|
Args: never;
|
|
86489
88009
|
Returns: {
|
|
@@ -86561,7 +88081,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
|
|
|
86561
88081
|
Enums: {
|
|
86562
88082
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
86563
88083
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
86564
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
88084
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
86565
88085
|
doc_orientation: "portrait" | "landscape";
|
|
86566
88086
|
exact_env: "staging" | "live";
|
|
86567
88087
|
exact_push_status: "pending" | "sent" | "error";
|