@flowselections/floriday-authenticatie-module 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +385 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +385 -3
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +385 -3
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +389 -3
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/central-auth.server.d.ts +17 -0
- package/dist-lib/lib/central-auth.server.d.ts.map +1 -0
- package/dist-lib/lib/central-auth.server.js +65 -0
- package/dist-lib/lib/floricode.functions.d.ts +2757 -83
- package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auction-letters.functions.d.ts +385 -3
- package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-labels.functions.d.ts +385 -3
- package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +2310 -18
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-stickers.functions.d.ts +385 -3
- package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sync.functions.d.ts +12493 -651
- package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +2310 -18
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.d.ts +7178 -302
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +9 -21
- package/dist-lib/lib/gateway/cache-tables.d.ts +2 -0
- package/dist-lib/lib/gateway/cache-tables.d.ts.map +1 -0
- package/dist-lib/lib/gateway/cache-tables.js +27 -0
- package/dist-lib/lib/gateway/cached-list.d.ts +15 -0
- package/dist-lib/lib/gateway/cached-list.d.ts.map +1 -0
- package/dist-lib/lib/gateway/cached-list.js +35 -0
- package/dist-lib/lib/gateway/index.d.ts +4 -0
- package/dist-lib/lib/gateway/index.d.ts.map +1 -0
- package/dist-lib/lib/gateway/index.js +3 -0
- package/dist-lib/lib/gateway/shared.d.ts +2 -0
- package/dist-lib/lib/gateway/shared.d.ts.map +1 -0
- package/dist-lib/lib/gateway/shared.js +3 -0
- package/package.json +7 -3
|
@@ -1051,6 +1051,143 @@ export type Database = {
|
|
|
1051
1051
|
};
|
|
1052
1052
|
Relationships: [];
|
|
1053
1053
|
};
|
|
1054
|
+
cart_planning_pick_times: {
|
|
1055
|
+
Row: {
|
|
1056
|
+
created_at: string;
|
|
1057
|
+
id: string;
|
|
1058
|
+
pot_size: string;
|
|
1059
|
+
seconds_per_cart: number;
|
|
1060
|
+
updated_at: string;
|
|
1061
|
+
};
|
|
1062
|
+
Insert: {
|
|
1063
|
+
created_at?: string;
|
|
1064
|
+
id?: string;
|
|
1065
|
+
pot_size: string;
|
|
1066
|
+
seconds_per_cart: number;
|
|
1067
|
+
updated_at?: string;
|
|
1068
|
+
};
|
|
1069
|
+
Update: {
|
|
1070
|
+
created_at?: string;
|
|
1071
|
+
id?: string;
|
|
1072
|
+
pot_size?: string;
|
|
1073
|
+
seconds_per_cart?: number;
|
|
1074
|
+
updated_at?: string;
|
|
1075
|
+
};
|
|
1076
|
+
Relationships: [];
|
|
1077
|
+
};
|
|
1078
|
+
cart_planning_product_overrides: {
|
|
1079
|
+
Row: {
|
|
1080
|
+
created_at: string;
|
|
1081
|
+
id: string;
|
|
1082
|
+
max_party_share_per_layer_pct_override: number | null;
|
|
1083
|
+
never_mix: boolean;
|
|
1084
|
+
notes: string | null;
|
|
1085
|
+
product_id: string;
|
|
1086
|
+
updated_at: string;
|
|
1087
|
+
};
|
|
1088
|
+
Insert: {
|
|
1089
|
+
created_at?: string;
|
|
1090
|
+
id?: string;
|
|
1091
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1092
|
+
never_mix?: boolean;
|
|
1093
|
+
notes?: string | null;
|
|
1094
|
+
product_id: string;
|
|
1095
|
+
updated_at?: string;
|
|
1096
|
+
};
|
|
1097
|
+
Update: {
|
|
1098
|
+
created_at?: string;
|
|
1099
|
+
id?: string;
|
|
1100
|
+
max_party_share_per_layer_pct_override?: number | null;
|
|
1101
|
+
never_mix?: boolean;
|
|
1102
|
+
notes?: string | null;
|
|
1103
|
+
product_id?: string;
|
|
1104
|
+
updated_at?: string;
|
|
1105
|
+
};
|
|
1106
|
+
Relationships: [
|
|
1107
|
+
{
|
|
1108
|
+
foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
|
|
1109
|
+
columns: ["product_id"];
|
|
1110
|
+
isOneToOne: true;
|
|
1111
|
+
referencedRelation: "products";
|
|
1112
|
+
referencedColumns: ["id"];
|
|
1113
|
+
}
|
|
1114
|
+
];
|
|
1115
|
+
};
|
|
1116
|
+
cart_planning_settings: {
|
|
1117
|
+
Row: {
|
|
1118
|
+
allow_editing_after_pickstation_send: boolean;
|
|
1119
|
+
buffer_grouping_mode: string;
|
|
1120
|
+
combine_floriday_orders: boolean;
|
|
1121
|
+
combine_floriday_orders_window: string;
|
|
1122
|
+
combine_orders_scope: string;
|
|
1123
|
+
default_workers: number;
|
|
1124
|
+
id: number;
|
|
1125
|
+
max_beladingen_per_layer: number;
|
|
1126
|
+
max_customers_per_cart: number;
|
|
1127
|
+
max_one_customer_per_layer: boolean;
|
|
1128
|
+
max_party_share_per_layer_pct: number;
|
|
1129
|
+
optimization_strategy: string;
|
|
1130
|
+
own_cart_from_layers: number;
|
|
1131
|
+
pick_time_mode: string;
|
|
1132
|
+
plants_per_day: number;
|
|
1133
|
+
plants_per_hour: number;
|
|
1134
|
+
require_same_carrier: boolean;
|
|
1135
|
+
require_same_crate_type: boolean;
|
|
1136
|
+
require_same_delivery_date: boolean;
|
|
1137
|
+
require_same_delivery_location: boolean;
|
|
1138
|
+
updated_at: string;
|
|
1139
|
+
updated_by: string | null;
|
|
1140
|
+
};
|
|
1141
|
+
Insert: {
|
|
1142
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1143
|
+
buffer_grouping_mode?: string;
|
|
1144
|
+
combine_floriday_orders?: boolean;
|
|
1145
|
+
combine_floriday_orders_window?: string;
|
|
1146
|
+
combine_orders_scope?: string;
|
|
1147
|
+
default_workers?: number;
|
|
1148
|
+
id?: number;
|
|
1149
|
+
max_beladingen_per_layer?: number;
|
|
1150
|
+
max_customers_per_cart?: number;
|
|
1151
|
+
max_one_customer_per_layer?: boolean;
|
|
1152
|
+
max_party_share_per_layer_pct?: number;
|
|
1153
|
+
optimization_strategy?: string;
|
|
1154
|
+
own_cart_from_layers?: number;
|
|
1155
|
+
pick_time_mode?: string;
|
|
1156
|
+
plants_per_day?: number;
|
|
1157
|
+
plants_per_hour?: number;
|
|
1158
|
+
require_same_carrier?: boolean;
|
|
1159
|
+
require_same_crate_type?: boolean;
|
|
1160
|
+
require_same_delivery_date?: boolean;
|
|
1161
|
+
require_same_delivery_location?: boolean;
|
|
1162
|
+
updated_at?: string;
|
|
1163
|
+
updated_by?: string | null;
|
|
1164
|
+
};
|
|
1165
|
+
Update: {
|
|
1166
|
+
allow_editing_after_pickstation_send?: boolean;
|
|
1167
|
+
buffer_grouping_mode?: string;
|
|
1168
|
+
combine_floriday_orders?: boolean;
|
|
1169
|
+
combine_floriday_orders_window?: string;
|
|
1170
|
+
combine_orders_scope?: string;
|
|
1171
|
+
default_workers?: number;
|
|
1172
|
+
id?: number;
|
|
1173
|
+
max_beladingen_per_layer?: number;
|
|
1174
|
+
max_customers_per_cart?: number;
|
|
1175
|
+
max_one_customer_per_layer?: boolean;
|
|
1176
|
+
max_party_share_per_layer_pct?: number;
|
|
1177
|
+
optimization_strategy?: string;
|
|
1178
|
+
own_cart_from_layers?: number;
|
|
1179
|
+
pick_time_mode?: string;
|
|
1180
|
+
plants_per_day?: number;
|
|
1181
|
+
plants_per_hour?: number;
|
|
1182
|
+
require_same_carrier?: boolean;
|
|
1183
|
+
require_same_crate_type?: boolean;
|
|
1184
|
+
require_same_delivery_date?: boolean;
|
|
1185
|
+
require_same_delivery_location?: boolean;
|
|
1186
|
+
updated_at?: string;
|
|
1187
|
+
updated_by?: string | null;
|
|
1188
|
+
};
|
|
1189
|
+
Relationships: [];
|
|
1190
|
+
};
|
|
1054
1191
|
cart_replan_queue: {
|
|
1055
1192
|
Row: {
|
|
1056
1193
|
attempts: number;
|
|
@@ -1083,6 +1220,39 @@ export type Database = {
|
|
|
1083
1220
|
}
|
|
1084
1221
|
];
|
|
1085
1222
|
};
|
|
1223
|
+
cart_types: {
|
|
1224
|
+
Row: {
|
|
1225
|
+
created_at: string;
|
|
1226
|
+
id: string;
|
|
1227
|
+
is_default: boolean;
|
|
1228
|
+
layer_length_cm: number;
|
|
1229
|
+
layer_width_cm: number;
|
|
1230
|
+
layers_per_cart: number;
|
|
1231
|
+
name: string;
|
|
1232
|
+
updated_at: string;
|
|
1233
|
+
};
|
|
1234
|
+
Insert: {
|
|
1235
|
+
created_at?: string;
|
|
1236
|
+
id?: string;
|
|
1237
|
+
is_default?: boolean;
|
|
1238
|
+
layer_length_cm: number;
|
|
1239
|
+
layer_width_cm: number;
|
|
1240
|
+
layers_per_cart?: number;
|
|
1241
|
+
name: string;
|
|
1242
|
+
updated_at?: string;
|
|
1243
|
+
};
|
|
1244
|
+
Update: {
|
|
1245
|
+
created_at?: string;
|
|
1246
|
+
id?: string;
|
|
1247
|
+
is_default?: boolean;
|
|
1248
|
+
layer_length_cm?: number;
|
|
1249
|
+
layer_width_cm?: number;
|
|
1250
|
+
layers_per_cart?: number;
|
|
1251
|
+
name?: string;
|
|
1252
|
+
updated_at?: string;
|
|
1253
|
+
};
|
|
1254
|
+
Relationships: [];
|
|
1255
|
+
};
|
|
1086
1256
|
collections: {
|
|
1087
1257
|
Row: {
|
|
1088
1258
|
created_at: string;
|
|
@@ -1107,6 +1277,36 @@ export type Database = {
|
|
|
1107
1277
|
};
|
|
1108
1278
|
Relationships: [];
|
|
1109
1279
|
};
|
|
1280
|
+
crate_types: {
|
|
1281
|
+
Row: {
|
|
1282
|
+
created_at: string;
|
|
1283
|
+
id: string;
|
|
1284
|
+
length_cm: number;
|
|
1285
|
+
name: string;
|
|
1286
|
+
plants_per_crate: number;
|
|
1287
|
+
updated_at: string;
|
|
1288
|
+
width_cm: number;
|
|
1289
|
+
};
|
|
1290
|
+
Insert: {
|
|
1291
|
+
created_at?: string;
|
|
1292
|
+
id?: string;
|
|
1293
|
+
length_cm: number;
|
|
1294
|
+
name: string;
|
|
1295
|
+
plants_per_crate?: number;
|
|
1296
|
+
updated_at?: string;
|
|
1297
|
+
width_cm: number;
|
|
1298
|
+
};
|
|
1299
|
+
Update: {
|
|
1300
|
+
created_at?: string;
|
|
1301
|
+
id?: string;
|
|
1302
|
+
length_cm?: number;
|
|
1303
|
+
name?: string;
|
|
1304
|
+
plants_per_crate?: number;
|
|
1305
|
+
updated_at?: string;
|
|
1306
|
+
width_cm?: number;
|
|
1307
|
+
};
|
|
1308
|
+
Relationships: [];
|
|
1309
|
+
};
|
|
1110
1310
|
customer_audit_log: {
|
|
1111
1311
|
Row: {
|
|
1112
1312
|
action: string;
|
|
@@ -5142,6 +5342,27 @@ export type Database = {
|
|
|
5142
5342
|
}
|
|
5143
5343
|
];
|
|
5144
5344
|
};
|
|
5345
|
+
floriday_vbn_required_characteristics: {
|
|
5346
|
+
Row: {
|
|
5347
|
+
required_codes: string[];
|
|
5348
|
+
updated_at: string;
|
|
5349
|
+
updated_by: string | null;
|
|
5350
|
+
vbn_code: string;
|
|
5351
|
+
};
|
|
5352
|
+
Insert: {
|
|
5353
|
+
required_codes?: string[];
|
|
5354
|
+
updated_at?: string;
|
|
5355
|
+
updated_by?: string | null;
|
|
5356
|
+
vbn_code: string;
|
|
5357
|
+
};
|
|
5358
|
+
Update: {
|
|
5359
|
+
required_codes?: string[];
|
|
5360
|
+
updated_at?: string;
|
|
5361
|
+
updated_by?: string | null;
|
|
5362
|
+
vbn_code?: string;
|
|
5363
|
+
};
|
|
5364
|
+
Relationships: [];
|
|
5365
|
+
};
|
|
5145
5366
|
floriday_warehouses_cache: {
|
|
5146
5367
|
Row: {
|
|
5147
5368
|
connection_id: string;
|
|
@@ -5872,6 +6093,69 @@ export type Database = {
|
|
|
5872
6093
|
};
|
|
5873
6094
|
Relationships: [];
|
|
5874
6095
|
};
|
|
6096
|
+
logistics_capacity_events: {
|
|
6097
|
+
Row: {
|
|
6098
|
+
available_carts: number;
|
|
6099
|
+
created_at: string;
|
|
6100
|
+
id: string;
|
|
6101
|
+
measures: Json;
|
|
6102
|
+
note: string | null;
|
|
6103
|
+
outcome: string;
|
|
6104
|
+
required_carts: number;
|
|
6105
|
+
reserve_minutes: number;
|
|
6106
|
+
shortage_carts: number;
|
|
6107
|
+
status: string;
|
|
6108
|
+
user_id: string;
|
|
6109
|
+
};
|
|
6110
|
+
Insert: {
|
|
6111
|
+
available_carts?: number;
|
|
6112
|
+
created_at?: string;
|
|
6113
|
+
id?: string;
|
|
6114
|
+
measures?: Json;
|
|
6115
|
+
note?: string | null;
|
|
6116
|
+
outcome?: string;
|
|
6117
|
+
required_carts?: number;
|
|
6118
|
+
reserve_minutes?: number;
|
|
6119
|
+
shortage_carts?: number;
|
|
6120
|
+
status: string;
|
|
6121
|
+
user_id: string;
|
|
6122
|
+
};
|
|
6123
|
+
Update: {
|
|
6124
|
+
available_carts?: number;
|
|
6125
|
+
created_at?: string;
|
|
6126
|
+
id?: string;
|
|
6127
|
+
measures?: Json;
|
|
6128
|
+
note?: string | null;
|
|
6129
|
+
outcome?: string;
|
|
6130
|
+
required_carts?: number;
|
|
6131
|
+
reserve_minutes?: number;
|
|
6132
|
+
shortage_carts?: number;
|
|
6133
|
+
status?: string;
|
|
6134
|
+
user_id?: string;
|
|
6135
|
+
};
|
|
6136
|
+
Relationships: [];
|
|
6137
|
+
};
|
|
6138
|
+
logistics_capacity_settings: {
|
|
6139
|
+
Row: {
|
|
6140
|
+
created_at: string;
|
|
6141
|
+
settings: Json;
|
|
6142
|
+
updated_at: string;
|
|
6143
|
+
user_id: string;
|
|
6144
|
+
};
|
|
6145
|
+
Insert: {
|
|
6146
|
+
created_at?: string;
|
|
6147
|
+
settings?: Json;
|
|
6148
|
+
updated_at?: string;
|
|
6149
|
+
user_id: string;
|
|
6150
|
+
};
|
|
6151
|
+
Update: {
|
|
6152
|
+
created_at?: string;
|
|
6153
|
+
settings?: Json;
|
|
6154
|
+
updated_at?: string;
|
|
6155
|
+
user_id?: string;
|
|
6156
|
+
};
|
|
6157
|
+
Relationships: [];
|
|
6158
|
+
};
|
|
5875
6159
|
logistics_decisions: {
|
|
5876
6160
|
Row: {
|
|
5877
6161
|
created_at: string;
|
|
@@ -7317,6 +7601,42 @@ export type Database = {
|
|
|
7317
7601
|
};
|
|
7318
7602
|
Relationships: [];
|
|
7319
7603
|
};
|
|
7604
|
+
order_buffers: {
|
|
7605
|
+
Row: {
|
|
7606
|
+
buffer_key: string;
|
|
7607
|
+
created_at: string;
|
|
7608
|
+
customer_id: string | null;
|
|
7609
|
+
grouping_mode: string;
|
|
7610
|
+
id: string;
|
|
7611
|
+
pickup_date: string | null;
|
|
7612
|
+
pickup_location: string | null;
|
|
7613
|
+
plan_locked_at: string | null;
|
|
7614
|
+
updated_at: string;
|
|
7615
|
+
};
|
|
7616
|
+
Insert: {
|
|
7617
|
+
buffer_key: string;
|
|
7618
|
+
created_at?: string;
|
|
7619
|
+
customer_id?: string | null;
|
|
7620
|
+
grouping_mode: string;
|
|
7621
|
+
id?: string;
|
|
7622
|
+
pickup_date?: string | null;
|
|
7623
|
+
pickup_location?: string | null;
|
|
7624
|
+
plan_locked_at?: string | null;
|
|
7625
|
+
updated_at?: string;
|
|
7626
|
+
};
|
|
7627
|
+
Update: {
|
|
7628
|
+
buffer_key?: string;
|
|
7629
|
+
created_at?: string;
|
|
7630
|
+
customer_id?: string | null;
|
|
7631
|
+
grouping_mode?: string;
|
|
7632
|
+
id?: string;
|
|
7633
|
+
pickup_date?: string | null;
|
|
7634
|
+
pickup_location?: string | null;
|
|
7635
|
+
plan_locked_at?: string | null;
|
|
7636
|
+
updated_at?: string;
|
|
7637
|
+
};
|
|
7638
|
+
Relationships: [];
|
|
7639
|
+
};
|
|
7320
7640
|
order_cart_items: {
|
|
7321
7641
|
Row: {
|
|
7322
7642
|
cart_id: string;
|
|
@@ -7387,6 +7707,7 @@ export type Database = {
|
|
|
7387
7707
|
order_carts: {
|
|
7388
7708
|
Row: {
|
|
7389
7709
|
algorithm_version: number;
|
|
7710
|
+
buffer_id: string | null;
|
|
7390
7711
|
cart_number: number;
|
|
7391
7712
|
created_at: string;
|
|
7392
7713
|
id: string;
|
|
@@ -7394,13 +7715,14 @@ export type Database = {
|
|
|
7394
7715
|
is_complete: boolean;
|
|
7395
7716
|
notes: string | null;
|
|
7396
7717
|
occupancy_pct: number;
|
|
7397
|
-
order_id: string;
|
|
7718
|
+
order_id: string | null;
|
|
7398
7719
|
source: string;
|
|
7399
7720
|
total_layers_used: number;
|
|
7400
7721
|
updated_at: string;
|
|
7401
7722
|
};
|
|
7402
7723
|
Insert: {
|
|
7403
7724
|
algorithm_version?: number;
|
|
7725
|
+
buffer_id?: string | null;
|
|
7404
7726
|
cart_number: number;
|
|
7405
7727
|
created_at?: string;
|
|
7406
7728
|
id?: string;
|
|
@@ -7408,13 +7730,14 @@ export type Database = {
|
|
|
7408
7730
|
is_complete?: boolean;
|
|
7409
7731
|
notes?: string | null;
|
|
7410
7732
|
occupancy_pct?: number;
|
|
7411
|
-
order_id
|
|
7733
|
+
order_id?: string | null;
|
|
7412
7734
|
source?: string;
|
|
7413
7735
|
total_layers_used?: number;
|
|
7414
7736
|
updated_at?: string;
|
|
7415
7737
|
};
|
|
7416
7738
|
Update: {
|
|
7417
7739
|
algorithm_version?: number;
|
|
7740
|
+
buffer_id?: string | null;
|
|
7418
7741
|
cart_number?: number;
|
|
7419
7742
|
created_at?: string;
|
|
7420
7743
|
id?: string;
|
|
@@ -7422,12 +7745,19 @@ export type Database = {
|
|
|
7422
7745
|
is_complete?: boolean;
|
|
7423
7746
|
notes?: string | null;
|
|
7424
7747
|
occupancy_pct?: number;
|
|
7425
|
-
order_id?: string;
|
|
7748
|
+
order_id?: string | null;
|
|
7426
7749
|
source?: string;
|
|
7427
7750
|
total_layers_used?: number;
|
|
7428
7751
|
updated_at?: string;
|
|
7429
7752
|
};
|
|
7430
7753
|
Relationships: [
|
|
7754
|
+
{
|
|
7755
|
+
foreignKeyName: "order_carts_buffer_id_fkey";
|
|
7756
|
+
columns: ["buffer_id"];
|
|
7757
|
+
isOneToOne: false;
|
|
7758
|
+
referencedRelation: "order_buffers";
|
|
7759
|
+
referencedColumns: ["id"];
|
|
7760
|
+
},
|
|
7431
7761
|
{
|
|
7432
7762
|
foreignKeyName: "order_carts_order_id_fkey";
|
|
7433
7763
|
columns: ["order_id"];
|
|
@@ -7678,12 +8008,14 @@ export type Database = {
|
|
|
7678
8008
|
};
|
|
7679
8009
|
orders: {
|
|
7680
8010
|
Row: {
|
|
8011
|
+
buffer_id: string | null;
|
|
7681
8012
|
created_at: string;
|
|
7682
8013
|
custom_fields: Json;
|
|
7683
8014
|
customer_id: string | null;
|
|
7684
8015
|
customer_name: string;
|
|
7685
8016
|
deleted_at: string | null;
|
|
7686
8017
|
delivery_date: string | null;
|
|
8018
|
+
floriday_sales_order_id: string | null;
|
|
7687
8019
|
id: string;
|
|
7688
8020
|
is_reservation: boolean;
|
|
7689
8021
|
notes: string | null;
|
|
@@ -7697,12 +8029,14 @@ export type Database = {
|
|
|
7697
8029
|
updated_at: string;
|
|
7698
8030
|
};
|
|
7699
8031
|
Insert: {
|
|
8032
|
+
buffer_id?: string | null;
|
|
7700
8033
|
created_at?: string;
|
|
7701
8034
|
custom_fields?: Json;
|
|
7702
8035
|
customer_id?: string | null;
|
|
7703
8036
|
customer_name?: string;
|
|
7704
8037
|
deleted_at?: string | null;
|
|
7705
8038
|
delivery_date?: string | null;
|
|
8039
|
+
floriday_sales_order_id?: string | null;
|
|
7706
8040
|
id?: string;
|
|
7707
8041
|
is_reservation?: boolean;
|
|
7708
8042
|
notes?: string | null;
|
|
@@ -7716,12 +8050,14 @@ export type Database = {
|
|
|
7716
8050
|
updated_at?: string;
|
|
7717
8051
|
};
|
|
7718
8052
|
Update: {
|
|
8053
|
+
buffer_id?: string | null;
|
|
7719
8054
|
created_at?: string;
|
|
7720
8055
|
custom_fields?: Json;
|
|
7721
8056
|
customer_id?: string | null;
|
|
7722
8057
|
customer_name?: string;
|
|
7723
8058
|
deleted_at?: string | null;
|
|
7724
8059
|
delivery_date?: string | null;
|
|
8060
|
+
floriday_sales_order_id?: string | null;
|
|
7725
8061
|
id?: string;
|
|
7726
8062
|
is_reservation?: boolean;
|
|
7727
8063
|
notes?: string | null;
|
|
@@ -7735,6 +8071,13 @@ export type Database = {
|
|
|
7735
8071
|
updated_at?: string;
|
|
7736
8072
|
};
|
|
7737
8073
|
Relationships: [
|
|
8074
|
+
{
|
|
8075
|
+
foreignKeyName: "orders_buffer_id_fkey";
|
|
8076
|
+
columns: ["buffer_id"];
|
|
8077
|
+
isOneToOne: false;
|
|
8078
|
+
referencedRelation: "order_buffers";
|
|
8079
|
+
referencedColumns: ["id"];
|
|
8080
|
+
},
|
|
7738
8081
|
{
|
|
7739
8082
|
foreignKeyName: "orders_customer_id_fkey";
|
|
7740
8083
|
columns: ["customer_id"];
|
|
@@ -7874,6 +8217,7 @@ export type Database = {
|
|
|
7874
8217
|
created_at: string;
|
|
7875
8218
|
id: string;
|
|
7876
8219
|
notes: string | null;
|
|
8220
|
+
packing_configuration_id: string | null;
|
|
7877
8221
|
parent_product_id: string | null;
|
|
7878
8222
|
parent_trade_item_floriday_id: string | null;
|
|
7879
8223
|
quantity: number;
|
|
@@ -7888,6 +8232,7 @@ export type Database = {
|
|
|
7888
8232
|
created_at?: string;
|
|
7889
8233
|
id?: string;
|
|
7890
8234
|
notes?: string | null;
|
|
8235
|
+
packing_configuration_id?: string | null;
|
|
7891
8236
|
parent_product_id?: string | null;
|
|
7892
8237
|
parent_trade_item_floriday_id?: string | null;
|
|
7893
8238
|
quantity?: number;
|
|
@@ -7902,6 +8247,7 @@ export type Database = {
|
|
|
7902
8247
|
created_at?: string;
|
|
7903
8248
|
id?: string;
|
|
7904
8249
|
notes?: string | null;
|
|
8250
|
+
packing_configuration_id?: string | null;
|
|
7905
8251
|
parent_product_id?: string | null;
|
|
7906
8252
|
parent_trade_item_floriday_id?: string | null;
|
|
7907
8253
|
quantity?: number;
|
|
@@ -8112,11 +8458,13 @@ export type Database = {
|
|
|
8112
8458
|
created_at: string;
|
|
8113
8459
|
id: string;
|
|
8114
8460
|
is_package: boolean;
|
|
8461
|
+
label: string | null;
|
|
8115
8462
|
layers_per_load_carrier: number | null;
|
|
8116
8463
|
load_carrier: string | null;
|
|
8117
8464
|
package_id: string | null;
|
|
8118
8465
|
package_label: string | null;
|
|
8119
8466
|
packages_per_layer: number | null;
|
|
8467
|
+
packing_configuration_id: string;
|
|
8120
8468
|
product_id: string | null;
|
|
8121
8469
|
tenant_id: string;
|
|
8122
8470
|
trade_item_floriday_id: string | null;
|
|
@@ -8127,11 +8475,13 @@ export type Database = {
|
|
|
8127
8475
|
created_at?: string;
|
|
8128
8476
|
id?: string;
|
|
8129
8477
|
is_package?: boolean;
|
|
8478
|
+
label?: string | null;
|
|
8130
8479
|
layers_per_load_carrier?: number | null;
|
|
8131
8480
|
load_carrier?: string | null;
|
|
8132
8481
|
package_id?: string | null;
|
|
8133
8482
|
package_label?: string | null;
|
|
8134
8483
|
packages_per_layer?: number | null;
|
|
8484
|
+
packing_configuration_id?: string;
|
|
8135
8485
|
product_id?: string | null;
|
|
8136
8486
|
tenant_id: string;
|
|
8137
8487
|
trade_item_floriday_id?: string | null;
|
|
@@ -8142,11 +8492,13 @@ export type Database = {
|
|
|
8142
8492
|
created_at?: string;
|
|
8143
8493
|
id?: string;
|
|
8144
8494
|
is_package?: boolean;
|
|
8495
|
+
label?: string | null;
|
|
8145
8496
|
layers_per_load_carrier?: number | null;
|
|
8146
8497
|
load_carrier?: string | null;
|
|
8147
8498
|
package_id?: string | null;
|
|
8148
8499
|
package_label?: string | null;
|
|
8149
8500
|
packages_per_layer?: number | null;
|
|
8501
|
+
packing_configuration_id?: string;
|
|
8150
8502
|
product_id?: string | null;
|
|
8151
8503
|
tenant_id?: string;
|
|
8152
8504
|
trade_item_floriday_id?: string | null;
|
|
@@ -8230,6 +8582,8 @@ export type Database = {
|
|
|
8230
8582
|
trade_item_key: string | null;
|
|
8231
8583
|
unit: string;
|
|
8232
8584
|
updated_at: string;
|
|
8585
|
+
vat_code: string | null;
|
|
8586
|
+
vat_rate: number | null;
|
|
8233
8587
|
weight: string | null;
|
|
8234
8588
|
};
|
|
8235
8589
|
Insert: {
|
|
@@ -8258,6 +8612,8 @@ export type Database = {
|
|
|
8258
8612
|
trade_item_key?: string | null;
|
|
8259
8613
|
unit?: string;
|
|
8260
8614
|
updated_at?: string;
|
|
8615
|
+
vat_code?: string | null;
|
|
8616
|
+
vat_rate?: number | null;
|
|
8261
8617
|
weight?: string | null;
|
|
8262
8618
|
};
|
|
8263
8619
|
Update: {
|
|
@@ -8286,6 +8642,8 @@ export type Database = {
|
|
|
8286
8642
|
trade_item_key?: string | null;
|
|
8287
8643
|
unit?: string;
|
|
8288
8644
|
updated_at?: string;
|
|
8645
|
+
vat_code?: string | null;
|
|
8646
|
+
vat_rate?: number | null;
|
|
8289
8647
|
weight?: string | null;
|
|
8290
8648
|
};
|
|
8291
8649
|
Relationships: [];
|
|
@@ -11437,6 +11795,12 @@ export type Database = {
|
|
|
11437
11795
|
processed_items: number;
|
|
11438
11796
|
}[];
|
|
11439
11797
|
};
|
|
11798
|
+
calculate_layer_stock: {
|
|
11799
|
+
Args: {
|
|
11800
|
+
p_product_id: string;
|
|
11801
|
+
};
|
|
11802
|
+
Returns: number;
|
|
11803
|
+
};
|
|
11440
11804
|
call_exact_route: {
|
|
11441
11805
|
Args: {
|
|
11442
11806
|
path: string;
|
|
@@ -11806,6 +12170,12 @@ export type Database = {
|
|
|
11806
12170
|
};
|
|
11807
12171
|
Returns: string;
|
|
11808
12172
|
};
|
|
12173
|
+
get_inventory_stock_for_key: {
|
|
12174
|
+
Args: {
|
|
12175
|
+
p_key: string;
|
|
12176
|
+
};
|
|
12177
|
+
Returns: number;
|
|
12178
|
+
};
|
|
11809
12179
|
get_offer_by_link_code: {
|
|
11810
12180
|
Args: {
|
|
11811
12181
|
p_code: string;
|
|
@@ -11836,6 +12206,12 @@ export type Database = {
|
|
|
11836
12206
|
};
|
|
11837
12207
|
Returns: string;
|
|
11838
12208
|
};
|
|
12209
|
+
get_product_group_available_stock: {
|
|
12210
|
+
Args: {
|
|
12211
|
+
p_group_id: string;
|
|
12212
|
+
};
|
|
12213
|
+
Returns: number;
|
|
12214
|
+
};
|
|
11839
12215
|
get_room_busy_windows: {
|
|
11840
12216
|
Args: {
|
|
11841
12217
|
p_from: string;
|
|
@@ -12402,12 +12778,22 @@ export type Database = {
|
|
|
12402
12778
|
};
|
|
12403
12779
|
Returns: string[];
|
|
12404
12780
|
};
|
|
12781
|
+
sync_all_layer_stocks: {
|
|
12782
|
+
Args: never;
|
|
12783
|
+
Returns: undefined;
|
|
12784
|
+
};
|
|
12405
12785
|
sync_cached_packing_from_product: {
|
|
12406
12786
|
Args: {
|
|
12407
12787
|
p_product_id: string;
|
|
12408
12788
|
};
|
|
12409
12789
|
Returns: undefined;
|
|
12410
12790
|
};
|
|
12791
|
+
sync_layer_stock: {
|
|
12792
|
+
Args: {
|
|
12793
|
+
p_product_id: string;
|
|
12794
|
+
};
|
|
12795
|
+
Returns: undefined;
|
|
12796
|
+
};
|
|
12411
12797
|
sync_order_cart_item_packing_from_product: {
|
|
12412
12798
|
Args: {
|
|
12413
12799
|
p_product_id: string;
|