@flowselections/floriday-verkoop-module 1.0.20 → 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/OrderControlStatusCard.d.ts +6 -0
- package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -0
- package/dist-lib/components/verkoop/OrderControlStatusCard.js +41 -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 +74 -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 +3 -2
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +40 -5
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.js +19 -3
- 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 +1536 -581
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1536 -581
- 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 +1536 -581
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1543 -562
- 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 +1536 -581
- 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 +15811 -1082
- 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 -7561
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +4558 -1693
- 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 +1536 -581
- 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 +10989 -4301
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.js +114 -38
- 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 -2997
- 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 -2345
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.d.ts +5 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.js +8 -1
- package/dist-lib/lib/salesorders.functions.d.ts +30443 -1979
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.js +307 -0
- package/dist-lib/lib/tradeitems.functions.d.ts +1536 -581
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrderDetailQuery.d.ts +2 -0
- package/dist-lib/lib/useSalesOrderDetailQuery.d.ts.map +1 -0
- package/dist-lib/lib/useSalesOrderDetailQuery.js +50 -0
- package/dist-lib/lib/useSalesOrdersQuery.d.ts +2 -2
- package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.js +139 -10
- 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;
|
|
@@ -5045,47 +5577,6 @@ export type Database = {
|
|
|
5045
5577
|
}
|
|
5046
5578
|
];
|
|
5047
5579
|
};
|
|
5048
|
-
floriday_trade_settings_customers_cache: {
|
|
5049
|
-
Row: {
|
|
5050
|
-
connection_id: string;
|
|
5051
|
-
data: Json;
|
|
5052
|
-
fetched_at: string;
|
|
5053
|
-
floriday_id: string;
|
|
5054
|
-
id: string;
|
|
5055
|
-
is_deleted: boolean;
|
|
5056
|
-
sequence_number: number;
|
|
5057
|
-
updated_at: string;
|
|
5058
|
-
};
|
|
5059
|
-
Insert: {
|
|
5060
|
-
connection_id: string;
|
|
5061
|
-
data: Json;
|
|
5062
|
-
fetched_at?: string;
|
|
5063
|
-
floriday_id: string;
|
|
5064
|
-
id?: string;
|
|
5065
|
-
is_deleted?: boolean;
|
|
5066
|
-
sequence_number?: number;
|
|
5067
|
-
updated_at?: string;
|
|
5068
|
-
};
|
|
5069
|
-
Update: {
|
|
5070
|
-
connection_id?: string;
|
|
5071
|
-
data?: Json;
|
|
5072
|
-
fetched_at?: string;
|
|
5073
|
-
floriday_id?: string;
|
|
5074
|
-
id?: string;
|
|
5075
|
-
is_deleted?: boolean;
|
|
5076
|
-
sequence_number?: number;
|
|
5077
|
-
updated_at?: string;
|
|
5078
|
-
};
|
|
5079
|
-
Relationships: [
|
|
5080
|
-
{
|
|
5081
|
-
foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
|
|
5082
|
-
columns: ["connection_id"];
|
|
5083
|
-
isOneToOne: false;
|
|
5084
|
-
referencedRelation: "floriday_connections";
|
|
5085
|
-
referencedColumns: ["id"];
|
|
5086
|
-
}
|
|
5087
|
-
];
|
|
5088
|
-
};
|
|
5089
5580
|
floriday_trips_cache: {
|
|
5090
5581
|
Row: {
|
|
5091
5582
|
carrier_organization_id: string | null;
|
|
@@ -5542,95 +6033,390 @@ export type Database = {
|
|
|
5542
6033
|
description: string | null;
|
|
5543
6034
|
exact_article_id: string | null;
|
|
5544
6035
|
id: string;
|
|
5545
|
-
invoice_run_id: string | null;
|
|
5546
|
-
quantity: number | null;
|
|
5547
|
-
total_excl_vat: number | null;
|
|
5548
|
-
total_incl_vat: number | null;
|
|
5549
|
-
unit_price: number | null;
|
|
5550
|
-
vat_amount: number | null;
|
|
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;
|
|
6332
|
+
id: string;
|
|
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;
|
|
5551
6340
|
};
|
|
5552
6341
|
Insert: {
|
|
5553
|
-
|
|
5554
|
-
company_name?: string | null;
|
|
6342
|
+
city?: string | null;
|
|
5555
6343
|
created_at?: string;
|
|
5556
|
-
|
|
5557
|
-
description?: string | null;
|
|
5558
|
-
exact_article_id?: string | null;
|
|
6344
|
+
customer_id: string;
|
|
5559
6345
|
id?: string;
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
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;
|
|
5566
6353
|
};
|
|
5567
6354
|
Update: {
|
|
5568
|
-
|
|
5569
|
-
company_name?: string | null;
|
|
6355
|
+
city?: string | null;
|
|
5570
6356
|
created_at?: string;
|
|
5571
|
-
|
|
5572
|
-
description?: string | null;
|
|
5573
|
-
exact_article_id?: string | null;
|
|
6357
|
+
customer_id?: string;
|
|
5574
6358
|
id?: string;
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
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;
|
|
5581
6366
|
};
|
|
5582
6367
|
Relationships: [
|
|
5583
6368
|
{
|
|
5584
|
-
foreignKeyName: "
|
|
5585
|
-
columns: ["
|
|
5586
|
-
isOneToOne: false;
|
|
5587
|
-
referencedRelation: "bookings";
|
|
5588
|
-
referencedColumns: ["id"];
|
|
5589
|
-
},
|
|
5590
|
-
{
|
|
5591
|
-
foreignKeyName: "invoice_run_items_invoice_run_id_fkey";
|
|
5592
|
-
columns: ["invoice_run_id"];
|
|
6369
|
+
foreignKeyName: "itk_work_locations_customer_id_fkey";
|
|
6370
|
+
columns: ["customer_id"];
|
|
5593
6371
|
isOneToOne: false;
|
|
5594
|
-
referencedRelation: "
|
|
6372
|
+
referencedRelation: "itk_customers";
|
|
5595
6373
|
referencedColumns: ["id"];
|
|
5596
6374
|
}
|
|
5597
6375
|
];
|
|
5598
6376
|
};
|
|
5599
|
-
|
|
6377
|
+
leave_requests: {
|
|
5600
6378
|
Row: {
|
|
5601
6379
|
created_at: string;
|
|
5602
|
-
|
|
6380
|
+
end_date: string;
|
|
5603
6381
|
id: string;
|
|
5604
|
-
|
|
5605
|
-
|
|
6382
|
+
reason: string | null;
|
|
6383
|
+
start_date: string;
|
|
5606
6384
|
status: string;
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
6385
|
+
tenant_id: string;
|
|
6386
|
+
updated_at: string;
|
|
6387
|
+
user_id: string;
|
|
5610
6388
|
};
|
|
5611
6389
|
Insert: {
|
|
5612
6390
|
created_at?: string;
|
|
5613
|
-
|
|
6391
|
+
end_date: string;
|
|
5614
6392
|
id?: string;
|
|
5615
|
-
|
|
5616
|
-
|
|
6393
|
+
reason?: string | null;
|
|
6394
|
+
start_date: string;
|
|
5617
6395
|
status?: string;
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
6396
|
+
tenant_id?: string;
|
|
6397
|
+
updated_at?: string;
|
|
6398
|
+
user_id: string;
|
|
5621
6399
|
};
|
|
5622
6400
|
Update: {
|
|
5623
6401
|
created_at?: string;
|
|
5624
|
-
|
|
6402
|
+
end_date?: string;
|
|
5625
6403
|
id?: string;
|
|
5626
|
-
|
|
5627
|
-
|
|
6404
|
+
reason?: string | null;
|
|
6405
|
+
start_date?: string;
|
|
5628
6406
|
status?: string;
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
6407
|
+
tenant_id?: string;
|
|
6408
|
+
updated_at?: string;
|
|
6409
|
+
user_id?: string;
|
|
5632
6410
|
};
|
|
5633
|
-
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
|
+
];
|
|
5634
6420
|
};
|
|
5635
6421
|
local_customer_agreements: {
|
|
5636
6422
|
Row: {
|
|
@@ -6278,62 +7064,66 @@ export type Database = {
|
|
|
6278
7064
|
};
|
|
6279
7065
|
manufacture_products: {
|
|
6280
7066
|
Row: {
|
|
6281
|
-
aantal_te_produceren: number;
|
|
6282
7067
|
created_at: string;
|
|
6283
7068
|
description: string | null;
|
|
6284
7069
|
id: string;
|
|
6285
7070
|
is_active: boolean;
|
|
6286
|
-
location_id: string | null;
|
|
6287
7071
|
name: string;
|
|
6288
|
-
partij_nummer: string | null;
|
|
6289
|
-
photos: Json;
|
|
6290
7072
|
produced_stock: number;
|
|
6291
7073
|
product_code: string;
|
|
6292
7074
|
tenant_id: string;
|
|
6293
|
-
unit: string;
|
|
6294
7075
|
updated_at: string;
|
|
6295
7076
|
};
|
|
6296
7077
|
Insert: {
|
|
6297
|
-
aantal_te_produceren?: number;
|
|
6298
7078
|
created_at?: string;
|
|
6299
7079
|
description?: string | null;
|
|
6300
7080
|
id?: string;
|
|
6301
7081
|
is_active?: boolean;
|
|
6302
|
-
location_id?: string | null;
|
|
6303
7082
|
name: string;
|
|
6304
|
-
partij_nummer?: string | null;
|
|
6305
|
-
photos?: Json;
|
|
6306
7083
|
produced_stock?: number;
|
|
6307
7084
|
product_code: string;
|
|
6308
7085
|
tenant_id: string;
|
|
6309
|
-
unit?: string;
|
|
6310
7086
|
updated_at?: string;
|
|
6311
7087
|
};
|
|
6312
7088
|
Update: {
|
|
6313
|
-
aantal_te_produceren?: number;
|
|
6314
7089
|
created_at?: string;
|
|
6315
7090
|
description?: string | null;
|
|
6316
7091
|
id?: string;
|
|
6317
7092
|
is_active?: boolean;
|
|
6318
|
-
location_id?: string | null;
|
|
6319
7093
|
name?: string;
|
|
6320
|
-
partij_nummer?: string | null;
|
|
6321
|
-
photos?: Json;
|
|
6322
7094
|
produced_stock?: number;
|
|
6323
7095
|
product_code?: string;
|
|
6324
7096
|
tenant_id?: string;
|
|
6325
|
-
unit?: string;
|
|
6326
7097
|
updated_at?: string;
|
|
6327
7098
|
};
|
|
6328
|
-
Relationships: [
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
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: [];
|
|
6337
7127
|
};
|
|
6338
7128
|
monteurs: {
|
|
6339
7129
|
Row: {
|
|
@@ -7089,6 +7879,42 @@ export type Database = {
|
|
|
7089
7879
|
};
|
|
7090
7880
|
Relationships: [];
|
|
7091
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
|
+
};
|
|
7092
7918
|
order_cart_items: {
|
|
7093
7919
|
Row: {
|
|
7094
7920
|
cart_id: string;
|
|
@@ -7159,6 +7985,7 @@ export type Database = {
|
|
|
7159
7985
|
order_carts: {
|
|
7160
7986
|
Row: {
|
|
7161
7987
|
algorithm_version: number;
|
|
7988
|
+
buffer_id: string | null;
|
|
7162
7989
|
cart_number: number;
|
|
7163
7990
|
created_at: string;
|
|
7164
7991
|
id: string;
|
|
@@ -7166,13 +7993,14 @@ export type Database = {
|
|
|
7166
7993
|
is_complete: boolean;
|
|
7167
7994
|
notes: string | null;
|
|
7168
7995
|
occupancy_pct: number;
|
|
7169
|
-
order_id: string;
|
|
7996
|
+
order_id: string | null;
|
|
7170
7997
|
source: string;
|
|
7171
7998
|
total_layers_used: number;
|
|
7172
7999
|
updated_at: string;
|
|
7173
8000
|
};
|
|
7174
8001
|
Insert: {
|
|
7175
8002
|
algorithm_version?: number;
|
|
8003
|
+
buffer_id?: string | null;
|
|
7176
8004
|
cart_number: number;
|
|
7177
8005
|
created_at?: string;
|
|
7178
8006
|
id?: string;
|
|
@@ -7180,13 +8008,14 @@ export type Database = {
|
|
|
7180
8008
|
is_complete?: boolean;
|
|
7181
8009
|
notes?: string | null;
|
|
7182
8010
|
occupancy_pct?: number;
|
|
7183
|
-
order_id
|
|
8011
|
+
order_id?: string | null;
|
|
7184
8012
|
source?: string;
|
|
7185
8013
|
total_layers_used?: number;
|
|
7186
8014
|
updated_at?: string;
|
|
7187
8015
|
};
|
|
7188
8016
|
Update: {
|
|
7189
8017
|
algorithm_version?: number;
|
|
8018
|
+
buffer_id?: string | null;
|
|
7190
8019
|
cart_number?: number;
|
|
7191
8020
|
created_at?: string;
|
|
7192
8021
|
id?: string;
|
|
@@ -7194,12 +8023,19 @@ export type Database = {
|
|
|
7194
8023
|
is_complete?: boolean;
|
|
7195
8024
|
notes?: string | null;
|
|
7196
8025
|
occupancy_pct?: number;
|
|
7197
|
-
order_id?: string;
|
|
8026
|
+
order_id?: string | null;
|
|
7198
8027
|
source?: string;
|
|
7199
8028
|
total_layers_used?: number;
|
|
7200
8029
|
updated_at?: string;
|
|
7201
8030
|
};
|
|
7202
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
|
+
},
|
|
7203
8039
|
{
|
|
7204
8040
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7205
8041
|
columns: ["order_id"];
|
|
@@ -7450,12 +8286,14 @@ export type Database = {
|
|
|
7450
8286
|
};
|
|
7451
8287
|
orders: {
|
|
7452
8288
|
Row: {
|
|
8289
|
+
buffer_id: string | null;
|
|
7453
8290
|
created_at: string;
|
|
7454
8291
|
custom_fields: Json;
|
|
7455
8292
|
customer_id: string | null;
|
|
7456
8293
|
customer_name: string;
|
|
7457
8294
|
deleted_at: string | null;
|
|
7458
8295
|
delivery_date: string | null;
|
|
8296
|
+
floriday_sales_order_id: string | null;
|
|
7459
8297
|
id: string;
|
|
7460
8298
|
is_reservation: boolean;
|
|
7461
8299
|
notes: string | null;
|
|
@@ -7469,12 +8307,14 @@ export type Database = {
|
|
|
7469
8307
|
updated_at: string;
|
|
7470
8308
|
};
|
|
7471
8309
|
Insert: {
|
|
8310
|
+
buffer_id?: string | null;
|
|
7472
8311
|
created_at?: string;
|
|
7473
8312
|
custom_fields?: Json;
|
|
7474
8313
|
customer_id?: string | null;
|
|
7475
8314
|
customer_name?: string;
|
|
7476
8315
|
deleted_at?: string | null;
|
|
7477
8316
|
delivery_date?: string | null;
|
|
8317
|
+
floriday_sales_order_id?: string | null;
|
|
7478
8318
|
id?: string;
|
|
7479
8319
|
is_reservation?: boolean;
|
|
7480
8320
|
notes?: string | null;
|
|
@@ -7488,12 +8328,14 @@ export type Database = {
|
|
|
7488
8328
|
updated_at?: string;
|
|
7489
8329
|
};
|
|
7490
8330
|
Update: {
|
|
8331
|
+
buffer_id?: string | null;
|
|
7491
8332
|
created_at?: string;
|
|
7492
8333
|
custom_fields?: Json;
|
|
7493
8334
|
customer_id?: string | null;
|
|
7494
8335
|
customer_name?: string;
|
|
7495
8336
|
deleted_at?: string | null;
|
|
7496
8337
|
delivery_date?: string | null;
|
|
8338
|
+
floriday_sales_order_id?: string | null;
|
|
7497
8339
|
id?: string;
|
|
7498
8340
|
is_reservation?: boolean;
|
|
7499
8341
|
notes?: string | null;
|
|
@@ -7507,6 +8349,13 @@ export type Database = {
|
|
|
7507
8349
|
updated_at?: string;
|
|
7508
8350
|
};
|
|
7509
8351
|
Relationships: [
|
|
8352
|
+
{
|
|
8353
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8354
|
+
columns: ["buffer_id"];
|
|
8355
|
+
isOneToOne: false;
|
|
8356
|
+
referencedRelation: "order_buffers";
|
|
8357
|
+
referencedColumns: ["id"];
|
|
8358
|
+
},
|
|
7510
8359
|
{
|
|
7511
8360
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7512
8361
|
columns: ["customer_id"];
|
|
@@ -7639,66 +8488,6 @@ export type Database = {
|
|
|
7639
8488
|
};
|
|
7640
8489
|
Relationships: [];
|
|
7641
8490
|
};
|
|
7642
|
-
product_bom_items: {
|
|
7643
|
-
Row: {
|
|
7644
|
-
component_product_id: string | null;
|
|
7645
|
-
component_trade_item_floriday_id: string | null;
|
|
7646
|
-
created_at: string;
|
|
7647
|
-
id: string;
|
|
7648
|
-
notes: string | null;
|
|
7649
|
-
parent_product_id: string | null;
|
|
7650
|
-
parent_trade_item_floriday_id: string | null;
|
|
7651
|
-
quantity: number;
|
|
7652
|
-
sort_order: number;
|
|
7653
|
-
tenant_id: string;
|
|
7654
|
-
unit: string;
|
|
7655
|
-
updated_at: string;
|
|
7656
|
-
};
|
|
7657
|
-
Insert: {
|
|
7658
|
-
component_product_id?: string | null;
|
|
7659
|
-
component_trade_item_floriday_id?: string | null;
|
|
7660
|
-
created_at?: string;
|
|
7661
|
-
id?: string;
|
|
7662
|
-
notes?: string | null;
|
|
7663
|
-
parent_product_id?: string | null;
|
|
7664
|
-
parent_trade_item_floriday_id?: string | null;
|
|
7665
|
-
quantity?: number;
|
|
7666
|
-
sort_order?: number;
|
|
7667
|
-
tenant_id: string;
|
|
7668
|
-
unit?: string;
|
|
7669
|
-
updated_at?: string;
|
|
7670
|
-
};
|
|
7671
|
-
Update: {
|
|
7672
|
-
component_product_id?: string | null;
|
|
7673
|
-
component_trade_item_floriday_id?: string | null;
|
|
7674
|
-
created_at?: string;
|
|
7675
|
-
id?: string;
|
|
7676
|
-
notes?: string | null;
|
|
7677
|
-
parent_product_id?: string | null;
|
|
7678
|
-
parent_trade_item_floriday_id?: string | null;
|
|
7679
|
-
quantity?: number;
|
|
7680
|
-
sort_order?: number;
|
|
7681
|
-
tenant_id?: string;
|
|
7682
|
-
unit?: string;
|
|
7683
|
-
updated_at?: string;
|
|
7684
|
-
};
|
|
7685
|
-
Relationships: [
|
|
7686
|
-
{
|
|
7687
|
-
foreignKeyName: "product_bom_items_component_product_id_fkey";
|
|
7688
|
-
columns: ["component_product_id"];
|
|
7689
|
-
isOneToOne: false;
|
|
7690
|
-
referencedRelation: "products";
|
|
7691
|
-
referencedColumns: ["id"];
|
|
7692
|
-
},
|
|
7693
|
-
{
|
|
7694
|
-
foreignKeyName: "product_bom_items_parent_product_id_fkey";
|
|
7695
|
-
columns: ["parent_product_id"];
|
|
7696
|
-
isOneToOne: false;
|
|
7697
|
-
referencedRelation: "products";
|
|
7698
|
-
referencedColumns: ["id"];
|
|
7699
|
-
}
|
|
7700
|
-
];
|
|
7701
|
-
};
|
|
7702
8491
|
product_categories: {
|
|
7703
8492
|
Row: {
|
|
7704
8493
|
color: string;
|
|
@@ -7806,7 +8595,6 @@ export type Database = {
|
|
|
7806
8595
|
id: string;
|
|
7807
8596
|
product_group_id: string;
|
|
7808
8597
|
quantity: number;
|
|
7809
|
-
sort_order: number;
|
|
7810
8598
|
trade_item_id: string;
|
|
7811
8599
|
};
|
|
7812
8600
|
Insert: {
|
|
@@ -7814,178 +8602,62 @@ export type Database = {
|
|
|
7814
8602
|
id?: string;
|
|
7815
8603
|
product_group_id: string;
|
|
7816
8604
|
quantity?: number;
|
|
7817
|
-
sort_order?: number;
|
|
7818
8605
|
trade_item_id: string;
|
|
7819
8606
|
};
|
|
7820
8607
|
Update: {
|
|
7821
8608
|
created_at?: string;
|
|
7822
8609
|
id?: string;
|
|
7823
8610
|
product_group_id?: string;
|
|
7824
|
-
quantity?: number;
|
|
7825
|
-
|
|
7826
|
-
trade_item_id?: string;
|
|
7827
|
-
};
|
|
7828
|
-
Relationships: [
|
|
7829
|
-
{
|
|
7830
|
-
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
7831
|
-
columns: ["product_group_id"];
|
|
7832
|
-
isOneToOne: false;
|
|
7833
|
-
referencedRelation: "product_groups";
|
|
7834
|
-
referencedColumns: ["id"];
|
|
7835
|
-
}
|
|
7836
|
-
];
|
|
7837
|
-
};
|
|
7838
|
-
product_groups: {
|
|
7839
|
-
Row: {
|
|
7840
|
-
created_at: string;
|
|
7841
|
-
description: string | null;
|
|
7842
|
-
head_product_id: string | null;
|
|
7843
|
-
head_trade_item_floriday_id: string | null;
|
|
7844
|
-
id: string;
|
|
7845
|
-
is_active: boolean;
|
|
7846
|
-
name: string;
|
|
7847
|
-
tenant_id: string;
|
|
7848
|
-
updated_at: string;
|
|
7849
|
-
};
|
|
7850
|
-
Insert: {
|
|
7851
|
-
created_at?: string;
|
|
7852
|
-
description?: string | null;
|
|
7853
|
-
head_product_id?: string | null;
|
|
7854
|
-
head_trade_item_floriday_id?: string | null;
|
|
7855
|
-
id?: string;
|
|
7856
|
-
is_active?: boolean;
|
|
7857
|
-
name: string;
|
|
7858
|
-
tenant_id: string;
|
|
7859
|
-
updated_at?: string;
|
|
7860
|
-
};
|
|
7861
|
-
Update: {
|
|
7862
|
-
created_at?: string;
|
|
7863
|
-
description?: string | null;
|
|
7864
|
-
head_product_id?: string | null;
|
|
7865
|
-
head_trade_item_floriday_id?: string | null;
|
|
7866
|
-
id?: string;
|
|
7867
|
-
is_active?: boolean;
|
|
7868
|
-
name?: string;
|
|
7869
|
-
tenant_id?: string;
|
|
7870
|
-
updated_at?: string;
|
|
8611
|
+
quantity?: number;
|
|
8612
|
+
trade_item_id?: string;
|
|
7871
8613
|
};
|
|
7872
8614
|
Relationships: [
|
|
7873
8615
|
{
|
|
7874
|
-
foreignKeyName: "
|
|
7875
|
-
columns: ["
|
|
8616
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
8617
|
+
columns: ["product_group_id"];
|
|
7876
8618
|
isOneToOne: false;
|
|
7877
|
-
referencedRelation: "
|
|
8619
|
+
referencedRelation: "product_groups";
|
|
7878
8620
|
referencedColumns: ["id"];
|
|
7879
8621
|
}
|
|
7880
8622
|
];
|
|
7881
8623
|
};
|
|
7882
|
-
|
|
8624
|
+
product_groups: {
|
|
7883
8625
|
Row: {
|
|
7884
8626
|
created_at: string;
|
|
8627
|
+
description: string | null;
|
|
7885
8628
|
id: string;
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
load_carrier: string | null;
|
|
7889
|
-
package_id: string | null;
|
|
7890
|
-
package_label: string | null;
|
|
7891
|
-
packages_per_layer: number | null;
|
|
7892
|
-
product_id: string | null;
|
|
8629
|
+
is_active: boolean;
|
|
8630
|
+
name: string;
|
|
7893
8631
|
tenant_id: string;
|
|
7894
|
-
trade_item_floriday_id: string | null;
|
|
7895
|
-
units_per_package: number | null;
|
|
7896
8632
|
updated_at: string;
|
|
7897
8633
|
};
|
|
7898
8634
|
Insert: {
|
|
7899
8635
|
created_at?: string;
|
|
8636
|
+
description?: string | null;
|
|
7900
8637
|
id?: string;
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
load_carrier?: string | null;
|
|
7904
|
-
package_id?: string | null;
|
|
7905
|
-
package_label?: string | null;
|
|
7906
|
-
packages_per_layer?: number | null;
|
|
7907
|
-
product_id?: string | null;
|
|
8638
|
+
is_active?: boolean;
|
|
8639
|
+
name: string;
|
|
7908
8640
|
tenant_id: string;
|
|
7909
|
-
trade_item_floriday_id?: string | null;
|
|
7910
|
-
units_per_package?: number | null;
|
|
7911
8641
|
updated_at?: string;
|
|
7912
8642
|
};
|
|
7913
8643
|
Update: {
|
|
7914
8644
|
created_at?: string;
|
|
8645
|
+
description?: string | null;
|
|
7915
8646
|
id?: string;
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
load_carrier?: string | null;
|
|
7919
|
-
package_id?: string | null;
|
|
7920
|
-
package_label?: string | null;
|
|
7921
|
-
packages_per_layer?: number | null;
|
|
7922
|
-
product_id?: string | null;
|
|
8647
|
+
is_active?: boolean;
|
|
8648
|
+
name?: string;
|
|
7923
8649
|
tenant_id?: string;
|
|
7924
|
-
trade_item_floriday_id?: string | null;
|
|
7925
|
-
units_per_package?: number | null;
|
|
7926
8650
|
updated_at?: string;
|
|
7927
8651
|
};
|
|
7928
|
-
Relationships: [
|
|
7929
|
-
{
|
|
7930
|
-
foreignKeyName: "product_load_settings_package_id_fkey";
|
|
7931
|
-
columns: ["package_id"];
|
|
7932
|
-
isOneToOne: false;
|
|
7933
|
-
referencedRelation: "packages";
|
|
7934
|
-
referencedColumns: ["id"];
|
|
7935
|
-
},
|
|
7936
|
-
{
|
|
7937
|
-
foreignKeyName: "product_load_settings_product_id_fkey";
|
|
7938
|
-
columns: ["product_id"];
|
|
7939
|
-
isOneToOne: false;
|
|
7940
|
-
referencedRelation: "products";
|
|
7941
|
-
referencedColumns: ["id"];
|
|
7942
|
-
}
|
|
7943
|
-
];
|
|
7944
|
-
};
|
|
7945
|
-
product_merge_log: {
|
|
7946
|
-
Row: {
|
|
7947
|
-
canonical_product_id: string | null;
|
|
7948
|
-
id: string;
|
|
7949
|
-
merged_at: string;
|
|
7950
|
-
merged_from_id: string;
|
|
7951
|
-
notes: string | null;
|
|
7952
|
-
snapshot: Json;
|
|
7953
|
-
source_table: string;
|
|
7954
|
-
status: string;
|
|
7955
|
-
};
|
|
7956
|
-
Insert: {
|
|
7957
|
-
canonical_product_id?: string | null;
|
|
7958
|
-
id?: string;
|
|
7959
|
-
merged_at?: string;
|
|
7960
|
-
merged_from_id: string;
|
|
7961
|
-
notes?: string | null;
|
|
7962
|
-
snapshot?: Json;
|
|
7963
|
-
source_table: string;
|
|
7964
|
-
status?: string;
|
|
7965
|
-
};
|
|
7966
|
-
Update: {
|
|
7967
|
-
canonical_product_id?: string | null;
|
|
7968
|
-
id?: string;
|
|
7969
|
-
merged_at?: string;
|
|
7970
|
-
merged_from_id?: string;
|
|
7971
|
-
notes?: string | null;
|
|
7972
|
-
snapshot?: Json;
|
|
7973
|
-
source_table?: string;
|
|
7974
|
-
status?: string;
|
|
7975
|
-
};
|
|
7976
8652
|
Relationships: [];
|
|
7977
8653
|
};
|
|
7978
8654
|
products: {
|
|
7979
8655
|
Row: {
|
|
7980
|
-
article_number: string | null;
|
|
7981
8656
|
barcode: string | null;
|
|
7982
8657
|
batch: string;
|
|
7983
8658
|
crates_per_layer: number;
|
|
7984
8659
|
created_at: string;
|
|
7985
8660
|
custom_fields: Json;
|
|
7986
|
-
floriday_active: boolean;
|
|
7987
|
-
floriday_payload: Json;
|
|
7988
|
-
floriday_trade_item_id: string | null;
|
|
7989
8661
|
id: string;
|
|
7990
8662
|
image_url: string | null;
|
|
7991
8663
|
incoming_quantity: number;
|
|
@@ -8004,15 +8676,11 @@ export type Database = {
|
|
|
8004
8676
|
weight: string | null;
|
|
8005
8677
|
};
|
|
8006
8678
|
Insert: {
|
|
8007
|
-
article_number?: string | null;
|
|
8008
8679
|
barcode?: string | null;
|
|
8009
8680
|
batch: string;
|
|
8010
8681
|
crates_per_layer?: number;
|
|
8011
8682
|
created_at?: string;
|
|
8012
8683
|
custom_fields?: Json;
|
|
8013
|
-
floriday_active?: boolean;
|
|
8014
|
-
floriday_payload?: Json;
|
|
8015
|
-
floriday_trade_item_id?: string | null;
|
|
8016
8684
|
id?: string;
|
|
8017
8685
|
image_url?: string | null;
|
|
8018
8686
|
incoming_quantity?: number;
|
|
@@ -8031,15 +8699,11 @@ export type Database = {
|
|
|
8031
8699
|
weight?: string | null;
|
|
8032
8700
|
};
|
|
8033
8701
|
Update: {
|
|
8034
|
-
article_number?: string | null;
|
|
8035
8702
|
barcode?: string | null;
|
|
8036
8703
|
batch?: string;
|
|
8037
8704
|
crates_per_layer?: number;
|
|
8038
8705
|
created_at?: string;
|
|
8039
8706
|
custom_fields?: Json;
|
|
8040
|
-
floriday_active?: boolean;
|
|
8041
|
-
floriday_payload?: Json;
|
|
8042
|
-
floriday_trade_item_id?: string | null;
|
|
8043
8707
|
id?: string;
|
|
8044
8708
|
image_url?: string | null;
|
|
8045
8709
|
incoming_quantity?: number;
|
|
@@ -8980,10 +9644,8 @@ export type Database = {
|
|
|
8980
9644
|
order_id: string | null;
|
|
8981
9645
|
order_item_id: string | null;
|
|
8982
9646
|
order_source: string | null;
|
|
8983
|
-
parent_trade_item_key: string | null;
|
|
8984
9647
|
physical_after: number | null;
|
|
8985
9648
|
physical_before: number | null;
|
|
8986
|
-
production_batch_id: string | null;
|
|
8987
9649
|
qty_delta: number;
|
|
8988
9650
|
reason: string | null;
|
|
8989
9651
|
reserved_after: number | null;
|
|
@@ -8999,10 +9661,8 @@ export type Database = {
|
|
|
8999
9661
|
order_id?: string | null;
|
|
9000
9662
|
order_item_id?: string | null;
|
|
9001
9663
|
order_source?: string | null;
|
|
9002
|
-
parent_trade_item_key?: string | null;
|
|
9003
9664
|
physical_after?: number | null;
|
|
9004
9665
|
physical_before?: number | null;
|
|
9005
|
-
production_batch_id?: string | null;
|
|
9006
9666
|
qty_delta: number;
|
|
9007
9667
|
reason?: string | null;
|
|
9008
9668
|
reserved_after?: number | null;
|
|
@@ -9018,10 +9678,8 @@ export type Database = {
|
|
|
9018
9678
|
order_id?: string | null;
|
|
9019
9679
|
order_item_id?: string | null;
|
|
9020
9680
|
order_source?: string | null;
|
|
9021
|
-
parent_trade_item_key?: string | null;
|
|
9022
9681
|
physical_after?: number | null;
|
|
9023
9682
|
physical_before?: number | null;
|
|
9024
|
-
production_batch_id?: string | null;
|
|
9025
9683
|
qty_delta?: number;
|
|
9026
9684
|
reason?: string | null;
|
|
9027
9685
|
reserved_after?: number | null;
|
|
@@ -9125,6 +9783,27 @@ export type Database = {
|
|
|
9125
9783
|
};
|
|
9126
9784
|
Relationships: [];
|
|
9127
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
|
+
};
|
|
9128
9807
|
tenants: {
|
|
9129
9808
|
Row: {
|
|
9130
9809
|
created_at: string;
|
|
@@ -9490,7 +10169,7 @@ export type Database = {
|
|
|
9490
10169
|
twinfield_connections: {
|
|
9491
10170
|
Row: {
|
|
9492
10171
|
access_token: string | null;
|
|
9493
|
-
client_id: string
|
|
10172
|
+
client_id: string;
|
|
9494
10173
|
client_secret: string | null;
|
|
9495
10174
|
cluster_uri: string | null;
|
|
9496
10175
|
company_code: string | null;
|
|
@@ -9502,7 +10181,7 @@ export type Database = {
|
|
|
9502
10181
|
is_active: boolean;
|
|
9503
10182
|
label: string | null;
|
|
9504
10183
|
office_code: string | null;
|
|
9505
|
-
redirect_uri: string
|
|
10184
|
+
redirect_uri: string;
|
|
9506
10185
|
refresh_token: string | null;
|
|
9507
10186
|
token_expires_at: string | null;
|
|
9508
10187
|
updated_at: string;
|
|
@@ -9510,7 +10189,7 @@ export type Database = {
|
|
|
9510
10189
|
};
|
|
9511
10190
|
Insert: {
|
|
9512
10191
|
access_token?: string | null;
|
|
9513
|
-
client_id
|
|
10192
|
+
client_id: string;
|
|
9514
10193
|
client_secret?: string | null;
|
|
9515
10194
|
cluster_uri?: string | null;
|
|
9516
10195
|
company_code?: string | null;
|
|
@@ -9522,7 +10201,7 @@ export type Database = {
|
|
|
9522
10201
|
is_active?: boolean;
|
|
9523
10202
|
label?: string | null;
|
|
9524
10203
|
office_code?: string | null;
|
|
9525
|
-
redirect_uri
|
|
10204
|
+
redirect_uri: string;
|
|
9526
10205
|
refresh_token?: string | null;
|
|
9527
10206
|
token_expires_at?: string | null;
|
|
9528
10207
|
updated_at?: string;
|
|
@@ -9530,7 +10209,7 @@ export type Database = {
|
|
|
9530
10209
|
};
|
|
9531
10210
|
Update: {
|
|
9532
10211
|
access_token?: string | null;
|
|
9533
|
-
client_id?: string
|
|
10212
|
+
client_id?: string;
|
|
9534
10213
|
client_secret?: string | null;
|
|
9535
10214
|
cluster_uri?: string | null;
|
|
9536
10215
|
company_code?: string | null;
|
|
@@ -9542,7 +10221,7 @@ export type Database = {
|
|
|
9542
10221
|
is_active?: boolean;
|
|
9543
10222
|
label?: string | null;
|
|
9544
10223
|
office_code?: string | null;
|
|
9545
|
-
redirect_uri?: string
|
|
10224
|
+
redirect_uri?: string;
|
|
9546
10225
|
refresh_token?: string | null;
|
|
9547
10226
|
token_expires_at?: string | null;
|
|
9548
10227
|
updated_at?: string;
|
|
@@ -9602,6 +10281,7 @@ export type Database = {
|
|
|
9602
10281
|
country: string | null;
|
|
9603
10282
|
created_at: string;
|
|
9604
10283
|
email: string | null;
|
|
10284
|
+
external_group_key: string | null;
|
|
9605
10285
|
id: string;
|
|
9606
10286
|
last_synced_at: string | null;
|
|
9607
10287
|
name: string;
|
|
@@ -9620,6 +10300,7 @@ export type Database = {
|
|
|
9620
10300
|
country?: string | null;
|
|
9621
10301
|
created_at?: string;
|
|
9622
10302
|
email?: string | null;
|
|
10303
|
+
external_group_key?: string | null;
|
|
9623
10304
|
id?: string;
|
|
9624
10305
|
last_synced_at?: string | null;
|
|
9625
10306
|
name: string;
|
|
@@ -9638,6 +10319,7 @@ export type Database = {
|
|
|
9638
10319
|
country?: string | null;
|
|
9639
10320
|
created_at?: string;
|
|
9640
10321
|
email?: string | null;
|
|
10322
|
+
external_group_key?: string | null;
|
|
9641
10323
|
id?: string;
|
|
9642
10324
|
last_synced_at?: string | null;
|
|
9643
10325
|
name?: string;
|
|
@@ -9808,6 +10490,8 @@ export type Database = {
|
|
|
9808
10490
|
twinfield_invoice_settings: {
|
|
9809
10491
|
Row: {
|
|
9810
10492
|
created_at: string;
|
|
10493
|
+
debtor_gl_account: string;
|
|
10494
|
+
default_credit_invoice_type: string | null;
|
|
9811
10495
|
default_gl_account: string;
|
|
9812
10496
|
default_invoice_type: string;
|
|
9813
10497
|
default_payment_term_days: number;
|
|
@@ -9816,11 +10500,15 @@ export type Database = {
|
|
|
9816
10500
|
invoice_enabled_fo: boolean;
|
|
9817
10501
|
invoice_enabled_ho: boolean;
|
|
9818
10502
|
invoice_enabled_mo: boolean;
|
|
10503
|
+
payment_gl_account: string;
|
|
10504
|
+
payment_journal_code: string;
|
|
9819
10505
|
updated_at: string;
|
|
9820
10506
|
user_id: string;
|
|
9821
10507
|
};
|
|
9822
10508
|
Insert: {
|
|
9823
10509
|
created_at?: string;
|
|
10510
|
+
debtor_gl_account?: string;
|
|
10511
|
+
default_credit_invoice_type?: string | null;
|
|
9824
10512
|
default_gl_account?: string;
|
|
9825
10513
|
default_invoice_type?: string;
|
|
9826
10514
|
default_payment_term_days?: number;
|
|
@@ -9829,11 +10517,15 @@ export type Database = {
|
|
|
9829
10517
|
invoice_enabled_fo?: boolean;
|
|
9830
10518
|
invoice_enabled_ho?: boolean;
|
|
9831
10519
|
invoice_enabled_mo?: boolean;
|
|
10520
|
+
payment_gl_account?: string;
|
|
10521
|
+
payment_journal_code?: string;
|
|
9832
10522
|
updated_at?: string;
|
|
9833
10523
|
user_id: string;
|
|
9834
10524
|
};
|
|
9835
10525
|
Update: {
|
|
9836
10526
|
created_at?: string;
|
|
10527
|
+
debtor_gl_account?: string;
|
|
10528
|
+
default_credit_invoice_type?: string | null;
|
|
9837
10529
|
default_gl_account?: string;
|
|
9838
10530
|
default_invoice_type?: string;
|
|
9839
10531
|
default_payment_term_days?: number;
|
|
@@ -9842,6 +10534,8 @@ export type Database = {
|
|
|
9842
10534
|
invoice_enabled_fo?: boolean;
|
|
9843
10535
|
invoice_enabled_ho?: boolean;
|
|
9844
10536
|
invoice_enabled_mo?: boolean;
|
|
10537
|
+
payment_gl_account?: string;
|
|
10538
|
+
payment_journal_code?: string;
|
|
9845
10539
|
updated_at?: string;
|
|
9846
10540
|
user_id?: string;
|
|
9847
10541
|
};
|
|
@@ -10064,43 +10758,49 @@ export type Database = {
|
|
|
10064
10758
|
};
|
|
10065
10759
|
twinfield_push_queue: {
|
|
10066
10760
|
Row: {
|
|
10761
|
+
action: string;
|
|
10067
10762
|
attempts: number;
|
|
10068
10763
|
connection_id: string;
|
|
10069
10764
|
created_at: string;
|
|
10765
|
+
customer_id: string | null;
|
|
10070
10766
|
external_id: string | null;
|
|
10071
10767
|
id: string;
|
|
10072
10768
|
idempotency_key: string;
|
|
10073
10769
|
last_error: string | null;
|
|
10074
10770
|
next_attempt_at: string;
|
|
10075
|
-
office_code: string;
|
|
10771
|
+
office_code: string | null;
|
|
10076
10772
|
payload: Json;
|
|
10077
10773
|
status: string;
|
|
10078
10774
|
updated_at: string;
|
|
10079
10775
|
};
|
|
10080
10776
|
Insert: {
|
|
10777
|
+
action?: string;
|
|
10081
10778
|
attempts?: number;
|
|
10082
10779
|
connection_id: string;
|
|
10083
10780
|
created_at?: string;
|
|
10781
|
+
customer_id?: string | null;
|
|
10084
10782
|
external_id?: string | null;
|
|
10085
10783
|
id?: string;
|
|
10086
10784
|
idempotency_key: string;
|
|
10087
10785
|
last_error?: string | null;
|
|
10088
10786
|
next_attempt_at?: string;
|
|
10089
|
-
office_code
|
|
10787
|
+
office_code?: string | null;
|
|
10090
10788
|
payload: Json;
|
|
10091
10789
|
status?: string;
|
|
10092
10790
|
updated_at?: string;
|
|
10093
10791
|
};
|
|
10094
10792
|
Update: {
|
|
10793
|
+
action?: string;
|
|
10095
10794
|
attempts?: number;
|
|
10096
10795
|
connection_id?: string;
|
|
10097
10796
|
created_at?: string;
|
|
10797
|
+
customer_id?: string | null;
|
|
10098
10798
|
external_id?: string | null;
|
|
10099
10799
|
id?: string;
|
|
10100
10800
|
idempotency_key?: string;
|
|
10101
10801
|
last_error?: string | null;
|
|
10102
10802
|
next_attempt_at?: string;
|
|
10103
|
-
office_code?: string;
|
|
10803
|
+
office_code?: string | null;
|
|
10104
10804
|
payload?: Json;
|
|
10105
10805
|
status?: string;
|
|
10106
10806
|
updated_at?: string;
|
|
@@ -10112,6 +10812,13 @@ export type Database = {
|
|
|
10112
10812
|
isOneToOne: false;
|
|
10113
10813
|
referencedRelation: "twinfield_connections";
|
|
10114
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"];
|
|
10115
10822
|
}
|
|
10116
10823
|
];
|
|
10117
10824
|
};
|
|
@@ -10327,72 +11034,328 @@ export type Database = {
|
|
|
10327
11034
|
size_bytes?: number | null;
|
|
10328
11035
|
};
|
|
10329
11036
|
Update: {
|
|
10330
|
-
action?: string;
|
|
10331
|
-
attempt_number?: number;
|
|
10332
|
-
caller?: string;
|
|
10333
|
-
client_user_id?: string | null;
|
|
10334
|
-
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;
|
|
10335
11238
|
created_at?: string;
|
|
10336
|
-
|
|
10337
|
-
error_message?: string | null;
|
|
10338
|
-
filename?: string | null;
|
|
11239
|
+
ended_at?: string | null;
|
|
10339
11240
|
id?: string;
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
reference_id?: string | null;
|
|
10344
|
-
request_body_hash?: string | null;
|
|
10345
|
-
request_timestamp?: number | null;
|
|
10346
|
-
response_content_type?: string | null;
|
|
10347
|
-
response_status?: number | null;
|
|
10348
|
-
size_bytes?: number | null;
|
|
11241
|
+
started_at?: string;
|
|
11242
|
+
user_id?: string;
|
|
11243
|
+
werkbon_id?: string;
|
|
10349
11244
|
};
|
|
10350
|
-
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
|
+
];
|
|
10351
11254
|
};
|
|
10352
|
-
|
|
11255
|
+
werkbonnen: {
|
|
10353
11256
|
Row: {
|
|
10354
|
-
|
|
10355
|
-
|
|
11257
|
+
assigned_user_id: string | null;
|
|
11258
|
+
budget_mandate_cents: number;
|
|
11259
|
+
complaint_description: string | null;
|
|
10356
11260
|
created_at: string;
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
11261
|
+
created_by: string | null;
|
|
11262
|
+
customer_id: string | null;
|
|
11263
|
+
externe_referentie: string | null;
|
|
11264
|
+
first_time_fix: boolean | null;
|
|
10360
11265
|
id: string;
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
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;
|
|
10366
11284
|
};
|
|
10367
11285
|
Insert: {
|
|
10368
|
-
|
|
10369
|
-
|
|
11286
|
+
assigned_user_id?: string | null;
|
|
11287
|
+
budget_mandate_cents?: number;
|
|
11288
|
+
complaint_description?: string | null;
|
|
10370
11289
|
created_at?: string;
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
11290
|
+
created_by?: string | null;
|
|
11291
|
+
customer_id?: string | null;
|
|
11292
|
+
externe_referentie?: string | null;
|
|
11293
|
+
first_time_fix?: boolean | null;
|
|
10374
11294
|
id?: string;
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
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;
|
|
10380
11313
|
};
|
|
10381
11314
|
Update: {
|
|
10382
|
-
|
|
10383
|
-
|
|
11315
|
+
assigned_user_id?: string | null;
|
|
11316
|
+
budget_mandate_cents?: number;
|
|
11317
|
+
complaint_description?: string | null;
|
|
10384
11318
|
created_at?: string;
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
11319
|
+
created_by?: string | null;
|
|
11320
|
+
customer_id?: string | null;
|
|
11321
|
+
externe_referentie?: string | null;
|
|
11322
|
+
first_time_fix?: boolean | null;
|
|
10388
11323
|
id?: string;
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
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;
|
|
10394
11342
|
};
|
|
10395
|
-
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
|
+
];
|
|
10396
11359
|
};
|
|
10397
11360
|
work_order_monteurs: {
|
|
10398
11361
|
Row: {
|
|
@@ -10570,6 +11533,8 @@ export type Database = {
|
|
|
10570
11533
|
created_at: string | null;
|
|
10571
11534
|
created_by: string | null;
|
|
10572
11535
|
display_name: string | null;
|
|
11536
|
+
graph_subscription_expires_at: string | null;
|
|
11537
|
+
graph_subscription_id: string | null;
|
|
10573
11538
|
has_access_token: boolean | null;
|
|
10574
11539
|
has_client_id: boolean | null;
|
|
10575
11540
|
has_client_secret: boolean | null;
|
|
@@ -10587,6 +11552,7 @@ export type Database = {
|
|
|
10587
11552
|
oauth_mode: string | null;
|
|
10588
11553
|
provider: string | null;
|
|
10589
11554
|
purpose_assignments: Json | null;
|
|
11555
|
+
realtime_mode: string | null;
|
|
10590
11556
|
scopes: string[] | null;
|
|
10591
11557
|
smtp_host: string | null;
|
|
10592
11558
|
smtp_port: number | null;
|
|
@@ -10601,6 +11567,8 @@ export type Database = {
|
|
|
10601
11567
|
created_at?: string | null;
|
|
10602
11568
|
created_by?: string | null;
|
|
10603
11569
|
display_name?: string | null;
|
|
11570
|
+
graph_subscription_expires_at?: string | null;
|
|
11571
|
+
graph_subscription_id?: string | null;
|
|
10604
11572
|
has_access_token?: never;
|
|
10605
11573
|
has_client_id?: never;
|
|
10606
11574
|
has_client_secret?: never;
|
|
@@ -10618,6 +11586,7 @@ export type Database = {
|
|
|
10618
11586
|
oauth_mode?: string | null;
|
|
10619
11587
|
provider?: string | null;
|
|
10620
11588
|
purpose_assignments?: Json | null;
|
|
11589
|
+
realtime_mode?: string | null;
|
|
10621
11590
|
scopes?: string[] | null;
|
|
10622
11591
|
smtp_host?: string | null;
|
|
10623
11592
|
smtp_port?: number | null;
|
|
@@ -10632,6 +11601,8 @@ export type Database = {
|
|
|
10632
11601
|
created_at?: string | null;
|
|
10633
11602
|
created_by?: string | null;
|
|
10634
11603
|
display_name?: string | null;
|
|
11604
|
+
graph_subscription_expires_at?: string | null;
|
|
11605
|
+
graph_subscription_id?: string | null;
|
|
10635
11606
|
has_access_token?: never;
|
|
10636
11607
|
has_client_id?: never;
|
|
10637
11608
|
has_client_secret?: never;
|
|
@@ -10649,6 +11620,7 @@ export type Database = {
|
|
|
10649
11620
|
oauth_mode?: string | null;
|
|
10650
11621
|
provider?: string | null;
|
|
10651
11622
|
purpose_assignments?: Json | null;
|
|
11623
|
+
realtime_mode?: string | null;
|
|
10652
11624
|
scopes?: string[] | null;
|
|
10653
11625
|
smtp_host?: string | null;
|
|
10654
11626
|
smtp_port?: number | null;
|
|
@@ -10759,6 +11731,25 @@ export type Database = {
|
|
|
10759
11731
|
};
|
|
10760
11732
|
Relationships: [];
|
|
10761
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
|
+
};
|
|
10762
11753
|
local_customer_discounts: {
|
|
10763
11754
|
Row: {
|
|
10764
11755
|
base_price: number | null;
|
|
@@ -11074,13 +12065,6 @@ export type Database = {
|
|
|
11074
12065
|
};
|
|
11075
12066
|
Returns: number;
|
|
11076
12067
|
};
|
|
11077
|
-
_migrate_rewrite_stock_key: {
|
|
11078
|
-
Args: {
|
|
11079
|
-
_from_key: string;
|
|
11080
|
-
_to_key: string;
|
|
11081
|
-
};
|
|
11082
|
-
Returns: undefined;
|
|
11083
|
-
};
|
|
11084
12068
|
afh_city_code: {
|
|
11085
12069
|
Args: {
|
|
11086
12070
|
_city: string;
|
|
@@ -11192,31 +12176,36 @@ export type Database = {
|
|
|
11192
12176
|
};
|
|
11193
12177
|
Returns: Json;
|
|
11194
12178
|
};
|
|
11195
|
-
|
|
11196
|
-
Args: never;
|
|
11197
|
-
Returns: undefined;
|
|
11198
|
-
};
|
|
11199
|
-
consume_bom_for_production: {
|
|
12179
|
+
claim_twinfield_push_batch: {
|
|
11200
12180
|
Args: {
|
|
11201
|
-
|
|
11202
|
-
p_parent_id: string;
|
|
11203
|
-
p_parent_key: string;
|
|
11204
|
-
p_parent_kind: string;
|
|
11205
|
-
p_quantity: number;
|
|
11206
|
-
p_user_id: string;
|
|
12181
|
+
_limit?: number;
|
|
11207
12182
|
};
|
|
11208
|
-
Returns:
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
11217
|
-
|
|
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;
|
|
11218
12204
|
};
|
|
11219
|
-
|
|
12205
|
+
};
|
|
12206
|
+
cleanup_old_bookings: {
|
|
12207
|
+
Args: never;
|
|
12208
|
+
Returns: undefined;
|
|
11220
12209
|
};
|
|
11221
12210
|
consume_floriday_rate_limit: {
|
|
11222
12211
|
Args: {
|
|
@@ -11269,13 +12258,6 @@ export type Database = {
|
|
|
11269
12258
|
table_name: string;
|
|
11270
12259
|
}[];
|
|
11271
12260
|
};
|
|
11272
|
-
delete_samenstelling: {
|
|
11273
|
-
Args: {
|
|
11274
|
-
p_parent_id: string;
|
|
11275
|
-
p_parent_kind: string;
|
|
11276
|
-
};
|
|
11277
|
-
Returns: Json;
|
|
11278
|
-
};
|
|
11279
12261
|
dispatch_carrier_signups_sql: {
|
|
11280
12262
|
Args: {
|
|
11281
12263
|
_catchup?: string;
|
|
@@ -11317,6 +12299,16 @@ export type Database = {
|
|
|
11317
12299
|
status: string;
|
|
11318
12300
|
}[];
|
|
11319
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
|
+
};
|
|
11320
12312
|
enqueue_cart_replan_if_unlocked: {
|
|
11321
12313
|
Args: {
|
|
11322
12314
|
p_order_id: string;
|
|
@@ -11436,6 +12428,19 @@ export type Database = {
|
|
|
11436
12428
|
resource: string;
|
|
11437
12429
|
}[];
|
|
11438
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
|
+
};
|
|
11439
12444
|
get_floriday_clock_supplies_window: {
|
|
11440
12445
|
Args: {
|
|
11441
12446
|
p_from: string;
|
|
@@ -11508,21 +12513,6 @@ export type Database = {
|
|
|
11508
12513
|
minutes_since_success: number;
|
|
11509
12514
|
}[];
|
|
11510
12515
|
};
|
|
11511
|
-
get_group_allocation_keys: {
|
|
11512
|
-
Args: {
|
|
11513
|
-
p_product_id: string;
|
|
11514
|
-
};
|
|
11515
|
-
Returns: {
|
|
11516
|
-
k: string;
|
|
11517
|
-
ord: number;
|
|
11518
|
-
}[];
|
|
11519
|
-
};
|
|
11520
|
-
get_group_head_key: {
|
|
11521
|
-
Args: {
|
|
11522
|
-
p_group_id: string;
|
|
11523
|
-
};
|
|
11524
|
-
Returns: string;
|
|
11525
|
-
};
|
|
11526
12516
|
get_offer_by_link_code: {
|
|
11527
12517
|
Args: {
|
|
11528
12518
|
p_code: string;
|
|
@@ -11584,6 +12574,14 @@ export type Database = {
|
|
|
11584
12574
|
};
|
|
11585
12575
|
Returns: string;
|
|
11586
12576
|
};
|
|
12577
|
+
has_module_permission: {
|
|
12578
|
+
Args: {
|
|
12579
|
+
_min: string;
|
|
12580
|
+
_module_id: string;
|
|
12581
|
+
_user_id: string;
|
|
12582
|
+
};
|
|
12583
|
+
Returns: boolean;
|
|
12584
|
+
};
|
|
11587
12585
|
has_role: {
|
|
11588
12586
|
Args: {
|
|
11589
12587
|
_role: Database["public"]["Enums"]["app_role"];
|
|
@@ -11591,6 +12589,10 @@ export type Database = {
|
|
|
11591
12589
|
};
|
|
11592
12590
|
Returns: boolean;
|
|
11593
12591
|
};
|
|
12592
|
+
has_twinfield_link: {
|
|
12593
|
+
Args: never;
|
|
12594
|
+
Returns: boolean;
|
|
12595
|
+
};
|
|
11594
12596
|
is_authenticated: {
|
|
11595
12597
|
Args: never;
|
|
11596
12598
|
Returns: boolean;
|
|
@@ -11605,6 +12607,14 @@ export type Database = {
|
|
|
11605
12607
|
};
|
|
11606
12608
|
Returns: boolean;
|
|
11607
12609
|
};
|
|
12610
|
+
list_monteurs: {
|
|
12611
|
+
Args: never;
|
|
12612
|
+
Returns: {
|
|
12613
|
+
display_name: string;
|
|
12614
|
+
email: string;
|
|
12615
|
+
user_id: string;
|
|
12616
|
+
}[];
|
|
12617
|
+
};
|
|
11608
12618
|
local_effective_price: {
|
|
11609
12619
|
Args: {
|
|
11610
12620
|
_customer_id: string;
|
|
@@ -11639,19 +12649,6 @@ export type Database = {
|
|
|
11639
12649
|
};
|
|
11640
12650
|
Returns: undefined;
|
|
11641
12651
|
};
|
|
11642
|
-
merge_products: {
|
|
11643
|
-
Args: {
|
|
11644
|
-
_canonical: string;
|
|
11645
|
-
_loser: string;
|
|
11646
|
-
};
|
|
11647
|
-
Returns: undefined;
|
|
11648
|
-
};
|
|
11649
|
-
next_manufacture_partij: {
|
|
11650
|
-
Args: {
|
|
11651
|
-
_tenant_id: string;
|
|
11652
|
-
};
|
|
11653
|
-
Returns: string;
|
|
11654
|
-
};
|
|
11655
12652
|
next_order_number: {
|
|
11656
12653
|
Args: {
|
|
11657
12654
|
p_prefix: string;
|
|
@@ -11665,6 +12662,10 @@ export type Database = {
|
|
|
11665
12662
|
};
|
|
11666
12663
|
Returns: string;
|
|
11667
12664
|
};
|
|
12665
|
+
next_twinfield_code: {
|
|
12666
|
+
Args: never;
|
|
12667
|
+
Returns: string;
|
|
12668
|
+
};
|
|
11668
12669
|
next_work_order_number: {
|
|
11669
12670
|
Args: {
|
|
11670
12671
|
p_parent_work_order_id?: string;
|
|
@@ -11730,14 +12731,6 @@ export type Database = {
|
|
|
11730
12731
|
};
|
|
11731
12732
|
Returns: undefined;
|
|
11732
12733
|
};
|
|
11733
|
-
produce_designed_product: {
|
|
11734
|
-
Args: {
|
|
11735
|
-
p_parent_id: string;
|
|
11736
|
-
p_parent_kind: string;
|
|
11737
|
-
p_quantity: number;
|
|
11738
|
-
};
|
|
11739
|
-
Returns: Json;
|
|
11740
|
-
};
|
|
11741
12734
|
promote_trade_item_key: {
|
|
11742
12735
|
Args: {
|
|
11743
12736
|
p_new: string;
|
|
@@ -11745,10 +12738,6 @@ export type Database = {
|
|
|
11745
12738
|
};
|
|
11746
12739
|
Returns: undefined;
|
|
11747
12740
|
};
|
|
11748
|
-
recompute_all_reserved_stock: {
|
|
11749
|
-
Args: never;
|
|
11750
|
-
Returns: undefined;
|
|
11751
|
-
};
|
|
11752
12741
|
recompute_order_status: {
|
|
11753
12742
|
Args: {
|
|
11754
12743
|
p_order_id: string;
|
|
@@ -11791,52 +12780,46 @@ export type Database = {
|
|
|
11791
12780
|
};
|
|
11792
12781
|
Returns: number;
|
|
11793
12782
|
};
|
|
11794
|
-
|
|
12783
|
+
reorder_customer_price_groups: {
|
|
11795
12784
|
Args: {
|
|
11796
|
-
|
|
11797
|
-
p_entity_type: string;
|
|
12785
|
+
_ids: string[];
|
|
11798
12786
|
};
|
|
11799
12787
|
Returns: undefined;
|
|
11800
12788
|
};
|
|
11801
|
-
|
|
12789
|
+
reset_floriday_sync_cursor: {
|
|
11802
12790
|
Args: {
|
|
11803
|
-
|
|
11804
|
-
|
|
12791
|
+
p_connection_id: string;
|
|
12792
|
+
p_entity_type: string;
|
|
11805
12793
|
};
|
|
11806
|
-
Returns:
|
|
11807
|
-
allocated: number;
|
|
11808
|
-
trade_item_id: string;
|
|
11809
|
-
}[];
|
|
12794
|
+
Returns: undefined;
|
|
11810
12795
|
};
|
|
11811
|
-
|
|
12796
|
+
resolve_product_id_for_item: {
|
|
11812
12797
|
Args: {
|
|
11813
|
-
|
|
12798
|
+
p_product_name: string;
|
|
11814
12799
|
};
|
|
11815
12800
|
Returns: string;
|
|
11816
12801
|
};
|
|
11817
|
-
|
|
12802
|
+
retry_twinfield_push: {
|
|
11818
12803
|
Args: {
|
|
11819
|
-
|
|
12804
|
+
_customer_id: string;
|
|
11820
12805
|
};
|
|
11821
|
-
Returns:
|
|
12806
|
+
Returns: number;
|
|
11822
12807
|
};
|
|
11823
|
-
|
|
12808
|
+
schedule_floriday_additional_services_sync: {
|
|
11824
12809
|
Args: {
|
|
11825
|
-
|
|
12810
|
+
p_apikey: string;
|
|
12811
|
+
p_url: string;
|
|
11826
12812
|
};
|
|
11827
|
-
Returns:
|
|
12813
|
+
Returns: number;
|
|
11828
12814
|
};
|
|
11829
|
-
|
|
12815
|
+
schedule_floriday_agreement_calloffs_sync: {
|
|
11830
12816
|
Args: {
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
p_quantity: number;
|
|
11834
|
-
p_reason?: string;
|
|
11835
|
-
p_user_id?: string;
|
|
12817
|
+
p_apikey: string;
|
|
12818
|
+
p_url: string;
|
|
11836
12819
|
};
|
|
11837
|
-
Returns:
|
|
12820
|
+
Returns: number;
|
|
11838
12821
|
};
|
|
11839
|
-
|
|
12822
|
+
schedule_floriday_agreements_sync: {
|
|
11840
12823
|
Args: {
|
|
11841
12824
|
p_apikey: string;
|
|
11842
12825
|
p_url: string;
|
|
@@ -12111,12 +13094,6 @@ export type Database = {
|
|
|
12111
13094
|
};
|
|
12112
13095
|
Returns: undefined;
|
|
12113
13096
|
};
|
|
12114
|
-
sync_product_group_belading: {
|
|
12115
|
-
Args: {
|
|
12116
|
-
_group_id: string;
|
|
12117
|
-
};
|
|
12118
|
-
Returns: undefined;
|
|
12119
|
-
};
|
|
12120
13097
|
sync_product_packing_from_floriday_cache: {
|
|
12121
13098
|
Args: {
|
|
12122
13099
|
p_floriday_id: string;
|
|
@@ -12148,9 +13125,11 @@ export type Database = {
|
|
|
12148
13125
|
};
|
|
12149
13126
|
};
|
|
12150
13127
|
Enums: {
|
|
12151
|
-
app_role: "admin" | "
|
|
13128
|
+
app_role: "admin" | "planner" | "monteur" | "administratie";
|
|
12152
13129
|
exact_env: "staging" | "live";
|
|
12153
13130
|
exact_push_status: "pending" | "sent" | "error";
|
|
13131
|
+
itk_customer_segment: "Business" | "Private";
|
|
13132
|
+
itk_dynamic_field_type: "text" | "select" | "date" | "checkbox";
|
|
12154
13133
|
quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
|
|
12155
13134
|
};
|
|
12156
13135
|
CompositeTypes: {
|
|
@@ -12210,9 +13189,11 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
|
|
|
12210
13189
|
export declare const Constants: {
|
|
12211
13190
|
readonly public: {
|
|
12212
13191
|
readonly Enums: {
|
|
12213
|
-
readonly app_role: readonly ["admin", "
|
|
13192
|
+
readonly app_role: readonly ["admin", "planner", "monteur", "administratie"];
|
|
12214
13193
|
readonly exact_env: readonly ["staging", "live"];
|
|
12215
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"];
|
|
12216
13197
|
readonly quote_status: readonly ["concept", "verzonden", "bekeken", "in_behandeling", "geaccepteerd", "afgewezen", "verlopen", "gearchiveerd"];
|
|
12217
13198
|
};
|
|
12218
13199
|
};
|