@flowselections/actie-mail-kwekers-erp-mathot 1.0.19 → 1.0.21
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/settings/AfzenderSettingsCard.d.ts +2 -0
- package/dist-lib/components/settings/AfzenderSettingsCard.d.ts.map +1 -0
- package/dist-lib/components/settings/AfzenderSettingsCard.js +30 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +277 -13
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +277 -13
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +277 -13
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +289 -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/branding.functions.d.ts +834 -48
- package/dist-lib/lib/branding.functions.d.ts.map +1 -1
- package/dist-lib/lib/campaigns.functions.d.ts +1385 -65
- package/dist-lib/lib/campaigns.functions.d.ts.map +1 -1
- package/dist-lib/lib/campaigns.functions.js +76 -66
- package/dist-lib/lib/stats.functions.d.ts +277 -13
- package/dist-lib/lib/stats.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -91,9 +91,7 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
91
91
|
last_synced_at?: string | null;
|
|
92
92
|
provider?: string;
|
|
93
93
|
selected_calendars?: import("../integrations/supabase/types").Json;
|
|
94
|
-
status
|
|
95
|
-
/** Verwijdert een logobestand uit de opslag. */
|
|
96
|
-
?: string;
|
|
94
|
+
status?: string;
|
|
97
95
|
sync_mode?: string;
|
|
98
96
|
updated_at?: string;
|
|
99
97
|
user_id?: string;
|
|
@@ -7771,6 +7769,249 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
7771
7769
|
};
|
|
7772
7770
|
Relationships: [];
|
|
7773
7771
|
};
|
|
7772
|
+
itk_offerte_events: {
|
|
7773
|
+
Row: {
|
|
7774
|
+
created_at: string;
|
|
7775
|
+
event_type: string;
|
|
7776
|
+
id: string;
|
|
7777
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
7778
|
+
offerte_id: string;
|
|
7779
|
+
omschrijving: string | null;
|
|
7780
|
+
user_id: string | null;
|
|
7781
|
+
};
|
|
7782
|
+
Insert: {
|
|
7783
|
+
created_at?: string;
|
|
7784
|
+
event_type: string;
|
|
7785
|
+
id?: string;
|
|
7786
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7787
|
+
offerte_id: string;
|
|
7788
|
+
omschrijving?: string | null;
|
|
7789
|
+
user_id?: string | null;
|
|
7790
|
+
};
|
|
7791
|
+
Update: {
|
|
7792
|
+
created_at?: string;
|
|
7793
|
+
event_type?: string;
|
|
7794
|
+
id?: string;
|
|
7795
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
7796
|
+
offerte_id?: string;
|
|
7797
|
+
omschrijving?: string | null;
|
|
7798
|
+
user_id?: string | null;
|
|
7799
|
+
};
|
|
7800
|
+
Relationships: [{
|
|
7801
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
7802
|
+
columns: ["offerte_id"];
|
|
7803
|
+
isOneToOne: false;
|
|
7804
|
+
referencedRelation: "itk_offertes";
|
|
7805
|
+
referencedColumns: ["id"];
|
|
7806
|
+
}];
|
|
7807
|
+
};
|
|
7808
|
+
itk_offerte_regels: {
|
|
7809
|
+
Row: {
|
|
7810
|
+
created_at: string;
|
|
7811
|
+
id: string;
|
|
7812
|
+
line_total_cents: number;
|
|
7813
|
+
offerte_id: string;
|
|
7814
|
+
omschrijving: string;
|
|
7815
|
+
package_id: string | null;
|
|
7816
|
+
quantity: number;
|
|
7817
|
+
sort_order: number;
|
|
7818
|
+
source: string;
|
|
7819
|
+
unit_price_cents: number;
|
|
7820
|
+
updated_at: string;
|
|
7821
|
+
};
|
|
7822
|
+
Insert: {
|
|
7823
|
+
created_at?: string;
|
|
7824
|
+
id?: string;
|
|
7825
|
+
line_total_cents?: number;
|
|
7826
|
+
offerte_id: string;
|
|
7827
|
+
omschrijving?: string;
|
|
7828
|
+
package_id?: string | null;
|
|
7829
|
+
quantity?: number;
|
|
7830
|
+
sort_order?: number;
|
|
7831
|
+
source?: string;
|
|
7832
|
+
unit_price_cents?: number;
|
|
7833
|
+
updated_at?: string;
|
|
7834
|
+
};
|
|
7835
|
+
Update: {
|
|
7836
|
+
created_at?: string;
|
|
7837
|
+
id?: string;
|
|
7838
|
+
line_total_cents?: number;
|
|
7839
|
+
offerte_id?: string;
|
|
7840
|
+
omschrijving?: string;
|
|
7841
|
+
package_id?: string | null;
|
|
7842
|
+
quantity?: number;
|
|
7843
|
+
sort_order?: number;
|
|
7844
|
+
source?: string;
|
|
7845
|
+
unit_price_cents?: number;
|
|
7846
|
+
updated_at?: string;
|
|
7847
|
+
};
|
|
7848
|
+
Relationships: [{
|
|
7849
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
7850
|
+
columns: ["offerte_id"];
|
|
7851
|
+
isOneToOne: false;
|
|
7852
|
+
referencedRelation: "itk_offertes";
|
|
7853
|
+
referencedColumns: ["id"];
|
|
7854
|
+
}, {
|
|
7855
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
7856
|
+
columns: ["package_id"];
|
|
7857
|
+
isOneToOne: false;
|
|
7858
|
+
referencedRelation: "werkbon_packages";
|
|
7859
|
+
referencedColumns: ["id"];
|
|
7860
|
+
}];
|
|
7861
|
+
};
|
|
7862
|
+
itk_offerte_settings: {
|
|
7863
|
+
Row: {
|
|
7864
|
+
auto_convert_binnen_mandaat: boolean;
|
|
7865
|
+
created_at: string;
|
|
7866
|
+
default_geldigheid_dagen: number;
|
|
7867
|
+
default_vat_rate: number;
|
|
7868
|
+
id: string;
|
|
7869
|
+
singleton: boolean;
|
|
7870
|
+
updated_at: string;
|
|
7871
|
+
};
|
|
7872
|
+
Insert: {
|
|
7873
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7874
|
+
created_at?: string;
|
|
7875
|
+
default_geldigheid_dagen?: number;
|
|
7876
|
+
default_vat_rate?: number;
|
|
7877
|
+
id?: string;
|
|
7878
|
+
singleton?: boolean;
|
|
7879
|
+
updated_at?: string;
|
|
7880
|
+
};
|
|
7881
|
+
Update: {
|
|
7882
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
7883
|
+
created_at?: string;
|
|
7884
|
+
default_geldigheid_dagen?: number;
|
|
7885
|
+
default_vat_rate?: number;
|
|
7886
|
+
id?: string;
|
|
7887
|
+
singleton?: boolean;
|
|
7888
|
+
updated_at?: string;
|
|
7889
|
+
};
|
|
7890
|
+
Relationships: [];
|
|
7891
|
+
};
|
|
7892
|
+
itk_offertes: {
|
|
7893
|
+
Row: {
|
|
7894
|
+
ai_generated: boolean;
|
|
7895
|
+
approved_at: string | null;
|
|
7896
|
+
binnen_mandaat: boolean;
|
|
7897
|
+
contact_id: string | null;
|
|
7898
|
+
converted_at: string | null;
|
|
7899
|
+
created_at: string;
|
|
7900
|
+
created_by: string | null;
|
|
7901
|
+
customer_id: string | null;
|
|
7902
|
+
follow_up_werkbon_id: string | null;
|
|
7903
|
+
id: string;
|
|
7904
|
+
jaar: number;
|
|
7905
|
+
mandaat_restant_cents: number;
|
|
7906
|
+
notities: string | null;
|
|
7907
|
+
offerte_number: string | null;
|
|
7908
|
+
omschrijving: string;
|
|
7909
|
+
rejected_at: string | null;
|
|
7910
|
+
sent_at: string | null;
|
|
7911
|
+
status: string;
|
|
7912
|
+
subtotal_cents: number;
|
|
7913
|
+
total_cents: number;
|
|
7914
|
+
updated_at: string;
|
|
7915
|
+
valid_until: string | null;
|
|
7916
|
+
vat_cents: number;
|
|
7917
|
+
vat_rate: number;
|
|
7918
|
+
viewed_at: string | null;
|
|
7919
|
+
volgnummer: number | null;
|
|
7920
|
+
werkbon_id: string | null;
|
|
7921
|
+
work_location_id: string | null;
|
|
7922
|
+
};
|
|
7923
|
+
Insert: {
|
|
7924
|
+
ai_generated?: boolean;
|
|
7925
|
+
approved_at?: string | null;
|
|
7926
|
+
binnen_mandaat?: boolean;
|
|
7927
|
+
contact_id?: string | null;
|
|
7928
|
+
converted_at?: string | null;
|
|
7929
|
+
created_at?: string;
|
|
7930
|
+
created_by?: string | null;
|
|
7931
|
+
customer_id?: string | null;
|
|
7932
|
+
follow_up_werkbon_id?: string | null;
|
|
7933
|
+
id?: string;
|
|
7934
|
+
jaar?: number;
|
|
7935
|
+
mandaat_restant_cents?: number;
|
|
7936
|
+
notities?: string | null;
|
|
7937
|
+
offerte_number?: string | null;
|
|
7938
|
+
omschrijving?: string;
|
|
7939
|
+
rejected_at?: string | null;
|
|
7940
|
+
sent_at?: string | null;
|
|
7941
|
+
status?: string;
|
|
7942
|
+
subtotal_cents?: number;
|
|
7943
|
+
total_cents?: number;
|
|
7944
|
+
updated_at?: string;
|
|
7945
|
+
valid_until?: string | null;
|
|
7946
|
+
vat_cents?: number;
|
|
7947
|
+
vat_rate?: number;
|
|
7948
|
+
viewed_at?: string | null;
|
|
7949
|
+
volgnummer?: number | null;
|
|
7950
|
+
werkbon_id?: string | null;
|
|
7951
|
+
work_location_id?: string | null;
|
|
7952
|
+
};
|
|
7953
|
+
Update: {
|
|
7954
|
+
ai_generated?: boolean;
|
|
7955
|
+
approved_at?: string | null;
|
|
7956
|
+
binnen_mandaat?: boolean;
|
|
7957
|
+
contact_id?: string | null;
|
|
7958
|
+
converted_at?: string | null;
|
|
7959
|
+
created_at?: string;
|
|
7960
|
+
created_by?: string | null;
|
|
7961
|
+
customer_id?: string | null;
|
|
7962
|
+
follow_up_werkbon_id?: string | null;
|
|
7963
|
+
id?: string;
|
|
7964
|
+
jaar?: number;
|
|
7965
|
+
mandaat_restant_cents?: number;
|
|
7966
|
+
notities?: string | null;
|
|
7967
|
+
offerte_number?: string | null;
|
|
7968
|
+
omschrijving?: string;
|
|
7969
|
+
rejected_at?: string | null;
|
|
7970
|
+
sent_at?: string | null;
|
|
7971
|
+
status?: string;
|
|
7972
|
+
subtotal_cents?: number;
|
|
7973
|
+
total_cents?: number;
|
|
7974
|
+
updated_at?: string;
|
|
7975
|
+
valid_until?: string | null;
|
|
7976
|
+
vat_cents?: number;
|
|
7977
|
+
vat_rate?: number;
|
|
7978
|
+
viewed_at?: string | null;
|
|
7979
|
+
volgnummer?: number | null;
|
|
7980
|
+
werkbon_id?: string | null;
|
|
7981
|
+
work_location_id?: string | null;
|
|
7982
|
+
};
|
|
7983
|
+
Relationships: [{
|
|
7984
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
7985
|
+
columns: ["contact_id"];
|
|
7986
|
+
isOneToOne: false;
|
|
7987
|
+
referencedRelation: "itk_contact_persons";
|
|
7988
|
+
referencedColumns: ["id"];
|
|
7989
|
+
}, {
|
|
7990
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
7991
|
+
columns: ["customer_id"];
|
|
7992
|
+
isOneToOne: false;
|
|
7993
|
+
referencedRelation: "itk_customers";
|
|
7994
|
+
referencedColumns: ["id"];
|
|
7995
|
+
}, {
|
|
7996
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
7997
|
+
columns: ["follow_up_werkbon_id"];
|
|
7998
|
+
isOneToOne: false;
|
|
7999
|
+
referencedRelation: "werkbonnen";
|
|
8000
|
+
referencedColumns: ["id"];
|
|
8001
|
+
}, {
|
|
8002
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8003
|
+
columns: ["werkbon_id"];
|
|
8004
|
+
isOneToOne: false;
|
|
8005
|
+
referencedRelation: "werkbonnen";
|
|
8006
|
+
referencedColumns: ["id"];
|
|
8007
|
+
}, {
|
|
8008
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8009
|
+
columns: ["work_location_id"];
|
|
8010
|
+
isOneToOne: false;
|
|
8011
|
+
referencedRelation: "itk_work_locations";
|
|
8012
|
+
referencedColumns: ["id"];
|
|
8013
|
+
}];
|
|
8014
|
+
};
|
|
7774
8015
|
itk_work_locations: {
|
|
7775
8016
|
Row: {
|
|
7776
8017
|
city: string | null;
|
|
@@ -10204,6 +10445,7 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
10204
10445
|
module_registry: {
|
|
10205
10446
|
Row: {
|
|
10206
10447
|
created_at: string;
|
|
10448
|
+
enforce: boolean;
|
|
10207
10449
|
is_active: boolean;
|
|
10208
10450
|
last_seen_at: string;
|
|
10209
10451
|
module_id: string;
|
|
@@ -10213,6 +10455,7 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
10213
10455
|
};
|
|
10214
10456
|
Insert: {
|
|
10215
10457
|
created_at?: string;
|
|
10458
|
+
enforce?: boolean;
|
|
10216
10459
|
is_active?: boolean;
|
|
10217
10460
|
last_seen_at?: string;
|
|
10218
10461
|
module_id: string;
|
|
@@ -10222,6 +10465,7 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
10222
10465
|
};
|
|
10223
10466
|
Update: {
|
|
10224
10467
|
created_at?: string;
|
|
10468
|
+
enforce?: boolean;
|
|
10225
10469
|
is_active?: boolean;
|
|
10226
10470
|
last_seen_at?: string;
|
|
10227
10471
|
module_id?: string;
|
|
@@ -14759,6 +15003,7 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
14759
15003
|
type: string;
|
|
14760
15004
|
updated_at: string;
|
|
14761
15005
|
vereist_medewerker: boolean;
|
|
15006
|
+
werkplek: string | null;
|
|
14762
15007
|
};
|
|
14763
15008
|
Insert: {
|
|
14764
15009
|
actief?: boolean;
|
|
@@ -14772,6 +15017,7 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
14772
15017
|
type?: string;
|
|
14773
15018
|
updated_at?: string;
|
|
14774
15019
|
vereist_medewerker?: boolean;
|
|
15020
|
+
werkplek?: string | null;
|
|
14775
15021
|
};
|
|
14776
15022
|
Update: {
|
|
14777
15023
|
actief?: boolean;
|
|
@@ -14785,6 +15031,7 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
14785
15031
|
type?: string;
|
|
14786
15032
|
updated_at?: string;
|
|
14787
15033
|
vereist_medewerker?: boolean;
|
|
15034
|
+
werkplek?: string | null;
|
|
14788
15035
|
};
|
|
14789
15036
|
Relationships: [];
|
|
14790
15037
|
};
|
|
@@ -18977,6 +19224,19 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
18977
19224
|
};
|
|
18978
19225
|
Returns: undefined;
|
|
18979
19226
|
};
|
|
19227
|
+
approve_mailbox_order_proposal: {
|
|
19228
|
+
Args: {
|
|
19229
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
19230
|
+
p_customer_id: string;
|
|
19231
|
+
p_delivery_date: string;
|
|
19232
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
19233
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
19234
|
+
p_notes: string;
|
|
19235
|
+
p_proposal_id: string;
|
|
19236
|
+
p_reviewed_by: string;
|
|
19237
|
+
};
|
|
19238
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19239
|
+
};
|
|
18980
19240
|
assign_cart_numbers: {
|
|
18981
19241
|
Args: {
|
|
18982
19242
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -19408,7 +19668,7 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
19408
19668
|
Returns: string;
|
|
19409
19669
|
} | {
|
|
19410
19670
|
Args: {
|
|
19411
|
-
_feature_id
|
|
19671
|
+
_feature_id: string;
|
|
19412
19672
|
_module_id: string;
|
|
19413
19673
|
_user_id: string;
|
|
19414
19674
|
};
|
|
@@ -19812,6 +20072,19 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
19812
20072
|
Args: never;
|
|
19813
20073
|
Returns: boolean;
|
|
19814
20074
|
};
|
|
20075
|
+
itk_offerte_naar_werkbon: {
|
|
20076
|
+
Args: {
|
|
20077
|
+
_offerte_id: string;
|
|
20078
|
+
};
|
|
20079
|
+
Returns: string;
|
|
20080
|
+
};
|
|
20081
|
+
itk_offerte_restant_mandaat: {
|
|
20082
|
+
Args: {
|
|
20083
|
+
_exclude_offerte_id?: string;
|
|
20084
|
+
_werkbon_id: string;
|
|
20085
|
+
};
|
|
20086
|
+
Returns: number;
|
|
20087
|
+
};
|
|
19815
20088
|
jwt_has_role: {
|
|
19816
20089
|
Args: {
|
|
19817
20090
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -20151,17 +20424,6 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
20151
20424
|
Returns: string;
|
|
20152
20425
|
};
|
|
20153
20426
|
logistics_emit_event: {
|
|
20154
|
-
Args: {
|
|
20155
|
-
p_event_type: string;
|
|
20156
|
-
p_idempotency_key?: string;
|
|
20157
|
-
p_order_ref: string;
|
|
20158
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
20159
|
-
p_shadow?: boolean;
|
|
20160
|
-
p_source_module: string;
|
|
20161
|
-
p_strategy_id?: string;
|
|
20162
|
-
};
|
|
20163
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
20164
|
-
} | {
|
|
20165
20427
|
Args: {
|
|
20166
20428
|
p_event_type: string;
|
|
20167
20429
|
p_idempotency_key?: string;
|
|
@@ -21618,7 +21880,7 @@ export declare const ensureBrandingBucket: import("@tanstack/start-client-core")
|
|
|
21618
21880
|
Enums: {
|
|
21619
21881
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
21620
21882
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
21621
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
21883
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
21622
21884
|
doc_orientation: "portrait" | "landscape";
|
|
21623
21885
|
exact_env: "staging" | "live";
|
|
21624
21886
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -21732,9 +21994,7 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
21732
21994
|
last_synced_at?: string | null;
|
|
21733
21995
|
provider?: string;
|
|
21734
21996
|
selected_calendars?: import("../integrations/supabase/types").Json;
|
|
21735
|
-
status
|
|
21736
|
-
/** Verwijdert een logobestand uit de opslag. */
|
|
21737
|
-
?: string;
|
|
21997
|
+
status?: string;
|
|
21738
21998
|
sync_mode?: string;
|
|
21739
21999
|
updated_at?: string;
|
|
21740
22000
|
user_id?: string;
|
|
@@ -29412,6 +29672,249 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
29412
29672
|
};
|
|
29413
29673
|
Relationships: [];
|
|
29414
29674
|
};
|
|
29675
|
+
itk_offerte_events: {
|
|
29676
|
+
Row: {
|
|
29677
|
+
created_at: string;
|
|
29678
|
+
event_type: string;
|
|
29679
|
+
id: string;
|
|
29680
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
29681
|
+
offerte_id: string;
|
|
29682
|
+
omschrijving: string | null;
|
|
29683
|
+
user_id: string | null;
|
|
29684
|
+
};
|
|
29685
|
+
Insert: {
|
|
29686
|
+
created_at?: string;
|
|
29687
|
+
event_type: string;
|
|
29688
|
+
id?: string;
|
|
29689
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
29690
|
+
offerte_id: string;
|
|
29691
|
+
omschrijving?: string | null;
|
|
29692
|
+
user_id?: string | null;
|
|
29693
|
+
};
|
|
29694
|
+
Update: {
|
|
29695
|
+
created_at?: string;
|
|
29696
|
+
event_type?: string;
|
|
29697
|
+
id?: string;
|
|
29698
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
29699
|
+
offerte_id?: string;
|
|
29700
|
+
omschrijving?: string | null;
|
|
29701
|
+
user_id?: string | null;
|
|
29702
|
+
};
|
|
29703
|
+
Relationships: [{
|
|
29704
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
29705
|
+
columns: ["offerte_id"];
|
|
29706
|
+
isOneToOne: false;
|
|
29707
|
+
referencedRelation: "itk_offertes";
|
|
29708
|
+
referencedColumns: ["id"];
|
|
29709
|
+
}];
|
|
29710
|
+
};
|
|
29711
|
+
itk_offerte_regels: {
|
|
29712
|
+
Row: {
|
|
29713
|
+
created_at: string;
|
|
29714
|
+
id: string;
|
|
29715
|
+
line_total_cents: number;
|
|
29716
|
+
offerte_id: string;
|
|
29717
|
+
omschrijving: string;
|
|
29718
|
+
package_id: string | null;
|
|
29719
|
+
quantity: number;
|
|
29720
|
+
sort_order: number;
|
|
29721
|
+
source: string;
|
|
29722
|
+
unit_price_cents: number;
|
|
29723
|
+
updated_at: string;
|
|
29724
|
+
};
|
|
29725
|
+
Insert: {
|
|
29726
|
+
created_at?: string;
|
|
29727
|
+
id?: string;
|
|
29728
|
+
line_total_cents?: number;
|
|
29729
|
+
offerte_id: string;
|
|
29730
|
+
omschrijving?: string;
|
|
29731
|
+
package_id?: string | null;
|
|
29732
|
+
quantity?: number;
|
|
29733
|
+
sort_order?: number;
|
|
29734
|
+
source?: string;
|
|
29735
|
+
unit_price_cents?: number;
|
|
29736
|
+
updated_at?: string;
|
|
29737
|
+
};
|
|
29738
|
+
Update: {
|
|
29739
|
+
created_at?: string;
|
|
29740
|
+
id?: string;
|
|
29741
|
+
line_total_cents?: number;
|
|
29742
|
+
offerte_id?: string;
|
|
29743
|
+
omschrijving?: string;
|
|
29744
|
+
package_id?: string | null;
|
|
29745
|
+
quantity?: number;
|
|
29746
|
+
sort_order?: number;
|
|
29747
|
+
source?: string;
|
|
29748
|
+
unit_price_cents?: number;
|
|
29749
|
+
updated_at?: string;
|
|
29750
|
+
};
|
|
29751
|
+
Relationships: [{
|
|
29752
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
29753
|
+
columns: ["offerte_id"];
|
|
29754
|
+
isOneToOne: false;
|
|
29755
|
+
referencedRelation: "itk_offertes";
|
|
29756
|
+
referencedColumns: ["id"];
|
|
29757
|
+
}, {
|
|
29758
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
29759
|
+
columns: ["package_id"];
|
|
29760
|
+
isOneToOne: false;
|
|
29761
|
+
referencedRelation: "werkbon_packages";
|
|
29762
|
+
referencedColumns: ["id"];
|
|
29763
|
+
}];
|
|
29764
|
+
};
|
|
29765
|
+
itk_offerte_settings: {
|
|
29766
|
+
Row: {
|
|
29767
|
+
auto_convert_binnen_mandaat: boolean;
|
|
29768
|
+
created_at: string;
|
|
29769
|
+
default_geldigheid_dagen: number;
|
|
29770
|
+
default_vat_rate: number;
|
|
29771
|
+
id: string;
|
|
29772
|
+
singleton: boolean;
|
|
29773
|
+
updated_at: string;
|
|
29774
|
+
};
|
|
29775
|
+
Insert: {
|
|
29776
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
29777
|
+
created_at?: string;
|
|
29778
|
+
default_geldigheid_dagen?: number;
|
|
29779
|
+
default_vat_rate?: number;
|
|
29780
|
+
id?: string;
|
|
29781
|
+
singleton?: boolean;
|
|
29782
|
+
updated_at?: string;
|
|
29783
|
+
};
|
|
29784
|
+
Update: {
|
|
29785
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
29786
|
+
created_at?: string;
|
|
29787
|
+
default_geldigheid_dagen?: number;
|
|
29788
|
+
default_vat_rate?: number;
|
|
29789
|
+
id?: string;
|
|
29790
|
+
singleton?: boolean;
|
|
29791
|
+
updated_at?: string;
|
|
29792
|
+
};
|
|
29793
|
+
Relationships: [];
|
|
29794
|
+
};
|
|
29795
|
+
itk_offertes: {
|
|
29796
|
+
Row: {
|
|
29797
|
+
ai_generated: boolean;
|
|
29798
|
+
approved_at: string | null;
|
|
29799
|
+
binnen_mandaat: boolean;
|
|
29800
|
+
contact_id: string | null;
|
|
29801
|
+
converted_at: string | null;
|
|
29802
|
+
created_at: string;
|
|
29803
|
+
created_by: string | null;
|
|
29804
|
+
customer_id: string | null;
|
|
29805
|
+
follow_up_werkbon_id: string | null;
|
|
29806
|
+
id: string;
|
|
29807
|
+
jaar: number;
|
|
29808
|
+
mandaat_restant_cents: number;
|
|
29809
|
+
notities: string | null;
|
|
29810
|
+
offerte_number: string | null;
|
|
29811
|
+
omschrijving: string;
|
|
29812
|
+
rejected_at: string | null;
|
|
29813
|
+
sent_at: string | null;
|
|
29814
|
+
status: string;
|
|
29815
|
+
subtotal_cents: number;
|
|
29816
|
+
total_cents: number;
|
|
29817
|
+
updated_at: string;
|
|
29818
|
+
valid_until: string | null;
|
|
29819
|
+
vat_cents: number;
|
|
29820
|
+
vat_rate: number;
|
|
29821
|
+
viewed_at: string | null;
|
|
29822
|
+
volgnummer: number | null;
|
|
29823
|
+
werkbon_id: string | null;
|
|
29824
|
+
work_location_id: string | null;
|
|
29825
|
+
};
|
|
29826
|
+
Insert: {
|
|
29827
|
+
ai_generated?: boolean;
|
|
29828
|
+
approved_at?: string | null;
|
|
29829
|
+
binnen_mandaat?: boolean;
|
|
29830
|
+
contact_id?: string | null;
|
|
29831
|
+
converted_at?: string | null;
|
|
29832
|
+
created_at?: string;
|
|
29833
|
+
created_by?: string | null;
|
|
29834
|
+
customer_id?: string | null;
|
|
29835
|
+
follow_up_werkbon_id?: string | null;
|
|
29836
|
+
id?: string;
|
|
29837
|
+
jaar?: number;
|
|
29838
|
+
mandaat_restant_cents?: number;
|
|
29839
|
+
notities?: string | null;
|
|
29840
|
+
offerte_number?: string | null;
|
|
29841
|
+
omschrijving?: string;
|
|
29842
|
+
rejected_at?: string | null;
|
|
29843
|
+
sent_at?: string | null;
|
|
29844
|
+
status?: string;
|
|
29845
|
+
subtotal_cents?: number;
|
|
29846
|
+
total_cents?: number;
|
|
29847
|
+
updated_at?: string;
|
|
29848
|
+
valid_until?: string | null;
|
|
29849
|
+
vat_cents?: number;
|
|
29850
|
+
vat_rate?: number;
|
|
29851
|
+
viewed_at?: string | null;
|
|
29852
|
+
volgnummer?: number | null;
|
|
29853
|
+
werkbon_id?: string | null;
|
|
29854
|
+
work_location_id?: string | null;
|
|
29855
|
+
};
|
|
29856
|
+
Update: {
|
|
29857
|
+
ai_generated?: boolean;
|
|
29858
|
+
approved_at?: string | null;
|
|
29859
|
+
binnen_mandaat?: boolean;
|
|
29860
|
+
contact_id?: string | null;
|
|
29861
|
+
converted_at?: string | null;
|
|
29862
|
+
created_at?: string;
|
|
29863
|
+
created_by?: string | null;
|
|
29864
|
+
customer_id?: string | null;
|
|
29865
|
+
follow_up_werkbon_id?: string | null;
|
|
29866
|
+
id?: string;
|
|
29867
|
+
jaar?: number;
|
|
29868
|
+
mandaat_restant_cents?: number;
|
|
29869
|
+
notities?: string | null;
|
|
29870
|
+
offerte_number?: string | null;
|
|
29871
|
+
omschrijving?: string;
|
|
29872
|
+
rejected_at?: string | null;
|
|
29873
|
+
sent_at?: string | null;
|
|
29874
|
+
status?: string;
|
|
29875
|
+
subtotal_cents?: number;
|
|
29876
|
+
total_cents?: number;
|
|
29877
|
+
updated_at?: string;
|
|
29878
|
+
valid_until?: string | null;
|
|
29879
|
+
vat_cents?: number;
|
|
29880
|
+
vat_rate?: number;
|
|
29881
|
+
viewed_at?: string | null;
|
|
29882
|
+
volgnummer?: number | null;
|
|
29883
|
+
werkbon_id?: string | null;
|
|
29884
|
+
work_location_id?: string | null;
|
|
29885
|
+
};
|
|
29886
|
+
Relationships: [{
|
|
29887
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
29888
|
+
columns: ["contact_id"];
|
|
29889
|
+
isOneToOne: false;
|
|
29890
|
+
referencedRelation: "itk_contact_persons";
|
|
29891
|
+
referencedColumns: ["id"];
|
|
29892
|
+
}, {
|
|
29893
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
29894
|
+
columns: ["customer_id"];
|
|
29895
|
+
isOneToOne: false;
|
|
29896
|
+
referencedRelation: "itk_customers";
|
|
29897
|
+
referencedColumns: ["id"];
|
|
29898
|
+
}, {
|
|
29899
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
29900
|
+
columns: ["follow_up_werkbon_id"];
|
|
29901
|
+
isOneToOne: false;
|
|
29902
|
+
referencedRelation: "werkbonnen";
|
|
29903
|
+
referencedColumns: ["id"];
|
|
29904
|
+
}, {
|
|
29905
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
29906
|
+
columns: ["werkbon_id"];
|
|
29907
|
+
isOneToOne: false;
|
|
29908
|
+
referencedRelation: "werkbonnen";
|
|
29909
|
+
referencedColumns: ["id"];
|
|
29910
|
+
}, {
|
|
29911
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
29912
|
+
columns: ["work_location_id"];
|
|
29913
|
+
isOneToOne: false;
|
|
29914
|
+
referencedRelation: "itk_work_locations";
|
|
29915
|
+
referencedColumns: ["id"];
|
|
29916
|
+
}];
|
|
29917
|
+
};
|
|
29415
29918
|
itk_work_locations: {
|
|
29416
29919
|
Row: {
|
|
29417
29920
|
city: string | null;
|
|
@@ -31845,6 +32348,7 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
31845
32348
|
module_registry: {
|
|
31846
32349
|
Row: {
|
|
31847
32350
|
created_at: string;
|
|
32351
|
+
enforce: boolean;
|
|
31848
32352
|
is_active: boolean;
|
|
31849
32353
|
last_seen_at: string;
|
|
31850
32354
|
module_id: string;
|
|
@@ -31854,6 +32358,7 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
31854
32358
|
};
|
|
31855
32359
|
Insert: {
|
|
31856
32360
|
created_at?: string;
|
|
32361
|
+
enforce?: boolean;
|
|
31857
32362
|
is_active?: boolean;
|
|
31858
32363
|
last_seen_at?: string;
|
|
31859
32364
|
module_id: string;
|
|
@@ -31863,6 +32368,7 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
31863
32368
|
};
|
|
31864
32369
|
Update: {
|
|
31865
32370
|
created_at?: string;
|
|
32371
|
+
enforce?: boolean;
|
|
31866
32372
|
is_active?: boolean;
|
|
31867
32373
|
last_seen_at?: string;
|
|
31868
32374
|
module_id?: string;
|
|
@@ -36400,6 +36906,7 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
36400
36906
|
type: string;
|
|
36401
36907
|
updated_at: string;
|
|
36402
36908
|
vereist_medewerker: boolean;
|
|
36909
|
+
werkplek: string | null;
|
|
36403
36910
|
};
|
|
36404
36911
|
Insert: {
|
|
36405
36912
|
actief?: boolean;
|
|
@@ -36413,6 +36920,7 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
36413
36920
|
type?: string;
|
|
36414
36921
|
updated_at?: string;
|
|
36415
36922
|
vereist_medewerker?: boolean;
|
|
36923
|
+
werkplek?: string | null;
|
|
36416
36924
|
};
|
|
36417
36925
|
Update: {
|
|
36418
36926
|
actief?: boolean;
|
|
@@ -36426,6 +36934,7 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
36426
36934
|
type?: string;
|
|
36427
36935
|
updated_at?: string;
|
|
36428
36936
|
vereist_medewerker?: boolean;
|
|
36937
|
+
werkplek?: string | null;
|
|
36429
36938
|
};
|
|
36430
36939
|
Relationships: [];
|
|
36431
36940
|
};
|
|
@@ -40618,6 +41127,19 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
40618
41127
|
};
|
|
40619
41128
|
Returns: undefined;
|
|
40620
41129
|
};
|
|
41130
|
+
approve_mailbox_order_proposal: {
|
|
41131
|
+
Args: {
|
|
41132
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
41133
|
+
p_customer_id: string;
|
|
41134
|
+
p_delivery_date: string;
|
|
41135
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
41136
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
41137
|
+
p_notes: string;
|
|
41138
|
+
p_proposal_id: string;
|
|
41139
|
+
p_reviewed_by: string;
|
|
41140
|
+
};
|
|
41141
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
41142
|
+
};
|
|
40621
41143
|
assign_cart_numbers: {
|
|
40622
41144
|
Args: {
|
|
40623
41145
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -41049,7 +41571,7 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
41049
41571
|
Returns: string;
|
|
41050
41572
|
} | {
|
|
41051
41573
|
Args: {
|
|
41052
|
-
_feature_id
|
|
41574
|
+
_feature_id: string;
|
|
41053
41575
|
_module_id: string;
|
|
41054
41576
|
_user_id: string;
|
|
41055
41577
|
};
|
|
@@ -41453,6 +41975,19 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
41453
41975
|
Args: never;
|
|
41454
41976
|
Returns: boolean;
|
|
41455
41977
|
};
|
|
41978
|
+
itk_offerte_naar_werkbon: {
|
|
41979
|
+
Args: {
|
|
41980
|
+
_offerte_id: string;
|
|
41981
|
+
};
|
|
41982
|
+
Returns: string;
|
|
41983
|
+
};
|
|
41984
|
+
itk_offerte_restant_mandaat: {
|
|
41985
|
+
Args: {
|
|
41986
|
+
_exclude_offerte_id?: string;
|
|
41987
|
+
_werkbon_id: string;
|
|
41988
|
+
};
|
|
41989
|
+
Returns: number;
|
|
41990
|
+
};
|
|
41456
41991
|
jwt_has_role: {
|
|
41457
41992
|
Args: {
|
|
41458
41993
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -41792,17 +42327,6 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
41792
42327
|
Returns: string;
|
|
41793
42328
|
};
|
|
41794
42329
|
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").Json;
|
|
41800
|
-
p_shadow?: boolean;
|
|
41801
|
-
p_source_module: string;
|
|
41802
|
-
p_strategy_id?: string;
|
|
41803
|
-
};
|
|
41804
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
41805
|
-
} | {
|
|
41806
42330
|
Args: {
|
|
41807
42331
|
p_event_type: string;
|
|
41808
42332
|
p_idempotency_key?: string;
|
|
@@ -43259,7 +43783,7 @@ export declare const uploadBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
43259
43783
|
Enums: {
|
|
43260
43784
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
43261
43785
|
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";
|
|
43786
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
43263
43787
|
doc_orientation: "portrait" | "landscape";
|
|
43264
43788
|
exact_env: "staging" | "live";
|
|
43265
43789
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -43374,9 +43898,7 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
43374
43898
|
last_synced_at?: string | null;
|
|
43375
43899
|
provider?: string;
|
|
43376
43900
|
selected_calendars?: import("../integrations/supabase/types").Json;
|
|
43377
|
-
status
|
|
43378
|
-
/** Verwijdert een logobestand uit de opslag. */
|
|
43379
|
-
?: string;
|
|
43901
|
+
status?: string;
|
|
43380
43902
|
sync_mode?: string;
|
|
43381
43903
|
updated_at?: string;
|
|
43382
43904
|
user_id?: string;
|
|
@@ -51054,6 +51576,249 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
51054
51576
|
};
|
|
51055
51577
|
Relationships: [];
|
|
51056
51578
|
};
|
|
51579
|
+
itk_offerte_events: {
|
|
51580
|
+
Row: {
|
|
51581
|
+
created_at: string;
|
|
51582
|
+
event_type: string;
|
|
51583
|
+
id: string;
|
|
51584
|
+
metadata: import("../integrations/supabase/types").Json;
|
|
51585
|
+
offerte_id: string;
|
|
51586
|
+
omschrijving: string | null;
|
|
51587
|
+
user_id: string | null;
|
|
51588
|
+
};
|
|
51589
|
+
Insert: {
|
|
51590
|
+
created_at?: string;
|
|
51591
|
+
event_type: string;
|
|
51592
|
+
id?: string;
|
|
51593
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
51594
|
+
offerte_id: string;
|
|
51595
|
+
omschrijving?: string | null;
|
|
51596
|
+
user_id?: string | null;
|
|
51597
|
+
};
|
|
51598
|
+
Update: {
|
|
51599
|
+
created_at?: string;
|
|
51600
|
+
event_type?: string;
|
|
51601
|
+
id?: string;
|
|
51602
|
+
metadata?: import("../integrations/supabase/types").Json;
|
|
51603
|
+
offerte_id?: string;
|
|
51604
|
+
omschrijving?: string | null;
|
|
51605
|
+
user_id?: string | null;
|
|
51606
|
+
};
|
|
51607
|
+
Relationships: [{
|
|
51608
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
51609
|
+
columns: ["offerte_id"];
|
|
51610
|
+
isOneToOne: false;
|
|
51611
|
+
referencedRelation: "itk_offertes";
|
|
51612
|
+
referencedColumns: ["id"];
|
|
51613
|
+
}];
|
|
51614
|
+
};
|
|
51615
|
+
itk_offerte_regels: {
|
|
51616
|
+
Row: {
|
|
51617
|
+
created_at: string;
|
|
51618
|
+
id: string;
|
|
51619
|
+
line_total_cents: number;
|
|
51620
|
+
offerte_id: string;
|
|
51621
|
+
omschrijving: string;
|
|
51622
|
+
package_id: string | null;
|
|
51623
|
+
quantity: number;
|
|
51624
|
+
sort_order: number;
|
|
51625
|
+
source: string;
|
|
51626
|
+
unit_price_cents: number;
|
|
51627
|
+
updated_at: string;
|
|
51628
|
+
};
|
|
51629
|
+
Insert: {
|
|
51630
|
+
created_at?: string;
|
|
51631
|
+
id?: string;
|
|
51632
|
+
line_total_cents?: number;
|
|
51633
|
+
offerte_id: string;
|
|
51634
|
+
omschrijving?: string;
|
|
51635
|
+
package_id?: string | null;
|
|
51636
|
+
quantity?: number;
|
|
51637
|
+
sort_order?: number;
|
|
51638
|
+
source?: string;
|
|
51639
|
+
unit_price_cents?: number;
|
|
51640
|
+
updated_at?: string;
|
|
51641
|
+
};
|
|
51642
|
+
Update: {
|
|
51643
|
+
created_at?: string;
|
|
51644
|
+
id?: string;
|
|
51645
|
+
line_total_cents?: number;
|
|
51646
|
+
offerte_id?: string;
|
|
51647
|
+
omschrijving?: string;
|
|
51648
|
+
package_id?: string | null;
|
|
51649
|
+
quantity?: number;
|
|
51650
|
+
sort_order?: number;
|
|
51651
|
+
source?: string;
|
|
51652
|
+
unit_price_cents?: number;
|
|
51653
|
+
updated_at?: string;
|
|
51654
|
+
};
|
|
51655
|
+
Relationships: [{
|
|
51656
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
51657
|
+
columns: ["offerte_id"];
|
|
51658
|
+
isOneToOne: false;
|
|
51659
|
+
referencedRelation: "itk_offertes";
|
|
51660
|
+
referencedColumns: ["id"];
|
|
51661
|
+
}, {
|
|
51662
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
51663
|
+
columns: ["package_id"];
|
|
51664
|
+
isOneToOne: false;
|
|
51665
|
+
referencedRelation: "werkbon_packages";
|
|
51666
|
+
referencedColumns: ["id"];
|
|
51667
|
+
}];
|
|
51668
|
+
};
|
|
51669
|
+
itk_offerte_settings: {
|
|
51670
|
+
Row: {
|
|
51671
|
+
auto_convert_binnen_mandaat: boolean;
|
|
51672
|
+
created_at: string;
|
|
51673
|
+
default_geldigheid_dagen: number;
|
|
51674
|
+
default_vat_rate: number;
|
|
51675
|
+
id: string;
|
|
51676
|
+
singleton: boolean;
|
|
51677
|
+
updated_at: string;
|
|
51678
|
+
};
|
|
51679
|
+
Insert: {
|
|
51680
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
51681
|
+
created_at?: string;
|
|
51682
|
+
default_geldigheid_dagen?: number;
|
|
51683
|
+
default_vat_rate?: number;
|
|
51684
|
+
id?: string;
|
|
51685
|
+
singleton?: boolean;
|
|
51686
|
+
updated_at?: string;
|
|
51687
|
+
};
|
|
51688
|
+
Update: {
|
|
51689
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
51690
|
+
created_at?: string;
|
|
51691
|
+
default_geldigheid_dagen?: number;
|
|
51692
|
+
default_vat_rate?: number;
|
|
51693
|
+
id?: string;
|
|
51694
|
+
singleton?: boolean;
|
|
51695
|
+
updated_at?: string;
|
|
51696
|
+
};
|
|
51697
|
+
Relationships: [];
|
|
51698
|
+
};
|
|
51699
|
+
itk_offertes: {
|
|
51700
|
+
Row: {
|
|
51701
|
+
ai_generated: boolean;
|
|
51702
|
+
approved_at: string | null;
|
|
51703
|
+
binnen_mandaat: boolean;
|
|
51704
|
+
contact_id: string | null;
|
|
51705
|
+
converted_at: string | null;
|
|
51706
|
+
created_at: string;
|
|
51707
|
+
created_by: string | null;
|
|
51708
|
+
customer_id: string | null;
|
|
51709
|
+
follow_up_werkbon_id: string | null;
|
|
51710
|
+
id: string;
|
|
51711
|
+
jaar: number;
|
|
51712
|
+
mandaat_restant_cents: number;
|
|
51713
|
+
notities: string | null;
|
|
51714
|
+
offerte_number: string | null;
|
|
51715
|
+
omschrijving: string;
|
|
51716
|
+
rejected_at: string | null;
|
|
51717
|
+
sent_at: string | null;
|
|
51718
|
+
status: string;
|
|
51719
|
+
subtotal_cents: number;
|
|
51720
|
+
total_cents: number;
|
|
51721
|
+
updated_at: string;
|
|
51722
|
+
valid_until: string | null;
|
|
51723
|
+
vat_cents: number;
|
|
51724
|
+
vat_rate: number;
|
|
51725
|
+
viewed_at: string | null;
|
|
51726
|
+
volgnummer: number | null;
|
|
51727
|
+
werkbon_id: string | null;
|
|
51728
|
+
work_location_id: string | null;
|
|
51729
|
+
};
|
|
51730
|
+
Insert: {
|
|
51731
|
+
ai_generated?: boolean;
|
|
51732
|
+
approved_at?: string | null;
|
|
51733
|
+
binnen_mandaat?: boolean;
|
|
51734
|
+
contact_id?: string | null;
|
|
51735
|
+
converted_at?: string | null;
|
|
51736
|
+
created_at?: string;
|
|
51737
|
+
created_by?: string | null;
|
|
51738
|
+
customer_id?: string | null;
|
|
51739
|
+
follow_up_werkbon_id?: string | null;
|
|
51740
|
+
id?: string;
|
|
51741
|
+
jaar?: number;
|
|
51742
|
+
mandaat_restant_cents?: number;
|
|
51743
|
+
notities?: string | null;
|
|
51744
|
+
offerte_number?: string | null;
|
|
51745
|
+
omschrijving?: string;
|
|
51746
|
+
rejected_at?: string | null;
|
|
51747
|
+
sent_at?: string | null;
|
|
51748
|
+
status?: string;
|
|
51749
|
+
subtotal_cents?: number;
|
|
51750
|
+
total_cents?: number;
|
|
51751
|
+
updated_at?: string;
|
|
51752
|
+
valid_until?: string | null;
|
|
51753
|
+
vat_cents?: number;
|
|
51754
|
+
vat_rate?: number;
|
|
51755
|
+
viewed_at?: string | null;
|
|
51756
|
+
volgnummer?: number | null;
|
|
51757
|
+
werkbon_id?: string | null;
|
|
51758
|
+
work_location_id?: string | null;
|
|
51759
|
+
};
|
|
51760
|
+
Update: {
|
|
51761
|
+
ai_generated?: boolean;
|
|
51762
|
+
approved_at?: string | null;
|
|
51763
|
+
binnen_mandaat?: boolean;
|
|
51764
|
+
contact_id?: string | null;
|
|
51765
|
+
converted_at?: string | null;
|
|
51766
|
+
created_at?: string;
|
|
51767
|
+
created_by?: string | null;
|
|
51768
|
+
customer_id?: string | null;
|
|
51769
|
+
follow_up_werkbon_id?: string | null;
|
|
51770
|
+
id?: string;
|
|
51771
|
+
jaar?: number;
|
|
51772
|
+
mandaat_restant_cents?: number;
|
|
51773
|
+
notities?: string | null;
|
|
51774
|
+
offerte_number?: string | null;
|
|
51775
|
+
omschrijving?: string;
|
|
51776
|
+
rejected_at?: string | null;
|
|
51777
|
+
sent_at?: string | null;
|
|
51778
|
+
status?: string;
|
|
51779
|
+
subtotal_cents?: number;
|
|
51780
|
+
total_cents?: number;
|
|
51781
|
+
updated_at?: string;
|
|
51782
|
+
valid_until?: string | null;
|
|
51783
|
+
vat_cents?: number;
|
|
51784
|
+
vat_rate?: number;
|
|
51785
|
+
viewed_at?: string | null;
|
|
51786
|
+
volgnummer?: number | null;
|
|
51787
|
+
werkbon_id?: string | null;
|
|
51788
|
+
work_location_id?: string | null;
|
|
51789
|
+
};
|
|
51790
|
+
Relationships: [{
|
|
51791
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
51792
|
+
columns: ["contact_id"];
|
|
51793
|
+
isOneToOne: false;
|
|
51794
|
+
referencedRelation: "itk_contact_persons";
|
|
51795
|
+
referencedColumns: ["id"];
|
|
51796
|
+
}, {
|
|
51797
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
51798
|
+
columns: ["customer_id"];
|
|
51799
|
+
isOneToOne: false;
|
|
51800
|
+
referencedRelation: "itk_customers";
|
|
51801
|
+
referencedColumns: ["id"];
|
|
51802
|
+
}, {
|
|
51803
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
51804
|
+
columns: ["follow_up_werkbon_id"];
|
|
51805
|
+
isOneToOne: false;
|
|
51806
|
+
referencedRelation: "werkbonnen";
|
|
51807
|
+
referencedColumns: ["id"];
|
|
51808
|
+
}, {
|
|
51809
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
51810
|
+
columns: ["werkbon_id"];
|
|
51811
|
+
isOneToOne: false;
|
|
51812
|
+
referencedRelation: "werkbonnen";
|
|
51813
|
+
referencedColumns: ["id"];
|
|
51814
|
+
}, {
|
|
51815
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
51816
|
+
columns: ["work_location_id"];
|
|
51817
|
+
isOneToOne: false;
|
|
51818
|
+
referencedRelation: "itk_work_locations";
|
|
51819
|
+
referencedColumns: ["id"];
|
|
51820
|
+
}];
|
|
51821
|
+
};
|
|
51057
51822
|
itk_work_locations: {
|
|
51058
51823
|
Row: {
|
|
51059
51824
|
city: string | null;
|
|
@@ -53487,6 +54252,7 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
53487
54252
|
module_registry: {
|
|
53488
54253
|
Row: {
|
|
53489
54254
|
created_at: string;
|
|
54255
|
+
enforce: boolean;
|
|
53490
54256
|
is_active: boolean;
|
|
53491
54257
|
last_seen_at: string;
|
|
53492
54258
|
module_id: string;
|
|
@@ -53496,6 +54262,7 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
53496
54262
|
};
|
|
53497
54263
|
Insert: {
|
|
53498
54264
|
created_at?: string;
|
|
54265
|
+
enforce?: boolean;
|
|
53499
54266
|
is_active?: boolean;
|
|
53500
54267
|
last_seen_at?: string;
|
|
53501
54268
|
module_id: string;
|
|
@@ -53505,6 +54272,7 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
53505
54272
|
};
|
|
53506
54273
|
Update: {
|
|
53507
54274
|
created_at?: string;
|
|
54275
|
+
enforce?: boolean;
|
|
53508
54276
|
is_active?: boolean;
|
|
53509
54277
|
last_seen_at?: string;
|
|
53510
54278
|
module_id?: string;
|
|
@@ -58042,6 +58810,7 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
58042
58810
|
type: string;
|
|
58043
58811
|
updated_at: string;
|
|
58044
58812
|
vereist_medewerker: boolean;
|
|
58813
|
+
werkplek: string | null;
|
|
58045
58814
|
};
|
|
58046
58815
|
Insert: {
|
|
58047
58816
|
actief?: boolean;
|
|
@@ -58055,6 +58824,7 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
58055
58824
|
type?: string;
|
|
58056
58825
|
updated_at?: string;
|
|
58057
58826
|
vereist_medewerker?: boolean;
|
|
58827
|
+
werkplek?: string | null;
|
|
58058
58828
|
};
|
|
58059
58829
|
Update: {
|
|
58060
58830
|
actief?: boolean;
|
|
@@ -58068,6 +58838,7 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
58068
58838
|
type?: string;
|
|
58069
58839
|
updated_at?: string;
|
|
58070
58840
|
vereist_medewerker?: boolean;
|
|
58841
|
+
werkplek?: string | null;
|
|
58071
58842
|
};
|
|
58072
58843
|
Relationships: [];
|
|
58073
58844
|
};
|
|
@@ -62260,6 +63031,19 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
62260
63031
|
};
|
|
62261
63032
|
Returns: undefined;
|
|
62262
63033
|
};
|
|
63034
|
+
approve_mailbox_order_proposal: {
|
|
63035
|
+
Args: {
|
|
63036
|
+
p_custom_fields: import("../integrations/supabase/types").Json;
|
|
63037
|
+
p_customer_id: string;
|
|
63038
|
+
p_delivery_date: string;
|
|
63039
|
+
p_field_values?: import("../integrations/supabase/types").Json;
|
|
63040
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
63041
|
+
p_notes: string;
|
|
63042
|
+
p_proposal_id: string;
|
|
63043
|
+
p_reviewed_by: string;
|
|
63044
|
+
};
|
|
63045
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
63046
|
+
};
|
|
62263
63047
|
assign_cart_numbers: {
|
|
62264
63048
|
Args: {
|
|
62265
63049
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -62691,7 +63475,7 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
62691
63475
|
Returns: string;
|
|
62692
63476
|
} | {
|
|
62693
63477
|
Args: {
|
|
62694
|
-
_feature_id
|
|
63478
|
+
_feature_id: string;
|
|
62695
63479
|
_module_id: string;
|
|
62696
63480
|
_user_id: string;
|
|
62697
63481
|
};
|
|
@@ -63095,6 +63879,19 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
63095
63879
|
Args: never;
|
|
63096
63880
|
Returns: boolean;
|
|
63097
63881
|
};
|
|
63882
|
+
itk_offerte_naar_werkbon: {
|
|
63883
|
+
Args: {
|
|
63884
|
+
_offerte_id: string;
|
|
63885
|
+
};
|
|
63886
|
+
Returns: string;
|
|
63887
|
+
};
|
|
63888
|
+
itk_offerte_restant_mandaat: {
|
|
63889
|
+
Args: {
|
|
63890
|
+
_exclude_offerte_id?: string;
|
|
63891
|
+
_werkbon_id: string;
|
|
63892
|
+
};
|
|
63893
|
+
Returns: number;
|
|
63894
|
+
};
|
|
63098
63895
|
jwt_has_role: {
|
|
63099
63896
|
Args: {
|
|
63100
63897
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -63434,17 +64231,6 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
63434
64231
|
Returns: string;
|
|
63435
64232
|
};
|
|
63436
64233
|
logistics_emit_event: {
|
|
63437
|
-
Args: {
|
|
63438
|
-
p_event_type: string;
|
|
63439
|
-
p_idempotency_key?: string;
|
|
63440
|
-
p_order_ref: string;
|
|
63441
|
-
p_payload?: import("../integrations/supabase/types").Json;
|
|
63442
|
-
p_shadow?: boolean;
|
|
63443
|
-
p_source_module: string;
|
|
63444
|
-
p_strategy_id?: string;
|
|
63445
|
-
};
|
|
63446
|
-
Returns: import("../integrations/supabase/types").Json;
|
|
63447
|
-
} | {
|
|
63448
64234
|
Args: {
|
|
63449
64235
|
p_event_type: string;
|
|
63450
64236
|
p_idempotency_key?: string;
|
|
@@ -64901,7 +65687,7 @@ export declare const deleteBrandingLogo: import("@tanstack/start-client-core").R
|
|
|
64901
65687
|
Enums: {
|
|
64902
65688
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
64903
65689
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
64904
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
65690
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
64905
65691
|
doc_orientation: "portrait" | "landscape";
|
|
64906
65692
|
exact_env: "staging" | "live";
|
|
64907
65693
|
exact_push_status: "pending" | "sent" | "error";
|