@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
|
@@ -3,7 +3,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
3
3
|
Tables: {
|
|
4
4
|
afhandeling_settings: {
|
|
5
5
|
Row: {
|
|
6
|
+
auto_print_delivery_note: boolean;
|
|
7
|
+
auto_process_paused: boolean;
|
|
6
8
|
created_at: string;
|
|
9
|
+
extra_pick_days_with_stickers: number;
|
|
7
10
|
id: string;
|
|
8
11
|
max_workdays_earlier_pick: number;
|
|
9
12
|
pick_days_before_transport: number;
|
|
@@ -17,7 +20,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
17
20
|
user_id: string;
|
|
18
21
|
};
|
|
19
22
|
Insert: {
|
|
23
|
+
auto_print_delivery_note?: boolean;
|
|
24
|
+
auto_process_paused?: boolean;
|
|
20
25
|
created_at?: string;
|
|
26
|
+
extra_pick_days_with_stickers?: number;
|
|
21
27
|
id?: string;
|
|
22
28
|
max_workdays_earlier_pick?: number;
|
|
23
29
|
pick_days_before_transport?: number;
|
|
@@ -31,7 +37,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
31
37
|
user_id: string;
|
|
32
38
|
};
|
|
33
39
|
Update: {
|
|
40
|
+
auto_print_delivery_note?: boolean;
|
|
41
|
+
auto_process_paused?: boolean;
|
|
34
42
|
created_at?: string;
|
|
43
|
+
extra_pick_days_with_stickers?: number;
|
|
35
44
|
id?: string;
|
|
36
45
|
max_workdays_earlier_pick?: number;
|
|
37
46
|
pick_days_before_transport?: number;
|
|
@@ -262,6 +271,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
262
271
|
created_at: string;
|
|
263
272
|
extra_id: string;
|
|
264
273
|
id: string;
|
|
274
|
+
original_unit_price: number | null;
|
|
275
|
+
override_reason: string | null;
|
|
276
|
+
override_unit_price: number | null;
|
|
265
277
|
quantity: number;
|
|
266
278
|
total_price: number;
|
|
267
279
|
unit_price: number;
|
|
@@ -271,6 +283,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
271
283
|
created_at?: string;
|
|
272
284
|
extra_id: string;
|
|
273
285
|
id?: string;
|
|
286
|
+
original_unit_price?: number | null;
|
|
287
|
+
override_reason?: string | null;
|
|
288
|
+
override_unit_price?: number | null;
|
|
274
289
|
quantity?: number;
|
|
275
290
|
total_price?: number;
|
|
276
291
|
unit_price?: number;
|
|
@@ -280,6 +295,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
280
295
|
created_at?: string;
|
|
281
296
|
extra_id?: string;
|
|
282
297
|
id?: string;
|
|
298
|
+
original_unit_price?: number | null;
|
|
299
|
+
override_reason?: string | null;
|
|
300
|
+
override_unit_price?: number | null;
|
|
283
301
|
quantity?: number;
|
|
284
302
|
total_price?: number;
|
|
285
303
|
unit_price?: number;
|
|
@@ -300,11 +318,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
300
318
|
};
|
|
301
319
|
bookings: {
|
|
302
320
|
Row: {
|
|
321
|
+
archive_reason: string | null;
|
|
322
|
+
archived_at: string | null;
|
|
323
|
+
archived_by: string | null;
|
|
303
324
|
company_name: string | null;
|
|
304
325
|
conflict_checked_at: string | null;
|
|
305
326
|
conflict_reason: string | null;
|
|
306
327
|
created_at: string;
|
|
307
328
|
created_by_role: string | null;
|
|
329
|
+
customer_address: string | null;
|
|
308
330
|
customer_email: string | null;
|
|
309
331
|
customer_name: string | null;
|
|
310
332
|
end_time: string;
|
|
@@ -316,7 +338,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
316
338
|
invoiced_at: string | null;
|
|
317
339
|
notes: string | null;
|
|
318
340
|
number_of_people: number;
|
|
341
|
+
overridden_at: string | null;
|
|
342
|
+
overridden_by: string | null;
|
|
343
|
+
override_reason: string | null;
|
|
344
|
+
price_override: boolean;
|
|
319
345
|
room_id: string;
|
|
346
|
+
room_price_override: number | null;
|
|
320
347
|
start_time: string;
|
|
321
348
|
status: string;
|
|
322
349
|
total_excl_vat: number | null;
|
|
@@ -325,11 +352,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
325
352
|
vat_amount: number | null;
|
|
326
353
|
};
|
|
327
354
|
Insert: {
|
|
355
|
+
archive_reason?: string | null;
|
|
356
|
+
archived_at?: string | null;
|
|
357
|
+
archived_by?: string | null;
|
|
328
358
|
company_name?: string | null;
|
|
329
359
|
conflict_checked_at?: string | null;
|
|
330
360
|
conflict_reason?: string | null;
|
|
331
361
|
created_at?: string;
|
|
332
362
|
created_by_role?: string | null;
|
|
363
|
+
customer_address?: string | null;
|
|
333
364
|
customer_email?: string | null;
|
|
334
365
|
customer_name?: string | null;
|
|
335
366
|
end_time: string;
|
|
@@ -341,7 +372,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
341
372
|
invoiced_at?: string | null;
|
|
342
373
|
notes?: string | null;
|
|
343
374
|
number_of_people?: number;
|
|
375
|
+
overridden_at?: string | null;
|
|
376
|
+
overridden_by?: string | null;
|
|
377
|
+
override_reason?: string | null;
|
|
378
|
+
price_override?: boolean;
|
|
344
379
|
room_id: string;
|
|
380
|
+
room_price_override?: number | null;
|
|
345
381
|
start_time: string;
|
|
346
382
|
status?: string;
|
|
347
383
|
total_excl_vat?: number | null;
|
|
@@ -350,11 +386,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
350
386
|
vat_amount?: number | null;
|
|
351
387
|
};
|
|
352
388
|
Update: {
|
|
389
|
+
archive_reason?: string | null;
|
|
390
|
+
archived_at?: string | null;
|
|
391
|
+
archived_by?: string | null;
|
|
353
392
|
company_name?: string | null;
|
|
354
393
|
conflict_checked_at?: string | null;
|
|
355
394
|
conflict_reason?: string | null;
|
|
356
395
|
created_at?: string;
|
|
357
396
|
created_by_role?: string | null;
|
|
397
|
+
customer_address?: string | null;
|
|
358
398
|
customer_email?: string | null;
|
|
359
399
|
customer_name?: string | null;
|
|
360
400
|
end_time?: string;
|
|
@@ -366,7 +406,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
366
406
|
invoiced_at?: string | null;
|
|
367
407
|
notes?: string | null;
|
|
368
408
|
number_of_people?: number;
|
|
409
|
+
overridden_at?: string | null;
|
|
410
|
+
overridden_by?: string | null;
|
|
411
|
+
override_reason?: string | null;
|
|
412
|
+
price_override?: boolean;
|
|
369
413
|
room_id?: string;
|
|
414
|
+
room_price_override?: number | null;
|
|
370
415
|
start_time?: string;
|
|
371
416
|
status?: string;
|
|
372
417
|
total_excl_vat?: number | null;
|
|
@@ -823,6 +868,36 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
823
868
|
};
|
|
824
869
|
Relationships: [];
|
|
825
870
|
};
|
|
871
|
+
cart_replan_queue: {
|
|
872
|
+
Row: {
|
|
873
|
+
attempts: number;
|
|
874
|
+
last_error: string | null;
|
|
875
|
+
order_id: string;
|
|
876
|
+
processed_at: string | null;
|
|
877
|
+
requested_at: string;
|
|
878
|
+
};
|
|
879
|
+
Insert: {
|
|
880
|
+
attempts?: number;
|
|
881
|
+
last_error?: string | null;
|
|
882
|
+
order_id: string;
|
|
883
|
+
processed_at?: string | null;
|
|
884
|
+
requested_at?: string;
|
|
885
|
+
};
|
|
886
|
+
Update: {
|
|
887
|
+
attempts?: number;
|
|
888
|
+
last_error?: string | null;
|
|
889
|
+
order_id?: string;
|
|
890
|
+
processed_at?: string | null;
|
|
891
|
+
requested_at?: string;
|
|
892
|
+
};
|
|
893
|
+
Relationships: [{
|
|
894
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
895
|
+
columns: ["order_id"];
|
|
896
|
+
isOneToOne: true;
|
|
897
|
+
referencedRelation: "orders";
|
|
898
|
+
referencedColumns: ["id"];
|
|
899
|
+
}];
|
|
900
|
+
};
|
|
826
901
|
collections: {
|
|
827
902
|
Row: {
|
|
828
903
|
created_at: string;
|
|
@@ -2948,34 +3023,52 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
2948
3023
|
Row: {
|
|
2949
3024
|
catalog_key: string | null;
|
|
2950
3025
|
catalog_url: string;
|
|
3026
|
+
client_id: string | null;
|
|
3027
|
+
client_secret_ciphertext: string | null;
|
|
3028
|
+
client_secret_last4: string | null;
|
|
2951
3029
|
created_at: string;
|
|
2952
3030
|
id: number;
|
|
2953
3031
|
last_meta: import("./types").Json | null;
|
|
2954
3032
|
last_test_at: string | null;
|
|
2955
3033
|
last_test_error: string | null;
|
|
2956
3034
|
last_test_ok: boolean | null;
|
|
3035
|
+
last_token_test_at: string | null;
|
|
3036
|
+
last_token_test_error: string | null;
|
|
3037
|
+
last_token_test_ok: boolean | null;
|
|
2957
3038
|
updated_at: string;
|
|
2958
3039
|
};
|
|
2959
3040
|
Insert: {
|
|
2960
3041
|
catalog_key?: string | null;
|
|
2961
3042
|
catalog_url?: string;
|
|
3043
|
+
client_id?: string | null;
|
|
3044
|
+
client_secret_ciphertext?: string | null;
|
|
3045
|
+
client_secret_last4?: string | null;
|
|
2962
3046
|
created_at?: string;
|
|
2963
3047
|
id?: number;
|
|
2964
3048
|
last_meta?: import("./types").Json | null;
|
|
2965
3049
|
last_test_at?: string | null;
|
|
2966
3050
|
last_test_error?: string | null;
|
|
2967
3051
|
last_test_ok?: boolean | null;
|
|
3052
|
+
last_token_test_at?: string | null;
|
|
3053
|
+
last_token_test_error?: string | null;
|
|
3054
|
+
last_token_test_ok?: boolean | null;
|
|
2968
3055
|
updated_at?: string;
|
|
2969
3056
|
};
|
|
2970
3057
|
Update: {
|
|
2971
3058
|
catalog_key?: string | null;
|
|
2972
3059
|
catalog_url?: string;
|
|
3060
|
+
client_id?: string | null;
|
|
3061
|
+
client_secret_ciphertext?: string | null;
|
|
3062
|
+
client_secret_last4?: string | null;
|
|
2973
3063
|
created_at?: string;
|
|
2974
3064
|
id?: number;
|
|
2975
3065
|
last_meta?: import("./types").Json | null;
|
|
2976
3066
|
last_test_at?: string | null;
|
|
2977
3067
|
last_test_error?: string | null;
|
|
2978
3068
|
last_test_ok?: boolean | null;
|
|
3069
|
+
last_token_test_at?: string | null;
|
|
3070
|
+
last_token_test_error?: string | null;
|
|
3071
|
+
last_token_test_ok?: boolean | null;
|
|
2979
3072
|
updated_at?: string;
|
|
2980
3073
|
};
|
|
2981
3074
|
Relationships: [];
|
|
@@ -3208,6 +3301,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
3208
3301
|
referencedColumns: ["id"];
|
|
3209
3302
|
}];
|
|
3210
3303
|
};
|
|
3304
|
+
floriday_auto_fulfillment_log: {
|
|
3305
|
+
Row: {
|
|
3306
|
+
attempts: number;
|
|
3307
|
+
connection_id: string;
|
|
3308
|
+
created_at: string;
|
|
3309
|
+
error: string | null;
|
|
3310
|
+
fulfillment_order_id: string | null;
|
|
3311
|
+
id: string;
|
|
3312
|
+
last_attempt_at: string | null;
|
|
3313
|
+
reason: string | null;
|
|
3314
|
+
sales_order_id: string;
|
|
3315
|
+
status: string;
|
|
3316
|
+
updated_at: string;
|
|
3317
|
+
};
|
|
3318
|
+
Insert: {
|
|
3319
|
+
attempts?: number;
|
|
3320
|
+
connection_id: string;
|
|
3321
|
+
created_at?: string;
|
|
3322
|
+
error?: string | null;
|
|
3323
|
+
fulfillment_order_id?: string | null;
|
|
3324
|
+
id?: string;
|
|
3325
|
+
last_attempt_at?: string | null;
|
|
3326
|
+
reason?: string | null;
|
|
3327
|
+
sales_order_id: string;
|
|
3328
|
+
status?: string;
|
|
3329
|
+
updated_at?: string;
|
|
3330
|
+
};
|
|
3331
|
+
Update: {
|
|
3332
|
+
attempts?: number;
|
|
3333
|
+
connection_id?: string;
|
|
3334
|
+
created_at?: string;
|
|
3335
|
+
error?: string | null;
|
|
3336
|
+
fulfillment_order_id?: string | null;
|
|
3337
|
+
id?: string;
|
|
3338
|
+
last_attempt_at?: string | null;
|
|
3339
|
+
reason?: string | null;
|
|
3340
|
+
sales_order_id?: string;
|
|
3341
|
+
status?: string;
|
|
3342
|
+
updated_at?: string;
|
|
3343
|
+
};
|
|
3344
|
+
Relationships: [{
|
|
3345
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3346
|
+
columns: ["connection_id"];
|
|
3347
|
+
isOneToOne: false;
|
|
3348
|
+
referencedRelation: "floriday_connections";
|
|
3349
|
+
referencedColumns: ["id"];
|
|
3350
|
+
}];
|
|
3351
|
+
};
|
|
3211
3352
|
floriday_base_items_cache: {
|
|
3212
3353
|
Row: {
|
|
3213
3354
|
connection_id: string;
|
|
@@ -4312,6 +4453,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
4312
4453
|
referencedColumns: ["id"];
|
|
4313
4454
|
}];
|
|
4314
4455
|
};
|
|
4456
|
+
floriday_rate_limit_state: {
|
|
4457
|
+
Row: {
|
|
4458
|
+
bucket: string;
|
|
4459
|
+
last_refill_at: string;
|
|
4460
|
+
tokens: number;
|
|
4461
|
+
};
|
|
4462
|
+
Insert: {
|
|
4463
|
+
bucket: string;
|
|
4464
|
+
last_refill_at?: string;
|
|
4465
|
+
tokens: number;
|
|
4466
|
+
};
|
|
4467
|
+
Update: {
|
|
4468
|
+
bucket?: string;
|
|
4469
|
+
last_refill_at?: string;
|
|
4470
|
+
tokens?: number;
|
|
4471
|
+
};
|
|
4472
|
+
Relationships: [];
|
|
4473
|
+
};
|
|
4315
4474
|
floriday_resource_schemas: {
|
|
4316
4475
|
Row: {
|
|
4317
4476
|
enums: import("./types").Json;
|
|
@@ -4735,6 +4894,60 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
4735
4894
|
referencedColumns: ["id"];
|
|
4736
4895
|
}];
|
|
4737
4896
|
};
|
|
4897
|
+
flow_role_assignments: {
|
|
4898
|
+
Row: {
|
|
4899
|
+
created_at: string;
|
|
4900
|
+
id: string;
|
|
4901
|
+
role_id: string;
|
|
4902
|
+
user_id: string;
|
|
4903
|
+
};
|
|
4904
|
+
Insert: {
|
|
4905
|
+
created_at?: string;
|
|
4906
|
+
id?: string;
|
|
4907
|
+
role_id: string;
|
|
4908
|
+
user_id: string;
|
|
4909
|
+
};
|
|
4910
|
+
Update: {
|
|
4911
|
+
created_at?: string;
|
|
4912
|
+
id?: string;
|
|
4913
|
+
role_id?: string;
|
|
4914
|
+
user_id?: string;
|
|
4915
|
+
};
|
|
4916
|
+
Relationships: [{
|
|
4917
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
4918
|
+
columns: ["role_id"];
|
|
4919
|
+
isOneToOne: false;
|
|
4920
|
+
referencedRelation: "flow_roles";
|
|
4921
|
+
referencedColumns: ["id"];
|
|
4922
|
+
}];
|
|
4923
|
+
};
|
|
4924
|
+
flow_roles: {
|
|
4925
|
+
Row: {
|
|
4926
|
+
created_at: string;
|
|
4927
|
+
description: string | null;
|
|
4928
|
+
id: string;
|
|
4929
|
+
module_access: string[];
|
|
4930
|
+
name: string;
|
|
4931
|
+
updated_at: string;
|
|
4932
|
+
};
|
|
4933
|
+
Insert: {
|
|
4934
|
+
created_at?: string;
|
|
4935
|
+
description?: string | null;
|
|
4936
|
+
id?: string;
|
|
4937
|
+
module_access?: string[];
|
|
4938
|
+
name: string;
|
|
4939
|
+
updated_at?: string;
|
|
4940
|
+
};
|
|
4941
|
+
Update: {
|
|
4942
|
+
created_at?: string;
|
|
4943
|
+
description?: string | null;
|
|
4944
|
+
id?: string;
|
|
4945
|
+
module_access?: string[];
|
|
4946
|
+
name?: string;
|
|
4947
|
+
updated_at?: string;
|
|
4948
|
+
};
|
|
4949
|
+
Relationships: [];
|
|
4950
|
+
};
|
|
4738
4951
|
imap_accounts: {
|
|
4739
4952
|
Row: {
|
|
4740
4953
|
created_at: string;
|
|
@@ -5366,6 +5579,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
5366
5579
|
matched_customer_id: string | null;
|
|
5367
5580
|
message_id: string;
|
|
5368
5581
|
notes: string | null;
|
|
5582
|
+
order_number: string | null;
|
|
5369
5583
|
parsed_payload: import("./types").Json | null;
|
|
5370
5584
|
reviewed_at: string | null;
|
|
5371
5585
|
reviewed_by: string | null;
|
|
@@ -5381,6 +5595,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
5381
5595
|
matched_customer_id?: string | null;
|
|
5382
5596
|
message_id: string;
|
|
5383
5597
|
notes?: string | null;
|
|
5598
|
+
order_number?: string | null;
|
|
5384
5599
|
parsed_payload?: import("./types").Json | null;
|
|
5385
5600
|
reviewed_at?: string | null;
|
|
5386
5601
|
reviewed_by?: string | null;
|
|
@@ -5396,6 +5611,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
5396
5611
|
matched_customer_id?: string | null;
|
|
5397
5612
|
message_id?: string;
|
|
5398
5613
|
notes?: string | null;
|
|
5614
|
+
order_number?: string | null;
|
|
5399
5615
|
parsed_payload?: import("./types").Json | null;
|
|
5400
5616
|
reviewed_at?: string | null;
|
|
5401
5617
|
reviewed_by?: string | null;
|
|
@@ -6252,6 +6468,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6252
6468
|
id: string;
|
|
6253
6469
|
items: import("./types").Json;
|
|
6254
6470
|
notes: string | null;
|
|
6471
|
+
order_number: string | null;
|
|
6255
6472
|
recipient_id: string;
|
|
6256
6473
|
total_amount: number;
|
|
6257
6474
|
};
|
|
@@ -6265,6 +6482,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6265
6482
|
id?: string;
|
|
6266
6483
|
items?: import("./types").Json;
|
|
6267
6484
|
notes?: string | null;
|
|
6485
|
+
order_number?: string | null;
|
|
6268
6486
|
recipient_id: string;
|
|
6269
6487
|
total_amount?: number;
|
|
6270
6488
|
};
|
|
@@ -6278,6 +6496,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6278
6496
|
id?: string;
|
|
6279
6497
|
items?: import("./types").Json;
|
|
6280
6498
|
notes?: string | null;
|
|
6499
|
+
order_number?: string | null;
|
|
6281
6500
|
recipient_id?: string;
|
|
6282
6501
|
total_amount?: number;
|
|
6283
6502
|
};
|
|
@@ -6437,6 +6656,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6437
6656
|
crates_per_layer: number;
|
|
6438
6657
|
created_at: string;
|
|
6439
6658
|
id: string;
|
|
6659
|
+
layer_fraction: number;
|
|
6660
|
+
layer_share_pct: number;
|
|
6661
|
+
layers_per_cart: number;
|
|
6440
6662
|
order_item_id: string | null;
|
|
6441
6663
|
plants_per_crate: number;
|
|
6442
6664
|
product_id: string | null;
|
|
@@ -6448,6 +6670,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6448
6670
|
crates_per_layer?: number;
|
|
6449
6671
|
created_at?: string;
|
|
6450
6672
|
id?: string;
|
|
6673
|
+
layer_fraction?: number;
|
|
6674
|
+
layer_share_pct?: number;
|
|
6675
|
+
layers_per_cart?: number;
|
|
6451
6676
|
order_item_id?: string | null;
|
|
6452
6677
|
plants_per_crate?: number;
|
|
6453
6678
|
product_id?: string | null;
|
|
@@ -6459,6 +6684,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6459
6684
|
crates_per_layer?: number;
|
|
6460
6685
|
created_at?: string;
|
|
6461
6686
|
id?: string;
|
|
6687
|
+
layer_fraction?: number;
|
|
6688
|
+
layer_share_pct?: number;
|
|
6689
|
+
layers_per_cart?: number;
|
|
6462
6690
|
order_item_id?: string | null;
|
|
6463
6691
|
plants_per_crate?: number;
|
|
6464
6692
|
product_id?: string | null;
|
|
@@ -6486,33 +6714,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6486
6714
|
};
|
|
6487
6715
|
order_carts: {
|
|
6488
6716
|
Row: {
|
|
6717
|
+
algorithm_version: number;
|
|
6489
6718
|
cart_number: number;
|
|
6490
6719
|
created_at: string;
|
|
6491
6720
|
id: string;
|
|
6492
6721
|
is_auto: boolean;
|
|
6493
6722
|
is_complete: boolean;
|
|
6494
6723
|
notes: string | null;
|
|
6724
|
+
occupancy_pct: number;
|
|
6495
6725
|
order_id: string;
|
|
6726
|
+
source: string;
|
|
6727
|
+
total_layers_used: number;
|
|
6496
6728
|
updated_at: string;
|
|
6497
6729
|
};
|
|
6498
6730
|
Insert: {
|
|
6731
|
+
algorithm_version?: number;
|
|
6499
6732
|
cart_number: number;
|
|
6500
6733
|
created_at?: string;
|
|
6501
6734
|
id?: string;
|
|
6502
6735
|
is_auto?: boolean;
|
|
6503
6736
|
is_complete?: boolean;
|
|
6504
6737
|
notes?: string | null;
|
|
6738
|
+
occupancy_pct?: number;
|
|
6505
6739
|
order_id: string;
|
|
6740
|
+
source?: string;
|
|
6741
|
+
total_layers_used?: number;
|
|
6506
6742
|
updated_at?: string;
|
|
6507
6743
|
};
|
|
6508
6744
|
Update: {
|
|
6745
|
+
algorithm_version?: number;
|
|
6509
6746
|
cart_number?: number;
|
|
6510
6747
|
created_at?: string;
|
|
6511
6748
|
id?: string;
|
|
6512
6749
|
is_auto?: boolean;
|
|
6513
6750
|
is_complete?: boolean;
|
|
6514
6751
|
notes?: string | null;
|
|
6752
|
+
occupancy_pct?: number;
|
|
6515
6753
|
order_id?: string;
|
|
6754
|
+
source?: string;
|
|
6755
|
+
total_layers_used?: number;
|
|
6516
6756
|
updated_at?: string;
|
|
6517
6757
|
};
|
|
6518
6758
|
Relationships: [{
|
|
@@ -6665,6 +6905,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6665
6905
|
order_date: string;
|
|
6666
6906
|
order_number: string;
|
|
6667
6907
|
order_source: string;
|
|
6908
|
+
plan_locked_at: string | null;
|
|
6909
|
+
plan_locked_ref: string | null;
|
|
6668
6910
|
status: string;
|
|
6669
6911
|
total: string;
|
|
6670
6912
|
updated_at: string;
|
|
@@ -6681,6 +6923,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6681
6923
|
order_date?: string;
|
|
6682
6924
|
order_number: string;
|
|
6683
6925
|
order_source?: string;
|
|
6926
|
+
plan_locked_at?: string | null;
|
|
6927
|
+
plan_locked_ref?: string | null;
|
|
6684
6928
|
status?: string;
|
|
6685
6929
|
total?: string;
|
|
6686
6930
|
updated_at?: string;
|
|
@@ -6697,6 +6941,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6697
6941
|
order_date?: string;
|
|
6698
6942
|
order_number?: string;
|
|
6699
6943
|
order_source?: string;
|
|
6944
|
+
plan_locked_at?: string | null;
|
|
6945
|
+
plan_locked_ref?: string | null;
|
|
6700
6946
|
status?: string;
|
|
6701
6947
|
total?: string;
|
|
6702
6948
|
updated_at?: string;
|
|
@@ -7065,28 +7311,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7065
7311
|
};
|
|
7066
7312
|
profiles: {
|
|
7067
7313
|
Row: {
|
|
7314
|
+
address: string | null;
|
|
7068
7315
|
created_at: string;
|
|
7069
7316
|
display_name: string | null;
|
|
7070
7317
|
email: string | null;
|
|
7071
7318
|
id: string;
|
|
7319
|
+
is_superadmin: boolean;
|
|
7072
7320
|
notification_preferences: import("./types").Json;
|
|
7073
7321
|
tenant_id: string | null;
|
|
7074
7322
|
updated_at: string;
|
|
7075
7323
|
};
|
|
7076
7324
|
Insert: {
|
|
7325
|
+
address?: string | null;
|
|
7077
7326
|
created_at?: string;
|
|
7078
7327
|
display_name?: string | null;
|
|
7079
7328
|
email?: string | null;
|
|
7080
7329
|
id: string;
|
|
7330
|
+
is_superadmin?: boolean;
|
|
7081
7331
|
notification_preferences?: import("./types").Json;
|
|
7082
7332
|
tenant_id?: string | null;
|
|
7083
7333
|
updated_at?: string;
|
|
7084
7334
|
};
|
|
7085
7335
|
Update: {
|
|
7336
|
+
address?: string | null;
|
|
7086
7337
|
created_at?: string;
|
|
7087
7338
|
display_name?: string | null;
|
|
7088
7339
|
email?: string | null;
|
|
7089
7340
|
id?: string;
|
|
7341
|
+
is_superadmin?: boolean;
|
|
7090
7342
|
notification_preferences?: import("./types").Json;
|
|
7091
7343
|
tenant_id?: string | null;
|
|
7092
7344
|
updated_at?: string;
|
|
@@ -7876,6 +8128,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7876
8128
|
};
|
|
7877
8129
|
Relationships: [];
|
|
7878
8130
|
};
|
|
8131
|
+
sidebar_config: {
|
|
8132
|
+
Row: {
|
|
8133
|
+
id: string;
|
|
8134
|
+
module_order: string[];
|
|
8135
|
+
updated_at: string;
|
|
8136
|
+
};
|
|
8137
|
+
Insert: {
|
|
8138
|
+
id?: string;
|
|
8139
|
+
module_order?: string[];
|
|
8140
|
+
updated_at?: string;
|
|
8141
|
+
};
|
|
8142
|
+
Update: {
|
|
8143
|
+
id?: string;
|
|
8144
|
+
module_order?: string[];
|
|
8145
|
+
updated_at?: string;
|
|
8146
|
+
};
|
|
8147
|
+
Relationships: [];
|
|
8148
|
+
};
|
|
7879
8149
|
stock_import_runs: {
|
|
7880
8150
|
Row: {
|
|
7881
8151
|
connection_id: string | null;
|
|
@@ -7934,7 +8204,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7934
8204
|
reason: string | null;
|
|
7935
8205
|
reserved_after: number | null;
|
|
7936
8206
|
reserved_before: number | null;
|
|
7937
|
-
trade_item_key: string;
|
|
8207
|
+
trade_item_key: string | null;
|
|
7938
8208
|
};
|
|
7939
8209
|
Insert: {
|
|
7940
8210
|
connection_id?: string | null;
|
|
@@ -7951,7 +8221,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7951
8221
|
reason?: string | null;
|
|
7952
8222
|
reserved_after?: number | null;
|
|
7953
8223
|
reserved_before?: number | null;
|
|
7954
|
-
trade_item_key
|
|
8224
|
+
trade_item_key?: string | null;
|
|
7955
8225
|
};
|
|
7956
8226
|
Update: {
|
|
7957
8227
|
connection_id?: string | null;
|
|
@@ -7968,7 +8238,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7968
8238
|
reason?: string | null;
|
|
7969
8239
|
reserved_after?: number | null;
|
|
7970
8240
|
reserved_before?: number | null;
|
|
7971
|
-
trade_item_key?: string;
|
|
8241
|
+
trade_item_key?: string | null;
|
|
7972
8242
|
};
|
|
7973
8243
|
Relationships: [];
|
|
7974
8244
|
};
|
|
@@ -8311,6 +8581,114 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8311
8581
|
};
|
|
8312
8582
|
Relationships: [];
|
|
8313
8583
|
};
|
|
8584
|
+
trade_item_supply_lines: {
|
|
8585
|
+
Row: {
|
|
8586
|
+
available_quantity: number | null;
|
|
8587
|
+
connection_id: string;
|
|
8588
|
+
created_at: string;
|
|
8589
|
+
currency: string | null;
|
|
8590
|
+
endpoint_family: string | null;
|
|
8591
|
+
environment: string | null;
|
|
8592
|
+
id: string;
|
|
8593
|
+
last_error: string | null;
|
|
8594
|
+
last_status: number | null;
|
|
8595
|
+
packing_configuration_id: string | null;
|
|
8596
|
+
period_end: string | null;
|
|
8597
|
+
period_start: string | null;
|
|
8598
|
+
price_per_piece: number | null;
|
|
8599
|
+
sales_unit: string | null;
|
|
8600
|
+
supply_line_id: string | null;
|
|
8601
|
+
supply_type: string;
|
|
8602
|
+
trade_item_id: string;
|
|
8603
|
+
updated_at: string;
|
|
8604
|
+
user_id: string;
|
|
8605
|
+
week: number | null;
|
|
8606
|
+
year: number | null;
|
|
8607
|
+
};
|
|
8608
|
+
Insert: {
|
|
8609
|
+
available_quantity?: number | null;
|
|
8610
|
+
connection_id: string;
|
|
8611
|
+
created_at?: string;
|
|
8612
|
+
currency?: string | null;
|
|
8613
|
+
endpoint_family?: string | null;
|
|
8614
|
+
environment?: string | null;
|
|
8615
|
+
id?: string;
|
|
8616
|
+
last_error?: string | null;
|
|
8617
|
+
last_status?: number | null;
|
|
8618
|
+
packing_configuration_id?: string | null;
|
|
8619
|
+
period_end?: string | null;
|
|
8620
|
+
period_start?: string | null;
|
|
8621
|
+
price_per_piece?: number | null;
|
|
8622
|
+
sales_unit?: string | null;
|
|
8623
|
+
supply_line_id?: string | null;
|
|
8624
|
+
supply_type?: string;
|
|
8625
|
+
trade_item_id: string;
|
|
8626
|
+
updated_at?: string;
|
|
8627
|
+
user_id: string;
|
|
8628
|
+
week?: number | null;
|
|
8629
|
+
year?: number | null;
|
|
8630
|
+
};
|
|
8631
|
+
Update: {
|
|
8632
|
+
available_quantity?: number | null;
|
|
8633
|
+
connection_id?: string;
|
|
8634
|
+
created_at?: string;
|
|
8635
|
+
currency?: string | null;
|
|
8636
|
+
endpoint_family?: string | null;
|
|
8637
|
+
environment?: string | null;
|
|
8638
|
+
id?: string;
|
|
8639
|
+
last_error?: string | null;
|
|
8640
|
+
last_status?: number | null;
|
|
8641
|
+
packing_configuration_id?: string | null;
|
|
8642
|
+
period_end?: string | null;
|
|
8643
|
+
period_start?: string | null;
|
|
8644
|
+
price_per_piece?: number | null;
|
|
8645
|
+
sales_unit?: string | null;
|
|
8646
|
+
supply_line_id?: string | null;
|
|
8647
|
+
supply_type?: string;
|
|
8648
|
+
trade_item_id?: string;
|
|
8649
|
+
updated_at?: string;
|
|
8650
|
+
user_id?: string;
|
|
8651
|
+
week?: number | null;
|
|
8652
|
+
year?: number | null;
|
|
8653
|
+
};
|
|
8654
|
+
Relationships: [];
|
|
8655
|
+
};
|
|
8656
|
+
trade_item_warehouse_preferences: {
|
|
8657
|
+
Row: {
|
|
8658
|
+
connection_id: string;
|
|
8659
|
+
created_at: string;
|
|
8660
|
+
id: string;
|
|
8661
|
+
trade_item_id: string;
|
|
8662
|
+
updated_at: string;
|
|
8663
|
+
warehouse_id: string;
|
|
8664
|
+
warehouse_name: string | null;
|
|
8665
|
+
};
|
|
8666
|
+
Insert: {
|
|
8667
|
+
connection_id: string;
|
|
8668
|
+
created_at?: string;
|
|
8669
|
+
id?: string;
|
|
8670
|
+
trade_item_id: string;
|
|
8671
|
+
updated_at?: string;
|
|
8672
|
+
warehouse_id: string;
|
|
8673
|
+
warehouse_name?: string | null;
|
|
8674
|
+
};
|
|
8675
|
+
Update: {
|
|
8676
|
+
connection_id?: string;
|
|
8677
|
+
created_at?: string;
|
|
8678
|
+
id?: string;
|
|
8679
|
+
trade_item_id?: string;
|
|
8680
|
+
updated_at?: string;
|
|
8681
|
+
warehouse_id?: string;
|
|
8682
|
+
warehouse_name?: string | null;
|
|
8683
|
+
};
|
|
8684
|
+
Relationships: [{
|
|
8685
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8686
|
+
columns: ["connection_id"];
|
|
8687
|
+
isOneToOne: false;
|
|
8688
|
+
referencedRelation: "floriday_connections";
|
|
8689
|
+
referencedColumns: ["id"];
|
|
8690
|
+
}];
|
|
8691
|
+
};
|
|
8314
8692
|
twinfield_connections: {
|
|
8315
8693
|
Row: {
|
|
8316
8694
|
access_token: string | null;
|
|
@@ -8630,6 +9008,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8630
9008
|
default_invoice_type: string;
|
|
8631
9009
|
default_payment_term_days: number;
|
|
8632
9010
|
default_vat_code: string;
|
|
9011
|
+
invoice_enabled_ao: boolean;
|
|
9012
|
+
invoice_enabled_fo: boolean;
|
|
9013
|
+
invoice_enabled_ho: boolean;
|
|
9014
|
+
invoice_enabled_mo: boolean;
|
|
8633
9015
|
updated_at: string;
|
|
8634
9016
|
user_id: string;
|
|
8635
9017
|
};
|
|
@@ -8639,6 +9021,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8639
9021
|
default_invoice_type?: string;
|
|
8640
9022
|
default_payment_term_days?: number;
|
|
8641
9023
|
default_vat_code?: string;
|
|
9024
|
+
invoice_enabled_ao?: boolean;
|
|
9025
|
+
invoice_enabled_fo?: boolean;
|
|
9026
|
+
invoice_enabled_ho?: boolean;
|
|
9027
|
+
invoice_enabled_mo?: boolean;
|
|
8642
9028
|
updated_at?: string;
|
|
8643
9029
|
user_id: string;
|
|
8644
9030
|
};
|
|
@@ -8648,6 +9034,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8648
9034
|
default_invoice_type?: string;
|
|
8649
9035
|
default_payment_term_days?: number;
|
|
8650
9036
|
default_vat_code?: string;
|
|
9037
|
+
invoice_enabled_ao?: boolean;
|
|
9038
|
+
invoice_enabled_fo?: boolean;
|
|
9039
|
+
invoice_enabled_ho?: boolean;
|
|
9040
|
+
invoice_enabled_mo?: boolean;
|
|
8651
9041
|
updated_at?: string;
|
|
8652
9042
|
user_id?: string;
|
|
8653
9043
|
};
|
|
@@ -9942,6 +10332,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9942
10332
|
order_number: string;
|
|
9943
10333
|
}[];
|
|
9944
10334
|
};
|
|
10335
|
+
autolink_product_to_floriday: {
|
|
10336
|
+
Args: {
|
|
10337
|
+
p_product_id: string;
|
|
10338
|
+
};
|
|
10339
|
+
Returns: string;
|
|
10340
|
+
};
|
|
9945
10341
|
backfill_open_order_reservations: {
|
|
9946
10342
|
Args: never;
|
|
9947
10343
|
Returns: {
|
|
@@ -9978,7 +10374,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
9978
10374
|
};
|
|
9979
10375
|
cleanup_old_bookings: {
|
|
9980
10376
|
Args: never;
|
|
9981
|
-
Returns:
|
|
10377
|
+
Returns: undefined;
|
|
10378
|
+
};
|
|
10379
|
+
consume_floriday_rate_limit: {
|
|
10380
|
+
Args: {
|
|
10381
|
+
p_bucket: string;
|
|
10382
|
+
p_capacity: number;
|
|
10383
|
+
p_cost?: number;
|
|
10384
|
+
p_refill_per_sec: number;
|
|
10385
|
+
};
|
|
10386
|
+
Returns: {
|
|
10387
|
+
granted: boolean;
|
|
10388
|
+
wait_ms: number;
|
|
10389
|
+
}[];
|
|
9982
10390
|
};
|
|
9983
10391
|
control_get_todays_carts: {
|
|
9984
10392
|
Args: never;
|
|
@@ -10060,6 +10468,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10060
10468
|
status: string;
|
|
10061
10469
|
}[];
|
|
10062
10470
|
};
|
|
10471
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10472
|
+
Args: {
|
|
10473
|
+
p_order_id: string;
|
|
10474
|
+
};
|
|
10475
|
+
Returns: undefined;
|
|
10476
|
+
};
|
|
10063
10477
|
ensure_trade_item_stock_row: {
|
|
10064
10478
|
Args: {
|
|
10065
10479
|
p_key: string;
|
|
@@ -10166,6 +10580,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10166
10580
|
office_code: string;
|
|
10167
10581
|
}[];
|
|
10168
10582
|
};
|
|
10583
|
+
get_floricode_record_counts: {
|
|
10584
|
+
Args: never;
|
|
10585
|
+
Returns: {
|
|
10586
|
+
count: number;
|
|
10587
|
+
resource: string;
|
|
10588
|
+
}[];
|
|
10589
|
+
};
|
|
10169
10590
|
get_floriday_agreements_active: {
|
|
10170
10591
|
Args: {
|
|
10171
10592
|
p_on_date?: string;
|
|
@@ -10257,6 +10678,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10257
10678
|
};
|
|
10258
10679
|
Returns: import("./types").Json;
|
|
10259
10680
|
};
|
|
10681
|
+
get_offer_delivery_options: {
|
|
10682
|
+
Args: {
|
|
10683
|
+
p_code: string;
|
|
10684
|
+
};
|
|
10685
|
+
Returns: import("./types").Json;
|
|
10686
|
+
};
|
|
10260
10687
|
get_offer_recipient_by_code: {
|
|
10261
10688
|
Args: {
|
|
10262
10689
|
p_code: string;
|
|
@@ -10321,6 +10748,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10321
10748
|
Args: never;
|
|
10322
10749
|
Returns: boolean;
|
|
10323
10750
|
};
|
|
10751
|
+
is_superadmin: {
|
|
10752
|
+
Args: {
|
|
10753
|
+
_user_id: string;
|
|
10754
|
+
};
|
|
10755
|
+
Returns: boolean;
|
|
10756
|
+
};
|
|
10324
10757
|
local_effective_price: {
|
|
10325
10758
|
Args: {
|
|
10326
10759
|
_customer_id: string;
|
|
@@ -10355,6 +10788,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10355
10788
|
};
|
|
10356
10789
|
Returns: string;
|
|
10357
10790
|
};
|
|
10791
|
+
next_order_number_for_date: {
|
|
10792
|
+
Args: {
|
|
10793
|
+
p_created_at?: string;
|
|
10794
|
+
p_prefix: string;
|
|
10795
|
+
};
|
|
10796
|
+
Returns: string;
|
|
10797
|
+
};
|
|
10358
10798
|
next_work_order_number: {
|
|
10359
10799
|
Args: {
|
|
10360
10800
|
p_parent_work_order_id?: string;
|
|
@@ -10362,6 +10802,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10362
10802
|
};
|
|
10363
10803
|
Returns: string;
|
|
10364
10804
|
};
|
|
10805
|
+
normalize_order_source: {
|
|
10806
|
+
Args: {
|
|
10807
|
+
p_src: string;
|
|
10808
|
+
};
|
|
10809
|
+
Returns: string;
|
|
10810
|
+
};
|
|
10365
10811
|
normalize_vat: {
|
|
10366
10812
|
Args: {
|
|
10367
10813
|
v: string;
|
|
@@ -10376,10 +10822,21 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10376
10822
|
};
|
|
10377
10823
|
Returns: boolean;
|
|
10378
10824
|
};
|
|
10825
|
+
order_number_prefix: {
|
|
10826
|
+
Args: {
|
|
10827
|
+
p_custom_fields?: import("./types").Json;
|
|
10828
|
+
p_order_source: string;
|
|
10829
|
+
};
|
|
10830
|
+
Returns: string;
|
|
10831
|
+
};
|
|
10379
10832
|
pickstation_get_orders_raw: {
|
|
10380
10833
|
Args: never;
|
|
10381
10834
|
Returns: import("./types").Json;
|
|
10382
10835
|
};
|
|
10836
|
+
pickstation_get_planning_context: {
|
|
10837
|
+
Args: never;
|
|
10838
|
+
Returns: import("./types").Json;
|
|
10839
|
+
};
|
|
10383
10840
|
pickstation_get_settings: {
|
|
10384
10841
|
Args: never;
|
|
10385
10842
|
Returns: import("./types").Json;
|
|
@@ -10410,6 +10867,28 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10410
10867
|
};
|
|
10411
10868
|
Returns: undefined;
|
|
10412
10869
|
};
|
|
10870
|
+
recompute_order_status: {
|
|
10871
|
+
Args: {
|
|
10872
|
+
p_order_id: string;
|
|
10873
|
+
};
|
|
10874
|
+
Returns: undefined;
|
|
10875
|
+
};
|
|
10876
|
+
recompute_reserved_for_order: {
|
|
10877
|
+
Args: {
|
|
10878
|
+
p_order_id: string;
|
|
10879
|
+
};
|
|
10880
|
+
Returns: undefined;
|
|
10881
|
+
};
|
|
10882
|
+
recompute_reserved_stock: {
|
|
10883
|
+
Args: {
|
|
10884
|
+
p_trade_item_key: string;
|
|
10885
|
+
};
|
|
10886
|
+
Returns: undefined;
|
|
10887
|
+
};
|
|
10888
|
+
refresh_external_customers_grouped: {
|
|
10889
|
+
Args: never;
|
|
10890
|
+
Returns: undefined;
|
|
10891
|
+
};
|
|
10413
10892
|
refresh_floricode_derived_code_lists: {
|
|
10414
10893
|
Args: never;
|
|
10415
10894
|
Returns: {
|
|
@@ -10424,6 +10903,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10424
10903
|
};
|
|
10425
10904
|
Returns: number;
|
|
10426
10905
|
};
|
|
10906
|
+
refresh_floricode_derived_for_products: {
|
|
10907
|
+
Args: {
|
|
10908
|
+
_product_ids: string[];
|
|
10909
|
+
};
|
|
10910
|
+
Returns: number;
|
|
10911
|
+
};
|
|
10427
10912
|
reset_floriday_sync_cursor: {
|
|
10428
10913
|
Args: {
|
|
10429
10914
|
p_connection_id: string;
|
|
@@ -10431,6 +10916,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10431
10916
|
};
|
|
10432
10917
|
Returns: undefined;
|
|
10433
10918
|
};
|
|
10919
|
+
resolve_product_id_for_item: {
|
|
10920
|
+
Args: {
|
|
10921
|
+
p_product_name: string;
|
|
10922
|
+
};
|
|
10923
|
+
Returns: string;
|
|
10924
|
+
};
|
|
10434
10925
|
schedule_floriday_additional_services_sync: {
|
|
10435
10926
|
Args: {
|
|
10436
10927
|
p_apikey: string;
|
|
@@ -10708,6 +11199,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10708
11199
|
};
|
|
10709
11200
|
Returns: string[];
|
|
10710
11201
|
};
|
|
11202
|
+
sync_cached_packing_from_product: {
|
|
11203
|
+
Args: {
|
|
11204
|
+
p_product_id: string;
|
|
11205
|
+
};
|
|
11206
|
+
Returns: undefined;
|
|
11207
|
+
};
|
|
11208
|
+
sync_order_cart_item_packing_from_product: {
|
|
11209
|
+
Args: {
|
|
11210
|
+
p_product_id: string;
|
|
11211
|
+
};
|
|
11212
|
+
Returns: undefined;
|
|
11213
|
+
};
|
|
11214
|
+
sync_product_packing_from_floriday_cache: {
|
|
11215
|
+
Args: {
|
|
11216
|
+
p_floriday_id: string;
|
|
11217
|
+
};
|
|
11218
|
+
Returns: undefined;
|
|
11219
|
+
};
|
|
10711
11220
|
twinfield_decrypt: {
|
|
10712
11221
|
Args: {
|
|
10713
11222
|
cipher: string;
|
|
@@ -10720,6 +11229,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
10720
11229
|
};
|
|
10721
11230
|
Returns: string;
|
|
10722
11231
|
};
|
|
11232
|
+
upsert_auto_fulfillment_log: {
|
|
11233
|
+
Args: {
|
|
11234
|
+
p_connection_id: string;
|
|
11235
|
+
p_error?: string;
|
|
11236
|
+
p_fulfillment_order_id?: string;
|
|
11237
|
+
p_reason?: string;
|
|
11238
|
+
p_sales_order_id: string;
|
|
11239
|
+
p_status: string;
|
|
11240
|
+
};
|
|
11241
|
+
Returns: undefined;
|
|
11242
|
+
};
|
|
10723
11243
|
};
|
|
10724
11244
|
Enums: {
|
|
10725
11245
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|