@flowselections/floriday-authenticatie-module 1.0.21 → 1.0.23
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/integrations/supabase/auth-middleware.d.ts +385 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +385 -3
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +385 -3
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +389 -3
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/central-auth.server.d.ts +17 -0
- package/dist-lib/lib/central-auth.server.d.ts.map +1 -0
- package/dist-lib/lib/central-auth.server.js +65 -0
- package/dist-lib/lib/floricode.functions.d.ts +2757 -83
- package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auction-letters.functions.d.ts +385 -3
- package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-labels.functions.d.ts +385 -3
- package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +2310 -18
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-stickers.functions.d.ts +385 -3
- package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sync.functions.d.ts +12493 -651
- package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +2310 -18
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +7178 -302
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +9 -21
- package/dist-lib/lib/gateway/cache-tables.d.ts +2 -0
- package/dist-lib/lib/gateway/cache-tables.d.ts.map +1 -0
- package/dist-lib/lib/gateway/cache-tables.js +27 -0
- package/dist-lib/lib/gateway/cached-list.d.ts +15 -0
- package/dist-lib/lib/gateway/cached-list.d.ts.map +1 -0
- package/dist-lib/lib/gateway/cached-list.js +35 -0
- package/dist-lib/lib/gateway/index.d.ts +4 -0
- package/dist-lib/lib/gateway/index.d.ts.map +1 -0
- package/dist-lib/lib/gateway/index.js +3 -0
- package/dist-lib/lib/gateway/shared.d.ts +2 -0
- package/dist-lib/lib/gateway/shared.d.ts.map +1 -0
- package/dist-lib/lib/gateway/shared.js +3 -0
- package/package.json +7 -3
|
@@ -1035,6 +1035,141 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
1035
1035
|
};
|
|
1036
1036
|
Relationships: [];
|
|
1037
1037
|
};
|
|
1038
|
+
cart_planning_pick_times: {
|
|
1039
|
+
Row: {
|
|
1040
|
+
created_at: string;
|
|
1041
|
+
id: string;
|
|
1042
|
+
pot_size: string;
|
|
1043
|
+
seconds_per_cart: number;
|
|
1044
|
+
updated_at: string;
|
|
1045
|
+
};
|
|
1046
|
+
Insert: {
|
|
1047
|
+
created_at?: string;
|
|
1048
|
+
id?: string;
|
|
1049
|
+
pot_size: string;
|
|
1050
|
+
seconds_per_cart: number;
|
|
1051
|
+
updated_at?: string;
|
|
1052
|
+
};
|
|
1053
|
+
Update: {
|
|
1054
|
+
created_at?: string;
|
|
1055
|
+
id?: string;
|
|
1056
|
+
pot_size?: string;
|
|
1057
|
+
seconds_per_cart?: number;
|
|
1058
|
+
updated_at?: string;
|
|
1059
|
+
};
|
|
1060
|
+
Relationships: [];
|
|
1061
|
+
};
|
|
1062
|
+
cart_planning_product_overrides: {
|
|
1063
|
+
Row: {
|
|
1064
|
+
created_at: string;
|
|
1065
|
+
id: string;
|
|
1066
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1067
|
+
never_mix: boolean;
|
|
1068
|
+
notes: string | null;
|
|
1069
|
+
product_id: string;
|
|
1070
|
+
updated_at: string;
|
|
1071
|
+
};
|
|
1072
|
+
Insert: {
|
|
1073
|
+
created_at?: string;
|
|
1074
|
+
id?: string;
|
|
1075
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1076
|
+
never_mix?: boolean;
|
|
1077
|
+
notes?: string | null;
|
|
1078
|
+
product_id: string;
|
|
1079
|
+
updated_at?: string;
|
|
1080
|
+
};
|
|
1081
|
+
Update: {
|
|
1082
|
+
created_at?: string;
|
|
1083
|
+
id?: string;
|
|
1084
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1085
|
+
never_mix?: boolean;
|
|
1086
|
+
notes?: string | null;
|
|
1087
|
+
product_id?: string;
|
|
1088
|
+
updated_at?: string;
|
|
1089
|
+
};
|
|
1090
|
+
Relationships: [{
|
|
1091
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1092
|
+
columns: ["product_id"];
|
|
1093
|
+
isOneToOne: true;
|
|
1094
|
+
referencedRelation: "products";
|
|
1095
|
+
referencedColumns: ["id"];
|
|
1096
|
+
}];
|
|
1097
|
+
};
|
|
1098
|
+
cart_planning_settings: {
|
|
1099
|
+
Row: {
|
|
1100
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1101
|
+
buffer_grouping_mode: string;
|
|
1102
|
+
combine_floriday_orders: boolean;
|
|
1103
|
+
combine_floriday_orders_window: string;
|
|
1104
|
+
combine_orders_scope: string;
|
|
1105
|
+
default_workers: number;
|
|
1106
|
+
id: number;
|
|
1107
|
+
max_beladingen_per_layer: number;
|
|
1108
|
+
max_customers_per_cart: number;
|
|
1109
|
+
max_one_customer_per_layer: boolean;
|
|
1110
|
+
max_party_share_per_layer_pct: number;
|
|
1111
|
+
optimization_strategy: string;
|
|
1112
|
+
own_cart_from_layers: number;
|
|
1113
|
+
pick_time_mode: string;
|
|
1114
|
+
plants_per_day: number;
|
|
1115
|
+
plants_per_hour: number;
|
|
1116
|
+
require_same_carrier: boolean;
|
|
1117
|
+
require_same_crate_type: boolean;
|
|
1118
|
+
require_same_delivery_date: boolean;
|
|
1119
|
+
require_same_delivery_location: boolean;
|
|
1120
|
+
updated_at: string;
|
|
1121
|
+
updated_by: string | null;
|
|
1122
|
+
};
|
|
1123
|
+
Insert: {
|
|
1124
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1125
|
+
buffer_grouping_mode?: string;
|
|
1126
|
+
combine_floriday_orders?: boolean;
|
|
1127
|
+
combine_floriday_orders_window?: string;
|
|
1128
|
+
combine_orders_scope?: string;
|
|
1129
|
+
default_workers?: number;
|
|
1130
|
+
id?: number;
|
|
1131
|
+
max_beladingen_per_layer?: number;
|
|
1132
|
+
max_customers_per_cart?: number;
|
|
1133
|
+
max_one_customer_per_layer?: boolean;
|
|
1134
|
+
max_party_share_per_layer_pct?: number;
|
|
1135
|
+
optimization_strategy?: string;
|
|
1136
|
+
own_cart_from_layers?: number;
|
|
1137
|
+
pick_time_mode?: string;
|
|
1138
|
+
plants_per_day?: number;
|
|
1139
|
+
plants_per_hour?: number;
|
|
1140
|
+
require_same_carrier?: boolean;
|
|
1141
|
+
require_same_crate_type?: boolean;
|
|
1142
|
+
require_same_delivery_date?: boolean;
|
|
1143
|
+
require_same_delivery_location?: boolean;
|
|
1144
|
+
updated_at?: string;
|
|
1145
|
+
updated_by?: string | null;
|
|
1146
|
+
};
|
|
1147
|
+
Update: {
|
|
1148
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1149
|
+
buffer_grouping_mode?: string;
|
|
1150
|
+
combine_floriday_orders?: boolean;
|
|
1151
|
+
combine_floriday_orders_window?: string;
|
|
1152
|
+
combine_orders_scope?: string;
|
|
1153
|
+
default_workers?: number;
|
|
1154
|
+
id?: number;
|
|
1155
|
+
max_beladingen_per_layer?: number;
|
|
1156
|
+
max_customers_per_cart?: number;
|
|
1157
|
+
max_one_customer_per_layer?: boolean;
|
|
1158
|
+
max_party_share_per_layer_pct?: number;
|
|
1159
|
+
optimization_strategy?: string;
|
|
1160
|
+
own_cart_from_layers?: number;
|
|
1161
|
+
pick_time_mode?: string;
|
|
1162
|
+
plants_per_day?: number;
|
|
1163
|
+
plants_per_hour?: number;
|
|
1164
|
+
require_same_carrier?: boolean;
|
|
1165
|
+
require_same_crate_type?: boolean;
|
|
1166
|
+
require_same_delivery_date?: boolean;
|
|
1167
|
+
require_same_delivery_location?: boolean;
|
|
1168
|
+
updated_at?: string;
|
|
1169
|
+
updated_by?: string | null;
|
|
1170
|
+
};
|
|
1171
|
+
Relationships: [];
|
|
1172
|
+
};
|
|
1038
1173
|
cart_replan_queue: {
|
|
1039
1174
|
Row: {
|
|
1040
1175
|
attempts: number;
|
|
@@ -1065,6 +1200,39 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
1065
1200
|
referencedColumns: ["id"];
|
|
1066
1201
|
}];
|
|
1067
1202
|
};
|
|
1203
|
+
cart_types: {
|
|
1204
|
+
Row: {
|
|
1205
|
+
created_at: string;
|
|
1206
|
+
id: string;
|
|
1207
|
+
is_default: boolean;
|
|
1208
|
+
layer_length_cm: number;
|
|
1209
|
+
layer_width_cm: number;
|
|
1210
|
+
layers_per_cart: number;
|
|
1211
|
+
name: string;
|
|
1212
|
+
updated_at: string;
|
|
1213
|
+
};
|
|
1214
|
+
Insert: {
|
|
1215
|
+
created_at?: string;
|
|
1216
|
+
id?: string;
|
|
1217
|
+
is_default?: boolean;
|
|
1218
|
+
layer_length_cm: number;
|
|
1219
|
+
layer_width_cm: number;
|
|
1220
|
+
layers_per_cart?: number;
|
|
1221
|
+
name: string;
|
|
1222
|
+
updated_at?: string;
|
|
1223
|
+
};
|
|
1224
|
+
Update: {
|
|
1225
|
+
created_at?: string;
|
|
1226
|
+
id?: string;
|
|
1227
|
+
is_default?: boolean;
|
|
1228
|
+
layer_length_cm?: number;
|
|
1229
|
+
layer_width_cm?: number;
|
|
1230
|
+
layers_per_cart?: number;
|
|
1231
|
+
name?: string;
|
|
1232
|
+
updated_at?: string;
|
|
1233
|
+
};
|
|
1234
|
+
Relationships: [];
|
|
1235
|
+
};
|
|
1068
1236
|
collections: {
|
|
1069
1237
|
Row: {
|
|
1070
1238
|
created_at: string;
|
|
@@ -1089,6 +1257,36 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
1089
1257
|
};
|
|
1090
1258
|
Relationships: [];
|
|
1091
1259
|
};
|
|
1260
|
+
crate_types: {
|
|
1261
|
+
Row: {
|
|
1262
|
+
created_at: string;
|
|
1263
|
+
id: string;
|
|
1264
|
+
length_cm: number;
|
|
1265
|
+
name: string;
|
|
1266
|
+
plants_per_crate: number;
|
|
1267
|
+
updated_at: string;
|
|
1268
|
+
width_cm: number;
|
|
1269
|
+
};
|
|
1270
|
+
Insert: {
|
|
1271
|
+
created_at?: string;
|
|
1272
|
+
id?: string;
|
|
1273
|
+
length_cm: number;
|
|
1274
|
+
name: string;
|
|
1275
|
+
plants_per_crate?: number;
|
|
1276
|
+
updated_at?: string;
|
|
1277
|
+
width_cm: number;
|
|
1278
|
+
};
|
|
1279
|
+
Update: {
|
|
1280
|
+
created_at?: string;
|
|
1281
|
+
id?: string;
|
|
1282
|
+
length_cm?: number;
|
|
1283
|
+
name?: string;
|
|
1284
|
+
plants_per_crate?: number;
|
|
1285
|
+
updated_at?: string;
|
|
1286
|
+
width_cm?: number;
|
|
1287
|
+
};
|
|
1288
|
+
Relationships: [];
|
|
1289
|
+
};
|
|
1092
1290
|
customer_audit_log: {
|
|
1093
1291
|
Row: {
|
|
1094
1292
|
action: string;
|
|
@@ -5004,6 +5202,27 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
5004
5202
|
referencedColumns: ["id"];
|
|
5005
5203
|
}];
|
|
5006
5204
|
};
|
|
5205
|
+
floriday_vbn_required_characteristics: {
|
|
5206
|
+
Row: {
|
|
5207
|
+
required_codes: string[];
|
|
5208
|
+
updated_at: string;
|
|
5209
|
+
updated_by: string | null;
|
|
5210
|
+
vbn_code: string;
|
|
5211
|
+
};
|
|
5212
|
+
Insert: {
|
|
5213
|
+
required_codes?: string[];
|
|
5214
|
+
updated_at?: string;
|
|
5215
|
+
updated_by?: string | null;
|
|
5216
|
+
vbn_code: string;
|
|
5217
|
+
};
|
|
5218
|
+
Update: {
|
|
5219
|
+
required_codes?: string[];
|
|
5220
|
+
updated_at?: string;
|
|
5221
|
+
updated_by?: string | null;
|
|
5222
|
+
vbn_code?: string;
|
|
5223
|
+
};
|
|
5224
|
+
Relationships: [];
|
|
5225
|
+
};
|
|
5007
5226
|
floriday_warehouses_cache: {
|
|
5008
5227
|
Row: {
|
|
5009
5228
|
connection_id: string;
|
|
@@ -5706,6 +5925,69 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
5706
5925
|
};
|
|
5707
5926
|
Relationships: [];
|
|
5708
5927
|
};
|
|
5928
|
+
logistics_capacity_events: {
|
|
5929
|
+
Row: {
|
|
5930
|
+
available_carts: number;
|
|
5931
|
+
created_at: string;
|
|
5932
|
+
id: string;
|
|
5933
|
+
measures: import("../integrations/supabase/types").Json;
|
|
5934
|
+
note: string | null;
|
|
5935
|
+
outcome: string;
|
|
5936
|
+
required_carts: number;
|
|
5937
|
+
reserve_minutes: number;
|
|
5938
|
+
shortage_carts: number;
|
|
5939
|
+
status: string;
|
|
5940
|
+
user_id: string;
|
|
5941
|
+
};
|
|
5942
|
+
Insert: {
|
|
5943
|
+
available_carts?: number;
|
|
5944
|
+
created_at?: string;
|
|
5945
|
+
id?: string;
|
|
5946
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
5947
|
+
note?: string | null;
|
|
5948
|
+
outcome?: string;
|
|
5949
|
+
required_carts?: number;
|
|
5950
|
+
reserve_minutes?: number;
|
|
5951
|
+
shortage_carts?: number;
|
|
5952
|
+
status: string;
|
|
5953
|
+
user_id: string;
|
|
5954
|
+
};
|
|
5955
|
+
Update: {
|
|
5956
|
+
available_carts?: number;
|
|
5957
|
+
created_at?: string;
|
|
5958
|
+
id?: string;
|
|
5959
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
5960
|
+
note?: string | null;
|
|
5961
|
+
outcome?: string;
|
|
5962
|
+
required_carts?: number;
|
|
5963
|
+
reserve_minutes?: number;
|
|
5964
|
+
shortage_carts?: number;
|
|
5965
|
+
status?: string;
|
|
5966
|
+
user_id?: string;
|
|
5967
|
+
};
|
|
5968
|
+
Relationships: [];
|
|
5969
|
+
};
|
|
5970
|
+
logistics_capacity_settings: {
|
|
5971
|
+
Row: {
|
|
5972
|
+
created_at: string;
|
|
5973
|
+
settings: import("../integrations/supabase/types").Json;
|
|
5974
|
+
updated_at: string;
|
|
5975
|
+
user_id: string;
|
|
5976
|
+
};
|
|
5977
|
+
Insert: {
|
|
5978
|
+
created_at?: string;
|
|
5979
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
5980
|
+
updated_at?: string;
|
|
5981
|
+
user_id: string;
|
|
5982
|
+
};
|
|
5983
|
+
Update: {
|
|
5984
|
+
created_at?: string;
|
|
5985
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
5986
|
+
updated_at?: string;
|
|
5987
|
+
user_id?: string;
|
|
5988
|
+
};
|
|
5989
|
+
Relationships: [];
|
|
5990
|
+
};
|
|
5709
5991
|
logistics_decisions: {
|
|
5710
5992
|
Row: {
|
|
5711
5993
|
created_at: string;
|
|
@@ -7101,6 +7383,42 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7101
7383
|
};
|
|
7102
7384
|
Relationships: [];
|
|
7103
7385
|
};
|
|
7386
|
+
order_buffers: {
|
|
7387
|
+
Row: {
|
|
7388
|
+
buffer_key: string;
|
|
7389
|
+
created_at: string;
|
|
7390
|
+
customer_id: string | null;
|
|
7391
|
+
grouping_mode: string;
|
|
7392
|
+
id: string;
|
|
7393
|
+
pickup_date: string | null;
|
|
7394
|
+
pickup_location: string | null;
|
|
7395
|
+
plan_locked_at: string | null;
|
|
7396
|
+
updated_at: string;
|
|
7397
|
+
};
|
|
7398
|
+
Insert: {
|
|
7399
|
+
buffer_key: string;
|
|
7400
|
+
created_at?: string;
|
|
7401
|
+
customer_id?: string | null;
|
|
7402
|
+
grouping_mode: string;
|
|
7403
|
+
id?: string;
|
|
7404
|
+
pickup_date?: string | null;
|
|
7405
|
+
pickup_location?: string | null;
|
|
7406
|
+
plan_locked_at?: string | null;
|
|
7407
|
+
updated_at?: string;
|
|
7408
|
+
};
|
|
7409
|
+
Update: {
|
|
7410
|
+
buffer_key?: string;
|
|
7411
|
+
created_at?: string;
|
|
7412
|
+
customer_id?: string | null;
|
|
7413
|
+
grouping_mode?: string;
|
|
7414
|
+
id?: string;
|
|
7415
|
+
pickup_date?: string | null;
|
|
7416
|
+
pickup_location?: string | null;
|
|
7417
|
+
plan_locked_at?: string | null;
|
|
7418
|
+
updated_at?: string;
|
|
7419
|
+
};
|
|
7420
|
+
Relationships: [];
|
|
7421
|
+
};
|
|
7104
7422
|
order_cart_items: {
|
|
7105
7423
|
Row: {
|
|
7106
7424
|
cart_id: string;
|
|
@@ -7167,6 +7485,7 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7167
7485
|
order_carts: {
|
|
7168
7486
|
Row: {
|
|
7169
7487
|
algorithm_version: number;
|
|
7488
|
+
buffer_id: string | null;
|
|
7170
7489
|
cart_number: number;
|
|
7171
7490
|
created_at: string;
|
|
7172
7491
|
id: string;
|
|
@@ -7174,13 +7493,14 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7174
7493
|
is_complete: boolean;
|
|
7175
7494
|
notes: string | null;
|
|
7176
7495
|
occupancy_pct: number;
|
|
7177
|
-
order_id: string;
|
|
7496
|
+
order_id: string | null;
|
|
7178
7497
|
source: string;
|
|
7179
7498
|
total_layers_used: number;
|
|
7180
7499
|
updated_at: string;
|
|
7181
7500
|
};
|
|
7182
7501
|
Insert: {
|
|
7183
7502
|
algorithm_version?: number;
|
|
7503
|
+
buffer_id?: string | null;
|
|
7184
7504
|
cart_number: number;
|
|
7185
7505
|
created_at?: string;
|
|
7186
7506
|
id?: string;
|
|
@@ -7188,13 +7508,14 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7188
7508
|
is_complete?: boolean;
|
|
7189
7509
|
notes?: string | null;
|
|
7190
7510
|
occupancy_pct?: number;
|
|
7191
|
-
order_id
|
|
7511
|
+
order_id?: string | null;
|
|
7192
7512
|
source?: string;
|
|
7193
7513
|
total_layers_used?: number;
|
|
7194
7514
|
updated_at?: string;
|
|
7195
7515
|
};
|
|
7196
7516
|
Update: {
|
|
7197
7517
|
algorithm_version?: number;
|
|
7518
|
+
buffer_id?: string | null;
|
|
7198
7519
|
cart_number?: number;
|
|
7199
7520
|
created_at?: string;
|
|
7200
7521
|
id?: string;
|
|
@@ -7202,12 +7523,18 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7202
7523
|
is_complete?: boolean;
|
|
7203
7524
|
notes?: string | null;
|
|
7204
7525
|
occupancy_pct?: number;
|
|
7205
|
-
order_id?: string;
|
|
7526
|
+
order_id?: string | null;
|
|
7206
7527
|
source?: string;
|
|
7207
7528
|
total_layers_used?: number;
|
|
7208
7529
|
updated_at?: string;
|
|
7209
7530
|
};
|
|
7210
7531
|
Relationships: [{
|
|
7532
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7533
|
+
columns: ["buffer_id"];
|
|
7534
|
+
isOneToOne: false;
|
|
7535
|
+
referencedRelation: "order_buffers";
|
|
7536
|
+
referencedColumns: ["id"];
|
|
7537
|
+
}, {
|
|
7211
7538
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7212
7539
|
columns: ["order_id"];
|
|
7213
7540
|
isOneToOne: false;
|
|
@@ -7445,12 +7772,14 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7445
7772
|
};
|
|
7446
7773
|
orders: {
|
|
7447
7774
|
Row: {
|
|
7775
|
+
buffer_id: string | null;
|
|
7448
7776
|
created_at: string;
|
|
7449
7777
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7450
7778
|
customer_id: string | null;
|
|
7451
7779
|
customer_name: string;
|
|
7452
7780
|
deleted_at: string | null;
|
|
7453
7781
|
delivery_date: string | null;
|
|
7782
|
+
floriday_sales_order_id: string | null;
|
|
7454
7783
|
id: string;
|
|
7455
7784
|
is_reservation: boolean;
|
|
7456
7785
|
notes: string | null;
|
|
@@ -7464,12 +7793,14 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7464
7793
|
updated_at: string;
|
|
7465
7794
|
};
|
|
7466
7795
|
Insert: {
|
|
7796
|
+
buffer_id?: string | null;
|
|
7467
7797
|
created_at?: string;
|
|
7468
7798
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7469
7799
|
customer_id?: string | null;
|
|
7470
7800
|
customer_name?: string;
|
|
7471
7801
|
deleted_at?: string | null;
|
|
7472
7802
|
delivery_date?: string | null;
|
|
7803
|
+
floriday_sales_order_id?: string | null;
|
|
7473
7804
|
id?: string;
|
|
7474
7805
|
is_reservation?: boolean;
|
|
7475
7806
|
notes?: string | null;
|
|
@@ -7483,12 +7814,14 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7483
7814
|
updated_at?: string;
|
|
7484
7815
|
};
|
|
7485
7816
|
Update: {
|
|
7817
|
+
buffer_id?: string | null;
|
|
7486
7818
|
created_at?: string;
|
|
7487
7819
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7488
7820
|
customer_id?: string | null;
|
|
7489
7821
|
customer_name?: string;
|
|
7490
7822
|
deleted_at?: string | null;
|
|
7491
7823
|
delivery_date?: string | null;
|
|
7824
|
+
floriday_sales_order_id?: string | null;
|
|
7492
7825
|
id?: string;
|
|
7493
7826
|
is_reservation?: boolean;
|
|
7494
7827
|
notes?: string | null;
|
|
@@ -7502,6 +7835,12 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7502
7835
|
updated_at?: string;
|
|
7503
7836
|
};
|
|
7504
7837
|
Relationships: [{
|
|
7838
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
7839
|
+
columns: ["buffer_id"];
|
|
7840
|
+
isOneToOne: false;
|
|
7841
|
+
referencedRelation: "order_buffers";
|
|
7842
|
+
referencedColumns: ["id"];
|
|
7843
|
+
}, {
|
|
7505
7844
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7506
7845
|
columns: ["customer_id"];
|
|
7507
7846
|
isOneToOne: false;
|
|
@@ -7639,6 +7978,7 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7639
7978
|
created_at: string;
|
|
7640
7979
|
id: string;
|
|
7641
7980
|
notes: string | null;
|
|
7981
|
+
packing_configuration_id: string | null;
|
|
7642
7982
|
parent_product_id: string | null;
|
|
7643
7983
|
parent_trade_item_floriday_id: string | null;
|
|
7644
7984
|
quantity: number;
|
|
@@ -7653,6 +7993,7 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7653
7993
|
created_at?: string;
|
|
7654
7994
|
id?: string;
|
|
7655
7995
|
notes?: string | null;
|
|
7996
|
+
packing_configuration_id?: string | null;
|
|
7656
7997
|
parent_product_id?: string | null;
|
|
7657
7998
|
parent_trade_item_floriday_id?: string | null;
|
|
7658
7999
|
quantity?: number;
|
|
@@ -7667,6 +8008,7 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7667
8008
|
created_at?: string;
|
|
7668
8009
|
id?: string;
|
|
7669
8010
|
notes?: string | null;
|
|
8011
|
+
packing_configuration_id?: string | null;
|
|
7670
8012
|
parent_product_id?: string | null;
|
|
7671
8013
|
parent_trade_item_floriday_id?: string | null;
|
|
7672
8014
|
quantity?: number;
|
|
@@ -7868,11 +8210,13 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7868
8210
|
created_at: string;
|
|
7869
8211
|
id: string;
|
|
7870
8212
|
is_package: boolean;
|
|
8213
|
+
label: string | null;
|
|
7871
8214
|
layers_per_load_carrier: number | null;
|
|
7872
8215
|
load_carrier: string | null;
|
|
7873
8216
|
package_id: string | null;
|
|
7874
8217
|
package_label: string | null;
|
|
7875
8218
|
packages_per_layer: number | null;
|
|
8219
|
+
packing_configuration_id: string;
|
|
7876
8220
|
product_id: string | null;
|
|
7877
8221
|
tenant_id: string;
|
|
7878
8222
|
trade_item_floriday_id: string | null;
|
|
@@ -7883,11 +8227,13 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7883
8227
|
created_at?: string;
|
|
7884
8228
|
id?: string;
|
|
7885
8229
|
is_package?: boolean;
|
|
8230
|
+
label?: string | null;
|
|
7886
8231
|
layers_per_load_carrier?: number | null;
|
|
7887
8232
|
load_carrier?: string | null;
|
|
7888
8233
|
package_id?: string | null;
|
|
7889
8234
|
package_label?: string | null;
|
|
7890
8235
|
packages_per_layer?: number | null;
|
|
8236
|
+
packing_configuration_id?: string;
|
|
7891
8237
|
product_id?: string | null;
|
|
7892
8238
|
tenant_id: string;
|
|
7893
8239
|
trade_item_floriday_id?: string | null;
|
|
@@ -7898,11 +8244,13 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7898
8244
|
created_at?: string;
|
|
7899
8245
|
id?: string;
|
|
7900
8246
|
is_package?: boolean;
|
|
8247
|
+
label?: string | null;
|
|
7901
8248
|
layers_per_load_carrier?: number | null;
|
|
7902
8249
|
load_carrier?: string | null;
|
|
7903
8250
|
package_id?: string | null;
|
|
7904
8251
|
package_label?: string | null;
|
|
7905
8252
|
packages_per_layer?: number | null;
|
|
8253
|
+
packing_configuration_id?: string;
|
|
7906
8254
|
product_id?: string | null;
|
|
7907
8255
|
tenant_id?: string;
|
|
7908
8256
|
trade_item_floriday_id?: string | null;
|
|
@@ -7983,6 +8331,8 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
7983
8331
|
trade_item_key: string | null;
|
|
7984
8332
|
unit: string;
|
|
7985
8333
|
updated_at: string;
|
|
8334
|
+
vat_code: string | null;
|
|
8335
|
+
vat_rate: number | null;
|
|
7986
8336
|
weight: string | null;
|
|
7987
8337
|
};
|
|
7988
8338
|
Insert: {
|
|
@@ -8011,6 +8361,8 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
8011
8361
|
trade_item_key?: string | null;
|
|
8012
8362
|
unit?: string;
|
|
8013
8363
|
updated_at?: string;
|
|
8364
|
+
vat_code?: string | null;
|
|
8365
|
+
vat_rate?: number | null;
|
|
8014
8366
|
weight?: string | null;
|
|
8015
8367
|
};
|
|
8016
8368
|
Update: {
|
|
@@ -8039,6 +8391,8 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
8039
8391
|
trade_item_key?: string | null;
|
|
8040
8392
|
unit?: string;
|
|
8041
8393
|
updated_at?: string;
|
|
8394
|
+
vat_code?: string | null;
|
|
8395
|
+
vat_rate?: number | null;
|
|
8042
8396
|
weight?: string | null;
|
|
8043
8397
|
};
|
|
8044
8398
|
Relationships: [];
|
|
@@ -11114,6 +11468,12 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
11114
11468
|
processed_items: number;
|
|
11115
11469
|
}[];
|
|
11116
11470
|
};
|
|
11471
|
+
calculate_layer_stock: {
|
|
11472
|
+
Args: {
|
|
11473
|
+
p_product_id: string;
|
|
11474
|
+
};
|
|
11475
|
+
Returns: number;
|
|
11476
|
+
};
|
|
11117
11477
|
call_exact_route: {
|
|
11118
11478
|
Args: {
|
|
11119
11479
|
path: string;
|
|
@@ -11483,6 +11843,12 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
11483
11843
|
};
|
|
11484
11844
|
Returns: string;
|
|
11485
11845
|
};
|
|
11846
|
+
get_inventory_stock_for_key: {
|
|
11847
|
+
Args: {
|
|
11848
|
+
p_key: string;
|
|
11849
|
+
};
|
|
11850
|
+
Returns: number;
|
|
11851
|
+
};
|
|
11486
11852
|
get_offer_by_link_code: {
|
|
11487
11853
|
Args: {
|
|
11488
11854
|
p_code: string;
|
|
@@ -11513,6 +11879,12 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
11513
11879
|
};
|
|
11514
11880
|
Returns: string;
|
|
11515
11881
|
};
|
|
11882
|
+
get_product_group_available_stock: {
|
|
11883
|
+
Args: {
|
|
11884
|
+
p_group_id: string;
|
|
11885
|
+
};
|
|
11886
|
+
Returns: number;
|
|
11887
|
+
};
|
|
11516
11888
|
get_room_busy_windows: {
|
|
11517
11889
|
Args: {
|
|
11518
11890
|
p_from: string;
|
|
@@ -12079,12 +12451,22 @@ export declare const getFloricodeSettings: import("@tanstack/start-client-core")
|
|
|
12079
12451
|
};
|
|
12080
12452
|
Returns: string[];
|
|
12081
12453
|
};
|
|
12454
|
+
sync_all_layer_stocks: {
|
|
12455
|
+
Args: never;
|
|
12456
|
+
Returns: undefined;
|
|
12457
|
+
};
|
|
12082
12458
|
sync_cached_packing_from_product: {
|
|
12083
12459
|
Args: {
|
|
12084
12460
|
p_product_id: string;
|
|
12085
12461
|
};
|
|
12086
12462
|
Returns: undefined;
|
|
12087
12463
|
};
|
|
12464
|
+
sync_layer_stock: {
|
|
12465
|
+
Args: {
|
|
12466
|
+
p_product_id: string;
|
|
12467
|
+
};
|
|
12468
|
+
Returns: undefined;
|
|
12469
|
+
};
|
|
12088
12470
|
sync_order_cart_item_packing_from_product: {
|
|
12089
12471
|
Args: {
|
|
12090
12472
|
p_product_id: string;
|
|
@@ -13169,6 +13551,141 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
13169
13551
|
};
|
|
13170
13552
|
Relationships: [];
|
|
13171
13553
|
};
|
|
13554
|
+
cart_planning_pick_times: {
|
|
13555
|
+
Row: {
|
|
13556
|
+
created_at: string;
|
|
13557
|
+
id: string;
|
|
13558
|
+
pot_size: string;
|
|
13559
|
+
seconds_per_cart: number;
|
|
13560
|
+
updated_at: string;
|
|
13561
|
+
};
|
|
13562
|
+
Insert: {
|
|
13563
|
+
created_at?: string;
|
|
13564
|
+
id?: string;
|
|
13565
|
+
pot_size: string;
|
|
13566
|
+
seconds_per_cart: number;
|
|
13567
|
+
updated_at?: string;
|
|
13568
|
+
};
|
|
13569
|
+
Update: {
|
|
13570
|
+
created_at?: string;
|
|
13571
|
+
id?: string;
|
|
13572
|
+
pot_size?: string;
|
|
13573
|
+
seconds_per_cart?: number;
|
|
13574
|
+
updated_at?: string;
|
|
13575
|
+
};
|
|
13576
|
+
Relationships: [];
|
|
13577
|
+
};
|
|
13578
|
+
cart_planning_product_overrides: {
|
|
13579
|
+
Row: {
|
|
13580
|
+
created_at: string;
|
|
13581
|
+
id: string;
|
|
13582
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
13583
|
+
never_mix: boolean;
|
|
13584
|
+
notes: string | null;
|
|
13585
|
+
product_id: string;
|
|
13586
|
+
updated_at: string;
|
|
13587
|
+
};
|
|
13588
|
+
Insert: {
|
|
13589
|
+
created_at?: string;
|
|
13590
|
+
id?: string;
|
|
13591
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
13592
|
+
never_mix?: boolean;
|
|
13593
|
+
notes?: string | null;
|
|
13594
|
+
product_id: string;
|
|
13595
|
+
updated_at?: string;
|
|
13596
|
+
};
|
|
13597
|
+
Update: {
|
|
13598
|
+
created_at?: string;
|
|
13599
|
+
id?: string;
|
|
13600
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
13601
|
+
never_mix?: boolean;
|
|
13602
|
+
notes?: string | null;
|
|
13603
|
+
product_id?: string;
|
|
13604
|
+
updated_at?: string;
|
|
13605
|
+
};
|
|
13606
|
+
Relationships: [{
|
|
13607
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
13608
|
+
columns: ["product_id"];
|
|
13609
|
+
isOneToOne: true;
|
|
13610
|
+
referencedRelation: "products";
|
|
13611
|
+
referencedColumns: ["id"];
|
|
13612
|
+
}];
|
|
13613
|
+
};
|
|
13614
|
+
cart_planning_settings: {
|
|
13615
|
+
Row: {
|
|
13616
|
+
allow_editing_after_pickstation_send: boolean;
|
|
13617
|
+
buffer_grouping_mode: string;
|
|
13618
|
+
combine_floriday_orders: boolean;
|
|
13619
|
+
combine_floriday_orders_window: string;
|
|
13620
|
+
combine_orders_scope: string;
|
|
13621
|
+
default_workers: number;
|
|
13622
|
+
id: number;
|
|
13623
|
+
max_beladingen_per_layer: number;
|
|
13624
|
+
max_customers_per_cart: number;
|
|
13625
|
+
max_one_customer_per_layer: boolean;
|
|
13626
|
+
max_party_share_per_layer_pct: number;
|
|
13627
|
+
optimization_strategy: string;
|
|
13628
|
+
own_cart_from_layers: number;
|
|
13629
|
+
pick_time_mode: string;
|
|
13630
|
+
plants_per_day: number;
|
|
13631
|
+
plants_per_hour: number;
|
|
13632
|
+
require_same_carrier: boolean;
|
|
13633
|
+
require_same_crate_type: boolean;
|
|
13634
|
+
require_same_delivery_date: boolean;
|
|
13635
|
+
require_same_delivery_location: boolean;
|
|
13636
|
+
updated_at: string;
|
|
13637
|
+
updated_by: string | null;
|
|
13638
|
+
};
|
|
13639
|
+
Insert: {
|
|
13640
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
13641
|
+
buffer_grouping_mode?: string;
|
|
13642
|
+
combine_floriday_orders?: boolean;
|
|
13643
|
+
combine_floriday_orders_window?: string;
|
|
13644
|
+
combine_orders_scope?: string;
|
|
13645
|
+
default_workers?: number;
|
|
13646
|
+
id?: number;
|
|
13647
|
+
max_beladingen_per_layer?: number;
|
|
13648
|
+
max_customers_per_cart?: number;
|
|
13649
|
+
max_one_customer_per_layer?: boolean;
|
|
13650
|
+
max_party_share_per_layer_pct?: number;
|
|
13651
|
+
optimization_strategy?: string;
|
|
13652
|
+
own_cart_from_layers?: number;
|
|
13653
|
+
pick_time_mode?: string;
|
|
13654
|
+
plants_per_day?: number;
|
|
13655
|
+
plants_per_hour?: number;
|
|
13656
|
+
require_same_carrier?: boolean;
|
|
13657
|
+
require_same_crate_type?: boolean;
|
|
13658
|
+
require_same_delivery_date?: boolean;
|
|
13659
|
+
require_same_delivery_location?: boolean;
|
|
13660
|
+
updated_at?: string;
|
|
13661
|
+
updated_by?: string | null;
|
|
13662
|
+
};
|
|
13663
|
+
Update: {
|
|
13664
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
13665
|
+
buffer_grouping_mode?: string;
|
|
13666
|
+
combine_floriday_orders?: boolean;
|
|
13667
|
+
combine_floriday_orders_window?: string;
|
|
13668
|
+
combine_orders_scope?: string;
|
|
13669
|
+
default_workers?: number;
|
|
13670
|
+
id?: number;
|
|
13671
|
+
max_beladingen_per_layer?: number;
|
|
13672
|
+
max_customers_per_cart?: number;
|
|
13673
|
+
max_one_customer_per_layer?: boolean;
|
|
13674
|
+
max_party_share_per_layer_pct?: number;
|
|
13675
|
+
optimization_strategy?: string;
|
|
13676
|
+
own_cart_from_layers?: number;
|
|
13677
|
+
pick_time_mode?: string;
|
|
13678
|
+
plants_per_day?: number;
|
|
13679
|
+
plants_per_hour?: number;
|
|
13680
|
+
require_same_carrier?: boolean;
|
|
13681
|
+
require_same_crate_type?: boolean;
|
|
13682
|
+
require_same_delivery_date?: boolean;
|
|
13683
|
+
require_same_delivery_location?: boolean;
|
|
13684
|
+
updated_at?: string;
|
|
13685
|
+
updated_by?: string | null;
|
|
13686
|
+
};
|
|
13687
|
+
Relationships: [];
|
|
13688
|
+
};
|
|
13172
13689
|
cart_replan_queue: {
|
|
13173
13690
|
Row: {
|
|
13174
13691
|
attempts: number;
|
|
@@ -13199,6 +13716,39 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
13199
13716
|
referencedColumns: ["id"];
|
|
13200
13717
|
}];
|
|
13201
13718
|
};
|
|
13719
|
+
cart_types: {
|
|
13720
|
+
Row: {
|
|
13721
|
+
created_at: string;
|
|
13722
|
+
id: string;
|
|
13723
|
+
is_default: boolean;
|
|
13724
|
+
layer_length_cm: number;
|
|
13725
|
+
layer_width_cm: number;
|
|
13726
|
+
layers_per_cart: number;
|
|
13727
|
+
name: string;
|
|
13728
|
+
updated_at: string;
|
|
13729
|
+
};
|
|
13730
|
+
Insert: {
|
|
13731
|
+
created_at?: string;
|
|
13732
|
+
id?: string;
|
|
13733
|
+
is_default?: boolean;
|
|
13734
|
+
layer_length_cm: number;
|
|
13735
|
+
layer_width_cm: number;
|
|
13736
|
+
layers_per_cart?: number;
|
|
13737
|
+
name: string;
|
|
13738
|
+
updated_at?: string;
|
|
13739
|
+
};
|
|
13740
|
+
Update: {
|
|
13741
|
+
created_at?: string;
|
|
13742
|
+
id?: string;
|
|
13743
|
+
is_default?: boolean;
|
|
13744
|
+
layer_length_cm?: number;
|
|
13745
|
+
layer_width_cm?: number;
|
|
13746
|
+
layers_per_cart?: number;
|
|
13747
|
+
name?: string;
|
|
13748
|
+
updated_at?: string;
|
|
13749
|
+
};
|
|
13750
|
+
Relationships: [];
|
|
13751
|
+
};
|
|
13202
13752
|
collections: {
|
|
13203
13753
|
Row: {
|
|
13204
13754
|
created_at: string;
|
|
@@ -13223,6 +13773,36 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
13223
13773
|
};
|
|
13224
13774
|
Relationships: [];
|
|
13225
13775
|
};
|
|
13776
|
+
crate_types: {
|
|
13777
|
+
Row: {
|
|
13778
|
+
created_at: string;
|
|
13779
|
+
id: string;
|
|
13780
|
+
length_cm: number;
|
|
13781
|
+
name: string;
|
|
13782
|
+
plants_per_crate: number;
|
|
13783
|
+
updated_at: string;
|
|
13784
|
+
width_cm: number;
|
|
13785
|
+
};
|
|
13786
|
+
Insert: {
|
|
13787
|
+
created_at?: string;
|
|
13788
|
+
id?: string;
|
|
13789
|
+
length_cm: number;
|
|
13790
|
+
name: string;
|
|
13791
|
+
plants_per_crate?: number;
|
|
13792
|
+
updated_at?: string;
|
|
13793
|
+
width_cm: number;
|
|
13794
|
+
};
|
|
13795
|
+
Update: {
|
|
13796
|
+
created_at?: string;
|
|
13797
|
+
id?: string;
|
|
13798
|
+
length_cm?: number;
|
|
13799
|
+
name?: string;
|
|
13800
|
+
plants_per_crate?: number;
|
|
13801
|
+
updated_at?: string;
|
|
13802
|
+
width_cm?: number;
|
|
13803
|
+
};
|
|
13804
|
+
Relationships: [];
|
|
13805
|
+
};
|
|
13226
13806
|
customer_audit_log: {
|
|
13227
13807
|
Row: {
|
|
13228
13808
|
action: string;
|
|
@@ -17138,6 +17718,27 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
17138
17718
|
referencedColumns: ["id"];
|
|
17139
17719
|
}];
|
|
17140
17720
|
};
|
|
17721
|
+
floriday_vbn_required_characteristics: {
|
|
17722
|
+
Row: {
|
|
17723
|
+
required_codes: string[];
|
|
17724
|
+
updated_at: string;
|
|
17725
|
+
updated_by: string | null;
|
|
17726
|
+
vbn_code: string;
|
|
17727
|
+
};
|
|
17728
|
+
Insert: {
|
|
17729
|
+
required_codes?: string[];
|
|
17730
|
+
updated_at?: string;
|
|
17731
|
+
updated_by?: string | null;
|
|
17732
|
+
vbn_code: string;
|
|
17733
|
+
};
|
|
17734
|
+
Update: {
|
|
17735
|
+
required_codes?: string[];
|
|
17736
|
+
updated_at?: string;
|
|
17737
|
+
updated_by?: string | null;
|
|
17738
|
+
vbn_code?: string;
|
|
17739
|
+
};
|
|
17740
|
+
Relationships: [];
|
|
17741
|
+
};
|
|
17141
17742
|
floriday_warehouses_cache: {
|
|
17142
17743
|
Row: {
|
|
17143
17744
|
connection_id: string;
|
|
@@ -17731,112 +18332,175 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
17731
18332
|
valid_until?: string | null;
|
|
17732
18333
|
};
|
|
17733
18334
|
Relationships: [{
|
|
17734
|
-
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
18335
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
18336
|
+
columns: ["customer_id"];
|
|
18337
|
+
isOneToOne: false;
|
|
18338
|
+
referencedRelation: "customers";
|
|
18339
|
+
referencedColumns: ["id"];
|
|
18340
|
+
}, {
|
|
18341
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
18342
|
+
columns: ["product_category_id"];
|
|
18343
|
+
isOneToOne: false;
|
|
18344
|
+
referencedRelation: "product_categories";
|
|
18345
|
+
referencedColumns: ["id"];
|
|
18346
|
+
}, {
|
|
18347
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
18348
|
+
columns: ["product_id"];
|
|
18349
|
+
isOneToOne: false;
|
|
18350
|
+
referencedRelation: "products";
|
|
18351
|
+
referencedColumns: ["id"];
|
|
18352
|
+
}];
|
|
18353
|
+
};
|
|
18354
|
+
local_customer_sales_strategies: {
|
|
18355
|
+
Row: {
|
|
18356
|
+
created_at: string;
|
|
18357
|
+
currency: string;
|
|
18358
|
+
customer_id: string;
|
|
18359
|
+
discount_type: string;
|
|
18360
|
+
discount_value: number;
|
|
18361
|
+
id: string;
|
|
18362
|
+
min_quantity: number;
|
|
18363
|
+
notes: string | null;
|
|
18364
|
+
product_category_id: string | null;
|
|
18365
|
+
product_id: string | null;
|
|
18366
|
+
updated_at: string;
|
|
18367
|
+
valid_from: string | null;
|
|
18368
|
+
valid_until: string | null;
|
|
18369
|
+
};
|
|
18370
|
+
Insert: {
|
|
18371
|
+
created_at?: string;
|
|
18372
|
+
currency?: string;
|
|
18373
|
+
customer_id: string;
|
|
18374
|
+
discount_type: string;
|
|
18375
|
+
discount_value: number;
|
|
18376
|
+
id?: string;
|
|
18377
|
+
min_quantity?: number;
|
|
18378
|
+
notes?: string | null;
|
|
18379
|
+
product_category_id?: string | null;
|
|
18380
|
+
product_id?: string | null;
|
|
18381
|
+
updated_at?: string;
|
|
18382
|
+
valid_from?: string | null;
|
|
18383
|
+
valid_until?: string | null;
|
|
18384
|
+
};
|
|
18385
|
+
Update: {
|
|
18386
|
+
created_at?: string;
|
|
18387
|
+
currency?: string;
|
|
18388
|
+
customer_id?: string;
|
|
18389
|
+
discount_type?: string;
|
|
18390
|
+
discount_value?: number;
|
|
18391
|
+
id?: string;
|
|
18392
|
+
min_quantity?: number;
|
|
18393
|
+
notes?: string | null;
|
|
18394
|
+
product_category_id?: string | null;
|
|
18395
|
+
product_id?: string | null;
|
|
18396
|
+
updated_at?: string;
|
|
18397
|
+
valid_from?: string | null;
|
|
18398
|
+
valid_until?: string | null;
|
|
18399
|
+
};
|
|
18400
|
+
Relationships: [{
|
|
18401
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
17735
18402
|
columns: ["customer_id"];
|
|
17736
18403
|
isOneToOne: false;
|
|
17737
18404
|
referencedRelation: "customers";
|
|
17738
18405
|
referencedColumns: ["id"];
|
|
17739
18406
|
}, {
|
|
17740
|
-
foreignKeyName: "
|
|
18407
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
17741
18408
|
columns: ["product_category_id"];
|
|
17742
18409
|
isOneToOne: false;
|
|
17743
18410
|
referencedRelation: "product_categories";
|
|
17744
18411
|
referencedColumns: ["id"];
|
|
17745
18412
|
}, {
|
|
17746
|
-
foreignKeyName: "
|
|
18413
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
17747
18414
|
columns: ["product_id"];
|
|
17748
18415
|
isOneToOne: false;
|
|
17749
18416
|
referencedRelation: "products";
|
|
17750
18417
|
referencedColumns: ["id"];
|
|
17751
18418
|
}];
|
|
17752
18419
|
};
|
|
17753
|
-
|
|
18420
|
+
locations: {
|
|
17754
18421
|
Row: {
|
|
17755
18422
|
created_at: string;
|
|
17756
|
-
currency: string;
|
|
17757
|
-
customer_id: string;
|
|
17758
|
-
discount_type: string;
|
|
17759
|
-
discount_value: number;
|
|
17760
18423
|
id: string;
|
|
17761
|
-
|
|
17762
|
-
|
|
17763
|
-
product_category_id: string | null;
|
|
17764
|
-
product_id: string | null;
|
|
18424
|
+
name: string;
|
|
18425
|
+
sort_order: number;
|
|
17765
18426
|
updated_at: string;
|
|
17766
|
-
valid_from: string | null;
|
|
17767
|
-
valid_until: string | null;
|
|
17768
18427
|
};
|
|
17769
18428
|
Insert: {
|
|
17770
18429
|
created_at?: string;
|
|
17771
|
-
currency?: string;
|
|
17772
|
-
customer_id: string;
|
|
17773
|
-
discount_type: string;
|
|
17774
|
-
discount_value: number;
|
|
17775
18430
|
id?: string;
|
|
17776
|
-
|
|
17777
|
-
|
|
17778
|
-
product_category_id?: string | null;
|
|
17779
|
-
product_id?: string | null;
|
|
18431
|
+
name: string;
|
|
18432
|
+
sort_order?: number;
|
|
17780
18433
|
updated_at?: string;
|
|
17781
|
-
valid_from?: string | null;
|
|
17782
|
-
valid_until?: string | null;
|
|
17783
18434
|
};
|
|
17784
18435
|
Update: {
|
|
17785
18436
|
created_at?: string;
|
|
17786
|
-
currency?: string;
|
|
17787
|
-
customer_id?: string;
|
|
17788
|
-
discount_type?: string;
|
|
17789
|
-
discount_value?: number;
|
|
17790
18437
|
id?: string;
|
|
17791
|
-
|
|
17792
|
-
|
|
17793
|
-
product_category_id?: string | null;
|
|
17794
|
-
product_id?: string | null;
|
|
18438
|
+
name?: string;
|
|
18439
|
+
sort_order?: number;
|
|
17795
18440
|
updated_at?: string;
|
|
17796
|
-
valid_from?: string | null;
|
|
17797
|
-
valid_until?: string | null;
|
|
17798
18441
|
};
|
|
17799
|
-
Relationships: [
|
|
17800
|
-
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
17801
|
-
columns: ["customer_id"];
|
|
17802
|
-
isOneToOne: false;
|
|
17803
|
-
referencedRelation: "customers";
|
|
17804
|
-
referencedColumns: ["id"];
|
|
17805
|
-
}, {
|
|
17806
|
-
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
17807
|
-
columns: ["product_category_id"];
|
|
17808
|
-
isOneToOne: false;
|
|
17809
|
-
referencedRelation: "product_categories";
|
|
17810
|
-
referencedColumns: ["id"];
|
|
17811
|
-
}, {
|
|
17812
|
-
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
17813
|
-
columns: ["product_id"];
|
|
17814
|
-
isOneToOne: false;
|
|
17815
|
-
referencedRelation: "products";
|
|
17816
|
-
referencedColumns: ["id"];
|
|
17817
|
-
}];
|
|
18442
|
+
Relationships: [];
|
|
17818
18443
|
};
|
|
17819
|
-
|
|
18444
|
+
logistics_capacity_events: {
|
|
17820
18445
|
Row: {
|
|
18446
|
+
available_carts: number;
|
|
17821
18447
|
created_at: string;
|
|
17822
18448
|
id: string;
|
|
17823
|
-
|
|
17824
|
-
|
|
17825
|
-
|
|
18449
|
+
measures: import("../integrations/supabase/types").Json;
|
|
18450
|
+
note: string | null;
|
|
18451
|
+
outcome: string;
|
|
18452
|
+
required_carts: number;
|
|
18453
|
+
reserve_minutes: number;
|
|
18454
|
+
shortage_carts: number;
|
|
18455
|
+
status: string;
|
|
18456
|
+
user_id: string;
|
|
17826
18457
|
};
|
|
17827
18458
|
Insert: {
|
|
18459
|
+
available_carts?: number;
|
|
17828
18460
|
created_at?: string;
|
|
17829
18461
|
id?: string;
|
|
17830
|
-
|
|
17831
|
-
|
|
17832
|
-
|
|
18462
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
18463
|
+
note?: string | null;
|
|
18464
|
+
outcome?: string;
|
|
18465
|
+
required_carts?: number;
|
|
18466
|
+
reserve_minutes?: number;
|
|
18467
|
+
shortage_carts?: number;
|
|
18468
|
+
status: string;
|
|
18469
|
+
user_id: string;
|
|
17833
18470
|
};
|
|
17834
18471
|
Update: {
|
|
18472
|
+
available_carts?: number;
|
|
17835
18473
|
created_at?: string;
|
|
17836
18474
|
id?: string;
|
|
17837
|
-
|
|
17838
|
-
|
|
18475
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
18476
|
+
note?: string | null;
|
|
18477
|
+
outcome?: string;
|
|
18478
|
+
required_carts?: number;
|
|
18479
|
+
reserve_minutes?: number;
|
|
18480
|
+
shortage_carts?: number;
|
|
18481
|
+
status?: string;
|
|
18482
|
+
user_id?: string;
|
|
18483
|
+
};
|
|
18484
|
+
Relationships: [];
|
|
18485
|
+
};
|
|
18486
|
+
logistics_capacity_settings: {
|
|
18487
|
+
Row: {
|
|
18488
|
+
created_at: string;
|
|
18489
|
+
settings: import("../integrations/supabase/types").Json;
|
|
18490
|
+
updated_at: string;
|
|
18491
|
+
user_id: string;
|
|
18492
|
+
};
|
|
18493
|
+
Insert: {
|
|
18494
|
+
created_at?: string;
|
|
18495
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
17839
18496
|
updated_at?: string;
|
|
18497
|
+
user_id: string;
|
|
18498
|
+
};
|
|
18499
|
+
Update: {
|
|
18500
|
+
created_at?: string;
|
|
18501
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
18502
|
+
updated_at?: string;
|
|
18503
|
+
user_id?: string;
|
|
17840
18504
|
};
|
|
17841
18505
|
Relationships: [];
|
|
17842
18506
|
};
|
|
@@ -19235,6 +19899,42 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19235
19899
|
};
|
|
19236
19900
|
Relationships: [];
|
|
19237
19901
|
};
|
|
19902
|
+
order_buffers: {
|
|
19903
|
+
Row: {
|
|
19904
|
+
buffer_key: string;
|
|
19905
|
+
created_at: string;
|
|
19906
|
+
customer_id: string | null;
|
|
19907
|
+
grouping_mode: string;
|
|
19908
|
+
id: string;
|
|
19909
|
+
pickup_date: string | null;
|
|
19910
|
+
pickup_location: string | null;
|
|
19911
|
+
plan_locked_at: string | null;
|
|
19912
|
+
updated_at: string;
|
|
19913
|
+
};
|
|
19914
|
+
Insert: {
|
|
19915
|
+
buffer_key: string;
|
|
19916
|
+
created_at?: string;
|
|
19917
|
+
customer_id?: string | null;
|
|
19918
|
+
grouping_mode: string;
|
|
19919
|
+
id?: string;
|
|
19920
|
+
pickup_date?: string | null;
|
|
19921
|
+
pickup_location?: string | null;
|
|
19922
|
+
plan_locked_at?: string | null;
|
|
19923
|
+
updated_at?: string;
|
|
19924
|
+
};
|
|
19925
|
+
Update: {
|
|
19926
|
+
buffer_key?: string;
|
|
19927
|
+
created_at?: string;
|
|
19928
|
+
customer_id?: string | null;
|
|
19929
|
+
grouping_mode?: string;
|
|
19930
|
+
id?: string;
|
|
19931
|
+
pickup_date?: string | null;
|
|
19932
|
+
pickup_location?: string | null;
|
|
19933
|
+
plan_locked_at?: string | null;
|
|
19934
|
+
updated_at?: string;
|
|
19935
|
+
};
|
|
19936
|
+
Relationships: [];
|
|
19937
|
+
};
|
|
19238
19938
|
order_cart_items: {
|
|
19239
19939
|
Row: {
|
|
19240
19940
|
cart_id: string;
|
|
@@ -19301,6 +20001,7 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19301
20001
|
order_carts: {
|
|
19302
20002
|
Row: {
|
|
19303
20003
|
algorithm_version: number;
|
|
20004
|
+
buffer_id: string | null;
|
|
19304
20005
|
cart_number: number;
|
|
19305
20006
|
created_at: string;
|
|
19306
20007
|
id: string;
|
|
@@ -19308,13 +20009,14 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19308
20009
|
is_complete: boolean;
|
|
19309
20010
|
notes: string | null;
|
|
19310
20011
|
occupancy_pct: number;
|
|
19311
|
-
order_id: string;
|
|
20012
|
+
order_id: string | null;
|
|
19312
20013
|
source: string;
|
|
19313
20014
|
total_layers_used: number;
|
|
19314
20015
|
updated_at: string;
|
|
19315
20016
|
};
|
|
19316
20017
|
Insert: {
|
|
19317
20018
|
algorithm_version?: number;
|
|
20019
|
+
buffer_id?: string | null;
|
|
19318
20020
|
cart_number: number;
|
|
19319
20021
|
created_at?: string;
|
|
19320
20022
|
id?: string;
|
|
@@ -19322,13 +20024,14 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19322
20024
|
is_complete?: boolean;
|
|
19323
20025
|
notes?: string | null;
|
|
19324
20026
|
occupancy_pct?: number;
|
|
19325
|
-
order_id
|
|
20027
|
+
order_id?: string | null;
|
|
19326
20028
|
source?: string;
|
|
19327
20029
|
total_layers_used?: number;
|
|
19328
20030
|
updated_at?: string;
|
|
19329
20031
|
};
|
|
19330
20032
|
Update: {
|
|
19331
20033
|
algorithm_version?: number;
|
|
20034
|
+
buffer_id?: string | null;
|
|
19332
20035
|
cart_number?: number;
|
|
19333
20036
|
created_at?: string;
|
|
19334
20037
|
id?: string;
|
|
@@ -19336,12 +20039,18 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19336
20039
|
is_complete?: boolean;
|
|
19337
20040
|
notes?: string | null;
|
|
19338
20041
|
occupancy_pct?: number;
|
|
19339
|
-
order_id?: string;
|
|
20042
|
+
order_id?: string | null;
|
|
19340
20043
|
source?: string;
|
|
19341
20044
|
total_layers_used?: number;
|
|
19342
20045
|
updated_at?: string;
|
|
19343
20046
|
};
|
|
19344
20047
|
Relationships: [{
|
|
20048
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
20049
|
+
columns: ["buffer_id"];
|
|
20050
|
+
isOneToOne: false;
|
|
20051
|
+
referencedRelation: "order_buffers";
|
|
20052
|
+
referencedColumns: ["id"];
|
|
20053
|
+
}, {
|
|
19345
20054
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
19346
20055
|
columns: ["order_id"];
|
|
19347
20056
|
isOneToOne: false;
|
|
@@ -19579,12 +20288,14 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19579
20288
|
};
|
|
19580
20289
|
orders: {
|
|
19581
20290
|
Row: {
|
|
20291
|
+
buffer_id: string | null;
|
|
19582
20292
|
created_at: string;
|
|
19583
20293
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
19584
20294
|
customer_id: string | null;
|
|
19585
20295
|
customer_name: string;
|
|
19586
20296
|
deleted_at: string | null;
|
|
19587
20297
|
delivery_date: string | null;
|
|
20298
|
+
floriday_sales_order_id: string | null;
|
|
19588
20299
|
id: string;
|
|
19589
20300
|
is_reservation: boolean;
|
|
19590
20301
|
notes: string | null;
|
|
@@ -19598,12 +20309,14 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19598
20309
|
updated_at: string;
|
|
19599
20310
|
};
|
|
19600
20311
|
Insert: {
|
|
20312
|
+
buffer_id?: string | null;
|
|
19601
20313
|
created_at?: string;
|
|
19602
20314
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
19603
20315
|
customer_id?: string | null;
|
|
19604
20316
|
customer_name?: string;
|
|
19605
20317
|
deleted_at?: string | null;
|
|
19606
20318
|
delivery_date?: string | null;
|
|
20319
|
+
floriday_sales_order_id?: string | null;
|
|
19607
20320
|
id?: string;
|
|
19608
20321
|
is_reservation?: boolean;
|
|
19609
20322
|
notes?: string | null;
|
|
@@ -19617,12 +20330,14 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19617
20330
|
updated_at?: string;
|
|
19618
20331
|
};
|
|
19619
20332
|
Update: {
|
|
20333
|
+
buffer_id?: string | null;
|
|
19620
20334
|
created_at?: string;
|
|
19621
20335
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
19622
20336
|
customer_id?: string | null;
|
|
19623
20337
|
customer_name?: string;
|
|
19624
20338
|
deleted_at?: string | null;
|
|
19625
20339
|
delivery_date?: string | null;
|
|
20340
|
+
floriday_sales_order_id?: string | null;
|
|
19626
20341
|
id?: string;
|
|
19627
20342
|
is_reservation?: boolean;
|
|
19628
20343
|
notes?: string | null;
|
|
@@ -19636,6 +20351,12 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19636
20351
|
updated_at?: string;
|
|
19637
20352
|
};
|
|
19638
20353
|
Relationships: [{
|
|
20354
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
20355
|
+
columns: ["buffer_id"];
|
|
20356
|
+
isOneToOne: false;
|
|
20357
|
+
referencedRelation: "order_buffers";
|
|
20358
|
+
referencedColumns: ["id"];
|
|
20359
|
+
}, {
|
|
19639
20360
|
foreignKeyName: "orders_customer_id_fkey";
|
|
19640
20361
|
columns: ["customer_id"];
|
|
19641
20362
|
isOneToOne: false;
|
|
@@ -19773,6 +20494,7 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19773
20494
|
created_at: string;
|
|
19774
20495
|
id: string;
|
|
19775
20496
|
notes: string | null;
|
|
20497
|
+
packing_configuration_id: string | null;
|
|
19776
20498
|
parent_product_id: string | null;
|
|
19777
20499
|
parent_trade_item_floriday_id: string | null;
|
|
19778
20500
|
quantity: number;
|
|
@@ -19787,6 +20509,7 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19787
20509
|
created_at?: string;
|
|
19788
20510
|
id?: string;
|
|
19789
20511
|
notes?: string | null;
|
|
20512
|
+
packing_configuration_id?: string | null;
|
|
19790
20513
|
parent_product_id?: string | null;
|
|
19791
20514
|
parent_trade_item_floriday_id?: string | null;
|
|
19792
20515
|
quantity?: number;
|
|
@@ -19801,6 +20524,7 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
19801
20524
|
created_at?: string;
|
|
19802
20525
|
id?: string;
|
|
19803
20526
|
notes?: string | null;
|
|
20527
|
+
packing_configuration_id?: string | null;
|
|
19804
20528
|
parent_product_id?: string | null;
|
|
19805
20529
|
parent_trade_item_floriday_id?: string | null;
|
|
19806
20530
|
quantity?: number;
|
|
@@ -20002,11 +20726,13 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
20002
20726
|
created_at: string;
|
|
20003
20727
|
id: string;
|
|
20004
20728
|
is_package: boolean;
|
|
20729
|
+
label: string | null;
|
|
20005
20730
|
layers_per_load_carrier: number | null;
|
|
20006
20731
|
load_carrier: string | null;
|
|
20007
20732
|
package_id: string | null;
|
|
20008
20733
|
package_label: string | null;
|
|
20009
20734
|
packages_per_layer: number | null;
|
|
20735
|
+
packing_configuration_id: string;
|
|
20010
20736
|
product_id: string | null;
|
|
20011
20737
|
tenant_id: string;
|
|
20012
20738
|
trade_item_floriday_id: string | null;
|
|
@@ -20017,11 +20743,13 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
20017
20743
|
created_at?: string;
|
|
20018
20744
|
id?: string;
|
|
20019
20745
|
is_package?: boolean;
|
|
20746
|
+
label?: string | null;
|
|
20020
20747
|
layers_per_load_carrier?: number | null;
|
|
20021
20748
|
load_carrier?: string | null;
|
|
20022
20749
|
package_id?: string | null;
|
|
20023
20750
|
package_label?: string | null;
|
|
20024
20751
|
packages_per_layer?: number | null;
|
|
20752
|
+
packing_configuration_id?: string;
|
|
20025
20753
|
product_id?: string | null;
|
|
20026
20754
|
tenant_id: string;
|
|
20027
20755
|
trade_item_floriday_id?: string | null;
|
|
@@ -20032,11 +20760,13 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
20032
20760
|
created_at?: string;
|
|
20033
20761
|
id?: string;
|
|
20034
20762
|
is_package?: boolean;
|
|
20763
|
+
label?: string | null;
|
|
20035
20764
|
layers_per_load_carrier?: number | null;
|
|
20036
20765
|
load_carrier?: string | null;
|
|
20037
20766
|
package_id?: string | null;
|
|
20038
20767
|
package_label?: string | null;
|
|
20039
20768
|
packages_per_layer?: number | null;
|
|
20769
|
+
packing_configuration_id?: string;
|
|
20040
20770
|
product_id?: string | null;
|
|
20041
20771
|
tenant_id?: string;
|
|
20042
20772
|
trade_item_floriday_id?: string | null;
|
|
@@ -20117,6 +20847,8 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
20117
20847
|
trade_item_key: string | null;
|
|
20118
20848
|
unit: string;
|
|
20119
20849
|
updated_at: string;
|
|
20850
|
+
vat_code: string | null;
|
|
20851
|
+
vat_rate: number | null;
|
|
20120
20852
|
weight: string | null;
|
|
20121
20853
|
};
|
|
20122
20854
|
Insert: {
|
|
@@ -20145,6 +20877,8 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
20145
20877
|
trade_item_key?: string | null;
|
|
20146
20878
|
unit?: string;
|
|
20147
20879
|
updated_at?: string;
|
|
20880
|
+
vat_code?: string | null;
|
|
20881
|
+
vat_rate?: number | null;
|
|
20148
20882
|
weight?: string | null;
|
|
20149
20883
|
};
|
|
20150
20884
|
Update: {
|
|
@@ -20173,6 +20907,8 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
20173
20907
|
trade_item_key?: string | null;
|
|
20174
20908
|
unit?: string;
|
|
20175
20909
|
updated_at?: string;
|
|
20910
|
+
vat_code?: string | null;
|
|
20911
|
+
vat_rate?: number | null;
|
|
20176
20912
|
weight?: string | null;
|
|
20177
20913
|
};
|
|
20178
20914
|
Relationships: [];
|
|
@@ -23248,6 +23984,12 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
23248
23984
|
processed_items: number;
|
|
23249
23985
|
}[];
|
|
23250
23986
|
};
|
|
23987
|
+
calculate_layer_stock: {
|
|
23988
|
+
Args: {
|
|
23989
|
+
p_product_id: string;
|
|
23990
|
+
};
|
|
23991
|
+
Returns: number;
|
|
23992
|
+
};
|
|
23251
23993
|
call_exact_route: {
|
|
23252
23994
|
Args: {
|
|
23253
23995
|
path: string;
|
|
@@ -23617,6 +24359,12 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
23617
24359
|
};
|
|
23618
24360
|
Returns: string;
|
|
23619
24361
|
};
|
|
24362
|
+
get_inventory_stock_for_key: {
|
|
24363
|
+
Args: {
|
|
24364
|
+
p_key: string;
|
|
24365
|
+
};
|
|
24366
|
+
Returns: number;
|
|
24367
|
+
};
|
|
23620
24368
|
get_offer_by_link_code: {
|
|
23621
24369
|
Args: {
|
|
23622
24370
|
p_code: string;
|
|
@@ -23647,6 +24395,12 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
23647
24395
|
};
|
|
23648
24396
|
Returns: string;
|
|
23649
24397
|
};
|
|
24398
|
+
get_product_group_available_stock: {
|
|
24399
|
+
Args: {
|
|
24400
|
+
p_group_id: string;
|
|
24401
|
+
};
|
|
24402
|
+
Returns: number;
|
|
24403
|
+
};
|
|
23650
24404
|
get_room_busy_windows: {
|
|
23651
24405
|
Args: {
|
|
23652
24406
|
p_from: string;
|
|
@@ -24213,12 +24967,22 @@ export declare const saveFloricodeCredentials: import("@tanstack/start-client-co
|
|
|
24213
24967
|
};
|
|
24214
24968
|
Returns: string[];
|
|
24215
24969
|
};
|
|
24970
|
+
sync_all_layer_stocks: {
|
|
24971
|
+
Args: never;
|
|
24972
|
+
Returns: undefined;
|
|
24973
|
+
};
|
|
24216
24974
|
sync_cached_packing_from_product: {
|
|
24217
24975
|
Args: {
|
|
24218
24976
|
p_product_id: string;
|
|
24219
24977
|
};
|
|
24220
24978
|
Returns: undefined;
|
|
24221
24979
|
};
|
|
24980
|
+
sync_layer_stock: {
|
|
24981
|
+
Args: {
|
|
24982
|
+
p_product_id: string;
|
|
24983
|
+
};
|
|
24984
|
+
Returns: undefined;
|
|
24985
|
+
};
|
|
24222
24986
|
sync_order_cart_item_packing_from_product: {
|
|
24223
24987
|
Args: {
|
|
24224
24988
|
p_product_id: string;
|
|
@@ -25308,6 +26072,141 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
25308
26072
|
};
|
|
25309
26073
|
Relationships: [];
|
|
25310
26074
|
};
|
|
26075
|
+
cart_planning_pick_times: {
|
|
26076
|
+
Row: {
|
|
26077
|
+
created_at: string;
|
|
26078
|
+
id: string;
|
|
26079
|
+
pot_size: string;
|
|
26080
|
+
seconds_per_cart: number;
|
|
26081
|
+
updated_at: string;
|
|
26082
|
+
};
|
|
26083
|
+
Insert: {
|
|
26084
|
+
created_at?: string;
|
|
26085
|
+
id?: string;
|
|
26086
|
+
pot_size: string;
|
|
26087
|
+
seconds_per_cart: number;
|
|
26088
|
+
updated_at?: string;
|
|
26089
|
+
};
|
|
26090
|
+
Update: {
|
|
26091
|
+
created_at?: string;
|
|
26092
|
+
id?: string;
|
|
26093
|
+
pot_size?: string;
|
|
26094
|
+
seconds_per_cart?: number;
|
|
26095
|
+
updated_at?: string;
|
|
26096
|
+
};
|
|
26097
|
+
Relationships: [];
|
|
26098
|
+
};
|
|
26099
|
+
cart_planning_product_overrides: {
|
|
26100
|
+
Row: {
|
|
26101
|
+
created_at: string;
|
|
26102
|
+
id: string;
|
|
26103
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
26104
|
+
never_mix: boolean;
|
|
26105
|
+
notes: string | null;
|
|
26106
|
+
product_id: string;
|
|
26107
|
+
updated_at: string;
|
|
26108
|
+
};
|
|
26109
|
+
Insert: {
|
|
26110
|
+
created_at?: string;
|
|
26111
|
+
id?: string;
|
|
26112
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
26113
|
+
never_mix?: boolean;
|
|
26114
|
+
notes?: string | null;
|
|
26115
|
+
product_id: string;
|
|
26116
|
+
updated_at?: string;
|
|
26117
|
+
};
|
|
26118
|
+
Update: {
|
|
26119
|
+
created_at?: string;
|
|
26120
|
+
id?: string;
|
|
26121
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
26122
|
+
never_mix?: boolean;
|
|
26123
|
+
notes?: string | null;
|
|
26124
|
+
product_id?: string;
|
|
26125
|
+
updated_at?: string;
|
|
26126
|
+
};
|
|
26127
|
+
Relationships: [{
|
|
26128
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
26129
|
+
columns: ["product_id"];
|
|
26130
|
+
isOneToOne: true;
|
|
26131
|
+
referencedRelation: "products";
|
|
26132
|
+
referencedColumns: ["id"];
|
|
26133
|
+
}];
|
|
26134
|
+
};
|
|
26135
|
+
cart_planning_settings: {
|
|
26136
|
+
Row: {
|
|
26137
|
+
allow_editing_after_pickstation_send: boolean;
|
|
26138
|
+
buffer_grouping_mode: string;
|
|
26139
|
+
combine_floriday_orders: boolean;
|
|
26140
|
+
combine_floriday_orders_window: string;
|
|
26141
|
+
combine_orders_scope: string;
|
|
26142
|
+
default_workers: number;
|
|
26143
|
+
id: number;
|
|
26144
|
+
max_beladingen_per_layer: number;
|
|
26145
|
+
max_customers_per_cart: number;
|
|
26146
|
+
max_one_customer_per_layer: boolean;
|
|
26147
|
+
max_party_share_per_layer_pct: number;
|
|
26148
|
+
optimization_strategy: string;
|
|
26149
|
+
own_cart_from_layers: number;
|
|
26150
|
+
pick_time_mode: string;
|
|
26151
|
+
plants_per_day: number;
|
|
26152
|
+
plants_per_hour: number;
|
|
26153
|
+
require_same_carrier: boolean;
|
|
26154
|
+
require_same_crate_type: boolean;
|
|
26155
|
+
require_same_delivery_date: boolean;
|
|
26156
|
+
require_same_delivery_location: boolean;
|
|
26157
|
+
updated_at: string;
|
|
26158
|
+
updated_by: string | null;
|
|
26159
|
+
};
|
|
26160
|
+
Insert: {
|
|
26161
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
26162
|
+
buffer_grouping_mode?: string;
|
|
26163
|
+
combine_floriday_orders?: boolean;
|
|
26164
|
+
combine_floriday_orders_window?: string;
|
|
26165
|
+
combine_orders_scope?: string;
|
|
26166
|
+
default_workers?: number;
|
|
26167
|
+
id?: number;
|
|
26168
|
+
max_beladingen_per_layer?: number;
|
|
26169
|
+
max_customers_per_cart?: number;
|
|
26170
|
+
max_one_customer_per_layer?: boolean;
|
|
26171
|
+
max_party_share_per_layer_pct?: number;
|
|
26172
|
+
optimization_strategy?: string;
|
|
26173
|
+
own_cart_from_layers?: number;
|
|
26174
|
+
pick_time_mode?: string;
|
|
26175
|
+
plants_per_day?: number;
|
|
26176
|
+
plants_per_hour?: number;
|
|
26177
|
+
require_same_carrier?: boolean;
|
|
26178
|
+
require_same_crate_type?: boolean;
|
|
26179
|
+
require_same_delivery_date?: boolean;
|
|
26180
|
+
require_same_delivery_location?: boolean;
|
|
26181
|
+
updated_at?: string;
|
|
26182
|
+
updated_by?: string | null;
|
|
26183
|
+
};
|
|
26184
|
+
Update: {
|
|
26185
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
26186
|
+
buffer_grouping_mode?: string;
|
|
26187
|
+
combine_floriday_orders?: boolean;
|
|
26188
|
+
combine_floriday_orders_window?: string;
|
|
26189
|
+
combine_orders_scope?: string;
|
|
26190
|
+
default_workers?: number;
|
|
26191
|
+
id?: number;
|
|
26192
|
+
max_beladingen_per_layer?: number;
|
|
26193
|
+
max_customers_per_cart?: number;
|
|
26194
|
+
max_one_customer_per_layer?: boolean;
|
|
26195
|
+
max_party_share_per_layer_pct?: number;
|
|
26196
|
+
optimization_strategy?: string;
|
|
26197
|
+
own_cart_from_layers?: number;
|
|
26198
|
+
pick_time_mode?: string;
|
|
26199
|
+
plants_per_day?: number;
|
|
26200
|
+
plants_per_hour?: number;
|
|
26201
|
+
require_same_carrier?: boolean;
|
|
26202
|
+
require_same_crate_type?: boolean;
|
|
26203
|
+
require_same_delivery_date?: boolean;
|
|
26204
|
+
require_same_delivery_location?: boolean;
|
|
26205
|
+
updated_at?: string;
|
|
26206
|
+
updated_by?: string | null;
|
|
26207
|
+
};
|
|
26208
|
+
Relationships: [];
|
|
26209
|
+
};
|
|
25311
26210
|
cart_replan_queue: {
|
|
25312
26211
|
Row: {
|
|
25313
26212
|
attempts: number;
|
|
@@ -25338,6 +26237,39 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
25338
26237
|
referencedColumns: ["id"];
|
|
25339
26238
|
}];
|
|
25340
26239
|
};
|
|
26240
|
+
cart_types: {
|
|
26241
|
+
Row: {
|
|
26242
|
+
created_at: string;
|
|
26243
|
+
id: string;
|
|
26244
|
+
is_default: boolean;
|
|
26245
|
+
layer_length_cm: number;
|
|
26246
|
+
layer_width_cm: number;
|
|
26247
|
+
layers_per_cart: number;
|
|
26248
|
+
name: string;
|
|
26249
|
+
updated_at: string;
|
|
26250
|
+
};
|
|
26251
|
+
Insert: {
|
|
26252
|
+
created_at?: string;
|
|
26253
|
+
id?: string;
|
|
26254
|
+
is_default?: boolean;
|
|
26255
|
+
layer_length_cm: number;
|
|
26256
|
+
layer_width_cm: number;
|
|
26257
|
+
layers_per_cart?: number;
|
|
26258
|
+
name: string;
|
|
26259
|
+
updated_at?: string;
|
|
26260
|
+
};
|
|
26261
|
+
Update: {
|
|
26262
|
+
created_at?: string;
|
|
26263
|
+
id?: string;
|
|
26264
|
+
is_default?: boolean;
|
|
26265
|
+
layer_length_cm?: number;
|
|
26266
|
+
layer_width_cm?: number;
|
|
26267
|
+
layers_per_cart?: number;
|
|
26268
|
+
name?: string;
|
|
26269
|
+
updated_at?: string;
|
|
26270
|
+
};
|
|
26271
|
+
Relationships: [];
|
|
26272
|
+
};
|
|
25341
26273
|
collections: {
|
|
25342
26274
|
Row: {
|
|
25343
26275
|
created_at: string;
|
|
@@ -25362,6 +26294,36 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
25362
26294
|
};
|
|
25363
26295
|
Relationships: [];
|
|
25364
26296
|
};
|
|
26297
|
+
crate_types: {
|
|
26298
|
+
Row: {
|
|
26299
|
+
created_at: string;
|
|
26300
|
+
id: string;
|
|
26301
|
+
length_cm: number;
|
|
26302
|
+
name: string;
|
|
26303
|
+
plants_per_crate: number;
|
|
26304
|
+
updated_at: string;
|
|
26305
|
+
width_cm: number;
|
|
26306
|
+
};
|
|
26307
|
+
Insert: {
|
|
26308
|
+
created_at?: string;
|
|
26309
|
+
id?: string;
|
|
26310
|
+
length_cm: number;
|
|
26311
|
+
name: string;
|
|
26312
|
+
plants_per_crate?: number;
|
|
26313
|
+
updated_at?: string;
|
|
26314
|
+
width_cm: number;
|
|
26315
|
+
};
|
|
26316
|
+
Update: {
|
|
26317
|
+
created_at?: string;
|
|
26318
|
+
id?: string;
|
|
26319
|
+
length_cm?: number;
|
|
26320
|
+
name?: string;
|
|
26321
|
+
plants_per_crate?: number;
|
|
26322
|
+
updated_at?: string;
|
|
26323
|
+
width_cm?: number;
|
|
26324
|
+
};
|
|
26325
|
+
Relationships: [];
|
|
26326
|
+
};
|
|
25365
26327
|
customer_audit_log: {
|
|
25366
26328
|
Row: {
|
|
25367
26329
|
action: string;
|
|
@@ -29277,6 +30239,27 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
29277
30239
|
referencedColumns: ["id"];
|
|
29278
30240
|
}];
|
|
29279
30241
|
};
|
|
30242
|
+
floriday_vbn_required_characteristics: {
|
|
30243
|
+
Row: {
|
|
30244
|
+
required_codes: string[];
|
|
30245
|
+
updated_at: string;
|
|
30246
|
+
updated_by: string | null;
|
|
30247
|
+
vbn_code: string;
|
|
30248
|
+
};
|
|
30249
|
+
Insert: {
|
|
30250
|
+
required_codes?: string[];
|
|
30251
|
+
updated_at?: string;
|
|
30252
|
+
updated_by?: string | null;
|
|
30253
|
+
vbn_code: string;
|
|
30254
|
+
};
|
|
30255
|
+
Update: {
|
|
30256
|
+
required_codes?: string[];
|
|
30257
|
+
updated_at?: string;
|
|
30258
|
+
updated_by?: string | null;
|
|
30259
|
+
vbn_code?: string;
|
|
30260
|
+
};
|
|
30261
|
+
Relationships: [];
|
|
30262
|
+
};
|
|
29280
30263
|
floriday_warehouses_cache: {
|
|
29281
30264
|
Row: {
|
|
29282
30265
|
connection_id: string;
|
|
@@ -29979,6 +30962,69 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
29979
30962
|
};
|
|
29980
30963
|
Relationships: [];
|
|
29981
30964
|
};
|
|
30965
|
+
logistics_capacity_events: {
|
|
30966
|
+
Row: {
|
|
30967
|
+
available_carts: number;
|
|
30968
|
+
created_at: string;
|
|
30969
|
+
id: string;
|
|
30970
|
+
measures: import("../integrations/supabase/types").Json;
|
|
30971
|
+
note: string | null;
|
|
30972
|
+
outcome: string;
|
|
30973
|
+
required_carts: number;
|
|
30974
|
+
reserve_minutes: number;
|
|
30975
|
+
shortage_carts: number;
|
|
30976
|
+
status: string;
|
|
30977
|
+
user_id: string;
|
|
30978
|
+
};
|
|
30979
|
+
Insert: {
|
|
30980
|
+
available_carts?: number;
|
|
30981
|
+
created_at?: string;
|
|
30982
|
+
id?: string;
|
|
30983
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
30984
|
+
note?: string | null;
|
|
30985
|
+
outcome?: string;
|
|
30986
|
+
required_carts?: number;
|
|
30987
|
+
reserve_minutes?: number;
|
|
30988
|
+
shortage_carts?: number;
|
|
30989
|
+
status: string;
|
|
30990
|
+
user_id: string;
|
|
30991
|
+
};
|
|
30992
|
+
Update: {
|
|
30993
|
+
available_carts?: number;
|
|
30994
|
+
created_at?: string;
|
|
30995
|
+
id?: string;
|
|
30996
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
30997
|
+
note?: string | null;
|
|
30998
|
+
outcome?: string;
|
|
30999
|
+
required_carts?: number;
|
|
31000
|
+
reserve_minutes?: number;
|
|
31001
|
+
shortage_carts?: number;
|
|
31002
|
+
status?: string;
|
|
31003
|
+
user_id?: string;
|
|
31004
|
+
};
|
|
31005
|
+
Relationships: [];
|
|
31006
|
+
};
|
|
31007
|
+
logistics_capacity_settings: {
|
|
31008
|
+
Row: {
|
|
31009
|
+
created_at: string;
|
|
31010
|
+
settings: import("../integrations/supabase/types").Json;
|
|
31011
|
+
updated_at: string;
|
|
31012
|
+
user_id: string;
|
|
31013
|
+
};
|
|
31014
|
+
Insert: {
|
|
31015
|
+
created_at?: string;
|
|
31016
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
31017
|
+
updated_at?: string;
|
|
31018
|
+
user_id: string;
|
|
31019
|
+
};
|
|
31020
|
+
Update: {
|
|
31021
|
+
created_at?: string;
|
|
31022
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
31023
|
+
updated_at?: string;
|
|
31024
|
+
user_id?: string;
|
|
31025
|
+
};
|
|
31026
|
+
Relationships: [];
|
|
31027
|
+
};
|
|
29982
31028
|
logistics_decisions: {
|
|
29983
31029
|
Row: {
|
|
29984
31030
|
created_at: string;
|
|
@@ -31374,6 +32420,42 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31374
32420
|
};
|
|
31375
32421
|
Relationships: [];
|
|
31376
32422
|
};
|
|
32423
|
+
order_buffers: {
|
|
32424
|
+
Row: {
|
|
32425
|
+
buffer_key: string;
|
|
32426
|
+
created_at: string;
|
|
32427
|
+
customer_id: string | null;
|
|
32428
|
+
grouping_mode: string;
|
|
32429
|
+
id: string;
|
|
32430
|
+
pickup_date: string | null;
|
|
32431
|
+
pickup_location: string | null;
|
|
32432
|
+
plan_locked_at: string | null;
|
|
32433
|
+
updated_at: string;
|
|
32434
|
+
};
|
|
32435
|
+
Insert: {
|
|
32436
|
+
buffer_key: string;
|
|
32437
|
+
created_at?: string;
|
|
32438
|
+
customer_id?: string | null;
|
|
32439
|
+
grouping_mode: string;
|
|
32440
|
+
id?: string;
|
|
32441
|
+
pickup_date?: string | null;
|
|
32442
|
+
pickup_location?: string | null;
|
|
32443
|
+
plan_locked_at?: string | null;
|
|
32444
|
+
updated_at?: string;
|
|
32445
|
+
};
|
|
32446
|
+
Update: {
|
|
32447
|
+
buffer_key?: string;
|
|
32448
|
+
created_at?: string;
|
|
32449
|
+
customer_id?: string | null;
|
|
32450
|
+
grouping_mode?: string;
|
|
32451
|
+
id?: string;
|
|
32452
|
+
pickup_date?: string | null;
|
|
32453
|
+
pickup_location?: string | null;
|
|
32454
|
+
plan_locked_at?: string | null;
|
|
32455
|
+
updated_at?: string;
|
|
32456
|
+
};
|
|
32457
|
+
Relationships: [];
|
|
32458
|
+
};
|
|
31377
32459
|
order_cart_items: {
|
|
31378
32460
|
Row: {
|
|
31379
32461
|
cart_id: string;
|
|
@@ -31440,6 +32522,7 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31440
32522
|
order_carts: {
|
|
31441
32523
|
Row: {
|
|
31442
32524
|
algorithm_version: number;
|
|
32525
|
+
buffer_id: string | null;
|
|
31443
32526
|
cart_number: number;
|
|
31444
32527
|
created_at: string;
|
|
31445
32528
|
id: string;
|
|
@@ -31447,13 +32530,14 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31447
32530
|
is_complete: boolean;
|
|
31448
32531
|
notes: string | null;
|
|
31449
32532
|
occupancy_pct: number;
|
|
31450
|
-
order_id: string;
|
|
32533
|
+
order_id: string | null;
|
|
31451
32534
|
source: string;
|
|
31452
32535
|
total_layers_used: number;
|
|
31453
32536
|
updated_at: string;
|
|
31454
32537
|
};
|
|
31455
32538
|
Insert: {
|
|
31456
32539
|
algorithm_version?: number;
|
|
32540
|
+
buffer_id?: string | null;
|
|
31457
32541
|
cart_number: number;
|
|
31458
32542
|
created_at?: string;
|
|
31459
32543
|
id?: string;
|
|
@@ -31461,13 +32545,14 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31461
32545
|
is_complete?: boolean;
|
|
31462
32546
|
notes?: string | null;
|
|
31463
32547
|
occupancy_pct?: number;
|
|
31464
|
-
order_id
|
|
32548
|
+
order_id?: string | null;
|
|
31465
32549
|
source?: string;
|
|
31466
32550
|
total_layers_used?: number;
|
|
31467
32551
|
updated_at?: string;
|
|
31468
32552
|
};
|
|
31469
32553
|
Update: {
|
|
31470
32554
|
algorithm_version?: number;
|
|
32555
|
+
buffer_id?: string | null;
|
|
31471
32556
|
cart_number?: number;
|
|
31472
32557
|
created_at?: string;
|
|
31473
32558
|
id?: string;
|
|
@@ -31475,12 +32560,18 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31475
32560
|
is_complete?: boolean;
|
|
31476
32561
|
notes?: string | null;
|
|
31477
32562
|
occupancy_pct?: number;
|
|
31478
|
-
order_id?: string;
|
|
32563
|
+
order_id?: string | null;
|
|
31479
32564
|
source?: string;
|
|
31480
32565
|
total_layers_used?: number;
|
|
31481
32566
|
updated_at?: string;
|
|
31482
32567
|
};
|
|
31483
32568
|
Relationships: [{
|
|
32569
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
32570
|
+
columns: ["buffer_id"];
|
|
32571
|
+
isOneToOne: false;
|
|
32572
|
+
referencedRelation: "order_buffers";
|
|
32573
|
+
referencedColumns: ["id"];
|
|
32574
|
+
}, {
|
|
31484
32575
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
31485
32576
|
columns: ["order_id"];
|
|
31486
32577
|
isOneToOne: false;
|
|
@@ -31718,12 +32809,14 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31718
32809
|
};
|
|
31719
32810
|
orders: {
|
|
31720
32811
|
Row: {
|
|
32812
|
+
buffer_id: string | null;
|
|
31721
32813
|
created_at: string;
|
|
31722
32814
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
31723
32815
|
customer_id: string | null;
|
|
31724
32816
|
customer_name: string;
|
|
31725
32817
|
deleted_at: string | null;
|
|
31726
32818
|
delivery_date: string | null;
|
|
32819
|
+
floriday_sales_order_id: string | null;
|
|
31727
32820
|
id: string;
|
|
31728
32821
|
is_reservation: boolean;
|
|
31729
32822
|
notes: string | null;
|
|
@@ -31737,12 +32830,14 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31737
32830
|
updated_at: string;
|
|
31738
32831
|
};
|
|
31739
32832
|
Insert: {
|
|
32833
|
+
buffer_id?: string | null;
|
|
31740
32834
|
created_at?: string;
|
|
31741
32835
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
31742
32836
|
customer_id?: string | null;
|
|
31743
32837
|
customer_name?: string;
|
|
31744
32838
|
deleted_at?: string | null;
|
|
31745
32839
|
delivery_date?: string | null;
|
|
32840
|
+
floriday_sales_order_id?: string | null;
|
|
31746
32841
|
id?: string;
|
|
31747
32842
|
is_reservation?: boolean;
|
|
31748
32843
|
notes?: string | null;
|
|
@@ -31756,12 +32851,14 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31756
32851
|
updated_at?: string;
|
|
31757
32852
|
};
|
|
31758
32853
|
Update: {
|
|
32854
|
+
buffer_id?: string | null;
|
|
31759
32855
|
created_at?: string;
|
|
31760
32856
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
31761
32857
|
customer_id?: string | null;
|
|
31762
32858
|
customer_name?: string;
|
|
31763
32859
|
deleted_at?: string | null;
|
|
31764
32860
|
delivery_date?: string | null;
|
|
32861
|
+
floriday_sales_order_id?: string | null;
|
|
31765
32862
|
id?: string;
|
|
31766
32863
|
is_reservation?: boolean;
|
|
31767
32864
|
notes?: string | null;
|
|
@@ -31775,6 +32872,12 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31775
32872
|
updated_at?: string;
|
|
31776
32873
|
};
|
|
31777
32874
|
Relationships: [{
|
|
32875
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
32876
|
+
columns: ["buffer_id"];
|
|
32877
|
+
isOneToOne: false;
|
|
32878
|
+
referencedRelation: "order_buffers";
|
|
32879
|
+
referencedColumns: ["id"];
|
|
32880
|
+
}, {
|
|
31778
32881
|
foreignKeyName: "orders_customer_id_fkey";
|
|
31779
32882
|
columns: ["customer_id"];
|
|
31780
32883
|
isOneToOne: false;
|
|
@@ -31912,6 +33015,7 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31912
33015
|
created_at: string;
|
|
31913
33016
|
id: string;
|
|
31914
33017
|
notes: string | null;
|
|
33018
|
+
packing_configuration_id: string | null;
|
|
31915
33019
|
parent_product_id: string | null;
|
|
31916
33020
|
parent_trade_item_floriday_id: string | null;
|
|
31917
33021
|
quantity: number;
|
|
@@ -31926,6 +33030,7 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31926
33030
|
created_at?: string;
|
|
31927
33031
|
id?: string;
|
|
31928
33032
|
notes?: string | null;
|
|
33033
|
+
packing_configuration_id?: string | null;
|
|
31929
33034
|
parent_product_id?: string | null;
|
|
31930
33035
|
parent_trade_item_floriday_id?: string | null;
|
|
31931
33036
|
quantity?: number;
|
|
@@ -31940,6 +33045,7 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
31940
33045
|
created_at?: string;
|
|
31941
33046
|
id?: string;
|
|
31942
33047
|
notes?: string | null;
|
|
33048
|
+
packing_configuration_id?: string | null;
|
|
31943
33049
|
parent_product_id?: string | null;
|
|
31944
33050
|
parent_trade_item_floriday_id?: string | null;
|
|
31945
33051
|
quantity?: number;
|
|
@@ -32141,11 +33247,13 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
32141
33247
|
created_at: string;
|
|
32142
33248
|
id: string;
|
|
32143
33249
|
is_package: boolean;
|
|
33250
|
+
label: string | null;
|
|
32144
33251
|
layers_per_load_carrier: number | null;
|
|
32145
33252
|
load_carrier: string | null;
|
|
32146
33253
|
package_id: string | null;
|
|
32147
33254
|
package_label: string | null;
|
|
32148
33255
|
packages_per_layer: number | null;
|
|
33256
|
+
packing_configuration_id: string;
|
|
32149
33257
|
product_id: string | null;
|
|
32150
33258
|
tenant_id: string;
|
|
32151
33259
|
trade_item_floriday_id: string | null;
|
|
@@ -32156,11 +33264,13 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
32156
33264
|
created_at?: string;
|
|
32157
33265
|
id?: string;
|
|
32158
33266
|
is_package?: boolean;
|
|
33267
|
+
label?: string | null;
|
|
32159
33268
|
layers_per_load_carrier?: number | null;
|
|
32160
33269
|
load_carrier?: string | null;
|
|
32161
33270
|
package_id?: string | null;
|
|
32162
33271
|
package_label?: string | null;
|
|
32163
33272
|
packages_per_layer?: number | null;
|
|
33273
|
+
packing_configuration_id?: string;
|
|
32164
33274
|
product_id?: string | null;
|
|
32165
33275
|
tenant_id: string;
|
|
32166
33276
|
trade_item_floriday_id?: string | null;
|
|
@@ -32171,11 +33281,13 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
32171
33281
|
created_at?: string;
|
|
32172
33282
|
id?: string;
|
|
32173
33283
|
is_package?: boolean;
|
|
33284
|
+
label?: string | null;
|
|
32174
33285
|
layers_per_load_carrier?: number | null;
|
|
32175
33286
|
load_carrier?: string | null;
|
|
32176
33287
|
package_id?: string | null;
|
|
32177
33288
|
package_label?: string | null;
|
|
32178
33289
|
packages_per_layer?: number | null;
|
|
33290
|
+
packing_configuration_id?: string;
|
|
32179
33291
|
product_id?: string | null;
|
|
32180
33292
|
tenant_id?: string;
|
|
32181
33293
|
trade_item_floriday_id?: string | null;
|
|
@@ -32256,6 +33368,8 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
32256
33368
|
trade_item_key: string | null;
|
|
32257
33369
|
unit: string;
|
|
32258
33370
|
updated_at: string;
|
|
33371
|
+
vat_code: string | null;
|
|
33372
|
+
vat_rate: number | null;
|
|
32259
33373
|
weight: string | null;
|
|
32260
33374
|
};
|
|
32261
33375
|
Insert: {
|
|
@@ -32284,6 +33398,8 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
32284
33398
|
trade_item_key?: string | null;
|
|
32285
33399
|
unit?: string;
|
|
32286
33400
|
updated_at?: string;
|
|
33401
|
+
vat_code?: string | null;
|
|
33402
|
+
vat_rate?: number | null;
|
|
32287
33403
|
weight?: string | null;
|
|
32288
33404
|
};
|
|
32289
33405
|
Update: {
|
|
@@ -32312,6 +33428,8 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
32312
33428
|
trade_item_key?: string | null;
|
|
32313
33429
|
unit?: string;
|
|
32314
33430
|
updated_at?: string;
|
|
33431
|
+
vat_code?: string | null;
|
|
33432
|
+
vat_rate?: number | null;
|
|
32315
33433
|
weight?: string | null;
|
|
32316
33434
|
};
|
|
32317
33435
|
Relationships: [];
|
|
@@ -35387,6 +36505,12 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
35387
36505
|
processed_items: number;
|
|
35388
36506
|
}[];
|
|
35389
36507
|
};
|
|
36508
|
+
calculate_layer_stock: {
|
|
36509
|
+
Args: {
|
|
36510
|
+
p_product_id: string;
|
|
36511
|
+
};
|
|
36512
|
+
Returns: number;
|
|
36513
|
+
};
|
|
35390
36514
|
call_exact_route: {
|
|
35391
36515
|
Args: {
|
|
35392
36516
|
path: string;
|
|
@@ -35756,6 +36880,12 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
35756
36880
|
};
|
|
35757
36881
|
Returns: string;
|
|
35758
36882
|
};
|
|
36883
|
+
get_inventory_stock_for_key: {
|
|
36884
|
+
Args: {
|
|
36885
|
+
p_key: string;
|
|
36886
|
+
};
|
|
36887
|
+
Returns: number;
|
|
36888
|
+
};
|
|
35759
36889
|
get_offer_by_link_code: {
|
|
35760
36890
|
Args: {
|
|
35761
36891
|
p_code: string;
|
|
@@ -35786,6 +36916,12 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
35786
36916
|
};
|
|
35787
36917
|
Returns: string;
|
|
35788
36918
|
};
|
|
36919
|
+
get_product_group_available_stock: {
|
|
36920
|
+
Args: {
|
|
36921
|
+
p_group_id: string;
|
|
36922
|
+
};
|
|
36923
|
+
Returns: number;
|
|
36924
|
+
};
|
|
35789
36925
|
get_room_busy_windows: {
|
|
35790
36926
|
Args: {
|
|
35791
36927
|
p_from: string;
|
|
@@ -36352,12 +37488,22 @@ export declare const clearFloricodeCredentials: import("@tanstack/start-client-c
|
|
|
36352
37488
|
};
|
|
36353
37489
|
Returns: string[];
|
|
36354
37490
|
};
|
|
37491
|
+
sync_all_layer_stocks: {
|
|
37492
|
+
Args: never;
|
|
37493
|
+
Returns: undefined;
|
|
37494
|
+
};
|
|
36355
37495
|
sync_cached_packing_from_product: {
|
|
36356
37496
|
Args: {
|
|
36357
37497
|
p_product_id: string;
|
|
36358
37498
|
};
|
|
36359
37499
|
Returns: undefined;
|
|
36360
37500
|
};
|
|
37501
|
+
sync_layer_stock: {
|
|
37502
|
+
Args: {
|
|
37503
|
+
p_product_id: string;
|
|
37504
|
+
};
|
|
37505
|
+
Returns: undefined;
|
|
37506
|
+
};
|
|
36361
37507
|
sync_order_cart_item_packing_from_product: {
|
|
36362
37508
|
Args: {
|
|
36363
37509
|
p_product_id: string;
|
|
@@ -37444,6 +38590,141 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
37444
38590
|
};
|
|
37445
38591
|
Relationships: [];
|
|
37446
38592
|
};
|
|
38593
|
+
cart_planning_pick_times: {
|
|
38594
|
+
Row: {
|
|
38595
|
+
created_at: string;
|
|
38596
|
+
id: string;
|
|
38597
|
+
pot_size: string;
|
|
38598
|
+
seconds_per_cart: number;
|
|
38599
|
+
updated_at: string;
|
|
38600
|
+
};
|
|
38601
|
+
Insert: {
|
|
38602
|
+
created_at?: string;
|
|
38603
|
+
id?: string;
|
|
38604
|
+
pot_size: string;
|
|
38605
|
+
seconds_per_cart: number;
|
|
38606
|
+
updated_at?: string;
|
|
38607
|
+
};
|
|
38608
|
+
Update: {
|
|
38609
|
+
created_at?: string;
|
|
38610
|
+
id?: string;
|
|
38611
|
+
pot_size?: string;
|
|
38612
|
+
seconds_per_cart?: number;
|
|
38613
|
+
updated_at?: string;
|
|
38614
|
+
};
|
|
38615
|
+
Relationships: [];
|
|
38616
|
+
};
|
|
38617
|
+
cart_planning_product_overrides: {
|
|
38618
|
+
Row: {
|
|
38619
|
+
created_at: string;
|
|
38620
|
+
id: string;
|
|
38621
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
38622
|
+
never_mix: boolean;
|
|
38623
|
+
notes: string | null;
|
|
38624
|
+
product_id: string;
|
|
38625
|
+
updated_at: string;
|
|
38626
|
+
};
|
|
38627
|
+
Insert: {
|
|
38628
|
+
created_at?: string;
|
|
38629
|
+
id?: string;
|
|
38630
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
38631
|
+
never_mix?: boolean;
|
|
38632
|
+
notes?: string | null;
|
|
38633
|
+
product_id: string;
|
|
38634
|
+
updated_at?: string;
|
|
38635
|
+
};
|
|
38636
|
+
Update: {
|
|
38637
|
+
created_at?: string;
|
|
38638
|
+
id?: string;
|
|
38639
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
38640
|
+
never_mix?: boolean;
|
|
38641
|
+
notes?: string | null;
|
|
38642
|
+
product_id?: string;
|
|
38643
|
+
updated_at?: string;
|
|
38644
|
+
};
|
|
38645
|
+
Relationships: [{
|
|
38646
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
38647
|
+
columns: ["product_id"];
|
|
38648
|
+
isOneToOne: true;
|
|
38649
|
+
referencedRelation: "products";
|
|
38650
|
+
referencedColumns: ["id"];
|
|
38651
|
+
}];
|
|
38652
|
+
};
|
|
38653
|
+
cart_planning_settings: {
|
|
38654
|
+
Row: {
|
|
38655
|
+
allow_editing_after_pickstation_send: boolean;
|
|
38656
|
+
buffer_grouping_mode: string;
|
|
38657
|
+
combine_floriday_orders: boolean;
|
|
38658
|
+
combine_floriday_orders_window: string;
|
|
38659
|
+
combine_orders_scope: string;
|
|
38660
|
+
default_workers: number;
|
|
38661
|
+
id: number;
|
|
38662
|
+
max_beladingen_per_layer: number;
|
|
38663
|
+
max_customers_per_cart: number;
|
|
38664
|
+
max_one_customer_per_layer: boolean;
|
|
38665
|
+
max_party_share_per_layer_pct: number;
|
|
38666
|
+
optimization_strategy: string;
|
|
38667
|
+
own_cart_from_layers: number;
|
|
38668
|
+
pick_time_mode: string;
|
|
38669
|
+
plants_per_day: number;
|
|
38670
|
+
plants_per_hour: number;
|
|
38671
|
+
require_same_carrier: boolean;
|
|
38672
|
+
require_same_crate_type: boolean;
|
|
38673
|
+
require_same_delivery_date: boolean;
|
|
38674
|
+
require_same_delivery_location: boolean;
|
|
38675
|
+
updated_at: string;
|
|
38676
|
+
updated_by: string | null;
|
|
38677
|
+
};
|
|
38678
|
+
Insert: {
|
|
38679
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
38680
|
+
buffer_grouping_mode?: string;
|
|
38681
|
+
combine_floriday_orders?: boolean;
|
|
38682
|
+
combine_floriday_orders_window?: string;
|
|
38683
|
+
combine_orders_scope?: string;
|
|
38684
|
+
default_workers?: number;
|
|
38685
|
+
id?: number;
|
|
38686
|
+
max_beladingen_per_layer?: number;
|
|
38687
|
+
max_customers_per_cart?: number;
|
|
38688
|
+
max_one_customer_per_layer?: boolean;
|
|
38689
|
+
max_party_share_per_layer_pct?: number;
|
|
38690
|
+
optimization_strategy?: string;
|
|
38691
|
+
own_cart_from_layers?: number;
|
|
38692
|
+
pick_time_mode?: string;
|
|
38693
|
+
plants_per_day?: number;
|
|
38694
|
+
plants_per_hour?: number;
|
|
38695
|
+
require_same_carrier?: boolean;
|
|
38696
|
+
require_same_crate_type?: boolean;
|
|
38697
|
+
require_same_delivery_date?: boolean;
|
|
38698
|
+
require_same_delivery_location?: boolean;
|
|
38699
|
+
updated_at?: string;
|
|
38700
|
+
updated_by?: string | null;
|
|
38701
|
+
};
|
|
38702
|
+
Update: {
|
|
38703
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
38704
|
+
buffer_grouping_mode?: string;
|
|
38705
|
+
combine_floriday_orders?: boolean;
|
|
38706
|
+
combine_floriday_orders_window?: string;
|
|
38707
|
+
combine_orders_scope?: string;
|
|
38708
|
+
default_workers?: number;
|
|
38709
|
+
id?: number;
|
|
38710
|
+
max_beladingen_per_layer?: number;
|
|
38711
|
+
max_customers_per_cart?: number;
|
|
38712
|
+
max_one_customer_per_layer?: boolean;
|
|
38713
|
+
max_party_share_per_layer_pct?: number;
|
|
38714
|
+
optimization_strategy?: string;
|
|
38715
|
+
own_cart_from_layers?: number;
|
|
38716
|
+
pick_time_mode?: string;
|
|
38717
|
+
plants_per_day?: number;
|
|
38718
|
+
plants_per_hour?: number;
|
|
38719
|
+
require_same_carrier?: boolean;
|
|
38720
|
+
require_same_crate_type?: boolean;
|
|
38721
|
+
require_same_delivery_date?: boolean;
|
|
38722
|
+
require_same_delivery_location?: boolean;
|
|
38723
|
+
updated_at?: string;
|
|
38724
|
+
updated_by?: string | null;
|
|
38725
|
+
};
|
|
38726
|
+
Relationships: [];
|
|
38727
|
+
};
|
|
37447
38728
|
cart_replan_queue: {
|
|
37448
38729
|
Row: {
|
|
37449
38730
|
attempts: number;
|
|
@@ -37474,6 +38755,39 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
37474
38755
|
referencedColumns: ["id"];
|
|
37475
38756
|
}];
|
|
37476
38757
|
};
|
|
38758
|
+
cart_types: {
|
|
38759
|
+
Row: {
|
|
38760
|
+
created_at: string;
|
|
38761
|
+
id: string;
|
|
38762
|
+
is_default: boolean;
|
|
38763
|
+
layer_length_cm: number;
|
|
38764
|
+
layer_width_cm: number;
|
|
38765
|
+
layers_per_cart: number;
|
|
38766
|
+
name: string;
|
|
38767
|
+
updated_at: string;
|
|
38768
|
+
};
|
|
38769
|
+
Insert: {
|
|
38770
|
+
created_at?: string;
|
|
38771
|
+
id?: string;
|
|
38772
|
+
is_default?: boolean;
|
|
38773
|
+
layer_length_cm: number;
|
|
38774
|
+
layer_width_cm: number;
|
|
38775
|
+
layers_per_cart?: number;
|
|
38776
|
+
name: string;
|
|
38777
|
+
updated_at?: string;
|
|
38778
|
+
};
|
|
38779
|
+
Update: {
|
|
38780
|
+
created_at?: string;
|
|
38781
|
+
id?: string;
|
|
38782
|
+
is_default?: boolean;
|
|
38783
|
+
layer_length_cm?: number;
|
|
38784
|
+
layer_width_cm?: number;
|
|
38785
|
+
layers_per_cart?: number;
|
|
38786
|
+
name?: string;
|
|
38787
|
+
updated_at?: string;
|
|
38788
|
+
};
|
|
38789
|
+
Relationships: [];
|
|
38790
|
+
};
|
|
37477
38791
|
collections: {
|
|
37478
38792
|
Row: {
|
|
37479
38793
|
created_at: string;
|
|
@@ -37498,6 +38812,36 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
37498
38812
|
};
|
|
37499
38813
|
Relationships: [];
|
|
37500
38814
|
};
|
|
38815
|
+
crate_types: {
|
|
38816
|
+
Row: {
|
|
38817
|
+
created_at: string;
|
|
38818
|
+
id: string;
|
|
38819
|
+
length_cm: number;
|
|
38820
|
+
name: string;
|
|
38821
|
+
plants_per_crate: number;
|
|
38822
|
+
updated_at: string;
|
|
38823
|
+
width_cm: number;
|
|
38824
|
+
};
|
|
38825
|
+
Insert: {
|
|
38826
|
+
created_at?: string;
|
|
38827
|
+
id?: string;
|
|
38828
|
+
length_cm: number;
|
|
38829
|
+
name: string;
|
|
38830
|
+
plants_per_crate?: number;
|
|
38831
|
+
updated_at?: string;
|
|
38832
|
+
width_cm: number;
|
|
38833
|
+
};
|
|
38834
|
+
Update: {
|
|
38835
|
+
created_at?: string;
|
|
38836
|
+
id?: string;
|
|
38837
|
+
length_cm?: number;
|
|
38838
|
+
name?: string;
|
|
38839
|
+
plants_per_crate?: number;
|
|
38840
|
+
updated_at?: string;
|
|
38841
|
+
width_cm?: number;
|
|
38842
|
+
};
|
|
38843
|
+
Relationships: [];
|
|
38844
|
+
};
|
|
37501
38845
|
customer_audit_log: {
|
|
37502
38846
|
Row: {
|
|
37503
38847
|
action: string;
|
|
@@ -41413,6 +42757,27 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
41413
42757
|
referencedColumns: ["id"];
|
|
41414
42758
|
}];
|
|
41415
42759
|
};
|
|
42760
|
+
floriday_vbn_required_characteristics: {
|
|
42761
|
+
Row: {
|
|
42762
|
+
required_codes: string[];
|
|
42763
|
+
updated_at: string;
|
|
42764
|
+
updated_by: string | null;
|
|
42765
|
+
vbn_code: string;
|
|
42766
|
+
};
|
|
42767
|
+
Insert: {
|
|
42768
|
+
required_codes?: string[];
|
|
42769
|
+
updated_at?: string;
|
|
42770
|
+
updated_by?: string | null;
|
|
42771
|
+
vbn_code: string;
|
|
42772
|
+
};
|
|
42773
|
+
Update: {
|
|
42774
|
+
required_codes?: string[];
|
|
42775
|
+
updated_at?: string;
|
|
42776
|
+
updated_by?: string | null;
|
|
42777
|
+
vbn_code?: string;
|
|
42778
|
+
};
|
|
42779
|
+
Relationships: [];
|
|
42780
|
+
};
|
|
41416
42781
|
floriday_warehouses_cache: {
|
|
41417
42782
|
Row: {
|
|
41418
42783
|
connection_id: string;
|
|
@@ -42115,6 +43480,69 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
42115
43480
|
};
|
|
42116
43481
|
Relationships: [];
|
|
42117
43482
|
};
|
|
43483
|
+
logistics_capacity_events: {
|
|
43484
|
+
Row: {
|
|
43485
|
+
available_carts: number;
|
|
43486
|
+
created_at: string;
|
|
43487
|
+
id: string;
|
|
43488
|
+
measures: import("../integrations/supabase/types").Json;
|
|
43489
|
+
note: string | null;
|
|
43490
|
+
outcome: string;
|
|
43491
|
+
required_carts: number;
|
|
43492
|
+
reserve_minutes: number;
|
|
43493
|
+
shortage_carts: number;
|
|
43494
|
+
status: string;
|
|
43495
|
+
user_id: string;
|
|
43496
|
+
};
|
|
43497
|
+
Insert: {
|
|
43498
|
+
available_carts?: number;
|
|
43499
|
+
created_at?: string;
|
|
43500
|
+
id?: string;
|
|
43501
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
43502
|
+
note?: string | null;
|
|
43503
|
+
outcome?: string;
|
|
43504
|
+
required_carts?: number;
|
|
43505
|
+
reserve_minutes?: number;
|
|
43506
|
+
shortage_carts?: number;
|
|
43507
|
+
status: string;
|
|
43508
|
+
user_id: string;
|
|
43509
|
+
};
|
|
43510
|
+
Update: {
|
|
43511
|
+
available_carts?: number;
|
|
43512
|
+
created_at?: string;
|
|
43513
|
+
id?: string;
|
|
43514
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
43515
|
+
note?: string | null;
|
|
43516
|
+
outcome?: string;
|
|
43517
|
+
required_carts?: number;
|
|
43518
|
+
reserve_minutes?: number;
|
|
43519
|
+
shortage_carts?: number;
|
|
43520
|
+
status?: string;
|
|
43521
|
+
user_id?: string;
|
|
43522
|
+
};
|
|
43523
|
+
Relationships: [];
|
|
43524
|
+
};
|
|
43525
|
+
logistics_capacity_settings: {
|
|
43526
|
+
Row: {
|
|
43527
|
+
created_at: string;
|
|
43528
|
+
settings: import("../integrations/supabase/types").Json;
|
|
43529
|
+
updated_at: string;
|
|
43530
|
+
user_id: string;
|
|
43531
|
+
};
|
|
43532
|
+
Insert: {
|
|
43533
|
+
created_at?: string;
|
|
43534
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
43535
|
+
updated_at?: string;
|
|
43536
|
+
user_id: string;
|
|
43537
|
+
};
|
|
43538
|
+
Update: {
|
|
43539
|
+
created_at?: string;
|
|
43540
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
43541
|
+
updated_at?: string;
|
|
43542
|
+
user_id?: string;
|
|
43543
|
+
};
|
|
43544
|
+
Relationships: [];
|
|
43545
|
+
};
|
|
42118
43546
|
logistics_decisions: {
|
|
42119
43547
|
Row: {
|
|
42120
43548
|
created_at: string;
|
|
@@ -43510,6 +44938,42 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
43510
44938
|
};
|
|
43511
44939
|
Relationships: [];
|
|
43512
44940
|
};
|
|
44941
|
+
order_buffers: {
|
|
44942
|
+
Row: {
|
|
44943
|
+
buffer_key: string;
|
|
44944
|
+
created_at: string;
|
|
44945
|
+
customer_id: string | null;
|
|
44946
|
+
grouping_mode: string;
|
|
44947
|
+
id: string;
|
|
44948
|
+
pickup_date: string | null;
|
|
44949
|
+
pickup_location: string | null;
|
|
44950
|
+
plan_locked_at: string | null;
|
|
44951
|
+
updated_at: string;
|
|
44952
|
+
};
|
|
44953
|
+
Insert: {
|
|
44954
|
+
buffer_key: string;
|
|
44955
|
+
created_at?: string;
|
|
44956
|
+
customer_id?: string | null;
|
|
44957
|
+
grouping_mode: string;
|
|
44958
|
+
id?: string;
|
|
44959
|
+
pickup_date?: string | null;
|
|
44960
|
+
pickup_location?: string | null;
|
|
44961
|
+
plan_locked_at?: string | null;
|
|
44962
|
+
updated_at?: string;
|
|
44963
|
+
};
|
|
44964
|
+
Update: {
|
|
44965
|
+
buffer_key?: string;
|
|
44966
|
+
created_at?: string;
|
|
44967
|
+
customer_id?: string | null;
|
|
44968
|
+
grouping_mode?: string;
|
|
44969
|
+
id?: string;
|
|
44970
|
+
pickup_date?: string | null;
|
|
44971
|
+
pickup_location?: string | null;
|
|
44972
|
+
plan_locked_at?: string | null;
|
|
44973
|
+
updated_at?: string;
|
|
44974
|
+
};
|
|
44975
|
+
Relationships: [];
|
|
44976
|
+
};
|
|
43513
44977
|
order_cart_items: {
|
|
43514
44978
|
Row: {
|
|
43515
44979
|
cart_id: string;
|
|
@@ -43576,6 +45040,7 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
43576
45040
|
order_carts: {
|
|
43577
45041
|
Row: {
|
|
43578
45042
|
algorithm_version: number;
|
|
45043
|
+
buffer_id: string | null;
|
|
43579
45044
|
cart_number: number;
|
|
43580
45045
|
created_at: string;
|
|
43581
45046
|
id: string;
|
|
@@ -43583,13 +45048,14 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
43583
45048
|
is_complete: boolean;
|
|
43584
45049
|
notes: string | null;
|
|
43585
45050
|
occupancy_pct: number;
|
|
43586
|
-
order_id: string;
|
|
45051
|
+
order_id: string | null;
|
|
43587
45052
|
source: string;
|
|
43588
45053
|
total_layers_used: number;
|
|
43589
45054
|
updated_at: string;
|
|
43590
45055
|
};
|
|
43591
45056
|
Insert: {
|
|
43592
45057
|
algorithm_version?: number;
|
|
45058
|
+
buffer_id?: string | null;
|
|
43593
45059
|
cart_number: number;
|
|
43594
45060
|
created_at?: string;
|
|
43595
45061
|
id?: string;
|
|
@@ -43597,13 +45063,14 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
43597
45063
|
is_complete?: boolean;
|
|
43598
45064
|
notes?: string | null;
|
|
43599
45065
|
occupancy_pct?: number;
|
|
43600
|
-
order_id
|
|
45066
|
+
order_id?: string | null;
|
|
43601
45067
|
source?: string;
|
|
43602
45068
|
total_layers_used?: number;
|
|
43603
45069
|
updated_at?: string;
|
|
43604
45070
|
};
|
|
43605
45071
|
Update: {
|
|
43606
45072
|
algorithm_version?: number;
|
|
45073
|
+
buffer_id?: string | null;
|
|
43607
45074
|
cart_number?: number;
|
|
43608
45075
|
created_at?: string;
|
|
43609
45076
|
id?: string;
|
|
@@ -43611,12 +45078,18 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
43611
45078
|
is_complete?: boolean;
|
|
43612
45079
|
notes?: string | null;
|
|
43613
45080
|
occupancy_pct?: number;
|
|
43614
|
-
order_id?: string;
|
|
45081
|
+
order_id?: string | null;
|
|
43615
45082
|
source?: string;
|
|
43616
45083
|
total_layers_used?: number;
|
|
43617
45084
|
updated_at?: string;
|
|
43618
45085
|
};
|
|
43619
45086
|
Relationships: [{
|
|
45087
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
45088
|
+
columns: ["buffer_id"];
|
|
45089
|
+
isOneToOne: false;
|
|
45090
|
+
referencedRelation: "order_buffers";
|
|
45091
|
+
referencedColumns: ["id"];
|
|
45092
|
+
}, {
|
|
43620
45093
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
43621
45094
|
columns: ["order_id"];
|
|
43622
45095
|
isOneToOne: false;
|
|
@@ -43854,12 +45327,14 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
43854
45327
|
};
|
|
43855
45328
|
orders: {
|
|
43856
45329
|
Row: {
|
|
45330
|
+
buffer_id: string | null;
|
|
43857
45331
|
created_at: string;
|
|
43858
45332
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
43859
45333
|
customer_id: string | null;
|
|
43860
45334
|
customer_name: string;
|
|
43861
45335
|
deleted_at: string | null;
|
|
43862
45336
|
delivery_date: string | null;
|
|
45337
|
+
floriday_sales_order_id: string | null;
|
|
43863
45338
|
id: string;
|
|
43864
45339
|
is_reservation: boolean;
|
|
43865
45340
|
notes: string | null;
|
|
@@ -43873,12 +45348,14 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
43873
45348
|
updated_at: string;
|
|
43874
45349
|
};
|
|
43875
45350
|
Insert: {
|
|
45351
|
+
buffer_id?: string | null;
|
|
43876
45352
|
created_at?: string;
|
|
43877
45353
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
43878
45354
|
customer_id?: string | null;
|
|
43879
45355
|
customer_name?: string;
|
|
43880
45356
|
deleted_at?: string | null;
|
|
43881
45357
|
delivery_date?: string | null;
|
|
45358
|
+
floriday_sales_order_id?: string | null;
|
|
43882
45359
|
id?: string;
|
|
43883
45360
|
is_reservation?: boolean;
|
|
43884
45361
|
notes?: string | null;
|
|
@@ -43892,12 +45369,14 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
43892
45369
|
updated_at?: string;
|
|
43893
45370
|
};
|
|
43894
45371
|
Update: {
|
|
45372
|
+
buffer_id?: string | null;
|
|
43895
45373
|
created_at?: string;
|
|
43896
45374
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
43897
45375
|
customer_id?: string | null;
|
|
43898
45376
|
customer_name?: string;
|
|
43899
45377
|
deleted_at?: string | null;
|
|
43900
45378
|
delivery_date?: string | null;
|
|
45379
|
+
floriday_sales_order_id?: string | null;
|
|
43901
45380
|
id?: string;
|
|
43902
45381
|
is_reservation?: boolean;
|
|
43903
45382
|
notes?: string | null;
|
|
@@ -43911,6 +45390,12 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
43911
45390
|
updated_at?: string;
|
|
43912
45391
|
};
|
|
43913
45392
|
Relationships: [{
|
|
45393
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
45394
|
+
columns: ["buffer_id"];
|
|
45395
|
+
isOneToOne: false;
|
|
45396
|
+
referencedRelation: "order_buffers";
|
|
45397
|
+
referencedColumns: ["id"];
|
|
45398
|
+
}, {
|
|
43914
45399
|
foreignKeyName: "orders_customer_id_fkey";
|
|
43915
45400
|
columns: ["customer_id"];
|
|
43916
45401
|
isOneToOne: false;
|
|
@@ -44048,6 +45533,7 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
44048
45533
|
created_at: string;
|
|
44049
45534
|
id: string;
|
|
44050
45535
|
notes: string | null;
|
|
45536
|
+
packing_configuration_id: string | null;
|
|
44051
45537
|
parent_product_id: string | null;
|
|
44052
45538
|
parent_trade_item_floriday_id: string | null;
|
|
44053
45539
|
quantity: number;
|
|
@@ -44062,6 +45548,7 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
44062
45548
|
created_at?: string;
|
|
44063
45549
|
id?: string;
|
|
44064
45550
|
notes?: string | null;
|
|
45551
|
+
packing_configuration_id?: string | null;
|
|
44065
45552
|
parent_product_id?: string | null;
|
|
44066
45553
|
parent_trade_item_floriday_id?: string | null;
|
|
44067
45554
|
quantity?: number;
|
|
@@ -44076,6 +45563,7 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
44076
45563
|
created_at?: string;
|
|
44077
45564
|
id?: string;
|
|
44078
45565
|
notes?: string | null;
|
|
45566
|
+
packing_configuration_id?: string | null;
|
|
44079
45567
|
parent_product_id?: string | null;
|
|
44080
45568
|
parent_trade_item_floriday_id?: string | null;
|
|
44081
45569
|
quantity?: number;
|
|
@@ -44277,11 +45765,13 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
44277
45765
|
created_at: string;
|
|
44278
45766
|
id: string;
|
|
44279
45767
|
is_package: boolean;
|
|
45768
|
+
label: string | null;
|
|
44280
45769
|
layers_per_load_carrier: number | null;
|
|
44281
45770
|
load_carrier: string | null;
|
|
44282
45771
|
package_id: string | null;
|
|
44283
45772
|
package_label: string | null;
|
|
44284
45773
|
packages_per_layer: number | null;
|
|
45774
|
+
packing_configuration_id: string;
|
|
44285
45775
|
product_id: string | null;
|
|
44286
45776
|
tenant_id: string;
|
|
44287
45777
|
trade_item_floriday_id: string | null;
|
|
@@ -44292,11 +45782,13 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
44292
45782
|
created_at?: string;
|
|
44293
45783
|
id?: string;
|
|
44294
45784
|
is_package?: boolean;
|
|
45785
|
+
label?: string | null;
|
|
44295
45786
|
layers_per_load_carrier?: number | null;
|
|
44296
45787
|
load_carrier?: string | null;
|
|
44297
45788
|
package_id?: string | null;
|
|
44298
45789
|
package_label?: string | null;
|
|
44299
45790
|
packages_per_layer?: number | null;
|
|
45791
|
+
packing_configuration_id?: string;
|
|
44300
45792
|
product_id?: string | null;
|
|
44301
45793
|
tenant_id: string;
|
|
44302
45794
|
trade_item_floriday_id?: string | null;
|
|
@@ -44307,11 +45799,13 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
44307
45799
|
created_at?: string;
|
|
44308
45800
|
id?: string;
|
|
44309
45801
|
is_package?: boolean;
|
|
45802
|
+
label?: string | null;
|
|
44310
45803
|
layers_per_load_carrier?: number | null;
|
|
44311
45804
|
load_carrier?: string | null;
|
|
44312
45805
|
package_id?: string | null;
|
|
44313
45806
|
package_label?: string | null;
|
|
44314
45807
|
packages_per_layer?: number | null;
|
|
45808
|
+
packing_configuration_id?: string;
|
|
44315
45809
|
product_id?: string | null;
|
|
44316
45810
|
tenant_id?: string;
|
|
44317
45811
|
trade_item_floriday_id?: string | null;
|
|
@@ -44392,6 +45886,8 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
44392
45886
|
trade_item_key: string | null;
|
|
44393
45887
|
unit: string;
|
|
44394
45888
|
updated_at: string;
|
|
45889
|
+
vat_code: string | null;
|
|
45890
|
+
vat_rate: number | null;
|
|
44395
45891
|
weight: string | null;
|
|
44396
45892
|
};
|
|
44397
45893
|
Insert: {
|
|
@@ -44420,6 +45916,8 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
44420
45916
|
trade_item_key?: string | null;
|
|
44421
45917
|
unit?: string;
|
|
44422
45918
|
updated_at?: string;
|
|
45919
|
+
vat_code?: string | null;
|
|
45920
|
+
vat_rate?: number | null;
|
|
44423
45921
|
weight?: string | null;
|
|
44424
45922
|
};
|
|
44425
45923
|
Update: {
|
|
@@ -44448,6 +45946,8 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
44448
45946
|
trade_item_key?: string | null;
|
|
44449
45947
|
unit?: string;
|
|
44450
45948
|
updated_at?: string;
|
|
45949
|
+
vat_code?: string | null;
|
|
45950
|
+
vat_rate?: number | null;
|
|
44451
45951
|
weight?: string | null;
|
|
44452
45952
|
};
|
|
44453
45953
|
Relationships: [];
|
|
@@ -47523,6 +49023,12 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
47523
49023
|
processed_items: number;
|
|
47524
49024
|
}[];
|
|
47525
49025
|
};
|
|
49026
|
+
calculate_layer_stock: {
|
|
49027
|
+
Args: {
|
|
49028
|
+
p_product_id: string;
|
|
49029
|
+
};
|
|
49030
|
+
Returns: number;
|
|
49031
|
+
};
|
|
47526
49032
|
call_exact_route: {
|
|
47527
49033
|
Args: {
|
|
47528
49034
|
path: string;
|
|
@@ -47892,6 +49398,12 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
47892
49398
|
};
|
|
47893
49399
|
Returns: string;
|
|
47894
49400
|
};
|
|
49401
|
+
get_inventory_stock_for_key: {
|
|
49402
|
+
Args: {
|
|
49403
|
+
p_key: string;
|
|
49404
|
+
};
|
|
49405
|
+
Returns: number;
|
|
49406
|
+
};
|
|
47895
49407
|
get_offer_by_link_code: {
|
|
47896
49408
|
Args: {
|
|
47897
49409
|
p_code: string;
|
|
@@ -47922,6 +49434,12 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
47922
49434
|
};
|
|
47923
49435
|
Returns: string;
|
|
47924
49436
|
};
|
|
49437
|
+
get_product_group_available_stock: {
|
|
49438
|
+
Args: {
|
|
49439
|
+
p_group_id: string;
|
|
49440
|
+
};
|
|
49441
|
+
Returns: number;
|
|
49442
|
+
};
|
|
47925
49443
|
get_room_busy_windows: {
|
|
47926
49444
|
Args: {
|
|
47927
49445
|
p_from: string;
|
|
@@ -48488,12 +50006,22 @@ export declare const testFloricodeConnection: import("@tanstack/start-client-cor
|
|
|
48488
50006
|
};
|
|
48489
50007
|
Returns: string[];
|
|
48490
50008
|
};
|
|
50009
|
+
sync_all_layer_stocks: {
|
|
50010
|
+
Args: never;
|
|
50011
|
+
Returns: undefined;
|
|
50012
|
+
};
|
|
48491
50013
|
sync_cached_packing_from_product: {
|
|
48492
50014
|
Args: {
|
|
48493
50015
|
p_product_id: string;
|
|
48494
50016
|
};
|
|
48495
50017
|
Returns: undefined;
|
|
48496
50018
|
};
|
|
50019
|
+
sync_layer_stock: {
|
|
50020
|
+
Args: {
|
|
50021
|
+
p_product_id: string;
|
|
50022
|
+
};
|
|
50023
|
+
Returns: undefined;
|
|
50024
|
+
};
|
|
48497
50025
|
sync_order_cart_item_packing_from_product: {
|
|
48498
50026
|
Args: {
|
|
48499
50027
|
p_product_id: string;
|
|
@@ -49591,6 +51119,141 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
49591
51119
|
};
|
|
49592
51120
|
Relationships: [];
|
|
49593
51121
|
};
|
|
51122
|
+
cart_planning_pick_times: {
|
|
51123
|
+
Row: {
|
|
51124
|
+
created_at: string;
|
|
51125
|
+
id: string;
|
|
51126
|
+
pot_size: string;
|
|
51127
|
+
seconds_per_cart: number;
|
|
51128
|
+
updated_at: string;
|
|
51129
|
+
};
|
|
51130
|
+
Insert: {
|
|
51131
|
+
created_at?: string;
|
|
51132
|
+
id?: string;
|
|
51133
|
+
pot_size: string;
|
|
51134
|
+
seconds_per_cart: number;
|
|
51135
|
+
updated_at?: string;
|
|
51136
|
+
};
|
|
51137
|
+
Update: {
|
|
51138
|
+
created_at?: string;
|
|
51139
|
+
id?: string;
|
|
51140
|
+
pot_size?: string;
|
|
51141
|
+
seconds_per_cart?: number;
|
|
51142
|
+
updated_at?: string;
|
|
51143
|
+
};
|
|
51144
|
+
Relationships: [];
|
|
51145
|
+
};
|
|
51146
|
+
cart_planning_product_overrides: {
|
|
51147
|
+
Row: {
|
|
51148
|
+
created_at: string;
|
|
51149
|
+
id: string;
|
|
51150
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
51151
|
+
never_mix: boolean;
|
|
51152
|
+
notes: string | null;
|
|
51153
|
+
product_id: string;
|
|
51154
|
+
updated_at: string;
|
|
51155
|
+
};
|
|
51156
|
+
Insert: {
|
|
51157
|
+
created_at?: string;
|
|
51158
|
+
id?: string;
|
|
51159
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
51160
|
+
never_mix?: boolean;
|
|
51161
|
+
notes?: string | null;
|
|
51162
|
+
product_id: string;
|
|
51163
|
+
updated_at?: string;
|
|
51164
|
+
};
|
|
51165
|
+
Update: {
|
|
51166
|
+
created_at?: string;
|
|
51167
|
+
id?: string;
|
|
51168
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
51169
|
+
never_mix?: boolean;
|
|
51170
|
+
notes?: string | null;
|
|
51171
|
+
product_id?: string;
|
|
51172
|
+
updated_at?: string;
|
|
51173
|
+
};
|
|
51174
|
+
Relationships: [{
|
|
51175
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
51176
|
+
columns: ["product_id"];
|
|
51177
|
+
isOneToOne: true;
|
|
51178
|
+
referencedRelation: "products";
|
|
51179
|
+
referencedColumns: ["id"];
|
|
51180
|
+
}];
|
|
51181
|
+
};
|
|
51182
|
+
cart_planning_settings: {
|
|
51183
|
+
Row: {
|
|
51184
|
+
allow_editing_after_pickstation_send: boolean;
|
|
51185
|
+
buffer_grouping_mode: string;
|
|
51186
|
+
combine_floriday_orders: boolean;
|
|
51187
|
+
combine_floriday_orders_window: string;
|
|
51188
|
+
combine_orders_scope: string;
|
|
51189
|
+
default_workers: number;
|
|
51190
|
+
id: number;
|
|
51191
|
+
max_beladingen_per_layer: number;
|
|
51192
|
+
max_customers_per_cart: number;
|
|
51193
|
+
max_one_customer_per_layer: boolean;
|
|
51194
|
+
max_party_share_per_layer_pct: number;
|
|
51195
|
+
optimization_strategy: string;
|
|
51196
|
+
own_cart_from_layers: number;
|
|
51197
|
+
pick_time_mode: string;
|
|
51198
|
+
plants_per_day: number;
|
|
51199
|
+
plants_per_hour: number;
|
|
51200
|
+
require_same_carrier: boolean;
|
|
51201
|
+
require_same_crate_type: boolean;
|
|
51202
|
+
require_same_delivery_date: boolean;
|
|
51203
|
+
require_same_delivery_location: boolean;
|
|
51204
|
+
updated_at: string;
|
|
51205
|
+
updated_by: string | null;
|
|
51206
|
+
};
|
|
51207
|
+
Insert: {
|
|
51208
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
51209
|
+
buffer_grouping_mode?: string;
|
|
51210
|
+
combine_floriday_orders?: boolean;
|
|
51211
|
+
combine_floriday_orders_window?: string;
|
|
51212
|
+
combine_orders_scope?: string;
|
|
51213
|
+
default_workers?: number;
|
|
51214
|
+
id?: number;
|
|
51215
|
+
max_beladingen_per_layer?: number;
|
|
51216
|
+
max_customers_per_cart?: number;
|
|
51217
|
+
max_one_customer_per_layer?: boolean;
|
|
51218
|
+
max_party_share_per_layer_pct?: number;
|
|
51219
|
+
optimization_strategy?: string;
|
|
51220
|
+
own_cart_from_layers?: number;
|
|
51221
|
+
pick_time_mode?: string;
|
|
51222
|
+
plants_per_day?: number;
|
|
51223
|
+
plants_per_hour?: number;
|
|
51224
|
+
require_same_carrier?: boolean;
|
|
51225
|
+
require_same_crate_type?: boolean;
|
|
51226
|
+
require_same_delivery_date?: boolean;
|
|
51227
|
+
require_same_delivery_location?: boolean;
|
|
51228
|
+
updated_at?: string;
|
|
51229
|
+
updated_by?: string | null;
|
|
51230
|
+
};
|
|
51231
|
+
Update: {
|
|
51232
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
51233
|
+
buffer_grouping_mode?: string;
|
|
51234
|
+
combine_floriday_orders?: boolean;
|
|
51235
|
+
combine_floriday_orders_window?: string;
|
|
51236
|
+
combine_orders_scope?: string;
|
|
51237
|
+
default_workers?: number;
|
|
51238
|
+
id?: number;
|
|
51239
|
+
max_beladingen_per_layer?: number;
|
|
51240
|
+
max_customers_per_cart?: number;
|
|
51241
|
+
max_one_customer_per_layer?: boolean;
|
|
51242
|
+
max_party_share_per_layer_pct?: number;
|
|
51243
|
+
optimization_strategy?: string;
|
|
51244
|
+
own_cart_from_layers?: number;
|
|
51245
|
+
pick_time_mode?: string;
|
|
51246
|
+
plants_per_day?: number;
|
|
51247
|
+
plants_per_hour?: number;
|
|
51248
|
+
require_same_carrier?: boolean;
|
|
51249
|
+
require_same_crate_type?: boolean;
|
|
51250
|
+
require_same_delivery_date?: boolean;
|
|
51251
|
+
require_same_delivery_location?: boolean;
|
|
51252
|
+
updated_at?: string;
|
|
51253
|
+
updated_by?: string | null;
|
|
51254
|
+
};
|
|
51255
|
+
Relationships: [];
|
|
51256
|
+
};
|
|
49594
51257
|
cart_replan_queue: {
|
|
49595
51258
|
Row: {
|
|
49596
51259
|
attempts: number;
|
|
@@ -49621,6 +51284,39 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
49621
51284
|
referencedColumns: ["id"];
|
|
49622
51285
|
}];
|
|
49623
51286
|
};
|
|
51287
|
+
cart_types: {
|
|
51288
|
+
Row: {
|
|
51289
|
+
created_at: string;
|
|
51290
|
+
id: string;
|
|
51291
|
+
is_default: boolean;
|
|
51292
|
+
layer_length_cm: number;
|
|
51293
|
+
layer_width_cm: number;
|
|
51294
|
+
layers_per_cart: number;
|
|
51295
|
+
name: string;
|
|
51296
|
+
updated_at: string;
|
|
51297
|
+
};
|
|
51298
|
+
Insert: {
|
|
51299
|
+
created_at?: string;
|
|
51300
|
+
id?: string;
|
|
51301
|
+
is_default?: boolean;
|
|
51302
|
+
layer_length_cm: number;
|
|
51303
|
+
layer_width_cm: number;
|
|
51304
|
+
layers_per_cart?: number;
|
|
51305
|
+
name: string;
|
|
51306
|
+
updated_at?: string;
|
|
51307
|
+
};
|
|
51308
|
+
Update: {
|
|
51309
|
+
created_at?: string;
|
|
51310
|
+
id?: string;
|
|
51311
|
+
is_default?: boolean;
|
|
51312
|
+
layer_length_cm?: number;
|
|
51313
|
+
layer_width_cm?: number;
|
|
51314
|
+
layers_per_cart?: number;
|
|
51315
|
+
name?: string;
|
|
51316
|
+
updated_at?: string;
|
|
51317
|
+
};
|
|
51318
|
+
Relationships: [];
|
|
51319
|
+
};
|
|
49624
51320
|
collections: {
|
|
49625
51321
|
Row: {
|
|
49626
51322
|
created_at: string;
|
|
@@ -49645,6 +51341,36 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
49645
51341
|
};
|
|
49646
51342
|
Relationships: [];
|
|
49647
51343
|
};
|
|
51344
|
+
crate_types: {
|
|
51345
|
+
Row: {
|
|
51346
|
+
created_at: string;
|
|
51347
|
+
id: string;
|
|
51348
|
+
length_cm: number;
|
|
51349
|
+
name: string;
|
|
51350
|
+
plants_per_crate: number;
|
|
51351
|
+
updated_at: string;
|
|
51352
|
+
width_cm: number;
|
|
51353
|
+
};
|
|
51354
|
+
Insert: {
|
|
51355
|
+
created_at?: string;
|
|
51356
|
+
id?: string;
|
|
51357
|
+
length_cm: number;
|
|
51358
|
+
name: string;
|
|
51359
|
+
plants_per_crate?: number;
|
|
51360
|
+
updated_at?: string;
|
|
51361
|
+
width_cm: number;
|
|
51362
|
+
};
|
|
51363
|
+
Update: {
|
|
51364
|
+
created_at?: string;
|
|
51365
|
+
id?: string;
|
|
51366
|
+
length_cm?: number;
|
|
51367
|
+
name?: string;
|
|
51368
|
+
plants_per_crate?: number;
|
|
51369
|
+
updated_at?: string;
|
|
51370
|
+
width_cm?: number;
|
|
51371
|
+
};
|
|
51372
|
+
Relationships: [];
|
|
51373
|
+
};
|
|
49648
51374
|
customer_audit_log: {
|
|
49649
51375
|
Row: {
|
|
49650
51376
|
action: string;
|
|
@@ -53560,6 +55286,27 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
53560
55286
|
referencedColumns: ["id"];
|
|
53561
55287
|
}];
|
|
53562
55288
|
};
|
|
55289
|
+
floriday_vbn_required_characteristics: {
|
|
55290
|
+
Row: {
|
|
55291
|
+
required_codes: string[];
|
|
55292
|
+
updated_at: string;
|
|
55293
|
+
updated_by: string | null;
|
|
55294
|
+
vbn_code: string;
|
|
55295
|
+
};
|
|
55296
|
+
Insert: {
|
|
55297
|
+
required_codes?: string[];
|
|
55298
|
+
updated_at?: string;
|
|
55299
|
+
updated_by?: string | null;
|
|
55300
|
+
vbn_code: string;
|
|
55301
|
+
};
|
|
55302
|
+
Update: {
|
|
55303
|
+
required_codes?: string[];
|
|
55304
|
+
updated_at?: string;
|
|
55305
|
+
updated_by?: string | null;
|
|
55306
|
+
vbn_code?: string;
|
|
55307
|
+
};
|
|
55308
|
+
Relationships: [];
|
|
55309
|
+
};
|
|
53563
55310
|
floriday_warehouses_cache: {
|
|
53564
55311
|
Row: {
|
|
53565
55312
|
connection_id: string;
|
|
@@ -54262,6 +56009,69 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
54262
56009
|
};
|
|
54263
56010
|
Relationships: [];
|
|
54264
56011
|
};
|
|
56012
|
+
logistics_capacity_events: {
|
|
56013
|
+
Row: {
|
|
56014
|
+
available_carts: number;
|
|
56015
|
+
created_at: string;
|
|
56016
|
+
id: string;
|
|
56017
|
+
measures: import("../integrations/supabase/types").Json;
|
|
56018
|
+
note: string | null;
|
|
56019
|
+
outcome: string;
|
|
56020
|
+
required_carts: number;
|
|
56021
|
+
reserve_minutes: number;
|
|
56022
|
+
shortage_carts: number;
|
|
56023
|
+
status: string;
|
|
56024
|
+
user_id: string;
|
|
56025
|
+
};
|
|
56026
|
+
Insert: {
|
|
56027
|
+
available_carts?: number;
|
|
56028
|
+
created_at?: string;
|
|
56029
|
+
id?: string;
|
|
56030
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
56031
|
+
note?: string | null;
|
|
56032
|
+
outcome?: string;
|
|
56033
|
+
required_carts?: number;
|
|
56034
|
+
reserve_minutes?: number;
|
|
56035
|
+
shortage_carts?: number;
|
|
56036
|
+
status: string;
|
|
56037
|
+
user_id: string;
|
|
56038
|
+
};
|
|
56039
|
+
Update: {
|
|
56040
|
+
available_carts?: number;
|
|
56041
|
+
created_at?: string;
|
|
56042
|
+
id?: string;
|
|
56043
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
56044
|
+
note?: string | null;
|
|
56045
|
+
outcome?: string;
|
|
56046
|
+
required_carts?: number;
|
|
56047
|
+
reserve_minutes?: number;
|
|
56048
|
+
shortage_carts?: number;
|
|
56049
|
+
status?: string;
|
|
56050
|
+
user_id?: string;
|
|
56051
|
+
};
|
|
56052
|
+
Relationships: [];
|
|
56053
|
+
};
|
|
56054
|
+
logistics_capacity_settings: {
|
|
56055
|
+
Row: {
|
|
56056
|
+
created_at: string;
|
|
56057
|
+
settings: import("../integrations/supabase/types").Json;
|
|
56058
|
+
updated_at: string;
|
|
56059
|
+
user_id: string;
|
|
56060
|
+
};
|
|
56061
|
+
Insert: {
|
|
56062
|
+
created_at?: string;
|
|
56063
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
56064
|
+
updated_at?: string;
|
|
56065
|
+
user_id: string;
|
|
56066
|
+
};
|
|
56067
|
+
Update: {
|
|
56068
|
+
created_at?: string;
|
|
56069
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
56070
|
+
updated_at?: string;
|
|
56071
|
+
user_id?: string;
|
|
56072
|
+
};
|
|
56073
|
+
Relationships: [];
|
|
56074
|
+
};
|
|
54265
56075
|
logistics_decisions: {
|
|
54266
56076
|
Row: {
|
|
54267
56077
|
created_at: string;
|
|
@@ -55657,6 +57467,42 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
55657
57467
|
};
|
|
55658
57468
|
Relationships: [];
|
|
55659
57469
|
};
|
|
57470
|
+
order_buffers: {
|
|
57471
|
+
Row: {
|
|
57472
|
+
buffer_key: string;
|
|
57473
|
+
created_at: string;
|
|
57474
|
+
customer_id: string | null;
|
|
57475
|
+
grouping_mode: string;
|
|
57476
|
+
id: string;
|
|
57477
|
+
pickup_date: string | null;
|
|
57478
|
+
pickup_location: string | null;
|
|
57479
|
+
plan_locked_at: string | null;
|
|
57480
|
+
updated_at: string;
|
|
57481
|
+
};
|
|
57482
|
+
Insert: {
|
|
57483
|
+
buffer_key: string;
|
|
57484
|
+
created_at?: string;
|
|
57485
|
+
customer_id?: string | null;
|
|
57486
|
+
grouping_mode: string;
|
|
57487
|
+
id?: string;
|
|
57488
|
+
pickup_date?: string | null;
|
|
57489
|
+
pickup_location?: string | null;
|
|
57490
|
+
plan_locked_at?: string | null;
|
|
57491
|
+
updated_at?: string;
|
|
57492
|
+
};
|
|
57493
|
+
Update: {
|
|
57494
|
+
buffer_key?: string;
|
|
57495
|
+
created_at?: string;
|
|
57496
|
+
customer_id?: string | null;
|
|
57497
|
+
grouping_mode?: string;
|
|
57498
|
+
id?: string;
|
|
57499
|
+
pickup_date?: string | null;
|
|
57500
|
+
pickup_location?: string | null;
|
|
57501
|
+
plan_locked_at?: string | null;
|
|
57502
|
+
updated_at?: string;
|
|
57503
|
+
};
|
|
57504
|
+
Relationships: [];
|
|
57505
|
+
};
|
|
55660
57506
|
order_cart_items: {
|
|
55661
57507
|
Row: {
|
|
55662
57508
|
cart_id: string;
|
|
@@ -55723,6 +57569,7 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
55723
57569
|
order_carts: {
|
|
55724
57570
|
Row: {
|
|
55725
57571
|
algorithm_version: number;
|
|
57572
|
+
buffer_id: string | null;
|
|
55726
57573
|
cart_number: number;
|
|
55727
57574
|
created_at: string;
|
|
55728
57575
|
id: string;
|
|
@@ -55730,13 +57577,14 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
55730
57577
|
is_complete: boolean;
|
|
55731
57578
|
notes: string | null;
|
|
55732
57579
|
occupancy_pct: number;
|
|
55733
|
-
order_id: string;
|
|
57580
|
+
order_id: string | null;
|
|
55734
57581
|
source: string;
|
|
55735
57582
|
total_layers_used: number;
|
|
55736
57583
|
updated_at: string;
|
|
55737
57584
|
};
|
|
55738
57585
|
Insert: {
|
|
55739
57586
|
algorithm_version?: number;
|
|
57587
|
+
buffer_id?: string | null;
|
|
55740
57588
|
cart_number: number;
|
|
55741
57589
|
created_at?: string;
|
|
55742
57590
|
id?: string;
|
|
@@ -55744,13 +57592,14 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
55744
57592
|
is_complete?: boolean;
|
|
55745
57593
|
notes?: string | null;
|
|
55746
57594
|
occupancy_pct?: number;
|
|
55747
|
-
order_id
|
|
57595
|
+
order_id?: string | null;
|
|
55748
57596
|
source?: string;
|
|
55749
57597
|
total_layers_used?: number;
|
|
55750
57598
|
updated_at?: string;
|
|
55751
57599
|
};
|
|
55752
57600
|
Update: {
|
|
55753
57601
|
algorithm_version?: number;
|
|
57602
|
+
buffer_id?: string | null;
|
|
55754
57603
|
cart_number?: number;
|
|
55755
57604
|
created_at?: string;
|
|
55756
57605
|
id?: string;
|
|
@@ -55758,12 +57607,18 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
55758
57607
|
is_complete?: boolean;
|
|
55759
57608
|
notes?: string | null;
|
|
55760
57609
|
occupancy_pct?: number;
|
|
55761
|
-
order_id?: string;
|
|
57610
|
+
order_id?: string | null;
|
|
55762
57611
|
source?: string;
|
|
55763
57612
|
total_layers_used?: number;
|
|
55764
57613
|
updated_at?: string;
|
|
55765
57614
|
};
|
|
55766
57615
|
Relationships: [{
|
|
57616
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
57617
|
+
columns: ["buffer_id"];
|
|
57618
|
+
isOneToOne: false;
|
|
57619
|
+
referencedRelation: "order_buffers";
|
|
57620
|
+
referencedColumns: ["id"];
|
|
57621
|
+
}, {
|
|
55767
57622
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
55768
57623
|
columns: ["order_id"];
|
|
55769
57624
|
isOneToOne: false;
|
|
@@ -56001,12 +57856,14 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56001
57856
|
};
|
|
56002
57857
|
orders: {
|
|
56003
57858
|
Row: {
|
|
57859
|
+
buffer_id: string | null;
|
|
56004
57860
|
created_at: string;
|
|
56005
57861
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
56006
57862
|
customer_id: string | null;
|
|
56007
57863
|
customer_name: string;
|
|
56008
57864
|
deleted_at: string | null;
|
|
56009
57865
|
delivery_date: string | null;
|
|
57866
|
+
floriday_sales_order_id: string | null;
|
|
56010
57867
|
id: string;
|
|
56011
57868
|
is_reservation: boolean;
|
|
56012
57869
|
notes: string | null;
|
|
@@ -56020,12 +57877,14 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56020
57877
|
updated_at: string;
|
|
56021
57878
|
};
|
|
56022
57879
|
Insert: {
|
|
57880
|
+
buffer_id?: string | null;
|
|
56023
57881
|
created_at?: string;
|
|
56024
57882
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
56025
57883
|
customer_id?: string | null;
|
|
56026
57884
|
customer_name?: string;
|
|
56027
57885
|
deleted_at?: string | null;
|
|
56028
57886
|
delivery_date?: string | null;
|
|
57887
|
+
floriday_sales_order_id?: string | null;
|
|
56029
57888
|
id?: string;
|
|
56030
57889
|
is_reservation?: boolean;
|
|
56031
57890
|
notes?: string | null;
|
|
@@ -56039,12 +57898,14 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56039
57898
|
updated_at?: string;
|
|
56040
57899
|
};
|
|
56041
57900
|
Update: {
|
|
57901
|
+
buffer_id?: string | null;
|
|
56042
57902
|
created_at?: string;
|
|
56043
57903
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
56044
57904
|
customer_id?: string | null;
|
|
56045
57905
|
customer_name?: string;
|
|
56046
57906
|
deleted_at?: string | null;
|
|
56047
57907
|
delivery_date?: string | null;
|
|
57908
|
+
floriday_sales_order_id?: string | null;
|
|
56048
57909
|
id?: string;
|
|
56049
57910
|
is_reservation?: boolean;
|
|
56050
57911
|
notes?: string | null;
|
|
@@ -56058,6 +57919,12 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56058
57919
|
updated_at?: string;
|
|
56059
57920
|
};
|
|
56060
57921
|
Relationships: [{
|
|
57922
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
57923
|
+
columns: ["buffer_id"];
|
|
57924
|
+
isOneToOne: false;
|
|
57925
|
+
referencedRelation: "order_buffers";
|
|
57926
|
+
referencedColumns: ["id"];
|
|
57927
|
+
}, {
|
|
56061
57928
|
foreignKeyName: "orders_customer_id_fkey";
|
|
56062
57929
|
columns: ["customer_id"];
|
|
56063
57930
|
isOneToOne: false;
|
|
@@ -56195,6 +58062,7 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56195
58062
|
created_at: string;
|
|
56196
58063
|
id: string;
|
|
56197
58064
|
notes: string | null;
|
|
58065
|
+
packing_configuration_id: string | null;
|
|
56198
58066
|
parent_product_id: string | null;
|
|
56199
58067
|
parent_trade_item_floriday_id: string | null;
|
|
56200
58068
|
quantity: number;
|
|
@@ -56209,6 +58077,7 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56209
58077
|
created_at?: string;
|
|
56210
58078
|
id?: string;
|
|
56211
58079
|
notes?: string | null;
|
|
58080
|
+
packing_configuration_id?: string | null;
|
|
56212
58081
|
parent_product_id?: string | null;
|
|
56213
58082
|
parent_trade_item_floriday_id?: string | null;
|
|
56214
58083
|
quantity?: number;
|
|
@@ -56223,6 +58092,7 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56223
58092
|
created_at?: string;
|
|
56224
58093
|
id?: string;
|
|
56225
58094
|
notes?: string | null;
|
|
58095
|
+
packing_configuration_id?: string | null;
|
|
56226
58096
|
parent_product_id?: string | null;
|
|
56227
58097
|
parent_trade_item_floriday_id?: string | null;
|
|
56228
58098
|
quantity?: number;
|
|
@@ -56424,11 +58294,13 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56424
58294
|
created_at: string;
|
|
56425
58295
|
id: string;
|
|
56426
58296
|
is_package: boolean;
|
|
58297
|
+
label: string | null;
|
|
56427
58298
|
layers_per_load_carrier: number | null;
|
|
56428
58299
|
load_carrier: string | null;
|
|
56429
58300
|
package_id: string | null;
|
|
56430
58301
|
package_label: string | null;
|
|
56431
58302
|
packages_per_layer: number | null;
|
|
58303
|
+
packing_configuration_id: string;
|
|
56432
58304
|
product_id: string | null;
|
|
56433
58305
|
tenant_id: string;
|
|
56434
58306
|
trade_item_floriday_id: string | null;
|
|
@@ -56439,11 +58311,13 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56439
58311
|
created_at?: string;
|
|
56440
58312
|
id?: string;
|
|
56441
58313
|
is_package?: boolean;
|
|
58314
|
+
label?: string | null;
|
|
56442
58315
|
layers_per_load_carrier?: number | null;
|
|
56443
58316
|
load_carrier?: string | null;
|
|
56444
58317
|
package_id?: string | null;
|
|
56445
58318
|
package_label?: string | null;
|
|
56446
58319
|
packages_per_layer?: number | null;
|
|
58320
|
+
packing_configuration_id?: string;
|
|
56447
58321
|
product_id?: string | null;
|
|
56448
58322
|
tenant_id: string;
|
|
56449
58323
|
trade_item_floriday_id?: string | null;
|
|
@@ -56454,11 +58328,13 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56454
58328
|
created_at?: string;
|
|
56455
58329
|
id?: string;
|
|
56456
58330
|
is_package?: boolean;
|
|
58331
|
+
label?: string | null;
|
|
56457
58332
|
layers_per_load_carrier?: number | null;
|
|
56458
58333
|
load_carrier?: string | null;
|
|
56459
58334
|
package_id?: string | null;
|
|
56460
58335
|
package_label?: string | null;
|
|
56461
58336
|
packages_per_layer?: number | null;
|
|
58337
|
+
packing_configuration_id?: string;
|
|
56462
58338
|
product_id?: string | null;
|
|
56463
58339
|
tenant_id?: string;
|
|
56464
58340
|
trade_item_floriday_id?: string | null;
|
|
@@ -56539,6 +58415,8 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56539
58415
|
trade_item_key: string | null;
|
|
56540
58416
|
unit: string;
|
|
56541
58417
|
updated_at: string;
|
|
58418
|
+
vat_code: string | null;
|
|
58419
|
+
vat_rate: number | null;
|
|
56542
58420
|
weight: string | null;
|
|
56543
58421
|
};
|
|
56544
58422
|
Insert: {
|
|
@@ -56567,6 +58445,8 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56567
58445
|
trade_item_key?: string | null;
|
|
56568
58446
|
unit?: string;
|
|
56569
58447
|
updated_at?: string;
|
|
58448
|
+
vat_code?: string | null;
|
|
58449
|
+
vat_rate?: number | null;
|
|
56570
58450
|
weight?: string | null;
|
|
56571
58451
|
};
|
|
56572
58452
|
Update: {
|
|
@@ -56595,6 +58475,8 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
56595
58475
|
trade_item_key?: string | null;
|
|
56596
58476
|
unit?: string;
|
|
56597
58477
|
updated_at?: string;
|
|
58478
|
+
vat_code?: string | null;
|
|
58479
|
+
vat_rate?: number | null;
|
|
56598
58480
|
weight?: string | null;
|
|
56599
58481
|
};
|
|
56600
58482
|
Relationships: [];
|
|
@@ -59670,6 +61552,12 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
59670
61552
|
processed_items: number;
|
|
59671
61553
|
}[];
|
|
59672
61554
|
};
|
|
61555
|
+
calculate_layer_stock: {
|
|
61556
|
+
Args: {
|
|
61557
|
+
p_product_id: string;
|
|
61558
|
+
};
|
|
61559
|
+
Returns: number;
|
|
61560
|
+
};
|
|
59673
61561
|
call_exact_route: {
|
|
59674
61562
|
Args: {
|
|
59675
61563
|
path: string;
|
|
@@ -60039,6 +61927,12 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
60039
61927
|
};
|
|
60040
61928
|
Returns: string;
|
|
60041
61929
|
};
|
|
61930
|
+
get_inventory_stock_for_key: {
|
|
61931
|
+
Args: {
|
|
61932
|
+
p_key: string;
|
|
61933
|
+
};
|
|
61934
|
+
Returns: number;
|
|
61935
|
+
};
|
|
60042
61936
|
get_offer_by_link_code: {
|
|
60043
61937
|
Args: {
|
|
60044
61938
|
p_code: string;
|
|
@@ -60069,6 +61963,12 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
60069
61963
|
};
|
|
60070
61964
|
Returns: string;
|
|
60071
61965
|
};
|
|
61966
|
+
get_product_group_available_stock: {
|
|
61967
|
+
Args: {
|
|
61968
|
+
p_group_id: string;
|
|
61969
|
+
};
|
|
61970
|
+
Returns: number;
|
|
61971
|
+
};
|
|
60072
61972
|
get_room_busy_windows: {
|
|
60073
61973
|
Args: {
|
|
60074
61974
|
p_from: string;
|
|
@@ -60635,12 +62535,22 @@ export declare const getFloricodeSyncStatus: import("@tanstack/start-client-core
|
|
|
60635
62535
|
};
|
|
60636
62536
|
Returns: string[];
|
|
60637
62537
|
};
|
|
62538
|
+
sync_all_layer_stocks: {
|
|
62539
|
+
Args: never;
|
|
62540
|
+
Returns: undefined;
|
|
62541
|
+
};
|
|
60638
62542
|
sync_cached_packing_from_product: {
|
|
60639
62543
|
Args: {
|
|
60640
62544
|
p_product_id: string;
|
|
60641
62545
|
};
|
|
60642
62546
|
Returns: undefined;
|
|
60643
62547
|
};
|
|
62548
|
+
sync_layer_stock: {
|
|
62549
|
+
Args: {
|
|
62550
|
+
p_product_id: string;
|
|
62551
|
+
};
|
|
62552
|
+
Returns: undefined;
|
|
62553
|
+
};
|
|
60644
62554
|
sync_order_cart_item_packing_from_product: {
|
|
60645
62555
|
Args: {
|
|
60646
62556
|
p_product_id: string;
|
|
@@ -61725,6 +63635,141 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
61725
63635
|
};
|
|
61726
63636
|
Relationships: [];
|
|
61727
63637
|
};
|
|
63638
|
+
cart_planning_pick_times: {
|
|
63639
|
+
Row: {
|
|
63640
|
+
created_at: string;
|
|
63641
|
+
id: string;
|
|
63642
|
+
pot_size: string;
|
|
63643
|
+
seconds_per_cart: number;
|
|
63644
|
+
updated_at: string;
|
|
63645
|
+
};
|
|
63646
|
+
Insert: {
|
|
63647
|
+
created_at?: string;
|
|
63648
|
+
id?: string;
|
|
63649
|
+
pot_size: string;
|
|
63650
|
+
seconds_per_cart: number;
|
|
63651
|
+
updated_at?: string;
|
|
63652
|
+
};
|
|
63653
|
+
Update: {
|
|
63654
|
+
created_at?: string;
|
|
63655
|
+
id?: string;
|
|
63656
|
+
pot_size?: string;
|
|
63657
|
+
seconds_per_cart?: number;
|
|
63658
|
+
updated_at?: string;
|
|
63659
|
+
};
|
|
63660
|
+
Relationships: [];
|
|
63661
|
+
};
|
|
63662
|
+
cart_planning_product_overrides: {
|
|
63663
|
+
Row: {
|
|
63664
|
+
created_at: string;
|
|
63665
|
+
id: string;
|
|
63666
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
63667
|
+
never_mix: boolean;
|
|
63668
|
+
notes: string | null;
|
|
63669
|
+
product_id: string;
|
|
63670
|
+
updated_at: string;
|
|
63671
|
+
};
|
|
63672
|
+
Insert: {
|
|
63673
|
+
created_at?: string;
|
|
63674
|
+
id?: string;
|
|
63675
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
63676
|
+
never_mix?: boolean;
|
|
63677
|
+
notes?: string | null;
|
|
63678
|
+
product_id: string;
|
|
63679
|
+
updated_at?: string;
|
|
63680
|
+
};
|
|
63681
|
+
Update: {
|
|
63682
|
+
created_at?: string;
|
|
63683
|
+
id?: string;
|
|
63684
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
63685
|
+
never_mix?: boolean;
|
|
63686
|
+
notes?: string | null;
|
|
63687
|
+
product_id?: string;
|
|
63688
|
+
updated_at?: string;
|
|
63689
|
+
};
|
|
63690
|
+
Relationships: [{
|
|
63691
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
63692
|
+
columns: ["product_id"];
|
|
63693
|
+
isOneToOne: true;
|
|
63694
|
+
referencedRelation: "products";
|
|
63695
|
+
referencedColumns: ["id"];
|
|
63696
|
+
}];
|
|
63697
|
+
};
|
|
63698
|
+
cart_planning_settings: {
|
|
63699
|
+
Row: {
|
|
63700
|
+
allow_editing_after_pickstation_send: boolean;
|
|
63701
|
+
buffer_grouping_mode: string;
|
|
63702
|
+
combine_floriday_orders: boolean;
|
|
63703
|
+
combine_floriday_orders_window: string;
|
|
63704
|
+
combine_orders_scope: string;
|
|
63705
|
+
default_workers: number;
|
|
63706
|
+
id: number;
|
|
63707
|
+
max_beladingen_per_layer: number;
|
|
63708
|
+
max_customers_per_cart: number;
|
|
63709
|
+
max_one_customer_per_layer: boolean;
|
|
63710
|
+
max_party_share_per_layer_pct: number;
|
|
63711
|
+
optimization_strategy: string;
|
|
63712
|
+
own_cart_from_layers: number;
|
|
63713
|
+
pick_time_mode: string;
|
|
63714
|
+
plants_per_day: number;
|
|
63715
|
+
plants_per_hour: number;
|
|
63716
|
+
require_same_carrier: boolean;
|
|
63717
|
+
require_same_crate_type: boolean;
|
|
63718
|
+
require_same_delivery_date: boolean;
|
|
63719
|
+
require_same_delivery_location: boolean;
|
|
63720
|
+
updated_at: string;
|
|
63721
|
+
updated_by: string | null;
|
|
63722
|
+
};
|
|
63723
|
+
Insert: {
|
|
63724
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
63725
|
+
buffer_grouping_mode?: string;
|
|
63726
|
+
combine_floriday_orders?: boolean;
|
|
63727
|
+
combine_floriday_orders_window?: string;
|
|
63728
|
+
combine_orders_scope?: string;
|
|
63729
|
+
default_workers?: number;
|
|
63730
|
+
id?: number;
|
|
63731
|
+
max_beladingen_per_layer?: number;
|
|
63732
|
+
max_customers_per_cart?: number;
|
|
63733
|
+
max_one_customer_per_layer?: boolean;
|
|
63734
|
+
max_party_share_per_layer_pct?: number;
|
|
63735
|
+
optimization_strategy?: string;
|
|
63736
|
+
own_cart_from_layers?: number;
|
|
63737
|
+
pick_time_mode?: string;
|
|
63738
|
+
plants_per_day?: number;
|
|
63739
|
+
plants_per_hour?: number;
|
|
63740
|
+
require_same_carrier?: boolean;
|
|
63741
|
+
require_same_crate_type?: boolean;
|
|
63742
|
+
require_same_delivery_date?: boolean;
|
|
63743
|
+
require_same_delivery_location?: boolean;
|
|
63744
|
+
updated_at?: string;
|
|
63745
|
+
updated_by?: string | null;
|
|
63746
|
+
};
|
|
63747
|
+
Update: {
|
|
63748
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
63749
|
+
buffer_grouping_mode?: string;
|
|
63750
|
+
combine_floriday_orders?: boolean;
|
|
63751
|
+
combine_floriday_orders_window?: string;
|
|
63752
|
+
combine_orders_scope?: string;
|
|
63753
|
+
default_workers?: number;
|
|
63754
|
+
id?: number;
|
|
63755
|
+
max_beladingen_per_layer?: number;
|
|
63756
|
+
max_customers_per_cart?: number;
|
|
63757
|
+
max_one_customer_per_layer?: boolean;
|
|
63758
|
+
max_party_share_per_layer_pct?: number;
|
|
63759
|
+
optimization_strategy?: string;
|
|
63760
|
+
own_cart_from_layers?: number;
|
|
63761
|
+
pick_time_mode?: string;
|
|
63762
|
+
plants_per_day?: number;
|
|
63763
|
+
plants_per_hour?: number;
|
|
63764
|
+
require_same_carrier?: boolean;
|
|
63765
|
+
require_same_crate_type?: boolean;
|
|
63766
|
+
require_same_delivery_date?: boolean;
|
|
63767
|
+
require_same_delivery_location?: boolean;
|
|
63768
|
+
updated_at?: string;
|
|
63769
|
+
updated_by?: string | null;
|
|
63770
|
+
};
|
|
63771
|
+
Relationships: [];
|
|
63772
|
+
};
|
|
61728
63773
|
cart_replan_queue: {
|
|
61729
63774
|
Row: {
|
|
61730
63775
|
attempts: number;
|
|
@@ -61755,6 +63800,39 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
61755
63800
|
referencedColumns: ["id"];
|
|
61756
63801
|
}];
|
|
61757
63802
|
};
|
|
63803
|
+
cart_types: {
|
|
63804
|
+
Row: {
|
|
63805
|
+
created_at: string;
|
|
63806
|
+
id: string;
|
|
63807
|
+
is_default: boolean;
|
|
63808
|
+
layer_length_cm: number;
|
|
63809
|
+
layer_width_cm: number;
|
|
63810
|
+
layers_per_cart: number;
|
|
63811
|
+
name: string;
|
|
63812
|
+
updated_at: string;
|
|
63813
|
+
};
|
|
63814
|
+
Insert: {
|
|
63815
|
+
created_at?: string;
|
|
63816
|
+
id?: string;
|
|
63817
|
+
is_default?: boolean;
|
|
63818
|
+
layer_length_cm: number;
|
|
63819
|
+
layer_width_cm: number;
|
|
63820
|
+
layers_per_cart?: number;
|
|
63821
|
+
name: string;
|
|
63822
|
+
updated_at?: string;
|
|
63823
|
+
};
|
|
63824
|
+
Update: {
|
|
63825
|
+
created_at?: string;
|
|
63826
|
+
id?: string;
|
|
63827
|
+
is_default?: boolean;
|
|
63828
|
+
layer_length_cm?: number;
|
|
63829
|
+
layer_width_cm?: number;
|
|
63830
|
+
layers_per_cart?: number;
|
|
63831
|
+
name?: string;
|
|
63832
|
+
updated_at?: string;
|
|
63833
|
+
};
|
|
63834
|
+
Relationships: [];
|
|
63835
|
+
};
|
|
61758
63836
|
collections: {
|
|
61759
63837
|
Row: {
|
|
61760
63838
|
created_at: string;
|
|
@@ -61779,6 +63857,36 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
61779
63857
|
};
|
|
61780
63858
|
Relationships: [];
|
|
61781
63859
|
};
|
|
63860
|
+
crate_types: {
|
|
63861
|
+
Row: {
|
|
63862
|
+
created_at: string;
|
|
63863
|
+
id: string;
|
|
63864
|
+
length_cm: number;
|
|
63865
|
+
name: string;
|
|
63866
|
+
plants_per_crate: number;
|
|
63867
|
+
updated_at: string;
|
|
63868
|
+
width_cm: number;
|
|
63869
|
+
};
|
|
63870
|
+
Insert: {
|
|
63871
|
+
created_at?: string;
|
|
63872
|
+
id?: string;
|
|
63873
|
+
length_cm: number;
|
|
63874
|
+
name: string;
|
|
63875
|
+
plants_per_crate?: number;
|
|
63876
|
+
updated_at?: string;
|
|
63877
|
+
width_cm: number;
|
|
63878
|
+
};
|
|
63879
|
+
Update: {
|
|
63880
|
+
created_at?: string;
|
|
63881
|
+
id?: string;
|
|
63882
|
+
length_cm?: number;
|
|
63883
|
+
name?: string;
|
|
63884
|
+
plants_per_crate?: number;
|
|
63885
|
+
updated_at?: string;
|
|
63886
|
+
width_cm?: number;
|
|
63887
|
+
};
|
|
63888
|
+
Relationships: [];
|
|
63889
|
+
};
|
|
61782
63890
|
customer_audit_log: {
|
|
61783
63891
|
Row: {
|
|
61784
63892
|
action: string;
|
|
@@ -65694,6 +67802,27 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
65694
67802
|
referencedColumns: ["id"];
|
|
65695
67803
|
}];
|
|
65696
67804
|
};
|
|
67805
|
+
floriday_vbn_required_characteristics: {
|
|
67806
|
+
Row: {
|
|
67807
|
+
required_codes: string[];
|
|
67808
|
+
updated_at: string;
|
|
67809
|
+
updated_by: string | null;
|
|
67810
|
+
vbn_code: string;
|
|
67811
|
+
};
|
|
67812
|
+
Insert: {
|
|
67813
|
+
required_codes?: string[];
|
|
67814
|
+
updated_at?: string;
|
|
67815
|
+
updated_by?: string | null;
|
|
67816
|
+
vbn_code: string;
|
|
67817
|
+
};
|
|
67818
|
+
Update: {
|
|
67819
|
+
required_codes?: string[];
|
|
67820
|
+
updated_at?: string;
|
|
67821
|
+
updated_by?: string | null;
|
|
67822
|
+
vbn_code?: string;
|
|
67823
|
+
};
|
|
67824
|
+
Relationships: [];
|
|
67825
|
+
};
|
|
65697
67826
|
floriday_warehouses_cache: {
|
|
65698
67827
|
Row: {
|
|
65699
67828
|
connection_id: string;
|
|
@@ -66396,6 +68525,69 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
66396
68525
|
};
|
|
66397
68526
|
Relationships: [];
|
|
66398
68527
|
};
|
|
68528
|
+
logistics_capacity_events: {
|
|
68529
|
+
Row: {
|
|
68530
|
+
available_carts: number;
|
|
68531
|
+
created_at: string;
|
|
68532
|
+
id: string;
|
|
68533
|
+
measures: import("../integrations/supabase/types").Json;
|
|
68534
|
+
note: string | null;
|
|
68535
|
+
outcome: string;
|
|
68536
|
+
required_carts: number;
|
|
68537
|
+
reserve_minutes: number;
|
|
68538
|
+
shortage_carts: number;
|
|
68539
|
+
status: string;
|
|
68540
|
+
user_id: string;
|
|
68541
|
+
};
|
|
68542
|
+
Insert: {
|
|
68543
|
+
available_carts?: number;
|
|
68544
|
+
created_at?: string;
|
|
68545
|
+
id?: string;
|
|
68546
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
68547
|
+
note?: string | null;
|
|
68548
|
+
outcome?: string;
|
|
68549
|
+
required_carts?: number;
|
|
68550
|
+
reserve_minutes?: number;
|
|
68551
|
+
shortage_carts?: number;
|
|
68552
|
+
status: string;
|
|
68553
|
+
user_id: string;
|
|
68554
|
+
};
|
|
68555
|
+
Update: {
|
|
68556
|
+
available_carts?: number;
|
|
68557
|
+
created_at?: string;
|
|
68558
|
+
id?: string;
|
|
68559
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
68560
|
+
note?: string | null;
|
|
68561
|
+
outcome?: string;
|
|
68562
|
+
required_carts?: number;
|
|
68563
|
+
reserve_minutes?: number;
|
|
68564
|
+
shortage_carts?: number;
|
|
68565
|
+
status?: string;
|
|
68566
|
+
user_id?: string;
|
|
68567
|
+
};
|
|
68568
|
+
Relationships: [];
|
|
68569
|
+
};
|
|
68570
|
+
logistics_capacity_settings: {
|
|
68571
|
+
Row: {
|
|
68572
|
+
created_at: string;
|
|
68573
|
+
settings: import("../integrations/supabase/types").Json;
|
|
68574
|
+
updated_at: string;
|
|
68575
|
+
user_id: string;
|
|
68576
|
+
};
|
|
68577
|
+
Insert: {
|
|
68578
|
+
created_at?: string;
|
|
68579
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
68580
|
+
updated_at?: string;
|
|
68581
|
+
user_id: string;
|
|
68582
|
+
};
|
|
68583
|
+
Update: {
|
|
68584
|
+
created_at?: string;
|
|
68585
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
68586
|
+
updated_at?: string;
|
|
68587
|
+
user_id?: string;
|
|
68588
|
+
};
|
|
68589
|
+
Relationships: [];
|
|
68590
|
+
};
|
|
66399
68591
|
logistics_decisions: {
|
|
66400
68592
|
Row: {
|
|
66401
68593
|
created_at: string;
|
|
@@ -67791,6 +69983,42 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
67791
69983
|
};
|
|
67792
69984
|
Relationships: [];
|
|
67793
69985
|
};
|
|
69986
|
+
order_buffers: {
|
|
69987
|
+
Row: {
|
|
69988
|
+
buffer_key: string;
|
|
69989
|
+
created_at: string;
|
|
69990
|
+
customer_id: string | null;
|
|
69991
|
+
grouping_mode: string;
|
|
69992
|
+
id: string;
|
|
69993
|
+
pickup_date: string | null;
|
|
69994
|
+
pickup_location: string | null;
|
|
69995
|
+
plan_locked_at: string | null;
|
|
69996
|
+
updated_at: string;
|
|
69997
|
+
};
|
|
69998
|
+
Insert: {
|
|
69999
|
+
buffer_key: string;
|
|
70000
|
+
created_at?: string;
|
|
70001
|
+
customer_id?: string | null;
|
|
70002
|
+
grouping_mode: string;
|
|
70003
|
+
id?: string;
|
|
70004
|
+
pickup_date?: string | null;
|
|
70005
|
+
pickup_location?: string | null;
|
|
70006
|
+
plan_locked_at?: string | null;
|
|
70007
|
+
updated_at?: string;
|
|
70008
|
+
};
|
|
70009
|
+
Update: {
|
|
70010
|
+
buffer_key?: string;
|
|
70011
|
+
created_at?: string;
|
|
70012
|
+
customer_id?: string | null;
|
|
70013
|
+
grouping_mode?: string;
|
|
70014
|
+
id?: string;
|
|
70015
|
+
pickup_date?: string | null;
|
|
70016
|
+
pickup_location?: string | null;
|
|
70017
|
+
plan_locked_at?: string | null;
|
|
70018
|
+
updated_at?: string;
|
|
70019
|
+
};
|
|
70020
|
+
Relationships: [];
|
|
70021
|
+
};
|
|
67794
70022
|
order_cart_items: {
|
|
67795
70023
|
Row: {
|
|
67796
70024
|
cart_id: string;
|
|
@@ -67857,6 +70085,7 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
67857
70085
|
order_carts: {
|
|
67858
70086
|
Row: {
|
|
67859
70087
|
algorithm_version: number;
|
|
70088
|
+
buffer_id: string | null;
|
|
67860
70089
|
cart_number: number;
|
|
67861
70090
|
created_at: string;
|
|
67862
70091
|
id: string;
|
|
@@ -67864,13 +70093,14 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
67864
70093
|
is_complete: boolean;
|
|
67865
70094
|
notes: string | null;
|
|
67866
70095
|
occupancy_pct: number;
|
|
67867
|
-
order_id: string;
|
|
70096
|
+
order_id: string | null;
|
|
67868
70097
|
source: string;
|
|
67869
70098
|
total_layers_used: number;
|
|
67870
70099
|
updated_at: string;
|
|
67871
70100
|
};
|
|
67872
70101
|
Insert: {
|
|
67873
70102
|
algorithm_version?: number;
|
|
70103
|
+
buffer_id?: string | null;
|
|
67874
70104
|
cart_number: number;
|
|
67875
70105
|
created_at?: string;
|
|
67876
70106
|
id?: string;
|
|
@@ -67878,13 +70108,14 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
67878
70108
|
is_complete?: boolean;
|
|
67879
70109
|
notes?: string | null;
|
|
67880
70110
|
occupancy_pct?: number;
|
|
67881
|
-
order_id
|
|
70111
|
+
order_id?: string | null;
|
|
67882
70112
|
source?: string;
|
|
67883
70113
|
total_layers_used?: number;
|
|
67884
70114
|
updated_at?: string;
|
|
67885
70115
|
};
|
|
67886
70116
|
Update: {
|
|
67887
70117
|
algorithm_version?: number;
|
|
70118
|
+
buffer_id?: string | null;
|
|
67888
70119
|
cart_number?: number;
|
|
67889
70120
|
created_at?: string;
|
|
67890
70121
|
id?: string;
|
|
@@ -67892,12 +70123,18 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
67892
70123
|
is_complete?: boolean;
|
|
67893
70124
|
notes?: string | null;
|
|
67894
70125
|
occupancy_pct?: number;
|
|
67895
|
-
order_id?: string;
|
|
70126
|
+
order_id?: string | null;
|
|
67896
70127
|
source?: string;
|
|
67897
70128
|
total_layers_used?: number;
|
|
67898
70129
|
updated_at?: string;
|
|
67899
70130
|
};
|
|
67900
70131
|
Relationships: [{
|
|
70132
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
70133
|
+
columns: ["buffer_id"];
|
|
70134
|
+
isOneToOne: false;
|
|
70135
|
+
referencedRelation: "order_buffers";
|
|
70136
|
+
referencedColumns: ["id"];
|
|
70137
|
+
}, {
|
|
67901
70138
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
67902
70139
|
columns: ["order_id"];
|
|
67903
70140
|
isOneToOne: false;
|
|
@@ -68135,12 +70372,14 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68135
70372
|
};
|
|
68136
70373
|
orders: {
|
|
68137
70374
|
Row: {
|
|
70375
|
+
buffer_id: string | null;
|
|
68138
70376
|
created_at: string;
|
|
68139
70377
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
68140
70378
|
customer_id: string | null;
|
|
68141
70379
|
customer_name: string;
|
|
68142
70380
|
deleted_at: string | null;
|
|
68143
70381
|
delivery_date: string | null;
|
|
70382
|
+
floriday_sales_order_id: string | null;
|
|
68144
70383
|
id: string;
|
|
68145
70384
|
is_reservation: boolean;
|
|
68146
70385
|
notes: string | null;
|
|
@@ -68154,12 +70393,14 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68154
70393
|
updated_at: string;
|
|
68155
70394
|
};
|
|
68156
70395
|
Insert: {
|
|
70396
|
+
buffer_id?: string | null;
|
|
68157
70397
|
created_at?: string;
|
|
68158
70398
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
68159
70399
|
customer_id?: string | null;
|
|
68160
70400
|
customer_name?: string;
|
|
68161
70401
|
deleted_at?: string | null;
|
|
68162
70402
|
delivery_date?: string | null;
|
|
70403
|
+
floriday_sales_order_id?: string | null;
|
|
68163
70404
|
id?: string;
|
|
68164
70405
|
is_reservation?: boolean;
|
|
68165
70406
|
notes?: string | null;
|
|
@@ -68173,12 +70414,14 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68173
70414
|
updated_at?: string;
|
|
68174
70415
|
};
|
|
68175
70416
|
Update: {
|
|
70417
|
+
buffer_id?: string | null;
|
|
68176
70418
|
created_at?: string;
|
|
68177
70419
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
68178
70420
|
customer_id?: string | null;
|
|
68179
70421
|
customer_name?: string;
|
|
68180
70422
|
deleted_at?: string | null;
|
|
68181
70423
|
delivery_date?: string | null;
|
|
70424
|
+
floriday_sales_order_id?: string | null;
|
|
68182
70425
|
id?: string;
|
|
68183
70426
|
is_reservation?: boolean;
|
|
68184
70427
|
notes?: string | null;
|
|
@@ -68192,6 +70435,12 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68192
70435
|
updated_at?: string;
|
|
68193
70436
|
};
|
|
68194
70437
|
Relationships: [{
|
|
70438
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
70439
|
+
columns: ["buffer_id"];
|
|
70440
|
+
isOneToOne: false;
|
|
70441
|
+
referencedRelation: "order_buffers";
|
|
70442
|
+
referencedColumns: ["id"];
|
|
70443
|
+
}, {
|
|
68195
70444
|
foreignKeyName: "orders_customer_id_fkey";
|
|
68196
70445
|
columns: ["customer_id"];
|
|
68197
70446
|
isOneToOne: false;
|
|
@@ -68329,6 +70578,7 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68329
70578
|
created_at: string;
|
|
68330
70579
|
id: string;
|
|
68331
70580
|
notes: string | null;
|
|
70581
|
+
packing_configuration_id: string | null;
|
|
68332
70582
|
parent_product_id: string | null;
|
|
68333
70583
|
parent_trade_item_floriday_id: string | null;
|
|
68334
70584
|
quantity: number;
|
|
@@ -68343,6 +70593,7 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68343
70593
|
created_at?: string;
|
|
68344
70594
|
id?: string;
|
|
68345
70595
|
notes?: string | null;
|
|
70596
|
+
packing_configuration_id?: string | null;
|
|
68346
70597
|
parent_product_id?: string | null;
|
|
68347
70598
|
parent_trade_item_floriday_id?: string | null;
|
|
68348
70599
|
quantity?: number;
|
|
@@ -68357,6 +70608,7 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68357
70608
|
created_at?: string;
|
|
68358
70609
|
id?: string;
|
|
68359
70610
|
notes?: string | null;
|
|
70611
|
+
packing_configuration_id?: string | null;
|
|
68360
70612
|
parent_product_id?: string | null;
|
|
68361
70613
|
parent_trade_item_floriday_id?: string | null;
|
|
68362
70614
|
quantity?: number;
|
|
@@ -68558,11 +70810,13 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68558
70810
|
created_at: string;
|
|
68559
70811
|
id: string;
|
|
68560
70812
|
is_package: boolean;
|
|
70813
|
+
label: string | null;
|
|
68561
70814
|
layers_per_load_carrier: number | null;
|
|
68562
70815
|
load_carrier: string | null;
|
|
68563
70816
|
package_id: string | null;
|
|
68564
70817
|
package_label: string | null;
|
|
68565
70818
|
packages_per_layer: number | null;
|
|
70819
|
+
packing_configuration_id: string;
|
|
68566
70820
|
product_id: string | null;
|
|
68567
70821
|
tenant_id: string;
|
|
68568
70822
|
trade_item_floriday_id: string | null;
|
|
@@ -68573,11 +70827,13 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68573
70827
|
created_at?: string;
|
|
68574
70828
|
id?: string;
|
|
68575
70829
|
is_package?: boolean;
|
|
70830
|
+
label?: string | null;
|
|
68576
70831
|
layers_per_load_carrier?: number | null;
|
|
68577
70832
|
load_carrier?: string | null;
|
|
68578
70833
|
package_id?: string | null;
|
|
68579
70834
|
package_label?: string | null;
|
|
68580
70835
|
packages_per_layer?: number | null;
|
|
70836
|
+
packing_configuration_id?: string;
|
|
68581
70837
|
product_id?: string | null;
|
|
68582
70838
|
tenant_id: string;
|
|
68583
70839
|
trade_item_floriday_id?: string | null;
|
|
@@ -68588,11 +70844,13 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68588
70844
|
created_at?: string;
|
|
68589
70845
|
id?: string;
|
|
68590
70846
|
is_package?: boolean;
|
|
70847
|
+
label?: string | null;
|
|
68591
70848
|
layers_per_load_carrier?: number | null;
|
|
68592
70849
|
load_carrier?: string | null;
|
|
68593
70850
|
package_id?: string | null;
|
|
68594
70851
|
package_label?: string | null;
|
|
68595
70852
|
packages_per_layer?: number | null;
|
|
70853
|
+
packing_configuration_id?: string;
|
|
68596
70854
|
product_id?: string | null;
|
|
68597
70855
|
tenant_id?: string;
|
|
68598
70856
|
trade_item_floriday_id?: string | null;
|
|
@@ -68673,6 +70931,8 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68673
70931
|
trade_item_key: string | null;
|
|
68674
70932
|
unit: string;
|
|
68675
70933
|
updated_at: string;
|
|
70934
|
+
vat_code: string | null;
|
|
70935
|
+
vat_rate: number | null;
|
|
68676
70936
|
weight: string | null;
|
|
68677
70937
|
};
|
|
68678
70938
|
Insert: {
|
|
@@ -68701,6 +70961,8 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68701
70961
|
trade_item_key?: string | null;
|
|
68702
70962
|
unit?: string;
|
|
68703
70963
|
updated_at?: string;
|
|
70964
|
+
vat_code?: string | null;
|
|
70965
|
+
vat_rate?: number | null;
|
|
68704
70966
|
weight?: string | null;
|
|
68705
70967
|
};
|
|
68706
70968
|
Update: {
|
|
@@ -68729,6 +70991,8 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
68729
70991
|
trade_item_key?: string | null;
|
|
68730
70992
|
unit?: string;
|
|
68731
70993
|
updated_at?: string;
|
|
70994
|
+
vat_code?: string | null;
|
|
70995
|
+
vat_rate?: number | null;
|
|
68732
70996
|
weight?: string | null;
|
|
68733
70997
|
};
|
|
68734
70998
|
Relationships: [];
|
|
@@ -71804,6 +74068,12 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
71804
74068
|
processed_items: number;
|
|
71805
74069
|
}[];
|
|
71806
74070
|
};
|
|
74071
|
+
calculate_layer_stock: {
|
|
74072
|
+
Args: {
|
|
74073
|
+
p_product_id: string;
|
|
74074
|
+
};
|
|
74075
|
+
Returns: number;
|
|
74076
|
+
};
|
|
71807
74077
|
call_exact_route: {
|
|
71808
74078
|
Args: {
|
|
71809
74079
|
path: string;
|
|
@@ -72173,6 +74443,12 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
72173
74443
|
};
|
|
72174
74444
|
Returns: string;
|
|
72175
74445
|
};
|
|
74446
|
+
get_inventory_stock_for_key: {
|
|
74447
|
+
Args: {
|
|
74448
|
+
p_key: string;
|
|
74449
|
+
};
|
|
74450
|
+
Returns: number;
|
|
74451
|
+
};
|
|
72176
74452
|
get_offer_by_link_code: {
|
|
72177
74453
|
Args: {
|
|
72178
74454
|
p_code: string;
|
|
@@ -72203,6 +74479,12 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
72203
74479
|
};
|
|
72204
74480
|
Returns: string;
|
|
72205
74481
|
};
|
|
74482
|
+
get_product_group_available_stock: {
|
|
74483
|
+
Args: {
|
|
74484
|
+
p_group_id: string;
|
|
74485
|
+
};
|
|
74486
|
+
Returns: number;
|
|
74487
|
+
};
|
|
72206
74488
|
get_room_busy_windows: {
|
|
72207
74489
|
Args: {
|
|
72208
74490
|
p_from: string;
|
|
@@ -72769,12 +75051,22 @@ export declare const triggerFloricodeResourceSync: import("@tanstack/start-clien
|
|
|
72769
75051
|
};
|
|
72770
75052
|
Returns: string[];
|
|
72771
75053
|
};
|
|
75054
|
+
sync_all_layer_stocks: {
|
|
75055
|
+
Args: never;
|
|
75056
|
+
Returns: undefined;
|
|
75057
|
+
};
|
|
72772
75058
|
sync_cached_packing_from_product: {
|
|
72773
75059
|
Args: {
|
|
72774
75060
|
p_product_id: string;
|
|
72775
75061
|
};
|
|
72776
75062
|
Returns: undefined;
|
|
72777
75063
|
};
|
|
75064
|
+
sync_layer_stock: {
|
|
75065
|
+
Args: {
|
|
75066
|
+
p_product_id: string;
|
|
75067
|
+
};
|
|
75068
|
+
Returns: undefined;
|
|
75069
|
+
};
|
|
72778
75070
|
sync_order_cart_item_packing_from_product: {
|
|
72779
75071
|
Args: {
|
|
72780
75072
|
p_product_id: string;
|
|
@@ -73861,6 +76153,141 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
73861
76153
|
};
|
|
73862
76154
|
Relationships: [];
|
|
73863
76155
|
};
|
|
76156
|
+
cart_planning_pick_times: {
|
|
76157
|
+
Row: {
|
|
76158
|
+
created_at: string;
|
|
76159
|
+
id: string;
|
|
76160
|
+
pot_size: string;
|
|
76161
|
+
seconds_per_cart: number;
|
|
76162
|
+
updated_at: string;
|
|
76163
|
+
};
|
|
76164
|
+
Insert: {
|
|
76165
|
+
created_at?: string;
|
|
76166
|
+
id?: string;
|
|
76167
|
+
pot_size: string;
|
|
76168
|
+
seconds_per_cart: number;
|
|
76169
|
+
updated_at?: string;
|
|
76170
|
+
};
|
|
76171
|
+
Update: {
|
|
76172
|
+
created_at?: string;
|
|
76173
|
+
id?: string;
|
|
76174
|
+
pot_size?: string;
|
|
76175
|
+
seconds_per_cart?: number;
|
|
76176
|
+
updated_at?: string;
|
|
76177
|
+
};
|
|
76178
|
+
Relationships: [];
|
|
76179
|
+
};
|
|
76180
|
+
cart_planning_product_overrides: {
|
|
76181
|
+
Row: {
|
|
76182
|
+
created_at: string;
|
|
76183
|
+
id: string;
|
|
76184
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
76185
|
+
never_mix: boolean;
|
|
76186
|
+
notes: string | null;
|
|
76187
|
+
product_id: string;
|
|
76188
|
+
updated_at: string;
|
|
76189
|
+
};
|
|
76190
|
+
Insert: {
|
|
76191
|
+
created_at?: string;
|
|
76192
|
+
id?: string;
|
|
76193
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
76194
|
+
never_mix?: boolean;
|
|
76195
|
+
notes?: string | null;
|
|
76196
|
+
product_id: string;
|
|
76197
|
+
updated_at?: string;
|
|
76198
|
+
};
|
|
76199
|
+
Update: {
|
|
76200
|
+
created_at?: string;
|
|
76201
|
+
id?: string;
|
|
76202
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
76203
|
+
never_mix?: boolean;
|
|
76204
|
+
notes?: string | null;
|
|
76205
|
+
product_id?: string;
|
|
76206
|
+
updated_at?: string;
|
|
76207
|
+
};
|
|
76208
|
+
Relationships: [{
|
|
76209
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
76210
|
+
columns: ["product_id"];
|
|
76211
|
+
isOneToOne: true;
|
|
76212
|
+
referencedRelation: "products";
|
|
76213
|
+
referencedColumns: ["id"];
|
|
76214
|
+
}];
|
|
76215
|
+
};
|
|
76216
|
+
cart_planning_settings: {
|
|
76217
|
+
Row: {
|
|
76218
|
+
allow_editing_after_pickstation_send: boolean;
|
|
76219
|
+
buffer_grouping_mode: string;
|
|
76220
|
+
combine_floriday_orders: boolean;
|
|
76221
|
+
combine_floriday_orders_window: string;
|
|
76222
|
+
combine_orders_scope: string;
|
|
76223
|
+
default_workers: number;
|
|
76224
|
+
id: number;
|
|
76225
|
+
max_beladingen_per_layer: number;
|
|
76226
|
+
max_customers_per_cart: number;
|
|
76227
|
+
max_one_customer_per_layer: boolean;
|
|
76228
|
+
max_party_share_per_layer_pct: number;
|
|
76229
|
+
optimization_strategy: string;
|
|
76230
|
+
own_cart_from_layers: number;
|
|
76231
|
+
pick_time_mode: string;
|
|
76232
|
+
plants_per_day: number;
|
|
76233
|
+
plants_per_hour: number;
|
|
76234
|
+
require_same_carrier: boolean;
|
|
76235
|
+
require_same_crate_type: boolean;
|
|
76236
|
+
require_same_delivery_date: boolean;
|
|
76237
|
+
require_same_delivery_location: boolean;
|
|
76238
|
+
updated_at: string;
|
|
76239
|
+
updated_by: string | null;
|
|
76240
|
+
};
|
|
76241
|
+
Insert: {
|
|
76242
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
76243
|
+
buffer_grouping_mode?: string;
|
|
76244
|
+
combine_floriday_orders?: boolean;
|
|
76245
|
+
combine_floriday_orders_window?: string;
|
|
76246
|
+
combine_orders_scope?: string;
|
|
76247
|
+
default_workers?: number;
|
|
76248
|
+
id?: number;
|
|
76249
|
+
max_beladingen_per_layer?: number;
|
|
76250
|
+
max_customers_per_cart?: number;
|
|
76251
|
+
max_one_customer_per_layer?: boolean;
|
|
76252
|
+
max_party_share_per_layer_pct?: number;
|
|
76253
|
+
optimization_strategy?: string;
|
|
76254
|
+
own_cart_from_layers?: number;
|
|
76255
|
+
pick_time_mode?: string;
|
|
76256
|
+
plants_per_day?: number;
|
|
76257
|
+
plants_per_hour?: number;
|
|
76258
|
+
require_same_carrier?: boolean;
|
|
76259
|
+
require_same_crate_type?: boolean;
|
|
76260
|
+
require_same_delivery_date?: boolean;
|
|
76261
|
+
require_same_delivery_location?: boolean;
|
|
76262
|
+
updated_at?: string;
|
|
76263
|
+
updated_by?: string | null;
|
|
76264
|
+
};
|
|
76265
|
+
Update: {
|
|
76266
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
76267
|
+
buffer_grouping_mode?: string;
|
|
76268
|
+
combine_floriday_orders?: boolean;
|
|
76269
|
+
combine_floriday_orders_window?: string;
|
|
76270
|
+
combine_orders_scope?: string;
|
|
76271
|
+
default_workers?: number;
|
|
76272
|
+
id?: number;
|
|
76273
|
+
max_beladingen_per_layer?: number;
|
|
76274
|
+
max_customers_per_cart?: number;
|
|
76275
|
+
max_one_customer_per_layer?: boolean;
|
|
76276
|
+
max_party_share_per_layer_pct?: number;
|
|
76277
|
+
optimization_strategy?: string;
|
|
76278
|
+
own_cart_from_layers?: number;
|
|
76279
|
+
pick_time_mode?: string;
|
|
76280
|
+
plants_per_day?: number;
|
|
76281
|
+
plants_per_hour?: number;
|
|
76282
|
+
require_same_carrier?: boolean;
|
|
76283
|
+
require_same_crate_type?: boolean;
|
|
76284
|
+
require_same_delivery_date?: boolean;
|
|
76285
|
+
require_same_delivery_location?: boolean;
|
|
76286
|
+
updated_at?: string;
|
|
76287
|
+
updated_by?: string | null;
|
|
76288
|
+
};
|
|
76289
|
+
Relationships: [];
|
|
76290
|
+
};
|
|
73864
76291
|
cart_replan_queue: {
|
|
73865
76292
|
Row: {
|
|
73866
76293
|
attempts: number;
|
|
@@ -73891,6 +76318,39 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
73891
76318
|
referencedColumns: ["id"];
|
|
73892
76319
|
}];
|
|
73893
76320
|
};
|
|
76321
|
+
cart_types: {
|
|
76322
|
+
Row: {
|
|
76323
|
+
created_at: string;
|
|
76324
|
+
id: string;
|
|
76325
|
+
is_default: boolean;
|
|
76326
|
+
layer_length_cm: number;
|
|
76327
|
+
layer_width_cm: number;
|
|
76328
|
+
layers_per_cart: number;
|
|
76329
|
+
name: string;
|
|
76330
|
+
updated_at: string;
|
|
76331
|
+
};
|
|
76332
|
+
Insert: {
|
|
76333
|
+
created_at?: string;
|
|
76334
|
+
id?: string;
|
|
76335
|
+
is_default?: boolean;
|
|
76336
|
+
layer_length_cm: number;
|
|
76337
|
+
layer_width_cm: number;
|
|
76338
|
+
layers_per_cart?: number;
|
|
76339
|
+
name: string;
|
|
76340
|
+
updated_at?: string;
|
|
76341
|
+
};
|
|
76342
|
+
Update: {
|
|
76343
|
+
created_at?: string;
|
|
76344
|
+
id?: string;
|
|
76345
|
+
is_default?: boolean;
|
|
76346
|
+
layer_length_cm?: number;
|
|
76347
|
+
layer_width_cm?: number;
|
|
76348
|
+
layers_per_cart?: number;
|
|
76349
|
+
name?: string;
|
|
76350
|
+
updated_at?: string;
|
|
76351
|
+
};
|
|
76352
|
+
Relationships: [];
|
|
76353
|
+
};
|
|
73894
76354
|
collections: {
|
|
73895
76355
|
Row: {
|
|
73896
76356
|
created_at: string;
|
|
@@ -73915,6 +76375,36 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
73915
76375
|
};
|
|
73916
76376
|
Relationships: [];
|
|
73917
76377
|
};
|
|
76378
|
+
crate_types: {
|
|
76379
|
+
Row: {
|
|
76380
|
+
created_at: string;
|
|
76381
|
+
id: string;
|
|
76382
|
+
length_cm: number;
|
|
76383
|
+
name: string;
|
|
76384
|
+
plants_per_crate: number;
|
|
76385
|
+
updated_at: string;
|
|
76386
|
+
width_cm: number;
|
|
76387
|
+
};
|
|
76388
|
+
Insert: {
|
|
76389
|
+
created_at?: string;
|
|
76390
|
+
id?: string;
|
|
76391
|
+
length_cm: number;
|
|
76392
|
+
name: string;
|
|
76393
|
+
plants_per_crate?: number;
|
|
76394
|
+
updated_at?: string;
|
|
76395
|
+
width_cm: number;
|
|
76396
|
+
};
|
|
76397
|
+
Update: {
|
|
76398
|
+
created_at?: string;
|
|
76399
|
+
id?: string;
|
|
76400
|
+
length_cm?: number;
|
|
76401
|
+
name?: string;
|
|
76402
|
+
plants_per_crate?: number;
|
|
76403
|
+
updated_at?: string;
|
|
76404
|
+
width_cm?: number;
|
|
76405
|
+
};
|
|
76406
|
+
Relationships: [];
|
|
76407
|
+
};
|
|
73918
76408
|
customer_audit_log: {
|
|
73919
76409
|
Row: {
|
|
73920
76410
|
action: string;
|
|
@@ -77830,6 +80320,27 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
77830
80320
|
referencedColumns: ["id"];
|
|
77831
80321
|
}];
|
|
77832
80322
|
};
|
|
80323
|
+
floriday_vbn_required_characteristics: {
|
|
80324
|
+
Row: {
|
|
80325
|
+
required_codes: string[];
|
|
80326
|
+
updated_at: string;
|
|
80327
|
+
updated_by: string | null;
|
|
80328
|
+
vbn_code: string;
|
|
80329
|
+
};
|
|
80330
|
+
Insert: {
|
|
80331
|
+
required_codes?: string[];
|
|
80332
|
+
updated_at?: string;
|
|
80333
|
+
updated_by?: string | null;
|
|
80334
|
+
vbn_code: string;
|
|
80335
|
+
};
|
|
80336
|
+
Update: {
|
|
80337
|
+
required_codes?: string[];
|
|
80338
|
+
updated_at?: string;
|
|
80339
|
+
updated_by?: string | null;
|
|
80340
|
+
vbn_code?: string;
|
|
80341
|
+
};
|
|
80342
|
+
Relationships: [];
|
|
80343
|
+
};
|
|
77833
80344
|
floriday_warehouses_cache: {
|
|
77834
80345
|
Row: {
|
|
77835
80346
|
connection_id: string;
|
|
@@ -78532,6 +81043,69 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
78532
81043
|
};
|
|
78533
81044
|
Relationships: [];
|
|
78534
81045
|
};
|
|
81046
|
+
logistics_capacity_events: {
|
|
81047
|
+
Row: {
|
|
81048
|
+
available_carts: number;
|
|
81049
|
+
created_at: string;
|
|
81050
|
+
id: string;
|
|
81051
|
+
measures: import("../integrations/supabase/types").Json;
|
|
81052
|
+
note: string | null;
|
|
81053
|
+
outcome: string;
|
|
81054
|
+
required_carts: number;
|
|
81055
|
+
reserve_minutes: number;
|
|
81056
|
+
shortage_carts: number;
|
|
81057
|
+
status: string;
|
|
81058
|
+
user_id: string;
|
|
81059
|
+
};
|
|
81060
|
+
Insert: {
|
|
81061
|
+
available_carts?: number;
|
|
81062
|
+
created_at?: string;
|
|
81063
|
+
id?: string;
|
|
81064
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
81065
|
+
note?: string | null;
|
|
81066
|
+
outcome?: string;
|
|
81067
|
+
required_carts?: number;
|
|
81068
|
+
reserve_minutes?: number;
|
|
81069
|
+
shortage_carts?: number;
|
|
81070
|
+
status: string;
|
|
81071
|
+
user_id: string;
|
|
81072
|
+
};
|
|
81073
|
+
Update: {
|
|
81074
|
+
available_carts?: number;
|
|
81075
|
+
created_at?: string;
|
|
81076
|
+
id?: string;
|
|
81077
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
81078
|
+
note?: string | null;
|
|
81079
|
+
outcome?: string;
|
|
81080
|
+
required_carts?: number;
|
|
81081
|
+
reserve_minutes?: number;
|
|
81082
|
+
shortage_carts?: number;
|
|
81083
|
+
status?: string;
|
|
81084
|
+
user_id?: string;
|
|
81085
|
+
};
|
|
81086
|
+
Relationships: [];
|
|
81087
|
+
};
|
|
81088
|
+
logistics_capacity_settings: {
|
|
81089
|
+
Row: {
|
|
81090
|
+
created_at: string;
|
|
81091
|
+
settings: import("../integrations/supabase/types").Json;
|
|
81092
|
+
updated_at: string;
|
|
81093
|
+
user_id: string;
|
|
81094
|
+
};
|
|
81095
|
+
Insert: {
|
|
81096
|
+
created_at?: string;
|
|
81097
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
81098
|
+
updated_at?: string;
|
|
81099
|
+
user_id: string;
|
|
81100
|
+
};
|
|
81101
|
+
Update: {
|
|
81102
|
+
created_at?: string;
|
|
81103
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
81104
|
+
updated_at?: string;
|
|
81105
|
+
user_id?: string;
|
|
81106
|
+
};
|
|
81107
|
+
Relationships: [];
|
|
81108
|
+
};
|
|
78535
81109
|
logistics_decisions: {
|
|
78536
81110
|
Row: {
|
|
78537
81111
|
created_at: string;
|
|
@@ -79927,6 +82501,42 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
79927
82501
|
};
|
|
79928
82502
|
Relationships: [];
|
|
79929
82503
|
};
|
|
82504
|
+
order_buffers: {
|
|
82505
|
+
Row: {
|
|
82506
|
+
buffer_key: string;
|
|
82507
|
+
created_at: string;
|
|
82508
|
+
customer_id: string | null;
|
|
82509
|
+
grouping_mode: string;
|
|
82510
|
+
id: string;
|
|
82511
|
+
pickup_date: string | null;
|
|
82512
|
+
pickup_location: string | null;
|
|
82513
|
+
plan_locked_at: string | null;
|
|
82514
|
+
updated_at: string;
|
|
82515
|
+
};
|
|
82516
|
+
Insert: {
|
|
82517
|
+
buffer_key: string;
|
|
82518
|
+
created_at?: string;
|
|
82519
|
+
customer_id?: string | null;
|
|
82520
|
+
grouping_mode: string;
|
|
82521
|
+
id?: string;
|
|
82522
|
+
pickup_date?: string | null;
|
|
82523
|
+
pickup_location?: string | null;
|
|
82524
|
+
plan_locked_at?: string | null;
|
|
82525
|
+
updated_at?: string;
|
|
82526
|
+
};
|
|
82527
|
+
Update: {
|
|
82528
|
+
buffer_key?: string;
|
|
82529
|
+
created_at?: string;
|
|
82530
|
+
customer_id?: string | null;
|
|
82531
|
+
grouping_mode?: string;
|
|
82532
|
+
id?: string;
|
|
82533
|
+
pickup_date?: string | null;
|
|
82534
|
+
pickup_location?: string | null;
|
|
82535
|
+
plan_locked_at?: string | null;
|
|
82536
|
+
updated_at?: string;
|
|
82537
|
+
};
|
|
82538
|
+
Relationships: [];
|
|
82539
|
+
};
|
|
79930
82540
|
order_cart_items: {
|
|
79931
82541
|
Row: {
|
|
79932
82542
|
cart_id: string;
|
|
@@ -79993,6 +82603,7 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
79993
82603
|
order_carts: {
|
|
79994
82604
|
Row: {
|
|
79995
82605
|
algorithm_version: number;
|
|
82606
|
+
buffer_id: string | null;
|
|
79996
82607
|
cart_number: number;
|
|
79997
82608
|
created_at: string;
|
|
79998
82609
|
id: string;
|
|
@@ -80000,13 +82611,14 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80000
82611
|
is_complete: boolean;
|
|
80001
82612
|
notes: string | null;
|
|
80002
82613
|
occupancy_pct: number;
|
|
80003
|
-
order_id: string;
|
|
82614
|
+
order_id: string | null;
|
|
80004
82615
|
source: string;
|
|
80005
82616
|
total_layers_used: number;
|
|
80006
82617
|
updated_at: string;
|
|
80007
82618
|
};
|
|
80008
82619
|
Insert: {
|
|
80009
82620
|
algorithm_version?: number;
|
|
82621
|
+
buffer_id?: string | null;
|
|
80010
82622
|
cart_number: number;
|
|
80011
82623
|
created_at?: string;
|
|
80012
82624
|
id?: string;
|
|
@@ -80014,13 +82626,14 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80014
82626
|
is_complete?: boolean;
|
|
80015
82627
|
notes?: string | null;
|
|
80016
82628
|
occupancy_pct?: number;
|
|
80017
|
-
order_id
|
|
82629
|
+
order_id?: string | null;
|
|
80018
82630
|
source?: string;
|
|
80019
82631
|
total_layers_used?: number;
|
|
80020
82632
|
updated_at?: string;
|
|
80021
82633
|
};
|
|
80022
82634
|
Update: {
|
|
80023
82635
|
algorithm_version?: number;
|
|
82636
|
+
buffer_id?: string | null;
|
|
80024
82637
|
cart_number?: number;
|
|
80025
82638
|
created_at?: string;
|
|
80026
82639
|
id?: string;
|
|
@@ -80028,12 +82641,18 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80028
82641
|
is_complete?: boolean;
|
|
80029
82642
|
notes?: string | null;
|
|
80030
82643
|
occupancy_pct?: number;
|
|
80031
|
-
order_id?: string;
|
|
82644
|
+
order_id?: string | null;
|
|
80032
82645
|
source?: string;
|
|
80033
82646
|
total_layers_used?: number;
|
|
80034
82647
|
updated_at?: string;
|
|
80035
82648
|
};
|
|
80036
82649
|
Relationships: [{
|
|
82650
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
82651
|
+
columns: ["buffer_id"];
|
|
82652
|
+
isOneToOne: false;
|
|
82653
|
+
referencedRelation: "order_buffers";
|
|
82654
|
+
referencedColumns: ["id"];
|
|
82655
|
+
}, {
|
|
80037
82656
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
80038
82657
|
columns: ["order_id"];
|
|
80039
82658
|
isOneToOne: false;
|
|
@@ -80271,12 +82890,14 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80271
82890
|
};
|
|
80272
82891
|
orders: {
|
|
80273
82892
|
Row: {
|
|
82893
|
+
buffer_id: string | null;
|
|
80274
82894
|
created_at: string;
|
|
80275
82895
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
80276
82896
|
customer_id: string | null;
|
|
80277
82897
|
customer_name: string;
|
|
80278
82898
|
deleted_at: string | null;
|
|
80279
82899
|
delivery_date: string | null;
|
|
82900
|
+
floriday_sales_order_id: string | null;
|
|
80280
82901
|
id: string;
|
|
80281
82902
|
is_reservation: boolean;
|
|
80282
82903
|
notes: string | null;
|
|
@@ -80290,12 +82911,14 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80290
82911
|
updated_at: string;
|
|
80291
82912
|
};
|
|
80292
82913
|
Insert: {
|
|
82914
|
+
buffer_id?: string | null;
|
|
80293
82915
|
created_at?: string;
|
|
80294
82916
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
80295
82917
|
customer_id?: string | null;
|
|
80296
82918
|
customer_name?: string;
|
|
80297
82919
|
deleted_at?: string | null;
|
|
80298
82920
|
delivery_date?: string | null;
|
|
82921
|
+
floriday_sales_order_id?: string | null;
|
|
80299
82922
|
id?: string;
|
|
80300
82923
|
is_reservation?: boolean;
|
|
80301
82924
|
notes?: string | null;
|
|
@@ -80309,12 +82932,14 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80309
82932
|
updated_at?: string;
|
|
80310
82933
|
};
|
|
80311
82934
|
Update: {
|
|
82935
|
+
buffer_id?: string | null;
|
|
80312
82936
|
created_at?: string;
|
|
80313
82937
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
80314
82938
|
customer_id?: string | null;
|
|
80315
82939
|
customer_name?: string;
|
|
80316
82940
|
deleted_at?: string | null;
|
|
80317
82941
|
delivery_date?: string | null;
|
|
82942
|
+
floriday_sales_order_id?: string | null;
|
|
80318
82943
|
id?: string;
|
|
80319
82944
|
is_reservation?: boolean;
|
|
80320
82945
|
notes?: string | null;
|
|
@@ -80328,6 +82953,12 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80328
82953
|
updated_at?: string;
|
|
80329
82954
|
};
|
|
80330
82955
|
Relationships: [{
|
|
82956
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
82957
|
+
columns: ["buffer_id"];
|
|
82958
|
+
isOneToOne: false;
|
|
82959
|
+
referencedRelation: "order_buffers";
|
|
82960
|
+
referencedColumns: ["id"];
|
|
82961
|
+
}, {
|
|
80331
82962
|
foreignKeyName: "orders_customer_id_fkey";
|
|
80332
82963
|
columns: ["customer_id"];
|
|
80333
82964
|
isOneToOne: false;
|
|
@@ -80465,6 +83096,7 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80465
83096
|
created_at: string;
|
|
80466
83097
|
id: string;
|
|
80467
83098
|
notes: string | null;
|
|
83099
|
+
packing_configuration_id: string | null;
|
|
80468
83100
|
parent_product_id: string | null;
|
|
80469
83101
|
parent_trade_item_floriday_id: string | null;
|
|
80470
83102
|
quantity: number;
|
|
@@ -80479,6 +83111,7 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80479
83111
|
created_at?: string;
|
|
80480
83112
|
id?: string;
|
|
80481
83113
|
notes?: string | null;
|
|
83114
|
+
packing_configuration_id?: string | null;
|
|
80482
83115
|
parent_product_id?: string | null;
|
|
80483
83116
|
parent_trade_item_floriday_id?: string | null;
|
|
80484
83117
|
quantity?: number;
|
|
@@ -80493,6 +83126,7 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80493
83126
|
created_at?: string;
|
|
80494
83127
|
id?: string;
|
|
80495
83128
|
notes?: string | null;
|
|
83129
|
+
packing_configuration_id?: string | null;
|
|
80496
83130
|
parent_product_id?: string | null;
|
|
80497
83131
|
parent_trade_item_floriday_id?: string | null;
|
|
80498
83132
|
quantity?: number;
|
|
@@ -80694,11 +83328,13 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80694
83328
|
created_at: string;
|
|
80695
83329
|
id: string;
|
|
80696
83330
|
is_package: boolean;
|
|
83331
|
+
label: string | null;
|
|
80697
83332
|
layers_per_load_carrier: number | null;
|
|
80698
83333
|
load_carrier: string | null;
|
|
80699
83334
|
package_id: string | null;
|
|
80700
83335
|
package_label: string | null;
|
|
80701
83336
|
packages_per_layer: number | null;
|
|
83337
|
+
packing_configuration_id: string;
|
|
80702
83338
|
product_id: string | null;
|
|
80703
83339
|
tenant_id: string;
|
|
80704
83340
|
trade_item_floriday_id: string | null;
|
|
@@ -80709,11 +83345,13 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80709
83345
|
created_at?: string;
|
|
80710
83346
|
id?: string;
|
|
80711
83347
|
is_package?: boolean;
|
|
83348
|
+
label?: string | null;
|
|
80712
83349
|
layers_per_load_carrier?: number | null;
|
|
80713
83350
|
load_carrier?: string | null;
|
|
80714
83351
|
package_id?: string | null;
|
|
80715
83352
|
package_label?: string | null;
|
|
80716
83353
|
packages_per_layer?: number | null;
|
|
83354
|
+
packing_configuration_id?: string;
|
|
80717
83355
|
product_id?: string | null;
|
|
80718
83356
|
tenant_id: string;
|
|
80719
83357
|
trade_item_floriday_id?: string | null;
|
|
@@ -80724,11 +83362,13 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80724
83362
|
created_at?: string;
|
|
80725
83363
|
id?: string;
|
|
80726
83364
|
is_package?: boolean;
|
|
83365
|
+
label?: string | null;
|
|
80727
83366
|
layers_per_load_carrier?: number | null;
|
|
80728
83367
|
load_carrier?: string | null;
|
|
80729
83368
|
package_id?: string | null;
|
|
80730
83369
|
package_label?: string | null;
|
|
80731
83370
|
packages_per_layer?: number | null;
|
|
83371
|
+
packing_configuration_id?: string;
|
|
80732
83372
|
product_id?: string | null;
|
|
80733
83373
|
tenant_id?: string;
|
|
80734
83374
|
trade_item_floriday_id?: string | null;
|
|
@@ -80809,6 +83449,8 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80809
83449
|
trade_item_key: string | null;
|
|
80810
83450
|
unit: string;
|
|
80811
83451
|
updated_at: string;
|
|
83452
|
+
vat_code: string | null;
|
|
83453
|
+
vat_rate: number | null;
|
|
80812
83454
|
weight: string | null;
|
|
80813
83455
|
};
|
|
80814
83456
|
Insert: {
|
|
@@ -80837,6 +83479,8 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80837
83479
|
trade_item_key?: string | null;
|
|
80838
83480
|
unit?: string;
|
|
80839
83481
|
updated_at?: string;
|
|
83482
|
+
vat_code?: string | null;
|
|
83483
|
+
vat_rate?: number | null;
|
|
80840
83484
|
weight?: string | null;
|
|
80841
83485
|
};
|
|
80842
83486
|
Update: {
|
|
@@ -80865,6 +83509,8 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
80865
83509
|
trade_item_key?: string | null;
|
|
80866
83510
|
unit?: string;
|
|
80867
83511
|
updated_at?: string;
|
|
83512
|
+
vat_code?: string | null;
|
|
83513
|
+
vat_rate?: number | null;
|
|
80868
83514
|
weight?: string | null;
|
|
80869
83515
|
};
|
|
80870
83516
|
Relationships: [];
|
|
@@ -83940,6 +86586,12 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
83940
86586
|
processed_items: number;
|
|
83941
86587
|
}[];
|
|
83942
86588
|
};
|
|
86589
|
+
calculate_layer_stock: {
|
|
86590
|
+
Args: {
|
|
86591
|
+
p_product_id: string;
|
|
86592
|
+
};
|
|
86593
|
+
Returns: number;
|
|
86594
|
+
};
|
|
83943
86595
|
call_exact_route: {
|
|
83944
86596
|
Args: {
|
|
83945
86597
|
path: string;
|
|
@@ -84309,6 +86961,12 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
84309
86961
|
};
|
|
84310
86962
|
Returns: string;
|
|
84311
86963
|
};
|
|
86964
|
+
get_inventory_stock_for_key: {
|
|
86965
|
+
Args: {
|
|
86966
|
+
p_key: string;
|
|
86967
|
+
};
|
|
86968
|
+
Returns: number;
|
|
86969
|
+
};
|
|
84312
86970
|
get_offer_by_link_code: {
|
|
84313
86971
|
Args: {
|
|
84314
86972
|
p_code: string;
|
|
@@ -84339,6 +86997,12 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
84339
86997
|
};
|
|
84340
86998
|
Returns: string;
|
|
84341
86999
|
};
|
|
87000
|
+
get_product_group_available_stock: {
|
|
87001
|
+
Args: {
|
|
87002
|
+
p_group_id: string;
|
|
87003
|
+
};
|
|
87004
|
+
Returns: number;
|
|
87005
|
+
};
|
|
84342
87006
|
get_room_busy_windows: {
|
|
84343
87007
|
Args: {
|
|
84344
87008
|
p_from: string;
|
|
@@ -84905,12 +87569,22 @@ export declare const resetFloricodeResourceCursor: import("@tanstack/start-clien
|
|
|
84905
87569
|
};
|
|
84906
87570
|
Returns: string[];
|
|
84907
87571
|
};
|
|
87572
|
+
sync_all_layer_stocks: {
|
|
87573
|
+
Args: never;
|
|
87574
|
+
Returns: undefined;
|
|
87575
|
+
};
|
|
84908
87576
|
sync_cached_packing_from_product: {
|
|
84909
87577
|
Args: {
|
|
84910
87578
|
p_product_id: string;
|
|
84911
87579
|
};
|
|
84912
87580
|
Returns: undefined;
|
|
84913
87581
|
};
|
|
87582
|
+
sync_layer_stock: {
|
|
87583
|
+
Args: {
|
|
87584
|
+
p_product_id: string;
|
|
87585
|
+
};
|
|
87586
|
+
Returns: undefined;
|
|
87587
|
+
};
|
|
84914
87588
|
sync_order_cart_item_packing_from_product: {
|
|
84915
87589
|
Args: {
|
|
84916
87590
|
p_product_id: string;
|