@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
|
@@ -3,6 +3,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
3
3
|
Tables: {
|
|
4
4
|
afhandeling_settings: {
|
|
5
5
|
Row: {
|
|
6
|
+
auto_print_delivery_note: boolean;
|
|
7
|
+
auto_process_paused: boolean;
|
|
6
8
|
created_at: string;
|
|
7
9
|
extra_pick_days_with_stickers: number;
|
|
8
10
|
id: string;
|
|
@@ -18,6 +20,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
18
20
|
user_id: string;
|
|
19
21
|
};
|
|
20
22
|
Insert: {
|
|
23
|
+
auto_print_delivery_note?: boolean;
|
|
24
|
+
auto_process_paused?: boolean;
|
|
21
25
|
created_at?: string;
|
|
22
26
|
extra_pick_days_with_stickers?: number;
|
|
23
27
|
id?: string;
|
|
@@ -33,6 +37,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
33
37
|
user_id: string;
|
|
34
38
|
};
|
|
35
39
|
Update: {
|
|
40
|
+
auto_print_delivery_note?: boolean;
|
|
41
|
+
auto_process_paused?: boolean;
|
|
36
42
|
created_at?: string;
|
|
37
43
|
extra_pick_days_with_stickers?: number;
|
|
38
44
|
id?: string;
|
|
@@ -265,6 +271,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
265
271
|
created_at: string;
|
|
266
272
|
extra_id: string;
|
|
267
273
|
id: string;
|
|
274
|
+
original_unit_price: number | null;
|
|
275
|
+
override_reason: string | null;
|
|
276
|
+
override_unit_price: number | null;
|
|
268
277
|
quantity: number;
|
|
269
278
|
total_price: number;
|
|
270
279
|
unit_price: number;
|
|
@@ -274,6 +283,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
274
283
|
created_at?: string;
|
|
275
284
|
extra_id: string;
|
|
276
285
|
id?: string;
|
|
286
|
+
original_unit_price?: number | null;
|
|
287
|
+
override_reason?: string | null;
|
|
288
|
+
override_unit_price?: number | null;
|
|
277
289
|
quantity?: number;
|
|
278
290
|
total_price?: number;
|
|
279
291
|
unit_price?: number;
|
|
@@ -283,6 +295,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
283
295
|
created_at?: string;
|
|
284
296
|
extra_id?: string;
|
|
285
297
|
id?: string;
|
|
298
|
+
original_unit_price?: number | null;
|
|
299
|
+
override_reason?: string | null;
|
|
300
|
+
override_unit_price?: number | null;
|
|
286
301
|
quantity?: number;
|
|
287
302
|
total_price?: number;
|
|
288
303
|
unit_price?: number;
|
|
@@ -303,11 +318,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
303
318
|
};
|
|
304
319
|
bookings: {
|
|
305
320
|
Row: {
|
|
321
|
+
archive_reason: string | null;
|
|
322
|
+
archived_at: string | null;
|
|
323
|
+
archived_by: string | null;
|
|
306
324
|
company_name: string | null;
|
|
307
325
|
conflict_checked_at: string | null;
|
|
308
326
|
conflict_reason: string | null;
|
|
309
327
|
created_at: string;
|
|
310
328
|
created_by_role: string | null;
|
|
329
|
+
customer_address: string | null;
|
|
311
330
|
customer_email: string | null;
|
|
312
331
|
customer_name: string | null;
|
|
313
332
|
end_time: string;
|
|
@@ -319,7 +338,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
319
338
|
invoiced_at: string | null;
|
|
320
339
|
notes: string | null;
|
|
321
340
|
number_of_people: number;
|
|
341
|
+
overridden_at: string | null;
|
|
342
|
+
overridden_by: string | null;
|
|
343
|
+
override_reason: string | null;
|
|
344
|
+
price_override: boolean;
|
|
322
345
|
room_id: string;
|
|
346
|
+
room_price_override: number | null;
|
|
323
347
|
start_time: string;
|
|
324
348
|
status: string;
|
|
325
349
|
total_excl_vat: number | null;
|
|
@@ -328,11 +352,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
328
352
|
vat_amount: number | null;
|
|
329
353
|
};
|
|
330
354
|
Insert: {
|
|
355
|
+
archive_reason?: string | null;
|
|
356
|
+
archived_at?: string | null;
|
|
357
|
+
archived_by?: string | null;
|
|
331
358
|
company_name?: string | null;
|
|
332
359
|
conflict_checked_at?: string | null;
|
|
333
360
|
conflict_reason?: string | null;
|
|
334
361
|
created_at?: string;
|
|
335
362
|
created_by_role?: string | null;
|
|
363
|
+
customer_address?: string | null;
|
|
336
364
|
customer_email?: string | null;
|
|
337
365
|
customer_name?: string | null;
|
|
338
366
|
end_time: string;
|
|
@@ -344,7 +372,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
344
372
|
invoiced_at?: string | null;
|
|
345
373
|
notes?: string | null;
|
|
346
374
|
number_of_people?: number;
|
|
375
|
+
overridden_at?: string | null;
|
|
376
|
+
overridden_by?: string | null;
|
|
377
|
+
override_reason?: string | null;
|
|
378
|
+
price_override?: boolean;
|
|
347
379
|
room_id: string;
|
|
380
|
+
room_price_override?: number | null;
|
|
348
381
|
start_time: string;
|
|
349
382
|
status?: string;
|
|
350
383
|
total_excl_vat?: number | null;
|
|
@@ -353,11 +386,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
353
386
|
vat_amount?: number | null;
|
|
354
387
|
};
|
|
355
388
|
Update: {
|
|
389
|
+
archive_reason?: string | null;
|
|
390
|
+
archived_at?: string | null;
|
|
391
|
+
archived_by?: string | null;
|
|
356
392
|
company_name?: string | null;
|
|
357
393
|
conflict_checked_at?: string | null;
|
|
358
394
|
conflict_reason?: string | null;
|
|
359
395
|
created_at?: string;
|
|
360
396
|
created_by_role?: string | null;
|
|
397
|
+
customer_address?: string | null;
|
|
361
398
|
customer_email?: string | null;
|
|
362
399
|
customer_name?: string | null;
|
|
363
400
|
end_time?: string;
|
|
@@ -369,7 +406,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
369
406
|
invoiced_at?: string | null;
|
|
370
407
|
notes?: string | null;
|
|
371
408
|
number_of_people?: number;
|
|
409
|
+
overridden_at?: string | null;
|
|
410
|
+
overridden_by?: string | null;
|
|
411
|
+
override_reason?: string | null;
|
|
412
|
+
price_override?: boolean;
|
|
372
413
|
room_id?: string;
|
|
414
|
+
room_price_override?: number | null;
|
|
373
415
|
start_time?: string;
|
|
374
416
|
status?: string;
|
|
375
417
|
total_excl_vat?: number | null;
|
|
@@ -1198,8 +1240,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1198
1240
|
customers: {
|
|
1199
1241
|
Row: {
|
|
1200
1242
|
address: string | null;
|
|
1243
|
+
address_line1: string | null;
|
|
1244
|
+
address_line2: string | null;
|
|
1245
|
+
address_type: string | null;
|
|
1246
|
+
attention_to: string | null;
|
|
1247
|
+
bank_account_holder: string | null;
|
|
1248
|
+
bank_account_number: string | null;
|
|
1249
|
+
bank_address_line1: string | null;
|
|
1250
|
+
bank_address_line2: string | null;
|
|
1251
|
+
bank_bic: string | null;
|
|
1252
|
+
bank_city: string | null;
|
|
1253
|
+
bank_country: string | null;
|
|
1254
|
+
bank_house_number: string | null;
|
|
1255
|
+
bank_iban: string | null;
|
|
1256
|
+
bank_name: string | null;
|
|
1257
|
+
bank_national_code: string | null;
|
|
1258
|
+
bank_postal_code: string | null;
|
|
1259
|
+
bank_state: string | null;
|
|
1260
|
+
billing_email: string | null;
|
|
1201
1261
|
bio: string | null;
|
|
1202
1262
|
city: string | null;
|
|
1263
|
+
coc_number: string | null;
|
|
1203
1264
|
commercial_name: string | null;
|
|
1204
1265
|
company_name: string;
|
|
1205
1266
|
connection_status: string;
|
|
@@ -1208,21 +1269,28 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1208
1269
|
created_at: string;
|
|
1209
1270
|
custom_fields: import("./types").Json;
|
|
1210
1271
|
customer_class: string | null;
|
|
1272
|
+
customer_number: string | null;
|
|
1273
|
+
discount_days: number | null;
|
|
1274
|
+
discount_percentage: number | null;
|
|
1211
1275
|
email: string | null;
|
|
1212
1276
|
external_id: string | null;
|
|
1277
|
+
fax: string | null;
|
|
1213
1278
|
floriday_connection_id: string | null;
|
|
1214
1279
|
floriday_organization_id: string | null;
|
|
1215
1280
|
floriday_raw: import("./types").Json | null;
|
|
1216
1281
|
gln: string | null;
|
|
1217
1282
|
house_number: string | null;
|
|
1283
|
+
icp_country_code: string | null;
|
|
1218
1284
|
id: string;
|
|
1219
1285
|
is_active: boolean;
|
|
1286
|
+
language: string | null;
|
|
1220
1287
|
last_synced_at: string | null;
|
|
1221
1288
|
logo_url: string | null;
|
|
1222
1289
|
markets: string[];
|
|
1223
1290
|
notes: string | null;
|
|
1224
1291
|
organization_type: string | null;
|
|
1225
1292
|
payment_methods: string[];
|
|
1293
|
+
payment_term_days: number | null;
|
|
1226
1294
|
phone: string | null;
|
|
1227
1295
|
postal_code: string | null;
|
|
1228
1296
|
product_groups: string[];
|
|
@@ -1233,13 +1301,33 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1233
1301
|
sync_status: string;
|
|
1234
1302
|
trade_forms: string[];
|
|
1235
1303
|
updated_at: string;
|
|
1304
|
+
vat_display: string | null;
|
|
1236
1305
|
vat_number: string | null;
|
|
1237
1306
|
website: string | null;
|
|
1238
1307
|
};
|
|
1239
1308
|
Insert: {
|
|
1240
1309
|
address?: string | null;
|
|
1310
|
+
address_line1?: string | null;
|
|
1311
|
+
address_line2?: string | null;
|
|
1312
|
+
address_type?: string | null;
|
|
1313
|
+
attention_to?: string | null;
|
|
1314
|
+
bank_account_holder?: string | null;
|
|
1315
|
+
bank_account_number?: string | null;
|
|
1316
|
+
bank_address_line1?: string | null;
|
|
1317
|
+
bank_address_line2?: string | null;
|
|
1318
|
+
bank_bic?: string | null;
|
|
1319
|
+
bank_city?: string | null;
|
|
1320
|
+
bank_country?: string | null;
|
|
1321
|
+
bank_house_number?: string | null;
|
|
1322
|
+
bank_iban?: string | null;
|
|
1323
|
+
bank_name?: string | null;
|
|
1324
|
+
bank_national_code?: string | null;
|
|
1325
|
+
bank_postal_code?: string | null;
|
|
1326
|
+
bank_state?: string | null;
|
|
1327
|
+
billing_email?: string | null;
|
|
1241
1328
|
bio?: string | null;
|
|
1242
1329
|
city?: string | null;
|
|
1330
|
+
coc_number?: string | null;
|
|
1243
1331
|
commercial_name?: string | null;
|
|
1244
1332
|
company_name: string;
|
|
1245
1333
|
connection_status?: string;
|
|
@@ -1248,21 +1336,28 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1248
1336
|
created_at?: string;
|
|
1249
1337
|
custom_fields?: import("./types").Json;
|
|
1250
1338
|
customer_class?: string | null;
|
|
1339
|
+
customer_number?: string | null;
|
|
1340
|
+
discount_days?: number | null;
|
|
1341
|
+
discount_percentage?: number | null;
|
|
1251
1342
|
email?: string | null;
|
|
1252
1343
|
external_id?: string | null;
|
|
1344
|
+
fax?: string | null;
|
|
1253
1345
|
floriday_connection_id?: string | null;
|
|
1254
1346
|
floriday_organization_id?: string | null;
|
|
1255
1347
|
floriday_raw?: import("./types").Json | null;
|
|
1256
1348
|
gln?: string | null;
|
|
1257
1349
|
house_number?: string | null;
|
|
1350
|
+
icp_country_code?: string | null;
|
|
1258
1351
|
id?: string;
|
|
1259
1352
|
is_active?: boolean;
|
|
1353
|
+
language?: string | null;
|
|
1260
1354
|
last_synced_at?: string | null;
|
|
1261
1355
|
logo_url?: string | null;
|
|
1262
1356
|
markets?: string[];
|
|
1263
1357
|
notes?: string | null;
|
|
1264
1358
|
organization_type?: string | null;
|
|
1265
1359
|
payment_methods?: string[];
|
|
1360
|
+
payment_term_days?: number | null;
|
|
1266
1361
|
phone?: string | null;
|
|
1267
1362
|
postal_code?: string | null;
|
|
1268
1363
|
product_groups?: string[];
|
|
@@ -1273,13 +1368,33 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1273
1368
|
sync_status?: string;
|
|
1274
1369
|
trade_forms?: string[];
|
|
1275
1370
|
updated_at?: string;
|
|
1371
|
+
vat_display?: string | null;
|
|
1276
1372
|
vat_number?: string | null;
|
|
1277
1373
|
website?: string | null;
|
|
1278
1374
|
};
|
|
1279
1375
|
Update: {
|
|
1280
1376
|
address?: string | null;
|
|
1377
|
+
address_line1?: string | null;
|
|
1378
|
+
address_line2?: string | null;
|
|
1379
|
+
address_type?: string | null;
|
|
1380
|
+
attention_to?: string | null;
|
|
1381
|
+
bank_account_holder?: string | null;
|
|
1382
|
+
bank_account_number?: string | null;
|
|
1383
|
+
bank_address_line1?: string | null;
|
|
1384
|
+
bank_address_line2?: string | null;
|
|
1385
|
+
bank_bic?: string | null;
|
|
1386
|
+
bank_city?: string | null;
|
|
1387
|
+
bank_country?: string | null;
|
|
1388
|
+
bank_house_number?: string | null;
|
|
1389
|
+
bank_iban?: string | null;
|
|
1390
|
+
bank_name?: string | null;
|
|
1391
|
+
bank_national_code?: string | null;
|
|
1392
|
+
bank_postal_code?: string | null;
|
|
1393
|
+
bank_state?: string | null;
|
|
1394
|
+
billing_email?: string | null;
|
|
1281
1395
|
bio?: string | null;
|
|
1282
1396
|
city?: string | null;
|
|
1397
|
+
coc_number?: string | null;
|
|
1283
1398
|
commercial_name?: string | null;
|
|
1284
1399
|
company_name?: string;
|
|
1285
1400
|
connection_status?: string;
|
|
@@ -1288,21 +1403,28 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1288
1403
|
created_at?: string;
|
|
1289
1404
|
custom_fields?: import("./types").Json;
|
|
1290
1405
|
customer_class?: string | null;
|
|
1406
|
+
customer_number?: string | null;
|
|
1407
|
+
discount_days?: number | null;
|
|
1408
|
+
discount_percentage?: number | null;
|
|
1291
1409
|
email?: string | null;
|
|
1292
1410
|
external_id?: string | null;
|
|
1411
|
+
fax?: string | null;
|
|
1293
1412
|
floriday_connection_id?: string | null;
|
|
1294
1413
|
floriday_organization_id?: string | null;
|
|
1295
1414
|
floriday_raw?: import("./types").Json | null;
|
|
1296
1415
|
gln?: string | null;
|
|
1297
1416
|
house_number?: string | null;
|
|
1417
|
+
icp_country_code?: string | null;
|
|
1298
1418
|
id?: string;
|
|
1299
1419
|
is_active?: boolean;
|
|
1420
|
+
language?: string | null;
|
|
1300
1421
|
last_synced_at?: string | null;
|
|
1301
1422
|
logo_url?: string | null;
|
|
1302
1423
|
markets?: string[];
|
|
1303
1424
|
notes?: string | null;
|
|
1304
1425
|
organization_type?: string | null;
|
|
1305
1426
|
payment_methods?: string[];
|
|
1427
|
+
payment_term_days?: number | null;
|
|
1306
1428
|
phone?: string | null;
|
|
1307
1429
|
postal_code?: string | null;
|
|
1308
1430
|
product_groups?: string[];
|
|
@@ -1313,6 +1435,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1313
1435
|
sync_status?: string;
|
|
1314
1436
|
trade_forms?: string[];
|
|
1315
1437
|
updated_at?: string;
|
|
1438
|
+
vat_display?: string | null;
|
|
1316
1439
|
vat_number?: string | null;
|
|
1317
1440
|
website?: string | null;
|
|
1318
1441
|
};
|
|
@@ -3259,6 +3382,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
3259
3382
|
referencedColumns: ["id"];
|
|
3260
3383
|
}];
|
|
3261
3384
|
};
|
|
3385
|
+
floriday_auto_fulfillment_log: {
|
|
3386
|
+
Row: {
|
|
3387
|
+
attempts: number;
|
|
3388
|
+
connection_id: string;
|
|
3389
|
+
created_at: string;
|
|
3390
|
+
error: string | null;
|
|
3391
|
+
fulfillment_order_id: string | null;
|
|
3392
|
+
id: string;
|
|
3393
|
+
last_attempt_at: string | null;
|
|
3394
|
+
reason: string | null;
|
|
3395
|
+
sales_order_id: string;
|
|
3396
|
+
status: string;
|
|
3397
|
+
updated_at: string;
|
|
3398
|
+
};
|
|
3399
|
+
Insert: {
|
|
3400
|
+
attempts?: number;
|
|
3401
|
+
connection_id: string;
|
|
3402
|
+
created_at?: string;
|
|
3403
|
+
error?: string | null;
|
|
3404
|
+
fulfillment_order_id?: string | null;
|
|
3405
|
+
id?: string;
|
|
3406
|
+
last_attempt_at?: string | null;
|
|
3407
|
+
reason?: string | null;
|
|
3408
|
+
sales_order_id: string;
|
|
3409
|
+
status?: string;
|
|
3410
|
+
updated_at?: string;
|
|
3411
|
+
};
|
|
3412
|
+
Update: {
|
|
3413
|
+
attempts?: number;
|
|
3414
|
+
connection_id?: string;
|
|
3415
|
+
created_at?: string;
|
|
3416
|
+
error?: string | null;
|
|
3417
|
+
fulfillment_order_id?: string | null;
|
|
3418
|
+
id?: string;
|
|
3419
|
+
last_attempt_at?: string | null;
|
|
3420
|
+
reason?: string | null;
|
|
3421
|
+
sales_order_id?: string;
|
|
3422
|
+
status?: string;
|
|
3423
|
+
updated_at?: string;
|
|
3424
|
+
};
|
|
3425
|
+
Relationships: [{
|
|
3426
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3427
|
+
columns: ["connection_id"];
|
|
3428
|
+
isOneToOne: false;
|
|
3429
|
+
referencedRelation: "floriday_connections";
|
|
3430
|
+
referencedColumns: ["id"];
|
|
3431
|
+
}];
|
|
3432
|
+
};
|
|
3262
3433
|
floriday_base_items_cache: {
|
|
3263
3434
|
Row: {
|
|
3264
3435
|
connection_id: string;
|
|
@@ -4363,6 +4534,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
4363
4534
|
referencedColumns: ["id"];
|
|
4364
4535
|
}];
|
|
4365
4536
|
};
|
|
4537
|
+
floriday_rate_limit_state: {
|
|
4538
|
+
Row: {
|
|
4539
|
+
bucket: string;
|
|
4540
|
+
last_refill_at: string;
|
|
4541
|
+
tokens: number;
|
|
4542
|
+
};
|
|
4543
|
+
Insert: {
|
|
4544
|
+
bucket: string;
|
|
4545
|
+
last_refill_at?: string;
|
|
4546
|
+
tokens: number;
|
|
4547
|
+
};
|
|
4548
|
+
Update: {
|
|
4549
|
+
bucket?: string;
|
|
4550
|
+
last_refill_at?: string;
|
|
4551
|
+
tokens?: number;
|
|
4552
|
+
};
|
|
4553
|
+
Relationships: [];
|
|
4554
|
+
};
|
|
4366
4555
|
floriday_resource_schemas: {
|
|
4367
4556
|
Row: {
|
|
4368
4557
|
enums: import("./types").Json;
|
|
@@ -6797,6 +6986,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6797
6986
|
order_date: string;
|
|
6798
6987
|
order_number: string;
|
|
6799
6988
|
order_source: string;
|
|
6989
|
+
plan_locked_at: string | null;
|
|
6990
|
+
plan_locked_ref: string | null;
|
|
6800
6991
|
status: string;
|
|
6801
6992
|
total: string;
|
|
6802
6993
|
updated_at: string;
|
|
@@ -6813,6 +7004,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6813
7004
|
order_date?: string;
|
|
6814
7005
|
order_number: string;
|
|
6815
7006
|
order_source?: string;
|
|
7007
|
+
plan_locked_at?: string | null;
|
|
7008
|
+
plan_locked_ref?: string | null;
|
|
6816
7009
|
status?: string;
|
|
6817
7010
|
total?: string;
|
|
6818
7011
|
updated_at?: string;
|
|
@@ -6829,6 +7022,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6829
7022
|
order_date?: string;
|
|
6830
7023
|
order_number?: string;
|
|
6831
7024
|
order_source?: string;
|
|
7025
|
+
plan_locked_at?: string | null;
|
|
7026
|
+
plan_locked_ref?: string | null;
|
|
6832
7027
|
status?: string;
|
|
6833
7028
|
total?: string;
|
|
6834
7029
|
updated_at?: string;
|
|
@@ -7197,6 +7392,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7197
7392
|
};
|
|
7198
7393
|
profiles: {
|
|
7199
7394
|
Row: {
|
|
7395
|
+
address: string | null;
|
|
7200
7396
|
created_at: string;
|
|
7201
7397
|
display_name: string | null;
|
|
7202
7398
|
email: string | null;
|
|
@@ -7207,6 +7403,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7207
7403
|
updated_at: string;
|
|
7208
7404
|
};
|
|
7209
7405
|
Insert: {
|
|
7406
|
+
address?: string | null;
|
|
7210
7407
|
created_at?: string;
|
|
7211
7408
|
display_name?: string | null;
|
|
7212
7409
|
email?: string | null;
|
|
@@ -7217,6 +7414,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7217
7414
|
updated_at?: string;
|
|
7218
7415
|
};
|
|
7219
7416
|
Update: {
|
|
7417
|
+
address?: string | null;
|
|
7220
7418
|
created_at?: string;
|
|
7221
7419
|
display_name?: string | null;
|
|
7222
7420
|
email?: string | null;
|
|
@@ -8464,6 +8662,114 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8464
8662
|
};
|
|
8465
8663
|
Relationships: [];
|
|
8466
8664
|
};
|
|
8665
|
+
trade_item_supply_lines: {
|
|
8666
|
+
Row: {
|
|
8667
|
+
available_quantity: number | null;
|
|
8668
|
+
connection_id: string;
|
|
8669
|
+
created_at: string;
|
|
8670
|
+
currency: string | null;
|
|
8671
|
+
endpoint_family: string | null;
|
|
8672
|
+
environment: string | null;
|
|
8673
|
+
id: string;
|
|
8674
|
+
last_error: string | null;
|
|
8675
|
+
last_status: number | null;
|
|
8676
|
+
packing_configuration_id: string | null;
|
|
8677
|
+
period_end: string | null;
|
|
8678
|
+
period_start: string | null;
|
|
8679
|
+
price_per_piece: number | null;
|
|
8680
|
+
sales_unit: string | null;
|
|
8681
|
+
supply_line_id: string | null;
|
|
8682
|
+
supply_type: string;
|
|
8683
|
+
trade_item_id: string;
|
|
8684
|
+
updated_at: string;
|
|
8685
|
+
user_id: string;
|
|
8686
|
+
week: number | null;
|
|
8687
|
+
year: number | null;
|
|
8688
|
+
};
|
|
8689
|
+
Insert: {
|
|
8690
|
+
available_quantity?: number | null;
|
|
8691
|
+
connection_id: string;
|
|
8692
|
+
created_at?: string;
|
|
8693
|
+
currency?: string | null;
|
|
8694
|
+
endpoint_family?: string | null;
|
|
8695
|
+
environment?: string | null;
|
|
8696
|
+
id?: string;
|
|
8697
|
+
last_error?: string | null;
|
|
8698
|
+
last_status?: number | null;
|
|
8699
|
+
packing_configuration_id?: string | null;
|
|
8700
|
+
period_end?: string | null;
|
|
8701
|
+
period_start?: string | null;
|
|
8702
|
+
price_per_piece?: number | null;
|
|
8703
|
+
sales_unit?: string | null;
|
|
8704
|
+
supply_line_id?: string | null;
|
|
8705
|
+
supply_type?: string;
|
|
8706
|
+
trade_item_id: string;
|
|
8707
|
+
updated_at?: string;
|
|
8708
|
+
user_id: string;
|
|
8709
|
+
week?: number | null;
|
|
8710
|
+
year?: number | null;
|
|
8711
|
+
};
|
|
8712
|
+
Update: {
|
|
8713
|
+
available_quantity?: number | null;
|
|
8714
|
+
connection_id?: string;
|
|
8715
|
+
created_at?: string;
|
|
8716
|
+
currency?: string | null;
|
|
8717
|
+
endpoint_family?: string | null;
|
|
8718
|
+
environment?: string | null;
|
|
8719
|
+
id?: string;
|
|
8720
|
+
last_error?: string | null;
|
|
8721
|
+
last_status?: number | null;
|
|
8722
|
+
packing_configuration_id?: string | null;
|
|
8723
|
+
period_end?: string | null;
|
|
8724
|
+
period_start?: string | null;
|
|
8725
|
+
price_per_piece?: number | null;
|
|
8726
|
+
sales_unit?: string | null;
|
|
8727
|
+
supply_line_id?: string | null;
|
|
8728
|
+
supply_type?: string;
|
|
8729
|
+
trade_item_id?: string;
|
|
8730
|
+
updated_at?: string;
|
|
8731
|
+
user_id?: string;
|
|
8732
|
+
week?: number | null;
|
|
8733
|
+
year?: number | null;
|
|
8734
|
+
};
|
|
8735
|
+
Relationships: [];
|
|
8736
|
+
};
|
|
8737
|
+
trade_item_warehouse_preferences: {
|
|
8738
|
+
Row: {
|
|
8739
|
+
connection_id: string;
|
|
8740
|
+
created_at: string;
|
|
8741
|
+
id: string;
|
|
8742
|
+
trade_item_id: string;
|
|
8743
|
+
updated_at: string;
|
|
8744
|
+
warehouse_id: string;
|
|
8745
|
+
warehouse_name: string | null;
|
|
8746
|
+
};
|
|
8747
|
+
Insert: {
|
|
8748
|
+
connection_id: string;
|
|
8749
|
+
created_at?: string;
|
|
8750
|
+
id?: string;
|
|
8751
|
+
trade_item_id: string;
|
|
8752
|
+
updated_at?: string;
|
|
8753
|
+
warehouse_id: string;
|
|
8754
|
+
warehouse_name?: string | null;
|
|
8755
|
+
};
|
|
8756
|
+
Update: {
|
|
8757
|
+
connection_id?: string;
|
|
8758
|
+
created_at?: string;
|
|
8759
|
+
id?: string;
|
|
8760
|
+
trade_item_id?: string;
|
|
8761
|
+
updated_at?: string;
|
|
8762
|
+
warehouse_id?: string;
|
|
8763
|
+
warehouse_name?: string | null;
|
|
8764
|
+
};
|
|
8765
|
+
Relationships: [{
|
|
8766
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8767
|
+
columns: ["connection_id"];
|
|
8768
|
+
isOneToOne: false;
|
|
8769
|
+
referencedRelation: "floriday_connections";
|
|
8770
|
+
referencedColumns: ["id"];
|
|
8771
|
+
}];
|
|
8772
|
+
};
|
|
8467
8773
|
twinfield_connections: {
|
|
8468
8774
|
Row: {
|
|
8469
8775
|
access_token: string | null;
|
|
@@ -10149,7 +10455,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10149
10455
|
};
|
|
10150
10456
|
cleanup_old_bookings: {
|
|
10151
10457
|
Args: never;
|
|
10152
|
-
Returns:
|
|
10458
|
+
Returns: undefined;
|
|
10459
|
+
};
|
|
10460
|
+
consume_floriday_rate_limit: {
|
|
10461
|
+
Args: {
|
|
10462
|
+
p_bucket: string;
|
|
10463
|
+
p_capacity: number;
|
|
10464
|
+
p_cost?: number;
|
|
10465
|
+
p_refill_per_sec: number;
|
|
10466
|
+
};
|
|
10467
|
+
Returns: {
|
|
10468
|
+
granted: boolean;
|
|
10469
|
+
wait_ms: number;
|
|
10470
|
+
}[];
|
|
10153
10471
|
};
|
|
10154
10472
|
control_get_todays_carts: {
|
|
10155
10473
|
Args: never;
|
|
@@ -10231,6 +10549,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10231
10549
|
status: string;
|
|
10232
10550
|
}[];
|
|
10233
10551
|
};
|
|
10552
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10553
|
+
Args: {
|
|
10554
|
+
p_order_id: string;
|
|
10555
|
+
};
|
|
10556
|
+
Returns: undefined;
|
|
10557
|
+
};
|
|
10234
10558
|
ensure_trade_item_stock_row: {
|
|
10235
10559
|
Args: {
|
|
10236
10560
|
p_key: string;
|
|
@@ -10624,6 +10948,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10624
10948
|
};
|
|
10625
10949
|
Returns: undefined;
|
|
10626
10950
|
};
|
|
10951
|
+
recompute_order_status: {
|
|
10952
|
+
Args: {
|
|
10953
|
+
p_order_id: string;
|
|
10954
|
+
};
|
|
10955
|
+
Returns: undefined;
|
|
10956
|
+
};
|
|
10957
|
+
recompute_reserved_for_order: {
|
|
10958
|
+
Args: {
|
|
10959
|
+
p_order_id: string;
|
|
10960
|
+
};
|
|
10961
|
+
Returns: undefined;
|
|
10962
|
+
};
|
|
10963
|
+
recompute_reserved_stock: {
|
|
10964
|
+
Args: {
|
|
10965
|
+
p_trade_item_key: string;
|
|
10966
|
+
};
|
|
10967
|
+
Returns: undefined;
|
|
10968
|
+
};
|
|
10627
10969
|
refresh_external_customers_grouped: {
|
|
10628
10970
|
Args: never;
|
|
10629
10971
|
Returns: undefined;
|
|
@@ -10938,6 +11280,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10938
11280
|
};
|
|
10939
11281
|
Returns: string[];
|
|
10940
11282
|
};
|
|
11283
|
+
sync_cached_packing_from_product: {
|
|
11284
|
+
Args: {
|
|
11285
|
+
p_product_id: string;
|
|
11286
|
+
};
|
|
11287
|
+
Returns: undefined;
|
|
11288
|
+
};
|
|
11289
|
+
sync_order_cart_item_packing_from_product: {
|
|
11290
|
+
Args: {
|
|
11291
|
+
p_product_id: string;
|
|
11292
|
+
};
|
|
11293
|
+
Returns: undefined;
|
|
11294
|
+
};
|
|
11295
|
+
sync_product_packing_from_floriday_cache: {
|
|
11296
|
+
Args: {
|
|
11297
|
+
p_floriday_id: string;
|
|
11298
|
+
};
|
|
11299
|
+
Returns: undefined;
|
|
11300
|
+
};
|
|
10941
11301
|
twinfield_decrypt: {
|
|
10942
11302
|
Args: {
|
|
10943
11303
|
cipher: string;
|
|
@@ -10950,6 +11310,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10950
11310
|
};
|
|
10951
11311
|
Returns: string;
|
|
10952
11312
|
};
|
|
11313
|
+
upsert_auto_fulfillment_log: {
|
|
11314
|
+
Args: {
|
|
11315
|
+
p_connection_id: string;
|
|
11316
|
+
p_error?: string;
|
|
11317
|
+
p_fulfillment_order_id?: string;
|
|
11318
|
+
p_reason?: string;
|
|
11319
|
+
p_sales_order_id: string;
|
|
11320
|
+
p_status: string;
|
|
11321
|
+
};
|
|
11322
|
+
Returns: undefined;
|
|
11323
|
+
};
|
|
10953
11324
|
};
|
|
10954
11325
|
Enums: {
|
|
10955
11326
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|