@flowselections/floriday-authenticatie-module 1.0.17 → 1.0.19
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/floriday/FlorydayConnectionPage.d.ts.map +1 -1
- package/dist-lib/components/floriday/FlorydayConnectionPage.js +2 -1
- package/dist-lib/components/settings/FloricodeSettingsCard.d.ts +2 -0
- package/dist-lib/components/settings/FloricodeSettingsCard.d.ts.map +1 -0
- package/dist-lib/components/settings/FloricodeSettingsCard.js +235 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +2 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +524 -4
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +524 -4
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +524 -4
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +532 -4
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floricode-credentials.server.d.ts +21 -0
- package/dist-lib/lib/floricode-credentials.server.d.ts.map +1 -0
- package/dist-lib/lib/floricode-credentials.server.js +158 -0
- package/dist-lib/lib/floricode-product-features.d.ts.map +1 -1
- package/dist-lib/lib/floricode-product-features.js +19 -33
- package/dist-lib/lib/floricode-regulatory-features.d.ts.map +1 -1
- package/dist-lib/lib/floricode-regulatory-features.js +51 -41
- package/dist-lib/lib/floricode-sync.server.d.ts +35 -0
- package/dist-lib/lib/floricode-sync.server.d.ts.map +1 -0
- package/dist-lib/lib/floricode-sync.server.js +211 -0
- package/dist-lib/lib/floricode.functions.d.ts +78828 -0
- package/dist-lib/lib/floricode.functions.d.ts.map +1 -0
- package/dist-lib/lib/floricode.functions.js +178 -0
- package/dist-lib/lib/floriday-auction-letters.functions.d.ts +524 -4
- package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-auto-process.server.d.ts +34 -0
- package/dist-lib/lib/floriday-auto-process.server.d.ts.map +1 -0
- package/dist-lib/lib/floriday-auto-process.server.js +365 -0
- package/dist-lib/lib/floriday-fulfillment-lookup.server.d.ts +19 -0
- package/dist-lib/lib/floriday-fulfillment-lookup.server.d.ts.map +1 -0
- package/dist-lib/lib/floriday-fulfillment-lookup.server.js +130 -0
- package/dist-lib/lib/floriday-gateway-auth.d.ts +24 -0
- package/dist-lib/lib/floriday-gateway-auth.d.ts.map +1 -0
- package/dist-lib/lib/floriday-gateway-auth.js +127 -0
- package/dist-lib/lib/floriday-labels.functions.d.ts +524 -4
- package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-labels.functions.js +3 -2
- package/dist-lib/lib/floriday-public.functions.d.ts +3144 -24
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-rate-limit.server.d.ts +21 -0
- package/dist-lib/lib/floriday-rate-limit.server.d.ts.map +1 -0
- package/dist-lib/lib/floriday-rate-limit.server.js +75 -0
- package/dist-lib/lib/floriday-stickers.functions.d.ts +524 -4
- package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-sync.functions.d.ts +17292 -132
- package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +3192 -48
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.js +29 -4
- package/dist-lib/lib/floriday.functions.d.ts +9576 -198
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday.functions.js +39 -4
- package/dist-lib/lib/planning-helpers.d.ts +30 -0
- package/dist-lib/lib/planning-helpers.d.ts.map +1 -0
- package/dist-lib/lib/planning-helpers.js +62 -0
- package/package.json +3 -2
- package/public/flowselections-assets/floriday-authenticatie/floricode-logo.png +0 -0
|
@@ -9,7 +9,10 @@ export type Database = {
|
|
|
9
9
|
Tables: {
|
|
10
10
|
afhandeling_settings: {
|
|
11
11
|
Row: {
|
|
12
|
+
auto_print_delivery_note: boolean;
|
|
13
|
+
auto_process_paused: boolean;
|
|
12
14
|
created_at: string;
|
|
15
|
+
extra_pick_days_with_stickers: number;
|
|
13
16
|
id: string;
|
|
14
17
|
max_workdays_earlier_pick: number;
|
|
15
18
|
pick_days_before_transport: number;
|
|
@@ -23,7 +26,10 @@ export type Database = {
|
|
|
23
26
|
user_id: string;
|
|
24
27
|
};
|
|
25
28
|
Insert: {
|
|
29
|
+
auto_print_delivery_note?: boolean;
|
|
30
|
+
auto_process_paused?: boolean;
|
|
26
31
|
created_at?: string;
|
|
32
|
+
extra_pick_days_with_stickers?: number;
|
|
27
33
|
id?: string;
|
|
28
34
|
max_workdays_earlier_pick?: number;
|
|
29
35
|
pick_days_before_transport?: number;
|
|
@@ -37,7 +43,10 @@ export type Database = {
|
|
|
37
43
|
user_id: string;
|
|
38
44
|
};
|
|
39
45
|
Update: {
|
|
46
|
+
auto_print_delivery_note?: boolean;
|
|
47
|
+
auto_process_paused?: boolean;
|
|
40
48
|
created_at?: string;
|
|
49
|
+
extra_pick_days_with_stickers?: number;
|
|
41
50
|
id?: string;
|
|
42
51
|
max_workdays_earlier_pick?: number;
|
|
43
52
|
pick_days_before_transport?: number;
|
|
@@ -268,6 +277,9 @@ export type Database = {
|
|
|
268
277
|
created_at: string;
|
|
269
278
|
extra_id: string;
|
|
270
279
|
id: string;
|
|
280
|
+
original_unit_price: number | null;
|
|
281
|
+
override_reason: string | null;
|
|
282
|
+
override_unit_price: number | null;
|
|
271
283
|
quantity: number;
|
|
272
284
|
total_price: number;
|
|
273
285
|
unit_price: number;
|
|
@@ -277,6 +289,9 @@ export type Database = {
|
|
|
277
289
|
created_at?: string;
|
|
278
290
|
extra_id: string;
|
|
279
291
|
id?: string;
|
|
292
|
+
original_unit_price?: number | null;
|
|
293
|
+
override_reason?: string | null;
|
|
294
|
+
override_unit_price?: number | null;
|
|
280
295
|
quantity?: number;
|
|
281
296
|
total_price?: number;
|
|
282
297
|
unit_price?: number;
|
|
@@ -286,6 +301,9 @@ export type Database = {
|
|
|
286
301
|
created_at?: string;
|
|
287
302
|
extra_id?: string;
|
|
288
303
|
id?: string;
|
|
304
|
+
original_unit_price?: number | null;
|
|
305
|
+
override_reason?: string | null;
|
|
306
|
+
override_unit_price?: number | null;
|
|
289
307
|
quantity?: number;
|
|
290
308
|
total_price?: number;
|
|
291
309
|
unit_price?: number;
|
|
@@ -309,11 +327,15 @@ export type Database = {
|
|
|
309
327
|
};
|
|
310
328
|
bookings: {
|
|
311
329
|
Row: {
|
|
330
|
+
archive_reason: string | null;
|
|
331
|
+
archived_at: string | null;
|
|
332
|
+
archived_by: string | null;
|
|
312
333
|
company_name: string | null;
|
|
313
334
|
conflict_checked_at: string | null;
|
|
314
335
|
conflict_reason: string | null;
|
|
315
336
|
created_at: string;
|
|
316
337
|
created_by_role: string | null;
|
|
338
|
+
customer_address: string | null;
|
|
317
339
|
customer_email: string | null;
|
|
318
340
|
customer_name: string | null;
|
|
319
341
|
end_time: string;
|
|
@@ -325,7 +347,12 @@ export type Database = {
|
|
|
325
347
|
invoiced_at: string | null;
|
|
326
348
|
notes: string | null;
|
|
327
349
|
number_of_people: number;
|
|
350
|
+
overridden_at: string | null;
|
|
351
|
+
overridden_by: string | null;
|
|
352
|
+
override_reason: string | null;
|
|
353
|
+
price_override: boolean;
|
|
328
354
|
room_id: string;
|
|
355
|
+
room_price_override: number | null;
|
|
329
356
|
start_time: string;
|
|
330
357
|
status: string;
|
|
331
358
|
total_excl_vat: number | null;
|
|
@@ -334,11 +361,15 @@ export type Database = {
|
|
|
334
361
|
vat_amount: number | null;
|
|
335
362
|
};
|
|
336
363
|
Insert: {
|
|
364
|
+
archive_reason?: string | null;
|
|
365
|
+
archived_at?: string | null;
|
|
366
|
+
archived_by?: string | null;
|
|
337
367
|
company_name?: string | null;
|
|
338
368
|
conflict_checked_at?: string | null;
|
|
339
369
|
conflict_reason?: string | null;
|
|
340
370
|
created_at?: string;
|
|
341
371
|
created_by_role?: string | null;
|
|
372
|
+
customer_address?: string | null;
|
|
342
373
|
customer_email?: string | null;
|
|
343
374
|
customer_name?: string | null;
|
|
344
375
|
end_time: string;
|
|
@@ -350,7 +381,12 @@ export type Database = {
|
|
|
350
381
|
invoiced_at?: string | null;
|
|
351
382
|
notes?: string | null;
|
|
352
383
|
number_of_people?: number;
|
|
384
|
+
overridden_at?: string | null;
|
|
385
|
+
overridden_by?: string | null;
|
|
386
|
+
override_reason?: string | null;
|
|
387
|
+
price_override?: boolean;
|
|
353
388
|
room_id: string;
|
|
389
|
+
room_price_override?: number | null;
|
|
354
390
|
start_time: string;
|
|
355
391
|
status?: string;
|
|
356
392
|
total_excl_vat?: number | null;
|
|
@@ -359,11 +395,15 @@ export type Database = {
|
|
|
359
395
|
vat_amount?: number | null;
|
|
360
396
|
};
|
|
361
397
|
Update: {
|
|
398
|
+
archive_reason?: string | null;
|
|
399
|
+
archived_at?: string | null;
|
|
400
|
+
archived_by?: string | null;
|
|
362
401
|
company_name?: string | null;
|
|
363
402
|
conflict_checked_at?: string | null;
|
|
364
403
|
conflict_reason?: string | null;
|
|
365
404
|
created_at?: string;
|
|
366
405
|
created_by_role?: string | null;
|
|
406
|
+
customer_address?: string | null;
|
|
367
407
|
customer_email?: string | null;
|
|
368
408
|
customer_name?: string | null;
|
|
369
409
|
end_time?: string;
|
|
@@ -375,7 +415,12 @@ export type Database = {
|
|
|
375
415
|
invoiced_at?: string | null;
|
|
376
416
|
notes?: string | null;
|
|
377
417
|
number_of_people?: number;
|
|
418
|
+
overridden_at?: string | null;
|
|
419
|
+
overridden_by?: string | null;
|
|
420
|
+
override_reason?: string | null;
|
|
421
|
+
price_override?: boolean;
|
|
378
422
|
room_id?: string;
|
|
423
|
+
room_price_override?: number | null;
|
|
379
424
|
start_time?: string;
|
|
380
425
|
status?: string;
|
|
381
426
|
total_excl_vat?: number | null;
|
|
@@ -840,6 +885,38 @@ export type Database = {
|
|
|
840
885
|
};
|
|
841
886
|
Relationships: [];
|
|
842
887
|
};
|
|
888
|
+
cart_replan_queue: {
|
|
889
|
+
Row: {
|
|
890
|
+
attempts: number;
|
|
891
|
+
last_error: string | null;
|
|
892
|
+
order_id: string;
|
|
893
|
+
processed_at: string | null;
|
|
894
|
+
requested_at: string;
|
|
895
|
+
};
|
|
896
|
+
Insert: {
|
|
897
|
+
attempts?: number;
|
|
898
|
+
last_error?: string | null;
|
|
899
|
+
order_id: string;
|
|
900
|
+
processed_at?: string | null;
|
|
901
|
+
requested_at?: string;
|
|
902
|
+
};
|
|
903
|
+
Update: {
|
|
904
|
+
attempts?: number;
|
|
905
|
+
last_error?: string | null;
|
|
906
|
+
order_id?: string;
|
|
907
|
+
processed_at?: string | null;
|
|
908
|
+
requested_at?: string;
|
|
909
|
+
};
|
|
910
|
+
Relationships: [
|
|
911
|
+
{
|
|
912
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
913
|
+
columns: ["order_id"];
|
|
914
|
+
isOneToOne: true;
|
|
915
|
+
referencedRelation: "orders";
|
|
916
|
+
referencedColumns: ["id"];
|
|
917
|
+
}
|
|
918
|
+
];
|
|
919
|
+
};
|
|
843
920
|
collections: {
|
|
844
921
|
Row: {
|
|
845
922
|
created_at: string;
|
|
@@ -3021,34 +3098,52 @@ export type Database = {
|
|
|
3021
3098
|
Row: {
|
|
3022
3099
|
catalog_key: string | null;
|
|
3023
3100
|
catalog_url: string;
|
|
3101
|
+
client_id: string | null;
|
|
3102
|
+
client_secret_ciphertext: string | null;
|
|
3103
|
+
client_secret_last4: string | null;
|
|
3024
3104
|
created_at: string;
|
|
3025
3105
|
id: number;
|
|
3026
3106
|
last_meta: Json | null;
|
|
3027
3107
|
last_test_at: string | null;
|
|
3028
3108
|
last_test_error: string | null;
|
|
3029
3109
|
last_test_ok: boolean | null;
|
|
3110
|
+
last_token_test_at: string | null;
|
|
3111
|
+
last_token_test_error: string | null;
|
|
3112
|
+
last_token_test_ok: boolean | null;
|
|
3030
3113
|
updated_at: string;
|
|
3031
3114
|
};
|
|
3032
3115
|
Insert: {
|
|
3033
3116
|
catalog_key?: string | null;
|
|
3034
3117
|
catalog_url?: string;
|
|
3118
|
+
client_id?: string | null;
|
|
3119
|
+
client_secret_ciphertext?: string | null;
|
|
3120
|
+
client_secret_last4?: string | null;
|
|
3035
3121
|
created_at?: string;
|
|
3036
3122
|
id?: number;
|
|
3037
3123
|
last_meta?: Json | null;
|
|
3038
3124
|
last_test_at?: string | null;
|
|
3039
3125
|
last_test_error?: string | null;
|
|
3040
3126
|
last_test_ok?: boolean | null;
|
|
3127
|
+
last_token_test_at?: string | null;
|
|
3128
|
+
last_token_test_error?: string | null;
|
|
3129
|
+
last_token_test_ok?: boolean | null;
|
|
3041
3130
|
updated_at?: string;
|
|
3042
3131
|
};
|
|
3043
3132
|
Update: {
|
|
3044
3133
|
catalog_key?: string | null;
|
|
3045
3134
|
catalog_url?: string;
|
|
3135
|
+
client_id?: string | null;
|
|
3136
|
+
client_secret_ciphertext?: string | null;
|
|
3137
|
+
client_secret_last4?: string | null;
|
|
3046
3138
|
created_at?: string;
|
|
3047
3139
|
id?: number;
|
|
3048
3140
|
last_meta?: Json | null;
|
|
3049
3141
|
last_test_at?: string | null;
|
|
3050
3142
|
last_test_error?: string | null;
|
|
3051
3143
|
last_test_ok?: boolean | null;
|
|
3144
|
+
last_token_test_at?: string | null;
|
|
3145
|
+
last_token_test_error?: string | null;
|
|
3146
|
+
last_token_test_ok?: boolean | null;
|
|
3052
3147
|
updated_at?: string;
|
|
3053
3148
|
};
|
|
3054
3149
|
Relationships: [];
|
|
@@ -3289,6 +3384,56 @@ export type Database = {
|
|
|
3289
3384
|
}
|
|
3290
3385
|
];
|
|
3291
3386
|
};
|
|
3387
|
+
floriday_auto_fulfillment_log: {
|
|
3388
|
+
Row: {
|
|
3389
|
+
attempts: number;
|
|
3390
|
+
connection_id: string;
|
|
3391
|
+
created_at: string;
|
|
3392
|
+
error: string | null;
|
|
3393
|
+
fulfillment_order_id: string | null;
|
|
3394
|
+
id: string;
|
|
3395
|
+
last_attempt_at: string | null;
|
|
3396
|
+
reason: string | null;
|
|
3397
|
+
sales_order_id: string;
|
|
3398
|
+
status: string;
|
|
3399
|
+
updated_at: string;
|
|
3400
|
+
};
|
|
3401
|
+
Insert: {
|
|
3402
|
+
attempts?: number;
|
|
3403
|
+
connection_id: string;
|
|
3404
|
+
created_at?: string;
|
|
3405
|
+
error?: string | null;
|
|
3406
|
+
fulfillment_order_id?: string | null;
|
|
3407
|
+
id?: string;
|
|
3408
|
+
last_attempt_at?: string | null;
|
|
3409
|
+
reason?: string | null;
|
|
3410
|
+
sales_order_id: string;
|
|
3411
|
+
status?: string;
|
|
3412
|
+
updated_at?: string;
|
|
3413
|
+
};
|
|
3414
|
+
Update: {
|
|
3415
|
+
attempts?: number;
|
|
3416
|
+
connection_id?: string;
|
|
3417
|
+
created_at?: string;
|
|
3418
|
+
error?: string | null;
|
|
3419
|
+
fulfillment_order_id?: string | null;
|
|
3420
|
+
id?: string;
|
|
3421
|
+
last_attempt_at?: string | null;
|
|
3422
|
+
reason?: string | null;
|
|
3423
|
+
sales_order_id?: string;
|
|
3424
|
+
status?: string;
|
|
3425
|
+
updated_at?: string;
|
|
3426
|
+
};
|
|
3427
|
+
Relationships: [
|
|
3428
|
+
{
|
|
3429
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3430
|
+
columns: ["connection_id"];
|
|
3431
|
+
isOneToOne: false;
|
|
3432
|
+
referencedRelation: "floriday_connections";
|
|
3433
|
+
referencedColumns: ["id"];
|
|
3434
|
+
}
|
|
3435
|
+
];
|
|
3436
|
+
};
|
|
3292
3437
|
floriday_base_items_cache: {
|
|
3293
3438
|
Row: {
|
|
3294
3439
|
connection_id: string;
|
|
@@ -4435,6 +4580,24 @@ export type Database = {
|
|
|
4435
4580
|
}
|
|
4436
4581
|
];
|
|
4437
4582
|
};
|
|
4583
|
+
floriday_rate_limit_state: {
|
|
4584
|
+
Row: {
|
|
4585
|
+
bucket: string;
|
|
4586
|
+
last_refill_at: string;
|
|
4587
|
+
tokens: number;
|
|
4588
|
+
};
|
|
4589
|
+
Insert: {
|
|
4590
|
+
bucket: string;
|
|
4591
|
+
last_refill_at?: string;
|
|
4592
|
+
tokens: number;
|
|
4593
|
+
};
|
|
4594
|
+
Update: {
|
|
4595
|
+
bucket?: string;
|
|
4596
|
+
last_refill_at?: string;
|
|
4597
|
+
tokens?: number;
|
|
4598
|
+
};
|
|
4599
|
+
Relationships: [];
|
|
4600
|
+
};
|
|
4438
4601
|
floriday_resource_schemas: {
|
|
4439
4602
|
Row: {
|
|
4440
4603
|
enums: Json;
|
|
@@ -4876,6 +5039,62 @@ export type Database = {
|
|
|
4876
5039
|
}
|
|
4877
5040
|
];
|
|
4878
5041
|
};
|
|
5042
|
+
flow_role_assignments: {
|
|
5043
|
+
Row: {
|
|
5044
|
+
created_at: string;
|
|
5045
|
+
id: string;
|
|
5046
|
+
role_id: string;
|
|
5047
|
+
user_id: string;
|
|
5048
|
+
};
|
|
5049
|
+
Insert: {
|
|
5050
|
+
created_at?: string;
|
|
5051
|
+
id?: string;
|
|
5052
|
+
role_id: string;
|
|
5053
|
+
user_id: string;
|
|
5054
|
+
};
|
|
5055
|
+
Update: {
|
|
5056
|
+
created_at?: string;
|
|
5057
|
+
id?: string;
|
|
5058
|
+
role_id?: string;
|
|
5059
|
+
user_id?: string;
|
|
5060
|
+
};
|
|
5061
|
+
Relationships: [
|
|
5062
|
+
{
|
|
5063
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
5064
|
+
columns: ["role_id"];
|
|
5065
|
+
isOneToOne: false;
|
|
5066
|
+
referencedRelation: "flow_roles";
|
|
5067
|
+
referencedColumns: ["id"];
|
|
5068
|
+
}
|
|
5069
|
+
];
|
|
5070
|
+
};
|
|
5071
|
+
flow_roles: {
|
|
5072
|
+
Row: {
|
|
5073
|
+
created_at: string;
|
|
5074
|
+
description: string | null;
|
|
5075
|
+
id: string;
|
|
5076
|
+
module_access: string[];
|
|
5077
|
+
name: string;
|
|
5078
|
+
updated_at: string;
|
|
5079
|
+
};
|
|
5080
|
+
Insert: {
|
|
5081
|
+
created_at?: string;
|
|
5082
|
+
description?: string | null;
|
|
5083
|
+
id?: string;
|
|
5084
|
+
module_access?: string[];
|
|
5085
|
+
name: string;
|
|
5086
|
+
updated_at?: string;
|
|
5087
|
+
};
|
|
5088
|
+
Update: {
|
|
5089
|
+
created_at?: string;
|
|
5090
|
+
description?: string | null;
|
|
5091
|
+
id?: string;
|
|
5092
|
+
module_access?: string[];
|
|
5093
|
+
name?: string;
|
|
5094
|
+
updated_at?: string;
|
|
5095
|
+
};
|
|
5096
|
+
Relationships: [];
|
|
5097
|
+
};
|
|
4879
5098
|
imap_accounts: {
|
|
4880
5099
|
Row: {
|
|
4881
5100
|
created_at: string;
|
|
@@ -5533,6 +5752,7 @@ export type Database = {
|
|
|
5533
5752
|
matched_customer_id: string | null;
|
|
5534
5753
|
message_id: string;
|
|
5535
5754
|
notes: string | null;
|
|
5755
|
+
order_number: string | null;
|
|
5536
5756
|
parsed_payload: Json | null;
|
|
5537
5757
|
reviewed_at: string | null;
|
|
5538
5758
|
reviewed_by: string | null;
|
|
@@ -5548,6 +5768,7 @@ export type Database = {
|
|
|
5548
5768
|
matched_customer_id?: string | null;
|
|
5549
5769
|
message_id: string;
|
|
5550
5770
|
notes?: string | null;
|
|
5771
|
+
order_number?: string | null;
|
|
5551
5772
|
parsed_payload?: Json | null;
|
|
5552
5773
|
reviewed_at?: string | null;
|
|
5553
5774
|
reviewed_by?: string | null;
|
|
@@ -5563,6 +5784,7 @@ export type Database = {
|
|
|
5563
5784
|
matched_customer_id?: string | null;
|
|
5564
5785
|
message_id?: string;
|
|
5565
5786
|
notes?: string | null;
|
|
5787
|
+
order_number?: string | null;
|
|
5566
5788
|
parsed_payload?: Json | null;
|
|
5567
5789
|
reviewed_at?: string | null;
|
|
5568
5790
|
reviewed_by?: string | null;
|
|
@@ -6449,6 +6671,7 @@ export type Database = {
|
|
|
6449
6671
|
id: string;
|
|
6450
6672
|
items: Json;
|
|
6451
6673
|
notes: string | null;
|
|
6674
|
+
order_number: string | null;
|
|
6452
6675
|
recipient_id: string;
|
|
6453
6676
|
total_amount: number;
|
|
6454
6677
|
};
|
|
@@ -6462,6 +6685,7 @@ export type Database = {
|
|
|
6462
6685
|
id?: string;
|
|
6463
6686
|
items?: Json;
|
|
6464
6687
|
notes?: string | null;
|
|
6688
|
+
order_number?: string | null;
|
|
6465
6689
|
recipient_id: string;
|
|
6466
6690
|
total_amount?: number;
|
|
6467
6691
|
};
|
|
@@ -6475,6 +6699,7 @@ export type Database = {
|
|
|
6475
6699
|
id?: string;
|
|
6476
6700
|
items?: Json;
|
|
6477
6701
|
notes?: string | null;
|
|
6702
|
+
order_number?: string | null;
|
|
6478
6703
|
recipient_id?: string;
|
|
6479
6704
|
total_amount?: number;
|
|
6480
6705
|
};
|
|
@@ -6642,6 +6867,9 @@ export type Database = {
|
|
|
6642
6867
|
crates_per_layer: number;
|
|
6643
6868
|
created_at: string;
|
|
6644
6869
|
id: string;
|
|
6870
|
+
layer_fraction: number;
|
|
6871
|
+
layer_share_pct: number;
|
|
6872
|
+
layers_per_cart: number;
|
|
6645
6873
|
order_item_id: string | null;
|
|
6646
6874
|
plants_per_crate: number;
|
|
6647
6875
|
product_id: string | null;
|
|
@@ -6653,6 +6881,9 @@ export type Database = {
|
|
|
6653
6881
|
crates_per_layer?: number;
|
|
6654
6882
|
created_at?: string;
|
|
6655
6883
|
id?: string;
|
|
6884
|
+
layer_fraction?: number;
|
|
6885
|
+
layer_share_pct?: number;
|
|
6886
|
+
layers_per_cart?: number;
|
|
6656
6887
|
order_item_id?: string | null;
|
|
6657
6888
|
plants_per_crate?: number;
|
|
6658
6889
|
product_id?: string | null;
|
|
@@ -6664,6 +6895,9 @@ export type Database = {
|
|
|
6664
6895
|
crates_per_layer?: number;
|
|
6665
6896
|
created_at?: string;
|
|
6666
6897
|
id?: string;
|
|
6898
|
+
layer_fraction?: number;
|
|
6899
|
+
layer_share_pct?: number;
|
|
6900
|
+
layers_per_cart?: number;
|
|
6667
6901
|
order_item_id?: string | null;
|
|
6668
6902
|
plants_per_crate?: number;
|
|
6669
6903
|
product_id?: string | null;
|
|
@@ -6695,33 +6929,45 @@ export type Database = {
|
|
|
6695
6929
|
};
|
|
6696
6930
|
order_carts: {
|
|
6697
6931
|
Row: {
|
|
6932
|
+
algorithm_version: number;
|
|
6698
6933
|
cart_number: number;
|
|
6699
6934
|
created_at: string;
|
|
6700
6935
|
id: string;
|
|
6701
6936
|
is_auto: boolean;
|
|
6702
6937
|
is_complete: boolean;
|
|
6703
6938
|
notes: string | null;
|
|
6939
|
+
occupancy_pct: number;
|
|
6704
6940
|
order_id: string;
|
|
6941
|
+
source: string;
|
|
6942
|
+
total_layers_used: number;
|
|
6705
6943
|
updated_at: string;
|
|
6706
6944
|
};
|
|
6707
6945
|
Insert: {
|
|
6946
|
+
algorithm_version?: number;
|
|
6708
6947
|
cart_number: number;
|
|
6709
6948
|
created_at?: string;
|
|
6710
6949
|
id?: string;
|
|
6711
6950
|
is_auto?: boolean;
|
|
6712
6951
|
is_complete?: boolean;
|
|
6713
6952
|
notes?: string | null;
|
|
6953
|
+
occupancy_pct?: number;
|
|
6714
6954
|
order_id: string;
|
|
6955
|
+
source?: string;
|
|
6956
|
+
total_layers_used?: number;
|
|
6715
6957
|
updated_at?: string;
|
|
6716
6958
|
};
|
|
6717
6959
|
Update: {
|
|
6960
|
+
algorithm_version?: number;
|
|
6718
6961
|
cart_number?: number;
|
|
6719
6962
|
created_at?: string;
|
|
6720
6963
|
id?: string;
|
|
6721
6964
|
is_auto?: boolean;
|
|
6722
6965
|
is_complete?: boolean;
|
|
6723
6966
|
notes?: string | null;
|
|
6967
|
+
occupancy_pct?: number;
|
|
6724
6968
|
order_id?: string;
|
|
6969
|
+
source?: string;
|
|
6970
|
+
total_layers_used?: number;
|
|
6725
6971
|
updated_at?: string;
|
|
6726
6972
|
};
|
|
6727
6973
|
Relationships: [
|
|
@@ -6881,6 +7127,8 @@ export type Database = {
|
|
|
6881
7127
|
order_date: string;
|
|
6882
7128
|
order_number: string;
|
|
6883
7129
|
order_source: string;
|
|
7130
|
+
plan_locked_at: string | null;
|
|
7131
|
+
plan_locked_ref: string | null;
|
|
6884
7132
|
status: string;
|
|
6885
7133
|
total: string;
|
|
6886
7134
|
updated_at: string;
|
|
@@ -6897,6 +7145,8 @@ export type Database = {
|
|
|
6897
7145
|
order_date?: string;
|
|
6898
7146
|
order_number: string;
|
|
6899
7147
|
order_source?: string;
|
|
7148
|
+
plan_locked_at?: string | null;
|
|
7149
|
+
plan_locked_ref?: string | null;
|
|
6900
7150
|
status?: string;
|
|
6901
7151
|
total?: string;
|
|
6902
7152
|
updated_at?: string;
|
|
@@ -6913,6 +7163,8 @@ export type Database = {
|
|
|
6913
7163
|
order_date?: string;
|
|
6914
7164
|
order_number?: string;
|
|
6915
7165
|
order_source?: string;
|
|
7166
|
+
plan_locked_at?: string | null;
|
|
7167
|
+
plan_locked_ref?: string | null;
|
|
6916
7168
|
status?: string;
|
|
6917
7169
|
total?: string;
|
|
6918
7170
|
updated_at?: string;
|
|
@@ -7287,28 +7539,34 @@ export type Database = {
|
|
|
7287
7539
|
};
|
|
7288
7540
|
profiles: {
|
|
7289
7541
|
Row: {
|
|
7542
|
+
address: string | null;
|
|
7290
7543
|
created_at: string;
|
|
7291
7544
|
display_name: string | null;
|
|
7292
7545
|
email: string | null;
|
|
7293
7546
|
id: string;
|
|
7547
|
+
is_superadmin: boolean;
|
|
7294
7548
|
notification_preferences: Json;
|
|
7295
7549
|
tenant_id: string | null;
|
|
7296
7550
|
updated_at: string;
|
|
7297
7551
|
};
|
|
7298
7552
|
Insert: {
|
|
7553
|
+
address?: string | null;
|
|
7299
7554
|
created_at?: string;
|
|
7300
7555
|
display_name?: string | null;
|
|
7301
7556
|
email?: string | null;
|
|
7302
7557
|
id: string;
|
|
7558
|
+
is_superadmin?: boolean;
|
|
7303
7559
|
notification_preferences?: Json;
|
|
7304
7560
|
tenant_id?: string | null;
|
|
7305
7561
|
updated_at?: string;
|
|
7306
7562
|
};
|
|
7307
7563
|
Update: {
|
|
7564
|
+
address?: string | null;
|
|
7308
7565
|
created_at?: string;
|
|
7309
7566
|
display_name?: string | null;
|
|
7310
7567
|
email?: string | null;
|
|
7311
7568
|
id?: string;
|
|
7569
|
+
is_superadmin?: boolean;
|
|
7312
7570
|
notification_preferences?: Json;
|
|
7313
7571
|
tenant_id?: string | null;
|
|
7314
7572
|
updated_at?: string;
|
|
@@ -8130,6 +8388,24 @@ export type Database = {
|
|
|
8130
8388
|
};
|
|
8131
8389
|
Relationships: [];
|
|
8132
8390
|
};
|
|
8391
|
+
sidebar_config: {
|
|
8392
|
+
Row: {
|
|
8393
|
+
id: string;
|
|
8394
|
+
module_order: string[];
|
|
8395
|
+
updated_at: string;
|
|
8396
|
+
};
|
|
8397
|
+
Insert: {
|
|
8398
|
+
id?: string;
|
|
8399
|
+
module_order?: string[];
|
|
8400
|
+
updated_at?: string;
|
|
8401
|
+
};
|
|
8402
|
+
Update: {
|
|
8403
|
+
id?: string;
|
|
8404
|
+
module_order?: string[];
|
|
8405
|
+
updated_at?: string;
|
|
8406
|
+
};
|
|
8407
|
+
Relationships: [];
|
|
8408
|
+
};
|
|
8133
8409
|
stock_import_runs: {
|
|
8134
8410
|
Row: {
|
|
8135
8411
|
connection_id: string | null;
|
|
@@ -8188,7 +8464,7 @@ export type Database = {
|
|
|
8188
8464
|
reason: string | null;
|
|
8189
8465
|
reserved_after: number | null;
|
|
8190
8466
|
reserved_before: number | null;
|
|
8191
|
-
trade_item_key: string;
|
|
8467
|
+
trade_item_key: string | null;
|
|
8192
8468
|
};
|
|
8193
8469
|
Insert: {
|
|
8194
8470
|
connection_id?: string | null;
|
|
@@ -8205,7 +8481,7 @@ export type Database = {
|
|
|
8205
8481
|
reason?: string | null;
|
|
8206
8482
|
reserved_after?: number | null;
|
|
8207
8483
|
reserved_before?: number | null;
|
|
8208
|
-
trade_item_key
|
|
8484
|
+
trade_item_key?: string | null;
|
|
8209
8485
|
};
|
|
8210
8486
|
Update: {
|
|
8211
8487
|
connection_id?: string | null;
|
|
@@ -8222,7 +8498,7 @@ export type Database = {
|
|
|
8222
8498
|
reason?: string | null;
|
|
8223
8499
|
reserved_after?: number | null;
|
|
8224
8500
|
reserved_before?: number | null;
|
|
8225
|
-
trade_item_key?: string;
|
|
8501
|
+
trade_item_key?: string | null;
|
|
8226
8502
|
};
|
|
8227
8503
|
Relationships: [];
|
|
8228
8504
|
};
|
|
@@ -8573,6 +8849,116 @@ export type Database = {
|
|
|
8573
8849
|
};
|
|
8574
8850
|
Relationships: [];
|
|
8575
8851
|
};
|
|
8852
|
+
trade_item_supply_lines: {
|
|
8853
|
+
Row: {
|
|
8854
|
+
available_quantity: number | null;
|
|
8855
|
+
connection_id: string;
|
|
8856
|
+
created_at: string;
|
|
8857
|
+
currency: string | null;
|
|
8858
|
+
endpoint_family: string | null;
|
|
8859
|
+
environment: string | null;
|
|
8860
|
+
id: string;
|
|
8861
|
+
last_error: string | null;
|
|
8862
|
+
last_status: number | null;
|
|
8863
|
+
packing_configuration_id: string | null;
|
|
8864
|
+
period_end: string | null;
|
|
8865
|
+
period_start: string | null;
|
|
8866
|
+
price_per_piece: number | null;
|
|
8867
|
+
sales_unit: string | null;
|
|
8868
|
+
supply_line_id: string | null;
|
|
8869
|
+
supply_type: string;
|
|
8870
|
+
trade_item_id: string;
|
|
8871
|
+
updated_at: string;
|
|
8872
|
+
user_id: string;
|
|
8873
|
+
week: number | null;
|
|
8874
|
+
year: number | null;
|
|
8875
|
+
};
|
|
8876
|
+
Insert: {
|
|
8877
|
+
available_quantity?: number | null;
|
|
8878
|
+
connection_id: string;
|
|
8879
|
+
created_at?: string;
|
|
8880
|
+
currency?: string | null;
|
|
8881
|
+
endpoint_family?: string | null;
|
|
8882
|
+
environment?: string | null;
|
|
8883
|
+
id?: string;
|
|
8884
|
+
last_error?: string | null;
|
|
8885
|
+
last_status?: number | null;
|
|
8886
|
+
packing_configuration_id?: string | null;
|
|
8887
|
+
period_end?: string | null;
|
|
8888
|
+
period_start?: string | null;
|
|
8889
|
+
price_per_piece?: number | null;
|
|
8890
|
+
sales_unit?: string | null;
|
|
8891
|
+
supply_line_id?: string | null;
|
|
8892
|
+
supply_type?: string;
|
|
8893
|
+
trade_item_id: string;
|
|
8894
|
+
updated_at?: string;
|
|
8895
|
+
user_id: string;
|
|
8896
|
+
week?: number | null;
|
|
8897
|
+
year?: number | null;
|
|
8898
|
+
};
|
|
8899
|
+
Update: {
|
|
8900
|
+
available_quantity?: number | null;
|
|
8901
|
+
connection_id?: string;
|
|
8902
|
+
created_at?: string;
|
|
8903
|
+
currency?: string | null;
|
|
8904
|
+
endpoint_family?: string | null;
|
|
8905
|
+
environment?: string | null;
|
|
8906
|
+
id?: string;
|
|
8907
|
+
last_error?: string | null;
|
|
8908
|
+
last_status?: number | null;
|
|
8909
|
+
packing_configuration_id?: string | null;
|
|
8910
|
+
period_end?: string | null;
|
|
8911
|
+
period_start?: string | null;
|
|
8912
|
+
price_per_piece?: number | null;
|
|
8913
|
+
sales_unit?: string | null;
|
|
8914
|
+
supply_line_id?: string | null;
|
|
8915
|
+
supply_type?: string;
|
|
8916
|
+
trade_item_id?: string;
|
|
8917
|
+
updated_at?: string;
|
|
8918
|
+
user_id?: string;
|
|
8919
|
+
week?: number | null;
|
|
8920
|
+
year?: number | null;
|
|
8921
|
+
};
|
|
8922
|
+
Relationships: [];
|
|
8923
|
+
};
|
|
8924
|
+
trade_item_warehouse_preferences: {
|
|
8925
|
+
Row: {
|
|
8926
|
+
connection_id: string;
|
|
8927
|
+
created_at: string;
|
|
8928
|
+
id: string;
|
|
8929
|
+
trade_item_id: string;
|
|
8930
|
+
updated_at: string;
|
|
8931
|
+
warehouse_id: string;
|
|
8932
|
+
warehouse_name: string | null;
|
|
8933
|
+
};
|
|
8934
|
+
Insert: {
|
|
8935
|
+
connection_id: string;
|
|
8936
|
+
created_at?: string;
|
|
8937
|
+
id?: string;
|
|
8938
|
+
trade_item_id: string;
|
|
8939
|
+
updated_at?: string;
|
|
8940
|
+
warehouse_id: string;
|
|
8941
|
+
warehouse_name?: string | null;
|
|
8942
|
+
};
|
|
8943
|
+
Update: {
|
|
8944
|
+
connection_id?: string;
|
|
8945
|
+
created_at?: string;
|
|
8946
|
+
id?: string;
|
|
8947
|
+
trade_item_id?: string;
|
|
8948
|
+
updated_at?: string;
|
|
8949
|
+
warehouse_id?: string;
|
|
8950
|
+
warehouse_name?: string | null;
|
|
8951
|
+
};
|
|
8952
|
+
Relationships: [
|
|
8953
|
+
{
|
|
8954
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8955
|
+
columns: ["connection_id"];
|
|
8956
|
+
isOneToOne: false;
|
|
8957
|
+
referencedRelation: "floriday_connections";
|
|
8958
|
+
referencedColumns: ["id"];
|
|
8959
|
+
}
|
|
8960
|
+
];
|
|
8961
|
+
};
|
|
8576
8962
|
twinfield_connections: {
|
|
8577
8963
|
Row: {
|
|
8578
8964
|
access_token: string | null;
|
|
@@ -8898,6 +9284,10 @@ export type Database = {
|
|
|
8898
9284
|
default_invoice_type: string;
|
|
8899
9285
|
default_payment_term_days: number;
|
|
8900
9286
|
default_vat_code: string;
|
|
9287
|
+
invoice_enabled_ao: boolean;
|
|
9288
|
+
invoice_enabled_fo: boolean;
|
|
9289
|
+
invoice_enabled_ho: boolean;
|
|
9290
|
+
invoice_enabled_mo: boolean;
|
|
8901
9291
|
updated_at: string;
|
|
8902
9292
|
user_id: string;
|
|
8903
9293
|
};
|
|
@@ -8907,6 +9297,10 @@ export type Database = {
|
|
|
8907
9297
|
default_invoice_type?: string;
|
|
8908
9298
|
default_payment_term_days?: number;
|
|
8909
9299
|
default_vat_code?: string;
|
|
9300
|
+
invoice_enabled_ao?: boolean;
|
|
9301
|
+
invoice_enabled_fo?: boolean;
|
|
9302
|
+
invoice_enabled_ho?: boolean;
|
|
9303
|
+
invoice_enabled_mo?: boolean;
|
|
8910
9304
|
updated_at?: string;
|
|
8911
9305
|
user_id: string;
|
|
8912
9306
|
};
|
|
@@ -8916,6 +9310,10 @@ export type Database = {
|
|
|
8916
9310
|
default_invoice_type?: string;
|
|
8917
9311
|
default_payment_term_days?: number;
|
|
8918
9312
|
default_vat_code?: string;
|
|
9313
|
+
invoice_enabled_ao?: boolean;
|
|
9314
|
+
invoice_enabled_fo?: boolean;
|
|
9315
|
+
invoice_enabled_ho?: boolean;
|
|
9316
|
+
invoice_enabled_mo?: boolean;
|
|
8919
9317
|
updated_at?: string;
|
|
8920
9318
|
user_id?: string;
|
|
8921
9319
|
};
|
|
@@ -10238,6 +10636,12 @@ export type Database = {
|
|
|
10238
10636
|
order_number: string;
|
|
10239
10637
|
}[];
|
|
10240
10638
|
};
|
|
10639
|
+
autolink_product_to_floriday: {
|
|
10640
|
+
Args: {
|
|
10641
|
+
p_product_id: string;
|
|
10642
|
+
};
|
|
10643
|
+
Returns: string;
|
|
10644
|
+
};
|
|
10241
10645
|
backfill_open_order_reservations: {
|
|
10242
10646
|
Args: never;
|
|
10243
10647
|
Returns: {
|
|
@@ -10274,7 +10678,19 @@ export type Database = {
|
|
|
10274
10678
|
};
|
|
10275
10679
|
cleanup_old_bookings: {
|
|
10276
10680
|
Args: never;
|
|
10277
|
-
Returns:
|
|
10681
|
+
Returns: undefined;
|
|
10682
|
+
};
|
|
10683
|
+
consume_floriday_rate_limit: {
|
|
10684
|
+
Args: {
|
|
10685
|
+
p_bucket: string;
|
|
10686
|
+
p_capacity: number;
|
|
10687
|
+
p_cost?: number;
|
|
10688
|
+
p_refill_per_sec: number;
|
|
10689
|
+
};
|
|
10690
|
+
Returns: {
|
|
10691
|
+
granted: boolean;
|
|
10692
|
+
wait_ms: number;
|
|
10693
|
+
}[];
|
|
10278
10694
|
};
|
|
10279
10695
|
control_get_todays_carts: {
|
|
10280
10696
|
Args: never;
|
|
@@ -10356,6 +10772,12 @@ export type Database = {
|
|
|
10356
10772
|
status: string;
|
|
10357
10773
|
}[];
|
|
10358
10774
|
};
|
|
10775
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10776
|
+
Args: {
|
|
10777
|
+
p_order_id: string;
|
|
10778
|
+
};
|
|
10779
|
+
Returns: undefined;
|
|
10780
|
+
};
|
|
10359
10781
|
ensure_trade_item_stock_row: {
|
|
10360
10782
|
Args: {
|
|
10361
10783
|
p_key: string;
|
|
@@ -10462,6 +10884,13 @@ export type Database = {
|
|
|
10462
10884
|
office_code: string;
|
|
10463
10885
|
}[];
|
|
10464
10886
|
};
|
|
10887
|
+
get_floricode_record_counts: {
|
|
10888
|
+
Args: never;
|
|
10889
|
+
Returns: {
|
|
10890
|
+
count: number;
|
|
10891
|
+
resource: string;
|
|
10892
|
+
}[];
|
|
10893
|
+
};
|
|
10465
10894
|
get_floriday_agreements_active: {
|
|
10466
10895
|
Args: {
|
|
10467
10896
|
p_on_date?: string;
|
|
@@ -10553,6 +10982,12 @@ export type Database = {
|
|
|
10553
10982
|
};
|
|
10554
10983
|
Returns: Json;
|
|
10555
10984
|
};
|
|
10985
|
+
get_offer_delivery_options: {
|
|
10986
|
+
Args: {
|
|
10987
|
+
p_code: string;
|
|
10988
|
+
};
|
|
10989
|
+
Returns: Json;
|
|
10990
|
+
};
|
|
10556
10991
|
get_offer_recipient_by_code: {
|
|
10557
10992
|
Args: {
|
|
10558
10993
|
p_code: string;
|
|
@@ -10617,6 +11052,12 @@ export type Database = {
|
|
|
10617
11052
|
Args: never;
|
|
10618
11053
|
Returns: boolean;
|
|
10619
11054
|
};
|
|
11055
|
+
is_superadmin: {
|
|
11056
|
+
Args: {
|
|
11057
|
+
_user_id: string;
|
|
11058
|
+
};
|
|
11059
|
+
Returns: boolean;
|
|
11060
|
+
};
|
|
10620
11061
|
local_effective_price: {
|
|
10621
11062
|
Args: {
|
|
10622
11063
|
_customer_id: string;
|
|
@@ -10651,6 +11092,13 @@ export type Database = {
|
|
|
10651
11092
|
};
|
|
10652
11093
|
Returns: string;
|
|
10653
11094
|
};
|
|
11095
|
+
next_order_number_for_date: {
|
|
11096
|
+
Args: {
|
|
11097
|
+
p_created_at?: string;
|
|
11098
|
+
p_prefix: string;
|
|
11099
|
+
};
|
|
11100
|
+
Returns: string;
|
|
11101
|
+
};
|
|
10654
11102
|
next_work_order_number: {
|
|
10655
11103
|
Args: {
|
|
10656
11104
|
p_parent_work_order_id?: string;
|
|
@@ -10658,6 +11106,12 @@ export type Database = {
|
|
|
10658
11106
|
};
|
|
10659
11107
|
Returns: string;
|
|
10660
11108
|
};
|
|
11109
|
+
normalize_order_source: {
|
|
11110
|
+
Args: {
|
|
11111
|
+
p_src: string;
|
|
11112
|
+
};
|
|
11113
|
+
Returns: string;
|
|
11114
|
+
};
|
|
10661
11115
|
normalize_vat: {
|
|
10662
11116
|
Args: {
|
|
10663
11117
|
v: string;
|
|
@@ -10672,10 +11126,21 @@ export type Database = {
|
|
|
10672
11126
|
};
|
|
10673
11127
|
Returns: boolean;
|
|
10674
11128
|
};
|
|
11129
|
+
order_number_prefix: {
|
|
11130
|
+
Args: {
|
|
11131
|
+
p_custom_fields?: Json;
|
|
11132
|
+
p_order_source: string;
|
|
11133
|
+
};
|
|
11134
|
+
Returns: string;
|
|
11135
|
+
};
|
|
10675
11136
|
pickstation_get_orders_raw: {
|
|
10676
11137
|
Args: never;
|
|
10677
11138
|
Returns: Json;
|
|
10678
11139
|
};
|
|
11140
|
+
pickstation_get_planning_context: {
|
|
11141
|
+
Args: never;
|
|
11142
|
+
Returns: Json;
|
|
11143
|
+
};
|
|
10679
11144
|
pickstation_get_settings: {
|
|
10680
11145
|
Args: never;
|
|
10681
11146
|
Returns: Json;
|
|
@@ -10706,6 +11171,28 @@ export type Database = {
|
|
|
10706
11171
|
};
|
|
10707
11172
|
Returns: undefined;
|
|
10708
11173
|
};
|
|
11174
|
+
recompute_order_status: {
|
|
11175
|
+
Args: {
|
|
11176
|
+
p_order_id: string;
|
|
11177
|
+
};
|
|
11178
|
+
Returns: undefined;
|
|
11179
|
+
};
|
|
11180
|
+
recompute_reserved_for_order: {
|
|
11181
|
+
Args: {
|
|
11182
|
+
p_order_id: string;
|
|
11183
|
+
};
|
|
11184
|
+
Returns: undefined;
|
|
11185
|
+
};
|
|
11186
|
+
recompute_reserved_stock: {
|
|
11187
|
+
Args: {
|
|
11188
|
+
p_trade_item_key: string;
|
|
11189
|
+
};
|
|
11190
|
+
Returns: undefined;
|
|
11191
|
+
};
|
|
11192
|
+
refresh_external_customers_grouped: {
|
|
11193
|
+
Args: never;
|
|
11194
|
+
Returns: undefined;
|
|
11195
|
+
};
|
|
10709
11196
|
refresh_floricode_derived_code_lists: {
|
|
10710
11197
|
Args: never;
|
|
10711
11198
|
Returns: {
|
|
@@ -10720,6 +11207,12 @@ export type Database = {
|
|
|
10720
11207
|
};
|
|
10721
11208
|
Returns: number;
|
|
10722
11209
|
};
|
|
11210
|
+
refresh_floricode_derived_for_products: {
|
|
11211
|
+
Args: {
|
|
11212
|
+
_product_ids: string[];
|
|
11213
|
+
};
|
|
11214
|
+
Returns: number;
|
|
11215
|
+
};
|
|
10723
11216
|
reset_floriday_sync_cursor: {
|
|
10724
11217
|
Args: {
|
|
10725
11218
|
p_connection_id: string;
|
|
@@ -10727,6 +11220,12 @@ export type Database = {
|
|
|
10727
11220
|
};
|
|
10728
11221
|
Returns: undefined;
|
|
10729
11222
|
};
|
|
11223
|
+
resolve_product_id_for_item: {
|
|
11224
|
+
Args: {
|
|
11225
|
+
p_product_name: string;
|
|
11226
|
+
};
|
|
11227
|
+
Returns: string;
|
|
11228
|
+
};
|
|
10730
11229
|
schedule_floriday_additional_services_sync: {
|
|
10731
11230
|
Args: {
|
|
10732
11231
|
p_apikey: string;
|
|
@@ -11004,6 +11503,24 @@ export type Database = {
|
|
|
11004
11503
|
};
|
|
11005
11504
|
Returns: string[];
|
|
11006
11505
|
};
|
|
11506
|
+
sync_cached_packing_from_product: {
|
|
11507
|
+
Args: {
|
|
11508
|
+
p_product_id: string;
|
|
11509
|
+
};
|
|
11510
|
+
Returns: undefined;
|
|
11511
|
+
};
|
|
11512
|
+
sync_order_cart_item_packing_from_product: {
|
|
11513
|
+
Args: {
|
|
11514
|
+
p_product_id: string;
|
|
11515
|
+
};
|
|
11516
|
+
Returns: undefined;
|
|
11517
|
+
};
|
|
11518
|
+
sync_product_packing_from_floriday_cache: {
|
|
11519
|
+
Args: {
|
|
11520
|
+
p_floriday_id: string;
|
|
11521
|
+
};
|
|
11522
|
+
Returns: undefined;
|
|
11523
|
+
};
|
|
11007
11524
|
twinfield_decrypt: {
|
|
11008
11525
|
Args: {
|
|
11009
11526
|
cipher: string;
|
|
@@ -11016,6 +11533,17 @@ export type Database = {
|
|
|
11016
11533
|
};
|
|
11017
11534
|
Returns: string;
|
|
11018
11535
|
};
|
|
11536
|
+
upsert_auto_fulfillment_log: {
|
|
11537
|
+
Args: {
|
|
11538
|
+
p_connection_id: string;
|
|
11539
|
+
p_error?: string;
|
|
11540
|
+
p_fulfillment_order_id?: string;
|
|
11541
|
+
p_reason?: string;
|
|
11542
|
+
p_sales_order_id: string;
|
|
11543
|
+
p_status: string;
|
|
11544
|
+
};
|
|
11545
|
+
Returns: undefined;
|
|
11546
|
+
};
|
|
11019
11547
|
};
|
|
11020
11548
|
Enums: {
|
|
11021
11549
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|