@flowselections/mailbox-orders 1.0.37 → 1.0.40
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/integrations/supabase/types.d.ts +204 -10
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/mailbox-ingest.server.d.ts +3 -0
- package/dist-lib/lib/mailbox-ingest.server.d.ts.map +1 -1
- package/dist-lib/lib/mailbox-ingest.server.js +10 -2
- package/dist-lib/server-routes.d.ts.map +1 -1
- package/dist-lib/server-routes.js +11 -3
- package/package.json +9 -2
|
@@ -7,6 +7,57 @@ export type Database = {
|
|
|
7
7
|
};
|
|
8
8
|
public: {
|
|
9
9
|
Tables: {
|
|
10
|
+
afh_shell_settings: {
|
|
11
|
+
Row: {
|
|
12
|
+
changed_at: string | null;
|
|
13
|
+
changed_by: string | null;
|
|
14
|
+
created_at: string;
|
|
15
|
+
id: boolean;
|
|
16
|
+
signup_auto_send: boolean;
|
|
17
|
+
};
|
|
18
|
+
Insert: {
|
|
19
|
+
changed_at?: string | null;
|
|
20
|
+
changed_by?: string | null;
|
|
21
|
+
created_at?: string;
|
|
22
|
+
id?: boolean;
|
|
23
|
+
signup_auto_send?: boolean;
|
|
24
|
+
};
|
|
25
|
+
Update: {
|
|
26
|
+
changed_at?: string | null;
|
|
27
|
+
changed_by?: string | null;
|
|
28
|
+
created_at?: string;
|
|
29
|
+
id?: boolean;
|
|
30
|
+
signup_auto_send?: boolean;
|
|
31
|
+
};
|
|
32
|
+
Relationships: [];
|
|
33
|
+
};
|
|
34
|
+
afh_shell_settings_log: {
|
|
35
|
+
Row: {
|
|
36
|
+
changed_at: string;
|
|
37
|
+
changed_by: string | null;
|
|
38
|
+
id: string;
|
|
39
|
+
new_value: Json | null;
|
|
40
|
+
old_value: Json | null;
|
|
41
|
+
setting: string;
|
|
42
|
+
};
|
|
43
|
+
Insert: {
|
|
44
|
+
changed_at?: string;
|
|
45
|
+
changed_by?: string | null;
|
|
46
|
+
id?: string;
|
|
47
|
+
new_value?: Json | null;
|
|
48
|
+
old_value?: Json | null;
|
|
49
|
+
setting: string;
|
|
50
|
+
};
|
|
51
|
+
Update: {
|
|
52
|
+
changed_at?: string;
|
|
53
|
+
changed_by?: string | null;
|
|
54
|
+
id?: string;
|
|
55
|
+
new_value?: Json | null;
|
|
56
|
+
old_value?: Json | null;
|
|
57
|
+
setting?: string;
|
|
58
|
+
};
|
|
59
|
+
Relationships: [];
|
|
60
|
+
};
|
|
10
61
|
afhandeling_settings: {
|
|
11
62
|
Row: {
|
|
12
63
|
auto_print_delivery_note: boolean;
|
|
@@ -1313,13 +1364,17 @@ export type Database = {
|
|
|
1313
1364
|
carriers: {
|
|
1314
1365
|
Row: {
|
|
1315
1366
|
address: string | null;
|
|
1367
|
+
archived_at: string | null;
|
|
1368
|
+
carrier_kind: string | null;
|
|
1316
1369
|
contact_person: string | null;
|
|
1317
1370
|
created_at: string;
|
|
1318
1371
|
delivery_days: number | null;
|
|
1372
|
+
delivery_location_glns: string[];
|
|
1319
1373
|
delivery_weekdays: number[];
|
|
1320
1374
|
email: string | null;
|
|
1321
1375
|
id: string;
|
|
1322
1376
|
is_default: boolean;
|
|
1377
|
+
is_favorite: boolean;
|
|
1323
1378
|
name: string;
|
|
1324
1379
|
notes: string | null;
|
|
1325
1380
|
phone: string | null;
|
|
@@ -1333,17 +1388,21 @@ export type Database = {
|
|
|
1333
1388
|
signup_time_2: string | null;
|
|
1334
1389
|
sort_order: number;
|
|
1335
1390
|
updated_at: string;
|
|
1336
|
-
user_id: string;
|
|
1391
|
+
user_id: string | null;
|
|
1337
1392
|
};
|
|
1338
1393
|
Insert: {
|
|
1339
1394
|
address?: string | null;
|
|
1395
|
+
archived_at?: string | null;
|
|
1396
|
+
carrier_kind?: string | null;
|
|
1340
1397
|
contact_person?: string | null;
|
|
1341
1398
|
created_at?: string;
|
|
1342
1399
|
delivery_days?: number | null;
|
|
1400
|
+
delivery_location_glns?: string[];
|
|
1343
1401
|
delivery_weekdays?: number[];
|
|
1344
1402
|
email?: string | null;
|
|
1345
1403
|
id?: string;
|
|
1346
1404
|
is_default?: boolean;
|
|
1405
|
+
is_favorite?: boolean;
|
|
1347
1406
|
name: string;
|
|
1348
1407
|
notes?: string | null;
|
|
1349
1408
|
phone?: string | null;
|
|
@@ -1357,17 +1416,21 @@ export type Database = {
|
|
|
1357
1416
|
signup_time_2?: string | null;
|
|
1358
1417
|
sort_order?: number;
|
|
1359
1418
|
updated_at?: string;
|
|
1360
|
-
user_id
|
|
1419
|
+
user_id?: string | null;
|
|
1361
1420
|
};
|
|
1362
1421
|
Update: {
|
|
1363
1422
|
address?: string | null;
|
|
1423
|
+
archived_at?: string | null;
|
|
1424
|
+
carrier_kind?: string | null;
|
|
1364
1425
|
contact_person?: string | null;
|
|
1365
1426
|
created_at?: string;
|
|
1366
1427
|
delivery_days?: number | null;
|
|
1428
|
+
delivery_location_glns?: string[];
|
|
1367
1429
|
delivery_weekdays?: number[];
|
|
1368
1430
|
email?: string | null;
|
|
1369
1431
|
id?: string;
|
|
1370
1432
|
is_default?: boolean;
|
|
1433
|
+
is_favorite?: boolean;
|
|
1371
1434
|
name?: string;
|
|
1372
1435
|
notes?: string | null;
|
|
1373
1436
|
phone?: string | null;
|
|
@@ -1381,7 +1444,7 @@ export type Database = {
|
|
|
1381
1444
|
signup_time_2?: string | null;
|
|
1382
1445
|
sort_order?: number;
|
|
1383
1446
|
updated_at?: string;
|
|
1384
|
-
user_id?: string;
|
|
1447
|
+
user_id?: string | null;
|
|
1385
1448
|
};
|
|
1386
1449
|
Relationships: [];
|
|
1387
1450
|
};
|
|
@@ -2654,6 +2717,7 @@ export type Database = {
|
|
|
2654
2717
|
custom_fields: Json;
|
|
2655
2718
|
customer_class: string | null;
|
|
2656
2719
|
customer_number: string | null;
|
|
2720
|
+
default_carrier_id: string | null;
|
|
2657
2721
|
discount_days: number | null;
|
|
2658
2722
|
discount_percentage: number | null;
|
|
2659
2723
|
discount_surcharge: string;
|
|
@@ -2746,6 +2810,7 @@ export type Database = {
|
|
|
2746
2810
|
custom_fields?: Json;
|
|
2747
2811
|
customer_class?: string | null;
|
|
2748
2812
|
customer_number?: string | null;
|
|
2813
|
+
default_carrier_id?: string | null;
|
|
2749
2814
|
discount_days?: number | null;
|
|
2750
2815
|
discount_percentage?: number | null;
|
|
2751
2816
|
discount_surcharge?: string;
|
|
@@ -2838,6 +2903,7 @@ export type Database = {
|
|
|
2838
2903
|
custom_fields?: Json;
|
|
2839
2904
|
customer_class?: string | null;
|
|
2840
2905
|
customer_number?: string | null;
|
|
2906
|
+
default_carrier_id?: string | null;
|
|
2841
2907
|
discount_days?: number | null;
|
|
2842
2908
|
discount_percentage?: number | null;
|
|
2843
2909
|
discount_surcharge?: string;
|
|
@@ -2891,7 +2957,15 @@ export type Database = {
|
|
|
2891
2957
|
vat_number?: string | null;
|
|
2892
2958
|
website?: string | null;
|
|
2893
2959
|
};
|
|
2894
|
-
Relationships: [
|
|
2960
|
+
Relationships: [
|
|
2961
|
+
{
|
|
2962
|
+
foreignKeyName: "customers_default_carrier_id_fkey";
|
|
2963
|
+
columns: ["default_carrier_id"];
|
|
2964
|
+
isOneToOne: false;
|
|
2965
|
+
referencedRelation: "carriers";
|
|
2966
|
+
referencedColumns: ["id"];
|
|
2967
|
+
}
|
|
2968
|
+
];
|
|
2895
2969
|
};
|
|
2896
2970
|
dashboard_ai_conversations: {
|
|
2897
2971
|
Row: {
|
|
@@ -24812,16 +24886,56 @@ export type Database = {
|
|
|
24812
24886
|
}
|
|
24813
24887
|
];
|
|
24814
24888
|
};
|
|
24889
|
+
twinfield_connection_label_log: {
|
|
24890
|
+
Row: {
|
|
24891
|
+
changed_at: string;
|
|
24892
|
+
changed_by: string | null;
|
|
24893
|
+
changed_by_role: string | null;
|
|
24894
|
+
connection_id: string;
|
|
24895
|
+
field: string;
|
|
24896
|
+
id: string;
|
|
24897
|
+
new_value: string | null;
|
|
24898
|
+
note: string | null;
|
|
24899
|
+
office_code: string | null;
|
|
24900
|
+
old_value: string | null;
|
|
24901
|
+
};
|
|
24902
|
+
Insert: {
|
|
24903
|
+
changed_at?: string;
|
|
24904
|
+
changed_by?: string | null;
|
|
24905
|
+
changed_by_role?: string | null;
|
|
24906
|
+
connection_id: string;
|
|
24907
|
+
field: string;
|
|
24908
|
+
id?: string;
|
|
24909
|
+
new_value?: string | null;
|
|
24910
|
+
note?: string | null;
|
|
24911
|
+
office_code?: string | null;
|
|
24912
|
+
old_value?: string | null;
|
|
24913
|
+
};
|
|
24914
|
+
Update: {
|
|
24915
|
+
changed_at?: string;
|
|
24916
|
+
changed_by?: string | null;
|
|
24917
|
+
changed_by_role?: string | null;
|
|
24918
|
+
connection_id?: string;
|
|
24919
|
+
field?: string;
|
|
24920
|
+
id?: string;
|
|
24921
|
+
new_value?: string | null;
|
|
24922
|
+
note?: string | null;
|
|
24923
|
+
office_code?: string | null;
|
|
24924
|
+
old_value?: string | null;
|
|
24925
|
+
};
|
|
24926
|
+
Relationships: [];
|
|
24927
|
+
};
|
|
24815
24928
|
twinfield_connections: {
|
|
24816
24929
|
Row: {
|
|
24817
24930
|
account_key: string | null;
|
|
24931
|
+
central_environment: string | null;
|
|
24818
24932
|
cluster_uri: string | null;
|
|
24819
24933
|
company_code: string | null;
|
|
24820
24934
|
company_name: string | null;
|
|
24821
24935
|
connected_at: string | null;
|
|
24822
24936
|
created_at: string;
|
|
24823
24937
|
disconnected_at: string | null;
|
|
24824
|
-
environment: string;
|
|
24938
|
+
environment: string | null;
|
|
24825
24939
|
granted_scopes: string[] | null;
|
|
24826
24940
|
id: string;
|
|
24827
24941
|
initial_sync_completed_at: string | null;
|
|
@@ -24830,8 +24944,12 @@ export type Database = {
|
|
|
24830
24944
|
initial_sync_started_at: string | null;
|
|
24831
24945
|
is_active: boolean;
|
|
24832
24946
|
label: string | null;
|
|
24947
|
+
label_set_at: string | null;
|
|
24948
|
+
label_set_by: string | null;
|
|
24949
|
+
label_source: string | null;
|
|
24833
24950
|
missing_scopes: string[] | null;
|
|
24834
24951
|
office_code: string | null;
|
|
24952
|
+
organisation_code: string | null;
|
|
24835
24953
|
redirect_uri: string | null;
|
|
24836
24954
|
scope_checked_at: string | null;
|
|
24837
24955
|
scope_state: string | null;
|
|
@@ -24845,13 +24963,14 @@ export type Database = {
|
|
|
24845
24963
|
};
|
|
24846
24964
|
Insert: {
|
|
24847
24965
|
account_key?: string | null;
|
|
24966
|
+
central_environment?: string | null;
|
|
24848
24967
|
cluster_uri?: string | null;
|
|
24849
24968
|
company_code?: string | null;
|
|
24850
24969
|
company_name?: string | null;
|
|
24851
24970
|
connected_at?: string | null;
|
|
24852
24971
|
created_at?: string;
|
|
24853
24972
|
disconnected_at?: string | null;
|
|
24854
|
-
environment
|
|
24973
|
+
environment?: string | null;
|
|
24855
24974
|
granted_scopes?: string[] | null;
|
|
24856
24975
|
id?: string;
|
|
24857
24976
|
initial_sync_completed_at?: string | null;
|
|
@@ -24860,8 +24979,12 @@ export type Database = {
|
|
|
24860
24979
|
initial_sync_started_at?: string | null;
|
|
24861
24980
|
is_active?: boolean;
|
|
24862
24981
|
label?: string | null;
|
|
24982
|
+
label_set_at?: string | null;
|
|
24983
|
+
label_set_by?: string | null;
|
|
24984
|
+
label_source?: string | null;
|
|
24863
24985
|
missing_scopes?: string[] | null;
|
|
24864
24986
|
office_code?: string | null;
|
|
24987
|
+
organisation_code?: string | null;
|
|
24865
24988
|
redirect_uri?: string | null;
|
|
24866
24989
|
scope_checked_at?: string | null;
|
|
24867
24990
|
scope_state?: string | null;
|
|
@@ -24875,13 +24998,14 @@ export type Database = {
|
|
|
24875
24998
|
};
|
|
24876
24999
|
Update: {
|
|
24877
25000
|
account_key?: string | null;
|
|
25001
|
+
central_environment?: string | null;
|
|
24878
25002
|
cluster_uri?: string | null;
|
|
24879
25003
|
company_code?: string | null;
|
|
24880
25004
|
company_name?: string | null;
|
|
24881
25005
|
connected_at?: string | null;
|
|
24882
25006
|
created_at?: string;
|
|
24883
25007
|
disconnected_at?: string | null;
|
|
24884
|
-
environment?: string;
|
|
25008
|
+
environment?: string | null;
|
|
24885
25009
|
granted_scopes?: string[] | null;
|
|
24886
25010
|
id?: string;
|
|
24887
25011
|
initial_sync_completed_at?: string | null;
|
|
@@ -24890,8 +25014,12 @@ export type Database = {
|
|
|
24890
25014
|
initial_sync_started_at?: string | null;
|
|
24891
25015
|
is_active?: boolean;
|
|
24892
25016
|
label?: string | null;
|
|
25017
|
+
label_set_at?: string | null;
|
|
25018
|
+
label_set_by?: string | null;
|
|
25019
|
+
label_source?: string | null;
|
|
24893
25020
|
missing_scopes?: string[] | null;
|
|
24894
25021
|
office_code?: string | null;
|
|
25022
|
+
organisation_code?: string | null;
|
|
24895
25023
|
redirect_uri?: string | null;
|
|
24896
25024
|
scope_checked_at?: string | null;
|
|
24897
25025
|
scope_state?: string | null;
|
|
@@ -25831,7 +25959,7 @@ export type Database = {
|
|
|
25831
25959
|
};
|
|
25832
25960
|
twinfield_settings: {
|
|
25833
25961
|
Row: {
|
|
25834
|
-
active_environment: string;
|
|
25962
|
+
active_environment: string | null;
|
|
25835
25963
|
cron_registered_at: string | null;
|
|
25836
25964
|
cron_registration_error: string | null;
|
|
25837
25965
|
cron_schedules: Json;
|
|
@@ -25841,7 +25969,7 @@ export type Database = {
|
|
|
25841
25969
|
updated_at: string;
|
|
25842
25970
|
};
|
|
25843
25971
|
Insert: {
|
|
25844
|
-
active_environment?: string;
|
|
25972
|
+
active_environment?: string | null;
|
|
25845
25973
|
cron_registered_at?: string | null;
|
|
25846
25974
|
cron_registration_error?: string | null;
|
|
25847
25975
|
cron_schedules?: Json;
|
|
@@ -25851,7 +25979,7 @@ export type Database = {
|
|
|
25851
25979
|
updated_at?: string;
|
|
25852
25980
|
};
|
|
25853
25981
|
Update: {
|
|
25854
|
-
active_environment?: string;
|
|
25982
|
+
active_environment?: string | null;
|
|
25855
25983
|
cron_registered_at?: string | null;
|
|
25856
25984
|
cron_registration_error?: string | null;
|
|
25857
25985
|
cron_schedules?: Json;
|
|
@@ -29767,6 +29895,16 @@ export type Database = {
|
|
|
29767
29895
|
Args: never;
|
|
29768
29896
|
Returns: boolean;
|
|
29769
29897
|
};
|
|
29898
|
+
afh_can_manage_carriers: {
|
|
29899
|
+
Args: {
|
|
29900
|
+
p_user: string;
|
|
29901
|
+
};
|
|
29902
|
+
Returns: boolean;
|
|
29903
|
+
};
|
|
29904
|
+
afh_carrier_managers_count: {
|
|
29905
|
+
Args: never;
|
|
29906
|
+
Returns: number;
|
|
29907
|
+
};
|
|
29770
29908
|
afh_city_code: {
|
|
29771
29909
|
Args: {
|
|
29772
29910
|
_city: string;
|
|
@@ -29826,6 +29964,10 @@ export type Database = {
|
|
|
29826
29964
|
};
|
|
29827
29965
|
Returns: string;
|
|
29828
29966
|
};
|
|
29967
|
+
afh_signup_auto_send_on: {
|
|
29968
|
+
Args: never;
|
|
29969
|
+
Returns: boolean;
|
|
29970
|
+
};
|
|
29829
29971
|
afh_signup_config: {
|
|
29830
29972
|
Args: never;
|
|
29831
29973
|
Returns: Json;
|
|
@@ -38274,6 +38416,15 @@ export type Database = {
|
|
|
38274
38416
|
};
|
|
38275
38417
|
Returns: boolean;
|
|
38276
38418
|
};
|
|
38419
|
+
twinfield_auth_install_check: {
|
|
38420
|
+
Args: never;
|
|
38421
|
+
Returns: {
|
|
38422
|
+
object_kind: string;
|
|
38423
|
+
object_name: string;
|
|
38424
|
+
present: boolean;
|
|
38425
|
+
schema_version: string;
|
|
38426
|
+
}[];
|
|
38427
|
+
};
|
|
38277
38428
|
twinfield_cancel_queue_item: {
|
|
38278
38429
|
Args: {
|
|
38279
38430
|
p_id: string;
|
|
@@ -38283,9 +38434,30 @@ export type Database = {
|
|
|
38283
38434
|
twinfield_connection_offices: {
|
|
38284
38435
|
Args: never;
|
|
38285
38436
|
Returns: {
|
|
38437
|
+
company_name: string;
|
|
38438
|
+
connection_id: string;
|
|
38439
|
+
environment: string;
|
|
38440
|
+
in_shell_omgeving: boolean;
|
|
38441
|
+
is_active: boolean;
|
|
38442
|
+
label_source: string;
|
|
38443
|
+
office_code: string;
|
|
38444
|
+
}[];
|
|
38445
|
+
};
|
|
38446
|
+
twinfield_connection_usage: {
|
|
38447
|
+
Args: never;
|
|
38448
|
+
Returns: {
|
|
38449
|
+
archived: boolean;
|
|
38450
|
+
company_name: string;
|
|
38451
|
+
connected_at: string;
|
|
38286
38452
|
connection_id: string;
|
|
38453
|
+
environment: string;
|
|
38454
|
+
gebruikt_door_facturatie: boolean;
|
|
38455
|
+
in_shell_omgeving: boolean;
|
|
38287
38456
|
is_active: boolean;
|
|
38457
|
+
label_source: string;
|
|
38458
|
+
leest: boolean;
|
|
38288
38459
|
office_code: string;
|
|
38460
|
+
user_id: string;
|
|
38289
38461
|
}[];
|
|
38290
38462
|
};
|
|
38291
38463
|
twinfield_cron_lock_acquire: {
|
|
@@ -38333,10 +38505,24 @@ export type Database = {
|
|
|
38333
38505
|
Args: never;
|
|
38334
38506
|
Returns: boolean;
|
|
38335
38507
|
};
|
|
38508
|
+
twinfield_mark_label_pending: {
|
|
38509
|
+
Args: {
|
|
38510
|
+
p_connection_id: string;
|
|
38511
|
+
};
|
|
38512
|
+
Returns: boolean;
|
|
38513
|
+
};
|
|
38336
38514
|
twinfield_prune_push_queue: {
|
|
38337
38515
|
Args: never;
|
|
38338
38516
|
Returns: number;
|
|
38339
38517
|
};
|
|
38518
|
+
twinfield_record_central_facts: {
|
|
38519
|
+
Args: {
|
|
38520
|
+
p_central_environment: string;
|
|
38521
|
+
p_connection_id: string;
|
|
38522
|
+
p_organisation_code: string;
|
|
38523
|
+
};
|
|
38524
|
+
Returns: Json;
|
|
38525
|
+
};
|
|
38340
38526
|
twinfield_register_cron: {
|
|
38341
38527
|
Args: {
|
|
38342
38528
|
apikey?: string;
|
|
@@ -38344,6 +38530,14 @@ export type Database = {
|
|
|
38344
38530
|
};
|
|
38345
38531
|
Returns: Json;
|
|
38346
38532
|
};
|
|
38533
|
+
twinfield_set_connection_label: {
|
|
38534
|
+
Args: {
|
|
38535
|
+
p_also_shell?: boolean;
|
|
38536
|
+
p_connection_id: string;
|
|
38537
|
+
p_environment: string;
|
|
38538
|
+
};
|
|
38539
|
+
Returns: Json;
|
|
38540
|
+
};
|
|
38347
38541
|
twinfield_set_write_enabled: {
|
|
38348
38542
|
Args: {
|
|
38349
38543
|
p_connection_id: string;
|