@flowselections/floriday-voorraad 1.0.5 → 1.0.6
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.
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +531 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +531 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +531 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +544 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +1 -0
- package/package.json +1 -1
|
@@ -67,6 +67,150 @@ export type Database = {
|
|
|
67
67
|
};
|
|
68
68
|
Relationships: [];
|
|
69
69
|
};
|
|
70
|
+
customer_audit_log: {
|
|
71
|
+
Row: {
|
|
72
|
+
action: string;
|
|
73
|
+
changes: Json;
|
|
74
|
+
created_at: string;
|
|
75
|
+
customer_id: string;
|
|
76
|
+
id: string;
|
|
77
|
+
user_id: string | null;
|
|
78
|
+
};
|
|
79
|
+
Insert: {
|
|
80
|
+
action: string;
|
|
81
|
+
changes?: Json;
|
|
82
|
+
created_at?: string;
|
|
83
|
+
customer_id: string;
|
|
84
|
+
id?: string;
|
|
85
|
+
user_id?: string | null;
|
|
86
|
+
};
|
|
87
|
+
Update: {
|
|
88
|
+
action?: string;
|
|
89
|
+
changes?: Json;
|
|
90
|
+
created_at?: string;
|
|
91
|
+
customer_id?: string;
|
|
92
|
+
id?: string;
|
|
93
|
+
user_id?: string | null;
|
|
94
|
+
};
|
|
95
|
+
Relationships: [
|
|
96
|
+
{
|
|
97
|
+
foreignKeyName: "customer_audit_log_customer_id_fkey";
|
|
98
|
+
columns: ["customer_id"];
|
|
99
|
+
isOneToOne: false;
|
|
100
|
+
referencedRelation: "customers";
|
|
101
|
+
referencedColumns: ["id"];
|
|
102
|
+
}
|
|
103
|
+
];
|
|
104
|
+
};
|
|
105
|
+
customer_contacts: {
|
|
106
|
+
Row: {
|
|
107
|
+
created_at: string;
|
|
108
|
+
customer_id: string;
|
|
109
|
+
email: string | null;
|
|
110
|
+
floriday_contact_id: string | null;
|
|
111
|
+
full_name: string;
|
|
112
|
+
id: string;
|
|
113
|
+
is_active: boolean;
|
|
114
|
+
job_title: string | null;
|
|
115
|
+
phone: string | null;
|
|
116
|
+
photo_url: string | null;
|
|
117
|
+
raw: Json | null;
|
|
118
|
+
updated_at: string;
|
|
119
|
+
};
|
|
120
|
+
Insert: {
|
|
121
|
+
created_at?: string;
|
|
122
|
+
customer_id: string;
|
|
123
|
+
email?: string | null;
|
|
124
|
+
floriday_contact_id?: string | null;
|
|
125
|
+
full_name: string;
|
|
126
|
+
id?: string;
|
|
127
|
+
is_active?: boolean;
|
|
128
|
+
job_title?: string | null;
|
|
129
|
+
phone?: string | null;
|
|
130
|
+
photo_url?: string | null;
|
|
131
|
+
raw?: Json | null;
|
|
132
|
+
updated_at?: string;
|
|
133
|
+
};
|
|
134
|
+
Update: {
|
|
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?: Json | null;
|
|
146
|
+
updated_at?: string;
|
|
147
|
+
};
|
|
148
|
+
Relationships: [
|
|
149
|
+
{
|
|
150
|
+
foreignKeyName: "customer_contacts_customer_id_fkey";
|
|
151
|
+
columns: ["customer_id"];
|
|
152
|
+
isOneToOne: false;
|
|
153
|
+
referencedRelation: "customers";
|
|
154
|
+
referencedColumns: ["id"];
|
|
155
|
+
}
|
|
156
|
+
];
|
|
157
|
+
};
|
|
158
|
+
customer_delivery_locations: {
|
|
159
|
+
Row: {
|
|
160
|
+
address_line: string | null;
|
|
161
|
+
city: string | null;
|
|
162
|
+
country: string | null;
|
|
163
|
+
created_at: string;
|
|
164
|
+
customer_id: string;
|
|
165
|
+
floriday_location_id: string | null;
|
|
166
|
+
gln: string | null;
|
|
167
|
+
id: string;
|
|
168
|
+
is_primary: boolean;
|
|
169
|
+
name: string | null;
|
|
170
|
+
postal_code: string | null;
|
|
171
|
+
raw: Json | null;
|
|
172
|
+
updated_at: string;
|
|
173
|
+
};
|
|
174
|
+
Insert: {
|
|
175
|
+
address_line?: string | null;
|
|
176
|
+
city?: string | null;
|
|
177
|
+
country?: string | null;
|
|
178
|
+
created_at?: string;
|
|
179
|
+
customer_id: string;
|
|
180
|
+
floriday_location_id?: string | null;
|
|
181
|
+
gln?: string | null;
|
|
182
|
+
id?: string;
|
|
183
|
+
is_primary?: boolean;
|
|
184
|
+
name?: string | null;
|
|
185
|
+
postal_code?: string | null;
|
|
186
|
+
raw?: Json | null;
|
|
187
|
+
updated_at?: string;
|
|
188
|
+
};
|
|
189
|
+
Update: {
|
|
190
|
+
address_line?: string | null;
|
|
191
|
+
city?: string | null;
|
|
192
|
+
country?: string | null;
|
|
193
|
+
created_at?: string;
|
|
194
|
+
customer_id?: string;
|
|
195
|
+
floriday_location_id?: string | null;
|
|
196
|
+
gln?: string | null;
|
|
197
|
+
id?: string;
|
|
198
|
+
is_primary?: boolean;
|
|
199
|
+
name?: string | null;
|
|
200
|
+
postal_code?: string | null;
|
|
201
|
+
raw?: Json | null;
|
|
202
|
+
updated_at?: string;
|
|
203
|
+
};
|
|
204
|
+
Relationships: [
|
|
205
|
+
{
|
|
206
|
+
foreignKeyName: "customer_delivery_locations_customer_id_fkey";
|
|
207
|
+
columns: ["customer_id"];
|
|
208
|
+
isOneToOne: false;
|
|
209
|
+
referencedRelation: "customers";
|
|
210
|
+
referencedColumns: ["id"];
|
|
211
|
+
}
|
|
212
|
+
];
|
|
213
|
+
};
|
|
70
214
|
customer_field_options: {
|
|
71
215
|
Row: {
|
|
72
216
|
created_at: string;
|
|
@@ -132,47 +276,339 @@ export type Database = {
|
|
|
132
276
|
};
|
|
133
277
|
Relationships: [];
|
|
134
278
|
};
|
|
279
|
+
customer_selected_assortment: {
|
|
280
|
+
Row: {
|
|
281
|
+
article_number: string | null;
|
|
282
|
+
created_at: string;
|
|
283
|
+
customer_id: string;
|
|
284
|
+
floriday_item_id: string | null;
|
|
285
|
+
id: string;
|
|
286
|
+
price: number | null;
|
|
287
|
+
product_group: string | null;
|
|
288
|
+
product_name: string;
|
|
289
|
+
raw: Json | null;
|
|
290
|
+
unit: string | null;
|
|
291
|
+
updated_at: string;
|
|
292
|
+
};
|
|
293
|
+
Insert: {
|
|
294
|
+
article_number?: string | null;
|
|
295
|
+
created_at?: string;
|
|
296
|
+
customer_id: string;
|
|
297
|
+
floriday_item_id?: string | null;
|
|
298
|
+
id?: string;
|
|
299
|
+
price?: number | null;
|
|
300
|
+
product_group?: string | null;
|
|
301
|
+
product_name: string;
|
|
302
|
+
raw?: Json | null;
|
|
303
|
+
unit?: string | null;
|
|
304
|
+
updated_at?: string;
|
|
305
|
+
};
|
|
306
|
+
Update: {
|
|
307
|
+
article_number?: string | null;
|
|
308
|
+
created_at?: string;
|
|
309
|
+
customer_id?: string;
|
|
310
|
+
floriday_item_id?: string | null;
|
|
311
|
+
id?: string;
|
|
312
|
+
price?: number | null;
|
|
313
|
+
product_group?: string | null;
|
|
314
|
+
product_name?: string;
|
|
315
|
+
raw?: Json | null;
|
|
316
|
+
unit?: string | null;
|
|
317
|
+
updated_at?: string;
|
|
318
|
+
};
|
|
319
|
+
Relationships: [
|
|
320
|
+
{
|
|
321
|
+
foreignKeyName: "customer_selected_assortment_customer_id_fkey";
|
|
322
|
+
columns: ["customer_id"];
|
|
323
|
+
isOneToOne: false;
|
|
324
|
+
referencedRelation: "customers";
|
|
325
|
+
referencedColumns: ["id"];
|
|
326
|
+
}
|
|
327
|
+
];
|
|
328
|
+
};
|
|
329
|
+
customer_trade_settings: {
|
|
330
|
+
Row: {
|
|
331
|
+
category: string;
|
|
332
|
+
created_at: string;
|
|
333
|
+
customer_id: string;
|
|
334
|
+
id: string;
|
|
335
|
+
is_active: boolean;
|
|
336
|
+
raw: Json | null;
|
|
337
|
+
setting_key: string;
|
|
338
|
+
setting_label: string;
|
|
339
|
+
updated_at: string;
|
|
340
|
+
};
|
|
341
|
+
Insert: {
|
|
342
|
+
category?: string;
|
|
343
|
+
created_at?: string;
|
|
344
|
+
customer_id: string;
|
|
345
|
+
id?: string;
|
|
346
|
+
is_active?: boolean;
|
|
347
|
+
raw?: Json | null;
|
|
348
|
+
setting_key: string;
|
|
349
|
+
setting_label: string;
|
|
350
|
+
updated_at?: string;
|
|
351
|
+
};
|
|
352
|
+
Update: {
|
|
353
|
+
category?: string;
|
|
354
|
+
created_at?: string;
|
|
355
|
+
customer_id?: string;
|
|
356
|
+
id?: string;
|
|
357
|
+
is_active?: boolean;
|
|
358
|
+
raw?: Json | null;
|
|
359
|
+
setting_key?: string;
|
|
360
|
+
setting_label?: string;
|
|
361
|
+
updated_at?: string;
|
|
362
|
+
};
|
|
363
|
+
Relationships: [
|
|
364
|
+
{
|
|
365
|
+
foreignKeyName: "customer_trade_settings_customer_id_fkey";
|
|
366
|
+
columns: ["customer_id"];
|
|
367
|
+
isOneToOne: false;
|
|
368
|
+
referencedRelation: "customers";
|
|
369
|
+
referencedColumns: ["id"];
|
|
370
|
+
}
|
|
371
|
+
];
|
|
372
|
+
};
|
|
135
373
|
customers: {
|
|
136
374
|
Row: {
|
|
137
375
|
address: string | null;
|
|
376
|
+
bio: string | null;
|
|
138
377
|
city: string | null;
|
|
378
|
+
commercial_name: string | null;
|
|
139
379
|
company_name: string;
|
|
380
|
+
connection_status: string;
|
|
381
|
+
contact_person: string | null;
|
|
140
382
|
country: string | null;
|
|
141
383
|
created_at: string;
|
|
142
384
|
custom_fields: Json;
|
|
385
|
+
customer_class: string | null;
|
|
143
386
|
email: string | null;
|
|
387
|
+
external_id: string | null;
|
|
388
|
+
floriday_connection_id: string | null;
|
|
389
|
+
floriday_organization_id: string | null;
|
|
390
|
+
floriday_raw: Json | null;
|
|
391
|
+
gln: string | null;
|
|
392
|
+
house_number: string | null;
|
|
144
393
|
id: string;
|
|
394
|
+
is_active: boolean;
|
|
395
|
+
last_synced_at: string | null;
|
|
396
|
+
logo_url: string | null;
|
|
397
|
+
markets: string[];
|
|
145
398
|
notes: string | null;
|
|
399
|
+
organization_type: string | null;
|
|
400
|
+
payment_methods: string[];
|
|
146
401
|
phone: string | null;
|
|
147
402
|
postal_code: string | null;
|
|
403
|
+
product_groups: string[];
|
|
404
|
+
segments: string[];
|
|
405
|
+
source: string;
|
|
406
|
+
street: string | null;
|
|
407
|
+
sync_error: string | null;
|
|
408
|
+
sync_status: string;
|
|
409
|
+
trade_forms: string[];
|
|
148
410
|
updated_at: string;
|
|
411
|
+
vat_number: string | null;
|
|
412
|
+
website: string | null;
|
|
149
413
|
};
|
|
150
414
|
Insert: {
|
|
151
415
|
address?: string | null;
|
|
416
|
+
bio?: string | null;
|
|
152
417
|
city?: string | null;
|
|
418
|
+
commercial_name?: string | null;
|
|
153
419
|
company_name: string;
|
|
420
|
+
connection_status?: string;
|
|
421
|
+
contact_person?: string | null;
|
|
154
422
|
country?: string | null;
|
|
155
423
|
created_at?: string;
|
|
156
424
|
custom_fields?: Json;
|
|
425
|
+
customer_class?: string | null;
|
|
157
426
|
email?: string | null;
|
|
427
|
+
external_id?: string | null;
|
|
428
|
+
floriday_connection_id?: string | null;
|
|
429
|
+
floriday_organization_id?: string | null;
|
|
430
|
+
floriday_raw?: Json | null;
|
|
431
|
+
gln?: string | null;
|
|
432
|
+
house_number?: string | null;
|
|
158
433
|
id?: string;
|
|
434
|
+
is_active?: boolean;
|
|
435
|
+
last_synced_at?: string | null;
|
|
436
|
+
logo_url?: string | null;
|
|
437
|
+
markets?: string[];
|
|
159
438
|
notes?: string | null;
|
|
439
|
+
organization_type?: string | null;
|
|
440
|
+
payment_methods?: string[];
|
|
160
441
|
phone?: string | null;
|
|
161
442
|
postal_code?: string | null;
|
|
443
|
+
product_groups?: string[];
|
|
444
|
+
segments?: string[];
|
|
445
|
+
source?: string;
|
|
446
|
+
street?: string | null;
|
|
447
|
+
sync_error?: string | null;
|
|
448
|
+
sync_status?: string;
|
|
449
|
+
trade_forms?: string[];
|
|
162
450
|
updated_at?: string;
|
|
451
|
+
vat_number?: string | null;
|
|
452
|
+
website?: string | null;
|
|
163
453
|
};
|
|
164
454
|
Update: {
|
|
165
455
|
address?: string | null;
|
|
456
|
+
bio?: string | null;
|
|
166
457
|
city?: string | null;
|
|
458
|
+
commercial_name?: string | null;
|
|
167
459
|
company_name?: string;
|
|
460
|
+
connection_status?: string;
|
|
461
|
+
contact_person?: string | null;
|
|
168
462
|
country?: string | null;
|
|
169
463
|
created_at?: string;
|
|
170
464
|
custom_fields?: Json;
|
|
465
|
+
customer_class?: string | null;
|
|
171
466
|
email?: string | null;
|
|
467
|
+
external_id?: string | null;
|
|
468
|
+
floriday_connection_id?: string | null;
|
|
469
|
+
floriday_organization_id?: string | null;
|
|
470
|
+
floriday_raw?: Json | null;
|
|
471
|
+
gln?: string | null;
|
|
472
|
+
house_number?: string | null;
|
|
172
473
|
id?: string;
|
|
474
|
+
is_active?: boolean;
|
|
475
|
+
last_synced_at?: string | null;
|
|
476
|
+
logo_url?: string | null;
|
|
477
|
+
markets?: string[];
|
|
173
478
|
notes?: string | null;
|
|
479
|
+
organization_type?: string | null;
|
|
480
|
+
payment_methods?: string[];
|
|
174
481
|
phone?: string | null;
|
|
175
482
|
postal_code?: string | null;
|
|
483
|
+
product_groups?: string[];
|
|
484
|
+
segments?: string[];
|
|
485
|
+
source?: string;
|
|
486
|
+
street?: string | null;
|
|
487
|
+
sync_error?: string | null;
|
|
488
|
+
sync_status?: string;
|
|
489
|
+
trade_forms?: string[];
|
|
490
|
+
updated_at?: string;
|
|
491
|
+
vat_number?: string | null;
|
|
492
|
+
website?: string | null;
|
|
493
|
+
};
|
|
494
|
+
Relationships: [];
|
|
495
|
+
};
|
|
496
|
+
exact_connections: {
|
|
497
|
+
Row: {
|
|
498
|
+
access_token_encrypted: string;
|
|
499
|
+
company_name: string | null;
|
|
500
|
+
connected_at: string;
|
|
501
|
+
connected_by: string | null;
|
|
502
|
+
division_code: number | null;
|
|
503
|
+
environment: Database["public"]["Enums"]["exact_env"];
|
|
504
|
+
expires_at: string;
|
|
505
|
+
id: string;
|
|
506
|
+
refresh_token_encrypted: string;
|
|
507
|
+
status: string;
|
|
508
|
+
updated_at: string;
|
|
509
|
+
};
|
|
510
|
+
Insert: {
|
|
511
|
+
access_token_encrypted: string;
|
|
512
|
+
company_name?: string | null;
|
|
513
|
+
connected_at?: string;
|
|
514
|
+
connected_by?: string | null;
|
|
515
|
+
division_code?: number | null;
|
|
516
|
+
environment: Database["public"]["Enums"]["exact_env"];
|
|
517
|
+
expires_at: string;
|
|
518
|
+
id?: string;
|
|
519
|
+
refresh_token_encrypted: string;
|
|
520
|
+
status?: string;
|
|
521
|
+
updated_at?: string;
|
|
522
|
+
};
|
|
523
|
+
Update: {
|
|
524
|
+
access_token_encrypted?: string;
|
|
525
|
+
company_name?: string | null;
|
|
526
|
+
connected_at?: string;
|
|
527
|
+
connected_by?: string | null;
|
|
528
|
+
division_code?: number | null;
|
|
529
|
+
environment?: Database["public"]["Enums"]["exact_env"];
|
|
530
|
+
expires_at?: string;
|
|
531
|
+
id?: string;
|
|
532
|
+
refresh_token_encrypted?: string;
|
|
533
|
+
status?: string;
|
|
534
|
+
updated_at?: string;
|
|
535
|
+
};
|
|
536
|
+
Relationships: [];
|
|
537
|
+
};
|
|
538
|
+
exact_credentials: {
|
|
539
|
+
Row: {
|
|
540
|
+
client_id: string;
|
|
541
|
+
client_secret_encrypted: string;
|
|
542
|
+
created_at: string;
|
|
543
|
+
environment: Database["public"]["Enums"]["exact_env"];
|
|
544
|
+
id: string;
|
|
545
|
+
redirect_uri: string;
|
|
546
|
+
updated_at: string;
|
|
547
|
+
};
|
|
548
|
+
Insert: {
|
|
549
|
+
client_id: string;
|
|
550
|
+
client_secret_encrypted: string;
|
|
551
|
+
created_at?: string;
|
|
552
|
+
environment: Database["public"]["Enums"]["exact_env"];
|
|
553
|
+
id?: string;
|
|
554
|
+
redirect_uri: string;
|
|
555
|
+
updated_at?: string;
|
|
556
|
+
};
|
|
557
|
+
Update: {
|
|
558
|
+
client_id?: string;
|
|
559
|
+
client_secret_encrypted?: string;
|
|
560
|
+
created_at?: string;
|
|
561
|
+
environment?: Database["public"]["Enums"]["exact_env"];
|
|
562
|
+
id?: string;
|
|
563
|
+
redirect_uri?: string;
|
|
564
|
+
updated_at?: string;
|
|
565
|
+
};
|
|
566
|
+
Relationships: [];
|
|
567
|
+
};
|
|
568
|
+
exact_customers_cache: {
|
|
569
|
+
Row: {
|
|
570
|
+
connection_id: string;
|
|
571
|
+
data: Json;
|
|
572
|
+
exact_id: string;
|
|
573
|
+
fetched_at: string;
|
|
574
|
+
};
|
|
575
|
+
Insert: {
|
|
576
|
+
connection_id: string;
|
|
577
|
+
data?: Json;
|
|
578
|
+
exact_id: string;
|
|
579
|
+
fetched_at?: string;
|
|
580
|
+
};
|
|
581
|
+
Update: {
|
|
582
|
+
connection_id?: string;
|
|
583
|
+
data?: Json;
|
|
584
|
+
exact_id?: string;
|
|
585
|
+
fetched_at?: string;
|
|
586
|
+
};
|
|
587
|
+
Relationships: [];
|
|
588
|
+
};
|
|
589
|
+
exact_sync_state: {
|
|
590
|
+
Row: {
|
|
591
|
+
connection_id: string;
|
|
592
|
+
last_error: string | null;
|
|
593
|
+
last_modified_cursor: string | null;
|
|
594
|
+
last_synced_at: string | null;
|
|
595
|
+
status: string;
|
|
596
|
+
updated_at: string;
|
|
597
|
+
};
|
|
598
|
+
Insert: {
|
|
599
|
+
connection_id: string;
|
|
600
|
+
last_error?: string | null;
|
|
601
|
+
last_modified_cursor?: string | null;
|
|
602
|
+
last_synced_at?: string | null;
|
|
603
|
+
status?: string;
|
|
604
|
+
updated_at?: string;
|
|
605
|
+
};
|
|
606
|
+
Update: {
|
|
607
|
+
connection_id?: string;
|
|
608
|
+
last_error?: string | null;
|
|
609
|
+
last_modified_cursor?: string | null;
|
|
610
|
+
last_synced_at?: string | null;
|
|
611
|
+
status?: string;
|
|
176
612
|
updated_at?: string;
|
|
177
613
|
};
|
|
178
614
|
Relationships: [];
|
|
@@ -274,6 +710,7 @@ export type Database = {
|
|
|
274
710
|
client_id: string;
|
|
275
711
|
client_secret: string;
|
|
276
712
|
created_at: string;
|
|
713
|
+
customers_endpoint: string | null;
|
|
277
714
|
environment: string;
|
|
278
715
|
gln_code: string | null;
|
|
279
716
|
id: string;
|
|
@@ -291,6 +728,7 @@ export type Database = {
|
|
|
291
728
|
client_id: string;
|
|
292
729
|
client_secret: string;
|
|
293
730
|
created_at?: string;
|
|
731
|
+
customers_endpoint?: string | null;
|
|
294
732
|
environment: string;
|
|
295
733
|
gln_code?: string | null;
|
|
296
734
|
id?: string;
|
|
@@ -308,6 +746,7 @@ export type Database = {
|
|
|
308
746
|
client_id?: string;
|
|
309
747
|
client_secret?: string;
|
|
310
748
|
created_at?: string;
|
|
749
|
+
customers_endpoint?: string | null;
|
|
311
750
|
environment?: string;
|
|
312
751
|
gln_code?: string | null;
|
|
313
752
|
id?: string;
|
|
@@ -321,6 +760,92 @@ export type Database = {
|
|
|
321
760
|
};
|
|
322
761
|
Relationships: [];
|
|
323
762
|
};
|
|
763
|
+
floriday_customers_cache: {
|
|
764
|
+
Row: {
|
|
765
|
+
connection_id: string | null;
|
|
766
|
+
data: Json;
|
|
767
|
+
fetched_at: string;
|
|
768
|
+
organization_id: string;
|
|
769
|
+
};
|
|
770
|
+
Insert: {
|
|
771
|
+
connection_id?: string | null;
|
|
772
|
+
data?: Json;
|
|
773
|
+
fetched_at?: string;
|
|
774
|
+
organization_id: string;
|
|
775
|
+
};
|
|
776
|
+
Update: {
|
|
777
|
+
connection_id?: string | null;
|
|
778
|
+
data?: Json;
|
|
779
|
+
fetched_at?: string;
|
|
780
|
+
organization_id?: string;
|
|
781
|
+
};
|
|
782
|
+
Relationships: [
|
|
783
|
+
{
|
|
784
|
+
foreignKeyName: "floriday_customers_cache_connection_id_fkey";
|
|
785
|
+
columns: ["connection_id"];
|
|
786
|
+
isOneToOne: false;
|
|
787
|
+
referencedRelation: "floriday_connections";
|
|
788
|
+
referencedColumns: ["id"];
|
|
789
|
+
}
|
|
790
|
+
];
|
|
791
|
+
};
|
|
792
|
+
floriday_network_cache: {
|
|
793
|
+
Row: {
|
|
794
|
+
city: string | null;
|
|
795
|
+
connection_id: string;
|
|
796
|
+
country: string | null;
|
|
797
|
+
data: Json;
|
|
798
|
+
fetched_at: string;
|
|
799
|
+
gln: string | null;
|
|
800
|
+
organization_id: string;
|
|
801
|
+
organization_name: string | null;
|
|
802
|
+
};
|
|
803
|
+
Insert: {
|
|
804
|
+
city?: string | null;
|
|
805
|
+
connection_id: string;
|
|
806
|
+
country?: string | null;
|
|
807
|
+
data?: Json;
|
|
808
|
+
fetched_at?: string;
|
|
809
|
+
gln?: string | null;
|
|
810
|
+
organization_id: string;
|
|
811
|
+
organization_name?: string | null;
|
|
812
|
+
};
|
|
813
|
+
Update: {
|
|
814
|
+
city?: string | null;
|
|
815
|
+
connection_id?: string;
|
|
816
|
+
country?: string | null;
|
|
817
|
+
data?: Json;
|
|
818
|
+
fetched_at?: string;
|
|
819
|
+
gln?: string | null;
|
|
820
|
+
organization_id?: string;
|
|
821
|
+
organization_name?: string | null;
|
|
822
|
+
};
|
|
823
|
+
Relationships: [];
|
|
824
|
+
};
|
|
825
|
+
floriday_network_sync_state: {
|
|
826
|
+
Row: {
|
|
827
|
+
connection_id: string;
|
|
828
|
+
last_error: string | null;
|
|
829
|
+
last_sequence_number: number;
|
|
830
|
+
last_synced_at: string | null;
|
|
831
|
+
updated_at: string;
|
|
832
|
+
};
|
|
833
|
+
Insert: {
|
|
834
|
+
connection_id: string;
|
|
835
|
+
last_error?: string | null;
|
|
836
|
+
last_sequence_number?: number;
|
|
837
|
+
last_synced_at?: string | null;
|
|
838
|
+
updated_at?: string;
|
|
839
|
+
};
|
|
840
|
+
Update: {
|
|
841
|
+
connection_id?: string;
|
|
842
|
+
last_error?: string | null;
|
|
843
|
+
last_sequence_number?: number;
|
|
844
|
+
last_synced_at?: string | null;
|
|
845
|
+
updated_at?: string;
|
|
846
|
+
};
|
|
847
|
+
Relationships: [];
|
|
848
|
+
};
|
|
324
849
|
floriday_settings: {
|
|
325
850
|
Row: {
|
|
326
851
|
active_environment: string;
|
|
@@ -1036,6 +1561,13 @@ export type Database = {
|
|
|
1036
1561
|
};
|
|
1037
1562
|
Returns: boolean;
|
|
1038
1563
|
};
|
|
1564
|
+
schedule_floriday_network_sync: {
|
|
1565
|
+
Args: {
|
|
1566
|
+
p_apikey: string;
|
|
1567
|
+
p_url: string;
|
|
1568
|
+
};
|
|
1569
|
+
Returns: number;
|
|
1570
|
+
};
|
|
1039
1571
|
schedule_floriday_token_refresh: {
|
|
1040
1572
|
Args: {
|
|
1041
1573
|
p_apikey: string;
|
|
@@ -1043,9 +1575,20 @@ export type Database = {
|
|
|
1043
1575
|
};
|
|
1044
1576
|
Returns: number;
|
|
1045
1577
|
};
|
|
1578
|
+
show_limit: {
|
|
1579
|
+
Args: never;
|
|
1580
|
+
Returns: number;
|
|
1581
|
+
};
|
|
1582
|
+
show_trgm: {
|
|
1583
|
+
Args: {
|
|
1584
|
+
"": string;
|
|
1585
|
+
};
|
|
1586
|
+
Returns: string[];
|
|
1587
|
+
};
|
|
1046
1588
|
};
|
|
1047
1589
|
Enums: {
|
|
1048
1590
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
|
|
1591
|
+
exact_env: "staging" | "live";
|
|
1049
1592
|
};
|
|
1050
1593
|
CompositeTypes: {
|
|
1051
1594
|
[_ in never]: never;
|
|
@@ -1105,6 +1648,7 @@ export declare const Constants: {
|
|
|
1105
1648
|
readonly public: {
|
|
1106
1649
|
readonly Enums: {
|
|
1107
1650
|
readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer"];
|
|
1651
|
+
readonly exact_env: readonly ["staging", "live"];
|
|
1108
1652
|
};
|
|
1109
1653
|
};
|
|
1110
1654
|
};
|