@flowselections/floriday-afhandeling-module 1.0.8 → 1.0.9
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/afhandeling/LeveringenPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/LeveringenPage.js +9 -67
- package/dist-lib/components/afhandeling/PickAgendaView.d.ts +6 -0
- package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/PickAgendaView.js +31 -0
- package/dist-lib/components/afhandeling/PickingPage.d.ts +2 -0
- package/dist-lib/components/afhandeling/PickingPage.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/PickingPage.js +5 -0
- package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts +9 -0
- package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/PlanningAgendaPage.js +7 -0
- package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerderForm.js +24 -10
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +12 -0
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/WeekAgendaView.js +107 -0
- package/dist-lib/components/pickstation/LanguagePicker.d.ts +5 -0
- package/dist-lib/components/pickstation/LanguagePicker.d.ts.map +1 -0
- package/dist-lib/components/pickstation/LanguagePicker.js +5 -0
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts +17 -0
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -0
- package/dist-lib/components/pickstation/PakbonTemplate.js +74 -0
- package/dist-lib/components/pickstation/printDocuments.d.ts +3 -0
- package/dist-lib/components/pickstation/printDocuments.d.ts.map +1 -0
- package/dist-lib/components/pickstation/printDocuments.js +53 -0
- package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts +2 -0
- package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -0
- package/dist-lib/components/settings/AfhandelingSettingsCard.js +60 -0
- package/dist-lib/components/settings/VervoerdersSettingsCard.d.ts +2 -0
- package/dist-lib/components/settings/VervoerdersSettingsCard.d.ts.map +1 -0
- package/dist-lib/components/settings/VervoerdersSettingsCard.js +30 -0
- package/dist-lib/hooks/useOrderPlanning.d.ts +14 -0
- package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -0
- package/dist-lib/hooks/useOrderPlanning.js +90 -0
- package/dist-lib/index.d.ts +5 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +16 -6
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +531 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +531 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +531 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +544 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +1 -0
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +14338 -0
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -0
- package/dist-lib/lib/afhandelingSettings.functions.js +73 -0
- package/dist-lib/lib/carriers.functions.d.ts +2176 -44
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.js +43 -6
- package/dist-lib/lib/floriday.functions.d.ts +532 -0
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +6 -1
- package/dist-lib/lib/pickDate.d.ts +21 -0
- package/dist-lib/lib/pickDate.d.ts.map +1 -0
- package/dist-lib/lib/pickDate.js +71 -0
- package/dist-lib/lib/pickstationI18n.d.ts +31 -0
- package/dist-lib/lib/pickstationI18n.d.ts.map +1 -0
- package/dist-lib/lib/pickstationI18n.js +147 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts +9 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -0
- package/dist-lib/lib/pickstationOrders.server.js +244 -0
- package/dist-lib/lib/pickstationTypes.d.ts +17 -0
- package/dist-lib/lib/pickstationTypes.d.ts.map +1 -0
- package/dist-lib/lib/pickstationTypes.js +1 -0
- package/dist-lib/lib/planning.d.ts +66 -0
- package/dist-lib/lib/planning.d.ts.map +1 -0
- package/dist-lib/lib/planning.js +180 -0
- package/package.json +12 -6
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type PickupMoment } from "./planning";
|
|
2
|
+
export type { PickupMoment } from "./planning";
|
|
1
3
|
export interface CarrierShippingRate {
|
|
2
4
|
id?: string;
|
|
3
5
|
country_code: string;
|
|
@@ -10,10 +12,17 @@ export interface Carrier {
|
|
|
10
12
|
email: string | null;
|
|
11
13
|
phone: string | null;
|
|
12
14
|
address: string | null;
|
|
15
|
+
/** @deprecated — vervangen door pickup_moments. */
|
|
13
16
|
delivery_days: number | null;
|
|
17
|
+
/** @deprecated — vervangen door pickup_moments. */
|
|
18
|
+
signup_days_before_delivery: number | null;
|
|
19
|
+
/** @deprecated — vervangen door pickup_moments. */
|
|
14
20
|
signup_time_1: string | null;
|
|
21
|
+
/** @deprecated — vervangen door pickup_moments. */
|
|
15
22
|
signup_time_2: string | null;
|
|
16
23
|
notes: string | null;
|
|
24
|
+
is_default: boolean;
|
|
25
|
+
pickup_moments: PickupMoment[];
|
|
17
26
|
created_at: string;
|
|
18
27
|
updated_at: string;
|
|
19
28
|
}
|
|
@@ -30,14 +39,46 @@ export interface CarrierInput {
|
|
|
30
39
|
email?: string | null;
|
|
31
40
|
phone?: string | null;
|
|
32
41
|
address?: string | null;
|
|
33
|
-
delivery_days?: number | null;
|
|
34
|
-
signup_time_1?: string | null;
|
|
35
|
-
signup_time_2?: string | null;
|
|
36
42
|
notes?: string | null;
|
|
43
|
+
is_default?: boolean;
|
|
44
|
+
pickup_moments: PickupMoment[];
|
|
37
45
|
}
|
|
38
46
|
export declare const listCarriers: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
39
47
|
supabase: import("@supabase/supabase-js").SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
|
|
40
48
|
Tables: {
|
|
49
|
+
afhandeling_settings: {
|
|
50
|
+
Row: {
|
|
51
|
+
created_at: string;
|
|
52
|
+
id: string;
|
|
53
|
+
max_workdays_earlier_pick: number;
|
|
54
|
+
pick_days_before_transport: number;
|
|
55
|
+
pick_distribution_enabled: boolean;
|
|
56
|
+
transport_register_days_before: number;
|
|
57
|
+
updated_at: string;
|
|
58
|
+
user_id: string;
|
|
59
|
+
};
|
|
60
|
+
Insert: {
|
|
61
|
+
created_at?: string;
|
|
62
|
+
id?: string;
|
|
63
|
+
max_workdays_earlier_pick?: number;
|
|
64
|
+
pick_days_before_transport?: number;
|
|
65
|
+
pick_distribution_enabled?: boolean;
|
|
66
|
+
transport_register_days_before?: number;
|
|
67
|
+
updated_at?: string;
|
|
68
|
+
user_id: string;
|
|
69
|
+
};
|
|
70
|
+
Update: {
|
|
71
|
+
created_at?: string;
|
|
72
|
+
id?: string;
|
|
73
|
+
max_workdays_earlier_pick?: number;
|
|
74
|
+
pick_days_before_transport?: number;
|
|
75
|
+
pick_distribution_enabled?: boolean;
|
|
76
|
+
transport_register_days_before?: number;
|
|
77
|
+
updated_at?: string;
|
|
78
|
+
user_id?: string;
|
|
79
|
+
};
|
|
80
|
+
Relationships: [];
|
|
81
|
+
};
|
|
41
82
|
agenda_connections: {
|
|
42
83
|
Row: {
|
|
43
84
|
account_email: string | null;
|
|
@@ -306,6 +347,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
306
347
|
invoice_run_id: string | null;
|
|
307
348
|
invoice_status: string | null;
|
|
308
349
|
invoiced_at: string | null;
|
|
350
|
+
notes: string | null;
|
|
309
351
|
number_of_people: number;
|
|
310
352
|
room_id: string;
|
|
311
353
|
start_time: string;
|
|
@@ -330,6 +372,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
330
372
|
invoice_run_id?: string | null;
|
|
331
373
|
invoice_status?: string | null;
|
|
332
374
|
invoiced_at?: string | null;
|
|
375
|
+
notes?: string | null;
|
|
333
376
|
number_of_people?: number;
|
|
334
377
|
room_id: string;
|
|
335
378
|
start_time: string;
|
|
@@ -354,6 +397,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
354
397
|
invoice_run_id?: string | null;
|
|
355
398
|
invoice_status?: string | null;
|
|
356
399
|
invoiced_at?: string | null;
|
|
400
|
+
notes?: string | null;
|
|
357
401
|
number_of_people?: number;
|
|
358
402
|
room_id?: string;
|
|
359
403
|
start_time?: string;
|
|
@@ -445,9 +489,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
445
489
|
delivery_days: number | null;
|
|
446
490
|
email: string | null;
|
|
447
491
|
id: string;
|
|
492
|
+
is_default: boolean;
|
|
448
493
|
name: string;
|
|
449
494
|
notes: string | null;
|
|
450
495
|
phone: string | null;
|
|
496
|
+
pickup_moments: import("../integrations/supabase/types").Json;
|
|
497
|
+
signup_days_before_delivery: number;
|
|
451
498
|
signup_time_1: string | null;
|
|
452
499
|
signup_time_2: string | null;
|
|
453
500
|
updated_at: string;
|
|
@@ -460,9 +507,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
460
507
|
delivery_days?: number | null;
|
|
461
508
|
email?: string | null;
|
|
462
509
|
id?: string;
|
|
510
|
+
is_default?: boolean;
|
|
463
511
|
name: string;
|
|
464
512
|
notes?: string | null;
|
|
465
513
|
phone?: string | null;
|
|
514
|
+
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
515
|
+
signup_days_before_delivery?: number;
|
|
466
516
|
signup_time_1?: string | null;
|
|
467
517
|
signup_time_2?: string | null;
|
|
468
518
|
updated_at?: string;
|
|
@@ -475,9 +525,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
475
525
|
delivery_days?: number | null;
|
|
476
526
|
email?: string | null;
|
|
477
527
|
id?: string;
|
|
528
|
+
is_default?: boolean;
|
|
478
529
|
name?: string;
|
|
479
530
|
notes?: string | null;
|
|
480
531
|
phone?: string | null;
|
|
532
|
+
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
533
|
+
signup_days_before_delivery?: number;
|
|
481
534
|
signup_time_1?: string | null;
|
|
482
535
|
signup_time_2?: string | null;
|
|
483
536
|
updated_at?: string;
|
|
@@ -2225,6 +2278,51 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
2225
2278
|
referencedColumns: ["id"];
|
|
2226
2279
|
}];
|
|
2227
2280
|
};
|
|
2281
|
+
exact_push_queue: {
|
|
2282
|
+
Row: {
|
|
2283
|
+
attempts: number;
|
|
2284
|
+
connection_id: string;
|
|
2285
|
+
created_at: string;
|
|
2286
|
+
external_id: string | null;
|
|
2287
|
+
id: string;
|
|
2288
|
+
idempotency_hash: string;
|
|
2289
|
+
last_error: string | null;
|
|
2290
|
+
payload: import("../integrations/supabase/types").Json;
|
|
2291
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
2292
|
+
updated_at: string;
|
|
2293
|
+
};
|
|
2294
|
+
Insert: {
|
|
2295
|
+
attempts?: number;
|
|
2296
|
+
connection_id: string;
|
|
2297
|
+
created_at?: string;
|
|
2298
|
+
external_id?: string | null;
|
|
2299
|
+
id?: string;
|
|
2300
|
+
idempotency_hash: string;
|
|
2301
|
+
last_error?: string | null;
|
|
2302
|
+
payload: import("../integrations/supabase/types").Json;
|
|
2303
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
2304
|
+
updated_at?: string;
|
|
2305
|
+
};
|
|
2306
|
+
Update: {
|
|
2307
|
+
attempts?: number;
|
|
2308
|
+
connection_id?: string;
|
|
2309
|
+
created_at?: string;
|
|
2310
|
+
external_id?: string | null;
|
|
2311
|
+
id?: string;
|
|
2312
|
+
idempotency_hash?: string;
|
|
2313
|
+
last_error?: string | null;
|
|
2314
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
2315
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
2316
|
+
updated_at?: string;
|
|
2317
|
+
};
|
|
2318
|
+
Relationships: [{
|
|
2319
|
+
foreignKeyName: "exact_push_queue_connection_id_fkey";
|
|
2320
|
+
columns: ["connection_id"];
|
|
2321
|
+
isOneToOne: false;
|
|
2322
|
+
referencedRelation: "exact_connections";
|
|
2323
|
+
referencedColumns: ["id"];
|
|
2324
|
+
}];
|
|
2325
|
+
};
|
|
2228
2326
|
exact_refresh_locks: {
|
|
2229
2327
|
Row: {
|
|
2230
2328
|
environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
|
|
@@ -2287,6 +2385,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
2287
2385
|
connection_id: string;
|
|
2288
2386
|
last_error: string | null;
|
|
2289
2387
|
last_modified_cursor: string | null;
|
|
2388
|
+
last_modified_cursor_customers: string | null;
|
|
2389
|
+
last_modified_cursor_invoices: string | null;
|
|
2290
2390
|
last_synced_at: string | null;
|
|
2291
2391
|
status: string;
|
|
2292
2392
|
updated_at: string;
|
|
@@ -2295,6 +2395,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
2295
2395
|
connection_id: string;
|
|
2296
2396
|
last_error?: string | null;
|
|
2297
2397
|
last_modified_cursor?: string | null;
|
|
2398
|
+
last_modified_cursor_customers?: string | null;
|
|
2399
|
+
last_modified_cursor_invoices?: string | null;
|
|
2298
2400
|
last_synced_at?: string | null;
|
|
2299
2401
|
status?: string;
|
|
2300
2402
|
updated_at?: string;
|
|
@@ -2303,6 +2405,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
2303
2405
|
connection_id?: string;
|
|
2304
2406
|
last_error?: string | null;
|
|
2305
2407
|
last_modified_cursor?: string | null;
|
|
2408
|
+
last_modified_cursor_customers?: string | null;
|
|
2409
|
+
last_modified_cursor_invoices?: string | null;
|
|
2306
2410
|
last_synced_at?: string | null;
|
|
2307
2411
|
status?: string;
|
|
2308
2412
|
updated_at?: string;
|
|
@@ -2345,6 +2449,54 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
2345
2449
|
};
|
|
2346
2450
|
Relationships: [];
|
|
2347
2451
|
};
|
|
2452
|
+
external_invoice_providers: {
|
|
2453
|
+
Row: {
|
|
2454
|
+
color: string | null;
|
|
2455
|
+
created_at: string;
|
|
2456
|
+
hmac_secret_name: string | null;
|
|
2457
|
+
icon: string | null;
|
|
2458
|
+
is_enabled: boolean;
|
|
2459
|
+
label: string;
|
|
2460
|
+
last_synced_at: string | null;
|
|
2461
|
+
provider: string;
|
|
2462
|
+
push_endpoint: string | null;
|
|
2463
|
+
sort_order: number;
|
|
2464
|
+
status_endpoint: string | null;
|
|
2465
|
+
sync_endpoint: string | null;
|
|
2466
|
+
updated_at: string;
|
|
2467
|
+
};
|
|
2468
|
+
Insert: {
|
|
2469
|
+
color?: string | null;
|
|
2470
|
+
created_at?: string;
|
|
2471
|
+
hmac_secret_name?: string | null;
|
|
2472
|
+
icon?: string | null;
|
|
2473
|
+
is_enabled?: boolean;
|
|
2474
|
+
label: string;
|
|
2475
|
+
last_synced_at?: string | null;
|
|
2476
|
+
provider: string;
|
|
2477
|
+
push_endpoint?: string | null;
|
|
2478
|
+
sort_order?: number;
|
|
2479
|
+
status_endpoint?: string | null;
|
|
2480
|
+
sync_endpoint?: string | null;
|
|
2481
|
+
updated_at?: string;
|
|
2482
|
+
};
|
|
2483
|
+
Update: {
|
|
2484
|
+
color?: string | null;
|
|
2485
|
+
created_at?: string;
|
|
2486
|
+
hmac_secret_name?: string | null;
|
|
2487
|
+
icon?: string | null;
|
|
2488
|
+
is_enabled?: boolean;
|
|
2489
|
+
label?: string;
|
|
2490
|
+
last_synced_at?: string | null;
|
|
2491
|
+
provider?: string;
|
|
2492
|
+
push_endpoint?: string | null;
|
|
2493
|
+
sort_order?: number;
|
|
2494
|
+
status_endpoint?: string | null;
|
|
2495
|
+
sync_endpoint?: string | null;
|
|
2496
|
+
updated_at?: string;
|
|
2497
|
+
};
|
|
2498
|
+
Relationships: [];
|
|
2499
|
+
};
|
|
2348
2500
|
extra_categories: {
|
|
2349
2501
|
Row: {
|
|
2350
2502
|
created_at: string;
|
|
@@ -3053,6 +3205,57 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
3053
3205
|
};
|
|
3054
3206
|
Relationships: [];
|
|
3055
3207
|
};
|
|
3208
|
+
invoice_push_log: {
|
|
3209
|
+
Row: {
|
|
3210
|
+
connection_id: string | null;
|
|
3211
|
+
created_at: string;
|
|
3212
|
+
created_by: string;
|
|
3213
|
+
customer_id: string | null;
|
|
3214
|
+
id: string;
|
|
3215
|
+
last_error: string | null;
|
|
3216
|
+
last_polled_at: string | null;
|
|
3217
|
+
payload: import("../integrations/supabase/types").Json;
|
|
3218
|
+
provider_id: string;
|
|
3219
|
+
queue_id: string | null;
|
|
3220
|
+
status: string;
|
|
3221
|
+
updated_at: string;
|
|
3222
|
+
};
|
|
3223
|
+
Insert: {
|
|
3224
|
+
connection_id?: string | null;
|
|
3225
|
+
created_at?: string;
|
|
3226
|
+
created_by?: string;
|
|
3227
|
+
customer_id?: string | null;
|
|
3228
|
+
id?: string;
|
|
3229
|
+
last_error?: string | null;
|
|
3230
|
+
last_polled_at?: string | null;
|
|
3231
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
3232
|
+
provider_id: string;
|
|
3233
|
+
queue_id?: string | null;
|
|
3234
|
+
status?: string;
|
|
3235
|
+
updated_at?: string;
|
|
3236
|
+
};
|
|
3237
|
+
Update: {
|
|
3238
|
+
connection_id?: string | null;
|
|
3239
|
+
created_at?: string;
|
|
3240
|
+
created_by?: string;
|
|
3241
|
+
customer_id?: string | null;
|
|
3242
|
+
id?: string;
|
|
3243
|
+
last_error?: string | null;
|
|
3244
|
+
last_polled_at?: string | null;
|
|
3245
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
3246
|
+
provider_id?: string;
|
|
3247
|
+
queue_id?: string | null;
|
|
3248
|
+
status?: string;
|
|
3249
|
+
updated_at?: string;
|
|
3250
|
+
};
|
|
3251
|
+
Relationships: [{
|
|
3252
|
+
foreignKeyName: "invoice_push_log_provider_id_fkey";
|
|
3253
|
+
columns: ["provider_id"];
|
|
3254
|
+
isOneToOne: false;
|
|
3255
|
+
referencedRelation: "external_invoice_providers";
|
|
3256
|
+
referencedColumns: ["provider"];
|
|
3257
|
+
}];
|
|
3258
|
+
};
|
|
3056
3259
|
invoice_run_items: {
|
|
3057
3260
|
Row: {
|
|
3058
3261
|
booking_id: string | null;
|
|
@@ -4160,6 +4363,36 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
4160
4363
|
};
|
|
4161
4364
|
Relationships: [];
|
|
4162
4365
|
};
|
|
4366
|
+
pickstation_print_log: {
|
|
4367
|
+
Row: {
|
|
4368
|
+
customer_name: string | null;
|
|
4369
|
+
documents: string[];
|
|
4370
|
+
id: string;
|
|
4371
|
+
ip_address: string | null;
|
|
4372
|
+
order_id: string;
|
|
4373
|
+
order_number: string | null;
|
|
4374
|
+
printed_at: string;
|
|
4375
|
+
};
|
|
4376
|
+
Insert: {
|
|
4377
|
+
customer_name?: string | null;
|
|
4378
|
+
documents?: string[];
|
|
4379
|
+
id?: string;
|
|
4380
|
+
ip_address?: string | null;
|
|
4381
|
+
order_id: string;
|
|
4382
|
+
order_number?: string | null;
|
|
4383
|
+
printed_at?: string;
|
|
4384
|
+
};
|
|
4385
|
+
Update: {
|
|
4386
|
+
customer_name?: string | null;
|
|
4387
|
+
documents?: string[];
|
|
4388
|
+
id?: string;
|
|
4389
|
+
ip_address?: string | null;
|
|
4390
|
+
order_id?: string;
|
|
4391
|
+
order_number?: string | null;
|
|
4392
|
+
printed_at?: string;
|
|
4393
|
+
};
|
|
4394
|
+
Relationships: [];
|
|
4395
|
+
};
|
|
4163
4396
|
pipeline_settings: {
|
|
4164
4397
|
Row: {
|
|
4165
4398
|
created_at: string;
|
|
@@ -5603,9 +5836,11 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
5603
5836
|
fetched_at: string;
|
|
5604
5837
|
invoice_number: string;
|
|
5605
5838
|
line_number: number;
|
|
5839
|
+
line_total: number | null;
|
|
5606
5840
|
quantity: number | null;
|
|
5607
5841
|
unit_price: number | null;
|
|
5608
5842
|
vat_code: string | null;
|
|
5843
|
+
vat_rate: number | null;
|
|
5609
5844
|
};
|
|
5610
5845
|
Insert: {
|
|
5611
5846
|
article_code?: string | null;
|
|
@@ -5615,9 +5850,11 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
5615
5850
|
fetched_at?: string;
|
|
5616
5851
|
invoice_number: string;
|
|
5617
5852
|
line_number: number;
|
|
5853
|
+
line_total?: number | null;
|
|
5618
5854
|
quantity?: number | null;
|
|
5619
5855
|
unit_price?: number | null;
|
|
5620
5856
|
vat_code?: string | null;
|
|
5857
|
+
vat_rate?: number | null;
|
|
5621
5858
|
};
|
|
5622
5859
|
Update: {
|
|
5623
5860
|
article_code?: string | null;
|
|
@@ -5627,9 +5864,11 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
5627
5864
|
fetched_at?: string;
|
|
5628
5865
|
invoice_number?: string;
|
|
5629
5866
|
line_number?: number;
|
|
5867
|
+
line_total?: number | null;
|
|
5630
5868
|
quantity?: number | null;
|
|
5631
5869
|
unit_price?: number | null;
|
|
5632
5870
|
vat_code?: string | null;
|
|
5871
|
+
vat_rate?: number | null;
|
|
5633
5872
|
};
|
|
5634
5873
|
Relationships: [{
|
|
5635
5874
|
foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
|
|
@@ -5806,9 +6045,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
5806
6045
|
invoice_date: string | null;
|
|
5807
6046
|
invoice_number: string;
|
|
5808
6047
|
modified_at: string | null;
|
|
6048
|
+
outstanding_amount: number | null;
|
|
5809
6049
|
status: string | null;
|
|
6050
|
+
status_label: string | null;
|
|
5810
6051
|
total_excl: number | null;
|
|
5811
6052
|
total_incl: number | null;
|
|
6053
|
+
vat_amount: number | null;
|
|
5812
6054
|
};
|
|
5813
6055
|
Insert: {
|
|
5814
6056
|
connection_id: string;
|
|
@@ -5820,9 +6062,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
5820
6062
|
invoice_date?: string | null;
|
|
5821
6063
|
invoice_number: string;
|
|
5822
6064
|
modified_at?: string | null;
|
|
6065
|
+
outstanding_amount?: number | null;
|
|
5823
6066
|
status?: string | null;
|
|
6067
|
+
status_label?: string | null;
|
|
5824
6068
|
total_excl?: number | null;
|
|
5825
6069
|
total_incl?: number | null;
|
|
6070
|
+
vat_amount?: number | null;
|
|
5826
6071
|
};
|
|
5827
6072
|
Update: {
|
|
5828
6073
|
connection_id?: string;
|
|
@@ -5834,9 +6079,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
5834
6079
|
invoice_date?: string | null;
|
|
5835
6080
|
invoice_number?: string;
|
|
5836
6081
|
modified_at?: string | null;
|
|
6082
|
+
outstanding_amount?: number | null;
|
|
5837
6083
|
status?: string | null;
|
|
6084
|
+
status_label?: string | null;
|
|
5838
6085
|
total_excl?: number | null;
|
|
5839
6086
|
total_incl?: number | null;
|
|
6087
|
+
vat_amount?: number | null;
|
|
5840
6088
|
};
|
|
5841
6089
|
Relationships: [{
|
|
5842
6090
|
foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
|
|
@@ -5870,6 +6118,57 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
5870
6118
|
};
|
|
5871
6119
|
Relationships: [];
|
|
5872
6120
|
};
|
|
6121
|
+
twinfield_push_queue: {
|
|
6122
|
+
Row: {
|
|
6123
|
+
attempts: number;
|
|
6124
|
+
connection_id: string;
|
|
6125
|
+
created_at: string;
|
|
6126
|
+
external_id: string | null;
|
|
6127
|
+
id: string;
|
|
6128
|
+
idempotency_key: string;
|
|
6129
|
+
last_error: string | null;
|
|
6130
|
+
next_attempt_at: string;
|
|
6131
|
+
office_code: string;
|
|
6132
|
+
payload: import("../integrations/supabase/types").Json;
|
|
6133
|
+
status: string;
|
|
6134
|
+
updated_at: string;
|
|
6135
|
+
};
|
|
6136
|
+
Insert: {
|
|
6137
|
+
attempts?: number;
|
|
6138
|
+
connection_id: string;
|
|
6139
|
+
created_at?: string;
|
|
6140
|
+
external_id?: string | null;
|
|
6141
|
+
id?: string;
|
|
6142
|
+
idempotency_key: string;
|
|
6143
|
+
last_error?: string | null;
|
|
6144
|
+
next_attempt_at?: string;
|
|
6145
|
+
office_code: string;
|
|
6146
|
+
payload: import("../integrations/supabase/types").Json;
|
|
6147
|
+
status?: string;
|
|
6148
|
+
updated_at?: string;
|
|
6149
|
+
};
|
|
6150
|
+
Update: {
|
|
6151
|
+
attempts?: number;
|
|
6152
|
+
connection_id?: string;
|
|
6153
|
+
created_at?: string;
|
|
6154
|
+
external_id?: string | null;
|
|
6155
|
+
id?: string;
|
|
6156
|
+
idempotency_key?: string;
|
|
6157
|
+
last_error?: string | null;
|
|
6158
|
+
next_attempt_at?: string;
|
|
6159
|
+
office_code?: string;
|
|
6160
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
6161
|
+
status?: string;
|
|
6162
|
+
updated_at?: string;
|
|
6163
|
+
};
|
|
6164
|
+
Relationships: [{
|
|
6165
|
+
foreignKeyName: "twinfield_push_queue_connection_id_fkey";
|
|
6166
|
+
columns: ["connection_id"];
|
|
6167
|
+
isOneToOne: false;
|
|
6168
|
+
referencedRelation: "twinfield_connections";
|
|
6169
|
+
referencedColumns: ["id"];
|
|
6170
|
+
}];
|
|
6171
|
+
};
|
|
5873
6172
|
twinfield_settings: {
|
|
5874
6173
|
Row: {
|
|
5875
6174
|
active_environment: string;
|
|
@@ -6292,46 +6591,172 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
6292
6591
|
};
|
|
6293
6592
|
Relationships: [];
|
|
6294
6593
|
};
|
|
6295
|
-
|
|
6594
|
+
external_invoices_grouped: {
|
|
6595
|
+
Row: {
|
|
6596
|
+
currency: string | null;
|
|
6597
|
+
customer_external_id: string | null;
|
|
6598
|
+
customer_name: string | null;
|
|
6599
|
+
customer_vat: string | null;
|
|
6600
|
+
due_at: string | null;
|
|
6601
|
+
group_key: string | null;
|
|
6602
|
+
invoice_number: string | null;
|
|
6603
|
+
is_merged: boolean | null;
|
|
6604
|
+
issued_at: string | null;
|
|
6605
|
+
modified_at: string | null;
|
|
6606
|
+
open_amount: number | null;
|
|
6607
|
+
paid_at: string | null;
|
|
6608
|
+
providers: string[] | null;
|
|
6609
|
+
source_count: number | null;
|
|
6610
|
+
sources: import("../integrations/supabase/types").Json | null;
|
|
6611
|
+
status: string | null;
|
|
6612
|
+
total_excl: number | null;
|
|
6613
|
+
total_incl: number | null;
|
|
6614
|
+
total_vat: number | null;
|
|
6615
|
+
};
|
|
6616
|
+
Relationships: [];
|
|
6617
|
+
};
|
|
6618
|
+
external_invoices_unified: {
|
|
6296
6619
|
Row: {
|
|
6297
|
-
city: string | null;
|
|
6298
|
-
commercial_name: string | null;
|
|
6299
|
-
company_name: string | null;
|
|
6300
6620
|
connection_id: string | null;
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6621
|
+
currency: string | null;
|
|
6622
|
+
customer_external_id: string | null;
|
|
6623
|
+
customer_name: string | null;
|
|
6624
|
+
customer_vat: string | null;
|
|
6625
|
+
due_at: string | null;
|
|
6304
6626
|
external_id: string | null;
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
logo_url: string | null;
|
|
6311
|
-
phone: string | null;
|
|
6312
|
-
postal_code: string | null;
|
|
6313
|
-
provider: string | null;
|
|
6627
|
+
invoice_number: string | null;
|
|
6628
|
+
issued_at: string | null;
|
|
6629
|
+
open_amount: number | null;
|
|
6630
|
+
owner_user_id: string | null;
|
|
6631
|
+
paid_at: string | null;
|
|
6314
6632
|
raw: import("../integrations/supabase/types").Json | null;
|
|
6633
|
+
source: string | null;
|
|
6315
6634
|
status: string | null;
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6635
|
+
synced_at: string | null;
|
|
6636
|
+
total_excl: number | null;
|
|
6637
|
+
total_incl: number | null;
|
|
6638
|
+
total_vat: number | null;
|
|
6319
6639
|
};
|
|
6320
|
-
Relationships: [
|
|
6321
|
-
foreignKeyName: "floriday_customers_cache_connection_id_fkey";
|
|
6322
|
-
columns: ["connection_id"];
|
|
6323
|
-
isOneToOne: false;
|
|
6324
|
-
referencedRelation: "floriday_connections";
|
|
6325
|
-
referencedColumns: ["id"];
|
|
6326
|
-
}];
|
|
6640
|
+
Relationships: [];
|
|
6327
6641
|
};
|
|
6328
|
-
|
|
6642
|
+
v_external_customers_exact: {
|
|
6329
6643
|
Row: {
|
|
6644
|
+
account_number: string | null;
|
|
6330
6645
|
city: string | null;
|
|
6331
|
-
|
|
6646
|
+
coc_number: string | null;
|
|
6332
6647
|
company_name: string | null;
|
|
6333
6648
|
connection_id: string | null;
|
|
6334
|
-
|
|
6649
|
+
country: string | null;
|
|
6650
|
+
currency: string | null;
|
|
6651
|
+
email: string | null;
|
|
6652
|
+
external_id: string | null;
|
|
6653
|
+
is_sales: boolean | null;
|
|
6654
|
+
is_supplier: boolean | null;
|
|
6655
|
+
language: string | null;
|
|
6656
|
+
modified_at: string | null;
|
|
6657
|
+
phone: string | null;
|
|
6658
|
+
postal_code: string | null;
|
|
6659
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
6660
|
+
source: string | null;
|
|
6661
|
+
street: string | null;
|
|
6662
|
+
synced_at: string | null;
|
|
6663
|
+
vat_number: string | null;
|
|
6664
|
+
website: string | null;
|
|
6665
|
+
};
|
|
6666
|
+
Insert: {
|
|
6667
|
+
account_number?: string | null;
|
|
6668
|
+
city?: string | null;
|
|
6669
|
+
coc_number?: string | null;
|
|
6670
|
+
company_name?: string | null;
|
|
6671
|
+
connection_id?: string | null;
|
|
6672
|
+
country?: string | null;
|
|
6673
|
+
currency?: string | null;
|
|
6674
|
+
email?: string | null;
|
|
6675
|
+
external_id?: string | null;
|
|
6676
|
+
is_sales?: boolean | null;
|
|
6677
|
+
is_supplier?: boolean | null;
|
|
6678
|
+
language?: string | null;
|
|
6679
|
+
modified_at?: string | null;
|
|
6680
|
+
phone?: string | null;
|
|
6681
|
+
postal_code?: string | null;
|
|
6682
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
6683
|
+
source?: never;
|
|
6684
|
+
street?: string | null;
|
|
6685
|
+
synced_at?: string | null;
|
|
6686
|
+
vat_number?: string | null;
|
|
6687
|
+
website?: string | null;
|
|
6688
|
+
};
|
|
6689
|
+
Update: {
|
|
6690
|
+
account_number?: string | null;
|
|
6691
|
+
city?: string | null;
|
|
6692
|
+
coc_number?: string | null;
|
|
6693
|
+
company_name?: string | null;
|
|
6694
|
+
connection_id?: string | null;
|
|
6695
|
+
country?: string | null;
|
|
6696
|
+
currency?: string | null;
|
|
6697
|
+
email?: string | null;
|
|
6698
|
+
external_id?: string | null;
|
|
6699
|
+
is_sales?: boolean | null;
|
|
6700
|
+
is_supplier?: boolean | null;
|
|
6701
|
+
language?: string | null;
|
|
6702
|
+
modified_at?: string | null;
|
|
6703
|
+
phone?: string | null;
|
|
6704
|
+
postal_code?: string | null;
|
|
6705
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
6706
|
+
source?: never;
|
|
6707
|
+
street?: string | null;
|
|
6708
|
+
synced_at?: string | null;
|
|
6709
|
+
vat_number?: string | null;
|
|
6710
|
+
website?: string | null;
|
|
6711
|
+
};
|
|
6712
|
+
Relationships: [{
|
|
6713
|
+
foreignKeyName: "exact_customers_cache_connection_id_fkey";
|
|
6714
|
+
columns: ["connection_id"];
|
|
6715
|
+
isOneToOne: false;
|
|
6716
|
+
referencedRelation: "exact_connections";
|
|
6717
|
+
referencedColumns: ["id"];
|
|
6718
|
+
}];
|
|
6719
|
+
};
|
|
6720
|
+
v_external_customers_floriday: {
|
|
6721
|
+
Row: {
|
|
6722
|
+
city: string | null;
|
|
6723
|
+
commercial_name: string | null;
|
|
6724
|
+
company_name: string | null;
|
|
6725
|
+
connection_id: string | null;
|
|
6726
|
+
contact_person: string | null;
|
|
6727
|
+
country: string | null;
|
|
6728
|
+
email: string | null;
|
|
6729
|
+
external_id: string | null;
|
|
6730
|
+
fetched_at: string | null;
|
|
6731
|
+
gln: string | null;
|
|
6732
|
+
house_number: string | null;
|
|
6733
|
+
is_active: boolean | null;
|
|
6734
|
+
is_deleted: boolean | null;
|
|
6735
|
+
logo_url: string | null;
|
|
6736
|
+
phone: string | null;
|
|
6737
|
+
postal_code: string | null;
|
|
6738
|
+
provider: string | null;
|
|
6739
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
6740
|
+
status: string | null;
|
|
6741
|
+
street: string | null;
|
|
6742
|
+
vat_number: string | null;
|
|
6743
|
+
website: string | null;
|
|
6744
|
+
};
|
|
6745
|
+
Relationships: [{
|
|
6746
|
+
foreignKeyName: "floriday_customers_cache_connection_id_fkey";
|
|
6747
|
+
columns: ["connection_id"];
|
|
6748
|
+
isOneToOne: false;
|
|
6749
|
+
referencedRelation: "floriday_connections";
|
|
6750
|
+
referencedColumns: ["id"];
|
|
6751
|
+
}];
|
|
6752
|
+
};
|
|
6753
|
+
v_external_customers_twinfield: {
|
|
6754
|
+
Row: {
|
|
6755
|
+
city: string | null;
|
|
6756
|
+
commercial_name: string | null;
|
|
6757
|
+
company_name: string | null;
|
|
6758
|
+
connection_id: string | null;
|
|
6759
|
+
contact_person: string | null;
|
|
6335
6760
|
country: string | null;
|
|
6336
6761
|
email: string | null;
|
|
6337
6762
|
external_id: string | null;
|
|
@@ -6358,8 +6783,113 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
6358
6783
|
referencedColumns: ["id"];
|
|
6359
6784
|
}];
|
|
6360
6785
|
};
|
|
6786
|
+
v_external_invoices_exact: {
|
|
6787
|
+
Row: {
|
|
6788
|
+
connection_id: string | null;
|
|
6789
|
+
currency: string | null;
|
|
6790
|
+
customer_external_id: string | null;
|
|
6791
|
+
customer_name: string | null;
|
|
6792
|
+
customer_vat: string | null;
|
|
6793
|
+
due_at: string | null;
|
|
6794
|
+
external_id: string | null;
|
|
6795
|
+
invoice_number: string | null;
|
|
6796
|
+
issued_at: string | null;
|
|
6797
|
+
open_amount: number | null;
|
|
6798
|
+
paid_at: string | null;
|
|
6799
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
6800
|
+
source: string | null;
|
|
6801
|
+
status: string | null;
|
|
6802
|
+
synced_at: string | null;
|
|
6803
|
+
total_excl: number | null;
|
|
6804
|
+
total_incl: number | null;
|
|
6805
|
+
total_vat: number | null;
|
|
6806
|
+
};
|
|
6807
|
+
Insert: {
|
|
6808
|
+
connection_id?: string | null;
|
|
6809
|
+
currency?: never;
|
|
6810
|
+
customer_external_id?: string | null;
|
|
6811
|
+
customer_name?: string | null;
|
|
6812
|
+
customer_vat?: never;
|
|
6813
|
+
due_at?: string | null;
|
|
6814
|
+
external_id?: string | null;
|
|
6815
|
+
invoice_number?: string | null;
|
|
6816
|
+
issued_at?: string | null;
|
|
6817
|
+
open_amount?: number | null;
|
|
6818
|
+
paid_at?: string | null;
|
|
6819
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
6820
|
+
source?: never;
|
|
6821
|
+
status?: string | null;
|
|
6822
|
+
synced_at?: string | null;
|
|
6823
|
+
total_excl?: number | null;
|
|
6824
|
+
total_incl?: number | null;
|
|
6825
|
+
total_vat?: number | null;
|
|
6826
|
+
};
|
|
6827
|
+
Update: {
|
|
6828
|
+
connection_id?: string | null;
|
|
6829
|
+
currency?: never;
|
|
6830
|
+
customer_external_id?: string | null;
|
|
6831
|
+
customer_name?: string | null;
|
|
6832
|
+
customer_vat?: never;
|
|
6833
|
+
due_at?: string | null;
|
|
6834
|
+
external_id?: string | null;
|
|
6835
|
+
invoice_number?: string | null;
|
|
6836
|
+
issued_at?: string | null;
|
|
6837
|
+
open_amount?: number | null;
|
|
6838
|
+
paid_at?: string | null;
|
|
6839
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
6840
|
+
source?: never;
|
|
6841
|
+
status?: string | null;
|
|
6842
|
+
synced_at?: string | null;
|
|
6843
|
+
total_excl?: number | null;
|
|
6844
|
+
total_incl?: number | null;
|
|
6845
|
+
total_vat?: number | null;
|
|
6846
|
+
};
|
|
6847
|
+
Relationships: [{
|
|
6848
|
+
foreignKeyName: "exact_invoices_cache_connection_id_fkey";
|
|
6849
|
+
columns: ["connection_id"];
|
|
6850
|
+
isOneToOne: false;
|
|
6851
|
+
referencedRelation: "exact_connections";
|
|
6852
|
+
referencedColumns: ["id"];
|
|
6853
|
+
}];
|
|
6854
|
+
};
|
|
6855
|
+
v_external_invoices_twinfield: {
|
|
6856
|
+
Row: {
|
|
6857
|
+
connection_id: string | null;
|
|
6858
|
+
currency: string | null;
|
|
6859
|
+
customer_external_id: string | null;
|
|
6860
|
+
customer_name: string | null;
|
|
6861
|
+
customer_vat: string | null;
|
|
6862
|
+
due_at: string | null;
|
|
6863
|
+
external_id: string | null;
|
|
6864
|
+
invoice_number: string | null;
|
|
6865
|
+
issued_at: string | null;
|
|
6866
|
+
open_amount: number | null;
|
|
6867
|
+
owner_user_id: string | null;
|
|
6868
|
+
paid_at: string | null;
|
|
6869
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
6870
|
+
source: string | null;
|
|
6871
|
+
status: string | null;
|
|
6872
|
+
synced_at: string | null;
|
|
6873
|
+
total_excl: number | null;
|
|
6874
|
+
total_incl: number | null;
|
|
6875
|
+
total_vat: number | null;
|
|
6876
|
+
};
|
|
6877
|
+
Relationships: [{
|
|
6878
|
+
foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
|
|
6879
|
+
columns: ["connection_id"];
|
|
6880
|
+
isOneToOne: false;
|
|
6881
|
+
referencedRelation: "twinfield_connections";
|
|
6882
|
+
referencedColumns: ["id"];
|
|
6883
|
+
}];
|
|
6884
|
+
};
|
|
6361
6885
|
};
|
|
6362
6886
|
Functions: {
|
|
6887
|
+
call_exact_route: {
|
|
6888
|
+
Args: {
|
|
6889
|
+
path: string;
|
|
6890
|
+
};
|
|
6891
|
+
Returns: number;
|
|
6892
|
+
};
|
|
6363
6893
|
dashboard_list_public_schema: {
|
|
6364
6894
|
Args: never;
|
|
6365
6895
|
Returns: {
|
|
@@ -6615,6 +7145,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
6615
7145
|
};
|
|
6616
7146
|
Returns: number;
|
|
6617
7147
|
};
|
|
7148
|
+
schedule_twinfield_push_queue_flush: {
|
|
7149
|
+
Args: {
|
|
7150
|
+
p_apikey: string;
|
|
7151
|
+
p_cron_secret?: string;
|
|
7152
|
+
p_url: string;
|
|
7153
|
+
};
|
|
7154
|
+
Returns: number;
|
|
7155
|
+
};
|
|
6618
7156
|
schedule_twinfield_token_refresh: {
|
|
6619
7157
|
Args: {
|
|
6620
7158
|
p_apikey: string;
|
|
@@ -6655,6 +7193,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
6655
7193
|
Enums: {
|
|
6656
7194
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
6657
7195
|
exact_env: "staging" | "live";
|
|
7196
|
+
exact_push_status: "pending" | "sent" | "error";
|
|
6658
7197
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
6659
7198
|
};
|
|
6660
7199
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -6669,6 +7208,39 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
6669
7208
|
export declare const getCarrier: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
6670
7209
|
supabase: import("@supabase/supabase-js").SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
|
|
6671
7210
|
Tables: {
|
|
7211
|
+
afhandeling_settings: {
|
|
7212
|
+
Row: {
|
|
7213
|
+
created_at: string;
|
|
7214
|
+
id: string;
|
|
7215
|
+
max_workdays_earlier_pick: number;
|
|
7216
|
+
pick_days_before_transport: number;
|
|
7217
|
+
pick_distribution_enabled: boolean;
|
|
7218
|
+
transport_register_days_before: number;
|
|
7219
|
+
updated_at: string;
|
|
7220
|
+
user_id: string;
|
|
7221
|
+
};
|
|
7222
|
+
Insert: {
|
|
7223
|
+
created_at?: string;
|
|
7224
|
+
id?: string;
|
|
7225
|
+
max_workdays_earlier_pick?: number;
|
|
7226
|
+
pick_days_before_transport?: number;
|
|
7227
|
+
pick_distribution_enabled?: boolean;
|
|
7228
|
+
transport_register_days_before?: number;
|
|
7229
|
+
updated_at?: string;
|
|
7230
|
+
user_id: string;
|
|
7231
|
+
};
|
|
7232
|
+
Update: {
|
|
7233
|
+
created_at?: string;
|
|
7234
|
+
id?: string;
|
|
7235
|
+
max_workdays_earlier_pick?: number;
|
|
7236
|
+
pick_days_before_transport?: number;
|
|
7237
|
+
pick_distribution_enabled?: boolean;
|
|
7238
|
+
transport_register_days_before?: number;
|
|
7239
|
+
updated_at?: string;
|
|
7240
|
+
user_id?: string;
|
|
7241
|
+
};
|
|
7242
|
+
Relationships: [];
|
|
7243
|
+
};
|
|
6672
7244
|
agenda_connections: {
|
|
6673
7245
|
Row: {
|
|
6674
7246
|
account_email: string | null;
|
|
@@ -6937,6 +7509,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
6937
7509
|
invoice_run_id: string | null;
|
|
6938
7510
|
invoice_status: string | null;
|
|
6939
7511
|
invoiced_at: string | null;
|
|
7512
|
+
notes: string | null;
|
|
6940
7513
|
number_of_people: number;
|
|
6941
7514
|
room_id: string;
|
|
6942
7515
|
start_time: string;
|
|
@@ -6961,6 +7534,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
6961
7534
|
invoice_run_id?: string | null;
|
|
6962
7535
|
invoice_status?: string | null;
|
|
6963
7536
|
invoiced_at?: string | null;
|
|
7537
|
+
notes?: string | null;
|
|
6964
7538
|
number_of_people?: number;
|
|
6965
7539
|
room_id: string;
|
|
6966
7540
|
start_time: string;
|
|
@@ -6985,6 +7559,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
6985
7559
|
invoice_run_id?: string | null;
|
|
6986
7560
|
invoice_status?: string | null;
|
|
6987
7561
|
invoiced_at?: string | null;
|
|
7562
|
+
notes?: string | null;
|
|
6988
7563
|
number_of_people?: number;
|
|
6989
7564
|
room_id?: string;
|
|
6990
7565
|
start_time?: string;
|
|
@@ -7076,9 +7651,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
7076
7651
|
delivery_days: number | null;
|
|
7077
7652
|
email: string | null;
|
|
7078
7653
|
id: string;
|
|
7654
|
+
is_default: boolean;
|
|
7079
7655
|
name: string;
|
|
7080
7656
|
notes: string | null;
|
|
7081
7657
|
phone: string | null;
|
|
7658
|
+
pickup_moments: import("../integrations/supabase/types").Json;
|
|
7659
|
+
signup_days_before_delivery: number;
|
|
7082
7660
|
signup_time_1: string | null;
|
|
7083
7661
|
signup_time_2: string | null;
|
|
7084
7662
|
updated_at: string;
|
|
@@ -7091,9 +7669,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
7091
7669
|
delivery_days?: number | null;
|
|
7092
7670
|
email?: string | null;
|
|
7093
7671
|
id?: string;
|
|
7672
|
+
is_default?: boolean;
|
|
7094
7673
|
name: string;
|
|
7095
7674
|
notes?: string | null;
|
|
7096
7675
|
phone?: string | null;
|
|
7676
|
+
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
7677
|
+
signup_days_before_delivery?: number;
|
|
7097
7678
|
signup_time_1?: string | null;
|
|
7098
7679
|
signup_time_2?: string | null;
|
|
7099
7680
|
updated_at?: string;
|
|
@@ -7106,9 +7687,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
7106
7687
|
delivery_days?: number | null;
|
|
7107
7688
|
email?: string | null;
|
|
7108
7689
|
id?: string;
|
|
7690
|
+
is_default?: boolean;
|
|
7109
7691
|
name?: string;
|
|
7110
7692
|
notes?: string | null;
|
|
7111
7693
|
phone?: string | null;
|
|
7694
|
+
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
7695
|
+
signup_days_before_delivery?: number;
|
|
7112
7696
|
signup_time_1?: string | null;
|
|
7113
7697
|
signup_time_2?: string | null;
|
|
7114
7698
|
updated_at?: string;
|
|
@@ -8856,6 +9440,51 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
8856
9440
|
referencedColumns: ["id"];
|
|
8857
9441
|
}];
|
|
8858
9442
|
};
|
|
9443
|
+
exact_push_queue: {
|
|
9444
|
+
Row: {
|
|
9445
|
+
attempts: number;
|
|
9446
|
+
connection_id: string;
|
|
9447
|
+
created_at: string;
|
|
9448
|
+
external_id: string | null;
|
|
9449
|
+
id: string;
|
|
9450
|
+
idempotency_hash: string;
|
|
9451
|
+
last_error: string | null;
|
|
9452
|
+
payload: import("../integrations/supabase/types").Json;
|
|
9453
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
9454
|
+
updated_at: string;
|
|
9455
|
+
};
|
|
9456
|
+
Insert: {
|
|
9457
|
+
attempts?: number;
|
|
9458
|
+
connection_id: string;
|
|
9459
|
+
created_at?: string;
|
|
9460
|
+
external_id?: string | null;
|
|
9461
|
+
id?: string;
|
|
9462
|
+
idempotency_hash: string;
|
|
9463
|
+
last_error?: string | null;
|
|
9464
|
+
payload: import("../integrations/supabase/types").Json;
|
|
9465
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
9466
|
+
updated_at?: string;
|
|
9467
|
+
};
|
|
9468
|
+
Update: {
|
|
9469
|
+
attempts?: number;
|
|
9470
|
+
connection_id?: string;
|
|
9471
|
+
created_at?: string;
|
|
9472
|
+
external_id?: string | null;
|
|
9473
|
+
id?: string;
|
|
9474
|
+
idempotency_hash?: string;
|
|
9475
|
+
last_error?: string | null;
|
|
9476
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
9477
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
9478
|
+
updated_at?: string;
|
|
9479
|
+
};
|
|
9480
|
+
Relationships: [{
|
|
9481
|
+
foreignKeyName: "exact_push_queue_connection_id_fkey";
|
|
9482
|
+
columns: ["connection_id"];
|
|
9483
|
+
isOneToOne: false;
|
|
9484
|
+
referencedRelation: "exact_connections";
|
|
9485
|
+
referencedColumns: ["id"];
|
|
9486
|
+
}];
|
|
9487
|
+
};
|
|
8859
9488
|
exact_refresh_locks: {
|
|
8860
9489
|
Row: {
|
|
8861
9490
|
environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
|
|
@@ -8918,6 +9547,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
8918
9547
|
connection_id: string;
|
|
8919
9548
|
last_error: string | null;
|
|
8920
9549
|
last_modified_cursor: string | null;
|
|
9550
|
+
last_modified_cursor_customers: string | null;
|
|
9551
|
+
last_modified_cursor_invoices: string | null;
|
|
8921
9552
|
last_synced_at: string | null;
|
|
8922
9553
|
status: string;
|
|
8923
9554
|
updated_at: string;
|
|
@@ -8926,6 +9557,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
8926
9557
|
connection_id: string;
|
|
8927
9558
|
last_error?: string | null;
|
|
8928
9559
|
last_modified_cursor?: string | null;
|
|
9560
|
+
last_modified_cursor_customers?: string | null;
|
|
9561
|
+
last_modified_cursor_invoices?: string | null;
|
|
8929
9562
|
last_synced_at?: string | null;
|
|
8930
9563
|
status?: string;
|
|
8931
9564
|
updated_at?: string;
|
|
@@ -8934,6 +9567,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
8934
9567
|
connection_id?: string;
|
|
8935
9568
|
last_error?: string | null;
|
|
8936
9569
|
last_modified_cursor?: string | null;
|
|
9570
|
+
last_modified_cursor_customers?: string | null;
|
|
9571
|
+
last_modified_cursor_invoices?: string | null;
|
|
8937
9572
|
last_synced_at?: string | null;
|
|
8938
9573
|
status?: string;
|
|
8939
9574
|
updated_at?: string;
|
|
@@ -8976,6 +9611,54 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
8976
9611
|
};
|
|
8977
9612
|
Relationships: [];
|
|
8978
9613
|
};
|
|
9614
|
+
external_invoice_providers: {
|
|
9615
|
+
Row: {
|
|
9616
|
+
color: string | null;
|
|
9617
|
+
created_at: string;
|
|
9618
|
+
hmac_secret_name: string | null;
|
|
9619
|
+
icon: string | null;
|
|
9620
|
+
is_enabled: boolean;
|
|
9621
|
+
label: string;
|
|
9622
|
+
last_synced_at: string | null;
|
|
9623
|
+
provider: string;
|
|
9624
|
+
push_endpoint: string | null;
|
|
9625
|
+
sort_order: number;
|
|
9626
|
+
status_endpoint: string | null;
|
|
9627
|
+
sync_endpoint: string | null;
|
|
9628
|
+
updated_at: string;
|
|
9629
|
+
};
|
|
9630
|
+
Insert: {
|
|
9631
|
+
color?: string | null;
|
|
9632
|
+
created_at?: string;
|
|
9633
|
+
hmac_secret_name?: string | null;
|
|
9634
|
+
icon?: string | null;
|
|
9635
|
+
is_enabled?: boolean;
|
|
9636
|
+
label: string;
|
|
9637
|
+
last_synced_at?: string | null;
|
|
9638
|
+
provider: string;
|
|
9639
|
+
push_endpoint?: string | null;
|
|
9640
|
+
sort_order?: number;
|
|
9641
|
+
status_endpoint?: string | null;
|
|
9642
|
+
sync_endpoint?: string | null;
|
|
9643
|
+
updated_at?: string;
|
|
9644
|
+
};
|
|
9645
|
+
Update: {
|
|
9646
|
+
color?: string | null;
|
|
9647
|
+
created_at?: string;
|
|
9648
|
+
hmac_secret_name?: string | null;
|
|
9649
|
+
icon?: string | null;
|
|
9650
|
+
is_enabled?: boolean;
|
|
9651
|
+
label?: string;
|
|
9652
|
+
last_synced_at?: string | null;
|
|
9653
|
+
provider?: string;
|
|
9654
|
+
push_endpoint?: string | null;
|
|
9655
|
+
sort_order?: number;
|
|
9656
|
+
status_endpoint?: string | null;
|
|
9657
|
+
sync_endpoint?: string | null;
|
|
9658
|
+
updated_at?: string;
|
|
9659
|
+
};
|
|
9660
|
+
Relationships: [];
|
|
9661
|
+
};
|
|
8979
9662
|
extra_categories: {
|
|
8980
9663
|
Row: {
|
|
8981
9664
|
created_at: string;
|
|
@@ -9673,16 +10356,67 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9673
10356
|
hierarchy_levels?: string[];
|
|
9674
10357
|
id?: string;
|
|
9675
10358
|
updated_at?: string;
|
|
9676
|
-
visible_columns?: string[];
|
|
10359
|
+
visible_columns?: string[];
|
|
10360
|
+
};
|
|
10361
|
+
Update: {
|
|
10362
|
+
created_at?: string;
|
|
10363
|
+
hierarchy_levels?: string[];
|
|
10364
|
+
id?: string;
|
|
10365
|
+
updated_at?: string;
|
|
10366
|
+
visible_columns?: string[];
|
|
10367
|
+
};
|
|
10368
|
+
Relationships: [];
|
|
10369
|
+
};
|
|
10370
|
+
invoice_push_log: {
|
|
10371
|
+
Row: {
|
|
10372
|
+
connection_id: string | null;
|
|
10373
|
+
created_at: string;
|
|
10374
|
+
created_by: string;
|
|
10375
|
+
customer_id: string | null;
|
|
10376
|
+
id: string;
|
|
10377
|
+
last_error: string | null;
|
|
10378
|
+
last_polled_at: string | null;
|
|
10379
|
+
payload: import("../integrations/supabase/types").Json;
|
|
10380
|
+
provider_id: string;
|
|
10381
|
+
queue_id: string | null;
|
|
10382
|
+
status: string;
|
|
10383
|
+
updated_at: string;
|
|
10384
|
+
};
|
|
10385
|
+
Insert: {
|
|
10386
|
+
connection_id?: string | null;
|
|
10387
|
+
created_at?: string;
|
|
10388
|
+
created_by?: string;
|
|
10389
|
+
customer_id?: string | null;
|
|
10390
|
+
id?: string;
|
|
10391
|
+
last_error?: string | null;
|
|
10392
|
+
last_polled_at?: string | null;
|
|
10393
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
10394
|
+
provider_id: string;
|
|
10395
|
+
queue_id?: string | null;
|
|
10396
|
+
status?: string;
|
|
10397
|
+
updated_at?: string;
|
|
9677
10398
|
};
|
|
9678
10399
|
Update: {
|
|
10400
|
+
connection_id?: string | null;
|
|
9679
10401
|
created_at?: string;
|
|
9680
|
-
|
|
10402
|
+
created_by?: string;
|
|
10403
|
+
customer_id?: string | null;
|
|
9681
10404
|
id?: string;
|
|
10405
|
+
last_error?: string | null;
|
|
10406
|
+
last_polled_at?: string | null;
|
|
10407
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
10408
|
+
provider_id?: string;
|
|
10409
|
+
queue_id?: string | null;
|
|
10410
|
+
status?: string;
|
|
9682
10411
|
updated_at?: string;
|
|
9683
|
-
visible_columns?: string[];
|
|
9684
10412
|
};
|
|
9685
|
-
Relationships: [
|
|
10413
|
+
Relationships: [{
|
|
10414
|
+
foreignKeyName: "invoice_push_log_provider_id_fkey";
|
|
10415
|
+
columns: ["provider_id"];
|
|
10416
|
+
isOneToOne: false;
|
|
10417
|
+
referencedRelation: "external_invoice_providers";
|
|
10418
|
+
referencedColumns: ["provider"];
|
|
10419
|
+
}];
|
|
9686
10420
|
};
|
|
9687
10421
|
invoice_run_items: {
|
|
9688
10422
|
Row: {
|
|
@@ -10791,6 +11525,36 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
10791
11525
|
};
|
|
10792
11526
|
Relationships: [];
|
|
10793
11527
|
};
|
|
11528
|
+
pickstation_print_log: {
|
|
11529
|
+
Row: {
|
|
11530
|
+
customer_name: string | null;
|
|
11531
|
+
documents: string[];
|
|
11532
|
+
id: string;
|
|
11533
|
+
ip_address: string | null;
|
|
11534
|
+
order_id: string;
|
|
11535
|
+
order_number: string | null;
|
|
11536
|
+
printed_at: string;
|
|
11537
|
+
};
|
|
11538
|
+
Insert: {
|
|
11539
|
+
customer_name?: string | null;
|
|
11540
|
+
documents?: string[];
|
|
11541
|
+
id?: string;
|
|
11542
|
+
ip_address?: string | null;
|
|
11543
|
+
order_id: string;
|
|
11544
|
+
order_number?: string | null;
|
|
11545
|
+
printed_at?: string;
|
|
11546
|
+
};
|
|
11547
|
+
Update: {
|
|
11548
|
+
customer_name?: string | null;
|
|
11549
|
+
documents?: string[];
|
|
11550
|
+
id?: string;
|
|
11551
|
+
ip_address?: string | null;
|
|
11552
|
+
order_id?: string;
|
|
11553
|
+
order_number?: string | null;
|
|
11554
|
+
printed_at?: string;
|
|
11555
|
+
};
|
|
11556
|
+
Relationships: [];
|
|
11557
|
+
};
|
|
10794
11558
|
pipeline_settings: {
|
|
10795
11559
|
Row: {
|
|
10796
11560
|
created_at: string;
|
|
@@ -12234,9 +12998,11 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12234
12998
|
fetched_at: string;
|
|
12235
12999
|
invoice_number: string;
|
|
12236
13000
|
line_number: number;
|
|
13001
|
+
line_total: number | null;
|
|
12237
13002
|
quantity: number | null;
|
|
12238
13003
|
unit_price: number | null;
|
|
12239
13004
|
vat_code: string | null;
|
|
13005
|
+
vat_rate: number | null;
|
|
12240
13006
|
};
|
|
12241
13007
|
Insert: {
|
|
12242
13008
|
article_code?: string | null;
|
|
@@ -12246,9 +13012,11 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12246
13012
|
fetched_at?: string;
|
|
12247
13013
|
invoice_number: string;
|
|
12248
13014
|
line_number: number;
|
|
13015
|
+
line_total?: number | null;
|
|
12249
13016
|
quantity?: number | null;
|
|
12250
13017
|
unit_price?: number | null;
|
|
12251
13018
|
vat_code?: string | null;
|
|
13019
|
+
vat_rate?: number | null;
|
|
12252
13020
|
};
|
|
12253
13021
|
Update: {
|
|
12254
13022
|
article_code?: string | null;
|
|
@@ -12258,9 +13026,11 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12258
13026
|
fetched_at?: string;
|
|
12259
13027
|
invoice_number?: string;
|
|
12260
13028
|
line_number?: number;
|
|
13029
|
+
line_total?: number | null;
|
|
12261
13030
|
quantity?: number | null;
|
|
12262
13031
|
unit_price?: number | null;
|
|
12263
13032
|
vat_code?: string | null;
|
|
13033
|
+
vat_rate?: number | null;
|
|
12264
13034
|
};
|
|
12265
13035
|
Relationships: [{
|
|
12266
13036
|
foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
|
|
@@ -12437,9 +13207,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12437
13207
|
invoice_date: string | null;
|
|
12438
13208
|
invoice_number: string;
|
|
12439
13209
|
modified_at: string | null;
|
|
13210
|
+
outstanding_amount: number | null;
|
|
12440
13211
|
status: string | null;
|
|
13212
|
+
status_label: string | null;
|
|
12441
13213
|
total_excl: number | null;
|
|
12442
13214
|
total_incl: number | null;
|
|
13215
|
+
vat_amount: number | null;
|
|
12443
13216
|
};
|
|
12444
13217
|
Insert: {
|
|
12445
13218
|
connection_id: string;
|
|
@@ -12451,9 +13224,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12451
13224
|
invoice_date?: string | null;
|
|
12452
13225
|
invoice_number: string;
|
|
12453
13226
|
modified_at?: string | null;
|
|
13227
|
+
outstanding_amount?: number | null;
|
|
12454
13228
|
status?: string | null;
|
|
13229
|
+
status_label?: string | null;
|
|
12455
13230
|
total_excl?: number | null;
|
|
12456
13231
|
total_incl?: number | null;
|
|
13232
|
+
vat_amount?: number | null;
|
|
12457
13233
|
};
|
|
12458
13234
|
Update: {
|
|
12459
13235
|
connection_id?: string;
|
|
@@ -12465,9 +13241,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12465
13241
|
invoice_date?: string | null;
|
|
12466
13242
|
invoice_number?: string;
|
|
12467
13243
|
modified_at?: string | null;
|
|
13244
|
+
outstanding_amount?: number | null;
|
|
12468
13245
|
status?: string | null;
|
|
13246
|
+
status_label?: string | null;
|
|
12469
13247
|
total_excl?: number | null;
|
|
12470
13248
|
total_incl?: number | null;
|
|
13249
|
+
vat_amount?: number | null;
|
|
12471
13250
|
};
|
|
12472
13251
|
Relationships: [{
|
|
12473
13252
|
foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
|
|
@@ -12501,6 +13280,57 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12501
13280
|
};
|
|
12502
13281
|
Relationships: [];
|
|
12503
13282
|
};
|
|
13283
|
+
twinfield_push_queue: {
|
|
13284
|
+
Row: {
|
|
13285
|
+
attempts: number;
|
|
13286
|
+
connection_id: string;
|
|
13287
|
+
created_at: string;
|
|
13288
|
+
external_id: string | null;
|
|
13289
|
+
id: string;
|
|
13290
|
+
idempotency_key: string;
|
|
13291
|
+
last_error: string | null;
|
|
13292
|
+
next_attempt_at: string;
|
|
13293
|
+
office_code: string;
|
|
13294
|
+
payload: import("../integrations/supabase/types").Json;
|
|
13295
|
+
status: string;
|
|
13296
|
+
updated_at: string;
|
|
13297
|
+
};
|
|
13298
|
+
Insert: {
|
|
13299
|
+
attempts?: number;
|
|
13300
|
+
connection_id: string;
|
|
13301
|
+
created_at?: string;
|
|
13302
|
+
external_id?: string | null;
|
|
13303
|
+
id?: string;
|
|
13304
|
+
idempotency_key: string;
|
|
13305
|
+
last_error?: string | null;
|
|
13306
|
+
next_attempt_at?: string;
|
|
13307
|
+
office_code: string;
|
|
13308
|
+
payload: import("../integrations/supabase/types").Json;
|
|
13309
|
+
status?: string;
|
|
13310
|
+
updated_at?: string;
|
|
13311
|
+
};
|
|
13312
|
+
Update: {
|
|
13313
|
+
attempts?: number;
|
|
13314
|
+
connection_id?: string;
|
|
13315
|
+
created_at?: string;
|
|
13316
|
+
external_id?: string | null;
|
|
13317
|
+
id?: string;
|
|
13318
|
+
idempotency_key?: string;
|
|
13319
|
+
last_error?: string | null;
|
|
13320
|
+
next_attempt_at?: string;
|
|
13321
|
+
office_code?: string;
|
|
13322
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
13323
|
+
status?: string;
|
|
13324
|
+
updated_at?: string;
|
|
13325
|
+
};
|
|
13326
|
+
Relationships: [{
|
|
13327
|
+
foreignKeyName: "twinfield_push_queue_connection_id_fkey";
|
|
13328
|
+
columns: ["connection_id"];
|
|
13329
|
+
isOneToOne: false;
|
|
13330
|
+
referencedRelation: "twinfield_connections";
|
|
13331
|
+
referencedColumns: ["id"];
|
|
13332
|
+
}];
|
|
13333
|
+
};
|
|
12504
13334
|
twinfield_settings: {
|
|
12505
13335
|
Row: {
|
|
12506
13336
|
active_environment: string;
|
|
@@ -12923,6 +13753,132 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12923
13753
|
};
|
|
12924
13754
|
Relationships: [];
|
|
12925
13755
|
};
|
|
13756
|
+
external_invoices_grouped: {
|
|
13757
|
+
Row: {
|
|
13758
|
+
currency: string | null;
|
|
13759
|
+
customer_external_id: string | null;
|
|
13760
|
+
customer_name: string | null;
|
|
13761
|
+
customer_vat: string | null;
|
|
13762
|
+
due_at: string | null;
|
|
13763
|
+
group_key: string | null;
|
|
13764
|
+
invoice_number: string | null;
|
|
13765
|
+
is_merged: boolean | null;
|
|
13766
|
+
issued_at: string | null;
|
|
13767
|
+
modified_at: string | null;
|
|
13768
|
+
open_amount: number | null;
|
|
13769
|
+
paid_at: string | null;
|
|
13770
|
+
providers: string[] | null;
|
|
13771
|
+
source_count: number | null;
|
|
13772
|
+
sources: import("../integrations/supabase/types").Json | null;
|
|
13773
|
+
status: string | null;
|
|
13774
|
+
total_excl: number | null;
|
|
13775
|
+
total_incl: number | null;
|
|
13776
|
+
total_vat: number | null;
|
|
13777
|
+
};
|
|
13778
|
+
Relationships: [];
|
|
13779
|
+
};
|
|
13780
|
+
external_invoices_unified: {
|
|
13781
|
+
Row: {
|
|
13782
|
+
connection_id: string | null;
|
|
13783
|
+
currency: string | null;
|
|
13784
|
+
customer_external_id: string | null;
|
|
13785
|
+
customer_name: string | null;
|
|
13786
|
+
customer_vat: string | null;
|
|
13787
|
+
due_at: string | null;
|
|
13788
|
+
external_id: string | null;
|
|
13789
|
+
invoice_number: string | null;
|
|
13790
|
+
issued_at: string | null;
|
|
13791
|
+
open_amount: number | null;
|
|
13792
|
+
owner_user_id: string | null;
|
|
13793
|
+
paid_at: string | null;
|
|
13794
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
13795
|
+
source: string | null;
|
|
13796
|
+
status: string | null;
|
|
13797
|
+
synced_at: string | null;
|
|
13798
|
+
total_excl: number | null;
|
|
13799
|
+
total_incl: number | null;
|
|
13800
|
+
total_vat: number | null;
|
|
13801
|
+
};
|
|
13802
|
+
Relationships: [];
|
|
13803
|
+
};
|
|
13804
|
+
v_external_customers_exact: {
|
|
13805
|
+
Row: {
|
|
13806
|
+
account_number: string | null;
|
|
13807
|
+
city: string | null;
|
|
13808
|
+
coc_number: string | null;
|
|
13809
|
+
company_name: string | null;
|
|
13810
|
+
connection_id: string | null;
|
|
13811
|
+
country: string | null;
|
|
13812
|
+
currency: string | null;
|
|
13813
|
+
email: string | null;
|
|
13814
|
+
external_id: string | null;
|
|
13815
|
+
is_sales: boolean | null;
|
|
13816
|
+
is_supplier: boolean | null;
|
|
13817
|
+
language: string | null;
|
|
13818
|
+
modified_at: string | null;
|
|
13819
|
+
phone: string | null;
|
|
13820
|
+
postal_code: string | null;
|
|
13821
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
13822
|
+
source: string | null;
|
|
13823
|
+
street: string | null;
|
|
13824
|
+
synced_at: string | null;
|
|
13825
|
+
vat_number: string | null;
|
|
13826
|
+
website: string | null;
|
|
13827
|
+
};
|
|
13828
|
+
Insert: {
|
|
13829
|
+
account_number?: string | null;
|
|
13830
|
+
city?: string | null;
|
|
13831
|
+
coc_number?: string | null;
|
|
13832
|
+
company_name?: string | null;
|
|
13833
|
+
connection_id?: string | null;
|
|
13834
|
+
country?: string | null;
|
|
13835
|
+
currency?: string | null;
|
|
13836
|
+
email?: string | null;
|
|
13837
|
+
external_id?: string | null;
|
|
13838
|
+
is_sales?: boolean | null;
|
|
13839
|
+
is_supplier?: boolean | null;
|
|
13840
|
+
language?: string | null;
|
|
13841
|
+
modified_at?: string | null;
|
|
13842
|
+
phone?: string | null;
|
|
13843
|
+
postal_code?: string | null;
|
|
13844
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
13845
|
+
source?: never;
|
|
13846
|
+
street?: string | null;
|
|
13847
|
+
synced_at?: string | null;
|
|
13848
|
+
vat_number?: string | null;
|
|
13849
|
+
website?: string | null;
|
|
13850
|
+
};
|
|
13851
|
+
Update: {
|
|
13852
|
+
account_number?: string | null;
|
|
13853
|
+
city?: string | null;
|
|
13854
|
+
coc_number?: string | null;
|
|
13855
|
+
company_name?: string | null;
|
|
13856
|
+
connection_id?: string | null;
|
|
13857
|
+
country?: string | null;
|
|
13858
|
+
currency?: string | null;
|
|
13859
|
+
email?: string | null;
|
|
13860
|
+
external_id?: string | null;
|
|
13861
|
+
is_sales?: boolean | null;
|
|
13862
|
+
is_supplier?: boolean | null;
|
|
13863
|
+
language?: string | null;
|
|
13864
|
+
modified_at?: string | null;
|
|
13865
|
+
phone?: string | null;
|
|
13866
|
+
postal_code?: string | null;
|
|
13867
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
13868
|
+
source?: never;
|
|
13869
|
+
street?: string | null;
|
|
13870
|
+
synced_at?: string | null;
|
|
13871
|
+
vat_number?: string | null;
|
|
13872
|
+
website?: string | null;
|
|
13873
|
+
};
|
|
13874
|
+
Relationships: [{
|
|
13875
|
+
foreignKeyName: "exact_customers_cache_connection_id_fkey";
|
|
13876
|
+
columns: ["connection_id"];
|
|
13877
|
+
isOneToOne: false;
|
|
13878
|
+
referencedRelation: "exact_connections";
|
|
13879
|
+
referencedColumns: ["id"];
|
|
13880
|
+
}];
|
|
13881
|
+
};
|
|
12926
13882
|
v_external_customers_floriday: {
|
|
12927
13883
|
Row: {
|
|
12928
13884
|
city: string | null;
|
|
@@ -12989,8 +13945,113 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12989
13945
|
referencedColumns: ["id"];
|
|
12990
13946
|
}];
|
|
12991
13947
|
};
|
|
13948
|
+
v_external_invoices_exact: {
|
|
13949
|
+
Row: {
|
|
13950
|
+
connection_id: string | null;
|
|
13951
|
+
currency: string | null;
|
|
13952
|
+
customer_external_id: string | null;
|
|
13953
|
+
customer_name: string | null;
|
|
13954
|
+
customer_vat: string | null;
|
|
13955
|
+
due_at: string | null;
|
|
13956
|
+
external_id: string | null;
|
|
13957
|
+
invoice_number: string | null;
|
|
13958
|
+
issued_at: string | null;
|
|
13959
|
+
open_amount: number | null;
|
|
13960
|
+
paid_at: string | null;
|
|
13961
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
13962
|
+
source: string | null;
|
|
13963
|
+
status: string | null;
|
|
13964
|
+
synced_at: string | null;
|
|
13965
|
+
total_excl: number | null;
|
|
13966
|
+
total_incl: number | null;
|
|
13967
|
+
total_vat: number | null;
|
|
13968
|
+
};
|
|
13969
|
+
Insert: {
|
|
13970
|
+
connection_id?: string | null;
|
|
13971
|
+
currency?: never;
|
|
13972
|
+
customer_external_id?: string | null;
|
|
13973
|
+
customer_name?: string | null;
|
|
13974
|
+
customer_vat?: never;
|
|
13975
|
+
due_at?: string | null;
|
|
13976
|
+
external_id?: string | null;
|
|
13977
|
+
invoice_number?: string | null;
|
|
13978
|
+
issued_at?: string | null;
|
|
13979
|
+
open_amount?: number | null;
|
|
13980
|
+
paid_at?: string | null;
|
|
13981
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
13982
|
+
source?: never;
|
|
13983
|
+
status?: string | null;
|
|
13984
|
+
synced_at?: string | null;
|
|
13985
|
+
total_excl?: number | null;
|
|
13986
|
+
total_incl?: number | null;
|
|
13987
|
+
total_vat?: number | null;
|
|
13988
|
+
};
|
|
13989
|
+
Update: {
|
|
13990
|
+
connection_id?: string | null;
|
|
13991
|
+
currency?: never;
|
|
13992
|
+
customer_external_id?: string | null;
|
|
13993
|
+
customer_name?: string | null;
|
|
13994
|
+
customer_vat?: never;
|
|
13995
|
+
due_at?: string | null;
|
|
13996
|
+
external_id?: string | null;
|
|
13997
|
+
invoice_number?: string | null;
|
|
13998
|
+
issued_at?: string | null;
|
|
13999
|
+
open_amount?: number | null;
|
|
14000
|
+
paid_at?: string | null;
|
|
14001
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
14002
|
+
source?: never;
|
|
14003
|
+
status?: string | null;
|
|
14004
|
+
synced_at?: string | null;
|
|
14005
|
+
total_excl?: number | null;
|
|
14006
|
+
total_incl?: number | null;
|
|
14007
|
+
total_vat?: number | null;
|
|
14008
|
+
};
|
|
14009
|
+
Relationships: [{
|
|
14010
|
+
foreignKeyName: "exact_invoices_cache_connection_id_fkey";
|
|
14011
|
+
columns: ["connection_id"];
|
|
14012
|
+
isOneToOne: false;
|
|
14013
|
+
referencedRelation: "exact_connections";
|
|
14014
|
+
referencedColumns: ["id"];
|
|
14015
|
+
}];
|
|
14016
|
+
};
|
|
14017
|
+
v_external_invoices_twinfield: {
|
|
14018
|
+
Row: {
|
|
14019
|
+
connection_id: string | null;
|
|
14020
|
+
currency: string | null;
|
|
14021
|
+
customer_external_id: string | null;
|
|
14022
|
+
customer_name: string | null;
|
|
14023
|
+
customer_vat: string | null;
|
|
14024
|
+
due_at: string | null;
|
|
14025
|
+
external_id: string | null;
|
|
14026
|
+
invoice_number: string | null;
|
|
14027
|
+
issued_at: string | null;
|
|
14028
|
+
open_amount: number | null;
|
|
14029
|
+
owner_user_id: string | null;
|
|
14030
|
+
paid_at: string | null;
|
|
14031
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
14032
|
+
source: string | null;
|
|
14033
|
+
status: string | null;
|
|
14034
|
+
synced_at: string | null;
|
|
14035
|
+
total_excl: number | null;
|
|
14036
|
+
total_incl: number | null;
|
|
14037
|
+
total_vat: number | null;
|
|
14038
|
+
};
|
|
14039
|
+
Relationships: [{
|
|
14040
|
+
foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
|
|
14041
|
+
columns: ["connection_id"];
|
|
14042
|
+
isOneToOne: false;
|
|
14043
|
+
referencedRelation: "twinfield_connections";
|
|
14044
|
+
referencedColumns: ["id"];
|
|
14045
|
+
}];
|
|
14046
|
+
};
|
|
12992
14047
|
};
|
|
12993
14048
|
Functions: {
|
|
14049
|
+
call_exact_route: {
|
|
14050
|
+
Args: {
|
|
14051
|
+
path: string;
|
|
14052
|
+
};
|
|
14053
|
+
Returns: number;
|
|
14054
|
+
};
|
|
12994
14055
|
dashboard_list_public_schema: {
|
|
12995
14056
|
Args: never;
|
|
12996
14057
|
Returns: {
|
|
@@ -13238,7 +14299,15 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
13238
14299
|
p_url: string;
|
|
13239
14300
|
};
|
|
13240
14301
|
Returns: number;
|
|
13241
|
-
} | {
|
|
14302
|
+
} | {
|
|
14303
|
+
Args: {
|
|
14304
|
+
p_apikey: string;
|
|
14305
|
+
p_cron_secret?: string;
|
|
14306
|
+
p_url: string;
|
|
14307
|
+
};
|
|
14308
|
+
Returns: number;
|
|
14309
|
+
};
|
|
14310
|
+
schedule_twinfield_push_queue_flush: {
|
|
13242
14311
|
Args: {
|
|
13243
14312
|
p_apikey: string;
|
|
13244
14313
|
p_cron_secret?: string;
|
|
@@ -13286,6 +14355,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
13286
14355
|
Enums: {
|
|
13287
14356
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
13288
14357
|
exact_env: "staging" | "live";
|
|
14358
|
+
exact_push_status: "pending" | "sent" | "error";
|
|
13289
14359
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
13290
14360
|
};
|
|
13291
14361
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -13304,6 +14374,39 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
13304
14374
|
export declare const upsertCarrier: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
13305
14375
|
supabase: import("@supabase/supabase-js").SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
|
|
13306
14376
|
Tables: {
|
|
14377
|
+
afhandeling_settings: {
|
|
14378
|
+
Row: {
|
|
14379
|
+
created_at: string;
|
|
14380
|
+
id: string;
|
|
14381
|
+
max_workdays_earlier_pick: number;
|
|
14382
|
+
pick_days_before_transport: number;
|
|
14383
|
+
pick_distribution_enabled: boolean;
|
|
14384
|
+
transport_register_days_before: number;
|
|
14385
|
+
updated_at: string;
|
|
14386
|
+
user_id: string;
|
|
14387
|
+
};
|
|
14388
|
+
Insert: {
|
|
14389
|
+
created_at?: string;
|
|
14390
|
+
id?: string;
|
|
14391
|
+
max_workdays_earlier_pick?: number;
|
|
14392
|
+
pick_days_before_transport?: number;
|
|
14393
|
+
pick_distribution_enabled?: boolean;
|
|
14394
|
+
transport_register_days_before?: number;
|
|
14395
|
+
updated_at?: string;
|
|
14396
|
+
user_id: string;
|
|
14397
|
+
};
|
|
14398
|
+
Update: {
|
|
14399
|
+
created_at?: string;
|
|
14400
|
+
id?: string;
|
|
14401
|
+
max_workdays_earlier_pick?: number;
|
|
14402
|
+
pick_days_before_transport?: number;
|
|
14403
|
+
pick_distribution_enabled?: boolean;
|
|
14404
|
+
transport_register_days_before?: number;
|
|
14405
|
+
updated_at?: string;
|
|
14406
|
+
user_id?: string;
|
|
14407
|
+
};
|
|
14408
|
+
Relationships: [];
|
|
14409
|
+
};
|
|
13307
14410
|
agenda_connections: {
|
|
13308
14411
|
Row: {
|
|
13309
14412
|
account_email: string | null;
|
|
@@ -13572,6 +14675,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
13572
14675
|
invoice_run_id: string | null;
|
|
13573
14676
|
invoice_status: string | null;
|
|
13574
14677
|
invoiced_at: string | null;
|
|
14678
|
+
notes: string | null;
|
|
13575
14679
|
number_of_people: number;
|
|
13576
14680
|
room_id: string;
|
|
13577
14681
|
start_time: string;
|
|
@@ -13596,6 +14700,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
13596
14700
|
invoice_run_id?: string | null;
|
|
13597
14701
|
invoice_status?: string | null;
|
|
13598
14702
|
invoiced_at?: string | null;
|
|
14703
|
+
notes?: string | null;
|
|
13599
14704
|
number_of_people?: number;
|
|
13600
14705
|
room_id: string;
|
|
13601
14706
|
start_time: string;
|
|
@@ -13620,6 +14725,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
13620
14725
|
invoice_run_id?: string | null;
|
|
13621
14726
|
invoice_status?: string | null;
|
|
13622
14727
|
invoiced_at?: string | null;
|
|
14728
|
+
notes?: string | null;
|
|
13623
14729
|
number_of_people?: number;
|
|
13624
14730
|
room_id?: string;
|
|
13625
14731
|
start_time?: string;
|
|
@@ -13711,9 +14817,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
13711
14817
|
delivery_days: number | null;
|
|
13712
14818
|
email: string | null;
|
|
13713
14819
|
id: string;
|
|
14820
|
+
is_default: boolean;
|
|
13714
14821
|
name: string;
|
|
13715
14822
|
notes: string | null;
|
|
13716
14823
|
phone: string | null;
|
|
14824
|
+
pickup_moments: import("../integrations/supabase/types").Json;
|
|
14825
|
+
signup_days_before_delivery: number;
|
|
13717
14826
|
signup_time_1: string | null;
|
|
13718
14827
|
signup_time_2: string | null;
|
|
13719
14828
|
updated_at: string;
|
|
@@ -13726,9 +14835,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
13726
14835
|
delivery_days?: number | null;
|
|
13727
14836
|
email?: string | null;
|
|
13728
14837
|
id?: string;
|
|
14838
|
+
is_default?: boolean;
|
|
13729
14839
|
name: string;
|
|
13730
14840
|
notes?: string | null;
|
|
13731
14841
|
phone?: string | null;
|
|
14842
|
+
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
14843
|
+
signup_days_before_delivery?: number;
|
|
13732
14844
|
signup_time_1?: string | null;
|
|
13733
14845
|
signup_time_2?: string | null;
|
|
13734
14846
|
updated_at?: string;
|
|
@@ -13741,9 +14853,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
13741
14853
|
delivery_days?: number | null;
|
|
13742
14854
|
email?: string | null;
|
|
13743
14855
|
id?: string;
|
|
14856
|
+
is_default?: boolean;
|
|
13744
14857
|
name?: string;
|
|
13745
14858
|
notes?: string | null;
|
|
13746
14859
|
phone?: string | null;
|
|
14860
|
+
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
14861
|
+
signup_days_before_delivery?: number;
|
|
13747
14862
|
signup_time_1?: string | null;
|
|
13748
14863
|
signup_time_2?: string | null;
|
|
13749
14864
|
updated_at?: string;
|
|
@@ -15491,6 +16606,51 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
15491
16606
|
referencedColumns: ["id"];
|
|
15492
16607
|
}];
|
|
15493
16608
|
};
|
|
16609
|
+
exact_push_queue: {
|
|
16610
|
+
Row: {
|
|
16611
|
+
attempts: number;
|
|
16612
|
+
connection_id: string;
|
|
16613
|
+
created_at: string;
|
|
16614
|
+
external_id: string | null;
|
|
16615
|
+
id: string;
|
|
16616
|
+
idempotency_hash: string;
|
|
16617
|
+
last_error: string | null;
|
|
16618
|
+
payload: import("../integrations/supabase/types").Json;
|
|
16619
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
16620
|
+
updated_at: string;
|
|
16621
|
+
};
|
|
16622
|
+
Insert: {
|
|
16623
|
+
attempts?: number;
|
|
16624
|
+
connection_id: string;
|
|
16625
|
+
created_at?: string;
|
|
16626
|
+
external_id?: string | null;
|
|
16627
|
+
id?: string;
|
|
16628
|
+
idempotency_hash: string;
|
|
16629
|
+
last_error?: string | null;
|
|
16630
|
+
payload: import("../integrations/supabase/types").Json;
|
|
16631
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
16632
|
+
updated_at?: string;
|
|
16633
|
+
};
|
|
16634
|
+
Update: {
|
|
16635
|
+
attempts?: number;
|
|
16636
|
+
connection_id?: string;
|
|
16637
|
+
created_at?: string;
|
|
16638
|
+
external_id?: string | null;
|
|
16639
|
+
id?: string;
|
|
16640
|
+
idempotency_hash?: string;
|
|
16641
|
+
last_error?: string | null;
|
|
16642
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
16643
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
16644
|
+
updated_at?: string;
|
|
16645
|
+
};
|
|
16646
|
+
Relationships: [{
|
|
16647
|
+
foreignKeyName: "exact_push_queue_connection_id_fkey";
|
|
16648
|
+
columns: ["connection_id"];
|
|
16649
|
+
isOneToOne: false;
|
|
16650
|
+
referencedRelation: "exact_connections";
|
|
16651
|
+
referencedColumns: ["id"];
|
|
16652
|
+
}];
|
|
16653
|
+
};
|
|
15494
16654
|
exact_refresh_locks: {
|
|
15495
16655
|
Row: {
|
|
15496
16656
|
environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
|
|
@@ -15553,6 +16713,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
15553
16713
|
connection_id: string;
|
|
15554
16714
|
last_error: string | null;
|
|
15555
16715
|
last_modified_cursor: string | null;
|
|
16716
|
+
last_modified_cursor_customers: string | null;
|
|
16717
|
+
last_modified_cursor_invoices: string | null;
|
|
15556
16718
|
last_synced_at: string | null;
|
|
15557
16719
|
status: string;
|
|
15558
16720
|
updated_at: string;
|
|
@@ -15561,6 +16723,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
15561
16723
|
connection_id: string;
|
|
15562
16724
|
last_error?: string | null;
|
|
15563
16725
|
last_modified_cursor?: string | null;
|
|
16726
|
+
last_modified_cursor_customers?: string | null;
|
|
16727
|
+
last_modified_cursor_invoices?: string | null;
|
|
15564
16728
|
last_synced_at?: string | null;
|
|
15565
16729
|
status?: string;
|
|
15566
16730
|
updated_at?: string;
|
|
@@ -15569,6 +16733,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
15569
16733
|
connection_id?: string;
|
|
15570
16734
|
last_error?: string | null;
|
|
15571
16735
|
last_modified_cursor?: string | null;
|
|
16736
|
+
last_modified_cursor_customers?: string | null;
|
|
16737
|
+
last_modified_cursor_invoices?: string | null;
|
|
15572
16738
|
last_synced_at?: string | null;
|
|
15573
16739
|
status?: string;
|
|
15574
16740
|
updated_at?: string;
|
|
@@ -15611,6 +16777,54 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
15611
16777
|
};
|
|
15612
16778
|
Relationships: [];
|
|
15613
16779
|
};
|
|
16780
|
+
external_invoice_providers: {
|
|
16781
|
+
Row: {
|
|
16782
|
+
color: string | null;
|
|
16783
|
+
created_at: string;
|
|
16784
|
+
hmac_secret_name: string | null;
|
|
16785
|
+
icon: string | null;
|
|
16786
|
+
is_enabled: boolean;
|
|
16787
|
+
label: string;
|
|
16788
|
+
last_synced_at: string | null;
|
|
16789
|
+
provider: string;
|
|
16790
|
+
push_endpoint: string | null;
|
|
16791
|
+
sort_order: number;
|
|
16792
|
+
status_endpoint: string | null;
|
|
16793
|
+
sync_endpoint: string | null;
|
|
16794
|
+
updated_at: string;
|
|
16795
|
+
};
|
|
16796
|
+
Insert: {
|
|
16797
|
+
color?: string | null;
|
|
16798
|
+
created_at?: string;
|
|
16799
|
+
hmac_secret_name?: string | null;
|
|
16800
|
+
icon?: string | null;
|
|
16801
|
+
is_enabled?: boolean;
|
|
16802
|
+
label: string;
|
|
16803
|
+
last_synced_at?: string | null;
|
|
16804
|
+
provider: string;
|
|
16805
|
+
push_endpoint?: string | null;
|
|
16806
|
+
sort_order?: number;
|
|
16807
|
+
status_endpoint?: string | null;
|
|
16808
|
+
sync_endpoint?: string | null;
|
|
16809
|
+
updated_at?: string;
|
|
16810
|
+
};
|
|
16811
|
+
Update: {
|
|
16812
|
+
color?: string | null;
|
|
16813
|
+
created_at?: string;
|
|
16814
|
+
hmac_secret_name?: string | null;
|
|
16815
|
+
icon?: string | null;
|
|
16816
|
+
is_enabled?: boolean;
|
|
16817
|
+
label?: string;
|
|
16818
|
+
last_synced_at?: string | null;
|
|
16819
|
+
provider?: string;
|
|
16820
|
+
push_endpoint?: string | null;
|
|
16821
|
+
sort_order?: number;
|
|
16822
|
+
status_endpoint?: string | null;
|
|
16823
|
+
sync_endpoint?: string | null;
|
|
16824
|
+
updated_at?: string;
|
|
16825
|
+
};
|
|
16826
|
+
Relationships: [];
|
|
16827
|
+
};
|
|
15614
16828
|
extra_categories: {
|
|
15615
16829
|
Row: {
|
|
15616
16830
|
created_at: string;
|
|
@@ -16319,6 +17533,57 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
16319
17533
|
};
|
|
16320
17534
|
Relationships: [];
|
|
16321
17535
|
};
|
|
17536
|
+
invoice_push_log: {
|
|
17537
|
+
Row: {
|
|
17538
|
+
connection_id: string | null;
|
|
17539
|
+
created_at: string;
|
|
17540
|
+
created_by: string;
|
|
17541
|
+
customer_id: string | null;
|
|
17542
|
+
id: string;
|
|
17543
|
+
last_error: string | null;
|
|
17544
|
+
last_polled_at: string | null;
|
|
17545
|
+
payload: import("../integrations/supabase/types").Json;
|
|
17546
|
+
provider_id: string;
|
|
17547
|
+
queue_id: string | null;
|
|
17548
|
+
status: string;
|
|
17549
|
+
updated_at: string;
|
|
17550
|
+
};
|
|
17551
|
+
Insert: {
|
|
17552
|
+
connection_id?: string | null;
|
|
17553
|
+
created_at?: string;
|
|
17554
|
+
created_by?: string;
|
|
17555
|
+
customer_id?: string | null;
|
|
17556
|
+
id?: string;
|
|
17557
|
+
last_error?: string | null;
|
|
17558
|
+
last_polled_at?: string | null;
|
|
17559
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
17560
|
+
provider_id: string;
|
|
17561
|
+
queue_id?: string | null;
|
|
17562
|
+
status?: string;
|
|
17563
|
+
updated_at?: string;
|
|
17564
|
+
};
|
|
17565
|
+
Update: {
|
|
17566
|
+
connection_id?: string | null;
|
|
17567
|
+
created_at?: string;
|
|
17568
|
+
created_by?: string;
|
|
17569
|
+
customer_id?: string | null;
|
|
17570
|
+
id?: string;
|
|
17571
|
+
last_error?: string | null;
|
|
17572
|
+
last_polled_at?: string | null;
|
|
17573
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
17574
|
+
provider_id?: string;
|
|
17575
|
+
queue_id?: string | null;
|
|
17576
|
+
status?: string;
|
|
17577
|
+
updated_at?: string;
|
|
17578
|
+
};
|
|
17579
|
+
Relationships: [{
|
|
17580
|
+
foreignKeyName: "invoice_push_log_provider_id_fkey";
|
|
17581
|
+
columns: ["provider_id"];
|
|
17582
|
+
isOneToOne: false;
|
|
17583
|
+
referencedRelation: "external_invoice_providers";
|
|
17584
|
+
referencedColumns: ["provider"];
|
|
17585
|
+
}];
|
|
17586
|
+
};
|
|
16322
17587
|
invoice_run_items: {
|
|
16323
17588
|
Row: {
|
|
16324
17589
|
booking_id: string | null;
|
|
@@ -17426,6 +18691,36 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
17426
18691
|
};
|
|
17427
18692
|
Relationships: [];
|
|
17428
18693
|
};
|
|
18694
|
+
pickstation_print_log: {
|
|
18695
|
+
Row: {
|
|
18696
|
+
customer_name: string | null;
|
|
18697
|
+
documents: string[];
|
|
18698
|
+
id: string;
|
|
18699
|
+
ip_address: string | null;
|
|
18700
|
+
order_id: string;
|
|
18701
|
+
order_number: string | null;
|
|
18702
|
+
printed_at: string;
|
|
18703
|
+
};
|
|
18704
|
+
Insert: {
|
|
18705
|
+
customer_name?: string | null;
|
|
18706
|
+
documents?: string[];
|
|
18707
|
+
id?: string;
|
|
18708
|
+
ip_address?: string | null;
|
|
18709
|
+
order_id: string;
|
|
18710
|
+
order_number?: string | null;
|
|
18711
|
+
printed_at?: string;
|
|
18712
|
+
};
|
|
18713
|
+
Update: {
|
|
18714
|
+
customer_name?: string | null;
|
|
18715
|
+
documents?: string[];
|
|
18716
|
+
id?: string;
|
|
18717
|
+
ip_address?: string | null;
|
|
18718
|
+
order_id?: string;
|
|
18719
|
+
order_number?: string | null;
|
|
18720
|
+
printed_at?: string;
|
|
18721
|
+
};
|
|
18722
|
+
Relationships: [];
|
|
18723
|
+
};
|
|
17429
18724
|
pipeline_settings: {
|
|
17430
18725
|
Row: {
|
|
17431
18726
|
created_at: string;
|
|
@@ -18869,9 +20164,11 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
18869
20164
|
fetched_at: string;
|
|
18870
20165
|
invoice_number: string;
|
|
18871
20166
|
line_number: number;
|
|
20167
|
+
line_total: number | null;
|
|
18872
20168
|
quantity: number | null;
|
|
18873
20169
|
unit_price: number | null;
|
|
18874
20170
|
vat_code: string | null;
|
|
20171
|
+
vat_rate: number | null;
|
|
18875
20172
|
};
|
|
18876
20173
|
Insert: {
|
|
18877
20174
|
article_code?: string | null;
|
|
@@ -18881,9 +20178,11 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
18881
20178
|
fetched_at?: string;
|
|
18882
20179
|
invoice_number: string;
|
|
18883
20180
|
line_number: number;
|
|
20181
|
+
line_total?: number | null;
|
|
18884
20182
|
quantity?: number | null;
|
|
18885
20183
|
unit_price?: number | null;
|
|
18886
20184
|
vat_code?: string | null;
|
|
20185
|
+
vat_rate?: number | null;
|
|
18887
20186
|
};
|
|
18888
20187
|
Update: {
|
|
18889
20188
|
article_code?: string | null;
|
|
@@ -18893,9 +20192,11 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
18893
20192
|
fetched_at?: string;
|
|
18894
20193
|
invoice_number?: string;
|
|
18895
20194
|
line_number?: number;
|
|
20195
|
+
line_total?: number | null;
|
|
18896
20196
|
quantity?: number | null;
|
|
18897
20197
|
unit_price?: number | null;
|
|
18898
20198
|
vat_code?: string | null;
|
|
20199
|
+
vat_rate?: number | null;
|
|
18899
20200
|
};
|
|
18900
20201
|
Relationships: [{
|
|
18901
20202
|
foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
|
|
@@ -19072,9 +20373,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19072
20373
|
invoice_date: string | null;
|
|
19073
20374
|
invoice_number: string;
|
|
19074
20375
|
modified_at: string | null;
|
|
20376
|
+
outstanding_amount: number | null;
|
|
19075
20377
|
status: string | null;
|
|
20378
|
+
status_label: string | null;
|
|
19076
20379
|
total_excl: number | null;
|
|
19077
20380
|
total_incl: number | null;
|
|
20381
|
+
vat_amount: number | null;
|
|
19078
20382
|
};
|
|
19079
20383
|
Insert: {
|
|
19080
20384
|
connection_id: string;
|
|
@@ -19086,9 +20390,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19086
20390
|
invoice_date?: string | null;
|
|
19087
20391
|
invoice_number: string;
|
|
19088
20392
|
modified_at?: string | null;
|
|
20393
|
+
outstanding_amount?: number | null;
|
|
19089
20394
|
status?: string | null;
|
|
20395
|
+
status_label?: string | null;
|
|
19090
20396
|
total_excl?: number | null;
|
|
19091
20397
|
total_incl?: number | null;
|
|
20398
|
+
vat_amount?: number | null;
|
|
19092
20399
|
};
|
|
19093
20400
|
Update: {
|
|
19094
20401
|
connection_id?: string;
|
|
@@ -19100,9 +20407,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19100
20407
|
invoice_date?: string | null;
|
|
19101
20408
|
invoice_number?: string;
|
|
19102
20409
|
modified_at?: string | null;
|
|
20410
|
+
outstanding_amount?: number | null;
|
|
19103
20411
|
status?: string | null;
|
|
20412
|
+
status_label?: string | null;
|
|
19104
20413
|
total_excl?: number | null;
|
|
19105
20414
|
total_incl?: number | null;
|
|
20415
|
+
vat_amount?: number | null;
|
|
19106
20416
|
};
|
|
19107
20417
|
Relationships: [{
|
|
19108
20418
|
foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
|
|
@@ -19136,6 +20446,57 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19136
20446
|
};
|
|
19137
20447
|
Relationships: [];
|
|
19138
20448
|
};
|
|
20449
|
+
twinfield_push_queue: {
|
|
20450
|
+
Row: {
|
|
20451
|
+
attempts: number;
|
|
20452
|
+
connection_id: string;
|
|
20453
|
+
created_at: string;
|
|
20454
|
+
external_id: string | null;
|
|
20455
|
+
id: string;
|
|
20456
|
+
idempotency_key: string;
|
|
20457
|
+
last_error: string | null;
|
|
20458
|
+
next_attempt_at: string;
|
|
20459
|
+
office_code: string;
|
|
20460
|
+
payload: import("../integrations/supabase/types").Json;
|
|
20461
|
+
status: string;
|
|
20462
|
+
updated_at: string;
|
|
20463
|
+
};
|
|
20464
|
+
Insert: {
|
|
20465
|
+
attempts?: number;
|
|
20466
|
+
connection_id: string;
|
|
20467
|
+
created_at?: string;
|
|
20468
|
+
external_id?: string | null;
|
|
20469
|
+
id?: string;
|
|
20470
|
+
idempotency_key: string;
|
|
20471
|
+
last_error?: string | null;
|
|
20472
|
+
next_attempt_at?: string;
|
|
20473
|
+
office_code: string;
|
|
20474
|
+
payload: import("../integrations/supabase/types").Json;
|
|
20475
|
+
status?: string;
|
|
20476
|
+
updated_at?: string;
|
|
20477
|
+
};
|
|
20478
|
+
Update: {
|
|
20479
|
+
attempts?: number;
|
|
20480
|
+
connection_id?: string;
|
|
20481
|
+
created_at?: string;
|
|
20482
|
+
external_id?: string | null;
|
|
20483
|
+
id?: string;
|
|
20484
|
+
idempotency_key?: string;
|
|
20485
|
+
last_error?: string | null;
|
|
20486
|
+
next_attempt_at?: string;
|
|
20487
|
+
office_code?: string;
|
|
20488
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
20489
|
+
status?: string;
|
|
20490
|
+
updated_at?: string;
|
|
20491
|
+
};
|
|
20492
|
+
Relationships: [{
|
|
20493
|
+
foreignKeyName: "twinfield_push_queue_connection_id_fkey";
|
|
20494
|
+
columns: ["connection_id"];
|
|
20495
|
+
isOneToOne: false;
|
|
20496
|
+
referencedRelation: "twinfield_connections";
|
|
20497
|
+
referencedColumns: ["id"];
|
|
20498
|
+
}];
|
|
20499
|
+
};
|
|
19139
20500
|
twinfield_settings: {
|
|
19140
20501
|
Row: {
|
|
19141
20502
|
active_environment: string;
|
|
@@ -19549,14 +20910,140 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19549
20910
|
logo_url: string | null;
|
|
19550
20911
|
phone: string | null;
|
|
19551
20912
|
postal_code: string | null;
|
|
19552
|
-
provider: string | null;
|
|
20913
|
+
provider: string | null;
|
|
20914
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
20915
|
+
status: string | null;
|
|
20916
|
+
street: string | null;
|
|
20917
|
+
vat_number: string | null;
|
|
20918
|
+
website: string | null;
|
|
20919
|
+
};
|
|
20920
|
+
Relationships: [];
|
|
20921
|
+
};
|
|
20922
|
+
external_invoices_grouped: {
|
|
20923
|
+
Row: {
|
|
20924
|
+
currency: string | null;
|
|
20925
|
+
customer_external_id: string | null;
|
|
20926
|
+
customer_name: string | null;
|
|
20927
|
+
customer_vat: string | null;
|
|
20928
|
+
due_at: string | null;
|
|
20929
|
+
group_key: string | null;
|
|
20930
|
+
invoice_number: string | null;
|
|
20931
|
+
is_merged: boolean | null;
|
|
20932
|
+
issued_at: string | null;
|
|
20933
|
+
modified_at: string | null;
|
|
20934
|
+
open_amount: number | null;
|
|
20935
|
+
paid_at: string | null;
|
|
20936
|
+
providers: string[] | null;
|
|
20937
|
+
source_count: number | null;
|
|
20938
|
+
sources: import("../integrations/supabase/types").Json | null;
|
|
20939
|
+
status: string | null;
|
|
20940
|
+
total_excl: number | null;
|
|
20941
|
+
total_incl: number | null;
|
|
20942
|
+
total_vat: number | null;
|
|
20943
|
+
};
|
|
20944
|
+
Relationships: [];
|
|
20945
|
+
};
|
|
20946
|
+
external_invoices_unified: {
|
|
20947
|
+
Row: {
|
|
20948
|
+
connection_id: string | null;
|
|
20949
|
+
currency: string | null;
|
|
20950
|
+
customer_external_id: string | null;
|
|
20951
|
+
customer_name: string | null;
|
|
20952
|
+
customer_vat: string | null;
|
|
20953
|
+
due_at: string | null;
|
|
20954
|
+
external_id: string | null;
|
|
20955
|
+
invoice_number: string | null;
|
|
20956
|
+
issued_at: string | null;
|
|
20957
|
+
open_amount: number | null;
|
|
20958
|
+
owner_user_id: string | null;
|
|
20959
|
+
paid_at: string | null;
|
|
20960
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
20961
|
+
source: string | null;
|
|
20962
|
+
status: string | null;
|
|
20963
|
+
synced_at: string | null;
|
|
20964
|
+
total_excl: number | null;
|
|
20965
|
+
total_incl: number | null;
|
|
20966
|
+
total_vat: number | null;
|
|
20967
|
+
};
|
|
20968
|
+
Relationships: [];
|
|
20969
|
+
};
|
|
20970
|
+
v_external_customers_exact: {
|
|
20971
|
+
Row: {
|
|
20972
|
+
account_number: string | null;
|
|
20973
|
+
city: string | null;
|
|
20974
|
+
coc_number: string | null;
|
|
20975
|
+
company_name: string | null;
|
|
20976
|
+
connection_id: string | null;
|
|
20977
|
+
country: string | null;
|
|
20978
|
+
currency: string | null;
|
|
20979
|
+
email: string | null;
|
|
20980
|
+
external_id: string | null;
|
|
20981
|
+
is_sales: boolean | null;
|
|
20982
|
+
is_supplier: boolean | null;
|
|
20983
|
+
language: string | null;
|
|
20984
|
+
modified_at: string | null;
|
|
20985
|
+
phone: string | null;
|
|
20986
|
+
postal_code: string | null;
|
|
19553
20987
|
raw: import("../integrations/supabase/types").Json | null;
|
|
19554
|
-
|
|
20988
|
+
source: string | null;
|
|
19555
20989
|
street: string | null;
|
|
20990
|
+
synced_at: string | null;
|
|
19556
20991
|
vat_number: string | null;
|
|
19557
20992
|
website: string | null;
|
|
19558
20993
|
};
|
|
19559
|
-
|
|
20994
|
+
Insert: {
|
|
20995
|
+
account_number?: string | null;
|
|
20996
|
+
city?: string | null;
|
|
20997
|
+
coc_number?: string | null;
|
|
20998
|
+
company_name?: string | null;
|
|
20999
|
+
connection_id?: string | null;
|
|
21000
|
+
country?: string | null;
|
|
21001
|
+
currency?: string | null;
|
|
21002
|
+
email?: string | null;
|
|
21003
|
+
external_id?: string | null;
|
|
21004
|
+
is_sales?: boolean | null;
|
|
21005
|
+
is_supplier?: boolean | null;
|
|
21006
|
+
language?: string | null;
|
|
21007
|
+
modified_at?: string | null;
|
|
21008
|
+
phone?: string | null;
|
|
21009
|
+
postal_code?: string | null;
|
|
21010
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
21011
|
+
source?: never;
|
|
21012
|
+
street?: string | null;
|
|
21013
|
+
synced_at?: string | null;
|
|
21014
|
+
vat_number?: string | null;
|
|
21015
|
+
website?: string | null;
|
|
21016
|
+
};
|
|
21017
|
+
Update: {
|
|
21018
|
+
account_number?: string | null;
|
|
21019
|
+
city?: string | null;
|
|
21020
|
+
coc_number?: string | null;
|
|
21021
|
+
company_name?: string | null;
|
|
21022
|
+
connection_id?: string | null;
|
|
21023
|
+
country?: string | null;
|
|
21024
|
+
currency?: string | null;
|
|
21025
|
+
email?: string | null;
|
|
21026
|
+
external_id?: string | null;
|
|
21027
|
+
is_sales?: boolean | null;
|
|
21028
|
+
is_supplier?: boolean | null;
|
|
21029
|
+
language?: string | null;
|
|
21030
|
+
modified_at?: string | null;
|
|
21031
|
+
phone?: string | null;
|
|
21032
|
+
postal_code?: string | null;
|
|
21033
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
21034
|
+
source?: never;
|
|
21035
|
+
street?: string | null;
|
|
21036
|
+
synced_at?: string | null;
|
|
21037
|
+
vat_number?: string | null;
|
|
21038
|
+
website?: string | null;
|
|
21039
|
+
};
|
|
21040
|
+
Relationships: [{
|
|
21041
|
+
foreignKeyName: "exact_customers_cache_connection_id_fkey";
|
|
21042
|
+
columns: ["connection_id"];
|
|
21043
|
+
isOneToOne: false;
|
|
21044
|
+
referencedRelation: "exact_connections";
|
|
21045
|
+
referencedColumns: ["id"];
|
|
21046
|
+
}];
|
|
19560
21047
|
};
|
|
19561
21048
|
v_external_customers_floriday: {
|
|
19562
21049
|
Row: {
|
|
@@ -19624,8 +21111,113 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19624
21111
|
referencedColumns: ["id"];
|
|
19625
21112
|
}];
|
|
19626
21113
|
};
|
|
21114
|
+
v_external_invoices_exact: {
|
|
21115
|
+
Row: {
|
|
21116
|
+
connection_id: string | null;
|
|
21117
|
+
currency: string | null;
|
|
21118
|
+
customer_external_id: string | null;
|
|
21119
|
+
customer_name: string | null;
|
|
21120
|
+
customer_vat: string | null;
|
|
21121
|
+
due_at: string | null;
|
|
21122
|
+
external_id: string | null;
|
|
21123
|
+
invoice_number: string | null;
|
|
21124
|
+
issued_at: string | null;
|
|
21125
|
+
open_amount: number | null;
|
|
21126
|
+
paid_at: string | null;
|
|
21127
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
21128
|
+
source: string | null;
|
|
21129
|
+
status: string | null;
|
|
21130
|
+
synced_at: string | null;
|
|
21131
|
+
total_excl: number | null;
|
|
21132
|
+
total_incl: number | null;
|
|
21133
|
+
total_vat: number | null;
|
|
21134
|
+
};
|
|
21135
|
+
Insert: {
|
|
21136
|
+
connection_id?: string | null;
|
|
21137
|
+
currency?: never;
|
|
21138
|
+
customer_external_id?: string | null;
|
|
21139
|
+
customer_name?: string | null;
|
|
21140
|
+
customer_vat?: never;
|
|
21141
|
+
due_at?: string | null;
|
|
21142
|
+
external_id?: string | null;
|
|
21143
|
+
invoice_number?: string | null;
|
|
21144
|
+
issued_at?: string | null;
|
|
21145
|
+
open_amount?: number | null;
|
|
21146
|
+
paid_at?: string | null;
|
|
21147
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
21148
|
+
source?: never;
|
|
21149
|
+
status?: string | null;
|
|
21150
|
+
synced_at?: string | null;
|
|
21151
|
+
total_excl?: number | null;
|
|
21152
|
+
total_incl?: number | null;
|
|
21153
|
+
total_vat?: number | null;
|
|
21154
|
+
};
|
|
21155
|
+
Update: {
|
|
21156
|
+
connection_id?: string | null;
|
|
21157
|
+
currency?: never;
|
|
21158
|
+
customer_external_id?: string | null;
|
|
21159
|
+
customer_name?: string | null;
|
|
21160
|
+
customer_vat?: never;
|
|
21161
|
+
due_at?: string | null;
|
|
21162
|
+
external_id?: string | null;
|
|
21163
|
+
invoice_number?: string | null;
|
|
21164
|
+
issued_at?: string | null;
|
|
21165
|
+
open_amount?: number | null;
|
|
21166
|
+
paid_at?: string | null;
|
|
21167
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
21168
|
+
source?: never;
|
|
21169
|
+
status?: string | null;
|
|
21170
|
+
synced_at?: string | null;
|
|
21171
|
+
total_excl?: number | null;
|
|
21172
|
+
total_incl?: number | null;
|
|
21173
|
+
total_vat?: number | null;
|
|
21174
|
+
};
|
|
21175
|
+
Relationships: [{
|
|
21176
|
+
foreignKeyName: "exact_invoices_cache_connection_id_fkey";
|
|
21177
|
+
columns: ["connection_id"];
|
|
21178
|
+
isOneToOne: false;
|
|
21179
|
+
referencedRelation: "exact_connections";
|
|
21180
|
+
referencedColumns: ["id"];
|
|
21181
|
+
}];
|
|
21182
|
+
};
|
|
21183
|
+
v_external_invoices_twinfield: {
|
|
21184
|
+
Row: {
|
|
21185
|
+
connection_id: string | null;
|
|
21186
|
+
currency: string | null;
|
|
21187
|
+
customer_external_id: string | null;
|
|
21188
|
+
customer_name: string | null;
|
|
21189
|
+
customer_vat: string | null;
|
|
21190
|
+
due_at: string | null;
|
|
21191
|
+
external_id: string | null;
|
|
21192
|
+
invoice_number: string | null;
|
|
21193
|
+
issued_at: string | null;
|
|
21194
|
+
open_amount: number | null;
|
|
21195
|
+
owner_user_id: string | null;
|
|
21196
|
+
paid_at: string | null;
|
|
21197
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
21198
|
+
source: string | null;
|
|
21199
|
+
status: string | null;
|
|
21200
|
+
synced_at: string | null;
|
|
21201
|
+
total_excl: number | null;
|
|
21202
|
+
total_incl: number | null;
|
|
21203
|
+
total_vat: number | null;
|
|
21204
|
+
};
|
|
21205
|
+
Relationships: [{
|
|
21206
|
+
foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
|
|
21207
|
+
columns: ["connection_id"];
|
|
21208
|
+
isOneToOne: false;
|
|
21209
|
+
referencedRelation: "twinfield_connections";
|
|
21210
|
+
referencedColumns: ["id"];
|
|
21211
|
+
}];
|
|
21212
|
+
};
|
|
19627
21213
|
};
|
|
19628
21214
|
Functions: {
|
|
21215
|
+
call_exact_route: {
|
|
21216
|
+
Args: {
|
|
21217
|
+
path: string;
|
|
21218
|
+
};
|
|
21219
|
+
Returns: number;
|
|
21220
|
+
};
|
|
19629
21221
|
dashboard_list_public_schema: {
|
|
19630
21222
|
Args: never;
|
|
19631
21223
|
Returns: {
|
|
@@ -19881,6 +21473,14 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19881
21473
|
};
|
|
19882
21474
|
Returns: number;
|
|
19883
21475
|
};
|
|
21476
|
+
schedule_twinfield_push_queue_flush: {
|
|
21477
|
+
Args: {
|
|
21478
|
+
p_apikey: string;
|
|
21479
|
+
p_cron_secret?: string;
|
|
21480
|
+
p_url: string;
|
|
21481
|
+
};
|
|
21482
|
+
Returns: number;
|
|
21483
|
+
};
|
|
19884
21484
|
schedule_twinfield_token_refresh: {
|
|
19885
21485
|
Args: {
|
|
19886
21486
|
p_apikey: string;
|
|
@@ -19921,6 +21521,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19921
21521
|
Enums: {
|
|
19922
21522
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
19923
21523
|
exact_env: "staging" | "live";
|
|
21524
|
+
exact_push_status: "pending" | "sent" | "error";
|
|
19924
21525
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
19925
21526
|
};
|
|
19926
21527
|
CompositeTypes: { [_ in never]: never; };
|
|
@@ -19941,6 +21542,39 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19941
21542
|
export declare const deleteCarrier: import("@tanstack/start-client-core").RequiredFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
19942
21543
|
supabase: import("@supabase/supabase-js").SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
|
|
19943
21544
|
Tables: {
|
|
21545
|
+
afhandeling_settings: {
|
|
21546
|
+
Row: {
|
|
21547
|
+
created_at: string;
|
|
21548
|
+
id: string;
|
|
21549
|
+
max_workdays_earlier_pick: number;
|
|
21550
|
+
pick_days_before_transport: number;
|
|
21551
|
+
pick_distribution_enabled: boolean;
|
|
21552
|
+
transport_register_days_before: number;
|
|
21553
|
+
updated_at: string;
|
|
21554
|
+
user_id: string;
|
|
21555
|
+
};
|
|
21556
|
+
Insert: {
|
|
21557
|
+
created_at?: string;
|
|
21558
|
+
id?: string;
|
|
21559
|
+
max_workdays_earlier_pick?: number;
|
|
21560
|
+
pick_days_before_transport?: number;
|
|
21561
|
+
pick_distribution_enabled?: boolean;
|
|
21562
|
+
transport_register_days_before?: number;
|
|
21563
|
+
updated_at?: string;
|
|
21564
|
+
user_id: string;
|
|
21565
|
+
};
|
|
21566
|
+
Update: {
|
|
21567
|
+
created_at?: string;
|
|
21568
|
+
id?: string;
|
|
21569
|
+
max_workdays_earlier_pick?: number;
|
|
21570
|
+
pick_days_before_transport?: number;
|
|
21571
|
+
pick_distribution_enabled?: boolean;
|
|
21572
|
+
transport_register_days_before?: number;
|
|
21573
|
+
updated_at?: string;
|
|
21574
|
+
user_id?: string;
|
|
21575
|
+
};
|
|
21576
|
+
Relationships: [];
|
|
21577
|
+
};
|
|
19944
21578
|
agenda_connections: {
|
|
19945
21579
|
Row: {
|
|
19946
21580
|
account_email: string | null;
|
|
@@ -20209,6 +21843,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
20209
21843
|
invoice_run_id: string | null;
|
|
20210
21844
|
invoice_status: string | null;
|
|
20211
21845
|
invoiced_at: string | null;
|
|
21846
|
+
notes: string | null;
|
|
20212
21847
|
number_of_people: number;
|
|
20213
21848
|
room_id: string;
|
|
20214
21849
|
start_time: string;
|
|
@@ -20233,6 +21868,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
20233
21868
|
invoice_run_id?: string | null;
|
|
20234
21869
|
invoice_status?: string | null;
|
|
20235
21870
|
invoiced_at?: string | null;
|
|
21871
|
+
notes?: string | null;
|
|
20236
21872
|
number_of_people?: number;
|
|
20237
21873
|
room_id: string;
|
|
20238
21874
|
start_time: string;
|
|
@@ -20257,6 +21893,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
20257
21893
|
invoice_run_id?: string | null;
|
|
20258
21894
|
invoice_status?: string | null;
|
|
20259
21895
|
invoiced_at?: string | null;
|
|
21896
|
+
notes?: string | null;
|
|
20260
21897
|
number_of_people?: number;
|
|
20261
21898
|
room_id?: string;
|
|
20262
21899
|
start_time?: string;
|
|
@@ -20348,9 +21985,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
20348
21985
|
delivery_days: number | null;
|
|
20349
21986
|
email: string | null;
|
|
20350
21987
|
id: string;
|
|
21988
|
+
is_default: boolean;
|
|
20351
21989
|
name: string;
|
|
20352
21990
|
notes: string | null;
|
|
20353
21991
|
phone: string | null;
|
|
21992
|
+
pickup_moments: import("../integrations/supabase/types").Json;
|
|
21993
|
+
signup_days_before_delivery: number;
|
|
20354
21994
|
signup_time_1: string | null;
|
|
20355
21995
|
signup_time_2: string | null;
|
|
20356
21996
|
updated_at: string;
|
|
@@ -20363,9 +22003,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
20363
22003
|
delivery_days?: number | null;
|
|
20364
22004
|
email?: string | null;
|
|
20365
22005
|
id?: string;
|
|
22006
|
+
is_default?: boolean;
|
|
20366
22007
|
name: string;
|
|
20367
22008
|
notes?: string | null;
|
|
20368
22009
|
phone?: string | null;
|
|
22010
|
+
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
22011
|
+
signup_days_before_delivery?: number;
|
|
20369
22012
|
signup_time_1?: string | null;
|
|
20370
22013
|
signup_time_2?: string | null;
|
|
20371
22014
|
updated_at?: string;
|
|
@@ -20378,9 +22021,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
20378
22021
|
delivery_days?: number | null;
|
|
20379
22022
|
email?: string | null;
|
|
20380
22023
|
id?: string;
|
|
22024
|
+
is_default?: boolean;
|
|
20381
22025
|
name?: string;
|
|
20382
22026
|
notes?: string | null;
|
|
20383
22027
|
phone?: string | null;
|
|
22028
|
+
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
22029
|
+
signup_days_before_delivery?: number;
|
|
20384
22030
|
signup_time_1?: string | null;
|
|
20385
22031
|
signup_time_2?: string | null;
|
|
20386
22032
|
updated_at?: string;
|
|
@@ -22128,6 +23774,51 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
22128
23774
|
referencedColumns: ["id"];
|
|
22129
23775
|
}];
|
|
22130
23776
|
};
|
|
23777
|
+
exact_push_queue: {
|
|
23778
|
+
Row: {
|
|
23779
|
+
attempts: number;
|
|
23780
|
+
connection_id: string;
|
|
23781
|
+
created_at: string;
|
|
23782
|
+
external_id: string | null;
|
|
23783
|
+
id: string;
|
|
23784
|
+
idempotency_hash: string;
|
|
23785
|
+
last_error: string | null;
|
|
23786
|
+
payload: import("../integrations/supabase/types").Json;
|
|
23787
|
+
status: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
23788
|
+
updated_at: string;
|
|
23789
|
+
};
|
|
23790
|
+
Insert: {
|
|
23791
|
+
attempts?: number;
|
|
23792
|
+
connection_id: string;
|
|
23793
|
+
created_at?: string;
|
|
23794
|
+
external_id?: string | null;
|
|
23795
|
+
id?: string;
|
|
23796
|
+
idempotency_hash: string;
|
|
23797
|
+
last_error?: string | null;
|
|
23798
|
+
payload: import("../integrations/supabase/types").Json;
|
|
23799
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
23800
|
+
updated_at?: string;
|
|
23801
|
+
};
|
|
23802
|
+
Update: {
|
|
23803
|
+
attempts?: number;
|
|
23804
|
+
connection_id?: string;
|
|
23805
|
+
created_at?: string;
|
|
23806
|
+
external_id?: string | null;
|
|
23807
|
+
id?: string;
|
|
23808
|
+
idempotency_hash?: string;
|
|
23809
|
+
last_error?: string | null;
|
|
23810
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
23811
|
+
status?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_push_status"];
|
|
23812
|
+
updated_at?: string;
|
|
23813
|
+
};
|
|
23814
|
+
Relationships: [{
|
|
23815
|
+
foreignKeyName: "exact_push_queue_connection_id_fkey";
|
|
23816
|
+
columns: ["connection_id"];
|
|
23817
|
+
isOneToOne: false;
|
|
23818
|
+
referencedRelation: "exact_connections";
|
|
23819
|
+
referencedColumns: ["id"];
|
|
23820
|
+
}];
|
|
23821
|
+
};
|
|
22131
23822
|
exact_refresh_locks: {
|
|
22132
23823
|
Row: {
|
|
22133
23824
|
environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
|
|
@@ -22190,6 +23881,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
22190
23881
|
connection_id: string;
|
|
22191
23882
|
last_error: string | null;
|
|
22192
23883
|
last_modified_cursor: string | null;
|
|
23884
|
+
last_modified_cursor_customers: string | null;
|
|
23885
|
+
last_modified_cursor_invoices: string | null;
|
|
22193
23886
|
last_synced_at: string | null;
|
|
22194
23887
|
status: string;
|
|
22195
23888
|
updated_at: string;
|
|
@@ -22198,6 +23891,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
22198
23891
|
connection_id: string;
|
|
22199
23892
|
last_error?: string | null;
|
|
22200
23893
|
last_modified_cursor?: string | null;
|
|
23894
|
+
last_modified_cursor_customers?: string | null;
|
|
23895
|
+
last_modified_cursor_invoices?: string | null;
|
|
22201
23896
|
last_synced_at?: string | null;
|
|
22202
23897
|
status?: string;
|
|
22203
23898
|
updated_at?: string;
|
|
@@ -22206,6 +23901,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
22206
23901
|
connection_id?: string;
|
|
22207
23902
|
last_error?: string | null;
|
|
22208
23903
|
last_modified_cursor?: string | null;
|
|
23904
|
+
last_modified_cursor_customers?: string | null;
|
|
23905
|
+
last_modified_cursor_invoices?: string | null;
|
|
22209
23906
|
last_synced_at?: string | null;
|
|
22210
23907
|
status?: string;
|
|
22211
23908
|
updated_at?: string;
|
|
@@ -22248,6 +23945,54 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
22248
23945
|
};
|
|
22249
23946
|
Relationships: [];
|
|
22250
23947
|
};
|
|
23948
|
+
external_invoice_providers: {
|
|
23949
|
+
Row: {
|
|
23950
|
+
color: string | null;
|
|
23951
|
+
created_at: string;
|
|
23952
|
+
hmac_secret_name: string | null;
|
|
23953
|
+
icon: string | null;
|
|
23954
|
+
is_enabled: boolean;
|
|
23955
|
+
label: string;
|
|
23956
|
+
last_synced_at: string | null;
|
|
23957
|
+
provider: string;
|
|
23958
|
+
push_endpoint: string | null;
|
|
23959
|
+
sort_order: number;
|
|
23960
|
+
status_endpoint: string | null;
|
|
23961
|
+
sync_endpoint: string | null;
|
|
23962
|
+
updated_at: string;
|
|
23963
|
+
};
|
|
23964
|
+
Insert: {
|
|
23965
|
+
color?: string | null;
|
|
23966
|
+
created_at?: string;
|
|
23967
|
+
hmac_secret_name?: string | null;
|
|
23968
|
+
icon?: string | null;
|
|
23969
|
+
is_enabled?: boolean;
|
|
23970
|
+
label: string;
|
|
23971
|
+
last_synced_at?: string | null;
|
|
23972
|
+
provider: string;
|
|
23973
|
+
push_endpoint?: string | null;
|
|
23974
|
+
sort_order?: number;
|
|
23975
|
+
status_endpoint?: string | null;
|
|
23976
|
+
sync_endpoint?: string | null;
|
|
23977
|
+
updated_at?: string;
|
|
23978
|
+
};
|
|
23979
|
+
Update: {
|
|
23980
|
+
color?: string | null;
|
|
23981
|
+
created_at?: string;
|
|
23982
|
+
hmac_secret_name?: string | null;
|
|
23983
|
+
icon?: string | null;
|
|
23984
|
+
is_enabled?: boolean;
|
|
23985
|
+
label?: string;
|
|
23986
|
+
last_synced_at?: string | null;
|
|
23987
|
+
provider?: string;
|
|
23988
|
+
push_endpoint?: string | null;
|
|
23989
|
+
sort_order?: number;
|
|
23990
|
+
status_endpoint?: string | null;
|
|
23991
|
+
sync_endpoint?: string | null;
|
|
23992
|
+
updated_at?: string;
|
|
23993
|
+
};
|
|
23994
|
+
Relationships: [];
|
|
23995
|
+
};
|
|
22251
23996
|
extra_categories: {
|
|
22252
23997
|
Row: {
|
|
22253
23998
|
created_at: string;
|
|
@@ -22945,16 +24690,67 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
22945
24690
|
hierarchy_levels?: string[];
|
|
22946
24691
|
id?: string;
|
|
22947
24692
|
updated_at?: string;
|
|
22948
|
-
visible_columns?: string[];
|
|
24693
|
+
visible_columns?: string[];
|
|
24694
|
+
};
|
|
24695
|
+
Update: {
|
|
24696
|
+
created_at?: string;
|
|
24697
|
+
hierarchy_levels?: string[];
|
|
24698
|
+
id?: string;
|
|
24699
|
+
updated_at?: string;
|
|
24700
|
+
visible_columns?: string[];
|
|
24701
|
+
};
|
|
24702
|
+
Relationships: [];
|
|
24703
|
+
};
|
|
24704
|
+
invoice_push_log: {
|
|
24705
|
+
Row: {
|
|
24706
|
+
connection_id: string | null;
|
|
24707
|
+
created_at: string;
|
|
24708
|
+
created_by: string;
|
|
24709
|
+
customer_id: string | null;
|
|
24710
|
+
id: string;
|
|
24711
|
+
last_error: string | null;
|
|
24712
|
+
last_polled_at: string | null;
|
|
24713
|
+
payload: import("../integrations/supabase/types").Json;
|
|
24714
|
+
provider_id: string;
|
|
24715
|
+
queue_id: string | null;
|
|
24716
|
+
status: string;
|
|
24717
|
+
updated_at: string;
|
|
24718
|
+
};
|
|
24719
|
+
Insert: {
|
|
24720
|
+
connection_id?: string | null;
|
|
24721
|
+
created_at?: string;
|
|
24722
|
+
created_by?: string;
|
|
24723
|
+
customer_id?: string | null;
|
|
24724
|
+
id?: string;
|
|
24725
|
+
last_error?: string | null;
|
|
24726
|
+
last_polled_at?: string | null;
|
|
24727
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
24728
|
+
provider_id: string;
|
|
24729
|
+
queue_id?: string | null;
|
|
24730
|
+
status?: string;
|
|
24731
|
+
updated_at?: string;
|
|
22949
24732
|
};
|
|
22950
24733
|
Update: {
|
|
24734
|
+
connection_id?: string | null;
|
|
22951
24735
|
created_at?: string;
|
|
22952
|
-
|
|
24736
|
+
created_by?: string;
|
|
24737
|
+
customer_id?: string | null;
|
|
22953
24738
|
id?: string;
|
|
24739
|
+
last_error?: string | null;
|
|
24740
|
+
last_polled_at?: string | null;
|
|
24741
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
24742
|
+
provider_id?: string;
|
|
24743
|
+
queue_id?: string | null;
|
|
24744
|
+
status?: string;
|
|
22954
24745
|
updated_at?: string;
|
|
22955
|
-
visible_columns?: string[];
|
|
22956
24746
|
};
|
|
22957
|
-
Relationships: [
|
|
24747
|
+
Relationships: [{
|
|
24748
|
+
foreignKeyName: "invoice_push_log_provider_id_fkey";
|
|
24749
|
+
columns: ["provider_id"];
|
|
24750
|
+
isOneToOne: false;
|
|
24751
|
+
referencedRelation: "external_invoice_providers";
|
|
24752
|
+
referencedColumns: ["provider"];
|
|
24753
|
+
}];
|
|
22958
24754
|
};
|
|
22959
24755
|
invoice_run_items: {
|
|
22960
24756
|
Row: {
|
|
@@ -24063,6 +25859,36 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
24063
25859
|
};
|
|
24064
25860
|
Relationships: [];
|
|
24065
25861
|
};
|
|
25862
|
+
pickstation_print_log: {
|
|
25863
|
+
Row: {
|
|
25864
|
+
customer_name: string | null;
|
|
25865
|
+
documents: string[];
|
|
25866
|
+
id: string;
|
|
25867
|
+
ip_address: string | null;
|
|
25868
|
+
order_id: string;
|
|
25869
|
+
order_number: string | null;
|
|
25870
|
+
printed_at: string;
|
|
25871
|
+
};
|
|
25872
|
+
Insert: {
|
|
25873
|
+
customer_name?: string | null;
|
|
25874
|
+
documents?: string[];
|
|
25875
|
+
id?: string;
|
|
25876
|
+
ip_address?: string | null;
|
|
25877
|
+
order_id: string;
|
|
25878
|
+
order_number?: string | null;
|
|
25879
|
+
printed_at?: string;
|
|
25880
|
+
};
|
|
25881
|
+
Update: {
|
|
25882
|
+
customer_name?: string | null;
|
|
25883
|
+
documents?: string[];
|
|
25884
|
+
id?: string;
|
|
25885
|
+
ip_address?: string | null;
|
|
25886
|
+
order_id?: string;
|
|
25887
|
+
order_number?: string | null;
|
|
25888
|
+
printed_at?: string;
|
|
25889
|
+
};
|
|
25890
|
+
Relationships: [];
|
|
25891
|
+
};
|
|
24066
25892
|
pipeline_settings: {
|
|
24067
25893
|
Row: {
|
|
24068
25894
|
created_at: string;
|
|
@@ -25506,9 +27332,11 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
25506
27332
|
fetched_at: string;
|
|
25507
27333
|
invoice_number: string;
|
|
25508
27334
|
line_number: number;
|
|
27335
|
+
line_total: number | null;
|
|
25509
27336
|
quantity: number | null;
|
|
25510
27337
|
unit_price: number | null;
|
|
25511
27338
|
vat_code: string | null;
|
|
27339
|
+
vat_rate: number | null;
|
|
25512
27340
|
};
|
|
25513
27341
|
Insert: {
|
|
25514
27342
|
article_code?: string | null;
|
|
@@ -25518,9 +27346,11 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
25518
27346
|
fetched_at?: string;
|
|
25519
27347
|
invoice_number: string;
|
|
25520
27348
|
line_number: number;
|
|
27349
|
+
line_total?: number | null;
|
|
25521
27350
|
quantity?: number | null;
|
|
25522
27351
|
unit_price?: number | null;
|
|
25523
27352
|
vat_code?: string | null;
|
|
27353
|
+
vat_rate?: number | null;
|
|
25524
27354
|
};
|
|
25525
27355
|
Update: {
|
|
25526
27356
|
article_code?: string | null;
|
|
@@ -25530,9 +27360,11 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
25530
27360
|
fetched_at?: string;
|
|
25531
27361
|
invoice_number?: string;
|
|
25532
27362
|
line_number?: number;
|
|
27363
|
+
line_total?: number | null;
|
|
25533
27364
|
quantity?: number | null;
|
|
25534
27365
|
unit_price?: number | null;
|
|
25535
27366
|
vat_code?: string | null;
|
|
27367
|
+
vat_rate?: number | null;
|
|
25536
27368
|
};
|
|
25537
27369
|
Relationships: [{
|
|
25538
27370
|
foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
|
|
@@ -25709,9 +27541,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
25709
27541
|
invoice_date: string | null;
|
|
25710
27542
|
invoice_number: string;
|
|
25711
27543
|
modified_at: string | null;
|
|
27544
|
+
outstanding_amount: number | null;
|
|
25712
27545
|
status: string | null;
|
|
27546
|
+
status_label: string | null;
|
|
25713
27547
|
total_excl: number | null;
|
|
25714
27548
|
total_incl: number | null;
|
|
27549
|
+
vat_amount: number | null;
|
|
25715
27550
|
};
|
|
25716
27551
|
Insert: {
|
|
25717
27552
|
connection_id: string;
|
|
@@ -25723,9 +27558,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
25723
27558
|
invoice_date?: string | null;
|
|
25724
27559
|
invoice_number: string;
|
|
25725
27560
|
modified_at?: string | null;
|
|
27561
|
+
outstanding_amount?: number | null;
|
|
25726
27562
|
status?: string | null;
|
|
27563
|
+
status_label?: string | null;
|
|
25727
27564
|
total_excl?: number | null;
|
|
25728
27565
|
total_incl?: number | null;
|
|
27566
|
+
vat_amount?: number | null;
|
|
25729
27567
|
};
|
|
25730
27568
|
Update: {
|
|
25731
27569
|
connection_id?: string;
|
|
@@ -25737,9 +27575,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
25737
27575
|
invoice_date?: string | null;
|
|
25738
27576
|
invoice_number?: string;
|
|
25739
27577
|
modified_at?: string | null;
|
|
27578
|
+
outstanding_amount?: number | null;
|
|
25740
27579
|
status?: string | null;
|
|
27580
|
+
status_label?: string | null;
|
|
25741
27581
|
total_excl?: number | null;
|
|
25742
27582
|
total_incl?: number | null;
|
|
27583
|
+
vat_amount?: number | null;
|
|
25743
27584
|
};
|
|
25744
27585
|
Relationships: [{
|
|
25745
27586
|
foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
|
|
@@ -25773,6 +27614,57 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
25773
27614
|
};
|
|
25774
27615
|
Relationships: [];
|
|
25775
27616
|
};
|
|
27617
|
+
twinfield_push_queue: {
|
|
27618
|
+
Row: {
|
|
27619
|
+
attempts: number;
|
|
27620
|
+
connection_id: string;
|
|
27621
|
+
created_at: string;
|
|
27622
|
+
external_id: string | null;
|
|
27623
|
+
id: string;
|
|
27624
|
+
idempotency_key: string;
|
|
27625
|
+
last_error: string | null;
|
|
27626
|
+
next_attempt_at: string;
|
|
27627
|
+
office_code: string;
|
|
27628
|
+
payload: import("../integrations/supabase/types").Json;
|
|
27629
|
+
status: string;
|
|
27630
|
+
updated_at: string;
|
|
27631
|
+
};
|
|
27632
|
+
Insert: {
|
|
27633
|
+
attempts?: number;
|
|
27634
|
+
connection_id: string;
|
|
27635
|
+
created_at?: string;
|
|
27636
|
+
external_id?: string | null;
|
|
27637
|
+
id?: string;
|
|
27638
|
+
idempotency_key: string;
|
|
27639
|
+
last_error?: string | null;
|
|
27640
|
+
next_attempt_at?: string;
|
|
27641
|
+
office_code: string;
|
|
27642
|
+
payload: import("../integrations/supabase/types").Json;
|
|
27643
|
+
status?: string;
|
|
27644
|
+
updated_at?: string;
|
|
27645
|
+
};
|
|
27646
|
+
Update: {
|
|
27647
|
+
attempts?: number;
|
|
27648
|
+
connection_id?: string;
|
|
27649
|
+
created_at?: string;
|
|
27650
|
+
external_id?: string | null;
|
|
27651
|
+
id?: string;
|
|
27652
|
+
idempotency_key?: string;
|
|
27653
|
+
last_error?: string | null;
|
|
27654
|
+
next_attempt_at?: string;
|
|
27655
|
+
office_code?: string;
|
|
27656
|
+
payload?: import("../integrations/supabase/types").Json;
|
|
27657
|
+
status?: string;
|
|
27658
|
+
updated_at?: string;
|
|
27659
|
+
};
|
|
27660
|
+
Relationships: [{
|
|
27661
|
+
foreignKeyName: "twinfield_push_queue_connection_id_fkey";
|
|
27662
|
+
columns: ["connection_id"];
|
|
27663
|
+
isOneToOne: false;
|
|
27664
|
+
referencedRelation: "twinfield_connections";
|
|
27665
|
+
referencedColumns: ["id"];
|
|
27666
|
+
}];
|
|
27667
|
+
};
|
|
25776
27668
|
twinfield_settings: {
|
|
25777
27669
|
Row: {
|
|
25778
27670
|
active_environment: string;
|
|
@@ -26195,6 +28087,132 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
26195
28087
|
};
|
|
26196
28088
|
Relationships: [];
|
|
26197
28089
|
};
|
|
28090
|
+
external_invoices_grouped: {
|
|
28091
|
+
Row: {
|
|
28092
|
+
currency: string | null;
|
|
28093
|
+
customer_external_id: string | null;
|
|
28094
|
+
customer_name: string | null;
|
|
28095
|
+
customer_vat: string | null;
|
|
28096
|
+
due_at: string | null;
|
|
28097
|
+
group_key: string | null;
|
|
28098
|
+
invoice_number: string | null;
|
|
28099
|
+
is_merged: boolean | null;
|
|
28100
|
+
issued_at: string | null;
|
|
28101
|
+
modified_at: string | null;
|
|
28102
|
+
open_amount: number | null;
|
|
28103
|
+
paid_at: string | null;
|
|
28104
|
+
providers: string[] | null;
|
|
28105
|
+
source_count: number | null;
|
|
28106
|
+
sources: import("../integrations/supabase/types").Json | null;
|
|
28107
|
+
status: string | null;
|
|
28108
|
+
total_excl: number | null;
|
|
28109
|
+
total_incl: number | null;
|
|
28110
|
+
total_vat: number | null;
|
|
28111
|
+
};
|
|
28112
|
+
Relationships: [];
|
|
28113
|
+
};
|
|
28114
|
+
external_invoices_unified: {
|
|
28115
|
+
Row: {
|
|
28116
|
+
connection_id: string | null;
|
|
28117
|
+
currency: string | null;
|
|
28118
|
+
customer_external_id: string | null;
|
|
28119
|
+
customer_name: string | null;
|
|
28120
|
+
customer_vat: string | null;
|
|
28121
|
+
due_at: string | null;
|
|
28122
|
+
external_id: string | null;
|
|
28123
|
+
invoice_number: string | null;
|
|
28124
|
+
issued_at: string | null;
|
|
28125
|
+
open_amount: number | null;
|
|
28126
|
+
owner_user_id: string | null;
|
|
28127
|
+
paid_at: string | null;
|
|
28128
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
28129
|
+
source: string | null;
|
|
28130
|
+
status: string | null;
|
|
28131
|
+
synced_at: string | null;
|
|
28132
|
+
total_excl: number | null;
|
|
28133
|
+
total_incl: number | null;
|
|
28134
|
+
total_vat: number | null;
|
|
28135
|
+
};
|
|
28136
|
+
Relationships: [];
|
|
28137
|
+
};
|
|
28138
|
+
v_external_customers_exact: {
|
|
28139
|
+
Row: {
|
|
28140
|
+
account_number: string | null;
|
|
28141
|
+
city: string | null;
|
|
28142
|
+
coc_number: string | null;
|
|
28143
|
+
company_name: string | null;
|
|
28144
|
+
connection_id: string | null;
|
|
28145
|
+
country: string | null;
|
|
28146
|
+
currency: string | null;
|
|
28147
|
+
email: string | null;
|
|
28148
|
+
external_id: string | null;
|
|
28149
|
+
is_sales: boolean | null;
|
|
28150
|
+
is_supplier: boolean | null;
|
|
28151
|
+
language: string | null;
|
|
28152
|
+
modified_at: string | null;
|
|
28153
|
+
phone: string | null;
|
|
28154
|
+
postal_code: string | null;
|
|
28155
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
28156
|
+
source: string | null;
|
|
28157
|
+
street: string | null;
|
|
28158
|
+
synced_at: string | null;
|
|
28159
|
+
vat_number: string | null;
|
|
28160
|
+
website: string | null;
|
|
28161
|
+
};
|
|
28162
|
+
Insert: {
|
|
28163
|
+
account_number?: string | null;
|
|
28164
|
+
city?: string | null;
|
|
28165
|
+
coc_number?: string | null;
|
|
28166
|
+
company_name?: string | null;
|
|
28167
|
+
connection_id?: string | null;
|
|
28168
|
+
country?: string | null;
|
|
28169
|
+
currency?: string | null;
|
|
28170
|
+
email?: string | null;
|
|
28171
|
+
external_id?: string | null;
|
|
28172
|
+
is_sales?: boolean | null;
|
|
28173
|
+
is_supplier?: boolean | null;
|
|
28174
|
+
language?: string | null;
|
|
28175
|
+
modified_at?: string | null;
|
|
28176
|
+
phone?: string | null;
|
|
28177
|
+
postal_code?: string | null;
|
|
28178
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
28179
|
+
source?: never;
|
|
28180
|
+
street?: string | null;
|
|
28181
|
+
synced_at?: string | null;
|
|
28182
|
+
vat_number?: string | null;
|
|
28183
|
+
website?: string | null;
|
|
28184
|
+
};
|
|
28185
|
+
Update: {
|
|
28186
|
+
account_number?: string | null;
|
|
28187
|
+
city?: string | null;
|
|
28188
|
+
coc_number?: string | null;
|
|
28189
|
+
company_name?: string | null;
|
|
28190
|
+
connection_id?: string | null;
|
|
28191
|
+
country?: string | null;
|
|
28192
|
+
currency?: string | null;
|
|
28193
|
+
email?: string | null;
|
|
28194
|
+
external_id?: string | null;
|
|
28195
|
+
is_sales?: boolean | null;
|
|
28196
|
+
is_supplier?: boolean | null;
|
|
28197
|
+
language?: string | null;
|
|
28198
|
+
modified_at?: string | null;
|
|
28199
|
+
phone?: string | null;
|
|
28200
|
+
postal_code?: string | null;
|
|
28201
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
28202
|
+
source?: never;
|
|
28203
|
+
street?: string | null;
|
|
28204
|
+
synced_at?: string | null;
|
|
28205
|
+
vat_number?: string | null;
|
|
28206
|
+
website?: string | null;
|
|
28207
|
+
};
|
|
28208
|
+
Relationships: [{
|
|
28209
|
+
foreignKeyName: "exact_customers_cache_connection_id_fkey";
|
|
28210
|
+
columns: ["connection_id"];
|
|
28211
|
+
isOneToOne: false;
|
|
28212
|
+
referencedRelation: "exact_connections";
|
|
28213
|
+
referencedColumns: ["id"];
|
|
28214
|
+
}];
|
|
28215
|
+
};
|
|
26198
28216
|
v_external_customers_floriday: {
|
|
26199
28217
|
Row: {
|
|
26200
28218
|
city: string | null;
|
|
@@ -26261,8 +28279,113 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
26261
28279
|
referencedColumns: ["id"];
|
|
26262
28280
|
}];
|
|
26263
28281
|
};
|
|
28282
|
+
v_external_invoices_exact: {
|
|
28283
|
+
Row: {
|
|
28284
|
+
connection_id: string | null;
|
|
28285
|
+
currency: string | null;
|
|
28286
|
+
customer_external_id: string | null;
|
|
28287
|
+
customer_name: string | null;
|
|
28288
|
+
customer_vat: string | null;
|
|
28289
|
+
due_at: string | null;
|
|
28290
|
+
external_id: string | null;
|
|
28291
|
+
invoice_number: string | null;
|
|
28292
|
+
issued_at: string | null;
|
|
28293
|
+
open_amount: number | null;
|
|
28294
|
+
paid_at: string | null;
|
|
28295
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
28296
|
+
source: string | null;
|
|
28297
|
+
status: string | null;
|
|
28298
|
+
synced_at: string | null;
|
|
28299
|
+
total_excl: number | null;
|
|
28300
|
+
total_incl: number | null;
|
|
28301
|
+
total_vat: number | null;
|
|
28302
|
+
};
|
|
28303
|
+
Insert: {
|
|
28304
|
+
connection_id?: string | null;
|
|
28305
|
+
currency?: never;
|
|
28306
|
+
customer_external_id?: string | null;
|
|
28307
|
+
customer_name?: string | null;
|
|
28308
|
+
customer_vat?: never;
|
|
28309
|
+
due_at?: string | null;
|
|
28310
|
+
external_id?: string | null;
|
|
28311
|
+
invoice_number?: string | null;
|
|
28312
|
+
issued_at?: string | null;
|
|
28313
|
+
open_amount?: number | null;
|
|
28314
|
+
paid_at?: string | null;
|
|
28315
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
28316
|
+
source?: never;
|
|
28317
|
+
status?: string | null;
|
|
28318
|
+
synced_at?: string | null;
|
|
28319
|
+
total_excl?: number | null;
|
|
28320
|
+
total_incl?: number | null;
|
|
28321
|
+
total_vat?: number | null;
|
|
28322
|
+
};
|
|
28323
|
+
Update: {
|
|
28324
|
+
connection_id?: string | null;
|
|
28325
|
+
currency?: never;
|
|
28326
|
+
customer_external_id?: string | null;
|
|
28327
|
+
customer_name?: string | null;
|
|
28328
|
+
customer_vat?: never;
|
|
28329
|
+
due_at?: string | null;
|
|
28330
|
+
external_id?: string | null;
|
|
28331
|
+
invoice_number?: string | null;
|
|
28332
|
+
issued_at?: string | null;
|
|
28333
|
+
open_amount?: number | null;
|
|
28334
|
+
paid_at?: string | null;
|
|
28335
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
28336
|
+
source?: never;
|
|
28337
|
+
status?: string | null;
|
|
28338
|
+
synced_at?: string | null;
|
|
28339
|
+
total_excl?: number | null;
|
|
28340
|
+
total_incl?: number | null;
|
|
28341
|
+
total_vat?: number | null;
|
|
28342
|
+
};
|
|
28343
|
+
Relationships: [{
|
|
28344
|
+
foreignKeyName: "exact_invoices_cache_connection_id_fkey";
|
|
28345
|
+
columns: ["connection_id"];
|
|
28346
|
+
isOneToOne: false;
|
|
28347
|
+
referencedRelation: "exact_connections";
|
|
28348
|
+
referencedColumns: ["id"];
|
|
28349
|
+
}];
|
|
28350
|
+
};
|
|
28351
|
+
v_external_invoices_twinfield: {
|
|
28352
|
+
Row: {
|
|
28353
|
+
connection_id: string | null;
|
|
28354
|
+
currency: string | null;
|
|
28355
|
+
customer_external_id: string | null;
|
|
28356
|
+
customer_name: string | null;
|
|
28357
|
+
customer_vat: string | null;
|
|
28358
|
+
due_at: string | null;
|
|
28359
|
+
external_id: string | null;
|
|
28360
|
+
invoice_number: string | null;
|
|
28361
|
+
issued_at: string | null;
|
|
28362
|
+
open_amount: number | null;
|
|
28363
|
+
owner_user_id: string | null;
|
|
28364
|
+
paid_at: string | null;
|
|
28365
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
28366
|
+
source: string | null;
|
|
28367
|
+
status: string | null;
|
|
28368
|
+
synced_at: string | null;
|
|
28369
|
+
total_excl: number | null;
|
|
28370
|
+
total_incl: number | null;
|
|
28371
|
+
total_vat: number | null;
|
|
28372
|
+
};
|
|
28373
|
+
Relationships: [{
|
|
28374
|
+
foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
|
|
28375
|
+
columns: ["connection_id"];
|
|
28376
|
+
isOneToOne: false;
|
|
28377
|
+
referencedRelation: "twinfield_connections";
|
|
28378
|
+
referencedColumns: ["id"];
|
|
28379
|
+
}];
|
|
28380
|
+
};
|
|
26264
28381
|
};
|
|
26265
28382
|
Functions: {
|
|
28383
|
+
call_exact_route: {
|
|
28384
|
+
Args: {
|
|
28385
|
+
path: string;
|
|
28386
|
+
};
|
|
28387
|
+
Returns: number;
|
|
28388
|
+
};
|
|
26266
28389
|
dashboard_list_public_schema: {
|
|
26267
28390
|
Args: never;
|
|
26268
28391
|
Returns: {
|
|
@@ -26518,6 +28641,14 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
26518
28641
|
};
|
|
26519
28642
|
Returns: number;
|
|
26520
28643
|
};
|
|
28644
|
+
schedule_twinfield_push_queue_flush: {
|
|
28645
|
+
Args: {
|
|
28646
|
+
p_apikey: string;
|
|
28647
|
+
p_cron_secret?: string;
|
|
28648
|
+
p_url: string;
|
|
28649
|
+
};
|
|
28650
|
+
Returns: number;
|
|
28651
|
+
};
|
|
26521
28652
|
schedule_twinfield_token_refresh: {
|
|
26522
28653
|
Args: {
|
|
26523
28654
|
p_apikey: string;
|
|
@@ -26558,6 +28689,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
26558
28689
|
Enums: {
|
|
26559
28690
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
26560
28691
|
exact_env: "staging" | "live";
|
|
28692
|
+
exact_push_status: "pending" | "sent" | "error";
|
|
26561
28693
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
26562
28694
|
};
|
|
26563
28695
|
CompositeTypes: { [_ in never]: never; };
|