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