@flowselections/mailbox-orders 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/integrations/supabase/auth-attacher.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/auth-attacher.js +24 -4
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +148 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +148 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +148 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.js +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +148 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/mailbox-template.functions.d.ts +888 -0
- package/dist-lib/lib/mailbox-template.functions.d.ts.map +1 -1
- package/dist-lib/lib/mailbox.functions.d.ts +2518 -1
- package/dist-lib/lib/mailbox.functions.d.ts.map +1 -1
- package/dist-lib/lib/mailbox.functions.js +43 -8
- package/package.json +1 -1
|
@@ -713,6 +713,7 @@ export declare const listTemplateFields: import("@tanstack/start-client-core").O
|
|
|
713
713
|
notes: string | null;
|
|
714
714
|
performed_at: string;
|
|
715
715
|
rescheduled_count: number;
|
|
716
|
+
stock_consumed_at: string | null;
|
|
716
717
|
total_carts: number;
|
|
717
718
|
updated_at: string;
|
|
718
719
|
user_id: string;
|
|
@@ -726,6 +727,7 @@ export declare const listTemplateFields: import("@tanstack/start-client-core").O
|
|
|
726
727
|
notes?: string | null;
|
|
727
728
|
performed_at?: string;
|
|
728
729
|
rescheduled_count?: number;
|
|
730
|
+
stock_consumed_at?: string | null;
|
|
729
731
|
total_carts?: number;
|
|
730
732
|
updated_at?: string;
|
|
731
733
|
user_id: string;
|
|
@@ -739,6 +741,7 @@ export declare const listTemplateFields: import("@tanstack/start-client-core").O
|
|
|
739
741
|
notes?: string | null;
|
|
740
742
|
performed_at?: string;
|
|
741
743
|
rescheduled_count?: number;
|
|
744
|
+
stock_consumed_at?: string | null;
|
|
742
745
|
total_carts?: number;
|
|
743
746
|
updated_at?: string;
|
|
744
747
|
user_id?: string;
|
|
@@ -6497,6 +6500,7 @@ export declare const listTemplateFields: import("@tanstack/start-client-core").O
|
|
|
6497
6500
|
purchase_price: number | null;
|
|
6498
6501
|
quantity: number;
|
|
6499
6502
|
sale_price: number | null;
|
|
6503
|
+
trade_item_key: string | null;
|
|
6500
6504
|
unit: string;
|
|
6501
6505
|
updated_at: string;
|
|
6502
6506
|
weight: string | null;
|
|
@@ -6519,6 +6523,7 @@ export declare const listTemplateFields: import("@tanstack/start-client-core").O
|
|
|
6519
6523
|
purchase_price?: number | null;
|
|
6520
6524
|
quantity?: number;
|
|
6521
6525
|
sale_price?: number | null;
|
|
6526
|
+
trade_item_key?: string | null;
|
|
6522
6527
|
unit?: string;
|
|
6523
6528
|
updated_at?: string;
|
|
6524
6529
|
weight?: string | null;
|
|
@@ -6541,6 +6546,7 @@ export declare const listTemplateFields: import("@tanstack/start-client-core").O
|
|
|
6541
6546
|
purchase_price?: number | null;
|
|
6542
6547
|
quantity?: number;
|
|
6543
6548
|
sale_price?: number | null;
|
|
6549
|
+
trade_item_key?: string | null;
|
|
6544
6550
|
unit?: string;
|
|
6545
6551
|
updated_at?: string;
|
|
6546
6552
|
weight?: string | null;
|
|
@@ -7360,6 +7366,60 @@ export declare const listTemplateFields: import("@tanstack/start-client-core").O
|
|
|
7360
7366
|
};
|
|
7361
7367
|
Relationships: [];
|
|
7362
7368
|
};
|
|
7369
|
+
stock_mutation_log: {
|
|
7370
|
+
Row: {
|
|
7371
|
+
connection_id: string | null;
|
|
7372
|
+
created_at: string;
|
|
7373
|
+
created_by: string | null;
|
|
7374
|
+
id: string;
|
|
7375
|
+
mutation_type: string;
|
|
7376
|
+
order_id: string | null;
|
|
7377
|
+
order_item_id: string | null;
|
|
7378
|
+
order_source: string | null;
|
|
7379
|
+
physical_after: number | null;
|
|
7380
|
+
physical_before: number | null;
|
|
7381
|
+
qty_delta: number;
|
|
7382
|
+
reason: string | null;
|
|
7383
|
+
reserved_after: number | null;
|
|
7384
|
+
reserved_before: number | null;
|
|
7385
|
+
trade_item_key: string;
|
|
7386
|
+
};
|
|
7387
|
+
Insert: {
|
|
7388
|
+
connection_id?: string | null;
|
|
7389
|
+
created_at?: string;
|
|
7390
|
+
created_by?: string | null;
|
|
7391
|
+
id?: string;
|
|
7392
|
+
mutation_type: string;
|
|
7393
|
+
order_id?: string | null;
|
|
7394
|
+
order_item_id?: string | null;
|
|
7395
|
+
order_source?: string | null;
|
|
7396
|
+
physical_after?: number | null;
|
|
7397
|
+
physical_before?: number | null;
|
|
7398
|
+
qty_delta: number;
|
|
7399
|
+
reason?: string | null;
|
|
7400
|
+
reserved_after?: number | null;
|
|
7401
|
+
reserved_before?: number | null;
|
|
7402
|
+
trade_item_key: string;
|
|
7403
|
+
};
|
|
7404
|
+
Update: {
|
|
7405
|
+
connection_id?: string | null;
|
|
7406
|
+
created_at?: string;
|
|
7407
|
+
created_by?: string | null;
|
|
7408
|
+
id?: string;
|
|
7409
|
+
mutation_type?: string;
|
|
7410
|
+
order_id?: string | null;
|
|
7411
|
+
order_item_id?: string | null;
|
|
7412
|
+
order_source?: string | null;
|
|
7413
|
+
physical_after?: number | null;
|
|
7414
|
+
physical_before?: number | null;
|
|
7415
|
+
qty_delta?: number;
|
|
7416
|
+
reason?: string | null;
|
|
7417
|
+
reserved_after?: number | null;
|
|
7418
|
+
reserved_before?: number | null;
|
|
7419
|
+
trade_item_key?: string;
|
|
7420
|
+
};
|
|
7421
|
+
Relationships: [];
|
|
7422
|
+
};
|
|
7363
7423
|
supplier_products: {
|
|
7364
7424
|
Row: {
|
|
7365
7425
|
article_number: string | null;
|
|
@@ -9221,6 +9281,54 @@ export declare const listTemplateFields: import("@tanstack/start-client-core").O
|
|
|
9221
9281
|
};
|
|
9222
9282
|
Returns: number;
|
|
9223
9283
|
};
|
|
9284
|
+
afh_city_code: {
|
|
9285
|
+
Args: {
|
|
9286
|
+
_city: string;
|
|
9287
|
+
_country: string;
|
|
9288
|
+
};
|
|
9289
|
+
Returns: string;
|
|
9290
|
+
};
|
|
9291
|
+
afh_normalize_country: {
|
|
9292
|
+
Args: {
|
|
9293
|
+
_raw: string;
|
|
9294
|
+
};
|
|
9295
|
+
Returns: string;
|
|
9296
|
+
};
|
|
9297
|
+
afh_normalize_nl_province: {
|
|
9298
|
+
Args: {
|
|
9299
|
+
_raw: string;
|
|
9300
|
+
};
|
|
9301
|
+
Returns: string;
|
|
9302
|
+
};
|
|
9303
|
+
afh_subtract_workdays: {
|
|
9304
|
+
Args: {
|
|
9305
|
+
_date: string;
|
|
9306
|
+
_days: number;
|
|
9307
|
+
};
|
|
9308
|
+
Returns: string;
|
|
9309
|
+
};
|
|
9310
|
+
apply_stock_consumption: {
|
|
9311
|
+
Args: {
|
|
9312
|
+
p_order_id: string;
|
|
9313
|
+
p_order_item_id: string;
|
|
9314
|
+
p_qty: number;
|
|
9315
|
+
p_reason: string;
|
|
9316
|
+
p_source: string;
|
|
9317
|
+
p_trade_item_key: string;
|
|
9318
|
+
};
|
|
9319
|
+
Returns: undefined;
|
|
9320
|
+
};
|
|
9321
|
+
apply_stock_reservation: {
|
|
9322
|
+
Args: {
|
|
9323
|
+
p_order_id: string;
|
|
9324
|
+
p_order_item_id: string;
|
|
9325
|
+
p_qty: number;
|
|
9326
|
+
p_reason: string;
|
|
9327
|
+
p_source: string;
|
|
9328
|
+
p_trade_item_key: string;
|
|
9329
|
+
};
|
|
9330
|
+
Returns: undefined;
|
|
9331
|
+
};
|
|
9224
9332
|
assign_cart_numbers: {
|
|
9225
9333
|
Args: {
|
|
9226
9334
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -9244,12 +9352,40 @@ export declare const listTemplateFields: import("@tanstack/start-client-core").O
|
|
|
9244
9352
|
order_number: string;
|
|
9245
9353
|
}[];
|
|
9246
9354
|
};
|
|
9355
|
+
backfill_open_order_reservations: {
|
|
9356
|
+
Args: never;
|
|
9357
|
+
Returns: {
|
|
9358
|
+
processed_items: number;
|
|
9359
|
+
}[];
|
|
9360
|
+
};
|
|
9247
9361
|
call_exact_route: {
|
|
9248
9362
|
Args: {
|
|
9249
9363
|
path: string;
|
|
9250
9364
|
};
|
|
9251
9365
|
Returns: number;
|
|
9252
9366
|
};
|
|
9367
|
+
check_offer_product_available_stock: {
|
|
9368
|
+
Args: {
|
|
9369
|
+
p_campaign_product_id: string;
|
|
9370
|
+
p_code: string;
|
|
9371
|
+
p_needed_qty?: number;
|
|
9372
|
+
p_product_name?: string;
|
|
9373
|
+
};
|
|
9374
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9375
|
+
};
|
|
9376
|
+
check_trade_item_available_stock: {
|
|
9377
|
+
Args: {
|
|
9378
|
+
p_connection_id?: string;
|
|
9379
|
+
p_context?: string;
|
|
9380
|
+
p_needed_qty?: number;
|
|
9381
|
+
p_order_id?: string;
|
|
9382
|
+
p_order_item_id?: string;
|
|
9383
|
+
p_owner_id?: string;
|
|
9384
|
+
p_product_name?: string;
|
|
9385
|
+
p_trade_item_key: string;
|
|
9386
|
+
};
|
|
9387
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9388
|
+
};
|
|
9253
9389
|
cleanup_old_bookings: {
|
|
9254
9390
|
Args: never;
|
|
9255
9391
|
Returns: number;
|
|
@@ -9293,6 +9429,12 @@ export declare const listTemplateFields: import("@tanstack/start-client-core").O
|
|
|
9293
9429
|
table_name: string;
|
|
9294
9430
|
}[];
|
|
9295
9431
|
};
|
|
9432
|
+
dispatch_carrier_signups_sql: {
|
|
9433
|
+
Args: {
|
|
9434
|
+
_catchup?: string;
|
|
9435
|
+
};
|
|
9436
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9437
|
+
};
|
|
9296
9438
|
email_auth_decrypt: {
|
|
9297
9439
|
Args: {
|
|
9298
9440
|
cipher: string;
|
|
@@ -9365,6 +9507,12 @@ export declare const listTemplateFields: import("@tanstack/start-client-core").O
|
|
|
9365
9507
|
};
|
|
9366
9508
|
Returns: boolean;
|
|
9367
9509
|
};
|
|
9510
|
+
find_trade_item_key_by_name: {
|
|
9511
|
+
Args: {
|
|
9512
|
+
p_name: string;
|
|
9513
|
+
};
|
|
9514
|
+
Returns: string;
|
|
9515
|
+
};
|
|
9368
9516
|
format_cart_number: {
|
|
9369
9517
|
Args: {
|
|
9370
9518
|
p_pick_date: string;
|
|
@@ -10642,6 +10790,7 @@ export declare const upsertTemplateField: import("@tanstack/start-client-core").
|
|
|
10642
10790
|
notes: string | null;
|
|
10643
10791
|
performed_at: string;
|
|
10644
10792
|
rescheduled_count: number;
|
|
10793
|
+
stock_consumed_at: string | null;
|
|
10645
10794
|
total_carts: number;
|
|
10646
10795
|
updated_at: string;
|
|
10647
10796
|
user_id: string;
|
|
@@ -10655,6 +10804,7 @@ export declare const upsertTemplateField: import("@tanstack/start-client-core").
|
|
|
10655
10804
|
notes?: string | null;
|
|
10656
10805
|
performed_at?: string;
|
|
10657
10806
|
rescheduled_count?: number;
|
|
10807
|
+
stock_consumed_at?: string | null;
|
|
10658
10808
|
total_carts?: number;
|
|
10659
10809
|
updated_at?: string;
|
|
10660
10810
|
user_id: string;
|
|
@@ -10668,6 +10818,7 @@ export declare const upsertTemplateField: import("@tanstack/start-client-core").
|
|
|
10668
10818
|
notes?: string | null;
|
|
10669
10819
|
performed_at?: string;
|
|
10670
10820
|
rescheduled_count?: number;
|
|
10821
|
+
stock_consumed_at?: string | null;
|
|
10671
10822
|
total_carts?: number;
|
|
10672
10823
|
updated_at?: string;
|
|
10673
10824
|
user_id?: string;
|
|
@@ -16426,6 +16577,7 @@ export declare const upsertTemplateField: import("@tanstack/start-client-core").
|
|
|
16426
16577
|
purchase_price: number | null;
|
|
16427
16578
|
quantity: number;
|
|
16428
16579
|
sale_price: number | null;
|
|
16580
|
+
trade_item_key: string | null;
|
|
16429
16581
|
unit: string;
|
|
16430
16582
|
updated_at: string;
|
|
16431
16583
|
weight: string | null;
|
|
@@ -16448,6 +16600,7 @@ export declare const upsertTemplateField: import("@tanstack/start-client-core").
|
|
|
16448
16600
|
purchase_price?: number | null;
|
|
16449
16601
|
quantity?: number;
|
|
16450
16602
|
sale_price?: number | null;
|
|
16603
|
+
trade_item_key?: string | null;
|
|
16451
16604
|
unit?: string;
|
|
16452
16605
|
updated_at?: string;
|
|
16453
16606
|
weight?: string | null;
|
|
@@ -16470,6 +16623,7 @@ export declare const upsertTemplateField: import("@tanstack/start-client-core").
|
|
|
16470
16623
|
purchase_price?: number | null;
|
|
16471
16624
|
quantity?: number;
|
|
16472
16625
|
sale_price?: number | null;
|
|
16626
|
+
trade_item_key?: string | null;
|
|
16473
16627
|
unit?: string;
|
|
16474
16628
|
updated_at?: string;
|
|
16475
16629
|
weight?: string | null;
|
|
@@ -17289,6 +17443,60 @@ export declare const upsertTemplateField: import("@tanstack/start-client-core").
|
|
|
17289
17443
|
};
|
|
17290
17444
|
Relationships: [];
|
|
17291
17445
|
};
|
|
17446
|
+
stock_mutation_log: {
|
|
17447
|
+
Row: {
|
|
17448
|
+
connection_id: string | null;
|
|
17449
|
+
created_at: string;
|
|
17450
|
+
created_by: string | null;
|
|
17451
|
+
id: string;
|
|
17452
|
+
mutation_type: string;
|
|
17453
|
+
order_id: string | null;
|
|
17454
|
+
order_item_id: string | null;
|
|
17455
|
+
order_source: string | null;
|
|
17456
|
+
physical_after: number | null;
|
|
17457
|
+
physical_before: number | null;
|
|
17458
|
+
qty_delta: number;
|
|
17459
|
+
reason: string | null;
|
|
17460
|
+
reserved_after: number | null;
|
|
17461
|
+
reserved_before: number | null;
|
|
17462
|
+
trade_item_key: string;
|
|
17463
|
+
};
|
|
17464
|
+
Insert: {
|
|
17465
|
+
connection_id?: string | null;
|
|
17466
|
+
created_at?: string;
|
|
17467
|
+
created_by?: string | null;
|
|
17468
|
+
id?: string;
|
|
17469
|
+
mutation_type: string;
|
|
17470
|
+
order_id?: string | null;
|
|
17471
|
+
order_item_id?: string | null;
|
|
17472
|
+
order_source?: string | null;
|
|
17473
|
+
physical_after?: number | null;
|
|
17474
|
+
physical_before?: number | null;
|
|
17475
|
+
qty_delta: number;
|
|
17476
|
+
reason?: string | null;
|
|
17477
|
+
reserved_after?: number | null;
|
|
17478
|
+
reserved_before?: number | null;
|
|
17479
|
+
trade_item_key: string;
|
|
17480
|
+
};
|
|
17481
|
+
Update: {
|
|
17482
|
+
connection_id?: string | null;
|
|
17483
|
+
created_at?: string;
|
|
17484
|
+
created_by?: string | null;
|
|
17485
|
+
id?: string;
|
|
17486
|
+
mutation_type?: string;
|
|
17487
|
+
order_id?: string | null;
|
|
17488
|
+
order_item_id?: string | null;
|
|
17489
|
+
order_source?: string | null;
|
|
17490
|
+
physical_after?: number | null;
|
|
17491
|
+
physical_before?: number | null;
|
|
17492
|
+
qty_delta?: number;
|
|
17493
|
+
reason?: string | null;
|
|
17494
|
+
reserved_after?: number | null;
|
|
17495
|
+
reserved_before?: number | null;
|
|
17496
|
+
trade_item_key?: string;
|
|
17497
|
+
};
|
|
17498
|
+
Relationships: [];
|
|
17499
|
+
};
|
|
17292
17500
|
supplier_products: {
|
|
17293
17501
|
Row: {
|
|
17294
17502
|
article_number: string | null;
|
|
@@ -19150,6 +19358,54 @@ export declare const upsertTemplateField: import("@tanstack/start-client-core").
|
|
|
19150
19358
|
};
|
|
19151
19359
|
Returns: number;
|
|
19152
19360
|
};
|
|
19361
|
+
afh_city_code: {
|
|
19362
|
+
Args: {
|
|
19363
|
+
_city: string;
|
|
19364
|
+
_country: string;
|
|
19365
|
+
};
|
|
19366
|
+
Returns: string;
|
|
19367
|
+
};
|
|
19368
|
+
afh_normalize_country: {
|
|
19369
|
+
Args: {
|
|
19370
|
+
_raw: string;
|
|
19371
|
+
};
|
|
19372
|
+
Returns: string;
|
|
19373
|
+
};
|
|
19374
|
+
afh_normalize_nl_province: {
|
|
19375
|
+
Args: {
|
|
19376
|
+
_raw: string;
|
|
19377
|
+
};
|
|
19378
|
+
Returns: string;
|
|
19379
|
+
};
|
|
19380
|
+
afh_subtract_workdays: {
|
|
19381
|
+
Args: {
|
|
19382
|
+
_date: string;
|
|
19383
|
+
_days: number;
|
|
19384
|
+
};
|
|
19385
|
+
Returns: string;
|
|
19386
|
+
};
|
|
19387
|
+
apply_stock_consumption: {
|
|
19388
|
+
Args: {
|
|
19389
|
+
p_order_id: string;
|
|
19390
|
+
p_order_item_id: string;
|
|
19391
|
+
p_qty: number;
|
|
19392
|
+
p_reason: string;
|
|
19393
|
+
p_source: string;
|
|
19394
|
+
p_trade_item_key: string;
|
|
19395
|
+
};
|
|
19396
|
+
Returns: undefined;
|
|
19397
|
+
};
|
|
19398
|
+
apply_stock_reservation: {
|
|
19399
|
+
Args: {
|
|
19400
|
+
p_order_id: string;
|
|
19401
|
+
p_order_item_id: string;
|
|
19402
|
+
p_qty: number;
|
|
19403
|
+
p_reason: string;
|
|
19404
|
+
p_source: string;
|
|
19405
|
+
p_trade_item_key: string;
|
|
19406
|
+
};
|
|
19407
|
+
Returns: undefined;
|
|
19408
|
+
};
|
|
19153
19409
|
assign_cart_numbers: {
|
|
19154
19410
|
Args: {
|
|
19155
19411
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -19173,12 +19429,40 @@ export declare const upsertTemplateField: import("@tanstack/start-client-core").
|
|
|
19173
19429
|
order_number: string;
|
|
19174
19430
|
}[];
|
|
19175
19431
|
};
|
|
19432
|
+
backfill_open_order_reservations: {
|
|
19433
|
+
Args: never;
|
|
19434
|
+
Returns: {
|
|
19435
|
+
processed_items: number;
|
|
19436
|
+
}[];
|
|
19437
|
+
};
|
|
19176
19438
|
call_exact_route: {
|
|
19177
19439
|
Args: {
|
|
19178
19440
|
path: string;
|
|
19179
19441
|
};
|
|
19180
19442
|
Returns: number;
|
|
19181
19443
|
};
|
|
19444
|
+
check_offer_product_available_stock: {
|
|
19445
|
+
Args: {
|
|
19446
|
+
p_campaign_product_id: string;
|
|
19447
|
+
p_code: string;
|
|
19448
|
+
p_needed_qty?: number;
|
|
19449
|
+
p_product_name?: string;
|
|
19450
|
+
};
|
|
19451
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19452
|
+
};
|
|
19453
|
+
check_trade_item_available_stock: {
|
|
19454
|
+
Args: {
|
|
19455
|
+
p_connection_id?: string;
|
|
19456
|
+
p_context?: string;
|
|
19457
|
+
p_needed_qty?: number;
|
|
19458
|
+
p_order_id?: string;
|
|
19459
|
+
p_order_item_id?: string;
|
|
19460
|
+
p_owner_id?: string;
|
|
19461
|
+
p_product_name?: string;
|
|
19462
|
+
p_trade_item_key: string;
|
|
19463
|
+
};
|
|
19464
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19465
|
+
};
|
|
19182
19466
|
cleanup_old_bookings: {
|
|
19183
19467
|
Args: never;
|
|
19184
19468
|
Returns: number;
|
|
@@ -19222,6 +19506,12 @@ export declare const upsertTemplateField: import("@tanstack/start-client-core").
|
|
|
19222
19506
|
table_name: string;
|
|
19223
19507
|
}[];
|
|
19224
19508
|
};
|
|
19509
|
+
dispatch_carrier_signups_sql: {
|
|
19510
|
+
Args: {
|
|
19511
|
+
_catchup?: string;
|
|
19512
|
+
};
|
|
19513
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19514
|
+
};
|
|
19225
19515
|
email_auth_decrypt: {
|
|
19226
19516
|
Args: {
|
|
19227
19517
|
cipher: string;
|
|
@@ -19294,6 +19584,12 @@ export declare const upsertTemplateField: import("@tanstack/start-client-core").
|
|
|
19294
19584
|
};
|
|
19295
19585
|
Returns: boolean;
|
|
19296
19586
|
};
|
|
19587
|
+
find_trade_item_key_by_name: {
|
|
19588
|
+
Args: {
|
|
19589
|
+
p_name: string;
|
|
19590
|
+
};
|
|
19591
|
+
Returns: string;
|
|
19592
|
+
};
|
|
19297
19593
|
format_cart_number: {
|
|
19298
19594
|
Args: {
|
|
19299
19595
|
p_pick_date: string;
|
|
@@ -20573,6 +20869,7 @@ export declare const deleteTemplateField: import("@tanstack/start-client-core").
|
|
|
20573
20869
|
notes: string | null;
|
|
20574
20870
|
performed_at: string;
|
|
20575
20871
|
rescheduled_count: number;
|
|
20872
|
+
stock_consumed_at: string | null;
|
|
20576
20873
|
total_carts: number;
|
|
20577
20874
|
updated_at: string;
|
|
20578
20875
|
user_id: string;
|
|
@@ -20586,6 +20883,7 @@ export declare const deleteTemplateField: import("@tanstack/start-client-core").
|
|
|
20586
20883
|
notes?: string | null;
|
|
20587
20884
|
performed_at?: string;
|
|
20588
20885
|
rescheduled_count?: number;
|
|
20886
|
+
stock_consumed_at?: string | null;
|
|
20589
20887
|
total_carts?: number;
|
|
20590
20888
|
updated_at?: string;
|
|
20591
20889
|
user_id: string;
|
|
@@ -20599,6 +20897,7 @@ export declare const deleteTemplateField: import("@tanstack/start-client-core").
|
|
|
20599
20897
|
notes?: string | null;
|
|
20600
20898
|
performed_at?: string;
|
|
20601
20899
|
rescheduled_count?: number;
|
|
20900
|
+
stock_consumed_at?: string | null;
|
|
20602
20901
|
total_carts?: number;
|
|
20603
20902
|
updated_at?: string;
|
|
20604
20903
|
user_id?: string;
|
|
@@ -26357,6 +26656,7 @@ export declare const deleteTemplateField: import("@tanstack/start-client-core").
|
|
|
26357
26656
|
purchase_price: number | null;
|
|
26358
26657
|
quantity: number;
|
|
26359
26658
|
sale_price: number | null;
|
|
26659
|
+
trade_item_key: string | null;
|
|
26360
26660
|
unit: string;
|
|
26361
26661
|
updated_at: string;
|
|
26362
26662
|
weight: string | null;
|
|
@@ -26379,6 +26679,7 @@ export declare const deleteTemplateField: import("@tanstack/start-client-core").
|
|
|
26379
26679
|
purchase_price?: number | null;
|
|
26380
26680
|
quantity?: number;
|
|
26381
26681
|
sale_price?: number | null;
|
|
26682
|
+
trade_item_key?: string | null;
|
|
26382
26683
|
unit?: string;
|
|
26383
26684
|
updated_at?: string;
|
|
26384
26685
|
weight?: string | null;
|
|
@@ -26401,6 +26702,7 @@ export declare const deleteTemplateField: import("@tanstack/start-client-core").
|
|
|
26401
26702
|
purchase_price?: number | null;
|
|
26402
26703
|
quantity?: number;
|
|
26403
26704
|
sale_price?: number | null;
|
|
26705
|
+
trade_item_key?: string | null;
|
|
26404
26706
|
unit?: string;
|
|
26405
26707
|
updated_at?: string;
|
|
26406
26708
|
weight?: string | null;
|
|
@@ -27220,6 +27522,60 @@ export declare const deleteTemplateField: import("@tanstack/start-client-core").
|
|
|
27220
27522
|
};
|
|
27221
27523
|
Relationships: [];
|
|
27222
27524
|
};
|
|
27525
|
+
stock_mutation_log: {
|
|
27526
|
+
Row: {
|
|
27527
|
+
connection_id: string | null;
|
|
27528
|
+
created_at: string;
|
|
27529
|
+
created_by: string | null;
|
|
27530
|
+
id: string;
|
|
27531
|
+
mutation_type: string;
|
|
27532
|
+
order_id: string | null;
|
|
27533
|
+
order_item_id: string | null;
|
|
27534
|
+
order_source: string | null;
|
|
27535
|
+
physical_after: number | null;
|
|
27536
|
+
physical_before: number | null;
|
|
27537
|
+
qty_delta: number;
|
|
27538
|
+
reason: string | null;
|
|
27539
|
+
reserved_after: number | null;
|
|
27540
|
+
reserved_before: number | null;
|
|
27541
|
+
trade_item_key: string;
|
|
27542
|
+
};
|
|
27543
|
+
Insert: {
|
|
27544
|
+
connection_id?: string | null;
|
|
27545
|
+
created_at?: string;
|
|
27546
|
+
created_by?: string | null;
|
|
27547
|
+
id?: string;
|
|
27548
|
+
mutation_type: string;
|
|
27549
|
+
order_id?: string | null;
|
|
27550
|
+
order_item_id?: string | null;
|
|
27551
|
+
order_source?: string | null;
|
|
27552
|
+
physical_after?: number | null;
|
|
27553
|
+
physical_before?: number | null;
|
|
27554
|
+
qty_delta: number;
|
|
27555
|
+
reason?: string | null;
|
|
27556
|
+
reserved_after?: number | null;
|
|
27557
|
+
reserved_before?: number | null;
|
|
27558
|
+
trade_item_key: string;
|
|
27559
|
+
};
|
|
27560
|
+
Update: {
|
|
27561
|
+
connection_id?: string | null;
|
|
27562
|
+
created_at?: string;
|
|
27563
|
+
created_by?: string | null;
|
|
27564
|
+
id?: string;
|
|
27565
|
+
mutation_type?: string;
|
|
27566
|
+
order_id?: string | null;
|
|
27567
|
+
order_item_id?: string | null;
|
|
27568
|
+
order_source?: string | null;
|
|
27569
|
+
physical_after?: number | null;
|
|
27570
|
+
physical_before?: number | null;
|
|
27571
|
+
qty_delta?: number;
|
|
27572
|
+
reason?: string | null;
|
|
27573
|
+
reserved_after?: number | null;
|
|
27574
|
+
reserved_before?: number | null;
|
|
27575
|
+
trade_item_key?: string;
|
|
27576
|
+
};
|
|
27577
|
+
Relationships: [];
|
|
27578
|
+
};
|
|
27223
27579
|
supplier_products: {
|
|
27224
27580
|
Row: {
|
|
27225
27581
|
article_number: string | null;
|
|
@@ -29081,6 +29437,54 @@ export declare const deleteTemplateField: import("@tanstack/start-client-core").
|
|
|
29081
29437
|
};
|
|
29082
29438
|
Returns: number;
|
|
29083
29439
|
};
|
|
29440
|
+
afh_city_code: {
|
|
29441
|
+
Args: {
|
|
29442
|
+
_city: string;
|
|
29443
|
+
_country: string;
|
|
29444
|
+
};
|
|
29445
|
+
Returns: string;
|
|
29446
|
+
};
|
|
29447
|
+
afh_normalize_country: {
|
|
29448
|
+
Args: {
|
|
29449
|
+
_raw: string;
|
|
29450
|
+
};
|
|
29451
|
+
Returns: string;
|
|
29452
|
+
};
|
|
29453
|
+
afh_normalize_nl_province: {
|
|
29454
|
+
Args: {
|
|
29455
|
+
_raw: string;
|
|
29456
|
+
};
|
|
29457
|
+
Returns: string;
|
|
29458
|
+
};
|
|
29459
|
+
afh_subtract_workdays: {
|
|
29460
|
+
Args: {
|
|
29461
|
+
_date: string;
|
|
29462
|
+
_days: number;
|
|
29463
|
+
};
|
|
29464
|
+
Returns: string;
|
|
29465
|
+
};
|
|
29466
|
+
apply_stock_consumption: {
|
|
29467
|
+
Args: {
|
|
29468
|
+
p_order_id: string;
|
|
29469
|
+
p_order_item_id: string;
|
|
29470
|
+
p_qty: number;
|
|
29471
|
+
p_reason: string;
|
|
29472
|
+
p_source: string;
|
|
29473
|
+
p_trade_item_key: string;
|
|
29474
|
+
};
|
|
29475
|
+
Returns: undefined;
|
|
29476
|
+
};
|
|
29477
|
+
apply_stock_reservation: {
|
|
29478
|
+
Args: {
|
|
29479
|
+
p_order_id: string;
|
|
29480
|
+
p_order_item_id: string;
|
|
29481
|
+
p_qty: number;
|
|
29482
|
+
p_reason: string;
|
|
29483
|
+
p_source: string;
|
|
29484
|
+
p_trade_item_key: string;
|
|
29485
|
+
};
|
|
29486
|
+
Returns: undefined;
|
|
29487
|
+
};
|
|
29084
29488
|
assign_cart_numbers: {
|
|
29085
29489
|
Args: {
|
|
29086
29490
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -29104,12 +29508,40 @@ export declare const deleteTemplateField: import("@tanstack/start-client-core").
|
|
|
29104
29508
|
order_number: string;
|
|
29105
29509
|
}[];
|
|
29106
29510
|
};
|
|
29511
|
+
backfill_open_order_reservations: {
|
|
29512
|
+
Args: never;
|
|
29513
|
+
Returns: {
|
|
29514
|
+
processed_items: number;
|
|
29515
|
+
}[];
|
|
29516
|
+
};
|
|
29107
29517
|
call_exact_route: {
|
|
29108
29518
|
Args: {
|
|
29109
29519
|
path: string;
|
|
29110
29520
|
};
|
|
29111
29521
|
Returns: number;
|
|
29112
29522
|
};
|
|
29523
|
+
check_offer_product_available_stock: {
|
|
29524
|
+
Args: {
|
|
29525
|
+
p_campaign_product_id: string;
|
|
29526
|
+
p_code: string;
|
|
29527
|
+
p_needed_qty?: number;
|
|
29528
|
+
p_product_name?: string;
|
|
29529
|
+
};
|
|
29530
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29531
|
+
};
|
|
29532
|
+
check_trade_item_available_stock: {
|
|
29533
|
+
Args: {
|
|
29534
|
+
p_connection_id?: string;
|
|
29535
|
+
p_context?: string;
|
|
29536
|
+
p_needed_qty?: number;
|
|
29537
|
+
p_order_id?: string;
|
|
29538
|
+
p_order_item_id?: string;
|
|
29539
|
+
p_owner_id?: string;
|
|
29540
|
+
p_product_name?: string;
|
|
29541
|
+
p_trade_item_key: string;
|
|
29542
|
+
};
|
|
29543
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29544
|
+
};
|
|
29113
29545
|
cleanup_old_bookings: {
|
|
29114
29546
|
Args: never;
|
|
29115
29547
|
Returns: number;
|
|
@@ -29153,6 +29585,12 @@ export declare const deleteTemplateField: import("@tanstack/start-client-core").
|
|
|
29153
29585
|
table_name: string;
|
|
29154
29586
|
}[];
|
|
29155
29587
|
};
|
|
29588
|
+
dispatch_carrier_signups_sql: {
|
|
29589
|
+
Args: {
|
|
29590
|
+
_catchup?: string;
|
|
29591
|
+
};
|
|
29592
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29593
|
+
};
|
|
29156
29594
|
email_auth_decrypt: {
|
|
29157
29595
|
Args: {
|
|
29158
29596
|
cipher: string;
|
|
@@ -29225,6 +29663,12 @@ export declare const deleteTemplateField: import("@tanstack/start-client-core").
|
|
|
29225
29663
|
};
|
|
29226
29664
|
Returns: boolean;
|
|
29227
29665
|
};
|
|
29666
|
+
find_trade_item_key_by_name: {
|
|
29667
|
+
Args: {
|
|
29668
|
+
p_name: string;
|
|
29669
|
+
};
|
|
29670
|
+
Returns: string;
|
|
29671
|
+
};
|
|
29228
29672
|
format_cart_number: {
|
|
29229
29673
|
Args: {
|
|
29230
29674
|
p_pick_date: string;
|
|
@@ -30488,6 +30932,7 @@ export declare const reorderTemplateFields: import("@tanstack/start-client-core"
|
|
|
30488
30932
|
notes: string | null;
|
|
30489
30933
|
performed_at: string;
|
|
30490
30934
|
rescheduled_count: number;
|
|
30935
|
+
stock_consumed_at: string | null;
|
|
30491
30936
|
total_carts: number;
|
|
30492
30937
|
updated_at: string;
|
|
30493
30938
|
user_id: string;
|
|
@@ -30501,6 +30946,7 @@ export declare const reorderTemplateFields: import("@tanstack/start-client-core"
|
|
|
30501
30946
|
notes?: string | null;
|
|
30502
30947
|
performed_at?: string;
|
|
30503
30948
|
rescheduled_count?: number;
|
|
30949
|
+
stock_consumed_at?: string | null;
|
|
30504
30950
|
total_carts?: number;
|
|
30505
30951
|
updated_at?: string;
|
|
30506
30952
|
user_id: string;
|
|
@@ -30514,6 +30960,7 @@ export declare const reorderTemplateFields: import("@tanstack/start-client-core"
|
|
|
30514
30960
|
notes?: string | null;
|
|
30515
30961
|
performed_at?: string;
|
|
30516
30962
|
rescheduled_count?: number;
|
|
30963
|
+
stock_consumed_at?: string | null;
|
|
30517
30964
|
total_carts?: number;
|
|
30518
30965
|
updated_at?: string;
|
|
30519
30966
|
user_id?: string;
|
|
@@ -36272,6 +36719,7 @@ export declare const reorderTemplateFields: import("@tanstack/start-client-core"
|
|
|
36272
36719
|
purchase_price: number | null;
|
|
36273
36720
|
quantity: number;
|
|
36274
36721
|
sale_price: number | null;
|
|
36722
|
+
trade_item_key: string | null;
|
|
36275
36723
|
unit: string;
|
|
36276
36724
|
updated_at: string;
|
|
36277
36725
|
weight: string | null;
|
|
@@ -36294,6 +36742,7 @@ export declare const reorderTemplateFields: import("@tanstack/start-client-core"
|
|
|
36294
36742
|
purchase_price?: number | null;
|
|
36295
36743
|
quantity?: number;
|
|
36296
36744
|
sale_price?: number | null;
|
|
36745
|
+
trade_item_key?: string | null;
|
|
36297
36746
|
unit?: string;
|
|
36298
36747
|
updated_at?: string;
|
|
36299
36748
|
weight?: string | null;
|
|
@@ -36316,6 +36765,7 @@ export declare const reorderTemplateFields: import("@tanstack/start-client-core"
|
|
|
36316
36765
|
purchase_price?: number | null;
|
|
36317
36766
|
quantity?: number;
|
|
36318
36767
|
sale_price?: number | null;
|
|
36768
|
+
trade_item_key?: string | null;
|
|
36319
36769
|
unit?: string;
|
|
36320
36770
|
updated_at?: string;
|
|
36321
36771
|
weight?: string | null;
|
|
@@ -37135,6 +37585,60 @@ export declare const reorderTemplateFields: import("@tanstack/start-client-core"
|
|
|
37135
37585
|
};
|
|
37136
37586
|
Relationships: [];
|
|
37137
37587
|
};
|
|
37588
|
+
stock_mutation_log: {
|
|
37589
|
+
Row: {
|
|
37590
|
+
connection_id: string | null;
|
|
37591
|
+
created_at: string;
|
|
37592
|
+
created_by: string | null;
|
|
37593
|
+
id: string;
|
|
37594
|
+
mutation_type: string;
|
|
37595
|
+
order_id: string | null;
|
|
37596
|
+
order_item_id: string | null;
|
|
37597
|
+
order_source: string | null;
|
|
37598
|
+
physical_after: number | null;
|
|
37599
|
+
physical_before: number | null;
|
|
37600
|
+
qty_delta: number;
|
|
37601
|
+
reason: string | null;
|
|
37602
|
+
reserved_after: number | null;
|
|
37603
|
+
reserved_before: number | null;
|
|
37604
|
+
trade_item_key: string;
|
|
37605
|
+
};
|
|
37606
|
+
Insert: {
|
|
37607
|
+
connection_id?: string | null;
|
|
37608
|
+
created_at?: string;
|
|
37609
|
+
created_by?: string | null;
|
|
37610
|
+
id?: string;
|
|
37611
|
+
mutation_type: string;
|
|
37612
|
+
order_id?: string | null;
|
|
37613
|
+
order_item_id?: string | null;
|
|
37614
|
+
order_source?: string | null;
|
|
37615
|
+
physical_after?: number | null;
|
|
37616
|
+
physical_before?: number | null;
|
|
37617
|
+
qty_delta: number;
|
|
37618
|
+
reason?: string | null;
|
|
37619
|
+
reserved_after?: number | null;
|
|
37620
|
+
reserved_before?: number | null;
|
|
37621
|
+
trade_item_key: string;
|
|
37622
|
+
};
|
|
37623
|
+
Update: {
|
|
37624
|
+
connection_id?: string | null;
|
|
37625
|
+
created_at?: string;
|
|
37626
|
+
created_by?: string | null;
|
|
37627
|
+
id?: string;
|
|
37628
|
+
mutation_type?: string;
|
|
37629
|
+
order_id?: string | null;
|
|
37630
|
+
order_item_id?: string | null;
|
|
37631
|
+
order_source?: string | null;
|
|
37632
|
+
physical_after?: number | null;
|
|
37633
|
+
physical_before?: number | null;
|
|
37634
|
+
qty_delta?: number;
|
|
37635
|
+
reason?: string | null;
|
|
37636
|
+
reserved_after?: number | null;
|
|
37637
|
+
reserved_before?: number | null;
|
|
37638
|
+
trade_item_key?: string;
|
|
37639
|
+
};
|
|
37640
|
+
Relationships: [];
|
|
37641
|
+
};
|
|
37138
37642
|
supplier_products: {
|
|
37139
37643
|
Row: {
|
|
37140
37644
|
article_number: string | null;
|
|
@@ -38996,6 +39500,54 @@ export declare const reorderTemplateFields: import("@tanstack/start-client-core"
|
|
|
38996
39500
|
};
|
|
38997
39501
|
Returns: number;
|
|
38998
39502
|
};
|
|
39503
|
+
afh_city_code: {
|
|
39504
|
+
Args: {
|
|
39505
|
+
_city: string;
|
|
39506
|
+
_country: string;
|
|
39507
|
+
};
|
|
39508
|
+
Returns: string;
|
|
39509
|
+
};
|
|
39510
|
+
afh_normalize_country: {
|
|
39511
|
+
Args: {
|
|
39512
|
+
_raw: string;
|
|
39513
|
+
};
|
|
39514
|
+
Returns: string;
|
|
39515
|
+
};
|
|
39516
|
+
afh_normalize_nl_province: {
|
|
39517
|
+
Args: {
|
|
39518
|
+
_raw: string;
|
|
39519
|
+
};
|
|
39520
|
+
Returns: string;
|
|
39521
|
+
};
|
|
39522
|
+
afh_subtract_workdays: {
|
|
39523
|
+
Args: {
|
|
39524
|
+
_date: string;
|
|
39525
|
+
_days: number;
|
|
39526
|
+
};
|
|
39527
|
+
Returns: string;
|
|
39528
|
+
};
|
|
39529
|
+
apply_stock_consumption: {
|
|
39530
|
+
Args: {
|
|
39531
|
+
p_order_id: string;
|
|
39532
|
+
p_order_item_id: string;
|
|
39533
|
+
p_qty: number;
|
|
39534
|
+
p_reason: string;
|
|
39535
|
+
p_source: string;
|
|
39536
|
+
p_trade_item_key: string;
|
|
39537
|
+
};
|
|
39538
|
+
Returns: undefined;
|
|
39539
|
+
};
|
|
39540
|
+
apply_stock_reservation: {
|
|
39541
|
+
Args: {
|
|
39542
|
+
p_order_id: string;
|
|
39543
|
+
p_order_item_id: string;
|
|
39544
|
+
p_qty: number;
|
|
39545
|
+
p_reason: string;
|
|
39546
|
+
p_source: string;
|
|
39547
|
+
p_trade_item_key: string;
|
|
39548
|
+
};
|
|
39549
|
+
Returns: undefined;
|
|
39550
|
+
};
|
|
38999
39551
|
assign_cart_numbers: {
|
|
39000
39552
|
Args: {
|
|
39001
39553
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -39019,12 +39571,40 @@ export declare const reorderTemplateFields: import("@tanstack/start-client-core"
|
|
|
39019
39571
|
order_number: string;
|
|
39020
39572
|
}[];
|
|
39021
39573
|
};
|
|
39574
|
+
backfill_open_order_reservations: {
|
|
39575
|
+
Args: never;
|
|
39576
|
+
Returns: {
|
|
39577
|
+
processed_items: number;
|
|
39578
|
+
}[];
|
|
39579
|
+
};
|
|
39022
39580
|
call_exact_route: {
|
|
39023
39581
|
Args: {
|
|
39024
39582
|
path: string;
|
|
39025
39583
|
};
|
|
39026
39584
|
Returns: number;
|
|
39027
39585
|
};
|
|
39586
|
+
check_offer_product_available_stock: {
|
|
39587
|
+
Args: {
|
|
39588
|
+
p_campaign_product_id: string;
|
|
39589
|
+
p_code: string;
|
|
39590
|
+
p_needed_qty?: number;
|
|
39591
|
+
p_product_name?: string;
|
|
39592
|
+
};
|
|
39593
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
39594
|
+
};
|
|
39595
|
+
check_trade_item_available_stock: {
|
|
39596
|
+
Args: {
|
|
39597
|
+
p_connection_id?: string;
|
|
39598
|
+
p_context?: string;
|
|
39599
|
+
p_needed_qty?: number;
|
|
39600
|
+
p_order_id?: string;
|
|
39601
|
+
p_order_item_id?: string;
|
|
39602
|
+
p_owner_id?: string;
|
|
39603
|
+
p_product_name?: string;
|
|
39604
|
+
p_trade_item_key: string;
|
|
39605
|
+
};
|
|
39606
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
39607
|
+
};
|
|
39028
39608
|
cleanup_old_bookings: {
|
|
39029
39609
|
Args: never;
|
|
39030
39610
|
Returns: number;
|
|
@@ -39068,6 +39648,12 @@ export declare const reorderTemplateFields: import("@tanstack/start-client-core"
|
|
|
39068
39648
|
table_name: string;
|
|
39069
39649
|
}[];
|
|
39070
39650
|
};
|
|
39651
|
+
dispatch_carrier_signups_sql: {
|
|
39652
|
+
Args: {
|
|
39653
|
+
_catchup?: string;
|
|
39654
|
+
};
|
|
39655
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
39656
|
+
};
|
|
39071
39657
|
email_auth_decrypt: {
|
|
39072
39658
|
Args: {
|
|
39073
39659
|
cipher: string;
|
|
@@ -39140,6 +39726,12 @@ export declare const reorderTemplateFields: import("@tanstack/start-client-core"
|
|
|
39140
39726
|
};
|
|
39141
39727
|
Returns: boolean;
|
|
39142
39728
|
};
|
|
39729
|
+
find_trade_item_key_by_name: {
|
|
39730
|
+
Args: {
|
|
39731
|
+
p_name: string;
|
|
39732
|
+
};
|
|
39733
|
+
Returns: string;
|
|
39734
|
+
};
|
|
39143
39735
|
format_cart_number: {
|
|
39144
39736
|
Args: {
|
|
39145
39737
|
p_pick_date: string;
|
|
@@ -40403,6 +40995,7 @@ export declare const listPlantTypesForPicker: import("@tanstack/start-client-cor
|
|
|
40403
40995
|
notes: string | null;
|
|
40404
40996
|
performed_at: string;
|
|
40405
40997
|
rescheduled_count: number;
|
|
40998
|
+
stock_consumed_at: string | null;
|
|
40406
40999
|
total_carts: number;
|
|
40407
41000
|
updated_at: string;
|
|
40408
41001
|
user_id: string;
|
|
@@ -40416,6 +41009,7 @@ export declare const listPlantTypesForPicker: import("@tanstack/start-client-cor
|
|
|
40416
41009
|
notes?: string | null;
|
|
40417
41010
|
performed_at?: string;
|
|
40418
41011
|
rescheduled_count?: number;
|
|
41012
|
+
stock_consumed_at?: string | null;
|
|
40419
41013
|
total_carts?: number;
|
|
40420
41014
|
updated_at?: string;
|
|
40421
41015
|
user_id: string;
|
|
@@ -40429,6 +41023,7 @@ export declare const listPlantTypesForPicker: import("@tanstack/start-client-cor
|
|
|
40429
41023
|
notes?: string | null;
|
|
40430
41024
|
performed_at?: string;
|
|
40431
41025
|
rescheduled_count?: number;
|
|
41026
|
+
stock_consumed_at?: string | null;
|
|
40432
41027
|
total_carts?: number;
|
|
40433
41028
|
updated_at?: string;
|
|
40434
41029
|
user_id?: string;
|
|
@@ -46187,6 +46782,7 @@ export declare const listPlantTypesForPicker: import("@tanstack/start-client-cor
|
|
|
46187
46782
|
purchase_price: number | null;
|
|
46188
46783
|
quantity: number;
|
|
46189
46784
|
sale_price: number | null;
|
|
46785
|
+
trade_item_key: string | null;
|
|
46190
46786
|
unit: string;
|
|
46191
46787
|
updated_at: string;
|
|
46192
46788
|
weight: string | null;
|
|
@@ -46209,6 +46805,7 @@ export declare const listPlantTypesForPicker: import("@tanstack/start-client-cor
|
|
|
46209
46805
|
purchase_price?: number | null;
|
|
46210
46806
|
quantity?: number;
|
|
46211
46807
|
sale_price?: number | null;
|
|
46808
|
+
trade_item_key?: string | null;
|
|
46212
46809
|
unit?: string;
|
|
46213
46810
|
updated_at?: string;
|
|
46214
46811
|
weight?: string | null;
|
|
@@ -46231,6 +46828,7 @@ export declare const listPlantTypesForPicker: import("@tanstack/start-client-cor
|
|
|
46231
46828
|
purchase_price?: number | null;
|
|
46232
46829
|
quantity?: number;
|
|
46233
46830
|
sale_price?: number | null;
|
|
46831
|
+
trade_item_key?: string | null;
|
|
46234
46832
|
unit?: string;
|
|
46235
46833
|
updated_at?: string;
|
|
46236
46834
|
weight?: string | null;
|
|
@@ -47050,6 +47648,60 @@ export declare const listPlantTypesForPicker: import("@tanstack/start-client-cor
|
|
|
47050
47648
|
};
|
|
47051
47649
|
Relationships: [];
|
|
47052
47650
|
};
|
|
47651
|
+
stock_mutation_log: {
|
|
47652
|
+
Row: {
|
|
47653
|
+
connection_id: string | null;
|
|
47654
|
+
created_at: string;
|
|
47655
|
+
created_by: string | null;
|
|
47656
|
+
id: string;
|
|
47657
|
+
mutation_type: string;
|
|
47658
|
+
order_id: string | null;
|
|
47659
|
+
order_item_id: string | null;
|
|
47660
|
+
order_source: string | null;
|
|
47661
|
+
physical_after: number | null;
|
|
47662
|
+
physical_before: number | null;
|
|
47663
|
+
qty_delta: number;
|
|
47664
|
+
reason: string | null;
|
|
47665
|
+
reserved_after: number | null;
|
|
47666
|
+
reserved_before: number | null;
|
|
47667
|
+
trade_item_key: string;
|
|
47668
|
+
};
|
|
47669
|
+
Insert: {
|
|
47670
|
+
connection_id?: string | null;
|
|
47671
|
+
created_at?: string;
|
|
47672
|
+
created_by?: string | null;
|
|
47673
|
+
id?: string;
|
|
47674
|
+
mutation_type: string;
|
|
47675
|
+
order_id?: string | null;
|
|
47676
|
+
order_item_id?: string | null;
|
|
47677
|
+
order_source?: string | null;
|
|
47678
|
+
physical_after?: number | null;
|
|
47679
|
+
physical_before?: number | null;
|
|
47680
|
+
qty_delta: number;
|
|
47681
|
+
reason?: string | null;
|
|
47682
|
+
reserved_after?: number | null;
|
|
47683
|
+
reserved_before?: number | null;
|
|
47684
|
+
trade_item_key: string;
|
|
47685
|
+
};
|
|
47686
|
+
Update: {
|
|
47687
|
+
connection_id?: string | null;
|
|
47688
|
+
created_at?: string;
|
|
47689
|
+
created_by?: string | null;
|
|
47690
|
+
id?: string;
|
|
47691
|
+
mutation_type?: string;
|
|
47692
|
+
order_id?: string | null;
|
|
47693
|
+
order_item_id?: string | null;
|
|
47694
|
+
order_source?: string | null;
|
|
47695
|
+
physical_after?: number | null;
|
|
47696
|
+
physical_before?: number | null;
|
|
47697
|
+
qty_delta?: number;
|
|
47698
|
+
reason?: string | null;
|
|
47699
|
+
reserved_after?: number | null;
|
|
47700
|
+
reserved_before?: number | null;
|
|
47701
|
+
trade_item_key?: string;
|
|
47702
|
+
};
|
|
47703
|
+
Relationships: [];
|
|
47704
|
+
};
|
|
47053
47705
|
supplier_products: {
|
|
47054
47706
|
Row: {
|
|
47055
47707
|
article_number: string | null;
|
|
@@ -48911,6 +49563,54 @@ export declare const listPlantTypesForPicker: import("@tanstack/start-client-cor
|
|
|
48911
49563
|
};
|
|
48912
49564
|
Returns: number;
|
|
48913
49565
|
};
|
|
49566
|
+
afh_city_code: {
|
|
49567
|
+
Args: {
|
|
49568
|
+
_city: string;
|
|
49569
|
+
_country: string;
|
|
49570
|
+
};
|
|
49571
|
+
Returns: string;
|
|
49572
|
+
};
|
|
49573
|
+
afh_normalize_country: {
|
|
49574
|
+
Args: {
|
|
49575
|
+
_raw: string;
|
|
49576
|
+
};
|
|
49577
|
+
Returns: string;
|
|
49578
|
+
};
|
|
49579
|
+
afh_normalize_nl_province: {
|
|
49580
|
+
Args: {
|
|
49581
|
+
_raw: string;
|
|
49582
|
+
};
|
|
49583
|
+
Returns: string;
|
|
49584
|
+
};
|
|
49585
|
+
afh_subtract_workdays: {
|
|
49586
|
+
Args: {
|
|
49587
|
+
_date: string;
|
|
49588
|
+
_days: number;
|
|
49589
|
+
};
|
|
49590
|
+
Returns: string;
|
|
49591
|
+
};
|
|
49592
|
+
apply_stock_consumption: {
|
|
49593
|
+
Args: {
|
|
49594
|
+
p_order_id: string;
|
|
49595
|
+
p_order_item_id: string;
|
|
49596
|
+
p_qty: number;
|
|
49597
|
+
p_reason: string;
|
|
49598
|
+
p_source: string;
|
|
49599
|
+
p_trade_item_key: string;
|
|
49600
|
+
};
|
|
49601
|
+
Returns: undefined;
|
|
49602
|
+
};
|
|
49603
|
+
apply_stock_reservation: {
|
|
49604
|
+
Args: {
|
|
49605
|
+
p_order_id: string;
|
|
49606
|
+
p_order_item_id: string;
|
|
49607
|
+
p_qty: number;
|
|
49608
|
+
p_reason: string;
|
|
49609
|
+
p_source: string;
|
|
49610
|
+
p_trade_item_key: string;
|
|
49611
|
+
};
|
|
49612
|
+
Returns: undefined;
|
|
49613
|
+
};
|
|
48914
49614
|
assign_cart_numbers: {
|
|
48915
49615
|
Args: {
|
|
48916
49616
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -48934,12 +49634,40 @@ export declare const listPlantTypesForPicker: import("@tanstack/start-client-cor
|
|
|
48934
49634
|
order_number: string;
|
|
48935
49635
|
}[];
|
|
48936
49636
|
};
|
|
49637
|
+
backfill_open_order_reservations: {
|
|
49638
|
+
Args: never;
|
|
49639
|
+
Returns: {
|
|
49640
|
+
processed_items: number;
|
|
49641
|
+
}[];
|
|
49642
|
+
};
|
|
48937
49643
|
call_exact_route: {
|
|
48938
49644
|
Args: {
|
|
48939
49645
|
path: string;
|
|
48940
49646
|
};
|
|
48941
49647
|
Returns: number;
|
|
48942
49648
|
};
|
|
49649
|
+
check_offer_product_available_stock: {
|
|
49650
|
+
Args: {
|
|
49651
|
+
p_campaign_product_id: string;
|
|
49652
|
+
p_code: string;
|
|
49653
|
+
p_needed_qty?: number;
|
|
49654
|
+
p_product_name?: string;
|
|
49655
|
+
};
|
|
49656
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
49657
|
+
};
|
|
49658
|
+
check_trade_item_available_stock: {
|
|
49659
|
+
Args: {
|
|
49660
|
+
p_connection_id?: string;
|
|
49661
|
+
p_context?: string;
|
|
49662
|
+
p_needed_qty?: number;
|
|
49663
|
+
p_order_id?: string;
|
|
49664
|
+
p_order_item_id?: string;
|
|
49665
|
+
p_owner_id?: string;
|
|
49666
|
+
p_product_name?: string;
|
|
49667
|
+
p_trade_item_key: string;
|
|
49668
|
+
};
|
|
49669
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
49670
|
+
};
|
|
48943
49671
|
cleanup_old_bookings: {
|
|
48944
49672
|
Args: never;
|
|
48945
49673
|
Returns: number;
|
|
@@ -48983,6 +49711,12 @@ export declare const listPlantTypesForPicker: import("@tanstack/start-client-cor
|
|
|
48983
49711
|
table_name: string;
|
|
48984
49712
|
}[];
|
|
48985
49713
|
};
|
|
49714
|
+
dispatch_carrier_signups_sql: {
|
|
49715
|
+
Args: {
|
|
49716
|
+
_catchup?: string;
|
|
49717
|
+
};
|
|
49718
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
49719
|
+
};
|
|
48986
49720
|
email_auth_decrypt: {
|
|
48987
49721
|
Args: {
|
|
48988
49722
|
cipher: string;
|
|
@@ -49055,6 +49789,12 @@ export declare const listPlantTypesForPicker: import("@tanstack/start-client-cor
|
|
|
49055
49789
|
};
|
|
49056
49790
|
Returns: boolean;
|
|
49057
49791
|
};
|
|
49792
|
+
find_trade_item_key_by_name: {
|
|
49793
|
+
Args: {
|
|
49794
|
+
p_name: string;
|
|
49795
|
+
};
|
|
49796
|
+
Returns: string;
|
|
49797
|
+
};
|
|
49058
49798
|
format_cart_number: {
|
|
49059
49799
|
Args: {
|
|
49060
49800
|
p_pick_date: string;
|
|
@@ -50319,6 +51059,7 @@ export declare const listSuppliersForPicker: import("@tanstack/start-client-core
|
|
|
50319
51059
|
notes: string | null;
|
|
50320
51060
|
performed_at: string;
|
|
50321
51061
|
rescheduled_count: number;
|
|
51062
|
+
stock_consumed_at: string | null;
|
|
50322
51063
|
total_carts: number;
|
|
50323
51064
|
updated_at: string;
|
|
50324
51065
|
user_id: string;
|
|
@@ -50332,6 +51073,7 @@ export declare const listSuppliersForPicker: import("@tanstack/start-client-core
|
|
|
50332
51073
|
notes?: string | null;
|
|
50333
51074
|
performed_at?: string;
|
|
50334
51075
|
rescheduled_count?: number;
|
|
51076
|
+
stock_consumed_at?: string | null;
|
|
50335
51077
|
total_carts?: number;
|
|
50336
51078
|
updated_at?: string;
|
|
50337
51079
|
user_id: string;
|
|
@@ -50345,6 +51087,7 @@ export declare const listSuppliersForPicker: import("@tanstack/start-client-core
|
|
|
50345
51087
|
notes?: string | null;
|
|
50346
51088
|
performed_at?: string;
|
|
50347
51089
|
rescheduled_count?: number;
|
|
51090
|
+
stock_consumed_at?: string | null;
|
|
50348
51091
|
total_carts?: number;
|
|
50349
51092
|
updated_at?: string;
|
|
50350
51093
|
user_id?: string;
|
|
@@ -56103,6 +56846,7 @@ export declare const listSuppliersForPicker: import("@tanstack/start-client-core
|
|
|
56103
56846
|
purchase_price: number | null;
|
|
56104
56847
|
quantity: number;
|
|
56105
56848
|
sale_price: number | null;
|
|
56849
|
+
trade_item_key: string | null;
|
|
56106
56850
|
unit: string;
|
|
56107
56851
|
updated_at: string;
|
|
56108
56852
|
weight: string | null;
|
|
@@ -56125,6 +56869,7 @@ export declare const listSuppliersForPicker: import("@tanstack/start-client-core
|
|
|
56125
56869
|
purchase_price?: number | null;
|
|
56126
56870
|
quantity?: number;
|
|
56127
56871
|
sale_price?: number | null;
|
|
56872
|
+
trade_item_key?: string | null;
|
|
56128
56873
|
unit?: string;
|
|
56129
56874
|
updated_at?: string;
|
|
56130
56875
|
weight?: string | null;
|
|
@@ -56147,6 +56892,7 @@ export declare const listSuppliersForPicker: import("@tanstack/start-client-core
|
|
|
56147
56892
|
purchase_price?: number | null;
|
|
56148
56893
|
quantity?: number;
|
|
56149
56894
|
sale_price?: number | null;
|
|
56895
|
+
trade_item_key?: string | null;
|
|
56150
56896
|
unit?: string;
|
|
56151
56897
|
updated_at?: string;
|
|
56152
56898
|
weight?: string | null;
|
|
@@ -56966,6 +57712,60 @@ export declare const listSuppliersForPicker: import("@tanstack/start-client-core
|
|
|
56966
57712
|
};
|
|
56967
57713
|
Relationships: [];
|
|
56968
57714
|
};
|
|
57715
|
+
stock_mutation_log: {
|
|
57716
|
+
Row: {
|
|
57717
|
+
connection_id: string | null;
|
|
57718
|
+
created_at: string;
|
|
57719
|
+
created_by: string | null;
|
|
57720
|
+
id: string;
|
|
57721
|
+
mutation_type: string;
|
|
57722
|
+
order_id: string | null;
|
|
57723
|
+
order_item_id: string | null;
|
|
57724
|
+
order_source: string | null;
|
|
57725
|
+
physical_after: number | null;
|
|
57726
|
+
physical_before: number | null;
|
|
57727
|
+
qty_delta: number;
|
|
57728
|
+
reason: string | null;
|
|
57729
|
+
reserved_after: number | null;
|
|
57730
|
+
reserved_before: number | null;
|
|
57731
|
+
trade_item_key: string;
|
|
57732
|
+
};
|
|
57733
|
+
Insert: {
|
|
57734
|
+
connection_id?: string | null;
|
|
57735
|
+
created_at?: string;
|
|
57736
|
+
created_by?: string | null;
|
|
57737
|
+
id?: string;
|
|
57738
|
+
mutation_type: string;
|
|
57739
|
+
order_id?: string | null;
|
|
57740
|
+
order_item_id?: string | null;
|
|
57741
|
+
order_source?: string | null;
|
|
57742
|
+
physical_after?: number | null;
|
|
57743
|
+
physical_before?: number | null;
|
|
57744
|
+
qty_delta: number;
|
|
57745
|
+
reason?: string | null;
|
|
57746
|
+
reserved_after?: number | null;
|
|
57747
|
+
reserved_before?: number | null;
|
|
57748
|
+
trade_item_key: string;
|
|
57749
|
+
};
|
|
57750
|
+
Update: {
|
|
57751
|
+
connection_id?: string | null;
|
|
57752
|
+
created_at?: string;
|
|
57753
|
+
created_by?: string | null;
|
|
57754
|
+
id?: string;
|
|
57755
|
+
mutation_type?: string;
|
|
57756
|
+
order_id?: string | null;
|
|
57757
|
+
order_item_id?: string | null;
|
|
57758
|
+
order_source?: string | null;
|
|
57759
|
+
physical_after?: number | null;
|
|
57760
|
+
physical_before?: number | null;
|
|
57761
|
+
qty_delta?: number;
|
|
57762
|
+
reason?: string | null;
|
|
57763
|
+
reserved_after?: number | null;
|
|
57764
|
+
reserved_before?: number | null;
|
|
57765
|
+
trade_item_key?: string;
|
|
57766
|
+
};
|
|
57767
|
+
Relationships: [];
|
|
57768
|
+
};
|
|
56969
57769
|
supplier_products: {
|
|
56970
57770
|
Row: {
|
|
56971
57771
|
article_number: string | null;
|
|
@@ -58827,6 +59627,54 @@ export declare const listSuppliersForPicker: import("@tanstack/start-client-core
|
|
|
58827
59627
|
};
|
|
58828
59628
|
Returns: number;
|
|
58829
59629
|
};
|
|
59630
|
+
afh_city_code: {
|
|
59631
|
+
Args: {
|
|
59632
|
+
_city: string;
|
|
59633
|
+
_country: string;
|
|
59634
|
+
};
|
|
59635
|
+
Returns: string;
|
|
59636
|
+
};
|
|
59637
|
+
afh_normalize_country: {
|
|
59638
|
+
Args: {
|
|
59639
|
+
_raw: string;
|
|
59640
|
+
};
|
|
59641
|
+
Returns: string;
|
|
59642
|
+
};
|
|
59643
|
+
afh_normalize_nl_province: {
|
|
59644
|
+
Args: {
|
|
59645
|
+
_raw: string;
|
|
59646
|
+
};
|
|
59647
|
+
Returns: string;
|
|
59648
|
+
};
|
|
59649
|
+
afh_subtract_workdays: {
|
|
59650
|
+
Args: {
|
|
59651
|
+
_date: string;
|
|
59652
|
+
_days: number;
|
|
59653
|
+
};
|
|
59654
|
+
Returns: string;
|
|
59655
|
+
};
|
|
59656
|
+
apply_stock_consumption: {
|
|
59657
|
+
Args: {
|
|
59658
|
+
p_order_id: string;
|
|
59659
|
+
p_order_item_id: string;
|
|
59660
|
+
p_qty: number;
|
|
59661
|
+
p_reason: string;
|
|
59662
|
+
p_source: string;
|
|
59663
|
+
p_trade_item_key: string;
|
|
59664
|
+
};
|
|
59665
|
+
Returns: undefined;
|
|
59666
|
+
};
|
|
59667
|
+
apply_stock_reservation: {
|
|
59668
|
+
Args: {
|
|
59669
|
+
p_order_id: string;
|
|
59670
|
+
p_order_item_id: string;
|
|
59671
|
+
p_qty: number;
|
|
59672
|
+
p_reason: string;
|
|
59673
|
+
p_source: string;
|
|
59674
|
+
p_trade_item_key: string;
|
|
59675
|
+
};
|
|
59676
|
+
Returns: undefined;
|
|
59677
|
+
};
|
|
58830
59678
|
assign_cart_numbers: {
|
|
58831
59679
|
Args: {
|
|
58832
59680
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -58850,12 +59698,40 @@ export declare const listSuppliersForPicker: import("@tanstack/start-client-core
|
|
|
58850
59698
|
order_number: string;
|
|
58851
59699
|
}[];
|
|
58852
59700
|
};
|
|
59701
|
+
backfill_open_order_reservations: {
|
|
59702
|
+
Args: never;
|
|
59703
|
+
Returns: {
|
|
59704
|
+
processed_items: number;
|
|
59705
|
+
}[];
|
|
59706
|
+
};
|
|
58853
59707
|
call_exact_route: {
|
|
58854
59708
|
Args: {
|
|
58855
59709
|
path: string;
|
|
58856
59710
|
};
|
|
58857
59711
|
Returns: number;
|
|
58858
59712
|
};
|
|
59713
|
+
check_offer_product_available_stock: {
|
|
59714
|
+
Args: {
|
|
59715
|
+
p_campaign_product_id: string;
|
|
59716
|
+
p_code: string;
|
|
59717
|
+
p_needed_qty?: number;
|
|
59718
|
+
p_product_name?: string;
|
|
59719
|
+
};
|
|
59720
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
59721
|
+
};
|
|
59722
|
+
check_trade_item_available_stock: {
|
|
59723
|
+
Args: {
|
|
59724
|
+
p_connection_id?: string;
|
|
59725
|
+
p_context?: string;
|
|
59726
|
+
p_needed_qty?: number;
|
|
59727
|
+
p_order_id?: string;
|
|
59728
|
+
p_order_item_id?: string;
|
|
59729
|
+
p_owner_id?: string;
|
|
59730
|
+
p_product_name?: string;
|
|
59731
|
+
p_trade_item_key: string;
|
|
59732
|
+
};
|
|
59733
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
59734
|
+
};
|
|
58859
59735
|
cleanup_old_bookings: {
|
|
58860
59736
|
Args: never;
|
|
58861
59737
|
Returns: number;
|
|
@@ -58899,6 +59775,12 @@ export declare const listSuppliersForPicker: import("@tanstack/start-client-core
|
|
|
58899
59775
|
table_name: string;
|
|
58900
59776
|
}[];
|
|
58901
59777
|
};
|
|
59778
|
+
dispatch_carrier_signups_sql: {
|
|
59779
|
+
Args: {
|
|
59780
|
+
_catchup?: string;
|
|
59781
|
+
};
|
|
59782
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
59783
|
+
};
|
|
58902
59784
|
email_auth_decrypt: {
|
|
58903
59785
|
Args: {
|
|
58904
59786
|
cipher: string;
|
|
@@ -58971,6 +59853,12 @@ export declare const listSuppliersForPicker: import("@tanstack/start-client-core
|
|
|
58971
59853
|
};
|
|
58972
59854
|
Returns: boolean;
|
|
58973
59855
|
};
|
|
59856
|
+
find_trade_item_key_by_name: {
|
|
59857
|
+
Args: {
|
|
59858
|
+
p_name: string;
|
|
59859
|
+
};
|
|
59860
|
+
Returns: string;
|
|
59861
|
+
};
|
|
58974
59862
|
format_cart_number: {
|
|
58975
59863
|
Args: {
|
|
58976
59864
|
p_pick_date: string;
|