@flowselections/mailbox-orders 1.0.15 → 1.0.16

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.
@@ -871,6 +871,126 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
871
871
  };
872
872
  Relationships: [];
873
873
  };
874
+ cao_holidays: {
875
+ Row: {
876
+ created_at: string;
877
+ description: string | null;
878
+ holiday_date: string;
879
+ id: string;
880
+ updated_at: string;
881
+ };
882
+ Insert: {
883
+ created_at?: string;
884
+ description?: string | null;
885
+ holiday_date: string;
886
+ id?: string;
887
+ updated_at?: string;
888
+ };
889
+ Update: {
890
+ created_at?: string;
891
+ description?: string | null;
892
+ holiday_date?: string;
893
+ id?: string;
894
+ updated_at?: string;
895
+ };
896
+ Relationships: [];
897
+ };
898
+ cao_settings: {
899
+ Row: {
900
+ auto_break_after_hours: number;
901
+ auto_break_minutes: number;
902
+ auto_break_unpaid: boolean;
903
+ auto_stop_after_hours: number;
904
+ callout_fee: number;
905
+ created_at: string;
906
+ daily_regular_hours: number;
907
+ default_hourly_rate: number;
908
+ id: string;
909
+ materials_markup_percent: number;
910
+ max_daily_hours: number;
911
+ max_weekly_hours: number;
912
+ meal_allowance_amount: number;
913
+ overtime_pct_178: number;
914
+ overtime_pct_189: number;
915
+ overtime_pct_212: number;
916
+ reminder_after_hours: number;
917
+ standby_evening_amount: number;
918
+ standby_weekend_amount: number;
919
+ travel_cost_per_km: number | null;
920
+ travel_cost_threshold_km: number | null;
921
+ travel_counts_as_work: boolean;
922
+ travel_hourly_rate: number;
923
+ travel_rate_per_hour: number;
924
+ travel_threshold_minutes: number;
925
+ updated_at: string;
926
+ weekend_always_212: boolean;
927
+ window_end: string;
928
+ window_start: string;
929
+ };
930
+ Insert: {
931
+ auto_break_after_hours?: number;
932
+ auto_break_minutes?: number;
933
+ auto_break_unpaid?: boolean;
934
+ auto_stop_after_hours?: number;
935
+ callout_fee?: number;
936
+ created_at?: string;
937
+ daily_regular_hours?: number;
938
+ default_hourly_rate?: number;
939
+ id?: string;
940
+ materials_markup_percent?: number;
941
+ max_daily_hours?: number;
942
+ max_weekly_hours?: number;
943
+ meal_allowance_amount?: number;
944
+ overtime_pct_178?: number;
945
+ overtime_pct_189?: number;
946
+ overtime_pct_212?: number;
947
+ reminder_after_hours?: number;
948
+ standby_evening_amount?: number;
949
+ standby_weekend_amount?: number;
950
+ travel_cost_per_km?: number | null;
951
+ travel_cost_threshold_km?: number | null;
952
+ travel_counts_as_work?: boolean;
953
+ travel_hourly_rate?: number;
954
+ travel_rate_per_hour?: number;
955
+ travel_threshold_minutes?: number;
956
+ updated_at?: string;
957
+ weekend_always_212?: boolean;
958
+ window_end?: string;
959
+ window_start?: string;
960
+ };
961
+ Update: {
962
+ auto_break_after_hours?: number;
963
+ auto_break_minutes?: number;
964
+ auto_break_unpaid?: boolean;
965
+ auto_stop_after_hours?: number;
966
+ callout_fee?: number;
967
+ created_at?: string;
968
+ daily_regular_hours?: number;
969
+ default_hourly_rate?: number;
970
+ id?: string;
971
+ materials_markup_percent?: number;
972
+ max_daily_hours?: number;
973
+ max_weekly_hours?: number;
974
+ meal_allowance_amount?: number;
975
+ overtime_pct_178?: number;
976
+ overtime_pct_189?: number;
977
+ overtime_pct_212?: number;
978
+ reminder_after_hours?: number;
979
+ standby_evening_amount?: number;
980
+ standby_weekend_amount?: number;
981
+ travel_cost_per_km?: number | null;
982
+ travel_cost_threshold_km?: number | null;
983
+ travel_counts_as_work?: boolean;
984
+ travel_hourly_rate?: number;
985
+ travel_rate_per_hour?: number;
986
+ travel_threshold_minutes?: number;
987
+ updated_at?: string;
988
+ weekend_always_212?: boolean;
989
+ window_end?: string;
990
+ window_start?: string;
991
+ };
992
+ Relationships: [];
993
+ };
874
994
  carrier_shipping_rates: {
875
995
  Row: {
876
996
  carrier_id: string;
@@ -7765,7 +7885,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7765
7885
  start_date: string;
7766
7886
  start_time: string | null;
7767
7887
  status: string;
7768
- tenant_id: string;
7769
7888
  updated_at: string;
7770
7889
  user_id: string;
7771
7890
  };
@@ -7783,7 +7902,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7783
7902
  start_date: string;
7784
7903
  start_time?: string | null;
7785
7904
  status?: string;
7786
- tenant_id?: string;
7787
7905
  updated_at?: string;
7788
7906
  user_id: string;
7789
7907
  };
@@ -7801,7 +7919,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7801
7919
  start_date?: string;
7802
7920
  start_time?: string | null;
7803
7921
  status?: string;
7804
- tenant_id?: string;
7805
7922
  updated_at?: string;
7806
7923
  user_id?: string;
7807
7924
  };
@@ -7809,13 +7926,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7809
7926
  foreignKeyName: "leave_requests_monteur_id_fkey";
7810
7927
  columns: ["monteur_id"];
7811
7928
  isOneToOne: false;
7812
- referencedRelation: "monteurs";
7929
+ referencedRelation: "profiles";
7813
7930
  referencedColumns: ["id"];
7814
7931
  }, {
7815
7932
  foreignKeyName: "leave_requests_user_id_fkey";
7816
7933
  columns: ["user_id"];
7817
7934
  isOneToOne: false;
7818
- referencedRelation: "monteurs";
7935
+ referencedRelation: "profiles";
7819
7936
  referencedColumns: ["id"];
7820
7937
  }];
7821
7938
  };
@@ -8683,6 +8800,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8683
8800
  };
8684
8801
  Relationships: [];
8685
8802
  };
8803
+ logistics_plan_queue: {
8804
+ Row: {
8805
+ attempts: number;
8806
+ claimed_at: string | null;
8807
+ enqueued_at: string;
8808
+ error: string | null;
8809
+ id: string;
8810
+ next_attempt_at: string;
8811
+ order_id: string;
8812
+ reason: string;
8813
+ status: string;
8814
+ updated_at: string;
8815
+ };
8816
+ Insert: {
8817
+ attempts?: number;
8818
+ claimed_at?: string | null;
8819
+ enqueued_at?: string;
8820
+ error?: string | null;
8821
+ id?: string;
8822
+ next_attempt_at?: string;
8823
+ order_id: string;
8824
+ reason?: string;
8825
+ status?: string;
8826
+ updated_at?: string;
8827
+ };
8828
+ Update: {
8829
+ attempts?: number;
8830
+ claimed_at?: string | null;
8831
+ enqueued_at?: string;
8832
+ error?: string | null;
8833
+ id?: string;
8834
+ next_attempt_at?: string;
8835
+ order_id?: string;
8836
+ reason?: string;
8837
+ status?: string;
8838
+ updated_at?: string;
8839
+ };
8840
+ Relationships: [];
8841
+ };
8686
8842
  logistics_plan_runs: {
8687
8843
  Row: {
8688
8844
  created_at: string;
@@ -8758,6 +8914,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8758
8914
  referencedColumns: ["id"];
8759
8915
  }];
8760
8916
  };
8917
+ logistics_plan_settings: {
8918
+ Row: {
8919
+ key: string;
8920
+ updated_at: string;
8921
+ value: string;
8922
+ };
8923
+ Insert: {
8924
+ key: string;
8925
+ updated_at?: string;
8926
+ value: string;
8927
+ };
8928
+ Update: {
8929
+ key?: string;
8930
+ updated_at?: string;
8931
+ value?: string;
8932
+ };
8933
+ Relationships: [];
8934
+ };
8761
8935
  logistics_rebuffer_state: {
8762
8936
  Row: {
8763
8937
  created_at: string;
@@ -9913,6 +10087,90 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9913
10087
  };
9914
10088
  Relationships: [];
9915
10089
  };
10090
+ material_usage: {
10091
+ Row: {
10092
+ created_at: string;
10093
+ id: string;
10094
+ material_name: string;
10095
+ monteur_id: string | null;
10096
+ price_at_time: number;
10097
+ quantity_used: number;
10098
+ updated_at: string;
10099
+ van_inventory_id: string | null;
10100
+ work_order_id: string;
10101
+ };
10102
+ Insert: {
10103
+ created_at?: string;
10104
+ id?: string;
10105
+ material_name: string;
10106
+ monteur_id?: string | null;
10107
+ price_at_time?: number;
10108
+ quantity_used?: number;
10109
+ updated_at?: string;
10110
+ van_inventory_id?: string | null;
10111
+ work_order_id: string;
10112
+ };
10113
+ Update: {
10114
+ created_at?: string;
10115
+ id?: string;
10116
+ material_name?: string;
10117
+ monteur_id?: string | null;
10118
+ price_at_time?: number;
10119
+ quantity_used?: number;
10120
+ updated_at?: string;
10121
+ van_inventory_id?: string | null;
10122
+ work_order_id?: string;
10123
+ };
10124
+ Relationships: [{
10125
+ foreignKeyName: "material_usage_monteur_id_fkey";
10126
+ columns: ["monteur_id"];
10127
+ isOneToOne: false;
10128
+ referencedRelation: "profiles";
10129
+ referencedColumns: ["id"];
10130
+ }, {
10131
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10132
+ columns: ["van_inventory_id"];
10133
+ isOneToOne: false;
10134
+ referencedRelation: "van_inventories";
10135
+ referencedColumns: ["id"];
10136
+ }, {
10137
+ foreignKeyName: "material_usage_work_order_id_fkey";
10138
+ columns: ["work_order_id"];
10139
+ isOneToOne: false;
10140
+ referencedRelation: "work_orders";
10141
+ referencedColumns: ["id"];
10142
+ }];
10143
+ };
10144
+ module_features: {
10145
+ Row: {
10146
+ created_at: string;
10147
+ feature_id: string;
10148
+ id: string;
10149
+ is_active: boolean;
10150
+ last_seen_at: string;
10151
+ module_id: string;
10152
+ name: string;
10153
+ };
10154
+ Insert: {
10155
+ created_at?: string;
10156
+ feature_id: string;
10157
+ id?: string;
10158
+ is_active?: boolean;
10159
+ last_seen_at?: string;
10160
+ module_id: string;
10161
+ name: string;
10162
+ };
10163
+ Update: {
10164
+ created_at?: string;
10165
+ feature_id?: string;
10166
+ id?: string;
10167
+ is_active?: boolean;
10168
+ last_seen_at?: string;
10169
+ module_id?: string;
10170
+ name?: string;
10171
+ };
10172
+ Relationships: [];
10173
+ };
9916
10174
  module_permissions: {
9917
10175
  Row: {
9918
10176
  created_at: string;
@@ -10021,63 +10279,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10021
10279
  };
10022
10280
  Relationships: [];
10023
10281
  };
10024
- monteurs: {
10025
- Row: {
10026
- avatar_url: string | null;
10027
- color: string | null;
10028
- created_at: string;
10029
- email: string | null;
10030
- id: string;
10031
- is_active: boolean;
10032
- leave_balance_hours: number;
10033
- name: string;
10034
- persnr: number | null;
10035
- phone: string | null;
10036
- role: string;
10037
- tenant_id: string;
10038
- updated_at: string;
10039
- user_id: string | null;
10040
- };
10041
- Insert: {
10042
- avatar_url?: string | null;
10043
- color?: string | null;
10044
- created_at?: string;
10045
- email?: string | null;
10046
- id?: string;
10047
- is_active?: boolean;
10048
- leave_balance_hours?: number;
10049
- name: string;
10050
- persnr?: number | null;
10051
- phone?: string | null;
10052
- role?: string;
10053
- tenant_id: string;
10054
- updated_at?: string;
10055
- user_id?: string | null;
10056
- };
10057
- Update: {
10058
- avatar_url?: string | null;
10059
- color?: string | null;
10060
- created_at?: string;
10061
- email?: string | null;
10062
- id?: string;
10063
- is_active?: boolean;
10064
- leave_balance_hours?: number;
10065
- name?: string;
10066
- persnr?: number | null;
10067
- phone?: string | null;
10068
- role?: string;
10069
- tenant_id?: string;
10070
- updated_at?: string;
10071
- user_id?: string | null;
10072
- };
10073
- Relationships: [{
10074
- foreignKeyName: "monteurs_tenant_id_fkey";
10075
- columns: ["tenant_id"];
10076
- isOneToOne: false;
10077
- referencedRelation: "tenants";
10078
- referencedColumns: ["id"];
10079
- }];
10080
- };
10081
10282
  nmbrs_component_mapping: {
10082
10283
  Row: {
10083
10284
  created_at: string;
@@ -10148,13 +10349,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10148
10349
  nmbrs_employee_number?: string;
10149
10350
  updated_at?: string;
10150
10351
  };
10151
- Relationships: [{
10152
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10153
- columns: ["monteur_id"];
10154
- isOneToOne: true;
10155
- referencedRelation: "monteurs";
10156
- referencedColumns: ["id"];
10157
- }];
10352
+ Relationships: [];
10158
10353
  };
10159
10354
  nmbrs_export_lines: {
10160
10355
  Row: {
@@ -10203,12 +10398,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10203
10398
  wage_code?: string;
10204
10399
  };
10205
10400
  Relationships: [{
10206
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10207
- columns: ["monteur_id"];
10208
- isOneToOne: false;
10209
- referencedRelation: "monteurs";
10210
- referencedColumns: ["id"];
10211
- }, {
10212
10401
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10213
10402
  columns: ["run_id"];
10214
10403
  isOneToOne: false;
@@ -11036,6 +11225,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11036
11225
  error_message: string | null;
11037
11226
  id: string;
11038
11227
  invoice_number: string | null;
11228
+ next_attempt_at: string;
11039
11229
  order_id: string;
11040
11230
  processed_at: string | null;
11041
11231
  status: string;
@@ -11047,6 +11237,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11047
11237
  error_message?: string | null;
11048
11238
  id?: string;
11049
11239
  invoice_number?: string | null;
11240
+ next_attempt_at?: string;
11050
11241
  order_id: string;
11051
11242
  processed_at?: string | null;
11052
11243
  status?: string;
@@ -11058,6 +11249,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11058
11249
  error_message?: string | null;
11059
11250
  id?: string;
11060
11251
  invoice_number?: string | null;
11252
+ next_attempt_at?: string;
11061
11253
  order_id?: string;
11062
11254
  processed_at?: string | null;
11063
11255
  status?: string;
@@ -12596,6 +12788,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12596
12788
  created_at: string;
12597
12789
  id: string;
12598
12790
  laatst_gezien: string;
12791
+ laatste_fout: string | null;
12792
+ laatste_request_id: number | null;
12793
+ mislukte_posts: number;
12599
12794
  tick_sleutel: string;
12600
12795
  updated_at: string;
12601
12796
  };
@@ -12605,6 +12800,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12605
12800
  created_at?: string;
12606
12801
  id?: string;
12607
12802
  laatst_gezien?: string;
12803
+ laatste_fout?: string | null;
12804
+ laatste_request_id?: number | null;
12805
+ mislukte_posts?: number;
12608
12806
  tick_sleutel?: string;
12609
12807
  updated_at?: string;
12610
12808
  };
@@ -12614,6 +12812,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12614
12812
  created_at?: string;
12615
12813
  id?: string;
12616
12814
  laatst_gezien?: string;
12815
+ laatste_fout?: string | null;
12816
+ laatste_request_id?: number | null;
12817
+ mislukte_posts?: number;
12617
12818
  tick_sleutel?: string;
12618
12819
  updated_at?: string;
12619
12820
  };
@@ -14122,57 +14323,147 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14122
14323
  referencedColumns: ["id"];
14123
14324
  }];
14124
14325
  };
14125
- rooms: {
14326
+ role_assignments: {
14126
14327
  Row: {
14127
- capacity: number;
14128
- color_code: string | null;
14129
14328
  created_at: string;
14130
- description: string | null;
14131
- hourly_rate: number;
14132
14329
  id: string;
14133
- image_url: string | null;
14134
- is_active: boolean;
14135
- name: string;
14330
+ role_id: string;
14331
+ user_id: string;
14136
14332
  };
14137
14333
  Insert: {
14138
- capacity?: number;
14139
- color_code?: string | null;
14140
14334
  created_at?: string;
14141
- description?: string | null;
14142
- hourly_rate?: number;
14143
14335
  id?: string;
14144
- image_url?: string | null;
14145
- is_active?: boolean;
14146
- name: string;
14336
+ role_id: string;
14337
+ user_id: string;
14147
14338
  };
14148
14339
  Update: {
14149
- capacity?: number;
14150
- color_code?: string | null;
14151
14340
  created_at?: string;
14152
- description?: string | null;
14153
- hourly_rate?: number;
14154
14341
  id?: string;
14155
- image_url?: string | null;
14156
- is_active?: boolean;
14157
- name?: string;
14342
+ role_id?: string;
14343
+ user_id?: string;
14158
14344
  };
14159
- Relationships: [];
14345
+ Relationships: [{
14346
+ foreignKeyName: "role_assignments_role_id_fkey";
14347
+ columns: ["role_id"];
14348
+ isOneToOne: false;
14349
+ referencedRelation: "roles";
14350
+ referencedColumns: ["id"];
14351
+ }];
14160
14352
  };
14161
- scan_kar_items: {
14353
+ role_permissions: {
14162
14354
  Row: {
14163
- barcode: string;
14355
+ can_edit: boolean;
14356
+ can_view: boolean;
14357
+ feature_id: string;
14164
14358
  id: string;
14165
- kar_id: string;
14166
- pakbon_id: string;
14167
- pakbon_item_id: string;
14168
- product_id: string | null;
14169
- product_name: string;
14170
- quantity: number;
14171
- scanned_at: string;
14172
- scanned_by: string | null;
14359
+ module_id: string;
14360
+ role_id: string;
14361
+ updated_at: string;
14173
14362
  };
14174
14363
  Insert: {
14175
- barcode: string;
14364
+ can_edit?: boolean;
14365
+ can_view?: boolean;
14366
+ feature_id?: string;
14367
+ id?: string;
14368
+ module_id: string;
14369
+ role_id: string;
14370
+ updated_at?: string;
14371
+ };
14372
+ Update: {
14373
+ can_edit?: boolean;
14374
+ can_view?: boolean;
14375
+ feature_id?: string;
14376
+ id?: string;
14377
+ module_id?: string;
14378
+ role_id?: string;
14379
+ updated_at?: string;
14380
+ };
14381
+ Relationships: [{
14382
+ foreignKeyName: "role_permissions_role_id_fkey";
14383
+ columns: ["role_id"];
14384
+ isOneToOne: false;
14385
+ referencedRelation: "roles";
14386
+ referencedColumns: ["id"];
14387
+ }];
14388
+ };
14389
+ roles: {
14390
+ Row: {
14391
+ created_at: string;
14392
+ id: string;
14393
+ is_protected: boolean;
14394
+ key: string;
14395
+ name: string;
14396
+ updated_at: string;
14397
+ };
14398
+ Insert: {
14399
+ created_at?: string;
14400
+ id?: string;
14401
+ is_protected?: boolean;
14402
+ key: string;
14403
+ name: string;
14404
+ updated_at?: string;
14405
+ };
14406
+ Update: {
14407
+ created_at?: string;
14408
+ id?: string;
14409
+ is_protected?: boolean;
14410
+ key?: string;
14411
+ name?: string;
14412
+ updated_at?: string;
14413
+ };
14414
+ Relationships: [];
14415
+ };
14416
+ rooms: {
14417
+ Row: {
14418
+ capacity: number;
14419
+ color_code: string | null;
14420
+ created_at: string;
14421
+ description: string | null;
14422
+ hourly_rate: number;
14423
+ id: string;
14424
+ image_url: string | null;
14425
+ is_active: boolean;
14426
+ name: string;
14427
+ };
14428
+ Insert: {
14429
+ capacity?: number;
14430
+ color_code?: string | null;
14431
+ created_at?: string;
14432
+ description?: string | null;
14433
+ hourly_rate?: number;
14434
+ id?: string;
14435
+ image_url?: string | null;
14436
+ is_active?: boolean;
14437
+ name: string;
14438
+ };
14439
+ Update: {
14440
+ capacity?: number;
14441
+ color_code?: string | null;
14442
+ created_at?: string;
14443
+ description?: string | null;
14444
+ hourly_rate?: number;
14445
+ id?: string;
14446
+ image_url?: string | null;
14447
+ is_active?: boolean;
14448
+ name?: string;
14449
+ };
14450
+ Relationships: [];
14451
+ };
14452
+ scan_kar_items: {
14453
+ Row: {
14454
+ barcode: string;
14455
+ id: string;
14456
+ kar_id: string;
14457
+ pakbon_id: string;
14458
+ pakbon_item_id: string;
14459
+ product_id: string | null;
14460
+ product_name: string;
14461
+ quantity: number;
14462
+ scanned_at: string;
14463
+ scanned_by: string | null;
14464
+ };
14465
+ Insert: {
14466
+ barcode: string;
14176
14467
  id?: string;
14177
14468
  kar_id: string;
14178
14469
  pakbon_id: string;
@@ -14791,6 +15082,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14791
15082
  };
14792
15083
  Relationships: [];
14793
15084
  };
15085
+ time_compensation_entries: {
15086
+ Row: {
15087
+ created_at: string;
15088
+ employee_id: string;
15089
+ entry_date: string;
15090
+ id: string;
15091
+ km: number;
15092
+ meal_allowance: number;
15093
+ notes: string | null;
15094
+ standby_evening: number;
15095
+ standby_weekend: number;
15096
+ tvt_change: number;
15097
+ updated_at: string;
15098
+ };
15099
+ Insert: {
15100
+ created_at?: string;
15101
+ employee_id: string;
15102
+ entry_date: string;
15103
+ id?: string;
15104
+ km?: number;
15105
+ meal_allowance?: number;
15106
+ notes?: string | null;
15107
+ standby_evening?: number;
15108
+ standby_weekend?: number;
15109
+ tvt_change?: number;
15110
+ updated_at?: string;
15111
+ };
15112
+ Update: {
15113
+ created_at?: string;
15114
+ employee_id?: string;
15115
+ entry_date?: string;
15116
+ id?: string;
15117
+ km?: number;
15118
+ meal_allowance?: number;
15119
+ notes?: string | null;
15120
+ standby_evening?: number;
15121
+ standby_weekend?: number;
15122
+ tvt_change?: number;
15123
+ updated_at?: string;
15124
+ };
15125
+ Relationships: [{
15126
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15127
+ columns: ["employee_id"];
15128
+ isOneToOne: false;
15129
+ referencedRelation: "profiles";
15130
+ referencedColumns: ["id"];
15131
+ }];
15132
+ };
14794
15133
  time_entries: {
14795
15134
  Row: {
14796
15135
  created_at: string;
@@ -14825,65 +15164,170 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14825
15164
  undertime?: number;
14826
15165
  updated_at?: string;
14827
15166
  };
15167
+ Relationships: [];
15168
+ };
15169
+ time_log_week_approvals: {
15170
+ Row: {
15171
+ approved_at: string | null;
15172
+ approved_by: string | null;
15173
+ created_at: string;
15174
+ employee_id: string;
15175
+ id: string;
15176
+ locked: boolean;
15177
+ notes: string | null;
15178
+ status: string;
15179
+ submitted_at: string | null;
15180
+ updated_at: string;
15181
+ week_start: string;
15182
+ };
15183
+ Insert: {
15184
+ approved_at?: string | null;
15185
+ approved_by?: string | null;
15186
+ created_at?: string;
15187
+ employee_id: string;
15188
+ id?: string;
15189
+ locked?: boolean;
15190
+ notes?: string | null;
15191
+ status?: string;
15192
+ submitted_at?: string | null;
15193
+ updated_at?: string;
15194
+ week_start: string;
15195
+ };
15196
+ Update: {
15197
+ approved_at?: string | null;
15198
+ approved_by?: string | null;
15199
+ created_at?: string;
15200
+ employee_id?: string;
15201
+ id?: string;
15202
+ locked?: boolean;
15203
+ notes?: string | null;
15204
+ status?: string;
15205
+ submitted_at?: string | null;
15206
+ updated_at?: string;
15207
+ week_start?: string;
15208
+ };
14828
15209
  Relationships: [{
14829
- foreignKeyName: "time_entries_employee_id_fkey";
15210
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14830
15211
  columns: ["employee_id"];
14831
15212
  isOneToOne: false;
14832
- referencedRelation: "monteurs";
15213
+ referencedRelation: "profiles";
14833
15214
  referencedColumns: ["id"];
14834
15215
  }];
14835
15216
  };
14836
15217
  time_logs: {
14837
15218
  Row: {
15219
+ auto_stop_reason: string | null;
15220
+ auto_stopped: boolean;
14838
15221
  created_at: string;
15222
+ current_latitude: number | null;
15223
+ current_longitude: number | null;
15224
+ current_position_updated_at: string | null;
14839
15225
  employee_id: string;
15226
+ end_latitude: number | null;
15227
+ end_longitude: number | null;
14840
15228
  end_time: string | null;
15229
+ eta_distance_km: number | null;
15230
+ eta_minutes: number | null;
15231
+ eta_updated_at: string | null;
15232
+ hour_category: string | null;
14841
15233
  id: string;
15234
+ last_reminder_at: string | null;
14842
15235
  notes: string | null;
14843
15236
  overtime_hours: number;
14844
15237
  overtime_type: string | null;
14845
15238
  regular_hours: number;
15239
+ reminder_count: number;
15240
+ requires_review: boolean;
15241
+ start_latitude: number | null;
15242
+ start_longitude: number | null;
14846
15243
  start_time: string;
14847
15244
  travel_cost: number | null;
14848
15245
  travel_distance_km: number | null;
15246
+ travel_duration_min: number | null;
15247
+ travel_time_minutes: number | null;
14849
15248
  type: string;
14850
15249
  updated_at: string;
15250
+ work_order_id: string | null;
14851
15251
  };
14852
15252
  Insert: {
15253
+ auto_stop_reason?: string | null;
15254
+ auto_stopped?: boolean;
14853
15255
  created_at?: string;
15256
+ current_latitude?: number | null;
15257
+ current_longitude?: number | null;
15258
+ current_position_updated_at?: string | null;
14854
15259
  employee_id: string;
15260
+ end_latitude?: number | null;
15261
+ end_longitude?: number | null;
14855
15262
  end_time?: string | null;
15263
+ eta_distance_km?: number | null;
15264
+ eta_minutes?: number | null;
15265
+ eta_updated_at?: string | null;
15266
+ hour_category?: string | null;
14856
15267
  id?: string;
15268
+ last_reminder_at?: string | null;
14857
15269
  notes?: string | null;
14858
15270
  overtime_hours?: number;
14859
15271
  overtime_type?: string | null;
14860
15272
  regular_hours?: number;
15273
+ reminder_count?: number;
15274
+ requires_review?: boolean;
15275
+ start_latitude?: number | null;
15276
+ start_longitude?: number | null;
14861
15277
  start_time?: string;
14862
15278
  travel_cost?: number | null;
14863
15279
  travel_distance_km?: number | null;
15280
+ travel_duration_min?: number | null;
15281
+ travel_time_minutes?: number | null;
14864
15282
  type: string;
14865
15283
  updated_at?: string;
15284
+ work_order_id?: string | null;
14866
15285
  };
14867
15286
  Update: {
15287
+ auto_stop_reason?: string | null;
15288
+ auto_stopped?: boolean;
14868
15289
  created_at?: string;
15290
+ current_latitude?: number | null;
15291
+ current_longitude?: number | null;
15292
+ current_position_updated_at?: string | null;
14869
15293
  employee_id?: string;
15294
+ end_latitude?: number | null;
15295
+ end_longitude?: number | null;
14870
15296
  end_time?: string | null;
15297
+ eta_distance_km?: number | null;
15298
+ eta_minutes?: number | null;
15299
+ eta_updated_at?: string | null;
15300
+ hour_category?: string | null;
14871
15301
  id?: string;
15302
+ last_reminder_at?: string | null;
14872
15303
  notes?: string | null;
14873
15304
  overtime_hours?: number;
14874
15305
  overtime_type?: string | null;
14875
15306
  regular_hours?: number;
15307
+ reminder_count?: number;
15308
+ requires_review?: boolean;
15309
+ start_latitude?: number | null;
15310
+ start_longitude?: number | null;
14876
15311
  start_time?: string;
14877
15312
  travel_cost?: number | null;
14878
15313
  travel_distance_km?: number | null;
15314
+ travel_duration_min?: number | null;
15315
+ travel_time_minutes?: number | null;
14879
15316
  type?: string;
14880
15317
  updated_at?: string;
15318
+ work_order_id?: string | null;
14881
15319
  };
14882
15320
  Relationships: [{
14883
15321
  foreignKeyName: "time_logs_employee_id_fkey";
14884
15322
  columns: ["employee_id"];
14885
15323
  isOneToOne: false;
14886
- referencedRelation: "monteurs";
15324
+ referencedRelation: "profiles";
15325
+ referencedColumns: ["id"];
15326
+ }, {
15327
+ foreignKeyName: "time_logs_work_order_id_fkey";
15328
+ columns: ["work_order_id"];
15329
+ isOneToOne: false;
15330
+ referencedRelation: "work_orders";
14887
15331
  referencedColumns: ["id"];
14888
15332
  }];
14889
15333
  };
@@ -14922,7 +15366,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14922
15366
  foreignKeyName: "time_off_entries_employee_id_fkey";
14923
15367
  columns: ["employee_id"];
14924
15368
  isOneToOne: false;
14925
- referencedRelation: "monteurs";
15369
+ referencedRelation: "profiles";
14926
15370
  referencedColumns: ["id"];
14927
15371
  }];
14928
15372
  };
@@ -15232,6 +15676,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15232
15676
  };
15233
15677
  Relationships: [];
15234
15678
  };
15679
+ twinfield_cron_locks: {
15680
+ Row: {
15681
+ created_at: string;
15682
+ heartbeat_at: string;
15683
+ job_name: string;
15684
+ last_error: string | null;
15685
+ last_finished_at: string | null;
15686
+ locked_at: string;
15687
+ run_id: string;
15688
+ updated_at: string;
15689
+ };
15690
+ Insert: {
15691
+ created_at?: string;
15692
+ heartbeat_at?: string;
15693
+ job_name: string;
15694
+ last_error?: string | null;
15695
+ last_finished_at?: string | null;
15696
+ locked_at?: string;
15697
+ run_id?: string;
15698
+ updated_at?: string;
15699
+ };
15700
+ Update: {
15701
+ created_at?: string;
15702
+ heartbeat_at?: string;
15703
+ job_name?: string;
15704
+ last_error?: string | null;
15705
+ last_finished_at?: string | null;
15706
+ locked_at?: string;
15707
+ run_id?: string;
15708
+ updated_at?: string;
15709
+ };
15710
+ Relationships: [];
15711
+ };
15235
15712
  twinfield_customers: {
15236
15713
  Row: {
15237
15714
  address: string | null;
@@ -15832,6 +16309,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15832
16309
  twinfield_push_queue: {
15833
16310
  Row: {
15834
16311
  action: string;
16312
+ attempt_started_at: string | null;
15835
16313
  attempts: number;
15836
16314
  connection_id: string | null;
15837
16315
  created_at: string;
@@ -15848,6 +16326,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15848
16326
  };
15849
16327
  Insert: {
15850
16328
  action?: string;
16329
+ attempt_started_at?: string | null;
15851
16330
  attempts?: number;
15852
16331
  connection_id?: string | null;
15853
16332
  created_at?: string;
@@ -15864,6 +16343,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15864
16343
  };
15865
16344
  Update: {
15866
16345
  action?: string;
16346
+ attempt_started_at?: string | null;
15867
16347
  attempts?: number;
15868
16348
  connection_id?: string | null;
15869
16349
  created_at?: string;
@@ -16061,13 +16541,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16061
16541
  workday_end?: string | null;
16062
16542
  workday_start?: string | null;
16063
16543
  };
16064
- Relationships: [{
16065
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16066
- columns: ["monteur_id"];
16067
- isOneToOne: true;
16068
- referencedRelation: "monteurs";
16069
- referencedColumns: ["id"];
16070
- }];
16544
+ Relationships: [];
16071
16545
  };
16072
16546
  uren_entries: {
16073
16547
  Row: {
@@ -16113,12 +16587,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16113
16587
  werkbon_id?: string | null;
16114
16588
  };
16115
16589
  Relationships: [{
16116
- foreignKeyName: "uren_entries_monteur_id_fkey";
16117
- columns: ["monteur_id"];
16118
- isOneToOne: false;
16119
- referencedRelation: "monteurs";
16120
- referencedColumns: ["id"];
16121
- }, {
16122
16590
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16123
16591
  columns: ["werkbon_id"];
16124
16592
  isOneToOne: false;
@@ -16586,17 +17054,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16586
17054
  submitted_at?: string | null;
16587
17055
  updated_at?: string;
16588
17056
  };
16589
- Relationships: [{
16590
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16591
- columns: ["monteur_id"];
16592
- isOneToOne: false;
16593
- referencedRelation: "monteurs";
16594
- referencedColumns: ["id"];
16595
- }];
17057
+ Relationships: [];
16596
17058
  };
16597
17059
  user_module_permissions: {
16598
17060
  Row: {
16599
17061
  created_at: string;
17062
+ feature_id: string;
16600
17063
  id: string;
16601
17064
  module_id: string;
16602
17065
  permission: string;
@@ -16605,6 +17068,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16605
17068
  };
16606
17069
  Insert: {
16607
17070
  created_at?: string;
17071
+ feature_id?: string;
16608
17072
  id?: string;
16609
17073
  module_id: string;
16610
17074
  permission: string;
@@ -16613,6 +17077,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16613
17077
  };
16614
17078
  Update: {
16615
17079
  created_at?: string;
17080
+ feature_id?: string;
16616
17081
  id?: string;
16617
17082
  module_id?: string;
16618
17083
  permission?: string;
@@ -16648,6 +17113,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16648
17113
  referencedColumns: ["id"];
16649
17114
  }];
16650
17115
  };
17116
+ van_inventories: {
17117
+ Row: {
17118
+ barcode: string | null;
17119
+ created_at: string;
17120
+ id: string;
17121
+ monteur_id: string | null;
17122
+ price_per_unit: number;
17123
+ product_name: string;
17124
+ quantity_current: number;
17125
+ quantity_min: number;
17126
+ unit: string;
17127
+ updated_at: string;
17128
+ };
17129
+ Insert: {
17130
+ barcode?: string | null;
17131
+ created_at?: string;
17132
+ id?: string;
17133
+ monteur_id?: string | null;
17134
+ price_per_unit?: number;
17135
+ product_name: string;
17136
+ quantity_current?: number;
17137
+ quantity_min?: number;
17138
+ unit?: string;
17139
+ updated_at?: string;
17140
+ };
17141
+ Update: {
17142
+ barcode?: string | null;
17143
+ created_at?: string;
17144
+ id?: string;
17145
+ monteur_id?: string | null;
17146
+ price_per_unit?: number;
17147
+ product_name?: string;
17148
+ quantity_current?: number;
17149
+ quantity_min?: number;
17150
+ unit?: string;
17151
+ updated_at?: string;
17152
+ };
17153
+ Relationships: [{
17154
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17155
+ columns: ["monteur_id"];
17156
+ isOneToOne: false;
17157
+ referencedRelation: "profiles";
17158
+ referencedColumns: ["id"];
17159
+ }];
17160
+ };
16651
17161
  voorraad_custom_fields: {
16652
17162
  Row: {
16653
17163
  created_at: string;
@@ -17598,7 +18108,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17598
18108
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17599
18109
  columns: ["monteur_id"];
17600
18110
  isOneToOne: false;
17601
- referencedRelation: "monteurs";
18111
+ referencedRelation: "profiles";
17602
18112
  referencedColumns: ["id"];
17603
18113
  }, {
17604
18114
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17608,6 +18118,60 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17608
18118
  referencedColumns: ["id"];
17609
18119
  }];
17610
18120
  };
18121
+ work_order_photos: {
18122
+ Row: {
18123
+ ai_caption: string | null;
18124
+ ai_categorized_at: string | null;
18125
+ ai_labels: import("./types").Json | null;
18126
+ caption: string | null;
18127
+ created_at: string;
18128
+ id: string;
18129
+ monteur_id: string | null;
18130
+ photo_type: string;
18131
+ storage_path: string;
18132
+ updated_at: string;
18133
+ work_order_id: string;
18134
+ };
18135
+ Insert: {
18136
+ ai_caption?: string | null;
18137
+ ai_categorized_at?: string | null;
18138
+ ai_labels?: import("./types").Json | null;
18139
+ caption?: string | null;
18140
+ created_at?: string;
18141
+ id?: string;
18142
+ monteur_id?: string | null;
18143
+ photo_type?: string;
18144
+ storage_path: string;
18145
+ updated_at?: string;
18146
+ work_order_id: string;
18147
+ };
18148
+ Update: {
18149
+ ai_caption?: string | null;
18150
+ ai_categorized_at?: string | null;
18151
+ ai_labels?: import("./types").Json | null;
18152
+ caption?: string | null;
18153
+ created_at?: string;
18154
+ id?: string;
18155
+ monteur_id?: string | null;
18156
+ photo_type?: string;
18157
+ storage_path?: string;
18158
+ updated_at?: string;
18159
+ work_order_id?: string;
18160
+ };
18161
+ Relationships: [{
18162
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18163
+ columns: ["monteur_id"];
18164
+ isOneToOne: false;
18165
+ referencedRelation: "profiles";
18166
+ referencedColumns: ["id"];
18167
+ }, {
18168
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18169
+ columns: ["work_order_id"];
18170
+ isOneToOne: false;
18171
+ referencedRelation: "work_orders";
18172
+ referencedColumns: ["id"];
18173
+ }];
18174
+ };
17611
18175
  work_orders: {
17612
18176
  Row: {
17613
18177
  assigned_to: string | null;
@@ -17639,7 +18203,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17639
18203
  scheduled_end_time: string | null;
17640
18204
  scheduled_start_time: string | null;
17641
18205
  status: string;
17642
- tenant_id: string;
17643
18206
  total_hours_worked: number | null;
17644
18207
  total_price: number | null;
17645
18208
  travel_time_minutes: number | null;
@@ -17677,7 +18240,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17677
18240
  scheduled_end_time?: string | null;
17678
18241
  scheduled_start_time?: string | null;
17679
18242
  status?: string;
17680
- tenant_id: string;
17681
18243
  total_hours_worked?: number | null;
17682
18244
  total_price?: number | null;
17683
18245
  travel_time_minutes?: number | null;
@@ -17715,7 +18277,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17715
18277
  scheduled_end_time?: string | null;
17716
18278
  scheduled_start_time?: string | null;
17717
18279
  status?: string;
17718
- tenant_id?: string;
17719
18280
  total_hours_worked?: number | null;
17720
18281
  total_price?: number | null;
17721
18282
  travel_time_minutes?: number | null;
@@ -17729,12 +18290,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17729
18290
  isOneToOne: false;
17730
18291
  referencedRelation: "work_orders";
17731
18292
  referencedColumns: ["id"];
17732
- }, {
17733
- foreignKeyName: "work_orders_tenant_id_fkey";
17734
- columns: ["tenant_id"];
17735
- isOneToOne: false;
17736
- referencedRelation: "tenants";
17737
- referencedColumns: ["id"];
17738
18293
  }];
17739
18294
  };
17740
18295
  };
@@ -18419,6 +18974,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18419
18974
  };
18420
18975
  Returns: undefined;
18421
18976
  };
18977
+ approve_mailbox_order_proposal: {
18978
+ Args: {
18979
+ p_custom_fields: import("./types").Json;
18980
+ p_customer_id: string;
18981
+ p_delivery_date: string;
18982
+ p_field_values?: import("./types").Json;
18983
+ p_lines: import("./types").Json;
18984
+ p_notes: string;
18985
+ p_proposal_id: string;
18986
+ p_reviewed_by: string;
18987
+ };
18988
+ Returns: import("./types").Json;
18989
+ };
18422
18990
  assign_cart_numbers: {
18423
18991
  Args: {
18424
18992
  p_carts: import("./types").Json;
@@ -18470,6 +19038,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18470
19038
  };
18471
19039
  Returns: number;
18472
19040
  };
19041
+ can_manage_hours: {
19042
+ Args: never;
19043
+ Returns: boolean;
19044
+ };
18473
19045
  check_offer_product_available_stock: {
18474
19046
  Args: {
18475
19047
  p_campaign_product_id: string;
@@ -18659,6 +19231,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18659
19231
  };
18660
19232
  Returns: {
18661
19233
  action: string;
19234
+ attempt_started_at: string | null;
18662
19235
  attempts: number;
18663
19236
  connection_id: string | null;
18664
19237
  created_at: string;
@@ -18746,6 +19319,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18746
19319
  agent_naam: string;
18747
19320
  }[];
18748
19321
  };
19322
+ consume_van_inventory: {
19323
+ Args: {
19324
+ p_inventory_id: string;
19325
+ p_quantity: number;
19326
+ };
19327
+ Returns: {
19328
+ barcode: string | null;
19329
+ created_at: string;
19330
+ id: string;
19331
+ monteur_id: string | null;
19332
+ price_per_unit: number;
19333
+ product_name: string;
19334
+ quantity_current: number;
19335
+ quantity_min: number;
19336
+ unit: string;
19337
+ updated_at: string;
19338
+ };
19339
+ SetofOptions: {
19340
+ from: "*";
19341
+ to: "van_inventories";
19342
+ isOneToOne: true;
19343
+ isSetofReturn: false;
19344
+ };
19345
+ };
18749
19346
  control_get_todays_carts: {
18750
19347
  Args: never;
18751
19348
  Returns: {
@@ -18819,6 +19416,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18819
19416
  _user_id: string;
18820
19417
  };
18821
19418
  Returns: string;
19419
+ } | {
19420
+ Args: {
19421
+ _feature_id?: string;
19422
+ _module_id: string;
19423
+ _user_id: string;
19424
+ };
19425
+ Returns: string;
18822
19426
  };
18823
19427
  email_auth_decrypt: {
18824
19428
  Args: {
@@ -19170,12 +19774,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19170
19774
  Args: never;
19171
19775
  Returns: string;
19172
19776
  };
19173
- get_work_order_tenant_id: {
19174
- Args: {
19175
- wo_id: string;
19176
- };
19177
- Returns: string;
19178
- };
19179
19777
  has_module_permission: {
19180
19778
  Args: {
19181
19779
  _min: string;
@@ -19209,6 +19807,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19209
19807
  };
19210
19808
  Returns: boolean;
19211
19809
  };
19810
+ is_time_log_week_locked: {
19811
+ Args: {
19812
+ p_employee_id: string;
19813
+ p_start_time: string;
19814
+ };
19815
+ Returns: boolean;
19816
+ };
19212
19817
  is_user_admin: {
19213
19818
  Args: never;
19214
19819
  Returns: boolean;
@@ -19223,13 +19828,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19223
19828
  };
19224
19829
  Returns: boolean;
19225
19830
  };
19226
- list_monteurs: {
19831
+ list_medewerkers: {
19227
19832
  Args: never;
19228
19833
  Returns: {
19229
19834
  avatar_url: string;
19230
19835
  display_name: string;
19231
19836
  email: string;
19232
19837
  id: string;
19838
+ roles: string[];
19233
19839
  }[];
19234
19840
  };
19235
19841
  list_my_planning_items: {
@@ -19720,6 +20326,65 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19720
20326
  };
19721
20327
  Returns: number;
19722
20328
  };
20329
+ logistics_plan_claim: {
20330
+ Args: {
20331
+ p_limit?: number;
20332
+ };
20333
+ Returns: {
20334
+ attempts: number;
20335
+ id: string;
20336
+ order_id: string;
20337
+ }[];
20338
+ };
20339
+ logistics_plan_enqueue: {
20340
+ Args: {
20341
+ p_order_id: string;
20342
+ p_reason?: string;
20343
+ };
20344
+ Returns: undefined;
20345
+ };
20346
+ logistics_plan_ensure_event: {
20347
+ Args: {
20348
+ p_order_id: string;
20349
+ };
20350
+ Returns: boolean;
20351
+ };
20352
+ logistics_plan_finish: {
20353
+ Args: {
20354
+ p_error?: string;
20355
+ p_id: string;
20356
+ };
20357
+ Returns: undefined;
20358
+ };
20359
+ logistics_plan_impact_orders: {
20360
+ Args: {
20361
+ p_order_id: string;
20362
+ };
20363
+ Returns: {
20364
+ buffer_id: string;
20365
+ order_id: string;
20366
+ plan_date: string;
20367
+ }[];
20368
+ };
20369
+ logistics_plan_kick: {
20370
+ Args: never;
20371
+ Returns: undefined;
20372
+ };
20373
+ logistics_plan_prune: {
20374
+ Args: never;
20375
+ Returns: number;
20376
+ };
20377
+ logistics_plan_release_stale: {
20378
+ Args: never;
20379
+ Returns: number;
20380
+ };
20381
+ logistics_plan_setting: {
20382
+ Args: {
20383
+ p_default: number;
20384
+ p_key: string;
20385
+ };
20386
+ Returns: number;
20387
+ };
19723
20388
  logistics_queue_capacity_email: {
19724
20389
  Args: {
19725
20390
  p_alert_id: string;
@@ -19961,6 +20626,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19961
20626
  my_module_permissions: {
19962
20627
  Args: never;
19963
20628
  Returns: {
20629
+ feature_id: string;
19964
20630
  module_id: string;
19965
20631
  permission: string;
19966
20632
  }[];
@@ -20841,6 +21507,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20841
21507
  };
20842
21508
  Returns: string[];
20843
21509
  };
21510
+ switch_time_log: {
21511
+ Args: {
21512
+ p_employee_id: string;
21513
+ p_start_lat?: number;
21514
+ p_start_lng?: number;
21515
+ p_type: string;
21516
+ p_work_order_id?: string;
21517
+ };
21518
+ Returns: import("./types").Json;
21519
+ };
20844
21520
  sync_all_layer_stocks: {
20845
21521
  Args: never;
20846
21522
  Returns: undefined;
@@ -20891,6 +21567,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20891
21567
  };
20892
21568
  Returns: boolean;
20893
21569
  };
21570
+ twinfield_cron_lock_acquire: {
21571
+ Args: {
21572
+ _job_name: string;
21573
+ _stale_seconds?: number;
21574
+ };
21575
+ Returns: boolean;
21576
+ };
21577
+ twinfield_cron_lock_release: {
21578
+ Args: {
21579
+ _error?: string;
21580
+ _job_name: string;
21581
+ };
21582
+ Returns: undefined;
21583
+ };
21584
+ twinfield_prune_push_queue: {
21585
+ Args: never;
21586
+ Returns: number;
21587
+ };
20894
21588
  twinfield_register_cron: {
20895
21589
  Args: {
20896
21590
  apikey?: string;