@flowselections/floriday-afhandeling-module 1.0.0

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.
Files changed (41) hide show
  1. package/dist-lib/_core-safelist.d.ts +2 -0
  2. package/dist-lib/_core-safelist.d.ts.map +1 -0
  3. package/dist-lib/_core-safelist.js +18 -0
  4. package/dist-lib/components/TemplatePage.d.ts +2 -0
  5. package/dist-lib/components/TemplatePage.d.ts.map +1 -0
  6. package/dist-lib/components/TemplatePage.js +4 -0
  7. package/dist-lib/components/settings/MijnModuleSettingsCard.d.ts +2 -0
  8. package/dist-lib/components/settings/MijnModuleSettingsCard.d.ts.map +1 -0
  9. package/dist-lib/components/settings/MijnModuleSettingsCard.js +42 -0
  10. package/dist-lib/hooks/useMijnModuleData.d.ts +13 -0
  11. package/dist-lib/hooks/useMijnModuleData.d.ts.map +1 -0
  12. package/dist-lib/hooks/useMijnModuleData.js +49 -0
  13. package/dist-lib/index.d.ts +5 -0
  14. package/dist-lib/index.d.ts.map +1 -0
  15. package/dist-lib/index.js +17 -0
  16. package/dist-lib/integrations/supabase/auth-attacher.d.ts +2 -0
  17. package/dist-lib/integrations/supabase/auth-attacher.d.ts.map +1 -0
  18. package/dist-lib/integrations/supabase/auth-attacher.js +12 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1560 -0
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -0
  21. package/dist-lib/integrations/supabase/auth-middleware.js +52 -0
  22. package/dist-lib/integrations/supabase/client.d.ts +1556 -0
  23. package/dist-lib/integrations/supabase/client.d.ts.map +1 -0
  24. package/dist-lib/integrations/supabase/client.js +13 -0
  25. package/dist-lib/integrations/supabase/client.server.d.ts +1556 -0
  26. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -0
  27. package/dist-lib/integrations/supabase/client.server.js +30 -0
  28. package/dist-lib/integrations/supabase/types.d.ts +1656 -0
  29. package/dist-lib/integrations/supabase/types.d.ts.map +1 -0
  30. package/dist-lib/integrations/supabase/types.js +8 -0
  31. package/dist-lib/lib/floriday.functions.d.ts +1572 -0
  32. package/dist-lib/lib/floriday.functions.d.ts.map +1 -0
  33. package/dist-lib/lib/floriday.functions.js +125 -0
  34. package/dist-lib/lib/utils.d.ts +3 -0
  35. package/dist-lib/lib/utils.d.ts.map +1 -0
  36. package/dist-lib/lib/utils.js +5 -0
  37. package/dist-lib/lib/validationSchemas.d.ts +15 -0
  38. package/dist-lib/lib/validationSchemas.d.ts.map +1 -0
  39. package/dist-lib/lib/validationSchemas.js +25 -0
  40. package/dist-lib/styles.css +1 -0
  41. package/package.json +66 -0
@@ -0,0 +1,1572 @@
1
+ export interface FloridayOrder {
2
+ id: string;
3
+ orderNumber: string;
4
+ customerName: string;
5
+ deliveryDate: string | null;
6
+ deliveryType: string;
7
+ status: string;
8
+ lineCount: number;
9
+ totalAmount: number | null;
10
+ currency: string | null;
11
+ }
12
+ export declare const getFloridayOrders: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
13
+ supabase: import("@supabase/supabase-js").SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
14
+ Tables: {
15
+ bugs: {
16
+ Row: {
17
+ attachment_url: string | null;
18
+ created_at: string;
19
+ description: string;
20
+ id: string;
21
+ priority: string;
22
+ status: string;
23
+ title: string;
24
+ updated_at: string;
25
+ user_id: string;
26
+ };
27
+ Insert: {
28
+ attachment_url?: string | null;
29
+ created_at?: string;
30
+ description: string;
31
+ id?: string;
32
+ priority?: string;
33
+ status?: string;
34
+ title: string;
35
+ updated_at?: string;
36
+ user_id: string;
37
+ };
38
+ Update: {
39
+ attachment_url?: string | null;
40
+ created_at?: string;
41
+ description?: string;
42
+ id?: string;
43
+ priority?: string;
44
+ status?: string;
45
+ title?: string;
46
+ updated_at?: string;
47
+ user_id?: string;
48
+ };
49
+ Relationships: [];
50
+ };
51
+ collections: {
52
+ Row: {
53
+ created_at: string;
54
+ created_by: string | null;
55
+ id: string;
56
+ name: string;
57
+ updated_at: string;
58
+ };
59
+ Insert: {
60
+ created_at?: string;
61
+ created_by?: string | null;
62
+ id?: string;
63
+ name: string;
64
+ updated_at?: string;
65
+ };
66
+ Update: {
67
+ created_at?: string;
68
+ created_by?: string | null;
69
+ id?: string;
70
+ name?: string;
71
+ updated_at?: string;
72
+ };
73
+ Relationships: [];
74
+ };
75
+ customer_audit_log: {
76
+ Row: {
77
+ action: string;
78
+ changes: import("../integrations/supabase/types").Json;
79
+ created_at: string;
80
+ customer_id: string;
81
+ id: string;
82
+ user_id: string | null;
83
+ };
84
+ Insert: {
85
+ action: string;
86
+ changes?: import("../integrations/supabase/types").Json;
87
+ created_at?: string;
88
+ customer_id: string;
89
+ id?: string;
90
+ user_id?: string | null;
91
+ };
92
+ Update: {
93
+ action?: string;
94
+ changes?: import("../integrations/supabase/types").Json;
95
+ created_at?: string;
96
+ customer_id?: string;
97
+ id?: string;
98
+ user_id?: string | null;
99
+ };
100
+ Relationships: [{
101
+ foreignKeyName: "customer_audit_log_customer_id_fkey";
102
+ columns: ["customer_id"];
103
+ isOneToOne: false;
104
+ referencedRelation: "customers";
105
+ referencedColumns: ["id"];
106
+ }];
107
+ };
108
+ customer_contacts: {
109
+ Row: {
110
+ created_at: string;
111
+ customer_id: string;
112
+ email: string | null;
113
+ floriday_contact_id: string | null;
114
+ full_name: string;
115
+ id: string;
116
+ is_active: boolean;
117
+ job_title: string | null;
118
+ phone: string | null;
119
+ photo_url: string | null;
120
+ raw: import("../integrations/supabase/types").Json | null;
121
+ updated_at: string;
122
+ };
123
+ Insert: {
124
+ created_at?: string;
125
+ customer_id: string;
126
+ email?: string | null;
127
+ floriday_contact_id?: string | null;
128
+ full_name: string;
129
+ id?: string;
130
+ is_active?: boolean;
131
+ job_title?: string | null;
132
+ phone?: string | null;
133
+ photo_url?: string | null;
134
+ raw?: import("../integrations/supabase/types").Json | null;
135
+ updated_at?: string;
136
+ };
137
+ Update: {
138
+ created_at?: string;
139
+ customer_id?: string;
140
+ email?: string | null;
141
+ floriday_contact_id?: string | null;
142
+ full_name?: string;
143
+ id?: string;
144
+ is_active?: boolean;
145
+ job_title?: string | null;
146
+ phone?: string | null;
147
+ photo_url?: string | null;
148
+ raw?: import("../integrations/supabase/types").Json | null;
149
+ updated_at?: string;
150
+ };
151
+ Relationships: [{
152
+ foreignKeyName: "customer_contacts_customer_id_fkey";
153
+ columns: ["customer_id"];
154
+ isOneToOne: false;
155
+ referencedRelation: "customers";
156
+ referencedColumns: ["id"];
157
+ }];
158
+ };
159
+ customer_delivery_locations: {
160
+ Row: {
161
+ address_line: string | null;
162
+ city: string | null;
163
+ country: string | null;
164
+ created_at: string;
165
+ customer_id: string;
166
+ floriday_location_id: string | null;
167
+ gln: string | null;
168
+ id: string;
169
+ is_primary: boolean;
170
+ name: string | null;
171
+ postal_code: string | null;
172
+ raw: import("../integrations/supabase/types").Json | null;
173
+ updated_at: string;
174
+ };
175
+ Insert: {
176
+ address_line?: string | null;
177
+ city?: string | null;
178
+ country?: string | null;
179
+ created_at?: string;
180
+ customer_id: string;
181
+ floriday_location_id?: string | null;
182
+ gln?: string | null;
183
+ id?: string;
184
+ is_primary?: boolean;
185
+ name?: string | null;
186
+ postal_code?: string | null;
187
+ raw?: import("../integrations/supabase/types").Json | null;
188
+ updated_at?: string;
189
+ };
190
+ Update: {
191
+ address_line?: string | null;
192
+ city?: string | null;
193
+ country?: string | null;
194
+ created_at?: string;
195
+ customer_id?: string;
196
+ floriday_location_id?: string | null;
197
+ gln?: string | null;
198
+ id?: string;
199
+ is_primary?: boolean;
200
+ name?: string | null;
201
+ postal_code?: string | null;
202
+ raw?: import("../integrations/supabase/types").Json | null;
203
+ updated_at?: string;
204
+ };
205
+ Relationships: [{
206
+ foreignKeyName: "customer_delivery_locations_customer_id_fkey";
207
+ columns: ["customer_id"];
208
+ isOneToOne: false;
209
+ referencedRelation: "customers";
210
+ referencedColumns: ["id"];
211
+ }];
212
+ };
213
+ customer_field_options: {
214
+ Row: {
215
+ created_at: string;
216
+ field_setting_id: string;
217
+ id: string;
218
+ label: string;
219
+ sort_order: number;
220
+ };
221
+ Insert: {
222
+ created_at?: string;
223
+ field_setting_id: string;
224
+ id?: string;
225
+ label: string;
226
+ sort_order?: number;
227
+ };
228
+ Update: {
229
+ created_at?: string;
230
+ field_setting_id?: string;
231
+ id?: string;
232
+ label?: string;
233
+ sort_order?: number;
234
+ };
235
+ Relationships: [{
236
+ foreignKeyName: "customer_field_options_field_setting_id_fkey";
237
+ columns: ["field_setting_id"];
238
+ isOneToOne: false;
239
+ referencedRelation: "customer_field_settings";
240
+ referencedColumns: ["id"];
241
+ }];
242
+ };
243
+ customer_field_settings: {
244
+ Row: {
245
+ created_at: string;
246
+ field_key: string;
247
+ field_label: string;
248
+ field_type: string;
249
+ id: string;
250
+ is_custom: boolean;
251
+ sort_order: number;
252
+ updated_at: string;
253
+ };
254
+ Insert: {
255
+ created_at?: string;
256
+ field_key: string;
257
+ field_label: string;
258
+ field_type?: string;
259
+ id?: string;
260
+ is_custom?: boolean;
261
+ sort_order?: number;
262
+ updated_at?: string;
263
+ };
264
+ Update: {
265
+ created_at?: string;
266
+ field_key?: string;
267
+ field_label?: string;
268
+ field_type?: string;
269
+ id?: string;
270
+ is_custom?: boolean;
271
+ sort_order?: number;
272
+ updated_at?: string;
273
+ };
274
+ Relationships: [];
275
+ };
276
+ customer_selected_assortment: {
277
+ Row: {
278
+ article_number: string | null;
279
+ created_at: string;
280
+ customer_id: string;
281
+ floriday_item_id: string | null;
282
+ id: string;
283
+ price: number | null;
284
+ product_group: string | null;
285
+ product_name: string;
286
+ raw: import("../integrations/supabase/types").Json | null;
287
+ unit: string | null;
288
+ updated_at: string;
289
+ };
290
+ Insert: {
291
+ article_number?: string | null;
292
+ created_at?: string;
293
+ customer_id: string;
294
+ floriday_item_id?: string | null;
295
+ id?: string;
296
+ price?: number | null;
297
+ product_group?: string | null;
298
+ product_name: string;
299
+ raw?: import("../integrations/supabase/types").Json | null;
300
+ unit?: string | null;
301
+ updated_at?: string;
302
+ };
303
+ Update: {
304
+ article_number?: string | null;
305
+ created_at?: string;
306
+ customer_id?: string;
307
+ floriday_item_id?: string | null;
308
+ id?: string;
309
+ price?: number | null;
310
+ product_group?: string | null;
311
+ product_name?: string;
312
+ raw?: import("../integrations/supabase/types").Json | null;
313
+ unit?: string | null;
314
+ updated_at?: string;
315
+ };
316
+ Relationships: [{
317
+ foreignKeyName: "customer_selected_assortment_customer_id_fkey";
318
+ columns: ["customer_id"];
319
+ isOneToOne: false;
320
+ referencedRelation: "customers";
321
+ referencedColumns: ["id"];
322
+ }];
323
+ };
324
+ customer_trade_settings: {
325
+ Row: {
326
+ category: string;
327
+ created_at: string;
328
+ customer_id: string;
329
+ id: string;
330
+ is_active: boolean;
331
+ raw: import("../integrations/supabase/types").Json | null;
332
+ setting_key: string;
333
+ setting_label: string;
334
+ updated_at: string;
335
+ };
336
+ Insert: {
337
+ category?: string;
338
+ created_at?: string;
339
+ customer_id: string;
340
+ id?: string;
341
+ is_active?: boolean;
342
+ raw?: import("../integrations/supabase/types").Json | null;
343
+ setting_key: string;
344
+ setting_label: string;
345
+ updated_at?: string;
346
+ };
347
+ Update: {
348
+ category?: string;
349
+ created_at?: string;
350
+ customer_id?: string;
351
+ id?: string;
352
+ is_active?: boolean;
353
+ raw?: import("../integrations/supabase/types").Json | null;
354
+ setting_key?: string;
355
+ setting_label?: string;
356
+ updated_at?: string;
357
+ };
358
+ Relationships: [{
359
+ foreignKeyName: "customer_trade_settings_customer_id_fkey";
360
+ columns: ["customer_id"];
361
+ isOneToOne: false;
362
+ referencedRelation: "customers";
363
+ referencedColumns: ["id"];
364
+ }];
365
+ };
366
+ customers: {
367
+ Row: {
368
+ address: string | null;
369
+ bio: string | null;
370
+ city: string | null;
371
+ commercial_name: string | null;
372
+ company_name: string;
373
+ connection_status: string;
374
+ contact_person: string | null;
375
+ country: string | null;
376
+ created_at: string;
377
+ custom_fields: import("../integrations/supabase/types").Json;
378
+ customer_class: string | null;
379
+ email: string | null;
380
+ external_id: string | null;
381
+ floriday_connection_id: string | null;
382
+ floriday_organization_id: string | null;
383
+ floriday_raw: import("../integrations/supabase/types").Json | null;
384
+ gln: string | null;
385
+ house_number: string | null;
386
+ id: string;
387
+ is_active: boolean;
388
+ last_synced_at: string | null;
389
+ logo_url: string | null;
390
+ markets: string[];
391
+ notes: string | null;
392
+ organization_type: string | null;
393
+ payment_methods: string[];
394
+ phone: string | null;
395
+ postal_code: string | null;
396
+ product_groups: string[];
397
+ segments: string[];
398
+ source: string;
399
+ street: string | null;
400
+ sync_error: string | null;
401
+ sync_status: string;
402
+ trade_forms: string[];
403
+ updated_at: string;
404
+ vat_number: string | null;
405
+ website: string | null;
406
+ };
407
+ Insert: {
408
+ address?: string | null;
409
+ bio?: string | null;
410
+ city?: string | null;
411
+ commercial_name?: string | null;
412
+ company_name: string;
413
+ connection_status?: string;
414
+ contact_person?: string | null;
415
+ country?: string | null;
416
+ created_at?: string;
417
+ custom_fields?: import("../integrations/supabase/types").Json;
418
+ customer_class?: string | null;
419
+ email?: string | null;
420
+ external_id?: string | null;
421
+ floriday_connection_id?: string | null;
422
+ floriday_organization_id?: string | null;
423
+ floriday_raw?: import("../integrations/supabase/types").Json | null;
424
+ gln?: string | null;
425
+ house_number?: string | null;
426
+ id?: string;
427
+ is_active?: boolean;
428
+ last_synced_at?: string | null;
429
+ logo_url?: string | null;
430
+ markets?: string[];
431
+ notes?: string | null;
432
+ organization_type?: string | null;
433
+ payment_methods?: string[];
434
+ phone?: string | null;
435
+ postal_code?: string | null;
436
+ product_groups?: string[];
437
+ segments?: string[];
438
+ source?: string;
439
+ street?: string | null;
440
+ sync_error?: string | null;
441
+ sync_status?: string;
442
+ trade_forms?: string[];
443
+ updated_at?: string;
444
+ vat_number?: string | null;
445
+ website?: string | null;
446
+ };
447
+ Update: {
448
+ address?: string | null;
449
+ bio?: string | null;
450
+ city?: string | null;
451
+ commercial_name?: string | null;
452
+ company_name?: string;
453
+ connection_status?: string;
454
+ contact_person?: string | null;
455
+ country?: string | null;
456
+ created_at?: string;
457
+ custom_fields?: import("../integrations/supabase/types").Json;
458
+ customer_class?: string | null;
459
+ email?: string | null;
460
+ external_id?: string | null;
461
+ floriday_connection_id?: string | null;
462
+ floriday_organization_id?: string | null;
463
+ floriday_raw?: import("../integrations/supabase/types").Json | null;
464
+ gln?: string | null;
465
+ house_number?: string | null;
466
+ id?: string;
467
+ is_active?: boolean;
468
+ last_synced_at?: string | null;
469
+ logo_url?: string | null;
470
+ markets?: string[];
471
+ notes?: string | null;
472
+ organization_type?: string | null;
473
+ payment_methods?: string[];
474
+ phone?: string | null;
475
+ postal_code?: string | null;
476
+ product_groups?: string[];
477
+ segments?: string[];
478
+ source?: string;
479
+ street?: string | null;
480
+ sync_error?: string | null;
481
+ sync_status?: string;
482
+ trade_forms?: string[];
483
+ updated_at?: string;
484
+ vat_number?: string | null;
485
+ website?: string | null;
486
+ };
487
+ Relationships: [];
488
+ };
489
+ exact_connections: {
490
+ Row: {
491
+ access_token_encrypted: string;
492
+ company_name: string | null;
493
+ connected_at: string;
494
+ connected_by: string | null;
495
+ division_code: number | null;
496
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
497
+ expires_at: string;
498
+ id: string;
499
+ refresh_token_encrypted: string;
500
+ status: string;
501
+ updated_at: string;
502
+ };
503
+ Insert: {
504
+ access_token_encrypted: string;
505
+ company_name?: string | null;
506
+ connected_at?: string;
507
+ connected_by?: string | null;
508
+ division_code?: number | null;
509
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
510
+ expires_at: string;
511
+ id?: string;
512
+ refresh_token_encrypted: string;
513
+ status?: string;
514
+ updated_at?: string;
515
+ };
516
+ Update: {
517
+ access_token_encrypted?: string;
518
+ company_name?: string | null;
519
+ connected_at?: string;
520
+ connected_by?: string | null;
521
+ division_code?: number | null;
522
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
523
+ expires_at?: string;
524
+ id?: string;
525
+ refresh_token_encrypted?: string;
526
+ status?: string;
527
+ updated_at?: string;
528
+ };
529
+ Relationships: [];
530
+ };
531
+ exact_credentials: {
532
+ Row: {
533
+ client_id: string;
534
+ client_secret_encrypted: string;
535
+ created_at: string;
536
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
537
+ id: string;
538
+ redirect_uri: string;
539
+ updated_at: string;
540
+ };
541
+ Insert: {
542
+ client_id: string;
543
+ client_secret_encrypted: string;
544
+ created_at?: string;
545
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
546
+ id?: string;
547
+ redirect_uri: string;
548
+ updated_at?: string;
549
+ };
550
+ Update: {
551
+ client_id?: string;
552
+ client_secret_encrypted?: string;
553
+ created_at?: string;
554
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
555
+ id?: string;
556
+ redirect_uri?: string;
557
+ updated_at?: string;
558
+ };
559
+ Relationships: [];
560
+ };
561
+ exact_customers_cache: {
562
+ Row: {
563
+ connection_id: string;
564
+ data: import("../integrations/supabase/types").Json;
565
+ exact_id: string;
566
+ fetched_at: string;
567
+ };
568
+ Insert: {
569
+ connection_id: string;
570
+ data?: import("../integrations/supabase/types").Json;
571
+ exact_id: string;
572
+ fetched_at?: string;
573
+ };
574
+ Update: {
575
+ connection_id?: string;
576
+ data?: import("../integrations/supabase/types").Json;
577
+ exact_id?: string;
578
+ fetched_at?: string;
579
+ };
580
+ Relationships: [];
581
+ };
582
+ exact_sync_state: {
583
+ Row: {
584
+ connection_id: string;
585
+ last_error: string | null;
586
+ last_modified_cursor: string | null;
587
+ last_synced_at: string | null;
588
+ status: string;
589
+ updated_at: string;
590
+ };
591
+ Insert: {
592
+ connection_id: string;
593
+ last_error?: string | null;
594
+ last_modified_cursor?: string | null;
595
+ last_synced_at?: string | null;
596
+ status?: string;
597
+ updated_at?: string;
598
+ };
599
+ Update: {
600
+ connection_id?: string;
601
+ last_error?: string | null;
602
+ last_modified_cursor?: string | null;
603
+ last_synced_at?: string | null;
604
+ status?: string;
605
+ updated_at?: string;
606
+ };
607
+ Relationships: [];
608
+ };
609
+ floricode_connection_settings: {
610
+ Row: {
611
+ catalog_key: string | null;
612
+ catalog_url: string;
613
+ created_at: string;
614
+ id: number;
615
+ last_meta: import("../integrations/supabase/types").Json | null;
616
+ last_test_at: string | null;
617
+ last_test_error: string | null;
618
+ last_test_ok: boolean | null;
619
+ updated_at: string;
620
+ };
621
+ Insert: {
622
+ catalog_key?: string | null;
623
+ catalog_url?: string;
624
+ created_at?: string;
625
+ id?: number;
626
+ last_meta?: import("../integrations/supabase/types").Json | null;
627
+ last_test_at?: string | null;
628
+ last_test_error?: string | null;
629
+ last_test_ok?: boolean | null;
630
+ updated_at?: string;
631
+ };
632
+ Update: {
633
+ catalog_key?: string | null;
634
+ catalog_url?: string;
635
+ created_at?: string;
636
+ id?: number;
637
+ last_meta?: import("../integrations/supabase/types").Json | null;
638
+ last_test_at?: string | null;
639
+ last_test_error?: string | null;
640
+ last_test_ok?: boolean | null;
641
+ updated_at?: string;
642
+ };
643
+ Relationships: [];
644
+ };
645
+ floricode_records: {
646
+ Row: {
647
+ change_date_time: string | null;
648
+ data: import("../integrations/supabase/types").Json;
649
+ last_synced_at: string;
650
+ record_id: string;
651
+ resource: string;
652
+ };
653
+ Insert: {
654
+ change_date_time?: string | null;
655
+ data?: import("../integrations/supabase/types").Json;
656
+ last_synced_at?: string;
657
+ record_id: string;
658
+ resource: string;
659
+ };
660
+ Update: {
661
+ change_date_time?: string | null;
662
+ data?: import("../integrations/supabase/types").Json;
663
+ last_synced_at?: string;
664
+ record_id?: string;
665
+ resource?: string;
666
+ };
667
+ Relationships: [];
668
+ };
669
+ floricode_sync_state: {
670
+ Row: {
671
+ error_message: string | null;
672
+ last_change_date_time: string | null;
673
+ last_sequence_number: number;
674
+ last_sync_at: string | null;
675
+ resource: string;
676
+ status: string;
677
+ updated_at: string;
678
+ };
679
+ Insert: {
680
+ error_message?: string | null;
681
+ last_change_date_time?: string | null;
682
+ last_sequence_number?: number;
683
+ last_sync_at?: string | null;
684
+ resource: string;
685
+ status?: string;
686
+ updated_at?: string;
687
+ };
688
+ Update: {
689
+ error_message?: string | null;
690
+ last_change_date_time?: string | null;
691
+ last_sequence_number?: number;
692
+ last_sync_at?: string | null;
693
+ resource?: string;
694
+ status?: string;
695
+ updated_at?: string;
696
+ };
697
+ Relationships: [];
698
+ };
699
+ floriday_connections: {
700
+ Row: {
701
+ access_token: string | null;
702
+ api_key: string;
703
+ client_id: string;
704
+ client_secret: string;
705
+ created_at: string;
706
+ customers_endpoint: string | null;
707
+ environment: string;
708
+ gln_code: string | null;
709
+ id: string;
710
+ is_active: boolean;
711
+ label: string;
712
+ organization_name: string | null;
713
+ preferred_warehouse_id: string | null;
714
+ preferred_warehouse_name: string | null;
715
+ token_expires_at: string | null;
716
+ updated_at: string;
717
+ };
718
+ Insert: {
719
+ access_token?: string | null;
720
+ api_key: string;
721
+ client_id: string;
722
+ client_secret: string;
723
+ created_at?: string;
724
+ customers_endpoint?: string | null;
725
+ environment: string;
726
+ gln_code?: string | null;
727
+ id?: string;
728
+ is_active?: boolean;
729
+ label?: string;
730
+ organization_name?: string | null;
731
+ preferred_warehouse_id?: string | null;
732
+ preferred_warehouse_name?: string | null;
733
+ token_expires_at?: string | null;
734
+ updated_at?: string;
735
+ };
736
+ Update: {
737
+ access_token?: string | null;
738
+ api_key?: string;
739
+ client_id?: string;
740
+ client_secret?: string;
741
+ created_at?: string;
742
+ customers_endpoint?: string | null;
743
+ environment?: string;
744
+ gln_code?: string | null;
745
+ id?: string;
746
+ is_active?: boolean;
747
+ label?: string;
748
+ organization_name?: string | null;
749
+ preferred_warehouse_id?: string | null;
750
+ preferred_warehouse_name?: string | null;
751
+ token_expires_at?: string | null;
752
+ updated_at?: string;
753
+ };
754
+ Relationships: [];
755
+ };
756
+ floriday_customers_cache: {
757
+ Row: {
758
+ connection_id: string | null;
759
+ data: import("../integrations/supabase/types").Json;
760
+ fetched_at: string;
761
+ organization_id: string;
762
+ };
763
+ Insert: {
764
+ connection_id?: string | null;
765
+ data?: import("../integrations/supabase/types").Json;
766
+ fetched_at?: string;
767
+ organization_id: string;
768
+ };
769
+ Update: {
770
+ connection_id?: string | null;
771
+ data?: import("../integrations/supabase/types").Json;
772
+ fetched_at?: string;
773
+ organization_id?: string;
774
+ };
775
+ Relationships: [{
776
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
777
+ columns: ["connection_id"];
778
+ isOneToOne: false;
779
+ referencedRelation: "floriday_connections";
780
+ referencedColumns: ["id"];
781
+ }];
782
+ };
783
+ floriday_network_cache: {
784
+ Row: {
785
+ city: string | null;
786
+ connection_id: string;
787
+ country: string | null;
788
+ data: import("../integrations/supabase/types").Json;
789
+ fetched_at: string;
790
+ gln: string | null;
791
+ organization_id: string;
792
+ organization_name: string | null;
793
+ };
794
+ Insert: {
795
+ city?: string | null;
796
+ connection_id: string;
797
+ country?: string | null;
798
+ data?: import("../integrations/supabase/types").Json;
799
+ fetched_at?: string;
800
+ gln?: string | null;
801
+ organization_id: string;
802
+ organization_name?: string | null;
803
+ };
804
+ Update: {
805
+ city?: string | null;
806
+ connection_id?: string;
807
+ country?: string | null;
808
+ data?: import("../integrations/supabase/types").Json;
809
+ fetched_at?: string;
810
+ gln?: string | null;
811
+ organization_id?: string;
812
+ organization_name?: string | null;
813
+ };
814
+ Relationships: [];
815
+ };
816
+ floriday_network_sync_state: {
817
+ Row: {
818
+ connection_id: string;
819
+ last_error: string | null;
820
+ last_sequence_number: number;
821
+ last_synced_at: string | null;
822
+ updated_at: string;
823
+ };
824
+ Insert: {
825
+ connection_id: string;
826
+ last_error?: string | null;
827
+ last_sequence_number?: number;
828
+ last_synced_at?: string | null;
829
+ updated_at?: string;
830
+ };
831
+ Update: {
832
+ connection_id?: string;
833
+ last_error?: string | null;
834
+ last_sequence_number?: number;
835
+ last_synced_at?: string | null;
836
+ updated_at?: string;
837
+ };
838
+ Relationships: [];
839
+ };
840
+ floriday_settings: {
841
+ Row: {
842
+ active_environment: string;
843
+ id: number;
844
+ updated_at: string;
845
+ };
846
+ Insert: {
847
+ active_environment?: string;
848
+ id?: number;
849
+ updated_at?: string;
850
+ };
851
+ Update: {
852
+ active_environment?: string;
853
+ id?: number;
854
+ updated_at?: string;
855
+ };
856
+ Relationships: [];
857
+ };
858
+ inventory_settings: {
859
+ Row: {
860
+ created_at: string;
861
+ hierarchy_levels: string[];
862
+ id: string;
863
+ updated_at: string;
864
+ visible_columns: string[];
865
+ };
866
+ Insert: {
867
+ created_at?: string;
868
+ hierarchy_levels?: string[];
869
+ id?: string;
870
+ updated_at?: string;
871
+ visible_columns?: string[];
872
+ };
873
+ Update: {
874
+ created_at?: string;
875
+ hierarchy_levels?: string[];
876
+ id?: string;
877
+ updated_at?: string;
878
+ visible_columns?: string[];
879
+ };
880
+ Relationships: [];
881
+ };
882
+ locations: {
883
+ Row: {
884
+ created_at: string;
885
+ id: string;
886
+ name: string;
887
+ sort_order: number;
888
+ updated_at: string;
889
+ };
890
+ Insert: {
891
+ created_at?: string;
892
+ id?: string;
893
+ name: string;
894
+ sort_order?: number;
895
+ updated_at?: string;
896
+ };
897
+ Update: {
898
+ created_at?: string;
899
+ id?: string;
900
+ name?: string;
901
+ sort_order?: number;
902
+ updated_at?: string;
903
+ };
904
+ Relationships: [];
905
+ };
906
+ notifications: {
907
+ Row: {
908
+ created_at: string;
909
+ id: string;
910
+ message: string | null;
911
+ read: boolean;
912
+ title: string;
913
+ updated_at: string;
914
+ user_id: string;
915
+ };
916
+ Insert: {
917
+ created_at?: string;
918
+ id?: string;
919
+ message?: string | null;
920
+ read?: boolean;
921
+ title: string;
922
+ updated_at?: string;
923
+ user_id: string;
924
+ };
925
+ Update: {
926
+ created_at?: string;
927
+ id?: string;
928
+ message?: string | null;
929
+ read?: boolean;
930
+ title?: string;
931
+ updated_at?: string;
932
+ user_id?: string;
933
+ };
934
+ Relationships: [];
935
+ };
936
+ order_field_options: {
937
+ Row: {
938
+ created_at: string;
939
+ field_setting_id: string;
940
+ id: string;
941
+ label: string;
942
+ sort_order: number;
943
+ };
944
+ Insert: {
945
+ created_at?: string;
946
+ field_setting_id: string;
947
+ id?: string;
948
+ label: string;
949
+ sort_order?: number;
950
+ };
951
+ Update: {
952
+ created_at?: string;
953
+ field_setting_id?: string;
954
+ id?: string;
955
+ label?: string;
956
+ sort_order?: number;
957
+ };
958
+ Relationships: [{
959
+ foreignKeyName: "order_field_options_field_setting_id_fkey";
960
+ columns: ["field_setting_id"];
961
+ isOneToOne: false;
962
+ referencedRelation: "order_field_settings";
963
+ referencedColumns: ["id"];
964
+ }];
965
+ };
966
+ order_field_settings: {
967
+ Row: {
968
+ active: boolean;
969
+ created_at: string;
970
+ field_key: string;
971
+ field_label: string;
972
+ field_type: string;
973
+ id: string;
974
+ is_custom: boolean;
975
+ sort_order: number;
976
+ updated_at: string;
977
+ };
978
+ Insert: {
979
+ active?: boolean;
980
+ created_at?: string;
981
+ field_key: string;
982
+ field_label: string;
983
+ field_type?: string;
984
+ id?: string;
985
+ is_custom?: boolean;
986
+ sort_order?: number;
987
+ updated_at?: string;
988
+ };
989
+ Update: {
990
+ active?: boolean;
991
+ created_at?: string;
992
+ field_key?: string;
993
+ field_label?: string;
994
+ field_type?: string;
995
+ id?: string;
996
+ is_custom?: boolean;
997
+ sort_order?: number;
998
+ updated_at?: string;
999
+ };
1000
+ Relationships: [];
1001
+ };
1002
+ order_items: {
1003
+ Row: {
1004
+ created_at: string;
1005
+ id: string;
1006
+ order_id: string;
1007
+ product_id: string | null;
1008
+ product_name: string;
1009
+ quantity: number;
1010
+ unit: string;
1011
+ unit_price: number | null;
1012
+ };
1013
+ Insert: {
1014
+ created_at?: string;
1015
+ id?: string;
1016
+ order_id: string;
1017
+ product_id?: string | null;
1018
+ product_name: string;
1019
+ quantity?: number;
1020
+ unit?: string;
1021
+ unit_price?: number | null;
1022
+ };
1023
+ Update: {
1024
+ created_at?: string;
1025
+ id?: string;
1026
+ order_id?: string;
1027
+ product_id?: string | null;
1028
+ product_name?: string;
1029
+ quantity?: number;
1030
+ unit?: string;
1031
+ unit_price?: number | null;
1032
+ };
1033
+ Relationships: [{
1034
+ foreignKeyName: "order_items_order_id_fkey";
1035
+ columns: ["order_id"];
1036
+ isOneToOne: false;
1037
+ referencedRelation: "orders";
1038
+ referencedColumns: ["id"];
1039
+ }, {
1040
+ foreignKeyName: "order_items_product_id_fkey";
1041
+ columns: ["product_id"];
1042
+ isOneToOne: false;
1043
+ referencedRelation: "products";
1044
+ referencedColumns: ["id"];
1045
+ }];
1046
+ };
1047
+ orders: {
1048
+ Row: {
1049
+ created_at: string;
1050
+ custom_fields: import("../integrations/supabase/types").Json;
1051
+ customer_id: string | null;
1052
+ customer_name: string;
1053
+ deleted_at: string | null;
1054
+ delivery_date: string;
1055
+ id: string;
1056
+ notes: string | null;
1057
+ order_date: string;
1058
+ order_number: string;
1059
+ status: string;
1060
+ total: string;
1061
+ updated_at: string;
1062
+ };
1063
+ Insert: {
1064
+ created_at?: string;
1065
+ custom_fields?: import("../integrations/supabase/types").Json;
1066
+ customer_id?: string | null;
1067
+ customer_name?: string;
1068
+ deleted_at?: string | null;
1069
+ delivery_date: string;
1070
+ id?: string;
1071
+ notes?: string | null;
1072
+ order_date?: string;
1073
+ order_number: string;
1074
+ status?: string;
1075
+ total?: string;
1076
+ updated_at?: string;
1077
+ };
1078
+ Update: {
1079
+ created_at?: string;
1080
+ custom_fields?: import("../integrations/supabase/types").Json;
1081
+ customer_id?: string | null;
1082
+ customer_name?: string;
1083
+ deleted_at?: string | null;
1084
+ delivery_date?: string;
1085
+ id?: string;
1086
+ notes?: string | null;
1087
+ order_date?: string;
1088
+ order_number?: string;
1089
+ status?: string;
1090
+ total?: string;
1091
+ updated_at?: string;
1092
+ };
1093
+ Relationships: [{
1094
+ foreignKeyName: "orders_customer_id_fkey";
1095
+ columns: ["customer_id"];
1096
+ isOneToOne: false;
1097
+ referencedRelation: "customers";
1098
+ referencedColumns: ["id"];
1099
+ }];
1100
+ };
1101
+ product_categories: {
1102
+ Row: {
1103
+ color: string;
1104
+ created_at: string;
1105
+ icon: string | null;
1106
+ id: string;
1107
+ name: string;
1108
+ slug: string;
1109
+ sort_order: number;
1110
+ updated_at: string;
1111
+ };
1112
+ Insert: {
1113
+ color?: string;
1114
+ created_at?: string;
1115
+ icon?: string | null;
1116
+ id?: string;
1117
+ name: string;
1118
+ slug: string;
1119
+ sort_order?: number;
1120
+ updated_at?: string;
1121
+ };
1122
+ Update: {
1123
+ color?: string;
1124
+ created_at?: string;
1125
+ icon?: string | null;
1126
+ id?: string;
1127
+ name?: string;
1128
+ slug?: string;
1129
+ sort_order?: number;
1130
+ updated_at?: string;
1131
+ };
1132
+ Relationships: [];
1133
+ };
1134
+ product_field_options: {
1135
+ Row: {
1136
+ created_at: string;
1137
+ field_setting_id: string;
1138
+ id: string;
1139
+ label: string;
1140
+ sort_order: number;
1141
+ };
1142
+ Insert: {
1143
+ created_at?: string;
1144
+ field_setting_id: string;
1145
+ id?: string;
1146
+ label: string;
1147
+ sort_order?: number;
1148
+ };
1149
+ Update: {
1150
+ created_at?: string;
1151
+ field_setting_id?: string;
1152
+ id?: string;
1153
+ label?: string;
1154
+ sort_order?: number;
1155
+ };
1156
+ Relationships: [{
1157
+ foreignKeyName: "product_field_options_field_setting_id_fkey";
1158
+ columns: ["field_setting_id"];
1159
+ isOneToOne: false;
1160
+ referencedRelation: "product_field_settings";
1161
+ referencedColumns: ["id"];
1162
+ }];
1163
+ };
1164
+ product_field_settings: {
1165
+ Row: {
1166
+ active_per_category: import("../integrations/supabase/types").Json;
1167
+ created_at: string;
1168
+ field_key: string;
1169
+ field_label: string;
1170
+ field_type: string;
1171
+ id: string;
1172
+ is_custom: boolean;
1173
+ sort_order: number;
1174
+ updated_at: string;
1175
+ };
1176
+ Insert: {
1177
+ active_per_category?: import("../integrations/supabase/types").Json;
1178
+ created_at?: string;
1179
+ field_key: string;
1180
+ field_label: string;
1181
+ field_type?: string;
1182
+ id?: string;
1183
+ is_custom?: boolean;
1184
+ sort_order?: number;
1185
+ updated_at?: string;
1186
+ };
1187
+ Update: {
1188
+ active_per_category?: import("../integrations/supabase/types").Json;
1189
+ created_at?: string;
1190
+ field_key?: string;
1191
+ field_label?: string;
1192
+ field_type?: string;
1193
+ id?: string;
1194
+ is_custom?: boolean;
1195
+ sort_order?: number;
1196
+ updated_at?: string;
1197
+ };
1198
+ Relationships: [];
1199
+ };
1200
+ products: {
1201
+ Row: {
1202
+ barcode: string | null;
1203
+ batch: string;
1204
+ created_at: string;
1205
+ custom_fields: import("../integrations/supabase/types").Json;
1206
+ id: string;
1207
+ image_url: string | null;
1208
+ incoming_quantity: number;
1209
+ location: string;
1210
+ min_quantity: number;
1211
+ product: string;
1212
+ product_type: string;
1213
+ purchase_price: number | null;
1214
+ quantity: number;
1215
+ sale_price: number | null;
1216
+ unit: string;
1217
+ updated_at: string;
1218
+ weight: string | null;
1219
+ };
1220
+ Insert: {
1221
+ barcode?: string | null;
1222
+ batch: string;
1223
+ created_at?: string;
1224
+ custom_fields?: import("../integrations/supabase/types").Json;
1225
+ id?: string;
1226
+ image_url?: string | null;
1227
+ incoming_quantity?: number;
1228
+ location: string;
1229
+ min_quantity?: number;
1230
+ product: string;
1231
+ product_type?: string;
1232
+ purchase_price?: number | null;
1233
+ quantity?: number;
1234
+ sale_price?: number | null;
1235
+ unit?: string;
1236
+ updated_at?: string;
1237
+ weight?: string | null;
1238
+ };
1239
+ Update: {
1240
+ barcode?: string | null;
1241
+ batch?: string;
1242
+ created_at?: string;
1243
+ custom_fields?: import("../integrations/supabase/types").Json;
1244
+ id?: string;
1245
+ image_url?: string | null;
1246
+ incoming_quantity?: number;
1247
+ location?: string;
1248
+ min_quantity?: number;
1249
+ product?: string;
1250
+ product_type?: string;
1251
+ purchase_price?: number | null;
1252
+ quantity?: number;
1253
+ sale_price?: number | null;
1254
+ unit?: string;
1255
+ updated_at?: string;
1256
+ weight?: string | null;
1257
+ };
1258
+ Relationships: [];
1259
+ };
1260
+ profiles: {
1261
+ Row: {
1262
+ created_at: string;
1263
+ display_name: string | null;
1264
+ email: string | null;
1265
+ id: string;
1266
+ notification_preferences: import("../integrations/supabase/types").Json;
1267
+ updated_at: string;
1268
+ };
1269
+ Insert: {
1270
+ created_at?: string;
1271
+ display_name?: string | null;
1272
+ email?: string | null;
1273
+ id: string;
1274
+ notification_preferences?: import("../integrations/supabase/types").Json;
1275
+ updated_at?: string;
1276
+ };
1277
+ Update: {
1278
+ created_at?: string;
1279
+ display_name?: string | null;
1280
+ email?: string | null;
1281
+ id?: string;
1282
+ notification_preferences?: import("../integrations/supabase/types").Json;
1283
+ updated_at?: string;
1284
+ };
1285
+ Relationships: [];
1286
+ };
1287
+ purchase_order_items: {
1288
+ Row: {
1289
+ created_at: string;
1290
+ id: string;
1291
+ product_id: string | null;
1292
+ product_type: string;
1293
+ purchase_order_id: string;
1294
+ quantity: number;
1295
+ };
1296
+ Insert: {
1297
+ created_at?: string;
1298
+ id?: string;
1299
+ product_id?: string | null;
1300
+ product_type?: string;
1301
+ purchase_order_id: string;
1302
+ quantity?: number;
1303
+ };
1304
+ Update: {
1305
+ created_at?: string;
1306
+ id?: string;
1307
+ product_id?: string | null;
1308
+ product_type?: string;
1309
+ purchase_order_id?: string;
1310
+ quantity?: number;
1311
+ };
1312
+ Relationships: [{
1313
+ foreignKeyName: "purchase_order_items_product_id_fkey";
1314
+ columns: ["product_id"];
1315
+ isOneToOne: false;
1316
+ referencedRelation: "products";
1317
+ referencedColumns: ["id"];
1318
+ }, {
1319
+ foreignKeyName: "purchase_order_items_purchase_order_id_fkey";
1320
+ columns: ["purchase_order_id"];
1321
+ isOneToOne: false;
1322
+ referencedRelation: "purchase_orders";
1323
+ referencedColumns: ["id"];
1324
+ }];
1325
+ };
1326
+ purchase_orders: {
1327
+ Row: {
1328
+ created_at: string;
1329
+ expected_delivery_date: string;
1330
+ id: string;
1331
+ location_id: string | null;
1332
+ notes: string | null;
1333
+ order_number: string;
1334
+ status: string;
1335
+ supplier_id: string | null;
1336
+ supplier_name: string;
1337
+ updated_at: string;
1338
+ };
1339
+ Insert: {
1340
+ created_at?: string;
1341
+ expected_delivery_date: string;
1342
+ id?: string;
1343
+ location_id?: string | null;
1344
+ notes?: string | null;
1345
+ order_number: string;
1346
+ status?: string;
1347
+ supplier_id?: string | null;
1348
+ supplier_name?: string;
1349
+ updated_at?: string;
1350
+ };
1351
+ Update: {
1352
+ created_at?: string;
1353
+ expected_delivery_date?: string;
1354
+ id?: string;
1355
+ location_id?: string | null;
1356
+ notes?: string | null;
1357
+ order_number?: string;
1358
+ status?: string;
1359
+ supplier_id?: string | null;
1360
+ supplier_name?: string;
1361
+ updated_at?: string;
1362
+ };
1363
+ Relationships: [{
1364
+ foreignKeyName: "purchase_orders_location_id_fkey";
1365
+ columns: ["location_id"];
1366
+ isOneToOne: false;
1367
+ referencedRelation: "locations";
1368
+ referencedColumns: ["id"];
1369
+ }, {
1370
+ foreignKeyName: "purchase_orders_supplier_id_fkey";
1371
+ columns: ["supplier_id"];
1372
+ isOneToOne: false;
1373
+ referencedRelation: "suppliers";
1374
+ referencedColumns: ["id"];
1375
+ }];
1376
+ };
1377
+ supplier_products: {
1378
+ Row: {
1379
+ article_number: string | null;
1380
+ created_at: string;
1381
+ id: string;
1382
+ name: string;
1383
+ notes: string | null;
1384
+ pot_size: string | null;
1385
+ price: number | null;
1386
+ quantity: number | null;
1387
+ supplier_id: string;
1388
+ unit: string;
1389
+ updated_at: string;
1390
+ };
1391
+ Insert: {
1392
+ article_number?: string | null;
1393
+ created_at?: string;
1394
+ id?: string;
1395
+ name: string;
1396
+ notes?: string | null;
1397
+ pot_size?: string | null;
1398
+ price?: number | null;
1399
+ quantity?: number | null;
1400
+ supplier_id: string;
1401
+ unit?: string;
1402
+ updated_at?: string;
1403
+ };
1404
+ Update: {
1405
+ article_number?: string | null;
1406
+ created_at?: string;
1407
+ id?: string;
1408
+ name?: string;
1409
+ notes?: string | null;
1410
+ pot_size?: string | null;
1411
+ price?: number | null;
1412
+ quantity?: number | null;
1413
+ supplier_id?: string;
1414
+ unit?: string;
1415
+ updated_at?: string;
1416
+ };
1417
+ Relationships: [{
1418
+ foreignKeyName: "supplier_products_supplier_id_fkey";
1419
+ columns: ["supplier_id"];
1420
+ isOneToOne: false;
1421
+ referencedRelation: "suppliers";
1422
+ referencedColumns: ["id"];
1423
+ }];
1424
+ };
1425
+ suppliers: {
1426
+ Row: {
1427
+ address: string | null;
1428
+ column_mappings: import("../integrations/supabase/types").Json | null;
1429
+ contact_person: string | null;
1430
+ created_at: string;
1431
+ default_product_type: string;
1432
+ email: string | null;
1433
+ id: string;
1434
+ imported_file_name: string | null;
1435
+ name: string;
1436
+ notes: string | null;
1437
+ phone: string | null;
1438
+ updated_at: string;
1439
+ };
1440
+ Insert: {
1441
+ address?: string | null;
1442
+ column_mappings?: import("../integrations/supabase/types").Json | null;
1443
+ contact_person?: string | null;
1444
+ created_at?: string;
1445
+ default_product_type?: string;
1446
+ email?: string | null;
1447
+ id?: string;
1448
+ imported_file_name?: string | null;
1449
+ name: string;
1450
+ notes?: string | null;
1451
+ phone?: string | null;
1452
+ updated_at?: string;
1453
+ };
1454
+ Update: {
1455
+ address?: string | null;
1456
+ column_mappings?: import("../integrations/supabase/types").Json | null;
1457
+ contact_person?: string | null;
1458
+ created_at?: string;
1459
+ default_product_type?: string;
1460
+ email?: string | null;
1461
+ id?: string;
1462
+ imported_file_name?: string | null;
1463
+ name?: string;
1464
+ notes?: string | null;
1465
+ phone?: string | null;
1466
+ updated_at?: string;
1467
+ };
1468
+ Relationships: [];
1469
+ };
1470
+ trade_item_drafts: {
1471
+ Row: {
1472
+ connection_id: string | null;
1473
+ created_at: string;
1474
+ data: import("../integrations/supabase/types").Json;
1475
+ id: string;
1476
+ updated_at: string;
1477
+ user_id: string;
1478
+ };
1479
+ Insert: {
1480
+ connection_id?: string | null;
1481
+ created_at?: string;
1482
+ data?: import("../integrations/supabase/types").Json;
1483
+ id?: string;
1484
+ updated_at?: string;
1485
+ user_id: string;
1486
+ };
1487
+ Update: {
1488
+ connection_id?: string | null;
1489
+ created_at?: string;
1490
+ data?: import("../integrations/supabase/types").Json;
1491
+ id?: string;
1492
+ updated_at?: string;
1493
+ user_id?: string;
1494
+ };
1495
+ Relationships: [];
1496
+ };
1497
+ user_roles: {
1498
+ Row: {
1499
+ created_at: string;
1500
+ id: string;
1501
+ role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
1502
+ user_id: string;
1503
+ };
1504
+ Insert: {
1505
+ created_at?: string;
1506
+ id?: string;
1507
+ role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
1508
+ user_id: string;
1509
+ };
1510
+ Update: {
1511
+ created_at?: string;
1512
+ id?: string;
1513
+ role?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
1514
+ user_id?: string;
1515
+ };
1516
+ Relationships: [{
1517
+ foreignKeyName: "user_roles_user_id_fkey";
1518
+ columns: ["user_id"];
1519
+ isOneToOne: false;
1520
+ referencedRelation: "profiles";
1521
+ referencedColumns: ["id"];
1522
+ }];
1523
+ };
1524
+ };
1525
+ Views: { [_ in never]: never; };
1526
+ Functions: {
1527
+ has_role: {
1528
+ Args: {
1529
+ _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
1530
+ _user_id: string;
1531
+ };
1532
+ Returns: boolean;
1533
+ };
1534
+ schedule_floriday_network_sync: {
1535
+ Args: {
1536
+ p_apikey: string;
1537
+ p_url: string;
1538
+ };
1539
+ Returns: number;
1540
+ };
1541
+ schedule_floriday_token_refresh: {
1542
+ Args: {
1543
+ p_apikey: string;
1544
+ p_url: string;
1545
+ };
1546
+ Returns: number;
1547
+ };
1548
+ show_limit: {
1549
+ Args: never;
1550
+ Returns: number;
1551
+ };
1552
+ show_trgm: {
1553
+ Args: {
1554
+ "": string;
1555
+ };
1556
+ Returns: string[];
1557
+ };
1558
+ };
1559
+ Enums: {
1560
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
1561
+ exact_env: "staging" | "live";
1562
+ };
1563
+ CompositeTypes: { [_ in never]: never; };
1564
+ }, {
1565
+ PostgrestVersion: "14.5";
1566
+ }>;
1567
+ userId: string;
1568
+ claims: import("@supabase/auth-js").JwtPayload;
1569
+ }, undefined, undefined, undefined>], undefined, Promise<{
1570
+ orders: FloridayOrder[];
1571
+ }>>;
1572
+ //# sourceMappingURL=floriday.functions.d.ts.map