@flowselections/floriday-afhandeling-module 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +255 -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 +1340 -164
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1340 -164
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1340 -164
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1469 -262
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +2862 -510
- 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 +195 -0
- package/dist-lib/lib/carriers.functions.d.ts +6645 -765
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +6645 -765
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +13290 -1530
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +1340 -164
- 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 +50090 -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 +12556 -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 +25068 -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 +100185 -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 +50096 -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 +6 -4
|
@@ -259,6 +259,165 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
259
259
|
};
|
|
260
260
|
Relationships: [];
|
|
261
261
|
};
|
|
262
|
+
ai_credentials: {
|
|
263
|
+
Row: {
|
|
264
|
+
active: boolean;
|
|
265
|
+
api_key: string;
|
|
266
|
+
created_at: string;
|
|
267
|
+
created_by: string | null;
|
|
268
|
+
id: string;
|
|
269
|
+
label: string;
|
|
270
|
+
provider_id: string;
|
|
271
|
+
updated_at: string;
|
|
272
|
+
};
|
|
273
|
+
Insert: {
|
|
274
|
+
active?: boolean;
|
|
275
|
+
api_key: string;
|
|
276
|
+
created_at?: string;
|
|
277
|
+
created_by?: string | null;
|
|
278
|
+
id?: string;
|
|
279
|
+
label: string;
|
|
280
|
+
provider_id: string;
|
|
281
|
+
updated_at?: string;
|
|
282
|
+
};
|
|
283
|
+
Update: {
|
|
284
|
+
active?: boolean;
|
|
285
|
+
api_key?: string;
|
|
286
|
+
created_at?: string;
|
|
287
|
+
created_by?: string | null;
|
|
288
|
+
id?: string;
|
|
289
|
+
label?: string;
|
|
290
|
+
provider_id?: string;
|
|
291
|
+
updated_at?: string;
|
|
292
|
+
};
|
|
293
|
+
Relationships: [{
|
|
294
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
295
|
+
columns: ["provider_id"];
|
|
296
|
+
isOneToOne: false;
|
|
297
|
+
referencedRelation: "ai_providers";
|
|
298
|
+
referencedColumns: ["id"];
|
|
299
|
+
}];
|
|
300
|
+
};
|
|
301
|
+
ai_models: {
|
|
302
|
+
Row: {
|
|
303
|
+
active: boolean;
|
|
304
|
+
context_window: number | null;
|
|
305
|
+
created_at: string;
|
|
306
|
+
display_name: string;
|
|
307
|
+
id: string;
|
|
308
|
+
is_default: boolean;
|
|
309
|
+
modality: string;
|
|
310
|
+
provider_id: string;
|
|
311
|
+
slug: string;
|
|
312
|
+
updated_at: string;
|
|
313
|
+
};
|
|
314
|
+
Insert: {
|
|
315
|
+
active?: boolean;
|
|
316
|
+
context_window?: number | null;
|
|
317
|
+
created_at?: string;
|
|
318
|
+
display_name: string;
|
|
319
|
+
id?: string;
|
|
320
|
+
is_default?: boolean;
|
|
321
|
+
modality?: string;
|
|
322
|
+
provider_id: string;
|
|
323
|
+
slug: string;
|
|
324
|
+
updated_at?: string;
|
|
325
|
+
};
|
|
326
|
+
Update: {
|
|
327
|
+
active?: boolean;
|
|
328
|
+
context_window?: number | null;
|
|
329
|
+
created_at?: string;
|
|
330
|
+
display_name?: string;
|
|
331
|
+
id?: string;
|
|
332
|
+
is_default?: boolean;
|
|
333
|
+
modality?: string;
|
|
334
|
+
provider_id?: string;
|
|
335
|
+
slug?: string;
|
|
336
|
+
updated_at?: string;
|
|
337
|
+
};
|
|
338
|
+
Relationships: [{
|
|
339
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
340
|
+
columns: ["provider_id"];
|
|
341
|
+
isOneToOne: false;
|
|
342
|
+
referencedRelation: "ai_providers";
|
|
343
|
+
referencedColumns: ["id"];
|
|
344
|
+
}];
|
|
345
|
+
};
|
|
346
|
+
ai_module_bindings: {
|
|
347
|
+
Row: {
|
|
348
|
+
consumer_module_id: string;
|
|
349
|
+
created_at: string;
|
|
350
|
+
credential_id: string;
|
|
351
|
+
id: string;
|
|
352
|
+
model_id: string;
|
|
353
|
+
notes: string | null;
|
|
354
|
+
updated_at: string;
|
|
355
|
+
};
|
|
356
|
+
Insert: {
|
|
357
|
+
consumer_module_id: string;
|
|
358
|
+
created_at?: string;
|
|
359
|
+
credential_id: string;
|
|
360
|
+
id?: string;
|
|
361
|
+
model_id: string;
|
|
362
|
+
notes?: string | null;
|
|
363
|
+
updated_at?: string;
|
|
364
|
+
};
|
|
365
|
+
Update: {
|
|
366
|
+
consumer_module_id?: string;
|
|
367
|
+
created_at?: string;
|
|
368
|
+
credential_id?: string;
|
|
369
|
+
id?: string;
|
|
370
|
+
model_id?: string;
|
|
371
|
+
notes?: string | null;
|
|
372
|
+
updated_at?: string;
|
|
373
|
+
};
|
|
374
|
+
Relationships: [{
|
|
375
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
376
|
+
columns: ["credential_id"];
|
|
377
|
+
isOneToOne: false;
|
|
378
|
+
referencedRelation: "ai_credentials";
|
|
379
|
+
referencedColumns: ["id"];
|
|
380
|
+
}, {
|
|
381
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
382
|
+
columns: ["model_id"];
|
|
383
|
+
isOneToOne: false;
|
|
384
|
+
referencedRelation: "ai_models";
|
|
385
|
+
referencedColumns: ["id"];
|
|
386
|
+
}];
|
|
387
|
+
};
|
|
388
|
+
ai_providers: {
|
|
389
|
+
Row: {
|
|
390
|
+
active: boolean;
|
|
391
|
+
auth_type: string;
|
|
392
|
+
base_url: string | null;
|
|
393
|
+
created_at: string;
|
|
394
|
+
id: string;
|
|
395
|
+
name: string;
|
|
396
|
+
slug: string;
|
|
397
|
+
updated_at: string;
|
|
398
|
+
};
|
|
399
|
+
Insert: {
|
|
400
|
+
active?: boolean;
|
|
401
|
+
auth_type?: string;
|
|
402
|
+
base_url?: string | null;
|
|
403
|
+
created_at?: string;
|
|
404
|
+
id?: string;
|
|
405
|
+
name: string;
|
|
406
|
+
slug: string;
|
|
407
|
+
updated_at?: string;
|
|
408
|
+
};
|
|
409
|
+
Update: {
|
|
410
|
+
active?: boolean;
|
|
411
|
+
auth_type?: string;
|
|
412
|
+
base_url?: string | null;
|
|
413
|
+
created_at?: string;
|
|
414
|
+
id?: string;
|
|
415
|
+
name?: string;
|
|
416
|
+
slug?: string;
|
|
417
|
+
updated_at?: string;
|
|
418
|
+
};
|
|
419
|
+
Relationships: [];
|
|
420
|
+
};
|
|
262
421
|
app_settings: {
|
|
263
422
|
Row: {
|
|
264
423
|
created_at: string;
|
|
@@ -886,6 +1045,138 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
886
1045
|
};
|
|
887
1046
|
Relationships: [];
|
|
888
1047
|
};
|
|
1048
|
+
cart_planning_pick_times: {
|
|
1049
|
+
Row: {
|
|
1050
|
+
created_at: string;
|
|
1051
|
+
id: string;
|
|
1052
|
+
pot_size: string;
|
|
1053
|
+
seconds_per_cart: number;
|
|
1054
|
+
updated_at: string;
|
|
1055
|
+
};
|
|
1056
|
+
Insert: {
|
|
1057
|
+
created_at?: string;
|
|
1058
|
+
id?: string;
|
|
1059
|
+
pot_size: string;
|
|
1060
|
+
seconds_per_cart: number;
|
|
1061
|
+
updated_at?: string;
|
|
1062
|
+
};
|
|
1063
|
+
Update: {
|
|
1064
|
+
created_at?: string;
|
|
1065
|
+
id?: string;
|
|
1066
|
+
pot_size?: string;
|
|
1067
|
+
seconds_per_cart?: number;
|
|
1068
|
+
updated_at?: string;
|
|
1069
|
+
};
|
|
1070
|
+
Relationships: [];
|
|
1071
|
+
};
|
|
1072
|
+
cart_planning_product_overrides: {
|
|
1073
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
1092
|
+
created_at?: string;
|
|
1093
|
+
id?: string;
|
|
1094
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1095
|
+
never_mix?: boolean;
|
|
1096
|
+
notes?: string | null;
|
|
1097
|
+
product_id?: string;
|
|
1098
|
+
updated_at?: string;
|
|
1099
|
+
};
|
|
1100
|
+
Relationships: [{
|
|
1101
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1102
|
+
columns: ["product_id"];
|
|
1103
|
+
isOneToOne: true;
|
|
1104
|
+
referencedRelation: "products";
|
|
1105
|
+
referencedColumns: ["id"];
|
|
1106
|
+
}];
|
|
1107
|
+
};
|
|
1108
|
+
cart_planning_settings: {
|
|
1109
|
+
Row: {
|
|
1110
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1111
|
+
buffer_grouping_mode: string;
|
|
1112
|
+
combine_floriday_orders: boolean;
|
|
1113
|
+
combine_floriday_orders_window: string;
|
|
1114
|
+
combine_orders_scope: string;
|
|
1115
|
+
default_workers: number;
|
|
1116
|
+
id: number;
|
|
1117
|
+
max_beladingen_per_layer: number;
|
|
1118
|
+
max_customers_per_cart: number;
|
|
1119
|
+
max_one_customer_per_layer: boolean;
|
|
1120
|
+
max_party_share_per_layer_pct: number;
|
|
1121
|
+
optimization_strategy: string;
|
|
1122
|
+
own_cart_from_layers: number;
|
|
1123
|
+
pick_time_mode: string;
|
|
1124
|
+
plants_per_hour: number;
|
|
1125
|
+
require_same_carrier: boolean;
|
|
1126
|
+
require_same_crate_type: boolean;
|
|
1127
|
+
require_same_delivery_date: boolean;
|
|
1128
|
+
require_same_delivery_location: boolean;
|
|
1129
|
+
updated_at: string;
|
|
1130
|
+
updated_by: string | null;
|
|
1131
|
+
};
|
|
1132
|
+
Insert: {
|
|
1133
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1134
|
+
buffer_grouping_mode?: string;
|
|
1135
|
+
combine_floriday_orders?: boolean;
|
|
1136
|
+
combine_floriday_orders_window?: string;
|
|
1137
|
+
combine_orders_scope?: string;
|
|
1138
|
+
default_workers?: number;
|
|
1139
|
+
id?: number;
|
|
1140
|
+
max_beladingen_per_layer?: number;
|
|
1141
|
+
max_customers_per_cart?: number;
|
|
1142
|
+
max_one_customer_per_layer?: boolean;
|
|
1143
|
+
max_party_share_per_layer_pct?: number;
|
|
1144
|
+
optimization_strategy?: string;
|
|
1145
|
+
own_cart_from_layers?: number;
|
|
1146
|
+
pick_time_mode?: string;
|
|
1147
|
+
plants_per_hour?: number;
|
|
1148
|
+
require_same_carrier?: boolean;
|
|
1149
|
+
require_same_crate_type?: boolean;
|
|
1150
|
+
require_same_delivery_date?: boolean;
|
|
1151
|
+
require_same_delivery_location?: boolean;
|
|
1152
|
+
updated_at?: string;
|
|
1153
|
+
updated_by?: string | null;
|
|
1154
|
+
};
|
|
1155
|
+
Update: {
|
|
1156
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1157
|
+
buffer_grouping_mode?: string;
|
|
1158
|
+
combine_floriday_orders?: boolean;
|
|
1159
|
+
combine_floriday_orders_window?: string;
|
|
1160
|
+
combine_orders_scope?: string;
|
|
1161
|
+
default_workers?: number;
|
|
1162
|
+
id?: number;
|
|
1163
|
+
max_beladingen_per_layer?: number;
|
|
1164
|
+
max_customers_per_cart?: number;
|
|
1165
|
+
max_one_customer_per_layer?: boolean;
|
|
1166
|
+
max_party_share_per_layer_pct?: number;
|
|
1167
|
+
optimization_strategy?: string;
|
|
1168
|
+
own_cart_from_layers?: number;
|
|
1169
|
+
pick_time_mode?: string;
|
|
1170
|
+
plants_per_hour?: number;
|
|
1171
|
+
require_same_carrier?: boolean;
|
|
1172
|
+
require_same_crate_type?: boolean;
|
|
1173
|
+
require_same_delivery_date?: boolean;
|
|
1174
|
+
require_same_delivery_location?: boolean;
|
|
1175
|
+
updated_at?: string;
|
|
1176
|
+
updated_by?: string | null;
|
|
1177
|
+
};
|
|
1178
|
+
Relationships: [];
|
|
1179
|
+
};
|
|
889
1180
|
cart_replan_queue: {
|
|
890
1181
|
Row: {
|
|
891
1182
|
attempts: number;
|
|
@@ -916,6 +1207,39 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
916
1207
|
referencedColumns: ["id"];
|
|
917
1208
|
}];
|
|
918
1209
|
};
|
|
1210
|
+
cart_types: {
|
|
1211
|
+
Row: {
|
|
1212
|
+
created_at: string;
|
|
1213
|
+
id: string;
|
|
1214
|
+
is_default: boolean;
|
|
1215
|
+
layer_length_cm: number;
|
|
1216
|
+
layer_width_cm: number;
|
|
1217
|
+
layers_per_cart: number;
|
|
1218
|
+
name: string;
|
|
1219
|
+
updated_at: string;
|
|
1220
|
+
};
|
|
1221
|
+
Insert: {
|
|
1222
|
+
created_at?: string;
|
|
1223
|
+
id?: string;
|
|
1224
|
+
is_default?: boolean;
|
|
1225
|
+
layer_length_cm: number;
|
|
1226
|
+
layer_width_cm: number;
|
|
1227
|
+
layers_per_cart?: number;
|
|
1228
|
+
name: string;
|
|
1229
|
+
updated_at?: string;
|
|
1230
|
+
};
|
|
1231
|
+
Update: {
|
|
1232
|
+
created_at?: string;
|
|
1233
|
+
id?: string;
|
|
1234
|
+
is_default?: boolean;
|
|
1235
|
+
layer_length_cm?: number;
|
|
1236
|
+
layer_width_cm?: number;
|
|
1237
|
+
layers_per_cart?: number;
|
|
1238
|
+
name?: string;
|
|
1239
|
+
updated_at?: string;
|
|
1240
|
+
};
|
|
1241
|
+
Relationships: [];
|
|
1242
|
+
};
|
|
919
1243
|
collections: {
|
|
920
1244
|
Row: {
|
|
921
1245
|
created_at: string;
|
|
@@ -940,6 +1264,36 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
940
1264
|
};
|
|
941
1265
|
Relationships: [];
|
|
942
1266
|
};
|
|
1267
|
+
crate_types: {
|
|
1268
|
+
Row: {
|
|
1269
|
+
created_at: string;
|
|
1270
|
+
id: string;
|
|
1271
|
+
length_cm: number;
|
|
1272
|
+
name: string;
|
|
1273
|
+
plants_per_crate: number;
|
|
1274
|
+
updated_at: string;
|
|
1275
|
+
width_cm: number;
|
|
1276
|
+
};
|
|
1277
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [];
|
|
1296
|
+
};
|
|
943
1297
|
customer_audit_log: {
|
|
944
1298
|
Row: {
|
|
945
1299
|
action: string;
|
|
@@ -3265,127 +3619,28 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
3265
3619
|
referencedColumns: ["id"];
|
|
3266
3620
|
}];
|
|
3267
3621
|
};
|
|
3268
|
-
|
|
3622
|
+
floriday_auction_letters_cache: {
|
|
3269
3623
|
Row: {
|
|
3270
|
-
|
|
3624
|
+
auction_letter_code: string;
|
|
3625
|
+
clock_supply_id: string;
|
|
3271
3626
|
connection_id: string;
|
|
3272
|
-
|
|
3273
|
-
delivery_date: string | null;
|
|
3627
|
+
content_type: string;
|
|
3274
3628
|
fetched_at: string;
|
|
3275
|
-
floriday_id: string;
|
|
3276
3629
|
id: string;
|
|
3277
|
-
|
|
3278
|
-
sequence_number: number;
|
|
3279
|
-
status: string | null;
|
|
3280
|
-
updated_at: string;
|
|
3630
|
+
storage_path: string;
|
|
3281
3631
|
};
|
|
3282
3632
|
Insert: {
|
|
3283
|
-
|
|
3633
|
+
auction_letter_code: string;
|
|
3634
|
+
clock_supply_id: string;
|
|
3284
3635
|
connection_id: string;
|
|
3285
|
-
|
|
3286
|
-
delivery_date?: string | null;
|
|
3636
|
+
content_type?: string;
|
|
3287
3637
|
fetched_at?: string;
|
|
3288
|
-
floriday_id: string;
|
|
3289
3638
|
id?: string;
|
|
3290
|
-
|
|
3291
|
-
sequence_number?: number;
|
|
3292
|
-
status?: string | null;
|
|
3293
|
-
updated_at?: string;
|
|
3639
|
+
storage_path: string;
|
|
3294
3640
|
};
|
|
3295
3641
|
Update: {
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3299
|
-
delivery_date?: string | null;
|
|
3300
|
-
fetched_at?: string;
|
|
3301
|
-
floriday_id?: string;
|
|
3302
|
-
id?: string;
|
|
3303
|
-
is_deleted?: boolean;
|
|
3304
|
-
sequence_number?: number;
|
|
3305
|
-
status?: string | null;
|
|
3306
|
-
updated_at?: string;
|
|
3307
|
-
};
|
|
3308
|
-
Relationships: [{
|
|
3309
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
3310
|
-
columns: ["connection_id"];
|
|
3311
|
-
isOneToOne: false;
|
|
3312
|
-
referencedRelation: "floriday_connections";
|
|
3313
|
-
referencedColumns: ["id"];
|
|
3314
|
-
}];
|
|
3315
|
-
};
|
|
3316
|
-
floriday_agreements_cache: {
|
|
3317
|
-
Row: {
|
|
3318
|
-
buyer_organization_id: string | null;
|
|
3319
|
-
connection_id: string;
|
|
3320
|
-
data: import("../integrations/supabase/types").Json;
|
|
3321
|
-
fetched_at: string;
|
|
3322
|
-
floriday_id: string;
|
|
3323
|
-
id: string;
|
|
3324
|
-
is_deleted: boolean;
|
|
3325
|
-
sequence_number: number;
|
|
3326
|
-
status: string | null;
|
|
3327
|
-
updated_at: string;
|
|
3328
|
-
valid_from: string | null;
|
|
3329
|
-
valid_until: string | null;
|
|
3330
|
-
};
|
|
3331
|
-
Insert: {
|
|
3332
|
-
buyer_organization_id?: string | null;
|
|
3333
|
-
connection_id: string;
|
|
3334
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3335
|
-
fetched_at?: string;
|
|
3336
|
-
floriday_id: string;
|
|
3337
|
-
id?: string;
|
|
3338
|
-
is_deleted?: boolean;
|
|
3339
|
-
sequence_number?: number;
|
|
3340
|
-
status?: string | null;
|
|
3341
|
-
updated_at?: string;
|
|
3342
|
-
valid_from?: string | null;
|
|
3343
|
-
valid_until?: string | null;
|
|
3344
|
-
};
|
|
3345
|
-
Update: {
|
|
3346
|
-
buyer_organization_id?: string | null;
|
|
3347
|
-
connection_id?: string;
|
|
3348
|
-
data?: import("../integrations/supabase/types").Json;
|
|
3349
|
-
fetched_at?: string;
|
|
3350
|
-
floriday_id?: string;
|
|
3351
|
-
id?: string;
|
|
3352
|
-
is_deleted?: boolean;
|
|
3353
|
-
sequence_number?: number;
|
|
3354
|
-
status?: string | null;
|
|
3355
|
-
updated_at?: string;
|
|
3356
|
-
valid_from?: string | null;
|
|
3357
|
-
valid_until?: string | null;
|
|
3358
|
-
};
|
|
3359
|
-
Relationships: [{
|
|
3360
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
3361
|
-
columns: ["connection_id"];
|
|
3362
|
-
isOneToOne: false;
|
|
3363
|
-
referencedRelation: "floriday_connections";
|
|
3364
|
-
referencedColumns: ["id"];
|
|
3365
|
-
}];
|
|
3366
|
-
};
|
|
3367
|
-
floriday_auction_letters_cache: {
|
|
3368
|
-
Row: {
|
|
3369
|
-
auction_letter_code: string;
|
|
3370
|
-
clock_supply_id: string;
|
|
3371
|
-
connection_id: string;
|
|
3372
|
-
content_type: string;
|
|
3373
|
-
fetched_at: string;
|
|
3374
|
-
id: string;
|
|
3375
|
-
storage_path: string;
|
|
3376
|
-
};
|
|
3377
|
-
Insert: {
|
|
3378
|
-
auction_letter_code: string;
|
|
3379
|
-
clock_supply_id: string;
|
|
3380
|
-
connection_id: string;
|
|
3381
|
-
content_type?: string;
|
|
3382
|
-
fetched_at?: string;
|
|
3383
|
-
id?: string;
|
|
3384
|
-
storage_path: string;
|
|
3385
|
-
};
|
|
3386
|
-
Update: {
|
|
3387
|
-
auction_letter_code?: string;
|
|
3388
|
-
clock_supply_id?: string;
|
|
3642
|
+
auction_letter_code?: string;
|
|
3643
|
+
clock_supply_id?: string;
|
|
3389
3644
|
connection_id?: string;
|
|
3390
3645
|
content_type?: string;
|
|
3391
3646
|
fetched_at?: string;
|
|
@@ -3862,6 +4117,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
3862
4117
|
referencedColumns: ["id"];
|
|
3863
4118
|
}];
|
|
3864
4119
|
};
|
|
4120
|
+
floriday_continuous_stock_cache: {
|
|
4121
|
+
Row: {
|
|
4122
|
+
connection_id: string;
|
|
4123
|
+
fetched_at: string;
|
|
4124
|
+
number_of_pieces: number;
|
|
4125
|
+
trade_item_id: string;
|
|
4126
|
+
};
|
|
4127
|
+
Insert: {
|
|
4128
|
+
connection_id: string;
|
|
4129
|
+
fetched_at?: string;
|
|
4130
|
+
number_of_pieces?: number;
|
|
4131
|
+
trade_item_id: string;
|
|
4132
|
+
};
|
|
4133
|
+
Update: {
|
|
4134
|
+
connection_id?: string;
|
|
4135
|
+
fetched_at?: string;
|
|
4136
|
+
number_of_pieces?: number;
|
|
4137
|
+
trade_item_id?: string;
|
|
4138
|
+
};
|
|
4139
|
+
Relationships: [];
|
|
4140
|
+
};
|
|
3865
4141
|
floriday_continuous_stock_queue: {
|
|
3866
4142
|
Row: {
|
|
3867
4143
|
attempts: number;
|
|
@@ -4637,6 +4913,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
4637
4913
|
Row: {
|
|
4638
4914
|
buyer_organization_id: string | null;
|
|
4639
4915
|
connection_id: string;
|
|
4916
|
+
controlled_at: string | null;
|
|
4917
|
+
controlled_by: string | null;
|
|
4640
4918
|
created_at: string;
|
|
4641
4919
|
data: import("../integrations/supabase/types").Json;
|
|
4642
4920
|
floriday_id: string;
|
|
@@ -4648,6 +4926,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
4648
4926
|
Insert: {
|
|
4649
4927
|
buyer_organization_id?: string | null;
|
|
4650
4928
|
connection_id: string;
|
|
4929
|
+
controlled_at?: string | null;
|
|
4930
|
+
controlled_by?: string | null;
|
|
4651
4931
|
created_at?: string;
|
|
4652
4932
|
data: import("../integrations/supabase/types").Json;
|
|
4653
4933
|
floriday_id: string;
|
|
@@ -4659,6 +4939,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
4659
4939
|
Update: {
|
|
4660
4940
|
buyer_organization_id?: string | null;
|
|
4661
4941
|
connection_id?: string;
|
|
4942
|
+
controlled_at?: string | null;
|
|
4943
|
+
controlled_by?: string | null;
|
|
4662
4944
|
created_at?: string;
|
|
4663
4945
|
data?: import("../integrations/supabase/types").Json;
|
|
4664
4946
|
floriday_id?: string;
|
|
@@ -4840,6 +5122,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
4840
5122
|
referencedColumns: ["id"];
|
|
4841
5123
|
}];
|
|
4842
5124
|
};
|
|
5125
|
+
floriday_trade_settings_customers_cache: {
|
|
5126
|
+
Row: {
|
|
5127
|
+
connection_id: string;
|
|
5128
|
+
data: import("../integrations/supabase/types").Json;
|
|
5129
|
+
fetched_at: string;
|
|
5130
|
+
floriday_id: string;
|
|
5131
|
+
id: string;
|
|
5132
|
+
is_deleted: boolean;
|
|
5133
|
+
sequence_number: number;
|
|
5134
|
+
updated_at: string;
|
|
5135
|
+
};
|
|
5136
|
+
Insert: {
|
|
5137
|
+
connection_id: string;
|
|
5138
|
+
data: import("../integrations/supabase/types").Json;
|
|
5139
|
+
fetched_at?: string;
|
|
5140
|
+
floriday_id: string;
|
|
5141
|
+
id?: string;
|
|
5142
|
+
is_deleted?: boolean;
|
|
5143
|
+
sequence_number?: number;
|
|
5144
|
+
updated_at?: string;
|
|
5145
|
+
};
|
|
5146
|
+
Update: {
|
|
5147
|
+
connection_id?: string;
|
|
5148
|
+
data?: import("../integrations/supabase/types").Json;
|
|
5149
|
+
fetched_at?: string;
|
|
5150
|
+
floriday_id?: string;
|
|
5151
|
+
id?: string;
|
|
5152
|
+
is_deleted?: boolean;
|
|
5153
|
+
sequence_number?: number;
|
|
5154
|
+
updated_at?: string;
|
|
5155
|
+
};
|
|
5156
|
+
Relationships: [{
|
|
5157
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
5158
|
+
columns: ["connection_id"];
|
|
5159
|
+
isOneToOne: false;
|
|
5160
|
+
referencedRelation: "floriday_connections";
|
|
5161
|
+
referencedColumns: ["id"];
|
|
5162
|
+
}];
|
|
5163
|
+
};
|
|
4843
5164
|
floriday_trips_cache: {
|
|
4844
5165
|
Row: {
|
|
4845
5166
|
carrier_organization_id: string | null;
|
|
@@ -4888,6 +5209,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
4888
5209
|
referencedColumns: ["id"];
|
|
4889
5210
|
}];
|
|
4890
5211
|
};
|
|
5212
|
+
floriday_vbn_required_characteristics: {
|
|
5213
|
+
Row: {
|
|
5214
|
+
required_codes: string[];
|
|
5215
|
+
updated_at: string;
|
|
5216
|
+
updated_by: string | null;
|
|
5217
|
+
vbn_code: string;
|
|
5218
|
+
};
|
|
5219
|
+
Insert: {
|
|
5220
|
+
required_codes?: string[];
|
|
5221
|
+
updated_at?: string;
|
|
5222
|
+
updated_by?: string | null;
|
|
5223
|
+
vbn_code: string;
|
|
5224
|
+
};
|
|
5225
|
+
Update: {
|
|
5226
|
+
required_codes?: string[];
|
|
5227
|
+
updated_at?: string;
|
|
5228
|
+
updated_by?: string | null;
|
|
5229
|
+
vbn_code?: string;
|
|
5230
|
+
};
|
|
5231
|
+
Relationships: [];
|
|
5232
|
+
};
|
|
4891
5233
|
floriday_warehouses_cache: {
|
|
4892
5234
|
Row: {
|
|
4893
5235
|
connection_id: string;
|
|
@@ -5590,115 +5932,394 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5590
5932
|
};
|
|
5591
5933
|
Relationships: [];
|
|
5592
5934
|
};
|
|
5593
|
-
|
|
5935
|
+
logistics_capacity_events: {
|
|
5594
5936
|
Row: {
|
|
5595
|
-
|
|
5596
|
-
body_text: string | null;
|
|
5597
|
-
connection_id: string | null;
|
|
5937
|
+
available_carts: number;
|
|
5598
5938
|
created_at: string;
|
|
5599
|
-
error_message: string | null;
|
|
5600
|
-
external_id: string | null;
|
|
5601
|
-
from_email: string | null;
|
|
5602
|
-
from_name: string | null;
|
|
5603
5939
|
id: string;
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5940
|
+
measures: import("../integrations/supabase/types").Json;
|
|
5941
|
+
note: string | null;
|
|
5942
|
+
outcome: string;
|
|
5943
|
+
required_carts: number;
|
|
5944
|
+
reserve_minutes: number;
|
|
5945
|
+
shortage_carts: number;
|
|
5608
5946
|
status: string;
|
|
5609
|
-
|
|
5610
|
-
uid: number | null;
|
|
5611
|
-
updated_at: string;
|
|
5947
|
+
user_id: string;
|
|
5612
5948
|
};
|
|
5613
5949
|
Insert: {
|
|
5614
|
-
|
|
5615
|
-
body_text?: string | null;
|
|
5616
|
-
connection_id?: string | null;
|
|
5950
|
+
available_carts?: number;
|
|
5617
5951
|
created_at?: string;
|
|
5618
|
-
error_message?: string | null;
|
|
5619
|
-
external_id?: string | null;
|
|
5620
|
-
from_email?: string | null;
|
|
5621
|
-
from_name?: string | null;
|
|
5622
5952
|
id?: string;
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5953
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
5954
|
+
note?: string | null;
|
|
5955
|
+
outcome?: string;
|
|
5956
|
+
required_carts?: number;
|
|
5957
|
+
reserve_minutes?: number;
|
|
5958
|
+
shortage_carts?: number;
|
|
5959
|
+
status: string;
|
|
5960
|
+
user_id: string;
|
|
5631
5961
|
};
|
|
5632
5962
|
Update: {
|
|
5633
|
-
|
|
5634
|
-
body_text?: string | null;
|
|
5635
|
-
connection_id?: string | null;
|
|
5963
|
+
available_carts?: number;
|
|
5636
5964
|
created_at?: string;
|
|
5637
|
-
error_message?: string | null;
|
|
5638
|
-
external_id?: string | null;
|
|
5639
|
-
from_email?: string | null;
|
|
5640
|
-
from_name?: string | null;
|
|
5641
5965
|
id?: string;
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5966
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
5967
|
+
note?: string | null;
|
|
5968
|
+
outcome?: string;
|
|
5969
|
+
required_carts?: number;
|
|
5970
|
+
reserve_minutes?: number;
|
|
5971
|
+
shortage_carts?: number;
|
|
5646
5972
|
status?: string;
|
|
5647
|
-
|
|
5648
|
-
uid?: number | null;
|
|
5649
|
-
updated_at?: string;
|
|
5973
|
+
user_id?: string;
|
|
5650
5974
|
};
|
|
5651
|
-
Relationships: [
|
|
5652
|
-
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
5653
|
-
columns: ["connection_id"];
|
|
5654
|
-
isOneToOne: false;
|
|
5655
|
-
referencedRelation: "email_auth_connections";
|
|
5656
|
-
referencedColumns: ["id"];
|
|
5657
|
-
}, {
|
|
5658
|
-
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
5659
|
-
columns: ["connection_id"];
|
|
5660
|
-
isOneToOne: false;
|
|
5661
|
-
referencedRelation: "email_auth_connections_safe";
|
|
5662
|
-
referencedColumns: ["id"];
|
|
5663
|
-
}, {
|
|
5664
|
-
foreignKeyName: "mailbox_messages_profile_id_fkey";
|
|
5665
|
-
columns: ["profile_id"];
|
|
5666
|
-
isOneToOne: false;
|
|
5667
|
-
referencedRelation: "imap_profiles";
|
|
5668
|
-
referencedColumns: ["id"];
|
|
5669
|
-
}];
|
|
5975
|
+
Relationships: [];
|
|
5670
5976
|
};
|
|
5671
|
-
|
|
5977
|
+
logistics_capacity_settings: {
|
|
5672
5978
|
Row: {
|
|
5673
|
-
confidence: number | null;
|
|
5674
5979
|
created_at: string;
|
|
5675
|
-
|
|
5676
|
-
delivery_date: string | null;
|
|
5677
|
-
id: string;
|
|
5678
|
-
matched_customer_id: string | null;
|
|
5679
|
-
message_id: string;
|
|
5680
|
-
notes: string | null;
|
|
5681
|
-
order_number: string | null;
|
|
5682
|
-
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
5683
|
-
reviewed_at: string | null;
|
|
5684
|
-
reviewed_by: string | null;
|
|
5685
|
-
status: string;
|
|
5980
|
+
settings: import("../integrations/supabase/types").Json;
|
|
5686
5981
|
updated_at: string;
|
|
5982
|
+
user_id: string;
|
|
5687
5983
|
};
|
|
5688
5984
|
Insert: {
|
|
5689
|
-
confidence?: number | null;
|
|
5690
5985
|
created_at?: string;
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5986
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
5987
|
+
updated_at?: string;
|
|
5988
|
+
user_id: string;
|
|
5989
|
+
};
|
|
5990
|
+
Update: {
|
|
5991
|
+
created_at?: string;
|
|
5992
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
5993
|
+
updated_at?: string;
|
|
5994
|
+
user_id?: string;
|
|
5995
|
+
};
|
|
5996
|
+
Relationships: [];
|
|
5997
|
+
};
|
|
5998
|
+
logistics_decisions: {
|
|
5999
|
+
Row: {
|
|
6000
|
+
created_at: string;
|
|
6001
|
+
explanation: string | null;
|
|
6002
|
+
id: string;
|
|
6003
|
+
input_snapshot: import("../integrations/supabase/types").Json;
|
|
6004
|
+
result: import("../integrations/supabase/types").Json;
|
|
6005
|
+
slot: string;
|
|
6006
|
+
strategy_id: string | null;
|
|
6007
|
+
subject_id: string;
|
|
6008
|
+
subject_type: string;
|
|
6009
|
+
user_id: string;
|
|
6010
|
+
};
|
|
6011
|
+
Insert: {
|
|
6012
|
+
created_at?: string;
|
|
6013
|
+
explanation?: string | null;
|
|
6014
|
+
id?: string;
|
|
6015
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
6016
|
+
result?: import("../integrations/supabase/types").Json;
|
|
6017
|
+
slot: string;
|
|
6018
|
+
strategy_id?: string | null;
|
|
6019
|
+
subject_id: string;
|
|
6020
|
+
subject_type: string;
|
|
6021
|
+
user_id: string;
|
|
6022
|
+
};
|
|
6023
|
+
Update: {
|
|
6024
|
+
created_at?: string;
|
|
6025
|
+
explanation?: string | null;
|
|
6026
|
+
id?: string;
|
|
6027
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
6028
|
+
result?: import("../integrations/supabase/types").Json;
|
|
6029
|
+
slot?: string;
|
|
6030
|
+
strategy_id?: string | null;
|
|
6031
|
+
subject_id?: string;
|
|
6032
|
+
subject_type?: string;
|
|
6033
|
+
user_id?: string;
|
|
6034
|
+
};
|
|
6035
|
+
Relationships: [{
|
|
6036
|
+
foreignKeyName: "logistics_decisions_strategy_id_fkey";
|
|
6037
|
+
columns: ["strategy_id"];
|
|
6038
|
+
isOneToOne: false;
|
|
6039
|
+
referencedRelation: "logistics_strategies";
|
|
6040
|
+
referencedColumns: ["id"];
|
|
6041
|
+
}];
|
|
6042
|
+
};
|
|
6043
|
+
logistics_formulas: {
|
|
6044
|
+
Row: {
|
|
6045
|
+
created_at: string;
|
|
6046
|
+
expression: string;
|
|
6047
|
+
id: string;
|
|
6048
|
+
notes: string | null;
|
|
6049
|
+
slot: string;
|
|
6050
|
+
strategy_id: string;
|
|
6051
|
+
updated_at: string;
|
|
6052
|
+
user_id: string;
|
|
6053
|
+
version: number;
|
|
6054
|
+
};
|
|
6055
|
+
Insert: {
|
|
6056
|
+
created_at?: string;
|
|
6057
|
+
expression?: string;
|
|
6058
|
+
id?: string;
|
|
6059
|
+
notes?: string | null;
|
|
6060
|
+
slot: string;
|
|
6061
|
+
strategy_id: string;
|
|
6062
|
+
updated_at?: string;
|
|
6063
|
+
user_id: string;
|
|
6064
|
+
version?: number;
|
|
6065
|
+
};
|
|
6066
|
+
Update: {
|
|
6067
|
+
created_at?: string;
|
|
6068
|
+
expression?: string;
|
|
6069
|
+
id?: string;
|
|
6070
|
+
notes?: string | null;
|
|
6071
|
+
slot?: string;
|
|
6072
|
+
strategy_id?: string;
|
|
6073
|
+
updated_at?: string;
|
|
6074
|
+
user_id?: string;
|
|
6075
|
+
version?: number;
|
|
6076
|
+
};
|
|
6077
|
+
Relationships: [{
|
|
6078
|
+
foreignKeyName: "logistics_formulas_strategy_id_fkey";
|
|
6079
|
+
columns: ["strategy_id"];
|
|
6080
|
+
isOneToOne: false;
|
|
6081
|
+
referencedRelation: "logistics_strategies";
|
|
6082
|
+
referencedColumns: ["id"];
|
|
6083
|
+
}];
|
|
6084
|
+
};
|
|
6085
|
+
logistics_strategies: {
|
|
6086
|
+
Row: {
|
|
6087
|
+
color: string;
|
|
6088
|
+
created_at: string;
|
|
6089
|
+
description: string | null;
|
|
6090
|
+
id: string;
|
|
6091
|
+
is_active: boolean;
|
|
6092
|
+
name: string;
|
|
6093
|
+
priority: number;
|
|
6094
|
+
updated_at: string;
|
|
6095
|
+
updated_by: string | null;
|
|
6096
|
+
user_id: string;
|
|
6097
|
+
version: number;
|
|
6098
|
+
};
|
|
6099
|
+
Insert: {
|
|
6100
|
+
color?: string;
|
|
6101
|
+
created_at?: string;
|
|
6102
|
+
description?: string | null;
|
|
6103
|
+
id?: string;
|
|
6104
|
+
is_active?: boolean;
|
|
6105
|
+
name: string;
|
|
6106
|
+
priority?: number;
|
|
6107
|
+
updated_at?: string;
|
|
6108
|
+
updated_by?: string | null;
|
|
6109
|
+
user_id: string;
|
|
6110
|
+
version?: number;
|
|
6111
|
+
};
|
|
6112
|
+
Update: {
|
|
6113
|
+
color?: string;
|
|
6114
|
+
created_at?: string;
|
|
6115
|
+
description?: string | null;
|
|
6116
|
+
id?: string;
|
|
6117
|
+
is_active?: boolean;
|
|
6118
|
+
name?: string;
|
|
6119
|
+
priority?: number;
|
|
6120
|
+
updated_at?: string;
|
|
6121
|
+
updated_by?: string | null;
|
|
6122
|
+
user_id?: string;
|
|
6123
|
+
version?: number;
|
|
6124
|
+
};
|
|
6125
|
+
Relationships: [];
|
|
6126
|
+
};
|
|
6127
|
+
logistics_strategy_schedules: {
|
|
6128
|
+
Row: {
|
|
6129
|
+
condition_expression: string | null;
|
|
6130
|
+
created_at: string;
|
|
6131
|
+
end_date: string | null;
|
|
6132
|
+
id: string;
|
|
6133
|
+
is_enabled: boolean;
|
|
6134
|
+
priority: number;
|
|
6135
|
+
rule_type: string;
|
|
6136
|
+
start_date: string | null;
|
|
6137
|
+
strategy_id: string;
|
|
6138
|
+
updated_at: string;
|
|
6139
|
+
user_id: string;
|
|
6140
|
+
};
|
|
6141
|
+
Insert: {
|
|
6142
|
+
condition_expression?: string | null;
|
|
6143
|
+
created_at?: string;
|
|
6144
|
+
end_date?: string | null;
|
|
6145
|
+
id?: string;
|
|
6146
|
+
is_enabled?: boolean;
|
|
6147
|
+
priority?: number;
|
|
6148
|
+
rule_type: string;
|
|
6149
|
+
start_date?: string | null;
|
|
6150
|
+
strategy_id: string;
|
|
6151
|
+
updated_at?: string;
|
|
6152
|
+
user_id: string;
|
|
6153
|
+
};
|
|
6154
|
+
Update: {
|
|
6155
|
+
condition_expression?: string | null;
|
|
6156
|
+
created_at?: string;
|
|
6157
|
+
end_date?: string | null;
|
|
6158
|
+
id?: string;
|
|
6159
|
+
is_enabled?: boolean;
|
|
6160
|
+
priority?: number;
|
|
6161
|
+
rule_type?: string;
|
|
6162
|
+
start_date?: string | null;
|
|
6163
|
+
strategy_id?: string;
|
|
6164
|
+
updated_at?: string;
|
|
6165
|
+
user_id?: string;
|
|
6166
|
+
};
|
|
6167
|
+
Relationships: [{
|
|
6168
|
+
foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
|
|
6169
|
+
columns: ["strategy_id"];
|
|
6170
|
+
isOneToOne: false;
|
|
6171
|
+
referencedRelation: "logistics_strategies";
|
|
6172
|
+
referencedColumns: ["id"];
|
|
6173
|
+
}];
|
|
6174
|
+
};
|
|
6175
|
+
logistics_variables: {
|
|
6176
|
+
Row: {
|
|
6177
|
+
created_at: string;
|
|
6178
|
+
default_value: string | null;
|
|
6179
|
+
description: string | null;
|
|
6180
|
+
id: string;
|
|
6181
|
+
is_builtin: boolean;
|
|
6182
|
+
key: string;
|
|
6183
|
+
label: string;
|
|
6184
|
+
updated_at: string;
|
|
6185
|
+
user_id: string;
|
|
6186
|
+
value_type: string;
|
|
6187
|
+
};
|
|
6188
|
+
Insert: {
|
|
6189
|
+
created_at?: string;
|
|
6190
|
+
default_value?: string | null;
|
|
6191
|
+
description?: string | null;
|
|
6192
|
+
id?: string;
|
|
6193
|
+
is_builtin?: boolean;
|
|
6194
|
+
key: string;
|
|
6195
|
+
label: string;
|
|
6196
|
+
updated_at?: string;
|
|
6197
|
+
user_id: string;
|
|
6198
|
+
value_type: string;
|
|
6199
|
+
};
|
|
6200
|
+
Update: {
|
|
6201
|
+
created_at?: string;
|
|
6202
|
+
default_value?: string | null;
|
|
6203
|
+
description?: string | null;
|
|
6204
|
+
id?: string;
|
|
6205
|
+
is_builtin?: boolean;
|
|
6206
|
+
key?: string;
|
|
6207
|
+
label?: string;
|
|
6208
|
+
updated_at?: string;
|
|
6209
|
+
user_id?: string;
|
|
6210
|
+
value_type?: string;
|
|
6211
|
+
};
|
|
6212
|
+
Relationships: [];
|
|
6213
|
+
};
|
|
6214
|
+
mailbox_messages: {
|
|
6215
|
+
Row: {
|
|
6216
|
+
body_html: string | null;
|
|
6217
|
+
body_text: string | null;
|
|
6218
|
+
connection_id: string | null;
|
|
6219
|
+
created_at: string;
|
|
6220
|
+
error_message: string | null;
|
|
6221
|
+
external_id: string | null;
|
|
6222
|
+
from_email: string | null;
|
|
6223
|
+
from_name: string | null;
|
|
6224
|
+
id: string;
|
|
6225
|
+
message_id: string | null;
|
|
6226
|
+
profile_id: string | null;
|
|
6227
|
+
raw_size: number | null;
|
|
6228
|
+
received_at: string | null;
|
|
6229
|
+
status: string;
|
|
6230
|
+
subject: string | null;
|
|
6231
|
+
uid: number | null;
|
|
6232
|
+
updated_at: string;
|
|
6233
|
+
};
|
|
6234
|
+
Insert: {
|
|
6235
|
+
body_html?: string | null;
|
|
6236
|
+
body_text?: string | null;
|
|
6237
|
+
connection_id?: string | null;
|
|
6238
|
+
created_at?: string;
|
|
6239
|
+
error_message?: string | null;
|
|
6240
|
+
external_id?: string | null;
|
|
6241
|
+
from_email?: string | null;
|
|
6242
|
+
from_name?: string | null;
|
|
6243
|
+
id?: string;
|
|
6244
|
+
message_id?: string | null;
|
|
6245
|
+
profile_id?: string | null;
|
|
6246
|
+
raw_size?: number | null;
|
|
6247
|
+
received_at?: string | null;
|
|
6248
|
+
status?: string;
|
|
6249
|
+
subject?: string | null;
|
|
6250
|
+
uid?: number | null;
|
|
6251
|
+
updated_at?: string;
|
|
6252
|
+
};
|
|
6253
|
+
Update: {
|
|
6254
|
+
body_html?: string | null;
|
|
6255
|
+
body_text?: string | null;
|
|
6256
|
+
connection_id?: string | null;
|
|
6257
|
+
created_at?: string;
|
|
6258
|
+
error_message?: string | null;
|
|
6259
|
+
external_id?: string | null;
|
|
6260
|
+
from_email?: string | null;
|
|
6261
|
+
from_name?: string | null;
|
|
6262
|
+
id?: string;
|
|
6263
|
+
message_id?: string | null;
|
|
6264
|
+
profile_id?: string | null;
|
|
6265
|
+
raw_size?: number | null;
|
|
6266
|
+
received_at?: string | null;
|
|
6267
|
+
status?: string;
|
|
6268
|
+
subject?: string | null;
|
|
6269
|
+
uid?: number | null;
|
|
6270
|
+
updated_at?: string;
|
|
6271
|
+
};
|
|
6272
|
+
Relationships: [{
|
|
6273
|
+
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
6274
|
+
columns: ["connection_id"];
|
|
6275
|
+
isOneToOne: false;
|
|
6276
|
+
referencedRelation: "email_auth_connections";
|
|
6277
|
+
referencedColumns: ["id"];
|
|
6278
|
+
}, {
|
|
6279
|
+
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
6280
|
+
columns: ["connection_id"];
|
|
6281
|
+
isOneToOne: false;
|
|
6282
|
+
referencedRelation: "email_auth_connections_safe";
|
|
6283
|
+
referencedColumns: ["id"];
|
|
6284
|
+
}, {
|
|
6285
|
+
foreignKeyName: "mailbox_messages_profile_id_fkey";
|
|
6286
|
+
columns: ["profile_id"];
|
|
6287
|
+
isOneToOne: false;
|
|
6288
|
+
referencedRelation: "imap_profiles";
|
|
6289
|
+
referencedColumns: ["id"];
|
|
6290
|
+
}];
|
|
6291
|
+
};
|
|
6292
|
+
mailbox_order_proposals: {
|
|
6293
|
+
Row: {
|
|
6294
|
+
confidence: number | null;
|
|
6295
|
+
created_at: string;
|
|
6296
|
+
created_order_id: string | null;
|
|
6297
|
+
delivery_date: string | null;
|
|
6298
|
+
id: string;
|
|
6299
|
+
matched_customer_id: string | null;
|
|
6300
|
+
message_id: string;
|
|
6301
|
+
notes: string | null;
|
|
6302
|
+
order_number: string | null;
|
|
6303
|
+
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
6304
|
+
reviewed_at: string | null;
|
|
6305
|
+
reviewed_by: string | null;
|
|
6306
|
+
status: string;
|
|
6307
|
+
updated_at: string;
|
|
6308
|
+
};
|
|
6309
|
+
Insert: {
|
|
6310
|
+
confidence?: number | null;
|
|
6311
|
+
created_at?: string;
|
|
6312
|
+
created_order_id?: string | null;
|
|
6313
|
+
delivery_date?: string | null;
|
|
6314
|
+
id?: string;
|
|
6315
|
+
matched_customer_id?: string | null;
|
|
6316
|
+
message_id: string;
|
|
6317
|
+
notes?: string | null;
|
|
6318
|
+
order_number?: string | null;
|
|
6319
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
6320
|
+
reviewed_at?: string | null;
|
|
6321
|
+
reviewed_by?: string | null;
|
|
6322
|
+
status?: string;
|
|
5702
6323
|
updated_at?: string;
|
|
5703
6324
|
};
|
|
5704
6325
|
Update: {
|
|
@@ -5985,39 +6606,60 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
5985
6606
|
};
|
|
5986
6607
|
manufacture_products: {
|
|
5987
6608
|
Row: {
|
|
6609
|
+
aantal_te_produceren: number;
|
|
5988
6610
|
created_at: string;
|
|
5989
6611
|
description: string | null;
|
|
5990
6612
|
id: string;
|
|
5991
6613
|
is_active: boolean;
|
|
6614
|
+
location_id: string | null;
|
|
5992
6615
|
name: string;
|
|
6616
|
+
partij_nummer: string | null;
|
|
6617
|
+
photos: import("../integrations/supabase/types").Json;
|
|
5993
6618
|
produced_stock: number;
|
|
5994
6619
|
product_code: string;
|
|
5995
6620
|
tenant_id: string;
|
|
6621
|
+
unit: string;
|
|
5996
6622
|
updated_at: string;
|
|
5997
6623
|
};
|
|
5998
6624
|
Insert: {
|
|
6625
|
+
aantal_te_produceren?: number;
|
|
5999
6626
|
created_at?: string;
|
|
6000
6627
|
description?: string | null;
|
|
6001
6628
|
id?: string;
|
|
6002
6629
|
is_active?: boolean;
|
|
6630
|
+
location_id?: string | null;
|
|
6003
6631
|
name: string;
|
|
6632
|
+
partij_nummer?: string | null;
|
|
6633
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
6004
6634
|
produced_stock?: number;
|
|
6005
6635
|
product_code: string;
|
|
6006
6636
|
tenant_id: string;
|
|
6637
|
+
unit?: string;
|
|
6007
6638
|
updated_at?: string;
|
|
6008
6639
|
};
|
|
6009
6640
|
Update: {
|
|
6641
|
+
aantal_te_produceren?: number;
|
|
6010
6642
|
created_at?: string;
|
|
6011
6643
|
description?: string | null;
|
|
6012
6644
|
id?: string;
|
|
6013
6645
|
is_active?: boolean;
|
|
6646
|
+
location_id?: string | null;
|
|
6014
6647
|
name?: string;
|
|
6648
|
+
partij_nummer?: string | null;
|
|
6649
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
6015
6650
|
produced_stock?: number;
|
|
6016
6651
|
product_code?: string;
|
|
6017
6652
|
tenant_id?: string;
|
|
6653
|
+
unit?: string;
|
|
6018
6654
|
updated_at?: string;
|
|
6019
6655
|
};
|
|
6020
|
-
Relationships: [
|
|
6656
|
+
Relationships: [{
|
|
6657
|
+
foreignKeyName: "manufacture_products_location_id_fkey";
|
|
6658
|
+
columns: ["location_id"];
|
|
6659
|
+
isOneToOne: false;
|
|
6660
|
+
referencedRelation: "locations";
|
|
6661
|
+
referencedColumns: ["id"];
|
|
6662
|
+
}];
|
|
6021
6663
|
};
|
|
6022
6664
|
monteurs: {
|
|
6023
6665
|
Row: {
|
|
@@ -6748,6 +7390,42 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6748
7390
|
};
|
|
6749
7391
|
Relationships: [];
|
|
6750
7392
|
};
|
|
7393
|
+
order_buffers: {
|
|
7394
|
+
Row: {
|
|
7395
|
+
buffer_key: string;
|
|
7396
|
+
created_at: string;
|
|
7397
|
+
customer_id: string | null;
|
|
7398
|
+
grouping_mode: string;
|
|
7399
|
+
id: string;
|
|
7400
|
+
pickup_date: string | null;
|
|
7401
|
+
pickup_location: string | null;
|
|
7402
|
+
plan_locked_at: string | null;
|
|
7403
|
+
updated_at: string;
|
|
7404
|
+
};
|
|
7405
|
+
Insert: {
|
|
7406
|
+
buffer_key: string;
|
|
7407
|
+
created_at?: string;
|
|
7408
|
+
customer_id?: string | null;
|
|
7409
|
+
grouping_mode: string;
|
|
7410
|
+
id?: string;
|
|
7411
|
+
pickup_date?: string | null;
|
|
7412
|
+
pickup_location?: string | null;
|
|
7413
|
+
plan_locked_at?: string | null;
|
|
7414
|
+
updated_at?: string;
|
|
7415
|
+
};
|
|
7416
|
+
Update: {
|
|
7417
|
+
buffer_key?: string;
|
|
7418
|
+
created_at?: string;
|
|
7419
|
+
customer_id?: string | null;
|
|
7420
|
+
grouping_mode?: string;
|
|
7421
|
+
id?: string;
|
|
7422
|
+
pickup_date?: string | null;
|
|
7423
|
+
pickup_location?: string | null;
|
|
7424
|
+
plan_locked_at?: string | null;
|
|
7425
|
+
updated_at?: string;
|
|
7426
|
+
};
|
|
7427
|
+
Relationships: [];
|
|
7428
|
+
};
|
|
6751
7429
|
order_cart_items: {
|
|
6752
7430
|
Row: {
|
|
6753
7431
|
cart_id: string;
|
|
@@ -6814,6 +7492,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6814
7492
|
order_carts: {
|
|
6815
7493
|
Row: {
|
|
6816
7494
|
algorithm_version: number;
|
|
7495
|
+
buffer_id: string | null;
|
|
6817
7496
|
cart_number: number;
|
|
6818
7497
|
created_at: string;
|
|
6819
7498
|
id: string;
|
|
@@ -6821,13 +7500,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6821
7500
|
is_complete: boolean;
|
|
6822
7501
|
notes: string | null;
|
|
6823
7502
|
occupancy_pct: number;
|
|
6824
|
-
order_id: string;
|
|
7503
|
+
order_id: string | null;
|
|
6825
7504
|
source: string;
|
|
6826
7505
|
total_layers_used: number;
|
|
6827
7506
|
updated_at: string;
|
|
6828
7507
|
};
|
|
6829
7508
|
Insert: {
|
|
6830
7509
|
algorithm_version?: number;
|
|
7510
|
+
buffer_id?: string | null;
|
|
6831
7511
|
cart_number: number;
|
|
6832
7512
|
created_at?: string;
|
|
6833
7513
|
id?: string;
|
|
@@ -6835,13 +7515,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6835
7515
|
is_complete?: boolean;
|
|
6836
7516
|
notes?: string | null;
|
|
6837
7517
|
occupancy_pct?: number;
|
|
6838
|
-
order_id
|
|
7518
|
+
order_id?: string | null;
|
|
6839
7519
|
source?: string;
|
|
6840
7520
|
total_layers_used?: number;
|
|
6841
7521
|
updated_at?: string;
|
|
6842
7522
|
};
|
|
6843
7523
|
Update: {
|
|
6844
7524
|
algorithm_version?: number;
|
|
7525
|
+
buffer_id?: string | null;
|
|
6845
7526
|
cart_number?: number;
|
|
6846
7527
|
created_at?: string;
|
|
6847
7528
|
id?: string;
|
|
@@ -6849,12 +7530,18 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6849
7530
|
is_complete?: boolean;
|
|
6850
7531
|
notes?: string | null;
|
|
6851
7532
|
occupancy_pct?: number;
|
|
6852
|
-
order_id?: string;
|
|
7533
|
+
order_id?: string | null;
|
|
6853
7534
|
source?: string;
|
|
6854
7535
|
total_layers_used?: number;
|
|
6855
7536
|
updated_at?: string;
|
|
6856
7537
|
};
|
|
6857
7538
|
Relationships: [{
|
|
7539
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7540
|
+
columns: ["buffer_id"];
|
|
7541
|
+
isOneToOne: false;
|
|
7542
|
+
referencedRelation: "order_buffers";
|
|
7543
|
+
referencedColumns: ["id"];
|
|
7544
|
+
}, {
|
|
6858
7545
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
6859
7546
|
columns: ["order_id"];
|
|
6860
7547
|
isOneToOne: false;
|
|
@@ -6928,78 +7615,180 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
6928
7615
|
};
|
|
6929
7616
|
Relationships: [];
|
|
6930
7617
|
};
|
|
6931
|
-
order_items: {
|
|
7618
|
+
order_items: {
|
|
7619
|
+
Row: {
|
|
7620
|
+
created_at: string;
|
|
7621
|
+
id: string;
|
|
7622
|
+
order_id: string;
|
|
7623
|
+
product_id: string | null;
|
|
7624
|
+
product_name: string;
|
|
7625
|
+
quantity: number;
|
|
7626
|
+
unit: string;
|
|
7627
|
+
unit_price: number | null;
|
|
7628
|
+
};
|
|
7629
|
+
Insert: {
|
|
7630
|
+
created_at?: string;
|
|
7631
|
+
id?: string;
|
|
7632
|
+
order_id: string;
|
|
7633
|
+
product_id?: string | null;
|
|
7634
|
+
product_name: string;
|
|
7635
|
+
quantity?: number;
|
|
7636
|
+
unit?: string;
|
|
7637
|
+
unit_price?: number | null;
|
|
7638
|
+
};
|
|
7639
|
+
Update: {
|
|
7640
|
+
created_at?: string;
|
|
7641
|
+
id?: string;
|
|
7642
|
+
order_id?: string;
|
|
7643
|
+
product_id?: string | null;
|
|
7644
|
+
product_name?: string;
|
|
7645
|
+
quantity?: number;
|
|
7646
|
+
unit?: string;
|
|
7647
|
+
unit_price?: number | null;
|
|
7648
|
+
};
|
|
7649
|
+
Relationships: [{
|
|
7650
|
+
foreignKeyName: "order_items_order_id_fkey";
|
|
7651
|
+
columns: ["order_id"];
|
|
7652
|
+
isOneToOne: false;
|
|
7653
|
+
referencedRelation: "orders";
|
|
7654
|
+
referencedColumns: ["id"];
|
|
7655
|
+
}, {
|
|
7656
|
+
foreignKeyName: "order_items_product_id_fkey";
|
|
7657
|
+
columns: ["product_id"];
|
|
7658
|
+
isOneToOne: false;
|
|
7659
|
+
referencedRelation: "products";
|
|
7660
|
+
referencedColumns: ["id"];
|
|
7661
|
+
}];
|
|
7662
|
+
};
|
|
7663
|
+
order_number_counters: {
|
|
7664
|
+
Row: {
|
|
7665
|
+
last_value: number;
|
|
7666
|
+
updated_at: string;
|
|
7667
|
+
year: number;
|
|
7668
|
+
};
|
|
7669
|
+
Insert: {
|
|
7670
|
+
last_value?: number;
|
|
7671
|
+
updated_at?: string;
|
|
7672
|
+
year: number;
|
|
7673
|
+
};
|
|
7674
|
+
Update: {
|
|
7675
|
+
last_value?: number;
|
|
7676
|
+
updated_at?: string;
|
|
7677
|
+
year?: number;
|
|
7678
|
+
};
|
|
7679
|
+
Relationships: [];
|
|
7680
|
+
};
|
|
7681
|
+
order_shipment_items: {
|
|
6932
7682
|
Row: {
|
|
6933
7683
|
created_at: string;
|
|
6934
7684
|
id: string;
|
|
6935
|
-
|
|
7685
|
+
order_item_id: string;
|
|
6936
7686
|
product_id: string | null;
|
|
6937
7687
|
product_name: string;
|
|
6938
7688
|
quantity: number;
|
|
6939
|
-
|
|
6940
|
-
|
|
7689
|
+
shipment_id: string;
|
|
7690
|
+
updated_at: string;
|
|
6941
7691
|
};
|
|
6942
7692
|
Insert: {
|
|
6943
7693
|
created_at?: string;
|
|
6944
7694
|
id?: string;
|
|
6945
|
-
|
|
7695
|
+
order_item_id: string;
|
|
6946
7696
|
product_id?: string | null;
|
|
6947
7697
|
product_name: string;
|
|
6948
|
-
quantity
|
|
6949
|
-
|
|
6950
|
-
|
|
7698
|
+
quantity: number;
|
|
7699
|
+
shipment_id: string;
|
|
7700
|
+
updated_at?: string;
|
|
6951
7701
|
};
|
|
6952
7702
|
Update: {
|
|
6953
7703
|
created_at?: string;
|
|
6954
7704
|
id?: string;
|
|
6955
|
-
|
|
7705
|
+
order_item_id?: string;
|
|
6956
7706
|
product_id?: string | null;
|
|
6957
7707
|
product_name?: string;
|
|
6958
7708
|
quantity?: number;
|
|
6959
|
-
|
|
6960
|
-
|
|
7709
|
+
shipment_id?: string;
|
|
7710
|
+
updated_at?: string;
|
|
6961
7711
|
};
|
|
6962
7712
|
Relationships: [{
|
|
6963
|
-
foreignKeyName: "
|
|
6964
|
-
columns: ["
|
|
7713
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
7714
|
+
columns: ["order_item_id"];
|
|
6965
7715
|
isOneToOne: false;
|
|
6966
|
-
referencedRelation: "
|
|
7716
|
+
referencedRelation: "order_items";
|
|
6967
7717
|
referencedColumns: ["id"];
|
|
6968
7718
|
}, {
|
|
6969
|
-
foreignKeyName: "
|
|
6970
|
-
columns: ["
|
|
7719
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
7720
|
+
columns: ["shipment_id"];
|
|
6971
7721
|
isOneToOne: false;
|
|
6972
|
-
referencedRelation: "
|
|
7722
|
+
referencedRelation: "order_shipments";
|
|
6973
7723
|
referencedColumns: ["id"];
|
|
6974
7724
|
}];
|
|
6975
7725
|
};
|
|
6976
|
-
|
|
7726
|
+
order_shipments: {
|
|
6977
7727
|
Row: {
|
|
6978
|
-
|
|
7728
|
+
carrier_id: string | null;
|
|
7729
|
+
created_at: string;
|
|
7730
|
+
delivery_date: string | null;
|
|
7731
|
+
delivery_location_id: string | null;
|
|
7732
|
+
id: string;
|
|
7733
|
+
notes: string | null;
|
|
7734
|
+
order_id: string;
|
|
7735
|
+
shipment_number: number;
|
|
7736
|
+
shipped_at: string | null;
|
|
7737
|
+
status: string;
|
|
6979
7738
|
updated_at: string;
|
|
6980
|
-
year: number;
|
|
6981
7739
|
};
|
|
6982
7740
|
Insert: {
|
|
6983
|
-
|
|
7741
|
+
carrier_id?: string | null;
|
|
7742
|
+
created_at?: string;
|
|
7743
|
+
delivery_date?: string | null;
|
|
7744
|
+
delivery_location_id?: string | null;
|
|
7745
|
+
id?: string;
|
|
7746
|
+
notes?: string | null;
|
|
7747
|
+
order_id: string;
|
|
7748
|
+
shipment_number: number;
|
|
7749
|
+
shipped_at?: string | null;
|
|
7750
|
+
status?: string;
|
|
6984
7751
|
updated_at?: string;
|
|
6985
|
-
year: number;
|
|
6986
7752
|
};
|
|
6987
7753
|
Update: {
|
|
6988
|
-
|
|
7754
|
+
carrier_id?: string | null;
|
|
7755
|
+
created_at?: string;
|
|
7756
|
+
delivery_date?: string | null;
|
|
7757
|
+
delivery_location_id?: string | null;
|
|
7758
|
+
id?: string;
|
|
7759
|
+
notes?: string | null;
|
|
7760
|
+
order_id?: string;
|
|
7761
|
+
shipment_number?: number;
|
|
7762
|
+
shipped_at?: string | null;
|
|
7763
|
+
status?: string;
|
|
6989
7764
|
updated_at?: string;
|
|
6990
|
-
year?: number;
|
|
6991
7765
|
};
|
|
6992
|
-
Relationships: [
|
|
7766
|
+
Relationships: [{
|
|
7767
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
7768
|
+
columns: ["carrier_id"];
|
|
7769
|
+
isOneToOne: false;
|
|
7770
|
+
referencedRelation: "carriers";
|
|
7771
|
+
referencedColumns: ["id"];
|
|
7772
|
+
}, {
|
|
7773
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
7774
|
+
columns: ["order_id"];
|
|
7775
|
+
isOneToOne: false;
|
|
7776
|
+
referencedRelation: "orders";
|
|
7777
|
+
referencedColumns: ["id"];
|
|
7778
|
+
}];
|
|
6993
7779
|
};
|
|
6994
7780
|
orders: {
|
|
6995
7781
|
Row: {
|
|
7782
|
+
buffer_id: string | null;
|
|
6996
7783
|
created_at: string;
|
|
6997
7784
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
6998
7785
|
customer_id: string | null;
|
|
6999
7786
|
customer_name: string;
|
|
7000
7787
|
deleted_at: string | null;
|
|
7001
|
-
delivery_date: string;
|
|
7788
|
+
delivery_date: string | null;
|
|
7789
|
+
floriday_sales_order_id: string | null;
|
|
7002
7790
|
id: string;
|
|
7791
|
+
is_reservation: boolean;
|
|
7003
7792
|
notes: string | null;
|
|
7004
7793
|
order_date: string;
|
|
7005
7794
|
order_number: string;
|
|
@@ -7011,13 +7800,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7011
7800
|
updated_at: string;
|
|
7012
7801
|
};
|
|
7013
7802
|
Insert: {
|
|
7803
|
+
buffer_id?: string | null;
|
|
7014
7804
|
created_at?: string;
|
|
7015
7805
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7016
7806
|
customer_id?: string | null;
|
|
7017
7807
|
customer_name?: string;
|
|
7018
7808
|
deleted_at?: string | null;
|
|
7019
|
-
delivery_date
|
|
7809
|
+
delivery_date?: string | null;
|
|
7810
|
+
floriday_sales_order_id?: string | null;
|
|
7020
7811
|
id?: string;
|
|
7812
|
+
is_reservation?: boolean;
|
|
7021
7813
|
notes?: string | null;
|
|
7022
7814
|
order_date?: string;
|
|
7023
7815
|
order_number: string;
|
|
@@ -7029,13 +7821,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7029
7821
|
updated_at?: string;
|
|
7030
7822
|
};
|
|
7031
7823
|
Update: {
|
|
7824
|
+
buffer_id?: string | null;
|
|
7032
7825
|
created_at?: string;
|
|
7033
7826
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7034
7827
|
customer_id?: string | null;
|
|
7035
7828
|
customer_name?: string;
|
|
7036
7829
|
deleted_at?: string | null;
|
|
7037
|
-
delivery_date?: string;
|
|
7830
|
+
delivery_date?: string | null;
|
|
7831
|
+
floriday_sales_order_id?: string | null;
|
|
7038
7832
|
id?: string;
|
|
7833
|
+
is_reservation?: boolean;
|
|
7039
7834
|
notes?: string | null;
|
|
7040
7835
|
order_date?: string;
|
|
7041
7836
|
order_number?: string;
|
|
@@ -7047,6 +7842,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7047
7842
|
updated_at?: string;
|
|
7048
7843
|
};
|
|
7049
7844
|
Relationships: [{
|
|
7845
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
7846
|
+
columns: ["buffer_id"];
|
|
7847
|
+
isOneToOne: false;
|
|
7848
|
+
referencedRelation: "order_buffers";
|
|
7849
|
+
referencedColumns: ["id"];
|
|
7850
|
+
}, {
|
|
7050
7851
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7051
7852
|
columns: ["customer_id"];
|
|
7052
7853
|
isOneToOne: false;
|
|
@@ -7177,6 +7978,66 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7177
7978
|
};
|
|
7178
7979
|
Relationships: [];
|
|
7179
7980
|
};
|
|
7981
|
+
product_bom_items: {
|
|
7982
|
+
Row: {
|
|
7983
|
+
component_product_id: string | null;
|
|
7984
|
+
component_trade_item_floriday_id: string | null;
|
|
7985
|
+
created_at: string;
|
|
7986
|
+
id: string;
|
|
7987
|
+
notes: string | null;
|
|
7988
|
+
packing_configuration_id: string | null;
|
|
7989
|
+
parent_product_id: string | null;
|
|
7990
|
+
parent_trade_item_floriday_id: string | null;
|
|
7991
|
+
quantity: number;
|
|
7992
|
+
sort_order: number;
|
|
7993
|
+
tenant_id: string;
|
|
7994
|
+
unit: string;
|
|
7995
|
+
updated_at: string;
|
|
7996
|
+
};
|
|
7997
|
+
Insert: {
|
|
7998
|
+
component_product_id?: string | null;
|
|
7999
|
+
component_trade_item_floriday_id?: string | null;
|
|
8000
|
+
created_at?: string;
|
|
8001
|
+
id?: string;
|
|
8002
|
+
notes?: string | null;
|
|
8003
|
+
packing_configuration_id?: string | null;
|
|
8004
|
+
parent_product_id?: string | null;
|
|
8005
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8006
|
+
quantity?: number;
|
|
8007
|
+
sort_order?: number;
|
|
8008
|
+
tenant_id: string;
|
|
8009
|
+
unit?: string;
|
|
8010
|
+
updated_at?: string;
|
|
8011
|
+
};
|
|
8012
|
+
Update: {
|
|
8013
|
+
component_product_id?: string | null;
|
|
8014
|
+
component_trade_item_floriday_id?: string | null;
|
|
8015
|
+
created_at?: string;
|
|
8016
|
+
id?: string;
|
|
8017
|
+
notes?: string | null;
|
|
8018
|
+
packing_configuration_id?: string | null;
|
|
8019
|
+
parent_product_id?: string | null;
|
|
8020
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8021
|
+
quantity?: number;
|
|
8022
|
+
sort_order?: number;
|
|
8023
|
+
tenant_id?: string;
|
|
8024
|
+
unit?: string;
|
|
8025
|
+
updated_at?: string;
|
|
8026
|
+
};
|
|
8027
|
+
Relationships: [{
|
|
8028
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
8029
|
+
columns: ["component_product_id"];
|
|
8030
|
+
isOneToOne: false;
|
|
8031
|
+
referencedRelation: "products";
|
|
8032
|
+
referencedColumns: ["id"];
|
|
8033
|
+
}, {
|
|
8034
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
8035
|
+
columns: ["parent_product_id"];
|
|
8036
|
+
isOneToOne: false;
|
|
8037
|
+
referencedRelation: "products";
|
|
8038
|
+
referencedColumns: ["id"];
|
|
8039
|
+
}];
|
|
8040
|
+
};
|
|
7180
8041
|
product_categories: {
|
|
7181
8042
|
Row: {
|
|
7182
8043
|
color: string;
|
|
@@ -7282,6 +8143,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7282
8143
|
id: string;
|
|
7283
8144
|
product_group_id: string;
|
|
7284
8145
|
quantity: number;
|
|
8146
|
+
sort_order: number;
|
|
7285
8147
|
trade_item_id: string;
|
|
7286
8148
|
};
|
|
7287
8149
|
Insert: {
|
|
@@ -7289,6 +8151,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7289
8151
|
id?: string;
|
|
7290
8152
|
product_group_id: string;
|
|
7291
8153
|
quantity?: number;
|
|
8154
|
+
sort_order?: number;
|
|
7292
8155
|
trade_item_id: string;
|
|
7293
8156
|
};
|
|
7294
8157
|
Update: {
|
|
@@ -7296,6 +8159,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7296
8159
|
id?: string;
|
|
7297
8160
|
product_group_id?: string;
|
|
7298
8161
|
quantity?: number;
|
|
8162
|
+
sort_order?: number;
|
|
7299
8163
|
trade_item_id?: string;
|
|
7300
8164
|
};
|
|
7301
8165
|
Relationships: [{
|
|
@@ -7310,6 +8174,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7310
8174
|
Row: {
|
|
7311
8175
|
created_at: string;
|
|
7312
8176
|
description: string | null;
|
|
8177
|
+
head_product_id: string | null;
|
|
8178
|
+
head_trade_item_floriday_id: string | null;
|
|
7313
8179
|
id: string;
|
|
7314
8180
|
is_active: boolean;
|
|
7315
8181
|
name: string;
|
|
@@ -7319,6 +8185,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7319
8185
|
Insert: {
|
|
7320
8186
|
created_at?: string;
|
|
7321
8187
|
description?: string | null;
|
|
8188
|
+
head_product_id?: string | null;
|
|
8189
|
+
head_trade_item_floriday_id?: string | null;
|
|
7322
8190
|
id?: string;
|
|
7323
8191
|
is_active?: boolean;
|
|
7324
8192
|
name: string;
|
|
@@ -7328,24 +8196,136 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7328
8196
|
Update: {
|
|
7329
8197
|
created_at?: string;
|
|
7330
8198
|
description?: string | null;
|
|
8199
|
+
head_product_id?: string | null;
|
|
8200
|
+
head_trade_item_floriday_id?: string | null;
|
|
7331
8201
|
id?: string;
|
|
7332
8202
|
is_active?: boolean;
|
|
7333
8203
|
name?: string;
|
|
7334
8204
|
tenant_id?: string;
|
|
7335
8205
|
updated_at?: string;
|
|
7336
8206
|
};
|
|
8207
|
+
Relationships: [{
|
|
8208
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8209
|
+
columns: ["head_product_id"];
|
|
8210
|
+
isOneToOne: false;
|
|
8211
|
+
referencedRelation: "products";
|
|
8212
|
+
referencedColumns: ["id"];
|
|
8213
|
+
}];
|
|
8214
|
+
};
|
|
8215
|
+
product_load_settings: {
|
|
8216
|
+
Row: {
|
|
8217
|
+
created_at: string;
|
|
8218
|
+
id: string;
|
|
8219
|
+
is_package: boolean;
|
|
8220
|
+
label: string | null;
|
|
8221
|
+
layers_per_load_carrier: number | null;
|
|
8222
|
+
load_carrier: string | null;
|
|
8223
|
+
package_id: string | null;
|
|
8224
|
+
package_label: string | null;
|
|
8225
|
+
packages_per_layer: number | null;
|
|
8226
|
+
packing_configuration_id: string;
|
|
8227
|
+
product_id: string | null;
|
|
8228
|
+
tenant_id: string;
|
|
8229
|
+
trade_item_floriday_id: string | null;
|
|
8230
|
+
units_per_package: number | null;
|
|
8231
|
+
updated_at: string;
|
|
8232
|
+
};
|
|
8233
|
+
Insert: {
|
|
8234
|
+
created_at?: string;
|
|
8235
|
+
id?: string;
|
|
8236
|
+
is_package?: boolean;
|
|
8237
|
+
label?: string | null;
|
|
8238
|
+
layers_per_load_carrier?: number | null;
|
|
8239
|
+
load_carrier?: string | null;
|
|
8240
|
+
package_id?: string | null;
|
|
8241
|
+
package_label?: string | null;
|
|
8242
|
+
packages_per_layer?: number | null;
|
|
8243
|
+
packing_configuration_id?: string;
|
|
8244
|
+
product_id?: string | null;
|
|
8245
|
+
tenant_id: string;
|
|
8246
|
+
trade_item_floriday_id?: string | null;
|
|
8247
|
+
units_per_package?: number | null;
|
|
8248
|
+
updated_at?: string;
|
|
8249
|
+
};
|
|
8250
|
+
Update: {
|
|
8251
|
+
created_at?: string;
|
|
8252
|
+
id?: string;
|
|
8253
|
+
is_package?: boolean;
|
|
8254
|
+
label?: string | null;
|
|
8255
|
+
layers_per_load_carrier?: number | null;
|
|
8256
|
+
load_carrier?: string | null;
|
|
8257
|
+
package_id?: string | null;
|
|
8258
|
+
package_label?: string | null;
|
|
8259
|
+
packages_per_layer?: number | null;
|
|
8260
|
+
packing_configuration_id?: string;
|
|
8261
|
+
product_id?: string | null;
|
|
8262
|
+
tenant_id?: string;
|
|
8263
|
+
trade_item_floriday_id?: string | null;
|
|
8264
|
+
units_per_package?: number | null;
|
|
8265
|
+
updated_at?: string;
|
|
8266
|
+
};
|
|
8267
|
+
Relationships: [{
|
|
8268
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
8269
|
+
columns: ["package_id"];
|
|
8270
|
+
isOneToOne: false;
|
|
8271
|
+
referencedRelation: "packages";
|
|
8272
|
+
referencedColumns: ["id"];
|
|
8273
|
+
}, {
|
|
8274
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
8275
|
+
columns: ["product_id"];
|
|
8276
|
+
isOneToOne: false;
|
|
8277
|
+
referencedRelation: "products";
|
|
8278
|
+
referencedColumns: ["id"];
|
|
8279
|
+
}];
|
|
8280
|
+
};
|
|
8281
|
+
product_merge_log: {
|
|
8282
|
+
Row: {
|
|
8283
|
+
canonical_product_id: string | null;
|
|
8284
|
+
id: string;
|
|
8285
|
+
merged_at: string;
|
|
8286
|
+
merged_from_id: string;
|
|
8287
|
+
notes: string | null;
|
|
8288
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
8289
|
+
source_table: string;
|
|
8290
|
+
status: string;
|
|
8291
|
+
};
|
|
8292
|
+
Insert: {
|
|
8293
|
+
canonical_product_id?: string | null;
|
|
8294
|
+
id?: string;
|
|
8295
|
+
merged_at?: string;
|
|
8296
|
+
merged_from_id: string;
|
|
8297
|
+
notes?: string | null;
|
|
8298
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
8299
|
+
source_table: string;
|
|
8300
|
+
status?: string;
|
|
8301
|
+
};
|
|
8302
|
+
Update: {
|
|
8303
|
+
canonical_product_id?: string | null;
|
|
8304
|
+
id?: string;
|
|
8305
|
+
merged_at?: string;
|
|
8306
|
+
merged_from_id?: string;
|
|
8307
|
+
notes?: string | null;
|
|
8308
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
8309
|
+
source_table?: string;
|
|
8310
|
+
status?: string;
|
|
8311
|
+
};
|
|
7337
8312
|
Relationships: [];
|
|
7338
8313
|
};
|
|
7339
8314
|
products: {
|
|
7340
8315
|
Row: {
|
|
8316
|
+
article_number: string | null;
|
|
7341
8317
|
barcode: string | null;
|
|
7342
8318
|
batch: string;
|
|
7343
8319
|
crates_per_layer: number;
|
|
7344
8320
|
created_at: string;
|
|
7345
8321
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
8322
|
+
floriday_active: boolean;
|
|
8323
|
+
floriday_payload: import("../integrations/supabase/types").Json;
|
|
8324
|
+
floriday_trade_item_id: string | null;
|
|
7346
8325
|
id: string;
|
|
7347
8326
|
image_url: string | null;
|
|
7348
8327
|
incoming_quantity: number;
|
|
8328
|
+
is_layer: boolean;
|
|
7349
8329
|
layers_per_cart: number;
|
|
7350
8330
|
location: string;
|
|
7351
8331
|
min_quantity: number;
|
|
@@ -7358,17 +8338,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7358
8338
|
trade_item_key: string | null;
|
|
7359
8339
|
unit: string;
|
|
7360
8340
|
updated_at: string;
|
|
8341
|
+
vat_code: string | null;
|
|
8342
|
+
vat_rate: number | null;
|
|
7361
8343
|
weight: string | null;
|
|
7362
8344
|
};
|
|
7363
8345
|
Insert: {
|
|
8346
|
+
article_number?: string | null;
|
|
7364
8347
|
barcode?: string | null;
|
|
7365
8348
|
batch: string;
|
|
7366
8349
|
crates_per_layer?: number;
|
|
7367
8350
|
created_at?: string;
|
|
7368
8351
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
8352
|
+
floriday_active?: boolean;
|
|
8353
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
8354
|
+
floriday_trade_item_id?: string | null;
|
|
7369
8355
|
id?: string;
|
|
7370
8356
|
image_url?: string | null;
|
|
7371
8357
|
incoming_quantity?: number;
|
|
8358
|
+
is_layer?: boolean;
|
|
7372
8359
|
layers_per_cart?: number;
|
|
7373
8360
|
location: string;
|
|
7374
8361
|
min_quantity?: number;
|
|
@@ -7381,17 +8368,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7381
8368
|
trade_item_key?: string | null;
|
|
7382
8369
|
unit?: string;
|
|
7383
8370
|
updated_at?: string;
|
|
8371
|
+
vat_code?: string | null;
|
|
8372
|
+
vat_rate?: number | null;
|
|
7384
8373
|
weight?: string | null;
|
|
7385
8374
|
};
|
|
7386
8375
|
Update: {
|
|
8376
|
+
article_number?: string | null;
|
|
7387
8377
|
barcode?: string | null;
|
|
7388
8378
|
batch?: string;
|
|
7389
8379
|
crates_per_layer?: number;
|
|
7390
8380
|
created_at?: string;
|
|
7391
8381
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
8382
|
+
floriday_active?: boolean;
|
|
8383
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
8384
|
+
floriday_trade_item_id?: string | null;
|
|
7392
8385
|
id?: string;
|
|
7393
8386
|
image_url?: string | null;
|
|
7394
8387
|
incoming_quantity?: number;
|
|
8388
|
+
is_layer?: boolean;
|
|
7395
8389
|
layers_per_cart?: number;
|
|
7396
8390
|
location?: string;
|
|
7397
8391
|
min_quantity?: number;
|
|
@@ -7404,6 +8398,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
7404
8398
|
trade_item_key?: string | null;
|
|
7405
8399
|
unit?: string;
|
|
7406
8400
|
updated_at?: string;
|
|
8401
|
+
vat_code?: string | null;
|
|
8402
|
+
vat_rate?: number | null;
|
|
7407
8403
|
weight?: string | null;
|
|
7408
8404
|
};
|
|
7409
8405
|
Relationships: [];
|
|
@@ -8297,8 +9293,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8297
9293
|
order_id: string | null;
|
|
8298
9294
|
order_item_id: string | null;
|
|
8299
9295
|
order_source: string | null;
|
|
9296
|
+
parent_trade_item_key: string | null;
|
|
8300
9297
|
physical_after: number | null;
|
|
8301
9298
|
physical_before: number | null;
|
|
9299
|
+
production_batch_id: string | null;
|
|
8302
9300
|
qty_delta: number;
|
|
8303
9301
|
reason: string | null;
|
|
8304
9302
|
reserved_after: number | null;
|
|
@@ -8314,8 +9312,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8314
9312
|
order_id?: string | null;
|
|
8315
9313
|
order_item_id?: string | null;
|
|
8316
9314
|
order_source?: string | null;
|
|
9315
|
+
parent_trade_item_key?: string | null;
|
|
8317
9316
|
physical_after?: number | null;
|
|
8318
9317
|
physical_before?: number | null;
|
|
9318
|
+
production_batch_id?: string | null;
|
|
8319
9319
|
qty_delta: number;
|
|
8320
9320
|
reason?: string | null;
|
|
8321
9321
|
reserved_after?: number | null;
|
|
@@ -8331,8 +9331,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8331
9331
|
order_id?: string | null;
|
|
8332
9332
|
order_item_id?: string | null;
|
|
8333
9333
|
order_source?: string | null;
|
|
9334
|
+
parent_trade_item_key?: string | null;
|
|
8334
9335
|
physical_after?: number | null;
|
|
8335
9336
|
physical_before?: number | null;
|
|
9337
|
+
production_batch_id?: string | null;
|
|
8336
9338
|
qty_delta?: number;
|
|
8337
9339
|
reason?: string | null;
|
|
8338
9340
|
reserved_after?: number | null;
|
|
@@ -8638,6 +9640,48 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8638
9640
|
};
|
|
8639
9641
|
Relationships: [];
|
|
8640
9642
|
};
|
|
9643
|
+
trade_item_prices: {
|
|
9644
|
+
Row: {
|
|
9645
|
+
created_at: string;
|
|
9646
|
+
currency: string;
|
|
9647
|
+
id: string;
|
|
9648
|
+
last_push_error: string | null;
|
|
9649
|
+
last_pushed_at: string | null;
|
|
9650
|
+
price_group_id: string | null;
|
|
9651
|
+
price_per_piece: number;
|
|
9652
|
+
supply_line_id: string | null;
|
|
9653
|
+
trade_item_key: string;
|
|
9654
|
+
updated_at: string;
|
|
9655
|
+
user_id: string;
|
|
9656
|
+
};
|
|
9657
|
+
Insert: {
|
|
9658
|
+
created_at?: string;
|
|
9659
|
+
currency?: string;
|
|
9660
|
+
id?: string;
|
|
9661
|
+
last_push_error?: string | null;
|
|
9662
|
+
last_pushed_at?: string | null;
|
|
9663
|
+
price_group_id?: string | null;
|
|
9664
|
+
price_per_piece: number;
|
|
9665
|
+
supply_line_id?: string | null;
|
|
9666
|
+
trade_item_key: string;
|
|
9667
|
+
updated_at?: string;
|
|
9668
|
+
user_id: string;
|
|
9669
|
+
};
|
|
9670
|
+
Update: {
|
|
9671
|
+
created_at?: string;
|
|
9672
|
+
currency?: string;
|
|
9673
|
+
id?: string;
|
|
9674
|
+
last_push_error?: string | null;
|
|
9675
|
+
last_pushed_at?: string | null;
|
|
9676
|
+
price_group_id?: string | null;
|
|
9677
|
+
price_per_piece?: number;
|
|
9678
|
+
supply_line_id?: string | null;
|
|
9679
|
+
trade_item_key?: string;
|
|
9680
|
+
updated_at?: string;
|
|
9681
|
+
user_id?: string;
|
|
9682
|
+
};
|
|
9683
|
+
Relationships: [];
|
|
9684
|
+
};
|
|
8641
9685
|
trade_item_stock: {
|
|
8642
9686
|
Row: {
|
|
8643
9687
|
connection_id: string;
|
|
@@ -8791,7 +9835,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8791
9835
|
twinfield_connections: {
|
|
8792
9836
|
Row: {
|
|
8793
9837
|
access_token: string | null;
|
|
8794
|
-
client_id: string;
|
|
9838
|
+
client_id: string | null;
|
|
8795
9839
|
client_secret: string | null;
|
|
8796
9840
|
cluster_uri: string | null;
|
|
8797
9841
|
company_code: string | null;
|
|
@@ -8803,7 +9847,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8803
9847
|
is_active: boolean;
|
|
8804
9848
|
label: string | null;
|
|
8805
9849
|
office_code: string | null;
|
|
8806
|
-
redirect_uri: string;
|
|
9850
|
+
redirect_uri: string | null;
|
|
8807
9851
|
refresh_token: string | null;
|
|
8808
9852
|
token_expires_at: string | null;
|
|
8809
9853
|
updated_at: string;
|
|
@@ -8811,7 +9855,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8811
9855
|
};
|
|
8812
9856
|
Insert: {
|
|
8813
9857
|
access_token?: string | null;
|
|
8814
|
-
client_id
|
|
9858
|
+
client_id?: string | null;
|
|
8815
9859
|
client_secret?: string | null;
|
|
8816
9860
|
cluster_uri?: string | null;
|
|
8817
9861
|
company_code?: string | null;
|
|
@@ -8823,7 +9867,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8823
9867
|
is_active?: boolean;
|
|
8824
9868
|
label?: string | null;
|
|
8825
9869
|
office_code?: string | null;
|
|
8826
|
-
redirect_uri
|
|
9870
|
+
redirect_uri?: string | null;
|
|
8827
9871
|
refresh_token?: string | null;
|
|
8828
9872
|
token_expires_at?: string | null;
|
|
8829
9873
|
updated_at?: string;
|
|
@@ -8831,7 +9875,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8831
9875
|
};
|
|
8832
9876
|
Update: {
|
|
8833
9877
|
access_token?: string | null;
|
|
8834
|
-
client_id?: string;
|
|
9878
|
+
client_id?: string | null;
|
|
8835
9879
|
client_secret?: string | null;
|
|
8836
9880
|
cluster_uri?: string | null;
|
|
8837
9881
|
company_code?: string | null;
|
|
@@ -8843,7 +9887,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
8843
9887
|
is_active?: boolean;
|
|
8844
9888
|
label?: string | null;
|
|
8845
9889
|
office_code?: string | null;
|
|
8846
|
-
redirect_uri?: string;
|
|
9890
|
+
redirect_uri?: string | null;
|
|
8847
9891
|
refresh_token?: string | null;
|
|
8848
9892
|
token_expires_at?: string | null;
|
|
8849
9893
|
updated_at?: string;
|
|
@@ -10024,36 +11068,17 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10024
11068
|
due_at: string | null;
|
|
10025
11069
|
external_id: string | null;
|
|
10026
11070
|
invoice_number: string | null;
|
|
10027
|
-
issued_at: string | null;
|
|
10028
|
-
open_amount: number | null;
|
|
10029
|
-
owner_user_id: string | null;
|
|
10030
|
-
paid_at: string | null;
|
|
10031
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
10032
|
-
source: string | null;
|
|
10033
|
-
status: string | null;
|
|
10034
|
-
synced_at: string | null;
|
|
10035
|
-
total_excl: number | null;
|
|
10036
|
-
total_incl: number | null;
|
|
10037
|
-
total_vat: number | null;
|
|
10038
|
-
};
|
|
10039
|
-
Relationships: [];
|
|
10040
|
-
};
|
|
10041
|
-
floriday_customer_discounts: {
|
|
10042
|
-
Row: {
|
|
10043
|
-
base_price: number | null;
|
|
10044
|
-
buyer_organization_id: string | null;
|
|
10045
|
-
currency: string | null;
|
|
10046
|
-
discount_type: string | null;
|
|
10047
|
-
discount_value: number | null;
|
|
10048
|
-
min_quantity: number | null;
|
|
10049
|
-
net_price: number | null;
|
|
10050
|
-
product_group_id: string | null;
|
|
11071
|
+
issued_at: string | null;
|
|
11072
|
+
open_amount: number | null;
|
|
11073
|
+
owner_user_id: string | null;
|
|
11074
|
+
paid_at: string | null;
|
|
10051
11075
|
raw: import("../integrations/supabase/types").Json | null;
|
|
10052
11076
|
source: string | null;
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
11077
|
+
status: string | null;
|
|
11078
|
+
synced_at: string | null;
|
|
11079
|
+
total_excl: number | null;
|
|
11080
|
+
total_incl: number | null;
|
|
11081
|
+
total_vat: number | null;
|
|
10057
11082
|
};
|
|
10058
11083
|
Relationships: [];
|
|
10059
11084
|
};
|
|
@@ -10360,6 +11385,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10360
11385
|
};
|
|
10361
11386
|
Returns: number;
|
|
10362
11387
|
};
|
|
11388
|
+
_migrate_rewrite_stock_key: {
|
|
11389
|
+
Args: {
|
|
11390
|
+
_from_key: string;
|
|
11391
|
+
_to_key: string;
|
|
11392
|
+
};
|
|
11393
|
+
Returns: undefined;
|
|
11394
|
+
};
|
|
10363
11395
|
afh_city_code: {
|
|
10364
11396
|
Args: {
|
|
10365
11397
|
_city: string;
|
|
@@ -10443,6 +11475,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10443
11475
|
processed_items: number;
|
|
10444
11476
|
}[];
|
|
10445
11477
|
};
|
|
11478
|
+
calculate_layer_stock: {
|
|
11479
|
+
Args: {
|
|
11480
|
+
p_product_id: string;
|
|
11481
|
+
};
|
|
11482
|
+
Returns: number;
|
|
11483
|
+
};
|
|
10446
11484
|
call_exact_route: {
|
|
10447
11485
|
Args: {
|
|
10448
11486
|
path: string;
|
|
@@ -10475,6 +11513,28 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10475
11513
|
Args: never;
|
|
10476
11514
|
Returns: undefined;
|
|
10477
11515
|
};
|
|
11516
|
+
consume_bom_for_production: {
|
|
11517
|
+
Args: {
|
|
11518
|
+
p_connection_id: string;
|
|
11519
|
+
p_parent_id: string;
|
|
11520
|
+
p_parent_key: string;
|
|
11521
|
+
p_parent_kind: string;
|
|
11522
|
+
p_quantity: number;
|
|
11523
|
+
p_user_id: string;
|
|
11524
|
+
};
|
|
11525
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11526
|
+
} | {
|
|
11527
|
+
Args: {
|
|
11528
|
+
p_batch_id?: string;
|
|
11529
|
+
p_connection_id: string;
|
|
11530
|
+
p_parent_id: string;
|
|
11531
|
+
p_parent_key: string;
|
|
11532
|
+
p_parent_kind: string;
|
|
11533
|
+
p_quantity: number;
|
|
11534
|
+
p_user_id: string;
|
|
11535
|
+
};
|
|
11536
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11537
|
+
};
|
|
10478
11538
|
consume_floriday_rate_limit: {
|
|
10479
11539
|
Args: {
|
|
10480
11540
|
p_bucket: string;
|
|
@@ -10526,6 +11586,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10526
11586
|
table_name: string;
|
|
10527
11587
|
}[];
|
|
10528
11588
|
};
|
|
11589
|
+
delete_samenstelling: {
|
|
11590
|
+
Args: {
|
|
11591
|
+
p_parent_id: string;
|
|
11592
|
+
p_parent_kind: string;
|
|
11593
|
+
};
|
|
11594
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11595
|
+
};
|
|
10529
11596
|
dispatch_carrier_signups_sql: {
|
|
10530
11597
|
Args: {
|
|
10531
11598
|
_catchup?: string;
|
|
@@ -10567,6 +11634,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10567
11634
|
status: string;
|
|
10568
11635
|
}[];
|
|
10569
11636
|
};
|
|
11637
|
+
email_auth_upsert_connection: {
|
|
11638
|
+
Args: {
|
|
11639
|
+
_account_email: string;
|
|
11640
|
+
_created_by: string;
|
|
11641
|
+
_is_active: boolean;
|
|
11642
|
+
_provider: string;
|
|
11643
|
+
_status: string;
|
|
11644
|
+
};
|
|
11645
|
+
Returns: string;
|
|
11646
|
+
};
|
|
10570
11647
|
enqueue_cart_replan_if_unlocked: {
|
|
10571
11648
|
Args: {
|
|
10572
11649
|
p_order_id: string;
|
|
@@ -10686,19 +11763,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10686
11763
|
resource: string;
|
|
10687
11764
|
}[];
|
|
10688
11765
|
};
|
|
10689
|
-
get_floriday_agreements_active: {
|
|
10690
|
-
Args: {
|
|
10691
|
-
p_on_date?: string;
|
|
10692
|
-
};
|
|
10693
|
-
Returns: {
|
|
10694
|
-
buyer_organization_id: string;
|
|
10695
|
-
data: import("../integrations/supabase/types").Json;
|
|
10696
|
-
floriday_id: string;
|
|
10697
|
-
status: string;
|
|
10698
|
-
valid_from: string;
|
|
10699
|
-
valid_until: string;
|
|
10700
|
-
}[];
|
|
10701
|
-
};
|
|
10702
11766
|
get_floriday_clock_supplies_window: {
|
|
10703
11767
|
Args: {
|
|
10704
11768
|
p_from: string;
|
|
@@ -10771,6 +11835,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10771
11835
|
minutes_since_success: number;
|
|
10772
11836
|
}[];
|
|
10773
11837
|
};
|
|
11838
|
+
get_group_allocation_keys: {
|
|
11839
|
+
Args: {
|
|
11840
|
+
p_product_id: string;
|
|
11841
|
+
};
|
|
11842
|
+
Returns: {
|
|
11843
|
+
k: string;
|
|
11844
|
+
ord: number;
|
|
11845
|
+
}[];
|
|
11846
|
+
};
|
|
11847
|
+
get_group_head_key: {
|
|
11848
|
+
Args: {
|
|
11849
|
+
p_group_id: string;
|
|
11850
|
+
};
|
|
11851
|
+
Returns: string;
|
|
11852
|
+
};
|
|
11853
|
+
get_inventory_stock_for_key: {
|
|
11854
|
+
Args: {
|
|
11855
|
+
p_key: string;
|
|
11856
|
+
};
|
|
11857
|
+
Returns: number;
|
|
11858
|
+
};
|
|
10774
11859
|
get_offer_by_link_code: {
|
|
10775
11860
|
Args: {
|
|
10776
11861
|
p_code: string;
|
|
@@ -10801,6 +11886,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10801
11886
|
};
|
|
10802
11887
|
Returns: string;
|
|
10803
11888
|
};
|
|
11889
|
+
get_product_group_available_stock: {
|
|
11890
|
+
Args: {
|
|
11891
|
+
p_group_id: string;
|
|
11892
|
+
};
|
|
11893
|
+
Returns: number;
|
|
11894
|
+
};
|
|
10804
11895
|
get_room_busy_windows: {
|
|
10805
11896
|
Args: {
|
|
10806
11897
|
p_from: string;
|
|
@@ -10881,6 +11972,32 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10881
11972
|
};
|
|
10882
11973
|
Returns: undefined;
|
|
10883
11974
|
};
|
|
11975
|
+
mark_salesorder_controlled: {
|
|
11976
|
+
Args: {
|
|
11977
|
+
p_controlled: boolean;
|
|
11978
|
+
p_floriday_id: string;
|
|
11979
|
+
};
|
|
11980
|
+
Returns: undefined;
|
|
11981
|
+
};
|
|
11982
|
+
mark_shipment_shipped: {
|
|
11983
|
+
Args: {
|
|
11984
|
+
p_shipment_id: string;
|
|
11985
|
+
};
|
|
11986
|
+
Returns: undefined;
|
|
11987
|
+
};
|
|
11988
|
+
merge_products: {
|
|
11989
|
+
Args: {
|
|
11990
|
+
_canonical: string;
|
|
11991
|
+
_loser: string;
|
|
11992
|
+
};
|
|
11993
|
+
Returns: undefined;
|
|
11994
|
+
};
|
|
11995
|
+
next_manufacture_partij: {
|
|
11996
|
+
Args: {
|
|
11997
|
+
_tenant_id: string;
|
|
11998
|
+
};
|
|
11999
|
+
Returns: string;
|
|
12000
|
+
};
|
|
10884
12001
|
next_order_number: {
|
|
10885
12002
|
Args: {
|
|
10886
12003
|
p_prefix: string;
|
|
@@ -10950,6 +12067,15 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10950
12067
|
};
|
|
10951
12068
|
Returns: undefined;
|
|
10952
12069
|
};
|
|
12070
|
+
pickstation_resolve_delivery_orders: {
|
|
12071
|
+
Args: {
|
|
12072
|
+
p_sales_order_ids: string[];
|
|
12073
|
+
};
|
|
12074
|
+
Returns: {
|
|
12075
|
+
delivery_order_id: string;
|
|
12076
|
+
sales_order_id: string;
|
|
12077
|
+
}[];
|
|
12078
|
+
};
|
|
10953
12079
|
pickstation_set_cart_status: {
|
|
10954
12080
|
Args: {
|
|
10955
12081
|
p_cart_index: number;
|
|
@@ -10959,6 +12085,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10959
12085
|
};
|
|
10960
12086
|
Returns: undefined;
|
|
10961
12087
|
};
|
|
12088
|
+
produce_designed_product: {
|
|
12089
|
+
Args: {
|
|
12090
|
+
p_parent_id: string;
|
|
12091
|
+
p_parent_kind: string;
|
|
12092
|
+
p_quantity: number;
|
|
12093
|
+
};
|
|
12094
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12095
|
+
};
|
|
10962
12096
|
promote_trade_item_key: {
|
|
10963
12097
|
Args: {
|
|
10964
12098
|
p_new: string;
|
|
@@ -10966,6 +12100,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
10966
12100
|
};
|
|
10967
12101
|
Returns: undefined;
|
|
10968
12102
|
};
|
|
12103
|
+
recompute_all_reserved_stock: {
|
|
12104
|
+
Args: never;
|
|
12105
|
+
Returns: undefined;
|
|
12106
|
+
};
|
|
10969
12107
|
recompute_order_status: {
|
|
10970
12108
|
Args: {
|
|
10971
12109
|
p_order_id: string;
|
|
@@ -11015,27 +12153,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
11015
12153
|
};
|
|
11016
12154
|
Returns: undefined;
|
|
11017
12155
|
};
|
|
12156
|
+
resolve_group_allocation: {
|
|
12157
|
+
Args: {
|
|
12158
|
+
_needed: number;
|
|
12159
|
+
_product_group_id: string;
|
|
12160
|
+
};
|
|
12161
|
+
Returns: {
|
|
12162
|
+
allocated: number;
|
|
12163
|
+
trade_item_id: string;
|
|
12164
|
+
}[];
|
|
12165
|
+
};
|
|
12166
|
+
resolve_group_member_stock_key: {
|
|
12167
|
+
Args: {
|
|
12168
|
+
p_trade_item_id: string;
|
|
12169
|
+
};
|
|
12170
|
+
Returns: string;
|
|
12171
|
+
};
|
|
11018
12172
|
resolve_product_id_for_item: {
|
|
11019
12173
|
Args: {
|
|
11020
12174
|
p_product_name: string;
|
|
11021
12175
|
};
|
|
11022
12176
|
Returns: string;
|
|
11023
12177
|
};
|
|
11024
|
-
|
|
12178
|
+
resolve_stock_trade_item_key: {
|
|
11025
12179
|
Args: {
|
|
11026
|
-
|
|
11027
|
-
p_url: string;
|
|
12180
|
+
p_product_id: string;
|
|
11028
12181
|
};
|
|
11029
|
-
Returns:
|
|
12182
|
+
Returns: string;
|
|
11030
12183
|
};
|
|
11031
|
-
|
|
12184
|
+
reverse_production: {
|
|
11032
12185
|
Args: {
|
|
11033
|
-
|
|
11034
|
-
|
|
12186
|
+
p_connection_id?: string;
|
|
12187
|
+
p_parent_key: string;
|
|
12188
|
+
p_quantity: number;
|
|
12189
|
+
p_reason?: string;
|
|
12190
|
+
p_user_id?: string;
|
|
11035
12191
|
};
|
|
11036
|
-
Returns:
|
|
12192
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
11037
12193
|
};
|
|
11038
|
-
|
|
12194
|
+
schedule_floriday_additional_services_sync: {
|
|
11039
12195
|
Args: {
|
|
11040
12196
|
p_apikey: string;
|
|
11041
12197
|
p_url: string;
|
|
@@ -11288,6 +12444,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
11288
12444
|
};
|
|
11289
12445
|
Returns: number;
|
|
11290
12446
|
};
|
|
12447
|
+
self_heal_floriday_links: {
|
|
12448
|
+
Args: never;
|
|
12449
|
+
Returns: number;
|
|
12450
|
+
};
|
|
11291
12451
|
show_limit: {
|
|
11292
12452
|
Args: never;
|
|
11293
12453
|
Returns: number;
|
|
@@ -11298,18 +12458,34 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
|
|
|
11298
12458
|
};
|
|
11299
12459
|
Returns: string[];
|
|
11300
12460
|
};
|
|
12461
|
+
sync_all_layer_stocks: {
|
|
12462
|
+
Args: never;
|
|
12463
|
+
Returns: undefined;
|
|
12464
|
+
};
|
|
11301
12465
|
sync_cached_packing_from_product: {
|
|
11302
12466
|
Args: {
|
|
11303
12467
|
p_product_id: string;
|
|
11304
12468
|
};
|
|
11305
12469
|
Returns: undefined;
|
|
11306
12470
|
};
|
|
12471
|
+
sync_layer_stock: {
|
|
12472
|
+
Args: {
|
|
12473
|
+
p_product_id: string;
|
|
12474
|
+
};
|
|
12475
|
+
Returns: undefined;
|
|
12476
|
+
};
|
|
11307
12477
|
sync_order_cart_item_packing_from_product: {
|
|
11308
12478
|
Args: {
|
|
11309
12479
|
p_product_id: string;
|
|
11310
12480
|
};
|
|
11311
12481
|
Returns: undefined;
|
|
11312
12482
|
};
|
|
12483
|
+
sync_product_group_belading: {
|
|
12484
|
+
Args: {
|
|
12485
|
+
_group_id: string;
|
|
12486
|
+
};
|
|
12487
|
+
Returns: undefined;
|
|
12488
|
+
};
|
|
11313
12489
|
sync_product_packing_from_floriday_cache: {
|
|
11314
12490
|
Args: {
|
|
11315
12491
|
p_floriday_id: string;
|
|
@@ -11562,37 +12738,196 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
11562
12738
|
scope?: string | null;
|
|
11563
12739
|
token_expires_at?: string | null;
|
|
11564
12740
|
updated_at?: string;
|
|
11565
|
-
user_id?: string;
|
|
12741
|
+
user_id?: string;
|
|
12742
|
+
};
|
|
12743
|
+
Relationships: [];
|
|
12744
|
+
};
|
|
12745
|
+
agenda_settings: {
|
|
12746
|
+
Row: {
|
|
12747
|
+
color_map: import("../integrations/supabase/types").Json;
|
|
12748
|
+
created_at: string;
|
|
12749
|
+
default_calendar_id: string;
|
|
12750
|
+
default_view: string;
|
|
12751
|
+
settings: import("../integrations/supabase/types").Json;
|
|
12752
|
+
updated_at: string;
|
|
12753
|
+
user_id: string;
|
|
12754
|
+
};
|
|
12755
|
+
Insert: {
|
|
12756
|
+
color_map?: import("../integrations/supabase/types").Json;
|
|
12757
|
+
created_at?: string;
|
|
12758
|
+
default_calendar_id?: string;
|
|
12759
|
+
default_view?: string;
|
|
12760
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
12761
|
+
updated_at?: string;
|
|
12762
|
+
user_id: string;
|
|
12763
|
+
};
|
|
12764
|
+
Update: {
|
|
12765
|
+
color_map?: import("../integrations/supabase/types").Json;
|
|
12766
|
+
created_at?: string;
|
|
12767
|
+
default_calendar_id?: string;
|
|
12768
|
+
default_view?: string;
|
|
12769
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
12770
|
+
updated_at?: string;
|
|
12771
|
+
user_id?: string;
|
|
12772
|
+
};
|
|
12773
|
+
Relationships: [];
|
|
12774
|
+
};
|
|
12775
|
+
ai_credentials: {
|
|
12776
|
+
Row: {
|
|
12777
|
+
active: boolean;
|
|
12778
|
+
api_key: string;
|
|
12779
|
+
created_at: string;
|
|
12780
|
+
created_by: string | null;
|
|
12781
|
+
id: string;
|
|
12782
|
+
label: string;
|
|
12783
|
+
provider_id: string;
|
|
12784
|
+
updated_at: string;
|
|
12785
|
+
};
|
|
12786
|
+
Insert: {
|
|
12787
|
+
active?: boolean;
|
|
12788
|
+
api_key: string;
|
|
12789
|
+
created_at?: string;
|
|
12790
|
+
created_by?: string | null;
|
|
12791
|
+
id?: string;
|
|
12792
|
+
label: string;
|
|
12793
|
+
provider_id: string;
|
|
12794
|
+
updated_at?: string;
|
|
12795
|
+
};
|
|
12796
|
+
Update: {
|
|
12797
|
+
active?: boolean;
|
|
12798
|
+
api_key?: string;
|
|
12799
|
+
created_at?: string;
|
|
12800
|
+
created_by?: string | null;
|
|
12801
|
+
id?: string;
|
|
12802
|
+
label?: string;
|
|
12803
|
+
provider_id?: string;
|
|
12804
|
+
updated_at?: string;
|
|
12805
|
+
};
|
|
12806
|
+
Relationships: [{
|
|
12807
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
12808
|
+
columns: ["provider_id"];
|
|
12809
|
+
isOneToOne: false;
|
|
12810
|
+
referencedRelation: "ai_providers";
|
|
12811
|
+
referencedColumns: ["id"];
|
|
12812
|
+
}];
|
|
12813
|
+
};
|
|
12814
|
+
ai_models: {
|
|
12815
|
+
Row: {
|
|
12816
|
+
active: boolean;
|
|
12817
|
+
context_window: number | null;
|
|
12818
|
+
created_at: string;
|
|
12819
|
+
display_name: string;
|
|
12820
|
+
id: string;
|
|
12821
|
+
is_default: boolean;
|
|
12822
|
+
modality: string;
|
|
12823
|
+
provider_id: string;
|
|
12824
|
+
slug: string;
|
|
12825
|
+
updated_at: string;
|
|
12826
|
+
};
|
|
12827
|
+
Insert: {
|
|
12828
|
+
active?: boolean;
|
|
12829
|
+
context_window?: number | null;
|
|
12830
|
+
created_at?: string;
|
|
12831
|
+
display_name: string;
|
|
12832
|
+
id?: string;
|
|
12833
|
+
is_default?: boolean;
|
|
12834
|
+
modality?: string;
|
|
12835
|
+
provider_id: string;
|
|
12836
|
+
slug: string;
|
|
12837
|
+
updated_at?: string;
|
|
12838
|
+
};
|
|
12839
|
+
Update: {
|
|
12840
|
+
active?: boolean;
|
|
12841
|
+
context_window?: number | null;
|
|
12842
|
+
created_at?: string;
|
|
12843
|
+
display_name?: string;
|
|
12844
|
+
id?: string;
|
|
12845
|
+
is_default?: boolean;
|
|
12846
|
+
modality?: string;
|
|
12847
|
+
provider_id?: string;
|
|
12848
|
+
slug?: string;
|
|
12849
|
+
updated_at?: string;
|
|
12850
|
+
};
|
|
12851
|
+
Relationships: [{
|
|
12852
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
12853
|
+
columns: ["provider_id"];
|
|
12854
|
+
isOneToOne: false;
|
|
12855
|
+
referencedRelation: "ai_providers";
|
|
12856
|
+
referencedColumns: ["id"];
|
|
12857
|
+
}];
|
|
12858
|
+
};
|
|
12859
|
+
ai_module_bindings: {
|
|
12860
|
+
Row: {
|
|
12861
|
+
consumer_module_id: string;
|
|
12862
|
+
created_at: string;
|
|
12863
|
+
credential_id: string;
|
|
12864
|
+
id: string;
|
|
12865
|
+
model_id: string;
|
|
12866
|
+
notes: string | null;
|
|
12867
|
+
updated_at: string;
|
|
12868
|
+
};
|
|
12869
|
+
Insert: {
|
|
12870
|
+
consumer_module_id: string;
|
|
12871
|
+
created_at?: string;
|
|
12872
|
+
credential_id: string;
|
|
12873
|
+
id?: string;
|
|
12874
|
+
model_id: string;
|
|
12875
|
+
notes?: string | null;
|
|
12876
|
+
updated_at?: string;
|
|
12877
|
+
};
|
|
12878
|
+
Update: {
|
|
12879
|
+
consumer_module_id?: string;
|
|
12880
|
+
created_at?: string;
|
|
12881
|
+
credential_id?: string;
|
|
12882
|
+
id?: string;
|
|
12883
|
+
model_id?: string;
|
|
12884
|
+
notes?: string | null;
|
|
12885
|
+
updated_at?: string;
|
|
11566
12886
|
};
|
|
11567
|
-
Relationships: [
|
|
12887
|
+
Relationships: [{
|
|
12888
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
12889
|
+
columns: ["credential_id"];
|
|
12890
|
+
isOneToOne: false;
|
|
12891
|
+
referencedRelation: "ai_credentials";
|
|
12892
|
+
referencedColumns: ["id"];
|
|
12893
|
+
}, {
|
|
12894
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
12895
|
+
columns: ["model_id"];
|
|
12896
|
+
isOneToOne: false;
|
|
12897
|
+
referencedRelation: "ai_models";
|
|
12898
|
+
referencedColumns: ["id"];
|
|
12899
|
+
}];
|
|
11568
12900
|
};
|
|
11569
|
-
|
|
12901
|
+
ai_providers: {
|
|
11570
12902
|
Row: {
|
|
11571
|
-
|
|
12903
|
+
active: boolean;
|
|
12904
|
+
auth_type: string;
|
|
12905
|
+
base_url: string | null;
|
|
11572
12906
|
created_at: string;
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
12907
|
+
id: string;
|
|
12908
|
+
name: string;
|
|
12909
|
+
slug: string;
|
|
11576
12910
|
updated_at: string;
|
|
11577
|
-
user_id: string;
|
|
11578
12911
|
};
|
|
11579
12912
|
Insert: {
|
|
11580
|
-
|
|
12913
|
+
active?: boolean;
|
|
12914
|
+
auth_type?: string;
|
|
12915
|
+
base_url?: string | null;
|
|
11581
12916
|
created_at?: string;
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
12917
|
+
id?: string;
|
|
12918
|
+
name: string;
|
|
12919
|
+
slug: string;
|
|
11585
12920
|
updated_at?: string;
|
|
11586
|
-
user_id: string;
|
|
11587
12921
|
};
|
|
11588
12922
|
Update: {
|
|
11589
|
-
|
|
12923
|
+
active?: boolean;
|
|
12924
|
+
auth_type?: string;
|
|
12925
|
+
base_url?: string | null;
|
|
11590
12926
|
created_at?: string;
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
|
|
12927
|
+
id?: string;
|
|
12928
|
+
name?: string;
|
|
12929
|
+
slug?: string;
|
|
11594
12930
|
updated_at?: string;
|
|
11595
|
-
user_id?: string;
|
|
11596
12931
|
};
|
|
11597
12932
|
Relationships: [];
|
|
11598
12933
|
};
|
|
@@ -12223,6 +13558,138 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
12223
13558
|
};
|
|
12224
13559
|
Relationships: [];
|
|
12225
13560
|
};
|
|
13561
|
+
cart_planning_pick_times: {
|
|
13562
|
+
Row: {
|
|
13563
|
+
created_at: string;
|
|
13564
|
+
id: string;
|
|
13565
|
+
pot_size: string;
|
|
13566
|
+
seconds_per_cart: number;
|
|
13567
|
+
updated_at: string;
|
|
13568
|
+
};
|
|
13569
|
+
Insert: {
|
|
13570
|
+
created_at?: string;
|
|
13571
|
+
id?: string;
|
|
13572
|
+
pot_size: string;
|
|
13573
|
+
seconds_per_cart: number;
|
|
13574
|
+
updated_at?: string;
|
|
13575
|
+
};
|
|
13576
|
+
Update: {
|
|
13577
|
+
created_at?: string;
|
|
13578
|
+
id?: string;
|
|
13579
|
+
pot_size?: string;
|
|
13580
|
+
seconds_per_cart?: number;
|
|
13581
|
+
updated_at?: string;
|
|
13582
|
+
};
|
|
13583
|
+
Relationships: [];
|
|
13584
|
+
};
|
|
13585
|
+
cart_planning_product_overrides: {
|
|
13586
|
+
Row: {
|
|
13587
|
+
created_at: string;
|
|
13588
|
+
id: string;
|
|
13589
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
13590
|
+
never_mix: boolean;
|
|
13591
|
+
notes: string | null;
|
|
13592
|
+
product_id: string;
|
|
13593
|
+
updated_at: string;
|
|
13594
|
+
};
|
|
13595
|
+
Insert: {
|
|
13596
|
+
created_at?: string;
|
|
13597
|
+
id?: string;
|
|
13598
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
13599
|
+
never_mix?: boolean;
|
|
13600
|
+
notes?: string | null;
|
|
13601
|
+
product_id: string;
|
|
13602
|
+
updated_at?: string;
|
|
13603
|
+
};
|
|
13604
|
+
Update: {
|
|
13605
|
+
created_at?: string;
|
|
13606
|
+
id?: string;
|
|
13607
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
13608
|
+
never_mix?: boolean;
|
|
13609
|
+
notes?: string | null;
|
|
13610
|
+
product_id?: string;
|
|
13611
|
+
updated_at?: string;
|
|
13612
|
+
};
|
|
13613
|
+
Relationships: [{
|
|
13614
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
13615
|
+
columns: ["product_id"];
|
|
13616
|
+
isOneToOne: true;
|
|
13617
|
+
referencedRelation: "products";
|
|
13618
|
+
referencedColumns: ["id"];
|
|
13619
|
+
}];
|
|
13620
|
+
};
|
|
13621
|
+
cart_planning_settings: {
|
|
13622
|
+
Row: {
|
|
13623
|
+
allow_editing_after_pickstation_send: boolean;
|
|
13624
|
+
buffer_grouping_mode: string;
|
|
13625
|
+
combine_floriday_orders: boolean;
|
|
13626
|
+
combine_floriday_orders_window: string;
|
|
13627
|
+
combine_orders_scope: string;
|
|
13628
|
+
default_workers: number;
|
|
13629
|
+
id: number;
|
|
13630
|
+
max_beladingen_per_layer: number;
|
|
13631
|
+
max_customers_per_cart: number;
|
|
13632
|
+
max_one_customer_per_layer: boolean;
|
|
13633
|
+
max_party_share_per_layer_pct: number;
|
|
13634
|
+
optimization_strategy: string;
|
|
13635
|
+
own_cart_from_layers: number;
|
|
13636
|
+
pick_time_mode: string;
|
|
13637
|
+
plants_per_hour: number;
|
|
13638
|
+
require_same_carrier: boolean;
|
|
13639
|
+
require_same_crate_type: boolean;
|
|
13640
|
+
require_same_delivery_date: boolean;
|
|
13641
|
+
require_same_delivery_location: boolean;
|
|
13642
|
+
updated_at: string;
|
|
13643
|
+
updated_by: string | null;
|
|
13644
|
+
};
|
|
13645
|
+
Insert: {
|
|
13646
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
13647
|
+
buffer_grouping_mode?: string;
|
|
13648
|
+
combine_floriday_orders?: boolean;
|
|
13649
|
+
combine_floriday_orders_window?: string;
|
|
13650
|
+
combine_orders_scope?: string;
|
|
13651
|
+
default_workers?: number;
|
|
13652
|
+
id?: number;
|
|
13653
|
+
max_beladingen_per_layer?: number;
|
|
13654
|
+
max_customers_per_cart?: number;
|
|
13655
|
+
max_one_customer_per_layer?: boolean;
|
|
13656
|
+
max_party_share_per_layer_pct?: number;
|
|
13657
|
+
optimization_strategy?: string;
|
|
13658
|
+
own_cart_from_layers?: number;
|
|
13659
|
+
pick_time_mode?: string;
|
|
13660
|
+
plants_per_hour?: number;
|
|
13661
|
+
require_same_carrier?: boolean;
|
|
13662
|
+
require_same_crate_type?: boolean;
|
|
13663
|
+
require_same_delivery_date?: boolean;
|
|
13664
|
+
require_same_delivery_location?: boolean;
|
|
13665
|
+
updated_at?: string;
|
|
13666
|
+
updated_by?: string | null;
|
|
13667
|
+
};
|
|
13668
|
+
Update: {
|
|
13669
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
13670
|
+
buffer_grouping_mode?: string;
|
|
13671
|
+
combine_floriday_orders?: boolean;
|
|
13672
|
+
combine_floriday_orders_window?: string;
|
|
13673
|
+
combine_orders_scope?: string;
|
|
13674
|
+
default_workers?: number;
|
|
13675
|
+
id?: number;
|
|
13676
|
+
max_beladingen_per_layer?: number;
|
|
13677
|
+
max_customers_per_cart?: number;
|
|
13678
|
+
max_one_customer_per_layer?: boolean;
|
|
13679
|
+
max_party_share_per_layer_pct?: number;
|
|
13680
|
+
optimization_strategy?: string;
|
|
13681
|
+
own_cart_from_layers?: number;
|
|
13682
|
+
pick_time_mode?: string;
|
|
13683
|
+
plants_per_hour?: number;
|
|
13684
|
+
require_same_carrier?: boolean;
|
|
13685
|
+
require_same_crate_type?: boolean;
|
|
13686
|
+
require_same_delivery_date?: boolean;
|
|
13687
|
+
require_same_delivery_location?: boolean;
|
|
13688
|
+
updated_at?: string;
|
|
13689
|
+
updated_by?: string | null;
|
|
13690
|
+
};
|
|
13691
|
+
Relationships: [];
|
|
13692
|
+
};
|
|
12226
13693
|
cart_replan_queue: {
|
|
12227
13694
|
Row: {
|
|
12228
13695
|
attempts: number;
|
|
@@ -12253,6 +13720,39 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
12253
13720
|
referencedColumns: ["id"];
|
|
12254
13721
|
}];
|
|
12255
13722
|
};
|
|
13723
|
+
cart_types: {
|
|
13724
|
+
Row: {
|
|
13725
|
+
created_at: string;
|
|
13726
|
+
id: string;
|
|
13727
|
+
is_default: boolean;
|
|
13728
|
+
layer_length_cm: number;
|
|
13729
|
+
layer_width_cm: number;
|
|
13730
|
+
layers_per_cart: number;
|
|
13731
|
+
name: string;
|
|
13732
|
+
updated_at: string;
|
|
13733
|
+
};
|
|
13734
|
+
Insert: {
|
|
13735
|
+
created_at?: string;
|
|
13736
|
+
id?: string;
|
|
13737
|
+
is_default?: boolean;
|
|
13738
|
+
layer_length_cm: number;
|
|
13739
|
+
layer_width_cm: number;
|
|
13740
|
+
layers_per_cart?: number;
|
|
13741
|
+
name: string;
|
|
13742
|
+
updated_at?: string;
|
|
13743
|
+
};
|
|
13744
|
+
Update: {
|
|
13745
|
+
created_at?: string;
|
|
13746
|
+
id?: string;
|
|
13747
|
+
is_default?: boolean;
|
|
13748
|
+
layer_length_cm?: number;
|
|
13749
|
+
layer_width_cm?: number;
|
|
13750
|
+
layers_per_cart?: number;
|
|
13751
|
+
name?: string;
|
|
13752
|
+
updated_at?: string;
|
|
13753
|
+
};
|
|
13754
|
+
Relationships: [];
|
|
13755
|
+
};
|
|
12256
13756
|
collections: {
|
|
12257
13757
|
Row: {
|
|
12258
13758
|
created_at: string;
|
|
@@ -12277,6 +13777,36 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
12277
13777
|
};
|
|
12278
13778
|
Relationships: [];
|
|
12279
13779
|
};
|
|
13780
|
+
crate_types: {
|
|
13781
|
+
Row: {
|
|
13782
|
+
created_at: string;
|
|
13783
|
+
id: string;
|
|
13784
|
+
length_cm: number;
|
|
13785
|
+
name: string;
|
|
13786
|
+
plants_per_crate: number;
|
|
13787
|
+
updated_at: string;
|
|
13788
|
+
width_cm: number;
|
|
13789
|
+
};
|
|
13790
|
+
Insert: {
|
|
13791
|
+
created_at?: string;
|
|
13792
|
+
id?: string;
|
|
13793
|
+
length_cm: number;
|
|
13794
|
+
name: string;
|
|
13795
|
+
plants_per_crate?: number;
|
|
13796
|
+
updated_at?: string;
|
|
13797
|
+
width_cm: number;
|
|
13798
|
+
};
|
|
13799
|
+
Update: {
|
|
13800
|
+
created_at?: string;
|
|
13801
|
+
id?: string;
|
|
13802
|
+
length_cm?: number;
|
|
13803
|
+
name?: string;
|
|
13804
|
+
plants_per_crate?: number;
|
|
13805
|
+
updated_at?: string;
|
|
13806
|
+
width_cm?: number;
|
|
13807
|
+
};
|
|
13808
|
+
Relationships: [];
|
|
13809
|
+
};
|
|
12280
13810
|
customer_audit_log: {
|
|
12281
13811
|
Row: {
|
|
12282
13812
|
action: string;
|
|
@@ -14602,105 +16132,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
14602
16132
|
referencedColumns: ["id"];
|
|
14603
16133
|
}];
|
|
14604
16134
|
};
|
|
14605
|
-
floriday_agreement_calloffs_cache: {
|
|
14606
|
-
Row: {
|
|
14607
|
-
agreement_id: string | null;
|
|
14608
|
-
connection_id: string;
|
|
14609
|
-
data: import("../integrations/supabase/types").Json;
|
|
14610
|
-
delivery_date: string | null;
|
|
14611
|
-
fetched_at: string;
|
|
14612
|
-
floriday_id: string;
|
|
14613
|
-
id: string;
|
|
14614
|
-
is_deleted: boolean;
|
|
14615
|
-
sequence_number: number;
|
|
14616
|
-
status: string | null;
|
|
14617
|
-
updated_at: string;
|
|
14618
|
-
};
|
|
14619
|
-
Insert: {
|
|
14620
|
-
agreement_id?: string | null;
|
|
14621
|
-
connection_id: string;
|
|
14622
|
-
data?: import("../integrations/supabase/types").Json;
|
|
14623
|
-
delivery_date?: string | null;
|
|
14624
|
-
fetched_at?: string;
|
|
14625
|
-
floriday_id: string;
|
|
14626
|
-
id?: string;
|
|
14627
|
-
is_deleted?: boolean;
|
|
14628
|
-
sequence_number?: number;
|
|
14629
|
-
status?: string | null;
|
|
14630
|
-
updated_at?: string;
|
|
14631
|
-
};
|
|
14632
|
-
Update: {
|
|
14633
|
-
agreement_id?: string | null;
|
|
14634
|
-
connection_id?: string;
|
|
14635
|
-
data?: import("../integrations/supabase/types").Json;
|
|
14636
|
-
delivery_date?: string | null;
|
|
14637
|
-
fetched_at?: string;
|
|
14638
|
-
floriday_id?: string;
|
|
14639
|
-
id?: string;
|
|
14640
|
-
is_deleted?: boolean;
|
|
14641
|
-
sequence_number?: number;
|
|
14642
|
-
status?: string | null;
|
|
14643
|
-
updated_at?: string;
|
|
14644
|
-
};
|
|
14645
|
-
Relationships: [{
|
|
14646
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
14647
|
-
columns: ["connection_id"];
|
|
14648
|
-
isOneToOne: false;
|
|
14649
|
-
referencedRelation: "floriday_connections";
|
|
14650
|
-
referencedColumns: ["id"];
|
|
14651
|
-
}];
|
|
14652
|
-
};
|
|
14653
|
-
floriday_agreements_cache: {
|
|
14654
|
-
Row: {
|
|
14655
|
-
buyer_organization_id: string | null;
|
|
14656
|
-
connection_id: string;
|
|
14657
|
-
data: import("../integrations/supabase/types").Json;
|
|
14658
|
-
fetched_at: string;
|
|
14659
|
-
floriday_id: string;
|
|
14660
|
-
id: string;
|
|
14661
|
-
is_deleted: boolean;
|
|
14662
|
-
sequence_number: number;
|
|
14663
|
-
status: string | null;
|
|
14664
|
-
updated_at: string;
|
|
14665
|
-
valid_from: string | null;
|
|
14666
|
-
valid_until: string | null;
|
|
14667
|
-
};
|
|
14668
|
-
Insert: {
|
|
14669
|
-
buyer_organization_id?: string | null;
|
|
14670
|
-
connection_id: string;
|
|
14671
|
-
data?: import("../integrations/supabase/types").Json;
|
|
14672
|
-
fetched_at?: string;
|
|
14673
|
-
floriday_id: string;
|
|
14674
|
-
id?: string;
|
|
14675
|
-
is_deleted?: boolean;
|
|
14676
|
-
sequence_number?: number;
|
|
14677
|
-
status?: string | null;
|
|
14678
|
-
updated_at?: string;
|
|
14679
|
-
valid_from?: string | null;
|
|
14680
|
-
valid_until?: string | null;
|
|
14681
|
-
};
|
|
14682
|
-
Update: {
|
|
14683
|
-
buyer_organization_id?: string | null;
|
|
14684
|
-
connection_id?: string;
|
|
14685
|
-
data?: import("../integrations/supabase/types").Json;
|
|
14686
|
-
fetched_at?: string;
|
|
14687
|
-
floriday_id?: string;
|
|
14688
|
-
id?: string;
|
|
14689
|
-
is_deleted?: boolean;
|
|
14690
|
-
sequence_number?: number;
|
|
14691
|
-
status?: string | null;
|
|
14692
|
-
updated_at?: string;
|
|
14693
|
-
valid_from?: string | null;
|
|
14694
|
-
valid_until?: string | null;
|
|
14695
|
-
};
|
|
14696
|
-
Relationships: [{
|
|
14697
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
14698
|
-
columns: ["connection_id"];
|
|
14699
|
-
isOneToOne: false;
|
|
14700
|
-
referencedRelation: "floriday_connections";
|
|
14701
|
-
referencedColumns: ["id"];
|
|
14702
|
-
}];
|
|
14703
|
-
};
|
|
14704
16135
|
floriday_auction_letters_cache: {
|
|
14705
16136
|
Row: {
|
|
14706
16137
|
auction_letter_code: string;
|
|
@@ -15199,6 +16630,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15199
16630
|
referencedColumns: ["id"];
|
|
15200
16631
|
}];
|
|
15201
16632
|
};
|
|
16633
|
+
floriday_continuous_stock_cache: {
|
|
16634
|
+
Row: {
|
|
16635
|
+
connection_id: string;
|
|
16636
|
+
fetched_at: string;
|
|
16637
|
+
number_of_pieces: number;
|
|
16638
|
+
trade_item_id: string;
|
|
16639
|
+
};
|
|
16640
|
+
Insert: {
|
|
16641
|
+
connection_id: string;
|
|
16642
|
+
fetched_at?: string;
|
|
16643
|
+
number_of_pieces?: number;
|
|
16644
|
+
trade_item_id: string;
|
|
16645
|
+
};
|
|
16646
|
+
Update: {
|
|
16647
|
+
connection_id?: string;
|
|
16648
|
+
fetched_at?: string;
|
|
16649
|
+
number_of_pieces?: number;
|
|
16650
|
+
trade_item_id?: string;
|
|
16651
|
+
};
|
|
16652
|
+
Relationships: [];
|
|
16653
|
+
};
|
|
15202
16654
|
floriday_continuous_stock_queue: {
|
|
15203
16655
|
Row: {
|
|
15204
16656
|
attempts: number;
|
|
@@ -15974,6 +17426,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15974
17426
|
Row: {
|
|
15975
17427
|
buyer_organization_id: string | null;
|
|
15976
17428
|
connection_id: string;
|
|
17429
|
+
controlled_at: string | null;
|
|
17430
|
+
controlled_by: string | null;
|
|
15977
17431
|
created_at: string;
|
|
15978
17432
|
data: import("../integrations/supabase/types").Json;
|
|
15979
17433
|
floriday_id: string;
|
|
@@ -15985,6 +17439,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15985
17439
|
Insert: {
|
|
15986
17440
|
buyer_organization_id?: string | null;
|
|
15987
17441
|
connection_id: string;
|
|
17442
|
+
controlled_at?: string | null;
|
|
17443
|
+
controlled_by?: string | null;
|
|
15988
17444
|
created_at?: string;
|
|
15989
17445
|
data: import("../integrations/supabase/types").Json;
|
|
15990
17446
|
floriday_id: string;
|
|
@@ -15996,6 +17452,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
15996
17452
|
Update: {
|
|
15997
17453
|
buyer_organization_id?: string | null;
|
|
15998
17454
|
connection_id?: string;
|
|
17455
|
+
controlled_at?: string | null;
|
|
17456
|
+
controlled_by?: string | null;
|
|
15999
17457
|
created_at?: string;
|
|
16000
17458
|
data?: import("../integrations/supabase/types").Json;
|
|
16001
17459
|
floriday_id?: string;
|
|
@@ -16177,6 +17635,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16177
17635
|
referencedColumns: ["id"];
|
|
16178
17636
|
}];
|
|
16179
17637
|
};
|
|
17638
|
+
floriday_trade_settings_customers_cache: {
|
|
17639
|
+
Row: {
|
|
17640
|
+
connection_id: string;
|
|
17641
|
+
data: import("../integrations/supabase/types").Json;
|
|
17642
|
+
fetched_at: string;
|
|
17643
|
+
floriday_id: string;
|
|
17644
|
+
id: string;
|
|
17645
|
+
is_deleted: boolean;
|
|
17646
|
+
sequence_number: number;
|
|
17647
|
+
updated_at: string;
|
|
17648
|
+
};
|
|
17649
|
+
Insert: {
|
|
17650
|
+
connection_id: string;
|
|
17651
|
+
data: import("../integrations/supabase/types").Json;
|
|
17652
|
+
fetched_at?: string;
|
|
17653
|
+
floriday_id: string;
|
|
17654
|
+
id?: string;
|
|
17655
|
+
is_deleted?: boolean;
|
|
17656
|
+
sequence_number?: number;
|
|
17657
|
+
updated_at?: string;
|
|
17658
|
+
};
|
|
17659
|
+
Update: {
|
|
17660
|
+
connection_id?: string;
|
|
17661
|
+
data?: import("../integrations/supabase/types").Json;
|
|
17662
|
+
fetched_at?: string;
|
|
17663
|
+
floriday_id?: string;
|
|
17664
|
+
id?: string;
|
|
17665
|
+
is_deleted?: boolean;
|
|
17666
|
+
sequence_number?: number;
|
|
17667
|
+
updated_at?: string;
|
|
17668
|
+
};
|
|
17669
|
+
Relationships: [{
|
|
17670
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
17671
|
+
columns: ["connection_id"];
|
|
17672
|
+
isOneToOne: false;
|
|
17673
|
+
referencedRelation: "floriday_connections";
|
|
17674
|
+
referencedColumns: ["id"];
|
|
17675
|
+
}];
|
|
17676
|
+
};
|
|
16180
17677
|
floriday_trips_cache: {
|
|
16181
17678
|
Row: {
|
|
16182
17679
|
carrier_organization_id: string | null;
|
|
@@ -16225,6 +17722,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16225
17722
|
referencedColumns: ["id"];
|
|
16226
17723
|
}];
|
|
16227
17724
|
};
|
|
17725
|
+
floriday_vbn_required_characteristics: {
|
|
17726
|
+
Row: {
|
|
17727
|
+
required_codes: string[];
|
|
17728
|
+
updated_at: string;
|
|
17729
|
+
updated_by: string | null;
|
|
17730
|
+
vbn_code: string;
|
|
17731
|
+
};
|
|
17732
|
+
Insert: {
|
|
17733
|
+
required_codes?: string[];
|
|
17734
|
+
updated_at?: string;
|
|
17735
|
+
updated_by?: string | null;
|
|
17736
|
+
vbn_code: string;
|
|
17737
|
+
};
|
|
17738
|
+
Update: {
|
|
17739
|
+
required_codes?: string[];
|
|
17740
|
+
updated_at?: string;
|
|
17741
|
+
updated_by?: string | null;
|
|
17742
|
+
vbn_code?: string;
|
|
17743
|
+
};
|
|
17744
|
+
Relationships: [];
|
|
17745
|
+
};
|
|
16228
17746
|
floriday_warehouses_cache: {
|
|
16229
17747
|
Row: {
|
|
16230
17748
|
connection_id: string;
|
|
@@ -16837,93 +18355,372 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
16837
18355
|
referencedColumns: ["id"];
|
|
16838
18356
|
}];
|
|
16839
18357
|
};
|
|
16840
|
-
local_customer_sales_strategies: {
|
|
18358
|
+
local_customer_sales_strategies: {
|
|
18359
|
+
Row: {
|
|
18360
|
+
created_at: string;
|
|
18361
|
+
currency: string;
|
|
18362
|
+
customer_id: string;
|
|
18363
|
+
discount_type: string;
|
|
18364
|
+
discount_value: number;
|
|
18365
|
+
id: string;
|
|
18366
|
+
min_quantity: number;
|
|
18367
|
+
notes: string | null;
|
|
18368
|
+
product_category_id: string | null;
|
|
18369
|
+
product_id: string | null;
|
|
18370
|
+
updated_at: string;
|
|
18371
|
+
valid_from: string | null;
|
|
18372
|
+
valid_until: string | null;
|
|
18373
|
+
};
|
|
18374
|
+
Insert: {
|
|
18375
|
+
created_at?: string;
|
|
18376
|
+
currency?: string;
|
|
18377
|
+
customer_id: string;
|
|
18378
|
+
discount_type: string;
|
|
18379
|
+
discount_value: number;
|
|
18380
|
+
id?: string;
|
|
18381
|
+
min_quantity?: number;
|
|
18382
|
+
notes?: string | null;
|
|
18383
|
+
product_category_id?: string | null;
|
|
18384
|
+
product_id?: string | null;
|
|
18385
|
+
updated_at?: string;
|
|
18386
|
+
valid_from?: string | null;
|
|
18387
|
+
valid_until?: string | null;
|
|
18388
|
+
};
|
|
18389
|
+
Update: {
|
|
18390
|
+
created_at?: string;
|
|
18391
|
+
currency?: string;
|
|
18392
|
+
customer_id?: string;
|
|
18393
|
+
discount_type?: string;
|
|
18394
|
+
discount_value?: number;
|
|
18395
|
+
id?: string;
|
|
18396
|
+
min_quantity?: number;
|
|
18397
|
+
notes?: string | null;
|
|
18398
|
+
product_category_id?: string | null;
|
|
18399
|
+
product_id?: string | null;
|
|
18400
|
+
updated_at?: string;
|
|
18401
|
+
valid_from?: string | null;
|
|
18402
|
+
valid_until?: string | null;
|
|
18403
|
+
};
|
|
18404
|
+
Relationships: [{
|
|
18405
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
18406
|
+
columns: ["customer_id"];
|
|
18407
|
+
isOneToOne: false;
|
|
18408
|
+
referencedRelation: "customers";
|
|
18409
|
+
referencedColumns: ["id"];
|
|
18410
|
+
}, {
|
|
18411
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
18412
|
+
columns: ["product_category_id"];
|
|
18413
|
+
isOneToOne: false;
|
|
18414
|
+
referencedRelation: "product_categories";
|
|
18415
|
+
referencedColumns: ["id"];
|
|
18416
|
+
}, {
|
|
18417
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
18418
|
+
columns: ["product_id"];
|
|
18419
|
+
isOneToOne: false;
|
|
18420
|
+
referencedRelation: "products";
|
|
18421
|
+
referencedColumns: ["id"];
|
|
18422
|
+
}];
|
|
18423
|
+
};
|
|
18424
|
+
locations: {
|
|
18425
|
+
Row: {
|
|
18426
|
+
created_at: string;
|
|
18427
|
+
id: string;
|
|
18428
|
+
name: string;
|
|
18429
|
+
sort_order: number;
|
|
18430
|
+
updated_at: string;
|
|
18431
|
+
};
|
|
18432
|
+
Insert: {
|
|
18433
|
+
created_at?: string;
|
|
18434
|
+
id?: string;
|
|
18435
|
+
name: string;
|
|
18436
|
+
sort_order?: number;
|
|
18437
|
+
updated_at?: string;
|
|
18438
|
+
};
|
|
18439
|
+
Update: {
|
|
18440
|
+
created_at?: string;
|
|
18441
|
+
id?: string;
|
|
18442
|
+
name?: string;
|
|
18443
|
+
sort_order?: number;
|
|
18444
|
+
updated_at?: string;
|
|
18445
|
+
};
|
|
18446
|
+
Relationships: [];
|
|
18447
|
+
};
|
|
18448
|
+
logistics_capacity_events: {
|
|
18449
|
+
Row: {
|
|
18450
|
+
available_carts: number;
|
|
18451
|
+
created_at: string;
|
|
18452
|
+
id: string;
|
|
18453
|
+
measures: import("../integrations/supabase/types").Json;
|
|
18454
|
+
note: string | null;
|
|
18455
|
+
outcome: string;
|
|
18456
|
+
required_carts: number;
|
|
18457
|
+
reserve_minutes: number;
|
|
18458
|
+
shortage_carts: number;
|
|
18459
|
+
status: string;
|
|
18460
|
+
user_id: string;
|
|
18461
|
+
};
|
|
18462
|
+
Insert: {
|
|
18463
|
+
available_carts?: number;
|
|
18464
|
+
created_at?: string;
|
|
18465
|
+
id?: string;
|
|
18466
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
18467
|
+
note?: string | null;
|
|
18468
|
+
outcome?: string;
|
|
18469
|
+
required_carts?: number;
|
|
18470
|
+
reserve_minutes?: number;
|
|
18471
|
+
shortage_carts?: number;
|
|
18472
|
+
status: string;
|
|
18473
|
+
user_id: string;
|
|
18474
|
+
};
|
|
18475
|
+
Update: {
|
|
18476
|
+
available_carts?: number;
|
|
18477
|
+
created_at?: string;
|
|
18478
|
+
id?: string;
|
|
18479
|
+
measures?: import("../integrations/supabase/types").Json;
|
|
18480
|
+
note?: string | null;
|
|
18481
|
+
outcome?: string;
|
|
18482
|
+
required_carts?: number;
|
|
18483
|
+
reserve_minutes?: number;
|
|
18484
|
+
shortage_carts?: number;
|
|
18485
|
+
status?: string;
|
|
18486
|
+
user_id?: string;
|
|
18487
|
+
};
|
|
18488
|
+
Relationships: [];
|
|
18489
|
+
};
|
|
18490
|
+
logistics_capacity_settings: {
|
|
18491
|
+
Row: {
|
|
18492
|
+
created_at: string;
|
|
18493
|
+
settings: import("../integrations/supabase/types").Json;
|
|
18494
|
+
updated_at: string;
|
|
18495
|
+
user_id: string;
|
|
18496
|
+
};
|
|
18497
|
+
Insert: {
|
|
18498
|
+
created_at?: string;
|
|
18499
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
18500
|
+
updated_at?: string;
|
|
18501
|
+
user_id: string;
|
|
18502
|
+
};
|
|
18503
|
+
Update: {
|
|
18504
|
+
created_at?: string;
|
|
18505
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
18506
|
+
updated_at?: string;
|
|
18507
|
+
user_id?: string;
|
|
18508
|
+
};
|
|
18509
|
+
Relationships: [];
|
|
18510
|
+
};
|
|
18511
|
+
logistics_decisions: {
|
|
18512
|
+
Row: {
|
|
18513
|
+
created_at: string;
|
|
18514
|
+
explanation: string | null;
|
|
18515
|
+
id: string;
|
|
18516
|
+
input_snapshot: import("../integrations/supabase/types").Json;
|
|
18517
|
+
result: import("../integrations/supabase/types").Json;
|
|
18518
|
+
slot: string;
|
|
18519
|
+
strategy_id: string | null;
|
|
18520
|
+
subject_id: string;
|
|
18521
|
+
subject_type: string;
|
|
18522
|
+
user_id: string;
|
|
18523
|
+
};
|
|
18524
|
+
Insert: {
|
|
18525
|
+
created_at?: string;
|
|
18526
|
+
explanation?: string | null;
|
|
18527
|
+
id?: string;
|
|
18528
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
18529
|
+
result?: import("../integrations/supabase/types").Json;
|
|
18530
|
+
slot: string;
|
|
18531
|
+
strategy_id?: string | null;
|
|
18532
|
+
subject_id: string;
|
|
18533
|
+
subject_type: string;
|
|
18534
|
+
user_id: string;
|
|
18535
|
+
};
|
|
18536
|
+
Update: {
|
|
18537
|
+
created_at?: string;
|
|
18538
|
+
explanation?: string | null;
|
|
18539
|
+
id?: string;
|
|
18540
|
+
input_snapshot?: import("../integrations/supabase/types").Json;
|
|
18541
|
+
result?: import("../integrations/supabase/types").Json;
|
|
18542
|
+
slot?: string;
|
|
18543
|
+
strategy_id?: string | null;
|
|
18544
|
+
subject_id?: string;
|
|
18545
|
+
subject_type?: string;
|
|
18546
|
+
user_id?: string;
|
|
18547
|
+
};
|
|
18548
|
+
Relationships: [{
|
|
18549
|
+
foreignKeyName: "logistics_decisions_strategy_id_fkey";
|
|
18550
|
+
columns: ["strategy_id"];
|
|
18551
|
+
isOneToOne: false;
|
|
18552
|
+
referencedRelation: "logistics_strategies";
|
|
18553
|
+
referencedColumns: ["id"];
|
|
18554
|
+
}];
|
|
18555
|
+
};
|
|
18556
|
+
logistics_formulas: {
|
|
18557
|
+
Row: {
|
|
18558
|
+
created_at: string;
|
|
18559
|
+
expression: string;
|
|
18560
|
+
id: string;
|
|
18561
|
+
notes: string | null;
|
|
18562
|
+
slot: string;
|
|
18563
|
+
strategy_id: string;
|
|
18564
|
+
updated_at: string;
|
|
18565
|
+
user_id: string;
|
|
18566
|
+
version: number;
|
|
18567
|
+
};
|
|
18568
|
+
Insert: {
|
|
18569
|
+
created_at?: string;
|
|
18570
|
+
expression?: string;
|
|
18571
|
+
id?: string;
|
|
18572
|
+
notes?: string | null;
|
|
18573
|
+
slot: string;
|
|
18574
|
+
strategy_id: string;
|
|
18575
|
+
updated_at?: string;
|
|
18576
|
+
user_id: string;
|
|
18577
|
+
version?: number;
|
|
18578
|
+
};
|
|
18579
|
+
Update: {
|
|
18580
|
+
created_at?: string;
|
|
18581
|
+
expression?: string;
|
|
18582
|
+
id?: string;
|
|
18583
|
+
notes?: string | null;
|
|
18584
|
+
slot?: string;
|
|
18585
|
+
strategy_id?: string;
|
|
18586
|
+
updated_at?: string;
|
|
18587
|
+
user_id?: string;
|
|
18588
|
+
version?: number;
|
|
18589
|
+
};
|
|
18590
|
+
Relationships: [{
|
|
18591
|
+
foreignKeyName: "logistics_formulas_strategy_id_fkey";
|
|
18592
|
+
columns: ["strategy_id"];
|
|
18593
|
+
isOneToOne: false;
|
|
18594
|
+
referencedRelation: "logistics_strategies";
|
|
18595
|
+
referencedColumns: ["id"];
|
|
18596
|
+
}];
|
|
18597
|
+
};
|
|
18598
|
+
logistics_strategies: {
|
|
18599
|
+
Row: {
|
|
18600
|
+
color: string;
|
|
18601
|
+
created_at: string;
|
|
18602
|
+
description: string | null;
|
|
18603
|
+
id: string;
|
|
18604
|
+
is_active: boolean;
|
|
18605
|
+
name: string;
|
|
18606
|
+
priority: number;
|
|
18607
|
+
updated_at: string;
|
|
18608
|
+
updated_by: string | null;
|
|
18609
|
+
user_id: string;
|
|
18610
|
+
version: number;
|
|
18611
|
+
};
|
|
18612
|
+
Insert: {
|
|
18613
|
+
color?: string;
|
|
18614
|
+
created_at?: string;
|
|
18615
|
+
description?: string | null;
|
|
18616
|
+
id?: string;
|
|
18617
|
+
is_active?: boolean;
|
|
18618
|
+
name: string;
|
|
18619
|
+
priority?: number;
|
|
18620
|
+
updated_at?: string;
|
|
18621
|
+
updated_by?: string | null;
|
|
18622
|
+
user_id: string;
|
|
18623
|
+
version?: number;
|
|
18624
|
+
};
|
|
18625
|
+
Update: {
|
|
18626
|
+
color?: string;
|
|
18627
|
+
created_at?: string;
|
|
18628
|
+
description?: string | null;
|
|
18629
|
+
id?: string;
|
|
18630
|
+
is_active?: boolean;
|
|
18631
|
+
name?: string;
|
|
18632
|
+
priority?: number;
|
|
18633
|
+
updated_at?: string;
|
|
18634
|
+
updated_by?: string | null;
|
|
18635
|
+
user_id?: string;
|
|
18636
|
+
version?: number;
|
|
18637
|
+
};
|
|
18638
|
+
Relationships: [];
|
|
18639
|
+
};
|
|
18640
|
+
logistics_strategy_schedules: {
|
|
16841
18641
|
Row: {
|
|
18642
|
+
condition_expression: string | null;
|
|
16842
18643
|
created_at: string;
|
|
16843
|
-
|
|
16844
|
-
customer_id: string;
|
|
16845
|
-
discount_type: string;
|
|
16846
|
-
discount_value: number;
|
|
18644
|
+
end_date: string | null;
|
|
16847
18645
|
id: string;
|
|
16848
|
-
|
|
16849
|
-
|
|
16850
|
-
|
|
16851
|
-
|
|
18646
|
+
is_enabled: boolean;
|
|
18647
|
+
priority: number;
|
|
18648
|
+
rule_type: string;
|
|
18649
|
+
start_date: string | null;
|
|
18650
|
+
strategy_id: string;
|
|
16852
18651
|
updated_at: string;
|
|
16853
|
-
|
|
16854
|
-
valid_until: string | null;
|
|
18652
|
+
user_id: string;
|
|
16855
18653
|
};
|
|
16856
18654
|
Insert: {
|
|
18655
|
+
condition_expression?: string | null;
|
|
16857
18656
|
created_at?: string;
|
|
16858
|
-
|
|
16859
|
-
customer_id: string;
|
|
16860
|
-
discount_type: string;
|
|
16861
|
-
discount_value: number;
|
|
18657
|
+
end_date?: string | null;
|
|
16862
18658
|
id?: string;
|
|
16863
|
-
|
|
16864
|
-
|
|
16865
|
-
|
|
16866
|
-
|
|
18659
|
+
is_enabled?: boolean;
|
|
18660
|
+
priority?: number;
|
|
18661
|
+
rule_type: string;
|
|
18662
|
+
start_date?: string | null;
|
|
18663
|
+
strategy_id: string;
|
|
16867
18664
|
updated_at?: string;
|
|
16868
|
-
|
|
16869
|
-
valid_until?: string | null;
|
|
18665
|
+
user_id: string;
|
|
16870
18666
|
};
|
|
16871
18667
|
Update: {
|
|
18668
|
+
condition_expression?: string | null;
|
|
16872
18669
|
created_at?: string;
|
|
16873
|
-
|
|
16874
|
-
customer_id?: string;
|
|
16875
|
-
discount_type?: string;
|
|
16876
|
-
discount_value?: number;
|
|
18670
|
+
end_date?: string | null;
|
|
16877
18671
|
id?: string;
|
|
16878
|
-
|
|
16879
|
-
|
|
16880
|
-
|
|
16881
|
-
|
|
18672
|
+
is_enabled?: boolean;
|
|
18673
|
+
priority?: number;
|
|
18674
|
+
rule_type?: string;
|
|
18675
|
+
start_date?: string | null;
|
|
18676
|
+
strategy_id?: string;
|
|
16882
18677
|
updated_at?: string;
|
|
16883
|
-
|
|
16884
|
-
valid_until?: string | null;
|
|
18678
|
+
user_id?: string;
|
|
16885
18679
|
};
|
|
16886
18680
|
Relationships: [{
|
|
16887
|
-
foreignKeyName: "
|
|
16888
|
-
columns: ["
|
|
16889
|
-
isOneToOne: false;
|
|
16890
|
-
referencedRelation: "customers";
|
|
16891
|
-
referencedColumns: ["id"];
|
|
16892
|
-
}, {
|
|
16893
|
-
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
16894
|
-
columns: ["product_category_id"];
|
|
16895
|
-
isOneToOne: false;
|
|
16896
|
-
referencedRelation: "product_categories";
|
|
16897
|
-
referencedColumns: ["id"];
|
|
16898
|
-
}, {
|
|
16899
|
-
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
16900
|
-
columns: ["product_id"];
|
|
18681
|
+
foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
|
|
18682
|
+
columns: ["strategy_id"];
|
|
16901
18683
|
isOneToOne: false;
|
|
16902
|
-
referencedRelation: "
|
|
18684
|
+
referencedRelation: "logistics_strategies";
|
|
16903
18685
|
referencedColumns: ["id"];
|
|
16904
18686
|
}];
|
|
16905
18687
|
};
|
|
16906
|
-
|
|
18688
|
+
logistics_variables: {
|
|
16907
18689
|
Row: {
|
|
16908
18690
|
created_at: string;
|
|
18691
|
+
default_value: string | null;
|
|
18692
|
+
description: string | null;
|
|
16909
18693
|
id: string;
|
|
16910
|
-
|
|
16911
|
-
|
|
18694
|
+
is_builtin: boolean;
|
|
18695
|
+
key: string;
|
|
18696
|
+
label: string;
|
|
16912
18697
|
updated_at: string;
|
|
18698
|
+
user_id: string;
|
|
18699
|
+
value_type: string;
|
|
16913
18700
|
};
|
|
16914
18701
|
Insert: {
|
|
16915
18702
|
created_at?: string;
|
|
18703
|
+
default_value?: string | null;
|
|
18704
|
+
description?: string | null;
|
|
16916
18705
|
id?: string;
|
|
16917
|
-
|
|
16918
|
-
|
|
18706
|
+
is_builtin?: boolean;
|
|
18707
|
+
key: string;
|
|
18708
|
+
label: string;
|
|
16919
18709
|
updated_at?: string;
|
|
18710
|
+
user_id: string;
|
|
18711
|
+
value_type: string;
|
|
16920
18712
|
};
|
|
16921
18713
|
Update: {
|
|
16922
18714
|
created_at?: string;
|
|
18715
|
+
default_value?: string | null;
|
|
18716
|
+
description?: string | null;
|
|
16923
18717
|
id?: string;
|
|
16924
|
-
|
|
16925
|
-
|
|
18718
|
+
is_builtin?: boolean;
|
|
18719
|
+
key?: string;
|
|
18720
|
+
label?: string;
|
|
16926
18721
|
updated_at?: string;
|
|
18722
|
+
user_id?: string;
|
|
18723
|
+
value_type?: string;
|
|
16927
18724
|
};
|
|
16928
18725
|
Relationships: [];
|
|
16929
18726
|
};
|
|
@@ -17322,39 +19119,60 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
17322
19119
|
};
|
|
17323
19120
|
manufacture_products: {
|
|
17324
19121
|
Row: {
|
|
19122
|
+
aantal_te_produceren: number;
|
|
17325
19123
|
created_at: string;
|
|
17326
19124
|
description: string | null;
|
|
17327
19125
|
id: string;
|
|
17328
19126
|
is_active: boolean;
|
|
19127
|
+
location_id: string | null;
|
|
17329
19128
|
name: string;
|
|
19129
|
+
partij_nummer: string | null;
|
|
19130
|
+
photos: import("../integrations/supabase/types").Json;
|
|
17330
19131
|
produced_stock: number;
|
|
17331
19132
|
product_code: string;
|
|
17332
19133
|
tenant_id: string;
|
|
19134
|
+
unit: string;
|
|
17333
19135
|
updated_at: string;
|
|
17334
19136
|
};
|
|
17335
19137
|
Insert: {
|
|
19138
|
+
aantal_te_produceren?: number;
|
|
17336
19139
|
created_at?: string;
|
|
17337
19140
|
description?: string | null;
|
|
17338
19141
|
id?: string;
|
|
17339
19142
|
is_active?: boolean;
|
|
19143
|
+
location_id?: string | null;
|
|
17340
19144
|
name: string;
|
|
19145
|
+
partij_nummer?: string | null;
|
|
19146
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
17341
19147
|
produced_stock?: number;
|
|
17342
19148
|
product_code: string;
|
|
17343
19149
|
tenant_id: string;
|
|
19150
|
+
unit?: string;
|
|
17344
19151
|
updated_at?: string;
|
|
17345
19152
|
};
|
|
17346
19153
|
Update: {
|
|
19154
|
+
aantal_te_produceren?: number;
|
|
17347
19155
|
created_at?: string;
|
|
17348
19156
|
description?: string | null;
|
|
17349
19157
|
id?: string;
|
|
17350
19158
|
is_active?: boolean;
|
|
19159
|
+
location_id?: string | null;
|
|
17351
19160
|
name?: string;
|
|
19161
|
+
partij_nummer?: string | null;
|
|
19162
|
+
photos?: import("../integrations/supabase/types").Json;
|
|
17352
19163
|
produced_stock?: number;
|
|
17353
19164
|
product_code?: string;
|
|
17354
19165
|
tenant_id?: string;
|
|
19166
|
+
unit?: string;
|
|
17355
19167
|
updated_at?: string;
|
|
17356
19168
|
};
|
|
17357
|
-
Relationships: [
|
|
19169
|
+
Relationships: [{
|
|
19170
|
+
foreignKeyName: "manufacture_products_location_id_fkey";
|
|
19171
|
+
columns: ["location_id"];
|
|
19172
|
+
isOneToOne: false;
|
|
19173
|
+
referencedRelation: "locations";
|
|
19174
|
+
referencedColumns: ["id"];
|
|
19175
|
+
}];
|
|
17358
19176
|
};
|
|
17359
19177
|
monteurs: {
|
|
17360
19178
|
Row: {
|
|
@@ -18085,6 +19903,42 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18085
19903
|
};
|
|
18086
19904
|
Relationships: [];
|
|
18087
19905
|
};
|
|
19906
|
+
order_buffers: {
|
|
19907
|
+
Row: {
|
|
19908
|
+
buffer_key: string;
|
|
19909
|
+
created_at: string;
|
|
19910
|
+
customer_id: string | null;
|
|
19911
|
+
grouping_mode: string;
|
|
19912
|
+
id: string;
|
|
19913
|
+
pickup_date: string | null;
|
|
19914
|
+
pickup_location: string | null;
|
|
19915
|
+
plan_locked_at: string | null;
|
|
19916
|
+
updated_at: string;
|
|
19917
|
+
};
|
|
19918
|
+
Insert: {
|
|
19919
|
+
buffer_key: string;
|
|
19920
|
+
created_at?: string;
|
|
19921
|
+
customer_id?: string | null;
|
|
19922
|
+
grouping_mode: string;
|
|
19923
|
+
id?: string;
|
|
19924
|
+
pickup_date?: string | null;
|
|
19925
|
+
pickup_location?: string | null;
|
|
19926
|
+
plan_locked_at?: string | null;
|
|
19927
|
+
updated_at?: string;
|
|
19928
|
+
};
|
|
19929
|
+
Update: {
|
|
19930
|
+
buffer_key?: string;
|
|
19931
|
+
created_at?: string;
|
|
19932
|
+
customer_id?: string | null;
|
|
19933
|
+
grouping_mode?: string;
|
|
19934
|
+
id?: string;
|
|
19935
|
+
pickup_date?: string | null;
|
|
19936
|
+
pickup_location?: string | null;
|
|
19937
|
+
plan_locked_at?: string | null;
|
|
19938
|
+
updated_at?: string;
|
|
19939
|
+
};
|
|
19940
|
+
Relationships: [];
|
|
19941
|
+
};
|
|
18088
19942
|
order_cart_items: {
|
|
18089
19943
|
Row: {
|
|
18090
19944
|
cart_id: string;
|
|
@@ -18151,6 +20005,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18151
20005
|
order_carts: {
|
|
18152
20006
|
Row: {
|
|
18153
20007
|
algorithm_version: number;
|
|
20008
|
+
buffer_id: string | null;
|
|
18154
20009
|
cart_number: number;
|
|
18155
20010
|
created_at: string;
|
|
18156
20011
|
id: string;
|
|
@@ -18158,13 +20013,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18158
20013
|
is_complete: boolean;
|
|
18159
20014
|
notes: string | null;
|
|
18160
20015
|
occupancy_pct: number;
|
|
18161
|
-
order_id: string;
|
|
20016
|
+
order_id: string | null;
|
|
18162
20017
|
source: string;
|
|
18163
20018
|
total_layers_used: number;
|
|
18164
20019
|
updated_at: string;
|
|
18165
20020
|
};
|
|
18166
20021
|
Insert: {
|
|
18167
20022
|
algorithm_version?: number;
|
|
20023
|
+
buffer_id?: string | null;
|
|
18168
20024
|
cart_number: number;
|
|
18169
20025
|
created_at?: string;
|
|
18170
20026
|
id?: string;
|
|
@@ -18172,13 +20028,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18172
20028
|
is_complete?: boolean;
|
|
18173
20029
|
notes?: string | null;
|
|
18174
20030
|
occupancy_pct?: number;
|
|
18175
|
-
order_id
|
|
20031
|
+
order_id?: string | null;
|
|
18176
20032
|
source?: string;
|
|
18177
20033
|
total_layers_used?: number;
|
|
18178
20034
|
updated_at?: string;
|
|
18179
20035
|
};
|
|
18180
20036
|
Update: {
|
|
18181
20037
|
algorithm_version?: number;
|
|
20038
|
+
buffer_id?: string | null;
|
|
18182
20039
|
cart_number?: number;
|
|
18183
20040
|
created_at?: string;
|
|
18184
20041
|
id?: string;
|
|
@@ -18186,12 +20043,18 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18186
20043
|
is_complete?: boolean;
|
|
18187
20044
|
notes?: string | null;
|
|
18188
20045
|
occupancy_pct?: number;
|
|
18189
|
-
order_id?: string;
|
|
20046
|
+
order_id?: string | null;
|
|
18190
20047
|
source?: string;
|
|
18191
20048
|
total_layers_used?: number;
|
|
18192
20049
|
updated_at?: string;
|
|
18193
20050
|
};
|
|
18194
20051
|
Relationships: [{
|
|
20052
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
20053
|
+
columns: ["buffer_id"];
|
|
20054
|
+
isOneToOne: false;
|
|
20055
|
+
referencedRelation: "order_buffers";
|
|
20056
|
+
referencedColumns: ["id"];
|
|
20057
|
+
}, {
|
|
18195
20058
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
18196
20059
|
columns: ["order_id"];
|
|
18197
20060
|
isOneToOne: false;
|
|
@@ -18328,15 +20191,117 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18328
20191
|
};
|
|
18329
20192
|
Relationships: [];
|
|
18330
20193
|
};
|
|
20194
|
+
order_shipment_items: {
|
|
20195
|
+
Row: {
|
|
20196
|
+
created_at: string;
|
|
20197
|
+
id: string;
|
|
20198
|
+
order_item_id: string;
|
|
20199
|
+
product_id: string | null;
|
|
20200
|
+
product_name: string;
|
|
20201
|
+
quantity: number;
|
|
20202
|
+
shipment_id: string;
|
|
20203
|
+
updated_at: string;
|
|
20204
|
+
};
|
|
20205
|
+
Insert: {
|
|
20206
|
+
created_at?: string;
|
|
20207
|
+
id?: string;
|
|
20208
|
+
order_item_id: string;
|
|
20209
|
+
product_id?: string | null;
|
|
20210
|
+
product_name: string;
|
|
20211
|
+
quantity: number;
|
|
20212
|
+
shipment_id: string;
|
|
20213
|
+
updated_at?: string;
|
|
20214
|
+
};
|
|
20215
|
+
Update: {
|
|
20216
|
+
created_at?: string;
|
|
20217
|
+
id?: string;
|
|
20218
|
+
order_item_id?: string;
|
|
20219
|
+
product_id?: string | null;
|
|
20220
|
+
product_name?: string;
|
|
20221
|
+
quantity?: number;
|
|
20222
|
+
shipment_id?: string;
|
|
20223
|
+
updated_at?: string;
|
|
20224
|
+
};
|
|
20225
|
+
Relationships: [{
|
|
20226
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
20227
|
+
columns: ["order_item_id"];
|
|
20228
|
+
isOneToOne: false;
|
|
20229
|
+
referencedRelation: "order_items";
|
|
20230
|
+
referencedColumns: ["id"];
|
|
20231
|
+
}, {
|
|
20232
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
20233
|
+
columns: ["shipment_id"];
|
|
20234
|
+
isOneToOne: false;
|
|
20235
|
+
referencedRelation: "order_shipments";
|
|
20236
|
+
referencedColumns: ["id"];
|
|
20237
|
+
}];
|
|
20238
|
+
};
|
|
20239
|
+
order_shipments: {
|
|
20240
|
+
Row: {
|
|
20241
|
+
carrier_id: string | null;
|
|
20242
|
+
created_at: string;
|
|
20243
|
+
delivery_date: string | null;
|
|
20244
|
+
delivery_location_id: string | null;
|
|
20245
|
+
id: string;
|
|
20246
|
+
notes: string | null;
|
|
20247
|
+
order_id: string;
|
|
20248
|
+
shipment_number: number;
|
|
20249
|
+
shipped_at: string | null;
|
|
20250
|
+
status: string;
|
|
20251
|
+
updated_at: string;
|
|
20252
|
+
};
|
|
20253
|
+
Insert: {
|
|
20254
|
+
carrier_id?: string | null;
|
|
20255
|
+
created_at?: string;
|
|
20256
|
+
delivery_date?: string | null;
|
|
20257
|
+
delivery_location_id?: string | null;
|
|
20258
|
+
id?: string;
|
|
20259
|
+
notes?: string | null;
|
|
20260
|
+
order_id: string;
|
|
20261
|
+
shipment_number: number;
|
|
20262
|
+
shipped_at?: string | null;
|
|
20263
|
+
status?: string;
|
|
20264
|
+
updated_at?: string;
|
|
20265
|
+
};
|
|
20266
|
+
Update: {
|
|
20267
|
+
carrier_id?: string | null;
|
|
20268
|
+
created_at?: string;
|
|
20269
|
+
delivery_date?: string | null;
|
|
20270
|
+
delivery_location_id?: string | null;
|
|
20271
|
+
id?: string;
|
|
20272
|
+
notes?: string | null;
|
|
20273
|
+
order_id?: string;
|
|
20274
|
+
shipment_number?: number;
|
|
20275
|
+
shipped_at?: string | null;
|
|
20276
|
+
status?: string;
|
|
20277
|
+
updated_at?: string;
|
|
20278
|
+
};
|
|
20279
|
+
Relationships: [{
|
|
20280
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
20281
|
+
columns: ["carrier_id"];
|
|
20282
|
+
isOneToOne: false;
|
|
20283
|
+
referencedRelation: "carriers";
|
|
20284
|
+
referencedColumns: ["id"];
|
|
20285
|
+
}, {
|
|
20286
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
20287
|
+
columns: ["order_id"];
|
|
20288
|
+
isOneToOne: false;
|
|
20289
|
+
referencedRelation: "orders";
|
|
20290
|
+
referencedColumns: ["id"];
|
|
20291
|
+
}];
|
|
20292
|
+
};
|
|
18331
20293
|
orders: {
|
|
18332
20294
|
Row: {
|
|
20295
|
+
buffer_id: string | null;
|
|
18333
20296
|
created_at: string;
|
|
18334
20297
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
18335
20298
|
customer_id: string | null;
|
|
18336
20299
|
customer_name: string;
|
|
18337
20300
|
deleted_at: string | null;
|
|
18338
|
-
delivery_date: string;
|
|
20301
|
+
delivery_date: string | null;
|
|
20302
|
+
floriday_sales_order_id: string | null;
|
|
18339
20303
|
id: string;
|
|
20304
|
+
is_reservation: boolean;
|
|
18340
20305
|
notes: string | null;
|
|
18341
20306
|
order_date: string;
|
|
18342
20307
|
order_number: string;
|
|
@@ -18348,13 +20313,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18348
20313
|
updated_at: string;
|
|
18349
20314
|
};
|
|
18350
20315
|
Insert: {
|
|
20316
|
+
buffer_id?: string | null;
|
|
18351
20317
|
created_at?: string;
|
|
18352
20318
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
18353
20319
|
customer_id?: string | null;
|
|
18354
20320
|
customer_name?: string;
|
|
18355
20321
|
deleted_at?: string | null;
|
|
18356
|
-
delivery_date
|
|
20322
|
+
delivery_date?: string | null;
|
|
20323
|
+
floriday_sales_order_id?: string | null;
|
|
18357
20324
|
id?: string;
|
|
20325
|
+
is_reservation?: boolean;
|
|
18358
20326
|
notes?: string | null;
|
|
18359
20327
|
order_date?: string;
|
|
18360
20328
|
order_number: string;
|
|
@@ -18366,13 +20334,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18366
20334
|
updated_at?: string;
|
|
18367
20335
|
};
|
|
18368
20336
|
Update: {
|
|
20337
|
+
buffer_id?: string | null;
|
|
18369
20338
|
created_at?: string;
|
|
18370
20339
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
18371
20340
|
customer_id?: string | null;
|
|
18372
20341
|
customer_name?: string;
|
|
18373
20342
|
deleted_at?: string | null;
|
|
18374
|
-
delivery_date?: string;
|
|
20343
|
+
delivery_date?: string | null;
|
|
20344
|
+
floriday_sales_order_id?: string | null;
|
|
18375
20345
|
id?: string;
|
|
20346
|
+
is_reservation?: boolean;
|
|
18376
20347
|
notes?: string | null;
|
|
18377
20348
|
order_date?: string;
|
|
18378
20349
|
order_number?: string;
|
|
@@ -18384,6 +20355,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18384
20355
|
updated_at?: string;
|
|
18385
20356
|
};
|
|
18386
20357
|
Relationships: [{
|
|
20358
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
20359
|
+
columns: ["buffer_id"];
|
|
20360
|
+
isOneToOne: false;
|
|
20361
|
+
referencedRelation: "order_buffers";
|
|
20362
|
+
referencedColumns: ["id"];
|
|
20363
|
+
}, {
|
|
18387
20364
|
foreignKeyName: "orders_customer_id_fkey";
|
|
18388
20365
|
columns: ["customer_id"];
|
|
18389
20366
|
isOneToOne: false;
|
|
@@ -18514,6 +20491,66 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18514
20491
|
};
|
|
18515
20492
|
Relationships: [];
|
|
18516
20493
|
};
|
|
20494
|
+
product_bom_items: {
|
|
20495
|
+
Row: {
|
|
20496
|
+
component_product_id: string | null;
|
|
20497
|
+
component_trade_item_floriday_id: string | null;
|
|
20498
|
+
created_at: string;
|
|
20499
|
+
id: string;
|
|
20500
|
+
notes: string | null;
|
|
20501
|
+
packing_configuration_id: string | null;
|
|
20502
|
+
parent_product_id: string | null;
|
|
20503
|
+
parent_trade_item_floriday_id: string | null;
|
|
20504
|
+
quantity: number;
|
|
20505
|
+
sort_order: number;
|
|
20506
|
+
tenant_id: string;
|
|
20507
|
+
unit: string;
|
|
20508
|
+
updated_at: string;
|
|
20509
|
+
};
|
|
20510
|
+
Insert: {
|
|
20511
|
+
component_product_id?: string | null;
|
|
20512
|
+
component_trade_item_floriday_id?: string | null;
|
|
20513
|
+
created_at?: string;
|
|
20514
|
+
id?: string;
|
|
20515
|
+
notes?: string | null;
|
|
20516
|
+
packing_configuration_id?: string | null;
|
|
20517
|
+
parent_product_id?: string | null;
|
|
20518
|
+
parent_trade_item_floriday_id?: string | null;
|
|
20519
|
+
quantity?: number;
|
|
20520
|
+
sort_order?: number;
|
|
20521
|
+
tenant_id: string;
|
|
20522
|
+
unit?: string;
|
|
20523
|
+
updated_at?: string;
|
|
20524
|
+
};
|
|
20525
|
+
Update: {
|
|
20526
|
+
component_product_id?: string | null;
|
|
20527
|
+
component_trade_item_floriday_id?: string | null;
|
|
20528
|
+
created_at?: string;
|
|
20529
|
+
id?: string;
|
|
20530
|
+
notes?: string | null;
|
|
20531
|
+
packing_configuration_id?: string | null;
|
|
20532
|
+
parent_product_id?: string | null;
|
|
20533
|
+
parent_trade_item_floriday_id?: string | null;
|
|
20534
|
+
quantity?: number;
|
|
20535
|
+
sort_order?: number;
|
|
20536
|
+
tenant_id?: string;
|
|
20537
|
+
unit?: string;
|
|
20538
|
+
updated_at?: string;
|
|
20539
|
+
};
|
|
20540
|
+
Relationships: [{
|
|
20541
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
20542
|
+
columns: ["component_product_id"];
|
|
20543
|
+
isOneToOne: false;
|
|
20544
|
+
referencedRelation: "products";
|
|
20545
|
+
referencedColumns: ["id"];
|
|
20546
|
+
}, {
|
|
20547
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
20548
|
+
columns: ["parent_product_id"];
|
|
20549
|
+
isOneToOne: false;
|
|
20550
|
+
referencedRelation: "products";
|
|
20551
|
+
referencedColumns: ["id"];
|
|
20552
|
+
}];
|
|
20553
|
+
};
|
|
18517
20554
|
product_categories: {
|
|
18518
20555
|
Row: {
|
|
18519
20556
|
color: string;
|
|
@@ -18619,6 +20656,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18619
20656
|
id: string;
|
|
18620
20657
|
product_group_id: string;
|
|
18621
20658
|
quantity: number;
|
|
20659
|
+
sort_order: number;
|
|
18622
20660
|
trade_item_id: string;
|
|
18623
20661
|
};
|
|
18624
20662
|
Insert: {
|
|
@@ -18626,6 +20664,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18626
20664
|
id?: string;
|
|
18627
20665
|
product_group_id: string;
|
|
18628
20666
|
quantity?: number;
|
|
20667
|
+
sort_order?: number;
|
|
18629
20668
|
trade_item_id: string;
|
|
18630
20669
|
};
|
|
18631
20670
|
Update: {
|
|
@@ -18633,6 +20672,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18633
20672
|
id?: string;
|
|
18634
20673
|
product_group_id?: string;
|
|
18635
20674
|
quantity?: number;
|
|
20675
|
+
sort_order?: number;
|
|
18636
20676
|
trade_item_id?: string;
|
|
18637
20677
|
};
|
|
18638
20678
|
Relationships: [{
|
|
@@ -18647,6 +20687,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18647
20687
|
Row: {
|
|
18648
20688
|
created_at: string;
|
|
18649
20689
|
description: string | null;
|
|
20690
|
+
head_product_id: string | null;
|
|
20691
|
+
head_trade_item_floriday_id: string | null;
|
|
18650
20692
|
id: string;
|
|
18651
20693
|
is_active: boolean;
|
|
18652
20694
|
name: string;
|
|
@@ -18656,6 +20698,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18656
20698
|
Insert: {
|
|
18657
20699
|
created_at?: string;
|
|
18658
20700
|
description?: string | null;
|
|
20701
|
+
head_product_id?: string | null;
|
|
20702
|
+
head_trade_item_floriday_id?: string | null;
|
|
18659
20703
|
id?: string;
|
|
18660
20704
|
is_active?: boolean;
|
|
18661
20705
|
name: string;
|
|
@@ -18665,24 +20709,136 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18665
20709
|
Update: {
|
|
18666
20710
|
created_at?: string;
|
|
18667
20711
|
description?: string | null;
|
|
20712
|
+
head_product_id?: string | null;
|
|
20713
|
+
head_trade_item_floriday_id?: string | null;
|
|
18668
20714
|
id?: string;
|
|
18669
20715
|
is_active?: boolean;
|
|
18670
20716
|
name?: string;
|
|
18671
20717
|
tenant_id?: string;
|
|
18672
20718
|
updated_at?: string;
|
|
18673
20719
|
};
|
|
20720
|
+
Relationships: [{
|
|
20721
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
20722
|
+
columns: ["head_product_id"];
|
|
20723
|
+
isOneToOne: false;
|
|
20724
|
+
referencedRelation: "products";
|
|
20725
|
+
referencedColumns: ["id"];
|
|
20726
|
+
}];
|
|
20727
|
+
};
|
|
20728
|
+
product_load_settings: {
|
|
20729
|
+
Row: {
|
|
20730
|
+
created_at: string;
|
|
20731
|
+
id: string;
|
|
20732
|
+
is_package: boolean;
|
|
20733
|
+
label: string | null;
|
|
20734
|
+
layers_per_load_carrier: number | null;
|
|
20735
|
+
load_carrier: string | null;
|
|
20736
|
+
package_id: string | null;
|
|
20737
|
+
package_label: string | null;
|
|
20738
|
+
packages_per_layer: number | null;
|
|
20739
|
+
packing_configuration_id: string;
|
|
20740
|
+
product_id: string | null;
|
|
20741
|
+
tenant_id: string;
|
|
20742
|
+
trade_item_floriday_id: string | null;
|
|
20743
|
+
units_per_package: number | null;
|
|
20744
|
+
updated_at: string;
|
|
20745
|
+
};
|
|
20746
|
+
Insert: {
|
|
20747
|
+
created_at?: string;
|
|
20748
|
+
id?: string;
|
|
20749
|
+
is_package?: boolean;
|
|
20750
|
+
label?: string | null;
|
|
20751
|
+
layers_per_load_carrier?: number | null;
|
|
20752
|
+
load_carrier?: string | null;
|
|
20753
|
+
package_id?: string | null;
|
|
20754
|
+
package_label?: string | null;
|
|
20755
|
+
packages_per_layer?: number | null;
|
|
20756
|
+
packing_configuration_id?: string;
|
|
20757
|
+
product_id?: string | null;
|
|
20758
|
+
tenant_id: string;
|
|
20759
|
+
trade_item_floriday_id?: string | null;
|
|
20760
|
+
units_per_package?: number | null;
|
|
20761
|
+
updated_at?: string;
|
|
20762
|
+
};
|
|
20763
|
+
Update: {
|
|
20764
|
+
created_at?: string;
|
|
20765
|
+
id?: string;
|
|
20766
|
+
is_package?: boolean;
|
|
20767
|
+
label?: string | null;
|
|
20768
|
+
layers_per_load_carrier?: number | null;
|
|
20769
|
+
load_carrier?: string | null;
|
|
20770
|
+
package_id?: string | null;
|
|
20771
|
+
package_label?: string | null;
|
|
20772
|
+
packages_per_layer?: number | null;
|
|
20773
|
+
packing_configuration_id?: string;
|
|
20774
|
+
product_id?: string | null;
|
|
20775
|
+
tenant_id?: string;
|
|
20776
|
+
trade_item_floriday_id?: string | null;
|
|
20777
|
+
units_per_package?: number | null;
|
|
20778
|
+
updated_at?: string;
|
|
20779
|
+
};
|
|
20780
|
+
Relationships: [{
|
|
20781
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
20782
|
+
columns: ["package_id"];
|
|
20783
|
+
isOneToOne: false;
|
|
20784
|
+
referencedRelation: "packages";
|
|
20785
|
+
referencedColumns: ["id"];
|
|
20786
|
+
}, {
|
|
20787
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
20788
|
+
columns: ["product_id"];
|
|
20789
|
+
isOneToOne: false;
|
|
20790
|
+
referencedRelation: "products";
|
|
20791
|
+
referencedColumns: ["id"];
|
|
20792
|
+
}];
|
|
20793
|
+
};
|
|
20794
|
+
product_merge_log: {
|
|
20795
|
+
Row: {
|
|
20796
|
+
canonical_product_id: string | null;
|
|
20797
|
+
id: string;
|
|
20798
|
+
merged_at: string;
|
|
20799
|
+
merged_from_id: string;
|
|
20800
|
+
notes: string | null;
|
|
20801
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
20802
|
+
source_table: string;
|
|
20803
|
+
status: string;
|
|
20804
|
+
};
|
|
20805
|
+
Insert: {
|
|
20806
|
+
canonical_product_id?: string | null;
|
|
20807
|
+
id?: string;
|
|
20808
|
+
merged_at?: string;
|
|
20809
|
+
merged_from_id: string;
|
|
20810
|
+
notes?: string | null;
|
|
20811
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
20812
|
+
source_table: string;
|
|
20813
|
+
status?: string;
|
|
20814
|
+
};
|
|
20815
|
+
Update: {
|
|
20816
|
+
canonical_product_id?: string | null;
|
|
20817
|
+
id?: string;
|
|
20818
|
+
merged_at?: string;
|
|
20819
|
+
merged_from_id?: string;
|
|
20820
|
+
notes?: string | null;
|
|
20821
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
20822
|
+
source_table?: string;
|
|
20823
|
+
status?: string;
|
|
20824
|
+
};
|
|
18674
20825
|
Relationships: [];
|
|
18675
20826
|
};
|
|
18676
20827
|
products: {
|
|
18677
20828
|
Row: {
|
|
20829
|
+
article_number: string | null;
|
|
18678
20830
|
barcode: string | null;
|
|
18679
20831
|
batch: string;
|
|
18680
20832
|
crates_per_layer: number;
|
|
18681
20833
|
created_at: string;
|
|
18682
20834
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
20835
|
+
floriday_active: boolean;
|
|
20836
|
+
floriday_payload: import("../integrations/supabase/types").Json;
|
|
20837
|
+
floriday_trade_item_id: string | null;
|
|
18683
20838
|
id: string;
|
|
18684
20839
|
image_url: string | null;
|
|
18685
20840
|
incoming_quantity: number;
|
|
20841
|
+
is_layer: boolean;
|
|
18686
20842
|
layers_per_cart: number;
|
|
18687
20843
|
location: string;
|
|
18688
20844
|
min_quantity: number;
|
|
@@ -18695,17 +20851,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18695
20851
|
trade_item_key: string | null;
|
|
18696
20852
|
unit: string;
|
|
18697
20853
|
updated_at: string;
|
|
20854
|
+
vat_code: string | null;
|
|
20855
|
+
vat_rate: number | null;
|
|
18698
20856
|
weight: string | null;
|
|
18699
20857
|
};
|
|
18700
20858
|
Insert: {
|
|
20859
|
+
article_number?: string | null;
|
|
18701
20860
|
barcode?: string | null;
|
|
18702
20861
|
batch: string;
|
|
18703
20862
|
crates_per_layer?: number;
|
|
18704
20863
|
created_at?: string;
|
|
18705
20864
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
20865
|
+
floriday_active?: boolean;
|
|
20866
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
20867
|
+
floriday_trade_item_id?: string | null;
|
|
18706
20868
|
id?: string;
|
|
18707
20869
|
image_url?: string | null;
|
|
18708
20870
|
incoming_quantity?: number;
|
|
20871
|
+
is_layer?: boolean;
|
|
18709
20872
|
layers_per_cart?: number;
|
|
18710
20873
|
location: string;
|
|
18711
20874
|
min_quantity?: number;
|
|
@@ -18718,17 +20881,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18718
20881
|
trade_item_key?: string | null;
|
|
18719
20882
|
unit?: string;
|
|
18720
20883
|
updated_at?: string;
|
|
20884
|
+
vat_code?: string | null;
|
|
20885
|
+
vat_rate?: number | null;
|
|
18721
20886
|
weight?: string | null;
|
|
18722
20887
|
};
|
|
18723
20888
|
Update: {
|
|
20889
|
+
article_number?: string | null;
|
|
18724
20890
|
barcode?: string | null;
|
|
18725
20891
|
batch?: string;
|
|
18726
20892
|
crates_per_layer?: number;
|
|
18727
20893
|
created_at?: string;
|
|
18728
20894
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
20895
|
+
floriday_active?: boolean;
|
|
20896
|
+
floriday_payload?: import("../integrations/supabase/types").Json;
|
|
20897
|
+
floriday_trade_item_id?: string | null;
|
|
18729
20898
|
id?: string;
|
|
18730
20899
|
image_url?: string | null;
|
|
18731
20900
|
incoming_quantity?: number;
|
|
20901
|
+
is_layer?: boolean;
|
|
18732
20902
|
layers_per_cart?: number;
|
|
18733
20903
|
location?: string;
|
|
18734
20904
|
min_quantity?: number;
|
|
@@ -18741,6 +20911,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
18741
20911
|
trade_item_key?: string | null;
|
|
18742
20912
|
unit?: string;
|
|
18743
20913
|
updated_at?: string;
|
|
20914
|
+
vat_code?: string | null;
|
|
20915
|
+
vat_rate?: number | null;
|
|
18744
20916
|
weight?: string | null;
|
|
18745
20917
|
};
|
|
18746
20918
|
Relationships: [];
|
|
@@ -19634,8 +21806,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19634
21806
|
order_id: string | null;
|
|
19635
21807
|
order_item_id: string | null;
|
|
19636
21808
|
order_source: string | null;
|
|
21809
|
+
parent_trade_item_key: string | null;
|
|
19637
21810
|
physical_after: number | null;
|
|
19638
21811
|
physical_before: number | null;
|
|
21812
|
+
production_batch_id: string | null;
|
|
19639
21813
|
qty_delta: number;
|
|
19640
21814
|
reason: string | null;
|
|
19641
21815
|
reserved_after: number | null;
|
|
@@ -19651,8 +21825,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19651
21825
|
order_id?: string | null;
|
|
19652
21826
|
order_item_id?: string | null;
|
|
19653
21827
|
order_source?: string | null;
|
|
21828
|
+
parent_trade_item_key?: string | null;
|
|
19654
21829
|
physical_after?: number | null;
|
|
19655
21830
|
physical_before?: number | null;
|
|
21831
|
+
production_batch_id?: string | null;
|
|
19656
21832
|
qty_delta: number;
|
|
19657
21833
|
reason?: string | null;
|
|
19658
21834
|
reserved_after?: number | null;
|
|
@@ -19668,8 +21844,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19668
21844
|
order_id?: string | null;
|
|
19669
21845
|
order_item_id?: string | null;
|
|
19670
21846
|
order_source?: string | null;
|
|
21847
|
+
parent_trade_item_key?: string | null;
|
|
19671
21848
|
physical_after?: number | null;
|
|
19672
21849
|
physical_before?: number | null;
|
|
21850
|
+
production_batch_id?: string | null;
|
|
19673
21851
|
qty_delta?: number;
|
|
19674
21852
|
reason?: string | null;
|
|
19675
21853
|
reserved_after?: number | null;
|
|
@@ -19975,6 +22153,48 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
19975
22153
|
};
|
|
19976
22154
|
Relationships: [];
|
|
19977
22155
|
};
|
|
22156
|
+
trade_item_prices: {
|
|
22157
|
+
Row: {
|
|
22158
|
+
created_at: string;
|
|
22159
|
+
currency: string;
|
|
22160
|
+
id: string;
|
|
22161
|
+
last_push_error: string | null;
|
|
22162
|
+
last_pushed_at: string | null;
|
|
22163
|
+
price_group_id: string | null;
|
|
22164
|
+
price_per_piece: number;
|
|
22165
|
+
supply_line_id: string | null;
|
|
22166
|
+
trade_item_key: string;
|
|
22167
|
+
updated_at: string;
|
|
22168
|
+
user_id: string;
|
|
22169
|
+
};
|
|
22170
|
+
Insert: {
|
|
22171
|
+
created_at?: string;
|
|
22172
|
+
currency?: string;
|
|
22173
|
+
id?: string;
|
|
22174
|
+
last_push_error?: string | null;
|
|
22175
|
+
last_pushed_at?: string | null;
|
|
22176
|
+
price_group_id?: string | null;
|
|
22177
|
+
price_per_piece: number;
|
|
22178
|
+
supply_line_id?: string | null;
|
|
22179
|
+
trade_item_key: string;
|
|
22180
|
+
updated_at?: string;
|
|
22181
|
+
user_id: string;
|
|
22182
|
+
};
|
|
22183
|
+
Update: {
|
|
22184
|
+
created_at?: string;
|
|
22185
|
+
currency?: string;
|
|
22186
|
+
id?: string;
|
|
22187
|
+
last_push_error?: string | null;
|
|
22188
|
+
last_pushed_at?: string | null;
|
|
22189
|
+
price_group_id?: string | null;
|
|
22190
|
+
price_per_piece?: number;
|
|
22191
|
+
supply_line_id?: string | null;
|
|
22192
|
+
trade_item_key?: string;
|
|
22193
|
+
updated_at?: string;
|
|
22194
|
+
user_id?: string;
|
|
22195
|
+
};
|
|
22196
|
+
Relationships: [];
|
|
22197
|
+
};
|
|
19978
22198
|
trade_item_stock: {
|
|
19979
22199
|
Row: {
|
|
19980
22200
|
connection_id: string;
|
|
@@ -20128,7 +22348,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
20128
22348
|
twinfield_connections: {
|
|
20129
22349
|
Row: {
|
|
20130
22350
|
access_token: string | null;
|
|
20131
|
-
client_id: string;
|
|
22351
|
+
client_id: string | null;
|
|
20132
22352
|
client_secret: string | null;
|
|
20133
22353
|
cluster_uri: string | null;
|
|
20134
22354
|
company_code: string | null;
|
|
@@ -20140,7 +22360,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
20140
22360
|
is_active: boolean;
|
|
20141
22361
|
label: string | null;
|
|
20142
22362
|
office_code: string | null;
|
|
20143
|
-
redirect_uri: string;
|
|
22363
|
+
redirect_uri: string | null;
|
|
20144
22364
|
refresh_token: string | null;
|
|
20145
22365
|
token_expires_at: string | null;
|
|
20146
22366
|
updated_at: string;
|
|
@@ -20148,7 +22368,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
20148
22368
|
};
|
|
20149
22369
|
Insert: {
|
|
20150
22370
|
access_token?: string | null;
|
|
20151
|
-
client_id
|
|
22371
|
+
client_id?: string | null;
|
|
20152
22372
|
client_secret?: string | null;
|
|
20153
22373
|
cluster_uri?: string | null;
|
|
20154
22374
|
company_code?: string | null;
|
|
@@ -20160,7 +22380,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
20160
22380
|
is_active?: boolean;
|
|
20161
22381
|
label?: string | null;
|
|
20162
22382
|
office_code?: string | null;
|
|
20163
|
-
redirect_uri
|
|
22383
|
+
redirect_uri?: string | null;
|
|
20164
22384
|
refresh_token?: string | null;
|
|
20165
22385
|
token_expires_at?: string | null;
|
|
20166
22386
|
updated_at?: string;
|
|
@@ -20168,7 +22388,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
20168
22388
|
};
|
|
20169
22389
|
Update: {
|
|
20170
22390
|
access_token?: string | null;
|
|
20171
|
-
client_id?: string;
|
|
22391
|
+
client_id?: string | null;
|
|
20172
22392
|
client_secret?: string | null;
|
|
20173
22393
|
cluster_uri?: string | null;
|
|
20174
22394
|
company_code?: string | null;
|
|
@@ -20180,7 +22400,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
20180
22400
|
is_active?: boolean;
|
|
20181
22401
|
label?: string | null;
|
|
20182
22402
|
office_code?: string | null;
|
|
20183
|
-
redirect_uri?: string;
|
|
22403
|
+
redirect_uri?: string | null;
|
|
20184
22404
|
refresh_token?: string | null;
|
|
20185
22405
|
token_expires_at?: string | null;
|
|
20186
22406
|
updated_at?: string;
|
|
@@ -21375,25 +23595,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
21375
23595
|
};
|
|
21376
23596
|
Relationships: [];
|
|
21377
23597
|
};
|
|
21378
|
-
floriday_customer_discounts: {
|
|
21379
|
-
Row: {
|
|
21380
|
-
base_price: number | null;
|
|
21381
|
-
buyer_organization_id: string | null;
|
|
21382
|
-
currency: string | null;
|
|
21383
|
-
discount_type: string | null;
|
|
21384
|
-
discount_value: number | null;
|
|
21385
|
-
min_quantity: number | null;
|
|
21386
|
-
net_price: number | null;
|
|
21387
|
-
product_group_id: string | null;
|
|
21388
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
21389
|
-
source: string | null;
|
|
21390
|
-
source_id: string | null;
|
|
21391
|
-
trade_item_id: string | null;
|
|
21392
|
-
valid_from: string | null;
|
|
21393
|
-
valid_until: string | null;
|
|
21394
|
-
};
|
|
21395
|
-
Relationships: [];
|
|
21396
|
-
};
|
|
21397
23598
|
local_customer_discounts: {
|
|
21398
23599
|
Row: {
|
|
21399
23600
|
base_price: number | null;
|
|
@@ -21697,6 +23898,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
21697
23898
|
};
|
|
21698
23899
|
Returns: number;
|
|
21699
23900
|
};
|
|
23901
|
+
_migrate_rewrite_stock_key: {
|
|
23902
|
+
Args: {
|
|
23903
|
+
_from_key: string;
|
|
23904
|
+
_to_key: string;
|
|
23905
|
+
};
|
|
23906
|
+
Returns: undefined;
|
|
23907
|
+
};
|
|
21700
23908
|
afh_city_code: {
|
|
21701
23909
|
Args: {
|
|
21702
23910
|
_city: string;
|
|
@@ -21780,6 +23988,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
21780
23988
|
processed_items: number;
|
|
21781
23989
|
}[];
|
|
21782
23990
|
};
|
|
23991
|
+
calculate_layer_stock: {
|
|
23992
|
+
Args: {
|
|
23993
|
+
p_product_id: string;
|
|
23994
|
+
};
|
|
23995
|
+
Returns: number;
|
|
23996
|
+
};
|
|
21783
23997
|
call_exact_route: {
|
|
21784
23998
|
Args: {
|
|
21785
23999
|
path: string;
|
|
@@ -21812,6 +24026,28 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
21812
24026
|
Args: never;
|
|
21813
24027
|
Returns: undefined;
|
|
21814
24028
|
};
|
|
24029
|
+
consume_bom_for_production: {
|
|
24030
|
+
Args: {
|
|
24031
|
+
p_connection_id: string;
|
|
24032
|
+
p_parent_id: string;
|
|
24033
|
+
p_parent_key: string;
|
|
24034
|
+
p_parent_kind: string;
|
|
24035
|
+
p_quantity: number;
|
|
24036
|
+
p_user_id: string;
|
|
24037
|
+
};
|
|
24038
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
24039
|
+
} | {
|
|
24040
|
+
Args: {
|
|
24041
|
+
p_batch_id?: string;
|
|
24042
|
+
p_connection_id: string;
|
|
24043
|
+
p_parent_id: string;
|
|
24044
|
+
p_parent_key: string;
|
|
24045
|
+
p_parent_kind: string;
|
|
24046
|
+
p_quantity: number;
|
|
24047
|
+
p_user_id: string;
|
|
24048
|
+
};
|
|
24049
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
24050
|
+
};
|
|
21815
24051
|
consume_floriday_rate_limit: {
|
|
21816
24052
|
Args: {
|
|
21817
24053
|
p_bucket: string;
|
|
@@ -21863,6 +24099,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
21863
24099
|
table_name: string;
|
|
21864
24100
|
}[];
|
|
21865
24101
|
};
|
|
24102
|
+
delete_samenstelling: {
|
|
24103
|
+
Args: {
|
|
24104
|
+
p_parent_id: string;
|
|
24105
|
+
p_parent_kind: string;
|
|
24106
|
+
};
|
|
24107
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
24108
|
+
};
|
|
21866
24109
|
dispatch_carrier_signups_sql: {
|
|
21867
24110
|
Args: {
|
|
21868
24111
|
_catchup?: string;
|
|
@@ -21904,6 +24147,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
21904
24147
|
status: string;
|
|
21905
24148
|
}[];
|
|
21906
24149
|
};
|
|
24150
|
+
email_auth_upsert_connection: {
|
|
24151
|
+
Args: {
|
|
24152
|
+
_account_email: string;
|
|
24153
|
+
_created_by: string;
|
|
24154
|
+
_is_active: boolean;
|
|
24155
|
+
_provider: string;
|
|
24156
|
+
_status: string;
|
|
24157
|
+
};
|
|
24158
|
+
Returns: string;
|
|
24159
|
+
};
|
|
21907
24160
|
enqueue_cart_replan_if_unlocked: {
|
|
21908
24161
|
Args: {
|
|
21909
24162
|
p_order_id: string;
|
|
@@ -22023,19 +24276,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
22023
24276
|
resource: string;
|
|
22024
24277
|
}[];
|
|
22025
24278
|
};
|
|
22026
|
-
get_floriday_agreements_active: {
|
|
22027
|
-
Args: {
|
|
22028
|
-
p_on_date?: string;
|
|
22029
|
-
};
|
|
22030
|
-
Returns: {
|
|
22031
|
-
buyer_organization_id: string;
|
|
22032
|
-
data: import("../integrations/supabase/types").Json;
|
|
22033
|
-
floriday_id: string;
|
|
22034
|
-
status: string;
|
|
22035
|
-
valid_from: string;
|
|
22036
|
-
valid_until: string;
|
|
22037
|
-
}[];
|
|
22038
|
-
};
|
|
22039
24279
|
get_floriday_clock_supplies_window: {
|
|
22040
24280
|
Args: {
|
|
22041
24281
|
p_from: string;
|
|
@@ -22108,6 +24348,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
22108
24348
|
minutes_since_success: number;
|
|
22109
24349
|
}[];
|
|
22110
24350
|
};
|
|
24351
|
+
get_group_allocation_keys: {
|
|
24352
|
+
Args: {
|
|
24353
|
+
p_product_id: string;
|
|
24354
|
+
};
|
|
24355
|
+
Returns: {
|
|
24356
|
+
k: string;
|
|
24357
|
+
ord: number;
|
|
24358
|
+
}[];
|
|
24359
|
+
};
|
|
24360
|
+
get_group_head_key: {
|
|
24361
|
+
Args: {
|
|
24362
|
+
p_group_id: string;
|
|
24363
|
+
};
|
|
24364
|
+
Returns: string;
|
|
24365
|
+
};
|
|
24366
|
+
get_inventory_stock_for_key: {
|
|
24367
|
+
Args: {
|
|
24368
|
+
p_key: string;
|
|
24369
|
+
};
|
|
24370
|
+
Returns: number;
|
|
24371
|
+
};
|
|
22111
24372
|
get_offer_by_link_code: {
|
|
22112
24373
|
Args: {
|
|
22113
24374
|
p_code: string;
|
|
@@ -22138,6 +24399,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
22138
24399
|
};
|
|
22139
24400
|
Returns: string;
|
|
22140
24401
|
};
|
|
24402
|
+
get_product_group_available_stock: {
|
|
24403
|
+
Args: {
|
|
24404
|
+
p_group_id: string;
|
|
24405
|
+
};
|
|
24406
|
+
Returns: number;
|
|
24407
|
+
};
|
|
22141
24408
|
get_room_busy_windows: {
|
|
22142
24409
|
Args: {
|
|
22143
24410
|
p_from: string;
|
|
@@ -22218,6 +24485,32 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
22218
24485
|
};
|
|
22219
24486
|
Returns: undefined;
|
|
22220
24487
|
};
|
|
24488
|
+
mark_salesorder_controlled: {
|
|
24489
|
+
Args: {
|
|
24490
|
+
p_controlled: boolean;
|
|
24491
|
+
p_floriday_id: string;
|
|
24492
|
+
};
|
|
24493
|
+
Returns: undefined;
|
|
24494
|
+
};
|
|
24495
|
+
mark_shipment_shipped: {
|
|
24496
|
+
Args: {
|
|
24497
|
+
p_shipment_id: string;
|
|
24498
|
+
};
|
|
24499
|
+
Returns: undefined;
|
|
24500
|
+
};
|
|
24501
|
+
merge_products: {
|
|
24502
|
+
Args: {
|
|
24503
|
+
_canonical: string;
|
|
24504
|
+
_loser: string;
|
|
24505
|
+
};
|
|
24506
|
+
Returns: undefined;
|
|
24507
|
+
};
|
|
24508
|
+
next_manufacture_partij: {
|
|
24509
|
+
Args: {
|
|
24510
|
+
_tenant_id: string;
|
|
24511
|
+
};
|
|
24512
|
+
Returns: string;
|
|
24513
|
+
};
|
|
22221
24514
|
next_order_number: {
|
|
22222
24515
|
Args: {
|
|
22223
24516
|
p_prefix: string;
|
|
@@ -22287,6 +24580,15 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
22287
24580
|
};
|
|
22288
24581
|
Returns: undefined;
|
|
22289
24582
|
};
|
|
24583
|
+
pickstation_resolve_delivery_orders: {
|
|
24584
|
+
Args: {
|
|
24585
|
+
p_sales_order_ids: string[];
|
|
24586
|
+
};
|
|
24587
|
+
Returns: {
|
|
24588
|
+
delivery_order_id: string;
|
|
24589
|
+
sales_order_id: string;
|
|
24590
|
+
}[];
|
|
24591
|
+
};
|
|
22290
24592
|
pickstation_set_cart_status: {
|
|
22291
24593
|
Args: {
|
|
22292
24594
|
p_cart_index: number;
|
|
@@ -22296,6 +24598,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
22296
24598
|
};
|
|
22297
24599
|
Returns: undefined;
|
|
22298
24600
|
};
|
|
24601
|
+
produce_designed_product: {
|
|
24602
|
+
Args: {
|
|
24603
|
+
p_parent_id: string;
|
|
24604
|
+
p_parent_kind: string;
|
|
24605
|
+
p_quantity: number;
|
|
24606
|
+
};
|
|
24607
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
24608
|
+
};
|
|
22299
24609
|
promote_trade_item_key: {
|
|
22300
24610
|
Args: {
|
|
22301
24611
|
p_new: string;
|
|
@@ -22303,6 +24613,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
22303
24613
|
};
|
|
22304
24614
|
Returns: undefined;
|
|
22305
24615
|
};
|
|
24616
|
+
recompute_all_reserved_stock: {
|
|
24617
|
+
Args: never;
|
|
24618
|
+
Returns: undefined;
|
|
24619
|
+
};
|
|
22306
24620
|
recompute_order_status: {
|
|
22307
24621
|
Args: {
|
|
22308
24622
|
p_order_id: string;
|
|
@@ -22352,27 +24666,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
22352
24666
|
};
|
|
22353
24667
|
Returns: undefined;
|
|
22354
24668
|
};
|
|
24669
|
+
resolve_group_allocation: {
|
|
24670
|
+
Args: {
|
|
24671
|
+
_needed: number;
|
|
24672
|
+
_product_group_id: string;
|
|
24673
|
+
};
|
|
24674
|
+
Returns: {
|
|
24675
|
+
allocated: number;
|
|
24676
|
+
trade_item_id: string;
|
|
24677
|
+
}[];
|
|
24678
|
+
};
|
|
24679
|
+
resolve_group_member_stock_key: {
|
|
24680
|
+
Args: {
|
|
24681
|
+
p_trade_item_id: string;
|
|
24682
|
+
};
|
|
24683
|
+
Returns: string;
|
|
24684
|
+
};
|
|
22355
24685
|
resolve_product_id_for_item: {
|
|
22356
24686
|
Args: {
|
|
22357
24687
|
p_product_name: string;
|
|
22358
24688
|
};
|
|
22359
24689
|
Returns: string;
|
|
22360
24690
|
};
|
|
22361
|
-
|
|
24691
|
+
resolve_stock_trade_item_key: {
|
|
22362
24692
|
Args: {
|
|
22363
|
-
|
|
22364
|
-
p_url: string;
|
|
24693
|
+
p_product_id: string;
|
|
22365
24694
|
};
|
|
22366
|
-
Returns:
|
|
24695
|
+
Returns: string;
|
|
22367
24696
|
};
|
|
22368
|
-
|
|
24697
|
+
reverse_production: {
|
|
22369
24698
|
Args: {
|
|
22370
|
-
|
|
22371
|
-
|
|
24699
|
+
p_connection_id?: string;
|
|
24700
|
+
p_parent_key: string;
|
|
24701
|
+
p_quantity: number;
|
|
24702
|
+
p_reason?: string;
|
|
24703
|
+
p_user_id?: string;
|
|
22372
24704
|
};
|
|
22373
|
-
Returns:
|
|
24705
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
22374
24706
|
};
|
|
22375
|
-
|
|
24707
|
+
schedule_floriday_additional_services_sync: {
|
|
22376
24708
|
Args: {
|
|
22377
24709
|
p_apikey: string;
|
|
22378
24710
|
p_url: string;
|
|
@@ -22625,6 +24957,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
22625
24957
|
};
|
|
22626
24958
|
Returns: number;
|
|
22627
24959
|
};
|
|
24960
|
+
self_heal_floriday_links: {
|
|
24961
|
+
Args: never;
|
|
24962
|
+
Returns: number;
|
|
24963
|
+
};
|
|
22628
24964
|
show_limit: {
|
|
22629
24965
|
Args: never;
|
|
22630
24966
|
Returns: number;
|
|
@@ -22635,18 +24971,34 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
|
|
|
22635
24971
|
};
|
|
22636
24972
|
Returns: string[];
|
|
22637
24973
|
};
|
|
24974
|
+
sync_all_layer_stocks: {
|
|
24975
|
+
Args: never;
|
|
24976
|
+
Returns: undefined;
|
|
24977
|
+
};
|
|
22638
24978
|
sync_cached_packing_from_product: {
|
|
22639
24979
|
Args: {
|
|
22640
24980
|
p_product_id: string;
|
|
22641
24981
|
};
|
|
22642
24982
|
Returns: undefined;
|
|
22643
24983
|
};
|
|
24984
|
+
sync_layer_stock: {
|
|
24985
|
+
Args: {
|
|
24986
|
+
p_product_id: string;
|
|
24987
|
+
};
|
|
24988
|
+
Returns: undefined;
|
|
24989
|
+
};
|
|
22644
24990
|
sync_order_cart_item_packing_from_product: {
|
|
22645
24991
|
Args: {
|
|
22646
24992
|
p_product_id: string;
|
|
22647
24993
|
};
|
|
22648
24994
|
Returns: undefined;
|
|
22649
24995
|
};
|
|
24996
|
+
sync_product_group_belading: {
|
|
24997
|
+
Args: {
|
|
24998
|
+
_group_id: string;
|
|
24999
|
+
};
|
|
25000
|
+
Returns: undefined;
|
|
25001
|
+
};
|
|
22650
25002
|
sync_product_packing_from_floriday_cache: {
|
|
22651
25003
|
Args: {
|
|
22652
25004
|
p_floriday_id: string;
|