@flowselections/floriday-authenticatie-module 1.0.23 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -847,6 +847,7 @@ export const scheduleFlorydayCustomerStickersSync = createServerFn({ method: "PO
847
847
  export const getActiveFlorydayPublic = createServerFn({ method: "GET" })
848
848
  .middleware([requireSupabaseAuth])
849
849
  .handler(async ({ context }) => {
850
+ const { supabaseAdmin } = await import("../integrations/supabase/client.server");
850
851
  const { data: settings } = await context.supabase
851
852
  .from("floriday_settings")
852
853
  .select("active_environment")
@@ -856,7 +857,7 @@ export const getActiveFlorydayPublic = createServerFn({ method: "GET" })
856
857
  "live"
857
858
  ? "live"
858
859
  : "staging";
859
- const { data: row } = await context.supabase
860
+ const { data: row } = await supabaseAdmin
860
861
  .from("floriday_connections")
861
862
  .select("id, environment, organization_name, gln_code, preferred_warehouse_id, preferred_warehouse_name")
862
863
  .eq("environment", env)
@@ -28,7 +28,24 @@ export interface FlorydayWarehouse {
28
28
  isDefault?: boolean;
29
29
  }
30
30
  export declare const SUPPLIERS_API_VERSION = "suppliers-api-2026v1";
31
- export declare function getActiveFlorydayCredentials(supabase: SupabaseClient, env: FlorydayEnvironment): Promise<any>;
31
+ export declare function getActiveFlorydayCredentials(supabase: SupabaseClient, env: FlorydayEnvironment): Promise<{
32
+ access_token: string | null;
33
+ api_key: string;
34
+ client_id: string;
35
+ client_secret: string;
36
+ created_at: string;
37
+ customers_endpoint: string | null;
38
+ environment: string;
39
+ gln_code: string | null;
40
+ id: string;
41
+ is_active: boolean;
42
+ label: string;
43
+ organization_name: string | null;
44
+ preferred_warehouse_id: string | null;
45
+ preferred_warehouse_name: string | null;
46
+ token_expires_at: string | null;
47
+ updated_at: string;
48
+ } | null>;
32
49
  export declare function getFlorydayAccessToken(supabase: SupabaseClient, env: FlorydayEnvironment, options?: {
33
50
  forceRefresh?: boolean;
34
51
  scope?: string;
@@ -1805,7 +1822,13 @@ export declare const listFlorydayConnections: import("@tanstack/start-client-cor
1805
1822
  fax?: string | null;
1806
1823
  floriday_connection_id?: string | null;
1807
1824
  floriday_organization_id?: string | null;
1808
- floriday_raw?: import("../integrations/supabase/types").Json | null;
1825
+ floriday_raw
1826
+ /**
1827
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
1828
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
1829
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
1830
+ */
1831
+ ?: import("../integrations/supabase/types").Json | null;
1809
1832
  gln?: string | null;
1810
1833
  house_number?: string | null;
1811
1834
  icp_country_code?: string | null;
@@ -14321,7 +14344,13 @@ export declare const getFlorydayTokenHealth: import("@tanstack/start-client-core
14321
14344
  fax?: string | null;
14322
14345
  floriday_connection_id?: string | null;
14323
14346
  floriday_organization_id?: string | null;
14324
- floriday_raw?: import("../integrations/supabase/types").Json | null;
14347
+ floriday_raw
14348
+ /**
14349
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
14350
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
14351
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
14352
+ */
14353
+ ?: import("../integrations/supabase/types").Json | null;
14325
14354
  gln?: string | null;
14326
14355
  house_number?: string | null;
14327
14356
  icp_country_code?: string | null;
@@ -26851,7 +26880,13 @@ export declare const forceRefreshFlorydayToken: import("@tanstack/start-client-c
26851
26880
  fax?: string | null;
26852
26881
  floriday_connection_id?: string | null;
26853
26882
  floriday_organization_id?: string | null;
26854
- floriday_raw?: import("../integrations/supabase/types").Json | null;
26883
+ floriday_raw
26884
+ /**
26885
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
26886
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
26887
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
26888
+ */
26889
+ ?: import("../integrations/supabase/types").Json | null;
26855
26890
  gln?: string | null;
26856
26891
  house_number?: string | null;
26857
26892
  icp_country_code?: string | null;
@@ -39374,7 +39409,13 @@ export declare const upsertFlorydayConnection: import("@tanstack/start-client-co
39374
39409
  fax?: string | null;
39375
39410
  floriday_connection_id?: string | null;
39376
39411
  floriday_organization_id?: string | null;
39377
- floriday_raw?: import("../integrations/supabase/types").Json | null;
39412
+ floriday_raw
39413
+ /**
39414
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
39415
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
39416
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
39417
+ */
39418
+ ?: import("../integrations/supabase/types").Json | null;
39378
39419
  gln?: string | null;
39379
39420
  house_number?: string | null;
39380
39421
  icp_country_code?: string | null;
@@ -51902,7 +51943,13 @@ export declare const deleteFlorydayConnection: import("@tanstack/start-client-co
51902
51943
  fax?: string | null;
51903
51944
  floriday_connection_id?: string | null;
51904
51945
  floriday_organization_id?: string | null;
51905
- floriday_raw?: import("../integrations/supabase/types").Json | null;
51946
+ floriday_raw
51947
+ /**
51948
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
51949
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
51950
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
51951
+ */
51952
+ ?: import("../integrations/supabase/types").Json | null;
51906
51953
  gln?: string | null;
51907
51954
  house_number?: string | null;
51908
51955
  icp_country_code?: string | null;
@@ -64424,7 +64471,13 @@ export declare const testFlorydayConnection: import("@tanstack/start-client-core
64424
64471
  fax?: string | null;
64425
64472
  floriday_connection_id?: string | null;
64426
64473
  floriday_organization_id?: string | null;
64427
- floriday_raw?: import("../integrations/supabase/types").Json | null;
64474
+ floriday_raw
64475
+ /**
64476
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
64477
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
64478
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
64479
+ */
64480
+ ?: import("../integrations/supabase/types").Json | null;
64428
64481
  gln?: string | null;
64429
64482
  house_number?: string | null;
64430
64483
  icp_country_code?: string | null;
@@ -76951,7 +77004,13 @@ export declare const setupFlorydayTokenRefreshCron: import("@tanstack/start-clie
76951
77004
  fax?: string | null;
76952
77005
  floriday_connection_id?: string | null;
76953
77006
  floriday_organization_id?: string | null;
76954
- floriday_raw?: import("../integrations/supabase/types").Json | null;
77007
+ floriday_raw
77008
+ /**
77009
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
77010
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
77011
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
77012
+ */
77013
+ ?: import("../integrations/supabase/types").Json | null;
76955
77014
  gln?: string | null;
76956
77015
  house_number?: string | null;
76957
77016
  icp_country_code?: string | null;
@@ -89471,7 +89530,13 @@ export declare const getFlorydaySettings: import("@tanstack/start-client-core").
89471
89530
  fax?: string | null;
89472
89531
  floriday_connection_id?: string | null;
89473
89532
  floriday_organization_id?: string | null;
89474
- floriday_raw?: import("../integrations/supabase/types").Json | null;
89533
+ floriday_raw
89534
+ /**
89535
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
89536
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
89537
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
89538
+ */
89539
+ ?: import("../integrations/supabase/types").Json | null;
89475
89540
  gln?: string | null;
89476
89541
  house_number?: string | null;
89477
89542
  icp_country_code?: string | null;
@@ -101989,7 +102054,13 @@ export declare const setFlorydayActiveEnvironment: import("@tanstack/start-clien
101989
102054
  fax?: string | null;
101990
102055
  floriday_connection_id?: string | null;
101991
102056
  floriday_organization_id?: string | null;
101992
- floriday_raw?: import("../integrations/supabase/types").Json | null;
102057
+ floriday_raw
102058
+ /**
102059
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
102060
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
102061
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
102062
+ */
102063
+ ?: import("../integrations/supabase/types").Json | null;
101993
102064
  gln?: string | null;
101994
102065
  house_number?: string | null;
101995
102066
  icp_country_code?: string | null;
@@ -114512,7 +114583,13 @@ export declare const listFlorydayWarehouses: import("@tanstack/start-client-core
114512
114583
  fax?: string | null;
114513
114584
  floriday_connection_id?: string | null;
114514
114585
  floriday_organization_id?: string | null;
114515
- floriday_raw?: import("../integrations/supabase/types").Json | null;
114586
+ floriday_raw
114587
+ /**
114588
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
114589
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
114590
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
114591
+ */
114592
+ ?: import("../integrations/supabase/types").Json | null;
114516
114593
  gln?: string | null;
114517
114594
  house_number?: string | null;
114518
114595
  icp_country_code?: string | null;
@@ -127038,7 +127115,13 @@ export declare const updateFlorydayPublishingSettings: import("@tanstack/start-c
127038
127115
  fax?: string | null;
127039
127116
  floriday_connection_id?: string | null;
127040
127117
  floriday_organization_id?: string | null;
127041
- floriday_raw?: import("../integrations/supabase/types").Json | null;
127118
+ floriday_raw
127119
+ /**
127120
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
127121
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
127122
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
127123
+ */
127124
+ ?: import("../integrations/supabase/types").Json | null;
127042
127125
  gln?: string | null;
127043
127126
  house_number?: string | null;
127044
127127
  icp_country_code?: string | null;
@@ -139584,7 +139667,13 @@ export declare const syncFlorydayConnections: import("@tanstack/start-client-cor
139584
139667
  fax?: string | null;
139585
139668
  floriday_connection_id?: string | null;
139586
139669
  floriday_organization_id?: string | null;
139587
- floriday_raw?: import("../integrations/supabase/types").Json | null;
139670
+ floriday_raw
139671
+ /**
139672
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
139673
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
139674
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
139675
+ */
139676
+ ?: import("../integrations/supabase/types").Json | null;
139588
139677
  gln?: string | null;
139589
139678
  house_number?: string | null;
139590
139679
  icp_country_code?: string | null;
@@ -152121,7 +152210,13 @@ export declare const getFlorydaySyncStatus: import("@tanstack/start-client-core"
152121
152210
  fax?: string | null;
152122
152211
  floriday_connection_id?: string | null;
152123
152212
  floriday_organization_id?: string | null;
152124
- floriday_raw?: import("../integrations/supabase/types").Json | null;
152213
+ floriday_raw
152214
+ /**
152215
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
152216
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
152217
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
152218
+ */
152219
+ ?: import("../integrations/supabase/types").Json | null;
152125
152220
  gln?: string | null;
152126
152221
  house_number?: string | null;
152127
152222
  icp_country_code?: string | null;
@@ -164647,7 +164742,13 @@ export declare const setupFlorydayConnectionsSyncCron: import("@tanstack/start-c
164647
164742
  fax?: string | null;
164648
164743
  floriday_connection_id?: string | null;
164649
164744
  floriday_organization_id?: string | null;
164650
- floriday_raw?: import("../integrations/supabase/types").Json | null;
164745
+ floriday_raw
164746
+ /**
164747
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
164748
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
164749
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
164750
+ */
164751
+ ?: import("../integrations/supabase/types").Json | null;
164651
164752
  gln?: string | null;
164652
164753
  house_number?: string | null;
164653
164754
  icp_country_code?: string | null;
@@ -177172,7 +177273,13 @@ export declare const getFlorydayCronStatus: import("@tanstack/start-client-core"
177172
177273
  fax?: string | null;
177173
177274
  floriday_connection_id?: string | null;
177174
177275
  floriday_organization_id?: string | null;
177175
- floriday_raw?: import("../integrations/supabase/types").Json | null;
177276
+ floriday_raw
177277
+ /**
177278
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
177279
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
177280
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
177281
+ */
177282
+ ?: import("../integrations/supabase/types").Json | null;
177176
177283
  gln?: string | null;
177177
177284
  house_number?: string | null;
177178
177285
  icp_country_code?: string | null;
@@ -189707,7 +189814,13 @@ export declare const reinstallFlorydayCrons: import("@tanstack/start-client-core
189707
189814
  fax?: string | null;
189708
189815
  floriday_connection_id?: string | null;
189709
189816
  floriday_organization_id?: string | null;
189710
- floriday_raw?: import("../integrations/supabase/types").Json | null;
189817
+ floriday_raw
189818
+ /**
189819
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
189820
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
189821
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
189822
+ */
189823
+ ?: import("../integrations/supabase/types").Json | null;
189711
189824
  gln?: string | null;
189712
189825
  house_number?: string | null;
189713
189826
  icp_country_code?: string | null;
@@ -202288,7 +202401,13 @@ export declare const getFlorydaySyncHealth: import("@tanstack/start-client-core"
202288
202401
  fax?: string | null;
202289
202402
  floriday_connection_id?: string | null;
202290
202403
  floriday_organization_id?: string | null;
202291
- floriday_raw?: import("../integrations/supabase/types").Json | null;
202404
+ floriday_raw
202405
+ /**
202406
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
202407
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
202408
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
202409
+ */
202410
+ ?: import("../integrations/supabase/types").Json | null;
202292
202411
  gln?: string | null;
202293
202412
  house_number?: string | null;
202294
202413
  icp_country_code?: string | null;
@@ -214814,7 +214933,13 @@ export declare const resetFlorydaySyncCursor: import("@tanstack/start-client-cor
214814
214933
  fax?: string | null;
214815
214934
  floriday_connection_id?: string | null;
214816
214935
  floriday_organization_id?: string | null;
214817
- floriday_raw?: import("../integrations/supabase/types").Json | null;
214936
+ floriday_raw
214937
+ /**
214938
+ * Loopt door `validateEnums` heen en zoekt de eerste waarde in `body`
214939
+ * die niet voorkomt in de bijbehorende code-lijst. Velden ondersteunen
214940
+ * dot-pad-notatie met `[]` voor arrays, bv. `lines[].salesUnit`.
214941
+ */
214942
+ ?: import("../integrations/supabase/types").Json | null;
214818
214943
  gln?: string | null;
214819
214944
  house_number?: string | null;
214820
214945
  icp_country_code?: string | null;