@flowselections/floriday-verkoop-module 1.0.26 → 1.0.28

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 (93) hide show
  1. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +1 -1
  2. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -1
  3. package/dist-lib/components/karindeling/KarindelingPage.d.ts +1 -1
  4. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  6. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +1 -1
  8. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  10. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  11. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  12. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  13. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  14. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  15. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  16. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  17. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  18. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  19. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  20. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  21. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  22. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  23. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  24. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  25. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  26. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  27. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  28. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  29. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  30. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  31. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  32. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  33. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +2 -1
  34. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  35. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  36. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  37. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  38. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  39. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  40. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  41. package/dist-lib/index.d.ts +0 -1
  42. package/dist-lib/index.d.ts.map +1 -1
  43. package/dist-lib/index.js +5 -11
  44. package/dist-lib/integrations/supabase/auth-middleware.d.ts +104 -127
  45. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  46. package/dist-lib/integrations/supabase/client.d.ts +104 -127
  47. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  48. package/dist-lib/integrations/supabase/client.server.d.ts +104 -127
  49. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  50. package/dist-lib/integrations/supabase/types.d.ts +106 -129
  51. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  52. package/dist-lib/lib/cart-lock.functions.d.ts +104 -127
  53. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/cart-planning-settings.functions.d.ts +1144 -1397
  55. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/cart-replan.functions.d.ts +312 -381
  57. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/create-order.functions.d.ts +1248 -1524
  59. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +312 -381
  61. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +104 -127
  63. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/floriday-mirror.functions.d.ts +104 -127
  65. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/floriday-public.functions.d.ts +728 -889
  67. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/floriday-writes.functions.d.ts +520 -635
  69. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/order-buffers.functions.d.ts +312 -381
  71. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/order-shipments.functions.d.ts +416 -508
  73. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/salesorders.functions.d.ts +520 -635
  75. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/tradeitems.functions.d.ts +104 -127
  77. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  78. package/package.json +1 -1
  79. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +0 -9
  80. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +0 -1
  81. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +0 -26
  82. package/dist-lib/components/ui/dropdown-menu.d.ts +0 -9
  83. package/dist-lib/components/ui/dropdown-menu.d.ts.map +0 -1
  84. package/dist-lib/components/ui/dropdown-menu.js +0 -14
  85. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +0 -5
  86. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +0 -1
  87. package/dist-lib/components/verkoop/CreateOrderDialog.js +0 -33
  88. package/dist-lib/lib/floriday/floriday.server.d.ts +0 -14
  89. package/dist-lib/lib/floriday/floriday.server.d.ts.map +0 -1
  90. package/dist-lib/lib/floriday/floriday.server.js +0 -92
  91. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +0 -4736
  92. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +0 -1
  93. package/dist-lib/lib/floriday/sales-orders.functions.js +0 -193
@@ -1,4736 +0,0 @@
1
- export interface SalesOrderDTO {
2
- id: string;
3
- orderNumber: string;
4
- productName: string;
5
- sku: string;
6
- imageUrl: string | null;
7
- orderedAt: string;
8
- deliveryAt: string;
9
- quantity: {
10
- multiplier: number;
11
- count: number;
12
- unitPrice: number;
13
- };
14
- revenue: number;
15
- fustCount: number;
16
- customer: {
17
- name: string;
18
- postalCode: string;
19
- city: string;
20
- logoUrl: string | null;
21
- };
22
- status: {
23
- isCancelled: boolean;
24
- isShipped: boolean;
25
- isInvoiced: boolean;
26
- isConfirmed: boolean;
27
- };
28
- }
29
- export interface SalesOrdersResult {
30
- orders: SalesOrderDTO[];
31
- totals: {
32
- revenue: number;
33
- avgPrice: number;
34
- fustCount: number;
35
- };
36
- }
37
- export declare const listSalesOrders: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
38
- supabase: import("@supabase/supabase-js").SupabaseClient<import("../../integrations/supabase/types").Database, "public", "public", {
39
- Tables: {
40
- bugs: {
41
- Row: {
42
- attachment_url: string | null;
43
- created_at: string;
44
- description: string;
45
- id: string;
46
- priority: string;
47
- status: string;
48
- title: string;
49
- updated_at: string;
50
- user_id: string;
51
- };
52
- Insert: {
53
- attachment_url?: string | null;
54
- created_at?: string;
55
- description: string;
56
- id?: string;
57
- priority?: string;
58
- status?: string;
59
- title: string;
60
- updated_at?: string;
61
- user_id: string;
62
- };
63
- Update: {
64
- attachment_url?: string | null;
65
- created_at?: string;
66
- description?: string;
67
- id?: string;
68
- priority?: string;
69
- status?: string;
70
- title?: string;
71
- updated_at?: string;
72
- user_id?: string;
73
- };
74
- Relationships: [];
75
- };
76
- collections: {
77
- Row: {
78
- created_at: string;
79
- created_by: string | null;
80
- id: string;
81
- name: string;
82
- updated_at: string;
83
- };
84
- Insert: {
85
- created_at?: string;
86
- created_by?: string | null;
87
- id?: string;
88
- name: string;
89
- updated_at?: string;
90
- };
91
- Update: {
92
- created_at?: string;
93
- created_by?: string | null;
94
- id?: string;
95
- name?: string;
96
- updated_at?: string;
97
- };
98
- Relationships: [];
99
- };
100
- customer_audit_log: {
101
- Row: {
102
- action: string;
103
- changes: import("../../integrations/supabase/types").Json;
104
- created_at: string;
105
- customer_id: string;
106
- id: string;
107
- user_id: string | null;
108
- };
109
- Insert: {
110
- action: string;
111
- changes?: import("../../integrations/supabase/types").Json;
112
- created_at?: string;
113
- customer_id: string;
114
- id?: string;
115
- user_id?: string | null;
116
- };
117
- Update: {
118
- action?: string;
119
- changes?: import("../../integrations/supabase/types").Json;
120
- created_at?: string;
121
- customer_id?: string;
122
- id?: string;
123
- user_id?: string | null;
124
- };
125
- Relationships: [{
126
- foreignKeyName: "customer_audit_log_customer_id_fkey";
127
- columns: ["customer_id"];
128
- isOneToOne: false;
129
- referencedRelation: "customers";
130
- referencedColumns: ["id"];
131
- }];
132
- };
133
- customer_contacts: {
134
- Row: {
135
- created_at: string;
136
- customer_id: string;
137
- email: string | null;
138
- floriday_contact_id: string | null;
139
- full_name: string;
140
- id: string;
141
- is_active: boolean;
142
- job_title: string | null;
143
- phone: string | null;
144
- photo_url: string | null;
145
- raw: import("../../integrations/supabase/types").Json | null;
146
- updated_at: string;
147
- };
148
- Insert: {
149
- created_at?: string;
150
- customer_id: string;
151
- email?: string | null;
152
- floriday_contact_id?: string | null;
153
- full_name: string;
154
- id?: string;
155
- is_active?: boolean;
156
- job_title?: string | null;
157
- phone?: string | null;
158
- photo_url?: string | null;
159
- raw?: import("../../integrations/supabase/types").Json | null;
160
- updated_at?: string;
161
- };
162
- Update: {
163
- created_at?: string;
164
- customer_id?: string;
165
- email?: string | null;
166
- floriday_contact_id?: string | null;
167
- full_name?: string;
168
- id?: string;
169
- is_active?: boolean;
170
- job_title?: string | null;
171
- phone?: string | null;
172
- photo_url?: string | null;
173
- raw?: import("../../integrations/supabase/types").Json | null;
174
- updated_at?: string;
175
- };
176
- Relationships: [{
177
- foreignKeyName: "customer_contacts_customer_id_fkey";
178
- columns: ["customer_id"];
179
- isOneToOne: false;
180
- referencedRelation: "customers";
181
- referencedColumns: ["id"];
182
- }];
183
- };
184
- customer_delivery_locations: {
185
- Row: {
186
- address_line: string | null;
187
- city: string | null;
188
- country: string | null;
189
- created_at: string;
190
- customer_id: string;
191
- floriday_location_id: string | null;
192
- gln: string | null;
193
- id: string;
194
- is_primary: boolean;
195
- name: string | null;
196
- postal_code: string | null;
197
- raw: import("../../integrations/supabase/types").Json | null;
198
- updated_at: string;
199
- };
200
- Insert: {
201
- address_line?: string | null;
202
- city?: string | null;
203
- country?: string | null;
204
- created_at?: string;
205
- customer_id: string;
206
- floriday_location_id?: string | null;
207
- gln?: string | null;
208
- id?: string;
209
- is_primary?: boolean;
210
- name?: string | null;
211
- postal_code?: string | null;
212
- raw?: import("../../integrations/supabase/types").Json | null;
213
- updated_at?: string;
214
- };
215
- Update: {
216
- address_line?: string | null;
217
- city?: string | null;
218
- country?: string | null;
219
- created_at?: string;
220
- customer_id?: string;
221
- floriday_location_id?: string | null;
222
- gln?: string | null;
223
- id?: string;
224
- is_primary?: boolean;
225
- name?: string | null;
226
- postal_code?: string | null;
227
- raw?: import("../../integrations/supabase/types").Json | null;
228
- updated_at?: string;
229
- };
230
- Relationships: [{
231
- foreignKeyName: "customer_delivery_locations_customer_id_fkey";
232
- columns: ["customer_id"];
233
- isOneToOne: false;
234
- referencedRelation: "customers";
235
- referencedColumns: ["id"];
236
- }];
237
- };
238
- customer_field_options: {
239
- Row: {
240
- created_at: string;
241
- field_setting_id: string;
242
- id: string;
243
- label: string;
244
- sort_order: number;
245
- };
246
- Insert: {
247
- created_at?: string;
248
- field_setting_id: string;
249
- id?: string;
250
- label: string;
251
- sort_order?: number;
252
- };
253
- Update: {
254
- created_at?: string;
255
- field_setting_id?: string;
256
- id?: string;
257
- label?: string;
258
- sort_order?: number;
259
- };
260
- Relationships: [{
261
- foreignKeyName: "customer_field_options_field_setting_id_fkey";
262
- columns: ["field_setting_id"];
263
- isOneToOne: false;
264
- referencedRelation: "customer_field_settings";
265
- referencedColumns: ["id"];
266
- }];
267
- };
268
- customer_field_settings: {
269
- Row: {
270
- created_at: string;
271
- field_key: string;
272
- field_label: string;
273
- field_type: string;
274
- id: string;
275
- is_custom: boolean;
276
- sort_order: number;
277
- updated_at: string;
278
- };
279
- Insert: {
280
- created_at?: string;
281
- field_key: string;
282
- field_label: string;
283
- field_type?: string;
284
- id?: string;
285
- is_custom?: boolean;
286
- sort_order?: number;
287
- updated_at?: string;
288
- };
289
- Update: {
290
- created_at?: string;
291
- field_key?: string;
292
- field_label?: string;
293
- field_type?: string;
294
- id?: string;
295
- is_custom?: boolean;
296
- sort_order?: number;
297
- updated_at?: string;
298
- };
299
- Relationships: [];
300
- };
301
- customer_selected_assortment: {
302
- Row: {
303
- article_number: string | null;
304
- created_at: string;
305
- customer_id: string;
306
- floriday_item_id: string | null;
307
- id: string;
308
- price: number | null;
309
- product_group: string | null;
310
- product_name: string;
311
- raw: import("../../integrations/supabase/types").Json | null;
312
- unit: string | null;
313
- updated_at: string;
314
- };
315
- Insert: {
316
- article_number?: string | null;
317
- created_at?: string;
318
- customer_id: string;
319
- floriday_item_id?: string | null;
320
- id?: string;
321
- price?: number | null;
322
- product_group?: string | null;
323
- product_name: string;
324
- raw?: import("../../integrations/supabase/types").Json | null;
325
- unit?: string | null;
326
- updated_at?: string;
327
- };
328
- Update: {
329
- article_number?: string | null;
330
- created_at?: string;
331
- customer_id?: string;
332
- floriday_item_id?: string | null;
333
- id?: string;
334
- price?: number | null;
335
- product_group?: string | null;
336
- product_name?: string;
337
- raw?: import("../../integrations/supabase/types").Json | null;
338
- unit?: string | null;
339
- updated_at?: string;
340
- };
341
- Relationships: [{
342
- foreignKeyName: "customer_selected_assortment_customer_id_fkey";
343
- columns: ["customer_id"];
344
- isOneToOne: false;
345
- referencedRelation: "customers";
346
- referencedColumns: ["id"];
347
- }];
348
- };
349
- customer_trade_settings: {
350
- Row: {
351
- category: string;
352
- created_at: string;
353
- customer_id: string;
354
- id: string;
355
- is_active: boolean;
356
- raw: import("../../integrations/supabase/types").Json | null;
357
- setting_key: string;
358
- setting_label: string;
359
- updated_at: string;
360
- };
361
- Insert: {
362
- category?: string;
363
- created_at?: string;
364
- customer_id: string;
365
- id?: string;
366
- is_active?: boolean;
367
- raw?: import("../../integrations/supabase/types").Json | null;
368
- setting_key: string;
369
- setting_label: string;
370
- updated_at?: string;
371
- };
372
- Update: {
373
- category?: string;
374
- created_at?: string;
375
- customer_id?: string;
376
- id?: string;
377
- is_active?: boolean;
378
- raw?: import("../../integrations/supabase/types").Json | null;
379
- setting_key?: string;
380
- setting_label?: string;
381
- updated_at?: string;
382
- };
383
- Relationships: [{
384
- foreignKeyName: "customer_trade_settings_customer_id_fkey";
385
- columns: ["customer_id"];
386
- isOneToOne: false;
387
- referencedRelation: "customers";
388
- referencedColumns: ["id"];
389
- }];
390
- };
391
- customers: {
392
- Row: {
393
- address: string | null;
394
- bio: string | null;
395
- city: string | null;
396
- commercial_name: string | null;
397
- company_name: string;
398
- connection_status: string;
399
- contact_person: string | null;
400
- country: string | null;
401
- created_at: string;
402
- custom_fields: import("../../integrations/supabase/types").Json;
403
- customer_class: string | null;
404
- email: string | null;
405
- external_id: string | null;
406
- floriday_connection_id: string | null;
407
- floriday_organization_id: string | null;
408
- floriday_raw: import("../../integrations/supabase/types").Json | null;
409
- gln: string | null;
410
- house_number: string | null;
411
- id: string;
412
- is_active: boolean;
413
- last_synced_at: string | null;
414
- logo_url: string | null;
415
- markets: string[];
416
- notes: string | null;
417
- organization_type: string | null;
418
- payment_methods: string[];
419
- phone: string | null;
420
- postal_code: string | null;
421
- product_groups: string[];
422
- segments: string[];
423
- source: string;
424
- street: string | null;
425
- sync_error: string | null;
426
- sync_status: string;
427
- trade_forms: string[];
428
- updated_at: string;
429
- vat_number: string | null;
430
- website: string | null;
431
- };
432
- Insert: {
433
- address?: string | null;
434
- bio?: string | null;
435
- city?: string | null;
436
- commercial_name?: string | null;
437
- company_name: string;
438
- connection_status?: string;
439
- contact_person?: string | null;
440
- country?: string | null;
441
- created_at?: string;
442
- custom_fields?: import("../../integrations/supabase/types").Json;
443
- customer_class?: string | null;
444
- email?: string | null;
445
- external_id?: string | null;
446
- floriday_connection_id?: string | null;
447
- floriday_organization_id?: string | null;
448
- floriday_raw?: import("../../integrations/supabase/types").Json | null;
449
- gln?: string | null;
450
- house_number?: string | null;
451
- id?: string;
452
- is_active?: boolean;
453
- last_synced_at?: string | null;
454
- logo_url?: string | null;
455
- markets?: string[];
456
- notes?: string | null;
457
- organization_type?: string | null;
458
- payment_methods?: string[];
459
- phone?: string | null;
460
- postal_code?: string | null;
461
- product_groups?: string[];
462
- segments?: string[];
463
- source?: string;
464
- street?: string | null;
465
- sync_error?: string | null;
466
- sync_status?: string;
467
- trade_forms?: string[];
468
- updated_at?: string;
469
- vat_number?: string | null;
470
- website?: string | null;
471
- };
472
- Update: {
473
- address?: string | null;
474
- bio?: string | null;
475
- city?: string | null;
476
- commercial_name?: string | null;
477
- company_name?: string;
478
- connection_status?: string;
479
- contact_person?: string | null;
480
- country?: string | null;
481
- created_at?: string;
482
- custom_fields?: import("../../integrations/supabase/types").Json;
483
- customer_class?: string | null;
484
- email?: string | null;
485
- external_id?: string | null;
486
- floriday_connection_id?: string | null;
487
- floriday_organization_id?: string | null;
488
- floriday_raw?: import("../../integrations/supabase/types").Json | null;
489
- gln?: string | null;
490
- house_number?: string | null;
491
- id?: string;
492
- is_active?: boolean;
493
- last_synced_at?: string | null;
494
- logo_url?: string | null;
495
- markets?: string[];
496
- notes?: string | null;
497
- organization_type?: string | null;
498
- payment_methods?: string[];
499
- phone?: string | null;
500
- postal_code?: string | null;
501
- product_groups?: string[];
502
- segments?: string[];
503
- source?: string;
504
- street?: string | null;
505
- sync_error?: string | null;
506
- sync_status?: string;
507
- trade_forms?: string[];
508
- updated_at?: string;
509
- vat_number?: string | null;
510
- website?: string | null;
511
- };
512
- Relationships: [];
513
- };
514
- exact_connections: {
515
- Row: {
516
- access_token_encrypted: string;
517
- company_name: string | null;
518
- connected_at: string;
519
- connected_by: string | null;
520
- division_code: number | null;
521
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
522
- expires_at: string;
523
- id: string;
524
- refresh_token_encrypted: string;
525
- status: string;
526
- updated_at: string;
527
- };
528
- Insert: {
529
- access_token_encrypted: string;
530
- company_name?: string | null;
531
- connected_at?: string;
532
- connected_by?: string | null;
533
- division_code?: number | null;
534
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
535
- expires_at: string;
536
- id?: string;
537
- refresh_token_encrypted: string;
538
- status?: string;
539
- updated_at?: string;
540
- };
541
- Update: {
542
- access_token_encrypted?: string;
543
- company_name?: string | null;
544
- connected_at?: string;
545
- connected_by?: string | null;
546
- division_code?: number | null;
547
- environment?: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
548
- expires_at?: string;
549
- id?: string;
550
- refresh_token_encrypted?: string;
551
- status?: string;
552
- updated_at?: string;
553
- };
554
- Relationships: [];
555
- };
556
- exact_credentials: {
557
- Row: {
558
- client_id: string;
559
- client_secret_encrypted: string;
560
- created_at: string;
561
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
562
- id: string;
563
- redirect_uri: string;
564
- updated_at: string;
565
- };
566
- Insert: {
567
- client_id: string;
568
- client_secret_encrypted: string;
569
- created_at?: string;
570
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
571
- id?: string;
572
- redirect_uri: string;
573
- updated_at?: string;
574
- };
575
- Update: {
576
- client_id?: string;
577
- client_secret_encrypted?: string;
578
- created_at?: string;
579
- environment?: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
580
- id?: string;
581
- redirect_uri?: string;
582
- updated_at?: string;
583
- };
584
- Relationships: [];
585
- };
586
- exact_customers_cache: {
587
- Row: {
588
- connection_id: string;
589
- data: import("../../integrations/supabase/types").Json;
590
- exact_id: string;
591
- fetched_at: string;
592
- };
593
- Insert: {
594
- connection_id: string;
595
- data?: import("../../integrations/supabase/types").Json;
596
- exact_id: string;
597
- fetched_at?: string;
598
- };
599
- Update: {
600
- connection_id?: string;
601
- data?: import("../../integrations/supabase/types").Json;
602
- exact_id?: string;
603
- fetched_at?: string;
604
- };
605
- Relationships: [];
606
- };
607
- exact_sync_state: {
608
- Row: {
609
- connection_id: string;
610
- last_error: string | null;
611
- last_modified_cursor: string | null;
612
- last_synced_at: string | null;
613
- status: string;
614
- updated_at: string;
615
- };
616
- Insert: {
617
- connection_id: string;
618
- last_error?: string | null;
619
- last_modified_cursor?: string | null;
620
- last_synced_at?: string | null;
621
- status?: string;
622
- updated_at?: string;
623
- };
624
- Update: {
625
- connection_id?: string;
626
- last_error?: string | null;
627
- last_modified_cursor?: string | null;
628
- last_synced_at?: string | null;
629
- status?: string;
630
- updated_at?: string;
631
- };
632
- Relationships: [];
633
- };
634
- floricode_connection_settings: {
635
- Row: {
636
- catalog_key: string | null;
637
- catalog_url: string;
638
- created_at: string;
639
- id: number;
640
- last_meta: import("../../integrations/supabase/types").Json | null;
641
- last_test_at: string | null;
642
- last_test_error: string | null;
643
- last_test_ok: boolean | null;
644
- updated_at: string;
645
- };
646
- Insert: {
647
- catalog_key?: string | null;
648
- catalog_url?: string;
649
- created_at?: string;
650
- id?: number;
651
- last_meta?: import("../../integrations/supabase/types").Json | null;
652
- last_test_at?: string | null;
653
- last_test_error?: string | null;
654
- last_test_ok?: boolean | null;
655
- updated_at?: string;
656
- };
657
- Update: {
658
- catalog_key?: string | null;
659
- catalog_url?: string;
660
- created_at?: string;
661
- id?: number;
662
- last_meta?: import("../../integrations/supabase/types").Json | null;
663
- last_test_at?: string | null;
664
- last_test_error?: string | null;
665
- last_test_ok?: boolean | null;
666
- updated_at?: string;
667
- };
668
- Relationships: [];
669
- };
670
- floricode_records: {
671
- Row: {
672
- change_date_time: string | null;
673
- data: import("../../integrations/supabase/types").Json;
674
- last_synced_at: string;
675
- record_id: string;
676
- resource: string;
677
- };
678
- Insert: {
679
- change_date_time?: string | null;
680
- data?: import("../../integrations/supabase/types").Json;
681
- last_synced_at?: string;
682
- record_id: string;
683
- resource: string;
684
- };
685
- Update: {
686
- change_date_time?: string | null;
687
- data?: import("../../integrations/supabase/types").Json;
688
- last_synced_at?: string;
689
- record_id?: string;
690
- resource?: string;
691
- };
692
- Relationships: [];
693
- };
694
- floricode_sync_state: {
695
- Row: {
696
- error_message: string | null;
697
- last_change_date_time: string | null;
698
- last_sequence_number: number;
699
- last_sync_at: string | null;
700
- resource: string;
701
- status: string;
702
- updated_at: string;
703
- };
704
- Insert: {
705
- error_message?: string | null;
706
- last_change_date_time?: string | null;
707
- last_sequence_number?: number;
708
- last_sync_at?: string | null;
709
- resource: string;
710
- status?: string;
711
- updated_at?: string;
712
- };
713
- Update: {
714
- error_message?: string | null;
715
- last_change_date_time?: string | null;
716
- last_sequence_number?: number;
717
- last_sync_at?: string | null;
718
- resource?: string;
719
- status?: string;
720
- updated_at?: string;
721
- };
722
- Relationships: [];
723
- };
724
- floriday_connections: {
725
- Row: {
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
- Insert: {
744
- access_token?: string | null;
745
- api_key: string;
746
- client_id: string;
747
- client_secret: string;
748
- created_at?: string;
749
- customers_endpoint?: string | null;
750
- environment: string;
751
- gln_code?: string | null;
752
- id?: string;
753
- is_active?: boolean;
754
- label?: string;
755
- organization_name?: string | null;
756
- preferred_warehouse_id?: string | null;
757
- preferred_warehouse_name?: string | null;
758
- token_expires_at?: string | null;
759
- updated_at?: string;
760
- };
761
- Update: {
762
- access_token?: string | null;
763
- api_key?: string;
764
- client_id?: string;
765
- client_secret?: string;
766
- created_at?: string;
767
- customers_endpoint?: string | null;
768
- environment?: string;
769
- gln_code?: string | null;
770
- id?: string;
771
- is_active?: boolean;
772
- label?: string;
773
- organization_name?: string | null;
774
- preferred_warehouse_id?: string | null;
775
- preferred_warehouse_name?: string | null;
776
- token_expires_at?: string | null;
777
- updated_at?: string;
778
- };
779
- Relationships: [];
780
- };
781
- floriday_customers_cache: {
782
- Row: {
783
- connection_id: string | null;
784
- data: import("../../integrations/supabase/types").Json;
785
- fetched_at: string;
786
- organization_id: string;
787
- };
788
- Insert: {
789
- connection_id?: string | null;
790
- data?: import("../../integrations/supabase/types").Json;
791
- fetched_at?: string;
792
- organization_id: string;
793
- };
794
- Update: {
795
- connection_id?: string | null;
796
- data?: import("../../integrations/supabase/types").Json;
797
- fetched_at?: string;
798
- organization_id?: string;
799
- };
800
- Relationships: [{
801
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
802
- columns: ["connection_id"];
803
- isOneToOne: false;
804
- referencedRelation: "floriday_connections";
805
- referencedColumns: ["id"];
806
- }];
807
- };
808
- floriday_network_cache: {
809
- Row: {
810
- city: string | null;
811
- connection_id: string;
812
- country: string | null;
813
- data: import("../../integrations/supabase/types").Json;
814
- fetched_at: string;
815
- gln: string | null;
816
- organization_id: string;
817
- organization_name: string | null;
818
- };
819
- Insert: {
820
- city?: string | null;
821
- connection_id: string;
822
- country?: string | null;
823
- data?: import("../../integrations/supabase/types").Json;
824
- fetched_at?: string;
825
- gln?: string | null;
826
- organization_id: string;
827
- organization_name?: string | null;
828
- };
829
- Update: {
830
- city?: string | null;
831
- connection_id?: string;
832
- country?: string | null;
833
- data?: import("../../integrations/supabase/types").Json;
834
- fetched_at?: string;
835
- gln?: string | null;
836
- organization_id?: string;
837
- organization_name?: string | null;
838
- };
839
- Relationships: [];
840
- };
841
- floriday_network_sync_state: {
842
- Row: {
843
- connection_id: string;
844
- last_error: string | null;
845
- last_sequence_number: number;
846
- last_synced_at: string | null;
847
- updated_at: string;
848
- };
849
- Insert: {
850
- connection_id: string;
851
- last_error?: string | null;
852
- last_sequence_number?: number;
853
- last_synced_at?: string | null;
854
- updated_at?: string;
855
- };
856
- Update: {
857
- connection_id?: string;
858
- last_error?: string | null;
859
- last_sequence_number?: number;
860
- last_synced_at?: string | null;
861
- updated_at?: string;
862
- };
863
- Relationships: [];
864
- };
865
- floriday_settings: {
866
- Row: {
867
- active_environment: string;
868
- id: number;
869
- updated_at: string;
870
- };
871
- Insert: {
872
- active_environment?: string;
873
- id?: number;
874
- updated_at?: string;
875
- };
876
- Update: {
877
- active_environment?: string;
878
- id?: number;
879
- updated_at?: string;
880
- };
881
- Relationships: [];
882
- };
883
- inventory_settings: {
884
- Row: {
885
- created_at: string;
886
- hierarchy_levels: string[];
887
- id: string;
888
- updated_at: string;
889
- visible_columns: string[];
890
- };
891
- Insert: {
892
- created_at?: string;
893
- hierarchy_levels?: string[];
894
- id?: string;
895
- updated_at?: string;
896
- visible_columns?: string[];
897
- };
898
- Update: {
899
- created_at?: string;
900
- hierarchy_levels?: string[];
901
- id?: string;
902
- updated_at?: string;
903
- visible_columns?: string[];
904
- };
905
- Relationships: [];
906
- };
907
- locations: {
908
- Row: {
909
- created_at: string;
910
- id: string;
911
- name: string;
912
- sort_order: number;
913
- updated_at: string;
914
- };
915
- Insert: {
916
- created_at?: string;
917
- id?: string;
918
- name: string;
919
- sort_order?: number;
920
- updated_at?: string;
921
- };
922
- Update: {
923
- created_at?: string;
924
- id?: string;
925
- name?: string;
926
- sort_order?: number;
927
- updated_at?: string;
928
- };
929
- Relationships: [];
930
- };
931
- notifications: {
932
- Row: {
933
- created_at: string;
934
- id: string;
935
- message: string | null;
936
- read: boolean;
937
- title: string;
938
- updated_at: string;
939
- user_id: string;
940
- };
941
- Insert: {
942
- created_at?: string;
943
- id?: string;
944
- message?: string | null;
945
- read?: boolean;
946
- title: string;
947
- updated_at?: string;
948
- user_id: string;
949
- };
950
- Update: {
951
- created_at?: string;
952
- id?: string;
953
- message?: string | null;
954
- read?: boolean;
955
- title?: string;
956
- updated_at?: string;
957
- user_id?: string;
958
- };
959
- Relationships: [];
960
- };
961
- order_field_options: {
962
- Row: {
963
- created_at: string;
964
- field_setting_id: string;
965
- id: string;
966
- label: string;
967
- sort_order: number;
968
- };
969
- Insert: {
970
- created_at?: string;
971
- field_setting_id: string;
972
- id?: string;
973
- label: string;
974
- sort_order?: number;
975
- };
976
- Update: {
977
- created_at?: string;
978
- field_setting_id?: string;
979
- id?: string;
980
- label?: string;
981
- sort_order?: number;
982
- };
983
- Relationships: [{
984
- foreignKeyName: "order_field_options_field_setting_id_fkey";
985
- columns: ["field_setting_id"];
986
- isOneToOne: false;
987
- referencedRelation: "order_field_settings";
988
- referencedColumns: ["id"];
989
- }];
990
- };
991
- order_field_settings: {
992
- Row: {
993
- active: boolean;
994
- created_at: string;
995
- field_key: string;
996
- field_label: string;
997
- field_type: string;
998
- id: string;
999
- is_custom: boolean;
1000
- sort_order: number;
1001
- updated_at: string;
1002
- };
1003
- Insert: {
1004
- active?: boolean;
1005
- created_at?: string;
1006
- field_key: string;
1007
- field_label: string;
1008
- field_type?: string;
1009
- id?: string;
1010
- is_custom?: boolean;
1011
- sort_order?: number;
1012
- updated_at?: string;
1013
- };
1014
- Update: {
1015
- active?: boolean;
1016
- created_at?: string;
1017
- field_key?: string;
1018
- field_label?: string;
1019
- field_type?: string;
1020
- id?: string;
1021
- is_custom?: boolean;
1022
- sort_order?: number;
1023
- updated_at?: string;
1024
- };
1025
- Relationships: [];
1026
- };
1027
- order_items: {
1028
- Row: {
1029
- created_at: string;
1030
- id: string;
1031
- order_id: string;
1032
- product_id: string | null;
1033
- product_name: string;
1034
- quantity: number;
1035
- unit: string;
1036
- unit_price: number | null;
1037
- };
1038
- Insert: {
1039
- created_at?: string;
1040
- id?: string;
1041
- order_id: string;
1042
- product_id?: string | null;
1043
- product_name: string;
1044
- quantity?: number;
1045
- unit?: string;
1046
- unit_price?: number | null;
1047
- };
1048
- Update: {
1049
- created_at?: string;
1050
- id?: string;
1051
- order_id?: string;
1052
- product_id?: string | null;
1053
- product_name?: string;
1054
- quantity?: number;
1055
- unit?: string;
1056
- unit_price?: number | null;
1057
- };
1058
- Relationships: [{
1059
- foreignKeyName: "order_items_order_id_fkey";
1060
- columns: ["order_id"];
1061
- isOneToOne: false;
1062
- referencedRelation: "orders";
1063
- referencedColumns: ["id"];
1064
- }, {
1065
- foreignKeyName: "order_items_product_id_fkey";
1066
- columns: ["product_id"];
1067
- isOneToOne: false;
1068
- referencedRelation: "products";
1069
- referencedColumns: ["id"];
1070
- }];
1071
- };
1072
- orders: {
1073
- Row: {
1074
- created_at: string;
1075
- custom_fields: import("../../integrations/supabase/types").Json;
1076
- customer_id: string | null;
1077
- customer_name: string;
1078
- deleted_at: string | null;
1079
- delivery_date: string;
1080
- id: string;
1081
- notes: string | null;
1082
- order_date: string;
1083
- order_number: string;
1084
- status: string;
1085
- total: string;
1086
- updated_at: string;
1087
- };
1088
- Insert: {
1089
- created_at?: string;
1090
- custom_fields?: import("../../integrations/supabase/types").Json;
1091
- customer_id?: string | null;
1092
- customer_name?: string;
1093
- deleted_at?: string | null;
1094
- delivery_date: string;
1095
- id?: string;
1096
- notes?: string | null;
1097
- order_date?: string;
1098
- order_number: string;
1099
- status?: string;
1100
- total?: string;
1101
- updated_at?: string;
1102
- };
1103
- Update: {
1104
- created_at?: string;
1105
- custom_fields?: import("../../integrations/supabase/types").Json;
1106
- customer_id?: string | null;
1107
- customer_name?: string;
1108
- deleted_at?: string | null;
1109
- delivery_date?: string;
1110
- id?: string;
1111
- notes?: string | null;
1112
- order_date?: string;
1113
- order_number?: string;
1114
- status?: string;
1115
- total?: string;
1116
- updated_at?: string;
1117
- };
1118
- Relationships: [{
1119
- foreignKeyName: "orders_customer_id_fkey";
1120
- columns: ["customer_id"];
1121
- isOneToOne: false;
1122
- referencedRelation: "customers";
1123
- referencedColumns: ["id"];
1124
- }];
1125
- };
1126
- product_categories: {
1127
- Row: {
1128
- color: string;
1129
- created_at: string;
1130
- icon: string | null;
1131
- id: string;
1132
- name: string;
1133
- slug: string;
1134
- sort_order: number;
1135
- updated_at: string;
1136
- };
1137
- Insert: {
1138
- color?: string;
1139
- created_at?: string;
1140
- icon?: string | null;
1141
- id?: string;
1142
- name: string;
1143
- slug: string;
1144
- sort_order?: number;
1145
- updated_at?: string;
1146
- };
1147
- Update: {
1148
- color?: string;
1149
- created_at?: string;
1150
- icon?: string | null;
1151
- id?: string;
1152
- name?: string;
1153
- slug?: string;
1154
- sort_order?: number;
1155
- updated_at?: string;
1156
- };
1157
- Relationships: [];
1158
- };
1159
- product_field_options: {
1160
- Row: {
1161
- created_at: string;
1162
- field_setting_id: string;
1163
- id: string;
1164
- label: string;
1165
- sort_order: number;
1166
- };
1167
- Insert: {
1168
- created_at?: string;
1169
- field_setting_id: string;
1170
- id?: string;
1171
- label: string;
1172
- sort_order?: number;
1173
- };
1174
- Update: {
1175
- created_at?: string;
1176
- field_setting_id?: string;
1177
- id?: string;
1178
- label?: string;
1179
- sort_order?: number;
1180
- };
1181
- Relationships: [{
1182
- foreignKeyName: "product_field_options_field_setting_id_fkey";
1183
- columns: ["field_setting_id"];
1184
- isOneToOne: false;
1185
- referencedRelation: "product_field_settings";
1186
- referencedColumns: ["id"];
1187
- }];
1188
- };
1189
- product_field_settings: {
1190
- Row: {
1191
- active_per_category: import("../../integrations/supabase/types").Json;
1192
- created_at: string;
1193
- field_key: string;
1194
- field_label: string;
1195
- field_type: string;
1196
- id: string;
1197
- is_custom: boolean;
1198
- sort_order: number;
1199
- updated_at: string;
1200
- };
1201
- Insert: {
1202
- active_per_category?: import("../../integrations/supabase/types").Json;
1203
- created_at?: string;
1204
- field_key: string;
1205
- field_label: string;
1206
- field_type?: string;
1207
- id?: string;
1208
- is_custom?: boolean;
1209
- sort_order?: number;
1210
- updated_at?: string;
1211
- };
1212
- Update: {
1213
- active_per_category?: import("../../integrations/supabase/types").Json;
1214
- created_at?: string;
1215
- field_key?: string;
1216
- field_label?: string;
1217
- field_type?: string;
1218
- id?: string;
1219
- is_custom?: boolean;
1220
- sort_order?: number;
1221
- updated_at?: string;
1222
- };
1223
- Relationships: [];
1224
- };
1225
- products: {
1226
- Row: {
1227
- barcode: string | null;
1228
- batch: string;
1229
- created_at: string;
1230
- custom_fields: import("../../integrations/supabase/types").Json;
1231
- id: string;
1232
- image_url: string | null;
1233
- incoming_quantity: number;
1234
- location: string;
1235
- min_quantity: number;
1236
- product: string;
1237
- product_type: string;
1238
- purchase_price: number | null;
1239
- quantity: number;
1240
- sale_price: number | null;
1241
- unit: string;
1242
- updated_at: string;
1243
- weight: string | null;
1244
- };
1245
- Insert: {
1246
- barcode?: string | null;
1247
- batch: string;
1248
- created_at?: string;
1249
- custom_fields?: import("../../integrations/supabase/types").Json;
1250
- id?: string;
1251
- image_url?: string | null;
1252
- incoming_quantity?: number;
1253
- location: string;
1254
- min_quantity?: number;
1255
- product: string;
1256
- product_type?: string;
1257
- purchase_price?: number | null;
1258
- quantity?: number;
1259
- sale_price?: number | null;
1260
- unit?: string;
1261
- updated_at?: string;
1262
- weight?: string | null;
1263
- };
1264
- Update: {
1265
- barcode?: string | null;
1266
- batch?: string;
1267
- created_at?: string;
1268
- custom_fields?: import("../../integrations/supabase/types").Json;
1269
- id?: string;
1270
- image_url?: string | null;
1271
- incoming_quantity?: number;
1272
- location?: string;
1273
- min_quantity?: number;
1274
- product?: string;
1275
- product_type?: string;
1276
- purchase_price?: number | null;
1277
- quantity?: number;
1278
- sale_price?: number | null;
1279
- unit?: string;
1280
- updated_at?: string;
1281
- weight?: string | null;
1282
- };
1283
- Relationships: [];
1284
- };
1285
- profiles: {
1286
- Row: {
1287
- created_at: string;
1288
- display_name: string | null;
1289
- email: string | null;
1290
- id: string;
1291
- notification_preferences: import("../../integrations/supabase/types").Json;
1292
- updated_at: string;
1293
- };
1294
- Insert: {
1295
- created_at?: string;
1296
- display_name?: string | null;
1297
- email?: string | null;
1298
- id: string;
1299
- notification_preferences?: import("../../integrations/supabase/types").Json;
1300
- updated_at?: string;
1301
- };
1302
- Update: {
1303
- created_at?: string;
1304
- display_name?: string | null;
1305
- email?: string | null;
1306
- id?: string;
1307
- notification_preferences?: import("../../integrations/supabase/types").Json;
1308
- updated_at?: string;
1309
- };
1310
- Relationships: [];
1311
- };
1312
- purchase_order_items: {
1313
- Row: {
1314
- created_at: string;
1315
- id: string;
1316
- product_id: string | null;
1317
- product_type: string;
1318
- purchase_order_id: string;
1319
- quantity: number;
1320
- };
1321
- Insert: {
1322
- created_at?: string;
1323
- id?: string;
1324
- product_id?: string | null;
1325
- product_type?: string;
1326
- purchase_order_id: string;
1327
- quantity?: number;
1328
- };
1329
- Update: {
1330
- created_at?: string;
1331
- id?: string;
1332
- product_id?: string | null;
1333
- product_type?: string;
1334
- purchase_order_id?: string;
1335
- quantity?: number;
1336
- };
1337
- Relationships: [{
1338
- foreignKeyName: "purchase_order_items_product_id_fkey";
1339
- columns: ["product_id"];
1340
- isOneToOne: false;
1341
- referencedRelation: "products";
1342
- referencedColumns: ["id"];
1343
- }, {
1344
- foreignKeyName: "purchase_order_items_purchase_order_id_fkey";
1345
- columns: ["purchase_order_id"];
1346
- isOneToOne: false;
1347
- referencedRelation: "purchase_orders";
1348
- referencedColumns: ["id"];
1349
- }];
1350
- };
1351
- purchase_orders: {
1352
- Row: {
1353
- created_at: string;
1354
- expected_delivery_date: string;
1355
- id: string;
1356
- location_id: string | null;
1357
- notes: string | null;
1358
- order_number: string;
1359
- status: string;
1360
- supplier_id: string | null;
1361
- supplier_name: string;
1362
- updated_at: string;
1363
- };
1364
- Insert: {
1365
- created_at?: string;
1366
- expected_delivery_date: string;
1367
- id?: string;
1368
- location_id?: string | null;
1369
- notes?: string | null;
1370
- order_number: string;
1371
- status?: string;
1372
- supplier_id?: string | null;
1373
- supplier_name?: string;
1374
- updated_at?: string;
1375
- };
1376
- Update: {
1377
- created_at?: string;
1378
- expected_delivery_date?: string;
1379
- id?: string;
1380
- location_id?: string | null;
1381
- notes?: string | null;
1382
- order_number?: string;
1383
- status?: string;
1384
- supplier_id?: string | null;
1385
- supplier_name?: string;
1386
- updated_at?: string;
1387
- };
1388
- Relationships: [{
1389
- foreignKeyName: "purchase_orders_location_id_fkey";
1390
- columns: ["location_id"];
1391
- isOneToOne: false;
1392
- referencedRelation: "locations";
1393
- referencedColumns: ["id"];
1394
- }, {
1395
- foreignKeyName: "purchase_orders_supplier_id_fkey";
1396
- columns: ["supplier_id"];
1397
- isOneToOne: false;
1398
- referencedRelation: "suppliers";
1399
- referencedColumns: ["id"];
1400
- }];
1401
- };
1402
- supplier_products: {
1403
- Row: {
1404
- article_number: string | null;
1405
- created_at: string;
1406
- id: string;
1407
- name: string;
1408
- notes: string | null;
1409
- pot_size: string | null;
1410
- price: number | null;
1411
- quantity: number | null;
1412
- supplier_id: string;
1413
- unit: string;
1414
- updated_at: string;
1415
- };
1416
- Insert: {
1417
- article_number?: string | null;
1418
- created_at?: string;
1419
- id?: string;
1420
- name: string;
1421
- notes?: string | null;
1422
- pot_size?: string | null;
1423
- price?: number | null;
1424
- quantity?: number | null;
1425
- supplier_id: string;
1426
- unit?: string;
1427
- updated_at?: string;
1428
- };
1429
- Update: {
1430
- article_number?: string | null;
1431
- created_at?: string;
1432
- id?: string;
1433
- name?: string;
1434
- notes?: string | null;
1435
- pot_size?: string | null;
1436
- price?: number | null;
1437
- quantity?: number | null;
1438
- supplier_id?: string;
1439
- unit?: string;
1440
- updated_at?: string;
1441
- };
1442
- Relationships: [{
1443
- foreignKeyName: "supplier_products_supplier_id_fkey";
1444
- columns: ["supplier_id"];
1445
- isOneToOne: false;
1446
- referencedRelation: "suppliers";
1447
- referencedColumns: ["id"];
1448
- }];
1449
- };
1450
- suppliers: {
1451
- Row: {
1452
- address: string | null;
1453
- column_mappings: import("../../integrations/supabase/types").Json | null;
1454
- contact_person: string | null;
1455
- created_at: string;
1456
- default_product_type: string;
1457
- email: string | null;
1458
- id: string;
1459
- imported_file_name: string | null;
1460
- name: string;
1461
- notes: string | null;
1462
- phone: string | null;
1463
- updated_at: string;
1464
- };
1465
- Insert: {
1466
- address?: string | null;
1467
- column_mappings?: import("../../integrations/supabase/types").Json | null;
1468
- contact_person?: string | null;
1469
- created_at?: string;
1470
- default_product_type?: string;
1471
- email?: string | null;
1472
- id?: string;
1473
- imported_file_name?: string | null;
1474
- name: string;
1475
- notes?: string | null;
1476
- phone?: string | null;
1477
- updated_at?: string;
1478
- };
1479
- Update: {
1480
- address?: string | null;
1481
- column_mappings?: import("../../integrations/supabase/types").Json | null;
1482
- contact_person?: string | null;
1483
- created_at?: string;
1484
- default_product_type?: string;
1485
- email?: string | null;
1486
- id?: string;
1487
- imported_file_name?: string | null;
1488
- name?: string;
1489
- notes?: string | null;
1490
- phone?: string | null;
1491
- updated_at?: string;
1492
- };
1493
- Relationships: [];
1494
- };
1495
- trade_item_drafts: {
1496
- Row: {
1497
- connection_id: string | null;
1498
- created_at: string;
1499
- data: import("../../integrations/supabase/types").Json;
1500
- id: string;
1501
- updated_at: string;
1502
- user_id: string;
1503
- };
1504
- Insert: {
1505
- connection_id?: string | null;
1506
- created_at?: string;
1507
- data?: import("../../integrations/supabase/types").Json;
1508
- id?: string;
1509
- updated_at?: string;
1510
- user_id: string;
1511
- };
1512
- Update: {
1513
- connection_id?: string | null;
1514
- created_at?: string;
1515
- data?: import("../../integrations/supabase/types").Json;
1516
- id?: string;
1517
- updated_at?: string;
1518
- user_id?: string;
1519
- };
1520
- Relationships: [];
1521
- };
1522
- user_roles: {
1523
- Row: {
1524
- created_at: string;
1525
- id: string;
1526
- role: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
1527
- user_id: string;
1528
- };
1529
- Insert: {
1530
- created_at?: string;
1531
- id?: string;
1532
- role: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
1533
- user_id: string;
1534
- };
1535
- Update: {
1536
- created_at?: string;
1537
- id?: string;
1538
- role?: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
1539
- user_id?: string;
1540
- };
1541
- Relationships: [{
1542
- foreignKeyName: "user_roles_user_id_fkey";
1543
- columns: ["user_id"];
1544
- isOneToOne: false;
1545
- referencedRelation: "profiles";
1546
- referencedColumns: ["id"];
1547
- }];
1548
- };
1549
- };
1550
- Views: { [_ in never]: never; };
1551
- Functions: {
1552
- has_role: {
1553
- Args: {
1554
- _role: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
1555
- _user_id: string;
1556
- };
1557
- Returns: boolean;
1558
- };
1559
- schedule_floriday_network_sync: {
1560
- Args: {
1561
- p_apikey: string;
1562
- p_url: string;
1563
- };
1564
- Returns: number;
1565
- };
1566
- schedule_floriday_token_refresh: {
1567
- Args: {
1568
- p_apikey: string;
1569
- p_url: string;
1570
- };
1571
- Returns: number;
1572
- };
1573
- show_limit: {
1574
- Args: never;
1575
- Returns: number;
1576
- };
1577
- show_trgm: {
1578
- Args: {
1579
- "": string;
1580
- };
1581
- Returns: string[];
1582
- };
1583
- };
1584
- Enums: {
1585
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
1586
- exact_env: "staging" | "live";
1587
- };
1588
- CompositeTypes: { [_ in never]: never; };
1589
- }, {
1590
- PostgrestVersion: "14.5";
1591
- }>;
1592
- userId: string;
1593
- claims: import("@supabase/auth-js").User;
1594
- }, undefined, undefined, undefined>], (data: unknown) => {
1595
- from?: string | undefined;
1596
- to?: string | undefined;
1597
- search?: string | undefined;
1598
- status?: string | undefined;
1599
- }, Promise<SalesOrdersResult>>;
1600
- export declare const exportSalesOrders: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
1601
- supabase: import("@supabase/supabase-js").SupabaseClient<import("../../integrations/supabase/types").Database, "public", "public", {
1602
- Tables: {
1603
- bugs: {
1604
- Row: {
1605
- attachment_url: string | null;
1606
- created_at: string;
1607
- description: string;
1608
- id: string;
1609
- priority: string;
1610
- status: string;
1611
- title: string;
1612
- updated_at: string;
1613
- user_id: string;
1614
- };
1615
- Insert: {
1616
- attachment_url?: string | null;
1617
- created_at?: string;
1618
- description: string;
1619
- id?: string;
1620
- priority?: string;
1621
- status?: string;
1622
- title: string;
1623
- updated_at?: string;
1624
- user_id: string;
1625
- };
1626
- Update: {
1627
- attachment_url?: string | null;
1628
- created_at?: string;
1629
- description?: string;
1630
- id?: string;
1631
- priority?: string;
1632
- status?: string;
1633
- title?: string;
1634
- updated_at?: string;
1635
- user_id?: string;
1636
- };
1637
- Relationships: [];
1638
- };
1639
- collections: {
1640
- Row: {
1641
- created_at: string;
1642
- created_by: string | null;
1643
- id: string;
1644
- name: string;
1645
- updated_at: string;
1646
- };
1647
- Insert: {
1648
- created_at?: string;
1649
- created_by?: string | null;
1650
- id?: string;
1651
- name: string;
1652
- updated_at?: string;
1653
- };
1654
- Update: {
1655
- created_at?: string;
1656
- created_by?: string | null;
1657
- id?: string;
1658
- name?: string;
1659
- updated_at?: string;
1660
- };
1661
- Relationships: [];
1662
- };
1663
- customer_audit_log: {
1664
- Row: {
1665
- action: string;
1666
- changes: import("../../integrations/supabase/types").Json;
1667
- created_at: string;
1668
- customer_id: string;
1669
- id: string;
1670
- user_id: string | null;
1671
- };
1672
- Insert: {
1673
- action: string;
1674
- changes?: import("../../integrations/supabase/types").Json;
1675
- created_at?: string;
1676
- customer_id: string;
1677
- id?: string;
1678
- user_id?: string | null;
1679
- };
1680
- Update: {
1681
- action?: string;
1682
- changes?: import("../../integrations/supabase/types").Json;
1683
- created_at?: string;
1684
- customer_id?: string;
1685
- id?: string;
1686
- user_id?: string | null;
1687
- };
1688
- Relationships: [{
1689
- foreignKeyName: "customer_audit_log_customer_id_fkey";
1690
- columns: ["customer_id"];
1691
- isOneToOne: false;
1692
- referencedRelation: "customers";
1693
- referencedColumns: ["id"];
1694
- }];
1695
- };
1696
- customer_contacts: {
1697
- Row: {
1698
- created_at: string;
1699
- customer_id: string;
1700
- email: string | null;
1701
- floriday_contact_id: string | null;
1702
- full_name: string;
1703
- id: string;
1704
- is_active: boolean;
1705
- job_title: string | null;
1706
- phone: string | null;
1707
- photo_url: string | null;
1708
- raw: import("../../integrations/supabase/types").Json | null;
1709
- updated_at: string;
1710
- };
1711
- Insert: {
1712
- created_at?: string;
1713
- customer_id: string;
1714
- email?: string | null;
1715
- floriday_contact_id?: string | null;
1716
- full_name: string;
1717
- id?: string;
1718
- is_active?: boolean;
1719
- job_title?: string | null;
1720
- phone?: string | null;
1721
- photo_url?: string | null;
1722
- raw?: import("../../integrations/supabase/types").Json | null;
1723
- updated_at?: string;
1724
- };
1725
- Update: {
1726
- created_at?: string;
1727
- customer_id?: string;
1728
- email?: string | null;
1729
- floriday_contact_id?: string | null;
1730
- full_name?: string;
1731
- id?: string;
1732
- is_active?: boolean;
1733
- job_title?: string | null;
1734
- phone?: string | null;
1735
- photo_url?: string | null;
1736
- raw?: import("../../integrations/supabase/types").Json | null;
1737
- updated_at?: string;
1738
- };
1739
- Relationships: [{
1740
- foreignKeyName: "customer_contacts_customer_id_fkey";
1741
- columns: ["customer_id"];
1742
- isOneToOne: false;
1743
- referencedRelation: "customers";
1744
- referencedColumns: ["id"];
1745
- }];
1746
- };
1747
- customer_delivery_locations: {
1748
- Row: {
1749
- address_line: string | null;
1750
- city: string | null;
1751
- country: string | null;
1752
- created_at: string;
1753
- customer_id: string;
1754
- floriday_location_id: string | null;
1755
- gln: string | null;
1756
- id: string;
1757
- is_primary: boolean;
1758
- name: string | null;
1759
- postal_code: string | null;
1760
- raw: import("../../integrations/supabase/types").Json | null;
1761
- updated_at: string;
1762
- };
1763
- Insert: {
1764
- address_line?: string | null;
1765
- city?: string | null;
1766
- country?: string | null;
1767
- created_at?: string;
1768
- customer_id: string;
1769
- floriday_location_id?: string | null;
1770
- gln?: string | null;
1771
- id?: string;
1772
- is_primary?: boolean;
1773
- name?: string | null;
1774
- postal_code?: string | null;
1775
- raw?: import("../../integrations/supabase/types").Json | null;
1776
- updated_at?: string;
1777
- };
1778
- Update: {
1779
- address_line?: string | null;
1780
- city?: string | null;
1781
- country?: string | null;
1782
- created_at?: string;
1783
- customer_id?: string;
1784
- floriday_location_id?: string | null;
1785
- gln?: string | null;
1786
- id?: string;
1787
- is_primary?: boolean;
1788
- name?: string | null;
1789
- postal_code?: string | null;
1790
- raw?: import("../../integrations/supabase/types").Json | null;
1791
- updated_at?: string;
1792
- };
1793
- Relationships: [{
1794
- foreignKeyName: "customer_delivery_locations_customer_id_fkey";
1795
- columns: ["customer_id"];
1796
- isOneToOne: false;
1797
- referencedRelation: "customers";
1798
- referencedColumns: ["id"];
1799
- }];
1800
- };
1801
- customer_field_options: {
1802
- Row: {
1803
- created_at: string;
1804
- field_setting_id: string;
1805
- id: string;
1806
- label: string;
1807
- sort_order: number;
1808
- };
1809
- Insert: {
1810
- created_at?: string;
1811
- field_setting_id: string;
1812
- id?: string;
1813
- label: string;
1814
- sort_order?: number;
1815
- };
1816
- Update: {
1817
- created_at?: string;
1818
- field_setting_id?: string;
1819
- id?: string;
1820
- label?: string;
1821
- sort_order?: number;
1822
- };
1823
- Relationships: [{
1824
- foreignKeyName: "customer_field_options_field_setting_id_fkey";
1825
- columns: ["field_setting_id"];
1826
- isOneToOne: false;
1827
- referencedRelation: "customer_field_settings";
1828
- referencedColumns: ["id"];
1829
- }];
1830
- };
1831
- customer_field_settings: {
1832
- Row: {
1833
- created_at: string;
1834
- field_key: string;
1835
- field_label: string;
1836
- field_type: string;
1837
- id: string;
1838
- is_custom: boolean;
1839
- sort_order: number;
1840
- updated_at: string;
1841
- };
1842
- Insert: {
1843
- created_at?: string;
1844
- field_key: string;
1845
- field_label: string;
1846
- field_type?: string;
1847
- id?: string;
1848
- is_custom?: boolean;
1849
- sort_order?: number;
1850
- updated_at?: string;
1851
- };
1852
- Update: {
1853
- created_at?: string;
1854
- field_key?: string;
1855
- field_label?: string;
1856
- field_type?: string;
1857
- id?: string;
1858
- is_custom?: boolean;
1859
- sort_order?: number;
1860
- updated_at?: string;
1861
- };
1862
- Relationships: [];
1863
- };
1864
- customer_selected_assortment: {
1865
- Row: {
1866
- article_number: string | null;
1867
- created_at: string;
1868
- customer_id: string;
1869
- floriday_item_id: string | null;
1870
- id: string;
1871
- price: number | null;
1872
- product_group: string | null;
1873
- product_name: string;
1874
- raw: import("../../integrations/supabase/types").Json | null;
1875
- unit: string | null;
1876
- updated_at: string;
1877
- };
1878
- Insert: {
1879
- article_number?: string | null;
1880
- created_at?: string;
1881
- customer_id: string;
1882
- floriday_item_id?: string | null;
1883
- id?: string;
1884
- price?: number | null;
1885
- product_group?: string | null;
1886
- product_name: string;
1887
- raw?: import("../../integrations/supabase/types").Json | null;
1888
- unit?: string | null;
1889
- updated_at?: string;
1890
- };
1891
- Update: {
1892
- article_number?: string | null;
1893
- created_at?: string;
1894
- customer_id?: string;
1895
- floriday_item_id?: string | null;
1896
- id?: string;
1897
- price?: number | null;
1898
- product_group?: string | null;
1899
- product_name?: string;
1900
- raw?: import("../../integrations/supabase/types").Json | null;
1901
- unit?: string | null;
1902
- updated_at?: string;
1903
- };
1904
- Relationships: [{
1905
- foreignKeyName: "customer_selected_assortment_customer_id_fkey";
1906
- columns: ["customer_id"];
1907
- isOneToOne: false;
1908
- referencedRelation: "customers";
1909
- referencedColumns: ["id"];
1910
- }];
1911
- };
1912
- customer_trade_settings: {
1913
- Row: {
1914
- category: string;
1915
- created_at: string;
1916
- customer_id: string;
1917
- id: string;
1918
- is_active: boolean;
1919
- raw: import("../../integrations/supabase/types").Json | null;
1920
- setting_key: string;
1921
- setting_label: string;
1922
- updated_at: string;
1923
- };
1924
- Insert: {
1925
- category?: string;
1926
- created_at?: string;
1927
- customer_id: string;
1928
- id?: string;
1929
- is_active?: boolean;
1930
- raw?: import("../../integrations/supabase/types").Json | null;
1931
- setting_key: string;
1932
- setting_label: string;
1933
- updated_at?: string;
1934
- };
1935
- Update: {
1936
- category?: string;
1937
- created_at?: string;
1938
- customer_id?: string;
1939
- id?: string;
1940
- is_active?: boolean;
1941
- raw?: import("../../integrations/supabase/types").Json | null;
1942
- setting_key?: string;
1943
- setting_label?: string;
1944
- updated_at?: string;
1945
- };
1946
- Relationships: [{
1947
- foreignKeyName: "customer_trade_settings_customer_id_fkey";
1948
- columns: ["customer_id"];
1949
- isOneToOne: false;
1950
- referencedRelation: "customers";
1951
- referencedColumns: ["id"];
1952
- }];
1953
- };
1954
- customers: {
1955
- Row: {
1956
- address: string | null;
1957
- bio: string | null;
1958
- city: string | null;
1959
- commercial_name: string | null;
1960
- company_name: string;
1961
- connection_status: string;
1962
- contact_person: string | null;
1963
- country: string | null;
1964
- created_at: string;
1965
- custom_fields: import("../../integrations/supabase/types").Json;
1966
- customer_class: string | null;
1967
- email: string | null;
1968
- external_id: string | null;
1969
- floriday_connection_id: string | null;
1970
- floriday_organization_id: string | null;
1971
- floriday_raw: import("../../integrations/supabase/types").Json | null;
1972
- gln: string | null;
1973
- house_number: string | null;
1974
- id: string;
1975
- is_active: boolean;
1976
- last_synced_at: string | null;
1977
- logo_url: string | null;
1978
- markets: string[];
1979
- notes: string | null;
1980
- organization_type: string | null;
1981
- payment_methods: string[];
1982
- phone: string | null;
1983
- postal_code: string | null;
1984
- product_groups: string[];
1985
- segments: string[];
1986
- source: string;
1987
- street: string | null;
1988
- sync_error: string | null;
1989
- sync_status: string;
1990
- trade_forms: string[];
1991
- updated_at: string;
1992
- vat_number: string | null;
1993
- website: string | null;
1994
- };
1995
- Insert: {
1996
- address?: string | null;
1997
- bio?: string | null;
1998
- city?: string | null;
1999
- commercial_name?: string | null;
2000
- company_name: string;
2001
- connection_status?: string;
2002
- contact_person?: string | null;
2003
- country?: string | null;
2004
- created_at?: string;
2005
- custom_fields?: import("../../integrations/supabase/types").Json;
2006
- customer_class?: string | null;
2007
- email?: string | null;
2008
- external_id?: string | null;
2009
- floriday_connection_id?: string | null;
2010
- floriday_organization_id?: string | null;
2011
- floriday_raw?: import("../../integrations/supabase/types").Json | null;
2012
- gln?: string | null;
2013
- house_number?: string | null;
2014
- id?: string;
2015
- is_active?: boolean;
2016
- last_synced_at?: string | null;
2017
- logo_url?: string | null;
2018
- markets?: string[];
2019
- notes?: string | null;
2020
- organization_type?: string | null;
2021
- payment_methods?: string[];
2022
- phone?: string | null;
2023
- postal_code?: string | null;
2024
- product_groups?: string[];
2025
- segments?: string[];
2026
- source?: string;
2027
- street?: string | null;
2028
- sync_error?: string | null;
2029
- sync_status?: string;
2030
- trade_forms?: string[];
2031
- updated_at?: string;
2032
- vat_number?: string | null;
2033
- website?: string | null;
2034
- };
2035
- Update: {
2036
- address?: string | null;
2037
- bio?: string | null;
2038
- city?: string | null;
2039
- commercial_name?: string | null;
2040
- company_name?: string;
2041
- connection_status?: string;
2042
- contact_person?: string | null;
2043
- country?: string | null;
2044
- created_at?: string;
2045
- custom_fields?: import("../../integrations/supabase/types").Json;
2046
- customer_class?: string | null;
2047
- email?: string | null;
2048
- external_id?: string | null;
2049
- floriday_connection_id?: string | null;
2050
- floriday_organization_id?: string | null;
2051
- floriday_raw?: import("../../integrations/supabase/types").Json | null;
2052
- gln?: string | null;
2053
- house_number?: string | null;
2054
- id?: string;
2055
- is_active?: boolean;
2056
- last_synced_at?: string | null;
2057
- logo_url?: string | null;
2058
- markets?: string[];
2059
- notes?: string | null;
2060
- organization_type?: string | null;
2061
- payment_methods?: string[];
2062
- phone?: string | null;
2063
- postal_code?: string | null;
2064
- product_groups?: string[];
2065
- segments?: string[];
2066
- source?: string;
2067
- street?: string | null;
2068
- sync_error?: string | null;
2069
- sync_status?: string;
2070
- trade_forms?: string[];
2071
- updated_at?: string;
2072
- vat_number?: string | null;
2073
- website?: string | null;
2074
- };
2075
- Relationships: [];
2076
- };
2077
- exact_connections: {
2078
- Row: {
2079
- access_token_encrypted: string;
2080
- company_name: string | null;
2081
- connected_at: string;
2082
- connected_by: string | null;
2083
- division_code: number | null;
2084
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
2085
- expires_at: string;
2086
- id: string;
2087
- refresh_token_encrypted: string;
2088
- status: string;
2089
- updated_at: string;
2090
- };
2091
- Insert: {
2092
- access_token_encrypted: string;
2093
- company_name?: string | null;
2094
- connected_at?: string;
2095
- connected_by?: string | null;
2096
- division_code?: number | null;
2097
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
2098
- expires_at: string;
2099
- id?: string;
2100
- refresh_token_encrypted: string;
2101
- status?: string;
2102
- updated_at?: string;
2103
- };
2104
- Update: {
2105
- access_token_encrypted?: string;
2106
- company_name?: string | null;
2107
- connected_at?: string;
2108
- connected_by?: string | null;
2109
- division_code?: number | null;
2110
- environment?: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
2111
- expires_at?: string;
2112
- id?: string;
2113
- refresh_token_encrypted?: string;
2114
- status?: string;
2115
- updated_at?: string;
2116
- };
2117
- Relationships: [];
2118
- };
2119
- exact_credentials: {
2120
- Row: {
2121
- client_id: string;
2122
- client_secret_encrypted: string;
2123
- created_at: string;
2124
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
2125
- id: string;
2126
- redirect_uri: string;
2127
- updated_at: string;
2128
- };
2129
- Insert: {
2130
- client_id: string;
2131
- client_secret_encrypted: string;
2132
- created_at?: string;
2133
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
2134
- id?: string;
2135
- redirect_uri: string;
2136
- updated_at?: string;
2137
- };
2138
- Update: {
2139
- client_id?: string;
2140
- client_secret_encrypted?: string;
2141
- created_at?: string;
2142
- environment?: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
2143
- id?: string;
2144
- redirect_uri?: string;
2145
- updated_at?: string;
2146
- };
2147
- Relationships: [];
2148
- };
2149
- exact_customers_cache: {
2150
- Row: {
2151
- connection_id: string;
2152
- data: import("../../integrations/supabase/types").Json;
2153
- exact_id: string;
2154
- fetched_at: string;
2155
- };
2156
- Insert: {
2157
- connection_id: string;
2158
- data?: import("../../integrations/supabase/types").Json;
2159
- exact_id: string;
2160
- fetched_at?: string;
2161
- };
2162
- Update: {
2163
- connection_id?: string;
2164
- data?: import("../../integrations/supabase/types").Json;
2165
- exact_id?: string;
2166
- fetched_at?: string;
2167
- };
2168
- Relationships: [];
2169
- };
2170
- exact_sync_state: {
2171
- Row: {
2172
- connection_id: string;
2173
- last_error: string | null;
2174
- last_modified_cursor: string | null;
2175
- last_synced_at: string | null;
2176
- status: string;
2177
- updated_at: string;
2178
- };
2179
- Insert: {
2180
- connection_id: string;
2181
- last_error?: string | null;
2182
- last_modified_cursor?: string | null;
2183
- last_synced_at?: string | null;
2184
- status?: string;
2185
- updated_at?: string;
2186
- };
2187
- Update: {
2188
- connection_id?: string;
2189
- last_error?: string | null;
2190
- last_modified_cursor?: string | null;
2191
- last_synced_at?: string | null;
2192
- status?: string;
2193
- updated_at?: string;
2194
- };
2195
- Relationships: [];
2196
- };
2197
- floricode_connection_settings: {
2198
- Row: {
2199
- catalog_key: string | null;
2200
- catalog_url: string;
2201
- created_at: string;
2202
- id: number;
2203
- last_meta: import("../../integrations/supabase/types").Json | null;
2204
- last_test_at: string | null;
2205
- last_test_error: string | null;
2206
- last_test_ok: boolean | null;
2207
- updated_at: string;
2208
- };
2209
- Insert: {
2210
- catalog_key?: string | null;
2211
- catalog_url?: string;
2212
- created_at?: string;
2213
- id?: number;
2214
- last_meta?: import("../../integrations/supabase/types").Json | null;
2215
- last_test_at?: string | null;
2216
- last_test_error?: string | null;
2217
- last_test_ok?: boolean | null;
2218
- updated_at?: string;
2219
- };
2220
- Update: {
2221
- catalog_key?: string | null;
2222
- catalog_url?: string;
2223
- created_at?: string;
2224
- id?: number;
2225
- last_meta?: import("../../integrations/supabase/types").Json | null;
2226
- last_test_at?: string | null;
2227
- last_test_error?: string | null;
2228
- last_test_ok?: boolean | null;
2229
- updated_at?: string;
2230
- };
2231
- Relationships: [];
2232
- };
2233
- floricode_records: {
2234
- Row: {
2235
- change_date_time: string | null;
2236
- data: import("../../integrations/supabase/types").Json;
2237
- last_synced_at: string;
2238
- record_id: string;
2239
- resource: string;
2240
- };
2241
- Insert: {
2242
- change_date_time?: string | null;
2243
- data?: import("../../integrations/supabase/types").Json;
2244
- last_synced_at?: string;
2245
- record_id: string;
2246
- resource: string;
2247
- };
2248
- Update: {
2249
- change_date_time?: string | null;
2250
- data?: import("../../integrations/supabase/types").Json;
2251
- last_synced_at?: string;
2252
- record_id?: string;
2253
- resource?: string;
2254
- };
2255
- Relationships: [];
2256
- };
2257
- floricode_sync_state: {
2258
- Row: {
2259
- error_message: string | null;
2260
- last_change_date_time: string | null;
2261
- last_sequence_number: number;
2262
- last_sync_at: string | null;
2263
- resource: string;
2264
- status: string;
2265
- updated_at: string;
2266
- };
2267
- Insert: {
2268
- error_message?: string | null;
2269
- last_change_date_time?: string | null;
2270
- last_sequence_number?: number;
2271
- last_sync_at?: string | null;
2272
- resource: string;
2273
- status?: string;
2274
- updated_at?: string;
2275
- };
2276
- Update: {
2277
- error_message?: string | null;
2278
- last_change_date_time?: string | null;
2279
- last_sequence_number?: number;
2280
- last_sync_at?: string | null;
2281
- resource?: string;
2282
- status?: string;
2283
- updated_at?: string;
2284
- };
2285
- Relationships: [];
2286
- };
2287
- floriday_connections: {
2288
- Row: {
2289
- access_token: string | null;
2290
- api_key: string;
2291
- client_id: string;
2292
- client_secret: string;
2293
- created_at: string;
2294
- customers_endpoint: string | null;
2295
- environment: string;
2296
- gln_code: string | null;
2297
- id: string;
2298
- is_active: boolean;
2299
- label: string;
2300
- organization_name: string | null;
2301
- preferred_warehouse_id: string | null;
2302
- preferred_warehouse_name: string | null;
2303
- token_expires_at: string | null;
2304
- updated_at: string;
2305
- };
2306
- Insert: {
2307
- access_token?: string | null;
2308
- api_key: string;
2309
- client_id: string;
2310
- client_secret: string;
2311
- created_at?: string;
2312
- customers_endpoint?: string | null;
2313
- environment: string;
2314
- gln_code?: string | null;
2315
- id?: string;
2316
- is_active?: boolean;
2317
- label?: string;
2318
- organization_name?: string | null;
2319
- preferred_warehouse_id?: string | null;
2320
- preferred_warehouse_name?: string | null;
2321
- token_expires_at?: string | null;
2322
- updated_at?: string;
2323
- };
2324
- Update: {
2325
- access_token?: string | null;
2326
- api_key?: string;
2327
- client_id?: string;
2328
- client_secret?: string;
2329
- created_at?: string;
2330
- customers_endpoint?: string | null;
2331
- environment?: string;
2332
- gln_code?: string | null;
2333
- id?: string;
2334
- is_active?: boolean;
2335
- label?: string;
2336
- organization_name?: string | null;
2337
- preferred_warehouse_id?: string | null;
2338
- preferred_warehouse_name?: string | null;
2339
- token_expires_at?: string | null;
2340
- updated_at?: string;
2341
- };
2342
- Relationships: [];
2343
- };
2344
- floriday_customers_cache: {
2345
- Row: {
2346
- connection_id: string | null;
2347
- data: import("../../integrations/supabase/types").Json;
2348
- fetched_at: string;
2349
- organization_id: string;
2350
- };
2351
- Insert: {
2352
- connection_id?: string | null;
2353
- data?: import("../../integrations/supabase/types").Json;
2354
- fetched_at?: string;
2355
- organization_id: string;
2356
- };
2357
- Update: {
2358
- connection_id?: string | null;
2359
- data?: import("../../integrations/supabase/types").Json;
2360
- fetched_at?: string;
2361
- organization_id?: string;
2362
- };
2363
- Relationships: [{
2364
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
2365
- columns: ["connection_id"];
2366
- isOneToOne: false;
2367
- referencedRelation: "floriday_connections";
2368
- referencedColumns: ["id"];
2369
- }];
2370
- };
2371
- floriday_network_cache: {
2372
- Row: {
2373
- city: string | null;
2374
- connection_id: string;
2375
- country: string | null;
2376
- data: import("../../integrations/supabase/types").Json;
2377
- fetched_at: string;
2378
- gln: string | null;
2379
- organization_id: string;
2380
- organization_name: string | null;
2381
- };
2382
- Insert: {
2383
- city?: string | null;
2384
- connection_id: string;
2385
- country?: string | null;
2386
- data?: import("../../integrations/supabase/types").Json;
2387
- fetched_at?: string;
2388
- gln?: string | null;
2389
- organization_id: string;
2390
- organization_name?: string | null;
2391
- };
2392
- Update: {
2393
- city?: string | null;
2394
- connection_id?: string;
2395
- country?: string | null;
2396
- data?: import("../../integrations/supabase/types").Json;
2397
- fetched_at?: string;
2398
- gln?: string | null;
2399
- organization_id?: string;
2400
- organization_name?: string | null;
2401
- };
2402
- Relationships: [];
2403
- };
2404
- floriday_network_sync_state: {
2405
- Row: {
2406
- connection_id: string;
2407
- last_error: string | null;
2408
- last_sequence_number: number;
2409
- last_synced_at: string | null;
2410
- updated_at: string;
2411
- };
2412
- Insert: {
2413
- connection_id: string;
2414
- last_error?: string | null;
2415
- last_sequence_number?: number;
2416
- last_synced_at?: string | null;
2417
- updated_at?: string;
2418
- };
2419
- Update: {
2420
- connection_id?: string;
2421
- last_error?: string | null;
2422
- last_sequence_number?: number;
2423
- last_synced_at?: string | null;
2424
- updated_at?: string;
2425
- };
2426
- Relationships: [];
2427
- };
2428
- floriday_settings: {
2429
- Row: {
2430
- active_environment: string;
2431
- id: number;
2432
- updated_at: string;
2433
- };
2434
- Insert: {
2435
- active_environment?: string;
2436
- id?: number;
2437
- updated_at?: string;
2438
- };
2439
- Update: {
2440
- active_environment?: string;
2441
- id?: number;
2442
- updated_at?: string;
2443
- };
2444
- Relationships: [];
2445
- };
2446
- inventory_settings: {
2447
- Row: {
2448
- created_at: string;
2449
- hierarchy_levels: string[];
2450
- id: string;
2451
- updated_at: string;
2452
- visible_columns: string[];
2453
- };
2454
- Insert: {
2455
- created_at?: string;
2456
- hierarchy_levels?: string[];
2457
- id?: string;
2458
- updated_at?: string;
2459
- visible_columns?: string[];
2460
- };
2461
- Update: {
2462
- created_at?: string;
2463
- hierarchy_levels?: string[];
2464
- id?: string;
2465
- updated_at?: string;
2466
- visible_columns?: string[];
2467
- };
2468
- Relationships: [];
2469
- };
2470
- locations: {
2471
- Row: {
2472
- created_at: string;
2473
- id: string;
2474
- name: string;
2475
- sort_order: number;
2476
- updated_at: string;
2477
- };
2478
- Insert: {
2479
- created_at?: string;
2480
- id?: string;
2481
- name: string;
2482
- sort_order?: number;
2483
- updated_at?: string;
2484
- };
2485
- Update: {
2486
- created_at?: string;
2487
- id?: string;
2488
- name?: string;
2489
- sort_order?: number;
2490
- updated_at?: string;
2491
- };
2492
- Relationships: [];
2493
- };
2494
- notifications: {
2495
- Row: {
2496
- created_at: string;
2497
- id: string;
2498
- message: string | null;
2499
- read: boolean;
2500
- title: string;
2501
- updated_at: string;
2502
- user_id: string;
2503
- };
2504
- Insert: {
2505
- created_at?: string;
2506
- id?: string;
2507
- message?: string | null;
2508
- read?: boolean;
2509
- title: string;
2510
- updated_at?: string;
2511
- user_id: string;
2512
- };
2513
- Update: {
2514
- created_at?: string;
2515
- id?: string;
2516
- message?: string | null;
2517
- read?: boolean;
2518
- title?: string;
2519
- updated_at?: string;
2520
- user_id?: string;
2521
- };
2522
- Relationships: [];
2523
- };
2524
- order_field_options: {
2525
- Row: {
2526
- created_at: string;
2527
- field_setting_id: string;
2528
- id: string;
2529
- label: string;
2530
- sort_order: number;
2531
- };
2532
- Insert: {
2533
- created_at?: string;
2534
- field_setting_id: string;
2535
- id?: string;
2536
- label: string;
2537
- sort_order?: number;
2538
- };
2539
- Update: {
2540
- created_at?: string;
2541
- field_setting_id?: string;
2542
- id?: string;
2543
- label?: string;
2544
- sort_order?: number;
2545
- };
2546
- Relationships: [{
2547
- foreignKeyName: "order_field_options_field_setting_id_fkey";
2548
- columns: ["field_setting_id"];
2549
- isOneToOne: false;
2550
- referencedRelation: "order_field_settings";
2551
- referencedColumns: ["id"];
2552
- }];
2553
- };
2554
- order_field_settings: {
2555
- Row: {
2556
- active: boolean;
2557
- created_at: string;
2558
- field_key: string;
2559
- field_label: string;
2560
- field_type: string;
2561
- id: string;
2562
- is_custom: boolean;
2563
- sort_order: number;
2564
- updated_at: string;
2565
- };
2566
- Insert: {
2567
- active?: boolean;
2568
- created_at?: string;
2569
- field_key: string;
2570
- field_label: string;
2571
- field_type?: string;
2572
- id?: string;
2573
- is_custom?: boolean;
2574
- sort_order?: number;
2575
- updated_at?: string;
2576
- };
2577
- Update: {
2578
- active?: boolean;
2579
- created_at?: string;
2580
- field_key?: string;
2581
- field_label?: string;
2582
- field_type?: string;
2583
- id?: string;
2584
- is_custom?: boolean;
2585
- sort_order?: number;
2586
- updated_at?: string;
2587
- };
2588
- Relationships: [];
2589
- };
2590
- order_items: {
2591
- Row: {
2592
- created_at: string;
2593
- id: string;
2594
- order_id: string;
2595
- product_id: string | null;
2596
- product_name: string;
2597
- quantity: number;
2598
- unit: string;
2599
- unit_price: number | null;
2600
- };
2601
- Insert: {
2602
- created_at?: string;
2603
- id?: string;
2604
- order_id: string;
2605
- product_id?: string | null;
2606
- product_name: string;
2607
- quantity?: number;
2608
- unit?: string;
2609
- unit_price?: number | null;
2610
- };
2611
- Update: {
2612
- created_at?: string;
2613
- id?: string;
2614
- order_id?: string;
2615
- product_id?: string | null;
2616
- product_name?: string;
2617
- quantity?: number;
2618
- unit?: string;
2619
- unit_price?: number | null;
2620
- };
2621
- Relationships: [{
2622
- foreignKeyName: "order_items_order_id_fkey";
2623
- columns: ["order_id"];
2624
- isOneToOne: false;
2625
- referencedRelation: "orders";
2626
- referencedColumns: ["id"];
2627
- }, {
2628
- foreignKeyName: "order_items_product_id_fkey";
2629
- columns: ["product_id"];
2630
- isOneToOne: false;
2631
- referencedRelation: "products";
2632
- referencedColumns: ["id"];
2633
- }];
2634
- };
2635
- orders: {
2636
- Row: {
2637
- created_at: string;
2638
- custom_fields: import("../../integrations/supabase/types").Json;
2639
- customer_id: string | null;
2640
- customer_name: string;
2641
- deleted_at: string | null;
2642
- delivery_date: string;
2643
- id: string;
2644
- notes: string | null;
2645
- order_date: string;
2646
- order_number: string;
2647
- status: string;
2648
- total: string;
2649
- updated_at: string;
2650
- };
2651
- Insert: {
2652
- created_at?: string;
2653
- custom_fields?: import("../../integrations/supabase/types").Json;
2654
- customer_id?: string | null;
2655
- customer_name?: string;
2656
- deleted_at?: string | null;
2657
- delivery_date: string;
2658
- id?: string;
2659
- notes?: string | null;
2660
- order_date?: string;
2661
- order_number: string;
2662
- status?: string;
2663
- total?: string;
2664
- updated_at?: string;
2665
- };
2666
- Update: {
2667
- created_at?: string;
2668
- custom_fields?: import("../../integrations/supabase/types").Json;
2669
- customer_id?: string | null;
2670
- customer_name?: string;
2671
- deleted_at?: string | null;
2672
- delivery_date?: string;
2673
- id?: string;
2674
- notes?: string | null;
2675
- order_date?: string;
2676
- order_number?: string;
2677
- status?: string;
2678
- total?: string;
2679
- updated_at?: string;
2680
- };
2681
- Relationships: [{
2682
- foreignKeyName: "orders_customer_id_fkey";
2683
- columns: ["customer_id"];
2684
- isOneToOne: false;
2685
- referencedRelation: "customers";
2686
- referencedColumns: ["id"];
2687
- }];
2688
- };
2689
- product_categories: {
2690
- Row: {
2691
- color: string;
2692
- created_at: string;
2693
- icon: string | null;
2694
- id: string;
2695
- name: string;
2696
- slug: string;
2697
- sort_order: number;
2698
- updated_at: string;
2699
- };
2700
- Insert: {
2701
- color?: string;
2702
- created_at?: string;
2703
- icon?: string | null;
2704
- id?: string;
2705
- name: string;
2706
- slug: string;
2707
- sort_order?: number;
2708
- updated_at?: string;
2709
- };
2710
- Update: {
2711
- color?: string;
2712
- created_at?: string;
2713
- icon?: string | null;
2714
- id?: string;
2715
- name?: string;
2716
- slug?: string;
2717
- sort_order?: number;
2718
- updated_at?: string;
2719
- };
2720
- Relationships: [];
2721
- };
2722
- product_field_options: {
2723
- Row: {
2724
- created_at: string;
2725
- field_setting_id: string;
2726
- id: string;
2727
- label: string;
2728
- sort_order: number;
2729
- };
2730
- Insert: {
2731
- created_at?: string;
2732
- field_setting_id: string;
2733
- id?: string;
2734
- label: string;
2735
- sort_order?: number;
2736
- };
2737
- Update: {
2738
- created_at?: string;
2739
- field_setting_id?: string;
2740
- id?: string;
2741
- label?: string;
2742
- sort_order?: number;
2743
- };
2744
- Relationships: [{
2745
- foreignKeyName: "product_field_options_field_setting_id_fkey";
2746
- columns: ["field_setting_id"];
2747
- isOneToOne: false;
2748
- referencedRelation: "product_field_settings";
2749
- referencedColumns: ["id"];
2750
- }];
2751
- };
2752
- product_field_settings: {
2753
- Row: {
2754
- active_per_category: import("../../integrations/supabase/types").Json;
2755
- created_at: string;
2756
- field_key: string;
2757
- field_label: string;
2758
- field_type: string;
2759
- id: string;
2760
- is_custom: boolean;
2761
- sort_order: number;
2762
- updated_at: string;
2763
- };
2764
- Insert: {
2765
- active_per_category?: import("../../integrations/supabase/types").Json;
2766
- created_at?: string;
2767
- field_key: string;
2768
- field_label: string;
2769
- field_type?: string;
2770
- id?: string;
2771
- is_custom?: boolean;
2772
- sort_order?: number;
2773
- updated_at?: string;
2774
- };
2775
- Update: {
2776
- active_per_category?: import("../../integrations/supabase/types").Json;
2777
- created_at?: string;
2778
- field_key?: string;
2779
- field_label?: string;
2780
- field_type?: string;
2781
- id?: string;
2782
- is_custom?: boolean;
2783
- sort_order?: number;
2784
- updated_at?: string;
2785
- };
2786
- Relationships: [];
2787
- };
2788
- products: {
2789
- Row: {
2790
- barcode: string | null;
2791
- batch: string;
2792
- created_at: string;
2793
- custom_fields: import("../../integrations/supabase/types").Json;
2794
- id: string;
2795
- image_url: string | null;
2796
- incoming_quantity: number;
2797
- location: string;
2798
- min_quantity: number;
2799
- product: string;
2800
- product_type: string;
2801
- purchase_price: number | null;
2802
- quantity: number;
2803
- sale_price: number | null;
2804
- unit: string;
2805
- updated_at: string;
2806
- weight: string | null;
2807
- };
2808
- Insert: {
2809
- barcode?: string | null;
2810
- batch: string;
2811
- created_at?: string;
2812
- custom_fields?: import("../../integrations/supabase/types").Json;
2813
- id?: string;
2814
- image_url?: string | null;
2815
- incoming_quantity?: number;
2816
- location: string;
2817
- min_quantity?: number;
2818
- product: string;
2819
- product_type?: string;
2820
- purchase_price?: number | null;
2821
- quantity?: number;
2822
- sale_price?: number | null;
2823
- unit?: string;
2824
- updated_at?: string;
2825
- weight?: string | null;
2826
- };
2827
- Update: {
2828
- barcode?: string | null;
2829
- batch?: string;
2830
- created_at?: string;
2831
- custom_fields?: import("../../integrations/supabase/types").Json;
2832
- id?: string;
2833
- image_url?: string | null;
2834
- incoming_quantity?: number;
2835
- location?: string;
2836
- min_quantity?: number;
2837
- product?: string;
2838
- product_type?: string;
2839
- purchase_price?: number | null;
2840
- quantity?: number;
2841
- sale_price?: number | null;
2842
- unit?: string;
2843
- updated_at?: string;
2844
- weight?: string | null;
2845
- };
2846
- Relationships: [];
2847
- };
2848
- profiles: {
2849
- Row: {
2850
- created_at: string;
2851
- display_name: string | null;
2852
- email: string | null;
2853
- id: string;
2854
- notification_preferences: import("../../integrations/supabase/types").Json;
2855
- updated_at: string;
2856
- };
2857
- Insert: {
2858
- created_at?: string;
2859
- display_name?: string | null;
2860
- email?: string | null;
2861
- id: string;
2862
- notification_preferences?: import("../../integrations/supabase/types").Json;
2863
- updated_at?: string;
2864
- };
2865
- Update: {
2866
- created_at?: string;
2867
- display_name?: string | null;
2868
- email?: string | null;
2869
- id?: string;
2870
- notification_preferences?: import("../../integrations/supabase/types").Json;
2871
- updated_at?: string;
2872
- };
2873
- Relationships: [];
2874
- };
2875
- purchase_order_items: {
2876
- Row: {
2877
- created_at: string;
2878
- id: string;
2879
- product_id: string | null;
2880
- product_type: string;
2881
- purchase_order_id: string;
2882
- quantity: number;
2883
- };
2884
- Insert: {
2885
- created_at?: string;
2886
- id?: string;
2887
- product_id?: string | null;
2888
- product_type?: string;
2889
- purchase_order_id: string;
2890
- quantity?: number;
2891
- };
2892
- Update: {
2893
- created_at?: string;
2894
- id?: string;
2895
- product_id?: string | null;
2896
- product_type?: string;
2897
- purchase_order_id?: string;
2898
- quantity?: number;
2899
- };
2900
- Relationships: [{
2901
- foreignKeyName: "purchase_order_items_product_id_fkey";
2902
- columns: ["product_id"];
2903
- isOneToOne: false;
2904
- referencedRelation: "products";
2905
- referencedColumns: ["id"];
2906
- }, {
2907
- foreignKeyName: "purchase_order_items_purchase_order_id_fkey";
2908
- columns: ["purchase_order_id"];
2909
- isOneToOne: false;
2910
- referencedRelation: "purchase_orders";
2911
- referencedColumns: ["id"];
2912
- }];
2913
- };
2914
- purchase_orders: {
2915
- Row: {
2916
- created_at: string;
2917
- expected_delivery_date: string;
2918
- id: string;
2919
- location_id: string | null;
2920
- notes: string | null;
2921
- order_number: string;
2922
- status: string;
2923
- supplier_id: string | null;
2924
- supplier_name: string;
2925
- updated_at: string;
2926
- };
2927
- Insert: {
2928
- created_at?: string;
2929
- expected_delivery_date: string;
2930
- id?: string;
2931
- location_id?: string | null;
2932
- notes?: string | null;
2933
- order_number: string;
2934
- status?: string;
2935
- supplier_id?: string | null;
2936
- supplier_name?: string;
2937
- updated_at?: string;
2938
- };
2939
- Update: {
2940
- created_at?: string;
2941
- expected_delivery_date?: string;
2942
- id?: string;
2943
- location_id?: string | null;
2944
- notes?: string | null;
2945
- order_number?: string;
2946
- status?: string;
2947
- supplier_id?: string | null;
2948
- supplier_name?: string;
2949
- updated_at?: string;
2950
- };
2951
- Relationships: [{
2952
- foreignKeyName: "purchase_orders_location_id_fkey";
2953
- columns: ["location_id"];
2954
- isOneToOne: false;
2955
- referencedRelation: "locations";
2956
- referencedColumns: ["id"];
2957
- }, {
2958
- foreignKeyName: "purchase_orders_supplier_id_fkey";
2959
- columns: ["supplier_id"];
2960
- isOneToOne: false;
2961
- referencedRelation: "suppliers";
2962
- referencedColumns: ["id"];
2963
- }];
2964
- };
2965
- supplier_products: {
2966
- Row: {
2967
- article_number: string | null;
2968
- created_at: string;
2969
- id: string;
2970
- name: string;
2971
- notes: string | null;
2972
- pot_size: string | null;
2973
- price: number | null;
2974
- quantity: number | null;
2975
- supplier_id: string;
2976
- unit: string;
2977
- updated_at: string;
2978
- };
2979
- Insert: {
2980
- article_number?: string | null;
2981
- created_at?: string;
2982
- id?: string;
2983
- name: string;
2984
- notes?: string | null;
2985
- pot_size?: string | null;
2986
- price?: number | null;
2987
- quantity?: number | null;
2988
- supplier_id: string;
2989
- unit?: string;
2990
- updated_at?: string;
2991
- };
2992
- Update: {
2993
- article_number?: string | null;
2994
- created_at?: string;
2995
- id?: string;
2996
- name?: string;
2997
- notes?: string | null;
2998
- pot_size?: string | null;
2999
- price?: number | null;
3000
- quantity?: number | null;
3001
- supplier_id?: string;
3002
- unit?: string;
3003
- updated_at?: string;
3004
- };
3005
- Relationships: [{
3006
- foreignKeyName: "supplier_products_supplier_id_fkey";
3007
- columns: ["supplier_id"];
3008
- isOneToOne: false;
3009
- referencedRelation: "suppliers";
3010
- referencedColumns: ["id"];
3011
- }];
3012
- };
3013
- suppliers: {
3014
- Row: {
3015
- address: string | null;
3016
- column_mappings: import("../../integrations/supabase/types").Json | null;
3017
- contact_person: string | null;
3018
- created_at: string;
3019
- default_product_type: string;
3020
- email: string | null;
3021
- id: string;
3022
- imported_file_name: string | null;
3023
- name: string;
3024
- notes: string | null;
3025
- phone: string | null;
3026
- updated_at: string;
3027
- };
3028
- Insert: {
3029
- address?: string | null;
3030
- column_mappings?: import("../../integrations/supabase/types").Json | null;
3031
- contact_person?: string | null;
3032
- created_at?: string;
3033
- default_product_type?: string;
3034
- email?: string | null;
3035
- id?: string;
3036
- imported_file_name?: string | null;
3037
- name: string;
3038
- notes?: string | null;
3039
- phone?: string | null;
3040
- updated_at?: string;
3041
- };
3042
- Update: {
3043
- address?: string | null;
3044
- column_mappings?: import("../../integrations/supabase/types").Json | null;
3045
- contact_person?: string | null;
3046
- created_at?: string;
3047
- default_product_type?: string;
3048
- email?: string | null;
3049
- id?: string;
3050
- imported_file_name?: string | null;
3051
- name?: string;
3052
- notes?: string | null;
3053
- phone?: string | null;
3054
- updated_at?: string;
3055
- };
3056
- Relationships: [];
3057
- };
3058
- trade_item_drafts: {
3059
- Row: {
3060
- connection_id: string | null;
3061
- created_at: string;
3062
- data: import("../../integrations/supabase/types").Json;
3063
- id: string;
3064
- updated_at: string;
3065
- user_id: string;
3066
- };
3067
- Insert: {
3068
- connection_id?: string | null;
3069
- created_at?: string;
3070
- data?: import("../../integrations/supabase/types").Json;
3071
- id?: string;
3072
- updated_at?: string;
3073
- user_id: string;
3074
- };
3075
- Update: {
3076
- connection_id?: string | null;
3077
- created_at?: string;
3078
- data?: import("../../integrations/supabase/types").Json;
3079
- id?: string;
3080
- updated_at?: string;
3081
- user_id?: string;
3082
- };
3083
- Relationships: [];
3084
- };
3085
- user_roles: {
3086
- Row: {
3087
- created_at: string;
3088
- id: string;
3089
- role: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
3090
- user_id: string;
3091
- };
3092
- Insert: {
3093
- created_at?: string;
3094
- id?: string;
3095
- role: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
3096
- user_id: string;
3097
- };
3098
- Update: {
3099
- created_at?: string;
3100
- id?: string;
3101
- role?: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
3102
- user_id?: string;
3103
- };
3104
- Relationships: [{
3105
- foreignKeyName: "user_roles_user_id_fkey";
3106
- columns: ["user_id"];
3107
- isOneToOne: false;
3108
- referencedRelation: "profiles";
3109
- referencedColumns: ["id"];
3110
- }];
3111
- };
3112
- };
3113
- Views: { [_ in never]: never; };
3114
- Functions: {
3115
- has_role: {
3116
- Args: {
3117
- _role: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
3118
- _user_id: string;
3119
- };
3120
- Returns: boolean;
3121
- };
3122
- schedule_floriday_network_sync: {
3123
- Args: {
3124
- p_apikey: string;
3125
- p_url: string;
3126
- };
3127
- Returns: number;
3128
- };
3129
- schedule_floriday_token_refresh: {
3130
- Args: {
3131
- p_apikey: string;
3132
- p_url: string;
3133
- };
3134
- Returns: number;
3135
- };
3136
- show_limit: {
3137
- Args: never;
3138
- Returns: number;
3139
- };
3140
- show_trgm: {
3141
- Args: {
3142
- "": string;
3143
- };
3144
- Returns: string[];
3145
- };
3146
- };
3147
- Enums: {
3148
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
3149
- exact_env: "staging" | "live";
3150
- };
3151
- CompositeTypes: { [_ in never]: never; };
3152
- }, {
3153
- PostgrestVersion: "14.5";
3154
- }>;
3155
- userId: string;
3156
- claims: import("@supabase/auth-js").User;
3157
- }, undefined, undefined, undefined>], (data: unknown) => {
3158
- from?: string | undefined;
3159
- to?: string | undefined;
3160
- search?: string | undefined;
3161
- status?: string | undefined;
3162
- }, Promise<{
3163
- csv: string;
3164
- filename: string;
3165
- }>>;
3166
- export declare const createSalesOrder: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
3167
- supabase: import("@supabase/supabase-js").SupabaseClient<import("../../integrations/supabase/types").Database, "public", "public", {
3168
- Tables: {
3169
- bugs: {
3170
- Row: {
3171
- attachment_url: string | null;
3172
- created_at: string;
3173
- description: string;
3174
- id: string;
3175
- priority: string;
3176
- status: string;
3177
- title: string;
3178
- updated_at: string;
3179
- user_id: string;
3180
- };
3181
- Insert: {
3182
- attachment_url?: string | null;
3183
- created_at?: string;
3184
- description: string;
3185
- id?: string;
3186
- priority?: string;
3187
- status?: string;
3188
- title: string;
3189
- updated_at?: string;
3190
- user_id: string;
3191
- };
3192
- Update: {
3193
- attachment_url?: string | null;
3194
- created_at?: string;
3195
- description?: string;
3196
- id?: string;
3197
- priority?: string;
3198
- status?: string;
3199
- title?: string;
3200
- updated_at?: string;
3201
- user_id?: string;
3202
- };
3203
- Relationships: [];
3204
- };
3205
- collections: {
3206
- Row: {
3207
- created_at: string;
3208
- created_by: string | null;
3209
- id: string;
3210
- name: string;
3211
- updated_at: string;
3212
- };
3213
- Insert: {
3214
- created_at?: string;
3215
- created_by?: string | null;
3216
- id?: string;
3217
- name: string;
3218
- updated_at?: string;
3219
- };
3220
- Update: {
3221
- created_at?: string;
3222
- created_by?: string | null;
3223
- id?: string;
3224
- name?: string;
3225
- updated_at?: string;
3226
- };
3227
- Relationships: [];
3228
- };
3229
- customer_audit_log: {
3230
- Row: {
3231
- action: string;
3232
- changes: import("../../integrations/supabase/types").Json;
3233
- created_at: string;
3234
- customer_id: string;
3235
- id: string;
3236
- user_id: string | null;
3237
- };
3238
- Insert: {
3239
- action: string;
3240
- changes?: import("../../integrations/supabase/types").Json;
3241
- created_at?: string;
3242
- customer_id: string;
3243
- id?: string;
3244
- user_id?: string | null;
3245
- };
3246
- Update: {
3247
- action?: string;
3248
- changes?: import("../../integrations/supabase/types").Json;
3249
- created_at?: string;
3250
- customer_id?: string;
3251
- id?: string;
3252
- user_id?: string | null;
3253
- };
3254
- Relationships: [{
3255
- foreignKeyName: "customer_audit_log_customer_id_fkey";
3256
- columns: ["customer_id"];
3257
- isOneToOne: false;
3258
- referencedRelation: "customers";
3259
- referencedColumns: ["id"];
3260
- }];
3261
- };
3262
- customer_contacts: {
3263
- Row: {
3264
- created_at: string;
3265
- customer_id: string;
3266
- email: string | null;
3267
- floriday_contact_id: string | null;
3268
- full_name: string;
3269
- id: string;
3270
- is_active: boolean;
3271
- job_title: string | null;
3272
- phone: string | null;
3273
- photo_url: string | null;
3274
- raw: import("../../integrations/supabase/types").Json | null;
3275
- updated_at: string;
3276
- };
3277
- Insert: {
3278
- created_at?: string;
3279
- customer_id: string;
3280
- email?: string | null;
3281
- floriday_contact_id?: string | null;
3282
- full_name: string;
3283
- id?: string;
3284
- is_active?: boolean;
3285
- job_title?: string | null;
3286
- phone?: string | null;
3287
- photo_url?: string | null;
3288
- raw?: import("../../integrations/supabase/types").Json | null;
3289
- updated_at?: string;
3290
- };
3291
- Update: {
3292
- created_at?: string;
3293
- customer_id?: string;
3294
- email?: string | null;
3295
- floriday_contact_id?: string | null;
3296
- full_name?: string;
3297
- id?: string;
3298
- is_active?: boolean;
3299
- job_title?: string | null;
3300
- phone?: string | null;
3301
- photo_url?: string | null;
3302
- raw?: import("../../integrations/supabase/types").Json | null;
3303
- updated_at?: string;
3304
- };
3305
- Relationships: [{
3306
- foreignKeyName: "customer_contacts_customer_id_fkey";
3307
- columns: ["customer_id"];
3308
- isOneToOne: false;
3309
- referencedRelation: "customers";
3310
- referencedColumns: ["id"];
3311
- }];
3312
- };
3313
- customer_delivery_locations: {
3314
- Row: {
3315
- address_line: string | null;
3316
- city: string | null;
3317
- country: string | null;
3318
- created_at: string;
3319
- customer_id: string;
3320
- floriday_location_id: string | null;
3321
- gln: string | null;
3322
- id: string;
3323
- is_primary: boolean;
3324
- name: string | null;
3325
- postal_code: string | null;
3326
- raw: import("../../integrations/supabase/types").Json | null;
3327
- updated_at: string;
3328
- };
3329
- Insert: {
3330
- address_line?: string | null;
3331
- city?: string | null;
3332
- country?: string | null;
3333
- created_at?: string;
3334
- customer_id: string;
3335
- floriday_location_id?: string | null;
3336
- gln?: string | null;
3337
- id?: string;
3338
- is_primary?: boolean;
3339
- name?: string | null;
3340
- postal_code?: string | null;
3341
- raw?: import("../../integrations/supabase/types").Json | null;
3342
- updated_at?: string;
3343
- };
3344
- Update: {
3345
- address_line?: string | null;
3346
- city?: string | null;
3347
- country?: string | null;
3348
- created_at?: string;
3349
- customer_id?: string;
3350
- floriday_location_id?: string | null;
3351
- gln?: string | null;
3352
- id?: string;
3353
- is_primary?: boolean;
3354
- name?: string | null;
3355
- postal_code?: string | null;
3356
- raw?: import("../../integrations/supabase/types").Json | null;
3357
- updated_at?: string;
3358
- };
3359
- Relationships: [{
3360
- foreignKeyName: "customer_delivery_locations_customer_id_fkey";
3361
- columns: ["customer_id"];
3362
- isOneToOne: false;
3363
- referencedRelation: "customers";
3364
- referencedColumns: ["id"];
3365
- }];
3366
- };
3367
- customer_field_options: {
3368
- Row: {
3369
- created_at: string;
3370
- field_setting_id: string;
3371
- id: string;
3372
- label: string;
3373
- sort_order: number;
3374
- };
3375
- Insert: {
3376
- created_at?: string;
3377
- field_setting_id: string;
3378
- id?: string;
3379
- label: string;
3380
- sort_order?: number;
3381
- };
3382
- Update: {
3383
- created_at?: string;
3384
- field_setting_id?: string;
3385
- id?: string;
3386
- label?: string;
3387
- sort_order?: number;
3388
- };
3389
- Relationships: [{
3390
- foreignKeyName: "customer_field_options_field_setting_id_fkey";
3391
- columns: ["field_setting_id"];
3392
- isOneToOne: false;
3393
- referencedRelation: "customer_field_settings";
3394
- referencedColumns: ["id"];
3395
- }];
3396
- };
3397
- customer_field_settings: {
3398
- Row: {
3399
- created_at: string;
3400
- field_key: string;
3401
- field_label: string;
3402
- field_type: string;
3403
- id: string;
3404
- is_custom: boolean;
3405
- sort_order: number;
3406
- updated_at: string;
3407
- };
3408
- Insert: {
3409
- created_at?: string;
3410
- field_key: string;
3411
- field_label: string;
3412
- field_type?: string;
3413
- id?: string;
3414
- is_custom?: boolean;
3415
- sort_order?: number;
3416
- updated_at?: string;
3417
- };
3418
- Update: {
3419
- created_at?: string;
3420
- field_key?: string;
3421
- field_label?: string;
3422
- field_type?: string;
3423
- id?: string;
3424
- is_custom?: boolean;
3425
- sort_order?: number;
3426
- updated_at?: string;
3427
- };
3428
- Relationships: [];
3429
- };
3430
- customer_selected_assortment: {
3431
- Row: {
3432
- article_number: string | null;
3433
- created_at: string;
3434
- customer_id: string;
3435
- floriday_item_id: string | null;
3436
- id: string;
3437
- price: number | null;
3438
- product_group: string | null;
3439
- product_name: string;
3440
- raw: import("../../integrations/supabase/types").Json | null;
3441
- unit: string | null;
3442
- updated_at: string;
3443
- };
3444
- Insert: {
3445
- article_number?: string | null;
3446
- created_at?: string;
3447
- customer_id: string;
3448
- floriday_item_id?: string | null;
3449
- id?: string;
3450
- price?: number | null;
3451
- product_group?: string | null;
3452
- product_name: string;
3453
- raw?: import("../../integrations/supabase/types").Json | null;
3454
- unit?: string | null;
3455
- updated_at?: string;
3456
- };
3457
- Update: {
3458
- article_number?: string | null;
3459
- created_at?: string;
3460
- customer_id?: string;
3461
- floriday_item_id?: string | null;
3462
- id?: string;
3463
- price?: number | null;
3464
- product_group?: string | null;
3465
- product_name?: string;
3466
- raw?: import("../../integrations/supabase/types").Json | null;
3467
- unit?: string | null;
3468
- updated_at?: string;
3469
- };
3470
- Relationships: [{
3471
- foreignKeyName: "customer_selected_assortment_customer_id_fkey";
3472
- columns: ["customer_id"];
3473
- isOneToOne: false;
3474
- referencedRelation: "customers";
3475
- referencedColumns: ["id"];
3476
- }];
3477
- };
3478
- customer_trade_settings: {
3479
- Row: {
3480
- category: string;
3481
- created_at: string;
3482
- customer_id: string;
3483
- id: string;
3484
- is_active: boolean;
3485
- raw: import("../../integrations/supabase/types").Json | null;
3486
- setting_key: string;
3487
- setting_label: string;
3488
- updated_at: string;
3489
- };
3490
- Insert: {
3491
- category?: string;
3492
- created_at?: string;
3493
- customer_id: string;
3494
- id?: string;
3495
- is_active?: boolean;
3496
- raw?: import("../../integrations/supabase/types").Json | null;
3497
- setting_key: string;
3498
- setting_label: string;
3499
- updated_at?: string;
3500
- };
3501
- Update: {
3502
- category?: string;
3503
- created_at?: string;
3504
- customer_id?: string;
3505
- id?: string;
3506
- is_active?: boolean;
3507
- raw?: import("../../integrations/supabase/types").Json | null;
3508
- setting_key?: string;
3509
- setting_label?: string;
3510
- updated_at?: string;
3511
- };
3512
- Relationships: [{
3513
- foreignKeyName: "customer_trade_settings_customer_id_fkey";
3514
- columns: ["customer_id"];
3515
- isOneToOne: false;
3516
- referencedRelation: "customers";
3517
- referencedColumns: ["id"];
3518
- }];
3519
- };
3520
- customers: {
3521
- Row: {
3522
- address: string | null;
3523
- bio: string | null;
3524
- city: string | null;
3525
- commercial_name: string | null;
3526
- company_name: string;
3527
- connection_status: string;
3528
- contact_person: string | null;
3529
- country: string | null;
3530
- created_at: string;
3531
- custom_fields: import("../../integrations/supabase/types").Json;
3532
- customer_class: string | null;
3533
- email: string | null;
3534
- external_id: string | null;
3535
- floriday_connection_id: string | null;
3536
- floriday_organization_id: string | null;
3537
- floriday_raw: import("../../integrations/supabase/types").Json | null;
3538
- gln: string | null;
3539
- house_number: string | null;
3540
- id: string;
3541
- is_active: boolean;
3542
- last_synced_at: string | null;
3543
- logo_url: string | null;
3544
- markets: string[];
3545
- notes: string | null;
3546
- organization_type: string | null;
3547
- payment_methods: string[];
3548
- phone: string | null;
3549
- postal_code: string | null;
3550
- product_groups: string[];
3551
- segments: string[];
3552
- source: string;
3553
- street: string | null;
3554
- sync_error: string | null;
3555
- sync_status: string;
3556
- trade_forms: string[];
3557
- updated_at: string;
3558
- vat_number: string | null;
3559
- website: string | null;
3560
- };
3561
- Insert: {
3562
- address?: string | null;
3563
- bio?: string | null;
3564
- city?: string | null;
3565
- commercial_name?: string | null;
3566
- company_name: string;
3567
- connection_status?: string;
3568
- contact_person?: string | null;
3569
- country?: string | null;
3570
- created_at?: string;
3571
- custom_fields?: import("../../integrations/supabase/types").Json;
3572
- customer_class?: string | null;
3573
- email?: string | null;
3574
- external_id?: string | null;
3575
- floriday_connection_id?: string | null;
3576
- floriday_organization_id?: string | null;
3577
- floriday_raw?: import("../../integrations/supabase/types").Json | null;
3578
- gln?: string | null;
3579
- house_number?: string | null;
3580
- id?: string;
3581
- is_active?: boolean;
3582
- last_synced_at?: string | null;
3583
- logo_url?: string | null;
3584
- markets?: string[];
3585
- notes?: string | null;
3586
- organization_type?: string | null;
3587
- payment_methods?: string[];
3588
- phone?: string | null;
3589
- postal_code?: string | null;
3590
- product_groups?: string[];
3591
- segments?: string[];
3592
- source?: string;
3593
- street?: string | null;
3594
- sync_error?: string | null;
3595
- sync_status?: string;
3596
- trade_forms?: string[];
3597
- updated_at?: string;
3598
- vat_number?: string | null;
3599
- website?: string | null;
3600
- };
3601
- Update: {
3602
- address?: string | null;
3603
- bio?: string | null;
3604
- city?: string | null;
3605
- commercial_name?: string | null;
3606
- company_name?: string;
3607
- connection_status?: string;
3608
- contact_person?: string | null;
3609
- country?: string | null;
3610
- created_at?: string;
3611
- custom_fields?: import("../../integrations/supabase/types").Json;
3612
- customer_class?: string | null;
3613
- email?: string | null;
3614
- external_id?: string | null;
3615
- floriday_connection_id?: string | null;
3616
- floriday_organization_id?: string | null;
3617
- floriday_raw?: import("../../integrations/supabase/types").Json | null;
3618
- gln?: string | null;
3619
- house_number?: string | null;
3620
- id?: string;
3621
- is_active?: boolean;
3622
- last_synced_at?: string | null;
3623
- logo_url?: string | null;
3624
- markets?: string[];
3625
- notes?: string | null;
3626
- organization_type?: string | null;
3627
- payment_methods?: string[];
3628
- phone?: string | null;
3629
- postal_code?: string | null;
3630
- product_groups?: string[];
3631
- segments?: string[];
3632
- source?: string;
3633
- street?: string | null;
3634
- sync_error?: string | null;
3635
- sync_status?: string;
3636
- trade_forms?: string[];
3637
- updated_at?: string;
3638
- vat_number?: string | null;
3639
- website?: string | null;
3640
- };
3641
- Relationships: [];
3642
- };
3643
- exact_connections: {
3644
- Row: {
3645
- access_token_encrypted: string;
3646
- company_name: string | null;
3647
- connected_at: string;
3648
- connected_by: string | null;
3649
- division_code: number | null;
3650
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3651
- expires_at: string;
3652
- id: string;
3653
- refresh_token_encrypted: string;
3654
- status: string;
3655
- updated_at: string;
3656
- };
3657
- Insert: {
3658
- access_token_encrypted: string;
3659
- company_name?: string | null;
3660
- connected_at?: string;
3661
- connected_by?: string | null;
3662
- division_code?: number | null;
3663
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3664
- expires_at: string;
3665
- id?: string;
3666
- refresh_token_encrypted: string;
3667
- status?: string;
3668
- updated_at?: string;
3669
- };
3670
- Update: {
3671
- access_token_encrypted?: string;
3672
- company_name?: string | null;
3673
- connected_at?: string;
3674
- connected_by?: string | null;
3675
- division_code?: number | null;
3676
- environment?: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3677
- expires_at?: string;
3678
- id?: string;
3679
- refresh_token_encrypted?: string;
3680
- status?: string;
3681
- updated_at?: string;
3682
- };
3683
- Relationships: [];
3684
- };
3685
- exact_credentials: {
3686
- Row: {
3687
- client_id: string;
3688
- client_secret_encrypted: string;
3689
- created_at: string;
3690
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3691
- id: string;
3692
- redirect_uri: string;
3693
- updated_at: string;
3694
- };
3695
- Insert: {
3696
- client_id: string;
3697
- client_secret_encrypted: string;
3698
- created_at?: string;
3699
- environment: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3700
- id?: string;
3701
- redirect_uri: string;
3702
- updated_at?: string;
3703
- };
3704
- Update: {
3705
- client_id?: string;
3706
- client_secret_encrypted?: string;
3707
- created_at?: string;
3708
- environment?: import("../../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3709
- id?: string;
3710
- redirect_uri?: string;
3711
- updated_at?: string;
3712
- };
3713
- Relationships: [];
3714
- };
3715
- exact_customers_cache: {
3716
- Row: {
3717
- connection_id: string;
3718
- data: import("../../integrations/supabase/types").Json;
3719
- exact_id: string;
3720
- fetched_at: string;
3721
- };
3722
- Insert: {
3723
- connection_id: string;
3724
- data?: import("../../integrations/supabase/types").Json;
3725
- exact_id: string;
3726
- fetched_at?: string;
3727
- };
3728
- Update: {
3729
- connection_id?: string;
3730
- data?: import("../../integrations/supabase/types").Json;
3731
- exact_id?: string;
3732
- fetched_at?: string;
3733
- };
3734
- Relationships: [];
3735
- };
3736
- exact_sync_state: {
3737
- Row: {
3738
- connection_id: string;
3739
- last_error: string | null;
3740
- last_modified_cursor: string | null;
3741
- last_synced_at: string | null;
3742
- status: string;
3743
- updated_at: string;
3744
- };
3745
- Insert: {
3746
- connection_id: string;
3747
- last_error?: string | null;
3748
- last_modified_cursor?: string | null;
3749
- last_synced_at?: string | null;
3750
- status?: string;
3751
- updated_at?: string;
3752
- };
3753
- Update: {
3754
- connection_id?: string;
3755
- last_error?: string | null;
3756
- last_modified_cursor?: string | null;
3757
- last_synced_at?: string | null;
3758
- status?: string;
3759
- updated_at?: string;
3760
- };
3761
- Relationships: [];
3762
- };
3763
- floricode_connection_settings: {
3764
- Row: {
3765
- catalog_key: string | null;
3766
- catalog_url: string;
3767
- created_at: string;
3768
- id: number;
3769
- last_meta: import("../../integrations/supabase/types").Json | null;
3770
- last_test_at: string | null;
3771
- last_test_error: string | null;
3772
- last_test_ok: boolean | null;
3773
- updated_at: string;
3774
- };
3775
- Insert: {
3776
- catalog_key?: string | null;
3777
- catalog_url?: string;
3778
- created_at?: string;
3779
- id?: number;
3780
- last_meta?: import("../../integrations/supabase/types").Json | null;
3781
- last_test_at?: string | null;
3782
- last_test_error?: string | null;
3783
- last_test_ok?: boolean | null;
3784
- updated_at?: string;
3785
- };
3786
- Update: {
3787
- catalog_key?: string | null;
3788
- catalog_url?: string;
3789
- created_at?: string;
3790
- id?: number;
3791
- last_meta?: import("../../integrations/supabase/types").Json | null;
3792
- last_test_at?: string | null;
3793
- last_test_error?: string | null;
3794
- last_test_ok?: boolean | null;
3795
- updated_at?: string;
3796
- };
3797
- Relationships: [];
3798
- };
3799
- floricode_records: {
3800
- Row: {
3801
- change_date_time: string | null;
3802
- data: import("../../integrations/supabase/types").Json;
3803
- last_synced_at: string;
3804
- record_id: string;
3805
- resource: string;
3806
- };
3807
- Insert: {
3808
- change_date_time?: string | null;
3809
- data?: import("../../integrations/supabase/types").Json;
3810
- last_synced_at?: string;
3811
- record_id: string;
3812
- resource: string;
3813
- };
3814
- Update: {
3815
- change_date_time?: string | null;
3816
- data?: import("../../integrations/supabase/types").Json;
3817
- last_synced_at?: string;
3818
- record_id?: string;
3819
- resource?: string;
3820
- };
3821
- Relationships: [];
3822
- };
3823
- floricode_sync_state: {
3824
- Row: {
3825
- error_message: string | null;
3826
- last_change_date_time: string | null;
3827
- last_sequence_number: number;
3828
- last_sync_at: string | null;
3829
- resource: string;
3830
- status: string;
3831
- updated_at: string;
3832
- };
3833
- Insert: {
3834
- error_message?: string | null;
3835
- last_change_date_time?: string | null;
3836
- last_sequence_number?: number;
3837
- last_sync_at?: string | null;
3838
- resource: string;
3839
- status?: string;
3840
- updated_at?: string;
3841
- };
3842
- Update: {
3843
- error_message?: string | null;
3844
- last_change_date_time?: string | null;
3845
- last_sequence_number?: number;
3846
- last_sync_at?: string | null;
3847
- resource?: string;
3848
- status?: string;
3849
- updated_at?: string;
3850
- };
3851
- Relationships: [];
3852
- };
3853
- floriday_connections: {
3854
- Row: {
3855
- access_token: string | null;
3856
- api_key: string;
3857
- client_id: string;
3858
- client_secret: string;
3859
- created_at: string;
3860
- customers_endpoint: string | null;
3861
- environment: string;
3862
- gln_code: string | null;
3863
- id: string;
3864
- is_active: boolean;
3865
- label: string;
3866
- organization_name: string | null;
3867
- preferred_warehouse_id: string | null;
3868
- preferred_warehouse_name: string | null;
3869
- token_expires_at: string | null;
3870
- updated_at: string;
3871
- };
3872
- Insert: {
3873
- access_token?: string | null;
3874
- api_key: string;
3875
- client_id: string;
3876
- client_secret: string;
3877
- created_at?: string;
3878
- customers_endpoint?: string | null;
3879
- environment: string;
3880
- gln_code?: string | null;
3881
- id?: string;
3882
- is_active?: boolean;
3883
- label?: string;
3884
- organization_name?: string | null;
3885
- preferred_warehouse_id?: string | null;
3886
- preferred_warehouse_name?: string | null;
3887
- token_expires_at?: string | null;
3888
- updated_at?: string;
3889
- };
3890
- Update: {
3891
- access_token?: string | null;
3892
- api_key?: string;
3893
- client_id?: string;
3894
- client_secret?: string;
3895
- created_at?: string;
3896
- customers_endpoint?: string | null;
3897
- environment?: string;
3898
- gln_code?: string | null;
3899
- id?: string;
3900
- is_active?: boolean;
3901
- label?: string;
3902
- organization_name?: string | null;
3903
- preferred_warehouse_id?: string | null;
3904
- preferred_warehouse_name?: string | null;
3905
- token_expires_at?: string | null;
3906
- updated_at?: string;
3907
- };
3908
- Relationships: [];
3909
- };
3910
- floriday_customers_cache: {
3911
- Row: {
3912
- connection_id: string | null;
3913
- data: import("../../integrations/supabase/types").Json;
3914
- fetched_at: string;
3915
- organization_id: string;
3916
- };
3917
- Insert: {
3918
- connection_id?: string | null;
3919
- data?: import("../../integrations/supabase/types").Json;
3920
- fetched_at?: string;
3921
- organization_id: string;
3922
- };
3923
- Update: {
3924
- connection_id?: string | null;
3925
- data?: import("../../integrations/supabase/types").Json;
3926
- fetched_at?: string;
3927
- organization_id?: string;
3928
- };
3929
- Relationships: [{
3930
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3931
- columns: ["connection_id"];
3932
- isOneToOne: false;
3933
- referencedRelation: "floriday_connections";
3934
- referencedColumns: ["id"];
3935
- }];
3936
- };
3937
- floriday_network_cache: {
3938
- Row: {
3939
- city: string | null;
3940
- connection_id: string;
3941
- country: string | null;
3942
- data: import("../../integrations/supabase/types").Json;
3943
- fetched_at: string;
3944
- gln: string | null;
3945
- organization_id: string;
3946
- organization_name: string | null;
3947
- };
3948
- Insert: {
3949
- city?: string | null;
3950
- connection_id: string;
3951
- country?: string | null;
3952
- data?: import("../../integrations/supabase/types").Json;
3953
- fetched_at?: string;
3954
- gln?: string | null;
3955
- organization_id: string;
3956
- organization_name?: string | null;
3957
- };
3958
- Update: {
3959
- city?: string | null;
3960
- connection_id?: string;
3961
- country?: string | null;
3962
- data?: import("../../integrations/supabase/types").Json;
3963
- fetched_at?: string;
3964
- gln?: string | null;
3965
- organization_id?: string;
3966
- organization_name?: string | null;
3967
- };
3968
- Relationships: [];
3969
- };
3970
- floriday_network_sync_state: {
3971
- Row: {
3972
- connection_id: string;
3973
- last_error: string | null;
3974
- last_sequence_number: number;
3975
- last_synced_at: string | null;
3976
- updated_at: string;
3977
- };
3978
- Insert: {
3979
- connection_id: string;
3980
- last_error?: string | null;
3981
- last_sequence_number?: number;
3982
- last_synced_at?: string | null;
3983
- updated_at?: string;
3984
- };
3985
- Update: {
3986
- connection_id?: string;
3987
- last_error?: string | null;
3988
- last_sequence_number?: number;
3989
- last_synced_at?: string | null;
3990
- updated_at?: string;
3991
- };
3992
- Relationships: [];
3993
- };
3994
- floriday_settings: {
3995
- Row: {
3996
- active_environment: string;
3997
- id: number;
3998
- updated_at: string;
3999
- };
4000
- Insert: {
4001
- active_environment?: string;
4002
- id?: number;
4003
- updated_at?: string;
4004
- };
4005
- Update: {
4006
- active_environment?: string;
4007
- id?: number;
4008
- updated_at?: string;
4009
- };
4010
- Relationships: [];
4011
- };
4012
- inventory_settings: {
4013
- Row: {
4014
- created_at: string;
4015
- hierarchy_levels: string[];
4016
- id: string;
4017
- updated_at: string;
4018
- visible_columns: string[];
4019
- };
4020
- Insert: {
4021
- created_at?: string;
4022
- hierarchy_levels?: string[];
4023
- id?: string;
4024
- updated_at?: string;
4025
- visible_columns?: string[];
4026
- };
4027
- Update: {
4028
- created_at?: string;
4029
- hierarchy_levels?: string[];
4030
- id?: string;
4031
- updated_at?: string;
4032
- visible_columns?: string[];
4033
- };
4034
- Relationships: [];
4035
- };
4036
- locations: {
4037
- Row: {
4038
- created_at: string;
4039
- id: string;
4040
- name: string;
4041
- sort_order: number;
4042
- updated_at: string;
4043
- };
4044
- Insert: {
4045
- created_at?: string;
4046
- id?: string;
4047
- name: string;
4048
- sort_order?: number;
4049
- updated_at?: string;
4050
- };
4051
- Update: {
4052
- created_at?: string;
4053
- id?: string;
4054
- name?: string;
4055
- sort_order?: number;
4056
- updated_at?: string;
4057
- };
4058
- Relationships: [];
4059
- };
4060
- notifications: {
4061
- Row: {
4062
- created_at: string;
4063
- id: string;
4064
- message: string | null;
4065
- read: boolean;
4066
- title: string;
4067
- updated_at: string;
4068
- user_id: string;
4069
- };
4070
- Insert: {
4071
- created_at?: string;
4072
- id?: string;
4073
- message?: string | null;
4074
- read?: boolean;
4075
- title: string;
4076
- updated_at?: string;
4077
- user_id: string;
4078
- };
4079
- Update: {
4080
- created_at?: string;
4081
- id?: string;
4082
- message?: string | null;
4083
- read?: boolean;
4084
- title?: string;
4085
- updated_at?: string;
4086
- user_id?: string;
4087
- };
4088
- Relationships: [];
4089
- };
4090
- order_field_options: {
4091
- Row: {
4092
- created_at: string;
4093
- field_setting_id: string;
4094
- id: string;
4095
- label: string;
4096
- sort_order: number;
4097
- };
4098
- Insert: {
4099
- created_at?: string;
4100
- field_setting_id: string;
4101
- id?: string;
4102
- label: string;
4103
- sort_order?: number;
4104
- };
4105
- Update: {
4106
- created_at?: string;
4107
- field_setting_id?: string;
4108
- id?: string;
4109
- label?: string;
4110
- sort_order?: number;
4111
- };
4112
- Relationships: [{
4113
- foreignKeyName: "order_field_options_field_setting_id_fkey";
4114
- columns: ["field_setting_id"];
4115
- isOneToOne: false;
4116
- referencedRelation: "order_field_settings";
4117
- referencedColumns: ["id"];
4118
- }];
4119
- };
4120
- order_field_settings: {
4121
- Row: {
4122
- active: boolean;
4123
- created_at: string;
4124
- field_key: string;
4125
- field_label: string;
4126
- field_type: string;
4127
- id: string;
4128
- is_custom: boolean;
4129
- sort_order: number;
4130
- updated_at: string;
4131
- };
4132
- Insert: {
4133
- active?: boolean;
4134
- created_at?: string;
4135
- field_key: string;
4136
- field_label: string;
4137
- field_type?: string;
4138
- id?: string;
4139
- is_custom?: boolean;
4140
- sort_order?: number;
4141
- updated_at?: string;
4142
- };
4143
- Update: {
4144
- active?: boolean;
4145
- created_at?: string;
4146
- field_key?: string;
4147
- field_label?: string;
4148
- field_type?: string;
4149
- id?: string;
4150
- is_custom?: boolean;
4151
- sort_order?: number;
4152
- updated_at?: string;
4153
- };
4154
- Relationships: [];
4155
- };
4156
- order_items: {
4157
- Row: {
4158
- created_at: string;
4159
- id: string;
4160
- order_id: string;
4161
- product_id: string | null;
4162
- product_name: string;
4163
- quantity: number;
4164
- unit: string;
4165
- unit_price: number | null;
4166
- };
4167
- Insert: {
4168
- created_at?: string;
4169
- id?: string;
4170
- order_id: string;
4171
- product_id?: string | null;
4172
- product_name: string;
4173
- quantity?: number;
4174
- unit?: string;
4175
- unit_price?: number | null;
4176
- };
4177
- Update: {
4178
- created_at?: string;
4179
- id?: string;
4180
- order_id?: string;
4181
- product_id?: string | null;
4182
- product_name?: string;
4183
- quantity?: number;
4184
- unit?: string;
4185
- unit_price?: number | null;
4186
- };
4187
- Relationships: [{
4188
- foreignKeyName: "order_items_order_id_fkey";
4189
- columns: ["order_id"];
4190
- isOneToOne: false;
4191
- referencedRelation: "orders";
4192
- referencedColumns: ["id"];
4193
- }, {
4194
- foreignKeyName: "order_items_product_id_fkey";
4195
- columns: ["product_id"];
4196
- isOneToOne: false;
4197
- referencedRelation: "products";
4198
- referencedColumns: ["id"];
4199
- }];
4200
- };
4201
- orders: {
4202
- Row: {
4203
- created_at: string;
4204
- custom_fields: import("../../integrations/supabase/types").Json;
4205
- customer_id: string | null;
4206
- customer_name: string;
4207
- deleted_at: string | null;
4208
- delivery_date: string;
4209
- id: string;
4210
- notes: string | null;
4211
- order_date: string;
4212
- order_number: string;
4213
- status: string;
4214
- total: string;
4215
- updated_at: string;
4216
- };
4217
- Insert: {
4218
- created_at?: string;
4219
- custom_fields?: import("../../integrations/supabase/types").Json;
4220
- customer_id?: string | null;
4221
- customer_name?: string;
4222
- deleted_at?: string | null;
4223
- delivery_date: string;
4224
- id?: string;
4225
- notes?: string | null;
4226
- order_date?: string;
4227
- order_number: string;
4228
- status?: string;
4229
- total?: string;
4230
- updated_at?: string;
4231
- };
4232
- Update: {
4233
- created_at?: string;
4234
- custom_fields?: import("../../integrations/supabase/types").Json;
4235
- customer_id?: string | null;
4236
- customer_name?: string;
4237
- deleted_at?: string | null;
4238
- delivery_date?: string;
4239
- id?: string;
4240
- notes?: string | null;
4241
- order_date?: string;
4242
- order_number?: string;
4243
- status?: string;
4244
- total?: string;
4245
- updated_at?: string;
4246
- };
4247
- Relationships: [{
4248
- foreignKeyName: "orders_customer_id_fkey";
4249
- columns: ["customer_id"];
4250
- isOneToOne: false;
4251
- referencedRelation: "customers";
4252
- referencedColumns: ["id"];
4253
- }];
4254
- };
4255
- product_categories: {
4256
- Row: {
4257
- color: string;
4258
- created_at: string;
4259
- icon: string | null;
4260
- id: string;
4261
- name: string;
4262
- slug: string;
4263
- sort_order: number;
4264
- updated_at: string;
4265
- };
4266
- Insert: {
4267
- color?: string;
4268
- created_at?: string;
4269
- icon?: string | null;
4270
- id?: string;
4271
- name: string;
4272
- slug: string;
4273
- sort_order?: number;
4274
- updated_at?: string;
4275
- };
4276
- Update: {
4277
- color?: string;
4278
- created_at?: string;
4279
- icon?: string | null;
4280
- id?: string;
4281
- name?: string;
4282
- slug?: string;
4283
- sort_order?: number;
4284
- updated_at?: string;
4285
- };
4286
- Relationships: [];
4287
- };
4288
- product_field_options: {
4289
- Row: {
4290
- created_at: string;
4291
- field_setting_id: string;
4292
- id: string;
4293
- label: string;
4294
- sort_order: number;
4295
- };
4296
- Insert: {
4297
- created_at?: string;
4298
- field_setting_id: string;
4299
- id?: string;
4300
- label: string;
4301
- sort_order?: number;
4302
- };
4303
- Update: {
4304
- created_at?: string;
4305
- field_setting_id?: string;
4306
- id?: string;
4307
- label?: string;
4308
- sort_order?: number;
4309
- };
4310
- Relationships: [{
4311
- foreignKeyName: "product_field_options_field_setting_id_fkey";
4312
- columns: ["field_setting_id"];
4313
- isOneToOne: false;
4314
- referencedRelation: "product_field_settings";
4315
- referencedColumns: ["id"];
4316
- }];
4317
- };
4318
- product_field_settings: {
4319
- Row: {
4320
- active_per_category: import("../../integrations/supabase/types").Json;
4321
- created_at: string;
4322
- field_key: string;
4323
- field_label: string;
4324
- field_type: string;
4325
- id: string;
4326
- is_custom: boolean;
4327
- sort_order: number;
4328
- updated_at: string;
4329
- };
4330
- Insert: {
4331
- active_per_category?: import("../../integrations/supabase/types").Json;
4332
- created_at?: string;
4333
- field_key: string;
4334
- field_label: string;
4335
- field_type?: string;
4336
- id?: string;
4337
- is_custom?: boolean;
4338
- sort_order?: number;
4339
- updated_at?: string;
4340
- };
4341
- Update: {
4342
- active_per_category?: import("../../integrations/supabase/types").Json;
4343
- created_at?: string;
4344
- field_key?: string;
4345
- field_label?: string;
4346
- field_type?: string;
4347
- id?: string;
4348
- is_custom?: boolean;
4349
- sort_order?: number;
4350
- updated_at?: string;
4351
- };
4352
- Relationships: [];
4353
- };
4354
- products: {
4355
- Row: {
4356
- barcode: string | null;
4357
- batch: string;
4358
- created_at: string;
4359
- custom_fields: import("../../integrations/supabase/types").Json;
4360
- id: string;
4361
- image_url: string | null;
4362
- incoming_quantity: number;
4363
- location: string;
4364
- min_quantity: number;
4365
- product: string;
4366
- product_type: string;
4367
- purchase_price: number | null;
4368
- quantity: number;
4369
- sale_price: number | null;
4370
- unit: string;
4371
- updated_at: string;
4372
- weight: string | null;
4373
- };
4374
- Insert: {
4375
- barcode?: string | null;
4376
- batch: string;
4377
- created_at?: string;
4378
- custom_fields?: import("../../integrations/supabase/types").Json;
4379
- id?: string;
4380
- image_url?: string | null;
4381
- incoming_quantity?: number;
4382
- location: string;
4383
- min_quantity?: number;
4384
- product: string;
4385
- product_type?: string;
4386
- purchase_price?: number | null;
4387
- quantity?: number;
4388
- sale_price?: number | null;
4389
- unit?: string;
4390
- updated_at?: string;
4391
- weight?: string | null;
4392
- };
4393
- Update: {
4394
- barcode?: string | null;
4395
- batch?: string;
4396
- created_at?: string;
4397
- custom_fields?: import("../../integrations/supabase/types").Json;
4398
- id?: string;
4399
- image_url?: string | null;
4400
- incoming_quantity?: number;
4401
- location?: string;
4402
- min_quantity?: number;
4403
- product?: string;
4404
- product_type?: string;
4405
- purchase_price?: number | null;
4406
- quantity?: number;
4407
- sale_price?: number | null;
4408
- unit?: string;
4409
- updated_at?: string;
4410
- weight?: string | null;
4411
- };
4412
- Relationships: [];
4413
- };
4414
- profiles: {
4415
- Row: {
4416
- created_at: string;
4417
- display_name: string | null;
4418
- email: string | null;
4419
- id: string;
4420
- notification_preferences: import("../../integrations/supabase/types").Json;
4421
- updated_at: string;
4422
- };
4423
- Insert: {
4424
- created_at?: string;
4425
- display_name?: string | null;
4426
- email?: string | null;
4427
- id: string;
4428
- notification_preferences?: import("../../integrations/supabase/types").Json;
4429
- updated_at?: string;
4430
- };
4431
- Update: {
4432
- created_at?: string;
4433
- display_name?: string | null;
4434
- email?: string | null;
4435
- id?: string;
4436
- notification_preferences?: import("../../integrations/supabase/types").Json;
4437
- updated_at?: string;
4438
- };
4439
- Relationships: [];
4440
- };
4441
- purchase_order_items: {
4442
- Row: {
4443
- created_at: string;
4444
- id: string;
4445
- product_id: string | null;
4446
- product_type: string;
4447
- purchase_order_id: string;
4448
- quantity: number;
4449
- };
4450
- Insert: {
4451
- created_at?: string;
4452
- id?: string;
4453
- product_id?: string | null;
4454
- product_type?: string;
4455
- purchase_order_id: string;
4456
- quantity?: number;
4457
- };
4458
- Update: {
4459
- created_at?: string;
4460
- id?: string;
4461
- product_id?: string | null;
4462
- product_type?: string;
4463
- purchase_order_id?: string;
4464
- quantity?: number;
4465
- };
4466
- Relationships: [{
4467
- foreignKeyName: "purchase_order_items_product_id_fkey";
4468
- columns: ["product_id"];
4469
- isOneToOne: false;
4470
- referencedRelation: "products";
4471
- referencedColumns: ["id"];
4472
- }, {
4473
- foreignKeyName: "purchase_order_items_purchase_order_id_fkey";
4474
- columns: ["purchase_order_id"];
4475
- isOneToOne: false;
4476
- referencedRelation: "purchase_orders";
4477
- referencedColumns: ["id"];
4478
- }];
4479
- };
4480
- purchase_orders: {
4481
- Row: {
4482
- created_at: string;
4483
- expected_delivery_date: string;
4484
- id: string;
4485
- location_id: string | null;
4486
- notes: string | null;
4487
- order_number: string;
4488
- status: string;
4489
- supplier_id: string | null;
4490
- supplier_name: string;
4491
- updated_at: string;
4492
- };
4493
- Insert: {
4494
- created_at?: string;
4495
- expected_delivery_date: string;
4496
- id?: string;
4497
- location_id?: string | null;
4498
- notes?: string | null;
4499
- order_number: string;
4500
- status?: string;
4501
- supplier_id?: string | null;
4502
- supplier_name?: string;
4503
- updated_at?: string;
4504
- };
4505
- Update: {
4506
- created_at?: string;
4507
- expected_delivery_date?: string;
4508
- id?: string;
4509
- location_id?: string | null;
4510
- notes?: string | null;
4511
- order_number?: string;
4512
- status?: string;
4513
- supplier_id?: string | null;
4514
- supplier_name?: string;
4515
- updated_at?: string;
4516
- };
4517
- Relationships: [{
4518
- foreignKeyName: "purchase_orders_location_id_fkey";
4519
- columns: ["location_id"];
4520
- isOneToOne: false;
4521
- referencedRelation: "locations";
4522
- referencedColumns: ["id"];
4523
- }, {
4524
- foreignKeyName: "purchase_orders_supplier_id_fkey";
4525
- columns: ["supplier_id"];
4526
- isOneToOne: false;
4527
- referencedRelation: "suppliers";
4528
- referencedColumns: ["id"];
4529
- }];
4530
- };
4531
- supplier_products: {
4532
- Row: {
4533
- article_number: string | null;
4534
- created_at: string;
4535
- id: string;
4536
- name: string;
4537
- notes: string | null;
4538
- pot_size: string | null;
4539
- price: number | null;
4540
- quantity: number | null;
4541
- supplier_id: string;
4542
- unit: string;
4543
- updated_at: string;
4544
- };
4545
- Insert: {
4546
- article_number?: string | null;
4547
- created_at?: string;
4548
- id?: string;
4549
- name: string;
4550
- notes?: string | null;
4551
- pot_size?: string | null;
4552
- price?: number | null;
4553
- quantity?: number | null;
4554
- supplier_id: string;
4555
- unit?: string;
4556
- updated_at?: string;
4557
- };
4558
- Update: {
4559
- article_number?: string | null;
4560
- created_at?: string;
4561
- id?: string;
4562
- name?: string;
4563
- notes?: string | null;
4564
- pot_size?: string | null;
4565
- price?: number | null;
4566
- quantity?: number | null;
4567
- supplier_id?: string;
4568
- unit?: string;
4569
- updated_at?: string;
4570
- };
4571
- Relationships: [{
4572
- foreignKeyName: "supplier_products_supplier_id_fkey";
4573
- columns: ["supplier_id"];
4574
- isOneToOne: false;
4575
- referencedRelation: "suppliers";
4576
- referencedColumns: ["id"];
4577
- }];
4578
- };
4579
- suppliers: {
4580
- Row: {
4581
- address: string | null;
4582
- column_mappings: import("../../integrations/supabase/types").Json | null;
4583
- contact_person: string | null;
4584
- created_at: string;
4585
- default_product_type: string;
4586
- email: string | null;
4587
- id: string;
4588
- imported_file_name: string | null;
4589
- name: string;
4590
- notes: string | null;
4591
- phone: string | null;
4592
- updated_at: string;
4593
- };
4594
- Insert: {
4595
- address?: string | null;
4596
- column_mappings?: import("../../integrations/supabase/types").Json | null;
4597
- contact_person?: string | null;
4598
- created_at?: string;
4599
- default_product_type?: string;
4600
- email?: string | null;
4601
- id?: string;
4602
- imported_file_name?: string | null;
4603
- name: string;
4604
- notes?: string | null;
4605
- phone?: string | null;
4606
- updated_at?: string;
4607
- };
4608
- Update: {
4609
- address?: string | null;
4610
- column_mappings?: import("../../integrations/supabase/types").Json | null;
4611
- contact_person?: string | null;
4612
- created_at?: string;
4613
- default_product_type?: string;
4614
- email?: string | null;
4615
- id?: string;
4616
- imported_file_name?: string | null;
4617
- name?: string;
4618
- notes?: string | null;
4619
- phone?: string | null;
4620
- updated_at?: string;
4621
- };
4622
- Relationships: [];
4623
- };
4624
- trade_item_drafts: {
4625
- Row: {
4626
- connection_id: string | null;
4627
- created_at: string;
4628
- data: import("../../integrations/supabase/types").Json;
4629
- id: string;
4630
- updated_at: string;
4631
- user_id: string;
4632
- };
4633
- Insert: {
4634
- connection_id?: string | null;
4635
- created_at?: string;
4636
- data?: import("../../integrations/supabase/types").Json;
4637
- id?: string;
4638
- updated_at?: string;
4639
- user_id: string;
4640
- };
4641
- Update: {
4642
- connection_id?: string | null;
4643
- created_at?: string;
4644
- data?: import("../../integrations/supabase/types").Json;
4645
- id?: string;
4646
- updated_at?: string;
4647
- user_id?: string;
4648
- };
4649
- Relationships: [];
4650
- };
4651
- user_roles: {
4652
- Row: {
4653
- created_at: string;
4654
- id: string;
4655
- role: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
4656
- user_id: string;
4657
- };
4658
- Insert: {
4659
- created_at?: string;
4660
- id?: string;
4661
- role: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
4662
- user_id: string;
4663
- };
4664
- Update: {
4665
- created_at?: string;
4666
- id?: string;
4667
- role?: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
4668
- user_id?: string;
4669
- };
4670
- Relationships: [{
4671
- foreignKeyName: "user_roles_user_id_fkey";
4672
- columns: ["user_id"];
4673
- isOneToOne: false;
4674
- referencedRelation: "profiles";
4675
- referencedColumns: ["id"];
4676
- }];
4677
- };
4678
- };
4679
- Views: { [_ in never]: never; };
4680
- Functions: {
4681
- has_role: {
4682
- Args: {
4683
- _role: import("../../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
4684
- _user_id: string;
4685
- };
4686
- Returns: boolean;
4687
- };
4688
- schedule_floriday_network_sync: {
4689
- Args: {
4690
- p_apikey: string;
4691
- p_url: string;
4692
- };
4693
- Returns: number;
4694
- };
4695
- schedule_floriday_token_refresh: {
4696
- Args: {
4697
- p_apikey: string;
4698
- p_url: string;
4699
- };
4700
- Returns: number;
4701
- };
4702
- show_limit: {
4703
- Args: never;
4704
- Returns: number;
4705
- };
4706
- show_trgm: {
4707
- Args: {
4708
- "": string;
4709
- };
4710
- Returns: string[];
4711
- };
4712
- };
4713
- Enums: {
4714
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
4715
- exact_env: "staging" | "live";
4716
- };
4717
- CompositeTypes: { [_ in never]: never; };
4718
- }, {
4719
- PostgrestVersion: "14.5";
4720
- }>;
4721
- userId: string;
4722
- claims: import("@supabase/auth-js").User;
4723
- }, undefined, undefined, undefined>], (data: unknown) => {
4724
- customerOrganizationId: string;
4725
- deliveryDateTime: string;
4726
- lines: {
4727
- tradeItemId: string;
4728
- numberOfPieces: number;
4729
- pricePerPiece: number;
4730
- }[];
4731
- reference?: string | undefined;
4732
- }, Promise<{
4733
- id: any;
4734
- ok: true;
4735
- }>>;
4736
- //# sourceMappingURL=sales-orders.functions.d.ts.map