@flowselections/floriday-klanten-module 1.0.0

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