@flowselections/floriday-klanten-module 1.0.14 → 1.0.16
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/assets/floriday-logo.png.asset.json +11 -0
- package/dist-lib/components/CustomerAvatar.js +1 -1
- package/dist-lib/components/klanten/BackLink.d.ts +12 -0
- package/dist-lib/components/klanten/BackLink.d.ts.map +1 -0
- package/dist-lib/components/klanten/BackLink.js +12 -0
- package/dist-lib/components/klanten/FloridayAssortmentTab.d.ts +4 -0
- package/dist-lib/components/klanten/FloridayAssortmentTab.d.ts.map +1 -0
- package/dist-lib/components/klanten/FloridayAssortmentTab.js +80 -0
- package/dist-lib/components/klanten/FloridayDeeplinkButton.d.ts +8 -0
- package/dist-lib/components/klanten/FloridayDeeplinkButton.d.ts.map +1 -0
- package/dist-lib/components/klanten/FloridayDeeplinkButton.js +9 -0
- package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/GroupedKlantDetail.js +19 -5
- package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -1
- package/dist-lib/components/klanten/ImportKlanten.js +46 -13
- package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetail.js +9 -3
- package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantenOverzicht.js +6 -3
- package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -1
- package/dist-lib/components/klanten/NetwerkPagina.js +42 -10
- package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
- package/dist-lib/components/klanten/NieuweKlant.js +23 -8
- package/dist-lib/components/klanten/PriceGroupBadges.d.ts +7 -0
- package/dist-lib/components/klanten/PriceGroupBadges.d.ts.map +1 -0
- package/dist-lib/components/klanten/PriceGroupBadges.js +13 -0
- package/dist-lib/components/klanten/SyncStatusChip.d.ts +4 -0
- package/dist-lib/components/klanten/SyncStatusChip.d.ts.map +1 -0
- package/dist-lib/components/klanten/SyncStatusChip.js +49 -0
- package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.d.ts +8 -0
- package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.d.ts.map +1 -0
- package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.js +75 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts +4 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts.map +1 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.js +269 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.d.ts +2 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.d.ts.map +1 -0
- package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.js +133 -0
- package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.d.ts +8 -0
- package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.d.ts.map +1 -0
- package/dist-lib/components/klanten/pricegroups/ProductPickerDialog.js +18 -0
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +6 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +762 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +762 -3
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.js +4 -3
- package/dist-lib/integrations/supabase/client.server.d.ts +762 -3
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +789 -8
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/accounting/twinfield/client.server.d.ts +21 -0
- package/dist-lib/lib/accounting/twinfield/client.server.d.ts.map +1 -0
- package/dist-lib/lib/accounting/twinfield/client.server.js +171 -0
- package/dist-lib/lib/accounting/twinfield/mapping.d.ts +46 -0
- package/dist-lib/lib/accounting/twinfield/mapping.d.ts.map +1 -0
- package/dist-lib/lib/accounting/twinfield/mapping.js +109 -0
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +36318 -0
- package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -0
- package/dist-lib/lib/accounting/twinfield/worker.functions.js +48 -0
- package/dist-lib/lib/accounting/twinfield/worker.server.d.ts +12 -0
- package/dist-lib/lib/accounting/twinfield/worker.server.d.ts.map +1 -0
- package/dist-lib/lib/accounting/twinfield/worker.server.js +124 -0
- package/dist-lib/lib/accounting.functions.d.ts +2286 -9
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +762 -3
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-schemas.d.ts +48 -46
- package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
- package/dist-lib/lib/customer-schemas.js +46 -3
- package/dist-lib/lib/customers.functions.d.ts +18288 -129
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.js +146 -10
- package/dist-lib/lib/delivery-locations.functions.d.ts +3048 -12
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +3048 -12
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-assortment.functions.d.ts +12127 -0
- package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-assortment.functions.js +213 -0
- package/dist-lib/lib/floriday-discounts.functions.d.ts +1800 -282
- package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-trade-items.functions.d.ts +12111 -0
- package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-trade-items.functions.js +107 -0
- package/dist-lib/lib/local-discounts.functions.d.ts +5336 -23
- package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
- package/dist-lib/lib/overdue-invoices.functions.d.ts +762 -3
- package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
- package/dist-lib/lib/price-groups-local.functions.d.ts +84841 -0
- package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -0
- package/dist-lib/lib/price-groups-local.functions.js +148 -0
- package/dist-lib/lib/price-groups.functions.d.ts +12120 -0
- package/dist-lib/lib/price-groups.functions.d.ts.map +1 -0
- package/dist-lib/lib/price-groups.functions.js +115 -0
- package/dist-lib/lib/pricing.d.ts +24 -0
- package/dist-lib/lib/pricing.d.ts.map +1 -0
- package/dist-lib/lib/pricing.js +60 -0
- package/package.json +6 -3
|
@@ -267,6 +267,237 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
267
267
|
};
|
|
268
268
|
Relationships: [];
|
|
269
269
|
};
|
|
270
|
+
ai_admin_credentials: {
|
|
271
|
+
Row: {
|
|
272
|
+
active: boolean;
|
|
273
|
+
admin_key: string;
|
|
274
|
+
created_at: string;
|
|
275
|
+
id: string;
|
|
276
|
+
label: string;
|
|
277
|
+
provider_id: string;
|
|
278
|
+
updated_at: string;
|
|
279
|
+
};
|
|
280
|
+
Insert: {
|
|
281
|
+
active?: boolean;
|
|
282
|
+
admin_key: string;
|
|
283
|
+
created_at?: string;
|
|
284
|
+
id?: string;
|
|
285
|
+
label: string;
|
|
286
|
+
provider_id: string;
|
|
287
|
+
updated_at?: string;
|
|
288
|
+
};
|
|
289
|
+
Update: {
|
|
290
|
+
active?: boolean;
|
|
291
|
+
admin_key?: string;
|
|
292
|
+
created_at?: string;
|
|
293
|
+
id?: string;
|
|
294
|
+
label?: string;
|
|
295
|
+
provider_id?: string;
|
|
296
|
+
updated_at?: string;
|
|
297
|
+
};
|
|
298
|
+
Relationships: [{
|
|
299
|
+
foreignKeyName: "ai_admin_credentials_provider_id_fkey";
|
|
300
|
+
columns: ["provider_id"];
|
|
301
|
+
isOneToOne: true;
|
|
302
|
+
referencedRelation: "ai_providers";
|
|
303
|
+
referencedColumns: ["id"];
|
|
304
|
+
}];
|
|
305
|
+
};
|
|
306
|
+
ai_credentials: {
|
|
307
|
+
Row: {
|
|
308
|
+
active: boolean;
|
|
309
|
+
api_key: string;
|
|
310
|
+
created_at: string;
|
|
311
|
+
id: string;
|
|
312
|
+
label: string;
|
|
313
|
+
provider_id: string;
|
|
314
|
+
updated_at: string;
|
|
315
|
+
};
|
|
316
|
+
Insert: {
|
|
317
|
+
active?: boolean;
|
|
318
|
+
api_key: string;
|
|
319
|
+
created_at?: string;
|
|
320
|
+
id?: string;
|
|
321
|
+
label: string;
|
|
322
|
+
provider_id: string;
|
|
323
|
+
updated_at?: string;
|
|
324
|
+
};
|
|
325
|
+
Update: {
|
|
326
|
+
active?: boolean;
|
|
327
|
+
api_key?: string;
|
|
328
|
+
created_at?: string;
|
|
329
|
+
id?: string;
|
|
330
|
+
label?: string;
|
|
331
|
+
provider_id?: string;
|
|
332
|
+
updated_at?: string;
|
|
333
|
+
};
|
|
334
|
+
Relationships: [{
|
|
335
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
336
|
+
columns: ["provider_id"];
|
|
337
|
+
isOneToOne: false;
|
|
338
|
+
referencedRelation: "ai_providers";
|
|
339
|
+
referencedColumns: ["id"];
|
|
340
|
+
}];
|
|
341
|
+
};
|
|
342
|
+
ai_model_pricing: {
|
|
343
|
+
Row: {
|
|
344
|
+
created_at: string;
|
|
345
|
+
currency: string;
|
|
346
|
+
fetched_at: string;
|
|
347
|
+
id: string;
|
|
348
|
+
input_per_mtok: number | null;
|
|
349
|
+
model_slug: string;
|
|
350
|
+
output_per_mtok: number | null;
|
|
351
|
+
provider_slug: string;
|
|
352
|
+
source: string;
|
|
353
|
+
updated_at: string;
|
|
354
|
+
};
|
|
355
|
+
Insert: {
|
|
356
|
+
created_at?: string;
|
|
357
|
+
currency?: string;
|
|
358
|
+
fetched_at?: string;
|
|
359
|
+
id?: string;
|
|
360
|
+
input_per_mtok?: number | null;
|
|
361
|
+
model_slug: string;
|
|
362
|
+
output_per_mtok?: number | null;
|
|
363
|
+
provider_slug: string;
|
|
364
|
+
source?: string;
|
|
365
|
+
updated_at?: string;
|
|
366
|
+
};
|
|
367
|
+
Update: {
|
|
368
|
+
created_at?: string;
|
|
369
|
+
currency?: string;
|
|
370
|
+
fetched_at?: string;
|
|
371
|
+
id?: string;
|
|
372
|
+
input_per_mtok?: number | null;
|
|
373
|
+
model_slug?: string;
|
|
374
|
+
output_per_mtok?: number | null;
|
|
375
|
+
provider_slug?: string;
|
|
376
|
+
source?: string;
|
|
377
|
+
updated_at?: string;
|
|
378
|
+
};
|
|
379
|
+
Relationships: [];
|
|
380
|
+
};
|
|
381
|
+
ai_models: {
|
|
382
|
+
Row: {
|
|
383
|
+
active: boolean;
|
|
384
|
+
context_window: number | null;
|
|
385
|
+
created_at: string;
|
|
386
|
+
display_name: string;
|
|
387
|
+
id: string;
|
|
388
|
+
is_default: boolean;
|
|
389
|
+
modality: string;
|
|
390
|
+
provider_id: string;
|
|
391
|
+
slug: string;
|
|
392
|
+
updated_at: string;
|
|
393
|
+
};
|
|
394
|
+
Insert: {
|
|
395
|
+
active?: boolean;
|
|
396
|
+
context_window?: number | null;
|
|
397
|
+
created_at?: string;
|
|
398
|
+
display_name: string;
|
|
399
|
+
id?: string;
|
|
400
|
+
is_default?: boolean;
|
|
401
|
+
modality?: string;
|
|
402
|
+
provider_id: string;
|
|
403
|
+
slug: string;
|
|
404
|
+
updated_at?: string;
|
|
405
|
+
};
|
|
406
|
+
Update: {
|
|
407
|
+
active?: boolean;
|
|
408
|
+
context_window?: number | null;
|
|
409
|
+
created_at?: string;
|
|
410
|
+
display_name?: string;
|
|
411
|
+
id?: string;
|
|
412
|
+
is_default?: boolean;
|
|
413
|
+
modality?: string;
|
|
414
|
+
provider_id?: string;
|
|
415
|
+
slug?: string;
|
|
416
|
+
updated_at?: string;
|
|
417
|
+
};
|
|
418
|
+
Relationships: [{
|
|
419
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
420
|
+
columns: ["provider_id"];
|
|
421
|
+
isOneToOne: false;
|
|
422
|
+
referencedRelation: "ai_providers";
|
|
423
|
+
referencedColumns: ["id"];
|
|
424
|
+
}];
|
|
425
|
+
};
|
|
426
|
+
ai_module_bindings: {
|
|
427
|
+
Row: {
|
|
428
|
+
consumer_module_id: string;
|
|
429
|
+
created_at: string;
|
|
430
|
+
credential_id: string;
|
|
431
|
+
id: string;
|
|
432
|
+
model_id: string;
|
|
433
|
+
notes: string | null;
|
|
434
|
+
updated_at: string;
|
|
435
|
+
};
|
|
436
|
+
Insert: {
|
|
437
|
+
consumer_module_id: string;
|
|
438
|
+
created_at?: string;
|
|
439
|
+
credential_id: string;
|
|
440
|
+
id?: string;
|
|
441
|
+
model_id: string;
|
|
442
|
+
notes?: string | null;
|
|
443
|
+
updated_at?: string;
|
|
444
|
+
};
|
|
445
|
+
Update: {
|
|
446
|
+
consumer_module_id?: string;
|
|
447
|
+
created_at?: string;
|
|
448
|
+
credential_id?: string;
|
|
449
|
+
id?: string;
|
|
450
|
+
model_id?: string;
|
|
451
|
+
notes?: string | null;
|
|
452
|
+
updated_at?: string;
|
|
453
|
+
};
|
|
454
|
+
Relationships: [{
|
|
455
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
456
|
+
columns: ["credential_id"];
|
|
457
|
+
isOneToOne: false;
|
|
458
|
+
referencedRelation: "ai_credentials";
|
|
459
|
+
referencedColumns: ["id"];
|
|
460
|
+
}, {
|
|
461
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
462
|
+
columns: ["model_id"];
|
|
463
|
+
isOneToOne: false;
|
|
464
|
+
referencedRelation: "ai_models";
|
|
465
|
+
referencedColumns: ["id"];
|
|
466
|
+
}];
|
|
467
|
+
};
|
|
468
|
+
ai_providers: {
|
|
469
|
+
Row: {
|
|
470
|
+
active: boolean;
|
|
471
|
+
auth_type: string;
|
|
472
|
+
base_url: string | null;
|
|
473
|
+
created_at: string;
|
|
474
|
+
id: string;
|
|
475
|
+
name: string;
|
|
476
|
+
slug: string;
|
|
477
|
+
updated_at: string;
|
|
478
|
+
};
|
|
479
|
+
Insert: {
|
|
480
|
+
active?: boolean;
|
|
481
|
+
auth_type?: string;
|
|
482
|
+
base_url?: string | null;
|
|
483
|
+
created_at?: string;
|
|
484
|
+
id?: string;
|
|
485
|
+
name: string;
|
|
486
|
+
slug: string;
|
|
487
|
+
updated_at?: string;
|
|
488
|
+
};
|
|
489
|
+
Update: {
|
|
490
|
+
active?: boolean;
|
|
491
|
+
auth_type?: string;
|
|
492
|
+
base_url?: string | null;
|
|
493
|
+
created_at?: string;
|
|
494
|
+
id?: string;
|
|
495
|
+
name?: string;
|
|
496
|
+
slug?: string;
|
|
497
|
+
updated_at?: string;
|
|
498
|
+
};
|
|
499
|
+
Relationships: [];
|
|
500
|
+
};
|
|
270
501
|
app_settings: {
|
|
271
502
|
Row: {
|
|
272
503
|
created_at: string;
|
|
@@ -924,6 +1155,69 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
924
1155
|
referencedColumns: ["id"];
|
|
925
1156
|
}];
|
|
926
1157
|
};
|
|
1158
|
+
catalog_articles_cache: {
|
|
1159
|
+
Row: {
|
|
1160
|
+
created_at: string;
|
|
1161
|
+
default_price: number;
|
|
1162
|
+
default_vat_rate_ref: string | null;
|
|
1163
|
+
external_ref: string;
|
|
1164
|
+
id: string;
|
|
1165
|
+
name: string;
|
|
1166
|
+
updated_at: string;
|
|
1167
|
+
user_id: string;
|
|
1168
|
+
};
|
|
1169
|
+
Insert: {
|
|
1170
|
+
created_at?: string;
|
|
1171
|
+
default_price?: number;
|
|
1172
|
+
default_vat_rate_ref?: string | null;
|
|
1173
|
+
external_ref: string;
|
|
1174
|
+
id?: string;
|
|
1175
|
+
name: string;
|
|
1176
|
+
updated_at?: string;
|
|
1177
|
+
user_id: string;
|
|
1178
|
+
};
|
|
1179
|
+
Update: {
|
|
1180
|
+
created_at?: string;
|
|
1181
|
+
default_price?: number;
|
|
1182
|
+
default_vat_rate_ref?: string | null;
|
|
1183
|
+
external_ref?: string;
|
|
1184
|
+
id?: string;
|
|
1185
|
+
name?: string;
|
|
1186
|
+
updated_at?: string;
|
|
1187
|
+
user_id?: string;
|
|
1188
|
+
};
|
|
1189
|
+
Relationships: [];
|
|
1190
|
+
};
|
|
1191
|
+
catalog_vat_rates_cache: {
|
|
1192
|
+
Row: {
|
|
1193
|
+
created_at: string;
|
|
1194
|
+
external_ref: string;
|
|
1195
|
+
id: string;
|
|
1196
|
+
label: string;
|
|
1197
|
+
percentage: number;
|
|
1198
|
+
updated_at: string;
|
|
1199
|
+
user_id: string;
|
|
1200
|
+
};
|
|
1201
|
+
Insert: {
|
|
1202
|
+
created_at?: string;
|
|
1203
|
+
external_ref: string;
|
|
1204
|
+
id?: string;
|
|
1205
|
+
label: string;
|
|
1206
|
+
percentage?: number;
|
|
1207
|
+
updated_at?: string;
|
|
1208
|
+
user_id: string;
|
|
1209
|
+
};
|
|
1210
|
+
Update: {
|
|
1211
|
+
created_at?: string;
|
|
1212
|
+
external_ref?: string;
|
|
1213
|
+
id?: string;
|
|
1214
|
+
label?: string;
|
|
1215
|
+
percentage?: number;
|
|
1216
|
+
updated_at?: string;
|
|
1217
|
+
user_id?: string;
|
|
1218
|
+
};
|
|
1219
|
+
Relationships: [];
|
|
1220
|
+
};
|
|
927
1221
|
collections: {
|
|
928
1222
|
Row: {
|
|
929
1223
|
created_at: string;
|
|
@@ -1173,59 +1467,158 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
1173
1467
|
};
|
|
1174
1468
|
Relationships: [];
|
|
1175
1469
|
};
|
|
1176
|
-
|
|
1470
|
+
customer_price_group_members: {
|
|
1177
1471
|
Row: {
|
|
1178
|
-
article_number: string | null;
|
|
1179
1472
|
created_at: string;
|
|
1180
|
-
|
|
1181
|
-
floriday_item_id: string | null;
|
|
1473
|
+
customer_key: string;
|
|
1182
1474
|
id: string;
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
product_name: string;
|
|
1186
|
-
raw: import("../integrations/supabase/types").Json | null;
|
|
1187
|
-
unit: string | null;
|
|
1188
|
-
updated_at: string;
|
|
1475
|
+
owner_id: string;
|
|
1476
|
+
price_group_id: string;
|
|
1189
1477
|
};
|
|
1190
1478
|
Insert: {
|
|
1191
|
-
article_number?: string | null;
|
|
1192
1479
|
created_at?: string;
|
|
1193
|
-
|
|
1194
|
-
floriday_item_id?: string | null;
|
|
1480
|
+
customer_key: string;
|
|
1195
1481
|
id?: string;
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
product_name: string;
|
|
1199
|
-
raw?: import("../integrations/supabase/types").Json | null;
|
|
1200
|
-
unit?: string | null;
|
|
1201
|
-
updated_at?: string;
|
|
1482
|
+
owner_id?: string;
|
|
1483
|
+
price_group_id: string;
|
|
1202
1484
|
};
|
|
1203
1485
|
Update: {
|
|
1204
|
-
article_number?: string | null;
|
|
1205
1486
|
created_at?: string;
|
|
1206
|
-
|
|
1207
|
-
floriday_item_id?: string | null;
|
|
1487
|
+
customer_key?: string;
|
|
1208
1488
|
id?: string;
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
product_name?: string;
|
|
1212
|
-
raw?: import("../integrations/supabase/types").Json | null;
|
|
1213
|
-
unit?: string | null;
|
|
1214
|
-
updated_at?: string;
|
|
1489
|
+
owner_id?: string;
|
|
1490
|
+
price_group_id?: string;
|
|
1215
1491
|
};
|
|
1216
1492
|
Relationships: [{
|
|
1217
|
-
foreignKeyName: "
|
|
1218
|
-
columns: ["
|
|
1493
|
+
foreignKeyName: "customer_price_group_members_price_group_id_fkey";
|
|
1494
|
+
columns: ["price_group_id"];
|
|
1219
1495
|
isOneToOne: false;
|
|
1220
|
-
referencedRelation: "
|
|
1496
|
+
referencedRelation: "customer_price_groups";
|
|
1221
1497
|
referencedColumns: ["id"];
|
|
1222
1498
|
}];
|
|
1223
1499
|
};
|
|
1224
|
-
|
|
1500
|
+
customer_price_groups: {
|
|
1225
1501
|
Row: {
|
|
1226
|
-
|
|
1502
|
+
calc_type: string | null;
|
|
1503
|
+
calc_value: number | null;
|
|
1504
|
+
calc_value_type: string | null;
|
|
1227
1505
|
created_at: string;
|
|
1228
|
-
|
|
1506
|
+
currency: string;
|
|
1507
|
+
distribute_over: string | null;
|
|
1508
|
+
group_type: string;
|
|
1509
|
+
handling_fee: number | null;
|
|
1510
|
+
id: string;
|
|
1511
|
+
include_stickers: boolean;
|
|
1512
|
+
is_active: boolean;
|
|
1513
|
+
name: string;
|
|
1514
|
+
owner_id: string;
|
|
1515
|
+
price_scope: string;
|
|
1516
|
+
pricing_mode: string;
|
|
1517
|
+
rounding: string;
|
|
1518
|
+
rounding_step: number;
|
|
1519
|
+
sort_order: number;
|
|
1520
|
+
unit: string;
|
|
1521
|
+
updated_at: string;
|
|
1522
|
+
};
|
|
1523
|
+
Insert: {
|
|
1524
|
+
calc_type?: string | null;
|
|
1525
|
+
calc_value?: number | null;
|
|
1526
|
+
calc_value_type?: string | null;
|
|
1527
|
+
created_at?: string;
|
|
1528
|
+
currency?: string;
|
|
1529
|
+
distribute_over?: string | null;
|
|
1530
|
+
group_type?: string;
|
|
1531
|
+
handling_fee?: number | null;
|
|
1532
|
+
id?: string;
|
|
1533
|
+
include_stickers?: boolean;
|
|
1534
|
+
is_active?: boolean;
|
|
1535
|
+
name: string;
|
|
1536
|
+
owner_id?: string;
|
|
1537
|
+
price_scope?: string;
|
|
1538
|
+
pricing_mode?: string;
|
|
1539
|
+
rounding?: string;
|
|
1540
|
+
rounding_step?: number;
|
|
1541
|
+
sort_order?: number;
|
|
1542
|
+
unit?: string;
|
|
1543
|
+
updated_at?: string;
|
|
1544
|
+
};
|
|
1545
|
+
Update: {
|
|
1546
|
+
calc_type?: string | null;
|
|
1547
|
+
calc_value?: number | null;
|
|
1548
|
+
calc_value_type?: string | null;
|
|
1549
|
+
created_at?: string;
|
|
1550
|
+
currency?: string;
|
|
1551
|
+
distribute_over?: string | null;
|
|
1552
|
+
group_type?: string;
|
|
1553
|
+
handling_fee?: number | null;
|
|
1554
|
+
id?: string;
|
|
1555
|
+
include_stickers?: boolean;
|
|
1556
|
+
is_active?: boolean;
|
|
1557
|
+
name?: string;
|
|
1558
|
+
owner_id?: string;
|
|
1559
|
+
price_scope?: string;
|
|
1560
|
+
pricing_mode?: string;
|
|
1561
|
+
rounding?: string;
|
|
1562
|
+
rounding_step?: number;
|
|
1563
|
+
sort_order?: number;
|
|
1564
|
+
unit?: string;
|
|
1565
|
+
updated_at?: string;
|
|
1566
|
+
};
|
|
1567
|
+
Relationships: [];
|
|
1568
|
+
};
|
|
1569
|
+
customer_selected_assortment: {
|
|
1570
|
+
Row: {
|
|
1571
|
+
article_number: string | null;
|
|
1572
|
+
created_at: string;
|
|
1573
|
+
customer_id: string;
|
|
1574
|
+
floriday_item_id: string | null;
|
|
1575
|
+
id: string;
|
|
1576
|
+
price: number | null;
|
|
1577
|
+
product_group: string | null;
|
|
1578
|
+
product_name: string;
|
|
1579
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
1580
|
+
unit: string | null;
|
|
1581
|
+
updated_at: string;
|
|
1582
|
+
};
|
|
1583
|
+
Insert: {
|
|
1584
|
+
article_number?: string | null;
|
|
1585
|
+
created_at?: string;
|
|
1586
|
+
customer_id: string;
|
|
1587
|
+
floriday_item_id?: string | null;
|
|
1588
|
+
id?: string;
|
|
1589
|
+
price?: number | null;
|
|
1590
|
+
product_group?: string | null;
|
|
1591
|
+
product_name: string;
|
|
1592
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
1593
|
+
unit?: string | null;
|
|
1594
|
+
updated_at?: string;
|
|
1595
|
+
};
|
|
1596
|
+
Update: {
|
|
1597
|
+
article_number?: string | null;
|
|
1598
|
+
created_at?: string;
|
|
1599
|
+
customer_id?: string;
|
|
1600
|
+
floriday_item_id?: string | null;
|
|
1601
|
+
id?: string;
|
|
1602
|
+
price?: number | null;
|
|
1603
|
+
product_group?: string | null;
|
|
1604
|
+
product_name?: string;
|
|
1605
|
+
raw?: import("../integrations/supabase/types").Json | null;
|
|
1606
|
+
unit?: string | null;
|
|
1607
|
+
updated_at?: string;
|
|
1608
|
+
};
|
|
1609
|
+
Relationships: [{
|
|
1610
|
+
foreignKeyName: "customer_selected_assortment_customer_id_fkey";
|
|
1611
|
+
columns: ["customer_id"];
|
|
1612
|
+
isOneToOne: false;
|
|
1613
|
+
referencedRelation: "customers";
|
|
1614
|
+
referencedColumns: ["id"];
|
|
1615
|
+
}];
|
|
1616
|
+
};
|
|
1617
|
+
customer_trade_settings: {
|
|
1618
|
+
Row: {
|
|
1619
|
+
category: string;
|
|
1620
|
+
created_at: string;
|
|
1621
|
+
customer_id: string;
|
|
1229
1622
|
id: string;
|
|
1230
1623
|
is_active: boolean;
|
|
1231
1624
|
raw: import("../integrations/supabase/types").Json | null;
|
|
@@ -1326,6 +1719,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
1326
1719
|
sync_error: string | null;
|
|
1327
1720
|
sync_status: string;
|
|
1328
1721
|
trade_forms: string[];
|
|
1722
|
+
twinfield_code: string | null;
|
|
1723
|
+
twinfield_last_hash: string | null;
|
|
1724
|
+
twinfield_sync_error: string | null;
|
|
1725
|
+
twinfield_synced_at: string | null;
|
|
1329
1726
|
updated_at: string;
|
|
1330
1727
|
vat_display: string | null;
|
|
1331
1728
|
vat_number: string | null;
|
|
@@ -1393,6 +1790,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
1393
1790
|
sync_error?: string | null;
|
|
1394
1791
|
sync_status?: string;
|
|
1395
1792
|
trade_forms?: string[];
|
|
1793
|
+
twinfield_code?: string | null;
|
|
1794
|
+
twinfield_last_hash?: string | null;
|
|
1795
|
+
twinfield_sync_error?: string | null;
|
|
1796
|
+
twinfield_synced_at?: string | null;
|
|
1396
1797
|
updated_at?: string;
|
|
1397
1798
|
vat_display?: string | null;
|
|
1398
1799
|
vat_number?: string | null;
|
|
@@ -1460,6 +1861,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
1460
1861
|
sync_error?: string | null;
|
|
1461
1862
|
sync_status?: string;
|
|
1462
1863
|
trade_forms?: string[];
|
|
1864
|
+
twinfield_code?: string | null;
|
|
1865
|
+
twinfield_last_hash?: string | null;
|
|
1866
|
+
twinfield_sync_error?: string | null;
|
|
1867
|
+
twinfield_synced_at?: string | null;
|
|
1463
1868
|
updated_at?: string;
|
|
1464
1869
|
vat_display?: string | null;
|
|
1465
1870
|
vat_number?: string | null;
|
|
@@ -8442,6 +8847,27 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
8442
8847
|
};
|
|
8443
8848
|
Relationships: [];
|
|
8444
8849
|
};
|
|
8850
|
+
technician_rates: {
|
|
8851
|
+
Row: {
|
|
8852
|
+
created_at: string;
|
|
8853
|
+
hourly_rate_cents: number;
|
|
8854
|
+
updated_at: string;
|
|
8855
|
+
user_id: string;
|
|
8856
|
+
};
|
|
8857
|
+
Insert: {
|
|
8858
|
+
created_at?: string;
|
|
8859
|
+
hourly_rate_cents?: number;
|
|
8860
|
+
updated_at?: string;
|
|
8861
|
+
user_id: string;
|
|
8862
|
+
};
|
|
8863
|
+
Update: {
|
|
8864
|
+
created_at?: string;
|
|
8865
|
+
hourly_rate_cents?: number;
|
|
8866
|
+
updated_at?: string;
|
|
8867
|
+
user_id?: string;
|
|
8868
|
+
};
|
|
8869
|
+
Relationships: [];
|
|
8870
|
+
};
|
|
8445
8871
|
tenants: {
|
|
8446
8872
|
Row: {
|
|
8447
8873
|
created_at: string;
|
|
@@ -8911,6 +9337,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
8911
9337
|
country: string | null;
|
|
8912
9338
|
created_at: string;
|
|
8913
9339
|
email: string | null;
|
|
9340
|
+
external_group_key: string | null;
|
|
8914
9341
|
id: string;
|
|
8915
9342
|
last_synced_at: string | null;
|
|
8916
9343
|
name: string;
|
|
@@ -8929,6 +9356,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
8929
9356
|
country?: string | null;
|
|
8930
9357
|
created_at?: string;
|
|
8931
9358
|
email?: string | null;
|
|
9359
|
+
external_group_key?: string | null;
|
|
8932
9360
|
id?: string;
|
|
8933
9361
|
last_synced_at?: string | null;
|
|
8934
9362
|
name: string;
|
|
@@ -8947,6 +9375,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
8947
9375
|
country?: string | null;
|
|
8948
9376
|
created_at?: string;
|
|
8949
9377
|
email?: string | null;
|
|
9378
|
+
external_group_key?: string | null;
|
|
8950
9379
|
id?: string;
|
|
8951
9380
|
last_synced_at?: string | null;
|
|
8952
9381
|
name?: string;
|
|
@@ -9111,6 +9540,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9111
9540
|
twinfield_invoice_settings: {
|
|
9112
9541
|
Row: {
|
|
9113
9542
|
created_at: string;
|
|
9543
|
+
debtor_gl_account: string;
|
|
9544
|
+
default_credit_invoice_type: string | null;
|
|
9114
9545
|
default_gl_account: string;
|
|
9115
9546
|
default_invoice_type: string;
|
|
9116
9547
|
default_payment_term_days: number;
|
|
@@ -9119,11 +9550,15 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9119
9550
|
invoice_enabled_fo: boolean;
|
|
9120
9551
|
invoice_enabled_ho: boolean;
|
|
9121
9552
|
invoice_enabled_mo: boolean;
|
|
9553
|
+
payment_gl_account: string;
|
|
9554
|
+
payment_journal_code: string;
|
|
9122
9555
|
updated_at: string;
|
|
9123
9556
|
user_id: string;
|
|
9124
9557
|
};
|
|
9125
9558
|
Insert: {
|
|
9126
9559
|
created_at?: string;
|
|
9560
|
+
debtor_gl_account?: string;
|
|
9561
|
+
default_credit_invoice_type?: string | null;
|
|
9127
9562
|
default_gl_account?: string;
|
|
9128
9563
|
default_invoice_type?: string;
|
|
9129
9564
|
default_payment_term_days?: number;
|
|
@@ -9132,11 +9567,15 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9132
9567
|
invoice_enabled_fo?: boolean;
|
|
9133
9568
|
invoice_enabled_ho?: boolean;
|
|
9134
9569
|
invoice_enabled_mo?: boolean;
|
|
9570
|
+
payment_gl_account?: string;
|
|
9571
|
+
payment_journal_code?: string;
|
|
9135
9572
|
updated_at?: string;
|
|
9136
9573
|
user_id: string;
|
|
9137
9574
|
};
|
|
9138
9575
|
Update: {
|
|
9139
9576
|
created_at?: string;
|
|
9577
|
+
debtor_gl_account?: string;
|
|
9578
|
+
default_credit_invoice_type?: string | null;
|
|
9140
9579
|
default_gl_account?: string;
|
|
9141
9580
|
default_invoice_type?: string;
|
|
9142
9581
|
default_payment_term_days?: number;
|
|
@@ -9145,6 +9584,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9145
9584
|
invoice_enabled_fo?: boolean;
|
|
9146
9585
|
invoice_enabled_ho?: boolean;
|
|
9147
9586
|
invoice_enabled_mo?: boolean;
|
|
9587
|
+
payment_gl_account?: string;
|
|
9588
|
+
payment_journal_code?: string;
|
|
9148
9589
|
updated_at?: string;
|
|
9149
9590
|
user_id?: string;
|
|
9150
9591
|
};
|
|
@@ -9365,43 +9806,49 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9365
9806
|
};
|
|
9366
9807
|
twinfield_push_queue: {
|
|
9367
9808
|
Row: {
|
|
9809
|
+
action: string;
|
|
9368
9810
|
attempts: number;
|
|
9369
9811
|
connection_id: string;
|
|
9370
9812
|
created_at: string;
|
|
9813
|
+
customer_id: string | null;
|
|
9371
9814
|
external_id: string | null;
|
|
9372
9815
|
id: string;
|
|
9373
9816
|
idempotency_key: string;
|
|
9374
9817
|
last_error: string | null;
|
|
9375
9818
|
next_attempt_at: string;
|
|
9376
|
-
office_code: string;
|
|
9819
|
+
office_code: string | null;
|
|
9377
9820
|
payload: import("../integrations/supabase/types").Json;
|
|
9378
9821
|
status: string;
|
|
9379
9822
|
updated_at: string;
|
|
9380
9823
|
};
|
|
9381
9824
|
Insert: {
|
|
9825
|
+
action?: string;
|
|
9382
9826
|
attempts?: number;
|
|
9383
9827
|
connection_id: string;
|
|
9384
9828
|
created_at?: string;
|
|
9829
|
+
customer_id?: string | null;
|
|
9385
9830
|
external_id?: string | null;
|
|
9386
9831
|
id?: string;
|
|
9387
9832
|
idempotency_key: string;
|
|
9388
9833
|
last_error?: string | null;
|
|
9389
9834
|
next_attempt_at?: string;
|
|
9390
|
-
office_code
|
|
9835
|
+
office_code?: string | null;
|
|
9391
9836
|
payload: import("../integrations/supabase/types").Json;
|
|
9392
9837
|
status?: string;
|
|
9393
9838
|
updated_at?: string;
|
|
9394
9839
|
};
|
|
9395
9840
|
Update: {
|
|
9841
|
+
action?: string;
|
|
9396
9842
|
attempts?: number;
|
|
9397
9843
|
connection_id?: string;
|
|
9398
9844
|
created_at?: string;
|
|
9845
|
+
customer_id?: string | null;
|
|
9399
9846
|
external_id?: string | null;
|
|
9400
9847
|
id?: string;
|
|
9401
9848
|
idempotency_key?: string;
|
|
9402
9849
|
last_error?: string | null;
|
|
9403
9850
|
next_attempt_at?: string;
|
|
9404
|
-
office_code?: string;
|
|
9851
|
+
office_code?: string | null;
|
|
9405
9852
|
payload?: import("../integrations/supabase/types").Json;
|
|
9406
9853
|
status?: string;
|
|
9407
9854
|
updated_at?: string;
|
|
@@ -9412,6 +9859,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9412
9859
|
isOneToOne: false;
|
|
9413
9860
|
referencedRelation: "twinfield_connections";
|
|
9414
9861
|
referencedColumns: ["id"];
|
|
9862
|
+
}, {
|
|
9863
|
+
foreignKeyName: "twinfield_push_queue_customer_id_fkey";
|
|
9864
|
+
columns: ["customer_id"];
|
|
9865
|
+
isOneToOne: false;
|
|
9866
|
+
referencedRelation: "customers";
|
|
9867
|
+
referencedColumns: ["id"];
|
|
9415
9868
|
}];
|
|
9416
9869
|
};
|
|
9417
9870
|
twinfield_request_metrics: {
|
|
@@ -9687,159 +10140,399 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9687
10140
|
};
|
|
9688
10141
|
Relationships: [];
|
|
9689
10142
|
};
|
|
9690
|
-
|
|
10143
|
+
werkbon_package_lines: {
|
|
9691
10144
|
Row: {
|
|
9692
10145
|
created_at: string;
|
|
10146
|
+
created_by: string | null;
|
|
9693
10147
|
id: string;
|
|
9694
|
-
|
|
9695
|
-
|
|
10148
|
+
package_id: string;
|
|
10149
|
+
quantity: number;
|
|
10150
|
+
unit_price_cents_snapshot: number;
|
|
10151
|
+
werkbon_id: string;
|
|
9696
10152
|
};
|
|
9697
10153
|
Insert: {
|
|
9698
10154
|
created_at?: string;
|
|
10155
|
+
created_by?: string | null;
|
|
9699
10156
|
id?: string;
|
|
9700
|
-
|
|
9701
|
-
|
|
10157
|
+
package_id: string;
|
|
10158
|
+
quantity?: number;
|
|
10159
|
+
unit_price_cents_snapshot?: number;
|
|
10160
|
+
werkbon_id: string;
|
|
9702
10161
|
};
|
|
9703
10162
|
Update: {
|
|
9704
10163
|
created_at?: string;
|
|
10164
|
+
created_by?: string | null;
|
|
9705
10165
|
id?: string;
|
|
9706
|
-
|
|
9707
|
-
|
|
10166
|
+
package_id?: string;
|
|
10167
|
+
quantity?: number;
|
|
10168
|
+
unit_price_cents_snapshot?: number;
|
|
10169
|
+
werkbon_id?: string;
|
|
9708
10170
|
};
|
|
9709
10171
|
Relationships: [{
|
|
9710
|
-
foreignKeyName: "
|
|
9711
|
-
columns: ["
|
|
10172
|
+
foreignKeyName: "werkbon_package_lines_package_id_fkey";
|
|
10173
|
+
columns: ["package_id"];
|
|
9712
10174
|
isOneToOne: false;
|
|
9713
|
-
referencedRelation: "
|
|
10175
|
+
referencedRelation: "werkbon_packages";
|
|
9714
10176
|
referencedColumns: ["id"];
|
|
9715
10177
|
}, {
|
|
9716
|
-
foreignKeyName: "
|
|
9717
|
-
columns: ["
|
|
10178
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
10179
|
+
columns: ["werkbon_id"];
|
|
9718
10180
|
isOneToOne: false;
|
|
9719
|
-
referencedRelation: "
|
|
10181
|
+
referencedRelation: "werkbonnen";
|
|
9720
10182
|
referencedColumns: ["id"];
|
|
9721
10183
|
}];
|
|
9722
10184
|
};
|
|
9723
|
-
|
|
10185
|
+
werkbon_packages: {
|
|
9724
10186
|
Row: {
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
contact_person: string | null;
|
|
10187
|
+
active: boolean;
|
|
10188
|
+
code: string;
|
|
9728
10189
|
created_at: string;
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
description: string;
|
|
9732
|
-
email: string | null;
|
|
9733
|
-
email_source: string | null;
|
|
9734
|
-
estimated_duration_hours: number | null;
|
|
9735
|
-
external_reference: string | null;
|
|
9736
|
-
follow_up_needed: boolean;
|
|
10190
|
+
default_quantity: number;
|
|
10191
|
+
description: string | null;
|
|
9737
10192
|
id: string;
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
mandate_used: number;
|
|
9741
|
-
order_number: string;
|
|
9742
|
-
parent_work_order_id: string | null;
|
|
9743
|
-
pdf_url: string | null;
|
|
9744
|
-
phone: string | null;
|
|
9745
|
-
postal_code: string;
|
|
9746
|
-
priority: string;
|
|
9747
|
-
project_number: string | null;
|
|
9748
|
-
report_validated: boolean;
|
|
9749
|
-
room_number: string;
|
|
9750
|
-
scheduled_date: string | null;
|
|
9751
|
-
scheduled_end_time: string | null;
|
|
9752
|
-
scheduled_start_time: string | null;
|
|
9753
|
-
status: string;
|
|
9754
|
-
tenant_id: string;
|
|
9755
|
-
total_hours_worked: number | null;
|
|
9756
|
-
total_price: number | null;
|
|
9757
|
-
travel_time_minutes: number | null;
|
|
10193
|
+
name: string;
|
|
10194
|
+
unit_price_cents: number;
|
|
9758
10195
|
updated_at: string;
|
|
9759
|
-
work_address: string;
|
|
9760
|
-
work_report: string | null;
|
|
9761
10196
|
};
|
|
9762
10197
|
Insert: {
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
contact_person?: string | null;
|
|
10198
|
+
active?: boolean;
|
|
10199
|
+
code: string;
|
|
9766
10200
|
created_at?: string;
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
description?: string;
|
|
9770
|
-
email?: string | null;
|
|
9771
|
-
email_source?: string | null;
|
|
9772
|
-
estimated_duration_hours?: number | null;
|
|
9773
|
-
external_reference?: string | null;
|
|
9774
|
-
follow_up_needed?: boolean;
|
|
10201
|
+
default_quantity?: number;
|
|
10202
|
+
description?: string | null;
|
|
9775
10203
|
id?: string;
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
mandate_used?: number;
|
|
9779
|
-
order_number?: string;
|
|
9780
|
-
parent_work_order_id?: string | null;
|
|
9781
|
-
pdf_url?: string | null;
|
|
9782
|
-
phone?: string | null;
|
|
9783
|
-
postal_code?: string;
|
|
9784
|
-
priority?: string;
|
|
9785
|
-
project_number?: string | null;
|
|
9786
|
-
report_validated?: boolean;
|
|
9787
|
-
room_number?: string;
|
|
9788
|
-
scheduled_date?: string | null;
|
|
9789
|
-
scheduled_end_time?: string | null;
|
|
9790
|
-
scheduled_start_time?: string | null;
|
|
9791
|
-
status?: string;
|
|
9792
|
-
tenant_id: string;
|
|
9793
|
-
total_hours_worked?: number | null;
|
|
9794
|
-
total_price?: number | null;
|
|
9795
|
-
travel_time_minutes?: number | null;
|
|
10204
|
+
name: string;
|
|
10205
|
+
unit_price_cents?: number;
|
|
9796
10206
|
updated_at?: string;
|
|
9797
|
-
work_address?: string;
|
|
9798
|
-
work_report?: string | null;
|
|
9799
10207
|
};
|
|
9800
10208
|
Update: {
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
contact_person?: string | null;
|
|
10209
|
+
active?: boolean;
|
|
10210
|
+
code?: string;
|
|
9804
10211
|
created_at?: string;
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
description?: string;
|
|
9808
|
-
email?: string | null;
|
|
9809
|
-
email_source?: string | null;
|
|
9810
|
-
estimated_duration_hours?: number | null;
|
|
9811
|
-
external_reference?: string | null;
|
|
9812
|
-
follow_up_needed?: boolean;
|
|
10212
|
+
default_quantity?: number;
|
|
10213
|
+
description?: string | null;
|
|
9813
10214
|
id?: string;
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
mandate_used?: number;
|
|
9817
|
-
order_number?: string;
|
|
9818
|
-
parent_work_order_id?: string | null;
|
|
9819
|
-
pdf_url?: string | null;
|
|
9820
|
-
phone?: string | null;
|
|
9821
|
-
postal_code?: string;
|
|
9822
|
-
priority?: string;
|
|
9823
|
-
project_number?: string | null;
|
|
9824
|
-
report_validated?: boolean;
|
|
9825
|
-
room_number?: string;
|
|
9826
|
-
scheduled_date?: string | null;
|
|
9827
|
-
scheduled_end_time?: string | null;
|
|
9828
|
-
scheduled_start_time?: string | null;
|
|
9829
|
-
status?: string;
|
|
9830
|
-
tenant_id?: string;
|
|
9831
|
-
total_hours_worked?: number | null;
|
|
9832
|
-
total_price?: number | null;
|
|
9833
|
-
travel_time_minutes?: number | null;
|
|
10215
|
+
name?: string;
|
|
10216
|
+
unit_price_cents?: number;
|
|
9834
10217
|
updated_at?: string;
|
|
9835
|
-
work_address?: string;
|
|
9836
|
-
work_report?: string | null;
|
|
9837
10218
|
};
|
|
9838
|
-
Relationships: [
|
|
9839
|
-
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
10219
|
+
Relationships: [];
|
|
10220
|
+
};
|
|
10221
|
+
werkbon_photos: {
|
|
10222
|
+
Row: {
|
|
10223
|
+
created_at: string;
|
|
10224
|
+
id: string;
|
|
10225
|
+
storage_path: string;
|
|
10226
|
+
user_id: string;
|
|
10227
|
+
werkbon_id: string;
|
|
10228
|
+
};
|
|
10229
|
+
Insert: {
|
|
10230
|
+
created_at?: string;
|
|
10231
|
+
id?: string;
|
|
10232
|
+
storage_path: string;
|
|
10233
|
+
user_id: string;
|
|
10234
|
+
werkbon_id: string;
|
|
10235
|
+
};
|
|
10236
|
+
Update: {
|
|
10237
|
+
created_at?: string;
|
|
10238
|
+
id?: string;
|
|
10239
|
+
storage_path?: string;
|
|
10240
|
+
user_id?: string;
|
|
10241
|
+
werkbon_id?: string;
|
|
10242
|
+
};
|
|
10243
|
+
Relationships: [{
|
|
10244
|
+
foreignKeyName: "werkbon_photos_werkbon_id_fkey";
|
|
10245
|
+
columns: ["werkbon_id"];
|
|
10246
|
+
isOneToOne: false;
|
|
10247
|
+
referencedRelation: "werkbonnen";
|
|
10248
|
+
referencedColumns: ["id"];
|
|
10249
|
+
}];
|
|
10250
|
+
};
|
|
10251
|
+
werkbon_time_logs: {
|
|
10252
|
+
Row: {
|
|
10253
|
+
activity: string;
|
|
10254
|
+
created_at: string;
|
|
10255
|
+
ended_at: string | null;
|
|
10256
|
+
id: string;
|
|
10257
|
+
started_at: string;
|
|
10258
|
+
user_id: string;
|
|
10259
|
+
werkbon_id: string;
|
|
10260
|
+
};
|
|
10261
|
+
Insert: {
|
|
10262
|
+
activity: string;
|
|
10263
|
+
created_at?: string;
|
|
10264
|
+
ended_at?: string | null;
|
|
10265
|
+
id?: string;
|
|
10266
|
+
started_at?: string;
|
|
10267
|
+
user_id: string;
|
|
10268
|
+
werkbon_id: string;
|
|
10269
|
+
};
|
|
10270
|
+
Update: {
|
|
10271
|
+
activity?: string;
|
|
10272
|
+
created_at?: string;
|
|
10273
|
+
ended_at?: string | null;
|
|
10274
|
+
id?: string;
|
|
10275
|
+
started_at?: string;
|
|
10276
|
+
user_id?: string;
|
|
10277
|
+
werkbon_id?: string;
|
|
10278
|
+
};
|
|
10279
|
+
Relationships: [{
|
|
10280
|
+
foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
|
|
10281
|
+
columns: ["werkbon_id"];
|
|
10282
|
+
isOneToOne: false;
|
|
10283
|
+
referencedRelation: "werkbonnen";
|
|
10284
|
+
referencedColumns: ["id"];
|
|
10285
|
+
}];
|
|
10286
|
+
};
|
|
10287
|
+
werkbonnen: {
|
|
10288
|
+
Row: {
|
|
10289
|
+
assigned_user_id: string | null;
|
|
10290
|
+
budget_mandate_cents: number;
|
|
10291
|
+
complaint_description: string | null;
|
|
10292
|
+
created_at: string;
|
|
10293
|
+
created_by: string | null;
|
|
10294
|
+
customer_id: string | null;
|
|
10295
|
+
externe_referentie: string | null;
|
|
10296
|
+
first_time_fix: boolean | null;
|
|
10297
|
+
id: string;
|
|
10298
|
+
internal_notes: string | null;
|
|
10299
|
+
parent_werkbon_id: string | null;
|
|
10300
|
+
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
10301
|
+
project_number: string | null;
|
|
10302
|
+
room_number: string | null;
|
|
10303
|
+
scheduled_end_time: string | null;
|
|
10304
|
+
scheduled_start_time: string | null;
|
|
10305
|
+
sequence_number: number;
|
|
10306
|
+
source_pdf_path: string | null;
|
|
10307
|
+
status: string;
|
|
10308
|
+
technician_notes: string | null;
|
|
10309
|
+
technician_notes_raw: string | null;
|
|
10310
|
+
technician_task_description: string | null;
|
|
10311
|
+
updated_at: string;
|
|
10312
|
+
version: number;
|
|
10313
|
+
work_address: string | null;
|
|
10314
|
+
};
|
|
10315
|
+
Insert: {
|
|
10316
|
+
assigned_user_id?: string | null;
|
|
10317
|
+
budget_mandate_cents?: number;
|
|
10318
|
+
complaint_description?: string | null;
|
|
10319
|
+
created_at?: string;
|
|
10320
|
+
created_by?: string | null;
|
|
10321
|
+
customer_id?: string | null;
|
|
10322
|
+
externe_referentie?: string | null;
|
|
10323
|
+
first_time_fix?: boolean | null;
|
|
10324
|
+
id?: string;
|
|
10325
|
+
internal_notes?: string | null;
|
|
10326
|
+
parent_werkbon_id?: string | null;
|
|
10327
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
10328
|
+
project_number?: string | null;
|
|
10329
|
+
room_number?: string | null;
|
|
10330
|
+
scheduled_end_time?: string | null;
|
|
10331
|
+
scheduled_start_time?: string | null;
|
|
10332
|
+
sequence_number: number;
|
|
10333
|
+
source_pdf_path?: string | null;
|
|
10334
|
+
status?: string;
|
|
10335
|
+
technician_notes?: string | null;
|
|
10336
|
+
technician_notes_raw?: string | null;
|
|
10337
|
+
technician_task_description?: string | null;
|
|
10338
|
+
updated_at?: string;
|
|
10339
|
+
version?: number;
|
|
10340
|
+
work_address?: string | null;
|
|
10341
|
+
};
|
|
10342
|
+
Update: {
|
|
10343
|
+
assigned_user_id?: string | null;
|
|
10344
|
+
budget_mandate_cents?: number;
|
|
10345
|
+
complaint_description?: string | null;
|
|
10346
|
+
created_at?: string;
|
|
10347
|
+
created_by?: string | null;
|
|
10348
|
+
customer_id?: string | null;
|
|
10349
|
+
externe_referentie?: string | null;
|
|
10350
|
+
first_time_fix?: boolean | null;
|
|
10351
|
+
id?: string;
|
|
10352
|
+
internal_notes?: string | null;
|
|
10353
|
+
parent_werkbon_id?: string | null;
|
|
10354
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
10355
|
+
project_number?: string | null;
|
|
10356
|
+
room_number?: string | null;
|
|
10357
|
+
scheduled_end_time?: string | null;
|
|
10358
|
+
scheduled_start_time?: string | null;
|
|
10359
|
+
sequence_number?: number;
|
|
10360
|
+
source_pdf_path?: string | null;
|
|
10361
|
+
status?: string;
|
|
10362
|
+
technician_notes?: string | null;
|
|
10363
|
+
technician_notes_raw?: string | null;
|
|
10364
|
+
technician_task_description?: string | null;
|
|
10365
|
+
updated_at?: string;
|
|
10366
|
+
version?: number;
|
|
10367
|
+
work_address?: string | null;
|
|
10368
|
+
};
|
|
10369
|
+
Relationships: [{
|
|
10370
|
+
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
10371
|
+
columns: ["customer_id"];
|
|
10372
|
+
isOneToOne: false;
|
|
10373
|
+
referencedRelation: "customers";
|
|
10374
|
+
referencedColumns: ["id"];
|
|
10375
|
+
}, {
|
|
10376
|
+
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
10377
|
+
columns: ["parent_werkbon_id"];
|
|
10378
|
+
isOneToOne: false;
|
|
10379
|
+
referencedRelation: "werkbonnen";
|
|
10380
|
+
referencedColumns: ["id"];
|
|
10381
|
+
}];
|
|
10382
|
+
};
|
|
10383
|
+
work_order_monteurs: {
|
|
10384
|
+
Row: {
|
|
10385
|
+
created_at: string;
|
|
10386
|
+
id: string;
|
|
10387
|
+
monteur_id: string;
|
|
10388
|
+
work_order_id: string;
|
|
10389
|
+
};
|
|
10390
|
+
Insert: {
|
|
10391
|
+
created_at?: string;
|
|
10392
|
+
id?: string;
|
|
10393
|
+
monteur_id: string;
|
|
10394
|
+
work_order_id: string;
|
|
10395
|
+
};
|
|
10396
|
+
Update: {
|
|
10397
|
+
created_at?: string;
|
|
10398
|
+
id?: string;
|
|
10399
|
+
monteur_id?: string;
|
|
10400
|
+
work_order_id?: string;
|
|
10401
|
+
};
|
|
10402
|
+
Relationships: [{
|
|
10403
|
+
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
10404
|
+
columns: ["monteur_id"];
|
|
10405
|
+
isOneToOne: false;
|
|
10406
|
+
referencedRelation: "monteurs";
|
|
10407
|
+
referencedColumns: ["id"];
|
|
10408
|
+
}, {
|
|
10409
|
+
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
10410
|
+
columns: ["work_order_id"];
|
|
10411
|
+
isOneToOne: false;
|
|
10412
|
+
referencedRelation: "work_orders";
|
|
10413
|
+
referencedColumns: ["id"];
|
|
10414
|
+
}];
|
|
10415
|
+
};
|
|
10416
|
+
work_orders: {
|
|
10417
|
+
Row: {
|
|
10418
|
+
assigned_to: string | null;
|
|
10419
|
+
city: string | null;
|
|
10420
|
+
contact_person: string | null;
|
|
10421
|
+
created_at: string;
|
|
10422
|
+
custom_fields: import("../integrations/supabase/types").Json;
|
|
10423
|
+
customer_name: string;
|
|
10424
|
+
description: string;
|
|
10425
|
+
email: string | null;
|
|
10426
|
+
email_source: string | null;
|
|
10427
|
+
estimated_duration_hours: number | null;
|
|
10428
|
+
external_reference: string | null;
|
|
10429
|
+
follow_up_needed: boolean;
|
|
10430
|
+
id: string;
|
|
10431
|
+
mandate: string;
|
|
10432
|
+
mandate_budget: number;
|
|
10433
|
+
mandate_used: number;
|
|
10434
|
+
order_number: string;
|
|
10435
|
+
parent_work_order_id: string | null;
|
|
10436
|
+
pdf_url: string | null;
|
|
10437
|
+
phone: string | null;
|
|
10438
|
+
postal_code: string;
|
|
10439
|
+
priority: string;
|
|
10440
|
+
project_number: string | null;
|
|
10441
|
+
report_validated: boolean;
|
|
10442
|
+
room_number: string;
|
|
10443
|
+
scheduled_date: string | null;
|
|
10444
|
+
scheduled_end_time: string | null;
|
|
10445
|
+
scheduled_start_time: string | null;
|
|
10446
|
+
status: string;
|
|
10447
|
+
tenant_id: string;
|
|
10448
|
+
total_hours_worked: number | null;
|
|
10449
|
+
total_price: number | null;
|
|
10450
|
+
travel_time_minutes: number | null;
|
|
10451
|
+
updated_at: string;
|
|
10452
|
+
work_address: string;
|
|
10453
|
+
work_report: string | null;
|
|
10454
|
+
};
|
|
10455
|
+
Insert: {
|
|
10456
|
+
assigned_to?: string | null;
|
|
10457
|
+
city?: string | null;
|
|
10458
|
+
contact_person?: string | null;
|
|
10459
|
+
created_at?: string;
|
|
10460
|
+
custom_fields?: import("../integrations/supabase/types").Json;
|
|
10461
|
+
customer_name?: string;
|
|
10462
|
+
description?: string;
|
|
10463
|
+
email?: string | null;
|
|
10464
|
+
email_source?: string | null;
|
|
10465
|
+
estimated_duration_hours?: number | null;
|
|
10466
|
+
external_reference?: string | null;
|
|
10467
|
+
follow_up_needed?: boolean;
|
|
10468
|
+
id?: string;
|
|
10469
|
+
mandate?: string;
|
|
10470
|
+
mandate_budget?: number;
|
|
10471
|
+
mandate_used?: number;
|
|
10472
|
+
order_number?: string;
|
|
10473
|
+
parent_work_order_id?: string | null;
|
|
10474
|
+
pdf_url?: string | null;
|
|
10475
|
+
phone?: string | null;
|
|
10476
|
+
postal_code?: string;
|
|
10477
|
+
priority?: string;
|
|
10478
|
+
project_number?: string | null;
|
|
10479
|
+
report_validated?: boolean;
|
|
10480
|
+
room_number?: string;
|
|
10481
|
+
scheduled_date?: string | null;
|
|
10482
|
+
scheduled_end_time?: string | null;
|
|
10483
|
+
scheduled_start_time?: string | null;
|
|
10484
|
+
status?: string;
|
|
10485
|
+
tenant_id: string;
|
|
10486
|
+
total_hours_worked?: number | null;
|
|
10487
|
+
total_price?: number | null;
|
|
10488
|
+
travel_time_minutes?: number | null;
|
|
10489
|
+
updated_at?: string;
|
|
10490
|
+
work_address?: string;
|
|
10491
|
+
work_report?: string | null;
|
|
10492
|
+
};
|
|
10493
|
+
Update: {
|
|
10494
|
+
assigned_to?: string | null;
|
|
10495
|
+
city?: string | null;
|
|
10496
|
+
contact_person?: string | null;
|
|
10497
|
+
created_at?: string;
|
|
10498
|
+
custom_fields?: import("../integrations/supabase/types").Json;
|
|
10499
|
+
customer_name?: string;
|
|
10500
|
+
description?: string;
|
|
10501
|
+
email?: string | null;
|
|
10502
|
+
email_source?: string | null;
|
|
10503
|
+
estimated_duration_hours?: number | null;
|
|
10504
|
+
external_reference?: string | null;
|
|
10505
|
+
follow_up_needed?: boolean;
|
|
10506
|
+
id?: string;
|
|
10507
|
+
mandate?: string;
|
|
10508
|
+
mandate_budget?: number;
|
|
10509
|
+
mandate_used?: number;
|
|
10510
|
+
order_number?: string;
|
|
10511
|
+
parent_work_order_id?: string | null;
|
|
10512
|
+
pdf_url?: string | null;
|
|
10513
|
+
phone?: string | null;
|
|
10514
|
+
postal_code?: string;
|
|
10515
|
+
priority?: string;
|
|
10516
|
+
project_number?: string | null;
|
|
10517
|
+
report_validated?: boolean;
|
|
10518
|
+
room_number?: string;
|
|
10519
|
+
scheduled_date?: string | null;
|
|
10520
|
+
scheduled_end_time?: string | null;
|
|
10521
|
+
scheduled_start_time?: string | null;
|
|
10522
|
+
status?: string;
|
|
10523
|
+
tenant_id?: string;
|
|
10524
|
+
total_hours_worked?: number | null;
|
|
10525
|
+
total_price?: number | null;
|
|
10526
|
+
travel_time_minutes?: number | null;
|
|
10527
|
+
updated_at?: string;
|
|
10528
|
+
work_address?: string;
|
|
10529
|
+
work_report?: string | null;
|
|
10530
|
+
};
|
|
10531
|
+
Relationships: [{
|
|
10532
|
+
foreignKeyName: "work_orders_parent_work_order_id_fkey";
|
|
10533
|
+
columns: ["parent_work_order_id"];
|
|
10534
|
+
isOneToOne: false;
|
|
10535
|
+
referencedRelation: "work_orders";
|
|
9843
10536
|
referencedColumns: ["id"];
|
|
9844
10537
|
}, {
|
|
9845
10538
|
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
@@ -9857,6 +10550,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9857
10550
|
created_at: string | null;
|
|
9858
10551
|
created_by: string | null;
|
|
9859
10552
|
display_name: string | null;
|
|
10553
|
+
graph_subscription_expires_at: string | null;
|
|
10554
|
+
graph_subscription_id: string | null;
|
|
9860
10555
|
has_access_token: boolean | null;
|
|
9861
10556
|
has_client_id: boolean | null;
|
|
9862
10557
|
has_client_secret: boolean | null;
|
|
@@ -9874,6 +10569,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9874
10569
|
oauth_mode: string | null;
|
|
9875
10570
|
provider: string | null;
|
|
9876
10571
|
purpose_assignments: import("../integrations/supabase/types").Json | null;
|
|
10572
|
+
realtime_mode: string | null;
|
|
9877
10573
|
scopes: string[] | null;
|
|
9878
10574
|
smtp_host: string | null;
|
|
9879
10575
|
smtp_port: number | null;
|
|
@@ -9888,6 +10584,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9888
10584
|
created_at?: string | null;
|
|
9889
10585
|
created_by?: string | null;
|
|
9890
10586
|
display_name?: string | null;
|
|
10587
|
+
graph_subscription_expires_at?: string | null;
|
|
10588
|
+
graph_subscription_id?: string | null;
|
|
9891
10589
|
has_access_token?: never;
|
|
9892
10590
|
has_client_id?: never;
|
|
9893
10591
|
has_client_secret?: never;
|
|
@@ -9905,6 +10603,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9905
10603
|
oauth_mode?: string | null;
|
|
9906
10604
|
provider?: string | null;
|
|
9907
10605
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
10606
|
+
realtime_mode?: string | null;
|
|
9908
10607
|
scopes?: string[] | null;
|
|
9909
10608
|
smtp_host?: string | null;
|
|
9910
10609
|
smtp_port?: number | null;
|
|
@@ -9919,6 +10618,8 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9919
10618
|
created_at?: string | null;
|
|
9920
10619
|
created_by?: string | null;
|
|
9921
10620
|
display_name?: string | null;
|
|
10621
|
+
graph_subscription_expires_at?: string | null;
|
|
10622
|
+
graph_subscription_id?: string | null;
|
|
9922
10623
|
has_access_token?: never;
|
|
9923
10624
|
has_client_id?: never;
|
|
9924
10625
|
has_client_secret?: never;
|
|
@@ -9936,6 +10637,7 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
9936
10637
|
oauth_mode?: string | null;
|
|
9937
10638
|
provider?: string | null;
|
|
9938
10639
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
10640
|
+
realtime_mode?: string | null;
|
|
9939
10641
|
scopes?: string[] | null;
|
|
9940
10642
|
smtp_host?: string | null;
|
|
9941
10643
|
smtp_port?: number | null;
|
|
@@ -10479,6 +11181,33 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10479
11181
|
};
|
|
10480
11182
|
Returns: import("../integrations/supabase/types").Json;
|
|
10481
11183
|
};
|
|
11184
|
+
claim_twinfield_push_batch: {
|
|
11185
|
+
Args: {
|
|
11186
|
+
_limit?: number;
|
|
11187
|
+
};
|
|
11188
|
+
Returns: {
|
|
11189
|
+
action: string;
|
|
11190
|
+
attempts: number;
|
|
11191
|
+
connection_id: string;
|
|
11192
|
+
created_at: string;
|
|
11193
|
+
customer_id: string | null;
|
|
11194
|
+
external_id: string | null;
|
|
11195
|
+
id: string;
|
|
11196
|
+
idempotency_key: string;
|
|
11197
|
+
last_error: string | null;
|
|
11198
|
+
next_attempt_at: string;
|
|
11199
|
+
office_code: string | null;
|
|
11200
|
+
payload: import("../integrations/supabase/types").Json;
|
|
11201
|
+
status: string;
|
|
11202
|
+
updated_at: string;
|
|
11203
|
+
}[];
|
|
11204
|
+
SetofOptions: {
|
|
11205
|
+
from: "*";
|
|
11206
|
+
to: "twinfield_push_queue";
|
|
11207
|
+
isOneToOne: false;
|
|
11208
|
+
isSetofReturn: true;
|
|
11209
|
+
};
|
|
11210
|
+
};
|
|
10482
11211
|
cleanup_old_bookings: {
|
|
10483
11212
|
Args: never;
|
|
10484
11213
|
Returns: undefined;
|
|
@@ -10575,6 +11304,16 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10575
11304
|
status: string;
|
|
10576
11305
|
}[];
|
|
10577
11306
|
};
|
|
11307
|
+
email_auth_upsert_connection: {
|
|
11308
|
+
Args: {
|
|
11309
|
+
_account_email: string;
|
|
11310
|
+
_created_by: string;
|
|
11311
|
+
_is_active: boolean;
|
|
11312
|
+
_provider: string;
|
|
11313
|
+
_status: string;
|
|
11314
|
+
};
|
|
11315
|
+
Returns: string;
|
|
11316
|
+
};
|
|
10578
11317
|
enqueue_cart_replan_if_unlocked: {
|
|
10579
11318
|
Args: {
|
|
10580
11319
|
p_order_id: string;
|
|
@@ -10847,6 +11586,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10847
11586
|
};
|
|
10848
11587
|
Returns: boolean;
|
|
10849
11588
|
};
|
|
11589
|
+
has_twinfield_link: {
|
|
11590
|
+
Args: never;
|
|
11591
|
+
Returns: boolean;
|
|
11592
|
+
};
|
|
10850
11593
|
is_authenticated: {
|
|
10851
11594
|
Args: never;
|
|
10852
11595
|
Returns: boolean;
|
|
@@ -10902,6 +11645,10 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
10902
11645
|
};
|
|
10903
11646
|
Returns: string;
|
|
10904
11647
|
};
|
|
11648
|
+
next_twinfield_code: {
|
|
11649
|
+
Args: never;
|
|
11650
|
+
Returns: string;
|
|
11651
|
+
};
|
|
10905
11652
|
next_work_order_number: {
|
|
10906
11653
|
Args: {
|
|
10907
11654
|
p_parent_work_order_id?: string;
|
|
@@ -11016,6 +11763,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
11016
11763
|
};
|
|
11017
11764
|
Returns: number;
|
|
11018
11765
|
};
|
|
11766
|
+
reorder_customer_price_groups: {
|
|
11767
|
+
Args: {
|
|
11768
|
+
_ids: string[];
|
|
11769
|
+
};
|
|
11770
|
+
Returns: undefined;
|
|
11771
|
+
};
|
|
11019
11772
|
reset_floriday_sync_cursor: {
|
|
11020
11773
|
Args: {
|
|
11021
11774
|
p_connection_id: string;
|
|
@@ -11029,6 +11782,12 @@ export declare const listCustomerDiscounts: import("@tanstack/start-client-core"
|
|
|
11029
11782
|
};
|
|
11030
11783
|
Returns: string;
|
|
11031
11784
|
};
|
|
11785
|
+
retry_twinfield_push: {
|
|
11786
|
+
Args: {
|
|
11787
|
+
_customer_id: string;
|
|
11788
|
+
};
|
|
11789
|
+
Returns: number;
|
|
11790
|
+
};
|
|
11032
11791
|
schedule_floriday_additional_services_sync: {
|
|
11033
11792
|
Args: {
|
|
11034
11793
|
p_apikey: string;
|
|
@@ -11432,177 +12191,408 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
11432
12191
|
status: string;
|
|
11433
12192
|
sync_mode: string;
|
|
11434
12193
|
updated_at: string;
|
|
11435
|
-
user_id: string;
|
|
12194
|
+
user_id: string;
|
|
12195
|
+
};
|
|
12196
|
+
Insert: {
|
|
12197
|
+
account_email?: string | null;
|
|
12198
|
+
created_at?: string;
|
|
12199
|
+
id?: string;
|
|
12200
|
+
last_error?: string | null;
|
|
12201
|
+
last_synced_at?: string | null;
|
|
12202
|
+
provider: string;
|
|
12203
|
+
selected_calendars?: import("../integrations/supabase/types").Json;
|
|
12204
|
+
status?: string;
|
|
12205
|
+
sync_mode?: string;
|
|
12206
|
+
updated_at?: string;
|
|
12207
|
+
user_id: string;
|
|
12208
|
+
};
|
|
12209
|
+
Update: {
|
|
12210
|
+
account_email?: string | null;
|
|
12211
|
+
created_at?: string;
|
|
12212
|
+
id?: string;
|
|
12213
|
+
last_error?: string | null;
|
|
12214
|
+
last_synced_at?: string | null;
|
|
12215
|
+
provider?: string;
|
|
12216
|
+
selected_calendars?: import("../integrations/supabase/types").Json;
|
|
12217
|
+
status?: string;
|
|
12218
|
+
sync_mode?: string;
|
|
12219
|
+
updated_at?: string;
|
|
12220
|
+
user_id?: string;
|
|
12221
|
+
};
|
|
12222
|
+
Relationships: [];
|
|
12223
|
+
};
|
|
12224
|
+
agenda_events: {
|
|
12225
|
+
Row: {
|
|
12226
|
+
all_day: boolean;
|
|
12227
|
+
calendar_id: string;
|
|
12228
|
+
category: string | null;
|
|
12229
|
+
color: string;
|
|
12230
|
+
created_at: string;
|
|
12231
|
+
description: string | null;
|
|
12232
|
+
end_at: string;
|
|
12233
|
+
external_id: string | null;
|
|
12234
|
+
external_provider: string | null;
|
|
12235
|
+
id: string;
|
|
12236
|
+
linked_data: import("../integrations/supabase/types").Json;
|
|
12237
|
+
location: string | null;
|
|
12238
|
+
notes: string | null;
|
|
12239
|
+
recurrence: string | null;
|
|
12240
|
+
reminders: import("../integrations/supabase/types").Json;
|
|
12241
|
+
source_id: string | null;
|
|
12242
|
+
source_module: string;
|
|
12243
|
+
source_type: string | null;
|
|
12244
|
+
start_at: string;
|
|
12245
|
+
status: string;
|
|
12246
|
+
title: string;
|
|
12247
|
+
updated_at: string;
|
|
12248
|
+
user_id: string;
|
|
12249
|
+
};
|
|
12250
|
+
Insert: {
|
|
12251
|
+
all_day?: boolean;
|
|
12252
|
+
calendar_id?: string;
|
|
12253
|
+
category?: string | null;
|
|
12254
|
+
color?: string;
|
|
12255
|
+
created_at?: string;
|
|
12256
|
+
description?: string | null;
|
|
12257
|
+
end_at: string;
|
|
12258
|
+
external_id?: string | null;
|
|
12259
|
+
external_provider?: string | null;
|
|
12260
|
+
id?: string;
|
|
12261
|
+
linked_data?: import("../integrations/supabase/types").Json;
|
|
12262
|
+
location?: string | null;
|
|
12263
|
+
notes?: string | null;
|
|
12264
|
+
recurrence?: string | null;
|
|
12265
|
+
reminders?: import("../integrations/supabase/types").Json;
|
|
12266
|
+
source_id?: string | null;
|
|
12267
|
+
source_module?: string;
|
|
12268
|
+
source_type?: string | null;
|
|
12269
|
+
start_at: string;
|
|
12270
|
+
status?: string;
|
|
12271
|
+
title: string;
|
|
12272
|
+
updated_at?: string;
|
|
12273
|
+
user_id: string;
|
|
12274
|
+
};
|
|
12275
|
+
Update: {
|
|
12276
|
+
all_day?: boolean;
|
|
12277
|
+
calendar_id?: string;
|
|
12278
|
+
category?: string | null;
|
|
12279
|
+
color?: string;
|
|
12280
|
+
created_at?: string;
|
|
12281
|
+
description?: string | null;
|
|
12282
|
+
end_at?: string;
|
|
12283
|
+
external_id?: string | null;
|
|
12284
|
+
external_provider?: string | null;
|
|
12285
|
+
id?: string;
|
|
12286
|
+
linked_data?: import("../integrations/supabase/types").Json;
|
|
12287
|
+
location?: string | null;
|
|
12288
|
+
notes?: string | null;
|
|
12289
|
+
recurrence?: string | null;
|
|
12290
|
+
reminders?: import("../integrations/supabase/types").Json;
|
|
12291
|
+
source_id?: string | null;
|
|
12292
|
+
source_module?: string;
|
|
12293
|
+
source_type?: string | null;
|
|
12294
|
+
start_at?: string;
|
|
12295
|
+
status?: string;
|
|
12296
|
+
title?: string;
|
|
12297
|
+
updated_at?: string;
|
|
12298
|
+
user_id?: string;
|
|
12299
|
+
};
|
|
12300
|
+
Relationships: [];
|
|
12301
|
+
};
|
|
12302
|
+
agenda_oauth_tokens: {
|
|
12303
|
+
Row: {
|
|
12304
|
+
access_token: string | null;
|
|
12305
|
+
created_at: string;
|
|
12306
|
+
id: string;
|
|
12307
|
+
provider: string;
|
|
12308
|
+
refresh_token: string | null;
|
|
12309
|
+
scope: string | null;
|
|
12310
|
+
token_expires_at: string | null;
|
|
12311
|
+
updated_at: string;
|
|
12312
|
+
user_id: string;
|
|
12313
|
+
};
|
|
12314
|
+
Insert: {
|
|
12315
|
+
access_token?: string | null;
|
|
12316
|
+
created_at?: string;
|
|
12317
|
+
id?: string;
|
|
12318
|
+
provider: string;
|
|
12319
|
+
refresh_token?: string | null;
|
|
12320
|
+
scope?: string | null;
|
|
12321
|
+
token_expires_at?: string | null;
|
|
12322
|
+
updated_at?: string;
|
|
12323
|
+
user_id: string;
|
|
12324
|
+
};
|
|
12325
|
+
Update: {
|
|
12326
|
+
access_token?: string | null;
|
|
12327
|
+
created_at?: string;
|
|
12328
|
+
id?: string;
|
|
12329
|
+
provider?: string;
|
|
12330
|
+
refresh_token?: string | null;
|
|
12331
|
+
scope?: string | null;
|
|
12332
|
+
token_expires_at?: string | null;
|
|
12333
|
+
updated_at?: string;
|
|
12334
|
+
user_id?: string;
|
|
12335
|
+
};
|
|
12336
|
+
Relationships: [];
|
|
12337
|
+
};
|
|
12338
|
+
agenda_settings: {
|
|
12339
|
+
Row: {
|
|
12340
|
+
color_map: import("../integrations/supabase/types").Json;
|
|
12341
|
+
created_at: string;
|
|
12342
|
+
default_calendar_id: string;
|
|
12343
|
+
default_view: string;
|
|
12344
|
+
settings: import("../integrations/supabase/types").Json;
|
|
12345
|
+
updated_at: string;
|
|
12346
|
+
user_id: string;
|
|
12347
|
+
};
|
|
12348
|
+
Insert: {
|
|
12349
|
+
color_map?: import("../integrations/supabase/types").Json;
|
|
12350
|
+
created_at?: string;
|
|
12351
|
+
default_calendar_id?: string;
|
|
12352
|
+
default_view?: string;
|
|
12353
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
12354
|
+
updated_at?: string;
|
|
12355
|
+
user_id: string;
|
|
12356
|
+
};
|
|
12357
|
+
Update: {
|
|
12358
|
+
color_map?: import("../integrations/supabase/types").Json;
|
|
12359
|
+
created_at?: string;
|
|
12360
|
+
default_calendar_id?: string;
|
|
12361
|
+
default_view?: string;
|
|
12362
|
+
settings?: import("../integrations/supabase/types").Json;
|
|
12363
|
+
updated_at?: string;
|
|
12364
|
+
user_id?: string;
|
|
12365
|
+
};
|
|
12366
|
+
Relationships: [];
|
|
12367
|
+
};
|
|
12368
|
+
ai_admin_credentials: {
|
|
12369
|
+
Row: {
|
|
12370
|
+
active: boolean;
|
|
12371
|
+
admin_key: string;
|
|
12372
|
+
created_at: string;
|
|
12373
|
+
id: string;
|
|
12374
|
+
label: string;
|
|
12375
|
+
provider_id: string;
|
|
12376
|
+
updated_at: string;
|
|
12377
|
+
};
|
|
12378
|
+
Insert: {
|
|
12379
|
+
active?: boolean;
|
|
12380
|
+
admin_key: string;
|
|
12381
|
+
created_at?: string;
|
|
12382
|
+
id?: string;
|
|
12383
|
+
label: string;
|
|
12384
|
+
provider_id: string;
|
|
12385
|
+
updated_at?: string;
|
|
12386
|
+
};
|
|
12387
|
+
Update: {
|
|
12388
|
+
active?: boolean;
|
|
12389
|
+
admin_key?: string;
|
|
12390
|
+
created_at?: string;
|
|
12391
|
+
id?: string;
|
|
12392
|
+
label?: string;
|
|
12393
|
+
provider_id?: string;
|
|
12394
|
+
updated_at?: string;
|
|
12395
|
+
};
|
|
12396
|
+
Relationships: [{
|
|
12397
|
+
foreignKeyName: "ai_admin_credentials_provider_id_fkey";
|
|
12398
|
+
columns: ["provider_id"];
|
|
12399
|
+
isOneToOne: true;
|
|
12400
|
+
referencedRelation: "ai_providers";
|
|
12401
|
+
referencedColumns: ["id"];
|
|
12402
|
+
}];
|
|
12403
|
+
};
|
|
12404
|
+
ai_credentials: {
|
|
12405
|
+
Row: {
|
|
12406
|
+
active: boolean;
|
|
12407
|
+
api_key: string;
|
|
12408
|
+
created_at: string;
|
|
12409
|
+
id: string;
|
|
12410
|
+
label: string;
|
|
12411
|
+
provider_id: string;
|
|
12412
|
+
updated_at: string;
|
|
12413
|
+
};
|
|
12414
|
+
Insert: {
|
|
12415
|
+
active?: boolean;
|
|
12416
|
+
api_key: string;
|
|
12417
|
+
created_at?: string;
|
|
12418
|
+
id?: string;
|
|
12419
|
+
label: string;
|
|
12420
|
+
provider_id: string;
|
|
12421
|
+
updated_at?: string;
|
|
12422
|
+
};
|
|
12423
|
+
Update: {
|
|
12424
|
+
active?: boolean;
|
|
12425
|
+
api_key?: string;
|
|
12426
|
+
created_at?: string;
|
|
12427
|
+
id?: string;
|
|
12428
|
+
label?: string;
|
|
12429
|
+
provider_id?: string;
|
|
12430
|
+
updated_at?: string;
|
|
12431
|
+
};
|
|
12432
|
+
Relationships: [{
|
|
12433
|
+
foreignKeyName: "ai_credentials_provider_id_fkey";
|
|
12434
|
+
columns: ["provider_id"];
|
|
12435
|
+
isOneToOne: false;
|
|
12436
|
+
referencedRelation: "ai_providers";
|
|
12437
|
+
referencedColumns: ["id"];
|
|
12438
|
+
}];
|
|
12439
|
+
};
|
|
12440
|
+
ai_model_pricing: {
|
|
12441
|
+
Row: {
|
|
12442
|
+
created_at: string;
|
|
12443
|
+
currency: string;
|
|
12444
|
+
fetched_at: string;
|
|
12445
|
+
id: string;
|
|
12446
|
+
input_per_mtok: number | null;
|
|
12447
|
+
model_slug: string;
|
|
12448
|
+
output_per_mtok: number | null;
|
|
12449
|
+
provider_slug: string;
|
|
12450
|
+
source: string;
|
|
12451
|
+
updated_at: string;
|
|
11436
12452
|
};
|
|
11437
12453
|
Insert: {
|
|
11438
|
-
account_email?: string | null;
|
|
11439
12454
|
created_at?: string;
|
|
12455
|
+
currency?: string;
|
|
12456
|
+
fetched_at?: string;
|
|
11440
12457
|
id?: string;
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
sync_mode?: string;
|
|
12458
|
+
input_per_mtok?: number | null;
|
|
12459
|
+
model_slug: string;
|
|
12460
|
+
output_per_mtok?: number | null;
|
|
12461
|
+
provider_slug: string;
|
|
12462
|
+
source?: string;
|
|
11447
12463
|
updated_at?: string;
|
|
11448
|
-
user_id: string;
|
|
11449
12464
|
};
|
|
11450
12465
|
Update: {
|
|
11451
|
-
account_email?: string | null;
|
|
11452
12466
|
created_at?: string;
|
|
12467
|
+
currency?: string;
|
|
12468
|
+
fetched_at?: string;
|
|
11453
12469
|
id?: string;
|
|
11454
|
-
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11459
|
-
sync_mode?: string;
|
|
12470
|
+
input_per_mtok?: number | null;
|
|
12471
|
+
model_slug?: string;
|
|
12472
|
+
output_per_mtok?: number | null;
|
|
12473
|
+
provider_slug?: string;
|
|
12474
|
+
source?: string;
|
|
11460
12475
|
updated_at?: string;
|
|
11461
|
-
user_id?: string;
|
|
11462
12476
|
};
|
|
11463
12477
|
Relationships: [];
|
|
11464
12478
|
};
|
|
11465
|
-
|
|
12479
|
+
ai_models: {
|
|
11466
12480
|
Row: {
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
category: string | null;
|
|
11470
|
-
color: string;
|
|
12481
|
+
active: boolean;
|
|
12482
|
+
context_window: number | null;
|
|
11471
12483
|
created_at: string;
|
|
11472
|
-
|
|
11473
|
-
end_at: string;
|
|
11474
|
-
external_id: string | null;
|
|
11475
|
-
external_provider: string | null;
|
|
12484
|
+
display_name: string;
|
|
11476
12485
|
id: string;
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
reminders: import("../integrations/supabase/types").Json;
|
|
11482
|
-
source_id: string | null;
|
|
11483
|
-
source_module: string;
|
|
11484
|
-
source_type: string | null;
|
|
11485
|
-
start_at: string;
|
|
11486
|
-
status: string;
|
|
11487
|
-
title: string;
|
|
12486
|
+
is_default: boolean;
|
|
12487
|
+
modality: string;
|
|
12488
|
+
provider_id: string;
|
|
12489
|
+
slug: string;
|
|
11488
12490
|
updated_at: string;
|
|
11489
|
-
user_id: string;
|
|
11490
12491
|
};
|
|
11491
12492
|
Insert: {
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
category?: string | null;
|
|
11495
|
-
color?: string;
|
|
12493
|
+
active?: boolean;
|
|
12494
|
+
context_window?: number | null;
|
|
11496
12495
|
created_at?: string;
|
|
11497
|
-
|
|
11498
|
-
end_at: string;
|
|
11499
|
-
external_id?: string | null;
|
|
11500
|
-
external_provider?: string | null;
|
|
12496
|
+
display_name: string;
|
|
11501
12497
|
id?: string;
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
reminders?: import("../integrations/supabase/types").Json;
|
|
11507
|
-
source_id?: string | null;
|
|
11508
|
-
source_module?: string;
|
|
11509
|
-
source_type?: string | null;
|
|
11510
|
-
start_at: string;
|
|
11511
|
-
status?: string;
|
|
11512
|
-
title: string;
|
|
12498
|
+
is_default?: boolean;
|
|
12499
|
+
modality?: string;
|
|
12500
|
+
provider_id: string;
|
|
12501
|
+
slug: string;
|
|
11513
12502
|
updated_at?: string;
|
|
11514
|
-
user_id: string;
|
|
11515
12503
|
};
|
|
11516
12504
|
Update: {
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
category?: string | null;
|
|
11520
|
-
color?: string;
|
|
12505
|
+
active?: boolean;
|
|
12506
|
+
context_window?: number | null;
|
|
11521
12507
|
created_at?: string;
|
|
11522
|
-
|
|
11523
|
-
end_at?: string;
|
|
11524
|
-
external_id?: string | null;
|
|
11525
|
-
external_provider?: string | null;
|
|
12508
|
+
display_name?: string;
|
|
11526
12509
|
id?: string;
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
reminders?: import("../integrations/supabase/types").Json;
|
|
11532
|
-
source_id?: string | null;
|
|
11533
|
-
source_module?: string;
|
|
11534
|
-
source_type?: string | null;
|
|
11535
|
-
start_at?: string;
|
|
11536
|
-
status?: string;
|
|
11537
|
-
title?: string;
|
|
12510
|
+
is_default?: boolean;
|
|
12511
|
+
modality?: string;
|
|
12512
|
+
provider_id?: string;
|
|
12513
|
+
slug?: string;
|
|
11538
12514
|
updated_at?: string;
|
|
11539
|
-
user_id?: string;
|
|
11540
12515
|
};
|
|
11541
|
-
Relationships: [
|
|
12516
|
+
Relationships: [{
|
|
12517
|
+
foreignKeyName: "ai_models_provider_id_fkey";
|
|
12518
|
+
columns: ["provider_id"];
|
|
12519
|
+
isOneToOne: false;
|
|
12520
|
+
referencedRelation: "ai_providers";
|
|
12521
|
+
referencedColumns: ["id"];
|
|
12522
|
+
}];
|
|
11542
12523
|
};
|
|
11543
|
-
|
|
12524
|
+
ai_module_bindings: {
|
|
11544
12525
|
Row: {
|
|
11545
|
-
|
|
12526
|
+
consumer_module_id: string;
|
|
11546
12527
|
created_at: string;
|
|
12528
|
+
credential_id: string;
|
|
11547
12529
|
id: string;
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
scope: string | null;
|
|
11551
|
-
token_expires_at: string | null;
|
|
12530
|
+
model_id: string;
|
|
12531
|
+
notes: string | null;
|
|
11552
12532
|
updated_at: string;
|
|
11553
|
-
user_id: string;
|
|
11554
12533
|
};
|
|
11555
12534
|
Insert: {
|
|
11556
|
-
|
|
12535
|
+
consumer_module_id: string;
|
|
11557
12536
|
created_at?: string;
|
|
12537
|
+
credential_id: string;
|
|
11558
12538
|
id?: string;
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
scope?: string | null;
|
|
11562
|
-
token_expires_at?: string | null;
|
|
12539
|
+
model_id: string;
|
|
12540
|
+
notes?: string | null;
|
|
11563
12541
|
updated_at?: string;
|
|
11564
|
-
user_id: string;
|
|
11565
12542
|
};
|
|
11566
12543
|
Update: {
|
|
11567
|
-
|
|
12544
|
+
consumer_module_id?: string;
|
|
11568
12545
|
created_at?: string;
|
|
12546
|
+
credential_id?: string;
|
|
11569
12547
|
id?: string;
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
scope?: string | null;
|
|
11573
|
-
token_expires_at?: string | null;
|
|
12548
|
+
model_id?: string;
|
|
12549
|
+
notes?: string | null;
|
|
11574
12550
|
updated_at?: string;
|
|
11575
|
-
user_id?: string;
|
|
11576
12551
|
};
|
|
11577
|
-
Relationships: [
|
|
12552
|
+
Relationships: [{
|
|
12553
|
+
foreignKeyName: "ai_module_bindings_credential_id_fkey";
|
|
12554
|
+
columns: ["credential_id"];
|
|
12555
|
+
isOneToOne: false;
|
|
12556
|
+
referencedRelation: "ai_credentials";
|
|
12557
|
+
referencedColumns: ["id"];
|
|
12558
|
+
}, {
|
|
12559
|
+
foreignKeyName: "ai_module_bindings_model_id_fkey";
|
|
12560
|
+
columns: ["model_id"];
|
|
12561
|
+
isOneToOne: false;
|
|
12562
|
+
referencedRelation: "ai_models";
|
|
12563
|
+
referencedColumns: ["id"];
|
|
12564
|
+
}];
|
|
11578
12565
|
};
|
|
11579
|
-
|
|
12566
|
+
ai_providers: {
|
|
11580
12567
|
Row: {
|
|
11581
|
-
|
|
12568
|
+
active: boolean;
|
|
12569
|
+
auth_type: string;
|
|
12570
|
+
base_url: string | null;
|
|
11582
12571
|
created_at: string;
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
12572
|
+
id: string;
|
|
12573
|
+
name: string;
|
|
12574
|
+
slug: string;
|
|
11586
12575
|
updated_at: string;
|
|
11587
|
-
user_id: string;
|
|
11588
12576
|
};
|
|
11589
12577
|
Insert: {
|
|
11590
|
-
|
|
12578
|
+
active?: boolean;
|
|
12579
|
+
auth_type?: string;
|
|
12580
|
+
base_url?: string | null;
|
|
11591
12581
|
created_at?: string;
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
12582
|
+
id?: string;
|
|
12583
|
+
name: string;
|
|
12584
|
+
slug: string;
|
|
11595
12585
|
updated_at?: string;
|
|
11596
|
-
user_id: string;
|
|
11597
12586
|
};
|
|
11598
12587
|
Update: {
|
|
11599
|
-
|
|
12588
|
+
active?: boolean;
|
|
12589
|
+
auth_type?: string;
|
|
12590
|
+
base_url?: string | null;
|
|
11600
12591
|
created_at?: string;
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
12592
|
+
id?: string;
|
|
12593
|
+
name?: string;
|
|
12594
|
+
slug?: string;
|
|
11604
12595
|
updated_at?: string;
|
|
11605
|
-
user_id?: string;
|
|
11606
12596
|
};
|
|
11607
12597
|
Relationships: [];
|
|
11608
12598
|
};
|
|
@@ -12263,6 +13253,69 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12263
13253
|
referencedColumns: ["id"];
|
|
12264
13254
|
}];
|
|
12265
13255
|
};
|
|
13256
|
+
catalog_articles_cache: {
|
|
13257
|
+
Row: {
|
|
13258
|
+
created_at: string;
|
|
13259
|
+
default_price: number;
|
|
13260
|
+
default_vat_rate_ref: string | null;
|
|
13261
|
+
external_ref: string;
|
|
13262
|
+
id: string;
|
|
13263
|
+
name: string;
|
|
13264
|
+
updated_at: string;
|
|
13265
|
+
user_id: string;
|
|
13266
|
+
};
|
|
13267
|
+
Insert: {
|
|
13268
|
+
created_at?: string;
|
|
13269
|
+
default_price?: number;
|
|
13270
|
+
default_vat_rate_ref?: string | null;
|
|
13271
|
+
external_ref: string;
|
|
13272
|
+
id?: string;
|
|
13273
|
+
name: string;
|
|
13274
|
+
updated_at?: string;
|
|
13275
|
+
user_id: string;
|
|
13276
|
+
};
|
|
13277
|
+
Update: {
|
|
13278
|
+
created_at?: string;
|
|
13279
|
+
default_price?: number;
|
|
13280
|
+
default_vat_rate_ref?: string | null;
|
|
13281
|
+
external_ref?: string;
|
|
13282
|
+
id?: string;
|
|
13283
|
+
name?: string;
|
|
13284
|
+
updated_at?: string;
|
|
13285
|
+
user_id?: string;
|
|
13286
|
+
};
|
|
13287
|
+
Relationships: [];
|
|
13288
|
+
};
|
|
13289
|
+
catalog_vat_rates_cache: {
|
|
13290
|
+
Row: {
|
|
13291
|
+
created_at: string;
|
|
13292
|
+
external_ref: string;
|
|
13293
|
+
id: string;
|
|
13294
|
+
label: string;
|
|
13295
|
+
percentage: number;
|
|
13296
|
+
updated_at: string;
|
|
13297
|
+
user_id: string;
|
|
13298
|
+
};
|
|
13299
|
+
Insert: {
|
|
13300
|
+
created_at?: string;
|
|
13301
|
+
external_ref: string;
|
|
13302
|
+
id?: string;
|
|
13303
|
+
label: string;
|
|
13304
|
+
percentage?: number;
|
|
13305
|
+
updated_at?: string;
|
|
13306
|
+
user_id: string;
|
|
13307
|
+
};
|
|
13308
|
+
Update: {
|
|
13309
|
+
created_at?: string;
|
|
13310
|
+
external_ref?: string;
|
|
13311
|
+
id?: string;
|
|
13312
|
+
label?: string;
|
|
13313
|
+
percentage?: number;
|
|
13314
|
+
updated_at?: string;
|
|
13315
|
+
user_id?: string;
|
|
13316
|
+
};
|
|
13317
|
+
Relationships: [];
|
|
13318
|
+
};
|
|
12266
13319
|
collections: {
|
|
12267
13320
|
Row: {
|
|
12268
13321
|
created_at: string;
|
|
@@ -12486,28 +13539,127 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12486
13539
|
field_label: string;
|
|
12487
13540
|
field_type: string;
|
|
12488
13541
|
id: string;
|
|
12489
|
-
is_custom: boolean;
|
|
13542
|
+
is_custom: boolean;
|
|
13543
|
+
sort_order: number;
|
|
13544
|
+
updated_at: string;
|
|
13545
|
+
};
|
|
13546
|
+
Insert: {
|
|
13547
|
+
created_at?: string;
|
|
13548
|
+
field_key: string;
|
|
13549
|
+
field_label: string;
|
|
13550
|
+
field_type?: string;
|
|
13551
|
+
id?: string;
|
|
13552
|
+
is_custom?: boolean;
|
|
13553
|
+
sort_order?: number;
|
|
13554
|
+
updated_at?: string;
|
|
13555
|
+
};
|
|
13556
|
+
Update: {
|
|
13557
|
+
created_at?: string;
|
|
13558
|
+
field_key?: string;
|
|
13559
|
+
field_label?: string;
|
|
13560
|
+
field_type?: string;
|
|
13561
|
+
id?: string;
|
|
13562
|
+
is_custom?: boolean;
|
|
13563
|
+
sort_order?: number;
|
|
13564
|
+
updated_at?: string;
|
|
13565
|
+
};
|
|
13566
|
+
Relationships: [];
|
|
13567
|
+
};
|
|
13568
|
+
customer_price_group_members: {
|
|
13569
|
+
Row: {
|
|
13570
|
+
created_at: string;
|
|
13571
|
+
customer_key: string;
|
|
13572
|
+
id: string;
|
|
13573
|
+
owner_id: string;
|
|
13574
|
+
price_group_id: string;
|
|
13575
|
+
};
|
|
13576
|
+
Insert: {
|
|
13577
|
+
created_at?: string;
|
|
13578
|
+
customer_key: string;
|
|
13579
|
+
id?: string;
|
|
13580
|
+
owner_id?: string;
|
|
13581
|
+
price_group_id: string;
|
|
13582
|
+
};
|
|
13583
|
+
Update: {
|
|
13584
|
+
created_at?: string;
|
|
13585
|
+
customer_key?: string;
|
|
13586
|
+
id?: string;
|
|
13587
|
+
owner_id?: string;
|
|
13588
|
+
price_group_id?: string;
|
|
13589
|
+
};
|
|
13590
|
+
Relationships: [{
|
|
13591
|
+
foreignKeyName: "customer_price_group_members_price_group_id_fkey";
|
|
13592
|
+
columns: ["price_group_id"];
|
|
13593
|
+
isOneToOne: false;
|
|
13594
|
+
referencedRelation: "customer_price_groups";
|
|
13595
|
+
referencedColumns: ["id"];
|
|
13596
|
+
}];
|
|
13597
|
+
};
|
|
13598
|
+
customer_price_groups: {
|
|
13599
|
+
Row: {
|
|
13600
|
+
calc_type: string | null;
|
|
13601
|
+
calc_value: number | null;
|
|
13602
|
+
calc_value_type: string | null;
|
|
13603
|
+
created_at: string;
|
|
13604
|
+
currency: string;
|
|
13605
|
+
distribute_over: string | null;
|
|
13606
|
+
group_type: string;
|
|
13607
|
+
handling_fee: number | null;
|
|
13608
|
+
id: string;
|
|
13609
|
+
include_stickers: boolean;
|
|
13610
|
+
is_active: boolean;
|
|
13611
|
+
name: string;
|
|
13612
|
+
owner_id: string;
|
|
13613
|
+
price_scope: string;
|
|
13614
|
+
pricing_mode: string;
|
|
13615
|
+
rounding: string;
|
|
13616
|
+
rounding_step: number;
|
|
12490
13617
|
sort_order: number;
|
|
13618
|
+
unit: string;
|
|
12491
13619
|
updated_at: string;
|
|
12492
13620
|
};
|
|
12493
13621
|
Insert: {
|
|
13622
|
+
calc_type?: string | null;
|
|
13623
|
+
calc_value?: number | null;
|
|
13624
|
+
calc_value_type?: string | null;
|
|
12494
13625
|
created_at?: string;
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
13626
|
+
currency?: string;
|
|
13627
|
+
distribute_over?: string | null;
|
|
13628
|
+
group_type?: string;
|
|
13629
|
+
handling_fee?: number | null;
|
|
12498
13630
|
id?: string;
|
|
12499
|
-
|
|
13631
|
+
include_stickers?: boolean;
|
|
13632
|
+
is_active?: boolean;
|
|
13633
|
+
name: string;
|
|
13634
|
+
owner_id?: string;
|
|
13635
|
+
price_scope?: string;
|
|
13636
|
+
pricing_mode?: string;
|
|
13637
|
+
rounding?: string;
|
|
13638
|
+
rounding_step?: number;
|
|
12500
13639
|
sort_order?: number;
|
|
13640
|
+
unit?: string;
|
|
12501
13641
|
updated_at?: string;
|
|
12502
13642
|
};
|
|
12503
13643
|
Update: {
|
|
13644
|
+
calc_type?: string | null;
|
|
13645
|
+
calc_value?: number | null;
|
|
13646
|
+
calc_value_type?: string | null;
|
|
12504
13647
|
created_at?: string;
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
13648
|
+
currency?: string;
|
|
13649
|
+
distribute_over?: string | null;
|
|
13650
|
+
group_type?: string;
|
|
13651
|
+
handling_fee?: number | null;
|
|
12508
13652
|
id?: string;
|
|
12509
|
-
|
|
13653
|
+
include_stickers?: boolean;
|
|
13654
|
+
is_active?: boolean;
|
|
13655
|
+
name?: string;
|
|
13656
|
+
owner_id?: string;
|
|
13657
|
+
price_scope?: string;
|
|
13658
|
+
pricing_mode?: string;
|
|
13659
|
+
rounding?: string;
|
|
13660
|
+
rounding_step?: number;
|
|
12510
13661
|
sort_order?: number;
|
|
13662
|
+
unit?: string;
|
|
12511
13663
|
updated_at?: string;
|
|
12512
13664
|
};
|
|
12513
13665
|
Relationships: [];
|
|
@@ -12665,6 +13817,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12665
13817
|
sync_error: string | null;
|
|
12666
13818
|
sync_status: string;
|
|
12667
13819
|
trade_forms: string[];
|
|
13820
|
+
twinfield_code: string | null;
|
|
13821
|
+
twinfield_last_hash: string | null;
|
|
13822
|
+
twinfield_sync_error: string | null;
|
|
13823
|
+
twinfield_synced_at: string | null;
|
|
12668
13824
|
updated_at: string;
|
|
12669
13825
|
vat_display: string | null;
|
|
12670
13826
|
vat_number: string | null;
|
|
@@ -12732,6 +13888,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12732
13888
|
sync_error?: string | null;
|
|
12733
13889
|
sync_status?: string;
|
|
12734
13890
|
trade_forms?: string[];
|
|
13891
|
+
twinfield_code?: string | null;
|
|
13892
|
+
twinfield_last_hash?: string | null;
|
|
13893
|
+
twinfield_sync_error?: string | null;
|
|
13894
|
+
twinfield_synced_at?: string | null;
|
|
12735
13895
|
updated_at?: string;
|
|
12736
13896
|
vat_display?: string | null;
|
|
12737
13897
|
vat_number?: string | null;
|
|
@@ -12799,6 +13959,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
12799
13959
|
sync_error?: string | null;
|
|
12800
13960
|
sync_status?: string;
|
|
12801
13961
|
trade_forms?: string[];
|
|
13962
|
+
twinfield_code?: string | null;
|
|
13963
|
+
twinfield_last_hash?: string | null;
|
|
13964
|
+
twinfield_sync_error?: string | null;
|
|
13965
|
+
twinfield_synced_at?: string | null;
|
|
12802
13966
|
updated_at?: string;
|
|
12803
13967
|
vat_display?: string | null;
|
|
12804
13968
|
vat_number?: string | null;
|
|
@@ -19781,6 +20945,27 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
19781
20945
|
};
|
|
19782
20946
|
Relationships: [];
|
|
19783
20947
|
};
|
|
20948
|
+
technician_rates: {
|
|
20949
|
+
Row: {
|
|
20950
|
+
created_at: string;
|
|
20951
|
+
hourly_rate_cents: number;
|
|
20952
|
+
updated_at: string;
|
|
20953
|
+
user_id: string;
|
|
20954
|
+
};
|
|
20955
|
+
Insert: {
|
|
20956
|
+
created_at?: string;
|
|
20957
|
+
hourly_rate_cents?: number;
|
|
20958
|
+
updated_at?: string;
|
|
20959
|
+
user_id: string;
|
|
20960
|
+
};
|
|
20961
|
+
Update: {
|
|
20962
|
+
created_at?: string;
|
|
20963
|
+
hourly_rate_cents?: number;
|
|
20964
|
+
updated_at?: string;
|
|
20965
|
+
user_id?: string;
|
|
20966
|
+
};
|
|
20967
|
+
Relationships: [];
|
|
20968
|
+
};
|
|
19784
20969
|
tenants: {
|
|
19785
20970
|
Row: {
|
|
19786
20971
|
created_at: string;
|
|
@@ -20250,6 +21435,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20250
21435
|
country: string | null;
|
|
20251
21436
|
created_at: string;
|
|
20252
21437
|
email: string | null;
|
|
21438
|
+
external_group_key: string | null;
|
|
20253
21439
|
id: string;
|
|
20254
21440
|
last_synced_at: string | null;
|
|
20255
21441
|
name: string;
|
|
@@ -20268,6 +21454,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20268
21454
|
country?: string | null;
|
|
20269
21455
|
created_at?: string;
|
|
20270
21456
|
email?: string | null;
|
|
21457
|
+
external_group_key?: string | null;
|
|
20271
21458
|
id?: string;
|
|
20272
21459
|
last_synced_at?: string | null;
|
|
20273
21460
|
name: string;
|
|
@@ -20286,6 +21473,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20286
21473
|
country?: string | null;
|
|
20287
21474
|
created_at?: string;
|
|
20288
21475
|
email?: string | null;
|
|
21476
|
+
external_group_key?: string | null;
|
|
20289
21477
|
id?: string;
|
|
20290
21478
|
last_synced_at?: string | null;
|
|
20291
21479
|
name?: string;
|
|
@@ -20450,6 +21638,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20450
21638
|
twinfield_invoice_settings: {
|
|
20451
21639
|
Row: {
|
|
20452
21640
|
created_at: string;
|
|
21641
|
+
debtor_gl_account: string;
|
|
21642
|
+
default_credit_invoice_type: string | null;
|
|
20453
21643
|
default_gl_account: string;
|
|
20454
21644
|
default_invoice_type: string;
|
|
20455
21645
|
default_payment_term_days: number;
|
|
@@ -20458,11 +21648,15 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20458
21648
|
invoice_enabled_fo: boolean;
|
|
20459
21649
|
invoice_enabled_ho: boolean;
|
|
20460
21650
|
invoice_enabled_mo: boolean;
|
|
21651
|
+
payment_gl_account: string;
|
|
21652
|
+
payment_journal_code: string;
|
|
20461
21653
|
updated_at: string;
|
|
20462
21654
|
user_id: string;
|
|
20463
21655
|
};
|
|
20464
21656
|
Insert: {
|
|
20465
21657
|
created_at?: string;
|
|
21658
|
+
debtor_gl_account?: string;
|
|
21659
|
+
default_credit_invoice_type?: string | null;
|
|
20466
21660
|
default_gl_account?: string;
|
|
20467
21661
|
default_invoice_type?: string;
|
|
20468
21662
|
default_payment_term_days?: number;
|
|
@@ -20471,11 +21665,15 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20471
21665
|
invoice_enabled_fo?: boolean;
|
|
20472
21666
|
invoice_enabled_ho?: boolean;
|
|
20473
21667
|
invoice_enabled_mo?: boolean;
|
|
21668
|
+
payment_gl_account?: string;
|
|
21669
|
+
payment_journal_code?: string;
|
|
20474
21670
|
updated_at?: string;
|
|
20475
21671
|
user_id: string;
|
|
20476
21672
|
};
|
|
20477
21673
|
Update: {
|
|
20478
21674
|
created_at?: string;
|
|
21675
|
+
debtor_gl_account?: string;
|
|
21676
|
+
default_credit_invoice_type?: string | null;
|
|
20479
21677
|
default_gl_account?: string;
|
|
20480
21678
|
default_invoice_type?: string;
|
|
20481
21679
|
default_payment_term_days?: number;
|
|
@@ -20484,6 +21682,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20484
21682
|
invoice_enabled_fo?: boolean;
|
|
20485
21683
|
invoice_enabled_ho?: boolean;
|
|
20486
21684
|
invoice_enabled_mo?: boolean;
|
|
21685
|
+
payment_gl_account?: string;
|
|
21686
|
+
payment_journal_code?: string;
|
|
20487
21687
|
updated_at?: string;
|
|
20488
21688
|
user_id?: string;
|
|
20489
21689
|
};
|
|
@@ -20704,43 +21904,49 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20704
21904
|
};
|
|
20705
21905
|
twinfield_push_queue: {
|
|
20706
21906
|
Row: {
|
|
21907
|
+
action: string;
|
|
20707
21908
|
attempts: number;
|
|
20708
21909
|
connection_id: string;
|
|
20709
21910
|
created_at: string;
|
|
21911
|
+
customer_id: string | null;
|
|
20710
21912
|
external_id: string | null;
|
|
20711
21913
|
id: string;
|
|
20712
21914
|
idempotency_key: string;
|
|
20713
21915
|
last_error: string | null;
|
|
20714
21916
|
next_attempt_at: string;
|
|
20715
|
-
office_code: string;
|
|
21917
|
+
office_code: string | null;
|
|
20716
21918
|
payload: import("../integrations/supabase/types").Json;
|
|
20717
21919
|
status: string;
|
|
20718
21920
|
updated_at: string;
|
|
20719
21921
|
};
|
|
20720
21922
|
Insert: {
|
|
21923
|
+
action?: string;
|
|
20721
21924
|
attempts?: number;
|
|
20722
21925
|
connection_id: string;
|
|
20723
21926
|
created_at?: string;
|
|
21927
|
+
customer_id?: string | null;
|
|
20724
21928
|
external_id?: string | null;
|
|
20725
21929
|
id?: string;
|
|
20726
21930
|
idempotency_key: string;
|
|
20727
21931
|
last_error?: string | null;
|
|
20728
21932
|
next_attempt_at?: string;
|
|
20729
|
-
office_code
|
|
21933
|
+
office_code?: string | null;
|
|
20730
21934
|
payload: import("../integrations/supabase/types").Json;
|
|
20731
21935
|
status?: string;
|
|
20732
21936
|
updated_at?: string;
|
|
20733
21937
|
};
|
|
20734
21938
|
Update: {
|
|
21939
|
+
action?: string;
|
|
20735
21940
|
attempts?: number;
|
|
20736
21941
|
connection_id?: string;
|
|
20737
21942
|
created_at?: string;
|
|
21943
|
+
customer_id?: string | null;
|
|
20738
21944
|
external_id?: string | null;
|
|
20739
21945
|
id?: string;
|
|
20740
21946
|
idempotency_key?: string;
|
|
20741
21947
|
last_error?: string | null;
|
|
20742
21948
|
next_attempt_at?: string;
|
|
20743
|
-
office_code?: string;
|
|
21949
|
+
office_code?: string | null;
|
|
20744
21950
|
payload?: import("../integrations/supabase/types").Json;
|
|
20745
21951
|
status?: string;
|
|
20746
21952
|
updated_at?: string;
|
|
@@ -20751,6 +21957,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
20751
21957
|
isOneToOne: false;
|
|
20752
21958
|
referencedRelation: "twinfield_connections";
|
|
20753
21959
|
referencedColumns: ["id"];
|
|
21960
|
+
}, {
|
|
21961
|
+
foreignKeyName: "twinfield_push_queue_customer_id_fkey";
|
|
21962
|
+
columns: ["customer_id"];
|
|
21963
|
+
isOneToOne: false;
|
|
21964
|
+
referencedRelation: "customers";
|
|
21965
|
+
referencedColumns: ["id"];
|
|
20754
21966
|
}];
|
|
20755
21967
|
};
|
|
20756
21968
|
twinfield_request_metrics: {
|
|
@@ -21026,6 +22238,246 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21026
22238
|
};
|
|
21027
22239
|
Relationships: [];
|
|
21028
22240
|
};
|
|
22241
|
+
werkbon_package_lines: {
|
|
22242
|
+
Row: {
|
|
22243
|
+
created_at: string;
|
|
22244
|
+
created_by: string | null;
|
|
22245
|
+
id: string;
|
|
22246
|
+
package_id: string;
|
|
22247
|
+
quantity: number;
|
|
22248
|
+
unit_price_cents_snapshot: number;
|
|
22249
|
+
werkbon_id: string;
|
|
22250
|
+
};
|
|
22251
|
+
Insert: {
|
|
22252
|
+
created_at?: string;
|
|
22253
|
+
created_by?: string | null;
|
|
22254
|
+
id?: string;
|
|
22255
|
+
package_id: string;
|
|
22256
|
+
quantity?: number;
|
|
22257
|
+
unit_price_cents_snapshot?: number;
|
|
22258
|
+
werkbon_id: string;
|
|
22259
|
+
};
|
|
22260
|
+
Update: {
|
|
22261
|
+
created_at?: string;
|
|
22262
|
+
created_by?: string | null;
|
|
22263
|
+
id?: string;
|
|
22264
|
+
package_id?: string;
|
|
22265
|
+
quantity?: number;
|
|
22266
|
+
unit_price_cents_snapshot?: number;
|
|
22267
|
+
werkbon_id?: string;
|
|
22268
|
+
};
|
|
22269
|
+
Relationships: [{
|
|
22270
|
+
foreignKeyName: "werkbon_package_lines_package_id_fkey";
|
|
22271
|
+
columns: ["package_id"];
|
|
22272
|
+
isOneToOne: false;
|
|
22273
|
+
referencedRelation: "werkbon_packages";
|
|
22274
|
+
referencedColumns: ["id"];
|
|
22275
|
+
}, {
|
|
22276
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
22277
|
+
columns: ["werkbon_id"];
|
|
22278
|
+
isOneToOne: false;
|
|
22279
|
+
referencedRelation: "werkbonnen";
|
|
22280
|
+
referencedColumns: ["id"];
|
|
22281
|
+
}];
|
|
22282
|
+
};
|
|
22283
|
+
werkbon_packages: {
|
|
22284
|
+
Row: {
|
|
22285
|
+
active: boolean;
|
|
22286
|
+
code: string;
|
|
22287
|
+
created_at: string;
|
|
22288
|
+
default_quantity: number;
|
|
22289
|
+
description: string | null;
|
|
22290
|
+
id: string;
|
|
22291
|
+
name: string;
|
|
22292
|
+
unit_price_cents: number;
|
|
22293
|
+
updated_at: string;
|
|
22294
|
+
};
|
|
22295
|
+
Insert: {
|
|
22296
|
+
active?: boolean;
|
|
22297
|
+
code: string;
|
|
22298
|
+
created_at?: string;
|
|
22299
|
+
default_quantity?: number;
|
|
22300
|
+
description?: string | null;
|
|
22301
|
+
id?: string;
|
|
22302
|
+
name: string;
|
|
22303
|
+
unit_price_cents?: number;
|
|
22304
|
+
updated_at?: string;
|
|
22305
|
+
};
|
|
22306
|
+
Update: {
|
|
22307
|
+
active?: boolean;
|
|
22308
|
+
code?: string;
|
|
22309
|
+
created_at?: string;
|
|
22310
|
+
default_quantity?: number;
|
|
22311
|
+
description?: string | null;
|
|
22312
|
+
id?: string;
|
|
22313
|
+
name?: string;
|
|
22314
|
+
unit_price_cents?: number;
|
|
22315
|
+
updated_at?: string;
|
|
22316
|
+
};
|
|
22317
|
+
Relationships: [];
|
|
22318
|
+
};
|
|
22319
|
+
werkbon_photos: {
|
|
22320
|
+
Row: {
|
|
22321
|
+
created_at: string;
|
|
22322
|
+
id: string;
|
|
22323
|
+
storage_path: string;
|
|
22324
|
+
user_id: string;
|
|
22325
|
+
werkbon_id: string;
|
|
22326
|
+
};
|
|
22327
|
+
Insert: {
|
|
22328
|
+
created_at?: string;
|
|
22329
|
+
id?: string;
|
|
22330
|
+
storage_path: string;
|
|
22331
|
+
user_id: string;
|
|
22332
|
+
werkbon_id: string;
|
|
22333
|
+
};
|
|
22334
|
+
Update: {
|
|
22335
|
+
created_at?: string;
|
|
22336
|
+
id?: string;
|
|
22337
|
+
storage_path?: string;
|
|
22338
|
+
user_id?: string;
|
|
22339
|
+
werkbon_id?: string;
|
|
22340
|
+
};
|
|
22341
|
+
Relationships: [{
|
|
22342
|
+
foreignKeyName: "werkbon_photos_werkbon_id_fkey";
|
|
22343
|
+
columns: ["werkbon_id"];
|
|
22344
|
+
isOneToOne: false;
|
|
22345
|
+
referencedRelation: "werkbonnen";
|
|
22346
|
+
referencedColumns: ["id"];
|
|
22347
|
+
}];
|
|
22348
|
+
};
|
|
22349
|
+
werkbon_time_logs: {
|
|
22350
|
+
Row: {
|
|
22351
|
+
activity: string;
|
|
22352
|
+
created_at: string;
|
|
22353
|
+
ended_at: string | null;
|
|
22354
|
+
id: string;
|
|
22355
|
+
started_at: string;
|
|
22356
|
+
user_id: string;
|
|
22357
|
+
werkbon_id: string;
|
|
22358
|
+
};
|
|
22359
|
+
Insert: {
|
|
22360
|
+
activity: string;
|
|
22361
|
+
created_at?: string;
|
|
22362
|
+
ended_at?: string | null;
|
|
22363
|
+
id?: string;
|
|
22364
|
+
started_at?: string;
|
|
22365
|
+
user_id: string;
|
|
22366
|
+
werkbon_id: string;
|
|
22367
|
+
};
|
|
22368
|
+
Update: {
|
|
22369
|
+
activity?: string;
|
|
22370
|
+
created_at?: string;
|
|
22371
|
+
ended_at?: string | null;
|
|
22372
|
+
id?: string;
|
|
22373
|
+
started_at?: string;
|
|
22374
|
+
user_id?: string;
|
|
22375
|
+
werkbon_id?: string;
|
|
22376
|
+
};
|
|
22377
|
+
Relationships: [{
|
|
22378
|
+
foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
|
|
22379
|
+
columns: ["werkbon_id"];
|
|
22380
|
+
isOneToOne: false;
|
|
22381
|
+
referencedRelation: "werkbonnen";
|
|
22382
|
+
referencedColumns: ["id"];
|
|
22383
|
+
}];
|
|
22384
|
+
};
|
|
22385
|
+
werkbonnen: {
|
|
22386
|
+
Row: {
|
|
22387
|
+
assigned_user_id: string | null;
|
|
22388
|
+
budget_mandate_cents: number;
|
|
22389
|
+
complaint_description: string | null;
|
|
22390
|
+
created_at: string;
|
|
22391
|
+
created_by: string | null;
|
|
22392
|
+
customer_id: string | null;
|
|
22393
|
+
externe_referentie: string | null;
|
|
22394
|
+
first_time_fix: boolean | null;
|
|
22395
|
+
id: string;
|
|
22396
|
+
internal_notes: string | null;
|
|
22397
|
+
parent_werkbon_id: string | null;
|
|
22398
|
+
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
22399
|
+
project_number: string | null;
|
|
22400
|
+
room_number: string | null;
|
|
22401
|
+
scheduled_end_time: string | null;
|
|
22402
|
+
scheduled_start_time: string | null;
|
|
22403
|
+
sequence_number: number;
|
|
22404
|
+
source_pdf_path: string | null;
|
|
22405
|
+
status: string;
|
|
22406
|
+
technician_notes: string | null;
|
|
22407
|
+
technician_notes_raw: string | null;
|
|
22408
|
+
technician_task_description: string | null;
|
|
22409
|
+
updated_at: string;
|
|
22410
|
+
version: number;
|
|
22411
|
+
work_address: string | null;
|
|
22412
|
+
};
|
|
22413
|
+
Insert: {
|
|
22414
|
+
assigned_user_id?: string | null;
|
|
22415
|
+
budget_mandate_cents?: number;
|
|
22416
|
+
complaint_description?: string | null;
|
|
22417
|
+
created_at?: string;
|
|
22418
|
+
created_by?: string | null;
|
|
22419
|
+
customer_id?: string | null;
|
|
22420
|
+
externe_referentie?: string | null;
|
|
22421
|
+
first_time_fix?: boolean | null;
|
|
22422
|
+
id?: string;
|
|
22423
|
+
internal_notes?: string | null;
|
|
22424
|
+
parent_werkbon_id?: string | null;
|
|
22425
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
22426
|
+
project_number?: string | null;
|
|
22427
|
+
room_number?: string | null;
|
|
22428
|
+
scheduled_end_time?: string | null;
|
|
22429
|
+
scheduled_start_time?: string | null;
|
|
22430
|
+
sequence_number: number;
|
|
22431
|
+
source_pdf_path?: string | null;
|
|
22432
|
+
status?: string;
|
|
22433
|
+
technician_notes?: string | null;
|
|
22434
|
+
technician_notes_raw?: string | null;
|
|
22435
|
+
technician_task_description?: string | null;
|
|
22436
|
+
updated_at?: string;
|
|
22437
|
+
version?: number;
|
|
22438
|
+
work_address?: string | null;
|
|
22439
|
+
};
|
|
22440
|
+
Update: {
|
|
22441
|
+
assigned_user_id?: string | null;
|
|
22442
|
+
budget_mandate_cents?: number;
|
|
22443
|
+
complaint_description?: string | null;
|
|
22444
|
+
created_at?: string;
|
|
22445
|
+
created_by?: string | null;
|
|
22446
|
+
customer_id?: string | null;
|
|
22447
|
+
externe_referentie?: string | null;
|
|
22448
|
+
first_time_fix?: boolean | null;
|
|
22449
|
+
id?: string;
|
|
22450
|
+
internal_notes?: string | null;
|
|
22451
|
+
parent_werkbon_id?: string | null;
|
|
22452
|
+
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
22453
|
+
project_number?: string | null;
|
|
22454
|
+
room_number?: string | null;
|
|
22455
|
+
scheduled_end_time?: string | null;
|
|
22456
|
+
scheduled_start_time?: string | null;
|
|
22457
|
+
sequence_number?: number;
|
|
22458
|
+
source_pdf_path?: string | null;
|
|
22459
|
+
status?: string;
|
|
22460
|
+
technician_notes?: string | null;
|
|
22461
|
+
technician_notes_raw?: string | null;
|
|
22462
|
+
technician_task_description?: string | null;
|
|
22463
|
+
updated_at?: string;
|
|
22464
|
+
version?: number;
|
|
22465
|
+
work_address?: string | null;
|
|
22466
|
+
};
|
|
22467
|
+
Relationships: [{
|
|
22468
|
+
foreignKeyName: "werkbonnen_customer_id_fkey";
|
|
22469
|
+
columns: ["customer_id"];
|
|
22470
|
+
isOneToOne: false;
|
|
22471
|
+
referencedRelation: "customers";
|
|
22472
|
+
referencedColumns: ["id"];
|
|
22473
|
+
}, {
|
|
22474
|
+
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
22475
|
+
columns: ["parent_werkbon_id"];
|
|
22476
|
+
isOneToOne: false;
|
|
22477
|
+
referencedRelation: "werkbonnen";
|
|
22478
|
+
referencedColumns: ["id"];
|
|
22479
|
+
}];
|
|
22480
|
+
};
|
|
21029
22481
|
work_order_monteurs: {
|
|
21030
22482
|
Row: {
|
|
21031
22483
|
created_at: string;
|
|
@@ -21196,6 +22648,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21196
22648
|
created_at: string | null;
|
|
21197
22649
|
created_by: string | null;
|
|
21198
22650
|
display_name: string | null;
|
|
22651
|
+
graph_subscription_expires_at: string | null;
|
|
22652
|
+
graph_subscription_id: string | null;
|
|
21199
22653
|
has_access_token: boolean | null;
|
|
21200
22654
|
has_client_id: boolean | null;
|
|
21201
22655
|
has_client_secret: boolean | null;
|
|
@@ -21213,6 +22667,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21213
22667
|
oauth_mode: string | null;
|
|
21214
22668
|
provider: string | null;
|
|
21215
22669
|
purpose_assignments: import("../integrations/supabase/types").Json | null;
|
|
22670
|
+
realtime_mode: string | null;
|
|
21216
22671
|
scopes: string[] | null;
|
|
21217
22672
|
smtp_host: string | null;
|
|
21218
22673
|
smtp_port: number | null;
|
|
@@ -21227,6 +22682,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21227
22682
|
created_at?: string | null;
|
|
21228
22683
|
created_by?: string | null;
|
|
21229
22684
|
display_name?: string | null;
|
|
22685
|
+
graph_subscription_expires_at?: string | null;
|
|
22686
|
+
graph_subscription_id?: string | null;
|
|
21230
22687
|
has_access_token?: never;
|
|
21231
22688
|
has_client_id?: never;
|
|
21232
22689
|
has_client_secret?: never;
|
|
@@ -21244,6 +22701,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21244
22701
|
oauth_mode?: string | null;
|
|
21245
22702
|
provider?: string | null;
|
|
21246
22703
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
22704
|
+
realtime_mode?: string | null;
|
|
21247
22705
|
scopes?: string[] | null;
|
|
21248
22706
|
smtp_host?: string | null;
|
|
21249
22707
|
smtp_port?: number | null;
|
|
@@ -21258,6 +22716,8 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21258
22716
|
created_at?: string | null;
|
|
21259
22717
|
created_by?: string | null;
|
|
21260
22718
|
display_name?: string | null;
|
|
22719
|
+
graph_subscription_expires_at?: string | null;
|
|
22720
|
+
graph_subscription_id?: string | null;
|
|
21261
22721
|
has_access_token?: never;
|
|
21262
22722
|
has_client_id?: never;
|
|
21263
22723
|
has_client_secret?: never;
|
|
@@ -21275,6 +22735,7 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21275
22735
|
oauth_mode?: string | null;
|
|
21276
22736
|
provider?: string | null;
|
|
21277
22737
|
purpose_assignments?: import("../integrations/supabase/types").Json | null;
|
|
22738
|
+
realtime_mode?: string | null;
|
|
21278
22739
|
scopes?: string[] | null;
|
|
21279
22740
|
smtp_host?: string | null;
|
|
21280
22741
|
smtp_port?: number | null;
|
|
@@ -21818,6 +23279,33 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21818
23279
|
};
|
|
21819
23280
|
Returns: import("../integrations/supabase/types").Json;
|
|
21820
23281
|
};
|
|
23282
|
+
claim_twinfield_push_batch: {
|
|
23283
|
+
Args: {
|
|
23284
|
+
_limit?: number;
|
|
23285
|
+
};
|
|
23286
|
+
Returns: {
|
|
23287
|
+
action: string;
|
|
23288
|
+
attempts: number;
|
|
23289
|
+
connection_id: string;
|
|
23290
|
+
created_at: string;
|
|
23291
|
+
customer_id: string | null;
|
|
23292
|
+
external_id: string | null;
|
|
23293
|
+
id: string;
|
|
23294
|
+
idempotency_key: string;
|
|
23295
|
+
last_error: string | null;
|
|
23296
|
+
next_attempt_at: string;
|
|
23297
|
+
office_code: string | null;
|
|
23298
|
+
payload: import("../integrations/supabase/types").Json;
|
|
23299
|
+
status: string;
|
|
23300
|
+
updated_at: string;
|
|
23301
|
+
}[];
|
|
23302
|
+
SetofOptions: {
|
|
23303
|
+
from: "*";
|
|
23304
|
+
to: "twinfield_push_queue";
|
|
23305
|
+
isOneToOne: false;
|
|
23306
|
+
isSetofReturn: true;
|
|
23307
|
+
};
|
|
23308
|
+
};
|
|
21821
23309
|
cleanup_old_bookings: {
|
|
21822
23310
|
Args: never;
|
|
21823
23311
|
Returns: undefined;
|
|
@@ -21914,6 +23402,16 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
21914
23402
|
status: string;
|
|
21915
23403
|
}[];
|
|
21916
23404
|
};
|
|
23405
|
+
email_auth_upsert_connection: {
|
|
23406
|
+
Args: {
|
|
23407
|
+
_account_email: string;
|
|
23408
|
+
_created_by: string;
|
|
23409
|
+
_is_active: boolean;
|
|
23410
|
+
_provider: string;
|
|
23411
|
+
_status: string;
|
|
23412
|
+
};
|
|
23413
|
+
Returns: string;
|
|
23414
|
+
};
|
|
21917
23415
|
enqueue_cart_replan_if_unlocked: {
|
|
21918
23416
|
Args: {
|
|
21919
23417
|
p_order_id: string;
|
|
@@ -22186,6 +23684,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22186
23684
|
};
|
|
22187
23685
|
Returns: boolean;
|
|
22188
23686
|
};
|
|
23687
|
+
has_twinfield_link: {
|
|
23688
|
+
Args: never;
|
|
23689
|
+
Returns: boolean;
|
|
23690
|
+
};
|
|
22189
23691
|
is_authenticated: {
|
|
22190
23692
|
Args: never;
|
|
22191
23693
|
Returns: boolean;
|
|
@@ -22241,6 +23743,10 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22241
23743
|
};
|
|
22242
23744
|
Returns: string;
|
|
22243
23745
|
};
|
|
23746
|
+
next_twinfield_code: {
|
|
23747
|
+
Args: never;
|
|
23748
|
+
Returns: string;
|
|
23749
|
+
};
|
|
22244
23750
|
next_work_order_number: {
|
|
22245
23751
|
Args: {
|
|
22246
23752
|
p_parent_work_order_id?: string;
|
|
@@ -22355,6 +23861,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22355
23861
|
};
|
|
22356
23862
|
Returns: number;
|
|
22357
23863
|
};
|
|
23864
|
+
reorder_customer_price_groups: {
|
|
23865
|
+
Args: {
|
|
23866
|
+
_ids: string[];
|
|
23867
|
+
};
|
|
23868
|
+
Returns: undefined;
|
|
23869
|
+
};
|
|
22358
23870
|
reset_floriday_sync_cursor: {
|
|
22359
23871
|
Args: {
|
|
22360
23872
|
p_connection_id: string;
|
|
@@ -22368,6 +23880,12 @@ export declare const getEffectivePrice: import("@tanstack/start-client-core").Op
|
|
|
22368
23880
|
};
|
|
22369
23881
|
Returns: string;
|
|
22370
23882
|
};
|
|
23883
|
+
retry_twinfield_push: {
|
|
23884
|
+
Args: {
|
|
23885
|
+
_customer_id: string;
|
|
23886
|
+
};
|
|
23887
|
+
Returns: number;
|
|
23888
|
+
};
|
|
22371
23889
|
schedule_floriday_additional_services_sync: {
|
|
22372
23890
|
Args: {
|
|
22373
23891
|
p_apikey: string;
|