@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.
Files changed (66) hide show
  1. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +5 -2
  2. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  3. package/dist-lib/components/verkoop/SalesOrdersTable.js +27 -13
  4. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +114 -35
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts +571 -12
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.d.ts +571 -12
  9. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts +571 -12
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/types.d.ts +594 -13
  13. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.js +3 -0
  15. package/dist-lib/lib/cart-lock.functions.d.ts +571 -12
  16. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-planning-settings.functions.d.ts +6281 -132
  18. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/cart-replan.functions.d.ts +1713 -36
  20. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/create-order.functions.d.ts +31355 -193
  22. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/create-order.functions.js +18 -1
  24. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1713 -36
  25. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +571 -12
  27. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-mirror.functions.d.ts +571 -12
  29. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-mirror.functions.js +6 -1
  31. package/dist-lib/lib/floriday-public.functions.d.ts +3997 -84
  32. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-writes.functions.d.ts +2855 -60
  34. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/invoice-timing.functions.d.ts +2284 -48
  36. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -1
  38. package/dist-lib/lib/invoice-timing.server.js +1 -0
  39. package/dist-lib/lib/load-carriers.functions.d.ts +571 -12
  40. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/logistics-engine.functions.d.ts +2855 -60
  42. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/logistics-stock.functions.d.ts +1142 -24
  44. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/order-addresses.functions.d.ts +571 -12
  46. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/order-buffers.functions.d.ts +1713 -36
  48. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/order-cancel.server.d.ts +24 -0
  50. package/dist-lib/lib/order-cancel.server.d.ts.map +1 -0
  51. package/dist-lib/lib/order-cancel.server.js +130 -0
  52. package/dist-lib/lib/order-carrier.functions.d.ts +1142 -24
  53. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/order-pickup.functions.d.ts +1142 -24
  55. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/order-shipments.functions.d.ts +2284 -48
  57. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/salesorders-list.functions.d.ts +571 -12
  59. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  61. package/dist-lib/lib/salesorders-list.server.js +4 -60
  62. package/dist-lib/lib/salesorders.functions.d.ts +2855 -60
  63. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/tradeitems.functions.d.ts +571 -12
  65. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  66. package/package.json +1 -1
@@ -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;
@@ -11744,6 +12102,8 @@ export type Database = {
11744
12102
  orders: {
11745
12103
  Row: {
11746
12104
  buffer_id: string | null;
12105
+ cancel_reason: string | null;
12106
+ cancelled_at: string | null;
11747
12107
  created_at: string;
11748
12108
  custom_fields: Json;
11749
12109
  customer_id: string | null;
@@ -11766,6 +12126,8 @@ export type Database = {
11766
12126
  };
11767
12127
  Insert: {
11768
12128
  buffer_id?: string | null;
12129
+ cancel_reason?: string | null;
12130
+ cancelled_at?: string | null;
11769
12131
  created_at?: string;
11770
12132
  custom_fields?: Json;
11771
12133
  customer_id?: string | null;
@@ -11788,6 +12150,8 @@ export type Database = {
11788
12150
  };
11789
12151
  Update: {
11790
12152
  buffer_id?: string | null;
12153
+ cancel_reason?: string | null;
12154
+ cancelled_at?: string | null;
11791
12155
  created_at?: string;
11792
12156
  custom_fields?: Json;
11793
12157
  customer_id?: string | null;
@@ -13922,6 +14286,71 @@ export type Database = {
13922
14286
  };
13923
14287
  Relationships: [];
13924
14288
  };
14289
+ profile_modules: {
14290
+ Row: {
14291
+ created_at: string;
14292
+ id: string;
14293
+ module_id: string;
14294
+ profile_id: string;
14295
+ };
14296
+ Insert: {
14297
+ created_at?: string;
14298
+ id?: string;
14299
+ module_id: string;
14300
+ profile_id: string;
14301
+ };
14302
+ Update: {
14303
+ created_at?: string;
14304
+ id?: string;
14305
+ module_id?: string;
14306
+ profile_id?: string;
14307
+ };
14308
+ Relationships: [
14309
+ {
14310
+ foreignKeyName: "profile_modules_profile_id_fkey";
14311
+ columns: ["profile_id"];
14312
+ isOneToOne: false;
14313
+ referencedRelation: "profiles_org";
14314
+ referencedColumns: ["id"];
14315
+ }
14316
+ ];
14317
+ };
14318
+ profile_roles: {
14319
+ Row: {
14320
+ created_at: string;
14321
+ id: string;
14322
+ profile_id: string;
14323
+ role_id: string;
14324
+ };
14325
+ Insert: {
14326
+ created_at?: string;
14327
+ id?: string;
14328
+ profile_id: string;
14329
+ role_id: string;
14330
+ };
14331
+ Update: {
14332
+ created_at?: string;
14333
+ id?: string;
14334
+ profile_id?: string;
14335
+ role_id?: string;
14336
+ };
14337
+ Relationships: [
14338
+ {
14339
+ foreignKeyName: "profile_roles_profile_id_fkey";
14340
+ columns: ["profile_id"];
14341
+ isOneToOne: false;
14342
+ referencedRelation: "profiles_org";
14343
+ referencedColumns: ["id"];
14344
+ },
14345
+ {
14346
+ foreignKeyName: "profile_roles_role_id_fkey";
14347
+ columns: ["role_id"];
14348
+ isOneToOne: false;
14349
+ referencedRelation: "roles";
14350
+ referencedColumns: ["id"];
14351
+ }
14352
+ ];
14353
+ };
13925
14354
  profiles: {
13926
14355
  Row: {
13927
14356
  address: string | null;
@@ -13969,6 +14398,41 @@ export type Database = {
13969
14398
  }
13970
14399
  ];
13971
14400
  };
14401
+ profiles_org: {
14402
+ Row: {
14403
+ created_at: string;
14404
+ id: string;
14405
+ is_default: boolean;
14406
+ name: string;
14407
+ tenant_id: string | null;
14408
+ updated_at: string;
14409
+ };
14410
+ Insert: {
14411
+ created_at?: string;
14412
+ id?: string;
14413
+ is_default?: boolean;
14414
+ name: string;
14415
+ tenant_id?: string | null;
14416
+ updated_at?: string;
14417
+ };
14418
+ Update: {
14419
+ created_at?: string;
14420
+ id?: string;
14421
+ is_default?: boolean;
14422
+ name?: string;
14423
+ tenant_id?: string | null;
14424
+ updated_at?: string;
14425
+ };
14426
+ Relationships: [
14427
+ {
14428
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14429
+ columns: ["tenant_id"];
14430
+ isOneToOne: false;
14431
+ referencedRelation: "tenants";
14432
+ referencedColumns: ["id"];
14433
+ }
14434
+ ];
14435
+ };
13972
14436
  projects: {
13973
14437
  Row: {
13974
14438
  contact_name: string | null;
@@ -15186,6 +15650,7 @@ export type Database = {
15186
15650
  type: string;
15187
15651
  updated_at: string;
15188
15652
  vereist_medewerker: boolean;
15653
+ werkplek: string | null;
15189
15654
  };
15190
15655
  Insert: {
15191
15656
  actief?: boolean;
@@ -15199,6 +15664,7 @@ export type Database = {
15199
15664
  type?: string;
15200
15665
  updated_at?: string;
15201
15666
  vereist_medewerker?: boolean;
15667
+ werkplek?: string | null;
15202
15668
  };
15203
15669
  Update: {
15204
15670
  actief?: boolean;
@@ -15212,9 +15678,48 @@ export type Database = {
15212
15678
  type?: string;
15213
15679
  updated_at?: string;
15214
15680
  vereist_medewerker?: boolean;
15681
+ werkplek?: string | null;
15215
15682
  };
15216
15683
  Relationships: [];
15217
15684
  };
15685
+ sick_periods: {
15686
+ Row: {
15687
+ created_at: string;
15688
+ employee_id: string;
15689
+ end_date: string | null;
15690
+ id: string;
15691
+ notes: string | null;
15692
+ start_date: string;
15693
+ updated_at: string;
15694
+ };
15695
+ Insert: {
15696
+ created_at?: string;
15697
+ employee_id: string;
15698
+ end_date?: string | null;
15699
+ id?: string;
15700
+ notes?: string | null;
15701
+ start_date: string;
15702
+ updated_at?: string;
15703
+ };
15704
+ Update: {
15705
+ created_at?: string;
15706
+ employee_id?: string;
15707
+ end_date?: string | null;
15708
+ id?: string;
15709
+ notes?: string | null;
15710
+ start_date?: string;
15711
+ updated_at?: string;
15712
+ };
15713
+ Relationships: [
15714
+ {
15715
+ foreignKeyName: "sick_periods_employee_id_fkey";
15716
+ columns: ["employee_id"];
15717
+ isOneToOne: false;
15718
+ referencedRelation: "profiles";
15719
+ referencedColumns: ["id"];
15720
+ }
15721
+ ];
15722
+ };
15218
15723
  sidebar_config: {
15219
15724
  Row: {
15220
15725
  id: string;
@@ -19987,6 +20492,13 @@ export type Database = {
19987
20492
  };
19988
20493
  Returns: string;
19989
20494
  };
20495
+ employee_day_hours: {
20496
+ Args: {
20497
+ _day: string;
20498
+ _employee_id: string;
20499
+ };
20500
+ Returns: number;
20501
+ };
19990
20502
  enqueue_cart_replan_if_unlocked: {
19991
20503
  Args: {
19992
20504
  p_order_id: string;
@@ -20340,6 +20852,19 @@ export type Database = {
20340
20852
  Args: never;
20341
20853
  Returns: boolean;
20342
20854
  };
20855
+ itk_offerte_naar_werkbon: {
20856
+ Args: {
20857
+ _offerte_id: string;
20858
+ };
20859
+ Returns: string;
20860
+ };
20861
+ itk_offerte_restant_mandaat: {
20862
+ Args: {
20863
+ _exclude_offerte_id?: string;
20864
+ _werkbon_id: string;
20865
+ };
20866
+ Returns: number;
20867
+ };
20343
20868
  jwt_has_role: {
20344
20869
  Args: {
20345
20870
  _role: Database["public"]["Enums"]["app_role"];
@@ -20350,9 +20875,19 @@ export type Database = {
20350
20875
  Args: never;
20351
20876
  Returns: {
20352
20877
  avatar_url: string;
20878
+ color: string;
20353
20879
  display_name: string;
20354
20880
  email: string;
20881
+ hours_fri: number;
20882
+ hours_mon: number;
20883
+ hours_thu: number;
20884
+ hours_tue: number;
20885
+ hours_wed: number;
20355
20886
  id: string;
20887
+ is_active: boolean;
20888
+ leave_balance_hours: number;
20889
+ persnr: string;
20890
+ phone: string;
20356
20891
  roles: string[];
20357
20892
  }[];
20358
20893
  };
@@ -20679,17 +21214,6 @@ export type Database = {
20679
21214
  Returns: string;
20680
21215
  };
20681
21216
  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
21217
  Args: {
20694
21218
  p_event_type: string;
20695
21219
  p_idempotency_key?: string;
@@ -21534,6 +22058,37 @@ export type Database = {
21534
22058
  };
21535
22059
  Returns: undefined;
21536
22060
  };
22061
+ quote_create_from_source: {
22062
+ Args: {
22063
+ _payload?: Json;
22064
+ _source_id: string;
22065
+ _source_type: string;
22066
+ };
22067
+ Returns: string;
22068
+ };
22069
+ quote_get_billable_lines: {
22070
+ Args: {
22071
+ _quotation_id: string;
22072
+ };
22073
+ Returns: Json;
22074
+ };
22075
+ quote_get_summary: {
22076
+ Args: {
22077
+ _quotation_id: string;
22078
+ };
22079
+ Returns: Json;
22080
+ };
22081
+ quote_list_packages: {
22082
+ Args: never;
22083
+ Returns: Json;
22084
+ };
22085
+ quote_list_sources: {
22086
+ Args: {
22087
+ _limit?: number;
22088
+ _source_type?: string;
22089
+ };
22090
+ Returns: Json;
22091
+ };
21537
22092
  recompute_all_reserved_stock: {
21538
22093
  Args: never;
21539
22094
  Returns: undefined;
@@ -22069,6 +22624,12 @@ export type Database = {
22069
22624
  };
22070
22625
  Returns: undefined;
22071
22626
  };
22627
+ sync_sick_time_off: {
22628
+ Args: {
22629
+ _period_id: string;
22630
+ };
22631
+ Returns: number;
22632
+ };
22072
22633
  trade_item_stock_duplicates: {
22073
22634
  Args: never;
22074
22635
  Returns: {
@@ -22142,11 +22703,31 @@ export type Database = {
22142
22703
  Args: never;
22143
22704
  Returns: string;
22144
22705
  };
22706
+ wo_create_from_source: {
22707
+ Args: {
22708
+ _payload?: Json;
22709
+ _source_id: string;
22710
+ _source_type: string;
22711
+ };
22712
+ Returns: string;
22713
+ };
22714
+ wo_get_billable_lines: {
22715
+ Args: {
22716
+ _work_order_id: string;
22717
+ };
22718
+ Returns: Json;
22719
+ };
22720
+ wo_get_summary: {
22721
+ Args: {
22722
+ _work_order_id: string;
22723
+ };
22724
+ Returns: Json;
22725
+ };
22145
22726
  };
22146
22727
  Enums: {
22147
22728
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
22148
22729
  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";
22730
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
22150
22731
  doc_orientation: "portrait" | "landscape";
22151
22732
  exact_env: "staging" | "live";
22152
22733
  exact_push_status: "pending" | "sent" | "error";
@@ -22217,7 +22798,7 @@ export declare const Constants: {
22217
22798
  readonly Enums: {
22218
22799
  readonly ai_import_status: readonly ["nieuw", "verwerken", "bevestigen", "klaar", "mislukt"];
22219
22800
  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"];
22801
+ readonly doc_layout_type: readonly ["pakbon", "factuur", "offerte", "orderbevestiging", "etiket", "verzendlabel", "productlabel", "barcode_label", "magazijnlijst", "controlelijst", "transportdocument", "vrij", "sticker", "productiebon", "veilingbon", "afleverbrief", "veilingbrief"];
22221
22802
  readonly doc_orientation: readonly ["portrait", "landscape"];
22222
22803
  readonly exact_env: readonly ["staging", "live"];
22223
22804
  readonly exact_push_status: readonly ["pending", "sent", "error"];