@flowselections/floriday-klanten-module 1.0.13 → 1.0.15
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/CustomerAvatar.js +1 -1
- package/dist-lib/components/klanten/ImportKlanten.d.ts +2 -0
- package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -0
- package/dist-lib/components/klanten/ImportKlanten.js +438 -0
- package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantenOverzicht.js +2 -2
- package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -1
- package/dist-lib/components/klanten/NetwerkPagina.js +38 -9
- package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
- package/dist-lib/components/klanten/NieuweKlant.js +10 -1
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +1 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +372 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +372 -1
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +372 -1
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +376 -1
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/accounting.functions.d.ts +1116 -3
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +372 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-schemas.d.ts +147 -0
- package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
- package/dist-lib/lib/customer-schemas.js +106 -7
- package/dist-lib/lib/customers.functions.d.ts +14184 -15
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.js +130 -23
- package/dist-lib/lib/delivery-locations.functions.d.ts +1488 -4
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +1488 -4
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-discounts.functions.d.ts +744 -2
- package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/local-discounts.functions.d.ts +2604 -7
- package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts +372 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
- package/package.json +10 -3
|
@@ -20,6 +20,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
20
20
|
Tables: {
|
|
21
21
|
afhandeling_settings: {
|
|
22
22
|
Row: {
|
|
23
|
+
auto_print_delivery_note: boolean;
|
|
24
|
+
auto_process_paused: boolean;
|
|
23
25
|
created_at: string;
|
|
24
26
|
extra_pick_days_with_stickers: number;
|
|
25
27
|
id: string;
|
|
@@ -35,6 +37,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
35
37
|
user_id: string;
|
|
36
38
|
};
|
|
37
39
|
Insert: {
|
|
40
|
+
auto_print_delivery_note?: boolean;
|
|
41
|
+
auto_process_paused?: boolean;
|
|
38
42
|
created_at?: string;
|
|
39
43
|
extra_pick_days_with_stickers?: number;
|
|
40
44
|
id?: string;
|
|
@@ -50,6 +54,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
50
54
|
user_id: string;
|
|
51
55
|
};
|
|
52
56
|
Update: {
|
|
57
|
+
auto_print_delivery_note?: boolean;
|
|
58
|
+
auto_process_paused?: boolean;
|
|
53
59
|
created_at?: string;
|
|
54
60
|
extra_pick_days_with_stickers?: number;
|
|
55
61
|
id?: string;
|
|
@@ -282,6 +288,9 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
282
288
|
created_at: string;
|
|
283
289
|
extra_id: string;
|
|
284
290
|
id: string;
|
|
291
|
+
original_unit_price: number | null;
|
|
292
|
+
override_reason: string | null;
|
|
293
|
+
override_unit_price: number | null;
|
|
285
294
|
quantity: number;
|
|
286
295
|
total_price: number;
|
|
287
296
|
unit_price: number;
|
|
@@ -291,6 +300,9 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
291
300
|
created_at?: string;
|
|
292
301
|
extra_id: string;
|
|
293
302
|
id?: string;
|
|
303
|
+
original_unit_price?: number | null;
|
|
304
|
+
override_reason?: string | null;
|
|
305
|
+
override_unit_price?: number | null;
|
|
294
306
|
quantity?: number;
|
|
295
307
|
total_price?: number;
|
|
296
308
|
unit_price?: number;
|
|
@@ -300,6 +312,9 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
300
312
|
created_at?: string;
|
|
301
313
|
extra_id?: string;
|
|
302
314
|
id?: string;
|
|
315
|
+
original_unit_price?: number | null;
|
|
316
|
+
override_reason?: string | null;
|
|
317
|
+
override_unit_price?: number | null;
|
|
303
318
|
quantity?: number;
|
|
304
319
|
total_price?: number;
|
|
305
320
|
unit_price?: number;
|
|
@@ -320,11 +335,15 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
320
335
|
};
|
|
321
336
|
bookings: {
|
|
322
337
|
Row: {
|
|
338
|
+
archive_reason: string | null;
|
|
339
|
+
archived_at: string | null;
|
|
340
|
+
archived_by: string | null;
|
|
323
341
|
company_name: string | null;
|
|
324
342
|
conflict_checked_at: string | null;
|
|
325
343
|
conflict_reason: string | null;
|
|
326
344
|
created_at: string;
|
|
327
345
|
created_by_role: string | null;
|
|
346
|
+
customer_address: string | null;
|
|
328
347
|
customer_email: string | null;
|
|
329
348
|
customer_name: string | null;
|
|
330
349
|
end_time: string;
|
|
@@ -336,7 +355,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
336
355
|
invoiced_at: string | null;
|
|
337
356
|
notes: string | null;
|
|
338
357
|
number_of_people: number;
|
|
358
|
+
overridden_at: string | null;
|
|
359
|
+
overridden_by: string | null;
|
|
360
|
+
override_reason: string | null;
|
|
361
|
+
price_override: boolean;
|
|
339
362
|
room_id: string;
|
|
363
|
+
room_price_override: number | null;
|
|
340
364
|
start_time: string;
|
|
341
365
|
status: string;
|
|
342
366
|
total_excl_vat: number | null;
|
|
@@ -345,11 +369,15 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
345
369
|
vat_amount: number | null;
|
|
346
370
|
};
|
|
347
371
|
Insert: {
|
|
372
|
+
archive_reason?: string | null;
|
|
373
|
+
archived_at?: string | null;
|
|
374
|
+
archived_by?: string | null;
|
|
348
375
|
company_name?: string | null;
|
|
349
376
|
conflict_checked_at?: string | null;
|
|
350
377
|
conflict_reason?: string | null;
|
|
351
378
|
created_at?: string;
|
|
352
379
|
created_by_role?: string | null;
|
|
380
|
+
customer_address?: string | null;
|
|
353
381
|
customer_email?: string | null;
|
|
354
382
|
customer_name?: string | null;
|
|
355
383
|
end_time: string;
|
|
@@ -361,7 +389,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
361
389
|
invoiced_at?: string | null;
|
|
362
390
|
notes?: string | null;
|
|
363
391
|
number_of_people?: number;
|
|
392
|
+
overridden_at?: string | null;
|
|
393
|
+
overridden_by?: string | null;
|
|
394
|
+
override_reason?: string | null;
|
|
395
|
+
price_override?: boolean;
|
|
364
396
|
room_id: string;
|
|
397
|
+
room_price_override?: number | null;
|
|
365
398
|
start_time: string;
|
|
366
399
|
status?: string;
|
|
367
400
|
total_excl_vat?: number | null;
|
|
@@ -370,11 +403,15 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
370
403
|
vat_amount?: number | null;
|
|
371
404
|
};
|
|
372
405
|
Update: {
|
|
406
|
+
archive_reason?: string | null;
|
|
407
|
+
archived_at?: string | null;
|
|
408
|
+
archived_by?: string | null;
|
|
373
409
|
company_name?: string | null;
|
|
374
410
|
conflict_checked_at?: string | null;
|
|
375
411
|
conflict_reason?: string | null;
|
|
376
412
|
created_at?: string;
|
|
377
413
|
created_by_role?: string | null;
|
|
414
|
+
customer_address?: string | null;
|
|
378
415
|
customer_email?: string | null;
|
|
379
416
|
customer_name?: string | null;
|
|
380
417
|
end_time?: string;
|
|
@@ -386,7 +423,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
386
423
|
invoiced_at?: string | null;
|
|
387
424
|
notes?: string | null;
|
|
388
425
|
number_of_people?: number;
|
|
426
|
+
overridden_at?: string | null;
|
|
427
|
+
overridden_by?: string | null;
|
|
428
|
+
override_reason?: string | null;
|
|
429
|
+
price_override?: boolean;
|
|
389
430
|
room_id?: string;
|
|
431
|
+
room_price_override?: number | null;
|
|
390
432
|
start_time?: string;
|
|
391
433
|
status?: string;
|
|
392
434
|
total_excl_vat?: number | null;
|
|
@@ -1215,8 +1257,27 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1215
1257
|
customers: {
|
|
1216
1258
|
Row: {
|
|
1217
1259
|
address: string | null;
|
|
1260
|
+
address_line1: string | null;
|
|
1261
|
+
address_line2: string | null;
|
|
1262
|
+
address_type: string | null;
|
|
1263
|
+
attention_to: string | null;
|
|
1264
|
+
bank_account_holder: string | null;
|
|
1265
|
+
bank_account_number: string | null;
|
|
1266
|
+
bank_address_line1: string | null;
|
|
1267
|
+
bank_address_line2: string | null;
|
|
1268
|
+
bank_bic: string | null;
|
|
1269
|
+
bank_city: string | null;
|
|
1270
|
+
bank_country: string | null;
|
|
1271
|
+
bank_house_number: string | null;
|
|
1272
|
+
bank_iban: string | null;
|
|
1273
|
+
bank_name: string | null;
|
|
1274
|
+
bank_national_code: string | null;
|
|
1275
|
+
bank_postal_code: string | null;
|
|
1276
|
+
bank_state: string | null;
|
|
1277
|
+
billing_email: string | null;
|
|
1218
1278
|
bio: string | null;
|
|
1219
1279
|
city: string | null;
|
|
1280
|
+
coc_number: string | null;
|
|
1220
1281
|
commercial_name: string | null;
|
|
1221
1282
|
company_name: string;
|
|
1222
1283
|
connection_status: string;
|
|
@@ -1225,21 +1286,28 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1225
1286
|
created_at: string;
|
|
1226
1287
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
1227
1288
|
customer_class: string | null;
|
|
1289
|
+
customer_number: string | null;
|
|
1290
|
+
discount_days: number | null;
|
|
1291
|
+
discount_percentage: number | null;
|
|
1228
1292
|
email: string | null;
|
|
1229
1293
|
external_id: string | null;
|
|
1294
|
+
fax: string | null;
|
|
1230
1295
|
floriday_connection_id: string | null;
|
|
1231
1296
|
floriday_organization_id: string | null;
|
|
1232
1297
|
floriday_raw: import("../integrations/supabase/types").Json | null;
|
|
1233
1298
|
gln: string | null;
|
|
1234
1299
|
house_number: string | null;
|
|
1300
|
+
icp_country_code: string | null;
|
|
1235
1301
|
id: string;
|
|
1236
1302
|
is_active: boolean;
|
|
1303
|
+
language: string | null;
|
|
1237
1304
|
last_synced_at: string | null;
|
|
1238
1305
|
logo_url: string | null;
|
|
1239
1306
|
markets: string[];
|
|
1240
1307
|
notes: string | null;
|
|
1241
1308
|
organization_type: string | null;
|
|
1242
1309
|
payment_methods: string[];
|
|
1310
|
+
payment_term_days: number | null;
|
|
1243
1311
|
phone: string | null;
|
|
1244
1312
|
postal_code: string | null;
|
|
1245
1313
|
product_groups: string[];
|
|
@@ -1250,13 +1318,33 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1250
1318
|
sync_status: string;
|
|
1251
1319
|
trade_forms: string[];
|
|
1252
1320
|
updated_at: string;
|
|
1321
|
+
vat_display: string | null;
|
|
1253
1322
|
vat_number: string | null;
|
|
1254
1323
|
website: string | null;
|
|
1255
1324
|
};
|
|
1256
1325
|
Insert: {
|
|
1257
1326
|
address?: string | null;
|
|
1327
|
+
address_line1?: string | null;
|
|
1328
|
+
address_line2?: string | null;
|
|
1329
|
+
address_type?: string | null;
|
|
1330
|
+
attention_to?: string | null;
|
|
1331
|
+
bank_account_holder?: string | null;
|
|
1332
|
+
bank_account_number?: string | null;
|
|
1333
|
+
bank_address_line1?: string | null;
|
|
1334
|
+
bank_address_line2?: string | null;
|
|
1335
|
+
bank_bic?: string | null;
|
|
1336
|
+
bank_city?: string | null;
|
|
1337
|
+
bank_country?: string | null;
|
|
1338
|
+
bank_house_number?: string | null;
|
|
1339
|
+
bank_iban?: string | null;
|
|
1340
|
+
bank_name?: string | null;
|
|
1341
|
+
bank_national_code?: string | null;
|
|
1342
|
+
bank_postal_code?: string | null;
|
|
1343
|
+
bank_state?: string | null;
|
|
1344
|
+
billing_email?: string | null;
|
|
1258
1345
|
bio?: string | null;
|
|
1259
1346
|
city?: string | null;
|
|
1347
|
+
coc_number?: string | null;
|
|
1260
1348
|
commercial_name?: string | null;
|
|
1261
1349
|
company_name: string;
|
|
1262
1350
|
connection_status?: string;
|
|
@@ -1265,21 +1353,28 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1265
1353
|
created_at?: string;
|
|
1266
1354
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
1267
1355
|
customer_class?: string | null;
|
|
1356
|
+
customer_number?: string | null;
|
|
1357
|
+
discount_days?: number | null;
|
|
1358
|
+
discount_percentage?: number | null;
|
|
1268
1359
|
email?: string | null;
|
|
1269
1360
|
external_id?: string | null;
|
|
1361
|
+
fax?: string | null;
|
|
1270
1362
|
floriday_connection_id?: string | null;
|
|
1271
1363
|
floriday_organization_id?: string | null;
|
|
1272
1364
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
1273
1365
|
gln?: string | null;
|
|
1274
1366
|
house_number?: string | null;
|
|
1367
|
+
icp_country_code?: string | null;
|
|
1275
1368
|
id?: string;
|
|
1276
1369
|
is_active?: boolean;
|
|
1370
|
+
language?: string | null;
|
|
1277
1371
|
last_synced_at?: string | null;
|
|
1278
1372
|
logo_url?: string | null;
|
|
1279
1373
|
markets?: string[];
|
|
1280
1374
|
notes?: string | null;
|
|
1281
1375
|
organization_type?: string | null;
|
|
1282
1376
|
payment_methods?: string[];
|
|
1377
|
+
payment_term_days?: number | null;
|
|
1283
1378
|
phone?: string | null;
|
|
1284
1379
|
postal_code?: string | null;
|
|
1285
1380
|
product_groups?: string[];
|
|
@@ -1290,13 +1385,33 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1290
1385
|
sync_status?: string;
|
|
1291
1386
|
trade_forms?: string[];
|
|
1292
1387
|
updated_at?: string;
|
|
1388
|
+
vat_display?: string | null;
|
|
1293
1389
|
vat_number?: string | null;
|
|
1294
1390
|
website?: string | null;
|
|
1295
1391
|
};
|
|
1296
1392
|
Update: {
|
|
1297
1393
|
address?: string | null;
|
|
1394
|
+
address_line1?: string | null;
|
|
1395
|
+
address_line2?: string | null;
|
|
1396
|
+
address_type?: string | null;
|
|
1397
|
+
attention_to?: string | null;
|
|
1398
|
+
bank_account_holder?: string | null;
|
|
1399
|
+
bank_account_number?: string | null;
|
|
1400
|
+
bank_address_line1?: string | null;
|
|
1401
|
+
bank_address_line2?: string | null;
|
|
1402
|
+
bank_bic?: string | null;
|
|
1403
|
+
bank_city?: string | null;
|
|
1404
|
+
bank_country?: string | null;
|
|
1405
|
+
bank_house_number?: string | null;
|
|
1406
|
+
bank_iban?: string | null;
|
|
1407
|
+
bank_name?: string | null;
|
|
1408
|
+
bank_national_code?: string | null;
|
|
1409
|
+
bank_postal_code?: string | null;
|
|
1410
|
+
bank_state?: string | null;
|
|
1411
|
+
billing_email?: string | null;
|
|
1298
1412
|
bio?: string | null;
|
|
1299
1413
|
city?: string | null;
|
|
1414
|
+
coc_number?: string | null;
|
|
1300
1415
|
commercial_name?: string | null;
|
|
1301
1416
|
company_name?: string;
|
|
1302
1417
|
connection_status?: string;
|
|
@@ -1305,21 +1420,28 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1305
1420
|
created_at?: string;
|
|
1306
1421
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
1307
1422
|
customer_class?: string | null;
|
|
1423
|
+
customer_number?: string | null;
|
|
1424
|
+
discount_days?: number | null;
|
|
1425
|
+
discount_percentage?: number | null;
|
|
1308
1426
|
email?: string | null;
|
|
1309
1427
|
external_id?: string | null;
|
|
1428
|
+
fax?: string | null;
|
|
1310
1429
|
floriday_connection_id?: string | null;
|
|
1311
1430
|
floriday_organization_id?: string | null;
|
|
1312
1431
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
1313
1432
|
gln?: string | null;
|
|
1314
1433
|
house_number?: string | null;
|
|
1434
|
+
icp_country_code?: string | null;
|
|
1315
1435
|
id?: string;
|
|
1316
1436
|
is_active?: boolean;
|
|
1437
|
+
language?: string | null;
|
|
1317
1438
|
last_synced_at?: string | null;
|
|
1318
1439
|
logo_url?: string | null;
|
|
1319
1440
|
markets?: string[];
|
|
1320
1441
|
notes?: string | null;
|
|
1321
1442
|
organization_type?: string | null;
|
|
1322
1443
|
payment_methods?: string[];
|
|
1444
|
+
payment_term_days?: number | null;
|
|
1323
1445
|
phone?: string | null;
|
|
1324
1446
|
postal_code?: string | null;
|
|
1325
1447
|
product_groups?: string[];
|
|
@@ -1330,6 +1452,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
1330
1452
|
sync_status?: string;
|
|
1331
1453
|
trade_forms?: string[];
|
|
1332
1454
|
updated_at?: string;
|
|
1455
|
+
vat_display?: string | null;
|
|
1333
1456
|
vat_number?: string | null;
|
|
1334
1457
|
website?: string | null;
|
|
1335
1458
|
};
|
|
@@ -3276,6 +3399,54 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
3276
3399
|
referencedColumns: ["id"];
|
|
3277
3400
|
}];
|
|
3278
3401
|
};
|
|
3402
|
+
floriday_auto_fulfillment_log: {
|
|
3403
|
+
Row: {
|
|
3404
|
+
attempts: number;
|
|
3405
|
+
connection_id: string;
|
|
3406
|
+
created_at: string;
|
|
3407
|
+
error: string | null;
|
|
3408
|
+
fulfillment_order_id: string | null;
|
|
3409
|
+
id: string;
|
|
3410
|
+
last_attempt_at: string | null;
|
|
3411
|
+
reason: string | null;
|
|
3412
|
+
sales_order_id: string;
|
|
3413
|
+
status: string;
|
|
3414
|
+
updated_at: string;
|
|
3415
|
+
};
|
|
3416
|
+
Insert: {
|
|
3417
|
+
attempts?: number;
|
|
3418
|
+
connection_id: string;
|
|
3419
|
+
created_at?: string;
|
|
3420
|
+
error?: string | null;
|
|
3421
|
+
fulfillment_order_id?: string | null;
|
|
3422
|
+
id?: string;
|
|
3423
|
+
last_attempt_at?: string | null;
|
|
3424
|
+
reason?: string | null;
|
|
3425
|
+
sales_order_id: string;
|
|
3426
|
+
status?: string;
|
|
3427
|
+
updated_at?: string;
|
|
3428
|
+
};
|
|
3429
|
+
Update: {
|
|
3430
|
+
attempts?: number;
|
|
3431
|
+
connection_id?: string;
|
|
3432
|
+
created_at?: string;
|
|
3433
|
+
error?: string | null;
|
|
3434
|
+
fulfillment_order_id?: string | null;
|
|
3435
|
+
id?: string;
|
|
3436
|
+
last_attempt_at?: string | null;
|
|
3437
|
+
reason?: string | null;
|
|
3438
|
+
sales_order_id?: string;
|
|
3439
|
+
status?: string;
|
|
3440
|
+
updated_at?: string;
|
|
3441
|
+
};
|
|
3442
|
+
Relationships: [{
|
|
3443
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3444
|
+
columns: ["connection_id"];
|
|
3445
|
+
isOneToOne: false;
|
|
3446
|
+
referencedRelation: "floriday_connections";
|
|
3447
|
+
referencedColumns: ["id"];
|
|
3448
|
+
}];
|
|
3449
|
+
};
|
|
3279
3450
|
floriday_base_items_cache: {
|
|
3280
3451
|
Row: {
|
|
3281
3452
|
connection_id: string;
|
|
@@ -4380,6 +4551,24 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
4380
4551
|
referencedColumns: ["id"];
|
|
4381
4552
|
}];
|
|
4382
4553
|
};
|
|
4554
|
+
floriday_rate_limit_state: {
|
|
4555
|
+
Row: {
|
|
4556
|
+
bucket: string;
|
|
4557
|
+
last_refill_at: string;
|
|
4558
|
+
tokens: number;
|
|
4559
|
+
};
|
|
4560
|
+
Insert: {
|
|
4561
|
+
bucket: string;
|
|
4562
|
+
last_refill_at?: string;
|
|
4563
|
+
tokens: number;
|
|
4564
|
+
};
|
|
4565
|
+
Update: {
|
|
4566
|
+
bucket?: string;
|
|
4567
|
+
last_refill_at?: string;
|
|
4568
|
+
tokens?: number;
|
|
4569
|
+
};
|
|
4570
|
+
Relationships: [];
|
|
4571
|
+
};
|
|
4383
4572
|
floriday_resource_schemas: {
|
|
4384
4573
|
Row: {
|
|
4385
4574
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -6814,6 +7003,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6814
7003
|
order_date: string;
|
|
6815
7004
|
order_number: string;
|
|
6816
7005
|
order_source: string;
|
|
7006
|
+
plan_locked_at: string | null;
|
|
7007
|
+
plan_locked_ref: string | null;
|
|
6817
7008
|
status: string;
|
|
6818
7009
|
total: string;
|
|
6819
7010
|
updated_at: string;
|
|
@@ -6830,6 +7021,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6830
7021
|
order_date?: string;
|
|
6831
7022
|
order_number: string;
|
|
6832
7023
|
order_source?: string;
|
|
7024
|
+
plan_locked_at?: string | null;
|
|
7025
|
+
plan_locked_ref?: string | null;
|
|
6833
7026
|
status?: string;
|
|
6834
7027
|
total?: string;
|
|
6835
7028
|
updated_at?: string;
|
|
@@ -6846,6 +7039,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
6846
7039
|
order_date?: string;
|
|
6847
7040
|
order_number?: string;
|
|
6848
7041
|
order_source?: string;
|
|
7042
|
+
plan_locked_at?: string | null;
|
|
7043
|
+
plan_locked_ref?: string | null;
|
|
6849
7044
|
status?: string;
|
|
6850
7045
|
total?: string;
|
|
6851
7046
|
updated_at?: string;
|
|
@@ -7214,6 +7409,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7214
7409
|
};
|
|
7215
7410
|
profiles: {
|
|
7216
7411
|
Row: {
|
|
7412
|
+
address: string | null;
|
|
7217
7413
|
created_at: string;
|
|
7218
7414
|
display_name: string | null;
|
|
7219
7415
|
email: string | null;
|
|
@@ -7224,6 +7420,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7224
7420
|
updated_at: string;
|
|
7225
7421
|
};
|
|
7226
7422
|
Insert: {
|
|
7423
|
+
address?: string | null;
|
|
7227
7424
|
created_at?: string;
|
|
7228
7425
|
display_name?: string | null;
|
|
7229
7426
|
email?: string | null;
|
|
@@ -7234,6 +7431,7 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
7234
7431
|
updated_at?: string;
|
|
7235
7432
|
};
|
|
7236
7433
|
Update: {
|
|
7434
|
+
address?: string | null;
|
|
7237
7435
|
created_at?: string;
|
|
7238
7436
|
display_name?: string | null;
|
|
7239
7437
|
email?: string | null;
|
|
@@ -8481,6 +8679,114 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
8481
8679
|
};
|
|
8482
8680
|
Relationships: [];
|
|
8483
8681
|
};
|
|
8682
|
+
trade_item_supply_lines: {
|
|
8683
|
+
Row: {
|
|
8684
|
+
available_quantity: number | null;
|
|
8685
|
+
connection_id: string;
|
|
8686
|
+
created_at: string;
|
|
8687
|
+
currency: string | null;
|
|
8688
|
+
endpoint_family: string | null;
|
|
8689
|
+
environment: string | null;
|
|
8690
|
+
id: string;
|
|
8691
|
+
last_error: string | null;
|
|
8692
|
+
last_status: number | null;
|
|
8693
|
+
packing_configuration_id: string | null;
|
|
8694
|
+
period_end: string | null;
|
|
8695
|
+
period_start: string | null;
|
|
8696
|
+
price_per_piece: number | null;
|
|
8697
|
+
sales_unit: string | null;
|
|
8698
|
+
supply_line_id: string | null;
|
|
8699
|
+
supply_type: string;
|
|
8700
|
+
trade_item_id: string;
|
|
8701
|
+
updated_at: string;
|
|
8702
|
+
user_id: string;
|
|
8703
|
+
week: number | null;
|
|
8704
|
+
year: number | null;
|
|
8705
|
+
};
|
|
8706
|
+
Insert: {
|
|
8707
|
+
available_quantity?: number | null;
|
|
8708
|
+
connection_id: string;
|
|
8709
|
+
created_at?: string;
|
|
8710
|
+
currency?: string | null;
|
|
8711
|
+
endpoint_family?: string | null;
|
|
8712
|
+
environment?: string | null;
|
|
8713
|
+
id?: string;
|
|
8714
|
+
last_error?: string | null;
|
|
8715
|
+
last_status?: number | null;
|
|
8716
|
+
packing_configuration_id?: string | null;
|
|
8717
|
+
period_end?: string | null;
|
|
8718
|
+
period_start?: string | null;
|
|
8719
|
+
price_per_piece?: number | null;
|
|
8720
|
+
sales_unit?: string | null;
|
|
8721
|
+
supply_line_id?: string | null;
|
|
8722
|
+
supply_type?: string;
|
|
8723
|
+
trade_item_id: string;
|
|
8724
|
+
updated_at?: string;
|
|
8725
|
+
user_id: string;
|
|
8726
|
+
week?: number | null;
|
|
8727
|
+
year?: number | null;
|
|
8728
|
+
};
|
|
8729
|
+
Update: {
|
|
8730
|
+
available_quantity?: number | null;
|
|
8731
|
+
connection_id?: string;
|
|
8732
|
+
created_at?: string;
|
|
8733
|
+
currency?: string | null;
|
|
8734
|
+
endpoint_family?: string | null;
|
|
8735
|
+
environment?: string | null;
|
|
8736
|
+
id?: string;
|
|
8737
|
+
last_error?: string | null;
|
|
8738
|
+
last_status?: number | null;
|
|
8739
|
+
packing_configuration_id?: string | null;
|
|
8740
|
+
period_end?: string | null;
|
|
8741
|
+
period_start?: string | null;
|
|
8742
|
+
price_per_piece?: number | null;
|
|
8743
|
+
sales_unit?: string | null;
|
|
8744
|
+
supply_line_id?: string | null;
|
|
8745
|
+
supply_type?: string;
|
|
8746
|
+
trade_item_id?: string;
|
|
8747
|
+
updated_at?: string;
|
|
8748
|
+
user_id?: string;
|
|
8749
|
+
week?: number | null;
|
|
8750
|
+
year?: number | null;
|
|
8751
|
+
};
|
|
8752
|
+
Relationships: [];
|
|
8753
|
+
};
|
|
8754
|
+
trade_item_warehouse_preferences: {
|
|
8755
|
+
Row: {
|
|
8756
|
+
connection_id: string;
|
|
8757
|
+
created_at: string;
|
|
8758
|
+
id: string;
|
|
8759
|
+
trade_item_id: string;
|
|
8760
|
+
updated_at: string;
|
|
8761
|
+
warehouse_id: string;
|
|
8762
|
+
warehouse_name: string | null;
|
|
8763
|
+
};
|
|
8764
|
+
Insert: {
|
|
8765
|
+
connection_id: string;
|
|
8766
|
+
created_at?: string;
|
|
8767
|
+
id?: string;
|
|
8768
|
+
trade_item_id: string;
|
|
8769
|
+
updated_at?: string;
|
|
8770
|
+
warehouse_id: string;
|
|
8771
|
+
warehouse_name?: string | null;
|
|
8772
|
+
};
|
|
8773
|
+
Update: {
|
|
8774
|
+
connection_id?: string;
|
|
8775
|
+
created_at?: string;
|
|
8776
|
+
id?: string;
|
|
8777
|
+
trade_item_id?: string;
|
|
8778
|
+
updated_at?: string;
|
|
8779
|
+
warehouse_id?: string;
|
|
8780
|
+
warehouse_name?: string | null;
|
|
8781
|
+
};
|
|
8782
|
+
Relationships: [{
|
|
8783
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8784
|
+
columns: ["connection_id"];
|
|
8785
|
+
isOneToOne: false;
|
|
8786
|
+
referencedRelation: "floriday_connections";
|
|
8787
|
+
referencedColumns: ["id"];
|
|
8788
|
+
}];
|
|
8789
|
+
};
|
|
8484
8790
|
twinfield_connections: {
|
|
8485
8791
|
Row: {
|
|
8486
8792
|
access_token: string | null;
|
|
@@ -10166,7 +10472,19 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10166
10472
|
};
|
|
10167
10473
|
cleanup_old_bookings: {
|
|
10168
10474
|
Args: never;
|
|
10169
|
-
Returns:
|
|
10475
|
+
Returns: undefined;
|
|
10476
|
+
};
|
|
10477
|
+
consume_floriday_rate_limit: {
|
|
10478
|
+
Args: {
|
|
10479
|
+
p_bucket: string;
|
|
10480
|
+
p_capacity: number;
|
|
10481
|
+
p_cost?: number;
|
|
10482
|
+
p_refill_per_sec: number;
|
|
10483
|
+
};
|
|
10484
|
+
Returns: {
|
|
10485
|
+
granted: boolean;
|
|
10486
|
+
wait_ms: number;
|
|
10487
|
+
}[];
|
|
10170
10488
|
};
|
|
10171
10489
|
control_get_todays_carts: {
|
|
10172
10490
|
Args: never;
|
|
@@ -10248,6 +10566,12 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10248
10566
|
status: string;
|
|
10249
10567
|
}[];
|
|
10250
10568
|
};
|
|
10569
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10570
|
+
Args: {
|
|
10571
|
+
p_order_id: string;
|
|
10572
|
+
};
|
|
10573
|
+
Returns: undefined;
|
|
10574
|
+
};
|
|
10251
10575
|
ensure_trade_item_stock_row: {
|
|
10252
10576
|
Args: {
|
|
10253
10577
|
p_key: string;
|
|
@@ -10641,6 +10965,24 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10641
10965
|
};
|
|
10642
10966
|
Returns: undefined;
|
|
10643
10967
|
};
|
|
10968
|
+
recompute_order_status: {
|
|
10969
|
+
Args: {
|
|
10970
|
+
p_order_id: string;
|
|
10971
|
+
};
|
|
10972
|
+
Returns: undefined;
|
|
10973
|
+
};
|
|
10974
|
+
recompute_reserved_for_order: {
|
|
10975
|
+
Args: {
|
|
10976
|
+
p_order_id: string;
|
|
10977
|
+
};
|
|
10978
|
+
Returns: undefined;
|
|
10979
|
+
};
|
|
10980
|
+
recompute_reserved_stock: {
|
|
10981
|
+
Args: {
|
|
10982
|
+
p_trade_item_key: string;
|
|
10983
|
+
};
|
|
10984
|
+
Returns: undefined;
|
|
10985
|
+
};
|
|
10644
10986
|
refresh_external_customers_grouped: {
|
|
10645
10987
|
Args: never;
|
|
10646
10988
|
Returns: undefined;
|
|
@@ -10955,6 +11297,24 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10955
11297
|
};
|
|
10956
11298
|
Returns: string[];
|
|
10957
11299
|
};
|
|
11300
|
+
sync_cached_packing_from_product: {
|
|
11301
|
+
Args: {
|
|
11302
|
+
p_product_id: string;
|
|
11303
|
+
};
|
|
11304
|
+
Returns: undefined;
|
|
11305
|
+
};
|
|
11306
|
+
sync_order_cart_item_packing_from_product: {
|
|
11307
|
+
Args: {
|
|
11308
|
+
p_product_id: string;
|
|
11309
|
+
};
|
|
11310
|
+
Returns: undefined;
|
|
11311
|
+
};
|
|
11312
|
+
sync_product_packing_from_floriday_cache: {
|
|
11313
|
+
Args: {
|
|
11314
|
+
p_floriday_id: string;
|
|
11315
|
+
};
|
|
11316
|
+
Returns: undefined;
|
|
11317
|
+
};
|
|
10958
11318
|
twinfield_decrypt: {
|
|
10959
11319
|
Args: {
|
|
10960
11320
|
cipher: string;
|
|
@@ -10967,6 +11327,17 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
|
|
|
10967
11327
|
};
|
|
10968
11328
|
Returns: string;
|
|
10969
11329
|
};
|
|
11330
|
+
upsert_auto_fulfillment_log: {
|
|
11331
|
+
Args: {
|
|
11332
|
+
p_connection_id: string;
|
|
11333
|
+
p_error?: string;
|
|
11334
|
+
p_fulfillment_order_id?: string;
|
|
11335
|
+
p_reason?: string;
|
|
11336
|
+
p_sales_order_id: string;
|
|
11337
|
+
p_status: string;
|
|
11338
|
+
};
|
|
11339
|
+
Returns: undefined;
|
|
11340
|
+
};
|
|
10970
11341
|
};
|
|
10971
11342
|
Enums: {
|
|
10972
11343
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|