@flowselections/floriday-authenticatie-module 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +548 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +548 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +548 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +560 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +5125 -193
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/package.json +16 -20
|
@@ -43,6 +43,174 @@ export type Database = {
|
|
|
43
43
|
};
|
|
44
44
|
Relationships: [];
|
|
45
45
|
};
|
|
46
|
+
collections: {
|
|
47
|
+
Row: {
|
|
48
|
+
created_at: string;
|
|
49
|
+
created_by: string | null;
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
updated_at: string;
|
|
53
|
+
};
|
|
54
|
+
Insert: {
|
|
55
|
+
created_at?: string;
|
|
56
|
+
created_by?: string | null;
|
|
57
|
+
id?: string;
|
|
58
|
+
name: string;
|
|
59
|
+
updated_at?: string;
|
|
60
|
+
};
|
|
61
|
+
Update: {
|
|
62
|
+
created_at?: string;
|
|
63
|
+
created_by?: string | null;
|
|
64
|
+
id?: string;
|
|
65
|
+
name?: string;
|
|
66
|
+
updated_at?: string;
|
|
67
|
+
};
|
|
68
|
+
Relationships: [];
|
|
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
|
+
};
|
|
46
214
|
customer_field_options: {
|
|
47
215
|
Row: {
|
|
48
216
|
created_at: string;
|
|
@@ -108,47 +276,306 @@ export type Database = {
|
|
|
108
276
|
};
|
|
109
277
|
Relationships: [];
|
|
110
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
|
+
};
|
|
111
373
|
customers: {
|
|
112
374
|
Row: {
|
|
113
375
|
address: string | null;
|
|
376
|
+
bio: string | null;
|
|
114
377
|
city: string | null;
|
|
378
|
+
commercial_name: string | null;
|
|
115
379
|
company_name: string;
|
|
380
|
+
connection_status: string;
|
|
381
|
+
contact_person: string | null;
|
|
116
382
|
country: string | null;
|
|
117
383
|
created_at: string;
|
|
118
384
|
custom_fields: Json;
|
|
385
|
+
customer_class: string | null;
|
|
119
386
|
email: string | null;
|
|
387
|
+
floriday_connection_id: string | null;
|
|
388
|
+
floriday_organization_id: string | null;
|
|
389
|
+
floriday_raw: Json | null;
|
|
390
|
+
gln: string | null;
|
|
391
|
+
house_number: string | null;
|
|
120
392
|
id: string;
|
|
393
|
+
is_active: boolean;
|
|
394
|
+
last_synced_at: string | null;
|
|
395
|
+
logo_url: string | null;
|
|
396
|
+
markets: string[];
|
|
121
397
|
notes: string | null;
|
|
398
|
+
organization_type: string | null;
|
|
399
|
+
payment_methods: string[];
|
|
122
400
|
phone: string | null;
|
|
123
401
|
postal_code: string | null;
|
|
402
|
+
product_groups: string[];
|
|
403
|
+
segments: string[];
|
|
404
|
+
source: string;
|
|
405
|
+
street: string | null;
|
|
406
|
+
sync_error: string | null;
|
|
407
|
+
sync_status: string;
|
|
408
|
+
trade_forms: string[];
|
|
124
409
|
updated_at: string;
|
|
410
|
+
vat_number: string | null;
|
|
411
|
+
website: string | null;
|
|
125
412
|
};
|
|
126
413
|
Insert: {
|
|
127
414
|
address?: string | null;
|
|
415
|
+
bio?: string | null;
|
|
128
416
|
city?: string | null;
|
|
417
|
+
commercial_name?: string | null;
|
|
129
418
|
company_name: string;
|
|
419
|
+
connection_status?: string;
|
|
420
|
+
contact_person?: string | null;
|
|
130
421
|
country?: string | null;
|
|
131
422
|
created_at?: string;
|
|
132
423
|
custom_fields?: Json;
|
|
424
|
+
customer_class?: string | null;
|
|
133
425
|
email?: string | null;
|
|
426
|
+
floriday_connection_id?: string | null;
|
|
427
|
+
floriday_organization_id?: string | null;
|
|
428
|
+
floriday_raw?: Json | null;
|
|
429
|
+
gln?: string | null;
|
|
430
|
+
house_number?: string | null;
|
|
134
431
|
id?: string;
|
|
432
|
+
is_active?: boolean;
|
|
433
|
+
last_synced_at?: string | null;
|
|
434
|
+
logo_url?: string | null;
|
|
435
|
+
markets?: string[];
|
|
135
436
|
notes?: string | null;
|
|
437
|
+
organization_type?: string | null;
|
|
438
|
+
payment_methods?: string[];
|
|
136
439
|
phone?: string | null;
|
|
137
440
|
postal_code?: string | null;
|
|
441
|
+
product_groups?: string[];
|
|
442
|
+
segments?: string[];
|
|
443
|
+
source?: string;
|
|
444
|
+
street?: string | null;
|
|
445
|
+
sync_error?: string | null;
|
|
446
|
+
sync_status?: string;
|
|
447
|
+
trade_forms?: string[];
|
|
138
448
|
updated_at?: string;
|
|
449
|
+
vat_number?: string | null;
|
|
450
|
+
website?: string | null;
|
|
139
451
|
};
|
|
140
452
|
Update: {
|
|
141
453
|
address?: string | null;
|
|
454
|
+
bio?: string | null;
|
|
142
455
|
city?: string | null;
|
|
456
|
+
commercial_name?: string | null;
|
|
143
457
|
company_name?: string;
|
|
458
|
+
connection_status?: string;
|
|
459
|
+
contact_person?: string | null;
|
|
144
460
|
country?: string | null;
|
|
145
461
|
created_at?: string;
|
|
146
462
|
custom_fields?: Json;
|
|
463
|
+
customer_class?: string | null;
|
|
147
464
|
email?: string | null;
|
|
465
|
+
floriday_connection_id?: string | null;
|
|
466
|
+
floriday_organization_id?: string | null;
|
|
467
|
+
floriday_raw?: Json | null;
|
|
468
|
+
gln?: string | null;
|
|
469
|
+
house_number?: string | null;
|
|
148
470
|
id?: string;
|
|
471
|
+
is_active?: boolean;
|
|
472
|
+
last_synced_at?: string | null;
|
|
473
|
+
logo_url?: string | null;
|
|
474
|
+
markets?: string[];
|
|
149
475
|
notes?: string | null;
|
|
476
|
+
organization_type?: string | null;
|
|
477
|
+
payment_methods?: string[];
|
|
150
478
|
phone?: string | null;
|
|
151
479
|
postal_code?: string | null;
|
|
480
|
+
product_groups?: string[];
|
|
481
|
+
segments?: string[];
|
|
482
|
+
source?: string;
|
|
483
|
+
street?: string | null;
|
|
484
|
+
sync_error?: string | null;
|
|
485
|
+
sync_status?: string;
|
|
486
|
+
trade_forms?: string[];
|
|
487
|
+
updated_at?: string;
|
|
488
|
+
vat_number?: string | null;
|
|
489
|
+
website?: string | null;
|
|
490
|
+
};
|
|
491
|
+
Relationships: [];
|
|
492
|
+
};
|
|
493
|
+
floricode_connection_settings: {
|
|
494
|
+
Row: {
|
|
495
|
+
catalog_key: string | null;
|
|
496
|
+
catalog_url: string;
|
|
497
|
+
created_at: string;
|
|
498
|
+
id: number;
|
|
499
|
+
last_meta: Json | null;
|
|
500
|
+
last_test_at: string | null;
|
|
501
|
+
last_test_error: string | null;
|
|
502
|
+
last_test_ok: boolean | null;
|
|
503
|
+
updated_at: string;
|
|
504
|
+
};
|
|
505
|
+
Insert: {
|
|
506
|
+
catalog_key?: string | null;
|
|
507
|
+
catalog_url?: string;
|
|
508
|
+
created_at?: string;
|
|
509
|
+
id?: number;
|
|
510
|
+
last_meta?: Json | null;
|
|
511
|
+
last_test_at?: string | null;
|
|
512
|
+
last_test_error?: string | null;
|
|
513
|
+
last_test_ok?: boolean | null;
|
|
514
|
+
updated_at?: string;
|
|
515
|
+
};
|
|
516
|
+
Update: {
|
|
517
|
+
catalog_key?: string | null;
|
|
518
|
+
catalog_url?: string;
|
|
519
|
+
created_at?: string;
|
|
520
|
+
id?: number;
|
|
521
|
+
last_meta?: Json | null;
|
|
522
|
+
last_test_at?: string | null;
|
|
523
|
+
last_test_error?: string | null;
|
|
524
|
+
last_test_ok?: boolean | null;
|
|
525
|
+
updated_at?: string;
|
|
526
|
+
};
|
|
527
|
+
Relationships: [];
|
|
528
|
+
};
|
|
529
|
+
floricode_records: {
|
|
530
|
+
Row: {
|
|
531
|
+
change_date_time: string | null;
|
|
532
|
+
data: Json;
|
|
533
|
+
last_synced_at: string;
|
|
534
|
+
record_id: string;
|
|
535
|
+
resource: string;
|
|
536
|
+
};
|
|
537
|
+
Insert: {
|
|
538
|
+
change_date_time?: string | null;
|
|
539
|
+
data?: Json;
|
|
540
|
+
last_synced_at?: string;
|
|
541
|
+
record_id: string;
|
|
542
|
+
resource: string;
|
|
543
|
+
};
|
|
544
|
+
Update: {
|
|
545
|
+
change_date_time?: string | null;
|
|
546
|
+
data?: Json;
|
|
547
|
+
last_synced_at?: string;
|
|
548
|
+
record_id?: string;
|
|
549
|
+
resource?: string;
|
|
550
|
+
};
|
|
551
|
+
Relationships: [];
|
|
552
|
+
};
|
|
553
|
+
floricode_sync_state: {
|
|
554
|
+
Row: {
|
|
555
|
+
error_message: string | null;
|
|
556
|
+
last_change_date_time: string | null;
|
|
557
|
+
last_sequence_number: number;
|
|
558
|
+
last_sync_at: string | null;
|
|
559
|
+
resource: string;
|
|
560
|
+
status: string;
|
|
561
|
+
updated_at: string;
|
|
562
|
+
};
|
|
563
|
+
Insert: {
|
|
564
|
+
error_message?: string | null;
|
|
565
|
+
last_change_date_time?: string | null;
|
|
566
|
+
last_sequence_number?: number;
|
|
567
|
+
last_sync_at?: string | null;
|
|
568
|
+
resource: string;
|
|
569
|
+
status?: string;
|
|
570
|
+
updated_at?: string;
|
|
571
|
+
};
|
|
572
|
+
Update: {
|
|
573
|
+
error_message?: string | null;
|
|
574
|
+
last_change_date_time?: string | null;
|
|
575
|
+
last_sequence_number?: number;
|
|
576
|
+
last_sync_at?: string | null;
|
|
577
|
+
resource?: string;
|
|
578
|
+
status?: string;
|
|
152
579
|
updated_at?: string;
|
|
153
580
|
};
|
|
154
581
|
Relationships: [];
|
|
@@ -160,6 +587,7 @@ export type Database = {
|
|
|
160
587
|
client_id: string;
|
|
161
588
|
client_secret: string;
|
|
162
589
|
created_at: string;
|
|
590
|
+
customers_endpoint: string | null;
|
|
163
591
|
environment: string;
|
|
164
592
|
gln_code: string | null;
|
|
165
593
|
id: string;
|
|
@@ -177,6 +605,7 @@ export type Database = {
|
|
|
177
605
|
client_id: string;
|
|
178
606
|
client_secret: string;
|
|
179
607
|
created_at?: string;
|
|
608
|
+
customers_endpoint?: string | null;
|
|
180
609
|
environment: string;
|
|
181
610
|
gln_code?: string | null;
|
|
182
611
|
id?: string;
|
|
@@ -194,6 +623,7 @@ export type Database = {
|
|
|
194
623
|
client_id?: string;
|
|
195
624
|
client_secret?: string;
|
|
196
625
|
created_at?: string;
|
|
626
|
+
customers_endpoint?: string | null;
|
|
197
627
|
environment?: string;
|
|
198
628
|
gln_code?: string | null;
|
|
199
629
|
id?: string;
|
|
@@ -207,6 +637,92 @@ export type Database = {
|
|
|
207
637
|
};
|
|
208
638
|
Relationships: [];
|
|
209
639
|
};
|
|
640
|
+
floriday_customers_cache: {
|
|
641
|
+
Row: {
|
|
642
|
+
connection_id: string | null;
|
|
643
|
+
data: Json;
|
|
644
|
+
fetched_at: string;
|
|
645
|
+
organization_id: string;
|
|
646
|
+
};
|
|
647
|
+
Insert: {
|
|
648
|
+
connection_id?: string | null;
|
|
649
|
+
data?: Json;
|
|
650
|
+
fetched_at?: string;
|
|
651
|
+
organization_id: string;
|
|
652
|
+
};
|
|
653
|
+
Update: {
|
|
654
|
+
connection_id?: string | null;
|
|
655
|
+
data?: Json;
|
|
656
|
+
fetched_at?: string;
|
|
657
|
+
organization_id?: string;
|
|
658
|
+
};
|
|
659
|
+
Relationships: [
|
|
660
|
+
{
|
|
661
|
+
foreignKeyName: "floriday_customers_cache_connection_id_fkey";
|
|
662
|
+
columns: ["connection_id"];
|
|
663
|
+
isOneToOne: false;
|
|
664
|
+
referencedRelation: "floriday_connections";
|
|
665
|
+
referencedColumns: ["id"];
|
|
666
|
+
}
|
|
667
|
+
];
|
|
668
|
+
};
|
|
669
|
+
floriday_network_cache: {
|
|
670
|
+
Row: {
|
|
671
|
+
city: string | null;
|
|
672
|
+
connection_id: string;
|
|
673
|
+
country: string | null;
|
|
674
|
+
data: Json;
|
|
675
|
+
fetched_at: string;
|
|
676
|
+
gln: string | null;
|
|
677
|
+
organization_id: string;
|
|
678
|
+
organization_name: string | null;
|
|
679
|
+
};
|
|
680
|
+
Insert: {
|
|
681
|
+
city?: string | null;
|
|
682
|
+
connection_id: string;
|
|
683
|
+
country?: string | null;
|
|
684
|
+
data?: Json;
|
|
685
|
+
fetched_at?: string;
|
|
686
|
+
gln?: string | null;
|
|
687
|
+
organization_id: string;
|
|
688
|
+
organization_name?: string | null;
|
|
689
|
+
};
|
|
690
|
+
Update: {
|
|
691
|
+
city?: string | null;
|
|
692
|
+
connection_id?: string;
|
|
693
|
+
country?: string | null;
|
|
694
|
+
data?: Json;
|
|
695
|
+
fetched_at?: string;
|
|
696
|
+
gln?: string | null;
|
|
697
|
+
organization_id?: string;
|
|
698
|
+
organization_name?: string | null;
|
|
699
|
+
};
|
|
700
|
+
Relationships: [];
|
|
701
|
+
};
|
|
702
|
+
floriday_network_sync_state: {
|
|
703
|
+
Row: {
|
|
704
|
+
connection_id: string;
|
|
705
|
+
last_error: string | null;
|
|
706
|
+
last_sequence_number: number;
|
|
707
|
+
last_synced_at: string | null;
|
|
708
|
+
updated_at: string;
|
|
709
|
+
};
|
|
710
|
+
Insert: {
|
|
711
|
+
connection_id: string;
|
|
712
|
+
last_error?: string | null;
|
|
713
|
+
last_sequence_number?: number;
|
|
714
|
+
last_synced_at?: string | null;
|
|
715
|
+
updated_at?: string;
|
|
716
|
+
};
|
|
717
|
+
Update: {
|
|
718
|
+
connection_id?: string;
|
|
719
|
+
last_error?: string | null;
|
|
720
|
+
last_sequence_number?: number;
|
|
721
|
+
last_synced_at?: string | null;
|
|
722
|
+
updated_at?: string;
|
|
723
|
+
};
|
|
724
|
+
Relationships: [];
|
|
725
|
+
};
|
|
210
726
|
floriday_settings: {
|
|
211
727
|
Row: {
|
|
212
728
|
active_environment: string;
|
|
@@ -854,6 +1370,33 @@ export type Database = {
|
|
|
854
1370
|
};
|
|
855
1371
|
Relationships: [];
|
|
856
1372
|
};
|
|
1373
|
+
trade_item_drafts: {
|
|
1374
|
+
Row: {
|
|
1375
|
+
connection_id: string | null;
|
|
1376
|
+
created_at: string;
|
|
1377
|
+
data: Json;
|
|
1378
|
+
id: string;
|
|
1379
|
+
updated_at: string;
|
|
1380
|
+
user_id: string;
|
|
1381
|
+
};
|
|
1382
|
+
Insert: {
|
|
1383
|
+
connection_id?: string | null;
|
|
1384
|
+
created_at?: string;
|
|
1385
|
+
data?: Json;
|
|
1386
|
+
id?: string;
|
|
1387
|
+
updated_at?: string;
|
|
1388
|
+
user_id: string;
|
|
1389
|
+
};
|
|
1390
|
+
Update: {
|
|
1391
|
+
connection_id?: string | null;
|
|
1392
|
+
created_at?: string;
|
|
1393
|
+
data?: Json;
|
|
1394
|
+
id?: string;
|
|
1395
|
+
updated_at?: string;
|
|
1396
|
+
user_id?: string;
|
|
1397
|
+
};
|
|
1398
|
+
Relationships: [];
|
|
1399
|
+
};
|
|
857
1400
|
user_roles: {
|
|
858
1401
|
Row: {
|
|
859
1402
|
created_at: string;
|
|
@@ -895,6 +1438,13 @@ export type Database = {
|
|
|
895
1438
|
};
|
|
896
1439
|
Returns: boolean;
|
|
897
1440
|
};
|
|
1441
|
+
schedule_floriday_network_sync: {
|
|
1442
|
+
Args: {
|
|
1443
|
+
p_apikey: string;
|
|
1444
|
+
p_url: string;
|
|
1445
|
+
};
|
|
1446
|
+
Returns: number;
|
|
1447
|
+
};
|
|
898
1448
|
schedule_floriday_token_refresh: {
|
|
899
1449
|
Args: {
|
|
900
1450
|
p_apikey: string;
|
|
@@ -902,6 +1452,16 @@ export type Database = {
|
|
|
902
1452
|
};
|
|
903
1453
|
Returns: number;
|
|
904
1454
|
};
|
|
1455
|
+
show_limit: {
|
|
1456
|
+
Args: never;
|
|
1457
|
+
Returns: number;
|
|
1458
|
+
};
|
|
1459
|
+
show_trgm: {
|
|
1460
|
+
Args: {
|
|
1461
|
+
"": string;
|
|
1462
|
+
};
|
|
1463
|
+
Returns: string[];
|
|
1464
|
+
};
|
|
905
1465
|
};
|
|
906
1466
|
Enums: {
|
|
907
1467
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
|