@flowselections/floriday-verkoop-module 1.0.57 → 1.0.58
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/verkoop/AnalyticsCards.d.ts +1 -1
- package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
- package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +1 -1
- package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
- package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
- package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
- package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
- package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
- package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
- package/dist-lib/components/verkoop/EngineBufferCard.d.ts +1 -1
- package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +1 -1
- package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailPage.js +6 -6
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
- package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
- package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +2 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
- package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
- package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +1 -1
- package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
- package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +252 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +252 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.js +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +252 -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 +252 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cart-lock.functions.d.ts +252 -0
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +2772 -0
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +756 -0
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.d.ts +4284 -0
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +756 -0
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +504 -0
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +252 -0
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +1764 -0
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +1260 -0
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.d.ts +1008 -0
- package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
- package/dist-lib/lib/load-carriers.functions.d.ts +252 -0
- package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.d.ts +1275 -5
- package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-stock.functions.d.ts +504 -0
- package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.d.ts +252 -0
- package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.d.ts +756 -0
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-carrier.functions.d.ts +504 -0
- package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-pickup.functions.d.ts +504 -0
- package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +1008 -0
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.functions.d.ts +252 -0
- package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.d.ts +1260 -0
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +504 -0
- package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +252 -0
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrderDetailQuery.d.ts +1 -1
- package/dist-lib/lib/useSalesOrderDetailQuery.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.d.ts +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
- package/package.json +131 -131
- package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +0 -9
- package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +0 -1
- package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +0 -26
- package/dist-lib/components/karindeling/AfmetingenTab.d.ts +0 -6
- package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +0 -1
- package/dist-lib/components/karindeling/AfmetingenTab.js +0 -128
- package/dist-lib/components/karindeling/KarindelingPage.d.ts +0 -2
- package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +0 -1
- package/dist-lib/components/karindeling/KarindelingPage.js +0 -102
- package/dist-lib/components/ui/dropdown-menu.d.ts +0 -9
- package/dist-lib/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist-lib/components/ui/dropdown-menu.js +0 -14
- package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +0 -5
- package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +0 -1
- package/dist-lib/components/verkoop/CreateOrderDialog.js +0 -33
- package/dist-lib/lib/floriday/floriday.server.d.ts +0 -14
- package/dist-lib/lib/floriday/floriday.server.d.ts.map +0 -1
- package/dist-lib/lib/floriday/floriday.server.js +0 -92
- package/dist-lib/lib/floriday/sales-orders.functions.d.ts +0 -4736
- package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +0 -1
- package/dist-lib/lib/floriday/sales-orders.functions.js +0 -193
|
@@ -6102,6 +6102,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6102
6102
|
attempts: number;
|
|
6103
6103
|
connection_id: string;
|
|
6104
6104
|
created_at: string;
|
|
6105
|
+
dead_lettered_at: string | null;
|
|
6105
6106
|
desired_available: boolean | null;
|
|
6106
6107
|
gateway_attempt_id: string | null;
|
|
6107
6108
|
id: string;
|
|
@@ -6110,9 +6111,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6110
6111
|
locked_by: string | null;
|
|
6111
6112
|
next_attempt_at: string;
|
|
6112
6113
|
number_of_pieces: number;
|
|
6114
|
+
product_id: string | null;
|
|
6113
6115
|
sent_at: string | null;
|
|
6114
6116
|
status: string;
|
|
6117
|
+
stock_mode: string | null;
|
|
6115
6118
|
superseded_by: string | null;
|
|
6119
|
+
target_week: number | null;
|
|
6120
|
+
target_year: number | null;
|
|
6116
6121
|
trade_item_id: string;
|
|
6117
6122
|
updated_at: string;
|
|
6118
6123
|
user_id: string;
|
|
@@ -6121,6 +6126,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6121
6126
|
attempts?: number;
|
|
6122
6127
|
connection_id: string;
|
|
6123
6128
|
created_at?: string;
|
|
6129
|
+
dead_lettered_at?: string | null;
|
|
6124
6130
|
desired_available?: boolean | null;
|
|
6125
6131
|
gateway_attempt_id?: string | null;
|
|
6126
6132
|
id?: string;
|
|
@@ -6129,9 +6135,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6129
6135
|
locked_by?: string | null;
|
|
6130
6136
|
next_attempt_at?: string;
|
|
6131
6137
|
number_of_pieces?: number;
|
|
6138
|
+
product_id?: string | null;
|
|
6132
6139
|
sent_at?: string | null;
|
|
6133
6140
|
status?: string;
|
|
6141
|
+
stock_mode?: string | null;
|
|
6134
6142
|
superseded_by?: string | null;
|
|
6143
|
+
target_week?: number | null;
|
|
6144
|
+
target_year?: number | null;
|
|
6135
6145
|
trade_item_id: string;
|
|
6136
6146
|
updated_at?: string;
|
|
6137
6147
|
user_id: string;
|
|
@@ -6140,6 +6150,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6140
6150
|
attempts?: number;
|
|
6141
6151
|
connection_id?: string;
|
|
6142
6152
|
created_at?: string;
|
|
6153
|
+
dead_lettered_at?: string | null;
|
|
6143
6154
|
desired_available?: boolean | null;
|
|
6144
6155
|
gateway_attempt_id?: string | null;
|
|
6145
6156
|
id?: string;
|
|
@@ -6148,9 +6159,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6148
6159
|
locked_by?: string | null;
|
|
6149
6160
|
next_attempt_at?: string;
|
|
6150
6161
|
number_of_pieces?: number;
|
|
6162
|
+
product_id?: string | null;
|
|
6151
6163
|
sent_at?: string | null;
|
|
6152
6164
|
status?: string;
|
|
6165
|
+
stock_mode?: string | null;
|
|
6153
6166
|
superseded_by?: string | null;
|
|
6167
|
+
target_week?: number | null;
|
|
6168
|
+
target_year?: number | null;
|
|
6154
6169
|
trade_item_id?: string;
|
|
6155
6170
|
updated_at?: string;
|
|
6156
6171
|
user_id?: string;
|
|
@@ -6559,6 +6574,87 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6559
6574
|
referencedColumns: ["id"];
|
|
6560
6575
|
}];
|
|
6561
6576
|
};
|
|
6577
|
+
floriday_inventory_settings: {
|
|
6578
|
+
Row: {
|
|
6579
|
+
buffer_quantity: number;
|
|
6580
|
+
connection_id: string;
|
|
6581
|
+
created_at: string;
|
|
6582
|
+
desired_availability: boolean;
|
|
6583
|
+
desired_quantity: number;
|
|
6584
|
+
fixed_quantity: number | null;
|
|
6585
|
+
floriday_trade_item_id: string | null;
|
|
6586
|
+
id: string;
|
|
6587
|
+
last_confirmed_at: string | null;
|
|
6588
|
+
last_enqueued_at: string | null;
|
|
6589
|
+
last_published_at: string | null;
|
|
6590
|
+
last_sync_error: string | null;
|
|
6591
|
+
manual_quantity: number | null;
|
|
6592
|
+
maximum_quantity: number | null;
|
|
6593
|
+
product_id: string;
|
|
6594
|
+
quantity_control: string;
|
|
6595
|
+
remote_available: boolean | null;
|
|
6596
|
+
remote_checked_at: string | null;
|
|
6597
|
+
remote_quantity: number | null;
|
|
6598
|
+
stock_mode: string;
|
|
6599
|
+
sync_status: string;
|
|
6600
|
+
updated_at: string;
|
|
6601
|
+
updated_by: string | null;
|
|
6602
|
+
user_id: string;
|
|
6603
|
+
};
|
|
6604
|
+
Insert: {
|
|
6605
|
+
buffer_quantity?: number;
|
|
6606
|
+
connection_id: string;
|
|
6607
|
+
created_at?: string;
|
|
6608
|
+
desired_availability?: boolean;
|
|
6609
|
+
desired_quantity?: number;
|
|
6610
|
+
fixed_quantity?: number | null;
|
|
6611
|
+
floriday_trade_item_id?: string | null;
|
|
6612
|
+
id?: string;
|
|
6613
|
+
last_confirmed_at?: string | null;
|
|
6614
|
+
last_enqueued_at?: string | null;
|
|
6615
|
+
last_published_at?: string | null;
|
|
6616
|
+
last_sync_error?: string | null;
|
|
6617
|
+
manual_quantity?: number | null;
|
|
6618
|
+
maximum_quantity?: number | null;
|
|
6619
|
+
product_id: string;
|
|
6620
|
+
quantity_control?: string;
|
|
6621
|
+
remote_available?: boolean | null;
|
|
6622
|
+
remote_checked_at?: string | null;
|
|
6623
|
+
remote_quantity?: number | null;
|
|
6624
|
+
stock_mode?: string;
|
|
6625
|
+
sync_status?: string;
|
|
6626
|
+
updated_at?: string;
|
|
6627
|
+
updated_by?: string | null;
|
|
6628
|
+
user_id: string;
|
|
6629
|
+
};
|
|
6630
|
+
Update: {
|
|
6631
|
+
buffer_quantity?: number;
|
|
6632
|
+
connection_id?: string;
|
|
6633
|
+
created_at?: string;
|
|
6634
|
+
desired_availability?: boolean;
|
|
6635
|
+
desired_quantity?: number;
|
|
6636
|
+
fixed_quantity?: number | null;
|
|
6637
|
+
floriday_trade_item_id?: string | null;
|
|
6638
|
+
id?: string;
|
|
6639
|
+
last_confirmed_at?: string | null;
|
|
6640
|
+
last_enqueued_at?: string | null;
|
|
6641
|
+
last_published_at?: string | null;
|
|
6642
|
+
last_sync_error?: string | null;
|
|
6643
|
+
manual_quantity?: number | null;
|
|
6644
|
+
maximum_quantity?: number | null;
|
|
6645
|
+
product_id?: string;
|
|
6646
|
+
quantity_control?: string;
|
|
6647
|
+
remote_available?: boolean | null;
|
|
6648
|
+
remote_checked_at?: string | null;
|
|
6649
|
+
remote_quantity?: number | null;
|
|
6650
|
+
stock_mode?: string;
|
|
6651
|
+
sync_status?: string;
|
|
6652
|
+
updated_at?: string;
|
|
6653
|
+
updated_by?: string | null;
|
|
6654
|
+
user_id?: string;
|
|
6655
|
+
};
|
|
6656
|
+
Relationships: [];
|
|
6657
|
+
};
|
|
6562
6658
|
floriday_invoices_cache: {
|
|
6563
6659
|
Row: {
|
|
6564
6660
|
buyer_organization_id: string | null;
|
|
@@ -6847,6 +6943,39 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6847
6943
|
};
|
|
6848
6944
|
Relationships: [];
|
|
6849
6945
|
};
|
|
6946
|
+
floriday_sales_order_ingest: {
|
|
6947
|
+
Row: {
|
|
6948
|
+
connection_id: string;
|
|
6949
|
+
created_at: string;
|
|
6950
|
+
id: string;
|
|
6951
|
+
impact: import("../integrations/supabase/types").Json;
|
|
6952
|
+
order_status: string | null;
|
|
6953
|
+
order_version: number;
|
|
6954
|
+
processed_at: string;
|
|
6955
|
+
sales_order_id: string;
|
|
6956
|
+
};
|
|
6957
|
+
Insert: {
|
|
6958
|
+
connection_id: string;
|
|
6959
|
+
created_at?: string;
|
|
6960
|
+
id?: string;
|
|
6961
|
+
impact?: import("../integrations/supabase/types").Json;
|
|
6962
|
+
order_status?: string | null;
|
|
6963
|
+
order_version?: number;
|
|
6964
|
+
processed_at?: string;
|
|
6965
|
+
sales_order_id: string;
|
|
6966
|
+
};
|
|
6967
|
+
Update: {
|
|
6968
|
+
connection_id?: string;
|
|
6969
|
+
created_at?: string;
|
|
6970
|
+
id?: string;
|
|
6971
|
+
impact?: import("../integrations/supabase/types").Json;
|
|
6972
|
+
order_status?: string | null;
|
|
6973
|
+
order_version?: number;
|
|
6974
|
+
processed_at?: string;
|
|
6975
|
+
sales_order_id?: string;
|
|
6976
|
+
};
|
|
6977
|
+
Relationships: [];
|
|
6978
|
+
};
|
|
6850
6979
|
floriday_sales_strategies_cache: {
|
|
6851
6980
|
Row: {
|
|
6852
6981
|
connection_id: string;
|
|
@@ -6946,6 +7075,39 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6946
7075
|
};
|
|
6947
7076
|
Relationships: [];
|
|
6948
7077
|
};
|
|
7078
|
+
floriday_sync_cursors: {
|
|
7079
|
+
Row: {
|
|
7080
|
+
connection_id: string;
|
|
7081
|
+
created_at: string;
|
|
7082
|
+
id: string;
|
|
7083
|
+
last_error: string | null;
|
|
7084
|
+
last_sync_at: string | null;
|
|
7085
|
+
resource_type: string;
|
|
7086
|
+
sequence_number: number;
|
|
7087
|
+
updated_at: string;
|
|
7088
|
+
};
|
|
7089
|
+
Insert: {
|
|
7090
|
+
connection_id: string;
|
|
7091
|
+
created_at?: string;
|
|
7092
|
+
id?: string;
|
|
7093
|
+
last_error?: string | null;
|
|
7094
|
+
last_sync_at?: string | null;
|
|
7095
|
+
resource_type: string;
|
|
7096
|
+
sequence_number?: number;
|
|
7097
|
+
updated_at?: string;
|
|
7098
|
+
};
|
|
7099
|
+
Update: {
|
|
7100
|
+
connection_id?: string;
|
|
7101
|
+
created_at?: string;
|
|
7102
|
+
id?: string;
|
|
7103
|
+
last_error?: string | null;
|
|
7104
|
+
last_sync_at?: string | null;
|
|
7105
|
+
resource_type?: string;
|
|
7106
|
+
sequence_number?: number;
|
|
7107
|
+
updated_at?: string;
|
|
7108
|
+
};
|
|
7109
|
+
Relationships: [];
|
|
7110
|
+
};
|
|
6949
7111
|
floriday_sync_state: {
|
|
6950
7112
|
Row: {
|
|
6951
7113
|
connection_id: string;
|
|
@@ -7636,6 +7798,42 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7636
7798
|
};
|
|
7637
7799
|
Relationships: [];
|
|
7638
7800
|
};
|
|
7801
|
+
inventory_stock_snapshots: {
|
|
7802
|
+
Row: {
|
|
7803
|
+
connection_id: string;
|
|
7804
|
+
created_at: string;
|
|
7805
|
+
erp_available_quantity: number;
|
|
7806
|
+
floriday_desired_quantity: number;
|
|
7807
|
+
floriday_remote_quantity: number | null;
|
|
7808
|
+
granularity: string;
|
|
7809
|
+
id: string;
|
|
7810
|
+
snapshot_at: string;
|
|
7811
|
+
user_id: string | null;
|
|
7812
|
+
};
|
|
7813
|
+
Insert: {
|
|
7814
|
+
connection_id: string;
|
|
7815
|
+
created_at?: string;
|
|
7816
|
+
erp_available_quantity?: number;
|
|
7817
|
+
floriday_desired_quantity?: number;
|
|
7818
|
+
floriday_remote_quantity?: number | null;
|
|
7819
|
+
granularity?: string;
|
|
7820
|
+
id?: string;
|
|
7821
|
+
snapshot_at?: string;
|
|
7822
|
+
user_id?: string | null;
|
|
7823
|
+
};
|
|
7824
|
+
Update: {
|
|
7825
|
+
connection_id?: string;
|
|
7826
|
+
created_at?: string;
|
|
7827
|
+
erp_available_quantity?: number;
|
|
7828
|
+
floriday_desired_quantity?: number;
|
|
7829
|
+
floriday_remote_quantity?: number | null;
|
|
7830
|
+
granularity?: string;
|
|
7831
|
+
id?: string;
|
|
7832
|
+
snapshot_at?: string;
|
|
7833
|
+
user_id?: string | null;
|
|
7834
|
+
};
|
|
7835
|
+
Relationships: [];
|
|
7836
|
+
};
|
|
7639
7837
|
invoice_items: {
|
|
7640
7838
|
Row: {
|
|
7641
7839
|
created_at: string;
|
|
@@ -16830,6 +17028,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
16830
17028
|
};
|
|
16831
17029
|
trade_item_stock: {
|
|
16832
17030
|
Row: {
|
|
17031
|
+
change_source: string;
|
|
16833
17032
|
connection_id: string;
|
|
16834
17033
|
created_at: string;
|
|
16835
17034
|
id: string;
|
|
@@ -16843,6 +17042,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
16843
17042
|
user_id: string;
|
|
16844
17043
|
};
|
|
16845
17044
|
Insert: {
|
|
17045
|
+
change_source?: string;
|
|
16846
17046
|
connection_id: string;
|
|
16847
17047
|
created_at?: string;
|
|
16848
17048
|
id?: string;
|
|
@@ -16856,6 +17056,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
16856
17056
|
user_id: string;
|
|
16857
17057
|
};
|
|
16858
17058
|
Update: {
|
|
17059
|
+
change_source?: string;
|
|
16859
17060
|
connection_id?: string;
|
|
16860
17061
|
created_at?: string;
|
|
16861
17062
|
id?: string;
|
|
@@ -20456,6 +20657,18 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
20456
20657
|
Args: never;
|
|
20457
20658
|
Returns: number;
|
|
20458
20659
|
};
|
|
20660
|
+
calculate_floriday_desired_stock: {
|
|
20661
|
+
Args: {
|
|
20662
|
+
p_connection_id: string;
|
|
20663
|
+
p_product_id: string;
|
|
20664
|
+
};
|
|
20665
|
+
Returns: {
|
|
20666
|
+
desired_availability: boolean;
|
|
20667
|
+
desired_quantity: number;
|
|
20668
|
+
erp_available: number;
|
|
20669
|
+
stock_mode: string;
|
|
20670
|
+
}[];
|
|
20671
|
+
};
|
|
20459
20672
|
calculate_layer_stock: {
|
|
20460
20673
|
Args: {
|
|
20461
20674
|
p_product_id: string;
|
|
@@ -20550,6 +20763,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
20550
20763
|
attempts: number;
|
|
20551
20764
|
connection_id: string;
|
|
20552
20765
|
created_at: string;
|
|
20766
|
+
dead_lettered_at: string | null;
|
|
20553
20767
|
desired_available: boolean | null;
|
|
20554
20768
|
gateway_attempt_id: string | null;
|
|
20555
20769
|
id: string;
|
|
@@ -20558,9 +20772,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
20558
20772
|
locked_by: string | null;
|
|
20559
20773
|
next_attempt_at: string;
|
|
20560
20774
|
number_of_pieces: number;
|
|
20775
|
+
product_id: string | null;
|
|
20561
20776
|
sent_at: string | null;
|
|
20562
20777
|
status: string;
|
|
20778
|
+
stock_mode: string | null;
|
|
20563
20779
|
superseded_by: string | null;
|
|
20780
|
+
target_week: number | null;
|
|
20781
|
+
target_year: number | null;
|
|
20564
20782
|
trade_item_id: string;
|
|
20565
20783
|
updated_at: string;
|
|
20566
20784
|
user_id: string;
|
|
@@ -21041,6 +21259,24 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
21041
21259
|
};
|
|
21042
21260
|
Returns: string;
|
|
21043
21261
|
};
|
|
21262
|
+
floriday_capture_stock_snapshot: {
|
|
21263
|
+
Args: never;
|
|
21264
|
+
Returns: number;
|
|
21265
|
+
};
|
|
21266
|
+
floriday_cleanup_stock_queue_v2: {
|
|
21267
|
+
Args: never;
|
|
21268
|
+
Returns: undefined;
|
|
21269
|
+
};
|
|
21270
|
+
floriday_compact_stock_snapshots: {
|
|
21271
|
+
Args: never;
|
|
21272
|
+
Returns: undefined;
|
|
21273
|
+
};
|
|
21274
|
+
floriday_default_owner: {
|
|
21275
|
+
Args: {
|
|
21276
|
+
p_connection_id: string;
|
|
21277
|
+
};
|
|
21278
|
+
Returns: string;
|
|
21279
|
+
};
|
|
21044
21280
|
floriday_effective_price: {
|
|
21045
21281
|
Args: {
|
|
21046
21282
|
_buyer_id: string;
|
|
@@ -21058,6 +21294,22 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
21058
21294
|
source_id: string;
|
|
21059
21295
|
}[];
|
|
21060
21296
|
};
|
|
21297
|
+
floriday_fill_publish_horizon: {
|
|
21298
|
+
Args: never;
|
|
21299
|
+
Returns: number;
|
|
21300
|
+
};
|
|
21301
|
+
floriday_publish_horizon_weeks: {
|
|
21302
|
+
Args: never;
|
|
21303
|
+
Returns: number;
|
|
21304
|
+
};
|
|
21305
|
+
floriday_recompute_inventory: {
|
|
21306
|
+
Args: {
|
|
21307
|
+
p_connection_id: string;
|
|
21308
|
+
p_force?: boolean;
|
|
21309
|
+
p_product_id: string;
|
|
21310
|
+
};
|
|
21311
|
+
Returns: undefined;
|
|
21312
|
+
};
|
|
21061
21313
|
format_cart_number: {
|
|
21062
21314
|
Args: {
|
|
21063
21315
|
p_pick_date: string;
|
|
@@ -29693,6 +29945,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
29693
29945
|
attempts: number;
|
|
29694
29946
|
connection_id: string;
|
|
29695
29947
|
created_at: string;
|
|
29948
|
+
dead_lettered_at: string | null;
|
|
29696
29949
|
desired_available: boolean | null;
|
|
29697
29950
|
gateway_attempt_id: string | null;
|
|
29698
29951
|
id: string;
|
|
@@ -29701,9 +29954,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
29701
29954
|
locked_by: string | null;
|
|
29702
29955
|
next_attempt_at: string;
|
|
29703
29956
|
number_of_pieces: number;
|
|
29957
|
+
product_id: string | null;
|
|
29704
29958
|
sent_at: string | null;
|
|
29705
29959
|
status: string;
|
|
29960
|
+
stock_mode: string | null;
|
|
29706
29961
|
superseded_by: string | null;
|
|
29962
|
+
target_week: number | null;
|
|
29963
|
+
target_year: number | null;
|
|
29707
29964
|
trade_item_id: string;
|
|
29708
29965
|
updated_at: string;
|
|
29709
29966
|
user_id: string;
|
|
@@ -29712,6 +29969,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
29712
29969
|
attempts?: number;
|
|
29713
29970
|
connection_id: string;
|
|
29714
29971
|
created_at?: string;
|
|
29972
|
+
dead_lettered_at?: string | null;
|
|
29715
29973
|
desired_available?: boolean | null;
|
|
29716
29974
|
gateway_attempt_id?: string | null;
|
|
29717
29975
|
id?: string;
|
|
@@ -29720,9 +29978,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
29720
29978
|
locked_by?: string | null;
|
|
29721
29979
|
next_attempt_at?: string;
|
|
29722
29980
|
number_of_pieces?: number;
|
|
29981
|
+
product_id?: string | null;
|
|
29723
29982
|
sent_at?: string | null;
|
|
29724
29983
|
status?: string;
|
|
29984
|
+
stock_mode?: string | null;
|
|
29725
29985
|
superseded_by?: string | null;
|
|
29986
|
+
target_week?: number | null;
|
|
29987
|
+
target_year?: number | null;
|
|
29726
29988
|
trade_item_id: string;
|
|
29727
29989
|
updated_at?: string;
|
|
29728
29990
|
user_id: string;
|
|
@@ -29731,6 +29993,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
29731
29993
|
attempts?: number;
|
|
29732
29994
|
connection_id?: string;
|
|
29733
29995
|
created_at?: string;
|
|
29996
|
+
dead_lettered_at?: string | null;
|
|
29734
29997
|
desired_available?: boolean | null;
|
|
29735
29998
|
gateway_attempt_id?: string | null;
|
|
29736
29999
|
id?: string;
|
|
@@ -29739,9 +30002,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
29739
30002
|
locked_by?: string | null;
|
|
29740
30003
|
next_attempt_at?: string;
|
|
29741
30004
|
number_of_pieces?: number;
|
|
30005
|
+
product_id?: string | null;
|
|
29742
30006
|
sent_at?: string | null;
|
|
29743
30007
|
status?: string;
|
|
30008
|
+
stock_mode?: string | null;
|
|
29744
30009
|
superseded_by?: string | null;
|
|
30010
|
+
target_week?: number | null;
|
|
30011
|
+
target_year?: number | null;
|
|
29745
30012
|
trade_item_id?: string;
|
|
29746
30013
|
updated_at?: string;
|
|
29747
30014
|
user_id?: string;
|
|
@@ -30150,6 +30417,87 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
30150
30417
|
referencedColumns: ["id"];
|
|
30151
30418
|
}];
|
|
30152
30419
|
};
|
|
30420
|
+
floriday_inventory_settings: {
|
|
30421
|
+
Row: {
|
|
30422
|
+
buffer_quantity: number;
|
|
30423
|
+
connection_id: string;
|
|
30424
|
+
created_at: string;
|
|
30425
|
+
desired_availability: boolean;
|
|
30426
|
+
desired_quantity: number;
|
|
30427
|
+
fixed_quantity: number | null;
|
|
30428
|
+
floriday_trade_item_id: string | null;
|
|
30429
|
+
id: string;
|
|
30430
|
+
last_confirmed_at: string | null;
|
|
30431
|
+
last_enqueued_at: string | null;
|
|
30432
|
+
last_published_at: string | null;
|
|
30433
|
+
last_sync_error: string | null;
|
|
30434
|
+
manual_quantity: number | null;
|
|
30435
|
+
maximum_quantity: number | null;
|
|
30436
|
+
product_id: string;
|
|
30437
|
+
quantity_control: string;
|
|
30438
|
+
remote_available: boolean | null;
|
|
30439
|
+
remote_checked_at: string | null;
|
|
30440
|
+
remote_quantity: number | null;
|
|
30441
|
+
stock_mode: string;
|
|
30442
|
+
sync_status: string;
|
|
30443
|
+
updated_at: string;
|
|
30444
|
+
updated_by: string | null;
|
|
30445
|
+
user_id: string;
|
|
30446
|
+
};
|
|
30447
|
+
Insert: {
|
|
30448
|
+
buffer_quantity?: number;
|
|
30449
|
+
connection_id: string;
|
|
30450
|
+
created_at?: string;
|
|
30451
|
+
desired_availability?: boolean;
|
|
30452
|
+
desired_quantity?: number;
|
|
30453
|
+
fixed_quantity?: number | null;
|
|
30454
|
+
floriday_trade_item_id?: string | null;
|
|
30455
|
+
id?: string;
|
|
30456
|
+
last_confirmed_at?: string | null;
|
|
30457
|
+
last_enqueued_at?: string | null;
|
|
30458
|
+
last_published_at?: string | null;
|
|
30459
|
+
last_sync_error?: string | null;
|
|
30460
|
+
manual_quantity?: number | null;
|
|
30461
|
+
maximum_quantity?: number | null;
|
|
30462
|
+
product_id: string;
|
|
30463
|
+
quantity_control?: string;
|
|
30464
|
+
remote_available?: boolean | null;
|
|
30465
|
+
remote_checked_at?: string | null;
|
|
30466
|
+
remote_quantity?: number | null;
|
|
30467
|
+
stock_mode?: string;
|
|
30468
|
+
sync_status?: string;
|
|
30469
|
+
updated_at?: string;
|
|
30470
|
+
updated_by?: string | null;
|
|
30471
|
+
user_id: string;
|
|
30472
|
+
};
|
|
30473
|
+
Update: {
|
|
30474
|
+
buffer_quantity?: number;
|
|
30475
|
+
connection_id?: string;
|
|
30476
|
+
created_at?: string;
|
|
30477
|
+
desired_availability?: boolean;
|
|
30478
|
+
desired_quantity?: number;
|
|
30479
|
+
fixed_quantity?: number | null;
|
|
30480
|
+
floriday_trade_item_id?: string | null;
|
|
30481
|
+
id?: string;
|
|
30482
|
+
last_confirmed_at?: string | null;
|
|
30483
|
+
last_enqueued_at?: string | null;
|
|
30484
|
+
last_published_at?: string | null;
|
|
30485
|
+
last_sync_error?: string | null;
|
|
30486
|
+
manual_quantity?: number | null;
|
|
30487
|
+
maximum_quantity?: number | null;
|
|
30488
|
+
product_id?: string;
|
|
30489
|
+
quantity_control?: string;
|
|
30490
|
+
remote_available?: boolean | null;
|
|
30491
|
+
remote_checked_at?: string | null;
|
|
30492
|
+
remote_quantity?: number | null;
|
|
30493
|
+
stock_mode?: string;
|
|
30494
|
+
sync_status?: string;
|
|
30495
|
+
updated_at?: string;
|
|
30496
|
+
updated_by?: string | null;
|
|
30497
|
+
user_id?: string;
|
|
30498
|
+
};
|
|
30499
|
+
Relationships: [];
|
|
30500
|
+
};
|
|
30153
30501
|
floriday_invoices_cache: {
|
|
30154
30502
|
Row: {
|
|
30155
30503
|
buyer_organization_id: string | null;
|
|
@@ -30438,6 +30786,39 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
30438
30786
|
};
|
|
30439
30787
|
Relationships: [];
|
|
30440
30788
|
};
|
|
30789
|
+
floriday_sales_order_ingest: {
|
|
30790
|
+
Row: {
|
|
30791
|
+
connection_id: string;
|
|
30792
|
+
created_at: string;
|
|
30793
|
+
id: string;
|
|
30794
|
+
impact: import("../integrations/supabase/types").Json;
|
|
30795
|
+
order_status: string | null;
|
|
30796
|
+
order_version: number;
|
|
30797
|
+
processed_at: string;
|
|
30798
|
+
sales_order_id: string;
|
|
30799
|
+
};
|
|
30800
|
+
Insert: {
|
|
30801
|
+
connection_id: string;
|
|
30802
|
+
created_at?: string;
|
|
30803
|
+
id?: string;
|
|
30804
|
+
impact?: import("../integrations/supabase/types").Json;
|
|
30805
|
+
order_status?: string | null;
|
|
30806
|
+
order_version?: number;
|
|
30807
|
+
processed_at?: string;
|
|
30808
|
+
sales_order_id: string;
|
|
30809
|
+
};
|
|
30810
|
+
Update: {
|
|
30811
|
+
connection_id?: string;
|
|
30812
|
+
created_at?: string;
|
|
30813
|
+
id?: string;
|
|
30814
|
+
impact?: import("../integrations/supabase/types").Json;
|
|
30815
|
+
order_status?: string | null;
|
|
30816
|
+
order_version?: number;
|
|
30817
|
+
processed_at?: string;
|
|
30818
|
+
sales_order_id?: string;
|
|
30819
|
+
};
|
|
30820
|
+
Relationships: [];
|
|
30821
|
+
};
|
|
30441
30822
|
floriday_sales_strategies_cache: {
|
|
30442
30823
|
Row: {
|
|
30443
30824
|
connection_id: string;
|
|
@@ -30537,6 +30918,39 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
30537
30918
|
};
|
|
30538
30919
|
Relationships: [];
|
|
30539
30920
|
};
|
|
30921
|
+
floriday_sync_cursors: {
|
|
30922
|
+
Row: {
|
|
30923
|
+
connection_id: string;
|
|
30924
|
+
created_at: string;
|
|
30925
|
+
id: string;
|
|
30926
|
+
last_error: string | null;
|
|
30927
|
+
last_sync_at: string | null;
|
|
30928
|
+
resource_type: string;
|
|
30929
|
+
sequence_number: number;
|
|
30930
|
+
updated_at: string;
|
|
30931
|
+
};
|
|
30932
|
+
Insert: {
|
|
30933
|
+
connection_id: string;
|
|
30934
|
+
created_at?: string;
|
|
30935
|
+
id?: string;
|
|
30936
|
+
last_error?: string | null;
|
|
30937
|
+
last_sync_at?: string | null;
|
|
30938
|
+
resource_type: string;
|
|
30939
|
+
sequence_number?: number;
|
|
30940
|
+
updated_at?: string;
|
|
30941
|
+
};
|
|
30942
|
+
Update: {
|
|
30943
|
+
connection_id?: string;
|
|
30944
|
+
created_at?: string;
|
|
30945
|
+
id?: string;
|
|
30946
|
+
last_error?: string | null;
|
|
30947
|
+
last_sync_at?: string | null;
|
|
30948
|
+
resource_type?: string;
|
|
30949
|
+
sequence_number?: number;
|
|
30950
|
+
updated_at?: string;
|
|
30951
|
+
};
|
|
30952
|
+
Relationships: [];
|
|
30953
|
+
};
|
|
30540
30954
|
floriday_sync_state: {
|
|
30541
30955
|
Row: {
|
|
30542
30956
|
connection_id: string;
|
|
@@ -31227,6 +31641,42 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
31227
31641
|
};
|
|
31228
31642
|
Relationships: [];
|
|
31229
31643
|
};
|
|
31644
|
+
inventory_stock_snapshots: {
|
|
31645
|
+
Row: {
|
|
31646
|
+
connection_id: string;
|
|
31647
|
+
created_at: string;
|
|
31648
|
+
erp_available_quantity: number;
|
|
31649
|
+
floriday_desired_quantity: number;
|
|
31650
|
+
floriday_remote_quantity: number | null;
|
|
31651
|
+
granularity: string;
|
|
31652
|
+
id: string;
|
|
31653
|
+
snapshot_at: string;
|
|
31654
|
+
user_id: string | null;
|
|
31655
|
+
};
|
|
31656
|
+
Insert: {
|
|
31657
|
+
connection_id: string;
|
|
31658
|
+
created_at?: string;
|
|
31659
|
+
erp_available_quantity?: number;
|
|
31660
|
+
floriday_desired_quantity?: number;
|
|
31661
|
+
floriday_remote_quantity?: number | null;
|
|
31662
|
+
granularity?: string;
|
|
31663
|
+
id?: string;
|
|
31664
|
+
snapshot_at?: string;
|
|
31665
|
+
user_id?: string | null;
|
|
31666
|
+
};
|
|
31667
|
+
Update: {
|
|
31668
|
+
connection_id?: string;
|
|
31669
|
+
created_at?: string;
|
|
31670
|
+
erp_available_quantity?: number;
|
|
31671
|
+
floriday_desired_quantity?: number;
|
|
31672
|
+
floriday_remote_quantity?: number | null;
|
|
31673
|
+
granularity?: string;
|
|
31674
|
+
id?: string;
|
|
31675
|
+
snapshot_at?: string;
|
|
31676
|
+
user_id?: string | null;
|
|
31677
|
+
};
|
|
31678
|
+
Relationships: [];
|
|
31679
|
+
};
|
|
31230
31680
|
invoice_items: {
|
|
31231
31681
|
Row: {
|
|
31232
31682
|
created_at: string;
|
|
@@ -40421,6 +40871,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
40421
40871
|
};
|
|
40422
40872
|
trade_item_stock: {
|
|
40423
40873
|
Row: {
|
|
40874
|
+
change_source: string;
|
|
40424
40875
|
connection_id: string;
|
|
40425
40876
|
created_at: string;
|
|
40426
40877
|
id: string;
|
|
@@ -40434,6 +40885,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
40434
40885
|
user_id: string;
|
|
40435
40886
|
};
|
|
40436
40887
|
Insert: {
|
|
40888
|
+
change_source?: string;
|
|
40437
40889
|
connection_id: string;
|
|
40438
40890
|
created_at?: string;
|
|
40439
40891
|
id?: string;
|
|
@@ -40447,6 +40899,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
40447
40899
|
user_id: string;
|
|
40448
40900
|
};
|
|
40449
40901
|
Update: {
|
|
40902
|
+
change_source?: string;
|
|
40450
40903
|
connection_id?: string;
|
|
40451
40904
|
created_at?: string;
|
|
40452
40905
|
id?: string;
|
|
@@ -44047,6 +44500,18 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
44047
44500
|
Args: never;
|
|
44048
44501
|
Returns: number;
|
|
44049
44502
|
};
|
|
44503
|
+
calculate_floriday_desired_stock: {
|
|
44504
|
+
Args: {
|
|
44505
|
+
p_connection_id: string;
|
|
44506
|
+
p_product_id: string;
|
|
44507
|
+
};
|
|
44508
|
+
Returns: {
|
|
44509
|
+
desired_availability: boolean;
|
|
44510
|
+
desired_quantity: number;
|
|
44511
|
+
erp_available: number;
|
|
44512
|
+
stock_mode: string;
|
|
44513
|
+
}[];
|
|
44514
|
+
};
|
|
44050
44515
|
calculate_layer_stock: {
|
|
44051
44516
|
Args: {
|
|
44052
44517
|
p_product_id: string;
|
|
@@ -44141,6 +44606,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
44141
44606
|
attempts: number;
|
|
44142
44607
|
connection_id: string;
|
|
44143
44608
|
created_at: string;
|
|
44609
|
+
dead_lettered_at: string | null;
|
|
44144
44610
|
desired_available: boolean | null;
|
|
44145
44611
|
gateway_attempt_id: string | null;
|
|
44146
44612
|
id: string;
|
|
@@ -44149,9 +44615,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
44149
44615
|
locked_by: string | null;
|
|
44150
44616
|
next_attempt_at: string;
|
|
44151
44617
|
number_of_pieces: number;
|
|
44618
|
+
product_id: string | null;
|
|
44152
44619
|
sent_at: string | null;
|
|
44153
44620
|
status: string;
|
|
44621
|
+
stock_mode: string | null;
|
|
44154
44622
|
superseded_by: string | null;
|
|
44623
|
+
target_week: number | null;
|
|
44624
|
+
target_year: number | null;
|
|
44155
44625
|
trade_item_id: string;
|
|
44156
44626
|
updated_at: string;
|
|
44157
44627
|
user_id: string;
|
|
@@ -44632,6 +45102,24 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
44632
45102
|
};
|
|
44633
45103
|
Returns: string;
|
|
44634
45104
|
};
|
|
45105
|
+
floriday_capture_stock_snapshot: {
|
|
45106
|
+
Args: never;
|
|
45107
|
+
Returns: number;
|
|
45108
|
+
};
|
|
45109
|
+
floriday_cleanup_stock_queue_v2: {
|
|
45110
|
+
Args: never;
|
|
45111
|
+
Returns: undefined;
|
|
45112
|
+
};
|
|
45113
|
+
floriday_compact_stock_snapshots: {
|
|
45114
|
+
Args: never;
|
|
45115
|
+
Returns: undefined;
|
|
45116
|
+
};
|
|
45117
|
+
floriday_default_owner: {
|
|
45118
|
+
Args: {
|
|
45119
|
+
p_connection_id: string;
|
|
45120
|
+
};
|
|
45121
|
+
Returns: string;
|
|
45122
|
+
};
|
|
44635
45123
|
floriday_effective_price: {
|
|
44636
45124
|
Args: {
|
|
44637
45125
|
_buyer_id: string;
|
|
@@ -44649,6 +45137,22 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
44649
45137
|
source_id: string;
|
|
44650
45138
|
}[];
|
|
44651
45139
|
};
|
|
45140
|
+
floriday_fill_publish_horizon: {
|
|
45141
|
+
Args: never;
|
|
45142
|
+
Returns: number;
|
|
45143
|
+
};
|
|
45144
|
+
floriday_publish_horizon_weeks: {
|
|
45145
|
+
Args: never;
|
|
45146
|
+
Returns: number;
|
|
45147
|
+
};
|
|
45148
|
+
floriday_recompute_inventory: {
|
|
45149
|
+
Args: {
|
|
45150
|
+
p_connection_id: string;
|
|
45151
|
+
p_force?: boolean;
|
|
45152
|
+
p_product_id: string;
|
|
45153
|
+
};
|
|
45154
|
+
Returns: undefined;
|
|
45155
|
+
};
|
|
44652
45156
|
format_cart_number: {
|
|
44653
45157
|
Args: {
|
|
44654
45158
|
p_pick_date: string;
|
|
@@ -53294,6 +53798,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
53294
53798
|
attempts: number;
|
|
53295
53799
|
connection_id: string;
|
|
53296
53800
|
created_at: string;
|
|
53801
|
+
dead_lettered_at: string | null;
|
|
53297
53802
|
desired_available: boolean | null;
|
|
53298
53803
|
gateway_attempt_id: string | null;
|
|
53299
53804
|
id: string;
|
|
@@ -53302,9 +53807,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
53302
53807
|
locked_by: string | null;
|
|
53303
53808
|
next_attempt_at: string;
|
|
53304
53809
|
number_of_pieces: number;
|
|
53810
|
+
product_id: string | null;
|
|
53305
53811
|
sent_at: string | null;
|
|
53306
53812
|
status: string;
|
|
53813
|
+
stock_mode: string | null;
|
|
53307
53814
|
superseded_by: string | null;
|
|
53815
|
+
target_week: number | null;
|
|
53816
|
+
target_year: number | null;
|
|
53308
53817
|
trade_item_id: string;
|
|
53309
53818
|
updated_at: string;
|
|
53310
53819
|
user_id: string;
|
|
@@ -53313,6 +53822,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
53313
53822
|
attempts?: number;
|
|
53314
53823
|
connection_id: string;
|
|
53315
53824
|
created_at?: string;
|
|
53825
|
+
dead_lettered_at?: string | null;
|
|
53316
53826
|
desired_available?: boolean | null;
|
|
53317
53827
|
gateway_attempt_id?: string | null;
|
|
53318
53828
|
id?: string;
|
|
@@ -53321,9 +53831,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
53321
53831
|
locked_by?: string | null;
|
|
53322
53832
|
next_attempt_at?: string;
|
|
53323
53833
|
number_of_pieces?: number;
|
|
53834
|
+
product_id?: string | null;
|
|
53324
53835
|
sent_at?: string | null;
|
|
53325
53836
|
status?: string;
|
|
53837
|
+
stock_mode?: string | null;
|
|
53326
53838
|
superseded_by?: string | null;
|
|
53839
|
+
target_week?: number | null;
|
|
53840
|
+
target_year?: number | null;
|
|
53327
53841
|
trade_item_id: string;
|
|
53328
53842
|
updated_at?: string;
|
|
53329
53843
|
user_id: string;
|
|
@@ -53332,6 +53846,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
53332
53846
|
attempts?: number;
|
|
53333
53847
|
connection_id?: string;
|
|
53334
53848
|
created_at?: string;
|
|
53849
|
+
dead_lettered_at?: string | null;
|
|
53335
53850
|
desired_available?: boolean | null;
|
|
53336
53851
|
gateway_attempt_id?: string | null;
|
|
53337
53852
|
id?: string;
|
|
@@ -53340,9 +53855,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
53340
53855
|
locked_by?: string | null;
|
|
53341
53856
|
next_attempt_at?: string;
|
|
53342
53857
|
number_of_pieces?: number;
|
|
53858
|
+
product_id?: string | null;
|
|
53343
53859
|
sent_at?: string | null;
|
|
53344
53860
|
status?: string;
|
|
53861
|
+
stock_mode?: string | null;
|
|
53345
53862
|
superseded_by?: string | null;
|
|
53863
|
+
target_week?: number | null;
|
|
53864
|
+
target_year?: number | null;
|
|
53346
53865
|
trade_item_id?: string;
|
|
53347
53866
|
updated_at?: string;
|
|
53348
53867
|
user_id?: string;
|
|
@@ -53751,6 +54270,87 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
53751
54270
|
referencedColumns: ["id"];
|
|
53752
54271
|
}];
|
|
53753
54272
|
};
|
|
54273
|
+
floriday_inventory_settings: {
|
|
54274
|
+
Row: {
|
|
54275
|
+
buffer_quantity: number;
|
|
54276
|
+
connection_id: string;
|
|
54277
|
+
created_at: string;
|
|
54278
|
+
desired_availability: boolean;
|
|
54279
|
+
desired_quantity: number;
|
|
54280
|
+
fixed_quantity: number | null;
|
|
54281
|
+
floriday_trade_item_id: string | null;
|
|
54282
|
+
id: string;
|
|
54283
|
+
last_confirmed_at: string | null;
|
|
54284
|
+
last_enqueued_at: string | null;
|
|
54285
|
+
last_published_at: string | null;
|
|
54286
|
+
last_sync_error: string | null;
|
|
54287
|
+
manual_quantity: number | null;
|
|
54288
|
+
maximum_quantity: number | null;
|
|
54289
|
+
product_id: string;
|
|
54290
|
+
quantity_control: string;
|
|
54291
|
+
remote_available: boolean | null;
|
|
54292
|
+
remote_checked_at: string | null;
|
|
54293
|
+
remote_quantity: number | null;
|
|
54294
|
+
stock_mode: string;
|
|
54295
|
+
sync_status: string;
|
|
54296
|
+
updated_at: string;
|
|
54297
|
+
updated_by: string | null;
|
|
54298
|
+
user_id: string;
|
|
54299
|
+
};
|
|
54300
|
+
Insert: {
|
|
54301
|
+
buffer_quantity?: number;
|
|
54302
|
+
connection_id: string;
|
|
54303
|
+
created_at?: string;
|
|
54304
|
+
desired_availability?: boolean;
|
|
54305
|
+
desired_quantity?: number;
|
|
54306
|
+
fixed_quantity?: number | null;
|
|
54307
|
+
floriday_trade_item_id?: string | null;
|
|
54308
|
+
id?: string;
|
|
54309
|
+
last_confirmed_at?: string | null;
|
|
54310
|
+
last_enqueued_at?: string | null;
|
|
54311
|
+
last_published_at?: string | null;
|
|
54312
|
+
last_sync_error?: string | null;
|
|
54313
|
+
manual_quantity?: number | null;
|
|
54314
|
+
maximum_quantity?: number | null;
|
|
54315
|
+
product_id: string;
|
|
54316
|
+
quantity_control?: string;
|
|
54317
|
+
remote_available?: boolean | null;
|
|
54318
|
+
remote_checked_at?: string | null;
|
|
54319
|
+
remote_quantity?: number | null;
|
|
54320
|
+
stock_mode?: string;
|
|
54321
|
+
sync_status?: string;
|
|
54322
|
+
updated_at?: string;
|
|
54323
|
+
updated_by?: string | null;
|
|
54324
|
+
user_id: string;
|
|
54325
|
+
};
|
|
54326
|
+
Update: {
|
|
54327
|
+
buffer_quantity?: number;
|
|
54328
|
+
connection_id?: string;
|
|
54329
|
+
created_at?: string;
|
|
54330
|
+
desired_availability?: boolean;
|
|
54331
|
+
desired_quantity?: number;
|
|
54332
|
+
fixed_quantity?: number | null;
|
|
54333
|
+
floriday_trade_item_id?: string | null;
|
|
54334
|
+
id?: string;
|
|
54335
|
+
last_confirmed_at?: string | null;
|
|
54336
|
+
last_enqueued_at?: string | null;
|
|
54337
|
+
last_published_at?: string | null;
|
|
54338
|
+
last_sync_error?: string | null;
|
|
54339
|
+
manual_quantity?: number | null;
|
|
54340
|
+
maximum_quantity?: number | null;
|
|
54341
|
+
product_id?: string;
|
|
54342
|
+
quantity_control?: string;
|
|
54343
|
+
remote_available?: boolean | null;
|
|
54344
|
+
remote_checked_at?: string | null;
|
|
54345
|
+
remote_quantity?: number | null;
|
|
54346
|
+
stock_mode?: string;
|
|
54347
|
+
sync_status?: string;
|
|
54348
|
+
updated_at?: string;
|
|
54349
|
+
updated_by?: string | null;
|
|
54350
|
+
user_id?: string;
|
|
54351
|
+
};
|
|
54352
|
+
Relationships: [];
|
|
54353
|
+
};
|
|
53754
54354
|
floriday_invoices_cache: {
|
|
53755
54355
|
Row: {
|
|
53756
54356
|
buyer_organization_id: string | null;
|
|
@@ -54039,6 +54639,39 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
54039
54639
|
};
|
|
54040
54640
|
Relationships: [];
|
|
54041
54641
|
};
|
|
54642
|
+
floriday_sales_order_ingest: {
|
|
54643
|
+
Row: {
|
|
54644
|
+
connection_id: string;
|
|
54645
|
+
created_at: string;
|
|
54646
|
+
id: string;
|
|
54647
|
+
impact: import("../integrations/supabase/types").Json;
|
|
54648
|
+
order_status: string | null;
|
|
54649
|
+
order_version: number;
|
|
54650
|
+
processed_at: string;
|
|
54651
|
+
sales_order_id: string;
|
|
54652
|
+
};
|
|
54653
|
+
Insert: {
|
|
54654
|
+
connection_id: string;
|
|
54655
|
+
created_at?: string;
|
|
54656
|
+
id?: string;
|
|
54657
|
+
impact?: import("../integrations/supabase/types").Json;
|
|
54658
|
+
order_status?: string | null;
|
|
54659
|
+
order_version?: number;
|
|
54660
|
+
processed_at?: string;
|
|
54661
|
+
sales_order_id: string;
|
|
54662
|
+
};
|
|
54663
|
+
Update: {
|
|
54664
|
+
connection_id?: string;
|
|
54665
|
+
created_at?: string;
|
|
54666
|
+
id?: string;
|
|
54667
|
+
impact?: import("../integrations/supabase/types").Json;
|
|
54668
|
+
order_status?: string | null;
|
|
54669
|
+
order_version?: number;
|
|
54670
|
+
processed_at?: string;
|
|
54671
|
+
sales_order_id?: string;
|
|
54672
|
+
};
|
|
54673
|
+
Relationships: [];
|
|
54674
|
+
};
|
|
54042
54675
|
floriday_sales_strategies_cache: {
|
|
54043
54676
|
Row: {
|
|
54044
54677
|
connection_id: string;
|
|
@@ -54138,6 +54771,39 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
54138
54771
|
};
|
|
54139
54772
|
Relationships: [];
|
|
54140
54773
|
};
|
|
54774
|
+
floriday_sync_cursors: {
|
|
54775
|
+
Row: {
|
|
54776
|
+
connection_id: string;
|
|
54777
|
+
created_at: string;
|
|
54778
|
+
id: string;
|
|
54779
|
+
last_error: string | null;
|
|
54780
|
+
last_sync_at: string | null;
|
|
54781
|
+
resource_type: string;
|
|
54782
|
+
sequence_number: number;
|
|
54783
|
+
updated_at: string;
|
|
54784
|
+
};
|
|
54785
|
+
Insert: {
|
|
54786
|
+
connection_id: string;
|
|
54787
|
+
created_at?: string;
|
|
54788
|
+
id?: string;
|
|
54789
|
+
last_error?: string | null;
|
|
54790
|
+
last_sync_at?: string | null;
|
|
54791
|
+
resource_type: string;
|
|
54792
|
+
sequence_number?: number;
|
|
54793
|
+
updated_at?: string;
|
|
54794
|
+
};
|
|
54795
|
+
Update: {
|
|
54796
|
+
connection_id?: string;
|
|
54797
|
+
created_at?: string;
|
|
54798
|
+
id?: string;
|
|
54799
|
+
last_error?: string | null;
|
|
54800
|
+
last_sync_at?: string | null;
|
|
54801
|
+
resource_type?: string;
|
|
54802
|
+
sequence_number?: number;
|
|
54803
|
+
updated_at?: string;
|
|
54804
|
+
};
|
|
54805
|
+
Relationships: [];
|
|
54806
|
+
};
|
|
54141
54807
|
floriday_sync_state: {
|
|
54142
54808
|
Row: {
|
|
54143
54809
|
connection_id: string;
|
|
@@ -54828,6 +55494,42 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
54828
55494
|
};
|
|
54829
55495
|
Relationships: [];
|
|
54830
55496
|
};
|
|
55497
|
+
inventory_stock_snapshots: {
|
|
55498
|
+
Row: {
|
|
55499
|
+
connection_id: string;
|
|
55500
|
+
created_at: string;
|
|
55501
|
+
erp_available_quantity: number;
|
|
55502
|
+
floriday_desired_quantity: number;
|
|
55503
|
+
floriday_remote_quantity: number | null;
|
|
55504
|
+
granularity: string;
|
|
55505
|
+
id: string;
|
|
55506
|
+
snapshot_at: string;
|
|
55507
|
+
user_id: string | null;
|
|
55508
|
+
};
|
|
55509
|
+
Insert: {
|
|
55510
|
+
connection_id: string;
|
|
55511
|
+
created_at?: string;
|
|
55512
|
+
erp_available_quantity?: number;
|
|
55513
|
+
floriday_desired_quantity?: number;
|
|
55514
|
+
floriday_remote_quantity?: number | null;
|
|
55515
|
+
granularity?: string;
|
|
55516
|
+
id?: string;
|
|
55517
|
+
snapshot_at?: string;
|
|
55518
|
+
user_id?: string | null;
|
|
55519
|
+
};
|
|
55520
|
+
Update: {
|
|
55521
|
+
connection_id?: string;
|
|
55522
|
+
created_at?: string;
|
|
55523
|
+
erp_available_quantity?: number;
|
|
55524
|
+
floriday_desired_quantity?: number;
|
|
55525
|
+
floriday_remote_quantity?: number | null;
|
|
55526
|
+
granularity?: string;
|
|
55527
|
+
id?: string;
|
|
55528
|
+
snapshot_at?: string;
|
|
55529
|
+
user_id?: string | null;
|
|
55530
|
+
};
|
|
55531
|
+
Relationships: [];
|
|
55532
|
+
};
|
|
54831
55533
|
invoice_items: {
|
|
54832
55534
|
Row: {
|
|
54833
55535
|
created_at: string;
|
|
@@ -64022,6 +64724,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
64022
64724
|
};
|
|
64023
64725
|
trade_item_stock: {
|
|
64024
64726
|
Row: {
|
|
64727
|
+
change_source: string;
|
|
64025
64728
|
connection_id: string;
|
|
64026
64729
|
created_at: string;
|
|
64027
64730
|
id: string;
|
|
@@ -64035,6 +64738,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
64035
64738
|
user_id: string;
|
|
64036
64739
|
};
|
|
64037
64740
|
Insert: {
|
|
64741
|
+
change_source?: string;
|
|
64038
64742
|
connection_id: string;
|
|
64039
64743
|
created_at?: string;
|
|
64040
64744
|
id?: string;
|
|
@@ -64048,6 +64752,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
64048
64752
|
user_id: string;
|
|
64049
64753
|
};
|
|
64050
64754
|
Update: {
|
|
64755
|
+
change_source?: string;
|
|
64051
64756
|
connection_id?: string;
|
|
64052
64757
|
created_at?: string;
|
|
64053
64758
|
id?: string;
|
|
@@ -67648,6 +68353,18 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
67648
68353
|
Args: never;
|
|
67649
68354
|
Returns: number;
|
|
67650
68355
|
};
|
|
68356
|
+
calculate_floriday_desired_stock: {
|
|
68357
|
+
Args: {
|
|
68358
|
+
p_connection_id: string;
|
|
68359
|
+
p_product_id: string;
|
|
68360
|
+
};
|
|
68361
|
+
Returns: {
|
|
68362
|
+
desired_availability: boolean;
|
|
68363
|
+
desired_quantity: number;
|
|
68364
|
+
erp_available: number;
|
|
68365
|
+
stock_mode: string;
|
|
68366
|
+
}[];
|
|
68367
|
+
};
|
|
67651
68368
|
calculate_layer_stock: {
|
|
67652
68369
|
Args: {
|
|
67653
68370
|
p_product_id: string;
|
|
@@ -67742,6 +68459,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
67742
68459
|
attempts: number;
|
|
67743
68460
|
connection_id: string;
|
|
67744
68461
|
created_at: string;
|
|
68462
|
+
dead_lettered_at: string | null;
|
|
67745
68463
|
desired_available: boolean | null;
|
|
67746
68464
|
gateway_attempt_id: string | null;
|
|
67747
68465
|
id: string;
|
|
@@ -67750,9 +68468,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
67750
68468
|
locked_by: string | null;
|
|
67751
68469
|
next_attempt_at: string;
|
|
67752
68470
|
number_of_pieces: number;
|
|
68471
|
+
product_id: string | null;
|
|
67753
68472
|
sent_at: string | null;
|
|
67754
68473
|
status: string;
|
|
68474
|
+
stock_mode: string | null;
|
|
67755
68475
|
superseded_by: string | null;
|
|
68476
|
+
target_week: number | null;
|
|
68477
|
+
target_year: number | null;
|
|
67756
68478
|
trade_item_id: string;
|
|
67757
68479
|
updated_at: string;
|
|
67758
68480
|
user_id: string;
|
|
@@ -68233,6 +68955,24 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
68233
68955
|
};
|
|
68234
68956
|
Returns: string;
|
|
68235
68957
|
};
|
|
68958
|
+
floriday_capture_stock_snapshot: {
|
|
68959
|
+
Args: never;
|
|
68960
|
+
Returns: number;
|
|
68961
|
+
};
|
|
68962
|
+
floriday_cleanup_stock_queue_v2: {
|
|
68963
|
+
Args: never;
|
|
68964
|
+
Returns: undefined;
|
|
68965
|
+
};
|
|
68966
|
+
floriday_compact_stock_snapshots: {
|
|
68967
|
+
Args: never;
|
|
68968
|
+
Returns: undefined;
|
|
68969
|
+
};
|
|
68970
|
+
floriday_default_owner: {
|
|
68971
|
+
Args: {
|
|
68972
|
+
p_connection_id: string;
|
|
68973
|
+
};
|
|
68974
|
+
Returns: string;
|
|
68975
|
+
};
|
|
68236
68976
|
floriday_effective_price: {
|
|
68237
68977
|
Args: {
|
|
68238
68978
|
_buyer_id: string;
|
|
@@ -68250,6 +68990,22 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
68250
68990
|
source_id: string;
|
|
68251
68991
|
}[];
|
|
68252
68992
|
};
|
|
68993
|
+
floriday_fill_publish_horizon: {
|
|
68994
|
+
Args: never;
|
|
68995
|
+
Returns: number;
|
|
68996
|
+
};
|
|
68997
|
+
floriday_publish_horizon_weeks: {
|
|
68998
|
+
Args: never;
|
|
68999
|
+
Returns: number;
|
|
69000
|
+
};
|
|
69001
|
+
floriday_recompute_inventory: {
|
|
69002
|
+
Args: {
|
|
69003
|
+
p_connection_id: string;
|
|
69004
|
+
p_force?: boolean;
|
|
69005
|
+
p_product_id: string;
|
|
69006
|
+
};
|
|
69007
|
+
Returns: undefined;
|
|
69008
|
+
};
|
|
68253
69009
|
format_cart_number: {
|
|
68254
69010
|
Args: {
|
|
68255
69011
|
p_pick_date: string;
|
|
@@ -76913,6 +77669,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
76913
77669
|
attempts: number;
|
|
76914
77670
|
connection_id: string;
|
|
76915
77671
|
created_at: string;
|
|
77672
|
+
dead_lettered_at: string | null;
|
|
76916
77673
|
desired_available: boolean | null;
|
|
76917
77674
|
gateway_attempt_id: string | null;
|
|
76918
77675
|
id: string;
|
|
@@ -76921,9 +77678,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
76921
77678
|
locked_by: string | null;
|
|
76922
77679
|
next_attempt_at: string;
|
|
76923
77680
|
number_of_pieces: number;
|
|
77681
|
+
product_id: string | null;
|
|
76924
77682
|
sent_at: string | null;
|
|
76925
77683
|
status: string;
|
|
77684
|
+
stock_mode: string | null;
|
|
76926
77685
|
superseded_by: string | null;
|
|
77686
|
+
target_week: number | null;
|
|
77687
|
+
target_year: number | null;
|
|
76927
77688
|
trade_item_id: string;
|
|
76928
77689
|
updated_at: string;
|
|
76929
77690
|
user_id: string;
|
|
@@ -76932,6 +77693,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
76932
77693
|
attempts?: number;
|
|
76933
77694
|
connection_id: string;
|
|
76934
77695
|
created_at?: string;
|
|
77696
|
+
dead_lettered_at?: string | null;
|
|
76935
77697
|
desired_available?: boolean | null;
|
|
76936
77698
|
gateway_attempt_id?: string | null;
|
|
76937
77699
|
id?: string;
|
|
@@ -76940,9 +77702,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
76940
77702
|
locked_by?: string | null;
|
|
76941
77703
|
next_attempt_at?: string;
|
|
76942
77704
|
number_of_pieces?: number;
|
|
77705
|
+
product_id?: string | null;
|
|
76943
77706
|
sent_at?: string | null;
|
|
76944
77707
|
status?: string;
|
|
77708
|
+
stock_mode?: string | null;
|
|
76945
77709
|
superseded_by?: string | null;
|
|
77710
|
+
target_week?: number | null;
|
|
77711
|
+
target_year?: number | null;
|
|
76946
77712
|
trade_item_id: string;
|
|
76947
77713
|
updated_at?: string;
|
|
76948
77714
|
user_id: string;
|
|
@@ -76951,6 +77717,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
76951
77717
|
attempts?: number;
|
|
76952
77718
|
connection_id?: string;
|
|
76953
77719
|
created_at?: string;
|
|
77720
|
+
dead_lettered_at?: string | null;
|
|
76954
77721
|
desired_available?: boolean | null;
|
|
76955
77722
|
gateway_attempt_id?: string | null;
|
|
76956
77723
|
id?: string;
|
|
@@ -76959,9 +77726,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
76959
77726
|
locked_by?: string | null;
|
|
76960
77727
|
next_attempt_at?: string;
|
|
76961
77728
|
number_of_pieces?: number;
|
|
77729
|
+
product_id?: string | null;
|
|
76962
77730
|
sent_at?: string | null;
|
|
76963
77731
|
status?: string;
|
|
77732
|
+
stock_mode?: string | null;
|
|
76964
77733
|
superseded_by?: string | null;
|
|
77734
|
+
target_week?: number | null;
|
|
77735
|
+
target_year?: number | null;
|
|
76965
77736
|
trade_item_id?: string;
|
|
76966
77737
|
updated_at?: string;
|
|
76967
77738
|
user_id?: string;
|
|
@@ -77370,6 +78141,87 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
77370
78141
|
referencedColumns: ["id"];
|
|
77371
78142
|
}];
|
|
77372
78143
|
};
|
|
78144
|
+
floriday_inventory_settings: {
|
|
78145
|
+
Row: {
|
|
78146
|
+
buffer_quantity: number;
|
|
78147
|
+
connection_id: string;
|
|
78148
|
+
created_at: string;
|
|
78149
|
+
desired_availability: boolean;
|
|
78150
|
+
desired_quantity: number;
|
|
78151
|
+
fixed_quantity: number | null;
|
|
78152
|
+
floriday_trade_item_id: string | null;
|
|
78153
|
+
id: string;
|
|
78154
|
+
last_confirmed_at: string | null;
|
|
78155
|
+
last_enqueued_at: string | null;
|
|
78156
|
+
last_published_at: string | null;
|
|
78157
|
+
last_sync_error: string | null;
|
|
78158
|
+
manual_quantity: number | null;
|
|
78159
|
+
maximum_quantity: number | null;
|
|
78160
|
+
product_id: string;
|
|
78161
|
+
quantity_control: string;
|
|
78162
|
+
remote_available: boolean | null;
|
|
78163
|
+
remote_checked_at: string | null;
|
|
78164
|
+
remote_quantity: number | null;
|
|
78165
|
+
stock_mode: string;
|
|
78166
|
+
sync_status: string;
|
|
78167
|
+
updated_at: string;
|
|
78168
|
+
updated_by: string | null;
|
|
78169
|
+
user_id: string;
|
|
78170
|
+
};
|
|
78171
|
+
Insert: {
|
|
78172
|
+
buffer_quantity?: number;
|
|
78173
|
+
connection_id: string;
|
|
78174
|
+
created_at?: string;
|
|
78175
|
+
desired_availability?: boolean;
|
|
78176
|
+
desired_quantity?: number;
|
|
78177
|
+
fixed_quantity?: number | null;
|
|
78178
|
+
floriday_trade_item_id?: string | null;
|
|
78179
|
+
id?: string;
|
|
78180
|
+
last_confirmed_at?: string | null;
|
|
78181
|
+
last_enqueued_at?: string | null;
|
|
78182
|
+
last_published_at?: string | null;
|
|
78183
|
+
last_sync_error?: string | null;
|
|
78184
|
+
manual_quantity?: number | null;
|
|
78185
|
+
maximum_quantity?: number | null;
|
|
78186
|
+
product_id: string;
|
|
78187
|
+
quantity_control?: string;
|
|
78188
|
+
remote_available?: boolean | null;
|
|
78189
|
+
remote_checked_at?: string | null;
|
|
78190
|
+
remote_quantity?: number | null;
|
|
78191
|
+
stock_mode?: string;
|
|
78192
|
+
sync_status?: string;
|
|
78193
|
+
updated_at?: string;
|
|
78194
|
+
updated_by?: string | null;
|
|
78195
|
+
user_id: string;
|
|
78196
|
+
};
|
|
78197
|
+
Update: {
|
|
78198
|
+
buffer_quantity?: number;
|
|
78199
|
+
connection_id?: string;
|
|
78200
|
+
created_at?: string;
|
|
78201
|
+
desired_availability?: boolean;
|
|
78202
|
+
desired_quantity?: number;
|
|
78203
|
+
fixed_quantity?: number | null;
|
|
78204
|
+
floriday_trade_item_id?: string | null;
|
|
78205
|
+
id?: string;
|
|
78206
|
+
last_confirmed_at?: string | null;
|
|
78207
|
+
last_enqueued_at?: string | null;
|
|
78208
|
+
last_published_at?: string | null;
|
|
78209
|
+
last_sync_error?: string | null;
|
|
78210
|
+
manual_quantity?: number | null;
|
|
78211
|
+
maximum_quantity?: number | null;
|
|
78212
|
+
product_id?: string;
|
|
78213
|
+
quantity_control?: string;
|
|
78214
|
+
remote_available?: boolean | null;
|
|
78215
|
+
remote_checked_at?: string | null;
|
|
78216
|
+
remote_quantity?: number | null;
|
|
78217
|
+
stock_mode?: string;
|
|
78218
|
+
sync_status?: string;
|
|
78219
|
+
updated_at?: string;
|
|
78220
|
+
updated_by?: string | null;
|
|
78221
|
+
user_id?: string;
|
|
78222
|
+
};
|
|
78223
|
+
Relationships: [];
|
|
78224
|
+
};
|
|
77373
78225
|
floriday_invoices_cache: {
|
|
77374
78226
|
Row: {
|
|
77375
78227
|
buyer_organization_id: string | null;
|
|
@@ -77658,6 +78510,39 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
77658
78510
|
};
|
|
77659
78511
|
Relationships: [];
|
|
77660
78512
|
};
|
|
78513
|
+
floriday_sales_order_ingest: {
|
|
78514
|
+
Row: {
|
|
78515
|
+
connection_id: string;
|
|
78516
|
+
created_at: string;
|
|
78517
|
+
id: string;
|
|
78518
|
+
impact: import("../integrations/supabase/types").Json;
|
|
78519
|
+
order_status: string | null;
|
|
78520
|
+
order_version: number;
|
|
78521
|
+
processed_at: string;
|
|
78522
|
+
sales_order_id: string;
|
|
78523
|
+
};
|
|
78524
|
+
Insert: {
|
|
78525
|
+
connection_id: string;
|
|
78526
|
+
created_at?: string;
|
|
78527
|
+
id?: string;
|
|
78528
|
+
impact?: import("../integrations/supabase/types").Json;
|
|
78529
|
+
order_status?: string | null;
|
|
78530
|
+
order_version?: number;
|
|
78531
|
+
processed_at?: string;
|
|
78532
|
+
sales_order_id: string;
|
|
78533
|
+
};
|
|
78534
|
+
Update: {
|
|
78535
|
+
connection_id?: string;
|
|
78536
|
+
created_at?: string;
|
|
78537
|
+
id?: string;
|
|
78538
|
+
impact?: import("../integrations/supabase/types").Json;
|
|
78539
|
+
order_status?: string | null;
|
|
78540
|
+
order_version?: number;
|
|
78541
|
+
processed_at?: string;
|
|
78542
|
+
sales_order_id?: string;
|
|
78543
|
+
};
|
|
78544
|
+
Relationships: [];
|
|
78545
|
+
};
|
|
77661
78546
|
floriday_sales_strategies_cache: {
|
|
77662
78547
|
Row: {
|
|
77663
78548
|
connection_id: string;
|
|
@@ -77757,6 +78642,39 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
77757
78642
|
};
|
|
77758
78643
|
Relationships: [];
|
|
77759
78644
|
};
|
|
78645
|
+
floriday_sync_cursors: {
|
|
78646
|
+
Row: {
|
|
78647
|
+
connection_id: string;
|
|
78648
|
+
created_at: string;
|
|
78649
|
+
id: string;
|
|
78650
|
+
last_error: string | null;
|
|
78651
|
+
last_sync_at: string | null;
|
|
78652
|
+
resource_type: string;
|
|
78653
|
+
sequence_number: number;
|
|
78654
|
+
updated_at: string;
|
|
78655
|
+
};
|
|
78656
|
+
Insert: {
|
|
78657
|
+
connection_id: string;
|
|
78658
|
+
created_at?: string;
|
|
78659
|
+
id?: string;
|
|
78660
|
+
last_error?: string | null;
|
|
78661
|
+
last_sync_at?: string | null;
|
|
78662
|
+
resource_type: string;
|
|
78663
|
+
sequence_number?: number;
|
|
78664
|
+
updated_at?: string;
|
|
78665
|
+
};
|
|
78666
|
+
Update: {
|
|
78667
|
+
connection_id?: string;
|
|
78668
|
+
created_at?: string;
|
|
78669
|
+
id?: string;
|
|
78670
|
+
last_error?: string | null;
|
|
78671
|
+
last_sync_at?: string | null;
|
|
78672
|
+
resource_type?: string;
|
|
78673
|
+
sequence_number?: number;
|
|
78674
|
+
updated_at?: string;
|
|
78675
|
+
};
|
|
78676
|
+
Relationships: [];
|
|
78677
|
+
};
|
|
77760
78678
|
floriday_sync_state: {
|
|
77761
78679
|
Row: {
|
|
77762
78680
|
connection_id: string;
|
|
@@ -78447,6 +79365,42 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
78447
79365
|
};
|
|
78448
79366
|
Relationships: [];
|
|
78449
79367
|
};
|
|
79368
|
+
inventory_stock_snapshots: {
|
|
79369
|
+
Row: {
|
|
79370
|
+
connection_id: string;
|
|
79371
|
+
created_at: string;
|
|
79372
|
+
erp_available_quantity: number;
|
|
79373
|
+
floriday_desired_quantity: number;
|
|
79374
|
+
floriday_remote_quantity: number | null;
|
|
79375
|
+
granularity: string;
|
|
79376
|
+
id: string;
|
|
79377
|
+
snapshot_at: string;
|
|
79378
|
+
user_id: string | null;
|
|
79379
|
+
};
|
|
79380
|
+
Insert: {
|
|
79381
|
+
connection_id: string;
|
|
79382
|
+
created_at?: string;
|
|
79383
|
+
erp_available_quantity?: number;
|
|
79384
|
+
floriday_desired_quantity?: number;
|
|
79385
|
+
floriday_remote_quantity?: number | null;
|
|
79386
|
+
granularity?: string;
|
|
79387
|
+
id?: string;
|
|
79388
|
+
snapshot_at?: string;
|
|
79389
|
+
user_id?: string | null;
|
|
79390
|
+
};
|
|
79391
|
+
Update: {
|
|
79392
|
+
connection_id?: string;
|
|
79393
|
+
created_at?: string;
|
|
79394
|
+
erp_available_quantity?: number;
|
|
79395
|
+
floriday_desired_quantity?: number;
|
|
79396
|
+
floriday_remote_quantity?: number | null;
|
|
79397
|
+
granularity?: string;
|
|
79398
|
+
id?: string;
|
|
79399
|
+
snapshot_at?: string;
|
|
79400
|
+
user_id?: string | null;
|
|
79401
|
+
};
|
|
79402
|
+
Relationships: [];
|
|
79403
|
+
};
|
|
78450
79404
|
invoice_items: {
|
|
78451
79405
|
Row: {
|
|
78452
79406
|
created_at: string;
|
|
@@ -87641,6 +88595,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
87641
88595
|
};
|
|
87642
88596
|
trade_item_stock: {
|
|
87643
88597
|
Row: {
|
|
88598
|
+
change_source: string;
|
|
87644
88599
|
connection_id: string;
|
|
87645
88600
|
created_at: string;
|
|
87646
88601
|
id: string;
|
|
@@ -87654,6 +88609,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
87654
88609
|
user_id: string;
|
|
87655
88610
|
};
|
|
87656
88611
|
Insert: {
|
|
88612
|
+
change_source?: string;
|
|
87657
88613
|
connection_id: string;
|
|
87658
88614
|
created_at?: string;
|
|
87659
88615
|
id?: string;
|
|
@@ -87667,6 +88623,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
87667
88623
|
user_id: string;
|
|
87668
88624
|
};
|
|
87669
88625
|
Update: {
|
|
88626
|
+
change_source?: string;
|
|
87670
88627
|
connection_id?: string;
|
|
87671
88628
|
created_at?: string;
|
|
87672
88629
|
id?: string;
|
|
@@ -91267,6 +92224,18 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
91267
92224
|
Args: never;
|
|
91268
92225
|
Returns: number;
|
|
91269
92226
|
};
|
|
92227
|
+
calculate_floriday_desired_stock: {
|
|
92228
|
+
Args: {
|
|
92229
|
+
p_connection_id: string;
|
|
92230
|
+
p_product_id: string;
|
|
92231
|
+
};
|
|
92232
|
+
Returns: {
|
|
92233
|
+
desired_availability: boolean;
|
|
92234
|
+
desired_quantity: number;
|
|
92235
|
+
erp_available: number;
|
|
92236
|
+
stock_mode: string;
|
|
92237
|
+
}[];
|
|
92238
|
+
};
|
|
91270
92239
|
calculate_layer_stock: {
|
|
91271
92240
|
Args: {
|
|
91272
92241
|
p_product_id: string;
|
|
@@ -91361,6 +92330,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
91361
92330
|
attempts: number;
|
|
91362
92331
|
connection_id: string;
|
|
91363
92332
|
created_at: string;
|
|
92333
|
+
dead_lettered_at: string | null;
|
|
91364
92334
|
desired_available: boolean | null;
|
|
91365
92335
|
gateway_attempt_id: string | null;
|
|
91366
92336
|
id: string;
|
|
@@ -91369,9 +92339,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
91369
92339
|
locked_by: string | null;
|
|
91370
92340
|
next_attempt_at: string;
|
|
91371
92341
|
number_of_pieces: number;
|
|
92342
|
+
product_id: string | null;
|
|
91372
92343
|
sent_at: string | null;
|
|
91373
92344
|
status: string;
|
|
92345
|
+
stock_mode: string | null;
|
|
91374
92346
|
superseded_by: string | null;
|
|
92347
|
+
target_week: number | null;
|
|
92348
|
+
target_year: number | null;
|
|
91375
92349
|
trade_item_id: string;
|
|
91376
92350
|
updated_at: string;
|
|
91377
92351
|
user_id: string;
|
|
@@ -91852,6 +92826,24 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
91852
92826
|
};
|
|
91853
92827
|
Returns: string;
|
|
91854
92828
|
};
|
|
92829
|
+
floriday_capture_stock_snapshot: {
|
|
92830
|
+
Args: never;
|
|
92831
|
+
Returns: number;
|
|
92832
|
+
};
|
|
92833
|
+
floriday_cleanup_stock_queue_v2: {
|
|
92834
|
+
Args: never;
|
|
92835
|
+
Returns: undefined;
|
|
92836
|
+
};
|
|
92837
|
+
floriday_compact_stock_snapshots: {
|
|
92838
|
+
Args: never;
|
|
92839
|
+
Returns: undefined;
|
|
92840
|
+
};
|
|
92841
|
+
floriday_default_owner: {
|
|
92842
|
+
Args: {
|
|
92843
|
+
p_connection_id: string;
|
|
92844
|
+
};
|
|
92845
|
+
Returns: string;
|
|
92846
|
+
};
|
|
91855
92847
|
floriday_effective_price: {
|
|
91856
92848
|
Args: {
|
|
91857
92849
|
_buyer_id: string;
|
|
@@ -91869,6 +92861,22 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
|
|
|
91869
92861
|
source_id: string;
|
|
91870
92862
|
}[];
|
|
91871
92863
|
};
|
|
92864
|
+
floriday_fill_publish_horizon: {
|
|
92865
|
+
Args: never;
|
|
92866
|
+
Returns: number;
|
|
92867
|
+
};
|
|
92868
|
+
floriday_publish_horizon_weeks: {
|
|
92869
|
+
Args: never;
|
|
92870
|
+
Returns: number;
|
|
92871
|
+
};
|
|
92872
|
+
floriday_recompute_inventory: {
|
|
92873
|
+
Args: {
|
|
92874
|
+
p_connection_id: string;
|
|
92875
|
+
p_force?: boolean;
|
|
92876
|
+
p_product_id: string;
|
|
92877
|
+
};
|
|
92878
|
+
Returns: undefined;
|
|
92879
|
+
};
|
|
91872
92880
|
format_cart_number: {
|
|
91873
92881
|
Args: {
|
|
91874
92882
|
p_pick_date: string;
|
|
@@ -100503,6 +101511,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
100503
101511
|
attempts: number;
|
|
100504
101512
|
connection_id: string;
|
|
100505
101513
|
created_at: string;
|
|
101514
|
+
dead_lettered_at: string | null;
|
|
100506
101515
|
desired_available: boolean | null;
|
|
100507
101516
|
gateway_attempt_id: string | null;
|
|
100508
101517
|
id: string;
|
|
@@ -100511,9 +101520,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
100511
101520
|
locked_by: string | null;
|
|
100512
101521
|
next_attempt_at: string;
|
|
100513
101522
|
number_of_pieces: number;
|
|
101523
|
+
product_id: string | null;
|
|
100514
101524
|
sent_at: string | null;
|
|
100515
101525
|
status: string;
|
|
101526
|
+
stock_mode: string | null;
|
|
100516
101527
|
superseded_by: string | null;
|
|
101528
|
+
target_week: number | null;
|
|
101529
|
+
target_year: number | null;
|
|
100517
101530
|
trade_item_id: string;
|
|
100518
101531
|
updated_at: string;
|
|
100519
101532
|
user_id: string;
|
|
@@ -100522,6 +101535,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
100522
101535
|
attempts?: number;
|
|
100523
101536
|
connection_id: string;
|
|
100524
101537
|
created_at?: string;
|
|
101538
|
+
dead_lettered_at?: string | null;
|
|
100525
101539
|
desired_available?: boolean | null;
|
|
100526
101540
|
gateway_attempt_id?: string | null;
|
|
100527
101541
|
id?: string;
|
|
@@ -100530,9 +101544,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
100530
101544
|
locked_by?: string | null;
|
|
100531
101545
|
next_attempt_at?: string;
|
|
100532
101546
|
number_of_pieces?: number;
|
|
101547
|
+
product_id?: string | null;
|
|
100533
101548
|
sent_at?: string | null;
|
|
100534
101549
|
status?: string;
|
|
101550
|
+
stock_mode?: string | null;
|
|
100535
101551
|
superseded_by?: string | null;
|
|
101552
|
+
target_week?: number | null;
|
|
101553
|
+
target_year?: number | null;
|
|
100536
101554
|
trade_item_id: string;
|
|
100537
101555
|
updated_at?: string;
|
|
100538
101556
|
user_id: string;
|
|
@@ -100541,6 +101559,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
100541
101559
|
attempts?: number;
|
|
100542
101560
|
connection_id?: string;
|
|
100543
101561
|
created_at?: string;
|
|
101562
|
+
dead_lettered_at?: string | null;
|
|
100544
101563
|
desired_available?: boolean | null;
|
|
100545
101564
|
gateway_attempt_id?: string | null;
|
|
100546
101565
|
id?: string;
|
|
@@ -100549,9 +101568,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
100549
101568
|
locked_by?: string | null;
|
|
100550
101569
|
next_attempt_at?: string;
|
|
100551
101570
|
number_of_pieces?: number;
|
|
101571
|
+
product_id?: string | null;
|
|
100552
101572
|
sent_at?: string | null;
|
|
100553
101573
|
status?: string;
|
|
101574
|
+
stock_mode?: string | null;
|
|
100554
101575
|
superseded_by?: string | null;
|
|
101576
|
+
target_week?: number | null;
|
|
101577
|
+
target_year?: number | null;
|
|
100555
101578
|
trade_item_id?: string;
|
|
100556
101579
|
updated_at?: string;
|
|
100557
101580
|
user_id?: string;
|
|
@@ -100960,6 +101983,87 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
100960
101983
|
referencedColumns: ["id"];
|
|
100961
101984
|
}];
|
|
100962
101985
|
};
|
|
101986
|
+
floriday_inventory_settings: {
|
|
101987
|
+
Row: {
|
|
101988
|
+
buffer_quantity: number;
|
|
101989
|
+
connection_id: string;
|
|
101990
|
+
created_at: string;
|
|
101991
|
+
desired_availability: boolean;
|
|
101992
|
+
desired_quantity: number;
|
|
101993
|
+
fixed_quantity: number | null;
|
|
101994
|
+
floriday_trade_item_id: string | null;
|
|
101995
|
+
id: string;
|
|
101996
|
+
last_confirmed_at: string | null;
|
|
101997
|
+
last_enqueued_at: string | null;
|
|
101998
|
+
last_published_at: string | null;
|
|
101999
|
+
last_sync_error: string | null;
|
|
102000
|
+
manual_quantity: number | null;
|
|
102001
|
+
maximum_quantity: number | null;
|
|
102002
|
+
product_id: string;
|
|
102003
|
+
quantity_control: string;
|
|
102004
|
+
remote_available: boolean | null;
|
|
102005
|
+
remote_checked_at: string | null;
|
|
102006
|
+
remote_quantity: number | null;
|
|
102007
|
+
stock_mode: string;
|
|
102008
|
+
sync_status: string;
|
|
102009
|
+
updated_at: string;
|
|
102010
|
+
updated_by: string | null;
|
|
102011
|
+
user_id: string;
|
|
102012
|
+
};
|
|
102013
|
+
Insert: {
|
|
102014
|
+
buffer_quantity?: number;
|
|
102015
|
+
connection_id: string;
|
|
102016
|
+
created_at?: string;
|
|
102017
|
+
desired_availability?: boolean;
|
|
102018
|
+
desired_quantity?: number;
|
|
102019
|
+
fixed_quantity?: number | null;
|
|
102020
|
+
floriday_trade_item_id?: string | null;
|
|
102021
|
+
id?: string;
|
|
102022
|
+
last_confirmed_at?: string | null;
|
|
102023
|
+
last_enqueued_at?: string | null;
|
|
102024
|
+
last_published_at?: string | null;
|
|
102025
|
+
last_sync_error?: string | null;
|
|
102026
|
+
manual_quantity?: number | null;
|
|
102027
|
+
maximum_quantity?: number | null;
|
|
102028
|
+
product_id: string;
|
|
102029
|
+
quantity_control?: string;
|
|
102030
|
+
remote_available?: boolean | null;
|
|
102031
|
+
remote_checked_at?: string | null;
|
|
102032
|
+
remote_quantity?: number | null;
|
|
102033
|
+
stock_mode?: string;
|
|
102034
|
+
sync_status?: string;
|
|
102035
|
+
updated_at?: string;
|
|
102036
|
+
updated_by?: string | null;
|
|
102037
|
+
user_id: string;
|
|
102038
|
+
};
|
|
102039
|
+
Update: {
|
|
102040
|
+
buffer_quantity?: number;
|
|
102041
|
+
connection_id?: string;
|
|
102042
|
+
created_at?: string;
|
|
102043
|
+
desired_availability?: boolean;
|
|
102044
|
+
desired_quantity?: number;
|
|
102045
|
+
fixed_quantity?: number | null;
|
|
102046
|
+
floriday_trade_item_id?: string | null;
|
|
102047
|
+
id?: string;
|
|
102048
|
+
last_confirmed_at?: string | null;
|
|
102049
|
+
last_enqueued_at?: string | null;
|
|
102050
|
+
last_published_at?: string | null;
|
|
102051
|
+
last_sync_error?: string | null;
|
|
102052
|
+
manual_quantity?: number | null;
|
|
102053
|
+
maximum_quantity?: number | null;
|
|
102054
|
+
product_id?: string;
|
|
102055
|
+
quantity_control?: string;
|
|
102056
|
+
remote_available?: boolean | null;
|
|
102057
|
+
remote_checked_at?: string | null;
|
|
102058
|
+
remote_quantity?: number | null;
|
|
102059
|
+
stock_mode?: string;
|
|
102060
|
+
sync_status?: string;
|
|
102061
|
+
updated_at?: string;
|
|
102062
|
+
updated_by?: string | null;
|
|
102063
|
+
user_id?: string;
|
|
102064
|
+
};
|
|
102065
|
+
Relationships: [];
|
|
102066
|
+
};
|
|
100963
102067
|
floriday_invoices_cache: {
|
|
100964
102068
|
Row: {
|
|
100965
102069
|
buyer_organization_id: string | null;
|
|
@@ -101248,6 +102352,39 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
101248
102352
|
};
|
|
101249
102353
|
Relationships: [];
|
|
101250
102354
|
};
|
|
102355
|
+
floriday_sales_order_ingest: {
|
|
102356
|
+
Row: {
|
|
102357
|
+
connection_id: string;
|
|
102358
|
+
created_at: string;
|
|
102359
|
+
id: string;
|
|
102360
|
+
impact: import("../integrations/supabase/types").Json;
|
|
102361
|
+
order_status: string | null;
|
|
102362
|
+
order_version: number;
|
|
102363
|
+
processed_at: string;
|
|
102364
|
+
sales_order_id: string;
|
|
102365
|
+
};
|
|
102366
|
+
Insert: {
|
|
102367
|
+
connection_id: string;
|
|
102368
|
+
created_at?: string;
|
|
102369
|
+
id?: string;
|
|
102370
|
+
impact?: import("../integrations/supabase/types").Json;
|
|
102371
|
+
order_status?: string | null;
|
|
102372
|
+
order_version?: number;
|
|
102373
|
+
processed_at?: string;
|
|
102374
|
+
sales_order_id: string;
|
|
102375
|
+
};
|
|
102376
|
+
Update: {
|
|
102377
|
+
connection_id?: string;
|
|
102378
|
+
created_at?: string;
|
|
102379
|
+
id?: string;
|
|
102380
|
+
impact?: import("../integrations/supabase/types").Json;
|
|
102381
|
+
order_status?: string | null;
|
|
102382
|
+
order_version?: number;
|
|
102383
|
+
processed_at?: string;
|
|
102384
|
+
sales_order_id?: string;
|
|
102385
|
+
};
|
|
102386
|
+
Relationships: [];
|
|
102387
|
+
};
|
|
101251
102388
|
floriday_sales_strategies_cache: {
|
|
101252
102389
|
Row: {
|
|
101253
102390
|
connection_id: string;
|
|
@@ -101347,6 +102484,39 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
101347
102484
|
};
|
|
101348
102485
|
Relationships: [];
|
|
101349
102486
|
};
|
|
102487
|
+
floriday_sync_cursors: {
|
|
102488
|
+
Row: {
|
|
102489
|
+
connection_id: string;
|
|
102490
|
+
created_at: string;
|
|
102491
|
+
id: string;
|
|
102492
|
+
last_error: string | null;
|
|
102493
|
+
last_sync_at: string | null;
|
|
102494
|
+
resource_type: string;
|
|
102495
|
+
sequence_number: number;
|
|
102496
|
+
updated_at: string;
|
|
102497
|
+
};
|
|
102498
|
+
Insert: {
|
|
102499
|
+
connection_id: string;
|
|
102500
|
+
created_at?: string;
|
|
102501
|
+
id?: string;
|
|
102502
|
+
last_error?: string | null;
|
|
102503
|
+
last_sync_at?: string | null;
|
|
102504
|
+
resource_type: string;
|
|
102505
|
+
sequence_number?: number;
|
|
102506
|
+
updated_at?: string;
|
|
102507
|
+
};
|
|
102508
|
+
Update: {
|
|
102509
|
+
connection_id?: string;
|
|
102510
|
+
created_at?: string;
|
|
102511
|
+
id?: string;
|
|
102512
|
+
last_error?: string | null;
|
|
102513
|
+
last_sync_at?: string | null;
|
|
102514
|
+
resource_type?: string;
|
|
102515
|
+
sequence_number?: number;
|
|
102516
|
+
updated_at?: string;
|
|
102517
|
+
};
|
|
102518
|
+
Relationships: [];
|
|
102519
|
+
};
|
|
101350
102520
|
floriday_sync_state: {
|
|
101351
102521
|
Row: {
|
|
101352
102522
|
connection_id: string;
|
|
@@ -102037,6 +103207,42 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
102037
103207
|
};
|
|
102038
103208
|
Relationships: [];
|
|
102039
103209
|
};
|
|
103210
|
+
inventory_stock_snapshots: {
|
|
103211
|
+
Row: {
|
|
103212
|
+
connection_id: string;
|
|
103213
|
+
created_at: string;
|
|
103214
|
+
erp_available_quantity: number;
|
|
103215
|
+
floriday_desired_quantity: number;
|
|
103216
|
+
floriday_remote_quantity: number | null;
|
|
103217
|
+
granularity: string;
|
|
103218
|
+
id: string;
|
|
103219
|
+
snapshot_at: string;
|
|
103220
|
+
user_id: string | null;
|
|
103221
|
+
};
|
|
103222
|
+
Insert: {
|
|
103223
|
+
connection_id: string;
|
|
103224
|
+
created_at?: string;
|
|
103225
|
+
erp_available_quantity?: number;
|
|
103226
|
+
floriday_desired_quantity?: number;
|
|
103227
|
+
floriday_remote_quantity?: number | null;
|
|
103228
|
+
granularity?: string;
|
|
103229
|
+
id?: string;
|
|
103230
|
+
snapshot_at?: string;
|
|
103231
|
+
user_id?: string | null;
|
|
103232
|
+
};
|
|
103233
|
+
Update: {
|
|
103234
|
+
connection_id?: string;
|
|
103235
|
+
created_at?: string;
|
|
103236
|
+
erp_available_quantity?: number;
|
|
103237
|
+
floriday_desired_quantity?: number;
|
|
103238
|
+
floriday_remote_quantity?: number | null;
|
|
103239
|
+
granularity?: string;
|
|
103240
|
+
id?: string;
|
|
103241
|
+
snapshot_at?: string;
|
|
103242
|
+
user_id?: string | null;
|
|
103243
|
+
};
|
|
103244
|
+
Relationships: [];
|
|
103245
|
+
};
|
|
102040
103246
|
invoice_items: {
|
|
102041
103247
|
Row: {
|
|
102042
103248
|
created_at: string;
|
|
@@ -111231,6 +112437,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
111231
112437
|
};
|
|
111232
112438
|
trade_item_stock: {
|
|
111233
112439
|
Row: {
|
|
112440
|
+
change_source: string;
|
|
111234
112441
|
connection_id: string;
|
|
111235
112442
|
created_at: string;
|
|
111236
112443
|
id: string;
|
|
@@ -111244,6 +112451,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
111244
112451
|
user_id: string;
|
|
111245
112452
|
};
|
|
111246
112453
|
Insert: {
|
|
112454
|
+
change_source?: string;
|
|
111247
112455
|
connection_id: string;
|
|
111248
112456
|
created_at?: string;
|
|
111249
112457
|
id?: string;
|
|
@@ -111257,6 +112465,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
111257
112465
|
user_id: string;
|
|
111258
112466
|
};
|
|
111259
112467
|
Update: {
|
|
112468
|
+
change_source?: string;
|
|
111260
112469
|
connection_id?: string;
|
|
111261
112470
|
created_at?: string;
|
|
111262
112471
|
id?: string;
|
|
@@ -114857,6 +116066,18 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
114857
116066
|
Args: never;
|
|
114858
116067
|
Returns: number;
|
|
114859
116068
|
};
|
|
116069
|
+
calculate_floriday_desired_stock: {
|
|
116070
|
+
Args: {
|
|
116071
|
+
p_connection_id: string;
|
|
116072
|
+
p_product_id: string;
|
|
116073
|
+
};
|
|
116074
|
+
Returns: {
|
|
116075
|
+
desired_availability: boolean;
|
|
116076
|
+
desired_quantity: number;
|
|
116077
|
+
erp_available: number;
|
|
116078
|
+
stock_mode: string;
|
|
116079
|
+
}[];
|
|
116080
|
+
};
|
|
114860
116081
|
calculate_layer_stock: {
|
|
114861
116082
|
Args: {
|
|
114862
116083
|
p_product_id: string;
|
|
@@ -114951,6 +116172,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
114951
116172
|
attempts: number;
|
|
114952
116173
|
connection_id: string;
|
|
114953
116174
|
created_at: string;
|
|
116175
|
+
dead_lettered_at: string | null;
|
|
114954
116176
|
desired_available: boolean | null;
|
|
114955
116177
|
gateway_attempt_id: string | null;
|
|
114956
116178
|
id: string;
|
|
@@ -114959,9 +116181,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
114959
116181
|
locked_by: string | null;
|
|
114960
116182
|
next_attempt_at: string;
|
|
114961
116183
|
number_of_pieces: number;
|
|
116184
|
+
product_id: string | null;
|
|
114962
116185
|
sent_at: string | null;
|
|
114963
116186
|
status: string;
|
|
116187
|
+
stock_mode: string | null;
|
|
114964
116188
|
superseded_by: string | null;
|
|
116189
|
+
target_week: number | null;
|
|
116190
|
+
target_year: number | null;
|
|
114965
116191
|
trade_item_id: string;
|
|
114966
116192
|
updated_at: string;
|
|
114967
116193
|
user_id: string;
|
|
@@ -115442,6 +116668,24 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
115442
116668
|
};
|
|
115443
116669
|
Returns: string;
|
|
115444
116670
|
};
|
|
116671
|
+
floriday_capture_stock_snapshot: {
|
|
116672
|
+
Args: never;
|
|
116673
|
+
Returns: number;
|
|
116674
|
+
};
|
|
116675
|
+
floriday_cleanup_stock_queue_v2: {
|
|
116676
|
+
Args: never;
|
|
116677
|
+
Returns: undefined;
|
|
116678
|
+
};
|
|
116679
|
+
floriday_compact_stock_snapshots: {
|
|
116680
|
+
Args: never;
|
|
116681
|
+
Returns: undefined;
|
|
116682
|
+
};
|
|
116683
|
+
floriday_default_owner: {
|
|
116684
|
+
Args: {
|
|
116685
|
+
p_connection_id: string;
|
|
116686
|
+
};
|
|
116687
|
+
Returns: string;
|
|
116688
|
+
};
|
|
115445
116689
|
floriday_effective_price: {
|
|
115446
116690
|
Args: {
|
|
115447
116691
|
_buyer_id: string;
|
|
@@ -115459,6 +116703,22 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
|
|
|
115459
116703
|
source_id: string;
|
|
115460
116704
|
}[];
|
|
115461
116705
|
};
|
|
116706
|
+
floriday_fill_publish_horizon: {
|
|
116707
|
+
Args: never;
|
|
116708
|
+
Returns: number;
|
|
116709
|
+
};
|
|
116710
|
+
floriday_publish_horizon_weeks: {
|
|
116711
|
+
Args: never;
|
|
116712
|
+
Returns: number;
|
|
116713
|
+
};
|
|
116714
|
+
floriday_recompute_inventory: {
|
|
116715
|
+
Args: {
|
|
116716
|
+
p_connection_id: string;
|
|
116717
|
+
p_force?: boolean;
|
|
116718
|
+
p_product_id: string;
|
|
116719
|
+
};
|
|
116720
|
+
Returns: undefined;
|
|
116721
|
+
};
|
|
115462
116722
|
format_cart_number: {
|
|
115463
116723
|
Args: {
|
|
115464
116724
|
p_pick_date: string;
|