@flowselections/floriday-authenticatie-module 1.0.19 → 1.0.21
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/settings/FlorydaySettingsCard.js +0 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1047 -169
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1047 -169
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1047 -169
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1082 -177
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floricode.functions.d.ts +7400 -1254
- package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auction-letters.functions.d.ts +1047 -169
- package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-labels.functions.d.ts +1047 -169
- package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +6338 -1070
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-scopes.d.ts +0 -8
- package/dist-lib/lib/floriday-scopes.d.ts.map +1 -1
- package/dist-lib/lib/floriday-scopes.js +4 -28
- package/dist-lib/lib/floriday-stickers.functions.d.ts +1047 -169
- package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sync.functions.d.ts +32942 -28268
- package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sync.functions.js +62 -145
- package/dist-lib/lib/floriday-writes.functions.d.ts +6344 -1112
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +19100 -3404
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +47 -21
- package/package.json +3 -3
|
@@ -247,6 +247,172 @@ export type Database = {
|
|
|
247
247
|
};
|
|
248
248
|
Relationships: [];
|
|
249
249
|
};
|
|
250
|
+
ai_credentials: {
|
|
251
|
+
Row: {
|
|
252
|
+
active: boolean;
|
|
253
|
+
api_key: string;
|
|
254
|
+
created_at: string;
|
|
255
|
+
created_by: string | null;
|
|
256
|
+
id: string;
|
|
257
|
+
label: string;
|
|
258
|
+
provider_id: string;
|
|
259
|
+
updated_at: string;
|
|
260
|
+
};
|
|
261
|
+
Insert: {
|
|
262
|
+
active?: boolean;
|
|
263
|
+
api_key: string;
|
|
264
|
+
created_at?: string;
|
|
265
|
+
created_by?: string | null;
|
|
266
|
+
id?: string;
|
|
267
|
+
label: string;
|
|
268
|
+
provider_id: string;
|
|
269
|
+
updated_at?: string;
|
|
270
|
+
};
|
|
271
|
+
Update: {
|
|
272
|
+
active?: boolean;
|
|
273
|
+
api_key?: string;
|
|
274
|
+
created_at?: string;
|
|
275
|
+
created_by?: string | null;
|
|
276
|
+
id?: string;
|
|
277
|
+
label?: string;
|
|
278
|
+
provider_id?: string;
|
|
279
|
+
updated_at?: string;
|
|
280
|
+
};
|
|
281
|
+
Relationships: [
|
|
282
|
+
{
|
|
283
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
284
|
+
columns: ["provider_id"];
|
|
285
|
+
isOneToOne: false;
|
|
286
|
+
referencedRelation: "ai_providers";
|
|
287
|
+
referencedColumns: ["id"];
|
|
288
|
+
}
|
|
289
|
+
];
|
|
290
|
+
};
|
|
291
|
+
ai_models: {
|
|
292
|
+
Row: {
|
|
293
|
+
active: boolean;
|
|
294
|
+
context_window: number | null;
|
|
295
|
+
created_at: string;
|
|
296
|
+
display_name: string;
|
|
297
|
+
id: string;
|
|
298
|
+
is_default: boolean;
|
|
299
|
+
modality: string;
|
|
300
|
+
provider_id: string;
|
|
301
|
+
slug: string;
|
|
302
|
+
updated_at: string;
|
|
303
|
+
};
|
|
304
|
+
Insert: {
|
|
305
|
+
active?: boolean;
|
|
306
|
+
context_window?: number | null;
|
|
307
|
+
created_at?: string;
|
|
308
|
+
display_name: string;
|
|
309
|
+
id?: string;
|
|
310
|
+
is_default?: boolean;
|
|
311
|
+
modality?: string;
|
|
312
|
+
provider_id: string;
|
|
313
|
+
slug: string;
|
|
314
|
+
updated_at?: string;
|
|
315
|
+
};
|
|
316
|
+
Update: {
|
|
317
|
+
active?: boolean;
|
|
318
|
+
context_window?: number | null;
|
|
319
|
+
created_at?: string;
|
|
320
|
+
display_name?: string;
|
|
321
|
+
id?: string;
|
|
322
|
+
is_default?: boolean;
|
|
323
|
+
modality?: string;
|
|
324
|
+
provider_id?: string;
|
|
325
|
+
slug?: string;
|
|
326
|
+
updated_at?: string;
|
|
327
|
+
};
|
|
328
|
+
Relationships: [
|
|
329
|
+
{
|
|
330
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
331
|
+
columns: ["provider_id"];
|
|
332
|
+
isOneToOne: false;
|
|
333
|
+
referencedRelation: "ai_providers";
|
|
334
|
+
referencedColumns: ["id"];
|
|
335
|
+
}
|
|
336
|
+
];
|
|
337
|
+
};
|
|
338
|
+
ai_module_bindings: {
|
|
339
|
+
Row: {
|
|
340
|
+
consumer_module_id: string;
|
|
341
|
+
created_at: string;
|
|
342
|
+
credential_id: string;
|
|
343
|
+
id: string;
|
|
344
|
+
model_id: string;
|
|
345
|
+
notes: string | null;
|
|
346
|
+
updated_at: string;
|
|
347
|
+
};
|
|
348
|
+
Insert: {
|
|
349
|
+
consumer_module_id: string;
|
|
350
|
+
created_at?: string;
|
|
351
|
+
credential_id: string;
|
|
352
|
+
id?: string;
|
|
353
|
+
model_id: string;
|
|
354
|
+
notes?: string | null;
|
|
355
|
+
updated_at?: string;
|
|
356
|
+
};
|
|
357
|
+
Update: {
|
|
358
|
+
consumer_module_id?: string;
|
|
359
|
+
created_at?: string;
|
|
360
|
+
credential_id?: string;
|
|
361
|
+
id?: string;
|
|
362
|
+
model_id?: string;
|
|
363
|
+
notes?: string | null;
|
|
364
|
+
updated_at?: string;
|
|
365
|
+
};
|
|
366
|
+
Relationships: [
|
|
367
|
+
{
|
|
368
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
369
|
+
columns: ["credential_id"];
|
|
370
|
+
isOneToOne: false;
|
|
371
|
+
referencedRelation: "ai_credentials";
|
|
372
|
+
referencedColumns: ["id"];
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
376
|
+
columns: ["model_id"];
|
|
377
|
+
isOneToOne: false;
|
|
378
|
+
referencedRelation: "ai_models";
|
|
379
|
+
referencedColumns: ["id"];
|
|
380
|
+
}
|
|
381
|
+
];
|
|
382
|
+
};
|
|
383
|
+
ai_providers: {
|
|
384
|
+
Row: {
|
|
385
|
+
active: boolean;
|
|
386
|
+
auth_type: string;
|
|
387
|
+
base_url: string | null;
|
|
388
|
+
created_at: string;
|
|
389
|
+
id: string;
|
|
390
|
+
name: string;
|
|
391
|
+
slug: string;
|
|
392
|
+
updated_at: string;
|
|
393
|
+
};
|
|
394
|
+
Insert: {
|
|
395
|
+
active?: boolean;
|
|
396
|
+
auth_type?: string;
|
|
397
|
+
base_url?: string | null;
|
|
398
|
+
created_at?: string;
|
|
399
|
+
id?: string;
|
|
400
|
+
name: string;
|
|
401
|
+
slug: string;
|
|
402
|
+
updated_at?: string;
|
|
403
|
+
};
|
|
404
|
+
Update: {
|
|
405
|
+
active?: boolean;
|
|
406
|
+
auth_type?: string;
|
|
407
|
+
base_url?: string | null;
|
|
408
|
+
created_at?: string;
|
|
409
|
+
id?: string;
|
|
410
|
+
name?: string;
|
|
411
|
+
slug?: string;
|
|
412
|
+
updated_at?: string;
|
|
413
|
+
};
|
|
414
|
+
Relationships: [];
|
|
415
|
+
};
|
|
250
416
|
app_settings: {
|
|
251
417
|
Row: {
|
|
252
418
|
created_at: string;
|
|
@@ -1272,8 +1438,27 @@ export type Database = {
|
|
|
1272
1438
|
customers: {
|
|
1273
1439
|
Row: {
|
|
1274
1440
|
address: string | null;
|
|
1441
|
+
address_line1: string | null;
|
|
1442
|
+
address_line2: string | null;
|
|
1443
|
+
address_type: string | null;
|
|
1444
|
+
attention_to: string | null;
|
|
1445
|
+
bank_account_holder: string | null;
|
|
1446
|
+
bank_account_number: string | null;
|
|
1447
|
+
bank_address_line1: string | null;
|
|
1448
|
+
bank_address_line2: string | null;
|
|
1449
|
+
bank_bic: string | null;
|
|
1450
|
+
bank_city: string | null;
|
|
1451
|
+
bank_country: string | null;
|
|
1452
|
+
bank_house_number: string | null;
|
|
1453
|
+
bank_iban: string | null;
|
|
1454
|
+
bank_name: string | null;
|
|
1455
|
+
bank_national_code: string | null;
|
|
1456
|
+
bank_postal_code: string | null;
|
|
1457
|
+
bank_state: string | null;
|
|
1458
|
+
billing_email: string | null;
|
|
1275
1459
|
bio: string | null;
|
|
1276
1460
|
city: string | null;
|
|
1461
|
+
coc_number: string | null;
|
|
1277
1462
|
commercial_name: string | null;
|
|
1278
1463
|
company_name: string;
|
|
1279
1464
|
connection_status: string;
|
|
@@ -1282,21 +1467,28 @@ export type Database = {
|
|
|
1282
1467
|
created_at: string;
|
|
1283
1468
|
custom_fields: Json;
|
|
1284
1469
|
customer_class: string | null;
|
|
1470
|
+
customer_number: string | null;
|
|
1471
|
+
discount_days: number | null;
|
|
1472
|
+
discount_percentage: number | null;
|
|
1285
1473
|
email: string | null;
|
|
1286
1474
|
external_id: string | null;
|
|
1475
|
+
fax: string | null;
|
|
1287
1476
|
floriday_connection_id: string | null;
|
|
1288
1477
|
floriday_organization_id: string | null;
|
|
1289
1478
|
floriday_raw: Json | null;
|
|
1290
1479
|
gln: string | null;
|
|
1291
1480
|
house_number: string | null;
|
|
1481
|
+
icp_country_code: string | null;
|
|
1292
1482
|
id: string;
|
|
1293
1483
|
is_active: boolean;
|
|
1484
|
+
language: string | null;
|
|
1294
1485
|
last_synced_at: string | null;
|
|
1295
1486
|
logo_url: string | null;
|
|
1296
1487
|
markets: string[];
|
|
1297
1488
|
notes: string | null;
|
|
1298
1489
|
organization_type: string | null;
|
|
1299
1490
|
payment_methods: string[];
|
|
1491
|
+
payment_term_days: number | null;
|
|
1300
1492
|
phone: string | null;
|
|
1301
1493
|
postal_code: string | null;
|
|
1302
1494
|
product_groups: string[];
|
|
@@ -1307,13 +1499,33 @@ export type Database = {
|
|
|
1307
1499
|
sync_status: string;
|
|
1308
1500
|
trade_forms: string[];
|
|
1309
1501
|
updated_at: string;
|
|
1502
|
+
vat_display: string | null;
|
|
1310
1503
|
vat_number: string | null;
|
|
1311
1504
|
website: string | null;
|
|
1312
1505
|
};
|
|
1313
1506
|
Insert: {
|
|
1314
1507
|
address?: string | null;
|
|
1508
|
+
address_line1?: string | null;
|
|
1509
|
+
address_line2?: string | null;
|
|
1510
|
+
address_type?: string | null;
|
|
1511
|
+
attention_to?: string | null;
|
|
1512
|
+
bank_account_holder?: string | null;
|
|
1513
|
+
bank_account_number?: string | null;
|
|
1514
|
+
bank_address_line1?: string | null;
|
|
1515
|
+
bank_address_line2?: string | null;
|
|
1516
|
+
bank_bic?: string | null;
|
|
1517
|
+
bank_city?: string | null;
|
|
1518
|
+
bank_country?: string | null;
|
|
1519
|
+
bank_house_number?: string | null;
|
|
1520
|
+
bank_iban?: string | null;
|
|
1521
|
+
bank_name?: string | null;
|
|
1522
|
+
bank_national_code?: string | null;
|
|
1523
|
+
bank_postal_code?: string | null;
|
|
1524
|
+
bank_state?: string | null;
|
|
1525
|
+
billing_email?: string | null;
|
|
1315
1526
|
bio?: string | null;
|
|
1316
1527
|
city?: string | null;
|
|
1528
|
+
coc_number?: string | null;
|
|
1317
1529
|
commercial_name?: string | null;
|
|
1318
1530
|
company_name: string;
|
|
1319
1531
|
connection_status?: string;
|
|
@@ -1322,21 +1534,28 @@ export type Database = {
|
|
|
1322
1534
|
created_at?: string;
|
|
1323
1535
|
custom_fields?: Json;
|
|
1324
1536
|
customer_class?: string | null;
|
|
1537
|
+
customer_number?: string | null;
|
|
1538
|
+
discount_days?: number | null;
|
|
1539
|
+
discount_percentage?: number | null;
|
|
1325
1540
|
email?: string | null;
|
|
1326
1541
|
external_id?: string | null;
|
|
1542
|
+
fax?: string | null;
|
|
1327
1543
|
floriday_connection_id?: string | null;
|
|
1328
1544
|
floriday_organization_id?: string | null;
|
|
1329
1545
|
floriday_raw?: Json | null;
|
|
1330
1546
|
gln?: string | null;
|
|
1331
1547
|
house_number?: string | null;
|
|
1548
|
+
icp_country_code?: string | null;
|
|
1332
1549
|
id?: string;
|
|
1333
1550
|
is_active?: boolean;
|
|
1551
|
+
language?: string | null;
|
|
1334
1552
|
last_synced_at?: string | null;
|
|
1335
1553
|
logo_url?: string | null;
|
|
1336
1554
|
markets?: string[];
|
|
1337
1555
|
notes?: string | null;
|
|
1338
1556
|
organization_type?: string | null;
|
|
1339
1557
|
payment_methods?: string[];
|
|
1558
|
+
payment_term_days?: number | null;
|
|
1340
1559
|
phone?: string | null;
|
|
1341
1560
|
postal_code?: string | null;
|
|
1342
1561
|
product_groups?: string[];
|
|
@@ -1347,13 +1566,33 @@ export type Database = {
|
|
|
1347
1566
|
sync_status?: string;
|
|
1348
1567
|
trade_forms?: string[];
|
|
1349
1568
|
updated_at?: string;
|
|
1569
|
+
vat_display?: string | null;
|
|
1350
1570
|
vat_number?: string | null;
|
|
1351
1571
|
website?: string | null;
|
|
1352
1572
|
};
|
|
1353
1573
|
Update: {
|
|
1354
1574
|
address?: string | null;
|
|
1575
|
+
address_line1?: string | null;
|
|
1576
|
+
address_line2?: string | null;
|
|
1577
|
+
address_type?: string | null;
|
|
1578
|
+
attention_to?: string | null;
|
|
1579
|
+
bank_account_holder?: string | null;
|
|
1580
|
+
bank_account_number?: string | null;
|
|
1581
|
+
bank_address_line1?: string | null;
|
|
1582
|
+
bank_address_line2?: string | null;
|
|
1583
|
+
bank_bic?: string | null;
|
|
1584
|
+
bank_city?: string | null;
|
|
1585
|
+
bank_country?: string | null;
|
|
1586
|
+
bank_house_number?: string | null;
|
|
1587
|
+
bank_iban?: string | null;
|
|
1588
|
+
bank_name?: string | null;
|
|
1589
|
+
bank_national_code?: string | null;
|
|
1590
|
+
bank_postal_code?: string | null;
|
|
1591
|
+
bank_state?: string | null;
|
|
1592
|
+
billing_email?: string | null;
|
|
1355
1593
|
bio?: string | null;
|
|
1356
1594
|
city?: string | null;
|
|
1595
|
+
coc_number?: string | null;
|
|
1357
1596
|
commercial_name?: string | null;
|
|
1358
1597
|
company_name?: string;
|
|
1359
1598
|
connection_status?: string;
|
|
@@ -1362,21 +1601,28 @@ export type Database = {
|
|
|
1362
1601
|
created_at?: string;
|
|
1363
1602
|
custom_fields?: Json;
|
|
1364
1603
|
customer_class?: string | null;
|
|
1604
|
+
customer_number?: string | null;
|
|
1605
|
+
discount_days?: number | null;
|
|
1606
|
+
discount_percentage?: number | null;
|
|
1365
1607
|
email?: string | null;
|
|
1366
1608
|
external_id?: string | null;
|
|
1609
|
+
fax?: string | null;
|
|
1367
1610
|
floriday_connection_id?: string | null;
|
|
1368
1611
|
floriday_organization_id?: string | null;
|
|
1369
1612
|
floriday_raw?: Json | null;
|
|
1370
1613
|
gln?: string | null;
|
|
1371
1614
|
house_number?: string | null;
|
|
1615
|
+
icp_country_code?: string | null;
|
|
1372
1616
|
id?: string;
|
|
1373
1617
|
is_active?: boolean;
|
|
1618
|
+
language?: string | null;
|
|
1374
1619
|
last_synced_at?: string | null;
|
|
1375
1620
|
logo_url?: string | null;
|
|
1376
1621
|
markets?: string[];
|
|
1377
1622
|
notes?: string | null;
|
|
1378
1623
|
organization_type?: string | null;
|
|
1379
1624
|
payment_methods?: string[];
|
|
1625
|
+
payment_term_days?: number | null;
|
|
1380
1626
|
phone?: string | null;
|
|
1381
1627
|
postal_code?: string | null;
|
|
1382
1628
|
product_groups?: string[];
|
|
@@ -1387,6 +1633,7 @@ export type Database = {
|
|
|
1387
1633
|
sync_status?: string;
|
|
1388
1634
|
trade_forms?: string[];
|
|
1389
1635
|
updated_at?: string;
|
|
1636
|
+
vat_display?: string | null;
|
|
1390
1637
|
vat_number?: string | null;
|
|
1391
1638
|
website?: string | null;
|
|
1392
1639
|
};
|
|
@@ -3243,109 +3490,6 @@ export type Database = {
|
|
|
3243
3490
|
}
|
|
3244
3491
|
];
|
|
3245
3492
|
};
|
|
3246
|
-
floriday_agreement_calloffs_cache: {
|
|
3247
|
-
Row: {
|
|
3248
|
-
agreement_id: string | null;
|
|
3249
|
-
connection_id: string;
|
|
3250
|
-
data: Json;
|
|
3251
|
-
delivery_date: string | null;
|
|
3252
|
-
fetched_at: string;
|
|
3253
|
-
floriday_id: string;
|
|
3254
|
-
id: string;
|
|
3255
|
-
is_deleted: boolean;
|
|
3256
|
-
sequence_number: number;
|
|
3257
|
-
status: string | null;
|
|
3258
|
-
updated_at: string;
|
|
3259
|
-
};
|
|
3260
|
-
Insert: {
|
|
3261
|
-
agreement_id?: string | null;
|
|
3262
|
-
connection_id: string;
|
|
3263
|
-
data?: Json;
|
|
3264
|
-
delivery_date?: string | null;
|
|
3265
|
-
fetched_at?: string;
|
|
3266
|
-
floriday_id: string;
|
|
3267
|
-
id?: string;
|
|
3268
|
-
is_deleted?: boolean;
|
|
3269
|
-
sequence_number?: number;
|
|
3270
|
-
status?: string | null;
|
|
3271
|
-
updated_at?: string;
|
|
3272
|
-
};
|
|
3273
|
-
Update: {
|
|
3274
|
-
agreement_id?: string | null;
|
|
3275
|
-
connection_id?: string;
|
|
3276
|
-
data?: Json;
|
|
3277
|
-
delivery_date?: string | null;
|
|
3278
|
-
fetched_at?: string;
|
|
3279
|
-
floriday_id?: string;
|
|
3280
|
-
id?: string;
|
|
3281
|
-
is_deleted?: boolean;
|
|
3282
|
-
sequence_number?: number;
|
|
3283
|
-
status?: string | null;
|
|
3284
|
-
updated_at?: string;
|
|
3285
|
-
};
|
|
3286
|
-
Relationships: [
|
|
3287
|
-
{
|
|
3288
|
-
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
3289
|
-
columns: ["connection_id"];
|
|
3290
|
-
isOneToOne: false;
|
|
3291
|
-
referencedRelation: "floriday_connections";
|
|
3292
|
-
referencedColumns: ["id"];
|
|
3293
|
-
}
|
|
3294
|
-
];
|
|
3295
|
-
};
|
|
3296
|
-
floriday_agreements_cache: {
|
|
3297
|
-
Row: {
|
|
3298
|
-
buyer_organization_id: string | null;
|
|
3299
|
-
connection_id: string;
|
|
3300
|
-
data: Json;
|
|
3301
|
-
fetched_at: string;
|
|
3302
|
-
floriday_id: string;
|
|
3303
|
-
id: string;
|
|
3304
|
-
is_deleted: boolean;
|
|
3305
|
-
sequence_number: number;
|
|
3306
|
-
status: string | null;
|
|
3307
|
-
updated_at: string;
|
|
3308
|
-
valid_from: string | null;
|
|
3309
|
-
valid_until: string | null;
|
|
3310
|
-
};
|
|
3311
|
-
Insert: {
|
|
3312
|
-
buyer_organization_id?: string | null;
|
|
3313
|
-
connection_id: string;
|
|
3314
|
-
data?: Json;
|
|
3315
|
-
fetched_at?: string;
|
|
3316
|
-
floriday_id: string;
|
|
3317
|
-
id?: string;
|
|
3318
|
-
is_deleted?: boolean;
|
|
3319
|
-
sequence_number?: number;
|
|
3320
|
-
status?: string | null;
|
|
3321
|
-
updated_at?: string;
|
|
3322
|
-
valid_from?: string | null;
|
|
3323
|
-
valid_until?: string | null;
|
|
3324
|
-
};
|
|
3325
|
-
Update: {
|
|
3326
|
-
buyer_organization_id?: string | null;
|
|
3327
|
-
connection_id?: string;
|
|
3328
|
-
data?: Json;
|
|
3329
|
-
fetched_at?: string;
|
|
3330
|
-
floriday_id?: string;
|
|
3331
|
-
id?: string;
|
|
3332
|
-
is_deleted?: boolean;
|
|
3333
|
-
sequence_number?: number;
|
|
3334
|
-
status?: string | null;
|
|
3335
|
-
updated_at?: string;
|
|
3336
|
-
valid_from?: string | null;
|
|
3337
|
-
valid_until?: string | null;
|
|
3338
|
-
};
|
|
3339
|
-
Relationships: [
|
|
3340
|
-
{
|
|
3341
|
-
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
3342
|
-
columns: ["connection_id"];
|
|
3343
|
-
isOneToOne: false;
|
|
3344
|
-
referencedRelation: "floriday_connections";
|
|
3345
|
-
referencedColumns: ["id"];
|
|
3346
|
-
}
|
|
3347
|
-
];
|
|
3348
|
-
};
|
|
3349
3493
|
floriday_auction_letters_cache: {
|
|
3350
3494
|
Row: {
|
|
3351
3495
|
auction_letter_code: string;
|
|
@@ -3864,30 +4008,51 @@ export type Database = {
|
|
|
3864
4008
|
}
|
|
3865
4009
|
];
|
|
3866
4010
|
};
|
|
3867
|
-
|
|
4011
|
+
floriday_continuous_stock_cache: {
|
|
3868
4012
|
Row: {
|
|
3869
|
-
attempts: number;
|
|
3870
4013
|
connection_id: string;
|
|
3871
|
-
|
|
3872
|
-
gateway_attempt_id: string | null;
|
|
3873
|
-
id: string;
|
|
3874
|
-
last_error: string | null;
|
|
4014
|
+
fetched_at: string;
|
|
3875
4015
|
number_of_pieces: number;
|
|
3876
|
-
sent_at: string | null;
|
|
3877
|
-
status: string;
|
|
3878
4016
|
trade_item_id: string;
|
|
3879
|
-
updated_at: string;
|
|
3880
|
-
user_id: string;
|
|
3881
4017
|
};
|
|
3882
4018
|
Insert: {
|
|
3883
|
-
attempts?: number;
|
|
3884
4019
|
connection_id: string;
|
|
3885
|
-
|
|
3886
|
-
gateway_attempt_id?: string | null;
|
|
3887
|
-
id?: string;
|
|
3888
|
-
last_error?: string | null;
|
|
4020
|
+
fetched_at?: string;
|
|
3889
4021
|
number_of_pieces?: number;
|
|
3890
|
-
|
|
4022
|
+
trade_item_id: string;
|
|
4023
|
+
};
|
|
4024
|
+
Update: {
|
|
4025
|
+
connection_id?: string;
|
|
4026
|
+
fetched_at?: string;
|
|
4027
|
+
number_of_pieces?: number;
|
|
4028
|
+
trade_item_id?: string;
|
|
4029
|
+
};
|
|
4030
|
+
Relationships: [];
|
|
4031
|
+
};
|
|
4032
|
+
floriday_continuous_stock_queue: {
|
|
4033
|
+
Row: {
|
|
4034
|
+
attempts: number;
|
|
4035
|
+
connection_id: string;
|
|
4036
|
+
created_at: string;
|
|
4037
|
+
gateway_attempt_id: string | null;
|
|
4038
|
+
id: string;
|
|
4039
|
+
last_error: string | null;
|
|
4040
|
+
number_of_pieces: number;
|
|
4041
|
+
sent_at: string | null;
|
|
4042
|
+
status: string;
|
|
4043
|
+
trade_item_id: string;
|
|
4044
|
+
updated_at: string;
|
|
4045
|
+
user_id: string;
|
|
4046
|
+
};
|
|
4047
|
+
Insert: {
|
|
4048
|
+
attempts?: number;
|
|
4049
|
+
connection_id: string;
|
|
4050
|
+
created_at?: string;
|
|
4051
|
+
gateway_attempt_id?: string | null;
|
|
4052
|
+
id?: string;
|
|
4053
|
+
last_error?: string | null;
|
|
4054
|
+
number_of_pieces?: number;
|
|
4055
|
+
sent_at?: string | null;
|
|
3891
4056
|
status?: string;
|
|
3892
4057
|
trade_item_id: string;
|
|
3893
4058
|
updated_at?: string;
|
|
@@ -4667,6 +4832,8 @@ export type Database = {
|
|
|
4667
4832
|
Row: {
|
|
4668
4833
|
buyer_organization_id: string | null;
|
|
4669
4834
|
connection_id: string;
|
|
4835
|
+
controlled_at: string | null;
|
|
4836
|
+
controlled_by: string | null;
|
|
4670
4837
|
created_at: string;
|
|
4671
4838
|
data: Json;
|
|
4672
4839
|
floriday_id: string;
|
|
@@ -4678,6 +4845,8 @@ export type Database = {
|
|
|
4678
4845
|
Insert: {
|
|
4679
4846
|
buyer_organization_id?: string | null;
|
|
4680
4847
|
connection_id: string;
|
|
4848
|
+
controlled_at?: string | null;
|
|
4849
|
+
controlled_by?: string | null;
|
|
4681
4850
|
created_at?: string;
|
|
4682
4851
|
data: Json;
|
|
4683
4852
|
floriday_id: string;
|
|
@@ -4689,6 +4858,8 @@ export type Database = {
|
|
|
4689
4858
|
Update: {
|
|
4690
4859
|
buyer_organization_id?: string | null;
|
|
4691
4860
|
connection_id?: string;
|
|
4861
|
+
controlled_at?: string | null;
|
|
4862
|
+
controlled_by?: string | null;
|
|
4692
4863
|
created_at?: string;
|
|
4693
4864
|
data?: Json;
|
|
4694
4865
|
floriday_id?: string;
|
|
@@ -4880,6 +5051,47 @@ export type Database = {
|
|
|
4880
5051
|
}
|
|
4881
5052
|
];
|
|
4882
5053
|
};
|
|
5054
|
+
floriday_trade_settings_customers_cache: {
|
|
5055
|
+
Row: {
|
|
5056
|
+
connection_id: string;
|
|
5057
|
+
data: Json;
|
|
5058
|
+
fetched_at: string;
|
|
5059
|
+
floriday_id: string;
|
|
5060
|
+
id: string;
|
|
5061
|
+
is_deleted: boolean;
|
|
5062
|
+
sequence_number: number;
|
|
5063
|
+
updated_at: string;
|
|
5064
|
+
};
|
|
5065
|
+
Insert: {
|
|
5066
|
+
connection_id: string;
|
|
5067
|
+
data: Json;
|
|
5068
|
+
fetched_at?: string;
|
|
5069
|
+
floriday_id: string;
|
|
5070
|
+
id?: string;
|
|
5071
|
+
is_deleted?: boolean;
|
|
5072
|
+
sequence_number?: number;
|
|
5073
|
+
updated_at?: string;
|
|
5074
|
+
};
|
|
5075
|
+
Update: {
|
|
5076
|
+
connection_id?: string;
|
|
5077
|
+
data?: Json;
|
|
5078
|
+
fetched_at?: string;
|
|
5079
|
+
floriday_id?: string;
|
|
5080
|
+
id?: string;
|
|
5081
|
+
is_deleted?: boolean;
|
|
5082
|
+
sequence_number?: number;
|
|
5083
|
+
updated_at?: string;
|
|
5084
|
+
};
|
|
5085
|
+
Relationships: [
|
|
5086
|
+
{
|
|
5087
|
+
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
5088
|
+
columns: ["connection_id"];
|
|
5089
|
+
isOneToOne: false;
|
|
5090
|
+
referencedRelation: "floriday_connections";
|
|
5091
|
+
referencedColumns: ["id"];
|
|
5092
|
+
}
|
|
5093
|
+
];
|
|
5094
|
+
};
|
|
4883
5095
|
floriday_trips_cache: {
|
|
4884
5096
|
Row: {
|
|
4885
5097
|
carrier_organization_id: string | null;
|
|
@@ -5660,6 +5872,228 @@ export type Database = {
|
|
|
5660
5872
|
};
|
|
5661
5873
|
Relationships: [];
|
|
5662
5874
|
};
|
|
5875
|
+
logistics_decisions: {
|
|
5876
|
+
Row: {
|
|
5877
|
+
created_at: string;
|
|
5878
|
+
explanation: string | null;
|
|
5879
|
+
id: string;
|
|
5880
|
+
input_snapshot: Json;
|
|
5881
|
+
result: Json;
|
|
5882
|
+
slot: string;
|
|
5883
|
+
strategy_id: string | null;
|
|
5884
|
+
subject_id: string;
|
|
5885
|
+
subject_type: string;
|
|
5886
|
+
user_id: string;
|
|
5887
|
+
};
|
|
5888
|
+
Insert: {
|
|
5889
|
+
created_at?: string;
|
|
5890
|
+
explanation?: string | null;
|
|
5891
|
+
id?: string;
|
|
5892
|
+
input_snapshot?: Json;
|
|
5893
|
+
result?: Json;
|
|
5894
|
+
slot: string;
|
|
5895
|
+
strategy_id?: string | null;
|
|
5896
|
+
subject_id: string;
|
|
5897
|
+
subject_type: string;
|
|
5898
|
+
user_id: string;
|
|
5899
|
+
};
|
|
5900
|
+
Update: {
|
|
5901
|
+
created_at?: string;
|
|
5902
|
+
explanation?: string | null;
|
|
5903
|
+
id?: string;
|
|
5904
|
+
input_snapshot?: Json;
|
|
5905
|
+
result?: Json;
|
|
5906
|
+
slot?: string;
|
|
5907
|
+
strategy_id?: string | null;
|
|
5908
|
+
subject_id?: string;
|
|
5909
|
+
subject_type?: string;
|
|
5910
|
+
user_id?: string;
|
|
5911
|
+
};
|
|
5912
|
+
Relationships: [
|
|
5913
|
+
{
|
|
5914
|
+
foreignKeyName: "logistics_decisions_strategy_id_fkey";
|
|
5915
|
+
columns: ["strategy_id"];
|
|
5916
|
+
isOneToOne: false;
|
|
5917
|
+
referencedRelation: "logistics_strategies";
|
|
5918
|
+
referencedColumns: ["id"];
|
|
5919
|
+
}
|
|
5920
|
+
];
|
|
5921
|
+
};
|
|
5922
|
+
logistics_formulas: {
|
|
5923
|
+
Row: {
|
|
5924
|
+
created_at: string;
|
|
5925
|
+
expression: string;
|
|
5926
|
+
id: string;
|
|
5927
|
+
notes: string | null;
|
|
5928
|
+
slot: string;
|
|
5929
|
+
strategy_id: string;
|
|
5930
|
+
updated_at: string;
|
|
5931
|
+
user_id: string;
|
|
5932
|
+
version: number;
|
|
5933
|
+
};
|
|
5934
|
+
Insert: {
|
|
5935
|
+
created_at?: string;
|
|
5936
|
+
expression?: string;
|
|
5937
|
+
id?: string;
|
|
5938
|
+
notes?: string | null;
|
|
5939
|
+
slot: string;
|
|
5940
|
+
strategy_id: string;
|
|
5941
|
+
updated_at?: string;
|
|
5942
|
+
user_id: string;
|
|
5943
|
+
version?: number;
|
|
5944
|
+
};
|
|
5945
|
+
Update: {
|
|
5946
|
+
created_at?: string;
|
|
5947
|
+
expression?: string;
|
|
5948
|
+
id?: string;
|
|
5949
|
+
notes?: string | null;
|
|
5950
|
+
slot?: string;
|
|
5951
|
+
strategy_id?: string;
|
|
5952
|
+
updated_at?: string;
|
|
5953
|
+
user_id?: string;
|
|
5954
|
+
version?: number;
|
|
5955
|
+
};
|
|
5956
|
+
Relationships: [
|
|
5957
|
+
{
|
|
5958
|
+
foreignKeyName: "logistics_formulas_strategy_id_fkey";
|
|
5959
|
+
columns: ["strategy_id"];
|
|
5960
|
+
isOneToOne: false;
|
|
5961
|
+
referencedRelation: "logistics_strategies";
|
|
5962
|
+
referencedColumns: ["id"];
|
|
5963
|
+
}
|
|
5964
|
+
];
|
|
5965
|
+
};
|
|
5966
|
+
logistics_strategies: {
|
|
5967
|
+
Row: {
|
|
5968
|
+
color: string;
|
|
5969
|
+
created_at: string;
|
|
5970
|
+
description: string | null;
|
|
5971
|
+
id: string;
|
|
5972
|
+
is_active: boolean;
|
|
5973
|
+
name: string;
|
|
5974
|
+
priority: number;
|
|
5975
|
+
updated_at: string;
|
|
5976
|
+
updated_by: string | null;
|
|
5977
|
+
user_id: string;
|
|
5978
|
+
version: number;
|
|
5979
|
+
};
|
|
5980
|
+
Insert: {
|
|
5981
|
+
color?: string;
|
|
5982
|
+
created_at?: string;
|
|
5983
|
+
description?: string | null;
|
|
5984
|
+
id?: string;
|
|
5985
|
+
is_active?: boolean;
|
|
5986
|
+
name: string;
|
|
5987
|
+
priority?: number;
|
|
5988
|
+
updated_at?: string;
|
|
5989
|
+
updated_by?: string | null;
|
|
5990
|
+
user_id: string;
|
|
5991
|
+
version?: number;
|
|
5992
|
+
};
|
|
5993
|
+
Update: {
|
|
5994
|
+
color?: string;
|
|
5995
|
+
created_at?: string;
|
|
5996
|
+
description?: string | null;
|
|
5997
|
+
id?: string;
|
|
5998
|
+
is_active?: boolean;
|
|
5999
|
+
name?: string;
|
|
6000
|
+
priority?: number;
|
|
6001
|
+
updated_at?: string;
|
|
6002
|
+
updated_by?: string | null;
|
|
6003
|
+
user_id?: string;
|
|
6004
|
+
version?: number;
|
|
6005
|
+
};
|
|
6006
|
+
Relationships: [];
|
|
6007
|
+
};
|
|
6008
|
+
logistics_strategy_schedules: {
|
|
6009
|
+
Row: {
|
|
6010
|
+
condition_expression: string | null;
|
|
6011
|
+
created_at: string;
|
|
6012
|
+
end_date: string | null;
|
|
6013
|
+
id: string;
|
|
6014
|
+
is_enabled: boolean;
|
|
6015
|
+
priority: number;
|
|
6016
|
+
rule_type: string;
|
|
6017
|
+
start_date: string | null;
|
|
6018
|
+
strategy_id: string;
|
|
6019
|
+
updated_at: string;
|
|
6020
|
+
user_id: string;
|
|
6021
|
+
};
|
|
6022
|
+
Insert: {
|
|
6023
|
+
condition_expression?: string | null;
|
|
6024
|
+
created_at?: string;
|
|
6025
|
+
end_date?: string | null;
|
|
6026
|
+
id?: string;
|
|
6027
|
+
is_enabled?: boolean;
|
|
6028
|
+
priority?: number;
|
|
6029
|
+
rule_type: string;
|
|
6030
|
+
start_date?: string | null;
|
|
6031
|
+
strategy_id: string;
|
|
6032
|
+
updated_at?: string;
|
|
6033
|
+
user_id: string;
|
|
6034
|
+
};
|
|
6035
|
+
Update: {
|
|
6036
|
+
condition_expression?: string | null;
|
|
6037
|
+
created_at?: string;
|
|
6038
|
+
end_date?: string | null;
|
|
6039
|
+
id?: string;
|
|
6040
|
+
is_enabled?: boolean;
|
|
6041
|
+
priority?: number;
|
|
6042
|
+
rule_type?: string;
|
|
6043
|
+
start_date?: string | null;
|
|
6044
|
+
strategy_id?: string;
|
|
6045
|
+
updated_at?: string;
|
|
6046
|
+
user_id?: string;
|
|
6047
|
+
};
|
|
6048
|
+
Relationships: [
|
|
6049
|
+
{
|
|
6050
|
+
foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
|
|
6051
|
+
columns: ["strategy_id"];
|
|
6052
|
+
isOneToOne: false;
|
|
6053
|
+
referencedRelation: "logistics_strategies";
|
|
6054
|
+
referencedColumns: ["id"];
|
|
6055
|
+
}
|
|
6056
|
+
];
|
|
6057
|
+
};
|
|
6058
|
+
logistics_variables: {
|
|
6059
|
+
Row: {
|
|
6060
|
+
created_at: string;
|
|
6061
|
+
default_value: string | null;
|
|
6062
|
+
description: string | null;
|
|
6063
|
+
id: string;
|
|
6064
|
+
is_builtin: boolean;
|
|
6065
|
+
key: string;
|
|
6066
|
+
label: string;
|
|
6067
|
+
updated_at: string;
|
|
6068
|
+
user_id: string;
|
|
6069
|
+
value_type: string;
|
|
6070
|
+
};
|
|
6071
|
+
Insert: {
|
|
6072
|
+
created_at?: string;
|
|
6073
|
+
default_value?: string | null;
|
|
6074
|
+
description?: string | null;
|
|
6075
|
+
id?: string;
|
|
6076
|
+
is_builtin?: boolean;
|
|
6077
|
+
key: string;
|
|
6078
|
+
label: string;
|
|
6079
|
+
updated_at?: string;
|
|
6080
|
+
user_id: string;
|
|
6081
|
+
value_type: string;
|
|
6082
|
+
};
|
|
6083
|
+
Update: {
|
|
6084
|
+
created_at?: string;
|
|
6085
|
+
default_value?: string | null;
|
|
6086
|
+
description?: string | null;
|
|
6087
|
+
id?: string;
|
|
6088
|
+
is_builtin?: boolean;
|
|
6089
|
+
key?: string;
|
|
6090
|
+
label?: string;
|
|
6091
|
+
updated_at?: string;
|
|
6092
|
+
user_id?: string;
|
|
6093
|
+
value_type?: string;
|
|
6094
|
+
};
|
|
6095
|
+
Relationships: [];
|
|
6096
|
+
};
|
|
5663
6097
|
mailbox_messages: {
|
|
5664
6098
|
Row: {
|
|
5665
6099
|
body_html: string | null;
|
|
@@ -6072,39 +6506,62 @@ export type Database = {
|
|
|
6072
6506
|
};
|
|
6073
6507
|
manufacture_products: {
|
|
6074
6508
|
Row: {
|
|
6509
|
+
aantal_te_produceren: number;
|
|
6075
6510
|
created_at: string;
|
|
6076
6511
|
description: string | null;
|
|
6077
6512
|
id: string;
|
|
6078
6513
|
is_active: boolean;
|
|
6514
|
+
location_id: string | null;
|
|
6079
6515
|
name: string;
|
|
6516
|
+
partij_nummer: string | null;
|
|
6517
|
+
photos: Json;
|
|
6080
6518
|
produced_stock: number;
|
|
6081
6519
|
product_code: string;
|
|
6082
6520
|
tenant_id: string;
|
|
6521
|
+
unit: string;
|
|
6083
6522
|
updated_at: string;
|
|
6084
6523
|
};
|
|
6085
6524
|
Insert: {
|
|
6525
|
+
aantal_te_produceren?: number;
|
|
6086
6526
|
created_at?: string;
|
|
6087
6527
|
description?: string | null;
|
|
6088
6528
|
id?: string;
|
|
6089
6529
|
is_active?: boolean;
|
|
6530
|
+
location_id?: string | null;
|
|
6090
6531
|
name: string;
|
|
6532
|
+
partij_nummer?: string | null;
|
|
6533
|
+
photos?: Json;
|
|
6091
6534
|
produced_stock?: number;
|
|
6092
6535
|
product_code: string;
|
|
6093
6536
|
tenant_id: string;
|
|
6537
|
+
unit?: string;
|
|
6094
6538
|
updated_at?: string;
|
|
6095
6539
|
};
|
|
6096
6540
|
Update: {
|
|
6541
|
+
aantal_te_produceren?: number;
|
|
6097
6542
|
created_at?: string;
|
|
6098
6543
|
description?: string | null;
|
|
6099
6544
|
id?: string;
|
|
6100
6545
|
is_active?: boolean;
|
|
6546
|
+
location_id?: string | null;
|
|
6101
6547
|
name?: string;
|
|
6548
|
+
partij_nummer?: string | null;
|
|
6549
|
+
photos?: Json;
|
|
6102
6550
|
produced_stock?: number;
|
|
6103
6551
|
product_code?: string;
|
|
6104
6552
|
tenant_id?: string;
|
|
6553
|
+
unit?: string;
|
|
6105
6554
|
updated_at?: string;
|
|
6106
6555
|
};
|
|
6107
|
-
Relationships: [
|
|
6556
|
+
Relationships: [
|
|
6557
|
+
{
|
|
6558
|
+
foreignKeyName: "manufacture_products_location_id_fkey";
|
|
6559
|
+
columns: ["location_id"];
|
|
6560
|
+
isOneToOne: false;
|
|
6561
|
+
referencedRelation: "locations";
|
|
6562
|
+
referencedColumns: ["id"];
|
|
6563
|
+
}
|
|
6564
|
+
];
|
|
6108
6565
|
};
|
|
6109
6566
|
monteurs: {
|
|
6110
6567
|
Row: {
|
|
@@ -7114,6 +7571,111 @@ export type Database = {
|
|
|
7114
7571
|
};
|
|
7115
7572
|
Relationships: [];
|
|
7116
7573
|
};
|
|
7574
|
+
order_shipment_items: {
|
|
7575
|
+
Row: {
|
|
7576
|
+
created_at: string;
|
|
7577
|
+
id: string;
|
|
7578
|
+
order_item_id: string;
|
|
7579
|
+
product_id: string | null;
|
|
7580
|
+
product_name: string;
|
|
7581
|
+
quantity: number;
|
|
7582
|
+
shipment_id: string;
|
|
7583
|
+
updated_at: string;
|
|
7584
|
+
};
|
|
7585
|
+
Insert: {
|
|
7586
|
+
created_at?: string;
|
|
7587
|
+
id?: string;
|
|
7588
|
+
order_item_id: string;
|
|
7589
|
+
product_id?: string | null;
|
|
7590
|
+
product_name: string;
|
|
7591
|
+
quantity: number;
|
|
7592
|
+
shipment_id: string;
|
|
7593
|
+
updated_at?: string;
|
|
7594
|
+
};
|
|
7595
|
+
Update: {
|
|
7596
|
+
created_at?: string;
|
|
7597
|
+
id?: string;
|
|
7598
|
+
order_item_id?: string;
|
|
7599
|
+
product_id?: string | null;
|
|
7600
|
+
product_name?: string;
|
|
7601
|
+
quantity?: number;
|
|
7602
|
+
shipment_id?: string;
|
|
7603
|
+
updated_at?: string;
|
|
7604
|
+
};
|
|
7605
|
+
Relationships: [
|
|
7606
|
+
{
|
|
7607
|
+
foreignKeyName: "order_shipment_items_order_item_id_fkey";
|
|
7608
|
+
columns: ["order_item_id"];
|
|
7609
|
+
isOneToOne: false;
|
|
7610
|
+
referencedRelation: "order_items";
|
|
7611
|
+
referencedColumns: ["id"];
|
|
7612
|
+
},
|
|
7613
|
+
{
|
|
7614
|
+
foreignKeyName: "order_shipment_items_shipment_id_fkey";
|
|
7615
|
+
columns: ["shipment_id"];
|
|
7616
|
+
isOneToOne: false;
|
|
7617
|
+
referencedRelation: "order_shipments";
|
|
7618
|
+
referencedColumns: ["id"];
|
|
7619
|
+
}
|
|
7620
|
+
];
|
|
7621
|
+
};
|
|
7622
|
+
order_shipments: {
|
|
7623
|
+
Row: {
|
|
7624
|
+
carrier_id: string | null;
|
|
7625
|
+
created_at: string;
|
|
7626
|
+
delivery_date: string | null;
|
|
7627
|
+
delivery_location_id: string | null;
|
|
7628
|
+
id: string;
|
|
7629
|
+
notes: string | null;
|
|
7630
|
+
order_id: string;
|
|
7631
|
+
shipment_number: number;
|
|
7632
|
+
shipped_at: string | null;
|
|
7633
|
+
status: string;
|
|
7634
|
+
updated_at: string;
|
|
7635
|
+
};
|
|
7636
|
+
Insert: {
|
|
7637
|
+
carrier_id?: string | null;
|
|
7638
|
+
created_at?: string;
|
|
7639
|
+
delivery_date?: string | null;
|
|
7640
|
+
delivery_location_id?: string | null;
|
|
7641
|
+
id?: string;
|
|
7642
|
+
notes?: string | null;
|
|
7643
|
+
order_id: string;
|
|
7644
|
+
shipment_number: number;
|
|
7645
|
+
shipped_at?: string | null;
|
|
7646
|
+
status?: string;
|
|
7647
|
+
updated_at?: string;
|
|
7648
|
+
};
|
|
7649
|
+
Update: {
|
|
7650
|
+
carrier_id?: string | null;
|
|
7651
|
+
created_at?: string;
|
|
7652
|
+
delivery_date?: string | null;
|
|
7653
|
+
delivery_location_id?: string | null;
|
|
7654
|
+
id?: string;
|
|
7655
|
+
notes?: string | null;
|
|
7656
|
+
order_id?: string;
|
|
7657
|
+
shipment_number?: number;
|
|
7658
|
+
shipped_at?: string | null;
|
|
7659
|
+
status?: string;
|
|
7660
|
+
updated_at?: string;
|
|
7661
|
+
};
|
|
7662
|
+
Relationships: [
|
|
7663
|
+
{
|
|
7664
|
+
foreignKeyName: "order_shipments_carrier_id_fkey";
|
|
7665
|
+
columns: ["carrier_id"];
|
|
7666
|
+
isOneToOne: false;
|
|
7667
|
+
referencedRelation: "carriers";
|
|
7668
|
+
referencedColumns: ["id"];
|
|
7669
|
+
},
|
|
7670
|
+
{
|
|
7671
|
+
foreignKeyName: "order_shipments_order_id_fkey";
|
|
7672
|
+
columns: ["order_id"];
|
|
7673
|
+
isOneToOne: false;
|
|
7674
|
+
referencedRelation: "orders";
|
|
7675
|
+
referencedColumns: ["id"];
|
|
7676
|
+
}
|
|
7677
|
+
];
|
|
7678
|
+
};
|
|
7117
7679
|
orders: {
|
|
7118
7680
|
Row: {
|
|
7119
7681
|
created_at: string;
|
|
@@ -7121,8 +7683,9 @@ export type Database = {
|
|
|
7121
7683
|
customer_id: string | null;
|
|
7122
7684
|
customer_name: string;
|
|
7123
7685
|
deleted_at: string | null;
|
|
7124
|
-
delivery_date: string;
|
|
7686
|
+
delivery_date: string | null;
|
|
7125
7687
|
id: string;
|
|
7688
|
+
is_reservation: boolean;
|
|
7126
7689
|
notes: string | null;
|
|
7127
7690
|
order_date: string;
|
|
7128
7691
|
order_number: string;
|
|
@@ -7139,8 +7702,9 @@ export type Database = {
|
|
|
7139
7702
|
customer_id?: string | null;
|
|
7140
7703
|
customer_name?: string;
|
|
7141
7704
|
deleted_at?: string | null;
|
|
7142
|
-
delivery_date
|
|
7705
|
+
delivery_date?: string | null;
|
|
7143
7706
|
id?: string;
|
|
7707
|
+
is_reservation?: boolean;
|
|
7144
7708
|
notes?: string | null;
|
|
7145
7709
|
order_date?: string;
|
|
7146
7710
|
order_number: string;
|
|
@@ -7157,8 +7721,9 @@ export type Database = {
|
|
|
7157
7721
|
customer_id?: string | null;
|
|
7158
7722
|
customer_name?: string;
|
|
7159
7723
|
deleted_at?: string | null;
|
|
7160
|
-
delivery_date?: string;
|
|
7724
|
+
delivery_date?: string | null;
|
|
7161
7725
|
id?: string;
|
|
7726
|
+
is_reservation?: boolean;
|
|
7162
7727
|
notes?: string | null;
|
|
7163
7728
|
order_date?: string;
|
|
7164
7729
|
order_number?: string;
|
|
@@ -7285,22 +7850,82 @@ export type Database = {
|
|
|
7285
7850
|
color?: string;
|
|
7286
7851
|
created_at?: string;
|
|
7287
7852
|
id?: string;
|
|
7288
|
-
is_active?: boolean;
|
|
7289
|
-
name: string;
|
|
7853
|
+
is_active?: boolean;
|
|
7854
|
+
name: string;
|
|
7855
|
+
sort_order?: number;
|
|
7856
|
+
updated_at?: string;
|
|
7857
|
+
};
|
|
7858
|
+
Update: {
|
|
7859
|
+
automation_type?: string;
|
|
7860
|
+
color?: string;
|
|
7861
|
+
created_at?: string;
|
|
7862
|
+
id?: string;
|
|
7863
|
+
is_active?: boolean;
|
|
7864
|
+
name?: string;
|
|
7865
|
+
sort_order?: number;
|
|
7866
|
+
updated_at?: string;
|
|
7867
|
+
};
|
|
7868
|
+
Relationships: [];
|
|
7869
|
+
};
|
|
7870
|
+
product_bom_items: {
|
|
7871
|
+
Row: {
|
|
7872
|
+
component_product_id: string | null;
|
|
7873
|
+
component_trade_item_floriday_id: string | null;
|
|
7874
|
+
created_at: string;
|
|
7875
|
+
id: string;
|
|
7876
|
+
notes: string | null;
|
|
7877
|
+
parent_product_id: string | null;
|
|
7878
|
+
parent_trade_item_floriday_id: string | null;
|
|
7879
|
+
quantity: number;
|
|
7880
|
+
sort_order: number;
|
|
7881
|
+
tenant_id: string;
|
|
7882
|
+
unit: string;
|
|
7883
|
+
updated_at: string;
|
|
7884
|
+
};
|
|
7885
|
+
Insert: {
|
|
7886
|
+
component_product_id?: string | null;
|
|
7887
|
+
component_trade_item_floriday_id?: string | null;
|
|
7888
|
+
created_at?: string;
|
|
7889
|
+
id?: string;
|
|
7890
|
+
notes?: string | null;
|
|
7891
|
+
parent_product_id?: string | null;
|
|
7892
|
+
parent_trade_item_floriday_id?: string | null;
|
|
7893
|
+
quantity?: number;
|
|
7290
7894
|
sort_order?: number;
|
|
7895
|
+
tenant_id: string;
|
|
7896
|
+
unit?: string;
|
|
7291
7897
|
updated_at?: string;
|
|
7292
7898
|
};
|
|
7293
7899
|
Update: {
|
|
7294
|
-
|
|
7295
|
-
|
|
7900
|
+
component_product_id?: string | null;
|
|
7901
|
+
component_trade_item_floriday_id?: string | null;
|
|
7296
7902
|
created_at?: string;
|
|
7297
7903
|
id?: string;
|
|
7298
|
-
|
|
7299
|
-
|
|
7904
|
+
notes?: string | null;
|
|
7905
|
+
parent_product_id?: string | null;
|
|
7906
|
+
parent_trade_item_floriday_id?: string | null;
|
|
7907
|
+
quantity?: number;
|
|
7300
7908
|
sort_order?: number;
|
|
7909
|
+
tenant_id?: string;
|
|
7910
|
+
unit?: string;
|
|
7301
7911
|
updated_at?: string;
|
|
7302
7912
|
};
|
|
7303
|
-
Relationships: [
|
|
7913
|
+
Relationships: [
|
|
7914
|
+
{
|
|
7915
|
+
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
7916
|
+
columns: ["component_product_id"];
|
|
7917
|
+
isOneToOne: false;
|
|
7918
|
+
referencedRelation: "products";
|
|
7919
|
+
referencedColumns: ["id"];
|
|
7920
|
+
},
|
|
7921
|
+
{
|
|
7922
|
+
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
7923
|
+
columns: ["parent_product_id"];
|
|
7924
|
+
isOneToOne: false;
|
|
7925
|
+
referencedRelation: "products";
|
|
7926
|
+
referencedColumns: ["id"];
|
|
7927
|
+
}
|
|
7928
|
+
];
|
|
7304
7929
|
};
|
|
7305
7930
|
product_categories: {
|
|
7306
7931
|
Row: {
|
|
@@ -7409,6 +8034,7 @@ export type Database = {
|
|
|
7409
8034
|
id: string;
|
|
7410
8035
|
product_group_id: string;
|
|
7411
8036
|
quantity: number;
|
|
8037
|
+
sort_order: number;
|
|
7412
8038
|
trade_item_id: string;
|
|
7413
8039
|
};
|
|
7414
8040
|
Insert: {
|
|
@@ -7416,6 +8042,7 @@ export type Database = {
|
|
|
7416
8042
|
id?: string;
|
|
7417
8043
|
product_group_id: string;
|
|
7418
8044
|
quantity?: number;
|
|
8045
|
+
sort_order?: number;
|
|
7419
8046
|
trade_item_id: string;
|
|
7420
8047
|
};
|
|
7421
8048
|
Update: {
|
|
@@ -7423,6 +8050,7 @@ export type Database = {
|
|
|
7423
8050
|
id?: string;
|
|
7424
8051
|
product_group_id?: string;
|
|
7425
8052
|
quantity?: number;
|
|
8053
|
+
sort_order?: number;
|
|
7426
8054
|
trade_item_id?: string;
|
|
7427
8055
|
};
|
|
7428
8056
|
Relationships: [
|
|
@@ -7439,6 +8067,8 @@ export type Database = {
|
|
|
7439
8067
|
Row: {
|
|
7440
8068
|
created_at: string;
|
|
7441
8069
|
description: string | null;
|
|
8070
|
+
head_product_id: string | null;
|
|
8071
|
+
head_trade_item_floriday_id: string | null;
|
|
7442
8072
|
id: string;
|
|
7443
8073
|
is_active: boolean;
|
|
7444
8074
|
name: string;
|
|
@@ -7448,6 +8078,8 @@ export type Database = {
|
|
|
7448
8078
|
Insert: {
|
|
7449
8079
|
created_at?: string;
|
|
7450
8080
|
description?: string | null;
|
|
8081
|
+
head_product_id?: string | null;
|
|
8082
|
+
head_trade_item_floriday_id?: string | null;
|
|
7451
8083
|
id?: string;
|
|
7452
8084
|
is_active?: boolean;
|
|
7453
8085
|
name: string;
|
|
@@ -7457,24 +8089,135 @@ export type Database = {
|
|
|
7457
8089
|
Update: {
|
|
7458
8090
|
created_at?: string;
|
|
7459
8091
|
description?: string | null;
|
|
8092
|
+
head_product_id?: string | null;
|
|
8093
|
+
head_trade_item_floriday_id?: string | null;
|
|
7460
8094
|
id?: string;
|
|
7461
8095
|
is_active?: boolean;
|
|
7462
8096
|
name?: string;
|
|
7463
8097
|
tenant_id?: string;
|
|
7464
8098
|
updated_at?: string;
|
|
7465
8099
|
};
|
|
8100
|
+
Relationships: [
|
|
8101
|
+
{
|
|
8102
|
+
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
8103
|
+
columns: ["head_product_id"];
|
|
8104
|
+
isOneToOne: false;
|
|
8105
|
+
referencedRelation: "products";
|
|
8106
|
+
referencedColumns: ["id"];
|
|
8107
|
+
}
|
|
8108
|
+
];
|
|
8109
|
+
};
|
|
8110
|
+
product_load_settings: {
|
|
8111
|
+
Row: {
|
|
8112
|
+
created_at: string;
|
|
8113
|
+
id: string;
|
|
8114
|
+
is_package: boolean;
|
|
8115
|
+
layers_per_load_carrier: number | null;
|
|
8116
|
+
load_carrier: string | null;
|
|
8117
|
+
package_id: string | null;
|
|
8118
|
+
package_label: string | null;
|
|
8119
|
+
packages_per_layer: number | null;
|
|
8120
|
+
product_id: string | null;
|
|
8121
|
+
tenant_id: string;
|
|
8122
|
+
trade_item_floriday_id: string | null;
|
|
8123
|
+
units_per_package: number | null;
|
|
8124
|
+
updated_at: string;
|
|
8125
|
+
};
|
|
8126
|
+
Insert: {
|
|
8127
|
+
created_at?: string;
|
|
8128
|
+
id?: string;
|
|
8129
|
+
is_package?: boolean;
|
|
8130
|
+
layers_per_load_carrier?: number | null;
|
|
8131
|
+
load_carrier?: string | null;
|
|
8132
|
+
package_id?: string | null;
|
|
8133
|
+
package_label?: string | null;
|
|
8134
|
+
packages_per_layer?: number | null;
|
|
8135
|
+
product_id?: string | null;
|
|
8136
|
+
tenant_id: string;
|
|
8137
|
+
trade_item_floriday_id?: string | null;
|
|
8138
|
+
units_per_package?: number | null;
|
|
8139
|
+
updated_at?: string;
|
|
8140
|
+
};
|
|
8141
|
+
Update: {
|
|
8142
|
+
created_at?: string;
|
|
8143
|
+
id?: string;
|
|
8144
|
+
is_package?: boolean;
|
|
8145
|
+
layers_per_load_carrier?: number | null;
|
|
8146
|
+
load_carrier?: string | null;
|
|
8147
|
+
package_id?: string | null;
|
|
8148
|
+
package_label?: string | null;
|
|
8149
|
+
packages_per_layer?: number | null;
|
|
8150
|
+
product_id?: string | null;
|
|
8151
|
+
tenant_id?: string;
|
|
8152
|
+
trade_item_floriday_id?: string | null;
|
|
8153
|
+
units_per_package?: number | null;
|
|
8154
|
+
updated_at?: string;
|
|
8155
|
+
};
|
|
8156
|
+
Relationships: [
|
|
8157
|
+
{
|
|
8158
|
+
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
8159
|
+
columns: ["package_id"];
|
|
8160
|
+
isOneToOne: false;
|
|
8161
|
+
referencedRelation: "packages";
|
|
8162
|
+
referencedColumns: ["id"];
|
|
8163
|
+
},
|
|
8164
|
+
{
|
|
8165
|
+
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
8166
|
+
columns: ["product_id"];
|
|
8167
|
+
isOneToOne: false;
|
|
8168
|
+
referencedRelation: "products";
|
|
8169
|
+
referencedColumns: ["id"];
|
|
8170
|
+
}
|
|
8171
|
+
];
|
|
8172
|
+
};
|
|
8173
|
+
product_merge_log: {
|
|
8174
|
+
Row: {
|
|
8175
|
+
canonical_product_id: string | null;
|
|
8176
|
+
id: string;
|
|
8177
|
+
merged_at: string;
|
|
8178
|
+
merged_from_id: string;
|
|
8179
|
+
notes: string | null;
|
|
8180
|
+
snapshot: Json;
|
|
8181
|
+
source_table: string;
|
|
8182
|
+
status: string;
|
|
8183
|
+
};
|
|
8184
|
+
Insert: {
|
|
8185
|
+
canonical_product_id?: string | null;
|
|
8186
|
+
id?: string;
|
|
8187
|
+
merged_at?: string;
|
|
8188
|
+
merged_from_id: string;
|
|
8189
|
+
notes?: string | null;
|
|
8190
|
+
snapshot?: Json;
|
|
8191
|
+
source_table: string;
|
|
8192
|
+
status?: string;
|
|
8193
|
+
};
|
|
8194
|
+
Update: {
|
|
8195
|
+
canonical_product_id?: string | null;
|
|
8196
|
+
id?: string;
|
|
8197
|
+
merged_at?: string;
|
|
8198
|
+
merged_from_id?: string;
|
|
8199
|
+
notes?: string | null;
|
|
8200
|
+
snapshot?: Json;
|
|
8201
|
+
source_table?: string;
|
|
8202
|
+
status?: string;
|
|
8203
|
+
};
|
|
7466
8204
|
Relationships: [];
|
|
7467
8205
|
};
|
|
7468
8206
|
products: {
|
|
7469
8207
|
Row: {
|
|
8208
|
+
article_number: string | null;
|
|
7470
8209
|
barcode: string | null;
|
|
7471
8210
|
batch: string;
|
|
7472
8211
|
crates_per_layer: number;
|
|
7473
8212
|
created_at: string;
|
|
7474
8213
|
custom_fields: Json;
|
|
8214
|
+
floriday_active: boolean;
|
|
8215
|
+
floriday_payload: Json;
|
|
8216
|
+
floriday_trade_item_id: string | null;
|
|
7475
8217
|
id: string;
|
|
7476
8218
|
image_url: string | null;
|
|
7477
8219
|
incoming_quantity: number;
|
|
8220
|
+
is_layer: boolean;
|
|
7478
8221
|
layers_per_cart: number;
|
|
7479
8222
|
location: string;
|
|
7480
8223
|
min_quantity: number;
|
|
@@ -7490,14 +8233,19 @@ export type Database = {
|
|
|
7490
8233
|
weight: string | null;
|
|
7491
8234
|
};
|
|
7492
8235
|
Insert: {
|
|
8236
|
+
article_number?: string | null;
|
|
7493
8237
|
barcode?: string | null;
|
|
7494
8238
|
batch: string;
|
|
7495
8239
|
crates_per_layer?: number;
|
|
7496
8240
|
created_at?: string;
|
|
7497
8241
|
custom_fields?: Json;
|
|
8242
|
+
floriday_active?: boolean;
|
|
8243
|
+
floriday_payload?: Json;
|
|
8244
|
+
floriday_trade_item_id?: string | null;
|
|
7498
8245
|
id?: string;
|
|
7499
8246
|
image_url?: string | null;
|
|
7500
8247
|
incoming_quantity?: number;
|
|
8248
|
+
is_layer?: boolean;
|
|
7501
8249
|
layers_per_cart?: number;
|
|
7502
8250
|
location: string;
|
|
7503
8251
|
min_quantity?: number;
|
|
@@ -7513,14 +8261,19 @@ export type Database = {
|
|
|
7513
8261
|
weight?: string | null;
|
|
7514
8262
|
};
|
|
7515
8263
|
Update: {
|
|
8264
|
+
article_number?: string | null;
|
|
7516
8265
|
barcode?: string | null;
|
|
7517
8266
|
batch?: string;
|
|
7518
8267
|
crates_per_layer?: number;
|
|
7519
8268
|
created_at?: string;
|
|
7520
8269
|
custom_fields?: Json;
|
|
8270
|
+
floriday_active?: boolean;
|
|
8271
|
+
floriday_payload?: Json;
|
|
8272
|
+
floriday_trade_item_id?: string | null;
|
|
7521
8273
|
id?: string;
|
|
7522
8274
|
image_url?: string | null;
|
|
7523
8275
|
incoming_quantity?: number;
|
|
8276
|
+
is_layer?: boolean;
|
|
7524
8277
|
layers_per_cart?: number;
|
|
7525
8278
|
location?: string;
|
|
7526
8279
|
min_quantity?: number;
|
|
@@ -8458,8 +9211,10 @@ export type Database = {
|
|
|
8458
9211
|
order_id: string | null;
|
|
8459
9212
|
order_item_id: string | null;
|
|
8460
9213
|
order_source: string | null;
|
|
9214
|
+
parent_trade_item_key: string | null;
|
|
8461
9215
|
physical_after: number | null;
|
|
8462
9216
|
physical_before: number | null;
|
|
9217
|
+
production_batch_id: string | null;
|
|
8463
9218
|
qty_delta: number;
|
|
8464
9219
|
reason: string | null;
|
|
8465
9220
|
reserved_after: number | null;
|
|
@@ -8475,8 +9230,10 @@ export type Database = {
|
|
|
8475
9230
|
order_id?: string | null;
|
|
8476
9231
|
order_item_id?: string | null;
|
|
8477
9232
|
order_source?: string | null;
|
|
9233
|
+
parent_trade_item_key?: string | null;
|
|
8478
9234
|
physical_after?: number | null;
|
|
8479
9235
|
physical_before?: number | null;
|
|
9236
|
+
production_batch_id?: string | null;
|
|
8480
9237
|
qty_delta: number;
|
|
8481
9238
|
reason?: string | null;
|
|
8482
9239
|
reserved_after?: number | null;
|
|
@@ -8492,8 +9249,10 @@ export type Database = {
|
|
|
8492
9249
|
order_id?: string | null;
|
|
8493
9250
|
order_item_id?: string | null;
|
|
8494
9251
|
order_source?: string | null;
|
|
9252
|
+
parent_trade_item_key?: string | null;
|
|
8495
9253
|
physical_after?: number | null;
|
|
8496
9254
|
physical_before?: number | null;
|
|
9255
|
+
production_batch_id?: string | null;
|
|
8497
9256
|
qty_delta?: number;
|
|
8498
9257
|
reason?: string | null;
|
|
8499
9258
|
reserved_after?: number | null;
|
|
@@ -8807,6 +9566,48 @@ export type Database = {
|
|
|
8807
9566
|
};
|
|
8808
9567
|
Relationships: [];
|
|
8809
9568
|
};
|
|
9569
|
+
trade_item_prices: {
|
|
9570
|
+
Row: {
|
|
9571
|
+
created_at: string;
|
|
9572
|
+
currency: string;
|
|
9573
|
+
id: string;
|
|
9574
|
+
last_push_error: string | null;
|
|
9575
|
+
last_pushed_at: string | null;
|
|
9576
|
+
price_group_id: string | null;
|
|
9577
|
+
price_per_piece: number;
|
|
9578
|
+
supply_line_id: string | null;
|
|
9579
|
+
trade_item_key: string;
|
|
9580
|
+
updated_at: string;
|
|
9581
|
+
user_id: string;
|
|
9582
|
+
};
|
|
9583
|
+
Insert: {
|
|
9584
|
+
created_at?: string;
|
|
9585
|
+
currency?: string;
|
|
9586
|
+
id?: string;
|
|
9587
|
+
last_push_error?: string | null;
|
|
9588
|
+
last_pushed_at?: string | null;
|
|
9589
|
+
price_group_id?: string | null;
|
|
9590
|
+
price_per_piece: number;
|
|
9591
|
+
supply_line_id?: string | null;
|
|
9592
|
+
trade_item_key: string;
|
|
9593
|
+
updated_at?: string;
|
|
9594
|
+
user_id: string;
|
|
9595
|
+
};
|
|
9596
|
+
Update: {
|
|
9597
|
+
created_at?: string;
|
|
9598
|
+
currency?: string;
|
|
9599
|
+
id?: string;
|
|
9600
|
+
last_push_error?: string | null;
|
|
9601
|
+
last_pushed_at?: string | null;
|
|
9602
|
+
price_group_id?: string | null;
|
|
9603
|
+
price_per_piece?: number;
|
|
9604
|
+
supply_line_id?: string | null;
|
|
9605
|
+
trade_item_key?: string;
|
|
9606
|
+
updated_at?: string;
|
|
9607
|
+
user_id?: string;
|
|
9608
|
+
};
|
|
9609
|
+
Relationships: [];
|
|
9610
|
+
};
|
|
8810
9611
|
trade_item_stock: {
|
|
8811
9612
|
Row: {
|
|
8812
9613
|
connection_id: string;
|
|
@@ -8962,7 +9763,7 @@ export type Database = {
|
|
|
8962
9763
|
twinfield_connections: {
|
|
8963
9764
|
Row: {
|
|
8964
9765
|
access_token: string | null;
|
|
8965
|
-
client_id: string;
|
|
9766
|
+
client_id: string | null;
|
|
8966
9767
|
client_secret: string | null;
|
|
8967
9768
|
cluster_uri: string | null;
|
|
8968
9769
|
company_code: string | null;
|
|
@@ -8974,7 +9775,7 @@ export type Database = {
|
|
|
8974
9775
|
is_active: boolean;
|
|
8975
9776
|
label: string | null;
|
|
8976
9777
|
office_code: string | null;
|
|
8977
|
-
redirect_uri: string;
|
|
9778
|
+
redirect_uri: string | null;
|
|
8978
9779
|
refresh_token: string | null;
|
|
8979
9780
|
token_expires_at: string | null;
|
|
8980
9781
|
updated_at: string;
|
|
@@ -8982,7 +9783,7 @@ export type Database = {
|
|
|
8982
9783
|
};
|
|
8983
9784
|
Insert: {
|
|
8984
9785
|
access_token?: string | null;
|
|
8985
|
-
client_id
|
|
9786
|
+
client_id?: string | null;
|
|
8986
9787
|
client_secret?: string | null;
|
|
8987
9788
|
cluster_uri?: string | null;
|
|
8988
9789
|
company_code?: string | null;
|
|
@@ -8994,7 +9795,7 @@ export type Database = {
|
|
|
8994
9795
|
is_active?: boolean;
|
|
8995
9796
|
label?: string | null;
|
|
8996
9797
|
office_code?: string | null;
|
|
8997
|
-
redirect_uri
|
|
9798
|
+
redirect_uri?: string | null;
|
|
8998
9799
|
refresh_token?: string | null;
|
|
8999
9800
|
token_expires_at?: string | null;
|
|
9000
9801
|
updated_at?: string;
|
|
@@ -9002,7 +9803,7 @@ export type Database = {
|
|
|
9002
9803
|
};
|
|
9003
9804
|
Update: {
|
|
9004
9805
|
access_token?: string | null;
|
|
9005
|
-
client_id?: string;
|
|
9806
|
+
client_id?: string | null;
|
|
9006
9807
|
client_secret?: string | null;
|
|
9007
9808
|
cluster_uri?: string | null;
|
|
9008
9809
|
company_code?: string | null;
|
|
@@ -9014,7 +9815,7 @@ export type Database = {
|
|
|
9014
9815
|
is_active?: boolean;
|
|
9015
9816
|
label?: string | null;
|
|
9016
9817
|
office_code?: string | null;
|
|
9017
|
-
redirect_uri?: string;
|
|
9818
|
+
redirect_uri?: string | null;
|
|
9018
9819
|
refresh_token?: string | null;
|
|
9019
9820
|
token_expires_at?: string | null;
|
|
9020
9821
|
updated_at?: string;
|
|
@@ -10231,25 +11032,6 @@ export type Database = {
|
|
|
10231
11032
|
};
|
|
10232
11033
|
Relationships: [];
|
|
10233
11034
|
};
|
|
10234
|
-
floriday_customer_discounts: {
|
|
10235
|
-
Row: {
|
|
10236
|
-
base_price: number | null;
|
|
10237
|
-
buyer_organization_id: string | null;
|
|
10238
|
-
currency: string | null;
|
|
10239
|
-
discount_type: string | null;
|
|
10240
|
-
discount_value: number | null;
|
|
10241
|
-
min_quantity: number | null;
|
|
10242
|
-
net_price: number | null;
|
|
10243
|
-
product_group_id: string | null;
|
|
10244
|
-
raw: Json | null;
|
|
10245
|
-
source: string | null;
|
|
10246
|
-
source_id: string | null;
|
|
10247
|
-
trade_item_id: string | null;
|
|
10248
|
-
valid_from: string | null;
|
|
10249
|
-
valid_until: string | null;
|
|
10250
|
-
};
|
|
10251
|
-
Relationships: [];
|
|
10252
|
-
};
|
|
10253
11035
|
local_customer_discounts: {
|
|
10254
11036
|
Row: {
|
|
10255
11037
|
base_price: number | null;
|
|
@@ -10565,6 +11347,13 @@ export type Database = {
|
|
|
10565
11347
|
};
|
|
10566
11348
|
Returns: number;
|
|
10567
11349
|
};
|
|
11350
|
+
_migrate_rewrite_stock_key: {
|
|
11351
|
+
Args: {
|
|
11352
|
+
_from_key: string;
|
|
11353
|
+
_to_key: string;
|
|
11354
|
+
};
|
|
11355
|
+
Returns: undefined;
|
|
11356
|
+
};
|
|
10568
11357
|
afh_city_code: {
|
|
10569
11358
|
Args: {
|
|
10570
11359
|
_city: string;
|
|
@@ -10680,6 +11469,28 @@ export type Database = {
|
|
|
10680
11469
|
Args: never;
|
|
10681
11470
|
Returns: undefined;
|
|
10682
11471
|
};
|
|
11472
|
+
consume_bom_for_production: {
|
|
11473
|
+
Args: {
|
|
11474
|
+
p_connection_id: string;
|
|
11475
|
+
p_parent_id: string;
|
|
11476
|
+
p_parent_key: string;
|
|
11477
|
+
p_parent_kind: string;
|
|
11478
|
+
p_quantity: number;
|
|
11479
|
+
p_user_id: string;
|
|
11480
|
+
};
|
|
11481
|
+
Returns: Json;
|
|
11482
|
+
} | {
|
|
11483
|
+
Args: {
|
|
11484
|
+
p_batch_id?: string;
|
|
11485
|
+
p_connection_id: string;
|
|
11486
|
+
p_parent_id: string;
|
|
11487
|
+
p_parent_key: string;
|
|
11488
|
+
p_parent_kind: string;
|
|
11489
|
+
p_quantity: number;
|
|
11490
|
+
p_user_id: string;
|
|
11491
|
+
};
|
|
11492
|
+
Returns: Json;
|
|
11493
|
+
};
|
|
10683
11494
|
consume_floriday_rate_limit: {
|
|
10684
11495
|
Args: {
|
|
10685
11496
|
p_bucket: string;
|
|
@@ -10731,6 +11542,13 @@ export type Database = {
|
|
|
10731
11542
|
table_name: string;
|
|
10732
11543
|
}[];
|
|
10733
11544
|
};
|
|
11545
|
+
delete_samenstelling: {
|
|
11546
|
+
Args: {
|
|
11547
|
+
p_parent_id: string;
|
|
11548
|
+
p_parent_kind: string;
|
|
11549
|
+
};
|
|
11550
|
+
Returns: Json;
|
|
11551
|
+
};
|
|
10734
11552
|
dispatch_carrier_signups_sql: {
|
|
10735
11553
|
Args: {
|
|
10736
11554
|
_catchup?: string;
|
|
@@ -10772,6 +11590,16 @@ export type Database = {
|
|
|
10772
11590
|
status: string;
|
|
10773
11591
|
}[];
|
|
10774
11592
|
};
|
|
11593
|
+
email_auth_upsert_connection: {
|
|
11594
|
+
Args: {
|
|
11595
|
+
_account_email: string;
|
|
11596
|
+
_created_by: string;
|
|
11597
|
+
_is_active: boolean;
|
|
11598
|
+
_provider: string;
|
|
11599
|
+
_status: string;
|
|
11600
|
+
};
|
|
11601
|
+
Returns: string;
|
|
11602
|
+
};
|
|
10775
11603
|
enqueue_cart_replan_if_unlocked: {
|
|
10776
11604
|
Args: {
|
|
10777
11605
|
p_order_id: string;
|
|
@@ -10891,19 +11719,6 @@ export type Database = {
|
|
|
10891
11719
|
resource: string;
|
|
10892
11720
|
}[];
|
|
10893
11721
|
};
|
|
10894
|
-
get_floriday_agreements_active: {
|
|
10895
|
-
Args: {
|
|
10896
|
-
p_on_date?: string;
|
|
10897
|
-
};
|
|
10898
|
-
Returns: {
|
|
10899
|
-
buyer_organization_id: string;
|
|
10900
|
-
data: Json;
|
|
10901
|
-
floriday_id: string;
|
|
10902
|
-
status: string;
|
|
10903
|
-
valid_from: string;
|
|
10904
|
-
valid_until: string;
|
|
10905
|
-
}[];
|
|
10906
|
-
};
|
|
10907
11722
|
get_floriday_clock_supplies_window: {
|
|
10908
11723
|
Args: {
|
|
10909
11724
|
p_from: string;
|
|
@@ -10976,6 +11791,21 @@ export type Database = {
|
|
|
10976
11791
|
minutes_since_success: number;
|
|
10977
11792
|
}[];
|
|
10978
11793
|
};
|
|
11794
|
+
get_group_allocation_keys: {
|
|
11795
|
+
Args: {
|
|
11796
|
+
p_product_id: string;
|
|
11797
|
+
};
|
|
11798
|
+
Returns: {
|
|
11799
|
+
k: string;
|
|
11800
|
+
ord: number;
|
|
11801
|
+
}[];
|
|
11802
|
+
};
|
|
11803
|
+
get_group_head_key: {
|
|
11804
|
+
Args: {
|
|
11805
|
+
p_group_id: string;
|
|
11806
|
+
};
|
|
11807
|
+
Returns: string;
|
|
11808
|
+
};
|
|
10979
11809
|
get_offer_by_link_code: {
|
|
10980
11810
|
Args: {
|
|
10981
11811
|
p_code: string;
|
|
@@ -11086,6 +11916,32 @@ export type Database = {
|
|
|
11086
11916
|
};
|
|
11087
11917
|
Returns: undefined;
|
|
11088
11918
|
};
|
|
11919
|
+
mark_salesorder_controlled: {
|
|
11920
|
+
Args: {
|
|
11921
|
+
p_controlled: boolean;
|
|
11922
|
+
p_floriday_id: string;
|
|
11923
|
+
};
|
|
11924
|
+
Returns: undefined;
|
|
11925
|
+
};
|
|
11926
|
+
mark_shipment_shipped: {
|
|
11927
|
+
Args: {
|
|
11928
|
+
p_shipment_id: string;
|
|
11929
|
+
};
|
|
11930
|
+
Returns: undefined;
|
|
11931
|
+
};
|
|
11932
|
+
merge_products: {
|
|
11933
|
+
Args: {
|
|
11934
|
+
_canonical: string;
|
|
11935
|
+
_loser: string;
|
|
11936
|
+
};
|
|
11937
|
+
Returns: undefined;
|
|
11938
|
+
};
|
|
11939
|
+
next_manufacture_partij: {
|
|
11940
|
+
Args: {
|
|
11941
|
+
_tenant_id: string;
|
|
11942
|
+
};
|
|
11943
|
+
Returns: string;
|
|
11944
|
+
};
|
|
11089
11945
|
next_order_number: {
|
|
11090
11946
|
Args: {
|
|
11091
11947
|
p_prefix: string;
|
|
@@ -11155,6 +12011,15 @@ export type Database = {
|
|
|
11155
12011
|
};
|
|
11156
12012
|
Returns: undefined;
|
|
11157
12013
|
};
|
|
12014
|
+
pickstation_resolve_delivery_orders: {
|
|
12015
|
+
Args: {
|
|
12016
|
+
p_sales_order_ids: string[];
|
|
12017
|
+
};
|
|
12018
|
+
Returns: {
|
|
12019
|
+
delivery_order_id: string;
|
|
12020
|
+
sales_order_id: string;
|
|
12021
|
+
}[];
|
|
12022
|
+
};
|
|
11158
12023
|
pickstation_set_cart_status: {
|
|
11159
12024
|
Args: {
|
|
11160
12025
|
p_cart_index: number;
|
|
@@ -11164,6 +12029,14 @@ export type Database = {
|
|
|
11164
12029
|
};
|
|
11165
12030
|
Returns: undefined;
|
|
11166
12031
|
};
|
|
12032
|
+
produce_designed_product: {
|
|
12033
|
+
Args: {
|
|
12034
|
+
p_parent_id: string;
|
|
12035
|
+
p_parent_kind: string;
|
|
12036
|
+
p_quantity: number;
|
|
12037
|
+
};
|
|
12038
|
+
Returns: Json;
|
|
12039
|
+
};
|
|
11167
12040
|
promote_trade_item_key: {
|
|
11168
12041
|
Args: {
|
|
11169
12042
|
p_new: string;
|
|
@@ -11171,6 +12044,10 @@ export type Database = {
|
|
|
11171
12044
|
};
|
|
11172
12045
|
Returns: undefined;
|
|
11173
12046
|
};
|
|
12047
|
+
recompute_all_reserved_stock: {
|
|
12048
|
+
Args: never;
|
|
12049
|
+
Returns: undefined;
|
|
12050
|
+
};
|
|
11174
12051
|
recompute_order_status: {
|
|
11175
12052
|
Args: {
|
|
11176
12053
|
p_order_id: string;
|
|
@@ -11220,27 +12097,45 @@ export type Database = {
|
|
|
11220
12097
|
};
|
|
11221
12098
|
Returns: undefined;
|
|
11222
12099
|
};
|
|
12100
|
+
resolve_group_allocation: {
|
|
12101
|
+
Args: {
|
|
12102
|
+
_needed: number;
|
|
12103
|
+
_product_group_id: string;
|
|
12104
|
+
};
|
|
12105
|
+
Returns: {
|
|
12106
|
+
allocated: number;
|
|
12107
|
+
trade_item_id: string;
|
|
12108
|
+
}[];
|
|
12109
|
+
};
|
|
12110
|
+
resolve_group_member_stock_key: {
|
|
12111
|
+
Args: {
|
|
12112
|
+
p_trade_item_id: string;
|
|
12113
|
+
};
|
|
12114
|
+
Returns: string;
|
|
12115
|
+
};
|
|
11223
12116
|
resolve_product_id_for_item: {
|
|
11224
12117
|
Args: {
|
|
11225
12118
|
p_product_name: string;
|
|
11226
12119
|
};
|
|
11227
12120
|
Returns: string;
|
|
11228
12121
|
};
|
|
11229
|
-
|
|
12122
|
+
resolve_stock_trade_item_key: {
|
|
11230
12123
|
Args: {
|
|
11231
|
-
|
|
11232
|
-
p_url: string;
|
|
12124
|
+
p_product_id: string;
|
|
11233
12125
|
};
|
|
11234
|
-
Returns:
|
|
12126
|
+
Returns: string;
|
|
11235
12127
|
};
|
|
11236
|
-
|
|
12128
|
+
reverse_production: {
|
|
11237
12129
|
Args: {
|
|
11238
|
-
|
|
11239
|
-
|
|
12130
|
+
p_connection_id?: string;
|
|
12131
|
+
p_parent_key: string;
|
|
12132
|
+
p_quantity: number;
|
|
12133
|
+
p_reason?: string;
|
|
12134
|
+
p_user_id?: string;
|
|
11240
12135
|
};
|
|
11241
|
-
Returns:
|
|
12136
|
+
Returns: Json;
|
|
11242
12137
|
};
|
|
11243
|
-
|
|
12138
|
+
schedule_floriday_additional_services_sync: {
|
|
11244
12139
|
Args: {
|
|
11245
12140
|
p_apikey: string;
|
|
11246
12141
|
p_url: string;
|
|
@@ -11493,6 +12388,10 @@ export type Database = {
|
|
|
11493
12388
|
};
|
|
11494
12389
|
Returns: number;
|
|
11495
12390
|
};
|
|
12391
|
+
self_heal_floriday_links: {
|
|
12392
|
+
Args: never;
|
|
12393
|
+
Returns: number;
|
|
12394
|
+
};
|
|
11496
12395
|
show_limit: {
|
|
11497
12396
|
Args: never;
|
|
11498
12397
|
Returns: number;
|
|
@@ -11515,6 +12414,12 @@ export type Database = {
|
|
|
11515
12414
|
};
|
|
11516
12415
|
Returns: undefined;
|
|
11517
12416
|
};
|
|
12417
|
+
sync_product_group_belading: {
|
|
12418
|
+
Args: {
|
|
12419
|
+
_group_id: string;
|
|
12420
|
+
};
|
|
12421
|
+
Returns: undefined;
|
|
12422
|
+
};
|
|
11518
12423
|
sync_product_packing_from_floriday_cache: {
|
|
11519
12424
|
Args: {
|
|
11520
12425
|
p_floriday_id: string;
|