@flowselections/mailbox-orders 1.0.1

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 (69) 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 +15 -0
  4. package/dist-lib/components/MailboxInboxPage.d.ts +2 -0
  5. package/dist-lib/components/MailboxInboxPage.d.ts.map +1 -0
  6. package/dist-lib/components/MailboxInboxPage.js +61 -0
  7. package/dist-lib/components/MailboxProcessedPage.d.ts +2 -0
  8. package/dist-lib/components/MailboxProcessedPage.d.ts.map +1 -0
  9. package/dist-lib/components/MailboxProcessedPage.js +21 -0
  10. package/dist-lib/components/MailboxProposalsPage.d.ts +2 -0
  11. package/dist-lib/components/MailboxProposalsPage.d.ts.map +1 -0
  12. package/dist-lib/components/MailboxProposalsPage.js +198 -0
  13. package/dist-lib/components/SearchableSelect.d.ts +18 -0
  14. package/dist-lib/components/SearchableSelect.d.ts.map +1 -0
  15. package/dist-lib/components/SearchableSelect.js +20 -0
  16. package/dist-lib/components/settings/ImapAccountsCard.d.ts +2 -0
  17. package/dist-lib/components/settings/ImapAccountsCard.d.ts.map +1 -0
  18. package/dist-lib/components/settings/ImapAccountsCard.js +136 -0
  19. package/dist-lib/components/settings/ImapProfilesCard.d.ts +2 -0
  20. package/dist-lib/components/settings/ImapProfilesCard.d.ts.map +1 -0
  21. package/dist-lib/components/settings/ImapProfilesCard.js +101 -0
  22. package/dist-lib/components/settings/MailboxOrderTemplateCard.d.ts +2 -0
  23. package/dist-lib/components/settings/MailboxOrderTemplateCard.d.ts.map +1 -0
  24. package/dist-lib/components/settings/MailboxOrderTemplateCard.js +98 -0
  25. package/dist-lib/components/settings/MailboxSettingsCard.d.ts +2 -0
  26. package/dist-lib/components/settings/MailboxSettingsCard.d.ts.map +1 -0
  27. package/dist-lib/components/settings/MailboxSettingsCard.js +85 -0
  28. package/dist-lib/index.d.ts +12 -0
  29. package/dist-lib/index.d.ts.map +1 -0
  30. package/dist-lib/index.js +34 -0
  31. package/dist-lib/integrations/supabase/auth-attacher.d.ts +2 -0
  32. package/dist-lib/integrations/supabase/auth-attacher.d.ts.map +1 -0
  33. package/dist-lib/integrations/supabase/auth-attacher.js +15 -0
  34. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2978 -0
  35. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -0
  36. package/dist-lib/integrations/supabase/auth-middleware.js +52 -0
  37. package/dist-lib/integrations/supabase/client.d.ts +2974 -0
  38. package/dist-lib/integrations/supabase/client.d.ts.map +1 -0
  39. package/dist-lib/integrations/supabase/client.js +13 -0
  40. package/dist-lib/integrations/supabase/client.server.d.ts +2974 -0
  41. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -0
  42. package/dist-lib/integrations/supabase/client.server.js +30 -0
  43. package/dist-lib/integrations/supabase/types.d.ts +3119 -0
  44. package/dist-lib/integrations/supabase/types.d.ts.map +1 -0
  45. package/dist-lib/integrations/supabase/types.js +8 -0
  46. package/dist-lib/lib/imap.functions.d.ts +32852 -0
  47. package/dist-lib/lib/imap.functions.d.ts.map +1 -0
  48. package/dist-lib/lib/imap.functions.js +235 -0
  49. package/dist-lib/lib/mailbox-ai.server.d.ts +32 -0
  50. package/dist-lib/lib/mailbox-ai.server.d.ts.map +1 -0
  51. package/dist-lib/lib/mailbox-ai.server.js +107 -0
  52. package/dist-lib/lib/mailbox-auto.server.d.ts +9 -0
  53. package/dist-lib/lib/mailbox-auto.server.d.ts.map +1 -0
  54. package/dist-lib/lib/mailbox-auto.server.js +198 -0
  55. package/dist-lib/lib/mailbox-template.functions.d.ts +17913 -0
  56. package/dist-lib/lib/mailbox-template.functions.d.ts.map +1 -0
  57. package/dist-lib/lib/mailbox-template.functions.js +106 -0
  58. package/dist-lib/lib/mailbox.functions.d.ts +32888 -0
  59. package/dist-lib/lib/mailbox.functions.d.ts.map +1 -0
  60. package/dist-lib/lib/mailbox.functions.js +334 -0
  61. package/dist-lib/lib/utils.d.ts +3 -0
  62. package/dist-lib/lib/utils.d.ts.map +1 -0
  63. package/dist-lib/lib/utils.js +5 -0
  64. package/dist-lib/lib/validationSchemas.d.ts +15 -0
  65. package/dist-lib/lib/validationSchemas.d.ts.map +1 -0
  66. package/dist-lib/lib/validationSchemas.js +25 -0
  67. package/dist-lib/styles.css +1 -0
  68. package/package.json +96 -0
  69. package/public/flowselections-assets/template-module/README.md +15 -0
@@ -0,0 +1,2978 @@
1
+ import type { Database } from './types';
2
+ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
3
+ supabase: import("@supabase/supabase-js").SupabaseClient<Database, "public", "public", {
4
+ Tables: {
5
+ agenda_connections: {
6
+ Row: {
7
+ account_email: string | null;
8
+ created_at: string;
9
+ id: string;
10
+ last_synced_at: string | null;
11
+ provider: string;
12
+ selected_calendars: import("./types").Json;
13
+ status: string;
14
+ sync_mode: string;
15
+ updated_at: string;
16
+ user_id: string;
17
+ };
18
+ Insert: {
19
+ account_email?: string | null;
20
+ created_at?: string;
21
+ id?: string;
22
+ last_synced_at?: string | null;
23
+ provider: string;
24
+ selected_calendars?: import("./types").Json;
25
+ status?: string;
26
+ sync_mode?: string;
27
+ updated_at?: string;
28
+ user_id: string;
29
+ };
30
+ Update: {
31
+ account_email?: string | null;
32
+ created_at?: string;
33
+ id?: string;
34
+ last_synced_at?: string | null;
35
+ provider?: string;
36
+ selected_calendars?: import("./types").Json;
37
+ status?: string;
38
+ sync_mode?: string;
39
+ updated_at?: string;
40
+ user_id?: string;
41
+ };
42
+ Relationships: [];
43
+ };
44
+ agenda_events: {
45
+ Row: {
46
+ all_day: boolean;
47
+ calendar_id: string;
48
+ category: string | null;
49
+ color: string;
50
+ created_at: string;
51
+ description: string | null;
52
+ end_at: string;
53
+ external_id: string | null;
54
+ external_provider: string | null;
55
+ id: string;
56
+ linked_data: import("./types").Json;
57
+ location: string | null;
58
+ notes: string | null;
59
+ recurrence: string | null;
60
+ reminders: import("./types").Json;
61
+ source_id: string | null;
62
+ source_module: string;
63
+ source_type: string | null;
64
+ start_at: string;
65
+ status: string;
66
+ title: string;
67
+ updated_at: string;
68
+ user_id: string;
69
+ };
70
+ Insert: {
71
+ all_day?: boolean;
72
+ calendar_id?: string;
73
+ category?: string | null;
74
+ color?: string;
75
+ created_at?: string;
76
+ description?: string | null;
77
+ end_at: string;
78
+ external_id?: string | null;
79
+ external_provider?: string | null;
80
+ id?: string;
81
+ linked_data?: import("./types").Json;
82
+ location?: string | null;
83
+ notes?: string | null;
84
+ recurrence?: string | null;
85
+ reminders?: import("./types").Json;
86
+ source_id?: string | null;
87
+ source_module?: string;
88
+ source_type?: string | null;
89
+ start_at: string;
90
+ status?: string;
91
+ title: string;
92
+ updated_at?: string;
93
+ user_id: string;
94
+ };
95
+ Update: {
96
+ all_day?: boolean;
97
+ calendar_id?: string;
98
+ category?: string | null;
99
+ color?: string;
100
+ created_at?: string;
101
+ description?: string | null;
102
+ end_at?: string;
103
+ external_id?: string | null;
104
+ external_provider?: string | null;
105
+ id?: string;
106
+ linked_data?: import("./types").Json;
107
+ location?: string | null;
108
+ notes?: string | null;
109
+ recurrence?: string | null;
110
+ reminders?: import("./types").Json;
111
+ source_id?: string | null;
112
+ source_module?: string;
113
+ source_type?: string | null;
114
+ start_at?: string;
115
+ status?: string;
116
+ title?: string;
117
+ updated_at?: string;
118
+ user_id?: string;
119
+ };
120
+ Relationships: [];
121
+ };
122
+ agenda_settings: {
123
+ Row: {
124
+ color_map: import("./types").Json;
125
+ created_at: string;
126
+ default_calendar_id: string;
127
+ default_view: string;
128
+ settings: import("./types").Json;
129
+ updated_at: string;
130
+ user_id: string;
131
+ };
132
+ Insert: {
133
+ color_map?: import("./types").Json;
134
+ created_at?: string;
135
+ default_calendar_id?: string;
136
+ default_view?: string;
137
+ settings?: import("./types").Json;
138
+ updated_at?: string;
139
+ user_id: string;
140
+ };
141
+ Update: {
142
+ color_map?: import("./types").Json;
143
+ created_at?: string;
144
+ default_calendar_id?: string;
145
+ default_view?: string;
146
+ settings?: import("./types").Json;
147
+ updated_at?: string;
148
+ user_id?: string;
149
+ };
150
+ Relationships: [];
151
+ };
152
+ bugs: {
153
+ Row: {
154
+ attachment_url: string | null;
155
+ created_at: string;
156
+ description: string;
157
+ id: string;
158
+ priority: string;
159
+ status: string;
160
+ title: string;
161
+ updated_at: string;
162
+ user_id: string;
163
+ };
164
+ Insert: {
165
+ attachment_url?: string | null;
166
+ created_at?: string;
167
+ description: string;
168
+ id?: string;
169
+ priority?: string;
170
+ status?: string;
171
+ title: string;
172
+ updated_at?: string;
173
+ user_id: string;
174
+ };
175
+ Update: {
176
+ attachment_url?: string | null;
177
+ created_at?: string;
178
+ description?: string;
179
+ id?: string;
180
+ priority?: string;
181
+ status?: string;
182
+ title?: string;
183
+ updated_at?: string;
184
+ user_id?: string;
185
+ };
186
+ Relationships: [];
187
+ };
188
+ collections: {
189
+ Row: {
190
+ created_at: string;
191
+ created_by: string | null;
192
+ id: string;
193
+ name: string;
194
+ updated_at: string;
195
+ };
196
+ Insert: {
197
+ created_at?: string;
198
+ created_by?: string | null;
199
+ id?: string;
200
+ name: string;
201
+ updated_at?: string;
202
+ };
203
+ Update: {
204
+ created_at?: string;
205
+ created_by?: string | null;
206
+ id?: string;
207
+ name?: string;
208
+ updated_at?: string;
209
+ };
210
+ Relationships: [];
211
+ };
212
+ customer_audit_log: {
213
+ Row: {
214
+ action: string;
215
+ changes: import("./types").Json;
216
+ created_at: string;
217
+ customer_id: string;
218
+ id: string;
219
+ user_id: string | null;
220
+ };
221
+ Insert: {
222
+ action: string;
223
+ changes?: import("./types").Json;
224
+ created_at?: string;
225
+ customer_id: string;
226
+ id?: string;
227
+ user_id?: string | null;
228
+ };
229
+ Update: {
230
+ action?: string;
231
+ changes?: import("./types").Json;
232
+ created_at?: string;
233
+ customer_id?: string;
234
+ id?: string;
235
+ user_id?: string | null;
236
+ };
237
+ Relationships: [{
238
+ foreignKeyName: "customer_audit_log_customer_id_fkey";
239
+ columns: ["customer_id"];
240
+ isOneToOne: false;
241
+ referencedRelation: "customers";
242
+ referencedColumns: ["id"];
243
+ }];
244
+ };
245
+ customer_contacts: {
246
+ Row: {
247
+ created_at: string;
248
+ customer_id: string;
249
+ email: string | null;
250
+ floriday_contact_id: string | null;
251
+ full_name: string;
252
+ id: string;
253
+ is_active: boolean;
254
+ job_title: string | null;
255
+ phone: string | null;
256
+ photo_url: string | null;
257
+ raw: import("./types").Json | null;
258
+ updated_at: string;
259
+ };
260
+ Insert: {
261
+ created_at?: string;
262
+ customer_id: string;
263
+ email?: string | null;
264
+ floriday_contact_id?: string | null;
265
+ full_name: string;
266
+ id?: string;
267
+ is_active?: boolean;
268
+ job_title?: string | null;
269
+ phone?: string | null;
270
+ photo_url?: string | null;
271
+ raw?: import("./types").Json | null;
272
+ updated_at?: string;
273
+ };
274
+ Update: {
275
+ created_at?: string;
276
+ customer_id?: string;
277
+ email?: string | null;
278
+ floriday_contact_id?: string | null;
279
+ full_name?: string;
280
+ id?: string;
281
+ is_active?: boolean;
282
+ job_title?: string | null;
283
+ phone?: string | null;
284
+ photo_url?: string | null;
285
+ raw?: import("./types").Json | null;
286
+ updated_at?: string;
287
+ };
288
+ Relationships: [{
289
+ foreignKeyName: "customer_contacts_customer_id_fkey";
290
+ columns: ["customer_id"];
291
+ isOneToOne: false;
292
+ referencedRelation: "customers";
293
+ referencedColumns: ["id"];
294
+ }];
295
+ };
296
+ customer_delivery_locations: {
297
+ Row: {
298
+ address_line: string | null;
299
+ city: string | null;
300
+ country: string | null;
301
+ created_at: string;
302
+ customer_id: string;
303
+ floriday_location_id: string | null;
304
+ gln: string | null;
305
+ id: string;
306
+ is_primary: boolean;
307
+ name: string | null;
308
+ postal_code: string | null;
309
+ raw: import("./types").Json | null;
310
+ updated_at: string;
311
+ };
312
+ Insert: {
313
+ address_line?: string | null;
314
+ city?: string | null;
315
+ country?: string | null;
316
+ created_at?: string;
317
+ customer_id: string;
318
+ floriday_location_id?: string | null;
319
+ gln?: string | null;
320
+ id?: string;
321
+ is_primary?: boolean;
322
+ name?: string | null;
323
+ postal_code?: string | null;
324
+ raw?: import("./types").Json | null;
325
+ updated_at?: string;
326
+ };
327
+ Update: {
328
+ address_line?: string | null;
329
+ city?: string | null;
330
+ country?: string | null;
331
+ created_at?: string;
332
+ customer_id?: string;
333
+ floriday_location_id?: string | null;
334
+ gln?: string | null;
335
+ id?: string;
336
+ is_primary?: boolean;
337
+ name?: string | null;
338
+ postal_code?: string | null;
339
+ raw?: import("./types").Json | null;
340
+ updated_at?: string;
341
+ };
342
+ Relationships: [{
343
+ foreignKeyName: "customer_delivery_locations_customer_id_fkey";
344
+ columns: ["customer_id"];
345
+ isOneToOne: false;
346
+ referencedRelation: "customers";
347
+ referencedColumns: ["id"];
348
+ }];
349
+ };
350
+ customer_field_options: {
351
+ Row: {
352
+ created_at: string;
353
+ field_setting_id: string;
354
+ id: string;
355
+ label: string;
356
+ sort_order: number;
357
+ };
358
+ Insert: {
359
+ created_at?: string;
360
+ field_setting_id: string;
361
+ id?: string;
362
+ label: string;
363
+ sort_order?: number;
364
+ };
365
+ Update: {
366
+ created_at?: string;
367
+ field_setting_id?: string;
368
+ id?: string;
369
+ label?: string;
370
+ sort_order?: number;
371
+ };
372
+ Relationships: [{
373
+ foreignKeyName: "customer_field_options_field_setting_id_fkey";
374
+ columns: ["field_setting_id"];
375
+ isOneToOne: false;
376
+ referencedRelation: "customer_field_settings";
377
+ referencedColumns: ["id"];
378
+ }];
379
+ };
380
+ customer_field_settings: {
381
+ Row: {
382
+ created_at: string;
383
+ field_key: string;
384
+ field_label: string;
385
+ field_type: string;
386
+ id: string;
387
+ is_custom: boolean;
388
+ sort_order: number;
389
+ updated_at: string;
390
+ };
391
+ Insert: {
392
+ created_at?: string;
393
+ field_key: string;
394
+ field_label: string;
395
+ field_type?: string;
396
+ id?: string;
397
+ is_custom?: boolean;
398
+ sort_order?: number;
399
+ updated_at?: string;
400
+ };
401
+ Update: {
402
+ created_at?: string;
403
+ field_key?: string;
404
+ field_label?: string;
405
+ field_type?: string;
406
+ id?: string;
407
+ is_custom?: boolean;
408
+ sort_order?: number;
409
+ updated_at?: string;
410
+ };
411
+ Relationships: [];
412
+ };
413
+ customer_selected_assortment: {
414
+ Row: {
415
+ article_number: string | null;
416
+ created_at: string;
417
+ customer_id: string;
418
+ floriday_item_id: string | null;
419
+ id: string;
420
+ price: number | null;
421
+ product_group: string | null;
422
+ product_name: string;
423
+ raw: import("./types").Json | null;
424
+ unit: string | null;
425
+ updated_at: string;
426
+ };
427
+ Insert: {
428
+ article_number?: string | null;
429
+ created_at?: string;
430
+ customer_id: string;
431
+ floriday_item_id?: string | null;
432
+ id?: string;
433
+ price?: number | null;
434
+ product_group?: string | null;
435
+ product_name: string;
436
+ raw?: import("./types").Json | null;
437
+ unit?: string | null;
438
+ updated_at?: string;
439
+ };
440
+ Update: {
441
+ article_number?: string | null;
442
+ created_at?: string;
443
+ customer_id?: string;
444
+ floriday_item_id?: string | null;
445
+ id?: string;
446
+ price?: number | null;
447
+ product_group?: string | null;
448
+ product_name?: string;
449
+ raw?: import("./types").Json | null;
450
+ unit?: string | null;
451
+ updated_at?: string;
452
+ };
453
+ Relationships: [{
454
+ foreignKeyName: "customer_selected_assortment_customer_id_fkey";
455
+ columns: ["customer_id"];
456
+ isOneToOne: false;
457
+ referencedRelation: "customers";
458
+ referencedColumns: ["id"];
459
+ }];
460
+ };
461
+ customer_trade_settings: {
462
+ Row: {
463
+ category: string;
464
+ created_at: string;
465
+ customer_id: string;
466
+ id: string;
467
+ is_active: boolean;
468
+ raw: import("./types").Json | null;
469
+ setting_key: string;
470
+ setting_label: string;
471
+ updated_at: string;
472
+ };
473
+ Insert: {
474
+ category?: string;
475
+ created_at?: string;
476
+ customer_id: string;
477
+ id?: string;
478
+ is_active?: boolean;
479
+ raw?: import("./types").Json | null;
480
+ setting_key: string;
481
+ setting_label: string;
482
+ updated_at?: string;
483
+ };
484
+ Update: {
485
+ category?: string;
486
+ created_at?: string;
487
+ customer_id?: string;
488
+ id?: string;
489
+ is_active?: boolean;
490
+ raw?: import("./types").Json | null;
491
+ setting_key?: string;
492
+ setting_label?: string;
493
+ updated_at?: string;
494
+ };
495
+ Relationships: [{
496
+ foreignKeyName: "customer_trade_settings_customer_id_fkey";
497
+ columns: ["customer_id"];
498
+ isOneToOne: false;
499
+ referencedRelation: "customers";
500
+ referencedColumns: ["id"];
501
+ }];
502
+ };
503
+ customers: {
504
+ Row: {
505
+ address: string | null;
506
+ bio: string | null;
507
+ city: string | null;
508
+ commercial_name: string | null;
509
+ company_name: string;
510
+ connection_status: string;
511
+ contact_person: string | null;
512
+ country: string | null;
513
+ created_at: string;
514
+ custom_fields: import("./types").Json;
515
+ customer_class: string | null;
516
+ email: string | null;
517
+ external_id: string | null;
518
+ floriday_connection_id: string | null;
519
+ floriday_organization_id: string | null;
520
+ floriday_raw: import("./types").Json | null;
521
+ gln: string | null;
522
+ house_number: string | null;
523
+ id: string;
524
+ is_active: boolean;
525
+ last_synced_at: string | null;
526
+ logo_url: string | null;
527
+ markets: string[];
528
+ notes: string | null;
529
+ organization_type: string | null;
530
+ payment_methods: string[];
531
+ phone: string | null;
532
+ postal_code: string | null;
533
+ product_groups: string[];
534
+ segments: string[];
535
+ source: string;
536
+ street: string | null;
537
+ sync_error: string | null;
538
+ sync_status: string;
539
+ trade_forms: string[];
540
+ updated_at: string;
541
+ vat_number: string | null;
542
+ website: string | null;
543
+ };
544
+ Insert: {
545
+ address?: string | null;
546
+ bio?: string | null;
547
+ city?: string | null;
548
+ commercial_name?: string | null;
549
+ company_name: string;
550
+ connection_status?: string;
551
+ contact_person?: string | null;
552
+ country?: string | null;
553
+ created_at?: string;
554
+ custom_fields?: import("./types").Json;
555
+ customer_class?: string | null;
556
+ email?: string | null;
557
+ external_id?: string | null;
558
+ floriday_connection_id?: string | null;
559
+ floriday_organization_id?: string | null;
560
+ floriday_raw?: import("./types").Json | null;
561
+ gln?: string | null;
562
+ house_number?: string | null;
563
+ id?: string;
564
+ is_active?: boolean;
565
+ last_synced_at?: string | null;
566
+ logo_url?: string | null;
567
+ markets?: string[];
568
+ notes?: string | null;
569
+ organization_type?: string | null;
570
+ payment_methods?: string[];
571
+ phone?: string | null;
572
+ postal_code?: string | null;
573
+ product_groups?: string[];
574
+ segments?: string[];
575
+ source?: string;
576
+ street?: string | null;
577
+ sync_error?: string | null;
578
+ sync_status?: string;
579
+ trade_forms?: string[];
580
+ updated_at?: string;
581
+ vat_number?: string | null;
582
+ website?: string | null;
583
+ };
584
+ Update: {
585
+ address?: string | null;
586
+ bio?: string | null;
587
+ city?: string | null;
588
+ commercial_name?: string | null;
589
+ company_name?: string;
590
+ connection_status?: string;
591
+ contact_person?: string | null;
592
+ country?: string | null;
593
+ created_at?: string;
594
+ custom_fields?: import("./types").Json;
595
+ customer_class?: string | null;
596
+ email?: string | null;
597
+ external_id?: string | null;
598
+ floriday_connection_id?: string | null;
599
+ floriday_organization_id?: string | null;
600
+ floriday_raw?: import("./types").Json | null;
601
+ gln?: string | null;
602
+ house_number?: string | null;
603
+ id?: string;
604
+ is_active?: boolean;
605
+ last_synced_at?: string | null;
606
+ logo_url?: string | null;
607
+ markets?: string[];
608
+ notes?: string | null;
609
+ organization_type?: string | null;
610
+ payment_methods?: string[];
611
+ phone?: string | null;
612
+ postal_code?: string | null;
613
+ product_groups?: string[];
614
+ segments?: string[];
615
+ source?: string;
616
+ street?: string | null;
617
+ sync_error?: string | null;
618
+ sync_status?: string;
619
+ trade_forms?: string[];
620
+ updated_at?: string;
621
+ vat_number?: string | null;
622
+ website?: string | null;
623
+ };
624
+ Relationships: [];
625
+ };
626
+ dashboard_ai_conversations: {
627
+ Row: {
628
+ created_at: string;
629
+ id: string;
630
+ messages: import("./types").Json;
631
+ page_id: string | null;
632
+ title: string | null;
633
+ updated_at: string;
634
+ user_id: string;
635
+ };
636
+ Insert: {
637
+ created_at?: string;
638
+ id?: string;
639
+ messages?: import("./types").Json;
640
+ page_id?: string | null;
641
+ title?: string | null;
642
+ updated_at?: string;
643
+ user_id: string;
644
+ };
645
+ Update: {
646
+ created_at?: string;
647
+ id?: string;
648
+ messages?: import("./types").Json;
649
+ page_id?: string | null;
650
+ title?: string | null;
651
+ updated_at?: string;
652
+ user_id?: string;
653
+ };
654
+ Relationships: [{
655
+ foreignKeyName: "dashboard_ai_conversations_page_id_fkey";
656
+ columns: ["page_id"];
657
+ isOneToOne: false;
658
+ referencedRelation: "dashboard_pages";
659
+ referencedColumns: ["id"];
660
+ }];
661
+ };
662
+ dashboard_alert_events: {
663
+ Row: {
664
+ acknowledged: boolean;
665
+ block_id: string;
666
+ created_at: string;
667
+ id: string;
668
+ message: string | null;
669
+ page_id: string;
670
+ severity: string;
671
+ threshold: number | null;
672
+ user_id: string;
673
+ value: number | null;
674
+ };
675
+ Insert: {
676
+ acknowledged?: boolean;
677
+ block_id: string;
678
+ created_at?: string;
679
+ id?: string;
680
+ message?: string | null;
681
+ page_id: string;
682
+ severity?: string;
683
+ threshold?: number | null;
684
+ user_id: string;
685
+ value?: number | null;
686
+ };
687
+ Update: {
688
+ acknowledged?: boolean;
689
+ block_id?: string;
690
+ created_at?: string;
691
+ id?: string;
692
+ message?: string | null;
693
+ page_id?: string;
694
+ severity?: string;
695
+ threshold?: number | null;
696
+ user_id?: string;
697
+ value?: number | null;
698
+ };
699
+ Relationships: [{
700
+ foreignKeyName: "dashboard_alert_events_block_id_fkey";
701
+ columns: ["block_id"];
702
+ isOneToOne: false;
703
+ referencedRelation: "dashboard_blocks";
704
+ referencedColumns: ["id"];
705
+ }, {
706
+ foreignKeyName: "dashboard_alert_events_page_id_fkey";
707
+ columns: ["page_id"];
708
+ isOneToOne: false;
709
+ referencedRelation: "dashboard_pages";
710
+ referencedColumns: ["id"];
711
+ }];
712
+ };
713
+ dashboard_block_templates: {
714
+ Row: {
715
+ config: import("./types").Json;
716
+ created_at: string;
717
+ description: string | null;
718
+ id: string;
719
+ is_public: boolean;
720
+ name: string;
721
+ type: string;
722
+ updated_at: string;
723
+ user_id: string;
724
+ };
725
+ Insert: {
726
+ config?: import("./types").Json;
727
+ created_at?: string;
728
+ description?: string | null;
729
+ id?: string;
730
+ is_public?: boolean;
731
+ name: string;
732
+ type: string;
733
+ updated_at?: string;
734
+ user_id: string;
735
+ };
736
+ Update: {
737
+ config?: import("./types").Json;
738
+ created_at?: string;
739
+ description?: string | null;
740
+ id?: string;
741
+ is_public?: boolean;
742
+ name?: string;
743
+ type?: string;
744
+ updated_at?: string;
745
+ user_id?: string;
746
+ };
747
+ Relationships: [];
748
+ };
749
+ dashboard_blocks: {
750
+ Row: {
751
+ config: import("./types").Json;
752
+ created_at: string;
753
+ filters: import("./types").Json;
754
+ id: string;
755
+ layout: import("./types").Json;
756
+ page_id: string;
757
+ permissions: import("./types").Json;
758
+ sort_order: number;
759
+ title: string;
760
+ type: string;
761
+ updated_at: string;
762
+ };
763
+ Insert: {
764
+ config?: import("./types").Json;
765
+ created_at?: string;
766
+ filters?: import("./types").Json;
767
+ id?: string;
768
+ layout?: import("./types").Json;
769
+ page_id: string;
770
+ permissions?: import("./types").Json;
771
+ sort_order?: number;
772
+ title: string;
773
+ type: string;
774
+ updated_at?: string;
775
+ };
776
+ Update: {
777
+ config?: import("./types").Json;
778
+ created_at?: string;
779
+ filters?: import("./types").Json;
780
+ id?: string;
781
+ layout?: import("./types").Json;
782
+ page_id?: string;
783
+ permissions?: import("./types").Json;
784
+ sort_order?: number;
785
+ title?: string;
786
+ type?: string;
787
+ updated_at?: string;
788
+ };
789
+ Relationships: [{
790
+ foreignKeyName: "dashboard_blocks_page_id_fkey";
791
+ columns: ["page_id"];
792
+ isOneToOne: false;
793
+ referencedRelation: "dashboard_pages";
794
+ referencedColumns: ["id"];
795
+ }];
796
+ };
797
+ dashboard_daily_reports: {
798
+ Row: {
799
+ created_at: string;
800
+ highlights: import("./types").Json | null;
801
+ id: string;
802
+ page_id: string;
803
+ summary: string;
804
+ user_id: string;
805
+ };
806
+ Insert: {
807
+ created_at?: string;
808
+ highlights?: import("./types").Json | null;
809
+ id?: string;
810
+ page_id: string;
811
+ summary: string;
812
+ user_id: string;
813
+ };
814
+ Update: {
815
+ created_at?: string;
816
+ highlights?: import("./types").Json | null;
817
+ id?: string;
818
+ page_id?: string;
819
+ summary?: string;
820
+ user_id?: string;
821
+ };
822
+ Relationships: [{
823
+ foreignKeyName: "dashboard_daily_reports_page_id_fkey";
824
+ columns: ["page_id"];
825
+ isOneToOne: false;
826
+ referencedRelation: "dashboard_pages";
827
+ referencedColumns: ["id"];
828
+ }];
829
+ };
830
+ dashboard_pages: {
831
+ Row: {
832
+ created_at: string;
833
+ icon: string | null;
834
+ id: string;
835
+ is_default: boolean;
836
+ name: string;
837
+ shared_with: string[];
838
+ sort_order: number;
839
+ updated_at: string;
840
+ user_id: string;
841
+ };
842
+ Insert: {
843
+ created_at?: string;
844
+ icon?: string | null;
845
+ id?: string;
846
+ is_default?: boolean;
847
+ name: string;
848
+ shared_with?: string[];
849
+ sort_order?: number;
850
+ updated_at?: string;
851
+ user_id: string;
852
+ };
853
+ Update: {
854
+ created_at?: string;
855
+ icon?: string | null;
856
+ id?: string;
857
+ is_default?: boolean;
858
+ name?: string;
859
+ shared_with?: string[];
860
+ sort_order?: number;
861
+ updated_at?: string;
862
+ user_id?: string;
863
+ };
864
+ Relationships: [];
865
+ };
866
+ dashboard_saved_queries: {
867
+ Row: {
868
+ created_at: string;
869
+ description: string | null;
870
+ id: string;
871
+ name: string;
872
+ query_spec: import("./types").Json;
873
+ updated_at: string;
874
+ user_id: string;
875
+ };
876
+ Insert: {
877
+ created_at?: string;
878
+ description?: string | null;
879
+ id?: string;
880
+ name: string;
881
+ query_spec: import("./types").Json;
882
+ updated_at?: string;
883
+ user_id: string;
884
+ };
885
+ Update: {
886
+ created_at?: string;
887
+ description?: string | null;
888
+ id?: string;
889
+ name?: string;
890
+ query_spec?: import("./types").Json;
891
+ updated_at?: string;
892
+ user_id?: string;
893
+ };
894
+ Relationships: [];
895
+ };
896
+ exact_connections: {
897
+ Row: {
898
+ access_token_encrypted: string;
899
+ company_name: string | null;
900
+ connected_at: string;
901
+ connected_by: string | null;
902
+ division_code: number | null;
903
+ environment: Database["public"]["Enums"]["exact_env"];
904
+ expires_at: string;
905
+ id: string;
906
+ last_error: string | null;
907
+ last_refreshed_at: string | null;
908
+ last_tested_at: string | null;
909
+ refresh_token_encrypted: string;
910
+ status: string;
911
+ updated_at: string;
912
+ };
913
+ Insert: {
914
+ access_token_encrypted: string;
915
+ company_name?: string | null;
916
+ connected_at?: string;
917
+ connected_by?: string | null;
918
+ division_code?: number | null;
919
+ environment: Database["public"]["Enums"]["exact_env"];
920
+ expires_at: string;
921
+ id?: string;
922
+ last_error?: string | null;
923
+ last_refreshed_at?: string | null;
924
+ last_tested_at?: string | null;
925
+ refresh_token_encrypted: string;
926
+ status?: string;
927
+ updated_at?: string;
928
+ };
929
+ Update: {
930
+ access_token_encrypted?: string;
931
+ company_name?: string | null;
932
+ connected_at?: string;
933
+ connected_by?: string | null;
934
+ division_code?: number | null;
935
+ environment?: Database["public"]["Enums"]["exact_env"];
936
+ expires_at?: string;
937
+ id?: string;
938
+ last_error?: string | null;
939
+ last_refreshed_at?: string | null;
940
+ last_tested_at?: string | null;
941
+ refresh_token_encrypted?: string;
942
+ status?: string;
943
+ updated_at?: string;
944
+ };
945
+ Relationships: [];
946
+ };
947
+ exact_credentials: {
948
+ Row: {
949
+ client_id: string;
950
+ client_secret_encrypted: string;
951
+ created_at: string;
952
+ environment: Database["public"]["Enums"]["exact_env"];
953
+ id: string;
954
+ redirect_uri: string;
955
+ updated_at: string;
956
+ };
957
+ Insert: {
958
+ client_id: string;
959
+ client_secret_encrypted: string;
960
+ created_at?: string;
961
+ environment: Database["public"]["Enums"]["exact_env"];
962
+ id?: string;
963
+ redirect_uri?: string;
964
+ updated_at?: string;
965
+ };
966
+ Update: {
967
+ client_id?: string;
968
+ client_secret_encrypted?: string;
969
+ created_at?: string;
970
+ environment?: Database["public"]["Enums"]["exact_env"];
971
+ id?: string;
972
+ redirect_uri?: string;
973
+ updated_at?: string;
974
+ };
975
+ Relationships: [];
976
+ };
977
+ exact_customers_cache: {
978
+ Row: {
979
+ connection_id: string;
980
+ data: import("./types").Json;
981
+ exact_id: string;
982
+ fetched_at: string;
983
+ };
984
+ Insert: {
985
+ connection_id: string;
986
+ data?: import("./types").Json;
987
+ exact_id: string;
988
+ fetched_at?: string;
989
+ };
990
+ Update: {
991
+ connection_id?: string;
992
+ data?: import("./types").Json;
993
+ exact_id?: string;
994
+ fetched_at?: string;
995
+ };
996
+ Relationships: [];
997
+ };
998
+ exact_sync_state: {
999
+ Row: {
1000
+ connection_id: string;
1001
+ last_error: string | null;
1002
+ last_modified_cursor: string | null;
1003
+ last_synced_at: string | null;
1004
+ status: string;
1005
+ updated_at: string;
1006
+ };
1007
+ Insert: {
1008
+ connection_id: string;
1009
+ last_error?: string | null;
1010
+ last_modified_cursor?: string | null;
1011
+ last_synced_at?: string | null;
1012
+ status?: string;
1013
+ updated_at?: string;
1014
+ };
1015
+ Update: {
1016
+ connection_id?: string;
1017
+ last_error?: string | null;
1018
+ last_modified_cursor?: string | null;
1019
+ last_synced_at?: string | null;
1020
+ status?: string;
1021
+ updated_at?: string;
1022
+ };
1023
+ Relationships: [];
1024
+ };
1025
+ floricode_connection_settings: {
1026
+ Row: {
1027
+ catalog_key: string | null;
1028
+ catalog_url: string;
1029
+ created_at: string;
1030
+ id: number;
1031
+ last_meta: import("./types").Json | null;
1032
+ last_test_at: string | null;
1033
+ last_test_error: string | null;
1034
+ last_test_ok: boolean | null;
1035
+ updated_at: string;
1036
+ };
1037
+ Insert: {
1038
+ catalog_key?: string | null;
1039
+ catalog_url?: string;
1040
+ created_at?: string;
1041
+ id?: number;
1042
+ last_meta?: import("./types").Json | null;
1043
+ last_test_at?: string | null;
1044
+ last_test_error?: string | null;
1045
+ last_test_ok?: boolean | null;
1046
+ updated_at?: string;
1047
+ };
1048
+ Update: {
1049
+ catalog_key?: string | null;
1050
+ catalog_url?: string;
1051
+ created_at?: string;
1052
+ id?: number;
1053
+ last_meta?: import("./types").Json | null;
1054
+ last_test_at?: string | null;
1055
+ last_test_error?: string | null;
1056
+ last_test_ok?: boolean | null;
1057
+ updated_at?: string;
1058
+ };
1059
+ Relationships: [];
1060
+ };
1061
+ floricode_records: {
1062
+ Row: {
1063
+ change_date_time: string | null;
1064
+ data: import("./types").Json;
1065
+ last_synced_at: string;
1066
+ record_id: string;
1067
+ resource: string;
1068
+ };
1069
+ Insert: {
1070
+ change_date_time?: string | null;
1071
+ data?: import("./types").Json;
1072
+ last_synced_at?: string;
1073
+ record_id: string;
1074
+ resource: string;
1075
+ };
1076
+ Update: {
1077
+ change_date_time?: string | null;
1078
+ data?: import("./types").Json;
1079
+ last_synced_at?: string;
1080
+ record_id?: string;
1081
+ resource?: string;
1082
+ };
1083
+ Relationships: [];
1084
+ };
1085
+ floricode_sync_state: {
1086
+ Row: {
1087
+ error_message: string | null;
1088
+ last_change_date_time: string | null;
1089
+ last_sequence_number: number;
1090
+ last_sync_at: string | null;
1091
+ resource: string;
1092
+ status: string;
1093
+ updated_at: string;
1094
+ };
1095
+ Insert: {
1096
+ error_message?: string | null;
1097
+ last_change_date_time?: string | null;
1098
+ last_sequence_number?: number;
1099
+ last_sync_at?: string | null;
1100
+ resource: string;
1101
+ status?: string;
1102
+ updated_at?: string;
1103
+ };
1104
+ Update: {
1105
+ error_message?: string | null;
1106
+ last_change_date_time?: string | null;
1107
+ last_sequence_number?: number;
1108
+ last_sync_at?: string | null;
1109
+ resource?: string;
1110
+ status?: string;
1111
+ updated_at?: string;
1112
+ };
1113
+ Relationships: [];
1114
+ };
1115
+ floriday_connections: {
1116
+ Row: {
1117
+ access_token: string | null;
1118
+ api_key: string;
1119
+ client_id: string;
1120
+ client_secret: string;
1121
+ created_at: string;
1122
+ customers_endpoint: string | null;
1123
+ environment: string;
1124
+ gln_code: string | null;
1125
+ id: string;
1126
+ is_active: boolean;
1127
+ label: string;
1128
+ organization_name: string | null;
1129
+ preferred_warehouse_id: string | null;
1130
+ preferred_warehouse_name: string | null;
1131
+ token_expires_at: string | null;
1132
+ updated_at: string;
1133
+ };
1134
+ Insert: {
1135
+ access_token?: string | null;
1136
+ api_key: string;
1137
+ client_id: string;
1138
+ client_secret: string;
1139
+ created_at?: string;
1140
+ customers_endpoint?: string | null;
1141
+ environment: string;
1142
+ gln_code?: string | null;
1143
+ id?: string;
1144
+ is_active?: boolean;
1145
+ label?: string;
1146
+ organization_name?: string | null;
1147
+ preferred_warehouse_id?: string | null;
1148
+ preferred_warehouse_name?: string | null;
1149
+ token_expires_at?: string | null;
1150
+ updated_at?: string;
1151
+ };
1152
+ Update: {
1153
+ access_token?: string | null;
1154
+ api_key?: string;
1155
+ client_id?: string;
1156
+ client_secret?: string;
1157
+ created_at?: string;
1158
+ customers_endpoint?: string | null;
1159
+ environment?: string;
1160
+ gln_code?: string | null;
1161
+ id?: string;
1162
+ is_active?: boolean;
1163
+ label?: string;
1164
+ organization_name?: string | null;
1165
+ preferred_warehouse_id?: string | null;
1166
+ preferred_warehouse_name?: string | null;
1167
+ token_expires_at?: string | null;
1168
+ updated_at?: string;
1169
+ };
1170
+ Relationships: [];
1171
+ };
1172
+ floriday_customers_cache: {
1173
+ Row: {
1174
+ connection_id: string | null;
1175
+ data: import("./types").Json;
1176
+ fetched_at: string;
1177
+ organization_id: string;
1178
+ };
1179
+ Insert: {
1180
+ connection_id?: string | null;
1181
+ data?: import("./types").Json;
1182
+ fetched_at?: string;
1183
+ organization_id: string;
1184
+ };
1185
+ Update: {
1186
+ connection_id?: string | null;
1187
+ data?: import("./types").Json;
1188
+ fetched_at?: string;
1189
+ organization_id?: string;
1190
+ };
1191
+ Relationships: [{
1192
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
1193
+ columns: ["connection_id"];
1194
+ isOneToOne: false;
1195
+ referencedRelation: "floriday_connections";
1196
+ referencedColumns: ["id"];
1197
+ }];
1198
+ };
1199
+ floriday_network_cache: {
1200
+ Row: {
1201
+ city: string | null;
1202
+ connection_id: string;
1203
+ country: string | null;
1204
+ data: import("./types").Json;
1205
+ fetched_at: string;
1206
+ gln: string | null;
1207
+ organization_id: string;
1208
+ organization_name: string | null;
1209
+ };
1210
+ Insert: {
1211
+ city?: string | null;
1212
+ connection_id: string;
1213
+ country?: string | null;
1214
+ data?: import("./types").Json;
1215
+ fetched_at?: string;
1216
+ gln?: string | null;
1217
+ organization_id: string;
1218
+ organization_name?: string | null;
1219
+ };
1220
+ Update: {
1221
+ city?: string | null;
1222
+ connection_id?: string;
1223
+ country?: string | null;
1224
+ data?: import("./types").Json;
1225
+ fetched_at?: string;
1226
+ gln?: string | null;
1227
+ organization_id?: string;
1228
+ organization_name?: string | null;
1229
+ };
1230
+ Relationships: [];
1231
+ };
1232
+ floriday_network_sync_state: {
1233
+ Row: {
1234
+ connection_id: string;
1235
+ last_error: string | null;
1236
+ last_sequence_number: number;
1237
+ last_synced_at: string | null;
1238
+ updated_at: string;
1239
+ };
1240
+ Insert: {
1241
+ connection_id: string;
1242
+ last_error?: string | null;
1243
+ last_sequence_number?: number;
1244
+ last_synced_at?: string | null;
1245
+ updated_at?: string;
1246
+ };
1247
+ Update: {
1248
+ connection_id?: string;
1249
+ last_error?: string | null;
1250
+ last_sequence_number?: number;
1251
+ last_synced_at?: string | null;
1252
+ updated_at?: string;
1253
+ };
1254
+ Relationships: [];
1255
+ };
1256
+ floriday_settings: {
1257
+ Row: {
1258
+ active_environment: string;
1259
+ id: number;
1260
+ updated_at: string;
1261
+ };
1262
+ Insert: {
1263
+ active_environment?: string;
1264
+ id?: number;
1265
+ updated_at?: string;
1266
+ };
1267
+ Update: {
1268
+ active_environment?: string;
1269
+ id?: number;
1270
+ updated_at?: string;
1271
+ };
1272
+ Relationships: [];
1273
+ };
1274
+ imap_accounts: {
1275
+ Row: {
1276
+ created_at: string;
1277
+ email: string | null;
1278
+ host: string;
1279
+ id: string;
1280
+ is_active: boolean;
1281
+ last_test_error: string | null;
1282
+ last_test_ok: boolean | null;
1283
+ last_tested_at: string | null;
1284
+ name: string;
1285
+ password: string | null;
1286
+ password_secret_name: string | null;
1287
+ port: number;
1288
+ updated_at: string;
1289
+ use_tls: boolean;
1290
+ username: string;
1291
+ };
1292
+ Insert: {
1293
+ created_at?: string;
1294
+ email?: string | null;
1295
+ host: string;
1296
+ id?: string;
1297
+ is_active?: boolean;
1298
+ last_test_error?: string | null;
1299
+ last_test_ok?: boolean | null;
1300
+ last_tested_at?: string | null;
1301
+ name: string;
1302
+ password?: string | null;
1303
+ password_secret_name?: string | null;
1304
+ port?: number;
1305
+ updated_at?: string;
1306
+ use_tls?: boolean;
1307
+ username: string;
1308
+ };
1309
+ Update: {
1310
+ created_at?: string;
1311
+ email?: string | null;
1312
+ host?: string;
1313
+ id?: string;
1314
+ is_active?: boolean;
1315
+ last_test_error?: string | null;
1316
+ last_test_ok?: boolean | null;
1317
+ last_tested_at?: string | null;
1318
+ name?: string;
1319
+ password?: string | null;
1320
+ password_secret_name?: string | null;
1321
+ port?: number;
1322
+ updated_at?: string;
1323
+ use_tls?: boolean;
1324
+ username?: string;
1325
+ };
1326
+ Relationships: [];
1327
+ };
1328
+ imap_profiles: {
1329
+ Row: {
1330
+ account_id: string | null;
1331
+ created_at: string;
1332
+ folder: string;
1333
+ id: string;
1334
+ last_error: string | null;
1335
+ last_polled_at: string | null;
1336
+ last_uid_seen: number;
1337
+ name: string;
1338
+ polling_enabled: boolean;
1339
+ profile_key: string;
1340
+ updated_at: string;
1341
+ };
1342
+ Insert: {
1343
+ account_id?: string | null;
1344
+ created_at?: string;
1345
+ folder?: string;
1346
+ id?: string;
1347
+ last_error?: string | null;
1348
+ last_polled_at?: string | null;
1349
+ last_uid_seen?: number;
1350
+ name: string;
1351
+ polling_enabled?: boolean;
1352
+ profile_key: string;
1353
+ updated_at?: string;
1354
+ };
1355
+ Update: {
1356
+ account_id?: string | null;
1357
+ created_at?: string;
1358
+ folder?: string;
1359
+ id?: string;
1360
+ last_error?: string | null;
1361
+ last_polled_at?: string | null;
1362
+ last_uid_seen?: number;
1363
+ name?: string;
1364
+ polling_enabled?: boolean;
1365
+ profile_key?: string;
1366
+ updated_at?: string;
1367
+ };
1368
+ Relationships: [{
1369
+ foreignKeyName: "imap_profiles_account_id_fkey";
1370
+ columns: ["account_id"];
1371
+ isOneToOne: false;
1372
+ referencedRelation: "imap_accounts";
1373
+ referencedColumns: ["id"];
1374
+ }];
1375
+ };
1376
+ imap_sync_log: {
1377
+ Row: {
1378
+ account_id: string | null;
1379
+ details: import("./types").Json | null;
1380
+ error: string | null;
1381
+ finished_at: string | null;
1382
+ id: string;
1383
+ inserted: number;
1384
+ ok: boolean | null;
1385
+ profile_id: string | null;
1386
+ started_at: string;
1387
+ };
1388
+ Insert: {
1389
+ account_id?: string | null;
1390
+ details?: import("./types").Json | null;
1391
+ error?: string | null;
1392
+ finished_at?: string | null;
1393
+ id?: string;
1394
+ inserted?: number;
1395
+ ok?: boolean | null;
1396
+ profile_id?: string | null;
1397
+ started_at?: string;
1398
+ };
1399
+ Update: {
1400
+ account_id?: string | null;
1401
+ details?: import("./types").Json | null;
1402
+ error?: string | null;
1403
+ finished_at?: string | null;
1404
+ id?: string;
1405
+ inserted?: number;
1406
+ ok?: boolean | null;
1407
+ profile_id?: string | null;
1408
+ started_at?: string;
1409
+ };
1410
+ Relationships: [{
1411
+ foreignKeyName: "imap_sync_log_account_id_fkey";
1412
+ columns: ["account_id"];
1413
+ isOneToOne: false;
1414
+ referencedRelation: "imap_accounts";
1415
+ referencedColumns: ["id"];
1416
+ }, {
1417
+ foreignKeyName: "imap_sync_log_profile_id_fkey";
1418
+ columns: ["profile_id"];
1419
+ isOneToOne: false;
1420
+ referencedRelation: "imap_profiles";
1421
+ referencedColumns: ["id"];
1422
+ }];
1423
+ };
1424
+ inventory_settings: {
1425
+ Row: {
1426
+ created_at: string;
1427
+ hierarchy_levels: string[];
1428
+ id: string;
1429
+ updated_at: string;
1430
+ visible_columns: string[];
1431
+ };
1432
+ Insert: {
1433
+ created_at?: string;
1434
+ hierarchy_levels?: string[];
1435
+ id?: string;
1436
+ updated_at?: string;
1437
+ visible_columns?: string[];
1438
+ };
1439
+ Update: {
1440
+ created_at?: string;
1441
+ hierarchy_levels?: string[];
1442
+ id?: string;
1443
+ updated_at?: string;
1444
+ visible_columns?: string[];
1445
+ };
1446
+ Relationships: [];
1447
+ };
1448
+ locations: {
1449
+ Row: {
1450
+ created_at: string;
1451
+ id: string;
1452
+ name: string;
1453
+ sort_order: number;
1454
+ updated_at: string;
1455
+ };
1456
+ Insert: {
1457
+ created_at?: string;
1458
+ id?: string;
1459
+ name: string;
1460
+ sort_order?: number;
1461
+ updated_at?: string;
1462
+ };
1463
+ Update: {
1464
+ created_at?: string;
1465
+ id?: string;
1466
+ name?: string;
1467
+ sort_order?: number;
1468
+ updated_at?: string;
1469
+ };
1470
+ Relationships: [];
1471
+ };
1472
+ mailbox_messages: {
1473
+ Row: {
1474
+ body_html: string | null;
1475
+ body_text: string | null;
1476
+ created_at: string;
1477
+ error_message: string | null;
1478
+ from_email: string | null;
1479
+ from_name: string | null;
1480
+ id: string;
1481
+ message_id: string | null;
1482
+ profile_id: string | null;
1483
+ raw_size: number | null;
1484
+ received_at: string | null;
1485
+ status: string;
1486
+ subject: string | null;
1487
+ uid: number;
1488
+ updated_at: string;
1489
+ };
1490
+ Insert: {
1491
+ body_html?: string | null;
1492
+ body_text?: string | null;
1493
+ created_at?: string;
1494
+ error_message?: string | null;
1495
+ from_email?: string | null;
1496
+ from_name?: string | null;
1497
+ id?: string;
1498
+ message_id?: string | null;
1499
+ profile_id?: string | null;
1500
+ raw_size?: number | null;
1501
+ received_at?: string | null;
1502
+ status?: string;
1503
+ subject?: string | null;
1504
+ uid: number;
1505
+ updated_at?: string;
1506
+ };
1507
+ Update: {
1508
+ body_html?: string | null;
1509
+ body_text?: string | null;
1510
+ created_at?: string;
1511
+ error_message?: string | null;
1512
+ from_email?: string | null;
1513
+ from_name?: string | null;
1514
+ id?: string;
1515
+ message_id?: string | null;
1516
+ profile_id?: string | null;
1517
+ raw_size?: number | null;
1518
+ received_at?: string | null;
1519
+ status?: string;
1520
+ subject?: string | null;
1521
+ uid?: number;
1522
+ updated_at?: string;
1523
+ };
1524
+ Relationships: [{
1525
+ foreignKeyName: "mailbox_messages_profile_id_fkey";
1526
+ columns: ["profile_id"];
1527
+ isOneToOne: false;
1528
+ referencedRelation: "imap_profiles";
1529
+ referencedColumns: ["id"];
1530
+ }];
1531
+ };
1532
+ mailbox_order_proposals: {
1533
+ Row: {
1534
+ confidence: number | null;
1535
+ created_at: string;
1536
+ created_order_id: string | null;
1537
+ delivery_date: string | null;
1538
+ id: string;
1539
+ matched_customer_id: string | null;
1540
+ message_id: string;
1541
+ notes: string | null;
1542
+ parsed_payload: import("./types").Json | null;
1543
+ reviewed_at: string | null;
1544
+ reviewed_by: string | null;
1545
+ status: string;
1546
+ updated_at: string;
1547
+ };
1548
+ Insert: {
1549
+ confidence?: number | null;
1550
+ created_at?: string;
1551
+ created_order_id?: string | null;
1552
+ delivery_date?: string | null;
1553
+ id?: string;
1554
+ matched_customer_id?: string | null;
1555
+ message_id: string;
1556
+ notes?: string | null;
1557
+ parsed_payload?: import("./types").Json | null;
1558
+ reviewed_at?: string | null;
1559
+ reviewed_by?: string | null;
1560
+ status?: string;
1561
+ updated_at?: string;
1562
+ };
1563
+ Update: {
1564
+ confidence?: number | null;
1565
+ created_at?: string;
1566
+ created_order_id?: string | null;
1567
+ delivery_date?: string | null;
1568
+ id?: string;
1569
+ matched_customer_id?: string | null;
1570
+ message_id?: string;
1571
+ notes?: string | null;
1572
+ parsed_payload?: import("./types").Json | null;
1573
+ reviewed_at?: string | null;
1574
+ reviewed_by?: string | null;
1575
+ status?: string;
1576
+ updated_at?: string;
1577
+ };
1578
+ Relationships: [{
1579
+ foreignKeyName: "mailbox_order_proposals_created_order_id_fkey";
1580
+ columns: ["created_order_id"];
1581
+ isOneToOne: false;
1582
+ referencedRelation: "orders";
1583
+ referencedColumns: ["id"];
1584
+ }, {
1585
+ foreignKeyName: "mailbox_order_proposals_matched_customer_id_fkey";
1586
+ columns: ["matched_customer_id"];
1587
+ isOneToOne: false;
1588
+ referencedRelation: "customers";
1589
+ referencedColumns: ["id"];
1590
+ }, {
1591
+ foreignKeyName: "mailbox_order_proposals_message_id_fkey";
1592
+ columns: ["message_id"];
1593
+ isOneToOne: false;
1594
+ referencedRelation: "mailbox_messages";
1595
+ referencedColumns: ["id"];
1596
+ }];
1597
+ };
1598
+ mailbox_order_template_fields: {
1599
+ Row: {
1600
+ ai_enabled: boolean;
1601
+ ai_hint: string | null;
1602
+ created_at: string;
1603
+ default_value: import("./types").Json | null;
1604
+ field_type: string;
1605
+ id: string;
1606
+ key: string;
1607
+ label: string;
1608
+ options: import("./types").Json | null;
1609
+ required: boolean;
1610
+ sort_order: number;
1611
+ source: string;
1612
+ source_table: string | null;
1613
+ updated_at: string;
1614
+ visible: boolean;
1615
+ };
1616
+ Insert: {
1617
+ ai_enabled?: boolean;
1618
+ ai_hint?: string | null;
1619
+ created_at?: string;
1620
+ default_value?: import("./types").Json | null;
1621
+ field_type: string;
1622
+ id?: string;
1623
+ key: string;
1624
+ label: string;
1625
+ options?: import("./types").Json | null;
1626
+ required?: boolean;
1627
+ sort_order?: number;
1628
+ source?: string;
1629
+ source_table?: string | null;
1630
+ updated_at?: string;
1631
+ visible?: boolean;
1632
+ };
1633
+ Update: {
1634
+ ai_enabled?: boolean;
1635
+ ai_hint?: string | null;
1636
+ created_at?: string;
1637
+ default_value?: import("./types").Json | null;
1638
+ field_type?: string;
1639
+ id?: string;
1640
+ key?: string;
1641
+ label?: string;
1642
+ options?: import("./types").Json | null;
1643
+ required?: boolean;
1644
+ sort_order?: number;
1645
+ source?: string;
1646
+ source_table?: string | null;
1647
+ updated_at?: string;
1648
+ visible?: boolean;
1649
+ };
1650
+ Relationships: [];
1651
+ };
1652
+ mailbox_proposal_field_values: {
1653
+ Row: {
1654
+ ai_confidence: number | null;
1655
+ ai_filled: boolean;
1656
+ created_at: string;
1657
+ field_key: string;
1658
+ id: string;
1659
+ needs_review: boolean;
1660
+ proposal_id: string;
1661
+ updated_at: string;
1662
+ value: import("./types").Json | null;
1663
+ };
1664
+ Insert: {
1665
+ ai_confidence?: number | null;
1666
+ ai_filled?: boolean;
1667
+ created_at?: string;
1668
+ field_key: string;
1669
+ id?: string;
1670
+ needs_review?: boolean;
1671
+ proposal_id: string;
1672
+ updated_at?: string;
1673
+ value?: import("./types").Json | null;
1674
+ };
1675
+ Update: {
1676
+ ai_confidence?: number | null;
1677
+ ai_filled?: boolean;
1678
+ created_at?: string;
1679
+ field_key?: string;
1680
+ id?: string;
1681
+ needs_review?: boolean;
1682
+ proposal_id?: string;
1683
+ updated_at?: string;
1684
+ value?: import("./types").Json | null;
1685
+ };
1686
+ Relationships: [{
1687
+ foreignKeyName: "mailbox_proposal_field_values_proposal_id_fkey";
1688
+ columns: ["proposal_id"];
1689
+ isOneToOne: false;
1690
+ referencedRelation: "mailbox_order_proposals";
1691
+ referencedColumns: ["id"];
1692
+ }];
1693
+ };
1694
+ mailbox_proposal_lines: {
1695
+ Row: {
1696
+ created_at: string;
1697
+ id: string;
1698
+ match_confidence: number | null;
1699
+ product_id: string | null;
1700
+ proposal_id: string;
1701
+ quantity: number | null;
1702
+ raw_product_text: string | null;
1703
+ sort_order: number;
1704
+ unit: string | null;
1705
+ updated_at: string;
1706
+ };
1707
+ Insert: {
1708
+ created_at?: string;
1709
+ id?: string;
1710
+ match_confidence?: number | null;
1711
+ product_id?: string | null;
1712
+ proposal_id: string;
1713
+ quantity?: number | null;
1714
+ raw_product_text?: string | null;
1715
+ sort_order?: number;
1716
+ unit?: string | null;
1717
+ updated_at?: string;
1718
+ };
1719
+ Update: {
1720
+ created_at?: string;
1721
+ id?: string;
1722
+ match_confidence?: number | null;
1723
+ product_id?: string | null;
1724
+ proposal_id?: string;
1725
+ quantity?: number | null;
1726
+ raw_product_text?: string | null;
1727
+ sort_order?: number;
1728
+ unit?: string | null;
1729
+ updated_at?: string;
1730
+ };
1731
+ Relationships: [{
1732
+ foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
1733
+ columns: ["product_id"];
1734
+ isOneToOne: false;
1735
+ referencedRelation: "products";
1736
+ referencedColumns: ["id"];
1737
+ }, {
1738
+ foreignKeyName: "mailbox_proposal_lines_proposal_id_fkey";
1739
+ columns: ["proposal_id"];
1740
+ isOneToOne: false;
1741
+ referencedRelation: "mailbox_order_proposals";
1742
+ referencedColumns: ["id"];
1743
+ }];
1744
+ };
1745
+ mailbox_settings: {
1746
+ Row: {
1747
+ created_at: string;
1748
+ folder: string;
1749
+ id: string;
1750
+ imap_host: string;
1751
+ imap_port: number;
1752
+ imap_use_tls: boolean;
1753
+ imap_username: string;
1754
+ last_error: string | null;
1755
+ last_polled_at: string | null;
1756
+ last_uid_seen: number;
1757
+ polling_enabled: boolean;
1758
+ singleton: boolean;
1759
+ updated_at: string;
1760
+ };
1761
+ Insert: {
1762
+ created_at?: string;
1763
+ folder?: string;
1764
+ id?: string;
1765
+ imap_host?: string;
1766
+ imap_port?: number;
1767
+ imap_use_tls?: boolean;
1768
+ imap_username?: string;
1769
+ last_error?: string | null;
1770
+ last_polled_at?: string | null;
1771
+ last_uid_seen?: number;
1772
+ polling_enabled?: boolean;
1773
+ singleton?: boolean;
1774
+ updated_at?: string;
1775
+ };
1776
+ Update: {
1777
+ created_at?: string;
1778
+ folder?: string;
1779
+ id?: string;
1780
+ imap_host?: string;
1781
+ imap_port?: number;
1782
+ imap_use_tls?: boolean;
1783
+ imap_username?: string;
1784
+ last_error?: string | null;
1785
+ last_polled_at?: string | null;
1786
+ last_uid_seen?: number;
1787
+ polling_enabled?: boolean;
1788
+ singleton?: boolean;
1789
+ updated_at?: string;
1790
+ };
1791
+ Relationships: [];
1792
+ };
1793
+ notifications: {
1794
+ Row: {
1795
+ created_at: string;
1796
+ id: string;
1797
+ message: string | null;
1798
+ read: boolean;
1799
+ title: string;
1800
+ updated_at: string;
1801
+ user_id: string;
1802
+ };
1803
+ Insert: {
1804
+ created_at?: string;
1805
+ id?: string;
1806
+ message?: string | null;
1807
+ read?: boolean;
1808
+ title: string;
1809
+ updated_at?: string;
1810
+ user_id: string;
1811
+ };
1812
+ Update: {
1813
+ created_at?: string;
1814
+ id?: string;
1815
+ message?: string | null;
1816
+ read?: boolean;
1817
+ title?: string;
1818
+ updated_at?: string;
1819
+ user_id?: string;
1820
+ };
1821
+ Relationships: [];
1822
+ };
1823
+ offer_campaign_product_tiers: {
1824
+ Row: {
1825
+ campaign_product_id: string;
1826
+ created_at: string;
1827
+ id: string;
1828
+ min_crates: number;
1829
+ price_per_crate: number;
1830
+ sort_order: number;
1831
+ };
1832
+ Insert: {
1833
+ campaign_product_id: string;
1834
+ created_at?: string;
1835
+ id?: string;
1836
+ min_crates?: number;
1837
+ price_per_crate?: number;
1838
+ sort_order?: number;
1839
+ };
1840
+ Update: {
1841
+ campaign_product_id?: string;
1842
+ created_at?: string;
1843
+ id?: string;
1844
+ min_crates?: number;
1845
+ price_per_crate?: number;
1846
+ sort_order?: number;
1847
+ };
1848
+ Relationships: [{
1849
+ foreignKeyName: "offer_campaign_product_tiers_campaign_product_id_fkey";
1850
+ columns: ["campaign_product_id"];
1851
+ isOneToOne: false;
1852
+ referencedRelation: "offer_campaign_products";
1853
+ referencedColumns: ["id"];
1854
+ }];
1855
+ };
1856
+ offer_campaign_products: {
1857
+ Row: {
1858
+ available_stock: number;
1859
+ barcode: string | null;
1860
+ belading: string | null;
1861
+ campaign_id: string;
1862
+ crate_price: number | null;
1863
+ created_at: string;
1864
+ description: string | null;
1865
+ discount_price: number;
1866
+ id: string;
1867
+ image_url: string | null;
1868
+ normal_price: number;
1869
+ plants_per_crate: number | null;
1870
+ product_id: string | null;
1871
+ product_name: string;
1872
+ sort_order: number;
1873
+ sticker_available: boolean;
1874
+ sticker_cost: number | null;
1875
+ };
1876
+ Insert: {
1877
+ available_stock?: number;
1878
+ barcode?: string | null;
1879
+ belading?: string | null;
1880
+ campaign_id: string;
1881
+ crate_price?: number | null;
1882
+ created_at?: string;
1883
+ description?: string | null;
1884
+ discount_price?: number;
1885
+ id?: string;
1886
+ image_url?: string | null;
1887
+ normal_price?: number;
1888
+ plants_per_crate?: number | null;
1889
+ product_id?: string | null;
1890
+ product_name: string;
1891
+ sort_order?: number;
1892
+ sticker_available?: boolean;
1893
+ sticker_cost?: number | null;
1894
+ };
1895
+ Update: {
1896
+ available_stock?: number;
1897
+ barcode?: string | null;
1898
+ belading?: string | null;
1899
+ campaign_id?: string;
1900
+ crate_price?: number | null;
1901
+ created_at?: string;
1902
+ description?: string | null;
1903
+ discount_price?: number;
1904
+ id?: string;
1905
+ image_url?: string | null;
1906
+ normal_price?: number;
1907
+ plants_per_crate?: number | null;
1908
+ product_id?: string | null;
1909
+ product_name?: string;
1910
+ sort_order?: number;
1911
+ sticker_available?: boolean;
1912
+ sticker_cost?: number | null;
1913
+ };
1914
+ Relationships: [{
1915
+ foreignKeyName: "offer_campaign_products_campaign_id_fkey";
1916
+ columns: ["campaign_id"];
1917
+ isOneToOne: false;
1918
+ referencedRelation: "offer_campaigns";
1919
+ referencedColumns: ["id"];
1920
+ }, {
1921
+ foreignKeyName: "offer_campaign_products_product_id_fkey";
1922
+ columns: ["product_id"];
1923
+ isOneToOne: false;
1924
+ referencedRelation: "products";
1925
+ referencedColumns: ["id"];
1926
+ }];
1927
+ };
1928
+ offer_campaigns: {
1929
+ Row: {
1930
+ created_at: string;
1931
+ created_by: string | null;
1932
+ from_email: string;
1933
+ from_name: string;
1934
+ id: string;
1935
+ intro_message: string | null;
1936
+ name: string;
1937
+ scheduled_at: string | null;
1938
+ sent_at: string | null;
1939
+ status: string;
1940
+ subject: string;
1941
+ updated_at: string;
1942
+ };
1943
+ Insert: {
1944
+ created_at?: string;
1945
+ created_by?: string | null;
1946
+ from_email: string;
1947
+ from_name: string;
1948
+ id?: string;
1949
+ intro_message?: string | null;
1950
+ name: string;
1951
+ scheduled_at?: string | null;
1952
+ sent_at?: string | null;
1953
+ status?: string;
1954
+ subject: string;
1955
+ updated_at?: string;
1956
+ };
1957
+ Update: {
1958
+ created_at?: string;
1959
+ created_by?: string | null;
1960
+ from_email?: string;
1961
+ from_name?: string;
1962
+ id?: string;
1963
+ intro_message?: string | null;
1964
+ name?: string;
1965
+ scheduled_at?: string | null;
1966
+ sent_at?: string | null;
1967
+ status?: string;
1968
+ subject?: string;
1969
+ updated_at?: string;
1970
+ };
1971
+ Relationships: [];
1972
+ };
1973
+ offer_events: {
1974
+ Row: {
1975
+ campaign_id: string;
1976
+ created_at: string;
1977
+ event_type: string;
1978
+ id: string;
1979
+ metadata: import("./types").Json;
1980
+ recipient_id: string;
1981
+ };
1982
+ Insert: {
1983
+ campaign_id: string;
1984
+ created_at?: string;
1985
+ event_type: string;
1986
+ id?: string;
1987
+ metadata?: import("./types").Json;
1988
+ recipient_id: string;
1989
+ };
1990
+ Update: {
1991
+ campaign_id?: string;
1992
+ created_at?: string;
1993
+ event_type?: string;
1994
+ id?: string;
1995
+ metadata?: import("./types").Json;
1996
+ recipient_id?: string;
1997
+ };
1998
+ Relationships: [{
1999
+ foreignKeyName: "offer_events_campaign_id_fkey";
2000
+ columns: ["campaign_id"];
2001
+ isOneToOne: false;
2002
+ referencedRelation: "offer_campaigns";
2003
+ referencedColumns: ["id"];
2004
+ }, {
2005
+ foreignKeyName: "offer_events_recipient_id_fkey";
2006
+ columns: ["recipient_id"];
2007
+ isOneToOne: false;
2008
+ referencedRelation: "offer_recipients";
2009
+ referencedColumns: ["id"];
2010
+ }];
2011
+ };
2012
+ offer_orders: {
2013
+ Row: {
2014
+ campaign_id: string;
2015
+ created_at: string;
2016
+ customer_email: string;
2017
+ customer_id: string | null;
2018
+ customer_name: string;
2019
+ customer_phone: string | null;
2020
+ id: string;
2021
+ items: import("./types").Json;
2022
+ notes: string | null;
2023
+ recipient_id: string;
2024
+ total_amount: number;
2025
+ };
2026
+ Insert: {
2027
+ campaign_id: string;
2028
+ created_at?: string;
2029
+ customer_email: string;
2030
+ customer_id?: string | null;
2031
+ customer_name: string;
2032
+ customer_phone?: string | null;
2033
+ id?: string;
2034
+ items?: import("./types").Json;
2035
+ notes?: string | null;
2036
+ recipient_id: string;
2037
+ total_amount?: number;
2038
+ };
2039
+ Update: {
2040
+ campaign_id?: string;
2041
+ created_at?: string;
2042
+ customer_email?: string;
2043
+ customer_id?: string | null;
2044
+ customer_name?: string;
2045
+ customer_phone?: string | null;
2046
+ id?: string;
2047
+ items?: import("./types").Json;
2048
+ notes?: string | null;
2049
+ recipient_id?: string;
2050
+ total_amount?: number;
2051
+ };
2052
+ Relationships: [{
2053
+ foreignKeyName: "offer_orders_campaign_id_fkey";
2054
+ columns: ["campaign_id"];
2055
+ isOneToOne: false;
2056
+ referencedRelation: "offer_campaigns";
2057
+ referencedColumns: ["id"];
2058
+ }, {
2059
+ foreignKeyName: "offer_orders_customer_id_fkey";
2060
+ columns: ["customer_id"];
2061
+ isOneToOne: false;
2062
+ referencedRelation: "customers";
2063
+ referencedColumns: ["id"];
2064
+ }, {
2065
+ foreignKeyName: "offer_orders_recipient_id_fkey";
2066
+ columns: ["recipient_id"];
2067
+ isOneToOne: false;
2068
+ referencedRelation: "offer_recipients";
2069
+ referencedColumns: ["id"];
2070
+ }];
2071
+ };
2072
+ offer_recipients: {
2073
+ Row: {
2074
+ campaign_id: string;
2075
+ clicked_at: string | null;
2076
+ contact_id: string | null;
2077
+ created_at: string;
2078
+ customer_id: string | null;
2079
+ id: string;
2080
+ link_code: string;
2081
+ opened_at: string | null;
2082
+ ordered_at: string | null;
2083
+ recipient_email: string;
2084
+ recipient_name: string;
2085
+ sent_at: string | null;
2086
+ };
2087
+ Insert: {
2088
+ campaign_id: string;
2089
+ clicked_at?: string | null;
2090
+ contact_id?: string | null;
2091
+ created_at?: string;
2092
+ customer_id?: string | null;
2093
+ id?: string;
2094
+ link_code?: string;
2095
+ opened_at?: string | null;
2096
+ ordered_at?: string | null;
2097
+ recipient_email: string;
2098
+ recipient_name: string;
2099
+ sent_at?: string | null;
2100
+ };
2101
+ Update: {
2102
+ campaign_id?: string;
2103
+ clicked_at?: string | null;
2104
+ contact_id?: string | null;
2105
+ created_at?: string;
2106
+ customer_id?: string | null;
2107
+ id?: string;
2108
+ link_code?: string;
2109
+ opened_at?: string | null;
2110
+ ordered_at?: string | null;
2111
+ recipient_email?: string;
2112
+ recipient_name?: string;
2113
+ sent_at?: string | null;
2114
+ };
2115
+ Relationships: [{
2116
+ foreignKeyName: "offer_recipients_campaign_id_fkey";
2117
+ columns: ["campaign_id"];
2118
+ isOneToOne: false;
2119
+ referencedRelation: "offer_campaigns";
2120
+ referencedColumns: ["id"];
2121
+ }, {
2122
+ foreignKeyName: "offer_recipients_contact_id_fkey";
2123
+ columns: ["contact_id"];
2124
+ isOneToOne: false;
2125
+ referencedRelation: "customer_contacts";
2126
+ referencedColumns: ["id"];
2127
+ }, {
2128
+ foreignKeyName: "offer_recipients_customer_id_fkey";
2129
+ columns: ["customer_id"];
2130
+ isOneToOne: false;
2131
+ referencedRelation: "customers";
2132
+ referencedColumns: ["id"];
2133
+ }];
2134
+ };
2135
+ offer_settings: {
2136
+ Row: {
2137
+ button_color: string;
2138
+ created_at: string;
2139
+ default_countries: string[];
2140
+ default_customer_classes: string[];
2141
+ default_intro: string;
2142
+ default_sticker_cost: number;
2143
+ default_subject: string;
2144
+ discount_display: string;
2145
+ excluded_contact_ids: string[];
2146
+ excluded_customer_ids: string[];
2147
+ from_email: string;
2148
+ from_name: string;
2149
+ id: string;
2150
+ logo_url: string | null;
2151
+ primary_color: string;
2152
+ show_customer_classes: boolean;
2153
+ singleton: boolean;
2154
+ tracking_enabled: boolean;
2155
+ updated_at: string;
2156
+ };
2157
+ Insert: {
2158
+ button_color?: string;
2159
+ created_at?: string;
2160
+ default_countries?: string[];
2161
+ default_customer_classes?: string[];
2162
+ default_intro?: string;
2163
+ default_sticker_cost?: number;
2164
+ default_subject?: string;
2165
+ discount_display?: string;
2166
+ excluded_contact_ids?: string[];
2167
+ excluded_customer_ids?: string[];
2168
+ from_email?: string;
2169
+ from_name?: string;
2170
+ id?: string;
2171
+ logo_url?: string | null;
2172
+ primary_color?: string;
2173
+ show_customer_classes?: boolean;
2174
+ singleton?: boolean;
2175
+ tracking_enabled?: boolean;
2176
+ updated_at?: string;
2177
+ };
2178
+ Update: {
2179
+ button_color?: string;
2180
+ created_at?: string;
2181
+ default_countries?: string[];
2182
+ default_customer_classes?: string[];
2183
+ default_intro?: string;
2184
+ default_sticker_cost?: number;
2185
+ default_subject?: string;
2186
+ discount_display?: string;
2187
+ excluded_contact_ids?: string[];
2188
+ excluded_customer_ids?: string[];
2189
+ from_email?: string;
2190
+ from_name?: string;
2191
+ id?: string;
2192
+ logo_url?: string | null;
2193
+ primary_color?: string;
2194
+ show_customer_classes?: boolean;
2195
+ singleton?: boolean;
2196
+ tracking_enabled?: boolean;
2197
+ updated_at?: string;
2198
+ };
2199
+ Relationships: [];
2200
+ };
2201
+ order_field_options: {
2202
+ Row: {
2203
+ created_at: string;
2204
+ field_setting_id: string;
2205
+ id: string;
2206
+ label: string;
2207
+ sort_order: number;
2208
+ };
2209
+ Insert: {
2210
+ created_at?: string;
2211
+ field_setting_id: string;
2212
+ id?: string;
2213
+ label: string;
2214
+ sort_order?: number;
2215
+ };
2216
+ Update: {
2217
+ created_at?: string;
2218
+ field_setting_id?: string;
2219
+ id?: string;
2220
+ label?: string;
2221
+ sort_order?: number;
2222
+ };
2223
+ Relationships: [{
2224
+ foreignKeyName: "order_field_options_field_setting_id_fkey";
2225
+ columns: ["field_setting_id"];
2226
+ isOneToOne: false;
2227
+ referencedRelation: "order_field_settings";
2228
+ referencedColumns: ["id"];
2229
+ }];
2230
+ };
2231
+ order_field_settings: {
2232
+ Row: {
2233
+ active: boolean;
2234
+ created_at: string;
2235
+ field_key: string;
2236
+ field_label: string;
2237
+ field_type: string;
2238
+ id: string;
2239
+ is_custom: boolean;
2240
+ sort_order: number;
2241
+ updated_at: string;
2242
+ };
2243
+ Insert: {
2244
+ active?: boolean;
2245
+ created_at?: string;
2246
+ field_key: string;
2247
+ field_label: string;
2248
+ field_type?: string;
2249
+ id?: string;
2250
+ is_custom?: boolean;
2251
+ sort_order?: number;
2252
+ updated_at?: string;
2253
+ };
2254
+ Update: {
2255
+ active?: boolean;
2256
+ created_at?: string;
2257
+ field_key?: string;
2258
+ field_label?: string;
2259
+ field_type?: string;
2260
+ id?: string;
2261
+ is_custom?: boolean;
2262
+ sort_order?: number;
2263
+ updated_at?: string;
2264
+ };
2265
+ Relationships: [];
2266
+ };
2267
+ order_items: {
2268
+ Row: {
2269
+ created_at: string;
2270
+ id: string;
2271
+ order_id: string;
2272
+ product_id: string | null;
2273
+ product_name: string;
2274
+ quantity: number;
2275
+ unit: string;
2276
+ unit_price: number | null;
2277
+ };
2278
+ Insert: {
2279
+ created_at?: string;
2280
+ id?: string;
2281
+ order_id: string;
2282
+ product_id?: string | null;
2283
+ product_name: string;
2284
+ quantity?: number;
2285
+ unit?: string;
2286
+ unit_price?: number | null;
2287
+ };
2288
+ Update: {
2289
+ created_at?: string;
2290
+ id?: string;
2291
+ order_id?: string;
2292
+ product_id?: string | null;
2293
+ product_name?: string;
2294
+ quantity?: number;
2295
+ unit?: string;
2296
+ unit_price?: number | null;
2297
+ };
2298
+ Relationships: [{
2299
+ foreignKeyName: "order_items_order_id_fkey";
2300
+ columns: ["order_id"];
2301
+ isOneToOne: false;
2302
+ referencedRelation: "orders";
2303
+ referencedColumns: ["id"];
2304
+ }, {
2305
+ foreignKeyName: "order_items_product_id_fkey";
2306
+ columns: ["product_id"];
2307
+ isOneToOne: false;
2308
+ referencedRelation: "products";
2309
+ referencedColumns: ["id"];
2310
+ }];
2311
+ };
2312
+ orders: {
2313
+ Row: {
2314
+ created_at: string;
2315
+ custom_fields: import("./types").Json;
2316
+ customer_id: string | null;
2317
+ customer_name: string;
2318
+ deleted_at: string | null;
2319
+ delivery_date: string;
2320
+ id: string;
2321
+ notes: string | null;
2322
+ order_date: string;
2323
+ order_number: string;
2324
+ status: string;
2325
+ total: string;
2326
+ updated_at: string;
2327
+ };
2328
+ Insert: {
2329
+ created_at?: string;
2330
+ custom_fields?: import("./types").Json;
2331
+ customer_id?: string | null;
2332
+ customer_name?: string;
2333
+ deleted_at?: string | null;
2334
+ delivery_date: string;
2335
+ id?: string;
2336
+ notes?: string | null;
2337
+ order_date?: string;
2338
+ order_number: string;
2339
+ status?: string;
2340
+ total?: string;
2341
+ updated_at?: string;
2342
+ };
2343
+ Update: {
2344
+ created_at?: string;
2345
+ custom_fields?: import("./types").Json;
2346
+ customer_id?: string | null;
2347
+ customer_name?: string;
2348
+ deleted_at?: string | null;
2349
+ delivery_date?: string;
2350
+ id?: string;
2351
+ notes?: string | null;
2352
+ order_date?: string;
2353
+ order_number?: string;
2354
+ status?: string;
2355
+ total?: string;
2356
+ updated_at?: string;
2357
+ };
2358
+ Relationships: [{
2359
+ foreignKeyName: "orders_customer_id_fkey";
2360
+ columns: ["customer_id"];
2361
+ isOneToOne: false;
2362
+ referencedRelation: "customers";
2363
+ referencedColumns: ["id"];
2364
+ }];
2365
+ };
2366
+ product_categories: {
2367
+ Row: {
2368
+ color: string;
2369
+ created_at: string;
2370
+ icon: string | null;
2371
+ id: string;
2372
+ name: string;
2373
+ slug: string;
2374
+ sort_order: number;
2375
+ updated_at: string;
2376
+ };
2377
+ Insert: {
2378
+ color?: string;
2379
+ created_at?: string;
2380
+ icon?: string | null;
2381
+ id?: string;
2382
+ name: string;
2383
+ slug: string;
2384
+ sort_order?: number;
2385
+ updated_at?: string;
2386
+ };
2387
+ Update: {
2388
+ color?: string;
2389
+ created_at?: string;
2390
+ icon?: string | null;
2391
+ id?: string;
2392
+ name?: string;
2393
+ slug?: string;
2394
+ sort_order?: number;
2395
+ updated_at?: string;
2396
+ };
2397
+ Relationships: [];
2398
+ };
2399
+ product_field_options: {
2400
+ Row: {
2401
+ created_at: string;
2402
+ field_setting_id: string;
2403
+ id: string;
2404
+ label: string;
2405
+ sort_order: number;
2406
+ };
2407
+ Insert: {
2408
+ created_at?: string;
2409
+ field_setting_id: string;
2410
+ id?: string;
2411
+ label: string;
2412
+ sort_order?: number;
2413
+ };
2414
+ Update: {
2415
+ created_at?: string;
2416
+ field_setting_id?: string;
2417
+ id?: string;
2418
+ label?: string;
2419
+ sort_order?: number;
2420
+ };
2421
+ Relationships: [{
2422
+ foreignKeyName: "product_field_options_field_setting_id_fkey";
2423
+ columns: ["field_setting_id"];
2424
+ isOneToOne: false;
2425
+ referencedRelation: "product_field_settings";
2426
+ referencedColumns: ["id"];
2427
+ }];
2428
+ };
2429
+ product_field_settings: {
2430
+ Row: {
2431
+ active_per_category: import("./types").Json;
2432
+ created_at: string;
2433
+ field_key: string;
2434
+ field_label: string;
2435
+ field_type: string;
2436
+ id: string;
2437
+ is_custom: boolean;
2438
+ sort_order: number;
2439
+ updated_at: string;
2440
+ };
2441
+ Insert: {
2442
+ active_per_category?: import("./types").Json;
2443
+ created_at?: string;
2444
+ field_key: string;
2445
+ field_label: string;
2446
+ field_type?: string;
2447
+ id?: string;
2448
+ is_custom?: boolean;
2449
+ sort_order?: number;
2450
+ updated_at?: string;
2451
+ };
2452
+ Update: {
2453
+ active_per_category?: import("./types").Json;
2454
+ created_at?: string;
2455
+ field_key?: string;
2456
+ field_label?: string;
2457
+ field_type?: string;
2458
+ id?: string;
2459
+ is_custom?: boolean;
2460
+ sort_order?: number;
2461
+ updated_at?: string;
2462
+ };
2463
+ Relationships: [];
2464
+ };
2465
+ products: {
2466
+ Row: {
2467
+ barcode: string | null;
2468
+ batch: string;
2469
+ created_at: string;
2470
+ custom_fields: import("./types").Json;
2471
+ id: string;
2472
+ image_url: string | null;
2473
+ incoming_quantity: number;
2474
+ location: string;
2475
+ min_quantity: number;
2476
+ product: string;
2477
+ product_type: string;
2478
+ purchase_price: number | null;
2479
+ quantity: number;
2480
+ sale_price: number | null;
2481
+ unit: string;
2482
+ updated_at: string;
2483
+ weight: string | null;
2484
+ };
2485
+ Insert: {
2486
+ barcode?: string | null;
2487
+ batch: string;
2488
+ created_at?: string;
2489
+ custom_fields?: import("./types").Json;
2490
+ id?: string;
2491
+ image_url?: string | null;
2492
+ incoming_quantity?: number;
2493
+ location: string;
2494
+ min_quantity?: number;
2495
+ product: string;
2496
+ product_type?: string;
2497
+ purchase_price?: number | null;
2498
+ quantity?: number;
2499
+ sale_price?: number | null;
2500
+ unit?: string;
2501
+ updated_at?: string;
2502
+ weight?: string | null;
2503
+ };
2504
+ Update: {
2505
+ barcode?: string | null;
2506
+ batch?: string;
2507
+ created_at?: string;
2508
+ custom_fields?: import("./types").Json;
2509
+ id?: string;
2510
+ image_url?: string | null;
2511
+ incoming_quantity?: number;
2512
+ location?: string;
2513
+ min_quantity?: number;
2514
+ product?: string;
2515
+ product_type?: string;
2516
+ purchase_price?: number | null;
2517
+ quantity?: number;
2518
+ sale_price?: number | null;
2519
+ unit?: string;
2520
+ updated_at?: string;
2521
+ weight?: string | null;
2522
+ };
2523
+ Relationships: [];
2524
+ };
2525
+ profiles: {
2526
+ Row: {
2527
+ created_at: string;
2528
+ display_name: string | null;
2529
+ email: string | null;
2530
+ id: string;
2531
+ notification_preferences: import("./types").Json;
2532
+ updated_at: string;
2533
+ };
2534
+ Insert: {
2535
+ created_at?: string;
2536
+ display_name?: string | null;
2537
+ email?: string | null;
2538
+ id: string;
2539
+ notification_preferences?: import("./types").Json;
2540
+ updated_at?: string;
2541
+ };
2542
+ Update: {
2543
+ created_at?: string;
2544
+ display_name?: string | null;
2545
+ email?: string | null;
2546
+ id?: string;
2547
+ notification_preferences?: import("./types").Json;
2548
+ updated_at?: string;
2549
+ };
2550
+ Relationships: [];
2551
+ };
2552
+ prospects: {
2553
+ Row: {
2554
+ company_name: string;
2555
+ contact_name: string | null;
2556
+ created_at: string;
2557
+ email: string | null;
2558
+ id: string;
2559
+ notes: string | null;
2560
+ phone: string | null;
2561
+ source: string | null;
2562
+ status: string;
2563
+ updated_at: string;
2564
+ };
2565
+ Insert: {
2566
+ company_name: string;
2567
+ contact_name?: string | null;
2568
+ created_at?: string;
2569
+ email?: string | null;
2570
+ id?: string;
2571
+ notes?: string | null;
2572
+ phone?: string | null;
2573
+ source?: string | null;
2574
+ status?: string;
2575
+ updated_at?: string;
2576
+ };
2577
+ Update: {
2578
+ company_name?: string;
2579
+ contact_name?: string | null;
2580
+ created_at?: string;
2581
+ email?: string | null;
2582
+ id?: string;
2583
+ notes?: string | null;
2584
+ phone?: string | null;
2585
+ source?: string | null;
2586
+ status?: string;
2587
+ updated_at?: string;
2588
+ };
2589
+ Relationships: [];
2590
+ };
2591
+ purchase_order_items: {
2592
+ Row: {
2593
+ created_at: string;
2594
+ id: string;
2595
+ product_id: string | null;
2596
+ product_type: string;
2597
+ purchase_order_id: string;
2598
+ quantity: number;
2599
+ };
2600
+ Insert: {
2601
+ created_at?: string;
2602
+ id?: string;
2603
+ product_id?: string | null;
2604
+ product_type?: string;
2605
+ purchase_order_id: string;
2606
+ quantity?: number;
2607
+ };
2608
+ Update: {
2609
+ created_at?: string;
2610
+ id?: string;
2611
+ product_id?: string | null;
2612
+ product_type?: string;
2613
+ purchase_order_id?: string;
2614
+ quantity?: number;
2615
+ };
2616
+ Relationships: [{
2617
+ foreignKeyName: "purchase_order_items_product_id_fkey";
2618
+ columns: ["product_id"];
2619
+ isOneToOne: false;
2620
+ referencedRelation: "products";
2621
+ referencedColumns: ["id"];
2622
+ }, {
2623
+ foreignKeyName: "purchase_order_items_purchase_order_id_fkey";
2624
+ columns: ["purchase_order_id"];
2625
+ isOneToOne: false;
2626
+ referencedRelation: "purchase_orders";
2627
+ referencedColumns: ["id"];
2628
+ }];
2629
+ };
2630
+ purchase_orders: {
2631
+ Row: {
2632
+ created_at: string;
2633
+ expected_delivery_date: string;
2634
+ id: string;
2635
+ location_id: string | null;
2636
+ notes: string | null;
2637
+ order_number: string;
2638
+ status: string;
2639
+ supplier_id: string | null;
2640
+ supplier_name: string;
2641
+ updated_at: string;
2642
+ };
2643
+ Insert: {
2644
+ created_at?: string;
2645
+ expected_delivery_date: string;
2646
+ id?: string;
2647
+ location_id?: string | null;
2648
+ notes?: string | null;
2649
+ order_number: string;
2650
+ status?: string;
2651
+ supplier_id?: string | null;
2652
+ supplier_name?: string;
2653
+ updated_at?: string;
2654
+ };
2655
+ Update: {
2656
+ created_at?: string;
2657
+ expected_delivery_date?: string;
2658
+ id?: string;
2659
+ location_id?: string | null;
2660
+ notes?: string | null;
2661
+ order_number?: string;
2662
+ status?: string;
2663
+ supplier_id?: string | null;
2664
+ supplier_name?: string;
2665
+ updated_at?: string;
2666
+ };
2667
+ Relationships: [{
2668
+ foreignKeyName: "purchase_orders_location_id_fkey";
2669
+ columns: ["location_id"];
2670
+ isOneToOne: false;
2671
+ referencedRelation: "locations";
2672
+ referencedColumns: ["id"];
2673
+ }, {
2674
+ foreignKeyName: "purchase_orders_supplier_id_fkey";
2675
+ columns: ["supplier_id"];
2676
+ isOneToOne: false;
2677
+ referencedRelation: "suppliers";
2678
+ referencedColumns: ["id"];
2679
+ }];
2680
+ };
2681
+ quote_items: {
2682
+ Row: {
2683
+ created_at: string;
2684
+ description: string;
2685
+ id: string;
2686
+ quantity: number;
2687
+ quote_id: string;
2688
+ sort_order: number;
2689
+ unit_price: number;
2690
+ };
2691
+ Insert: {
2692
+ created_at?: string;
2693
+ description?: string;
2694
+ id?: string;
2695
+ quantity?: number;
2696
+ quote_id: string;
2697
+ sort_order?: number;
2698
+ unit_price?: number;
2699
+ };
2700
+ Update: {
2701
+ created_at?: string;
2702
+ description?: string;
2703
+ id?: string;
2704
+ quantity?: number;
2705
+ quote_id?: string;
2706
+ sort_order?: number;
2707
+ unit_price?: number;
2708
+ };
2709
+ Relationships: [{
2710
+ foreignKeyName: "quote_items_quote_id_fkey";
2711
+ columns: ["quote_id"];
2712
+ isOneToOne: false;
2713
+ referencedRelation: "quotes";
2714
+ referencedColumns: ["id"];
2715
+ }];
2716
+ };
2717
+ quotes: {
2718
+ Row: {
2719
+ created_at: string;
2720
+ id: string;
2721
+ notes: string | null;
2722
+ prospect_id: string | null;
2723
+ quote_number: string | null;
2724
+ status: string;
2725
+ title: string;
2726
+ updated_at: string;
2727
+ valid_until: string | null;
2728
+ };
2729
+ Insert: {
2730
+ created_at?: string;
2731
+ id?: string;
2732
+ notes?: string | null;
2733
+ prospect_id?: string | null;
2734
+ quote_number?: string | null;
2735
+ status?: string;
2736
+ title?: string;
2737
+ updated_at?: string;
2738
+ valid_until?: string | null;
2739
+ };
2740
+ Update: {
2741
+ created_at?: string;
2742
+ id?: string;
2743
+ notes?: string | null;
2744
+ prospect_id?: string | null;
2745
+ quote_number?: string | null;
2746
+ status?: string;
2747
+ title?: string;
2748
+ updated_at?: string;
2749
+ valid_until?: string | null;
2750
+ };
2751
+ Relationships: [{
2752
+ foreignKeyName: "quotes_prospect_id_fkey";
2753
+ columns: ["prospect_id"];
2754
+ isOneToOne: false;
2755
+ referencedRelation: "prospects";
2756
+ referencedColumns: ["id"];
2757
+ }];
2758
+ };
2759
+ supplier_products: {
2760
+ Row: {
2761
+ article_number: string | null;
2762
+ created_at: string;
2763
+ id: string;
2764
+ name: string;
2765
+ notes: string | null;
2766
+ pot_size: string | null;
2767
+ price: number | null;
2768
+ quantity: number | null;
2769
+ supplier_id: string;
2770
+ unit: string;
2771
+ updated_at: string;
2772
+ };
2773
+ Insert: {
2774
+ article_number?: string | null;
2775
+ created_at?: string;
2776
+ id?: string;
2777
+ name: string;
2778
+ notes?: string | null;
2779
+ pot_size?: string | null;
2780
+ price?: number | null;
2781
+ quantity?: number | null;
2782
+ supplier_id: string;
2783
+ unit?: string;
2784
+ updated_at?: string;
2785
+ };
2786
+ Update: {
2787
+ article_number?: string | null;
2788
+ created_at?: string;
2789
+ id?: string;
2790
+ name?: string;
2791
+ notes?: string | null;
2792
+ pot_size?: string | null;
2793
+ price?: number | null;
2794
+ quantity?: number | null;
2795
+ supplier_id?: string;
2796
+ unit?: string;
2797
+ updated_at?: string;
2798
+ };
2799
+ Relationships: [{
2800
+ foreignKeyName: "supplier_products_supplier_id_fkey";
2801
+ columns: ["supplier_id"];
2802
+ isOneToOne: false;
2803
+ referencedRelation: "suppliers";
2804
+ referencedColumns: ["id"];
2805
+ }];
2806
+ };
2807
+ suppliers: {
2808
+ Row: {
2809
+ address: string | null;
2810
+ column_mappings: import("./types").Json | null;
2811
+ contact_person: string | null;
2812
+ created_at: string;
2813
+ default_product_type: string;
2814
+ email: string | null;
2815
+ id: string;
2816
+ imported_file_name: string | null;
2817
+ name: string;
2818
+ notes: string | null;
2819
+ phone: string | null;
2820
+ updated_at: string;
2821
+ };
2822
+ Insert: {
2823
+ address?: string | null;
2824
+ column_mappings?: import("./types").Json | null;
2825
+ contact_person?: string | null;
2826
+ created_at?: string;
2827
+ default_product_type?: string;
2828
+ email?: string | null;
2829
+ id?: string;
2830
+ imported_file_name?: string | null;
2831
+ name: string;
2832
+ notes?: string | null;
2833
+ phone?: string | null;
2834
+ updated_at?: string;
2835
+ };
2836
+ Update: {
2837
+ address?: string | null;
2838
+ column_mappings?: import("./types").Json | null;
2839
+ contact_person?: string | null;
2840
+ created_at?: string;
2841
+ default_product_type?: string;
2842
+ email?: string | null;
2843
+ id?: string;
2844
+ imported_file_name?: string | null;
2845
+ name?: string;
2846
+ notes?: string | null;
2847
+ phone?: string | null;
2848
+ updated_at?: string;
2849
+ };
2850
+ Relationships: [];
2851
+ };
2852
+ trade_item_drafts: {
2853
+ Row: {
2854
+ connection_id: string | null;
2855
+ created_at: string;
2856
+ data: import("./types").Json;
2857
+ id: string;
2858
+ updated_at: string;
2859
+ user_id: string;
2860
+ };
2861
+ Insert: {
2862
+ connection_id?: string | null;
2863
+ created_at?: string;
2864
+ data?: import("./types").Json;
2865
+ id?: string;
2866
+ updated_at?: string;
2867
+ user_id: string;
2868
+ };
2869
+ Update: {
2870
+ connection_id?: string | null;
2871
+ created_at?: string;
2872
+ data?: import("./types").Json;
2873
+ id?: string;
2874
+ updated_at?: string;
2875
+ user_id?: string;
2876
+ };
2877
+ Relationships: [];
2878
+ };
2879
+ user_roles: {
2880
+ Row: {
2881
+ created_at: string;
2882
+ id: string;
2883
+ role: Database["public"]["Enums"]["app_role"];
2884
+ user_id: string;
2885
+ };
2886
+ Insert: {
2887
+ created_at?: string;
2888
+ id?: string;
2889
+ role: Database["public"]["Enums"]["app_role"];
2890
+ user_id: string;
2891
+ };
2892
+ Update: {
2893
+ created_at?: string;
2894
+ id?: string;
2895
+ role?: Database["public"]["Enums"]["app_role"];
2896
+ user_id?: string;
2897
+ };
2898
+ Relationships: [{
2899
+ foreignKeyName: "user_roles_user_id_fkey";
2900
+ columns: ["user_id"];
2901
+ isOneToOne: false;
2902
+ referencedRelation: "profiles";
2903
+ referencedColumns: ["id"];
2904
+ }];
2905
+ };
2906
+ };
2907
+ Views: { [_ in never]: never; };
2908
+ Functions: {
2909
+ dashboard_list_public_schema: {
2910
+ Args: never;
2911
+ Returns: {
2912
+ column_name: string;
2913
+ data_type: string;
2914
+ table_name: string;
2915
+ }[];
2916
+ };
2917
+ exact_decrypt: {
2918
+ Args: {
2919
+ cipher: string;
2920
+ };
2921
+ Returns: string;
2922
+ };
2923
+ exact_encrypt: {
2924
+ Args: {
2925
+ plain: string;
2926
+ };
2927
+ Returns: string;
2928
+ };
2929
+ get_offer_by_link_code: {
2930
+ Args: {
2931
+ p_code: string;
2932
+ };
2933
+ Returns: import("./types").Json;
2934
+ };
2935
+ has_role: {
2936
+ Args: {
2937
+ _role: Database["public"]["Enums"]["app_role"];
2938
+ _user_id: string;
2939
+ };
2940
+ Returns: boolean;
2941
+ };
2942
+ schedule_floriday_network_sync: {
2943
+ Args: {
2944
+ p_apikey: string;
2945
+ p_url: string;
2946
+ };
2947
+ Returns: number;
2948
+ };
2949
+ schedule_floriday_token_refresh: {
2950
+ Args: {
2951
+ p_apikey: string;
2952
+ p_url: string;
2953
+ };
2954
+ Returns: number;
2955
+ };
2956
+ show_limit: {
2957
+ Args: never;
2958
+ Returns: number;
2959
+ };
2960
+ show_trgm: {
2961
+ Args: {
2962
+ "": string;
2963
+ };
2964
+ Returns: string[];
2965
+ };
2966
+ };
2967
+ Enums: {
2968
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
2969
+ exact_env: "staging" | "live";
2970
+ };
2971
+ CompositeTypes: { [_ in never]: never; };
2972
+ }, {
2973
+ PostgrestVersion: "14.5";
2974
+ }>;
2975
+ userId: string;
2976
+ claims: import("@supabase/auth-js").User;
2977
+ }, undefined, undefined, undefined>;
2978
+ //# sourceMappingURL=auth-middleware.d.ts.map