@flowselections/floriday-afhandeling-module 1.0.15 → 1.0.17
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/afhandeling/LeveringenPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/LeveringenPage.js +2 -2
- package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/PickAgendaView.js +2 -3
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.js +31 -17
- package/dist-lib/components/engine/CapaciteitsmaatregelenPage.d.ts +2 -0
- package/dist-lib/components/engine/CapaciteitsmaatregelenPage.d.ts.map +1 -0
- package/dist-lib/components/engine/CapaciteitsmaatregelenPage.js +40 -0
- package/dist-lib/components/engine/CapaciteitsmonitorPage.d.ts +2 -0
- package/dist-lib/components/engine/CapaciteitsmonitorPage.d.ts.map +1 -0
- package/dist-lib/components/engine/CapaciteitsmonitorPage.js +49 -0
- package/dist-lib/components/engine/FormulesPage.d.ts +2 -0
- package/dist-lib/components/engine/FormulesPage.d.ts.map +1 -0
- package/dist-lib/components/engine/FormulesPage.js +252 -0
- package/dist-lib/components/engine/PlaceholderPage.d.ts +6 -0
- package/dist-lib/components/engine/PlaceholderPage.d.ts.map +1 -0
- package/dist-lib/components/engine/PlaceholderPage.js +6 -0
- package/dist-lib/components/engine/StrategieenPage.d.ts +2 -0
- package/dist-lib/components/engine/StrategieenPage.d.ts.map +1 -0
- package/dist-lib/components/engine/StrategieenPage.js +80 -0
- package/dist-lib/components/pickstation/PickstationPage.d.ts.map +1 -1
- package/dist-lib/components/pickstation/PickstationPage.js +16 -4
- package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
- package/dist-lib/hooks/useOrderPlanning.js +37 -3
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +2 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1496 -272
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1496 -272
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1496 -272
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1523 -266
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +2944 -496
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/ai-gateway.server.d.ts +2 -0
- package/dist-lib/lib/ai-gateway.server.d.ts.map +1 -0
- package/dist-lib/lib/ai-gateway.server.js +11 -0
- package/dist-lib/lib/authGateway.server.d.ts +16 -0
- package/dist-lib/lib/authGateway.server.d.ts.map +1 -0
- package/dist-lib/lib/authGateway.server.js +200 -0
- package/dist-lib/lib/carriers.functions.d.ts +7100 -980
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +7100 -980
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +14630 -2390
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +1496 -272
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +41 -8
- package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +50282 -0
- package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/capacity.functions.js +90 -0
- package/dist-lib/lib/logisticsEngine/config.d.ts +140 -0
- package/dist-lib/lib/logisticsEngine/config.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/config.js +488 -0
- package/dist-lib/lib/logisticsEngine/enginePickTime.d.ts +29 -0
- package/dist-lib/lib/logisticsEngine/enginePickTime.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/enginePickTime.js +136 -0
- package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +12604 -0
- package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/evaluate.functions.js +104 -0
- package/dist-lib/lib/logisticsEngine/expression.d.ts +21 -0
- package/dist-lib/lib/logisticsEngine/expression.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/expression.js +263 -0
- package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +25164 -0
- package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/formulas.functions.js +58 -0
- package/dist-lib/lib/logisticsEngine/safetyLayer.d.ts +83 -0
- package/dist-lib/lib/logisticsEngine/safetyLayer.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/safetyLayer.js +182 -0
- package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +100569 -0
- package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/strategies.functions.js +176 -0
- package/dist-lib/lib/logisticsEngine/variables.d.ts +29 -0
- package/dist-lib/lib/logisticsEngine/variables.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/variables.js +144 -0
- package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +50288 -0
- package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -0
- package/dist-lib/lib/logisticsEngine/wizard.functions.js +175 -0
- package/dist-lib/lib/pickstationI18n.d.ts +2 -0
- package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
- package/dist-lib/lib/pickstationI18n.js +12 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts +5 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
- package/dist-lib/lib/pickstationOrders.server.js +29 -0
- package/dist-lib/lib/pickstationTypes.d.ts +4 -0
- package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
- package/package.json +24 -4
|
@@ -265,6 +265,165 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
265
265
|
};
|
|
266
266
|
Relationships: [];
|
|
267
267
|
};
|
|
268
|
+
ai_credentials: {
|
|
269
|
+
Row: {
|
|
270
|
+
active: boolean;
|
|
271
|
+
api_key: string;
|
|
272
|
+
created_at: string;
|
|
273
|
+
created_by: string | null;
|
|
274
|
+
id: string;
|
|
275
|
+
label: string;
|
|
276
|
+
provider_id: string;
|
|
277
|
+
updated_at: string;
|
|
278
|
+
};
|
|
279
|
+
Insert: {
|
|
280
|
+
active?: boolean;
|
|
281
|
+
api_key: string;
|
|
282
|
+
created_at?: string;
|
|
283
|
+
created_by?: string | null;
|
|
284
|
+
id?: string;
|
|
285
|
+
label: string;
|
|
286
|
+
provider_id: string;
|
|
287
|
+
updated_at?: string;
|
|
288
|
+
};
|
|
289
|
+
Update: {
|
|
290
|
+
active?: boolean;
|
|
291
|
+
api_key?: string;
|
|
292
|
+
created_at?: string;
|
|
293
|
+
created_by?: string | null;
|
|
294
|
+
id?: string;
|
|
295
|
+
label?: string;
|
|
296
|
+
provider_id?: string;
|
|
297
|
+
updated_at?: string;
|
|
298
|
+
};
|
|
299
|
+
Relationships: [{
|
|
300
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
301
|
+
columns: ["provider_id"];
|
|
302
|
+
isOneToOne: false;
|
|
303
|
+
referencedRelation: "ai_providers";
|
|
304
|
+
referencedColumns: ["id"];
|
|
305
|
+
}];
|
|
306
|
+
};
|
|
307
|
+
ai_models: {
|
|
308
|
+
Row: {
|
|
309
|
+
active: boolean;
|
|
310
|
+
context_window: number | null;
|
|
311
|
+
created_at: string;
|
|
312
|
+
display_name: string;
|
|
313
|
+
id: string;
|
|
314
|
+
is_default: boolean;
|
|
315
|
+
modality: string;
|
|
316
|
+
provider_id: string;
|
|
317
|
+
slug: string;
|
|
318
|
+
updated_at: string;
|
|
319
|
+
};
|
|
320
|
+
Insert: {
|
|
321
|
+
active?: boolean;
|
|
322
|
+
context_window?: number | null;
|
|
323
|
+
created_at?: string;
|
|
324
|
+
display_name: string;
|
|
325
|
+
id?: string;
|
|
326
|
+
is_default?: boolean;
|
|
327
|
+
modality?: string;
|
|
328
|
+
provider_id: string;
|
|
329
|
+
slug: string;
|
|
330
|
+
updated_at?: string;
|
|
331
|
+
};
|
|
332
|
+
Update: {
|
|
333
|
+
active?: boolean;
|
|
334
|
+
context_window?: number | null;
|
|
335
|
+
created_at?: string;
|
|
336
|
+
display_name?: string;
|
|
337
|
+
id?: string;
|
|
338
|
+
is_default?: boolean;
|
|
339
|
+
modality?: string;
|
|
340
|
+
provider_id?: string;
|
|
341
|
+
slug?: string;
|
|
342
|
+
updated_at?: string;
|
|
343
|
+
};
|
|
344
|
+
Relationships: [{
|
|
345
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
346
|
+
columns: ["provider_id"];
|
|
347
|
+
isOneToOne: false;
|
|
348
|
+
referencedRelation: "ai_providers";
|
|
349
|
+
referencedColumns: ["id"];
|
|
350
|
+
}];
|
|
351
|
+
};
|
|
352
|
+
ai_module_bindings: {
|
|
353
|
+
Row: {
|
|
354
|
+
consumer_module_id: string;
|
|
355
|
+
created_at: string;
|
|
356
|
+
credential_id: string;
|
|
357
|
+
id: string;
|
|
358
|
+
model_id: string;
|
|
359
|
+
notes: string | null;
|
|
360
|
+
updated_at: string;
|
|
361
|
+
};
|
|
362
|
+
Insert: {
|
|
363
|
+
consumer_module_id: string;
|
|
364
|
+
created_at?: string;
|
|
365
|
+
credential_id: string;
|
|
366
|
+
id?: string;
|
|
367
|
+
model_id: string;
|
|
368
|
+
notes?: string | null;
|
|
369
|
+
updated_at?: string;
|
|
370
|
+
};
|
|
371
|
+
Update: {
|
|
372
|
+
consumer_module_id?: string;
|
|
373
|
+
created_at?: string;
|
|
374
|
+
credential_id?: string;
|
|
375
|
+
id?: string;
|
|
376
|
+
model_id?: string;
|
|
377
|
+
notes?: string | null;
|
|
378
|
+
updated_at?: string;
|
|
379
|
+
};
|
|
380
|
+
Relationships: [{
|
|
381
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
382
|
+
columns: ["credential_id"];
|
|
383
|
+
isOneToOne: false;
|
|
384
|
+
referencedRelation: "ai_credentials";
|
|
385
|
+
referencedColumns: ["id"];
|
|
386
|
+
}, {
|
|
387
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
388
|
+
columns: ["model_id"];
|
|
389
|
+
isOneToOne: false;
|
|
390
|
+
referencedRelation: "ai_models";
|
|
391
|
+
referencedColumns: ["id"];
|
|
392
|
+
}];
|
|
393
|
+
};
|
|
394
|
+
ai_providers: {
|
|
395
|
+
Row: {
|
|
396
|
+
active: boolean;
|
|
397
|
+
auth_type: string;
|
|
398
|
+
base_url: string | null;
|
|
399
|
+
created_at: string;
|
|
400
|
+
id: string;
|
|
401
|
+
name: string;
|
|
402
|
+
slug: string;
|
|
403
|
+
updated_at: string;
|
|
404
|
+
};
|
|
405
|
+
Insert: {
|
|
406
|
+
active?: boolean;
|
|
407
|
+
auth_type?: string;
|
|
408
|
+
base_url?: string | null;
|
|
409
|
+
created_at?: string;
|
|
410
|
+
id?: string;
|
|
411
|
+
name: string;
|
|
412
|
+
slug: string;
|
|
413
|
+
updated_at?: string;
|
|
414
|
+
};
|
|
415
|
+
Update: {
|
|
416
|
+
active?: boolean;
|
|
417
|
+
auth_type?: string;
|
|
418
|
+
base_url?: string | null;
|
|
419
|
+
created_at?: string;
|
|
420
|
+
id?: string;
|
|
421
|
+
name?: string;
|
|
422
|
+
slug?: string;
|
|
423
|
+
updated_at?: string;
|
|
424
|
+
};
|
|
425
|
+
Relationships: [];
|
|
426
|
+
};
|
|
268
427
|
app_settings: {
|
|
269
428
|
Row: {
|
|
270
429
|
created_at: string;
|
|
@@ -892,6 +1051,141 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
892
1051
|
};
|
|
893
1052
|
Relationships: [];
|
|
894
1053
|
};
|
|
1054
|
+
cart_planning_pick_times: {
|
|
1055
|
+
Row: {
|
|
1056
|
+
created_at: string;
|
|
1057
|
+
id: string;
|
|
1058
|
+
pot_size: string;
|
|
1059
|
+
seconds_per_cart: number;
|
|
1060
|
+
updated_at: string;
|
|
1061
|
+
};
|
|
1062
|
+
Insert: {
|
|
1063
|
+
created_at?: string;
|
|
1064
|
+
id?: string;
|
|
1065
|
+
pot_size: string;
|
|
1066
|
+
seconds_per_cart: number;
|
|
1067
|
+
updated_at?: string;
|
|
1068
|
+
};
|
|
1069
|
+
Update: {
|
|
1070
|
+
created_at?: string;
|
|
1071
|
+
id?: string;
|
|
1072
|
+
pot_size?: string;
|
|
1073
|
+
seconds_per_cart?: number;
|
|
1074
|
+
updated_at?: string;
|
|
1075
|
+
};
|
|
1076
|
+
Relationships: [];
|
|
1077
|
+
};
|
|
1078
|
+
cart_planning_product_overrides: {
|
|
1079
|
+
Row: {
|
|
1080
|
+
created_at: string;
|
|
1081
|
+
id: string;
|
|
1082
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1083
|
+
never_mix: boolean;
|
|
1084
|
+
notes: string | null;
|
|
1085
|
+
product_id: string;
|
|
1086
|
+
updated_at: string;
|
|
1087
|
+
};
|
|
1088
|
+
Insert: {
|
|
1089
|
+
created_at?: string;
|
|
1090
|
+
id?: string;
|
|
1091
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1092
|
+
never_mix?: boolean;
|
|
1093
|
+
notes?: string | null;
|
|
1094
|
+
product_id: string;
|
|
1095
|
+
updated_at?: string;
|
|
1096
|
+
};
|
|
1097
|
+
Update: {
|
|
1098
|
+
created_at?: string;
|
|
1099
|
+
id?: string;
|
|
1100
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1101
|
+
never_mix?: boolean;
|
|
1102
|
+
notes?: string | null;
|
|
1103
|
+
product_id?: string;
|
|
1104
|
+
updated_at?: string;
|
|
1105
|
+
};
|
|
1106
|
+
Relationships: [{
|
|
1107
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1108
|
+
columns: ["product_id"];
|
|
1109
|
+
isOneToOne: true;
|
|
1110
|
+
referencedRelation: "products";
|
|
1111
|
+
referencedColumns: ["id"];
|
|
1112
|
+
}];
|
|
1113
|
+
};
|
|
1114
|
+
cart_planning_settings: {
|
|
1115
|
+
Row: {
|
|
1116
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1117
|
+
buffer_grouping_mode: string;
|
|
1118
|
+
combine_floriday_orders: boolean;
|
|
1119
|
+
combine_floriday_orders_window: string;
|
|
1120
|
+
combine_orders_scope: string;
|
|
1121
|
+
default_workers: number;
|
|
1122
|
+
id: number;
|
|
1123
|
+
max_beladingen_per_layer: number;
|
|
1124
|
+
max_customers_per_cart: number;
|
|
1125
|
+
max_one_customer_per_layer: boolean;
|
|
1126
|
+
max_party_share_per_layer_pct: number;
|
|
1127
|
+
optimization_strategy: string;
|
|
1128
|
+
own_cart_from_layers: number;
|
|
1129
|
+
pick_time_mode: string;
|
|
1130
|
+
plants_per_day: number;
|
|
1131
|
+
plants_per_hour: number;
|
|
1132
|
+
require_same_carrier: boolean;
|
|
1133
|
+
require_same_crate_type: boolean;
|
|
1134
|
+
require_same_delivery_date: boolean;
|
|
1135
|
+
require_same_delivery_location: boolean;
|
|
1136
|
+
updated_at: string;
|
|
1137
|
+
updated_by: string | null;
|
|
1138
|
+
};
|
|
1139
|
+
Insert: {
|
|
1140
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1141
|
+
buffer_grouping_mode?: string;
|
|
1142
|
+
combine_floriday_orders?: boolean;
|
|
1143
|
+
combine_floriday_orders_window?: string;
|
|
1144
|
+
combine_orders_scope?: string;
|
|
1145
|
+
default_workers?: number;
|
|
1146
|
+
id?: number;
|
|
1147
|
+
max_beladingen_per_layer?: number;
|
|
1148
|
+
max_customers_per_cart?: number;
|
|
1149
|
+
max_one_customer_per_layer?: boolean;
|
|
1150
|
+
max_party_share_per_layer_pct?: number;
|
|
1151
|
+
optimization_strategy?: string;
|
|
1152
|
+
own_cart_from_layers?: number;
|
|
1153
|
+
pick_time_mode?: string;
|
|
1154
|
+
plants_per_day?: number;
|
|
1155
|
+
plants_per_hour?: number;
|
|
1156
|
+
require_same_carrier?: boolean;
|
|
1157
|
+
require_same_crate_type?: boolean;
|
|
1158
|
+
require_same_delivery_date?: boolean;
|
|
1159
|
+
require_same_delivery_location?: boolean;
|
|
1160
|
+
updated_at?: string;
|
|
1161
|
+
updated_by?: string | null;
|
|
1162
|
+
};
|
|
1163
|
+
Update: {
|
|
1164
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1165
|
+
buffer_grouping_mode?: string;
|
|
1166
|
+
combine_floriday_orders?: boolean;
|
|
1167
|
+
combine_floriday_orders_window?: string;
|
|
1168
|
+
combine_orders_scope?: string;
|
|
1169
|
+
default_workers?: number;
|
|
1170
|
+
id?: number;
|
|
1171
|
+
max_beladingen_per_layer?: number;
|
|
1172
|
+
max_customers_per_cart?: number;
|
|
1173
|
+
max_one_customer_per_layer?: boolean;
|
|
1174
|
+
max_party_share_per_layer_pct?: number;
|
|
1175
|
+
optimization_strategy?: string;
|
|
1176
|
+
own_cart_from_layers?: number;
|
|
1177
|
+
pick_time_mode?: string;
|
|
1178
|
+
plants_per_day?: number;
|
|
1179
|
+
plants_per_hour?: number;
|
|
1180
|
+
require_same_carrier?: boolean;
|
|
1181
|
+
require_same_crate_type?: boolean;
|
|
1182
|
+
require_same_delivery_date?: boolean;
|
|
1183
|
+
require_same_delivery_location?: boolean;
|
|
1184
|
+
updated_at?: string;
|
|
1185
|
+
updated_by?: string | null;
|
|
1186
|
+
};
|
|
1187
|
+
Relationships: [];
|
|
1188
|
+
};
|
|
895
1189
|
cart_replan_queue: {
|
|
896
1190
|
Row: {
|
|
897
1191
|
attempts: number;
|
|
@@ -922,6 +1216,39 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
922
1216
|
referencedColumns: ["id"];
|
|
923
1217
|
}];
|
|
924
1218
|
};
|
|
1219
|
+
cart_types: {
|
|
1220
|
+
Row: {
|
|
1221
|
+
created_at: string;
|
|
1222
|
+
id: string;
|
|
1223
|
+
is_default: boolean;
|
|
1224
|
+
layer_length_cm: number;
|
|
1225
|
+
layer_width_cm: number;
|
|
1226
|
+
layers_per_cart: number;
|
|
1227
|
+
name: string;
|
|
1228
|
+
updated_at: string;
|
|
1229
|
+
};
|
|
1230
|
+
Insert: {
|
|
1231
|
+
created_at?: string;
|
|
1232
|
+
id?: string;
|
|
1233
|
+
is_default?: boolean;
|
|
1234
|
+
layer_length_cm: number;
|
|
1235
|
+
layer_width_cm: number;
|
|
1236
|
+
layers_per_cart?: number;
|
|
1237
|
+
name: string;
|
|
1238
|
+
updated_at?: string;
|
|
1239
|
+
};
|
|
1240
|
+
Update: {
|
|
1241
|
+
created_at?: string;
|
|
1242
|
+
id?: string;
|
|
1243
|
+
is_default?: boolean;
|
|
1244
|
+
layer_length_cm?: number;
|
|
1245
|
+
layer_width_cm?: number;
|
|
1246
|
+
layers_per_cart?: number;
|
|
1247
|
+
name?: string;
|
|
1248
|
+
updated_at?: string;
|
|
1249
|
+
};
|
|
1250
|
+
Relationships: [];
|
|
1251
|
+
};
|
|
925
1252
|
collections: {
|
|
926
1253
|
Row: {
|
|
927
1254
|
created_at: string;
|
|
@@ -946,6 +1273,36 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
946
1273
|
};
|
|
947
1274
|
Relationships: [];
|
|
948
1275
|
};
|
|
1276
|
+
crate_types: {
|
|
1277
|
+
Row: {
|
|
1278
|
+
created_at: string;
|
|
1279
|
+
id: string;
|
|
1280
|
+
length_cm: number;
|
|
1281
|
+
name: string;
|
|
1282
|
+
plants_per_crate: number;
|
|
1283
|
+
updated_at: string;
|
|
1284
|
+
width_cm: number;
|
|
1285
|
+
};
|
|
1286
|
+
Insert: {
|
|
1287
|
+
created_at?: string;
|
|
1288
|
+
id?: string;
|
|
1289
|
+
length_cm: number;
|
|
1290
|
+
name: string;
|
|
1291
|
+
plants_per_crate?: number;
|
|
1292
|
+
updated_at?: string;
|
|
1293
|
+
width_cm: number;
|
|
1294
|
+
};
|
|
1295
|
+
Update: {
|
|
1296
|
+
created_at?: string;
|
|
1297
|
+
id?: string;
|
|
1298
|
+
length_cm?: number;
|
|
1299
|
+
name?: string;
|
|
1300
|
+
plants_per_crate?: number;
|
|
1301
|
+
updated_at?: string;
|
|
1302
|
+
width_cm?: number;
|
|
1303
|
+
};
|
|
1304
|
+
Relationships: [];
|
|
1305
|
+
};
|
|
949
1306
|
customer_audit_log: {
|
|
950
1307
|
Row: {
|
|
951
1308
|
action: string;
|
|
@@ -3271,127 +3628,28 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
3271
3628
|
referencedColumns: ["id"];
|
|
3272
3629
|
}];
|
|
3273
3630
|
};
|
|
3274
|
-
|
|
3631
|
+
floriday_auction_letters_cache: {
|
|
3275
3632
|
Row: {
|
|
3276
|
-
|
|
3633
|
+
auction_letter_code: string;
|
|
3634
|
+
clock_supply_id: string;
|
|
3277
3635
|
connection_id: string;
|
|
3278
|
-
|
|
3279
|
-
delivery_date: string | null;
|
|
3636
|
+
content_type: string;
|
|
3280
3637
|
fetched_at: string;
|
|
3281
|
-
floriday_id: string;
|
|
3282
3638
|
id: string;
|
|
3283
|
-
|
|
3284
|
-
sequence_number: number;
|
|
3285
|
-
status: string | null;
|
|
3286
|
-
updated_at: string;
|
|
3639
|
+
storage_path: string;
|
|
3287
3640
|
};
|
|
3288
3641
|
Insert: {
|
|
3289
|
-
|
|
3642
|
+
auction_letter_code: string;
|
|
3643
|
+
clock_supply_id: string;
|
|
3290
3644
|
connection_id: string;
|
|
3291
|
-
|
|
3292
|
-
delivery_date?: string | null;
|
|
3645
|
+
content_type?: string;
|
|
3293
3646
|
fetched_at?: string;
|
|
3294
|
-
floriday_id: string;
|
|
3295
3647
|
id?: string;
|
|
3296
|
-
|
|
3297
|
-
sequence_number?: number;
|
|
3298
|
-
status?: string | null;
|
|
3299
|
-
updated_at?: string;
|
|
3648
|
+
storage_path: string;
|
|
3300
3649
|
};
|
|
3301
3650
|
Update: {
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3305
|
-
delivery_date?: string | null;
|
|
3306
|
-
fetched_at?: string;
|
|
3307
|
-
floriday_id?: string;
|
|
3308
|
-
id?: string;
|
|
3309
|
-
is_deleted?: boolean;
|
|
3310
|
-
sequence_number?: number;
|
|
3311
|
-
status?: string | null;
|
|
3312
|
-
updated_at?: string;
|
|
3313
|
-
};
|
|
3314
|
-
Relationships: [{
|
|
3315
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
3316
|
-
columns: ["connection_id"];
|
|
3317
|
-
isOneToOne: false;
|
|
3318
|
-
referencedRelation: "floriday_connections";
|
|
3319
|
-
referencedColumns: ["id"];
|
|
3320
|
-
}];
|
|
3321
|
-
};
|
|
3322
|
-
floriday_agreements_cache: {
|
|
3323
|
-
Row: {
|
|
3324
|
-
buyer_organization_id: string | null;
|
|
3325
|
-
connection_id: string;
|
|
3326
|
-
data: import("../integrations/supabase/types").Json;
|
|
3327
|
-
fetched_at: string;
|
|
3328
|
-
floriday_id: string;
|
|
3329
|
-
id: string;
|
|
3330
|
-
is_deleted: boolean;
|
|
3331
|
-
sequence_number: number;
|
|
3332
|
-
status: string | null;
|
|
3333
|
-
updated_at: string;
|
|
3334
|
-
valid_from: string | null;
|
|
3335
|
-
valid_until: string | null;
|
|
3336
|
-
};
|
|
3337
|
-
Insert: {
|
|
3338
|
-
buyer_organization_id?: string | null;
|
|
3339
|
-
connection_id: string;
|
|
3340
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3341
|
-
fetched_at?: string;
|
|
3342
|
-
floriday_id: string;
|
|
3343
|
-
id?: string;
|
|
3344
|
-
is_deleted?: boolean;
|
|
3345
|
-
sequence_number?: number;
|
|
3346
|
-
status?: string | null;
|
|
3347
|
-
updated_at?: string;
|
|
3348
|
-
valid_from?: string | null;
|
|
3349
|
-
valid_until?: string | null;
|
|
3350
|
-
};
|
|
3351
|
-
Update: {
|
|
3352
|
-
buyer_organization_id?: string | null;
|
|
3353
|
-
connection_id?: string;
|
|
3354
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3355
|
-
fetched_at?: string;
|
|
3356
|
-
floriday_id?: string;
|
|
3357
|
-
id?: string;
|
|
3358
|
-
is_deleted?: boolean;
|
|
3359
|
-
sequence_number?: number;
|
|
3360
|
-
status?: string | null;
|
|
3361
|
-
updated_at?: string;
|
|
3362
|
-
valid_from?: string | null;
|
|
3363
|
-
valid_until?: string | null;
|
|
3364
|
-
};
|
|
3365
|
-
Relationships: [{
|
|
3366
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
3367
|
-
columns: ["connection_id"];
|
|
3368
|
-
isOneToOne: false;
|
|
3369
|
-
referencedRelation: "floriday_connections";
|
|
3370
|
-
referencedColumns: ["id"];
|
|
3371
|
-
}];
|
|
3372
|
-
};
|
|
3373
|
-
floriday_auction_letters_cache: {
|
|
3374
|
-
Row: {
|
|
3375
|
-
auction_letter_code: string;
|
|
3376
|
-
clock_supply_id: string;
|
|
3377
|
-
connection_id: string;
|
|
3378
|
-
content_type: string;
|
|
3379
|
-
fetched_at: string;
|
|
3380
|
-
id: string;
|
|
3381
|
-
storage_path: string;
|
|
3382
|
-
};
|
|
3383
|
-
Insert: {
|
|
3384
|
-
auction_letter_code: string;
|
|
3385
|
-
clock_supply_id: string;
|
|
3386
|
-
connection_id: string;
|
|
3387
|
-
content_type?: string;
|
|
3388
|
-
fetched_at?: string;
|
|
3389
|
-
id?: string;
|
|
3390
|
-
storage_path: string;
|
|
3391
|
-
};
|
|
3392
|
-
Update: {
|
|
3393
|
-
auction_letter_code?: string;
|
|
3394
|
-
clock_supply_id?: string;
|
|
3651
|
+
auction_letter_code?: string;
|
|
3652
|
+
clock_supply_id?: string;
|
|
3395
3653
|
connection_id?: string;
|
|
3396
3654
|
content_type?: string;
|
|
3397
3655
|
fetched_at?: string;
|
|
@@ -3868,6 +4126,27 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
3868
4126
|
referencedColumns: ["id"];
|
|
3869
4127
|
}];
|
|
3870
4128
|
};
|
|
4129
|
+
floriday_continuous_stock_cache: {
|
|
4130
|
+
Row: {
|
|
4131
|
+
connection_id: string;
|
|
4132
|
+
fetched_at: string;
|
|
4133
|
+
number_of_pieces: number;
|
|
4134
|
+
trade_item_id: string;
|
|
4135
|
+
};
|
|
4136
|
+
Insert: {
|
|
4137
|
+
connection_id: string;
|
|
4138
|
+
fetched_at?: string;
|
|
4139
|
+
number_of_pieces?: number;
|
|
4140
|
+
trade_item_id: string;
|
|
4141
|
+
};
|
|
4142
|
+
Update: {
|
|
4143
|
+
connection_id?: string;
|
|
4144
|
+
fetched_at?: string;
|
|
4145
|
+
number_of_pieces?: number;
|
|
4146
|
+
trade_item_id?: string;
|
|
4147
|
+
};
|
|
4148
|
+
Relationships: [];
|
|
4149
|
+
};
|
|
3871
4150
|
floriday_continuous_stock_queue: {
|
|
3872
4151
|
Row: {
|
|
3873
4152
|
attempts: number;
|
|
@@ -4643,6 +4922,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
4643
4922
|
Row: {
|
|
4644
4923
|
buyer_organization_id: string | null;
|
|
4645
4924
|
connection_id: string;
|
|
4925
|
+
controlled_at: string | null;
|
|
4926
|
+
controlled_by: string | null;
|
|
4646
4927
|
created_at: string;
|
|
4647
4928
|
data: import("../integrations/supabase/types").Json;
|
|
4648
4929
|
floriday_id: string;
|
|
@@ -4654,6 +4935,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
4654
4935
|
Insert: {
|
|
4655
4936
|
buyer_organization_id?: string | null;
|
|
4656
4937
|
connection_id: string;
|
|
4938
|
+
controlled_at?: string | null;
|
|
4939
|
+
controlled_by?: string | null;
|
|
4657
4940
|
created_at?: string;
|
|
4658
4941
|
data: import("../integrations/supabase/types").Json;
|
|
4659
4942
|
floriday_id: string;
|
|
@@ -4665,6 +4948,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
4665
4948
|
Update: {
|
|
4666
4949
|
buyer_organization_id?: string | null;
|
|
4667
4950
|
connection_id?: string;
|
|
4951
|
+
controlled_at?: string | null;
|
|
4952
|
+
controlled_by?: string | null;
|
|
4668
4953
|
created_at?: string;
|
|
4669
4954
|
data?: import("../integrations/supabase/types").Json;
|
|
4670
4955
|
floriday_id?: string;
|
|
@@ -4846,6 +5131,45 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
4846
5131
|
referencedColumns: ["id"];
|
|
4847
5132
|
}];
|
|
4848
5133
|
};
|
|
5134
|
+
floriday_trade_settings_customers_cache: {
|
|
5135
|
+
Row: {
|
|
5136
|
+
connection_id: string;
|
|
5137
|
+
data: import("../integrations/supabase/types").Json;
|
|
5138
|
+
fetched_at: string;
|
|
5139
|
+
floriday_id: string;
|
|
5140
|
+
id: string;
|
|
5141
|
+
is_deleted: boolean;
|
|
5142
|
+
sequence_number: number;
|
|
5143
|
+
updated_at: string;
|
|
5144
|
+
};
|
|
5145
|
+
Insert: {
|
|
5146
|
+
connection_id: string;
|
|
5147
|
+
data: import("../integrations/supabase/types").Json;
|
|
5148
|
+
fetched_at?: string;
|
|
5149
|
+
floriday_id: string;
|
|
5150
|
+
id?: string;
|
|
5151
|
+
is_deleted?: boolean;
|
|
5152
|
+
sequence_number?: number;
|
|
5153
|
+
updated_at?: string;
|
|
5154
|
+
};
|
|
5155
|
+
Update: {
|
|
5156
|
+
connection_id?: string;
|
|
5157
|
+
data?: import("../integrations/supabase/types").Json;
|
|
5158
|
+
fetched_at?: string;
|
|
5159
|
+
floriday_id?: string;
|
|
5160
|
+
id?: string;
|
|
5161
|
+
is_deleted?: boolean;
|
|
5162
|
+
sequence_number?: number;
|
|
5163
|
+
updated_at?: string;
|
|
5164
|
+
};
|
|
5165
|
+
Relationships: [{
|
|
5166
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
5167
|
+
columns: ["connection_id"];
|
|
5168
|
+
isOneToOne: false;
|
|
5169
|
+
referencedRelation: "floriday_connections";
|
|
5170
|
+
referencedColumns: ["id"];
|
|
5171
|
+
}];
|
|
5172
|
+
};
|
|
4849
5173
|
floriday_trips_cache: {
|
|
4850
5174
|
Row: {
|
|
4851
5175
|
carrier_organization_id: string | null;
|
|
@@ -4894,6 +5218,27 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
4894
5218
|
referencedColumns: ["id"];
|
|
4895
5219
|
}];
|
|
4896
5220
|
};
|
|
5221
|
+
floriday_vbn_required_characteristics: {
|
|
5222
|
+
Row: {
|
|
5223
|
+
required_codes: string[];
|
|
5224
|
+
updated_at: string;
|
|
5225
|
+
updated_by: string | null;
|
|
5226
|
+
vbn_code: string;
|
|
5227
|
+
};
|
|
5228
|
+
Insert: {
|
|
5229
|
+
required_codes?: string[];
|
|
5230
|
+
updated_at?: string;
|
|
5231
|
+
updated_by?: string | null;
|
|
5232
|
+
vbn_code: string;
|
|
5233
|
+
};
|
|
5234
|
+
Update: {
|
|
5235
|
+
required_codes?: string[];
|
|
5236
|
+
updated_at?: string;
|
|
5237
|
+
updated_by?: string | null;
|
|
5238
|
+
vbn_code?: string;
|
|
5239
|
+
};
|
|
5240
|
+
Relationships: [];
|
|
5241
|
+
};
|
|
4897
5242
|
floriday_warehouses_cache: {
|
|
4898
5243
|
Row: {
|
|
4899
5244
|
connection_id: string;
|
|
@@ -5596,115 +5941,394 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
5596
5941
|
};
|
|
5597
5942
|
Relationships: [];
|
|
5598
5943
|
};
|
|
5599
|
-
|
|
5944
|
+
logistics_capacity_events: {
|
|
5600
5945
|
Row: {
|
|
5601
|
-
|
|
5602
|
-
body_text: string | null;
|
|
5603
|
-
connection_id: string | null;
|
|
5946
|
+
available_carts: number;
|
|
5604
5947
|
created_at: string;
|
|
5605
|
-
error_message: string | null;
|
|
5606
|
-
external_id: string | null;
|
|
5607
|
-
from_email: string | null;
|
|
5608
|
-
from_name: string | null;
|
|
5609
5948
|
id: string;
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5949
|
+
measures: import("../integrations/supabase/types").Json;
|
|
5950
|
+
note: string | null;
|
|
5951
|
+
outcome: string;
|
|
5952
|
+
required_carts: number;
|
|
5953
|
+
reserve_minutes: number;
|
|
5954
|
+
shortage_carts: number;
|
|
5614
5955
|
status: string;
|
|
5615
|
-
|
|
5616
|
-
uid: number | null;
|
|
5617
|
-
updated_at: string;
|
|
5956
|
+
user_id: string;
|
|
5618
5957
|
};
|
|
5619
5958
|
Insert: {
|
|
5620
|
-
|
|
5621
|
-
body_text?: string | null;
|
|
5622
|
-
connection_id?: string | null;
|
|
5959
|
+
available_carts?: number;
|
|
5623
5960
|
created_at?: string;
|
|
5624
|
-
error_message?: string | null;
|
|
5625
|
-
external_id?: string | null;
|
|
5626
|
-
from_email?: string | null;
|
|
5627
|
-
from_name?: string | null;
|
|
5628
5961
|
id?: string;
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5962
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
5963
|
+
note?: string | null;
|
|
5964
|
+
outcome?: string;
|
|
5965
|
+
required_carts?: number;
|
|
5966
|
+
reserve_minutes?: number;
|
|
5967
|
+
shortage_carts?: number;
|
|
5968
|
+
status: string;
|
|
5969
|
+
user_id: string;
|
|
5637
5970
|
};
|
|
5638
5971
|
Update: {
|
|
5639
|
-
|
|
5640
|
-
body_text?: string | null;
|
|
5641
|
-
connection_id?: string | null;
|
|
5972
|
+
available_carts?: number;
|
|
5642
5973
|
created_at?: string;
|
|
5643
|
-
error_message?: string | null;
|
|
5644
|
-
external_id?: string | null;
|
|
5645
|
-
from_email?: string | null;
|
|
5646
|
-
from_name?: string | null;
|
|
5647
5974
|
id?: string;
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5975
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
5976
|
+
note?: string | null;
|
|
5977
|
+
outcome?: string;
|
|
5978
|
+
required_carts?: number;
|
|
5979
|
+
reserve_minutes?: number;
|
|
5980
|
+
shortage_carts?: number;
|
|
5652
5981
|
status?: string;
|
|
5653
|
-
|
|
5654
|
-
uid?: number | null;
|
|
5655
|
-
updated_at?: string;
|
|
5982
|
+
user_id?: string;
|
|
5656
5983
|
};
|
|
5657
|
-
Relationships: [
|
|
5658
|
-
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
5659
|
-
columns: ["connection_id"];
|
|
5660
|
-
isOneToOne: false;
|
|
5661
|
-
referencedRelation: "email_auth_connections";
|
|
5662
|
-
referencedColumns: ["id"];
|
|
5663
|
-
}, {
|
|
5664
|
-
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
5665
|
-
columns: ["connection_id"];
|
|
5666
|
-
isOneToOne: false;
|
|
5667
|
-
referencedRelation: "email_auth_connections_safe";
|
|
5668
|
-
referencedColumns: ["id"];
|
|
5669
|
-
}, {
|
|
5670
|
-
foreignKeyName: "mailbox_messages_profile_id_fkey";
|
|
5671
|
-
columns: ["profile_id"];
|
|
5672
|
-
isOneToOne: false;
|
|
5673
|
-
referencedRelation: "imap_profiles";
|
|
5674
|
-
referencedColumns: ["id"];
|
|
5675
|
-
}];
|
|
5984
|
+
Relationships: [];
|
|
5676
5985
|
};
|
|
5677
|
-
|
|
5986
|
+
logistics_capacity_settings: {
|
|
5678
5987
|
Row: {
|
|
5679
|
-
confidence: number | null;
|
|
5680
5988
|
created_at: string;
|
|
5681
|
-
|
|
5682
|
-
delivery_date: string | null;
|
|
5683
|
-
id: string;
|
|
5684
|
-
matched_customer_id: string | null;
|
|
5685
|
-
message_id: string;
|
|
5686
|
-
notes: string | null;
|
|
5687
|
-
order_number: string | null;
|
|
5688
|
-
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
5689
|
-
reviewed_at: string | null;
|
|
5690
|
-
reviewed_by: string | null;
|
|
5691
|
-
status: string;
|
|
5989
|
+
settings: import("../integrations/supabase/types").Json;
|
|
5692
5990
|
updated_at: string;
|
|
5991
|
+
user_id: string;
|
|
5693
5992
|
};
|
|
5694
5993
|
Insert: {
|
|
5695
|
-
confidence?: number | null;
|
|
5696
5994
|
created_at?: string;
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5995
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
5996
|
+
updated_at?: string;
|
|
5997
|
+
user_id: string;
|
|
5998
|
+
};
|
|
5999
|
+
Update: {
|
|
6000
|
+
created_at?: string;
|
|
6001
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
6002
|
+
updated_at?: string;
|
|
6003
|
+
user_id?: string;
|
|
6004
|
+
};
|
|
6005
|
+
Relationships: [];
|
|
6006
|
+
};
|
|
6007
|
+
logistics_decisions: {
|
|
6008
|
+
Row: {
|
|
6009
|
+
created_at: string;
|
|
6010
|
+
explanation: string | null;
|
|
6011
|
+
id: string;
|
|
6012
|
+
input_snapshot: import("../integrations/supabase/types").Json;
|
|
6013
|
+
result: import("../integrations/supabase/types").Json;
|
|
6014
|
+
slot: string;
|
|
6015
|
+
strategy_id: string | null;
|
|
6016
|
+
subject_id: string;
|
|
6017
|
+
subject_type: string;
|
|
6018
|
+
user_id: string;
|
|
6019
|
+
};
|
|
6020
|
+
Insert: {
|
|
6021
|
+
created_at?: string;
|
|
6022
|
+
explanation?: string | null;
|
|
6023
|
+
id?: string;
|
|
6024
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
6025
|
+
result?: import("../integrations/supabase/types").Json;
|
|
6026
|
+
slot: string;
|
|
6027
|
+
strategy_id?: string | null;
|
|
6028
|
+
subject_id: string;
|
|
6029
|
+
subject_type: string;
|
|
6030
|
+
user_id: string;
|
|
6031
|
+
};
|
|
6032
|
+
Update: {
|
|
6033
|
+
created_at?: string;
|
|
6034
|
+
explanation?: string | null;
|
|
6035
|
+
id?: string;
|
|
6036
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
6037
|
+
result?: import("../integrations/supabase/types").Json;
|
|
6038
|
+
slot?: string;
|
|
6039
|
+
strategy_id?: string | null;
|
|
6040
|
+
subject_id?: string;
|
|
6041
|
+
subject_type?: string;
|
|
6042
|
+
user_id?: string;
|
|
6043
|
+
};
|
|
6044
|
+
Relationships: [{
|
|
6045
|
+
foreignKeyName: "logistics_decisions_strategy_id_fkey";
|
|
6046
|
+
columns: ["strategy_id"];
|
|
6047
|
+
isOneToOne: false;
|
|
6048
|
+
referencedRelation: "logistics_strategies";
|
|
6049
|
+
referencedColumns: ["id"];
|
|
6050
|
+
}];
|
|
6051
|
+
};
|
|
6052
|
+
logistics_formulas: {
|
|
6053
|
+
Row: {
|
|
6054
|
+
created_at: string;
|
|
6055
|
+
expression: string;
|
|
6056
|
+
id: string;
|
|
6057
|
+
notes: string | null;
|
|
6058
|
+
slot: string;
|
|
6059
|
+
strategy_id: string;
|
|
6060
|
+
updated_at: string;
|
|
6061
|
+
user_id: string;
|
|
6062
|
+
version: number;
|
|
6063
|
+
};
|
|
6064
|
+
Insert: {
|
|
6065
|
+
created_at?: string;
|
|
6066
|
+
expression?: string;
|
|
6067
|
+
id?: string;
|
|
6068
|
+
notes?: string | null;
|
|
6069
|
+
slot: string;
|
|
6070
|
+
strategy_id: string;
|
|
6071
|
+
updated_at?: string;
|
|
6072
|
+
user_id: string;
|
|
6073
|
+
version?: number;
|
|
6074
|
+
};
|
|
6075
|
+
Update: {
|
|
6076
|
+
created_at?: string;
|
|
6077
|
+
expression?: string;
|
|
6078
|
+
id?: string;
|
|
6079
|
+
notes?: string | null;
|
|
6080
|
+
slot?: string;
|
|
6081
|
+
strategy_id?: string;
|
|
6082
|
+
updated_at?: string;
|
|
6083
|
+
user_id?: string;
|
|
6084
|
+
version?: number;
|
|
6085
|
+
};
|
|
6086
|
+
Relationships: [{
|
|
6087
|
+
foreignKeyName: "logistics_formulas_strategy_id_fkey";
|
|
6088
|
+
columns: ["strategy_id"];
|
|
6089
|
+
isOneToOne: false;
|
|
6090
|
+
referencedRelation: "logistics_strategies";
|
|
6091
|
+
referencedColumns: ["id"];
|
|
6092
|
+
}];
|
|
6093
|
+
};
|
|
6094
|
+
logistics_strategies: {
|
|
6095
|
+
Row: {
|
|
6096
|
+
color: string;
|
|
6097
|
+
created_at: string;
|
|
6098
|
+
description: string | null;
|
|
6099
|
+
id: string;
|
|
6100
|
+
is_active: boolean;
|
|
6101
|
+
name: string;
|
|
6102
|
+
priority: number;
|
|
6103
|
+
updated_at: string;
|
|
6104
|
+
updated_by: string | null;
|
|
6105
|
+
user_id: string;
|
|
6106
|
+
version: number;
|
|
6107
|
+
};
|
|
6108
|
+
Insert: {
|
|
6109
|
+
color?: string;
|
|
6110
|
+
created_at?: string;
|
|
6111
|
+
description?: string | null;
|
|
6112
|
+
id?: string;
|
|
6113
|
+
is_active?: boolean;
|
|
6114
|
+
name: string;
|
|
6115
|
+
priority?: number;
|
|
6116
|
+
updated_at?: string;
|
|
6117
|
+
updated_by?: string | null;
|
|
6118
|
+
user_id: string;
|
|
6119
|
+
version?: number;
|
|
6120
|
+
};
|
|
6121
|
+
Update: {
|
|
6122
|
+
color?: string;
|
|
6123
|
+
created_at?: string;
|
|
6124
|
+
description?: string | null;
|
|
6125
|
+
id?: string;
|
|
6126
|
+
is_active?: boolean;
|
|
6127
|
+
name?: string;
|
|
6128
|
+
priority?: number;
|
|
6129
|
+
updated_at?: string;
|
|
6130
|
+
updated_by?: string | null;
|
|
6131
|
+
user_id?: string;
|
|
6132
|
+
version?: number;
|
|
6133
|
+
};
|
|
6134
|
+
Relationships: [];
|
|
6135
|
+
};
|
|
6136
|
+
logistics_strategy_schedules: {
|
|
6137
|
+
Row: {
|
|
6138
|
+
condition_expression: string | null;
|
|
6139
|
+
created_at: string;
|
|
6140
|
+
end_date: string | null;
|
|
6141
|
+
id: string;
|
|
6142
|
+
is_enabled: boolean;
|
|
6143
|
+
priority: number;
|
|
6144
|
+
rule_type: string;
|
|
6145
|
+
start_date: string | null;
|
|
6146
|
+
strategy_id: string;
|
|
6147
|
+
updated_at: string;
|
|
6148
|
+
user_id: string;
|
|
6149
|
+
};
|
|
6150
|
+
Insert: {
|
|
6151
|
+
condition_expression?: string | null;
|
|
6152
|
+
created_at?: string;
|
|
6153
|
+
end_date?: string | null;
|
|
6154
|
+
id?: string;
|
|
6155
|
+
is_enabled?: boolean;
|
|
6156
|
+
priority?: number;
|
|
6157
|
+
rule_type: string;
|
|
6158
|
+
start_date?: string | null;
|
|
6159
|
+
strategy_id: string;
|
|
6160
|
+
updated_at?: string;
|
|
6161
|
+
user_id: string;
|
|
6162
|
+
};
|
|
6163
|
+
Update: {
|
|
6164
|
+
condition_expression?: string | null;
|
|
6165
|
+
created_at?: string;
|
|
6166
|
+
end_date?: string | null;
|
|
6167
|
+
id?: string;
|
|
6168
|
+
is_enabled?: boolean;
|
|
6169
|
+
priority?: number;
|
|
6170
|
+
rule_type?: string;
|
|
6171
|
+
start_date?: string | null;
|
|
6172
|
+
strategy_id?: string;
|
|
6173
|
+
updated_at?: string;
|
|
6174
|
+
user_id?: string;
|
|
6175
|
+
};
|
|
6176
|
+
Relationships: [{
|
|
6177
|
+
foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
|
|
6178
|
+
columns: ["strategy_id"];
|
|
6179
|
+
isOneToOne: false;
|
|
6180
|
+
referencedRelation: "logistics_strategies";
|
|
6181
|
+
referencedColumns: ["id"];
|
|
6182
|
+
}];
|
|
6183
|
+
};
|
|
6184
|
+
logistics_variables: {
|
|
6185
|
+
Row: {
|
|
6186
|
+
created_at: string;
|
|
6187
|
+
default_value: string | null;
|
|
6188
|
+
description: string | null;
|
|
6189
|
+
id: string;
|
|
6190
|
+
is_builtin: boolean;
|
|
6191
|
+
key: string;
|
|
6192
|
+
label: string;
|
|
6193
|
+
updated_at: string;
|
|
6194
|
+
user_id: string;
|
|
6195
|
+
value_type: string;
|
|
6196
|
+
};
|
|
6197
|
+
Insert: {
|
|
6198
|
+
created_at?: string;
|
|
6199
|
+
default_value?: string | null;
|
|
6200
|
+
description?: string | null;
|
|
6201
|
+
id?: string;
|
|
6202
|
+
is_builtin?: boolean;
|
|
6203
|
+
key: string;
|
|
6204
|
+
label: string;
|
|
6205
|
+
updated_at?: string;
|
|
6206
|
+
user_id: string;
|
|
6207
|
+
value_type: string;
|
|
6208
|
+
};
|
|
6209
|
+
Update: {
|
|
6210
|
+
created_at?: string;
|
|
6211
|
+
default_value?: string | null;
|
|
6212
|
+
description?: string | null;
|
|
6213
|
+
id?: string;
|
|
6214
|
+
is_builtin?: boolean;
|
|
6215
|
+
key?: string;
|
|
6216
|
+
label?: string;
|
|
6217
|
+
updated_at?: string;
|
|
6218
|
+
user_id?: string;
|
|
6219
|
+
value_type?: string;
|
|
6220
|
+
};
|
|
6221
|
+
Relationships: [];
|
|
6222
|
+
};
|
|
6223
|
+
mailbox_messages: {
|
|
6224
|
+
Row: {
|
|
6225
|
+
body_html: string | null;
|
|
6226
|
+
body_text: string | null;
|
|
6227
|
+
connection_id: string | null;
|
|
6228
|
+
created_at: string;
|
|
6229
|
+
error_message: string | null;
|
|
6230
|
+
external_id: string | null;
|
|
6231
|
+
from_email: string | null;
|
|
6232
|
+
from_name: string | null;
|
|
6233
|
+
id: string;
|
|
6234
|
+
message_id: string | null;
|
|
6235
|
+
profile_id: string | null;
|
|
6236
|
+
raw_size: number | null;
|
|
6237
|
+
received_at: string | null;
|
|
6238
|
+
status: string;
|
|
6239
|
+
subject: string | null;
|
|
6240
|
+
uid: number | null;
|
|
6241
|
+
updated_at: string;
|
|
6242
|
+
};
|
|
6243
|
+
Insert: {
|
|
6244
|
+
body_html?: string | null;
|
|
6245
|
+
body_text?: string | null;
|
|
6246
|
+
connection_id?: string | null;
|
|
6247
|
+
created_at?: string;
|
|
6248
|
+
error_message?: string | null;
|
|
6249
|
+
external_id?: string | null;
|
|
6250
|
+
from_email?: string | null;
|
|
6251
|
+
from_name?: string | null;
|
|
6252
|
+
id?: string;
|
|
6253
|
+
message_id?: string | null;
|
|
6254
|
+
profile_id?: string | null;
|
|
6255
|
+
raw_size?: number | null;
|
|
6256
|
+
received_at?: string | null;
|
|
6257
|
+
status?: string;
|
|
6258
|
+
subject?: string | null;
|
|
6259
|
+
uid?: number | null;
|
|
6260
|
+
updated_at?: string;
|
|
6261
|
+
};
|
|
6262
|
+
Update: {
|
|
6263
|
+
body_html?: string | null;
|
|
6264
|
+
body_text?: string | null;
|
|
6265
|
+
connection_id?: string | null;
|
|
6266
|
+
created_at?: string;
|
|
6267
|
+
error_message?: string | null;
|
|
6268
|
+
external_id?: string | null;
|
|
6269
|
+
from_email?: string | null;
|
|
6270
|
+
from_name?: string | null;
|
|
6271
|
+
id?: string;
|
|
6272
|
+
message_id?: string | null;
|
|
6273
|
+
profile_id?: string | null;
|
|
6274
|
+
raw_size?: number | null;
|
|
6275
|
+
received_at?: string | null;
|
|
6276
|
+
status?: string;
|
|
6277
|
+
subject?: string | null;
|
|
6278
|
+
uid?: number | null;
|
|
6279
|
+
updated_at?: string;
|
|
6280
|
+
};
|
|
6281
|
+
Relationships: [{
|
|
6282
|
+
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
6283
|
+
columns: ["connection_id"];
|
|
6284
|
+
isOneToOne: false;
|
|
6285
|
+
referencedRelation: "email_auth_connections";
|
|
6286
|
+
referencedColumns: ["id"];
|
|
6287
|
+
}, {
|
|
6288
|
+
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
6289
|
+
columns: ["connection_id"];
|
|
6290
|
+
isOneToOne: false;
|
|
6291
|
+
referencedRelation: "email_auth_connections_safe";
|
|
6292
|
+
referencedColumns: ["id"];
|
|
6293
|
+
}, {
|
|
6294
|
+
foreignKeyName: "mailbox_messages_profile_id_fkey";
|
|
6295
|
+
columns: ["profile_id"];
|
|
6296
|
+
isOneToOne: false;
|
|
6297
|
+
referencedRelation: "imap_profiles";
|
|
6298
|
+
referencedColumns: ["id"];
|
|
6299
|
+
}];
|
|
6300
|
+
};
|
|
6301
|
+
mailbox_order_proposals: {
|
|
6302
|
+
Row: {
|
|
6303
|
+
confidence: number | null;
|
|
6304
|
+
created_at: string;
|
|
6305
|
+
created_order_id: string | null;
|
|
6306
|
+
delivery_date: string | null;
|
|
6307
|
+
id: string;
|
|
6308
|
+
matched_customer_id: string | null;
|
|
6309
|
+
message_id: string;
|
|
6310
|
+
notes: string | null;
|
|
6311
|
+
order_number: string | null;
|
|
6312
|
+
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
6313
|
+
reviewed_at: string | null;
|
|
6314
|
+
reviewed_by: string | null;
|
|
6315
|
+
status: string;
|
|
6316
|
+
updated_at: string;
|
|
6317
|
+
};
|
|
6318
|
+
Insert: {
|
|
6319
|
+
confidence?: number | null;
|
|
6320
|
+
created_at?: string;
|
|
6321
|
+
created_order_id?: string | null;
|
|
6322
|
+
delivery_date?: string | null;
|
|
6323
|
+
id?: string;
|
|
6324
|
+
matched_customer_id?: string | null;
|
|
6325
|
+
message_id: string;
|
|
6326
|
+
notes?: string | null;
|
|
6327
|
+
order_number?: string | null;
|
|
6328
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
6329
|
+
reviewed_at?: string | null;
|
|
6330
|
+
reviewed_by?: string | null;
|
|
6331
|
+
status?: string;
|
|
5708
6332
|
updated_at?: string;
|
|
5709
6333
|
};
|
|
5710
6334
|
Update: {
|
|
@@ -5991,39 +6615,60 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
5991
6615
|
};
|
|
5992
6616
|
manufacture_products: {
|
|
5993
6617
|
Row: {
|
|
6618
|
+
aantal_te_produceren: number;
|
|
5994
6619
|
created_at: string;
|
|
5995
6620
|
description: string | null;
|
|
5996
6621
|
id: string;
|
|
5997
6622
|
is_active: boolean;
|
|
6623
|
+
location_id: string | null;
|
|
5998
6624
|
name: string;
|
|
6625
|
+
partij_nummer: string | null;
|
|
6626
|
+
photos: import("../integrations/supabase/types").Json;
|
|
5999
6627
|
produced_stock: number;
|
|
6000
6628
|
product_code: string;
|
|
6001
6629
|
tenant_id: string;
|
|
6630
|
+
unit: string;
|
|
6002
6631
|
updated_at: string;
|
|
6003
6632
|
};
|
|
6004
6633
|
Insert: {
|
|
6634
|
+
aantal_te_produceren?: number;
|
|
6005
6635
|
created_at?: string;
|
|
6006
6636
|
description?: string | null;
|
|
6007
6637
|
id?: string;
|
|
6008
6638
|
is_active?: boolean;
|
|
6639
|
+
location_id?: string | null;
|
|
6009
6640
|
name: string;
|
|
6641
|
+
partij_nummer?: string | null;
|
|
6642
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
6010
6643
|
produced_stock?: number;
|
|
6011
6644
|
product_code: string;
|
|
6012
6645
|
tenant_id: string;
|
|
6646
|
+
unit?: string;
|
|
6013
6647
|
updated_at?: string;
|
|
6014
6648
|
};
|
|
6015
6649
|
Update: {
|
|
6650
|
+
aantal_te_produceren?: number;
|
|
6016
6651
|
created_at?: string;
|
|
6017
6652
|
description?: string | null;
|
|
6018
6653
|
id?: string;
|
|
6019
6654
|
is_active?: boolean;
|
|
6655
|
+
location_id?: string | null;
|
|
6020
6656
|
name?: string;
|
|
6657
|
+
partij_nummer?: string | null;
|
|
6658
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
6021
6659
|
produced_stock?: number;
|
|
6022
6660
|
product_code?: string;
|
|
6023
6661
|
tenant_id?: string;
|
|
6662
|
+
unit?: string;
|
|
6024
6663
|
updated_at?: string;
|
|
6025
6664
|
};
|
|
6026
|
-
Relationships: [
|
|
6665
|
+
Relationships: [{
|
|
6666
|
+
foreignKeyName: "manufacture_products_location_id_fkey";
|
|
6667
|
+
columns: ["location_id"];
|
|
6668
|
+
isOneToOne: false;
|
|
6669
|
+
referencedRelation: "locations";
|
|
6670
|
+
referencedColumns: ["id"];
|
|
6671
|
+
}];
|
|
6027
6672
|
};
|
|
6028
6673
|
monteurs: {
|
|
6029
6674
|
Row: {
|
|
@@ -6754,6 +7399,42 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
6754
7399
|
};
|
|
6755
7400
|
Relationships: [];
|
|
6756
7401
|
};
|
|
7402
|
+
order_buffers: {
|
|
7403
|
+
Row: {
|
|
7404
|
+
buffer_key: string;
|
|
7405
|
+
created_at: string;
|
|
7406
|
+
customer_id: string | null;
|
|
7407
|
+
grouping_mode: string;
|
|
7408
|
+
id: string;
|
|
7409
|
+
pickup_date: string | null;
|
|
7410
|
+
pickup_location: string | null;
|
|
7411
|
+
plan_locked_at: string | null;
|
|
7412
|
+
updated_at: string;
|
|
7413
|
+
};
|
|
7414
|
+
Insert: {
|
|
7415
|
+
buffer_key: string;
|
|
7416
|
+
created_at?: string;
|
|
7417
|
+
customer_id?: string | null;
|
|
7418
|
+
grouping_mode: string;
|
|
7419
|
+
id?: string;
|
|
7420
|
+
pickup_date?: string | null;
|
|
7421
|
+
pickup_location?: string | null;
|
|
7422
|
+
plan_locked_at?: string | null;
|
|
7423
|
+
updated_at?: string;
|
|
7424
|
+
};
|
|
7425
|
+
Update: {
|
|
7426
|
+
buffer_key?: string;
|
|
7427
|
+
created_at?: string;
|
|
7428
|
+
customer_id?: string | null;
|
|
7429
|
+
grouping_mode?: string;
|
|
7430
|
+
id?: string;
|
|
7431
|
+
pickup_date?: string | null;
|
|
7432
|
+
pickup_location?: string | null;
|
|
7433
|
+
plan_locked_at?: string | null;
|
|
7434
|
+
updated_at?: string;
|
|
7435
|
+
};
|
|
7436
|
+
Relationships: [];
|
|
7437
|
+
};
|
|
6757
7438
|
order_cart_items: {
|
|
6758
7439
|
Row: {
|
|
6759
7440
|
cart_id: string;
|
|
@@ -6820,6 +7501,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
6820
7501
|
order_carts: {
|
|
6821
7502
|
Row: {
|
|
6822
7503
|
algorithm_version: number;
|
|
7504
|
+
buffer_id: string | null;
|
|
6823
7505
|
cart_number: number;
|
|
6824
7506
|
created_at: string;
|
|
6825
7507
|
id: string;
|
|
@@ -6827,13 +7509,14 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
6827
7509
|
is_complete: boolean;
|
|
6828
7510
|
notes: string | null;
|
|
6829
7511
|
occupancy_pct: number;
|
|
6830
|
-
order_id: string;
|
|
7512
|
+
order_id: string | null;
|
|
6831
7513
|
source: string;
|
|
6832
7514
|
total_layers_used: number;
|
|
6833
7515
|
updated_at: string;
|
|
6834
7516
|
};
|
|
6835
7517
|
Insert: {
|
|
6836
7518
|
algorithm_version?: number;
|
|
7519
|
+
buffer_id?: string | null;
|
|
6837
7520
|
cart_number: number;
|
|
6838
7521
|
created_at?: string;
|
|
6839
7522
|
id?: string;
|
|
@@ -6841,13 +7524,14 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
6841
7524
|
is_complete?: boolean;
|
|
6842
7525
|
notes?: string | null;
|
|
6843
7526
|
occupancy_pct?: number;
|
|
6844
|
-
order_id
|
|
7527
|
+
order_id?: string | null;
|
|
6845
7528
|
source?: string;
|
|
6846
7529
|
total_layers_used?: number;
|
|
6847
7530
|
updated_at?: string;
|
|
6848
7531
|
};
|
|
6849
7532
|
Update: {
|
|
6850
7533
|
algorithm_version?: number;
|
|
7534
|
+
buffer_id?: string | null;
|
|
6851
7535
|
cart_number?: number;
|
|
6852
7536
|
created_at?: string;
|
|
6853
7537
|
id?: string;
|
|
@@ -6855,12 +7539,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
6855
7539
|
is_complete?: boolean;
|
|
6856
7540
|
notes?: string | null;
|
|
6857
7541
|
occupancy_pct?: number;
|
|
6858
|
-
order_id?: string;
|
|
7542
|
+
order_id?: string | null;
|
|
6859
7543
|
source?: string;
|
|
6860
7544
|
total_layers_used?: number;
|
|
6861
7545
|
updated_at?: string;
|
|
6862
7546
|
};
|
|
6863
7547
|
Relationships: [{
|
|
7548
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7549
|
+
columns: ["buffer_id"];
|
|
7550
|
+
isOneToOne: false;
|
|
7551
|
+
referencedRelation: "order_buffers";
|
|
7552
|
+
referencedColumns: ["id"];
|
|
7553
|
+
}, {
|
|
6864
7554
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
6865
7555
|
columns: ["order_id"];
|
|
6866
7556
|
isOneToOne: false;
|
|
@@ -6997,15 +7687,117 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
6997
7687
|
};
|
|
6998
7688
|
Relationships: [];
|
|
6999
7689
|
};
|
|
7690
|
+
order_shipment_items: {
|
|
7691
|
+
Row: {
|
|
7692
|
+
created_at: string;
|
|
7693
|
+
id: string;
|
|
7694
|
+
order_item_id: string;
|
|
7695
|
+
product_id: string | null;
|
|
7696
|
+
product_name: string;
|
|
7697
|
+
quantity: number;
|
|
7698
|
+
shipment_id: string;
|
|
7699
|
+
updated_at: string;
|
|
7700
|
+
};
|
|
7701
|
+
Insert: {
|
|
7702
|
+
created_at?: string;
|
|
7703
|
+
id?: string;
|
|
7704
|
+
order_item_id: string;
|
|
7705
|
+
product_id?: string | null;
|
|
7706
|
+
product_name: string;
|
|
7707
|
+
quantity: number;
|
|
7708
|
+
shipment_id: string;
|
|
7709
|
+
updated_at?: string;
|
|
7710
|
+
};
|
|
7711
|
+
Update: {
|
|
7712
|
+
created_at?: string;
|
|
7713
|
+
id?: string;
|
|
7714
|
+
order_item_id?: string;
|
|
7715
|
+
product_id?: string | null;
|
|
7716
|
+
product_name?: string;
|
|
7717
|
+
quantity?: number;
|
|
7718
|
+
shipment_id?: string;
|
|
7719
|
+
updated_at?: string;
|
|
7720
|
+
};
|
|
7721
|
+
Relationships: [{
|
|
7722
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
7723
|
+
columns: ["order_item_id"];
|
|
7724
|
+
isOneToOne: false;
|
|
7725
|
+
referencedRelation: "order_items";
|
|
7726
|
+
referencedColumns: ["id"];
|
|
7727
|
+
}, {
|
|
7728
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
7729
|
+
columns: ["shipment_id"];
|
|
7730
|
+
isOneToOne: false;
|
|
7731
|
+
referencedRelation: "order_shipments";
|
|
7732
|
+
referencedColumns: ["id"];
|
|
7733
|
+
}];
|
|
7734
|
+
};
|
|
7735
|
+
order_shipments: {
|
|
7736
|
+
Row: {
|
|
7737
|
+
carrier_id: string | null;
|
|
7738
|
+
created_at: string;
|
|
7739
|
+
delivery_date: string | null;
|
|
7740
|
+
delivery_location_id: string | null;
|
|
7741
|
+
id: string;
|
|
7742
|
+
notes: string | null;
|
|
7743
|
+
order_id: string;
|
|
7744
|
+
shipment_number: number;
|
|
7745
|
+
shipped_at: string | null;
|
|
7746
|
+
status: string;
|
|
7747
|
+
updated_at: string;
|
|
7748
|
+
};
|
|
7749
|
+
Insert: {
|
|
7750
|
+
carrier_id?: string | null;
|
|
7751
|
+
created_at?: string;
|
|
7752
|
+
delivery_date?: string | null;
|
|
7753
|
+
delivery_location_id?: string | null;
|
|
7754
|
+
id?: string;
|
|
7755
|
+
notes?: string | null;
|
|
7756
|
+
order_id: string;
|
|
7757
|
+
shipment_number: number;
|
|
7758
|
+
shipped_at?: string | null;
|
|
7759
|
+
status?: string;
|
|
7760
|
+
updated_at?: string;
|
|
7761
|
+
};
|
|
7762
|
+
Update: {
|
|
7763
|
+
carrier_id?: string | null;
|
|
7764
|
+
created_at?: string;
|
|
7765
|
+
delivery_date?: string | null;
|
|
7766
|
+
delivery_location_id?: string | null;
|
|
7767
|
+
id?: string;
|
|
7768
|
+
notes?: string | null;
|
|
7769
|
+
order_id?: string;
|
|
7770
|
+
shipment_number?: number;
|
|
7771
|
+
shipped_at?: string | null;
|
|
7772
|
+
status?: string;
|
|
7773
|
+
updated_at?: string;
|
|
7774
|
+
};
|
|
7775
|
+
Relationships: [{
|
|
7776
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
7777
|
+
columns: ["carrier_id"];
|
|
7778
|
+
isOneToOne: false;
|
|
7779
|
+
referencedRelation: "carriers";
|
|
7780
|
+
referencedColumns: ["id"];
|
|
7781
|
+
}, {
|
|
7782
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
7783
|
+
columns: ["order_id"];
|
|
7784
|
+
isOneToOne: false;
|
|
7785
|
+
referencedRelation: "orders";
|
|
7786
|
+
referencedColumns: ["id"];
|
|
7787
|
+
}];
|
|
7788
|
+
};
|
|
7000
7789
|
orders: {
|
|
7001
7790
|
Row: {
|
|
7791
|
+
buffer_id: string | null;
|
|
7002
7792
|
created_at: string;
|
|
7003
7793
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7004
7794
|
customer_id: string | null;
|
|
7005
7795
|
customer_name: string;
|
|
7006
7796
|
deleted_at: string | null;
|
|
7007
|
-
delivery_date: string;
|
|
7797
|
+
delivery_date: string | null;
|
|
7798
|
+
floriday_sales_order_id: string | null;
|
|
7008
7799
|
id: string;
|
|
7800
|
+
is_reservation: boolean;
|
|
7009
7801
|
notes: string | null;
|
|
7010
7802
|
order_date: string;
|
|
7011
7803
|
order_number: string;
|
|
@@ -7017,13 +7809,16 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
7017
7809
|
updated_at: string;
|
|
7018
7810
|
};
|
|
7019
7811
|
Insert: {
|
|
7812
|
+
buffer_id?: string | null;
|
|
7020
7813
|
created_at?: string;
|
|
7021
7814
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7022
7815
|
customer_id?: string | null;
|
|
7023
7816
|
customer_name?: string;
|
|
7024
7817
|
deleted_at?: string | null;
|
|
7025
|
-
delivery_date
|
|
7818
|
+
delivery_date?: string | null;
|
|
7819
|
+
floriday_sales_order_id?: string | null;
|
|
7026
7820
|
id?: string;
|
|
7821
|
+
is_reservation?: boolean;
|
|
7027
7822
|
notes?: string | null;
|
|
7028
7823
|
order_date?: string;
|
|
7029
7824
|
order_number: string;
|
|
@@ -7035,13 +7830,16 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
7035
7830
|
updated_at?: string;
|
|
7036
7831
|
};
|
|
7037
7832
|
Update: {
|
|
7833
|
+
buffer_id?: string | null;
|
|
7038
7834
|
created_at?: string;
|
|
7039
7835
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7040
7836
|
customer_id?: string | null;
|
|
7041
7837
|
customer_name?: string;
|
|
7042
7838
|
deleted_at?: string | null;
|
|
7043
|
-
delivery_date?: string;
|
|
7839
|
+
delivery_date?: string | null;
|
|
7840
|
+
floriday_sales_order_id?: string | null;
|
|
7044
7841
|
id?: string;
|
|
7842
|
+
is_reservation?: boolean;
|
|
7045
7843
|
notes?: string | null;
|
|
7046
7844
|
order_date?: string;
|
|
7047
7845
|
order_number?: string;
|
|
@@ -7053,6 +7851,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
7053
7851
|
updated_at?: string;
|
|
7054
7852
|
};
|
|
7055
7853
|
Relationships: [{
|
|
7854
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
7855
|
+
columns: ["buffer_id"];
|
|
7856
|
+
isOneToOne: false;
|
|
7857
|
+
referencedRelation: "order_buffers";
|
|
7858
|
+
referencedColumns: ["id"];
|
|
7859
|
+
}, {
|
|
7056
7860
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7057
7861
|
columns: ["customer_id"];
|
|
7058
7862
|
isOneToOne: false;
|
|
@@ -7183,6 +7987,66 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
7183
7987
|
};
|
|
7184
7988
|
Relationships: [];
|
|
7185
7989
|
};
|
|
7990
|
+
product_bom_items: {
|
|
7991
|
+
Row: {
|
|
7992
|
+
component_product_id: string | null;
|
|
7993
|
+
component_trade_item_floriday_id: string | null;
|
|
7994
|
+
created_at: string;
|
|
7995
|
+
id: string;
|
|
7996
|
+
notes: string | null;
|
|
7997
|
+
packing_configuration_id: string | null;
|
|
7998
|
+
parent_product_id: string | null;
|
|
7999
|
+
parent_trade_item_floriday_id: string | null;
|
|
8000
|
+
quantity: number;
|
|
8001
|
+
sort_order: number;
|
|
8002
|
+
tenant_id: string;
|
|
8003
|
+
unit: string;
|
|
8004
|
+
updated_at: string;
|
|
8005
|
+
};
|
|
8006
|
+
Insert: {
|
|
8007
|
+
component_product_id?: string | null;
|
|
8008
|
+
component_trade_item_floriday_id?: string | null;
|
|
8009
|
+
created_at?: string;
|
|
8010
|
+
id?: string;
|
|
8011
|
+
notes?: string | null;
|
|
8012
|
+
packing_configuration_id?: string | null;
|
|
8013
|
+
parent_product_id?: string | null;
|
|
8014
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8015
|
+
quantity?: number;
|
|
8016
|
+
sort_order?: number;
|
|
8017
|
+
tenant_id: string;
|
|
8018
|
+
unit?: string;
|
|
8019
|
+
updated_at?: string;
|
|
8020
|
+
};
|
|
8021
|
+
Update: {
|
|
8022
|
+
component_product_id?: string | null;
|
|
8023
|
+
component_trade_item_floriday_id?: string | null;
|
|
8024
|
+
created_at?: string;
|
|
8025
|
+
id?: string;
|
|
8026
|
+
notes?: string | null;
|
|
8027
|
+
packing_configuration_id?: string | null;
|
|
8028
|
+
parent_product_id?: string | null;
|
|
8029
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8030
|
+
quantity?: number;
|
|
8031
|
+
sort_order?: number;
|
|
8032
|
+
tenant_id?: string;
|
|
8033
|
+
unit?: string;
|
|
8034
|
+
updated_at?: string;
|
|
8035
|
+
};
|
|
8036
|
+
Relationships: [{
|
|
8037
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
8038
|
+
columns: ["component_product_id"];
|
|
8039
|
+
isOneToOne: false;
|
|
8040
|
+
referencedRelation: "products";
|
|
8041
|
+
referencedColumns: ["id"];
|
|
8042
|
+
}, {
|
|
8043
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
8044
|
+
columns: ["parent_product_id"];
|
|
8045
|
+
isOneToOne: false;
|
|
8046
|
+
referencedRelation: "products";
|
|
8047
|
+
referencedColumns: ["id"];
|
|
8048
|
+
}];
|
|
8049
|
+
};
|
|
7186
8050
|
product_categories: {
|
|
7187
8051
|
Row: {
|
|
7188
8052
|
color: string;
|
|
@@ -7288,6 +8152,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
7288
8152
|
id: string;
|
|
7289
8153
|
product_group_id: string;
|
|
7290
8154
|
quantity: number;
|
|
8155
|
+
sort_order: number;
|
|
7291
8156
|
trade_item_id: string;
|
|
7292
8157
|
};
|
|
7293
8158
|
Insert: {
|
|
@@ -7295,6 +8160,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
7295
8160
|
id?: string;
|
|
7296
8161
|
product_group_id: string;
|
|
7297
8162
|
quantity?: number;
|
|
8163
|
+
sort_order?: number;
|
|
7298
8164
|
trade_item_id: string;
|
|
7299
8165
|
};
|
|
7300
8166
|
Update: {
|
|
@@ -7302,56 +8168,173 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
7302
8168
|
id?: string;
|
|
7303
8169
|
product_group_id?: string;
|
|
7304
8170
|
quantity?: number;
|
|
8171
|
+
sort_order?: number;
|
|
7305
8172
|
trade_item_id?: string;
|
|
7306
8173
|
};
|
|
7307
8174
|
Relationships: [{
|
|
7308
8175
|
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
7309
8176
|
columns: ["product_group_id"];
|
|
7310
8177
|
isOneToOne: false;
|
|
7311
|
-
referencedRelation: "product_groups";
|
|
8178
|
+
referencedRelation: "product_groups";
|
|
8179
|
+
referencedColumns: ["id"];
|
|
8180
|
+
}];
|
|
8181
|
+
};
|
|
8182
|
+
product_groups: {
|
|
8183
|
+
Row: {
|
|
8184
|
+
created_at: string;
|
|
8185
|
+
description: string | null;
|
|
8186
|
+
head_product_id: string | null;
|
|
8187
|
+
head_trade_item_floriday_id: string | null;
|
|
8188
|
+
id: string;
|
|
8189
|
+
is_active: boolean;
|
|
8190
|
+
name: string;
|
|
8191
|
+
tenant_id: string;
|
|
8192
|
+
updated_at: string;
|
|
8193
|
+
};
|
|
8194
|
+
Insert: {
|
|
8195
|
+
created_at?: string;
|
|
8196
|
+
description?: string | null;
|
|
8197
|
+
head_product_id?: string | null;
|
|
8198
|
+
head_trade_item_floriday_id?: string | null;
|
|
8199
|
+
id?: string;
|
|
8200
|
+
is_active?: boolean;
|
|
8201
|
+
name: string;
|
|
8202
|
+
tenant_id: string;
|
|
8203
|
+
updated_at?: string;
|
|
8204
|
+
};
|
|
8205
|
+
Update: {
|
|
8206
|
+
created_at?: string;
|
|
8207
|
+
description?: string | null;
|
|
8208
|
+
head_product_id?: string | null;
|
|
8209
|
+
head_trade_item_floriday_id?: string | null;
|
|
8210
|
+
id?: string;
|
|
8211
|
+
is_active?: boolean;
|
|
8212
|
+
name?: string;
|
|
8213
|
+
tenant_id?: string;
|
|
8214
|
+
updated_at?: string;
|
|
8215
|
+
};
|
|
8216
|
+
Relationships: [{
|
|
8217
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8218
|
+
columns: ["head_product_id"];
|
|
8219
|
+
isOneToOne: false;
|
|
8220
|
+
referencedRelation: "products";
|
|
8221
|
+
referencedColumns: ["id"];
|
|
8222
|
+
}];
|
|
8223
|
+
};
|
|
8224
|
+
product_load_settings: {
|
|
8225
|
+
Row: {
|
|
8226
|
+
created_at: string;
|
|
8227
|
+
id: string;
|
|
8228
|
+
is_package: boolean;
|
|
8229
|
+
label: string | null;
|
|
8230
|
+
layers_per_load_carrier: number | null;
|
|
8231
|
+
load_carrier: string | null;
|
|
8232
|
+
package_id: string | null;
|
|
8233
|
+
package_label: string | null;
|
|
8234
|
+
packages_per_layer: number | null;
|
|
8235
|
+
packing_configuration_id: string;
|
|
8236
|
+
product_id: string | null;
|
|
8237
|
+
tenant_id: string;
|
|
8238
|
+
trade_item_floriday_id: string | null;
|
|
8239
|
+
units_per_package: number | null;
|
|
8240
|
+
updated_at: string;
|
|
8241
|
+
};
|
|
8242
|
+
Insert: {
|
|
8243
|
+
created_at?: string;
|
|
8244
|
+
id?: string;
|
|
8245
|
+
is_package?: boolean;
|
|
8246
|
+
label?: string | null;
|
|
8247
|
+
layers_per_load_carrier?: number | null;
|
|
8248
|
+
load_carrier?: string | null;
|
|
8249
|
+
package_id?: string | null;
|
|
8250
|
+
package_label?: string | null;
|
|
8251
|
+
packages_per_layer?: number | null;
|
|
8252
|
+
packing_configuration_id?: string;
|
|
8253
|
+
product_id?: string | null;
|
|
8254
|
+
tenant_id: string;
|
|
8255
|
+
trade_item_floriday_id?: string | null;
|
|
8256
|
+
units_per_package?: number | null;
|
|
8257
|
+
updated_at?: string;
|
|
8258
|
+
};
|
|
8259
|
+
Update: {
|
|
8260
|
+
created_at?: string;
|
|
8261
|
+
id?: string;
|
|
8262
|
+
is_package?: boolean;
|
|
8263
|
+
label?: string | null;
|
|
8264
|
+
layers_per_load_carrier?: number | null;
|
|
8265
|
+
load_carrier?: string | null;
|
|
8266
|
+
package_id?: string | null;
|
|
8267
|
+
package_label?: string | null;
|
|
8268
|
+
packages_per_layer?: number | null;
|
|
8269
|
+
packing_configuration_id?: string;
|
|
8270
|
+
product_id?: string | null;
|
|
8271
|
+
tenant_id?: string;
|
|
8272
|
+
trade_item_floriday_id?: string | null;
|
|
8273
|
+
units_per_package?: number | null;
|
|
8274
|
+
updated_at?: string;
|
|
8275
|
+
};
|
|
8276
|
+
Relationships: [{
|
|
8277
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
8278
|
+
columns: ["package_id"];
|
|
8279
|
+
isOneToOne: false;
|
|
8280
|
+
referencedRelation: "packages";
|
|
8281
|
+
referencedColumns: ["id"];
|
|
8282
|
+
}, {
|
|
8283
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
8284
|
+
columns: ["product_id"];
|
|
8285
|
+
isOneToOne: false;
|
|
8286
|
+
referencedRelation: "products";
|
|
7312
8287
|
referencedColumns: ["id"];
|
|
7313
8288
|
}];
|
|
7314
8289
|
};
|
|
7315
|
-
|
|
8290
|
+
product_merge_log: {
|
|
7316
8291
|
Row: {
|
|
7317
|
-
|
|
7318
|
-
description: string | null;
|
|
8292
|
+
canonical_product_id: string | null;
|
|
7319
8293
|
id: string;
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
8294
|
+
merged_at: string;
|
|
8295
|
+
merged_from_id: string;
|
|
8296
|
+
notes: string | null;
|
|
8297
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
8298
|
+
source_table: string;
|
|
8299
|
+
status: string;
|
|
7324
8300
|
};
|
|
7325
8301
|
Insert: {
|
|
7326
|
-
|
|
7327
|
-
description?: string | null;
|
|
8302
|
+
canonical_product_id?: string | null;
|
|
7328
8303
|
id?: string;
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
8304
|
+
merged_at?: string;
|
|
8305
|
+
merged_from_id: string;
|
|
8306
|
+
notes?: string | null;
|
|
8307
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
8308
|
+
source_table: string;
|
|
8309
|
+
status?: string;
|
|
7333
8310
|
};
|
|
7334
8311
|
Update: {
|
|
7335
|
-
|
|
7336
|
-
description?: string | null;
|
|
8312
|
+
canonical_product_id?: string | null;
|
|
7337
8313
|
id?: string;
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
8314
|
+
merged_at?: string;
|
|
8315
|
+
merged_from_id?: string;
|
|
8316
|
+
notes?: string | null;
|
|
8317
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
8318
|
+
source_table?: string;
|
|
8319
|
+
status?: string;
|
|
7342
8320
|
};
|
|
7343
8321
|
Relationships: [];
|
|
7344
8322
|
};
|
|
7345
8323
|
products: {
|
|
7346
8324
|
Row: {
|
|
8325
|
+
article_number: string | null;
|
|
7347
8326
|
barcode: string | null;
|
|
7348
8327
|
batch: string;
|
|
7349
8328
|
crates_per_layer: number;
|
|
7350
8329
|
created_at: string;
|
|
7351
8330
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
8331
|
+
floriday_active: boolean;
|
|
8332
|
+
floriday_payload: import("../integrations/supabase/types").Json;
|
|
8333
|
+
floriday_trade_item_id: string | null;
|
|
7352
8334
|
id: string;
|
|
7353
8335
|
image_url: string | null;
|
|
7354
8336
|
incoming_quantity: number;
|
|
8337
|
+
is_layer: boolean;
|
|
7355
8338
|
layers_per_cart: number;
|
|
7356
8339
|
location: string;
|
|
7357
8340
|
min_quantity: number;
|
|
@@ -7364,17 +8347,24 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
7364
8347
|
trade_item_key: string | null;
|
|
7365
8348
|
unit: string;
|
|
7366
8349
|
updated_at: string;
|
|
8350
|
+
vat_code: string | null;
|
|
8351
|
+
vat_rate: number | null;
|
|
7367
8352
|
weight: string | null;
|
|
7368
8353
|
};
|
|
7369
8354
|
Insert: {
|
|
8355
|
+
article_number?: string | null;
|
|
7370
8356
|
barcode?: string | null;
|
|
7371
8357
|
batch: string;
|
|
7372
8358
|
crates_per_layer?: number;
|
|
7373
8359
|
created_at?: string;
|
|
7374
8360
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
8361
|
+
floriday_active?: boolean;
|
|
8362
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
8363
|
+
floriday_trade_item_id?: string | null;
|
|
7375
8364
|
id?: string;
|
|
7376
8365
|
image_url?: string | null;
|
|
7377
8366
|
incoming_quantity?: number;
|
|
8367
|
+
is_layer?: boolean;
|
|
7378
8368
|
layers_per_cart?: number;
|
|
7379
8369
|
location: string;
|
|
7380
8370
|
min_quantity?: number;
|
|
@@ -7387,17 +8377,24 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
7387
8377
|
trade_item_key?: string | null;
|
|
7388
8378
|
unit?: string;
|
|
7389
8379
|
updated_at?: string;
|
|
8380
|
+
vat_code?: string | null;
|
|
8381
|
+
vat_rate?: number | null;
|
|
7390
8382
|
weight?: string | null;
|
|
7391
8383
|
};
|
|
7392
8384
|
Update: {
|
|
8385
|
+
article_number?: string | null;
|
|
7393
8386
|
barcode?: string | null;
|
|
7394
8387
|
batch?: string;
|
|
7395
8388
|
crates_per_layer?: number;
|
|
7396
8389
|
created_at?: string;
|
|
7397
8390
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
8391
|
+
floriday_active?: boolean;
|
|
8392
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
8393
|
+
floriday_trade_item_id?: string | null;
|
|
7398
8394
|
id?: string;
|
|
7399
8395
|
image_url?: string | null;
|
|
7400
8396
|
incoming_quantity?: number;
|
|
8397
|
+
is_layer?: boolean;
|
|
7401
8398
|
layers_per_cart?: number;
|
|
7402
8399
|
location?: string;
|
|
7403
8400
|
min_quantity?: number;
|
|
@@ -7410,6 +8407,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
7410
8407
|
trade_item_key?: string | null;
|
|
7411
8408
|
unit?: string;
|
|
7412
8409
|
updated_at?: string;
|
|
8410
|
+
vat_code?: string | null;
|
|
8411
|
+
vat_rate?: number | null;
|
|
7413
8412
|
weight?: string | null;
|
|
7414
8413
|
};
|
|
7415
8414
|
Relationships: [];
|
|
@@ -8303,8 +9302,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
8303
9302
|
order_id: string | null;
|
|
8304
9303
|
order_item_id: string | null;
|
|
8305
9304
|
order_source: string | null;
|
|
9305
|
+
parent_trade_item_key: string | null;
|
|
8306
9306
|
physical_after: number | null;
|
|
8307
9307
|
physical_before: number | null;
|
|
9308
|
+
production_batch_id: string | null;
|
|
8308
9309
|
qty_delta: number;
|
|
8309
9310
|
reason: string | null;
|
|
8310
9311
|
reserved_after: number | null;
|
|
@@ -8320,8 +9321,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
8320
9321
|
order_id?: string | null;
|
|
8321
9322
|
order_item_id?: string | null;
|
|
8322
9323
|
order_source?: string | null;
|
|
9324
|
+
parent_trade_item_key?: string | null;
|
|
8323
9325
|
physical_after?: number | null;
|
|
8324
9326
|
physical_before?: number | null;
|
|
9327
|
+
production_batch_id?: string | null;
|
|
8325
9328
|
qty_delta: number;
|
|
8326
9329
|
reason?: string | null;
|
|
8327
9330
|
reserved_after?: number | null;
|
|
@@ -8337,8 +9340,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
8337
9340
|
order_id?: string | null;
|
|
8338
9341
|
order_item_id?: string | null;
|
|
8339
9342
|
order_source?: string | null;
|
|
9343
|
+
parent_trade_item_key?: string | null;
|
|
8340
9344
|
physical_after?: number | null;
|
|
8341
9345
|
physical_before?: number | null;
|
|
9346
|
+
production_batch_id?: string | null;
|
|
8342
9347
|
qty_delta?: number;
|
|
8343
9348
|
reason?: string | null;
|
|
8344
9349
|
reserved_after?: number | null;
|
|
@@ -8644,6 +9649,48 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
8644
9649
|
};
|
|
8645
9650
|
Relationships: [];
|
|
8646
9651
|
};
|
|
9652
|
+
trade_item_prices: {
|
|
9653
|
+
Row: {
|
|
9654
|
+
created_at: string;
|
|
9655
|
+
currency: string;
|
|
9656
|
+
id: string;
|
|
9657
|
+
last_push_error: string | null;
|
|
9658
|
+
last_pushed_at: string | null;
|
|
9659
|
+
price_group_id: string | null;
|
|
9660
|
+
price_per_piece: number;
|
|
9661
|
+
supply_line_id: string | null;
|
|
9662
|
+
trade_item_key: string;
|
|
9663
|
+
updated_at: string;
|
|
9664
|
+
user_id: string;
|
|
9665
|
+
};
|
|
9666
|
+
Insert: {
|
|
9667
|
+
created_at?: string;
|
|
9668
|
+
currency?: string;
|
|
9669
|
+
id?: string;
|
|
9670
|
+
last_push_error?: string | null;
|
|
9671
|
+
last_pushed_at?: string | null;
|
|
9672
|
+
price_group_id?: string | null;
|
|
9673
|
+
price_per_piece: number;
|
|
9674
|
+
supply_line_id?: string | null;
|
|
9675
|
+
trade_item_key: string;
|
|
9676
|
+
updated_at?: string;
|
|
9677
|
+
user_id: string;
|
|
9678
|
+
};
|
|
9679
|
+
Update: {
|
|
9680
|
+
created_at?: string;
|
|
9681
|
+
currency?: string;
|
|
9682
|
+
id?: string;
|
|
9683
|
+
last_push_error?: string | null;
|
|
9684
|
+
last_pushed_at?: string | null;
|
|
9685
|
+
price_group_id?: string | null;
|
|
9686
|
+
price_per_piece?: number;
|
|
9687
|
+
supply_line_id?: string | null;
|
|
9688
|
+
trade_item_key?: string;
|
|
9689
|
+
updated_at?: string;
|
|
9690
|
+
user_id?: string;
|
|
9691
|
+
};
|
|
9692
|
+
Relationships: [];
|
|
9693
|
+
};
|
|
8647
9694
|
trade_item_stock: {
|
|
8648
9695
|
Row: {
|
|
8649
9696
|
connection_id: string;
|
|
@@ -8797,7 +9844,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
8797
9844
|
twinfield_connections: {
|
|
8798
9845
|
Row: {
|
|
8799
9846
|
access_token: string | null;
|
|
8800
|
-
client_id: string;
|
|
9847
|
+
client_id: string | null;
|
|
8801
9848
|
client_secret: string | null;
|
|
8802
9849
|
cluster_uri: string | null;
|
|
8803
9850
|
company_code: string | null;
|
|
@@ -8809,7 +9856,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
8809
9856
|
is_active: boolean;
|
|
8810
9857
|
label: string | null;
|
|
8811
9858
|
office_code: string | null;
|
|
8812
|
-
redirect_uri: string;
|
|
9859
|
+
redirect_uri: string | null;
|
|
8813
9860
|
refresh_token: string | null;
|
|
8814
9861
|
token_expires_at: string | null;
|
|
8815
9862
|
updated_at: string;
|
|
@@ -8817,7 +9864,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
8817
9864
|
};
|
|
8818
9865
|
Insert: {
|
|
8819
9866
|
access_token?: string | null;
|
|
8820
|
-
client_id
|
|
9867
|
+
client_id?: string | null;
|
|
8821
9868
|
client_secret?: string | null;
|
|
8822
9869
|
cluster_uri?: string | null;
|
|
8823
9870
|
company_code?: string | null;
|
|
@@ -8829,7 +9876,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
8829
9876
|
is_active?: boolean;
|
|
8830
9877
|
label?: string | null;
|
|
8831
9878
|
office_code?: string | null;
|
|
8832
|
-
redirect_uri
|
|
9879
|
+
redirect_uri?: string | null;
|
|
8833
9880
|
refresh_token?: string | null;
|
|
8834
9881
|
token_expires_at?: string | null;
|
|
8835
9882
|
updated_at?: string;
|
|
@@ -8837,7 +9884,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
8837
9884
|
};
|
|
8838
9885
|
Update: {
|
|
8839
9886
|
access_token?: string | null;
|
|
8840
|
-
client_id?: string;
|
|
9887
|
+
client_id?: string | null;
|
|
8841
9888
|
client_secret?: string | null;
|
|
8842
9889
|
cluster_uri?: string | null;
|
|
8843
9890
|
company_code?: string | null;
|
|
@@ -8849,7 +9896,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
8849
9896
|
is_active?: boolean;
|
|
8850
9897
|
label?: string | null;
|
|
8851
9898
|
office_code?: string | null;
|
|
8852
|
-
redirect_uri?: string;
|
|
9899
|
+
redirect_uri?: string | null;
|
|
8853
9900
|
refresh_token?: string | null;
|
|
8854
9901
|
token_expires_at?: string | null;
|
|
8855
9902
|
updated_at?: string;
|
|
@@ -9106,6 +10153,51 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
9106
10153
|
referencedColumns: ["id"];
|
|
9107
10154
|
}];
|
|
9108
10155
|
};
|
|
10156
|
+
twinfield_invoice_pdf_cache: {
|
|
10157
|
+
Row: {
|
|
10158
|
+
connection_id: string;
|
|
10159
|
+
created_at: string;
|
|
10160
|
+
fetched_at: string;
|
|
10161
|
+
id: string;
|
|
10162
|
+
invoice_number: string;
|
|
10163
|
+
last_accessed_at: string;
|
|
10164
|
+
object_path: string;
|
|
10165
|
+
office_code: string;
|
|
10166
|
+
size_bytes: number;
|
|
10167
|
+
updated_at: string;
|
|
10168
|
+
};
|
|
10169
|
+
Insert: {
|
|
10170
|
+
connection_id: string;
|
|
10171
|
+
created_at?: string;
|
|
10172
|
+
fetched_at?: string;
|
|
10173
|
+
id?: string;
|
|
10174
|
+
invoice_number: string;
|
|
10175
|
+
last_accessed_at?: string;
|
|
10176
|
+
object_path: string;
|
|
10177
|
+
office_code: string;
|
|
10178
|
+
size_bytes?: number;
|
|
10179
|
+
updated_at?: string;
|
|
10180
|
+
};
|
|
10181
|
+
Update: {
|
|
10182
|
+
connection_id?: string;
|
|
10183
|
+
created_at?: string;
|
|
10184
|
+
fetched_at?: string;
|
|
10185
|
+
id?: string;
|
|
10186
|
+
invoice_number?: string;
|
|
10187
|
+
last_accessed_at?: string;
|
|
10188
|
+
object_path?: string;
|
|
10189
|
+
office_code?: string;
|
|
10190
|
+
size_bytes?: number;
|
|
10191
|
+
updated_at?: string;
|
|
10192
|
+
};
|
|
10193
|
+
Relationships: [{
|
|
10194
|
+
foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
|
|
10195
|
+
columns: ["connection_id"];
|
|
10196
|
+
isOneToOne: false;
|
|
10197
|
+
referencedRelation: "twinfield_connections";
|
|
10198
|
+
referencedColumns: ["id"];
|
|
10199
|
+
}];
|
|
10200
|
+
};
|
|
9109
10201
|
twinfield_invoice_settings: {
|
|
9110
10202
|
Row: {
|
|
9111
10203
|
created_at: string;
|
|
@@ -10044,25 +11136,6 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10044
11136
|
};
|
|
10045
11137
|
Relationships: [];
|
|
10046
11138
|
};
|
|
10047
|
-
floriday_customer_discounts: {
|
|
10048
|
-
Row: {
|
|
10049
|
-
base_price: number | null;
|
|
10050
|
-
buyer_organization_id: string | null;
|
|
10051
|
-
currency: string | null;
|
|
10052
|
-
discount_type: string | null;
|
|
10053
|
-
discount_value: number | null;
|
|
10054
|
-
min_quantity: number | null;
|
|
10055
|
-
net_price: number | null;
|
|
10056
|
-
product_group_id: string | null;
|
|
10057
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
10058
|
-
source: string | null;
|
|
10059
|
-
source_id: string | null;
|
|
10060
|
-
trade_item_id: string | null;
|
|
10061
|
-
valid_from: string | null;
|
|
10062
|
-
valid_until: string | null;
|
|
10063
|
-
};
|
|
10064
|
-
Relationships: [];
|
|
10065
|
-
};
|
|
10066
11139
|
local_customer_discounts: {
|
|
10067
11140
|
Row: {
|
|
10068
11141
|
base_price: number | null;
|
|
@@ -10366,6 +11439,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10366
11439
|
};
|
|
10367
11440
|
Returns: number;
|
|
10368
11441
|
};
|
|
11442
|
+
_migrate_rewrite_stock_key: {
|
|
11443
|
+
Args: {
|
|
11444
|
+
_from_key: string;
|
|
11445
|
+
_to_key: string;
|
|
11446
|
+
};
|
|
11447
|
+
Returns: undefined;
|
|
11448
|
+
};
|
|
10369
11449
|
afh_city_code: {
|
|
10370
11450
|
Args: {
|
|
10371
11451
|
_city: string;
|
|
@@ -10449,6 +11529,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10449
11529
|
processed_items: number;
|
|
10450
11530
|
}[];
|
|
10451
11531
|
};
|
|
11532
|
+
calculate_layer_stock: {
|
|
11533
|
+
Args: {
|
|
11534
|
+
p_product_id: string;
|
|
11535
|
+
};
|
|
11536
|
+
Returns: number;
|
|
11537
|
+
};
|
|
10452
11538
|
call_exact_route: {
|
|
10453
11539
|
Args: {
|
|
10454
11540
|
path: string;
|
|
@@ -10481,6 +11567,28 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10481
11567
|
Args: never;
|
|
10482
11568
|
Returns: undefined;
|
|
10483
11569
|
};
|
|
11570
|
+
consume_bom_for_production: {
|
|
11571
|
+
Args: {
|
|
11572
|
+
p_connection_id: string;
|
|
11573
|
+
p_parent_id: string;
|
|
11574
|
+
p_parent_key: string;
|
|
11575
|
+
p_parent_kind: string;
|
|
11576
|
+
p_quantity: number;
|
|
11577
|
+
p_user_id: string;
|
|
11578
|
+
};
|
|
11579
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11580
|
+
} | {
|
|
11581
|
+
Args: {
|
|
11582
|
+
p_batch_id?: string;
|
|
11583
|
+
p_connection_id: string;
|
|
11584
|
+
p_parent_id: string;
|
|
11585
|
+
p_parent_key: string;
|
|
11586
|
+
p_parent_kind: string;
|
|
11587
|
+
p_quantity: number;
|
|
11588
|
+
p_user_id: string;
|
|
11589
|
+
};
|
|
11590
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11591
|
+
};
|
|
10484
11592
|
consume_floriday_rate_limit: {
|
|
10485
11593
|
Args: {
|
|
10486
11594
|
p_bucket: string;
|
|
@@ -10532,6 +11640,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10532
11640
|
table_name: string;
|
|
10533
11641
|
}[];
|
|
10534
11642
|
};
|
|
11643
|
+
delete_samenstelling: {
|
|
11644
|
+
Args: {
|
|
11645
|
+
p_parent_id: string;
|
|
11646
|
+
p_parent_kind: string;
|
|
11647
|
+
};
|
|
11648
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11649
|
+
};
|
|
10535
11650
|
dispatch_carrier_signups_sql: {
|
|
10536
11651
|
Args: {
|
|
10537
11652
|
_catchup?: string;
|
|
@@ -10573,6 +11688,16 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10573
11688
|
status: string;
|
|
10574
11689
|
}[];
|
|
10575
11690
|
};
|
|
11691
|
+
email_auth_upsert_connection: {
|
|
11692
|
+
Args: {
|
|
11693
|
+
_account_email: string;
|
|
11694
|
+
_created_by: string;
|
|
11695
|
+
_is_active: boolean;
|
|
11696
|
+
_provider: string;
|
|
11697
|
+
_status: string;
|
|
11698
|
+
};
|
|
11699
|
+
Returns: string;
|
|
11700
|
+
};
|
|
10576
11701
|
enqueue_cart_replan_if_unlocked: {
|
|
10577
11702
|
Args: {
|
|
10578
11703
|
p_order_id: string;
|
|
@@ -10692,19 +11817,6 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10692
11817
|
resource: string;
|
|
10693
11818
|
}[];
|
|
10694
11819
|
};
|
|
10695
|
-
get_floriday_agreements_active: {
|
|
10696
|
-
Args: {
|
|
10697
|
-
p_on_date?: string;
|
|
10698
|
-
};
|
|
10699
|
-
Returns: {
|
|
10700
|
-
buyer_organization_id: string;
|
|
10701
|
-
data: import("../integrations/supabase/types").Json;
|
|
10702
|
-
floriday_id: string;
|
|
10703
|
-
status: string;
|
|
10704
|
-
valid_from: string;
|
|
10705
|
-
valid_until: string;
|
|
10706
|
-
}[];
|
|
10707
|
-
};
|
|
10708
11820
|
get_floriday_clock_supplies_window: {
|
|
10709
11821
|
Args: {
|
|
10710
11822
|
p_from: string;
|
|
@@ -10777,6 +11889,27 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10777
11889
|
minutes_since_success: number;
|
|
10778
11890
|
}[];
|
|
10779
11891
|
};
|
|
11892
|
+
get_group_allocation_keys: {
|
|
11893
|
+
Args: {
|
|
11894
|
+
p_product_id: string;
|
|
11895
|
+
};
|
|
11896
|
+
Returns: {
|
|
11897
|
+
k: string;
|
|
11898
|
+
ord: number;
|
|
11899
|
+
}[];
|
|
11900
|
+
};
|
|
11901
|
+
get_group_head_key: {
|
|
11902
|
+
Args: {
|
|
11903
|
+
p_group_id: string;
|
|
11904
|
+
};
|
|
11905
|
+
Returns: string;
|
|
11906
|
+
};
|
|
11907
|
+
get_inventory_stock_for_key: {
|
|
11908
|
+
Args: {
|
|
11909
|
+
p_key: string;
|
|
11910
|
+
};
|
|
11911
|
+
Returns: number;
|
|
11912
|
+
};
|
|
10780
11913
|
get_offer_by_link_code: {
|
|
10781
11914
|
Args: {
|
|
10782
11915
|
p_code: string;
|
|
@@ -10807,6 +11940,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10807
11940
|
};
|
|
10808
11941
|
Returns: string;
|
|
10809
11942
|
};
|
|
11943
|
+
get_product_group_available_stock: {
|
|
11944
|
+
Args: {
|
|
11945
|
+
p_group_id: string;
|
|
11946
|
+
};
|
|
11947
|
+
Returns: number;
|
|
11948
|
+
};
|
|
10810
11949
|
get_room_busy_windows: {
|
|
10811
11950
|
Args: {
|
|
10812
11951
|
p_from: string;
|
|
@@ -10887,6 +12026,32 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10887
12026
|
};
|
|
10888
12027
|
Returns: undefined;
|
|
10889
12028
|
};
|
|
12029
|
+
mark_salesorder_controlled: {
|
|
12030
|
+
Args: {
|
|
12031
|
+
p_controlled: boolean;
|
|
12032
|
+
p_floriday_id: string;
|
|
12033
|
+
};
|
|
12034
|
+
Returns: undefined;
|
|
12035
|
+
};
|
|
12036
|
+
mark_shipment_shipped: {
|
|
12037
|
+
Args: {
|
|
12038
|
+
p_shipment_id: string;
|
|
12039
|
+
};
|
|
12040
|
+
Returns: undefined;
|
|
12041
|
+
};
|
|
12042
|
+
merge_products: {
|
|
12043
|
+
Args: {
|
|
12044
|
+
_canonical: string;
|
|
12045
|
+
_loser: string;
|
|
12046
|
+
};
|
|
12047
|
+
Returns: undefined;
|
|
12048
|
+
};
|
|
12049
|
+
next_manufacture_partij: {
|
|
12050
|
+
Args: {
|
|
12051
|
+
_tenant_id: string;
|
|
12052
|
+
};
|
|
12053
|
+
Returns: string;
|
|
12054
|
+
};
|
|
10890
12055
|
next_order_number: {
|
|
10891
12056
|
Args: {
|
|
10892
12057
|
p_prefix: string;
|
|
@@ -10956,6 +12121,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10956
12121
|
};
|
|
10957
12122
|
Returns: undefined;
|
|
10958
12123
|
};
|
|
12124
|
+
pickstation_resolve_delivery_orders: {
|
|
12125
|
+
Args: {
|
|
12126
|
+
p_sales_order_ids: string[];
|
|
12127
|
+
};
|
|
12128
|
+
Returns: {
|
|
12129
|
+
delivery_order_id: string;
|
|
12130
|
+
sales_order_id: string;
|
|
12131
|
+
}[];
|
|
12132
|
+
};
|
|
10959
12133
|
pickstation_set_cart_status: {
|
|
10960
12134
|
Args: {
|
|
10961
12135
|
p_cart_index: number;
|
|
@@ -10965,6 +12139,14 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10965
12139
|
};
|
|
10966
12140
|
Returns: undefined;
|
|
10967
12141
|
};
|
|
12142
|
+
produce_designed_product: {
|
|
12143
|
+
Args: {
|
|
12144
|
+
p_parent_id: string;
|
|
12145
|
+
p_parent_kind: string;
|
|
12146
|
+
p_quantity: number;
|
|
12147
|
+
};
|
|
12148
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12149
|
+
};
|
|
10968
12150
|
promote_trade_item_key: {
|
|
10969
12151
|
Args: {
|
|
10970
12152
|
p_new: string;
|
|
@@ -10972,6 +12154,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
10972
12154
|
};
|
|
10973
12155
|
Returns: undefined;
|
|
10974
12156
|
};
|
|
12157
|
+
recompute_all_reserved_stock: {
|
|
12158
|
+
Args: never;
|
|
12159
|
+
Returns: undefined;
|
|
12160
|
+
};
|
|
10975
12161
|
recompute_order_status: {
|
|
10976
12162
|
Args: {
|
|
10977
12163
|
p_order_id: string;
|
|
@@ -11021,27 +12207,45 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
11021
12207
|
};
|
|
11022
12208
|
Returns: undefined;
|
|
11023
12209
|
};
|
|
12210
|
+
resolve_group_allocation: {
|
|
12211
|
+
Args: {
|
|
12212
|
+
_needed: number;
|
|
12213
|
+
_product_group_id: string;
|
|
12214
|
+
};
|
|
12215
|
+
Returns: {
|
|
12216
|
+
allocated: number;
|
|
12217
|
+
trade_item_id: string;
|
|
12218
|
+
}[];
|
|
12219
|
+
};
|
|
12220
|
+
resolve_group_member_stock_key: {
|
|
12221
|
+
Args: {
|
|
12222
|
+
p_trade_item_id: string;
|
|
12223
|
+
};
|
|
12224
|
+
Returns: string;
|
|
12225
|
+
};
|
|
11024
12226
|
resolve_product_id_for_item: {
|
|
11025
12227
|
Args: {
|
|
11026
12228
|
p_product_name: string;
|
|
11027
12229
|
};
|
|
11028
12230
|
Returns: string;
|
|
11029
12231
|
};
|
|
11030
|
-
|
|
12232
|
+
resolve_stock_trade_item_key: {
|
|
11031
12233
|
Args: {
|
|
11032
|
-
|
|
11033
|
-
p_url: string;
|
|
12234
|
+
p_product_id: string;
|
|
11034
12235
|
};
|
|
11035
|
-
Returns:
|
|
12236
|
+
Returns: string;
|
|
11036
12237
|
};
|
|
11037
|
-
|
|
12238
|
+
reverse_production: {
|
|
11038
12239
|
Args: {
|
|
11039
|
-
|
|
11040
|
-
|
|
12240
|
+
p_connection_id?: string;
|
|
12241
|
+
p_parent_key: string;
|
|
12242
|
+
p_quantity: number;
|
|
12243
|
+
p_reason?: string;
|
|
12244
|
+
p_user_id?: string;
|
|
11041
12245
|
};
|
|
11042
|
-
Returns:
|
|
12246
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11043
12247
|
};
|
|
11044
|
-
|
|
12248
|
+
schedule_floriday_additional_services_sync: {
|
|
11045
12249
|
Args: {
|
|
11046
12250
|
p_apikey: string;
|
|
11047
12251
|
p_url: string;
|
|
@@ -11294,6 +12498,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
11294
12498
|
};
|
|
11295
12499
|
Returns: number;
|
|
11296
12500
|
};
|
|
12501
|
+
self_heal_floriday_links: {
|
|
12502
|
+
Args: never;
|
|
12503
|
+
Returns: number;
|
|
12504
|
+
};
|
|
11297
12505
|
show_limit: {
|
|
11298
12506
|
Args: never;
|
|
11299
12507
|
Returns: number;
|
|
@@ -11304,18 +12512,34 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
|
|
|
11304
12512
|
};
|
|
11305
12513
|
Returns: string[];
|
|
11306
12514
|
};
|
|
12515
|
+
sync_all_layer_stocks: {
|
|
12516
|
+
Args: never;
|
|
12517
|
+
Returns: undefined;
|
|
12518
|
+
};
|
|
11307
12519
|
sync_cached_packing_from_product: {
|
|
11308
12520
|
Args: {
|
|
11309
12521
|
p_product_id: string;
|
|
11310
12522
|
};
|
|
11311
12523
|
Returns: undefined;
|
|
11312
12524
|
};
|
|
12525
|
+
sync_layer_stock: {
|
|
12526
|
+
Args: {
|
|
12527
|
+
p_product_id: string;
|
|
12528
|
+
};
|
|
12529
|
+
Returns: undefined;
|
|
12530
|
+
};
|
|
11313
12531
|
sync_order_cart_item_packing_from_product: {
|
|
11314
12532
|
Args: {
|
|
11315
12533
|
p_product_id: string;
|
|
11316
12534
|
};
|
|
11317
12535
|
Returns: undefined;
|
|
11318
12536
|
};
|
|
12537
|
+
sync_product_group_belading: {
|
|
12538
|
+
Args: {
|
|
12539
|
+
_group_id: string;
|
|
12540
|
+
};
|
|
12541
|
+
Returns: undefined;
|
|
12542
|
+
};
|
|
11319
12543
|
sync_product_packing_from_floriday_cache: {
|
|
11320
12544
|
Args: {
|
|
11321
12545
|
p_floriday_id: string;
|