@flowselections/floriday-verkoop-module 1.0.21 → 1.0.24
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/karindeling/AfmetingenTab.d.ts +6 -0
- package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -0
- package/dist-lib/components/karindeling/AfmetingenTab.js +128 -0
- package/dist-lib/components/karindeling/KarindelingPage.d.ts +2 -0
- package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -0
- package/dist-lib/components/karindeling/KarindelingPage.js +102 -0
- package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderKarindelingCard.js +83 -37
- package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailPage.js +59 -8
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +2 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.js +2 -2
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +36 -4
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +18 -2
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +12 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1531 -592
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1531 -592
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.js +24 -9
- package/dist-lib/integrations/supabase/client.server.d.ts +1531 -592
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1542 -577
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +3 -9
- package/dist-lib/lib/cart-lock.functions.d.ts +1531 -592
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planner.d.ts +9 -1
- package/dist-lib/lib/cart-planner.d.ts.map +1 -1
- package/dist-lib/lib/cart-planner.js +21 -4
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +140842 -0
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -0
- package/dist-lib/lib/cart-planning-settings.functions.js +375 -0
- package/dist-lib/lib/cart-replan.functions.d.ts +15808 -1111
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.js +85 -27
- package/dist-lib/lib/create-order.functions.d.ts +19021 -7753
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +4558 -1741
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auto-fulfillment.server.js +1 -1
- package/dist-lib/lib/floriday-central-token.server.d.ts +12 -0
- package/dist-lib/lib/floriday-central-token.server.d.ts.map +1 -0
- package/dist-lib/lib/floriday-central-token.server.js +58 -0
- package/dist-lib/lib/floriday-gateway.server.d.ts +2 -2
- package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.server.js +10 -37
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1531 -592
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.js +14 -4
- package/dist-lib/lib/floriday-mirror.functions.d.ts +12806 -0
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-mirror.functions.js +278 -0
- package/dist-lib/lib/floriday-public.functions.d.ts +10986 -4413
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sync.d.ts +0 -1
- package/dist-lib/lib/floriday-sync.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sync.js +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +7772 -3077
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.d.ts +38420 -0
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -0
- package/dist-lib/lib/order-buffers.functions.js +244 -0
- package/dist-lib/lib/order-shipments.functions.d.ts +6165 -2409
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.d.ts +3 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.d.ts +7774 -3077
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.js +129 -3
- package/dist-lib/lib/tradeitems.functions.d.ts +1531 -592
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.js +37 -2
- package/package.json +5 -5
|
@@ -247,12 +247,49 @@ export type Database = {
|
|
|
247
247
|
};
|
|
248
248
|
Relationships: [];
|
|
249
249
|
};
|
|
250
|
+
ai_admin_credentials: {
|
|
251
|
+
Row: {
|
|
252
|
+
active: boolean;
|
|
253
|
+
admin_key: string;
|
|
254
|
+
created_at: string;
|
|
255
|
+
id: string;
|
|
256
|
+
label: string;
|
|
257
|
+
provider_id: string;
|
|
258
|
+
updated_at: string;
|
|
259
|
+
};
|
|
260
|
+
Insert: {
|
|
261
|
+
active?: boolean;
|
|
262
|
+
admin_key: string;
|
|
263
|
+
created_at?: string;
|
|
264
|
+
id?: string;
|
|
265
|
+
label: string;
|
|
266
|
+
provider_id: string;
|
|
267
|
+
updated_at?: string;
|
|
268
|
+
};
|
|
269
|
+
Update: {
|
|
270
|
+
active?: boolean;
|
|
271
|
+
admin_key?: string;
|
|
272
|
+
created_at?: string;
|
|
273
|
+
id?: string;
|
|
274
|
+
label?: string;
|
|
275
|
+
provider_id?: string;
|
|
276
|
+
updated_at?: string;
|
|
277
|
+
};
|
|
278
|
+
Relationships: [
|
|
279
|
+
{
|
|
280
|
+
foreignKeyName: "ai_admin_credentials_provider_id_fkey";
|
|
281
|
+
columns: ["provider_id"];
|
|
282
|
+
isOneToOne: true;
|
|
283
|
+
referencedRelation: "ai_providers";
|
|
284
|
+
referencedColumns: ["id"];
|
|
285
|
+
}
|
|
286
|
+
];
|
|
287
|
+
};
|
|
250
288
|
ai_credentials: {
|
|
251
289
|
Row: {
|
|
252
290
|
active: boolean;
|
|
253
291
|
api_key: string;
|
|
254
292
|
created_at: string;
|
|
255
|
-
created_by: string | null;
|
|
256
293
|
id: string;
|
|
257
294
|
label: string;
|
|
258
295
|
provider_id: string;
|
|
@@ -262,7 +299,6 @@ export type Database = {
|
|
|
262
299
|
active?: boolean;
|
|
263
300
|
api_key: string;
|
|
264
301
|
created_at?: string;
|
|
265
|
-
created_by?: string | null;
|
|
266
302
|
id?: string;
|
|
267
303
|
label: string;
|
|
268
304
|
provider_id: string;
|
|
@@ -272,7 +308,6 @@ export type Database = {
|
|
|
272
308
|
active?: boolean;
|
|
273
309
|
api_key?: string;
|
|
274
310
|
created_at?: string;
|
|
275
|
-
created_by?: string | null;
|
|
276
311
|
id?: string;
|
|
277
312
|
label?: string;
|
|
278
313
|
provider_id?: string;
|
|
@@ -288,6 +323,45 @@ export type Database = {
|
|
|
288
323
|
}
|
|
289
324
|
];
|
|
290
325
|
};
|
|
326
|
+
ai_model_pricing: {
|
|
327
|
+
Row: {
|
|
328
|
+
created_at: string;
|
|
329
|
+
currency: string;
|
|
330
|
+
fetched_at: string;
|
|
331
|
+
id: string;
|
|
332
|
+
input_per_mtok: number | null;
|
|
333
|
+
model_slug: string;
|
|
334
|
+
output_per_mtok: number | null;
|
|
335
|
+
provider_slug: string;
|
|
336
|
+
source: string;
|
|
337
|
+
updated_at: string;
|
|
338
|
+
};
|
|
339
|
+
Insert: {
|
|
340
|
+
created_at?: string;
|
|
341
|
+
currency?: string;
|
|
342
|
+
fetched_at?: string;
|
|
343
|
+
id?: string;
|
|
344
|
+
input_per_mtok?: number | null;
|
|
345
|
+
model_slug: string;
|
|
346
|
+
output_per_mtok?: number | null;
|
|
347
|
+
provider_slug: string;
|
|
348
|
+
source?: string;
|
|
349
|
+
updated_at?: string;
|
|
350
|
+
};
|
|
351
|
+
Update: {
|
|
352
|
+
created_at?: string;
|
|
353
|
+
currency?: string;
|
|
354
|
+
fetched_at?: string;
|
|
355
|
+
id?: string;
|
|
356
|
+
input_per_mtok?: number | null;
|
|
357
|
+
model_slug?: string;
|
|
358
|
+
output_per_mtok?: number | null;
|
|
359
|
+
provider_slug?: string;
|
|
360
|
+
source?: string;
|
|
361
|
+
updated_at?: string;
|
|
362
|
+
};
|
|
363
|
+
Relationships: [];
|
|
364
|
+
};
|
|
291
365
|
ai_models: {
|
|
292
366
|
Row: {
|
|
293
367
|
active: boolean;
|
|
@@ -1051,6 +1125,143 @@ export type Database = {
|
|
|
1051
1125
|
};
|
|
1052
1126
|
Relationships: [];
|
|
1053
1127
|
};
|
|
1128
|
+
cart_planning_pick_times: {
|
|
1129
|
+
Row: {
|
|
1130
|
+
created_at: string;
|
|
1131
|
+
id: string;
|
|
1132
|
+
pot_size: string;
|
|
1133
|
+
seconds_per_cart: number;
|
|
1134
|
+
updated_at: string;
|
|
1135
|
+
};
|
|
1136
|
+
Insert: {
|
|
1137
|
+
created_at?: string;
|
|
1138
|
+
id?: string;
|
|
1139
|
+
pot_size: string;
|
|
1140
|
+
seconds_per_cart: number;
|
|
1141
|
+
updated_at?: string;
|
|
1142
|
+
};
|
|
1143
|
+
Update: {
|
|
1144
|
+
created_at?: string;
|
|
1145
|
+
id?: string;
|
|
1146
|
+
pot_size?: string;
|
|
1147
|
+
seconds_per_cart?: number;
|
|
1148
|
+
updated_at?: string;
|
|
1149
|
+
};
|
|
1150
|
+
Relationships: [];
|
|
1151
|
+
};
|
|
1152
|
+
cart_planning_product_overrides: {
|
|
1153
|
+
Row: {
|
|
1154
|
+
created_at: string;
|
|
1155
|
+
id: string;
|
|
1156
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1157
|
+
never_mix: boolean;
|
|
1158
|
+
notes: string | null;
|
|
1159
|
+
product_id: string;
|
|
1160
|
+
updated_at: string;
|
|
1161
|
+
};
|
|
1162
|
+
Insert: {
|
|
1163
|
+
created_at?: string;
|
|
1164
|
+
id?: string;
|
|
1165
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1166
|
+
never_mix?: boolean;
|
|
1167
|
+
notes?: string | null;
|
|
1168
|
+
product_id: string;
|
|
1169
|
+
updated_at?: string;
|
|
1170
|
+
};
|
|
1171
|
+
Update: {
|
|
1172
|
+
created_at?: string;
|
|
1173
|
+
id?: string;
|
|
1174
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1175
|
+
never_mix?: boolean;
|
|
1176
|
+
notes?: string | null;
|
|
1177
|
+
product_id?: string;
|
|
1178
|
+
updated_at?: string;
|
|
1179
|
+
};
|
|
1180
|
+
Relationships: [
|
|
1181
|
+
{
|
|
1182
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1183
|
+
columns: ["product_id"];
|
|
1184
|
+
isOneToOne: true;
|
|
1185
|
+
referencedRelation: "products";
|
|
1186
|
+
referencedColumns: ["id"];
|
|
1187
|
+
}
|
|
1188
|
+
];
|
|
1189
|
+
};
|
|
1190
|
+
cart_planning_settings: {
|
|
1191
|
+
Row: {
|
|
1192
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1193
|
+
buffer_grouping_mode: string;
|
|
1194
|
+
combine_floriday_orders: boolean;
|
|
1195
|
+
combine_floriday_orders_window: string;
|
|
1196
|
+
combine_orders_scope: string;
|
|
1197
|
+
default_workers: number;
|
|
1198
|
+
id: number;
|
|
1199
|
+
max_beladingen_per_layer: number;
|
|
1200
|
+
max_customers_per_cart: number;
|
|
1201
|
+
max_one_customer_per_layer: boolean;
|
|
1202
|
+
max_party_share_per_layer_pct: number;
|
|
1203
|
+
optimization_strategy: string;
|
|
1204
|
+
own_cart_from_layers: number;
|
|
1205
|
+
pick_time_mode: string;
|
|
1206
|
+
plants_per_day: number;
|
|
1207
|
+
plants_per_hour: number;
|
|
1208
|
+
require_same_carrier: boolean;
|
|
1209
|
+
require_same_crate_type: boolean;
|
|
1210
|
+
require_same_delivery_date: boolean;
|
|
1211
|
+
require_same_delivery_location: boolean;
|
|
1212
|
+
updated_at: string;
|
|
1213
|
+
updated_by: string | null;
|
|
1214
|
+
};
|
|
1215
|
+
Insert: {
|
|
1216
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1217
|
+
buffer_grouping_mode?: string;
|
|
1218
|
+
combine_floriday_orders?: boolean;
|
|
1219
|
+
combine_floriday_orders_window?: string;
|
|
1220
|
+
combine_orders_scope?: string;
|
|
1221
|
+
default_workers?: number;
|
|
1222
|
+
id?: number;
|
|
1223
|
+
max_beladingen_per_layer?: number;
|
|
1224
|
+
max_customers_per_cart?: number;
|
|
1225
|
+
max_one_customer_per_layer?: boolean;
|
|
1226
|
+
max_party_share_per_layer_pct?: number;
|
|
1227
|
+
optimization_strategy?: string;
|
|
1228
|
+
own_cart_from_layers?: number;
|
|
1229
|
+
pick_time_mode?: string;
|
|
1230
|
+
plants_per_day?: number;
|
|
1231
|
+
plants_per_hour?: number;
|
|
1232
|
+
require_same_carrier?: boolean;
|
|
1233
|
+
require_same_crate_type?: boolean;
|
|
1234
|
+
require_same_delivery_date?: boolean;
|
|
1235
|
+
require_same_delivery_location?: boolean;
|
|
1236
|
+
updated_at?: string;
|
|
1237
|
+
updated_by?: string | null;
|
|
1238
|
+
};
|
|
1239
|
+
Update: {
|
|
1240
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1241
|
+
buffer_grouping_mode?: string;
|
|
1242
|
+
combine_floriday_orders?: boolean;
|
|
1243
|
+
combine_floriday_orders_window?: string;
|
|
1244
|
+
combine_orders_scope?: string;
|
|
1245
|
+
default_workers?: number;
|
|
1246
|
+
id?: number;
|
|
1247
|
+
max_beladingen_per_layer?: number;
|
|
1248
|
+
max_customers_per_cart?: number;
|
|
1249
|
+
max_one_customer_per_layer?: boolean;
|
|
1250
|
+
max_party_share_per_layer_pct?: number;
|
|
1251
|
+
optimization_strategy?: string;
|
|
1252
|
+
own_cart_from_layers?: number;
|
|
1253
|
+
pick_time_mode?: string;
|
|
1254
|
+
plants_per_day?: number;
|
|
1255
|
+
plants_per_hour?: number;
|
|
1256
|
+
require_same_carrier?: boolean;
|
|
1257
|
+
require_same_crate_type?: boolean;
|
|
1258
|
+
require_same_delivery_date?: boolean;
|
|
1259
|
+
require_same_delivery_location?: boolean;
|
|
1260
|
+
updated_at?: string;
|
|
1261
|
+
updated_by?: string | null;
|
|
1262
|
+
};
|
|
1263
|
+
Relationships: [];
|
|
1264
|
+
};
|
|
1054
1265
|
cart_replan_queue: {
|
|
1055
1266
|
Row: {
|
|
1056
1267
|
attempts: number;
|
|
@@ -1083,6 +1294,102 @@ export type Database = {
|
|
|
1083
1294
|
}
|
|
1084
1295
|
];
|
|
1085
1296
|
};
|
|
1297
|
+
cart_types: {
|
|
1298
|
+
Row: {
|
|
1299
|
+
created_at: string;
|
|
1300
|
+
id: string;
|
|
1301
|
+
is_default: boolean;
|
|
1302
|
+
layer_length_cm: number;
|
|
1303
|
+
layer_width_cm: number;
|
|
1304
|
+
layers_per_cart: number;
|
|
1305
|
+
name: string;
|
|
1306
|
+
updated_at: string;
|
|
1307
|
+
};
|
|
1308
|
+
Insert: {
|
|
1309
|
+
created_at?: string;
|
|
1310
|
+
id?: string;
|
|
1311
|
+
is_default?: boolean;
|
|
1312
|
+
layer_length_cm: number;
|
|
1313
|
+
layer_width_cm: number;
|
|
1314
|
+
layers_per_cart?: number;
|
|
1315
|
+
name: string;
|
|
1316
|
+
updated_at?: string;
|
|
1317
|
+
};
|
|
1318
|
+
Update: {
|
|
1319
|
+
created_at?: string;
|
|
1320
|
+
id?: string;
|
|
1321
|
+
is_default?: boolean;
|
|
1322
|
+
layer_length_cm?: number;
|
|
1323
|
+
layer_width_cm?: number;
|
|
1324
|
+
layers_per_cart?: number;
|
|
1325
|
+
name?: string;
|
|
1326
|
+
updated_at?: string;
|
|
1327
|
+
};
|
|
1328
|
+
Relationships: [];
|
|
1329
|
+
};
|
|
1330
|
+
catalog_articles_cache: {
|
|
1331
|
+
Row: {
|
|
1332
|
+
created_at: string;
|
|
1333
|
+
default_price: number;
|
|
1334
|
+
default_vat_rate_ref: string | null;
|
|
1335
|
+
external_ref: string;
|
|
1336
|
+
id: string;
|
|
1337
|
+
name: string;
|
|
1338
|
+
updated_at: string;
|
|
1339
|
+
user_id: string;
|
|
1340
|
+
};
|
|
1341
|
+
Insert: {
|
|
1342
|
+
created_at?: string;
|
|
1343
|
+
default_price?: number;
|
|
1344
|
+
default_vat_rate_ref?: string | null;
|
|
1345
|
+
external_ref: string;
|
|
1346
|
+
id?: string;
|
|
1347
|
+
name: string;
|
|
1348
|
+
updated_at?: string;
|
|
1349
|
+
user_id: string;
|
|
1350
|
+
};
|
|
1351
|
+
Update: {
|
|
1352
|
+
created_at?: string;
|
|
1353
|
+
default_price?: number;
|
|
1354
|
+
default_vat_rate_ref?: string | null;
|
|
1355
|
+
external_ref?: string;
|
|
1356
|
+
id?: string;
|
|
1357
|
+
name?: string;
|
|
1358
|
+
updated_at?: string;
|
|
1359
|
+
user_id?: string;
|
|
1360
|
+
};
|
|
1361
|
+
Relationships: [];
|
|
1362
|
+
};
|
|
1363
|
+
catalog_vat_rates_cache: {
|
|
1364
|
+
Row: {
|
|
1365
|
+
created_at: string;
|
|
1366
|
+
external_ref: string;
|
|
1367
|
+
id: string;
|
|
1368
|
+
label: string;
|
|
1369
|
+
percentage: number;
|
|
1370
|
+
updated_at: string;
|
|
1371
|
+
user_id: string;
|
|
1372
|
+
};
|
|
1373
|
+
Insert: {
|
|
1374
|
+
created_at?: string;
|
|
1375
|
+
external_ref: string;
|
|
1376
|
+
id?: string;
|
|
1377
|
+
label: string;
|
|
1378
|
+
percentage?: number;
|
|
1379
|
+
updated_at?: string;
|
|
1380
|
+
user_id: string;
|
|
1381
|
+
};
|
|
1382
|
+
Update: {
|
|
1383
|
+
created_at?: string;
|
|
1384
|
+
external_ref?: string;
|
|
1385
|
+
id?: string;
|
|
1386
|
+
label?: string;
|
|
1387
|
+
percentage?: number;
|
|
1388
|
+
updated_at?: string;
|
|
1389
|
+
user_id?: string;
|
|
1390
|
+
};
|
|
1391
|
+
Relationships: [];
|
|
1392
|
+
};
|
|
1086
1393
|
collections: {
|
|
1087
1394
|
Row: {
|
|
1088
1395
|
created_at: string;
|
|
@@ -1107,6 +1414,36 @@ export type Database = {
|
|
|
1107
1414
|
};
|
|
1108
1415
|
Relationships: [];
|
|
1109
1416
|
};
|
|
1417
|
+
crate_types: {
|
|
1418
|
+
Row: {
|
|
1419
|
+
created_at: string;
|
|
1420
|
+
id: string;
|
|
1421
|
+
length_cm: number;
|
|
1422
|
+
name: string;
|
|
1423
|
+
plants_per_crate: number;
|
|
1424
|
+
updated_at: string;
|
|
1425
|
+
width_cm: number;
|
|
1426
|
+
};
|
|
1427
|
+
Insert: {
|
|
1428
|
+
created_at?: string;
|
|
1429
|
+
id?: string;
|
|
1430
|
+
length_cm: number;
|
|
1431
|
+
name: string;
|
|
1432
|
+
plants_per_crate?: number;
|
|
1433
|
+
updated_at?: string;
|
|
1434
|
+
width_cm: number;
|
|
1435
|
+
};
|
|
1436
|
+
Update: {
|
|
1437
|
+
created_at?: string;
|
|
1438
|
+
id?: string;
|
|
1439
|
+
length_cm?: number;
|
|
1440
|
+
name?: string;
|
|
1441
|
+
plants_per_crate?: number;
|
|
1442
|
+
updated_at?: string;
|
|
1443
|
+
width_cm?: number;
|
|
1444
|
+
};
|
|
1445
|
+
Relationships: [];
|
|
1446
|
+
};
|
|
1110
1447
|
customer_audit_log: {
|
|
1111
1448
|
Row: {
|
|
1112
1449
|
action: string;
|
|
@@ -1341,66 +1678,167 @@ export type Database = {
|
|
|
1341
1678
|
};
|
|
1342
1679
|
Relationships: [];
|
|
1343
1680
|
};
|
|
1344
|
-
|
|
1681
|
+
customer_price_group_members: {
|
|
1345
1682
|
Row: {
|
|
1346
|
-
article_number: string | null;
|
|
1347
1683
|
created_at: string;
|
|
1348
|
-
|
|
1349
|
-
floriday_item_id: string | null;
|
|
1684
|
+
customer_key: string;
|
|
1350
1685
|
id: string;
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
product_name: string;
|
|
1354
|
-
raw: Json | null;
|
|
1355
|
-
unit: string | null;
|
|
1356
|
-
updated_at: string;
|
|
1686
|
+
owner_id: string;
|
|
1687
|
+
price_group_id: string;
|
|
1357
1688
|
};
|
|
1358
1689
|
Insert: {
|
|
1359
|
-
article_number?: string | null;
|
|
1360
1690
|
created_at?: string;
|
|
1361
|
-
|
|
1362
|
-
floriday_item_id?: string | null;
|
|
1691
|
+
customer_key: string;
|
|
1363
1692
|
id?: string;
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
product_name: string;
|
|
1367
|
-
raw?: Json | null;
|
|
1368
|
-
unit?: string | null;
|
|
1369
|
-
updated_at?: string;
|
|
1693
|
+
owner_id?: string;
|
|
1694
|
+
price_group_id: string;
|
|
1370
1695
|
};
|
|
1371
1696
|
Update: {
|
|
1372
|
-
article_number?: string | null;
|
|
1373
1697
|
created_at?: string;
|
|
1374
|
-
|
|
1375
|
-
floriday_item_id?: string | null;
|
|
1698
|
+
customer_key?: string;
|
|
1376
1699
|
id?: string;
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
product_name?: string;
|
|
1380
|
-
raw?: Json | null;
|
|
1381
|
-
unit?: string | null;
|
|
1382
|
-
updated_at?: string;
|
|
1700
|
+
owner_id?: string;
|
|
1701
|
+
price_group_id?: string;
|
|
1383
1702
|
};
|
|
1384
1703
|
Relationships: [
|
|
1385
1704
|
{
|
|
1386
|
-
foreignKeyName: "
|
|
1387
|
-
columns: ["
|
|
1705
|
+
foreignKeyName: "customer_price_group_members_price_group_id_fkey";
|
|
1706
|
+
columns: ["price_group_id"];
|
|
1388
1707
|
isOneToOne: false;
|
|
1389
|
-
referencedRelation: "
|
|
1708
|
+
referencedRelation: "customer_price_groups";
|
|
1390
1709
|
referencedColumns: ["id"];
|
|
1391
1710
|
}
|
|
1392
1711
|
];
|
|
1393
1712
|
};
|
|
1394
|
-
|
|
1713
|
+
customer_price_groups: {
|
|
1395
1714
|
Row: {
|
|
1396
|
-
|
|
1715
|
+
calc_type: string | null;
|
|
1716
|
+
calc_value: number | null;
|
|
1717
|
+
calc_value_type: string | null;
|
|
1397
1718
|
created_at: string;
|
|
1398
|
-
|
|
1719
|
+
currency: string;
|
|
1720
|
+
distribute_over: string | null;
|
|
1721
|
+
group_type: string;
|
|
1722
|
+
handling_fee: number | null;
|
|
1399
1723
|
id: string;
|
|
1724
|
+
include_stickers: boolean;
|
|
1400
1725
|
is_active: boolean;
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1726
|
+
name: string;
|
|
1727
|
+
owner_id: string;
|
|
1728
|
+
price_scope: string;
|
|
1729
|
+
pricing_mode: string;
|
|
1730
|
+
rounding: string;
|
|
1731
|
+
rounding_step: number;
|
|
1732
|
+
sort_order: number;
|
|
1733
|
+
unit: string;
|
|
1734
|
+
updated_at: string;
|
|
1735
|
+
};
|
|
1736
|
+
Insert: {
|
|
1737
|
+
calc_type?: string | null;
|
|
1738
|
+
calc_value?: number | null;
|
|
1739
|
+
calc_value_type?: string | null;
|
|
1740
|
+
created_at?: string;
|
|
1741
|
+
currency?: string;
|
|
1742
|
+
distribute_over?: string | null;
|
|
1743
|
+
group_type?: string;
|
|
1744
|
+
handling_fee?: number | null;
|
|
1745
|
+
id?: string;
|
|
1746
|
+
include_stickers?: boolean;
|
|
1747
|
+
is_active?: boolean;
|
|
1748
|
+
name: string;
|
|
1749
|
+
owner_id?: string;
|
|
1750
|
+
price_scope?: string;
|
|
1751
|
+
pricing_mode?: string;
|
|
1752
|
+
rounding?: string;
|
|
1753
|
+
rounding_step?: number;
|
|
1754
|
+
sort_order?: number;
|
|
1755
|
+
unit?: string;
|
|
1756
|
+
updated_at?: string;
|
|
1757
|
+
};
|
|
1758
|
+
Update: {
|
|
1759
|
+
calc_type?: string | null;
|
|
1760
|
+
calc_value?: number | null;
|
|
1761
|
+
calc_value_type?: string | null;
|
|
1762
|
+
created_at?: string;
|
|
1763
|
+
currency?: string;
|
|
1764
|
+
distribute_over?: string | null;
|
|
1765
|
+
group_type?: string;
|
|
1766
|
+
handling_fee?: number | null;
|
|
1767
|
+
id?: string;
|
|
1768
|
+
include_stickers?: boolean;
|
|
1769
|
+
is_active?: boolean;
|
|
1770
|
+
name?: string;
|
|
1771
|
+
owner_id?: string;
|
|
1772
|
+
price_scope?: string;
|
|
1773
|
+
pricing_mode?: string;
|
|
1774
|
+
rounding?: string;
|
|
1775
|
+
rounding_step?: number;
|
|
1776
|
+
sort_order?: number;
|
|
1777
|
+
unit?: string;
|
|
1778
|
+
updated_at?: string;
|
|
1779
|
+
};
|
|
1780
|
+
Relationships: [];
|
|
1781
|
+
};
|
|
1782
|
+
customer_selected_assortment: {
|
|
1783
|
+
Row: {
|
|
1784
|
+
article_number: string | null;
|
|
1785
|
+
created_at: string;
|
|
1786
|
+
customer_id: string;
|
|
1787
|
+
floriday_item_id: string | null;
|
|
1788
|
+
id: string;
|
|
1789
|
+
price: number | null;
|
|
1790
|
+
product_group: string | null;
|
|
1791
|
+
product_name: string;
|
|
1792
|
+
raw: Json | null;
|
|
1793
|
+
unit: string | null;
|
|
1794
|
+
updated_at: string;
|
|
1795
|
+
};
|
|
1796
|
+
Insert: {
|
|
1797
|
+
article_number?: string | null;
|
|
1798
|
+
created_at?: string;
|
|
1799
|
+
customer_id: string;
|
|
1800
|
+
floriday_item_id?: string | null;
|
|
1801
|
+
id?: string;
|
|
1802
|
+
price?: number | null;
|
|
1803
|
+
product_group?: string | null;
|
|
1804
|
+
product_name: string;
|
|
1805
|
+
raw?: Json | null;
|
|
1806
|
+
unit?: string | null;
|
|
1807
|
+
updated_at?: string;
|
|
1808
|
+
};
|
|
1809
|
+
Update: {
|
|
1810
|
+
article_number?: string | null;
|
|
1811
|
+
created_at?: string;
|
|
1812
|
+
customer_id?: string;
|
|
1813
|
+
floriday_item_id?: string | null;
|
|
1814
|
+
id?: string;
|
|
1815
|
+
price?: number | null;
|
|
1816
|
+
product_group?: string | null;
|
|
1817
|
+
product_name?: string;
|
|
1818
|
+
raw?: Json | null;
|
|
1819
|
+
unit?: string | null;
|
|
1820
|
+
updated_at?: string;
|
|
1821
|
+
};
|
|
1822
|
+
Relationships: [
|
|
1823
|
+
{
|
|
1824
|
+
foreignKeyName: "customer_selected_assortment_customer_id_fkey";
|
|
1825
|
+
columns: ["customer_id"];
|
|
1826
|
+
isOneToOne: false;
|
|
1827
|
+
referencedRelation: "customers";
|
|
1828
|
+
referencedColumns: ["id"];
|
|
1829
|
+
}
|
|
1830
|
+
];
|
|
1831
|
+
};
|
|
1832
|
+
customer_trade_settings: {
|
|
1833
|
+
Row: {
|
|
1834
|
+
category: string;
|
|
1835
|
+
created_at: string;
|
|
1836
|
+
customer_id: string;
|
|
1837
|
+
id: string;
|
|
1838
|
+
is_active: boolean;
|
|
1839
|
+
raw: Json | null;
|
|
1840
|
+
setting_key: string;
|
|
1841
|
+
setting_label: string;
|
|
1404
1842
|
updated_at: string;
|
|
1405
1843
|
};
|
|
1406
1844
|
Insert: {
|
|
@@ -1498,6 +1936,10 @@ export type Database = {
|
|
|
1498
1936
|
sync_error: string | null;
|
|
1499
1937
|
sync_status: string;
|
|
1500
1938
|
trade_forms: string[];
|
|
1939
|
+
twinfield_code: string | null;
|
|
1940
|
+
twinfield_last_hash: string | null;
|
|
1941
|
+
twinfield_sync_error: string | null;
|
|
1942
|
+
twinfield_synced_at: string | null;
|
|
1501
1943
|
updated_at: string;
|
|
1502
1944
|
vat_display: string | null;
|
|
1503
1945
|
vat_number: string | null;
|
|
@@ -1565,6 +2007,10 @@ export type Database = {
|
|
|
1565
2007
|
sync_error?: string | null;
|
|
1566
2008
|
sync_status?: string;
|
|
1567
2009
|
trade_forms?: string[];
|
|
2010
|
+
twinfield_code?: string | null;
|
|
2011
|
+
twinfield_last_hash?: string | null;
|
|
2012
|
+
twinfield_sync_error?: string | null;
|
|
2013
|
+
twinfield_synced_at?: string | null;
|
|
1568
2014
|
updated_at?: string;
|
|
1569
2015
|
vat_display?: string | null;
|
|
1570
2016
|
vat_number?: string | null;
|
|
@@ -1632,6 +2078,10 @@ export type Database = {
|
|
|
1632
2078
|
sync_error?: string | null;
|
|
1633
2079
|
sync_status?: string;
|
|
1634
2080
|
trade_forms?: string[];
|
|
2081
|
+
twinfield_code?: string | null;
|
|
2082
|
+
twinfield_last_hash?: string | null;
|
|
2083
|
+
twinfield_sync_error?: string | null;
|
|
2084
|
+
twinfield_synced_at?: string | null;
|
|
1635
2085
|
updated_at?: string;
|
|
1636
2086
|
vat_display?: string | null;
|
|
1637
2087
|
vat_number?: string | null;
|
|
@@ -3490,6 +3940,109 @@ export type Database = {
|
|
|
3490
3940
|
}
|
|
3491
3941
|
];
|
|
3492
3942
|
};
|
|
3943
|
+
floriday_agreement_calloffs_cache: {
|
|
3944
|
+
Row: {
|
|
3945
|
+
agreement_id: string | null;
|
|
3946
|
+
connection_id: string;
|
|
3947
|
+
data: Json;
|
|
3948
|
+
delivery_date: string | null;
|
|
3949
|
+
fetched_at: string;
|
|
3950
|
+
floriday_id: string;
|
|
3951
|
+
id: string;
|
|
3952
|
+
is_deleted: boolean;
|
|
3953
|
+
sequence_number: number;
|
|
3954
|
+
status: string | null;
|
|
3955
|
+
updated_at: string;
|
|
3956
|
+
};
|
|
3957
|
+
Insert: {
|
|
3958
|
+
agreement_id?: string | null;
|
|
3959
|
+
connection_id: string;
|
|
3960
|
+
data?: Json;
|
|
3961
|
+
delivery_date?: string | null;
|
|
3962
|
+
fetched_at?: string;
|
|
3963
|
+
floriday_id: string;
|
|
3964
|
+
id?: string;
|
|
3965
|
+
is_deleted?: boolean;
|
|
3966
|
+
sequence_number?: number;
|
|
3967
|
+
status?: string | null;
|
|
3968
|
+
updated_at?: string;
|
|
3969
|
+
};
|
|
3970
|
+
Update: {
|
|
3971
|
+
agreement_id?: string | null;
|
|
3972
|
+
connection_id?: string;
|
|
3973
|
+
data?: Json;
|
|
3974
|
+
delivery_date?: string | null;
|
|
3975
|
+
fetched_at?: string;
|
|
3976
|
+
floriday_id?: string;
|
|
3977
|
+
id?: string;
|
|
3978
|
+
is_deleted?: boolean;
|
|
3979
|
+
sequence_number?: number;
|
|
3980
|
+
status?: string | null;
|
|
3981
|
+
updated_at?: string;
|
|
3982
|
+
};
|
|
3983
|
+
Relationships: [
|
|
3984
|
+
{
|
|
3985
|
+
foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
|
|
3986
|
+
columns: ["connection_id"];
|
|
3987
|
+
isOneToOne: false;
|
|
3988
|
+
referencedRelation: "floriday_connections";
|
|
3989
|
+
referencedColumns: ["id"];
|
|
3990
|
+
}
|
|
3991
|
+
];
|
|
3992
|
+
};
|
|
3993
|
+
floriday_agreements_cache: {
|
|
3994
|
+
Row: {
|
|
3995
|
+
buyer_organization_id: string | null;
|
|
3996
|
+
connection_id: string;
|
|
3997
|
+
data: Json;
|
|
3998
|
+
fetched_at: string;
|
|
3999
|
+
floriday_id: string;
|
|
4000
|
+
id: string;
|
|
4001
|
+
is_deleted: boolean;
|
|
4002
|
+
sequence_number: number;
|
|
4003
|
+
status: string | null;
|
|
4004
|
+
updated_at: string;
|
|
4005
|
+
valid_from: string | null;
|
|
4006
|
+
valid_until: string | null;
|
|
4007
|
+
};
|
|
4008
|
+
Insert: {
|
|
4009
|
+
buyer_organization_id?: string | null;
|
|
4010
|
+
connection_id: string;
|
|
4011
|
+
data?: Json;
|
|
4012
|
+
fetched_at?: string;
|
|
4013
|
+
floriday_id: string;
|
|
4014
|
+
id?: string;
|
|
4015
|
+
is_deleted?: boolean;
|
|
4016
|
+
sequence_number?: number;
|
|
4017
|
+
status?: string | null;
|
|
4018
|
+
updated_at?: string;
|
|
4019
|
+
valid_from?: string | null;
|
|
4020
|
+
valid_until?: string | null;
|
|
4021
|
+
};
|
|
4022
|
+
Update: {
|
|
4023
|
+
buyer_organization_id?: string | null;
|
|
4024
|
+
connection_id?: string;
|
|
4025
|
+
data?: Json;
|
|
4026
|
+
fetched_at?: string;
|
|
4027
|
+
floriday_id?: string;
|
|
4028
|
+
id?: string;
|
|
4029
|
+
is_deleted?: boolean;
|
|
4030
|
+
sequence_number?: number;
|
|
4031
|
+
status?: string | null;
|
|
4032
|
+
updated_at?: string;
|
|
4033
|
+
valid_from?: string | null;
|
|
4034
|
+
valid_until?: string | null;
|
|
4035
|
+
};
|
|
4036
|
+
Relationships: [
|
|
4037
|
+
{
|
|
4038
|
+
foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
|
|
4039
|
+
columns: ["connection_id"];
|
|
4040
|
+
isOneToOne: false;
|
|
4041
|
+
referencedRelation: "floriday_connections";
|
|
4042
|
+
referencedColumns: ["id"];
|
|
4043
|
+
}
|
|
4044
|
+
];
|
|
4045
|
+
};
|
|
3493
4046
|
floriday_auction_letters_cache: {
|
|
3494
4047
|
Row: {
|
|
3495
4048
|
auction_letter_code: string;
|
|
@@ -4008,27 +4561,6 @@ export type Database = {
|
|
|
4008
4561
|
}
|
|
4009
4562
|
];
|
|
4010
4563
|
};
|
|
4011
|
-
floriday_continuous_stock_cache: {
|
|
4012
|
-
Row: {
|
|
4013
|
-
connection_id: string;
|
|
4014
|
-
fetched_at: string;
|
|
4015
|
-
number_of_pieces: number;
|
|
4016
|
-
trade_item_id: string;
|
|
4017
|
-
};
|
|
4018
|
-
Insert: {
|
|
4019
|
-
connection_id: string;
|
|
4020
|
-
fetched_at?: string;
|
|
4021
|
-
number_of_pieces?: number;
|
|
4022
|
-
trade_item_id: string;
|
|
4023
|
-
};
|
|
4024
|
-
Update: {
|
|
4025
|
-
connection_id?: string;
|
|
4026
|
-
fetched_at?: string;
|
|
4027
|
-
number_of_pieces?: number;
|
|
4028
|
-
trade_item_id?: string;
|
|
4029
|
-
};
|
|
4030
|
-
Relationships: [];
|
|
4031
|
-
};
|
|
4032
4564
|
floriday_continuous_stock_queue: {
|
|
4033
4565
|
Row: {
|
|
4034
4566
|
attempts: number;
|
|
@@ -4832,8 +5364,6 @@ export type Database = {
|
|
|
4832
5364
|
Row: {
|
|
4833
5365
|
buyer_organization_id: string | null;
|
|
4834
5366
|
connection_id: string;
|
|
4835
|
-
controlled_at: string | null;
|
|
4836
|
-
controlled_by: string | null;
|
|
4837
5367
|
created_at: string;
|
|
4838
5368
|
data: Json;
|
|
4839
5369
|
floriday_id: string;
|
|
@@ -4845,8 +5375,6 @@ export type Database = {
|
|
|
4845
5375
|
Insert: {
|
|
4846
5376
|
buyer_organization_id?: string | null;
|
|
4847
5377
|
connection_id: string;
|
|
4848
|
-
controlled_at?: string | null;
|
|
4849
|
-
controlled_by?: string | null;
|
|
4850
5378
|
created_at?: string;
|
|
4851
5379
|
data: Json;
|
|
4852
5380
|
floriday_id: string;
|
|
@@ -4858,8 +5386,6 @@ export type Database = {
|
|
|
4858
5386
|
Update: {
|
|
4859
5387
|
buyer_organization_id?: string | null;
|
|
4860
5388
|
connection_id?: string;
|
|
4861
|
-
controlled_at?: string | null;
|
|
4862
|
-
controlled_by?: string | null;
|
|
4863
5389
|
created_at?: string;
|
|
4864
5390
|
data?: Json;
|
|
4865
5391
|
floriday_id?: string;
|
|
@@ -5051,47 +5577,6 @@ export type Database = {
|
|
|
5051
5577
|
}
|
|
5052
5578
|
];
|
|
5053
5579
|
};
|
|
5054
|
-
floriday_trade_settings_customers_cache: {
|
|
5055
|
-
Row: {
|
|
5056
|
-
connection_id: string;
|
|
5057
|
-
data: Json;
|
|
5058
|
-
fetched_at: string;
|
|
5059
|
-
floriday_id: string;
|
|
5060
|
-
id: string;
|
|
5061
|
-
is_deleted: boolean;
|
|
5062
|
-
sequence_number: number;
|
|
5063
|
-
updated_at: string;
|
|
5064
|
-
};
|
|
5065
|
-
Insert: {
|
|
5066
|
-
connection_id: string;
|
|
5067
|
-
data: Json;
|
|
5068
|
-
fetched_at?: string;
|
|
5069
|
-
floriday_id: string;
|
|
5070
|
-
id?: string;
|
|
5071
|
-
is_deleted?: boolean;
|
|
5072
|
-
sequence_number?: number;
|
|
5073
|
-
updated_at?: string;
|
|
5074
|
-
};
|
|
5075
|
-
Update: {
|
|
5076
|
-
connection_id?: string;
|
|
5077
|
-
data?: Json;
|
|
5078
|
-
fetched_at?: string;
|
|
5079
|
-
floriday_id?: string;
|
|
5080
|
-
id?: string;
|
|
5081
|
-
is_deleted?: boolean;
|
|
5082
|
-
sequence_number?: number;
|
|
5083
|
-
updated_at?: string;
|
|
5084
|
-
};
|
|
5085
|
-
Relationships: [
|
|
5086
|
-
{
|
|
5087
|
-
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
5088
|
-
columns: ["connection_id"];
|
|
5089
|
-
isOneToOne: false;
|
|
5090
|
-
referencedRelation: "floriday_connections";
|
|
5091
|
-
referencedColumns: ["id"];
|
|
5092
|
-
}
|
|
5093
|
-
];
|
|
5094
|
-
};
|
|
5095
5580
|
floriday_trips_cache: {
|
|
5096
5581
|
Row: {
|
|
5097
5582
|
carrier_organization_id: string | null;
|
|
@@ -5544,99 +6029,394 @@ export type Database = {
|
|
|
5544
6029
|
booking_id: string | null;
|
|
5545
6030
|
company_name: string | null;
|
|
5546
6031
|
created_at: string;
|
|
5547
|
-
customer_email: string | null;
|
|
5548
|
-
description: string | null;
|
|
5549
|
-
exact_article_id: string | null;
|
|
6032
|
+
customer_email: string | null;
|
|
6033
|
+
description: string | null;
|
|
6034
|
+
exact_article_id: string | null;
|
|
6035
|
+
id: string;
|
|
6036
|
+
invoice_run_id: string | null;
|
|
6037
|
+
quantity: number | null;
|
|
6038
|
+
total_excl_vat: number | null;
|
|
6039
|
+
total_incl_vat: number | null;
|
|
6040
|
+
unit_price: number | null;
|
|
6041
|
+
vat_amount: number | null;
|
|
6042
|
+
};
|
|
6043
|
+
Insert: {
|
|
6044
|
+
booking_id?: string | null;
|
|
6045
|
+
company_name?: string | null;
|
|
6046
|
+
created_at?: string;
|
|
6047
|
+
customer_email?: string | null;
|
|
6048
|
+
description?: string | null;
|
|
6049
|
+
exact_article_id?: string | null;
|
|
6050
|
+
id?: string;
|
|
6051
|
+
invoice_run_id?: string | null;
|
|
6052
|
+
quantity?: number | null;
|
|
6053
|
+
total_excl_vat?: number | null;
|
|
6054
|
+
total_incl_vat?: number | null;
|
|
6055
|
+
unit_price?: number | null;
|
|
6056
|
+
vat_amount?: number | null;
|
|
6057
|
+
};
|
|
6058
|
+
Update: {
|
|
6059
|
+
booking_id?: string | null;
|
|
6060
|
+
company_name?: string | null;
|
|
6061
|
+
created_at?: string;
|
|
6062
|
+
customer_email?: string | null;
|
|
6063
|
+
description?: string | null;
|
|
6064
|
+
exact_article_id?: string | null;
|
|
6065
|
+
id?: string;
|
|
6066
|
+
invoice_run_id?: string | null;
|
|
6067
|
+
quantity?: number | null;
|
|
6068
|
+
total_excl_vat?: number | null;
|
|
6069
|
+
total_incl_vat?: number | null;
|
|
6070
|
+
unit_price?: number | null;
|
|
6071
|
+
vat_amount?: number | null;
|
|
6072
|
+
};
|
|
6073
|
+
Relationships: [
|
|
6074
|
+
{
|
|
6075
|
+
foreignKeyName: "invoice_run_items_booking_id_fkey";
|
|
6076
|
+
columns: ["booking_id"];
|
|
6077
|
+
isOneToOne: false;
|
|
6078
|
+
referencedRelation: "bookings";
|
|
6079
|
+
referencedColumns: ["id"];
|
|
6080
|
+
},
|
|
6081
|
+
{
|
|
6082
|
+
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
6083
|
+
columns: ["invoice_run_id"];
|
|
6084
|
+
isOneToOne: false;
|
|
6085
|
+
referencedRelation: "invoice_runs";
|
|
6086
|
+
referencedColumns: ["id"];
|
|
6087
|
+
}
|
|
6088
|
+
];
|
|
6089
|
+
};
|
|
6090
|
+
invoice_runs: {
|
|
6091
|
+
Row: {
|
|
6092
|
+
created_at: string;
|
|
6093
|
+
created_by: string | null;
|
|
6094
|
+
id: string;
|
|
6095
|
+
period_end: string;
|
|
6096
|
+
period_start: string;
|
|
6097
|
+
status: string;
|
|
6098
|
+
total_excl_vat: number | null;
|
|
6099
|
+
total_incl_vat: number | null;
|
|
6100
|
+
vat_amount: number | null;
|
|
6101
|
+
};
|
|
6102
|
+
Insert: {
|
|
6103
|
+
created_at?: string;
|
|
6104
|
+
created_by?: string | null;
|
|
6105
|
+
id?: string;
|
|
6106
|
+
period_end: string;
|
|
6107
|
+
period_start: string;
|
|
6108
|
+
status?: string;
|
|
6109
|
+
total_excl_vat?: number | null;
|
|
6110
|
+
total_incl_vat?: number | null;
|
|
6111
|
+
vat_amount?: number | null;
|
|
6112
|
+
};
|
|
6113
|
+
Update: {
|
|
6114
|
+
created_at?: string;
|
|
6115
|
+
created_by?: string | null;
|
|
6116
|
+
id?: string;
|
|
6117
|
+
period_end?: string;
|
|
6118
|
+
period_start?: string;
|
|
6119
|
+
status?: string;
|
|
6120
|
+
total_excl_vat?: number | null;
|
|
6121
|
+
total_incl_vat?: number | null;
|
|
6122
|
+
vat_amount?: number | null;
|
|
6123
|
+
};
|
|
6124
|
+
Relationships: [];
|
|
6125
|
+
};
|
|
6126
|
+
itk_contact_persons: {
|
|
6127
|
+
Row: {
|
|
6128
|
+
created_at: string;
|
|
6129
|
+
customer_id: string;
|
|
6130
|
+
email: string | null;
|
|
6131
|
+
id: string;
|
|
6132
|
+
name: string;
|
|
6133
|
+
phone: string | null;
|
|
6134
|
+
role: string | null;
|
|
6135
|
+
updated_at: string;
|
|
6136
|
+
};
|
|
6137
|
+
Insert: {
|
|
6138
|
+
created_at?: string;
|
|
6139
|
+
customer_id: string;
|
|
6140
|
+
email?: string | null;
|
|
6141
|
+
id?: string;
|
|
6142
|
+
name: string;
|
|
6143
|
+
phone?: string | null;
|
|
6144
|
+
role?: string | null;
|
|
6145
|
+
updated_at?: string;
|
|
6146
|
+
};
|
|
6147
|
+
Update: {
|
|
6148
|
+
created_at?: string;
|
|
6149
|
+
customer_id?: string;
|
|
6150
|
+
email?: string | null;
|
|
6151
|
+
id?: string;
|
|
6152
|
+
name?: string;
|
|
6153
|
+
phone?: string | null;
|
|
6154
|
+
role?: string | null;
|
|
6155
|
+
updated_at?: string;
|
|
6156
|
+
};
|
|
6157
|
+
Relationships: [
|
|
6158
|
+
{
|
|
6159
|
+
foreignKeyName: "itk_contact_persons_customer_id_fkey";
|
|
6160
|
+
columns: ["customer_id"];
|
|
6161
|
+
isOneToOne: false;
|
|
6162
|
+
referencedRelation: "itk_customers";
|
|
6163
|
+
referencedColumns: ["id"];
|
|
6164
|
+
}
|
|
6165
|
+
];
|
|
6166
|
+
};
|
|
6167
|
+
itk_customer_dynamic_values: {
|
|
6168
|
+
Row: {
|
|
6169
|
+
created_at: string;
|
|
6170
|
+
customer_id: string;
|
|
6171
|
+
field_id: string;
|
|
6172
|
+
id: string;
|
|
6173
|
+
updated_at: string;
|
|
6174
|
+
value: string | null;
|
|
6175
|
+
};
|
|
6176
|
+
Insert: {
|
|
6177
|
+
created_at?: string;
|
|
6178
|
+
customer_id: string;
|
|
6179
|
+
field_id: string;
|
|
6180
|
+
id?: string;
|
|
6181
|
+
updated_at?: string;
|
|
6182
|
+
value?: string | null;
|
|
6183
|
+
};
|
|
6184
|
+
Update: {
|
|
6185
|
+
created_at?: string;
|
|
6186
|
+
customer_id?: string;
|
|
6187
|
+
field_id?: string;
|
|
6188
|
+
id?: string;
|
|
6189
|
+
updated_at?: string;
|
|
6190
|
+
value?: string | null;
|
|
6191
|
+
};
|
|
6192
|
+
Relationships: [
|
|
6193
|
+
{
|
|
6194
|
+
foreignKeyName: "itk_customer_dynamic_values_customer_id_fkey";
|
|
6195
|
+
columns: ["customer_id"];
|
|
6196
|
+
isOneToOne: false;
|
|
6197
|
+
referencedRelation: "itk_customers";
|
|
6198
|
+
referencedColumns: ["id"];
|
|
6199
|
+
},
|
|
6200
|
+
{
|
|
6201
|
+
foreignKeyName: "itk_customer_dynamic_values_field_id_fkey";
|
|
6202
|
+
columns: ["field_id"];
|
|
6203
|
+
isOneToOne: false;
|
|
6204
|
+
referencedRelation: "itk_dynamic_fields";
|
|
6205
|
+
referencedColumns: ["id"];
|
|
6206
|
+
}
|
|
6207
|
+
];
|
|
6208
|
+
};
|
|
6209
|
+
itk_customer_notes: {
|
|
6210
|
+
Row: {
|
|
6211
|
+
body: string;
|
|
6212
|
+
created_at: string;
|
|
6213
|
+
created_by: string | null;
|
|
6214
|
+
customer_id: string;
|
|
6215
|
+
id: string;
|
|
6216
|
+
note_type: string;
|
|
6217
|
+
updated_at: string;
|
|
6218
|
+
};
|
|
6219
|
+
Insert: {
|
|
6220
|
+
body: string;
|
|
6221
|
+
created_at?: string;
|
|
6222
|
+
created_by?: string | null;
|
|
6223
|
+
customer_id: string;
|
|
6224
|
+
id?: string;
|
|
6225
|
+
note_type?: string;
|
|
6226
|
+
updated_at?: string;
|
|
6227
|
+
};
|
|
6228
|
+
Update: {
|
|
6229
|
+
body?: string;
|
|
6230
|
+
created_at?: string;
|
|
6231
|
+
created_by?: string | null;
|
|
6232
|
+
customer_id?: string;
|
|
6233
|
+
id?: string;
|
|
6234
|
+
note_type?: string;
|
|
6235
|
+
updated_at?: string;
|
|
6236
|
+
};
|
|
6237
|
+
Relationships: [
|
|
6238
|
+
{
|
|
6239
|
+
foreignKeyName: "itk_customer_notes_customer_id_fkey";
|
|
6240
|
+
columns: ["customer_id"];
|
|
6241
|
+
isOneToOne: false;
|
|
6242
|
+
referencedRelation: "itk_customers";
|
|
6243
|
+
referencedColumns: ["id"];
|
|
6244
|
+
}
|
|
6245
|
+
];
|
|
6246
|
+
};
|
|
6247
|
+
itk_customers: {
|
|
6248
|
+
Row: {
|
|
6249
|
+
billing_city: string | null;
|
|
6250
|
+
billing_postcode: string | null;
|
|
6251
|
+
billing_street: string | null;
|
|
6252
|
+
created_at: string;
|
|
6253
|
+
general_email: string | null;
|
|
6254
|
+
general_phone: string | null;
|
|
6255
|
+
id: string;
|
|
6256
|
+
legacy_customer_id: string | null;
|
|
6257
|
+
name: string;
|
|
6258
|
+
segment: Database["public"]["Enums"]["itk_customer_segment"];
|
|
6259
|
+
updated_at: string;
|
|
6260
|
+
};
|
|
6261
|
+
Insert: {
|
|
6262
|
+
billing_city?: string | null;
|
|
6263
|
+
billing_postcode?: string | null;
|
|
6264
|
+
billing_street?: string | null;
|
|
6265
|
+
created_at?: string;
|
|
6266
|
+
general_email?: string | null;
|
|
6267
|
+
general_phone?: string | null;
|
|
6268
|
+
id?: string;
|
|
6269
|
+
legacy_customer_id?: string | null;
|
|
6270
|
+
name: string;
|
|
6271
|
+
segment?: Database["public"]["Enums"]["itk_customer_segment"];
|
|
6272
|
+
updated_at?: string;
|
|
6273
|
+
};
|
|
6274
|
+
Update: {
|
|
6275
|
+
billing_city?: string | null;
|
|
6276
|
+
billing_postcode?: string | null;
|
|
6277
|
+
billing_street?: string | null;
|
|
6278
|
+
created_at?: string;
|
|
6279
|
+
general_email?: string | null;
|
|
6280
|
+
general_phone?: string | null;
|
|
6281
|
+
id?: string;
|
|
6282
|
+
legacy_customer_id?: string | null;
|
|
6283
|
+
name?: string;
|
|
6284
|
+
segment?: Database["public"]["Enums"]["itk_customer_segment"];
|
|
6285
|
+
updated_at?: string;
|
|
6286
|
+
};
|
|
6287
|
+
Relationships: [
|
|
6288
|
+
{
|
|
6289
|
+
foreignKeyName: "itk_customers_legacy_customer_id_fkey";
|
|
6290
|
+
columns: ["legacy_customer_id"];
|
|
6291
|
+
isOneToOne: false;
|
|
6292
|
+
referencedRelation: "customers";
|
|
6293
|
+
referencedColumns: ["id"];
|
|
6294
|
+
}
|
|
6295
|
+
];
|
|
6296
|
+
};
|
|
6297
|
+
itk_dynamic_fields: {
|
|
6298
|
+
Row: {
|
|
6299
|
+
created_at: string;
|
|
6300
|
+
field_name: string;
|
|
6301
|
+
field_type: Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6302
|
+
id: string;
|
|
6303
|
+
options: Json;
|
|
6304
|
+
sort_order: number;
|
|
6305
|
+
updated_at: string;
|
|
6306
|
+
};
|
|
6307
|
+
Insert: {
|
|
6308
|
+
created_at?: string;
|
|
6309
|
+
field_name: string;
|
|
6310
|
+
field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6311
|
+
id?: string;
|
|
6312
|
+
options?: Json;
|
|
6313
|
+
sort_order?: number;
|
|
6314
|
+
updated_at?: string;
|
|
6315
|
+
};
|
|
6316
|
+
Update: {
|
|
6317
|
+
created_at?: string;
|
|
6318
|
+
field_name?: string;
|
|
6319
|
+
field_type?: Database["public"]["Enums"]["itk_dynamic_field_type"];
|
|
6320
|
+
id?: string;
|
|
6321
|
+
options?: Json;
|
|
6322
|
+
sort_order?: number;
|
|
6323
|
+
updated_at?: string;
|
|
6324
|
+
};
|
|
6325
|
+
Relationships: [];
|
|
6326
|
+
};
|
|
6327
|
+
itk_work_locations: {
|
|
6328
|
+
Row: {
|
|
6329
|
+
city: string | null;
|
|
6330
|
+
created_at: string;
|
|
6331
|
+
customer_id: string;
|
|
5550
6332
|
id: string;
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
6333
|
+
instructions: string | null;
|
|
6334
|
+
label: string;
|
|
6335
|
+
latitude: number | null;
|
|
6336
|
+
longitude: number | null;
|
|
6337
|
+
postcode: string | null;
|
|
6338
|
+
street: string | null;
|
|
6339
|
+
updated_at: string;
|
|
5557
6340
|
};
|
|
5558
6341
|
Insert: {
|
|
5559
|
-
|
|
5560
|
-
company_name?: string | null;
|
|
6342
|
+
city?: string | null;
|
|
5561
6343
|
created_at?: string;
|
|
5562
|
-
|
|
5563
|
-
description?: string | null;
|
|
5564
|
-
exact_article_id?: string | null;
|
|
6344
|
+
customer_id: string;
|
|
5565
6345
|
id?: string;
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
6346
|
+
instructions?: string | null;
|
|
6347
|
+
label: string;
|
|
6348
|
+
latitude?: number | null;
|
|
6349
|
+
longitude?: number | null;
|
|
6350
|
+
postcode?: string | null;
|
|
6351
|
+
street?: string | null;
|
|
6352
|
+
updated_at?: string;
|
|
5572
6353
|
};
|
|
5573
6354
|
Update: {
|
|
5574
|
-
|
|
5575
|
-
company_name?: string | null;
|
|
6355
|
+
city?: string | null;
|
|
5576
6356
|
created_at?: string;
|
|
5577
|
-
|
|
5578
|
-
description?: string | null;
|
|
5579
|
-
exact_article_id?: string | null;
|
|
6357
|
+
customer_id?: string;
|
|
5580
6358
|
id?: string;
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
6359
|
+
instructions?: string | null;
|
|
6360
|
+
label?: string;
|
|
6361
|
+
latitude?: number | null;
|
|
6362
|
+
longitude?: number | null;
|
|
6363
|
+
postcode?: string | null;
|
|
6364
|
+
street?: string | null;
|
|
6365
|
+
updated_at?: string;
|
|
5587
6366
|
};
|
|
5588
6367
|
Relationships: [
|
|
5589
6368
|
{
|
|
5590
|
-
foreignKeyName: "
|
|
5591
|
-
columns: ["
|
|
5592
|
-
isOneToOne: false;
|
|
5593
|
-
referencedRelation: "bookings";
|
|
5594
|
-
referencedColumns: ["id"];
|
|
5595
|
-
},
|
|
5596
|
-
{
|
|
5597
|
-
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
5598
|
-
columns: ["invoice_run_id"];
|
|
6369
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6370
|
+
columns: ["customer_id"];
|
|
5599
6371
|
isOneToOne: false;
|
|
5600
|
-
referencedRelation: "
|
|
6372
|
+
referencedRelation: "itk_customers";
|
|
5601
6373
|
referencedColumns: ["id"];
|
|
5602
6374
|
}
|
|
5603
6375
|
];
|
|
5604
6376
|
};
|
|
5605
|
-
|
|
6377
|
+
leave_requests: {
|
|
5606
6378
|
Row: {
|
|
5607
6379
|
created_at: string;
|
|
5608
|
-
|
|
6380
|
+
end_date: string;
|
|
5609
6381
|
id: string;
|
|
5610
|
-
|
|
5611
|
-
|
|
6382
|
+
reason: string | null;
|
|
6383
|
+
start_date: string;
|
|
5612
6384
|
status: string;
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
6385
|
+
tenant_id: string;
|
|
6386
|
+
updated_at: string;
|
|
6387
|
+
user_id: string;
|
|
5616
6388
|
};
|
|
5617
6389
|
Insert: {
|
|
5618
6390
|
created_at?: string;
|
|
5619
|
-
|
|
6391
|
+
end_date: string;
|
|
5620
6392
|
id?: string;
|
|
5621
|
-
|
|
5622
|
-
|
|
6393
|
+
reason?: string | null;
|
|
6394
|
+
start_date: string;
|
|
5623
6395
|
status?: string;
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
6396
|
+
tenant_id?: string;
|
|
6397
|
+
updated_at?: string;
|
|
6398
|
+
user_id: string;
|
|
5627
6399
|
};
|
|
5628
6400
|
Update: {
|
|
5629
6401
|
created_at?: string;
|
|
5630
|
-
|
|
6402
|
+
end_date?: string;
|
|
5631
6403
|
id?: string;
|
|
5632
|
-
|
|
5633
|
-
|
|
6404
|
+
reason?: string | null;
|
|
6405
|
+
start_date?: string;
|
|
5634
6406
|
status?: string;
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
6407
|
+
tenant_id?: string;
|
|
6408
|
+
updated_at?: string;
|
|
6409
|
+
user_id?: string;
|
|
5638
6410
|
};
|
|
5639
|
-
Relationships: [
|
|
6411
|
+
Relationships: [
|
|
6412
|
+
{
|
|
6413
|
+
foreignKeyName: "leave_requests_user_id_fkey";
|
|
6414
|
+
columns: ["user_id"];
|
|
6415
|
+
isOneToOne: false;
|
|
6416
|
+
referencedRelation: "monteurs";
|
|
6417
|
+
referencedColumns: ["id"];
|
|
6418
|
+
}
|
|
6419
|
+
];
|
|
5640
6420
|
};
|
|
5641
6421
|
local_customer_agreements: {
|
|
5642
6422
|
Row: {
|
|
@@ -6284,62 +7064,66 @@ export type Database = {
|
|
|
6284
7064
|
};
|
|
6285
7065
|
manufacture_products: {
|
|
6286
7066
|
Row: {
|
|
6287
|
-
aantal_te_produceren: number;
|
|
6288
7067
|
created_at: string;
|
|
6289
7068
|
description: string | null;
|
|
6290
7069
|
id: string;
|
|
6291
7070
|
is_active: boolean;
|
|
6292
|
-
location_id: string | null;
|
|
6293
7071
|
name: string;
|
|
6294
|
-
partij_nummer: string | null;
|
|
6295
|
-
photos: Json;
|
|
6296
7072
|
produced_stock: number;
|
|
6297
7073
|
product_code: string;
|
|
6298
7074
|
tenant_id: string;
|
|
6299
|
-
unit: string;
|
|
6300
7075
|
updated_at: string;
|
|
6301
7076
|
};
|
|
6302
7077
|
Insert: {
|
|
6303
|
-
aantal_te_produceren?: number;
|
|
6304
7078
|
created_at?: string;
|
|
6305
7079
|
description?: string | null;
|
|
6306
7080
|
id?: string;
|
|
6307
7081
|
is_active?: boolean;
|
|
6308
|
-
location_id?: string | null;
|
|
6309
7082
|
name: string;
|
|
6310
|
-
partij_nummer?: string | null;
|
|
6311
|
-
photos?: Json;
|
|
6312
7083
|
produced_stock?: number;
|
|
6313
7084
|
product_code: string;
|
|
6314
7085
|
tenant_id: string;
|
|
6315
|
-
unit?: string;
|
|
6316
7086
|
updated_at?: string;
|
|
6317
7087
|
};
|
|
6318
7088
|
Update: {
|
|
6319
|
-
aantal_te_produceren?: number;
|
|
6320
7089
|
created_at?: string;
|
|
6321
7090
|
description?: string | null;
|
|
6322
7091
|
id?: string;
|
|
6323
7092
|
is_active?: boolean;
|
|
6324
|
-
location_id?: string | null;
|
|
6325
7093
|
name?: string;
|
|
6326
|
-
partij_nummer?: string | null;
|
|
6327
|
-
photos?: Json;
|
|
6328
7094
|
produced_stock?: number;
|
|
6329
7095
|
product_code?: string;
|
|
6330
7096
|
tenant_id?: string;
|
|
6331
|
-
unit?: string;
|
|
6332
7097
|
updated_at?: string;
|
|
6333
7098
|
};
|
|
6334
|
-
Relationships: [
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
7099
|
+
Relationships: [];
|
|
7100
|
+
};
|
|
7101
|
+
module_permissions: {
|
|
7102
|
+
Row: {
|
|
7103
|
+
created_at: string;
|
|
7104
|
+
id: string;
|
|
7105
|
+
module_id: string;
|
|
7106
|
+
permission: string;
|
|
7107
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
7108
|
+
updated_at: string;
|
|
7109
|
+
};
|
|
7110
|
+
Insert: {
|
|
7111
|
+
created_at?: string;
|
|
7112
|
+
id?: string;
|
|
7113
|
+
module_id: string;
|
|
7114
|
+
permission: string;
|
|
7115
|
+
role: Database["public"]["Enums"]["app_role"];
|
|
7116
|
+
updated_at?: string;
|
|
7117
|
+
};
|
|
7118
|
+
Update: {
|
|
7119
|
+
created_at?: string;
|
|
7120
|
+
id?: string;
|
|
7121
|
+
module_id?: string;
|
|
7122
|
+
permission?: string;
|
|
7123
|
+
role?: Database["public"]["Enums"]["app_role"];
|
|
7124
|
+
updated_at?: string;
|
|
7125
|
+
};
|
|
7126
|
+
Relationships: [];
|
|
6343
7127
|
};
|
|
6344
7128
|
monteurs: {
|
|
6345
7129
|
Row: {
|
|
@@ -7095,6 +7879,42 @@ export type Database = {
|
|
|
7095
7879
|
};
|
|
7096
7880
|
Relationships: [];
|
|
7097
7881
|
};
|
|
7882
|
+
order_buffers: {
|
|
7883
|
+
Row: {
|
|
7884
|
+
buffer_key: string;
|
|
7885
|
+
created_at: string;
|
|
7886
|
+
customer_id: string | null;
|
|
7887
|
+
grouping_mode: string;
|
|
7888
|
+
id: string;
|
|
7889
|
+
pickup_date: string | null;
|
|
7890
|
+
pickup_location: string | null;
|
|
7891
|
+
plan_locked_at: string | null;
|
|
7892
|
+
updated_at: string;
|
|
7893
|
+
};
|
|
7894
|
+
Insert: {
|
|
7895
|
+
buffer_key: string;
|
|
7896
|
+
created_at?: string;
|
|
7897
|
+
customer_id?: string | null;
|
|
7898
|
+
grouping_mode: string;
|
|
7899
|
+
id?: string;
|
|
7900
|
+
pickup_date?: string | null;
|
|
7901
|
+
pickup_location?: string | null;
|
|
7902
|
+
plan_locked_at?: string | null;
|
|
7903
|
+
updated_at?: string;
|
|
7904
|
+
};
|
|
7905
|
+
Update: {
|
|
7906
|
+
buffer_key?: string;
|
|
7907
|
+
created_at?: string;
|
|
7908
|
+
customer_id?: string | null;
|
|
7909
|
+
grouping_mode?: string;
|
|
7910
|
+
id?: string;
|
|
7911
|
+
pickup_date?: string | null;
|
|
7912
|
+
pickup_location?: string | null;
|
|
7913
|
+
plan_locked_at?: string | null;
|
|
7914
|
+
updated_at?: string;
|
|
7915
|
+
};
|
|
7916
|
+
Relationships: [];
|
|
7917
|
+
};
|
|
7098
7918
|
order_cart_items: {
|
|
7099
7919
|
Row: {
|
|
7100
7920
|
cart_id: string;
|
|
@@ -7165,6 +7985,7 @@ export type Database = {
|
|
|
7165
7985
|
order_carts: {
|
|
7166
7986
|
Row: {
|
|
7167
7987
|
algorithm_version: number;
|
|
7988
|
+
buffer_id: string | null;
|
|
7168
7989
|
cart_number: number;
|
|
7169
7990
|
created_at: string;
|
|
7170
7991
|
id: string;
|
|
@@ -7172,13 +7993,14 @@ export type Database = {
|
|
|
7172
7993
|
is_complete: boolean;
|
|
7173
7994
|
notes: string | null;
|
|
7174
7995
|
occupancy_pct: number;
|
|
7175
|
-
order_id: string;
|
|
7996
|
+
order_id: string | null;
|
|
7176
7997
|
source: string;
|
|
7177
7998
|
total_layers_used: number;
|
|
7178
7999
|
updated_at: string;
|
|
7179
8000
|
};
|
|
7180
8001
|
Insert: {
|
|
7181
8002
|
algorithm_version?: number;
|
|
8003
|
+
buffer_id?: string | null;
|
|
7182
8004
|
cart_number: number;
|
|
7183
8005
|
created_at?: string;
|
|
7184
8006
|
id?: string;
|
|
@@ -7186,13 +8008,14 @@ export type Database = {
|
|
|
7186
8008
|
is_complete?: boolean;
|
|
7187
8009
|
notes?: string | null;
|
|
7188
8010
|
occupancy_pct?: number;
|
|
7189
|
-
order_id
|
|
8011
|
+
order_id?: string | null;
|
|
7190
8012
|
source?: string;
|
|
7191
8013
|
total_layers_used?: number;
|
|
7192
8014
|
updated_at?: string;
|
|
7193
8015
|
};
|
|
7194
8016
|
Update: {
|
|
7195
8017
|
algorithm_version?: number;
|
|
8018
|
+
buffer_id?: string | null;
|
|
7196
8019
|
cart_number?: number;
|
|
7197
8020
|
created_at?: string;
|
|
7198
8021
|
id?: string;
|
|
@@ -7200,12 +8023,19 @@ export type Database = {
|
|
|
7200
8023
|
is_complete?: boolean;
|
|
7201
8024
|
notes?: string | null;
|
|
7202
8025
|
occupancy_pct?: number;
|
|
7203
|
-
order_id?: string;
|
|
8026
|
+
order_id?: string | null;
|
|
7204
8027
|
source?: string;
|
|
7205
8028
|
total_layers_used?: number;
|
|
7206
8029
|
updated_at?: string;
|
|
7207
8030
|
};
|
|
7208
8031
|
Relationships: [
|
|
8032
|
+
{
|
|
8033
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
8034
|
+
columns: ["buffer_id"];
|
|
8035
|
+
isOneToOne: false;
|
|
8036
|
+
referencedRelation: "order_buffers";
|
|
8037
|
+
referencedColumns: ["id"];
|
|
8038
|
+
},
|
|
7209
8039
|
{
|
|
7210
8040
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7211
8041
|
columns: ["order_id"];
|
|
@@ -7456,12 +8286,14 @@ export type Database = {
|
|
|
7456
8286
|
};
|
|
7457
8287
|
orders: {
|
|
7458
8288
|
Row: {
|
|
8289
|
+
buffer_id: string | null;
|
|
7459
8290
|
created_at: string;
|
|
7460
8291
|
custom_fields: Json;
|
|
7461
8292
|
customer_id: string | null;
|
|
7462
8293
|
customer_name: string;
|
|
7463
8294
|
deleted_at: string | null;
|
|
7464
8295
|
delivery_date: string | null;
|
|
8296
|
+
floriday_sales_order_id: string | null;
|
|
7465
8297
|
id: string;
|
|
7466
8298
|
is_reservation: boolean;
|
|
7467
8299
|
notes: string | null;
|
|
@@ -7475,12 +8307,14 @@ export type Database = {
|
|
|
7475
8307
|
updated_at: string;
|
|
7476
8308
|
};
|
|
7477
8309
|
Insert: {
|
|
8310
|
+
buffer_id?: string | null;
|
|
7478
8311
|
created_at?: string;
|
|
7479
8312
|
custom_fields?: Json;
|
|
7480
8313
|
customer_id?: string | null;
|
|
7481
8314
|
customer_name?: string;
|
|
7482
8315
|
deleted_at?: string | null;
|
|
7483
8316
|
delivery_date?: string | null;
|
|
8317
|
+
floriday_sales_order_id?: string | null;
|
|
7484
8318
|
id?: string;
|
|
7485
8319
|
is_reservation?: boolean;
|
|
7486
8320
|
notes?: string | null;
|
|
@@ -7494,12 +8328,14 @@ export type Database = {
|
|
|
7494
8328
|
updated_at?: string;
|
|
7495
8329
|
};
|
|
7496
8330
|
Update: {
|
|
8331
|
+
buffer_id?: string | null;
|
|
7497
8332
|
created_at?: string;
|
|
7498
8333
|
custom_fields?: Json;
|
|
7499
8334
|
customer_id?: string | null;
|
|
7500
8335
|
customer_name?: string;
|
|
7501
8336
|
deleted_at?: string | null;
|
|
7502
8337
|
delivery_date?: string | null;
|
|
8338
|
+
floriday_sales_order_id?: string | null;
|
|
7503
8339
|
id?: string;
|
|
7504
8340
|
is_reservation?: boolean;
|
|
7505
8341
|
notes?: string | null;
|
|
@@ -7513,6 +8349,13 @@ export type Database = {
|
|
|
7513
8349
|
updated_at?: string;
|
|
7514
8350
|
};
|
|
7515
8351
|
Relationships: [
|
|
8352
|
+
{
|
|
8353
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8354
|
+
columns: ["buffer_id"];
|
|
8355
|
+
isOneToOne: false;
|
|
8356
|
+
referencedRelation: "order_buffers";
|
|
8357
|
+
referencedColumns: ["id"];
|
|
8358
|
+
},
|
|
7516
8359
|
{
|
|
7517
8360
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7518
8361
|
columns: ["customer_id"];
|
|
@@ -7645,66 +8488,6 @@ export type Database = {
|
|
|
7645
8488
|
};
|
|
7646
8489
|
Relationships: [];
|
|
7647
8490
|
};
|
|
7648
|
-
product_bom_items: {
|
|
7649
|
-
Row: {
|
|
7650
|
-
component_product_id: string | null;
|
|
7651
|
-
component_trade_item_floriday_id: string | null;
|
|
7652
|
-
created_at: string;
|
|
7653
|
-
id: string;
|
|
7654
|
-
notes: string | null;
|
|
7655
|
-
parent_product_id: string | null;
|
|
7656
|
-
parent_trade_item_floriday_id: string | null;
|
|
7657
|
-
quantity: number;
|
|
7658
|
-
sort_order: number;
|
|
7659
|
-
tenant_id: string;
|
|
7660
|
-
unit: string;
|
|
7661
|
-
updated_at: string;
|
|
7662
|
-
};
|
|
7663
|
-
Insert: {
|
|
7664
|
-
component_product_id?: string | null;
|
|
7665
|
-
component_trade_item_floriday_id?: string | null;
|
|
7666
|
-
created_at?: string;
|
|
7667
|
-
id?: string;
|
|
7668
|
-
notes?: string | null;
|
|
7669
|
-
parent_product_id?: string | null;
|
|
7670
|
-
parent_trade_item_floriday_id?: string | null;
|
|
7671
|
-
quantity?: number;
|
|
7672
|
-
sort_order?: number;
|
|
7673
|
-
tenant_id: string;
|
|
7674
|
-
unit?: string;
|
|
7675
|
-
updated_at?: string;
|
|
7676
|
-
};
|
|
7677
|
-
Update: {
|
|
7678
|
-
component_product_id?: string | null;
|
|
7679
|
-
component_trade_item_floriday_id?: string | null;
|
|
7680
|
-
created_at?: string;
|
|
7681
|
-
id?: string;
|
|
7682
|
-
notes?: string | null;
|
|
7683
|
-
parent_product_id?: string | null;
|
|
7684
|
-
parent_trade_item_floriday_id?: string | null;
|
|
7685
|
-
quantity?: number;
|
|
7686
|
-
sort_order?: number;
|
|
7687
|
-
tenant_id?: string;
|
|
7688
|
-
unit?: string;
|
|
7689
|
-
updated_at?: string;
|
|
7690
|
-
};
|
|
7691
|
-
Relationships: [
|
|
7692
|
-
{
|
|
7693
|
-
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
7694
|
-
columns: ["component_product_id"];
|
|
7695
|
-
isOneToOne: false;
|
|
7696
|
-
referencedRelation: "products";
|
|
7697
|
-
referencedColumns: ["id"];
|
|
7698
|
-
},
|
|
7699
|
-
{
|
|
7700
|
-
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
7701
|
-
columns: ["parent_product_id"];
|
|
7702
|
-
isOneToOne: false;
|
|
7703
|
-
referencedRelation: "products";
|
|
7704
|
-
referencedColumns: ["id"];
|
|
7705
|
-
}
|
|
7706
|
-
];
|
|
7707
|
-
};
|
|
7708
8491
|
product_categories: {
|
|
7709
8492
|
Row: {
|
|
7710
8493
|
color: string;
|
|
@@ -7812,7 +8595,6 @@ export type Database = {
|
|
|
7812
8595
|
id: string;
|
|
7813
8596
|
product_group_id: string;
|
|
7814
8597
|
quantity: number;
|
|
7815
|
-
sort_order: number;
|
|
7816
8598
|
trade_item_id: string;
|
|
7817
8599
|
};
|
|
7818
8600
|
Insert: {
|
|
@@ -7820,7 +8602,6 @@ export type Database = {
|
|
|
7820
8602
|
id?: string;
|
|
7821
8603
|
product_group_id: string;
|
|
7822
8604
|
quantity?: number;
|
|
7823
|
-
sort_order?: number;
|
|
7824
8605
|
trade_item_id: string;
|
|
7825
8606
|
};
|
|
7826
8607
|
Update: {
|
|
@@ -7828,7 +8609,6 @@ export type Database = {
|
|
|
7828
8609
|
id?: string;
|
|
7829
8610
|
product_group_id?: string;
|
|
7830
8611
|
quantity?: number;
|
|
7831
|
-
sort_order?: number;
|
|
7832
8612
|
trade_item_id?: string;
|
|
7833
8613
|
};
|
|
7834
8614
|
Relationships: [
|
|
@@ -7836,166 +8616,51 @@ export type Database = {
|
|
|
7836
8616
|
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
7837
8617
|
columns: ["product_group_id"];
|
|
7838
8618
|
isOneToOne: false;
|
|
7839
|
-
referencedRelation: "product_groups";
|
|
7840
|
-
referencedColumns: ["id"];
|
|
7841
|
-
}
|
|
7842
|
-
];
|
|
7843
|
-
};
|
|
7844
|
-
product_groups: {
|
|
7845
|
-
Row: {
|
|
7846
|
-
created_at: string;
|
|
7847
|
-
description: string | null;
|
|
7848
|
-
head_product_id: string | null;
|
|
7849
|
-
head_trade_item_floriday_id: string | null;
|
|
7850
|
-
id: string;
|
|
7851
|
-
is_active: boolean;
|
|
7852
|
-
name: string;
|
|
7853
|
-
tenant_id: string;
|
|
7854
|
-
updated_at: string;
|
|
7855
|
-
};
|
|
7856
|
-
Insert: {
|
|
7857
|
-
created_at?: string;
|
|
7858
|
-
description?: string | null;
|
|
7859
|
-
head_product_id?: string | null;
|
|
7860
|
-
head_trade_item_floriday_id?: string | null;
|
|
7861
|
-
id?: string;
|
|
7862
|
-
is_active?: boolean;
|
|
7863
|
-
name: string;
|
|
7864
|
-
tenant_id: string;
|
|
7865
|
-
updated_at?: string;
|
|
7866
|
-
};
|
|
7867
|
-
Update: {
|
|
7868
|
-
created_at?: string;
|
|
7869
|
-
description?: string | null;
|
|
7870
|
-
head_product_id?: string | null;
|
|
7871
|
-
head_trade_item_floriday_id?: string | null;
|
|
7872
|
-
id?: string;
|
|
7873
|
-
is_active?: boolean;
|
|
7874
|
-
name?: string;
|
|
7875
|
-
tenant_id?: string;
|
|
7876
|
-
updated_at?: string;
|
|
7877
|
-
};
|
|
7878
|
-
Relationships: [
|
|
7879
|
-
{
|
|
7880
|
-
foreignKeyName: "product_groups_head_product_id_fkey";
|
|
7881
|
-
columns: ["head_product_id"];
|
|
7882
|
-
isOneToOne: false;
|
|
7883
|
-
referencedRelation: "products";
|
|
8619
|
+
referencedRelation: "product_groups";
|
|
7884
8620
|
referencedColumns: ["id"];
|
|
7885
8621
|
}
|
|
7886
8622
|
];
|
|
7887
8623
|
};
|
|
7888
|
-
|
|
8624
|
+
product_groups: {
|
|
7889
8625
|
Row: {
|
|
7890
8626
|
created_at: string;
|
|
8627
|
+
description: string | null;
|
|
7891
8628
|
id: string;
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
load_carrier: string | null;
|
|
7895
|
-
package_id: string | null;
|
|
7896
|
-
package_label: string | null;
|
|
7897
|
-
packages_per_layer: number | null;
|
|
7898
|
-
product_id: string | null;
|
|
8629
|
+
is_active: boolean;
|
|
8630
|
+
name: string;
|
|
7899
8631
|
tenant_id: string;
|
|
7900
|
-
trade_item_floriday_id: string | null;
|
|
7901
|
-
units_per_package: number | null;
|
|
7902
8632
|
updated_at: string;
|
|
7903
8633
|
};
|
|
7904
8634
|
Insert: {
|
|
7905
8635
|
created_at?: string;
|
|
8636
|
+
description?: string | null;
|
|
7906
8637
|
id?: string;
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
load_carrier?: string | null;
|
|
7910
|
-
package_id?: string | null;
|
|
7911
|
-
package_label?: string | null;
|
|
7912
|
-
packages_per_layer?: number | null;
|
|
7913
|
-
product_id?: string | null;
|
|
8638
|
+
is_active?: boolean;
|
|
8639
|
+
name: string;
|
|
7914
8640
|
tenant_id: string;
|
|
7915
|
-
trade_item_floriday_id?: string | null;
|
|
7916
|
-
units_per_package?: number | null;
|
|
7917
8641
|
updated_at?: string;
|
|
7918
8642
|
};
|
|
7919
8643
|
Update: {
|
|
7920
8644
|
created_at?: string;
|
|
8645
|
+
description?: string | null;
|
|
7921
8646
|
id?: string;
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
load_carrier?: string | null;
|
|
7925
|
-
package_id?: string | null;
|
|
7926
|
-
package_label?: string | null;
|
|
7927
|
-
packages_per_layer?: number | null;
|
|
7928
|
-
product_id?: string | null;
|
|
8647
|
+
is_active?: boolean;
|
|
8648
|
+
name?: string;
|
|
7929
8649
|
tenant_id?: string;
|
|
7930
|
-
trade_item_floriday_id?: string | null;
|
|
7931
|
-
units_per_package?: number | null;
|
|
7932
8650
|
updated_at?: string;
|
|
7933
8651
|
};
|
|
7934
|
-
Relationships: [
|
|
7935
|
-
{
|
|
7936
|
-
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
7937
|
-
columns: ["package_id"];
|
|
7938
|
-
isOneToOne: false;
|
|
7939
|
-
referencedRelation: "packages";
|
|
7940
|
-
referencedColumns: ["id"];
|
|
7941
|
-
},
|
|
7942
|
-
{
|
|
7943
|
-
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
7944
|
-
columns: ["product_id"];
|
|
7945
|
-
isOneToOne: false;
|
|
7946
|
-
referencedRelation: "products";
|
|
7947
|
-
referencedColumns: ["id"];
|
|
7948
|
-
}
|
|
7949
|
-
];
|
|
7950
|
-
};
|
|
7951
|
-
product_merge_log: {
|
|
7952
|
-
Row: {
|
|
7953
|
-
canonical_product_id: string | null;
|
|
7954
|
-
id: string;
|
|
7955
|
-
merged_at: string;
|
|
7956
|
-
merged_from_id: string;
|
|
7957
|
-
notes: string | null;
|
|
7958
|
-
snapshot: Json;
|
|
7959
|
-
source_table: string;
|
|
7960
|
-
status: string;
|
|
7961
|
-
};
|
|
7962
|
-
Insert: {
|
|
7963
|
-
canonical_product_id?: string | null;
|
|
7964
|
-
id?: string;
|
|
7965
|
-
merged_at?: string;
|
|
7966
|
-
merged_from_id: string;
|
|
7967
|
-
notes?: string | null;
|
|
7968
|
-
snapshot?: Json;
|
|
7969
|
-
source_table: string;
|
|
7970
|
-
status?: string;
|
|
7971
|
-
};
|
|
7972
|
-
Update: {
|
|
7973
|
-
canonical_product_id?: string | null;
|
|
7974
|
-
id?: string;
|
|
7975
|
-
merged_at?: string;
|
|
7976
|
-
merged_from_id?: string;
|
|
7977
|
-
notes?: string | null;
|
|
7978
|
-
snapshot?: Json;
|
|
7979
|
-
source_table?: string;
|
|
7980
|
-
status?: string;
|
|
7981
|
-
};
|
|
7982
8652
|
Relationships: [];
|
|
7983
8653
|
};
|
|
7984
8654
|
products: {
|
|
7985
8655
|
Row: {
|
|
7986
|
-
article_number: string | null;
|
|
7987
8656
|
barcode: string | null;
|
|
7988
8657
|
batch: string;
|
|
7989
8658
|
crates_per_layer: number;
|
|
7990
8659
|
created_at: string;
|
|
7991
8660
|
custom_fields: Json;
|
|
7992
|
-
floriday_active: boolean;
|
|
7993
|
-
floriday_payload: Json;
|
|
7994
|
-
floriday_trade_item_id: string | null;
|
|
7995
8661
|
id: string;
|
|
7996
8662
|
image_url: string | null;
|
|
7997
8663
|
incoming_quantity: number;
|
|
7998
|
-
is_layer: boolean;
|
|
7999
8664
|
layers_per_cart: number;
|
|
8000
8665
|
location: string;
|
|
8001
8666
|
min_quantity: number;
|
|
@@ -8011,19 +8676,14 @@ export type Database = {
|
|
|
8011
8676
|
weight: string | null;
|
|
8012
8677
|
};
|
|
8013
8678
|
Insert: {
|
|
8014
|
-
article_number?: string | null;
|
|
8015
8679
|
barcode?: string | null;
|
|
8016
8680
|
batch: string;
|
|
8017
8681
|
crates_per_layer?: number;
|
|
8018
8682
|
created_at?: string;
|
|
8019
8683
|
custom_fields?: Json;
|
|
8020
|
-
floriday_active?: boolean;
|
|
8021
|
-
floriday_payload?: Json;
|
|
8022
|
-
floriday_trade_item_id?: string | null;
|
|
8023
8684
|
id?: string;
|
|
8024
8685
|
image_url?: string | null;
|
|
8025
8686
|
incoming_quantity?: number;
|
|
8026
|
-
is_layer?: boolean;
|
|
8027
8687
|
layers_per_cart?: number;
|
|
8028
8688
|
location: string;
|
|
8029
8689
|
min_quantity?: number;
|
|
@@ -8039,19 +8699,14 @@ export type Database = {
|
|
|
8039
8699
|
weight?: string | null;
|
|
8040
8700
|
};
|
|
8041
8701
|
Update: {
|
|
8042
|
-
article_number?: string | null;
|
|
8043
8702
|
barcode?: string | null;
|
|
8044
8703
|
batch?: string;
|
|
8045
8704
|
crates_per_layer?: number;
|
|
8046
8705
|
created_at?: string;
|
|
8047
8706
|
custom_fields?: Json;
|
|
8048
|
-
floriday_active?: boolean;
|
|
8049
|
-
floriday_payload?: Json;
|
|
8050
|
-
floriday_trade_item_id?: string | null;
|
|
8051
8707
|
id?: string;
|
|
8052
8708
|
image_url?: string | null;
|
|
8053
8709
|
incoming_quantity?: number;
|
|
8054
|
-
is_layer?: boolean;
|
|
8055
8710
|
layers_per_cart?: number;
|
|
8056
8711
|
location?: string;
|
|
8057
8712
|
min_quantity?: number;
|
|
@@ -8989,10 +9644,8 @@ export type Database = {
|
|
|
8989
9644
|
order_id: string | null;
|
|
8990
9645
|
order_item_id: string | null;
|
|
8991
9646
|
order_source: string | null;
|
|
8992
|
-
parent_trade_item_key: string | null;
|
|
8993
9647
|
physical_after: number | null;
|
|
8994
9648
|
physical_before: number | null;
|
|
8995
|
-
production_batch_id: string | null;
|
|
8996
9649
|
qty_delta: number;
|
|
8997
9650
|
reason: string | null;
|
|
8998
9651
|
reserved_after: number | null;
|
|
@@ -9008,10 +9661,8 @@ export type Database = {
|
|
|
9008
9661
|
order_id?: string | null;
|
|
9009
9662
|
order_item_id?: string | null;
|
|
9010
9663
|
order_source?: string | null;
|
|
9011
|
-
parent_trade_item_key?: string | null;
|
|
9012
9664
|
physical_after?: number | null;
|
|
9013
9665
|
physical_before?: number | null;
|
|
9014
|
-
production_batch_id?: string | null;
|
|
9015
9666
|
qty_delta: number;
|
|
9016
9667
|
reason?: string | null;
|
|
9017
9668
|
reserved_after?: number | null;
|
|
@@ -9027,10 +9678,8 @@ export type Database = {
|
|
|
9027
9678
|
order_id?: string | null;
|
|
9028
9679
|
order_item_id?: string | null;
|
|
9029
9680
|
order_source?: string | null;
|
|
9030
|
-
parent_trade_item_key?: string | null;
|
|
9031
9681
|
physical_after?: number | null;
|
|
9032
9682
|
physical_before?: number | null;
|
|
9033
|
-
production_batch_id?: string | null;
|
|
9034
9683
|
qty_delta?: number;
|
|
9035
9684
|
reason?: string | null;
|
|
9036
9685
|
reserved_after?: number | null;
|
|
@@ -9134,6 +9783,27 @@ export type Database = {
|
|
|
9134
9783
|
};
|
|
9135
9784
|
Relationships: [];
|
|
9136
9785
|
};
|
|
9786
|
+
technician_rates: {
|
|
9787
|
+
Row: {
|
|
9788
|
+
created_at: string;
|
|
9789
|
+
hourly_rate_cents: number;
|
|
9790
|
+
updated_at: string;
|
|
9791
|
+
user_id: string;
|
|
9792
|
+
};
|
|
9793
|
+
Insert: {
|
|
9794
|
+
created_at?: string;
|
|
9795
|
+
hourly_rate_cents?: number;
|
|
9796
|
+
updated_at?: string;
|
|
9797
|
+
user_id: string;
|
|
9798
|
+
};
|
|
9799
|
+
Update: {
|
|
9800
|
+
created_at?: string;
|
|
9801
|
+
hourly_rate_cents?: number;
|
|
9802
|
+
updated_at?: string;
|
|
9803
|
+
user_id?: string;
|
|
9804
|
+
};
|
|
9805
|
+
Relationships: [];
|
|
9806
|
+
};
|
|
9137
9807
|
tenants: {
|
|
9138
9808
|
Row: {
|
|
9139
9809
|
created_at: string;
|
|
@@ -9499,7 +10169,7 @@ export type Database = {
|
|
|
9499
10169
|
twinfield_connections: {
|
|
9500
10170
|
Row: {
|
|
9501
10171
|
access_token: string | null;
|
|
9502
|
-
client_id: string
|
|
10172
|
+
client_id: string;
|
|
9503
10173
|
client_secret: string | null;
|
|
9504
10174
|
cluster_uri: string | null;
|
|
9505
10175
|
company_code: string | null;
|
|
@@ -9511,7 +10181,7 @@ export type Database = {
|
|
|
9511
10181
|
is_active: boolean;
|
|
9512
10182
|
label: string | null;
|
|
9513
10183
|
office_code: string | null;
|
|
9514
|
-
redirect_uri: string
|
|
10184
|
+
redirect_uri: string;
|
|
9515
10185
|
refresh_token: string | null;
|
|
9516
10186
|
token_expires_at: string | null;
|
|
9517
10187
|
updated_at: string;
|
|
@@ -9519,7 +10189,7 @@ export type Database = {
|
|
|
9519
10189
|
};
|
|
9520
10190
|
Insert: {
|
|
9521
10191
|
access_token?: string | null;
|
|
9522
|
-
client_id
|
|
10192
|
+
client_id: string;
|
|
9523
10193
|
client_secret?: string | null;
|
|
9524
10194
|
cluster_uri?: string | null;
|
|
9525
10195
|
company_code?: string | null;
|
|
@@ -9531,7 +10201,7 @@ export type Database = {
|
|
|
9531
10201
|
is_active?: boolean;
|
|
9532
10202
|
label?: string | null;
|
|
9533
10203
|
office_code?: string | null;
|
|
9534
|
-
redirect_uri
|
|
10204
|
+
redirect_uri: string;
|
|
9535
10205
|
refresh_token?: string | null;
|
|
9536
10206
|
token_expires_at?: string | null;
|
|
9537
10207
|
updated_at?: string;
|
|
@@ -9539,7 +10209,7 @@ export type Database = {
|
|
|
9539
10209
|
};
|
|
9540
10210
|
Update: {
|
|
9541
10211
|
access_token?: string | null;
|
|
9542
|
-
client_id?: string
|
|
10212
|
+
client_id?: string;
|
|
9543
10213
|
client_secret?: string | null;
|
|
9544
10214
|
cluster_uri?: string | null;
|
|
9545
10215
|
company_code?: string | null;
|
|
@@ -9551,7 +10221,7 @@ export type Database = {
|
|
|
9551
10221
|
is_active?: boolean;
|
|
9552
10222
|
label?: string | null;
|
|
9553
10223
|
office_code?: string | null;
|
|
9554
|
-
redirect_uri?: string
|
|
10224
|
+
redirect_uri?: string;
|
|
9555
10225
|
refresh_token?: string | null;
|
|
9556
10226
|
token_expires_at?: string | null;
|
|
9557
10227
|
updated_at?: string;
|
|
@@ -9611,6 +10281,7 @@ export type Database = {
|
|
|
9611
10281
|
country: string | null;
|
|
9612
10282
|
created_at: string;
|
|
9613
10283
|
email: string | null;
|
|
10284
|
+
external_group_key: string | null;
|
|
9614
10285
|
id: string;
|
|
9615
10286
|
last_synced_at: string | null;
|
|
9616
10287
|
name: string;
|
|
@@ -9629,6 +10300,7 @@ export type Database = {
|
|
|
9629
10300
|
country?: string | null;
|
|
9630
10301
|
created_at?: string;
|
|
9631
10302
|
email?: string | null;
|
|
10303
|
+
external_group_key?: string | null;
|
|
9632
10304
|
id?: string;
|
|
9633
10305
|
last_synced_at?: string | null;
|
|
9634
10306
|
name: string;
|
|
@@ -9647,6 +10319,7 @@ export type Database = {
|
|
|
9647
10319
|
country?: string | null;
|
|
9648
10320
|
created_at?: string;
|
|
9649
10321
|
email?: string | null;
|
|
10322
|
+
external_group_key?: string | null;
|
|
9650
10323
|
id?: string;
|
|
9651
10324
|
last_synced_at?: string | null;
|
|
9652
10325
|
name?: string;
|
|
@@ -9817,6 +10490,8 @@ export type Database = {
|
|
|
9817
10490
|
twinfield_invoice_settings: {
|
|
9818
10491
|
Row: {
|
|
9819
10492
|
created_at: string;
|
|
10493
|
+
debtor_gl_account: string;
|
|
10494
|
+
default_credit_invoice_type: string | null;
|
|
9820
10495
|
default_gl_account: string;
|
|
9821
10496
|
default_invoice_type: string;
|
|
9822
10497
|
default_payment_term_days: number;
|
|
@@ -9825,11 +10500,15 @@ export type Database = {
|
|
|
9825
10500
|
invoice_enabled_fo: boolean;
|
|
9826
10501
|
invoice_enabled_ho: boolean;
|
|
9827
10502
|
invoice_enabled_mo: boolean;
|
|
10503
|
+
payment_gl_account: string;
|
|
10504
|
+
payment_journal_code: string;
|
|
9828
10505
|
updated_at: string;
|
|
9829
10506
|
user_id: string;
|
|
9830
10507
|
};
|
|
9831
10508
|
Insert: {
|
|
9832
10509
|
created_at?: string;
|
|
10510
|
+
debtor_gl_account?: string;
|
|
10511
|
+
default_credit_invoice_type?: string | null;
|
|
9833
10512
|
default_gl_account?: string;
|
|
9834
10513
|
default_invoice_type?: string;
|
|
9835
10514
|
default_payment_term_days?: number;
|
|
@@ -9838,11 +10517,15 @@ export type Database = {
|
|
|
9838
10517
|
invoice_enabled_fo?: boolean;
|
|
9839
10518
|
invoice_enabled_ho?: boolean;
|
|
9840
10519
|
invoice_enabled_mo?: boolean;
|
|
10520
|
+
payment_gl_account?: string;
|
|
10521
|
+
payment_journal_code?: string;
|
|
9841
10522
|
updated_at?: string;
|
|
9842
10523
|
user_id: string;
|
|
9843
10524
|
};
|
|
9844
10525
|
Update: {
|
|
9845
10526
|
created_at?: string;
|
|
10527
|
+
debtor_gl_account?: string;
|
|
10528
|
+
default_credit_invoice_type?: string | null;
|
|
9846
10529
|
default_gl_account?: string;
|
|
9847
10530
|
default_invoice_type?: string;
|
|
9848
10531
|
default_payment_term_days?: number;
|
|
@@ -9851,6 +10534,8 @@ export type Database = {
|
|
|
9851
10534
|
invoice_enabled_fo?: boolean;
|
|
9852
10535
|
invoice_enabled_ho?: boolean;
|
|
9853
10536
|
invoice_enabled_mo?: boolean;
|
|
10537
|
+
payment_gl_account?: string;
|
|
10538
|
+
payment_journal_code?: string;
|
|
9854
10539
|
updated_at?: string;
|
|
9855
10540
|
user_id?: string;
|
|
9856
10541
|
};
|
|
@@ -10073,43 +10758,49 @@ export type Database = {
|
|
|
10073
10758
|
};
|
|
10074
10759
|
twinfield_push_queue: {
|
|
10075
10760
|
Row: {
|
|
10761
|
+
action: string;
|
|
10076
10762
|
attempts: number;
|
|
10077
10763
|
connection_id: string;
|
|
10078
10764
|
created_at: string;
|
|
10765
|
+
customer_id: string | null;
|
|
10079
10766
|
external_id: string | null;
|
|
10080
10767
|
id: string;
|
|
10081
10768
|
idempotency_key: string;
|
|
10082
10769
|
last_error: string | null;
|
|
10083
10770
|
next_attempt_at: string;
|
|
10084
|
-
office_code: string;
|
|
10771
|
+
office_code: string | null;
|
|
10085
10772
|
payload: Json;
|
|
10086
10773
|
status: string;
|
|
10087
10774
|
updated_at: string;
|
|
10088
10775
|
};
|
|
10089
10776
|
Insert: {
|
|
10777
|
+
action?: string;
|
|
10090
10778
|
attempts?: number;
|
|
10091
10779
|
connection_id: string;
|
|
10092
10780
|
created_at?: string;
|
|
10781
|
+
customer_id?: string | null;
|
|
10093
10782
|
external_id?: string | null;
|
|
10094
10783
|
id?: string;
|
|
10095
10784
|
idempotency_key: string;
|
|
10096
10785
|
last_error?: string | null;
|
|
10097
10786
|
next_attempt_at?: string;
|
|
10098
|
-
office_code
|
|
10787
|
+
office_code?: string | null;
|
|
10099
10788
|
payload: Json;
|
|
10100
10789
|
status?: string;
|
|
10101
10790
|
updated_at?: string;
|
|
10102
10791
|
};
|
|
10103
10792
|
Update: {
|
|
10793
|
+
action?: string;
|
|
10104
10794
|
attempts?: number;
|
|
10105
10795
|
connection_id?: string;
|
|
10106
10796
|
created_at?: string;
|
|
10797
|
+
customer_id?: string | null;
|
|
10107
10798
|
external_id?: string | null;
|
|
10108
10799
|
id?: string;
|
|
10109
10800
|
idempotency_key?: string;
|
|
10110
10801
|
last_error?: string | null;
|
|
10111
10802
|
next_attempt_at?: string;
|
|
10112
|
-
office_code?: string;
|
|
10803
|
+
office_code?: string | null;
|
|
10113
10804
|
payload?: Json;
|
|
10114
10805
|
status?: string;
|
|
10115
10806
|
updated_at?: string;
|
|
@@ -10121,6 +10812,13 @@ export type Database = {
|
|
|
10121
10812
|
isOneToOne: false;
|
|
10122
10813
|
referencedRelation: "twinfield_connections";
|
|
10123
10814
|
referencedColumns: ["id"];
|
|
10815
|
+
},
|
|
10816
|
+
{
|
|
10817
|
+
foreignKeyName: "twinfield_push_queue_customer_id_fkey";
|
|
10818
|
+
columns: ["customer_id"];
|
|
10819
|
+
isOneToOne: false;
|
|
10820
|
+
referencedRelation: "customers";
|
|
10821
|
+
referencedColumns: ["id"];
|
|
10124
10822
|
}
|
|
10125
10823
|
];
|
|
10126
10824
|
};
|
|
@@ -10336,72 +11034,328 @@ export type Database = {
|
|
|
10336
11034
|
size_bytes?: number | null;
|
|
10337
11035
|
};
|
|
10338
11036
|
Update: {
|
|
10339
|
-
action?: string;
|
|
10340
|
-
attempt_number?: number;
|
|
10341
|
-
caller?: string;
|
|
10342
|
-
client_user_id?: string | null;
|
|
10343
|
-
content_type?: string | null;
|
|
11037
|
+
action?: string;
|
|
11038
|
+
attempt_number?: number;
|
|
11039
|
+
caller?: string;
|
|
11040
|
+
client_user_id?: string | null;
|
|
11041
|
+
content_type?: string | null;
|
|
11042
|
+
created_at?: string;
|
|
11043
|
+
environment?: string;
|
|
11044
|
+
error_message?: string | null;
|
|
11045
|
+
filename?: string | null;
|
|
11046
|
+
id?: string;
|
|
11047
|
+
idempotency_key?: string | null;
|
|
11048
|
+
module?: string;
|
|
11049
|
+
path?: string;
|
|
11050
|
+
reference_id?: string | null;
|
|
11051
|
+
request_body_hash?: string | null;
|
|
11052
|
+
request_timestamp?: number | null;
|
|
11053
|
+
response_content_type?: string | null;
|
|
11054
|
+
response_status?: number | null;
|
|
11055
|
+
size_bytes?: number | null;
|
|
11056
|
+
};
|
|
11057
|
+
Relationships: [];
|
|
11058
|
+
};
|
|
11059
|
+
voorraad_publish_attempts: {
|
|
11060
|
+
Row: {
|
|
11061
|
+
action: string;
|
|
11062
|
+
connection_id: string | null;
|
|
11063
|
+
created_at: string;
|
|
11064
|
+
error: string | null;
|
|
11065
|
+
gateway_attempt_id: string | null;
|
|
11066
|
+
gateway_status: number | null;
|
|
11067
|
+
id: string;
|
|
11068
|
+
intent: string;
|
|
11069
|
+
ok: boolean;
|
|
11070
|
+
request_summary: Json | null;
|
|
11071
|
+
trade_item_id: string | null;
|
|
11072
|
+
user_id: string;
|
|
11073
|
+
};
|
|
11074
|
+
Insert: {
|
|
11075
|
+
action: string;
|
|
11076
|
+
connection_id?: string | null;
|
|
11077
|
+
created_at?: string;
|
|
11078
|
+
error?: string | null;
|
|
11079
|
+
gateway_attempt_id?: string | null;
|
|
11080
|
+
gateway_status?: number | null;
|
|
11081
|
+
id?: string;
|
|
11082
|
+
intent: string;
|
|
11083
|
+
ok: boolean;
|
|
11084
|
+
request_summary?: Json | null;
|
|
11085
|
+
trade_item_id?: string | null;
|
|
11086
|
+
user_id: string;
|
|
11087
|
+
};
|
|
11088
|
+
Update: {
|
|
11089
|
+
action?: string;
|
|
11090
|
+
connection_id?: string | null;
|
|
11091
|
+
created_at?: string;
|
|
11092
|
+
error?: string | null;
|
|
11093
|
+
gateway_attempt_id?: string | null;
|
|
11094
|
+
gateway_status?: number | null;
|
|
11095
|
+
id?: string;
|
|
11096
|
+
intent?: string;
|
|
11097
|
+
ok?: boolean;
|
|
11098
|
+
request_summary?: Json | null;
|
|
11099
|
+
trade_item_id?: string | null;
|
|
11100
|
+
user_id?: string;
|
|
11101
|
+
};
|
|
11102
|
+
Relationships: [];
|
|
11103
|
+
};
|
|
11104
|
+
werkbon_package_lines: {
|
|
11105
|
+
Row: {
|
|
11106
|
+
created_at: string;
|
|
11107
|
+
created_by: string | null;
|
|
11108
|
+
id: string;
|
|
11109
|
+
package_id: string;
|
|
11110
|
+
quantity: number;
|
|
11111
|
+
unit_price_cents_snapshot: number;
|
|
11112
|
+
werkbon_id: string;
|
|
11113
|
+
};
|
|
11114
|
+
Insert: {
|
|
11115
|
+
created_at?: string;
|
|
11116
|
+
created_by?: string | null;
|
|
11117
|
+
id?: string;
|
|
11118
|
+
package_id: string;
|
|
11119
|
+
quantity?: number;
|
|
11120
|
+
unit_price_cents_snapshot?: number;
|
|
11121
|
+
werkbon_id: string;
|
|
11122
|
+
};
|
|
11123
|
+
Update: {
|
|
11124
|
+
created_at?: string;
|
|
11125
|
+
created_by?: string | null;
|
|
11126
|
+
id?: string;
|
|
11127
|
+
package_id?: string;
|
|
11128
|
+
quantity?: number;
|
|
11129
|
+
unit_price_cents_snapshot?: number;
|
|
11130
|
+
werkbon_id?: string;
|
|
11131
|
+
};
|
|
11132
|
+
Relationships: [
|
|
11133
|
+
{
|
|
11134
|
+
foreignKeyName: "werkbon_package_lines_package_id_fkey";
|
|
11135
|
+
columns: ["package_id"];
|
|
11136
|
+
isOneToOne: false;
|
|
11137
|
+
referencedRelation: "werkbon_packages";
|
|
11138
|
+
referencedColumns: ["id"];
|
|
11139
|
+
},
|
|
11140
|
+
{
|
|
11141
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
11142
|
+
columns: ["werkbon_id"];
|
|
11143
|
+
isOneToOne: false;
|
|
11144
|
+
referencedRelation: "werkbonnen";
|
|
11145
|
+
referencedColumns: ["id"];
|
|
11146
|
+
}
|
|
11147
|
+
];
|
|
11148
|
+
};
|
|
11149
|
+
werkbon_packages: {
|
|
11150
|
+
Row: {
|
|
11151
|
+
active: boolean;
|
|
11152
|
+
code: string;
|
|
11153
|
+
created_at: string;
|
|
11154
|
+
default_quantity: number;
|
|
11155
|
+
description: string | null;
|
|
11156
|
+
id: string;
|
|
11157
|
+
name: string;
|
|
11158
|
+
unit_price_cents: number;
|
|
11159
|
+
updated_at: string;
|
|
11160
|
+
};
|
|
11161
|
+
Insert: {
|
|
11162
|
+
active?: boolean;
|
|
11163
|
+
code: string;
|
|
11164
|
+
created_at?: string;
|
|
11165
|
+
default_quantity?: number;
|
|
11166
|
+
description?: string | null;
|
|
11167
|
+
id?: string;
|
|
11168
|
+
name: string;
|
|
11169
|
+
unit_price_cents?: number;
|
|
11170
|
+
updated_at?: string;
|
|
11171
|
+
};
|
|
11172
|
+
Update: {
|
|
11173
|
+
active?: boolean;
|
|
11174
|
+
code?: string;
|
|
11175
|
+
created_at?: string;
|
|
11176
|
+
default_quantity?: number;
|
|
11177
|
+
description?: string | null;
|
|
11178
|
+
id?: string;
|
|
11179
|
+
name?: string;
|
|
11180
|
+
unit_price_cents?: number;
|
|
11181
|
+
updated_at?: string;
|
|
11182
|
+
};
|
|
11183
|
+
Relationships: [];
|
|
11184
|
+
};
|
|
11185
|
+
werkbon_photos: {
|
|
11186
|
+
Row: {
|
|
11187
|
+
created_at: string;
|
|
11188
|
+
id: string;
|
|
11189
|
+
storage_path: string;
|
|
11190
|
+
user_id: string;
|
|
11191
|
+
werkbon_id: string;
|
|
11192
|
+
};
|
|
11193
|
+
Insert: {
|
|
11194
|
+
created_at?: string;
|
|
11195
|
+
id?: string;
|
|
11196
|
+
storage_path: string;
|
|
11197
|
+
user_id: string;
|
|
11198
|
+
werkbon_id: string;
|
|
11199
|
+
};
|
|
11200
|
+
Update: {
|
|
11201
|
+
created_at?: string;
|
|
11202
|
+
id?: string;
|
|
11203
|
+
storage_path?: string;
|
|
11204
|
+
user_id?: string;
|
|
11205
|
+
werkbon_id?: string;
|
|
11206
|
+
};
|
|
11207
|
+
Relationships: [
|
|
11208
|
+
{
|
|
11209
|
+
foreignKeyName: "werkbon_photos_werkbon_id_fkey";
|
|
11210
|
+
columns: ["werkbon_id"];
|
|
11211
|
+
isOneToOne: false;
|
|
11212
|
+
referencedRelation: "werkbonnen";
|
|
11213
|
+
referencedColumns: ["id"];
|
|
11214
|
+
}
|
|
11215
|
+
];
|
|
11216
|
+
};
|
|
11217
|
+
werkbon_time_logs: {
|
|
11218
|
+
Row: {
|
|
11219
|
+
activity: string;
|
|
11220
|
+
created_at: string;
|
|
11221
|
+
ended_at: string | null;
|
|
11222
|
+
id: string;
|
|
11223
|
+
started_at: string;
|
|
11224
|
+
user_id: string;
|
|
11225
|
+
werkbon_id: string;
|
|
11226
|
+
};
|
|
11227
|
+
Insert: {
|
|
11228
|
+
activity: string;
|
|
11229
|
+
created_at?: string;
|
|
11230
|
+
ended_at?: string | null;
|
|
11231
|
+
id?: string;
|
|
11232
|
+
started_at?: string;
|
|
11233
|
+
user_id: string;
|
|
11234
|
+
werkbon_id: string;
|
|
11235
|
+
};
|
|
11236
|
+
Update: {
|
|
11237
|
+
activity?: string;
|
|
10344
11238
|
created_at?: string;
|
|
10345
|
-
|
|
10346
|
-
error_message?: string | null;
|
|
10347
|
-
filename?: string | null;
|
|
11239
|
+
ended_at?: string | null;
|
|
10348
11240
|
id?: string;
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
reference_id?: string | null;
|
|
10353
|
-
request_body_hash?: string | null;
|
|
10354
|
-
request_timestamp?: number | null;
|
|
10355
|
-
response_content_type?: string | null;
|
|
10356
|
-
response_status?: number | null;
|
|
10357
|
-
size_bytes?: number | null;
|
|
11241
|
+
started_at?: string;
|
|
11242
|
+
user_id?: string;
|
|
11243
|
+
werkbon_id?: string;
|
|
10358
11244
|
};
|
|
10359
|
-
Relationships: [
|
|
11245
|
+
Relationships: [
|
|
11246
|
+
{
|
|
11247
|
+
foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
|
|
11248
|
+
columns: ["werkbon_id"];
|
|
11249
|
+
isOneToOne: false;
|
|
11250
|
+
referencedRelation: "werkbonnen";
|
|
11251
|
+
referencedColumns: ["id"];
|
|
11252
|
+
}
|
|
11253
|
+
];
|
|
10360
11254
|
};
|
|
10361
|
-
|
|
11255
|
+
werkbonnen: {
|
|
10362
11256
|
Row: {
|
|
10363
|
-
|
|
10364
|
-
|
|
11257
|
+
assigned_user_id: string | null;
|
|
11258
|
+
budget_mandate_cents: number;
|
|
11259
|
+
complaint_description: string | null;
|
|
10365
11260
|
created_at: string;
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
11261
|
+
created_by: string | null;
|
|
11262
|
+
customer_id: string | null;
|
|
11263
|
+
externe_referentie: string | null;
|
|
11264
|
+
first_time_fix: boolean | null;
|
|
10369
11265
|
id: string;
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
11266
|
+
internal_notes: string | null;
|
|
11267
|
+
parent_werkbon_id: string | null;
|
|
11268
|
+
parsed_payload: Json | null;
|
|
11269
|
+
planning_status: string;
|
|
11270
|
+
project_number: string | null;
|
|
11271
|
+
room_number: string | null;
|
|
11272
|
+
scheduled_end_time: string | null;
|
|
11273
|
+
scheduled_start_time: string | null;
|
|
11274
|
+
sequence_number: number;
|
|
11275
|
+
source_pdf_path: string | null;
|
|
11276
|
+
status: string;
|
|
11277
|
+
technician_id: string | null;
|
|
11278
|
+
technician_notes: string | null;
|
|
11279
|
+
technician_notes_raw: string | null;
|
|
11280
|
+
technician_task_description: string | null;
|
|
11281
|
+
updated_at: string;
|
|
11282
|
+
version: number;
|
|
11283
|
+
work_address: string | null;
|
|
10375
11284
|
};
|
|
10376
11285
|
Insert: {
|
|
10377
|
-
|
|
10378
|
-
|
|
11286
|
+
assigned_user_id?: string | null;
|
|
11287
|
+
budget_mandate_cents?: number;
|
|
11288
|
+
complaint_description?: string | null;
|
|
10379
11289
|
created_at?: string;
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
11290
|
+
created_by?: string | null;
|
|
11291
|
+
customer_id?: string | null;
|
|
11292
|
+
externe_referentie?: string | null;
|
|
11293
|
+
first_time_fix?: boolean | null;
|
|
10383
11294
|
id?: string;
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
11295
|
+
internal_notes?: string | null;
|
|
11296
|
+
parent_werkbon_id?: string | null;
|
|
11297
|
+
parsed_payload?: Json | null;
|
|
11298
|
+
planning_status?: string;
|
|
11299
|
+
project_number?: string | null;
|
|
11300
|
+
room_number?: string | null;
|
|
11301
|
+
scheduled_end_time?: string | null;
|
|
11302
|
+
scheduled_start_time?: string | null;
|
|
11303
|
+
sequence_number: number;
|
|
11304
|
+
source_pdf_path?: string | null;
|
|
11305
|
+
status?: string;
|
|
11306
|
+
technician_id?: string | null;
|
|
11307
|
+
technician_notes?: string | null;
|
|
11308
|
+
technician_notes_raw?: string | null;
|
|
11309
|
+
technician_task_description?: string | null;
|
|
11310
|
+
updated_at?: string;
|
|
11311
|
+
version?: number;
|
|
11312
|
+
work_address?: string | null;
|
|
10389
11313
|
};
|
|
10390
11314
|
Update: {
|
|
10391
|
-
|
|
10392
|
-
|
|
11315
|
+
assigned_user_id?: string | null;
|
|
11316
|
+
budget_mandate_cents?: number;
|
|
11317
|
+
complaint_description?: string | null;
|
|
10393
11318
|
created_at?: string;
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
11319
|
+
created_by?: string | null;
|
|
11320
|
+
customer_id?: string | null;
|
|
11321
|
+
externe_referentie?: string | null;
|
|
11322
|
+
first_time_fix?: boolean | null;
|
|
10397
11323
|
id?: string;
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
11324
|
+
internal_notes?: string | null;
|
|
11325
|
+
parent_werkbon_id?: string | null;
|
|
11326
|
+
parsed_payload?: Json | null;
|
|
11327
|
+
planning_status?: string;
|
|
11328
|
+
project_number?: string | null;
|
|
11329
|
+
room_number?: string | null;
|
|
11330
|
+
scheduled_end_time?: string | null;
|
|
11331
|
+
scheduled_start_time?: string | null;
|
|
11332
|
+
sequence_number?: number;
|
|
11333
|
+
source_pdf_path?: string | null;
|
|
11334
|
+
status?: string;
|
|
11335
|
+
technician_id?: string | null;
|
|
11336
|
+
technician_notes?: string | null;
|
|
11337
|
+
technician_notes_raw?: string | null;
|
|
11338
|
+
technician_task_description?: string | null;
|
|
11339
|
+
updated_at?: string;
|
|
11340
|
+
version?: number;
|
|
11341
|
+
work_address?: string | null;
|
|
10403
11342
|
};
|
|
10404
|
-
Relationships: [
|
|
11343
|
+
Relationships: [
|
|
11344
|
+
{
|
|
11345
|
+
foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
|
|
11346
|
+
columns: ["parent_werkbon_id"];
|
|
11347
|
+
isOneToOne: false;
|
|
11348
|
+
referencedRelation: "werkbonnen";
|
|
11349
|
+
referencedColumns: ["id"];
|
|
11350
|
+
},
|
|
11351
|
+
{
|
|
11352
|
+
foreignKeyName: "werkbonnen_technician_id_fkey";
|
|
11353
|
+
columns: ["technician_id"];
|
|
11354
|
+
isOneToOne: false;
|
|
11355
|
+
referencedRelation: "monteurs";
|
|
11356
|
+
referencedColumns: ["id"];
|
|
11357
|
+
}
|
|
11358
|
+
];
|
|
10405
11359
|
};
|
|
10406
11360
|
work_order_monteurs: {
|
|
10407
11361
|
Row: {
|
|
@@ -10579,6 +11533,8 @@ export type Database = {
|
|
|
10579
11533
|
created_at: string | null;
|
|
10580
11534
|
created_by: string | null;
|
|
10581
11535
|
display_name: string | null;
|
|
11536
|
+
graph_subscription_expires_at: string | null;
|
|
11537
|
+
graph_subscription_id: string | null;
|
|
10582
11538
|
has_access_token: boolean | null;
|
|
10583
11539
|
has_client_id: boolean | null;
|
|
10584
11540
|
has_client_secret: boolean | null;
|
|
@@ -10596,6 +11552,7 @@ export type Database = {
|
|
|
10596
11552
|
oauth_mode: string | null;
|
|
10597
11553
|
provider: string | null;
|
|
10598
11554
|
purpose_assignments: Json | null;
|
|
11555
|
+
realtime_mode: string | null;
|
|
10599
11556
|
scopes: string[] | null;
|
|
10600
11557
|
smtp_host: string | null;
|
|
10601
11558
|
smtp_port: number | null;
|
|
@@ -10610,6 +11567,8 @@ export type Database = {
|
|
|
10610
11567
|
created_at?: string | null;
|
|
10611
11568
|
created_by?: string | null;
|
|
10612
11569
|
display_name?: string | null;
|
|
11570
|
+
graph_subscription_expires_at?: string | null;
|
|
11571
|
+
graph_subscription_id?: string | null;
|
|
10613
11572
|
has_access_token?: never;
|
|
10614
11573
|
has_client_id?: never;
|
|
10615
11574
|
has_client_secret?: never;
|
|
@@ -10627,6 +11586,7 @@ export type Database = {
|
|
|
10627
11586
|
oauth_mode?: string | null;
|
|
10628
11587
|
provider?: string | null;
|
|
10629
11588
|
purpose_assignments?: Json | null;
|
|
11589
|
+
realtime_mode?: string | null;
|
|
10630
11590
|
scopes?: string[] | null;
|
|
10631
11591
|
smtp_host?: string | null;
|
|
10632
11592
|
smtp_port?: number | null;
|
|
@@ -10641,6 +11601,8 @@ export type Database = {
|
|
|
10641
11601
|
created_at?: string | null;
|
|
10642
11602
|
created_by?: string | null;
|
|
10643
11603
|
display_name?: string | null;
|
|
11604
|
+
graph_subscription_expires_at?: string | null;
|
|
11605
|
+
graph_subscription_id?: string | null;
|
|
10644
11606
|
has_access_token?: never;
|
|
10645
11607
|
has_client_id?: never;
|
|
10646
11608
|
has_client_secret?: never;
|
|
@@ -10658,6 +11620,7 @@ export type Database = {
|
|
|
10658
11620
|
oauth_mode?: string | null;
|
|
10659
11621
|
provider?: string | null;
|
|
10660
11622
|
purpose_assignments?: Json | null;
|
|
11623
|
+
realtime_mode?: string | null;
|
|
10661
11624
|
scopes?: string[] | null;
|
|
10662
11625
|
smtp_host?: string | null;
|
|
10663
11626
|
smtp_port?: number | null;
|
|
@@ -10768,6 +11731,25 @@ export type Database = {
|
|
|
10768
11731
|
};
|
|
10769
11732
|
Relationships: [];
|
|
10770
11733
|
};
|
|
11734
|
+
floriday_customer_discounts: {
|
|
11735
|
+
Row: {
|
|
11736
|
+
base_price: number | null;
|
|
11737
|
+
buyer_organization_id: string | null;
|
|
11738
|
+
currency: string | null;
|
|
11739
|
+
discount_type: string | null;
|
|
11740
|
+
discount_value: number | null;
|
|
11741
|
+
min_quantity: number | null;
|
|
11742
|
+
net_price: number | null;
|
|
11743
|
+
product_group_id: string | null;
|
|
11744
|
+
raw: Json | null;
|
|
11745
|
+
source: string | null;
|
|
11746
|
+
source_id: string | null;
|
|
11747
|
+
trade_item_id: string | null;
|
|
11748
|
+
valid_from: string | null;
|
|
11749
|
+
valid_until: string | null;
|
|
11750
|
+
};
|
|
11751
|
+
Relationships: [];
|
|
11752
|
+
};
|
|
10771
11753
|
local_customer_discounts: {
|
|
10772
11754
|
Row: {
|
|
10773
11755
|
base_price: number | null;
|
|
@@ -11083,13 +12065,6 @@ export type Database = {
|
|
|
11083
12065
|
};
|
|
11084
12066
|
Returns: number;
|
|
11085
12067
|
};
|
|
11086
|
-
_migrate_rewrite_stock_key: {
|
|
11087
|
-
Args: {
|
|
11088
|
-
_from_key: string;
|
|
11089
|
-
_to_key: string;
|
|
11090
|
-
};
|
|
11091
|
-
Returns: undefined;
|
|
11092
|
-
};
|
|
11093
12068
|
afh_city_code: {
|
|
11094
12069
|
Args: {
|
|
11095
12070
|
_city: string;
|
|
@@ -11201,31 +12176,36 @@ export type Database = {
|
|
|
11201
12176
|
};
|
|
11202
12177
|
Returns: Json;
|
|
11203
12178
|
};
|
|
11204
|
-
|
|
11205
|
-
Args: never;
|
|
11206
|
-
Returns: undefined;
|
|
11207
|
-
};
|
|
11208
|
-
consume_bom_for_production: {
|
|
12179
|
+
claim_twinfield_push_batch: {
|
|
11209
12180
|
Args: {
|
|
11210
|
-
|
|
11211
|
-
p_parent_id: string;
|
|
11212
|
-
p_parent_key: string;
|
|
11213
|
-
p_parent_kind: string;
|
|
11214
|
-
p_quantity: number;
|
|
11215
|
-
p_user_id: string;
|
|
12181
|
+
_limit?: number;
|
|
11216
12182
|
};
|
|
11217
|
-
Returns:
|
|
11218
|
-
|
|
11219
|
-
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
12183
|
+
Returns: {
|
|
12184
|
+
action: string;
|
|
12185
|
+
attempts: number;
|
|
12186
|
+
connection_id: string;
|
|
12187
|
+
created_at: string;
|
|
12188
|
+
customer_id: string | null;
|
|
12189
|
+
external_id: string | null;
|
|
12190
|
+
id: string;
|
|
12191
|
+
idempotency_key: string;
|
|
12192
|
+
last_error: string | null;
|
|
12193
|
+
next_attempt_at: string;
|
|
12194
|
+
office_code: string | null;
|
|
12195
|
+
payload: Json;
|
|
12196
|
+
status: string;
|
|
12197
|
+
updated_at: string;
|
|
12198
|
+
}[];
|
|
12199
|
+
SetofOptions: {
|
|
12200
|
+
from: "*";
|
|
12201
|
+
to: "twinfield_push_queue";
|
|
12202
|
+
isOneToOne: false;
|
|
12203
|
+
isSetofReturn: true;
|
|
11227
12204
|
};
|
|
11228
|
-
|
|
12205
|
+
};
|
|
12206
|
+
cleanup_old_bookings: {
|
|
12207
|
+
Args: never;
|
|
12208
|
+
Returns: undefined;
|
|
11229
12209
|
};
|
|
11230
12210
|
consume_floriday_rate_limit: {
|
|
11231
12211
|
Args: {
|
|
@@ -11278,13 +12258,6 @@ export type Database = {
|
|
|
11278
12258
|
table_name: string;
|
|
11279
12259
|
}[];
|
|
11280
12260
|
};
|
|
11281
|
-
delete_samenstelling: {
|
|
11282
|
-
Args: {
|
|
11283
|
-
p_parent_id: string;
|
|
11284
|
-
p_parent_kind: string;
|
|
11285
|
-
};
|
|
11286
|
-
Returns: Json;
|
|
11287
|
-
};
|
|
11288
12261
|
dispatch_carrier_signups_sql: {
|
|
11289
12262
|
Args: {
|
|
11290
12263
|
_catchup?: string;
|
|
@@ -11326,6 +12299,16 @@ export type Database = {
|
|
|
11326
12299
|
status: string;
|
|
11327
12300
|
}[];
|
|
11328
12301
|
};
|
|
12302
|
+
email_auth_upsert_connection: {
|
|
12303
|
+
Args: {
|
|
12304
|
+
_account_email: string;
|
|
12305
|
+
_created_by: string;
|
|
12306
|
+
_is_active: boolean;
|
|
12307
|
+
_provider: string;
|
|
12308
|
+
_status: string;
|
|
12309
|
+
};
|
|
12310
|
+
Returns: string;
|
|
12311
|
+
};
|
|
11329
12312
|
enqueue_cart_replan_if_unlocked: {
|
|
11330
12313
|
Args: {
|
|
11331
12314
|
p_order_id: string;
|
|
@@ -11445,6 +12428,19 @@ export type Database = {
|
|
|
11445
12428
|
resource: string;
|
|
11446
12429
|
}[];
|
|
11447
12430
|
};
|
|
12431
|
+
get_floriday_agreements_active: {
|
|
12432
|
+
Args: {
|
|
12433
|
+
p_on_date?: string;
|
|
12434
|
+
};
|
|
12435
|
+
Returns: {
|
|
12436
|
+
buyer_organization_id: string;
|
|
12437
|
+
data: Json;
|
|
12438
|
+
floriday_id: string;
|
|
12439
|
+
status: string;
|
|
12440
|
+
valid_from: string;
|
|
12441
|
+
valid_until: string;
|
|
12442
|
+
}[];
|
|
12443
|
+
};
|
|
11448
12444
|
get_floriday_clock_supplies_window: {
|
|
11449
12445
|
Args: {
|
|
11450
12446
|
p_from: string;
|
|
@@ -11517,21 +12513,6 @@ export type Database = {
|
|
|
11517
12513
|
minutes_since_success: number;
|
|
11518
12514
|
}[];
|
|
11519
12515
|
};
|
|
11520
|
-
get_group_allocation_keys: {
|
|
11521
|
-
Args: {
|
|
11522
|
-
p_product_id: string;
|
|
11523
|
-
};
|
|
11524
|
-
Returns: {
|
|
11525
|
-
k: string;
|
|
11526
|
-
ord: number;
|
|
11527
|
-
}[];
|
|
11528
|
-
};
|
|
11529
|
-
get_group_head_key: {
|
|
11530
|
-
Args: {
|
|
11531
|
-
p_group_id: string;
|
|
11532
|
-
};
|
|
11533
|
-
Returns: string;
|
|
11534
|
-
};
|
|
11535
12516
|
get_offer_by_link_code: {
|
|
11536
12517
|
Args: {
|
|
11537
12518
|
p_code: string;
|
|
@@ -11593,6 +12574,14 @@ export type Database = {
|
|
|
11593
12574
|
};
|
|
11594
12575
|
Returns: string;
|
|
11595
12576
|
};
|
|
12577
|
+
has_module_permission: {
|
|
12578
|
+
Args: {
|
|
12579
|
+
_min: string;
|
|
12580
|
+
_module_id: string;
|
|
12581
|
+
_user_id: string;
|
|
12582
|
+
};
|
|
12583
|
+
Returns: boolean;
|
|
12584
|
+
};
|
|
11596
12585
|
has_role: {
|
|
11597
12586
|
Args: {
|
|
11598
12587
|
_role: Database["public"]["Enums"]["app_role"];
|
|
@@ -11600,6 +12589,10 @@ export type Database = {
|
|
|
11600
12589
|
};
|
|
11601
12590
|
Returns: boolean;
|
|
11602
12591
|
};
|
|
12592
|
+
has_twinfield_link: {
|
|
12593
|
+
Args: never;
|
|
12594
|
+
Returns: boolean;
|
|
12595
|
+
};
|
|
11603
12596
|
is_authenticated: {
|
|
11604
12597
|
Args: never;
|
|
11605
12598
|
Returns: boolean;
|
|
@@ -11614,6 +12607,14 @@ export type Database = {
|
|
|
11614
12607
|
};
|
|
11615
12608
|
Returns: boolean;
|
|
11616
12609
|
};
|
|
12610
|
+
list_monteurs: {
|
|
12611
|
+
Args: never;
|
|
12612
|
+
Returns: {
|
|
12613
|
+
display_name: string;
|
|
12614
|
+
email: string;
|
|
12615
|
+
user_id: string;
|
|
12616
|
+
}[];
|
|
12617
|
+
};
|
|
11617
12618
|
local_effective_price: {
|
|
11618
12619
|
Args: {
|
|
11619
12620
|
_customer_id: string;
|
|
@@ -11642,32 +12643,12 @@ export type Database = {
|
|
|
11642
12643
|
};
|
|
11643
12644
|
Returns: undefined;
|
|
11644
12645
|
};
|
|
11645
|
-
mark_salesorder_controlled: {
|
|
11646
|
-
Args: {
|
|
11647
|
-
p_controlled: boolean;
|
|
11648
|
-
p_floriday_id: string;
|
|
11649
|
-
};
|
|
11650
|
-
Returns: undefined;
|
|
11651
|
-
};
|
|
11652
12646
|
mark_shipment_shipped: {
|
|
11653
12647
|
Args: {
|
|
11654
12648
|
p_shipment_id: string;
|
|
11655
12649
|
};
|
|
11656
12650
|
Returns: undefined;
|
|
11657
12651
|
};
|
|
11658
|
-
merge_products: {
|
|
11659
|
-
Args: {
|
|
11660
|
-
_canonical: string;
|
|
11661
|
-
_loser: string;
|
|
11662
|
-
};
|
|
11663
|
-
Returns: undefined;
|
|
11664
|
-
};
|
|
11665
|
-
next_manufacture_partij: {
|
|
11666
|
-
Args: {
|
|
11667
|
-
_tenant_id: string;
|
|
11668
|
-
};
|
|
11669
|
-
Returns: string;
|
|
11670
|
-
};
|
|
11671
12652
|
next_order_number: {
|
|
11672
12653
|
Args: {
|
|
11673
12654
|
p_prefix: string;
|
|
@@ -11681,6 +12662,10 @@ export type Database = {
|
|
|
11681
12662
|
};
|
|
11682
12663
|
Returns: string;
|
|
11683
12664
|
};
|
|
12665
|
+
next_twinfield_code: {
|
|
12666
|
+
Args: never;
|
|
12667
|
+
Returns: string;
|
|
12668
|
+
};
|
|
11684
12669
|
next_work_order_number: {
|
|
11685
12670
|
Args: {
|
|
11686
12671
|
p_parent_work_order_id?: string;
|
|
@@ -11746,14 +12731,6 @@ export type Database = {
|
|
|
11746
12731
|
};
|
|
11747
12732
|
Returns: undefined;
|
|
11748
12733
|
};
|
|
11749
|
-
produce_designed_product: {
|
|
11750
|
-
Args: {
|
|
11751
|
-
p_parent_id: string;
|
|
11752
|
-
p_parent_kind: string;
|
|
11753
|
-
p_quantity: number;
|
|
11754
|
-
};
|
|
11755
|
-
Returns: Json;
|
|
11756
|
-
};
|
|
11757
12734
|
promote_trade_item_key: {
|
|
11758
12735
|
Args: {
|
|
11759
12736
|
p_new: string;
|
|
@@ -11761,10 +12738,6 @@ export type Database = {
|
|
|
11761
12738
|
};
|
|
11762
12739
|
Returns: undefined;
|
|
11763
12740
|
};
|
|
11764
|
-
recompute_all_reserved_stock: {
|
|
11765
|
-
Args: never;
|
|
11766
|
-
Returns: undefined;
|
|
11767
|
-
};
|
|
11768
12741
|
recompute_order_status: {
|
|
11769
12742
|
Args: {
|
|
11770
12743
|
p_order_id: string;
|
|
@@ -11807,52 +12780,46 @@ export type Database = {
|
|
|
11807
12780
|
};
|
|
11808
12781
|
Returns: number;
|
|
11809
12782
|
};
|
|
11810
|
-
|
|
12783
|
+
reorder_customer_price_groups: {
|
|
11811
12784
|
Args: {
|
|
11812
|
-
|
|
11813
|
-
p_entity_type: string;
|
|
12785
|
+
_ids: string[];
|
|
11814
12786
|
};
|
|
11815
12787
|
Returns: undefined;
|
|
11816
12788
|
};
|
|
11817
|
-
|
|
12789
|
+
reset_floriday_sync_cursor: {
|
|
11818
12790
|
Args: {
|
|
11819
|
-
|
|
11820
|
-
|
|
12791
|
+
p_connection_id: string;
|
|
12792
|
+
p_entity_type: string;
|
|
11821
12793
|
};
|
|
11822
|
-
Returns:
|
|
11823
|
-
allocated: number;
|
|
11824
|
-
trade_item_id: string;
|
|
11825
|
-
}[];
|
|
12794
|
+
Returns: undefined;
|
|
11826
12795
|
};
|
|
11827
|
-
|
|
12796
|
+
resolve_product_id_for_item: {
|
|
11828
12797
|
Args: {
|
|
11829
|
-
|
|
12798
|
+
p_product_name: string;
|
|
11830
12799
|
};
|
|
11831
12800
|
Returns: string;
|
|
11832
12801
|
};
|
|
11833
|
-
|
|
12802
|
+
retry_twinfield_push: {
|
|
11834
12803
|
Args: {
|
|
11835
|
-
|
|
12804
|
+
_customer_id: string;
|
|
11836
12805
|
};
|
|
11837
|
-
Returns:
|
|
12806
|
+
Returns: number;
|
|
11838
12807
|
};
|
|
11839
|
-
|
|
12808
|
+
schedule_floriday_additional_services_sync: {
|
|
11840
12809
|
Args: {
|
|
11841
|
-
|
|
12810
|
+
p_apikey: string;
|
|
12811
|
+
p_url: string;
|
|
11842
12812
|
};
|
|
11843
|
-
Returns:
|
|
12813
|
+
Returns: number;
|
|
11844
12814
|
};
|
|
11845
|
-
|
|
12815
|
+
schedule_floriday_agreement_calloffs_sync: {
|
|
11846
12816
|
Args: {
|
|
11847
|
-
|
|
11848
|
-
|
|
11849
|
-
p_quantity: number;
|
|
11850
|
-
p_reason?: string;
|
|
11851
|
-
p_user_id?: string;
|
|
12817
|
+
p_apikey: string;
|
|
12818
|
+
p_url: string;
|
|
11852
12819
|
};
|
|
11853
|
-
Returns:
|
|
12820
|
+
Returns: number;
|
|
11854
12821
|
};
|
|
11855
|
-
|
|
12822
|
+
schedule_floriday_agreements_sync: {
|
|
11856
12823
|
Args: {
|
|
11857
12824
|
p_apikey: string;
|
|
11858
12825
|
p_url: string;
|
|
@@ -12127,12 +13094,6 @@ export type Database = {
|
|
|
12127
13094
|
};
|
|
12128
13095
|
Returns: undefined;
|
|
12129
13096
|
};
|
|
12130
|
-
sync_product_group_belading: {
|
|
12131
|
-
Args: {
|
|
12132
|
-
_group_id: string;
|
|
12133
|
-
};
|
|
12134
|
-
Returns: undefined;
|
|
12135
|
-
};
|
|
12136
13097
|
sync_product_packing_from_floriday_cache: {
|
|
12137
13098
|
Args: {
|
|
12138
13099
|
p_floriday_id: string;
|
|
@@ -12164,9 +13125,11 @@ export type Database = {
|
|
|
12164
13125
|
};
|
|
12165
13126
|
};
|
|
12166
13127
|
Enums: {
|
|
12167
|
-
app_role: "admin" | "
|
|
13128
|
+
app_role: "admin" | "planner" | "monteur" | "administratie";
|
|
12168
13129
|
exact_env: "staging" | "live";
|
|
12169
13130
|
exact_push_status: "pending" | "sent" | "error";
|
|
13131
|
+
itk_customer_segment: "Business" | "Private";
|
|
13132
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
12170
13133
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12171
13134
|
};
|
|
12172
13135
|
CompositeTypes: {
|
|
@@ -12226,9 +13189,11 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
|
|
|
12226
13189
|
export declare const Constants: {
|
|
12227
13190
|
readonly public: {
|
|
12228
13191
|
readonly Enums: {
|
|
12229
|
-
readonly app_role: readonly ["admin", "
|
|
13192
|
+
readonly app_role: readonly ["admin", "planner", "monteur", "administratie"];
|
|
12230
13193
|
readonly exact_env: readonly ["staging", "live"];
|
|
12231
13194
|
readonly exact_push_status: readonly ["pending", "sent", "error"];
|
|
13195
|
+
readonly itk_customer_segment: readonly ["Business", "Private"];
|
|
13196
|
+
readonly itk_dynamic_field_type: readonly ["text", "select", "date", "checkbox"];
|
|
12232
13197
|
readonly quote_status: readonly ["concept", "verzonden", "bekeken", "in_behandeling", "geaccepteerd", "afgewezen", "verlopen", "gearchiveerd"];
|
|
12233
13198
|
};
|
|
12234
13199
|
};
|