@flowselections/admin-installatietechniek 1.0.5 → 1.0.6
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/AdminForInstallatieTechniek.d.ts.map +1 -1
- package/dist-lib/components/AdminForInstallatieTechniek.js +154 -8
- package/dist-lib/hooks/useModulePermission.d.ts +2 -1
- package/dist-lib/hooks/useModulePermission.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +545 -12
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +545 -12
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +545 -12
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +568 -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/admin.functions.d.ts +141905 -205
- package/dist-lib/lib/admin.functions.d.ts.map +1 -1
- package/dist-lib/lib/admin.functions.js +273 -15
- package/dist-lib/lib/permission-types.d.ts +7 -0
- package/dist-lib/lib/permission-types.d.ts.map +1 -0
- package/dist-lib/lib/permission-types.js +1 -0
- package/dist-lib/lib/permissions.server.d.ts +1 -1
- package/dist-lib/lib/permissions.server.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -5157,6 +5157,42 @@ export type Database = {
|
|
|
5157
5157
|
};
|
|
5158
5158
|
Relationships: [];
|
|
5159
5159
|
};
|
|
5160
|
+
facturen: {
|
|
5161
|
+
Row: {
|
|
5162
|
+
bedrag_incl_btw: number;
|
|
5163
|
+
created_at: string;
|
|
5164
|
+
datum: string;
|
|
5165
|
+
factuurnummer: string;
|
|
5166
|
+
id: string;
|
|
5167
|
+
klantnaam: string;
|
|
5168
|
+
status: string;
|
|
5169
|
+
updated_at: string;
|
|
5170
|
+
user_id: string;
|
|
5171
|
+
};
|
|
5172
|
+
Insert: {
|
|
5173
|
+
bedrag_incl_btw: number;
|
|
5174
|
+
created_at?: string;
|
|
5175
|
+
datum?: string;
|
|
5176
|
+
factuurnummer: string;
|
|
5177
|
+
id?: string;
|
|
5178
|
+
klantnaam: string;
|
|
5179
|
+
status?: string;
|
|
5180
|
+
updated_at?: string;
|
|
5181
|
+
user_id?: string;
|
|
5182
|
+
};
|
|
5183
|
+
Update: {
|
|
5184
|
+
bedrag_incl_btw?: number;
|
|
5185
|
+
created_at?: string;
|
|
5186
|
+
datum?: string;
|
|
5187
|
+
factuurnummer?: string;
|
|
5188
|
+
id?: string;
|
|
5189
|
+
klantnaam?: string;
|
|
5190
|
+
status?: string;
|
|
5191
|
+
updated_at?: string;
|
|
5192
|
+
user_id?: string;
|
|
5193
|
+
};
|
|
5194
|
+
Relationships: [];
|
|
5195
|
+
};
|
|
5160
5196
|
floricode_connection_settings: {
|
|
5161
5197
|
Row: {
|
|
5162
5198
|
catalog_key: string | null;
|
|
@@ -7976,6 +8012,269 @@ export type Database = {
|
|
|
7976
8012
|
};
|
|
7977
8013
|
Relationships: [];
|
|
7978
8014
|
};
|
|
8015
|
+
itk_offerte_events: {
|
|
8016
|
+
Row: {
|
|
8017
|
+
created_at: string;
|
|
8018
|
+
event_type: string;
|
|
8019
|
+
id: string;
|
|
8020
|
+
metadata: Json;
|
|
8021
|
+
offerte_id: string;
|
|
8022
|
+
omschrijving: string | null;
|
|
8023
|
+
user_id: string | null;
|
|
8024
|
+
};
|
|
8025
|
+
Insert: {
|
|
8026
|
+
created_at?: string;
|
|
8027
|
+
event_type: string;
|
|
8028
|
+
id?: string;
|
|
8029
|
+
metadata?: Json;
|
|
8030
|
+
offerte_id: string;
|
|
8031
|
+
omschrijving?: string | null;
|
|
8032
|
+
user_id?: string | null;
|
|
8033
|
+
};
|
|
8034
|
+
Update: {
|
|
8035
|
+
created_at?: string;
|
|
8036
|
+
event_type?: string;
|
|
8037
|
+
id?: string;
|
|
8038
|
+
metadata?: Json;
|
|
8039
|
+
offerte_id?: string;
|
|
8040
|
+
omschrijving?: string | null;
|
|
8041
|
+
user_id?: string | null;
|
|
8042
|
+
};
|
|
8043
|
+
Relationships: [
|
|
8044
|
+
{
|
|
8045
|
+
foreignKeyName: "itk_offerte_events_offerte_id_fkey";
|
|
8046
|
+
columns: ["offerte_id"];
|
|
8047
|
+
isOneToOne: false;
|
|
8048
|
+
referencedRelation: "itk_offertes";
|
|
8049
|
+
referencedColumns: ["id"];
|
|
8050
|
+
}
|
|
8051
|
+
];
|
|
8052
|
+
};
|
|
8053
|
+
itk_offerte_regels: {
|
|
8054
|
+
Row: {
|
|
8055
|
+
created_at: string;
|
|
8056
|
+
id: string;
|
|
8057
|
+
line_total_cents: number;
|
|
8058
|
+
offerte_id: string;
|
|
8059
|
+
omschrijving: string;
|
|
8060
|
+
package_id: string | null;
|
|
8061
|
+
quantity: number;
|
|
8062
|
+
sort_order: number;
|
|
8063
|
+
source: string;
|
|
8064
|
+
unit_price_cents: number;
|
|
8065
|
+
updated_at: string;
|
|
8066
|
+
};
|
|
8067
|
+
Insert: {
|
|
8068
|
+
created_at?: string;
|
|
8069
|
+
id?: string;
|
|
8070
|
+
line_total_cents?: number;
|
|
8071
|
+
offerte_id: string;
|
|
8072
|
+
omschrijving?: string;
|
|
8073
|
+
package_id?: string | null;
|
|
8074
|
+
quantity?: number;
|
|
8075
|
+
sort_order?: number;
|
|
8076
|
+
source?: string;
|
|
8077
|
+
unit_price_cents?: number;
|
|
8078
|
+
updated_at?: string;
|
|
8079
|
+
};
|
|
8080
|
+
Update: {
|
|
8081
|
+
created_at?: string;
|
|
8082
|
+
id?: string;
|
|
8083
|
+
line_total_cents?: number;
|
|
8084
|
+
offerte_id?: string;
|
|
8085
|
+
omschrijving?: string;
|
|
8086
|
+
package_id?: string | null;
|
|
8087
|
+
quantity?: number;
|
|
8088
|
+
sort_order?: number;
|
|
8089
|
+
source?: string;
|
|
8090
|
+
unit_price_cents?: number;
|
|
8091
|
+
updated_at?: string;
|
|
8092
|
+
};
|
|
8093
|
+
Relationships: [
|
|
8094
|
+
{
|
|
8095
|
+
foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
|
|
8096
|
+
columns: ["offerte_id"];
|
|
8097
|
+
isOneToOne: false;
|
|
8098
|
+
referencedRelation: "itk_offertes";
|
|
8099
|
+
referencedColumns: ["id"];
|
|
8100
|
+
},
|
|
8101
|
+
{
|
|
8102
|
+
foreignKeyName: "itk_offerte_regels_package_id_fkey";
|
|
8103
|
+
columns: ["package_id"];
|
|
8104
|
+
isOneToOne: false;
|
|
8105
|
+
referencedRelation: "werkbon_packages";
|
|
8106
|
+
referencedColumns: ["id"];
|
|
8107
|
+
}
|
|
8108
|
+
];
|
|
8109
|
+
};
|
|
8110
|
+
itk_offerte_settings: {
|
|
8111
|
+
Row: {
|
|
8112
|
+
auto_convert_binnen_mandaat: boolean;
|
|
8113
|
+
created_at: string;
|
|
8114
|
+
default_geldigheid_dagen: number;
|
|
8115
|
+
default_vat_rate: number;
|
|
8116
|
+
id: string;
|
|
8117
|
+
singleton: boolean;
|
|
8118
|
+
updated_at: string;
|
|
8119
|
+
};
|
|
8120
|
+
Insert: {
|
|
8121
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
8122
|
+
created_at?: string;
|
|
8123
|
+
default_geldigheid_dagen?: number;
|
|
8124
|
+
default_vat_rate?: number;
|
|
8125
|
+
id?: string;
|
|
8126
|
+
singleton?: boolean;
|
|
8127
|
+
updated_at?: string;
|
|
8128
|
+
};
|
|
8129
|
+
Update: {
|
|
8130
|
+
auto_convert_binnen_mandaat?: boolean;
|
|
8131
|
+
created_at?: string;
|
|
8132
|
+
default_geldigheid_dagen?: number;
|
|
8133
|
+
default_vat_rate?: number;
|
|
8134
|
+
id?: string;
|
|
8135
|
+
singleton?: boolean;
|
|
8136
|
+
updated_at?: string;
|
|
8137
|
+
};
|
|
8138
|
+
Relationships: [];
|
|
8139
|
+
};
|
|
8140
|
+
itk_offertes: {
|
|
8141
|
+
Row: {
|
|
8142
|
+
ai_generated: boolean;
|
|
8143
|
+
approved_at: string | null;
|
|
8144
|
+
binnen_mandaat: boolean;
|
|
8145
|
+
contact_id: string | null;
|
|
8146
|
+
converted_at: string | null;
|
|
8147
|
+
created_at: string;
|
|
8148
|
+
created_by: string | null;
|
|
8149
|
+
customer_id: string | null;
|
|
8150
|
+
follow_up_werkbon_id: string | null;
|
|
8151
|
+
id: string;
|
|
8152
|
+
jaar: number;
|
|
8153
|
+
mandaat_restant_cents: number;
|
|
8154
|
+
notities: string | null;
|
|
8155
|
+
offerte_number: string | null;
|
|
8156
|
+
omschrijving: string;
|
|
8157
|
+
rejected_at: string | null;
|
|
8158
|
+
sent_at: string | null;
|
|
8159
|
+
source_number: string | null;
|
|
8160
|
+
source_ref: string | null;
|
|
8161
|
+
source_type: string;
|
|
8162
|
+
status: string;
|
|
8163
|
+
subtotal_cents: number;
|
|
8164
|
+
total_cents: number;
|
|
8165
|
+
updated_at: string;
|
|
8166
|
+
valid_until: string | null;
|
|
8167
|
+
vat_cents: number;
|
|
8168
|
+
vat_rate: number;
|
|
8169
|
+
viewed_at: string | null;
|
|
8170
|
+
volgnummer: number | null;
|
|
8171
|
+
werkbon_id: string | null;
|
|
8172
|
+
work_location_id: string | null;
|
|
8173
|
+
};
|
|
8174
|
+
Insert: {
|
|
8175
|
+
ai_generated?: boolean;
|
|
8176
|
+
approved_at?: string | null;
|
|
8177
|
+
binnen_mandaat?: boolean;
|
|
8178
|
+
contact_id?: string | null;
|
|
8179
|
+
converted_at?: string | null;
|
|
8180
|
+
created_at?: string;
|
|
8181
|
+
created_by?: string | null;
|
|
8182
|
+
customer_id?: string | null;
|
|
8183
|
+
follow_up_werkbon_id?: string | null;
|
|
8184
|
+
id?: string;
|
|
8185
|
+
jaar?: number;
|
|
8186
|
+
mandaat_restant_cents?: number;
|
|
8187
|
+
notities?: string | null;
|
|
8188
|
+
offerte_number?: string | null;
|
|
8189
|
+
omschrijving?: string;
|
|
8190
|
+
rejected_at?: string | null;
|
|
8191
|
+
sent_at?: string | null;
|
|
8192
|
+
source_number?: string | null;
|
|
8193
|
+
source_ref?: string | null;
|
|
8194
|
+
source_type?: string;
|
|
8195
|
+
status?: string;
|
|
8196
|
+
subtotal_cents?: number;
|
|
8197
|
+
total_cents?: number;
|
|
8198
|
+
updated_at?: string;
|
|
8199
|
+
valid_until?: string | null;
|
|
8200
|
+
vat_cents?: number;
|
|
8201
|
+
vat_rate?: number;
|
|
8202
|
+
viewed_at?: string | null;
|
|
8203
|
+
volgnummer?: number | null;
|
|
8204
|
+
werkbon_id?: string | null;
|
|
8205
|
+
work_location_id?: string | null;
|
|
8206
|
+
};
|
|
8207
|
+
Update: {
|
|
8208
|
+
ai_generated?: boolean;
|
|
8209
|
+
approved_at?: string | null;
|
|
8210
|
+
binnen_mandaat?: boolean;
|
|
8211
|
+
contact_id?: string | null;
|
|
8212
|
+
converted_at?: string | null;
|
|
8213
|
+
created_at?: string;
|
|
8214
|
+
created_by?: string | null;
|
|
8215
|
+
customer_id?: string | null;
|
|
8216
|
+
follow_up_werkbon_id?: string | null;
|
|
8217
|
+
id?: string;
|
|
8218
|
+
jaar?: number;
|
|
8219
|
+
mandaat_restant_cents?: number;
|
|
8220
|
+
notities?: string | null;
|
|
8221
|
+
offerte_number?: string | null;
|
|
8222
|
+
omschrijving?: string;
|
|
8223
|
+
rejected_at?: string | null;
|
|
8224
|
+
sent_at?: string | null;
|
|
8225
|
+
source_number?: string | null;
|
|
8226
|
+
source_ref?: string | null;
|
|
8227
|
+
source_type?: string;
|
|
8228
|
+
status?: string;
|
|
8229
|
+
subtotal_cents?: number;
|
|
8230
|
+
total_cents?: number;
|
|
8231
|
+
updated_at?: string;
|
|
8232
|
+
valid_until?: string | null;
|
|
8233
|
+
vat_cents?: number;
|
|
8234
|
+
vat_rate?: number;
|
|
8235
|
+
viewed_at?: string | null;
|
|
8236
|
+
volgnummer?: number | null;
|
|
8237
|
+
werkbon_id?: string | null;
|
|
8238
|
+
work_location_id?: string | null;
|
|
8239
|
+
};
|
|
8240
|
+
Relationships: [
|
|
8241
|
+
{
|
|
8242
|
+
foreignKeyName: "itk_offertes_contact_id_fkey";
|
|
8243
|
+
columns: ["contact_id"];
|
|
8244
|
+
isOneToOne: false;
|
|
8245
|
+
referencedRelation: "itk_contact_persons";
|
|
8246
|
+
referencedColumns: ["id"];
|
|
8247
|
+
},
|
|
8248
|
+
{
|
|
8249
|
+
foreignKeyName: "itk_offertes_customer_id_fkey";
|
|
8250
|
+
columns: ["customer_id"];
|
|
8251
|
+
isOneToOne: false;
|
|
8252
|
+
referencedRelation: "itk_customers";
|
|
8253
|
+
referencedColumns: ["id"];
|
|
8254
|
+
},
|
|
8255
|
+
{
|
|
8256
|
+
foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
|
|
8257
|
+
columns: ["follow_up_werkbon_id"];
|
|
8258
|
+
isOneToOne: false;
|
|
8259
|
+
referencedRelation: "werkbonnen";
|
|
8260
|
+
referencedColumns: ["id"];
|
|
8261
|
+
},
|
|
8262
|
+
{
|
|
8263
|
+
foreignKeyName: "itk_offertes_werkbon_id_fkey";
|
|
8264
|
+
columns: ["werkbon_id"];
|
|
8265
|
+
isOneToOne: false;
|
|
8266
|
+
referencedRelation: "werkbonnen";
|
|
8267
|
+
referencedColumns: ["id"];
|
|
8268
|
+
},
|
|
8269
|
+
{
|
|
8270
|
+
foreignKeyName: "itk_offertes_work_location_id_fkey";
|
|
8271
|
+
columns: ["work_location_id"];
|
|
8272
|
+
isOneToOne: false;
|
|
8273
|
+
referencedRelation: "itk_work_locations";
|
|
8274
|
+
referencedColumns: ["id"];
|
|
8275
|
+
}
|
|
8276
|
+
];
|
|
8277
|
+
};
|
|
7979
8278
|
itk_work_locations: {
|
|
7980
8279
|
Row: {
|
|
7981
8280
|
city: string | null;
|
|
@@ -10410,6 +10709,65 @@ export type Database = {
|
|
|
10410
10709
|
}
|
|
10411
10710
|
];
|
|
10412
10711
|
};
|
|
10712
|
+
medewerker_details: {
|
|
10713
|
+
Row: {
|
|
10714
|
+
color: string | null;
|
|
10715
|
+
created_at: string;
|
|
10716
|
+
hours_fri: number | null;
|
|
10717
|
+
hours_mon: number | null;
|
|
10718
|
+
hours_thu: number | null;
|
|
10719
|
+
hours_tue: number | null;
|
|
10720
|
+
hours_wed: number | null;
|
|
10721
|
+
id: string;
|
|
10722
|
+
is_active: boolean;
|
|
10723
|
+
leave_balance_hours: number;
|
|
10724
|
+
persnr: string | null;
|
|
10725
|
+
phone: string | null;
|
|
10726
|
+
profile_id: string;
|
|
10727
|
+
updated_at: string;
|
|
10728
|
+
};
|
|
10729
|
+
Insert: {
|
|
10730
|
+
color?: string | null;
|
|
10731
|
+
created_at?: string;
|
|
10732
|
+
hours_fri?: number | null;
|
|
10733
|
+
hours_mon?: number | null;
|
|
10734
|
+
hours_thu?: number | null;
|
|
10735
|
+
hours_tue?: number | null;
|
|
10736
|
+
hours_wed?: number | null;
|
|
10737
|
+
id?: string;
|
|
10738
|
+
is_active?: boolean;
|
|
10739
|
+
leave_balance_hours?: number;
|
|
10740
|
+
persnr?: string | null;
|
|
10741
|
+
phone?: string | null;
|
|
10742
|
+
profile_id: string;
|
|
10743
|
+
updated_at?: string;
|
|
10744
|
+
};
|
|
10745
|
+
Update: {
|
|
10746
|
+
color?: string | null;
|
|
10747
|
+
created_at?: string;
|
|
10748
|
+
hours_fri?: number | null;
|
|
10749
|
+
hours_mon?: number | null;
|
|
10750
|
+
hours_thu?: number | null;
|
|
10751
|
+
hours_tue?: number | null;
|
|
10752
|
+
hours_wed?: number | null;
|
|
10753
|
+
id?: string;
|
|
10754
|
+
is_active?: boolean;
|
|
10755
|
+
leave_balance_hours?: number;
|
|
10756
|
+
persnr?: string | null;
|
|
10757
|
+
phone?: string | null;
|
|
10758
|
+
profile_id?: string;
|
|
10759
|
+
updated_at?: string;
|
|
10760
|
+
};
|
|
10761
|
+
Relationships: [
|
|
10762
|
+
{
|
|
10763
|
+
foreignKeyName: "medewerker_details_profile_id_fkey";
|
|
10764
|
+
columns: ["profile_id"];
|
|
10765
|
+
isOneToOne: true;
|
|
10766
|
+
referencedRelation: "profiles";
|
|
10767
|
+
referencedColumns: ["id"];
|
|
10768
|
+
}
|
|
10769
|
+
];
|
|
10770
|
+
};
|
|
10413
10771
|
module_features: {
|
|
10414
10772
|
Row: {
|
|
10415
10773
|
created_at: string;
|
|
@@ -13922,6 +14280,71 @@ export type Database = {
|
|
|
13922
14280
|
};
|
|
13923
14281
|
Relationships: [];
|
|
13924
14282
|
};
|
|
14283
|
+
profile_modules: {
|
|
14284
|
+
Row: {
|
|
14285
|
+
created_at: string;
|
|
14286
|
+
id: string;
|
|
14287
|
+
module_id: string;
|
|
14288
|
+
profile_id: string;
|
|
14289
|
+
};
|
|
14290
|
+
Insert: {
|
|
14291
|
+
created_at?: string;
|
|
14292
|
+
id?: string;
|
|
14293
|
+
module_id: string;
|
|
14294
|
+
profile_id: string;
|
|
14295
|
+
};
|
|
14296
|
+
Update: {
|
|
14297
|
+
created_at?: string;
|
|
14298
|
+
id?: string;
|
|
14299
|
+
module_id?: string;
|
|
14300
|
+
profile_id?: string;
|
|
14301
|
+
};
|
|
14302
|
+
Relationships: [
|
|
14303
|
+
{
|
|
14304
|
+
foreignKeyName: "profile_modules_profile_id_fkey";
|
|
14305
|
+
columns: ["profile_id"];
|
|
14306
|
+
isOneToOne: false;
|
|
14307
|
+
referencedRelation: "profiles_org";
|
|
14308
|
+
referencedColumns: ["id"];
|
|
14309
|
+
}
|
|
14310
|
+
];
|
|
14311
|
+
};
|
|
14312
|
+
profile_roles: {
|
|
14313
|
+
Row: {
|
|
14314
|
+
created_at: string;
|
|
14315
|
+
id: string;
|
|
14316
|
+
profile_id: string;
|
|
14317
|
+
role_id: string;
|
|
14318
|
+
};
|
|
14319
|
+
Insert: {
|
|
14320
|
+
created_at?: string;
|
|
14321
|
+
id?: string;
|
|
14322
|
+
profile_id: string;
|
|
14323
|
+
role_id: string;
|
|
14324
|
+
};
|
|
14325
|
+
Update: {
|
|
14326
|
+
created_at?: string;
|
|
14327
|
+
id?: string;
|
|
14328
|
+
profile_id?: string;
|
|
14329
|
+
role_id?: string;
|
|
14330
|
+
};
|
|
14331
|
+
Relationships: [
|
|
14332
|
+
{
|
|
14333
|
+
foreignKeyName: "profile_roles_profile_id_fkey";
|
|
14334
|
+
columns: ["profile_id"];
|
|
14335
|
+
isOneToOne: false;
|
|
14336
|
+
referencedRelation: "profiles_org";
|
|
14337
|
+
referencedColumns: ["id"];
|
|
14338
|
+
},
|
|
14339
|
+
{
|
|
14340
|
+
foreignKeyName: "profile_roles_role_id_fkey";
|
|
14341
|
+
columns: ["role_id"];
|
|
14342
|
+
isOneToOne: false;
|
|
14343
|
+
referencedRelation: "roles";
|
|
14344
|
+
referencedColumns: ["id"];
|
|
14345
|
+
}
|
|
14346
|
+
];
|
|
14347
|
+
};
|
|
13925
14348
|
profiles: {
|
|
13926
14349
|
Row: {
|
|
13927
14350
|
address: string | null;
|
|
@@ -13969,6 +14392,41 @@ export type Database = {
|
|
|
13969
14392
|
}
|
|
13970
14393
|
];
|
|
13971
14394
|
};
|
|
14395
|
+
profiles_org: {
|
|
14396
|
+
Row: {
|
|
14397
|
+
created_at: string;
|
|
14398
|
+
id: string;
|
|
14399
|
+
is_default: boolean;
|
|
14400
|
+
name: string;
|
|
14401
|
+
tenant_id: string | null;
|
|
14402
|
+
updated_at: string;
|
|
14403
|
+
};
|
|
14404
|
+
Insert: {
|
|
14405
|
+
created_at?: string;
|
|
14406
|
+
id?: string;
|
|
14407
|
+
is_default?: boolean;
|
|
14408
|
+
name: string;
|
|
14409
|
+
tenant_id?: string | null;
|
|
14410
|
+
updated_at?: string;
|
|
14411
|
+
};
|
|
14412
|
+
Update: {
|
|
14413
|
+
created_at?: string;
|
|
14414
|
+
id?: string;
|
|
14415
|
+
is_default?: boolean;
|
|
14416
|
+
name?: string;
|
|
14417
|
+
tenant_id?: string | null;
|
|
14418
|
+
updated_at?: string;
|
|
14419
|
+
};
|
|
14420
|
+
Relationships: [
|
|
14421
|
+
{
|
|
14422
|
+
foreignKeyName: "profiles_org_tenant_id_fkey";
|
|
14423
|
+
columns: ["tenant_id"];
|
|
14424
|
+
isOneToOne: false;
|
|
14425
|
+
referencedRelation: "tenants";
|
|
14426
|
+
referencedColumns: ["id"];
|
|
14427
|
+
}
|
|
14428
|
+
];
|
|
14429
|
+
};
|
|
13972
14430
|
projects: {
|
|
13973
14431
|
Row: {
|
|
13974
14432
|
contact_name: string | null;
|
|
@@ -15186,6 +15644,7 @@ export type Database = {
|
|
|
15186
15644
|
type: string;
|
|
15187
15645
|
updated_at: string;
|
|
15188
15646
|
vereist_medewerker: boolean;
|
|
15647
|
+
werkplek: string | null;
|
|
15189
15648
|
};
|
|
15190
15649
|
Insert: {
|
|
15191
15650
|
actief?: boolean;
|
|
@@ -15199,6 +15658,7 @@ export type Database = {
|
|
|
15199
15658
|
type?: string;
|
|
15200
15659
|
updated_at?: string;
|
|
15201
15660
|
vereist_medewerker?: boolean;
|
|
15661
|
+
werkplek?: string | null;
|
|
15202
15662
|
};
|
|
15203
15663
|
Update: {
|
|
15204
15664
|
actief?: boolean;
|
|
@@ -15212,9 +15672,48 @@ export type Database = {
|
|
|
15212
15672
|
type?: string;
|
|
15213
15673
|
updated_at?: string;
|
|
15214
15674
|
vereist_medewerker?: boolean;
|
|
15675
|
+
werkplek?: string | null;
|
|
15215
15676
|
};
|
|
15216
15677
|
Relationships: [];
|
|
15217
15678
|
};
|
|
15679
|
+
sick_periods: {
|
|
15680
|
+
Row: {
|
|
15681
|
+
created_at: string;
|
|
15682
|
+
employee_id: string;
|
|
15683
|
+
end_date: string | null;
|
|
15684
|
+
id: string;
|
|
15685
|
+
notes: string | null;
|
|
15686
|
+
start_date: string;
|
|
15687
|
+
updated_at: string;
|
|
15688
|
+
};
|
|
15689
|
+
Insert: {
|
|
15690
|
+
created_at?: string;
|
|
15691
|
+
employee_id: string;
|
|
15692
|
+
end_date?: string | null;
|
|
15693
|
+
id?: string;
|
|
15694
|
+
notes?: string | null;
|
|
15695
|
+
start_date: string;
|
|
15696
|
+
updated_at?: string;
|
|
15697
|
+
};
|
|
15698
|
+
Update: {
|
|
15699
|
+
created_at?: string;
|
|
15700
|
+
employee_id?: string;
|
|
15701
|
+
end_date?: string | null;
|
|
15702
|
+
id?: string;
|
|
15703
|
+
notes?: string | null;
|
|
15704
|
+
start_date?: string;
|
|
15705
|
+
updated_at?: string;
|
|
15706
|
+
};
|
|
15707
|
+
Relationships: [
|
|
15708
|
+
{
|
|
15709
|
+
foreignKeyName: "sick_periods_employee_id_fkey";
|
|
15710
|
+
columns: ["employee_id"];
|
|
15711
|
+
isOneToOne: false;
|
|
15712
|
+
referencedRelation: "profiles";
|
|
15713
|
+
referencedColumns: ["id"];
|
|
15714
|
+
}
|
|
15715
|
+
];
|
|
15716
|
+
};
|
|
15218
15717
|
sidebar_config: {
|
|
15219
15718
|
Row: {
|
|
15220
15719
|
id: string;
|
|
@@ -19987,6 +20486,13 @@ export type Database = {
|
|
|
19987
20486
|
};
|
|
19988
20487
|
Returns: string;
|
|
19989
20488
|
};
|
|
20489
|
+
employee_day_hours: {
|
|
20490
|
+
Args: {
|
|
20491
|
+
_day: string;
|
|
20492
|
+
_employee_id: string;
|
|
20493
|
+
};
|
|
20494
|
+
Returns: number;
|
|
20495
|
+
};
|
|
19990
20496
|
enqueue_cart_replan_if_unlocked: {
|
|
19991
20497
|
Args: {
|
|
19992
20498
|
p_order_id: string;
|
|
@@ -20340,6 +20846,19 @@ export type Database = {
|
|
|
20340
20846
|
Args: never;
|
|
20341
20847
|
Returns: boolean;
|
|
20342
20848
|
};
|
|
20849
|
+
itk_offerte_naar_werkbon: {
|
|
20850
|
+
Args: {
|
|
20851
|
+
_offerte_id: string;
|
|
20852
|
+
};
|
|
20853
|
+
Returns: string;
|
|
20854
|
+
};
|
|
20855
|
+
itk_offerte_restant_mandaat: {
|
|
20856
|
+
Args: {
|
|
20857
|
+
_exclude_offerte_id?: string;
|
|
20858
|
+
_werkbon_id: string;
|
|
20859
|
+
};
|
|
20860
|
+
Returns: number;
|
|
20861
|
+
};
|
|
20343
20862
|
jwt_has_role: {
|
|
20344
20863
|
Args: {
|
|
20345
20864
|
_role: Database["public"]["Enums"]["app_role"];
|
|
@@ -20350,9 +20869,19 @@ export type Database = {
|
|
|
20350
20869
|
Args: never;
|
|
20351
20870
|
Returns: {
|
|
20352
20871
|
avatar_url: string;
|
|
20872
|
+
color: string;
|
|
20353
20873
|
display_name: string;
|
|
20354
20874
|
email: string;
|
|
20875
|
+
hours_fri: number;
|
|
20876
|
+
hours_mon: number;
|
|
20877
|
+
hours_thu: number;
|
|
20878
|
+
hours_tue: number;
|
|
20879
|
+
hours_wed: number;
|
|
20355
20880
|
id: string;
|
|
20881
|
+
is_active: boolean;
|
|
20882
|
+
leave_balance_hours: number;
|
|
20883
|
+
persnr: string;
|
|
20884
|
+
phone: string;
|
|
20356
20885
|
roles: string[];
|
|
20357
20886
|
}[];
|
|
20358
20887
|
};
|
|
@@ -20679,17 +21208,6 @@ export type Database = {
|
|
|
20679
21208
|
Returns: string;
|
|
20680
21209
|
};
|
|
20681
21210
|
logistics_emit_event: {
|
|
20682
|
-
Args: {
|
|
20683
|
-
p_event_type: string;
|
|
20684
|
-
p_idempotency_key?: string;
|
|
20685
|
-
p_order_ref: string;
|
|
20686
|
-
p_payload?: Json;
|
|
20687
|
-
p_shadow?: boolean;
|
|
20688
|
-
p_source_module: string;
|
|
20689
|
-
p_strategy_id?: string;
|
|
20690
|
-
};
|
|
20691
|
-
Returns: Json;
|
|
20692
|
-
} | {
|
|
20693
21211
|
Args: {
|
|
20694
21212
|
p_event_type: string;
|
|
20695
21213
|
p_idempotency_key?: string;
|
|
@@ -21534,6 +22052,37 @@ export type Database = {
|
|
|
21534
22052
|
};
|
|
21535
22053
|
Returns: undefined;
|
|
21536
22054
|
};
|
|
22055
|
+
quote_create_from_source: {
|
|
22056
|
+
Args: {
|
|
22057
|
+
_payload?: Json;
|
|
22058
|
+
_source_id: string;
|
|
22059
|
+
_source_type: string;
|
|
22060
|
+
};
|
|
22061
|
+
Returns: string;
|
|
22062
|
+
};
|
|
22063
|
+
quote_get_billable_lines: {
|
|
22064
|
+
Args: {
|
|
22065
|
+
_quotation_id: string;
|
|
22066
|
+
};
|
|
22067
|
+
Returns: Json;
|
|
22068
|
+
};
|
|
22069
|
+
quote_get_summary: {
|
|
22070
|
+
Args: {
|
|
22071
|
+
_quotation_id: string;
|
|
22072
|
+
};
|
|
22073
|
+
Returns: Json;
|
|
22074
|
+
};
|
|
22075
|
+
quote_list_packages: {
|
|
22076
|
+
Args: never;
|
|
22077
|
+
Returns: Json;
|
|
22078
|
+
};
|
|
22079
|
+
quote_list_sources: {
|
|
22080
|
+
Args: {
|
|
22081
|
+
_limit?: number;
|
|
22082
|
+
_source_type?: string;
|
|
22083
|
+
};
|
|
22084
|
+
Returns: Json;
|
|
22085
|
+
};
|
|
21537
22086
|
recompute_all_reserved_stock: {
|
|
21538
22087
|
Args: never;
|
|
21539
22088
|
Returns: undefined;
|
|
@@ -22069,6 +22618,12 @@ export type Database = {
|
|
|
22069
22618
|
};
|
|
22070
22619
|
Returns: undefined;
|
|
22071
22620
|
};
|
|
22621
|
+
sync_sick_time_off: {
|
|
22622
|
+
Args: {
|
|
22623
|
+
_period_id: string;
|
|
22624
|
+
};
|
|
22625
|
+
Returns: number;
|
|
22626
|
+
};
|
|
22072
22627
|
trade_item_stock_duplicates: {
|
|
22073
22628
|
Args: never;
|
|
22074
22629
|
Returns: {
|
|
@@ -22146,7 +22701,7 @@ export type Database = {
|
|
|
22146
22701
|
Enums: {
|
|
22147
22702
|
ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
|
|
22148
22703
|
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
22149
|
-
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
|
|
22704
|
+
doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
|
|
22150
22705
|
doc_orientation: "portrait" | "landscape";
|
|
22151
22706
|
exact_env: "staging" | "live";
|
|
22152
22707
|
exact_push_status: "pending" | "sent" | "error";
|
|
@@ -22217,7 +22772,7 @@ export declare const Constants: {
|
|
|
22217
22772
|
readonly Enums: {
|
|
22218
22773
|
readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
|
|
22219
22774
|
readonly app_role: readonly ["admin", "planner", "monteur", "administratie", "ai_admin", "manager", "warehouse", "sales", "developer", "receptie"];
|
|
22220
|
-
readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon"];
|
|
22775
|
+
readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
|
|
22221
22776
|
readonly doc_orientation: readonly ["portrait", "landscape"];
|
|
22222
22777
|
readonly exact_env: readonly ["staging", "live"];
|
|
22223
22778
|
readonly exact_push_status: readonly ["pending", "sent", "error"];
|