@flowselections/floriday-voorraad 1.0.16 → 1.0.17
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/voorraad/AdditionalPackagingDialog.d.ts +9 -0
- package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts.map +1 -0
- package/dist-lib/components/voorraad/AdditionalPackagingDialog.js +51 -0
- package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
- package/dist-lib/components/voorraad/ArtikelWizard.js +372 -30
- package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
- package/dist-lib/components/voorraad/EditArtikelPage.js +78 -4
- package/dist-lib/components/voorraad/OrderHistoryCard.d.ts +8 -0
- package/dist-lib/components/voorraad/OrderHistoryCard.d.ts.map +1 -0
- package/dist-lib/components/voorraad/OrderHistoryCard.js +133 -0
- package/dist-lib/components/voorraad/PriceStatusBadge.d.ts +7 -0
- package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -0
- package/dist-lib/components/voorraad/PriceStatusBadge.js +67 -0
- package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +2 -1
- package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadStockCard.js +5 -4
- package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadTable.js +6 -1
- package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
- package/dist-lib/hooks/useLocalTradeItems.js +4 -0
- package/dist-lib/hooks/useTradeItemStock.d.ts +14 -1
- package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
- package/dist-lib/hooks/useTradeItemStock.js +76 -17
- package/dist-lib/hooks/useTradeItemSupplyLine.d.ts +21 -0
- package/dist-lib/hooks/useTradeItemSupplyLine.d.ts.map +1 -0
- package/dist-lib/hooks/useTradeItemSupplyLine.js +49 -0
- package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
- package/dist-lib/hooks/useVoorraadData.js +35 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +473 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +473 -3
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +473 -3
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +481 -3
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floricode-required-features.functions.d.ts +480 -4
- package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
- package/dist-lib/lib/floricode-required-features.functions.js +20 -2
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts +11264 -0
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-customer-offer.functions.js +175 -0
- package/dist-lib/lib/floriday-gateway.functions.d.ts +13155 -15
- package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.functions.js +150 -0
- package/dist-lib/lib/floriday-gateway.server.d.ts +22 -0
- package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.server.js +3 -0
- package/dist-lib/lib/floriday-payload.d.ts +60 -6
- package/dist-lib/lib/floriday-payload.d.ts.map +1 -1
- package/dist-lib/lib/floriday-payload.js +104 -7
- package/dist-lib/lib/floriday-supply-line.d.ts +53 -0
- package/dist-lib/lib/floriday-supply-line.d.ts.map +1 -0
- package/dist-lib/lib/floriday-supply-line.js +109 -0
- package/dist-lib/lib/floriday-warehouse.functions.d.ts +1420 -10
- package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +947 -7
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.js +6 -1
- package/dist-lib/lib/vrs-catalog.d.ts +27 -0
- package/dist-lib/lib/vrs-catalog.d.ts.map +1 -0
- package/dist-lib/lib/vrs-catalog.js +98 -0
- package/package.json +3 -2
- package/public/flowselections-assets/Voorraad/floriday-logo.png +0 -0
|
@@ -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;
|
|
@@ -840,6 +849,38 @@ export type Database = {
|
|
|
840
849
|
};
|
|
841
850
|
Relationships: [];
|
|
842
851
|
};
|
|
852
|
+
cart_replan_queue: {
|
|
853
|
+
Row: {
|
|
854
|
+
attempts: number;
|
|
855
|
+
last_error: string | null;
|
|
856
|
+
order_id: string;
|
|
857
|
+
processed_at: string | null;
|
|
858
|
+
requested_at: string;
|
|
859
|
+
};
|
|
860
|
+
Insert: {
|
|
861
|
+
attempts?: number;
|
|
862
|
+
last_error?: string | null;
|
|
863
|
+
order_id: string;
|
|
864
|
+
processed_at?: string | null;
|
|
865
|
+
requested_at?: string;
|
|
866
|
+
};
|
|
867
|
+
Update: {
|
|
868
|
+
attempts?: number;
|
|
869
|
+
last_error?: string | null;
|
|
870
|
+
order_id?: string;
|
|
871
|
+
processed_at?: string | null;
|
|
872
|
+
requested_at?: string;
|
|
873
|
+
};
|
|
874
|
+
Relationships: [
|
|
875
|
+
{
|
|
876
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
877
|
+
columns: ["order_id"];
|
|
878
|
+
isOneToOne: true;
|
|
879
|
+
referencedRelation: "orders";
|
|
880
|
+
referencedColumns: ["id"];
|
|
881
|
+
}
|
|
882
|
+
];
|
|
883
|
+
};
|
|
843
884
|
collections: {
|
|
844
885
|
Row: {
|
|
845
886
|
created_at: string;
|
|
@@ -3021,34 +3062,52 @@ export type Database = {
|
|
|
3021
3062
|
Row: {
|
|
3022
3063
|
catalog_key: string | null;
|
|
3023
3064
|
catalog_url: string;
|
|
3065
|
+
client_id: string | null;
|
|
3066
|
+
client_secret_ciphertext: string | null;
|
|
3067
|
+
client_secret_last4: string | null;
|
|
3024
3068
|
created_at: string;
|
|
3025
3069
|
id: number;
|
|
3026
3070
|
last_meta: Json | null;
|
|
3027
3071
|
last_test_at: string | null;
|
|
3028
3072
|
last_test_error: string | null;
|
|
3029
3073
|
last_test_ok: boolean | null;
|
|
3074
|
+
last_token_test_at: string | null;
|
|
3075
|
+
last_token_test_error: string | null;
|
|
3076
|
+
last_token_test_ok: boolean | null;
|
|
3030
3077
|
updated_at: string;
|
|
3031
3078
|
};
|
|
3032
3079
|
Insert: {
|
|
3033
3080
|
catalog_key?: string | null;
|
|
3034
3081
|
catalog_url?: string;
|
|
3082
|
+
client_id?: string | null;
|
|
3083
|
+
client_secret_ciphertext?: string | null;
|
|
3084
|
+
client_secret_last4?: string | null;
|
|
3035
3085
|
created_at?: string;
|
|
3036
3086
|
id?: number;
|
|
3037
3087
|
last_meta?: Json | null;
|
|
3038
3088
|
last_test_at?: string | null;
|
|
3039
3089
|
last_test_error?: string | null;
|
|
3040
3090
|
last_test_ok?: boolean | null;
|
|
3091
|
+
last_token_test_at?: string | null;
|
|
3092
|
+
last_token_test_error?: string | null;
|
|
3093
|
+
last_token_test_ok?: boolean | null;
|
|
3041
3094
|
updated_at?: string;
|
|
3042
3095
|
};
|
|
3043
3096
|
Update: {
|
|
3044
3097
|
catalog_key?: string | null;
|
|
3045
3098
|
catalog_url?: string;
|
|
3099
|
+
client_id?: string | null;
|
|
3100
|
+
client_secret_ciphertext?: string | null;
|
|
3101
|
+
client_secret_last4?: string | null;
|
|
3046
3102
|
created_at?: string;
|
|
3047
3103
|
id?: number;
|
|
3048
3104
|
last_meta?: Json | null;
|
|
3049
3105
|
last_test_at?: string | null;
|
|
3050
3106
|
last_test_error?: string | null;
|
|
3051
3107
|
last_test_ok?: boolean | null;
|
|
3108
|
+
last_token_test_at?: string | null;
|
|
3109
|
+
last_token_test_error?: string | null;
|
|
3110
|
+
last_token_test_ok?: boolean | null;
|
|
3052
3111
|
updated_at?: string;
|
|
3053
3112
|
};
|
|
3054
3113
|
Relationships: [];
|
|
@@ -3289,6 +3348,56 @@ export type Database = {
|
|
|
3289
3348
|
}
|
|
3290
3349
|
];
|
|
3291
3350
|
};
|
|
3351
|
+
floriday_auto_fulfillment_log: {
|
|
3352
|
+
Row: {
|
|
3353
|
+
attempts: number;
|
|
3354
|
+
connection_id: string;
|
|
3355
|
+
created_at: string;
|
|
3356
|
+
error: string | null;
|
|
3357
|
+
fulfillment_order_id: string | null;
|
|
3358
|
+
id: string;
|
|
3359
|
+
last_attempt_at: string | null;
|
|
3360
|
+
reason: string | null;
|
|
3361
|
+
sales_order_id: string;
|
|
3362
|
+
status: string;
|
|
3363
|
+
updated_at: string;
|
|
3364
|
+
};
|
|
3365
|
+
Insert: {
|
|
3366
|
+
attempts?: number;
|
|
3367
|
+
connection_id: string;
|
|
3368
|
+
created_at?: string;
|
|
3369
|
+
error?: string | null;
|
|
3370
|
+
fulfillment_order_id?: string | null;
|
|
3371
|
+
id?: string;
|
|
3372
|
+
last_attempt_at?: string | null;
|
|
3373
|
+
reason?: string | null;
|
|
3374
|
+
sales_order_id: string;
|
|
3375
|
+
status?: string;
|
|
3376
|
+
updated_at?: string;
|
|
3377
|
+
};
|
|
3378
|
+
Update: {
|
|
3379
|
+
attempts?: number;
|
|
3380
|
+
connection_id?: string;
|
|
3381
|
+
created_at?: string;
|
|
3382
|
+
error?: string | null;
|
|
3383
|
+
fulfillment_order_id?: string | null;
|
|
3384
|
+
id?: string;
|
|
3385
|
+
last_attempt_at?: string | null;
|
|
3386
|
+
reason?: string | null;
|
|
3387
|
+
sales_order_id?: string;
|
|
3388
|
+
status?: string;
|
|
3389
|
+
updated_at?: string;
|
|
3390
|
+
};
|
|
3391
|
+
Relationships: [
|
|
3392
|
+
{
|
|
3393
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3394
|
+
columns: ["connection_id"];
|
|
3395
|
+
isOneToOne: false;
|
|
3396
|
+
referencedRelation: "floriday_connections";
|
|
3397
|
+
referencedColumns: ["id"];
|
|
3398
|
+
}
|
|
3399
|
+
];
|
|
3400
|
+
};
|
|
3292
3401
|
floriday_base_items_cache: {
|
|
3293
3402
|
Row: {
|
|
3294
3403
|
connection_id: string;
|
|
@@ -4435,6 +4544,24 @@ export type Database = {
|
|
|
4435
4544
|
}
|
|
4436
4545
|
];
|
|
4437
4546
|
};
|
|
4547
|
+
floriday_rate_limit_state: {
|
|
4548
|
+
Row: {
|
|
4549
|
+
bucket: string;
|
|
4550
|
+
last_refill_at: string;
|
|
4551
|
+
tokens: number;
|
|
4552
|
+
};
|
|
4553
|
+
Insert: {
|
|
4554
|
+
bucket: string;
|
|
4555
|
+
last_refill_at?: string;
|
|
4556
|
+
tokens: number;
|
|
4557
|
+
};
|
|
4558
|
+
Update: {
|
|
4559
|
+
bucket?: string;
|
|
4560
|
+
last_refill_at?: string;
|
|
4561
|
+
tokens?: number;
|
|
4562
|
+
};
|
|
4563
|
+
Relationships: [];
|
|
4564
|
+
};
|
|
4438
4565
|
floriday_resource_schemas: {
|
|
4439
4566
|
Row: {
|
|
4440
4567
|
enums: Json;
|
|
@@ -4876,6 +5003,62 @@ export type Database = {
|
|
|
4876
5003
|
}
|
|
4877
5004
|
];
|
|
4878
5005
|
};
|
|
5006
|
+
flow_role_assignments: {
|
|
5007
|
+
Row: {
|
|
5008
|
+
created_at: string;
|
|
5009
|
+
id: string;
|
|
5010
|
+
role_id: string;
|
|
5011
|
+
user_id: string;
|
|
5012
|
+
};
|
|
5013
|
+
Insert: {
|
|
5014
|
+
created_at?: string;
|
|
5015
|
+
id?: string;
|
|
5016
|
+
role_id: string;
|
|
5017
|
+
user_id: string;
|
|
5018
|
+
};
|
|
5019
|
+
Update: {
|
|
5020
|
+
created_at?: string;
|
|
5021
|
+
id?: string;
|
|
5022
|
+
role_id?: string;
|
|
5023
|
+
user_id?: string;
|
|
5024
|
+
};
|
|
5025
|
+
Relationships: [
|
|
5026
|
+
{
|
|
5027
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
5028
|
+
columns: ["role_id"];
|
|
5029
|
+
isOneToOne: false;
|
|
5030
|
+
referencedRelation: "flow_roles";
|
|
5031
|
+
referencedColumns: ["id"];
|
|
5032
|
+
}
|
|
5033
|
+
];
|
|
5034
|
+
};
|
|
5035
|
+
flow_roles: {
|
|
5036
|
+
Row: {
|
|
5037
|
+
created_at: string;
|
|
5038
|
+
description: string | null;
|
|
5039
|
+
id: string;
|
|
5040
|
+
module_access: string[];
|
|
5041
|
+
name: string;
|
|
5042
|
+
updated_at: string;
|
|
5043
|
+
};
|
|
5044
|
+
Insert: {
|
|
5045
|
+
created_at?: string;
|
|
5046
|
+
description?: string | null;
|
|
5047
|
+
id?: string;
|
|
5048
|
+
module_access?: string[];
|
|
5049
|
+
name: string;
|
|
5050
|
+
updated_at?: string;
|
|
5051
|
+
};
|
|
5052
|
+
Update: {
|
|
5053
|
+
created_at?: string;
|
|
5054
|
+
description?: string | null;
|
|
5055
|
+
id?: string;
|
|
5056
|
+
module_access?: string[];
|
|
5057
|
+
name?: string;
|
|
5058
|
+
updated_at?: string;
|
|
5059
|
+
};
|
|
5060
|
+
Relationships: [];
|
|
5061
|
+
};
|
|
4879
5062
|
imap_accounts: {
|
|
4880
5063
|
Row: {
|
|
4881
5064
|
created_at: string;
|
|
@@ -5533,6 +5716,7 @@ export type Database = {
|
|
|
5533
5716
|
matched_customer_id: string | null;
|
|
5534
5717
|
message_id: string;
|
|
5535
5718
|
notes: string | null;
|
|
5719
|
+
order_number: string | null;
|
|
5536
5720
|
parsed_payload: Json | null;
|
|
5537
5721
|
reviewed_at: string | null;
|
|
5538
5722
|
reviewed_by: string | null;
|
|
@@ -5548,6 +5732,7 @@ export type Database = {
|
|
|
5548
5732
|
matched_customer_id?: string | null;
|
|
5549
5733
|
message_id: string;
|
|
5550
5734
|
notes?: string | null;
|
|
5735
|
+
order_number?: string | null;
|
|
5551
5736
|
parsed_payload?: Json | null;
|
|
5552
5737
|
reviewed_at?: string | null;
|
|
5553
5738
|
reviewed_by?: string | null;
|
|
@@ -5563,6 +5748,7 @@ export type Database = {
|
|
|
5563
5748
|
matched_customer_id?: string | null;
|
|
5564
5749
|
message_id?: string;
|
|
5565
5750
|
notes?: string | null;
|
|
5751
|
+
order_number?: string | null;
|
|
5566
5752
|
parsed_payload?: Json | null;
|
|
5567
5753
|
reviewed_at?: string | null;
|
|
5568
5754
|
reviewed_by?: string | null;
|
|
@@ -6449,6 +6635,7 @@ export type Database = {
|
|
|
6449
6635
|
id: string;
|
|
6450
6636
|
items: Json;
|
|
6451
6637
|
notes: string | null;
|
|
6638
|
+
order_number: string | null;
|
|
6452
6639
|
recipient_id: string;
|
|
6453
6640
|
total_amount: number;
|
|
6454
6641
|
};
|
|
@@ -6462,6 +6649,7 @@ export type Database = {
|
|
|
6462
6649
|
id?: string;
|
|
6463
6650
|
items?: Json;
|
|
6464
6651
|
notes?: string | null;
|
|
6652
|
+
order_number?: string | null;
|
|
6465
6653
|
recipient_id: string;
|
|
6466
6654
|
total_amount?: number;
|
|
6467
6655
|
};
|
|
@@ -6475,6 +6663,7 @@ export type Database = {
|
|
|
6475
6663
|
id?: string;
|
|
6476
6664
|
items?: Json;
|
|
6477
6665
|
notes?: string | null;
|
|
6666
|
+
order_number?: string | null;
|
|
6478
6667
|
recipient_id?: string;
|
|
6479
6668
|
total_amount?: number;
|
|
6480
6669
|
};
|
|
@@ -6642,6 +6831,9 @@ export type Database = {
|
|
|
6642
6831
|
crates_per_layer: number;
|
|
6643
6832
|
created_at: string;
|
|
6644
6833
|
id: string;
|
|
6834
|
+
layer_fraction: number;
|
|
6835
|
+
layer_share_pct: number;
|
|
6836
|
+
layers_per_cart: number;
|
|
6645
6837
|
order_item_id: string | null;
|
|
6646
6838
|
plants_per_crate: number;
|
|
6647
6839
|
product_id: string | null;
|
|
@@ -6653,6 +6845,9 @@ export type Database = {
|
|
|
6653
6845
|
crates_per_layer?: number;
|
|
6654
6846
|
created_at?: string;
|
|
6655
6847
|
id?: string;
|
|
6848
|
+
layer_fraction?: number;
|
|
6849
|
+
layer_share_pct?: number;
|
|
6850
|
+
layers_per_cart?: number;
|
|
6656
6851
|
order_item_id?: string | null;
|
|
6657
6852
|
plants_per_crate?: number;
|
|
6658
6853
|
product_id?: string | null;
|
|
@@ -6664,6 +6859,9 @@ export type Database = {
|
|
|
6664
6859
|
crates_per_layer?: number;
|
|
6665
6860
|
created_at?: string;
|
|
6666
6861
|
id?: string;
|
|
6862
|
+
layer_fraction?: number;
|
|
6863
|
+
layer_share_pct?: number;
|
|
6864
|
+
layers_per_cart?: number;
|
|
6667
6865
|
order_item_id?: string | null;
|
|
6668
6866
|
plants_per_crate?: number;
|
|
6669
6867
|
product_id?: string | null;
|
|
@@ -6695,33 +6893,45 @@ export type Database = {
|
|
|
6695
6893
|
};
|
|
6696
6894
|
order_carts: {
|
|
6697
6895
|
Row: {
|
|
6896
|
+
algorithm_version: number;
|
|
6698
6897
|
cart_number: number;
|
|
6699
6898
|
created_at: string;
|
|
6700
6899
|
id: string;
|
|
6701
6900
|
is_auto: boolean;
|
|
6702
6901
|
is_complete: boolean;
|
|
6703
6902
|
notes: string | null;
|
|
6903
|
+
occupancy_pct: number;
|
|
6704
6904
|
order_id: string;
|
|
6905
|
+
source: string;
|
|
6906
|
+
total_layers_used: number;
|
|
6705
6907
|
updated_at: string;
|
|
6706
6908
|
};
|
|
6707
6909
|
Insert: {
|
|
6910
|
+
algorithm_version?: number;
|
|
6708
6911
|
cart_number: number;
|
|
6709
6912
|
created_at?: string;
|
|
6710
6913
|
id?: string;
|
|
6711
6914
|
is_auto?: boolean;
|
|
6712
6915
|
is_complete?: boolean;
|
|
6713
6916
|
notes?: string | null;
|
|
6917
|
+
occupancy_pct?: number;
|
|
6714
6918
|
order_id: string;
|
|
6919
|
+
source?: string;
|
|
6920
|
+
total_layers_used?: number;
|
|
6715
6921
|
updated_at?: string;
|
|
6716
6922
|
};
|
|
6717
6923
|
Update: {
|
|
6924
|
+
algorithm_version?: number;
|
|
6718
6925
|
cart_number?: number;
|
|
6719
6926
|
created_at?: string;
|
|
6720
6927
|
id?: string;
|
|
6721
6928
|
is_auto?: boolean;
|
|
6722
6929
|
is_complete?: boolean;
|
|
6723
6930
|
notes?: string | null;
|
|
6931
|
+
occupancy_pct?: number;
|
|
6724
6932
|
order_id?: string;
|
|
6933
|
+
source?: string;
|
|
6934
|
+
total_layers_used?: number;
|
|
6725
6935
|
updated_at?: string;
|
|
6726
6936
|
};
|
|
6727
6937
|
Relationships: [
|
|
@@ -6881,6 +7091,8 @@ export type Database = {
|
|
|
6881
7091
|
order_date: string;
|
|
6882
7092
|
order_number: string;
|
|
6883
7093
|
order_source: string;
|
|
7094
|
+
plan_locked_at: string | null;
|
|
7095
|
+
plan_locked_ref: string | null;
|
|
6884
7096
|
status: string;
|
|
6885
7097
|
total: string;
|
|
6886
7098
|
updated_at: string;
|
|
@@ -6897,6 +7109,8 @@ export type Database = {
|
|
|
6897
7109
|
order_date?: string;
|
|
6898
7110
|
order_number: string;
|
|
6899
7111
|
order_source?: string;
|
|
7112
|
+
plan_locked_at?: string | null;
|
|
7113
|
+
plan_locked_ref?: string | null;
|
|
6900
7114
|
status?: string;
|
|
6901
7115
|
total?: string;
|
|
6902
7116
|
updated_at?: string;
|
|
@@ -6913,6 +7127,8 @@ export type Database = {
|
|
|
6913
7127
|
order_date?: string;
|
|
6914
7128
|
order_number?: string;
|
|
6915
7129
|
order_source?: string;
|
|
7130
|
+
plan_locked_at?: string | null;
|
|
7131
|
+
plan_locked_ref?: string | null;
|
|
6916
7132
|
status?: string;
|
|
6917
7133
|
total?: string;
|
|
6918
7134
|
updated_at?: string;
|
|
@@ -7291,6 +7507,7 @@ export type Database = {
|
|
|
7291
7507
|
display_name: string | null;
|
|
7292
7508
|
email: string | null;
|
|
7293
7509
|
id: string;
|
|
7510
|
+
is_superadmin: boolean;
|
|
7294
7511
|
notification_preferences: Json;
|
|
7295
7512
|
tenant_id: string | null;
|
|
7296
7513
|
updated_at: string;
|
|
@@ -7300,6 +7517,7 @@ export type Database = {
|
|
|
7300
7517
|
display_name?: string | null;
|
|
7301
7518
|
email?: string | null;
|
|
7302
7519
|
id: string;
|
|
7520
|
+
is_superadmin?: boolean;
|
|
7303
7521
|
notification_preferences?: Json;
|
|
7304
7522
|
tenant_id?: string | null;
|
|
7305
7523
|
updated_at?: string;
|
|
@@ -7309,6 +7527,7 @@ export type Database = {
|
|
|
7309
7527
|
display_name?: string | null;
|
|
7310
7528
|
email?: string | null;
|
|
7311
7529
|
id?: string;
|
|
7530
|
+
is_superadmin?: boolean;
|
|
7312
7531
|
notification_preferences?: Json;
|
|
7313
7532
|
tenant_id?: string | null;
|
|
7314
7533
|
updated_at?: string;
|
|
@@ -8130,6 +8349,24 @@ export type Database = {
|
|
|
8130
8349
|
};
|
|
8131
8350
|
Relationships: [];
|
|
8132
8351
|
};
|
|
8352
|
+
sidebar_config: {
|
|
8353
|
+
Row: {
|
|
8354
|
+
id: string;
|
|
8355
|
+
module_order: string[];
|
|
8356
|
+
updated_at: string;
|
|
8357
|
+
};
|
|
8358
|
+
Insert: {
|
|
8359
|
+
id?: string;
|
|
8360
|
+
module_order?: string[];
|
|
8361
|
+
updated_at?: string;
|
|
8362
|
+
};
|
|
8363
|
+
Update: {
|
|
8364
|
+
id?: string;
|
|
8365
|
+
module_order?: string[];
|
|
8366
|
+
updated_at?: string;
|
|
8367
|
+
};
|
|
8368
|
+
Relationships: [];
|
|
8369
|
+
};
|
|
8133
8370
|
stock_import_runs: {
|
|
8134
8371
|
Row: {
|
|
8135
8372
|
connection_id: string | null;
|
|
@@ -8188,7 +8425,7 @@ export type Database = {
|
|
|
8188
8425
|
reason: string | null;
|
|
8189
8426
|
reserved_after: number | null;
|
|
8190
8427
|
reserved_before: number | null;
|
|
8191
|
-
trade_item_key: string;
|
|
8428
|
+
trade_item_key: string | null;
|
|
8192
8429
|
};
|
|
8193
8430
|
Insert: {
|
|
8194
8431
|
connection_id?: string | null;
|
|
@@ -8205,7 +8442,7 @@ export type Database = {
|
|
|
8205
8442
|
reason?: string | null;
|
|
8206
8443
|
reserved_after?: number | null;
|
|
8207
8444
|
reserved_before?: number | null;
|
|
8208
|
-
trade_item_key
|
|
8445
|
+
trade_item_key?: string | null;
|
|
8209
8446
|
};
|
|
8210
8447
|
Update: {
|
|
8211
8448
|
connection_id?: string | null;
|
|
@@ -8222,7 +8459,7 @@ export type Database = {
|
|
|
8222
8459
|
reason?: string | null;
|
|
8223
8460
|
reserved_after?: number | null;
|
|
8224
8461
|
reserved_before?: number | null;
|
|
8225
|
-
trade_item_key?: string;
|
|
8462
|
+
trade_item_key?: string | null;
|
|
8226
8463
|
};
|
|
8227
8464
|
Relationships: [];
|
|
8228
8465
|
};
|
|
@@ -8573,6 +8810,116 @@ export type Database = {
|
|
|
8573
8810
|
};
|
|
8574
8811
|
Relationships: [];
|
|
8575
8812
|
};
|
|
8813
|
+
trade_item_supply_lines: {
|
|
8814
|
+
Row: {
|
|
8815
|
+
available_quantity: number | null;
|
|
8816
|
+
connection_id: string;
|
|
8817
|
+
created_at: string;
|
|
8818
|
+
currency: string | null;
|
|
8819
|
+
endpoint_family: string | null;
|
|
8820
|
+
environment: string | null;
|
|
8821
|
+
id: string;
|
|
8822
|
+
last_error: string | null;
|
|
8823
|
+
last_status: number | null;
|
|
8824
|
+
packing_configuration_id: string | null;
|
|
8825
|
+
period_end: string | null;
|
|
8826
|
+
period_start: string | null;
|
|
8827
|
+
price_per_piece: number | null;
|
|
8828
|
+
sales_unit: string | null;
|
|
8829
|
+
supply_line_id: string | null;
|
|
8830
|
+
supply_type: string;
|
|
8831
|
+
trade_item_id: string;
|
|
8832
|
+
updated_at: string;
|
|
8833
|
+
user_id: string;
|
|
8834
|
+
week: number | null;
|
|
8835
|
+
year: number | null;
|
|
8836
|
+
};
|
|
8837
|
+
Insert: {
|
|
8838
|
+
available_quantity?: number | null;
|
|
8839
|
+
connection_id: string;
|
|
8840
|
+
created_at?: string;
|
|
8841
|
+
currency?: string | null;
|
|
8842
|
+
endpoint_family?: string | null;
|
|
8843
|
+
environment?: string | null;
|
|
8844
|
+
id?: string;
|
|
8845
|
+
last_error?: string | null;
|
|
8846
|
+
last_status?: number | null;
|
|
8847
|
+
packing_configuration_id?: string | null;
|
|
8848
|
+
period_end?: string | null;
|
|
8849
|
+
period_start?: string | null;
|
|
8850
|
+
price_per_piece?: number | null;
|
|
8851
|
+
sales_unit?: string | null;
|
|
8852
|
+
supply_line_id?: string | null;
|
|
8853
|
+
supply_type?: string;
|
|
8854
|
+
trade_item_id: string;
|
|
8855
|
+
updated_at?: string;
|
|
8856
|
+
user_id: string;
|
|
8857
|
+
week?: number | null;
|
|
8858
|
+
year?: number | null;
|
|
8859
|
+
};
|
|
8860
|
+
Update: {
|
|
8861
|
+
available_quantity?: number | null;
|
|
8862
|
+
connection_id?: string;
|
|
8863
|
+
created_at?: string;
|
|
8864
|
+
currency?: string | null;
|
|
8865
|
+
endpoint_family?: string | null;
|
|
8866
|
+
environment?: string | null;
|
|
8867
|
+
id?: string;
|
|
8868
|
+
last_error?: string | null;
|
|
8869
|
+
last_status?: number | null;
|
|
8870
|
+
packing_configuration_id?: string | null;
|
|
8871
|
+
period_end?: string | null;
|
|
8872
|
+
period_start?: string | null;
|
|
8873
|
+
price_per_piece?: number | null;
|
|
8874
|
+
sales_unit?: string | null;
|
|
8875
|
+
supply_line_id?: string | null;
|
|
8876
|
+
supply_type?: string;
|
|
8877
|
+
trade_item_id?: string;
|
|
8878
|
+
updated_at?: string;
|
|
8879
|
+
user_id?: string;
|
|
8880
|
+
week?: number | null;
|
|
8881
|
+
year?: number | null;
|
|
8882
|
+
};
|
|
8883
|
+
Relationships: [];
|
|
8884
|
+
};
|
|
8885
|
+
trade_item_warehouse_preferences: {
|
|
8886
|
+
Row: {
|
|
8887
|
+
connection_id: string;
|
|
8888
|
+
created_at: string;
|
|
8889
|
+
id: string;
|
|
8890
|
+
trade_item_id: string;
|
|
8891
|
+
updated_at: string;
|
|
8892
|
+
warehouse_id: string;
|
|
8893
|
+
warehouse_name: string | null;
|
|
8894
|
+
};
|
|
8895
|
+
Insert: {
|
|
8896
|
+
connection_id: string;
|
|
8897
|
+
created_at?: string;
|
|
8898
|
+
id?: string;
|
|
8899
|
+
trade_item_id: string;
|
|
8900
|
+
updated_at?: string;
|
|
8901
|
+
warehouse_id: string;
|
|
8902
|
+
warehouse_name?: string | null;
|
|
8903
|
+
};
|
|
8904
|
+
Update: {
|
|
8905
|
+
connection_id?: string;
|
|
8906
|
+
created_at?: string;
|
|
8907
|
+
id?: string;
|
|
8908
|
+
trade_item_id?: string;
|
|
8909
|
+
updated_at?: string;
|
|
8910
|
+
warehouse_id?: string;
|
|
8911
|
+
warehouse_name?: string | null;
|
|
8912
|
+
};
|
|
8913
|
+
Relationships: [
|
|
8914
|
+
{
|
|
8915
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8916
|
+
columns: ["connection_id"];
|
|
8917
|
+
isOneToOne: false;
|
|
8918
|
+
referencedRelation: "floriday_connections";
|
|
8919
|
+
referencedColumns: ["id"];
|
|
8920
|
+
}
|
|
8921
|
+
];
|
|
8922
|
+
};
|
|
8576
8923
|
twinfield_connections: {
|
|
8577
8924
|
Row: {
|
|
8578
8925
|
access_token: string | null;
|
|
@@ -8898,6 +9245,10 @@ export type Database = {
|
|
|
8898
9245
|
default_invoice_type: string;
|
|
8899
9246
|
default_payment_term_days: number;
|
|
8900
9247
|
default_vat_code: string;
|
|
9248
|
+
invoice_enabled_ao: boolean;
|
|
9249
|
+
invoice_enabled_fo: boolean;
|
|
9250
|
+
invoice_enabled_ho: boolean;
|
|
9251
|
+
invoice_enabled_mo: boolean;
|
|
8901
9252
|
updated_at: string;
|
|
8902
9253
|
user_id: string;
|
|
8903
9254
|
};
|
|
@@ -8907,6 +9258,10 @@ export type Database = {
|
|
|
8907
9258
|
default_invoice_type?: string;
|
|
8908
9259
|
default_payment_term_days?: number;
|
|
8909
9260
|
default_vat_code?: string;
|
|
9261
|
+
invoice_enabled_ao?: boolean;
|
|
9262
|
+
invoice_enabled_fo?: boolean;
|
|
9263
|
+
invoice_enabled_ho?: boolean;
|
|
9264
|
+
invoice_enabled_mo?: boolean;
|
|
8910
9265
|
updated_at?: string;
|
|
8911
9266
|
user_id: string;
|
|
8912
9267
|
};
|
|
@@ -8916,6 +9271,10 @@ export type Database = {
|
|
|
8916
9271
|
default_invoice_type?: string;
|
|
8917
9272
|
default_payment_term_days?: number;
|
|
8918
9273
|
default_vat_code?: string;
|
|
9274
|
+
invoice_enabled_ao?: boolean;
|
|
9275
|
+
invoice_enabled_fo?: boolean;
|
|
9276
|
+
invoice_enabled_ho?: boolean;
|
|
9277
|
+
invoice_enabled_mo?: boolean;
|
|
8919
9278
|
updated_at?: string;
|
|
8920
9279
|
user_id?: string;
|
|
8921
9280
|
};
|
|
@@ -10238,6 +10597,12 @@ export type Database = {
|
|
|
10238
10597
|
order_number: string;
|
|
10239
10598
|
}[];
|
|
10240
10599
|
};
|
|
10600
|
+
autolink_product_to_floriday: {
|
|
10601
|
+
Args: {
|
|
10602
|
+
p_product_id: string;
|
|
10603
|
+
};
|
|
10604
|
+
Returns: string;
|
|
10605
|
+
};
|
|
10241
10606
|
backfill_open_order_reservations: {
|
|
10242
10607
|
Args: never;
|
|
10243
10608
|
Returns: {
|
|
@@ -10276,6 +10641,18 @@ export type Database = {
|
|
|
10276
10641
|
Args: never;
|
|
10277
10642
|
Returns: number;
|
|
10278
10643
|
};
|
|
10644
|
+
consume_floriday_rate_limit: {
|
|
10645
|
+
Args: {
|
|
10646
|
+
p_bucket: string;
|
|
10647
|
+
p_capacity: number;
|
|
10648
|
+
p_cost?: number;
|
|
10649
|
+
p_refill_per_sec: number;
|
|
10650
|
+
};
|
|
10651
|
+
Returns: {
|
|
10652
|
+
granted: boolean;
|
|
10653
|
+
wait_ms: number;
|
|
10654
|
+
}[];
|
|
10655
|
+
};
|
|
10279
10656
|
control_get_todays_carts: {
|
|
10280
10657
|
Args: never;
|
|
10281
10658
|
Returns: {
|
|
@@ -10356,6 +10733,12 @@ export type Database = {
|
|
|
10356
10733
|
status: string;
|
|
10357
10734
|
}[];
|
|
10358
10735
|
};
|
|
10736
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10737
|
+
Args: {
|
|
10738
|
+
p_order_id: string;
|
|
10739
|
+
};
|
|
10740
|
+
Returns: undefined;
|
|
10741
|
+
};
|
|
10359
10742
|
ensure_trade_item_stock_row: {
|
|
10360
10743
|
Args: {
|
|
10361
10744
|
p_key: string;
|
|
@@ -10462,6 +10845,13 @@ export type Database = {
|
|
|
10462
10845
|
office_code: string;
|
|
10463
10846
|
}[];
|
|
10464
10847
|
};
|
|
10848
|
+
get_floricode_record_counts: {
|
|
10849
|
+
Args: never;
|
|
10850
|
+
Returns: {
|
|
10851
|
+
count: number;
|
|
10852
|
+
resource: string;
|
|
10853
|
+
}[];
|
|
10854
|
+
};
|
|
10465
10855
|
get_floriday_agreements_active: {
|
|
10466
10856
|
Args: {
|
|
10467
10857
|
p_on_date?: string;
|
|
@@ -10553,6 +10943,12 @@ export type Database = {
|
|
|
10553
10943
|
};
|
|
10554
10944
|
Returns: Json;
|
|
10555
10945
|
};
|
|
10946
|
+
get_offer_delivery_options: {
|
|
10947
|
+
Args: {
|
|
10948
|
+
p_code: string;
|
|
10949
|
+
};
|
|
10950
|
+
Returns: Json;
|
|
10951
|
+
};
|
|
10556
10952
|
get_offer_recipient_by_code: {
|
|
10557
10953
|
Args: {
|
|
10558
10954
|
p_code: string;
|
|
@@ -10617,6 +11013,12 @@ export type Database = {
|
|
|
10617
11013
|
Args: never;
|
|
10618
11014
|
Returns: boolean;
|
|
10619
11015
|
};
|
|
11016
|
+
is_superadmin: {
|
|
11017
|
+
Args: {
|
|
11018
|
+
_user_id: string;
|
|
11019
|
+
};
|
|
11020
|
+
Returns: boolean;
|
|
11021
|
+
};
|
|
10620
11022
|
local_effective_price: {
|
|
10621
11023
|
Args: {
|
|
10622
11024
|
_customer_id: string;
|
|
@@ -10651,6 +11053,13 @@ export type Database = {
|
|
|
10651
11053
|
};
|
|
10652
11054
|
Returns: string;
|
|
10653
11055
|
};
|
|
11056
|
+
next_order_number_for_date: {
|
|
11057
|
+
Args: {
|
|
11058
|
+
p_created_at?: string;
|
|
11059
|
+
p_prefix: string;
|
|
11060
|
+
};
|
|
11061
|
+
Returns: string;
|
|
11062
|
+
};
|
|
10654
11063
|
next_work_order_number: {
|
|
10655
11064
|
Args: {
|
|
10656
11065
|
p_parent_work_order_id?: string;
|
|
@@ -10658,6 +11067,12 @@ export type Database = {
|
|
|
10658
11067
|
};
|
|
10659
11068
|
Returns: string;
|
|
10660
11069
|
};
|
|
11070
|
+
normalize_order_source: {
|
|
11071
|
+
Args: {
|
|
11072
|
+
p_src: string;
|
|
11073
|
+
};
|
|
11074
|
+
Returns: string;
|
|
11075
|
+
};
|
|
10661
11076
|
normalize_vat: {
|
|
10662
11077
|
Args: {
|
|
10663
11078
|
v: string;
|
|
@@ -10672,10 +11087,21 @@ export type Database = {
|
|
|
10672
11087
|
};
|
|
10673
11088
|
Returns: boolean;
|
|
10674
11089
|
};
|
|
11090
|
+
order_number_prefix: {
|
|
11091
|
+
Args: {
|
|
11092
|
+
p_custom_fields?: Json;
|
|
11093
|
+
p_order_source: string;
|
|
11094
|
+
};
|
|
11095
|
+
Returns: string;
|
|
11096
|
+
};
|
|
10675
11097
|
pickstation_get_orders_raw: {
|
|
10676
11098
|
Args: never;
|
|
10677
11099
|
Returns: Json;
|
|
10678
11100
|
};
|
|
11101
|
+
pickstation_get_planning_context: {
|
|
11102
|
+
Args: never;
|
|
11103
|
+
Returns: Json;
|
|
11104
|
+
};
|
|
10679
11105
|
pickstation_get_settings: {
|
|
10680
11106
|
Args: never;
|
|
10681
11107
|
Returns: Json;
|
|
@@ -10706,6 +11132,28 @@ export type Database = {
|
|
|
10706
11132
|
};
|
|
10707
11133
|
Returns: undefined;
|
|
10708
11134
|
};
|
|
11135
|
+
recompute_order_status: {
|
|
11136
|
+
Args: {
|
|
11137
|
+
p_order_id: string;
|
|
11138
|
+
};
|
|
11139
|
+
Returns: undefined;
|
|
11140
|
+
};
|
|
11141
|
+
recompute_reserved_for_order: {
|
|
11142
|
+
Args: {
|
|
11143
|
+
p_order_id: string;
|
|
11144
|
+
};
|
|
11145
|
+
Returns: undefined;
|
|
11146
|
+
};
|
|
11147
|
+
recompute_reserved_stock: {
|
|
11148
|
+
Args: {
|
|
11149
|
+
p_trade_item_key: string;
|
|
11150
|
+
};
|
|
11151
|
+
Returns: undefined;
|
|
11152
|
+
};
|
|
11153
|
+
refresh_external_customers_grouped: {
|
|
11154
|
+
Args: never;
|
|
11155
|
+
Returns: undefined;
|
|
11156
|
+
};
|
|
10709
11157
|
refresh_floricode_derived_code_lists: {
|
|
10710
11158
|
Args: never;
|
|
10711
11159
|
Returns: {
|
|
@@ -10720,6 +11168,12 @@ export type Database = {
|
|
|
10720
11168
|
};
|
|
10721
11169
|
Returns: number;
|
|
10722
11170
|
};
|
|
11171
|
+
refresh_floricode_derived_for_products: {
|
|
11172
|
+
Args: {
|
|
11173
|
+
_product_ids: string[];
|
|
11174
|
+
};
|
|
11175
|
+
Returns: number;
|
|
11176
|
+
};
|
|
10723
11177
|
reset_floriday_sync_cursor: {
|
|
10724
11178
|
Args: {
|
|
10725
11179
|
p_connection_id: string;
|
|
@@ -10727,6 +11181,12 @@ export type Database = {
|
|
|
10727
11181
|
};
|
|
10728
11182
|
Returns: undefined;
|
|
10729
11183
|
};
|
|
11184
|
+
resolve_product_id_for_item: {
|
|
11185
|
+
Args: {
|
|
11186
|
+
p_product_name: string;
|
|
11187
|
+
};
|
|
11188
|
+
Returns: string;
|
|
11189
|
+
};
|
|
10730
11190
|
schedule_floriday_additional_services_sync: {
|
|
10731
11191
|
Args: {
|
|
10732
11192
|
p_apikey: string;
|
|
@@ -11004,6 +11464,24 @@ export type Database = {
|
|
|
11004
11464
|
};
|
|
11005
11465
|
Returns: string[];
|
|
11006
11466
|
};
|
|
11467
|
+
sync_cached_packing_from_product: {
|
|
11468
|
+
Args: {
|
|
11469
|
+
p_product_id: string;
|
|
11470
|
+
};
|
|
11471
|
+
Returns: undefined;
|
|
11472
|
+
};
|
|
11473
|
+
sync_order_cart_item_packing_from_product: {
|
|
11474
|
+
Args: {
|
|
11475
|
+
p_product_id: string;
|
|
11476
|
+
};
|
|
11477
|
+
Returns: undefined;
|
|
11478
|
+
};
|
|
11479
|
+
sync_product_packing_from_floriday_cache: {
|
|
11480
|
+
Args: {
|
|
11481
|
+
p_floriday_id: string;
|
|
11482
|
+
};
|
|
11483
|
+
Returns: undefined;
|
|
11484
|
+
};
|
|
11007
11485
|
twinfield_decrypt: {
|
|
11008
11486
|
Args: {
|
|
11009
11487
|
cipher: string;
|