@flowselections/floriday-klanten-module 1.0.36 → 1.0.37
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/klanten/BulkStickerUploadDialog.d.ts.map +1 -1
- package/dist-lib/components/klanten/BulkStickerUploadDialog.js +30 -8
- package/dist-lib/components/klanten/CustomerAssortmentTab.d.ts.map +1 -1
- package/dist-lib/components/klanten/CustomerAssortmentTab.js +48 -10
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +129 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +129 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +129 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +129 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/accounting/twinfield/client.server.d.ts +7 -8
- package/dist-lib/lib/accounting/twinfield/client.server.d.ts.map +1 -1
- package/dist-lib/lib/accounting/twinfield/client.server.js +147 -78
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +387 -0
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
- package/dist-lib/lib/accounting/twinfield/worker.server.d.ts.map +1 -1
- package/dist-lib/lib/accounting/twinfield/worker.server.js +17 -0
- package/dist-lib/lib/accounting.functions.d.ts +387 -0
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +129 -0
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-assortment.functions.d.ts +132 -3
- package/dist-lib/lib/customer-assortment.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-assortment.functions.js +12 -0
- package/dist-lib/lib/customer-notes.functions.d.ts +258 -0
- package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-revenue.functions.d.ts +129 -0
- package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-stickers.functions.d.ts +1165 -0
- package/dist-lib/lib/customer-stickers.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-stickers.functions.js +122 -75
- package/dist-lib/lib/customers.functions.d.ts +1161 -0
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/delivery-locations.functions.d.ts +645 -0
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +516 -0
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-assortment.functions.d.ts +129 -0
- package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-discounts.functions.d.ts +258 -0
- package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-price-import.functions.d.ts +258 -0
- package/dist-lib/lib/floriday-price-import.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sticker-import.functions.d.ts +27323 -0
- package/dist-lib/lib/floriday-sticker-import.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-sticker-import.functions.js +307 -0
- package/dist-lib/lib/floriday-trade-items.functions.d.ts +129 -0
- package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
- package/dist-lib/lib/local-discounts.functions.d.ts +903 -0
- package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-events.functions.d.ts +129 -0
- package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-strategy.functions.d.ts +516 -0
- package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts +129 -0
- package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups-local.functions.d.ts +1677 -0
- package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups.functions.d.ts +129 -0
- package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
- package/dist-lib/lib/twinfield-adopt.functions.d.ts +258 -0
- package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
- package/dist-lib/lib/twinfield-ledger.functions.d.ts +129 -0
- package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -68,6 +68,16 @@ export const listCustomerAssortment = createServerFn({ method: "POST" })
|
|
|
68
68
|
.maybeSingle();
|
|
69
69
|
group = g ?? null;
|
|
70
70
|
}
|
|
71
|
+
// 1b) Eigen assortiment van deze klant
|
|
72
|
+
const ownAssortment = new Set();
|
|
73
|
+
const { data: assortRows } = await sb
|
|
74
|
+
.from("customer_assortment_items")
|
|
75
|
+
.select("trade_item_key, in_assortment")
|
|
76
|
+
.eq("customer_key", data.customerKey);
|
|
77
|
+
for (const r of assortRows ?? []) {
|
|
78
|
+
if (r?.in_assortment !== false)
|
|
79
|
+
ownAssortment.add(String(r.trade_item_key));
|
|
80
|
+
}
|
|
71
81
|
// 2) Alle Floriday-handelsartikelen uit de cache
|
|
72
82
|
const { data: cacheRows, error: cacheErr } = await sb
|
|
73
83
|
.from("floriday_trade_items_cache")
|
|
@@ -252,6 +262,7 @@ export const listCustomerAssortment = createServerFn({ method: "POST" })
|
|
|
252
262
|
handling_per_unit: handlingPerUnit,
|
|
253
263
|
floriday_source: fl?.source ?? null,
|
|
254
264
|
floriday_source_label: fl?.label ?? null,
|
|
265
|
+
in_assortment: ownAssortment.has(id) || restricted,
|
|
255
266
|
});
|
|
256
267
|
}
|
|
257
268
|
items.sort((a, b) => a.name.localeCompare(b.name, "nl"));
|
|
@@ -274,6 +285,7 @@ export const listCustomerAssortment = createServerFn({ method: "POST" })
|
|
|
274
285
|
total: items.length,
|
|
275
286
|
priced: items.filter((i) => i.price != null).length,
|
|
276
287
|
restricted: restrictedCount,
|
|
288
|
+
in_assortment: items.filter((i) => i.in_assortment).length,
|
|
277
289
|
last_synced_at: lastSynced,
|
|
278
290
|
},
|
|
279
291
|
};
|
|
@@ -1822,6 +1822,42 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
1822
1822
|
};
|
|
1823
1823
|
Relationships: [];
|
|
1824
1824
|
};
|
|
1825
|
+
customer_assortment_items: {
|
|
1826
|
+
Row: {
|
|
1827
|
+
created_at: string;
|
|
1828
|
+
customer_key: string;
|
|
1829
|
+
id: string;
|
|
1830
|
+
in_assortment: boolean;
|
|
1831
|
+
manual_override: boolean;
|
|
1832
|
+
source: string;
|
|
1833
|
+
synced_at: string | null;
|
|
1834
|
+
trade_item_key: string;
|
|
1835
|
+
updated_at: string;
|
|
1836
|
+
};
|
|
1837
|
+
Insert: {
|
|
1838
|
+
created_at?: string;
|
|
1839
|
+
customer_key: string;
|
|
1840
|
+
id?: string;
|
|
1841
|
+
in_assortment?: boolean;
|
|
1842
|
+
manual_override?: boolean;
|
|
1843
|
+
source?: string;
|
|
1844
|
+
synced_at?: string | null;
|
|
1845
|
+
trade_item_key: string;
|
|
1846
|
+
updated_at?: string;
|
|
1847
|
+
};
|
|
1848
|
+
Update: {
|
|
1849
|
+
created_at?: string;
|
|
1850
|
+
customer_key?: string;
|
|
1851
|
+
id?: string;
|
|
1852
|
+
in_assortment?: boolean;
|
|
1853
|
+
manual_override?: boolean;
|
|
1854
|
+
source?: string;
|
|
1855
|
+
synced_at?: string | null;
|
|
1856
|
+
trade_item_key?: string;
|
|
1857
|
+
updated_at?: string;
|
|
1858
|
+
};
|
|
1859
|
+
Relationships: [];
|
|
1860
|
+
};
|
|
1825
1861
|
customer_audit_log: {
|
|
1826
1862
|
Row: {
|
|
1827
1863
|
action: string;
|
|
@@ -2226,40 +2262,58 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
2226
2262
|
};
|
|
2227
2263
|
customer_product_stickers: {
|
|
2228
2264
|
Row: {
|
|
2265
|
+
content_hash: string | null;
|
|
2229
2266
|
created_at: string;
|
|
2230
2267
|
customer_key: string;
|
|
2231
2268
|
file_name: string;
|
|
2232
2269
|
file_path: string;
|
|
2233
2270
|
file_size: number | null;
|
|
2271
|
+
floriday_sticker_id: string | null;
|
|
2272
|
+
floriday_synced_at: string | null;
|
|
2273
|
+
height_mm: number | null;
|
|
2234
2274
|
id: string;
|
|
2235
2275
|
mime_type: string | null;
|
|
2276
|
+
source: string;
|
|
2236
2277
|
trade_item_key: string;
|
|
2237
2278
|
updated_at: string;
|
|
2238
2279
|
uploaded_by: string | null;
|
|
2280
|
+
width_mm: number | null;
|
|
2239
2281
|
};
|
|
2240
2282
|
Insert: {
|
|
2283
|
+
content_hash?: string | null;
|
|
2241
2284
|
created_at?: string;
|
|
2242
2285
|
customer_key: string;
|
|
2243
2286
|
file_name: string;
|
|
2244
2287
|
file_path: string;
|
|
2245
2288
|
file_size?: number | null;
|
|
2289
|
+
floriday_sticker_id?: string | null;
|
|
2290
|
+
floriday_synced_at?: string | null;
|
|
2291
|
+
height_mm?: number | null;
|
|
2246
2292
|
id?: string;
|
|
2247
2293
|
mime_type?: string | null;
|
|
2294
|
+
source?: string;
|
|
2248
2295
|
trade_item_key: string;
|
|
2249
2296
|
updated_at?: string;
|
|
2250
2297
|
uploaded_by?: string | null;
|
|
2298
|
+
width_mm?: number | null;
|
|
2251
2299
|
};
|
|
2252
2300
|
Update: {
|
|
2301
|
+
content_hash?: string | null;
|
|
2253
2302
|
created_at?: string;
|
|
2254
2303
|
customer_key?: string;
|
|
2255
2304
|
file_name?: string;
|
|
2256
2305
|
file_path?: string;
|
|
2257
2306
|
file_size?: number | null;
|
|
2307
|
+
floriday_sticker_id?: string | null;
|
|
2308
|
+
floriday_synced_at?: string | null;
|
|
2309
|
+
height_mm?: number | null;
|
|
2258
2310
|
id?: string;
|
|
2259
2311
|
mime_type?: string | null;
|
|
2312
|
+
source?: string;
|
|
2260
2313
|
trade_item_key?: string;
|
|
2261
2314
|
updated_at?: string;
|
|
2262
2315
|
uploaded_by?: string | null;
|
|
2316
|
+
width_mm?: number | null;
|
|
2263
2317
|
};
|
|
2264
2318
|
Relationships: [];
|
|
2265
2319
|
};
|
|
@@ -11567,6 +11621,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
11567
11621
|
Row: {
|
|
11568
11622
|
actor: string | null;
|
|
11569
11623
|
attempts: number;
|
|
11624
|
+
calc: import("../integrations/supabase/types").Json | null;
|
|
11570
11625
|
cart_ref: string | null;
|
|
11571
11626
|
created_at: string;
|
|
11572
11627
|
db_action: string | null;
|
|
@@ -11577,6 +11632,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
11577
11632
|
decision: string | null;
|
|
11578
11633
|
duration_ms: number | null;
|
|
11579
11634
|
error: string | null;
|
|
11635
|
+
error_class: string | null;
|
|
11580
11636
|
external_action: string | null;
|
|
11581
11637
|
external_ref: string | null;
|
|
11582
11638
|
external_response: import("../integrations/supabase/types").Json | null;
|
|
@@ -11585,6 +11641,8 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
11585
11641
|
id: string;
|
|
11586
11642
|
input: import("../integrations/supabase/types").Json | null;
|
|
11587
11643
|
next_attempt_at: string | null;
|
|
11644
|
+
next_step: string | null;
|
|
11645
|
+
node_id: string | null;
|
|
11588
11646
|
order_ref: string | null;
|
|
11589
11647
|
order_source: string | null;
|
|
11590
11648
|
output: import("../integrations/supabase/types").Json | null;
|
|
@@ -11601,6 +11659,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
11601
11659
|
Insert: {
|
|
11602
11660
|
actor?: string | null;
|
|
11603
11661
|
attempts?: number;
|
|
11662
|
+
calc?: import("../integrations/supabase/types").Json | null;
|
|
11604
11663
|
cart_ref?: string | null;
|
|
11605
11664
|
created_at?: string;
|
|
11606
11665
|
db_action?: string | null;
|
|
@@ -11611,6 +11670,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
11611
11670
|
decision?: string | null;
|
|
11612
11671
|
duration_ms?: number | null;
|
|
11613
11672
|
error?: string | null;
|
|
11673
|
+
error_class?: string | null;
|
|
11614
11674
|
external_action?: string | null;
|
|
11615
11675
|
external_ref?: string | null;
|
|
11616
11676
|
external_response?: import("../integrations/supabase/types").Json | null;
|
|
@@ -11619,6 +11679,8 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
11619
11679
|
id?: string;
|
|
11620
11680
|
input?: import("../integrations/supabase/types").Json | null;
|
|
11621
11681
|
next_attempt_at?: string | null;
|
|
11682
|
+
next_step?: string | null;
|
|
11683
|
+
node_id?: string | null;
|
|
11622
11684
|
order_ref?: string | null;
|
|
11623
11685
|
order_source?: string | null;
|
|
11624
11686
|
output?: import("../integrations/supabase/types").Json | null;
|
|
@@ -11635,6 +11697,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
11635
11697
|
Update: {
|
|
11636
11698
|
actor?: string | null;
|
|
11637
11699
|
attempts?: number;
|
|
11700
|
+
calc?: import("../integrations/supabase/types").Json | null;
|
|
11638
11701
|
cart_ref?: string | null;
|
|
11639
11702
|
created_at?: string;
|
|
11640
11703
|
db_action?: string | null;
|
|
@@ -11645,6 +11708,7 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
11645
11708
|
decision?: string | null;
|
|
11646
11709
|
duration_ms?: number | null;
|
|
11647
11710
|
error?: string | null;
|
|
11711
|
+
error_class?: string | null;
|
|
11648
11712
|
external_action?: string | null;
|
|
11649
11713
|
external_ref?: string | null;
|
|
11650
11714
|
external_response?: import("../integrations/supabase/types").Json | null;
|
|
@@ -11653,6 +11717,8 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
11653
11717
|
id?: string;
|
|
11654
11718
|
input?: import("../integrations/supabase/types").Json | null;
|
|
11655
11719
|
next_attempt_at?: string | null;
|
|
11720
|
+
next_step?: string | null;
|
|
11721
|
+
node_id?: string | null;
|
|
11656
11722
|
order_ref?: string | null;
|
|
11657
11723
|
order_source?: string | null;
|
|
11658
11724
|
output?: import("../integrations/supabase/types").Json | null;
|
|
@@ -25157,12 +25223,59 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
25157
25223
|
};
|
|
25158
25224
|
Returns: string;
|
|
25159
25225
|
};
|
|
25226
|
+
logistics_trace_all_orders: {
|
|
25227
|
+
Args: {
|
|
25228
|
+
p_limit?: number;
|
|
25229
|
+
p_search?: string;
|
|
25230
|
+
};
|
|
25231
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
25232
|
+
};
|
|
25160
25233
|
logistics_trace_batch: {
|
|
25161
25234
|
Args: {
|
|
25162
25235
|
p: import("../integrations/supabase/types").Json;
|
|
25163
25236
|
};
|
|
25164
25237
|
Returns: number;
|
|
25165
25238
|
};
|
|
25239
|
+
logistics_trace_node: {
|
|
25240
|
+
Args: {
|
|
25241
|
+
p_op?: string;
|
|
25242
|
+
p_status?: string;
|
|
25243
|
+
p_table: string;
|
|
25244
|
+
};
|
|
25245
|
+
Returns: string;
|
|
25246
|
+
};
|
|
25247
|
+
logistics_trace_order_overview: {
|
|
25248
|
+
Args: {
|
|
25249
|
+
p_error_class?: string;
|
|
25250
|
+
p_limit?: number;
|
|
25251
|
+
p_search?: string;
|
|
25252
|
+
p_since?: string;
|
|
25253
|
+
p_source?: string;
|
|
25254
|
+
p_state?: string;
|
|
25255
|
+
p_step?: string;
|
|
25256
|
+
};
|
|
25257
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
25258
|
+
};
|
|
25259
|
+
logistics_trace_order_state: {
|
|
25260
|
+
Args: {
|
|
25261
|
+
p_order_ref: string;
|
|
25262
|
+
};
|
|
25263
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
25264
|
+
};
|
|
25265
|
+
logistics_trace_order_step: {
|
|
25266
|
+
Args: {
|
|
25267
|
+
p_class?: string;
|
|
25268
|
+
p_decision?: string;
|
|
25269
|
+
p_error?: string;
|
|
25270
|
+
p_next_step?: string;
|
|
25271
|
+
p_node: string;
|
|
25272
|
+
p_order_id: string;
|
|
25273
|
+
p_reason?: string;
|
|
25274
|
+
p_status: string;
|
|
25275
|
+
p_step: string;
|
|
25276
|
+
};
|
|
25277
|
+
Returns: undefined;
|
|
25278
|
+
};
|
|
25166
25279
|
logistics_trace_orders: {
|
|
25167
25280
|
Args: {
|
|
25168
25281
|
p_limit?: number;
|
|
@@ -25185,6 +25298,22 @@ export declare const getCustomerNote: import("@tanstack/start-client-core").Opti
|
|
|
25185
25298
|
};
|
|
25186
25299
|
Returns: import("../integrations/supabase/types").Json;
|
|
25187
25300
|
};
|
|
25301
|
+
logistics_trace_version_events: {
|
|
25302
|
+
Args: {
|
|
25303
|
+
p_from?: string;
|
|
25304
|
+
p_limit?: number;
|
|
25305
|
+
p_order_ref: string;
|
|
25306
|
+
p_to?: string;
|
|
25307
|
+
p_version_id: string;
|
|
25308
|
+
};
|
|
25309
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
25310
|
+
};
|
|
25311
|
+
logistics_trace_versions: {
|
|
25312
|
+
Args: {
|
|
25313
|
+
p_order_ref: string;
|
|
25314
|
+
};
|
|
25315
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
25316
|
+
};
|
|
25188
25317
|
logistics_upsert_task: {
|
|
25189
25318
|
Args: {
|
|
25190
25319
|
p_buffer_ref: string;
|
|
@@ -29009,6 +29138,42 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
29009
29138
|
};
|
|
29010
29139
|
Relationships: [];
|
|
29011
29140
|
};
|
|
29141
|
+
customer_assortment_items: {
|
|
29142
|
+
Row: {
|
|
29143
|
+
created_at: string;
|
|
29144
|
+
customer_key: string;
|
|
29145
|
+
id: string;
|
|
29146
|
+
in_assortment: boolean;
|
|
29147
|
+
manual_override: boolean;
|
|
29148
|
+
source: string;
|
|
29149
|
+
synced_at: string | null;
|
|
29150
|
+
trade_item_key: string;
|
|
29151
|
+
updated_at: string;
|
|
29152
|
+
};
|
|
29153
|
+
Insert: {
|
|
29154
|
+
created_at?: string;
|
|
29155
|
+
customer_key: string;
|
|
29156
|
+
id?: string;
|
|
29157
|
+
in_assortment?: boolean;
|
|
29158
|
+
manual_override?: boolean;
|
|
29159
|
+
source?: string;
|
|
29160
|
+
synced_at?: string | null;
|
|
29161
|
+
trade_item_key: string;
|
|
29162
|
+
updated_at?: string;
|
|
29163
|
+
};
|
|
29164
|
+
Update: {
|
|
29165
|
+
created_at?: string;
|
|
29166
|
+
customer_key?: string;
|
|
29167
|
+
id?: string;
|
|
29168
|
+
in_assortment?: boolean;
|
|
29169
|
+
manual_override?: boolean;
|
|
29170
|
+
source?: string;
|
|
29171
|
+
synced_at?: string | null;
|
|
29172
|
+
trade_item_key?: string;
|
|
29173
|
+
updated_at?: string;
|
|
29174
|
+
};
|
|
29175
|
+
Relationships: [];
|
|
29176
|
+
};
|
|
29012
29177
|
customer_audit_log: {
|
|
29013
29178
|
Row: {
|
|
29014
29179
|
action: string;
|
|
@@ -29413,40 +29578,58 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
29413
29578
|
};
|
|
29414
29579
|
customer_product_stickers: {
|
|
29415
29580
|
Row: {
|
|
29581
|
+
content_hash: string | null;
|
|
29416
29582
|
created_at: string;
|
|
29417
29583
|
customer_key: string;
|
|
29418
29584
|
file_name: string;
|
|
29419
29585
|
file_path: string;
|
|
29420
29586
|
file_size: number | null;
|
|
29587
|
+
floriday_sticker_id: string | null;
|
|
29588
|
+
floriday_synced_at: string | null;
|
|
29589
|
+
height_mm: number | null;
|
|
29421
29590
|
id: string;
|
|
29422
29591
|
mime_type: string | null;
|
|
29592
|
+
source: string;
|
|
29423
29593
|
trade_item_key: string;
|
|
29424
29594
|
updated_at: string;
|
|
29425
29595
|
uploaded_by: string | null;
|
|
29596
|
+
width_mm: number | null;
|
|
29426
29597
|
};
|
|
29427
29598
|
Insert: {
|
|
29599
|
+
content_hash?: string | null;
|
|
29428
29600
|
created_at?: string;
|
|
29429
29601
|
customer_key: string;
|
|
29430
29602
|
file_name: string;
|
|
29431
29603
|
file_path: string;
|
|
29432
29604
|
file_size?: number | null;
|
|
29605
|
+
floriday_sticker_id?: string | null;
|
|
29606
|
+
floriday_synced_at?: string | null;
|
|
29607
|
+
height_mm?: number | null;
|
|
29433
29608
|
id?: string;
|
|
29434
29609
|
mime_type?: string | null;
|
|
29610
|
+
source?: string;
|
|
29435
29611
|
trade_item_key: string;
|
|
29436
29612
|
updated_at?: string;
|
|
29437
29613
|
uploaded_by?: string | null;
|
|
29614
|
+
width_mm?: number | null;
|
|
29438
29615
|
};
|
|
29439
29616
|
Update: {
|
|
29617
|
+
content_hash?: string | null;
|
|
29440
29618
|
created_at?: string;
|
|
29441
29619
|
customer_key?: string;
|
|
29442
29620
|
file_name?: string;
|
|
29443
29621
|
file_path?: string;
|
|
29444
29622
|
file_size?: number | null;
|
|
29623
|
+
floriday_sticker_id?: string | null;
|
|
29624
|
+
floriday_synced_at?: string | null;
|
|
29625
|
+
height_mm?: number | null;
|
|
29445
29626
|
id?: string;
|
|
29446
29627
|
mime_type?: string | null;
|
|
29628
|
+
source?: string;
|
|
29447
29629
|
trade_item_key?: string;
|
|
29448
29630
|
updated_at?: string;
|
|
29449
29631
|
uploaded_by?: string | null;
|
|
29632
|
+
width_mm?: number | null;
|
|
29450
29633
|
};
|
|
29451
29634
|
Relationships: [];
|
|
29452
29635
|
};
|
|
@@ -38754,6 +38937,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
38754
38937
|
Row: {
|
|
38755
38938
|
actor: string | null;
|
|
38756
38939
|
attempts: number;
|
|
38940
|
+
calc: import("../integrations/supabase/types").Json | null;
|
|
38757
38941
|
cart_ref: string | null;
|
|
38758
38942
|
created_at: string;
|
|
38759
38943
|
db_action: string | null;
|
|
@@ -38764,6 +38948,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
38764
38948
|
decision: string | null;
|
|
38765
38949
|
duration_ms: number | null;
|
|
38766
38950
|
error: string | null;
|
|
38951
|
+
error_class: string | null;
|
|
38767
38952
|
external_action: string | null;
|
|
38768
38953
|
external_ref: string | null;
|
|
38769
38954
|
external_response: import("../integrations/supabase/types").Json | null;
|
|
@@ -38772,6 +38957,8 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
38772
38957
|
id: string;
|
|
38773
38958
|
input: import("../integrations/supabase/types").Json | null;
|
|
38774
38959
|
next_attempt_at: string | null;
|
|
38960
|
+
next_step: string | null;
|
|
38961
|
+
node_id: string | null;
|
|
38775
38962
|
order_ref: string | null;
|
|
38776
38963
|
order_source: string | null;
|
|
38777
38964
|
output: import("../integrations/supabase/types").Json | null;
|
|
@@ -38788,6 +38975,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
38788
38975
|
Insert: {
|
|
38789
38976
|
actor?: string | null;
|
|
38790
38977
|
attempts?: number;
|
|
38978
|
+
calc?: import("../integrations/supabase/types").Json | null;
|
|
38791
38979
|
cart_ref?: string | null;
|
|
38792
38980
|
created_at?: string;
|
|
38793
38981
|
db_action?: string | null;
|
|
@@ -38798,6 +38986,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
38798
38986
|
decision?: string | null;
|
|
38799
38987
|
duration_ms?: number | null;
|
|
38800
38988
|
error?: string | null;
|
|
38989
|
+
error_class?: string | null;
|
|
38801
38990
|
external_action?: string | null;
|
|
38802
38991
|
external_ref?: string | null;
|
|
38803
38992
|
external_response?: import("../integrations/supabase/types").Json | null;
|
|
@@ -38806,6 +38995,8 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
38806
38995
|
id?: string;
|
|
38807
38996
|
input?: import("../integrations/supabase/types").Json | null;
|
|
38808
38997
|
next_attempt_at?: string | null;
|
|
38998
|
+
next_step?: string | null;
|
|
38999
|
+
node_id?: string | null;
|
|
38809
39000
|
order_ref?: string | null;
|
|
38810
39001
|
order_source?: string | null;
|
|
38811
39002
|
output?: import("../integrations/supabase/types").Json | null;
|
|
@@ -38822,6 +39013,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
38822
39013
|
Update: {
|
|
38823
39014
|
actor?: string | null;
|
|
38824
39015
|
attempts?: number;
|
|
39016
|
+
calc?: import("../integrations/supabase/types").Json | null;
|
|
38825
39017
|
cart_ref?: string | null;
|
|
38826
39018
|
created_at?: string;
|
|
38827
39019
|
db_action?: string | null;
|
|
@@ -38832,6 +39024,7 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
38832
39024
|
decision?: string | null;
|
|
38833
39025
|
duration_ms?: number | null;
|
|
38834
39026
|
error?: string | null;
|
|
39027
|
+
error_class?: string | null;
|
|
38835
39028
|
external_action?: string | null;
|
|
38836
39029
|
external_ref?: string | null;
|
|
38837
39030
|
external_response?: import("../integrations/supabase/types").Json | null;
|
|
@@ -38840,6 +39033,8 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
38840
39033
|
id?: string;
|
|
38841
39034
|
input?: import("../integrations/supabase/types").Json | null;
|
|
38842
39035
|
next_attempt_at?: string | null;
|
|
39036
|
+
next_step?: string | null;
|
|
39037
|
+
node_id?: string | null;
|
|
38843
39038
|
order_ref?: string | null;
|
|
38844
39039
|
order_source?: string | null;
|
|
38845
39040
|
output?: import("../integrations/supabase/types").Json | null;
|
|
@@ -52344,12 +52539,59 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
52344
52539
|
};
|
|
52345
52540
|
Returns: string;
|
|
52346
52541
|
};
|
|
52542
|
+
logistics_trace_all_orders: {
|
|
52543
|
+
Args: {
|
|
52544
|
+
p_limit?: number;
|
|
52545
|
+
p_search?: string;
|
|
52546
|
+
};
|
|
52547
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
52548
|
+
};
|
|
52347
52549
|
logistics_trace_batch: {
|
|
52348
52550
|
Args: {
|
|
52349
52551
|
p: import("../integrations/supabase/types").Json;
|
|
52350
52552
|
};
|
|
52351
52553
|
Returns: number;
|
|
52352
52554
|
};
|
|
52555
|
+
logistics_trace_node: {
|
|
52556
|
+
Args: {
|
|
52557
|
+
p_op?: string;
|
|
52558
|
+
p_status?: string;
|
|
52559
|
+
p_table: string;
|
|
52560
|
+
};
|
|
52561
|
+
Returns: string;
|
|
52562
|
+
};
|
|
52563
|
+
logistics_trace_order_overview: {
|
|
52564
|
+
Args: {
|
|
52565
|
+
p_error_class?: string;
|
|
52566
|
+
p_limit?: number;
|
|
52567
|
+
p_search?: string;
|
|
52568
|
+
p_since?: string;
|
|
52569
|
+
p_source?: string;
|
|
52570
|
+
p_state?: string;
|
|
52571
|
+
p_step?: string;
|
|
52572
|
+
};
|
|
52573
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
52574
|
+
};
|
|
52575
|
+
logistics_trace_order_state: {
|
|
52576
|
+
Args: {
|
|
52577
|
+
p_order_ref: string;
|
|
52578
|
+
};
|
|
52579
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
52580
|
+
};
|
|
52581
|
+
logistics_trace_order_step: {
|
|
52582
|
+
Args: {
|
|
52583
|
+
p_class?: string;
|
|
52584
|
+
p_decision?: string;
|
|
52585
|
+
p_error?: string;
|
|
52586
|
+
p_next_step?: string;
|
|
52587
|
+
p_node: string;
|
|
52588
|
+
p_order_id: string;
|
|
52589
|
+
p_reason?: string;
|
|
52590
|
+
p_status: string;
|
|
52591
|
+
p_step: string;
|
|
52592
|
+
};
|
|
52593
|
+
Returns: undefined;
|
|
52594
|
+
};
|
|
52353
52595
|
logistics_trace_orders: {
|
|
52354
52596
|
Args: {
|
|
52355
52597
|
p_limit?: number;
|
|
@@ -52372,6 +52614,22 @@ export declare const upsertCustomerNote: import("@tanstack/start-client-core").O
|
|
|
52372
52614
|
};
|
|
52373
52615
|
Returns: import("../integrations/supabase/types").Json;
|
|
52374
52616
|
};
|
|
52617
|
+
logistics_trace_version_events: {
|
|
52618
|
+
Args: {
|
|
52619
|
+
p_from?: string;
|
|
52620
|
+
p_limit?: number;
|
|
52621
|
+
p_order_ref: string;
|
|
52622
|
+
p_to?: string;
|
|
52623
|
+
p_version_id: string;
|
|
52624
|
+
};
|
|
52625
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
52626
|
+
};
|
|
52627
|
+
logistics_trace_versions: {
|
|
52628
|
+
Args: {
|
|
52629
|
+
p_order_ref: string;
|
|
52630
|
+
};
|
|
52631
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
52632
|
+
};
|
|
52375
52633
|
logistics_upsert_task: {
|
|
52376
52634
|
Args: {
|
|
52377
52635
|
p_buffer_ref: string;
|