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