@flowselections/floriday-verkoop-module 1.0.20 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +6 -0
  2. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -0
  3. package/dist-lib/components/karindeling/AfmetingenTab.js +128 -0
  4. package/dist-lib/components/karindeling/KarindelingPage.d.ts +2 -0
  5. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -0
  6. package/dist-lib/components/karindeling/KarindelingPage.js +102 -0
  7. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +6 -0
  8. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -0
  9. package/dist-lib/components/verkoop/OrderControlStatusCard.js +41 -0
  10. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  11. package/dist-lib/components/verkoop/OrderKarindelingCard.js +83 -37
  12. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  13. package/dist-lib/components/verkoop/SalesOrderDetailPage.js +74 -8
  14. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +2 -1
  15. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  16. package/dist-lib/components/verkoop/SalesOrderDetailView.js +3 -2
  17. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  18. package/dist-lib/components/verkoop/SalesOrdersTable.js +40 -5
  19. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  20. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +19 -3
  21. package/dist-lib/index.d.ts +1 -0
  22. package/dist-lib/index.d.ts.map +1 -1
  23. package/dist-lib/index.js +12 -1
  24. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1536 -581
  25. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  26. package/dist-lib/integrations/supabase/client.d.ts +1536 -581
  27. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  28. package/dist-lib/integrations/supabase/client.js +24 -9
  29. package/dist-lib/integrations/supabase/client.server.d.ts +1536 -581
  30. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/types.d.ts +1543 -562
  32. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  33. package/dist-lib/integrations/supabase/types.js +3 -9
  34. package/dist-lib/lib/cart-lock.functions.d.ts +1536 -581
  35. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/cart-planner.d.ts +9 -1
  37. package/dist-lib/lib/cart-planner.d.ts.map +1 -1
  38. package/dist-lib/lib/cart-planner.js +21 -4
  39. package/dist-lib/lib/cart-planning-settings.functions.d.ts +140842 -0
  40. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -0
  41. package/dist-lib/lib/cart-planning-settings.functions.js +375 -0
  42. package/dist-lib/lib/cart-replan.functions.d.ts +15811 -1082
  43. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/cart-replan.functions.js +85 -27
  45. package/dist-lib/lib/create-order.functions.d.ts +19021 -7561
  46. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +4558 -1693
  48. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/floriday-auto-fulfillment.server.js +1 -1
  50. package/dist-lib/lib/floriday-central-token.server.d.ts +12 -0
  51. package/dist-lib/lib/floriday-central-token.server.d.ts.map +1 -0
  52. package/dist-lib/lib/floriday-central-token.server.js +58 -0
  53. package/dist-lib/lib/floriday-gateway.server.d.ts +2 -2
  54. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  55. package/dist-lib/lib/floriday-gateway.server.js +10 -37
  56. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1536 -581
  57. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/floriday-logistic-labels.functions.js +14 -4
  59. package/dist-lib/lib/floriday-mirror.functions.d.ts +12806 -0
  60. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -0
  61. package/dist-lib/lib/floriday-mirror.functions.js +278 -0
  62. package/dist-lib/lib/floriday-public.functions.d.ts +10989 -4301
  63. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/floriday-public.functions.js +114 -38
  65. package/dist-lib/lib/floriday-sync.d.ts +0 -1
  66. package/dist-lib/lib/floriday-sync.d.ts.map +1 -1
  67. package/dist-lib/lib/floriday-sync.js +1 -1
  68. package/dist-lib/lib/floriday-writes.functions.d.ts +7772 -2997
  69. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/order-buffers.functions.d.ts +38420 -0
  71. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -0
  72. package/dist-lib/lib/order-buffers.functions.js +244 -0
  73. package/dist-lib/lib/order-shipments.functions.d.ts +6165 -2345
  74. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/salesorders-mapping.d.ts +5 -0
  76. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  77. package/dist-lib/lib/salesorders-mapping.js +8 -1
  78. package/dist-lib/lib/salesorders.functions.d.ts +30443 -1979
  79. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  80. package/dist-lib/lib/salesorders.functions.js +307 -0
  81. package/dist-lib/lib/tradeitems.functions.d.ts +1536 -581
  82. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  83. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts +2 -0
  84. package/dist-lib/lib/useSalesOrderDetailQuery.d.ts.map +1 -0
  85. package/dist-lib/lib/useSalesOrderDetailQuery.js +50 -0
  86. package/dist-lib/lib/useSalesOrdersQuery.d.ts +2 -2
  87. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  88. package/dist-lib/lib/useSalesOrdersQuery.js +139 -10
  89. package/package.json +5 -5
@@ -241,12 +241,47 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
241
241
  };
242
242
  Relationships: [];
243
243
  };
244
+ ai_admin_credentials: {
245
+ Row: {
246
+ active: boolean;
247
+ admin_key: string;
248
+ created_at: string;
249
+ id: string;
250
+ label: string;
251
+ provider_id: string;
252
+ updated_at: string;
253
+ };
254
+ Insert: {
255
+ active?: boolean;
256
+ admin_key: string;
257
+ created_at?: string;
258
+ id?: string;
259
+ label: string;
260
+ provider_id: string;
261
+ updated_at?: string;
262
+ };
263
+ Update: {
264
+ active?: boolean;
265
+ admin_key?: string;
266
+ created_at?: string;
267
+ id?: string;
268
+ label?: string;
269
+ provider_id?: string;
270
+ updated_at?: string;
271
+ };
272
+ Relationships: [{
273
+ foreignKeyName: "ai_admin_credentials_provider_id_fkey";
274
+ columns: ["provider_id"];
275
+ isOneToOne: true;
276
+ referencedRelation: "ai_providers";
277
+ referencedColumns: ["id"];
278
+ }];
279
+ };
244
280
  ai_credentials: {
245
281
  Row: {
246
282
  active: boolean;
247
283
  api_key: string;
248
284
  created_at: string;
249
- created_by: string | null;
250
285
  id: string;
251
286
  label: string;
252
287
  provider_id: string;
@@ -256,7 +291,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
256
291
  active?: boolean;
257
292
  api_key: string;
258
293
  created_at?: string;
259
- created_by?: string | null;
260
294
  id?: string;
261
295
  label: string;
262
296
  provider_id: string;
@@ -266,7 +300,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
266
300
  active?: boolean;
267
301
  api_key?: string;
268
302
  created_at?: string;
269
- created_by?: string | null;
270
303
  id?: string;
271
304
  label?: string;
272
305
  provider_id?: string;
@@ -280,6 +313,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
280
313
  referencedColumns: ["id"];
281
314
  }];
282
315
  };
316
+ ai_model_pricing: {
317
+ Row: {
318
+ created_at: string;
319
+ currency: string;
320
+ fetched_at: string;
321
+ id: string;
322
+ input_per_mtok: number | null;
323
+ model_slug: string;
324
+ output_per_mtok: number | null;
325
+ provider_slug: string;
326
+ source: string;
327
+ updated_at: string;
328
+ };
329
+ Insert: {
330
+ created_at?: string;
331
+ currency?: string;
332
+ fetched_at?: string;
333
+ id?: string;
334
+ input_per_mtok?: number | null;
335
+ model_slug: string;
336
+ output_per_mtok?: number | null;
337
+ provider_slug: string;
338
+ source?: string;
339
+ updated_at?: string;
340
+ };
341
+ Update: {
342
+ created_at?: string;
343
+ currency?: string;
344
+ fetched_at?: string;
345
+ id?: string;
346
+ input_per_mtok?: number | null;
347
+ model_slug?: string;
348
+ output_per_mtok?: number | null;
349
+ provider_slug?: string;
350
+ source?: string;
351
+ updated_at?: string;
352
+ };
353
+ Relationships: [];
354
+ };
283
355
  ai_models: {
284
356
  Row: {
285
357
  active: boolean;
@@ -1027,6 +1099,141 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1027
1099
  };
1028
1100
  Relationships: [];
1029
1101
  };
1102
+ cart_planning_pick_times: {
1103
+ Row: {
1104
+ created_at: string;
1105
+ id: string;
1106
+ pot_size: string;
1107
+ seconds_per_cart: number;
1108
+ updated_at: string;
1109
+ };
1110
+ Insert: {
1111
+ created_at?: string;
1112
+ id?: string;
1113
+ pot_size: string;
1114
+ seconds_per_cart: number;
1115
+ updated_at?: string;
1116
+ };
1117
+ Update: {
1118
+ created_at?: string;
1119
+ id?: string;
1120
+ pot_size?: string;
1121
+ seconds_per_cart?: number;
1122
+ updated_at?: string;
1123
+ };
1124
+ Relationships: [];
1125
+ };
1126
+ cart_planning_product_overrides: {
1127
+ Row: {
1128
+ created_at: string;
1129
+ id: string;
1130
+ max_party_share_per_layer_pct_override: number | null;
1131
+ never_mix: boolean;
1132
+ notes: string | null;
1133
+ product_id: string;
1134
+ updated_at: string;
1135
+ };
1136
+ Insert: {
1137
+ created_at?: string;
1138
+ id?: string;
1139
+ max_party_share_per_layer_pct_override?: number | null;
1140
+ never_mix?: boolean;
1141
+ notes?: string | null;
1142
+ product_id: string;
1143
+ updated_at?: string;
1144
+ };
1145
+ Update: {
1146
+ created_at?: string;
1147
+ id?: string;
1148
+ max_party_share_per_layer_pct_override?: number | null;
1149
+ never_mix?: boolean;
1150
+ notes?: string | null;
1151
+ product_id?: string;
1152
+ updated_at?: string;
1153
+ };
1154
+ Relationships: [{
1155
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1156
+ columns: ["product_id"];
1157
+ isOneToOne: true;
1158
+ referencedRelation: "products";
1159
+ referencedColumns: ["id"];
1160
+ }];
1161
+ };
1162
+ cart_planning_settings: {
1163
+ Row: {
1164
+ allow_editing_after_pickstation_send: boolean;
1165
+ buffer_grouping_mode: string;
1166
+ combine_floriday_orders: boolean;
1167
+ combine_floriday_orders_window: string;
1168
+ combine_orders_scope: string;
1169
+ default_workers: number;
1170
+ id: number;
1171
+ max_beladingen_per_layer: number;
1172
+ max_customers_per_cart: number;
1173
+ max_one_customer_per_layer: boolean;
1174
+ max_party_share_per_layer_pct: number;
1175
+ optimization_strategy: string;
1176
+ own_cart_from_layers: number;
1177
+ pick_time_mode: string;
1178
+ plants_per_day: number;
1179
+ plants_per_hour: number;
1180
+ require_same_carrier: boolean;
1181
+ require_same_crate_type: boolean;
1182
+ require_same_delivery_date: boolean;
1183
+ require_same_delivery_location: boolean;
1184
+ updated_at: string;
1185
+ updated_by: string | null;
1186
+ };
1187
+ Insert: {
1188
+ allow_editing_after_pickstation_send?: boolean;
1189
+ buffer_grouping_mode?: string;
1190
+ combine_floriday_orders?: boolean;
1191
+ combine_floriday_orders_window?: string;
1192
+ combine_orders_scope?: string;
1193
+ default_workers?: number;
1194
+ id?: number;
1195
+ max_beladingen_per_layer?: number;
1196
+ max_customers_per_cart?: number;
1197
+ max_one_customer_per_layer?: boolean;
1198
+ max_party_share_per_layer_pct?: number;
1199
+ optimization_strategy?: string;
1200
+ own_cart_from_layers?: number;
1201
+ pick_time_mode?: string;
1202
+ plants_per_day?: number;
1203
+ plants_per_hour?: number;
1204
+ require_same_carrier?: boolean;
1205
+ require_same_crate_type?: boolean;
1206
+ require_same_delivery_date?: boolean;
1207
+ require_same_delivery_location?: boolean;
1208
+ updated_at?: string;
1209
+ updated_by?: string | null;
1210
+ };
1211
+ Update: {
1212
+ allow_editing_after_pickstation_send?: boolean;
1213
+ buffer_grouping_mode?: string;
1214
+ combine_floriday_orders?: boolean;
1215
+ combine_floriday_orders_window?: string;
1216
+ combine_orders_scope?: string;
1217
+ default_workers?: number;
1218
+ id?: number;
1219
+ max_beladingen_per_layer?: number;
1220
+ max_customers_per_cart?: number;
1221
+ max_one_customer_per_layer?: boolean;
1222
+ max_party_share_per_layer_pct?: number;
1223
+ optimization_strategy?: string;
1224
+ own_cart_from_layers?: number;
1225
+ pick_time_mode?: string;
1226
+ plants_per_day?: number;
1227
+ plants_per_hour?: number;
1228
+ require_same_carrier?: boolean;
1229
+ require_same_crate_type?: boolean;
1230
+ require_same_delivery_date?: boolean;
1231
+ require_same_delivery_location?: boolean;
1232
+ updated_at?: string;
1233
+ updated_by?: string | null;
1234
+ };
1235
+ Relationships: [];
1236
+ };
1030
1237
  cart_replan_queue: {
1031
1238
  Row: {
1032
1239
  attempts: number;
@@ -1057,6 +1264,102 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1057
1264
  referencedColumns: ["id"];
1058
1265
  }];
1059
1266
  };
1267
+ cart_types: {
1268
+ Row: {
1269
+ created_at: string;
1270
+ id: string;
1271
+ is_default: boolean;
1272
+ layer_length_cm: number;
1273
+ layer_width_cm: number;
1274
+ layers_per_cart: number;
1275
+ name: string;
1276
+ updated_at: string;
1277
+ };
1278
+ Insert: {
1279
+ created_at?: string;
1280
+ id?: string;
1281
+ is_default?: boolean;
1282
+ layer_length_cm: number;
1283
+ layer_width_cm: number;
1284
+ layers_per_cart?: number;
1285
+ name: string;
1286
+ updated_at?: string;
1287
+ };
1288
+ Update: {
1289
+ created_at?: string;
1290
+ id?: string;
1291
+ is_default?: boolean;
1292
+ layer_length_cm?: number;
1293
+ layer_width_cm?: number;
1294
+ layers_per_cart?: number;
1295
+ name?: string;
1296
+ updated_at?: string;
1297
+ };
1298
+ Relationships: [];
1299
+ };
1300
+ catalog_articles_cache: {
1301
+ Row: {
1302
+ created_at: string;
1303
+ default_price: number;
1304
+ default_vat_rate_ref: string | null;
1305
+ external_ref: string;
1306
+ id: string;
1307
+ name: string;
1308
+ updated_at: string;
1309
+ user_id: string;
1310
+ };
1311
+ Insert: {
1312
+ created_at?: string;
1313
+ default_price?: number;
1314
+ default_vat_rate_ref?: string | null;
1315
+ external_ref: string;
1316
+ id?: string;
1317
+ name: string;
1318
+ updated_at?: string;
1319
+ user_id: string;
1320
+ };
1321
+ Update: {
1322
+ created_at?: string;
1323
+ default_price?: number;
1324
+ default_vat_rate_ref?: string | null;
1325
+ external_ref?: string;
1326
+ id?: string;
1327
+ name?: string;
1328
+ updated_at?: string;
1329
+ user_id?: string;
1330
+ };
1331
+ Relationships: [];
1332
+ };
1333
+ catalog_vat_rates_cache: {
1334
+ Row: {
1335
+ created_at: string;
1336
+ external_ref: string;
1337
+ id: string;
1338
+ label: string;
1339
+ percentage: number;
1340
+ updated_at: string;
1341
+ user_id: string;
1342
+ };
1343
+ Insert: {
1344
+ created_at?: string;
1345
+ external_ref: string;
1346
+ id?: string;
1347
+ label: string;
1348
+ percentage?: number;
1349
+ updated_at?: string;
1350
+ user_id: string;
1351
+ };
1352
+ Update: {
1353
+ created_at?: string;
1354
+ external_ref?: string;
1355
+ id?: string;
1356
+ label?: string;
1357
+ percentage?: number;
1358
+ updated_at?: string;
1359
+ user_id?: string;
1360
+ };
1361
+ Relationships: [];
1362
+ };
1060
1363
  collections: {
1061
1364
  Row: {
1062
1365
  created_at: string;
@@ -1081,6 +1384,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1081
1384
  };
1082
1385
  Relationships: [];
1083
1386
  };
1387
+ crate_types: {
1388
+ Row: {
1389
+ created_at: string;
1390
+ id: string;
1391
+ length_cm: number;
1392
+ name: string;
1393
+ plants_per_crate: number;
1394
+ updated_at: string;
1395
+ width_cm: number;
1396
+ };
1397
+ Insert: {
1398
+ created_at?: string;
1399
+ id?: string;
1400
+ length_cm: number;
1401
+ name: string;
1402
+ plants_per_crate?: number;
1403
+ updated_at?: string;
1404
+ width_cm: number;
1405
+ };
1406
+ Update: {
1407
+ created_at?: string;
1408
+ id?: string;
1409
+ length_cm?: number;
1410
+ name?: string;
1411
+ plants_per_crate?: number;
1412
+ updated_at?: string;
1413
+ width_cm?: number;
1414
+ };
1415
+ Relationships: [];
1416
+ };
1084
1417
  customer_audit_log: {
1085
1418
  Row: {
1086
1419
  action: string;
@@ -1306,68 +1639,167 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1306
1639
  };
1307
1640
  Relationships: [];
1308
1641
  };
1309
- customer_selected_assortment: {
1642
+ customer_price_group_members: {
1310
1643
  Row: {
1311
- article_number: string | null;
1312
1644
  created_at: string;
1313
- customer_id: string;
1314
- floriday_item_id: string | null;
1645
+ customer_key: string;
1315
1646
  id: string;
1316
- price: number | null;
1317
- product_group: string | null;
1318
- product_name: string;
1319
- raw: import("./types").Json | null;
1320
- unit: string | null;
1321
- updated_at: string;
1647
+ owner_id: string;
1648
+ price_group_id: string;
1322
1649
  };
1323
1650
  Insert: {
1324
- article_number?: string | null;
1325
1651
  created_at?: string;
1326
- customer_id: string;
1327
- floriday_item_id?: string | null;
1652
+ customer_key: string;
1328
1653
  id?: string;
1329
- price?: number | null;
1330
- product_group?: string | null;
1331
- product_name: string;
1332
- raw?: import("./types").Json | null;
1333
- unit?: string | null;
1334
- updated_at?: string;
1654
+ owner_id?: string;
1655
+ price_group_id: string;
1335
1656
  };
1336
1657
  Update: {
1337
- article_number?: string | null;
1338
1658
  created_at?: string;
1339
- customer_id?: string;
1340
- floriday_item_id?: string | null;
1659
+ customer_key?: string;
1341
1660
  id?: string;
1342
- price?: number | null;
1343
- product_group?: string | null;
1344
- product_name?: string;
1345
- raw?: import("./types").Json | null;
1346
- unit?: string | null;
1347
- updated_at?: string;
1661
+ owner_id?: string;
1662
+ price_group_id?: string;
1348
1663
  };
1349
1664
  Relationships: [{
1350
- foreignKeyName: "customer_selected_assortment_customer_id_fkey";
1351
- columns: ["customer_id"];
1665
+ foreignKeyName: "customer_price_group_members_price_group_id_fkey";
1666
+ columns: ["price_group_id"];
1352
1667
  isOneToOne: false;
1353
- referencedRelation: "customers";
1668
+ referencedRelation: "customer_price_groups";
1354
1669
  referencedColumns: ["id"];
1355
1670
  }];
1356
1671
  };
1357
- customer_trade_settings: {
1672
+ customer_price_groups: {
1358
1673
  Row: {
1359
- category: string;
1674
+ calc_type: string | null;
1675
+ calc_value: number | null;
1676
+ calc_value_type: string | null;
1360
1677
  created_at: string;
1361
- customer_id: string;
1678
+ currency: string;
1679
+ distribute_over: string | null;
1680
+ group_type: string;
1681
+ handling_fee: number | null;
1362
1682
  id: string;
1683
+ include_stickers: boolean;
1363
1684
  is_active: boolean;
1364
- raw: import("./types").Json | null;
1365
- setting_key: string;
1366
- setting_label: string;
1685
+ name: string;
1686
+ owner_id: string;
1687
+ price_scope: string;
1688
+ pricing_mode: string;
1689
+ rounding: string;
1690
+ rounding_step: number;
1691
+ sort_order: number;
1692
+ unit: string;
1367
1693
  updated_at: string;
1368
1694
  };
1369
1695
  Insert: {
1370
- category?: string;
1696
+ calc_type?: string | null;
1697
+ calc_value?: number | null;
1698
+ calc_value_type?: string | null;
1699
+ created_at?: string;
1700
+ currency?: string;
1701
+ distribute_over?: string | null;
1702
+ group_type?: string;
1703
+ handling_fee?: number | null;
1704
+ id?: string;
1705
+ include_stickers?: boolean;
1706
+ is_active?: boolean;
1707
+ name: string;
1708
+ owner_id?: string;
1709
+ price_scope?: string;
1710
+ pricing_mode?: string;
1711
+ rounding?: string;
1712
+ rounding_step?: number;
1713
+ sort_order?: number;
1714
+ unit?: string;
1715
+ updated_at?: string;
1716
+ };
1717
+ Update: {
1718
+ calc_type?: string | null;
1719
+ calc_value?: number | null;
1720
+ calc_value_type?: string | null;
1721
+ created_at?: string;
1722
+ currency?: string;
1723
+ distribute_over?: string | null;
1724
+ group_type?: string;
1725
+ handling_fee?: number | null;
1726
+ id?: string;
1727
+ include_stickers?: boolean;
1728
+ is_active?: boolean;
1729
+ name?: string;
1730
+ owner_id?: string;
1731
+ price_scope?: string;
1732
+ pricing_mode?: string;
1733
+ rounding?: string;
1734
+ rounding_step?: number;
1735
+ sort_order?: number;
1736
+ unit?: string;
1737
+ updated_at?: string;
1738
+ };
1739
+ Relationships: [];
1740
+ };
1741
+ customer_selected_assortment: {
1742
+ Row: {
1743
+ article_number: string | null;
1744
+ created_at: string;
1745
+ customer_id: string;
1746
+ floriday_item_id: string | null;
1747
+ id: string;
1748
+ price: number | null;
1749
+ product_group: string | null;
1750
+ product_name: string;
1751
+ raw: import("./types").Json | null;
1752
+ unit: string | null;
1753
+ updated_at: string;
1754
+ };
1755
+ Insert: {
1756
+ article_number?: string | null;
1757
+ created_at?: string;
1758
+ customer_id: string;
1759
+ floriday_item_id?: string | null;
1760
+ id?: string;
1761
+ price?: number | null;
1762
+ product_group?: string | null;
1763
+ product_name: string;
1764
+ raw?: import("./types").Json | null;
1765
+ unit?: string | null;
1766
+ updated_at?: string;
1767
+ };
1768
+ Update: {
1769
+ article_number?: string | null;
1770
+ created_at?: string;
1771
+ customer_id?: string;
1772
+ floriday_item_id?: string | null;
1773
+ id?: string;
1774
+ price?: number | null;
1775
+ product_group?: string | null;
1776
+ product_name?: string;
1777
+ raw?: import("./types").Json | null;
1778
+ unit?: string | null;
1779
+ updated_at?: string;
1780
+ };
1781
+ Relationships: [{
1782
+ foreignKeyName: "customer_selected_assortment_customer_id_fkey";
1783
+ columns: ["customer_id"];
1784
+ isOneToOne: false;
1785
+ referencedRelation: "customers";
1786
+ referencedColumns: ["id"];
1787
+ }];
1788
+ };
1789
+ customer_trade_settings: {
1790
+ Row: {
1791
+ category: string;
1792
+ created_at: string;
1793
+ customer_id: string;
1794
+ id: string;
1795
+ is_active: boolean;
1796
+ raw: import("./types").Json | null;
1797
+ setting_key: string;
1798
+ setting_label: string;
1799
+ updated_at: string;
1800
+ };
1801
+ Insert: {
1802
+ category?: string;
1371
1803
  created_at?: string;
1372
1804
  customer_id: string;
1373
1805
  id?: string;
@@ -1459,6 +1891,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1459
1891
  sync_error: string | null;
1460
1892
  sync_status: string;
1461
1893
  trade_forms: string[];
1894
+ twinfield_code: string | null;
1895
+ twinfield_last_hash: string | null;
1896
+ twinfield_sync_error: string | null;
1897
+ twinfield_synced_at: string | null;
1462
1898
  updated_at: string;
1463
1899
  vat_display: string | null;
1464
1900
  vat_number: string | null;
@@ -1526,6 +1962,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1526
1962
  sync_error?: string | null;
1527
1963
  sync_status?: string;
1528
1964
  trade_forms?: string[];
1965
+ twinfield_code?: string | null;
1966
+ twinfield_last_hash?: string | null;
1967
+ twinfield_sync_error?: string | null;
1968
+ twinfield_synced_at?: string | null;
1529
1969
  updated_at?: string;
1530
1970
  vat_display?: string | null;
1531
1971
  vat_number?: string | null;
@@ -1593,6 +2033,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1593
2033
  sync_error?: string | null;
1594
2034
  sync_status?: string;
1595
2035
  trade_forms?: string[];
2036
+ twinfield_code?: string | null;
2037
+ twinfield_last_hash?: string | null;
2038
+ twinfield_sync_error?: string | null;
2039
+ twinfield_synced_at?: string | null;
1596
2040
  updated_at?: string;
1597
2041
  vat_display?: string | null;
1598
2042
  vat_number?: string | null;
@@ -3406,6 +3850,105 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3406
3850
  referencedColumns: ["id"];
3407
3851
  }];
3408
3852
  };
3853
+ floriday_agreement_calloffs_cache: {
3854
+ Row: {
3855
+ agreement_id: string | null;
3856
+ connection_id: string;
3857
+ data: import("./types").Json;
3858
+ delivery_date: string | null;
3859
+ fetched_at: string;
3860
+ floriday_id: string;
3861
+ id: string;
3862
+ is_deleted: boolean;
3863
+ sequence_number: number;
3864
+ status: string | null;
3865
+ updated_at: string;
3866
+ };
3867
+ Insert: {
3868
+ agreement_id?: string | null;
3869
+ connection_id: string;
3870
+ data?: import("./types").Json;
3871
+ delivery_date?: string | null;
3872
+ fetched_at?: string;
3873
+ floriday_id: string;
3874
+ id?: string;
3875
+ is_deleted?: boolean;
3876
+ sequence_number?: number;
3877
+ status?: string | null;
3878
+ updated_at?: string;
3879
+ };
3880
+ Update: {
3881
+ agreement_id?: string | null;
3882
+ connection_id?: string;
3883
+ data?: import("./types").Json;
3884
+ delivery_date?: string | null;
3885
+ fetched_at?: string;
3886
+ floriday_id?: string;
3887
+ id?: string;
3888
+ is_deleted?: boolean;
3889
+ sequence_number?: number;
3890
+ status?: string | null;
3891
+ updated_at?: string;
3892
+ };
3893
+ Relationships: [{
3894
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3895
+ columns: ["connection_id"];
3896
+ isOneToOne: false;
3897
+ referencedRelation: "floriday_connections";
3898
+ referencedColumns: ["id"];
3899
+ }];
3900
+ };
3901
+ floriday_agreements_cache: {
3902
+ Row: {
3903
+ buyer_organization_id: string | null;
3904
+ connection_id: string;
3905
+ data: import("./types").Json;
3906
+ fetched_at: string;
3907
+ floriday_id: string;
3908
+ id: string;
3909
+ is_deleted: boolean;
3910
+ sequence_number: number;
3911
+ status: string | null;
3912
+ updated_at: string;
3913
+ valid_from: string | null;
3914
+ valid_until: string | null;
3915
+ };
3916
+ Insert: {
3917
+ buyer_organization_id?: string | null;
3918
+ connection_id: string;
3919
+ data?: import("./types").Json;
3920
+ fetched_at?: string;
3921
+ floriday_id: string;
3922
+ id?: string;
3923
+ is_deleted?: boolean;
3924
+ sequence_number?: number;
3925
+ status?: string | null;
3926
+ updated_at?: string;
3927
+ valid_from?: string | null;
3928
+ valid_until?: string | null;
3929
+ };
3930
+ Update: {
3931
+ buyer_organization_id?: string | null;
3932
+ connection_id?: string;
3933
+ data?: import("./types").Json;
3934
+ fetched_at?: string;
3935
+ floriday_id?: string;
3936
+ id?: string;
3937
+ is_deleted?: boolean;
3938
+ sequence_number?: number;
3939
+ status?: string | null;
3940
+ updated_at?: string;
3941
+ valid_from?: string | null;
3942
+ valid_until?: string | null;
3943
+ };
3944
+ Relationships: [{
3945
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3946
+ columns: ["connection_id"];
3947
+ isOneToOne: false;
3948
+ referencedRelation: "floriday_connections";
3949
+ referencedColumns: ["id"];
3950
+ }];
3951
+ };
3409
3952
  floriday_auction_letters_cache: {
3410
3953
  Row: {
3411
3954
  auction_letter_code: string;
@@ -3904,27 +4447,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3904
4447
  referencedColumns: ["id"];
3905
4448
  }];
3906
4449
  };
3907
- floriday_continuous_stock_cache: {
3908
- Row: {
3909
- connection_id: string;
3910
- fetched_at: string;
3911
- number_of_pieces: number;
3912
- trade_item_id: string;
3913
- };
3914
- Insert: {
3915
- connection_id: string;
3916
- fetched_at?: string;
3917
- number_of_pieces?: number;
3918
- trade_item_id: string;
3919
- };
3920
- Update: {
3921
- connection_id?: string;
3922
- fetched_at?: string;
3923
- number_of_pieces?: number;
3924
- trade_item_id?: string;
3925
- };
3926
- Relationships: [];
3927
- };
3928
4450
  floriday_continuous_stock_queue: {
3929
4451
  Row: {
3930
4452
  attempts: number;
@@ -4903,45 +5425,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4903
5425
  referencedColumns: ["id"];
4904
5426
  }];
4905
5427
  };
4906
- floriday_trade_settings_customers_cache: {
4907
- Row: {
4908
- connection_id: string;
4909
- data: import("./types").Json;
4910
- fetched_at: string;
4911
- floriday_id: string;
4912
- id: string;
4913
- is_deleted: boolean;
4914
- sequence_number: number;
4915
- updated_at: string;
4916
- };
4917
- Insert: {
4918
- connection_id: string;
4919
- data: import("./types").Json;
4920
- fetched_at?: string;
4921
- floriday_id: string;
4922
- id?: string;
4923
- is_deleted?: boolean;
4924
- sequence_number?: number;
4925
- updated_at?: string;
4926
- };
4927
- Update: {
4928
- connection_id?: string;
4929
- data?: import("./types").Json;
4930
- fetched_at?: string;
4931
- floriday_id?: string;
4932
- id?: string;
4933
- is_deleted?: boolean;
4934
- sequence_number?: number;
4935
- updated_at?: string;
4936
- };
4937
- Relationships: [{
4938
- foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
4939
- columns: ["connection_id"];
4940
- isOneToOne: false;
4941
- referencedRelation: "floriday_connections";
4942
- referencedColumns: ["id"];
4943
- }];
4944
- };
4945
5428
  floriday_trips_cache: {
4946
5429
  Row: {
4947
5430
  carrier_organization_id: string | null;
@@ -5295,180 +5778,462 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5295
5778
  foreignKeyName: "imap_sync_log_profile_id_fkey";
5296
5779
  columns: ["profile_id"];
5297
5780
  isOneToOne: false;
5298
- referencedRelation: "imap_profiles";
5781
+ referencedRelation: "imap_profiles";
5782
+ referencedColumns: ["id"];
5783
+ }];
5784
+ };
5785
+ inventory_settings: {
5786
+ Row: {
5787
+ created_at: string;
5788
+ hierarchy_levels: string[];
5789
+ id: string;
5790
+ updated_at: string;
5791
+ visible_columns: string[];
5792
+ };
5793
+ Insert: {
5794
+ created_at?: string;
5795
+ hierarchy_levels?: string[];
5796
+ id?: string;
5797
+ updated_at?: string;
5798
+ visible_columns?: string[];
5799
+ };
5800
+ Update: {
5801
+ created_at?: string;
5802
+ hierarchy_levels?: string[];
5803
+ id?: string;
5804
+ updated_at?: string;
5805
+ visible_columns?: string[];
5806
+ };
5807
+ Relationships: [];
5808
+ };
5809
+ invoice_push_log: {
5810
+ Row: {
5811
+ connection_id: string | null;
5812
+ created_at: string;
5813
+ created_by: string;
5814
+ customer_id: string | null;
5815
+ id: string;
5816
+ last_error: string | null;
5817
+ last_polled_at: string | null;
5818
+ payload: import("./types").Json;
5819
+ provider_id: string;
5820
+ queue_id: string | null;
5821
+ status: string;
5822
+ updated_at: string;
5823
+ };
5824
+ Insert: {
5825
+ connection_id?: string | null;
5826
+ created_at?: string;
5827
+ created_by?: string;
5828
+ customer_id?: string | null;
5829
+ id?: string;
5830
+ last_error?: string | null;
5831
+ last_polled_at?: string | null;
5832
+ payload?: import("./types").Json;
5833
+ provider_id: string;
5834
+ queue_id?: string | null;
5835
+ status?: string;
5836
+ updated_at?: string;
5837
+ };
5838
+ Update: {
5839
+ connection_id?: string | null;
5840
+ created_at?: string;
5841
+ created_by?: string;
5842
+ customer_id?: string | null;
5843
+ id?: string;
5844
+ last_error?: string | null;
5845
+ last_polled_at?: string | null;
5846
+ payload?: import("./types").Json;
5847
+ provider_id?: string;
5848
+ queue_id?: string | null;
5849
+ status?: string;
5850
+ updated_at?: string;
5851
+ };
5852
+ Relationships: [{
5853
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
5854
+ columns: ["provider_id"];
5855
+ isOneToOne: false;
5856
+ referencedRelation: "external_invoice_providers";
5857
+ referencedColumns: ["provider"];
5858
+ }];
5859
+ };
5860
+ invoice_run_items: {
5861
+ Row: {
5862
+ booking_id: string | null;
5863
+ company_name: string | null;
5864
+ created_at: string;
5865
+ customer_email: string | null;
5866
+ description: string | null;
5867
+ exact_article_id: string | null;
5868
+ id: string;
5869
+ invoice_run_id: string | null;
5870
+ quantity: number | null;
5871
+ total_excl_vat: number | null;
5872
+ total_incl_vat: number | null;
5873
+ unit_price: number | null;
5874
+ vat_amount: number | null;
5875
+ };
5876
+ Insert: {
5877
+ booking_id?: string | null;
5878
+ company_name?: string | null;
5879
+ created_at?: string;
5880
+ customer_email?: string | null;
5881
+ description?: string | null;
5882
+ exact_article_id?: string | null;
5883
+ id?: string;
5884
+ invoice_run_id?: string | null;
5885
+ quantity?: number | null;
5886
+ total_excl_vat?: number | null;
5887
+ total_incl_vat?: number | null;
5888
+ unit_price?: number | null;
5889
+ vat_amount?: number | null;
5890
+ };
5891
+ Update: {
5892
+ booking_id?: string | null;
5893
+ company_name?: string | null;
5894
+ created_at?: string;
5895
+ customer_email?: string | null;
5896
+ description?: string | null;
5897
+ exact_article_id?: string | null;
5898
+ id?: string;
5899
+ invoice_run_id?: string | null;
5900
+ quantity?: number | null;
5901
+ total_excl_vat?: number | null;
5902
+ total_incl_vat?: number | null;
5903
+ unit_price?: number | null;
5904
+ vat_amount?: number | null;
5905
+ };
5906
+ Relationships: [{
5907
+ foreignKeyName: "invoice_run_items_booking_id_fkey";
5908
+ columns: ["booking_id"];
5909
+ isOneToOne: false;
5910
+ referencedRelation: "bookings";
5911
+ referencedColumns: ["id"];
5912
+ }, {
5913
+ foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
5914
+ columns: ["invoice_run_id"];
5915
+ isOneToOne: false;
5916
+ referencedRelation: "invoice_runs";
5917
+ referencedColumns: ["id"];
5918
+ }];
5919
+ };
5920
+ invoice_runs: {
5921
+ Row: {
5922
+ created_at: string;
5923
+ created_by: string | null;
5924
+ id: string;
5925
+ period_end: string;
5926
+ period_start: string;
5927
+ status: string;
5928
+ total_excl_vat: number | null;
5929
+ total_incl_vat: number | null;
5930
+ vat_amount: number | null;
5931
+ };
5932
+ Insert: {
5933
+ created_at?: string;
5934
+ created_by?: string | null;
5935
+ id?: string;
5936
+ period_end: string;
5937
+ period_start: string;
5938
+ status?: string;
5939
+ total_excl_vat?: number | null;
5940
+ total_incl_vat?: number | null;
5941
+ vat_amount?: number | null;
5942
+ };
5943
+ Update: {
5944
+ created_at?: string;
5945
+ created_by?: string | null;
5946
+ id?: string;
5947
+ period_end?: string;
5948
+ period_start?: string;
5949
+ status?: string;
5950
+ total_excl_vat?: number | null;
5951
+ total_incl_vat?: number | null;
5952
+ vat_amount?: number | null;
5953
+ };
5954
+ Relationships: [];
5955
+ };
5956
+ itk_contact_persons: {
5957
+ Row: {
5958
+ created_at: string;
5959
+ customer_id: string;
5960
+ email: string | null;
5961
+ id: string;
5962
+ name: string;
5963
+ phone: string | null;
5964
+ role: string | null;
5965
+ updated_at: string;
5966
+ };
5967
+ Insert: {
5968
+ created_at?: string;
5969
+ customer_id: string;
5970
+ email?: string | null;
5971
+ id?: string;
5972
+ name: string;
5973
+ phone?: string | null;
5974
+ role?: string | null;
5975
+ updated_at?: string;
5976
+ };
5977
+ Update: {
5978
+ created_at?: string;
5979
+ customer_id?: string;
5980
+ email?: string | null;
5981
+ id?: string;
5982
+ name?: string;
5983
+ phone?: string | null;
5984
+ role?: string | null;
5985
+ updated_at?: string;
5986
+ };
5987
+ Relationships: [{
5988
+ foreignKeyName: "itk_contact_persons_customer_id_fkey";
5989
+ columns: ["customer_id"];
5990
+ isOneToOne: false;
5991
+ referencedRelation: "itk_customers";
5992
+ referencedColumns: ["id"];
5993
+ }];
5994
+ };
5995
+ itk_customer_dynamic_values: {
5996
+ Row: {
5997
+ created_at: string;
5998
+ customer_id: string;
5999
+ field_id: string;
6000
+ id: string;
6001
+ updated_at: string;
6002
+ value: string | null;
6003
+ };
6004
+ Insert: {
6005
+ created_at?: string;
6006
+ customer_id: string;
6007
+ field_id: string;
6008
+ id?: string;
6009
+ updated_at?: string;
6010
+ value?: string | null;
6011
+ };
6012
+ Update: {
6013
+ created_at?: string;
6014
+ customer_id?: string;
6015
+ field_id?: string;
6016
+ id?: string;
6017
+ updated_at?: string;
6018
+ value?: string | null;
6019
+ };
6020
+ Relationships: [{
6021
+ foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
6022
+ columns: ["customer_id"];
6023
+ isOneToOne: false;
6024
+ referencedRelation: "itk_customers";
6025
+ referencedColumns: ["id"];
6026
+ }, {
6027
+ foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
6028
+ columns: ["field_id"];
6029
+ isOneToOne: false;
6030
+ referencedRelation: "itk_dynamic_fields";
6031
+ referencedColumns: ["id"];
6032
+ }];
6033
+ };
6034
+ itk_customer_notes: {
6035
+ Row: {
6036
+ body: string;
6037
+ created_at: string;
6038
+ created_by: string | null;
6039
+ customer_id: string;
6040
+ id: string;
6041
+ note_type: string;
6042
+ updated_at: string;
6043
+ };
6044
+ Insert: {
6045
+ body: string;
6046
+ created_at?: string;
6047
+ created_by?: string | null;
6048
+ customer_id: string;
6049
+ id?: string;
6050
+ note_type?: string;
6051
+ updated_at?: string;
6052
+ };
6053
+ Update: {
6054
+ body?: string;
6055
+ created_at?: string;
6056
+ created_by?: string | null;
6057
+ customer_id?: string;
6058
+ id?: string;
6059
+ note_type?: string;
6060
+ updated_at?: string;
6061
+ };
6062
+ Relationships: [{
6063
+ foreignKeyName: "itk_customer_notes_customer_id_fkey";
6064
+ columns: ["customer_id"];
6065
+ isOneToOne: false;
6066
+ referencedRelation: "itk_customers";
5299
6067
  referencedColumns: ["id"];
5300
6068
  }];
5301
6069
  };
5302
- inventory_settings: {
6070
+ itk_customers: {
5303
6071
  Row: {
6072
+ billing_city: string | null;
6073
+ billing_postcode: string | null;
6074
+ billing_street: string | null;
5304
6075
  created_at: string;
5305
- hierarchy_levels: string[];
6076
+ general_email: string | null;
6077
+ general_phone: string | null;
5306
6078
  id: string;
6079
+ legacy_customer_id: string | null;
6080
+ name: string;
6081
+ segment: Database["public"]["Enums"]["itk_customer_segment"];
5307
6082
  updated_at: string;
5308
- visible_columns: string[];
5309
6083
  };
5310
6084
  Insert: {
6085
+ billing_city?: string | null;
6086
+ billing_postcode?: string | null;
6087
+ billing_street?: string | null;
5311
6088
  created_at?: string;
5312
- hierarchy_levels?: string[];
6089
+ general_email?: string | null;
6090
+ general_phone?: string | null;
5313
6091
  id?: string;
6092
+ legacy_customer_id?: string | null;
6093
+ name: string;
6094
+ segment?: Database["public"]["Enums"]["itk_customer_segment"];
5314
6095
  updated_at?: string;
5315
- visible_columns?: string[];
5316
6096
  };
5317
6097
  Update: {
6098
+ billing_city?: string | null;
6099
+ billing_postcode?: string | null;
6100
+ billing_street?: string | null;
5318
6101
  created_at?: string;
5319
- hierarchy_levels?: string[];
6102
+ general_email?: string | null;
6103
+ general_phone?: string | null;
5320
6104
  id?: string;
6105
+ legacy_customer_id?: string | null;
6106
+ name?: string;
6107
+ segment?: Database["public"]["Enums"]["itk_customer_segment"];
5321
6108
  updated_at?: string;
5322
- visible_columns?: string[];
5323
6109
  };
5324
- Relationships: [];
6110
+ Relationships: [{
6111
+ foreignKeyName: "itk_customers_legacy_customer_id_fkey";
6112
+ columns: ["legacy_customer_id"];
6113
+ isOneToOne: false;
6114
+ referencedRelation: "customers";
6115
+ referencedColumns: ["id"];
6116
+ }];
5325
6117
  };
5326
- invoice_push_log: {
6118
+ itk_dynamic_fields: {
5327
6119
  Row: {
5328
- connection_id: string | null;
5329
6120
  created_at: string;
5330
- created_by: string;
5331
- customer_id: string | null;
6121
+ field_name: string;
6122
+ field_type: Database["public"]["Enums"]["itk_dynamic_field_type"];
5332
6123
  id: string;
5333
- last_error: string | null;
5334
- last_polled_at: string | null;
5335
- payload: import("./types").Json;
5336
- provider_id: string;
5337
- queue_id: string | null;
5338
- status: string;
6124
+ options: import("./types").Json;
6125
+ sort_order: number;
5339
6126
  updated_at: string;
5340
6127
  };
5341
6128
  Insert: {
5342
- connection_id?: string | null;
5343
6129
  created_at?: string;
5344
- created_by?: string;
5345
- customer_id?: string | null;
6130
+ field_name: string;
6131
+ field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
5346
6132
  id?: string;
5347
- last_error?: string | null;
5348
- last_polled_at?: string | null;
5349
- payload?: import("./types").Json;
5350
- provider_id: string;
5351
- queue_id?: string | null;
5352
- status?: string;
6133
+ options?: import("./types").Json;
6134
+ sort_order?: number;
5353
6135
  updated_at?: string;
5354
6136
  };
5355
6137
  Update: {
5356
- connection_id?: string | null;
5357
6138
  created_at?: string;
5358
- created_by?: string;
5359
- customer_id?: string | null;
6139
+ field_name?: string;
6140
+ field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
5360
6141
  id?: string;
5361
- last_error?: string | null;
5362
- last_polled_at?: string | null;
5363
- payload?: import("./types").Json;
5364
- provider_id?: string;
5365
- queue_id?: string | null;
5366
- status?: string;
6142
+ options?: import("./types").Json;
6143
+ sort_order?: number;
5367
6144
  updated_at?: string;
5368
6145
  };
5369
- Relationships: [{
5370
- foreignKeyName: "invoice_push_log_provider_id_fkey";
5371
- columns: ["provider_id"];
5372
- isOneToOne: false;
5373
- referencedRelation: "external_invoice_providers";
5374
- referencedColumns: ["provider"];
5375
- }];
6146
+ Relationships: [];
5376
6147
  };
5377
- invoice_run_items: {
6148
+ itk_work_locations: {
5378
6149
  Row: {
5379
- booking_id: string | null;
5380
- company_name: string | null;
6150
+ city: string | null;
5381
6151
  created_at: string;
5382
- customer_email: string | null;
5383
- description: string | null;
5384
- exact_article_id: string | null;
6152
+ customer_id: string;
5385
6153
  id: string;
5386
- invoice_run_id: string | null;
5387
- quantity: number | null;
5388
- total_excl_vat: number | null;
5389
- total_incl_vat: number | null;
5390
- unit_price: number | null;
5391
- vat_amount: number | null;
6154
+ instructions: string | null;
6155
+ label: string;
6156
+ latitude: number | null;
6157
+ longitude: number | null;
6158
+ postcode: string | null;
6159
+ street: string | null;
6160
+ updated_at: string;
5392
6161
  };
5393
6162
  Insert: {
5394
- booking_id?: string | null;
5395
- company_name?: string | null;
6163
+ city?: string | null;
5396
6164
  created_at?: string;
5397
- customer_email?: string | null;
5398
- description?: string | null;
5399
- exact_article_id?: string | null;
6165
+ customer_id: string;
5400
6166
  id?: string;
5401
- invoice_run_id?: string | null;
5402
- quantity?: number | null;
5403
- total_excl_vat?: number | null;
5404
- total_incl_vat?: number | null;
5405
- unit_price?: number | null;
5406
- vat_amount?: number | null;
6167
+ instructions?: string | null;
6168
+ label: string;
6169
+ latitude?: number | null;
6170
+ longitude?: number | null;
6171
+ postcode?: string | null;
6172
+ street?: string | null;
6173
+ updated_at?: string;
5407
6174
  };
5408
6175
  Update: {
5409
- booking_id?: string | null;
5410
- company_name?: string | null;
6176
+ city?: string | null;
5411
6177
  created_at?: string;
5412
- customer_email?: string | null;
5413
- description?: string | null;
5414
- exact_article_id?: string | null;
6178
+ customer_id?: string;
5415
6179
  id?: string;
5416
- invoice_run_id?: string | null;
5417
- quantity?: number | null;
5418
- total_excl_vat?: number | null;
5419
- total_incl_vat?: number | null;
5420
- unit_price?: number | null;
5421
- vat_amount?: number | null;
6180
+ instructions?: string | null;
6181
+ label?: string;
6182
+ latitude?: number | null;
6183
+ longitude?: number | null;
6184
+ postcode?: string | null;
6185
+ street?: string | null;
6186
+ updated_at?: string;
5422
6187
  };
5423
6188
  Relationships: [{
5424
- foreignKeyName: "invoice_run_items_booking_id_fkey";
5425
- columns: ["booking_id"];
5426
- isOneToOne: false;
5427
- referencedRelation: "bookings";
5428
- referencedColumns: ["id"];
5429
- }, {
5430
- foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
5431
- columns: ["invoice_run_id"];
6189
+ foreignKeyName: "itk_work_locations_customer_id_fkey";
6190
+ columns: ["customer_id"];
5432
6191
  isOneToOne: false;
5433
- referencedRelation: "invoice_runs";
6192
+ referencedRelation: "itk_customers";
5434
6193
  referencedColumns: ["id"];
5435
6194
  }];
5436
6195
  };
5437
- invoice_runs: {
6196
+ leave_requests: {
5438
6197
  Row: {
5439
6198
  created_at: string;
5440
- created_by: string | null;
6199
+ end_date: string;
5441
6200
  id: string;
5442
- period_end: string;
5443
- period_start: string;
6201
+ reason: string | null;
6202
+ start_date: string;
5444
6203
  status: string;
5445
- total_excl_vat: number | null;
5446
- total_incl_vat: number | null;
5447
- vat_amount: number | null;
6204
+ tenant_id: string;
6205
+ updated_at: string;
6206
+ user_id: string;
5448
6207
  };
5449
6208
  Insert: {
5450
6209
  created_at?: string;
5451
- created_by?: string | null;
6210
+ end_date: string;
5452
6211
  id?: string;
5453
- period_end: string;
5454
- period_start: string;
6212
+ reason?: string | null;
6213
+ start_date: string;
5455
6214
  status?: string;
5456
- total_excl_vat?: number | null;
5457
- total_incl_vat?: number | null;
5458
- vat_amount?: number | null;
6215
+ tenant_id?: string;
6216
+ updated_at?: string;
6217
+ user_id: string;
5459
6218
  };
5460
6219
  Update: {
5461
6220
  created_at?: string;
5462
- created_by?: string | null;
6221
+ end_date?: string;
5463
6222
  id?: string;
5464
- period_end?: string;
5465
- period_start?: string;
6223
+ reason?: string | null;
6224
+ start_date?: string;
5466
6225
  status?: string;
5467
- total_excl_vat?: number | null;
5468
- total_incl_vat?: number | null;
5469
- vat_amount?: number | null;
6226
+ tenant_id?: string;
6227
+ updated_at?: string;
6228
+ user_id?: string;
5470
6229
  };
5471
- Relationships: [];
6230
+ Relationships: [{
6231
+ foreignKeyName: "leave_requests_user_id_fkey";
6232
+ columns: ["user_id"];
6233
+ isOneToOne: false;
6234
+ referencedRelation: "monteurs";
6235
+ referencedColumns: ["id"];
6236
+ }];
5472
6237
  };
5473
6238
  local_customer_agreements: {
5474
6239
  Row: {
@@ -6087,60 +6852,66 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6087
6852
  };
6088
6853
  manufacture_products: {
6089
6854
  Row: {
6090
- aantal_te_produceren: number;
6091
6855
  created_at: string;
6092
6856
  description: string | null;
6093
6857
  id: string;
6094
6858
  is_active: boolean;
6095
- location_id: string | null;
6096
6859
  name: string;
6097
- partij_nummer: string | null;
6098
- photos: import("./types").Json;
6099
6860
  produced_stock: number;
6100
6861
  product_code: string;
6101
6862
  tenant_id: string;
6102
- unit: string;
6103
6863
  updated_at: string;
6104
6864
  };
6105
6865
  Insert: {
6106
- aantal_te_produceren?: number;
6107
6866
  created_at?: string;
6108
6867
  description?: string | null;
6109
6868
  id?: string;
6110
6869
  is_active?: boolean;
6111
- location_id?: string | null;
6112
6870
  name: string;
6113
- partij_nummer?: string | null;
6114
- photos?: import("./types").Json;
6115
6871
  produced_stock?: number;
6116
6872
  product_code: string;
6117
6873
  tenant_id: string;
6118
- unit?: string;
6119
6874
  updated_at?: string;
6120
6875
  };
6121
6876
  Update: {
6122
- aantal_te_produceren?: number;
6123
6877
  created_at?: string;
6124
6878
  description?: string | null;
6125
6879
  id?: string;
6126
6880
  is_active?: boolean;
6127
- location_id?: string | null;
6128
6881
  name?: string;
6129
- partij_nummer?: string | null;
6130
- photos?: import("./types").Json;
6131
6882
  produced_stock?: number;
6132
6883
  product_code?: string;
6133
6884
  tenant_id?: string;
6134
- unit?: string;
6135
6885
  updated_at?: string;
6136
6886
  };
6137
- Relationships: [{
6138
- foreignKeyName: "manufacture_products_location_id_fkey";
6139
- columns: ["location_id"];
6140
- isOneToOne: false;
6141
- referencedRelation: "locations";
6142
- referencedColumns: ["id"];
6143
- }];
6887
+ Relationships: [];
6888
+ };
6889
+ module_permissions: {
6890
+ Row: {
6891
+ created_at: string;
6892
+ id: string;
6893
+ module_id: string;
6894
+ permission: string;
6895
+ role: Database["public"]["Enums"]["app_role"];
6896
+ updated_at: string;
6897
+ };
6898
+ Insert: {
6899
+ created_at?: string;
6900
+ id?: string;
6901
+ module_id: string;
6902
+ permission: string;
6903
+ role: Database["public"]["Enums"]["app_role"];
6904
+ updated_at?: string;
6905
+ };
6906
+ Update: {
6907
+ created_at?: string;
6908
+ id?: string;
6909
+ module_id?: string;
6910
+ permission?: string;
6911
+ role?: Database["public"]["Enums"]["app_role"];
6912
+ updated_at?: string;
6913
+ };
6914
+ Relationships: [];
6144
6915
  };
6145
6916
  monteurs: {
6146
6917
  Row: {
@@ -6871,6 +7642,42 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6871
7642
  };
6872
7643
  Relationships: [];
6873
7644
  };
7645
+ order_buffers: {
7646
+ Row: {
7647
+ buffer_key: string;
7648
+ created_at: string;
7649
+ customer_id: string | null;
7650
+ grouping_mode: string;
7651
+ id: string;
7652
+ pickup_date: string | null;
7653
+ pickup_location: string | null;
7654
+ plan_locked_at: string | null;
7655
+ updated_at: string;
7656
+ };
7657
+ Insert: {
7658
+ buffer_key: string;
7659
+ created_at?: string;
7660
+ customer_id?: string | null;
7661
+ grouping_mode: string;
7662
+ id?: string;
7663
+ pickup_date?: string | null;
7664
+ pickup_location?: string | null;
7665
+ plan_locked_at?: string | null;
7666
+ updated_at?: string;
7667
+ };
7668
+ Update: {
7669
+ buffer_key?: string;
7670
+ created_at?: string;
7671
+ customer_id?: string | null;
7672
+ grouping_mode?: string;
7673
+ id?: string;
7674
+ pickup_date?: string | null;
7675
+ pickup_location?: string | null;
7676
+ plan_locked_at?: string | null;
7677
+ updated_at?: string;
7678
+ };
7679
+ Relationships: [];
7680
+ };
6874
7681
  order_cart_items: {
6875
7682
  Row: {
6876
7683
  cart_id: string;
@@ -6937,6 +7744,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6937
7744
  order_carts: {
6938
7745
  Row: {
6939
7746
  algorithm_version: number;
7747
+ buffer_id: string | null;
6940
7748
  cart_number: number;
6941
7749
  created_at: string;
6942
7750
  id: string;
@@ -6944,13 +7752,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6944
7752
  is_complete: boolean;
6945
7753
  notes: string | null;
6946
7754
  occupancy_pct: number;
6947
- order_id: string;
7755
+ order_id: string | null;
6948
7756
  source: string;
6949
7757
  total_layers_used: number;
6950
7758
  updated_at: string;
6951
7759
  };
6952
7760
  Insert: {
6953
7761
  algorithm_version?: number;
7762
+ buffer_id?: string | null;
6954
7763
  cart_number: number;
6955
7764
  created_at?: string;
6956
7765
  id?: string;
@@ -6958,13 +7767,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6958
7767
  is_complete?: boolean;
6959
7768
  notes?: string | null;
6960
7769
  occupancy_pct?: number;
6961
- order_id: string;
7770
+ order_id?: string | null;
6962
7771
  source?: string;
6963
7772
  total_layers_used?: number;
6964
7773
  updated_at?: string;
6965
7774
  };
6966
7775
  Update: {
6967
7776
  algorithm_version?: number;
7777
+ buffer_id?: string | null;
6968
7778
  cart_number?: number;
6969
7779
  created_at?: string;
6970
7780
  id?: string;
@@ -6972,12 +7782,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6972
7782
  is_complete?: boolean;
6973
7783
  notes?: string | null;
6974
7784
  occupancy_pct?: number;
6975
- order_id?: string;
7785
+ order_id?: string | null;
6976
7786
  source?: string;
6977
7787
  total_layers_used?: number;
6978
7788
  updated_at?: string;
6979
7789
  };
6980
7790
  Relationships: [{
7791
+ foreignKeyName: "order_carts_buffer_id_fkey";
7792
+ columns: ["buffer_id"];
7793
+ isOneToOne: false;
7794
+ referencedRelation: "order_buffers";
7795
+ referencedColumns: ["id"];
7796
+ }, {
6981
7797
  foreignKeyName: "order_carts_order_id_fkey";
6982
7798
  columns: ["order_id"];
6983
7799
  isOneToOne: false;
@@ -7215,12 +8031,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7215
8031
  };
7216
8032
  orders: {
7217
8033
  Row: {
8034
+ buffer_id: string | null;
7218
8035
  created_at: string;
7219
8036
  custom_fields: import("./types").Json;
7220
8037
  customer_id: string | null;
7221
8038
  customer_name: string;
7222
8039
  deleted_at: string | null;
7223
8040
  delivery_date: string | null;
8041
+ floriday_sales_order_id: string | null;
7224
8042
  id: string;
7225
8043
  is_reservation: boolean;
7226
8044
  notes: string | null;
@@ -7234,12 +8052,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7234
8052
  updated_at: string;
7235
8053
  };
7236
8054
  Insert: {
8055
+ buffer_id?: string | null;
7237
8056
  created_at?: string;
7238
8057
  custom_fields?: import("./types").Json;
7239
8058
  customer_id?: string | null;
7240
8059
  customer_name?: string;
7241
8060
  deleted_at?: string | null;
7242
8061
  delivery_date?: string | null;
8062
+ floriday_sales_order_id?: string | null;
7243
8063
  id?: string;
7244
8064
  is_reservation?: boolean;
7245
8065
  notes?: string | null;
@@ -7253,12 +8073,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7253
8073
  updated_at?: string;
7254
8074
  };
7255
8075
  Update: {
8076
+ buffer_id?: string | null;
7256
8077
  created_at?: string;
7257
8078
  custom_fields?: import("./types").Json;
7258
8079
  customer_id?: string | null;
7259
8080
  customer_name?: string;
7260
8081
  deleted_at?: string | null;
7261
8082
  delivery_date?: string | null;
8083
+ floriday_sales_order_id?: string | null;
7262
8084
  id?: string;
7263
8085
  is_reservation?: boolean;
7264
8086
  notes?: string | null;
@@ -7272,6 +8094,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7272
8094
  updated_at?: string;
7273
8095
  };
7274
8096
  Relationships: [{
8097
+ foreignKeyName: "orders_buffer_id_fkey";
8098
+ columns: ["buffer_id"];
8099
+ isOneToOne: false;
8100
+ referencedRelation: "order_buffers";
8101
+ referencedColumns: ["id"];
8102
+ }, {
7275
8103
  foreignKeyName: "orders_customer_id_fkey";
7276
8104
  columns: ["customer_id"];
7277
8105
  isOneToOne: false;
@@ -7391,73 +8219,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7391
8219
  updated_at?: string;
7392
8220
  };
7393
8221
  Update: {
7394
- automation_type?: string;
7395
- color?: string;
7396
- created_at?: string;
7397
- id?: string;
7398
- is_active?: boolean;
7399
- name?: string;
7400
- sort_order?: number;
7401
- updated_at?: string;
7402
- };
7403
- Relationships: [];
7404
- };
7405
- product_bom_items: {
7406
- Row: {
7407
- component_product_id: string | null;
7408
- component_trade_item_floriday_id: string | null;
7409
- created_at: string;
7410
- id: string;
7411
- notes: string | null;
7412
- parent_product_id: string | null;
7413
- parent_trade_item_floriday_id: string | null;
7414
- quantity: number;
7415
- sort_order: number;
7416
- tenant_id: string;
7417
- unit: string;
7418
- updated_at: string;
7419
- };
7420
- Insert: {
7421
- component_product_id?: string | null;
7422
- component_trade_item_floriday_id?: string | null;
7423
- created_at?: string;
7424
- id?: string;
7425
- notes?: string | null;
7426
- parent_product_id?: string | null;
7427
- parent_trade_item_floriday_id?: string | null;
7428
- quantity?: number;
7429
- sort_order?: number;
7430
- tenant_id: string;
7431
- unit?: string;
7432
- updated_at?: string;
7433
- };
7434
- Update: {
7435
- component_product_id?: string | null;
7436
- component_trade_item_floriday_id?: string | null;
8222
+ automation_type?: string;
8223
+ color?: string;
7437
8224
  created_at?: string;
7438
8225
  id?: string;
7439
- notes?: string | null;
7440
- parent_product_id?: string | null;
7441
- parent_trade_item_floriday_id?: string | null;
7442
- quantity?: number;
8226
+ is_active?: boolean;
8227
+ name?: string;
7443
8228
  sort_order?: number;
7444
- tenant_id?: string;
7445
- unit?: string;
7446
8229
  updated_at?: string;
7447
8230
  };
7448
- Relationships: [{
7449
- foreignKeyName: "product_bom_items_component_product_id_fkey";
7450
- columns: ["component_product_id"];
7451
- isOneToOne: false;
7452
- referencedRelation: "products";
7453
- referencedColumns: ["id"];
7454
- }, {
7455
- foreignKeyName: "product_bom_items_parent_product_id_fkey";
7456
- columns: ["parent_product_id"];
7457
- isOneToOne: false;
7458
- referencedRelation: "products";
7459
- referencedColumns: ["id"];
7460
- }];
8231
+ Relationships: [];
7461
8232
  };
7462
8233
  product_categories: {
7463
8234
  Row: {
@@ -7564,7 +8335,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7564
8335
  id: string;
7565
8336
  product_group_id: string;
7566
8337
  quantity: number;
7567
- sort_order: number;
7568
8338
  trade_item_id: string;
7569
8339
  };
7570
8340
  Insert: {
@@ -7572,7 +8342,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7572
8342
  id?: string;
7573
8343
  product_group_id: string;
7574
8344
  quantity?: number;
7575
- sort_order?: number;
7576
8345
  trade_item_id: string;
7577
8346
  };
7578
8347
  Update: {
@@ -7580,7 +8349,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7580
8349
  id?: string;
7581
8350
  product_group_id?: string;
7582
8351
  quantity?: number;
7583
- sort_order?: number;
7584
8352
  trade_item_id?: string;
7585
8353
  };
7586
8354
  Relationships: [{
@@ -7595,8 +8363,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7595
8363
  Row: {
7596
8364
  created_at: string;
7597
8365
  description: string | null;
7598
- head_product_id: string | null;
7599
- head_trade_item_floriday_id: string | null;
7600
8366
  id: string;
7601
8367
  is_active: boolean;
7602
8368
  name: string;
@@ -7606,8 +8372,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7606
8372
  Insert: {
7607
8373
  created_at?: string;
7608
8374
  description?: string | null;
7609
- head_product_id?: string | null;
7610
- head_trade_item_floriday_id?: string | null;
7611
8375
  id?: string;
7612
8376
  is_active?: boolean;
7613
8377
  name: string;
@@ -7617,126 +8381,21 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7617
8381
  Update: {
7618
8382
  created_at?: string;
7619
8383
  description?: string | null;
7620
- head_product_id?: string | null;
7621
- head_trade_item_floriday_id?: string | null;
7622
8384
  id?: string;
7623
8385
  is_active?: boolean;
7624
8386
  name?: string;
7625
8387
  tenant_id?: string;
7626
8388
  updated_at?: string;
7627
8389
  };
7628
- Relationships: [{
7629
- foreignKeyName: "product_groups_head_product_id_fkey";
7630
- columns: ["head_product_id"];
7631
- isOneToOne: false;
7632
- referencedRelation: "products";
7633
- referencedColumns: ["id"];
7634
- }];
7635
- };
7636
- product_load_settings: {
7637
- Row: {
7638
- created_at: string;
7639
- id: string;
7640
- is_package: boolean;
7641
- layers_per_load_carrier: number | null;
7642
- load_carrier: string | null;
7643
- package_id: string | null;
7644
- package_label: string | null;
7645
- packages_per_layer: number | null;
7646
- product_id: string | null;
7647
- tenant_id: string;
7648
- trade_item_floriday_id: string | null;
7649
- units_per_package: number | null;
7650
- updated_at: string;
7651
- };
7652
- Insert: {
7653
- created_at?: string;
7654
- id?: string;
7655
- is_package?: boolean;
7656
- layers_per_load_carrier?: number | null;
7657
- load_carrier?: string | null;
7658
- package_id?: string | null;
7659
- package_label?: string | null;
7660
- packages_per_layer?: number | null;
7661
- product_id?: string | null;
7662
- tenant_id: string;
7663
- trade_item_floriday_id?: string | null;
7664
- units_per_package?: number | null;
7665
- updated_at?: string;
7666
- };
7667
- Update: {
7668
- created_at?: string;
7669
- id?: string;
7670
- is_package?: boolean;
7671
- layers_per_load_carrier?: number | null;
7672
- load_carrier?: string | null;
7673
- package_id?: string | null;
7674
- package_label?: string | null;
7675
- packages_per_layer?: number | null;
7676
- product_id?: string | null;
7677
- tenant_id?: string;
7678
- trade_item_floriday_id?: string | null;
7679
- units_per_package?: number | null;
7680
- updated_at?: string;
7681
- };
7682
- Relationships: [{
7683
- foreignKeyName: "product_load_settings_package_id_fkey";
7684
- columns: ["package_id"];
7685
- isOneToOne: false;
7686
- referencedRelation: "packages";
7687
- referencedColumns: ["id"];
7688
- }, {
7689
- foreignKeyName: "product_load_settings_product_id_fkey";
7690
- columns: ["product_id"];
7691
- isOneToOne: false;
7692
- referencedRelation: "products";
7693
- referencedColumns: ["id"];
7694
- }];
7695
- };
7696
- product_merge_log: {
7697
- Row: {
7698
- canonical_product_id: string | null;
7699
- id: string;
7700
- merged_at: string;
7701
- merged_from_id: string;
7702
- notes: string | null;
7703
- snapshot: import("./types").Json;
7704
- source_table: string;
7705
- status: string;
7706
- };
7707
- Insert: {
7708
- canonical_product_id?: string | null;
7709
- id?: string;
7710
- merged_at?: string;
7711
- merged_from_id: string;
7712
- notes?: string | null;
7713
- snapshot?: import("./types").Json;
7714
- source_table: string;
7715
- status?: string;
7716
- };
7717
- Update: {
7718
- canonical_product_id?: string | null;
7719
- id?: string;
7720
- merged_at?: string;
7721
- merged_from_id?: string;
7722
- notes?: string | null;
7723
- snapshot?: import("./types").Json;
7724
- source_table?: string;
7725
- status?: string;
7726
- };
7727
8390
  Relationships: [];
7728
8391
  };
7729
8392
  products: {
7730
8393
  Row: {
7731
- article_number: string | null;
7732
8394
  barcode: string | null;
7733
8395
  batch: string;
7734
8396
  crates_per_layer: number;
7735
8397
  created_at: string;
7736
8398
  custom_fields: import("./types").Json;
7737
- floriday_active: boolean;
7738
- floriday_payload: import("./types").Json;
7739
- floriday_trade_item_id: string | null;
7740
8399
  id: string;
7741
8400
  image_url: string | null;
7742
8401
  incoming_quantity: number;
@@ -7755,15 +8414,11 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7755
8414
  weight: string | null;
7756
8415
  };
7757
8416
  Insert: {
7758
- article_number?: string | null;
7759
8417
  barcode?: string | null;
7760
8418
  batch: string;
7761
8419
  crates_per_layer?: number;
7762
8420
  created_at?: string;
7763
8421
  custom_fields?: import("./types").Json;
7764
- floriday_active?: boolean;
7765
- floriday_payload?: import("./types").Json;
7766
- floriday_trade_item_id?: string | null;
7767
8422
  id?: string;
7768
8423
  image_url?: string | null;
7769
8424
  incoming_quantity?: number;
@@ -7782,15 +8437,11 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7782
8437
  weight?: string | null;
7783
8438
  };
7784
8439
  Update: {
7785
- article_number?: string | null;
7786
8440
  barcode?: string | null;
7787
8441
  batch?: string;
7788
8442
  crates_per_layer?: number;
7789
8443
  created_at?: string;
7790
8444
  custom_fields?: import("./types").Json;
7791
- floriday_active?: boolean;
7792
- floriday_payload?: import("./types").Json;
7793
- floriday_trade_item_id?: string | null;
7794
8445
  id?: string;
7795
8446
  image_url?: string | null;
7796
8447
  incoming_quantity?: number;
@@ -8699,10 +9350,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8699
9350
  order_id: string | null;
8700
9351
  order_item_id: string | null;
8701
9352
  order_source: string | null;
8702
- parent_trade_item_key: string | null;
8703
9353
  physical_after: number | null;
8704
9354
  physical_before: number | null;
8705
- production_batch_id: string | null;
8706
9355
  qty_delta: number;
8707
9356
  reason: string | null;
8708
9357
  reserved_after: number | null;
@@ -8718,10 +9367,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8718
9367
  order_id?: string | null;
8719
9368
  order_item_id?: string | null;
8720
9369
  order_source?: string | null;
8721
- parent_trade_item_key?: string | null;
8722
9370
  physical_after?: number | null;
8723
9371
  physical_before?: number | null;
8724
- production_batch_id?: string | null;
8725
9372
  qty_delta: number;
8726
9373
  reason?: string | null;
8727
9374
  reserved_after?: number | null;
@@ -8737,10 +9384,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8737
9384
  order_id?: string | null;
8738
9385
  order_item_id?: string | null;
8739
9386
  order_source?: string | null;
8740
- parent_trade_item_key?: string | null;
8741
9387
  physical_after?: number | null;
8742
9388
  physical_before?: number | null;
8743
- production_batch_id?: string | null;
8744
9389
  qty_delta?: number;
8745
9390
  reason?: string | null;
8746
9391
  reserved_after?: number | null;
@@ -8842,6 +9487,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8842
9487
  };
8843
9488
  Relationships: [];
8844
9489
  };
9490
+ technician_rates: {
9491
+ Row: {
9492
+ created_at: string;
9493
+ hourly_rate_cents: number;
9494
+ updated_at: string;
9495
+ user_id: string;
9496
+ };
9497
+ Insert: {
9498
+ created_at?: string;
9499
+ hourly_rate_cents?: number;
9500
+ updated_at?: string;
9501
+ user_id: string;
9502
+ };
9503
+ Update: {
9504
+ created_at?: string;
9505
+ hourly_rate_cents?: number;
9506
+ updated_at?: string;
9507
+ user_id?: string;
9508
+ };
9509
+ Relationships: [];
9510
+ };
8845
9511
  tenants: {
8846
9512
  Row: {
8847
9513
  created_at: string;
@@ -9199,7 +9865,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9199
9865
  twinfield_connections: {
9200
9866
  Row: {
9201
9867
  access_token: string | null;
9202
- client_id: string | null;
9868
+ client_id: string;
9203
9869
  client_secret: string | null;
9204
9870
  cluster_uri: string | null;
9205
9871
  company_code: string | null;
@@ -9211,7 +9877,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9211
9877
  is_active: boolean;
9212
9878
  label: string | null;
9213
9879
  office_code: string | null;
9214
- redirect_uri: string | null;
9880
+ redirect_uri: string;
9215
9881
  refresh_token: string | null;
9216
9882
  token_expires_at: string | null;
9217
9883
  updated_at: string;
@@ -9219,7 +9885,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9219
9885
  };
9220
9886
  Insert: {
9221
9887
  access_token?: string | null;
9222
- client_id?: string | null;
9888
+ client_id: string;
9223
9889
  client_secret?: string | null;
9224
9890
  cluster_uri?: string | null;
9225
9891
  company_code?: string | null;
@@ -9231,7 +9897,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9231
9897
  is_active?: boolean;
9232
9898
  label?: string | null;
9233
9899
  office_code?: string | null;
9234
- redirect_uri?: string | null;
9900
+ redirect_uri: string;
9235
9901
  refresh_token?: string | null;
9236
9902
  token_expires_at?: string | null;
9237
9903
  updated_at?: string;
@@ -9239,7 +9905,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9239
9905
  };
9240
9906
  Update: {
9241
9907
  access_token?: string | null;
9242
- client_id?: string | null;
9908
+ client_id?: string;
9243
9909
  client_secret?: string | null;
9244
9910
  cluster_uri?: string | null;
9245
9911
  company_code?: string | null;
@@ -9251,7 +9917,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9251
9917
  is_active?: boolean;
9252
9918
  label?: string | null;
9253
9919
  office_code?: string | null;
9254
- redirect_uri?: string | null;
9920
+ redirect_uri?: string;
9255
9921
  refresh_token?: string | null;
9256
9922
  token_expires_at?: string | null;
9257
9923
  updated_at?: string;
@@ -9311,6 +9977,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9311
9977
  country: string | null;
9312
9978
  created_at: string;
9313
9979
  email: string | null;
9980
+ external_group_key: string | null;
9314
9981
  id: string;
9315
9982
  last_synced_at: string | null;
9316
9983
  name: string;
@@ -9329,6 +9996,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9329
9996
  country?: string | null;
9330
9997
  created_at?: string;
9331
9998
  email?: string | null;
9999
+ external_group_key?: string | null;
9332
10000
  id?: string;
9333
10001
  last_synced_at?: string | null;
9334
10002
  name: string;
@@ -9347,6 +10015,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9347
10015
  country?: string | null;
9348
10016
  created_at?: string;
9349
10017
  email?: string | null;
10018
+ external_group_key?: string | null;
9350
10019
  id?: string;
9351
10020
  last_synced_at?: string | null;
9352
10021
  name?: string;
@@ -9511,6 +10180,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9511
10180
  twinfield_invoice_settings: {
9512
10181
  Row: {
9513
10182
  created_at: string;
10183
+ debtor_gl_account: string;
10184
+ default_credit_invoice_type: string | null;
9514
10185
  default_gl_account: string;
9515
10186
  default_invoice_type: string;
9516
10187
  default_payment_term_days: number;
@@ -9519,11 +10190,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9519
10190
  invoice_enabled_fo: boolean;
9520
10191
  invoice_enabled_ho: boolean;
9521
10192
  invoice_enabled_mo: boolean;
10193
+ payment_gl_account: string;
10194
+ payment_journal_code: string;
9522
10195
  updated_at: string;
9523
10196
  user_id: string;
9524
10197
  };
9525
10198
  Insert: {
9526
10199
  created_at?: string;
10200
+ debtor_gl_account?: string;
10201
+ default_credit_invoice_type?: string | null;
9527
10202
  default_gl_account?: string;
9528
10203
  default_invoice_type?: string;
9529
10204
  default_payment_term_days?: number;
@@ -9532,11 +10207,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9532
10207
  invoice_enabled_fo?: boolean;
9533
10208
  invoice_enabled_ho?: boolean;
9534
10209
  invoice_enabled_mo?: boolean;
10210
+ payment_gl_account?: string;
10211
+ payment_journal_code?: string;
9535
10212
  updated_at?: string;
9536
10213
  user_id: string;
9537
10214
  };
9538
10215
  Update: {
9539
10216
  created_at?: string;
10217
+ debtor_gl_account?: string;
10218
+ default_credit_invoice_type?: string | null;
9540
10219
  default_gl_account?: string;
9541
10220
  default_invoice_type?: string;
9542
10221
  default_payment_term_days?: number;
@@ -9545,6 +10224,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9545
10224
  invoice_enabled_fo?: boolean;
9546
10225
  invoice_enabled_ho?: boolean;
9547
10226
  invoice_enabled_mo?: boolean;
10227
+ payment_gl_account?: string;
10228
+ payment_journal_code?: string;
9548
10229
  updated_at?: string;
9549
10230
  user_id?: string;
9550
10231
  };
@@ -9765,43 +10446,49 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9765
10446
  };
9766
10447
  twinfield_push_queue: {
9767
10448
  Row: {
10449
+ action: string;
9768
10450
  attempts: number;
9769
10451
  connection_id: string;
9770
10452
  created_at: string;
10453
+ customer_id: string | null;
9771
10454
  external_id: string | null;
9772
10455
  id: string;
9773
10456
  idempotency_key: string;
9774
10457
  last_error: string | null;
9775
10458
  next_attempt_at: string;
9776
- office_code: string;
10459
+ office_code: string | null;
9777
10460
  payload: import("./types").Json;
9778
10461
  status: string;
9779
10462
  updated_at: string;
9780
10463
  };
9781
10464
  Insert: {
10465
+ action?: string;
9782
10466
  attempts?: number;
9783
10467
  connection_id: string;
9784
10468
  created_at?: string;
10469
+ customer_id?: string | null;
9785
10470
  external_id?: string | null;
9786
10471
  id?: string;
9787
10472
  idempotency_key: string;
9788
10473
  last_error?: string | null;
9789
10474
  next_attempt_at?: string;
9790
- office_code: string;
10475
+ office_code?: string | null;
9791
10476
  payload: import("./types").Json;
9792
10477
  status?: string;
9793
10478
  updated_at?: string;
9794
10479
  };
9795
10480
  Update: {
10481
+ action?: string;
9796
10482
  attempts?: number;
9797
10483
  connection_id?: string;
9798
10484
  created_at?: string;
10485
+ customer_id?: string | null;
9799
10486
  external_id?: string | null;
9800
10487
  id?: string;
9801
10488
  idempotency_key?: string;
9802
10489
  last_error?: string | null;
9803
10490
  next_attempt_at?: string;
9804
- office_code?: string;
10491
+ office_code?: string | null;
9805
10492
  payload?: import("./types").Json;
9806
10493
  status?: string;
9807
10494
  updated_at?: string;
@@ -9812,6 +10499,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9812
10499
  isOneToOne: false;
9813
10500
  referencedRelation: "twinfield_connections";
9814
10501
  referencedColumns: ["id"];
10502
+ }, {
10503
+ foreignKeyName: "twinfield_push_queue_customer_id_fkey";
10504
+ columns: ["customer_id"];
10505
+ isOneToOne: false;
10506
+ referencedRelation: "customers";
10507
+ referencedColumns: ["id"];
9815
10508
  }];
9816
10509
  };
9817
10510
  twinfield_request_metrics: {
@@ -10026,66 +10719,312 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10026
10719
  client_user_id?: string | null;
10027
10720
  content_type?: string | null;
10028
10721
  created_at?: string;
10029
- environment?: string;
10030
- error_message?: string | null;
10031
- filename?: string | null;
10722
+ environment?: string;
10723
+ error_message?: string | null;
10724
+ filename?: string | null;
10725
+ id?: string;
10726
+ idempotency_key?: string | null;
10727
+ module?: string;
10728
+ path?: string;
10729
+ reference_id?: string | null;
10730
+ request_body_hash?: string | null;
10731
+ request_timestamp?: number | null;
10732
+ response_content_type?: string | null;
10733
+ response_status?: number | null;
10734
+ size_bytes?: number | null;
10735
+ };
10736
+ Relationships: [];
10737
+ };
10738
+ voorraad_publish_attempts: {
10739
+ Row: {
10740
+ action: string;
10741
+ connection_id: string | null;
10742
+ created_at: string;
10743
+ error: string | null;
10744
+ gateway_attempt_id: string | null;
10745
+ gateway_status: number | null;
10746
+ id: string;
10747
+ intent: string;
10748
+ ok: boolean;
10749
+ request_summary: import("./types").Json | null;
10750
+ trade_item_id: string | null;
10751
+ user_id: string;
10752
+ };
10753
+ Insert: {
10754
+ action: string;
10755
+ connection_id?: string | null;
10756
+ created_at?: string;
10757
+ error?: string | null;
10758
+ gateway_attempt_id?: string | null;
10759
+ gateway_status?: number | null;
10760
+ id?: string;
10761
+ intent: string;
10762
+ ok: boolean;
10763
+ request_summary?: import("./types").Json | null;
10764
+ trade_item_id?: string | null;
10765
+ user_id: string;
10766
+ };
10767
+ Update: {
10768
+ action?: string;
10769
+ connection_id?: string | null;
10770
+ created_at?: string;
10771
+ error?: string | null;
10772
+ gateway_attempt_id?: string | null;
10773
+ gateway_status?: number | null;
10774
+ id?: string;
10775
+ intent?: string;
10776
+ ok?: boolean;
10777
+ request_summary?: import("./types").Json | null;
10778
+ trade_item_id?: string | null;
10779
+ user_id?: string;
10780
+ };
10781
+ Relationships: [];
10782
+ };
10783
+ werkbon_package_lines: {
10784
+ Row: {
10785
+ created_at: string;
10786
+ created_by: string | null;
10787
+ id: string;
10788
+ package_id: string;
10789
+ quantity: number;
10790
+ unit_price_cents_snapshot: number;
10791
+ werkbon_id: string;
10792
+ };
10793
+ Insert: {
10794
+ created_at?: string;
10795
+ created_by?: string | null;
10796
+ id?: string;
10797
+ package_id: string;
10798
+ quantity?: number;
10799
+ unit_price_cents_snapshot?: number;
10800
+ werkbon_id: string;
10801
+ };
10802
+ Update: {
10803
+ created_at?: string;
10804
+ created_by?: string | null;
10805
+ id?: string;
10806
+ package_id?: string;
10807
+ quantity?: number;
10808
+ unit_price_cents_snapshot?: number;
10809
+ werkbon_id?: string;
10810
+ };
10811
+ Relationships: [{
10812
+ foreignKeyName: "werkbon_package_lines_package_id_fkey";
10813
+ columns: ["package_id"];
10814
+ isOneToOne: false;
10815
+ referencedRelation: "werkbon_packages";
10816
+ referencedColumns: ["id"];
10817
+ }, {
10818
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
10819
+ columns: ["werkbon_id"];
10820
+ isOneToOne: false;
10821
+ referencedRelation: "werkbonnen";
10822
+ referencedColumns: ["id"];
10823
+ }];
10824
+ };
10825
+ werkbon_packages: {
10826
+ Row: {
10827
+ active: boolean;
10828
+ code: string;
10829
+ created_at: string;
10830
+ default_quantity: number;
10831
+ description: string | null;
10832
+ id: string;
10833
+ name: string;
10834
+ unit_price_cents: number;
10835
+ updated_at: string;
10836
+ };
10837
+ Insert: {
10838
+ active?: boolean;
10839
+ code: string;
10840
+ created_at?: string;
10841
+ default_quantity?: number;
10842
+ description?: string | null;
10843
+ id?: string;
10844
+ name: string;
10845
+ unit_price_cents?: number;
10846
+ updated_at?: string;
10847
+ };
10848
+ Update: {
10849
+ active?: boolean;
10850
+ code?: string;
10851
+ created_at?: string;
10852
+ default_quantity?: number;
10853
+ description?: string | null;
10854
+ id?: string;
10855
+ name?: string;
10856
+ unit_price_cents?: number;
10857
+ updated_at?: string;
10858
+ };
10859
+ Relationships: [];
10860
+ };
10861
+ werkbon_photos: {
10862
+ Row: {
10863
+ created_at: string;
10864
+ id: string;
10865
+ storage_path: string;
10866
+ user_id: string;
10867
+ werkbon_id: string;
10868
+ };
10869
+ Insert: {
10870
+ created_at?: string;
10871
+ id?: string;
10872
+ storage_path: string;
10873
+ user_id: string;
10874
+ werkbon_id: string;
10875
+ };
10876
+ Update: {
10877
+ created_at?: string;
10032
10878
  id?: string;
10033
- idempotency_key?: string | null;
10034
- module?: string;
10035
- path?: string;
10036
- reference_id?: string | null;
10037
- request_body_hash?: string | null;
10038
- request_timestamp?: number | null;
10039
- response_content_type?: string | null;
10040
- response_status?: number | null;
10041
- size_bytes?: number | null;
10879
+ storage_path?: string;
10880
+ user_id?: string;
10881
+ werkbon_id?: string;
10042
10882
  };
10043
- Relationships: [];
10883
+ Relationships: [{
10884
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
10885
+ columns: ["werkbon_id"];
10886
+ isOneToOne: false;
10887
+ referencedRelation: "werkbonnen";
10888
+ referencedColumns: ["id"];
10889
+ }];
10044
10890
  };
10045
- voorraad_publish_attempts: {
10891
+ werkbon_time_logs: {
10046
10892
  Row: {
10047
- action: string;
10048
- connection_id: string | null;
10893
+ activity: string;
10049
10894
  created_at: string;
10050
- error: string | null;
10051
- gateway_attempt_id: string | null;
10052
- gateway_status: number | null;
10895
+ ended_at: string | null;
10053
10896
  id: string;
10054
- intent: string;
10055
- ok: boolean;
10056
- request_summary: import("./types").Json | null;
10057
- trade_item_id: string | null;
10897
+ started_at: string;
10058
10898
  user_id: string;
10899
+ werkbon_id: string;
10059
10900
  };
10060
10901
  Insert: {
10061
- action: string;
10062
- connection_id?: string | null;
10902
+ activity: string;
10063
10903
  created_at?: string;
10064
- error?: string | null;
10065
- gateway_attempt_id?: string | null;
10066
- gateway_status?: number | null;
10904
+ ended_at?: string | null;
10067
10905
  id?: string;
10068
- intent: string;
10069
- ok: boolean;
10070
- request_summary?: import("./types").Json | null;
10071
- trade_item_id?: string | null;
10906
+ started_at?: string;
10072
10907
  user_id: string;
10908
+ werkbon_id: string;
10073
10909
  };
10074
10910
  Update: {
10075
- action?: string;
10076
- connection_id?: string | null;
10911
+ activity?: string;
10077
10912
  created_at?: string;
10078
- error?: string | null;
10079
- gateway_attempt_id?: string | null;
10080
- gateway_status?: number | null;
10913
+ ended_at?: string | null;
10081
10914
  id?: string;
10082
- intent?: string;
10083
- ok?: boolean;
10084
- request_summary?: import("./types").Json | null;
10085
- trade_item_id?: string | null;
10915
+ started_at?: string;
10086
10916
  user_id?: string;
10917
+ werkbon_id?: string;
10087
10918
  };
10088
- Relationships: [];
10919
+ Relationships: [{
10920
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
10921
+ columns: ["werkbon_id"];
10922
+ isOneToOne: false;
10923
+ referencedRelation: "werkbonnen";
10924
+ referencedColumns: ["id"];
10925
+ }];
10926
+ };
10927
+ werkbonnen: {
10928
+ Row: {
10929
+ assigned_user_id: string | null;
10930
+ budget_mandate_cents: number;
10931
+ complaint_description: string | null;
10932
+ created_at: string;
10933
+ created_by: string | null;
10934
+ customer_id: string | null;
10935
+ externe_referentie: string | null;
10936
+ first_time_fix: boolean | null;
10937
+ id: string;
10938
+ internal_notes: string | null;
10939
+ parent_werkbon_id: string | null;
10940
+ parsed_payload: import("./types").Json | null;
10941
+ planning_status: string;
10942
+ project_number: string | null;
10943
+ room_number: string | null;
10944
+ scheduled_end_time: string | null;
10945
+ scheduled_start_time: string | null;
10946
+ sequence_number: number;
10947
+ source_pdf_path: string | null;
10948
+ status: string;
10949
+ technician_id: string | null;
10950
+ technician_notes: string | null;
10951
+ technician_notes_raw: string | null;
10952
+ technician_task_description: string | null;
10953
+ updated_at: string;
10954
+ version: number;
10955
+ work_address: string | null;
10956
+ };
10957
+ Insert: {
10958
+ assigned_user_id?: string | null;
10959
+ budget_mandate_cents?: number;
10960
+ complaint_description?: string | null;
10961
+ created_at?: string;
10962
+ created_by?: string | null;
10963
+ customer_id?: string | null;
10964
+ externe_referentie?: string | null;
10965
+ first_time_fix?: boolean | null;
10966
+ id?: string;
10967
+ internal_notes?: string | null;
10968
+ parent_werkbon_id?: string | null;
10969
+ parsed_payload?: import("./types").Json | null;
10970
+ planning_status?: string;
10971
+ project_number?: string | null;
10972
+ room_number?: string | null;
10973
+ scheduled_end_time?: string | null;
10974
+ scheduled_start_time?: string | null;
10975
+ sequence_number: number;
10976
+ source_pdf_path?: string | null;
10977
+ status?: string;
10978
+ technician_id?: string | null;
10979
+ technician_notes?: string | null;
10980
+ technician_notes_raw?: string | null;
10981
+ technician_task_description?: string | null;
10982
+ updated_at?: string;
10983
+ version?: number;
10984
+ work_address?: string | null;
10985
+ };
10986
+ Update: {
10987
+ assigned_user_id?: string | null;
10988
+ budget_mandate_cents?: number;
10989
+ complaint_description?: string | null;
10990
+ created_at?: string;
10991
+ created_by?: string | null;
10992
+ customer_id?: string | null;
10993
+ externe_referentie?: string | null;
10994
+ first_time_fix?: boolean | null;
10995
+ id?: string;
10996
+ internal_notes?: string | null;
10997
+ parent_werkbon_id?: string | null;
10998
+ parsed_payload?: import("./types").Json | null;
10999
+ planning_status?: string;
11000
+ project_number?: string | null;
11001
+ room_number?: string | null;
11002
+ scheduled_end_time?: string | null;
11003
+ scheduled_start_time?: string | null;
11004
+ sequence_number?: number;
11005
+ source_pdf_path?: string | null;
11006
+ status?: string;
11007
+ technician_id?: string | null;
11008
+ technician_notes?: string | null;
11009
+ technician_notes_raw?: string | null;
11010
+ technician_task_description?: string | null;
11011
+ updated_at?: string;
11012
+ version?: number;
11013
+ work_address?: string | null;
11014
+ };
11015
+ Relationships: [{
11016
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
11017
+ columns: ["parent_werkbon_id"];
11018
+ isOneToOne: false;
11019
+ referencedRelation: "werkbonnen";
11020
+ referencedColumns: ["id"];
11021
+ }, {
11022
+ foreignKeyName: "werkbonnen_technician_id_fkey";
11023
+ columns: ["technician_id"];
11024
+ isOneToOne: false;
11025
+ referencedRelation: "monteurs";
11026
+ referencedColumns: ["id"];
11027
+ }];
10089
11028
  };
10090
11029
  work_order_monteurs: {
10091
11030
  Row: {
@@ -10257,6 +11196,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10257
11196
  created_at: string | null;
10258
11197
  created_by: string | null;
10259
11198
  display_name: string | null;
11199
+ graph_subscription_expires_at: string | null;
11200
+ graph_subscription_id: string | null;
10260
11201
  has_access_token: boolean | null;
10261
11202
  has_client_id: boolean | null;
10262
11203
  has_client_secret: boolean | null;
@@ -10274,6 +11215,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10274
11215
  oauth_mode: string | null;
10275
11216
  provider: string | null;
10276
11217
  purpose_assignments: import("./types").Json | null;
11218
+ realtime_mode: string | null;
10277
11219
  scopes: string[] | null;
10278
11220
  smtp_host: string | null;
10279
11221
  smtp_port: number | null;
@@ -10288,6 +11230,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10288
11230
  created_at?: string | null;
10289
11231
  created_by?: string | null;
10290
11232
  display_name?: string | null;
11233
+ graph_subscription_expires_at?: string | null;
11234
+ graph_subscription_id?: string | null;
10291
11235
  has_access_token?: never;
10292
11236
  has_client_id?: never;
10293
11237
  has_client_secret?: never;
@@ -10305,6 +11249,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10305
11249
  oauth_mode?: string | null;
10306
11250
  provider?: string | null;
10307
11251
  purpose_assignments?: import("./types").Json | null;
11252
+ realtime_mode?: string | null;
10308
11253
  scopes?: string[] | null;
10309
11254
  smtp_host?: string | null;
10310
11255
  smtp_port?: number | null;
@@ -10319,6 +11264,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10319
11264
  created_at?: string | null;
10320
11265
  created_by?: string | null;
10321
11266
  display_name?: string | null;
11267
+ graph_subscription_expires_at?: string | null;
11268
+ graph_subscription_id?: string | null;
10322
11269
  has_access_token?: never;
10323
11270
  has_client_id?: never;
10324
11271
  has_client_secret?: never;
@@ -10336,6 +11283,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10336
11283
  oauth_mode?: string | null;
10337
11284
  provider?: string | null;
10338
11285
  purpose_assignments?: import("./types").Json | null;
11286
+ realtime_mode?: string | null;
10339
11287
  scopes?: string[] | null;
10340
11288
  smtp_host?: string | null;
10341
11289
  smtp_port?: number | null;
@@ -10446,6 +11394,25 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10446
11394
  };
10447
11395
  Relationships: [];
10448
11396
  };
11397
+ floriday_customer_discounts: {
11398
+ Row: {
11399
+ base_price: number | null;
11400
+ buyer_organization_id: string | null;
11401
+ currency: string | null;
11402
+ discount_type: string | null;
11403
+ discount_value: number | null;
11404
+ min_quantity: number | null;
11405
+ net_price: number | null;
11406
+ product_group_id: string | null;
11407
+ raw: import("./types").Json | null;
11408
+ source: string | null;
11409
+ source_id: string | null;
11410
+ trade_item_id: string | null;
11411
+ valid_from: string | null;
11412
+ valid_until: string | null;
11413
+ };
11414
+ Relationships: [];
11415
+ };
10449
11416
  local_customer_discounts: {
10450
11417
  Row: {
10451
11418
  base_price: number | null;
@@ -10749,13 +11716,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10749
11716
  };
10750
11717
  Returns: number;
10751
11718
  };
10752
- _migrate_rewrite_stock_key: {
10753
- Args: {
10754
- _from_key: string;
10755
- _to_key: string;
10756
- };
10757
- Returns: undefined;
10758
- };
10759
11719
  afh_city_code: {
10760
11720
  Args: {
10761
11721
  _city: string;
@@ -10867,31 +11827,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10867
11827
  };
10868
11828
  Returns: import("./types").Json;
10869
11829
  };
10870
- cleanup_old_bookings: {
10871
- Args: never;
10872
- Returns: undefined;
10873
- };
10874
- consume_bom_for_production: {
11830
+ claim_twinfield_push_batch: {
10875
11831
  Args: {
10876
- p_connection_id: string;
10877
- p_parent_id: string;
10878
- p_parent_key: string;
10879
- p_parent_kind: string;
10880
- p_quantity: number;
10881
- p_user_id: string;
11832
+ _limit?: number;
10882
11833
  };
10883
- Returns: import("./types").Json;
10884
- } | {
10885
- Args: {
10886
- p_batch_id?: string;
10887
- p_connection_id: string;
10888
- p_parent_id: string;
10889
- p_parent_key: string;
10890
- p_parent_kind: string;
10891
- p_quantity: number;
10892
- p_user_id: string;
11834
+ Returns: {
11835
+ action: string;
11836
+ attempts: number;
11837
+ connection_id: string;
11838
+ created_at: string;
11839
+ customer_id: string | null;
11840
+ external_id: string | null;
11841
+ id: string;
11842
+ idempotency_key: string;
11843
+ last_error: string | null;
11844
+ next_attempt_at: string;
11845
+ office_code: string | null;
11846
+ payload: import("./types").Json;
11847
+ status: string;
11848
+ updated_at: string;
11849
+ }[];
11850
+ SetofOptions: {
11851
+ from: "*";
11852
+ to: "twinfield_push_queue";
11853
+ isOneToOne: false;
11854
+ isSetofReturn: true;
10893
11855
  };
10894
- Returns: import("./types").Json;
11856
+ };
11857
+ cleanup_old_bookings: {
11858
+ Args: never;
11859
+ Returns: undefined;
10895
11860
  };
10896
11861
  consume_floriday_rate_limit: {
10897
11862
  Args: {
@@ -10944,13 +11909,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10944
11909
  table_name: string;
10945
11910
  }[];
10946
11911
  };
10947
- delete_samenstelling: {
10948
- Args: {
10949
- p_parent_id: string;
10950
- p_parent_kind: string;
10951
- };
10952
- Returns: import("./types").Json;
10953
- };
10954
11912
  dispatch_carrier_signups_sql: {
10955
11913
  Args: {
10956
11914
  _catchup?: string;
@@ -10992,6 +11950,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10992
11950
  status: string;
10993
11951
  }[];
10994
11952
  };
11953
+ email_auth_upsert_connection: {
11954
+ Args: {
11955
+ _account_email: string;
11956
+ _created_by: string;
11957
+ _is_active: boolean;
11958
+ _provider: string;
11959
+ _status: string;
11960
+ };
11961
+ Returns: string;
11962
+ };
10995
11963
  enqueue_cart_replan_if_unlocked: {
10996
11964
  Args: {
10997
11965
  p_order_id: string;
@@ -11111,6 +12079,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11111
12079
  resource: string;
11112
12080
  }[];
11113
12081
  };
12082
+ get_floriday_agreements_active: {
12083
+ Args: {
12084
+ p_on_date?: string;
12085
+ };
12086
+ Returns: {
12087
+ buyer_organization_id: string;
12088
+ data: import("./types").Json;
12089
+ floriday_id: string;
12090
+ status: string;
12091
+ valid_from: string;
12092
+ valid_until: string;
12093
+ }[];
12094
+ };
11114
12095
  get_floriday_clock_supplies_window: {
11115
12096
  Args: {
11116
12097
  p_from: string;
@@ -11183,21 +12164,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11183
12164
  minutes_since_success: number;
11184
12165
  }[];
11185
12166
  };
11186
- get_group_allocation_keys: {
11187
- Args: {
11188
- p_product_id: string;
11189
- };
11190
- Returns: {
11191
- k: string;
11192
- ord: number;
11193
- }[];
11194
- };
11195
- get_group_head_key: {
11196
- Args: {
11197
- p_group_id: string;
11198
- };
11199
- Returns: string;
11200
- };
11201
12167
  get_offer_by_link_code: {
11202
12168
  Args: {
11203
12169
  p_code: string;
@@ -11259,6 +12225,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11259
12225
  };
11260
12226
  Returns: string;
11261
12227
  };
12228
+ has_module_permission: {
12229
+ Args: {
12230
+ _min: string;
12231
+ _module_id: string;
12232
+ _user_id: string;
12233
+ };
12234
+ Returns: boolean;
12235
+ };
11262
12236
  has_role: {
11263
12237
  Args: {
11264
12238
  _role: Database["public"]["Enums"]["app_role"];
@@ -11266,6 +12240,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11266
12240
  };
11267
12241
  Returns: boolean;
11268
12242
  };
12243
+ has_twinfield_link: {
12244
+ Args: never;
12245
+ Returns: boolean;
12246
+ };
11269
12247
  is_authenticated: {
11270
12248
  Args: never;
11271
12249
  Returns: boolean;
@@ -11280,6 +12258,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11280
12258
  };
11281
12259
  Returns: boolean;
11282
12260
  };
12261
+ list_monteurs: {
12262
+ Args: never;
12263
+ Returns: {
12264
+ display_name: string;
12265
+ email: string;
12266
+ user_id: string;
12267
+ }[];
12268
+ };
11283
12269
  local_effective_price: {
11284
12270
  Args: {
11285
12271
  _customer_id: string;
@@ -11314,19 +12300,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11314
12300
  };
11315
12301
  Returns: undefined;
11316
12302
  };
11317
- merge_products: {
11318
- Args: {
11319
- _canonical: string;
11320
- _loser: string;
11321
- };
11322
- Returns: undefined;
11323
- };
11324
- next_manufacture_partij: {
11325
- Args: {
11326
- _tenant_id: string;
11327
- };
11328
- Returns: string;
11329
- };
11330
12303
  next_order_number: {
11331
12304
  Args: {
11332
12305
  p_prefix: string;
@@ -11340,6 +12313,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11340
12313
  };
11341
12314
  Returns: string;
11342
12315
  };
12316
+ next_twinfield_code: {
12317
+ Args: never;
12318
+ Returns: string;
12319
+ };
11343
12320
  next_work_order_number: {
11344
12321
  Args: {
11345
12322
  p_parent_work_order_id?: string;
@@ -11405,14 +12382,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11405
12382
  };
11406
12383
  Returns: undefined;
11407
12384
  };
11408
- produce_designed_product: {
11409
- Args: {
11410
- p_parent_id: string;
11411
- p_parent_kind: string;
11412
- p_quantity: number;
11413
- };
11414
- Returns: import("./types").Json;
11415
- };
11416
12385
  promote_trade_item_key: {
11417
12386
  Args: {
11418
12387
  p_new: string;
@@ -11420,10 +12389,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11420
12389
  };
11421
12390
  Returns: undefined;
11422
12391
  };
11423
- recompute_all_reserved_stock: {
11424
- Args: never;
11425
- Returns: undefined;
11426
- };
11427
12392
  recompute_order_status: {
11428
12393
  Args: {
11429
12394
  p_order_id: string;
@@ -11466,52 +12431,46 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11466
12431
  };
11467
12432
  Returns: number;
11468
12433
  };
11469
- reset_floriday_sync_cursor: {
12434
+ reorder_customer_price_groups: {
11470
12435
  Args: {
11471
- p_connection_id: string;
11472
- p_entity_type: string;
12436
+ _ids: string[];
11473
12437
  };
11474
12438
  Returns: undefined;
11475
12439
  };
11476
- resolve_group_allocation: {
12440
+ reset_floriday_sync_cursor: {
11477
12441
  Args: {
11478
- _needed: number;
11479
- _product_group_id: string;
12442
+ p_connection_id: string;
12443
+ p_entity_type: string;
11480
12444
  };
11481
- Returns: {
11482
- allocated: number;
11483
- trade_item_id: string;
11484
- }[];
12445
+ Returns: undefined;
11485
12446
  };
11486
- resolve_group_member_stock_key: {
12447
+ resolve_product_id_for_item: {
11487
12448
  Args: {
11488
- p_trade_item_id: string;
12449
+ p_product_name: string;
11489
12450
  };
11490
12451
  Returns: string;
11491
12452
  };
11492
- resolve_product_id_for_item: {
12453
+ retry_twinfield_push: {
11493
12454
  Args: {
11494
- p_product_name: string;
12455
+ _customer_id: string;
11495
12456
  };
11496
- Returns: string;
12457
+ Returns: number;
11497
12458
  };
11498
- resolve_stock_trade_item_key: {
12459
+ schedule_floriday_additional_services_sync: {
11499
12460
  Args: {
11500
- p_product_id: string;
12461
+ p_apikey: string;
12462
+ p_url: string;
11501
12463
  };
11502
- Returns: string;
12464
+ Returns: number;
11503
12465
  };
11504
- reverse_production: {
12466
+ schedule_floriday_agreement_calloffs_sync: {
11505
12467
  Args: {
11506
- p_connection_id?: string;
11507
- p_parent_key: string;
11508
- p_quantity: number;
11509
- p_reason?: string;
11510
- p_user_id?: string;
12468
+ p_apikey: string;
12469
+ p_url: string;
11511
12470
  };
11512
- Returns: import("./types").Json;
12471
+ Returns: number;
11513
12472
  };
11514
- schedule_floriday_additional_services_sync: {
12473
+ schedule_floriday_agreements_sync: {
11515
12474
  Args: {
11516
12475
  p_apikey: string;
11517
12476
  p_url: string;
@@ -11786,12 +12745,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11786
12745
  };
11787
12746
  Returns: undefined;
11788
12747
  };
11789
- sync_product_group_belading: {
11790
- Args: {
11791
- _group_id: string;
11792
- };
11793
- Returns: undefined;
11794
- };
11795
12748
  sync_product_packing_from_floriday_cache: {
11796
12749
  Args: {
11797
12750
  p_floriday_id: string;
@@ -11823,9 +12776,11 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11823
12776
  };
11824
12777
  };
11825
12778
  Enums: {
11826
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
12779
+ app_role: "admin" | "planner" | "monteur" | "administratie";
11827
12780
  exact_env: "staging" | "live";
11828
12781
  exact_push_status: "pending" | "sent" | "error";
12782
+ itk_customer_segment: "Business" | "Private";
12783
+ itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
11829
12784
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
11830
12785
  };
11831
12786
  CompositeTypes: { [_ in never]: never; };