@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
|
@@ -247,6 +247,172 @@ export type Database = {
|
|
|
247
247
|
};
|
|
248
248
|
Relationships: [];
|
|
249
249
|
};
|
|
250
|
+
ai_credentials: {
|
|
251
|
+
Row: {
|
|
252
|
+
active: boolean;
|
|
253
|
+
api_key: string;
|
|
254
|
+
created_at: string;
|
|
255
|
+
created_by: string | null;
|
|
256
|
+
id: string;
|
|
257
|
+
label: string;
|
|
258
|
+
provider_id: string;
|
|
259
|
+
updated_at: string;
|
|
260
|
+
};
|
|
261
|
+
Insert: {
|
|
262
|
+
active?: boolean;
|
|
263
|
+
api_key: string;
|
|
264
|
+
created_at?: string;
|
|
265
|
+
created_by?: string | null;
|
|
266
|
+
id?: string;
|
|
267
|
+
label: string;
|
|
268
|
+
provider_id: string;
|
|
269
|
+
updated_at?: string;
|
|
270
|
+
};
|
|
271
|
+
Update: {
|
|
272
|
+
active?: boolean;
|
|
273
|
+
api_key?: string;
|
|
274
|
+
created_at?: string;
|
|
275
|
+
created_by?: string | null;
|
|
276
|
+
id?: string;
|
|
277
|
+
label?: string;
|
|
278
|
+
provider_id?: string;
|
|
279
|
+
updated_at?: string;
|
|
280
|
+
};
|
|
281
|
+
Relationships: [
|
|
282
|
+
{
|
|
283
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
284
|
+
columns: ["provider_id"];
|
|
285
|
+
isOneToOne: false;
|
|
286
|
+
referencedRelation: "ai_providers";
|
|
287
|
+
referencedColumns: ["id"];
|
|
288
|
+
}
|
|
289
|
+
];
|
|
290
|
+
};
|
|
291
|
+
ai_models: {
|
|
292
|
+
Row: {
|
|
293
|
+
active: boolean;
|
|
294
|
+
context_window: number | null;
|
|
295
|
+
created_at: string;
|
|
296
|
+
display_name: string;
|
|
297
|
+
id: string;
|
|
298
|
+
is_default: boolean;
|
|
299
|
+
modality: string;
|
|
300
|
+
provider_id: string;
|
|
301
|
+
slug: string;
|
|
302
|
+
updated_at: string;
|
|
303
|
+
};
|
|
304
|
+
Insert: {
|
|
305
|
+
active?: boolean;
|
|
306
|
+
context_window?: number | null;
|
|
307
|
+
created_at?: string;
|
|
308
|
+
display_name: string;
|
|
309
|
+
id?: string;
|
|
310
|
+
is_default?: boolean;
|
|
311
|
+
modality?: string;
|
|
312
|
+
provider_id: string;
|
|
313
|
+
slug: string;
|
|
314
|
+
updated_at?: string;
|
|
315
|
+
};
|
|
316
|
+
Update: {
|
|
317
|
+
active?: boolean;
|
|
318
|
+
context_window?: number | null;
|
|
319
|
+
created_at?: string;
|
|
320
|
+
display_name?: string;
|
|
321
|
+
id?: string;
|
|
322
|
+
is_default?: boolean;
|
|
323
|
+
modality?: string;
|
|
324
|
+
provider_id?: string;
|
|
325
|
+
slug?: string;
|
|
326
|
+
updated_at?: string;
|
|
327
|
+
};
|
|
328
|
+
Relationships: [
|
|
329
|
+
{
|
|
330
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
331
|
+
columns: ["provider_id"];
|
|
332
|
+
isOneToOne: false;
|
|
333
|
+
referencedRelation: "ai_providers";
|
|
334
|
+
referencedColumns: ["id"];
|
|
335
|
+
}
|
|
336
|
+
];
|
|
337
|
+
};
|
|
338
|
+
ai_module_bindings: {
|
|
339
|
+
Row: {
|
|
340
|
+
consumer_module_id: string;
|
|
341
|
+
created_at: string;
|
|
342
|
+
credential_id: string;
|
|
343
|
+
id: string;
|
|
344
|
+
model_id: string;
|
|
345
|
+
notes: string | null;
|
|
346
|
+
updated_at: string;
|
|
347
|
+
};
|
|
348
|
+
Insert: {
|
|
349
|
+
consumer_module_id: string;
|
|
350
|
+
created_at?: string;
|
|
351
|
+
credential_id: string;
|
|
352
|
+
id?: string;
|
|
353
|
+
model_id: string;
|
|
354
|
+
notes?: string | null;
|
|
355
|
+
updated_at?: string;
|
|
356
|
+
};
|
|
357
|
+
Update: {
|
|
358
|
+
consumer_module_id?: string;
|
|
359
|
+
created_at?: string;
|
|
360
|
+
credential_id?: string;
|
|
361
|
+
id?: string;
|
|
362
|
+
model_id?: string;
|
|
363
|
+
notes?: string | null;
|
|
364
|
+
updated_at?: string;
|
|
365
|
+
};
|
|
366
|
+
Relationships: [
|
|
367
|
+
{
|
|
368
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
369
|
+
columns: ["credential_id"];
|
|
370
|
+
isOneToOne: false;
|
|
371
|
+
referencedRelation: "ai_credentials";
|
|
372
|
+
referencedColumns: ["id"];
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
376
|
+
columns: ["model_id"];
|
|
377
|
+
isOneToOne: false;
|
|
378
|
+
referencedRelation: "ai_models";
|
|
379
|
+
referencedColumns: ["id"];
|
|
380
|
+
}
|
|
381
|
+
];
|
|
382
|
+
};
|
|
383
|
+
ai_providers: {
|
|
384
|
+
Row: {
|
|
385
|
+
active: boolean;
|
|
386
|
+
auth_type: string;
|
|
387
|
+
base_url: string | null;
|
|
388
|
+
created_at: string;
|
|
389
|
+
id: string;
|
|
390
|
+
name: string;
|
|
391
|
+
slug: string;
|
|
392
|
+
updated_at: string;
|
|
393
|
+
};
|
|
394
|
+
Insert: {
|
|
395
|
+
active?: boolean;
|
|
396
|
+
auth_type?: string;
|
|
397
|
+
base_url?: string | null;
|
|
398
|
+
created_at?: string;
|
|
399
|
+
id?: string;
|
|
400
|
+
name: string;
|
|
401
|
+
slug: string;
|
|
402
|
+
updated_at?: string;
|
|
403
|
+
};
|
|
404
|
+
Update: {
|
|
405
|
+
active?: boolean;
|
|
406
|
+
auth_type?: string;
|
|
407
|
+
base_url?: string | null;
|
|
408
|
+
created_at?: string;
|
|
409
|
+
id?: string;
|
|
410
|
+
name?: string;
|
|
411
|
+
slug?: string;
|
|
412
|
+
updated_at?: string;
|
|
413
|
+
};
|
|
414
|
+
Relationships: [];
|
|
415
|
+
};
|
|
250
416
|
app_settings: {
|
|
251
417
|
Row: {
|
|
252
418
|
created_at: string;
|
|
@@ -885,6 +1051,140 @@ export type Database = {
|
|
|
885
1051
|
};
|
|
886
1052
|
Relationships: [];
|
|
887
1053
|
};
|
|
1054
|
+
cart_planning_pick_times: {
|
|
1055
|
+
Row: {
|
|
1056
|
+
created_at: string;
|
|
1057
|
+
id: string;
|
|
1058
|
+
pot_size: string;
|
|
1059
|
+
seconds_per_cart: number;
|
|
1060
|
+
updated_at: string;
|
|
1061
|
+
};
|
|
1062
|
+
Insert: {
|
|
1063
|
+
created_at?: string;
|
|
1064
|
+
id?: string;
|
|
1065
|
+
pot_size: string;
|
|
1066
|
+
seconds_per_cart: number;
|
|
1067
|
+
updated_at?: string;
|
|
1068
|
+
};
|
|
1069
|
+
Update: {
|
|
1070
|
+
created_at?: string;
|
|
1071
|
+
id?: string;
|
|
1072
|
+
pot_size?: string;
|
|
1073
|
+
seconds_per_cart?: number;
|
|
1074
|
+
updated_at?: string;
|
|
1075
|
+
};
|
|
1076
|
+
Relationships: [];
|
|
1077
|
+
};
|
|
1078
|
+
cart_planning_product_overrides: {
|
|
1079
|
+
Row: {
|
|
1080
|
+
created_at: string;
|
|
1081
|
+
id: string;
|
|
1082
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1083
|
+
never_mix: boolean;
|
|
1084
|
+
notes: string | null;
|
|
1085
|
+
product_id: string;
|
|
1086
|
+
updated_at: string;
|
|
1087
|
+
};
|
|
1088
|
+
Insert: {
|
|
1089
|
+
created_at?: string;
|
|
1090
|
+
id?: string;
|
|
1091
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1092
|
+
never_mix?: boolean;
|
|
1093
|
+
notes?: string | null;
|
|
1094
|
+
product_id: string;
|
|
1095
|
+
updated_at?: string;
|
|
1096
|
+
};
|
|
1097
|
+
Update: {
|
|
1098
|
+
created_at?: string;
|
|
1099
|
+
id?: string;
|
|
1100
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1101
|
+
never_mix?: boolean;
|
|
1102
|
+
notes?: string | null;
|
|
1103
|
+
product_id?: string;
|
|
1104
|
+
updated_at?: string;
|
|
1105
|
+
};
|
|
1106
|
+
Relationships: [
|
|
1107
|
+
{
|
|
1108
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1109
|
+
columns: ["product_id"];
|
|
1110
|
+
isOneToOne: true;
|
|
1111
|
+
referencedRelation: "products";
|
|
1112
|
+
referencedColumns: ["id"];
|
|
1113
|
+
}
|
|
1114
|
+
];
|
|
1115
|
+
};
|
|
1116
|
+
cart_planning_settings: {
|
|
1117
|
+
Row: {
|
|
1118
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1119
|
+
buffer_grouping_mode: string;
|
|
1120
|
+
combine_floriday_orders: boolean;
|
|
1121
|
+
combine_floriday_orders_window: string;
|
|
1122
|
+
combine_orders_scope: string;
|
|
1123
|
+
default_workers: number;
|
|
1124
|
+
id: number;
|
|
1125
|
+
max_beladingen_per_layer: number;
|
|
1126
|
+
max_customers_per_cart: number;
|
|
1127
|
+
max_one_customer_per_layer: boolean;
|
|
1128
|
+
max_party_share_per_layer_pct: number;
|
|
1129
|
+
optimization_strategy: string;
|
|
1130
|
+
own_cart_from_layers: number;
|
|
1131
|
+
pick_time_mode: string;
|
|
1132
|
+
plants_per_hour: number;
|
|
1133
|
+
require_same_carrier: boolean;
|
|
1134
|
+
require_same_crate_type: boolean;
|
|
1135
|
+
require_same_delivery_date: boolean;
|
|
1136
|
+
require_same_delivery_location: boolean;
|
|
1137
|
+
updated_at: string;
|
|
1138
|
+
updated_by: string | null;
|
|
1139
|
+
};
|
|
1140
|
+
Insert: {
|
|
1141
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1142
|
+
buffer_grouping_mode?: string;
|
|
1143
|
+
combine_floriday_orders?: boolean;
|
|
1144
|
+
combine_floriday_orders_window?: string;
|
|
1145
|
+
combine_orders_scope?: string;
|
|
1146
|
+
default_workers?: number;
|
|
1147
|
+
id?: number;
|
|
1148
|
+
max_beladingen_per_layer?: number;
|
|
1149
|
+
max_customers_per_cart?: number;
|
|
1150
|
+
max_one_customer_per_layer?: boolean;
|
|
1151
|
+
max_party_share_per_layer_pct?: number;
|
|
1152
|
+
optimization_strategy?: string;
|
|
1153
|
+
own_cart_from_layers?: number;
|
|
1154
|
+
pick_time_mode?: string;
|
|
1155
|
+
plants_per_hour?: number;
|
|
1156
|
+
require_same_carrier?: boolean;
|
|
1157
|
+
require_same_crate_type?: boolean;
|
|
1158
|
+
require_same_delivery_date?: boolean;
|
|
1159
|
+
require_same_delivery_location?: boolean;
|
|
1160
|
+
updated_at?: string;
|
|
1161
|
+
updated_by?: string | null;
|
|
1162
|
+
};
|
|
1163
|
+
Update: {
|
|
1164
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1165
|
+
buffer_grouping_mode?: string;
|
|
1166
|
+
combine_floriday_orders?: boolean;
|
|
1167
|
+
combine_floriday_orders_window?: string;
|
|
1168
|
+
combine_orders_scope?: string;
|
|
1169
|
+
default_workers?: number;
|
|
1170
|
+
id?: number;
|
|
1171
|
+
max_beladingen_per_layer?: number;
|
|
1172
|
+
max_customers_per_cart?: number;
|
|
1173
|
+
max_one_customer_per_layer?: boolean;
|
|
1174
|
+
max_party_share_per_layer_pct?: number;
|
|
1175
|
+
optimization_strategy?: string;
|
|
1176
|
+
own_cart_from_layers?: number;
|
|
1177
|
+
pick_time_mode?: string;
|
|
1178
|
+
plants_per_hour?: number;
|
|
1179
|
+
require_same_carrier?: boolean;
|
|
1180
|
+
require_same_crate_type?: boolean;
|
|
1181
|
+
require_same_delivery_date?: boolean;
|
|
1182
|
+
require_same_delivery_location?: boolean;
|
|
1183
|
+
updated_at?: string;
|
|
1184
|
+
updated_by?: string | null;
|
|
1185
|
+
};
|
|
1186
|
+
Relationships: [];
|
|
1187
|
+
};
|
|
888
1188
|
cart_replan_queue: {
|
|
889
1189
|
Row: {
|
|
890
1190
|
attempts: number;
|
|
@@ -917,6 +1217,39 @@ export type Database = {
|
|
|
917
1217
|
}
|
|
918
1218
|
];
|
|
919
1219
|
};
|
|
1220
|
+
cart_types: {
|
|
1221
|
+
Row: {
|
|
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
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
1242
|
+
created_at?: string;
|
|
1243
|
+
id?: string;
|
|
1244
|
+
is_default?: boolean;
|
|
1245
|
+
layer_length_cm?: number;
|
|
1246
|
+
layer_width_cm?: number;
|
|
1247
|
+
layers_per_cart?: number;
|
|
1248
|
+
name?: string;
|
|
1249
|
+
updated_at?: string;
|
|
1250
|
+
};
|
|
1251
|
+
Relationships: [];
|
|
1252
|
+
};
|
|
920
1253
|
collections: {
|
|
921
1254
|
Row: {
|
|
922
1255
|
created_at: string;
|
|
@@ -941,6 +1274,36 @@ export type Database = {
|
|
|
941
1274
|
};
|
|
942
1275
|
Relationships: [];
|
|
943
1276
|
};
|
|
1277
|
+
crate_types: {
|
|
1278
|
+
Row: {
|
|
1279
|
+
created_at: string;
|
|
1280
|
+
id: string;
|
|
1281
|
+
length_cm: number;
|
|
1282
|
+
name: string;
|
|
1283
|
+
plants_per_crate: number;
|
|
1284
|
+
updated_at: string;
|
|
1285
|
+
width_cm: number;
|
|
1286
|
+
};
|
|
1287
|
+
Insert: {
|
|
1288
|
+
created_at?: string;
|
|
1289
|
+
id?: string;
|
|
1290
|
+
length_cm: number;
|
|
1291
|
+
name: string;
|
|
1292
|
+
plants_per_crate?: number;
|
|
1293
|
+
updated_at?: string;
|
|
1294
|
+
width_cm: number;
|
|
1295
|
+
};
|
|
1296
|
+
Update: {
|
|
1297
|
+
created_at?: string;
|
|
1298
|
+
id?: string;
|
|
1299
|
+
length_cm?: number;
|
|
1300
|
+
name?: string;
|
|
1301
|
+
plants_per_crate?: number;
|
|
1302
|
+
updated_at?: string;
|
|
1303
|
+
width_cm?: number;
|
|
1304
|
+
};
|
|
1305
|
+
Relationships: [];
|
|
1306
|
+
};
|
|
944
1307
|
customer_audit_log: {
|
|
945
1308
|
Row: {
|
|
946
1309
|
action: string;
|
|
@@ -3324,122 +3687,19 @@ export type Database = {
|
|
|
3324
3687
|
}
|
|
3325
3688
|
];
|
|
3326
3689
|
};
|
|
3327
|
-
|
|
3690
|
+
floriday_auction_letters_cache: {
|
|
3328
3691
|
Row: {
|
|
3329
|
-
|
|
3692
|
+
auction_letter_code: string;
|
|
3693
|
+
clock_supply_id: string;
|
|
3330
3694
|
connection_id: string;
|
|
3331
|
-
|
|
3332
|
-
delivery_date: string | null;
|
|
3695
|
+
content_type: string;
|
|
3333
3696
|
fetched_at: string;
|
|
3334
|
-
floriday_id: string;
|
|
3335
3697
|
id: string;
|
|
3336
|
-
|
|
3337
|
-
sequence_number: number;
|
|
3338
|
-
status: string | null;
|
|
3339
|
-
updated_at: string;
|
|
3698
|
+
storage_path: string;
|
|
3340
3699
|
};
|
|
3341
3700
|
Insert: {
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
data?: Json;
|
|
3345
|
-
delivery_date?: string | null;
|
|
3346
|
-
fetched_at?: string;
|
|
3347
|
-
floriday_id: string;
|
|
3348
|
-
id?: string;
|
|
3349
|
-
is_deleted?: boolean;
|
|
3350
|
-
sequence_number?: number;
|
|
3351
|
-
status?: string | null;
|
|
3352
|
-
updated_at?: string;
|
|
3353
|
-
};
|
|
3354
|
-
Update: {
|
|
3355
|
-
agreement_id?: string | null;
|
|
3356
|
-
connection_id?: string;
|
|
3357
|
-
data?: Json;
|
|
3358
|
-
delivery_date?: string | null;
|
|
3359
|
-
fetched_at?: string;
|
|
3360
|
-
floriday_id?: string;
|
|
3361
|
-
id?: string;
|
|
3362
|
-
is_deleted?: boolean;
|
|
3363
|
-
sequence_number?: number;
|
|
3364
|
-
status?: string | null;
|
|
3365
|
-
updated_at?: string;
|
|
3366
|
-
};
|
|
3367
|
-
Relationships: [
|
|
3368
|
-
{
|
|
3369
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
3370
|
-
columns: ["connection_id"];
|
|
3371
|
-
isOneToOne: false;
|
|
3372
|
-
referencedRelation: "floriday_connections";
|
|
3373
|
-
referencedColumns: ["id"];
|
|
3374
|
-
}
|
|
3375
|
-
];
|
|
3376
|
-
};
|
|
3377
|
-
floriday_agreements_cache: {
|
|
3378
|
-
Row: {
|
|
3379
|
-
buyer_organization_id: string | null;
|
|
3380
|
-
connection_id: string;
|
|
3381
|
-
data: Json;
|
|
3382
|
-
fetched_at: string;
|
|
3383
|
-
floriday_id: string;
|
|
3384
|
-
id: string;
|
|
3385
|
-
is_deleted: boolean;
|
|
3386
|
-
sequence_number: number;
|
|
3387
|
-
status: string | null;
|
|
3388
|
-
updated_at: string;
|
|
3389
|
-
valid_from: string | null;
|
|
3390
|
-
valid_until: string | null;
|
|
3391
|
-
};
|
|
3392
|
-
Insert: {
|
|
3393
|
-
buyer_organization_id?: string | null;
|
|
3394
|
-
connection_id: string;
|
|
3395
|
-
data?: Json;
|
|
3396
|
-
fetched_at?: string;
|
|
3397
|
-
floriday_id: string;
|
|
3398
|
-
id?: string;
|
|
3399
|
-
is_deleted?: boolean;
|
|
3400
|
-
sequence_number?: number;
|
|
3401
|
-
status?: string | null;
|
|
3402
|
-
updated_at?: string;
|
|
3403
|
-
valid_from?: string | null;
|
|
3404
|
-
valid_until?: string | null;
|
|
3405
|
-
};
|
|
3406
|
-
Update: {
|
|
3407
|
-
buyer_organization_id?: string | null;
|
|
3408
|
-
connection_id?: string;
|
|
3409
|
-
data?: Json;
|
|
3410
|
-
fetched_at?: string;
|
|
3411
|
-
floriday_id?: string;
|
|
3412
|
-
id?: string;
|
|
3413
|
-
is_deleted?: boolean;
|
|
3414
|
-
sequence_number?: number;
|
|
3415
|
-
status?: string | null;
|
|
3416
|
-
updated_at?: string;
|
|
3417
|
-
valid_from?: string | null;
|
|
3418
|
-
valid_until?: string | null;
|
|
3419
|
-
};
|
|
3420
|
-
Relationships: [
|
|
3421
|
-
{
|
|
3422
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
3423
|
-
columns: ["connection_id"];
|
|
3424
|
-
isOneToOne: false;
|
|
3425
|
-
referencedRelation: "floriday_connections";
|
|
3426
|
-
referencedColumns: ["id"];
|
|
3427
|
-
}
|
|
3428
|
-
];
|
|
3429
|
-
};
|
|
3430
|
-
floriday_auction_letters_cache: {
|
|
3431
|
-
Row: {
|
|
3432
|
-
auction_letter_code: string;
|
|
3433
|
-
clock_supply_id: string;
|
|
3434
|
-
connection_id: string;
|
|
3435
|
-
content_type: string;
|
|
3436
|
-
fetched_at: string;
|
|
3437
|
-
id: string;
|
|
3438
|
-
storage_path: string;
|
|
3439
|
-
};
|
|
3440
|
-
Insert: {
|
|
3441
|
-
auction_letter_code: string;
|
|
3442
|
-
clock_supply_id: string;
|
|
3701
|
+
auction_letter_code: string;
|
|
3702
|
+
clock_supply_id: string;
|
|
3443
3703
|
connection_id: string;
|
|
3444
3704
|
content_type?: string;
|
|
3445
3705
|
fetched_at?: string;
|
|
@@ -3945,6 +4205,27 @@ export type Database = {
|
|
|
3945
4205
|
}
|
|
3946
4206
|
];
|
|
3947
4207
|
};
|
|
4208
|
+
floriday_continuous_stock_cache: {
|
|
4209
|
+
Row: {
|
|
4210
|
+
connection_id: string;
|
|
4211
|
+
fetched_at: string;
|
|
4212
|
+
number_of_pieces: number;
|
|
4213
|
+
trade_item_id: string;
|
|
4214
|
+
};
|
|
4215
|
+
Insert: {
|
|
4216
|
+
connection_id: string;
|
|
4217
|
+
fetched_at?: string;
|
|
4218
|
+
number_of_pieces?: number;
|
|
4219
|
+
trade_item_id: string;
|
|
4220
|
+
};
|
|
4221
|
+
Update: {
|
|
4222
|
+
connection_id?: string;
|
|
4223
|
+
fetched_at?: string;
|
|
4224
|
+
number_of_pieces?: number;
|
|
4225
|
+
trade_item_id?: string;
|
|
4226
|
+
};
|
|
4227
|
+
Relationships: [];
|
|
4228
|
+
};
|
|
3948
4229
|
floriday_continuous_stock_queue: {
|
|
3949
4230
|
Row: {
|
|
3950
4231
|
attempts: number;
|
|
@@ -4748,6 +5029,8 @@ export type Database = {
|
|
|
4748
5029
|
Row: {
|
|
4749
5030
|
buyer_organization_id: string | null;
|
|
4750
5031
|
connection_id: string;
|
|
5032
|
+
controlled_at: string | null;
|
|
5033
|
+
controlled_by: string | null;
|
|
4751
5034
|
created_at: string;
|
|
4752
5035
|
data: Json;
|
|
4753
5036
|
floriday_id: string;
|
|
@@ -4759,6 +5042,8 @@ export type Database = {
|
|
|
4759
5042
|
Insert: {
|
|
4760
5043
|
buyer_organization_id?: string | null;
|
|
4761
5044
|
connection_id: string;
|
|
5045
|
+
controlled_at?: string | null;
|
|
5046
|
+
controlled_by?: string | null;
|
|
4762
5047
|
created_at?: string;
|
|
4763
5048
|
data: Json;
|
|
4764
5049
|
floriday_id: string;
|
|
@@ -4770,6 +5055,8 @@ export type Database = {
|
|
|
4770
5055
|
Update: {
|
|
4771
5056
|
buyer_organization_id?: string | null;
|
|
4772
5057
|
connection_id?: string;
|
|
5058
|
+
controlled_at?: string | null;
|
|
5059
|
+
controlled_by?: string | null;
|
|
4773
5060
|
created_at?: string;
|
|
4774
5061
|
data?: Json;
|
|
4775
5062
|
floriday_id?: string;
|
|
@@ -4961,6 +5248,47 @@ export type Database = {
|
|
|
4961
5248
|
}
|
|
4962
5249
|
];
|
|
4963
5250
|
};
|
|
5251
|
+
floriday_trade_settings_customers_cache: {
|
|
5252
|
+
Row: {
|
|
5253
|
+
connection_id: string;
|
|
5254
|
+
data: Json;
|
|
5255
|
+
fetched_at: string;
|
|
5256
|
+
floriday_id: string;
|
|
5257
|
+
id: string;
|
|
5258
|
+
is_deleted: boolean;
|
|
5259
|
+
sequence_number: number;
|
|
5260
|
+
updated_at: string;
|
|
5261
|
+
};
|
|
5262
|
+
Insert: {
|
|
5263
|
+
connection_id: string;
|
|
5264
|
+
data: Json;
|
|
5265
|
+
fetched_at?: string;
|
|
5266
|
+
floriday_id: string;
|
|
5267
|
+
id?: string;
|
|
5268
|
+
is_deleted?: boolean;
|
|
5269
|
+
sequence_number?: number;
|
|
5270
|
+
updated_at?: string;
|
|
5271
|
+
};
|
|
5272
|
+
Update: {
|
|
5273
|
+
connection_id?: string;
|
|
5274
|
+
data?: Json;
|
|
5275
|
+
fetched_at?: string;
|
|
5276
|
+
floriday_id?: string;
|
|
5277
|
+
id?: string;
|
|
5278
|
+
is_deleted?: boolean;
|
|
5279
|
+
sequence_number?: number;
|
|
5280
|
+
updated_at?: string;
|
|
5281
|
+
};
|
|
5282
|
+
Relationships: [
|
|
5283
|
+
{
|
|
5284
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
5285
|
+
columns: ["connection_id"];
|
|
5286
|
+
isOneToOne: false;
|
|
5287
|
+
referencedRelation: "floriday_connections";
|
|
5288
|
+
referencedColumns: ["id"];
|
|
5289
|
+
}
|
|
5290
|
+
];
|
|
5291
|
+
};
|
|
4964
5292
|
floriday_trips_cache: {
|
|
4965
5293
|
Row: {
|
|
4966
5294
|
carrier_organization_id: string | null;
|
|
@@ -5011,6 +5339,27 @@ export type Database = {
|
|
|
5011
5339
|
}
|
|
5012
5340
|
];
|
|
5013
5341
|
};
|
|
5342
|
+
floriday_vbn_required_characteristics: {
|
|
5343
|
+
Row: {
|
|
5344
|
+
required_codes: string[];
|
|
5345
|
+
updated_at: string;
|
|
5346
|
+
updated_by: string | null;
|
|
5347
|
+
vbn_code: string;
|
|
5348
|
+
};
|
|
5349
|
+
Insert: {
|
|
5350
|
+
required_codes?: string[];
|
|
5351
|
+
updated_at?: string;
|
|
5352
|
+
updated_by?: string | null;
|
|
5353
|
+
vbn_code: string;
|
|
5354
|
+
};
|
|
5355
|
+
Update: {
|
|
5356
|
+
required_codes?: string[];
|
|
5357
|
+
updated_at?: string;
|
|
5358
|
+
updated_by?: string | null;
|
|
5359
|
+
vbn_code?: string;
|
|
5360
|
+
};
|
|
5361
|
+
Relationships: [];
|
|
5362
|
+
};
|
|
5014
5363
|
floriday_warehouses_cache: {
|
|
5015
5364
|
Row: {
|
|
5016
5365
|
connection_id: string;
|
|
@@ -5741,109 +6090,394 @@ export type Database = {
|
|
|
5741
6090
|
};
|
|
5742
6091
|
Relationships: [];
|
|
5743
6092
|
};
|
|
5744
|
-
|
|
6093
|
+
logistics_capacity_events: {
|
|
5745
6094
|
Row: {
|
|
5746
|
-
|
|
5747
|
-
body_text: string | null;
|
|
5748
|
-
connection_id: string | null;
|
|
6095
|
+
available_carts: number;
|
|
5749
6096
|
created_at: string;
|
|
5750
|
-
error_message: string | null;
|
|
5751
|
-
external_id: string | null;
|
|
5752
|
-
from_email: string | null;
|
|
5753
|
-
from_name: string | null;
|
|
5754
6097
|
id: string;
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
6098
|
+
measures: Json;
|
|
6099
|
+
note: string | null;
|
|
6100
|
+
outcome: string;
|
|
6101
|
+
required_carts: number;
|
|
6102
|
+
reserve_minutes: number;
|
|
6103
|
+
shortage_carts: number;
|
|
5759
6104
|
status: string;
|
|
5760
|
-
|
|
5761
|
-
uid: number | null;
|
|
5762
|
-
updated_at: string;
|
|
6105
|
+
user_id: string;
|
|
5763
6106
|
};
|
|
5764
6107
|
Insert: {
|
|
5765
|
-
|
|
5766
|
-
body_text?: string | null;
|
|
5767
|
-
connection_id?: string | null;
|
|
6108
|
+
available_carts?: number;
|
|
5768
6109
|
created_at?: string;
|
|
5769
|
-
error_message?: string | null;
|
|
5770
|
-
external_id?: string | null;
|
|
5771
|
-
from_email?: string | null;
|
|
5772
|
-
from_name?: string | null;
|
|
5773
6110
|
id?: string;
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
6111
|
+
measures?: Json;
|
|
6112
|
+
note?: string | null;
|
|
6113
|
+
outcome?: string;
|
|
6114
|
+
required_carts?: number;
|
|
6115
|
+
reserve_minutes?: number;
|
|
6116
|
+
shortage_carts?: number;
|
|
6117
|
+
status: string;
|
|
6118
|
+
user_id: string;
|
|
5782
6119
|
};
|
|
5783
6120
|
Update: {
|
|
5784
|
-
|
|
5785
|
-
body_text?: string | null;
|
|
5786
|
-
connection_id?: string | null;
|
|
6121
|
+
available_carts?: number;
|
|
5787
6122
|
created_at?: string;
|
|
5788
|
-
error_message?: string | null;
|
|
5789
|
-
external_id?: string | null;
|
|
5790
|
-
from_email?: string | null;
|
|
5791
|
-
from_name?: string | null;
|
|
5792
6123
|
id?: string;
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
6124
|
+
measures?: Json;
|
|
6125
|
+
note?: string | null;
|
|
6126
|
+
outcome?: string;
|
|
6127
|
+
required_carts?: number;
|
|
6128
|
+
reserve_minutes?: number;
|
|
6129
|
+
shortage_carts?: number;
|
|
5797
6130
|
status?: string;
|
|
5798
|
-
|
|
5799
|
-
uid?: number | null;
|
|
5800
|
-
updated_at?: string;
|
|
6131
|
+
user_id?: string;
|
|
5801
6132
|
};
|
|
5802
|
-
Relationships: [
|
|
5803
|
-
{
|
|
5804
|
-
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
5805
|
-
columns: ["connection_id"];
|
|
5806
|
-
isOneToOne: false;
|
|
5807
|
-
referencedRelation: "email_auth_connections";
|
|
5808
|
-
referencedColumns: ["id"];
|
|
5809
|
-
},
|
|
5810
|
-
{
|
|
5811
|
-
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
5812
|
-
columns: ["connection_id"];
|
|
5813
|
-
isOneToOne: false;
|
|
5814
|
-
referencedRelation: "email_auth_connections_safe";
|
|
5815
|
-
referencedColumns: ["id"];
|
|
5816
|
-
},
|
|
5817
|
-
{
|
|
5818
|
-
foreignKeyName: "mailbox_messages_profile_id_fkey";
|
|
5819
|
-
columns: ["profile_id"];
|
|
5820
|
-
isOneToOne: false;
|
|
5821
|
-
referencedRelation: "imap_profiles";
|
|
5822
|
-
referencedColumns: ["id"];
|
|
5823
|
-
}
|
|
5824
|
-
];
|
|
6133
|
+
Relationships: [];
|
|
5825
6134
|
};
|
|
5826
|
-
|
|
6135
|
+
logistics_capacity_settings: {
|
|
5827
6136
|
Row: {
|
|
5828
|
-
confidence: number | null;
|
|
5829
6137
|
created_at: string;
|
|
5830
|
-
|
|
5831
|
-
delivery_date: string | null;
|
|
5832
|
-
id: string;
|
|
5833
|
-
matched_customer_id: string | null;
|
|
5834
|
-
message_id: string;
|
|
5835
|
-
notes: string | null;
|
|
5836
|
-
order_number: string | null;
|
|
5837
|
-
parsed_payload: Json | null;
|
|
5838
|
-
reviewed_at: string | null;
|
|
5839
|
-
reviewed_by: string | null;
|
|
5840
|
-
status: string;
|
|
6138
|
+
settings: Json;
|
|
5841
6139
|
updated_at: string;
|
|
6140
|
+
user_id: string;
|
|
5842
6141
|
};
|
|
5843
6142
|
Insert: {
|
|
5844
|
-
confidence?: number | null;
|
|
5845
6143
|
created_at?: string;
|
|
5846
|
-
|
|
6144
|
+
settings?: Json;
|
|
6145
|
+
updated_at?: string;
|
|
6146
|
+
user_id: string;
|
|
6147
|
+
};
|
|
6148
|
+
Update: {
|
|
6149
|
+
created_at?: string;
|
|
6150
|
+
settings?: Json;
|
|
6151
|
+
updated_at?: string;
|
|
6152
|
+
user_id?: string;
|
|
6153
|
+
};
|
|
6154
|
+
Relationships: [];
|
|
6155
|
+
};
|
|
6156
|
+
logistics_decisions: {
|
|
6157
|
+
Row: {
|
|
6158
|
+
created_at: string;
|
|
6159
|
+
explanation: string | null;
|
|
6160
|
+
id: string;
|
|
6161
|
+
input_snapshot: Json;
|
|
6162
|
+
result: Json;
|
|
6163
|
+
slot: string;
|
|
6164
|
+
strategy_id: string | null;
|
|
6165
|
+
subject_id: string;
|
|
6166
|
+
subject_type: string;
|
|
6167
|
+
user_id: string;
|
|
6168
|
+
};
|
|
6169
|
+
Insert: {
|
|
6170
|
+
created_at?: string;
|
|
6171
|
+
explanation?: string | null;
|
|
6172
|
+
id?: string;
|
|
6173
|
+
input_snapshot?: Json;
|
|
6174
|
+
result?: Json;
|
|
6175
|
+
slot: string;
|
|
6176
|
+
strategy_id?: string | null;
|
|
6177
|
+
subject_id: string;
|
|
6178
|
+
subject_type: string;
|
|
6179
|
+
user_id: string;
|
|
6180
|
+
};
|
|
6181
|
+
Update: {
|
|
6182
|
+
created_at?: string;
|
|
6183
|
+
explanation?: string | null;
|
|
6184
|
+
id?: string;
|
|
6185
|
+
input_snapshot?: Json;
|
|
6186
|
+
result?: Json;
|
|
6187
|
+
slot?: string;
|
|
6188
|
+
strategy_id?: string | null;
|
|
6189
|
+
subject_id?: string;
|
|
6190
|
+
subject_type?: string;
|
|
6191
|
+
user_id?: string;
|
|
6192
|
+
};
|
|
6193
|
+
Relationships: [
|
|
6194
|
+
{
|
|
6195
|
+
foreignKeyName: "logistics_decisions_strategy_id_fkey";
|
|
6196
|
+
columns: ["strategy_id"];
|
|
6197
|
+
isOneToOne: false;
|
|
6198
|
+
referencedRelation: "logistics_strategies";
|
|
6199
|
+
referencedColumns: ["id"];
|
|
6200
|
+
}
|
|
6201
|
+
];
|
|
6202
|
+
};
|
|
6203
|
+
logistics_formulas: {
|
|
6204
|
+
Row: {
|
|
6205
|
+
created_at: string;
|
|
6206
|
+
expression: string;
|
|
6207
|
+
id: string;
|
|
6208
|
+
notes: string | null;
|
|
6209
|
+
slot: string;
|
|
6210
|
+
strategy_id: string;
|
|
6211
|
+
updated_at: string;
|
|
6212
|
+
user_id: string;
|
|
6213
|
+
version: number;
|
|
6214
|
+
};
|
|
6215
|
+
Insert: {
|
|
6216
|
+
created_at?: string;
|
|
6217
|
+
expression?: string;
|
|
6218
|
+
id?: string;
|
|
6219
|
+
notes?: string | null;
|
|
6220
|
+
slot: string;
|
|
6221
|
+
strategy_id: string;
|
|
6222
|
+
updated_at?: string;
|
|
6223
|
+
user_id: string;
|
|
6224
|
+
version?: number;
|
|
6225
|
+
};
|
|
6226
|
+
Update: {
|
|
6227
|
+
created_at?: string;
|
|
6228
|
+
expression?: string;
|
|
6229
|
+
id?: string;
|
|
6230
|
+
notes?: string | null;
|
|
6231
|
+
slot?: string;
|
|
6232
|
+
strategy_id?: string;
|
|
6233
|
+
updated_at?: string;
|
|
6234
|
+
user_id?: string;
|
|
6235
|
+
version?: number;
|
|
6236
|
+
};
|
|
6237
|
+
Relationships: [
|
|
6238
|
+
{
|
|
6239
|
+
foreignKeyName: "logistics_formulas_strategy_id_fkey";
|
|
6240
|
+
columns: ["strategy_id"];
|
|
6241
|
+
isOneToOne: false;
|
|
6242
|
+
referencedRelation: "logistics_strategies";
|
|
6243
|
+
referencedColumns: ["id"];
|
|
6244
|
+
}
|
|
6245
|
+
];
|
|
6246
|
+
};
|
|
6247
|
+
logistics_strategies: {
|
|
6248
|
+
Row: {
|
|
6249
|
+
color: string;
|
|
6250
|
+
created_at: string;
|
|
6251
|
+
description: string | null;
|
|
6252
|
+
id: string;
|
|
6253
|
+
is_active: boolean;
|
|
6254
|
+
name: string;
|
|
6255
|
+
priority: number;
|
|
6256
|
+
updated_at: string;
|
|
6257
|
+
updated_by: string | null;
|
|
6258
|
+
user_id: string;
|
|
6259
|
+
version: number;
|
|
6260
|
+
};
|
|
6261
|
+
Insert: {
|
|
6262
|
+
color?: string;
|
|
6263
|
+
created_at?: string;
|
|
6264
|
+
description?: string | null;
|
|
6265
|
+
id?: string;
|
|
6266
|
+
is_active?: boolean;
|
|
6267
|
+
name: string;
|
|
6268
|
+
priority?: number;
|
|
6269
|
+
updated_at?: string;
|
|
6270
|
+
updated_by?: string | null;
|
|
6271
|
+
user_id: string;
|
|
6272
|
+
version?: number;
|
|
6273
|
+
};
|
|
6274
|
+
Update: {
|
|
6275
|
+
color?: string;
|
|
6276
|
+
created_at?: string;
|
|
6277
|
+
description?: string | null;
|
|
6278
|
+
id?: string;
|
|
6279
|
+
is_active?: boolean;
|
|
6280
|
+
name?: string;
|
|
6281
|
+
priority?: number;
|
|
6282
|
+
updated_at?: string;
|
|
6283
|
+
updated_by?: string | null;
|
|
6284
|
+
user_id?: string;
|
|
6285
|
+
version?: number;
|
|
6286
|
+
};
|
|
6287
|
+
Relationships: [];
|
|
6288
|
+
};
|
|
6289
|
+
logistics_strategy_schedules: {
|
|
6290
|
+
Row: {
|
|
6291
|
+
condition_expression: string | null;
|
|
6292
|
+
created_at: string;
|
|
6293
|
+
end_date: string | null;
|
|
6294
|
+
id: string;
|
|
6295
|
+
is_enabled: boolean;
|
|
6296
|
+
priority: number;
|
|
6297
|
+
rule_type: string;
|
|
6298
|
+
start_date: string | null;
|
|
6299
|
+
strategy_id: string;
|
|
6300
|
+
updated_at: string;
|
|
6301
|
+
user_id: string;
|
|
6302
|
+
};
|
|
6303
|
+
Insert: {
|
|
6304
|
+
condition_expression?: string | null;
|
|
6305
|
+
created_at?: string;
|
|
6306
|
+
end_date?: string | null;
|
|
6307
|
+
id?: string;
|
|
6308
|
+
is_enabled?: boolean;
|
|
6309
|
+
priority?: number;
|
|
6310
|
+
rule_type: string;
|
|
6311
|
+
start_date?: string | null;
|
|
6312
|
+
strategy_id: string;
|
|
6313
|
+
updated_at?: string;
|
|
6314
|
+
user_id: string;
|
|
6315
|
+
};
|
|
6316
|
+
Update: {
|
|
6317
|
+
condition_expression?: string | null;
|
|
6318
|
+
created_at?: string;
|
|
6319
|
+
end_date?: string | null;
|
|
6320
|
+
id?: string;
|
|
6321
|
+
is_enabled?: boolean;
|
|
6322
|
+
priority?: number;
|
|
6323
|
+
rule_type?: string;
|
|
6324
|
+
start_date?: string | null;
|
|
6325
|
+
strategy_id?: string;
|
|
6326
|
+
updated_at?: string;
|
|
6327
|
+
user_id?: string;
|
|
6328
|
+
};
|
|
6329
|
+
Relationships: [
|
|
6330
|
+
{
|
|
6331
|
+
foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
|
|
6332
|
+
columns: ["strategy_id"];
|
|
6333
|
+
isOneToOne: false;
|
|
6334
|
+
referencedRelation: "logistics_strategies";
|
|
6335
|
+
referencedColumns: ["id"];
|
|
6336
|
+
}
|
|
6337
|
+
];
|
|
6338
|
+
};
|
|
6339
|
+
logistics_variables: {
|
|
6340
|
+
Row: {
|
|
6341
|
+
created_at: string;
|
|
6342
|
+
default_value: string | null;
|
|
6343
|
+
description: string | null;
|
|
6344
|
+
id: string;
|
|
6345
|
+
is_builtin: boolean;
|
|
6346
|
+
key: string;
|
|
6347
|
+
label: string;
|
|
6348
|
+
updated_at: string;
|
|
6349
|
+
user_id: string;
|
|
6350
|
+
value_type: string;
|
|
6351
|
+
};
|
|
6352
|
+
Insert: {
|
|
6353
|
+
created_at?: string;
|
|
6354
|
+
default_value?: string | null;
|
|
6355
|
+
description?: string | null;
|
|
6356
|
+
id?: string;
|
|
6357
|
+
is_builtin?: boolean;
|
|
6358
|
+
key: string;
|
|
6359
|
+
label: string;
|
|
6360
|
+
updated_at?: string;
|
|
6361
|
+
user_id: string;
|
|
6362
|
+
value_type: string;
|
|
6363
|
+
};
|
|
6364
|
+
Update: {
|
|
6365
|
+
created_at?: string;
|
|
6366
|
+
default_value?: string | null;
|
|
6367
|
+
description?: string | null;
|
|
6368
|
+
id?: string;
|
|
6369
|
+
is_builtin?: boolean;
|
|
6370
|
+
key?: string;
|
|
6371
|
+
label?: string;
|
|
6372
|
+
updated_at?: string;
|
|
6373
|
+
user_id?: string;
|
|
6374
|
+
value_type?: string;
|
|
6375
|
+
};
|
|
6376
|
+
Relationships: [];
|
|
6377
|
+
};
|
|
6378
|
+
mailbox_messages: {
|
|
6379
|
+
Row: {
|
|
6380
|
+
body_html: string | null;
|
|
6381
|
+
body_text: string | null;
|
|
6382
|
+
connection_id: string | null;
|
|
6383
|
+
created_at: string;
|
|
6384
|
+
error_message: string | null;
|
|
6385
|
+
external_id: string | null;
|
|
6386
|
+
from_email: string | null;
|
|
6387
|
+
from_name: string | null;
|
|
6388
|
+
id: string;
|
|
6389
|
+
message_id: string | null;
|
|
6390
|
+
profile_id: string | null;
|
|
6391
|
+
raw_size: number | null;
|
|
6392
|
+
received_at: string | null;
|
|
6393
|
+
status: string;
|
|
6394
|
+
subject: string | null;
|
|
6395
|
+
uid: number | null;
|
|
6396
|
+
updated_at: string;
|
|
6397
|
+
};
|
|
6398
|
+
Insert: {
|
|
6399
|
+
body_html?: string | null;
|
|
6400
|
+
body_text?: string | null;
|
|
6401
|
+
connection_id?: string | null;
|
|
6402
|
+
created_at?: string;
|
|
6403
|
+
error_message?: string | null;
|
|
6404
|
+
external_id?: string | null;
|
|
6405
|
+
from_email?: string | null;
|
|
6406
|
+
from_name?: string | null;
|
|
6407
|
+
id?: string;
|
|
6408
|
+
message_id?: string | null;
|
|
6409
|
+
profile_id?: string | null;
|
|
6410
|
+
raw_size?: number | null;
|
|
6411
|
+
received_at?: string | null;
|
|
6412
|
+
status?: string;
|
|
6413
|
+
subject?: string | null;
|
|
6414
|
+
uid?: number | null;
|
|
6415
|
+
updated_at?: string;
|
|
6416
|
+
};
|
|
6417
|
+
Update: {
|
|
6418
|
+
body_html?: string | null;
|
|
6419
|
+
body_text?: string | null;
|
|
6420
|
+
connection_id?: string | null;
|
|
6421
|
+
created_at?: string;
|
|
6422
|
+
error_message?: string | null;
|
|
6423
|
+
external_id?: string | null;
|
|
6424
|
+
from_email?: string | null;
|
|
6425
|
+
from_name?: string | null;
|
|
6426
|
+
id?: string;
|
|
6427
|
+
message_id?: string | null;
|
|
6428
|
+
profile_id?: string | null;
|
|
6429
|
+
raw_size?: number | null;
|
|
6430
|
+
received_at?: string | null;
|
|
6431
|
+
status?: string;
|
|
6432
|
+
subject?: string | null;
|
|
6433
|
+
uid?: number | null;
|
|
6434
|
+
updated_at?: string;
|
|
6435
|
+
};
|
|
6436
|
+
Relationships: [
|
|
6437
|
+
{
|
|
6438
|
+
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
6439
|
+
columns: ["connection_id"];
|
|
6440
|
+
isOneToOne: false;
|
|
6441
|
+
referencedRelation: "email_auth_connections";
|
|
6442
|
+
referencedColumns: ["id"];
|
|
6443
|
+
},
|
|
6444
|
+
{
|
|
6445
|
+
foreignKeyName: "mailbox_messages_connection_id_fkey";
|
|
6446
|
+
columns: ["connection_id"];
|
|
6447
|
+
isOneToOne: false;
|
|
6448
|
+
referencedRelation: "email_auth_connections_safe";
|
|
6449
|
+
referencedColumns: ["id"];
|
|
6450
|
+
},
|
|
6451
|
+
{
|
|
6452
|
+
foreignKeyName: "mailbox_messages_profile_id_fkey";
|
|
6453
|
+
columns: ["profile_id"];
|
|
6454
|
+
isOneToOne: false;
|
|
6455
|
+
referencedRelation: "imap_profiles";
|
|
6456
|
+
referencedColumns: ["id"];
|
|
6457
|
+
}
|
|
6458
|
+
];
|
|
6459
|
+
};
|
|
6460
|
+
mailbox_order_proposals: {
|
|
6461
|
+
Row: {
|
|
6462
|
+
confidence: number | null;
|
|
6463
|
+
created_at: string;
|
|
6464
|
+
created_order_id: string | null;
|
|
6465
|
+
delivery_date: string | null;
|
|
6466
|
+
id: string;
|
|
6467
|
+
matched_customer_id: string | null;
|
|
6468
|
+
message_id: string;
|
|
6469
|
+
notes: string | null;
|
|
6470
|
+
order_number: string | null;
|
|
6471
|
+
parsed_payload: Json | null;
|
|
6472
|
+
reviewed_at: string | null;
|
|
6473
|
+
reviewed_by: string | null;
|
|
6474
|
+
status: string;
|
|
6475
|
+
updated_at: string;
|
|
6476
|
+
};
|
|
6477
|
+
Insert: {
|
|
6478
|
+
confidence?: number | null;
|
|
6479
|
+
created_at?: string;
|
|
6480
|
+
created_order_id?: string | null;
|
|
5847
6481
|
delivery_date?: string | null;
|
|
5848
6482
|
id?: string;
|
|
5849
6483
|
matched_customer_id?: string | null;
|
|
@@ -6153,39 +6787,62 @@ export type Database = {
|
|
|
6153
6787
|
};
|
|
6154
6788
|
manufacture_products: {
|
|
6155
6789
|
Row: {
|
|
6790
|
+
aantal_te_produceren: number;
|
|
6156
6791
|
created_at: string;
|
|
6157
6792
|
description: string | null;
|
|
6158
6793
|
id: string;
|
|
6159
6794
|
is_active: boolean;
|
|
6795
|
+
location_id: string | null;
|
|
6160
6796
|
name: string;
|
|
6797
|
+
partij_nummer: string | null;
|
|
6798
|
+
photos: Json;
|
|
6161
6799
|
produced_stock: number;
|
|
6162
6800
|
product_code: string;
|
|
6163
6801
|
tenant_id: string;
|
|
6802
|
+
unit: string;
|
|
6164
6803
|
updated_at: string;
|
|
6165
6804
|
};
|
|
6166
6805
|
Insert: {
|
|
6806
|
+
aantal_te_produceren?: number;
|
|
6167
6807
|
created_at?: string;
|
|
6168
6808
|
description?: string | null;
|
|
6169
6809
|
id?: string;
|
|
6170
6810
|
is_active?: boolean;
|
|
6811
|
+
location_id?: string | null;
|
|
6171
6812
|
name: string;
|
|
6813
|
+
partij_nummer?: string | null;
|
|
6814
|
+
photos?: Json;
|
|
6172
6815
|
produced_stock?: number;
|
|
6173
6816
|
product_code: string;
|
|
6174
6817
|
tenant_id: string;
|
|
6818
|
+
unit?: string;
|
|
6175
6819
|
updated_at?: string;
|
|
6176
6820
|
};
|
|
6177
6821
|
Update: {
|
|
6822
|
+
aantal_te_produceren?: number;
|
|
6178
6823
|
created_at?: string;
|
|
6179
6824
|
description?: string | null;
|
|
6180
6825
|
id?: string;
|
|
6181
6826
|
is_active?: boolean;
|
|
6827
|
+
location_id?: string | null;
|
|
6182
6828
|
name?: string;
|
|
6829
|
+
partij_nummer?: string | null;
|
|
6830
|
+
photos?: Json;
|
|
6183
6831
|
produced_stock?: number;
|
|
6184
6832
|
product_code?: string;
|
|
6185
6833
|
tenant_id?: string;
|
|
6834
|
+
unit?: string;
|
|
6186
6835
|
updated_at?: string;
|
|
6187
6836
|
};
|
|
6188
|
-
Relationships: [
|
|
6837
|
+
Relationships: [
|
|
6838
|
+
{
|
|
6839
|
+
foreignKeyName: "manufacture_products_location_id_fkey";
|
|
6840
|
+
columns: ["location_id"];
|
|
6841
|
+
isOneToOne: false;
|
|
6842
|
+
referencedRelation: "locations";
|
|
6843
|
+
referencedColumns: ["id"];
|
|
6844
|
+
}
|
|
6845
|
+
];
|
|
6189
6846
|
};
|
|
6190
6847
|
monteurs: {
|
|
6191
6848
|
Row: {
|
|
@@ -6941,6 +7598,42 @@ export type Database = {
|
|
|
6941
7598
|
};
|
|
6942
7599
|
Relationships: [];
|
|
6943
7600
|
};
|
|
7601
|
+
order_buffers: {
|
|
7602
|
+
Row: {
|
|
7603
|
+
buffer_key: string;
|
|
7604
|
+
created_at: string;
|
|
7605
|
+
customer_id: string | null;
|
|
7606
|
+
grouping_mode: string;
|
|
7607
|
+
id: string;
|
|
7608
|
+
pickup_date: string | null;
|
|
7609
|
+
pickup_location: string | null;
|
|
7610
|
+
plan_locked_at: string | null;
|
|
7611
|
+
updated_at: string;
|
|
7612
|
+
};
|
|
7613
|
+
Insert: {
|
|
7614
|
+
buffer_key: string;
|
|
7615
|
+
created_at?: string;
|
|
7616
|
+
customer_id?: string | null;
|
|
7617
|
+
grouping_mode: string;
|
|
7618
|
+
id?: string;
|
|
7619
|
+
pickup_date?: string | null;
|
|
7620
|
+
pickup_location?: string | null;
|
|
7621
|
+
plan_locked_at?: string | null;
|
|
7622
|
+
updated_at?: string;
|
|
7623
|
+
};
|
|
7624
|
+
Update: {
|
|
7625
|
+
buffer_key?: string;
|
|
7626
|
+
created_at?: string;
|
|
7627
|
+
customer_id?: string | null;
|
|
7628
|
+
grouping_mode?: string;
|
|
7629
|
+
id?: string;
|
|
7630
|
+
pickup_date?: string | null;
|
|
7631
|
+
pickup_location?: string | null;
|
|
7632
|
+
plan_locked_at?: string | null;
|
|
7633
|
+
updated_at?: string;
|
|
7634
|
+
};
|
|
7635
|
+
Relationships: [];
|
|
7636
|
+
};
|
|
6944
7637
|
order_cart_items: {
|
|
6945
7638
|
Row: {
|
|
6946
7639
|
cart_id: string;
|
|
@@ -7011,6 +7704,7 @@ export type Database = {
|
|
|
7011
7704
|
order_carts: {
|
|
7012
7705
|
Row: {
|
|
7013
7706
|
algorithm_version: number;
|
|
7707
|
+
buffer_id: string | null;
|
|
7014
7708
|
cart_number: number;
|
|
7015
7709
|
created_at: string;
|
|
7016
7710
|
id: string;
|
|
@@ -7018,13 +7712,14 @@ export type Database = {
|
|
|
7018
7712
|
is_complete: boolean;
|
|
7019
7713
|
notes: string | null;
|
|
7020
7714
|
occupancy_pct: number;
|
|
7021
|
-
order_id: string;
|
|
7715
|
+
order_id: string | null;
|
|
7022
7716
|
source: string;
|
|
7023
7717
|
total_layers_used: number;
|
|
7024
7718
|
updated_at: string;
|
|
7025
7719
|
};
|
|
7026
7720
|
Insert: {
|
|
7027
7721
|
algorithm_version?: number;
|
|
7722
|
+
buffer_id?: string | null;
|
|
7028
7723
|
cart_number: number;
|
|
7029
7724
|
created_at?: string;
|
|
7030
7725
|
id?: string;
|
|
@@ -7032,13 +7727,14 @@ export type Database = {
|
|
|
7032
7727
|
is_complete?: boolean;
|
|
7033
7728
|
notes?: string | null;
|
|
7034
7729
|
occupancy_pct?: number;
|
|
7035
|
-
order_id
|
|
7730
|
+
order_id?: string | null;
|
|
7036
7731
|
source?: string;
|
|
7037
7732
|
total_layers_used?: number;
|
|
7038
7733
|
updated_at?: string;
|
|
7039
7734
|
};
|
|
7040
7735
|
Update: {
|
|
7041
7736
|
algorithm_version?: number;
|
|
7737
|
+
buffer_id?: string | null;
|
|
7042
7738
|
cart_number?: number;
|
|
7043
7739
|
created_at?: string;
|
|
7044
7740
|
id?: string;
|
|
@@ -7046,12 +7742,19 @@ export type Database = {
|
|
|
7046
7742
|
is_complete?: boolean;
|
|
7047
7743
|
notes?: string | null;
|
|
7048
7744
|
occupancy_pct?: number;
|
|
7049
|
-
order_id?: string;
|
|
7745
|
+
order_id?: string | null;
|
|
7050
7746
|
source?: string;
|
|
7051
7747
|
total_layers_used?: number;
|
|
7052
7748
|
updated_at?: string;
|
|
7053
7749
|
};
|
|
7054
7750
|
Relationships: [
|
|
7751
|
+
{
|
|
7752
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7753
|
+
columns: ["buffer_id"];
|
|
7754
|
+
isOneToOne: false;
|
|
7755
|
+
referencedRelation: "order_buffers";
|
|
7756
|
+
referencedColumns: ["id"];
|
|
7757
|
+
},
|
|
7055
7758
|
{
|
|
7056
7759
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7057
7760
|
columns: ["order_id"];
|
|
@@ -7195,15 +7898,123 @@ export type Database = {
|
|
|
7195
7898
|
};
|
|
7196
7899
|
Relationships: [];
|
|
7197
7900
|
};
|
|
7901
|
+
order_shipment_items: {
|
|
7902
|
+
Row: {
|
|
7903
|
+
created_at: string;
|
|
7904
|
+
id: string;
|
|
7905
|
+
order_item_id: string;
|
|
7906
|
+
product_id: string | null;
|
|
7907
|
+
product_name: string;
|
|
7908
|
+
quantity: number;
|
|
7909
|
+
shipment_id: string;
|
|
7910
|
+
updated_at: string;
|
|
7911
|
+
};
|
|
7912
|
+
Insert: {
|
|
7913
|
+
created_at?: string;
|
|
7914
|
+
id?: string;
|
|
7915
|
+
order_item_id: string;
|
|
7916
|
+
product_id?: string | null;
|
|
7917
|
+
product_name: string;
|
|
7918
|
+
quantity: number;
|
|
7919
|
+
shipment_id: string;
|
|
7920
|
+
updated_at?: string;
|
|
7921
|
+
};
|
|
7922
|
+
Update: {
|
|
7923
|
+
created_at?: string;
|
|
7924
|
+
id?: string;
|
|
7925
|
+
order_item_id?: string;
|
|
7926
|
+
product_id?: string | null;
|
|
7927
|
+
product_name?: string;
|
|
7928
|
+
quantity?: number;
|
|
7929
|
+
shipment_id?: string;
|
|
7930
|
+
updated_at?: string;
|
|
7931
|
+
};
|
|
7932
|
+
Relationships: [
|
|
7933
|
+
{
|
|
7934
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
7935
|
+
columns: ["order_item_id"];
|
|
7936
|
+
isOneToOne: false;
|
|
7937
|
+
referencedRelation: "order_items";
|
|
7938
|
+
referencedColumns: ["id"];
|
|
7939
|
+
},
|
|
7940
|
+
{
|
|
7941
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
7942
|
+
columns: ["shipment_id"];
|
|
7943
|
+
isOneToOne: false;
|
|
7944
|
+
referencedRelation: "order_shipments";
|
|
7945
|
+
referencedColumns: ["id"];
|
|
7946
|
+
}
|
|
7947
|
+
];
|
|
7948
|
+
};
|
|
7949
|
+
order_shipments: {
|
|
7950
|
+
Row: {
|
|
7951
|
+
carrier_id: string | null;
|
|
7952
|
+
created_at: string;
|
|
7953
|
+
delivery_date: string | null;
|
|
7954
|
+
delivery_location_id: string | null;
|
|
7955
|
+
id: string;
|
|
7956
|
+
notes: string | null;
|
|
7957
|
+
order_id: string;
|
|
7958
|
+
shipment_number: number;
|
|
7959
|
+
shipped_at: string | null;
|
|
7960
|
+
status: string;
|
|
7961
|
+
updated_at: string;
|
|
7962
|
+
};
|
|
7963
|
+
Insert: {
|
|
7964
|
+
carrier_id?: string | null;
|
|
7965
|
+
created_at?: string;
|
|
7966
|
+
delivery_date?: string | null;
|
|
7967
|
+
delivery_location_id?: string | null;
|
|
7968
|
+
id?: string;
|
|
7969
|
+
notes?: string | null;
|
|
7970
|
+
order_id: string;
|
|
7971
|
+
shipment_number: number;
|
|
7972
|
+
shipped_at?: string | null;
|
|
7973
|
+
status?: string;
|
|
7974
|
+
updated_at?: string;
|
|
7975
|
+
};
|
|
7976
|
+
Update: {
|
|
7977
|
+
carrier_id?: string | null;
|
|
7978
|
+
created_at?: string;
|
|
7979
|
+
delivery_date?: string | null;
|
|
7980
|
+
delivery_location_id?: string | null;
|
|
7981
|
+
id?: string;
|
|
7982
|
+
notes?: string | null;
|
|
7983
|
+
order_id?: string;
|
|
7984
|
+
shipment_number?: number;
|
|
7985
|
+
shipped_at?: string | null;
|
|
7986
|
+
status?: string;
|
|
7987
|
+
updated_at?: string;
|
|
7988
|
+
};
|
|
7989
|
+
Relationships: [
|
|
7990
|
+
{
|
|
7991
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
7992
|
+
columns: ["carrier_id"];
|
|
7993
|
+
isOneToOne: false;
|
|
7994
|
+
referencedRelation: "carriers";
|
|
7995
|
+
referencedColumns: ["id"];
|
|
7996
|
+
},
|
|
7997
|
+
{
|
|
7998
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
7999
|
+
columns: ["order_id"];
|
|
8000
|
+
isOneToOne: false;
|
|
8001
|
+
referencedRelation: "orders";
|
|
8002
|
+
referencedColumns: ["id"];
|
|
8003
|
+
}
|
|
8004
|
+
];
|
|
8005
|
+
};
|
|
7198
8006
|
orders: {
|
|
7199
8007
|
Row: {
|
|
8008
|
+
buffer_id: string | null;
|
|
7200
8009
|
created_at: string;
|
|
7201
8010
|
custom_fields: Json;
|
|
7202
8011
|
customer_id: string | null;
|
|
7203
8012
|
customer_name: string;
|
|
7204
8013
|
deleted_at: string | null;
|
|
7205
|
-
delivery_date: string;
|
|
8014
|
+
delivery_date: string | null;
|
|
8015
|
+
floriday_sales_order_id: string | null;
|
|
7206
8016
|
id: string;
|
|
8017
|
+
is_reservation: boolean;
|
|
7207
8018
|
notes: string | null;
|
|
7208
8019
|
order_date: string;
|
|
7209
8020
|
order_number: string;
|
|
@@ -7215,13 +8026,16 @@ export type Database = {
|
|
|
7215
8026
|
updated_at: string;
|
|
7216
8027
|
};
|
|
7217
8028
|
Insert: {
|
|
8029
|
+
buffer_id?: string | null;
|
|
7218
8030
|
created_at?: string;
|
|
7219
8031
|
custom_fields?: Json;
|
|
7220
8032
|
customer_id?: string | null;
|
|
7221
8033
|
customer_name?: string;
|
|
7222
8034
|
deleted_at?: string | null;
|
|
7223
|
-
delivery_date
|
|
8035
|
+
delivery_date?: string | null;
|
|
8036
|
+
floriday_sales_order_id?: string | null;
|
|
7224
8037
|
id?: string;
|
|
8038
|
+
is_reservation?: boolean;
|
|
7225
8039
|
notes?: string | null;
|
|
7226
8040
|
order_date?: string;
|
|
7227
8041
|
order_number: string;
|
|
@@ -7233,13 +8047,16 @@ export type Database = {
|
|
|
7233
8047
|
updated_at?: string;
|
|
7234
8048
|
};
|
|
7235
8049
|
Update: {
|
|
8050
|
+
buffer_id?: string | null;
|
|
7236
8051
|
created_at?: string;
|
|
7237
8052
|
custom_fields?: Json;
|
|
7238
8053
|
customer_id?: string | null;
|
|
7239
8054
|
customer_name?: string;
|
|
7240
8055
|
deleted_at?: string | null;
|
|
7241
|
-
delivery_date?: string;
|
|
8056
|
+
delivery_date?: string | null;
|
|
8057
|
+
floriday_sales_order_id?: string | null;
|
|
7242
8058
|
id?: string;
|
|
8059
|
+
is_reservation?: boolean;
|
|
7243
8060
|
notes?: string | null;
|
|
7244
8061
|
order_date?: string;
|
|
7245
8062
|
order_number?: string;
|
|
@@ -7251,6 +8068,13 @@ export type Database = {
|
|
|
7251
8068
|
updated_at?: string;
|
|
7252
8069
|
};
|
|
7253
8070
|
Relationships: [
|
|
8071
|
+
{
|
|
8072
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8073
|
+
columns: ["buffer_id"];
|
|
8074
|
+
isOneToOne: false;
|
|
8075
|
+
referencedRelation: "order_buffers";
|
|
8076
|
+
referencedColumns: ["id"];
|
|
8077
|
+
},
|
|
7254
8078
|
{
|
|
7255
8079
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7256
8080
|
columns: ["customer_id"];
|
|
@@ -7383,6 +8207,69 @@ export type Database = {
|
|
|
7383
8207
|
};
|
|
7384
8208
|
Relationships: [];
|
|
7385
8209
|
};
|
|
8210
|
+
product_bom_items: {
|
|
8211
|
+
Row: {
|
|
8212
|
+
component_product_id: string | null;
|
|
8213
|
+
component_trade_item_floriday_id: string | null;
|
|
8214
|
+
created_at: string;
|
|
8215
|
+
id: string;
|
|
8216
|
+
notes: string | null;
|
|
8217
|
+
packing_configuration_id: string | null;
|
|
8218
|
+
parent_product_id: string | null;
|
|
8219
|
+
parent_trade_item_floriday_id: string | null;
|
|
8220
|
+
quantity: number;
|
|
8221
|
+
sort_order: number;
|
|
8222
|
+
tenant_id: string;
|
|
8223
|
+
unit: string;
|
|
8224
|
+
updated_at: string;
|
|
8225
|
+
};
|
|
8226
|
+
Insert: {
|
|
8227
|
+
component_product_id?: string | null;
|
|
8228
|
+
component_trade_item_floriday_id?: string | null;
|
|
8229
|
+
created_at?: string;
|
|
8230
|
+
id?: string;
|
|
8231
|
+
notes?: string | null;
|
|
8232
|
+
packing_configuration_id?: string | null;
|
|
8233
|
+
parent_product_id?: string | null;
|
|
8234
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8235
|
+
quantity?: number;
|
|
8236
|
+
sort_order?: number;
|
|
8237
|
+
tenant_id: string;
|
|
8238
|
+
unit?: string;
|
|
8239
|
+
updated_at?: string;
|
|
8240
|
+
};
|
|
8241
|
+
Update: {
|
|
8242
|
+
component_product_id?: string | null;
|
|
8243
|
+
component_trade_item_floriday_id?: string | null;
|
|
8244
|
+
created_at?: string;
|
|
8245
|
+
id?: string;
|
|
8246
|
+
notes?: string | null;
|
|
8247
|
+
packing_configuration_id?: string | null;
|
|
8248
|
+
parent_product_id?: string | null;
|
|
8249
|
+
parent_trade_item_floriday_id?: string | null;
|
|
8250
|
+
quantity?: number;
|
|
8251
|
+
sort_order?: number;
|
|
8252
|
+
tenant_id?: string;
|
|
8253
|
+
unit?: string;
|
|
8254
|
+
updated_at?: string;
|
|
8255
|
+
};
|
|
8256
|
+
Relationships: [
|
|
8257
|
+
{
|
|
8258
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
8259
|
+
columns: ["component_product_id"];
|
|
8260
|
+
isOneToOne: false;
|
|
8261
|
+
referencedRelation: "products";
|
|
8262
|
+
referencedColumns: ["id"];
|
|
8263
|
+
},
|
|
8264
|
+
{
|
|
8265
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
8266
|
+
columns: ["parent_product_id"];
|
|
8267
|
+
isOneToOne: false;
|
|
8268
|
+
referencedRelation: "products";
|
|
8269
|
+
referencedColumns: ["id"];
|
|
8270
|
+
}
|
|
8271
|
+
];
|
|
8272
|
+
};
|
|
7386
8273
|
product_categories: {
|
|
7387
8274
|
Row: {
|
|
7388
8275
|
color: string;
|
|
@@ -7490,6 +8377,7 @@ export type Database = {
|
|
|
7490
8377
|
id: string;
|
|
7491
8378
|
product_group_id: string;
|
|
7492
8379
|
quantity: number;
|
|
8380
|
+
sort_order: number;
|
|
7493
8381
|
trade_item_id: string;
|
|
7494
8382
|
};
|
|
7495
8383
|
Insert: {
|
|
@@ -7497,65 +8385,188 @@ export type Database = {
|
|
|
7497
8385
|
id?: string;
|
|
7498
8386
|
product_group_id: string;
|
|
7499
8387
|
quantity?: number;
|
|
8388
|
+
sort_order?: number;
|
|
7500
8389
|
trade_item_id: string;
|
|
7501
8390
|
};
|
|
7502
8391
|
Update: {
|
|
7503
8392
|
created_at?: string;
|
|
7504
8393
|
id?: string;
|
|
7505
|
-
product_group_id?: string;
|
|
7506
|
-
quantity?: number;
|
|
7507
|
-
|
|
8394
|
+
product_group_id?: string;
|
|
8395
|
+
quantity?: number;
|
|
8396
|
+
sort_order?: number;
|
|
8397
|
+
trade_item_id?: string;
|
|
8398
|
+
};
|
|
8399
|
+
Relationships: [
|
|
8400
|
+
{
|
|
8401
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
8402
|
+
columns: ["product_group_id"];
|
|
8403
|
+
isOneToOne: false;
|
|
8404
|
+
referencedRelation: "product_groups";
|
|
8405
|
+
referencedColumns: ["id"];
|
|
8406
|
+
}
|
|
8407
|
+
];
|
|
8408
|
+
};
|
|
8409
|
+
product_groups: {
|
|
8410
|
+
Row: {
|
|
8411
|
+
created_at: string;
|
|
8412
|
+
description: string | null;
|
|
8413
|
+
head_product_id: string | null;
|
|
8414
|
+
head_trade_item_floriday_id: string | null;
|
|
8415
|
+
id: string;
|
|
8416
|
+
is_active: boolean;
|
|
8417
|
+
name: string;
|
|
8418
|
+
tenant_id: string;
|
|
8419
|
+
updated_at: string;
|
|
8420
|
+
};
|
|
8421
|
+
Insert: {
|
|
8422
|
+
created_at?: string;
|
|
8423
|
+
description?: string | null;
|
|
8424
|
+
head_product_id?: string | null;
|
|
8425
|
+
head_trade_item_floriday_id?: string | null;
|
|
8426
|
+
id?: string;
|
|
8427
|
+
is_active?: boolean;
|
|
8428
|
+
name: string;
|
|
8429
|
+
tenant_id: string;
|
|
8430
|
+
updated_at?: string;
|
|
8431
|
+
};
|
|
8432
|
+
Update: {
|
|
8433
|
+
created_at?: string;
|
|
8434
|
+
description?: string | null;
|
|
8435
|
+
head_product_id?: string | null;
|
|
8436
|
+
head_trade_item_floriday_id?: string | null;
|
|
8437
|
+
id?: string;
|
|
8438
|
+
is_active?: boolean;
|
|
8439
|
+
name?: string;
|
|
8440
|
+
tenant_id?: string;
|
|
8441
|
+
updated_at?: string;
|
|
7508
8442
|
};
|
|
7509
8443
|
Relationships: [
|
|
7510
8444
|
{
|
|
7511
|
-
foreignKeyName: "
|
|
7512
|
-
columns: ["
|
|
8445
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8446
|
+
columns: ["head_product_id"];
|
|
7513
8447
|
isOneToOne: false;
|
|
7514
|
-
referencedRelation: "
|
|
8448
|
+
referencedRelation: "products";
|
|
7515
8449
|
referencedColumns: ["id"];
|
|
7516
8450
|
}
|
|
7517
8451
|
];
|
|
7518
8452
|
};
|
|
7519
|
-
|
|
8453
|
+
product_load_settings: {
|
|
7520
8454
|
Row: {
|
|
7521
8455
|
created_at: string;
|
|
7522
|
-
description: string | null;
|
|
7523
8456
|
id: string;
|
|
7524
|
-
|
|
7525
|
-
|
|
8457
|
+
is_package: boolean;
|
|
8458
|
+
label: string | null;
|
|
8459
|
+
layers_per_load_carrier: number | null;
|
|
8460
|
+
load_carrier: string | null;
|
|
8461
|
+
package_id: string | null;
|
|
8462
|
+
package_label: string | null;
|
|
8463
|
+
packages_per_layer: number | null;
|
|
8464
|
+
packing_configuration_id: string;
|
|
8465
|
+
product_id: string | null;
|
|
7526
8466
|
tenant_id: string;
|
|
8467
|
+
trade_item_floriday_id: string | null;
|
|
8468
|
+
units_per_package: number | null;
|
|
7527
8469
|
updated_at: string;
|
|
7528
8470
|
};
|
|
7529
8471
|
Insert: {
|
|
7530
8472
|
created_at?: string;
|
|
7531
|
-
description?: string | null;
|
|
7532
8473
|
id?: string;
|
|
7533
|
-
|
|
7534
|
-
|
|
8474
|
+
is_package?: boolean;
|
|
8475
|
+
label?: string | null;
|
|
8476
|
+
layers_per_load_carrier?: number | null;
|
|
8477
|
+
load_carrier?: string | null;
|
|
8478
|
+
package_id?: string | null;
|
|
8479
|
+
package_label?: string | null;
|
|
8480
|
+
packages_per_layer?: number | null;
|
|
8481
|
+
packing_configuration_id?: string;
|
|
8482
|
+
product_id?: string | null;
|
|
7535
8483
|
tenant_id: string;
|
|
8484
|
+
trade_item_floriday_id?: string | null;
|
|
8485
|
+
units_per_package?: number | null;
|
|
7536
8486
|
updated_at?: string;
|
|
7537
8487
|
};
|
|
7538
8488
|
Update: {
|
|
7539
8489
|
created_at?: string;
|
|
7540
|
-
description?: string | null;
|
|
7541
8490
|
id?: string;
|
|
7542
|
-
|
|
7543
|
-
|
|
8491
|
+
is_package?: boolean;
|
|
8492
|
+
label?: string | null;
|
|
8493
|
+
layers_per_load_carrier?: number | null;
|
|
8494
|
+
load_carrier?: string | null;
|
|
8495
|
+
package_id?: string | null;
|
|
8496
|
+
package_label?: string | null;
|
|
8497
|
+
packages_per_layer?: number | null;
|
|
8498
|
+
packing_configuration_id?: string;
|
|
8499
|
+
product_id?: string | null;
|
|
7544
8500
|
tenant_id?: string;
|
|
8501
|
+
trade_item_floriday_id?: string | null;
|
|
8502
|
+
units_per_package?: number | null;
|
|
7545
8503
|
updated_at?: string;
|
|
7546
8504
|
};
|
|
8505
|
+
Relationships: [
|
|
8506
|
+
{
|
|
8507
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
8508
|
+
columns: ["package_id"];
|
|
8509
|
+
isOneToOne: false;
|
|
8510
|
+
referencedRelation: "packages";
|
|
8511
|
+
referencedColumns: ["id"];
|
|
8512
|
+
},
|
|
8513
|
+
{
|
|
8514
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
8515
|
+
columns: ["product_id"];
|
|
8516
|
+
isOneToOne: false;
|
|
8517
|
+
referencedRelation: "products";
|
|
8518
|
+
referencedColumns: ["id"];
|
|
8519
|
+
}
|
|
8520
|
+
];
|
|
8521
|
+
};
|
|
8522
|
+
product_merge_log: {
|
|
8523
|
+
Row: {
|
|
8524
|
+
canonical_product_id: string | null;
|
|
8525
|
+
id: string;
|
|
8526
|
+
merged_at: string;
|
|
8527
|
+
merged_from_id: string;
|
|
8528
|
+
notes: string | null;
|
|
8529
|
+
snapshot: Json;
|
|
8530
|
+
source_table: string;
|
|
8531
|
+
status: string;
|
|
8532
|
+
};
|
|
8533
|
+
Insert: {
|
|
8534
|
+
canonical_product_id?: string | null;
|
|
8535
|
+
id?: string;
|
|
8536
|
+
merged_at?: string;
|
|
8537
|
+
merged_from_id: string;
|
|
8538
|
+
notes?: string | null;
|
|
8539
|
+
snapshot?: Json;
|
|
8540
|
+
source_table: string;
|
|
8541
|
+
status?: string;
|
|
8542
|
+
};
|
|
8543
|
+
Update: {
|
|
8544
|
+
canonical_product_id?: string | null;
|
|
8545
|
+
id?: string;
|
|
8546
|
+
merged_at?: string;
|
|
8547
|
+
merged_from_id?: string;
|
|
8548
|
+
notes?: string | null;
|
|
8549
|
+
snapshot?: Json;
|
|
8550
|
+
source_table?: string;
|
|
8551
|
+
status?: string;
|
|
8552
|
+
};
|
|
7547
8553
|
Relationships: [];
|
|
7548
8554
|
};
|
|
7549
8555
|
products: {
|
|
7550
8556
|
Row: {
|
|
8557
|
+
article_number: string | null;
|
|
7551
8558
|
barcode: string | null;
|
|
7552
8559
|
batch: string;
|
|
7553
8560
|
crates_per_layer: number;
|
|
7554
8561
|
created_at: string;
|
|
7555
8562
|
custom_fields: Json;
|
|
8563
|
+
floriday_active: boolean;
|
|
8564
|
+
floriday_payload: Json;
|
|
8565
|
+
floriday_trade_item_id: string | null;
|
|
7556
8566
|
id: string;
|
|
7557
8567
|
image_url: string | null;
|
|
7558
8568
|
incoming_quantity: number;
|
|
8569
|
+
is_layer: boolean;
|
|
7559
8570
|
layers_per_cart: number;
|
|
7560
8571
|
location: string;
|
|
7561
8572
|
min_quantity: number;
|
|
@@ -7568,17 +8579,24 @@ export type Database = {
|
|
|
7568
8579
|
trade_item_key: string | null;
|
|
7569
8580
|
unit: string;
|
|
7570
8581
|
updated_at: string;
|
|
8582
|
+
vat_code: string | null;
|
|
8583
|
+
vat_rate: number | null;
|
|
7571
8584
|
weight: string | null;
|
|
7572
8585
|
};
|
|
7573
8586
|
Insert: {
|
|
8587
|
+
article_number?: string | null;
|
|
7574
8588
|
barcode?: string | null;
|
|
7575
8589
|
batch: string;
|
|
7576
8590
|
crates_per_layer?: number;
|
|
7577
8591
|
created_at?: string;
|
|
7578
8592
|
custom_fields?: Json;
|
|
8593
|
+
floriday_active?: boolean;
|
|
8594
|
+
floriday_payload?: Json;
|
|
8595
|
+
floriday_trade_item_id?: string | null;
|
|
7579
8596
|
id?: string;
|
|
7580
8597
|
image_url?: string | null;
|
|
7581
8598
|
incoming_quantity?: number;
|
|
8599
|
+
is_layer?: boolean;
|
|
7582
8600
|
layers_per_cart?: number;
|
|
7583
8601
|
location: string;
|
|
7584
8602
|
min_quantity?: number;
|
|
@@ -7591,17 +8609,24 @@ export type Database = {
|
|
|
7591
8609
|
trade_item_key?: string | null;
|
|
7592
8610
|
unit?: string;
|
|
7593
8611
|
updated_at?: string;
|
|
8612
|
+
vat_code?: string | null;
|
|
8613
|
+
vat_rate?: number | null;
|
|
7594
8614
|
weight?: string | null;
|
|
7595
8615
|
};
|
|
7596
8616
|
Update: {
|
|
8617
|
+
article_number?: string | null;
|
|
7597
8618
|
barcode?: string | null;
|
|
7598
8619
|
batch?: string;
|
|
7599
8620
|
crates_per_layer?: number;
|
|
7600
8621
|
created_at?: string;
|
|
7601
8622
|
custom_fields?: Json;
|
|
8623
|
+
floriday_active?: boolean;
|
|
8624
|
+
floriday_payload?: Json;
|
|
8625
|
+
floriday_trade_item_id?: string | null;
|
|
7602
8626
|
id?: string;
|
|
7603
8627
|
image_url?: string | null;
|
|
7604
8628
|
incoming_quantity?: number;
|
|
8629
|
+
is_layer?: boolean;
|
|
7605
8630
|
layers_per_cart?: number;
|
|
7606
8631
|
location?: string;
|
|
7607
8632
|
min_quantity?: number;
|
|
@@ -7614,6 +8639,8 @@ export type Database = {
|
|
|
7614
8639
|
trade_item_key?: string | null;
|
|
7615
8640
|
unit?: string;
|
|
7616
8641
|
updated_at?: string;
|
|
8642
|
+
vat_code?: string | null;
|
|
8643
|
+
vat_rate?: number | null;
|
|
7617
8644
|
weight?: string | null;
|
|
7618
8645
|
};
|
|
7619
8646
|
Relationships: [];
|
|
@@ -8539,8 +9566,10 @@ export type Database = {
|
|
|
8539
9566
|
order_id: string | null;
|
|
8540
9567
|
order_item_id: string | null;
|
|
8541
9568
|
order_source: string | null;
|
|
9569
|
+
parent_trade_item_key: string | null;
|
|
8542
9570
|
physical_after: number | null;
|
|
8543
9571
|
physical_before: number | null;
|
|
9572
|
+
production_batch_id: string | null;
|
|
8544
9573
|
qty_delta: number;
|
|
8545
9574
|
reason: string | null;
|
|
8546
9575
|
reserved_after: number | null;
|
|
@@ -8556,8 +9585,10 @@ export type Database = {
|
|
|
8556
9585
|
order_id?: string | null;
|
|
8557
9586
|
order_item_id?: string | null;
|
|
8558
9587
|
order_source?: string | null;
|
|
9588
|
+
parent_trade_item_key?: string | null;
|
|
8559
9589
|
physical_after?: number | null;
|
|
8560
9590
|
physical_before?: number | null;
|
|
9591
|
+
production_batch_id?: string | null;
|
|
8561
9592
|
qty_delta: number;
|
|
8562
9593
|
reason?: string | null;
|
|
8563
9594
|
reserved_after?: number | null;
|
|
@@ -8573,8 +9604,10 @@ export type Database = {
|
|
|
8573
9604
|
order_id?: string | null;
|
|
8574
9605
|
order_item_id?: string | null;
|
|
8575
9606
|
order_source?: string | null;
|
|
9607
|
+
parent_trade_item_key?: string | null;
|
|
8576
9608
|
physical_after?: number | null;
|
|
8577
9609
|
physical_before?: number | null;
|
|
9610
|
+
production_batch_id?: string | null;
|
|
8578
9611
|
qty_delta?: number;
|
|
8579
9612
|
reason?: string | null;
|
|
8580
9613
|
reserved_after?: number | null;
|
|
@@ -8888,6 +9921,48 @@ export type Database = {
|
|
|
8888
9921
|
};
|
|
8889
9922
|
Relationships: [];
|
|
8890
9923
|
};
|
|
9924
|
+
trade_item_prices: {
|
|
9925
|
+
Row: {
|
|
9926
|
+
created_at: string;
|
|
9927
|
+
currency: string;
|
|
9928
|
+
id: string;
|
|
9929
|
+
last_push_error: string | null;
|
|
9930
|
+
last_pushed_at: string | null;
|
|
9931
|
+
price_group_id: string | null;
|
|
9932
|
+
price_per_piece: number;
|
|
9933
|
+
supply_line_id: string | null;
|
|
9934
|
+
trade_item_key: string;
|
|
9935
|
+
updated_at: string;
|
|
9936
|
+
user_id: string;
|
|
9937
|
+
};
|
|
9938
|
+
Insert: {
|
|
9939
|
+
created_at?: string;
|
|
9940
|
+
currency?: string;
|
|
9941
|
+
id?: string;
|
|
9942
|
+
last_push_error?: string | null;
|
|
9943
|
+
last_pushed_at?: string | null;
|
|
9944
|
+
price_group_id?: string | null;
|
|
9945
|
+
price_per_piece: number;
|
|
9946
|
+
supply_line_id?: string | null;
|
|
9947
|
+
trade_item_key: string;
|
|
9948
|
+
updated_at?: string;
|
|
9949
|
+
user_id: string;
|
|
9950
|
+
};
|
|
9951
|
+
Update: {
|
|
9952
|
+
created_at?: string;
|
|
9953
|
+
currency?: string;
|
|
9954
|
+
id?: string;
|
|
9955
|
+
last_push_error?: string | null;
|
|
9956
|
+
last_pushed_at?: string | null;
|
|
9957
|
+
price_group_id?: string | null;
|
|
9958
|
+
price_per_piece?: number;
|
|
9959
|
+
supply_line_id?: string | null;
|
|
9960
|
+
trade_item_key?: string;
|
|
9961
|
+
updated_at?: string;
|
|
9962
|
+
user_id?: string;
|
|
9963
|
+
};
|
|
9964
|
+
Relationships: [];
|
|
9965
|
+
};
|
|
8891
9966
|
trade_item_stock: {
|
|
8892
9967
|
Row: {
|
|
8893
9968
|
connection_id: string;
|
|
@@ -9043,7 +10118,7 @@ export type Database = {
|
|
|
9043
10118
|
twinfield_connections: {
|
|
9044
10119
|
Row: {
|
|
9045
10120
|
access_token: string | null;
|
|
9046
|
-
client_id: string;
|
|
10121
|
+
client_id: string | null;
|
|
9047
10122
|
client_secret: string | null;
|
|
9048
10123
|
cluster_uri: string | null;
|
|
9049
10124
|
company_code: string | null;
|
|
@@ -9055,7 +10130,7 @@ export type Database = {
|
|
|
9055
10130
|
is_active: boolean;
|
|
9056
10131
|
label: string | null;
|
|
9057
10132
|
office_code: string | null;
|
|
9058
|
-
redirect_uri: string;
|
|
10133
|
+
redirect_uri: string | null;
|
|
9059
10134
|
refresh_token: string | null;
|
|
9060
10135
|
token_expires_at: string | null;
|
|
9061
10136
|
updated_at: string;
|
|
@@ -9063,7 +10138,7 @@ export type Database = {
|
|
|
9063
10138
|
};
|
|
9064
10139
|
Insert: {
|
|
9065
10140
|
access_token?: string | null;
|
|
9066
|
-
client_id
|
|
10141
|
+
client_id?: string | null;
|
|
9067
10142
|
client_secret?: string | null;
|
|
9068
10143
|
cluster_uri?: string | null;
|
|
9069
10144
|
company_code?: string | null;
|
|
@@ -9075,7 +10150,7 @@ export type Database = {
|
|
|
9075
10150
|
is_active?: boolean;
|
|
9076
10151
|
label?: string | null;
|
|
9077
10152
|
office_code?: string | null;
|
|
9078
|
-
redirect_uri
|
|
10153
|
+
redirect_uri?: string | null;
|
|
9079
10154
|
refresh_token?: string | null;
|
|
9080
10155
|
token_expires_at?: string | null;
|
|
9081
10156
|
updated_at?: string;
|
|
@@ -9083,7 +10158,7 @@ export type Database = {
|
|
|
9083
10158
|
};
|
|
9084
10159
|
Update: {
|
|
9085
10160
|
access_token?: string | null;
|
|
9086
|
-
client_id?: string;
|
|
10161
|
+
client_id?: string | null;
|
|
9087
10162
|
client_secret?: string | null;
|
|
9088
10163
|
cluster_uri?: string | null;
|
|
9089
10164
|
company_code?: string | null;
|
|
@@ -9095,7 +10170,7 @@ export type Database = {
|
|
|
9095
10170
|
is_active?: boolean;
|
|
9096
10171
|
label?: string | null;
|
|
9097
10172
|
office_code?: string | null;
|
|
9098
|
-
redirect_uri?: string;
|
|
10173
|
+
redirect_uri?: string | null;
|
|
9099
10174
|
refresh_token?: string | null;
|
|
9100
10175
|
token_expires_at?: string | null;
|
|
9101
10176
|
updated_at?: string;
|
|
@@ -10312,25 +11387,6 @@ export type Database = {
|
|
|
10312
11387
|
};
|
|
10313
11388
|
Relationships: [];
|
|
10314
11389
|
};
|
|
10315
|
-
floriday_customer_discounts: {
|
|
10316
|
-
Row: {
|
|
10317
|
-
base_price: number | null;
|
|
10318
|
-
buyer_organization_id: string | null;
|
|
10319
|
-
currency: string | null;
|
|
10320
|
-
discount_type: string | null;
|
|
10321
|
-
discount_value: number | null;
|
|
10322
|
-
min_quantity: number | null;
|
|
10323
|
-
net_price: number | null;
|
|
10324
|
-
product_group_id: string | null;
|
|
10325
|
-
raw: Json | null;
|
|
10326
|
-
source: string | null;
|
|
10327
|
-
source_id: string | null;
|
|
10328
|
-
trade_item_id: string | null;
|
|
10329
|
-
valid_from: string | null;
|
|
10330
|
-
valid_until: string | null;
|
|
10331
|
-
};
|
|
10332
|
-
Relationships: [];
|
|
10333
|
-
};
|
|
10334
11390
|
local_customer_discounts: {
|
|
10335
11391
|
Row: {
|
|
10336
11392
|
base_price: number | null;
|
|
@@ -10646,6 +11702,13 @@ export type Database = {
|
|
|
10646
11702
|
};
|
|
10647
11703
|
Returns: number;
|
|
10648
11704
|
};
|
|
11705
|
+
_migrate_rewrite_stock_key: {
|
|
11706
|
+
Args: {
|
|
11707
|
+
_from_key: string;
|
|
11708
|
+
_to_key: string;
|
|
11709
|
+
};
|
|
11710
|
+
Returns: undefined;
|
|
11711
|
+
};
|
|
10649
11712
|
afh_city_code: {
|
|
10650
11713
|
Args: {
|
|
10651
11714
|
_city: string;
|
|
@@ -10729,6 +11792,12 @@ export type Database = {
|
|
|
10729
11792
|
processed_items: number;
|
|
10730
11793
|
}[];
|
|
10731
11794
|
};
|
|
11795
|
+
calculate_layer_stock: {
|
|
11796
|
+
Args: {
|
|
11797
|
+
p_product_id: string;
|
|
11798
|
+
};
|
|
11799
|
+
Returns: number;
|
|
11800
|
+
};
|
|
10732
11801
|
call_exact_route: {
|
|
10733
11802
|
Args: {
|
|
10734
11803
|
path: string;
|
|
@@ -10761,6 +11830,28 @@ export type Database = {
|
|
|
10761
11830
|
Args: never;
|
|
10762
11831
|
Returns: undefined;
|
|
10763
11832
|
};
|
|
11833
|
+
consume_bom_for_production: {
|
|
11834
|
+
Args: {
|
|
11835
|
+
p_connection_id: string;
|
|
11836
|
+
p_parent_id: string;
|
|
11837
|
+
p_parent_key: string;
|
|
11838
|
+
p_parent_kind: string;
|
|
11839
|
+
p_quantity: number;
|
|
11840
|
+
p_user_id: string;
|
|
11841
|
+
};
|
|
11842
|
+
Returns: Json;
|
|
11843
|
+
} | {
|
|
11844
|
+
Args: {
|
|
11845
|
+
p_batch_id?: string;
|
|
11846
|
+
p_connection_id: string;
|
|
11847
|
+
p_parent_id: string;
|
|
11848
|
+
p_parent_key: string;
|
|
11849
|
+
p_parent_kind: string;
|
|
11850
|
+
p_quantity: number;
|
|
11851
|
+
p_user_id: string;
|
|
11852
|
+
};
|
|
11853
|
+
Returns: Json;
|
|
11854
|
+
};
|
|
10764
11855
|
consume_floriday_rate_limit: {
|
|
10765
11856
|
Args: {
|
|
10766
11857
|
p_bucket: string;
|
|
@@ -10812,6 +11903,13 @@ export type Database = {
|
|
|
10812
11903
|
table_name: string;
|
|
10813
11904
|
}[];
|
|
10814
11905
|
};
|
|
11906
|
+
delete_samenstelling: {
|
|
11907
|
+
Args: {
|
|
11908
|
+
p_parent_id: string;
|
|
11909
|
+
p_parent_kind: string;
|
|
11910
|
+
};
|
|
11911
|
+
Returns: Json;
|
|
11912
|
+
};
|
|
10815
11913
|
dispatch_carrier_signups_sql: {
|
|
10816
11914
|
Args: {
|
|
10817
11915
|
_catchup?: string;
|
|
@@ -10853,6 +11951,16 @@ export type Database = {
|
|
|
10853
11951
|
status: string;
|
|
10854
11952
|
}[];
|
|
10855
11953
|
};
|
|
11954
|
+
email_auth_upsert_connection: {
|
|
11955
|
+
Args: {
|
|
11956
|
+
_account_email: string;
|
|
11957
|
+
_created_by: string;
|
|
11958
|
+
_is_active: boolean;
|
|
11959
|
+
_provider: string;
|
|
11960
|
+
_status: string;
|
|
11961
|
+
};
|
|
11962
|
+
Returns: string;
|
|
11963
|
+
};
|
|
10856
11964
|
enqueue_cart_replan_if_unlocked: {
|
|
10857
11965
|
Args: {
|
|
10858
11966
|
p_order_id: string;
|
|
@@ -10972,19 +12080,6 @@ export type Database = {
|
|
|
10972
12080
|
resource: string;
|
|
10973
12081
|
}[];
|
|
10974
12082
|
};
|
|
10975
|
-
get_floriday_agreements_active: {
|
|
10976
|
-
Args: {
|
|
10977
|
-
p_on_date?: string;
|
|
10978
|
-
};
|
|
10979
|
-
Returns: {
|
|
10980
|
-
buyer_organization_id: string;
|
|
10981
|
-
data: Json;
|
|
10982
|
-
floriday_id: string;
|
|
10983
|
-
status: string;
|
|
10984
|
-
valid_from: string;
|
|
10985
|
-
valid_until: string;
|
|
10986
|
-
}[];
|
|
10987
|
-
};
|
|
10988
12083
|
get_floriday_clock_supplies_window: {
|
|
10989
12084
|
Args: {
|
|
10990
12085
|
p_from: string;
|
|
@@ -11057,6 +12152,27 @@ export type Database = {
|
|
|
11057
12152
|
minutes_since_success: number;
|
|
11058
12153
|
}[];
|
|
11059
12154
|
};
|
|
12155
|
+
get_group_allocation_keys: {
|
|
12156
|
+
Args: {
|
|
12157
|
+
p_product_id: string;
|
|
12158
|
+
};
|
|
12159
|
+
Returns: {
|
|
12160
|
+
k: string;
|
|
12161
|
+
ord: number;
|
|
12162
|
+
}[];
|
|
12163
|
+
};
|
|
12164
|
+
get_group_head_key: {
|
|
12165
|
+
Args: {
|
|
12166
|
+
p_group_id: string;
|
|
12167
|
+
};
|
|
12168
|
+
Returns: string;
|
|
12169
|
+
};
|
|
12170
|
+
get_inventory_stock_for_key: {
|
|
12171
|
+
Args: {
|
|
12172
|
+
p_key: string;
|
|
12173
|
+
};
|
|
12174
|
+
Returns: number;
|
|
12175
|
+
};
|
|
11060
12176
|
get_offer_by_link_code: {
|
|
11061
12177
|
Args: {
|
|
11062
12178
|
p_code: string;
|
|
@@ -11087,6 +12203,12 @@ export type Database = {
|
|
|
11087
12203
|
};
|
|
11088
12204
|
Returns: string;
|
|
11089
12205
|
};
|
|
12206
|
+
get_product_group_available_stock: {
|
|
12207
|
+
Args: {
|
|
12208
|
+
p_group_id: string;
|
|
12209
|
+
};
|
|
12210
|
+
Returns: number;
|
|
12211
|
+
};
|
|
11090
12212
|
get_room_busy_windows: {
|
|
11091
12213
|
Args: {
|
|
11092
12214
|
p_from: string;
|
|
@@ -11167,6 +12289,32 @@ export type Database = {
|
|
|
11167
12289
|
};
|
|
11168
12290
|
Returns: undefined;
|
|
11169
12291
|
};
|
|
12292
|
+
mark_salesorder_controlled: {
|
|
12293
|
+
Args: {
|
|
12294
|
+
p_controlled: boolean;
|
|
12295
|
+
p_floriday_id: string;
|
|
12296
|
+
};
|
|
12297
|
+
Returns: undefined;
|
|
12298
|
+
};
|
|
12299
|
+
mark_shipment_shipped: {
|
|
12300
|
+
Args: {
|
|
12301
|
+
p_shipment_id: string;
|
|
12302
|
+
};
|
|
12303
|
+
Returns: undefined;
|
|
12304
|
+
};
|
|
12305
|
+
merge_products: {
|
|
12306
|
+
Args: {
|
|
12307
|
+
_canonical: string;
|
|
12308
|
+
_loser: string;
|
|
12309
|
+
};
|
|
12310
|
+
Returns: undefined;
|
|
12311
|
+
};
|
|
12312
|
+
next_manufacture_partij: {
|
|
12313
|
+
Args: {
|
|
12314
|
+
_tenant_id: string;
|
|
12315
|
+
};
|
|
12316
|
+
Returns: string;
|
|
12317
|
+
};
|
|
11170
12318
|
next_order_number: {
|
|
11171
12319
|
Args: {
|
|
11172
12320
|
p_prefix: string;
|
|
@@ -11236,6 +12384,15 @@ export type Database = {
|
|
|
11236
12384
|
};
|
|
11237
12385
|
Returns: undefined;
|
|
11238
12386
|
};
|
|
12387
|
+
pickstation_resolve_delivery_orders: {
|
|
12388
|
+
Args: {
|
|
12389
|
+
p_sales_order_ids: string[];
|
|
12390
|
+
};
|
|
12391
|
+
Returns: {
|
|
12392
|
+
delivery_order_id: string;
|
|
12393
|
+
sales_order_id: string;
|
|
12394
|
+
}[];
|
|
12395
|
+
};
|
|
11239
12396
|
pickstation_set_cart_status: {
|
|
11240
12397
|
Args: {
|
|
11241
12398
|
p_cart_index: number;
|
|
@@ -11245,6 +12402,14 @@ export type Database = {
|
|
|
11245
12402
|
};
|
|
11246
12403
|
Returns: undefined;
|
|
11247
12404
|
};
|
|
12405
|
+
produce_designed_product: {
|
|
12406
|
+
Args: {
|
|
12407
|
+
p_parent_id: string;
|
|
12408
|
+
p_parent_kind: string;
|
|
12409
|
+
p_quantity: number;
|
|
12410
|
+
};
|
|
12411
|
+
Returns: Json;
|
|
12412
|
+
};
|
|
11248
12413
|
promote_trade_item_key: {
|
|
11249
12414
|
Args: {
|
|
11250
12415
|
p_new: string;
|
|
@@ -11252,6 +12417,10 @@ export type Database = {
|
|
|
11252
12417
|
};
|
|
11253
12418
|
Returns: undefined;
|
|
11254
12419
|
};
|
|
12420
|
+
recompute_all_reserved_stock: {
|
|
12421
|
+
Args: never;
|
|
12422
|
+
Returns: undefined;
|
|
12423
|
+
};
|
|
11255
12424
|
recompute_order_status: {
|
|
11256
12425
|
Args: {
|
|
11257
12426
|
p_order_id: string;
|
|
@@ -11301,27 +12470,45 @@ export type Database = {
|
|
|
11301
12470
|
};
|
|
11302
12471
|
Returns: undefined;
|
|
11303
12472
|
};
|
|
12473
|
+
resolve_group_allocation: {
|
|
12474
|
+
Args: {
|
|
12475
|
+
_needed: number;
|
|
12476
|
+
_product_group_id: string;
|
|
12477
|
+
};
|
|
12478
|
+
Returns: {
|
|
12479
|
+
allocated: number;
|
|
12480
|
+
trade_item_id: string;
|
|
12481
|
+
}[];
|
|
12482
|
+
};
|
|
12483
|
+
resolve_group_member_stock_key: {
|
|
12484
|
+
Args: {
|
|
12485
|
+
p_trade_item_id: string;
|
|
12486
|
+
};
|
|
12487
|
+
Returns: string;
|
|
12488
|
+
};
|
|
11304
12489
|
resolve_product_id_for_item: {
|
|
11305
12490
|
Args: {
|
|
11306
12491
|
p_product_name: string;
|
|
11307
12492
|
};
|
|
11308
12493
|
Returns: string;
|
|
11309
12494
|
};
|
|
11310
|
-
|
|
12495
|
+
resolve_stock_trade_item_key: {
|
|
11311
12496
|
Args: {
|
|
11312
|
-
|
|
11313
|
-
p_url: string;
|
|
12497
|
+
p_product_id: string;
|
|
11314
12498
|
};
|
|
11315
|
-
Returns:
|
|
12499
|
+
Returns: string;
|
|
11316
12500
|
};
|
|
11317
|
-
|
|
12501
|
+
reverse_production: {
|
|
11318
12502
|
Args: {
|
|
11319
|
-
|
|
11320
|
-
|
|
12503
|
+
p_connection_id?: string;
|
|
12504
|
+
p_parent_key: string;
|
|
12505
|
+
p_quantity: number;
|
|
12506
|
+
p_reason?: string;
|
|
12507
|
+
p_user_id?: string;
|
|
11321
12508
|
};
|
|
11322
|
-
Returns:
|
|
12509
|
+
Returns: Json;
|
|
11323
12510
|
};
|
|
11324
|
-
|
|
12511
|
+
schedule_floriday_additional_services_sync: {
|
|
11325
12512
|
Args: {
|
|
11326
12513
|
p_apikey: string;
|
|
11327
12514
|
p_url: string;
|
|
@@ -11574,6 +12761,10 @@ export type Database = {
|
|
|
11574
12761
|
};
|
|
11575
12762
|
Returns: number;
|
|
11576
12763
|
};
|
|
12764
|
+
self_heal_floriday_links: {
|
|
12765
|
+
Args: never;
|
|
12766
|
+
Returns: number;
|
|
12767
|
+
};
|
|
11577
12768
|
show_limit: {
|
|
11578
12769
|
Args: never;
|
|
11579
12770
|
Returns: number;
|
|
@@ -11584,18 +12775,34 @@ export type Database = {
|
|
|
11584
12775
|
};
|
|
11585
12776
|
Returns: string[];
|
|
11586
12777
|
};
|
|
12778
|
+
sync_all_layer_stocks: {
|
|
12779
|
+
Args: never;
|
|
12780
|
+
Returns: undefined;
|
|
12781
|
+
};
|
|
11587
12782
|
sync_cached_packing_from_product: {
|
|
11588
12783
|
Args: {
|
|
11589
12784
|
p_product_id: string;
|
|
11590
12785
|
};
|
|
11591
12786
|
Returns: undefined;
|
|
11592
12787
|
};
|
|
12788
|
+
sync_layer_stock: {
|
|
12789
|
+
Args: {
|
|
12790
|
+
p_product_id: string;
|
|
12791
|
+
};
|
|
12792
|
+
Returns: undefined;
|
|
12793
|
+
};
|
|
11593
12794
|
sync_order_cart_item_packing_from_product: {
|
|
11594
12795
|
Args: {
|
|
11595
12796
|
p_product_id: string;
|
|
11596
12797
|
};
|
|
11597
12798
|
Returns: undefined;
|
|
11598
12799
|
};
|
|
12800
|
+
sync_product_group_belading: {
|
|
12801
|
+
Args: {
|
|
12802
|
+
_group_id: string;
|
|
12803
|
+
};
|
|
12804
|
+
Returns: undefined;
|
|
12805
|
+
};
|
|
11599
12806
|
sync_product_packing_from_floriday_cache: {
|
|
11600
12807
|
Args: {
|
|
11601
12808
|
p_floriday_id: string;
|