@flowselections/floriday-voorraad 1.0.94 → 1.0.96
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/ArtikelWizard.d.ts.map +1 -1
- package/dist-lib/components/voorraad/ArtikelWizard.js +21 -41
- package/dist-lib/components/voorraad/FloridayTakeoverPanel.d.ts.map +1 -1
- package/dist-lib/components/voorraad/FloridayTakeoverPanel.js +18 -1
- package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
- package/dist-lib/components/voorraad/StockBulkButtons.js +59 -0
- package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadTable.js +16 -1
- package/dist-lib/integrations/supabase/types.d.ts +282 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/__tests__/product-packings.test.d.ts +2 -0
- package/dist-lib/lib/__tests__/product-packings.test.d.ts.map +1 -0
- package/dist-lib/lib/__tests__/product-packings.test.js +42 -0
- package/dist-lib/lib/ensure-article-codes.d.ts.map +1 -1
- package/dist-lib/lib/ensure-article-codes.js +2 -12
- package/dist-lib/lib/floriday-payload.d.ts +15 -0
- package/dist-lib/lib/floriday-payload.d.ts.map +1 -1
- package/dist-lib/lib/floriday-payload.js +36 -10
- package/dist-lib/lib/fusten.d.ts.map +1 -1
- package/dist-lib/lib/fusten.js +6 -1
- package/dist-lib/lib/product-packing.d.ts +8 -5
- package/dist-lib/lib/product-packing.d.ts.map +1 -1
- package/dist-lib/lib/product-packing.js +44 -36
- package/dist-lib/lib/product-packings.d.ts +33 -0
- package/dist-lib/lib/product-packings.d.ts.map +1 -0
- package/dist-lib/lib/product-packings.js +89 -0
- package/dist-lib/server-hooks/floriday-follow.d.ts.map +1 -1
- package/dist-lib/server-hooks/floriday-follow.js +11 -1
- package/package.json +1 -1
- package/sql/AGENTS.md +5 -0
- package/sql/floriday-voorraad-schema.sql +182 -5
|
@@ -1531,6 +1531,7 @@ export type Database = {
|
|
|
1531
1531
|
cart_numbers: {
|
|
1532
1532
|
Row: {
|
|
1533
1533
|
assigned_at: string;
|
|
1534
|
+
cart_id: string | null;
|
|
1534
1535
|
cart_index: number;
|
|
1535
1536
|
cart_number: string;
|
|
1536
1537
|
day_seq: number | null;
|
|
@@ -1544,6 +1545,7 @@ export type Database = {
|
|
|
1544
1545
|
};
|
|
1545
1546
|
Insert: {
|
|
1546
1547
|
assigned_at?: string;
|
|
1548
|
+
cart_id?: string | null;
|
|
1547
1549
|
cart_index: number;
|
|
1548
1550
|
cart_number: string;
|
|
1549
1551
|
day_seq?: number | null;
|
|
@@ -1557,6 +1559,7 @@ export type Database = {
|
|
|
1557
1559
|
};
|
|
1558
1560
|
Update: {
|
|
1559
1561
|
assigned_at?: string;
|
|
1562
|
+
cart_id?: string | null;
|
|
1560
1563
|
cart_index?: number;
|
|
1561
1564
|
cart_number?: string;
|
|
1562
1565
|
day_seq?: number | null;
|
|
@@ -8206,6 +8209,53 @@ export type Database = {
|
|
|
8206
8209
|
};
|
|
8207
8210
|
Relationships: [];
|
|
8208
8211
|
};
|
|
8212
|
+
floriday_packing_mismatches: {
|
|
8213
|
+
Row: {
|
|
8214
|
+
api_value: Json | null;
|
|
8215
|
+
cache_value: Json | null;
|
|
8216
|
+
connection_id: string;
|
|
8217
|
+
details: string | null;
|
|
8218
|
+
detected_at: string;
|
|
8219
|
+
entity: string;
|
|
8220
|
+
floriday_id: string;
|
|
8221
|
+
id: string;
|
|
8222
|
+
last_checked_at: string;
|
|
8223
|
+
resolved_at: string | null;
|
|
8224
|
+
};
|
|
8225
|
+
Insert: {
|
|
8226
|
+
api_value?: Json | null;
|
|
8227
|
+
cache_value?: Json | null;
|
|
8228
|
+
connection_id: string;
|
|
8229
|
+
details?: string | null;
|
|
8230
|
+
detected_at?: string;
|
|
8231
|
+
entity: string;
|
|
8232
|
+
floriday_id: string;
|
|
8233
|
+
id?: string;
|
|
8234
|
+
last_checked_at?: string;
|
|
8235
|
+
resolved_at?: string | null;
|
|
8236
|
+
};
|
|
8237
|
+
Update: {
|
|
8238
|
+
api_value?: Json | null;
|
|
8239
|
+
cache_value?: Json | null;
|
|
8240
|
+
connection_id?: string;
|
|
8241
|
+
details?: string | null;
|
|
8242
|
+
detected_at?: string;
|
|
8243
|
+
entity?: string;
|
|
8244
|
+
floriday_id?: string;
|
|
8245
|
+
id?: string;
|
|
8246
|
+
last_checked_at?: string;
|
|
8247
|
+
resolved_at?: string | null;
|
|
8248
|
+
};
|
|
8249
|
+
Relationships: [
|
|
8250
|
+
{
|
|
8251
|
+
foreignKeyName: "floriday_packing_mismatches_connection_id_fkey";
|
|
8252
|
+
columns: ["connection_id"];
|
|
8253
|
+
isOneToOne: false;
|
|
8254
|
+
referencedRelation: "floriday_connections";
|
|
8255
|
+
referencedColumns: ["id"];
|
|
8256
|
+
}
|
|
8257
|
+
];
|
|
8258
|
+
};
|
|
8209
8259
|
floriday_packings_cache: {
|
|
8210
8260
|
Row: {
|
|
8211
8261
|
connection_id: string;
|
|
@@ -12149,6 +12199,36 @@ export type Database = {
|
|
|
12149
12199
|
};
|
|
12150
12200
|
Relationships: [];
|
|
12151
12201
|
};
|
|
12202
|
+
logistics_belading_bevestigingen: {
|
|
12203
|
+
Row: {
|
|
12204
|
+
bevestigd_door: string | null;
|
|
12205
|
+
bevestigd_op: string;
|
|
12206
|
+
created_at: string;
|
|
12207
|
+
id: string;
|
|
12208
|
+
order_id: string;
|
|
12209
|
+
redenen: string[];
|
|
12210
|
+
verpakking_sleutel: string;
|
|
12211
|
+
};
|
|
12212
|
+
Insert: {
|
|
12213
|
+
bevestigd_door?: string | null;
|
|
12214
|
+
bevestigd_op?: string;
|
|
12215
|
+
created_at?: string;
|
|
12216
|
+
id?: string;
|
|
12217
|
+
order_id: string;
|
|
12218
|
+
redenen?: string[];
|
|
12219
|
+
verpakking_sleutel: string;
|
|
12220
|
+
};
|
|
12221
|
+
Update: {
|
|
12222
|
+
bevestigd_door?: string | null;
|
|
12223
|
+
bevestigd_op?: string;
|
|
12224
|
+
created_at?: string;
|
|
12225
|
+
id?: string;
|
|
12226
|
+
order_id?: string;
|
|
12227
|
+
redenen?: string[];
|
|
12228
|
+
verpakking_sleutel?: string;
|
|
12229
|
+
};
|
|
12230
|
+
Relationships: [];
|
|
12231
|
+
};
|
|
12152
12232
|
logistics_capacity_alerts: {
|
|
12153
12233
|
Row: {
|
|
12154
12234
|
available_minutes: number;
|
|
@@ -21442,6 +21522,85 @@ export type Database = {
|
|
|
21442
21522
|
};
|
|
21443
21523
|
Relationships: [];
|
|
21444
21524
|
};
|
|
21525
|
+
product_packings: {
|
|
21526
|
+
Row: {
|
|
21527
|
+
created_at: string;
|
|
21528
|
+
custom_package_id: string | null;
|
|
21529
|
+
customer_organization_ids: string[];
|
|
21530
|
+
floriday_packing_id: string | null;
|
|
21531
|
+
fust_type_id: string | null;
|
|
21532
|
+
id: string;
|
|
21533
|
+
is_primary: boolean;
|
|
21534
|
+
layers_per_load_carrier: number | null;
|
|
21535
|
+
load_carrier: string | null;
|
|
21536
|
+
packages_per_layer: number | null;
|
|
21537
|
+
pieces_per_package: number | null;
|
|
21538
|
+
product_id: string;
|
|
21539
|
+
sort_order: number;
|
|
21540
|
+
source: string;
|
|
21541
|
+
updated_at: string;
|
|
21542
|
+
vbn_package_code: number | null;
|
|
21543
|
+
};
|
|
21544
|
+
Insert: {
|
|
21545
|
+
created_at?: string;
|
|
21546
|
+
custom_package_id?: string | null;
|
|
21547
|
+
customer_organization_ids?: string[];
|
|
21548
|
+
floriday_packing_id?: string | null;
|
|
21549
|
+
fust_type_id?: string | null;
|
|
21550
|
+
id?: string;
|
|
21551
|
+
is_primary?: boolean;
|
|
21552
|
+
layers_per_load_carrier?: number | null;
|
|
21553
|
+
load_carrier?: string | null;
|
|
21554
|
+
packages_per_layer?: number | null;
|
|
21555
|
+
pieces_per_package?: number | null;
|
|
21556
|
+
product_id: string;
|
|
21557
|
+
sort_order?: number;
|
|
21558
|
+
source?: string;
|
|
21559
|
+
updated_at?: string;
|
|
21560
|
+
vbn_package_code?: number | null;
|
|
21561
|
+
};
|
|
21562
|
+
Update: {
|
|
21563
|
+
created_at?: string;
|
|
21564
|
+
custom_package_id?: string | null;
|
|
21565
|
+
customer_organization_ids?: string[];
|
|
21566
|
+
floriday_packing_id?: string | null;
|
|
21567
|
+
fust_type_id?: string | null;
|
|
21568
|
+
id?: string;
|
|
21569
|
+
is_primary?: boolean;
|
|
21570
|
+
layers_per_load_carrier?: number | null;
|
|
21571
|
+
load_carrier?: string | null;
|
|
21572
|
+
packages_per_layer?: number | null;
|
|
21573
|
+
pieces_per_package?: number | null;
|
|
21574
|
+
product_id?: string;
|
|
21575
|
+
sort_order?: number;
|
|
21576
|
+
source?: string;
|
|
21577
|
+
updated_at?: string;
|
|
21578
|
+
vbn_package_code?: number | null;
|
|
21579
|
+
};
|
|
21580
|
+
Relationships: [
|
|
21581
|
+
{
|
|
21582
|
+
foreignKeyName: "product_packings_fust_type_id_fkey";
|
|
21583
|
+
columns: ["fust_type_id"];
|
|
21584
|
+
isOneToOne: false;
|
|
21585
|
+
referencedRelation: "fust_types";
|
|
21586
|
+
referencedColumns: ["id"];
|
|
21587
|
+
},
|
|
21588
|
+
{
|
|
21589
|
+
foreignKeyName: "product_packings_product_id_fkey";
|
|
21590
|
+
columns: ["product_id"];
|
|
21591
|
+
isOneToOne: false;
|
|
21592
|
+
referencedRelation: "logistics_product_dimensions";
|
|
21593
|
+
referencedColumns: ["product_id"];
|
|
21594
|
+
},
|
|
21595
|
+
{
|
|
21596
|
+
foreignKeyName: "product_packings_product_id_fkey";
|
|
21597
|
+
columns: ["product_id"];
|
|
21598
|
+
isOneToOne: false;
|
|
21599
|
+
referencedRelation: "products";
|
|
21600
|
+
referencedColumns: ["id"];
|
|
21601
|
+
}
|
|
21602
|
+
];
|
|
21603
|
+
};
|
|
21445
21604
|
product_suppliers: {
|
|
21446
21605
|
Row: {
|
|
21447
21606
|
created_at: string;
|
|
@@ -29622,6 +29781,15 @@ export type Database = {
|
|
|
29622
29781
|
};
|
|
29623
29782
|
Returns: Json;
|
|
29624
29783
|
};
|
|
29784
|
+
afh_resolve_cart_id: {
|
|
29785
|
+
Args: {
|
|
29786
|
+
p_cart_index: number;
|
|
29787
|
+
p_given: string;
|
|
29788
|
+
p_order: string;
|
|
29789
|
+
p_source: string;
|
|
29790
|
+
};
|
|
29791
|
+
Returns: string;
|
|
29792
|
+
};
|
|
29625
29793
|
afh_signup_config: {
|
|
29626
29794
|
Args: never;
|
|
29627
29795
|
Returns: Json;
|
|
@@ -30453,6 +30621,8 @@ export type Database = {
|
|
|
30453
30621
|
cart_index: number;
|
|
30454
30622
|
cart_number: string;
|
|
30455
30623
|
cart_number_id: string;
|
|
30624
|
+
country_code: string;
|
|
30625
|
+
crates_on_cart: number;
|
|
30456
30626
|
order_id: string;
|
|
30457
30627
|
order_number: string;
|
|
30458
30628
|
order_source: string;
|
|
@@ -31975,6 +32145,13 @@ export type Database = {
|
|
|
31975
32145
|
Args: never;
|
|
31976
32146
|
Returns: Json;
|
|
31977
32147
|
};
|
|
32148
|
+
layout_voor_document: {
|
|
32149
|
+
Args: {
|
|
32150
|
+
p_documenttype: string;
|
|
32151
|
+
p_order_id: string;
|
|
32152
|
+
};
|
|
32153
|
+
Returns: Json;
|
|
32154
|
+
};
|
|
31978
32155
|
layout_zorg_systeemlayouts: {
|
|
31979
32156
|
Args: never;
|
|
31980
32157
|
Returns: number;
|
|
@@ -32261,6 +32438,14 @@ export type Database = {
|
|
|
32261
32438
|
Args: never;
|
|
32262
32439
|
Returns: number;
|
|
32263
32440
|
};
|
|
32441
|
+
logistics_belading_bevestig: {
|
|
32442
|
+
Args: {
|
|
32443
|
+
p_order_id: string;
|
|
32444
|
+
p_redenen?: string[];
|
|
32445
|
+
p_sleutel: string;
|
|
32446
|
+
};
|
|
32447
|
+
Returns: Json;
|
|
32448
|
+
};
|
|
32264
32449
|
logistics_belading_verstuurder: {
|
|
32265
32450
|
Args: never;
|
|
32266
32451
|
Returns: string;
|
|
@@ -32647,6 +32832,16 @@ export type Database = {
|
|
|
32647
32832
|
order_uuid: string;
|
|
32648
32833
|
}[];
|
|
32649
32834
|
};
|
|
32835
|
+
logistics_cart_seq_dubbel: {
|
|
32836
|
+
Args: {
|
|
32837
|
+
p_order_uuid?: string;
|
|
32838
|
+
};
|
|
32839
|
+
Returns: {
|
|
32840
|
+
cart_ids: string[];
|
|
32841
|
+
cart_index: number;
|
|
32842
|
+
order_uuid: string;
|
|
32843
|
+
}[];
|
|
32844
|
+
};
|
|
32650
32845
|
logistics_cart_slip_plan: {
|
|
32651
32846
|
Args: {
|
|
32652
32847
|
p_order_id: string;
|
|
@@ -33398,6 +33593,12 @@ export type Database = {
|
|
|
33398
33593
|
Args: never;
|
|
33399
33594
|
Returns: Json;
|
|
33400
33595
|
};
|
|
33596
|
+
logistics_floriday_shipping_document: {
|
|
33597
|
+
Args: {
|
|
33598
|
+
p_order_id: string;
|
|
33599
|
+
};
|
|
33600
|
+
Returns: Json;
|
|
33601
|
+
};
|
|
33401
33602
|
logistics_floriday_status_updates_enabled: {
|
|
33402
33603
|
Args: never;
|
|
33403
33604
|
Returns: boolean;
|
|
@@ -33911,6 +34112,15 @@ export type Database = {
|
|
|
33911
34112
|
Args: never;
|
|
33912
34113
|
Returns: Json;
|
|
33913
34114
|
};
|
|
34115
|
+
logistics_own_sticker_count: {
|
|
34116
|
+
Args: {
|
|
34117
|
+
p_ppc_product: number;
|
|
34118
|
+
p_ppc_regel: number;
|
|
34119
|
+
p_quantity: number;
|
|
34120
|
+
p_unit: string;
|
|
34121
|
+
};
|
|
34122
|
+
Returns: number;
|
|
34123
|
+
};
|
|
33914
34124
|
logistics_own_sticker_sync: {
|
|
33915
34125
|
Args: {
|
|
33916
34126
|
p_limit?: number;
|
|
@@ -33924,6 +34134,18 @@ export type Database = {
|
|
|
33924
34134
|
};
|
|
33925
34135
|
Returns: Json;
|
|
33926
34136
|
};
|
|
34137
|
+
logistics_own_traysticker_payload: {
|
|
34138
|
+
Args: {
|
|
34139
|
+
p_id: string;
|
|
34140
|
+
};
|
|
34141
|
+
Returns: Json;
|
|
34142
|
+
};
|
|
34143
|
+
logistics_own_traysticker_sync: {
|
|
34144
|
+
Args: {
|
|
34145
|
+
p_limit?: number;
|
|
34146
|
+
};
|
|
34147
|
+
Returns: Json;
|
|
34148
|
+
};
|
|
33927
34149
|
logistics_packing_autofix: {
|
|
33928
34150
|
Args: {
|
|
33929
34151
|
p_limit?: number;
|
|
@@ -34224,6 +34446,15 @@ export type Database = {
|
|
|
34224
34446
|
Args: never;
|
|
34225
34447
|
Returns: number;
|
|
34226
34448
|
};
|
|
34449
|
+
logistics_plan_queue_dubbel: {
|
|
34450
|
+
Args: never;
|
|
34451
|
+
Returns: {
|
|
34452
|
+
nieuwste: string;
|
|
34453
|
+
open_opdrachten: number;
|
|
34454
|
+
order_id: string;
|
|
34455
|
+
oudste: string;
|
|
34456
|
+
}[];
|
|
34457
|
+
};
|
|
34227
34458
|
logistics_plan_queue_list: {
|
|
34228
34459
|
Args: {
|
|
34229
34460
|
p_limit?: number;
|
|
@@ -34265,6 +34496,13 @@ export type Database = {
|
|
|
34265
34496
|
};
|
|
34266
34497
|
Returns: number;
|
|
34267
34498
|
};
|
|
34499
|
+
logistics_plan_retry_later: {
|
|
34500
|
+
Args: {
|
|
34501
|
+
p_id: string;
|
|
34502
|
+
p_seconds?: number;
|
|
34503
|
+
};
|
|
34504
|
+
Returns: undefined;
|
|
34505
|
+
};
|
|
34268
34506
|
logistics_plan_setting: {
|
|
34269
34507
|
Args: {
|
|
34270
34508
|
p_default: number;
|
|
@@ -35299,6 +35537,15 @@ export type Database = {
|
|
|
35299
35537
|
};
|
|
35300
35538
|
Returns: Json;
|
|
35301
35539
|
};
|
|
35540
|
+
logistics_tray_plants: {
|
|
35541
|
+
Args: {
|
|
35542
|
+
p_fust: number;
|
|
35543
|
+
p_fusten: number;
|
|
35544
|
+
p_ppc: number;
|
|
35545
|
+
p_regel_totaal: number;
|
|
35546
|
+
};
|
|
35547
|
+
Returns: number;
|
|
35548
|
+
};
|
|
35302
35549
|
logistics_try_uuid: {
|
|
35303
35550
|
Args: {
|
|
35304
35551
|
p: string;
|
|
@@ -36303,6 +36550,13 @@ export type Database = {
|
|
|
36303
36550
|
};
|
|
36304
36551
|
Returns: Json;
|
|
36305
36552
|
};
|
|
36553
|
+
pickstation_document_for_order: {
|
|
36554
|
+
Args: {
|
|
36555
|
+
p_queue_item_id: string;
|
|
36556
|
+
p_slug: string;
|
|
36557
|
+
};
|
|
36558
|
+
Returns: Json;
|
|
36559
|
+
};
|
|
36306
36560
|
pickstation_get_orders_raw: {
|
|
36307
36561
|
Args: never;
|
|
36308
36562
|
Returns: Json;
|
|
@@ -36669,6 +36923,34 @@ export type Database = {
|
|
|
36669
36923
|
};
|
|
36670
36924
|
Returns: Record<string, unknown>;
|
|
36671
36925
|
};
|
|
36926
|
+
product_packings_derive: {
|
|
36927
|
+
Args: {
|
|
36928
|
+
p_product_id: string;
|
|
36929
|
+
};
|
|
36930
|
+
Returns: undefined;
|
|
36931
|
+
};
|
|
36932
|
+
product_packings_replace: {
|
|
36933
|
+
Args: {
|
|
36934
|
+
p_packings: Json;
|
|
36935
|
+
p_product_id: string;
|
|
36936
|
+
p_source: string;
|
|
36937
|
+
};
|
|
36938
|
+
Returns: number;
|
|
36939
|
+
};
|
|
36940
|
+
product_packings_sync_from_floriday: {
|
|
36941
|
+
Args: {
|
|
36942
|
+
p_connection_id: string;
|
|
36943
|
+
p_only_existing?: boolean;
|
|
36944
|
+
p_product_ids: string[];
|
|
36945
|
+
};
|
|
36946
|
+
Returns: Json;
|
|
36947
|
+
};
|
|
36948
|
+
product_primary_pieces: {
|
|
36949
|
+
Args: {
|
|
36950
|
+
p_product_id: string;
|
|
36951
|
+
};
|
|
36952
|
+
Returns: number;
|
|
36953
|
+
};
|
|
36672
36954
|
product_set_depth_above: {
|
|
36673
36955
|
Args: {
|
|
36674
36956
|
p_path?: string[];
|