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