@flowselections/floriday-authenticatie-module 1.0.58 → 1.0.62
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 +206 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/base-supply-decision.d.ts +52 -0
- package/dist-lib/lib/base-supply-decision.d.ts.map +1 -0
- package/dist-lib/lib/base-supply-decision.js +76 -0
- package/dist-lib/lib/cron/process-stock-queue.d.ts +14 -3
- package/dist-lib/lib/cron/process-stock-queue.d.ts.map +1 -1
- package/dist-lib/lib/cron/process-stock-queue.js +35 -39
- package/dist-lib/lib/floriday-sync.functions.d.ts +14 -0
- package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sync.functions.js +92 -0
- package/dist-lib/lib/floriday.functions.d.ts +0 -8
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +61 -45
- package/dist-lib/lib/gateway/supply-line.d.ts.map +1 -1
- package/dist-lib/lib/gateway/supply-line.js +140 -63
- package/dist-lib/lib/gateway/webhook-subscribe.d.ts.map +1 -1
- package/dist-lib/lib/gateway/webhook-subscribe.js +24 -4
- package/dist-lib/lib/gateway/webhook.d.ts +6 -0
- package/dist-lib/lib/gateway/webhook.d.ts.map +1 -1
- package/dist-lib/lib/gateway/webhook.js +9 -0
- package/dist-lib/lib/shell-base.d.ts +14 -0
- package/dist-lib/lib/shell-base.d.ts.map +1 -1
- package/dist-lib/lib/shell-base.js +17 -0
- package/dist-lib/lib/shell-routes.d.ts +1 -1
- package/dist-lib/lib/shell-routes.d.ts.map +1 -1
- package/dist-lib/lib/shell-routes.js +1 -0
- package/package.json +9 -1
|
@@ -6660,8 +6660,10 @@ export type Database = {
|
|
|
6660
6660
|
locked_by: string | null;
|
|
6661
6661
|
next_attempt_at: string;
|
|
6662
6662
|
number_of_pieces: number;
|
|
6663
|
+
price_sent: number | null;
|
|
6663
6664
|
product_id: string | null;
|
|
6664
6665
|
quantity_sent_at: string | null;
|
|
6666
|
+
result_label: string | null;
|
|
6665
6667
|
sent_at: string | null;
|
|
6666
6668
|
skip_reason: string | null;
|
|
6667
6669
|
status: string;
|
|
@@ -6688,8 +6690,10 @@ export type Database = {
|
|
|
6688
6690
|
locked_by?: string | null;
|
|
6689
6691
|
next_attempt_at?: string;
|
|
6690
6692
|
number_of_pieces?: number;
|
|
6693
|
+
price_sent?: number | null;
|
|
6691
6694
|
product_id?: string | null;
|
|
6692
6695
|
quantity_sent_at?: string | null;
|
|
6696
|
+
result_label?: string | null;
|
|
6693
6697
|
sent_at?: string | null;
|
|
6694
6698
|
skip_reason?: string | null;
|
|
6695
6699
|
status?: string;
|
|
@@ -6716,8 +6720,10 @@ export type Database = {
|
|
|
6716
6720
|
locked_by?: string | null;
|
|
6717
6721
|
next_attempt_at?: string;
|
|
6718
6722
|
number_of_pieces?: number;
|
|
6723
|
+
price_sent?: number | null;
|
|
6719
6724
|
product_id?: string | null;
|
|
6720
6725
|
quantity_sent_at?: string | null;
|
|
6726
|
+
result_label?: string | null;
|
|
6721
6727
|
sent_at?: string | null;
|
|
6722
6728
|
skip_reason?: string | null;
|
|
6723
6729
|
status?: string;
|
|
@@ -8902,6 +8908,7 @@ export type Database = {
|
|
|
8902
8908
|
import_retention_days: number;
|
|
8903
8909
|
max_ms_inline: number;
|
|
8904
8910
|
max_parents_inline: number;
|
|
8911
|
+
queue_base_supply_timeout_minutes: number;
|
|
8905
8912
|
queue_cleanup_batch: number;
|
|
8906
8913
|
queue_cleanup_max_batches: number;
|
|
8907
8914
|
queue_failed_days: number;
|
|
@@ -8922,6 +8929,7 @@ export type Database = {
|
|
|
8922
8929
|
import_retention_days?: number;
|
|
8923
8930
|
max_ms_inline?: number;
|
|
8924
8931
|
max_parents_inline?: number;
|
|
8932
|
+
queue_base_supply_timeout_minutes?: number;
|
|
8925
8933
|
queue_cleanup_batch?: number;
|
|
8926
8934
|
queue_cleanup_max_batches?: number;
|
|
8927
8935
|
queue_failed_days?: number;
|
|
@@ -8942,6 +8950,7 @@ export type Database = {
|
|
|
8942
8950
|
import_retention_days?: number;
|
|
8943
8951
|
max_ms_inline?: number;
|
|
8944
8952
|
max_parents_inline?: number;
|
|
8953
|
+
queue_base_supply_timeout_minutes?: number;
|
|
8945
8954
|
queue_cleanup_batch?: number;
|
|
8946
8955
|
queue_cleanup_max_batches?: number;
|
|
8947
8956
|
queue_failed_days?: number;
|
|
@@ -12428,6 +12437,33 @@ export type Database = {
|
|
|
12428
12437
|
};
|
|
12429
12438
|
Relationships: [];
|
|
12430
12439
|
};
|
|
12440
|
+
logistics_plan_coverage_retries: {
|
|
12441
|
+
Row: {
|
|
12442
|
+
attempts: number;
|
|
12443
|
+
gave_up_at: string | null;
|
|
12444
|
+
last_at: string;
|
|
12445
|
+
last_pct: number | null;
|
|
12446
|
+
next_at: string;
|
|
12447
|
+
order_id: string;
|
|
12448
|
+
};
|
|
12449
|
+
Insert: {
|
|
12450
|
+
attempts?: number;
|
|
12451
|
+
gave_up_at?: string | null;
|
|
12452
|
+
last_at?: string;
|
|
12453
|
+
last_pct?: number | null;
|
|
12454
|
+
next_at?: string;
|
|
12455
|
+
order_id: string;
|
|
12456
|
+
};
|
|
12457
|
+
Update: {
|
|
12458
|
+
attempts?: number;
|
|
12459
|
+
gave_up_at?: string | null;
|
|
12460
|
+
last_at?: string;
|
|
12461
|
+
last_pct?: number | null;
|
|
12462
|
+
next_at?: string;
|
|
12463
|
+
order_id?: string;
|
|
12464
|
+
};
|
|
12465
|
+
Relationships: [];
|
|
12466
|
+
};
|
|
12431
12467
|
logistics_plan_locks: {
|
|
12432
12468
|
Row: {
|
|
12433
12469
|
created_at: string;
|
|
@@ -17798,6 +17834,12 @@ export type Database = {
|
|
|
17798
17834
|
email_purpose: string | null;
|
|
17799
17835
|
enabled: boolean;
|
|
17800
17836
|
id: boolean;
|
|
17837
|
+
overrun_auto_mail: boolean;
|
|
17838
|
+
overrun_body_template: string;
|
|
17839
|
+
overrun_enabled: boolean;
|
|
17840
|
+
overrun_mail_minutes: number;
|
|
17841
|
+
overrun_notice_minutes: number;
|
|
17842
|
+
overrun_subject_template: string;
|
|
17801
17843
|
reply_to: string | null;
|
|
17802
17844
|
reschedule_body_template: string;
|
|
17803
17845
|
reschedule_subject_template: string;
|
|
@@ -17814,6 +17856,12 @@ export type Database = {
|
|
|
17814
17856
|
email_purpose?: string | null;
|
|
17815
17857
|
enabled?: boolean;
|
|
17816
17858
|
id?: boolean;
|
|
17859
|
+
overrun_auto_mail?: boolean;
|
|
17860
|
+
overrun_body_template?: string;
|
|
17861
|
+
overrun_enabled?: boolean;
|
|
17862
|
+
overrun_mail_minutes?: number;
|
|
17863
|
+
overrun_notice_minutes?: number;
|
|
17864
|
+
overrun_subject_template?: string;
|
|
17817
17865
|
reply_to?: string | null;
|
|
17818
17866
|
reschedule_body_template?: string;
|
|
17819
17867
|
reschedule_subject_template?: string;
|
|
@@ -17830,6 +17878,12 @@ export type Database = {
|
|
|
17830
17878
|
email_purpose?: string | null;
|
|
17831
17879
|
enabled?: boolean;
|
|
17832
17880
|
id?: boolean;
|
|
17881
|
+
overrun_auto_mail?: boolean;
|
|
17882
|
+
overrun_body_template?: string;
|
|
17883
|
+
overrun_enabled?: boolean;
|
|
17884
|
+
overrun_mail_minutes?: number;
|
|
17885
|
+
overrun_notice_minutes?: number;
|
|
17886
|
+
overrun_subject_template?: string;
|
|
17833
17887
|
reply_to?: string | null;
|
|
17834
17888
|
reschedule_body_template?: string;
|
|
17835
17889
|
reschedule_subject_template?: string;
|
|
@@ -17921,6 +17975,66 @@ export type Database = {
|
|
|
17921
17975
|
};
|
|
17922
17976
|
Relationships: [];
|
|
17923
17977
|
};
|
|
17978
|
+
planning_overrun_events: {
|
|
17979
|
+
Row: {
|
|
17980
|
+
created_at: string;
|
|
17981
|
+
id: string;
|
|
17982
|
+
mail_level: number;
|
|
17983
|
+
mailed_at: string | null;
|
|
17984
|
+
mailed_item_id: string | null;
|
|
17985
|
+
mailed_items: Json;
|
|
17986
|
+
monteur_id: string | null;
|
|
17987
|
+
original_end_at: string;
|
|
17988
|
+
overrun_minutes: number;
|
|
17989
|
+
planning_item_id: string;
|
|
17990
|
+
shifted: Json;
|
|
17991
|
+
updated_at: string;
|
|
17992
|
+
};
|
|
17993
|
+
Insert: {
|
|
17994
|
+
created_at?: string;
|
|
17995
|
+
id?: string;
|
|
17996
|
+
mail_level?: number;
|
|
17997
|
+
mailed_at?: string | null;
|
|
17998
|
+
mailed_item_id?: string | null;
|
|
17999
|
+
mailed_items?: Json;
|
|
18000
|
+
monteur_id?: string | null;
|
|
18001
|
+
original_end_at: string;
|
|
18002
|
+
overrun_minutes?: number;
|
|
18003
|
+
planning_item_id: string;
|
|
18004
|
+
shifted?: Json;
|
|
18005
|
+
updated_at?: string;
|
|
18006
|
+
};
|
|
18007
|
+
Update: {
|
|
18008
|
+
created_at?: string;
|
|
18009
|
+
id?: string;
|
|
18010
|
+
mail_level?: number;
|
|
18011
|
+
mailed_at?: string | null;
|
|
18012
|
+
mailed_item_id?: string | null;
|
|
18013
|
+
mailed_items?: Json;
|
|
18014
|
+
monteur_id?: string | null;
|
|
18015
|
+
original_end_at?: string;
|
|
18016
|
+
overrun_minutes?: number;
|
|
18017
|
+
planning_item_id?: string;
|
|
18018
|
+
shifted?: Json;
|
|
18019
|
+
updated_at?: string;
|
|
18020
|
+
};
|
|
18021
|
+
Relationships: [
|
|
18022
|
+
{
|
|
18023
|
+
foreignKeyName: "planning_overrun_events_planning_item_id_fkey";
|
|
18024
|
+
columns: ["planning_item_id"];
|
|
18025
|
+
isOneToOne: true;
|
|
18026
|
+
referencedRelation: "planning_items";
|
|
18027
|
+
referencedColumns: ["id"];
|
|
18028
|
+
},
|
|
18029
|
+
{
|
|
18030
|
+
foreignKeyName: "planning_overrun_events_planning_item_id_fkey";
|
|
18031
|
+
columns: ["planning_item_id"];
|
|
18032
|
+
isOneToOne: true;
|
|
18033
|
+
referencedRelation: "planning_overview";
|
|
18034
|
+
referencedColumns: ["id"];
|
|
18035
|
+
}
|
|
18036
|
+
];
|
|
18037
|
+
};
|
|
17924
18038
|
planning_settings: {
|
|
17925
18039
|
Row: {
|
|
17926
18040
|
company_address: string | null;
|
|
@@ -27642,8 +27756,10 @@ export type Database = {
|
|
|
27642
27756
|
locked_by: string | null;
|
|
27643
27757
|
next_attempt_at: string;
|
|
27644
27758
|
number_of_pieces: number;
|
|
27759
|
+
price_sent: number | null;
|
|
27645
27760
|
product_id: string | null;
|
|
27646
27761
|
quantity_sent_at: string | null;
|
|
27762
|
+
result_label: string | null;
|
|
27647
27763
|
sent_at: string | null;
|
|
27648
27764
|
skip_reason: string | null;
|
|
27649
27765
|
status: string;
|
|
@@ -28384,6 +28500,17 @@ export type Database = {
|
|
|
28384
28500
|
};
|
|
28385
28501
|
Returns: string;
|
|
28386
28502
|
};
|
|
28503
|
+
fust_negative_stock_report: {
|
|
28504
|
+
Args: never;
|
|
28505
|
+
Returns: {
|
|
28506
|
+
duplicate_names: number;
|
|
28507
|
+
fust_key: string;
|
|
28508
|
+
fust_type_id: string;
|
|
28509
|
+
name: string;
|
|
28510
|
+
shortage: number;
|
|
28511
|
+
stock: number;
|
|
28512
|
+
}[];
|
|
28513
|
+
};
|
|
28387
28514
|
get_active_floriday_connection_public: {
|
|
28388
28515
|
Args: never;
|
|
28389
28516
|
Returns: {
|
|
@@ -30303,6 +30430,10 @@ export type Database = {
|
|
|
30303
30430
|
Args: never;
|
|
30304
30431
|
Returns: number;
|
|
30305
30432
|
};
|
|
30433
|
+
logistics_is_beheer: {
|
|
30434
|
+
Args: never;
|
|
30435
|
+
Returns: boolean;
|
|
30436
|
+
};
|
|
30306
30437
|
logistics_is_engine_response: {
|
|
30307
30438
|
Args: {
|
|
30308
30439
|
p_content: string;
|
|
@@ -30510,6 +30641,12 @@ export type Database = {
|
|
|
30510
30641
|
};
|
|
30511
30642
|
Returns: boolean;
|
|
30512
30643
|
};
|
|
30644
|
+
logistics_order_is_frozen: {
|
|
30645
|
+
Args: {
|
|
30646
|
+
p_order_id: string;
|
|
30647
|
+
};
|
|
30648
|
+
Returns: boolean;
|
|
30649
|
+
};
|
|
30513
30650
|
logistics_order_is_topick: {
|
|
30514
30651
|
Args: {
|
|
30515
30652
|
p_order_id: string;
|
|
@@ -30572,6 +30709,12 @@ export type Database = {
|
|
|
30572
30709
|
};
|
|
30573
30710
|
Returns: string;
|
|
30574
30711
|
};
|
|
30712
|
+
logistics_order_plan_coverage: {
|
|
30713
|
+
Args: {
|
|
30714
|
+
p_order_id: string;
|
|
30715
|
+
};
|
|
30716
|
+
Returns: Json;
|
|
30717
|
+
};
|
|
30575
30718
|
logistics_order_released: {
|
|
30576
30719
|
Args: {
|
|
30577
30720
|
p_order_ref: string;
|
|
@@ -30732,12 +30875,22 @@ export type Database = {
|
|
|
30732
30875
|
order_id: string;
|
|
30733
30876
|
}[];
|
|
30734
30877
|
};
|
|
30878
|
+
logistics_plan_coverage_check: {
|
|
30879
|
+
Args: {
|
|
30880
|
+
p_limit?: number;
|
|
30881
|
+
};
|
|
30882
|
+
Returns: Json;
|
|
30883
|
+
};
|
|
30735
30884
|
logistics_plan_defer: {
|
|
30736
30885
|
Args: {
|
|
30737
30886
|
p_id: string;
|
|
30738
30887
|
};
|
|
30739
30888
|
Returns: undefined;
|
|
30740
30889
|
};
|
|
30890
|
+
logistics_plan_due_count: {
|
|
30891
|
+
Args: never;
|
|
30892
|
+
Returns: number;
|
|
30893
|
+
};
|
|
30741
30894
|
logistics_plan_enqueue: {
|
|
30742
30895
|
Args: {
|
|
30743
30896
|
p_order_id: string;
|
|
@@ -31046,6 +31199,16 @@ export type Database = {
|
|
|
31046
31199
|
};
|
|
31047
31200
|
Returns: Json;
|
|
31048
31201
|
};
|
|
31202
|
+
logistics_replan_candidates: {
|
|
31203
|
+
Args: {
|
|
31204
|
+
p_delivery_date?: string;
|
|
31205
|
+
p_include_frozen?: boolean;
|
|
31206
|
+
};
|
|
31207
|
+
Returns: {
|
|
31208
|
+
frozen: boolean;
|
|
31209
|
+
order_id: string;
|
|
31210
|
+
}[];
|
|
31211
|
+
};
|
|
31049
31212
|
logistics_replan_clear_foreign_cart_items: {
|
|
31050
31213
|
Args: {
|
|
31051
31214
|
p_order_id: string;
|
|
@@ -31065,6 +31228,21 @@ export type Database = {
|
|
|
31065
31228
|
};
|
|
31066
31229
|
Returns: Json;
|
|
31067
31230
|
};
|
|
31231
|
+
logistics_replan_preview: {
|
|
31232
|
+
Args: {
|
|
31233
|
+
p_delivery_date?: string;
|
|
31234
|
+
p_include_frozen?: boolean;
|
|
31235
|
+
};
|
|
31236
|
+
Returns: Json;
|
|
31237
|
+
};
|
|
31238
|
+
logistics_replan_selected: {
|
|
31239
|
+
Args: {
|
|
31240
|
+
p_confirm_count: number;
|
|
31241
|
+
p_delivery_date?: string;
|
|
31242
|
+
p_include_frozen?: boolean;
|
|
31243
|
+
};
|
|
31244
|
+
Returns: Json;
|
|
31245
|
+
};
|
|
31068
31246
|
logistics_replan_selected_orders: {
|
|
31069
31247
|
Args: {
|
|
31070
31248
|
p_order_ids: string[];
|
|
@@ -31234,6 +31412,13 @@ export type Database = {
|
|
|
31234
31412
|
};
|
|
31235
31413
|
Returns: number;
|
|
31236
31414
|
};
|
|
31415
|
+
logistics_set_components_scaled: {
|
|
31416
|
+
Args: {
|
|
31417
|
+
p_order_item_id: string;
|
|
31418
|
+
p_plants: number;
|
|
31419
|
+
};
|
|
31420
|
+
Returns: Json;
|
|
31421
|
+
};
|
|
31237
31422
|
logistics_set_order_priority: {
|
|
31238
31423
|
Args: {
|
|
31239
31424
|
p_order_ref: string;
|
|
@@ -34557,12 +34742,25 @@ export type Database = {
|
|
|
34557
34742
|
Args: never;
|
|
34558
34743
|
Returns: Json;
|
|
34559
34744
|
};
|
|
34745
|
+
voorraad_production_enabled: {
|
|
34746
|
+
Args: never;
|
|
34747
|
+
Returns: boolean;
|
|
34748
|
+
};
|
|
34560
34749
|
wake_print_queue: {
|
|
34561
34750
|
Args: {
|
|
34562
34751
|
_min_interval_ms?: number;
|
|
34563
34752
|
};
|
|
34564
34753
|
Returns: number;
|
|
34565
34754
|
};
|
|
34755
|
+
werkbon_format_project_number: {
|
|
34756
|
+
Args: {
|
|
34757
|
+
_parent_project_number?: string;
|
|
34758
|
+
_sequence_number: number;
|
|
34759
|
+
_source_type: string;
|
|
34760
|
+
_version: number;
|
|
34761
|
+
};
|
|
34762
|
+
Returns: string;
|
|
34763
|
+
};
|
|
34566
34764
|
werkbon_pakket_tijden: {
|
|
34567
34765
|
Args: {
|
|
34568
34766
|
_werkbon_id: string;
|
|
@@ -34585,6 +34783,14 @@ export type Database = {
|
|
|
34585
34783
|
total_minutes: number;
|
|
34586
34784
|
}[];
|
|
34587
34785
|
};
|
|
34786
|
+
wo_boek_standby_uren: {
|
|
34787
|
+
Args: {
|
|
34788
|
+
_datum: string;
|
|
34789
|
+
_minuten: number;
|
|
34790
|
+
_werkbon_id: string;
|
|
34791
|
+
};
|
|
34792
|
+
Returns: Json;
|
|
34793
|
+
};
|
|
34588
34794
|
wo_create_from_source: {
|
|
34589
34795
|
Args: {
|
|
34590
34796
|
_payload?: Json;
|