@flowselections/floriday-voorraad 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/voorraad/ArtikelWizard.d.ts +2 -1
- package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
- package/dist-lib/components/voorraad/ArtikelWizard.js +555 -316
- package/dist-lib/components/voorraad/EditArtikelPage.d.ts +2 -1
- package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
- package/dist-lib/components/voorraad/EditArtikelPage.js +3 -3
- package/dist-lib/components/voorraad/FustenPage.d.ts +2 -0
- package/dist-lib/components/voorraad/FustenPage.d.ts.map +1 -0
- package/dist-lib/components/voorraad/FustenPage.js +97 -0
- package/dist-lib/components/voorraad/LogistiekTakenCard.d.ts +2 -0
- package/dist-lib/components/voorraad/LogistiekTakenCard.d.ts.map +1 -0
- package/dist-lib/components/voorraad/LogistiekTakenCard.js +54 -0
- package/dist-lib/components/voorraad/PublicatiesPage.d.ts +2 -0
- package/dist-lib/components/voorraad/PublicatiesPage.d.ts.map +1 -0
- package/dist-lib/components/voorraad/PublicatiesPage.js +60 -0
- package/dist-lib/components/voorraad/PublishProgressCard.d.ts +12 -0
- package/dist-lib/components/voorraad/PublishProgressCard.d.ts.map +1 -0
- package/dist-lib/components/voorraad/PublishProgressCard.js +30 -0
- package/dist-lib/components/voorraad/PublishReadinessCard.d.ts +10 -0
- package/dist-lib/components/voorraad/PublishReadinessCard.d.ts.map +1 -0
- package/dist-lib/components/voorraad/PublishReadinessCard.js +12 -0
- package/dist-lib/components/voorraad/StockSyncStatus.d.ts +2 -0
- package/dist-lib/components/voorraad/StockSyncStatus.d.ts.map +1 -0
- package/dist-lib/components/voorraad/StockSyncStatus.js +23 -0
- package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadPage.js +5 -1
- package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadTable.js +1 -1
- package/dist-lib/hooks/useFusten.d.ts +17 -0
- package/dist-lib/hooks/useFusten.d.ts.map +1 -0
- package/dist-lib/hooks/useFusten.js +81 -0
- package/dist-lib/hooks/useLocalTradeItems.d.ts +14 -4
- package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
- package/dist-lib/hooks/useLocalTradeItems.js +83 -5
- package/dist-lib/hooks/useLogisticsTasks.d.ts +13 -0
- package/dist-lib/hooks/useLogisticsTasks.d.ts.map +1 -0
- package/dist-lib/hooks/useLogisticsTasks.js +155 -0
- package/dist-lib/hooks/usePublishJob.d.ts +13 -0
- package/dist-lib/hooks/usePublishJob.d.ts.map +1 -0
- package/dist-lib/hooks/usePublishJob.js +67 -0
- package/dist-lib/hooks/useRegisterModuleBaseUrl.d.ts +2 -0
- package/dist-lib/hooks/useRegisterModuleBaseUrl.d.ts.map +1 -0
- package/dist-lib/hooks/useRegisterModuleBaseUrl.js +31 -0
- package/dist-lib/hooks/useStockSyncHealth.d.ts +8 -0
- package/dist-lib/hooks/useStockSyncHealth.d.ts.map +1 -0
- package/dist-lib/hooks/useStockSyncHealth.js +42 -0
- package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
- package/dist-lib/hooks/useTradeItemStock.js +37 -1
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +5 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1849 -50
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1849 -50
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1849 -50
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1870 -41
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floricode-required-features.functions.d.ts +1849 -50
- package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-client.d.ts +1 -1
- package/dist-lib/lib/floriday-client.d.ts.map +1 -1
- package/dist-lib/lib/floriday-client.js +1 -2
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts +1849 -50
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-customer-offer.functions.js +14 -19
- package/dist-lib/lib/floriday-env.functions.d.ts +35712 -0
- package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-env.functions.js +16 -0
- package/dist-lib/lib/floriday-env.server.d.ts +12 -0
- package/dist-lib/lib/floriday-env.server.d.ts.map +1 -1
- package/dist-lib/lib/floriday-env.server.js +15 -2
- package/dist-lib/lib/floriday-gateway.functions.d.ts +26934 -82
- package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.functions.js +12 -3
- package/dist-lib/lib/floriday-readiness.server.d.ts +11 -0
- package/dist-lib/lib/floriday-readiness.server.d.ts.map +1 -0
- package/dist-lib/lib/floriday-readiness.server.js +43 -0
- package/dist-lib/lib/floriday-vbn-required.functions.d.ts +3698 -100
- package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-warehouse.functions.d.ts +5442 -45
- package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-warehouse.functions.js +3 -0
- package/dist-lib/lib/floriday-writes.functions.d.ts +3698 -100
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/fusten.d.ts +87 -0
- package/dist-lib/lib/fusten.d.ts.map +1 -0
- package/dist-lib/lib/fusten.js +389 -0
- package/dist-lib/lib/logistics-engine.d.ts +63 -0
- package/dist-lib/lib/logistics-engine.d.ts.map +1 -0
- package/dist-lib/lib/logistics-engine.js +57 -0
- package/dist-lib/lib/logistics-events.d.ts +18 -0
- package/dist-lib/lib/logistics-events.d.ts.map +1 -0
- package/dist-lib/lib/logistics-events.js +61 -0
- package/dist-lib/lib/module-runtime-config.functions.d.ts +14 -0
- package/dist-lib/lib/module-runtime-config.functions.d.ts.map +1 -0
- package/dist-lib/lib/module-runtime-config.functions.js +107 -0
- package/dist-lib/lib/publish-errors.d.ts +37 -0
- package/dist-lib/lib/publish-errors.d.ts.map +1 -0
- package/dist-lib/lib/publish-errors.js +183 -0
- package/dist-lib/lib/publish-pipeline.d.ts +91 -0
- package/dist-lib/lib/publish-pipeline.d.ts.map +1 -0
- package/dist-lib/lib/publish-pipeline.js +212 -0
- package/dist-lib/lib/publish-readiness.d.ts +42 -0
- package/dist-lib/lib/publish-readiness.d.ts.map +1 -0
- package/dist-lib/lib/publish-readiness.js +102 -0
- package/package.json +2 -2
|
@@ -1633,13 +1633,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
1633
1633
|
id?: string;
|
|
1634
1634
|
user_id?: string | null;
|
|
1635
1635
|
};
|
|
1636
|
-
Relationships: [
|
|
1637
|
-
foreignKeyName: "customer_audit_log_customer_id_fkey";
|
|
1638
|
-
columns: ["customer_id"];
|
|
1639
|
-
isOneToOne: false;
|
|
1640
|
-
referencedRelation: "customers";
|
|
1641
|
-
referencedColumns: ["id"];
|
|
1642
|
-
}];
|
|
1636
|
+
Relationships: [];
|
|
1643
1637
|
};
|
|
1644
1638
|
customer_contacts: {
|
|
1645
1639
|
Row: {
|
|
@@ -1700,9 +1694,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
1700
1694
|
city: string | null;
|
|
1701
1695
|
country: string | null;
|
|
1702
1696
|
created_at: string;
|
|
1703
|
-
customer_id: string;
|
|
1697
|
+
customer_id: string | null;
|
|
1698
|
+
external_key: string | null;
|
|
1699
|
+
external_provider: string | null;
|
|
1704
1700
|
floriday_location_id: string | null;
|
|
1705
1701
|
gln: string | null;
|
|
1702
|
+
group_key: string | null;
|
|
1706
1703
|
house_number: string | null;
|
|
1707
1704
|
id: string;
|
|
1708
1705
|
is_primary: boolean;
|
|
@@ -1721,9 +1718,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
1721
1718
|
city?: string | null;
|
|
1722
1719
|
country?: string | null;
|
|
1723
1720
|
created_at?: string;
|
|
1724
|
-
customer_id
|
|
1721
|
+
customer_id?: string | null;
|
|
1722
|
+
external_key?: string | null;
|
|
1723
|
+
external_provider?: string | null;
|
|
1725
1724
|
floriday_location_id?: string | null;
|
|
1726
1725
|
gln?: string | null;
|
|
1726
|
+
group_key?: string | null;
|
|
1727
1727
|
house_number?: string | null;
|
|
1728
1728
|
id?: string;
|
|
1729
1729
|
is_primary?: boolean;
|
|
@@ -1742,9 +1742,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
1742
1742
|
city?: string | null;
|
|
1743
1743
|
country?: string | null;
|
|
1744
1744
|
created_at?: string;
|
|
1745
|
-
customer_id?: string;
|
|
1745
|
+
customer_id?: string | null;
|
|
1746
|
+
external_key?: string | null;
|
|
1747
|
+
external_provider?: string | null;
|
|
1746
1748
|
floriday_location_id?: string | null;
|
|
1747
1749
|
gln?: string | null;
|
|
1750
|
+
group_key?: string | null;
|
|
1748
1751
|
house_number?: string | null;
|
|
1749
1752
|
id?: string;
|
|
1750
1753
|
is_primary?: boolean;
|
|
@@ -1833,6 +1836,39 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
1833
1836
|
};
|
|
1834
1837
|
Relationships: [];
|
|
1835
1838
|
};
|
|
1839
|
+
customer_logistics_strategy: {
|
|
1840
|
+
Row: {
|
|
1841
|
+
created_at: string;
|
|
1842
|
+
id: string;
|
|
1843
|
+
ref_key: string;
|
|
1844
|
+
scope: string;
|
|
1845
|
+
strategy_id: string | null;
|
|
1846
|
+
updated_at: string;
|
|
1847
|
+
};
|
|
1848
|
+
Insert: {
|
|
1849
|
+
created_at?: string;
|
|
1850
|
+
id?: string;
|
|
1851
|
+
ref_key: string;
|
|
1852
|
+
scope: string;
|
|
1853
|
+
strategy_id?: string | null;
|
|
1854
|
+
updated_at?: string;
|
|
1855
|
+
};
|
|
1856
|
+
Update: {
|
|
1857
|
+
created_at?: string;
|
|
1858
|
+
id?: string;
|
|
1859
|
+
ref_key?: string;
|
|
1860
|
+
scope?: string;
|
|
1861
|
+
strategy_id?: string | null;
|
|
1862
|
+
updated_at?: string;
|
|
1863
|
+
};
|
|
1864
|
+
Relationships: [{
|
|
1865
|
+
foreignKeyName: "customer_logistics_strategy_strategy_id_fkey";
|
|
1866
|
+
columns: ["strategy_id"];
|
|
1867
|
+
isOneToOne: false;
|
|
1868
|
+
referencedRelation: "logistics_strategies";
|
|
1869
|
+
referencedColumns: ["id"];
|
|
1870
|
+
}];
|
|
1871
|
+
};
|
|
1836
1872
|
customer_price_group_members: {
|
|
1837
1873
|
Row: {
|
|
1838
1874
|
created_at: string;
|
|
@@ -2044,6 +2080,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2044
2080
|
bank_state: string | null;
|
|
2045
2081
|
billing_email: string | null;
|
|
2046
2082
|
bio: string | null;
|
|
2083
|
+
blocked: boolean;
|
|
2047
2084
|
city: string | null;
|
|
2048
2085
|
coc_number: string | null;
|
|
2049
2086
|
commercial_name: string | null;
|
|
@@ -2052,11 +2089,14 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2052
2089
|
contact_person: string | null;
|
|
2053
2090
|
country: string | null;
|
|
2054
2091
|
created_at: string;
|
|
2092
|
+
credit_limit: number;
|
|
2055
2093
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
2056
2094
|
customer_class: string | null;
|
|
2057
2095
|
customer_number: string | null;
|
|
2058
2096
|
discount_days: number | null;
|
|
2059
2097
|
discount_percentage: number | null;
|
|
2098
|
+
discount_surcharge: string;
|
|
2099
|
+
e_invoicing: boolean;
|
|
2060
2100
|
email: string | null;
|
|
2061
2101
|
external_id: string | null;
|
|
2062
2102
|
fax: string | null;
|
|
@@ -2067,19 +2107,23 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2067
2107
|
house_number: string | null;
|
|
2068
2108
|
icp_country_code: string | null;
|
|
2069
2109
|
id: string;
|
|
2110
|
+
invoice_send_as: string;
|
|
2070
2111
|
is_active: boolean;
|
|
2071
2112
|
language: string | null;
|
|
2072
2113
|
last_synced_at: string | null;
|
|
2114
|
+
ledger_account: string | null;
|
|
2073
2115
|
logo_url: string | null;
|
|
2074
2116
|
markets: string[];
|
|
2075
2117
|
notes: string | null;
|
|
2076
2118
|
organization_type: string | null;
|
|
2077
2119
|
payment_methods: string[];
|
|
2120
|
+
payment_spec_method: string;
|
|
2078
2121
|
payment_term_days: number | null;
|
|
2079
2122
|
phone: string | null;
|
|
2080
2123
|
postal_code: string | null;
|
|
2081
2124
|
product_groups: string[];
|
|
2082
2125
|
segments: string[];
|
|
2126
|
+
send_reminder: string;
|
|
2083
2127
|
source: string;
|
|
2084
2128
|
street: string | null;
|
|
2085
2129
|
sync_error: string | null;
|
|
@@ -2115,6 +2159,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2115
2159
|
bank_state?: string | null;
|
|
2116
2160
|
billing_email?: string | null;
|
|
2117
2161
|
bio?: string | null;
|
|
2162
|
+
blocked?: boolean;
|
|
2118
2163
|
city?: string | null;
|
|
2119
2164
|
coc_number?: string | null;
|
|
2120
2165
|
commercial_name?: string | null;
|
|
@@ -2123,11 +2168,14 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2123
2168
|
contact_person?: string | null;
|
|
2124
2169
|
country?: string | null;
|
|
2125
2170
|
created_at?: string;
|
|
2171
|
+
credit_limit?: number;
|
|
2126
2172
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
2127
2173
|
customer_class?: string | null;
|
|
2128
2174
|
customer_number?: string | null;
|
|
2129
2175
|
discount_days?: number | null;
|
|
2130
2176
|
discount_percentage?: number | null;
|
|
2177
|
+
discount_surcharge?: string;
|
|
2178
|
+
e_invoicing?: boolean;
|
|
2131
2179
|
email?: string | null;
|
|
2132
2180
|
external_id?: string | null;
|
|
2133
2181
|
fax?: string | null;
|
|
@@ -2138,19 +2186,23 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2138
2186
|
house_number?: string | null;
|
|
2139
2187
|
icp_country_code?: string | null;
|
|
2140
2188
|
id?: string;
|
|
2189
|
+
invoice_send_as?: string;
|
|
2141
2190
|
is_active?: boolean;
|
|
2142
2191
|
language?: string | null;
|
|
2143
2192
|
last_synced_at?: string | null;
|
|
2193
|
+
ledger_account?: string | null;
|
|
2144
2194
|
logo_url?: string | null;
|
|
2145
2195
|
markets?: string[];
|
|
2146
2196
|
notes?: string | null;
|
|
2147
2197
|
organization_type?: string | null;
|
|
2148
2198
|
payment_methods?: string[];
|
|
2199
|
+
payment_spec_method?: string;
|
|
2149
2200
|
payment_term_days?: number | null;
|
|
2150
2201
|
phone?: string | null;
|
|
2151
2202
|
postal_code?: string | null;
|
|
2152
2203
|
product_groups?: string[];
|
|
2153
2204
|
segments?: string[];
|
|
2205
|
+
send_reminder?: string;
|
|
2154
2206
|
source?: string;
|
|
2155
2207
|
street?: string | null;
|
|
2156
2208
|
sync_error?: string | null;
|
|
@@ -2186,6 +2238,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2186
2238
|
bank_state?: string | null;
|
|
2187
2239
|
billing_email?: string | null;
|
|
2188
2240
|
bio?: string | null;
|
|
2241
|
+
blocked?: boolean;
|
|
2189
2242
|
city?: string | null;
|
|
2190
2243
|
coc_number?: string | null;
|
|
2191
2244
|
commercial_name?: string | null;
|
|
@@ -2194,11 +2247,14 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2194
2247
|
contact_person?: string | null;
|
|
2195
2248
|
country?: string | null;
|
|
2196
2249
|
created_at?: string;
|
|
2250
|
+
credit_limit?: number;
|
|
2197
2251
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
2198
2252
|
customer_class?: string | null;
|
|
2199
2253
|
customer_number?: string | null;
|
|
2200
2254
|
discount_days?: number | null;
|
|
2201
2255
|
discount_percentage?: number | null;
|
|
2256
|
+
discount_surcharge?: string;
|
|
2257
|
+
e_invoicing?: boolean;
|
|
2202
2258
|
email?: string | null;
|
|
2203
2259
|
external_id?: string | null;
|
|
2204
2260
|
fax?: string | null;
|
|
@@ -2209,19 +2265,23 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2209
2265
|
house_number?: string | null;
|
|
2210
2266
|
icp_country_code?: string | null;
|
|
2211
2267
|
id?: string;
|
|
2268
|
+
invoice_send_as?: string;
|
|
2212
2269
|
is_active?: boolean;
|
|
2213
2270
|
language?: string | null;
|
|
2214
2271
|
last_synced_at?: string | null;
|
|
2272
|
+
ledger_account?: string | null;
|
|
2215
2273
|
logo_url?: string | null;
|
|
2216
2274
|
markets?: string[];
|
|
2217
2275
|
notes?: string | null;
|
|
2218
2276
|
organization_type?: string | null;
|
|
2219
2277
|
payment_methods?: string[];
|
|
2278
|
+
payment_spec_method?: string;
|
|
2220
2279
|
payment_term_days?: number | null;
|
|
2221
2280
|
phone?: string | null;
|
|
2222
2281
|
postal_code?: string | null;
|
|
2223
2282
|
product_groups?: string[];
|
|
2224
2283
|
segments?: string[];
|
|
2284
|
+
send_reminder?: string;
|
|
2225
2285
|
source?: string;
|
|
2226
2286
|
street?: string | null;
|
|
2227
2287
|
sync_error?: string | null;
|
|
@@ -2940,6 +3000,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2940
3000
|
status: string;
|
|
2941
3001
|
token_expires_at: string | null;
|
|
2942
3002
|
updated_at: string;
|
|
3003
|
+
watch_scope: string;
|
|
2943
3004
|
webhook_last_attempt_at: string | null;
|
|
2944
3005
|
webhook_last_error: string | null;
|
|
2945
3006
|
webhook_status: string;
|
|
@@ -2982,6 +3043,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
2982
3043
|
status?: string;
|
|
2983
3044
|
token_expires_at?: string | null;
|
|
2984
3045
|
updated_at?: string;
|
|
3046
|
+
watch_scope?: string;
|
|
2985
3047
|
webhook_last_attempt_at?: string | null;
|
|
2986
3048
|
webhook_last_error?: string | null;
|
|
2987
3049
|
webhook_status?: string;
|
|
@@ -3024,6 +3086,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
3024
3086
|
status?: string;
|
|
3025
3087
|
token_expires_at?: string | null;
|
|
3026
3088
|
updated_at?: string;
|
|
3089
|
+
watch_scope?: string;
|
|
3027
3090
|
webhook_last_attempt_at?: string | null;
|
|
3028
3091
|
webhook_last_error?: string | null;
|
|
3029
3092
|
webhook_status?: string;
|
|
@@ -3222,6 +3285,72 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
3222
3285
|
referencedColumns: ["id"];
|
|
3223
3286
|
}];
|
|
3224
3287
|
};
|
|
3288
|
+
email_auth_watch_folders: {
|
|
3289
|
+
Row: {
|
|
3290
|
+
connection_id: string;
|
|
3291
|
+
created_at: string;
|
|
3292
|
+
folder_id: string;
|
|
3293
|
+
folder_name: string | null;
|
|
3294
|
+
gmail_history_id: string | null;
|
|
3295
|
+
graph_subscription_expires_at: string | null;
|
|
3296
|
+
graph_subscription_id: string | null;
|
|
3297
|
+
id: string;
|
|
3298
|
+
imap_last_uid: number | null;
|
|
3299
|
+
imap_uid_validity: number | null;
|
|
3300
|
+
mailbox: string;
|
|
3301
|
+
provider: string;
|
|
3302
|
+
updated_at: string;
|
|
3303
|
+
webhook_last_error: string | null;
|
|
3304
|
+
webhook_status: string | null;
|
|
3305
|
+
};
|
|
3306
|
+
Insert: {
|
|
3307
|
+
connection_id: string;
|
|
3308
|
+
created_at?: string;
|
|
3309
|
+
folder_id: string;
|
|
3310
|
+
folder_name?: string | null;
|
|
3311
|
+
gmail_history_id?: string | null;
|
|
3312
|
+
graph_subscription_expires_at?: string | null;
|
|
3313
|
+
graph_subscription_id?: string | null;
|
|
3314
|
+
id?: string;
|
|
3315
|
+
imap_last_uid?: number | null;
|
|
3316
|
+
imap_uid_validity?: number | null;
|
|
3317
|
+
mailbox?: string;
|
|
3318
|
+
provider: string;
|
|
3319
|
+
updated_at?: string;
|
|
3320
|
+
webhook_last_error?: string | null;
|
|
3321
|
+
webhook_status?: string | null;
|
|
3322
|
+
};
|
|
3323
|
+
Update: {
|
|
3324
|
+
connection_id?: string;
|
|
3325
|
+
created_at?: string;
|
|
3326
|
+
folder_id?: string;
|
|
3327
|
+
folder_name?: string | null;
|
|
3328
|
+
gmail_history_id?: string | null;
|
|
3329
|
+
graph_subscription_expires_at?: string | null;
|
|
3330
|
+
graph_subscription_id?: string | null;
|
|
3331
|
+
id?: string;
|
|
3332
|
+
imap_last_uid?: number | null;
|
|
3333
|
+
imap_uid_validity?: number | null;
|
|
3334
|
+
mailbox?: string;
|
|
3335
|
+
provider?: string;
|
|
3336
|
+
updated_at?: string;
|
|
3337
|
+
webhook_last_error?: string | null;
|
|
3338
|
+
webhook_status?: string | null;
|
|
3339
|
+
};
|
|
3340
|
+
Relationships: [{
|
|
3341
|
+
foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
|
|
3342
|
+
columns: ["connection_id"];
|
|
3343
|
+
isOneToOne: false;
|
|
3344
|
+
referencedRelation: "email_auth_connections";
|
|
3345
|
+
referencedColumns: ["id"];
|
|
3346
|
+
}, {
|
|
3347
|
+
foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
|
|
3348
|
+
columns: ["connection_id"];
|
|
3349
|
+
isOneToOne: false;
|
|
3350
|
+
referencedRelation: "email_auth_connections_safe";
|
|
3351
|
+
referencedColumns: ["id"];
|
|
3352
|
+
}];
|
|
3353
|
+
};
|
|
3225
3354
|
email_auth_webhook_log: {
|
|
3226
3355
|
Row: {
|
|
3227
3356
|
body_sample: string | null;
|
|
@@ -6315,6 +6444,108 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
6315
6444
|
};
|
|
6316
6445
|
Relationships: [];
|
|
6317
6446
|
};
|
|
6447
|
+
fust_stock_mutations: {
|
|
6448
|
+
Row: {
|
|
6449
|
+
created_at: string;
|
|
6450
|
+
delta: number;
|
|
6451
|
+
fust_type_id: string;
|
|
6452
|
+
id: string;
|
|
6453
|
+
note: string | null;
|
|
6454
|
+
reason: string;
|
|
6455
|
+
trade_item_key: string | null;
|
|
6456
|
+
user_id: string;
|
|
6457
|
+
};
|
|
6458
|
+
Insert: {
|
|
6459
|
+
created_at?: string;
|
|
6460
|
+
delta: number;
|
|
6461
|
+
fust_type_id: string;
|
|
6462
|
+
id?: string;
|
|
6463
|
+
note?: string | null;
|
|
6464
|
+
reason?: string;
|
|
6465
|
+
trade_item_key?: string | null;
|
|
6466
|
+
user_id: string;
|
|
6467
|
+
};
|
|
6468
|
+
Update: {
|
|
6469
|
+
created_at?: string;
|
|
6470
|
+
delta?: number;
|
|
6471
|
+
fust_type_id?: string;
|
|
6472
|
+
id?: string;
|
|
6473
|
+
note?: string | null;
|
|
6474
|
+
reason?: string;
|
|
6475
|
+
trade_item_key?: string | null;
|
|
6476
|
+
user_id?: string;
|
|
6477
|
+
};
|
|
6478
|
+
Relationships: [{
|
|
6479
|
+
foreignKeyName: "fust_stock_mutations_fust_type_id_fkey";
|
|
6480
|
+
columns: ["fust_type_id"];
|
|
6481
|
+
isOneToOne: false;
|
|
6482
|
+
referencedRelation: "fust_types";
|
|
6483
|
+
referencedColumns: ["id"];
|
|
6484
|
+
}];
|
|
6485
|
+
};
|
|
6486
|
+
fust_types: {
|
|
6487
|
+
Row: {
|
|
6488
|
+
connection_id: string | null;
|
|
6489
|
+
created_at: string;
|
|
6490
|
+
custom_package_id: string | null;
|
|
6491
|
+
fust_key: string;
|
|
6492
|
+
height_mm: number | null;
|
|
6493
|
+
id: string;
|
|
6494
|
+
in_use: boolean;
|
|
6495
|
+
length_mm: number | null;
|
|
6496
|
+
minimum_stock: number;
|
|
6497
|
+
name: string;
|
|
6498
|
+
notes: string | null;
|
|
6499
|
+
source: string;
|
|
6500
|
+
stock: number;
|
|
6501
|
+
updated_at: string;
|
|
6502
|
+
used_by_count: number;
|
|
6503
|
+
user_id: string;
|
|
6504
|
+
vbn_code: number | null;
|
|
6505
|
+
width_mm: number | null;
|
|
6506
|
+
};
|
|
6507
|
+
Insert: {
|
|
6508
|
+
connection_id?: string | null;
|
|
6509
|
+
created_at?: string;
|
|
6510
|
+
custom_package_id?: string | null;
|
|
6511
|
+
fust_key: string;
|
|
6512
|
+
height_mm?: number | null;
|
|
6513
|
+
id?: string;
|
|
6514
|
+
in_use?: boolean;
|
|
6515
|
+
length_mm?: number | null;
|
|
6516
|
+
minimum_stock?: number;
|
|
6517
|
+
name: string;
|
|
6518
|
+
notes?: string | null;
|
|
6519
|
+
source?: string;
|
|
6520
|
+
stock?: number;
|
|
6521
|
+
updated_at?: string;
|
|
6522
|
+
used_by_count?: number;
|
|
6523
|
+
user_id: string;
|
|
6524
|
+
vbn_code?: number | null;
|
|
6525
|
+
width_mm?: number | null;
|
|
6526
|
+
};
|
|
6527
|
+
Update: {
|
|
6528
|
+
connection_id?: string | null;
|
|
6529
|
+
created_at?: string;
|
|
6530
|
+
custom_package_id?: string | null;
|
|
6531
|
+
fust_key?: string;
|
|
6532
|
+
height_mm?: number | null;
|
|
6533
|
+
id?: string;
|
|
6534
|
+
in_use?: boolean;
|
|
6535
|
+
length_mm?: number | null;
|
|
6536
|
+
minimum_stock?: number;
|
|
6537
|
+
name?: string;
|
|
6538
|
+
notes?: string | null;
|
|
6539
|
+
source?: string;
|
|
6540
|
+
stock?: number;
|
|
6541
|
+
updated_at?: string;
|
|
6542
|
+
used_by_count?: number;
|
|
6543
|
+
user_id?: string;
|
|
6544
|
+
vbn_code?: number | null;
|
|
6545
|
+
width_mm?: number | null;
|
|
6546
|
+
};
|
|
6547
|
+
Relationships: [];
|
|
6548
|
+
};
|
|
6318
6549
|
imap_accounts: {
|
|
6319
6550
|
Row: {
|
|
6320
6551
|
created_at: string;
|
|
@@ -7002,6 +7233,72 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7002
7233
|
referencedColumns: ["id"];
|
|
7003
7234
|
}];
|
|
7004
7235
|
};
|
|
7236
|
+
load_carrier_types: {
|
|
7237
|
+
Row: {
|
|
7238
|
+
allow_mixing: boolean;
|
|
7239
|
+
capacity_model: string;
|
|
7240
|
+
code: string;
|
|
7241
|
+
created_at: string;
|
|
7242
|
+
id: string;
|
|
7243
|
+
is_active: boolean;
|
|
7244
|
+
is_default: boolean;
|
|
7245
|
+
layer_length_cm: number;
|
|
7246
|
+
layer_width_cm: number;
|
|
7247
|
+
layers_per_carrier: number;
|
|
7248
|
+
max_boxes: number | null;
|
|
7249
|
+
max_crates_per_layer: number | null;
|
|
7250
|
+
max_customers: number | null;
|
|
7251
|
+
max_height_cm: number | null;
|
|
7252
|
+
max_orders: number | null;
|
|
7253
|
+
max_weight_kg: number | null;
|
|
7254
|
+
name: string;
|
|
7255
|
+
sort_order: number;
|
|
7256
|
+
updated_at: string;
|
|
7257
|
+
};
|
|
7258
|
+
Insert: {
|
|
7259
|
+
allow_mixing?: boolean;
|
|
7260
|
+
capacity_model?: string;
|
|
7261
|
+
code: string;
|
|
7262
|
+
created_at?: string;
|
|
7263
|
+
id?: string;
|
|
7264
|
+
is_active?: boolean;
|
|
7265
|
+
is_default?: boolean;
|
|
7266
|
+
layer_length_cm?: number;
|
|
7267
|
+
layer_width_cm?: number;
|
|
7268
|
+
layers_per_carrier?: number;
|
|
7269
|
+
max_boxes?: number | null;
|
|
7270
|
+
max_crates_per_layer?: number | null;
|
|
7271
|
+
max_customers?: number | null;
|
|
7272
|
+
max_height_cm?: number | null;
|
|
7273
|
+
max_orders?: number | null;
|
|
7274
|
+
max_weight_kg?: number | null;
|
|
7275
|
+
name: string;
|
|
7276
|
+
sort_order?: number;
|
|
7277
|
+
updated_at?: string;
|
|
7278
|
+
};
|
|
7279
|
+
Update: {
|
|
7280
|
+
allow_mixing?: boolean;
|
|
7281
|
+
capacity_model?: string;
|
|
7282
|
+
code?: string;
|
|
7283
|
+
created_at?: string;
|
|
7284
|
+
id?: string;
|
|
7285
|
+
is_active?: boolean;
|
|
7286
|
+
is_default?: boolean;
|
|
7287
|
+
layer_length_cm?: number;
|
|
7288
|
+
layer_width_cm?: number;
|
|
7289
|
+
layers_per_carrier?: number;
|
|
7290
|
+
max_boxes?: number | null;
|
|
7291
|
+
max_crates_per_layer?: number | null;
|
|
7292
|
+
max_customers?: number | null;
|
|
7293
|
+
max_height_cm?: number | null;
|
|
7294
|
+
max_orders?: number | null;
|
|
7295
|
+
max_weight_kg?: number | null;
|
|
7296
|
+
name?: string;
|
|
7297
|
+
sort_order?: number;
|
|
7298
|
+
updated_at?: string;
|
|
7299
|
+
};
|
|
7300
|
+
Relationships: [];
|
|
7301
|
+
};
|
|
7005
7302
|
local_customer_agreements: {
|
|
7006
7303
|
Row: {
|
|
7007
7304
|
base_price: number | null;
|
|
@@ -7332,6 +7629,63 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7332
7629
|
referencedColumns: ["id"];
|
|
7333
7630
|
}];
|
|
7334
7631
|
};
|
|
7632
|
+
logistics_events: {
|
|
7633
|
+
Row: {
|
|
7634
|
+
created_at: string;
|
|
7635
|
+
error: string | null;
|
|
7636
|
+
event_type: string;
|
|
7637
|
+
id: string;
|
|
7638
|
+
idempotency_key: string | null;
|
|
7639
|
+
order_ref: string;
|
|
7640
|
+
payload: import("../integrations/supabase/types").Json;
|
|
7641
|
+
plan_run_id: string | null;
|
|
7642
|
+
priority: number;
|
|
7643
|
+
processed_at: string | null;
|
|
7644
|
+
shadow: boolean;
|
|
7645
|
+
source_module: string;
|
|
7646
|
+
status: string;
|
|
7647
|
+
strategy_id: string | null;
|
|
7648
|
+
updated_at: string;
|
|
7649
|
+
user_id: string;
|
|
7650
|
+
};
|
|
7651
|
+
Insert: {
|
|
7652
|
+
created_at?: string;
|
|
7653
|
+
error?: string | null;
|
|
7654
|
+
event_type?: string;
|
|
7655
|
+
id?: string;
|
|
7656
|
+
idempotency_key?: string | null;
|
|
7657
|
+
order_ref: string;
|
|
7658
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
7659
|
+
plan_run_id?: string | null;
|
|
7660
|
+
priority?: number;
|
|
7661
|
+
processed_at?: string | null;
|
|
7662
|
+
shadow?: boolean;
|
|
7663
|
+
source_module: string;
|
|
7664
|
+
status?: string;
|
|
7665
|
+
strategy_id?: string | null;
|
|
7666
|
+
updated_at?: string;
|
|
7667
|
+
user_id?: string;
|
|
7668
|
+
};
|
|
7669
|
+
Update: {
|
|
7670
|
+
created_at?: string;
|
|
7671
|
+
error?: string | null;
|
|
7672
|
+
event_type?: string;
|
|
7673
|
+
id?: string;
|
|
7674
|
+
idempotency_key?: string | null;
|
|
7675
|
+
order_ref?: string;
|
|
7676
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
7677
|
+
plan_run_id?: string | null;
|
|
7678
|
+
priority?: number;
|
|
7679
|
+
processed_at?: string | null;
|
|
7680
|
+
shadow?: boolean;
|
|
7681
|
+
source_module?: string;
|
|
7682
|
+
status?: string;
|
|
7683
|
+
strategy_id?: string | null;
|
|
7684
|
+
updated_at?: string;
|
|
7685
|
+
user_id?: string;
|
|
7686
|
+
};
|
|
7687
|
+
Relationships: [];
|
|
7688
|
+
};
|
|
7335
7689
|
logistics_formulas: {
|
|
7336
7690
|
Row: {
|
|
7337
7691
|
created_at: string;
|
|
@@ -7374,22 +7728,292 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7374
7728
|
referencedColumns: ["id"];
|
|
7375
7729
|
}];
|
|
7376
7730
|
};
|
|
7377
|
-
|
|
7731
|
+
logistics_plan_runs: {
|
|
7378
7732
|
Row: {
|
|
7379
|
-
color: string;
|
|
7380
7733
|
created_at: string;
|
|
7381
|
-
|
|
7734
|
+
error: string | null;
|
|
7382
7735
|
id: string;
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7736
|
+
input: import("../integrations/supabase/types").Json;
|
|
7737
|
+
order_ref: string;
|
|
7738
|
+
rule_config_id: string | null;
|
|
7739
|
+
rule_version: number | null;
|
|
7740
|
+
settings_hash: string | null;
|
|
7741
|
+
settings_snapshot: import("../integrations/supabase/types").Json;
|
|
7742
|
+
source_module: string | null;
|
|
7743
|
+
status: string;
|
|
7744
|
+
strategy_id: string | null;
|
|
7745
|
+
tasks_created: number;
|
|
7746
|
+
tasks_revised: number;
|
|
7747
|
+
trigger: string;
|
|
7386
7748
|
updated_at: string;
|
|
7387
|
-
updated_by: string | null;
|
|
7388
7749
|
user_id: string;
|
|
7389
|
-
|
|
7750
|
+
warnings: import("../integrations/supabase/types").Json;
|
|
7390
7751
|
};
|
|
7391
7752
|
Insert: {
|
|
7392
|
-
|
|
7753
|
+
created_at?: string;
|
|
7754
|
+
error?: string | null;
|
|
7755
|
+
id?: string;
|
|
7756
|
+
input?: import("../integrations/supabase/types").Json;
|
|
7757
|
+
order_ref: string;
|
|
7758
|
+
rule_config_id?: string | null;
|
|
7759
|
+
rule_version?: number | null;
|
|
7760
|
+
settings_hash?: string | null;
|
|
7761
|
+
settings_snapshot?: import("../integrations/supabase/types").Json;
|
|
7762
|
+
source_module?: string | null;
|
|
7763
|
+
status?: string;
|
|
7764
|
+
strategy_id?: string | null;
|
|
7765
|
+
tasks_created?: number;
|
|
7766
|
+
tasks_revised?: number;
|
|
7767
|
+
trigger?: string;
|
|
7768
|
+
updated_at?: string;
|
|
7769
|
+
user_id?: string;
|
|
7770
|
+
warnings?: import("../integrations/supabase/types").Json;
|
|
7771
|
+
};
|
|
7772
|
+
Update: {
|
|
7773
|
+
created_at?: string;
|
|
7774
|
+
error?: string | null;
|
|
7775
|
+
id?: string;
|
|
7776
|
+
input?: import("../integrations/supabase/types").Json;
|
|
7777
|
+
order_ref?: string;
|
|
7778
|
+
rule_config_id?: string | null;
|
|
7779
|
+
rule_version?: number | null;
|
|
7780
|
+
settings_hash?: string | null;
|
|
7781
|
+
settings_snapshot?: import("../integrations/supabase/types").Json;
|
|
7782
|
+
source_module?: string | null;
|
|
7783
|
+
status?: string;
|
|
7784
|
+
strategy_id?: string | null;
|
|
7785
|
+
tasks_created?: number;
|
|
7786
|
+
tasks_revised?: number;
|
|
7787
|
+
trigger?: string;
|
|
7788
|
+
updated_at?: string;
|
|
7789
|
+
user_id?: string;
|
|
7790
|
+
warnings?: import("../integrations/supabase/types").Json;
|
|
7791
|
+
};
|
|
7792
|
+
Relationships: [{
|
|
7793
|
+
foreignKeyName: "logistics_plan_runs_rule_config_id_fkey";
|
|
7794
|
+
columns: ["rule_config_id"];
|
|
7795
|
+
isOneToOne: false;
|
|
7796
|
+
referencedRelation: "logistics_rule_configs";
|
|
7797
|
+
referencedColumns: ["id"];
|
|
7798
|
+
}, {
|
|
7799
|
+
foreignKeyName: "logistics_plan_runs_strategy_id_fkey";
|
|
7800
|
+
columns: ["strategy_id"];
|
|
7801
|
+
isOneToOne: false;
|
|
7802
|
+
referencedRelation: "logistics_strategies";
|
|
7803
|
+
referencedColumns: ["id"];
|
|
7804
|
+
}];
|
|
7805
|
+
};
|
|
7806
|
+
logistics_rebuffer_state: {
|
|
7807
|
+
Row: {
|
|
7808
|
+
created_at: string;
|
|
7809
|
+
id: boolean;
|
|
7810
|
+
last_checked: number;
|
|
7811
|
+
last_duration_ms: number;
|
|
7812
|
+
last_run_at: string | null;
|
|
7813
|
+
last_updated: number;
|
|
7814
|
+
pending: boolean;
|
|
7815
|
+
requested_at: string | null;
|
|
7816
|
+
updated_at: string;
|
|
7817
|
+
};
|
|
7818
|
+
Insert: {
|
|
7819
|
+
created_at?: string;
|
|
7820
|
+
id?: boolean;
|
|
7821
|
+
last_checked?: number;
|
|
7822
|
+
last_duration_ms?: number;
|
|
7823
|
+
last_run_at?: string | null;
|
|
7824
|
+
last_updated?: number;
|
|
7825
|
+
pending?: boolean;
|
|
7826
|
+
requested_at?: string | null;
|
|
7827
|
+
updated_at?: string;
|
|
7828
|
+
};
|
|
7829
|
+
Update: {
|
|
7830
|
+
created_at?: string;
|
|
7831
|
+
id?: boolean;
|
|
7832
|
+
last_checked?: number;
|
|
7833
|
+
last_duration_ms?: number;
|
|
7834
|
+
last_run_at?: string | null;
|
|
7835
|
+
last_updated?: number;
|
|
7836
|
+
pending?: boolean;
|
|
7837
|
+
requested_at?: string | null;
|
|
7838
|
+
updated_at?: string;
|
|
7839
|
+
};
|
|
7840
|
+
Relationships: [];
|
|
7841
|
+
};
|
|
7842
|
+
logistics_rule_configs: {
|
|
7843
|
+
Row: {
|
|
7844
|
+
created_at: string;
|
|
7845
|
+
current_version: number;
|
|
7846
|
+
description: string | null;
|
|
7847
|
+
id: string;
|
|
7848
|
+
is_active: boolean;
|
|
7849
|
+
name: string;
|
|
7850
|
+
settings: import("../integrations/supabase/types").Json;
|
|
7851
|
+
status: string;
|
|
7852
|
+
strategy_id: string | null;
|
|
7853
|
+
updated_at: string;
|
|
7854
|
+
user_id: string;
|
|
7855
|
+
};
|
|
7856
|
+
Insert: {
|
|
7857
|
+
created_at?: string;
|
|
7858
|
+
current_version?: number;
|
|
7859
|
+
description?: string | null;
|
|
7860
|
+
id?: string;
|
|
7861
|
+
is_active?: boolean;
|
|
7862
|
+
name: string;
|
|
7863
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
7864
|
+
status?: string;
|
|
7865
|
+
strategy_id?: string | null;
|
|
7866
|
+
updated_at?: string;
|
|
7867
|
+
user_id?: string;
|
|
7868
|
+
};
|
|
7869
|
+
Update: {
|
|
7870
|
+
created_at?: string;
|
|
7871
|
+
current_version?: number;
|
|
7872
|
+
description?: string | null;
|
|
7873
|
+
id?: string;
|
|
7874
|
+
is_active?: boolean;
|
|
7875
|
+
name?: string;
|
|
7876
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
7877
|
+
status?: string;
|
|
7878
|
+
strategy_id?: string | null;
|
|
7879
|
+
updated_at?: string;
|
|
7880
|
+
user_id?: string;
|
|
7881
|
+
};
|
|
7882
|
+
Relationships: [{
|
|
7883
|
+
foreignKeyName: "logistics_rule_configs_strategy_id_fkey";
|
|
7884
|
+
columns: ["strategy_id"];
|
|
7885
|
+
isOneToOne: false;
|
|
7886
|
+
referencedRelation: "logistics_strategies";
|
|
7887
|
+
referencedColumns: ["id"];
|
|
7888
|
+
}];
|
|
7889
|
+
};
|
|
7890
|
+
logistics_rule_versions: {
|
|
7891
|
+
Row: {
|
|
7892
|
+
config_id: string;
|
|
7893
|
+
created_at: string;
|
|
7894
|
+
id: string;
|
|
7895
|
+
label: string | null;
|
|
7896
|
+
note: string | null;
|
|
7897
|
+
settings: import("../integrations/supabase/types").Json;
|
|
7898
|
+
status: string;
|
|
7899
|
+
user_id: string;
|
|
7900
|
+
version: number;
|
|
7901
|
+
};
|
|
7902
|
+
Insert: {
|
|
7903
|
+
config_id: string;
|
|
7904
|
+
created_at?: string;
|
|
7905
|
+
id?: string;
|
|
7906
|
+
label?: string | null;
|
|
7907
|
+
note?: string | null;
|
|
7908
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
7909
|
+
status?: string;
|
|
7910
|
+
user_id?: string;
|
|
7911
|
+
version: number;
|
|
7912
|
+
};
|
|
7913
|
+
Update: {
|
|
7914
|
+
config_id?: string;
|
|
7915
|
+
created_at?: string;
|
|
7916
|
+
id?: string;
|
|
7917
|
+
label?: string | null;
|
|
7918
|
+
note?: string | null;
|
|
7919
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
7920
|
+
status?: string;
|
|
7921
|
+
user_id?: string;
|
|
7922
|
+
version?: number;
|
|
7923
|
+
};
|
|
7924
|
+
Relationships: [{
|
|
7925
|
+
foreignKeyName: "logistics_rule_versions_config_id_fkey";
|
|
7926
|
+
columns: ["config_id"];
|
|
7927
|
+
isOneToOne: false;
|
|
7928
|
+
referencedRelation: "logistics_rule_configs";
|
|
7929
|
+
referencedColumns: ["id"];
|
|
7930
|
+
}];
|
|
7931
|
+
};
|
|
7932
|
+
logistics_stock_alerts: {
|
|
7933
|
+
Row: {
|
|
7934
|
+
created_at: string;
|
|
7935
|
+
customer_name: string | null;
|
|
7936
|
+
delivery_date: string | null;
|
|
7937
|
+
email_enabled: boolean;
|
|
7938
|
+
email_error: string | null;
|
|
7939
|
+
email_outbox_id: string | null;
|
|
7940
|
+
email_recipients: string[];
|
|
7941
|
+
email_sent_at: string | null;
|
|
7942
|
+
email_status: string;
|
|
7943
|
+
id: string;
|
|
7944
|
+
notification_id: string | null;
|
|
7945
|
+
order_id: string | null;
|
|
7946
|
+
order_ref: string;
|
|
7947
|
+
priority: number;
|
|
7948
|
+
resolved_at: string | null;
|
|
7949
|
+
resolved_by: string | null;
|
|
7950
|
+
shortages: import("../integrations/supabase/types").Json;
|
|
7951
|
+
status: string;
|
|
7952
|
+
updated_at: string;
|
|
7953
|
+
user_id: string;
|
|
7954
|
+
};
|
|
7955
|
+
Insert: {
|
|
7956
|
+
created_at?: string;
|
|
7957
|
+
customer_name?: string | null;
|
|
7958
|
+
delivery_date?: string | null;
|
|
7959
|
+
email_enabled?: boolean;
|
|
7960
|
+
email_error?: string | null;
|
|
7961
|
+
email_outbox_id?: string | null;
|
|
7962
|
+
email_recipients?: string[];
|
|
7963
|
+
email_sent_at?: string | null;
|
|
7964
|
+
email_status?: string;
|
|
7965
|
+
id?: string;
|
|
7966
|
+
notification_id?: string | null;
|
|
7967
|
+
order_id?: string | null;
|
|
7968
|
+
order_ref: string;
|
|
7969
|
+
priority?: number;
|
|
7970
|
+
resolved_at?: string | null;
|
|
7971
|
+
resolved_by?: string | null;
|
|
7972
|
+
shortages?: import("../integrations/supabase/types").Json;
|
|
7973
|
+
status?: string;
|
|
7974
|
+
updated_at?: string;
|
|
7975
|
+
user_id: string;
|
|
7976
|
+
};
|
|
7977
|
+
Update: {
|
|
7978
|
+
created_at?: string;
|
|
7979
|
+
customer_name?: string | null;
|
|
7980
|
+
delivery_date?: string | null;
|
|
7981
|
+
email_enabled?: boolean;
|
|
7982
|
+
email_error?: string | null;
|
|
7983
|
+
email_outbox_id?: string | null;
|
|
7984
|
+
email_recipients?: string[];
|
|
7985
|
+
email_sent_at?: string | null;
|
|
7986
|
+
email_status?: string;
|
|
7987
|
+
id?: string;
|
|
7988
|
+
notification_id?: string | null;
|
|
7989
|
+
order_id?: string | null;
|
|
7990
|
+
order_ref?: string;
|
|
7991
|
+
priority?: number;
|
|
7992
|
+
resolved_at?: string | null;
|
|
7993
|
+
resolved_by?: string | null;
|
|
7994
|
+
shortages?: import("../integrations/supabase/types").Json;
|
|
7995
|
+
status?: string;
|
|
7996
|
+
updated_at?: string;
|
|
7997
|
+
user_id?: string;
|
|
7998
|
+
};
|
|
7999
|
+
Relationships: [];
|
|
8000
|
+
};
|
|
8001
|
+
logistics_strategies: {
|
|
8002
|
+
Row: {
|
|
8003
|
+
color: string;
|
|
8004
|
+
created_at: string;
|
|
8005
|
+
description: string | null;
|
|
8006
|
+
id: string;
|
|
8007
|
+
is_active: boolean;
|
|
8008
|
+
name: string;
|
|
8009
|
+
priority: number;
|
|
8010
|
+
updated_at: string;
|
|
8011
|
+
updated_by: string | null;
|
|
8012
|
+
user_id: string;
|
|
8013
|
+
version: number;
|
|
8014
|
+
};
|
|
8015
|
+
Insert: {
|
|
8016
|
+
color?: string;
|
|
7393
8017
|
created_at?: string;
|
|
7394
8018
|
description?: string | null;
|
|
7395
8019
|
id?: string;
|
|
@@ -7464,6 +8088,114 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
7464
8088
|
referencedColumns: ["id"];
|
|
7465
8089
|
}];
|
|
7466
8090
|
};
|
|
8091
|
+
logistics_tasks: {
|
|
8092
|
+
Row: {
|
|
8093
|
+
buffer_ref: string | null;
|
|
8094
|
+
claimed_at: string | null;
|
|
8095
|
+
claimed_by: string | null;
|
|
8096
|
+
completed_at: string | null;
|
|
8097
|
+
created_at: string;
|
|
8098
|
+
depends_on: string[];
|
|
8099
|
+
due_at: string | null;
|
|
8100
|
+
error: string | null;
|
|
8101
|
+
id: string;
|
|
8102
|
+
order_ref: string;
|
|
8103
|
+
owner_module: string;
|
|
8104
|
+
payload: import("../integrations/supabase/types").Json;
|
|
8105
|
+
plan_run_id: string | null;
|
|
8106
|
+
planned_end: string | null;
|
|
8107
|
+
planned_start: string | null;
|
|
8108
|
+
priority: number;
|
|
8109
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
8110
|
+
rule_config_id: string | null;
|
|
8111
|
+
rule_version: number | null;
|
|
8112
|
+
sequence: number;
|
|
8113
|
+
shadow: boolean;
|
|
8114
|
+
started_at: string | null;
|
|
8115
|
+
status: string;
|
|
8116
|
+
strategy_id: string | null;
|
|
8117
|
+
task_type: string;
|
|
8118
|
+
updated_at: string;
|
|
8119
|
+
user_id: string;
|
|
8120
|
+
};
|
|
8121
|
+
Insert: {
|
|
8122
|
+
buffer_ref?: string | null;
|
|
8123
|
+
claimed_at?: string | null;
|
|
8124
|
+
claimed_by?: string | null;
|
|
8125
|
+
completed_at?: string | null;
|
|
8126
|
+
created_at?: string;
|
|
8127
|
+
depends_on?: string[];
|
|
8128
|
+
due_at?: string | null;
|
|
8129
|
+
error?: string | null;
|
|
8130
|
+
id?: string;
|
|
8131
|
+
order_ref: string;
|
|
8132
|
+
owner_module: string;
|
|
8133
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
8134
|
+
plan_run_id?: string | null;
|
|
8135
|
+
planned_end?: string | null;
|
|
8136
|
+
planned_start?: string | null;
|
|
8137
|
+
priority?: number;
|
|
8138
|
+
result?: import("../integrations/supabase/types").Json | null;
|
|
8139
|
+
rule_config_id?: string | null;
|
|
8140
|
+
rule_version?: number | null;
|
|
8141
|
+
sequence?: number;
|
|
8142
|
+
shadow?: boolean;
|
|
8143
|
+
started_at?: string | null;
|
|
8144
|
+
status?: string;
|
|
8145
|
+
strategy_id?: string | null;
|
|
8146
|
+
task_type: string;
|
|
8147
|
+
updated_at?: string;
|
|
8148
|
+
user_id?: string;
|
|
8149
|
+
};
|
|
8150
|
+
Update: {
|
|
8151
|
+
buffer_ref?: string | null;
|
|
8152
|
+
claimed_at?: string | null;
|
|
8153
|
+
claimed_by?: string | null;
|
|
8154
|
+
completed_at?: string | null;
|
|
8155
|
+
created_at?: string;
|
|
8156
|
+
depends_on?: string[];
|
|
8157
|
+
due_at?: string | null;
|
|
8158
|
+
error?: string | null;
|
|
8159
|
+
id?: string;
|
|
8160
|
+
order_ref?: string;
|
|
8161
|
+
owner_module?: string;
|
|
8162
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
8163
|
+
plan_run_id?: string | null;
|
|
8164
|
+
planned_end?: string | null;
|
|
8165
|
+
planned_start?: string | null;
|
|
8166
|
+
priority?: number;
|
|
8167
|
+
result?: import("../integrations/supabase/types").Json | null;
|
|
8168
|
+
rule_config_id?: string | null;
|
|
8169
|
+
rule_version?: number | null;
|
|
8170
|
+
sequence?: number;
|
|
8171
|
+
shadow?: boolean;
|
|
8172
|
+
started_at?: string | null;
|
|
8173
|
+
status?: string;
|
|
8174
|
+
strategy_id?: string | null;
|
|
8175
|
+
task_type?: string;
|
|
8176
|
+
updated_at?: string;
|
|
8177
|
+
user_id?: string;
|
|
8178
|
+
};
|
|
8179
|
+
Relationships: [{
|
|
8180
|
+
foreignKeyName: "logistics_tasks_plan_run_id_fkey";
|
|
8181
|
+
columns: ["plan_run_id"];
|
|
8182
|
+
isOneToOne: false;
|
|
8183
|
+
referencedRelation: "logistics_plan_runs";
|
|
8184
|
+
referencedColumns: ["id"];
|
|
8185
|
+
}, {
|
|
8186
|
+
foreignKeyName: "logistics_tasks_rule_config_id_fkey";
|
|
8187
|
+
columns: ["rule_config_id"];
|
|
8188
|
+
isOneToOne: false;
|
|
8189
|
+
referencedRelation: "logistics_rule_configs";
|
|
8190
|
+
referencedColumns: ["id"];
|
|
8191
|
+
}, {
|
|
8192
|
+
foreignKeyName: "logistics_tasks_strategy_id_fkey";
|
|
8193
|
+
columns: ["strategy_id"];
|
|
8194
|
+
isOneToOne: false;
|
|
8195
|
+
referencedRelation: "logistics_strategies";
|
|
8196
|
+
referencedColumns: ["id"];
|
|
8197
|
+
}];
|
|
8198
|
+
};
|
|
7467
8199
|
logistics_variables: {
|
|
7468
8200
|
Row: {
|
|
7469
8201
|
created_at: string;
|
|
@@ -8058,6 +8790,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8058
8790
|
};
|
|
8059
8791
|
Relationships: [];
|
|
8060
8792
|
};
|
|
8793
|
+
module_runtime_config: {
|
|
8794
|
+
Row: {
|
|
8795
|
+
key: string;
|
|
8796
|
+
updated_at: string;
|
|
8797
|
+
value: string;
|
|
8798
|
+
};
|
|
8799
|
+
Insert: {
|
|
8800
|
+
key: string;
|
|
8801
|
+
updated_at?: string;
|
|
8802
|
+
value: string;
|
|
8803
|
+
};
|
|
8804
|
+
Update: {
|
|
8805
|
+
key?: string;
|
|
8806
|
+
updated_at?: string;
|
|
8807
|
+
value?: string;
|
|
8808
|
+
};
|
|
8809
|
+
Relationships: [];
|
|
8810
|
+
};
|
|
8061
8811
|
modules: {
|
|
8062
8812
|
Row: {
|
|
8063
8813
|
created_at: string;
|
|
@@ -8858,6 +9608,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8858
9608
|
};
|
|
8859
9609
|
order_cart_items: {
|
|
8860
9610
|
Row: {
|
|
9611
|
+
boxes: number | null;
|
|
8861
9612
|
cart_id: string;
|
|
8862
9613
|
crates: number;
|
|
8863
9614
|
crates_per_layer: number;
|
|
@@ -8870,8 +9621,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8870
9621
|
plants_per_crate: number;
|
|
8871
9622
|
product_id: string | null;
|
|
8872
9623
|
product_name: string;
|
|
9624
|
+
weight_kg: number | null;
|
|
8873
9625
|
};
|
|
8874
9626
|
Insert: {
|
|
9627
|
+
boxes?: number | null;
|
|
8875
9628
|
cart_id: string;
|
|
8876
9629
|
crates: number;
|
|
8877
9630
|
crates_per_layer?: number;
|
|
@@ -8884,8 +9637,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8884
9637
|
plants_per_crate?: number;
|
|
8885
9638
|
product_id?: string | null;
|
|
8886
9639
|
product_name: string;
|
|
9640
|
+
weight_kg?: number | null;
|
|
8887
9641
|
};
|
|
8888
9642
|
Update: {
|
|
9643
|
+
boxes?: number | null;
|
|
8889
9644
|
cart_id?: string;
|
|
8890
9645
|
crates?: number;
|
|
8891
9646
|
crates_per_layer?: number;
|
|
@@ -8898,6 +9653,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8898
9653
|
plants_per_crate?: number;
|
|
8899
9654
|
product_id?: string | null;
|
|
8900
9655
|
product_name?: string;
|
|
9656
|
+
weight_kg?: number | null;
|
|
8901
9657
|
};
|
|
8902
9658
|
Relationships: [{
|
|
8903
9659
|
foreignKeyName: "order_cart_items_cart_id_fkey";
|
|
@@ -8923,47 +9679,59 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8923
9679
|
Row: {
|
|
8924
9680
|
algorithm_version: number;
|
|
8925
9681
|
buffer_id: string | null;
|
|
9682
|
+
carrier_type: string;
|
|
9683
|
+
carrier_type_id: string | null;
|
|
8926
9684
|
cart_number: number;
|
|
8927
9685
|
created_at: string;
|
|
8928
9686
|
id: string;
|
|
8929
9687
|
is_auto: boolean;
|
|
8930
9688
|
is_complete: boolean;
|
|
9689
|
+
max_layers: number | null;
|
|
8931
9690
|
notes: string | null;
|
|
8932
9691
|
occupancy_pct: number;
|
|
8933
9692
|
order_id: string | null;
|
|
8934
9693
|
source: string;
|
|
8935
9694
|
total_layers_used: number;
|
|
8936
9695
|
updated_at: string;
|
|
9696
|
+
weight_kg: number | null;
|
|
8937
9697
|
};
|
|
8938
9698
|
Insert: {
|
|
8939
9699
|
algorithm_version?: number;
|
|
8940
9700
|
buffer_id?: string | null;
|
|
9701
|
+
carrier_type?: string;
|
|
9702
|
+
carrier_type_id?: string | null;
|
|
8941
9703
|
cart_number: number;
|
|
8942
9704
|
created_at?: string;
|
|
8943
9705
|
id?: string;
|
|
8944
9706
|
is_auto?: boolean;
|
|
8945
9707
|
is_complete?: boolean;
|
|
9708
|
+
max_layers?: number | null;
|
|
8946
9709
|
notes?: string | null;
|
|
8947
9710
|
occupancy_pct?: number;
|
|
8948
9711
|
order_id?: string | null;
|
|
8949
9712
|
source?: string;
|
|
8950
9713
|
total_layers_used?: number;
|
|
8951
9714
|
updated_at?: string;
|
|
9715
|
+
weight_kg?: number | null;
|
|
8952
9716
|
};
|
|
8953
9717
|
Update: {
|
|
8954
9718
|
algorithm_version?: number;
|
|
8955
9719
|
buffer_id?: string | null;
|
|
9720
|
+
carrier_type?: string;
|
|
9721
|
+
carrier_type_id?: string | null;
|
|
8956
9722
|
cart_number?: number;
|
|
8957
9723
|
created_at?: string;
|
|
8958
9724
|
id?: string;
|
|
8959
9725
|
is_auto?: boolean;
|
|
8960
9726
|
is_complete?: boolean;
|
|
9727
|
+
max_layers?: number | null;
|
|
8961
9728
|
notes?: string | null;
|
|
8962
9729
|
occupancy_pct?: number;
|
|
8963
9730
|
order_id?: string | null;
|
|
8964
9731
|
source?: string;
|
|
8965
9732
|
total_layers_used?: number;
|
|
8966
9733
|
updated_at?: string;
|
|
9734
|
+
weight_kg?: number | null;
|
|
8967
9735
|
};
|
|
8968
9736
|
Relationships: [{
|
|
8969
9737
|
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
@@ -8971,6 +9739,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
8971
9739
|
isOneToOne: false;
|
|
8972
9740
|
referencedRelation: "order_buffers";
|
|
8973
9741
|
referencedColumns: ["id"];
|
|
9742
|
+
}, {
|
|
9743
|
+
foreignKeyName: "order_carts_carrier_type_id_fkey";
|
|
9744
|
+
columns: ["carrier_type_id"];
|
|
9745
|
+
isOneToOne: false;
|
|
9746
|
+
referencedRelation: "load_carrier_types";
|
|
9747
|
+
referencedColumns: ["id"];
|
|
8974
9748
|
}, {
|
|
8975
9749
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
8976
9750
|
columns: ["order_id"];
|
|
@@ -10110,6 +10884,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10110
10884
|
lock_timeout_seconds: number;
|
|
10111
10885
|
name: string;
|
|
10112
10886
|
require_country_selection: boolean;
|
|
10887
|
+
slug: string | null;
|
|
10113
10888
|
sort_order: number;
|
|
10114
10889
|
sort_rules: import("../integrations/supabase/types").Json;
|
|
10115
10890
|
task_id: string | null;
|
|
@@ -10130,6 +10905,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10130
10905
|
lock_timeout_seconds?: number;
|
|
10131
10906
|
name: string;
|
|
10132
10907
|
require_country_selection?: boolean;
|
|
10908
|
+
slug?: string | null;
|
|
10133
10909
|
sort_order?: number;
|
|
10134
10910
|
sort_rules?: import("../integrations/supabase/types").Json;
|
|
10135
10911
|
task_id?: string | null;
|
|
@@ -10150,6 +10926,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10150
10926
|
lock_timeout_seconds?: number;
|
|
10151
10927
|
name?: string;
|
|
10152
10928
|
require_country_selection?: boolean;
|
|
10929
|
+
slug?: string | null;
|
|
10153
10930
|
sort_order?: number;
|
|
10154
10931
|
sort_rules?: import("../integrations/supabase/types").Json;
|
|
10155
10932
|
task_id?: string | null;
|
|
@@ -10683,7 +11460,55 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
10683
11460
|
};
|
|
10684
11461
|
Relationships: [];
|
|
10685
11462
|
};
|
|
10686
|
-
|
|
11463
|
+
product_bom_external_items: {
|
|
11464
|
+
Row: {
|
|
11465
|
+
created_at: string;
|
|
11466
|
+
id: string;
|
|
11467
|
+
name: string;
|
|
11468
|
+
packing_configuration_id: string | null;
|
|
11469
|
+
parent_product_id: string | null;
|
|
11470
|
+
parent_trade_item_floriday_id: string | null;
|
|
11471
|
+
quantity: number;
|
|
11472
|
+
sort_order: number;
|
|
11473
|
+
tenant_id: string;
|
|
11474
|
+
unit: string;
|
|
11475
|
+
updated_at: string;
|
|
11476
|
+
};
|
|
11477
|
+
Insert: {
|
|
11478
|
+
created_at?: string;
|
|
11479
|
+
id?: string;
|
|
11480
|
+
name: string;
|
|
11481
|
+
packing_configuration_id?: string | null;
|
|
11482
|
+
parent_product_id?: string | null;
|
|
11483
|
+
parent_trade_item_floriday_id?: string | null;
|
|
11484
|
+
quantity?: number;
|
|
11485
|
+
sort_order?: number;
|
|
11486
|
+
tenant_id: string;
|
|
11487
|
+
unit?: string;
|
|
11488
|
+
updated_at?: string;
|
|
11489
|
+
};
|
|
11490
|
+
Update: {
|
|
11491
|
+
created_at?: string;
|
|
11492
|
+
id?: string;
|
|
11493
|
+
name?: string;
|
|
11494
|
+
packing_configuration_id?: string | null;
|
|
11495
|
+
parent_product_id?: string | null;
|
|
11496
|
+
parent_trade_item_floriday_id?: string | null;
|
|
11497
|
+
quantity?: number;
|
|
11498
|
+
sort_order?: number;
|
|
11499
|
+
tenant_id?: string;
|
|
11500
|
+
unit?: string;
|
|
11501
|
+
updated_at?: string;
|
|
11502
|
+
};
|
|
11503
|
+
Relationships: [{
|
|
11504
|
+
foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
|
|
11505
|
+
columns: ["parent_product_id"];
|
|
11506
|
+
isOneToOne: false;
|
|
11507
|
+
referencedRelation: "products";
|
|
11508
|
+
referencedColumns: ["id"];
|
|
11509
|
+
}];
|
|
11510
|
+
};
|
|
11511
|
+
product_bom_items: {
|
|
10687
11512
|
Row: {
|
|
10688
11513
|
component_product_id: string | null;
|
|
10689
11514
|
component_trade_item_floriday_id: string | null;
|
|
@@ -11919,6 +12744,270 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
11919
12744
|
};
|
|
11920
12745
|
Relationships: [];
|
|
11921
12746
|
};
|
|
12747
|
+
scan_kar_items: {
|
|
12748
|
+
Row: {
|
|
12749
|
+
barcode: string;
|
|
12750
|
+
id: string;
|
|
12751
|
+
kar_id: string;
|
|
12752
|
+
pakbon_id: string;
|
|
12753
|
+
pakbon_item_id: string;
|
|
12754
|
+
product_id: string | null;
|
|
12755
|
+
product_name: string;
|
|
12756
|
+
quantity: number;
|
|
12757
|
+
scanned_at: string;
|
|
12758
|
+
scanned_by: string | null;
|
|
12759
|
+
};
|
|
12760
|
+
Insert: {
|
|
12761
|
+
barcode: string;
|
|
12762
|
+
id?: string;
|
|
12763
|
+
kar_id: string;
|
|
12764
|
+
pakbon_id: string;
|
|
12765
|
+
pakbon_item_id: string;
|
|
12766
|
+
product_id?: string | null;
|
|
12767
|
+
product_name: string;
|
|
12768
|
+
quantity?: number;
|
|
12769
|
+
scanned_at?: string;
|
|
12770
|
+
scanned_by?: string | null;
|
|
12771
|
+
};
|
|
12772
|
+
Update: {
|
|
12773
|
+
barcode?: string;
|
|
12774
|
+
id?: string;
|
|
12775
|
+
kar_id?: string;
|
|
12776
|
+
pakbon_id?: string;
|
|
12777
|
+
pakbon_item_id?: string;
|
|
12778
|
+
product_id?: string | null;
|
|
12779
|
+
product_name?: string;
|
|
12780
|
+
quantity?: number;
|
|
12781
|
+
scanned_at?: string;
|
|
12782
|
+
scanned_by?: string | null;
|
|
12783
|
+
};
|
|
12784
|
+
Relationships: [{
|
|
12785
|
+
foreignKeyName: "scan_kar_items_kar_id_fkey";
|
|
12786
|
+
columns: ["kar_id"];
|
|
12787
|
+
isOneToOne: false;
|
|
12788
|
+
referencedRelation: "scan_karren";
|
|
12789
|
+
referencedColumns: ["id"];
|
|
12790
|
+
}, {
|
|
12791
|
+
foreignKeyName: "scan_kar_items_pakbon_id_fkey";
|
|
12792
|
+
columns: ["pakbon_id"];
|
|
12793
|
+
isOneToOne: false;
|
|
12794
|
+
referencedRelation: "scan_pakbonnen";
|
|
12795
|
+
referencedColumns: ["id"];
|
|
12796
|
+
}, {
|
|
12797
|
+
foreignKeyName: "scan_kar_items_pakbon_item_id_fkey";
|
|
12798
|
+
columns: ["pakbon_item_id"];
|
|
12799
|
+
isOneToOne: false;
|
|
12800
|
+
referencedRelation: "scan_pakbon_items";
|
|
12801
|
+
referencedColumns: ["id"];
|
|
12802
|
+
}];
|
|
12803
|
+
};
|
|
12804
|
+
scan_kar_pakbonnen: {
|
|
12805
|
+
Row: {
|
|
12806
|
+
created_at: string;
|
|
12807
|
+
id: string;
|
|
12808
|
+
kar_id: string;
|
|
12809
|
+
pakbon_id: string;
|
|
12810
|
+
};
|
|
12811
|
+
Insert: {
|
|
12812
|
+
created_at?: string;
|
|
12813
|
+
id?: string;
|
|
12814
|
+
kar_id: string;
|
|
12815
|
+
pakbon_id: string;
|
|
12816
|
+
};
|
|
12817
|
+
Update: {
|
|
12818
|
+
created_at?: string;
|
|
12819
|
+
id?: string;
|
|
12820
|
+
kar_id?: string;
|
|
12821
|
+
pakbon_id?: string;
|
|
12822
|
+
};
|
|
12823
|
+
Relationships: [{
|
|
12824
|
+
foreignKeyName: "scan_kar_pakbonnen_kar_id_fkey";
|
|
12825
|
+
columns: ["kar_id"];
|
|
12826
|
+
isOneToOne: false;
|
|
12827
|
+
referencedRelation: "scan_karren";
|
|
12828
|
+
referencedColumns: ["id"];
|
|
12829
|
+
}, {
|
|
12830
|
+
foreignKeyName: "scan_kar_pakbonnen_pakbon_id_fkey";
|
|
12831
|
+
columns: ["pakbon_id"];
|
|
12832
|
+
isOneToOne: false;
|
|
12833
|
+
referencedRelation: "scan_pakbonnen";
|
|
12834
|
+
referencedColumns: ["id"];
|
|
12835
|
+
}];
|
|
12836
|
+
};
|
|
12837
|
+
scan_karren: {
|
|
12838
|
+
Row: {
|
|
12839
|
+
afgerond_op: string | null;
|
|
12840
|
+
buffer_key: string | null;
|
|
12841
|
+
created_at: string;
|
|
12842
|
+
customer_names: string[];
|
|
12843
|
+
geprint: boolean;
|
|
12844
|
+
geprint_op: string | null;
|
|
12845
|
+
id: string;
|
|
12846
|
+
kar_nummer: string;
|
|
12847
|
+
medewerker_id: string | null;
|
|
12848
|
+
medewerker_naam: string | null;
|
|
12849
|
+
naar_pickstation: boolean;
|
|
12850
|
+
naar_pickstation_op: string | null;
|
|
12851
|
+
order_number: string | null;
|
|
12852
|
+
scanner_key: string;
|
|
12853
|
+
status: string;
|
|
12854
|
+
totaal_producten: number;
|
|
12855
|
+
updated_at: string;
|
|
12856
|
+
};
|
|
12857
|
+
Insert: {
|
|
12858
|
+
afgerond_op?: string | null;
|
|
12859
|
+
buffer_key?: string | null;
|
|
12860
|
+
created_at?: string;
|
|
12861
|
+
customer_names?: string[];
|
|
12862
|
+
geprint?: boolean;
|
|
12863
|
+
geprint_op?: string | null;
|
|
12864
|
+
id?: string;
|
|
12865
|
+
kar_nummer?: string;
|
|
12866
|
+
medewerker_id?: string | null;
|
|
12867
|
+
medewerker_naam?: string | null;
|
|
12868
|
+
naar_pickstation?: boolean;
|
|
12869
|
+
naar_pickstation_op?: string | null;
|
|
12870
|
+
order_number?: string | null;
|
|
12871
|
+
scanner_key?: string;
|
|
12872
|
+
status?: string;
|
|
12873
|
+
totaal_producten?: number;
|
|
12874
|
+
updated_at?: string;
|
|
12875
|
+
};
|
|
12876
|
+
Update: {
|
|
12877
|
+
afgerond_op?: string | null;
|
|
12878
|
+
buffer_key?: string | null;
|
|
12879
|
+
created_at?: string;
|
|
12880
|
+
customer_names?: string[];
|
|
12881
|
+
geprint?: boolean;
|
|
12882
|
+
geprint_op?: string | null;
|
|
12883
|
+
id?: string;
|
|
12884
|
+
kar_nummer?: string;
|
|
12885
|
+
medewerker_id?: string | null;
|
|
12886
|
+
medewerker_naam?: string | null;
|
|
12887
|
+
naar_pickstation?: boolean;
|
|
12888
|
+
naar_pickstation_op?: string | null;
|
|
12889
|
+
order_number?: string | null;
|
|
12890
|
+
scanner_key?: string;
|
|
12891
|
+
status?: string;
|
|
12892
|
+
totaal_producten?: number;
|
|
12893
|
+
updated_at?: string;
|
|
12894
|
+
};
|
|
12895
|
+
Relationships: [];
|
|
12896
|
+
};
|
|
12897
|
+
scan_logs: {
|
|
12898
|
+
Row: {
|
|
12899
|
+
code: string;
|
|
12900
|
+
created_at: string;
|
|
12901
|
+
id: string;
|
|
12902
|
+
kar_id: string | null;
|
|
12903
|
+
message: string | null;
|
|
12904
|
+
result: string;
|
|
12905
|
+
scanner_key: string;
|
|
12906
|
+
user_id: string | null;
|
|
12907
|
+
};
|
|
12908
|
+
Insert: {
|
|
12909
|
+
code: string;
|
|
12910
|
+
created_at?: string;
|
|
12911
|
+
id?: string;
|
|
12912
|
+
kar_id?: string | null;
|
|
12913
|
+
message?: string | null;
|
|
12914
|
+
result: string;
|
|
12915
|
+
scanner_key?: string;
|
|
12916
|
+
user_id?: string | null;
|
|
12917
|
+
};
|
|
12918
|
+
Update: {
|
|
12919
|
+
code?: string;
|
|
12920
|
+
created_at?: string;
|
|
12921
|
+
id?: string;
|
|
12922
|
+
kar_id?: string | null;
|
|
12923
|
+
message?: string | null;
|
|
12924
|
+
result?: string;
|
|
12925
|
+
scanner_key?: string;
|
|
12926
|
+
user_id?: string | null;
|
|
12927
|
+
};
|
|
12928
|
+
Relationships: [];
|
|
12929
|
+
};
|
|
12930
|
+
scan_pakbon_items: {
|
|
12931
|
+
Row: {
|
|
12932
|
+
barcode: string;
|
|
12933
|
+
created_at: string;
|
|
12934
|
+
id: string;
|
|
12935
|
+
pakbon_id: string;
|
|
12936
|
+
product_id: string | null;
|
|
12937
|
+
product_name: string;
|
|
12938
|
+
quantity: number;
|
|
12939
|
+
scanned_quantity: number;
|
|
12940
|
+
};
|
|
12941
|
+
Insert: {
|
|
12942
|
+
barcode: string;
|
|
12943
|
+
created_at?: string;
|
|
12944
|
+
id?: string;
|
|
12945
|
+
pakbon_id: string;
|
|
12946
|
+
product_id?: string | null;
|
|
12947
|
+
product_name: string;
|
|
12948
|
+
quantity?: number;
|
|
12949
|
+
scanned_quantity?: number;
|
|
12950
|
+
};
|
|
12951
|
+
Update: {
|
|
12952
|
+
barcode?: string;
|
|
12953
|
+
created_at?: string;
|
|
12954
|
+
id?: string;
|
|
12955
|
+
pakbon_id?: string;
|
|
12956
|
+
product_id?: string | null;
|
|
12957
|
+
product_name?: string;
|
|
12958
|
+
quantity?: number;
|
|
12959
|
+
scanned_quantity?: number;
|
|
12960
|
+
};
|
|
12961
|
+
Relationships: [{
|
|
12962
|
+
foreignKeyName: "scan_pakbon_items_pakbon_id_fkey";
|
|
12963
|
+
columns: ["pakbon_id"];
|
|
12964
|
+
isOneToOne: false;
|
|
12965
|
+
referencedRelation: "scan_pakbonnen";
|
|
12966
|
+
referencedColumns: ["id"];
|
|
12967
|
+
}];
|
|
12968
|
+
};
|
|
12969
|
+
scan_pakbonnen: {
|
|
12970
|
+
Row: {
|
|
12971
|
+
barcode: string;
|
|
12972
|
+
buffer_key: string | null;
|
|
12973
|
+
created_at: string;
|
|
12974
|
+
customer_name: string;
|
|
12975
|
+
id: string;
|
|
12976
|
+
order_id: string | null;
|
|
12977
|
+
order_number: string;
|
|
12978
|
+
pakbon_nummer: string;
|
|
12979
|
+
printed_at: string;
|
|
12980
|
+
status: string;
|
|
12981
|
+
updated_at: string;
|
|
12982
|
+
};
|
|
12983
|
+
Insert: {
|
|
12984
|
+
barcode: string;
|
|
12985
|
+
buffer_key?: string | null;
|
|
12986
|
+
created_at?: string;
|
|
12987
|
+
customer_name: string;
|
|
12988
|
+
id?: string;
|
|
12989
|
+
order_id?: string | null;
|
|
12990
|
+
order_number: string;
|
|
12991
|
+
pakbon_nummer: string;
|
|
12992
|
+
printed_at?: string;
|
|
12993
|
+
status?: string;
|
|
12994
|
+
updated_at?: string;
|
|
12995
|
+
};
|
|
12996
|
+
Update: {
|
|
12997
|
+
barcode?: string;
|
|
12998
|
+
buffer_key?: string | null;
|
|
12999
|
+
created_at?: string;
|
|
13000
|
+
customer_name?: string;
|
|
13001
|
+
id?: string;
|
|
13002
|
+
order_id?: string | null;
|
|
13003
|
+
order_number?: string;
|
|
13004
|
+
pakbon_nummer?: string;
|
|
13005
|
+
printed_at?: string;
|
|
13006
|
+
status?: string;
|
|
13007
|
+
updated_at?: string;
|
|
13008
|
+
};
|
|
13009
|
+
Relationships: [];
|
|
13010
|
+
};
|
|
11922
13011
|
sidebar_config: {
|
|
11923
13012
|
Row: {
|
|
11924
13013
|
id: string;
|
|
@@ -12597,6 +13686,24 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
12597
13686
|
};
|
|
12598
13687
|
Relationships: [];
|
|
12599
13688
|
};
|
|
13689
|
+
twinfield_cron_auth: {
|
|
13690
|
+
Row: {
|
|
13691
|
+
created_at: string;
|
|
13692
|
+
id: number;
|
|
13693
|
+
secret: string;
|
|
13694
|
+
};
|
|
13695
|
+
Insert: {
|
|
13696
|
+
created_at?: string;
|
|
13697
|
+
id?: number;
|
|
13698
|
+
secret?: string;
|
|
13699
|
+
};
|
|
13700
|
+
Update: {
|
|
13701
|
+
created_at?: string;
|
|
13702
|
+
id?: number;
|
|
13703
|
+
secret?: string;
|
|
13704
|
+
};
|
|
13705
|
+
Relationships: [];
|
|
13706
|
+
};
|
|
12600
13707
|
twinfield_customers: {
|
|
12601
13708
|
Row: {
|
|
12602
13709
|
address: string | null;
|
|
@@ -12858,6 +13965,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
12858
13965
|
default_invoice_type: string;
|
|
12859
13966
|
default_payment_term_days: number;
|
|
12860
13967
|
default_vat_code: string;
|
|
13968
|
+
home_country_code: string;
|
|
12861
13969
|
invoice_enabled_ao: boolean;
|
|
12862
13970
|
invoice_enabled_fo: boolean;
|
|
12863
13971
|
invoice_enabled_ho: boolean;
|
|
@@ -12866,6 +13974,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
12866
13974
|
payment_journal_code: string;
|
|
12867
13975
|
updated_at: string;
|
|
12868
13976
|
user_id: string;
|
|
13977
|
+
vat_code_eu_reverse: string | null;
|
|
13978
|
+
vat_code_export: string | null;
|
|
12869
13979
|
};
|
|
12870
13980
|
Insert: {
|
|
12871
13981
|
created_at?: string;
|
|
@@ -12875,6 +13985,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
12875
13985
|
default_invoice_type?: string;
|
|
12876
13986
|
default_payment_term_days?: number;
|
|
12877
13987
|
default_vat_code?: string;
|
|
13988
|
+
home_country_code?: string;
|
|
12878
13989
|
invoice_enabled_ao?: boolean;
|
|
12879
13990
|
invoice_enabled_fo?: boolean;
|
|
12880
13991
|
invoice_enabled_ho?: boolean;
|
|
@@ -12883,6 +13994,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
12883
13994
|
payment_journal_code?: string;
|
|
12884
13995
|
updated_at?: string;
|
|
12885
13996
|
user_id: string;
|
|
13997
|
+
vat_code_eu_reverse?: string | null;
|
|
13998
|
+
vat_code_export?: string | null;
|
|
12886
13999
|
};
|
|
12887
14000
|
Update: {
|
|
12888
14001
|
created_at?: string;
|
|
@@ -12892,6 +14005,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
12892
14005
|
default_invoice_type?: string;
|
|
12893
14006
|
default_payment_term_days?: number;
|
|
12894
14007
|
default_vat_code?: string;
|
|
14008
|
+
home_country_code?: string;
|
|
12895
14009
|
invoice_enabled_ao?: boolean;
|
|
12896
14010
|
invoice_enabled_fo?: boolean;
|
|
12897
14011
|
invoice_enabled_ho?: boolean;
|
|
@@ -12900,6 +14014,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
12900
14014
|
payment_journal_code?: string;
|
|
12901
14015
|
updated_at?: string;
|
|
12902
14016
|
user_id?: string;
|
|
14017
|
+
vat_code_eu_reverse?: string | null;
|
|
14018
|
+
vat_code_export?: string | null;
|
|
12903
14019
|
};
|
|
12904
14020
|
Relationships: [];
|
|
12905
14021
|
};
|
|
@@ -13101,46 +14217,124 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
13101
14217
|
referencedColumns: ["id"];
|
|
13102
14218
|
}];
|
|
13103
14219
|
};
|
|
13104
|
-
|
|
14220
|
+
twinfield_ledger_accounts_cache: {
|
|
13105
14221
|
Row: {
|
|
13106
|
-
|
|
13107
|
-
|
|
13108
|
-
connection_id: string;
|
|
14222
|
+
code: string;
|
|
14223
|
+
connection_id: string | null;
|
|
13109
14224
|
created_at: string;
|
|
13110
|
-
|
|
13111
|
-
|
|
14225
|
+
dim_type: string;
|
|
14226
|
+
fetched_at: string;
|
|
13112
14227
|
id: string;
|
|
13113
|
-
|
|
13114
|
-
|
|
13115
|
-
|
|
13116
|
-
office_code: string | null;
|
|
13117
|
-
payload: import("../integrations/supabase/types").Json;
|
|
13118
|
-
status: string;
|
|
14228
|
+
is_active: boolean;
|
|
14229
|
+
name: string | null;
|
|
14230
|
+
office_code: string;
|
|
13119
14231
|
updated_at: string;
|
|
13120
14232
|
};
|
|
13121
14233
|
Insert: {
|
|
13122
|
-
|
|
13123
|
-
|
|
13124
|
-
connection_id: string;
|
|
14234
|
+
code: string;
|
|
14235
|
+
connection_id?: string | null;
|
|
13125
14236
|
created_at?: string;
|
|
13126
|
-
|
|
13127
|
-
|
|
14237
|
+
dim_type?: string;
|
|
14238
|
+
fetched_at?: string;
|
|
13128
14239
|
id?: string;
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
office_code?: string | null;
|
|
13133
|
-
payload: import("../integrations/supabase/types").Json;
|
|
13134
|
-
status?: string;
|
|
14240
|
+
is_active?: boolean;
|
|
14241
|
+
name?: string | null;
|
|
14242
|
+
office_code: string;
|
|
13135
14243
|
updated_at?: string;
|
|
13136
14244
|
};
|
|
13137
14245
|
Update: {
|
|
13138
|
-
|
|
13139
|
-
|
|
13140
|
-
connection_id?: string;
|
|
14246
|
+
code?: string;
|
|
14247
|
+
connection_id?: string | null;
|
|
13141
14248
|
created_at?: string;
|
|
13142
|
-
|
|
13143
|
-
|
|
14249
|
+
dim_type?: string;
|
|
14250
|
+
fetched_at?: string;
|
|
14251
|
+
id?: string;
|
|
14252
|
+
is_active?: boolean;
|
|
14253
|
+
name?: string | null;
|
|
14254
|
+
office_code?: string;
|
|
14255
|
+
updated_at?: string;
|
|
14256
|
+
};
|
|
14257
|
+
Relationships: [];
|
|
14258
|
+
};
|
|
14259
|
+
twinfield_push_log: {
|
|
14260
|
+
Row: {
|
|
14261
|
+
created_at: string;
|
|
14262
|
+
customer_id: string | null;
|
|
14263
|
+
id: string;
|
|
14264
|
+
message: string | null;
|
|
14265
|
+
office_code: string | null;
|
|
14266
|
+
ok: boolean;
|
|
14267
|
+
queue_id: string | null;
|
|
14268
|
+
request_xml: string | null;
|
|
14269
|
+
response_raw: string | null;
|
|
14270
|
+
twinfield_code: string | null;
|
|
14271
|
+
};
|
|
14272
|
+
Insert: {
|
|
14273
|
+
created_at?: string;
|
|
14274
|
+
customer_id?: string | null;
|
|
14275
|
+
id?: string;
|
|
14276
|
+
message?: string | null;
|
|
14277
|
+
office_code?: string | null;
|
|
14278
|
+
ok?: boolean;
|
|
14279
|
+
queue_id?: string | null;
|
|
14280
|
+
request_xml?: string | null;
|
|
14281
|
+
response_raw?: string | null;
|
|
14282
|
+
twinfield_code?: string | null;
|
|
14283
|
+
};
|
|
14284
|
+
Update: {
|
|
14285
|
+
created_at?: string;
|
|
14286
|
+
customer_id?: string | null;
|
|
14287
|
+
id?: string;
|
|
14288
|
+
message?: string | null;
|
|
14289
|
+
office_code?: string | null;
|
|
14290
|
+
ok?: boolean;
|
|
14291
|
+
queue_id?: string | null;
|
|
14292
|
+
request_xml?: string | null;
|
|
14293
|
+
response_raw?: string | null;
|
|
14294
|
+
twinfield_code?: string | null;
|
|
14295
|
+
};
|
|
14296
|
+
Relationships: [];
|
|
14297
|
+
};
|
|
14298
|
+
twinfield_push_queue: {
|
|
14299
|
+
Row: {
|
|
14300
|
+
action: string;
|
|
14301
|
+
attempts: number;
|
|
14302
|
+
connection_id: string | null;
|
|
14303
|
+
created_at: string;
|
|
14304
|
+
customer_id: string | null;
|
|
14305
|
+
external_id: string | null;
|
|
14306
|
+
id: string;
|
|
14307
|
+
idempotency_key: string;
|
|
14308
|
+
last_error: string | null;
|
|
14309
|
+
next_attempt_at: string;
|
|
14310
|
+
office_code: string | null;
|
|
14311
|
+
payload: import("../integrations/supabase/types").Json;
|
|
14312
|
+
status: string;
|
|
14313
|
+
updated_at: string;
|
|
14314
|
+
};
|
|
14315
|
+
Insert: {
|
|
14316
|
+
action?: string;
|
|
14317
|
+
attempts?: number;
|
|
14318
|
+
connection_id?: string | null;
|
|
14319
|
+
created_at?: string;
|
|
14320
|
+
customer_id?: string | null;
|
|
14321
|
+
external_id?: string | null;
|
|
14322
|
+
id?: string;
|
|
14323
|
+
idempotency_key: string;
|
|
14324
|
+
last_error?: string | null;
|
|
14325
|
+
next_attempt_at?: string;
|
|
14326
|
+
office_code?: string | null;
|
|
14327
|
+
payload: import("../integrations/supabase/types").Json;
|
|
14328
|
+
status?: string;
|
|
14329
|
+
updated_at?: string;
|
|
14330
|
+
};
|
|
14331
|
+
Update: {
|
|
14332
|
+
action?: string;
|
|
14333
|
+
attempts?: number;
|
|
14334
|
+
connection_id?: string | null;
|
|
14335
|
+
created_at?: string;
|
|
14336
|
+
customer_id?: string | null;
|
|
14337
|
+
external_id?: string | null;
|
|
13144
14338
|
id?: string;
|
|
13145
14339
|
idempotency_key?: string;
|
|
13146
14340
|
last_error?: string | null;
|
|
@@ -13191,6 +14385,27 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
13191
14385
|
};
|
|
13192
14386
|
Relationships: [];
|
|
13193
14387
|
};
|
|
14388
|
+
twinfield_revoked_accounts: {
|
|
14389
|
+
Row: {
|
|
14390
|
+
account_key: string;
|
|
14391
|
+
last_revoke_error: string | null;
|
|
14392
|
+
revoked_at: string;
|
|
14393
|
+
user_id: string;
|
|
14394
|
+
};
|
|
14395
|
+
Insert: {
|
|
14396
|
+
account_key: string;
|
|
14397
|
+
last_revoke_error?: string | null;
|
|
14398
|
+
revoked_at?: string;
|
|
14399
|
+
user_id: string;
|
|
14400
|
+
};
|
|
14401
|
+
Update: {
|
|
14402
|
+
account_key?: string;
|
|
14403
|
+
last_revoke_error?: string | null;
|
|
14404
|
+
revoked_at?: string;
|
|
14405
|
+
user_id?: string;
|
|
14406
|
+
};
|
|
14407
|
+
Relationships: [];
|
|
14408
|
+
};
|
|
13194
14409
|
twinfield_session_cache: {
|
|
13195
14410
|
Row: {
|
|
13196
14411
|
cluster: string;
|
|
@@ -13446,6 +14661,162 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
13446
14661
|
};
|
|
13447
14662
|
Relationships: [];
|
|
13448
14663
|
};
|
|
14664
|
+
voorraad_publish_jobs: {
|
|
14665
|
+
Row: {
|
|
14666
|
+
connection_id: string | null;
|
|
14667
|
+
created_at: string;
|
|
14668
|
+
environment: string;
|
|
14669
|
+
finished_at: string | null;
|
|
14670
|
+
id: string;
|
|
14671
|
+
intent: string;
|
|
14672
|
+
product_id: string | null;
|
|
14673
|
+
reference_code: string;
|
|
14674
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
14675
|
+
status: string;
|
|
14676
|
+
summary: import("../integrations/supabase/types").Json;
|
|
14677
|
+
title: string | null;
|
|
14678
|
+
trade_item_id: string | null;
|
|
14679
|
+
trade_item_key: string | null;
|
|
14680
|
+
updated_at: string;
|
|
14681
|
+
user_id: string;
|
|
14682
|
+
};
|
|
14683
|
+
Insert: {
|
|
14684
|
+
connection_id?: string | null;
|
|
14685
|
+
created_at?: string;
|
|
14686
|
+
environment?: string;
|
|
14687
|
+
finished_at?: string | null;
|
|
14688
|
+
id?: string;
|
|
14689
|
+
intent?: string;
|
|
14690
|
+
product_id?: string | null;
|
|
14691
|
+
reference_code?: string;
|
|
14692
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
14693
|
+
status?: string;
|
|
14694
|
+
summary?: import("../integrations/supabase/types").Json;
|
|
14695
|
+
title?: string | null;
|
|
14696
|
+
trade_item_id?: string | null;
|
|
14697
|
+
trade_item_key?: string | null;
|
|
14698
|
+
updated_at?: string;
|
|
14699
|
+
user_id: string;
|
|
14700
|
+
};
|
|
14701
|
+
Update: {
|
|
14702
|
+
connection_id?: string | null;
|
|
14703
|
+
created_at?: string;
|
|
14704
|
+
environment?: string;
|
|
14705
|
+
finished_at?: string | null;
|
|
14706
|
+
id?: string;
|
|
14707
|
+
intent?: string;
|
|
14708
|
+
product_id?: string | null;
|
|
14709
|
+
reference_code?: string;
|
|
14710
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
14711
|
+
status?: string;
|
|
14712
|
+
summary?: import("../integrations/supabase/types").Json;
|
|
14713
|
+
title?: string | null;
|
|
14714
|
+
trade_item_id?: string | null;
|
|
14715
|
+
trade_item_key?: string | null;
|
|
14716
|
+
updated_at?: string;
|
|
14717
|
+
user_id?: string;
|
|
14718
|
+
};
|
|
14719
|
+
Relationships: [];
|
|
14720
|
+
};
|
|
14721
|
+
voorraad_publish_learnings: {
|
|
14722
|
+
Row: {
|
|
14723
|
+
created_at: string;
|
|
14724
|
+
field_key: string;
|
|
14725
|
+
hits: number;
|
|
14726
|
+
id: string;
|
|
14727
|
+
label: string | null;
|
|
14728
|
+
last_error: string | null;
|
|
14729
|
+
scope: string;
|
|
14730
|
+
updated_at: string;
|
|
14731
|
+
vbn_code: string;
|
|
14732
|
+
};
|
|
14733
|
+
Insert: {
|
|
14734
|
+
created_at?: string;
|
|
14735
|
+
field_key: string;
|
|
14736
|
+
hits?: number;
|
|
14737
|
+
id?: string;
|
|
14738
|
+
label?: string | null;
|
|
14739
|
+
last_error?: string | null;
|
|
14740
|
+
scope?: string;
|
|
14741
|
+
updated_at?: string;
|
|
14742
|
+
vbn_code: string;
|
|
14743
|
+
};
|
|
14744
|
+
Update: {
|
|
14745
|
+
created_at?: string;
|
|
14746
|
+
field_key?: string;
|
|
14747
|
+
hits?: number;
|
|
14748
|
+
id?: string;
|
|
14749
|
+
label?: string | null;
|
|
14750
|
+
last_error?: string | null;
|
|
14751
|
+
scope?: string;
|
|
14752
|
+
updated_at?: string;
|
|
14753
|
+
vbn_code?: string;
|
|
14754
|
+
};
|
|
14755
|
+
Relationships: [];
|
|
14756
|
+
};
|
|
14757
|
+
voorraad_publish_steps: {
|
|
14758
|
+
Row: {
|
|
14759
|
+
attempts: number;
|
|
14760
|
+
created_at: string;
|
|
14761
|
+
error_code: string | null;
|
|
14762
|
+
error_detail: string | null;
|
|
14763
|
+
error_message: string | null;
|
|
14764
|
+
finished_at: string | null;
|
|
14765
|
+
id: string;
|
|
14766
|
+
job_id: string;
|
|
14767
|
+
label: string;
|
|
14768
|
+
position: number;
|
|
14769
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
14770
|
+
started_at: string | null;
|
|
14771
|
+
status: string;
|
|
14772
|
+
step_key: string;
|
|
14773
|
+
updated_at: string;
|
|
14774
|
+
user_id: string;
|
|
14775
|
+
};
|
|
14776
|
+
Insert: {
|
|
14777
|
+
attempts?: number;
|
|
14778
|
+
created_at?: string;
|
|
14779
|
+
error_code?: string | null;
|
|
14780
|
+
error_detail?: string | null;
|
|
14781
|
+
error_message?: string | null;
|
|
14782
|
+
finished_at?: string | null;
|
|
14783
|
+
id?: string;
|
|
14784
|
+
job_id: string;
|
|
14785
|
+
label: string;
|
|
14786
|
+
position?: number;
|
|
14787
|
+
result?: import("../integrations/supabase/types").Json | null;
|
|
14788
|
+
started_at?: string | null;
|
|
14789
|
+
status?: string;
|
|
14790
|
+
step_key: string;
|
|
14791
|
+
updated_at?: string;
|
|
14792
|
+
user_id: string;
|
|
14793
|
+
};
|
|
14794
|
+
Update: {
|
|
14795
|
+
attempts?: number;
|
|
14796
|
+
created_at?: string;
|
|
14797
|
+
error_code?: string | null;
|
|
14798
|
+
error_detail?: string | null;
|
|
14799
|
+
error_message?: string | null;
|
|
14800
|
+
finished_at?: string | null;
|
|
14801
|
+
id?: string;
|
|
14802
|
+
job_id?: string;
|
|
14803
|
+
label?: string;
|
|
14804
|
+
position?: number;
|
|
14805
|
+
result?: import("../integrations/supabase/types").Json | null;
|
|
14806
|
+
started_at?: string | null;
|
|
14807
|
+
status?: string;
|
|
14808
|
+
step_key?: string;
|
|
14809
|
+
updated_at?: string;
|
|
14810
|
+
user_id?: string;
|
|
14811
|
+
};
|
|
14812
|
+
Relationships: [{
|
|
14813
|
+
foreignKeyName: "voorraad_publish_steps_job_id_fkey";
|
|
14814
|
+
columns: ["job_id"];
|
|
14815
|
+
isOneToOne: false;
|
|
14816
|
+
referencedRelation: "voorraad_publish_jobs";
|
|
14817
|
+
referencedColumns: ["id"];
|
|
14818
|
+
}];
|
|
14819
|
+
};
|
|
13449
14820
|
werkbon_package_ai_rules: {
|
|
13450
14821
|
Row: {
|
|
13451
14822
|
active: boolean;
|
|
@@ -14709,12 +16080,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
14709
16080
|
};
|
|
14710
16081
|
claim_twinfield_push_batch: {
|
|
14711
16082
|
Args: {
|
|
16083
|
+
_customer_id?: string;
|
|
14712
16084
|
_limit?: number;
|
|
14713
16085
|
};
|
|
14714
16086
|
Returns: {
|
|
14715
16087
|
action: string;
|
|
14716
16088
|
attempts: number;
|
|
14717
|
-
connection_id: string;
|
|
16089
|
+
connection_id: string | null;
|
|
14718
16090
|
created_at: string;
|
|
14719
16091
|
customer_id: string | null;
|
|
14720
16092
|
external_id: string | null;
|
|
@@ -14798,6 +16170,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
14798
16170
|
};
|
|
14799
16171
|
Returns: import("../integrations/supabase/types").Json;
|
|
14800
16172
|
};
|
|
16173
|
+
customer_soft_key: {
|
|
16174
|
+
Args: {
|
|
16175
|
+
_email: string;
|
|
16176
|
+
_house: string;
|
|
16177
|
+
_name: string;
|
|
16178
|
+
_postal: string;
|
|
16179
|
+
};
|
|
16180
|
+
Returns: string;
|
|
16181
|
+
};
|
|
14801
16182
|
dashboard_alert_counts: {
|
|
14802
16183
|
Args: never;
|
|
14803
16184
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -15263,47 +16644,444 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
15263
16644
|
};
|
|
15264
16645
|
Returns: string;
|
|
15265
16646
|
};
|
|
15266
|
-
|
|
16647
|
+
logistics_address_key: {
|
|
15267
16648
|
Args: {
|
|
15268
|
-
|
|
16649
|
+
p_location: string;
|
|
15269
16650
|
};
|
|
15270
|
-
Returns:
|
|
16651
|
+
Returns: string;
|
|
15271
16652
|
};
|
|
15272
|
-
|
|
16653
|
+
logistics_allowed_load_carriers: {
|
|
15273
16654
|
Args: {
|
|
15274
|
-
|
|
16655
|
+
p_strategy_id?: string;
|
|
16656
|
+
p_user_id?: string;
|
|
15275
16657
|
};
|
|
15276
|
-
Returns:
|
|
16658
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
15277
16659
|
};
|
|
15278
|
-
|
|
16660
|
+
logistics_apply_buffer_decision: {
|
|
15279
16661
|
Args: {
|
|
15280
|
-
|
|
15281
|
-
p_floriday_id: string;
|
|
16662
|
+
p_order_id: string;
|
|
15282
16663
|
};
|
|
15283
|
-
Returns:
|
|
16664
|
+
Returns: string;
|
|
15284
16665
|
};
|
|
15285
|
-
|
|
16666
|
+
logistics_apply_order_buffer: {
|
|
15286
16667
|
Args: {
|
|
15287
|
-
|
|
16668
|
+
p_order_id: string;
|
|
15288
16669
|
};
|
|
15289
|
-
Returns:
|
|
16670
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
15290
16671
|
};
|
|
15291
|
-
|
|
16672
|
+
logistics_backorder_allowed: {
|
|
15292
16673
|
Args: {
|
|
15293
|
-
|
|
15294
|
-
_loser: string;
|
|
16674
|
+
p_strategy_id?: string;
|
|
15295
16675
|
};
|
|
15296
|
-
Returns:
|
|
16676
|
+
Returns: boolean;
|
|
15297
16677
|
};
|
|
15298
|
-
|
|
16678
|
+
logistics_buffer_criteria: {
|
|
15299
16679
|
Args: {
|
|
15300
|
-
|
|
16680
|
+
p_settings: import("../integrations/supabase/types").Json;
|
|
15301
16681
|
};
|
|
15302
|
-
Returns: string;
|
|
16682
|
+
Returns: string[];
|
|
15303
16683
|
};
|
|
15304
|
-
|
|
16684
|
+
logistics_buffer_decision: {
|
|
15305
16685
|
Args: {
|
|
15306
|
-
|
|
16686
|
+
p_order?: import("../integrations/supabase/types").Json;
|
|
16687
|
+
p_strategy_id?: string;
|
|
16688
|
+
p_user_id?: string;
|
|
16689
|
+
};
|
|
16690
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
16691
|
+
};
|
|
16692
|
+
logistics_buffer_simulate: {
|
|
16693
|
+
Args: {
|
|
16694
|
+
p_orders?: import("../integrations/supabase/types").Json;
|
|
16695
|
+
p_strategy_id?: string;
|
|
16696
|
+
};
|
|
16697
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
16698
|
+
};
|
|
16699
|
+
logistics_buffer_value: {
|
|
16700
|
+
Args: {
|
|
16701
|
+
p_criterion: string;
|
|
16702
|
+
p_order: import("../integrations/supabase/types").Json;
|
|
16703
|
+
};
|
|
16704
|
+
Returns: string;
|
|
16705
|
+
};
|
|
16706
|
+
logistics_cancel_order: {
|
|
16707
|
+
Args: {
|
|
16708
|
+
p_order_ref: string;
|
|
16709
|
+
p_reason?: string;
|
|
16710
|
+
p_user_id?: string;
|
|
16711
|
+
};
|
|
16712
|
+
Returns: number;
|
|
16713
|
+
};
|
|
16714
|
+
logistics_check_order_allowed: {
|
|
16715
|
+
Args: {
|
|
16716
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
16717
|
+
p_strategy_id?: string;
|
|
16718
|
+
};
|
|
16719
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
16720
|
+
};
|
|
16721
|
+
logistics_check_order_stock: {
|
|
16722
|
+
Args: {
|
|
16723
|
+
p_event_id: string;
|
|
16724
|
+
};
|
|
16725
|
+
Returns: string;
|
|
16726
|
+
};
|
|
16727
|
+
logistics_claim_next_task: {
|
|
16728
|
+
Args: {
|
|
16729
|
+
p_owner_module: string;
|
|
16730
|
+
p_worker?: string;
|
|
16731
|
+
};
|
|
16732
|
+
Returns: {
|
|
16733
|
+
buffer_ref: string | null;
|
|
16734
|
+
claimed_at: string | null;
|
|
16735
|
+
claimed_by: string | null;
|
|
16736
|
+
completed_at: string | null;
|
|
16737
|
+
created_at: string;
|
|
16738
|
+
depends_on: string[];
|
|
16739
|
+
due_at: string | null;
|
|
16740
|
+
error: string | null;
|
|
16741
|
+
id: string;
|
|
16742
|
+
order_ref: string;
|
|
16743
|
+
owner_module: string;
|
|
16744
|
+
payload: import("../integrations/supabase/types").Json;
|
|
16745
|
+
plan_run_id: string | null;
|
|
16746
|
+
planned_end: string | null;
|
|
16747
|
+
planned_start: string | null;
|
|
16748
|
+
priority: number;
|
|
16749
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
16750
|
+
rule_config_id: string | null;
|
|
16751
|
+
rule_version: number | null;
|
|
16752
|
+
sequence: number;
|
|
16753
|
+
shadow: boolean;
|
|
16754
|
+
started_at: string | null;
|
|
16755
|
+
status: string;
|
|
16756
|
+
strategy_id: string | null;
|
|
16757
|
+
task_type: string;
|
|
16758
|
+
updated_at: string;
|
|
16759
|
+
user_id: string;
|
|
16760
|
+
};
|
|
16761
|
+
SetofOptions: {
|
|
16762
|
+
from: "*";
|
|
16763
|
+
to: "logistics_tasks";
|
|
16764
|
+
isOneToOne: true;
|
|
16765
|
+
isSetofReturn: false;
|
|
16766
|
+
};
|
|
16767
|
+
};
|
|
16768
|
+
logistics_claim_task: {
|
|
16769
|
+
Args: {
|
|
16770
|
+
p_task_id: string;
|
|
16771
|
+
p_worker?: string;
|
|
16772
|
+
};
|
|
16773
|
+
Returns: {
|
|
16774
|
+
buffer_ref: string | null;
|
|
16775
|
+
claimed_at: string | null;
|
|
16776
|
+
claimed_by: string | null;
|
|
16777
|
+
completed_at: string | null;
|
|
16778
|
+
created_at: string;
|
|
16779
|
+
depends_on: string[];
|
|
16780
|
+
due_at: string | null;
|
|
16781
|
+
error: string | null;
|
|
16782
|
+
id: string;
|
|
16783
|
+
order_ref: string;
|
|
16784
|
+
owner_module: string;
|
|
16785
|
+
payload: import("../integrations/supabase/types").Json;
|
|
16786
|
+
plan_run_id: string | null;
|
|
16787
|
+
planned_end: string | null;
|
|
16788
|
+
planned_start: string | null;
|
|
16789
|
+
priority: number;
|
|
16790
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
16791
|
+
rule_config_id: string | null;
|
|
16792
|
+
rule_version: number | null;
|
|
16793
|
+
sequence: number;
|
|
16794
|
+
shadow: boolean;
|
|
16795
|
+
started_at: string | null;
|
|
16796
|
+
status: string;
|
|
16797
|
+
strategy_id: string | null;
|
|
16798
|
+
task_type: string;
|
|
16799
|
+
updated_at: string;
|
|
16800
|
+
user_id: string;
|
|
16801
|
+
};
|
|
16802
|
+
SetofOptions: {
|
|
16803
|
+
from: "*";
|
|
16804
|
+
to: "logistics_tasks";
|
|
16805
|
+
isOneToOne: true;
|
|
16806
|
+
isSetofReturn: false;
|
|
16807
|
+
};
|
|
16808
|
+
};
|
|
16809
|
+
logistics_complete_task: {
|
|
16810
|
+
Args: {
|
|
16811
|
+
p_result?: import("../integrations/supabase/types").Json;
|
|
16812
|
+
p_task_id: string;
|
|
16813
|
+
};
|
|
16814
|
+
Returns: {
|
|
16815
|
+
buffer_ref: string | null;
|
|
16816
|
+
claimed_at: string | null;
|
|
16817
|
+
claimed_by: string | null;
|
|
16818
|
+
completed_at: string | null;
|
|
16819
|
+
created_at: string;
|
|
16820
|
+
depends_on: string[];
|
|
16821
|
+
due_at: string | null;
|
|
16822
|
+
error: string | null;
|
|
16823
|
+
id: string;
|
|
16824
|
+
order_ref: string;
|
|
16825
|
+
owner_module: string;
|
|
16826
|
+
payload: import("../integrations/supabase/types").Json;
|
|
16827
|
+
plan_run_id: string | null;
|
|
16828
|
+
planned_end: string | null;
|
|
16829
|
+
planned_start: string | null;
|
|
16830
|
+
priority: number;
|
|
16831
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
16832
|
+
rule_config_id: string | null;
|
|
16833
|
+
rule_version: number | null;
|
|
16834
|
+
sequence: number;
|
|
16835
|
+
shadow: boolean;
|
|
16836
|
+
started_at: string | null;
|
|
16837
|
+
status: string;
|
|
16838
|
+
strategy_id: string | null;
|
|
16839
|
+
task_type: string;
|
|
16840
|
+
updated_at: string;
|
|
16841
|
+
user_id: string;
|
|
16842
|
+
};
|
|
16843
|
+
SetofOptions: {
|
|
16844
|
+
from: "*";
|
|
16845
|
+
to: "logistics_tasks";
|
|
16846
|
+
isOneToOne: true;
|
|
16847
|
+
isSetofReturn: false;
|
|
16848
|
+
};
|
|
16849
|
+
};
|
|
16850
|
+
logistics_emit_event: {
|
|
16851
|
+
Args: {
|
|
16852
|
+
p_event_type: string;
|
|
16853
|
+
p_idempotency_key?: string;
|
|
16854
|
+
p_order_ref: string;
|
|
16855
|
+
p_payload?: import("../integrations/supabase/types").Json;
|
|
16856
|
+
p_shadow?: boolean;
|
|
16857
|
+
p_source_module: string;
|
|
16858
|
+
p_strategy_id?: string;
|
|
16859
|
+
};
|
|
16860
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
16861
|
+
} | {
|
|
16862
|
+
Args: {
|
|
16863
|
+
p_event_type: string;
|
|
16864
|
+
p_idempotency_key?: string;
|
|
16865
|
+
p_order_ref: string;
|
|
16866
|
+
p_payload?: import("../integrations/supabase/types").Json;
|
|
16867
|
+
p_priority?: number;
|
|
16868
|
+
p_shadow?: boolean;
|
|
16869
|
+
p_source_module: string;
|
|
16870
|
+
p_strategy_id?: string;
|
|
16871
|
+
};
|
|
16872
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
16873
|
+
};
|
|
16874
|
+
logistics_fail_task: {
|
|
16875
|
+
Args: {
|
|
16876
|
+
p_error: string;
|
|
16877
|
+
p_task_id: string;
|
|
16878
|
+
};
|
|
16879
|
+
Returns: {
|
|
16880
|
+
buffer_ref: string | null;
|
|
16881
|
+
claimed_at: string | null;
|
|
16882
|
+
claimed_by: string | null;
|
|
16883
|
+
completed_at: string | null;
|
|
16884
|
+
created_at: string;
|
|
16885
|
+
depends_on: string[];
|
|
16886
|
+
due_at: string | null;
|
|
16887
|
+
error: string | null;
|
|
16888
|
+
id: string;
|
|
16889
|
+
order_ref: string;
|
|
16890
|
+
owner_module: string;
|
|
16891
|
+
payload: import("../integrations/supabase/types").Json;
|
|
16892
|
+
plan_run_id: string | null;
|
|
16893
|
+
planned_end: string | null;
|
|
16894
|
+
planned_start: string | null;
|
|
16895
|
+
priority: number;
|
|
16896
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
16897
|
+
rule_config_id: string | null;
|
|
16898
|
+
rule_version: number | null;
|
|
16899
|
+
sequence: number;
|
|
16900
|
+
shadow: boolean;
|
|
16901
|
+
started_at: string | null;
|
|
16902
|
+
status: string;
|
|
16903
|
+
strategy_id: string | null;
|
|
16904
|
+
task_type: string;
|
|
16905
|
+
updated_at: string;
|
|
16906
|
+
user_id: string;
|
|
16907
|
+
};
|
|
16908
|
+
SetofOptions: {
|
|
16909
|
+
from: "*";
|
|
16910
|
+
to: "logistics_tasks";
|
|
16911
|
+
isOneToOne: true;
|
|
16912
|
+
isSetofReturn: false;
|
|
16913
|
+
};
|
|
16914
|
+
};
|
|
16915
|
+
logistics_not_past: {
|
|
16916
|
+
Args: {
|
|
16917
|
+
p_ts: string;
|
|
16918
|
+
};
|
|
16919
|
+
Returns: string;
|
|
16920
|
+
};
|
|
16921
|
+
logistics_queue_stock_email: {
|
|
16922
|
+
Args: {
|
|
16923
|
+
p_alert_id: string;
|
|
16924
|
+
};
|
|
16925
|
+
Returns: string;
|
|
16926
|
+
};
|
|
16927
|
+
logistics_reapply_buffer_decisions: {
|
|
16928
|
+
Args: never;
|
|
16929
|
+
Returns: number;
|
|
16930
|
+
};
|
|
16931
|
+
logistics_rebuffer_open_orders: {
|
|
16932
|
+
Args: {
|
|
16933
|
+
p_strategy_id?: string;
|
|
16934
|
+
};
|
|
16935
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
16936
|
+
};
|
|
16937
|
+
logistics_rebuffer_orders: {
|
|
16938
|
+
Args: {
|
|
16939
|
+
p_days?: number;
|
|
16940
|
+
};
|
|
16941
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
16942
|
+
};
|
|
16943
|
+
logistics_rebuffer_pending: {
|
|
16944
|
+
Args: never;
|
|
16945
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
16946
|
+
};
|
|
16947
|
+
logistics_rescan_orders: {
|
|
16948
|
+
Args: {
|
|
16949
|
+
p_days?: number;
|
|
16950
|
+
};
|
|
16951
|
+
Returns: number;
|
|
16952
|
+
};
|
|
16953
|
+
logistics_resolve_settings: {
|
|
16954
|
+
Args: {
|
|
16955
|
+
p_config_id: string;
|
|
16956
|
+
p_user_id: string;
|
|
16957
|
+
p_version: number;
|
|
16958
|
+
};
|
|
16959
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
16960
|
+
};
|
|
16961
|
+
logistics_rule_bool: {
|
|
16962
|
+
Args: {
|
|
16963
|
+
p_default: boolean;
|
|
16964
|
+
p_key: string;
|
|
16965
|
+
p_settings: import("../integrations/supabase/types").Json;
|
|
16966
|
+
p_step: string;
|
|
16967
|
+
};
|
|
16968
|
+
Returns: boolean;
|
|
16969
|
+
};
|
|
16970
|
+
logistics_rule_num: {
|
|
16971
|
+
Args: {
|
|
16972
|
+
p_default: number;
|
|
16973
|
+
p_key: string;
|
|
16974
|
+
p_settings: import("../integrations/supabase/types").Json;
|
|
16975
|
+
p_step: string;
|
|
16976
|
+
};
|
|
16977
|
+
Returns: number;
|
|
16978
|
+
};
|
|
16979
|
+
logistics_rule_text: {
|
|
16980
|
+
Args: {
|
|
16981
|
+
p_default: string;
|
|
16982
|
+
p_key: string;
|
|
16983
|
+
p_settings: import("../integrations/supabase/types").Json;
|
|
16984
|
+
p_step: string;
|
|
16985
|
+
};
|
|
16986
|
+
Returns: string;
|
|
16987
|
+
};
|
|
16988
|
+
logistics_rule_value: {
|
|
16989
|
+
Args: {
|
|
16990
|
+
p_key: string;
|
|
16991
|
+
p_settings: import("../integrations/supabase/types").Json;
|
|
16992
|
+
p_step: string;
|
|
16993
|
+
};
|
|
16994
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
16995
|
+
};
|
|
16996
|
+
logistics_scan_order_stock: {
|
|
16997
|
+
Args: {
|
|
16998
|
+
p_order_id: string;
|
|
16999
|
+
};
|
|
17000
|
+
Returns: string;
|
|
17001
|
+
};
|
|
17002
|
+
logistics_set_order_priority: {
|
|
17003
|
+
Args: {
|
|
17004
|
+
p_order_ref: string;
|
|
17005
|
+
p_priority: number;
|
|
17006
|
+
p_user_id?: string;
|
|
17007
|
+
};
|
|
17008
|
+
Returns: number;
|
|
17009
|
+
};
|
|
17010
|
+
logistics_supersede_stale_tasks: {
|
|
17011
|
+
Args: {
|
|
17012
|
+
p_keep: string[];
|
|
17013
|
+
p_order_ref: string;
|
|
17014
|
+
p_run_id: string;
|
|
17015
|
+
p_user_id: string;
|
|
17016
|
+
};
|
|
17017
|
+
Returns: number;
|
|
17018
|
+
};
|
|
17019
|
+
logistics_task_owner: {
|
|
17020
|
+
Args: {
|
|
17021
|
+
p_task_type: string;
|
|
17022
|
+
};
|
|
17023
|
+
Returns: string;
|
|
17024
|
+
};
|
|
17025
|
+
logistics_upsert_task: {
|
|
17026
|
+
Args: {
|
|
17027
|
+
p_buffer_ref: string;
|
|
17028
|
+
p_end: string;
|
|
17029
|
+
p_order_ref: string;
|
|
17030
|
+
p_owner: string;
|
|
17031
|
+
p_payload: import("../integrations/supabase/types").Json;
|
|
17032
|
+
p_rule_config_id: string;
|
|
17033
|
+
p_rule_version: number;
|
|
17034
|
+
p_run_id: string;
|
|
17035
|
+
p_sequence: number;
|
|
17036
|
+
p_shadow: boolean;
|
|
17037
|
+
p_start: string;
|
|
17038
|
+
p_strategy_id: string;
|
|
17039
|
+
p_task_type: string;
|
|
17040
|
+
p_user_id: string;
|
|
17041
|
+
};
|
|
17042
|
+
Returns: string;
|
|
17043
|
+
};
|
|
17044
|
+
mark_offer_clicked: {
|
|
17045
|
+
Args: {
|
|
17046
|
+
p_code: string;
|
|
17047
|
+
};
|
|
17048
|
+
Returns: undefined;
|
|
17049
|
+
};
|
|
17050
|
+
mark_offer_ordered: {
|
|
17051
|
+
Args: {
|
|
17052
|
+
p_code: string;
|
|
17053
|
+
};
|
|
17054
|
+
Returns: undefined;
|
|
17055
|
+
};
|
|
17056
|
+
mark_salesorder_controlled: {
|
|
17057
|
+
Args: {
|
|
17058
|
+
p_controlled: boolean;
|
|
17059
|
+
p_floriday_id: string;
|
|
17060
|
+
};
|
|
17061
|
+
Returns: undefined;
|
|
17062
|
+
};
|
|
17063
|
+
mark_shipment_shipped: {
|
|
17064
|
+
Args: {
|
|
17065
|
+
p_shipment_id: string;
|
|
17066
|
+
};
|
|
17067
|
+
Returns: undefined;
|
|
17068
|
+
};
|
|
17069
|
+
merge_products: {
|
|
17070
|
+
Args: {
|
|
17071
|
+
_canonical: string;
|
|
17072
|
+
_loser: string;
|
|
17073
|
+
};
|
|
17074
|
+
Returns: undefined;
|
|
17075
|
+
};
|
|
17076
|
+
next_manufacture_partij: {
|
|
17077
|
+
Args: {
|
|
17078
|
+
_tenant_id: string;
|
|
17079
|
+
};
|
|
17080
|
+
Returns: string;
|
|
17081
|
+
};
|
|
17082
|
+
next_order_number: {
|
|
17083
|
+
Args: {
|
|
17084
|
+
p_prefix: string;
|
|
15307
17085
|
};
|
|
15308
17086
|
Returns: string;
|
|
15309
17087
|
};
|
|
@@ -15516,6 +17294,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
15516
17294
|
waiting: number;
|
|
15517
17295
|
}[];
|
|
15518
17296
|
};
|
|
17297
|
+
pick_station_slugify: {
|
|
17298
|
+
Args: {
|
|
17299
|
+
_id: string;
|
|
17300
|
+
_name: string;
|
|
17301
|
+
};
|
|
17302
|
+
Returns: string;
|
|
17303
|
+
};
|
|
15519
17304
|
pickstation_get_orders_raw: {
|
|
15520
17305
|
Args: never;
|
|
15521
17306
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -15556,6 +17341,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
15556
17341
|
};
|
|
15557
17342
|
Returns: undefined;
|
|
15558
17343
|
};
|
|
17344
|
+
process_logistics_event: {
|
|
17345
|
+
Args: {
|
|
17346
|
+
p_event_id: string;
|
|
17347
|
+
};
|
|
17348
|
+
Returns: string;
|
|
17349
|
+
};
|
|
15559
17350
|
produce_designed_product: {
|
|
15560
17351
|
Args: {
|
|
15561
17352
|
p_parent_id: string;
|
|
@@ -15681,6 +17472,14 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
15681
17472
|
};
|
|
15682
17473
|
Returns: import("../integrations/supabase/types").Json;
|
|
15683
17474
|
};
|
|
17475
|
+
run_floriday_continuous_stock_sync: {
|
|
17476
|
+
Args: never;
|
|
17477
|
+
Returns: undefined;
|
|
17478
|
+
};
|
|
17479
|
+
run_twinfield_queue_tick: {
|
|
17480
|
+
Args: never;
|
|
17481
|
+
Returns: undefined;
|
|
17482
|
+
};
|
|
15684
17483
|
schedule_floriday_additional_services_sync: {
|
|
15685
17484
|
Args: {
|
|
15686
17485
|
p_apikey: string;
|
|
@@ -16012,7 +17811,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
|
|
|
16012
17811
|
};
|
|
16013
17812
|
twinfield_register_cron: {
|
|
16014
17813
|
Args: {
|
|
16015
|
-
apikey
|
|
17814
|
+
apikey?: string;
|
|
16016
17815
|
base_url: string;
|
|
16017
17816
|
};
|
|
16018
17817
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -17688,13 +19487,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17688
19487
|
id?: string;
|
|
17689
19488
|
user_id?: string | null;
|
|
17690
19489
|
};
|
|
17691
|
-
Relationships: [
|
|
17692
|
-
foreignKeyName: "customer_audit_log_customer_id_fkey";
|
|
17693
|
-
columns: ["customer_id"];
|
|
17694
|
-
isOneToOne: false;
|
|
17695
|
-
referencedRelation: "customers";
|
|
17696
|
-
referencedColumns: ["id"];
|
|
17697
|
-
}];
|
|
19490
|
+
Relationships: [];
|
|
17698
19491
|
};
|
|
17699
19492
|
customer_contacts: {
|
|
17700
19493
|
Row: {
|
|
@@ -17755,9 +19548,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17755
19548
|
city: string | null;
|
|
17756
19549
|
country: string | null;
|
|
17757
19550
|
created_at: string;
|
|
17758
|
-
customer_id: string;
|
|
19551
|
+
customer_id: string | null;
|
|
19552
|
+
external_key: string | null;
|
|
19553
|
+
external_provider: string | null;
|
|
17759
19554
|
floriday_location_id: string | null;
|
|
17760
19555
|
gln: string | null;
|
|
19556
|
+
group_key: string | null;
|
|
17761
19557
|
house_number: string | null;
|
|
17762
19558
|
id: string;
|
|
17763
19559
|
is_primary: boolean;
|
|
@@ -17776,9 +19572,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17776
19572
|
city?: string | null;
|
|
17777
19573
|
country?: string | null;
|
|
17778
19574
|
created_at?: string;
|
|
17779
|
-
customer_id
|
|
19575
|
+
customer_id?: string | null;
|
|
19576
|
+
external_key?: string | null;
|
|
19577
|
+
external_provider?: string | null;
|
|
17780
19578
|
floriday_location_id?: string | null;
|
|
17781
19579
|
gln?: string | null;
|
|
19580
|
+
group_key?: string | null;
|
|
17782
19581
|
house_number?: string | null;
|
|
17783
19582
|
id?: string;
|
|
17784
19583
|
is_primary?: boolean;
|
|
@@ -17797,9 +19596,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17797
19596
|
city?: string | null;
|
|
17798
19597
|
country?: string | null;
|
|
17799
19598
|
created_at?: string;
|
|
17800
|
-
customer_id?: string;
|
|
19599
|
+
customer_id?: string | null;
|
|
19600
|
+
external_key?: string | null;
|
|
19601
|
+
external_provider?: string | null;
|
|
17801
19602
|
floriday_location_id?: string | null;
|
|
17802
19603
|
gln?: string | null;
|
|
19604
|
+
group_key?: string | null;
|
|
17803
19605
|
house_number?: string | null;
|
|
17804
19606
|
id?: string;
|
|
17805
19607
|
is_primary?: boolean;
|
|
@@ -17888,6 +19690,39 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
17888
19690
|
};
|
|
17889
19691
|
Relationships: [];
|
|
17890
19692
|
};
|
|
19693
|
+
customer_logistics_strategy: {
|
|
19694
|
+
Row: {
|
|
19695
|
+
created_at: string;
|
|
19696
|
+
id: string;
|
|
19697
|
+
ref_key: string;
|
|
19698
|
+
scope: string;
|
|
19699
|
+
strategy_id: string | null;
|
|
19700
|
+
updated_at: string;
|
|
19701
|
+
};
|
|
19702
|
+
Insert: {
|
|
19703
|
+
created_at?: string;
|
|
19704
|
+
id?: string;
|
|
19705
|
+
ref_key: string;
|
|
19706
|
+
scope: string;
|
|
19707
|
+
strategy_id?: string | null;
|
|
19708
|
+
updated_at?: string;
|
|
19709
|
+
};
|
|
19710
|
+
Update: {
|
|
19711
|
+
created_at?: string;
|
|
19712
|
+
id?: string;
|
|
19713
|
+
ref_key?: string;
|
|
19714
|
+
scope?: string;
|
|
19715
|
+
strategy_id?: string | null;
|
|
19716
|
+
updated_at?: string;
|
|
19717
|
+
};
|
|
19718
|
+
Relationships: [{
|
|
19719
|
+
foreignKeyName: "customer_logistics_strategy_strategy_id_fkey";
|
|
19720
|
+
columns: ["strategy_id"];
|
|
19721
|
+
isOneToOne: false;
|
|
19722
|
+
referencedRelation: "logistics_strategies";
|
|
19723
|
+
referencedColumns: ["id"];
|
|
19724
|
+
}];
|
|
19725
|
+
};
|
|
17891
19726
|
customer_price_group_members: {
|
|
17892
19727
|
Row: {
|
|
17893
19728
|
created_at: string;
|
|
@@ -18099,6 +19934,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18099
19934
|
bank_state: string | null;
|
|
18100
19935
|
billing_email: string | null;
|
|
18101
19936
|
bio: string | null;
|
|
19937
|
+
blocked: boolean;
|
|
18102
19938
|
city: string | null;
|
|
18103
19939
|
coc_number: string | null;
|
|
18104
19940
|
commercial_name: string | null;
|
|
@@ -18107,11 +19943,14 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18107
19943
|
contact_person: string | null;
|
|
18108
19944
|
country: string | null;
|
|
18109
19945
|
created_at: string;
|
|
19946
|
+
credit_limit: number;
|
|
18110
19947
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
18111
19948
|
customer_class: string | null;
|
|
18112
19949
|
customer_number: string | null;
|
|
18113
19950
|
discount_days: number | null;
|
|
18114
19951
|
discount_percentage: number | null;
|
|
19952
|
+
discount_surcharge: string;
|
|
19953
|
+
e_invoicing: boolean;
|
|
18115
19954
|
email: string | null;
|
|
18116
19955
|
external_id: string | null;
|
|
18117
19956
|
fax: string | null;
|
|
@@ -18122,19 +19961,23 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18122
19961
|
house_number: string | null;
|
|
18123
19962
|
icp_country_code: string | null;
|
|
18124
19963
|
id: string;
|
|
19964
|
+
invoice_send_as: string;
|
|
18125
19965
|
is_active: boolean;
|
|
18126
19966
|
language: string | null;
|
|
18127
19967
|
last_synced_at: string | null;
|
|
19968
|
+
ledger_account: string | null;
|
|
18128
19969
|
logo_url: string | null;
|
|
18129
19970
|
markets: string[];
|
|
18130
19971
|
notes: string | null;
|
|
18131
19972
|
organization_type: string | null;
|
|
18132
19973
|
payment_methods: string[];
|
|
19974
|
+
payment_spec_method: string;
|
|
18133
19975
|
payment_term_days: number | null;
|
|
18134
19976
|
phone: string | null;
|
|
18135
19977
|
postal_code: string | null;
|
|
18136
19978
|
product_groups: string[];
|
|
18137
19979
|
segments: string[];
|
|
19980
|
+
send_reminder: string;
|
|
18138
19981
|
source: string;
|
|
18139
19982
|
street: string | null;
|
|
18140
19983
|
sync_error: string | null;
|
|
@@ -18170,6 +20013,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18170
20013
|
bank_state?: string | null;
|
|
18171
20014
|
billing_email?: string | null;
|
|
18172
20015
|
bio?: string | null;
|
|
20016
|
+
blocked?: boolean;
|
|
18173
20017
|
city?: string | null;
|
|
18174
20018
|
coc_number?: string | null;
|
|
18175
20019
|
commercial_name?: string | null;
|
|
@@ -18178,11 +20022,14 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18178
20022
|
contact_person?: string | null;
|
|
18179
20023
|
country?: string | null;
|
|
18180
20024
|
created_at?: string;
|
|
20025
|
+
credit_limit?: number;
|
|
18181
20026
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
18182
20027
|
customer_class?: string | null;
|
|
18183
20028
|
customer_number?: string | null;
|
|
18184
20029
|
discount_days?: number | null;
|
|
18185
20030
|
discount_percentage?: number | null;
|
|
20031
|
+
discount_surcharge?: string;
|
|
20032
|
+
e_invoicing?: boolean;
|
|
18186
20033
|
email?: string | null;
|
|
18187
20034
|
external_id?: string | null;
|
|
18188
20035
|
fax?: string | null;
|
|
@@ -18193,19 +20040,23 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18193
20040
|
house_number?: string | null;
|
|
18194
20041
|
icp_country_code?: string | null;
|
|
18195
20042
|
id?: string;
|
|
20043
|
+
invoice_send_as?: string;
|
|
18196
20044
|
is_active?: boolean;
|
|
18197
20045
|
language?: string | null;
|
|
18198
20046
|
last_synced_at?: string | null;
|
|
20047
|
+
ledger_account?: string | null;
|
|
18199
20048
|
logo_url?: string | null;
|
|
18200
20049
|
markets?: string[];
|
|
18201
20050
|
notes?: string | null;
|
|
18202
20051
|
organization_type?: string | null;
|
|
18203
20052
|
payment_methods?: string[];
|
|
20053
|
+
payment_spec_method?: string;
|
|
18204
20054
|
payment_term_days?: number | null;
|
|
18205
20055
|
phone?: string | null;
|
|
18206
20056
|
postal_code?: string | null;
|
|
18207
20057
|
product_groups?: string[];
|
|
18208
20058
|
segments?: string[];
|
|
20059
|
+
send_reminder?: string;
|
|
18209
20060
|
source?: string;
|
|
18210
20061
|
street?: string | null;
|
|
18211
20062
|
sync_error?: string | null;
|
|
@@ -18241,6 +20092,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18241
20092
|
bank_state?: string | null;
|
|
18242
20093
|
billing_email?: string | null;
|
|
18243
20094
|
bio?: string | null;
|
|
20095
|
+
blocked?: boolean;
|
|
18244
20096
|
city?: string | null;
|
|
18245
20097
|
coc_number?: string | null;
|
|
18246
20098
|
commercial_name?: string | null;
|
|
@@ -18249,11 +20101,14 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18249
20101
|
contact_person?: string | null;
|
|
18250
20102
|
country?: string | null;
|
|
18251
20103
|
created_at?: string;
|
|
20104
|
+
credit_limit?: number;
|
|
18252
20105
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
18253
20106
|
customer_class?: string | null;
|
|
18254
20107
|
customer_number?: string | null;
|
|
18255
20108
|
discount_days?: number | null;
|
|
18256
20109
|
discount_percentage?: number | null;
|
|
20110
|
+
discount_surcharge?: string;
|
|
20111
|
+
e_invoicing?: boolean;
|
|
18257
20112
|
email?: string | null;
|
|
18258
20113
|
external_id?: string | null;
|
|
18259
20114
|
fax?: string | null;
|
|
@@ -18264,19 +20119,23 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18264
20119
|
house_number?: string | null;
|
|
18265
20120
|
icp_country_code?: string | null;
|
|
18266
20121
|
id?: string;
|
|
20122
|
+
invoice_send_as?: string;
|
|
18267
20123
|
is_active?: boolean;
|
|
18268
20124
|
language?: string | null;
|
|
18269
20125
|
last_synced_at?: string | null;
|
|
20126
|
+
ledger_account?: string | null;
|
|
18270
20127
|
logo_url?: string | null;
|
|
18271
20128
|
markets?: string[];
|
|
18272
20129
|
notes?: string | null;
|
|
18273
20130
|
organization_type?: string | null;
|
|
18274
20131
|
payment_methods?: string[];
|
|
20132
|
+
payment_spec_method?: string;
|
|
18275
20133
|
payment_term_days?: number | null;
|
|
18276
20134
|
phone?: string | null;
|
|
18277
20135
|
postal_code?: string | null;
|
|
18278
20136
|
product_groups?: string[];
|
|
18279
20137
|
segments?: string[];
|
|
20138
|
+
send_reminder?: string;
|
|
18280
20139
|
source?: string;
|
|
18281
20140
|
street?: string | null;
|
|
18282
20141
|
sync_error?: string | null;
|
|
@@ -18995,6 +20854,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
18995
20854
|
status: string;
|
|
18996
20855
|
token_expires_at: string | null;
|
|
18997
20856
|
updated_at: string;
|
|
20857
|
+
watch_scope: string;
|
|
18998
20858
|
webhook_last_attempt_at: string | null;
|
|
18999
20859
|
webhook_last_error: string | null;
|
|
19000
20860
|
webhook_status: string;
|
|
@@ -19037,6 +20897,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19037
20897
|
status?: string;
|
|
19038
20898
|
token_expires_at?: string | null;
|
|
19039
20899
|
updated_at?: string;
|
|
20900
|
+
watch_scope?: string;
|
|
19040
20901
|
webhook_last_attempt_at?: string | null;
|
|
19041
20902
|
webhook_last_error?: string | null;
|
|
19042
20903
|
webhook_status?: string;
|
|
@@ -19079,6 +20940,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19079
20940
|
status?: string;
|
|
19080
20941
|
token_expires_at?: string | null;
|
|
19081
20942
|
updated_at?: string;
|
|
20943
|
+
watch_scope?: string;
|
|
19082
20944
|
webhook_last_attempt_at?: string | null;
|
|
19083
20945
|
webhook_last_error?: string | null;
|
|
19084
20946
|
webhook_status?: string;
|
|
@@ -19277,6 +21139,72 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
19277
21139
|
referencedColumns: ["id"];
|
|
19278
21140
|
}];
|
|
19279
21141
|
};
|
|
21142
|
+
email_auth_watch_folders: {
|
|
21143
|
+
Row: {
|
|
21144
|
+
connection_id: string;
|
|
21145
|
+
created_at: string;
|
|
21146
|
+
folder_id: string;
|
|
21147
|
+
folder_name: string | null;
|
|
21148
|
+
gmail_history_id: string | null;
|
|
21149
|
+
graph_subscription_expires_at: string | null;
|
|
21150
|
+
graph_subscription_id: string | null;
|
|
21151
|
+
id: string;
|
|
21152
|
+
imap_last_uid: number | null;
|
|
21153
|
+
imap_uid_validity: number | null;
|
|
21154
|
+
mailbox: string;
|
|
21155
|
+
provider: string;
|
|
21156
|
+
updated_at: string;
|
|
21157
|
+
webhook_last_error: string | null;
|
|
21158
|
+
webhook_status: string | null;
|
|
21159
|
+
};
|
|
21160
|
+
Insert: {
|
|
21161
|
+
connection_id: string;
|
|
21162
|
+
created_at?: string;
|
|
21163
|
+
folder_id: string;
|
|
21164
|
+
folder_name?: string | null;
|
|
21165
|
+
gmail_history_id?: string | null;
|
|
21166
|
+
graph_subscription_expires_at?: string | null;
|
|
21167
|
+
graph_subscription_id?: string | null;
|
|
21168
|
+
id?: string;
|
|
21169
|
+
imap_last_uid?: number | null;
|
|
21170
|
+
imap_uid_validity?: number | null;
|
|
21171
|
+
mailbox?: string;
|
|
21172
|
+
provider: string;
|
|
21173
|
+
updated_at?: string;
|
|
21174
|
+
webhook_last_error?: string | null;
|
|
21175
|
+
webhook_status?: string | null;
|
|
21176
|
+
};
|
|
21177
|
+
Update: {
|
|
21178
|
+
connection_id?: string;
|
|
21179
|
+
created_at?: string;
|
|
21180
|
+
folder_id?: string;
|
|
21181
|
+
folder_name?: string | null;
|
|
21182
|
+
gmail_history_id?: string | null;
|
|
21183
|
+
graph_subscription_expires_at?: string | null;
|
|
21184
|
+
graph_subscription_id?: string | null;
|
|
21185
|
+
id?: string;
|
|
21186
|
+
imap_last_uid?: number | null;
|
|
21187
|
+
imap_uid_validity?: number | null;
|
|
21188
|
+
mailbox?: string;
|
|
21189
|
+
provider?: string;
|
|
21190
|
+
updated_at?: string;
|
|
21191
|
+
webhook_last_error?: string | null;
|
|
21192
|
+
webhook_status?: string | null;
|
|
21193
|
+
};
|
|
21194
|
+
Relationships: [{
|
|
21195
|
+
foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
|
|
21196
|
+
columns: ["connection_id"];
|
|
21197
|
+
isOneToOne: false;
|
|
21198
|
+
referencedRelation: "email_auth_connections";
|
|
21199
|
+
referencedColumns: ["id"];
|
|
21200
|
+
}, {
|
|
21201
|
+
foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
|
|
21202
|
+
columns: ["connection_id"];
|
|
21203
|
+
isOneToOne: false;
|
|
21204
|
+
referencedRelation: "email_auth_connections_safe";
|
|
21205
|
+
referencedColumns: ["id"];
|
|
21206
|
+
}];
|
|
21207
|
+
};
|
|
19280
21208
|
email_auth_webhook_log: {
|
|
19281
21209
|
Row: {
|
|
19282
21210
|
body_sample: string | null;
|
|
@@ -22370,6 +24298,108 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
22370
24298
|
};
|
|
22371
24299
|
Relationships: [];
|
|
22372
24300
|
};
|
|
24301
|
+
fust_stock_mutations: {
|
|
24302
|
+
Row: {
|
|
24303
|
+
created_at: string;
|
|
24304
|
+
delta: number;
|
|
24305
|
+
fust_type_id: string;
|
|
24306
|
+
id: string;
|
|
24307
|
+
note: string | null;
|
|
24308
|
+
reason: string;
|
|
24309
|
+
trade_item_key: string | null;
|
|
24310
|
+
user_id: string;
|
|
24311
|
+
};
|
|
24312
|
+
Insert: {
|
|
24313
|
+
created_at?: string;
|
|
24314
|
+
delta: number;
|
|
24315
|
+
fust_type_id: string;
|
|
24316
|
+
id?: string;
|
|
24317
|
+
note?: string | null;
|
|
24318
|
+
reason?: string;
|
|
24319
|
+
trade_item_key?: string | null;
|
|
24320
|
+
user_id: string;
|
|
24321
|
+
};
|
|
24322
|
+
Update: {
|
|
24323
|
+
created_at?: string;
|
|
24324
|
+
delta?: number;
|
|
24325
|
+
fust_type_id?: string;
|
|
24326
|
+
id?: string;
|
|
24327
|
+
note?: string | null;
|
|
24328
|
+
reason?: string;
|
|
24329
|
+
trade_item_key?: string | null;
|
|
24330
|
+
user_id?: string;
|
|
24331
|
+
};
|
|
24332
|
+
Relationships: [{
|
|
24333
|
+
foreignKeyName: "fust_stock_mutations_fust_type_id_fkey";
|
|
24334
|
+
columns: ["fust_type_id"];
|
|
24335
|
+
isOneToOne: false;
|
|
24336
|
+
referencedRelation: "fust_types";
|
|
24337
|
+
referencedColumns: ["id"];
|
|
24338
|
+
}];
|
|
24339
|
+
};
|
|
24340
|
+
fust_types: {
|
|
24341
|
+
Row: {
|
|
24342
|
+
connection_id: string | null;
|
|
24343
|
+
created_at: string;
|
|
24344
|
+
custom_package_id: string | null;
|
|
24345
|
+
fust_key: string;
|
|
24346
|
+
height_mm: number | null;
|
|
24347
|
+
id: string;
|
|
24348
|
+
in_use: boolean;
|
|
24349
|
+
length_mm: number | null;
|
|
24350
|
+
minimum_stock: number;
|
|
24351
|
+
name: string;
|
|
24352
|
+
notes: string | null;
|
|
24353
|
+
source: string;
|
|
24354
|
+
stock: number;
|
|
24355
|
+
updated_at: string;
|
|
24356
|
+
used_by_count: number;
|
|
24357
|
+
user_id: string;
|
|
24358
|
+
vbn_code: number | null;
|
|
24359
|
+
width_mm: number | null;
|
|
24360
|
+
};
|
|
24361
|
+
Insert: {
|
|
24362
|
+
connection_id?: string | null;
|
|
24363
|
+
created_at?: string;
|
|
24364
|
+
custom_package_id?: string | null;
|
|
24365
|
+
fust_key: string;
|
|
24366
|
+
height_mm?: number | null;
|
|
24367
|
+
id?: string;
|
|
24368
|
+
in_use?: boolean;
|
|
24369
|
+
length_mm?: number | null;
|
|
24370
|
+
minimum_stock?: number;
|
|
24371
|
+
name: string;
|
|
24372
|
+
notes?: string | null;
|
|
24373
|
+
source?: string;
|
|
24374
|
+
stock?: number;
|
|
24375
|
+
updated_at?: string;
|
|
24376
|
+
used_by_count?: number;
|
|
24377
|
+
user_id: string;
|
|
24378
|
+
vbn_code?: number | null;
|
|
24379
|
+
width_mm?: number | null;
|
|
24380
|
+
};
|
|
24381
|
+
Update: {
|
|
24382
|
+
connection_id?: string | null;
|
|
24383
|
+
created_at?: string;
|
|
24384
|
+
custom_package_id?: string | null;
|
|
24385
|
+
fust_key?: string;
|
|
24386
|
+
height_mm?: number | null;
|
|
24387
|
+
id?: string;
|
|
24388
|
+
in_use?: boolean;
|
|
24389
|
+
length_mm?: number | null;
|
|
24390
|
+
minimum_stock?: number;
|
|
24391
|
+
name?: string;
|
|
24392
|
+
notes?: string | null;
|
|
24393
|
+
source?: string;
|
|
24394
|
+
stock?: number;
|
|
24395
|
+
updated_at?: string;
|
|
24396
|
+
used_by_count?: number;
|
|
24397
|
+
user_id?: string;
|
|
24398
|
+
vbn_code?: number | null;
|
|
24399
|
+
width_mm?: number | null;
|
|
24400
|
+
};
|
|
24401
|
+
Relationships: [];
|
|
24402
|
+
};
|
|
22373
24403
|
imap_accounts: {
|
|
22374
24404
|
Row: {
|
|
22375
24405
|
created_at: string;
|
|
@@ -23057,6 +25087,72 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
23057
25087
|
referencedColumns: ["id"];
|
|
23058
25088
|
}];
|
|
23059
25089
|
};
|
|
25090
|
+
load_carrier_types: {
|
|
25091
|
+
Row: {
|
|
25092
|
+
allow_mixing: boolean;
|
|
25093
|
+
capacity_model: string;
|
|
25094
|
+
code: string;
|
|
25095
|
+
created_at: string;
|
|
25096
|
+
id: string;
|
|
25097
|
+
is_active: boolean;
|
|
25098
|
+
is_default: boolean;
|
|
25099
|
+
layer_length_cm: number;
|
|
25100
|
+
layer_width_cm: number;
|
|
25101
|
+
layers_per_carrier: number;
|
|
25102
|
+
max_boxes: number | null;
|
|
25103
|
+
max_crates_per_layer: number | null;
|
|
25104
|
+
max_customers: number | null;
|
|
25105
|
+
max_height_cm: number | null;
|
|
25106
|
+
max_orders: number | null;
|
|
25107
|
+
max_weight_kg: number | null;
|
|
25108
|
+
name: string;
|
|
25109
|
+
sort_order: number;
|
|
25110
|
+
updated_at: string;
|
|
25111
|
+
};
|
|
25112
|
+
Insert: {
|
|
25113
|
+
allow_mixing?: boolean;
|
|
25114
|
+
capacity_model?: string;
|
|
25115
|
+
code: string;
|
|
25116
|
+
created_at?: string;
|
|
25117
|
+
id?: string;
|
|
25118
|
+
is_active?: boolean;
|
|
25119
|
+
is_default?: boolean;
|
|
25120
|
+
layer_length_cm?: number;
|
|
25121
|
+
layer_width_cm?: number;
|
|
25122
|
+
layers_per_carrier?: number;
|
|
25123
|
+
max_boxes?: number | null;
|
|
25124
|
+
max_crates_per_layer?: number | null;
|
|
25125
|
+
max_customers?: number | null;
|
|
25126
|
+
max_height_cm?: number | null;
|
|
25127
|
+
max_orders?: number | null;
|
|
25128
|
+
max_weight_kg?: number | null;
|
|
25129
|
+
name: string;
|
|
25130
|
+
sort_order?: number;
|
|
25131
|
+
updated_at?: string;
|
|
25132
|
+
};
|
|
25133
|
+
Update: {
|
|
25134
|
+
allow_mixing?: boolean;
|
|
25135
|
+
capacity_model?: string;
|
|
25136
|
+
code?: string;
|
|
25137
|
+
created_at?: string;
|
|
25138
|
+
id?: string;
|
|
25139
|
+
is_active?: boolean;
|
|
25140
|
+
is_default?: boolean;
|
|
25141
|
+
layer_length_cm?: number;
|
|
25142
|
+
layer_width_cm?: number;
|
|
25143
|
+
layers_per_carrier?: number;
|
|
25144
|
+
max_boxes?: number | null;
|
|
25145
|
+
max_crates_per_layer?: number | null;
|
|
25146
|
+
max_customers?: number | null;
|
|
25147
|
+
max_height_cm?: number | null;
|
|
25148
|
+
max_orders?: number | null;
|
|
25149
|
+
max_weight_kg?: number | null;
|
|
25150
|
+
name?: string;
|
|
25151
|
+
sort_order?: number;
|
|
25152
|
+
updated_at?: string;
|
|
25153
|
+
};
|
|
25154
|
+
Relationships: [];
|
|
25155
|
+
};
|
|
23060
25156
|
local_customer_agreements: {
|
|
23061
25157
|
Row: {
|
|
23062
25158
|
base_price: number | null;
|
|
@@ -23387,6 +25483,63 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
23387
25483
|
referencedColumns: ["id"];
|
|
23388
25484
|
}];
|
|
23389
25485
|
};
|
|
25486
|
+
logistics_events: {
|
|
25487
|
+
Row: {
|
|
25488
|
+
created_at: string;
|
|
25489
|
+
error: string | null;
|
|
25490
|
+
event_type: string;
|
|
25491
|
+
id: string;
|
|
25492
|
+
idempotency_key: string | null;
|
|
25493
|
+
order_ref: string;
|
|
25494
|
+
payload: import("../integrations/supabase/types").Json;
|
|
25495
|
+
plan_run_id: string | null;
|
|
25496
|
+
priority: number;
|
|
25497
|
+
processed_at: string | null;
|
|
25498
|
+
shadow: boolean;
|
|
25499
|
+
source_module: string;
|
|
25500
|
+
status: string;
|
|
25501
|
+
strategy_id: string | null;
|
|
25502
|
+
updated_at: string;
|
|
25503
|
+
user_id: string;
|
|
25504
|
+
};
|
|
25505
|
+
Insert: {
|
|
25506
|
+
created_at?: string;
|
|
25507
|
+
error?: string | null;
|
|
25508
|
+
event_type?: string;
|
|
25509
|
+
id?: string;
|
|
25510
|
+
idempotency_key?: string | null;
|
|
25511
|
+
order_ref: string;
|
|
25512
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
25513
|
+
plan_run_id?: string | null;
|
|
25514
|
+
priority?: number;
|
|
25515
|
+
processed_at?: string | null;
|
|
25516
|
+
shadow?: boolean;
|
|
25517
|
+
source_module: string;
|
|
25518
|
+
status?: string;
|
|
25519
|
+
strategy_id?: string | null;
|
|
25520
|
+
updated_at?: string;
|
|
25521
|
+
user_id?: string;
|
|
25522
|
+
};
|
|
25523
|
+
Update: {
|
|
25524
|
+
created_at?: string;
|
|
25525
|
+
error?: string | null;
|
|
25526
|
+
event_type?: string;
|
|
25527
|
+
id?: string;
|
|
25528
|
+
idempotency_key?: string | null;
|
|
25529
|
+
order_ref?: string;
|
|
25530
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
25531
|
+
plan_run_id?: string | null;
|
|
25532
|
+
priority?: number;
|
|
25533
|
+
processed_at?: string | null;
|
|
25534
|
+
shadow?: boolean;
|
|
25535
|
+
source_module?: string;
|
|
25536
|
+
status?: string;
|
|
25537
|
+
strategy_id?: string | null;
|
|
25538
|
+
updated_at?: string;
|
|
25539
|
+
user_id?: string;
|
|
25540
|
+
};
|
|
25541
|
+
Relationships: [];
|
|
25542
|
+
};
|
|
23390
25543
|
logistics_formulas: {
|
|
23391
25544
|
Row: {
|
|
23392
25545
|
created_at: string;
|
|
@@ -23429,27 +25582,297 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
23429
25582
|
referencedColumns: ["id"];
|
|
23430
25583
|
}];
|
|
23431
25584
|
};
|
|
23432
|
-
|
|
25585
|
+
logistics_plan_runs: {
|
|
23433
25586
|
Row: {
|
|
23434
|
-
color: string;
|
|
23435
25587
|
created_at: string;
|
|
23436
|
-
|
|
25588
|
+
error: string | null;
|
|
23437
25589
|
id: string;
|
|
23438
|
-
|
|
23439
|
-
|
|
23440
|
-
|
|
25590
|
+
input: import("../integrations/supabase/types").Json;
|
|
25591
|
+
order_ref: string;
|
|
25592
|
+
rule_config_id: string | null;
|
|
25593
|
+
rule_version: number | null;
|
|
25594
|
+
settings_hash: string | null;
|
|
25595
|
+
settings_snapshot: import("../integrations/supabase/types").Json;
|
|
25596
|
+
source_module: string | null;
|
|
25597
|
+
status: string;
|
|
25598
|
+
strategy_id: string | null;
|
|
25599
|
+
tasks_created: number;
|
|
25600
|
+
tasks_revised: number;
|
|
25601
|
+
trigger: string;
|
|
23441
25602
|
updated_at: string;
|
|
23442
|
-
updated_by: string | null;
|
|
23443
25603
|
user_id: string;
|
|
23444
|
-
|
|
25604
|
+
warnings: import("../integrations/supabase/types").Json;
|
|
23445
25605
|
};
|
|
23446
25606
|
Insert: {
|
|
23447
|
-
color?: string;
|
|
23448
25607
|
created_at?: string;
|
|
23449
|
-
|
|
25608
|
+
error?: string | null;
|
|
23450
25609
|
id?: string;
|
|
23451
|
-
|
|
23452
|
-
|
|
25610
|
+
input?: import("../integrations/supabase/types").Json;
|
|
25611
|
+
order_ref: string;
|
|
25612
|
+
rule_config_id?: string | null;
|
|
25613
|
+
rule_version?: number | null;
|
|
25614
|
+
settings_hash?: string | null;
|
|
25615
|
+
settings_snapshot?: import("../integrations/supabase/types").Json;
|
|
25616
|
+
source_module?: string | null;
|
|
25617
|
+
status?: string;
|
|
25618
|
+
strategy_id?: string | null;
|
|
25619
|
+
tasks_created?: number;
|
|
25620
|
+
tasks_revised?: number;
|
|
25621
|
+
trigger?: string;
|
|
25622
|
+
updated_at?: string;
|
|
25623
|
+
user_id?: string;
|
|
25624
|
+
warnings?: import("../integrations/supabase/types").Json;
|
|
25625
|
+
};
|
|
25626
|
+
Update: {
|
|
25627
|
+
created_at?: string;
|
|
25628
|
+
error?: string | null;
|
|
25629
|
+
id?: string;
|
|
25630
|
+
input?: import("../integrations/supabase/types").Json;
|
|
25631
|
+
order_ref?: string;
|
|
25632
|
+
rule_config_id?: string | null;
|
|
25633
|
+
rule_version?: number | null;
|
|
25634
|
+
settings_hash?: string | null;
|
|
25635
|
+
settings_snapshot?: import("../integrations/supabase/types").Json;
|
|
25636
|
+
source_module?: string | null;
|
|
25637
|
+
status?: string;
|
|
25638
|
+
strategy_id?: string | null;
|
|
25639
|
+
tasks_created?: number;
|
|
25640
|
+
tasks_revised?: number;
|
|
25641
|
+
trigger?: string;
|
|
25642
|
+
updated_at?: string;
|
|
25643
|
+
user_id?: string;
|
|
25644
|
+
warnings?: import("../integrations/supabase/types").Json;
|
|
25645
|
+
};
|
|
25646
|
+
Relationships: [{
|
|
25647
|
+
foreignKeyName: "logistics_plan_runs_rule_config_id_fkey";
|
|
25648
|
+
columns: ["rule_config_id"];
|
|
25649
|
+
isOneToOne: false;
|
|
25650
|
+
referencedRelation: "logistics_rule_configs";
|
|
25651
|
+
referencedColumns: ["id"];
|
|
25652
|
+
}, {
|
|
25653
|
+
foreignKeyName: "logistics_plan_runs_strategy_id_fkey";
|
|
25654
|
+
columns: ["strategy_id"];
|
|
25655
|
+
isOneToOne: false;
|
|
25656
|
+
referencedRelation: "logistics_strategies";
|
|
25657
|
+
referencedColumns: ["id"];
|
|
25658
|
+
}];
|
|
25659
|
+
};
|
|
25660
|
+
logistics_rebuffer_state: {
|
|
25661
|
+
Row: {
|
|
25662
|
+
created_at: string;
|
|
25663
|
+
id: boolean;
|
|
25664
|
+
last_checked: number;
|
|
25665
|
+
last_duration_ms: number;
|
|
25666
|
+
last_run_at: string | null;
|
|
25667
|
+
last_updated: number;
|
|
25668
|
+
pending: boolean;
|
|
25669
|
+
requested_at: string | null;
|
|
25670
|
+
updated_at: string;
|
|
25671
|
+
};
|
|
25672
|
+
Insert: {
|
|
25673
|
+
created_at?: string;
|
|
25674
|
+
id?: boolean;
|
|
25675
|
+
last_checked?: number;
|
|
25676
|
+
last_duration_ms?: number;
|
|
25677
|
+
last_run_at?: string | null;
|
|
25678
|
+
last_updated?: number;
|
|
25679
|
+
pending?: boolean;
|
|
25680
|
+
requested_at?: string | null;
|
|
25681
|
+
updated_at?: string;
|
|
25682
|
+
};
|
|
25683
|
+
Update: {
|
|
25684
|
+
created_at?: string;
|
|
25685
|
+
id?: boolean;
|
|
25686
|
+
last_checked?: number;
|
|
25687
|
+
last_duration_ms?: number;
|
|
25688
|
+
last_run_at?: string | null;
|
|
25689
|
+
last_updated?: number;
|
|
25690
|
+
pending?: boolean;
|
|
25691
|
+
requested_at?: string | null;
|
|
25692
|
+
updated_at?: string;
|
|
25693
|
+
};
|
|
25694
|
+
Relationships: [];
|
|
25695
|
+
};
|
|
25696
|
+
logistics_rule_configs: {
|
|
25697
|
+
Row: {
|
|
25698
|
+
created_at: string;
|
|
25699
|
+
current_version: number;
|
|
25700
|
+
description: string | null;
|
|
25701
|
+
id: string;
|
|
25702
|
+
is_active: boolean;
|
|
25703
|
+
name: string;
|
|
25704
|
+
settings: import("../integrations/supabase/types").Json;
|
|
25705
|
+
status: string;
|
|
25706
|
+
strategy_id: string | null;
|
|
25707
|
+
updated_at: string;
|
|
25708
|
+
user_id: string;
|
|
25709
|
+
};
|
|
25710
|
+
Insert: {
|
|
25711
|
+
created_at?: string;
|
|
25712
|
+
current_version?: number;
|
|
25713
|
+
description?: string | null;
|
|
25714
|
+
id?: string;
|
|
25715
|
+
is_active?: boolean;
|
|
25716
|
+
name: string;
|
|
25717
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
25718
|
+
status?: string;
|
|
25719
|
+
strategy_id?: string | null;
|
|
25720
|
+
updated_at?: string;
|
|
25721
|
+
user_id?: string;
|
|
25722
|
+
};
|
|
25723
|
+
Update: {
|
|
25724
|
+
created_at?: string;
|
|
25725
|
+
current_version?: number;
|
|
25726
|
+
description?: string | null;
|
|
25727
|
+
id?: string;
|
|
25728
|
+
is_active?: boolean;
|
|
25729
|
+
name?: string;
|
|
25730
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
25731
|
+
status?: string;
|
|
25732
|
+
strategy_id?: string | null;
|
|
25733
|
+
updated_at?: string;
|
|
25734
|
+
user_id?: string;
|
|
25735
|
+
};
|
|
25736
|
+
Relationships: [{
|
|
25737
|
+
foreignKeyName: "logistics_rule_configs_strategy_id_fkey";
|
|
25738
|
+
columns: ["strategy_id"];
|
|
25739
|
+
isOneToOne: false;
|
|
25740
|
+
referencedRelation: "logistics_strategies";
|
|
25741
|
+
referencedColumns: ["id"];
|
|
25742
|
+
}];
|
|
25743
|
+
};
|
|
25744
|
+
logistics_rule_versions: {
|
|
25745
|
+
Row: {
|
|
25746
|
+
config_id: string;
|
|
25747
|
+
created_at: string;
|
|
25748
|
+
id: string;
|
|
25749
|
+
label: string | null;
|
|
25750
|
+
note: string | null;
|
|
25751
|
+
settings: import("../integrations/supabase/types").Json;
|
|
25752
|
+
status: string;
|
|
25753
|
+
user_id: string;
|
|
25754
|
+
version: number;
|
|
25755
|
+
};
|
|
25756
|
+
Insert: {
|
|
25757
|
+
config_id: string;
|
|
25758
|
+
created_at?: string;
|
|
25759
|
+
id?: string;
|
|
25760
|
+
label?: string | null;
|
|
25761
|
+
note?: string | null;
|
|
25762
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
25763
|
+
status?: string;
|
|
25764
|
+
user_id?: string;
|
|
25765
|
+
version: number;
|
|
25766
|
+
};
|
|
25767
|
+
Update: {
|
|
25768
|
+
config_id?: string;
|
|
25769
|
+
created_at?: string;
|
|
25770
|
+
id?: string;
|
|
25771
|
+
label?: string | null;
|
|
25772
|
+
note?: string | null;
|
|
25773
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
25774
|
+
status?: string;
|
|
25775
|
+
user_id?: string;
|
|
25776
|
+
version?: number;
|
|
25777
|
+
};
|
|
25778
|
+
Relationships: [{
|
|
25779
|
+
foreignKeyName: "logistics_rule_versions_config_id_fkey";
|
|
25780
|
+
columns: ["config_id"];
|
|
25781
|
+
isOneToOne: false;
|
|
25782
|
+
referencedRelation: "logistics_rule_configs";
|
|
25783
|
+
referencedColumns: ["id"];
|
|
25784
|
+
}];
|
|
25785
|
+
};
|
|
25786
|
+
logistics_stock_alerts: {
|
|
25787
|
+
Row: {
|
|
25788
|
+
created_at: string;
|
|
25789
|
+
customer_name: string | null;
|
|
25790
|
+
delivery_date: string | null;
|
|
25791
|
+
email_enabled: boolean;
|
|
25792
|
+
email_error: string | null;
|
|
25793
|
+
email_outbox_id: string | null;
|
|
25794
|
+
email_recipients: string[];
|
|
25795
|
+
email_sent_at: string | null;
|
|
25796
|
+
email_status: string;
|
|
25797
|
+
id: string;
|
|
25798
|
+
notification_id: string | null;
|
|
25799
|
+
order_id: string | null;
|
|
25800
|
+
order_ref: string;
|
|
25801
|
+
priority: number;
|
|
25802
|
+
resolved_at: string | null;
|
|
25803
|
+
resolved_by: string | null;
|
|
25804
|
+
shortages: import("../integrations/supabase/types").Json;
|
|
25805
|
+
status: string;
|
|
25806
|
+
updated_at: string;
|
|
25807
|
+
user_id: string;
|
|
25808
|
+
};
|
|
25809
|
+
Insert: {
|
|
25810
|
+
created_at?: string;
|
|
25811
|
+
customer_name?: string | null;
|
|
25812
|
+
delivery_date?: string | null;
|
|
25813
|
+
email_enabled?: boolean;
|
|
25814
|
+
email_error?: string | null;
|
|
25815
|
+
email_outbox_id?: string | null;
|
|
25816
|
+
email_recipients?: string[];
|
|
25817
|
+
email_sent_at?: string | null;
|
|
25818
|
+
email_status?: string;
|
|
25819
|
+
id?: string;
|
|
25820
|
+
notification_id?: string | null;
|
|
25821
|
+
order_id?: string | null;
|
|
25822
|
+
order_ref: string;
|
|
25823
|
+
priority?: number;
|
|
25824
|
+
resolved_at?: string | null;
|
|
25825
|
+
resolved_by?: string | null;
|
|
25826
|
+
shortages?: import("../integrations/supabase/types").Json;
|
|
25827
|
+
status?: string;
|
|
25828
|
+
updated_at?: string;
|
|
25829
|
+
user_id: string;
|
|
25830
|
+
};
|
|
25831
|
+
Update: {
|
|
25832
|
+
created_at?: string;
|
|
25833
|
+
customer_name?: string | null;
|
|
25834
|
+
delivery_date?: string | null;
|
|
25835
|
+
email_enabled?: boolean;
|
|
25836
|
+
email_error?: string | null;
|
|
25837
|
+
email_outbox_id?: string | null;
|
|
25838
|
+
email_recipients?: string[];
|
|
25839
|
+
email_sent_at?: string | null;
|
|
25840
|
+
email_status?: string;
|
|
25841
|
+
id?: string;
|
|
25842
|
+
notification_id?: string | null;
|
|
25843
|
+
order_id?: string | null;
|
|
25844
|
+
order_ref?: string;
|
|
25845
|
+
priority?: number;
|
|
25846
|
+
resolved_at?: string | null;
|
|
25847
|
+
resolved_by?: string | null;
|
|
25848
|
+
shortages?: import("../integrations/supabase/types").Json;
|
|
25849
|
+
status?: string;
|
|
25850
|
+
updated_at?: string;
|
|
25851
|
+
user_id?: string;
|
|
25852
|
+
};
|
|
25853
|
+
Relationships: [];
|
|
25854
|
+
};
|
|
25855
|
+
logistics_strategies: {
|
|
25856
|
+
Row: {
|
|
25857
|
+
color: string;
|
|
25858
|
+
created_at: string;
|
|
25859
|
+
description: string | null;
|
|
25860
|
+
id: string;
|
|
25861
|
+
is_active: boolean;
|
|
25862
|
+
name: string;
|
|
25863
|
+
priority: number;
|
|
25864
|
+
updated_at: string;
|
|
25865
|
+
updated_by: string | null;
|
|
25866
|
+
user_id: string;
|
|
25867
|
+
version: number;
|
|
25868
|
+
};
|
|
25869
|
+
Insert: {
|
|
25870
|
+
color?: string;
|
|
25871
|
+
created_at?: string;
|
|
25872
|
+
description?: string | null;
|
|
25873
|
+
id?: string;
|
|
25874
|
+
is_active?: boolean;
|
|
25875
|
+
name: string;
|
|
23453
25876
|
priority?: number;
|
|
23454
25877
|
updated_at?: string;
|
|
23455
25878
|
updated_by?: string | null;
|
|
@@ -23519,6 +25942,114 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
23519
25942
|
referencedColumns: ["id"];
|
|
23520
25943
|
}];
|
|
23521
25944
|
};
|
|
25945
|
+
logistics_tasks: {
|
|
25946
|
+
Row: {
|
|
25947
|
+
buffer_ref: string | null;
|
|
25948
|
+
claimed_at: string | null;
|
|
25949
|
+
claimed_by: string | null;
|
|
25950
|
+
completed_at: string | null;
|
|
25951
|
+
created_at: string;
|
|
25952
|
+
depends_on: string[];
|
|
25953
|
+
due_at: string | null;
|
|
25954
|
+
error: string | null;
|
|
25955
|
+
id: string;
|
|
25956
|
+
order_ref: string;
|
|
25957
|
+
owner_module: string;
|
|
25958
|
+
payload: import("../integrations/supabase/types").Json;
|
|
25959
|
+
plan_run_id: string | null;
|
|
25960
|
+
planned_end: string | null;
|
|
25961
|
+
planned_start: string | null;
|
|
25962
|
+
priority: number;
|
|
25963
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
25964
|
+
rule_config_id: string | null;
|
|
25965
|
+
rule_version: number | null;
|
|
25966
|
+
sequence: number;
|
|
25967
|
+
shadow: boolean;
|
|
25968
|
+
started_at: string | null;
|
|
25969
|
+
status: string;
|
|
25970
|
+
strategy_id: string | null;
|
|
25971
|
+
task_type: string;
|
|
25972
|
+
updated_at: string;
|
|
25973
|
+
user_id: string;
|
|
25974
|
+
};
|
|
25975
|
+
Insert: {
|
|
25976
|
+
buffer_ref?: string | null;
|
|
25977
|
+
claimed_at?: string | null;
|
|
25978
|
+
claimed_by?: string | null;
|
|
25979
|
+
completed_at?: string | null;
|
|
25980
|
+
created_at?: string;
|
|
25981
|
+
depends_on?: string[];
|
|
25982
|
+
due_at?: string | null;
|
|
25983
|
+
error?: string | null;
|
|
25984
|
+
id?: string;
|
|
25985
|
+
order_ref: string;
|
|
25986
|
+
owner_module: string;
|
|
25987
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
25988
|
+
plan_run_id?: string | null;
|
|
25989
|
+
planned_end?: string | null;
|
|
25990
|
+
planned_start?: string | null;
|
|
25991
|
+
priority?: number;
|
|
25992
|
+
result?: import("../integrations/supabase/types").Json | null;
|
|
25993
|
+
rule_config_id?: string | null;
|
|
25994
|
+
rule_version?: number | null;
|
|
25995
|
+
sequence?: number;
|
|
25996
|
+
shadow?: boolean;
|
|
25997
|
+
started_at?: string | null;
|
|
25998
|
+
status?: string;
|
|
25999
|
+
strategy_id?: string | null;
|
|
26000
|
+
task_type: string;
|
|
26001
|
+
updated_at?: string;
|
|
26002
|
+
user_id?: string;
|
|
26003
|
+
};
|
|
26004
|
+
Update: {
|
|
26005
|
+
buffer_ref?: string | null;
|
|
26006
|
+
claimed_at?: string | null;
|
|
26007
|
+
claimed_by?: string | null;
|
|
26008
|
+
completed_at?: string | null;
|
|
26009
|
+
created_at?: string;
|
|
26010
|
+
depends_on?: string[];
|
|
26011
|
+
due_at?: string | null;
|
|
26012
|
+
error?: string | null;
|
|
26013
|
+
id?: string;
|
|
26014
|
+
order_ref?: string;
|
|
26015
|
+
owner_module?: string;
|
|
26016
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
26017
|
+
plan_run_id?: string | null;
|
|
26018
|
+
planned_end?: string | null;
|
|
26019
|
+
planned_start?: string | null;
|
|
26020
|
+
priority?: number;
|
|
26021
|
+
result?: import("../integrations/supabase/types").Json | null;
|
|
26022
|
+
rule_config_id?: string | null;
|
|
26023
|
+
rule_version?: number | null;
|
|
26024
|
+
sequence?: number;
|
|
26025
|
+
shadow?: boolean;
|
|
26026
|
+
started_at?: string | null;
|
|
26027
|
+
status?: string;
|
|
26028
|
+
strategy_id?: string | null;
|
|
26029
|
+
task_type?: string;
|
|
26030
|
+
updated_at?: string;
|
|
26031
|
+
user_id?: string;
|
|
26032
|
+
};
|
|
26033
|
+
Relationships: [{
|
|
26034
|
+
foreignKeyName: "logistics_tasks_plan_run_id_fkey";
|
|
26035
|
+
columns: ["plan_run_id"];
|
|
26036
|
+
isOneToOne: false;
|
|
26037
|
+
referencedRelation: "logistics_plan_runs";
|
|
26038
|
+
referencedColumns: ["id"];
|
|
26039
|
+
}, {
|
|
26040
|
+
foreignKeyName: "logistics_tasks_rule_config_id_fkey";
|
|
26041
|
+
columns: ["rule_config_id"];
|
|
26042
|
+
isOneToOne: false;
|
|
26043
|
+
referencedRelation: "logistics_rule_configs";
|
|
26044
|
+
referencedColumns: ["id"];
|
|
26045
|
+
}, {
|
|
26046
|
+
foreignKeyName: "logistics_tasks_strategy_id_fkey";
|
|
26047
|
+
columns: ["strategy_id"];
|
|
26048
|
+
isOneToOne: false;
|
|
26049
|
+
referencedRelation: "logistics_strategies";
|
|
26050
|
+
referencedColumns: ["id"];
|
|
26051
|
+
}];
|
|
26052
|
+
};
|
|
23522
26053
|
logistics_variables: {
|
|
23523
26054
|
Row: {
|
|
23524
26055
|
created_at: string;
|
|
@@ -24113,6 +26644,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
24113
26644
|
};
|
|
24114
26645
|
Relationships: [];
|
|
24115
26646
|
};
|
|
26647
|
+
module_runtime_config: {
|
|
26648
|
+
Row: {
|
|
26649
|
+
key: string;
|
|
26650
|
+
updated_at: string;
|
|
26651
|
+
value: string;
|
|
26652
|
+
};
|
|
26653
|
+
Insert: {
|
|
26654
|
+
key: string;
|
|
26655
|
+
updated_at?: string;
|
|
26656
|
+
value: string;
|
|
26657
|
+
};
|
|
26658
|
+
Update: {
|
|
26659
|
+
key?: string;
|
|
26660
|
+
updated_at?: string;
|
|
26661
|
+
value?: string;
|
|
26662
|
+
};
|
|
26663
|
+
Relationships: [];
|
|
26664
|
+
};
|
|
24116
26665
|
modules: {
|
|
24117
26666
|
Row: {
|
|
24118
26667
|
created_at: string;
|
|
@@ -24913,6 +27462,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
24913
27462
|
};
|
|
24914
27463
|
order_cart_items: {
|
|
24915
27464
|
Row: {
|
|
27465
|
+
boxes: number | null;
|
|
24916
27466
|
cart_id: string;
|
|
24917
27467
|
crates: number;
|
|
24918
27468
|
crates_per_layer: number;
|
|
@@ -24925,8 +27475,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
24925
27475
|
plants_per_crate: number;
|
|
24926
27476
|
product_id: string | null;
|
|
24927
27477
|
product_name: string;
|
|
27478
|
+
weight_kg: number | null;
|
|
24928
27479
|
};
|
|
24929
27480
|
Insert: {
|
|
27481
|
+
boxes?: number | null;
|
|
24930
27482
|
cart_id: string;
|
|
24931
27483
|
crates: number;
|
|
24932
27484
|
crates_per_layer?: number;
|
|
@@ -24939,8 +27491,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
24939
27491
|
plants_per_crate?: number;
|
|
24940
27492
|
product_id?: string | null;
|
|
24941
27493
|
product_name: string;
|
|
27494
|
+
weight_kg?: number | null;
|
|
24942
27495
|
};
|
|
24943
27496
|
Update: {
|
|
27497
|
+
boxes?: number | null;
|
|
24944
27498
|
cart_id?: string;
|
|
24945
27499
|
crates?: number;
|
|
24946
27500
|
crates_per_layer?: number;
|
|
@@ -24953,6 +27507,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
24953
27507
|
plants_per_crate?: number;
|
|
24954
27508
|
product_id?: string | null;
|
|
24955
27509
|
product_name?: string;
|
|
27510
|
+
weight_kg?: number | null;
|
|
24956
27511
|
};
|
|
24957
27512
|
Relationships: [{
|
|
24958
27513
|
foreignKeyName: "order_cart_items_cart_id_fkey";
|
|
@@ -24978,47 +27533,59 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
24978
27533
|
Row: {
|
|
24979
27534
|
algorithm_version: number;
|
|
24980
27535
|
buffer_id: string | null;
|
|
27536
|
+
carrier_type: string;
|
|
27537
|
+
carrier_type_id: string | null;
|
|
24981
27538
|
cart_number: number;
|
|
24982
27539
|
created_at: string;
|
|
24983
27540
|
id: string;
|
|
24984
27541
|
is_auto: boolean;
|
|
24985
27542
|
is_complete: boolean;
|
|
27543
|
+
max_layers: number | null;
|
|
24986
27544
|
notes: string | null;
|
|
24987
27545
|
occupancy_pct: number;
|
|
24988
27546
|
order_id: string | null;
|
|
24989
27547
|
source: string;
|
|
24990
27548
|
total_layers_used: number;
|
|
24991
27549
|
updated_at: string;
|
|
27550
|
+
weight_kg: number | null;
|
|
24992
27551
|
};
|
|
24993
27552
|
Insert: {
|
|
24994
27553
|
algorithm_version?: number;
|
|
24995
27554
|
buffer_id?: string | null;
|
|
27555
|
+
carrier_type?: string;
|
|
27556
|
+
carrier_type_id?: string | null;
|
|
24996
27557
|
cart_number: number;
|
|
24997
27558
|
created_at?: string;
|
|
24998
27559
|
id?: string;
|
|
24999
27560
|
is_auto?: boolean;
|
|
25000
27561
|
is_complete?: boolean;
|
|
27562
|
+
max_layers?: number | null;
|
|
25001
27563
|
notes?: string | null;
|
|
25002
27564
|
occupancy_pct?: number;
|
|
25003
27565
|
order_id?: string | null;
|
|
25004
27566
|
source?: string;
|
|
25005
27567
|
total_layers_used?: number;
|
|
25006
27568
|
updated_at?: string;
|
|
27569
|
+
weight_kg?: number | null;
|
|
25007
27570
|
};
|
|
25008
27571
|
Update: {
|
|
25009
27572
|
algorithm_version?: number;
|
|
25010
27573
|
buffer_id?: string | null;
|
|
27574
|
+
carrier_type?: string;
|
|
27575
|
+
carrier_type_id?: string | null;
|
|
25011
27576
|
cart_number?: number;
|
|
25012
27577
|
created_at?: string;
|
|
25013
27578
|
id?: string;
|
|
25014
27579
|
is_auto?: boolean;
|
|
25015
27580
|
is_complete?: boolean;
|
|
27581
|
+
max_layers?: number | null;
|
|
25016
27582
|
notes?: string | null;
|
|
25017
27583
|
occupancy_pct?: number;
|
|
25018
27584
|
order_id?: string | null;
|
|
25019
27585
|
source?: string;
|
|
25020
27586
|
total_layers_used?: number;
|
|
25021
27587
|
updated_at?: string;
|
|
27588
|
+
weight_kg?: number | null;
|
|
25022
27589
|
};
|
|
25023
27590
|
Relationships: [{
|
|
25024
27591
|
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
@@ -25026,6 +27593,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
25026
27593
|
isOneToOne: false;
|
|
25027
27594
|
referencedRelation: "order_buffers";
|
|
25028
27595
|
referencedColumns: ["id"];
|
|
27596
|
+
}, {
|
|
27597
|
+
foreignKeyName: "order_carts_carrier_type_id_fkey";
|
|
27598
|
+
columns: ["carrier_type_id"];
|
|
27599
|
+
isOneToOne: false;
|
|
27600
|
+
referencedRelation: "load_carrier_types";
|
|
27601
|
+
referencedColumns: ["id"];
|
|
25029
27602
|
}, {
|
|
25030
27603
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
25031
27604
|
columns: ["order_id"];
|
|
@@ -26165,6 +28738,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
26165
28738
|
lock_timeout_seconds: number;
|
|
26166
28739
|
name: string;
|
|
26167
28740
|
require_country_selection: boolean;
|
|
28741
|
+
slug: string | null;
|
|
26168
28742
|
sort_order: number;
|
|
26169
28743
|
sort_rules: import("../integrations/supabase/types").Json;
|
|
26170
28744
|
task_id: string | null;
|
|
@@ -26185,6 +28759,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
26185
28759
|
lock_timeout_seconds?: number;
|
|
26186
28760
|
name: string;
|
|
26187
28761
|
require_country_selection?: boolean;
|
|
28762
|
+
slug?: string | null;
|
|
26188
28763
|
sort_order?: number;
|
|
26189
28764
|
sort_rules?: import("../integrations/supabase/types").Json;
|
|
26190
28765
|
task_id?: string | null;
|
|
@@ -26205,6 +28780,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
26205
28780
|
lock_timeout_seconds?: number;
|
|
26206
28781
|
name?: string;
|
|
26207
28782
|
require_country_selection?: boolean;
|
|
28783
|
+
slug?: string | null;
|
|
26208
28784
|
sort_order?: number;
|
|
26209
28785
|
sort_rules?: import("../integrations/supabase/types").Json;
|
|
26210
28786
|
task_id?: string | null;
|
|
@@ -26738,6 +29314,54 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
26738
29314
|
};
|
|
26739
29315
|
Relationships: [];
|
|
26740
29316
|
};
|
|
29317
|
+
product_bom_external_items: {
|
|
29318
|
+
Row: {
|
|
29319
|
+
created_at: string;
|
|
29320
|
+
id: string;
|
|
29321
|
+
name: string;
|
|
29322
|
+
packing_configuration_id: string | null;
|
|
29323
|
+
parent_product_id: string | null;
|
|
29324
|
+
parent_trade_item_floriday_id: string | null;
|
|
29325
|
+
quantity: number;
|
|
29326
|
+
sort_order: number;
|
|
29327
|
+
tenant_id: string;
|
|
29328
|
+
unit: string;
|
|
29329
|
+
updated_at: string;
|
|
29330
|
+
};
|
|
29331
|
+
Insert: {
|
|
29332
|
+
created_at?: string;
|
|
29333
|
+
id?: string;
|
|
29334
|
+
name: string;
|
|
29335
|
+
packing_configuration_id?: string | null;
|
|
29336
|
+
parent_product_id?: string | null;
|
|
29337
|
+
parent_trade_item_floriday_id?: string | null;
|
|
29338
|
+
quantity?: number;
|
|
29339
|
+
sort_order?: number;
|
|
29340
|
+
tenant_id: string;
|
|
29341
|
+
unit?: string;
|
|
29342
|
+
updated_at?: string;
|
|
29343
|
+
};
|
|
29344
|
+
Update: {
|
|
29345
|
+
created_at?: string;
|
|
29346
|
+
id?: string;
|
|
29347
|
+
name?: string;
|
|
29348
|
+
packing_configuration_id?: string | null;
|
|
29349
|
+
parent_product_id?: string | null;
|
|
29350
|
+
parent_trade_item_floriday_id?: string | null;
|
|
29351
|
+
quantity?: number;
|
|
29352
|
+
sort_order?: number;
|
|
29353
|
+
tenant_id?: string;
|
|
29354
|
+
unit?: string;
|
|
29355
|
+
updated_at?: string;
|
|
29356
|
+
};
|
|
29357
|
+
Relationships: [{
|
|
29358
|
+
foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
|
|
29359
|
+
columns: ["parent_product_id"];
|
|
29360
|
+
isOneToOne: false;
|
|
29361
|
+
referencedRelation: "products";
|
|
29362
|
+
referencedColumns: ["id"];
|
|
29363
|
+
}];
|
|
29364
|
+
};
|
|
26741
29365
|
product_bom_items: {
|
|
26742
29366
|
Row: {
|
|
26743
29367
|
component_product_id: string | null;
|
|
@@ -27974,6 +30598,270 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
27974
30598
|
};
|
|
27975
30599
|
Relationships: [];
|
|
27976
30600
|
};
|
|
30601
|
+
scan_kar_items: {
|
|
30602
|
+
Row: {
|
|
30603
|
+
barcode: string;
|
|
30604
|
+
id: string;
|
|
30605
|
+
kar_id: string;
|
|
30606
|
+
pakbon_id: string;
|
|
30607
|
+
pakbon_item_id: string;
|
|
30608
|
+
product_id: string | null;
|
|
30609
|
+
product_name: string;
|
|
30610
|
+
quantity: number;
|
|
30611
|
+
scanned_at: string;
|
|
30612
|
+
scanned_by: string | null;
|
|
30613
|
+
};
|
|
30614
|
+
Insert: {
|
|
30615
|
+
barcode: string;
|
|
30616
|
+
id?: string;
|
|
30617
|
+
kar_id: string;
|
|
30618
|
+
pakbon_id: string;
|
|
30619
|
+
pakbon_item_id: string;
|
|
30620
|
+
product_id?: string | null;
|
|
30621
|
+
product_name: string;
|
|
30622
|
+
quantity?: number;
|
|
30623
|
+
scanned_at?: string;
|
|
30624
|
+
scanned_by?: string | null;
|
|
30625
|
+
};
|
|
30626
|
+
Update: {
|
|
30627
|
+
barcode?: string;
|
|
30628
|
+
id?: string;
|
|
30629
|
+
kar_id?: string;
|
|
30630
|
+
pakbon_id?: string;
|
|
30631
|
+
pakbon_item_id?: string;
|
|
30632
|
+
product_id?: string | null;
|
|
30633
|
+
product_name?: string;
|
|
30634
|
+
quantity?: number;
|
|
30635
|
+
scanned_at?: string;
|
|
30636
|
+
scanned_by?: string | null;
|
|
30637
|
+
};
|
|
30638
|
+
Relationships: [{
|
|
30639
|
+
foreignKeyName: "scan_kar_items_kar_id_fkey";
|
|
30640
|
+
columns: ["kar_id"];
|
|
30641
|
+
isOneToOne: false;
|
|
30642
|
+
referencedRelation: "scan_karren";
|
|
30643
|
+
referencedColumns: ["id"];
|
|
30644
|
+
}, {
|
|
30645
|
+
foreignKeyName: "scan_kar_items_pakbon_id_fkey";
|
|
30646
|
+
columns: ["pakbon_id"];
|
|
30647
|
+
isOneToOne: false;
|
|
30648
|
+
referencedRelation: "scan_pakbonnen";
|
|
30649
|
+
referencedColumns: ["id"];
|
|
30650
|
+
}, {
|
|
30651
|
+
foreignKeyName: "scan_kar_items_pakbon_item_id_fkey";
|
|
30652
|
+
columns: ["pakbon_item_id"];
|
|
30653
|
+
isOneToOne: false;
|
|
30654
|
+
referencedRelation: "scan_pakbon_items";
|
|
30655
|
+
referencedColumns: ["id"];
|
|
30656
|
+
}];
|
|
30657
|
+
};
|
|
30658
|
+
scan_kar_pakbonnen: {
|
|
30659
|
+
Row: {
|
|
30660
|
+
created_at: string;
|
|
30661
|
+
id: string;
|
|
30662
|
+
kar_id: string;
|
|
30663
|
+
pakbon_id: string;
|
|
30664
|
+
};
|
|
30665
|
+
Insert: {
|
|
30666
|
+
created_at?: string;
|
|
30667
|
+
id?: string;
|
|
30668
|
+
kar_id: string;
|
|
30669
|
+
pakbon_id: string;
|
|
30670
|
+
};
|
|
30671
|
+
Update: {
|
|
30672
|
+
created_at?: string;
|
|
30673
|
+
id?: string;
|
|
30674
|
+
kar_id?: string;
|
|
30675
|
+
pakbon_id?: string;
|
|
30676
|
+
};
|
|
30677
|
+
Relationships: [{
|
|
30678
|
+
foreignKeyName: "scan_kar_pakbonnen_kar_id_fkey";
|
|
30679
|
+
columns: ["kar_id"];
|
|
30680
|
+
isOneToOne: false;
|
|
30681
|
+
referencedRelation: "scan_karren";
|
|
30682
|
+
referencedColumns: ["id"];
|
|
30683
|
+
}, {
|
|
30684
|
+
foreignKeyName: "scan_kar_pakbonnen_pakbon_id_fkey";
|
|
30685
|
+
columns: ["pakbon_id"];
|
|
30686
|
+
isOneToOne: false;
|
|
30687
|
+
referencedRelation: "scan_pakbonnen";
|
|
30688
|
+
referencedColumns: ["id"];
|
|
30689
|
+
}];
|
|
30690
|
+
};
|
|
30691
|
+
scan_karren: {
|
|
30692
|
+
Row: {
|
|
30693
|
+
afgerond_op: string | null;
|
|
30694
|
+
buffer_key: string | null;
|
|
30695
|
+
created_at: string;
|
|
30696
|
+
customer_names: string[];
|
|
30697
|
+
geprint: boolean;
|
|
30698
|
+
geprint_op: string | null;
|
|
30699
|
+
id: string;
|
|
30700
|
+
kar_nummer: string;
|
|
30701
|
+
medewerker_id: string | null;
|
|
30702
|
+
medewerker_naam: string | null;
|
|
30703
|
+
naar_pickstation: boolean;
|
|
30704
|
+
naar_pickstation_op: string | null;
|
|
30705
|
+
order_number: string | null;
|
|
30706
|
+
scanner_key: string;
|
|
30707
|
+
status: string;
|
|
30708
|
+
totaal_producten: number;
|
|
30709
|
+
updated_at: string;
|
|
30710
|
+
};
|
|
30711
|
+
Insert: {
|
|
30712
|
+
afgerond_op?: string | null;
|
|
30713
|
+
buffer_key?: string | null;
|
|
30714
|
+
created_at?: string;
|
|
30715
|
+
customer_names?: string[];
|
|
30716
|
+
geprint?: boolean;
|
|
30717
|
+
geprint_op?: string | null;
|
|
30718
|
+
id?: string;
|
|
30719
|
+
kar_nummer?: string;
|
|
30720
|
+
medewerker_id?: string | null;
|
|
30721
|
+
medewerker_naam?: string | null;
|
|
30722
|
+
naar_pickstation?: boolean;
|
|
30723
|
+
naar_pickstation_op?: string | null;
|
|
30724
|
+
order_number?: string | null;
|
|
30725
|
+
scanner_key?: string;
|
|
30726
|
+
status?: string;
|
|
30727
|
+
totaal_producten?: number;
|
|
30728
|
+
updated_at?: string;
|
|
30729
|
+
};
|
|
30730
|
+
Update: {
|
|
30731
|
+
afgerond_op?: string | null;
|
|
30732
|
+
buffer_key?: string | null;
|
|
30733
|
+
created_at?: string;
|
|
30734
|
+
customer_names?: string[];
|
|
30735
|
+
geprint?: boolean;
|
|
30736
|
+
geprint_op?: string | null;
|
|
30737
|
+
id?: string;
|
|
30738
|
+
kar_nummer?: string;
|
|
30739
|
+
medewerker_id?: string | null;
|
|
30740
|
+
medewerker_naam?: string | null;
|
|
30741
|
+
naar_pickstation?: boolean;
|
|
30742
|
+
naar_pickstation_op?: string | null;
|
|
30743
|
+
order_number?: string | null;
|
|
30744
|
+
scanner_key?: string;
|
|
30745
|
+
status?: string;
|
|
30746
|
+
totaal_producten?: number;
|
|
30747
|
+
updated_at?: string;
|
|
30748
|
+
};
|
|
30749
|
+
Relationships: [];
|
|
30750
|
+
};
|
|
30751
|
+
scan_logs: {
|
|
30752
|
+
Row: {
|
|
30753
|
+
code: string;
|
|
30754
|
+
created_at: string;
|
|
30755
|
+
id: string;
|
|
30756
|
+
kar_id: string | null;
|
|
30757
|
+
message: string | null;
|
|
30758
|
+
result: string;
|
|
30759
|
+
scanner_key: string;
|
|
30760
|
+
user_id: string | null;
|
|
30761
|
+
};
|
|
30762
|
+
Insert: {
|
|
30763
|
+
code: string;
|
|
30764
|
+
created_at?: string;
|
|
30765
|
+
id?: string;
|
|
30766
|
+
kar_id?: string | null;
|
|
30767
|
+
message?: string | null;
|
|
30768
|
+
result: string;
|
|
30769
|
+
scanner_key?: string;
|
|
30770
|
+
user_id?: string | null;
|
|
30771
|
+
};
|
|
30772
|
+
Update: {
|
|
30773
|
+
code?: string;
|
|
30774
|
+
created_at?: string;
|
|
30775
|
+
id?: string;
|
|
30776
|
+
kar_id?: string | null;
|
|
30777
|
+
message?: string | null;
|
|
30778
|
+
result?: string;
|
|
30779
|
+
scanner_key?: string;
|
|
30780
|
+
user_id?: string | null;
|
|
30781
|
+
};
|
|
30782
|
+
Relationships: [];
|
|
30783
|
+
};
|
|
30784
|
+
scan_pakbon_items: {
|
|
30785
|
+
Row: {
|
|
30786
|
+
barcode: string;
|
|
30787
|
+
created_at: string;
|
|
30788
|
+
id: string;
|
|
30789
|
+
pakbon_id: string;
|
|
30790
|
+
product_id: string | null;
|
|
30791
|
+
product_name: string;
|
|
30792
|
+
quantity: number;
|
|
30793
|
+
scanned_quantity: number;
|
|
30794
|
+
};
|
|
30795
|
+
Insert: {
|
|
30796
|
+
barcode: string;
|
|
30797
|
+
created_at?: string;
|
|
30798
|
+
id?: string;
|
|
30799
|
+
pakbon_id: string;
|
|
30800
|
+
product_id?: string | null;
|
|
30801
|
+
product_name: string;
|
|
30802
|
+
quantity?: number;
|
|
30803
|
+
scanned_quantity?: number;
|
|
30804
|
+
};
|
|
30805
|
+
Update: {
|
|
30806
|
+
barcode?: string;
|
|
30807
|
+
created_at?: string;
|
|
30808
|
+
id?: string;
|
|
30809
|
+
pakbon_id?: string;
|
|
30810
|
+
product_id?: string | null;
|
|
30811
|
+
product_name?: string;
|
|
30812
|
+
quantity?: number;
|
|
30813
|
+
scanned_quantity?: number;
|
|
30814
|
+
};
|
|
30815
|
+
Relationships: [{
|
|
30816
|
+
foreignKeyName: "scan_pakbon_items_pakbon_id_fkey";
|
|
30817
|
+
columns: ["pakbon_id"];
|
|
30818
|
+
isOneToOne: false;
|
|
30819
|
+
referencedRelation: "scan_pakbonnen";
|
|
30820
|
+
referencedColumns: ["id"];
|
|
30821
|
+
}];
|
|
30822
|
+
};
|
|
30823
|
+
scan_pakbonnen: {
|
|
30824
|
+
Row: {
|
|
30825
|
+
barcode: string;
|
|
30826
|
+
buffer_key: string | null;
|
|
30827
|
+
created_at: string;
|
|
30828
|
+
customer_name: string;
|
|
30829
|
+
id: string;
|
|
30830
|
+
order_id: string | null;
|
|
30831
|
+
order_number: string;
|
|
30832
|
+
pakbon_nummer: string;
|
|
30833
|
+
printed_at: string;
|
|
30834
|
+
status: string;
|
|
30835
|
+
updated_at: string;
|
|
30836
|
+
};
|
|
30837
|
+
Insert: {
|
|
30838
|
+
barcode: string;
|
|
30839
|
+
buffer_key?: string | null;
|
|
30840
|
+
created_at?: string;
|
|
30841
|
+
customer_name: string;
|
|
30842
|
+
id?: string;
|
|
30843
|
+
order_id?: string | null;
|
|
30844
|
+
order_number: string;
|
|
30845
|
+
pakbon_nummer: string;
|
|
30846
|
+
printed_at?: string;
|
|
30847
|
+
status?: string;
|
|
30848
|
+
updated_at?: string;
|
|
30849
|
+
};
|
|
30850
|
+
Update: {
|
|
30851
|
+
barcode?: string;
|
|
30852
|
+
buffer_key?: string | null;
|
|
30853
|
+
created_at?: string;
|
|
30854
|
+
customer_name?: string;
|
|
30855
|
+
id?: string;
|
|
30856
|
+
order_id?: string | null;
|
|
30857
|
+
order_number?: string;
|
|
30858
|
+
pakbon_nummer?: string;
|
|
30859
|
+
printed_at?: string;
|
|
30860
|
+
status?: string;
|
|
30861
|
+
updated_at?: string;
|
|
30862
|
+
};
|
|
30863
|
+
Relationships: [];
|
|
30864
|
+
};
|
|
27977
30865
|
sidebar_config: {
|
|
27978
30866
|
Row: {
|
|
27979
30867
|
id: string;
|
|
@@ -28652,6 +31540,24 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
28652
31540
|
};
|
|
28653
31541
|
Relationships: [];
|
|
28654
31542
|
};
|
|
31543
|
+
twinfield_cron_auth: {
|
|
31544
|
+
Row: {
|
|
31545
|
+
created_at: string;
|
|
31546
|
+
id: number;
|
|
31547
|
+
secret: string;
|
|
31548
|
+
};
|
|
31549
|
+
Insert: {
|
|
31550
|
+
created_at?: string;
|
|
31551
|
+
id?: number;
|
|
31552
|
+
secret?: string;
|
|
31553
|
+
};
|
|
31554
|
+
Update: {
|
|
31555
|
+
created_at?: string;
|
|
31556
|
+
id?: number;
|
|
31557
|
+
secret?: string;
|
|
31558
|
+
};
|
|
31559
|
+
Relationships: [];
|
|
31560
|
+
};
|
|
28655
31561
|
twinfield_customers: {
|
|
28656
31562
|
Row: {
|
|
28657
31563
|
address: string | null;
|
|
@@ -28913,6 +31819,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
28913
31819
|
default_invoice_type: string;
|
|
28914
31820
|
default_payment_term_days: number;
|
|
28915
31821
|
default_vat_code: string;
|
|
31822
|
+
home_country_code: string;
|
|
28916
31823
|
invoice_enabled_ao: boolean;
|
|
28917
31824
|
invoice_enabled_fo: boolean;
|
|
28918
31825
|
invoice_enabled_ho: boolean;
|
|
@@ -28921,6 +31828,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
28921
31828
|
payment_journal_code: string;
|
|
28922
31829
|
updated_at: string;
|
|
28923
31830
|
user_id: string;
|
|
31831
|
+
vat_code_eu_reverse: string | null;
|
|
31832
|
+
vat_code_export: string | null;
|
|
28924
31833
|
};
|
|
28925
31834
|
Insert: {
|
|
28926
31835
|
created_at?: string;
|
|
@@ -28930,6 +31839,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
28930
31839
|
default_invoice_type?: string;
|
|
28931
31840
|
default_payment_term_days?: number;
|
|
28932
31841
|
default_vat_code?: string;
|
|
31842
|
+
home_country_code?: string;
|
|
28933
31843
|
invoice_enabled_ao?: boolean;
|
|
28934
31844
|
invoice_enabled_fo?: boolean;
|
|
28935
31845
|
invoice_enabled_ho?: boolean;
|
|
@@ -28938,6 +31848,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
28938
31848
|
payment_journal_code?: string;
|
|
28939
31849
|
updated_at?: string;
|
|
28940
31850
|
user_id: string;
|
|
31851
|
+
vat_code_eu_reverse?: string | null;
|
|
31852
|
+
vat_code_export?: string | null;
|
|
28941
31853
|
};
|
|
28942
31854
|
Update: {
|
|
28943
31855
|
created_at?: string;
|
|
@@ -28947,6 +31859,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
28947
31859
|
default_invoice_type?: string;
|
|
28948
31860
|
default_payment_term_days?: number;
|
|
28949
31861
|
default_vat_code?: string;
|
|
31862
|
+
home_country_code?: string;
|
|
28950
31863
|
invoice_enabled_ao?: boolean;
|
|
28951
31864
|
invoice_enabled_fo?: boolean;
|
|
28952
31865
|
invoice_enabled_ho?: boolean;
|
|
@@ -28955,6 +31868,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
28955
31868
|
payment_journal_code?: string;
|
|
28956
31869
|
updated_at?: string;
|
|
28957
31870
|
user_id?: string;
|
|
31871
|
+
vat_code_eu_reverse?: string | null;
|
|
31872
|
+
vat_code_export?: string | null;
|
|
28958
31873
|
};
|
|
28959
31874
|
Relationships: [];
|
|
28960
31875
|
};
|
|
@@ -29156,11 +32071,89 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
29156
32071
|
referencedColumns: ["id"];
|
|
29157
32072
|
}];
|
|
29158
32073
|
};
|
|
32074
|
+
twinfield_ledger_accounts_cache: {
|
|
32075
|
+
Row: {
|
|
32076
|
+
code: string;
|
|
32077
|
+
connection_id: string | null;
|
|
32078
|
+
created_at: string;
|
|
32079
|
+
dim_type: string;
|
|
32080
|
+
fetched_at: string;
|
|
32081
|
+
id: string;
|
|
32082
|
+
is_active: boolean;
|
|
32083
|
+
name: string | null;
|
|
32084
|
+
office_code: string;
|
|
32085
|
+
updated_at: string;
|
|
32086
|
+
};
|
|
32087
|
+
Insert: {
|
|
32088
|
+
code: string;
|
|
32089
|
+
connection_id?: string | null;
|
|
32090
|
+
created_at?: string;
|
|
32091
|
+
dim_type?: string;
|
|
32092
|
+
fetched_at?: string;
|
|
32093
|
+
id?: string;
|
|
32094
|
+
is_active?: boolean;
|
|
32095
|
+
name?: string | null;
|
|
32096
|
+
office_code: string;
|
|
32097
|
+
updated_at?: string;
|
|
32098
|
+
};
|
|
32099
|
+
Update: {
|
|
32100
|
+
code?: string;
|
|
32101
|
+
connection_id?: string | null;
|
|
32102
|
+
created_at?: string;
|
|
32103
|
+
dim_type?: string;
|
|
32104
|
+
fetched_at?: string;
|
|
32105
|
+
id?: string;
|
|
32106
|
+
is_active?: boolean;
|
|
32107
|
+
name?: string | null;
|
|
32108
|
+
office_code?: string;
|
|
32109
|
+
updated_at?: string;
|
|
32110
|
+
};
|
|
32111
|
+
Relationships: [];
|
|
32112
|
+
};
|
|
32113
|
+
twinfield_push_log: {
|
|
32114
|
+
Row: {
|
|
32115
|
+
created_at: string;
|
|
32116
|
+
customer_id: string | null;
|
|
32117
|
+
id: string;
|
|
32118
|
+
message: string | null;
|
|
32119
|
+
office_code: string | null;
|
|
32120
|
+
ok: boolean;
|
|
32121
|
+
queue_id: string | null;
|
|
32122
|
+
request_xml: string | null;
|
|
32123
|
+
response_raw: string | null;
|
|
32124
|
+
twinfield_code: string | null;
|
|
32125
|
+
};
|
|
32126
|
+
Insert: {
|
|
32127
|
+
created_at?: string;
|
|
32128
|
+
customer_id?: string | null;
|
|
32129
|
+
id?: string;
|
|
32130
|
+
message?: string | null;
|
|
32131
|
+
office_code?: string | null;
|
|
32132
|
+
ok?: boolean;
|
|
32133
|
+
queue_id?: string | null;
|
|
32134
|
+
request_xml?: string | null;
|
|
32135
|
+
response_raw?: string | null;
|
|
32136
|
+
twinfield_code?: string | null;
|
|
32137
|
+
};
|
|
32138
|
+
Update: {
|
|
32139
|
+
created_at?: string;
|
|
32140
|
+
customer_id?: string | null;
|
|
32141
|
+
id?: string;
|
|
32142
|
+
message?: string | null;
|
|
32143
|
+
office_code?: string | null;
|
|
32144
|
+
ok?: boolean;
|
|
32145
|
+
queue_id?: string | null;
|
|
32146
|
+
request_xml?: string | null;
|
|
32147
|
+
response_raw?: string | null;
|
|
32148
|
+
twinfield_code?: string | null;
|
|
32149
|
+
};
|
|
32150
|
+
Relationships: [];
|
|
32151
|
+
};
|
|
29159
32152
|
twinfield_push_queue: {
|
|
29160
32153
|
Row: {
|
|
29161
32154
|
action: string;
|
|
29162
32155
|
attempts: number;
|
|
29163
|
-
connection_id: string;
|
|
32156
|
+
connection_id: string | null;
|
|
29164
32157
|
created_at: string;
|
|
29165
32158
|
customer_id: string | null;
|
|
29166
32159
|
external_id: string | null;
|
|
@@ -29176,7 +32169,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
29176
32169
|
Insert: {
|
|
29177
32170
|
action?: string;
|
|
29178
32171
|
attempts?: number;
|
|
29179
|
-
connection_id
|
|
32172
|
+
connection_id?: string | null;
|
|
29180
32173
|
created_at?: string;
|
|
29181
32174
|
customer_id?: string | null;
|
|
29182
32175
|
external_id?: string | null;
|
|
@@ -29192,7 +32185,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
29192
32185
|
Update: {
|
|
29193
32186
|
action?: string;
|
|
29194
32187
|
attempts?: number;
|
|
29195
|
-
connection_id?: string;
|
|
32188
|
+
connection_id?: string | null;
|
|
29196
32189
|
created_at?: string;
|
|
29197
32190
|
customer_id?: string | null;
|
|
29198
32191
|
external_id?: string | null;
|
|
@@ -29246,6 +32239,27 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
29246
32239
|
};
|
|
29247
32240
|
Relationships: [];
|
|
29248
32241
|
};
|
|
32242
|
+
twinfield_revoked_accounts: {
|
|
32243
|
+
Row: {
|
|
32244
|
+
account_key: string;
|
|
32245
|
+
last_revoke_error: string | null;
|
|
32246
|
+
revoked_at: string;
|
|
32247
|
+
user_id: string;
|
|
32248
|
+
};
|
|
32249
|
+
Insert: {
|
|
32250
|
+
account_key: string;
|
|
32251
|
+
last_revoke_error?: string | null;
|
|
32252
|
+
revoked_at?: string;
|
|
32253
|
+
user_id: string;
|
|
32254
|
+
};
|
|
32255
|
+
Update: {
|
|
32256
|
+
account_key?: string;
|
|
32257
|
+
last_revoke_error?: string | null;
|
|
32258
|
+
revoked_at?: string;
|
|
32259
|
+
user_id?: string;
|
|
32260
|
+
};
|
|
32261
|
+
Relationships: [];
|
|
32262
|
+
};
|
|
29249
32263
|
twinfield_session_cache: {
|
|
29250
32264
|
Row: {
|
|
29251
32265
|
cluster: string;
|
|
@@ -29499,7 +32513,163 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
29499
32513
|
trade_item_id?: string | null;
|
|
29500
32514
|
user_id?: string;
|
|
29501
32515
|
};
|
|
29502
|
-
Relationships: [];
|
|
32516
|
+
Relationships: [];
|
|
32517
|
+
};
|
|
32518
|
+
voorraad_publish_jobs: {
|
|
32519
|
+
Row: {
|
|
32520
|
+
connection_id: string | null;
|
|
32521
|
+
created_at: string;
|
|
32522
|
+
environment: string;
|
|
32523
|
+
finished_at: string | null;
|
|
32524
|
+
id: string;
|
|
32525
|
+
intent: string;
|
|
32526
|
+
product_id: string | null;
|
|
32527
|
+
reference_code: string;
|
|
32528
|
+
snapshot: import("../integrations/supabase/types").Json;
|
|
32529
|
+
status: string;
|
|
32530
|
+
summary: import("../integrations/supabase/types").Json;
|
|
32531
|
+
title: string | null;
|
|
32532
|
+
trade_item_id: string | null;
|
|
32533
|
+
trade_item_key: string | null;
|
|
32534
|
+
updated_at: string;
|
|
32535
|
+
user_id: string;
|
|
32536
|
+
};
|
|
32537
|
+
Insert: {
|
|
32538
|
+
connection_id?: string | null;
|
|
32539
|
+
created_at?: string;
|
|
32540
|
+
environment?: string;
|
|
32541
|
+
finished_at?: string | null;
|
|
32542
|
+
id?: string;
|
|
32543
|
+
intent?: string;
|
|
32544
|
+
product_id?: string | null;
|
|
32545
|
+
reference_code?: string;
|
|
32546
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
32547
|
+
status?: string;
|
|
32548
|
+
summary?: import("../integrations/supabase/types").Json;
|
|
32549
|
+
title?: string | null;
|
|
32550
|
+
trade_item_id?: string | null;
|
|
32551
|
+
trade_item_key?: string | null;
|
|
32552
|
+
updated_at?: string;
|
|
32553
|
+
user_id: string;
|
|
32554
|
+
};
|
|
32555
|
+
Update: {
|
|
32556
|
+
connection_id?: string | null;
|
|
32557
|
+
created_at?: string;
|
|
32558
|
+
environment?: string;
|
|
32559
|
+
finished_at?: string | null;
|
|
32560
|
+
id?: string;
|
|
32561
|
+
intent?: string;
|
|
32562
|
+
product_id?: string | null;
|
|
32563
|
+
reference_code?: string;
|
|
32564
|
+
snapshot?: import("../integrations/supabase/types").Json;
|
|
32565
|
+
status?: string;
|
|
32566
|
+
summary?: import("../integrations/supabase/types").Json;
|
|
32567
|
+
title?: string | null;
|
|
32568
|
+
trade_item_id?: string | null;
|
|
32569
|
+
trade_item_key?: string | null;
|
|
32570
|
+
updated_at?: string;
|
|
32571
|
+
user_id?: string;
|
|
32572
|
+
};
|
|
32573
|
+
Relationships: [];
|
|
32574
|
+
};
|
|
32575
|
+
voorraad_publish_learnings: {
|
|
32576
|
+
Row: {
|
|
32577
|
+
created_at: string;
|
|
32578
|
+
field_key: string;
|
|
32579
|
+
hits: number;
|
|
32580
|
+
id: string;
|
|
32581
|
+
label: string | null;
|
|
32582
|
+
last_error: string | null;
|
|
32583
|
+
scope: string;
|
|
32584
|
+
updated_at: string;
|
|
32585
|
+
vbn_code: string;
|
|
32586
|
+
};
|
|
32587
|
+
Insert: {
|
|
32588
|
+
created_at?: string;
|
|
32589
|
+
field_key: string;
|
|
32590
|
+
hits?: number;
|
|
32591
|
+
id?: string;
|
|
32592
|
+
label?: string | null;
|
|
32593
|
+
last_error?: string | null;
|
|
32594
|
+
scope?: string;
|
|
32595
|
+
updated_at?: string;
|
|
32596
|
+
vbn_code: string;
|
|
32597
|
+
};
|
|
32598
|
+
Update: {
|
|
32599
|
+
created_at?: string;
|
|
32600
|
+
field_key?: string;
|
|
32601
|
+
hits?: number;
|
|
32602
|
+
id?: string;
|
|
32603
|
+
label?: string | null;
|
|
32604
|
+
last_error?: string | null;
|
|
32605
|
+
scope?: string;
|
|
32606
|
+
updated_at?: string;
|
|
32607
|
+
vbn_code?: string;
|
|
32608
|
+
};
|
|
32609
|
+
Relationships: [];
|
|
32610
|
+
};
|
|
32611
|
+
voorraad_publish_steps: {
|
|
32612
|
+
Row: {
|
|
32613
|
+
attempts: number;
|
|
32614
|
+
created_at: string;
|
|
32615
|
+
error_code: string | null;
|
|
32616
|
+
error_detail: string | null;
|
|
32617
|
+
error_message: string | null;
|
|
32618
|
+
finished_at: string | null;
|
|
32619
|
+
id: string;
|
|
32620
|
+
job_id: string;
|
|
32621
|
+
label: string;
|
|
32622
|
+
position: number;
|
|
32623
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
32624
|
+
started_at: string | null;
|
|
32625
|
+
status: string;
|
|
32626
|
+
step_key: string;
|
|
32627
|
+
updated_at: string;
|
|
32628
|
+
user_id: string;
|
|
32629
|
+
};
|
|
32630
|
+
Insert: {
|
|
32631
|
+
attempts?: number;
|
|
32632
|
+
created_at?: string;
|
|
32633
|
+
error_code?: string | null;
|
|
32634
|
+
error_detail?: string | null;
|
|
32635
|
+
error_message?: string | null;
|
|
32636
|
+
finished_at?: string | null;
|
|
32637
|
+
id?: string;
|
|
32638
|
+
job_id: string;
|
|
32639
|
+
label: string;
|
|
32640
|
+
position?: number;
|
|
32641
|
+
result?: import("../integrations/supabase/types").Json | null;
|
|
32642
|
+
started_at?: string | null;
|
|
32643
|
+
status?: string;
|
|
32644
|
+
step_key: string;
|
|
32645
|
+
updated_at?: string;
|
|
32646
|
+
user_id: string;
|
|
32647
|
+
};
|
|
32648
|
+
Update: {
|
|
32649
|
+
attempts?: number;
|
|
32650
|
+
created_at?: string;
|
|
32651
|
+
error_code?: string | null;
|
|
32652
|
+
error_detail?: string | null;
|
|
32653
|
+
error_message?: string | null;
|
|
32654
|
+
finished_at?: string | null;
|
|
32655
|
+
id?: string;
|
|
32656
|
+
job_id?: string;
|
|
32657
|
+
label?: string;
|
|
32658
|
+
position?: number;
|
|
32659
|
+
result?: import("../integrations/supabase/types").Json | null;
|
|
32660
|
+
started_at?: string | null;
|
|
32661
|
+
status?: string;
|
|
32662
|
+
step_key?: string;
|
|
32663
|
+
updated_at?: string;
|
|
32664
|
+
user_id?: string;
|
|
32665
|
+
};
|
|
32666
|
+
Relationships: [{
|
|
32667
|
+
foreignKeyName: "voorraad_publish_steps_job_id_fkey";
|
|
32668
|
+
columns: ["job_id"];
|
|
32669
|
+
isOneToOne: false;
|
|
32670
|
+
referencedRelation: "voorraad_publish_jobs";
|
|
32671
|
+
referencedColumns: ["id"];
|
|
32672
|
+
}];
|
|
29503
32673
|
};
|
|
29504
32674
|
werkbon_package_ai_rules: {
|
|
29505
32675
|
Row: {
|
|
@@ -30764,12 +33934,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
30764
33934
|
};
|
|
30765
33935
|
claim_twinfield_push_batch: {
|
|
30766
33936
|
Args: {
|
|
33937
|
+
_customer_id?: string;
|
|
30767
33938
|
_limit?: number;
|
|
30768
33939
|
};
|
|
30769
33940
|
Returns: {
|
|
30770
33941
|
action: string;
|
|
30771
33942
|
attempts: number;
|
|
30772
|
-
connection_id: string;
|
|
33943
|
+
connection_id: string | null;
|
|
30773
33944
|
created_at: string;
|
|
30774
33945
|
customer_id: string | null;
|
|
30775
33946
|
external_id: string | null;
|
|
@@ -30853,6 +34024,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
30853
34024
|
};
|
|
30854
34025
|
Returns: import("../integrations/supabase/types").Json;
|
|
30855
34026
|
};
|
|
34027
|
+
customer_soft_key: {
|
|
34028
|
+
Args: {
|
|
34029
|
+
_email: string;
|
|
34030
|
+
_house: string;
|
|
34031
|
+
_name: string;
|
|
34032
|
+
_postal: string;
|
|
34033
|
+
};
|
|
34034
|
+
Returns: string;
|
|
34035
|
+
};
|
|
30856
34036
|
dashboard_alert_counts: {
|
|
30857
34037
|
Args: never;
|
|
30858
34038
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -31318,6 +34498,403 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
31318
34498
|
};
|
|
31319
34499
|
Returns: string;
|
|
31320
34500
|
};
|
|
34501
|
+
logistics_address_key: {
|
|
34502
|
+
Args: {
|
|
34503
|
+
p_location: string;
|
|
34504
|
+
};
|
|
34505
|
+
Returns: string;
|
|
34506
|
+
};
|
|
34507
|
+
logistics_allowed_load_carriers: {
|
|
34508
|
+
Args: {
|
|
34509
|
+
p_strategy_id?: string;
|
|
34510
|
+
p_user_id?: string;
|
|
34511
|
+
};
|
|
34512
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34513
|
+
};
|
|
34514
|
+
logistics_apply_buffer_decision: {
|
|
34515
|
+
Args: {
|
|
34516
|
+
p_order_id: string;
|
|
34517
|
+
};
|
|
34518
|
+
Returns: string;
|
|
34519
|
+
};
|
|
34520
|
+
logistics_apply_order_buffer: {
|
|
34521
|
+
Args: {
|
|
34522
|
+
p_order_id: string;
|
|
34523
|
+
};
|
|
34524
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34525
|
+
};
|
|
34526
|
+
logistics_backorder_allowed: {
|
|
34527
|
+
Args: {
|
|
34528
|
+
p_strategy_id?: string;
|
|
34529
|
+
};
|
|
34530
|
+
Returns: boolean;
|
|
34531
|
+
};
|
|
34532
|
+
logistics_buffer_criteria: {
|
|
34533
|
+
Args: {
|
|
34534
|
+
p_settings: import("../integrations/supabase/types").Json;
|
|
34535
|
+
};
|
|
34536
|
+
Returns: string[];
|
|
34537
|
+
};
|
|
34538
|
+
logistics_buffer_decision: {
|
|
34539
|
+
Args: {
|
|
34540
|
+
p_order?: import("../integrations/supabase/types").Json;
|
|
34541
|
+
p_strategy_id?: string;
|
|
34542
|
+
p_user_id?: string;
|
|
34543
|
+
};
|
|
34544
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34545
|
+
};
|
|
34546
|
+
logistics_buffer_simulate: {
|
|
34547
|
+
Args: {
|
|
34548
|
+
p_orders?: import("../integrations/supabase/types").Json;
|
|
34549
|
+
p_strategy_id?: string;
|
|
34550
|
+
};
|
|
34551
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34552
|
+
};
|
|
34553
|
+
logistics_buffer_value: {
|
|
34554
|
+
Args: {
|
|
34555
|
+
p_criterion: string;
|
|
34556
|
+
p_order: import("../integrations/supabase/types").Json;
|
|
34557
|
+
};
|
|
34558
|
+
Returns: string;
|
|
34559
|
+
};
|
|
34560
|
+
logistics_cancel_order: {
|
|
34561
|
+
Args: {
|
|
34562
|
+
p_order_ref: string;
|
|
34563
|
+
p_reason?: string;
|
|
34564
|
+
p_user_id?: string;
|
|
34565
|
+
};
|
|
34566
|
+
Returns: number;
|
|
34567
|
+
};
|
|
34568
|
+
logistics_check_order_allowed: {
|
|
34569
|
+
Args: {
|
|
34570
|
+
p_lines: import("../integrations/supabase/types").Json;
|
|
34571
|
+
p_strategy_id?: string;
|
|
34572
|
+
};
|
|
34573
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34574
|
+
};
|
|
34575
|
+
logistics_check_order_stock: {
|
|
34576
|
+
Args: {
|
|
34577
|
+
p_event_id: string;
|
|
34578
|
+
};
|
|
34579
|
+
Returns: string;
|
|
34580
|
+
};
|
|
34581
|
+
logistics_claim_next_task: {
|
|
34582
|
+
Args: {
|
|
34583
|
+
p_owner_module: string;
|
|
34584
|
+
p_worker?: string;
|
|
34585
|
+
};
|
|
34586
|
+
Returns: {
|
|
34587
|
+
buffer_ref: string | null;
|
|
34588
|
+
claimed_at: string | null;
|
|
34589
|
+
claimed_by: string | null;
|
|
34590
|
+
completed_at: string | null;
|
|
34591
|
+
created_at: string;
|
|
34592
|
+
depends_on: string[];
|
|
34593
|
+
due_at: string | null;
|
|
34594
|
+
error: string | null;
|
|
34595
|
+
id: string;
|
|
34596
|
+
order_ref: string;
|
|
34597
|
+
owner_module: string;
|
|
34598
|
+
payload: import("../integrations/supabase/types").Json;
|
|
34599
|
+
plan_run_id: string | null;
|
|
34600
|
+
planned_end: string | null;
|
|
34601
|
+
planned_start: string | null;
|
|
34602
|
+
priority: number;
|
|
34603
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
34604
|
+
rule_config_id: string | null;
|
|
34605
|
+
rule_version: number | null;
|
|
34606
|
+
sequence: number;
|
|
34607
|
+
shadow: boolean;
|
|
34608
|
+
started_at: string | null;
|
|
34609
|
+
status: string;
|
|
34610
|
+
strategy_id: string | null;
|
|
34611
|
+
task_type: string;
|
|
34612
|
+
updated_at: string;
|
|
34613
|
+
user_id: string;
|
|
34614
|
+
};
|
|
34615
|
+
SetofOptions: {
|
|
34616
|
+
from: "*";
|
|
34617
|
+
to: "logistics_tasks";
|
|
34618
|
+
isOneToOne: true;
|
|
34619
|
+
isSetofReturn: false;
|
|
34620
|
+
};
|
|
34621
|
+
};
|
|
34622
|
+
logistics_claim_task: {
|
|
34623
|
+
Args: {
|
|
34624
|
+
p_task_id: string;
|
|
34625
|
+
p_worker?: string;
|
|
34626
|
+
};
|
|
34627
|
+
Returns: {
|
|
34628
|
+
buffer_ref: string | null;
|
|
34629
|
+
claimed_at: string | null;
|
|
34630
|
+
claimed_by: string | null;
|
|
34631
|
+
completed_at: string | null;
|
|
34632
|
+
created_at: string;
|
|
34633
|
+
depends_on: string[];
|
|
34634
|
+
due_at: string | null;
|
|
34635
|
+
error: string | null;
|
|
34636
|
+
id: string;
|
|
34637
|
+
order_ref: string;
|
|
34638
|
+
owner_module: string;
|
|
34639
|
+
payload: import("../integrations/supabase/types").Json;
|
|
34640
|
+
plan_run_id: string | null;
|
|
34641
|
+
planned_end: string | null;
|
|
34642
|
+
planned_start: string | null;
|
|
34643
|
+
priority: number;
|
|
34644
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
34645
|
+
rule_config_id: string | null;
|
|
34646
|
+
rule_version: number | null;
|
|
34647
|
+
sequence: number;
|
|
34648
|
+
shadow: boolean;
|
|
34649
|
+
started_at: string | null;
|
|
34650
|
+
status: string;
|
|
34651
|
+
strategy_id: string | null;
|
|
34652
|
+
task_type: string;
|
|
34653
|
+
updated_at: string;
|
|
34654
|
+
user_id: string;
|
|
34655
|
+
};
|
|
34656
|
+
SetofOptions: {
|
|
34657
|
+
from: "*";
|
|
34658
|
+
to: "logistics_tasks";
|
|
34659
|
+
isOneToOne: true;
|
|
34660
|
+
isSetofReturn: false;
|
|
34661
|
+
};
|
|
34662
|
+
};
|
|
34663
|
+
logistics_complete_task: {
|
|
34664
|
+
Args: {
|
|
34665
|
+
p_result?: import("../integrations/supabase/types").Json;
|
|
34666
|
+
p_task_id: string;
|
|
34667
|
+
};
|
|
34668
|
+
Returns: {
|
|
34669
|
+
buffer_ref: string | null;
|
|
34670
|
+
claimed_at: string | null;
|
|
34671
|
+
claimed_by: string | null;
|
|
34672
|
+
completed_at: string | null;
|
|
34673
|
+
created_at: string;
|
|
34674
|
+
depends_on: string[];
|
|
34675
|
+
due_at: string | null;
|
|
34676
|
+
error: string | null;
|
|
34677
|
+
id: string;
|
|
34678
|
+
order_ref: string;
|
|
34679
|
+
owner_module: string;
|
|
34680
|
+
payload: import("../integrations/supabase/types").Json;
|
|
34681
|
+
plan_run_id: string | null;
|
|
34682
|
+
planned_end: string | null;
|
|
34683
|
+
planned_start: string | null;
|
|
34684
|
+
priority: number;
|
|
34685
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
34686
|
+
rule_config_id: string | null;
|
|
34687
|
+
rule_version: number | null;
|
|
34688
|
+
sequence: number;
|
|
34689
|
+
shadow: boolean;
|
|
34690
|
+
started_at: string | null;
|
|
34691
|
+
status: string;
|
|
34692
|
+
strategy_id: string | null;
|
|
34693
|
+
task_type: string;
|
|
34694
|
+
updated_at: string;
|
|
34695
|
+
user_id: string;
|
|
34696
|
+
};
|
|
34697
|
+
SetofOptions: {
|
|
34698
|
+
from: "*";
|
|
34699
|
+
to: "logistics_tasks";
|
|
34700
|
+
isOneToOne: true;
|
|
34701
|
+
isSetofReturn: false;
|
|
34702
|
+
};
|
|
34703
|
+
};
|
|
34704
|
+
logistics_emit_event: {
|
|
34705
|
+
Args: {
|
|
34706
|
+
p_event_type: string;
|
|
34707
|
+
p_idempotency_key?: string;
|
|
34708
|
+
p_order_ref: string;
|
|
34709
|
+
p_payload?: import("../integrations/supabase/types").Json;
|
|
34710
|
+
p_shadow?: boolean;
|
|
34711
|
+
p_source_module: string;
|
|
34712
|
+
p_strategy_id?: string;
|
|
34713
|
+
};
|
|
34714
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34715
|
+
} | {
|
|
34716
|
+
Args: {
|
|
34717
|
+
p_event_type: string;
|
|
34718
|
+
p_idempotency_key?: string;
|
|
34719
|
+
p_order_ref: string;
|
|
34720
|
+
p_payload?: import("../integrations/supabase/types").Json;
|
|
34721
|
+
p_priority?: number;
|
|
34722
|
+
p_shadow?: boolean;
|
|
34723
|
+
p_source_module: string;
|
|
34724
|
+
p_strategy_id?: string;
|
|
34725
|
+
};
|
|
34726
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34727
|
+
};
|
|
34728
|
+
logistics_fail_task: {
|
|
34729
|
+
Args: {
|
|
34730
|
+
p_error: string;
|
|
34731
|
+
p_task_id: string;
|
|
34732
|
+
};
|
|
34733
|
+
Returns: {
|
|
34734
|
+
buffer_ref: string | null;
|
|
34735
|
+
claimed_at: string | null;
|
|
34736
|
+
claimed_by: string | null;
|
|
34737
|
+
completed_at: string | null;
|
|
34738
|
+
created_at: string;
|
|
34739
|
+
depends_on: string[];
|
|
34740
|
+
due_at: string | null;
|
|
34741
|
+
error: string | null;
|
|
34742
|
+
id: string;
|
|
34743
|
+
order_ref: string;
|
|
34744
|
+
owner_module: string;
|
|
34745
|
+
payload: import("../integrations/supabase/types").Json;
|
|
34746
|
+
plan_run_id: string | null;
|
|
34747
|
+
planned_end: string | null;
|
|
34748
|
+
planned_start: string | null;
|
|
34749
|
+
priority: number;
|
|
34750
|
+
result: import("../integrations/supabase/types").Json | null;
|
|
34751
|
+
rule_config_id: string | null;
|
|
34752
|
+
rule_version: number | null;
|
|
34753
|
+
sequence: number;
|
|
34754
|
+
shadow: boolean;
|
|
34755
|
+
started_at: string | null;
|
|
34756
|
+
status: string;
|
|
34757
|
+
strategy_id: string | null;
|
|
34758
|
+
task_type: string;
|
|
34759
|
+
updated_at: string;
|
|
34760
|
+
user_id: string;
|
|
34761
|
+
};
|
|
34762
|
+
SetofOptions: {
|
|
34763
|
+
from: "*";
|
|
34764
|
+
to: "logistics_tasks";
|
|
34765
|
+
isOneToOne: true;
|
|
34766
|
+
isSetofReturn: false;
|
|
34767
|
+
};
|
|
34768
|
+
};
|
|
34769
|
+
logistics_not_past: {
|
|
34770
|
+
Args: {
|
|
34771
|
+
p_ts: string;
|
|
34772
|
+
};
|
|
34773
|
+
Returns: string;
|
|
34774
|
+
};
|
|
34775
|
+
logistics_queue_stock_email: {
|
|
34776
|
+
Args: {
|
|
34777
|
+
p_alert_id: string;
|
|
34778
|
+
};
|
|
34779
|
+
Returns: string;
|
|
34780
|
+
};
|
|
34781
|
+
logistics_reapply_buffer_decisions: {
|
|
34782
|
+
Args: never;
|
|
34783
|
+
Returns: number;
|
|
34784
|
+
};
|
|
34785
|
+
logistics_rebuffer_open_orders: {
|
|
34786
|
+
Args: {
|
|
34787
|
+
p_strategy_id?: string;
|
|
34788
|
+
};
|
|
34789
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34790
|
+
};
|
|
34791
|
+
logistics_rebuffer_orders: {
|
|
34792
|
+
Args: {
|
|
34793
|
+
p_days?: number;
|
|
34794
|
+
};
|
|
34795
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34796
|
+
};
|
|
34797
|
+
logistics_rebuffer_pending: {
|
|
34798
|
+
Args: never;
|
|
34799
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34800
|
+
};
|
|
34801
|
+
logistics_rescan_orders: {
|
|
34802
|
+
Args: {
|
|
34803
|
+
p_days?: number;
|
|
34804
|
+
};
|
|
34805
|
+
Returns: number;
|
|
34806
|
+
};
|
|
34807
|
+
logistics_resolve_settings: {
|
|
34808
|
+
Args: {
|
|
34809
|
+
p_config_id: string;
|
|
34810
|
+
p_user_id: string;
|
|
34811
|
+
p_version: number;
|
|
34812
|
+
};
|
|
34813
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34814
|
+
};
|
|
34815
|
+
logistics_rule_bool: {
|
|
34816
|
+
Args: {
|
|
34817
|
+
p_default: boolean;
|
|
34818
|
+
p_key: string;
|
|
34819
|
+
p_settings: import("../integrations/supabase/types").Json;
|
|
34820
|
+
p_step: string;
|
|
34821
|
+
};
|
|
34822
|
+
Returns: boolean;
|
|
34823
|
+
};
|
|
34824
|
+
logistics_rule_num: {
|
|
34825
|
+
Args: {
|
|
34826
|
+
p_default: number;
|
|
34827
|
+
p_key: string;
|
|
34828
|
+
p_settings: import("../integrations/supabase/types").Json;
|
|
34829
|
+
p_step: string;
|
|
34830
|
+
};
|
|
34831
|
+
Returns: number;
|
|
34832
|
+
};
|
|
34833
|
+
logistics_rule_text: {
|
|
34834
|
+
Args: {
|
|
34835
|
+
p_default: string;
|
|
34836
|
+
p_key: string;
|
|
34837
|
+
p_settings: import("../integrations/supabase/types").Json;
|
|
34838
|
+
p_step: string;
|
|
34839
|
+
};
|
|
34840
|
+
Returns: string;
|
|
34841
|
+
};
|
|
34842
|
+
logistics_rule_value: {
|
|
34843
|
+
Args: {
|
|
34844
|
+
p_key: string;
|
|
34845
|
+
p_settings: import("../integrations/supabase/types").Json;
|
|
34846
|
+
p_step: string;
|
|
34847
|
+
};
|
|
34848
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
34849
|
+
};
|
|
34850
|
+
logistics_scan_order_stock: {
|
|
34851
|
+
Args: {
|
|
34852
|
+
p_order_id: string;
|
|
34853
|
+
};
|
|
34854
|
+
Returns: string;
|
|
34855
|
+
};
|
|
34856
|
+
logistics_set_order_priority: {
|
|
34857
|
+
Args: {
|
|
34858
|
+
p_order_ref: string;
|
|
34859
|
+
p_priority: number;
|
|
34860
|
+
p_user_id?: string;
|
|
34861
|
+
};
|
|
34862
|
+
Returns: number;
|
|
34863
|
+
};
|
|
34864
|
+
logistics_supersede_stale_tasks: {
|
|
34865
|
+
Args: {
|
|
34866
|
+
p_keep: string[];
|
|
34867
|
+
p_order_ref: string;
|
|
34868
|
+
p_run_id: string;
|
|
34869
|
+
p_user_id: string;
|
|
34870
|
+
};
|
|
34871
|
+
Returns: number;
|
|
34872
|
+
};
|
|
34873
|
+
logistics_task_owner: {
|
|
34874
|
+
Args: {
|
|
34875
|
+
p_task_type: string;
|
|
34876
|
+
};
|
|
34877
|
+
Returns: string;
|
|
34878
|
+
};
|
|
34879
|
+
logistics_upsert_task: {
|
|
34880
|
+
Args: {
|
|
34881
|
+
p_buffer_ref: string;
|
|
34882
|
+
p_end: string;
|
|
34883
|
+
p_order_ref: string;
|
|
34884
|
+
p_owner: string;
|
|
34885
|
+
p_payload: import("../integrations/supabase/types").Json;
|
|
34886
|
+
p_rule_config_id: string;
|
|
34887
|
+
p_rule_version: number;
|
|
34888
|
+
p_run_id: string;
|
|
34889
|
+
p_sequence: number;
|
|
34890
|
+
p_shadow: boolean;
|
|
34891
|
+
p_start: string;
|
|
34892
|
+
p_strategy_id: string;
|
|
34893
|
+
p_task_type: string;
|
|
34894
|
+
p_user_id: string;
|
|
34895
|
+
};
|
|
34896
|
+
Returns: string;
|
|
34897
|
+
};
|
|
31321
34898
|
mark_offer_clicked: {
|
|
31322
34899
|
Args: {
|
|
31323
34900
|
p_code: string;
|
|
@@ -31571,6 +35148,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
31571
35148
|
waiting: number;
|
|
31572
35149
|
}[];
|
|
31573
35150
|
};
|
|
35151
|
+
pick_station_slugify: {
|
|
35152
|
+
Args: {
|
|
35153
|
+
_id: string;
|
|
35154
|
+
_name: string;
|
|
35155
|
+
};
|
|
35156
|
+
Returns: string;
|
|
35157
|
+
};
|
|
31574
35158
|
pickstation_get_orders_raw: {
|
|
31575
35159
|
Args: never;
|
|
31576
35160
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -31611,6 +35195,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
31611
35195
|
};
|
|
31612
35196
|
Returns: undefined;
|
|
31613
35197
|
};
|
|
35198
|
+
process_logistics_event: {
|
|
35199
|
+
Args: {
|
|
35200
|
+
p_event_id: string;
|
|
35201
|
+
};
|
|
35202
|
+
Returns: string;
|
|
35203
|
+
};
|
|
31614
35204
|
produce_designed_product: {
|
|
31615
35205
|
Args: {
|
|
31616
35206
|
p_parent_id: string;
|
|
@@ -31736,6 +35326,14 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
31736
35326
|
};
|
|
31737
35327
|
Returns: import("../integrations/supabase/types").Json;
|
|
31738
35328
|
};
|
|
35329
|
+
run_floriday_continuous_stock_sync: {
|
|
35330
|
+
Args: never;
|
|
35331
|
+
Returns: undefined;
|
|
35332
|
+
};
|
|
35333
|
+
run_twinfield_queue_tick: {
|
|
35334
|
+
Args: never;
|
|
35335
|
+
Returns: undefined;
|
|
35336
|
+
};
|
|
31739
35337
|
schedule_floriday_additional_services_sync: {
|
|
31740
35338
|
Args: {
|
|
31741
35339
|
p_apikey: string;
|
|
@@ -32067,7 +35665,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
|
|
|
32067
35665
|
};
|
|
32068
35666
|
twinfield_register_cron: {
|
|
32069
35667
|
Args: {
|
|
32070
|
-
apikey
|
|
35668
|
+
apikey?: string;
|
|
32071
35669
|
base_url: string;
|
|
32072
35670
|
};
|
|
32073
35671
|
Returns: import("../integrations/supabase/types").Json;
|