@flowselections/floriday-afhandeling-module 1.0.11 → 1.0.12
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/afhandeling/ControlePage.d.ts +3 -1
- package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/ControlePage.js +6 -2
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +126 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +126 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +126 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +126 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +252 -0
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.d.ts +630 -0
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +630 -0
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +1260 -0
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +126 -0
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/package.json +6 -1
|
@@ -772,6 +772,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
|
|
|
772
772
|
notes: string | null;
|
|
773
773
|
performed_at: string;
|
|
774
774
|
rescheduled_count: number;
|
|
775
|
+
stock_consumed_at: string | null;
|
|
775
776
|
total_carts: number;
|
|
776
777
|
updated_at: string;
|
|
777
778
|
user_id: string;
|
|
@@ -785,6 +786,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
|
|
|
785
786
|
notes?: string | null;
|
|
786
787
|
performed_at?: string;
|
|
787
788
|
rescheduled_count?: number;
|
|
789
|
+
stock_consumed_at?: string | null;
|
|
788
790
|
total_carts?: number;
|
|
789
791
|
updated_at?: string;
|
|
790
792
|
user_id: string;
|
|
@@ -798,6 +800,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
|
|
|
798
800
|
notes?: string | null;
|
|
799
801
|
performed_at?: string;
|
|
800
802
|
rescheduled_count?: number;
|
|
803
|
+
stock_consumed_at?: string | null;
|
|
801
804
|
total_carts?: number;
|
|
802
805
|
updated_at?: string;
|
|
803
806
|
user_id?: string;
|
|
@@ -6556,6 +6559,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
|
|
|
6556
6559
|
purchase_price: number | null;
|
|
6557
6560
|
quantity: number;
|
|
6558
6561
|
sale_price: number | null;
|
|
6562
|
+
trade_item_key: string | null;
|
|
6559
6563
|
unit: string;
|
|
6560
6564
|
updated_at: string;
|
|
6561
6565
|
weight: string | null;
|
|
@@ -6578,6 +6582,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
|
|
|
6578
6582
|
purchase_price?: number | null;
|
|
6579
6583
|
quantity?: number;
|
|
6580
6584
|
sale_price?: number | null;
|
|
6585
|
+
trade_item_key?: string | null;
|
|
6581
6586
|
unit?: string;
|
|
6582
6587
|
updated_at?: string;
|
|
6583
6588
|
weight?: string | null;
|
|
@@ -6600,6 +6605,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
|
|
|
6600
6605
|
purchase_price?: number | null;
|
|
6601
6606
|
quantity?: number;
|
|
6602
6607
|
sale_price?: number | null;
|
|
6608
|
+
trade_item_key?: string | null;
|
|
6603
6609
|
unit?: string;
|
|
6604
6610
|
updated_at?: string;
|
|
6605
6611
|
weight?: string | null;
|
|
@@ -7419,6 +7425,60 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
|
|
|
7419
7425
|
};
|
|
7420
7426
|
Relationships: [];
|
|
7421
7427
|
};
|
|
7428
|
+
stock_mutation_log: {
|
|
7429
|
+
Row: {
|
|
7430
|
+
connection_id: string | null;
|
|
7431
|
+
created_at: string;
|
|
7432
|
+
created_by: string | null;
|
|
7433
|
+
id: string;
|
|
7434
|
+
mutation_type: string;
|
|
7435
|
+
order_id: string | null;
|
|
7436
|
+
order_item_id: string | null;
|
|
7437
|
+
order_source: string | null;
|
|
7438
|
+
physical_after: number | null;
|
|
7439
|
+
physical_before: number | null;
|
|
7440
|
+
qty_delta: number;
|
|
7441
|
+
reason: string | null;
|
|
7442
|
+
reserved_after: number | null;
|
|
7443
|
+
reserved_before: number | null;
|
|
7444
|
+
trade_item_key: string;
|
|
7445
|
+
};
|
|
7446
|
+
Insert: {
|
|
7447
|
+
connection_id?: string | null;
|
|
7448
|
+
created_at?: string;
|
|
7449
|
+
created_by?: string | null;
|
|
7450
|
+
id?: string;
|
|
7451
|
+
mutation_type: string;
|
|
7452
|
+
order_id?: string | null;
|
|
7453
|
+
order_item_id?: string | null;
|
|
7454
|
+
order_source?: string | null;
|
|
7455
|
+
physical_after?: number | null;
|
|
7456
|
+
physical_before?: number | null;
|
|
7457
|
+
qty_delta: number;
|
|
7458
|
+
reason?: string | null;
|
|
7459
|
+
reserved_after?: number | null;
|
|
7460
|
+
reserved_before?: number | null;
|
|
7461
|
+
trade_item_key: string;
|
|
7462
|
+
};
|
|
7463
|
+
Update: {
|
|
7464
|
+
connection_id?: string | null;
|
|
7465
|
+
created_at?: string;
|
|
7466
|
+
created_by?: string | null;
|
|
7467
|
+
id?: string;
|
|
7468
|
+
mutation_type?: string;
|
|
7469
|
+
order_id?: string | null;
|
|
7470
|
+
order_item_id?: string | null;
|
|
7471
|
+
order_source?: string | null;
|
|
7472
|
+
physical_after?: number | null;
|
|
7473
|
+
physical_before?: number | null;
|
|
7474
|
+
qty_delta?: number;
|
|
7475
|
+
reason?: string | null;
|
|
7476
|
+
reserved_after?: number | null;
|
|
7477
|
+
reserved_before?: number | null;
|
|
7478
|
+
trade_item_key?: string;
|
|
7479
|
+
};
|
|
7480
|
+
Relationships: [];
|
|
7481
|
+
};
|
|
7422
7482
|
supplier_products: {
|
|
7423
7483
|
Row: {
|
|
7424
7484
|
article_number: string | null;
|
|
@@ -9280,6 +9340,54 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
|
|
|
9280
9340
|
};
|
|
9281
9341
|
Returns: number;
|
|
9282
9342
|
};
|
|
9343
|
+
afh_city_code: {
|
|
9344
|
+
Args: {
|
|
9345
|
+
_city: string;
|
|
9346
|
+
_country: string;
|
|
9347
|
+
};
|
|
9348
|
+
Returns: string;
|
|
9349
|
+
};
|
|
9350
|
+
afh_normalize_country: {
|
|
9351
|
+
Args: {
|
|
9352
|
+
_raw: string;
|
|
9353
|
+
};
|
|
9354
|
+
Returns: string;
|
|
9355
|
+
};
|
|
9356
|
+
afh_normalize_nl_province: {
|
|
9357
|
+
Args: {
|
|
9358
|
+
_raw: string;
|
|
9359
|
+
};
|
|
9360
|
+
Returns: string;
|
|
9361
|
+
};
|
|
9362
|
+
afh_subtract_workdays: {
|
|
9363
|
+
Args: {
|
|
9364
|
+
_date: string;
|
|
9365
|
+
_days: number;
|
|
9366
|
+
};
|
|
9367
|
+
Returns: string;
|
|
9368
|
+
};
|
|
9369
|
+
apply_stock_consumption: {
|
|
9370
|
+
Args: {
|
|
9371
|
+
p_order_id: string;
|
|
9372
|
+
p_order_item_id: string;
|
|
9373
|
+
p_qty: number;
|
|
9374
|
+
p_reason: string;
|
|
9375
|
+
p_source: string;
|
|
9376
|
+
p_trade_item_key: string;
|
|
9377
|
+
};
|
|
9378
|
+
Returns: undefined;
|
|
9379
|
+
};
|
|
9380
|
+
apply_stock_reservation: {
|
|
9381
|
+
Args: {
|
|
9382
|
+
p_order_id: string;
|
|
9383
|
+
p_order_item_id: string;
|
|
9384
|
+
p_qty: number;
|
|
9385
|
+
p_reason: string;
|
|
9386
|
+
p_source: string;
|
|
9387
|
+
p_trade_item_key: string;
|
|
9388
|
+
};
|
|
9389
|
+
Returns: undefined;
|
|
9390
|
+
};
|
|
9283
9391
|
assign_cart_numbers: {
|
|
9284
9392
|
Args: {
|
|
9285
9393
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -9303,6 +9411,12 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
|
|
|
9303
9411
|
order_number: string;
|
|
9304
9412
|
}[];
|
|
9305
9413
|
};
|
|
9414
|
+
backfill_open_order_reservations: {
|
|
9415
|
+
Args: never;
|
|
9416
|
+
Returns: {
|
|
9417
|
+
processed_items: number;
|
|
9418
|
+
}[];
|
|
9419
|
+
};
|
|
9306
9420
|
call_exact_route: {
|
|
9307
9421
|
Args: {
|
|
9308
9422
|
path: string;
|
|
@@ -9352,6 +9466,12 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
|
|
|
9352
9466
|
table_name: string;
|
|
9353
9467
|
}[];
|
|
9354
9468
|
};
|
|
9469
|
+
dispatch_carrier_signups_sql: {
|
|
9470
|
+
Args: {
|
|
9471
|
+
_catchup?: string;
|
|
9472
|
+
};
|
|
9473
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9474
|
+
};
|
|
9355
9475
|
email_auth_decrypt: {
|
|
9356
9476
|
Args: {
|
|
9357
9477
|
cipher: string;
|
|
@@ -9424,6 +9544,12 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
|
|
|
9424
9544
|
};
|
|
9425
9545
|
Returns: boolean;
|
|
9426
9546
|
};
|
|
9547
|
+
find_trade_item_key_by_name: {
|
|
9548
|
+
Args: {
|
|
9549
|
+
p_name: string;
|
|
9550
|
+
};
|
|
9551
|
+
Returns: string;
|
|
9552
|
+
};
|
|
9427
9553
|
format_cart_number: {
|
|
9428
9554
|
Args: {
|
|
9429
9555
|
p_pick_date: string;
|
|
@@ -10691,6 +10817,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
|
|
|
10691
10817
|
notes: string | null;
|
|
10692
10818
|
performed_at: string;
|
|
10693
10819
|
rescheduled_count: number;
|
|
10820
|
+
stock_consumed_at: string | null;
|
|
10694
10821
|
total_carts: number;
|
|
10695
10822
|
updated_at: string;
|
|
10696
10823
|
user_id: string;
|
|
@@ -10704,6 +10831,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
|
|
|
10704
10831
|
notes?: string | null;
|
|
10705
10832
|
performed_at?: string;
|
|
10706
10833
|
rescheduled_count?: number;
|
|
10834
|
+
stock_consumed_at?: string | null;
|
|
10707
10835
|
total_carts?: number;
|
|
10708
10836
|
updated_at?: string;
|
|
10709
10837
|
user_id: string;
|
|
@@ -10717,6 +10845,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
|
|
|
10717
10845
|
notes?: string | null;
|
|
10718
10846
|
performed_at?: string;
|
|
10719
10847
|
rescheduled_count?: number;
|
|
10848
|
+
stock_consumed_at?: string | null;
|
|
10720
10849
|
total_carts?: number;
|
|
10721
10850
|
updated_at?: string;
|
|
10722
10851
|
user_id?: string;
|
|
@@ -16475,6 +16604,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
|
|
|
16475
16604
|
purchase_price: number | null;
|
|
16476
16605
|
quantity: number;
|
|
16477
16606
|
sale_price: number | null;
|
|
16607
|
+
trade_item_key: string | null;
|
|
16478
16608
|
unit: string;
|
|
16479
16609
|
updated_at: string;
|
|
16480
16610
|
weight: string | null;
|
|
@@ -16497,6 +16627,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
|
|
|
16497
16627
|
purchase_price?: number | null;
|
|
16498
16628
|
quantity?: number;
|
|
16499
16629
|
sale_price?: number | null;
|
|
16630
|
+
trade_item_key?: string | null;
|
|
16500
16631
|
unit?: string;
|
|
16501
16632
|
updated_at?: string;
|
|
16502
16633
|
weight?: string | null;
|
|
@@ -16519,6 +16650,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
|
|
|
16519
16650
|
purchase_price?: number | null;
|
|
16520
16651
|
quantity?: number;
|
|
16521
16652
|
sale_price?: number | null;
|
|
16653
|
+
trade_item_key?: string | null;
|
|
16522
16654
|
unit?: string;
|
|
16523
16655
|
updated_at?: string;
|
|
16524
16656
|
weight?: string | null;
|
|
@@ -17338,6 +17470,60 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
|
|
|
17338
17470
|
};
|
|
17339
17471
|
Relationships: [];
|
|
17340
17472
|
};
|
|
17473
|
+
stock_mutation_log: {
|
|
17474
|
+
Row: {
|
|
17475
|
+
connection_id: string | null;
|
|
17476
|
+
created_at: string;
|
|
17477
|
+
created_by: string | null;
|
|
17478
|
+
id: string;
|
|
17479
|
+
mutation_type: string;
|
|
17480
|
+
order_id: string | null;
|
|
17481
|
+
order_item_id: string | null;
|
|
17482
|
+
order_source: string | null;
|
|
17483
|
+
physical_after: number | null;
|
|
17484
|
+
physical_before: number | null;
|
|
17485
|
+
qty_delta: number;
|
|
17486
|
+
reason: string | null;
|
|
17487
|
+
reserved_after: number | null;
|
|
17488
|
+
reserved_before: number | null;
|
|
17489
|
+
trade_item_key: string;
|
|
17490
|
+
};
|
|
17491
|
+
Insert: {
|
|
17492
|
+
connection_id?: string | null;
|
|
17493
|
+
created_at?: string;
|
|
17494
|
+
created_by?: string | null;
|
|
17495
|
+
id?: string;
|
|
17496
|
+
mutation_type: string;
|
|
17497
|
+
order_id?: string | null;
|
|
17498
|
+
order_item_id?: string | null;
|
|
17499
|
+
order_source?: string | null;
|
|
17500
|
+
physical_after?: number | null;
|
|
17501
|
+
physical_before?: number | null;
|
|
17502
|
+
qty_delta: number;
|
|
17503
|
+
reason?: string | null;
|
|
17504
|
+
reserved_after?: number | null;
|
|
17505
|
+
reserved_before?: number | null;
|
|
17506
|
+
trade_item_key: string;
|
|
17507
|
+
};
|
|
17508
|
+
Update: {
|
|
17509
|
+
connection_id?: string | null;
|
|
17510
|
+
created_at?: string;
|
|
17511
|
+
created_by?: string | null;
|
|
17512
|
+
id?: string;
|
|
17513
|
+
mutation_type?: string;
|
|
17514
|
+
order_id?: string | null;
|
|
17515
|
+
order_item_id?: string | null;
|
|
17516
|
+
order_source?: string | null;
|
|
17517
|
+
physical_after?: number | null;
|
|
17518
|
+
physical_before?: number | null;
|
|
17519
|
+
qty_delta?: number;
|
|
17520
|
+
reason?: string | null;
|
|
17521
|
+
reserved_after?: number | null;
|
|
17522
|
+
reserved_before?: number | null;
|
|
17523
|
+
trade_item_key?: string;
|
|
17524
|
+
};
|
|
17525
|
+
Relationships: [];
|
|
17526
|
+
};
|
|
17341
17527
|
supplier_products: {
|
|
17342
17528
|
Row: {
|
|
17343
17529
|
article_number: string | null;
|
|
@@ -19199,6 +19385,54 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
|
|
|
19199
19385
|
};
|
|
19200
19386
|
Returns: number;
|
|
19201
19387
|
};
|
|
19388
|
+
afh_city_code: {
|
|
19389
|
+
Args: {
|
|
19390
|
+
_city: string;
|
|
19391
|
+
_country: string;
|
|
19392
|
+
};
|
|
19393
|
+
Returns: string;
|
|
19394
|
+
};
|
|
19395
|
+
afh_normalize_country: {
|
|
19396
|
+
Args: {
|
|
19397
|
+
_raw: string;
|
|
19398
|
+
};
|
|
19399
|
+
Returns: string;
|
|
19400
|
+
};
|
|
19401
|
+
afh_normalize_nl_province: {
|
|
19402
|
+
Args: {
|
|
19403
|
+
_raw: string;
|
|
19404
|
+
};
|
|
19405
|
+
Returns: string;
|
|
19406
|
+
};
|
|
19407
|
+
afh_subtract_workdays: {
|
|
19408
|
+
Args: {
|
|
19409
|
+
_date: string;
|
|
19410
|
+
_days: number;
|
|
19411
|
+
};
|
|
19412
|
+
Returns: string;
|
|
19413
|
+
};
|
|
19414
|
+
apply_stock_consumption: {
|
|
19415
|
+
Args: {
|
|
19416
|
+
p_order_id: string;
|
|
19417
|
+
p_order_item_id: string;
|
|
19418
|
+
p_qty: number;
|
|
19419
|
+
p_reason: string;
|
|
19420
|
+
p_source: string;
|
|
19421
|
+
p_trade_item_key: string;
|
|
19422
|
+
};
|
|
19423
|
+
Returns: undefined;
|
|
19424
|
+
};
|
|
19425
|
+
apply_stock_reservation: {
|
|
19426
|
+
Args: {
|
|
19427
|
+
p_order_id: string;
|
|
19428
|
+
p_order_item_id: string;
|
|
19429
|
+
p_qty: number;
|
|
19430
|
+
p_reason: string;
|
|
19431
|
+
p_source: string;
|
|
19432
|
+
p_trade_item_key: string;
|
|
19433
|
+
};
|
|
19434
|
+
Returns: undefined;
|
|
19435
|
+
};
|
|
19202
19436
|
assign_cart_numbers: {
|
|
19203
19437
|
Args: {
|
|
19204
19438
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -19222,6 +19456,12 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
|
|
|
19222
19456
|
order_number: string;
|
|
19223
19457
|
}[];
|
|
19224
19458
|
};
|
|
19459
|
+
backfill_open_order_reservations: {
|
|
19460
|
+
Args: never;
|
|
19461
|
+
Returns: {
|
|
19462
|
+
processed_items: number;
|
|
19463
|
+
}[];
|
|
19464
|
+
};
|
|
19225
19465
|
call_exact_route: {
|
|
19226
19466
|
Args: {
|
|
19227
19467
|
path: string;
|
|
@@ -19271,6 +19511,12 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
|
|
|
19271
19511
|
table_name: string;
|
|
19272
19512
|
}[];
|
|
19273
19513
|
};
|
|
19514
|
+
dispatch_carrier_signups_sql: {
|
|
19515
|
+
Args: {
|
|
19516
|
+
_catchup?: string;
|
|
19517
|
+
};
|
|
19518
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19519
|
+
};
|
|
19274
19520
|
email_auth_decrypt: {
|
|
19275
19521
|
Args: {
|
|
19276
19522
|
cipher: string;
|
|
@@ -19343,6 +19589,12 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
|
|
|
19343
19589
|
};
|
|
19344
19590
|
Returns: boolean;
|
|
19345
19591
|
};
|
|
19592
|
+
find_trade_item_key_by_name: {
|
|
19593
|
+
Args: {
|
|
19594
|
+
p_name: string;
|
|
19595
|
+
};
|
|
19596
|
+
Returns: string;
|
|
19597
|
+
};
|
|
19346
19598
|
format_cart_number: {
|
|
19347
19599
|
Args: {
|
|
19348
19600
|
p_pick_date: string;
|
|
@@ -20609,6 +20861,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
|
|
|
20609
20861
|
notes: string | null;
|
|
20610
20862
|
performed_at: string;
|
|
20611
20863
|
rescheduled_count: number;
|
|
20864
|
+
stock_consumed_at: string | null;
|
|
20612
20865
|
total_carts: number;
|
|
20613
20866
|
updated_at: string;
|
|
20614
20867
|
user_id: string;
|
|
@@ -20622,6 +20875,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
|
|
|
20622
20875
|
notes?: string | null;
|
|
20623
20876
|
performed_at?: string;
|
|
20624
20877
|
rescheduled_count?: number;
|
|
20878
|
+
stock_consumed_at?: string | null;
|
|
20625
20879
|
total_carts?: number;
|
|
20626
20880
|
updated_at?: string;
|
|
20627
20881
|
user_id: string;
|
|
@@ -20635,6 +20889,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
|
|
|
20635
20889
|
notes?: string | null;
|
|
20636
20890
|
performed_at?: string;
|
|
20637
20891
|
rescheduled_count?: number;
|
|
20892
|
+
stock_consumed_at?: string | null;
|
|
20638
20893
|
total_carts?: number;
|
|
20639
20894
|
updated_at?: string;
|
|
20640
20895
|
user_id?: string;
|
|
@@ -26393,6 +26648,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
|
|
|
26393
26648
|
purchase_price: number | null;
|
|
26394
26649
|
quantity: number;
|
|
26395
26650
|
sale_price: number | null;
|
|
26651
|
+
trade_item_key: string | null;
|
|
26396
26652
|
unit: string;
|
|
26397
26653
|
updated_at: string;
|
|
26398
26654
|
weight: string | null;
|
|
@@ -26415,6 +26671,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
|
|
|
26415
26671
|
purchase_price?: number | null;
|
|
26416
26672
|
quantity?: number;
|
|
26417
26673
|
sale_price?: number | null;
|
|
26674
|
+
trade_item_key?: string | null;
|
|
26418
26675
|
unit?: string;
|
|
26419
26676
|
updated_at?: string;
|
|
26420
26677
|
weight?: string | null;
|
|
@@ -26437,6 +26694,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
|
|
|
26437
26694
|
purchase_price?: number | null;
|
|
26438
26695
|
quantity?: number;
|
|
26439
26696
|
sale_price?: number | null;
|
|
26697
|
+
trade_item_key?: string | null;
|
|
26440
26698
|
unit?: string;
|
|
26441
26699
|
updated_at?: string;
|
|
26442
26700
|
weight?: string | null;
|
|
@@ -27256,6 +27514,60 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
|
|
|
27256
27514
|
};
|
|
27257
27515
|
Relationships: [];
|
|
27258
27516
|
};
|
|
27517
|
+
stock_mutation_log: {
|
|
27518
|
+
Row: {
|
|
27519
|
+
connection_id: string | null;
|
|
27520
|
+
created_at: string;
|
|
27521
|
+
created_by: string | null;
|
|
27522
|
+
id: string;
|
|
27523
|
+
mutation_type: string;
|
|
27524
|
+
order_id: string | null;
|
|
27525
|
+
order_item_id: string | null;
|
|
27526
|
+
order_source: string | null;
|
|
27527
|
+
physical_after: number | null;
|
|
27528
|
+
physical_before: number | null;
|
|
27529
|
+
qty_delta: number;
|
|
27530
|
+
reason: string | null;
|
|
27531
|
+
reserved_after: number | null;
|
|
27532
|
+
reserved_before: number | null;
|
|
27533
|
+
trade_item_key: string;
|
|
27534
|
+
};
|
|
27535
|
+
Insert: {
|
|
27536
|
+
connection_id?: string | null;
|
|
27537
|
+
created_at?: string;
|
|
27538
|
+
created_by?: string | null;
|
|
27539
|
+
id?: string;
|
|
27540
|
+
mutation_type: string;
|
|
27541
|
+
order_id?: string | null;
|
|
27542
|
+
order_item_id?: string | null;
|
|
27543
|
+
order_source?: string | null;
|
|
27544
|
+
physical_after?: number | null;
|
|
27545
|
+
physical_before?: number | null;
|
|
27546
|
+
qty_delta: number;
|
|
27547
|
+
reason?: string | null;
|
|
27548
|
+
reserved_after?: number | null;
|
|
27549
|
+
reserved_before?: number | null;
|
|
27550
|
+
trade_item_key: string;
|
|
27551
|
+
};
|
|
27552
|
+
Update: {
|
|
27553
|
+
connection_id?: string | null;
|
|
27554
|
+
created_at?: string;
|
|
27555
|
+
created_by?: string | null;
|
|
27556
|
+
id?: string;
|
|
27557
|
+
mutation_type?: string;
|
|
27558
|
+
order_id?: string | null;
|
|
27559
|
+
order_item_id?: string | null;
|
|
27560
|
+
order_source?: string | null;
|
|
27561
|
+
physical_after?: number | null;
|
|
27562
|
+
physical_before?: number | null;
|
|
27563
|
+
qty_delta?: number;
|
|
27564
|
+
reason?: string | null;
|
|
27565
|
+
reserved_after?: number | null;
|
|
27566
|
+
reserved_before?: number | null;
|
|
27567
|
+
trade_item_key?: string;
|
|
27568
|
+
};
|
|
27569
|
+
Relationships: [];
|
|
27570
|
+
};
|
|
27259
27571
|
supplier_products: {
|
|
27260
27572
|
Row: {
|
|
27261
27573
|
article_number: string | null;
|
|
@@ -29117,6 +29429,54 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
|
|
|
29117
29429
|
};
|
|
29118
29430
|
Returns: number;
|
|
29119
29431
|
};
|
|
29432
|
+
afh_city_code: {
|
|
29433
|
+
Args: {
|
|
29434
|
+
_city: string;
|
|
29435
|
+
_country: string;
|
|
29436
|
+
};
|
|
29437
|
+
Returns: string;
|
|
29438
|
+
};
|
|
29439
|
+
afh_normalize_country: {
|
|
29440
|
+
Args: {
|
|
29441
|
+
_raw: string;
|
|
29442
|
+
};
|
|
29443
|
+
Returns: string;
|
|
29444
|
+
};
|
|
29445
|
+
afh_normalize_nl_province: {
|
|
29446
|
+
Args: {
|
|
29447
|
+
_raw: string;
|
|
29448
|
+
};
|
|
29449
|
+
Returns: string;
|
|
29450
|
+
};
|
|
29451
|
+
afh_subtract_workdays: {
|
|
29452
|
+
Args: {
|
|
29453
|
+
_date: string;
|
|
29454
|
+
_days: number;
|
|
29455
|
+
};
|
|
29456
|
+
Returns: string;
|
|
29457
|
+
};
|
|
29458
|
+
apply_stock_consumption: {
|
|
29459
|
+
Args: {
|
|
29460
|
+
p_order_id: string;
|
|
29461
|
+
p_order_item_id: string;
|
|
29462
|
+
p_qty: number;
|
|
29463
|
+
p_reason: string;
|
|
29464
|
+
p_source: string;
|
|
29465
|
+
p_trade_item_key: string;
|
|
29466
|
+
};
|
|
29467
|
+
Returns: undefined;
|
|
29468
|
+
};
|
|
29469
|
+
apply_stock_reservation: {
|
|
29470
|
+
Args: {
|
|
29471
|
+
p_order_id: string;
|
|
29472
|
+
p_order_item_id: string;
|
|
29473
|
+
p_qty: number;
|
|
29474
|
+
p_reason: string;
|
|
29475
|
+
p_source: string;
|
|
29476
|
+
p_trade_item_key: string;
|
|
29477
|
+
};
|
|
29478
|
+
Returns: undefined;
|
|
29479
|
+
};
|
|
29120
29480
|
assign_cart_numbers: {
|
|
29121
29481
|
Args: {
|
|
29122
29482
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -29140,6 +29500,12 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
|
|
|
29140
29500
|
order_number: string;
|
|
29141
29501
|
}[];
|
|
29142
29502
|
};
|
|
29503
|
+
backfill_open_order_reservations: {
|
|
29504
|
+
Args: never;
|
|
29505
|
+
Returns: {
|
|
29506
|
+
processed_items: number;
|
|
29507
|
+
}[];
|
|
29508
|
+
};
|
|
29143
29509
|
call_exact_route: {
|
|
29144
29510
|
Args: {
|
|
29145
29511
|
path: string;
|
|
@@ -29189,6 +29555,12 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
|
|
|
29189
29555
|
table_name: string;
|
|
29190
29556
|
}[];
|
|
29191
29557
|
};
|
|
29558
|
+
dispatch_carrier_signups_sql: {
|
|
29559
|
+
Args: {
|
|
29560
|
+
_catchup?: string;
|
|
29561
|
+
};
|
|
29562
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29563
|
+
};
|
|
29192
29564
|
email_auth_decrypt: {
|
|
29193
29565
|
Args: {
|
|
29194
29566
|
cipher: string;
|
|
@@ -29261,6 +29633,12 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
|
|
|
29261
29633
|
};
|
|
29262
29634
|
Returns: boolean;
|
|
29263
29635
|
};
|
|
29636
|
+
find_trade_item_key_by_name: {
|
|
29637
|
+
Args: {
|
|
29638
|
+
p_name: string;
|
|
29639
|
+
};
|
|
29640
|
+
Returns: string;
|
|
29641
|
+
};
|
|
29264
29642
|
format_cart_number: {
|
|
29265
29643
|
Args: {
|
|
29266
29644
|
p_pick_date: string;
|
|
@@ -30530,6 +30908,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
|
|
|
30530
30908
|
notes: string | null;
|
|
30531
30909
|
performed_at: string;
|
|
30532
30910
|
rescheduled_count: number;
|
|
30911
|
+
stock_consumed_at: string | null;
|
|
30533
30912
|
total_carts: number;
|
|
30534
30913
|
updated_at: string;
|
|
30535
30914
|
user_id: string;
|
|
@@ -30543,6 +30922,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
|
|
|
30543
30922
|
notes?: string | null;
|
|
30544
30923
|
performed_at?: string;
|
|
30545
30924
|
rescheduled_count?: number;
|
|
30925
|
+
stock_consumed_at?: string | null;
|
|
30546
30926
|
total_carts?: number;
|
|
30547
30927
|
updated_at?: string;
|
|
30548
30928
|
user_id: string;
|
|
@@ -30556,6 +30936,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
|
|
|
30556
30936
|
notes?: string | null;
|
|
30557
30937
|
performed_at?: string;
|
|
30558
30938
|
rescheduled_count?: number;
|
|
30939
|
+
stock_consumed_at?: string | null;
|
|
30559
30940
|
total_carts?: number;
|
|
30560
30941
|
updated_at?: string;
|
|
30561
30942
|
user_id?: string;
|
|
@@ -36314,6 +36695,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
|
|
|
36314
36695
|
purchase_price: number | null;
|
|
36315
36696
|
quantity: number;
|
|
36316
36697
|
sale_price: number | null;
|
|
36698
|
+
trade_item_key: string | null;
|
|
36317
36699
|
unit: string;
|
|
36318
36700
|
updated_at: string;
|
|
36319
36701
|
weight: string | null;
|
|
@@ -36336,6 +36718,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
|
|
|
36336
36718
|
purchase_price?: number | null;
|
|
36337
36719
|
quantity?: number;
|
|
36338
36720
|
sale_price?: number | null;
|
|
36721
|
+
trade_item_key?: string | null;
|
|
36339
36722
|
unit?: string;
|
|
36340
36723
|
updated_at?: string;
|
|
36341
36724
|
weight?: string | null;
|
|
@@ -36358,6 +36741,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
|
|
|
36358
36741
|
purchase_price?: number | null;
|
|
36359
36742
|
quantity?: number;
|
|
36360
36743
|
sale_price?: number | null;
|
|
36744
|
+
trade_item_key?: string | null;
|
|
36361
36745
|
unit?: string;
|
|
36362
36746
|
updated_at?: string;
|
|
36363
36747
|
weight?: string | null;
|
|
@@ -37177,6 +37561,60 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
|
|
|
37177
37561
|
};
|
|
37178
37562
|
Relationships: [];
|
|
37179
37563
|
};
|
|
37564
|
+
stock_mutation_log: {
|
|
37565
|
+
Row: {
|
|
37566
|
+
connection_id: string | null;
|
|
37567
|
+
created_at: string;
|
|
37568
|
+
created_by: string | null;
|
|
37569
|
+
id: string;
|
|
37570
|
+
mutation_type: string;
|
|
37571
|
+
order_id: string | null;
|
|
37572
|
+
order_item_id: string | null;
|
|
37573
|
+
order_source: string | null;
|
|
37574
|
+
physical_after: number | null;
|
|
37575
|
+
physical_before: number | null;
|
|
37576
|
+
qty_delta: number;
|
|
37577
|
+
reason: string | null;
|
|
37578
|
+
reserved_after: number | null;
|
|
37579
|
+
reserved_before: number | null;
|
|
37580
|
+
trade_item_key: string;
|
|
37581
|
+
};
|
|
37582
|
+
Insert: {
|
|
37583
|
+
connection_id?: string | null;
|
|
37584
|
+
created_at?: string;
|
|
37585
|
+
created_by?: string | null;
|
|
37586
|
+
id?: string;
|
|
37587
|
+
mutation_type: string;
|
|
37588
|
+
order_id?: string | null;
|
|
37589
|
+
order_item_id?: string | null;
|
|
37590
|
+
order_source?: string | null;
|
|
37591
|
+
physical_after?: number | null;
|
|
37592
|
+
physical_before?: number | null;
|
|
37593
|
+
qty_delta: number;
|
|
37594
|
+
reason?: string | null;
|
|
37595
|
+
reserved_after?: number | null;
|
|
37596
|
+
reserved_before?: number | null;
|
|
37597
|
+
trade_item_key: string;
|
|
37598
|
+
};
|
|
37599
|
+
Update: {
|
|
37600
|
+
connection_id?: string | null;
|
|
37601
|
+
created_at?: string;
|
|
37602
|
+
created_by?: string | null;
|
|
37603
|
+
id?: string;
|
|
37604
|
+
mutation_type?: string;
|
|
37605
|
+
order_id?: string | null;
|
|
37606
|
+
order_item_id?: string | null;
|
|
37607
|
+
order_source?: string | null;
|
|
37608
|
+
physical_after?: number | null;
|
|
37609
|
+
physical_before?: number | null;
|
|
37610
|
+
qty_delta?: number;
|
|
37611
|
+
reason?: string | null;
|
|
37612
|
+
reserved_after?: number | null;
|
|
37613
|
+
reserved_before?: number | null;
|
|
37614
|
+
trade_item_key?: string;
|
|
37615
|
+
};
|
|
37616
|
+
Relationships: [];
|
|
37617
|
+
};
|
|
37180
37618
|
supplier_products: {
|
|
37181
37619
|
Row: {
|
|
37182
37620
|
article_number: string | null;
|
|
@@ -39038,6 +39476,54 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
|
|
|
39038
39476
|
};
|
|
39039
39477
|
Returns: number;
|
|
39040
39478
|
};
|
|
39479
|
+
afh_city_code: {
|
|
39480
|
+
Args: {
|
|
39481
|
+
_city: string;
|
|
39482
|
+
_country: string;
|
|
39483
|
+
};
|
|
39484
|
+
Returns: string;
|
|
39485
|
+
};
|
|
39486
|
+
afh_normalize_country: {
|
|
39487
|
+
Args: {
|
|
39488
|
+
_raw: string;
|
|
39489
|
+
};
|
|
39490
|
+
Returns: string;
|
|
39491
|
+
};
|
|
39492
|
+
afh_normalize_nl_province: {
|
|
39493
|
+
Args: {
|
|
39494
|
+
_raw: string;
|
|
39495
|
+
};
|
|
39496
|
+
Returns: string;
|
|
39497
|
+
};
|
|
39498
|
+
afh_subtract_workdays: {
|
|
39499
|
+
Args: {
|
|
39500
|
+
_date: string;
|
|
39501
|
+
_days: number;
|
|
39502
|
+
};
|
|
39503
|
+
Returns: string;
|
|
39504
|
+
};
|
|
39505
|
+
apply_stock_consumption: {
|
|
39506
|
+
Args: {
|
|
39507
|
+
p_order_id: string;
|
|
39508
|
+
p_order_item_id: string;
|
|
39509
|
+
p_qty: number;
|
|
39510
|
+
p_reason: string;
|
|
39511
|
+
p_source: string;
|
|
39512
|
+
p_trade_item_key: string;
|
|
39513
|
+
};
|
|
39514
|
+
Returns: undefined;
|
|
39515
|
+
};
|
|
39516
|
+
apply_stock_reservation: {
|
|
39517
|
+
Args: {
|
|
39518
|
+
p_order_id: string;
|
|
39519
|
+
p_order_item_id: string;
|
|
39520
|
+
p_qty: number;
|
|
39521
|
+
p_reason: string;
|
|
39522
|
+
p_source: string;
|
|
39523
|
+
p_trade_item_key: string;
|
|
39524
|
+
};
|
|
39525
|
+
Returns: undefined;
|
|
39526
|
+
};
|
|
39041
39527
|
assign_cart_numbers: {
|
|
39042
39528
|
Args: {
|
|
39043
39529
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -39061,6 +39547,12 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
|
|
|
39061
39547
|
order_number: string;
|
|
39062
39548
|
}[];
|
|
39063
39549
|
};
|
|
39550
|
+
backfill_open_order_reservations: {
|
|
39551
|
+
Args: never;
|
|
39552
|
+
Returns: {
|
|
39553
|
+
processed_items: number;
|
|
39554
|
+
}[];
|
|
39555
|
+
};
|
|
39064
39556
|
call_exact_route: {
|
|
39065
39557
|
Args: {
|
|
39066
39558
|
path: string;
|
|
@@ -39110,6 +39602,12 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
|
|
|
39110
39602
|
table_name: string;
|
|
39111
39603
|
}[];
|
|
39112
39604
|
};
|
|
39605
|
+
dispatch_carrier_signups_sql: {
|
|
39606
|
+
Args: {
|
|
39607
|
+
_catchup?: string;
|
|
39608
|
+
};
|
|
39609
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
39610
|
+
};
|
|
39113
39611
|
email_auth_decrypt: {
|
|
39114
39612
|
Args: {
|
|
39115
39613
|
cipher: string;
|
|
@@ -39182,6 +39680,12 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
|
|
|
39182
39680
|
};
|
|
39183
39681
|
Returns: boolean;
|
|
39184
39682
|
};
|
|
39683
|
+
find_trade_item_key_by_name: {
|
|
39684
|
+
Args: {
|
|
39685
|
+
p_name: string;
|
|
39686
|
+
};
|
|
39687
|
+
Returns: string;
|
|
39688
|
+
};
|
|
39185
39689
|
format_cart_number: {
|
|
39186
39690
|
Args: {
|
|
39187
39691
|
p_pick_date: string;
|
|
@@ -40454,6 +40958,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
|
|
|
40454
40958
|
notes: string | null;
|
|
40455
40959
|
performed_at: string;
|
|
40456
40960
|
rescheduled_count: number;
|
|
40961
|
+
stock_consumed_at: string | null;
|
|
40457
40962
|
total_carts: number;
|
|
40458
40963
|
updated_at: string;
|
|
40459
40964
|
user_id: string;
|
|
@@ -40467,6 +40972,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
|
|
|
40467
40972
|
notes?: string | null;
|
|
40468
40973
|
performed_at?: string;
|
|
40469
40974
|
rescheduled_count?: number;
|
|
40975
|
+
stock_consumed_at?: string | null;
|
|
40470
40976
|
total_carts?: number;
|
|
40471
40977
|
updated_at?: string;
|
|
40472
40978
|
user_id: string;
|
|
@@ -40480,6 +40986,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
|
|
|
40480
40986
|
notes?: string | null;
|
|
40481
40987
|
performed_at?: string;
|
|
40482
40988
|
rescheduled_count?: number;
|
|
40989
|
+
stock_consumed_at?: string | null;
|
|
40483
40990
|
total_carts?: number;
|
|
40484
40991
|
updated_at?: string;
|
|
40485
40992
|
user_id?: string;
|
|
@@ -46238,6 +46745,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
|
|
|
46238
46745
|
purchase_price: number | null;
|
|
46239
46746
|
quantity: number;
|
|
46240
46747
|
sale_price: number | null;
|
|
46748
|
+
trade_item_key: string | null;
|
|
46241
46749
|
unit: string;
|
|
46242
46750
|
updated_at: string;
|
|
46243
46751
|
weight: string | null;
|
|
@@ -46260,6 +46768,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
|
|
|
46260
46768
|
purchase_price?: number | null;
|
|
46261
46769
|
quantity?: number;
|
|
46262
46770
|
sale_price?: number | null;
|
|
46771
|
+
trade_item_key?: string | null;
|
|
46263
46772
|
unit?: string;
|
|
46264
46773
|
updated_at?: string;
|
|
46265
46774
|
weight?: string | null;
|
|
@@ -46282,6 +46791,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
|
|
|
46282
46791
|
purchase_price?: number | null;
|
|
46283
46792
|
quantity?: number;
|
|
46284
46793
|
sale_price?: number | null;
|
|
46794
|
+
trade_item_key?: string | null;
|
|
46285
46795
|
unit?: string;
|
|
46286
46796
|
updated_at?: string;
|
|
46287
46797
|
weight?: string | null;
|
|
@@ -47101,6 +47611,60 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
|
|
|
47101
47611
|
};
|
|
47102
47612
|
Relationships: [];
|
|
47103
47613
|
};
|
|
47614
|
+
stock_mutation_log: {
|
|
47615
|
+
Row: {
|
|
47616
|
+
connection_id: string | null;
|
|
47617
|
+
created_at: string;
|
|
47618
|
+
created_by: string | null;
|
|
47619
|
+
id: string;
|
|
47620
|
+
mutation_type: string;
|
|
47621
|
+
order_id: string | null;
|
|
47622
|
+
order_item_id: string | null;
|
|
47623
|
+
order_source: string | null;
|
|
47624
|
+
physical_after: number | null;
|
|
47625
|
+
physical_before: number | null;
|
|
47626
|
+
qty_delta: number;
|
|
47627
|
+
reason: string | null;
|
|
47628
|
+
reserved_after: number | null;
|
|
47629
|
+
reserved_before: number | null;
|
|
47630
|
+
trade_item_key: string;
|
|
47631
|
+
};
|
|
47632
|
+
Insert: {
|
|
47633
|
+
connection_id?: string | null;
|
|
47634
|
+
created_at?: string;
|
|
47635
|
+
created_by?: string | null;
|
|
47636
|
+
id?: string;
|
|
47637
|
+
mutation_type: string;
|
|
47638
|
+
order_id?: string | null;
|
|
47639
|
+
order_item_id?: string | null;
|
|
47640
|
+
order_source?: string | null;
|
|
47641
|
+
physical_after?: number | null;
|
|
47642
|
+
physical_before?: number | null;
|
|
47643
|
+
qty_delta: number;
|
|
47644
|
+
reason?: string | null;
|
|
47645
|
+
reserved_after?: number | null;
|
|
47646
|
+
reserved_before?: number | null;
|
|
47647
|
+
trade_item_key: string;
|
|
47648
|
+
};
|
|
47649
|
+
Update: {
|
|
47650
|
+
connection_id?: string | null;
|
|
47651
|
+
created_at?: string;
|
|
47652
|
+
created_by?: string | null;
|
|
47653
|
+
id?: string;
|
|
47654
|
+
mutation_type?: string;
|
|
47655
|
+
order_id?: string | null;
|
|
47656
|
+
order_item_id?: string | null;
|
|
47657
|
+
order_source?: string | null;
|
|
47658
|
+
physical_after?: number | null;
|
|
47659
|
+
physical_before?: number | null;
|
|
47660
|
+
qty_delta?: number;
|
|
47661
|
+
reason?: string | null;
|
|
47662
|
+
reserved_after?: number | null;
|
|
47663
|
+
reserved_before?: number | null;
|
|
47664
|
+
trade_item_key?: string;
|
|
47665
|
+
};
|
|
47666
|
+
Relationships: [];
|
|
47667
|
+
};
|
|
47104
47668
|
supplier_products: {
|
|
47105
47669
|
Row: {
|
|
47106
47670
|
article_number: string | null;
|
|
@@ -48962,6 +49526,54 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
|
|
|
48962
49526
|
};
|
|
48963
49527
|
Returns: number;
|
|
48964
49528
|
};
|
|
49529
|
+
afh_city_code: {
|
|
49530
|
+
Args: {
|
|
49531
|
+
_city: string;
|
|
49532
|
+
_country: string;
|
|
49533
|
+
};
|
|
49534
|
+
Returns: string;
|
|
49535
|
+
};
|
|
49536
|
+
afh_normalize_country: {
|
|
49537
|
+
Args: {
|
|
49538
|
+
_raw: string;
|
|
49539
|
+
};
|
|
49540
|
+
Returns: string;
|
|
49541
|
+
};
|
|
49542
|
+
afh_normalize_nl_province: {
|
|
49543
|
+
Args: {
|
|
49544
|
+
_raw: string;
|
|
49545
|
+
};
|
|
49546
|
+
Returns: string;
|
|
49547
|
+
};
|
|
49548
|
+
afh_subtract_workdays: {
|
|
49549
|
+
Args: {
|
|
49550
|
+
_date: string;
|
|
49551
|
+
_days: number;
|
|
49552
|
+
};
|
|
49553
|
+
Returns: string;
|
|
49554
|
+
};
|
|
49555
|
+
apply_stock_consumption: {
|
|
49556
|
+
Args: {
|
|
49557
|
+
p_order_id: string;
|
|
49558
|
+
p_order_item_id: string;
|
|
49559
|
+
p_qty: number;
|
|
49560
|
+
p_reason: string;
|
|
49561
|
+
p_source: string;
|
|
49562
|
+
p_trade_item_key: string;
|
|
49563
|
+
};
|
|
49564
|
+
Returns: undefined;
|
|
49565
|
+
};
|
|
49566
|
+
apply_stock_reservation: {
|
|
49567
|
+
Args: {
|
|
49568
|
+
p_order_id: string;
|
|
49569
|
+
p_order_item_id: string;
|
|
49570
|
+
p_qty: number;
|
|
49571
|
+
p_reason: string;
|
|
49572
|
+
p_source: string;
|
|
49573
|
+
p_trade_item_key: string;
|
|
49574
|
+
};
|
|
49575
|
+
Returns: undefined;
|
|
49576
|
+
};
|
|
48965
49577
|
assign_cart_numbers: {
|
|
48966
49578
|
Args: {
|
|
48967
49579
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -48985,6 +49597,12 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
|
|
|
48985
49597
|
order_number: string;
|
|
48986
49598
|
}[];
|
|
48987
49599
|
};
|
|
49600
|
+
backfill_open_order_reservations: {
|
|
49601
|
+
Args: never;
|
|
49602
|
+
Returns: {
|
|
49603
|
+
processed_items: number;
|
|
49604
|
+
}[];
|
|
49605
|
+
};
|
|
48988
49606
|
call_exact_route: {
|
|
48989
49607
|
Args: {
|
|
48990
49608
|
path: string;
|
|
@@ -49034,6 +49652,12 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
|
|
|
49034
49652
|
table_name: string;
|
|
49035
49653
|
}[];
|
|
49036
49654
|
};
|
|
49655
|
+
dispatch_carrier_signups_sql: {
|
|
49656
|
+
Args: {
|
|
49657
|
+
_catchup?: string;
|
|
49658
|
+
};
|
|
49659
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
49660
|
+
};
|
|
49037
49661
|
email_auth_decrypt: {
|
|
49038
49662
|
Args: {
|
|
49039
49663
|
cipher: string;
|
|
@@ -49106,6 +49730,12 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
|
|
|
49106
49730
|
};
|
|
49107
49731
|
Returns: boolean;
|
|
49108
49732
|
};
|
|
49733
|
+
find_trade_item_key_by_name: {
|
|
49734
|
+
Args: {
|
|
49735
|
+
p_name: string;
|
|
49736
|
+
};
|
|
49737
|
+
Returns: string;
|
|
49738
|
+
};
|
|
49109
49739
|
format_cart_number: {
|
|
49110
49740
|
Args: {
|
|
49111
49741
|
p_pick_date: string;
|
|
@@ -50381,6 +51011,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
|
|
|
50381
51011
|
notes: string | null;
|
|
50382
51012
|
performed_at: string;
|
|
50383
51013
|
rescheduled_count: number;
|
|
51014
|
+
stock_consumed_at: string | null;
|
|
50384
51015
|
total_carts: number;
|
|
50385
51016
|
updated_at: string;
|
|
50386
51017
|
user_id: string;
|
|
@@ -50394,6 +51025,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
|
|
|
50394
51025
|
notes?: string | null;
|
|
50395
51026
|
performed_at?: string;
|
|
50396
51027
|
rescheduled_count?: number;
|
|
51028
|
+
stock_consumed_at?: string | null;
|
|
50397
51029
|
total_carts?: number;
|
|
50398
51030
|
updated_at?: string;
|
|
50399
51031
|
user_id: string;
|
|
@@ -50407,6 +51039,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
|
|
|
50407
51039
|
notes?: string | null;
|
|
50408
51040
|
performed_at?: string;
|
|
50409
51041
|
rescheduled_count?: number;
|
|
51042
|
+
stock_consumed_at?: string | null;
|
|
50410
51043
|
total_carts?: number;
|
|
50411
51044
|
updated_at?: string;
|
|
50412
51045
|
user_id?: string;
|
|
@@ -56165,6 +56798,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
|
|
|
56165
56798
|
purchase_price: number | null;
|
|
56166
56799
|
quantity: number;
|
|
56167
56800
|
sale_price: number | null;
|
|
56801
|
+
trade_item_key: string | null;
|
|
56168
56802
|
unit: string;
|
|
56169
56803
|
updated_at: string;
|
|
56170
56804
|
weight: string | null;
|
|
@@ -56187,6 +56821,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
|
|
|
56187
56821
|
purchase_price?: number | null;
|
|
56188
56822
|
quantity?: number;
|
|
56189
56823
|
sale_price?: number | null;
|
|
56824
|
+
trade_item_key?: string | null;
|
|
56190
56825
|
unit?: string;
|
|
56191
56826
|
updated_at?: string;
|
|
56192
56827
|
weight?: string | null;
|
|
@@ -56209,6 +56844,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
|
|
|
56209
56844
|
purchase_price?: number | null;
|
|
56210
56845
|
quantity?: number;
|
|
56211
56846
|
sale_price?: number | null;
|
|
56847
|
+
trade_item_key?: string | null;
|
|
56212
56848
|
unit?: string;
|
|
56213
56849
|
updated_at?: string;
|
|
56214
56850
|
weight?: string | null;
|
|
@@ -57028,6 +57664,60 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
|
|
|
57028
57664
|
};
|
|
57029
57665
|
Relationships: [];
|
|
57030
57666
|
};
|
|
57667
|
+
stock_mutation_log: {
|
|
57668
|
+
Row: {
|
|
57669
|
+
connection_id: string | null;
|
|
57670
|
+
created_at: string;
|
|
57671
|
+
created_by: string | null;
|
|
57672
|
+
id: string;
|
|
57673
|
+
mutation_type: string;
|
|
57674
|
+
order_id: string | null;
|
|
57675
|
+
order_item_id: string | null;
|
|
57676
|
+
order_source: string | null;
|
|
57677
|
+
physical_after: number | null;
|
|
57678
|
+
physical_before: number | null;
|
|
57679
|
+
qty_delta: number;
|
|
57680
|
+
reason: string | null;
|
|
57681
|
+
reserved_after: number | null;
|
|
57682
|
+
reserved_before: number | null;
|
|
57683
|
+
trade_item_key: string;
|
|
57684
|
+
};
|
|
57685
|
+
Insert: {
|
|
57686
|
+
connection_id?: string | null;
|
|
57687
|
+
created_at?: string;
|
|
57688
|
+
created_by?: string | null;
|
|
57689
|
+
id?: string;
|
|
57690
|
+
mutation_type: string;
|
|
57691
|
+
order_id?: string | null;
|
|
57692
|
+
order_item_id?: string | null;
|
|
57693
|
+
order_source?: string | null;
|
|
57694
|
+
physical_after?: number | null;
|
|
57695
|
+
physical_before?: number | null;
|
|
57696
|
+
qty_delta: number;
|
|
57697
|
+
reason?: string | null;
|
|
57698
|
+
reserved_after?: number | null;
|
|
57699
|
+
reserved_before?: number | null;
|
|
57700
|
+
trade_item_key: string;
|
|
57701
|
+
};
|
|
57702
|
+
Update: {
|
|
57703
|
+
connection_id?: string | null;
|
|
57704
|
+
created_at?: string;
|
|
57705
|
+
created_by?: string | null;
|
|
57706
|
+
id?: string;
|
|
57707
|
+
mutation_type?: string;
|
|
57708
|
+
order_id?: string | null;
|
|
57709
|
+
order_item_id?: string | null;
|
|
57710
|
+
order_source?: string | null;
|
|
57711
|
+
physical_after?: number | null;
|
|
57712
|
+
physical_before?: number | null;
|
|
57713
|
+
qty_delta?: number;
|
|
57714
|
+
reason?: string | null;
|
|
57715
|
+
reserved_after?: number | null;
|
|
57716
|
+
reserved_before?: number | null;
|
|
57717
|
+
trade_item_key?: string;
|
|
57718
|
+
};
|
|
57719
|
+
Relationships: [];
|
|
57720
|
+
};
|
|
57031
57721
|
supplier_products: {
|
|
57032
57722
|
Row: {
|
|
57033
57723
|
article_number: string | null;
|
|
@@ -58889,6 +59579,54 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
|
|
|
58889
59579
|
};
|
|
58890
59580
|
Returns: number;
|
|
58891
59581
|
};
|
|
59582
|
+
afh_city_code: {
|
|
59583
|
+
Args: {
|
|
59584
|
+
_city: string;
|
|
59585
|
+
_country: string;
|
|
59586
|
+
};
|
|
59587
|
+
Returns: string;
|
|
59588
|
+
};
|
|
59589
|
+
afh_normalize_country: {
|
|
59590
|
+
Args: {
|
|
59591
|
+
_raw: string;
|
|
59592
|
+
};
|
|
59593
|
+
Returns: string;
|
|
59594
|
+
};
|
|
59595
|
+
afh_normalize_nl_province: {
|
|
59596
|
+
Args: {
|
|
59597
|
+
_raw: string;
|
|
59598
|
+
};
|
|
59599
|
+
Returns: string;
|
|
59600
|
+
};
|
|
59601
|
+
afh_subtract_workdays: {
|
|
59602
|
+
Args: {
|
|
59603
|
+
_date: string;
|
|
59604
|
+
_days: number;
|
|
59605
|
+
};
|
|
59606
|
+
Returns: string;
|
|
59607
|
+
};
|
|
59608
|
+
apply_stock_consumption: {
|
|
59609
|
+
Args: {
|
|
59610
|
+
p_order_id: string;
|
|
59611
|
+
p_order_item_id: string;
|
|
59612
|
+
p_qty: number;
|
|
59613
|
+
p_reason: string;
|
|
59614
|
+
p_source: string;
|
|
59615
|
+
p_trade_item_key: string;
|
|
59616
|
+
};
|
|
59617
|
+
Returns: undefined;
|
|
59618
|
+
};
|
|
59619
|
+
apply_stock_reservation: {
|
|
59620
|
+
Args: {
|
|
59621
|
+
p_order_id: string;
|
|
59622
|
+
p_order_item_id: string;
|
|
59623
|
+
p_qty: number;
|
|
59624
|
+
p_reason: string;
|
|
59625
|
+
p_source: string;
|
|
59626
|
+
p_trade_item_key: string;
|
|
59627
|
+
};
|
|
59628
|
+
Returns: undefined;
|
|
59629
|
+
};
|
|
58892
59630
|
assign_cart_numbers: {
|
|
58893
59631
|
Args: {
|
|
58894
59632
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -58912,6 +59650,12 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
|
|
|
58912
59650
|
order_number: string;
|
|
58913
59651
|
}[];
|
|
58914
59652
|
};
|
|
59653
|
+
backfill_open_order_reservations: {
|
|
59654
|
+
Args: never;
|
|
59655
|
+
Returns: {
|
|
59656
|
+
processed_items: number;
|
|
59657
|
+
}[];
|
|
59658
|
+
};
|
|
58915
59659
|
call_exact_route: {
|
|
58916
59660
|
Args: {
|
|
58917
59661
|
path: string;
|
|
@@ -58961,6 +59705,12 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
|
|
|
58961
59705
|
table_name: string;
|
|
58962
59706
|
}[];
|
|
58963
59707
|
};
|
|
59708
|
+
dispatch_carrier_signups_sql: {
|
|
59709
|
+
Args: {
|
|
59710
|
+
_catchup?: string;
|
|
59711
|
+
};
|
|
59712
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
59713
|
+
};
|
|
58964
59714
|
email_auth_decrypt: {
|
|
58965
59715
|
Args: {
|
|
58966
59716
|
cipher: string;
|
|
@@ -59033,6 +59783,12 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
|
|
|
59033
59783
|
};
|
|
59034
59784
|
Returns: boolean;
|
|
59035
59785
|
};
|
|
59786
|
+
find_trade_item_key_by_name: {
|
|
59787
|
+
Args: {
|
|
59788
|
+
p_name: string;
|
|
59789
|
+
};
|
|
59790
|
+
Returns: string;
|
|
59791
|
+
};
|
|
59036
59792
|
format_cart_number: {
|
|
59037
59793
|
Args: {
|
|
59038
59794
|
p_pick_date: string;
|
|
@@ -60294,6 +61050,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
|
|
|
60294
61050
|
notes: string | null;
|
|
60295
61051
|
performed_at: string;
|
|
60296
61052
|
rescheduled_count: number;
|
|
61053
|
+
stock_consumed_at: string | null;
|
|
60297
61054
|
total_carts: number;
|
|
60298
61055
|
updated_at: string;
|
|
60299
61056
|
user_id: string;
|
|
@@ -60307,6 +61064,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
|
|
|
60307
61064
|
notes?: string | null;
|
|
60308
61065
|
performed_at?: string;
|
|
60309
61066
|
rescheduled_count?: number;
|
|
61067
|
+
stock_consumed_at?: string | null;
|
|
60310
61068
|
total_carts?: number;
|
|
60311
61069
|
updated_at?: string;
|
|
60312
61070
|
user_id: string;
|
|
@@ -60320,6 +61078,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
|
|
|
60320
61078
|
notes?: string | null;
|
|
60321
61079
|
performed_at?: string;
|
|
60322
61080
|
rescheduled_count?: number;
|
|
61081
|
+
stock_consumed_at?: string | null;
|
|
60323
61082
|
total_carts?: number;
|
|
60324
61083
|
updated_at?: string;
|
|
60325
61084
|
user_id?: string;
|
|
@@ -66078,6 +66837,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
|
|
|
66078
66837
|
purchase_price: number | null;
|
|
66079
66838
|
quantity: number;
|
|
66080
66839
|
sale_price: number | null;
|
|
66840
|
+
trade_item_key: string | null;
|
|
66081
66841
|
unit: string;
|
|
66082
66842
|
updated_at: string;
|
|
66083
66843
|
weight: string | null;
|
|
@@ -66100,6 +66860,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
|
|
|
66100
66860
|
purchase_price?: number | null;
|
|
66101
66861
|
quantity?: number;
|
|
66102
66862
|
sale_price?: number | null;
|
|
66863
|
+
trade_item_key?: string | null;
|
|
66103
66864
|
unit?: string;
|
|
66104
66865
|
updated_at?: string;
|
|
66105
66866
|
weight?: string | null;
|
|
@@ -66122,6 +66883,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
|
|
|
66122
66883
|
purchase_price?: number | null;
|
|
66123
66884
|
quantity?: number;
|
|
66124
66885
|
sale_price?: number | null;
|
|
66886
|
+
trade_item_key?: string | null;
|
|
66125
66887
|
unit?: string;
|
|
66126
66888
|
updated_at?: string;
|
|
66127
66889
|
weight?: string | null;
|
|
@@ -66941,6 +67703,60 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
|
|
|
66941
67703
|
};
|
|
66942
67704
|
Relationships: [];
|
|
66943
67705
|
};
|
|
67706
|
+
stock_mutation_log: {
|
|
67707
|
+
Row: {
|
|
67708
|
+
connection_id: string | null;
|
|
67709
|
+
created_at: string;
|
|
67710
|
+
created_by: string | null;
|
|
67711
|
+
id: string;
|
|
67712
|
+
mutation_type: string;
|
|
67713
|
+
order_id: string | null;
|
|
67714
|
+
order_item_id: string | null;
|
|
67715
|
+
order_source: string | null;
|
|
67716
|
+
physical_after: number | null;
|
|
67717
|
+
physical_before: number | null;
|
|
67718
|
+
qty_delta: number;
|
|
67719
|
+
reason: string | null;
|
|
67720
|
+
reserved_after: number | null;
|
|
67721
|
+
reserved_before: number | null;
|
|
67722
|
+
trade_item_key: string;
|
|
67723
|
+
};
|
|
67724
|
+
Insert: {
|
|
67725
|
+
connection_id?: string | null;
|
|
67726
|
+
created_at?: string;
|
|
67727
|
+
created_by?: string | null;
|
|
67728
|
+
id?: string;
|
|
67729
|
+
mutation_type: string;
|
|
67730
|
+
order_id?: string | null;
|
|
67731
|
+
order_item_id?: string | null;
|
|
67732
|
+
order_source?: string | null;
|
|
67733
|
+
physical_after?: number | null;
|
|
67734
|
+
physical_before?: number | null;
|
|
67735
|
+
qty_delta: number;
|
|
67736
|
+
reason?: string | null;
|
|
67737
|
+
reserved_after?: number | null;
|
|
67738
|
+
reserved_before?: number | null;
|
|
67739
|
+
trade_item_key: string;
|
|
67740
|
+
};
|
|
67741
|
+
Update: {
|
|
67742
|
+
connection_id?: string | null;
|
|
67743
|
+
created_at?: string;
|
|
67744
|
+
created_by?: string | null;
|
|
67745
|
+
id?: string;
|
|
67746
|
+
mutation_type?: string;
|
|
67747
|
+
order_id?: string | null;
|
|
67748
|
+
order_item_id?: string | null;
|
|
67749
|
+
order_source?: string | null;
|
|
67750
|
+
physical_after?: number | null;
|
|
67751
|
+
physical_before?: number | null;
|
|
67752
|
+
qty_delta?: number;
|
|
67753
|
+
reason?: string | null;
|
|
67754
|
+
reserved_after?: number | null;
|
|
67755
|
+
reserved_before?: number | null;
|
|
67756
|
+
trade_item_key?: string;
|
|
67757
|
+
};
|
|
67758
|
+
Relationships: [];
|
|
67759
|
+
};
|
|
66944
67760
|
supplier_products: {
|
|
66945
67761
|
Row: {
|
|
66946
67762
|
article_number: string | null;
|
|
@@ -68802,6 +69618,54 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
|
|
|
68802
69618
|
};
|
|
68803
69619
|
Returns: number;
|
|
68804
69620
|
};
|
|
69621
|
+
afh_city_code: {
|
|
69622
|
+
Args: {
|
|
69623
|
+
_city: string;
|
|
69624
|
+
_country: string;
|
|
69625
|
+
};
|
|
69626
|
+
Returns: string;
|
|
69627
|
+
};
|
|
69628
|
+
afh_normalize_country: {
|
|
69629
|
+
Args: {
|
|
69630
|
+
_raw: string;
|
|
69631
|
+
};
|
|
69632
|
+
Returns: string;
|
|
69633
|
+
};
|
|
69634
|
+
afh_normalize_nl_province: {
|
|
69635
|
+
Args: {
|
|
69636
|
+
_raw: string;
|
|
69637
|
+
};
|
|
69638
|
+
Returns: string;
|
|
69639
|
+
};
|
|
69640
|
+
afh_subtract_workdays: {
|
|
69641
|
+
Args: {
|
|
69642
|
+
_date: string;
|
|
69643
|
+
_days: number;
|
|
69644
|
+
};
|
|
69645
|
+
Returns: string;
|
|
69646
|
+
};
|
|
69647
|
+
apply_stock_consumption: {
|
|
69648
|
+
Args: {
|
|
69649
|
+
p_order_id: string;
|
|
69650
|
+
p_order_item_id: string;
|
|
69651
|
+
p_qty: number;
|
|
69652
|
+
p_reason: string;
|
|
69653
|
+
p_source: string;
|
|
69654
|
+
p_trade_item_key: string;
|
|
69655
|
+
};
|
|
69656
|
+
Returns: undefined;
|
|
69657
|
+
};
|
|
69658
|
+
apply_stock_reservation: {
|
|
69659
|
+
Args: {
|
|
69660
|
+
p_order_id: string;
|
|
69661
|
+
p_order_item_id: string;
|
|
69662
|
+
p_qty: number;
|
|
69663
|
+
p_reason: string;
|
|
69664
|
+
p_source: string;
|
|
69665
|
+
p_trade_item_key: string;
|
|
69666
|
+
};
|
|
69667
|
+
Returns: undefined;
|
|
69668
|
+
};
|
|
68805
69669
|
assign_cart_numbers: {
|
|
68806
69670
|
Args: {
|
|
68807
69671
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -68825,6 +69689,12 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
|
|
|
68825
69689
|
order_number: string;
|
|
68826
69690
|
}[];
|
|
68827
69691
|
};
|
|
69692
|
+
backfill_open_order_reservations: {
|
|
69693
|
+
Args: never;
|
|
69694
|
+
Returns: {
|
|
69695
|
+
processed_items: number;
|
|
69696
|
+
}[];
|
|
69697
|
+
};
|
|
68828
69698
|
call_exact_route: {
|
|
68829
69699
|
Args: {
|
|
68830
69700
|
path: string;
|
|
@@ -68874,6 +69744,12 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
|
|
|
68874
69744
|
table_name: string;
|
|
68875
69745
|
}[];
|
|
68876
69746
|
};
|
|
69747
|
+
dispatch_carrier_signups_sql: {
|
|
69748
|
+
Args: {
|
|
69749
|
+
_catchup?: string;
|
|
69750
|
+
};
|
|
69751
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
69752
|
+
};
|
|
68877
69753
|
email_auth_decrypt: {
|
|
68878
69754
|
Args: {
|
|
68879
69755
|
cipher: string;
|
|
@@ -68946,6 +69822,12 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
|
|
|
68946
69822
|
};
|
|
68947
69823
|
Returns: boolean;
|
|
68948
69824
|
};
|
|
69825
|
+
find_trade_item_key_by_name: {
|
|
69826
|
+
Args: {
|
|
69827
|
+
p_name: string;
|
|
69828
|
+
};
|
|
69829
|
+
Returns: string;
|
|
69830
|
+
};
|
|
68949
69831
|
format_cart_number: {
|
|
68950
69832
|
Args: {
|
|
68951
69833
|
p_pick_date: string;
|
|
@@ -70232,6 +71114,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
|
|
|
70232
71114
|
notes: string | null;
|
|
70233
71115
|
performed_at: string;
|
|
70234
71116
|
rescheduled_count: number;
|
|
71117
|
+
stock_consumed_at: string | null;
|
|
70235
71118
|
total_carts: number;
|
|
70236
71119
|
updated_at: string;
|
|
70237
71120
|
user_id: string;
|
|
@@ -70245,6 +71128,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
|
|
|
70245
71128
|
notes?: string | null;
|
|
70246
71129
|
performed_at?: string;
|
|
70247
71130
|
rescheduled_count?: number;
|
|
71131
|
+
stock_consumed_at?: string | null;
|
|
70248
71132
|
total_carts?: number;
|
|
70249
71133
|
updated_at?: string;
|
|
70250
71134
|
user_id: string;
|
|
@@ -70258,6 +71142,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
|
|
|
70258
71142
|
notes?: string | null;
|
|
70259
71143
|
performed_at?: string;
|
|
70260
71144
|
rescheduled_count?: number;
|
|
71145
|
+
stock_consumed_at?: string | null;
|
|
70261
71146
|
total_carts?: number;
|
|
70262
71147
|
updated_at?: string;
|
|
70263
71148
|
user_id?: string;
|
|
@@ -76016,6 +76901,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
|
|
|
76016
76901
|
purchase_price: number | null;
|
|
76017
76902
|
quantity: number;
|
|
76018
76903
|
sale_price: number | null;
|
|
76904
|
+
trade_item_key: string | null;
|
|
76019
76905
|
unit: string;
|
|
76020
76906
|
updated_at: string;
|
|
76021
76907
|
weight: string | null;
|
|
@@ -76038,6 +76924,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
|
|
|
76038
76924
|
purchase_price?: number | null;
|
|
76039
76925
|
quantity?: number;
|
|
76040
76926
|
sale_price?: number | null;
|
|
76927
|
+
trade_item_key?: string | null;
|
|
76041
76928
|
unit?: string;
|
|
76042
76929
|
updated_at?: string;
|
|
76043
76930
|
weight?: string | null;
|
|
@@ -76060,6 +76947,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
|
|
|
76060
76947
|
purchase_price?: number | null;
|
|
76061
76948
|
quantity?: number;
|
|
76062
76949
|
sale_price?: number | null;
|
|
76950
|
+
trade_item_key?: string | null;
|
|
76063
76951
|
unit?: string;
|
|
76064
76952
|
updated_at?: string;
|
|
76065
76953
|
weight?: string | null;
|
|
@@ -76879,6 +77767,60 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
|
|
|
76879
77767
|
};
|
|
76880
77768
|
Relationships: [];
|
|
76881
77769
|
};
|
|
77770
|
+
stock_mutation_log: {
|
|
77771
|
+
Row: {
|
|
77772
|
+
connection_id: string | null;
|
|
77773
|
+
created_at: string;
|
|
77774
|
+
created_by: string | null;
|
|
77775
|
+
id: string;
|
|
77776
|
+
mutation_type: string;
|
|
77777
|
+
order_id: string | null;
|
|
77778
|
+
order_item_id: string | null;
|
|
77779
|
+
order_source: string | null;
|
|
77780
|
+
physical_after: number | null;
|
|
77781
|
+
physical_before: number | null;
|
|
77782
|
+
qty_delta: number;
|
|
77783
|
+
reason: string | null;
|
|
77784
|
+
reserved_after: number | null;
|
|
77785
|
+
reserved_before: number | null;
|
|
77786
|
+
trade_item_key: string;
|
|
77787
|
+
};
|
|
77788
|
+
Insert: {
|
|
77789
|
+
connection_id?: string | null;
|
|
77790
|
+
created_at?: string;
|
|
77791
|
+
created_by?: string | null;
|
|
77792
|
+
id?: string;
|
|
77793
|
+
mutation_type: string;
|
|
77794
|
+
order_id?: string | null;
|
|
77795
|
+
order_item_id?: string | null;
|
|
77796
|
+
order_source?: string | null;
|
|
77797
|
+
physical_after?: number | null;
|
|
77798
|
+
physical_before?: number | null;
|
|
77799
|
+
qty_delta: number;
|
|
77800
|
+
reason?: string | null;
|
|
77801
|
+
reserved_after?: number | null;
|
|
77802
|
+
reserved_before?: number | null;
|
|
77803
|
+
trade_item_key: string;
|
|
77804
|
+
};
|
|
77805
|
+
Update: {
|
|
77806
|
+
connection_id?: string | null;
|
|
77807
|
+
created_at?: string;
|
|
77808
|
+
created_by?: string | null;
|
|
77809
|
+
id?: string;
|
|
77810
|
+
mutation_type?: string;
|
|
77811
|
+
order_id?: string | null;
|
|
77812
|
+
order_item_id?: string | null;
|
|
77813
|
+
order_source?: string | null;
|
|
77814
|
+
physical_after?: number | null;
|
|
77815
|
+
physical_before?: number | null;
|
|
77816
|
+
qty_delta?: number;
|
|
77817
|
+
reason?: string | null;
|
|
77818
|
+
reserved_after?: number | null;
|
|
77819
|
+
reserved_before?: number | null;
|
|
77820
|
+
trade_item_key?: string;
|
|
77821
|
+
};
|
|
77822
|
+
Relationships: [];
|
|
77823
|
+
};
|
|
76882
77824
|
supplier_products: {
|
|
76883
77825
|
Row: {
|
|
76884
77826
|
article_number: string | null;
|
|
@@ -78740,6 +79682,54 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
|
|
|
78740
79682
|
};
|
|
78741
79683
|
Returns: number;
|
|
78742
79684
|
};
|
|
79685
|
+
afh_city_code: {
|
|
79686
|
+
Args: {
|
|
79687
|
+
_city: string;
|
|
79688
|
+
_country: string;
|
|
79689
|
+
};
|
|
79690
|
+
Returns: string;
|
|
79691
|
+
};
|
|
79692
|
+
afh_normalize_country: {
|
|
79693
|
+
Args: {
|
|
79694
|
+
_raw: string;
|
|
79695
|
+
};
|
|
79696
|
+
Returns: string;
|
|
79697
|
+
};
|
|
79698
|
+
afh_normalize_nl_province: {
|
|
79699
|
+
Args: {
|
|
79700
|
+
_raw: string;
|
|
79701
|
+
};
|
|
79702
|
+
Returns: string;
|
|
79703
|
+
};
|
|
79704
|
+
afh_subtract_workdays: {
|
|
79705
|
+
Args: {
|
|
79706
|
+
_date: string;
|
|
79707
|
+
_days: number;
|
|
79708
|
+
};
|
|
79709
|
+
Returns: string;
|
|
79710
|
+
};
|
|
79711
|
+
apply_stock_consumption: {
|
|
79712
|
+
Args: {
|
|
79713
|
+
p_order_id: string;
|
|
79714
|
+
p_order_item_id: string;
|
|
79715
|
+
p_qty: number;
|
|
79716
|
+
p_reason: string;
|
|
79717
|
+
p_source: string;
|
|
79718
|
+
p_trade_item_key: string;
|
|
79719
|
+
};
|
|
79720
|
+
Returns: undefined;
|
|
79721
|
+
};
|
|
79722
|
+
apply_stock_reservation: {
|
|
79723
|
+
Args: {
|
|
79724
|
+
p_order_id: string;
|
|
79725
|
+
p_order_item_id: string;
|
|
79726
|
+
p_qty: number;
|
|
79727
|
+
p_reason: string;
|
|
79728
|
+
p_source: string;
|
|
79729
|
+
p_trade_item_key: string;
|
|
79730
|
+
};
|
|
79731
|
+
Returns: undefined;
|
|
79732
|
+
};
|
|
78743
79733
|
assign_cart_numbers: {
|
|
78744
79734
|
Args: {
|
|
78745
79735
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -78763,6 +79753,12 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
|
|
|
78763
79753
|
order_number: string;
|
|
78764
79754
|
}[];
|
|
78765
79755
|
};
|
|
79756
|
+
backfill_open_order_reservations: {
|
|
79757
|
+
Args: never;
|
|
79758
|
+
Returns: {
|
|
79759
|
+
processed_items: number;
|
|
79760
|
+
}[];
|
|
79761
|
+
};
|
|
78766
79762
|
call_exact_route: {
|
|
78767
79763
|
Args: {
|
|
78768
79764
|
path: string;
|
|
@@ -78812,6 +79808,12 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
|
|
|
78812
79808
|
table_name: string;
|
|
78813
79809
|
}[];
|
|
78814
79810
|
};
|
|
79811
|
+
dispatch_carrier_signups_sql: {
|
|
79812
|
+
Args: {
|
|
79813
|
+
_catchup?: string;
|
|
79814
|
+
};
|
|
79815
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
79816
|
+
};
|
|
78815
79817
|
email_auth_decrypt: {
|
|
78816
79818
|
Args: {
|
|
78817
79819
|
cipher: string;
|
|
@@ -78884,6 +79886,12 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
|
|
|
78884
79886
|
};
|
|
78885
79887
|
Returns: boolean;
|
|
78886
79888
|
};
|
|
79889
|
+
find_trade_item_key_by_name: {
|
|
79890
|
+
Args: {
|
|
79891
|
+
p_name: string;
|
|
79892
|
+
};
|
|
79893
|
+
Returns: string;
|
|
79894
|
+
};
|
|
78887
79895
|
format_cart_number: {
|
|
78888
79896
|
Args: {
|
|
78889
79897
|
p_pick_date: string;
|
|
@@ -80143,6 +81151,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
|
|
|
80143
81151
|
notes: string | null;
|
|
80144
81152
|
performed_at: string;
|
|
80145
81153
|
rescheduled_count: number;
|
|
81154
|
+
stock_consumed_at: string | null;
|
|
80146
81155
|
total_carts: number;
|
|
80147
81156
|
updated_at: string;
|
|
80148
81157
|
user_id: string;
|
|
@@ -80156,6 +81165,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
|
|
|
80156
81165
|
notes?: string | null;
|
|
80157
81166
|
performed_at?: string;
|
|
80158
81167
|
rescheduled_count?: number;
|
|
81168
|
+
stock_consumed_at?: string | null;
|
|
80159
81169
|
total_carts?: number;
|
|
80160
81170
|
updated_at?: string;
|
|
80161
81171
|
user_id: string;
|
|
@@ -80169,6 +81179,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
|
|
|
80169
81179
|
notes?: string | null;
|
|
80170
81180
|
performed_at?: string;
|
|
80171
81181
|
rescheduled_count?: number;
|
|
81182
|
+
stock_consumed_at?: string | null;
|
|
80172
81183
|
total_carts?: number;
|
|
80173
81184
|
updated_at?: string;
|
|
80174
81185
|
user_id?: string;
|
|
@@ -85927,6 +86938,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
|
|
|
85927
86938
|
purchase_price: number | null;
|
|
85928
86939
|
quantity: number;
|
|
85929
86940
|
sale_price: number | null;
|
|
86941
|
+
trade_item_key: string | null;
|
|
85930
86942
|
unit: string;
|
|
85931
86943
|
updated_at: string;
|
|
85932
86944
|
weight: string | null;
|
|
@@ -85949,6 +86961,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
|
|
|
85949
86961
|
purchase_price?: number | null;
|
|
85950
86962
|
quantity?: number;
|
|
85951
86963
|
sale_price?: number | null;
|
|
86964
|
+
trade_item_key?: string | null;
|
|
85952
86965
|
unit?: string;
|
|
85953
86966
|
updated_at?: string;
|
|
85954
86967
|
weight?: string | null;
|
|
@@ -85971,6 +86984,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
|
|
|
85971
86984
|
purchase_price?: number | null;
|
|
85972
86985
|
quantity?: number;
|
|
85973
86986
|
sale_price?: number | null;
|
|
86987
|
+
trade_item_key?: string | null;
|
|
85974
86988
|
unit?: string;
|
|
85975
86989
|
updated_at?: string;
|
|
85976
86990
|
weight?: string | null;
|
|
@@ -86790,6 +87804,60 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
|
|
|
86790
87804
|
};
|
|
86791
87805
|
Relationships: [];
|
|
86792
87806
|
};
|
|
87807
|
+
stock_mutation_log: {
|
|
87808
|
+
Row: {
|
|
87809
|
+
connection_id: string | null;
|
|
87810
|
+
created_at: string;
|
|
87811
|
+
created_by: string | null;
|
|
87812
|
+
id: string;
|
|
87813
|
+
mutation_type: string;
|
|
87814
|
+
order_id: string | null;
|
|
87815
|
+
order_item_id: string | null;
|
|
87816
|
+
order_source: string | null;
|
|
87817
|
+
physical_after: number | null;
|
|
87818
|
+
physical_before: number | null;
|
|
87819
|
+
qty_delta: number;
|
|
87820
|
+
reason: string | null;
|
|
87821
|
+
reserved_after: number | null;
|
|
87822
|
+
reserved_before: number | null;
|
|
87823
|
+
trade_item_key: string;
|
|
87824
|
+
};
|
|
87825
|
+
Insert: {
|
|
87826
|
+
connection_id?: string | null;
|
|
87827
|
+
created_at?: string;
|
|
87828
|
+
created_by?: string | null;
|
|
87829
|
+
id?: string;
|
|
87830
|
+
mutation_type: string;
|
|
87831
|
+
order_id?: string | null;
|
|
87832
|
+
order_item_id?: string | null;
|
|
87833
|
+
order_source?: string | null;
|
|
87834
|
+
physical_after?: number | null;
|
|
87835
|
+
physical_before?: number | null;
|
|
87836
|
+
qty_delta: number;
|
|
87837
|
+
reason?: string | null;
|
|
87838
|
+
reserved_after?: number | null;
|
|
87839
|
+
reserved_before?: number | null;
|
|
87840
|
+
trade_item_key: string;
|
|
87841
|
+
};
|
|
87842
|
+
Update: {
|
|
87843
|
+
connection_id?: string | null;
|
|
87844
|
+
created_at?: string;
|
|
87845
|
+
created_by?: string | null;
|
|
87846
|
+
id?: string;
|
|
87847
|
+
mutation_type?: string;
|
|
87848
|
+
order_id?: string | null;
|
|
87849
|
+
order_item_id?: string | null;
|
|
87850
|
+
order_source?: string | null;
|
|
87851
|
+
physical_after?: number | null;
|
|
87852
|
+
physical_before?: number | null;
|
|
87853
|
+
qty_delta?: number;
|
|
87854
|
+
reason?: string | null;
|
|
87855
|
+
reserved_after?: number | null;
|
|
87856
|
+
reserved_before?: number | null;
|
|
87857
|
+
trade_item_key?: string;
|
|
87858
|
+
};
|
|
87859
|
+
Relationships: [];
|
|
87860
|
+
};
|
|
86793
87861
|
supplier_products: {
|
|
86794
87862
|
Row: {
|
|
86795
87863
|
article_number: string | null;
|
|
@@ -88651,6 +89719,54 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
|
|
|
88651
89719
|
};
|
|
88652
89720
|
Returns: number;
|
|
88653
89721
|
};
|
|
89722
|
+
afh_city_code: {
|
|
89723
|
+
Args: {
|
|
89724
|
+
_city: string;
|
|
89725
|
+
_country: string;
|
|
89726
|
+
};
|
|
89727
|
+
Returns: string;
|
|
89728
|
+
};
|
|
89729
|
+
afh_normalize_country: {
|
|
89730
|
+
Args: {
|
|
89731
|
+
_raw: string;
|
|
89732
|
+
};
|
|
89733
|
+
Returns: string;
|
|
89734
|
+
};
|
|
89735
|
+
afh_normalize_nl_province: {
|
|
89736
|
+
Args: {
|
|
89737
|
+
_raw: string;
|
|
89738
|
+
};
|
|
89739
|
+
Returns: string;
|
|
89740
|
+
};
|
|
89741
|
+
afh_subtract_workdays: {
|
|
89742
|
+
Args: {
|
|
89743
|
+
_date: string;
|
|
89744
|
+
_days: number;
|
|
89745
|
+
};
|
|
89746
|
+
Returns: string;
|
|
89747
|
+
};
|
|
89748
|
+
apply_stock_consumption: {
|
|
89749
|
+
Args: {
|
|
89750
|
+
p_order_id: string;
|
|
89751
|
+
p_order_item_id: string;
|
|
89752
|
+
p_qty: number;
|
|
89753
|
+
p_reason: string;
|
|
89754
|
+
p_source: string;
|
|
89755
|
+
p_trade_item_key: string;
|
|
89756
|
+
};
|
|
89757
|
+
Returns: undefined;
|
|
89758
|
+
};
|
|
89759
|
+
apply_stock_reservation: {
|
|
89760
|
+
Args: {
|
|
89761
|
+
p_order_id: string;
|
|
89762
|
+
p_order_item_id: string;
|
|
89763
|
+
p_qty: number;
|
|
89764
|
+
p_reason: string;
|
|
89765
|
+
p_source: string;
|
|
89766
|
+
p_trade_item_key: string;
|
|
89767
|
+
};
|
|
89768
|
+
Returns: undefined;
|
|
89769
|
+
};
|
|
88654
89770
|
assign_cart_numbers: {
|
|
88655
89771
|
Args: {
|
|
88656
89772
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -88674,6 +89790,12 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
|
|
|
88674
89790
|
order_number: string;
|
|
88675
89791
|
}[];
|
|
88676
89792
|
};
|
|
89793
|
+
backfill_open_order_reservations: {
|
|
89794
|
+
Args: never;
|
|
89795
|
+
Returns: {
|
|
89796
|
+
processed_items: number;
|
|
89797
|
+
}[];
|
|
89798
|
+
};
|
|
88677
89799
|
call_exact_route: {
|
|
88678
89800
|
Args: {
|
|
88679
89801
|
path: string;
|
|
@@ -88723,6 +89845,12 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
|
|
|
88723
89845
|
table_name: string;
|
|
88724
89846
|
}[];
|
|
88725
89847
|
};
|
|
89848
|
+
dispatch_carrier_signups_sql: {
|
|
89849
|
+
Args: {
|
|
89850
|
+
_catchup?: string;
|
|
89851
|
+
};
|
|
89852
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
89853
|
+
};
|
|
88726
89854
|
email_auth_decrypt: {
|
|
88727
89855
|
Args: {
|
|
88728
89856
|
cipher: string;
|
|
@@ -88795,6 +89923,12 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
|
|
|
88795
89923
|
};
|
|
88796
89924
|
Returns: boolean;
|
|
88797
89925
|
};
|
|
89926
|
+
find_trade_item_key_by_name: {
|
|
89927
|
+
Args: {
|
|
89928
|
+
p_name: string;
|
|
89929
|
+
};
|
|
89930
|
+
Returns: string;
|
|
89931
|
+
};
|
|
88798
89932
|
format_cart_number: {
|
|
88799
89933
|
Args: {
|
|
88800
89934
|
p_pick_date: string;
|
|
@@ -90057,6 +91191,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
|
|
|
90057
91191
|
notes: string | null;
|
|
90058
91192
|
performed_at: string;
|
|
90059
91193
|
rescheduled_count: number;
|
|
91194
|
+
stock_consumed_at: string | null;
|
|
90060
91195
|
total_carts: number;
|
|
90061
91196
|
updated_at: string;
|
|
90062
91197
|
user_id: string;
|
|
@@ -90070,6 +91205,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
|
|
|
90070
91205
|
notes?: string | null;
|
|
90071
91206
|
performed_at?: string;
|
|
90072
91207
|
rescheduled_count?: number;
|
|
91208
|
+
stock_consumed_at?: string | null;
|
|
90073
91209
|
total_carts?: number;
|
|
90074
91210
|
updated_at?: string;
|
|
90075
91211
|
user_id: string;
|
|
@@ -90083,6 +91219,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
|
|
|
90083
91219
|
notes?: string | null;
|
|
90084
91220
|
performed_at?: string;
|
|
90085
91221
|
rescheduled_count?: number;
|
|
91222
|
+
stock_consumed_at?: string | null;
|
|
90086
91223
|
total_carts?: number;
|
|
90087
91224
|
updated_at?: string;
|
|
90088
91225
|
user_id?: string;
|
|
@@ -95841,6 +96978,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
|
|
|
95841
96978
|
purchase_price: number | null;
|
|
95842
96979
|
quantity: number;
|
|
95843
96980
|
sale_price: number | null;
|
|
96981
|
+
trade_item_key: string | null;
|
|
95844
96982
|
unit: string;
|
|
95845
96983
|
updated_at: string;
|
|
95846
96984
|
weight: string | null;
|
|
@@ -95863,6 +97001,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
|
|
|
95863
97001
|
purchase_price?: number | null;
|
|
95864
97002
|
quantity?: number;
|
|
95865
97003
|
sale_price?: number | null;
|
|
97004
|
+
trade_item_key?: string | null;
|
|
95866
97005
|
unit?: string;
|
|
95867
97006
|
updated_at?: string;
|
|
95868
97007
|
weight?: string | null;
|
|
@@ -95885,6 +97024,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
|
|
|
95885
97024
|
purchase_price?: number | null;
|
|
95886
97025
|
quantity?: number;
|
|
95887
97026
|
sale_price?: number | null;
|
|
97027
|
+
trade_item_key?: string | null;
|
|
95888
97028
|
unit?: string;
|
|
95889
97029
|
updated_at?: string;
|
|
95890
97030
|
weight?: string | null;
|
|
@@ -96704,6 +97844,60 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
|
|
|
96704
97844
|
};
|
|
96705
97845
|
Relationships: [];
|
|
96706
97846
|
};
|
|
97847
|
+
stock_mutation_log: {
|
|
97848
|
+
Row: {
|
|
97849
|
+
connection_id: string | null;
|
|
97850
|
+
created_at: string;
|
|
97851
|
+
created_by: string | null;
|
|
97852
|
+
id: string;
|
|
97853
|
+
mutation_type: string;
|
|
97854
|
+
order_id: string | null;
|
|
97855
|
+
order_item_id: string | null;
|
|
97856
|
+
order_source: string | null;
|
|
97857
|
+
physical_after: number | null;
|
|
97858
|
+
physical_before: number | null;
|
|
97859
|
+
qty_delta: number;
|
|
97860
|
+
reason: string | null;
|
|
97861
|
+
reserved_after: number | null;
|
|
97862
|
+
reserved_before: number | null;
|
|
97863
|
+
trade_item_key: string;
|
|
97864
|
+
};
|
|
97865
|
+
Insert: {
|
|
97866
|
+
connection_id?: string | null;
|
|
97867
|
+
created_at?: string;
|
|
97868
|
+
created_by?: string | null;
|
|
97869
|
+
id?: string;
|
|
97870
|
+
mutation_type: string;
|
|
97871
|
+
order_id?: string | null;
|
|
97872
|
+
order_item_id?: string | null;
|
|
97873
|
+
order_source?: string | null;
|
|
97874
|
+
physical_after?: number | null;
|
|
97875
|
+
physical_before?: number | null;
|
|
97876
|
+
qty_delta: number;
|
|
97877
|
+
reason?: string | null;
|
|
97878
|
+
reserved_after?: number | null;
|
|
97879
|
+
reserved_before?: number | null;
|
|
97880
|
+
trade_item_key: string;
|
|
97881
|
+
};
|
|
97882
|
+
Update: {
|
|
97883
|
+
connection_id?: string | null;
|
|
97884
|
+
created_at?: string;
|
|
97885
|
+
created_by?: string | null;
|
|
97886
|
+
id?: string;
|
|
97887
|
+
mutation_type?: string;
|
|
97888
|
+
order_id?: string | null;
|
|
97889
|
+
order_item_id?: string | null;
|
|
97890
|
+
order_source?: string | null;
|
|
97891
|
+
physical_after?: number | null;
|
|
97892
|
+
physical_before?: number | null;
|
|
97893
|
+
qty_delta?: number;
|
|
97894
|
+
reason?: string | null;
|
|
97895
|
+
reserved_after?: number | null;
|
|
97896
|
+
reserved_before?: number | null;
|
|
97897
|
+
trade_item_key?: string;
|
|
97898
|
+
};
|
|
97899
|
+
Relationships: [];
|
|
97900
|
+
};
|
|
96707
97901
|
supplier_products: {
|
|
96708
97902
|
Row: {
|
|
96709
97903
|
article_number: string | null;
|
|
@@ -98565,6 +99759,54 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
|
|
|
98565
99759
|
};
|
|
98566
99760
|
Returns: number;
|
|
98567
99761
|
};
|
|
99762
|
+
afh_city_code: {
|
|
99763
|
+
Args: {
|
|
99764
|
+
_city: string;
|
|
99765
|
+
_country: string;
|
|
99766
|
+
};
|
|
99767
|
+
Returns: string;
|
|
99768
|
+
};
|
|
99769
|
+
afh_normalize_country: {
|
|
99770
|
+
Args: {
|
|
99771
|
+
_raw: string;
|
|
99772
|
+
};
|
|
99773
|
+
Returns: string;
|
|
99774
|
+
};
|
|
99775
|
+
afh_normalize_nl_province: {
|
|
99776
|
+
Args: {
|
|
99777
|
+
_raw: string;
|
|
99778
|
+
};
|
|
99779
|
+
Returns: string;
|
|
99780
|
+
};
|
|
99781
|
+
afh_subtract_workdays: {
|
|
99782
|
+
Args: {
|
|
99783
|
+
_date: string;
|
|
99784
|
+
_days: number;
|
|
99785
|
+
};
|
|
99786
|
+
Returns: string;
|
|
99787
|
+
};
|
|
99788
|
+
apply_stock_consumption: {
|
|
99789
|
+
Args: {
|
|
99790
|
+
p_order_id: string;
|
|
99791
|
+
p_order_item_id: string;
|
|
99792
|
+
p_qty: number;
|
|
99793
|
+
p_reason: string;
|
|
99794
|
+
p_source: string;
|
|
99795
|
+
p_trade_item_key: string;
|
|
99796
|
+
};
|
|
99797
|
+
Returns: undefined;
|
|
99798
|
+
};
|
|
99799
|
+
apply_stock_reservation: {
|
|
99800
|
+
Args: {
|
|
99801
|
+
p_order_id: string;
|
|
99802
|
+
p_order_item_id: string;
|
|
99803
|
+
p_qty: number;
|
|
99804
|
+
p_reason: string;
|
|
99805
|
+
p_source: string;
|
|
99806
|
+
p_trade_item_key: string;
|
|
99807
|
+
};
|
|
99808
|
+
Returns: undefined;
|
|
99809
|
+
};
|
|
98568
99810
|
assign_cart_numbers: {
|
|
98569
99811
|
Args: {
|
|
98570
99812
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -98588,6 +99830,12 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
|
|
|
98588
99830
|
order_number: string;
|
|
98589
99831
|
}[];
|
|
98590
99832
|
};
|
|
99833
|
+
backfill_open_order_reservations: {
|
|
99834
|
+
Args: never;
|
|
99835
|
+
Returns: {
|
|
99836
|
+
processed_items: number;
|
|
99837
|
+
}[];
|
|
99838
|
+
};
|
|
98591
99839
|
call_exact_route: {
|
|
98592
99840
|
Args: {
|
|
98593
99841
|
path: string;
|
|
@@ -98637,6 +99885,12 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
|
|
|
98637
99885
|
table_name: string;
|
|
98638
99886
|
}[];
|
|
98639
99887
|
};
|
|
99888
|
+
dispatch_carrier_signups_sql: {
|
|
99889
|
+
Args: {
|
|
99890
|
+
_catchup?: string;
|
|
99891
|
+
};
|
|
99892
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
99893
|
+
};
|
|
98640
99894
|
email_auth_decrypt: {
|
|
98641
99895
|
Args: {
|
|
98642
99896
|
cipher: string;
|
|
@@ -98709,6 +99963,12 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
|
|
|
98709
99963
|
};
|
|
98710
99964
|
Returns: boolean;
|
|
98711
99965
|
};
|
|
99966
|
+
find_trade_item_key_by_name: {
|
|
99967
|
+
Args: {
|
|
99968
|
+
p_name: string;
|
|
99969
|
+
};
|
|
99970
|
+
Returns: string;
|
|
99971
|
+
};
|
|
98712
99972
|
format_cart_number: {
|
|
98713
99973
|
Args: {
|
|
98714
99974
|
p_pick_date: string;
|