@flowselections/floriday-afhandeling-module 1.0.6 → 1.0.8
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/components/afhandeling/LeveringenPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/LeveringenPage.js +23 -2
- package/dist-lib/components/afhandeling/NieuweLeveringPage.d.ts +2 -0
- package/dist-lib/components/afhandeling/NieuweLeveringPage.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/NieuweLeveringPage.js +7 -0
- package/dist-lib/components/afhandeling/VervoerderForm.d.ts +6 -0
- package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/VervoerderForm.js +136 -0
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts +2 -0
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/VervoerdersPage.js +41 -0
- package/dist-lib/index.d.ts +2 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +6 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +3038 -234
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +3038 -234
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +3038 -234
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +3170 -296
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +18 -1
- package/dist-lib/lib/carriers.functions.d.ts +26576 -0
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -0
- package/dist-lib/lib/carriers.functions.js +131 -0
- package/dist-lib/lib/countries.d.ts +7 -0
- package/dist-lib/lib/countries.d.ts.map +1 -0
- package/dist-lib/lib/countries.js +47 -0
- package/dist-lib/lib/floriday.functions.d.ts +3040 -235
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +4 -5
- package/package.json +8 -3
|
@@ -187,6 +187,153 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
187
187
|
};
|
|
188
188
|
Relationships: [];
|
|
189
189
|
};
|
|
190
|
+
app_settings: {
|
|
191
|
+
Row: {
|
|
192
|
+
created_at: string;
|
|
193
|
+
id: string;
|
|
194
|
+
key: string;
|
|
195
|
+
updated_at: string;
|
|
196
|
+
value: string | null;
|
|
197
|
+
};
|
|
198
|
+
Insert: {
|
|
199
|
+
created_at?: string;
|
|
200
|
+
id?: string;
|
|
201
|
+
key: string;
|
|
202
|
+
updated_at?: string;
|
|
203
|
+
value?: string | null;
|
|
204
|
+
};
|
|
205
|
+
Update: {
|
|
206
|
+
created_at?: string;
|
|
207
|
+
id?: string;
|
|
208
|
+
key?: string;
|
|
209
|
+
updated_at?: string;
|
|
210
|
+
value?: string | null;
|
|
211
|
+
};
|
|
212
|
+
Relationships: [];
|
|
213
|
+
};
|
|
214
|
+
booking_items: {
|
|
215
|
+
Row: {
|
|
216
|
+
booking_id: string;
|
|
217
|
+
created_at: string;
|
|
218
|
+
extra_id: string;
|
|
219
|
+
id: string;
|
|
220
|
+
quantity: number;
|
|
221
|
+
total_price: number;
|
|
222
|
+
unit_price: number;
|
|
223
|
+
};
|
|
224
|
+
Insert: {
|
|
225
|
+
booking_id: string;
|
|
226
|
+
created_at?: string;
|
|
227
|
+
extra_id: string;
|
|
228
|
+
id?: string;
|
|
229
|
+
quantity?: number;
|
|
230
|
+
total_price?: number;
|
|
231
|
+
unit_price?: number;
|
|
232
|
+
};
|
|
233
|
+
Update: {
|
|
234
|
+
booking_id?: string;
|
|
235
|
+
created_at?: string;
|
|
236
|
+
extra_id?: string;
|
|
237
|
+
id?: string;
|
|
238
|
+
quantity?: number;
|
|
239
|
+
total_price?: number;
|
|
240
|
+
unit_price?: number;
|
|
241
|
+
};
|
|
242
|
+
Relationships: [{
|
|
243
|
+
foreignKeyName: "booking_items_booking_id_fkey";
|
|
244
|
+
columns: ["booking_id"];
|
|
245
|
+
isOneToOne: false;
|
|
246
|
+
referencedRelation: "bookings";
|
|
247
|
+
referencedColumns: ["id"];
|
|
248
|
+
}, {
|
|
249
|
+
foreignKeyName: "booking_items_extra_id_fkey";
|
|
250
|
+
columns: ["extra_id"];
|
|
251
|
+
isOneToOne: false;
|
|
252
|
+
referencedRelation: "extras";
|
|
253
|
+
referencedColumns: ["id"];
|
|
254
|
+
}];
|
|
255
|
+
};
|
|
256
|
+
bookings: {
|
|
257
|
+
Row: {
|
|
258
|
+
company_name: string | null;
|
|
259
|
+
conflict_checked_at: string | null;
|
|
260
|
+
conflict_reason: string | null;
|
|
261
|
+
created_at: string;
|
|
262
|
+
created_by_role: string | null;
|
|
263
|
+
customer_email: string | null;
|
|
264
|
+
customer_name: string | null;
|
|
265
|
+
end_time: string;
|
|
266
|
+
exact_debiteur_id: string | null;
|
|
267
|
+
has_conflict: boolean;
|
|
268
|
+
id: string;
|
|
269
|
+
invoice_run_id: string | null;
|
|
270
|
+
invoice_status: string | null;
|
|
271
|
+
invoiced_at: string | null;
|
|
272
|
+
number_of_people: number;
|
|
273
|
+
room_id: string;
|
|
274
|
+
start_time: string;
|
|
275
|
+
status: string;
|
|
276
|
+
total_excl_vat: number | null;
|
|
277
|
+
total_incl_vat: number | null;
|
|
278
|
+
user_id: string | null;
|
|
279
|
+
vat_amount: number | null;
|
|
280
|
+
};
|
|
281
|
+
Insert: {
|
|
282
|
+
company_name?: string | null;
|
|
283
|
+
conflict_checked_at?: string | null;
|
|
284
|
+
conflict_reason?: string | null;
|
|
285
|
+
created_at?: string;
|
|
286
|
+
created_by_role?: string | null;
|
|
287
|
+
customer_email?: string | null;
|
|
288
|
+
customer_name?: string | null;
|
|
289
|
+
end_time: string;
|
|
290
|
+
exact_debiteur_id?: string | null;
|
|
291
|
+
has_conflict?: boolean;
|
|
292
|
+
id?: string;
|
|
293
|
+
invoice_run_id?: string | null;
|
|
294
|
+
invoice_status?: string | null;
|
|
295
|
+
invoiced_at?: string | null;
|
|
296
|
+
number_of_people?: number;
|
|
297
|
+
room_id: string;
|
|
298
|
+
start_time: string;
|
|
299
|
+
status?: string;
|
|
300
|
+
total_excl_vat?: number | null;
|
|
301
|
+
total_incl_vat?: number | null;
|
|
302
|
+
user_id?: string | null;
|
|
303
|
+
vat_amount?: number | null;
|
|
304
|
+
};
|
|
305
|
+
Update: {
|
|
306
|
+
company_name?: string | null;
|
|
307
|
+
conflict_checked_at?: string | null;
|
|
308
|
+
conflict_reason?: string | null;
|
|
309
|
+
created_at?: string;
|
|
310
|
+
created_by_role?: string | null;
|
|
311
|
+
customer_email?: string | null;
|
|
312
|
+
customer_name?: string | null;
|
|
313
|
+
end_time?: string;
|
|
314
|
+
exact_debiteur_id?: string | null;
|
|
315
|
+
has_conflict?: boolean;
|
|
316
|
+
id?: string;
|
|
317
|
+
invoice_run_id?: string | null;
|
|
318
|
+
invoice_status?: string | null;
|
|
319
|
+
invoiced_at?: string | null;
|
|
320
|
+
number_of_people?: number;
|
|
321
|
+
room_id?: string;
|
|
322
|
+
start_time?: string;
|
|
323
|
+
status?: string;
|
|
324
|
+
total_excl_vat?: number | null;
|
|
325
|
+
total_incl_vat?: number | null;
|
|
326
|
+
user_id?: string | null;
|
|
327
|
+
vat_amount?: number | null;
|
|
328
|
+
};
|
|
329
|
+
Relationships: [{
|
|
330
|
+
foreignKeyName: "bookings_room_id_fkey";
|
|
331
|
+
columns: ["room_id"];
|
|
332
|
+
isOneToOne: false;
|
|
333
|
+
referencedRelation: "rooms";
|
|
334
|
+
referencedColumns: ["id"];
|
|
335
|
+
}];
|
|
336
|
+
};
|
|
190
337
|
bugs: {
|
|
191
338
|
Row: {
|
|
192
339
|
attachment_url: string | null;
|
|
@@ -223,6 +370,84 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
223
370
|
};
|
|
224
371
|
Relationships: [];
|
|
225
372
|
};
|
|
373
|
+
carrier_shipping_rates: {
|
|
374
|
+
Row: {
|
|
375
|
+
carrier_id: string;
|
|
376
|
+
country_code: string;
|
|
377
|
+
created_at: string;
|
|
378
|
+
id: string;
|
|
379
|
+
price_per_trolley: number;
|
|
380
|
+
};
|
|
381
|
+
Insert: {
|
|
382
|
+
carrier_id: string;
|
|
383
|
+
country_code: string;
|
|
384
|
+
created_at?: string;
|
|
385
|
+
id?: string;
|
|
386
|
+
price_per_trolley: number;
|
|
387
|
+
};
|
|
388
|
+
Update: {
|
|
389
|
+
carrier_id?: string;
|
|
390
|
+
country_code?: string;
|
|
391
|
+
created_at?: string;
|
|
392
|
+
id?: string;
|
|
393
|
+
price_per_trolley?: number;
|
|
394
|
+
};
|
|
395
|
+
Relationships: [{
|
|
396
|
+
foreignKeyName: "carrier_shipping_rates_carrier_id_fkey";
|
|
397
|
+
columns: ["carrier_id"];
|
|
398
|
+
isOneToOne: false;
|
|
399
|
+
referencedRelation: "carriers";
|
|
400
|
+
referencedColumns: ["id"];
|
|
401
|
+
}];
|
|
402
|
+
};
|
|
403
|
+
carriers: {
|
|
404
|
+
Row: {
|
|
405
|
+
address: string | null;
|
|
406
|
+
contact_person: string | null;
|
|
407
|
+
created_at: string;
|
|
408
|
+
delivery_days: number | null;
|
|
409
|
+
email: string | null;
|
|
410
|
+
id: string;
|
|
411
|
+
name: string;
|
|
412
|
+
notes: string | null;
|
|
413
|
+
phone: string | null;
|
|
414
|
+
signup_time_1: string | null;
|
|
415
|
+
signup_time_2: string | null;
|
|
416
|
+
updated_at: string;
|
|
417
|
+
user_id: string;
|
|
418
|
+
};
|
|
419
|
+
Insert: {
|
|
420
|
+
address?: string | null;
|
|
421
|
+
contact_person?: string | null;
|
|
422
|
+
created_at?: string;
|
|
423
|
+
delivery_days?: number | null;
|
|
424
|
+
email?: string | null;
|
|
425
|
+
id?: string;
|
|
426
|
+
name: string;
|
|
427
|
+
notes?: string | null;
|
|
428
|
+
phone?: string | null;
|
|
429
|
+
signup_time_1?: string | null;
|
|
430
|
+
signup_time_2?: string | null;
|
|
431
|
+
updated_at?: string;
|
|
432
|
+
user_id: string;
|
|
433
|
+
};
|
|
434
|
+
Update: {
|
|
435
|
+
address?: string | null;
|
|
436
|
+
contact_person?: string | null;
|
|
437
|
+
created_at?: string;
|
|
438
|
+
delivery_days?: number | null;
|
|
439
|
+
email?: string | null;
|
|
440
|
+
id?: string;
|
|
441
|
+
name?: string;
|
|
442
|
+
notes?: string | null;
|
|
443
|
+
phone?: string | null;
|
|
444
|
+
signup_time_1?: string | null;
|
|
445
|
+
signup_time_2?: string | null;
|
|
446
|
+
updated_at?: string;
|
|
447
|
+
user_id?: string;
|
|
448
|
+
};
|
|
449
|
+
Relationships: [];
|
|
450
|
+
};
|
|
226
451
|
collections: {
|
|
227
452
|
Row: {
|
|
228
453
|
created_at: string;
|
|
@@ -931,114 +1156,423 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
931
1156
|
};
|
|
932
1157
|
Relationships: [];
|
|
933
1158
|
};
|
|
934
|
-
|
|
1159
|
+
email_auth_connections: {
|
|
935
1160
|
Row: {
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1161
|
+
access_token_encrypted: string | null;
|
|
1162
|
+
account_email: string | null;
|
|
1163
|
+
client_id_encrypted: string | null;
|
|
1164
|
+
client_secret_encrypted: string | null;
|
|
1165
|
+
created_at: string;
|
|
1166
|
+
created_by: string | null;
|
|
1167
|
+
display_name: string | null;
|
|
1168
|
+
gmail_history_id: string | null;
|
|
1169
|
+
gmail_watch_expires_at: string | null;
|
|
1170
|
+
graph_subscription_expires_at: string | null;
|
|
1171
|
+
graph_subscription_id: string | null;
|
|
942
1172
|
id: string;
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
1173
|
+
imap_host: string | null;
|
|
1174
|
+
imap_last_uid: number | null;
|
|
1175
|
+
imap_password_encrypted: string | null;
|
|
1176
|
+
imap_port: number | null;
|
|
1177
|
+
imap_secure: boolean | null;
|
|
1178
|
+
imap_uid_validity: number | null;
|
|
1179
|
+
imap_username: string | null;
|
|
1180
|
+
is_active: boolean;
|
|
1181
|
+
last_error: string | null;
|
|
1182
|
+
last_event_at: string | null;
|
|
1183
|
+
last_verified_at: string | null;
|
|
1184
|
+
oauth_mode: string | null;
|
|
1185
|
+
provider: string;
|
|
1186
|
+
purpose_assignments: import("./types").Json;
|
|
1187
|
+
realtime_mode: string;
|
|
1188
|
+
refresh_token_encrypted: string | null;
|
|
1189
|
+
scopes: string[] | null;
|
|
1190
|
+
smtp_host: string | null;
|
|
1191
|
+
smtp_password_encrypted: string | null;
|
|
1192
|
+
smtp_port: number | null;
|
|
1193
|
+
smtp_secure: boolean | null;
|
|
1194
|
+
smtp_username: string | null;
|
|
1195
|
+
status: string;
|
|
1196
|
+
token_expires_at: string | null;
|
|
1197
|
+
updated_at: string;
|
|
949
1198
|
};
|
|
950
1199
|
Insert: {
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
1200
|
+
access_token_encrypted?: string | null;
|
|
1201
|
+
account_email?: string | null;
|
|
1202
|
+
client_id_encrypted?: string | null;
|
|
1203
|
+
client_secret_encrypted?: string | null;
|
|
1204
|
+
created_at?: string;
|
|
1205
|
+
created_by?: string | null;
|
|
1206
|
+
display_name?: string | null;
|
|
1207
|
+
gmail_history_id?: string | null;
|
|
1208
|
+
gmail_watch_expires_at?: string | null;
|
|
1209
|
+
graph_subscription_expires_at?: string | null;
|
|
1210
|
+
graph_subscription_id?: string | null;
|
|
1211
|
+
id?: string;
|
|
1212
|
+
imap_host?: string | null;
|
|
1213
|
+
imap_last_uid?: number | null;
|
|
1214
|
+
imap_password_encrypted?: string | null;
|
|
1215
|
+
imap_port?: number | null;
|
|
1216
|
+
imap_secure?: boolean | null;
|
|
1217
|
+
imap_uid_validity?: number | null;
|
|
1218
|
+
imap_username?: string | null;
|
|
1219
|
+
is_active?: boolean;
|
|
1220
|
+
last_error?: string | null;
|
|
1221
|
+
last_event_at?: string | null;
|
|
1222
|
+
last_verified_at?: string | null;
|
|
1223
|
+
oauth_mode?: string | null;
|
|
1224
|
+
provider: string;
|
|
1225
|
+
purpose_assignments?: import("./types").Json;
|
|
1226
|
+
realtime_mode?: string;
|
|
1227
|
+
refresh_token_encrypted?: string | null;
|
|
1228
|
+
scopes?: string[] | null;
|
|
1229
|
+
smtp_host?: string | null;
|
|
1230
|
+
smtp_password_encrypted?: string | null;
|
|
1231
|
+
smtp_port?: number | null;
|
|
1232
|
+
smtp_secure?: boolean | null;
|
|
1233
|
+
smtp_username?: string | null;
|
|
1234
|
+
status?: string;
|
|
1235
|
+
token_expires_at?: string | null;
|
|
1236
|
+
updated_at?: string;
|
|
964
1237
|
};
|
|
965
1238
|
Update: {
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
1239
|
+
access_token_encrypted?: string | null;
|
|
1240
|
+
account_email?: string | null;
|
|
1241
|
+
client_id_encrypted?: string | null;
|
|
1242
|
+
client_secret_encrypted?: string | null;
|
|
1243
|
+
created_at?: string;
|
|
1244
|
+
created_by?: string | null;
|
|
1245
|
+
display_name?: string | null;
|
|
1246
|
+
gmail_history_id?: string | null;
|
|
1247
|
+
gmail_watch_expires_at?: string | null;
|
|
1248
|
+
graph_subscription_expires_at?: string | null;
|
|
1249
|
+
graph_subscription_id?: string | null;
|
|
1250
|
+
id?: string;
|
|
1251
|
+
imap_host?: string | null;
|
|
1252
|
+
imap_last_uid?: number | null;
|
|
1253
|
+
imap_password_encrypted?: string | null;
|
|
1254
|
+
imap_port?: number | null;
|
|
1255
|
+
imap_secure?: boolean | null;
|
|
1256
|
+
imap_uid_validity?: number | null;
|
|
1257
|
+
imap_username?: string | null;
|
|
1258
|
+
is_active?: boolean;
|
|
1259
|
+
last_error?: string | null;
|
|
1260
|
+
last_event_at?: string | null;
|
|
1261
|
+
last_verified_at?: string | null;
|
|
1262
|
+
oauth_mode?: string | null;
|
|
1263
|
+
provider?: string;
|
|
1264
|
+
purpose_assignments?: import("./types").Json;
|
|
1265
|
+
realtime_mode?: string;
|
|
1266
|
+
refresh_token_encrypted?: string | null;
|
|
1267
|
+
scopes?: string[] | null;
|
|
1268
|
+
smtp_host?: string | null;
|
|
1269
|
+
smtp_password_encrypted?: string | null;
|
|
1270
|
+
smtp_port?: number | null;
|
|
1271
|
+
smtp_secure?: boolean | null;
|
|
1272
|
+
smtp_username?: string | null;
|
|
1273
|
+
status?: string;
|
|
1274
|
+
token_expires_at?: string | null;
|
|
1275
|
+
updated_at?: string;
|
|
979
1276
|
};
|
|
980
|
-
Relationships: [
|
|
981
|
-
foreignKeyName: "exact_account_analytics_cache_connection_id_fkey";
|
|
982
|
-
columns: ["connection_id"];
|
|
983
|
-
isOneToOne: false;
|
|
984
|
-
referencedRelation: "exact_connections";
|
|
985
|
-
referencedColumns: ["id"];
|
|
986
|
-
}];
|
|
1277
|
+
Relationships: [];
|
|
987
1278
|
};
|
|
988
|
-
|
|
1279
|
+
email_auth_events: {
|
|
989
1280
|
Row: {
|
|
990
|
-
analytics_type: string;
|
|
991
|
-
avg_payment_days: number | null;
|
|
992
|
-
computed_at: string;
|
|
993
1281
|
connection_id: string;
|
|
994
|
-
|
|
995
|
-
|
|
1282
|
+
consumed_at: string | null;
|
|
1283
|
+
created_at: string;
|
|
1284
|
+
event_type: string;
|
|
1285
|
+
external_id: string | null;
|
|
996
1286
|
id: string;
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
period_key: string;
|
|
1001
|
-
total_invoiced: number | null;
|
|
1002
|
-
total_open: number | null;
|
|
1287
|
+
payload: import("./types").Json;
|
|
1288
|
+
provider: string;
|
|
1289
|
+
received_at: string;
|
|
1003
1290
|
};
|
|
1004
1291
|
Insert: {
|
|
1005
|
-
analytics_type: string;
|
|
1006
|
-
avg_payment_days?: number | null;
|
|
1007
|
-
computed_at?: string;
|
|
1008
1292
|
connection_id: string;
|
|
1009
|
-
|
|
1010
|
-
|
|
1293
|
+
consumed_at?: string | null;
|
|
1294
|
+
created_at?: string;
|
|
1295
|
+
event_type: string;
|
|
1296
|
+
external_id?: string | null;
|
|
1011
1297
|
id?: string;
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
period_key: string;
|
|
1016
|
-
total_invoiced?: number | null;
|
|
1017
|
-
total_open?: number | null;
|
|
1298
|
+
payload?: import("./types").Json;
|
|
1299
|
+
provider: string;
|
|
1300
|
+
received_at?: string;
|
|
1018
1301
|
};
|
|
1019
1302
|
Update: {
|
|
1020
|
-
analytics_type?: string;
|
|
1021
|
-
avg_payment_days?: number | null;
|
|
1022
|
-
computed_at?: string;
|
|
1023
1303
|
connection_id?: string;
|
|
1024
|
-
|
|
1025
|
-
|
|
1304
|
+
consumed_at?: string | null;
|
|
1305
|
+
created_at?: string;
|
|
1306
|
+
event_type?: string;
|
|
1307
|
+
external_id?: string | null;
|
|
1026
1308
|
id?: string;
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
period_key?: string;
|
|
1031
|
-
total_invoiced?: number | null;
|
|
1032
|
-
total_open?: number | null;
|
|
1309
|
+
payload?: import("./types").Json;
|
|
1310
|
+
provider?: string;
|
|
1311
|
+
received_at?: string;
|
|
1033
1312
|
};
|
|
1034
1313
|
Relationships: [{
|
|
1035
|
-
foreignKeyName: "
|
|
1314
|
+
foreignKeyName: "email_auth_events_connection_id_fkey";
|
|
1036
1315
|
columns: ["connection_id"];
|
|
1037
1316
|
isOneToOne: false;
|
|
1038
|
-
referencedRelation: "
|
|
1317
|
+
referencedRelation: "email_auth_connections";
|
|
1039
1318
|
referencedColumns: ["id"];
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1319
|
+
}, {
|
|
1320
|
+
foreignKeyName: "email_auth_events_connection_id_fkey";
|
|
1321
|
+
columns: ["connection_id"];
|
|
1322
|
+
isOneToOne: false;
|
|
1323
|
+
referencedRelation: "email_auth_connections_safe";
|
|
1324
|
+
referencedColumns: ["id"];
|
|
1325
|
+
}];
|
|
1326
|
+
};
|
|
1327
|
+
email_auth_outbox: {
|
|
1328
|
+
Row: {
|
|
1329
|
+
attempts: number;
|
|
1330
|
+
bcc_addresses: string[];
|
|
1331
|
+
cc_addresses: string[];
|
|
1332
|
+
connection_id: string | null;
|
|
1333
|
+
created_at: string;
|
|
1334
|
+
created_by: string | null;
|
|
1335
|
+
external_message_id: string | null;
|
|
1336
|
+
headers: import("./types").Json;
|
|
1337
|
+
html_body: string | null;
|
|
1338
|
+
id: string;
|
|
1339
|
+
last_error: string | null;
|
|
1340
|
+
purpose: string;
|
|
1341
|
+
reply_to: string | null;
|
|
1342
|
+
scheduled_at: string;
|
|
1343
|
+
sent_at: string | null;
|
|
1344
|
+
status: string;
|
|
1345
|
+
subject: string;
|
|
1346
|
+
text_body: string | null;
|
|
1347
|
+
to_addresses: string[];
|
|
1348
|
+
updated_at: string;
|
|
1349
|
+
};
|
|
1350
|
+
Insert: {
|
|
1351
|
+
attempts?: number;
|
|
1352
|
+
bcc_addresses?: string[];
|
|
1353
|
+
cc_addresses?: string[];
|
|
1354
|
+
connection_id?: string | null;
|
|
1355
|
+
created_at?: string;
|
|
1356
|
+
created_by?: string | null;
|
|
1357
|
+
external_message_id?: string | null;
|
|
1358
|
+
headers?: import("./types").Json;
|
|
1359
|
+
html_body?: string | null;
|
|
1360
|
+
id?: string;
|
|
1361
|
+
last_error?: string | null;
|
|
1362
|
+
purpose: string;
|
|
1363
|
+
reply_to?: string | null;
|
|
1364
|
+
scheduled_at?: string;
|
|
1365
|
+
sent_at?: string | null;
|
|
1366
|
+
status?: string;
|
|
1367
|
+
subject: string;
|
|
1368
|
+
text_body?: string | null;
|
|
1369
|
+
to_addresses: string[];
|
|
1370
|
+
updated_at?: string;
|
|
1371
|
+
};
|
|
1372
|
+
Update: {
|
|
1373
|
+
attempts?: number;
|
|
1374
|
+
bcc_addresses?: string[];
|
|
1375
|
+
cc_addresses?: string[];
|
|
1376
|
+
connection_id?: string | null;
|
|
1377
|
+
created_at?: string;
|
|
1378
|
+
created_by?: string | null;
|
|
1379
|
+
external_message_id?: string | null;
|
|
1380
|
+
headers?: import("./types").Json;
|
|
1381
|
+
html_body?: string | null;
|
|
1382
|
+
id?: string;
|
|
1383
|
+
last_error?: string | null;
|
|
1384
|
+
purpose?: string;
|
|
1385
|
+
reply_to?: string | null;
|
|
1386
|
+
scheduled_at?: string;
|
|
1387
|
+
sent_at?: string | null;
|
|
1388
|
+
status?: string;
|
|
1389
|
+
subject?: string;
|
|
1390
|
+
text_body?: string | null;
|
|
1391
|
+
to_addresses?: string[];
|
|
1392
|
+
updated_at?: string;
|
|
1393
|
+
};
|
|
1394
|
+
Relationships: [{
|
|
1395
|
+
foreignKeyName: "email_auth_outbox_connection_id_fkey";
|
|
1396
|
+
columns: ["connection_id"];
|
|
1397
|
+
isOneToOne: false;
|
|
1398
|
+
referencedRelation: "email_auth_connections";
|
|
1399
|
+
referencedColumns: ["id"];
|
|
1400
|
+
}, {
|
|
1401
|
+
foreignKeyName: "email_auth_outbox_connection_id_fkey";
|
|
1402
|
+
columns: ["connection_id"];
|
|
1403
|
+
isOneToOne: false;
|
|
1404
|
+
referencedRelation: "email_auth_connections_safe";
|
|
1405
|
+
referencedColumns: ["id"];
|
|
1406
|
+
}];
|
|
1407
|
+
};
|
|
1408
|
+
email_auth_purpose_settings: {
|
|
1409
|
+
Row: {
|
|
1410
|
+
purpose: string;
|
|
1411
|
+
reply_to: string | null;
|
|
1412
|
+
updated_at: string;
|
|
1413
|
+
updated_by: string | null;
|
|
1414
|
+
};
|
|
1415
|
+
Insert: {
|
|
1416
|
+
purpose: string;
|
|
1417
|
+
reply_to?: string | null;
|
|
1418
|
+
updated_at?: string;
|
|
1419
|
+
updated_by?: string | null;
|
|
1420
|
+
};
|
|
1421
|
+
Update: {
|
|
1422
|
+
purpose?: string;
|
|
1423
|
+
reply_to?: string | null;
|
|
1424
|
+
updated_at?: string;
|
|
1425
|
+
updated_by?: string | null;
|
|
1426
|
+
};
|
|
1427
|
+
Relationships: [];
|
|
1428
|
+
};
|
|
1429
|
+
email_auth_token_refresh_log: {
|
|
1430
|
+
Row: {
|
|
1431
|
+
connection_id: string;
|
|
1432
|
+
error_message: string | null;
|
|
1433
|
+
id: string;
|
|
1434
|
+
refreshed_at: string;
|
|
1435
|
+
success: boolean;
|
|
1436
|
+
trigger_source: string;
|
|
1437
|
+
};
|
|
1438
|
+
Insert: {
|
|
1439
|
+
connection_id: string;
|
|
1440
|
+
error_message?: string | null;
|
|
1441
|
+
id?: string;
|
|
1442
|
+
refreshed_at?: string;
|
|
1443
|
+
success: boolean;
|
|
1444
|
+
trigger_source: string;
|
|
1445
|
+
};
|
|
1446
|
+
Update: {
|
|
1447
|
+
connection_id?: string;
|
|
1448
|
+
error_message?: string | null;
|
|
1449
|
+
id?: string;
|
|
1450
|
+
refreshed_at?: string;
|
|
1451
|
+
success?: boolean;
|
|
1452
|
+
trigger_source?: string;
|
|
1453
|
+
};
|
|
1454
|
+
Relationships: [{
|
|
1455
|
+
foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
|
|
1456
|
+
columns: ["connection_id"];
|
|
1457
|
+
isOneToOne: false;
|
|
1458
|
+
referencedRelation: "email_auth_connections";
|
|
1459
|
+
referencedColumns: ["id"];
|
|
1460
|
+
}, {
|
|
1461
|
+
foreignKeyName: "email_auth_token_refresh_log_connection_id_fkey";
|
|
1462
|
+
columns: ["connection_id"];
|
|
1463
|
+
isOneToOne: false;
|
|
1464
|
+
referencedRelation: "email_auth_connections_safe";
|
|
1465
|
+
referencedColumns: ["id"];
|
|
1466
|
+
}];
|
|
1467
|
+
};
|
|
1468
|
+
exact_account_analytics_cache: {
|
|
1469
|
+
Row: {
|
|
1470
|
+
account_id: string;
|
|
1471
|
+
account_name: string | null;
|
|
1472
|
+
avg_payment_days: number | null;
|
|
1473
|
+
computed_at: string;
|
|
1474
|
+
connection_id: string;
|
|
1475
|
+
expires_at: string | null;
|
|
1476
|
+
id: string;
|
|
1477
|
+
invoice_count: number | null;
|
|
1478
|
+
last_invoice_date: string | null;
|
|
1479
|
+
last_payment_date: string | null;
|
|
1480
|
+
open_balance: number | null;
|
|
1481
|
+
overdue_balance: number | null;
|
|
1482
|
+
total_revenue: number | null;
|
|
1483
|
+
};
|
|
1484
|
+
Insert: {
|
|
1485
|
+
account_id: string;
|
|
1486
|
+
account_name?: string | null;
|
|
1487
|
+
avg_payment_days?: number | null;
|
|
1488
|
+
computed_at?: string;
|
|
1489
|
+
connection_id: string;
|
|
1490
|
+
expires_at?: string | null;
|
|
1491
|
+
id?: string;
|
|
1492
|
+
invoice_count?: number | null;
|
|
1493
|
+
last_invoice_date?: string | null;
|
|
1494
|
+
last_payment_date?: string | null;
|
|
1495
|
+
open_balance?: number | null;
|
|
1496
|
+
overdue_balance?: number | null;
|
|
1497
|
+
total_revenue?: number | null;
|
|
1498
|
+
};
|
|
1499
|
+
Update: {
|
|
1500
|
+
account_id?: string;
|
|
1501
|
+
account_name?: string | null;
|
|
1502
|
+
avg_payment_days?: number | null;
|
|
1503
|
+
computed_at?: string;
|
|
1504
|
+
connection_id?: string;
|
|
1505
|
+
expires_at?: string | null;
|
|
1506
|
+
id?: string;
|
|
1507
|
+
invoice_count?: number | null;
|
|
1508
|
+
last_invoice_date?: string | null;
|
|
1509
|
+
last_payment_date?: string | null;
|
|
1510
|
+
open_balance?: number | null;
|
|
1511
|
+
overdue_balance?: number | null;
|
|
1512
|
+
total_revenue?: number | null;
|
|
1513
|
+
};
|
|
1514
|
+
Relationships: [{
|
|
1515
|
+
foreignKeyName: "exact_account_analytics_cache_connection_id_fkey";
|
|
1516
|
+
columns: ["connection_id"];
|
|
1517
|
+
isOneToOne: false;
|
|
1518
|
+
referencedRelation: "exact_connections";
|
|
1519
|
+
referencedColumns: ["id"];
|
|
1520
|
+
}];
|
|
1521
|
+
};
|
|
1522
|
+
exact_analytics_cache: {
|
|
1523
|
+
Row: {
|
|
1524
|
+
analytics_type: string;
|
|
1525
|
+
avg_payment_days: number | null;
|
|
1526
|
+
computed_at: string;
|
|
1527
|
+
connection_id: string;
|
|
1528
|
+
data_raw: import("./types").Json | null;
|
|
1529
|
+
expires_at: string | null;
|
|
1530
|
+
id: string;
|
|
1531
|
+
open_count: number | null;
|
|
1532
|
+
overdue_amount: number | null;
|
|
1533
|
+
paid_this_month: number | null;
|
|
1534
|
+
period_key: string;
|
|
1535
|
+
total_invoiced: number | null;
|
|
1536
|
+
total_open: number | null;
|
|
1537
|
+
};
|
|
1538
|
+
Insert: {
|
|
1539
|
+
analytics_type: string;
|
|
1540
|
+
avg_payment_days?: number | null;
|
|
1541
|
+
computed_at?: string;
|
|
1542
|
+
connection_id: string;
|
|
1543
|
+
data_raw?: import("./types").Json | null;
|
|
1544
|
+
expires_at?: string | null;
|
|
1545
|
+
id?: string;
|
|
1546
|
+
open_count?: number | null;
|
|
1547
|
+
overdue_amount?: number | null;
|
|
1548
|
+
paid_this_month?: number | null;
|
|
1549
|
+
period_key: string;
|
|
1550
|
+
total_invoiced?: number | null;
|
|
1551
|
+
total_open?: number | null;
|
|
1552
|
+
};
|
|
1553
|
+
Update: {
|
|
1554
|
+
analytics_type?: string;
|
|
1555
|
+
avg_payment_days?: number | null;
|
|
1556
|
+
computed_at?: string;
|
|
1557
|
+
connection_id?: string;
|
|
1558
|
+
data_raw?: import("./types").Json | null;
|
|
1559
|
+
expires_at?: string | null;
|
|
1560
|
+
id?: string;
|
|
1561
|
+
open_count?: number | null;
|
|
1562
|
+
overdue_amount?: number | null;
|
|
1563
|
+
paid_this_month?: number | null;
|
|
1564
|
+
period_key?: string;
|
|
1565
|
+
total_invoiced?: number | null;
|
|
1566
|
+
total_open?: number | null;
|
|
1567
|
+
};
|
|
1568
|
+
Relationships: [{
|
|
1569
|
+
foreignKeyName: "exact_analytics_cache_connection_id_fkey";
|
|
1570
|
+
columns: ["connection_id"];
|
|
1571
|
+
isOneToOne: false;
|
|
1572
|
+
referencedRelation: "exact_connections";
|
|
1573
|
+
referencedColumns: ["id"];
|
|
1574
|
+
}];
|
|
1575
|
+
};
|
|
1042
1576
|
exact_bulk_operation_items: {
|
|
1043
1577
|
Row: {
|
|
1044
1578
|
attempts: number;
|
|
@@ -1289,11 +1823,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1289
1823
|
address_line1: string | null;
|
|
1290
1824
|
address_line2: string | null;
|
|
1291
1825
|
balance: number | null;
|
|
1826
|
+
chamber_of_commerce: string | null;
|
|
1292
1827
|
city: string | null;
|
|
1828
|
+
classification_description: string | null;
|
|
1293
1829
|
connection_id: string;
|
|
1294
1830
|
contact_name: string | null;
|
|
1295
1831
|
country: string | null;
|
|
1832
|
+
created_at_exact: string | null;
|
|
1296
1833
|
credit_line: number | null;
|
|
1834
|
+
currency: string | null;
|
|
1297
1835
|
data_raw: import("./types").Json | null;
|
|
1298
1836
|
email: string | null;
|
|
1299
1837
|
exact_id: string;
|
|
@@ -1302,12 +1840,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1302
1840
|
id: string;
|
|
1303
1841
|
is_sales: boolean | null;
|
|
1304
1842
|
is_supplier: boolean | null;
|
|
1843
|
+
language: string | null;
|
|
1844
|
+
modified_at_exact: string | null;
|
|
1845
|
+
payment_condition_description: string | null;
|
|
1846
|
+
payment_condition_sales: string | null;
|
|
1305
1847
|
phone: string | null;
|
|
1306
1848
|
postal_code: string | null;
|
|
1849
|
+
remarks: string | null;
|
|
1307
1850
|
search_text: string | null;
|
|
1308
1851
|
status: string | null;
|
|
1309
1852
|
updated_at: string;
|
|
1310
1853
|
vat_number: string | null;
|
|
1854
|
+
website: string | null;
|
|
1311
1855
|
};
|
|
1312
1856
|
Insert: {
|
|
1313
1857
|
account_name?: string | null;
|
|
@@ -1315,11 +1859,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1315
1859
|
address_line1?: string | null;
|
|
1316
1860
|
address_line2?: string | null;
|
|
1317
1861
|
balance?: number | null;
|
|
1862
|
+
chamber_of_commerce?: string | null;
|
|
1318
1863
|
city?: string | null;
|
|
1864
|
+
classification_description?: string | null;
|
|
1319
1865
|
connection_id: string;
|
|
1320
1866
|
contact_name?: string | null;
|
|
1321
1867
|
country?: string | null;
|
|
1868
|
+
created_at_exact?: string | null;
|
|
1322
1869
|
credit_line?: number | null;
|
|
1870
|
+
currency?: string | null;
|
|
1323
1871
|
data_raw?: import("./types").Json | null;
|
|
1324
1872
|
email?: string | null;
|
|
1325
1873
|
exact_id: string;
|
|
@@ -1328,12 +1876,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1328
1876
|
id?: string;
|
|
1329
1877
|
is_sales?: boolean | null;
|
|
1330
1878
|
is_supplier?: boolean | null;
|
|
1879
|
+
language?: string | null;
|
|
1880
|
+
modified_at_exact?: string | null;
|
|
1881
|
+
payment_condition_description?: string | null;
|
|
1882
|
+
payment_condition_sales?: string | null;
|
|
1331
1883
|
phone?: string | null;
|
|
1332
1884
|
postal_code?: string | null;
|
|
1885
|
+
remarks?: string | null;
|
|
1333
1886
|
search_text?: string | null;
|
|
1334
1887
|
status?: string | null;
|
|
1335
1888
|
updated_at?: string;
|
|
1336
1889
|
vat_number?: string | null;
|
|
1890
|
+
website?: string | null;
|
|
1337
1891
|
};
|
|
1338
1892
|
Update: {
|
|
1339
1893
|
account_name?: string | null;
|
|
@@ -1341,11 +1895,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1341
1895
|
address_line1?: string | null;
|
|
1342
1896
|
address_line2?: string | null;
|
|
1343
1897
|
balance?: number | null;
|
|
1898
|
+
chamber_of_commerce?: string | null;
|
|
1344
1899
|
city?: string | null;
|
|
1900
|
+
classification_description?: string | null;
|
|
1345
1901
|
connection_id?: string;
|
|
1346
1902
|
contact_name?: string | null;
|
|
1347
1903
|
country?: string | null;
|
|
1904
|
+
created_at_exact?: string | null;
|
|
1348
1905
|
credit_line?: number | null;
|
|
1906
|
+
currency?: string | null;
|
|
1349
1907
|
data_raw?: import("./types").Json | null;
|
|
1350
1908
|
email?: string | null;
|
|
1351
1909
|
exact_id?: string;
|
|
@@ -1354,12 +1912,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1354
1912
|
id?: string;
|
|
1355
1913
|
is_sales?: boolean | null;
|
|
1356
1914
|
is_supplier?: boolean | null;
|
|
1915
|
+
language?: string | null;
|
|
1916
|
+
modified_at_exact?: string | null;
|
|
1917
|
+
payment_condition_description?: string | null;
|
|
1918
|
+
payment_condition_sales?: string | null;
|
|
1357
1919
|
phone?: string | null;
|
|
1358
1920
|
postal_code?: string | null;
|
|
1921
|
+
remarks?: string | null;
|
|
1359
1922
|
search_text?: string | null;
|
|
1360
1923
|
status?: string | null;
|
|
1361
1924
|
updated_at?: string;
|
|
1362
1925
|
vat_number?: string | null;
|
|
1926
|
+
website?: string | null;
|
|
1363
1927
|
};
|
|
1364
1928
|
Relationships: [{
|
|
1365
1929
|
foreignKeyName: "exact_customers_cache_connection_id_fkey";
|
|
@@ -1495,6 +2059,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1495
2059
|
connection_id: string;
|
|
1496
2060
|
data_raw: import("./types").Json | null;
|
|
1497
2061
|
due_date: string | null;
|
|
2062
|
+
entry_id: string | null;
|
|
1498
2063
|
exact_id: string;
|
|
1499
2064
|
expires_at: string | null;
|
|
1500
2065
|
fetched_at: string;
|
|
@@ -1520,6 +2085,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1520
2085
|
connection_id: string;
|
|
1521
2086
|
data_raw?: import("./types").Json | null;
|
|
1522
2087
|
due_date?: string | null;
|
|
2088
|
+
entry_id?: string | null;
|
|
1523
2089
|
exact_id: string;
|
|
1524
2090
|
expires_at?: string | null;
|
|
1525
2091
|
fetched_at?: string;
|
|
@@ -1545,6 +2111,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1545
2111
|
connection_id?: string;
|
|
1546
2112
|
data_raw?: import("./types").Json | null;
|
|
1547
2113
|
due_date?: string | null;
|
|
2114
|
+
entry_id?: string | null;
|
|
1548
2115
|
exact_id?: string;
|
|
1549
2116
|
expires_at?: string | null;
|
|
1550
2117
|
fetched_at?: string;
|
|
@@ -1621,6 +2188,63 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1621
2188
|
referencedColumns: ["id"];
|
|
1622
2189
|
}];
|
|
1623
2190
|
};
|
|
2191
|
+
exact_refresh_locks: {
|
|
2192
|
+
Row: {
|
|
2193
|
+
environment: Database["public"]["Enums"]["exact_env"];
|
|
2194
|
+
locked_by: string;
|
|
2195
|
+
locked_until: string;
|
|
2196
|
+
updated_at: string;
|
|
2197
|
+
};
|
|
2198
|
+
Insert: {
|
|
2199
|
+
environment: Database["public"]["Enums"]["exact_env"];
|
|
2200
|
+
locked_by: string;
|
|
2201
|
+
locked_until: string;
|
|
2202
|
+
updated_at?: string;
|
|
2203
|
+
};
|
|
2204
|
+
Update: {
|
|
2205
|
+
environment?: Database["public"]["Enums"]["exact_env"];
|
|
2206
|
+
locked_by?: string;
|
|
2207
|
+
locked_until?: string;
|
|
2208
|
+
updated_at?: string;
|
|
2209
|
+
};
|
|
2210
|
+
Relationships: [];
|
|
2211
|
+
};
|
|
2212
|
+
exact_settings: {
|
|
2213
|
+
Row: {
|
|
2214
|
+
client_id: string | null;
|
|
2215
|
+
client_secret: string | null;
|
|
2216
|
+
connection_status: string;
|
|
2217
|
+
created_at: string;
|
|
2218
|
+
division_id: string | null;
|
|
2219
|
+
id: string;
|
|
2220
|
+
last_sync_at: string | null;
|
|
2221
|
+
redirect_uri: string | null;
|
|
2222
|
+
updated_at: string;
|
|
2223
|
+
};
|
|
2224
|
+
Insert: {
|
|
2225
|
+
client_id?: string | null;
|
|
2226
|
+
client_secret?: string | null;
|
|
2227
|
+
connection_status?: string;
|
|
2228
|
+
created_at?: string;
|
|
2229
|
+
division_id?: string | null;
|
|
2230
|
+
id?: string;
|
|
2231
|
+
last_sync_at?: string | null;
|
|
2232
|
+
redirect_uri?: string | null;
|
|
2233
|
+
updated_at?: string;
|
|
2234
|
+
};
|
|
2235
|
+
Update: {
|
|
2236
|
+
client_id?: string | null;
|
|
2237
|
+
client_secret?: string | null;
|
|
2238
|
+
connection_status?: string;
|
|
2239
|
+
created_at?: string;
|
|
2240
|
+
division_id?: string | null;
|
|
2241
|
+
id?: string;
|
|
2242
|
+
last_sync_at?: string | null;
|
|
2243
|
+
redirect_uri?: string | null;
|
|
2244
|
+
updated_at?: string;
|
|
2245
|
+
};
|
|
2246
|
+
Relationships: [];
|
|
2247
|
+
};
|
|
1624
2248
|
exact_sync_state: {
|
|
1625
2249
|
Row: {
|
|
1626
2250
|
connection_id: string;
|
|
@@ -1648,27 +2272,120 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1648
2272
|
};
|
|
1649
2273
|
Relationships: [];
|
|
1650
2274
|
};
|
|
1651
|
-
|
|
2275
|
+
external_customer_providers: {
|
|
1652
2276
|
Row: {
|
|
1653
|
-
|
|
1654
|
-
catalog_url: string;
|
|
2277
|
+
color: string | null;
|
|
1655
2278
|
created_at: string;
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
2279
|
+
icon: string | null;
|
|
2280
|
+
is_enabled: boolean;
|
|
2281
|
+
label: string;
|
|
2282
|
+
last_synced_at: string | null;
|
|
2283
|
+
provider: string;
|
|
2284
|
+
sort_order: number;
|
|
1661
2285
|
updated_at: string;
|
|
1662
2286
|
};
|
|
1663
2287
|
Insert: {
|
|
1664
|
-
|
|
1665
|
-
catalog_url?: string;
|
|
2288
|
+
color?: string | null;
|
|
1666
2289
|
created_at?: string;
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
2290
|
+
icon?: string | null;
|
|
2291
|
+
is_enabled?: boolean;
|
|
2292
|
+
label: string;
|
|
2293
|
+
last_synced_at?: string | null;
|
|
2294
|
+
provider: string;
|
|
2295
|
+
sort_order?: number;
|
|
2296
|
+
updated_at?: string;
|
|
2297
|
+
};
|
|
2298
|
+
Update: {
|
|
2299
|
+
color?: string | null;
|
|
2300
|
+
created_at?: string;
|
|
2301
|
+
icon?: string | null;
|
|
2302
|
+
is_enabled?: boolean;
|
|
2303
|
+
label?: string;
|
|
2304
|
+
last_synced_at?: string | null;
|
|
2305
|
+
provider?: string;
|
|
2306
|
+
sort_order?: number;
|
|
2307
|
+
updated_at?: string;
|
|
2308
|
+
};
|
|
2309
|
+
Relationships: [];
|
|
2310
|
+
};
|
|
2311
|
+
extra_categories: {
|
|
2312
|
+
Row: {
|
|
2313
|
+
created_at: string;
|
|
2314
|
+
id: string;
|
|
2315
|
+
name: string;
|
|
2316
|
+
sort_order: number;
|
|
2317
|
+
updated_at: string;
|
|
2318
|
+
};
|
|
2319
|
+
Insert: {
|
|
2320
|
+
created_at?: string;
|
|
2321
|
+
id?: string;
|
|
2322
|
+
name: string;
|
|
2323
|
+
sort_order?: number;
|
|
2324
|
+
updated_at?: string;
|
|
2325
|
+
};
|
|
2326
|
+
Update: {
|
|
2327
|
+
created_at?: string;
|
|
2328
|
+
id?: string;
|
|
2329
|
+
name?: string;
|
|
2330
|
+
sort_order?: number;
|
|
2331
|
+
updated_at?: string;
|
|
2332
|
+
};
|
|
2333
|
+
Relationships: [];
|
|
2334
|
+
};
|
|
2335
|
+
extras: {
|
|
2336
|
+
Row: {
|
|
2337
|
+
category: string;
|
|
2338
|
+
created_at: string;
|
|
2339
|
+
exact_article_id: string | null;
|
|
2340
|
+
id: string;
|
|
2341
|
+
is_active: boolean;
|
|
2342
|
+
name: string;
|
|
2343
|
+
price: number;
|
|
2344
|
+
pricing_type: string;
|
|
2345
|
+
};
|
|
2346
|
+
Insert: {
|
|
2347
|
+
category: string;
|
|
2348
|
+
created_at?: string;
|
|
2349
|
+
exact_article_id?: string | null;
|
|
2350
|
+
id?: string;
|
|
2351
|
+
is_active?: boolean;
|
|
2352
|
+
name: string;
|
|
2353
|
+
price?: number;
|
|
2354
|
+
pricing_type?: string;
|
|
2355
|
+
};
|
|
2356
|
+
Update: {
|
|
2357
|
+
category?: string;
|
|
2358
|
+
created_at?: string;
|
|
2359
|
+
exact_article_id?: string | null;
|
|
2360
|
+
id?: string;
|
|
2361
|
+
is_active?: boolean;
|
|
2362
|
+
name?: string;
|
|
2363
|
+
price?: number;
|
|
2364
|
+
pricing_type?: string;
|
|
2365
|
+
};
|
|
2366
|
+
Relationships: [];
|
|
2367
|
+
};
|
|
2368
|
+
floricode_connection_settings: {
|
|
2369
|
+
Row: {
|
|
2370
|
+
catalog_key: string | null;
|
|
2371
|
+
catalog_url: string;
|
|
2372
|
+
created_at: string;
|
|
2373
|
+
id: number;
|
|
2374
|
+
last_meta: import("./types").Json | null;
|
|
2375
|
+
last_test_at: string | null;
|
|
2376
|
+
last_test_error: string | null;
|
|
2377
|
+
last_test_ok: boolean | null;
|
|
2378
|
+
updated_at: string;
|
|
2379
|
+
};
|
|
2380
|
+
Insert: {
|
|
2381
|
+
catalog_key?: string | null;
|
|
2382
|
+
catalog_url?: string;
|
|
2383
|
+
created_at?: string;
|
|
2384
|
+
id?: number;
|
|
2385
|
+
last_meta?: import("./types").Json | null;
|
|
2386
|
+
last_test_at?: string | null;
|
|
2387
|
+
last_test_error?: string | null;
|
|
2388
|
+
last_test_ok?: boolean | null;
|
|
1672
2389
|
updated_at?: string;
|
|
1673
2390
|
};
|
|
1674
2391
|
Update: {
|
|
@@ -1738,6 +2455,48 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1738
2455
|
};
|
|
1739
2456
|
Relationships: [];
|
|
1740
2457
|
};
|
|
2458
|
+
floriday_carriers_cache: {
|
|
2459
|
+
Row: {
|
|
2460
|
+
connection_id: string | null;
|
|
2461
|
+
created_at: string;
|
|
2462
|
+
data: import("./types").Json;
|
|
2463
|
+
fetched_at: string;
|
|
2464
|
+
gln_code: string | null;
|
|
2465
|
+
id: string;
|
|
2466
|
+
name: string | null;
|
|
2467
|
+
organization_id: string;
|
|
2468
|
+
updated_at: string;
|
|
2469
|
+
};
|
|
2470
|
+
Insert: {
|
|
2471
|
+
connection_id?: string | null;
|
|
2472
|
+
created_at?: string;
|
|
2473
|
+
data: import("./types").Json;
|
|
2474
|
+
fetched_at?: string;
|
|
2475
|
+
gln_code?: string | null;
|
|
2476
|
+
id?: string;
|
|
2477
|
+
name?: string | null;
|
|
2478
|
+
organization_id: string;
|
|
2479
|
+
updated_at?: string;
|
|
2480
|
+
};
|
|
2481
|
+
Update: {
|
|
2482
|
+
connection_id?: string | null;
|
|
2483
|
+
created_at?: string;
|
|
2484
|
+
data?: import("./types").Json;
|
|
2485
|
+
fetched_at?: string;
|
|
2486
|
+
gln_code?: string | null;
|
|
2487
|
+
id?: string;
|
|
2488
|
+
name?: string | null;
|
|
2489
|
+
organization_id?: string;
|
|
2490
|
+
updated_at?: string;
|
|
2491
|
+
};
|
|
2492
|
+
Relationships: [{
|
|
2493
|
+
foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
|
|
2494
|
+
columns: ["connection_id"];
|
|
2495
|
+
isOneToOne: false;
|
|
2496
|
+
referencedRelation: "floriday_connections";
|
|
2497
|
+
referencedColumns: ["id"];
|
|
2498
|
+
}];
|
|
2499
|
+
};
|
|
1741
2500
|
floriday_connections: {
|
|
1742
2501
|
Row: {
|
|
1743
2502
|
access_token: string | null;
|
|
@@ -1795,6 +2554,48 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1795
2554
|
};
|
|
1796
2555
|
Relationships: [];
|
|
1797
2556
|
};
|
|
2557
|
+
floriday_connections_cache: {
|
|
2558
|
+
Row: {
|
|
2559
|
+
buyer_organization_id: string | null;
|
|
2560
|
+
buyer_organization_name: string | null;
|
|
2561
|
+
connection_id: string;
|
|
2562
|
+
data: import("./types").Json;
|
|
2563
|
+
floriday_connection_id: string;
|
|
2564
|
+
is_deleted: boolean;
|
|
2565
|
+
sequence_number: number;
|
|
2566
|
+
status: string | null;
|
|
2567
|
+
synced_at: string;
|
|
2568
|
+
};
|
|
2569
|
+
Insert: {
|
|
2570
|
+
buyer_organization_id?: string | null;
|
|
2571
|
+
buyer_organization_name?: string | null;
|
|
2572
|
+
connection_id: string;
|
|
2573
|
+
data: import("./types").Json;
|
|
2574
|
+
floriday_connection_id: string;
|
|
2575
|
+
is_deleted?: boolean;
|
|
2576
|
+
sequence_number: number;
|
|
2577
|
+
status?: string | null;
|
|
2578
|
+
synced_at?: string;
|
|
2579
|
+
};
|
|
2580
|
+
Update: {
|
|
2581
|
+
buyer_organization_id?: string | null;
|
|
2582
|
+
buyer_organization_name?: string | null;
|
|
2583
|
+
connection_id?: string;
|
|
2584
|
+
data?: import("./types").Json;
|
|
2585
|
+
floriday_connection_id?: string;
|
|
2586
|
+
is_deleted?: boolean;
|
|
2587
|
+
sequence_number?: number;
|
|
2588
|
+
status?: string | null;
|
|
2589
|
+
synced_at?: string;
|
|
2590
|
+
};
|
|
2591
|
+
Relationships: [{
|
|
2592
|
+
foreignKeyName: "floriday_connections_cache_connection_id_fkey";
|
|
2593
|
+
columns: ["connection_id"];
|
|
2594
|
+
isOneToOne: false;
|
|
2595
|
+
referencedRelation: "floriday_connections";
|
|
2596
|
+
referencedColumns: ["id"];
|
|
2597
|
+
}];
|
|
2598
|
+
};
|
|
1798
2599
|
floriday_customers_cache: {
|
|
1799
2600
|
Row: {
|
|
1800
2601
|
connection_id: string | null;
|
|
@@ -1879,6 +2680,48 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1879
2680
|
};
|
|
1880
2681
|
Relationships: [];
|
|
1881
2682
|
};
|
|
2683
|
+
floriday_salesorders_cache: {
|
|
2684
|
+
Row: {
|
|
2685
|
+
buyer_organization_id: string | null;
|
|
2686
|
+
connection_id: string;
|
|
2687
|
+
created_at: string;
|
|
2688
|
+
data: import("./types").Json;
|
|
2689
|
+
floriday_id: string;
|
|
2690
|
+
is_deleted: boolean;
|
|
2691
|
+
sequence_number: number;
|
|
2692
|
+
status: string | null;
|
|
2693
|
+
updated_at: string;
|
|
2694
|
+
};
|
|
2695
|
+
Insert: {
|
|
2696
|
+
buyer_organization_id?: string | null;
|
|
2697
|
+
connection_id: string;
|
|
2698
|
+
created_at?: string;
|
|
2699
|
+
data: import("./types").Json;
|
|
2700
|
+
floriday_id: string;
|
|
2701
|
+
is_deleted?: boolean;
|
|
2702
|
+
sequence_number: number;
|
|
2703
|
+
status?: string | null;
|
|
2704
|
+
updated_at?: string;
|
|
2705
|
+
};
|
|
2706
|
+
Update: {
|
|
2707
|
+
buyer_organization_id?: string | null;
|
|
2708
|
+
connection_id?: string;
|
|
2709
|
+
created_at?: string;
|
|
2710
|
+
data?: import("./types").Json;
|
|
2711
|
+
floriday_id?: string;
|
|
2712
|
+
is_deleted?: boolean;
|
|
2713
|
+
sequence_number?: number;
|
|
2714
|
+
status?: string | null;
|
|
2715
|
+
updated_at?: string;
|
|
2716
|
+
};
|
|
2717
|
+
Relationships: [{
|
|
2718
|
+
foreignKeyName: "floriday_salesorders_cache_connection_id_fkey";
|
|
2719
|
+
columns: ["connection_id"];
|
|
2720
|
+
isOneToOne: false;
|
|
2721
|
+
referencedRelation: "floriday_connections";
|
|
2722
|
+
referencedColumns: ["id"];
|
|
2723
|
+
}];
|
|
2724
|
+
};
|
|
1882
2725
|
floriday_settings: {
|
|
1883
2726
|
Row: {
|
|
1884
2727
|
active_environment: string;
|
|
@@ -1897,6 +2740,108 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1897
2740
|
};
|
|
1898
2741
|
Relationships: [];
|
|
1899
2742
|
};
|
|
2743
|
+
floriday_sync_state: {
|
|
2744
|
+
Row: {
|
|
2745
|
+
connection_id: string;
|
|
2746
|
+
entity_type: string;
|
|
2747
|
+
last_error: string | null;
|
|
2748
|
+
last_sequence_number: number;
|
|
2749
|
+
last_synced_at: string | null;
|
|
2750
|
+
updated_at: string;
|
|
2751
|
+
};
|
|
2752
|
+
Insert: {
|
|
2753
|
+
connection_id: string;
|
|
2754
|
+
entity_type: string;
|
|
2755
|
+
last_error?: string | null;
|
|
2756
|
+
last_sequence_number?: number;
|
|
2757
|
+
last_synced_at?: string | null;
|
|
2758
|
+
updated_at?: string;
|
|
2759
|
+
};
|
|
2760
|
+
Update: {
|
|
2761
|
+
connection_id?: string;
|
|
2762
|
+
entity_type?: string;
|
|
2763
|
+
last_error?: string | null;
|
|
2764
|
+
last_sequence_number?: number;
|
|
2765
|
+
last_synced_at?: string | null;
|
|
2766
|
+
updated_at?: string;
|
|
2767
|
+
};
|
|
2768
|
+
Relationships: [{
|
|
2769
|
+
foreignKeyName: "floriday_sync_state_connection_id_fkey";
|
|
2770
|
+
columns: ["connection_id"];
|
|
2771
|
+
isOneToOne: false;
|
|
2772
|
+
referencedRelation: "floriday_connections";
|
|
2773
|
+
referencedColumns: ["id"];
|
|
2774
|
+
}];
|
|
2775
|
+
};
|
|
2776
|
+
floriday_token_refresh_log: {
|
|
2777
|
+
Row: {
|
|
2778
|
+
attempted_at: string;
|
|
2779
|
+
connection_id: string | null;
|
|
2780
|
+
environment: string;
|
|
2781
|
+
error: string | null;
|
|
2782
|
+
expires_at: string | null;
|
|
2783
|
+
id: string;
|
|
2784
|
+
ok: boolean;
|
|
2785
|
+
};
|
|
2786
|
+
Insert: {
|
|
2787
|
+
attempted_at?: string;
|
|
2788
|
+
connection_id?: string | null;
|
|
2789
|
+
environment: string;
|
|
2790
|
+
error?: string | null;
|
|
2791
|
+
expires_at?: string | null;
|
|
2792
|
+
id?: string;
|
|
2793
|
+
ok: boolean;
|
|
2794
|
+
};
|
|
2795
|
+
Update: {
|
|
2796
|
+
attempted_at?: string;
|
|
2797
|
+
connection_id?: string | null;
|
|
2798
|
+
environment?: string;
|
|
2799
|
+
error?: string | null;
|
|
2800
|
+
expires_at?: string | null;
|
|
2801
|
+
id?: string;
|
|
2802
|
+
ok?: boolean;
|
|
2803
|
+
};
|
|
2804
|
+
Relationships: [{
|
|
2805
|
+
foreignKeyName: "floriday_token_refresh_log_connection_id_fkey";
|
|
2806
|
+
columns: ["connection_id"];
|
|
2807
|
+
isOneToOne: false;
|
|
2808
|
+
referencedRelation: "floriday_connections";
|
|
2809
|
+
referencedColumns: ["id"];
|
|
2810
|
+
}];
|
|
2811
|
+
};
|
|
2812
|
+
floriday_trade_items_cache: {
|
|
2813
|
+
Row: {
|
|
2814
|
+
connection_id: string;
|
|
2815
|
+
data: import("./types").Json;
|
|
2816
|
+
fetched_at: string;
|
|
2817
|
+
floriday_id: string;
|
|
2818
|
+
is_deleted: boolean;
|
|
2819
|
+
sequence_number: number;
|
|
2820
|
+
};
|
|
2821
|
+
Insert: {
|
|
2822
|
+
connection_id: string;
|
|
2823
|
+
data?: import("./types").Json;
|
|
2824
|
+
fetched_at?: string;
|
|
2825
|
+
floriday_id: string;
|
|
2826
|
+
is_deleted?: boolean;
|
|
2827
|
+
sequence_number?: number;
|
|
2828
|
+
};
|
|
2829
|
+
Update: {
|
|
2830
|
+
connection_id?: string;
|
|
2831
|
+
data?: import("./types").Json;
|
|
2832
|
+
fetched_at?: string;
|
|
2833
|
+
floriday_id?: string;
|
|
2834
|
+
is_deleted?: boolean;
|
|
2835
|
+
sequence_number?: number;
|
|
2836
|
+
};
|
|
2837
|
+
Relationships: [{
|
|
2838
|
+
foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
|
|
2839
|
+
columns: ["connection_id"];
|
|
2840
|
+
isOneToOne: false;
|
|
2841
|
+
referencedRelation: "floriday_connections";
|
|
2842
|
+
referencedColumns: ["id"];
|
|
2843
|
+
}];
|
|
2844
|
+
};
|
|
1900
2845
|
imap_accounts: {
|
|
1901
2846
|
Row: {
|
|
1902
2847
|
created_at: string;
|
|
@@ -2071,7 +3016,103 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2071
3016
|
};
|
|
2072
3017
|
Relationships: [];
|
|
2073
3018
|
};
|
|
2074
|
-
|
|
3019
|
+
invoice_run_items: {
|
|
3020
|
+
Row: {
|
|
3021
|
+
booking_id: string | null;
|
|
3022
|
+
company_name: string | null;
|
|
3023
|
+
created_at: string;
|
|
3024
|
+
customer_email: string | null;
|
|
3025
|
+
description: string | null;
|
|
3026
|
+
exact_article_id: string | null;
|
|
3027
|
+
id: string;
|
|
3028
|
+
invoice_run_id: string | null;
|
|
3029
|
+
quantity: number | null;
|
|
3030
|
+
total_excl_vat: number | null;
|
|
3031
|
+
total_incl_vat: number | null;
|
|
3032
|
+
unit_price: number | null;
|
|
3033
|
+
vat_amount: number | null;
|
|
3034
|
+
};
|
|
3035
|
+
Insert: {
|
|
3036
|
+
booking_id?: string | null;
|
|
3037
|
+
company_name?: string | null;
|
|
3038
|
+
created_at?: string;
|
|
3039
|
+
customer_email?: string | null;
|
|
3040
|
+
description?: string | null;
|
|
3041
|
+
exact_article_id?: string | null;
|
|
3042
|
+
id?: string;
|
|
3043
|
+
invoice_run_id?: string | null;
|
|
3044
|
+
quantity?: number | null;
|
|
3045
|
+
total_excl_vat?: number | null;
|
|
3046
|
+
total_incl_vat?: number | null;
|
|
3047
|
+
unit_price?: number | null;
|
|
3048
|
+
vat_amount?: number | null;
|
|
3049
|
+
};
|
|
3050
|
+
Update: {
|
|
3051
|
+
booking_id?: string | null;
|
|
3052
|
+
company_name?: string | null;
|
|
3053
|
+
created_at?: string;
|
|
3054
|
+
customer_email?: string | null;
|
|
3055
|
+
description?: string | null;
|
|
3056
|
+
exact_article_id?: string | null;
|
|
3057
|
+
id?: string;
|
|
3058
|
+
invoice_run_id?: string | null;
|
|
3059
|
+
quantity?: number | null;
|
|
3060
|
+
total_excl_vat?: number | null;
|
|
3061
|
+
total_incl_vat?: number | null;
|
|
3062
|
+
unit_price?: number | null;
|
|
3063
|
+
vat_amount?: number | null;
|
|
3064
|
+
};
|
|
3065
|
+
Relationships: [{
|
|
3066
|
+
foreignKeyName: "invoice_run_items_booking_id_fkey";
|
|
3067
|
+
columns: ["booking_id"];
|
|
3068
|
+
isOneToOne: false;
|
|
3069
|
+
referencedRelation: "bookings";
|
|
3070
|
+
referencedColumns: ["id"];
|
|
3071
|
+
}, {
|
|
3072
|
+
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
3073
|
+
columns: ["invoice_run_id"];
|
|
3074
|
+
isOneToOne: false;
|
|
3075
|
+
referencedRelation: "invoice_runs";
|
|
3076
|
+
referencedColumns: ["id"];
|
|
3077
|
+
}];
|
|
3078
|
+
};
|
|
3079
|
+
invoice_runs: {
|
|
3080
|
+
Row: {
|
|
3081
|
+
created_at: string;
|
|
3082
|
+
created_by: string | null;
|
|
3083
|
+
id: string;
|
|
3084
|
+
period_end: string;
|
|
3085
|
+
period_start: string;
|
|
3086
|
+
status: string;
|
|
3087
|
+
total_excl_vat: number | null;
|
|
3088
|
+
total_incl_vat: number | null;
|
|
3089
|
+
vat_amount: number | null;
|
|
3090
|
+
};
|
|
3091
|
+
Insert: {
|
|
3092
|
+
created_at?: string;
|
|
3093
|
+
created_by?: string | null;
|
|
3094
|
+
id?: string;
|
|
3095
|
+
period_end: string;
|
|
3096
|
+
period_start: string;
|
|
3097
|
+
status?: string;
|
|
3098
|
+
total_excl_vat?: number | null;
|
|
3099
|
+
total_incl_vat?: number | null;
|
|
3100
|
+
vat_amount?: number | null;
|
|
3101
|
+
};
|
|
3102
|
+
Update: {
|
|
3103
|
+
created_at?: string;
|
|
3104
|
+
created_by?: string | null;
|
|
3105
|
+
id?: string;
|
|
3106
|
+
period_end?: string;
|
|
3107
|
+
period_start?: string;
|
|
3108
|
+
status?: string;
|
|
3109
|
+
total_excl_vat?: number | null;
|
|
3110
|
+
total_incl_vat?: number | null;
|
|
3111
|
+
vat_amount?: number | null;
|
|
3112
|
+
};
|
|
3113
|
+
Relationships: [];
|
|
3114
|
+
};
|
|
3115
|
+
locations: {
|
|
2075
3116
|
Row: {
|
|
2076
3117
|
created_at: string;
|
|
2077
3118
|
id: string;
|
|
@@ -2101,6 +3142,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2101
3142
|
body_text: string | null;
|
|
2102
3143
|
created_at: string;
|
|
2103
3144
|
error_message: string | null;
|
|
3145
|
+
external_id: string | null;
|
|
2104
3146
|
from_email: string | null;
|
|
2105
3147
|
from_name: string | null;
|
|
2106
3148
|
id: string;
|
|
@@ -2110,7 +3152,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2110
3152
|
received_at: string | null;
|
|
2111
3153
|
status: string;
|
|
2112
3154
|
subject: string | null;
|
|
2113
|
-
uid: number;
|
|
3155
|
+
uid: number | null;
|
|
2114
3156
|
updated_at: string;
|
|
2115
3157
|
};
|
|
2116
3158
|
Insert: {
|
|
@@ -2118,6 +3160,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2118
3160
|
body_text?: string | null;
|
|
2119
3161
|
created_at?: string;
|
|
2120
3162
|
error_message?: string | null;
|
|
3163
|
+
external_id?: string | null;
|
|
2121
3164
|
from_email?: string | null;
|
|
2122
3165
|
from_name?: string | null;
|
|
2123
3166
|
id?: string;
|
|
@@ -2127,7 +3170,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2127
3170
|
received_at?: string | null;
|
|
2128
3171
|
status?: string;
|
|
2129
3172
|
subject?: string | null;
|
|
2130
|
-
uid
|
|
3173
|
+
uid?: number | null;
|
|
2131
3174
|
updated_at?: string;
|
|
2132
3175
|
};
|
|
2133
3176
|
Update: {
|
|
@@ -2135,6 +3178,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2135
3178
|
body_text?: string | null;
|
|
2136
3179
|
created_at?: string;
|
|
2137
3180
|
error_message?: string | null;
|
|
3181
|
+
external_id?: string | null;
|
|
2138
3182
|
from_email?: string | null;
|
|
2139
3183
|
from_name?: string | null;
|
|
2140
3184
|
id?: string;
|
|
@@ -2144,7 +3188,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2144
3188
|
received_at?: string | null;
|
|
2145
3189
|
status?: string;
|
|
2146
3190
|
subject?: string | null;
|
|
2147
|
-
uid?: number;
|
|
3191
|
+
uid?: number | null;
|
|
2148
3192
|
updated_at?: string;
|
|
2149
3193
|
};
|
|
2150
3194
|
Relationships: [{
|
|
@@ -2416,6 +3460,60 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2416
3460
|
};
|
|
2417
3461
|
Relationships: [];
|
|
2418
3462
|
};
|
|
3463
|
+
monteurs: {
|
|
3464
|
+
Row: {
|
|
3465
|
+
avatar_url: string | null;
|
|
3466
|
+
color: string | null;
|
|
3467
|
+
created_at: string;
|
|
3468
|
+
email: string | null;
|
|
3469
|
+
id: string;
|
|
3470
|
+
is_active: boolean;
|
|
3471
|
+
leave_balance_hours: number;
|
|
3472
|
+
name: string;
|
|
3473
|
+
persnr: number | null;
|
|
3474
|
+
phone: string | null;
|
|
3475
|
+
role: string;
|
|
3476
|
+
tenant_id: string;
|
|
3477
|
+
updated_at: string;
|
|
3478
|
+
};
|
|
3479
|
+
Insert: {
|
|
3480
|
+
avatar_url?: string | null;
|
|
3481
|
+
color?: string | null;
|
|
3482
|
+
created_at?: string;
|
|
3483
|
+
email?: string | null;
|
|
3484
|
+
id?: string;
|
|
3485
|
+
is_active?: boolean;
|
|
3486
|
+
leave_balance_hours?: number;
|
|
3487
|
+
name: string;
|
|
3488
|
+
persnr?: number | null;
|
|
3489
|
+
phone?: string | null;
|
|
3490
|
+
role?: string;
|
|
3491
|
+
tenant_id: string;
|
|
3492
|
+
updated_at?: string;
|
|
3493
|
+
};
|
|
3494
|
+
Update: {
|
|
3495
|
+
avatar_url?: string | null;
|
|
3496
|
+
color?: string | null;
|
|
3497
|
+
created_at?: string;
|
|
3498
|
+
email?: string | null;
|
|
3499
|
+
id?: string;
|
|
3500
|
+
is_active?: boolean;
|
|
3501
|
+
leave_balance_hours?: number;
|
|
3502
|
+
name?: string;
|
|
3503
|
+
persnr?: number | null;
|
|
3504
|
+
phone?: string | null;
|
|
3505
|
+
role?: string;
|
|
3506
|
+
tenant_id?: string;
|
|
3507
|
+
updated_at?: string;
|
|
3508
|
+
};
|
|
3509
|
+
Relationships: [{
|
|
3510
|
+
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
3511
|
+
columns: ["tenant_id"];
|
|
3512
|
+
isOneToOne: false;
|
|
3513
|
+
referencedRelation: "tenants";
|
|
3514
|
+
referencedColumns: ["id"];
|
|
3515
|
+
}];
|
|
3516
|
+
};
|
|
2419
3517
|
notifications: {
|
|
2420
3518
|
Row: {
|
|
2421
3519
|
created_at: string;
|
|
@@ -3248,6 +4346,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3248
4346
|
email: string | null;
|
|
3249
4347
|
id: string;
|
|
3250
4348
|
notification_preferences: import("./types").Json;
|
|
4349
|
+
tenant_id: string | null;
|
|
3251
4350
|
updated_at: string;
|
|
3252
4351
|
};
|
|
3253
4352
|
Insert: {
|
|
@@ -3256,6 +4355,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3256
4355
|
email?: string | null;
|
|
3257
4356
|
id: string;
|
|
3258
4357
|
notification_preferences?: import("./types").Json;
|
|
4358
|
+
tenant_id?: string | null;
|
|
3259
4359
|
updated_at?: string;
|
|
3260
4360
|
};
|
|
3261
4361
|
Update: {
|
|
@@ -3264,9 +4364,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3264
4364
|
email?: string | null;
|
|
3265
4365
|
id?: string;
|
|
3266
4366
|
notification_preferences?: import("./types").Json;
|
|
4367
|
+
tenant_id?: string | null;
|
|
3267
4368
|
updated_at?: string;
|
|
3268
4369
|
};
|
|
3269
|
-
Relationships: [
|
|
4370
|
+
Relationships: [{
|
|
4371
|
+
foreignKeyName: "profiles_tenant_id_fkey";
|
|
4372
|
+
columns: ["tenant_id"];
|
|
4373
|
+
isOneToOne: false;
|
|
4374
|
+
referencedRelation: "tenants";
|
|
4375
|
+
referencedColumns: ["id"];
|
|
4376
|
+
}];
|
|
3270
4377
|
};
|
|
3271
4378
|
projects: {
|
|
3272
4379
|
Row: {
|
|
@@ -3526,233 +4633,1695 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3526
4633
|
referencedColumns: ["id"];
|
|
3527
4634
|
}];
|
|
3528
4635
|
};
|
|
3529
|
-
|
|
4636
|
+
quote_activities: {
|
|
3530
4637
|
Row: {
|
|
3531
4638
|
created_at: string;
|
|
3532
|
-
|
|
4639
|
+
event_type: string;
|
|
3533
4640
|
id: string;
|
|
3534
|
-
|
|
4641
|
+
metadata: import("./types").Json;
|
|
3535
4642
|
quote_id: string;
|
|
3536
|
-
|
|
3537
|
-
unit_price: number;
|
|
4643
|
+
user_id: string | null;
|
|
3538
4644
|
};
|
|
3539
4645
|
Insert: {
|
|
3540
4646
|
created_at?: string;
|
|
3541
|
-
|
|
4647
|
+
event_type: string;
|
|
3542
4648
|
id?: string;
|
|
3543
|
-
|
|
4649
|
+
metadata?: import("./types").Json;
|
|
3544
4650
|
quote_id: string;
|
|
3545
|
-
|
|
3546
|
-
unit_price?: number;
|
|
4651
|
+
user_id?: string | null;
|
|
3547
4652
|
};
|
|
3548
4653
|
Update: {
|
|
3549
4654
|
created_at?: string;
|
|
3550
|
-
|
|
4655
|
+
event_type?: string;
|
|
3551
4656
|
id?: string;
|
|
3552
|
-
|
|
4657
|
+
metadata?: import("./types").Json;
|
|
3553
4658
|
quote_id?: string;
|
|
3554
|
-
|
|
3555
|
-
unit_price?: number;
|
|
4659
|
+
user_id?: string | null;
|
|
3556
4660
|
};
|
|
3557
4661
|
Relationships: [{
|
|
3558
|
-
foreignKeyName: "
|
|
4662
|
+
foreignKeyName: "quote_activities_quote_id_fkey";
|
|
3559
4663
|
columns: ["quote_id"];
|
|
3560
4664
|
isOneToOne: false;
|
|
3561
4665
|
referencedRelation: "quotes";
|
|
3562
4666
|
referencedColumns: ["id"];
|
|
3563
4667
|
}];
|
|
3564
4668
|
};
|
|
3565
|
-
|
|
4669
|
+
quote_attachments: {
|
|
3566
4670
|
Row: {
|
|
3567
4671
|
created_at: string;
|
|
4672
|
+
file_name: string;
|
|
4673
|
+
file_size: number | null;
|
|
4674
|
+
file_url: string;
|
|
3568
4675
|
id: string;
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
quote_number: string | null;
|
|
3572
|
-
status: string;
|
|
3573
|
-
title: string;
|
|
3574
|
-
updated_at: string;
|
|
3575
|
-
valid_until: string | null;
|
|
4676
|
+
mime_type: string | null;
|
|
4677
|
+
quote_id: string;
|
|
3576
4678
|
};
|
|
3577
4679
|
Insert: {
|
|
3578
4680
|
created_at?: string;
|
|
4681
|
+
file_name: string;
|
|
4682
|
+
file_size?: number | null;
|
|
4683
|
+
file_url: string;
|
|
3579
4684
|
id?: string;
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
quote_number?: string | null;
|
|
3583
|
-
status?: string;
|
|
3584
|
-
title?: string;
|
|
3585
|
-
updated_at?: string;
|
|
3586
|
-
valid_until?: string | null;
|
|
4685
|
+
mime_type?: string | null;
|
|
4686
|
+
quote_id: string;
|
|
3587
4687
|
};
|
|
3588
4688
|
Update: {
|
|
3589
4689
|
created_at?: string;
|
|
4690
|
+
file_name?: string;
|
|
4691
|
+
file_size?: number | null;
|
|
4692
|
+
file_url?: string;
|
|
3590
4693
|
id?: string;
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
quote_number?: string | null;
|
|
3594
|
-
status?: string;
|
|
3595
|
-
title?: string;
|
|
3596
|
-
updated_at?: string;
|
|
3597
|
-
valid_until?: string | null;
|
|
4694
|
+
mime_type?: string | null;
|
|
4695
|
+
quote_id?: string;
|
|
3598
4696
|
};
|
|
3599
4697
|
Relationships: [{
|
|
3600
|
-
foreignKeyName: "
|
|
3601
|
-
columns: ["
|
|
4698
|
+
foreignKeyName: "quote_attachments_quote_id_fkey";
|
|
4699
|
+
columns: ["quote_id"];
|
|
3602
4700
|
isOneToOne: false;
|
|
3603
|
-
referencedRelation: "
|
|
4701
|
+
referencedRelation: "quotes";
|
|
3604
4702
|
referencedColumns: ["id"];
|
|
3605
4703
|
}];
|
|
3606
4704
|
};
|
|
3607
|
-
|
|
4705
|
+
quote_field_options: {
|
|
3608
4706
|
Row: {
|
|
3609
|
-
article_number: string | null;
|
|
3610
4707
|
created_at: string;
|
|
4708
|
+
field_id: string;
|
|
3611
4709
|
id: string;
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
price: number | null;
|
|
3616
|
-
quantity: number | null;
|
|
3617
|
-
supplier_id: string;
|
|
3618
|
-
unit: string;
|
|
3619
|
-
updated_at: string;
|
|
4710
|
+
label: string;
|
|
4711
|
+
sort_order: number;
|
|
4712
|
+
value: string;
|
|
3620
4713
|
};
|
|
3621
4714
|
Insert: {
|
|
3622
|
-
article_number?: string | null;
|
|
3623
4715
|
created_at?: string;
|
|
4716
|
+
field_id: string;
|
|
3624
4717
|
id?: string;
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
price?: number | null;
|
|
3629
|
-
quantity?: number | null;
|
|
3630
|
-
supplier_id: string;
|
|
3631
|
-
unit?: string;
|
|
3632
|
-
updated_at?: string;
|
|
4718
|
+
label: string;
|
|
4719
|
+
sort_order?: number;
|
|
4720
|
+
value: string;
|
|
3633
4721
|
};
|
|
3634
4722
|
Update: {
|
|
3635
|
-
article_number?: string | null;
|
|
3636
4723
|
created_at?: string;
|
|
4724
|
+
field_id?: string;
|
|
3637
4725
|
id?: string;
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
price?: number | null;
|
|
3642
|
-
quantity?: number | null;
|
|
3643
|
-
supplier_id?: string;
|
|
3644
|
-
unit?: string;
|
|
3645
|
-
updated_at?: string;
|
|
4726
|
+
label?: string;
|
|
4727
|
+
sort_order?: number;
|
|
4728
|
+
value?: string;
|
|
3646
4729
|
};
|
|
3647
4730
|
Relationships: [{
|
|
3648
|
-
foreignKeyName: "
|
|
3649
|
-
columns: ["
|
|
4731
|
+
foreignKeyName: "quote_field_options_field_id_fkey";
|
|
4732
|
+
columns: ["field_id"];
|
|
3650
4733
|
isOneToOne: false;
|
|
3651
|
-
referencedRelation: "
|
|
4734
|
+
referencedRelation: "quote_field_settings";
|
|
3652
4735
|
referencedColumns: ["id"];
|
|
3653
4736
|
}];
|
|
3654
4737
|
};
|
|
3655
|
-
|
|
4738
|
+
quote_field_settings: {
|
|
3656
4739
|
Row: {
|
|
3657
|
-
address: string | null;
|
|
3658
|
-
column_mappings: import("./types").Json | null;
|
|
3659
|
-
contact_person: string | null;
|
|
3660
4740
|
created_at: string;
|
|
3661
|
-
|
|
3662
|
-
|
|
4741
|
+
default_value: string | null;
|
|
4742
|
+
field_key: string;
|
|
4743
|
+
field_type: string;
|
|
3663
4744
|
id: string;
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
4745
|
+
is_system: boolean;
|
|
4746
|
+
label: string;
|
|
4747
|
+
required: boolean;
|
|
4748
|
+
sort_order: number;
|
|
3668
4749
|
updated_at: string;
|
|
4750
|
+
visible: boolean;
|
|
3669
4751
|
};
|
|
3670
4752
|
Insert: {
|
|
3671
|
-
address?: string | null;
|
|
3672
|
-
column_mappings?: import("./types").Json | null;
|
|
3673
|
-
contact_person?: string | null;
|
|
3674
4753
|
created_at?: string;
|
|
3675
|
-
|
|
3676
|
-
|
|
4754
|
+
default_value?: string | null;
|
|
4755
|
+
field_key: string;
|
|
4756
|
+
field_type: string;
|
|
3677
4757
|
id?: string;
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
4758
|
+
is_system?: boolean;
|
|
4759
|
+
label: string;
|
|
4760
|
+
required?: boolean;
|
|
4761
|
+
sort_order?: number;
|
|
3682
4762
|
updated_at?: string;
|
|
4763
|
+
visible?: boolean;
|
|
3683
4764
|
};
|
|
3684
4765
|
Update: {
|
|
3685
|
-
address?: string | null;
|
|
3686
|
-
column_mappings?: import("./types").Json | null;
|
|
3687
|
-
contact_person?: string | null;
|
|
3688
4766
|
created_at?: string;
|
|
3689
|
-
|
|
3690
|
-
|
|
4767
|
+
default_value?: string | null;
|
|
4768
|
+
field_key?: string;
|
|
4769
|
+
field_type?: string;
|
|
3691
4770
|
id?: string;
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
4771
|
+
is_system?: boolean;
|
|
4772
|
+
label?: string;
|
|
4773
|
+
required?: boolean;
|
|
4774
|
+
sort_order?: number;
|
|
3696
4775
|
updated_at?: string;
|
|
4776
|
+
visible?: boolean;
|
|
3697
4777
|
};
|
|
3698
4778
|
Relationships: [];
|
|
3699
4779
|
};
|
|
3700
|
-
|
|
4780
|
+
quote_items: {
|
|
3701
4781
|
Row: {
|
|
3702
|
-
|
|
4782
|
+
category: string | null;
|
|
3703
4783
|
created_at: string;
|
|
3704
|
-
|
|
4784
|
+
description: string;
|
|
3705
4785
|
id: string;
|
|
3706
|
-
|
|
3707
|
-
|
|
4786
|
+
line_total: number;
|
|
4787
|
+
module_id: string | null;
|
|
4788
|
+
name: string | null;
|
|
4789
|
+
quantity: number;
|
|
4790
|
+
quote_id: string;
|
|
4791
|
+
sort_order: number;
|
|
4792
|
+
unit_price: number;
|
|
3708
4793
|
};
|
|
3709
4794
|
Insert: {
|
|
3710
|
-
|
|
4795
|
+
category?: string | null;
|
|
3711
4796
|
created_at?: string;
|
|
3712
|
-
|
|
4797
|
+
description?: string;
|
|
3713
4798
|
id?: string;
|
|
3714
|
-
|
|
3715
|
-
|
|
4799
|
+
line_total?: number;
|
|
4800
|
+
module_id?: string | null;
|
|
4801
|
+
name?: string | null;
|
|
4802
|
+
quantity?: number;
|
|
4803
|
+
quote_id: string;
|
|
4804
|
+
sort_order?: number;
|
|
4805
|
+
unit_price?: number;
|
|
3716
4806
|
};
|
|
3717
4807
|
Update: {
|
|
3718
|
-
|
|
4808
|
+
category?: string | null;
|
|
3719
4809
|
created_at?: string;
|
|
3720
|
-
|
|
4810
|
+
description?: string;
|
|
3721
4811
|
id?: string;
|
|
3722
|
-
|
|
4812
|
+
line_total?: number;
|
|
4813
|
+
module_id?: string | null;
|
|
4814
|
+
name?: string | null;
|
|
4815
|
+
quantity?: number;
|
|
4816
|
+
quote_id?: string;
|
|
4817
|
+
sort_order?: number;
|
|
4818
|
+
unit_price?: number;
|
|
4819
|
+
};
|
|
4820
|
+
Relationships: [{
|
|
4821
|
+
foreignKeyName: "quote_items_module_id_fkey";
|
|
4822
|
+
columns: ["module_id"];
|
|
4823
|
+
isOneToOne: false;
|
|
4824
|
+
referencedRelation: "quote_modules";
|
|
4825
|
+
referencedColumns: ["id"];
|
|
4826
|
+
}, {
|
|
4827
|
+
foreignKeyName: "quote_items_quote_id_fkey";
|
|
4828
|
+
columns: ["quote_id"];
|
|
4829
|
+
isOneToOne: false;
|
|
4830
|
+
referencedRelation: "quotes";
|
|
4831
|
+
referencedColumns: ["id"];
|
|
4832
|
+
}];
|
|
4833
|
+
};
|
|
4834
|
+
quote_modules: {
|
|
4835
|
+
Row: {
|
|
4836
|
+
category: string | null;
|
|
4837
|
+
created_at: string;
|
|
4838
|
+
description: string | null;
|
|
4839
|
+
id: string;
|
|
4840
|
+
is_active: boolean;
|
|
4841
|
+
name: string;
|
|
4842
|
+
price: number;
|
|
4843
|
+
sort_order: number;
|
|
4844
|
+
updated_at: string;
|
|
4845
|
+
};
|
|
4846
|
+
Insert: {
|
|
4847
|
+
category?: string | null;
|
|
4848
|
+
created_at?: string;
|
|
4849
|
+
description?: string | null;
|
|
4850
|
+
id?: string;
|
|
4851
|
+
is_active?: boolean;
|
|
4852
|
+
name: string;
|
|
4853
|
+
price?: number;
|
|
4854
|
+
sort_order?: number;
|
|
4855
|
+
updated_at?: string;
|
|
4856
|
+
};
|
|
4857
|
+
Update: {
|
|
4858
|
+
category?: string | null;
|
|
4859
|
+
created_at?: string;
|
|
4860
|
+
description?: string | null;
|
|
4861
|
+
id?: string;
|
|
4862
|
+
is_active?: boolean;
|
|
4863
|
+
name?: string;
|
|
4864
|
+
price?: number;
|
|
4865
|
+
sort_order?: number;
|
|
4866
|
+
updated_at?: string;
|
|
4867
|
+
};
|
|
4868
|
+
Relationships: [];
|
|
4869
|
+
};
|
|
4870
|
+
quote_templates: {
|
|
4871
|
+
Row: {
|
|
4872
|
+
created_at: string;
|
|
4873
|
+
description: string | null;
|
|
4874
|
+
field_values: import("./types").Json;
|
|
4875
|
+
id: string;
|
|
4876
|
+
is_default: boolean;
|
|
4877
|
+
items: import("./types").Json;
|
|
4878
|
+
name: string;
|
|
4879
|
+
updated_at: string;
|
|
4880
|
+
vat_rate: number;
|
|
4881
|
+
};
|
|
4882
|
+
Insert: {
|
|
4883
|
+
created_at?: string;
|
|
4884
|
+
description?: string | null;
|
|
4885
|
+
field_values?: import("./types").Json;
|
|
4886
|
+
id?: string;
|
|
4887
|
+
is_default?: boolean;
|
|
4888
|
+
items?: import("./types").Json;
|
|
4889
|
+
name: string;
|
|
4890
|
+
updated_at?: string;
|
|
4891
|
+
vat_rate?: number;
|
|
4892
|
+
};
|
|
4893
|
+
Update: {
|
|
4894
|
+
created_at?: string;
|
|
4895
|
+
description?: string | null;
|
|
4896
|
+
field_values?: import("./types").Json;
|
|
4897
|
+
id?: string;
|
|
4898
|
+
is_default?: boolean;
|
|
4899
|
+
items?: import("./types").Json;
|
|
4900
|
+
name?: string;
|
|
4901
|
+
updated_at?: string;
|
|
4902
|
+
vat_rate?: number;
|
|
4903
|
+
};
|
|
4904
|
+
Relationships: [];
|
|
4905
|
+
};
|
|
4906
|
+
quote_terms: {
|
|
4907
|
+
Row: {
|
|
4908
|
+
content: string | null;
|
|
4909
|
+
created_at: string;
|
|
4910
|
+
file_url: string | null;
|
|
4911
|
+
id: string;
|
|
4912
|
+
is_active: boolean;
|
|
4913
|
+
name: string;
|
|
4914
|
+
published_at: string | null;
|
|
4915
|
+
updated_at: string;
|
|
4916
|
+
version: string;
|
|
4917
|
+
};
|
|
4918
|
+
Insert: {
|
|
4919
|
+
content?: string | null;
|
|
4920
|
+
created_at?: string;
|
|
4921
|
+
file_url?: string | null;
|
|
4922
|
+
id?: string;
|
|
4923
|
+
is_active?: boolean;
|
|
4924
|
+
name: string;
|
|
4925
|
+
published_at?: string | null;
|
|
4926
|
+
updated_at?: string;
|
|
4927
|
+
version?: string;
|
|
4928
|
+
};
|
|
4929
|
+
Update: {
|
|
4930
|
+
content?: string | null;
|
|
4931
|
+
created_at?: string;
|
|
4932
|
+
file_url?: string | null;
|
|
4933
|
+
id?: string;
|
|
4934
|
+
is_active?: boolean;
|
|
4935
|
+
name?: string;
|
|
4936
|
+
published_at?: string | null;
|
|
4937
|
+
updated_at?: string;
|
|
4938
|
+
version?: string;
|
|
4939
|
+
};
|
|
4940
|
+
Relationships: [];
|
|
4941
|
+
};
|
|
4942
|
+
quotes: {
|
|
4943
|
+
Row: {
|
|
4944
|
+
accepted_at: string | null;
|
|
4945
|
+
archived_at: string | null;
|
|
4946
|
+
contact_id: string | null;
|
|
4947
|
+
created_at: string;
|
|
4948
|
+
customer_id: string | null;
|
|
4949
|
+
discount: number;
|
|
4950
|
+
expires_at: string | null;
|
|
4951
|
+
field_values: import("./types").Json;
|
|
4952
|
+
id: string;
|
|
4953
|
+
notes: string | null;
|
|
4954
|
+
owner_id: string | null;
|
|
4955
|
+
personal_message: string | null;
|
|
4956
|
+
project_id: string | null;
|
|
4957
|
+
prospect_id: string | null;
|
|
4958
|
+
public_token: string;
|
|
4959
|
+
quote_number: string | null;
|
|
4960
|
+
recipient_email: string | null;
|
|
4961
|
+
recipient_name: string | null;
|
|
4962
|
+
rejected_at: string | null;
|
|
4963
|
+
sent_at: string | null;
|
|
4964
|
+
status: string;
|
|
4965
|
+
subtotal: number;
|
|
4966
|
+
template_id: string | null;
|
|
4967
|
+
terms_id: string | null;
|
|
4968
|
+
title: string;
|
|
4969
|
+
total: number;
|
|
4970
|
+
updated_at: string;
|
|
4971
|
+
valid_until: string | null;
|
|
4972
|
+
vat_amount: number;
|
|
4973
|
+
vat_rate: number;
|
|
4974
|
+
viewed_at: string | null;
|
|
4975
|
+
};
|
|
4976
|
+
Insert: {
|
|
4977
|
+
accepted_at?: string | null;
|
|
4978
|
+
archived_at?: string | null;
|
|
4979
|
+
contact_id?: string | null;
|
|
4980
|
+
created_at?: string;
|
|
4981
|
+
customer_id?: string | null;
|
|
4982
|
+
discount?: number;
|
|
4983
|
+
expires_at?: string | null;
|
|
4984
|
+
field_values?: import("./types").Json;
|
|
4985
|
+
id?: string;
|
|
4986
|
+
notes?: string | null;
|
|
4987
|
+
owner_id?: string | null;
|
|
4988
|
+
personal_message?: string | null;
|
|
4989
|
+
project_id?: string | null;
|
|
4990
|
+
prospect_id?: string | null;
|
|
4991
|
+
public_token?: string;
|
|
4992
|
+
quote_number?: string | null;
|
|
4993
|
+
recipient_email?: string | null;
|
|
4994
|
+
recipient_name?: string | null;
|
|
4995
|
+
rejected_at?: string | null;
|
|
4996
|
+
sent_at?: string | null;
|
|
4997
|
+
status?: string;
|
|
4998
|
+
subtotal?: number;
|
|
4999
|
+
template_id?: string | null;
|
|
5000
|
+
terms_id?: string | null;
|
|
5001
|
+
title?: string;
|
|
5002
|
+
total?: number;
|
|
5003
|
+
updated_at?: string;
|
|
5004
|
+
valid_until?: string | null;
|
|
5005
|
+
vat_amount?: number;
|
|
5006
|
+
vat_rate?: number;
|
|
5007
|
+
viewed_at?: string | null;
|
|
5008
|
+
};
|
|
5009
|
+
Update: {
|
|
5010
|
+
accepted_at?: string | null;
|
|
5011
|
+
archived_at?: string | null;
|
|
5012
|
+
contact_id?: string | null;
|
|
5013
|
+
created_at?: string;
|
|
5014
|
+
customer_id?: string | null;
|
|
5015
|
+
discount?: number;
|
|
5016
|
+
expires_at?: string | null;
|
|
5017
|
+
field_values?: import("./types").Json;
|
|
5018
|
+
id?: string;
|
|
5019
|
+
notes?: string | null;
|
|
5020
|
+
owner_id?: string | null;
|
|
5021
|
+
personal_message?: string | null;
|
|
5022
|
+
project_id?: string | null;
|
|
5023
|
+
prospect_id?: string | null;
|
|
5024
|
+
public_token?: string;
|
|
5025
|
+
quote_number?: string | null;
|
|
5026
|
+
recipient_email?: string | null;
|
|
5027
|
+
recipient_name?: string | null;
|
|
5028
|
+
rejected_at?: string | null;
|
|
5029
|
+
sent_at?: string | null;
|
|
5030
|
+
status?: string;
|
|
5031
|
+
subtotal?: number;
|
|
5032
|
+
template_id?: string | null;
|
|
5033
|
+
terms_id?: string | null;
|
|
5034
|
+
title?: string;
|
|
5035
|
+
total?: number;
|
|
5036
|
+
updated_at?: string;
|
|
5037
|
+
valid_until?: string | null;
|
|
5038
|
+
vat_amount?: number;
|
|
5039
|
+
vat_rate?: number;
|
|
5040
|
+
viewed_at?: string | null;
|
|
5041
|
+
};
|
|
5042
|
+
Relationships: [{
|
|
5043
|
+
foreignKeyName: "quotes_contact_id_fkey";
|
|
5044
|
+
columns: ["contact_id"];
|
|
5045
|
+
isOneToOne: false;
|
|
5046
|
+
referencedRelation: "customer_contacts";
|
|
5047
|
+
referencedColumns: ["id"];
|
|
5048
|
+
}, {
|
|
5049
|
+
foreignKeyName: "quotes_customer_id_fkey";
|
|
5050
|
+
columns: ["customer_id"];
|
|
5051
|
+
isOneToOne: false;
|
|
5052
|
+
referencedRelation: "customers";
|
|
5053
|
+
referencedColumns: ["id"];
|
|
5054
|
+
}, {
|
|
5055
|
+
foreignKeyName: "quotes_project_id_fkey";
|
|
5056
|
+
columns: ["project_id"];
|
|
5057
|
+
isOneToOne: false;
|
|
5058
|
+
referencedRelation: "projects";
|
|
5059
|
+
referencedColumns: ["id"];
|
|
5060
|
+
}, {
|
|
5061
|
+
foreignKeyName: "quotes_prospect_id_fkey";
|
|
5062
|
+
columns: ["prospect_id"];
|
|
5063
|
+
isOneToOne: false;
|
|
5064
|
+
referencedRelation: "prospects";
|
|
5065
|
+
referencedColumns: ["id"];
|
|
5066
|
+
}, {
|
|
5067
|
+
foreignKeyName: "quotes_template_id_fkey";
|
|
5068
|
+
columns: ["template_id"];
|
|
5069
|
+
isOneToOne: false;
|
|
5070
|
+
referencedRelation: "quote_templates";
|
|
5071
|
+
referencedColumns: ["id"];
|
|
5072
|
+
}, {
|
|
5073
|
+
foreignKeyName: "quotes_terms_id_fkey";
|
|
5074
|
+
columns: ["terms_id"];
|
|
5075
|
+
isOneToOne: false;
|
|
5076
|
+
referencedRelation: "quote_terms";
|
|
5077
|
+
referencedColumns: ["id"];
|
|
5078
|
+
}];
|
|
5079
|
+
};
|
|
5080
|
+
reception_notifications: {
|
|
5081
|
+
Row: {
|
|
5082
|
+
booking_id: string | null;
|
|
5083
|
+
created_at: string;
|
|
5084
|
+
id: string;
|
|
5085
|
+
is_read: boolean;
|
|
5086
|
+
message: string;
|
|
5087
|
+
recipient_email: string | null;
|
|
5088
|
+
title: string;
|
|
5089
|
+
type: string;
|
|
5090
|
+
};
|
|
5091
|
+
Insert: {
|
|
5092
|
+
booking_id?: string | null;
|
|
5093
|
+
created_at?: string;
|
|
5094
|
+
id?: string;
|
|
5095
|
+
is_read?: boolean;
|
|
5096
|
+
message: string;
|
|
5097
|
+
recipient_email?: string | null;
|
|
5098
|
+
title: string;
|
|
5099
|
+
type: string;
|
|
5100
|
+
};
|
|
5101
|
+
Update: {
|
|
5102
|
+
booking_id?: string | null;
|
|
5103
|
+
created_at?: string;
|
|
5104
|
+
id?: string;
|
|
5105
|
+
is_read?: boolean;
|
|
5106
|
+
message?: string;
|
|
5107
|
+
recipient_email?: string | null;
|
|
5108
|
+
title?: string;
|
|
5109
|
+
type?: string;
|
|
5110
|
+
};
|
|
5111
|
+
Relationships: [{
|
|
5112
|
+
foreignKeyName: "reception_notifications_booking_id_fkey";
|
|
5113
|
+
columns: ["booking_id"];
|
|
5114
|
+
isOneToOne: false;
|
|
5115
|
+
referencedRelation: "bookings";
|
|
5116
|
+
referencedColumns: ["id"];
|
|
5117
|
+
}];
|
|
5118
|
+
};
|
|
5119
|
+
rooms: {
|
|
5120
|
+
Row: {
|
|
5121
|
+
capacity: number;
|
|
5122
|
+
color_code: string | null;
|
|
5123
|
+
created_at: string;
|
|
5124
|
+
description: string | null;
|
|
5125
|
+
hourly_rate: number;
|
|
5126
|
+
id: string;
|
|
5127
|
+
image_url: string | null;
|
|
5128
|
+
is_active: boolean;
|
|
5129
|
+
name: string;
|
|
5130
|
+
};
|
|
5131
|
+
Insert: {
|
|
5132
|
+
capacity?: number;
|
|
5133
|
+
color_code?: string | null;
|
|
5134
|
+
created_at?: string;
|
|
5135
|
+
description?: string | null;
|
|
5136
|
+
hourly_rate?: number;
|
|
5137
|
+
id?: string;
|
|
5138
|
+
image_url?: string | null;
|
|
5139
|
+
is_active?: boolean;
|
|
5140
|
+
name: string;
|
|
5141
|
+
};
|
|
5142
|
+
Update: {
|
|
5143
|
+
capacity?: number;
|
|
5144
|
+
color_code?: string | null;
|
|
5145
|
+
created_at?: string;
|
|
5146
|
+
description?: string | null;
|
|
5147
|
+
hourly_rate?: number;
|
|
5148
|
+
id?: string;
|
|
5149
|
+
image_url?: string | null;
|
|
5150
|
+
is_active?: boolean;
|
|
5151
|
+
name?: string;
|
|
5152
|
+
};
|
|
5153
|
+
Relationships: [];
|
|
5154
|
+
};
|
|
5155
|
+
supplier_products: {
|
|
5156
|
+
Row: {
|
|
5157
|
+
article_number: string | null;
|
|
5158
|
+
created_at: string;
|
|
5159
|
+
id: string;
|
|
5160
|
+
name: string;
|
|
5161
|
+
notes: string | null;
|
|
5162
|
+
pot_size: string | null;
|
|
5163
|
+
price: number | null;
|
|
5164
|
+
quantity: number | null;
|
|
5165
|
+
supplier_id: string;
|
|
5166
|
+
unit: string;
|
|
5167
|
+
updated_at: string;
|
|
5168
|
+
};
|
|
5169
|
+
Insert: {
|
|
5170
|
+
article_number?: string | null;
|
|
5171
|
+
created_at?: string;
|
|
5172
|
+
id?: string;
|
|
5173
|
+
name: string;
|
|
5174
|
+
notes?: string | null;
|
|
5175
|
+
pot_size?: string | null;
|
|
5176
|
+
price?: number | null;
|
|
5177
|
+
quantity?: number | null;
|
|
5178
|
+
supplier_id: string;
|
|
5179
|
+
unit?: string;
|
|
5180
|
+
updated_at?: string;
|
|
5181
|
+
};
|
|
5182
|
+
Update: {
|
|
5183
|
+
article_number?: string | null;
|
|
5184
|
+
created_at?: string;
|
|
5185
|
+
id?: string;
|
|
5186
|
+
name?: string;
|
|
5187
|
+
notes?: string | null;
|
|
5188
|
+
pot_size?: string | null;
|
|
5189
|
+
price?: number | null;
|
|
5190
|
+
quantity?: number | null;
|
|
5191
|
+
supplier_id?: string;
|
|
5192
|
+
unit?: string;
|
|
5193
|
+
updated_at?: string;
|
|
5194
|
+
};
|
|
5195
|
+
Relationships: [{
|
|
5196
|
+
foreignKeyName: "supplier_products_supplier_id_fkey";
|
|
5197
|
+
columns: ["supplier_id"];
|
|
5198
|
+
isOneToOne: false;
|
|
5199
|
+
referencedRelation: "suppliers";
|
|
5200
|
+
referencedColumns: ["id"];
|
|
5201
|
+
}];
|
|
5202
|
+
};
|
|
5203
|
+
suppliers: {
|
|
5204
|
+
Row: {
|
|
5205
|
+
address: string | null;
|
|
5206
|
+
column_mappings: import("./types").Json | null;
|
|
5207
|
+
contact_person: string | null;
|
|
5208
|
+
created_at: string;
|
|
5209
|
+
default_product_type: string;
|
|
5210
|
+
email: string | null;
|
|
5211
|
+
id: string;
|
|
5212
|
+
imported_file_name: string | null;
|
|
5213
|
+
name: string;
|
|
5214
|
+
notes: string | null;
|
|
5215
|
+
phone: string | null;
|
|
5216
|
+
updated_at: string;
|
|
5217
|
+
};
|
|
5218
|
+
Insert: {
|
|
5219
|
+
address?: string | null;
|
|
5220
|
+
column_mappings?: import("./types").Json | null;
|
|
5221
|
+
contact_person?: string | null;
|
|
5222
|
+
created_at?: string;
|
|
5223
|
+
default_product_type?: string;
|
|
5224
|
+
email?: string | null;
|
|
5225
|
+
id?: string;
|
|
5226
|
+
imported_file_name?: string | null;
|
|
5227
|
+
name: string;
|
|
5228
|
+
notes?: string | null;
|
|
5229
|
+
phone?: string | null;
|
|
5230
|
+
updated_at?: string;
|
|
5231
|
+
};
|
|
5232
|
+
Update: {
|
|
5233
|
+
address?: string | null;
|
|
5234
|
+
column_mappings?: import("./types").Json | null;
|
|
5235
|
+
contact_person?: string | null;
|
|
5236
|
+
created_at?: string;
|
|
5237
|
+
default_product_type?: string;
|
|
5238
|
+
email?: string | null;
|
|
5239
|
+
id?: string;
|
|
5240
|
+
imported_file_name?: string | null;
|
|
5241
|
+
name?: string;
|
|
5242
|
+
notes?: string | null;
|
|
5243
|
+
phone?: string | null;
|
|
5244
|
+
updated_at?: string;
|
|
5245
|
+
};
|
|
5246
|
+
Relationships: [];
|
|
5247
|
+
};
|
|
5248
|
+
tenants: {
|
|
5249
|
+
Row: {
|
|
5250
|
+
created_at: string;
|
|
5251
|
+
id: string;
|
|
5252
|
+
name: string;
|
|
5253
|
+
slug: string | null;
|
|
5254
|
+
updated_at: string;
|
|
5255
|
+
};
|
|
5256
|
+
Insert: {
|
|
5257
|
+
created_at?: string;
|
|
5258
|
+
id?: string;
|
|
5259
|
+
name?: string;
|
|
5260
|
+
slug?: string | null;
|
|
5261
|
+
updated_at?: string;
|
|
5262
|
+
};
|
|
5263
|
+
Update: {
|
|
5264
|
+
created_at?: string;
|
|
5265
|
+
id?: string;
|
|
5266
|
+
name?: string;
|
|
5267
|
+
slug?: string | null;
|
|
5268
|
+
updated_at?: string;
|
|
5269
|
+
};
|
|
5270
|
+
Relationships: [];
|
|
5271
|
+
};
|
|
5272
|
+
trade_item_drafts: {
|
|
5273
|
+
Row: {
|
|
5274
|
+
connection_id: string | null;
|
|
5275
|
+
created_at: string;
|
|
5276
|
+
data: import("./types").Json;
|
|
5277
|
+
id: string;
|
|
5278
|
+
updated_at: string;
|
|
5279
|
+
user_id: string;
|
|
5280
|
+
};
|
|
5281
|
+
Insert: {
|
|
5282
|
+
connection_id?: string | null;
|
|
5283
|
+
created_at?: string;
|
|
5284
|
+
data?: import("./types").Json;
|
|
5285
|
+
id?: string;
|
|
5286
|
+
updated_at?: string;
|
|
5287
|
+
user_id: string;
|
|
5288
|
+
};
|
|
5289
|
+
Update: {
|
|
5290
|
+
connection_id?: string | null;
|
|
5291
|
+
created_at?: string;
|
|
5292
|
+
data?: import("./types").Json;
|
|
5293
|
+
id?: string;
|
|
5294
|
+
updated_at?: string;
|
|
5295
|
+
user_id?: string;
|
|
5296
|
+
};
|
|
5297
|
+
Relationships: [];
|
|
5298
|
+
};
|
|
5299
|
+
twinfield_connections: {
|
|
5300
|
+
Row: {
|
|
5301
|
+
access_token: string | null;
|
|
5302
|
+
client_id: string;
|
|
5303
|
+
client_secret: string | null;
|
|
5304
|
+
cluster_uri: string | null;
|
|
5305
|
+
company_code: string | null;
|
|
5306
|
+
company_name: string | null;
|
|
5307
|
+
connected_at: string | null;
|
|
5308
|
+
created_at: string;
|
|
5309
|
+
environment: string;
|
|
5310
|
+
id: string;
|
|
5311
|
+
is_active: boolean;
|
|
5312
|
+
label: string | null;
|
|
5313
|
+
office_code: string | null;
|
|
5314
|
+
redirect_uri: string;
|
|
5315
|
+
refresh_token: string | null;
|
|
5316
|
+
token_expires_at: string | null;
|
|
5317
|
+
updated_at: string;
|
|
5318
|
+
user_id: string;
|
|
5319
|
+
};
|
|
5320
|
+
Insert: {
|
|
5321
|
+
access_token?: string | null;
|
|
5322
|
+
client_id: string;
|
|
5323
|
+
client_secret?: string | null;
|
|
5324
|
+
cluster_uri?: string | null;
|
|
5325
|
+
company_code?: string | null;
|
|
5326
|
+
company_name?: string | null;
|
|
5327
|
+
connected_at?: string | null;
|
|
5328
|
+
created_at?: string;
|
|
5329
|
+
environment: string;
|
|
5330
|
+
id?: string;
|
|
5331
|
+
is_active?: boolean;
|
|
5332
|
+
label?: string | null;
|
|
5333
|
+
office_code?: string | null;
|
|
5334
|
+
redirect_uri: string;
|
|
5335
|
+
refresh_token?: string | null;
|
|
5336
|
+
token_expires_at?: string | null;
|
|
5337
|
+
updated_at?: string;
|
|
5338
|
+
user_id: string;
|
|
5339
|
+
};
|
|
5340
|
+
Update: {
|
|
5341
|
+
access_token?: string | null;
|
|
5342
|
+
client_id?: string;
|
|
5343
|
+
client_secret?: string | null;
|
|
5344
|
+
cluster_uri?: string | null;
|
|
5345
|
+
company_code?: string | null;
|
|
5346
|
+
company_name?: string | null;
|
|
5347
|
+
connected_at?: string | null;
|
|
5348
|
+
created_at?: string;
|
|
5349
|
+
environment?: string;
|
|
5350
|
+
id?: string;
|
|
5351
|
+
is_active?: boolean;
|
|
5352
|
+
label?: string | null;
|
|
5353
|
+
office_code?: string | null;
|
|
5354
|
+
redirect_uri?: string;
|
|
5355
|
+
refresh_token?: string | null;
|
|
5356
|
+
token_expires_at?: string | null;
|
|
5357
|
+
updated_at?: string;
|
|
5358
|
+
user_id?: string;
|
|
5359
|
+
};
|
|
5360
|
+
Relationships: [];
|
|
5361
|
+
};
|
|
5362
|
+
twinfield_credentials: {
|
|
5363
|
+
Row: {
|
|
5364
|
+
administration_code: string | null;
|
|
5365
|
+
client_id: string | null;
|
|
5366
|
+
client_secret: string | null;
|
|
5367
|
+
cluster: string | null;
|
|
5368
|
+
connected_at: string | null;
|
|
5369
|
+
created_at: string;
|
|
5370
|
+
environment: string | null;
|
|
5371
|
+
id: string;
|
|
5372
|
+
redirect_uri: string | null;
|
|
5373
|
+
refresh_token: string | null;
|
|
5374
|
+
updated_at: string;
|
|
5375
|
+
user_id: string;
|
|
5376
|
+
};
|
|
5377
|
+
Insert: {
|
|
5378
|
+
administration_code?: string | null;
|
|
5379
|
+
client_id?: string | null;
|
|
5380
|
+
client_secret?: string | null;
|
|
5381
|
+
cluster?: string | null;
|
|
5382
|
+
connected_at?: string | null;
|
|
5383
|
+
created_at?: string;
|
|
5384
|
+
environment?: string | null;
|
|
5385
|
+
id?: string;
|
|
5386
|
+
redirect_uri?: string | null;
|
|
5387
|
+
refresh_token?: string | null;
|
|
5388
|
+
updated_at?: string;
|
|
5389
|
+
user_id: string;
|
|
5390
|
+
};
|
|
5391
|
+
Update: {
|
|
5392
|
+
administration_code?: string | null;
|
|
5393
|
+
client_id?: string | null;
|
|
5394
|
+
client_secret?: string | null;
|
|
5395
|
+
cluster?: string | null;
|
|
5396
|
+
connected_at?: string | null;
|
|
5397
|
+
created_at?: string;
|
|
5398
|
+
environment?: string | null;
|
|
5399
|
+
id?: string;
|
|
5400
|
+
redirect_uri?: string | null;
|
|
5401
|
+
refresh_token?: string | null;
|
|
5402
|
+
updated_at?: string;
|
|
5403
|
+
user_id?: string;
|
|
5404
|
+
};
|
|
5405
|
+
Relationships: [];
|
|
5406
|
+
};
|
|
5407
|
+
twinfield_customers: {
|
|
5408
|
+
Row: {
|
|
5409
|
+
address: string | null;
|
|
5410
|
+
city: string | null;
|
|
5411
|
+
country: string | null;
|
|
5412
|
+
created_at: string;
|
|
5413
|
+
email: string | null;
|
|
5414
|
+
id: string;
|
|
5415
|
+
last_synced_at: string | null;
|
|
5416
|
+
name: string;
|
|
5417
|
+
phone: string | null;
|
|
5418
|
+
postal_code: string | null;
|
|
5419
|
+
status: string;
|
|
5420
|
+
sync_error: string | null;
|
|
5421
|
+
sync_status: string;
|
|
5422
|
+
twinfield_code: string | null;
|
|
5423
|
+
updated_at: string;
|
|
5424
|
+
user_id: string;
|
|
5425
|
+
};
|
|
5426
|
+
Insert: {
|
|
5427
|
+
address?: string | null;
|
|
5428
|
+
city?: string | null;
|
|
5429
|
+
country?: string | null;
|
|
5430
|
+
created_at?: string;
|
|
5431
|
+
email?: string | null;
|
|
5432
|
+
id?: string;
|
|
5433
|
+
last_synced_at?: string | null;
|
|
5434
|
+
name: string;
|
|
5435
|
+
phone?: string | null;
|
|
5436
|
+
postal_code?: string | null;
|
|
5437
|
+
status?: string;
|
|
5438
|
+
sync_error?: string | null;
|
|
5439
|
+
sync_status?: string;
|
|
5440
|
+
twinfield_code?: string | null;
|
|
5441
|
+
updated_at?: string;
|
|
5442
|
+
user_id: string;
|
|
5443
|
+
};
|
|
5444
|
+
Update: {
|
|
5445
|
+
address?: string | null;
|
|
5446
|
+
city?: string | null;
|
|
5447
|
+
country?: string | null;
|
|
5448
|
+
created_at?: string;
|
|
5449
|
+
email?: string | null;
|
|
5450
|
+
id?: string;
|
|
5451
|
+
last_synced_at?: string | null;
|
|
5452
|
+
name?: string;
|
|
5453
|
+
phone?: string | null;
|
|
5454
|
+
postal_code?: string | null;
|
|
5455
|
+
status?: string;
|
|
5456
|
+
sync_error?: string | null;
|
|
5457
|
+
sync_status?: string;
|
|
5458
|
+
twinfield_code?: string | null;
|
|
5459
|
+
updated_at?: string;
|
|
5460
|
+
user_id?: string;
|
|
5461
|
+
};
|
|
5462
|
+
Relationships: [];
|
|
5463
|
+
};
|
|
5464
|
+
twinfield_customers_cache: {
|
|
5465
|
+
Row: {
|
|
5466
|
+
connection_id: string;
|
|
5467
|
+
country: string | null;
|
|
5468
|
+
data: import("./types").Json;
|
|
5469
|
+
email: string | null;
|
|
5470
|
+
fetched_at: string;
|
|
5471
|
+
modified_at: string | null;
|
|
5472
|
+
name: string | null;
|
|
5473
|
+
twinfield_code: string;
|
|
5474
|
+
vat_number: string | null;
|
|
5475
|
+
};
|
|
5476
|
+
Insert: {
|
|
5477
|
+
connection_id: string;
|
|
5478
|
+
country?: string | null;
|
|
5479
|
+
data?: import("./types").Json;
|
|
5480
|
+
email?: string | null;
|
|
5481
|
+
fetched_at?: string;
|
|
5482
|
+
modified_at?: string | null;
|
|
5483
|
+
name?: string | null;
|
|
5484
|
+
twinfield_code: string;
|
|
5485
|
+
vat_number?: string | null;
|
|
5486
|
+
};
|
|
5487
|
+
Update: {
|
|
5488
|
+
connection_id?: string;
|
|
5489
|
+
country?: string | null;
|
|
5490
|
+
data?: import("./types").Json;
|
|
5491
|
+
email?: string | null;
|
|
5492
|
+
fetched_at?: string;
|
|
5493
|
+
modified_at?: string | null;
|
|
5494
|
+
name?: string | null;
|
|
5495
|
+
twinfield_code?: string;
|
|
5496
|
+
vat_number?: string | null;
|
|
5497
|
+
};
|
|
5498
|
+
Relationships: [{
|
|
5499
|
+
foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
|
|
5500
|
+
columns: ["connection_id"];
|
|
5501
|
+
isOneToOne: false;
|
|
5502
|
+
referencedRelation: "twinfield_connections";
|
|
5503
|
+
referencedColumns: ["id"];
|
|
5504
|
+
}];
|
|
5505
|
+
};
|
|
5506
|
+
twinfield_invoice_lines: {
|
|
5507
|
+
Row: {
|
|
5508
|
+
article_code: string | null;
|
|
5509
|
+
created_at: string;
|
|
5510
|
+
description: string | null;
|
|
5511
|
+
gl_account: string | null;
|
|
5512
|
+
id: string;
|
|
5513
|
+
invoice_id: string;
|
|
5514
|
+
line_number: number | null;
|
|
5515
|
+
line_total: number;
|
|
5516
|
+
quantity: number;
|
|
5517
|
+
unit_price: number;
|
|
5518
|
+
user_id: string;
|
|
5519
|
+
vat_code: string | null;
|
|
5520
|
+
vat_rate: number;
|
|
5521
|
+
};
|
|
5522
|
+
Insert: {
|
|
5523
|
+
article_code?: string | null;
|
|
5524
|
+
created_at?: string;
|
|
5525
|
+
description?: string | null;
|
|
5526
|
+
gl_account?: string | null;
|
|
5527
|
+
id?: string;
|
|
5528
|
+
invoice_id: string;
|
|
5529
|
+
line_number?: number | null;
|
|
5530
|
+
line_total?: number;
|
|
5531
|
+
quantity?: number;
|
|
5532
|
+
unit_price?: number;
|
|
5533
|
+
user_id: string;
|
|
5534
|
+
vat_code?: string | null;
|
|
5535
|
+
vat_rate?: number;
|
|
5536
|
+
};
|
|
5537
|
+
Update: {
|
|
5538
|
+
article_code?: string | null;
|
|
5539
|
+
created_at?: string;
|
|
5540
|
+
description?: string | null;
|
|
5541
|
+
gl_account?: string | null;
|
|
5542
|
+
id?: string;
|
|
5543
|
+
invoice_id?: string;
|
|
5544
|
+
line_number?: number | null;
|
|
5545
|
+
line_total?: number;
|
|
5546
|
+
quantity?: number;
|
|
5547
|
+
unit_price?: number;
|
|
5548
|
+
user_id?: string;
|
|
5549
|
+
vat_code?: string | null;
|
|
5550
|
+
vat_rate?: number;
|
|
5551
|
+
};
|
|
5552
|
+
Relationships: [{
|
|
5553
|
+
foreignKeyName: "twinfield_invoice_lines_invoice_id_fkey";
|
|
5554
|
+
columns: ["invoice_id"];
|
|
5555
|
+
isOneToOne: false;
|
|
5556
|
+
referencedRelation: "twinfield_invoices";
|
|
5557
|
+
referencedColumns: ["id"];
|
|
5558
|
+
}];
|
|
5559
|
+
};
|
|
5560
|
+
twinfield_invoice_lines_cache_v2: {
|
|
5561
|
+
Row: {
|
|
5562
|
+
article_code: string | null;
|
|
5563
|
+
connection_id: string;
|
|
5564
|
+
data: import("./types").Json;
|
|
5565
|
+
description: string | null;
|
|
5566
|
+
fetched_at: string;
|
|
5567
|
+
invoice_number: string;
|
|
5568
|
+
line_number: number;
|
|
5569
|
+
quantity: number | null;
|
|
5570
|
+
unit_price: number | null;
|
|
5571
|
+
vat_code: string | null;
|
|
5572
|
+
};
|
|
5573
|
+
Insert: {
|
|
5574
|
+
article_code?: string | null;
|
|
5575
|
+
connection_id: string;
|
|
5576
|
+
data?: import("./types").Json;
|
|
5577
|
+
description?: string | null;
|
|
5578
|
+
fetched_at?: string;
|
|
5579
|
+
invoice_number: string;
|
|
5580
|
+
line_number: number;
|
|
5581
|
+
quantity?: number | null;
|
|
5582
|
+
unit_price?: number | null;
|
|
5583
|
+
vat_code?: string | null;
|
|
5584
|
+
};
|
|
5585
|
+
Update: {
|
|
5586
|
+
article_code?: string | null;
|
|
5587
|
+
connection_id?: string;
|
|
5588
|
+
data?: import("./types").Json;
|
|
5589
|
+
description?: string | null;
|
|
5590
|
+
fetched_at?: string;
|
|
5591
|
+
invoice_number?: string;
|
|
5592
|
+
line_number?: number;
|
|
5593
|
+
quantity?: number | null;
|
|
5594
|
+
unit_price?: number | null;
|
|
5595
|
+
vat_code?: string | null;
|
|
5596
|
+
};
|
|
5597
|
+
Relationships: [{
|
|
5598
|
+
foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
|
|
5599
|
+
columns: ["connection_id"];
|
|
5600
|
+
isOneToOne: false;
|
|
5601
|
+
referencedRelation: "twinfield_connections";
|
|
5602
|
+
referencedColumns: ["id"];
|
|
5603
|
+
}];
|
|
5604
|
+
};
|
|
5605
|
+
twinfield_invoice_settings: {
|
|
5606
|
+
Row: {
|
|
5607
|
+
created_at: string;
|
|
5608
|
+
default_gl_account: string;
|
|
5609
|
+
default_invoice_type: string;
|
|
5610
|
+
default_payment_term_days: number;
|
|
5611
|
+
default_vat_code: string;
|
|
5612
|
+
updated_at: string;
|
|
5613
|
+
user_id: string;
|
|
5614
|
+
};
|
|
5615
|
+
Insert: {
|
|
5616
|
+
created_at?: string;
|
|
5617
|
+
default_gl_account?: string;
|
|
5618
|
+
default_invoice_type?: string;
|
|
5619
|
+
default_payment_term_days?: number;
|
|
5620
|
+
default_vat_code?: string;
|
|
5621
|
+
updated_at?: string;
|
|
5622
|
+
user_id: string;
|
|
5623
|
+
};
|
|
5624
|
+
Update: {
|
|
5625
|
+
created_at?: string;
|
|
5626
|
+
default_gl_account?: string;
|
|
5627
|
+
default_invoice_type?: string;
|
|
5628
|
+
default_payment_term_days?: number;
|
|
5629
|
+
default_vat_code?: string;
|
|
5630
|
+
updated_at?: string;
|
|
5631
|
+
user_id?: string;
|
|
5632
|
+
};
|
|
5633
|
+
Relationships: [];
|
|
5634
|
+
};
|
|
5635
|
+
twinfield_invoice_sync_logs: {
|
|
5636
|
+
Row: {
|
|
5637
|
+
created_at: string;
|
|
5638
|
+
details: import("./types").Json | null;
|
|
5639
|
+
duration_ms: number | null;
|
|
5640
|
+
id: string;
|
|
5641
|
+
invoice_lines_fetched: number | null;
|
|
5642
|
+
invoices_fetched: number | null;
|
|
5643
|
+
message: string | null;
|
|
5644
|
+
status: string;
|
|
5645
|
+
step: string | null;
|
|
5646
|
+
user_id: string;
|
|
5647
|
+
};
|
|
5648
|
+
Insert: {
|
|
5649
|
+
created_at?: string;
|
|
5650
|
+
details?: import("./types").Json | null;
|
|
5651
|
+
duration_ms?: number | null;
|
|
5652
|
+
id?: string;
|
|
5653
|
+
invoice_lines_fetched?: number | null;
|
|
5654
|
+
invoices_fetched?: number | null;
|
|
5655
|
+
message?: string | null;
|
|
5656
|
+
status: string;
|
|
5657
|
+
step?: string | null;
|
|
5658
|
+
user_id: string;
|
|
5659
|
+
};
|
|
5660
|
+
Update: {
|
|
5661
|
+
created_at?: string;
|
|
5662
|
+
details?: import("./types").Json | null;
|
|
5663
|
+
duration_ms?: number | null;
|
|
5664
|
+
id?: string;
|
|
5665
|
+
invoice_lines_fetched?: number | null;
|
|
5666
|
+
invoices_fetched?: number | null;
|
|
5667
|
+
message?: string | null;
|
|
5668
|
+
status?: string;
|
|
5669
|
+
step?: string | null;
|
|
5670
|
+
user_id?: string;
|
|
5671
|
+
};
|
|
5672
|
+
Relationships: [];
|
|
5673
|
+
};
|
|
5674
|
+
twinfield_invoices: {
|
|
5675
|
+
Row: {
|
|
5676
|
+
administration_code: string | null;
|
|
5677
|
+
created_at: string;
|
|
5678
|
+
currency: string | null;
|
|
5679
|
+
customer_code: string | null;
|
|
5680
|
+
customer_email: string | null;
|
|
5681
|
+
customer_name: string | null;
|
|
5682
|
+
customer_phone: string | null;
|
|
5683
|
+
due_date: string | null;
|
|
5684
|
+
id: string;
|
|
5685
|
+
invoice_date: string | null;
|
|
5686
|
+
last_synced_at: string;
|
|
5687
|
+
local_invoice_number: string | null;
|
|
5688
|
+
outstanding_amount: number;
|
|
5689
|
+
paid_amount: number;
|
|
5690
|
+
payment_date: string | null;
|
|
5691
|
+
raw_payload: import("./types").Json | null;
|
|
5692
|
+
status: string;
|
|
5693
|
+
subtotal: number;
|
|
5694
|
+
sync_error: string | null;
|
|
5695
|
+
sync_status: string;
|
|
5696
|
+
total: number;
|
|
5697
|
+
twinfield_invoice_number: string;
|
|
5698
|
+
twinfield_transaction_number: string | null;
|
|
5699
|
+
updated_at: string;
|
|
5700
|
+
user_id: string;
|
|
5701
|
+
vat_amount: number;
|
|
5702
|
+
};
|
|
5703
|
+
Insert: {
|
|
5704
|
+
administration_code?: string | null;
|
|
5705
|
+
created_at?: string;
|
|
5706
|
+
currency?: string | null;
|
|
5707
|
+
customer_code?: string | null;
|
|
5708
|
+
customer_email?: string | null;
|
|
5709
|
+
customer_name?: string | null;
|
|
5710
|
+
customer_phone?: string | null;
|
|
5711
|
+
due_date?: string | null;
|
|
5712
|
+
id?: string;
|
|
5713
|
+
invoice_date?: string | null;
|
|
5714
|
+
last_synced_at?: string;
|
|
5715
|
+
local_invoice_number?: string | null;
|
|
5716
|
+
outstanding_amount?: number;
|
|
5717
|
+
paid_amount?: number;
|
|
5718
|
+
payment_date?: string | null;
|
|
5719
|
+
raw_payload?: import("./types").Json | null;
|
|
5720
|
+
status?: string;
|
|
5721
|
+
subtotal?: number;
|
|
5722
|
+
sync_error?: string | null;
|
|
5723
|
+
sync_status?: string;
|
|
5724
|
+
total?: number;
|
|
5725
|
+
twinfield_invoice_number: string;
|
|
5726
|
+
twinfield_transaction_number?: string | null;
|
|
5727
|
+
updated_at?: string;
|
|
5728
|
+
user_id: string;
|
|
5729
|
+
vat_amount?: number;
|
|
5730
|
+
};
|
|
5731
|
+
Update: {
|
|
5732
|
+
administration_code?: string | null;
|
|
5733
|
+
created_at?: string;
|
|
5734
|
+
currency?: string | null;
|
|
5735
|
+
customer_code?: string | null;
|
|
5736
|
+
customer_email?: string | null;
|
|
5737
|
+
customer_name?: string | null;
|
|
5738
|
+
customer_phone?: string | null;
|
|
5739
|
+
due_date?: string | null;
|
|
5740
|
+
id?: string;
|
|
5741
|
+
invoice_date?: string | null;
|
|
5742
|
+
last_synced_at?: string;
|
|
5743
|
+
local_invoice_number?: string | null;
|
|
5744
|
+
outstanding_amount?: number;
|
|
5745
|
+
paid_amount?: number;
|
|
5746
|
+
payment_date?: string | null;
|
|
5747
|
+
raw_payload?: import("./types").Json | null;
|
|
5748
|
+
status?: string;
|
|
5749
|
+
subtotal?: number;
|
|
5750
|
+
sync_error?: string | null;
|
|
5751
|
+
sync_status?: string;
|
|
5752
|
+
total?: number;
|
|
5753
|
+
twinfield_invoice_number?: string;
|
|
5754
|
+
twinfield_transaction_number?: string | null;
|
|
5755
|
+
updated_at?: string;
|
|
5756
|
+
user_id?: string;
|
|
5757
|
+
vat_amount?: number;
|
|
5758
|
+
};
|
|
5759
|
+
Relationships: [];
|
|
5760
|
+
};
|
|
5761
|
+
twinfield_invoices_cache_v2: {
|
|
5762
|
+
Row: {
|
|
5763
|
+
connection_id: string;
|
|
5764
|
+
currency: string | null;
|
|
5765
|
+
customer_code: string | null;
|
|
5766
|
+
data: import("./types").Json;
|
|
5767
|
+
due_date: string | null;
|
|
5768
|
+
fetched_at: string;
|
|
5769
|
+
invoice_date: string | null;
|
|
5770
|
+
invoice_number: string;
|
|
5771
|
+
modified_at: string | null;
|
|
5772
|
+
status: string | null;
|
|
5773
|
+
total_excl: number | null;
|
|
5774
|
+
total_incl: number | null;
|
|
5775
|
+
};
|
|
5776
|
+
Insert: {
|
|
5777
|
+
connection_id: string;
|
|
5778
|
+
currency?: string | null;
|
|
5779
|
+
customer_code?: string | null;
|
|
5780
|
+
data?: import("./types").Json;
|
|
5781
|
+
due_date?: string | null;
|
|
5782
|
+
fetched_at?: string;
|
|
5783
|
+
invoice_date?: string | null;
|
|
5784
|
+
invoice_number: string;
|
|
5785
|
+
modified_at?: string | null;
|
|
5786
|
+
status?: string | null;
|
|
5787
|
+
total_excl?: number | null;
|
|
5788
|
+
total_incl?: number | null;
|
|
5789
|
+
};
|
|
5790
|
+
Update: {
|
|
5791
|
+
connection_id?: string;
|
|
5792
|
+
currency?: string | null;
|
|
5793
|
+
customer_code?: string | null;
|
|
5794
|
+
data?: import("./types").Json;
|
|
5795
|
+
due_date?: string | null;
|
|
5796
|
+
fetched_at?: string;
|
|
5797
|
+
invoice_date?: string | null;
|
|
5798
|
+
invoice_number?: string;
|
|
5799
|
+
modified_at?: string | null;
|
|
5800
|
+
status?: string | null;
|
|
5801
|
+
total_excl?: number | null;
|
|
5802
|
+
total_incl?: number | null;
|
|
5803
|
+
};
|
|
5804
|
+
Relationships: [{
|
|
5805
|
+
foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
|
|
5806
|
+
columns: ["connection_id"];
|
|
5807
|
+
isOneToOne: false;
|
|
5808
|
+
referencedRelation: "twinfield_connections";
|
|
5809
|
+
referencedColumns: ["id"];
|
|
5810
|
+
}];
|
|
5811
|
+
};
|
|
5812
|
+
twinfield_oauth_state: {
|
|
5813
|
+
Row: {
|
|
5814
|
+
created_at: string;
|
|
5815
|
+
environment: string;
|
|
5816
|
+
nonce: string | null;
|
|
5817
|
+
state: string;
|
|
5818
|
+
user_id: string;
|
|
5819
|
+
};
|
|
5820
|
+
Insert: {
|
|
5821
|
+
created_at?: string;
|
|
5822
|
+
environment: string;
|
|
5823
|
+
nonce?: string | null;
|
|
5824
|
+
state: string;
|
|
5825
|
+
user_id: string;
|
|
5826
|
+
};
|
|
5827
|
+
Update: {
|
|
5828
|
+
created_at?: string;
|
|
5829
|
+
environment?: string;
|
|
5830
|
+
nonce?: string | null;
|
|
5831
|
+
state?: string;
|
|
5832
|
+
user_id?: string;
|
|
5833
|
+
};
|
|
5834
|
+
Relationships: [];
|
|
5835
|
+
};
|
|
5836
|
+
twinfield_settings: {
|
|
5837
|
+
Row: {
|
|
5838
|
+
active_environment: string;
|
|
5839
|
+
id: number;
|
|
5840
|
+
updated_at: string;
|
|
5841
|
+
};
|
|
5842
|
+
Insert: {
|
|
5843
|
+
active_environment?: string;
|
|
5844
|
+
id?: number;
|
|
5845
|
+
updated_at?: string;
|
|
5846
|
+
};
|
|
5847
|
+
Update: {
|
|
5848
|
+
active_environment?: string;
|
|
5849
|
+
id?: number;
|
|
5850
|
+
updated_at?: string;
|
|
5851
|
+
};
|
|
5852
|
+
Relationships: [];
|
|
5853
|
+
};
|
|
5854
|
+
twinfield_sync_state: {
|
|
5855
|
+
Row: {
|
|
5856
|
+
connection_id: string;
|
|
5857
|
+
entity_type: string;
|
|
5858
|
+
last_error: string | null;
|
|
5859
|
+
last_modified_since: string;
|
|
5860
|
+
last_synced_at: string | null;
|
|
5861
|
+
updated_at: string;
|
|
5862
|
+
};
|
|
5863
|
+
Insert: {
|
|
5864
|
+
connection_id: string;
|
|
5865
|
+
entity_type: string;
|
|
5866
|
+
last_error?: string | null;
|
|
5867
|
+
last_modified_since?: string;
|
|
5868
|
+
last_synced_at?: string | null;
|
|
5869
|
+
updated_at?: string;
|
|
5870
|
+
};
|
|
5871
|
+
Update: {
|
|
5872
|
+
connection_id?: string;
|
|
5873
|
+
entity_type?: string;
|
|
5874
|
+
last_error?: string | null;
|
|
5875
|
+
last_modified_since?: string;
|
|
5876
|
+
last_synced_at?: string | null;
|
|
5877
|
+
updated_at?: string;
|
|
5878
|
+
};
|
|
5879
|
+
Relationships: [{
|
|
5880
|
+
foreignKeyName: "twinfield_sync_state_connection_id_fkey";
|
|
5881
|
+
columns: ["connection_id"];
|
|
5882
|
+
isOneToOne: false;
|
|
5883
|
+
referencedRelation: "twinfield_connections";
|
|
5884
|
+
referencedColumns: ["id"];
|
|
5885
|
+
}];
|
|
5886
|
+
};
|
|
5887
|
+
twinfield_token_refresh_log: {
|
|
5888
|
+
Row: {
|
|
5889
|
+
attempted_at: string;
|
|
5890
|
+
connection_id: string;
|
|
5891
|
+
error: string | null;
|
|
5892
|
+
expires_at: string | null;
|
|
5893
|
+
id: string;
|
|
5894
|
+
ok: boolean;
|
|
5895
|
+
};
|
|
5896
|
+
Insert: {
|
|
5897
|
+
attempted_at?: string;
|
|
5898
|
+
connection_id: string;
|
|
5899
|
+
error?: string | null;
|
|
5900
|
+
expires_at?: string | null;
|
|
5901
|
+
id?: string;
|
|
5902
|
+
ok: boolean;
|
|
5903
|
+
};
|
|
5904
|
+
Update: {
|
|
5905
|
+
attempted_at?: string;
|
|
5906
|
+
connection_id?: string;
|
|
5907
|
+
error?: string | null;
|
|
5908
|
+
expires_at?: string | null;
|
|
5909
|
+
id?: string;
|
|
5910
|
+
ok?: boolean;
|
|
5911
|
+
};
|
|
5912
|
+
Relationships: [{
|
|
5913
|
+
foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
|
|
5914
|
+
columns: ["connection_id"];
|
|
5915
|
+
isOneToOne: false;
|
|
5916
|
+
referencedRelation: "twinfield_connections";
|
|
5917
|
+
referencedColumns: ["id"];
|
|
5918
|
+
}];
|
|
5919
|
+
};
|
|
5920
|
+
user_roles: {
|
|
5921
|
+
Row: {
|
|
5922
|
+
created_at: string;
|
|
5923
|
+
id: string;
|
|
5924
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
5925
|
+
user_id: string;
|
|
5926
|
+
};
|
|
5927
|
+
Insert: {
|
|
5928
|
+
created_at?: string;
|
|
5929
|
+
id?: string;
|
|
5930
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
5931
|
+
user_id: string;
|
|
5932
|
+
};
|
|
5933
|
+
Update: {
|
|
5934
|
+
created_at?: string;
|
|
5935
|
+
id?: string;
|
|
5936
|
+
role?: Database["public"]["Enums"]["app_role"];
|
|
3723
5937
|
user_id?: string;
|
|
3724
5938
|
};
|
|
5939
|
+
Relationships: [{
|
|
5940
|
+
foreignKeyName: "user_roles_user_id_fkey";
|
|
5941
|
+
columns: ["user_id"];
|
|
5942
|
+
isOneToOne: false;
|
|
5943
|
+
referencedRelation: "profiles";
|
|
5944
|
+
referencedColumns: ["id"];
|
|
5945
|
+
}];
|
|
5946
|
+
};
|
|
5947
|
+
work_order_monteurs: {
|
|
5948
|
+
Row: {
|
|
5949
|
+
created_at: string;
|
|
5950
|
+
id: string;
|
|
5951
|
+
monteur_id: string;
|
|
5952
|
+
work_order_id: string;
|
|
5953
|
+
};
|
|
5954
|
+
Insert: {
|
|
5955
|
+
created_at?: string;
|
|
5956
|
+
id?: string;
|
|
5957
|
+
monteur_id: string;
|
|
5958
|
+
work_order_id: string;
|
|
5959
|
+
};
|
|
5960
|
+
Update: {
|
|
5961
|
+
created_at?: string;
|
|
5962
|
+
id?: string;
|
|
5963
|
+
monteur_id?: string;
|
|
5964
|
+
work_order_id?: string;
|
|
5965
|
+
};
|
|
5966
|
+
Relationships: [{
|
|
5967
|
+
foreignKeyName: "work_order_monteurs_monteur_id_fkey";
|
|
5968
|
+
columns: ["monteur_id"];
|
|
5969
|
+
isOneToOne: false;
|
|
5970
|
+
referencedRelation: "monteurs";
|
|
5971
|
+
referencedColumns: ["id"];
|
|
5972
|
+
}, {
|
|
5973
|
+
foreignKeyName: "work_order_monteurs_work_order_id_fkey";
|
|
5974
|
+
columns: ["work_order_id"];
|
|
5975
|
+
isOneToOne: false;
|
|
5976
|
+
referencedRelation: "work_orders";
|
|
5977
|
+
referencedColumns: ["id"];
|
|
5978
|
+
}];
|
|
5979
|
+
};
|
|
5980
|
+
work_orders: {
|
|
5981
|
+
Row: {
|
|
5982
|
+
assigned_to: string | null;
|
|
5983
|
+
city: string | null;
|
|
5984
|
+
contact_person: string | null;
|
|
5985
|
+
created_at: string;
|
|
5986
|
+
custom_fields: import("./types").Json;
|
|
5987
|
+
customer_name: string;
|
|
5988
|
+
description: string;
|
|
5989
|
+
email: string | null;
|
|
5990
|
+
email_source: string | null;
|
|
5991
|
+
estimated_duration_hours: number | null;
|
|
5992
|
+
external_reference: string | null;
|
|
5993
|
+
follow_up_needed: boolean;
|
|
5994
|
+
id: string;
|
|
5995
|
+
mandate: string;
|
|
5996
|
+
mandate_budget: number;
|
|
5997
|
+
mandate_used: number;
|
|
5998
|
+
order_number: string;
|
|
5999
|
+
parent_work_order_id: string | null;
|
|
6000
|
+
pdf_url: string | null;
|
|
6001
|
+
phone: string | null;
|
|
6002
|
+
postal_code: string;
|
|
6003
|
+
priority: string;
|
|
6004
|
+
project_number: string | null;
|
|
6005
|
+
report_validated: boolean;
|
|
6006
|
+
room_number: string;
|
|
6007
|
+
scheduled_date: string | null;
|
|
6008
|
+
scheduled_end_time: string | null;
|
|
6009
|
+
scheduled_start_time: string | null;
|
|
6010
|
+
status: string;
|
|
6011
|
+
tenant_id: string;
|
|
6012
|
+
total_hours_worked: number | null;
|
|
6013
|
+
total_price: number | null;
|
|
6014
|
+
travel_time_minutes: number | null;
|
|
6015
|
+
updated_at: string;
|
|
6016
|
+
work_address: string;
|
|
6017
|
+
work_report: string | null;
|
|
6018
|
+
};
|
|
6019
|
+
Insert: {
|
|
6020
|
+
assigned_to?: string | null;
|
|
6021
|
+
city?: string | null;
|
|
6022
|
+
contact_person?: string | null;
|
|
6023
|
+
created_at?: string;
|
|
6024
|
+
custom_fields?: import("./types").Json;
|
|
6025
|
+
customer_name?: string;
|
|
6026
|
+
description?: string;
|
|
6027
|
+
email?: string | null;
|
|
6028
|
+
email_source?: string | null;
|
|
6029
|
+
estimated_duration_hours?: number | null;
|
|
6030
|
+
external_reference?: string | null;
|
|
6031
|
+
follow_up_needed?: boolean;
|
|
6032
|
+
id?: string;
|
|
6033
|
+
mandate?: string;
|
|
6034
|
+
mandate_budget?: number;
|
|
6035
|
+
mandate_used?: number;
|
|
6036
|
+
order_number?: string;
|
|
6037
|
+
parent_work_order_id?: string | null;
|
|
6038
|
+
pdf_url?: string | null;
|
|
6039
|
+
phone?: string | null;
|
|
6040
|
+
postal_code?: string;
|
|
6041
|
+
priority?: string;
|
|
6042
|
+
project_number?: string | null;
|
|
6043
|
+
report_validated?: boolean;
|
|
6044
|
+
room_number?: string;
|
|
6045
|
+
scheduled_date?: string | null;
|
|
6046
|
+
scheduled_end_time?: string | null;
|
|
6047
|
+
scheduled_start_time?: string | null;
|
|
6048
|
+
status?: string;
|
|
6049
|
+
tenant_id: string;
|
|
6050
|
+
total_hours_worked?: number | null;
|
|
6051
|
+
total_price?: number | null;
|
|
6052
|
+
travel_time_minutes?: number | null;
|
|
6053
|
+
updated_at?: string;
|
|
6054
|
+
work_address?: string;
|
|
6055
|
+
work_report?: string | null;
|
|
6056
|
+
};
|
|
6057
|
+
Update: {
|
|
6058
|
+
assigned_to?: string | null;
|
|
6059
|
+
city?: string | null;
|
|
6060
|
+
contact_person?: string | null;
|
|
6061
|
+
created_at?: string;
|
|
6062
|
+
custom_fields?: import("./types").Json;
|
|
6063
|
+
customer_name?: string;
|
|
6064
|
+
description?: string;
|
|
6065
|
+
email?: string | null;
|
|
6066
|
+
email_source?: string | null;
|
|
6067
|
+
estimated_duration_hours?: number | null;
|
|
6068
|
+
external_reference?: string | null;
|
|
6069
|
+
follow_up_needed?: boolean;
|
|
6070
|
+
id?: string;
|
|
6071
|
+
mandate?: string;
|
|
6072
|
+
mandate_budget?: number;
|
|
6073
|
+
mandate_used?: number;
|
|
6074
|
+
order_number?: string;
|
|
6075
|
+
parent_work_order_id?: string | null;
|
|
6076
|
+
pdf_url?: string | null;
|
|
6077
|
+
phone?: string | null;
|
|
6078
|
+
postal_code?: string;
|
|
6079
|
+
priority?: string;
|
|
6080
|
+
project_number?: string | null;
|
|
6081
|
+
report_validated?: boolean;
|
|
6082
|
+
room_number?: string;
|
|
6083
|
+
scheduled_date?: string | null;
|
|
6084
|
+
scheduled_end_time?: string | null;
|
|
6085
|
+
scheduled_start_time?: string | null;
|
|
6086
|
+
status?: string;
|
|
6087
|
+
tenant_id?: string;
|
|
6088
|
+
total_hours_worked?: number | null;
|
|
6089
|
+
total_price?: number | null;
|
|
6090
|
+
travel_time_minutes?: number | null;
|
|
6091
|
+
updated_at?: string;
|
|
6092
|
+
work_address?: string;
|
|
6093
|
+
work_report?: string | null;
|
|
6094
|
+
};
|
|
6095
|
+
Relationships: [{
|
|
6096
|
+
foreignKeyName: "work_orders_parent_work_order_id_fkey";
|
|
6097
|
+
columns: ["parent_work_order_id"];
|
|
6098
|
+
isOneToOne: false;
|
|
6099
|
+
referencedRelation: "work_orders";
|
|
6100
|
+
referencedColumns: ["id"];
|
|
6101
|
+
}, {
|
|
6102
|
+
foreignKeyName: "work_orders_tenant_id_fkey";
|
|
6103
|
+
columns: ["tenant_id"];
|
|
6104
|
+
isOneToOne: false;
|
|
6105
|
+
referencedRelation: "tenants";
|
|
6106
|
+
referencedColumns: ["id"];
|
|
6107
|
+
}];
|
|
6108
|
+
};
|
|
6109
|
+
};
|
|
6110
|
+
Views: {
|
|
6111
|
+
email_auth_connections_safe: {
|
|
6112
|
+
Row: {
|
|
6113
|
+
account_email: string | null;
|
|
6114
|
+
created_at: string | null;
|
|
6115
|
+
created_by: string | null;
|
|
6116
|
+
display_name: string | null;
|
|
6117
|
+
has_access_token: boolean | null;
|
|
6118
|
+
has_client_id: boolean | null;
|
|
6119
|
+
has_client_secret: boolean | null;
|
|
6120
|
+
has_imap_password: boolean | null;
|
|
6121
|
+
has_refresh_token: boolean | null;
|
|
6122
|
+
has_smtp_password: boolean | null;
|
|
6123
|
+
id: string | null;
|
|
6124
|
+
imap_host: string | null;
|
|
6125
|
+
imap_port: number | null;
|
|
6126
|
+
imap_secure: boolean | null;
|
|
6127
|
+
imap_username: string | null;
|
|
6128
|
+
is_active: boolean | null;
|
|
6129
|
+
last_error: string | null;
|
|
6130
|
+
last_verified_at: string | null;
|
|
6131
|
+
oauth_mode: string | null;
|
|
6132
|
+
provider: string | null;
|
|
6133
|
+
purpose_assignments: import("./types").Json | null;
|
|
6134
|
+
scopes: string[] | null;
|
|
6135
|
+
smtp_host: string | null;
|
|
6136
|
+
smtp_port: number | null;
|
|
6137
|
+
smtp_secure: boolean | null;
|
|
6138
|
+
smtp_username: string | null;
|
|
6139
|
+
status: string | null;
|
|
6140
|
+
token_expires_at: string | null;
|
|
6141
|
+
updated_at: string | null;
|
|
6142
|
+
};
|
|
6143
|
+
Insert: {
|
|
6144
|
+
account_email?: string | null;
|
|
6145
|
+
created_at?: string | null;
|
|
6146
|
+
created_by?: string | null;
|
|
6147
|
+
display_name?: string | null;
|
|
6148
|
+
has_access_token?: never;
|
|
6149
|
+
has_client_id?: never;
|
|
6150
|
+
has_client_secret?: never;
|
|
6151
|
+
has_imap_password?: never;
|
|
6152
|
+
has_refresh_token?: never;
|
|
6153
|
+
has_smtp_password?: never;
|
|
6154
|
+
id?: string | null;
|
|
6155
|
+
imap_host?: string | null;
|
|
6156
|
+
imap_port?: number | null;
|
|
6157
|
+
imap_secure?: boolean | null;
|
|
6158
|
+
imap_username?: string | null;
|
|
6159
|
+
is_active?: boolean | null;
|
|
6160
|
+
last_error?: string | null;
|
|
6161
|
+
last_verified_at?: string | null;
|
|
6162
|
+
oauth_mode?: string | null;
|
|
6163
|
+
provider?: string | null;
|
|
6164
|
+
purpose_assignments?: import("./types").Json | null;
|
|
6165
|
+
scopes?: string[] | null;
|
|
6166
|
+
smtp_host?: string | null;
|
|
6167
|
+
smtp_port?: number | null;
|
|
6168
|
+
smtp_secure?: boolean | null;
|
|
6169
|
+
smtp_username?: string | null;
|
|
6170
|
+
status?: string | null;
|
|
6171
|
+
token_expires_at?: string | null;
|
|
6172
|
+
updated_at?: string | null;
|
|
6173
|
+
};
|
|
6174
|
+
Update: {
|
|
6175
|
+
account_email?: string | null;
|
|
6176
|
+
created_at?: string | null;
|
|
6177
|
+
created_by?: string | null;
|
|
6178
|
+
display_name?: string | null;
|
|
6179
|
+
has_access_token?: never;
|
|
6180
|
+
has_client_id?: never;
|
|
6181
|
+
has_client_secret?: never;
|
|
6182
|
+
has_imap_password?: never;
|
|
6183
|
+
has_refresh_token?: never;
|
|
6184
|
+
has_smtp_password?: never;
|
|
6185
|
+
id?: string | null;
|
|
6186
|
+
imap_host?: string | null;
|
|
6187
|
+
imap_port?: number | null;
|
|
6188
|
+
imap_secure?: boolean | null;
|
|
6189
|
+
imap_username?: string | null;
|
|
6190
|
+
is_active?: boolean | null;
|
|
6191
|
+
last_error?: string | null;
|
|
6192
|
+
last_verified_at?: string | null;
|
|
6193
|
+
oauth_mode?: string | null;
|
|
6194
|
+
provider?: string | null;
|
|
6195
|
+
purpose_assignments?: import("./types").Json | null;
|
|
6196
|
+
scopes?: string[] | null;
|
|
6197
|
+
smtp_host?: string | null;
|
|
6198
|
+
smtp_port?: number | null;
|
|
6199
|
+
smtp_secure?: boolean | null;
|
|
6200
|
+
smtp_username?: string | null;
|
|
6201
|
+
status?: string | null;
|
|
6202
|
+
token_expires_at?: string | null;
|
|
6203
|
+
updated_at?: string | null;
|
|
6204
|
+
};
|
|
6205
|
+
Relationships: [];
|
|
6206
|
+
};
|
|
6207
|
+
external_customers_grouped: {
|
|
6208
|
+
Row: {
|
|
6209
|
+
city: string | null;
|
|
6210
|
+
commercial_name: string | null;
|
|
6211
|
+
contact_person: string | null;
|
|
6212
|
+
country: string | null;
|
|
6213
|
+
display_name: string | null;
|
|
6214
|
+
email: string | null;
|
|
6215
|
+
fetched_at: string | null;
|
|
6216
|
+
gln: string | null;
|
|
6217
|
+
group_key: string | null;
|
|
6218
|
+
is_active: boolean | null;
|
|
6219
|
+
is_merged: boolean | null;
|
|
6220
|
+
logo_url: string | null;
|
|
6221
|
+
match_key: string | null;
|
|
6222
|
+
phone: string | null;
|
|
6223
|
+
providers: string[] | null;
|
|
6224
|
+
source_count: number | null;
|
|
6225
|
+
sources: import("./types").Json | null;
|
|
6226
|
+
vat_number: string | null;
|
|
6227
|
+
website: string | null;
|
|
6228
|
+
};
|
|
3725
6229
|
Relationships: [];
|
|
3726
6230
|
};
|
|
3727
|
-
|
|
6231
|
+
external_customers_unified: {
|
|
3728
6232
|
Row: {
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
6233
|
+
city: string | null;
|
|
6234
|
+
commercial_name: string | null;
|
|
6235
|
+
company_name: string | null;
|
|
6236
|
+
connection_id: string | null;
|
|
6237
|
+
contact_person: string | null;
|
|
6238
|
+
country: string | null;
|
|
6239
|
+
email: string | null;
|
|
6240
|
+
external_id: string | null;
|
|
6241
|
+
fetched_at: string | null;
|
|
6242
|
+
gln: string | null;
|
|
6243
|
+
house_number: string | null;
|
|
6244
|
+
is_active: boolean | null;
|
|
6245
|
+
is_deleted: boolean | null;
|
|
6246
|
+
logo_url: string | null;
|
|
6247
|
+
phone: string | null;
|
|
6248
|
+
postal_code: string | null;
|
|
6249
|
+
provider: string | null;
|
|
6250
|
+
raw: import("./types").Json | null;
|
|
6251
|
+
status: string | null;
|
|
6252
|
+
street: string | null;
|
|
6253
|
+
vat_number: string | null;
|
|
6254
|
+
website: string | null;
|
|
3733
6255
|
};
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
6256
|
+
Relationships: [];
|
|
6257
|
+
};
|
|
6258
|
+
v_external_customers_floriday: {
|
|
6259
|
+
Row: {
|
|
6260
|
+
city: string | null;
|
|
6261
|
+
commercial_name: string | null;
|
|
6262
|
+
company_name: string | null;
|
|
6263
|
+
connection_id: string | null;
|
|
6264
|
+
contact_person: string | null;
|
|
6265
|
+
country: string | null;
|
|
6266
|
+
email: string | null;
|
|
6267
|
+
external_id: string | null;
|
|
6268
|
+
fetched_at: string | null;
|
|
6269
|
+
gln: string | null;
|
|
6270
|
+
house_number: string | null;
|
|
6271
|
+
is_active: boolean | null;
|
|
6272
|
+
is_deleted: boolean | null;
|
|
6273
|
+
logo_url: string | null;
|
|
6274
|
+
phone: string | null;
|
|
6275
|
+
postal_code: string | null;
|
|
6276
|
+
provider: string | null;
|
|
6277
|
+
raw: import("./types").Json | null;
|
|
6278
|
+
status: string | null;
|
|
6279
|
+
street: string | null;
|
|
6280
|
+
vat_number: string | null;
|
|
6281
|
+
website: string | null;
|
|
3739
6282
|
};
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
6283
|
+
Relationships: [{
|
|
6284
|
+
foreignKeyName: "floriday_customers_cache_connection_id_fkey";
|
|
6285
|
+
columns: ["connection_id"];
|
|
6286
|
+
isOneToOne: false;
|
|
6287
|
+
referencedRelation: "floriday_connections";
|
|
6288
|
+
referencedColumns: ["id"];
|
|
6289
|
+
}];
|
|
6290
|
+
};
|
|
6291
|
+
v_external_customers_twinfield: {
|
|
6292
|
+
Row: {
|
|
6293
|
+
city: string | null;
|
|
6294
|
+
commercial_name: string | null;
|
|
6295
|
+
company_name: string | null;
|
|
6296
|
+
connection_id: string | null;
|
|
6297
|
+
contact_person: string | null;
|
|
6298
|
+
country: string | null;
|
|
6299
|
+
email: string | null;
|
|
6300
|
+
external_id: string | null;
|
|
6301
|
+
fetched_at: string | null;
|
|
6302
|
+
gln: string | null;
|
|
6303
|
+
house_number: string | null;
|
|
6304
|
+
is_active: boolean | null;
|
|
6305
|
+
is_deleted: boolean | null;
|
|
6306
|
+
logo_url: string | null;
|
|
6307
|
+
phone: string | null;
|
|
6308
|
+
postal_code: string | null;
|
|
6309
|
+
provider: string | null;
|
|
6310
|
+
raw: import("./types").Json | null;
|
|
6311
|
+
status: string | null;
|
|
6312
|
+
street: string | null;
|
|
6313
|
+
vat_number: string | null;
|
|
6314
|
+
website: string | null;
|
|
3745
6315
|
};
|
|
3746
6316
|
Relationships: [{
|
|
3747
|
-
foreignKeyName: "
|
|
3748
|
-
columns: ["
|
|
6317
|
+
foreignKeyName: "twinfield_customers_cache_connection_id_fkey";
|
|
6318
|
+
columns: ["connection_id"];
|
|
3749
6319
|
isOneToOne: false;
|
|
3750
|
-
referencedRelation: "
|
|
6320
|
+
referencedRelation: "twinfield_connections";
|
|
3751
6321
|
referencedColumns: ["id"];
|
|
3752
6322
|
}];
|
|
3753
6323
|
};
|
|
3754
6324
|
};
|
|
3755
|
-
Views: { [_ in never]: never; };
|
|
3756
6325
|
Functions: {
|
|
3757
6326
|
dashboard_list_public_schema: {
|
|
3758
6327
|
Args: never;
|
|
@@ -3762,6 +6331,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3762
6331
|
table_name: string;
|
|
3763
6332
|
}[];
|
|
3764
6333
|
};
|
|
6334
|
+
email_auth_decrypt: {
|
|
6335
|
+
Args: {
|
|
6336
|
+
cipher: string;
|
|
6337
|
+
};
|
|
6338
|
+
Returns: string;
|
|
6339
|
+
};
|
|
6340
|
+
email_auth_encrypt: {
|
|
6341
|
+
Args: {
|
|
6342
|
+
plain: string;
|
|
6343
|
+
};
|
|
6344
|
+
Returns: string;
|
|
6345
|
+
};
|
|
6346
|
+
email_auth_fetch_message: {
|
|
6347
|
+
Args: {
|
|
6348
|
+
_connection_id: string;
|
|
6349
|
+
_external_id: string;
|
|
6350
|
+
};
|
|
6351
|
+
Returns: import("./types").Json;
|
|
6352
|
+
};
|
|
6353
|
+
email_auth_for_purpose: {
|
|
6354
|
+
Args: {
|
|
6355
|
+
_direction: string;
|
|
6356
|
+
_purpose: string;
|
|
6357
|
+
};
|
|
6358
|
+
Returns: {
|
|
6359
|
+
account_email: string;
|
|
6360
|
+
display_name: string;
|
|
6361
|
+
id: string;
|
|
6362
|
+
last_error: string;
|
|
6363
|
+
last_verified_at: string;
|
|
6364
|
+
needs_reauth: boolean;
|
|
6365
|
+
provider: string;
|
|
6366
|
+
status: string;
|
|
6367
|
+
}[];
|
|
6368
|
+
};
|
|
6369
|
+
ensure_user_tenant: {
|
|
6370
|
+
Args: never;
|
|
6371
|
+
Returns: string;
|
|
6372
|
+
};
|
|
3765
6373
|
exact_decrypt: {
|
|
3766
6374
|
Args: {
|
|
3767
6375
|
cipher: string;
|
|
@@ -3774,12 +6382,97 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3774
6382
|
};
|
|
3775
6383
|
Returns: string;
|
|
3776
6384
|
};
|
|
6385
|
+
exact_lock_environment: {
|
|
6386
|
+
Args: {
|
|
6387
|
+
_environment: string;
|
|
6388
|
+
};
|
|
6389
|
+
Returns: undefined;
|
|
6390
|
+
};
|
|
6391
|
+
exact_release_refresh_lock: {
|
|
6392
|
+
Args: {
|
|
6393
|
+
_environment: Database["public"]["Enums"]["exact_env"];
|
|
6394
|
+
_locked_by: string;
|
|
6395
|
+
};
|
|
6396
|
+
Returns: undefined;
|
|
6397
|
+
};
|
|
6398
|
+
exact_try_acquire_refresh_lock: {
|
|
6399
|
+
Args: {
|
|
6400
|
+
_environment: Database["public"]["Enums"]["exact_env"];
|
|
6401
|
+
_lease_seconds?: number;
|
|
6402
|
+
_locked_by?: string;
|
|
6403
|
+
};
|
|
6404
|
+
Returns: boolean;
|
|
6405
|
+
};
|
|
6406
|
+
get_active_floriday_connection_public: {
|
|
6407
|
+
Args: never;
|
|
6408
|
+
Returns: {
|
|
6409
|
+
active_environment: string;
|
|
6410
|
+
environment: string;
|
|
6411
|
+
gln_code: string;
|
|
6412
|
+
id: string;
|
|
6413
|
+
label: string;
|
|
6414
|
+
organization_name: string;
|
|
6415
|
+
preferred_warehouse_id: string;
|
|
6416
|
+
preferred_warehouse_name: string;
|
|
6417
|
+
}[];
|
|
6418
|
+
};
|
|
6419
|
+
get_active_twinfield_public: {
|
|
6420
|
+
Args: never;
|
|
6421
|
+
Returns: {
|
|
6422
|
+
active_environment: string;
|
|
6423
|
+
company_code: string;
|
|
6424
|
+
company_name: string;
|
|
6425
|
+
connection_id: string;
|
|
6426
|
+
environment: string;
|
|
6427
|
+
office_code: string;
|
|
6428
|
+
}[];
|
|
6429
|
+
};
|
|
6430
|
+
get_floriday_cron_jobs: {
|
|
6431
|
+
Args: never;
|
|
6432
|
+
Returns: {
|
|
6433
|
+
active: boolean;
|
|
6434
|
+
jobname: string;
|
|
6435
|
+
schedule: string;
|
|
6436
|
+
url: string;
|
|
6437
|
+
}[];
|
|
6438
|
+
};
|
|
3777
6439
|
get_offer_by_link_code: {
|
|
3778
6440
|
Args: {
|
|
3779
6441
|
p_code: string;
|
|
3780
6442
|
};
|
|
3781
6443
|
Returns: import("./types").Json;
|
|
3782
6444
|
};
|
|
6445
|
+
get_room_busy_windows: {
|
|
6446
|
+
Args: {
|
|
6447
|
+
p_from: string;
|
|
6448
|
+
p_to: string;
|
|
6449
|
+
};
|
|
6450
|
+
Returns: {
|
|
6451
|
+
end_time: string;
|
|
6452
|
+
room_id: string;
|
|
6453
|
+
start_time: string;
|
|
6454
|
+
status: string;
|
|
6455
|
+
}[];
|
|
6456
|
+
};
|
|
6457
|
+
get_twinfield_cron_jobs: {
|
|
6458
|
+
Args: never;
|
|
6459
|
+
Returns: {
|
|
6460
|
+
active: boolean;
|
|
6461
|
+
jobname: string;
|
|
6462
|
+
schedule: string;
|
|
6463
|
+
url: string;
|
|
6464
|
+
}[];
|
|
6465
|
+
};
|
|
6466
|
+
get_user_tenant_id: {
|
|
6467
|
+
Args: never;
|
|
6468
|
+
Returns: string;
|
|
6469
|
+
};
|
|
6470
|
+
get_work_order_tenant_id: {
|
|
6471
|
+
Args: {
|
|
6472
|
+
wo_id: string;
|
|
6473
|
+
};
|
|
6474
|
+
Returns: string;
|
|
6475
|
+
};
|
|
3783
6476
|
has_role: {
|
|
3784
6477
|
Args: {
|
|
3785
6478
|
_role: Database["public"]["Enums"]["app_role"];
|
|
@@ -3787,6 +6480,48 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3787
6480
|
};
|
|
3788
6481
|
Returns: boolean;
|
|
3789
6482
|
};
|
|
6483
|
+
is_authenticated: {
|
|
6484
|
+
Args: never;
|
|
6485
|
+
Returns: boolean;
|
|
6486
|
+
};
|
|
6487
|
+
is_developer: {
|
|
6488
|
+
Args: never;
|
|
6489
|
+
Returns: boolean;
|
|
6490
|
+
};
|
|
6491
|
+
next_work_order_number: {
|
|
6492
|
+
Args: {
|
|
6493
|
+
p_parent_work_order_id?: string;
|
|
6494
|
+
p_tenant_id: string;
|
|
6495
|
+
};
|
|
6496
|
+
Returns: string;
|
|
6497
|
+
};
|
|
6498
|
+
normalize_vat: {
|
|
6499
|
+
Args: {
|
|
6500
|
+
v: string;
|
|
6501
|
+
};
|
|
6502
|
+
Returns: string;
|
|
6503
|
+
};
|
|
6504
|
+
schedule_floriday_carriers_sync: {
|
|
6505
|
+
Args: {
|
|
6506
|
+
p_apikey: string;
|
|
6507
|
+
p_url: string;
|
|
6508
|
+
};
|
|
6509
|
+
Returns: number;
|
|
6510
|
+
};
|
|
6511
|
+
schedule_floriday_connections_sync: {
|
|
6512
|
+
Args: {
|
|
6513
|
+
p_apikey: string;
|
|
6514
|
+
p_url: string;
|
|
6515
|
+
};
|
|
6516
|
+
Returns: number;
|
|
6517
|
+
};
|
|
6518
|
+
schedule_floriday_customer_organizations_sync: {
|
|
6519
|
+
Args: {
|
|
6520
|
+
p_apikey: string;
|
|
6521
|
+
p_url: string;
|
|
6522
|
+
};
|
|
6523
|
+
Returns: number;
|
|
6524
|
+
};
|
|
3790
6525
|
schedule_floriday_network_sync: {
|
|
3791
6526
|
Args: {
|
|
3792
6527
|
p_apikey: string;
|
|
@@ -3794,6 +6529,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3794
6529
|
};
|
|
3795
6530
|
Returns: number;
|
|
3796
6531
|
};
|
|
6532
|
+
schedule_floriday_salesorders_sync: {
|
|
6533
|
+
Args: {
|
|
6534
|
+
p_apikey: string;
|
|
6535
|
+
p_url: string;
|
|
6536
|
+
};
|
|
6537
|
+
Returns: number;
|
|
6538
|
+
};
|
|
3797
6539
|
schedule_floriday_token_refresh: {
|
|
3798
6540
|
Args: {
|
|
3799
6541
|
p_apikey: string;
|
|
@@ -3801,6 +6543,55 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3801
6543
|
};
|
|
3802
6544
|
Returns: number;
|
|
3803
6545
|
};
|
|
6546
|
+
schedule_floriday_trade_items_sync: {
|
|
6547
|
+
Args: {
|
|
6548
|
+
p_apikey: string;
|
|
6549
|
+
p_url: string;
|
|
6550
|
+
};
|
|
6551
|
+
Returns: number;
|
|
6552
|
+
};
|
|
6553
|
+
schedule_twinfield_customers_sync: {
|
|
6554
|
+
Args: {
|
|
6555
|
+
p_apikey: string;
|
|
6556
|
+
p_url: string;
|
|
6557
|
+
};
|
|
6558
|
+
Returns: number;
|
|
6559
|
+
} | {
|
|
6560
|
+
Args: {
|
|
6561
|
+
p_apikey: string;
|
|
6562
|
+
p_cron_secret?: string;
|
|
6563
|
+
p_url: string;
|
|
6564
|
+
};
|
|
6565
|
+
Returns: number;
|
|
6566
|
+
};
|
|
6567
|
+
schedule_twinfield_invoices_sync: {
|
|
6568
|
+
Args: {
|
|
6569
|
+
p_apikey: string;
|
|
6570
|
+
p_url: string;
|
|
6571
|
+
};
|
|
6572
|
+
Returns: number;
|
|
6573
|
+
} | {
|
|
6574
|
+
Args: {
|
|
6575
|
+
p_apikey: string;
|
|
6576
|
+
p_cron_secret?: string;
|
|
6577
|
+
p_url: string;
|
|
6578
|
+
};
|
|
6579
|
+
Returns: number;
|
|
6580
|
+
};
|
|
6581
|
+
schedule_twinfield_token_refresh: {
|
|
6582
|
+
Args: {
|
|
6583
|
+
p_apikey: string;
|
|
6584
|
+
p_url: string;
|
|
6585
|
+
};
|
|
6586
|
+
Returns: number;
|
|
6587
|
+
} | {
|
|
6588
|
+
Args: {
|
|
6589
|
+
p_apikey: string;
|
|
6590
|
+
p_cron_secret?: string;
|
|
6591
|
+
p_url: string;
|
|
6592
|
+
};
|
|
6593
|
+
Returns: number;
|
|
6594
|
+
};
|
|
3804
6595
|
show_limit: {
|
|
3805
6596
|
Args: never;
|
|
3806
6597
|
Returns: number;
|
|
@@ -3811,10 +6602,23 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3811
6602
|
};
|
|
3812
6603
|
Returns: string[];
|
|
3813
6604
|
};
|
|
6605
|
+
twinfield_decrypt: {
|
|
6606
|
+
Args: {
|
|
6607
|
+
cipher: string;
|
|
6608
|
+
};
|
|
6609
|
+
Returns: string;
|
|
6610
|
+
};
|
|
6611
|
+
twinfield_encrypt: {
|
|
6612
|
+
Args: {
|
|
6613
|
+
plain: string;
|
|
6614
|
+
};
|
|
6615
|
+
Returns: string;
|
|
6616
|
+
};
|
|
3814
6617
|
};
|
|
3815
6618
|
Enums: {
|
|
3816
|
-
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer";
|
|
6619
|
+
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
|
|
3817
6620
|
exact_env: "staging" | "live";
|
|
6621
|
+
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
3818
6622
|
};
|
|
3819
6623
|
CompositeTypes: { [_ in never]: never; };
|
|
3820
6624
|
}, {
|