@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
|
@@ -277,6 +277,57 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
277
277
|
referencedColumns: ["id"];
|
|
278
278
|
}];
|
|
279
279
|
};
|
|
280
|
+
ai_call_log: {
|
|
281
|
+
Row: {
|
|
282
|
+
consumer_module_id: string;
|
|
283
|
+
cost_usd: number | null;
|
|
284
|
+
created_at: string;
|
|
285
|
+
created_by: string | null;
|
|
286
|
+
duration_ms: number | null;
|
|
287
|
+
error_code: string | null;
|
|
288
|
+
error_message: string | null;
|
|
289
|
+
id: string;
|
|
290
|
+
input_tokens: number;
|
|
291
|
+
model_slug: string | null;
|
|
292
|
+
output_tokens: number;
|
|
293
|
+
provider_slug: string | null;
|
|
294
|
+
status: string;
|
|
295
|
+
total_tokens: number;
|
|
296
|
+
};
|
|
297
|
+
Insert: {
|
|
298
|
+
consumer_module_id: string;
|
|
299
|
+
cost_usd?: number | null;
|
|
300
|
+
created_at?: string;
|
|
301
|
+
created_by?: string | null;
|
|
302
|
+
duration_ms?: number | null;
|
|
303
|
+
error_code?: string | null;
|
|
304
|
+
error_message?: string | null;
|
|
305
|
+
id?: string;
|
|
306
|
+
input_tokens?: number;
|
|
307
|
+
model_slug?: string | null;
|
|
308
|
+
output_tokens?: number;
|
|
309
|
+
provider_slug?: string | null;
|
|
310
|
+
status: string;
|
|
311
|
+
total_tokens?: number;
|
|
312
|
+
};
|
|
313
|
+
Update: {
|
|
314
|
+
consumer_module_id?: string;
|
|
315
|
+
cost_usd?: number | null;
|
|
316
|
+
created_at?: string;
|
|
317
|
+
created_by?: string | null;
|
|
318
|
+
duration_ms?: number | null;
|
|
319
|
+
error_code?: string | null;
|
|
320
|
+
error_message?: string | null;
|
|
321
|
+
id?: string;
|
|
322
|
+
input_tokens?: number;
|
|
323
|
+
model_slug?: string | null;
|
|
324
|
+
output_tokens?: number;
|
|
325
|
+
provider_slug?: string | null;
|
|
326
|
+
status?: string;
|
|
327
|
+
total_tokens?: number;
|
|
328
|
+
};
|
|
329
|
+
Relationships: [];
|
|
330
|
+
};
|
|
280
331
|
ai_credentials: {
|
|
281
332
|
Row: {
|
|
282
333
|
active: boolean;
|
|
@@ -313,6 +364,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
313
364
|
referencedColumns: ["id"];
|
|
314
365
|
}];
|
|
315
366
|
};
|
|
367
|
+
ai_goals: {
|
|
368
|
+
Row: {
|
|
369
|
+
active: boolean;
|
|
370
|
+
created_at: string;
|
|
371
|
+
description: string | null;
|
|
372
|
+
key: string;
|
|
373
|
+
label: string;
|
|
374
|
+
sort_order: number;
|
|
375
|
+
updated_at: string;
|
|
376
|
+
};
|
|
377
|
+
Insert: {
|
|
378
|
+
active?: boolean;
|
|
379
|
+
created_at?: string;
|
|
380
|
+
description?: string | null;
|
|
381
|
+
key: string;
|
|
382
|
+
label: string;
|
|
383
|
+
sort_order?: number;
|
|
384
|
+
updated_at?: string;
|
|
385
|
+
};
|
|
386
|
+
Update: {
|
|
387
|
+
active?: boolean;
|
|
388
|
+
created_at?: string;
|
|
389
|
+
description?: string | null;
|
|
390
|
+
key?: string;
|
|
391
|
+
label?: string;
|
|
392
|
+
sort_order?: number;
|
|
393
|
+
updated_at?: string;
|
|
394
|
+
};
|
|
395
|
+
Relationships: [];
|
|
396
|
+
};
|
|
316
397
|
ai_model_pricing: {
|
|
317
398
|
Row: {
|
|
318
399
|
created_at: string;
|
|
@@ -1099,6 +1180,141 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1099
1180
|
};
|
|
1100
1181
|
Relationships: [];
|
|
1101
1182
|
};
|
|
1183
|
+
cart_planning_pick_times: {
|
|
1184
|
+
Row: {
|
|
1185
|
+
created_at: string;
|
|
1186
|
+
id: string;
|
|
1187
|
+
pot_size: string;
|
|
1188
|
+
seconds_per_cart: number;
|
|
1189
|
+
updated_at: string;
|
|
1190
|
+
};
|
|
1191
|
+
Insert: {
|
|
1192
|
+
created_at?: string;
|
|
1193
|
+
id?: string;
|
|
1194
|
+
pot_size: string;
|
|
1195
|
+
seconds_per_cart: number;
|
|
1196
|
+
updated_at?: string;
|
|
1197
|
+
};
|
|
1198
|
+
Update: {
|
|
1199
|
+
created_at?: string;
|
|
1200
|
+
id?: string;
|
|
1201
|
+
pot_size?: string;
|
|
1202
|
+
seconds_per_cart?: number;
|
|
1203
|
+
updated_at?: string;
|
|
1204
|
+
};
|
|
1205
|
+
Relationships: [];
|
|
1206
|
+
};
|
|
1207
|
+
cart_planning_product_overrides: {
|
|
1208
|
+
Row: {
|
|
1209
|
+
created_at: string;
|
|
1210
|
+
id: string;
|
|
1211
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1212
|
+
never_mix: boolean;
|
|
1213
|
+
notes: string | null;
|
|
1214
|
+
product_id: string;
|
|
1215
|
+
updated_at: string;
|
|
1216
|
+
};
|
|
1217
|
+
Insert: {
|
|
1218
|
+
created_at?: string;
|
|
1219
|
+
id?: string;
|
|
1220
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1221
|
+
never_mix?: boolean;
|
|
1222
|
+
notes?: string | null;
|
|
1223
|
+
product_id: string;
|
|
1224
|
+
updated_at?: string;
|
|
1225
|
+
};
|
|
1226
|
+
Update: {
|
|
1227
|
+
created_at?: string;
|
|
1228
|
+
id?: string;
|
|
1229
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1230
|
+
never_mix?: boolean;
|
|
1231
|
+
notes?: string | null;
|
|
1232
|
+
product_id?: string;
|
|
1233
|
+
updated_at?: string;
|
|
1234
|
+
};
|
|
1235
|
+
Relationships: [{
|
|
1236
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1237
|
+
columns: ["product_id"];
|
|
1238
|
+
isOneToOne: true;
|
|
1239
|
+
referencedRelation: "products";
|
|
1240
|
+
referencedColumns: ["id"];
|
|
1241
|
+
}];
|
|
1242
|
+
};
|
|
1243
|
+
cart_planning_settings: {
|
|
1244
|
+
Row: {
|
|
1245
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1246
|
+
buffer_grouping_mode: string;
|
|
1247
|
+
combine_floriday_orders: boolean;
|
|
1248
|
+
combine_floriday_orders_window: string;
|
|
1249
|
+
combine_orders_scope: string;
|
|
1250
|
+
default_workers: number;
|
|
1251
|
+
id: number;
|
|
1252
|
+
max_beladingen_per_layer: number;
|
|
1253
|
+
max_customers_per_cart: number;
|
|
1254
|
+
max_one_customer_per_layer: boolean;
|
|
1255
|
+
max_party_share_per_layer_pct: number;
|
|
1256
|
+
optimization_strategy: string;
|
|
1257
|
+
own_cart_from_layers: number;
|
|
1258
|
+
pick_time_mode: string;
|
|
1259
|
+
plants_per_day: number;
|
|
1260
|
+
plants_per_hour: number;
|
|
1261
|
+
require_same_carrier: boolean;
|
|
1262
|
+
require_same_crate_type: boolean;
|
|
1263
|
+
require_same_delivery_date: boolean;
|
|
1264
|
+
require_same_delivery_location: boolean;
|
|
1265
|
+
updated_at: string;
|
|
1266
|
+
updated_by: string | null;
|
|
1267
|
+
};
|
|
1268
|
+
Insert: {
|
|
1269
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1270
|
+
buffer_grouping_mode?: string;
|
|
1271
|
+
combine_floriday_orders?: boolean;
|
|
1272
|
+
combine_floriday_orders_window?: string;
|
|
1273
|
+
combine_orders_scope?: string;
|
|
1274
|
+
default_workers?: number;
|
|
1275
|
+
id?: number;
|
|
1276
|
+
max_beladingen_per_layer?: number;
|
|
1277
|
+
max_customers_per_cart?: number;
|
|
1278
|
+
max_one_customer_per_layer?: boolean;
|
|
1279
|
+
max_party_share_per_layer_pct?: number;
|
|
1280
|
+
optimization_strategy?: string;
|
|
1281
|
+
own_cart_from_layers?: number;
|
|
1282
|
+
pick_time_mode?: string;
|
|
1283
|
+
plants_per_day?: number;
|
|
1284
|
+
plants_per_hour?: number;
|
|
1285
|
+
require_same_carrier?: boolean;
|
|
1286
|
+
require_same_crate_type?: boolean;
|
|
1287
|
+
require_same_delivery_date?: boolean;
|
|
1288
|
+
require_same_delivery_location?: boolean;
|
|
1289
|
+
updated_at?: string;
|
|
1290
|
+
updated_by?: string | null;
|
|
1291
|
+
};
|
|
1292
|
+
Update: {
|
|
1293
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1294
|
+
buffer_grouping_mode?: string;
|
|
1295
|
+
combine_floriday_orders?: boolean;
|
|
1296
|
+
combine_floriday_orders_window?: string;
|
|
1297
|
+
combine_orders_scope?: string;
|
|
1298
|
+
default_workers?: number;
|
|
1299
|
+
id?: number;
|
|
1300
|
+
max_beladingen_per_layer?: number;
|
|
1301
|
+
max_customers_per_cart?: number;
|
|
1302
|
+
max_one_customer_per_layer?: boolean;
|
|
1303
|
+
max_party_share_per_layer_pct?: number;
|
|
1304
|
+
optimization_strategy?: string;
|
|
1305
|
+
own_cart_from_layers?: number;
|
|
1306
|
+
pick_time_mode?: string;
|
|
1307
|
+
plants_per_day?: number;
|
|
1308
|
+
plants_per_hour?: number;
|
|
1309
|
+
require_same_carrier?: boolean;
|
|
1310
|
+
require_same_crate_type?: boolean;
|
|
1311
|
+
require_same_delivery_date?: boolean;
|
|
1312
|
+
require_same_delivery_location?: boolean;
|
|
1313
|
+
updated_at?: string;
|
|
1314
|
+
updated_by?: string | null;
|
|
1315
|
+
};
|
|
1316
|
+
Relationships: [];
|
|
1317
|
+
};
|
|
1102
1318
|
cart_replan_queue: {
|
|
1103
1319
|
Row: {
|
|
1104
1320
|
attempts: number;
|
|
@@ -1129,6 +1345,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1129
1345
|
referencedColumns: ["id"];
|
|
1130
1346
|
}];
|
|
1131
1347
|
};
|
|
1348
|
+
cart_types: {
|
|
1349
|
+
Row: {
|
|
1350
|
+
created_at: string;
|
|
1351
|
+
id: string;
|
|
1352
|
+
is_default: boolean;
|
|
1353
|
+
layer_length_cm: number;
|
|
1354
|
+
layer_width_cm: number;
|
|
1355
|
+
layers_per_cart: number;
|
|
1356
|
+
name: string;
|
|
1357
|
+
updated_at: string;
|
|
1358
|
+
};
|
|
1359
|
+
Insert: {
|
|
1360
|
+
created_at?: string;
|
|
1361
|
+
id?: string;
|
|
1362
|
+
is_default?: boolean;
|
|
1363
|
+
layer_length_cm: number;
|
|
1364
|
+
layer_width_cm: number;
|
|
1365
|
+
layers_per_cart?: number;
|
|
1366
|
+
name: string;
|
|
1367
|
+
updated_at?: string;
|
|
1368
|
+
};
|
|
1369
|
+
Update: {
|
|
1370
|
+
created_at?: string;
|
|
1371
|
+
id?: string;
|
|
1372
|
+
is_default?: boolean;
|
|
1373
|
+
layer_length_cm?: number;
|
|
1374
|
+
layer_width_cm?: number;
|
|
1375
|
+
layers_per_cart?: number;
|
|
1376
|
+
name?: string;
|
|
1377
|
+
updated_at?: string;
|
|
1378
|
+
};
|
|
1379
|
+
Relationships: [];
|
|
1380
|
+
};
|
|
1132
1381
|
catalog_articles_cache: {
|
|
1133
1382
|
Row: {
|
|
1134
1383
|
created_at: string;
|
|
@@ -1216,6 +1465,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1216
1465
|
};
|
|
1217
1466
|
Relationships: [];
|
|
1218
1467
|
};
|
|
1468
|
+
crate_types: {
|
|
1469
|
+
Row: {
|
|
1470
|
+
created_at: string;
|
|
1471
|
+
id: string;
|
|
1472
|
+
length_cm: number;
|
|
1473
|
+
name: string;
|
|
1474
|
+
plants_per_crate: number;
|
|
1475
|
+
updated_at: string;
|
|
1476
|
+
width_cm: number;
|
|
1477
|
+
};
|
|
1478
|
+
Insert: {
|
|
1479
|
+
created_at?: string;
|
|
1480
|
+
id?: string;
|
|
1481
|
+
length_cm: number;
|
|
1482
|
+
name: string;
|
|
1483
|
+
plants_per_crate?: number;
|
|
1484
|
+
updated_at?: string;
|
|
1485
|
+
width_cm: number;
|
|
1486
|
+
};
|
|
1487
|
+
Update: {
|
|
1488
|
+
created_at?: string;
|
|
1489
|
+
id?: string;
|
|
1490
|
+
length_cm?: number;
|
|
1491
|
+
name?: string;
|
|
1492
|
+
plants_per_crate?: number;
|
|
1493
|
+
updated_at?: string;
|
|
1494
|
+
width_cm?: number;
|
|
1495
|
+
};
|
|
1496
|
+
Relationships: [];
|
|
1497
|
+
};
|
|
1219
1498
|
customer_audit_log: {
|
|
1220
1499
|
Row: {
|
|
1221
1500
|
action: string;
|
|
@@ -5691,69 +5970,351 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5691
5970
|
vat_amount?: number | null;
|
|
5692
5971
|
};
|
|
5693
5972
|
Update: {
|
|
5694
|
-
booking_id?: string | null;
|
|
5695
|
-
company_name?: string | null;
|
|
5973
|
+
booking_id?: string | null;
|
|
5974
|
+
company_name?: string | null;
|
|
5975
|
+
created_at?: string;
|
|
5976
|
+
customer_email?: string | null;
|
|
5977
|
+
description?: string | null;
|
|
5978
|
+
exact_article_id?: string | null;
|
|
5979
|
+
id?: string;
|
|
5980
|
+
invoice_run_id?: string | null;
|
|
5981
|
+
quantity?: number | null;
|
|
5982
|
+
total_excl_vat?: number | null;
|
|
5983
|
+
total_incl_vat?: number | null;
|
|
5984
|
+
unit_price?: number | null;
|
|
5985
|
+
vat_amount?: number | null;
|
|
5986
|
+
};
|
|
5987
|
+
Relationships: [{
|
|
5988
|
+
foreignKeyName: "invoice_run_items_booking_id_fkey";
|
|
5989
|
+
columns: ["booking_id"];
|
|
5990
|
+
isOneToOne: false;
|
|
5991
|
+
referencedRelation: "bookings";
|
|
5992
|
+
referencedColumns: ["id"];
|
|
5993
|
+
}, {
|
|
5994
|
+
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
5995
|
+
columns: ["invoice_run_id"];
|
|
5996
|
+
isOneToOne: false;
|
|
5997
|
+
referencedRelation: "invoice_runs";
|
|
5998
|
+
referencedColumns: ["id"];
|
|
5999
|
+
}];
|
|
6000
|
+
};
|
|
6001
|
+
invoice_runs: {
|
|
6002
|
+
Row: {
|
|
6003
|
+
created_at: string;
|
|
6004
|
+
created_by: string | null;
|
|
6005
|
+
id: string;
|
|
6006
|
+
period_end: string;
|
|
6007
|
+
period_start: string;
|
|
6008
|
+
status: string;
|
|
6009
|
+
total_excl_vat: number | null;
|
|
6010
|
+
total_incl_vat: number | null;
|
|
6011
|
+
vat_amount: number | null;
|
|
6012
|
+
};
|
|
6013
|
+
Insert: {
|
|
6014
|
+
created_at?: string;
|
|
6015
|
+
created_by?: string | null;
|
|
6016
|
+
id?: string;
|
|
6017
|
+
period_end: string;
|
|
6018
|
+
period_start: string;
|
|
6019
|
+
status?: string;
|
|
6020
|
+
total_excl_vat?: number | null;
|
|
6021
|
+
total_incl_vat?: number | null;
|
|
6022
|
+
vat_amount?: number | null;
|
|
6023
|
+
};
|
|
6024
|
+
Update: {
|
|
6025
|
+
created_at?: string;
|
|
6026
|
+
created_by?: string | null;
|
|
6027
|
+
id?: string;
|
|
6028
|
+
period_end?: string;
|
|
6029
|
+
period_start?: string;
|
|
6030
|
+
status?: string;
|
|
6031
|
+
total_excl_vat?: number | null;
|
|
6032
|
+
total_incl_vat?: number | null;
|
|
6033
|
+
vat_amount?: number | null;
|
|
6034
|
+
};
|
|
6035
|
+
Relationships: [];
|
|
6036
|
+
};
|
|
6037
|
+
itk_contact_persons: {
|
|
6038
|
+
Row: {
|
|
6039
|
+
created_at: string;
|
|
6040
|
+
customer_id: string;
|
|
6041
|
+
email: string | null;
|
|
6042
|
+
id: string;
|
|
6043
|
+
name: string;
|
|
6044
|
+
phone: string | null;
|
|
6045
|
+
role: string | null;
|
|
6046
|
+
updated_at: string;
|
|
6047
|
+
};
|
|
6048
|
+
Insert: {
|
|
6049
|
+
created_at?: string;
|
|
6050
|
+
customer_id: string;
|
|
6051
|
+
email?: string | null;
|
|
6052
|
+
id?: string;
|
|
6053
|
+
name: string;
|
|
6054
|
+
phone?: string | null;
|
|
6055
|
+
role?: string | null;
|
|
6056
|
+
updated_at?: string;
|
|
6057
|
+
};
|
|
6058
|
+
Update: {
|
|
6059
|
+
created_at?: string;
|
|
6060
|
+
customer_id?: string;
|
|
6061
|
+
email?: string | null;
|
|
6062
|
+
id?: string;
|
|
6063
|
+
name?: string;
|
|
6064
|
+
phone?: string | null;
|
|
6065
|
+
role?: string | null;
|
|
6066
|
+
updated_at?: string;
|
|
6067
|
+
};
|
|
6068
|
+
Relationships: [{
|
|
6069
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
6070
|
+
columns: ["customer_id"];
|
|
6071
|
+
isOneToOne: false;
|
|
6072
|
+
referencedRelation: "itk_customers";
|
|
6073
|
+
referencedColumns: ["id"];
|
|
6074
|
+
}];
|
|
6075
|
+
};
|
|
6076
|
+
itk_customer_dynamic_values: {
|
|
6077
|
+
Row: {
|
|
6078
|
+
created_at: string;
|
|
6079
|
+
customer_id: string;
|
|
6080
|
+
field_id: string;
|
|
6081
|
+
id: string;
|
|
6082
|
+
updated_at: string;
|
|
6083
|
+
value: string | null;
|
|
6084
|
+
};
|
|
6085
|
+
Insert: {
|
|
6086
|
+
created_at?: string;
|
|
6087
|
+
customer_id: string;
|
|
6088
|
+
field_id: string;
|
|
6089
|
+
id?: string;
|
|
6090
|
+
updated_at?: string;
|
|
6091
|
+
value?: string | null;
|
|
6092
|
+
};
|
|
6093
|
+
Update: {
|
|
6094
|
+
created_at?: string;
|
|
6095
|
+
customer_id?: string;
|
|
6096
|
+
field_id?: string;
|
|
6097
|
+
id?: string;
|
|
6098
|
+
updated_at?: string;
|
|
6099
|
+
value?: string | null;
|
|
6100
|
+
};
|
|
6101
|
+
Relationships: [{
|
|
6102
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
6103
|
+
columns: ["customer_id"];
|
|
6104
|
+
isOneToOne: false;
|
|
6105
|
+
referencedRelation: "itk_customers";
|
|
6106
|
+
referencedColumns: ["id"];
|
|
6107
|
+
}, {
|
|
6108
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6109
|
+
columns: ["field_id"];
|
|
6110
|
+
isOneToOne: false;
|
|
6111
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6112
|
+
referencedColumns: ["id"];
|
|
6113
|
+
}];
|
|
6114
|
+
};
|
|
6115
|
+
itk_customer_notes: {
|
|
6116
|
+
Row: {
|
|
6117
|
+
body: string;
|
|
6118
|
+
created_at: string;
|
|
6119
|
+
created_by: string | null;
|
|
6120
|
+
customer_id: string;
|
|
6121
|
+
id: string;
|
|
6122
|
+
note_type: string;
|
|
6123
|
+
updated_at: string;
|
|
6124
|
+
};
|
|
6125
|
+
Insert: {
|
|
6126
|
+
body: string;
|
|
6127
|
+
created_at?: string;
|
|
6128
|
+
created_by?: string | null;
|
|
6129
|
+
customer_id: string;
|
|
6130
|
+
id?: string;
|
|
6131
|
+
note_type?: string;
|
|
6132
|
+
updated_at?: string;
|
|
6133
|
+
};
|
|
6134
|
+
Update: {
|
|
6135
|
+
body?: string;
|
|
6136
|
+
created_at?: string;
|
|
6137
|
+
created_by?: string | null;
|
|
6138
|
+
customer_id?: string;
|
|
6139
|
+
id?: string;
|
|
6140
|
+
note_type?: string;
|
|
6141
|
+
updated_at?: string;
|
|
6142
|
+
};
|
|
6143
|
+
Relationships: [{
|
|
6144
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6145
|
+
columns: ["customer_id"];
|
|
6146
|
+
isOneToOne: false;
|
|
6147
|
+
referencedRelation: "itk_customers";
|
|
6148
|
+
referencedColumns: ["id"];
|
|
6149
|
+
}];
|
|
6150
|
+
};
|
|
6151
|
+
itk_customers: {
|
|
6152
|
+
Row: {
|
|
6153
|
+
billing_city: string | null;
|
|
6154
|
+
billing_postcode: string | null;
|
|
6155
|
+
billing_street: string | null;
|
|
6156
|
+
created_at: string;
|
|
6157
|
+
general_email: string | null;
|
|
6158
|
+
general_phone: string | null;
|
|
6159
|
+
id: string;
|
|
6160
|
+
legacy_customer_id: string | null;
|
|
6161
|
+
name: string;
|
|
6162
|
+
segment: Database["public"]["Enums"]["itk_customer_segment"];
|
|
6163
|
+
updated_at: string;
|
|
6164
|
+
};
|
|
6165
|
+
Insert: {
|
|
6166
|
+
billing_city?: string | null;
|
|
6167
|
+
billing_postcode?: string | null;
|
|
6168
|
+
billing_street?: string | null;
|
|
6169
|
+
created_at?: string;
|
|
6170
|
+
general_email?: string | null;
|
|
6171
|
+
general_phone?: string | null;
|
|
6172
|
+
id?: string;
|
|
6173
|
+
legacy_customer_id?: string | null;
|
|
6174
|
+
name: string;
|
|
6175
|
+
segment?: Database["public"]["Enums"]["itk_customer_segment"];
|
|
6176
|
+
updated_at?: string;
|
|
6177
|
+
};
|
|
6178
|
+
Update: {
|
|
6179
|
+
billing_city?: string | null;
|
|
6180
|
+
billing_postcode?: string | null;
|
|
6181
|
+
billing_street?: string | null;
|
|
6182
|
+
created_at?: string;
|
|
6183
|
+
general_email?: string | null;
|
|
6184
|
+
general_phone?: string | null;
|
|
6185
|
+
id?: string;
|
|
6186
|
+
legacy_customer_id?: string | null;
|
|
6187
|
+
name?: string;
|
|
6188
|
+
segment?: Database["public"]["Enums"]["itk_customer_segment"];
|
|
6189
|
+
updated_at?: string;
|
|
6190
|
+
};
|
|
6191
|
+
Relationships: [{
|
|
6192
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6193
|
+
columns: ["legacy_customer_id"];
|
|
6194
|
+
isOneToOne: false;
|
|
6195
|
+
referencedRelation: "customers";
|
|
6196
|
+
referencedColumns: ["id"];
|
|
6197
|
+
}];
|
|
6198
|
+
};
|
|
6199
|
+
itk_dynamic_fields: {
|
|
6200
|
+
Row: {
|
|
6201
|
+
created_at: string;
|
|
6202
|
+
field_name: string;
|
|
6203
|
+
field_type: Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6204
|
+
id: string;
|
|
6205
|
+
options: import("./types").Json;
|
|
6206
|
+
sort_order: number;
|
|
6207
|
+
updated_at: string;
|
|
6208
|
+
};
|
|
6209
|
+
Insert: {
|
|
6210
|
+
created_at?: string;
|
|
6211
|
+
field_name: string;
|
|
6212
|
+
field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6213
|
+
id?: string;
|
|
6214
|
+
options?: import("./types").Json;
|
|
6215
|
+
sort_order?: number;
|
|
6216
|
+
updated_at?: string;
|
|
6217
|
+
};
|
|
6218
|
+
Update: {
|
|
6219
|
+
created_at?: string;
|
|
6220
|
+
field_name?: string;
|
|
6221
|
+
field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6222
|
+
id?: string;
|
|
6223
|
+
options?: import("./types").Json;
|
|
6224
|
+
sort_order?: number;
|
|
6225
|
+
updated_at?: string;
|
|
6226
|
+
};
|
|
6227
|
+
Relationships: [];
|
|
6228
|
+
};
|
|
6229
|
+
itk_work_locations: {
|
|
6230
|
+
Row: {
|
|
6231
|
+
city: string | null;
|
|
6232
|
+
created_at: string;
|
|
6233
|
+
customer_id: string;
|
|
6234
|
+
id: string;
|
|
6235
|
+
instructions: string | null;
|
|
6236
|
+
label: string;
|
|
6237
|
+
latitude: number | null;
|
|
6238
|
+
longitude: number | null;
|
|
6239
|
+
postcode: string | null;
|
|
6240
|
+
street: string | null;
|
|
6241
|
+
updated_at: string;
|
|
6242
|
+
};
|
|
6243
|
+
Insert: {
|
|
6244
|
+
city?: string | null;
|
|
6245
|
+
created_at?: string;
|
|
6246
|
+
customer_id: string;
|
|
6247
|
+
id?: string;
|
|
6248
|
+
instructions?: string | null;
|
|
6249
|
+
label: string;
|
|
6250
|
+
latitude?: number | null;
|
|
6251
|
+
longitude?: number | null;
|
|
6252
|
+
postcode?: string | null;
|
|
6253
|
+
street?: string | null;
|
|
6254
|
+
updated_at?: string;
|
|
6255
|
+
};
|
|
6256
|
+
Update: {
|
|
6257
|
+
city?: string | null;
|
|
5696
6258
|
created_at?: string;
|
|
5697
|
-
|
|
5698
|
-
description?: string | null;
|
|
5699
|
-
exact_article_id?: string | null;
|
|
6259
|
+
customer_id?: string;
|
|
5700
6260
|
id?: string;
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
6261
|
+
instructions?: string | null;
|
|
6262
|
+
label?: string;
|
|
6263
|
+
latitude?: number | null;
|
|
6264
|
+
longitude?: number | null;
|
|
6265
|
+
postcode?: string | null;
|
|
6266
|
+
street?: string | null;
|
|
6267
|
+
updated_at?: string;
|
|
5707
6268
|
};
|
|
5708
6269
|
Relationships: [{
|
|
5709
|
-
foreignKeyName: "
|
|
5710
|
-
columns: ["
|
|
5711
|
-
isOneToOne: false;
|
|
5712
|
-
referencedRelation: "bookings";
|
|
5713
|
-
referencedColumns: ["id"];
|
|
5714
|
-
}, {
|
|
5715
|
-
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
5716
|
-
columns: ["invoice_run_id"];
|
|
6270
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6271
|
+
columns: ["customer_id"];
|
|
5717
6272
|
isOneToOne: false;
|
|
5718
|
-
referencedRelation: "
|
|
6273
|
+
referencedRelation: "itk_customers";
|
|
5719
6274
|
referencedColumns: ["id"];
|
|
5720
6275
|
}];
|
|
5721
6276
|
};
|
|
5722
|
-
|
|
6277
|
+
leave_requests: {
|
|
5723
6278
|
Row: {
|
|
5724
6279
|
created_at: string;
|
|
5725
|
-
|
|
6280
|
+
end_date: string;
|
|
5726
6281
|
id: string;
|
|
5727
|
-
|
|
5728
|
-
|
|
6282
|
+
reason: string | null;
|
|
6283
|
+
start_date: string;
|
|
5729
6284
|
status: string;
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
6285
|
+
tenant_id: string;
|
|
6286
|
+
updated_at: string;
|
|
6287
|
+
user_id: string;
|
|
5733
6288
|
};
|
|
5734
6289
|
Insert: {
|
|
5735
6290
|
created_at?: string;
|
|
5736
|
-
|
|
6291
|
+
end_date: string;
|
|
5737
6292
|
id?: string;
|
|
5738
|
-
|
|
5739
|
-
|
|
6293
|
+
reason?: string | null;
|
|
6294
|
+
start_date: string;
|
|
5740
6295
|
status?: string;
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
6296
|
+
tenant_id?: string;
|
|
6297
|
+
updated_at?: string;
|
|
6298
|
+
user_id: string;
|
|
5744
6299
|
};
|
|
5745
6300
|
Update: {
|
|
5746
6301
|
created_at?: string;
|
|
5747
|
-
|
|
6302
|
+
end_date?: string;
|
|
5748
6303
|
id?: string;
|
|
5749
|
-
|
|
5750
|
-
|
|
6304
|
+
reason?: string | null;
|
|
6305
|
+
start_date?: string;
|
|
5751
6306
|
status?: string;
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
6307
|
+
tenant_id?: string;
|
|
6308
|
+
updated_at?: string;
|
|
6309
|
+
user_id?: string;
|
|
5755
6310
|
};
|
|
5756
|
-
Relationships: [
|
|
6311
|
+
Relationships: [{
|
|
6312
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6313
|
+
columns: ["user_id"];
|
|
6314
|
+
isOneToOne: false;
|
|
6315
|
+
referencedRelation: "monteurs";
|
|
6316
|
+
referencedColumns: ["id"];
|
|
6317
|
+
}];
|
|
5757
6318
|
};
|
|
5758
6319
|
local_customer_agreements: {
|
|
5759
6320
|
Row: {
|
|
@@ -6406,6 +6967,33 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6406
6967
|
};
|
|
6407
6968
|
Relationships: [];
|
|
6408
6969
|
};
|
|
6970
|
+
module_permissions: {
|
|
6971
|
+
Row: {
|
|
6972
|
+
created_at: string;
|
|
6973
|
+
id: string;
|
|
6974
|
+
module_id: string;
|
|
6975
|
+
permission: string;
|
|
6976
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
6977
|
+
updated_at: string;
|
|
6978
|
+
};
|
|
6979
|
+
Insert: {
|
|
6980
|
+
created_at?: string;
|
|
6981
|
+
id?: string;
|
|
6982
|
+
module_id: string;
|
|
6983
|
+
permission: string;
|
|
6984
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
6985
|
+
updated_at?: string;
|
|
6986
|
+
};
|
|
6987
|
+
Update: {
|
|
6988
|
+
created_at?: string;
|
|
6989
|
+
id?: string;
|
|
6990
|
+
module_id?: string;
|
|
6991
|
+
permission?: string;
|
|
6992
|
+
role?: Database["public"]["Enums"]["app_role"];
|
|
6993
|
+
updated_at?: string;
|
|
6994
|
+
};
|
|
6995
|
+
Relationships: [];
|
|
6996
|
+
};
|
|
6409
6997
|
monteurs: {
|
|
6410
6998
|
Row: {
|
|
6411
6999
|
avatar_url: string | null;
|
|
@@ -7135,6 +7723,42 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7135
7723
|
};
|
|
7136
7724
|
Relationships: [];
|
|
7137
7725
|
};
|
|
7726
|
+
order_buffers: {
|
|
7727
|
+
Row: {
|
|
7728
|
+
buffer_key: string;
|
|
7729
|
+
created_at: string;
|
|
7730
|
+
customer_id: string | null;
|
|
7731
|
+
grouping_mode: string;
|
|
7732
|
+
id: string;
|
|
7733
|
+
pickup_date: string | null;
|
|
7734
|
+
pickup_location: string | null;
|
|
7735
|
+
plan_locked_at: string | null;
|
|
7736
|
+
updated_at: string;
|
|
7737
|
+
};
|
|
7738
|
+
Insert: {
|
|
7739
|
+
buffer_key: string;
|
|
7740
|
+
created_at?: string;
|
|
7741
|
+
customer_id?: string | null;
|
|
7742
|
+
grouping_mode: string;
|
|
7743
|
+
id?: string;
|
|
7744
|
+
pickup_date?: string | null;
|
|
7745
|
+
pickup_location?: string | null;
|
|
7746
|
+
plan_locked_at?: string | null;
|
|
7747
|
+
updated_at?: string;
|
|
7748
|
+
};
|
|
7749
|
+
Update: {
|
|
7750
|
+
buffer_key?: string;
|
|
7751
|
+
created_at?: string;
|
|
7752
|
+
customer_id?: string | null;
|
|
7753
|
+
grouping_mode?: string;
|
|
7754
|
+
id?: string;
|
|
7755
|
+
pickup_date?: string | null;
|
|
7756
|
+
pickup_location?: string | null;
|
|
7757
|
+
plan_locked_at?: string | null;
|
|
7758
|
+
updated_at?: string;
|
|
7759
|
+
};
|
|
7760
|
+
Relationships: [];
|
|
7761
|
+
};
|
|
7138
7762
|
order_cart_items: {
|
|
7139
7763
|
Row: {
|
|
7140
7764
|
cart_id: string;
|
|
@@ -7201,6 +7825,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7201
7825
|
order_carts: {
|
|
7202
7826
|
Row: {
|
|
7203
7827
|
algorithm_version: number;
|
|
7828
|
+
buffer_id: string | null;
|
|
7204
7829
|
cart_number: number;
|
|
7205
7830
|
created_at: string;
|
|
7206
7831
|
id: string;
|
|
@@ -7208,13 +7833,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7208
7833
|
is_complete: boolean;
|
|
7209
7834
|
notes: string | null;
|
|
7210
7835
|
occupancy_pct: number;
|
|
7211
|
-
order_id: string;
|
|
7836
|
+
order_id: string | null;
|
|
7212
7837
|
source: string;
|
|
7213
7838
|
total_layers_used: number;
|
|
7214
7839
|
updated_at: string;
|
|
7215
7840
|
};
|
|
7216
7841
|
Insert: {
|
|
7217
7842
|
algorithm_version?: number;
|
|
7843
|
+
buffer_id?: string | null;
|
|
7218
7844
|
cart_number: number;
|
|
7219
7845
|
created_at?: string;
|
|
7220
7846
|
id?: string;
|
|
@@ -7222,13 +7848,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7222
7848
|
is_complete?: boolean;
|
|
7223
7849
|
notes?: string | null;
|
|
7224
7850
|
occupancy_pct?: number;
|
|
7225
|
-
order_id
|
|
7851
|
+
order_id?: string | null;
|
|
7226
7852
|
source?: string;
|
|
7227
7853
|
total_layers_used?: number;
|
|
7228
7854
|
updated_at?: string;
|
|
7229
7855
|
};
|
|
7230
7856
|
Update: {
|
|
7231
7857
|
algorithm_version?: number;
|
|
7858
|
+
buffer_id?: string | null;
|
|
7232
7859
|
cart_number?: number;
|
|
7233
7860
|
created_at?: string;
|
|
7234
7861
|
id?: string;
|
|
@@ -7236,12 +7863,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7236
7863
|
is_complete?: boolean;
|
|
7237
7864
|
notes?: string | null;
|
|
7238
7865
|
occupancy_pct?: number;
|
|
7239
|
-
order_id?: string;
|
|
7866
|
+
order_id?: string | null;
|
|
7240
7867
|
source?: string;
|
|
7241
7868
|
total_layers_used?: number;
|
|
7242
7869
|
updated_at?: string;
|
|
7243
7870
|
};
|
|
7244
7871
|
Relationships: [{
|
|
7872
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7873
|
+
columns: ["buffer_id"];
|
|
7874
|
+
isOneToOne: false;
|
|
7875
|
+
referencedRelation: "order_buffers";
|
|
7876
|
+
referencedColumns: ["id"];
|
|
7877
|
+
}, {
|
|
7245
7878
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7246
7879
|
columns: ["order_id"];
|
|
7247
7880
|
isOneToOne: false;
|
|
@@ -7378,15 +8011,117 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7378
8011
|
};
|
|
7379
8012
|
Relationships: [];
|
|
7380
8013
|
};
|
|
8014
|
+
order_shipment_items: {
|
|
8015
|
+
Row: {
|
|
8016
|
+
created_at: string;
|
|
8017
|
+
id: string;
|
|
8018
|
+
order_item_id: string;
|
|
8019
|
+
product_id: string | null;
|
|
8020
|
+
product_name: string;
|
|
8021
|
+
quantity: number;
|
|
8022
|
+
shipment_id: string;
|
|
8023
|
+
updated_at: string;
|
|
8024
|
+
};
|
|
8025
|
+
Insert: {
|
|
8026
|
+
created_at?: string;
|
|
8027
|
+
id?: string;
|
|
8028
|
+
order_item_id: string;
|
|
8029
|
+
product_id?: string | null;
|
|
8030
|
+
product_name: string;
|
|
8031
|
+
quantity: number;
|
|
8032
|
+
shipment_id: string;
|
|
8033
|
+
updated_at?: string;
|
|
8034
|
+
};
|
|
8035
|
+
Update: {
|
|
8036
|
+
created_at?: string;
|
|
8037
|
+
id?: string;
|
|
8038
|
+
order_item_id?: string;
|
|
8039
|
+
product_id?: string | null;
|
|
8040
|
+
product_name?: string;
|
|
8041
|
+
quantity?: number;
|
|
8042
|
+
shipment_id?: string;
|
|
8043
|
+
updated_at?: string;
|
|
8044
|
+
};
|
|
8045
|
+
Relationships: [{
|
|
8046
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
8047
|
+
columns: ["order_item_id"];
|
|
8048
|
+
isOneToOne: false;
|
|
8049
|
+
referencedRelation: "order_items";
|
|
8050
|
+
referencedColumns: ["id"];
|
|
8051
|
+
}, {
|
|
8052
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
8053
|
+
columns: ["shipment_id"];
|
|
8054
|
+
isOneToOne: false;
|
|
8055
|
+
referencedRelation: "order_shipments";
|
|
8056
|
+
referencedColumns: ["id"];
|
|
8057
|
+
}];
|
|
8058
|
+
};
|
|
8059
|
+
order_shipments: {
|
|
8060
|
+
Row: {
|
|
8061
|
+
carrier_id: string | null;
|
|
8062
|
+
created_at: string;
|
|
8063
|
+
delivery_date: string | null;
|
|
8064
|
+
delivery_location_id: string | null;
|
|
8065
|
+
id: string;
|
|
8066
|
+
notes: string | null;
|
|
8067
|
+
order_id: string;
|
|
8068
|
+
shipment_number: number;
|
|
8069
|
+
shipped_at: string | null;
|
|
8070
|
+
status: string;
|
|
8071
|
+
updated_at: string;
|
|
8072
|
+
};
|
|
8073
|
+
Insert: {
|
|
8074
|
+
carrier_id?: string | null;
|
|
8075
|
+
created_at?: string;
|
|
8076
|
+
delivery_date?: string | null;
|
|
8077
|
+
delivery_location_id?: string | null;
|
|
8078
|
+
id?: string;
|
|
8079
|
+
notes?: string | null;
|
|
8080
|
+
order_id: string;
|
|
8081
|
+
shipment_number: number;
|
|
8082
|
+
shipped_at?: string | null;
|
|
8083
|
+
status?: string;
|
|
8084
|
+
updated_at?: string;
|
|
8085
|
+
};
|
|
8086
|
+
Update: {
|
|
8087
|
+
carrier_id?: string | null;
|
|
8088
|
+
created_at?: string;
|
|
8089
|
+
delivery_date?: string | null;
|
|
8090
|
+
delivery_location_id?: string | null;
|
|
8091
|
+
id?: string;
|
|
8092
|
+
notes?: string | null;
|
|
8093
|
+
order_id?: string;
|
|
8094
|
+
shipment_number?: number;
|
|
8095
|
+
shipped_at?: string | null;
|
|
8096
|
+
status?: string;
|
|
8097
|
+
updated_at?: string;
|
|
8098
|
+
};
|
|
8099
|
+
Relationships: [{
|
|
8100
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
8101
|
+
columns: ["carrier_id"];
|
|
8102
|
+
isOneToOne: false;
|
|
8103
|
+
referencedRelation: "carriers";
|
|
8104
|
+
referencedColumns: ["id"];
|
|
8105
|
+
}, {
|
|
8106
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
8107
|
+
columns: ["order_id"];
|
|
8108
|
+
isOneToOne: false;
|
|
8109
|
+
referencedRelation: "orders";
|
|
8110
|
+
referencedColumns: ["id"];
|
|
8111
|
+
}];
|
|
8112
|
+
};
|
|
7381
8113
|
orders: {
|
|
7382
8114
|
Row: {
|
|
8115
|
+
buffer_id: string | null;
|
|
7383
8116
|
created_at: string;
|
|
7384
8117
|
custom_fields: import("./types").Json;
|
|
7385
8118
|
customer_id: string | null;
|
|
7386
8119
|
customer_name: string;
|
|
7387
8120
|
deleted_at: string | null;
|
|
7388
|
-
delivery_date: string;
|
|
8121
|
+
delivery_date: string | null;
|
|
8122
|
+
floriday_sales_order_id: string | null;
|
|
7389
8123
|
id: string;
|
|
8124
|
+
is_reservation: boolean;
|
|
7390
8125
|
notes: string | null;
|
|
7391
8126
|
order_date: string;
|
|
7392
8127
|
order_number: string;
|
|
@@ -7398,13 +8133,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7398
8133
|
updated_at: string;
|
|
7399
8134
|
};
|
|
7400
8135
|
Insert: {
|
|
8136
|
+
buffer_id?: string | null;
|
|
7401
8137
|
created_at?: string;
|
|
7402
8138
|
custom_fields?: import("./types").Json;
|
|
7403
8139
|
customer_id?: string | null;
|
|
7404
8140
|
customer_name?: string;
|
|
7405
8141
|
deleted_at?: string | null;
|
|
7406
|
-
delivery_date
|
|
8142
|
+
delivery_date?: string | null;
|
|
8143
|
+
floriday_sales_order_id?: string | null;
|
|
7407
8144
|
id?: string;
|
|
8145
|
+
is_reservation?: boolean;
|
|
7408
8146
|
notes?: string | null;
|
|
7409
8147
|
order_date?: string;
|
|
7410
8148
|
order_number: string;
|
|
@@ -7416,13 +8154,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7416
8154
|
updated_at?: string;
|
|
7417
8155
|
};
|
|
7418
8156
|
Update: {
|
|
8157
|
+
buffer_id?: string | null;
|
|
7419
8158
|
created_at?: string;
|
|
7420
8159
|
custom_fields?: import("./types").Json;
|
|
7421
8160
|
customer_id?: string | null;
|
|
7422
8161
|
customer_name?: string;
|
|
7423
8162
|
deleted_at?: string | null;
|
|
7424
|
-
delivery_date?: string;
|
|
8163
|
+
delivery_date?: string | null;
|
|
8164
|
+
floriday_sales_order_id?: string | null;
|
|
7425
8165
|
id?: string;
|
|
8166
|
+
is_reservation?: boolean;
|
|
7426
8167
|
notes?: string | null;
|
|
7427
8168
|
order_date?: string;
|
|
7428
8169
|
order_number?: string;
|
|
@@ -7434,6 +8175,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7434
8175
|
updated_at?: string;
|
|
7435
8176
|
};
|
|
7436
8177
|
Relationships: [{
|
|
8178
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8179
|
+
columns: ["buffer_id"];
|
|
8180
|
+
isOneToOne: false;
|
|
8181
|
+
referencedRelation: "order_buffers";
|
|
8182
|
+
referencedColumns: ["id"];
|
|
8183
|
+
}, {
|
|
7437
8184
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7438
8185
|
columns: ["customer_id"];
|
|
7439
8186
|
isOneToOne: false;
|
|
@@ -7697,6 +8444,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7697
8444
|
Row: {
|
|
7698
8445
|
created_at: string;
|
|
7699
8446
|
description: string | null;
|
|
8447
|
+
head_product_id: string | null;
|
|
8448
|
+
head_trade_item_floriday_id: string | null;
|
|
7700
8449
|
id: string;
|
|
7701
8450
|
is_active: boolean;
|
|
7702
8451
|
name: string;
|
|
@@ -7706,6 +8455,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7706
8455
|
Insert: {
|
|
7707
8456
|
created_at?: string;
|
|
7708
8457
|
description?: string | null;
|
|
8458
|
+
head_product_id?: string | null;
|
|
8459
|
+
head_trade_item_floriday_id?: string | null;
|
|
7709
8460
|
id?: string;
|
|
7710
8461
|
is_active?: boolean;
|
|
7711
8462
|
name: string;
|
|
@@ -7715,13 +8466,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7715
8466
|
Update: {
|
|
7716
8467
|
created_at?: string;
|
|
7717
8468
|
description?: string | null;
|
|
8469
|
+
head_product_id?: string | null;
|
|
8470
|
+
head_trade_item_floriday_id?: string | null;
|
|
7718
8471
|
id?: string;
|
|
7719
8472
|
is_active?: boolean;
|
|
7720
8473
|
name?: string;
|
|
7721
8474
|
tenant_id?: string;
|
|
7722
8475
|
updated_at?: string;
|
|
7723
8476
|
};
|
|
7724
|
-
Relationships: [
|
|
8477
|
+
Relationships: [{
|
|
8478
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8479
|
+
columns: ["head_product_id"];
|
|
8480
|
+
isOneToOne: false;
|
|
8481
|
+
referencedRelation: "products";
|
|
8482
|
+
referencedColumns: ["id"];
|
|
8483
|
+
}];
|
|
7725
8484
|
};
|
|
7726
8485
|
products: {
|
|
7727
8486
|
Row: {
|
|
@@ -10272,6 +11031,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10272
11031
|
internal_notes: string | null;
|
|
10273
11032
|
parent_werkbon_id: string | null;
|
|
10274
11033
|
parsed_payload: import("./types").Json | null;
|
|
11034
|
+
planning_status: string;
|
|
10275
11035
|
project_number: string | null;
|
|
10276
11036
|
room_number: string | null;
|
|
10277
11037
|
scheduled_end_time: string | null;
|
|
@@ -10279,6 +11039,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10279
11039
|
sequence_number: number;
|
|
10280
11040
|
source_pdf_path: string | null;
|
|
10281
11041
|
status: string;
|
|
11042
|
+
technician_id: string | null;
|
|
10282
11043
|
technician_notes: string | null;
|
|
10283
11044
|
technician_notes_raw: string | null;
|
|
10284
11045
|
technician_task_description: string | null;
|
|
@@ -10299,6 +11060,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10299
11060
|
internal_notes?: string | null;
|
|
10300
11061
|
parent_werkbon_id?: string | null;
|
|
10301
11062
|
parsed_payload?: import("./types").Json | null;
|
|
11063
|
+
planning_status?: string;
|
|
10302
11064
|
project_number?: string | null;
|
|
10303
11065
|
room_number?: string | null;
|
|
10304
11066
|
scheduled_end_time?: string | null;
|
|
@@ -10306,6 +11068,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10306
11068
|
sequence_number: number;
|
|
10307
11069
|
source_pdf_path?: string | null;
|
|
10308
11070
|
status?: string;
|
|
11071
|
+
technician_id?: string | null;
|
|
10309
11072
|
technician_notes?: string | null;
|
|
10310
11073
|
technician_notes_raw?: string | null;
|
|
10311
11074
|
technician_task_description?: string | null;
|
|
@@ -10326,6 +11089,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10326
11089
|
internal_notes?: string | null;
|
|
10327
11090
|
parent_werkbon_id?: string | null;
|
|
10328
11091
|
parsed_payload?: import("./types").Json | null;
|
|
11092
|
+
planning_status?: string;
|
|
10329
11093
|
project_number?: string | null;
|
|
10330
11094
|
room_number?: string | null;
|
|
10331
11095
|
scheduled_end_time?: string | null;
|
|
@@ -10333,6 +11097,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10333
11097
|
sequence_number?: number;
|
|
10334
11098
|
source_pdf_path?: string | null;
|
|
10335
11099
|
status?: string;
|
|
11100
|
+
technician_id?: string | null;
|
|
10336
11101
|
technician_notes?: string | null;
|
|
10337
11102
|
technician_notes_raw?: string | null;
|
|
10338
11103
|
technician_task_description?: string | null;
|
|
@@ -10341,17 +11106,17 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
10341
11106
|
work_address?: string | null;
|
|
10342
11107
|
};
|
|
10343
11108
|
Relationships: [{
|
|
10344
|
-
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
10345
|
-
columns: ["customer_id"];
|
|
10346
|
-
isOneToOne: false;
|
|
10347
|
-
referencedRelation: "customers";
|
|
10348
|
-
referencedColumns: ["id"];
|
|
10349
|
-
}, {
|
|
10350
11109
|
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
10351
11110
|
columns: ["parent_werkbon_id"];
|
|
10352
11111
|
isOneToOne: false;
|
|
10353
11112
|
referencedRelation: "werkbonnen";
|
|
10354
11113
|
referencedColumns: ["id"];
|
|
11114
|
+
}, {
|
|
11115
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11116
|
+
columns: ["technician_id"];
|
|
11117
|
+
isOneToOne: false;
|
|
11118
|
+
referencedRelation: "monteurs";
|
|
11119
|
+
referencedColumns: ["id"];
|
|
10355
11120
|
}];
|
|
10356
11121
|
};
|
|
10357
11122
|
work_order_monteurs: {
|
|
@@ -11070,6 +11835,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
11070
11835
|
};
|
|
11071
11836
|
Returns: string;
|
|
11072
11837
|
};
|
|
11838
|
+
ai_usage_by_module: {
|
|
11839
|
+
Args: {
|
|
11840
|
+
_from: string;
|
|
11841
|
+
_to: string;
|
|
11842
|
+
};
|
|
11843
|
+
Returns: {
|
|
11844
|
+
calls: number;
|
|
11845
|
+
consumer_module_id: string;
|
|
11846
|
+
cost_usd: number;
|
|
11847
|
+
errors: number;
|
|
11848
|
+
input_tokens: number;
|
|
11849
|
+
output_tokens: number;
|
|
11850
|
+
total_tokens: number;
|
|
11851
|
+
}[];
|
|
11852
|
+
};
|
|
11073
11853
|
apply_stock_consumption: {
|
|
11074
11854
|
Args: {
|
|
11075
11855
|
p_order_id: string;
|
|
@@ -11218,6 +11998,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
11218
11998
|
Args: never;
|
|
11219
11999
|
Returns: string;
|
|
11220
12000
|
};
|
|
12001
|
+
custom_access_token_hook: {
|
|
12002
|
+
Args: {
|
|
12003
|
+
event: import("./types").Json;
|
|
12004
|
+
};
|
|
12005
|
+
Returns: import("./types").Json;
|
|
12006
|
+
};
|
|
11221
12007
|
dashboard_alert_counts: {
|
|
11222
12008
|
Args: never;
|
|
11223
12009
|
Returns: import("./types").Json;
|
|
@@ -11553,6 +12339,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
11553
12339
|
};
|
|
11554
12340
|
Returns: string;
|
|
11555
12341
|
};
|
|
12342
|
+
has_module_permission: {
|
|
12343
|
+
Args: {
|
|
12344
|
+
_min: string;
|
|
12345
|
+
_module_id: string;
|
|
12346
|
+
_user_id: string;
|
|
12347
|
+
};
|
|
12348
|
+
Returns: boolean;
|
|
12349
|
+
};
|
|
11556
12350
|
has_role: {
|
|
11557
12351
|
Args: {
|
|
11558
12352
|
_role: Database["public"]["Enums"]["app_role"];
|
|
@@ -11578,6 +12372,20 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
11578
12372
|
};
|
|
11579
12373
|
Returns: boolean;
|
|
11580
12374
|
};
|
|
12375
|
+
jwt_has_role: {
|
|
12376
|
+
Args: {
|
|
12377
|
+
_role: Database["public"]["Enums"]["app_role"];
|
|
12378
|
+
};
|
|
12379
|
+
Returns: boolean;
|
|
12380
|
+
};
|
|
12381
|
+
list_monteurs: {
|
|
12382
|
+
Args: never;
|
|
12383
|
+
Returns: {
|
|
12384
|
+
display_name: string;
|
|
12385
|
+
email: string;
|
|
12386
|
+
user_id: string;
|
|
12387
|
+
}[];
|
|
12388
|
+
};
|
|
11581
12389
|
local_effective_price: {
|
|
11582
12390
|
Args: {
|
|
11583
12391
|
_customer_id: string;
|
|
@@ -11594,6 +12402,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
11594
12402
|
source_id: string;
|
|
11595
12403
|
}[];
|
|
11596
12404
|
};
|
|
12405
|
+
log_ai_call: {
|
|
12406
|
+
Args: {
|
|
12407
|
+
_consumer_module_id: string;
|
|
12408
|
+
_cost_usd: number;
|
|
12409
|
+
_duration_ms: number;
|
|
12410
|
+
_error_code: string;
|
|
12411
|
+
_error_message: string;
|
|
12412
|
+
_input_tokens: number;
|
|
12413
|
+
_model_slug: string;
|
|
12414
|
+
_output_tokens: number;
|
|
12415
|
+
_provider_slug: string;
|
|
12416
|
+
_status: string;
|
|
12417
|
+
_total_tokens: number;
|
|
12418
|
+
};
|
|
12419
|
+
Returns: string;
|
|
12420
|
+
};
|
|
11597
12421
|
mark_offer_clicked: {
|
|
11598
12422
|
Args: {
|
|
11599
12423
|
p_code: string;
|
|
@@ -11606,6 +12430,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
11606
12430
|
};
|
|
11607
12431
|
Returns: undefined;
|
|
11608
12432
|
};
|
|
12433
|
+
mark_shipment_shipped: {
|
|
12434
|
+
Args: {
|
|
12435
|
+
p_shipment_id: string;
|
|
12436
|
+
};
|
|
12437
|
+
Returns: undefined;
|
|
12438
|
+
};
|
|
11609
12439
|
next_order_number: {
|
|
11610
12440
|
Args: {
|
|
11611
12441
|
p_prefix: string;
|
|
@@ -12082,9 +12912,11 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
12082
12912
|
};
|
|
12083
12913
|
};
|
|
12084
12914
|
Enums: {
|
|
12085
|
-
app_role: "admin" | "
|
|
12915
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
12086
12916
|
exact_env: "staging" | "live";
|
|
12087
12917
|
exact_push_status: "pending" | "sent" | "error";
|
|
12918
|
+
itk_customer_segment: "Business" | "Private";
|
|
12919
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
12088
12920
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12089
12921
|
};
|
|
12090
12922
|
CompositeTypes: { [_ in never]: never; };
|