@flowselections/floriday-afhandeling-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/afhandeling/AutoProcessStatus.d.ts +12 -0
- package/dist-lib/components/afhandeling/AutoProcessStatus.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/AutoProcessStatus.js +103 -0
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts +3 -1
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControleLijstPrint.js +41 -63
- package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/DagDetailDialog.js +96 -4
- package/dist-lib/components/afhandeling/LeveringenPage.js +1 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.js +2 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +3 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.js +58 -17
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts +2 -1
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -1
- package/dist-lib/components/pickstation/PakbonTemplate.js +20 -17
- package/dist-lib/components/pickstation/PickstationPage.d.ts.map +1 -1
- package/dist-lib/components/pickstation/PickstationPage.js +57 -8
- package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
- package/dist-lib/components/settings/AfhandelingSettingsCard.js +14 -2
- package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
- package/dist-lib/hooks/useOrderPlanning.js +28 -11
- package/dist-lib/index.d.ts +3 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +3 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +605 -4
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +605 -4
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +605 -4
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +613 -4
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +1222 -8
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.js +28 -1
- package/dist-lib/lib/carrierPlanning.d.ts +25 -0
- package/dist-lib/lib/carrierPlanning.d.ts.map +1 -0
- package/dist-lib/lib/carrierPlanning.js +65 -0
- package/dist-lib/lib/carrierSignupMail.server.d.ts +0 -2
- package/dist-lib/lib/carrierSignupMail.server.d.ts.map +1 -1
- package/dist-lib/lib/carrierSignupMail.server.js +53 -216
- package/dist-lib/lib/carriers.functions.d.ts +3025 -20
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.js +5 -0
- package/dist-lib/lib/cartAssignments.functions.d.ts +3025 -20
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +6050 -40
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.js +1 -1
- package/dist-lib/lib/cartRescheduling.d.ts.map +1 -1
- package/dist-lib/lib/cartRescheduling.js +8 -6
- package/dist-lib/lib/countries.d.ts +2 -0
- package/dist-lib/lib/countries.d.ts.map +1 -1
- package/dist-lib/lib/countries.js +51 -0
- package/dist-lib/lib/deliveryNotePrint.d.ts +26 -0
- package/dist-lib/lib/deliveryNotePrint.d.ts.map +1 -0
- package/dist-lib/lib/deliveryNotePrint.js +172 -0
- package/dist-lib/lib/floriday.functions.d.ts +613 -4
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +126 -8
- package/dist-lib/lib/floridayAutoProcess.d.ts +30 -0
- package/dist-lib/lib/floridayAutoProcess.d.ts.map +1 -0
- package/dist-lib/lib/floridayAutoProcess.js +70 -0
- package/dist-lib/lib/pickstationI18n.d.ts +46 -0
- package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
- package/dist-lib/lib/pickstationI18n.js +251 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
- package/dist-lib/lib/pickstationOrders.server.js +55 -19
- package/dist-lib/lib/planning.d.ts +34 -0
- package/dist-lib/lib/planning.d.ts.map +1 -1
- package/dist-lib/lib/planning.js +84 -0
- package/package.json +2 -2
|
@@ -9,7 +9,10 @@ export type Database = {
|
|
|
9
9
|
Tables: {
|
|
10
10
|
afhandeling_settings: {
|
|
11
11
|
Row: {
|
|
12
|
+
auto_print_delivery_note: boolean;
|
|
13
|
+
auto_process_paused: boolean;
|
|
12
14
|
created_at: string;
|
|
15
|
+
extra_pick_days_with_stickers: number;
|
|
13
16
|
id: string;
|
|
14
17
|
max_workdays_earlier_pick: number;
|
|
15
18
|
pick_days_before_transport: number;
|
|
@@ -23,7 +26,10 @@ export type Database = {
|
|
|
23
26
|
user_id: string;
|
|
24
27
|
};
|
|
25
28
|
Insert: {
|
|
29
|
+
auto_print_delivery_note?: boolean;
|
|
30
|
+
auto_process_paused?: boolean;
|
|
26
31
|
created_at?: string;
|
|
32
|
+
extra_pick_days_with_stickers?: number;
|
|
27
33
|
id?: string;
|
|
28
34
|
max_workdays_earlier_pick?: number;
|
|
29
35
|
pick_days_before_transport?: number;
|
|
@@ -37,7 +43,10 @@ export type Database = {
|
|
|
37
43
|
user_id: string;
|
|
38
44
|
};
|
|
39
45
|
Update: {
|
|
46
|
+
auto_print_delivery_note?: boolean;
|
|
47
|
+
auto_process_paused?: boolean;
|
|
40
48
|
created_at?: string;
|
|
49
|
+
extra_pick_days_with_stickers?: number;
|
|
41
50
|
id?: string;
|
|
42
51
|
max_workdays_earlier_pick?: number;
|
|
43
52
|
pick_days_before_transport?: number;
|
|
@@ -268,6 +277,9 @@ export type Database = {
|
|
|
268
277
|
created_at: string;
|
|
269
278
|
extra_id: string;
|
|
270
279
|
id: string;
|
|
280
|
+
original_unit_price: number | null;
|
|
281
|
+
override_reason: string | null;
|
|
282
|
+
override_unit_price: number | null;
|
|
271
283
|
quantity: number;
|
|
272
284
|
total_price: number;
|
|
273
285
|
unit_price: number;
|
|
@@ -277,6 +289,9 @@ export type Database = {
|
|
|
277
289
|
created_at?: string;
|
|
278
290
|
extra_id: string;
|
|
279
291
|
id?: string;
|
|
292
|
+
original_unit_price?: number | null;
|
|
293
|
+
override_reason?: string | null;
|
|
294
|
+
override_unit_price?: number | null;
|
|
280
295
|
quantity?: number;
|
|
281
296
|
total_price?: number;
|
|
282
297
|
unit_price?: number;
|
|
@@ -286,6 +301,9 @@ export type Database = {
|
|
|
286
301
|
created_at?: string;
|
|
287
302
|
extra_id?: string;
|
|
288
303
|
id?: string;
|
|
304
|
+
original_unit_price?: number | null;
|
|
305
|
+
override_reason?: string | null;
|
|
306
|
+
override_unit_price?: number | null;
|
|
289
307
|
quantity?: number;
|
|
290
308
|
total_price?: number;
|
|
291
309
|
unit_price?: number;
|
|
@@ -309,11 +327,15 @@ export type Database = {
|
|
|
309
327
|
};
|
|
310
328
|
bookings: {
|
|
311
329
|
Row: {
|
|
330
|
+
archive_reason: string | null;
|
|
331
|
+
archived_at: string | null;
|
|
332
|
+
archived_by: string | null;
|
|
312
333
|
company_name: string | null;
|
|
313
334
|
conflict_checked_at: string | null;
|
|
314
335
|
conflict_reason: string | null;
|
|
315
336
|
created_at: string;
|
|
316
337
|
created_by_role: string | null;
|
|
338
|
+
customer_address: string | null;
|
|
317
339
|
customer_email: string | null;
|
|
318
340
|
customer_name: string | null;
|
|
319
341
|
end_time: string;
|
|
@@ -325,7 +347,12 @@ export type Database = {
|
|
|
325
347
|
invoiced_at: string | null;
|
|
326
348
|
notes: string | null;
|
|
327
349
|
number_of_people: number;
|
|
350
|
+
overridden_at: string | null;
|
|
351
|
+
overridden_by: string | null;
|
|
352
|
+
override_reason: string | null;
|
|
353
|
+
price_override: boolean;
|
|
328
354
|
room_id: string;
|
|
355
|
+
room_price_override: number | null;
|
|
329
356
|
start_time: string;
|
|
330
357
|
status: string;
|
|
331
358
|
total_excl_vat: number | null;
|
|
@@ -334,11 +361,15 @@ export type Database = {
|
|
|
334
361
|
vat_amount: number | null;
|
|
335
362
|
};
|
|
336
363
|
Insert: {
|
|
364
|
+
archive_reason?: string | null;
|
|
365
|
+
archived_at?: string | null;
|
|
366
|
+
archived_by?: string | null;
|
|
337
367
|
company_name?: string | null;
|
|
338
368
|
conflict_checked_at?: string | null;
|
|
339
369
|
conflict_reason?: string | null;
|
|
340
370
|
created_at?: string;
|
|
341
371
|
created_by_role?: string | null;
|
|
372
|
+
customer_address?: string | null;
|
|
342
373
|
customer_email?: string | null;
|
|
343
374
|
customer_name?: string | null;
|
|
344
375
|
end_time: string;
|
|
@@ -350,7 +381,12 @@ export type Database = {
|
|
|
350
381
|
invoiced_at?: string | null;
|
|
351
382
|
notes?: string | null;
|
|
352
383
|
number_of_people?: number;
|
|
384
|
+
overridden_at?: string | null;
|
|
385
|
+
overridden_by?: string | null;
|
|
386
|
+
override_reason?: string | null;
|
|
387
|
+
price_override?: boolean;
|
|
353
388
|
room_id: string;
|
|
389
|
+
room_price_override?: number | null;
|
|
354
390
|
start_time: string;
|
|
355
391
|
status?: string;
|
|
356
392
|
total_excl_vat?: number | null;
|
|
@@ -359,11 +395,15 @@ export type Database = {
|
|
|
359
395
|
vat_amount?: number | null;
|
|
360
396
|
};
|
|
361
397
|
Update: {
|
|
398
|
+
archive_reason?: string | null;
|
|
399
|
+
archived_at?: string | null;
|
|
400
|
+
archived_by?: string | null;
|
|
362
401
|
company_name?: string | null;
|
|
363
402
|
conflict_checked_at?: string | null;
|
|
364
403
|
conflict_reason?: string | null;
|
|
365
404
|
created_at?: string;
|
|
366
405
|
created_by_role?: string | null;
|
|
406
|
+
customer_address?: string | null;
|
|
367
407
|
customer_email?: string | null;
|
|
368
408
|
customer_name?: string | null;
|
|
369
409
|
end_time?: string;
|
|
@@ -375,7 +415,12 @@ export type Database = {
|
|
|
375
415
|
invoiced_at?: string | null;
|
|
376
416
|
notes?: string | null;
|
|
377
417
|
number_of_people?: number;
|
|
418
|
+
overridden_at?: string | null;
|
|
419
|
+
overridden_by?: string | null;
|
|
420
|
+
override_reason?: string | null;
|
|
421
|
+
price_override?: boolean;
|
|
378
422
|
room_id?: string;
|
|
423
|
+
room_price_override?: number | null;
|
|
379
424
|
start_time?: string;
|
|
380
425
|
status?: string;
|
|
381
426
|
total_excl_vat?: number | null;
|
|
@@ -840,6 +885,38 @@ export type Database = {
|
|
|
840
885
|
};
|
|
841
886
|
Relationships: [];
|
|
842
887
|
};
|
|
888
|
+
cart_replan_queue: {
|
|
889
|
+
Row: {
|
|
890
|
+
attempts: number;
|
|
891
|
+
last_error: string | null;
|
|
892
|
+
order_id: string;
|
|
893
|
+
processed_at: string | null;
|
|
894
|
+
requested_at: string;
|
|
895
|
+
};
|
|
896
|
+
Insert: {
|
|
897
|
+
attempts?: number;
|
|
898
|
+
last_error?: string | null;
|
|
899
|
+
order_id: string;
|
|
900
|
+
processed_at?: string | null;
|
|
901
|
+
requested_at?: string;
|
|
902
|
+
};
|
|
903
|
+
Update: {
|
|
904
|
+
attempts?: number;
|
|
905
|
+
last_error?: string | null;
|
|
906
|
+
order_id?: string;
|
|
907
|
+
processed_at?: string | null;
|
|
908
|
+
requested_at?: string;
|
|
909
|
+
};
|
|
910
|
+
Relationships: [
|
|
911
|
+
{
|
|
912
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
913
|
+
columns: ["order_id"];
|
|
914
|
+
isOneToOne: true;
|
|
915
|
+
referencedRelation: "orders";
|
|
916
|
+
referencedColumns: ["id"];
|
|
917
|
+
}
|
|
918
|
+
];
|
|
919
|
+
};
|
|
843
920
|
collections: {
|
|
844
921
|
Row: {
|
|
845
922
|
created_at: string;
|
|
@@ -1195,8 +1272,27 @@ export type Database = {
|
|
|
1195
1272
|
customers: {
|
|
1196
1273
|
Row: {
|
|
1197
1274
|
address: string | null;
|
|
1275
|
+
address_line1: string | null;
|
|
1276
|
+
address_line2: string | null;
|
|
1277
|
+
address_type: string | null;
|
|
1278
|
+
attention_to: string | null;
|
|
1279
|
+
bank_account_holder: string | null;
|
|
1280
|
+
bank_account_number: string | null;
|
|
1281
|
+
bank_address_line1: string | null;
|
|
1282
|
+
bank_address_line2: string | null;
|
|
1283
|
+
bank_bic: string | null;
|
|
1284
|
+
bank_city: string | null;
|
|
1285
|
+
bank_country: string | null;
|
|
1286
|
+
bank_house_number: string | null;
|
|
1287
|
+
bank_iban: string | null;
|
|
1288
|
+
bank_name: string | null;
|
|
1289
|
+
bank_national_code: string | null;
|
|
1290
|
+
bank_postal_code: string | null;
|
|
1291
|
+
bank_state: string | null;
|
|
1292
|
+
billing_email: string | null;
|
|
1198
1293
|
bio: string | null;
|
|
1199
1294
|
city: string | null;
|
|
1295
|
+
coc_number: string | null;
|
|
1200
1296
|
commercial_name: string | null;
|
|
1201
1297
|
company_name: string;
|
|
1202
1298
|
connection_status: string;
|
|
@@ -1205,21 +1301,28 @@ export type Database = {
|
|
|
1205
1301
|
created_at: string;
|
|
1206
1302
|
custom_fields: Json;
|
|
1207
1303
|
customer_class: string | null;
|
|
1304
|
+
customer_number: string | null;
|
|
1305
|
+
discount_days: number | null;
|
|
1306
|
+
discount_percentage: number | null;
|
|
1208
1307
|
email: string | null;
|
|
1209
1308
|
external_id: string | null;
|
|
1309
|
+
fax: string | null;
|
|
1210
1310
|
floriday_connection_id: string | null;
|
|
1211
1311
|
floriday_organization_id: string | null;
|
|
1212
1312
|
floriday_raw: Json | null;
|
|
1213
1313
|
gln: string | null;
|
|
1214
1314
|
house_number: string | null;
|
|
1315
|
+
icp_country_code: string | null;
|
|
1215
1316
|
id: string;
|
|
1216
1317
|
is_active: boolean;
|
|
1318
|
+
language: string | null;
|
|
1217
1319
|
last_synced_at: string | null;
|
|
1218
1320
|
logo_url: string | null;
|
|
1219
1321
|
markets: string[];
|
|
1220
1322
|
notes: string | null;
|
|
1221
1323
|
organization_type: string | null;
|
|
1222
1324
|
payment_methods: string[];
|
|
1325
|
+
payment_term_days: number | null;
|
|
1223
1326
|
phone: string | null;
|
|
1224
1327
|
postal_code: string | null;
|
|
1225
1328
|
product_groups: string[];
|
|
@@ -1230,13 +1333,33 @@ export type Database = {
|
|
|
1230
1333
|
sync_status: string;
|
|
1231
1334
|
trade_forms: string[];
|
|
1232
1335
|
updated_at: string;
|
|
1336
|
+
vat_display: string | null;
|
|
1233
1337
|
vat_number: string | null;
|
|
1234
1338
|
website: string | null;
|
|
1235
1339
|
};
|
|
1236
1340
|
Insert: {
|
|
1237
1341
|
address?: string | null;
|
|
1342
|
+
address_line1?: string | null;
|
|
1343
|
+
address_line2?: string | null;
|
|
1344
|
+
address_type?: string | null;
|
|
1345
|
+
attention_to?: string | null;
|
|
1346
|
+
bank_account_holder?: string | null;
|
|
1347
|
+
bank_account_number?: string | null;
|
|
1348
|
+
bank_address_line1?: string | null;
|
|
1349
|
+
bank_address_line2?: string | null;
|
|
1350
|
+
bank_bic?: string | null;
|
|
1351
|
+
bank_city?: string | null;
|
|
1352
|
+
bank_country?: string | null;
|
|
1353
|
+
bank_house_number?: string | null;
|
|
1354
|
+
bank_iban?: string | null;
|
|
1355
|
+
bank_name?: string | null;
|
|
1356
|
+
bank_national_code?: string | null;
|
|
1357
|
+
bank_postal_code?: string | null;
|
|
1358
|
+
bank_state?: string | null;
|
|
1359
|
+
billing_email?: string | null;
|
|
1238
1360
|
bio?: string | null;
|
|
1239
1361
|
city?: string | null;
|
|
1362
|
+
coc_number?: string | null;
|
|
1240
1363
|
commercial_name?: string | null;
|
|
1241
1364
|
company_name: string;
|
|
1242
1365
|
connection_status?: string;
|
|
@@ -1245,21 +1368,28 @@ export type Database = {
|
|
|
1245
1368
|
created_at?: string;
|
|
1246
1369
|
custom_fields?: Json;
|
|
1247
1370
|
customer_class?: string | null;
|
|
1371
|
+
customer_number?: string | null;
|
|
1372
|
+
discount_days?: number | null;
|
|
1373
|
+
discount_percentage?: number | null;
|
|
1248
1374
|
email?: string | null;
|
|
1249
1375
|
external_id?: string | null;
|
|
1376
|
+
fax?: string | null;
|
|
1250
1377
|
floriday_connection_id?: string | null;
|
|
1251
1378
|
floriday_organization_id?: string | null;
|
|
1252
1379
|
floriday_raw?: Json | null;
|
|
1253
1380
|
gln?: string | null;
|
|
1254
1381
|
house_number?: string | null;
|
|
1382
|
+
icp_country_code?: string | null;
|
|
1255
1383
|
id?: string;
|
|
1256
1384
|
is_active?: boolean;
|
|
1385
|
+
language?: string | null;
|
|
1257
1386
|
last_synced_at?: string | null;
|
|
1258
1387
|
logo_url?: string | null;
|
|
1259
1388
|
markets?: string[];
|
|
1260
1389
|
notes?: string | null;
|
|
1261
1390
|
organization_type?: string | null;
|
|
1262
1391
|
payment_methods?: string[];
|
|
1392
|
+
payment_term_days?: number | null;
|
|
1263
1393
|
phone?: string | null;
|
|
1264
1394
|
postal_code?: string | null;
|
|
1265
1395
|
product_groups?: string[];
|
|
@@ -1270,13 +1400,33 @@ export type Database = {
|
|
|
1270
1400
|
sync_status?: string;
|
|
1271
1401
|
trade_forms?: string[];
|
|
1272
1402
|
updated_at?: string;
|
|
1403
|
+
vat_display?: string | null;
|
|
1273
1404
|
vat_number?: string | null;
|
|
1274
1405
|
website?: string | null;
|
|
1275
1406
|
};
|
|
1276
1407
|
Update: {
|
|
1277
1408
|
address?: string | null;
|
|
1409
|
+
address_line1?: string | null;
|
|
1410
|
+
address_line2?: string | null;
|
|
1411
|
+
address_type?: string | null;
|
|
1412
|
+
attention_to?: string | null;
|
|
1413
|
+
bank_account_holder?: string | null;
|
|
1414
|
+
bank_account_number?: string | null;
|
|
1415
|
+
bank_address_line1?: string | null;
|
|
1416
|
+
bank_address_line2?: string | null;
|
|
1417
|
+
bank_bic?: string | null;
|
|
1418
|
+
bank_city?: string | null;
|
|
1419
|
+
bank_country?: string | null;
|
|
1420
|
+
bank_house_number?: string | null;
|
|
1421
|
+
bank_iban?: string | null;
|
|
1422
|
+
bank_name?: string | null;
|
|
1423
|
+
bank_national_code?: string | null;
|
|
1424
|
+
bank_postal_code?: string | null;
|
|
1425
|
+
bank_state?: string | null;
|
|
1426
|
+
billing_email?: string | null;
|
|
1278
1427
|
bio?: string | null;
|
|
1279
1428
|
city?: string | null;
|
|
1429
|
+
coc_number?: string | null;
|
|
1280
1430
|
commercial_name?: string | null;
|
|
1281
1431
|
company_name?: string;
|
|
1282
1432
|
connection_status?: string;
|
|
@@ -1285,21 +1435,28 @@ export type Database = {
|
|
|
1285
1435
|
created_at?: string;
|
|
1286
1436
|
custom_fields?: Json;
|
|
1287
1437
|
customer_class?: string | null;
|
|
1438
|
+
customer_number?: string | null;
|
|
1439
|
+
discount_days?: number | null;
|
|
1440
|
+
discount_percentage?: number | null;
|
|
1288
1441
|
email?: string | null;
|
|
1289
1442
|
external_id?: string | null;
|
|
1443
|
+
fax?: string | null;
|
|
1290
1444
|
floriday_connection_id?: string | null;
|
|
1291
1445
|
floriday_organization_id?: string | null;
|
|
1292
1446
|
floriday_raw?: Json | null;
|
|
1293
1447
|
gln?: string | null;
|
|
1294
1448
|
house_number?: string | null;
|
|
1449
|
+
icp_country_code?: string | null;
|
|
1295
1450
|
id?: string;
|
|
1296
1451
|
is_active?: boolean;
|
|
1452
|
+
language?: string | null;
|
|
1297
1453
|
last_synced_at?: string | null;
|
|
1298
1454
|
logo_url?: string | null;
|
|
1299
1455
|
markets?: string[];
|
|
1300
1456
|
notes?: string | null;
|
|
1301
1457
|
organization_type?: string | null;
|
|
1302
1458
|
payment_methods?: string[];
|
|
1459
|
+
payment_term_days?: number | null;
|
|
1303
1460
|
phone?: string | null;
|
|
1304
1461
|
postal_code?: string | null;
|
|
1305
1462
|
product_groups?: string[];
|
|
@@ -1310,6 +1467,7 @@ export type Database = {
|
|
|
1310
1467
|
sync_status?: string;
|
|
1311
1468
|
trade_forms?: string[];
|
|
1312
1469
|
updated_at?: string;
|
|
1470
|
+
vat_display?: string | null;
|
|
1313
1471
|
vat_number?: string | null;
|
|
1314
1472
|
website?: string | null;
|
|
1315
1473
|
};
|
|
@@ -3021,34 +3179,52 @@ export type Database = {
|
|
|
3021
3179
|
Row: {
|
|
3022
3180
|
catalog_key: string | null;
|
|
3023
3181
|
catalog_url: string;
|
|
3182
|
+
client_id: string | null;
|
|
3183
|
+
client_secret_ciphertext: string | null;
|
|
3184
|
+
client_secret_last4: string | null;
|
|
3024
3185
|
created_at: string;
|
|
3025
3186
|
id: number;
|
|
3026
3187
|
last_meta: Json | null;
|
|
3027
3188
|
last_test_at: string | null;
|
|
3028
3189
|
last_test_error: string | null;
|
|
3029
3190
|
last_test_ok: boolean | null;
|
|
3191
|
+
last_token_test_at: string | null;
|
|
3192
|
+
last_token_test_error: string | null;
|
|
3193
|
+
last_token_test_ok: boolean | null;
|
|
3030
3194
|
updated_at: string;
|
|
3031
3195
|
};
|
|
3032
3196
|
Insert: {
|
|
3033
3197
|
catalog_key?: string | null;
|
|
3034
3198
|
catalog_url?: string;
|
|
3199
|
+
client_id?: string | null;
|
|
3200
|
+
client_secret_ciphertext?: string | null;
|
|
3201
|
+
client_secret_last4?: string | null;
|
|
3035
3202
|
created_at?: string;
|
|
3036
3203
|
id?: number;
|
|
3037
3204
|
last_meta?: Json | null;
|
|
3038
3205
|
last_test_at?: string | null;
|
|
3039
3206
|
last_test_error?: string | null;
|
|
3040
3207
|
last_test_ok?: boolean | null;
|
|
3208
|
+
last_token_test_at?: string | null;
|
|
3209
|
+
last_token_test_error?: string | null;
|
|
3210
|
+
last_token_test_ok?: boolean | null;
|
|
3041
3211
|
updated_at?: string;
|
|
3042
3212
|
};
|
|
3043
3213
|
Update: {
|
|
3044
3214
|
catalog_key?: string | null;
|
|
3045
3215
|
catalog_url?: string;
|
|
3216
|
+
client_id?: string | null;
|
|
3217
|
+
client_secret_ciphertext?: string | null;
|
|
3218
|
+
client_secret_last4?: string | null;
|
|
3046
3219
|
created_at?: string;
|
|
3047
3220
|
id?: number;
|
|
3048
3221
|
last_meta?: Json | null;
|
|
3049
3222
|
last_test_at?: string | null;
|
|
3050
3223
|
last_test_error?: string | null;
|
|
3051
3224
|
last_test_ok?: boolean | null;
|
|
3225
|
+
last_token_test_at?: string | null;
|
|
3226
|
+
last_token_test_error?: string | null;
|
|
3227
|
+
last_token_test_ok?: boolean | null;
|
|
3052
3228
|
updated_at?: string;
|
|
3053
3229
|
};
|
|
3054
3230
|
Relationships: [];
|
|
@@ -3289,6 +3465,56 @@ export type Database = {
|
|
|
3289
3465
|
}
|
|
3290
3466
|
];
|
|
3291
3467
|
};
|
|
3468
|
+
floriday_auto_fulfillment_log: {
|
|
3469
|
+
Row: {
|
|
3470
|
+
attempts: number;
|
|
3471
|
+
connection_id: string;
|
|
3472
|
+
created_at: string;
|
|
3473
|
+
error: string | null;
|
|
3474
|
+
fulfillment_order_id: string | null;
|
|
3475
|
+
id: string;
|
|
3476
|
+
last_attempt_at: string | null;
|
|
3477
|
+
reason: string | null;
|
|
3478
|
+
sales_order_id: string;
|
|
3479
|
+
status: string;
|
|
3480
|
+
updated_at: string;
|
|
3481
|
+
};
|
|
3482
|
+
Insert: {
|
|
3483
|
+
attempts?: number;
|
|
3484
|
+
connection_id: string;
|
|
3485
|
+
created_at?: string;
|
|
3486
|
+
error?: string | null;
|
|
3487
|
+
fulfillment_order_id?: string | null;
|
|
3488
|
+
id?: string;
|
|
3489
|
+
last_attempt_at?: string | null;
|
|
3490
|
+
reason?: string | null;
|
|
3491
|
+
sales_order_id: string;
|
|
3492
|
+
status?: string;
|
|
3493
|
+
updated_at?: string;
|
|
3494
|
+
};
|
|
3495
|
+
Update: {
|
|
3496
|
+
attempts?: number;
|
|
3497
|
+
connection_id?: string;
|
|
3498
|
+
created_at?: string;
|
|
3499
|
+
error?: string | null;
|
|
3500
|
+
fulfillment_order_id?: string | null;
|
|
3501
|
+
id?: string;
|
|
3502
|
+
last_attempt_at?: string | null;
|
|
3503
|
+
reason?: string | null;
|
|
3504
|
+
sales_order_id?: string;
|
|
3505
|
+
status?: string;
|
|
3506
|
+
updated_at?: string;
|
|
3507
|
+
};
|
|
3508
|
+
Relationships: [
|
|
3509
|
+
{
|
|
3510
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3511
|
+
columns: ["connection_id"];
|
|
3512
|
+
isOneToOne: false;
|
|
3513
|
+
referencedRelation: "floriday_connections";
|
|
3514
|
+
referencedColumns: ["id"];
|
|
3515
|
+
}
|
|
3516
|
+
];
|
|
3517
|
+
};
|
|
3292
3518
|
floriday_base_items_cache: {
|
|
3293
3519
|
Row: {
|
|
3294
3520
|
connection_id: string;
|
|
@@ -4435,6 +4661,24 @@ export type Database = {
|
|
|
4435
4661
|
}
|
|
4436
4662
|
];
|
|
4437
4663
|
};
|
|
4664
|
+
floriday_rate_limit_state: {
|
|
4665
|
+
Row: {
|
|
4666
|
+
bucket: string;
|
|
4667
|
+
last_refill_at: string;
|
|
4668
|
+
tokens: number;
|
|
4669
|
+
};
|
|
4670
|
+
Insert: {
|
|
4671
|
+
bucket: string;
|
|
4672
|
+
last_refill_at?: string;
|
|
4673
|
+
tokens: number;
|
|
4674
|
+
};
|
|
4675
|
+
Update: {
|
|
4676
|
+
bucket?: string;
|
|
4677
|
+
last_refill_at?: string;
|
|
4678
|
+
tokens?: number;
|
|
4679
|
+
};
|
|
4680
|
+
Relationships: [];
|
|
4681
|
+
};
|
|
4438
4682
|
floriday_resource_schemas: {
|
|
4439
4683
|
Row: {
|
|
4440
4684
|
enums: Json;
|
|
@@ -4876,6 +5120,62 @@ export type Database = {
|
|
|
4876
5120
|
}
|
|
4877
5121
|
];
|
|
4878
5122
|
};
|
|
5123
|
+
flow_role_assignments: {
|
|
5124
|
+
Row: {
|
|
5125
|
+
created_at: string;
|
|
5126
|
+
id: string;
|
|
5127
|
+
role_id: string;
|
|
5128
|
+
user_id: string;
|
|
5129
|
+
};
|
|
5130
|
+
Insert: {
|
|
5131
|
+
created_at?: string;
|
|
5132
|
+
id?: string;
|
|
5133
|
+
role_id: string;
|
|
5134
|
+
user_id: string;
|
|
5135
|
+
};
|
|
5136
|
+
Update: {
|
|
5137
|
+
created_at?: string;
|
|
5138
|
+
id?: string;
|
|
5139
|
+
role_id?: string;
|
|
5140
|
+
user_id?: string;
|
|
5141
|
+
};
|
|
5142
|
+
Relationships: [
|
|
5143
|
+
{
|
|
5144
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
5145
|
+
columns: ["role_id"];
|
|
5146
|
+
isOneToOne: false;
|
|
5147
|
+
referencedRelation: "flow_roles";
|
|
5148
|
+
referencedColumns: ["id"];
|
|
5149
|
+
}
|
|
5150
|
+
];
|
|
5151
|
+
};
|
|
5152
|
+
flow_roles: {
|
|
5153
|
+
Row: {
|
|
5154
|
+
created_at: string;
|
|
5155
|
+
description: string | null;
|
|
5156
|
+
id: string;
|
|
5157
|
+
module_access: string[];
|
|
5158
|
+
name: string;
|
|
5159
|
+
updated_at: string;
|
|
5160
|
+
};
|
|
5161
|
+
Insert: {
|
|
5162
|
+
created_at?: string;
|
|
5163
|
+
description?: string | null;
|
|
5164
|
+
id?: string;
|
|
5165
|
+
module_access?: string[];
|
|
5166
|
+
name: string;
|
|
5167
|
+
updated_at?: string;
|
|
5168
|
+
};
|
|
5169
|
+
Update: {
|
|
5170
|
+
created_at?: string;
|
|
5171
|
+
description?: string | null;
|
|
5172
|
+
id?: string;
|
|
5173
|
+
module_access?: string[];
|
|
5174
|
+
name?: string;
|
|
5175
|
+
updated_at?: string;
|
|
5176
|
+
};
|
|
5177
|
+
Relationships: [];
|
|
5178
|
+
};
|
|
4879
5179
|
imap_accounts: {
|
|
4880
5180
|
Row: {
|
|
4881
5181
|
created_at: string;
|
|
@@ -5533,6 +5833,7 @@ export type Database = {
|
|
|
5533
5833
|
matched_customer_id: string | null;
|
|
5534
5834
|
message_id: string;
|
|
5535
5835
|
notes: string | null;
|
|
5836
|
+
order_number: string | null;
|
|
5536
5837
|
parsed_payload: Json | null;
|
|
5537
5838
|
reviewed_at: string | null;
|
|
5538
5839
|
reviewed_by: string | null;
|
|
@@ -5548,6 +5849,7 @@ export type Database = {
|
|
|
5548
5849
|
matched_customer_id?: string | null;
|
|
5549
5850
|
message_id: string;
|
|
5550
5851
|
notes?: string | null;
|
|
5852
|
+
order_number?: string | null;
|
|
5551
5853
|
parsed_payload?: Json | null;
|
|
5552
5854
|
reviewed_at?: string | null;
|
|
5553
5855
|
reviewed_by?: string | null;
|
|
@@ -5563,6 +5865,7 @@ export type Database = {
|
|
|
5563
5865
|
matched_customer_id?: string | null;
|
|
5564
5866
|
message_id?: string;
|
|
5565
5867
|
notes?: string | null;
|
|
5868
|
+
order_number?: string | null;
|
|
5566
5869
|
parsed_payload?: Json | null;
|
|
5567
5870
|
reviewed_at?: string | null;
|
|
5568
5871
|
reviewed_by?: string | null;
|
|
@@ -6449,6 +6752,7 @@ export type Database = {
|
|
|
6449
6752
|
id: string;
|
|
6450
6753
|
items: Json;
|
|
6451
6754
|
notes: string | null;
|
|
6755
|
+
order_number: string | null;
|
|
6452
6756
|
recipient_id: string;
|
|
6453
6757
|
total_amount: number;
|
|
6454
6758
|
};
|
|
@@ -6462,6 +6766,7 @@ export type Database = {
|
|
|
6462
6766
|
id?: string;
|
|
6463
6767
|
items?: Json;
|
|
6464
6768
|
notes?: string | null;
|
|
6769
|
+
order_number?: string | null;
|
|
6465
6770
|
recipient_id: string;
|
|
6466
6771
|
total_amount?: number;
|
|
6467
6772
|
};
|
|
@@ -6475,6 +6780,7 @@ export type Database = {
|
|
|
6475
6780
|
id?: string;
|
|
6476
6781
|
items?: Json;
|
|
6477
6782
|
notes?: string | null;
|
|
6783
|
+
order_number?: string | null;
|
|
6478
6784
|
recipient_id?: string;
|
|
6479
6785
|
total_amount?: number;
|
|
6480
6786
|
};
|
|
@@ -6642,6 +6948,9 @@ export type Database = {
|
|
|
6642
6948
|
crates_per_layer: number;
|
|
6643
6949
|
created_at: string;
|
|
6644
6950
|
id: string;
|
|
6951
|
+
layer_fraction: number;
|
|
6952
|
+
layer_share_pct: number;
|
|
6953
|
+
layers_per_cart: number;
|
|
6645
6954
|
order_item_id: string | null;
|
|
6646
6955
|
plants_per_crate: number;
|
|
6647
6956
|
product_id: string | null;
|
|
@@ -6653,6 +6962,9 @@ export type Database = {
|
|
|
6653
6962
|
crates_per_layer?: number;
|
|
6654
6963
|
created_at?: string;
|
|
6655
6964
|
id?: string;
|
|
6965
|
+
layer_fraction?: number;
|
|
6966
|
+
layer_share_pct?: number;
|
|
6967
|
+
layers_per_cart?: number;
|
|
6656
6968
|
order_item_id?: string | null;
|
|
6657
6969
|
plants_per_crate?: number;
|
|
6658
6970
|
product_id?: string | null;
|
|
@@ -6664,6 +6976,9 @@ export type Database = {
|
|
|
6664
6976
|
crates_per_layer?: number;
|
|
6665
6977
|
created_at?: string;
|
|
6666
6978
|
id?: string;
|
|
6979
|
+
layer_fraction?: number;
|
|
6980
|
+
layer_share_pct?: number;
|
|
6981
|
+
layers_per_cart?: number;
|
|
6667
6982
|
order_item_id?: string | null;
|
|
6668
6983
|
plants_per_crate?: number;
|
|
6669
6984
|
product_id?: string | null;
|
|
@@ -6695,33 +7010,45 @@ export type Database = {
|
|
|
6695
7010
|
};
|
|
6696
7011
|
order_carts: {
|
|
6697
7012
|
Row: {
|
|
7013
|
+
algorithm_version: number;
|
|
6698
7014
|
cart_number: number;
|
|
6699
7015
|
created_at: string;
|
|
6700
7016
|
id: string;
|
|
6701
7017
|
is_auto: boolean;
|
|
6702
7018
|
is_complete: boolean;
|
|
6703
7019
|
notes: string | null;
|
|
7020
|
+
occupancy_pct: number;
|
|
6704
7021
|
order_id: string;
|
|
7022
|
+
source: string;
|
|
7023
|
+
total_layers_used: number;
|
|
6705
7024
|
updated_at: string;
|
|
6706
7025
|
};
|
|
6707
7026
|
Insert: {
|
|
7027
|
+
algorithm_version?: number;
|
|
6708
7028
|
cart_number: number;
|
|
6709
7029
|
created_at?: string;
|
|
6710
7030
|
id?: string;
|
|
6711
7031
|
is_auto?: boolean;
|
|
6712
7032
|
is_complete?: boolean;
|
|
6713
7033
|
notes?: string | null;
|
|
7034
|
+
occupancy_pct?: number;
|
|
6714
7035
|
order_id: string;
|
|
7036
|
+
source?: string;
|
|
7037
|
+
total_layers_used?: number;
|
|
6715
7038
|
updated_at?: string;
|
|
6716
7039
|
};
|
|
6717
7040
|
Update: {
|
|
7041
|
+
algorithm_version?: number;
|
|
6718
7042
|
cart_number?: number;
|
|
6719
7043
|
created_at?: string;
|
|
6720
7044
|
id?: string;
|
|
6721
7045
|
is_auto?: boolean;
|
|
6722
7046
|
is_complete?: boolean;
|
|
6723
7047
|
notes?: string | null;
|
|
7048
|
+
occupancy_pct?: number;
|
|
6724
7049
|
order_id?: string;
|
|
7050
|
+
source?: string;
|
|
7051
|
+
total_layers_used?: number;
|
|
6725
7052
|
updated_at?: string;
|
|
6726
7053
|
};
|
|
6727
7054
|
Relationships: [
|
|
@@ -6881,6 +7208,8 @@ export type Database = {
|
|
|
6881
7208
|
order_date: string;
|
|
6882
7209
|
order_number: string;
|
|
6883
7210
|
order_source: string;
|
|
7211
|
+
plan_locked_at: string | null;
|
|
7212
|
+
plan_locked_ref: string | null;
|
|
6884
7213
|
status: string;
|
|
6885
7214
|
total: string;
|
|
6886
7215
|
updated_at: string;
|
|
@@ -6897,6 +7226,8 @@ export type Database = {
|
|
|
6897
7226
|
order_date?: string;
|
|
6898
7227
|
order_number: string;
|
|
6899
7228
|
order_source?: string;
|
|
7229
|
+
plan_locked_at?: string | null;
|
|
7230
|
+
plan_locked_ref?: string | null;
|
|
6900
7231
|
status?: string;
|
|
6901
7232
|
total?: string;
|
|
6902
7233
|
updated_at?: string;
|
|
@@ -6913,6 +7244,8 @@ export type Database = {
|
|
|
6913
7244
|
order_date?: string;
|
|
6914
7245
|
order_number?: string;
|
|
6915
7246
|
order_source?: string;
|
|
7247
|
+
plan_locked_at?: string | null;
|
|
7248
|
+
plan_locked_ref?: string | null;
|
|
6916
7249
|
status?: string;
|
|
6917
7250
|
total?: string;
|
|
6918
7251
|
updated_at?: string;
|
|
@@ -7287,28 +7620,34 @@ export type Database = {
|
|
|
7287
7620
|
};
|
|
7288
7621
|
profiles: {
|
|
7289
7622
|
Row: {
|
|
7623
|
+
address: string | null;
|
|
7290
7624
|
created_at: string;
|
|
7291
7625
|
display_name: string | null;
|
|
7292
7626
|
email: string | null;
|
|
7293
7627
|
id: string;
|
|
7628
|
+
is_superadmin: boolean;
|
|
7294
7629
|
notification_preferences: Json;
|
|
7295
7630
|
tenant_id: string | null;
|
|
7296
7631
|
updated_at: string;
|
|
7297
7632
|
};
|
|
7298
7633
|
Insert: {
|
|
7634
|
+
address?: string | null;
|
|
7299
7635
|
created_at?: string;
|
|
7300
7636
|
display_name?: string | null;
|
|
7301
7637
|
email?: string | null;
|
|
7302
7638
|
id: string;
|
|
7639
|
+
is_superadmin?: boolean;
|
|
7303
7640
|
notification_preferences?: Json;
|
|
7304
7641
|
tenant_id?: string | null;
|
|
7305
7642
|
updated_at?: string;
|
|
7306
7643
|
};
|
|
7307
7644
|
Update: {
|
|
7645
|
+
address?: string | null;
|
|
7308
7646
|
created_at?: string;
|
|
7309
7647
|
display_name?: string | null;
|
|
7310
7648
|
email?: string | null;
|
|
7311
7649
|
id?: string;
|
|
7650
|
+
is_superadmin?: boolean;
|
|
7312
7651
|
notification_preferences?: Json;
|
|
7313
7652
|
tenant_id?: string | null;
|
|
7314
7653
|
updated_at?: string;
|
|
@@ -8130,6 +8469,24 @@ export type Database = {
|
|
|
8130
8469
|
};
|
|
8131
8470
|
Relationships: [];
|
|
8132
8471
|
};
|
|
8472
|
+
sidebar_config: {
|
|
8473
|
+
Row: {
|
|
8474
|
+
id: string;
|
|
8475
|
+
module_order: string[];
|
|
8476
|
+
updated_at: string;
|
|
8477
|
+
};
|
|
8478
|
+
Insert: {
|
|
8479
|
+
id?: string;
|
|
8480
|
+
module_order?: string[];
|
|
8481
|
+
updated_at?: string;
|
|
8482
|
+
};
|
|
8483
|
+
Update: {
|
|
8484
|
+
id?: string;
|
|
8485
|
+
module_order?: string[];
|
|
8486
|
+
updated_at?: string;
|
|
8487
|
+
};
|
|
8488
|
+
Relationships: [];
|
|
8489
|
+
};
|
|
8133
8490
|
stock_import_runs: {
|
|
8134
8491
|
Row: {
|
|
8135
8492
|
connection_id: string | null;
|
|
@@ -8188,7 +8545,7 @@ export type Database = {
|
|
|
8188
8545
|
reason: string | null;
|
|
8189
8546
|
reserved_after: number | null;
|
|
8190
8547
|
reserved_before: number | null;
|
|
8191
|
-
trade_item_key: string;
|
|
8548
|
+
trade_item_key: string | null;
|
|
8192
8549
|
};
|
|
8193
8550
|
Insert: {
|
|
8194
8551
|
connection_id?: string | null;
|
|
@@ -8205,7 +8562,7 @@ export type Database = {
|
|
|
8205
8562
|
reason?: string | null;
|
|
8206
8563
|
reserved_after?: number | null;
|
|
8207
8564
|
reserved_before?: number | null;
|
|
8208
|
-
trade_item_key
|
|
8565
|
+
trade_item_key?: string | null;
|
|
8209
8566
|
};
|
|
8210
8567
|
Update: {
|
|
8211
8568
|
connection_id?: string | null;
|
|
@@ -8222,7 +8579,7 @@ export type Database = {
|
|
|
8222
8579
|
reason?: string | null;
|
|
8223
8580
|
reserved_after?: number | null;
|
|
8224
8581
|
reserved_before?: number | null;
|
|
8225
|
-
trade_item_key?: string;
|
|
8582
|
+
trade_item_key?: string | null;
|
|
8226
8583
|
};
|
|
8227
8584
|
Relationships: [];
|
|
8228
8585
|
};
|
|
@@ -8573,6 +8930,116 @@ export type Database = {
|
|
|
8573
8930
|
};
|
|
8574
8931
|
Relationships: [];
|
|
8575
8932
|
};
|
|
8933
|
+
trade_item_supply_lines: {
|
|
8934
|
+
Row: {
|
|
8935
|
+
available_quantity: number | null;
|
|
8936
|
+
connection_id: string;
|
|
8937
|
+
created_at: string;
|
|
8938
|
+
currency: string | null;
|
|
8939
|
+
endpoint_family: string | null;
|
|
8940
|
+
environment: string | null;
|
|
8941
|
+
id: string;
|
|
8942
|
+
last_error: string | null;
|
|
8943
|
+
last_status: number | null;
|
|
8944
|
+
packing_configuration_id: string | null;
|
|
8945
|
+
period_end: string | null;
|
|
8946
|
+
period_start: string | null;
|
|
8947
|
+
price_per_piece: number | null;
|
|
8948
|
+
sales_unit: string | null;
|
|
8949
|
+
supply_line_id: string | null;
|
|
8950
|
+
supply_type: string;
|
|
8951
|
+
trade_item_id: string;
|
|
8952
|
+
updated_at: string;
|
|
8953
|
+
user_id: string;
|
|
8954
|
+
week: number | null;
|
|
8955
|
+
year: number | null;
|
|
8956
|
+
};
|
|
8957
|
+
Insert: {
|
|
8958
|
+
available_quantity?: number | null;
|
|
8959
|
+
connection_id: string;
|
|
8960
|
+
created_at?: string;
|
|
8961
|
+
currency?: string | null;
|
|
8962
|
+
endpoint_family?: string | null;
|
|
8963
|
+
environment?: string | null;
|
|
8964
|
+
id?: string;
|
|
8965
|
+
last_error?: string | null;
|
|
8966
|
+
last_status?: number | null;
|
|
8967
|
+
packing_configuration_id?: string | null;
|
|
8968
|
+
period_end?: string | null;
|
|
8969
|
+
period_start?: string | null;
|
|
8970
|
+
price_per_piece?: number | null;
|
|
8971
|
+
sales_unit?: string | null;
|
|
8972
|
+
supply_line_id?: string | null;
|
|
8973
|
+
supply_type?: string;
|
|
8974
|
+
trade_item_id: string;
|
|
8975
|
+
updated_at?: string;
|
|
8976
|
+
user_id: string;
|
|
8977
|
+
week?: number | null;
|
|
8978
|
+
year?: number | null;
|
|
8979
|
+
};
|
|
8980
|
+
Update: {
|
|
8981
|
+
available_quantity?: number | null;
|
|
8982
|
+
connection_id?: string;
|
|
8983
|
+
created_at?: string;
|
|
8984
|
+
currency?: string | null;
|
|
8985
|
+
endpoint_family?: string | null;
|
|
8986
|
+
environment?: string | null;
|
|
8987
|
+
id?: string;
|
|
8988
|
+
last_error?: string | null;
|
|
8989
|
+
last_status?: number | null;
|
|
8990
|
+
packing_configuration_id?: string | null;
|
|
8991
|
+
period_end?: string | null;
|
|
8992
|
+
period_start?: string | null;
|
|
8993
|
+
price_per_piece?: number | null;
|
|
8994
|
+
sales_unit?: string | null;
|
|
8995
|
+
supply_line_id?: string | null;
|
|
8996
|
+
supply_type?: string;
|
|
8997
|
+
trade_item_id?: string;
|
|
8998
|
+
updated_at?: string;
|
|
8999
|
+
user_id?: string;
|
|
9000
|
+
week?: number | null;
|
|
9001
|
+
year?: number | null;
|
|
9002
|
+
};
|
|
9003
|
+
Relationships: [];
|
|
9004
|
+
};
|
|
9005
|
+
trade_item_warehouse_preferences: {
|
|
9006
|
+
Row: {
|
|
9007
|
+
connection_id: string;
|
|
9008
|
+
created_at: string;
|
|
9009
|
+
id: string;
|
|
9010
|
+
trade_item_id: string;
|
|
9011
|
+
updated_at: string;
|
|
9012
|
+
warehouse_id: string;
|
|
9013
|
+
warehouse_name: string | null;
|
|
9014
|
+
};
|
|
9015
|
+
Insert: {
|
|
9016
|
+
connection_id: string;
|
|
9017
|
+
created_at?: string;
|
|
9018
|
+
id?: string;
|
|
9019
|
+
trade_item_id: string;
|
|
9020
|
+
updated_at?: string;
|
|
9021
|
+
warehouse_id: string;
|
|
9022
|
+
warehouse_name?: string | null;
|
|
9023
|
+
};
|
|
9024
|
+
Update: {
|
|
9025
|
+
connection_id?: string;
|
|
9026
|
+
created_at?: string;
|
|
9027
|
+
id?: string;
|
|
9028
|
+
trade_item_id?: string;
|
|
9029
|
+
updated_at?: string;
|
|
9030
|
+
warehouse_id?: string;
|
|
9031
|
+
warehouse_name?: string | null;
|
|
9032
|
+
};
|
|
9033
|
+
Relationships: [
|
|
9034
|
+
{
|
|
9035
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
9036
|
+
columns: ["connection_id"];
|
|
9037
|
+
isOneToOne: false;
|
|
9038
|
+
referencedRelation: "floriday_connections";
|
|
9039
|
+
referencedColumns: ["id"];
|
|
9040
|
+
}
|
|
9041
|
+
];
|
|
9042
|
+
};
|
|
8576
9043
|
twinfield_connections: {
|
|
8577
9044
|
Row: {
|
|
8578
9045
|
access_token: string | null;
|
|
@@ -8898,6 +9365,10 @@ export type Database = {
|
|
|
8898
9365
|
default_invoice_type: string;
|
|
8899
9366
|
default_payment_term_days: number;
|
|
8900
9367
|
default_vat_code: string;
|
|
9368
|
+
invoice_enabled_ao: boolean;
|
|
9369
|
+
invoice_enabled_fo: boolean;
|
|
9370
|
+
invoice_enabled_ho: boolean;
|
|
9371
|
+
invoice_enabled_mo: boolean;
|
|
8901
9372
|
updated_at: string;
|
|
8902
9373
|
user_id: string;
|
|
8903
9374
|
};
|
|
@@ -8907,6 +9378,10 @@ export type Database = {
|
|
|
8907
9378
|
default_invoice_type?: string;
|
|
8908
9379
|
default_payment_term_days?: number;
|
|
8909
9380
|
default_vat_code?: string;
|
|
9381
|
+
invoice_enabled_ao?: boolean;
|
|
9382
|
+
invoice_enabled_fo?: boolean;
|
|
9383
|
+
invoice_enabled_ho?: boolean;
|
|
9384
|
+
invoice_enabled_mo?: boolean;
|
|
8910
9385
|
updated_at?: string;
|
|
8911
9386
|
user_id: string;
|
|
8912
9387
|
};
|
|
@@ -8916,6 +9391,10 @@ export type Database = {
|
|
|
8916
9391
|
default_invoice_type?: string;
|
|
8917
9392
|
default_payment_term_days?: number;
|
|
8918
9393
|
default_vat_code?: string;
|
|
9394
|
+
invoice_enabled_ao?: boolean;
|
|
9395
|
+
invoice_enabled_fo?: boolean;
|
|
9396
|
+
invoice_enabled_ho?: boolean;
|
|
9397
|
+
invoice_enabled_mo?: boolean;
|
|
8919
9398
|
updated_at?: string;
|
|
8920
9399
|
user_id?: string;
|
|
8921
9400
|
};
|
|
@@ -10238,6 +10717,12 @@ export type Database = {
|
|
|
10238
10717
|
order_number: string;
|
|
10239
10718
|
}[];
|
|
10240
10719
|
};
|
|
10720
|
+
autolink_product_to_floriday: {
|
|
10721
|
+
Args: {
|
|
10722
|
+
p_product_id: string;
|
|
10723
|
+
};
|
|
10724
|
+
Returns: string;
|
|
10725
|
+
};
|
|
10241
10726
|
backfill_open_order_reservations: {
|
|
10242
10727
|
Args: never;
|
|
10243
10728
|
Returns: {
|
|
@@ -10274,7 +10759,19 @@ export type Database = {
|
|
|
10274
10759
|
};
|
|
10275
10760
|
cleanup_old_bookings: {
|
|
10276
10761
|
Args: never;
|
|
10277
|
-
Returns:
|
|
10762
|
+
Returns: undefined;
|
|
10763
|
+
};
|
|
10764
|
+
consume_floriday_rate_limit: {
|
|
10765
|
+
Args: {
|
|
10766
|
+
p_bucket: string;
|
|
10767
|
+
p_capacity: number;
|
|
10768
|
+
p_cost?: number;
|
|
10769
|
+
p_refill_per_sec: number;
|
|
10770
|
+
};
|
|
10771
|
+
Returns: {
|
|
10772
|
+
granted: boolean;
|
|
10773
|
+
wait_ms: number;
|
|
10774
|
+
}[];
|
|
10278
10775
|
};
|
|
10279
10776
|
control_get_todays_carts: {
|
|
10280
10777
|
Args: never;
|
|
@@ -10356,6 +10853,12 @@ export type Database = {
|
|
|
10356
10853
|
status: string;
|
|
10357
10854
|
}[];
|
|
10358
10855
|
};
|
|
10856
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10857
|
+
Args: {
|
|
10858
|
+
p_order_id: string;
|
|
10859
|
+
};
|
|
10860
|
+
Returns: undefined;
|
|
10861
|
+
};
|
|
10359
10862
|
ensure_trade_item_stock_row: {
|
|
10360
10863
|
Args: {
|
|
10361
10864
|
p_key: string;
|
|
@@ -10462,6 +10965,13 @@ export type Database = {
|
|
|
10462
10965
|
office_code: string;
|
|
10463
10966
|
}[];
|
|
10464
10967
|
};
|
|
10968
|
+
get_floricode_record_counts: {
|
|
10969
|
+
Args: never;
|
|
10970
|
+
Returns: {
|
|
10971
|
+
count: number;
|
|
10972
|
+
resource: string;
|
|
10973
|
+
}[];
|
|
10974
|
+
};
|
|
10465
10975
|
get_floriday_agreements_active: {
|
|
10466
10976
|
Args: {
|
|
10467
10977
|
p_on_date?: string;
|
|
@@ -10553,6 +11063,12 @@ export type Database = {
|
|
|
10553
11063
|
};
|
|
10554
11064
|
Returns: Json;
|
|
10555
11065
|
};
|
|
11066
|
+
get_offer_delivery_options: {
|
|
11067
|
+
Args: {
|
|
11068
|
+
p_code: string;
|
|
11069
|
+
};
|
|
11070
|
+
Returns: Json;
|
|
11071
|
+
};
|
|
10556
11072
|
get_offer_recipient_by_code: {
|
|
10557
11073
|
Args: {
|
|
10558
11074
|
p_code: string;
|
|
@@ -10617,6 +11133,12 @@ export type Database = {
|
|
|
10617
11133
|
Args: never;
|
|
10618
11134
|
Returns: boolean;
|
|
10619
11135
|
};
|
|
11136
|
+
is_superadmin: {
|
|
11137
|
+
Args: {
|
|
11138
|
+
_user_id: string;
|
|
11139
|
+
};
|
|
11140
|
+
Returns: boolean;
|
|
11141
|
+
};
|
|
10620
11142
|
local_effective_price: {
|
|
10621
11143
|
Args: {
|
|
10622
11144
|
_customer_id: string;
|
|
@@ -10651,6 +11173,13 @@ export type Database = {
|
|
|
10651
11173
|
};
|
|
10652
11174
|
Returns: string;
|
|
10653
11175
|
};
|
|
11176
|
+
next_order_number_for_date: {
|
|
11177
|
+
Args: {
|
|
11178
|
+
p_created_at?: string;
|
|
11179
|
+
p_prefix: string;
|
|
11180
|
+
};
|
|
11181
|
+
Returns: string;
|
|
11182
|
+
};
|
|
10654
11183
|
next_work_order_number: {
|
|
10655
11184
|
Args: {
|
|
10656
11185
|
p_parent_work_order_id?: string;
|
|
@@ -10658,6 +11187,12 @@ export type Database = {
|
|
|
10658
11187
|
};
|
|
10659
11188
|
Returns: string;
|
|
10660
11189
|
};
|
|
11190
|
+
normalize_order_source: {
|
|
11191
|
+
Args: {
|
|
11192
|
+
p_src: string;
|
|
11193
|
+
};
|
|
11194
|
+
Returns: string;
|
|
11195
|
+
};
|
|
10661
11196
|
normalize_vat: {
|
|
10662
11197
|
Args: {
|
|
10663
11198
|
v: string;
|
|
@@ -10672,10 +11207,21 @@ export type Database = {
|
|
|
10672
11207
|
};
|
|
10673
11208
|
Returns: boolean;
|
|
10674
11209
|
};
|
|
11210
|
+
order_number_prefix: {
|
|
11211
|
+
Args: {
|
|
11212
|
+
p_custom_fields?: Json;
|
|
11213
|
+
p_order_source: string;
|
|
11214
|
+
};
|
|
11215
|
+
Returns: string;
|
|
11216
|
+
};
|
|
10675
11217
|
pickstation_get_orders_raw: {
|
|
10676
11218
|
Args: never;
|
|
10677
11219
|
Returns: Json;
|
|
10678
11220
|
};
|
|
11221
|
+
pickstation_get_planning_context: {
|
|
11222
|
+
Args: never;
|
|
11223
|
+
Returns: Json;
|
|
11224
|
+
};
|
|
10679
11225
|
pickstation_get_settings: {
|
|
10680
11226
|
Args: never;
|
|
10681
11227
|
Returns: Json;
|
|
@@ -10706,6 +11252,28 @@ export type Database = {
|
|
|
10706
11252
|
};
|
|
10707
11253
|
Returns: undefined;
|
|
10708
11254
|
};
|
|
11255
|
+
recompute_order_status: {
|
|
11256
|
+
Args: {
|
|
11257
|
+
p_order_id: string;
|
|
11258
|
+
};
|
|
11259
|
+
Returns: undefined;
|
|
11260
|
+
};
|
|
11261
|
+
recompute_reserved_for_order: {
|
|
11262
|
+
Args: {
|
|
11263
|
+
p_order_id: string;
|
|
11264
|
+
};
|
|
11265
|
+
Returns: undefined;
|
|
11266
|
+
};
|
|
11267
|
+
recompute_reserved_stock: {
|
|
11268
|
+
Args: {
|
|
11269
|
+
p_trade_item_key: string;
|
|
11270
|
+
};
|
|
11271
|
+
Returns: undefined;
|
|
11272
|
+
};
|
|
11273
|
+
refresh_external_customers_grouped: {
|
|
11274
|
+
Args: never;
|
|
11275
|
+
Returns: undefined;
|
|
11276
|
+
};
|
|
10709
11277
|
refresh_floricode_derived_code_lists: {
|
|
10710
11278
|
Args: never;
|
|
10711
11279
|
Returns: {
|
|
@@ -10720,6 +11288,12 @@ export type Database = {
|
|
|
10720
11288
|
};
|
|
10721
11289
|
Returns: number;
|
|
10722
11290
|
};
|
|
11291
|
+
refresh_floricode_derived_for_products: {
|
|
11292
|
+
Args: {
|
|
11293
|
+
_product_ids: string[];
|
|
11294
|
+
};
|
|
11295
|
+
Returns: number;
|
|
11296
|
+
};
|
|
10723
11297
|
reset_floriday_sync_cursor: {
|
|
10724
11298
|
Args: {
|
|
10725
11299
|
p_connection_id: string;
|
|
@@ -10727,6 +11301,12 @@ export type Database = {
|
|
|
10727
11301
|
};
|
|
10728
11302
|
Returns: undefined;
|
|
10729
11303
|
};
|
|
11304
|
+
resolve_product_id_for_item: {
|
|
11305
|
+
Args: {
|
|
11306
|
+
p_product_name: string;
|
|
11307
|
+
};
|
|
11308
|
+
Returns: string;
|
|
11309
|
+
};
|
|
10730
11310
|
schedule_floriday_additional_services_sync: {
|
|
10731
11311
|
Args: {
|
|
10732
11312
|
p_apikey: string;
|
|
@@ -11004,6 +11584,24 @@ export type Database = {
|
|
|
11004
11584
|
};
|
|
11005
11585
|
Returns: string[];
|
|
11006
11586
|
};
|
|
11587
|
+
sync_cached_packing_from_product: {
|
|
11588
|
+
Args: {
|
|
11589
|
+
p_product_id: string;
|
|
11590
|
+
};
|
|
11591
|
+
Returns: undefined;
|
|
11592
|
+
};
|
|
11593
|
+
sync_order_cart_item_packing_from_product: {
|
|
11594
|
+
Args: {
|
|
11595
|
+
p_product_id: string;
|
|
11596
|
+
};
|
|
11597
|
+
Returns: undefined;
|
|
11598
|
+
};
|
|
11599
|
+
sync_product_packing_from_floriday_cache: {
|
|
11600
|
+
Args: {
|
|
11601
|
+
p_floriday_id: string;
|
|
11602
|
+
};
|
|
11603
|
+
Returns: undefined;
|
|
11604
|
+
};
|
|
11007
11605
|
twinfield_decrypt: {
|
|
11008
11606
|
Args: {
|
|
11009
11607
|
cipher: string;
|
|
@@ -11016,6 +11614,17 @@ export type Database = {
|
|
|
11016
11614
|
};
|
|
11017
11615
|
Returns: string;
|
|
11018
11616
|
};
|
|
11617
|
+
upsert_auto_fulfillment_log: {
|
|
11618
|
+
Args: {
|
|
11619
|
+
p_connection_id: string;
|
|
11620
|
+
p_error?: string;
|
|
11621
|
+
p_fulfillment_order_id?: string;
|
|
11622
|
+
p_reason?: string;
|
|
11623
|
+
p_sales_order_id: string;
|
|
11624
|
+
p_status: string;
|
|
11625
|
+
};
|
|
11626
|
+
Returns: undefined;
|
|
11627
|
+
};
|
|
11019
11628
|
};
|
|
11020
11629
|
Enums: {
|
|
11021
11630
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|