@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
|
@@ -4,6 +4,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
4
4
|
Tables: {
|
|
5
5
|
afhandeling_settings: {
|
|
6
6
|
Row: {
|
|
7
|
+
auto_print_delivery_note: boolean;
|
|
8
|
+
auto_process_paused: boolean;
|
|
7
9
|
created_at: string;
|
|
8
10
|
extra_pick_days_with_stickers: number;
|
|
9
11
|
id: string;
|
|
@@ -19,6 +21,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
19
21
|
user_id: string;
|
|
20
22
|
};
|
|
21
23
|
Insert: {
|
|
24
|
+
auto_print_delivery_note?: boolean;
|
|
25
|
+
auto_process_paused?: boolean;
|
|
22
26
|
created_at?: string;
|
|
23
27
|
extra_pick_days_with_stickers?: number;
|
|
24
28
|
id?: string;
|
|
@@ -34,6 +38,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
34
38
|
user_id: string;
|
|
35
39
|
};
|
|
36
40
|
Update: {
|
|
41
|
+
auto_print_delivery_note?: boolean;
|
|
42
|
+
auto_process_paused?: boolean;
|
|
37
43
|
created_at?: string;
|
|
38
44
|
extra_pick_days_with_stickers?: number;
|
|
39
45
|
id?: string;
|
|
@@ -266,6 +272,9 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
266
272
|
created_at: string;
|
|
267
273
|
extra_id: string;
|
|
268
274
|
id: string;
|
|
275
|
+
original_unit_price: number | null;
|
|
276
|
+
override_reason: string | null;
|
|
277
|
+
override_unit_price: number | null;
|
|
269
278
|
quantity: number;
|
|
270
279
|
total_price: number;
|
|
271
280
|
unit_price: number;
|
|
@@ -275,6 +284,9 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
275
284
|
created_at?: string;
|
|
276
285
|
extra_id: string;
|
|
277
286
|
id?: string;
|
|
287
|
+
original_unit_price?: number | null;
|
|
288
|
+
override_reason?: string | null;
|
|
289
|
+
override_unit_price?: number | null;
|
|
278
290
|
quantity?: number;
|
|
279
291
|
total_price?: number;
|
|
280
292
|
unit_price?: number;
|
|
@@ -284,6 +296,9 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
284
296
|
created_at?: string;
|
|
285
297
|
extra_id?: string;
|
|
286
298
|
id?: string;
|
|
299
|
+
original_unit_price?: number | null;
|
|
300
|
+
override_reason?: string | null;
|
|
301
|
+
override_unit_price?: number | null;
|
|
287
302
|
quantity?: number;
|
|
288
303
|
total_price?: number;
|
|
289
304
|
unit_price?: number;
|
|
@@ -304,11 +319,15 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
304
319
|
};
|
|
305
320
|
bookings: {
|
|
306
321
|
Row: {
|
|
322
|
+
archive_reason: string | null;
|
|
323
|
+
archived_at: string | null;
|
|
324
|
+
archived_by: string | null;
|
|
307
325
|
company_name: string | null;
|
|
308
326
|
conflict_checked_at: string | null;
|
|
309
327
|
conflict_reason: string | null;
|
|
310
328
|
created_at: string;
|
|
311
329
|
created_by_role: string | null;
|
|
330
|
+
customer_address: string | null;
|
|
312
331
|
customer_email: string | null;
|
|
313
332
|
customer_name: string | null;
|
|
314
333
|
end_time: string;
|
|
@@ -320,7 +339,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
320
339
|
invoiced_at: string | null;
|
|
321
340
|
notes: string | null;
|
|
322
341
|
number_of_people: number;
|
|
342
|
+
overridden_at: string | null;
|
|
343
|
+
overridden_by: string | null;
|
|
344
|
+
override_reason: string | null;
|
|
345
|
+
price_override: boolean;
|
|
323
346
|
room_id: string;
|
|
347
|
+
room_price_override: number | null;
|
|
324
348
|
start_time: string;
|
|
325
349
|
status: string;
|
|
326
350
|
total_excl_vat: number | null;
|
|
@@ -329,11 +353,15 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
329
353
|
vat_amount: number | null;
|
|
330
354
|
};
|
|
331
355
|
Insert: {
|
|
356
|
+
archive_reason?: string | null;
|
|
357
|
+
archived_at?: string | null;
|
|
358
|
+
archived_by?: string | null;
|
|
332
359
|
company_name?: string | null;
|
|
333
360
|
conflict_checked_at?: string | null;
|
|
334
361
|
conflict_reason?: string | null;
|
|
335
362
|
created_at?: string;
|
|
336
363
|
created_by_role?: string | null;
|
|
364
|
+
customer_address?: string | null;
|
|
337
365
|
customer_email?: string | null;
|
|
338
366
|
customer_name?: string | null;
|
|
339
367
|
end_time: string;
|
|
@@ -345,7 +373,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
345
373
|
invoiced_at?: string | null;
|
|
346
374
|
notes?: string | null;
|
|
347
375
|
number_of_people?: number;
|
|
376
|
+
overridden_at?: string | null;
|
|
377
|
+
overridden_by?: string | null;
|
|
378
|
+
override_reason?: string | null;
|
|
379
|
+
price_override?: boolean;
|
|
348
380
|
room_id: string;
|
|
381
|
+
room_price_override?: number | null;
|
|
349
382
|
start_time: string;
|
|
350
383
|
status?: string;
|
|
351
384
|
total_excl_vat?: number | null;
|
|
@@ -354,11 +387,15 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
354
387
|
vat_amount?: number | null;
|
|
355
388
|
};
|
|
356
389
|
Update: {
|
|
390
|
+
archive_reason?: string | null;
|
|
391
|
+
archived_at?: string | null;
|
|
392
|
+
archived_by?: string | null;
|
|
357
393
|
company_name?: string | null;
|
|
358
394
|
conflict_checked_at?: string | null;
|
|
359
395
|
conflict_reason?: string | null;
|
|
360
396
|
created_at?: string;
|
|
361
397
|
created_by_role?: string | null;
|
|
398
|
+
customer_address?: string | null;
|
|
362
399
|
customer_email?: string | null;
|
|
363
400
|
customer_name?: string | null;
|
|
364
401
|
end_time?: string;
|
|
@@ -370,7 +407,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
370
407
|
invoiced_at?: string | null;
|
|
371
408
|
notes?: string | null;
|
|
372
409
|
number_of_people?: number;
|
|
410
|
+
overridden_at?: string | null;
|
|
411
|
+
overridden_by?: string | null;
|
|
412
|
+
override_reason?: string | null;
|
|
413
|
+
price_override?: boolean;
|
|
373
414
|
room_id?: string;
|
|
415
|
+
room_price_override?: number | null;
|
|
374
416
|
start_time?: string;
|
|
375
417
|
status?: string;
|
|
376
418
|
total_excl_vat?: number | null;
|
|
@@ -1199,8 +1241,27 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
1199
1241
|
customers: {
|
|
1200
1242
|
Row: {
|
|
1201
1243
|
address: string | null;
|
|
1244
|
+
address_line1: string | null;
|
|
1245
|
+
address_line2: string | null;
|
|
1246
|
+
address_type: string | null;
|
|
1247
|
+
attention_to: string | null;
|
|
1248
|
+
bank_account_holder: string | null;
|
|
1249
|
+
bank_account_number: string | null;
|
|
1250
|
+
bank_address_line1: string | null;
|
|
1251
|
+
bank_address_line2: string | null;
|
|
1252
|
+
bank_bic: string | null;
|
|
1253
|
+
bank_city: string | null;
|
|
1254
|
+
bank_country: string | null;
|
|
1255
|
+
bank_house_number: string | null;
|
|
1256
|
+
bank_iban: string | null;
|
|
1257
|
+
bank_name: string | null;
|
|
1258
|
+
bank_national_code: string | null;
|
|
1259
|
+
bank_postal_code: string | null;
|
|
1260
|
+
bank_state: string | null;
|
|
1261
|
+
billing_email: string | null;
|
|
1202
1262
|
bio: string | null;
|
|
1203
1263
|
city: string | null;
|
|
1264
|
+
coc_number: string | null;
|
|
1204
1265
|
commercial_name: string | null;
|
|
1205
1266
|
company_name: string;
|
|
1206
1267
|
connection_status: string;
|
|
@@ -1209,21 +1270,28 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
1209
1270
|
created_at: string;
|
|
1210
1271
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
1211
1272
|
customer_class: string | null;
|
|
1273
|
+
customer_number: string | null;
|
|
1274
|
+
discount_days: number | null;
|
|
1275
|
+
discount_percentage: number | null;
|
|
1212
1276
|
email: string | null;
|
|
1213
1277
|
external_id: string | null;
|
|
1278
|
+
fax: string | null;
|
|
1214
1279
|
floriday_connection_id: string | null;
|
|
1215
1280
|
floriday_organization_id: string | null;
|
|
1216
1281
|
floriday_raw: import("../integrations/supabase/types").Json | null;
|
|
1217
1282
|
gln: string | null;
|
|
1218
1283
|
house_number: string | null;
|
|
1284
|
+
icp_country_code: string | null;
|
|
1219
1285
|
id: string;
|
|
1220
1286
|
is_active: boolean;
|
|
1287
|
+
language: string | null;
|
|
1221
1288
|
last_synced_at: string | null;
|
|
1222
1289
|
logo_url: string | null;
|
|
1223
1290
|
markets: string[];
|
|
1224
1291
|
notes: string | null;
|
|
1225
1292
|
organization_type: string | null;
|
|
1226
1293
|
payment_methods: string[];
|
|
1294
|
+
payment_term_days: number | null;
|
|
1227
1295
|
phone: string | null;
|
|
1228
1296
|
postal_code: string | null;
|
|
1229
1297
|
product_groups: string[];
|
|
@@ -1234,13 +1302,33 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
1234
1302
|
sync_status: string;
|
|
1235
1303
|
trade_forms: string[];
|
|
1236
1304
|
updated_at: string;
|
|
1305
|
+
vat_display: string | null;
|
|
1237
1306
|
vat_number: string | null;
|
|
1238
1307
|
website: string | null;
|
|
1239
1308
|
};
|
|
1240
1309
|
Insert: {
|
|
1241
1310
|
address?: string | null;
|
|
1311
|
+
address_line1?: string | null;
|
|
1312
|
+
address_line2?: string | null;
|
|
1313
|
+
address_type?: string | null;
|
|
1314
|
+
attention_to?: string | null;
|
|
1315
|
+
bank_account_holder?: string | null;
|
|
1316
|
+
bank_account_number?: string | null;
|
|
1317
|
+
bank_address_line1?: string | null;
|
|
1318
|
+
bank_address_line2?: string | null;
|
|
1319
|
+
bank_bic?: string | null;
|
|
1320
|
+
bank_city?: string | null;
|
|
1321
|
+
bank_country?: string | null;
|
|
1322
|
+
bank_house_number?: string | null;
|
|
1323
|
+
bank_iban?: string | null;
|
|
1324
|
+
bank_name?: string | null;
|
|
1325
|
+
bank_national_code?: string | null;
|
|
1326
|
+
bank_postal_code?: string | null;
|
|
1327
|
+
bank_state?: string | null;
|
|
1328
|
+
billing_email?: string | null;
|
|
1242
1329
|
bio?: string | null;
|
|
1243
1330
|
city?: string | null;
|
|
1331
|
+
coc_number?: string | null;
|
|
1244
1332
|
commercial_name?: string | null;
|
|
1245
1333
|
company_name: string;
|
|
1246
1334
|
connection_status?: string;
|
|
@@ -1249,21 +1337,28 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
1249
1337
|
created_at?: string;
|
|
1250
1338
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
1251
1339
|
customer_class?: string | null;
|
|
1340
|
+
customer_number?: string | null;
|
|
1341
|
+
discount_days?: number | null;
|
|
1342
|
+
discount_percentage?: number | null;
|
|
1252
1343
|
email?: string | null;
|
|
1253
1344
|
external_id?: string | null;
|
|
1345
|
+
fax?: string | null;
|
|
1254
1346
|
floriday_connection_id?: string | null;
|
|
1255
1347
|
floriday_organization_id?: string | null;
|
|
1256
1348
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
1257
1349
|
gln?: string | null;
|
|
1258
1350
|
house_number?: string | null;
|
|
1351
|
+
icp_country_code?: string | null;
|
|
1259
1352
|
id?: string;
|
|
1260
1353
|
is_active?: boolean;
|
|
1354
|
+
language?: string | null;
|
|
1261
1355
|
last_synced_at?: string | null;
|
|
1262
1356
|
logo_url?: string | null;
|
|
1263
1357
|
markets?: string[];
|
|
1264
1358
|
notes?: string | null;
|
|
1265
1359
|
organization_type?: string | null;
|
|
1266
1360
|
payment_methods?: string[];
|
|
1361
|
+
payment_term_days?: number | null;
|
|
1267
1362
|
phone?: string | null;
|
|
1268
1363
|
postal_code?: string | null;
|
|
1269
1364
|
product_groups?: string[];
|
|
@@ -1274,13 +1369,33 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
1274
1369
|
sync_status?: string;
|
|
1275
1370
|
trade_forms?: string[];
|
|
1276
1371
|
updated_at?: string;
|
|
1372
|
+
vat_display?: string | null;
|
|
1277
1373
|
vat_number?: string | null;
|
|
1278
1374
|
website?: string | null;
|
|
1279
1375
|
};
|
|
1280
1376
|
Update: {
|
|
1281
1377
|
address?: string | null;
|
|
1378
|
+
address_line1?: string | null;
|
|
1379
|
+
address_line2?: string | null;
|
|
1380
|
+
address_type?: string | null;
|
|
1381
|
+
attention_to?: string | null;
|
|
1382
|
+
bank_account_holder?: string | null;
|
|
1383
|
+
bank_account_number?: string | null;
|
|
1384
|
+
bank_address_line1?: string | null;
|
|
1385
|
+
bank_address_line2?: string | null;
|
|
1386
|
+
bank_bic?: string | null;
|
|
1387
|
+
bank_city?: string | null;
|
|
1388
|
+
bank_country?: string | null;
|
|
1389
|
+
bank_house_number?: string | null;
|
|
1390
|
+
bank_iban?: string | null;
|
|
1391
|
+
bank_name?: string | null;
|
|
1392
|
+
bank_national_code?: string | null;
|
|
1393
|
+
bank_postal_code?: string | null;
|
|
1394
|
+
bank_state?: string | null;
|
|
1395
|
+
billing_email?: string | null;
|
|
1282
1396
|
bio?: string | null;
|
|
1283
1397
|
city?: string | null;
|
|
1398
|
+
coc_number?: string | null;
|
|
1284
1399
|
commercial_name?: string | null;
|
|
1285
1400
|
company_name?: string;
|
|
1286
1401
|
connection_status?: string;
|
|
@@ -1289,21 +1404,28 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
1289
1404
|
created_at?: string;
|
|
1290
1405
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
1291
1406
|
customer_class?: string | null;
|
|
1407
|
+
customer_number?: string | null;
|
|
1408
|
+
discount_days?: number | null;
|
|
1409
|
+
discount_percentage?: number | null;
|
|
1292
1410
|
email?: string | null;
|
|
1293
1411
|
external_id?: string | null;
|
|
1412
|
+
fax?: string | null;
|
|
1294
1413
|
floriday_connection_id?: string | null;
|
|
1295
1414
|
floriday_organization_id?: string | null;
|
|
1296
1415
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
1297
1416
|
gln?: string | null;
|
|
1298
1417
|
house_number?: string | null;
|
|
1418
|
+
icp_country_code?: string | null;
|
|
1299
1419
|
id?: string;
|
|
1300
1420
|
is_active?: boolean;
|
|
1421
|
+
language?: string | null;
|
|
1301
1422
|
last_synced_at?: string | null;
|
|
1302
1423
|
logo_url?: string | null;
|
|
1303
1424
|
markets?: string[];
|
|
1304
1425
|
notes?: string | null;
|
|
1305
1426
|
organization_type?: string | null;
|
|
1306
1427
|
payment_methods?: string[];
|
|
1428
|
+
payment_term_days?: number | null;
|
|
1307
1429
|
phone?: string | null;
|
|
1308
1430
|
postal_code?: string | null;
|
|
1309
1431
|
product_groups?: string[];
|
|
@@ -1314,6 +1436,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
1314
1436
|
sync_status?: string;
|
|
1315
1437
|
trade_forms?: string[];
|
|
1316
1438
|
updated_at?: string;
|
|
1439
|
+
vat_display?: string | null;
|
|
1317
1440
|
vat_number?: string | null;
|
|
1318
1441
|
website?: string | null;
|
|
1319
1442
|
};
|
|
@@ -3260,6 +3383,54 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
3260
3383
|
referencedColumns: ["id"];
|
|
3261
3384
|
}];
|
|
3262
3385
|
};
|
|
3386
|
+
floriday_auto_fulfillment_log: {
|
|
3387
|
+
Row: {
|
|
3388
|
+
attempts: number;
|
|
3389
|
+
connection_id: string;
|
|
3390
|
+
created_at: string;
|
|
3391
|
+
error: string | null;
|
|
3392
|
+
fulfillment_order_id: string | null;
|
|
3393
|
+
id: string;
|
|
3394
|
+
last_attempt_at: string | null;
|
|
3395
|
+
reason: string | null;
|
|
3396
|
+
sales_order_id: string;
|
|
3397
|
+
status: string;
|
|
3398
|
+
updated_at: string;
|
|
3399
|
+
};
|
|
3400
|
+
Insert: {
|
|
3401
|
+
attempts?: number;
|
|
3402
|
+
connection_id: string;
|
|
3403
|
+
created_at?: string;
|
|
3404
|
+
error?: string | null;
|
|
3405
|
+
fulfillment_order_id?: string | null;
|
|
3406
|
+
id?: string;
|
|
3407
|
+
last_attempt_at?: string | null;
|
|
3408
|
+
reason?: string | null;
|
|
3409
|
+
sales_order_id: string;
|
|
3410
|
+
status?: string;
|
|
3411
|
+
updated_at?: string;
|
|
3412
|
+
};
|
|
3413
|
+
Update: {
|
|
3414
|
+
attempts?: number;
|
|
3415
|
+
connection_id?: string;
|
|
3416
|
+
created_at?: string;
|
|
3417
|
+
error?: string | null;
|
|
3418
|
+
fulfillment_order_id?: string | null;
|
|
3419
|
+
id?: string;
|
|
3420
|
+
last_attempt_at?: string | null;
|
|
3421
|
+
reason?: string | null;
|
|
3422
|
+
sales_order_id?: string;
|
|
3423
|
+
status?: string;
|
|
3424
|
+
updated_at?: string;
|
|
3425
|
+
};
|
|
3426
|
+
Relationships: [{
|
|
3427
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3428
|
+
columns: ["connection_id"];
|
|
3429
|
+
isOneToOne: false;
|
|
3430
|
+
referencedRelation: "floriday_connections";
|
|
3431
|
+
referencedColumns: ["id"];
|
|
3432
|
+
}];
|
|
3433
|
+
};
|
|
3263
3434
|
floriday_base_items_cache: {
|
|
3264
3435
|
Row: {
|
|
3265
3436
|
connection_id: string;
|
|
@@ -4364,6 +4535,24 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
4364
4535
|
referencedColumns: ["id"];
|
|
4365
4536
|
}];
|
|
4366
4537
|
};
|
|
4538
|
+
floriday_rate_limit_state: {
|
|
4539
|
+
Row: {
|
|
4540
|
+
bucket: string;
|
|
4541
|
+
last_refill_at: string;
|
|
4542
|
+
tokens: number;
|
|
4543
|
+
};
|
|
4544
|
+
Insert: {
|
|
4545
|
+
bucket: string;
|
|
4546
|
+
last_refill_at?: string;
|
|
4547
|
+
tokens: number;
|
|
4548
|
+
};
|
|
4549
|
+
Update: {
|
|
4550
|
+
bucket?: string;
|
|
4551
|
+
last_refill_at?: string;
|
|
4552
|
+
tokens?: number;
|
|
4553
|
+
};
|
|
4554
|
+
Relationships: [];
|
|
4555
|
+
};
|
|
4367
4556
|
floriday_resource_schemas: {
|
|
4368
4557
|
Row: {
|
|
4369
4558
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -6798,6 +6987,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
6798
6987
|
order_date: string;
|
|
6799
6988
|
order_number: string;
|
|
6800
6989
|
order_source: string;
|
|
6990
|
+
plan_locked_at: string | null;
|
|
6991
|
+
plan_locked_ref: string | null;
|
|
6801
6992
|
status: string;
|
|
6802
6993
|
total: string;
|
|
6803
6994
|
updated_at: string;
|
|
@@ -6814,6 +7005,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
6814
7005
|
order_date?: string;
|
|
6815
7006
|
order_number: string;
|
|
6816
7007
|
order_source?: string;
|
|
7008
|
+
plan_locked_at?: string | null;
|
|
7009
|
+
plan_locked_ref?: string | null;
|
|
6817
7010
|
status?: string;
|
|
6818
7011
|
total?: string;
|
|
6819
7012
|
updated_at?: string;
|
|
@@ -6830,6 +7023,8 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
6830
7023
|
order_date?: string;
|
|
6831
7024
|
order_number?: string;
|
|
6832
7025
|
order_source?: string;
|
|
7026
|
+
plan_locked_at?: string | null;
|
|
7027
|
+
plan_locked_ref?: string | null;
|
|
6833
7028
|
status?: string;
|
|
6834
7029
|
total?: string;
|
|
6835
7030
|
updated_at?: string;
|
|
@@ -7198,6 +7393,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7198
7393
|
};
|
|
7199
7394
|
profiles: {
|
|
7200
7395
|
Row: {
|
|
7396
|
+
address: string | null;
|
|
7201
7397
|
created_at: string;
|
|
7202
7398
|
display_name: string | null;
|
|
7203
7399
|
email: string | null;
|
|
@@ -7208,6 +7404,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7208
7404
|
updated_at: string;
|
|
7209
7405
|
};
|
|
7210
7406
|
Insert: {
|
|
7407
|
+
address?: string | null;
|
|
7211
7408
|
created_at?: string;
|
|
7212
7409
|
display_name?: string | null;
|
|
7213
7410
|
email?: string | null;
|
|
@@ -7218,6 +7415,7 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
7218
7415
|
updated_at?: string;
|
|
7219
7416
|
};
|
|
7220
7417
|
Update: {
|
|
7418
|
+
address?: string | null;
|
|
7221
7419
|
created_at?: string;
|
|
7222
7420
|
display_name?: string | null;
|
|
7223
7421
|
email?: string | null;
|
|
@@ -8465,6 +8663,114 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
8465
8663
|
};
|
|
8466
8664
|
Relationships: [];
|
|
8467
8665
|
};
|
|
8666
|
+
trade_item_supply_lines: {
|
|
8667
|
+
Row: {
|
|
8668
|
+
available_quantity: number | null;
|
|
8669
|
+
connection_id: string;
|
|
8670
|
+
created_at: string;
|
|
8671
|
+
currency: string | null;
|
|
8672
|
+
endpoint_family: string | null;
|
|
8673
|
+
environment: string | null;
|
|
8674
|
+
id: string;
|
|
8675
|
+
last_error: string | null;
|
|
8676
|
+
last_status: number | null;
|
|
8677
|
+
packing_configuration_id: string | null;
|
|
8678
|
+
period_end: string | null;
|
|
8679
|
+
period_start: string | null;
|
|
8680
|
+
price_per_piece: number | null;
|
|
8681
|
+
sales_unit: string | null;
|
|
8682
|
+
supply_line_id: string | null;
|
|
8683
|
+
supply_type: string;
|
|
8684
|
+
trade_item_id: string;
|
|
8685
|
+
updated_at: string;
|
|
8686
|
+
user_id: string;
|
|
8687
|
+
week: number | null;
|
|
8688
|
+
year: number | null;
|
|
8689
|
+
};
|
|
8690
|
+
Insert: {
|
|
8691
|
+
available_quantity?: number | null;
|
|
8692
|
+
connection_id: string;
|
|
8693
|
+
created_at?: string;
|
|
8694
|
+
currency?: string | null;
|
|
8695
|
+
endpoint_family?: string | null;
|
|
8696
|
+
environment?: string | null;
|
|
8697
|
+
id?: string;
|
|
8698
|
+
last_error?: string | null;
|
|
8699
|
+
last_status?: number | null;
|
|
8700
|
+
packing_configuration_id?: string | null;
|
|
8701
|
+
period_end?: string | null;
|
|
8702
|
+
period_start?: string | null;
|
|
8703
|
+
price_per_piece?: number | null;
|
|
8704
|
+
sales_unit?: string | null;
|
|
8705
|
+
supply_line_id?: string | null;
|
|
8706
|
+
supply_type?: string;
|
|
8707
|
+
trade_item_id: string;
|
|
8708
|
+
updated_at?: string;
|
|
8709
|
+
user_id: string;
|
|
8710
|
+
week?: number | null;
|
|
8711
|
+
year?: number | null;
|
|
8712
|
+
};
|
|
8713
|
+
Update: {
|
|
8714
|
+
available_quantity?: number | null;
|
|
8715
|
+
connection_id?: string;
|
|
8716
|
+
created_at?: string;
|
|
8717
|
+
currency?: string | null;
|
|
8718
|
+
endpoint_family?: string | null;
|
|
8719
|
+
environment?: string | null;
|
|
8720
|
+
id?: string;
|
|
8721
|
+
last_error?: string | null;
|
|
8722
|
+
last_status?: number | null;
|
|
8723
|
+
packing_configuration_id?: string | null;
|
|
8724
|
+
period_end?: string | null;
|
|
8725
|
+
period_start?: string | null;
|
|
8726
|
+
price_per_piece?: number | null;
|
|
8727
|
+
sales_unit?: string | null;
|
|
8728
|
+
supply_line_id?: string | null;
|
|
8729
|
+
supply_type?: string;
|
|
8730
|
+
trade_item_id?: string;
|
|
8731
|
+
updated_at?: string;
|
|
8732
|
+
user_id?: string;
|
|
8733
|
+
week?: number | null;
|
|
8734
|
+
year?: number | null;
|
|
8735
|
+
};
|
|
8736
|
+
Relationships: [];
|
|
8737
|
+
};
|
|
8738
|
+
trade_item_warehouse_preferences: {
|
|
8739
|
+
Row: {
|
|
8740
|
+
connection_id: string;
|
|
8741
|
+
created_at: string;
|
|
8742
|
+
id: string;
|
|
8743
|
+
trade_item_id: string;
|
|
8744
|
+
updated_at: string;
|
|
8745
|
+
warehouse_id: string;
|
|
8746
|
+
warehouse_name: string | null;
|
|
8747
|
+
};
|
|
8748
|
+
Insert: {
|
|
8749
|
+
connection_id: string;
|
|
8750
|
+
created_at?: string;
|
|
8751
|
+
id?: string;
|
|
8752
|
+
trade_item_id: string;
|
|
8753
|
+
updated_at?: string;
|
|
8754
|
+
warehouse_id: string;
|
|
8755
|
+
warehouse_name?: string | null;
|
|
8756
|
+
};
|
|
8757
|
+
Update: {
|
|
8758
|
+
connection_id?: string;
|
|
8759
|
+
created_at?: string;
|
|
8760
|
+
id?: string;
|
|
8761
|
+
trade_item_id?: string;
|
|
8762
|
+
updated_at?: string;
|
|
8763
|
+
warehouse_id?: string;
|
|
8764
|
+
warehouse_name?: string | null;
|
|
8765
|
+
};
|
|
8766
|
+
Relationships: [{
|
|
8767
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8768
|
+
columns: ["connection_id"];
|
|
8769
|
+
isOneToOne: false;
|
|
8770
|
+
referencedRelation: "floriday_connections";
|
|
8771
|
+
referencedColumns: ["id"];
|
|
8772
|
+
}];
|
|
8773
|
+
};
|
|
8468
8774
|
twinfield_connections: {
|
|
8469
8775
|
Row: {
|
|
8470
8776
|
access_token: string | null;
|
|
@@ -10150,7 +10456,19 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10150
10456
|
};
|
|
10151
10457
|
cleanup_old_bookings: {
|
|
10152
10458
|
Args: never;
|
|
10153
|
-
Returns:
|
|
10459
|
+
Returns: undefined;
|
|
10460
|
+
};
|
|
10461
|
+
consume_floriday_rate_limit: {
|
|
10462
|
+
Args: {
|
|
10463
|
+
p_bucket: string;
|
|
10464
|
+
p_capacity: number;
|
|
10465
|
+
p_cost?: number;
|
|
10466
|
+
p_refill_per_sec: number;
|
|
10467
|
+
};
|
|
10468
|
+
Returns: {
|
|
10469
|
+
granted: boolean;
|
|
10470
|
+
wait_ms: number;
|
|
10471
|
+
}[];
|
|
10154
10472
|
};
|
|
10155
10473
|
control_get_todays_carts: {
|
|
10156
10474
|
Args: never;
|
|
@@ -10232,6 +10550,12 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10232
10550
|
status: string;
|
|
10233
10551
|
}[];
|
|
10234
10552
|
};
|
|
10553
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10554
|
+
Args: {
|
|
10555
|
+
p_order_id: string;
|
|
10556
|
+
};
|
|
10557
|
+
Returns: undefined;
|
|
10558
|
+
};
|
|
10235
10559
|
ensure_trade_item_stock_row: {
|
|
10236
10560
|
Args: {
|
|
10237
10561
|
p_key: string;
|
|
@@ -10625,6 +10949,24 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10625
10949
|
};
|
|
10626
10950
|
Returns: undefined;
|
|
10627
10951
|
};
|
|
10952
|
+
recompute_order_status: {
|
|
10953
|
+
Args: {
|
|
10954
|
+
p_order_id: string;
|
|
10955
|
+
};
|
|
10956
|
+
Returns: undefined;
|
|
10957
|
+
};
|
|
10958
|
+
recompute_reserved_for_order: {
|
|
10959
|
+
Args: {
|
|
10960
|
+
p_order_id: string;
|
|
10961
|
+
};
|
|
10962
|
+
Returns: undefined;
|
|
10963
|
+
};
|
|
10964
|
+
recompute_reserved_stock: {
|
|
10965
|
+
Args: {
|
|
10966
|
+
p_trade_item_key: string;
|
|
10967
|
+
};
|
|
10968
|
+
Returns: undefined;
|
|
10969
|
+
};
|
|
10628
10970
|
refresh_external_customers_grouped: {
|
|
10629
10971
|
Args: never;
|
|
10630
10972
|
Returns: undefined;
|
|
@@ -10939,6 +11281,24 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10939
11281
|
};
|
|
10940
11282
|
Returns: string[];
|
|
10941
11283
|
};
|
|
11284
|
+
sync_cached_packing_from_product: {
|
|
11285
|
+
Args: {
|
|
11286
|
+
p_product_id: string;
|
|
11287
|
+
};
|
|
11288
|
+
Returns: undefined;
|
|
11289
|
+
};
|
|
11290
|
+
sync_order_cart_item_packing_from_product: {
|
|
11291
|
+
Args: {
|
|
11292
|
+
p_product_id: string;
|
|
11293
|
+
};
|
|
11294
|
+
Returns: undefined;
|
|
11295
|
+
};
|
|
11296
|
+
sync_product_packing_from_floriday_cache: {
|
|
11297
|
+
Args: {
|
|
11298
|
+
p_floriday_id: string;
|
|
11299
|
+
};
|
|
11300
|
+
Returns: undefined;
|
|
11301
|
+
};
|
|
10942
11302
|
twinfield_decrypt: {
|
|
10943
11303
|
Args: {
|
|
10944
11304
|
cipher: string;
|
|
@@ -10951,6 +11311,17 @@ export declare const listAccountingProviders: import("@tanstack/start-client-cor
|
|
|
10951
11311
|
};
|
|
10952
11312
|
Returns: string;
|
|
10953
11313
|
};
|
|
11314
|
+
upsert_auto_fulfillment_log: {
|
|
11315
|
+
Args: {
|
|
11316
|
+
p_connection_id: string;
|
|
11317
|
+
p_error?: string;
|
|
11318
|
+
p_fulfillment_order_id?: string;
|
|
11319
|
+
p_reason?: string;
|
|
11320
|
+
p_sales_order_id: string;
|
|
11321
|
+
p_status: string;
|
|
11322
|
+
};
|
|
11323
|
+
Returns: undefined;
|
|
11324
|
+
};
|
|
10954
11325
|
};
|
|
10955
11326
|
Enums: {
|
|
10956
11327
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|
|
@@ -10972,6 +11343,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
10972
11343
|
Tables: {
|
|
10973
11344
|
afhandeling_settings: {
|
|
10974
11345
|
Row: {
|
|
11346
|
+
auto_print_delivery_note: boolean;
|
|
11347
|
+
auto_process_paused: boolean;
|
|
10975
11348
|
created_at: string;
|
|
10976
11349
|
extra_pick_days_with_stickers: number;
|
|
10977
11350
|
id: string;
|
|
@@ -10987,6 +11360,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
10987
11360
|
user_id: string;
|
|
10988
11361
|
};
|
|
10989
11362
|
Insert: {
|
|
11363
|
+
auto_print_delivery_note?: boolean;
|
|
11364
|
+
auto_process_paused?: boolean;
|
|
10990
11365
|
created_at?: string;
|
|
10991
11366
|
extra_pick_days_with_stickers?: number;
|
|
10992
11367
|
id?: string;
|
|
@@ -11002,6 +11377,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
11002
11377
|
user_id: string;
|
|
11003
11378
|
};
|
|
11004
11379
|
Update: {
|
|
11380
|
+
auto_print_delivery_note?: boolean;
|
|
11381
|
+
auto_process_paused?: boolean;
|
|
11005
11382
|
created_at?: string;
|
|
11006
11383
|
extra_pick_days_with_stickers?: number;
|
|
11007
11384
|
id?: string;
|
|
@@ -11234,6 +11611,9 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
11234
11611
|
created_at: string;
|
|
11235
11612
|
extra_id: string;
|
|
11236
11613
|
id: string;
|
|
11614
|
+
original_unit_price: number | null;
|
|
11615
|
+
override_reason: string | null;
|
|
11616
|
+
override_unit_price: number | null;
|
|
11237
11617
|
quantity: number;
|
|
11238
11618
|
total_price: number;
|
|
11239
11619
|
unit_price: number;
|
|
@@ -11243,6 +11623,9 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
11243
11623
|
created_at?: string;
|
|
11244
11624
|
extra_id: string;
|
|
11245
11625
|
id?: string;
|
|
11626
|
+
original_unit_price?: number | null;
|
|
11627
|
+
override_reason?: string | null;
|
|
11628
|
+
override_unit_price?: number | null;
|
|
11246
11629
|
quantity?: number;
|
|
11247
11630
|
total_price?: number;
|
|
11248
11631
|
unit_price?: number;
|
|
@@ -11252,6 +11635,9 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
11252
11635
|
created_at?: string;
|
|
11253
11636
|
extra_id?: string;
|
|
11254
11637
|
id?: string;
|
|
11638
|
+
original_unit_price?: number | null;
|
|
11639
|
+
override_reason?: string | null;
|
|
11640
|
+
override_unit_price?: number | null;
|
|
11255
11641
|
quantity?: number;
|
|
11256
11642
|
total_price?: number;
|
|
11257
11643
|
unit_price?: number;
|
|
@@ -11272,11 +11658,15 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
11272
11658
|
};
|
|
11273
11659
|
bookings: {
|
|
11274
11660
|
Row: {
|
|
11661
|
+
archive_reason: string | null;
|
|
11662
|
+
archived_at: string | null;
|
|
11663
|
+
archived_by: string | null;
|
|
11275
11664
|
company_name: string | null;
|
|
11276
11665
|
conflict_checked_at: string | null;
|
|
11277
11666
|
conflict_reason: string | null;
|
|
11278
11667
|
created_at: string;
|
|
11279
11668
|
created_by_role: string | null;
|
|
11669
|
+
customer_address: string | null;
|
|
11280
11670
|
customer_email: string | null;
|
|
11281
11671
|
customer_name: string | null;
|
|
11282
11672
|
end_time: string;
|
|
@@ -11288,7 +11678,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
11288
11678
|
invoiced_at: string | null;
|
|
11289
11679
|
notes: string | null;
|
|
11290
11680
|
number_of_people: number;
|
|
11681
|
+
overridden_at: string | null;
|
|
11682
|
+
overridden_by: string | null;
|
|
11683
|
+
override_reason: string | null;
|
|
11684
|
+
price_override: boolean;
|
|
11291
11685
|
room_id: string;
|
|
11686
|
+
room_price_override: number | null;
|
|
11292
11687
|
start_time: string;
|
|
11293
11688
|
status: string;
|
|
11294
11689
|
total_excl_vat: number | null;
|
|
@@ -11297,11 +11692,15 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
11297
11692
|
vat_amount: number | null;
|
|
11298
11693
|
};
|
|
11299
11694
|
Insert: {
|
|
11695
|
+
archive_reason?: string | null;
|
|
11696
|
+
archived_at?: string | null;
|
|
11697
|
+
archived_by?: string | null;
|
|
11300
11698
|
company_name?: string | null;
|
|
11301
11699
|
conflict_checked_at?: string | null;
|
|
11302
11700
|
conflict_reason?: string | null;
|
|
11303
11701
|
created_at?: string;
|
|
11304
11702
|
created_by_role?: string | null;
|
|
11703
|
+
customer_address?: string | null;
|
|
11305
11704
|
customer_email?: string | null;
|
|
11306
11705
|
customer_name?: string | null;
|
|
11307
11706
|
end_time: string;
|
|
@@ -11313,7 +11712,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
11313
11712
|
invoiced_at?: string | null;
|
|
11314
11713
|
notes?: string | null;
|
|
11315
11714
|
number_of_people?: number;
|
|
11715
|
+
overridden_at?: string | null;
|
|
11716
|
+
overridden_by?: string | null;
|
|
11717
|
+
override_reason?: string | null;
|
|
11718
|
+
price_override?: boolean;
|
|
11316
11719
|
room_id: string;
|
|
11720
|
+
room_price_override?: number | null;
|
|
11317
11721
|
start_time: string;
|
|
11318
11722
|
status?: string;
|
|
11319
11723
|
total_excl_vat?: number | null;
|
|
@@ -11322,11 +11726,15 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
11322
11726
|
vat_amount?: number | null;
|
|
11323
11727
|
};
|
|
11324
11728
|
Update: {
|
|
11729
|
+
archive_reason?: string | null;
|
|
11730
|
+
archived_at?: string | null;
|
|
11731
|
+
archived_by?: string | null;
|
|
11325
11732
|
company_name?: string | null;
|
|
11326
11733
|
conflict_checked_at?: string | null;
|
|
11327
11734
|
conflict_reason?: string | null;
|
|
11328
11735
|
created_at?: string;
|
|
11329
11736
|
created_by_role?: string | null;
|
|
11737
|
+
customer_address?: string | null;
|
|
11330
11738
|
customer_email?: string | null;
|
|
11331
11739
|
customer_name?: string | null;
|
|
11332
11740
|
end_time?: string;
|
|
@@ -11338,7 +11746,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
11338
11746
|
invoiced_at?: string | null;
|
|
11339
11747
|
notes?: string | null;
|
|
11340
11748
|
number_of_people?: number;
|
|
11749
|
+
overridden_at?: string | null;
|
|
11750
|
+
overridden_by?: string | null;
|
|
11751
|
+
override_reason?: string | null;
|
|
11752
|
+
price_override?: boolean;
|
|
11341
11753
|
room_id?: string;
|
|
11754
|
+
room_price_override?: number | null;
|
|
11342
11755
|
start_time?: string;
|
|
11343
11756
|
status?: string;
|
|
11344
11757
|
total_excl_vat?: number | null;
|
|
@@ -12167,8 +12580,27 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12167
12580
|
customers: {
|
|
12168
12581
|
Row: {
|
|
12169
12582
|
address: string | null;
|
|
12583
|
+
address_line1: string | null;
|
|
12584
|
+
address_line2: string | null;
|
|
12585
|
+
address_type: string | null;
|
|
12586
|
+
attention_to: string | null;
|
|
12587
|
+
bank_account_holder: string | null;
|
|
12588
|
+
bank_account_number: string | null;
|
|
12589
|
+
bank_address_line1: string | null;
|
|
12590
|
+
bank_address_line2: string | null;
|
|
12591
|
+
bank_bic: string | null;
|
|
12592
|
+
bank_city: string | null;
|
|
12593
|
+
bank_country: string | null;
|
|
12594
|
+
bank_house_number: string | null;
|
|
12595
|
+
bank_iban: string | null;
|
|
12596
|
+
bank_name: string | null;
|
|
12597
|
+
bank_national_code: string | null;
|
|
12598
|
+
bank_postal_code: string | null;
|
|
12599
|
+
bank_state: string | null;
|
|
12600
|
+
billing_email: string | null;
|
|
12170
12601
|
bio: string | null;
|
|
12171
12602
|
city: string | null;
|
|
12603
|
+
coc_number: string | null;
|
|
12172
12604
|
commercial_name: string | null;
|
|
12173
12605
|
company_name: string;
|
|
12174
12606
|
connection_status: string;
|
|
@@ -12177,21 +12609,28 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12177
12609
|
created_at: string;
|
|
12178
12610
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
12179
12611
|
customer_class: string | null;
|
|
12612
|
+
customer_number: string | null;
|
|
12613
|
+
discount_days: number | null;
|
|
12614
|
+
discount_percentage: number | null;
|
|
12180
12615
|
email: string | null;
|
|
12181
12616
|
external_id: string | null;
|
|
12617
|
+
fax: string | null;
|
|
12182
12618
|
floriday_connection_id: string | null;
|
|
12183
12619
|
floriday_organization_id: string | null;
|
|
12184
12620
|
floriday_raw: import("../integrations/supabase/types").Json | null;
|
|
12185
12621
|
gln: string | null;
|
|
12186
12622
|
house_number: string | null;
|
|
12623
|
+
icp_country_code: string | null;
|
|
12187
12624
|
id: string;
|
|
12188
12625
|
is_active: boolean;
|
|
12626
|
+
language: string | null;
|
|
12189
12627
|
last_synced_at: string | null;
|
|
12190
12628
|
logo_url: string | null;
|
|
12191
12629
|
markets: string[];
|
|
12192
12630
|
notes: string | null;
|
|
12193
12631
|
organization_type: string | null;
|
|
12194
12632
|
payment_methods: string[];
|
|
12633
|
+
payment_term_days: number | null;
|
|
12195
12634
|
phone: string | null;
|
|
12196
12635
|
postal_code: string | null;
|
|
12197
12636
|
product_groups: string[];
|
|
@@ -12202,13 +12641,33 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12202
12641
|
sync_status: string;
|
|
12203
12642
|
trade_forms: string[];
|
|
12204
12643
|
updated_at: string;
|
|
12644
|
+
vat_display: string | null;
|
|
12205
12645
|
vat_number: string | null;
|
|
12206
12646
|
website: string | null;
|
|
12207
12647
|
};
|
|
12208
12648
|
Insert: {
|
|
12209
12649
|
address?: string | null;
|
|
12650
|
+
address_line1?: string | null;
|
|
12651
|
+
address_line2?: string | null;
|
|
12652
|
+
address_type?: string | null;
|
|
12653
|
+
attention_to?: string | null;
|
|
12654
|
+
bank_account_holder?: string | null;
|
|
12655
|
+
bank_account_number?: string | null;
|
|
12656
|
+
bank_address_line1?: string | null;
|
|
12657
|
+
bank_address_line2?: string | null;
|
|
12658
|
+
bank_bic?: string | null;
|
|
12659
|
+
bank_city?: string | null;
|
|
12660
|
+
bank_country?: string | null;
|
|
12661
|
+
bank_house_number?: string | null;
|
|
12662
|
+
bank_iban?: string | null;
|
|
12663
|
+
bank_name?: string | null;
|
|
12664
|
+
bank_national_code?: string | null;
|
|
12665
|
+
bank_postal_code?: string | null;
|
|
12666
|
+
bank_state?: string | null;
|
|
12667
|
+
billing_email?: string | null;
|
|
12210
12668
|
bio?: string | null;
|
|
12211
12669
|
city?: string | null;
|
|
12670
|
+
coc_number?: string | null;
|
|
12212
12671
|
commercial_name?: string | null;
|
|
12213
12672
|
company_name: string;
|
|
12214
12673
|
connection_status?: string;
|
|
@@ -12217,21 +12676,28 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12217
12676
|
created_at?: string;
|
|
12218
12677
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
12219
12678
|
customer_class?: string | null;
|
|
12679
|
+
customer_number?: string | null;
|
|
12680
|
+
discount_days?: number | null;
|
|
12681
|
+
discount_percentage?: number | null;
|
|
12220
12682
|
email?: string | null;
|
|
12221
12683
|
external_id?: string | null;
|
|
12684
|
+
fax?: string | null;
|
|
12222
12685
|
floriday_connection_id?: string | null;
|
|
12223
12686
|
floriday_organization_id?: string | null;
|
|
12224
12687
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
12225
12688
|
gln?: string | null;
|
|
12226
12689
|
house_number?: string | null;
|
|
12690
|
+
icp_country_code?: string | null;
|
|
12227
12691
|
id?: string;
|
|
12228
12692
|
is_active?: boolean;
|
|
12693
|
+
language?: string | null;
|
|
12229
12694
|
last_synced_at?: string | null;
|
|
12230
12695
|
logo_url?: string | null;
|
|
12231
12696
|
markets?: string[];
|
|
12232
12697
|
notes?: string | null;
|
|
12233
12698
|
organization_type?: string | null;
|
|
12234
12699
|
payment_methods?: string[];
|
|
12700
|
+
payment_term_days?: number | null;
|
|
12235
12701
|
phone?: string | null;
|
|
12236
12702
|
postal_code?: string | null;
|
|
12237
12703
|
product_groups?: string[];
|
|
@@ -12242,13 +12708,33 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12242
12708
|
sync_status?: string;
|
|
12243
12709
|
trade_forms?: string[];
|
|
12244
12710
|
updated_at?: string;
|
|
12711
|
+
vat_display?: string | null;
|
|
12245
12712
|
vat_number?: string | null;
|
|
12246
12713
|
website?: string | null;
|
|
12247
12714
|
};
|
|
12248
12715
|
Update: {
|
|
12249
12716
|
address?: string | null;
|
|
12717
|
+
address_line1?: string | null;
|
|
12718
|
+
address_line2?: string | null;
|
|
12719
|
+
address_type?: string | null;
|
|
12720
|
+
attention_to?: string | null;
|
|
12721
|
+
bank_account_holder?: string | null;
|
|
12722
|
+
bank_account_number?: string | null;
|
|
12723
|
+
bank_address_line1?: string | null;
|
|
12724
|
+
bank_address_line2?: string | null;
|
|
12725
|
+
bank_bic?: string | null;
|
|
12726
|
+
bank_city?: string | null;
|
|
12727
|
+
bank_country?: string | null;
|
|
12728
|
+
bank_house_number?: string | null;
|
|
12729
|
+
bank_iban?: string | null;
|
|
12730
|
+
bank_name?: string | null;
|
|
12731
|
+
bank_national_code?: string | null;
|
|
12732
|
+
bank_postal_code?: string | null;
|
|
12733
|
+
bank_state?: string | null;
|
|
12734
|
+
billing_email?: string | null;
|
|
12250
12735
|
bio?: string | null;
|
|
12251
12736
|
city?: string | null;
|
|
12737
|
+
coc_number?: string | null;
|
|
12252
12738
|
commercial_name?: string | null;
|
|
12253
12739
|
company_name?: string;
|
|
12254
12740
|
connection_status?: string;
|
|
@@ -12257,21 +12743,28 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12257
12743
|
created_at?: string;
|
|
12258
12744
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
12259
12745
|
customer_class?: string | null;
|
|
12746
|
+
customer_number?: string | null;
|
|
12747
|
+
discount_days?: number | null;
|
|
12748
|
+
discount_percentage?: number | null;
|
|
12260
12749
|
email?: string | null;
|
|
12261
12750
|
external_id?: string | null;
|
|
12751
|
+
fax?: string | null;
|
|
12262
12752
|
floriday_connection_id?: string | null;
|
|
12263
12753
|
floriday_organization_id?: string | null;
|
|
12264
12754
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
12265
12755
|
gln?: string | null;
|
|
12266
12756
|
house_number?: string | null;
|
|
12757
|
+
icp_country_code?: string | null;
|
|
12267
12758
|
id?: string;
|
|
12268
12759
|
is_active?: boolean;
|
|
12760
|
+
language?: string | null;
|
|
12269
12761
|
last_synced_at?: string | null;
|
|
12270
12762
|
logo_url?: string | null;
|
|
12271
12763
|
markets?: string[];
|
|
12272
12764
|
notes?: string | null;
|
|
12273
12765
|
organization_type?: string | null;
|
|
12274
12766
|
payment_methods?: string[];
|
|
12767
|
+
payment_term_days?: number | null;
|
|
12275
12768
|
phone?: string | null;
|
|
12276
12769
|
postal_code?: string | null;
|
|
12277
12770
|
product_groups?: string[];
|
|
@@ -12282,6 +12775,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
12282
12775
|
sync_status?: string;
|
|
12283
12776
|
trade_forms?: string[];
|
|
12284
12777
|
updated_at?: string;
|
|
12778
|
+
vat_display?: string | null;
|
|
12285
12779
|
vat_number?: string | null;
|
|
12286
12780
|
website?: string | null;
|
|
12287
12781
|
};
|
|
@@ -14228,6 +14722,54 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
14228
14722
|
referencedColumns: ["id"];
|
|
14229
14723
|
}];
|
|
14230
14724
|
};
|
|
14725
|
+
floriday_auto_fulfillment_log: {
|
|
14726
|
+
Row: {
|
|
14727
|
+
attempts: number;
|
|
14728
|
+
connection_id: string;
|
|
14729
|
+
created_at: string;
|
|
14730
|
+
error: string | null;
|
|
14731
|
+
fulfillment_order_id: string | null;
|
|
14732
|
+
id: string;
|
|
14733
|
+
last_attempt_at: string | null;
|
|
14734
|
+
reason: string | null;
|
|
14735
|
+
sales_order_id: string;
|
|
14736
|
+
status: string;
|
|
14737
|
+
updated_at: string;
|
|
14738
|
+
};
|
|
14739
|
+
Insert: {
|
|
14740
|
+
attempts?: number;
|
|
14741
|
+
connection_id: string;
|
|
14742
|
+
created_at?: string;
|
|
14743
|
+
error?: string | null;
|
|
14744
|
+
fulfillment_order_id?: string | null;
|
|
14745
|
+
id?: string;
|
|
14746
|
+
last_attempt_at?: string | null;
|
|
14747
|
+
reason?: string | null;
|
|
14748
|
+
sales_order_id: string;
|
|
14749
|
+
status?: string;
|
|
14750
|
+
updated_at?: string;
|
|
14751
|
+
};
|
|
14752
|
+
Update: {
|
|
14753
|
+
attempts?: number;
|
|
14754
|
+
connection_id?: string;
|
|
14755
|
+
created_at?: string;
|
|
14756
|
+
error?: string | null;
|
|
14757
|
+
fulfillment_order_id?: string | null;
|
|
14758
|
+
id?: string;
|
|
14759
|
+
last_attempt_at?: string | null;
|
|
14760
|
+
reason?: string | null;
|
|
14761
|
+
sales_order_id?: string;
|
|
14762
|
+
status?: string;
|
|
14763
|
+
updated_at?: string;
|
|
14764
|
+
};
|
|
14765
|
+
Relationships: [{
|
|
14766
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
14767
|
+
columns: ["connection_id"];
|
|
14768
|
+
isOneToOne: false;
|
|
14769
|
+
referencedRelation: "floriday_connections";
|
|
14770
|
+
referencedColumns: ["id"];
|
|
14771
|
+
}];
|
|
14772
|
+
};
|
|
14231
14773
|
floriday_base_items_cache: {
|
|
14232
14774
|
Row: {
|
|
14233
14775
|
connection_id: string;
|
|
@@ -15332,6 +15874,24 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
15332
15874
|
referencedColumns: ["id"];
|
|
15333
15875
|
}];
|
|
15334
15876
|
};
|
|
15877
|
+
floriday_rate_limit_state: {
|
|
15878
|
+
Row: {
|
|
15879
|
+
bucket: string;
|
|
15880
|
+
last_refill_at: string;
|
|
15881
|
+
tokens: number;
|
|
15882
|
+
};
|
|
15883
|
+
Insert: {
|
|
15884
|
+
bucket: string;
|
|
15885
|
+
last_refill_at?: string;
|
|
15886
|
+
tokens: number;
|
|
15887
|
+
};
|
|
15888
|
+
Update: {
|
|
15889
|
+
bucket?: string;
|
|
15890
|
+
last_refill_at?: string;
|
|
15891
|
+
tokens?: number;
|
|
15892
|
+
};
|
|
15893
|
+
Relationships: [];
|
|
15894
|
+
};
|
|
15335
15895
|
floriday_resource_schemas: {
|
|
15336
15896
|
Row: {
|
|
15337
15897
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -17766,6 +18326,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
17766
18326
|
order_date: string;
|
|
17767
18327
|
order_number: string;
|
|
17768
18328
|
order_source: string;
|
|
18329
|
+
plan_locked_at: string | null;
|
|
18330
|
+
plan_locked_ref: string | null;
|
|
17769
18331
|
status: string;
|
|
17770
18332
|
total: string;
|
|
17771
18333
|
updated_at: string;
|
|
@@ -17782,6 +18344,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
17782
18344
|
order_date?: string;
|
|
17783
18345
|
order_number: string;
|
|
17784
18346
|
order_source?: string;
|
|
18347
|
+
plan_locked_at?: string | null;
|
|
18348
|
+
plan_locked_ref?: string | null;
|
|
17785
18349
|
status?: string;
|
|
17786
18350
|
total?: string;
|
|
17787
18351
|
updated_at?: string;
|
|
@@ -17798,6 +18362,8 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
17798
18362
|
order_date?: string;
|
|
17799
18363
|
order_number?: string;
|
|
17800
18364
|
order_source?: string;
|
|
18365
|
+
plan_locked_at?: string | null;
|
|
18366
|
+
plan_locked_ref?: string | null;
|
|
17801
18367
|
status?: string;
|
|
17802
18368
|
total?: string;
|
|
17803
18369
|
updated_at?: string;
|
|
@@ -18166,6 +18732,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
18166
18732
|
};
|
|
18167
18733
|
profiles: {
|
|
18168
18734
|
Row: {
|
|
18735
|
+
address: string | null;
|
|
18169
18736
|
created_at: string;
|
|
18170
18737
|
display_name: string | null;
|
|
18171
18738
|
email: string | null;
|
|
@@ -18176,6 +18743,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
18176
18743
|
updated_at: string;
|
|
18177
18744
|
};
|
|
18178
18745
|
Insert: {
|
|
18746
|
+
address?: string | null;
|
|
18179
18747
|
created_at?: string;
|
|
18180
18748
|
display_name?: string | null;
|
|
18181
18749
|
email?: string | null;
|
|
@@ -18186,6 +18754,7 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
18186
18754
|
updated_at?: string;
|
|
18187
18755
|
};
|
|
18188
18756
|
Update: {
|
|
18757
|
+
address?: string | null;
|
|
18189
18758
|
created_at?: string;
|
|
18190
18759
|
display_name?: string | null;
|
|
18191
18760
|
email?: string | null;
|
|
@@ -19433,6 +20002,114 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
19433
20002
|
};
|
|
19434
20003
|
Relationships: [];
|
|
19435
20004
|
};
|
|
20005
|
+
trade_item_supply_lines: {
|
|
20006
|
+
Row: {
|
|
20007
|
+
available_quantity: number | null;
|
|
20008
|
+
connection_id: string;
|
|
20009
|
+
created_at: string;
|
|
20010
|
+
currency: string | null;
|
|
20011
|
+
endpoint_family: string | null;
|
|
20012
|
+
environment: string | null;
|
|
20013
|
+
id: string;
|
|
20014
|
+
last_error: string | null;
|
|
20015
|
+
last_status: number | null;
|
|
20016
|
+
packing_configuration_id: string | null;
|
|
20017
|
+
period_end: string | null;
|
|
20018
|
+
period_start: string | null;
|
|
20019
|
+
price_per_piece: number | null;
|
|
20020
|
+
sales_unit: string | null;
|
|
20021
|
+
supply_line_id: string | null;
|
|
20022
|
+
supply_type: string;
|
|
20023
|
+
trade_item_id: string;
|
|
20024
|
+
updated_at: string;
|
|
20025
|
+
user_id: string;
|
|
20026
|
+
week: number | null;
|
|
20027
|
+
year: number | null;
|
|
20028
|
+
};
|
|
20029
|
+
Insert: {
|
|
20030
|
+
available_quantity?: number | null;
|
|
20031
|
+
connection_id: string;
|
|
20032
|
+
created_at?: string;
|
|
20033
|
+
currency?: string | null;
|
|
20034
|
+
endpoint_family?: string | null;
|
|
20035
|
+
environment?: string | null;
|
|
20036
|
+
id?: string;
|
|
20037
|
+
last_error?: string | null;
|
|
20038
|
+
last_status?: number | null;
|
|
20039
|
+
packing_configuration_id?: string | null;
|
|
20040
|
+
period_end?: string | null;
|
|
20041
|
+
period_start?: string | null;
|
|
20042
|
+
price_per_piece?: number | null;
|
|
20043
|
+
sales_unit?: string | null;
|
|
20044
|
+
supply_line_id?: string | null;
|
|
20045
|
+
supply_type?: string;
|
|
20046
|
+
trade_item_id: string;
|
|
20047
|
+
updated_at?: string;
|
|
20048
|
+
user_id: string;
|
|
20049
|
+
week?: number | null;
|
|
20050
|
+
year?: number | null;
|
|
20051
|
+
};
|
|
20052
|
+
Update: {
|
|
20053
|
+
available_quantity?: number | null;
|
|
20054
|
+
connection_id?: string;
|
|
20055
|
+
created_at?: string;
|
|
20056
|
+
currency?: string | null;
|
|
20057
|
+
endpoint_family?: string | null;
|
|
20058
|
+
environment?: string | null;
|
|
20059
|
+
id?: string;
|
|
20060
|
+
last_error?: string | null;
|
|
20061
|
+
last_status?: number | null;
|
|
20062
|
+
packing_configuration_id?: string | null;
|
|
20063
|
+
period_end?: string | null;
|
|
20064
|
+
period_start?: string | null;
|
|
20065
|
+
price_per_piece?: number | null;
|
|
20066
|
+
sales_unit?: string | null;
|
|
20067
|
+
supply_line_id?: string | null;
|
|
20068
|
+
supply_type?: string;
|
|
20069
|
+
trade_item_id?: string;
|
|
20070
|
+
updated_at?: string;
|
|
20071
|
+
user_id?: string;
|
|
20072
|
+
week?: number | null;
|
|
20073
|
+
year?: number | null;
|
|
20074
|
+
};
|
|
20075
|
+
Relationships: [];
|
|
20076
|
+
};
|
|
20077
|
+
trade_item_warehouse_preferences: {
|
|
20078
|
+
Row: {
|
|
20079
|
+
connection_id: string;
|
|
20080
|
+
created_at: string;
|
|
20081
|
+
id: string;
|
|
20082
|
+
trade_item_id: string;
|
|
20083
|
+
updated_at: string;
|
|
20084
|
+
warehouse_id: string;
|
|
20085
|
+
warehouse_name: string | null;
|
|
20086
|
+
};
|
|
20087
|
+
Insert: {
|
|
20088
|
+
connection_id: string;
|
|
20089
|
+
created_at?: string;
|
|
20090
|
+
id?: string;
|
|
20091
|
+
trade_item_id: string;
|
|
20092
|
+
updated_at?: string;
|
|
20093
|
+
warehouse_id: string;
|
|
20094
|
+
warehouse_name?: string | null;
|
|
20095
|
+
};
|
|
20096
|
+
Update: {
|
|
20097
|
+
connection_id?: string;
|
|
20098
|
+
created_at?: string;
|
|
20099
|
+
id?: string;
|
|
20100
|
+
trade_item_id?: string;
|
|
20101
|
+
updated_at?: string;
|
|
20102
|
+
warehouse_id?: string;
|
|
20103
|
+
warehouse_name?: string | null;
|
|
20104
|
+
};
|
|
20105
|
+
Relationships: [{
|
|
20106
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
20107
|
+
columns: ["connection_id"];
|
|
20108
|
+
isOneToOne: false;
|
|
20109
|
+
referencedRelation: "floriday_connections";
|
|
20110
|
+
referencedColumns: ["id"];
|
|
20111
|
+
}];
|
|
20112
|
+
};
|
|
19436
20113
|
twinfield_connections: {
|
|
19437
20114
|
Row: {
|
|
19438
20115
|
access_token: string | null;
|
|
@@ -21118,7 +21795,19 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
21118
21795
|
};
|
|
21119
21796
|
cleanup_old_bookings: {
|
|
21120
21797
|
Args: never;
|
|
21121
|
-
Returns:
|
|
21798
|
+
Returns: undefined;
|
|
21799
|
+
};
|
|
21800
|
+
consume_floriday_rate_limit: {
|
|
21801
|
+
Args: {
|
|
21802
|
+
p_bucket: string;
|
|
21803
|
+
p_capacity: number;
|
|
21804
|
+
p_cost?: number;
|
|
21805
|
+
p_refill_per_sec: number;
|
|
21806
|
+
};
|
|
21807
|
+
Returns: {
|
|
21808
|
+
granted: boolean;
|
|
21809
|
+
wait_ms: number;
|
|
21810
|
+
}[];
|
|
21122
21811
|
};
|
|
21123
21812
|
control_get_todays_carts: {
|
|
21124
21813
|
Args: never;
|
|
@@ -21200,6 +21889,12 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
21200
21889
|
status: string;
|
|
21201
21890
|
}[];
|
|
21202
21891
|
};
|
|
21892
|
+
enqueue_cart_replan_if_unlocked: {
|
|
21893
|
+
Args: {
|
|
21894
|
+
p_order_id: string;
|
|
21895
|
+
};
|
|
21896
|
+
Returns: undefined;
|
|
21897
|
+
};
|
|
21203
21898
|
ensure_trade_item_stock_row: {
|
|
21204
21899
|
Args: {
|
|
21205
21900
|
p_key: string;
|
|
@@ -21593,6 +22288,24 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
21593
22288
|
};
|
|
21594
22289
|
Returns: undefined;
|
|
21595
22290
|
};
|
|
22291
|
+
recompute_order_status: {
|
|
22292
|
+
Args: {
|
|
22293
|
+
p_order_id: string;
|
|
22294
|
+
};
|
|
22295
|
+
Returns: undefined;
|
|
22296
|
+
};
|
|
22297
|
+
recompute_reserved_for_order: {
|
|
22298
|
+
Args: {
|
|
22299
|
+
p_order_id: string;
|
|
22300
|
+
};
|
|
22301
|
+
Returns: undefined;
|
|
22302
|
+
};
|
|
22303
|
+
recompute_reserved_stock: {
|
|
22304
|
+
Args: {
|
|
22305
|
+
p_trade_item_key: string;
|
|
22306
|
+
};
|
|
22307
|
+
Returns: undefined;
|
|
22308
|
+
};
|
|
21596
22309
|
refresh_external_customers_grouped: {
|
|
21597
22310
|
Args: never;
|
|
21598
22311
|
Returns: undefined;
|
|
@@ -21907,6 +22620,24 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
21907
22620
|
};
|
|
21908
22621
|
Returns: string[];
|
|
21909
22622
|
};
|
|
22623
|
+
sync_cached_packing_from_product: {
|
|
22624
|
+
Args: {
|
|
22625
|
+
p_product_id: string;
|
|
22626
|
+
};
|
|
22627
|
+
Returns: undefined;
|
|
22628
|
+
};
|
|
22629
|
+
sync_order_cart_item_packing_from_product: {
|
|
22630
|
+
Args: {
|
|
22631
|
+
p_product_id: string;
|
|
22632
|
+
};
|
|
22633
|
+
Returns: undefined;
|
|
22634
|
+
};
|
|
22635
|
+
sync_product_packing_from_floriday_cache: {
|
|
22636
|
+
Args: {
|
|
22637
|
+
p_floriday_id: string;
|
|
22638
|
+
};
|
|
22639
|
+
Returns: undefined;
|
|
22640
|
+
};
|
|
21910
22641
|
twinfield_decrypt: {
|
|
21911
22642
|
Args: {
|
|
21912
22643
|
cipher: string;
|
|
@@ -21919,6 +22650,17 @@ export declare const syncAccountingProvider: import("@tanstack/start-client-core
|
|
|
21919
22650
|
};
|
|
21920
22651
|
Returns: string;
|
|
21921
22652
|
};
|
|
22653
|
+
upsert_auto_fulfillment_log: {
|
|
22654
|
+
Args: {
|
|
22655
|
+
p_connection_id: string;
|
|
22656
|
+
p_error?: string;
|
|
22657
|
+
p_fulfillment_order_id?: string;
|
|
22658
|
+
p_reason?: string;
|
|
22659
|
+
p_sales_order_id: string;
|
|
22660
|
+
p_status: string;
|
|
22661
|
+
};
|
|
22662
|
+
Returns: undefined;
|
|
22663
|
+
};
|
|
21922
22664
|
};
|
|
21923
22665
|
Enums: {
|
|
21924
22666
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|
|
@@ -21940,6 +22682,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
21940
22682
|
Tables: {
|
|
21941
22683
|
afhandeling_settings: {
|
|
21942
22684
|
Row: {
|
|
22685
|
+
auto_print_delivery_note: boolean;
|
|
22686
|
+
auto_process_paused: boolean;
|
|
21943
22687
|
created_at: string;
|
|
21944
22688
|
extra_pick_days_with_stickers: number;
|
|
21945
22689
|
id: string;
|
|
@@ -21955,6 +22699,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
21955
22699
|
user_id: string;
|
|
21956
22700
|
};
|
|
21957
22701
|
Insert: {
|
|
22702
|
+
auto_print_delivery_note?: boolean;
|
|
22703
|
+
auto_process_paused?: boolean;
|
|
21958
22704
|
created_at?: string;
|
|
21959
22705
|
extra_pick_days_with_stickers?: number;
|
|
21960
22706
|
id?: string;
|
|
@@ -21970,6 +22716,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
21970
22716
|
user_id: string;
|
|
21971
22717
|
};
|
|
21972
22718
|
Update: {
|
|
22719
|
+
auto_print_delivery_note?: boolean;
|
|
22720
|
+
auto_process_paused?: boolean;
|
|
21973
22721
|
created_at?: string;
|
|
21974
22722
|
extra_pick_days_with_stickers?: number;
|
|
21975
22723
|
id?: string;
|
|
@@ -22202,6 +22950,9 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
22202
22950
|
created_at: string;
|
|
22203
22951
|
extra_id: string;
|
|
22204
22952
|
id: string;
|
|
22953
|
+
original_unit_price: number | null;
|
|
22954
|
+
override_reason: string | null;
|
|
22955
|
+
override_unit_price: number | null;
|
|
22205
22956
|
quantity: number;
|
|
22206
22957
|
total_price: number;
|
|
22207
22958
|
unit_price: number;
|
|
@@ -22211,6 +22962,9 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
22211
22962
|
created_at?: string;
|
|
22212
22963
|
extra_id: string;
|
|
22213
22964
|
id?: string;
|
|
22965
|
+
original_unit_price?: number | null;
|
|
22966
|
+
override_reason?: string | null;
|
|
22967
|
+
override_unit_price?: number | null;
|
|
22214
22968
|
quantity?: number;
|
|
22215
22969
|
total_price?: number;
|
|
22216
22970
|
unit_price?: number;
|
|
@@ -22220,6 +22974,9 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
22220
22974
|
created_at?: string;
|
|
22221
22975
|
extra_id?: string;
|
|
22222
22976
|
id?: string;
|
|
22977
|
+
original_unit_price?: number | null;
|
|
22978
|
+
override_reason?: string | null;
|
|
22979
|
+
override_unit_price?: number | null;
|
|
22223
22980
|
quantity?: number;
|
|
22224
22981
|
total_price?: number;
|
|
22225
22982
|
unit_price?: number;
|
|
@@ -22240,11 +22997,15 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
22240
22997
|
};
|
|
22241
22998
|
bookings: {
|
|
22242
22999
|
Row: {
|
|
23000
|
+
archive_reason: string | null;
|
|
23001
|
+
archived_at: string | null;
|
|
23002
|
+
archived_by: string | null;
|
|
22243
23003
|
company_name: string | null;
|
|
22244
23004
|
conflict_checked_at: string | null;
|
|
22245
23005
|
conflict_reason: string | null;
|
|
22246
23006
|
created_at: string;
|
|
22247
23007
|
created_by_role: string | null;
|
|
23008
|
+
customer_address: string | null;
|
|
22248
23009
|
customer_email: string | null;
|
|
22249
23010
|
customer_name: string | null;
|
|
22250
23011
|
end_time: string;
|
|
@@ -22256,7 +23017,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
22256
23017
|
invoiced_at: string | null;
|
|
22257
23018
|
notes: string | null;
|
|
22258
23019
|
number_of_people: number;
|
|
23020
|
+
overridden_at: string | null;
|
|
23021
|
+
overridden_by: string | null;
|
|
23022
|
+
override_reason: string | null;
|
|
23023
|
+
price_override: boolean;
|
|
22259
23024
|
room_id: string;
|
|
23025
|
+
room_price_override: number | null;
|
|
22260
23026
|
start_time: string;
|
|
22261
23027
|
status: string;
|
|
22262
23028
|
total_excl_vat: number | null;
|
|
@@ -22265,11 +23031,15 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
22265
23031
|
vat_amount: number | null;
|
|
22266
23032
|
};
|
|
22267
23033
|
Insert: {
|
|
23034
|
+
archive_reason?: string | null;
|
|
23035
|
+
archived_at?: string | null;
|
|
23036
|
+
archived_by?: string | null;
|
|
22268
23037
|
company_name?: string | null;
|
|
22269
23038
|
conflict_checked_at?: string | null;
|
|
22270
23039
|
conflict_reason?: string | null;
|
|
22271
23040
|
created_at?: string;
|
|
22272
23041
|
created_by_role?: string | null;
|
|
23042
|
+
customer_address?: string | null;
|
|
22273
23043
|
customer_email?: string | null;
|
|
22274
23044
|
customer_name?: string | null;
|
|
22275
23045
|
end_time: string;
|
|
@@ -22281,7 +23051,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
22281
23051
|
invoiced_at?: string | null;
|
|
22282
23052
|
notes?: string | null;
|
|
22283
23053
|
number_of_people?: number;
|
|
23054
|
+
overridden_at?: string | null;
|
|
23055
|
+
overridden_by?: string | null;
|
|
23056
|
+
override_reason?: string | null;
|
|
23057
|
+
price_override?: boolean;
|
|
22284
23058
|
room_id: string;
|
|
23059
|
+
room_price_override?: number | null;
|
|
22285
23060
|
start_time: string;
|
|
22286
23061
|
status?: string;
|
|
22287
23062
|
total_excl_vat?: number | null;
|
|
@@ -22290,11 +23065,15 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
22290
23065
|
vat_amount?: number | null;
|
|
22291
23066
|
};
|
|
22292
23067
|
Update: {
|
|
23068
|
+
archive_reason?: string | null;
|
|
23069
|
+
archived_at?: string | null;
|
|
23070
|
+
archived_by?: string | null;
|
|
22293
23071
|
company_name?: string | null;
|
|
22294
23072
|
conflict_checked_at?: string | null;
|
|
22295
23073
|
conflict_reason?: string | null;
|
|
22296
23074
|
created_at?: string;
|
|
22297
23075
|
created_by_role?: string | null;
|
|
23076
|
+
customer_address?: string | null;
|
|
22298
23077
|
customer_email?: string | null;
|
|
22299
23078
|
customer_name?: string | null;
|
|
22300
23079
|
end_time?: string;
|
|
@@ -22306,7 +23085,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
22306
23085
|
invoiced_at?: string | null;
|
|
22307
23086
|
notes?: string | null;
|
|
22308
23087
|
number_of_people?: number;
|
|
23088
|
+
overridden_at?: string | null;
|
|
23089
|
+
overridden_by?: string | null;
|
|
23090
|
+
override_reason?: string | null;
|
|
23091
|
+
price_override?: boolean;
|
|
22309
23092
|
room_id?: string;
|
|
23093
|
+
room_price_override?: number | null;
|
|
22310
23094
|
start_time?: string;
|
|
22311
23095
|
status?: string;
|
|
22312
23096
|
total_excl_vat?: number | null;
|
|
@@ -23135,8 +23919,27 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
23135
23919
|
customers: {
|
|
23136
23920
|
Row: {
|
|
23137
23921
|
address: string | null;
|
|
23922
|
+
address_line1: string | null;
|
|
23923
|
+
address_line2: string | null;
|
|
23924
|
+
address_type: string | null;
|
|
23925
|
+
attention_to: string | null;
|
|
23926
|
+
bank_account_holder: string | null;
|
|
23927
|
+
bank_account_number: string | null;
|
|
23928
|
+
bank_address_line1: string | null;
|
|
23929
|
+
bank_address_line2: string | null;
|
|
23930
|
+
bank_bic: string | null;
|
|
23931
|
+
bank_city: string | null;
|
|
23932
|
+
bank_country: string | null;
|
|
23933
|
+
bank_house_number: string | null;
|
|
23934
|
+
bank_iban: string | null;
|
|
23935
|
+
bank_name: string | null;
|
|
23936
|
+
bank_national_code: string | null;
|
|
23937
|
+
bank_postal_code: string | null;
|
|
23938
|
+
bank_state: string | null;
|
|
23939
|
+
billing_email: string | null;
|
|
23138
23940
|
bio: string | null;
|
|
23139
23941
|
city: string | null;
|
|
23942
|
+
coc_number: string | null;
|
|
23140
23943
|
commercial_name: string | null;
|
|
23141
23944
|
company_name: string;
|
|
23142
23945
|
connection_status: string;
|
|
@@ -23145,21 +23948,28 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
23145
23948
|
created_at: string;
|
|
23146
23949
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
23147
23950
|
customer_class: string | null;
|
|
23951
|
+
customer_number: string | null;
|
|
23952
|
+
discount_days: number | null;
|
|
23953
|
+
discount_percentage: number | null;
|
|
23148
23954
|
email: string | null;
|
|
23149
23955
|
external_id: string | null;
|
|
23956
|
+
fax: string | null;
|
|
23150
23957
|
floriday_connection_id: string | null;
|
|
23151
23958
|
floriday_organization_id: string | null;
|
|
23152
23959
|
floriday_raw: import("../integrations/supabase/types").Json | null;
|
|
23153
23960
|
gln: string | null;
|
|
23154
23961
|
house_number: string | null;
|
|
23962
|
+
icp_country_code: string | null;
|
|
23155
23963
|
id: string;
|
|
23156
23964
|
is_active: boolean;
|
|
23965
|
+
language: string | null;
|
|
23157
23966
|
last_synced_at: string | null;
|
|
23158
23967
|
logo_url: string | null;
|
|
23159
23968
|
markets: string[];
|
|
23160
23969
|
notes: string | null;
|
|
23161
23970
|
organization_type: string | null;
|
|
23162
23971
|
payment_methods: string[];
|
|
23972
|
+
payment_term_days: number | null;
|
|
23163
23973
|
phone: string | null;
|
|
23164
23974
|
postal_code: string | null;
|
|
23165
23975
|
product_groups: string[];
|
|
@@ -23170,13 +23980,33 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
23170
23980
|
sync_status: string;
|
|
23171
23981
|
trade_forms: string[];
|
|
23172
23982
|
updated_at: string;
|
|
23983
|
+
vat_display: string | null;
|
|
23173
23984
|
vat_number: string | null;
|
|
23174
23985
|
website: string | null;
|
|
23175
23986
|
};
|
|
23176
23987
|
Insert: {
|
|
23177
23988
|
address?: string | null;
|
|
23989
|
+
address_line1?: string | null;
|
|
23990
|
+
address_line2?: string | null;
|
|
23991
|
+
address_type?: string | null;
|
|
23992
|
+
attention_to?: string | null;
|
|
23993
|
+
bank_account_holder?: string | null;
|
|
23994
|
+
bank_account_number?: string | null;
|
|
23995
|
+
bank_address_line1?: string | null;
|
|
23996
|
+
bank_address_line2?: string | null;
|
|
23997
|
+
bank_bic?: string | null;
|
|
23998
|
+
bank_city?: string | null;
|
|
23999
|
+
bank_country?: string | null;
|
|
24000
|
+
bank_house_number?: string | null;
|
|
24001
|
+
bank_iban?: string | null;
|
|
24002
|
+
bank_name?: string | null;
|
|
24003
|
+
bank_national_code?: string | null;
|
|
24004
|
+
bank_postal_code?: string | null;
|
|
24005
|
+
bank_state?: string | null;
|
|
24006
|
+
billing_email?: string | null;
|
|
23178
24007
|
bio?: string | null;
|
|
23179
24008
|
city?: string | null;
|
|
24009
|
+
coc_number?: string | null;
|
|
23180
24010
|
commercial_name?: string | null;
|
|
23181
24011
|
company_name: string;
|
|
23182
24012
|
connection_status?: string;
|
|
@@ -23185,21 +24015,28 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
23185
24015
|
created_at?: string;
|
|
23186
24016
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
23187
24017
|
customer_class?: string | null;
|
|
24018
|
+
customer_number?: string | null;
|
|
24019
|
+
discount_days?: number | null;
|
|
24020
|
+
discount_percentage?: number | null;
|
|
23188
24021
|
email?: string | null;
|
|
23189
24022
|
external_id?: string | null;
|
|
24023
|
+
fax?: string | null;
|
|
23190
24024
|
floriday_connection_id?: string | null;
|
|
23191
24025
|
floriday_organization_id?: string | null;
|
|
23192
24026
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
23193
24027
|
gln?: string | null;
|
|
23194
24028
|
house_number?: string | null;
|
|
24029
|
+
icp_country_code?: string | null;
|
|
23195
24030
|
id?: string;
|
|
23196
24031
|
is_active?: boolean;
|
|
24032
|
+
language?: string | null;
|
|
23197
24033
|
last_synced_at?: string | null;
|
|
23198
24034
|
logo_url?: string | null;
|
|
23199
24035
|
markets?: string[];
|
|
23200
24036
|
notes?: string | null;
|
|
23201
24037
|
organization_type?: string | null;
|
|
23202
24038
|
payment_methods?: string[];
|
|
24039
|
+
payment_term_days?: number | null;
|
|
23203
24040
|
phone?: string | null;
|
|
23204
24041
|
postal_code?: string | null;
|
|
23205
24042
|
product_groups?: string[];
|
|
@@ -23210,13 +24047,33 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
23210
24047
|
sync_status?: string;
|
|
23211
24048
|
trade_forms?: string[];
|
|
23212
24049
|
updated_at?: string;
|
|
24050
|
+
vat_display?: string | null;
|
|
23213
24051
|
vat_number?: string | null;
|
|
23214
24052
|
website?: string | null;
|
|
23215
24053
|
};
|
|
23216
24054
|
Update: {
|
|
23217
24055
|
address?: string | null;
|
|
24056
|
+
address_line1?: string | null;
|
|
24057
|
+
address_line2?: string | null;
|
|
24058
|
+
address_type?: string | null;
|
|
24059
|
+
attention_to?: string | null;
|
|
24060
|
+
bank_account_holder?: string | null;
|
|
24061
|
+
bank_account_number?: string | null;
|
|
24062
|
+
bank_address_line1?: string | null;
|
|
24063
|
+
bank_address_line2?: string | null;
|
|
24064
|
+
bank_bic?: string | null;
|
|
24065
|
+
bank_city?: string | null;
|
|
24066
|
+
bank_country?: string | null;
|
|
24067
|
+
bank_house_number?: string | null;
|
|
24068
|
+
bank_iban?: string | null;
|
|
24069
|
+
bank_name?: string | null;
|
|
24070
|
+
bank_national_code?: string | null;
|
|
24071
|
+
bank_postal_code?: string | null;
|
|
24072
|
+
bank_state?: string | null;
|
|
24073
|
+
billing_email?: string | null;
|
|
23218
24074
|
bio?: string | null;
|
|
23219
24075
|
city?: string | null;
|
|
24076
|
+
coc_number?: string | null;
|
|
23220
24077
|
commercial_name?: string | null;
|
|
23221
24078
|
company_name?: string;
|
|
23222
24079
|
connection_status?: string;
|
|
@@ -23225,21 +24082,28 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
23225
24082
|
created_at?: string;
|
|
23226
24083
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
23227
24084
|
customer_class?: string | null;
|
|
24085
|
+
customer_number?: string | null;
|
|
24086
|
+
discount_days?: number | null;
|
|
24087
|
+
discount_percentage?: number | null;
|
|
23228
24088
|
email?: string | null;
|
|
23229
24089
|
external_id?: string | null;
|
|
24090
|
+
fax?: string | null;
|
|
23230
24091
|
floriday_connection_id?: string | null;
|
|
23231
24092
|
floriday_organization_id?: string | null;
|
|
23232
24093
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
23233
24094
|
gln?: string | null;
|
|
23234
24095
|
house_number?: string | null;
|
|
24096
|
+
icp_country_code?: string | null;
|
|
23235
24097
|
id?: string;
|
|
23236
24098
|
is_active?: boolean;
|
|
24099
|
+
language?: string | null;
|
|
23237
24100
|
last_synced_at?: string | null;
|
|
23238
24101
|
logo_url?: string | null;
|
|
23239
24102
|
markets?: string[];
|
|
23240
24103
|
notes?: string | null;
|
|
23241
24104
|
organization_type?: string | null;
|
|
23242
24105
|
payment_methods?: string[];
|
|
24106
|
+
payment_term_days?: number | null;
|
|
23243
24107
|
phone?: string | null;
|
|
23244
24108
|
postal_code?: string | null;
|
|
23245
24109
|
product_groups?: string[];
|
|
@@ -23250,6 +24114,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
23250
24114
|
sync_status?: string;
|
|
23251
24115
|
trade_forms?: string[];
|
|
23252
24116
|
updated_at?: string;
|
|
24117
|
+
vat_display?: string | null;
|
|
23253
24118
|
vat_number?: string | null;
|
|
23254
24119
|
website?: string | null;
|
|
23255
24120
|
};
|
|
@@ -25196,6 +26061,54 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
25196
26061
|
referencedColumns: ["id"];
|
|
25197
26062
|
}];
|
|
25198
26063
|
};
|
|
26064
|
+
floriday_auto_fulfillment_log: {
|
|
26065
|
+
Row: {
|
|
26066
|
+
attempts: number;
|
|
26067
|
+
connection_id: string;
|
|
26068
|
+
created_at: string;
|
|
26069
|
+
error: string | null;
|
|
26070
|
+
fulfillment_order_id: string | null;
|
|
26071
|
+
id: string;
|
|
26072
|
+
last_attempt_at: string | null;
|
|
26073
|
+
reason: string | null;
|
|
26074
|
+
sales_order_id: string;
|
|
26075
|
+
status: string;
|
|
26076
|
+
updated_at: string;
|
|
26077
|
+
};
|
|
26078
|
+
Insert: {
|
|
26079
|
+
attempts?: number;
|
|
26080
|
+
connection_id: string;
|
|
26081
|
+
created_at?: string;
|
|
26082
|
+
error?: string | null;
|
|
26083
|
+
fulfillment_order_id?: string | null;
|
|
26084
|
+
id?: string;
|
|
26085
|
+
last_attempt_at?: string | null;
|
|
26086
|
+
reason?: string | null;
|
|
26087
|
+
sales_order_id: string;
|
|
26088
|
+
status?: string;
|
|
26089
|
+
updated_at?: string;
|
|
26090
|
+
};
|
|
26091
|
+
Update: {
|
|
26092
|
+
attempts?: number;
|
|
26093
|
+
connection_id?: string;
|
|
26094
|
+
created_at?: string;
|
|
26095
|
+
error?: string | null;
|
|
26096
|
+
fulfillment_order_id?: string | null;
|
|
26097
|
+
id?: string;
|
|
26098
|
+
last_attempt_at?: string | null;
|
|
26099
|
+
reason?: string | null;
|
|
26100
|
+
sales_order_id?: string;
|
|
26101
|
+
status?: string;
|
|
26102
|
+
updated_at?: string;
|
|
26103
|
+
};
|
|
26104
|
+
Relationships: [{
|
|
26105
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
26106
|
+
columns: ["connection_id"];
|
|
26107
|
+
isOneToOne: false;
|
|
26108
|
+
referencedRelation: "floriday_connections";
|
|
26109
|
+
referencedColumns: ["id"];
|
|
26110
|
+
}];
|
|
26111
|
+
};
|
|
25199
26112
|
floriday_base_items_cache: {
|
|
25200
26113
|
Row: {
|
|
25201
26114
|
connection_id: string;
|
|
@@ -26300,6 +27213,24 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
26300
27213
|
referencedColumns: ["id"];
|
|
26301
27214
|
}];
|
|
26302
27215
|
};
|
|
27216
|
+
floriday_rate_limit_state: {
|
|
27217
|
+
Row: {
|
|
27218
|
+
bucket: string;
|
|
27219
|
+
last_refill_at: string;
|
|
27220
|
+
tokens: number;
|
|
27221
|
+
};
|
|
27222
|
+
Insert: {
|
|
27223
|
+
bucket: string;
|
|
27224
|
+
last_refill_at?: string;
|
|
27225
|
+
tokens: number;
|
|
27226
|
+
};
|
|
27227
|
+
Update: {
|
|
27228
|
+
bucket?: string;
|
|
27229
|
+
last_refill_at?: string;
|
|
27230
|
+
tokens?: number;
|
|
27231
|
+
};
|
|
27232
|
+
Relationships: [];
|
|
27233
|
+
};
|
|
26303
27234
|
floriday_resource_schemas: {
|
|
26304
27235
|
Row: {
|
|
26305
27236
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -28734,6 +29665,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
28734
29665
|
order_date: string;
|
|
28735
29666
|
order_number: string;
|
|
28736
29667
|
order_source: string;
|
|
29668
|
+
plan_locked_at: string | null;
|
|
29669
|
+
plan_locked_ref: string | null;
|
|
28737
29670
|
status: string;
|
|
28738
29671
|
total: string;
|
|
28739
29672
|
updated_at: string;
|
|
@@ -28750,6 +29683,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
28750
29683
|
order_date?: string;
|
|
28751
29684
|
order_number: string;
|
|
28752
29685
|
order_source?: string;
|
|
29686
|
+
plan_locked_at?: string | null;
|
|
29687
|
+
plan_locked_ref?: string | null;
|
|
28753
29688
|
status?: string;
|
|
28754
29689
|
total?: string;
|
|
28755
29690
|
updated_at?: string;
|
|
@@ -28766,6 +29701,8 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
28766
29701
|
order_date?: string;
|
|
28767
29702
|
order_number?: string;
|
|
28768
29703
|
order_source?: string;
|
|
29704
|
+
plan_locked_at?: string | null;
|
|
29705
|
+
plan_locked_ref?: string | null;
|
|
28769
29706
|
status?: string;
|
|
28770
29707
|
total?: string;
|
|
28771
29708
|
updated_at?: string;
|
|
@@ -29134,6 +30071,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
29134
30071
|
};
|
|
29135
30072
|
profiles: {
|
|
29136
30073
|
Row: {
|
|
30074
|
+
address: string | null;
|
|
29137
30075
|
created_at: string;
|
|
29138
30076
|
display_name: string | null;
|
|
29139
30077
|
email: string | null;
|
|
@@ -29144,6 +30082,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
29144
30082
|
updated_at: string;
|
|
29145
30083
|
};
|
|
29146
30084
|
Insert: {
|
|
30085
|
+
address?: string | null;
|
|
29147
30086
|
created_at?: string;
|
|
29148
30087
|
display_name?: string | null;
|
|
29149
30088
|
email?: string | null;
|
|
@@ -29154,6 +30093,7 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
29154
30093
|
updated_at?: string;
|
|
29155
30094
|
};
|
|
29156
30095
|
Update: {
|
|
30096
|
+
address?: string | null;
|
|
29157
30097
|
created_at?: string;
|
|
29158
30098
|
display_name?: string | null;
|
|
29159
30099
|
email?: string | null;
|
|
@@ -30401,6 +31341,114 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
30401
31341
|
};
|
|
30402
31342
|
Relationships: [];
|
|
30403
31343
|
};
|
|
31344
|
+
trade_item_supply_lines: {
|
|
31345
|
+
Row: {
|
|
31346
|
+
available_quantity: number | null;
|
|
31347
|
+
connection_id: string;
|
|
31348
|
+
created_at: string;
|
|
31349
|
+
currency: string | null;
|
|
31350
|
+
endpoint_family: string | null;
|
|
31351
|
+
environment: string | null;
|
|
31352
|
+
id: string;
|
|
31353
|
+
last_error: string | null;
|
|
31354
|
+
last_status: number | null;
|
|
31355
|
+
packing_configuration_id: string | null;
|
|
31356
|
+
period_end: string | null;
|
|
31357
|
+
period_start: string | null;
|
|
31358
|
+
price_per_piece: number | null;
|
|
31359
|
+
sales_unit: string | null;
|
|
31360
|
+
supply_line_id: string | null;
|
|
31361
|
+
supply_type: string;
|
|
31362
|
+
trade_item_id: string;
|
|
31363
|
+
updated_at: string;
|
|
31364
|
+
user_id: string;
|
|
31365
|
+
week: number | null;
|
|
31366
|
+
year: number | null;
|
|
31367
|
+
};
|
|
31368
|
+
Insert: {
|
|
31369
|
+
available_quantity?: number | null;
|
|
31370
|
+
connection_id: string;
|
|
31371
|
+
created_at?: string;
|
|
31372
|
+
currency?: string | null;
|
|
31373
|
+
endpoint_family?: string | null;
|
|
31374
|
+
environment?: string | null;
|
|
31375
|
+
id?: string;
|
|
31376
|
+
last_error?: string | null;
|
|
31377
|
+
last_status?: number | null;
|
|
31378
|
+
packing_configuration_id?: string | null;
|
|
31379
|
+
period_end?: string | null;
|
|
31380
|
+
period_start?: string | null;
|
|
31381
|
+
price_per_piece?: number | null;
|
|
31382
|
+
sales_unit?: string | null;
|
|
31383
|
+
supply_line_id?: string | null;
|
|
31384
|
+
supply_type?: string;
|
|
31385
|
+
trade_item_id: string;
|
|
31386
|
+
updated_at?: string;
|
|
31387
|
+
user_id: string;
|
|
31388
|
+
week?: number | null;
|
|
31389
|
+
year?: number | null;
|
|
31390
|
+
};
|
|
31391
|
+
Update: {
|
|
31392
|
+
available_quantity?: number | null;
|
|
31393
|
+
connection_id?: string;
|
|
31394
|
+
created_at?: string;
|
|
31395
|
+
currency?: string | null;
|
|
31396
|
+
endpoint_family?: string | null;
|
|
31397
|
+
environment?: string | null;
|
|
31398
|
+
id?: string;
|
|
31399
|
+
last_error?: string | null;
|
|
31400
|
+
last_status?: number | null;
|
|
31401
|
+
packing_configuration_id?: string | null;
|
|
31402
|
+
period_end?: string | null;
|
|
31403
|
+
period_start?: string | null;
|
|
31404
|
+
price_per_piece?: number | null;
|
|
31405
|
+
sales_unit?: string | null;
|
|
31406
|
+
supply_line_id?: string | null;
|
|
31407
|
+
supply_type?: string;
|
|
31408
|
+
trade_item_id?: string;
|
|
31409
|
+
updated_at?: string;
|
|
31410
|
+
user_id?: string;
|
|
31411
|
+
week?: number | null;
|
|
31412
|
+
year?: number | null;
|
|
31413
|
+
};
|
|
31414
|
+
Relationships: [];
|
|
31415
|
+
};
|
|
31416
|
+
trade_item_warehouse_preferences: {
|
|
31417
|
+
Row: {
|
|
31418
|
+
connection_id: string;
|
|
31419
|
+
created_at: string;
|
|
31420
|
+
id: string;
|
|
31421
|
+
trade_item_id: string;
|
|
31422
|
+
updated_at: string;
|
|
31423
|
+
warehouse_id: string;
|
|
31424
|
+
warehouse_name: string | null;
|
|
31425
|
+
};
|
|
31426
|
+
Insert: {
|
|
31427
|
+
connection_id: string;
|
|
31428
|
+
created_at?: string;
|
|
31429
|
+
id?: string;
|
|
31430
|
+
trade_item_id: string;
|
|
31431
|
+
updated_at?: string;
|
|
31432
|
+
warehouse_id: string;
|
|
31433
|
+
warehouse_name?: string | null;
|
|
31434
|
+
};
|
|
31435
|
+
Update: {
|
|
31436
|
+
connection_id?: string;
|
|
31437
|
+
created_at?: string;
|
|
31438
|
+
id?: string;
|
|
31439
|
+
trade_item_id?: string;
|
|
31440
|
+
updated_at?: string;
|
|
31441
|
+
warehouse_id?: string;
|
|
31442
|
+
warehouse_name?: string | null;
|
|
31443
|
+
};
|
|
31444
|
+
Relationships: [{
|
|
31445
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
31446
|
+
columns: ["connection_id"];
|
|
31447
|
+
isOneToOne: false;
|
|
31448
|
+
referencedRelation: "floriday_connections";
|
|
31449
|
+
referencedColumns: ["id"];
|
|
31450
|
+
}];
|
|
31451
|
+
};
|
|
30404
31452
|
twinfield_connections: {
|
|
30405
31453
|
Row: {
|
|
30406
31454
|
access_token: string | null;
|
|
@@ -32086,7 +33134,19 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
32086
33134
|
};
|
|
32087
33135
|
cleanup_old_bookings: {
|
|
32088
33136
|
Args: never;
|
|
32089
|
-
Returns:
|
|
33137
|
+
Returns: undefined;
|
|
33138
|
+
};
|
|
33139
|
+
consume_floriday_rate_limit: {
|
|
33140
|
+
Args: {
|
|
33141
|
+
p_bucket: string;
|
|
33142
|
+
p_capacity: number;
|
|
33143
|
+
p_cost?: number;
|
|
33144
|
+
p_refill_per_sec: number;
|
|
33145
|
+
};
|
|
33146
|
+
Returns: {
|
|
33147
|
+
granted: boolean;
|
|
33148
|
+
wait_ms: number;
|
|
33149
|
+
}[];
|
|
32090
33150
|
};
|
|
32091
33151
|
control_get_todays_carts: {
|
|
32092
33152
|
Args: never;
|
|
@@ -32168,6 +33228,12 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
32168
33228
|
status: string;
|
|
32169
33229
|
}[];
|
|
32170
33230
|
};
|
|
33231
|
+
enqueue_cart_replan_if_unlocked: {
|
|
33232
|
+
Args: {
|
|
33233
|
+
p_order_id: string;
|
|
33234
|
+
};
|
|
33235
|
+
Returns: undefined;
|
|
33236
|
+
};
|
|
32171
33237
|
ensure_trade_item_stock_row: {
|
|
32172
33238
|
Args: {
|
|
32173
33239
|
p_key: string;
|
|
@@ -32561,6 +33627,24 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
32561
33627
|
};
|
|
32562
33628
|
Returns: undefined;
|
|
32563
33629
|
};
|
|
33630
|
+
recompute_order_status: {
|
|
33631
|
+
Args: {
|
|
33632
|
+
p_order_id: string;
|
|
33633
|
+
};
|
|
33634
|
+
Returns: undefined;
|
|
33635
|
+
};
|
|
33636
|
+
recompute_reserved_for_order: {
|
|
33637
|
+
Args: {
|
|
33638
|
+
p_order_id: string;
|
|
33639
|
+
};
|
|
33640
|
+
Returns: undefined;
|
|
33641
|
+
};
|
|
33642
|
+
recompute_reserved_stock: {
|
|
33643
|
+
Args: {
|
|
33644
|
+
p_trade_item_key: string;
|
|
33645
|
+
};
|
|
33646
|
+
Returns: undefined;
|
|
33647
|
+
};
|
|
32564
33648
|
refresh_external_customers_grouped: {
|
|
32565
33649
|
Args: never;
|
|
32566
33650
|
Returns: undefined;
|
|
@@ -32875,6 +33959,24 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
32875
33959
|
};
|
|
32876
33960
|
Returns: string[];
|
|
32877
33961
|
};
|
|
33962
|
+
sync_cached_packing_from_product: {
|
|
33963
|
+
Args: {
|
|
33964
|
+
p_product_id: string;
|
|
33965
|
+
};
|
|
33966
|
+
Returns: undefined;
|
|
33967
|
+
};
|
|
33968
|
+
sync_order_cart_item_packing_from_product: {
|
|
33969
|
+
Args: {
|
|
33970
|
+
p_product_id: string;
|
|
33971
|
+
};
|
|
33972
|
+
Returns: undefined;
|
|
33973
|
+
};
|
|
33974
|
+
sync_product_packing_from_floriday_cache: {
|
|
33975
|
+
Args: {
|
|
33976
|
+
p_floriday_id: string;
|
|
33977
|
+
};
|
|
33978
|
+
Returns: undefined;
|
|
33979
|
+
};
|
|
32878
33980
|
twinfield_decrypt: {
|
|
32879
33981
|
Args: {
|
|
32880
33982
|
cipher: string;
|
|
@@ -32887,6 +33989,17 @@ export declare const syncAllAccountingProviders: import("@tanstack/start-client-
|
|
|
32887
33989
|
};
|
|
32888
33990
|
Returns: string;
|
|
32889
33991
|
};
|
|
33992
|
+
upsert_auto_fulfillment_log: {
|
|
33993
|
+
Args: {
|
|
33994
|
+
p_connection_id: string;
|
|
33995
|
+
p_error?: string;
|
|
33996
|
+
p_fulfillment_order_id?: string;
|
|
33997
|
+
p_reason?: string;
|
|
33998
|
+
p_sales_order_id: string;
|
|
33999
|
+
p_status: string;
|
|
34000
|
+
};
|
|
34001
|
+
Returns: undefined;
|
|
34002
|
+
};
|
|
32890
34003
|
};
|
|
32891
34004
|
Enums: {
|
|
32892
34005
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|