@flowselections/floriday-verkoop-module 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +4 -0
- package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -0
- package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.js +95 -0
- package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +6 -0
- package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -0
- package/dist-lib/components/verkoop/CartAssignmentWizard.js +194 -0
- package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/CreateOrderPage.js +14 -4
- package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +4 -0
- package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -0
- package/dist-lib/components/verkoop/OrderAfleverbrievenCard.js +44 -0
- package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +5 -0
- package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -0
- package/dist-lib/components/verkoop/OrderKarindelingCard.js +160 -0
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.js +6 -3
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +39 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +605 -4
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +605 -4
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +605 -4
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.js +4 -4
- package/dist-lib/integrations/supabase/types.d.ts +613 -4
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cart-lock.functions.d.ts +11356 -0
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -0
- package/dist-lib/lib/cart-lock.functions.js +47 -0
- package/dist-lib/lib/cart-planner.d.ts +38 -0
- package/dist-lib/lib/cart-planner.d.ts.map +1 -0
- package/dist-lib/lib/cart-planner.js +217 -0
- package/dist-lib/lib/cart-replan.functions.d.ts +22729 -0
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -0
- package/dist-lib/lib/cart-replan.functions.js +203 -0
- package/dist-lib/lib/create-order.functions.d.ts +26999 -76
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +158 -3
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +34033 -0
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-auto-fulfillment.functions.js +65 -0
- package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts +21 -0
- package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts.map +1 -0
- package/dist-lib/lib/floriday-auto-fulfillment.server.js +352 -0
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +11351 -0
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-logistic-labels.functions.js +171 -0
- package/dist-lib/lib/floriday-public.functions.d.ts +4237 -44
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.js +45 -47
- package/dist-lib/lib/floriday-writes.functions.d.ts +3025 -20
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.d.ts +2 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.js +46 -20
- package/dist-lib/lib/salesorders.functions.d.ts +1831 -28
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.js +8 -0
- package/dist-lib/lib/tradeitems.functions.d.ts +605 -4
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.d.ts +1 -0
- package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.js +121 -39
- package/package.json +1 -1
|
@@ -8,7 +8,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
8
8
|
Tables: {
|
|
9
9
|
afhandeling_settings: {
|
|
10
10
|
Row: {
|
|
11
|
+
auto_print_delivery_note: boolean;
|
|
12
|
+
auto_process_paused: boolean;
|
|
11
13
|
created_at: string;
|
|
14
|
+
extra_pick_days_with_stickers: number;
|
|
12
15
|
id: string;
|
|
13
16
|
max_workdays_earlier_pick: number;
|
|
14
17
|
pick_days_before_transport: number;
|
|
@@ -22,7 +25,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
22
25
|
user_id: string;
|
|
23
26
|
};
|
|
24
27
|
Insert: {
|
|
28
|
+
auto_print_delivery_note?: boolean;
|
|
29
|
+
auto_process_paused?: boolean;
|
|
25
30
|
created_at?: string;
|
|
31
|
+
extra_pick_days_with_stickers?: number;
|
|
26
32
|
id?: string;
|
|
27
33
|
max_workdays_earlier_pick?: number;
|
|
28
34
|
pick_days_before_transport?: number;
|
|
@@ -36,7 +42,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
36
42
|
user_id: string;
|
|
37
43
|
};
|
|
38
44
|
Update: {
|
|
45
|
+
auto_print_delivery_note?: boolean;
|
|
46
|
+
auto_process_paused?: boolean;
|
|
39
47
|
created_at?: string;
|
|
48
|
+
extra_pick_days_with_stickers?: number;
|
|
40
49
|
id?: string;
|
|
41
50
|
max_workdays_earlier_pick?: number;
|
|
42
51
|
pick_days_before_transport?: number;
|
|
@@ -267,6 +276,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
267
276
|
created_at: string;
|
|
268
277
|
extra_id: string;
|
|
269
278
|
id: string;
|
|
279
|
+
original_unit_price: number | null;
|
|
280
|
+
override_reason: string | null;
|
|
281
|
+
override_unit_price: number | null;
|
|
270
282
|
quantity: number;
|
|
271
283
|
total_price: number;
|
|
272
284
|
unit_price: number;
|
|
@@ -276,6 +288,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
276
288
|
created_at?: string;
|
|
277
289
|
extra_id: string;
|
|
278
290
|
id?: string;
|
|
291
|
+
original_unit_price?: number | null;
|
|
292
|
+
override_reason?: string | null;
|
|
293
|
+
override_unit_price?: number | null;
|
|
279
294
|
quantity?: number;
|
|
280
295
|
total_price?: number;
|
|
281
296
|
unit_price?: number;
|
|
@@ -285,6 +300,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
285
300
|
created_at?: string;
|
|
286
301
|
extra_id?: string;
|
|
287
302
|
id?: string;
|
|
303
|
+
original_unit_price?: number | null;
|
|
304
|
+
override_reason?: string | null;
|
|
305
|
+
override_unit_price?: number | null;
|
|
288
306
|
quantity?: number;
|
|
289
307
|
total_price?: number;
|
|
290
308
|
unit_price?: number;
|
|
@@ -305,11 +323,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
305
323
|
};
|
|
306
324
|
bookings: {
|
|
307
325
|
Row: {
|
|
326
|
+
archive_reason: string | null;
|
|
327
|
+
archived_at: string | null;
|
|
328
|
+
archived_by: string | null;
|
|
308
329
|
company_name: string | null;
|
|
309
330
|
conflict_checked_at: string | null;
|
|
310
331
|
conflict_reason: string | null;
|
|
311
332
|
created_at: string;
|
|
312
333
|
created_by_role: string | null;
|
|
334
|
+
customer_address: string | null;
|
|
313
335
|
customer_email: string | null;
|
|
314
336
|
customer_name: string | null;
|
|
315
337
|
end_time: string;
|
|
@@ -321,7 +343,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
321
343
|
invoiced_at: string | null;
|
|
322
344
|
notes: string | null;
|
|
323
345
|
number_of_people: number;
|
|
346
|
+
overridden_at: string | null;
|
|
347
|
+
overridden_by: string | null;
|
|
348
|
+
override_reason: string | null;
|
|
349
|
+
price_override: boolean;
|
|
324
350
|
room_id: string;
|
|
351
|
+
room_price_override: number | null;
|
|
325
352
|
start_time: string;
|
|
326
353
|
status: string;
|
|
327
354
|
total_excl_vat: number | null;
|
|
@@ -330,11 +357,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
330
357
|
vat_amount: number | null;
|
|
331
358
|
};
|
|
332
359
|
Insert: {
|
|
360
|
+
archive_reason?: string | null;
|
|
361
|
+
archived_at?: string | null;
|
|
362
|
+
archived_by?: string | null;
|
|
333
363
|
company_name?: string | null;
|
|
334
364
|
conflict_checked_at?: string | null;
|
|
335
365
|
conflict_reason?: string | null;
|
|
336
366
|
created_at?: string;
|
|
337
367
|
created_by_role?: string | null;
|
|
368
|
+
customer_address?: string | null;
|
|
338
369
|
customer_email?: string | null;
|
|
339
370
|
customer_name?: string | null;
|
|
340
371
|
end_time: string;
|
|
@@ -346,7 +377,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
346
377
|
invoiced_at?: string | null;
|
|
347
378
|
notes?: string | null;
|
|
348
379
|
number_of_people?: number;
|
|
380
|
+
overridden_at?: string | null;
|
|
381
|
+
overridden_by?: string | null;
|
|
382
|
+
override_reason?: string | null;
|
|
383
|
+
price_override?: boolean;
|
|
349
384
|
room_id: string;
|
|
385
|
+
room_price_override?: number | null;
|
|
350
386
|
start_time: string;
|
|
351
387
|
status?: string;
|
|
352
388
|
total_excl_vat?: number | null;
|
|
@@ -355,11 +391,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
355
391
|
vat_amount?: number | null;
|
|
356
392
|
};
|
|
357
393
|
Update: {
|
|
394
|
+
archive_reason?: string | null;
|
|
395
|
+
archived_at?: string | null;
|
|
396
|
+
archived_by?: string | null;
|
|
358
397
|
company_name?: string | null;
|
|
359
398
|
conflict_checked_at?: string | null;
|
|
360
399
|
conflict_reason?: string | null;
|
|
361
400
|
created_at?: string;
|
|
362
401
|
created_by_role?: string | null;
|
|
402
|
+
customer_address?: string | null;
|
|
363
403
|
customer_email?: string | null;
|
|
364
404
|
customer_name?: string | null;
|
|
365
405
|
end_time?: string;
|
|
@@ -371,7 +411,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
371
411
|
invoiced_at?: string | null;
|
|
372
412
|
notes?: string | null;
|
|
373
413
|
number_of_people?: number;
|
|
414
|
+
overridden_at?: string | null;
|
|
415
|
+
overridden_by?: string | null;
|
|
416
|
+
override_reason?: string | null;
|
|
417
|
+
price_override?: boolean;
|
|
374
418
|
room_id?: string;
|
|
419
|
+
room_price_override?: number | null;
|
|
375
420
|
start_time?: string;
|
|
376
421
|
status?: string;
|
|
377
422
|
total_excl_vat?: number | null;
|
|
@@ -828,6 +873,36 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
828
873
|
};
|
|
829
874
|
Relationships: [];
|
|
830
875
|
};
|
|
876
|
+
cart_replan_queue: {
|
|
877
|
+
Row: {
|
|
878
|
+
attempts: number;
|
|
879
|
+
last_error: string | null;
|
|
880
|
+
order_id: string;
|
|
881
|
+
processed_at: string | null;
|
|
882
|
+
requested_at: string;
|
|
883
|
+
};
|
|
884
|
+
Insert: {
|
|
885
|
+
attempts?: number;
|
|
886
|
+
last_error?: string | null;
|
|
887
|
+
order_id: string;
|
|
888
|
+
processed_at?: string | null;
|
|
889
|
+
requested_at?: string;
|
|
890
|
+
};
|
|
891
|
+
Update: {
|
|
892
|
+
attempts?: number;
|
|
893
|
+
last_error?: string | null;
|
|
894
|
+
order_id?: string;
|
|
895
|
+
processed_at?: string | null;
|
|
896
|
+
requested_at?: string;
|
|
897
|
+
};
|
|
898
|
+
Relationships: [{
|
|
899
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
900
|
+
columns: ["order_id"];
|
|
901
|
+
isOneToOne: true;
|
|
902
|
+
referencedRelation: "orders";
|
|
903
|
+
referencedColumns: ["id"];
|
|
904
|
+
}];
|
|
905
|
+
};
|
|
831
906
|
collections: {
|
|
832
907
|
Row: {
|
|
833
908
|
created_at: string;
|
|
@@ -1170,8 +1245,27 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
1170
1245
|
customers: {
|
|
1171
1246
|
Row: {
|
|
1172
1247
|
address: string | null;
|
|
1248
|
+
address_line1: string | null;
|
|
1249
|
+
address_line2: string | null;
|
|
1250
|
+
address_type: string | null;
|
|
1251
|
+
attention_to: string | null;
|
|
1252
|
+
bank_account_holder: string | null;
|
|
1253
|
+
bank_account_number: string | null;
|
|
1254
|
+
bank_address_line1: string | null;
|
|
1255
|
+
bank_address_line2: string | null;
|
|
1256
|
+
bank_bic: string | null;
|
|
1257
|
+
bank_city: string | null;
|
|
1258
|
+
bank_country: string | null;
|
|
1259
|
+
bank_house_number: string | null;
|
|
1260
|
+
bank_iban: string | null;
|
|
1261
|
+
bank_name: string | null;
|
|
1262
|
+
bank_national_code: string | null;
|
|
1263
|
+
bank_postal_code: string | null;
|
|
1264
|
+
bank_state: string | null;
|
|
1265
|
+
billing_email: string | null;
|
|
1173
1266
|
bio: string | null;
|
|
1174
1267
|
city: string | null;
|
|
1268
|
+
coc_number: string | null;
|
|
1175
1269
|
commercial_name: string | null;
|
|
1176
1270
|
company_name: string;
|
|
1177
1271
|
connection_status: string;
|
|
@@ -1180,21 +1274,28 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
1180
1274
|
created_at: string;
|
|
1181
1275
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
1182
1276
|
customer_class: string | null;
|
|
1277
|
+
customer_number: string | null;
|
|
1278
|
+
discount_days: number | null;
|
|
1279
|
+
discount_percentage: number | null;
|
|
1183
1280
|
email: string | null;
|
|
1184
1281
|
external_id: string | null;
|
|
1282
|
+
fax: string | null;
|
|
1185
1283
|
floriday_connection_id: string | null;
|
|
1186
1284
|
floriday_organization_id: string | null;
|
|
1187
1285
|
floriday_raw: import("../integrations/supabase/types").Json | null;
|
|
1188
1286
|
gln: string | null;
|
|
1189
1287
|
house_number: string | null;
|
|
1288
|
+
icp_country_code: string | null;
|
|
1190
1289
|
id: string;
|
|
1191
1290
|
is_active: boolean;
|
|
1291
|
+
language: string | null;
|
|
1192
1292
|
last_synced_at: string | null;
|
|
1193
1293
|
logo_url: string | null;
|
|
1194
1294
|
markets: string[];
|
|
1195
1295
|
notes: string | null;
|
|
1196
1296
|
organization_type: string | null;
|
|
1197
1297
|
payment_methods: string[];
|
|
1298
|
+
payment_term_days: number | null;
|
|
1198
1299
|
phone: string | null;
|
|
1199
1300
|
postal_code: string | null;
|
|
1200
1301
|
product_groups: string[];
|
|
@@ -1205,13 +1306,33 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
1205
1306
|
sync_status: string;
|
|
1206
1307
|
trade_forms: string[];
|
|
1207
1308
|
updated_at: string;
|
|
1309
|
+
vat_display: string | null;
|
|
1208
1310
|
vat_number: string | null;
|
|
1209
1311
|
website: string | null;
|
|
1210
1312
|
};
|
|
1211
1313
|
Insert: {
|
|
1212
1314
|
address?: string | null;
|
|
1315
|
+
address_line1?: string | null;
|
|
1316
|
+
address_line2?: string | null;
|
|
1317
|
+
address_type?: string | null;
|
|
1318
|
+
attention_to?: string | null;
|
|
1319
|
+
bank_account_holder?: string | null;
|
|
1320
|
+
bank_account_number?: string | null;
|
|
1321
|
+
bank_address_line1?: string | null;
|
|
1322
|
+
bank_address_line2?: string | null;
|
|
1323
|
+
bank_bic?: string | null;
|
|
1324
|
+
bank_city?: string | null;
|
|
1325
|
+
bank_country?: string | null;
|
|
1326
|
+
bank_house_number?: string | null;
|
|
1327
|
+
bank_iban?: string | null;
|
|
1328
|
+
bank_name?: string | null;
|
|
1329
|
+
bank_national_code?: string | null;
|
|
1330
|
+
bank_postal_code?: string | null;
|
|
1331
|
+
bank_state?: string | null;
|
|
1332
|
+
billing_email?: string | null;
|
|
1213
1333
|
bio?: string | null;
|
|
1214
1334
|
city?: string | null;
|
|
1335
|
+
coc_number?: string | null;
|
|
1215
1336
|
commercial_name?: string | null;
|
|
1216
1337
|
company_name: string;
|
|
1217
1338
|
connection_status?: string;
|
|
@@ -1220,21 +1341,28 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
1220
1341
|
created_at?: string;
|
|
1221
1342
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
1222
1343
|
customer_class?: string | null;
|
|
1344
|
+
customer_number?: string | null;
|
|
1345
|
+
discount_days?: number | null;
|
|
1346
|
+
discount_percentage?: number | null;
|
|
1223
1347
|
email?: string | null;
|
|
1224
1348
|
external_id?: string | null;
|
|
1349
|
+
fax?: string | null;
|
|
1225
1350
|
floriday_connection_id?: string | null;
|
|
1226
1351
|
floriday_organization_id?: string | null;
|
|
1227
1352
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
1228
1353
|
gln?: string | null;
|
|
1229
1354
|
house_number?: string | null;
|
|
1355
|
+
icp_country_code?: string | null;
|
|
1230
1356
|
id?: string;
|
|
1231
1357
|
is_active?: boolean;
|
|
1358
|
+
language?: string | null;
|
|
1232
1359
|
last_synced_at?: string | null;
|
|
1233
1360
|
logo_url?: string | null;
|
|
1234
1361
|
markets?: string[];
|
|
1235
1362
|
notes?: string | null;
|
|
1236
1363
|
organization_type?: string | null;
|
|
1237
1364
|
payment_methods?: string[];
|
|
1365
|
+
payment_term_days?: number | null;
|
|
1238
1366
|
phone?: string | null;
|
|
1239
1367
|
postal_code?: string | null;
|
|
1240
1368
|
product_groups?: string[];
|
|
@@ -1245,13 +1373,33 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
1245
1373
|
sync_status?: string;
|
|
1246
1374
|
trade_forms?: string[];
|
|
1247
1375
|
updated_at?: string;
|
|
1376
|
+
vat_display?: string | null;
|
|
1248
1377
|
vat_number?: string | null;
|
|
1249
1378
|
website?: string | null;
|
|
1250
1379
|
};
|
|
1251
1380
|
Update: {
|
|
1252
1381
|
address?: string | null;
|
|
1382
|
+
address_line1?: string | null;
|
|
1383
|
+
address_line2?: string | null;
|
|
1384
|
+
address_type?: string | null;
|
|
1385
|
+
attention_to?: string | null;
|
|
1386
|
+
bank_account_holder?: string | null;
|
|
1387
|
+
bank_account_number?: string | null;
|
|
1388
|
+
bank_address_line1?: string | null;
|
|
1389
|
+
bank_address_line2?: string | null;
|
|
1390
|
+
bank_bic?: string | null;
|
|
1391
|
+
bank_city?: string | null;
|
|
1392
|
+
bank_country?: string | null;
|
|
1393
|
+
bank_house_number?: string | null;
|
|
1394
|
+
bank_iban?: string | null;
|
|
1395
|
+
bank_name?: string | null;
|
|
1396
|
+
bank_national_code?: string | null;
|
|
1397
|
+
bank_postal_code?: string | null;
|
|
1398
|
+
bank_state?: string | null;
|
|
1399
|
+
billing_email?: string | null;
|
|
1253
1400
|
bio?: string | null;
|
|
1254
1401
|
city?: string | null;
|
|
1402
|
+
coc_number?: string | null;
|
|
1255
1403
|
commercial_name?: string | null;
|
|
1256
1404
|
company_name?: string;
|
|
1257
1405
|
connection_status?: string;
|
|
@@ -1260,21 +1408,28 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
1260
1408
|
created_at?: string;
|
|
1261
1409
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
1262
1410
|
customer_class?: string | null;
|
|
1411
|
+
customer_number?: string | null;
|
|
1412
|
+
discount_days?: number | null;
|
|
1413
|
+
discount_percentage?: number | null;
|
|
1263
1414
|
email?: string | null;
|
|
1264
1415
|
external_id?: string | null;
|
|
1416
|
+
fax?: string | null;
|
|
1265
1417
|
floriday_connection_id?: string | null;
|
|
1266
1418
|
floriday_organization_id?: string | null;
|
|
1267
1419
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
1268
1420
|
gln?: string | null;
|
|
1269
1421
|
house_number?: string | null;
|
|
1422
|
+
icp_country_code?: string | null;
|
|
1270
1423
|
id?: string;
|
|
1271
1424
|
is_active?: boolean;
|
|
1425
|
+
language?: string | null;
|
|
1272
1426
|
last_synced_at?: string | null;
|
|
1273
1427
|
logo_url?: string | null;
|
|
1274
1428
|
markets?: string[];
|
|
1275
1429
|
notes?: string | null;
|
|
1276
1430
|
organization_type?: string | null;
|
|
1277
1431
|
payment_methods?: string[];
|
|
1432
|
+
payment_term_days?: number | null;
|
|
1278
1433
|
phone?: string | null;
|
|
1279
1434
|
postal_code?: string | null;
|
|
1280
1435
|
product_groups?: string[];
|
|
@@ -1285,6 +1440,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
1285
1440
|
sync_status?: string;
|
|
1286
1441
|
trade_forms?: string[];
|
|
1287
1442
|
updated_at?: string;
|
|
1443
|
+
vat_display?: string | null;
|
|
1288
1444
|
vat_number?: string | null;
|
|
1289
1445
|
website?: string | null;
|
|
1290
1446
|
};
|
|
@@ -2953,34 +3109,52 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
2953
3109
|
Row: {
|
|
2954
3110
|
catalog_key: string | null;
|
|
2955
3111
|
catalog_url: string;
|
|
3112
|
+
client_id: string | null;
|
|
3113
|
+
client_secret_ciphertext: string | null;
|
|
3114
|
+
client_secret_last4: string | null;
|
|
2956
3115
|
created_at: string;
|
|
2957
3116
|
id: number;
|
|
2958
3117
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
2959
3118
|
last_test_at: string | null;
|
|
2960
3119
|
last_test_error: string | null;
|
|
2961
3120
|
last_test_ok: boolean | null;
|
|
3121
|
+
last_token_test_at: string | null;
|
|
3122
|
+
last_token_test_error: string | null;
|
|
3123
|
+
last_token_test_ok: boolean | null;
|
|
2962
3124
|
updated_at: string;
|
|
2963
3125
|
};
|
|
2964
3126
|
Insert: {
|
|
2965
3127
|
catalog_key?: string | null;
|
|
2966
3128
|
catalog_url?: string;
|
|
3129
|
+
client_id?: string | null;
|
|
3130
|
+
client_secret_ciphertext?: string | null;
|
|
3131
|
+
client_secret_last4?: string | null;
|
|
2967
3132
|
created_at?: string;
|
|
2968
3133
|
id?: number;
|
|
2969
3134
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2970
3135
|
last_test_at?: string | null;
|
|
2971
3136
|
last_test_error?: string | null;
|
|
2972
3137
|
last_test_ok?: boolean | null;
|
|
3138
|
+
last_token_test_at?: string | null;
|
|
3139
|
+
last_token_test_error?: string | null;
|
|
3140
|
+
last_token_test_ok?: boolean | null;
|
|
2973
3141
|
updated_at?: string;
|
|
2974
3142
|
};
|
|
2975
3143
|
Update: {
|
|
2976
3144
|
catalog_key?: string | null;
|
|
2977
3145
|
catalog_url?: string;
|
|
3146
|
+
client_id?: string | null;
|
|
3147
|
+
client_secret_ciphertext?: string | null;
|
|
3148
|
+
client_secret_last4?: string | null;
|
|
2978
3149
|
created_at?: string;
|
|
2979
3150
|
id?: number;
|
|
2980
3151
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2981
3152
|
last_test_at?: string | null;
|
|
2982
3153
|
last_test_error?: string | null;
|
|
2983
3154
|
last_test_ok?: boolean | null;
|
|
3155
|
+
last_token_test_at?: string | null;
|
|
3156
|
+
last_token_test_error?: string | null;
|
|
3157
|
+
last_token_test_ok?: boolean | null;
|
|
2984
3158
|
updated_at?: string;
|
|
2985
3159
|
};
|
|
2986
3160
|
Relationships: [];
|
|
@@ -3213,6 +3387,54 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
3213
3387
|
referencedColumns: ["id"];
|
|
3214
3388
|
}];
|
|
3215
3389
|
};
|
|
3390
|
+
floriday_auto_fulfillment_log: {
|
|
3391
|
+
Row: {
|
|
3392
|
+
attempts: number;
|
|
3393
|
+
connection_id: string;
|
|
3394
|
+
created_at: string;
|
|
3395
|
+
error: string | null;
|
|
3396
|
+
fulfillment_order_id: string | null;
|
|
3397
|
+
id: string;
|
|
3398
|
+
last_attempt_at: string | null;
|
|
3399
|
+
reason: string | null;
|
|
3400
|
+
sales_order_id: string;
|
|
3401
|
+
status: string;
|
|
3402
|
+
updated_at: string;
|
|
3403
|
+
};
|
|
3404
|
+
Insert: {
|
|
3405
|
+
attempts?: number;
|
|
3406
|
+
connection_id: string;
|
|
3407
|
+
created_at?: string;
|
|
3408
|
+
error?: string | null;
|
|
3409
|
+
fulfillment_order_id?: string | null;
|
|
3410
|
+
id?: string;
|
|
3411
|
+
last_attempt_at?: string | null;
|
|
3412
|
+
reason?: string | null;
|
|
3413
|
+
sales_order_id: string;
|
|
3414
|
+
status?: string;
|
|
3415
|
+
updated_at?: string;
|
|
3416
|
+
};
|
|
3417
|
+
Update: {
|
|
3418
|
+
attempts?: number;
|
|
3419
|
+
connection_id?: string;
|
|
3420
|
+
created_at?: string;
|
|
3421
|
+
error?: string | null;
|
|
3422
|
+
fulfillment_order_id?: string | null;
|
|
3423
|
+
id?: string;
|
|
3424
|
+
last_attempt_at?: string | null;
|
|
3425
|
+
reason?: string | null;
|
|
3426
|
+
sales_order_id?: string;
|
|
3427
|
+
status?: string;
|
|
3428
|
+
updated_at?: string;
|
|
3429
|
+
};
|
|
3430
|
+
Relationships: [{
|
|
3431
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3432
|
+
columns: ["connection_id"];
|
|
3433
|
+
isOneToOne: false;
|
|
3434
|
+
referencedRelation: "floriday_connections";
|
|
3435
|
+
referencedColumns: ["id"];
|
|
3436
|
+
}];
|
|
3437
|
+
};
|
|
3216
3438
|
floriday_base_items_cache: {
|
|
3217
3439
|
Row: {
|
|
3218
3440
|
connection_id: string;
|
|
@@ -4317,6 +4539,24 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
4317
4539
|
referencedColumns: ["id"];
|
|
4318
4540
|
}];
|
|
4319
4541
|
};
|
|
4542
|
+
floriday_rate_limit_state: {
|
|
4543
|
+
Row: {
|
|
4544
|
+
bucket: string;
|
|
4545
|
+
last_refill_at: string;
|
|
4546
|
+
tokens: number;
|
|
4547
|
+
};
|
|
4548
|
+
Insert: {
|
|
4549
|
+
bucket: string;
|
|
4550
|
+
last_refill_at?: string;
|
|
4551
|
+
tokens: number;
|
|
4552
|
+
};
|
|
4553
|
+
Update: {
|
|
4554
|
+
bucket?: string;
|
|
4555
|
+
last_refill_at?: string;
|
|
4556
|
+
tokens?: number;
|
|
4557
|
+
};
|
|
4558
|
+
Relationships: [];
|
|
4559
|
+
};
|
|
4320
4560
|
floriday_resource_schemas: {
|
|
4321
4561
|
Row: {
|
|
4322
4562
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -4740,6 +4980,60 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
4740
4980
|
referencedColumns: ["id"];
|
|
4741
4981
|
}];
|
|
4742
4982
|
};
|
|
4983
|
+
flow_role_assignments: {
|
|
4984
|
+
Row: {
|
|
4985
|
+
created_at: string;
|
|
4986
|
+
id: string;
|
|
4987
|
+
role_id: string;
|
|
4988
|
+
user_id: string;
|
|
4989
|
+
};
|
|
4990
|
+
Insert: {
|
|
4991
|
+
created_at?: string;
|
|
4992
|
+
id?: string;
|
|
4993
|
+
role_id: string;
|
|
4994
|
+
user_id: string;
|
|
4995
|
+
};
|
|
4996
|
+
Update: {
|
|
4997
|
+
created_at?: string;
|
|
4998
|
+
id?: string;
|
|
4999
|
+
role_id?: string;
|
|
5000
|
+
user_id?: string;
|
|
5001
|
+
};
|
|
5002
|
+
Relationships: [{
|
|
5003
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
5004
|
+
columns: ["role_id"];
|
|
5005
|
+
isOneToOne: false;
|
|
5006
|
+
referencedRelation: "flow_roles";
|
|
5007
|
+
referencedColumns: ["id"];
|
|
5008
|
+
}];
|
|
5009
|
+
};
|
|
5010
|
+
flow_roles: {
|
|
5011
|
+
Row: {
|
|
5012
|
+
created_at: string;
|
|
5013
|
+
description: string | null;
|
|
5014
|
+
id: string;
|
|
5015
|
+
module_access: string[];
|
|
5016
|
+
name: string;
|
|
5017
|
+
updated_at: string;
|
|
5018
|
+
};
|
|
5019
|
+
Insert: {
|
|
5020
|
+
created_at?: string;
|
|
5021
|
+
description?: string | null;
|
|
5022
|
+
id?: string;
|
|
5023
|
+
module_access?: string[];
|
|
5024
|
+
name: string;
|
|
5025
|
+
updated_at?: string;
|
|
5026
|
+
};
|
|
5027
|
+
Update: {
|
|
5028
|
+
created_at?: string;
|
|
5029
|
+
description?: string | null;
|
|
5030
|
+
id?: string;
|
|
5031
|
+
module_access?: string[];
|
|
5032
|
+
name?: string;
|
|
5033
|
+
updated_at?: string;
|
|
5034
|
+
};
|
|
5035
|
+
Relationships: [];
|
|
5036
|
+
};
|
|
4743
5037
|
imap_accounts: {
|
|
4744
5038
|
Row: {
|
|
4745
5039
|
created_at: string;
|
|
@@ -5371,6 +5665,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5371
5665
|
matched_customer_id: string | null;
|
|
5372
5666
|
message_id: string;
|
|
5373
5667
|
notes: string | null;
|
|
5668
|
+
order_number: string | null;
|
|
5374
5669
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
5375
5670
|
reviewed_at: string | null;
|
|
5376
5671
|
reviewed_by: string | null;
|
|
@@ -5386,6 +5681,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5386
5681
|
matched_customer_id?: string | null;
|
|
5387
5682
|
message_id: string;
|
|
5388
5683
|
notes?: string | null;
|
|
5684
|
+
order_number?: string | null;
|
|
5389
5685
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5390
5686
|
reviewed_at?: string | null;
|
|
5391
5687
|
reviewed_by?: string | null;
|
|
@@ -5401,6 +5697,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
5401
5697
|
matched_customer_id?: string | null;
|
|
5402
5698
|
message_id?: string;
|
|
5403
5699
|
notes?: string | null;
|
|
5700
|
+
order_number?: string | null;
|
|
5404
5701
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
5405
5702
|
reviewed_at?: string | null;
|
|
5406
5703
|
reviewed_by?: string | null;
|
|
@@ -6257,6 +6554,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6257
6554
|
id: string;
|
|
6258
6555
|
items: import("../integrations/supabase/types").Json;
|
|
6259
6556
|
notes: string | null;
|
|
6557
|
+
order_number: string | null;
|
|
6260
6558
|
recipient_id: string;
|
|
6261
6559
|
total_amount: number;
|
|
6262
6560
|
};
|
|
@@ -6270,6 +6568,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6270
6568
|
id?: string;
|
|
6271
6569
|
items?: import("../integrations/supabase/types").Json;
|
|
6272
6570
|
notes?: string | null;
|
|
6571
|
+
order_number?: string | null;
|
|
6273
6572
|
recipient_id: string;
|
|
6274
6573
|
total_amount?: number;
|
|
6275
6574
|
};
|
|
@@ -6283,6 +6582,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6283
6582
|
id?: string;
|
|
6284
6583
|
items?: import("../integrations/supabase/types").Json;
|
|
6285
6584
|
notes?: string | null;
|
|
6585
|
+
order_number?: string | null;
|
|
6286
6586
|
recipient_id?: string;
|
|
6287
6587
|
total_amount?: number;
|
|
6288
6588
|
};
|
|
@@ -6442,6 +6742,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6442
6742
|
crates_per_layer: number;
|
|
6443
6743
|
created_at: string;
|
|
6444
6744
|
id: string;
|
|
6745
|
+
layer_fraction: number;
|
|
6746
|
+
layer_share_pct: number;
|
|
6747
|
+
layers_per_cart: number;
|
|
6445
6748
|
order_item_id: string | null;
|
|
6446
6749
|
plants_per_crate: number;
|
|
6447
6750
|
product_id: string | null;
|
|
@@ -6453,6 +6756,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6453
6756
|
crates_per_layer?: number;
|
|
6454
6757
|
created_at?: string;
|
|
6455
6758
|
id?: string;
|
|
6759
|
+
layer_fraction?: number;
|
|
6760
|
+
layer_share_pct?: number;
|
|
6761
|
+
layers_per_cart?: number;
|
|
6456
6762
|
order_item_id?: string | null;
|
|
6457
6763
|
plants_per_crate?: number;
|
|
6458
6764
|
product_id?: string | null;
|
|
@@ -6464,6 +6770,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6464
6770
|
crates_per_layer?: number;
|
|
6465
6771
|
created_at?: string;
|
|
6466
6772
|
id?: string;
|
|
6773
|
+
layer_fraction?: number;
|
|
6774
|
+
layer_share_pct?: number;
|
|
6775
|
+
layers_per_cart?: number;
|
|
6467
6776
|
order_item_id?: string | null;
|
|
6468
6777
|
plants_per_crate?: number;
|
|
6469
6778
|
product_id?: string | null;
|
|
@@ -6491,33 +6800,45 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6491
6800
|
};
|
|
6492
6801
|
order_carts: {
|
|
6493
6802
|
Row: {
|
|
6803
|
+
algorithm_version: number;
|
|
6494
6804
|
cart_number: number;
|
|
6495
6805
|
created_at: string;
|
|
6496
6806
|
id: string;
|
|
6497
6807
|
is_auto: boolean;
|
|
6498
6808
|
is_complete: boolean;
|
|
6499
6809
|
notes: string | null;
|
|
6810
|
+
occupancy_pct: number;
|
|
6500
6811
|
order_id: string;
|
|
6812
|
+
source: string;
|
|
6813
|
+
total_layers_used: number;
|
|
6501
6814
|
updated_at: string;
|
|
6502
6815
|
};
|
|
6503
6816
|
Insert: {
|
|
6817
|
+
algorithm_version?: number;
|
|
6504
6818
|
cart_number: number;
|
|
6505
6819
|
created_at?: string;
|
|
6506
6820
|
id?: string;
|
|
6507
6821
|
is_auto?: boolean;
|
|
6508
6822
|
is_complete?: boolean;
|
|
6509
6823
|
notes?: string | null;
|
|
6824
|
+
occupancy_pct?: number;
|
|
6510
6825
|
order_id: string;
|
|
6826
|
+
source?: string;
|
|
6827
|
+
total_layers_used?: number;
|
|
6511
6828
|
updated_at?: string;
|
|
6512
6829
|
};
|
|
6513
6830
|
Update: {
|
|
6831
|
+
algorithm_version?: number;
|
|
6514
6832
|
cart_number?: number;
|
|
6515
6833
|
created_at?: string;
|
|
6516
6834
|
id?: string;
|
|
6517
6835
|
is_auto?: boolean;
|
|
6518
6836
|
is_complete?: boolean;
|
|
6519
6837
|
notes?: string | null;
|
|
6838
|
+
occupancy_pct?: number;
|
|
6520
6839
|
order_id?: string;
|
|
6840
|
+
source?: string;
|
|
6841
|
+
total_layers_used?: number;
|
|
6521
6842
|
updated_at?: string;
|
|
6522
6843
|
};
|
|
6523
6844
|
Relationships: [{
|
|
@@ -6670,6 +6991,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6670
6991
|
order_date: string;
|
|
6671
6992
|
order_number: string;
|
|
6672
6993
|
order_source: string;
|
|
6994
|
+
plan_locked_at: string | null;
|
|
6995
|
+
plan_locked_ref: string | null;
|
|
6673
6996
|
status: string;
|
|
6674
6997
|
total: string;
|
|
6675
6998
|
updated_at: string;
|
|
@@ -6686,6 +7009,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6686
7009
|
order_date?: string;
|
|
6687
7010
|
order_number: string;
|
|
6688
7011
|
order_source?: string;
|
|
7012
|
+
plan_locked_at?: string | null;
|
|
7013
|
+
plan_locked_ref?: string | null;
|
|
6689
7014
|
status?: string;
|
|
6690
7015
|
total?: string;
|
|
6691
7016
|
updated_at?: string;
|
|
@@ -6702,6 +7027,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
6702
7027
|
order_date?: string;
|
|
6703
7028
|
order_number?: string;
|
|
6704
7029
|
order_source?: string;
|
|
7030
|
+
plan_locked_at?: string | null;
|
|
7031
|
+
plan_locked_ref?: string | null;
|
|
6705
7032
|
status?: string;
|
|
6706
7033
|
total?: string;
|
|
6707
7034
|
updated_at?: string;
|
|
@@ -7070,28 +7397,34 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
7070
7397
|
};
|
|
7071
7398
|
profiles: {
|
|
7072
7399
|
Row: {
|
|
7400
|
+
address: string | null;
|
|
7073
7401
|
created_at: string;
|
|
7074
7402
|
display_name: string | null;
|
|
7075
7403
|
email: string | null;
|
|
7076
7404
|
id: string;
|
|
7405
|
+
is_superadmin: boolean;
|
|
7077
7406
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
7078
7407
|
tenant_id: string | null;
|
|
7079
7408
|
updated_at: string;
|
|
7080
7409
|
};
|
|
7081
7410
|
Insert: {
|
|
7411
|
+
address?: string | null;
|
|
7082
7412
|
created_at?: string;
|
|
7083
7413
|
display_name?: string | null;
|
|
7084
7414
|
email?: string | null;
|
|
7085
7415
|
id: string;
|
|
7416
|
+
is_superadmin?: boolean;
|
|
7086
7417
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
7087
7418
|
tenant_id?: string | null;
|
|
7088
7419
|
updated_at?: string;
|
|
7089
7420
|
};
|
|
7090
7421
|
Update: {
|
|
7422
|
+
address?: string | null;
|
|
7091
7423
|
created_at?: string;
|
|
7092
7424
|
display_name?: string | null;
|
|
7093
7425
|
email?: string | null;
|
|
7094
7426
|
id?: string;
|
|
7427
|
+
is_superadmin?: boolean;
|
|
7095
7428
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
7096
7429
|
tenant_id?: string | null;
|
|
7097
7430
|
updated_at?: string;
|
|
@@ -7881,6 +8214,24 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
7881
8214
|
};
|
|
7882
8215
|
Relationships: [];
|
|
7883
8216
|
};
|
|
8217
|
+
sidebar_config: {
|
|
8218
|
+
Row: {
|
|
8219
|
+
id: string;
|
|
8220
|
+
module_order: string[];
|
|
8221
|
+
updated_at: string;
|
|
8222
|
+
};
|
|
8223
|
+
Insert: {
|
|
8224
|
+
id?: string;
|
|
8225
|
+
module_order?: string[];
|
|
8226
|
+
updated_at?: string;
|
|
8227
|
+
};
|
|
8228
|
+
Update: {
|
|
8229
|
+
id?: string;
|
|
8230
|
+
module_order?: string[];
|
|
8231
|
+
updated_at?: string;
|
|
8232
|
+
};
|
|
8233
|
+
Relationships: [];
|
|
8234
|
+
};
|
|
7884
8235
|
stock_import_runs: {
|
|
7885
8236
|
Row: {
|
|
7886
8237
|
connection_id: string | null;
|
|
@@ -7939,7 +8290,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
7939
8290
|
reason: string | null;
|
|
7940
8291
|
reserved_after: number | null;
|
|
7941
8292
|
reserved_before: number | null;
|
|
7942
|
-
trade_item_key: string;
|
|
8293
|
+
trade_item_key: string | null;
|
|
7943
8294
|
};
|
|
7944
8295
|
Insert: {
|
|
7945
8296
|
connection_id?: string | null;
|
|
@@ -7956,7 +8307,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
7956
8307
|
reason?: string | null;
|
|
7957
8308
|
reserved_after?: number | null;
|
|
7958
8309
|
reserved_before?: number | null;
|
|
7959
|
-
trade_item_key
|
|
8310
|
+
trade_item_key?: string | null;
|
|
7960
8311
|
};
|
|
7961
8312
|
Update: {
|
|
7962
8313
|
connection_id?: string | null;
|
|
@@ -7973,7 +8324,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
7973
8324
|
reason?: string | null;
|
|
7974
8325
|
reserved_after?: number | null;
|
|
7975
8326
|
reserved_before?: number | null;
|
|
7976
|
-
trade_item_key?: string;
|
|
8327
|
+
trade_item_key?: string | null;
|
|
7977
8328
|
};
|
|
7978
8329
|
Relationships: [];
|
|
7979
8330
|
};
|
|
@@ -8316,6 +8667,114 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
8316
8667
|
};
|
|
8317
8668
|
Relationships: [];
|
|
8318
8669
|
};
|
|
8670
|
+
trade_item_supply_lines: {
|
|
8671
|
+
Row: {
|
|
8672
|
+
available_quantity: number | null;
|
|
8673
|
+
connection_id: string;
|
|
8674
|
+
created_at: string;
|
|
8675
|
+
currency: string | null;
|
|
8676
|
+
endpoint_family: string | null;
|
|
8677
|
+
environment: string | null;
|
|
8678
|
+
id: string;
|
|
8679
|
+
last_error: string | null;
|
|
8680
|
+
last_status: number | null;
|
|
8681
|
+
packing_configuration_id: string | null;
|
|
8682
|
+
period_end: string | null;
|
|
8683
|
+
period_start: string | null;
|
|
8684
|
+
price_per_piece: number | null;
|
|
8685
|
+
sales_unit: string | null;
|
|
8686
|
+
supply_line_id: string | null;
|
|
8687
|
+
supply_type: string;
|
|
8688
|
+
trade_item_id: string;
|
|
8689
|
+
updated_at: string;
|
|
8690
|
+
user_id: string;
|
|
8691
|
+
week: number | null;
|
|
8692
|
+
year: number | null;
|
|
8693
|
+
};
|
|
8694
|
+
Insert: {
|
|
8695
|
+
available_quantity?: number | null;
|
|
8696
|
+
connection_id: string;
|
|
8697
|
+
created_at?: string;
|
|
8698
|
+
currency?: string | null;
|
|
8699
|
+
endpoint_family?: string | null;
|
|
8700
|
+
environment?: string | null;
|
|
8701
|
+
id?: string;
|
|
8702
|
+
last_error?: string | null;
|
|
8703
|
+
last_status?: number | null;
|
|
8704
|
+
packing_configuration_id?: string | null;
|
|
8705
|
+
period_end?: string | null;
|
|
8706
|
+
period_start?: string | null;
|
|
8707
|
+
price_per_piece?: number | null;
|
|
8708
|
+
sales_unit?: string | null;
|
|
8709
|
+
supply_line_id?: string | null;
|
|
8710
|
+
supply_type?: string;
|
|
8711
|
+
trade_item_id: string;
|
|
8712
|
+
updated_at?: string;
|
|
8713
|
+
user_id: string;
|
|
8714
|
+
week?: number | null;
|
|
8715
|
+
year?: number | null;
|
|
8716
|
+
};
|
|
8717
|
+
Update: {
|
|
8718
|
+
available_quantity?: number | null;
|
|
8719
|
+
connection_id?: string;
|
|
8720
|
+
created_at?: string;
|
|
8721
|
+
currency?: string | null;
|
|
8722
|
+
endpoint_family?: string | null;
|
|
8723
|
+
environment?: string | null;
|
|
8724
|
+
id?: string;
|
|
8725
|
+
last_error?: string | null;
|
|
8726
|
+
last_status?: number | null;
|
|
8727
|
+
packing_configuration_id?: string | null;
|
|
8728
|
+
period_end?: string | null;
|
|
8729
|
+
period_start?: string | null;
|
|
8730
|
+
price_per_piece?: number | null;
|
|
8731
|
+
sales_unit?: string | null;
|
|
8732
|
+
supply_line_id?: string | null;
|
|
8733
|
+
supply_type?: string;
|
|
8734
|
+
trade_item_id?: string;
|
|
8735
|
+
updated_at?: string;
|
|
8736
|
+
user_id?: string;
|
|
8737
|
+
week?: number | null;
|
|
8738
|
+
year?: number | null;
|
|
8739
|
+
};
|
|
8740
|
+
Relationships: [];
|
|
8741
|
+
};
|
|
8742
|
+
trade_item_warehouse_preferences: {
|
|
8743
|
+
Row: {
|
|
8744
|
+
connection_id: string;
|
|
8745
|
+
created_at: string;
|
|
8746
|
+
id: string;
|
|
8747
|
+
trade_item_id: string;
|
|
8748
|
+
updated_at: string;
|
|
8749
|
+
warehouse_id: string;
|
|
8750
|
+
warehouse_name: string | null;
|
|
8751
|
+
};
|
|
8752
|
+
Insert: {
|
|
8753
|
+
connection_id: string;
|
|
8754
|
+
created_at?: string;
|
|
8755
|
+
id?: string;
|
|
8756
|
+
trade_item_id: string;
|
|
8757
|
+
updated_at?: string;
|
|
8758
|
+
warehouse_id: string;
|
|
8759
|
+
warehouse_name?: string | null;
|
|
8760
|
+
};
|
|
8761
|
+
Update: {
|
|
8762
|
+
connection_id?: string;
|
|
8763
|
+
created_at?: string;
|
|
8764
|
+
id?: string;
|
|
8765
|
+
trade_item_id?: string;
|
|
8766
|
+
updated_at?: string;
|
|
8767
|
+
warehouse_id?: string;
|
|
8768
|
+
warehouse_name?: string | null;
|
|
8769
|
+
};
|
|
8770
|
+
Relationships: [{
|
|
8771
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8772
|
+
columns: ["connection_id"];
|
|
8773
|
+
isOneToOne: false;
|
|
8774
|
+
referencedRelation: "floriday_connections";
|
|
8775
|
+
referencedColumns: ["id"];
|
|
8776
|
+
}];
|
|
8777
|
+
};
|
|
8319
8778
|
twinfield_connections: {
|
|
8320
8779
|
Row: {
|
|
8321
8780
|
access_token: string | null;
|
|
@@ -8635,6 +9094,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
8635
9094
|
default_invoice_type: string;
|
|
8636
9095
|
default_payment_term_days: number;
|
|
8637
9096
|
default_vat_code: string;
|
|
9097
|
+
invoice_enabled_ao: boolean;
|
|
9098
|
+
invoice_enabled_fo: boolean;
|
|
9099
|
+
invoice_enabled_ho: boolean;
|
|
9100
|
+
invoice_enabled_mo: boolean;
|
|
8638
9101
|
updated_at: string;
|
|
8639
9102
|
user_id: string;
|
|
8640
9103
|
};
|
|
@@ -8644,6 +9107,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
8644
9107
|
default_invoice_type?: string;
|
|
8645
9108
|
default_payment_term_days?: number;
|
|
8646
9109
|
default_vat_code?: string;
|
|
9110
|
+
invoice_enabled_ao?: boolean;
|
|
9111
|
+
invoice_enabled_fo?: boolean;
|
|
9112
|
+
invoice_enabled_ho?: boolean;
|
|
9113
|
+
invoice_enabled_mo?: boolean;
|
|
8647
9114
|
updated_at?: string;
|
|
8648
9115
|
user_id: string;
|
|
8649
9116
|
};
|
|
@@ -8653,6 +9120,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
8653
9120
|
default_invoice_type?: string;
|
|
8654
9121
|
default_payment_term_days?: number;
|
|
8655
9122
|
default_vat_code?: string;
|
|
9123
|
+
invoice_enabled_ao?: boolean;
|
|
9124
|
+
invoice_enabled_fo?: boolean;
|
|
9125
|
+
invoice_enabled_ho?: boolean;
|
|
9126
|
+
invoice_enabled_mo?: boolean;
|
|
8656
9127
|
updated_at?: string;
|
|
8657
9128
|
user_id?: string;
|
|
8658
9129
|
};
|
|
@@ -9947,6 +10418,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9947
10418
|
order_number: string;
|
|
9948
10419
|
}[];
|
|
9949
10420
|
};
|
|
10421
|
+
autolink_product_to_floriday: {
|
|
10422
|
+
Args: {
|
|
10423
|
+
p_product_id: string;
|
|
10424
|
+
};
|
|
10425
|
+
Returns: string;
|
|
10426
|
+
};
|
|
9950
10427
|
backfill_open_order_reservations: {
|
|
9951
10428
|
Args: never;
|
|
9952
10429
|
Returns: {
|
|
@@ -9983,7 +10460,19 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
9983
10460
|
};
|
|
9984
10461
|
cleanup_old_bookings: {
|
|
9985
10462
|
Args: never;
|
|
9986
|
-
Returns:
|
|
10463
|
+
Returns: undefined;
|
|
10464
|
+
};
|
|
10465
|
+
consume_floriday_rate_limit: {
|
|
10466
|
+
Args: {
|
|
10467
|
+
p_bucket: string;
|
|
10468
|
+
p_capacity: number;
|
|
10469
|
+
p_cost?: number;
|
|
10470
|
+
p_refill_per_sec: number;
|
|
10471
|
+
};
|
|
10472
|
+
Returns: {
|
|
10473
|
+
granted: boolean;
|
|
10474
|
+
wait_ms: number;
|
|
10475
|
+
}[];
|
|
9987
10476
|
};
|
|
9988
10477
|
control_get_todays_carts: {
|
|
9989
10478
|
Args: never;
|
|
@@ -10065,6 +10554,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10065
10554
|
status: string;
|
|
10066
10555
|
}[];
|
|
10067
10556
|
};
|
|
10557
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10558
|
+
Args: {
|
|
10559
|
+
p_order_id: string;
|
|
10560
|
+
};
|
|
10561
|
+
Returns: undefined;
|
|
10562
|
+
};
|
|
10068
10563
|
ensure_trade_item_stock_row: {
|
|
10069
10564
|
Args: {
|
|
10070
10565
|
p_key: string;
|
|
@@ -10171,6 +10666,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10171
10666
|
office_code: string;
|
|
10172
10667
|
}[];
|
|
10173
10668
|
};
|
|
10669
|
+
get_floricode_record_counts: {
|
|
10670
|
+
Args: never;
|
|
10671
|
+
Returns: {
|
|
10672
|
+
count: number;
|
|
10673
|
+
resource: string;
|
|
10674
|
+
}[];
|
|
10675
|
+
};
|
|
10174
10676
|
get_floriday_agreements_active: {
|
|
10175
10677
|
Args: {
|
|
10176
10678
|
p_on_date?: string;
|
|
@@ -10262,6 +10764,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10262
10764
|
};
|
|
10263
10765
|
Returns: import("../integrations/supabase/types").Json;
|
|
10264
10766
|
};
|
|
10767
|
+
get_offer_delivery_options: {
|
|
10768
|
+
Args: {
|
|
10769
|
+
p_code: string;
|
|
10770
|
+
};
|
|
10771
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10772
|
+
};
|
|
10265
10773
|
get_offer_recipient_by_code: {
|
|
10266
10774
|
Args: {
|
|
10267
10775
|
p_code: string;
|
|
@@ -10326,6 +10834,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10326
10834
|
Args: never;
|
|
10327
10835
|
Returns: boolean;
|
|
10328
10836
|
};
|
|
10837
|
+
is_superadmin: {
|
|
10838
|
+
Args: {
|
|
10839
|
+
_user_id: string;
|
|
10840
|
+
};
|
|
10841
|
+
Returns: boolean;
|
|
10842
|
+
};
|
|
10329
10843
|
local_effective_price: {
|
|
10330
10844
|
Args: {
|
|
10331
10845
|
_customer_id: string;
|
|
@@ -10360,6 +10874,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10360
10874
|
};
|
|
10361
10875
|
Returns: string;
|
|
10362
10876
|
};
|
|
10877
|
+
next_order_number_for_date: {
|
|
10878
|
+
Args: {
|
|
10879
|
+
p_created_at?: string;
|
|
10880
|
+
p_prefix: string;
|
|
10881
|
+
};
|
|
10882
|
+
Returns: string;
|
|
10883
|
+
};
|
|
10363
10884
|
next_work_order_number: {
|
|
10364
10885
|
Args: {
|
|
10365
10886
|
p_parent_work_order_id?: string;
|
|
@@ -10367,6 +10888,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10367
10888
|
};
|
|
10368
10889
|
Returns: string;
|
|
10369
10890
|
};
|
|
10891
|
+
normalize_order_source: {
|
|
10892
|
+
Args: {
|
|
10893
|
+
p_src: string;
|
|
10894
|
+
};
|
|
10895
|
+
Returns: string;
|
|
10896
|
+
};
|
|
10370
10897
|
normalize_vat: {
|
|
10371
10898
|
Args: {
|
|
10372
10899
|
v: string;
|
|
@@ -10381,10 +10908,21 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10381
10908
|
};
|
|
10382
10909
|
Returns: boolean;
|
|
10383
10910
|
};
|
|
10911
|
+
order_number_prefix: {
|
|
10912
|
+
Args: {
|
|
10913
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
10914
|
+
p_order_source: string;
|
|
10915
|
+
};
|
|
10916
|
+
Returns: string;
|
|
10917
|
+
};
|
|
10384
10918
|
pickstation_get_orders_raw: {
|
|
10385
10919
|
Args: never;
|
|
10386
10920
|
Returns: import("../integrations/supabase/types").Json;
|
|
10387
10921
|
};
|
|
10922
|
+
pickstation_get_planning_context: {
|
|
10923
|
+
Args: never;
|
|
10924
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10925
|
+
};
|
|
10388
10926
|
pickstation_get_settings: {
|
|
10389
10927
|
Args: never;
|
|
10390
10928
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -10415,6 +10953,28 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10415
10953
|
};
|
|
10416
10954
|
Returns: undefined;
|
|
10417
10955
|
};
|
|
10956
|
+
recompute_order_status: {
|
|
10957
|
+
Args: {
|
|
10958
|
+
p_order_id: string;
|
|
10959
|
+
};
|
|
10960
|
+
Returns: undefined;
|
|
10961
|
+
};
|
|
10962
|
+
recompute_reserved_for_order: {
|
|
10963
|
+
Args: {
|
|
10964
|
+
p_order_id: string;
|
|
10965
|
+
};
|
|
10966
|
+
Returns: undefined;
|
|
10967
|
+
};
|
|
10968
|
+
recompute_reserved_stock: {
|
|
10969
|
+
Args: {
|
|
10970
|
+
p_trade_item_key: string;
|
|
10971
|
+
};
|
|
10972
|
+
Returns: undefined;
|
|
10973
|
+
};
|
|
10974
|
+
refresh_external_customers_grouped: {
|
|
10975
|
+
Args: never;
|
|
10976
|
+
Returns: undefined;
|
|
10977
|
+
};
|
|
10418
10978
|
refresh_floricode_derived_code_lists: {
|
|
10419
10979
|
Args: never;
|
|
10420
10980
|
Returns: {
|
|
@@ -10429,6 +10989,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10429
10989
|
};
|
|
10430
10990
|
Returns: number;
|
|
10431
10991
|
};
|
|
10992
|
+
refresh_floricode_derived_for_products: {
|
|
10993
|
+
Args: {
|
|
10994
|
+
_product_ids: string[];
|
|
10995
|
+
};
|
|
10996
|
+
Returns: number;
|
|
10997
|
+
};
|
|
10432
10998
|
reset_floriday_sync_cursor: {
|
|
10433
10999
|
Args: {
|
|
10434
11000
|
p_connection_id: string;
|
|
@@ -10436,6 +11002,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10436
11002
|
};
|
|
10437
11003
|
Returns: undefined;
|
|
10438
11004
|
};
|
|
11005
|
+
resolve_product_id_for_item: {
|
|
11006
|
+
Args: {
|
|
11007
|
+
p_product_name: string;
|
|
11008
|
+
};
|
|
11009
|
+
Returns: string;
|
|
11010
|
+
};
|
|
10439
11011
|
schedule_floriday_additional_services_sync: {
|
|
10440
11012
|
Args: {
|
|
10441
11013
|
p_apikey: string;
|
|
@@ -10713,6 +11285,24 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10713
11285
|
};
|
|
10714
11286
|
Returns: string[];
|
|
10715
11287
|
};
|
|
11288
|
+
sync_cached_packing_from_product: {
|
|
11289
|
+
Args: {
|
|
11290
|
+
p_product_id: string;
|
|
11291
|
+
};
|
|
11292
|
+
Returns: undefined;
|
|
11293
|
+
};
|
|
11294
|
+
sync_order_cart_item_packing_from_product: {
|
|
11295
|
+
Args: {
|
|
11296
|
+
p_product_id: string;
|
|
11297
|
+
};
|
|
11298
|
+
Returns: undefined;
|
|
11299
|
+
};
|
|
11300
|
+
sync_product_packing_from_floriday_cache: {
|
|
11301
|
+
Args: {
|
|
11302
|
+
p_floriday_id: string;
|
|
11303
|
+
};
|
|
11304
|
+
Returns: undefined;
|
|
11305
|
+
};
|
|
10716
11306
|
twinfield_decrypt: {
|
|
10717
11307
|
Args: {
|
|
10718
11308
|
cipher: string;
|
|
@@ -10725,6 +11315,17 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
|
|
|
10725
11315
|
};
|
|
10726
11316
|
Returns: string;
|
|
10727
11317
|
};
|
|
11318
|
+
upsert_auto_fulfillment_log: {
|
|
11319
|
+
Args: {
|
|
11320
|
+
p_connection_id: string;
|
|
11321
|
+
p_error?: string;
|
|
11322
|
+
p_fulfillment_order_id?: string;
|
|
11323
|
+
p_reason?: string;
|
|
11324
|
+
p_sales_order_id: string;
|
|
11325
|
+
p_status: string;
|
|
11326
|
+
};
|
|
11327
|
+
Returns: undefined;
|
|
11328
|
+
};
|
|
10728
11329
|
};
|
|
10729
11330
|
Enums: {
|
|
10730
11331
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|