@flowselections/floriday-klanten-module 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/klanten/FloridayDeeplinkButton.d.ts.map +1 -1
- package/dist-lib/components/klanten/FloridayDeeplinkButton.js +2 -2
- package/dist-lib/components/klanten/KlantenOverzicht.js +3 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +886 -54
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +886 -54
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +886 -54
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +904 -45
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -9
- package/dist-lib/lib/accounting/twinfield/mapping.d.ts.map +1 -1
- package/dist-lib/lib/accounting/twinfield/mapping.js +14 -2
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +2538 -42
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
- package/dist-lib/lib/accounting.functions.d.ts +2538 -42
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +886 -54
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.d.ts +7614 -126
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/delivery-locations.functions.d.ts +3384 -56
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +3384 -56
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-assortment.functions.d.ts +886 -54
- package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-discounts.functions.d.ts +1834 -170
- package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-trade-items.functions.d.ts +886 -54
- package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
- package/dist-lib/lib/local-discounts.functions.d.ts +5922 -98
- package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts +886 -54
- package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups-local.functions.d.ts +5922 -98
- package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups.functions.d.ts +886 -54
- package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
- package/package.json +3 -2
- package/public/flowselections-assets/Klanten/floriday-logo.png +0 -0
|
@@ -292,6 +292,57 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
292
292
|
referencedColumns: ["id"];
|
|
293
293
|
}];
|
|
294
294
|
};
|
|
295
|
+
ai_call_log: {
|
|
296
|
+
Row: {
|
|
297
|
+
consumer_module_id: string;
|
|
298
|
+
cost_usd: number | null;
|
|
299
|
+
created_at: string;
|
|
300
|
+
created_by: string | null;
|
|
301
|
+
duration_ms: number | null;
|
|
302
|
+
error_code: string | null;
|
|
303
|
+
error_message: string | null;
|
|
304
|
+
id: string;
|
|
305
|
+
input_tokens: number;
|
|
306
|
+
model_slug: string | null;
|
|
307
|
+
output_tokens: number;
|
|
308
|
+
provider_slug: string | null;
|
|
309
|
+
status: string;
|
|
310
|
+
total_tokens: number;
|
|
311
|
+
};
|
|
312
|
+
Insert: {
|
|
313
|
+
consumer_module_id: string;
|
|
314
|
+
cost_usd?: number | null;
|
|
315
|
+
created_at?: string;
|
|
316
|
+
created_by?: string | null;
|
|
317
|
+
duration_ms?: number | null;
|
|
318
|
+
error_code?: string | null;
|
|
319
|
+
error_message?: string | null;
|
|
320
|
+
id?: string;
|
|
321
|
+
input_tokens?: number;
|
|
322
|
+
model_slug?: string | null;
|
|
323
|
+
output_tokens?: number;
|
|
324
|
+
provider_slug?: string | null;
|
|
325
|
+
status: string;
|
|
326
|
+
total_tokens?: number;
|
|
327
|
+
};
|
|
328
|
+
Update: {
|
|
329
|
+
consumer_module_id?: string;
|
|
330
|
+
cost_usd?: number | null;
|
|
331
|
+
created_at?: string;
|
|
332
|
+
created_by?: string | null;
|
|
333
|
+
duration_ms?: number | null;
|
|
334
|
+
error_code?: string | null;
|
|
335
|
+
error_message?: string | null;
|
|
336
|
+
id?: string;
|
|
337
|
+
input_tokens?: number;
|
|
338
|
+
model_slug?: string | null;
|
|
339
|
+
output_tokens?: number;
|
|
340
|
+
provider_slug?: string | null;
|
|
341
|
+
status?: string;
|
|
342
|
+
total_tokens?: number;
|
|
343
|
+
};
|
|
344
|
+
Relationships: [];
|
|
345
|
+
};
|
|
295
346
|
ai_credentials: {
|
|
296
347
|
Row: {
|
|
297
348
|
active: boolean;
|
|
@@ -328,6 +379,36 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
328
379
|
referencedColumns: ["id"];
|
|
329
380
|
}];
|
|
330
381
|
};
|
|
382
|
+
ai_goals: {
|
|
383
|
+
Row: {
|
|
384
|
+
active: boolean;
|
|
385
|
+
created_at: string;
|
|
386
|
+
description: string | null;
|
|
387
|
+
key: string;
|
|
388
|
+
label: string;
|
|
389
|
+
sort_order: number;
|
|
390
|
+
updated_at: string;
|
|
391
|
+
};
|
|
392
|
+
Insert: {
|
|
393
|
+
active?: boolean;
|
|
394
|
+
created_at?: string;
|
|
395
|
+
description?: string | null;
|
|
396
|
+
key: string;
|
|
397
|
+
label: string;
|
|
398
|
+
sort_order?: number;
|
|
399
|
+
updated_at?: string;
|
|
400
|
+
};
|
|
401
|
+
Update: {
|
|
402
|
+
active?: boolean;
|
|
403
|
+
created_at?: string;
|
|
404
|
+
description?: string | null;
|
|
405
|
+
key?: string;
|
|
406
|
+
label?: string;
|
|
407
|
+
sort_order?: number;
|
|
408
|
+
updated_at?: string;
|
|
409
|
+
};
|
|
410
|
+
Relationships: [];
|
|
411
|
+
};
|
|
331
412
|
ai_model_pricing: {
|
|
332
413
|
Row: {
|
|
333
414
|
created_at: string;
|
|
@@ -1114,6 +1195,141 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
1114
1195
|
};
|
|
1115
1196
|
Relationships: [];
|
|
1116
1197
|
};
|
|
1198
|
+
cart_planning_pick_times: {
|
|
1199
|
+
Row: {
|
|
1200
|
+
created_at: string;
|
|
1201
|
+
id: string;
|
|
1202
|
+
pot_size: string;
|
|
1203
|
+
seconds_per_cart: number;
|
|
1204
|
+
updated_at: string;
|
|
1205
|
+
};
|
|
1206
|
+
Insert: {
|
|
1207
|
+
created_at?: string;
|
|
1208
|
+
id?: string;
|
|
1209
|
+
pot_size: string;
|
|
1210
|
+
seconds_per_cart: number;
|
|
1211
|
+
updated_at?: string;
|
|
1212
|
+
};
|
|
1213
|
+
Update: {
|
|
1214
|
+
created_at?: string;
|
|
1215
|
+
id?: string;
|
|
1216
|
+
pot_size?: string;
|
|
1217
|
+
seconds_per_cart?: number;
|
|
1218
|
+
updated_at?: string;
|
|
1219
|
+
};
|
|
1220
|
+
Relationships: [];
|
|
1221
|
+
};
|
|
1222
|
+
cart_planning_product_overrides: {
|
|
1223
|
+
Row: {
|
|
1224
|
+
created_at: string;
|
|
1225
|
+
id: string;
|
|
1226
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1227
|
+
never_mix: boolean;
|
|
1228
|
+
notes: string | null;
|
|
1229
|
+
product_id: string;
|
|
1230
|
+
updated_at: string;
|
|
1231
|
+
};
|
|
1232
|
+
Insert: {
|
|
1233
|
+
created_at?: string;
|
|
1234
|
+
id?: string;
|
|
1235
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1236
|
+
never_mix?: boolean;
|
|
1237
|
+
notes?: string | null;
|
|
1238
|
+
product_id: string;
|
|
1239
|
+
updated_at?: string;
|
|
1240
|
+
};
|
|
1241
|
+
Update: {
|
|
1242
|
+
created_at?: string;
|
|
1243
|
+
id?: string;
|
|
1244
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1245
|
+
never_mix?: boolean;
|
|
1246
|
+
notes?: string | null;
|
|
1247
|
+
product_id?: string;
|
|
1248
|
+
updated_at?: string;
|
|
1249
|
+
};
|
|
1250
|
+
Relationships: [{
|
|
1251
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1252
|
+
columns: ["product_id"];
|
|
1253
|
+
isOneToOne: true;
|
|
1254
|
+
referencedRelation: "products";
|
|
1255
|
+
referencedColumns: ["id"];
|
|
1256
|
+
}];
|
|
1257
|
+
};
|
|
1258
|
+
cart_planning_settings: {
|
|
1259
|
+
Row: {
|
|
1260
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1261
|
+
buffer_grouping_mode: string;
|
|
1262
|
+
combine_floriday_orders: boolean;
|
|
1263
|
+
combine_floriday_orders_window: string;
|
|
1264
|
+
combine_orders_scope: string;
|
|
1265
|
+
default_workers: number;
|
|
1266
|
+
id: number;
|
|
1267
|
+
max_beladingen_per_layer: number;
|
|
1268
|
+
max_customers_per_cart: number;
|
|
1269
|
+
max_one_customer_per_layer: boolean;
|
|
1270
|
+
max_party_share_per_layer_pct: number;
|
|
1271
|
+
optimization_strategy: string;
|
|
1272
|
+
own_cart_from_layers: number;
|
|
1273
|
+
pick_time_mode: string;
|
|
1274
|
+
plants_per_day: number;
|
|
1275
|
+
plants_per_hour: number;
|
|
1276
|
+
require_same_carrier: boolean;
|
|
1277
|
+
require_same_crate_type: boolean;
|
|
1278
|
+
require_same_delivery_date: boolean;
|
|
1279
|
+
require_same_delivery_location: boolean;
|
|
1280
|
+
updated_at: string;
|
|
1281
|
+
updated_by: string | null;
|
|
1282
|
+
};
|
|
1283
|
+
Insert: {
|
|
1284
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1285
|
+
buffer_grouping_mode?: string;
|
|
1286
|
+
combine_floriday_orders?: boolean;
|
|
1287
|
+
combine_floriday_orders_window?: string;
|
|
1288
|
+
combine_orders_scope?: string;
|
|
1289
|
+
default_workers?: number;
|
|
1290
|
+
id?: number;
|
|
1291
|
+
max_beladingen_per_layer?: number;
|
|
1292
|
+
max_customers_per_cart?: number;
|
|
1293
|
+
max_one_customer_per_layer?: boolean;
|
|
1294
|
+
max_party_share_per_layer_pct?: number;
|
|
1295
|
+
optimization_strategy?: string;
|
|
1296
|
+
own_cart_from_layers?: number;
|
|
1297
|
+
pick_time_mode?: string;
|
|
1298
|
+
plants_per_day?: number;
|
|
1299
|
+
plants_per_hour?: number;
|
|
1300
|
+
require_same_carrier?: boolean;
|
|
1301
|
+
require_same_crate_type?: boolean;
|
|
1302
|
+
require_same_delivery_date?: boolean;
|
|
1303
|
+
require_same_delivery_location?: boolean;
|
|
1304
|
+
updated_at?: string;
|
|
1305
|
+
updated_by?: string | null;
|
|
1306
|
+
};
|
|
1307
|
+
Update: {
|
|
1308
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1309
|
+
buffer_grouping_mode?: string;
|
|
1310
|
+
combine_floriday_orders?: boolean;
|
|
1311
|
+
combine_floriday_orders_window?: string;
|
|
1312
|
+
combine_orders_scope?: string;
|
|
1313
|
+
default_workers?: number;
|
|
1314
|
+
id?: number;
|
|
1315
|
+
max_beladingen_per_layer?: number;
|
|
1316
|
+
max_customers_per_cart?: number;
|
|
1317
|
+
max_one_customer_per_layer?: boolean;
|
|
1318
|
+
max_party_share_per_layer_pct?: number;
|
|
1319
|
+
optimization_strategy?: string;
|
|
1320
|
+
own_cart_from_layers?: number;
|
|
1321
|
+
pick_time_mode?: string;
|
|
1322
|
+
plants_per_day?: number;
|
|
1323
|
+
plants_per_hour?: number;
|
|
1324
|
+
require_same_carrier?: boolean;
|
|
1325
|
+
require_same_crate_type?: boolean;
|
|
1326
|
+
require_same_delivery_date?: boolean;
|
|
1327
|
+
require_same_delivery_location?: boolean;
|
|
1328
|
+
updated_at?: string;
|
|
1329
|
+
updated_by?: string | null;
|
|
1330
|
+
};
|
|
1331
|
+
Relationships: [];
|
|
1332
|
+
};
|
|
1117
1333
|
cart_replan_queue: {
|
|
1118
1334
|
Row: {
|
|
1119
1335
|
attempts: number;
|
|
@@ -1144,6 +1360,39 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
1144
1360
|
referencedColumns: ["id"];
|
|
1145
1361
|
}];
|
|
1146
1362
|
};
|
|
1363
|
+
cart_types: {
|
|
1364
|
+
Row: {
|
|
1365
|
+
created_at: string;
|
|
1366
|
+
id: string;
|
|
1367
|
+
is_default: boolean;
|
|
1368
|
+
layer_length_cm: number;
|
|
1369
|
+
layer_width_cm: number;
|
|
1370
|
+
layers_per_cart: number;
|
|
1371
|
+
name: string;
|
|
1372
|
+
updated_at: string;
|
|
1373
|
+
};
|
|
1374
|
+
Insert: {
|
|
1375
|
+
created_at?: string;
|
|
1376
|
+
id?: string;
|
|
1377
|
+
is_default?: boolean;
|
|
1378
|
+
layer_length_cm: number;
|
|
1379
|
+
layer_width_cm: number;
|
|
1380
|
+
layers_per_cart?: number;
|
|
1381
|
+
name: string;
|
|
1382
|
+
updated_at?: string;
|
|
1383
|
+
};
|
|
1384
|
+
Update: {
|
|
1385
|
+
created_at?: string;
|
|
1386
|
+
id?: string;
|
|
1387
|
+
is_default?: boolean;
|
|
1388
|
+
layer_length_cm?: number;
|
|
1389
|
+
layer_width_cm?: number;
|
|
1390
|
+
layers_per_cart?: number;
|
|
1391
|
+
name?: string;
|
|
1392
|
+
updated_at?: string;
|
|
1393
|
+
};
|
|
1394
|
+
Relationships: [];
|
|
1395
|
+
};
|
|
1147
1396
|
catalog_articles_cache: {
|
|
1148
1397
|
Row: {
|
|
1149
1398
|
created_at: string;
|
|
@@ -1231,6 +1480,36 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
1231
1480
|
};
|
|
1232
1481
|
Relationships: [];
|
|
1233
1482
|
};
|
|
1483
|
+
crate_types: {
|
|
1484
|
+
Row: {
|
|
1485
|
+
created_at: string;
|
|
1486
|
+
id: string;
|
|
1487
|
+
length_cm: number;
|
|
1488
|
+
name: string;
|
|
1489
|
+
plants_per_crate: number;
|
|
1490
|
+
updated_at: string;
|
|
1491
|
+
width_cm: number;
|
|
1492
|
+
};
|
|
1493
|
+
Insert: {
|
|
1494
|
+
created_at?: string;
|
|
1495
|
+
id?: string;
|
|
1496
|
+
length_cm: number;
|
|
1497
|
+
name: string;
|
|
1498
|
+
plants_per_crate?: number;
|
|
1499
|
+
updated_at?: string;
|
|
1500
|
+
width_cm: number;
|
|
1501
|
+
};
|
|
1502
|
+
Update: {
|
|
1503
|
+
created_at?: string;
|
|
1504
|
+
id?: string;
|
|
1505
|
+
length_cm?: number;
|
|
1506
|
+
name?: string;
|
|
1507
|
+
plants_per_crate?: number;
|
|
1508
|
+
updated_at?: string;
|
|
1509
|
+
width_cm?: number;
|
|
1510
|
+
};
|
|
1511
|
+
Relationships: [];
|
|
1512
|
+
};
|
|
1234
1513
|
customer_audit_log: {
|
|
1235
1514
|
Row: {
|
|
1236
1515
|
action: string;
|
|
@@ -5706,69 +5985,351 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
5706
5985
|
vat_amount?: number | null;
|
|
5707
5986
|
};
|
|
5708
5987
|
Update: {
|
|
5709
|
-
booking_id?: string | null;
|
|
5710
|
-
company_name?: string | null;
|
|
5988
|
+
booking_id?: string | null;
|
|
5989
|
+
company_name?: string | null;
|
|
5990
|
+
created_at?: string;
|
|
5991
|
+
customer_email?: string | null;
|
|
5992
|
+
description?: string | null;
|
|
5993
|
+
exact_article_id?: string | null;
|
|
5994
|
+
id?: string;
|
|
5995
|
+
invoice_run_id?: string | null;
|
|
5996
|
+
quantity?: number | null;
|
|
5997
|
+
total_excl_vat?: number | null;
|
|
5998
|
+
total_incl_vat?: number | null;
|
|
5999
|
+
unit_price?: number | null;
|
|
6000
|
+
vat_amount?: number | null;
|
|
6001
|
+
};
|
|
6002
|
+
Relationships: [{
|
|
6003
|
+
foreignKeyName: "invoice_run_items_booking_id_fkey";
|
|
6004
|
+
columns: ["booking_id"];
|
|
6005
|
+
isOneToOne: false;
|
|
6006
|
+
referencedRelation: "bookings";
|
|
6007
|
+
referencedColumns: ["id"];
|
|
6008
|
+
}, {
|
|
6009
|
+
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
6010
|
+
columns: ["invoice_run_id"];
|
|
6011
|
+
isOneToOne: false;
|
|
6012
|
+
referencedRelation: "invoice_runs";
|
|
6013
|
+
referencedColumns: ["id"];
|
|
6014
|
+
}];
|
|
6015
|
+
};
|
|
6016
|
+
invoice_runs: {
|
|
6017
|
+
Row: {
|
|
6018
|
+
created_at: string;
|
|
6019
|
+
created_by: string | null;
|
|
6020
|
+
id: string;
|
|
6021
|
+
period_end: string;
|
|
6022
|
+
period_start: string;
|
|
6023
|
+
status: string;
|
|
6024
|
+
total_excl_vat: number | null;
|
|
6025
|
+
total_incl_vat: number | null;
|
|
6026
|
+
vat_amount: number | null;
|
|
6027
|
+
};
|
|
6028
|
+
Insert: {
|
|
6029
|
+
created_at?: string;
|
|
6030
|
+
created_by?: string | null;
|
|
6031
|
+
id?: string;
|
|
6032
|
+
period_end: string;
|
|
6033
|
+
period_start: string;
|
|
6034
|
+
status?: string;
|
|
6035
|
+
total_excl_vat?: number | null;
|
|
6036
|
+
total_incl_vat?: number | null;
|
|
6037
|
+
vat_amount?: number | null;
|
|
6038
|
+
};
|
|
6039
|
+
Update: {
|
|
6040
|
+
created_at?: string;
|
|
6041
|
+
created_by?: string | null;
|
|
6042
|
+
id?: string;
|
|
6043
|
+
period_end?: string;
|
|
6044
|
+
period_start?: string;
|
|
6045
|
+
status?: string;
|
|
6046
|
+
total_excl_vat?: number | null;
|
|
6047
|
+
total_incl_vat?: number | null;
|
|
6048
|
+
vat_amount?: number | null;
|
|
6049
|
+
};
|
|
6050
|
+
Relationships: [];
|
|
6051
|
+
};
|
|
6052
|
+
itk_contact_persons: {
|
|
6053
|
+
Row: {
|
|
6054
|
+
created_at: string;
|
|
6055
|
+
customer_id: string;
|
|
6056
|
+
email: string | null;
|
|
6057
|
+
id: string;
|
|
6058
|
+
name: string;
|
|
6059
|
+
phone: string | null;
|
|
6060
|
+
role: string | null;
|
|
6061
|
+
updated_at: string;
|
|
6062
|
+
};
|
|
6063
|
+
Insert: {
|
|
6064
|
+
created_at?: string;
|
|
6065
|
+
customer_id: string;
|
|
6066
|
+
email?: string | null;
|
|
6067
|
+
id?: string;
|
|
6068
|
+
name: string;
|
|
6069
|
+
phone?: string | null;
|
|
6070
|
+
role?: string | null;
|
|
6071
|
+
updated_at?: string;
|
|
6072
|
+
};
|
|
6073
|
+
Update: {
|
|
6074
|
+
created_at?: string;
|
|
6075
|
+
customer_id?: string;
|
|
6076
|
+
email?: string | null;
|
|
6077
|
+
id?: string;
|
|
6078
|
+
name?: string;
|
|
6079
|
+
phone?: string | null;
|
|
6080
|
+
role?: string | null;
|
|
6081
|
+
updated_at?: string;
|
|
6082
|
+
};
|
|
6083
|
+
Relationships: [{
|
|
6084
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
6085
|
+
columns: ["customer_id"];
|
|
6086
|
+
isOneToOne: false;
|
|
6087
|
+
referencedRelation: "itk_customers";
|
|
6088
|
+
referencedColumns: ["id"];
|
|
6089
|
+
}];
|
|
6090
|
+
};
|
|
6091
|
+
itk_customer_dynamic_values: {
|
|
6092
|
+
Row: {
|
|
6093
|
+
created_at: string;
|
|
6094
|
+
customer_id: string;
|
|
6095
|
+
field_id: string;
|
|
6096
|
+
id: string;
|
|
6097
|
+
updated_at: string;
|
|
6098
|
+
value: string | null;
|
|
6099
|
+
};
|
|
6100
|
+
Insert: {
|
|
6101
|
+
created_at?: string;
|
|
6102
|
+
customer_id: string;
|
|
6103
|
+
field_id: string;
|
|
6104
|
+
id?: string;
|
|
6105
|
+
updated_at?: string;
|
|
6106
|
+
value?: string | null;
|
|
6107
|
+
};
|
|
6108
|
+
Update: {
|
|
6109
|
+
created_at?: string;
|
|
6110
|
+
customer_id?: string;
|
|
6111
|
+
field_id?: string;
|
|
6112
|
+
id?: string;
|
|
6113
|
+
updated_at?: string;
|
|
6114
|
+
value?: string | null;
|
|
6115
|
+
};
|
|
6116
|
+
Relationships: [{
|
|
6117
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
6118
|
+
columns: ["customer_id"];
|
|
6119
|
+
isOneToOne: false;
|
|
6120
|
+
referencedRelation: "itk_customers";
|
|
6121
|
+
referencedColumns: ["id"];
|
|
6122
|
+
}, {
|
|
6123
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6124
|
+
columns: ["field_id"];
|
|
6125
|
+
isOneToOne: false;
|
|
6126
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6127
|
+
referencedColumns: ["id"];
|
|
6128
|
+
}];
|
|
6129
|
+
};
|
|
6130
|
+
itk_customer_notes: {
|
|
6131
|
+
Row: {
|
|
6132
|
+
body: string;
|
|
6133
|
+
created_at: string;
|
|
6134
|
+
created_by: string | null;
|
|
6135
|
+
customer_id: string;
|
|
6136
|
+
id: string;
|
|
6137
|
+
note_type: string;
|
|
6138
|
+
updated_at: string;
|
|
6139
|
+
};
|
|
6140
|
+
Insert: {
|
|
6141
|
+
body: string;
|
|
6142
|
+
created_at?: string;
|
|
6143
|
+
created_by?: string | null;
|
|
6144
|
+
customer_id: string;
|
|
6145
|
+
id?: string;
|
|
6146
|
+
note_type?: string;
|
|
6147
|
+
updated_at?: string;
|
|
6148
|
+
};
|
|
6149
|
+
Update: {
|
|
6150
|
+
body?: string;
|
|
6151
|
+
created_at?: string;
|
|
6152
|
+
created_by?: string | null;
|
|
6153
|
+
customer_id?: string;
|
|
6154
|
+
id?: string;
|
|
6155
|
+
note_type?: string;
|
|
6156
|
+
updated_at?: string;
|
|
6157
|
+
};
|
|
6158
|
+
Relationships: [{
|
|
6159
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6160
|
+
columns: ["customer_id"];
|
|
6161
|
+
isOneToOne: false;
|
|
6162
|
+
referencedRelation: "itk_customers";
|
|
6163
|
+
referencedColumns: ["id"];
|
|
6164
|
+
}];
|
|
6165
|
+
};
|
|
6166
|
+
itk_customers: {
|
|
6167
|
+
Row: {
|
|
6168
|
+
billing_city: string | null;
|
|
6169
|
+
billing_postcode: string | null;
|
|
6170
|
+
billing_street: string | null;
|
|
6171
|
+
created_at: string;
|
|
6172
|
+
general_email: string | null;
|
|
6173
|
+
general_phone: string | null;
|
|
6174
|
+
id: string;
|
|
6175
|
+
legacy_customer_id: string | null;
|
|
6176
|
+
name: string;
|
|
6177
|
+
segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6178
|
+
updated_at: string;
|
|
6179
|
+
};
|
|
6180
|
+
Insert: {
|
|
6181
|
+
billing_city?: string | null;
|
|
6182
|
+
billing_postcode?: string | null;
|
|
6183
|
+
billing_street?: string | null;
|
|
6184
|
+
created_at?: string;
|
|
6185
|
+
general_email?: string | null;
|
|
6186
|
+
general_phone?: string | null;
|
|
6187
|
+
id?: string;
|
|
6188
|
+
legacy_customer_id?: string | null;
|
|
6189
|
+
name: string;
|
|
6190
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6191
|
+
updated_at?: string;
|
|
6192
|
+
};
|
|
6193
|
+
Update: {
|
|
6194
|
+
billing_city?: string | null;
|
|
6195
|
+
billing_postcode?: string | null;
|
|
6196
|
+
billing_street?: string | null;
|
|
6197
|
+
created_at?: string;
|
|
6198
|
+
general_email?: string | null;
|
|
6199
|
+
general_phone?: string | null;
|
|
6200
|
+
id?: string;
|
|
6201
|
+
legacy_customer_id?: string | null;
|
|
6202
|
+
name?: string;
|
|
6203
|
+
segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
|
|
6204
|
+
updated_at?: string;
|
|
6205
|
+
};
|
|
6206
|
+
Relationships: [{
|
|
6207
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6208
|
+
columns: ["legacy_customer_id"];
|
|
6209
|
+
isOneToOne: false;
|
|
6210
|
+
referencedRelation: "customers";
|
|
6211
|
+
referencedColumns: ["id"];
|
|
6212
|
+
}];
|
|
6213
|
+
};
|
|
6214
|
+
itk_dynamic_fields: {
|
|
6215
|
+
Row: {
|
|
6216
|
+
created_at: string;
|
|
6217
|
+
field_name: string;
|
|
6218
|
+
field_type: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6219
|
+
id: string;
|
|
6220
|
+
options: import("../integrations/supabase/types").Json;
|
|
6221
|
+
sort_order: number;
|
|
6222
|
+
updated_at: string;
|
|
6223
|
+
};
|
|
6224
|
+
Insert: {
|
|
6225
|
+
created_at?: string;
|
|
6226
|
+
field_name: string;
|
|
6227
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6228
|
+
id?: string;
|
|
6229
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6230
|
+
sort_order?: number;
|
|
6231
|
+
updated_at?: string;
|
|
6232
|
+
};
|
|
6233
|
+
Update: {
|
|
6234
|
+
created_at?: string;
|
|
6235
|
+
field_name?: string;
|
|
6236
|
+
field_type?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6237
|
+
id?: string;
|
|
6238
|
+
options?: import("../integrations/supabase/types").Json;
|
|
6239
|
+
sort_order?: number;
|
|
6240
|
+
updated_at?: string;
|
|
6241
|
+
};
|
|
6242
|
+
Relationships: [];
|
|
6243
|
+
};
|
|
6244
|
+
itk_work_locations: {
|
|
6245
|
+
Row: {
|
|
6246
|
+
city: string | null;
|
|
6247
|
+
created_at: string;
|
|
6248
|
+
customer_id: string;
|
|
6249
|
+
id: string;
|
|
6250
|
+
instructions: string | null;
|
|
6251
|
+
label: string;
|
|
6252
|
+
latitude: number | null;
|
|
6253
|
+
longitude: number | null;
|
|
6254
|
+
postcode: string | null;
|
|
6255
|
+
street: string | null;
|
|
6256
|
+
updated_at: string;
|
|
6257
|
+
};
|
|
6258
|
+
Insert: {
|
|
6259
|
+
city?: string | null;
|
|
6260
|
+
created_at?: string;
|
|
6261
|
+
customer_id: string;
|
|
6262
|
+
id?: string;
|
|
6263
|
+
instructions?: string | null;
|
|
6264
|
+
label: string;
|
|
6265
|
+
latitude?: number | null;
|
|
6266
|
+
longitude?: number | null;
|
|
6267
|
+
postcode?: string | null;
|
|
6268
|
+
street?: string | null;
|
|
6269
|
+
updated_at?: string;
|
|
6270
|
+
};
|
|
6271
|
+
Update: {
|
|
6272
|
+
city?: string | null;
|
|
5711
6273
|
created_at?: string;
|
|
5712
|
-
|
|
5713
|
-
description?: string | null;
|
|
5714
|
-
exact_article_id?: string | null;
|
|
6274
|
+
customer_id?: string;
|
|
5715
6275
|
id?: string;
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
6276
|
+
instructions?: string | null;
|
|
6277
|
+
label?: string;
|
|
6278
|
+
latitude?: number | null;
|
|
6279
|
+
longitude?: number | null;
|
|
6280
|
+
postcode?: string | null;
|
|
6281
|
+
street?: string | null;
|
|
6282
|
+
updated_at?: string;
|
|
5722
6283
|
};
|
|
5723
6284
|
Relationships: [{
|
|
5724
|
-
foreignKeyName: "
|
|
5725
|
-
columns: ["
|
|
5726
|
-
isOneToOne: false;
|
|
5727
|
-
referencedRelation: "bookings";
|
|
5728
|
-
referencedColumns: ["id"];
|
|
5729
|
-
}, {
|
|
5730
|
-
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
5731
|
-
columns: ["invoice_run_id"];
|
|
6285
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6286
|
+
columns: ["customer_id"];
|
|
5732
6287
|
isOneToOne: false;
|
|
5733
|
-
referencedRelation: "
|
|
6288
|
+
referencedRelation: "itk_customers";
|
|
5734
6289
|
referencedColumns: ["id"];
|
|
5735
6290
|
}];
|
|
5736
6291
|
};
|
|
5737
|
-
|
|
6292
|
+
leave_requests: {
|
|
5738
6293
|
Row: {
|
|
5739
6294
|
created_at: string;
|
|
5740
|
-
|
|
6295
|
+
end_date: string;
|
|
5741
6296
|
id: string;
|
|
5742
|
-
|
|
5743
|
-
|
|
6297
|
+
reason: string | null;
|
|
6298
|
+
start_date: string;
|
|
5744
6299
|
status: string;
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
6300
|
+
tenant_id: string;
|
|
6301
|
+
updated_at: string;
|
|
6302
|
+
user_id: string;
|
|
5748
6303
|
};
|
|
5749
6304
|
Insert: {
|
|
5750
6305
|
created_at?: string;
|
|
5751
|
-
|
|
6306
|
+
end_date: string;
|
|
5752
6307
|
id?: string;
|
|
5753
|
-
|
|
5754
|
-
|
|
6308
|
+
reason?: string | null;
|
|
6309
|
+
start_date: string;
|
|
5755
6310
|
status?: string;
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
6311
|
+
tenant_id?: string;
|
|
6312
|
+
updated_at?: string;
|
|
6313
|
+
user_id: string;
|
|
5759
6314
|
};
|
|
5760
6315
|
Update: {
|
|
5761
6316
|
created_at?: string;
|
|
5762
|
-
|
|
6317
|
+
end_date?: string;
|
|
5763
6318
|
id?: string;
|
|
5764
|
-
|
|
5765
|
-
|
|
6319
|
+
reason?: string | null;
|
|
6320
|
+
start_date?: string;
|
|
5766
6321
|
status?: string;
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
6322
|
+
tenant_id?: string;
|
|
6323
|
+
updated_at?: string;
|
|
6324
|
+
user_id?: string;
|
|
5770
6325
|
};
|
|
5771
|
-
Relationships: [
|
|
6326
|
+
Relationships: [{
|
|
6327
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6328
|
+
columns: ["user_id"];
|
|
6329
|
+
isOneToOne: false;
|
|
6330
|
+
referencedRelation: "monteurs";
|
|
6331
|
+
referencedColumns: ["id"];
|
|
6332
|
+
}];
|
|
5772
6333
|
};
|
|
5773
6334
|
local_customer_agreements: {
|
|
5774
6335
|
Row: {
|
|
@@ -6421,6 +6982,33 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
6421
6982
|
};
|
|
6422
6983
|
Relationships: [];
|
|
6423
6984
|
};
|
|
6985
|
+
module_permissions: {
|
|
6986
|
+
Row: {
|
|
6987
|
+
created_at: string;
|
|
6988
|
+
id: string;
|
|
6989
|
+
module_id: string;
|
|
6990
|
+
permission: string;
|
|
6991
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
6992
|
+
updated_at: string;
|
|
6993
|
+
};
|
|
6994
|
+
Insert: {
|
|
6995
|
+
created_at?: string;
|
|
6996
|
+
id?: string;
|
|
6997
|
+
module_id: string;
|
|
6998
|
+
permission: string;
|
|
6999
|
+
role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7000
|
+
updated_at?: string;
|
|
7001
|
+
};
|
|
7002
|
+
Update: {
|
|
7003
|
+
created_at?: string;
|
|
7004
|
+
id?: string;
|
|
7005
|
+
module_id?: string;
|
|
7006
|
+
permission?: string;
|
|
7007
|
+
role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
7008
|
+
updated_at?: string;
|
|
7009
|
+
};
|
|
7010
|
+
Relationships: [];
|
|
7011
|
+
};
|
|
6424
7012
|
monteurs: {
|
|
6425
7013
|
Row: {
|
|
6426
7014
|
avatar_url: string | null;
|
|
@@ -7150,6 +7738,42 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7150
7738
|
};
|
|
7151
7739
|
Relationships: [];
|
|
7152
7740
|
};
|
|
7741
|
+
order_buffers: {
|
|
7742
|
+
Row: {
|
|
7743
|
+
buffer_key: string;
|
|
7744
|
+
created_at: string;
|
|
7745
|
+
customer_id: string | null;
|
|
7746
|
+
grouping_mode: string;
|
|
7747
|
+
id: string;
|
|
7748
|
+
pickup_date: string | null;
|
|
7749
|
+
pickup_location: string | null;
|
|
7750
|
+
plan_locked_at: string | null;
|
|
7751
|
+
updated_at: string;
|
|
7752
|
+
};
|
|
7753
|
+
Insert: {
|
|
7754
|
+
buffer_key: string;
|
|
7755
|
+
created_at?: string;
|
|
7756
|
+
customer_id?: string | null;
|
|
7757
|
+
grouping_mode: string;
|
|
7758
|
+
id?: string;
|
|
7759
|
+
pickup_date?: string | null;
|
|
7760
|
+
pickup_location?: string | null;
|
|
7761
|
+
plan_locked_at?: string | null;
|
|
7762
|
+
updated_at?: string;
|
|
7763
|
+
};
|
|
7764
|
+
Update: {
|
|
7765
|
+
buffer_key?: string;
|
|
7766
|
+
created_at?: string;
|
|
7767
|
+
customer_id?: string | null;
|
|
7768
|
+
grouping_mode?: string;
|
|
7769
|
+
id?: string;
|
|
7770
|
+
pickup_date?: string | null;
|
|
7771
|
+
pickup_location?: string | null;
|
|
7772
|
+
plan_locked_at?: string | null;
|
|
7773
|
+
updated_at?: string;
|
|
7774
|
+
};
|
|
7775
|
+
Relationships: [];
|
|
7776
|
+
};
|
|
7153
7777
|
order_cart_items: {
|
|
7154
7778
|
Row: {
|
|
7155
7779
|
cart_id: string;
|
|
@@ -7216,6 +7840,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7216
7840
|
order_carts: {
|
|
7217
7841
|
Row: {
|
|
7218
7842
|
algorithm_version: number;
|
|
7843
|
+
buffer_id: string | null;
|
|
7219
7844
|
cart_number: number;
|
|
7220
7845
|
created_at: string;
|
|
7221
7846
|
id: string;
|
|
@@ -7223,13 +7848,14 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7223
7848
|
is_complete: boolean;
|
|
7224
7849
|
notes: string | null;
|
|
7225
7850
|
occupancy_pct: number;
|
|
7226
|
-
order_id: string;
|
|
7851
|
+
order_id: string | null;
|
|
7227
7852
|
source: string;
|
|
7228
7853
|
total_layers_used: number;
|
|
7229
7854
|
updated_at: string;
|
|
7230
7855
|
};
|
|
7231
7856
|
Insert: {
|
|
7232
7857
|
algorithm_version?: number;
|
|
7858
|
+
buffer_id?: string | null;
|
|
7233
7859
|
cart_number: number;
|
|
7234
7860
|
created_at?: string;
|
|
7235
7861
|
id?: string;
|
|
@@ -7237,13 +7863,14 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7237
7863
|
is_complete?: boolean;
|
|
7238
7864
|
notes?: string | null;
|
|
7239
7865
|
occupancy_pct?: number;
|
|
7240
|
-
order_id
|
|
7866
|
+
order_id?: string | null;
|
|
7241
7867
|
source?: string;
|
|
7242
7868
|
total_layers_used?: number;
|
|
7243
7869
|
updated_at?: string;
|
|
7244
7870
|
};
|
|
7245
7871
|
Update: {
|
|
7246
7872
|
algorithm_version?: number;
|
|
7873
|
+
buffer_id?: string | null;
|
|
7247
7874
|
cart_number?: number;
|
|
7248
7875
|
created_at?: string;
|
|
7249
7876
|
id?: string;
|
|
@@ -7251,12 +7878,18 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7251
7878
|
is_complete?: boolean;
|
|
7252
7879
|
notes?: string | null;
|
|
7253
7880
|
occupancy_pct?: number;
|
|
7254
|
-
order_id?: string;
|
|
7881
|
+
order_id?: string | null;
|
|
7255
7882
|
source?: string;
|
|
7256
7883
|
total_layers_used?: number;
|
|
7257
7884
|
updated_at?: string;
|
|
7258
7885
|
};
|
|
7259
7886
|
Relationships: [{
|
|
7887
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7888
|
+
columns: ["buffer_id"];
|
|
7889
|
+
isOneToOne: false;
|
|
7890
|
+
referencedRelation: "order_buffers";
|
|
7891
|
+
referencedColumns: ["id"];
|
|
7892
|
+
}, {
|
|
7260
7893
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7261
7894
|
columns: ["order_id"];
|
|
7262
7895
|
isOneToOne: false;
|
|
@@ -7393,15 +8026,117 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7393
8026
|
};
|
|
7394
8027
|
Relationships: [];
|
|
7395
8028
|
};
|
|
8029
|
+
order_shipment_items: {
|
|
8030
|
+
Row: {
|
|
8031
|
+
created_at: string;
|
|
8032
|
+
id: string;
|
|
8033
|
+
order_item_id: string;
|
|
8034
|
+
product_id: string | null;
|
|
8035
|
+
product_name: string;
|
|
8036
|
+
quantity: number;
|
|
8037
|
+
shipment_id: string;
|
|
8038
|
+
updated_at: string;
|
|
8039
|
+
};
|
|
8040
|
+
Insert: {
|
|
8041
|
+
created_at?: string;
|
|
8042
|
+
id?: string;
|
|
8043
|
+
order_item_id: string;
|
|
8044
|
+
product_id?: string | null;
|
|
8045
|
+
product_name: string;
|
|
8046
|
+
quantity: number;
|
|
8047
|
+
shipment_id: string;
|
|
8048
|
+
updated_at?: string;
|
|
8049
|
+
};
|
|
8050
|
+
Update: {
|
|
8051
|
+
created_at?: string;
|
|
8052
|
+
id?: string;
|
|
8053
|
+
order_item_id?: string;
|
|
8054
|
+
product_id?: string | null;
|
|
8055
|
+
product_name?: string;
|
|
8056
|
+
quantity?: number;
|
|
8057
|
+
shipment_id?: string;
|
|
8058
|
+
updated_at?: string;
|
|
8059
|
+
};
|
|
8060
|
+
Relationships: [{
|
|
8061
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
8062
|
+
columns: ["order_item_id"];
|
|
8063
|
+
isOneToOne: false;
|
|
8064
|
+
referencedRelation: "order_items";
|
|
8065
|
+
referencedColumns: ["id"];
|
|
8066
|
+
}, {
|
|
8067
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
8068
|
+
columns: ["shipment_id"];
|
|
8069
|
+
isOneToOne: false;
|
|
8070
|
+
referencedRelation: "order_shipments";
|
|
8071
|
+
referencedColumns: ["id"];
|
|
8072
|
+
}];
|
|
8073
|
+
};
|
|
8074
|
+
order_shipments: {
|
|
8075
|
+
Row: {
|
|
8076
|
+
carrier_id: string | null;
|
|
8077
|
+
created_at: string;
|
|
8078
|
+
delivery_date: string | null;
|
|
8079
|
+
delivery_location_id: string | null;
|
|
8080
|
+
id: string;
|
|
8081
|
+
notes: string | null;
|
|
8082
|
+
order_id: string;
|
|
8083
|
+
shipment_number: number;
|
|
8084
|
+
shipped_at: string | null;
|
|
8085
|
+
status: string;
|
|
8086
|
+
updated_at: string;
|
|
8087
|
+
};
|
|
8088
|
+
Insert: {
|
|
8089
|
+
carrier_id?: string | null;
|
|
8090
|
+
created_at?: string;
|
|
8091
|
+
delivery_date?: string | null;
|
|
8092
|
+
delivery_location_id?: string | null;
|
|
8093
|
+
id?: string;
|
|
8094
|
+
notes?: string | null;
|
|
8095
|
+
order_id: string;
|
|
8096
|
+
shipment_number: number;
|
|
8097
|
+
shipped_at?: string | null;
|
|
8098
|
+
status?: string;
|
|
8099
|
+
updated_at?: string;
|
|
8100
|
+
};
|
|
8101
|
+
Update: {
|
|
8102
|
+
carrier_id?: string | null;
|
|
8103
|
+
created_at?: string;
|
|
8104
|
+
delivery_date?: string | null;
|
|
8105
|
+
delivery_location_id?: string | null;
|
|
8106
|
+
id?: string;
|
|
8107
|
+
notes?: string | null;
|
|
8108
|
+
order_id?: string;
|
|
8109
|
+
shipment_number?: number;
|
|
8110
|
+
shipped_at?: string | null;
|
|
8111
|
+
status?: string;
|
|
8112
|
+
updated_at?: string;
|
|
8113
|
+
};
|
|
8114
|
+
Relationships: [{
|
|
8115
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
8116
|
+
columns: ["carrier_id"];
|
|
8117
|
+
isOneToOne: false;
|
|
8118
|
+
referencedRelation: "carriers";
|
|
8119
|
+
referencedColumns: ["id"];
|
|
8120
|
+
}, {
|
|
8121
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
8122
|
+
columns: ["order_id"];
|
|
8123
|
+
isOneToOne: false;
|
|
8124
|
+
referencedRelation: "orders";
|
|
8125
|
+
referencedColumns: ["id"];
|
|
8126
|
+
}];
|
|
8127
|
+
};
|
|
7396
8128
|
orders: {
|
|
7397
8129
|
Row: {
|
|
8130
|
+
buffer_id: string | null;
|
|
7398
8131
|
created_at: string;
|
|
7399
8132
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
7400
8133
|
customer_id: string | null;
|
|
7401
8134
|
customer_name: string;
|
|
7402
8135
|
deleted_at: string | null;
|
|
7403
|
-
delivery_date: string;
|
|
8136
|
+
delivery_date: string | null;
|
|
8137
|
+
floriday_sales_order_id: string | null;
|
|
7404
8138
|
id: string;
|
|
8139
|
+
is_reservation: boolean;
|
|
7405
8140
|
notes: string | null;
|
|
7406
8141
|
order_date: string;
|
|
7407
8142
|
order_number: string;
|
|
@@ -7413,13 +8148,16 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7413
8148
|
updated_at: string;
|
|
7414
8149
|
};
|
|
7415
8150
|
Insert: {
|
|
8151
|
+
buffer_id?: string | null;
|
|
7416
8152
|
created_at?: string;
|
|
7417
8153
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7418
8154
|
customer_id?: string | null;
|
|
7419
8155
|
customer_name?: string;
|
|
7420
8156
|
deleted_at?: string | null;
|
|
7421
|
-
delivery_date
|
|
8157
|
+
delivery_date?: string | null;
|
|
8158
|
+
floriday_sales_order_id?: string | null;
|
|
7422
8159
|
id?: string;
|
|
8160
|
+
is_reservation?: boolean;
|
|
7423
8161
|
notes?: string | null;
|
|
7424
8162
|
order_date?: string;
|
|
7425
8163
|
order_number: string;
|
|
@@ -7431,13 +8169,16 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7431
8169
|
updated_at?: string;
|
|
7432
8170
|
};
|
|
7433
8171
|
Update: {
|
|
8172
|
+
buffer_id?: string | null;
|
|
7434
8173
|
created_at?: string;
|
|
7435
8174
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
7436
8175
|
customer_id?: string | null;
|
|
7437
8176
|
customer_name?: string;
|
|
7438
8177
|
deleted_at?: string | null;
|
|
7439
|
-
delivery_date?: string;
|
|
8178
|
+
delivery_date?: string | null;
|
|
8179
|
+
floriday_sales_order_id?: string | null;
|
|
7440
8180
|
id?: string;
|
|
8181
|
+
is_reservation?: boolean;
|
|
7441
8182
|
notes?: string | null;
|
|
7442
8183
|
order_date?: string;
|
|
7443
8184
|
order_number?: string;
|
|
@@ -7449,6 +8190,12 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7449
8190
|
updated_at?: string;
|
|
7450
8191
|
};
|
|
7451
8192
|
Relationships: [{
|
|
8193
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8194
|
+
columns: ["buffer_id"];
|
|
8195
|
+
isOneToOne: false;
|
|
8196
|
+
referencedRelation: "order_buffers";
|
|
8197
|
+
referencedColumns: ["id"];
|
|
8198
|
+
}, {
|
|
7452
8199
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7453
8200
|
columns: ["customer_id"];
|
|
7454
8201
|
isOneToOne: false;
|
|
@@ -7712,6 +8459,8 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7712
8459
|
Row: {
|
|
7713
8460
|
created_at: string;
|
|
7714
8461
|
description: string | null;
|
|
8462
|
+
head_product_id: string | null;
|
|
8463
|
+
head_trade_item_floriday_id: string | null;
|
|
7715
8464
|
id: string;
|
|
7716
8465
|
is_active: boolean;
|
|
7717
8466
|
name: string;
|
|
@@ -7721,6 +8470,8 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7721
8470
|
Insert: {
|
|
7722
8471
|
created_at?: string;
|
|
7723
8472
|
description?: string | null;
|
|
8473
|
+
head_product_id?: string | null;
|
|
8474
|
+
head_trade_item_floriday_id?: string | null;
|
|
7724
8475
|
id?: string;
|
|
7725
8476
|
is_active?: boolean;
|
|
7726
8477
|
name: string;
|
|
@@ -7730,13 +8481,21 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
7730
8481
|
Update: {
|
|
7731
8482
|
created_at?: string;
|
|
7732
8483
|
description?: string | null;
|
|
8484
|
+
head_product_id?: string | null;
|
|
8485
|
+
head_trade_item_floriday_id?: string | null;
|
|
7733
8486
|
id?: string;
|
|
7734
8487
|
is_active?: boolean;
|
|
7735
8488
|
name?: string;
|
|
7736
8489
|
tenant_id?: string;
|
|
7737
8490
|
updated_at?: string;
|
|
7738
8491
|
};
|
|
7739
|
-
Relationships: [
|
|
8492
|
+
Relationships: [{
|
|
8493
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8494
|
+
columns: ["head_product_id"];
|
|
8495
|
+
isOneToOne: false;
|
|
8496
|
+
referencedRelation: "products";
|
|
8497
|
+
referencedColumns: ["id"];
|
|
8498
|
+
}];
|
|
7740
8499
|
};
|
|
7741
8500
|
products: {
|
|
7742
8501
|
Row: {
|
|
@@ -10287,6 +11046,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
10287
11046
|
internal_notes: string | null;
|
|
10288
11047
|
parent_werkbon_id: string | null;
|
|
10289
11048
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
11049
|
+
planning_status: string;
|
|
10290
11050
|
project_number: string | null;
|
|
10291
11051
|
room_number: string | null;
|
|
10292
11052
|
scheduled_end_time: string | null;
|
|
@@ -10294,6 +11054,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
10294
11054
|
sequence_number: number;
|
|
10295
11055
|
source_pdf_path: string | null;
|
|
10296
11056
|
status: string;
|
|
11057
|
+
technician_id: string | null;
|
|
10297
11058
|
technician_notes: string | null;
|
|
10298
11059
|
technician_notes_raw: string | null;
|
|
10299
11060
|
technician_task_description: string | null;
|
|
@@ -10314,6 +11075,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
10314
11075
|
internal_notes?: string | null;
|
|
10315
11076
|
parent_werkbon_id?: string | null;
|
|
10316
11077
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11078
|
+
planning_status?: string;
|
|
10317
11079
|
project_number?: string | null;
|
|
10318
11080
|
room_number?: string | null;
|
|
10319
11081
|
scheduled_end_time?: string | null;
|
|
@@ -10321,6 +11083,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
10321
11083
|
sequence_number: number;
|
|
10322
11084
|
source_pdf_path?: string | null;
|
|
10323
11085
|
status?: string;
|
|
11086
|
+
technician_id?: string | null;
|
|
10324
11087
|
technician_notes?: string | null;
|
|
10325
11088
|
technician_notes_raw?: string | null;
|
|
10326
11089
|
technician_task_description?: string | null;
|
|
@@ -10341,6 +11104,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
10341
11104
|
internal_notes?: string | null;
|
|
10342
11105
|
parent_werkbon_id?: string | null;
|
|
10343
11106
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
11107
|
+
planning_status?: string;
|
|
10344
11108
|
project_number?: string | null;
|
|
10345
11109
|
room_number?: string | null;
|
|
10346
11110
|
scheduled_end_time?: string | null;
|
|
@@ -10348,6 +11112,7 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
10348
11112
|
sequence_number?: number;
|
|
10349
11113
|
source_pdf_path?: string | null;
|
|
10350
11114
|
status?: string;
|
|
11115
|
+
technician_id?: string | null;
|
|
10351
11116
|
technician_notes?: string | null;
|
|
10352
11117
|
technician_notes_raw?: string | null;
|
|
10353
11118
|
technician_task_description?: string | null;
|
|
@@ -10356,17 +11121,17 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
10356
11121
|
work_address?: string | null;
|
|
10357
11122
|
};
|
|
10358
11123
|
Relationships: [{
|
|
10359
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
10360
|
-
columns: ["customer_id"];
|
|
10361
|
-
isOneToOne: false;
|
|
10362
|
-
referencedRelation: "customers";
|
|
10363
|
-
referencedColumns: ["id"];
|
|
10364
|
-
}, {
|
|
10365
11124
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
10366
11125
|
columns: ["parent_werkbon_id"];
|
|
10367
11126
|
isOneToOne: false;
|
|
10368
11127
|
referencedRelation: "werkbonnen";
|
|
10369
11128
|
referencedColumns: ["id"];
|
|
11129
|
+
}, {
|
|
11130
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11131
|
+
columns: ["technician_id"];
|
|
11132
|
+
isOneToOne: false;
|
|
11133
|
+
referencedRelation: "monteurs";
|
|
11134
|
+
referencedColumns: ["id"];
|
|
10370
11135
|
}];
|
|
10371
11136
|
};
|
|
10372
11137
|
work_order_monteurs: {
|
|
@@ -11085,6 +11850,21 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
11085
11850
|
};
|
|
11086
11851
|
Returns: string;
|
|
11087
11852
|
};
|
|
11853
|
+
ai_usage_by_module: {
|
|
11854
|
+
Args: {
|
|
11855
|
+
_from: string;
|
|
11856
|
+
_to: string;
|
|
11857
|
+
};
|
|
11858
|
+
Returns: {
|
|
11859
|
+
calls: number;
|
|
11860
|
+
consumer_module_id: string;
|
|
11861
|
+
cost_usd: number;
|
|
11862
|
+
errors: number;
|
|
11863
|
+
input_tokens: number;
|
|
11864
|
+
output_tokens: number;
|
|
11865
|
+
total_tokens: number;
|
|
11866
|
+
}[];
|
|
11867
|
+
};
|
|
11088
11868
|
apply_stock_consumption: {
|
|
11089
11869
|
Args: {
|
|
11090
11870
|
p_order_id: string;
|
|
@@ -11233,6 +12013,12 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
11233
12013
|
Args: never;
|
|
11234
12014
|
Returns: string;
|
|
11235
12015
|
};
|
|
12016
|
+
custom_access_token_hook: {
|
|
12017
|
+
Args: {
|
|
12018
|
+
event: import("../integrations/supabase/types").Json;
|
|
12019
|
+
};
|
|
12020
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
12021
|
+
};
|
|
11236
12022
|
dashboard_alert_counts: {
|
|
11237
12023
|
Args: never;
|
|
11238
12024
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -11568,6 +12354,14 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
11568
12354
|
};
|
|
11569
12355
|
Returns: string;
|
|
11570
12356
|
};
|
|
12357
|
+
has_module_permission: {
|
|
12358
|
+
Args: {
|
|
12359
|
+
_min: string;
|
|
12360
|
+
_module_id: string;
|
|
12361
|
+
_user_id: string;
|
|
12362
|
+
};
|
|
12363
|
+
Returns: boolean;
|
|
12364
|
+
};
|
|
11571
12365
|
has_role: {
|
|
11572
12366
|
Args: {
|
|
11573
12367
|
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
@@ -11593,6 +12387,20 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
11593
12387
|
};
|
|
11594
12388
|
Returns: boolean;
|
|
11595
12389
|
};
|
|
12390
|
+
jwt_has_role: {
|
|
12391
|
+
Args: {
|
|
12392
|
+
_role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
|
|
12393
|
+
};
|
|
12394
|
+
Returns: boolean;
|
|
12395
|
+
};
|
|
12396
|
+
list_monteurs: {
|
|
12397
|
+
Args: never;
|
|
12398
|
+
Returns: {
|
|
12399
|
+
display_name: string;
|
|
12400
|
+
email: string;
|
|
12401
|
+
user_id: string;
|
|
12402
|
+
}[];
|
|
12403
|
+
};
|
|
11596
12404
|
local_effective_price: {
|
|
11597
12405
|
Args: {
|
|
11598
12406
|
_customer_id: string;
|
|
@@ -11609,6 +12417,22 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
11609
12417
|
source_id: string;
|
|
11610
12418
|
}[];
|
|
11611
12419
|
};
|
|
12420
|
+
log_ai_call: {
|
|
12421
|
+
Args: {
|
|
12422
|
+
_consumer_module_id: string;
|
|
12423
|
+
_cost_usd: number;
|
|
12424
|
+
_duration_ms: number;
|
|
12425
|
+
_error_code: string;
|
|
12426
|
+
_error_message: string;
|
|
12427
|
+
_input_tokens: number;
|
|
12428
|
+
_model_slug: string;
|
|
12429
|
+
_output_tokens: number;
|
|
12430
|
+
_provider_slug: string;
|
|
12431
|
+
_status: string;
|
|
12432
|
+
_total_tokens: number;
|
|
12433
|
+
};
|
|
12434
|
+
Returns: string;
|
|
12435
|
+
};
|
|
11612
12436
|
mark_offer_clicked: {
|
|
11613
12437
|
Args: {
|
|
11614
12438
|
p_code: string;
|
|
@@ -11621,6 +12445,12 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
11621
12445
|
};
|
|
11622
12446
|
Returns: undefined;
|
|
11623
12447
|
};
|
|
12448
|
+
mark_shipment_shipped: {
|
|
12449
|
+
Args: {
|
|
12450
|
+
p_shipment_id: string;
|
|
12451
|
+
};
|
|
12452
|
+
Returns: undefined;
|
|
12453
|
+
};
|
|
11624
12454
|
next_order_number: {
|
|
11625
12455
|
Args: {
|
|
11626
12456
|
p_prefix: string;
|
|
@@ -12097,9 +12927,11 @@ export declare const listPriceGroupsForOrganizations: import("@tanstack/start-cl
|
|
|
12097
12927
|
};
|
|
12098
12928
|
};
|
|
12099
12929
|
Enums: {
|
|
12100
|
-
app_role: "admin" | "
|
|
12930
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
12101
12931
|
exact_env: "staging" | "live";
|
|
12102
12932
|
exact_push_status: "pending" | "sent" | "error";
|
|
12933
|
+
itk_customer_segment: "Business" | "Private";
|
|
12934
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
12103
12935
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12104
12936
|
};
|
|
12105
12937
|
CompositeTypes: { [_ in never]: never; };
|