@flowselections/floriday-afhandeling-module 1.0.19 → 1.0.20
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/integrations/supabase/auth-middleware.d.ts +1581 -310
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1581 -310
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.js +7 -26
- package/dist-lib/integrations/supabase/client.server.d.ts +1581 -310
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1620 -310
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +11 -9
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +4141 -1599
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.d.ts +7829 -1474
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartAssignments.functions.d.ts +7829 -1474
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +16184 -3474
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +1581 -310
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +6158 -1074
- package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +1581 -310
- package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +4141 -1599
- package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +12842 -2674
- package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -1
- package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +6158 -1074
- package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -1
- package/package.json +158 -154
|
@@ -241,12 +241,98 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
241
241
|
};
|
|
242
242
|
Relationships: [];
|
|
243
243
|
};
|
|
244
|
+
ai_admin_credentials: {
|
|
245
|
+
Row: {
|
|
246
|
+
active: boolean;
|
|
247
|
+
admin_key: string;
|
|
248
|
+
created_at: string;
|
|
249
|
+
id: string;
|
|
250
|
+
label: string;
|
|
251
|
+
provider_id: string;
|
|
252
|
+
updated_at: string;
|
|
253
|
+
};
|
|
254
|
+
Insert: {
|
|
255
|
+
active?: boolean;
|
|
256
|
+
admin_key: string;
|
|
257
|
+
created_at?: string;
|
|
258
|
+
id?: string;
|
|
259
|
+
label: string;
|
|
260
|
+
provider_id: string;
|
|
261
|
+
updated_at?: string;
|
|
262
|
+
};
|
|
263
|
+
Update: {
|
|
264
|
+
active?: boolean;
|
|
265
|
+
admin_key?: string;
|
|
266
|
+
created_at?: string;
|
|
267
|
+
id?: string;
|
|
268
|
+
label?: string;
|
|
269
|
+
provider_id?: string;
|
|
270
|
+
updated_at?: string;
|
|
271
|
+
};
|
|
272
|
+
Relationships: [{
|
|
273
|
+
foreignKeyName: "ai_admin_credentials_provider_id_fkey";
|
|
274
|
+
columns: ["provider_id"];
|
|
275
|
+
isOneToOne: true;
|
|
276
|
+
referencedRelation: "ai_providers";
|
|
277
|
+
referencedColumns: ["id"];
|
|
278
|
+
}];
|
|
279
|
+
};
|
|
280
|
+
ai_call_log: {
|
|
281
|
+
Row: {
|
|
282
|
+
consumer_module_id: string;
|
|
283
|
+
cost_usd: number | null;
|
|
284
|
+
created_at: string;
|
|
285
|
+
created_by: string | null;
|
|
286
|
+
duration_ms: number | null;
|
|
287
|
+
error_code: string | null;
|
|
288
|
+
error_message: string | null;
|
|
289
|
+
id: string;
|
|
290
|
+
input_tokens: number;
|
|
291
|
+
model_slug: string | null;
|
|
292
|
+
output_tokens: number;
|
|
293
|
+
provider_slug: string | null;
|
|
294
|
+
status: string;
|
|
295
|
+
total_tokens: number;
|
|
296
|
+
};
|
|
297
|
+
Insert: {
|
|
298
|
+
consumer_module_id: string;
|
|
299
|
+
cost_usd?: number | null;
|
|
300
|
+
created_at?: string;
|
|
301
|
+
created_by?: string | null;
|
|
302
|
+
duration_ms?: number | null;
|
|
303
|
+
error_code?: string | null;
|
|
304
|
+
error_message?: string | null;
|
|
305
|
+
id?: string;
|
|
306
|
+
input_tokens?: number;
|
|
307
|
+
model_slug?: string | null;
|
|
308
|
+
output_tokens?: number;
|
|
309
|
+
provider_slug?: string | null;
|
|
310
|
+
status: string;
|
|
311
|
+
total_tokens?: number;
|
|
312
|
+
};
|
|
313
|
+
Update: {
|
|
314
|
+
consumer_module_id?: string;
|
|
315
|
+
cost_usd?: number | null;
|
|
316
|
+
created_at?: string;
|
|
317
|
+
created_by?: string | null;
|
|
318
|
+
duration_ms?: number | null;
|
|
319
|
+
error_code?: string | null;
|
|
320
|
+
error_message?: string | null;
|
|
321
|
+
id?: string;
|
|
322
|
+
input_tokens?: number;
|
|
323
|
+
model_slug?: string | null;
|
|
324
|
+
output_tokens?: number;
|
|
325
|
+
provider_slug?: string | null;
|
|
326
|
+
status?: string;
|
|
327
|
+
total_tokens?: number;
|
|
328
|
+
};
|
|
329
|
+
Relationships: [];
|
|
330
|
+
};
|
|
244
331
|
ai_credentials: {
|
|
245
332
|
Row: {
|
|
246
333
|
active: boolean;
|
|
247
334
|
api_key: string;
|
|
248
335
|
created_at: string;
|
|
249
|
-
created_by: string | null;
|
|
250
336
|
id: string;
|
|
251
337
|
label: string;
|
|
252
338
|
provider_id: string;
|
|
@@ -256,7 +342,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
256
342
|
active?: boolean;
|
|
257
343
|
api_key: string;
|
|
258
344
|
created_at?: string;
|
|
259
|
-
created_by?: string | null;
|
|
260
345
|
id?: string;
|
|
261
346
|
label: string;
|
|
262
347
|
provider_id: string;
|
|
@@ -266,7 +351,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
266
351
|
active?: boolean;
|
|
267
352
|
api_key?: string;
|
|
268
353
|
created_at?: string;
|
|
269
|
-
created_by?: string | null;
|
|
270
354
|
id?: string;
|
|
271
355
|
label?: string;
|
|
272
356
|
provider_id?: string;
|
|
@@ -280,6 +364,75 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
280
364
|
referencedColumns: ["id"];
|
|
281
365
|
}];
|
|
282
366
|
};
|
|
367
|
+
ai_goals: {
|
|
368
|
+
Row: {
|
|
369
|
+
active: boolean;
|
|
370
|
+
created_at: string;
|
|
371
|
+
description: string | null;
|
|
372
|
+
key: string;
|
|
373
|
+
label: string;
|
|
374
|
+
sort_order: number;
|
|
375
|
+
updated_at: string;
|
|
376
|
+
};
|
|
377
|
+
Insert: {
|
|
378
|
+
active?: boolean;
|
|
379
|
+
created_at?: string;
|
|
380
|
+
description?: string | null;
|
|
381
|
+
key: string;
|
|
382
|
+
label: string;
|
|
383
|
+
sort_order?: number;
|
|
384
|
+
updated_at?: string;
|
|
385
|
+
};
|
|
386
|
+
Update: {
|
|
387
|
+
active?: boolean;
|
|
388
|
+
created_at?: string;
|
|
389
|
+
description?: string | null;
|
|
390
|
+
key?: string;
|
|
391
|
+
label?: string;
|
|
392
|
+
sort_order?: number;
|
|
393
|
+
updated_at?: string;
|
|
394
|
+
};
|
|
395
|
+
Relationships: [];
|
|
396
|
+
};
|
|
397
|
+
ai_model_pricing: {
|
|
398
|
+
Row: {
|
|
399
|
+
created_at: string;
|
|
400
|
+
currency: string;
|
|
401
|
+
fetched_at: string;
|
|
402
|
+
id: string;
|
|
403
|
+
input_per_mtok: number | null;
|
|
404
|
+
model_slug: string;
|
|
405
|
+
output_per_mtok: number | null;
|
|
406
|
+
provider_slug: string;
|
|
407
|
+
source: string;
|
|
408
|
+
updated_at: string;
|
|
409
|
+
};
|
|
410
|
+
Insert: {
|
|
411
|
+
created_at?: string;
|
|
412
|
+
currency?: string;
|
|
413
|
+
fetched_at?: string;
|
|
414
|
+
id?: string;
|
|
415
|
+
input_per_mtok?: number | null;
|
|
416
|
+
model_slug: string;
|
|
417
|
+
output_per_mtok?: number | null;
|
|
418
|
+
provider_slug: string;
|
|
419
|
+
source?: string;
|
|
420
|
+
updated_at?: string;
|
|
421
|
+
};
|
|
422
|
+
Update: {
|
|
423
|
+
created_at?: string;
|
|
424
|
+
currency?: string;
|
|
425
|
+
fetched_at?: string;
|
|
426
|
+
id?: string;
|
|
427
|
+
input_per_mtok?: number | null;
|
|
428
|
+
model_slug?: string;
|
|
429
|
+
output_per_mtok?: number | null;
|
|
430
|
+
provider_slug?: string;
|
|
431
|
+
source?: string;
|
|
432
|
+
updated_at?: string;
|
|
433
|
+
};
|
|
434
|
+
Relationships: [];
|
|
435
|
+
};
|
|
283
436
|
ai_models: {
|
|
284
437
|
Row: {
|
|
285
438
|
active: boolean;
|
|
@@ -1225,6 +1378,69 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1225
1378
|
};
|
|
1226
1379
|
Relationships: [];
|
|
1227
1380
|
};
|
|
1381
|
+
catalog_articles_cache: {
|
|
1382
|
+
Row: {
|
|
1383
|
+
created_at: string;
|
|
1384
|
+
default_price: number;
|
|
1385
|
+
default_vat_rate_ref: string | null;
|
|
1386
|
+
external_ref: string;
|
|
1387
|
+
id: string;
|
|
1388
|
+
name: string;
|
|
1389
|
+
updated_at: string;
|
|
1390
|
+
user_id: string;
|
|
1391
|
+
};
|
|
1392
|
+
Insert: {
|
|
1393
|
+
created_at?: string;
|
|
1394
|
+
default_price?: number;
|
|
1395
|
+
default_vat_rate_ref?: string | null;
|
|
1396
|
+
external_ref: string;
|
|
1397
|
+
id?: string;
|
|
1398
|
+
name: string;
|
|
1399
|
+
updated_at?: string;
|
|
1400
|
+
user_id: string;
|
|
1401
|
+
};
|
|
1402
|
+
Update: {
|
|
1403
|
+
created_at?: string;
|
|
1404
|
+
default_price?: number;
|
|
1405
|
+
default_vat_rate_ref?: string | null;
|
|
1406
|
+
external_ref?: string;
|
|
1407
|
+
id?: string;
|
|
1408
|
+
name?: string;
|
|
1409
|
+
updated_at?: string;
|
|
1410
|
+
user_id?: string;
|
|
1411
|
+
};
|
|
1412
|
+
Relationships: [];
|
|
1413
|
+
};
|
|
1414
|
+
catalog_vat_rates_cache: {
|
|
1415
|
+
Row: {
|
|
1416
|
+
created_at: string;
|
|
1417
|
+
external_ref: string;
|
|
1418
|
+
id: string;
|
|
1419
|
+
label: string;
|
|
1420
|
+
percentage: number;
|
|
1421
|
+
updated_at: string;
|
|
1422
|
+
user_id: string;
|
|
1423
|
+
};
|
|
1424
|
+
Insert: {
|
|
1425
|
+
created_at?: string;
|
|
1426
|
+
external_ref: string;
|
|
1427
|
+
id?: string;
|
|
1428
|
+
label: string;
|
|
1429
|
+
percentage?: number;
|
|
1430
|
+
updated_at?: string;
|
|
1431
|
+
user_id: string;
|
|
1432
|
+
};
|
|
1433
|
+
Update: {
|
|
1434
|
+
created_at?: string;
|
|
1435
|
+
external_ref?: string;
|
|
1436
|
+
id?: string;
|
|
1437
|
+
label?: string;
|
|
1438
|
+
percentage?: number;
|
|
1439
|
+
updated_at?: string;
|
|
1440
|
+
user_id?: string;
|
|
1441
|
+
};
|
|
1442
|
+
Relationships: [];
|
|
1443
|
+
};
|
|
1228
1444
|
collections: {
|
|
1229
1445
|
Row: {
|
|
1230
1446
|
created_at: string;
|
|
@@ -1504,6 +1720,105 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1504
1720
|
};
|
|
1505
1721
|
Relationships: [];
|
|
1506
1722
|
};
|
|
1723
|
+
customer_price_group_members: {
|
|
1724
|
+
Row: {
|
|
1725
|
+
created_at: string;
|
|
1726
|
+
customer_key: string;
|
|
1727
|
+
id: string;
|
|
1728
|
+
owner_id: string;
|
|
1729
|
+
price_group_id: string;
|
|
1730
|
+
};
|
|
1731
|
+
Insert: {
|
|
1732
|
+
created_at?: string;
|
|
1733
|
+
customer_key: string;
|
|
1734
|
+
id?: string;
|
|
1735
|
+
owner_id?: string;
|
|
1736
|
+
price_group_id: string;
|
|
1737
|
+
};
|
|
1738
|
+
Update: {
|
|
1739
|
+
created_at?: string;
|
|
1740
|
+
customer_key?: string;
|
|
1741
|
+
id?: string;
|
|
1742
|
+
owner_id?: string;
|
|
1743
|
+
price_group_id?: string;
|
|
1744
|
+
};
|
|
1745
|
+
Relationships: [{
|
|
1746
|
+
foreignKeyName: "customer_price_group_members_price_group_id_fkey";
|
|
1747
|
+
columns: ["price_group_id"];
|
|
1748
|
+
isOneToOne: false;
|
|
1749
|
+
referencedRelation: "customer_price_groups";
|
|
1750
|
+
referencedColumns: ["id"];
|
|
1751
|
+
}];
|
|
1752
|
+
};
|
|
1753
|
+
customer_price_groups: {
|
|
1754
|
+
Row: {
|
|
1755
|
+
calc_type: string | null;
|
|
1756
|
+
calc_value: number | null;
|
|
1757
|
+
calc_value_type: string | null;
|
|
1758
|
+
created_at: string;
|
|
1759
|
+
currency: string;
|
|
1760
|
+
distribute_over: string | null;
|
|
1761
|
+
group_type: string;
|
|
1762
|
+
handling_fee: number | null;
|
|
1763
|
+
id: string;
|
|
1764
|
+
include_stickers: boolean;
|
|
1765
|
+
is_active: boolean;
|
|
1766
|
+
name: string;
|
|
1767
|
+
owner_id: string;
|
|
1768
|
+
price_scope: string;
|
|
1769
|
+
pricing_mode: string;
|
|
1770
|
+
rounding: string;
|
|
1771
|
+
rounding_step: number;
|
|
1772
|
+
sort_order: number;
|
|
1773
|
+
unit: string;
|
|
1774
|
+
updated_at: string;
|
|
1775
|
+
};
|
|
1776
|
+
Insert: {
|
|
1777
|
+
calc_type?: string | null;
|
|
1778
|
+
calc_value?: number | null;
|
|
1779
|
+
calc_value_type?: string | null;
|
|
1780
|
+
created_at?: string;
|
|
1781
|
+
currency?: string;
|
|
1782
|
+
distribute_over?: string | null;
|
|
1783
|
+
group_type?: string;
|
|
1784
|
+
handling_fee?: number | null;
|
|
1785
|
+
id?: string;
|
|
1786
|
+
include_stickers?: boolean;
|
|
1787
|
+
is_active?: boolean;
|
|
1788
|
+
name: string;
|
|
1789
|
+
owner_id?: string;
|
|
1790
|
+
price_scope?: string;
|
|
1791
|
+
pricing_mode?: string;
|
|
1792
|
+
rounding?: string;
|
|
1793
|
+
rounding_step?: number;
|
|
1794
|
+
sort_order?: number;
|
|
1795
|
+
unit?: string;
|
|
1796
|
+
updated_at?: string;
|
|
1797
|
+
};
|
|
1798
|
+
Update: {
|
|
1799
|
+
calc_type?: string | null;
|
|
1800
|
+
calc_value?: number | null;
|
|
1801
|
+
calc_value_type?: string | null;
|
|
1802
|
+
created_at?: string;
|
|
1803
|
+
currency?: string;
|
|
1804
|
+
distribute_over?: string | null;
|
|
1805
|
+
group_type?: string;
|
|
1806
|
+
handling_fee?: number | null;
|
|
1807
|
+
id?: string;
|
|
1808
|
+
include_stickers?: boolean;
|
|
1809
|
+
is_active?: boolean;
|
|
1810
|
+
name?: string;
|
|
1811
|
+
owner_id?: string;
|
|
1812
|
+
price_scope?: string;
|
|
1813
|
+
pricing_mode?: string;
|
|
1814
|
+
rounding?: string;
|
|
1815
|
+
rounding_step?: number;
|
|
1816
|
+
sort_order?: number;
|
|
1817
|
+
unit?: string;
|
|
1818
|
+
updated_at?: string;
|
|
1819
|
+
};
|
|
1820
|
+
Relationships: [];
|
|
1821
|
+
};
|
|
1507
1822
|
customer_selected_assortment: {
|
|
1508
1823
|
Row: {
|
|
1509
1824
|
article_number: string | null;
|
|
@@ -1657,6 +1972,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1657
1972
|
sync_error: string | null;
|
|
1658
1973
|
sync_status: string;
|
|
1659
1974
|
trade_forms: string[];
|
|
1975
|
+
twinfield_code: string | null;
|
|
1976
|
+
twinfield_last_hash: string | null;
|
|
1977
|
+
twinfield_sync_error: string | null;
|
|
1978
|
+
twinfield_synced_at: string | null;
|
|
1660
1979
|
updated_at: string;
|
|
1661
1980
|
vat_display: string | null;
|
|
1662
1981
|
vat_number: string | null;
|
|
@@ -1724,6 +2043,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1724
2043
|
sync_error?: string | null;
|
|
1725
2044
|
sync_status?: string;
|
|
1726
2045
|
trade_forms?: string[];
|
|
2046
|
+
twinfield_code?: string | null;
|
|
2047
|
+
twinfield_last_hash?: string | null;
|
|
2048
|
+
twinfield_sync_error?: string | null;
|
|
2049
|
+
twinfield_synced_at?: string | null;
|
|
1727
2050
|
updated_at?: string;
|
|
1728
2051
|
vat_display?: string | null;
|
|
1729
2052
|
vat_number?: string | null;
|
|
@@ -1791,6 +2114,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1791
2114
|
sync_error?: string | null;
|
|
1792
2115
|
sync_status?: string;
|
|
1793
2116
|
trade_forms?: string[];
|
|
2117
|
+
twinfield_code?: string | null;
|
|
2118
|
+
twinfield_last_hash?: string | null;
|
|
2119
|
+
twinfield_sync_error?: string | null;
|
|
2120
|
+
twinfield_synced_at?: string | null;
|
|
1794
2121
|
updated_at?: string;
|
|
1795
2122
|
vat_display?: string | null;
|
|
1796
2123
|
vat_number?: string | null;
|
|
@@ -3604,48 +3931,147 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
3604
3931
|
referencedColumns: ["id"];
|
|
3605
3932
|
}];
|
|
3606
3933
|
};
|
|
3607
|
-
|
|
3934
|
+
floriday_agreement_calloffs_cache: {
|
|
3608
3935
|
Row: {
|
|
3609
|
-
|
|
3610
|
-
clock_supply_id: string;
|
|
3936
|
+
agreement_id: string | null;
|
|
3611
3937
|
connection_id: string;
|
|
3612
|
-
|
|
3938
|
+
data: import("./types").Json;
|
|
3939
|
+
delivery_date: string | null;
|
|
3613
3940
|
fetched_at: string;
|
|
3941
|
+
floriday_id: string;
|
|
3614
3942
|
id: string;
|
|
3615
|
-
|
|
3943
|
+
is_deleted: boolean;
|
|
3944
|
+
sequence_number: number;
|
|
3945
|
+
status: string | null;
|
|
3946
|
+
updated_at: string;
|
|
3616
3947
|
};
|
|
3617
3948
|
Insert: {
|
|
3618
|
-
|
|
3619
|
-
clock_supply_id: string;
|
|
3949
|
+
agreement_id?: string | null;
|
|
3620
3950
|
connection_id: string;
|
|
3621
|
-
|
|
3951
|
+
data?: import("./types").Json;
|
|
3952
|
+
delivery_date?: string | null;
|
|
3622
3953
|
fetched_at?: string;
|
|
3954
|
+
floriday_id: string;
|
|
3623
3955
|
id?: string;
|
|
3624
|
-
|
|
3956
|
+
is_deleted?: boolean;
|
|
3957
|
+
sequence_number?: number;
|
|
3958
|
+
status?: string | null;
|
|
3959
|
+
updated_at?: string;
|
|
3625
3960
|
};
|
|
3626
3961
|
Update: {
|
|
3627
|
-
|
|
3628
|
-
clock_supply_id?: string;
|
|
3962
|
+
agreement_id?: string | null;
|
|
3629
3963
|
connection_id?: string;
|
|
3630
|
-
|
|
3964
|
+
data?: import("./types").Json;
|
|
3965
|
+
delivery_date?: string | null;
|
|
3631
3966
|
fetched_at?: string;
|
|
3967
|
+
floriday_id?: string;
|
|
3632
3968
|
id?: string;
|
|
3633
|
-
|
|
3969
|
+
is_deleted?: boolean;
|
|
3970
|
+
sequence_number?: number;
|
|
3971
|
+
status?: string | null;
|
|
3972
|
+
updated_at?: string;
|
|
3634
3973
|
};
|
|
3635
3974
|
Relationships: [{
|
|
3636
|
-
foreignKeyName: "
|
|
3975
|
+
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
3637
3976
|
columns: ["connection_id"];
|
|
3638
3977
|
isOneToOne: false;
|
|
3639
3978
|
referencedRelation: "floriday_connections";
|
|
3640
3979
|
referencedColumns: ["id"];
|
|
3641
3980
|
}];
|
|
3642
3981
|
};
|
|
3643
|
-
|
|
3982
|
+
floriday_agreements_cache: {
|
|
3644
3983
|
Row: {
|
|
3645
|
-
|
|
3984
|
+
buyer_organization_id: string | null;
|
|
3646
3985
|
connection_id: string;
|
|
3647
|
-
|
|
3648
|
-
|
|
3986
|
+
data: import("./types").Json;
|
|
3987
|
+
fetched_at: string;
|
|
3988
|
+
floriday_id: string;
|
|
3989
|
+
id: string;
|
|
3990
|
+
is_deleted: boolean;
|
|
3991
|
+
sequence_number: number;
|
|
3992
|
+
status: string | null;
|
|
3993
|
+
updated_at: string;
|
|
3994
|
+
valid_from: string | null;
|
|
3995
|
+
valid_until: string | null;
|
|
3996
|
+
};
|
|
3997
|
+
Insert: {
|
|
3998
|
+
buyer_organization_id?: string | null;
|
|
3999
|
+
connection_id: string;
|
|
4000
|
+
data?: import("./types").Json;
|
|
4001
|
+
fetched_at?: string;
|
|
4002
|
+
floriday_id: string;
|
|
4003
|
+
id?: string;
|
|
4004
|
+
is_deleted?: boolean;
|
|
4005
|
+
sequence_number?: number;
|
|
4006
|
+
status?: string | null;
|
|
4007
|
+
updated_at?: string;
|
|
4008
|
+
valid_from?: string | null;
|
|
4009
|
+
valid_until?: string | null;
|
|
4010
|
+
};
|
|
4011
|
+
Update: {
|
|
4012
|
+
buyer_organization_id?: string | null;
|
|
4013
|
+
connection_id?: string;
|
|
4014
|
+
data?: import("./types").Json;
|
|
4015
|
+
fetched_at?: string;
|
|
4016
|
+
floriday_id?: string;
|
|
4017
|
+
id?: string;
|
|
4018
|
+
is_deleted?: boolean;
|
|
4019
|
+
sequence_number?: number;
|
|
4020
|
+
status?: string | null;
|
|
4021
|
+
updated_at?: string;
|
|
4022
|
+
valid_from?: string | null;
|
|
4023
|
+
valid_until?: string | null;
|
|
4024
|
+
};
|
|
4025
|
+
Relationships: [{
|
|
4026
|
+
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
4027
|
+
columns: ["connection_id"];
|
|
4028
|
+
isOneToOne: false;
|
|
4029
|
+
referencedRelation: "floriday_connections";
|
|
4030
|
+
referencedColumns: ["id"];
|
|
4031
|
+
}];
|
|
4032
|
+
};
|
|
4033
|
+
floriday_auction_letters_cache: {
|
|
4034
|
+
Row: {
|
|
4035
|
+
auction_letter_code: string;
|
|
4036
|
+
clock_supply_id: string;
|
|
4037
|
+
connection_id: string;
|
|
4038
|
+
content_type: string;
|
|
4039
|
+
fetched_at: string;
|
|
4040
|
+
id: string;
|
|
4041
|
+
storage_path: string;
|
|
4042
|
+
};
|
|
4043
|
+
Insert: {
|
|
4044
|
+
auction_letter_code: string;
|
|
4045
|
+
clock_supply_id: string;
|
|
4046
|
+
connection_id: string;
|
|
4047
|
+
content_type?: string;
|
|
4048
|
+
fetched_at?: string;
|
|
4049
|
+
id?: string;
|
|
4050
|
+
storage_path: string;
|
|
4051
|
+
};
|
|
4052
|
+
Update: {
|
|
4053
|
+
auction_letter_code?: string;
|
|
4054
|
+
clock_supply_id?: string;
|
|
4055
|
+
connection_id?: string;
|
|
4056
|
+
content_type?: string;
|
|
4057
|
+
fetched_at?: string;
|
|
4058
|
+
id?: string;
|
|
4059
|
+
storage_path?: string;
|
|
4060
|
+
};
|
|
4061
|
+
Relationships: [{
|
|
4062
|
+
foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
|
|
4063
|
+
columns: ["connection_id"];
|
|
4064
|
+
isOneToOne: false;
|
|
4065
|
+
referencedRelation: "floriday_connections";
|
|
4066
|
+
referencedColumns: ["id"];
|
|
4067
|
+
}];
|
|
4068
|
+
};
|
|
4069
|
+
floriday_auto_fulfillment_log: {
|
|
4070
|
+
Row: {
|
|
4071
|
+
attempts: number;
|
|
4072
|
+
connection_id: string;
|
|
4073
|
+
created_at: string;
|
|
4074
|
+
error: string | null;
|
|
3649
4075
|
fulfillment_order_id: string | null;
|
|
3650
4076
|
id: string;
|
|
3651
4077
|
last_attempt_at: string | null;
|
|
@@ -4102,27 +4528,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
4102
4528
|
referencedColumns: ["id"];
|
|
4103
4529
|
}];
|
|
4104
4530
|
};
|
|
4105
|
-
floriday_continuous_stock_cache: {
|
|
4106
|
-
Row: {
|
|
4107
|
-
connection_id: string;
|
|
4108
|
-
fetched_at: string;
|
|
4109
|
-
number_of_pieces: number;
|
|
4110
|
-
trade_item_id: string;
|
|
4111
|
-
};
|
|
4112
|
-
Insert: {
|
|
4113
|
-
connection_id: string;
|
|
4114
|
-
fetched_at?: string;
|
|
4115
|
-
number_of_pieces?: number;
|
|
4116
|
-
trade_item_id: string;
|
|
4117
|
-
};
|
|
4118
|
-
Update: {
|
|
4119
|
-
connection_id?: string;
|
|
4120
|
-
fetched_at?: string;
|
|
4121
|
-
number_of_pieces?: number;
|
|
4122
|
-
trade_item_id?: string;
|
|
4123
|
-
};
|
|
4124
|
-
Relationships: [];
|
|
4125
|
-
};
|
|
4126
4531
|
floriday_continuous_stock_queue: {
|
|
4127
4532
|
Row: {
|
|
4128
4533
|
attempts: number;
|
|
@@ -4898,8 +5303,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
4898
5303
|
Row: {
|
|
4899
5304
|
buyer_organization_id: string | null;
|
|
4900
5305
|
connection_id: string;
|
|
4901
|
-
controlled_at: string | null;
|
|
4902
|
-
controlled_by: string | null;
|
|
4903
5306
|
created_at: string;
|
|
4904
5307
|
data: import("./types").Json;
|
|
4905
5308
|
floriday_id: string;
|
|
@@ -4911,8 +5314,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
4911
5314
|
Insert: {
|
|
4912
5315
|
buyer_organization_id?: string | null;
|
|
4913
5316
|
connection_id: string;
|
|
4914
|
-
controlled_at?: string | null;
|
|
4915
|
-
controlled_by?: string | null;
|
|
4916
5317
|
created_at?: string;
|
|
4917
5318
|
data: import("./types").Json;
|
|
4918
5319
|
floriday_id: string;
|
|
@@ -4924,8 +5325,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
4924
5325
|
Update: {
|
|
4925
5326
|
buyer_organization_id?: string | null;
|
|
4926
5327
|
connection_id?: string;
|
|
4927
|
-
controlled_at?: string | null;
|
|
4928
|
-
controlled_by?: string | null;
|
|
4929
5328
|
created_at?: string;
|
|
4930
5329
|
data?: import("./types").Json;
|
|
4931
5330
|
floriday_id?: string;
|
|
@@ -5107,45 +5506,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
5107
5506
|
referencedColumns: ["id"];
|
|
5108
5507
|
}];
|
|
5109
5508
|
};
|
|
5110
|
-
floriday_trade_settings_customers_cache: {
|
|
5111
|
-
Row: {
|
|
5112
|
-
connection_id: string;
|
|
5113
|
-
data: import("./types").Json;
|
|
5114
|
-
fetched_at: string;
|
|
5115
|
-
floriday_id: string;
|
|
5116
|
-
id: string;
|
|
5117
|
-
is_deleted: boolean;
|
|
5118
|
-
sequence_number: number;
|
|
5119
|
-
updated_at: string;
|
|
5120
|
-
};
|
|
5121
|
-
Insert: {
|
|
5122
|
-
connection_id: string;
|
|
5123
|
-
data: import("./types").Json;
|
|
5124
|
-
fetched_at?: string;
|
|
5125
|
-
floriday_id: string;
|
|
5126
|
-
id?: string;
|
|
5127
|
-
is_deleted?: boolean;
|
|
5128
|
-
sequence_number?: number;
|
|
5129
|
-
updated_at?: string;
|
|
5130
|
-
};
|
|
5131
|
-
Update: {
|
|
5132
|
-
connection_id?: string;
|
|
5133
|
-
data?: import("./types").Json;
|
|
5134
|
-
fetched_at?: string;
|
|
5135
|
-
floriday_id?: string;
|
|
5136
|
-
id?: string;
|
|
5137
|
-
is_deleted?: boolean;
|
|
5138
|
-
sequence_number?: number;
|
|
5139
|
-
updated_at?: string;
|
|
5140
|
-
};
|
|
5141
|
-
Relationships: [{
|
|
5142
|
-
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
5143
|
-
columns: ["connection_id"];
|
|
5144
|
-
isOneToOne: false;
|
|
5145
|
-
referencedRelation: "floriday_connections";
|
|
5146
|
-
referencedColumns: ["id"];
|
|
5147
|
-
}];
|
|
5148
|
-
};
|
|
5149
5509
|
floriday_trips_cache: {
|
|
5150
5510
|
Row: {
|
|
5151
5511
|
carrier_organization_id: string | null;
|
|
@@ -5194,27 +5554,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
5194
5554
|
referencedColumns: ["id"];
|
|
5195
5555
|
}];
|
|
5196
5556
|
};
|
|
5197
|
-
floriday_vbn_required_characteristics: {
|
|
5198
|
-
Row: {
|
|
5199
|
-
required_codes: string[];
|
|
5200
|
-
updated_at: string;
|
|
5201
|
-
updated_by: string | null;
|
|
5202
|
-
vbn_code: string;
|
|
5203
|
-
};
|
|
5204
|
-
Insert: {
|
|
5205
|
-
required_codes?: string[];
|
|
5206
|
-
updated_at?: string;
|
|
5207
|
-
updated_by?: string | null;
|
|
5208
|
-
vbn_code: string;
|
|
5209
|
-
};
|
|
5210
|
-
Update: {
|
|
5211
|
-
required_codes?: string[];
|
|
5212
|
-
updated_at?: string;
|
|
5213
|
-
updated_by?: string | null;
|
|
5214
|
-
vbn_code?: string;
|
|
5215
|
-
};
|
|
5216
|
-
Relationships: [];
|
|
5217
|
-
};
|
|
5218
5557
|
floriday_warehouses_cache: {
|
|
5219
5558
|
Row: {
|
|
5220
5559
|
connection_id: string;
|
|
@@ -5695,135 +6034,417 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
5695
6034
|
};
|
|
5696
6035
|
Relationships: [];
|
|
5697
6036
|
};
|
|
5698
|
-
|
|
6037
|
+
itk_contact_persons: {
|
|
5699
6038
|
Row: {
|
|
5700
|
-
base_price: number | null;
|
|
5701
6039
|
created_at: string;
|
|
5702
|
-
currency: string;
|
|
5703
6040
|
customer_id: string;
|
|
6041
|
+
email: string | null;
|
|
5704
6042
|
id: string;
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
product_category_id: string | null;
|
|
5709
|
-
product_id: string | null;
|
|
6043
|
+
name: string;
|
|
6044
|
+
phone: string | null;
|
|
6045
|
+
role: string | null;
|
|
5710
6046
|
updated_at: string;
|
|
5711
|
-
valid_from: string | null;
|
|
5712
|
-
valid_until: string | null;
|
|
5713
6047
|
};
|
|
5714
6048
|
Insert: {
|
|
5715
|
-
base_price?: number | null;
|
|
5716
6049
|
created_at?: string;
|
|
5717
|
-
currency?: string;
|
|
5718
6050
|
customer_id: string;
|
|
6051
|
+
email?: string | null;
|
|
5719
6052
|
id?: string;
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
product_category_id?: string | null;
|
|
5724
|
-
product_id?: string | null;
|
|
6053
|
+
name: string;
|
|
6054
|
+
phone?: string | null;
|
|
6055
|
+
role?: string | null;
|
|
5725
6056
|
updated_at?: string;
|
|
5726
|
-
valid_from?: string | null;
|
|
5727
|
-
valid_until?: string | null;
|
|
5728
6057
|
};
|
|
5729
6058
|
Update: {
|
|
5730
|
-
base_price?: number | null;
|
|
5731
6059
|
created_at?: string;
|
|
5732
|
-
currency?: string;
|
|
5733
6060
|
customer_id?: string;
|
|
6061
|
+
email?: string | null;
|
|
5734
6062
|
id?: string;
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
product_category_id?: string | null;
|
|
5739
|
-
product_id?: string | null;
|
|
6063
|
+
name?: string;
|
|
6064
|
+
phone?: string | null;
|
|
6065
|
+
role?: string | null;
|
|
5740
6066
|
updated_at?: string;
|
|
5741
|
-
valid_from?: string | null;
|
|
5742
|
-
valid_until?: string | null;
|
|
5743
6067
|
};
|
|
5744
6068
|
Relationships: [{
|
|
5745
|
-
foreignKeyName: "
|
|
6069
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
5746
6070
|
columns: ["customer_id"];
|
|
5747
6071
|
isOneToOne: false;
|
|
5748
|
-
referencedRelation: "
|
|
5749
|
-
referencedColumns: ["id"];
|
|
5750
|
-
}, {
|
|
5751
|
-
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5752
|
-
columns: ["product_category_id"];
|
|
5753
|
-
isOneToOne: false;
|
|
5754
|
-
referencedRelation: "product_categories";
|
|
5755
|
-
referencedColumns: ["id"];
|
|
5756
|
-
}, {
|
|
5757
|
-
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5758
|
-
columns: ["product_id"];
|
|
5759
|
-
isOneToOne: false;
|
|
5760
|
-
referencedRelation: "products";
|
|
6072
|
+
referencedRelation: "itk_customers";
|
|
5761
6073
|
referencedColumns: ["id"];
|
|
5762
6074
|
}];
|
|
5763
6075
|
};
|
|
5764
|
-
|
|
6076
|
+
itk_customer_dynamic_values: {
|
|
5765
6077
|
Row: {
|
|
5766
6078
|
created_at: string;
|
|
5767
|
-
currency: string;
|
|
5768
6079
|
customer_id: string;
|
|
5769
|
-
|
|
5770
|
-
discount_value: number;
|
|
6080
|
+
field_id: string;
|
|
5771
6081
|
id: string;
|
|
5772
|
-
min_quantity: number;
|
|
5773
|
-
notes: string | null;
|
|
5774
|
-
product_category_id: string | null;
|
|
5775
|
-
product_id: string | null;
|
|
5776
6082
|
updated_at: string;
|
|
5777
|
-
|
|
5778
|
-
valid_until: string | null;
|
|
6083
|
+
value: string | null;
|
|
5779
6084
|
};
|
|
5780
6085
|
Insert: {
|
|
5781
6086
|
created_at?: string;
|
|
5782
|
-
currency?: string;
|
|
5783
6087
|
customer_id: string;
|
|
5784
|
-
|
|
5785
|
-
discount_value: number;
|
|
6088
|
+
field_id: string;
|
|
5786
6089
|
id?: string;
|
|
5787
|
-
min_quantity?: number;
|
|
5788
|
-
notes?: string | null;
|
|
5789
|
-
product_category_id?: string | null;
|
|
5790
|
-
product_id?: string | null;
|
|
5791
6090
|
updated_at?: string;
|
|
5792
|
-
|
|
5793
|
-
valid_until?: string | null;
|
|
6091
|
+
value?: string | null;
|
|
5794
6092
|
};
|
|
5795
6093
|
Update: {
|
|
5796
6094
|
created_at?: string;
|
|
5797
|
-
currency?: string;
|
|
5798
6095
|
customer_id?: string;
|
|
5799
|
-
|
|
5800
|
-
discount_value?: number;
|
|
6096
|
+
field_id?: string;
|
|
5801
6097
|
id?: string;
|
|
5802
|
-
min_quantity?: number;
|
|
5803
|
-
notes?: string | null;
|
|
5804
|
-
product_category_id?: string | null;
|
|
5805
|
-
product_id?: string | null;
|
|
5806
6098
|
updated_at?: string;
|
|
5807
|
-
|
|
5808
|
-
valid_until?: string | null;
|
|
6099
|
+
value?: string | null;
|
|
5809
6100
|
};
|
|
5810
6101
|
Relationships: [{
|
|
5811
|
-
foreignKeyName: "
|
|
6102
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
5812
6103
|
columns: ["customer_id"];
|
|
5813
6104
|
isOneToOne: false;
|
|
5814
|
-
referencedRelation: "
|
|
5815
|
-
referencedColumns: ["id"];
|
|
5816
|
-
}, {
|
|
5817
|
-
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
5818
|
-
columns: ["product_category_id"];
|
|
5819
|
-
isOneToOne: false;
|
|
5820
|
-
referencedRelation: "product_categories";
|
|
6105
|
+
referencedRelation: "itk_customers";
|
|
5821
6106
|
referencedColumns: ["id"];
|
|
5822
6107
|
}, {
|
|
5823
|
-
foreignKeyName: "
|
|
5824
|
-
columns: ["
|
|
6108
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6109
|
+
columns: ["field_id"];
|
|
5825
6110
|
isOneToOne: false;
|
|
5826
|
-
referencedRelation: "
|
|
6111
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6112
|
+
referencedColumns: ["id"];
|
|
6113
|
+
}];
|
|
6114
|
+
};
|
|
6115
|
+
itk_customer_notes: {
|
|
6116
|
+
Row: {
|
|
6117
|
+
body: string;
|
|
6118
|
+
created_at: string;
|
|
6119
|
+
created_by: string | null;
|
|
6120
|
+
customer_id: string;
|
|
6121
|
+
id: string;
|
|
6122
|
+
note_type: string;
|
|
6123
|
+
updated_at: string;
|
|
6124
|
+
};
|
|
6125
|
+
Insert: {
|
|
6126
|
+
body: string;
|
|
6127
|
+
created_at?: string;
|
|
6128
|
+
created_by?: string | null;
|
|
6129
|
+
customer_id: string;
|
|
6130
|
+
id?: string;
|
|
6131
|
+
note_type?: string;
|
|
6132
|
+
updated_at?: string;
|
|
6133
|
+
};
|
|
6134
|
+
Update: {
|
|
6135
|
+
body?: string;
|
|
6136
|
+
created_at?: string;
|
|
6137
|
+
created_by?: string | null;
|
|
6138
|
+
customer_id?: string;
|
|
6139
|
+
id?: string;
|
|
6140
|
+
note_type?: string;
|
|
6141
|
+
updated_at?: string;
|
|
6142
|
+
};
|
|
6143
|
+
Relationships: [{
|
|
6144
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6145
|
+
columns: ["customer_id"];
|
|
6146
|
+
isOneToOne: false;
|
|
6147
|
+
referencedRelation: "itk_customers";
|
|
6148
|
+
referencedColumns: ["id"];
|
|
6149
|
+
}];
|
|
6150
|
+
};
|
|
6151
|
+
itk_customers: {
|
|
6152
|
+
Row: {
|
|
6153
|
+
billing_city: string | null;
|
|
6154
|
+
billing_postcode: string | null;
|
|
6155
|
+
billing_street: string | null;
|
|
6156
|
+
created_at: string;
|
|
6157
|
+
general_email: string | null;
|
|
6158
|
+
general_phone: string | null;
|
|
6159
|
+
id: string;
|
|
6160
|
+
legacy_customer_id: string | null;
|
|
6161
|
+
name: string;
|
|
6162
|
+
segment: Database["public"]["Enums"]["itk_customer_segment"];
|
|
6163
|
+
updated_at: string;
|
|
6164
|
+
};
|
|
6165
|
+
Insert: {
|
|
6166
|
+
billing_city?: string | null;
|
|
6167
|
+
billing_postcode?: string | null;
|
|
6168
|
+
billing_street?: string | null;
|
|
6169
|
+
created_at?: string;
|
|
6170
|
+
general_email?: string | null;
|
|
6171
|
+
general_phone?: string | null;
|
|
6172
|
+
id?: string;
|
|
6173
|
+
legacy_customer_id?: string | null;
|
|
6174
|
+
name: string;
|
|
6175
|
+
segment?: Database["public"]["Enums"]["itk_customer_segment"];
|
|
6176
|
+
updated_at?: string;
|
|
6177
|
+
};
|
|
6178
|
+
Update: {
|
|
6179
|
+
billing_city?: string | null;
|
|
6180
|
+
billing_postcode?: string | null;
|
|
6181
|
+
billing_street?: string | null;
|
|
6182
|
+
created_at?: string;
|
|
6183
|
+
general_email?: string | null;
|
|
6184
|
+
general_phone?: string | null;
|
|
6185
|
+
id?: string;
|
|
6186
|
+
legacy_customer_id?: string | null;
|
|
6187
|
+
name?: string;
|
|
6188
|
+
segment?: Database["public"]["Enums"]["itk_customer_segment"];
|
|
6189
|
+
updated_at?: string;
|
|
6190
|
+
};
|
|
6191
|
+
Relationships: [{
|
|
6192
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6193
|
+
columns: ["legacy_customer_id"];
|
|
6194
|
+
isOneToOne: false;
|
|
6195
|
+
referencedRelation: "customers";
|
|
6196
|
+
referencedColumns: ["id"];
|
|
6197
|
+
}];
|
|
6198
|
+
};
|
|
6199
|
+
itk_dynamic_fields: {
|
|
6200
|
+
Row: {
|
|
6201
|
+
created_at: string;
|
|
6202
|
+
field_name: string;
|
|
6203
|
+
field_type: Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6204
|
+
id: string;
|
|
6205
|
+
options: import("./types").Json;
|
|
6206
|
+
sort_order: number;
|
|
6207
|
+
updated_at: string;
|
|
6208
|
+
};
|
|
6209
|
+
Insert: {
|
|
6210
|
+
created_at?: string;
|
|
6211
|
+
field_name: string;
|
|
6212
|
+
field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6213
|
+
id?: string;
|
|
6214
|
+
options?: import("./types").Json;
|
|
6215
|
+
sort_order?: number;
|
|
6216
|
+
updated_at?: string;
|
|
6217
|
+
};
|
|
6218
|
+
Update: {
|
|
6219
|
+
created_at?: string;
|
|
6220
|
+
field_name?: string;
|
|
6221
|
+
field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6222
|
+
id?: string;
|
|
6223
|
+
options?: import("./types").Json;
|
|
6224
|
+
sort_order?: number;
|
|
6225
|
+
updated_at?: string;
|
|
6226
|
+
};
|
|
6227
|
+
Relationships: [];
|
|
6228
|
+
};
|
|
6229
|
+
itk_work_locations: {
|
|
6230
|
+
Row: {
|
|
6231
|
+
city: string | null;
|
|
6232
|
+
created_at: string;
|
|
6233
|
+
customer_id: string;
|
|
6234
|
+
id: string;
|
|
6235
|
+
instructions: string | null;
|
|
6236
|
+
label: string;
|
|
6237
|
+
latitude: number | null;
|
|
6238
|
+
longitude: number | null;
|
|
6239
|
+
postcode: string | null;
|
|
6240
|
+
street: string | null;
|
|
6241
|
+
updated_at: string;
|
|
6242
|
+
};
|
|
6243
|
+
Insert: {
|
|
6244
|
+
city?: string | null;
|
|
6245
|
+
created_at?: string;
|
|
6246
|
+
customer_id: string;
|
|
6247
|
+
id?: string;
|
|
6248
|
+
instructions?: string | null;
|
|
6249
|
+
label: string;
|
|
6250
|
+
latitude?: number | null;
|
|
6251
|
+
longitude?: number | null;
|
|
6252
|
+
postcode?: string | null;
|
|
6253
|
+
street?: string | null;
|
|
6254
|
+
updated_at?: string;
|
|
6255
|
+
};
|
|
6256
|
+
Update: {
|
|
6257
|
+
city?: string | null;
|
|
6258
|
+
created_at?: string;
|
|
6259
|
+
customer_id?: string;
|
|
6260
|
+
id?: string;
|
|
6261
|
+
instructions?: string | null;
|
|
6262
|
+
label?: string;
|
|
6263
|
+
latitude?: number | null;
|
|
6264
|
+
longitude?: number | null;
|
|
6265
|
+
postcode?: string | null;
|
|
6266
|
+
street?: string | null;
|
|
6267
|
+
updated_at?: string;
|
|
6268
|
+
};
|
|
6269
|
+
Relationships: [{
|
|
6270
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6271
|
+
columns: ["customer_id"];
|
|
6272
|
+
isOneToOne: false;
|
|
6273
|
+
referencedRelation: "itk_customers";
|
|
6274
|
+
referencedColumns: ["id"];
|
|
6275
|
+
}];
|
|
6276
|
+
};
|
|
6277
|
+
leave_requests: {
|
|
6278
|
+
Row: {
|
|
6279
|
+
created_at: string;
|
|
6280
|
+
end_date: string;
|
|
6281
|
+
id: string;
|
|
6282
|
+
reason: string | null;
|
|
6283
|
+
start_date: string;
|
|
6284
|
+
status: string;
|
|
6285
|
+
tenant_id: string;
|
|
6286
|
+
updated_at: string;
|
|
6287
|
+
user_id: string;
|
|
6288
|
+
};
|
|
6289
|
+
Insert: {
|
|
6290
|
+
created_at?: string;
|
|
6291
|
+
end_date: string;
|
|
6292
|
+
id?: string;
|
|
6293
|
+
reason?: string | null;
|
|
6294
|
+
start_date: string;
|
|
6295
|
+
status?: string;
|
|
6296
|
+
tenant_id?: string;
|
|
6297
|
+
updated_at?: string;
|
|
6298
|
+
user_id: string;
|
|
6299
|
+
};
|
|
6300
|
+
Update: {
|
|
6301
|
+
created_at?: string;
|
|
6302
|
+
end_date?: string;
|
|
6303
|
+
id?: string;
|
|
6304
|
+
reason?: string | null;
|
|
6305
|
+
start_date?: string;
|
|
6306
|
+
status?: string;
|
|
6307
|
+
tenant_id?: string;
|
|
6308
|
+
updated_at?: string;
|
|
6309
|
+
user_id?: string;
|
|
6310
|
+
};
|
|
6311
|
+
Relationships: [{
|
|
6312
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6313
|
+
columns: ["user_id"];
|
|
6314
|
+
isOneToOne: false;
|
|
6315
|
+
referencedRelation: "monteurs";
|
|
6316
|
+
referencedColumns: ["id"];
|
|
6317
|
+
}];
|
|
6318
|
+
};
|
|
6319
|
+
local_customer_agreements: {
|
|
6320
|
+
Row: {
|
|
6321
|
+
base_price: number | null;
|
|
6322
|
+
created_at: string;
|
|
6323
|
+
currency: string;
|
|
6324
|
+
customer_id: string;
|
|
6325
|
+
id: string;
|
|
6326
|
+
min_quantity: number;
|
|
6327
|
+
net_price: number;
|
|
6328
|
+
notes: string | null;
|
|
6329
|
+
product_category_id: string | null;
|
|
6330
|
+
product_id: string | null;
|
|
6331
|
+
updated_at: string;
|
|
6332
|
+
valid_from: string | null;
|
|
6333
|
+
valid_until: string | null;
|
|
6334
|
+
};
|
|
6335
|
+
Insert: {
|
|
6336
|
+
base_price?: number | null;
|
|
6337
|
+
created_at?: string;
|
|
6338
|
+
currency?: string;
|
|
6339
|
+
customer_id: string;
|
|
6340
|
+
id?: string;
|
|
6341
|
+
min_quantity?: number;
|
|
6342
|
+
net_price: number;
|
|
6343
|
+
notes?: string | null;
|
|
6344
|
+
product_category_id?: string | null;
|
|
6345
|
+
product_id?: string | null;
|
|
6346
|
+
updated_at?: string;
|
|
6347
|
+
valid_from?: string | null;
|
|
6348
|
+
valid_until?: string | null;
|
|
6349
|
+
};
|
|
6350
|
+
Update: {
|
|
6351
|
+
base_price?: number | null;
|
|
6352
|
+
created_at?: string;
|
|
6353
|
+
currency?: string;
|
|
6354
|
+
customer_id?: string;
|
|
6355
|
+
id?: string;
|
|
6356
|
+
min_quantity?: number;
|
|
6357
|
+
net_price?: number;
|
|
6358
|
+
notes?: string | null;
|
|
6359
|
+
product_category_id?: string | null;
|
|
6360
|
+
product_id?: string | null;
|
|
6361
|
+
updated_at?: string;
|
|
6362
|
+
valid_from?: string | null;
|
|
6363
|
+
valid_until?: string | null;
|
|
6364
|
+
};
|
|
6365
|
+
Relationships: [{
|
|
6366
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
6367
|
+
columns: ["customer_id"];
|
|
6368
|
+
isOneToOne: false;
|
|
6369
|
+
referencedRelation: "customers";
|
|
6370
|
+
referencedColumns: ["id"];
|
|
6371
|
+
}, {
|
|
6372
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
6373
|
+
columns: ["product_category_id"];
|
|
6374
|
+
isOneToOne: false;
|
|
6375
|
+
referencedRelation: "product_categories";
|
|
6376
|
+
referencedColumns: ["id"];
|
|
6377
|
+
}, {
|
|
6378
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
6379
|
+
columns: ["product_id"];
|
|
6380
|
+
isOneToOne: false;
|
|
6381
|
+
referencedRelation: "products";
|
|
6382
|
+
referencedColumns: ["id"];
|
|
6383
|
+
}];
|
|
6384
|
+
};
|
|
6385
|
+
local_customer_price_groups: {
|
|
6386
|
+
Row: {
|
|
6387
|
+
created_at: string;
|
|
6388
|
+
currency: string;
|
|
6389
|
+
customer_id: string;
|
|
6390
|
+
discount_type: string;
|
|
6391
|
+
discount_value: number;
|
|
6392
|
+
id: string;
|
|
6393
|
+
min_quantity: number;
|
|
6394
|
+
notes: string | null;
|
|
6395
|
+
product_category_id: string | null;
|
|
6396
|
+
product_id: string | null;
|
|
6397
|
+
updated_at: string;
|
|
6398
|
+
valid_from: string | null;
|
|
6399
|
+
valid_until: string | null;
|
|
6400
|
+
};
|
|
6401
|
+
Insert: {
|
|
6402
|
+
created_at?: string;
|
|
6403
|
+
currency?: string;
|
|
6404
|
+
customer_id: string;
|
|
6405
|
+
discount_type: string;
|
|
6406
|
+
discount_value: number;
|
|
6407
|
+
id?: string;
|
|
6408
|
+
min_quantity?: number;
|
|
6409
|
+
notes?: string | null;
|
|
6410
|
+
product_category_id?: string | null;
|
|
6411
|
+
product_id?: string | null;
|
|
6412
|
+
updated_at?: string;
|
|
6413
|
+
valid_from?: string | null;
|
|
6414
|
+
valid_until?: string | null;
|
|
6415
|
+
};
|
|
6416
|
+
Update: {
|
|
6417
|
+
created_at?: string;
|
|
6418
|
+
currency?: string;
|
|
6419
|
+
customer_id?: string;
|
|
6420
|
+
discount_type?: string;
|
|
6421
|
+
discount_value?: number;
|
|
6422
|
+
id?: string;
|
|
6423
|
+
min_quantity?: number;
|
|
6424
|
+
notes?: string | null;
|
|
6425
|
+
product_category_id?: string | null;
|
|
6426
|
+
product_id?: string | null;
|
|
6427
|
+
updated_at?: string;
|
|
6428
|
+
valid_from?: string | null;
|
|
6429
|
+
valid_until?: string | null;
|
|
6430
|
+
};
|
|
6431
|
+
Relationships: [{
|
|
6432
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
6433
|
+
columns: ["customer_id"];
|
|
6434
|
+
isOneToOne: false;
|
|
6435
|
+
referencedRelation: "customers";
|
|
6436
|
+
referencedColumns: ["id"];
|
|
6437
|
+
}, {
|
|
6438
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
6439
|
+
columns: ["product_category_id"];
|
|
6440
|
+
isOneToOne: false;
|
|
6441
|
+
referencedRelation: "product_categories";
|
|
6442
|
+
referencedColumns: ["id"];
|
|
6443
|
+
}, {
|
|
6444
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
6445
|
+
columns: ["product_id"];
|
|
6446
|
+
isOneToOne: false;
|
|
6447
|
+
referencedRelation: "products";
|
|
5827
6448
|
referencedColumns: ["id"];
|
|
5828
6449
|
}];
|
|
5829
6450
|
};
|
|
@@ -6591,60 +7212,66 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6591
7212
|
};
|
|
6592
7213
|
manufacture_products: {
|
|
6593
7214
|
Row: {
|
|
6594
|
-
aantal_te_produceren: number;
|
|
6595
7215
|
created_at: string;
|
|
6596
7216
|
description: string | null;
|
|
6597
7217
|
id: string;
|
|
6598
7218
|
is_active: boolean;
|
|
6599
|
-
location_id: string | null;
|
|
6600
7219
|
name: string;
|
|
6601
|
-
partij_nummer: string | null;
|
|
6602
|
-
photos: import("./types").Json;
|
|
6603
7220
|
produced_stock: number;
|
|
6604
7221
|
product_code: string;
|
|
6605
7222
|
tenant_id: string;
|
|
6606
|
-
unit: string;
|
|
6607
7223
|
updated_at: string;
|
|
6608
7224
|
};
|
|
6609
7225
|
Insert: {
|
|
6610
|
-
aantal_te_produceren?: number;
|
|
6611
7226
|
created_at?: string;
|
|
6612
7227
|
description?: string | null;
|
|
6613
7228
|
id?: string;
|
|
6614
7229
|
is_active?: boolean;
|
|
6615
|
-
location_id?: string | null;
|
|
6616
7230
|
name: string;
|
|
6617
|
-
partij_nummer?: string | null;
|
|
6618
|
-
photos?: import("./types").Json;
|
|
6619
7231
|
produced_stock?: number;
|
|
6620
7232
|
product_code: string;
|
|
6621
7233
|
tenant_id: string;
|
|
6622
|
-
unit?: string;
|
|
6623
7234
|
updated_at?: string;
|
|
6624
7235
|
};
|
|
6625
7236
|
Update: {
|
|
6626
|
-
aantal_te_produceren?: number;
|
|
6627
7237
|
created_at?: string;
|
|
6628
7238
|
description?: string | null;
|
|
6629
7239
|
id?: string;
|
|
6630
7240
|
is_active?: boolean;
|
|
6631
|
-
location_id?: string | null;
|
|
6632
7241
|
name?: string;
|
|
6633
|
-
partij_nummer?: string | null;
|
|
6634
|
-
photos?: import("./types").Json;
|
|
6635
7242
|
produced_stock?: number;
|
|
6636
7243
|
product_code?: string;
|
|
6637
7244
|
tenant_id?: string;
|
|
6638
|
-
unit?: string;
|
|
6639
7245
|
updated_at?: string;
|
|
6640
7246
|
};
|
|
6641
|
-
Relationships: [
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
7247
|
+
Relationships: [];
|
|
7248
|
+
};
|
|
7249
|
+
module_permissions: {
|
|
7250
|
+
Row: {
|
|
7251
|
+
created_at: string;
|
|
7252
|
+
id: string;
|
|
7253
|
+
module_id: string;
|
|
7254
|
+
permission: string;
|
|
7255
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
7256
|
+
updated_at: string;
|
|
7257
|
+
};
|
|
7258
|
+
Insert: {
|
|
7259
|
+
created_at?: string;
|
|
7260
|
+
id?: string;
|
|
7261
|
+
module_id: string;
|
|
7262
|
+
permission: string;
|
|
7263
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
7264
|
+
updated_at?: string;
|
|
7265
|
+
};
|
|
7266
|
+
Update: {
|
|
7267
|
+
created_at?: string;
|
|
7268
|
+
id?: string;
|
|
7269
|
+
module_id?: string;
|
|
7270
|
+
permission?: string;
|
|
7271
|
+
role?: Database["public"]["Enums"]["app_role"];
|
|
7272
|
+
updated_at?: string;
|
|
7273
|
+
};
|
|
7274
|
+
Relationships: [];
|
|
6648
7275
|
};
|
|
6649
7276
|
monteurs: {
|
|
6650
7277
|
Row: {
|
|
@@ -7963,6 +8590,78 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7963
8590
|
};
|
|
7964
8591
|
Relationships: [];
|
|
7965
8592
|
};
|
|
8593
|
+
planning_item_assistants: {
|
|
8594
|
+
Row: {
|
|
8595
|
+
created_at: string;
|
|
8596
|
+
created_by: string | null;
|
|
8597
|
+
monteur_id: string;
|
|
8598
|
+
planning_item_id: string;
|
|
8599
|
+
};
|
|
8600
|
+
Insert: {
|
|
8601
|
+
created_at?: string;
|
|
8602
|
+
created_by?: string | null;
|
|
8603
|
+
monteur_id: string;
|
|
8604
|
+
planning_item_id: string;
|
|
8605
|
+
};
|
|
8606
|
+
Update: {
|
|
8607
|
+
created_at?: string;
|
|
8608
|
+
created_by?: string | null;
|
|
8609
|
+
monteur_id?: string;
|
|
8610
|
+
planning_item_id?: string;
|
|
8611
|
+
};
|
|
8612
|
+
Relationships: [{
|
|
8613
|
+
foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
|
|
8614
|
+
columns: ["planning_item_id"];
|
|
8615
|
+
isOneToOne: false;
|
|
8616
|
+
referencedRelation: "planning_items";
|
|
8617
|
+
referencedColumns: ["id"];
|
|
8618
|
+
}];
|
|
8619
|
+
};
|
|
8620
|
+
planning_items: {
|
|
8621
|
+
Row: {
|
|
8622
|
+
assigned_monteur_id: string;
|
|
8623
|
+
created_at: string;
|
|
8624
|
+
created_by: string | null;
|
|
8625
|
+
end_at: string;
|
|
8626
|
+
id: string;
|
|
8627
|
+
notes: string | null;
|
|
8628
|
+
start_at: string;
|
|
8629
|
+
status: Database["public"]["Enums"]["planning_item_status"];
|
|
8630
|
+
updated_at: string;
|
|
8631
|
+
werkbon_id: string;
|
|
8632
|
+
};
|
|
8633
|
+
Insert: {
|
|
8634
|
+
assigned_monteur_id: string;
|
|
8635
|
+
created_at?: string;
|
|
8636
|
+
created_by?: string | null;
|
|
8637
|
+
end_at: string;
|
|
8638
|
+
id?: string;
|
|
8639
|
+
notes?: string | null;
|
|
8640
|
+
start_at: string;
|
|
8641
|
+
status?: Database["public"]["Enums"]["planning_item_status"];
|
|
8642
|
+
updated_at?: string;
|
|
8643
|
+
werkbon_id: string;
|
|
8644
|
+
};
|
|
8645
|
+
Update: {
|
|
8646
|
+
assigned_monteur_id?: string;
|
|
8647
|
+
created_at?: string;
|
|
8648
|
+
created_by?: string | null;
|
|
8649
|
+
end_at?: string;
|
|
8650
|
+
id?: string;
|
|
8651
|
+
notes?: string | null;
|
|
8652
|
+
start_at?: string;
|
|
8653
|
+
status?: Database["public"]["Enums"]["planning_item_status"];
|
|
8654
|
+
updated_at?: string;
|
|
8655
|
+
werkbon_id?: string;
|
|
8656
|
+
};
|
|
8657
|
+
Relationships: [{
|
|
8658
|
+
foreignKeyName: "planning_items_werkbon_id_fkey";
|
|
8659
|
+
columns: ["werkbon_id"];
|
|
8660
|
+
isOneToOne: false;
|
|
8661
|
+
referencedRelation: "werkbonnen";
|
|
8662
|
+
referencedColumns: ["id"];
|
|
8663
|
+
}];
|
|
8664
|
+
};
|
|
7966
8665
|
product_bom_items: {
|
|
7967
8666
|
Row: {
|
|
7968
8667
|
component_product_id: string | null;
|
|
@@ -8304,8 +9003,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8304
9003
|
crates_per_layer: number;
|
|
8305
9004
|
created_at: string;
|
|
8306
9005
|
custom_fields: import("./types").Json;
|
|
8307
|
-
floriday_active: boolean;
|
|
8308
|
-
floriday_payload: import("./types").Json;
|
|
8309
9006
|
floriday_trade_item_id: string | null;
|
|
8310
9007
|
id: string;
|
|
8311
9008
|
image_url: string | null;
|
|
@@ -8323,8 +9020,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8323
9020
|
trade_item_key: string | null;
|
|
8324
9021
|
unit: string;
|
|
8325
9022
|
updated_at: string;
|
|
8326
|
-
vat_code: string | null;
|
|
8327
|
-
vat_rate: number | null;
|
|
8328
9023
|
weight: string | null;
|
|
8329
9024
|
};
|
|
8330
9025
|
Insert: {
|
|
@@ -8334,8 +9029,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8334
9029
|
crates_per_layer?: number;
|
|
8335
9030
|
created_at?: string;
|
|
8336
9031
|
custom_fields?: import("./types").Json;
|
|
8337
|
-
floriday_active?: boolean;
|
|
8338
|
-
floriday_payload?: import("./types").Json;
|
|
8339
9032
|
floriday_trade_item_id?: string | null;
|
|
8340
9033
|
id?: string;
|
|
8341
9034
|
image_url?: string | null;
|
|
@@ -8353,8 +9046,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8353
9046
|
trade_item_key?: string | null;
|
|
8354
9047
|
unit?: string;
|
|
8355
9048
|
updated_at?: string;
|
|
8356
|
-
vat_code?: string | null;
|
|
8357
|
-
vat_rate?: number | null;
|
|
8358
9049
|
weight?: string | null;
|
|
8359
9050
|
};
|
|
8360
9051
|
Update: {
|
|
@@ -8364,8 +9055,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8364
9055
|
crates_per_layer?: number;
|
|
8365
9056
|
created_at?: string;
|
|
8366
9057
|
custom_fields?: import("./types").Json;
|
|
8367
|
-
floriday_active?: boolean;
|
|
8368
|
-
floriday_payload?: import("./types").Json;
|
|
8369
9058
|
floriday_trade_item_id?: string | null;
|
|
8370
9059
|
id?: string;
|
|
8371
9060
|
image_url?: string | null;
|
|
@@ -8383,8 +9072,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8383
9072
|
trade_item_key?: string | null;
|
|
8384
9073
|
unit?: string;
|
|
8385
9074
|
updated_at?: string;
|
|
8386
|
-
vat_code?: string | null;
|
|
8387
|
-
vat_rate?: number | null;
|
|
8388
9075
|
weight?: string | null;
|
|
8389
9076
|
};
|
|
8390
9077
|
Relationships: [];
|
|
@@ -8392,6 +9079,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8392
9079
|
profiles: {
|
|
8393
9080
|
Row: {
|
|
8394
9081
|
address: string | null;
|
|
9082
|
+
avatar_url: string | null;
|
|
8395
9083
|
created_at: string;
|
|
8396
9084
|
display_name: string | null;
|
|
8397
9085
|
email: string | null;
|
|
@@ -8403,6 +9091,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8403
9091
|
};
|
|
8404
9092
|
Insert: {
|
|
8405
9093
|
address?: string | null;
|
|
9094
|
+
avatar_url?: string | null;
|
|
8406
9095
|
created_at?: string;
|
|
8407
9096
|
display_name?: string | null;
|
|
8408
9097
|
email?: string | null;
|
|
@@ -8414,6 +9103,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8414
9103
|
};
|
|
8415
9104
|
Update: {
|
|
8416
9105
|
address?: string | null;
|
|
9106
|
+
avatar_url?: string | null;
|
|
8417
9107
|
created_at?: string;
|
|
8418
9108
|
display_name?: string | null;
|
|
8419
9109
|
email?: string | null;
|
|
@@ -9278,7 +9968,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9278
9968
|
order_id: string | null;
|
|
9279
9969
|
order_item_id: string | null;
|
|
9280
9970
|
order_source: string | null;
|
|
9281
|
-
parent_trade_item_key: string | null;
|
|
9282
9971
|
physical_after: number | null;
|
|
9283
9972
|
physical_before: number | null;
|
|
9284
9973
|
production_batch_id: string | null;
|
|
@@ -9297,7 +9986,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9297
9986
|
order_id?: string | null;
|
|
9298
9987
|
order_item_id?: string | null;
|
|
9299
9988
|
order_source?: string | null;
|
|
9300
|
-
parent_trade_item_key?: string | null;
|
|
9301
9989
|
physical_after?: number | null;
|
|
9302
9990
|
physical_before?: number | null;
|
|
9303
9991
|
production_batch_id?: string | null;
|
|
@@ -9316,7 +10004,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9316
10004
|
order_id?: string | null;
|
|
9317
10005
|
order_item_id?: string | null;
|
|
9318
10006
|
order_source?: string | null;
|
|
9319
|
-
parent_trade_item_key?: string | null;
|
|
9320
10007
|
physical_after?: number | null;
|
|
9321
10008
|
physical_before?: number | null;
|
|
9322
10009
|
production_batch_id?: string | null;
|
|
@@ -9406,18 +10093,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9406
10093
|
updated_at?: string;
|
|
9407
10094
|
};
|
|
9408
10095
|
Update: {
|
|
9409
|
-
address?: string | null;
|
|
9410
|
-
column_mappings?: import("./types").Json | null;
|
|
9411
|
-
contact_person?: string | null;
|
|
10096
|
+
address?: string | null;
|
|
10097
|
+
column_mappings?: import("./types").Json | null;
|
|
10098
|
+
contact_person?: string | null;
|
|
10099
|
+
created_at?: string;
|
|
10100
|
+
default_product_type?: string;
|
|
10101
|
+
email?: string | null;
|
|
10102
|
+
id?: string;
|
|
10103
|
+
imported_file_name?: string | null;
|
|
10104
|
+
name?: string;
|
|
10105
|
+
notes?: string | null;
|
|
10106
|
+
phone?: string | null;
|
|
10107
|
+
updated_at?: string;
|
|
10108
|
+
};
|
|
10109
|
+
Relationships: [];
|
|
10110
|
+
};
|
|
10111
|
+
technician_rates: {
|
|
10112
|
+
Row: {
|
|
10113
|
+
created_at: string;
|
|
10114
|
+
hourly_rate_cents: number;
|
|
10115
|
+
updated_at: string;
|
|
10116
|
+
user_id: string;
|
|
10117
|
+
};
|
|
10118
|
+
Insert: {
|
|
10119
|
+
created_at?: string;
|
|
10120
|
+
hourly_rate_cents?: number;
|
|
10121
|
+
updated_at?: string;
|
|
10122
|
+
user_id: string;
|
|
10123
|
+
};
|
|
10124
|
+
Update: {
|
|
9412
10125
|
created_at?: string;
|
|
9413
|
-
|
|
9414
|
-
email?: string | null;
|
|
9415
|
-
id?: string;
|
|
9416
|
-
imported_file_name?: string | null;
|
|
9417
|
-
name?: string;
|
|
9418
|
-
notes?: string | null;
|
|
9419
|
-
phone?: string | null;
|
|
10126
|
+
hourly_rate_cents?: number;
|
|
9420
10127
|
updated_at?: string;
|
|
10128
|
+
user_id?: string;
|
|
9421
10129
|
};
|
|
9422
10130
|
Relationships: [];
|
|
9423
10131
|
};
|
|
@@ -9820,7 +10528,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9820
10528
|
twinfield_connections: {
|
|
9821
10529
|
Row: {
|
|
9822
10530
|
access_token: string | null;
|
|
9823
|
-
client_id: string
|
|
10531
|
+
client_id: string;
|
|
9824
10532
|
client_secret: string | null;
|
|
9825
10533
|
cluster_uri: string | null;
|
|
9826
10534
|
company_code: string | null;
|
|
@@ -9832,7 +10540,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9832
10540
|
is_active: boolean;
|
|
9833
10541
|
label: string | null;
|
|
9834
10542
|
office_code: string | null;
|
|
9835
|
-
redirect_uri: string
|
|
10543
|
+
redirect_uri: string;
|
|
9836
10544
|
refresh_token: string | null;
|
|
9837
10545
|
token_expires_at: string | null;
|
|
9838
10546
|
updated_at: string;
|
|
@@ -9840,7 +10548,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9840
10548
|
};
|
|
9841
10549
|
Insert: {
|
|
9842
10550
|
access_token?: string | null;
|
|
9843
|
-
client_id
|
|
10551
|
+
client_id: string;
|
|
9844
10552
|
client_secret?: string | null;
|
|
9845
10553
|
cluster_uri?: string | null;
|
|
9846
10554
|
company_code?: string | null;
|
|
@@ -9852,7 +10560,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9852
10560
|
is_active?: boolean;
|
|
9853
10561
|
label?: string | null;
|
|
9854
10562
|
office_code?: string | null;
|
|
9855
|
-
redirect_uri
|
|
10563
|
+
redirect_uri: string;
|
|
9856
10564
|
refresh_token?: string | null;
|
|
9857
10565
|
token_expires_at?: string | null;
|
|
9858
10566
|
updated_at?: string;
|
|
@@ -9860,7 +10568,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9860
10568
|
};
|
|
9861
10569
|
Update: {
|
|
9862
10570
|
access_token?: string | null;
|
|
9863
|
-
client_id?: string
|
|
10571
|
+
client_id?: string;
|
|
9864
10572
|
client_secret?: string | null;
|
|
9865
10573
|
cluster_uri?: string | null;
|
|
9866
10574
|
company_code?: string | null;
|
|
@@ -9872,7 +10580,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9872
10580
|
is_active?: boolean;
|
|
9873
10581
|
label?: string | null;
|
|
9874
10582
|
office_code?: string | null;
|
|
9875
|
-
redirect_uri?: string
|
|
10583
|
+
redirect_uri?: string;
|
|
9876
10584
|
refresh_token?: string | null;
|
|
9877
10585
|
token_expires_at?: string | null;
|
|
9878
10586
|
updated_at?: string;
|
|
@@ -9932,6 +10640,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9932
10640
|
country: string | null;
|
|
9933
10641
|
created_at: string;
|
|
9934
10642
|
email: string | null;
|
|
10643
|
+
external_group_key: string | null;
|
|
9935
10644
|
id: string;
|
|
9936
10645
|
last_synced_at: string | null;
|
|
9937
10646
|
name: string;
|
|
@@ -9950,6 +10659,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9950
10659
|
country?: string | null;
|
|
9951
10660
|
created_at?: string;
|
|
9952
10661
|
email?: string | null;
|
|
10662
|
+
external_group_key?: string | null;
|
|
9953
10663
|
id?: string;
|
|
9954
10664
|
last_synced_at?: string | null;
|
|
9955
10665
|
name: string;
|
|
@@ -9968,6 +10678,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9968
10678
|
country?: string | null;
|
|
9969
10679
|
created_at?: string;
|
|
9970
10680
|
email?: string | null;
|
|
10681
|
+
external_group_key?: string | null;
|
|
9971
10682
|
id?: string;
|
|
9972
10683
|
last_synced_at?: string | null;
|
|
9973
10684
|
name?: string;
|
|
@@ -10177,6 +10888,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10177
10888
|
twinfield_invoice_settings: {
|
|
10178
10889
|
Row: {
|
|
10179
10890
|
created_at: string;
|
|
10891
|
+
debtor_gl_account: string;
|
|
10892
|
+
default_credit_invoice_type: string | null;
|
|
10180
10893
|
default_gl_account: string;
|
|
10181
10894
|
default_invoice_type: string;
|
|
10182
10895
|
default_payment_term_days: number;
|
|
@@ -10185,11 +10898,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10185
10898
|
invoice_enabled_fo: boolean;
|
|
10186
10899
|
invoice_enabled_ho: boolean;
|
|
10187
10900
|
invoice_enabled_mo: boolean;
|
|
10901
|
+
payment_gl_account: string;
|
|
10902
|
+
payment_journal_code: string;
|
|
10188
10903
|
updated_at: string;
|
|
10189
10904
|
user_id: string;
|
|
10190
10905
|
};
|
|
10191
10906
|
Insert: {
|
|
10192
10907
|
created_at?: string;
|
|
10908
|
+
debtor_gl_account?: string;
|
|
10909
|
+
default_credit_invoice_type?: string | null;
|
|
10193
10910
|
default_gl_account?: string;
|
|
10194
10911
|
default_invoice_type?: string;
|
|
10195
10912
|
default_payment_term_days?: number;
|
|
@@ -10198,11 +10915,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10198
10915
|
invoice_enabled_fo?: boolean;
|
|
10199
10916
|
invoice_enabled_ho?: boolean;
|
|
10200
10917
|
invoice_enabled_mo?: boolean;
|
|
10918
|
+
payment_gl_account?: string;
|
|
10919
|
+
payment_journal_code?: string;
|
|
10201
10920
|
updated_at?: string;
|
|
10202
10921
|
user_id: string;
|
|
10203
10922
|
};
|
|
10204
10923
|
Update: {
|
|
10205
10924
|
created_at?: string;
|
|
10925
|
+
debtor_gl_account?: string;
|
|
10926
|
+
default_credit_invoice_type?: string | null;
|
|
10206
10927
|
default_gl_account?: string;
|
|
10207
10928
|
default_invoice_type?: string;
|
|
10208
10929
|
default_payment_term_days?: number;
|
|
@@ -10211,6 +10932,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10211
10932
|
invoice_enabled_fo?: boolean;
|
|
10212
10933
|
invoice_enabled_ho?: boolean;
|
|
10213
10934
|
invoice_enabled_mo?: boolean;
|
|
10935
|
+
payment_gl_account?: string;
|
|
10936
|
+
payment_journal_code?: string;
|
|
10214
10937
|
updated_at?: string;
|
|
10215
10938
|
user_id?: string;
|
|
10216
10939
|
};
|
|
@@ -10431,43 +11154,49 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10431
11154
|
};
|
|
10432
11155
|
twinfield_push_queue: {
|
|
10433
11156
|
Row: {
|
|
11157
|
+
action: string;
|
|
10434
11158
|
attempts: number;
|
|
10435
11159
|
connection_id: string;
|
|
10436
11160
|
created_at: string;
|
|
11161
|
+
customer_id: string | null;
|
|
10437
11162
|
external_id: string | null;
|
|
10438
11163
|
id: string;
|
|
10439
11164
|
idempotency_key: string;
|
|
10440
11165
|
last_error: string | null;
|
|
10441
11166
|
next_attempt_at: string;
|
|
10442
|
-
office_code: string;
|
|
11167
|
+
office_code: string | null;
|
|
10443
11168
|
payload: import("./types").Json;
|
|
10444
11169
|
status: string;
|
|
10445
11170
|
updated_at: string;
|
|
10446
11171
|
};
|
|
10447
11172
|
Insert: {
|
|
11173
|
+
action?: string;
|
|
10448
11174
|
attempts?: number;
|
|
10449
11175
|
connection_id: string;
|
|
10450
11176
|
created_at?: string;
|
|
11177
|
+
customer_id?: string | null;
|
|
10451
11178
|
external_id?: string | null;
|
|
10452
11179
|
id?: string;
|
|
10453
11180
|
idempotency_key: string;
|
|
10454
11181
|
last_error?: string | null;
|
|
10455
11182
|
next_attempt_at?: string;
|
|
10456
|
-
office_code
|
|
11183
|
+
office_code?: string | null;
|
|
10457
11184
|
payload: import("./types").Json;
|
|
10458
11185
|
status?: string;
|
|
10459
11186
|
updated_at?: string;
|
|
10460
11187
|
};
|
|
10461
11188
|
Update: {
|
|
11189
|
+
action?: string;
|
|
10462
11190
|
attempts?: number;
|
|
10463
11191
|
connection_id?: string;
|
|
10464
11192
|
created_at?: string;
|
|
11193
|
+
customer_id?: string | null;
|
|
10465
11194
|
external_id?: string | null;
|
|
10466
11195
|
id?: string;
|
|
10467
11196
|
idempotency_key?: string;
|
|
10468
11197
|
last_error?: string | null;
|
|
10469
11198
|
next_attempt_at?: string;
|
|
10470
|
-
office_code?: string;
|
|
11199
|
+
office_code?: string | null;
|
|
10471
11200
|
payload?: import("./types").Json;
|
|
10472
11201
|
status?: string;
|
|
10473
11202
|
updated_at?: string;
|
|
@@ -10478,6 +11207,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10478
11207
|
isOneToOne: false;
|
|
10479
11208
|
referencedRelation: "twinfield_connections";
|
|
10480
11209
|
referencedColumns: ["id"];
|
|
11210
|
+
}, {
|
|
11211
|
+
foreignKeyName: "twinfield_push_queue_customer_id_fkey";
|
|
11212
|
+
columns: ["customer_id"];
|
|
11213
|
+
isOneToOne: false;
|
|
11214
|
+
referencedRelation: "customers";
|
|
11215
|
+
referencedColumns: ["id"];
|
|
10481
11216
|
}];
|
|
10482
11217
|
};
|
|
10483
11218
|
twinfield_request_metrics: {
|
|
@@ -10665,93 +11400,441 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10665
11400
|
size_bytes: number | null;
|
|
10666
11401
|
};
|
|
10667
11402
|
Insert: {
|
|
10668
|
-
action?: string;
|
|
10669
|
-
attempt_number?: number;
|
|
10670
|
-
caller?: string;
|
|
10671
|
-
client_user_id?: string | null;
|
|
10672
|
-
content_type?: string | null;
|
|
11403
|
+
action?: string;
|
|
11404
|
+
attempt_number?: number;
|
|
11405
|
+
caller?: string;
|
|
11406
|
+
client_user_id?: string | null;
|
|
11407
|
+
content_type?: string | null;
|
|
11408
|
+
created_at?: string;
|
|
11409
|
+
environment: string;
|
|
11410
|
+
error_message?: string | null;
|
|
11411
|
+
filename?: string | null;
|
|
11412
|
+
id?: string;
|
|
11413
|
+
idempotency_key?: string | null;
|
|
11414
|
+
module?: string;
|
|
11415
|
+
path: string;
|
|
11416
|
+
reference_id?: string | null;
|
|
11417
|
+
request_body_hash?: string | null;
|
|
11418
|
+
request_timestamp?: number | null;
|
|
11419
|
+
response_content_type?: string | null;
|
|
11420
|
+
response_status?: number | null;
|
|
11421
|
+
size_bytes?: number | null;
|
|
11422
|
+
};
|
|
11423
|
+
Update: {
|
|
11424
|
+
action?: string;
|
|
11425
|
+
attempt_number?: number;
|
|
11426
|
+
caller?: string;
|
|
11427
|
+
client_user_id?: string | null;
|
|
11428
|
+
content_type?: string | null;
|
|
11429
|
+
created_at?: string;
|
|
11430
|
+
environment?: string;
|
|
11431
|
+
error_message?: string | null;
|
|
11432
|
+
filename?: string | null;
|
|
11433
|
+
id?: string;
|
|
11434
|
+
idempotency_key?: string | null;
|
|
11435
|
+
module?: string;
|
|
11436
|
+
path?: string;
|
|
11437
|
+
reference_id?: string | null;
|
|
11438
|
+
request_body_hash?: string | null;
|
|
11439
|
+
request_timestamp?: number | null;
|
|
11440
|
+
response_content_type?: string | null;
|
|
11441
|
+
response_status?: number | null;
|
|
11442
|
+
size_bytes?: number | null;
|
|
11443
|
+
};
|
|
11444
|
+
Relationships: [];
|
|
11445
|
+
};
|
|
11446
|
+
voorraad_publish_attempts: {
|
|
11447
|
+
Row: {
|
|
11448
|
+
action: string;
|
|
11449
|
+
connection_id: string | null;
|
|
11450
|
+
created_at: string;
|
|
11451
|
+
error: string | null;
|
|
11452
|
+
gateway_attempt_id: string | null;
|
|
11453
|
+
gateway_status: number | null;
|
|
11454
|
+
id: string;
|
|
11455
|
+
intent: string;
|
|
11456
|
+
ok: boolean;
|
|
11457
|
+
request_summary: import("./types").Json | null;
|
|
11458
|
+
trade_item_id: string | null;
|
|
11459
|
+
user_id: string;
|
|
11460
|
+
};
|
|
11461
|
+
Insert: {
|
|
11462
|
+
action: string;
|
|
11463
|
+
connection_id?: string | null;
|
|
11464
|
+
created_at?: string;
|
|
11465
|
+
error?: string | null;
|
|
11466
|
+
gateway_attempt_id?: string | null;
|
|
11467
|
+
gateway_status?: number | null;
|
|
11468
|
+
id?: string;
|
|
11469
|
+
intent: string;
|
|
11470
|
+
ok: boolean;
|
|
11471
|
+
request_summary?: import("./types").Json | null;
|
|
11472
|
+
trade_item_id?: string | null;
|
|
11473
|
+
user_id: string;
|
|
11474
|
+
};
|
|
11475
|
+
Update: {
|
|
11476
|
+
action?: string;
|
|
11477
|
+
connection_id?: string | null;
|
|
11478
|
+
created_at?: string;
|
|
11479
|
+
error?: string | null;
|
|
11480
|
+
gateway_attempt_id?: string | null;
|
|
11481
|
+
gateway_status?: number | null;
|
|
11482
|
+
id?: string;
|
|
11483
|
+
intent?: string;
|
|
11484
|
+
ok?: boolean;
|
|
11485
|
+
request_summary?: import("./types").Json | null;
|
|
11486
|
+
trade_item_id?: string | null;
|
|
11487
|
+
user_id?: string;
|
|
11488
|
+
};
|
|
11489
|
+
Relationships: [];
|
|
11490
|
+
};
|
|
11491
|
+
werkbon_package_ai_rules: {
|
|
11492
|
+
Row: {
|
|
11493
|
+
active: boolean;
|
|
11494
|
+
case_sensitive: boolean;
|
|
11495
|
+
created_at: string;
|
|
11496
|
+
id: string;
|
|
11497
|
+
package_id: string;
|
|
11498
|
+
priority: number;
|
|
11499
|
+
rule_type: string;
|
|
11500
|
+
updated_at: string;
|
|
11501
|
+
value: string;
|
|
11502
|
+
};
|
|
11503
|
+
Insert: {
|
|
11504
|
+
active?: boolean;
|
|
11505
|
+
case_sensitive?: boolean;
|
|
11506
|
+
created_at?: string;
|
|
11507
|
+
id?: string;
|
|
11508
|
+
package_id: string;
|
|
11509
|
+
priority?: number;
|
|
11510
|
+
rule_type: string;
|
|
11511
|
+
updated_at?: string;
|
|
11512
|
+
value: string;
|
|
11513
|
+
};
|
|
11514
|
+
Update: {
|
|
11515
|
+
active?: boolean;
|
|
11516
|
+
case_sensitive?: boolean;
|
|
11517
|
+
created_at?: string;
|
|
11518
|
+
id?: string;
|
|
11519
|
+
package_id?: string;
|
|
11520
|
+
priority?: number;
|
|
11521
|
+
rule_type?: string;
|
|
11522
|
+
updated_at?: string;
|
|
11523
|
+
value?: string;
|
|
11524
|
+
};
|
|
11525
|
+
Relationships: [{
|
|
11526
|
+
foreignKeyName: "werkbon_package_ai_rules_package_id_fkey";
|
|
11527
|
+
columns: ["package_id"];
|
|
11528
|
+
isOneToOne: false;
|
|
11529
|
+
referencedRelation: "werkbon_packages";
|
|
11530
|
+
referencedColumns: ["id"];
|
|
11531
|
+
}];
|
|
11532
|
+
};
|
|
11533
|
+
werkbon_package_categories: {
|
|
11534
|
+
Row: {
|
|
11535
|
+
active: boolean;
|
|
11536
|
+
created_at: string;
|
|
11537
|
+
id: string;
|
|
11538
|
+
kleur: string | null;
|
|
11539
|
+
naam: string;
|
|
11540
|
+
sort_order: number;
|
|
11541
|
+
updated_at: string;
|
|
11542
|
+
};
|
|
11543
|
+
Insert: {
|
|
11544
|
+
active?: boolean;
|
|
11545
|
+
created_at?: string;
|
|
11546
|
+
id?: string;
|
|
11547
|
+
kleur?: string | null;
|
|
11548
|
+
naam: string;
|
|
11549
|
+
sort_order?: number;
|
|
11550
|
+
updated_at?: string;
|
|
11551
|
+
};
|
|
11552
|
+
Update: {
|
|
11553
|
+
active?: boolean;
|
|
11554
|
+
created_at?: string;
|
|
11555
|
+
id?: string;
|
|
11556
|
+
kleur?: string | null;
|
|
11557
|
+
naam?: string;
|
|
11558
|
+
sort_order?: number;
|
|
11559
|
+
updated_at?: string;
|
|
11560
|
+
};
|
|
11561
|
+
Relationships: [];
|
|
11562
|
+
};
|
|
11563
|
+
werkbon_package_lines: {
|
|
11564
|
+
Row: {
|
|
11565
|
+
created_at: string;
|
|
11566
|
+
created_by: string | null;
|
|
11567
|
+
id: string;
|
|
11568
|
+
package_id: string;
|
|
11569
|
+
quantity: number;
|
|
11570
|
+
unit_price_cents_snapshot: number;
|
|
11571
|
+
werkbon_id: string;
|
|
11572
|
+
};
|
|
11573
|
+
Insert: {
|
|
11574
|
+
created_at?: string;
|
|
11575
|
+
created_by?: string | null;
|
|
11576
|
+
id?: string;
|
|
11577
|
+
package_id: string;
|
|
11578
|
+
quantity?: number;
|
|
11579
|
+
unit_price_cents_snapshot?: number;
|
|
11580
|
+
werkbon_id: string;
|
|
11581
|
+
};
|
|
11582
|
+
Update: {
|
|
11583
|
+
created_at?: string;
|
|
11584
|
+
created_by?: string | null;
|
|
11585
|
+
id?: string;
|
|
11586
|
+
package_id?: string;
|
|
11587
|
+
quantity?: number;
|
|
11588
|
+
unit_price_cents_snapshot?: number;
|
|
11589
|
+
werkbon_id?: string;
|
|
11590
|
+
};
|
|
11591
|
+
Relationships: [{
|
|
11592
|
+
foreignKeyName: "werkbon_package_lines_package_id_fkey";
|
|
11593
|
+
columns: ["package_id"];
|
|
11594
|
+
isOneToOne: false;
|
|
11595
|
+
referencedRelation: "werkbon_packages";
|
|
11596
|
+
referencedColumns: ["id"];
|
|
11597
|
+
}, {
|
|
11598
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
11599
|
+
columns: ["werkbon_id"];
|
|
11600
|
+
isOneToOne: false;
|
|
11601
|
+
referencedRelation: "werkbonnen";
|
|
11602
|
+
referencedColumns: ["id"];
|
|
11603
|
+
}];
|
|
11604
|
+
};
|
|
11605
|
+
werkbon_packages: {
|
|
11606
|
+
Row: {
|
|
11607
|
+
active: boolean;
|
|
11608
|
+
ai_tags: string[];
|
|
11609
|
+
category_id: string | null;
|
|
11610
|
+
code: string;
|
|
11611
|
+
created_at: string;
|
|
11612
|
+
default_quantity: number;
|
|
11613
|
+
description: string | null;
|
|
11614
|
+
duration_minutes: number | null;
|
|
11615
|
+
id: string;
|
|
11616
|
+
mandaat_type: string | null;
|
|
11617
|
+
name: string;
|
|
11618
|
+
sort_order: number;
|
|
11619
|
+
unit_price_cents: number;
|
|
11620
|
+
updated_at: string;
|
|
11621
|
+
};
|
|
11622
|
+
Insert: {
|
|
11623
|
+
active?: boolean;
|
|
11624
|
+
ai_tags?: string[];
|
|
11625
|
+
category_id?: string | null;
|
|
11626
|
+
code: string;
|
|
11627
|
+
created_at?: string;
|
|
11628
|
+
default_quantity?: number;
|
|
11629
|
+
description?: string | null;
|
|
11630
|
+
duration_minutes?: number | null;
|
|
11631
|
+
id?: string;
|
|
11632
|
+
mandaat_type?: string | null;
|
|
11633
|
+
name: string;
|
|
11634
|
+
sort_order?: number;
|
|
11635
|
+
unit_price_cents?: number;
|
|
11636
|
+
updated_at?: string;
|
|
11637
|
+
};
|
|
11638
|
+
Update: {
|
|
11639
|
+
active?: boolean;
|
|
11640
|
+
ai_tags?: string[];
|
|
11641
|
+
category_id?: string | null;
|
|
11642
|
+
code?: string;
|
|
11643
|
+
created_at?: string;
|
|
11644
|
+
default_quantity?: number;
|
|
11645
|
+
description?: string | null;
|
|
11646
|
+
duration_minutes?: number | null;
|
|
11647
|
+
id?: string;
|
|
11648
|
+
mandaat_type?: string | null;
|
|
11649
|
+
name?: string;
|
|
11650
|
+
sort_order?: number;
|
|
11651
|
+
unit_price_cents?: number;
|
|
11652
|
+
updated_at?: string;
|
|
11653
|
+
};
|
|
11654
|
+
Relationships: [{
|
|
11655
|
+
foreignKeyName: "werkbon_packages_category_id_fkey";
|
|
11656
|
+
columns: ["category_id"];
|
|
11657
|
+
isOneToOne: false;
|
|
11658
|
+
referencedRelation: "werkbon_package_categories";
|
|
11659
|
+
referencedColumns: ["id"];
|
|
11660
|
+
}];
|
|
11661
|
+
};
|
|
11662
|
+
werkbon_photos: {
|
|
11663
|
+
Row: {
|
|
11664
|
+
created_at: string;
|
|
11665
|
+
id: string;
|
|
11666
|
+
storage_path: string;
|
|
11667
|
+
user_id: string;
|
|
11668
|
+
werkbon_id: string;
|
|
11669
|
+
};
|
|
11670
|
+
Insert: {
|
|
10673
11671
|
created_at?: string;
|
|
10674
|
-
environment: string;
|
|
10675
|
-
error_message?: string | null;
|
|
10676
|
-
filename?: string | null;
|
|
10677
11672
|
id?: string;
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
reference_id?: string | null;
|
|
10682
|
-
request_body_hash?: string | null;
|
|
10683
|
-
request_timestamp?: number | null;
|
|
10684
|
-
response_content_type?: string | null;
|
|
10685
|
-
response_status?: number | null;
|
|
10686
|
-
size_bytes?: number | null;
|
|
11673
|
+
storage_path: string;
|
|
11674
|
+
user_id: string;
|
|
11675
|
+
werkbon_id: string;
|
|
10687
11676
|
};
|
|
10688
11677
|
Update: {
|
|
10689
|
-
action?: string;
|
|
10690
|
-
attempt_number?: number;
|
|
10691
|
-
caller?: string;
|
|
10692
|
-
client_user_id?: string | null;
|
|
10693
|
-
content_type?: string | null;
|
|
10694
11678
|
created_at?: string;
|
|
10695
|
-
environment?: string;
|
|
10696
|
-
error_message?: string | null;
|
|
10697
|
-
filename?: string | null;
|
|
10698
11679
|
id?: string;
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
reference_id?: string | null;
|
|
10703
|
-
request_body_hash?: string | null;
|
|
10704
|
-
request_timestamp?: number | null;
|
|
10705
|
-
response_content_type?: string | null;
|
|
10706
|
-
response_status?: number | null;
|
|
10707
|
-
size_bytes?: number | null;
|
|
11680
|
+
storage_path?: string;
|
|
11681
|
+
user_id?: string;
|
|
11682
|
+
werkbon_id?: string;
|
|
10708
11683
|
};
|
|
10709
|
-
Relationships: [
|
|
11684
|
+
Relationships: [{
|
|
11685
|
+
foreignKeyName: "werkbon_photos_werkbon_id_fkey";
|
|
11686
|
+
columns: ["werkbon_id"];
|
|
11687
|
+
isOneToOne: false;
|
|
11688
|
+
referencedRelation: "werkbonnen";
|
|
11689
|
+
referencedColumns: ["id"];
|
|
11690
|
+
}];
|
|
10710
11691
|
};
|
|
10711
|
-
|
|
11692
|
+
werkbon_time_logs: {
|
|
10712
11693
|
Row: {
|
|
10713
|
-
|
|
10714
|
-
connection_id: string | null;
|
|
11694
|
+
activity: string;
|
|
10715
11695
|
created_at: string;
|
|
10716
|
-
|
|
10717
|
-
gateway_attempt_id: string | null;
|
|
10718
|
-
gateway_status: number | null;
|
|
11696
|
+
ended_at: string | null;
|
|
10719
11697
|
id: string;
|
|
10720
|
-
|
|
10721
|
-
ok: boolean;
|
|
10722
|
-
request_summary: import("./types").Json | null;
|
|
10723
|
-
trade_item_id: string | null;
|
|
11698
|
+
started_at: string;
|
|
10724
11699
|
user_id: string;
|
|
11700
|
+
werkbon_id: string;
|
|
10725
11701
|
};
|
|
10726
11702
|
Insert: {
|
|
10727
|
-
|
|
10728
|
-
connection_id?: string | null;
|
|
11703
|
+
activity: string;
|
|
10729
11704
|
created_at?: string;
|
|
10730
|
-
|
|
10731
|
-
gateway_attempt_id?: string | null;
|
|
10732
|
-
gateway_status?: number | null;
|
|
11705
|
+
ended_at?: string | null;
|
|
10733
11706
|
id?: string;
|
|
10734
|
-
|
|
10735
|
-
ok: boolean;
|
|
10736
|
-
request_summary?: import("./types").Json | null;
|
|
10737
|
-
trade_item_id?: string | null;
|
|
11707
|
+
started_at?: string;
|
|
10738
11708
|
user_id: string;
|
|
11709
|
+
werkbon_id: string;
|
|
10739
11710
|
};
|
|
10740
11711
|
Update: {
|
|
10741
|
-
|
|
10742
|
-
connection_id?: string | null;
|
|
11712
|
+
activity?: string;
|
|
10743
11713
|
created_at?: string;
|
|
10744
|
-
|
|
10745
|
-
gateway_attempt_id?: string | null;
|
|
10746
|
-
gateway_status?: number | null;
|
|
11714
|
+
ended_at?: string | null;
|
|
10747
11715
|
id?: string;
|
|
10748
|
-
|
|
10749
|
-
ok?: boolean;
|
|
10750
|
-
request_summary?: import("./types").Json | null;
|
|
10751
|
-
trade_item_id?: string | null;
|
|
11716
|
+
started_at?: string;
|
|
10752
11717
|
user_id?: string;
|
|
11718
|
+
werkbon_id?: string;
|
|
10753
11719
|
};
|
|
10754
|
-
Relationships: [
|
|
11720
|
+
Relationships: [{
|
|
11721
|
+
foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
|
|
11722
|
+
columns: ["werkbon_id"];
|
|
11723
|
+
isOneToOne: false;
|
|
11724
|
+
referencedRelation: "werkbonnen";
|
|
11725
|
+
referencedColumns: ["id"];
|
|
11726
|
+
}];
|
|
11727
|
+
};
|
|
11728
|
+
werkbonnen: {
|
|
11729
|
+
Row: {
|
|
11730
|
+
assigned_user_id: string | null;
|
|
11731
|
+
budget_mandate_cents: number;
|
|
11732
|
+
complaint_description: string | null;
|
|
11733
|
+
created_at: string;
|
|
11734
|
+
created_by: string | null;
|
|
11735
|
+
customer_id: string | null;
|
|
11736
|
+
externe_referentie: string | null;
|
|
11737
|
+
first_time_fix: boolean | null;
|
|
11738
|
+
id: string;
|
|
11739
|
+
internal_notes: string | null;
|
|
11740
|
+
parent_werkbon_id: string | null;
|
|
11741
|
+
parsed_payload: import("./types").Json | null;
|
|
11742
|
+
planning_status: string;
|
|
11743
|
+
project_number: string | null;
|
|
11744
|
+
room_number: string | null;
|
|
11745
|
+
scheduled_end_time: string | null;
|
|
11746
|
+
scheduled_start_time: string | null;
|
|
11747
|
+
sequence_number: number;
|
|
11748
|
+
source_email_meta: import("./types").Json | null;
|
|
11749
|
+
source_mailbox_message_id: string | null;
|
|
11750
|
+
source_pdf_path: string | null;
|
|
11751
|
+
source_type: string;
|
|
11752
|
+
status: string;
|
|
11753
|
+
technician_id: string | null;
|
|
11754
|
+
technician_notes: string | null;
|
|
11755
|
+
technician_notes_raw: string | null;
|
|
11756
|
+
technician_task_description: string | null;
|
|
11757
|
+
updated_at: string;
|
|
11758
|
+
version: number;
|
|
11759
|
+
work_address: string | null;
|
|
11760
|
+
};
|
|
11761
|
+
Insert: {
|
|
11762
|
+
assigned_user_id?: string | null;
|
|
11763
|
+
budget_mandate_cents?: number;
|
|
11764
|
+
complaint_description?: string | null;
|
|
11765
|
+
created_at?: string;
|
|
11766
|
+
created_by?: string | null;
|
|
11767
|
+
customer_id?: string | null;
|
|
11768
|
+
externe_referentie?: string | null;
|
|
11769
|
+
first_time_fix?: boolean | null;
|
|
11770
|
+
id?: string;
|
|
11771
|
+
internal_notes?: string | null;
|
|
11772
|
+
parent_werkbon_id?: string | null;
|
|
11773
|
+
parsed_payload?: import("./types").Json | null;
|
|
11774
|
+
planning_status?: string;
|
|
11775
|
+
project_number?: string | null;
|
|
11776
|
+
room_number?: string | null;
|
|
11777
|
+
scheduled_end_time?: string | null;
|
|
11778
|
+
scheduled_start_time?: string | null;
|
|
11779
|
+
sequence_number: number;
|
|
11780
|
+
source_email_meta?: import("./types").Json | null;
|
|
11781
|
+
source_mailbox_message_id?: string | null;
|
|
11782
|
+
source_pdf_path?: string | null;
|
|
11783
|
+
source_type?: string;
|
|
11784
|
+
status?: string;
|
|
11785
|
+
technician_id?: string | null;
|
|
11786
|
+
technician_notes?: string | null;
|
|
11787
|
+
technician_notes_raw?: string | null;
|
|
11788
|
+
technician_task_description?: string | null;
|
|
11789
|
+
updated_at?: string;
|
|
11790
|
+
version?: number;
|
|
11791
|
+
work_address?: string | null;
|
|
11792
|
+
};
|
|
11793
|
+
Update: {
|
|
11794
|
+
assigned_user_id?: string | null;
|
|
11795
|
+
budget_mandate_cents?: number;
|
|
11796
|
+
complaint_description?: string | null;
|
|
11797
|
+
created_at?: string;
|
|
11798
|
+
created_by?: string | null;
|
|
11799
|
+
customer_id?: string | null;
|
|
11800
|
+
externe_referentie?: string | null;
|
|
11801
|
+
first_time_fix?: boolean | null;
|
|
11802
|
+
id?: string;
|
|
11803
|
+
internal_notes?: string | null;
|
|
11804
|
+
parent_werkbon_id?: string | null;
|
|
11805
|
+
parsed_payload?: import("./types").Json | null;
|
|
11806
|
+
planning_status?: string;
|
|
11807
|
+
project_number?: string | null;
|
|
11808
|
+
room_number?: string | null;
|
|
11809
|
+
scheduled_end_time?: string | null;
|
|
11810
|
+
scheduled_start_time?: string | null;
|
|
11811
|
+
sequence_number?: number;
|
|
11812
|
+
source_email_meta?: import("./types").Json | null;
|
|
11813
|
+
source_mailbox_message_id?: string | null;
|
|
11814
|
+
source_pdf_path?: string | null;
|
|
11815
|
+
source_type?: string;
|
|
11816
|
+
status?: string;
|
|
11817
|
+
technician_id?: string | null;
|
|
11818
|
+
technician_notes?: string | null;
|
|
11819
|
+
technician_notes_raw?: string | null;
|
|
11820
|
+
technician_task_description?: string | null;
|
|
11821
|
+
updated_at?: string;
|
|
11822
|
+
version?: number;
|
|
11823
|
+
work_address?: string | null;
|
|
11824
|
+
};
|
|
11825
|
+
Relationships: [{
|
|
11826
|
+
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
11827
|
+
columns: ["parent_werkbon_id"];
|
|
11828
|
+
isOneToOne: false;
|
|
11829
|
+
referencedRelation: "werkbonnen";
|
|
11830
|
+
referencedColumns: ["id"];
|
|
11831
|
+
}, {
|
|
11832
|
+
foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
|
|
11833
|
+
columns: ["source_mailbox_message_id"];
|
|
11834
|
+
isOneToOne: false;
|
|
11835
|
+
referencedRelation: "mailbox_messages";
|
|
11836
|
+
referencedColumns: ["id"];
|
|
11837
|
+
}];
|
|
10755
11838
|
};
|
|
10756
11839
|
work_order_monteurs: {
|
|
10757
11840
|
Row: {
|
|
@@ -10923,6 +12006,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10923
12006
|
created_at: string | null;
|
|
10924
12007
|
created_by: string | null;
|
|
10925
12008
|
display_name: string | null;
|
|
12009
|
+
graph_subscription_expires_at: string | null;
|
|
12010
|
+
graph_subscription_id: string | null;
|
|
10926
12011
|
has_access_token: boolean | null;
|
|
10927
12012
|
has_client_id: boolean | null;
|
|
10928
12013
|
has_client_secret: boolean | null;
|
|
@@ -10940,6 +12025,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10940
12025
|
oauth_mode: string | null;
|
|
10941
12026
|
provider: string | null;
|
|
10942
12027
|
purpose_assignments: import("./types").Json | null;
|
|
12028
|
+
realtime_mode: string | null;
|
|
10943
12029
|
scopes: string[] | null;
|
|
10944
12030
|
smtp_host: string | null;
|
|
10945
12031
|
smtp_port: number | null;
|
|
@@ -10954,6 +12040,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10954
12040
|
created_at?: string | null;
|
|
10955
12041
|
created_by?: string | null;
|
|
10956
12042
|
display_name?: string | null;
|
|
12043
|
+
graph_subscription_expires_at?: string | null;
|
|
12044
|
+
graph_subscription_id?: string | null;
|
|
10957
12045
|
has_access_token?: never;
|
|
10958
12046
|
has_client_id?: never;
|
|
10959
12047
|
has_client_secret?: never;
|
|
@@ -10971,6 +12059,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10971
12059
|
oauth_mode?: string | null;
|
|
10972
12060
|
provider?: string | null;
|
|
10973
12061
|
purpose_assignments?: import("./types").Json | null;
|
|
12062
|
+
realtime_mode?: string | null;
|
|
10974
12063
|
scopes?: string[] | null;
|
|
10975
12064
|
smtp_host?: string | null;
|
|
10976
12065
|
smtp_port?: number | null;
|
|
@@ -10985,6 +12074,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10985
12074
|
created_at?: string | null;
|
|
10986
12075
|
created_by?: string | null;
|
|
10987
12076
|
display_name?: string | null;
|
|
12077
|
+
graph_subscription_expires_at?: string | null;
|
|
12078
|
+
graph_subscription_id?: string | null;
|
|
10988
12079
|
has_access_token?: never;
|
|
10989
12080
|
has_client_id?: never;
|
|
10990
12081
|
has_client_secret?: never;
|
|
@@ -11002,6 +12093,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11002
12093
|
oauth_mode?: string | null;
|
|
11003
12094
|
provider?: string | null;
|
|
11004
12095
|
purpose_assignments?: import("./types").Json | null;
|
|
12096
|
+
realtime_mode?: string | null;
|
|
11005
12097
|
scopes?: string[] | null;
|
|
11006
12098
|
smtp_host?: string | null;
|
|
11007
12099
|
smtp_port?: number | null;
|
|
@@ -11112,6 +12204,25 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11112
12204
|
};
|
|
11113
12205
|
Relationships: [];
|
|
11114
12206
|
};
|
|
12207
|
+
floriday_customer_discounts: {
|
|
12208
|
+
Row: {
|
|
12209
|
+
base_price: number | null;
|
|
12210
|
+
buyer_organization_id: string | null;
|
|
12211
|
+
currency: string | null;
|
|
12212
|
+
discount_type: string | null;
|
|
12213
|
+
discount_value: number | null;
|
|
12214
|
+
min_quantity: number | null;
|
|
12215
|
+
net_price: number | null;
|
|
12216
|
+
product_group_id: string | null;
|
|
12217
|
+
raw: import("./types").Json | null;
|
|
12218
|
+
source: string | null;
|
|
12219
|
+
source_id: string | null;
|
|
12220
|
+
trade_item_id: string | null;
|
|
12221
|
+
valid_from: string | null;
|
|
12222
|
+
valid_until: string | null;
|
|
12223
|
+
};
|
|
12224
|
+
Relationships: [];
|
|
12225
|
+
};
|
|
11115
12226
|
local_customer_discounts: {
|
|
11116
12227
|
Row: {
|
|
11117
12228
|
base_price: number | null;
|
|
@@ -11448,6 +12559,21 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11448
12559
|
};
|
|
11449
12560
|
Returns: string;
|
|
11450
12561
|
};
|
|
12562
|
+
ai_usage_by_module: {
|
|
12563
|
+
Args: {
|
|
12564
|
+
_from: string;
|
|
12565
|
+
_to: string;
|
|
12566
|
+
};
|
|
12567
|
+
Returns: {
|
|
12568
|
+
calls: number;
|
|
12569
|
+
consumer_module_id: string;
|
|
12570
|
+
cost_usd: number;
|
|
12571
|
+
errors: number;
|
|
12572
|
+
input_tokens: number;
|
|
12573
|
+
output_tokens: number;
|
|
12574
|
+
total_tokens: number;
|
|
12575
|
+
}[];
|
|
12576
|
+
};
|
|
11451
12577
|
apply_stock_consumption: {
|
|
11452
12578
|
Args: {
|
|
11453
12579
|
p_order_id: string;
|
|
@@ -11539,6 +12665,33 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11539
12665
|
};
|
|
11540
12666
|
Returns: import("./types").Json;
|
|
11541
12667
|
};
|
|
12668
|
+
claim_twinfield_push_batch: {
|
|
12669
|
+
Args: {
|
|
12670
|
+
_limit?: number;
|
|
12671
|
+
};
|
|
12672
|
+
Returns: {
|
|
12673
|
+
action: string;
|
|
12674
|
+
attempts: number;
|
|
12675
|
+
connection_id: string;
|
|
12676
|
+
created_at: string;
|
|
12677
|
+
customer_id: string | null;
|
|
12678
|
+
external_id: string | null;
|
|
12679
|
+
id: string;
|
|
12680
|
+
idempotency_key: string;
|
|
12681
|
+
last_error: string | null;
|
|
12682
|
+
next_attempt_at: string;
|
|
12683
|
+
office_code: string | null;
|
|
12684
|
+
payload: import("./types").Json;
|
|
12685
|
+
status: string;
|
|
12686
|
+
updated_at: string;
|
|
12687
|
+
}[];
|
|
12688
|
+
SetofOptions: {
|
|
12689
|
+
from: "*";
|
|
12690
|
+
to: "twinfield_push_queue";
|
|
12691
|
+
isOneToOne: false;
|
|
12692
|
+
isSetofReturn: true;
|
|
12693
|
+
};
|
|
12694
|
+
};
|
|
11542
12695
|
cleanup_old_bookings: {
|
|
11543
12696
|
Args: never;
|
|
11544
12697
|
Returns: undefined;
|
|
@@ -11597,6 +12750,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11597
12750
|
Args: never;
|
|
11598
12751
|
Returns: string;
|
|
11599
12752
|
};
|
|
12753
|
+
custom_access_token_hook: {
|
|
12754
|
+
Args: {
|
|
12755
|
+
event: import("./types").Json;
|
|
12756
|
+
};
|
|
12757
|
+
Returns: import("./types").Json;
|
|
12758
|
+
};
|
|
11600
12759
|
dashboard_alert_counts: {
|
|
11601
12760
|
Args: never;
|
|
11602
12761
|
Returns: import("./types").Json;
|
|
@@ -11793,6 +12952,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11793
12952
|
resource: string;
|
|
11794
12953
|
}[];
|
|
11795
12954
|
};
|
|
12955
|
+
get_floriday_agreements_active: {
|
|
12956
|
+
Args: {
|
|
12957
|
+
p_on_date?: string;
|
|
12958
|
+
};
|
|
12959
|
+
Returns: {
|
|
12960
|
+
buyer_organization_id: string;
|
|
12961
|
+
data: import("./types").Json;
|
|
12962
|
+
floriday_id: string;
|
|
12963
|
+
status: string;
|
|
12964
|
+
valid_from: string;
|
|
12965
|
+
valid_until: string;
|
|
12966
|
+
}[];
|
|
12967
|
+
};
|
|
11796
12968
|
get_floriday_clock_supplies_window: {
|
|
11797
12969
|
Args: {
|
|
11798
12970
|
p_from: string;
|
|
@@ -11953,6 +13125,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11953
13125
|
};
|
|
11954
13126
|
Returns: string;
|
|
11955
13127
|
};
|
|
13128
|
+
has_module_permission: {
|
|
13129
|
+
Args: {
|
|
13130
|
+
_min: string;
|
|
13131
|
+
_module_id: string;
|
|
13132
|
+
_user_id: string;
|
|
13133
|
+
};
|
|
13134
|
+
Returns: boolean;
|
|
13135
|
+
};
|
|
11956
13136
|
has_role: {
|
|
11957
13137
|
Args: {
|
|
11958
13138
|
_role: Database["public"]["Enums"]["app_role"];
|
|
@@ -11960,6 +13140,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11960
13140
|
};
|
|
11961
13141
|
Returns: boolean;
|
|
11962
13142
|
};
|
|
13143
|
+
has_twinfield_link: {
|
|
13144
|
+
Args: never;
|
|
13145
|
+
Returns: boolean;
|
|
13146
|
+
};
|
|
11963
13147
|
is_authenticated: {
|
|
11964
13148
|
Args: never;
|
|
11965
13149
|
Returns: boolean;
|
|
@@ -11974,6 +13158,37 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11974
13158
|
};
|
|
11975
13159
|
Returns: boolean;
|
|
11976
13160
|
};
|
|
13161
|
+
jwt_has_role: {
|
|
13162
|
+
Args: {
|
|
13163
|
+
_role: Database["public"]["Enums"]["app_role"];
|
|
13164
|
+
};
|
|
13165
|
+
Returns: boolean;
|
|
13166
|
+
};
|
|
13167
|
+
list_monteurs: {
|
|
13168
|
+
Args: never;
|
|
13169
|
+
Returns: {
|
|
13170
|
+
avatar_url: string;
|
|
13171
|
+
display_name: string;
|
|
13172
|
+
email: string;
|
|
13173
|
+
id: string;
|
|
13174
|
+
}[];
|
|
13175
|
+
};
|
|
13176
|
+
list_my_planning_items: {
|
|
13177
|
+
Args: {
|
|
13178
|
+
_from: string;
|
|
13179
|
+
_to: string;
|
|
13180
|
+
};
|
|
13181
|
+
Returns: {
|
|
13182
|
+
assigned_monteur_id: string;
|
|
13183
|
+
end_at: string;
|
|
13184
|
+
id: string;
|
|
13185
|
+
notes: string;
|
|
13186
|
+
role: string;
|
|
13187
|
+
start_at: string;
|
|
13188
|
+
status: Database["public"]["Enums"]["planning_item_status"];
|
|
13189
|
+
werkbon_id: string;
|
|
13190
|
+
}[];
|
|
13191
|
+
};
|
|
11977
13192
|
local_effective_price: {
|
|
11978
13193
|
Args: {
|
|
11979
13194
|
_customer_id: string;
|
|
@@ -11990,6 +13205,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
11990
13205
|
source_id: string;
|
|
11991
13206
|
}[];
|
|
11992
13207
|
};
|
|
13208
|
+
log_ai_call: {
|
|
13209
|
+
Args: {
|
|
13210
|
+
_consumer_module_id: string;
|
|
13211
|
+
_cost_usd: number;
|
|
13212
|
+
_duration_ms: number;
|
|
13213
|
+
_error_code: string;
|
|
13214
|
+
_error_message: string;
|
|
13215
|
+
_input_tokens: number;
|
|
13216
|
+
_model_slug: string;
|
|
13217
|
+
_output_tokens: number;
|
|
13218
|
+
_provider_slug: string;
|
|
13219
|
+
_status: string;
|
|
13220
|
+
_total_tokens: number;
|
|
13221
|
+
};
|
|
13222
|
+
Returns: string;
|
|
13223
|
+
};
|
|
11993
13224
|
mark_offer_clicked: {
|
|
11994
13225
|
Args: {
|
|
11995
13226
|
p_code: string;
|
|
@@ -12041,6 +13272,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12041
13272
|
};
|
|
12042
13273
|
Returns: string;
|
|
12043
13274
|
};
|
|
13275
|
+
next_twinfield_code: {
|
|
13276
|
+
Args: never;
|
|
13277
|
+
Returns: string;
|
|
13278
|
+
};
|
|
12044
13279
|
next_work_order_number: {
|
|
12045
13280
|
Args: {
|
|
12046
13281
|
p_parent_work_order_id?: string;
|
|
@@ -12176,6 +13411,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12176
13411
|
};
|
|
12177
13412
|
Returns: number;
|
|
12178
13413
|
};
|
|
13414
|
+
reorder_customer_price_groups: {
|
|
13415
|
+
Args: {
|
|
13416
|
+
_ids: string[];
|
|
13417
|
+
};
|
|
13418
|
+
Returns: undefined;
|
|
13419
|
+
};
|
|
12179
13420
|
reset_floriday_sync_cursor: {
|
|
12180
13421
|
Args: {
|
|
12181
13422
|
p_connection_id: string;
|
|
@@ -12211,6 +13452,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12211
13452
|
};
|
|
12212
13453
|
Returns: string;
|
|
12213
13454
|
};
|
|
13455
|
+
retry_twinfield_push: {
|
|
13456
|
+
Args: {
|
|
13457
|
+
_customer_id: string;
|
|
13458
|
+
};
|
|
13459
|
+
Returns: number;
|
|
13460
|
+
};
|
|
12214
13461
|
reverse_production: {
|
|
12215
13462
|
Args: {
|
|
12216
13463
|
p_connection_id?: string;
|
|
@@ -12228,6 +13475,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12228
13475
|
};
|
|
12229
13476
|
Returns: number;
|
|
12230
13477
|
};
|
|
13478
|
+
schedule_floriday_agreement_calloffs_sync: {
|
|
13479
|
+
Args: {
|
|
13480
|
+
p_apikey: string;
|
|
13481
|
+
p_url: string;
|
|
13482
|
+
};
|
|
13483
|
+
Returns: number;
|
|
13484
|
+
};
|
|
13485
|
+
schedule_floriday_agreements_sync: {
|
|
13486
|
+
Args: {
|
|
13487
|
+
p_apikey: string;
|
|
13488
|
+
p_url: string;
|
|
13489
|
+
};
|
|
13490
|
+
Returns: number;
|
|
13491
|
+
};
|
|
12231
13492
|
schedule_floriday_base_items_sync: {
|
|
12232
13493
|
Args: {
|
|
12233
13494
|
p_apikey: string;
|
|
@@ -12478,6 +13739,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12478
13739
|
Args: never;
|
|
12479
13740
|
Returns: number;
|
|
12480
13741
|
};
|
|
13742
|
+
set_planning_status: {
|
|
13743
|
+
Args: {
|
|
13744
|
+
_id: string;
|
|
13745
|
+
_status: Database["public"]["Enums"]["planning_item_status"];
|
|
13746
|
+
};
|
|
13747
|
+
Returns: undefined;
|
|
13748
|
+
};
|
|
12481
13749
|
show_limit: {
|
|
12482
13750
|
Args: never;
|
|
12483
13751
|
Returns: number;
|
|
@@ -12547,9 +13815,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
12547
13815
|
};
|
|
12548
13816
|
};
|
|
12549
13817
|
Enums: {
|
|
12550
|
-
app_role: "admin" | "
|
|
13818
|
+
app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
|
|
12551
13819
|
exact_env: "staging" | "live";
|
|
12552
13820
|
exact_push_status: "pending" | "sent" | "error";
|
|
13821
|
+
itk_customer_segment: "Business" | "Private";
|
|
13822
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
13823
|
+
planning_item_status: "gepland" | "bezig" | "afgerond" | "geannuleerd" | "concept" | "vrijgegeven";
|
|
12553
13824
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12554
13825
|
};
|
|
12555
13826
|
CompositeTypes: { [_ in never]: never; };
|