@flowselections/floriday-verkoop-module 1.0.42 → 1.0.44
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/dist-lib/components/verkoop/SalesOrdersTable.d.ts +5 -2
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +27 -13
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +114 -35
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +571 -12
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +571 -12
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +571 -12
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +594 -13
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -0
- package/dist-lib/lib/cart-lock.functions.d.ts +571 -12
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +6281 -132
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +1713 -36
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +31355 -193
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +18 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1713 -36
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +571 -12
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +571 -12
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.js +6 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +3997 -84
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +2855 -60
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.d.ts +2284 -48
- package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.server.js +1 -0
- package/dist-lib/lib/load-carriers.functions.d.ts +571 -12
- package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.d.ts +2855 -60
- package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-stock.functions.d.ts +1142 -24
- package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.d.ts +571 -12
- package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.d.ts +1713 -36
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-cancel.server.d.ts +24 -0
- package/dist-lib/lib/order-cancel.server.d.ts.map +1 -0
- package/dist-lib/lib/order-cancel.server.js +130 -0
- package/dist-lib/lib/order-carrier.functions.d.ts +1142 -24
- package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-pickup.functions.d.ts +1142 -24
- package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +2284 -48
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.functions.d.ts +571 -12
- package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.js +4 -60
- package/dist-lib/lib/salesorders.functions.d.ts +2855 -60
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +571 -12
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5044,6 +5044,42 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
5044
5044
|
};
|
|
5045
5045
|
Relationships: [];
|
|
5046
5046
|
};
|
|
5047
|
+
facturen: {
|
|
5048
|
+
Row: {
|
|
5049
|
+
bedrag_incl_btw: number;
|
|
5050
|
+
created_at: string;
|
|
5051
|
+
datum: string;
|
|
5052
|
+
factuurnummer: string;
|
|
5053
|
+
id: string;
|
|
5054
|
+
klantnaam: string;
|
|
5055
|
+
status: string;
|
|
5056
|
+
updated_at: string;
|
|
5057
|
+
user_id: string;
|
|
5058
|
+
};
|
|
5059
|
+
Insert: {
|
|
5060
|
+
bedrag_incl_btw: number;
|
|
5061
|
+
created_at?: string;
|
|
5062
|
+
datum?: string;
|
|
5063
|
+
factuurnummer: string;
|
|
5064
|
+
id?: string;
|
|
5065
|
+
klantnaam: string;
|
|
5066
|
+
status?: string;
|
|
5067
|
+
updated_at?: string;
|
|
5068
|
+
user_id?: string;
|
|
5069
|
+
};
|
|
5070
|
+
Update: {
|
|
5071
|
+
bedrag_incl_btw?: number;
|
|
5072
|
+
created_at?: string;
|
|
5073
|
+
datum?: string;
|
|
5074
|
+
factuurnummer?: string;
|
|
5075
|
+
id?: string;
|
|
5076
|
+
klantnaam?: string;
|
|
5077
|
+
status?: string;
|
|
5078
|
+
updated_at?: string;
|
|
5079
|
+
user_id?: string;
|
|
5080
|
+
};
|
|
5081
|
+
Relationships: [];
|
|
5082
|
+
};
|
|
5047
5083
|
floricode_connection_settings: {
|
|
5048
5084
|
Row: {
|
|
5049
5085
|
catalog_key: string | null;
|
|
@@ -7768,6 +7804,258 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
7768
7804
|
};
|
|
7769
7805
|
Relationships: [];
|
|
7770
7806
|
};
|
|
7807
|
+
itk_offerte_events: {
|
|
7808
|
+
Row: {
|
|
7809
|
+
created_at: string;
|
|
7810
|
+
event_type: string;
|
|
7811
|
+
id: string;
|
|
7812
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
7813
|
+
offerte_id: string;
|
|
7814
|
+
omschrijving: string | null;
|
|
7815
|
+
user_id: string | null;
|
|
7816
|
+
};
|
|
7817
|
+
Insert: {
|
|
7818
|
+
created_at?: string;
|
|
7819
|
+
event_type: string;
|
|
7820
|
+
id?: string;
|
|
7821
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7822
|
+
offerte_id: string;
|
|
7823
|
+
omschrijving?: string | null;
|
|
7824
|
+
user_id?: string | null;
|
|
7825
|
+
};
|
|
7826
|
+
Update: {
|
|
7827
|
+
created_at?: string;
|
|
7828
|
+
event_type?: string;
|
|
7829
|
+
id?: string;
|
|
7830
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7831
|
+
offerte_id?: string;
|
|
7832
|
+
omschrijving?: string | null;
|
|
7833
|
+
user_id?: string | null;
|
|
7834
|
+
};
|
|
7835
|
+
Relationships: [{
|
|
7836
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
7837
|
+
columns: ["offerte_id"];
|
|
7838
|
+
isOneToOne: false;
|
|
7839
|
+
referencedRelation: "itk_offertes";
|
|
7840
|
+
referencedColumns: ["id"];
|
|
7841
|
+
}];
|
|
7842
|
+
};
|
|
7843
|
+
itk_offerte_regels: {
|
|
7844
|
+
Row: {
|
|
7845
|
+
created_at: string;
|
|
7846
|
+
id: string;
|
|
7847
|
+
line_total_cents: number;
|
|
7848
|
+
offerte_id: string;
|
|
7849
|
+
omschrijving: string;
|
|
7850
|
+
package_id: string | null;
|
|
7851
|
+
quantity: number;
|
|
7852
|
+
sort_order: number;
|
|
7853
|
+
source: string;
|
|
7854
|
+
unit_price_cents: number;
|
|
7855
|
+
updated_at: string;
|
|
7856
|
+
};
|
|
7857
|
+
Insert: {
|
|
7858
|
+
created_at?: string;
|
|
7859
|
+
id?: string;
|
|
7860
|
+
line_total_cents?: number;
|
|
7861
|
+
offerte_id: string;
|
|
7862
|
+
omschrijving?: string;
|
|
7863
|
+
package_id?: string | null;
|
|
7864
|
+
quantity?: number;
|
|
7865
|
+
sort_order?: number;
|
|
7866
|
+
source?: string;
|
|
7867
|
+
unit_price_cents?: number;
|
|
7868
|
+
updated_at?: string;
|
|
7869
|
+
};
|
|
7870
|
+
Update: {
|
|
7871
|
+
created_at?: string;
|
|
7872
|
+
id?: string;
|
|
7873
|
+
line_total_cents?: number;
|
|
7874
|
+
offerte_id?: string;
|
|
7875
|
+
omschrijving?: string;
|
|
7876
|
+
package_id?: string | null;
|
|
7877
|
+
quantity?: number;
|
|
7878
|
+
sort_order?: number;
|
|
7879
|
+
source?: string;
|
|
7880
|
+
unit_price_cents?: number;
|
|
7881
|
+
updated_at?: string;
|
|
7882
|
+
};
|
|
7883
|
+
Relationships: [{
|
|
7884
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
7885
|
+
columns: ["offerte_id"];
|
|
7886
|
+
isOneToOne: false;
|
|
7887
|
+
referencedRelation: "itk_offertes";
|
|
7888
|
+
referencedColumns: ["id"];
|
|
7889
|
+
}, {
|
|
7890
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
7891
|
+
columns: ["package_id"];
|
|
7892
|
+
isOneToOne: false;
|
|
7893
|
+
referencedRelation: "werkbon_packages";
|
|
7894
|
+
referencedColumns: ["id"];
|
|
7895
|
+
}];
|
|
7896
|
+
};
|
|
7897
|
+
itk_offerte_settings: {
|
|
7898
|
+
Row: {
|
|
7899
|
+
auto_convert_binnen_mandaat: boolean;
|
|
7900
|
+
created_at: string;
|
|
7901
|
+
default_geldigheid_dagen: number;
|
|
7902
|
+
default_vat_rate: number;
|
|
7903
|
+
id: string;
|
|
7904
|
+
singleton: boolean;
|
|
7905
|
+
updated_at: string;
|
|
7906
|
+
};
|
|
7907
|
+
Insert: {
|
|
7908
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7909
|
+
created_at?: string;
|
|
7910
|
+
default_geldigheid_dagen?: number;
|
|
7911
|
+
default_vat_rate?: number;
|
|
7912
|
+
id?: string;
|
|
7913
|
+
singleton?: boolean;
|
|
7914
|
+
updated_at?: string;
|
|
7915
|
+
};
|
|
7916
|
+
Update: {
|
|
7917
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7918
|
+
created_at?: string;
|
|
7919
|
+
default_geldigheid_dagen?: number;
|
|
7920
|
+
default_vat_rate?: number;
|
|
7921
|
+
id?: string;
|
|
7922
|
+
singleton?: boolean;
|
|
7923
|
+
updated_at?: string;
|
|
7924
|
+
};
|
|
7925
|
+
Relationships: [];
|
|
7926
|
+
};
|
|
7927
|
+
itk_offertes: {
|
|
7928
|
+
Row: {
|
|
7929
|
+
ai_generated: boolean;
|
|
7930
|
+
approved_at: string | null;
|
|
7931
|
+
binnen_mandaat: boolean;
|
|
7932
|
+
contact_id: string | null;
|
|
7933
|
+
converted_at: string | null;
|
|
7934
|
+
created_at: string;
|
|
7935
|
+
created_by: string | null;
|
|
7936
|
+
customer_id: string | null;
|
|
7937
|
+
follow_up_werkbon_id: string | null;
|
|
7938
|
+
id: string;
|
|
7939
|
+
jaar: number;
|
|
7940
|
+
mandaat_restant_cents: number;
|
|
7941
|
+
notities: string | null;
|
|
7942
|
+
offerte_number: string | null;
|
|
7943
|
+
omschrijving: string;
|
|
7944
|
+
rejected_at: string | null;
|
|
7945
|
+
sent_at: string | null;
|
|
7946
|
+
source_number: string | null;
|
|
7947
|
+
source_ref: string | null;
|
|
7948
|
+
source_type: string;
|
|
7949
|
+
status: string;
|
|
7950
|
+
subtotal_cents: number;
|
|
7951
|
+
total_cents: number;
|
|
7952
|
+
updated_at: string;
|
|
7953
|
+
valid_until: string | null;
|
|
7954
|
+
vat_cents: number;
|
|
7955
|
+
vat_rate: number;
|
|
7956
|
+
viewed_at: string | null;
|
|
7957
|
+
volgnummer: number | null;
|
|
7958
|
+
werkbon_id: string | null;
|
|
7959
|
+
work_location_id: string | null;
|
|
7960
|
+
};
|
|
7961
|
+
Insert: {
|
|
7962
|
+
ai_generated?: boolean;
|
|
7963
|
+
approved_at?: string | null;
|
|
7964
|
+
binnen_mandaat?: boolean;
|
|
7965
|
+
contact_id?: string | null;
|
|
7966
|
+
converted_at?: string | null;
|
|
7967
|
+
created_at?: string;
|
|
7968
|
+
created_by?: string | null;
|
|
7969
|
+
customer_id?: string | null;
|
|
7970
|
+
follow_up_werkbon_id?: string | null;
|
|
7971
|
+
id?: string;
|
|
7972
|
+
jaar?: number;
|
|
7973
|
+
mandaat_restant_cents?: number;
|
|
7974
|
+
notities?: string | null;
|
|
7975
|
+
offerte_number?: string | null;
|
|
7976
|
+
omschrijving?: string;
|
|
7977
|
+
rejected_at?: string | null;
|
|
7978
|
+
sent_at?: string | null;
|
|
7979
|
+
source_number?: string | null;
|
|
7980
|
+
source_ref?: string | null;
|
|
7981
|
+
source_type?: string;
|
|
7982
|
+
status?: string;
|
|
7983
|
+
subtotal_cents?: number;
|
|
7984
|
+
total_cents?: number;
|
|
7985
|
+
updated_at?: string;
|
|
7986
|
+
valid_until?: string | null;
|
|
7987
|
+
vat_cents?: number;
|
|
7988
|
+
vat_rate?: number;
|
|
7989
|
+
viewed_at?: string | null;
|
|
7990
|
+
volgnummer?: number | null;
|
|
7991
|
+
werkbon_id?: string | null;
|
|
7992
|
+
work_location_id?: string | null;
|
|
7993
|
+
};
|
|
7994
|
+
Update: {
|
|
7995
|
+
ai_generated?: boolean;
|
|
7996
|
+
approved_at?: string | null;
|
|
7997
|
+
binnen_mandaat?: boolean;
|
|
7998
|
+
contact_id?: string | null;
|
|
7999
|
+
converted_at?: string | null;
|
|
8000
|
+
created_at?: string;
|
|
8001
|
+
created_by?: string | null;
|
|
8002
|
+
customer_id?: string | null;
|
|
8003
|
+
follow_up_werkbon_id?: string | null;
|
|
8004
|
+
id?: string;
|
|
8005
|
+
jaar?: number;
|
|
8006
|
+
mandaat_restant_cents?: number;
|
|
8007
|
+
notities?: string | null;
|
|
8008
|
+
offerte_number?: string | null;
|
|
8009
|
+
omschrijving?: string;
|
|
8010
|
+
rejected_at?: string | null;
|
|
8011
|
+
sent_at?: string | null;
|
|
8012
|
+
source_number?: string | null;
|
|
8013
|
+
source_ref?: string | null;
|
|
8014
|
+
source_type?: string;
|
|
8015
|
+
status?: string;
|
|
8016
|
+
subtotal_cents?: number;
|
|
8017
|
+
total_cents?: number;
|
|
8018
|
+
updated_at?: string;
|
|
8019
|
+
valid_until?: string | null;
|
|
8020
|
+
vat_cents?: number;
|
|
8021
|
+
vat_rate?: number;
|
|
8022
|
+
viewed_at?: string | null;
|
|
8023
|
+
volgnummer?: number | null;
|
|
8024
|
+
werkbon_id?: string | null;
|
|
8025
|
+
work_location_id?: string | null;
|
|
8026
|
+
};
|
|
8027
|
+
Relationships: [{
|
|
8028
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8029
|
+
columns: ["contact_id"];
|
|
8030
|
+
isOneToOne: false;
|
|
8031
|
+
referencedRelation: "itk_contact_persons";
|
|
8032
|
+
referencedColumns: ["id"];
|
|
8033
|
+
}, {
|
|
8034
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8035
|
+
columns: ["customer_id"];
|
|
8036
|
+
isOneToOne: false;
|
|
8037
|
+
referencedRelation: "itk_customers";
|
|
8038
|
+
referencedColumns: ["id"];
|
|
8039
|
+
}, {
|
|
8040
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8041
|
+
columns: ["follow_up_werkbon_id"];
|
|
8042
|
+
isOneToOne: false;
|
|
8043
|
+
referencedRelation: "werkbonnen";
|
|
8044
|
+
referencedColumns: ["id"];
|
|
8045
|
+
}, {
|
|
8046
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8047
|
+
columns: ["werkbon_id"];
|
|
8048
|
+
isOneToOne: false;
|
|
8049
|
+
referencedRelation: "werkbonnen";
|
|
8050
|
+
referencedColumns: ["id"];
|
|
8051
|
+
}, {
|
|
8052
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8053
|
+
columns: ["work_location_id"];
|
|
8054
|
+
isOneToOne: false;
|
|
8055
|
+
referencedRelation: "itk_work_locations";
|
|
8056
|
+
referencedColumns: ["id"];
|
|
8057
|
+
}];
|
|
8058
|
+
};
|
|
7771
8059
|
itk_work_locations: {
|
|
7772
8060
|
Row: {
|
|
7773
8061
|
city: string | null;
|
|
@@ -10141,6 +10429,63 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
10141
10429
|
referencedColumns: ["id"];
|
|
10142
10430
|
}];
|
|
10143
10431
|
};
|
|
10432
|
+
medewerker_details: {
|
|
10433
|
+
Row: {
|
|
10434
|
+
color: string | null;
|
|
10435
|
+
created_at: string;
|
|
10436
|
+
hours_fri: number | null;
|
|
10437
|
+
hours_mon: number | null;
|
|
10438
|
+
hours_thu: number | null;
|
|
10439
|
+
hours_tue: number | null;
|
|
10440
|
+
hours_wed: number | null;
|
|
10441
|
+
id: string;
|
|
10442
|
+
is_active: boolean;
|
|
10443
|
+
leave_balance_hours: number;
|
|
10444
|
+
persnr: string | null;
|
|
10445
|
+
phone: string | null;
|
|
10446
|
+
profile_id: string;
|
|
10447
|
+
updated_at: string;
|
|
10448
|
+
};
|
|
10449
|
+
Insert: {
|
|
10450
|
+
color?: string | null;
|
|
10451
|
+
created_at?: string;
|
|
10452
|
+
hours_fri?: number | null;
|
|
10453
|
+
hours_mon?: number | null;
|
|
10454
|
+
hours_thu?: number | null;
|
|
10455
|
+
hours_tue?: number | null;
|
|
10456
|
+
hours_wed?: number | null;
|
|
10457
|
+
id?: string;
|
|
10458
|
+
is_active?: boolean;
|
|
10459
|
+
leave_balance_hours?: number;
|
|
10460
|
+
persnr?: string | null;
|
|
10461
|
+
phone?: string | null;
|
|
10462
|
+
profile_id: string;
|
|
10463
|
+
updated_at?: string;
|
|
10464
|
+
};
|
|
10465
|
+
Update: {
|
|
10466
|
+
color?: string | null;
|
|
10467
|
+
created_at?: string;
|
|
10468
|
+
hours_fri?: number | null;
|
|
10469
|
+
hours_mon?: number | null;
|
|
10470
|
+
hours_thu?: number | null;
|
|
10471
|
+
hours_tue?: number | null;
|
|
10472
|
+
hours_wed?: number | null;
|
|
10473
|
+
id?: string;
|
|
10474
|
+
is_active?: boolean;
|
|
10475
|
+
leave_balance_hours?: number;
|
|
10476
|
+
persnr?: string | null;
|
|
10477
|
+
phone?: string | null;
|
|
10478
|
+
profile_id?: string;
|
|
10479
|
+
updated_at?: string;
|
|
10480
|
+
};
|
|
10481
|
+
Relationships: [{
|
|
10482
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10483
|
+
columns: ["profile_id"];
|
|
10484
|
+
isOneToOne: true;
|
|
10485
|
+
referencedRelation: "profiles";
|
|
10486
|
+
referencedColumns: ["id"];
|
|
10487
|
+
}];
|
|
10488
|
+
};
|
|
10144
10489
|
module_features: {
|
|
10145
10490
|
Row: {
|
|
10146
10491
|
created_at: string;
|
|
@@ -11434,6 +11779,8 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
11434
11779
|
orders: {
|
|
11435
11780
|
Row: {
|
|
11436
11781
|
buffer_id: string | null;
|
|
11782
|
+
cancel_reason: string | null;
|
|
11783
|
+
cancelled_at: string | null;
|
|
11437
11784
|
created_at: string;
|
|
11438
11785
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
11439
11786
|
customer_id: string | null;
|
|
@@ -11456,6 +11803,8 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
11456
11803
|
};
|
|
11457
11804
|
Insert: {
|
|
11458
11805
|
buffer_id?: string | null;
|
|
11806
|
+
cancel_reason?: string | null;
|
|
11807
|
+
cancelled_at?: string | null;
|
|
11459
11808
|
created_at?: string;
|
|
11460
11809
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11461
11810
|
customer_id?: string | null;
|
|
@@ -11478,6 +11827,8 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
11478
11827
|
};
|
|
11479
11828
|
Update: {
|
|
11480
11829
|
buffer_id?: string | null;
|
|
11830
|
+
cancel_reason?: string | null;
|
|
11831
|
+
cancelled_at?: string | null;
|
|
11481
11832
|
created_at?: string;
|
|
11482
11833
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
11483
11834
|
customer_id?: string | null;
|
|
@@ -13540,6 +13891,66 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
13540
13891
|
};
|
|
13541
13892
|
Relationships: [];
|
|
13542
13893
|
};
|
|
13894
|
+
profile_modules: {
|
|
13895
|
+
Row: {
|
|
13896
|
+
created_at: string;
|
|
13897
|
+
id: string;
|
|
13898
|
+
module_id: string;
|
|
13899
|
+
profile_id: string;
|
|
13900
|
+
};
|
|
13901
|
+
Insert: {
|
|
13902
|
+
created_at?: string;
|
|
13903
|
+
id?: string;
|
|
13904
|
+
module_id: string;
|
|
13905
|
+
profile_id: string;
|
|
13906
|
+
};
|
|
13907
|
+
Update: {
|
|
13908
|
+
created_at?: string;
|
|
13909
|
+
id?: string;
|
|
13910
|
+
module_id?: string;
|
|
13911
|
+
profile_id?: string;
|
|
13912
|
+
};
|
|
13913
|
+
Relationships: [{
|
|
13914
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
13915
|
+
columns: ["profile_id"];
|
|
13916
|
+
isOneToOne: false;
|
|
13917
|
+
referencedRelation: "profiles_org";
|
|
13918
|
+
referencedColumns: ["id"];
|
|
13919
|
+
}];
|
|
13920
|
+
};
|
|
13921
|
+
profile_roles: {
|
|
13922
|
+
Row: {
|
|
13923
|
+
created_at: string;
|
|
13924
|
+
id: string;
|
|
13925
|
+
profile_id: string;
|
|
13926
|
+
role_id: string;
|
|
13927
|
+
};
|
|
13928
|
+
Insert: {
|
|
13929
|
+
created_at?: string;
|
|
13930
|
+
id?: string;
|
|
13931
|
+
profile_id: string;
|
|
13932
|
+
role_id: string;
|
|
13933
|
+
};
|
|
13934
|
+
Update: {
|
|
13935
|
+
created_at?: string;
|
|
13936
|
+
id?: string;
|
|
13937
|
+
profile_id?: string;
|
|
13938
|
+
role_id?: string;
|
|
13939
|
+
};
|
|
13940
|
+
Relationships: [{
|
|
13941
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
13942
|
+
columns: ["profile_id"];
|
|
13943
|
+
isOneToOne: false;
|
|
13944
|
+
referencedRelation: "profiles_org";
|
|
13945
|
+
referencedColumns: ["id"];
|
|
13946
|
+
}, {
|
|
13947
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
13948
|
+
columns: ["role_id"];
|
|
13949
|
+
isOneToOne: false;
|
|
13950
|
+
referencedRelation: "roles";
|
|
13951
|
+
referencedColumns: ["id"];
|
|
13952
|
+
}];
|
|
13953
|
+
};
|
|
13543
13954
|
profiles: {
|
|
13544
13955
|
Row: {
|
|
13545
13956
|
address: string | null;
|
|
@@ -13585,6 +13996,39 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
13585
13996
|
referencedColumns: ["id"];
|
|
13586
13997
|
}];
|
|
13587
13998
|
};
|
|
13999
|
+
profiles_org: {
|
|
14000
|
+
Row: {
|
|
14001
|
+
created_at: string;
|
|
14002
|
+
id: string;
|
|
14003
|
+
is_default: boolean;
|
|
14004
|
+
name: string;
|
|
14005
|
+
tenant_id: string | null;
|
|
14006
|
+
updated_at: string;
|
|
14007
|
+
};
|
|
14008
|
+
Insert: {
|
|
14009
|
+
created_at?: string;
|
|
14010
|
+
id?: string;
|
|
14011
|
+
is_default?: boolean;
|
|
14012
|
+
name: string;
|
|
14013
|
+
tenant_id?: string | null;
|
|
14014
|
+
updated_at?: string;
|
|
14015
|
+
};
|
|
14016
|
+
Update: {
|
|
14017
|
+
created_at?: string;
|
|
14018
|
+
id?: string;
|
|
14019
|
+
is_default?: boolean;
|
|
14020
|
+
name?: string;
|
|
14021
|
+
tenant_id?: string | null;
|
|
14022
|
+
updated_at?: string;
|
|
14023
|
+
};
|
|
14024
|
+
Relationships: [{
|
|
14025
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14026
|
+
columns: ["tenant_id"];
|
|
14027
|
+
isOneToOne: false;
|
|
14028
|
+
referencedRelation: "tenants";
|
|
14029
|
+
referencedColumns: ["id"];
|
|
14030
|
+
}];
|
|
14031
|
+
};
|
|
13588
14032
|
projects: {
|
|
13589
14033
|
Row: {
|
|
13590
14034
|
contact_name: string | null;
|
|
@@ -14759,6 +15203,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
14759
15203
|
type: string;
|
|
14760
15204
|
updated_at: string;
|
|
14761
15205
|
vereist_medewerker: boolean;
|
|
15206
|
+
werkplek: string | null;
|
|
14762
15207
|
};
|
|
14763
15208
|
Insert: {
|
|
14764
15209
|
actief?: boolean;
|
|
@@ -14772,6 +15217,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
14772
15217
|
type?: string;
|
|
14773
15218
|
updated_at?: string;
|
|
14774
15219
|
vereist_medewerker?: boolean;
|
|
15220
|
+
werkplek?: string | null;
|
|
14775
15221
|
};
|
|
14776
15222
|
Update: {
|
|
14777
15223
|
actief?: boolean;
|
|
@@ -14785,9 +15231,46 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
14785
15231
|
type?: string;
|
|
14786
15232
|
updated_at?: string;
|
|
14787
15233
|
vereist_medewerker?: boolean;
|
|
15234
|
+
werkplek?: string | null;
|
|
14788
15235
|
};
|
|
14789
15236
|
Relationships: [];
|
|
14790
15237
|
};
|
|
15238
|
+
sick_periods: {
|
|
15239
|
+
Row: {
|
|
15240
|
+
created_at: string;
|
|
15241
|
+
employee_id: string;
|
|
15242
|
+
end_date: string | null;
|
|
15243
|
+
id: string;
|
|
15244
|
+
notes: string | null;
|
|
15245
|
+
start_date: string;
|
|
15246
|
+
updated_at: string;
|
|
15247
|
+
};
|
|
15248
|
+
Insert: {
|
|
15249
|
+
created_at?: string;
|
|
15250
|
+
employee_id: string;
|
|
15251
|
+
end_date?: string | null;
|
|
15252
|
+
id?: string;
|
|
15253
|
+
notes?: string | null;
|
|
15254
|
+
start_date: string;
|
|
15255
|
+
updated_at?: string;
|
|
15256
|
+
};
|
|
15257
|
+
Update: {
|
|
15258
|
+
created_at?: string;
|
|
15259
|
+
employee_id?: string;
|
|
15260
|
+
end_date?: string | null;
|
|
15261
|
+
id?: string;
|
|
15262
|
+
notes?: string | null;
|
|
15263
|
+
start_date?: string;
|
|
15264
|
+
updated_at?: string;
|
|
15265
|
+
};
|
|
15266
|
+
Relationships: [{
|
|
15267
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15268
|
+
columns: ["employee_id"];
|
|
15269
|
+
isOneToOne: false;
|
|
15270
|
+
referencedRelation: "profiles";
|
|
15271
|
+
referencedColumns: ["id"];
|
|
15272
|
+
}];
|
|
15273
|
+
};
|
|
14791
15274
|
sidebar_config: {
|
|
14792
15275
|
Row: {
|
|
14793
15276
|
id: string;
|
|
@@ -19472,6 +19955,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
19472
19955
|
};
|
|
19473
19956
|
Returns: string;
|
|
19474
19957
|
};
|
|
19958
|
+
employee_day_hours: {
|
|
19959
|
+
Args: {
|
|
19960
|
+
_day: string;
|
|
19961
|
+
_employee_id: string;
|
|
19962
|
+
};
|
|
19963
|
+
Returns: number;
|
|
19964
|
+
};
|
|
19475
19965
|
enqueue_cart_replan_if_unlocked: {
|
|
19476
19966
|
Args: {
|
|
19477
19967
|
p_order_id: string;
|
|
@@ -19825,6 +20315,19 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
19825
20315
|
Args: never;
|
|
19826
20316
|
Returns: boolean;
|
|
19827
20317
|
};
|
|
20318
|
+
itk_offerte_naar_werkbon: {
|
|
20319
|
+
Args: {
|
|
20320
|
+
_offerte_id: string;
|
|
20321
|
+
};
|
|
20322
|
+
Returns: string;
|
|
20323
|
+
};
|
|
20324
|
+
itk_offerte_restant_mandaat: {
|
|
20325
|
+
Args: {
|
|
20326
|
+
_exclude_offerte_id?: string;
|
|
20327
|
+
_werkbon_id: string;
|
|
20328
|
+
};
|
|
20329
|
+
Returns: number;
|
|
20330
|
+
};
|
|
19828
20331
|
jwt_has_role: {
|
|
19829
20332
|
Args: {
|
|
19830
20333
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -19835,9 +20338,19 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
19835
20338
|
Args: never;
|
|
19836
20339
|
Returns: {
|
|
19837
20340
|
avatar_url: string;
|
|
20341
|
+
color: string;
|
|
19838
20342
|
display_name: string;
|
|
19839
20343
|
email: string;
|
|
20344
|
+
hours_fri: number;
|
|
20345
|
+
hours_mon: number;
|
|
20346
|
+
hours_thu: number;
|
|
20347
|
+
hours_tue: number;
|
|
20348
|
+
hours_wed: number;
|
|
19840
20349
|
id: string;
|
|
20350
|
+
is_active: boolean;
|
|
20351
|
+
leave_balance_hours: number;
|
|
20352
|
+
persnr: string;
|
|
20353
|
+
phone: string;
|
|
19841
20354
|
roles: string[];
|
|
19842
20355
|
}[];
|
|
19843
20356
|
};
|
|
@@ -20164,17 +20677,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
20164
20677
|
Returns: string;
|
|
20165
20678
|
};
|
|
20166
20679
|
logistics_emit_event: {
|
|
20167
|
-
Args: {
|
|
20168
|
-
p_event_type: string;
|
|
20169
|
-
p_idempotency_key?: string;
|
|
20170
|
-
p_order_ref: string;
|
|
20171
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
20172
|
-
p_shadow?: boolean;
|
|
20173
|
-
p_source_module: string;
|
|
20174
|
-
p_strategy_id?: string;
|
|
20175
|
-
};
|
|
20176
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
20177
|
-
} | {
|
|
20178
20680
|
Args: {
|
|
20179
20681
|
p_event_type: string;
|
|
20180
20682
|
p_idempotency_key?: string;
|
|
@@ -21019,6 +21521,37 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
21019
21521
|
};
|
|
21020
21522
|
Returns: undefined;
|
|
21021
21523
|
};
|
|
21524
|
+
quote_create_from_source: {
|
|
21525
|
+
Args: {
|
|
21526
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
21527
|
+
_source_id: string;
|
|
21528
|
+
_source_type: string;
|
|
21529
|
+
};
|
|
21530
|
+
Returns: string;
|
|
21531
|
+
};
|
|
21532
|
+
quote_get_billable_lines: {
|
|
21533
|
+
Args: {
|
|
21534
|
+
_quotation_id: string;
|
|
21535
|
+
};
|
|
21536
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21537
|
+
};
|
|
21538
|
+
quote_get_summary: {
|
|
21539
|
+
Args: {
|
|
21540
|
+
_quotation_id: string;
|
|
21541
|
+
};
|
|
21542
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21543
|
+
};
|
|
21544
|
+
quote_list_packages: {
|
|
21545
|
+
Args: never;
|
|
21546
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21547
|
+
};
|
|
21548
|
+
quote_list_sources: {
|
|
21549
|
+
Args: {
|
|
21550
|
+
_limit?: number;
|
|
21551
|
+
_source_type?: string;
|
|
21552
|
+
};
|
|
21553
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
21554
|
+
};
|
|
21022
21555
|
recompute_all_reserved_stock: {
|
|
21023
21556
|
Args: never;
|
|
21024
21557
|
Returns: undefined;
|
|
@@ -21554,6 +22087,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
21554
22087
|
};
|
|
21555
22088
|
Returns: undefined;
|
|
21556
22089
|
};
|
|
22090
|
+
sync_sick_time_off: {
|
|
22091
|
+
Args: {
|
|
22092
|
+
_period_id: string;
|
|
22093
|
+
};
|
|
22094
|
+
Returns: number;
|
|
22095
|
+
};
|
|
21557
22096
|
trade_item_stock_duplicates: {
|
|
21558
22097
|
Args: never;
|
|
21559
22098
|
Returns: {
|
|
@@ -21627,11 +22166,31 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
21627
22166
|
Args: never;
|
|
21628
22167
|
Returns: string;
|
|
21629
22168
|
};
|
|
22169
|
+
wo_create_from_source: {
|
|
22170
|
+
Args: {
|
|
22171
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
22172
|
+
_source_id: string;
|
|
22173
|
+
_source_type: string;
|
|
22174
|
+
};
|
|
22175
|
+
Returns: string;
|
|
22176
|
+
};
|
|
22177
|
+
wo_get_billable_lines: {
|
|
22178
|
+
Args: {
|
|
22179
|
+
_work_order_id: string;
|
|
22180
|
+
};
|
|
22181
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22182
|
+
};
|
|
22183
|
+
wo_get_summary: {
|
|
22184
|
+
Args: {
|
|
22185
|
+
_work_order_id: string;
|
|
22186
|
+
};
|
|
22187
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22188
|
+
};
|
|
21630
22189
|
};
|
|
21631
22190
|
Enums: {
|
|
21632
22191
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21633
22192
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21634
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22193
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21635
22194
|
doc_orientation: "portrait" | "landscape";
|
|
21636
22195
|
exact_env: "staging" | "live";
|
|
21637
22196
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -26699,6 +27258,42 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
26699
27258
|
};
|
|
26700
27259
|
Relationships: [];
|
|
26701
27260
|
};
|
|
27261
|
+
facturen: {
|
|
27262
|
+
Row: {
|
|
27263
|
+
bedrag_incl_btw: number;
|
|
27264
|
+
created_at: string;
|
|
27265
|
+
datum: string;
|
|
27266
|
+
factuurnummer: string;
|
|
27267
|
+
id: string;
|
|
27268
|
+
klantnaam: string;
|
|
27269
|
+
status: string;
|
|
27270
|
+
updated_at: string;
|
|
27271
|
+
user_id: string;
|
|
27272
|
+
};
|
|
27273
|
+
Insert: {
|
|
27274
|
+
bedrag_incl_btw: number;
|
|
27275
|
+
created_at?: string;
|
|
27276
|
+
datum?: string;
|
|
27277
|
+
factuurnummer: string;
|
|
27278
|
+
id?: string;
|
|
27279
|
+
klantnaam: string;
|
|
27280
|
+
status?: string;
|
|
27281
|
+
updated_at?: string;
|
|
27282
|
+
user_id?: string;
|
|
27283
|
+
};
|
|
27284
|
+
Update: {
|
|
27285
|
+
bedrag_incl_btw?: number;
|
|
27286
|
+
created_at?: string;
|
|
27287
|
+
datum?: string;
|
|
27288
|
+
factuurnummer?: string;
|
|
27289
|
+
id?: string;
|
|
27290
|
+
klantnaam?: string;
|
|
27291
|
+
status?: string;
|
|
27292
|
+
updated_at?: string;
|
|
27293
|
+
user_id?: string;
|
|
27294
|
+
};
|
|
27295
|
+
Relationships: [];
|
|
27296
|
+
};
|
|
26702
27297
|
floricode_connection_settings: {
|
|
26703
27298
|
Row: {
|
|
26704
27299
|
catalog_key: string | null;
|
|
@@ -29423,6 +30018,258 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
29423
30018
|
};
|
|
29424
30019
|
Relationships: [];
|
|
29425
30020
|
};
|
|
30021
|
+
itk_offerte_events: {
|
|
30022
|
+
Row: {
|
|
30023
|
+
created_at: string;
|
|
30024
|
+
event_type: string;
|
|
30025
|
+
id: string;
|
|
30026
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
30027
|
+
offerte_id: string;
|
|
30028
|
+
omschrijving: string | null;
|
|
30029
|
+
user_id: string | null;
|
|
30030
|
+
};
|
|
30031
|
+
Insert: {
|
|
30032
|
+
created_at?: string;
|
|
30033
|
+
event_type: string;
|
|
30034
|
+
id?: string;
|
|
30035
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30036
|
+
offerte_id: string;
|
|
30037
|
+
omschrijving?: string | null;
|
|
30038
|
+
user_id?: string | null;
|
|
30039
|
+
};
|
|
30040
|
+
Update: {
|
|
30041
|
+
created_at?: string;
|
|
30042
|
+
event_type?: string;
|
|
30043
|
+
id?: string;
|
|
30044
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
30045
|
+
offerte_id?: string;
|
|
30046
|
+
omschrijving?: string | null;
|
|
30047
|
+
user_id?: string | null;
|
|
30048
|
+
};
|
|
30049
|
+
Relationships: [{
|
|
30050
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
30051
|
+
columns: ["offerte_id"];
|
|
30052
|
+
isOneToOne: false;
|
|
30053
|
+
referencedRelation: "itk_offertes";
|
|
30054
|
+
referencedColumns: ["id"];
|
|
30055
|
+
}];
|
|
30056
|
+
};
|
|
30057
|
+
itk_offerte_regels: {
|
|
30058
|
+
Row: {
|
|
30059
|
+
created_at: string;
|
|
30060
|
+
id: string;
|
|
30061
|
+
line_total_cents: number;
|
|
30062
|
+
offerte_id: string;
|
|
30063
|
+
omschrijving: string;
|
|
30064
|
+
package_id: string | null;
|
|
30065
|
+
quantity: number;
|
|
30066
|
+
sort_order: number;
|
|
30067
|
+
source: string;
|
|
30068
|
+
unit_price_cents: number;
|
|
30069
|
+
updated_at: string;
|
|
30070
|
+
};
|
|
30071
|
+
Insert: {
|
|
30072
|
+
created_at?: string;
|
|
30073
|
+
id?: string;
|
|
30074
|
+
line_total_cents?: number;
|
|
30075
|
+
offerte_id: string;
|
|
30076
|
+
omschrijving?: string;
|
|
30077
|
+
package_id?: string | null;
|
|
30078
|
+
quantity?: number;
|
|
30079
|
+
sort_order?: number;
|
|
30080
|
+
source?: string;
|
|
30081
|
+
unit_price_cents?: number;
|
|
30082
|
+
updated_at?: string;
|
|
30083
|
+
};
|
|
30084
|
+
Update: {
|
|
30085
|
+
created_at?: string;
|
|
30086
|
+
id?: string;
|
|
30087
|
+
line_total_cents?: number;
|
|
30088
|
+
offerte_id?: string;
|
|
30089
|
+
omschrijving?: string;
|
|
30090
|
+
package_id?: string | null;
|
|
30091
|
+
quantity?: number;
|
|
30092
|
+
sort_order?: number;
|
|
30093
|
+
source?: string;
|
|
30094
|
+
unit_price_cents?: number;
|
|
30095
|
+
updated_at?: string;
|
|
30096
|
+
};
|
|
30097
|
+
Relationships: [{
|
|
30098
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
30099
|
+
columns: ["offerte_id"];
|
|
30100
|
+
isOneToOne: false;
|
|
30101
|
+
referencedRelation: "itk_offertes";
|
|
30102
|
+
referencedColumns: ["id"];
|
|
30103
|
+
}, {
|
|
30104
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
30105
|
+
columns: ["package_id"];
|
|
30106
|
+
isOneToOne: false;
|
|
30107
|
+
referencedRelation: "werkbon_packages";
|
|
30108
|
+
referencedColumns: ["id"];
|
|
30109
|
+
}];
|
|
30110
|
+
};
|
|
30111
|
+
itk_offerte_settings: {
|
|
30112
|
+
Row: {
|
|
30113
|
+
auto_convert_binnen_mandaat: boolean;
|
|
30114
|
+
created_at: string;
|
|
30115
|
+
default_geldigheid_dagen: number;
|
|
30116
|
+
default_vat_rate: number;
|
|
30117
|
+
id: string;
|
|
30118
|
+
singleton: boolean;
|
|
30119
|
+
updated_at: string;
|
|
30120
|
+
};
|
|
30121
|
+
Insert: {
|
|
30122
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30123
|
+
created_at?: string;
|
|
30124
|
+
default_geldigheid_dagen?: number;
|
|
30125
|
+
default_vat_rate?: number;
|
|
30126
|
+
id?: string;
|
|
30127
|
+
singleton?: boolean;
|
|
30128
|
+
updated_at?: string;
|
|
30129
|
+
};
|
|
30130
|
+
Update: {
|
|
30131
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
30132
|
+
created_at?: string;
|
|
30133
|
+
default_geldigheid_dagen?: number;
|
|
30134
|
+
default_vat_rate?: number;
|
|
30135
|
+
id?: string;
|
|
30136
|
+
singleton?: boolean;
|
|
30137
|
+
updated_at?: string;
|
|
30138
|
+
};
|
|
30139
|
+
Relationships: [];
|
|
30140
|
+
};
|
|
30141
|
+
itk_offertes: {
|
|
30142
|
+
Row: {
|
|
30143
|
+
ai_generated: boolean;
|
|
30144
|
+
approved_at: string | null;
|
|
30145
|
+
binnen_mandaat: boolean;
|
|
30146
|
+
contact_id: string | null;
|
|
30147
|
+
converted_at: string | null;
|
|
30148
|
+
created_at: string;
|
|
30149
|
+
created_by: string | null;
|
|
30150
|
+
customer_id: string | null;
|
|
30151
|
+
follow_up_werkbon_id: string | null;
|
|
30152
|
+
id: string;
|
|
30153
|
+
jaar: number;
|
|
30154
|
+
mandaat_restant_cents: number;
|
|
30155
|
+
notities: string | null;
|
|
30156
|
+
offerte_number: string | null;
|
|
30157
|
+
omschrijving: string;
|
|
30158
|
+
rejected_at: string | null;
|
|
30159
|
+
sent_at: string | null;
|
|
30160
|
+
source_number: string | null;
|
|
30161
|
+
source_ref: string | null;
|
|
30162
|
+
source_type: string;
|
|
30163
|
+
status: string;
|
|
30164
|
+
subtotal_cents: number;
|
|
30165
|
+
total_cents: number;
|
|
30166
|
+
updated_at: string;
|
|
30167
|
+
valid_until: string | null;
|
|
30168
|
+
vat_cents: number;
|
|
30169
|
+
vat_rate: number;
|
|
30170
|
+
viewed_at: string | null;
|
|
30171
|
+
volgnummer: number | null;
|
|
30172
|
+
werkbon_id: string | null;
|
|
30173
|
+
work_location_id: string | null;
|
|
30174
|
+
};
|
|
30175
|
+
Insert: {
|
|
30176
|
+
ai_generated?: boolean;
|
|
30177
|
+
approved_at?: string | null;
|
|
30178
|
+
binnen_mandaat?: boolean;
|
|
30179
|
+
contact_id?: string | null;
|
|
30180
|
+
converted_at?: string | null;
|
|
30181
|
+
created_at?: string;
|
|
30182
|
+
created_by?: string | null;
|
|
30183
|
+
customer_id?: string | null;
|
|
30184
|
+
follow_up_werkbon_id?: string | null;
|
|
30185
|
+
id?: string;
|
|
30186
|
+
jaar?: number;
|
|
30187
|
+
mandaat_restant_cents?: number;
|
|
30188
|
+
notities?: string | null;
|
|
30189
|
+
offerte_number?: string | null;
|
|
30190
|
+
omschrijving?: string;
|
|
30191
|
+
rejected_at?: string | null;
|
|
30192
|
+
sent_at?: string | null;
|
|
30193
|
+
source_number?: string | null;
|
|
30194
|
+
source_ref?: string | null;
|
|
30195
|
+
source_type?: string;
|
|
30196
|
+
status?: string;
|
|
30197
|
+
subtotal_cents?: number;
|
|
30198
|
+
total_cents?: number;
|
|
30199
|
+
updated_at?: string;
|
|
30200
|
+
valid_until?: string | null;
|
|
30201
|
+
vat_cents?: number;
|
|
30202
|
+
vat_rate?: number;
|
|
30203
|
+
viewed_at?: string | null;
|
|
30204
|
+
volgnummer?: number | null;
|
|
30205
|
+
werkbon_id?: string | null;
|
|
30206
|
+
work_location_id?: string | null;
|
|
30207
|
+
};
|
|
30208
|
+
Update: {
|
|
30209
|
+
ai_generated?: boolean;
|
|
30210
|
+
approved_at?: string | null;
|
|
30211
|
+
binnen_mandaat?: boolean;
|
|
30212
|
+
contact_id?: string | null;
|
|
30213
|
+
converted_at?: string | null;
|
|
30214
|
+
created_at?: string;
|
|
30215
|
+
created_by?: string | null;
|
|
30216
|
+
customer_id?: string | null;
|
|
30217
|
+
follow_up_werkbon_id?: string | null;
|
|
30218
|
+
id?: string;
|
|
30219
|
+
jaar?: number;
|
|
30220
|
+
mandaat_restant_cents?: number;
|
|
30221
|
+
notities?: string | null;
|
|
30222
|
+
offerte_number?: string | null;
|
|
30223
|
+
omschrijving?: string;
|
|
30224
|
+
rejected_at?: string | null;
|
|
30225
|
+
sent_at?: string | null;
|
|
30226
|
+
source_number?: string | null;
|
|
30227
|
+
source_ref?: string | null;
|
|
30228
|
+
source_type?: string;
|
|
30229
|
+
status?: string;
|
|
30230
|
+
subtotal_cents?: number;
|
|
30231
|
+
total_cents?: number;
|
|
30232
|
+
updated_at?: string;
|
|
30233
|
+
valid_until?: string | null;
|
|
30234
|
+
vat_cents?: number;
|
|
30235
|
+
vat_rate?: number;
|
|
30236
|
+
viewed_at?: string | null;
|
|
30237
|
+
volgnummer?: number | null;
|
|
30238
|
+
werkbon_id?: string | null;
|
|
30239
|
+
work_location_id?: string | null;
|
|
30240
|
+
};
|
|
30241
|
+
Relationships: [{
|
|
30242
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
30243
|
+
columns: ["contact_id"];
|
|
30244
|
+
isOneToOne: false;
|
|
30245
|
+
referencedRelation: "itk_contact_persons";
|
|
30246
|
+
referencedColumns: ["id"];
|
|
30247
|
+
}, {
|
|
30248
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
30249
|
+
columns: ["customer_id"];
|
|
30250
|
+
isOneToOne: false;
|
|
30251
|
+
referencedRelation: "itk_customers";
|
|
30252
|
+
referencedColumns: ["id"];
|
|
30253
|
+
}, {
|
|
30254
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
30255
|
+
columns: ["follow_up_werkbon_id"];
|
|
30256
|
+
isOneToOne: false;
|
|
30257
|
+
referencedRelation: "werkbonnen";
|
|
30258
|
+
referencedColumns: ["id"];
|
|
30259
|
+
}, {
|
|
30260
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
30261
|
+
columns: ["werkbon_id"];
|
|
30262
|
+
isOneToOne: false;
|
|
30263
|
+
referencedRelation: "werkbonnen";
|
|
30264
|
+
referencedColumns: ["id"];
|
|
30265
|
+
}, {
|
|
30266
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
30267
|
+
columns: ["work_location_id"];
|
|
30268
|
+
isOneToOne: false;
|
|
30269
|
+
referencedRelation: "itk_work_locations";
|
|
30270
|
+
referencedColumns: ["id"];
|
|
30271
|
+
}];
|
|
30272
|
+
};
|
|
29426
30273
|
itk_work_locations: {
|
|
29427
30274
|
Row: {
|
|
29428
30275
|
city: string | null;
|
|
@@ -31796,6 +32643,63 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
31796
32643
|
referencedColumns: ["id"];
|
|
31797
32644
|
}];
|
|
31798
32645
|
};
|
|
32646
|
+
medewerker_details: {
|
|
32647
|
+
Row: {
|
|
32648
|
+
color: string | null;
|
|
32649
|
+
created_at: string;
|
|
32650
|
+
hours_fri: number | null;
|
|
32651
|
+
hours_mon: number | null;
|
|
32652
|
+
hours_thu: number | null;
|
|
32653
|
+
hours_tue: number | null;
|
|
32654
|
+
hours_wed: number | null;
|
|
32655
|
+
id: string;
|
|
32656
|
+
is_active: boolean;
|
|
32657
|
+
leave_balance_hours: number;
|
|
32658
|
+
persnr: string | null;
|
|
32659
|
+
phone: string | null;
|
|
32660
|
+
profile_id: string;
|
|
32661
|
+
updated_at: string;
|
|
32662
|
+
};
|
|
32663
|
+
Insert: {
|
|
32664
|
+
color?: string | null;
|
|
32665
|
+
created_at?: string;
|
|
32666
|
+
hours_fri?: number | null;
|
|
32667
|
+
hours_mon?: number | null;
|
|
32668
|
+
hours_thu?: number | null;
|
|
32669
|
+
hours_tue?: number | null;
|
|
32670
|
+
hours_wed?: number | null;
|
|
32671
|
+
id?: string;
|
|
32672
|
+
is_active?: boolean;
|
|
32673
|
+
leave_balance_hours?: number;
|
|
32674
|
+
persnr?: string | null;
|
|
32675
|
+
phone?: string | null;
|
|
32676
|
+
profile_id: string;
|
|
32677
|
+
updated_at?: string;
|
|
32678
|
+
};
|
|
32679
|
+
Update: {
|
|
32680
|
+
color?: string | null;
|
|
32681
|
+
created_at?: string;
|
|
32682
|
+
hours_fri?: number | null;
|
|
32683
|
+
hours_mon?: number | null;
|
|
32684
|
+
hours_thu?: number | null;
|
|
32685
|
+
hours_tue?: number | null;
|
|
32686
|
+
hours_wed?: number | null;
|
|
32687
|
+
id?: string;
|
|
32688
|
+
is_active?: boolean;
|
|
32689
|
+
leave_balance_hours?: number;
|
|
32690
|
+
persnr?: string | null;
|
|
32691
|
+
phone?: string | null;
|
|
32692
|
+
profile_id?: string;
|
|
32693
|
+
updated_at?: string;
|
|
32694
|
+
};
|
|
32695
|
+
Relationships: [{
|
|
32696
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
32697
|
+
columns: ["profile_id"];
|
|
32698
|
+
isOneToOne: true;
|
|
32699
|
+
referencedRelation: "profiles";
|
|
32700
|
+
referencedColumns: ["id"];
|
|
32701
|
+
}];
|
|
32702
|
+
};
|
|
31799
32703
|
module_features: {
|
|
31800
32704
|
Row: {
|
|
31801
32705
|
created_at: string;
|
|
@@ -33089,6 +33993,8 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
33089
33993
|
orders: {
|
|
33090
33994
|
Row: {
|
|
33091
33995
|
buffer_id: string | null;
|
|
33996
|
+
cancel_reason: string | null;
|
|
33997
|
+
cancelled_at: string | null;
|
|
33092
33998
|
created_at: string;
|
|
33093
33999
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
33094
34000
|
customer_id: string | null;
|
|
@@ -33111,6 +34017,8 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
33111
34017
|
};
|
|
33112
34018
|
Insert: {
|
|
33113
34019
|
buffer_id?: string | null;
|
|
34020
|
+
cancel_reason?: string | null;
|
|
34021
|
+
cancelled_at?: string | null;
|
|
33114
34022
|
created_at?: string;
|
|
33115
34023
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33116
34024
|
customer_id?: string | null;
|
|
@@ -33133,6 +34041,8 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
33133
34041
|
};
|
|
33134
34042
|
Update: {
|
|
33135
34043
|
buffer_id?: string | null;
|
|
34044
|
+
cancel_reason?: string | null;
|
|
34045
|
+
cancelled_at?: string | null;
|
|
33136
34046
|
created_at?: string;
|
|
33137
34047
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
33138
34048
|
customer_id?: string | null;
|
|
@@ -35195,6 +36105,66 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
35195
36105
|
};
|
|
35196
36106
|
Relationships: [];
|
|
35197
36107
|
};
|
|
36108
|
+
profile_modules: {
|
|
36109
|
+
Row: {
|
|
36110
|
+
created_at: string;
|
|
36111
|
+
id: string;
|
|
36112
|
+
module_id: string;
|
|
36113
|
+
profile_id: string;
|
|
36114
|
+
};
|
|
36115
|
+
Insert: {
|
|
36116
|
+
created_at?: string;
|
|
36117
|
+
id?: string;
|
|
36118
|
+
module_id: string;
|
|
36119
|
+
profile_id: string;
|
|
36120
|
+
};
|
|
36121
|
+
Update: {
|
|
36122
|
+
created_at?: string;
|
|
36123
|
+
id?: string;
|
|
36124
|
+
module_id?: string;
|
|
36125
|
+
profile_id?: string;
|
|
36126
|
+
};
|
|
36127
|
+
Relationships: [{
|
|
36128
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
36129
|
+
columns: ["profile_id"];
|
|
36130
|
+
isOneToOne: false;
|
|
36131
|
+
referencedRelation: "profiles_org";
|
|
36132
|
+
referencedColumns: ["id"];
|
|
36133
|
+
}];
|
|
36134
|
+
};
|
|
36135
|
+
profile_roles: {
|
|
36136
|
+
Row: {
|
|
36137
|
+
created_at: string;
|
|
36138
|
+
id: string;
|
|
36139
|
+
profile_id: string;
|
|
36140
|
+
role_id: string;
|
|
36141
|
+
};
|
|
36142
|
+
Insert: {
|
|
36143
|
+
created_at?: string;
|
|
36144
|
+
id?: string;
|
|
36145
|
+
profile_id: string;
|
|
36146
|
+
role_id: string;
|
|
36147
|
+
};
|
|
36148
|
+
Update: {
|
|
36149
|
+
created_at?: string;
|
|
36150
|
+
id?: string;
|
|
36151
|
+
profile_id?: string;
|
|
36152
|
+
role_id?: string;
|
|
36153
|
+
};
|
|
36154
|
+
Relationships: [{
|
|
36155
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
36156
|
+
columns: ["profile_id"];
|
|
36157
|
+
isOneToOne: false;
|
|
36158
|
+
referencedRelation: "profiles_org";
|
|
36159
|
+
referencedColumns: ["id"];
|
|
36160
|
+
}, {
|
|
36161
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
36162
|
+
columns: ["role_id"];
|
|
36163
|
+
isOneToOne: false;
|
|
36164
|
+
referencedRelation: "roles";
|
|
36165
|
+
referencedColumns: ["id"];
|
|
36166
|
+
}];
|
|
36167
|
+
};
|
|
35198
36168
|
profiles: {
|
|
35199
36169
|
Row: {
|
|
35200
36170
|
address: string | null;
|
|
@@ -35240,6 +36210,39 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
35240
36210
|
referencedColumns: ["id"];
|
|
35241
36211
|
}];
|
|
35242
36212
|
};
|
|
36213
|
+
profiles_org: {
|
|
36214
|
+
Row: {
|
|
36215
|
+
created_at: string;
|
|
36216
|
+
id: string;
|
|
36217
|
+
is_default: boolean;
|
|
36218
|
+
name: string;
|
|
36219
|
+
tenant_id: string | null;
|
|
36220
|
+
updated_at: string;
|
|
36221
|
+
};
|
|
36222
|
+
Insert: {
|
|
36223
|
+
created_at?: string;
|
|
36224
|
+
id?: string;
|
|
36225
|
+
is_default?: boolean;
|
|
36226
|
+
name: string;
|
|
36227
|
+
tenant_id?: string | null;
|
|
36228
|
+
updated_at?: string;
|
|
36229
|
+
};
|
|
36230
|
+
Update: {
|
|
36231
|
+
created_at?: string;
|
|
36232
|
+
id?: string;
|
|
36233
|
+
is_default?: boolean;
|
|
36234
|
+
name?: string;
|
|
36235
|
+
tenant_id?: string | null;
|
|
36236
|
+
updated_at?: string;
|
|
36237
|
+
};
|
|
36238
|
+
Relationships: [{
|
|
36239
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
36240
|
+
columns: ["tenant_id"];
|
|
36241
|
+
isOneToOne: false;
|
|
36242
|
+
referencedRelation: "tenants";
|
|
36243
|
+
referencedColumns: ["id"];
|
|
36244
|
+
}];
|
|
36245
|
+
};
|
|
35243
36246
|
projects: {
|
|
35244
36247
|
Row: {
|
|
35245
36248
|
contact_name: string | null;
|
|
@@ -36414,6 +37417,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
36414
37417
|
type: string;
|
|
36415
37418
|
updated_at: string;
|
|
36416
37419
|
vereist_medewerker: boolean;
|
|
37420
|
+
werkplek: string | null;
|
|
36417
37421
|
};
|
|
36418
37422
|
Insert: {
|
|
36419
37423
|
actief?: boolean;
|
|
@@ -36427,6 +37431,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
36427
37431
|
type?: string;
|
|
36428
37432
|
updated_at?: string;
|
|
36429
37433
|
vereist_medewerker?: boolean;
|
|
37434
|
+
werkplek?: string | null;
|
|
36430
37435
|
};
|
|
36431
37436
|
Update: {
|
|
36432
37437
|
actief?: boolean;
|
|
@@ -36440,9 +37445,46 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
36440
37445
|
type?: string;
|
|
36441
37446
|
updated_at?: string;
|
|
36442
37447
|
vereist_medewerker?: boolean;
|
|
37448
|
+
werkplek?: string | null;
|
|
36443
37449
|
};
|
|
36444
37450
|
Relationships: [];
|
|
36445
37451
|
};
|
|
37452
|
+
sick_periods: {
|
|
37453
|
+
Row: {
|
|
37454
|
+
created_at: string;
|
|
37455
|
+
employee_id: string;
|
|
37456
|
+
end_date: string | null;
|
|
37457
|
+
id: string;
|
|
37458
|
+
notes: string | null;
|
|
37459
|
+
start_date: string;
|
|
37460
|
+
updated_at: string;
|
|
37461
|
+
};
|
|
37462
|
+
Insert: {
|
|
37463
|
+
created_at?: string;
|
|
37464
|
+
employee_id: string;
|
|
37465
|
+
end_date?: string | null;
|
|
37466
|
+
id?: string;
|
|
37467
|
+
notes?: string | null;
|
|
37468
|
+
start_date: string;
|
|
37469
|
+
updated_at?: string;
|
|
37470
|
+
};
|
|
37471
|
+
Update: {
|
|
37472
|
+
created_at?: string;
|
|
37473
|
+
employee_id?: string;
|
|
37474
|
+
end_date?: string | null;
|
|
37475
|
+
id?: string;
|
|
37476
|
+
notes?: string | null;
|
|
37477
|
+
start_date?: string;
|
|
37478
|
+
updated_at?: string;
|
|
37479
|
+
};
|
|
37480
|
+
Relationships: [{
|
|
37481
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
37482
|
+
columns: ["employee_id"];
|
|
37483
|
+
isOneToOne: false;
|
|
37484
|
+
referencedRelation: "profiles";
|
|
37485
|
+
referencedColumns: ["id"];
|
|
37486
|
+
}];
|
|
37487
|
+
};
|
|
36446
37488
|
sidebar_config: {
|
|
36447
37489
|
Row: {
|
|
36448
37490
|
id: string;
|
|
@@ -41127,6 +42169,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
41127
42169
|
};
|
|
41128
42170
|
Returns: string;
|
|
41129
42171
|
};
|
|
42172
|
+
employee_day_hours: {
|
|
42173
|
+
Args: {
|
|
42174
|
+
_day: string;
|
|
42175
|
+
_employee_id: string;
|
|
42176
|
+
};
|
|
42177
|
+
Returns: number;
|
|
42178
|
+
};
|
|
41130
42179
|
enqueue_cart_replan_if_unlocked: {
|
|
41131
42180
|
Args: {
|
|
41132
42181
|
p_order_id: string;
|
|
@@ -41480,6 +42529,19 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
41480
42529
|
Args: never;
|
|
41481
42530
|
Returns: boolean;
|
|
41482
42531
|
};
|
|
42532
|
+
itk_offerte_naar_werkbon: {
|
|
42533
|
+
Args: {
|
|
42534
|
+
_offerte_id: string;
|
|
42535
|
+
};
|
|
42536
|
+
Returns: string;
|
|
42537
|
+
};
|
|
42538
|
+
itk_offerte_restant_mandaat: {
|
|
42539
|
+
Args: {
|
|
42540
|
+
_exclude_offerte_id?: string;
|
|
42541
|
+
_werkbon_id: string;
|
|
42542
|
+
};
|
|
42543
|
+
Returns: number;
|
|
42544
|
+
};
|
|
41483
42545
|
jwt_has_role: {
|
|
41484
42546
|
Args: {
|
|
41485
42547
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -41490,9 +42552,19 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
41490
42552
|
Args: never;
|
|
41491
42553
|
Returns: {
|
|
41492
42554
|
avatar_url: string;
|
|
42555
|
+
color: string;
|
|
41493
42556
|
display_name: string;
|
|
41494
42557
|
email: string;
|
|
42558
|
+
hours_fri: number;
|
|
42559
|
+
hours_mon: number;
|
|
42560
|
+
hours_thu: number;
|
|
42561
|
+
hours_tue: number;
|
|
42562
|
+
hours_wed: number;
|
|
41495
42563
|
id: string;
|
|
42564
|
+
is_active: boolean;
|
|
42565
|
+
leave_balance_hours: number;
|
|
42566
|
+
persnr: string;
|
|
42567
|
+
phone: string;
|
|
41496
42568
|
roles: string[];
|
|
41497
42569
|
}[];
|
|
41498
42570
|
};
|
|
@@ -41819,17 +42891,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
41819
42891
|
Returns: string;
|
|
41820
42892
|
};
|
|
41821
42893
|
logistics_emit_event: {
|
|
41822
|
-
Args: {
|
|
41823
|
-
p_event_type: string;
|
|
41824
|
-
p_idempotency_key?: string;
|
|
41825
|
-
p_order_ref: string;
|
|
41826
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
41827
|
-
p_shadow?: boolean;
|
|
41828
|
-
p_source_module: string;
|
|
41829
|
-
p_strategy_id?: string;
|
|
41830
|
-
};
|
|
41831
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
41832
|
-
} | {
|
|
41833
42894
|
Args: {
|
|
41834
42895
|
p_event_type: string;
|
|
41835
42896
|
p_idempotency_key?: string;
|
|
@@ -42674,6 +43735,37 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
42674
43735
|
};
|
|
42675
43736
|
Returns: undefined;
|
|
42676
43737
|
};
|
|
43738
|
+
quote_create_from_source: {
|
|
43739
|
+
Args: {
|
|
43740
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
43741
|
+
_source_id: string;
|
|
43742
|
+
_source_type: string;
|
|
43743
|
+
};
|
|
43744
|
+
Returns: string;
|
|
43745
|
+
};
|
|
43746
|
+
quote_get_billable_lines: {
|
|
43747
|
+
Args: {
|
|
43748
|
+
_quotation_id: string;
|
|
43749
|
+
};
|
|
43750
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43751
|
+
};
|
|
43752
|
+
quote_get_summary: {
|
|
43753
|
+
Args: {
|
|
43754
|
+
_quotation_id: string;
|
|
43755
|
+
};
|
|
43756
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43757
|
+
};
|
|
43758
|
+
quote_list_packages: {
|
|
43759
|
+
Args: never;
|
|
43760
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43761
|
+
};
|
|
43762
|
+
quote_list_sources: {
|
|
43763
|
+
Args: {
|
|
43764
|
+
_limit?: number;
|
|
43765
|
+
_source_type?: string;
|
|
43766
|
+
};
|
|
43767
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
43768
|
+
};
|
|
42677
43769
|
recompute_all_reserved_stock: {
|
|
42678
43770
|
Args: never;
|
|
42679
43771
|
Returns: undefined;
|
|
@@ -43209,6 +44301,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
43209
44301
|
};
|
|
43210
44302
|
Returns: undefined;
|
|
43211
44303
|
};
|
|
44304
|
+
sync_sick_time_off: {
|
|
44305
|
+
Args: {
|
|
44306
|
+
_period_id: string;
|
|
44307
|
+
};
|
|
44308
|
+
Returns: number;
|
|
44309
|
+
};
|
|
43212
44310
|
trade_item_stock_duplicates: {
|
|
43213
44311
|
Args: never;
|
|
43214
44312
|
Returns: {
|
|
@@ -43282,11 +44380,31 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
43282
44380
|
Args: never;
|
|
43283
44381
|
Returns: string;
|
|
43284
44382
|
};
|
|
44383
|
+
wo_create_from_source: {
|
|
44384
|
+
Args: {
|
|
44385
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
44386
|
+
_source_id: string;
|
|
44387
|
+
_source_type: string;
|
|
44388
|
+
};
|
|
44389
|
+
Returns: string;
|
|
44390
|
+
};
|
|
44391
|
+
wo_get_billable_lines: {
|
|
44392
|
+
Args: {
|
|
44393
|
+
_work_order_id: string;
|
|
44394
|
+
};
|
|
44395
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44396
|
+
};
|
|
44397
|
+
wo_get_summary: {
|
|
44398
|
+
Args: {
|
|
44399
|
+
_work_order_id: string;
|
|
44400
|
+
};
|
|
44401
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
44402
|
+
};
|
|
43285
44403
|
};
|
|
43286
44404
|
Enums: {
|
|
43287
44405
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
43288
44406
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
43289
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
44407
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
43290
44408
|
doc_orientation: "portrait" | "landscape";
|
|
43291
44409
|
exact_env: "staging" | "live";
|
|
43292
44410
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -48363,6 +49481,42 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
48363
49481
|
};
|
|
48364
49482
|
Relationships: [];
|
|
48365
49483
|
};
|
|
49484
|
+
facturen: {
|
|
49485
|
+
Row: {
|
|
49486
|
+
bedrag_incl_btw: number;
|
|
49487
|
+
created_at: string;
|
|
49488
|
+
datum: string;
|
|
49489
|
+
factuurnummer: string;
|
|
49490
|
+
id: string;
|
|
49491
|
+
klantnaam: string;
|
|
49492
|
+
status: string;
|
|
49493
|
+
updated_at: string;
|
|
49494
|
+
user_id: string;
|
|
49495
|
+
};
|
|
49496
|
+
Insert: {
|
|
49497
|
+
bedrag_incl_btw: number;
|
|
49498
|
+
created_at?: string;
|
|
49499
|
+
datum?: string;
|
|
49500
|
+
factuurnummer: string;
|
|
49501
|
+
id?: string;
|
|
49502
|
+
klantnaam: string;
|
|
49503
|
+
status?: string;
|
|
49504
|
+
updated_at?: string;
|
|
49505
|
+
user_id?: string;
|
|
49506
|
+
};
|
|
49507
|
+
Update: {
|
|
49508
|
+
bedrag_incl_btw?: number;
|
|
49509
|
+
created_at?: string;
|
|
49510
|
+
datum?: string;
|
|
49511
|
+
factuurnummer?: string;
|
|
49512
|
+
id?: string;
|
|
49513
|
+
klantnaam?: string;
|
|
49514
|
+
status?: string;
|
|
49515
|
+
updated_at?: string;
|
|
49516
|
+
user_id?: string;
|
|
49517
|
+
};
|
|
49518
|
+
Relationships: [];
|
|
49519
|
+
};
|
|
48366
49520
|
floricode_connection_settings: {
|
|
48367
49521
|
Row: {
|
|
48368
49522
|
catalog_key: string | null;
|
|
@@ -51087,6 +52241,258 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
51087
52241
|
};
|
|
51088
52242
|
Relationships: [];
|
|
51089
52243
|
};
|
|
52244
|
+
itk_offerte_events: {
|
|
52245
|
+
Row: {
|
|
52246
|
+
created_at: string;
|
|
52247
|
+
event_type: string;
|
|
52248
|
+
id: string;
|
|
52249
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
52250
|
+
offerte_id: string;
|
|
52251
|
+
omschrijving: string | null;
|
|
52252
|
+
user_id: string | null;
|
|
52253
|
+
};
|
|
52254
|
+
Insert: {
|
|
52255
|
+
created_at?: string;
|
|
52256
|
+
event_type: string;
|
|
52257
|
+
id?: string;
|
|
52258
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52259
|
+
offerte_id: string;
|
|
52260
|
+
omschrijving?: string | null;
|
|
52261
|
+
user_id?: string | null;
|
|
52262
|
+
};
|
|
52263
|
+
Update: {
|
|
52264
|
+
created_at?: string;
|
|
52265
|
+
event_type?: string;
|
|
52266
|
+
id?: string;
|
|
52267
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
52268
|
+
offerte_id?: string;
|
|
52269
|
+
omschrijving?: string | null;
|
|
52270
|
+
user_id?: string | null;
|
|
52271
|
+
};
|
|
52272
|
+
Relationships: [{
|
|
52273
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
52274
|
+
columns: ["offerte_id"];
|
|
52275
|
+
isOneToOne: false;
|
|
52276
|
+
referencedRelation: "itk_offertes";
|
|
52277
|
+
referencedColumns: ["id"];
|
|
52278
|
+
}];
|
|
52279
|
+
};
|
|
52280
|
+
itk_offerte_regels: {
|
|
52281
|
+
Row: {
|
|
52282
|
+
created_at: string;
|
|
52283
|
+
id: string;
|
|
52284
|
+
line_total_cents: number;
|
|
52285
|
+
offerte_id: string;
|
|
52286
|
+
omschrijving: string;
|
|
52287
|
+
package_id: string | null;
|
|
52288
|
+
quantity: number;
|
|
52289
|
+
sort_order: number;
|
|
52290
|
+
source: string;
|
|
52291
|
+
unit_price_cents: number;
|
|
52292
|
+
updated_at: string;
|
|
52293
|
+
};
|
|
52294
|
+
Insert: {
|
|
52295
|
+
created_at?: string;
|
|
52296
|
+
id?: string;
|
|
52297
|
+
line_total_cents?: number;
|
|
52298
|
+
offerte_id: string;
|
|
52299
|
+
omschrijving?: string;
|
|
52300
|
+
package_id?: string | null;
|
|
52301
|
+
quantity?: number;
|
|
52302
|
+
sort_order?: number;
|
|
52303
|
+
source?: string;
|
|
52304
|
+
unit_price_cents?: number;
|
|
52305
|
+
updated_at?: string;
|
|
52306
|
+
};
|
|
52307
|
+
Update: {
|
|
52308
|
+
created_at?: string;
|
|
52309
|
+
id?: string;
|
|
52310
|
+
line_total_cents?: number;
|
|
52311
|
+
offerte_id?: string;
|
|
52312
|
+
omschrijving?: string;
|
|
52313
|
+
package_id?: string | null;
|
|
52314
|
+
quantity?: number;
|
|
52315
|
+
sort_order?: number;
|
|
52316
|
+
source?: string;
|
|
52317
|
+
unit_price_cents?: number;
|
|
52318
|
+
updated_at?: string;
|
|
52319
|
+
};
|
|
52320
|
+
Relationships: [{
|
|
52321
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
52322
|
+
columns: ["offerte_id"];
|
|
52323
|
+
isOneToOne: false;
|
|
52324
|
+
referencedRelation: "itk_offertes";
|
|
52325
|
+
referencedColumns: ["id"];
|
|
52326
|
+
}, {
|
|
52327
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
52328
|
+
columns: ["package_id"];
|
|
52329
|
+
isOneToOne: false;
|
|
52330
|
+
referencedRelation: "werkbon_packages";
|
|
52331
|
+
referencedColumns: ["id"];
|
|
52332
|
+
}];
|
|
52333
|
+
};
|
|
52334
|
+
itk_offerte_settings: {
|
|
52335
|
+
Row: {
|
|
52336
|
+
auto_convert_binnen_mandaat: boolean;
|
|
52337
|
+
created_at: string;
|
|
52338
|
+
default_geldigheid_dagen: number;
|
|
52339
|
+
default_vat_rate: number;
|
|
52340
|
+
id: string;
|
|
52341
|
+
singleton: boolean;
|
|
52342
|
+
updated_at: string;
|
|
52343
|
+
};
|
|
52344
|
+
Insert: {
|
|
52345
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52346
|
+
created_at?: string;
|
|
52347
|
+
default_geldigheid_dagen?: number;
|
|
52348
|
+
default_vat_rate?: number;
|
|
52349
|
+
id?: string;
|
|
52350
|
+
singleton?: boolean;
|
|
52351
|
+
updated_at?: string;
|
|
52352
|
+
};
|
|
52353
|
+
Update: {
|
|
52354
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
52355
|
+
created_at?: string;
|
|
52356
|
+
default_geldigheid_dagen?: number;
|
|
52357
|
+
default_vat_rate?: number;
|
|
52358
|
+
id?: string;
|
|
52359
|
+
singleton?: boolean;
|
|
52360
|
+
updated_at?: string;
|
|
52361
|
+
};
|
|
52362
|
+
Relationships: [];
|
|
52363
|
+
};
|
|
52364
|
+
itk_offertes: {
|
|
52365
|
+
Row: {
|
|
52366
|
+
ai_generated: boolean;
|
|
52367
|
+
approved_at: string | null;
|
|
52368
|
+
binnen_mandaat: boolean;
|
|
52369
|
+
contact_id: string | null;
|
|
52370
|
+
converted_at: string | null;
|
|
52371
|
+
created_at: string;
|
|
52372
|
+
created_by: string | null;
|
|
52373
|
+
customer_id: string | null;
|
|
52374
|
+
follow_up_werkbon_id: string | null;
|
|
52375
|
+
id: string;
|
|
52376
|
+
jaar: number;
|
|
52377
|
+
mandaat_restant_cents: number;
|
|
52378
|
+
notities: string | null;
|
|
52379
|
+
offerte_number: string | null;
|
|
52380
|
+
omschrijving: string;
|
|
52381
|
+
rejected_at: string | null;
|
|
52382
|
+
sent_at: string | null;
|
|
52383
|
+
source_number: string | null;
|
|
52384
|
+
source_ref: string | null;
|
|
52385
|
+
source_type: string;
|
|
52386
|
+
status: string;
|
|
52387
|
+
subtotal_cents: number;
|
|
52388
|
+
total_cents: number;
|
|
52389
|
+
updated_at: string;
|
|
52390
|
+
valid_until: string | null;
|
|
52391
|
+
vat_cents: number;
|
|
52392
|
+
vat_rate: number;
|
|
52393
|
+
viewed_at: string | null;
|
|
52394
|
+
volgnummer: number | null;
|
|
52395
|
+
werkbon_id: string | null;
|
|
52396
|
+
work_location_id: string | null;
|
|
52397
|
+
};
|
|
52398
|
+
Insert: {
|
|
52399
|
+
ai_generated?: boolean;
|
|
52400
|
+
approved_at?: string | null;
|
|
52401
|
+
binnen_mandaat?: boolean;
|
|
52402
|
+
contact_id?: string | null;
|
|
52403
|
+
converted_at?: string | null;
|
|
52404
|
+
created_at?: string;
|
|
52405
|
+
created_by?: string | null;
|
|
52406
|
+
customer_id?: string | null;
|
|
52407
|
+
follow_up_werkbon_id?: string | null;
|
|
52408
|
+
id?: string;
|
|
52409
|
+
jaar?: number;
|
|
52410
|
+
mandaat_restant_cents?: number;
|
|
52411
|
+
notities?: string | null;
|
|
52412
|
+
offerte_number?: string | null;
|
|
52413
|
+
omschrijving?: string;
|
|
52414
|
+
rejected_at?: string | null;
|
|
52415
|
+
sent_at?: string | null;
|
|
52416
|
+
source_number?: string | null;
|
|
52417
|
+
source_ref?: string | null;
|
|
52418
|
+
source_type?: string;
|
|
52419
|
+
status?: string;
|
|
52420
|
+
subtotal_cents?: number;
|
|
52421
|
+
total_cents?: number;
|
|
52422
|
+
updated_at?: string;
|
|
52423
|
+
valid_until?: string | null;
|
|
52424
|
+
vat_cents?: number;
|
|
52425
|
+
vat_rate?: number;
|
|
52426
|
+
viewed_at?: string | null;
|
|
52427
|
+
volgnummer?: number | null;
|
|
52428
|
+
werkbon_id?: string | null;
|
|
52429
|
+
work_location_id?: string | null;
|
|
52430
|
+
};
|
|
52431
|
+
Update: {
|
|
52432
|
+
ai_generated?: boolean;
|
|
52433
|
+
approved_at?: string | null;
|
|
52434
|
+
binnen_mandaat?: boolean;
|
|
52435
|
+
contact_id?: string | null;
|
|
52436
|
+
converted_at?: string | null;
|
|
52437
|
+
created_at?: string;
|
|
52438
|
+
created_by?: string | null;
|
|
52439
|
+
customer_id?: string | null;
|
|
52440
|
+
follow_up_werkbon_id?: string | null;
|
|
52441
|
+
id?: string;
|
|
52442
|
+
jaar?: number;
|
|
52443
|
+
mandaat_restant_cents?: number;
|
|
52444
|
+
notities?: string | null;
|
|
52445
|
+
offerte_number?: string | null;
|
|
52446
|
+
omschrijving?: string;
|
|
52447
|
+
rejected_at?: string | null;
|
|
52448
|
+
sent_at?: string | null;
|
|
52449
|
+
source_number?: string | null;
|
|
52450
|
+
source_ref?: string | null;
|
|
52451
|
+
source_type?: string;
|
|
52452
|
+
status?: string;
|
|
52453
|
+
subtotal_cents?: number;
|
|
52454
|
+
total_cents?: number;
|
|
52455
|
+
updated_at?: string;
|
|
52456
|
+
valid_until?: string | null;
|
|
52457
|
+
vat_cents?: number;
|
|
52458
|
+
vat_rate?: number;
|
|
52459
|
+
viewed_at?: string | null;
|
|
52460
|
+
volgnummer?: number | null;
|
|
52461
|
+
werkbon_id?: string | null;
|
|
52462
|
+
work_location_id?: string | null;
|
|
52463
|
+
};
|
|
52464
|
+
Relationships: [{
|
|
52465
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
52466
|
+
columns: ["contact_id"];
|
|
52467
|
+
isOneToOne: false;
|
|
52468
|
+
referencedRelation: "itk_contact_persons";
|
|
52469
|
+
referencedColumns: ["id"];
|
|
52470
|
+
}, {
|
|
52471
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
52472
|
+
columns: ["customer_id"];
|
|
52473
|
+
isOneToOne: false;
|
|
52474
|
+
referencedRelation: "itk_customers";
|
|
52475
|
+
referencedColumns: ["id"];
|
|
52476
|
+
}, {
|
|
52477
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
52478
|
+
columns: ["follow_up_werkbon_id"];
|
|
52479
|
+
isOneToOne: false;
|
|
52480
|
+
referencedRelation: "werkbonnen";
|
|
52481
|
+
referencedColumns: ["id"];
|
|
52482
|
+
}, {
|
|
52483
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
52484
|
+
columns: ["werkbon_id"];
|
|
52485
|
+
isOneToOne: false;
|
|
52486
|
+
referencedRelation: "werkbonnen";
|
|
52487
|
+
referencedColumns: ["id"];
|
|
52488
|
+
}, {
|
|
52489
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
52490
|
+
columns: ["work_location_id"];
|
|
52491
|
+
isOneToOne: false;
|
|
52492
|
+
referencedRelation: "itk_work_locations";
|
|
52493
|
+
referencedColumns: ["id"];
|
|
52494
|
+
}];
|
|
52495
|
+
};
|
|
51090
52496
|
itk_work_locations: {
|
|
51091
52497
|
Row: {
|
|
51092
52498
|
city: string | null;
|
|
@@ -53460,6 +54866,63 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
53460
54866
|
referencedColumns: ["id"];
|
|
53461
54867
|
}];
|
|
53462
54868
|
};
|
|
54869
|
+
medewerker_details: {
|
|
54870
|
+
Row: {
|
|
54871
|
+
color: string | null;
|
|
54872
|
+
created_at: string;
|
|
54873
|
+
hours_fri: number | null;
|
|
54874
|
+
hours_mon: number | null;
|
|
54875
|
+
hours_thu: number | null;
|
|
54876
|
+
hours_tue: number | null;
|
|
54877
|
+
hours_wed: number | null;
|
|
54878
|
+
id: string;
|
|
54879
|
+
is_active: boolean;
|
|
54880
|
+
leave_balance_hours: number;
|
|
54881
|
+
persnr: string | null;
|
|
54882
|
+
phone: string | null;
|
|
54883
|
+
profile_id: string;
|
|
54884
|
+
updated_at: string;
|
|
54885
|
+
};
|
|
54886
|
+
Insert: {
|
|
54887
|
+
color?: string | null;
|
|
54888
|
+
created_at?: string;
|
|
54889
|
+
hours_fri?: number | null;
|
|
54890
|
+
hours_mon?: number | null;
|
|
54891
|
+
hours_thu?: number | null;
|
|
54892
|
+
hours_tue?: number | null;
|
|
54893
|
+
hours_wed?: number | null;
|
|
54894
|
+
id?: string;
|
|
54895
|
+
is_active?: boolean;
|
|
54896
|
+
leave_balance_hours?: number;
|
|
54897
|
+
persnr?: string | null;
|
|
54898
|
+
phone?: string | null;
|
|
54899
|
+
profile_id: string;
|
|
54900
|
+
updated_at?: string;
|
|
54901
|
+
};
|
|
54902
|
+
Update: {
|
|
54903
|
+
color?: string | null;
|
|
54904
|
+
created_at?: string;
|
|
54905
|
+
hours_fri?: number | null;
|
|
54906
|
+
hours_mon?: number | null;
|
|
54907
|
+
hours_thu?: number | null;
|
|
54908
|
+
hours_tue?: number | null;
|
|
54909
|
+
hours_wed?: number | null;
|
|
54910
|
+
id?: string;
|
|
54911
|
+
is_active?: boolean;
|
|
54912
|
+
leave_balance_hours?: number;
|
|
54913
|
+
persnr?: string | null;
|
|
54914
|
+
phone?: string | null;
|
|
54915
|
+
profile_id?: string;
|
|
54916
|
+
updated_at?: string;
|
|
54917
|
+
};
|
|
54918
|
+
Relationships: [{
|
|
54919
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
54920
|
+
columns: ["profile_id"];
|
|
54921
|
+
isOneToOne: true;
|
|
54922
|
+
referencedRelation: "profiles";
|
|
54923
|
+
referencedColumns: ["id"];
|
|
54924
|
+
}];
|
|
54925
|
+
};
|
|
53463
54926
|
module_features: {
|
|
53464
54927
|
Row: {
|
|
53465
54928
|
created_at: string;
|
|
@@ -54753,6 +56216,8 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
54753
56216
|
orders: {
|
|
54754
56217
|
Row: {
|
|
54755
56218
|
buffer_id: string | null;
|
|
56219
|
+
cancel_reason: string | null;
|
|
56220
|
+
cancelled_at: string | null;
|
|
54756
56221
|
created_at: string;
|
|
54757
56222
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
54758
56223
|
customer_id: string | null;
|
|
@@ -54775,6 +56240,8 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
54775
56240
|
};
|
|
54776
56241
|
Insert: {
|
|
54777
56242
|
buffer_id?: string | null;
|
|
56243
|
+
cancel_reason?: string | null;
|
|
56244
|
+
cancelled_at?: string | null;
|
|
54778
56245
|
created_at?: string;
|
|
54779
56246
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54780
56247
|
customer_id?: string | null;
|
|
@@ -54797,6 +56264,8 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
54797
56264
|
};
|
|
54798
56265
|
Update: {
|
|
54799
56266
|
buffer_id?: string | null;
|
|
56267
|
+
cancel_reason?: string | null;
|
|
56268
|
+
cancelled_at?: string | null;
|
|
54800
56269
|
created_at?: string;
|
|
54801
56270
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
54802
56271
|
customer_id?: string | null;
|
|
@@ -56859,6 +58328,66 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
56859
58328
|
};
|
|
56860
58329
|
Relationships: [];
|
|
56861
58330
|
};
|
|
58331
|
+
profile_modules: {
|
|
58332
|
+
Row: {
|
|
58333
|
+
created_at: string;
|
|
58334
|
+
id: string;
|
|
58335
|
+
module_id: string;
|
|
58336
|
+
profile_id: string;
|
|
58337
|
+
};
|
|
58338
|
+
Insert: {
|
|
58339
|
+
created_at?: string;
|
|
58340
|
+
id?: string;
|
|
58341
|
+
module_id: string;
|
|
58342
|
+
profile_id: string;
|
|
58343
|
+
};
|
|
58344
|
+
Update: {
|
|
58345
|
+
created_at?: string;
|
|
58346
|
+
id?: string;
|
|
58347
|
+
module_id?: string;
|
|
58348
|
+
profile_id?: string;
|
|
58349
|
+
};
|
|
58350
|
+
Relationships: [{
|
|
58351
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
58352
|
+
columns: ["profile_id"];
|
|
58353
|
+
isOneToOne: false;
|
|
58354
|
+
referencedRelation: "profiles_org";
|
|
58355
|
+
referencedColumns: ["id"];
|
|
58356
|
+
}];
|
|
58357
|
+
};
|
|
58358
|
+
profile_roles: {
|
|
58359
|
+
Row: {
|
|
58360
|
+
created_at: string;
|
|
58361
|
+
id: string;
|
|
58362
|
+
profile_id: string;
|
|
58363
|
+
role_id: string;
|
|
58364
|
+
};
|
|
58365
|
+
Insert: {
|
|
58366
|
+
created_at?: string;
|
|
58367
|
+
id?: string;
|
|
58368
|
+
profile_id: string;
|
|
58369
|
+
role_id: string;
|
|
58370
|
+
};
|
|
58371
|
+
Update: {
|
|
58372
|
+
created_at?: string;
|
|
58373
|
+
id?: string;
|
|
58374
|
+
profile_id?: string;
|
|
58375
|
+
role_id?: string;
|
|
58376
|
+
};
|
|
58377
|
+
Relationships: [{
|
|
58378
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
58379
|
+
columns: ["profile_id"];
|
|
58380
|
+
isOneToOne: false;
|
|
58381
|
+
referencedRelation: "profiles_org";
|
|
58382
|
+
referencedColumns: ["id"];
|
|
58383
|
+
}, {
|
|
58384
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
58385
|
+
columns: ["role_id"];
|
|
58386
|
+
isOneToOne: false;
|
|
58387
|
+
referencedRelation: "roles";
|
|
58388
|
+
referencedColumns: ["id"];
|
|
58389
|
+
}];
|
|
58390
|
+
};
|
|
56862
58391
|
profiles: {
|
|
56863
58392
|
Row: {
|
|
56864
58393
|
address: string | null;
|
|
@@ -56904,6 +58433,39 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
56904
58433
|
referencedColumns: ["id"];
|
|
56905
58434
|
}];
|
|
56906
58435
|
};
|
|
58436
|
+
profiles_org: {
|
|
58437
|
+
Row: {
|
|
58438
|
+
created_at: string;
|
|
58439
|
+
id: string;
|
|
58440
|
+
is_default: boolean;
|
|
58441
|
+
name: string;
|
|
58442
|
+
tenant_id: string | null;
|
|
58443
|
+
updated_at: string;
|
|
58444
|
+
};
|
|
58445
|
+
Insert: {
|
|
58446
|
+
created_at?: string;
|
|
58447
|
+
id?: string;
|
|
58448
|
+
is_default?: boolean;
|
|
58449
|
+
name: string;
|
|
58450
|
+
tenant_id?: string | null;
|
|
58451
|
+
updated_at?: string;
|
|
58452
|
+
};
|
|
58453
|
+
Update: {
|
|
58454
|
+
created_at?: string;
|
|
58455
|
+
id?: string;
|
|
58456
|
+
is_default?: boolean;
|
|
58457
|
+
name?: string;
|
|
58458
|
+
tenant_id?: string | null;
|
|
58459
|
+
updated_at?: string;
|
|
58460
|
+
};
|
|
58461
|
+
Relationships: [{
|
|
58462
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
58463
|
+
columns: ["tenant_id"];
|
|
58464
|
+
isOneToOne: false;
|
|
58465
|
+
referencedRelation: "tenants";
|
|
58466
|
+
referencedColumns: ["id"];
|
|
58467
|
+
}];
|
|
58468
|
+
};
|
|
56907
58469
|
projects: {
|
|
56908
58470
|
Row: {
|
|
56909
58471
|
contact_name: string | null;
|
|
@@ -58078,6 +59640,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
58078
59640
|
type: string;
|
|
58079
59641
|
updated_at: string;
|
|
58080
59642
|
vereist_medewerker: boolean;
|
|
59643
|
+
werkplek: string | null;
|
|
58081
59644
|
};
|
|
58082
59645
|
Insert: {
|
|
58083
59646
|
actief?: boolean;
|
|
@@ -58091,6 +59654,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
58091
59654
|
type?: string;
|
|
58092
59655
|
updated_at?: string;
|
|
58093
59656
|
vereist_medewerker?: boolean;
|
|
59657
|
+
werkplek?: string | null;
|
|
58094
59658
|
};
|
|
58095
59659
|
Update: {
|
|
58096
59660
|
actief?: boolean;
|
|
@@ -58104,9 +59668,46 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
58104
59668
|
type?: string;
|
|
58105
59669
|
updated_at?: string;
|
|
58106
59670
|
vereist_medewerker?: boolean;
|
|
59671
|
+
werkplek?: string | null;
|
|
58107
59672
|
};
|
|
58108
59673
|
Relationships: [];
|
|
58109
59674
|
};
|
|
59675
|
+
sick_periods: {
|
|
59676
|
+
Row: {
|
|
59677
|
+
created_at: string;
|
|
59678
|
+
employee_id: string;
|
|
59679
|
+
end_date: string | null;
|
|
59680
|
+
id: string;
|
|
59681
|
+
notes: string | null;
|
|
59682
|
+
start_date: string;
|
|
59683
|
+
updated_at: string;
|
|
59684
|
+
};
|
|
59685
|
+
Insert: {
|
|
59686
|
+
created_at?: string;
|
|
59687
|
+
employee_id: string;
|
|
59688
|
+
end_date?: string | null;
|
|
59689
|
+
id?: string;
|
|
59690
|
+
notes?: string | null;
|
|
59691
|
+
start_date: string;
|
|
59692
|
+
updated_at?: string;
|
|
59693
|
+
};
|
|
59694
|
+
Update: {
|
|
59695
|
+
created_at?: string;
|
|
59696
|
+
employee_id?: string;
|
|
59697
|
+
end_date?: string | null;
|
|
59698
|
+
id?: string;
|
|
59699
|
+
notes?: string | null;
|
|
59700
|
+
start_date?: string;
|
|
59701
|
+
updated_at?: string;
|
|
59702
|
+
};
|
|
59703
|
+
Relationships: [{
|
|
59704
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
59705
|
+
columns: ["employee_id"];
|
|
59706
|
+
isOneToOne: false;
|
|
59707
|
+
referencedRelation: "profiles";
|
|
59708
|
+
referencedColumns: ["id"];
|
|
59709
|
+
}];
|
|
59710
|
+
};
|
|
58110
59711
|
sidebar_config: {
|
|
58111
59712
|
Row: {
|
|
58112
59713
|
id: string;
|
|
@@ -62791,6 +64392,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
62791
64392
|
};
|
|
62792
64393
|
Returns: string;
|
|
62793
64394
|
};
|
|
64395
|
+
employee_day_hours: {
|
|
64396
|
+
Args: {
|
|
64397
|
+
_day: string;
|
|
64398
|
+
_employee_id: string;
|
|
64399
|
+
};
|
|
64400
|
+
Returns: number;
|
|
64401
|
+
};
|
|
62794
64402
|
enqueue_cart_replan_if_unlocked: {
|
|
62795
64403
|
Args: {
|
|
62796
64404
|
p_order_id: string;
|
|
@@ -63144,6 +64752,19 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
63144
64752
|
Args: never;
|
|
63145
64753
|
Returns: boolean;
|
|
63146
64754
|
};
|
|
64755
|
+
itk_offerte_naar_werkbon: {
|
|
64756
|
+
Args: {
|
|
64757
|
+
_offerte_id: string;
|
|
64758
|
+
};
|
|
64759
|
+
Returns: string;
|
|
64760
|
+
};
|
|
64761
|
+
itk_offerte_restant_mandaat: {
|
|
64762
|
+
Args: {
|
|
64763
|
+
_exclude_offerte_id?: string;
|
|
64764
|
+
_werkbon_id: string;
|
|
64765
|
+
};
|
|
64766
|
+
Returns: number;
|
|
64767
|
+
};
|
|
63147
64768
|
jwt_has_role: {
|
|
63148
64769
|
Args: {
|
|
63149
64770
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -63154,9 +64775,19 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
63154
64775
|
Args: never;
|
|
63155
64776
|
Returns: {
|
|
63156
64777
|
avatar_url: string;
|
|
64778
|
+
color: string;
|
|
63157
64779
|
display_name: string;
|
|
63158
64780
|
email: string;
|
|
64781
|
+
hours_fri: number;
|
|
64782
|
+
hours_mon: number;
|
|
64783
|
+
hours_thu: number;
|
|
64784
|
+
hours_tue: number;
|
|
64785
|
+
hours_wed: number;
|
|
63159
64786
|
id: string;
|
|
64787
|
+
is_active: boolean;
|
|
64788
|
+
leave_balance_hours: number;
|
|
64789
|
+
persnr: string;
|
|
64790
|
+
phone: string;
|
|
63160
64791
|
roles: string[];
|
|
63161
64792
|
}[];
|
|
63162
64793
|
};
|
|
@@ -63483,17 +65114,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
63483
65114
|
Returns: string;
|
|
63484
65115
|
};
|
|
63485
65116
|
logistics_emit_event: {
|
|
63486
|
-
Args: {
|
|
63487
|
-
p_event_type: string;
|
|
63488
|
-
p_idempotency_key?: string;
|
|
63489
|
-
p_order_ref: string;
|
|
63490
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
63491
|
-
p_shadow?: boolean;
|
|
63492
|
-
p_source_module: string;
|
|
63493
|
-
p_strategy_id?: string;
|
|
63494
|
-
};
|
|
63495
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
63496
|
-
} | {
|
|
63497
65117
|
Args: {
|
|
63498
65118
|
p_event_type: string;
|
|
63499
65119
|
p_idempotency_key?: string;
|
|
@@ -64338,6 +65958,37 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
64338
65958
|
};
|
|
64339
65959
|
Returns: undefined;
|
|
64340
65960
|
};
|
|
65961
|
+
quote_create_from_source: {
|
|
65962
|
+
Args: {
|
|
65963
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
65964
|
+
_source_id: string;
|
|
65965
|
+
_source_type: string;
|
|
65966
|
+
};
|
|
65967
|
+
Returns: string;
|
|
65968
|
+
};
|
|
65969
|
+
quote_get_billable_lines: {
|
|
65970
|
+
Args: {
|
|
65971
|
+
_quotation_id: string;
|
|
65972
|
+
};
|
|
65973
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65974
|
+
};
|
|
65975
|
+
quote_get_summary: {
|
|
65976
|
+
Args: {
|
|
65977
|
+
_quotation_id: string;
|
|
65978
|
+
};
|
|
65979
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65980
|
+
};
|
|
65981
|
+
quote_list_packages: {
|
|
65982
|
+
Args: never;
|
|
65983
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65984
|
+
};
|
|
65985
|
+
quote_list_sources: {
|
|
65986
|
+
Args: {
|
|
65987
|
+
_limit?: number;
|
|
65988
|
+
_source_type?: string;
|
|
65989
|
+
};
|
|
65990
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
65991
|
+
};
|
|
64341
65992
|
recompute_all_reserved_stock: {
|
|
64342
65993
|
Args: never;
|
|
64343
65994
|
Returns: undefined;
|
|
@@ -64873,6 +66524,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
64873
66524
|
};
|
|
64874
66525
|
Returns: undefined;
|
|
64875
66526
|
};
|
|
66527
|
+
sync_sick_time_off: {
|
|
66528
|
+
Args: {
|
|
66529
|
+
_period_id: string;
|
|
66530
|
+
};
|
|
66531
|
+
Returns: number;
|
|
66532
|
+
};
|
|
64876
66533
|
trade_item_stock_duplicates: {
|
|
64877
66534
|
Args: never;
|
|
64878
66535
|
Returns: {
|
|
@@ -64946,11 +66603,31 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
64946
66603
|
Args: never;
|
|
64947
66604
|
Returns: string;
|
|
64948
66605
|
};
|
|
66606
|
+
wo_create_from_source: {
|
|
66607
|
+
Args: {
|
|
66608
|
+
_payload?: import("../integrations/supabase/types").Json;
|
|
66609
|
+
_source_id: string;
|
|
66610
|
+
_source_type: string;
|
|
66611
|
+
};
|
|
66612
|
+
Returns: string;
|
|
66613
|
+
};
|
|
66614
|
+
wo_get_billable_lines: {
|
|
66615
|
+
Args: {
|
|
66616
|
+
_work_order_id: string;
|
|
66617
|
+
};
|
|
66618
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66619
|
+
};
|
|
66620
|
+
wo_get_summary: {
|
|
66621
|
+
Args: {
|
|
66622
|
+
_work_order_id: string;
|
|
66623
|
+
};
|
|
66624
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
66625
|
+
};
|
|
64949
66626
|
};
|
|
64950
66627
|
Enums: {
|
|
64951
66628
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
64952
66629
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
64953
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
66630
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
64954
66631
|
doc_orientation: "portrait" | "landscape";
|
|
64955
66632
|
exact_env: "staging" | "live";
|
|
64956
66633
|
exact_push_status: "pending" | "sent" | "error";
|