@flowselections/floriday-verkoop-module 1.0.26 → 1.0.28

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.
Files changed (93) hide show
  1. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +1 -1
  2. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -1
  3. package/dist-lib/components/karindeling/KarindelingPage.d.ts +1 -1
  4. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  6. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +1 -1
  8. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  10. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  11. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  12. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  13. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  14. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  15. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  16. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  17. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  18. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  19. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  20. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  21. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  22. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  23. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  24. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  25. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  26. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  27. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  28. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  29. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  30. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  31. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  32. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  33. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +2 -1
  34. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  35. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  36. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  37. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  38. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  39. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  40. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  41. package/dist-lib/index.d.ts +0 -1
  42. package/dist-lib/index.d.ts.map +1 -1
  43. package/dist-lib/index.js +5 -11
  44. package/dist-lib/integrations/supabase/auth-middleware.d.ts +104 -127
  45. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  46. package/dist-lib/integrations/supabase/client.d.ts +104 -127
  47. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  48. package/dist-lib/integrations/supabase/client.server.d.ts +104 -127
  49. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  50. package/dist-lib/integrations/supabase/types.d.ts +106 -129
  51. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  52. package/dist-lib/lib/cart-lock.functions.d.ts +104 -127
  53. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/cart-planning-settings.functions.d.ts +1144 -1397
  55. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/cart-replan.functions.d.ts +312 -381
  57. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/create-order.functions.d.ts +1248 -1524
  59. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +312 -381
  61. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +104 -127
  63. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/floriday-mirror.functions.d.ts +104 -127
  65. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/floriday-public.functions.d.ts +728 -889
  67. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/floriday-writes.functions.d.ts +520 -635
  69. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/order-buffers.functions.d.ts +312 -381
  71. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/order-shipments.functions.d.ts +416 -508
  73. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/salesorders.functions.d.ts +520 -635
  75. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/tradeitems.functions.d.ts +104 -127
  77. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  78. package/package.json +1 -1
  79. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +0 -9
  80. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +0 -1
  81. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +0 -26
  82. package/dist-lib/components/ui/dropdown-menu.d.ts +0 -9
  83. package/dist-lib/components/ui/dropdown-menu.d.ts.map +0 -1
  84. package/dist-lib/components/ui/dropdown-menu.js +0 -14
  85. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +0 -5
  86. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +0 -1
  87. package/dist-lib/components/verkoop/CreateOrderDialog.js +0 -33
  88. package/dist-lib/lib/floriday/floriday.server.d.ts +0 -14
  89. package/dist-lib/lib/floriday/floriday.server.d.ts.map +0 -1
  90. package/dist-lib/lib/floriday/floriday.server.js +0 -92
  91. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +0 -4736
  92. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +0 -1
  93. package/dist-lib/lib/floriday/sales-orders.functions.js +0 -193
@@ -4570,6 +4570,27 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
4570
4570
  referencedColumns: ["id"];
4571
4571
  }];
4572
4572
  };
4573
+ floriday_continuous_stock_cache: {
4574
+ Row: {
4575
+ connection_id: string;
4576
+ fetched_at: string;
4577
+ number_of_pieces: number;
4578
+ trade_item_id: string;
4579
+ };
4580
+ Insert: {
4581
+ connection_id: string;
4582
+ fetched_at?: string;
4583
+ number_of_pieces?: number;
4584
+ trade_item_id: string;
4585
+ };
4586
+ Update: {
4587
+ connection_id?: string;
4588
+ fetched_at?: string;
4589
+ number_of_pieces?: number;
4590
+ trade_item_id?: string;
4591
+ };
4592
+ Relationships: [];
4593
+ };
4573
4594
  floriday_continuous_stock_queue: {
4574
4595
  Row: {
4575
4596
  attempts: number;
@@ -5548,6 +5569,45 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
5548
5569
  referencedColumns: ["id"];
5549
5570
  }];
5550
5571
  };
5572
+ floriday_trade_settings_customers_cache: {
5573
+ Row: {
5574
+ connection_id: string;
5575
+ data: import("../integrations/supabase/types").Json;
5576
+ fetched_at: string;
5577
+ floriday_id: string;
5578
+ id: string;
5579
+ is_deleted: boolean;
5580
+ sequence_number: number;
5581
+ updated_at: string;
5582
+ };
5583
+ Insert: {
5584
+ connection_id: string;
5585
+ data: import("../integrations/supabase/types").Json;
5586
+ fetched_at?: string;
5587
+ floriday_id: string;
5588
+ id?: string;
5589
+ is_deleted?: boolean;
5590
+ sequence_number?: number;
5591
+ updated_at?: string;
5592
+ };
5593
+ Update: {
5594
+ connection_id?: string;
5595
+ data?: import("../integrations/supabase/types").Json;
5596
+ fetched_at?: string;
5597
+ floriday_id?: string;
5598
+ id?: string;
5599
+ is_deleted?: boolean;
5600
+ sequence_number?: number;
5601
+ updated_at?: string;
5602
+ };
5603
+ Relationships: [{
5604
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5605
+ columns: ["connection_id"];
5606
+ isOneToOne: false;
5607
+ referencedRelation: "floriday_connections";
5608
+ referencedColumns: ["id"];
5609
+ }];
5610
+ };
5551
5611
  floriday_trips_cache: {
5552
5612
  Row: {
5553
5613
  carrier_organization_id: string | null;
@@ -5596,6 +5656,27 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
5596
5656
  referencedColumns: ["id"];
5597
5657
  }];
5598
5658
  };
5659
+ floriday_vbn_required_characteristics: {
5660
+ Row: {
5661
+ required_codes: string[];
5662
+ updated_at: string;
5663
+ updated_by: string | null;
5664
+ vbn_code: string;
5665
+ };
5666
+ Insert: {
5667
+ required_codes?: string[];
5668
+ updated_at?: string;
5669
+ updated_by?: string | null;
5670
+ vbn_code: string;
5671
+ };
5672
+ Update: {
5673
+ required_codes?: string[];
5674
+ updated_at?: string;
5675
+ updated_by?: string | null;
5676
+ vbn_code?: string;
5677
+ };
5678
+ Relationships: [];
5679
+ };
5599
5680
  floriday_warehouses_cache: {
5600
5681
  Row: {
5601
5682
  connection_id: string;
@@ -10569,9 +10650,7 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
10569
10650
  };
10570
10651
  twinfield_connections: {
10571
10652
  Row: {
10572
- access_token: string | null;
10573
- client_id: string;
10574
- client_secret: string | null;
10653
+ account_key: string | null;
10575
10654
  cluster_uri: string | null;
10576
10655
  company_code: string | null;
10577
10656
  company_name: string | null;
@@ -10582,16 +10661,12 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
10582
10661
  is_active: boolean;
10583
10662
  label: string | null;
10584
10663
  office_code: string | null;
10585
- redirect_uri: string;
10586
- refresh_token: string | null;
10587
- token_expires_at: string | null;
10664
+ redirect_uri: string | null;
10588
10665
  updated_at: string;
10589
10666
  user_id: string;
10590
10667
  };
10591
10668
  Insert: {
10592
- access_token?: string | null;
10593
- client_id: string;
10594
- client_secret?: string | null;
10669
+ account_key?: string | null;
10595
10670
  cluster_uri?: string | null;
10596
10671
  company_code?: string | null;
10597
10672
  company_name?: string | null;
@@ -10602,16 +10677,12 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
10602
10677
  is_active?: boolean;
10603
10678
  label?: string | null;
10604
10679
  office_code?: string | null;
10605
- redirect_uri: string;
10606
- refresh_token?: string | null;
10607
- token_expires_at?: string | null;
10680
+ redirect_uri?: string | null;
10608
10681
  updated_at?: string;
10609
10682
  user_id: string;
10610
10683
  };
10611
10684
  Update: {
10612
- access_token?: string | null;
10613
- client_id?: string;
10614
- client_secret?: string | null;
10685
+ account_key?: string | null;
10615
10686
  cluster_uri?: string | null;
10616
10687
  company_code?: string | null;
10617
10688
  company_name?: string | null;
@@ -10622,54 +10693,7 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
10622
10693
  is_active?: boolean;
10623
10694
  label?: string | null;
10624
10695
  office_code?: string | null;
10625
- redirect_uri?: string;
10626
- refresh_token?: string | null;
10627
- token_expires_at?: string | null;
10628
- updated_at?: string;
10629
- user_id?: string;
10630
- };
10631
- Relationships: [];
10632
- };
10633
- twinfield_credentials: {
10634
- Row: {
10635
- administration_code: string | null;
10636
- client_id: string | null;
10637
- client_secret: string | null;
10638
- cluster: string | null;
10639
- connected_at: string | null;
10640
- created_at: string;
10641
- environment: string | null;
10642
- id: string;
10643
- redirect_uri: string | null;
10644
- refresh_token: string | null;
10645
- updated_at: string;
10646
- user_id: string;
10647
- };
10648
- Insert: {
10649
- administration_code?: string | null;
10650
- client_id?: string | null;
10651
- client_secret?: string | null;
10652
- cluster?: string | null;
10653
- connected_at?: string | null;
10654
- created_at?: string;
10655
- environment?: string | null;
10656
- id?: string;
10657
- redirect_uri?: string | null;
10658
- refresh_token?: string | null;
10659
- updated_at?: string;
10660
- user_id: string;
10661
- };
10662
- Update: {
10663
- administration_code?: string | null;
10664
- client_id?: string | null;
10665
- client_secret?: string | null;
10666
- cluster?: string | null;
10667
- connected_at?: string | null;
10668
- created_at?: string;
10669
- environment?: string | null;
10670
- id?: string;
10671
10696
  redirect_uri?: string | null;
10672
- refresh_token?: string | null;
10673
10697
  updated_at?: string;
10674
10698
  user_id?: string;
10675
10699
  };
@@ -11116,12 +11140,15 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
11116
11140
  currency: string | null;
11117
11141
  customer_code: string | null;
11118
11142
  data: import("../integrations/supabase/types").Json;
11143
+ deleted_at: string | null;
11119
11144
  due_date: string | null;
11120
11145
  fetched_at: string;
11121
11146
  invoice_date: string | null;
11122
11147
  invoice_number: string;
11148
+ lines_fetched_at: string | null;
11123
11149
  modified_at: string | null;
11124
11150
  outstanding_amount: number | null;
11151
+ paid_at: string | null;
11125
11152
  status: string | null;
11126
11153
  status_label: string | null;
11127
11154
  total_excl: number | null;
@@ -11133,12 +11160,15 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
11133
11160
  currency?: string | null;
11134
11161
  customer_code?: string | null;
11135
11162
  data?: import("../integrations/supabase/types").Json;
11163
+ deleted_at?: string | null;
11136
11164
  due_date?: string | null;
11137
11165
  fetched_at?: string;
11138
11166
  invoice_date?: string | null;
11139
11167
  invoice_number: string;
11168
+ lines_fetched_at?: string | null;
11140
11169
  modified_at?: string | null;
11141
11170
  outstanding_amount?: number | null;
11171
+ paid_at?: string | null;
11142
11172
  status?: string | null;
11143
11173
  status_label?: string | null;
11144
11174
  total_excl?: number | null;
@@ -11150,12 +11180,15 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
11150
11180
  currency?: string | null;
11151
11181
  customer_code?: string | null;
11152
11182
  data?: import("../integrations/supabase/types").Json;
11183
+ deleted_at?: string | null;
11153
11184
  due_date?: string | null;
11154
11185
  fetched_at?: string;
11155
11186
  invoice_date?: string | null;
11156
11187
  invoice_number?: string;
11188
+ lines_fetched_at?: string | null;
11157
11189
  modified_at?: string | null;
11158
11190
  outstanding_amount?: number | null;
11191
+ paid_at?: string | null;
11159
11192
  status?: string | null;
11160
11193
  status_label?: string | null;
11161
11194
  total_excl?: number | null;
@@ -11170,30 +11203,6 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
11170
11203
  referencedColumns: ["id"];
11171
11204
  }];
11172
11205
  };
11173
- twinfield_oauth_state: {
11174
- Row: {
11175
- created_at: string;
11176
- environment: string;
11177
- nonce: string | null;
11178
- state: string;
11179
- user_id: string;
11180
- };
11181
- Insert: {
11182
- created_at?: string;
11183
- environment: string;
11184
- nonce?: string | null;
11185
- state: string;
11186
- user_id: string;
11187
- };
11188
- Update: {
11189
- created_at?: string;
11190
- environment?: string;
11191
- nonce?: string | null;
11192
- state?: string;
11193
- user_id?: string;
11194
- };
11195
- Relationships: [];
11196
- };
11197
11206
  twinfield_push_queue: {
11198
11207
  Row: {
11199
11208
  action: string;
@@ -11359,39 +11368,6 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
11359
11368
  referencedColumns: ["id"];
11360
11369
  }];
11361
11370
  };
11362
- twinfield_token_refresh_log: {
11363
- Row: {
11364
- attempted_at: string;
11365
- connection_id: string;
11366
- error: string | null;
11367
- expires_at: string | null;
11368
- id: string;
11369
- ok: boolean;
11370
- };
11371
- Insert: {
11372
- attempted_at?: string;
11373
- connection_id: string;
11374
- error?: string | null;
11375
- expires_at?: string | null;
11376
- id?: string;
11377
- ok: boolean;
11378
- };
11379
- Update: {
11380
- attempted_at?: string;
11381
- connection_id?: string;
11382
- error?: string | null;
11383
- expires_at?: string | null;
11384
- id?: string;
11385
- ok?: boolean;
11386
- };
11387
- Relationships: [{
11388
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11389
- columns: ["connection_id"];
11390
- isOneToOne: false;
11391
- referencedRelation: "twinfield_connections";
11392
- referencedColumns: ["id"];
11393
- }];
11394
- };
11395
11371
  user_roles: {
11396
11372
  Row: {
11397
11373
  created_at: string;
@@ -13832,15 +13808,16 @@ export declare const getCartPlanningBundle: import("@tanstack/start-client-core"
13832
13808
  };
13833
13809
  Returns: undefined;
13834
13810
  };
13835
- twinfield_decrypt: {
13836
- Args: {
13837
- cipher: string;
13838
- };
13839
- Returns: string;
13840
- };
13841
- twinfield_encrypt: {
13811
+ twinfield_upsert_connection_by_account_key: {
13842
13812
  Args: {
13843
- plain: string;
13813
+ p_account_key: string;
13814
+ p_cluster_uri?: string;
13815
+ p_company_code?: string;
13816
+ p_company_name?: string;
13817
+ p_environment: string;
13818
+ p_office_code?: string;
13819
+ p_status?: string;
13820
+ p_user_id: string;
13844
13821
  };
13845
13822
  Returns: string;
13846
13823
  };
@@ -18407,6 +18384,27 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
18407
18384
  referencedColumns: ["id"];
18408
18385
  }];
18409
18386
  };
18387
+ floriday_continuous_stock_cache: {
18388
+ Row: {
18389
+ connection_id: string;
18390
+ fetched_at: string;
18391
+ number_of_pieces: number;
18392
+ trade_item_id: string;
18393
+ };
18394
+ Insert: {
18395
+ connection_id: string;
18396
+ fetched_at?: string;
18397
+ number_of_pieces?: number;
18398
+ trade_item_id: string;
18399
+ };
18400
+ Update: {
18401
+ connection_id?: string;
18402
+ fetched_at?: string;
18403
+ number_of_pieces?: number;
18404
+ trade_item_id?: string;
18405
+ };
18406
+ Relationships: [];
18407
+ };
18410
18408
  floriday_continuous_stock_queue: {
18411
18409
  Row: {
18412
18410
  attempts: number;
@@ -19385,6 +19383,45 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
19385
19383
  referencedColumns: ["id"];
19386
19384
  }];
19387
19385
  };
19386
+ floriday_trade_settings_customers_cache: {
19387
+ Row: {
19388
+ connection_id: string;
19389
+ data: import("../integrations/supabase/types").Json;
19390
+ fetched_at: string;
19391
+ floriday_id: string;
19392
+ id: string;
19393
+ is_deleted: boolean;
19394
+ sequence_number: number;
19395
+ updated_at: string;
19396
+ };
19397
+ Insert: {
19398
+ connection_id: string;
19399
+ data: import("../integrations/supabase/types").Json;
19400
+ fetched_at?: string;
19401
+ floriday_id: string;
19402
+ id?: string;
19403
+ is_deleted?: boolean;
19404
+ sequence_number?: number;
19405
+ updated_at?: string;
19406
+ };
19407
+ Update: {
19408
+ connection_id?: string;
19409
+ data?: import("../integrations/supabase/types").Json;
19410
+ fetched_at?: string;
19411
+ floriday_id?: string;
19412
+ id?: string;
19413
+ is_deleted?: boolean;
19414
+ sequence_number?: number;
19415
+ updated_at?: string;
19416
+ };
19417
+ Relationships: [{
19418
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19419
+ columns: ["connection_id"];
19420
+ isOneToOne: false;
19421
+ referencedRelation: "floriday_connections";
19422
+ referencedColumns: ["id"];
19423
+ }];
19424
+ };
19388
19425
  floriday_trips_cache: {
19389
19426
  Row: {
19390
19427
  carrier_organization_id: string | null;
@@ -19433,6 +19470,27 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
19433
19470
  referencedColumns: ["id"];
19434
19471
  }];
19435
19472
  };
19473
+ floriday_vbn_required_characteristics: {
19474
+ Row: {
19475
+ required_codes: string[];
19476
+ updated_at: string;
19477
+ updated_by: string | null;
19478
+ vbn_code: string;
19479
+ };
19480
+ Insert: {
19481
+ required_codes?: string[];
19482
+ updated_at?: string;
19483
+ updated_by?: string | null;
19484
+ vbn_code: string;
19485
+ };
19486
+ Update: {
19487
+ required_codes?: string[];
19488
+ updated_at?: string;
19489
+ updated_by?: string | null;
19490
+ vbn_code?: string;
19491
+ };
19492
+ Relationships: [];
19493
+ };
19436
19494
  floriday_warehouses_cache: {
19437
19495
  Row: {
19438
19496
  connection_id: string;
@@ -24406,9 +24464,7 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
24406
24464
  };
24407
24465
  twinfield_connections: {
24408
24466
  Row: {
24409
- access_token: string | null;
24410
- client_id: string;
24411
- client_secret: string | null;
24467
+ account_key: string | null;
24412
24468
  cluster_uri: string | null;
24413
24469
  company_code: string | null;
24414
24470
  company_name: string | null;
@@ -24419,16 +24475,12 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
24419
24475
  is_active: boolean;
24420
24476
  label: string | null;
24421
24477
  office_code: string | null;
24422
- redirect_uri: string;
24423
- refresh_token: string | null;
24424
- token_expires_at: string | null;
24478
+ redirect_uri: string | null;
24425
24479
  updated_at: string;
24426
24480
  user_id: string;
24427
24481
  };
24428
24482
  Insert: {
24429
- access_token?: string | null;
24430
- client_id: string;
24431
- client_secret?: string | null;
24483
+ account_key?: string | null;
24432
24484
  cluster_uri?: string | null;
24433
24485
  company_code?: string | null;
24434
24486
  company_name?: string | null;
@@ -24439,16 +24491,12 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
24439
24491
  is_active?: boolean;
24440
24492
  label?: string | null;
24441
24493
  office_code?: string | null;
24442
- redirect_uri: string;
24443
- refresh_token?: string | null;
24444
- token_expires_at?: string | null;
24494
+ redirect_uri?: string | null;
24445
24495
  updated_at?: string;
24446
24496
  user_id: string;
24447
24497
  };
24448
24498
  Update: {
24449
- access_token?: string | null;
24450
- client_id?: string;
24451
- client_secret?: string | null;
24499
+ account_key?: string | null;
24452
24500
  cluster_uri?: string | null;
24453
24501
  company_code?: string | null;
24454
24502
  company_name?: string | null;
@@ -24459,54 +24507,7 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
24459
24507
  is_active?: boolean;
24460
24508
  label?: string | null;
24461
24509
  office_code?: string | null;
24462
- redirect_uri?: string;
24463
- refresh_token?: string | null;
24464
- token_expires_at?: string | null;
24465
- updated_at?: string;
24466
- user_id?: string;
24467
- };
24468
- Relationships: [];
24469
- };
24470
- twinfield_credentials: {
24471
- Row: {
24472
- administration_code: string | null;
24473
- client_id: string | null;
24474
- client_secret: string | null;
24475
- cluster: string | null;
24476
- connected_at: string | null;
24477
- created_at: string;
24478
- environment: string | null;
24479
- id: string;
24480
- redirect_uri: string | null;
24481
- refresh_token: string | null;
24482
- updated_at: string;
24483
- user_id: string;
24484
- };
24485
- Insert: {
24486
- administration_code?: string | null;
24487
- client_id?: string | null;
24488
- client_secret?: string | null;
24489
- cluster?: string | null;
24490
- connected_at?: string | null;
24491
- created_at?: string;
24492
- environment?: string | null;
24493
- id?: string;
24494
- redirect_uri?: string | null;
24495
- refresh_token?: string | null;
24496
- updated_at?: string;
24497
- user_id: string;
24498
- };
24499
- Update: {
24500
- administration_code?: string | null;
24501
- client_id?: string | null;
24502
- client_secret?: string | null;
24503
- cluster?: string | null;
24504
- connected_at?: string | null;
24505
- created_at?: string;
24506
- environment?: string | null;
24507
- id?: string;
24508
24510
  redirect_uri?: string | null;
24509
- refresh_token?: string | null;
24510
24511
  updated_at?: string;
24511
24512
  user_id?: string;
24512
24513
  };
@@ -24953,12 +24954,15 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
24953
24954
  currency: string | null;
24954
24955
  customer_code: string | null;
24955
24956
  data: import("../integrations/supabase/types").Json;
24957
+ deleted_at: string | null;
24956
24958
  due_date: string | null;
24957
24959
  fetched_at: string;
24958
24960
  invoice_date: string | null;
24959
24961
  invoice_number: string;
24962
+ lines_fetched_at: string | null;
24960
24963
  modified_at: string | null;
24961
24964
  outstanding_amount: number | null;
24965
+ paid_at: string | null;
24962
24966
  status: string | null;
24963
24967
  status_label: string | null;
24964
24968
  total_excl: number | null;
@@ -24970,12 +24974,15 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
24970
24974
  currency?: string | null;
24971
24975
  customer_code?: string | null;
24972
24976
  data?: import("../integrations/supabase/types").Json;
24977
+ deleted_at?: string | null;
24973
24978
  due_date?: string | null;
24974
24979
  fetched_at?: string;
24975
24980
  invoice_date?: string | null;
24976
24981
  invoice_number: string;
24982
+ lines_fetched_at?: string | null;
24977
24983
  modified_at?: string | null;
24978
24984
  outstanding_amount?: number | null;
24985
+ paid_at?: string | null;
24979
24986
  status?: string | null;
24980
24987
  status_label?: string | null;
24981
24988
  total_excl?: number | null;
@@ -24987,12 +24994,15 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
24987
24994
  currency?: string | null;
24988
24995
  customer_code?: string | null;
24989
24996
  data?: import("../integrations/supabase/types").Json;
24997
+ deleted_at?: string | null;
24990
24998
  due_date?: string | null;
24991
24999
  fetched_at?: string;
24992
25000
  invoice_date?: string | null;
24993
25001
  invoice_number?: string;
25002
+ lines_fetched_at?: string | null;
24994
25003
  modified_at?: string | null;
24995
25004
  outstanding_amount?: number | null;
25005
+ paid_at?: string | null;
24996
25006
  status?: string | null;
24997
25007
  status_label?: string | null;
24998
25008
  total_excl?: number | null;
@@ -25007,30 +25017,6 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
25007
25017
  referencedColumns: ["id"];
25008
25018
  }];
25009
25019
  };
25010
- twinfield_oauth_state: {
25011
- Row: {
25012
- created_at: string;
25013
- environment: string;
25014
- nonce: string | null;
25015
- state: string;
25016
- user_id: string;
25017
- };
25018
- Insert: {
25019
- created_at?: string;
25020
- environment: string;
25021
- nonce?: string | null;
25022
- state: string;
25023
- user_id: string;
25024
- };
25025
- Update: {
25026
- created_at?: string;
25027
- environment?: string;
25028
- nonce?: string | null;
25029
- state?: string;
25030
- user_id?: string;
25031
- };
25032
- Relationships: [];
25033
- };
25034
25020
  twinfield_push_queue: {
25035
25021
  Row: {
25036
25022
  action: string;
@@ -25196,39 +25182,6 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
25196
25182
  referencedColumns: ["id"];
25197
25183
  }];
25198
25184
  };
25199
- twinfield_token_refresh_log: {
25200
- Row: {
25201
- attempted_at: string;
25202
- connection_id: string;
25203
- error: string | null;
25204
- expires_at: string | null;
25205
- id: string;
25206
- ok: boolean;
25207
- };
25208
- Insert: {
25209
- attempted_at?: string;
25210
- connection_id: string;
25211
- error?: string | null;
25212
- expires_at?: string | null;
25213
- id?: string;
25214
- ok: boolean;
25215
- };
25216
- Update: {
25217
- attempted_at?: string;
25218
- connection_id?: string;
25219
- error?: string | null;
25220
- expires_at?: string | null;
25221
- id?: string;
25222
- ok?: boolean;
25223
- };
25224
- Relationships: [{
25225
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25226
- columns: ["connection_id"];
25227
- isOneToOne: false;
25228
- referencedRelation: "twinfield_connections";
25229
- referencedColumns: ["id"];
25230
- }];
25231
- };
25232
25185
  user_roles: {
25233
25186
  Row: {
25234
25187
  created_at: string;
@@ -27669,15 +27622,16 @@ export declare const updateCartPlanningSettings: import("@tanstack/start-client-
27669
27622
  };
27670
27623
  Returns: undefined;
27671
27624
  };
27672
- twinfield_decrypt: {
27673
- Args: {
27674
- cipher: string;
27675
- };
27676
- Returns: string;
27677
- };
27678
- twinfield_encrypt: {
27625
+ twinfield_upsert_connection_by_account_key: {
27679
27626
  Args: {
27680
- plain: string;
27627
+ p_account_key: string;
27628
+ p_cluster_uri?: string;
27629
+ p_company_code?: string;
27630
+ p_company_name?: string;
27631
+ p_environment: string;
27632
+ p_office_code?: string;
27633
+ p_status?: string;
27634
+ p_user_id: string;
27681
27635
  };
27682
27636
  Returns: string;
27683
27637
  };
@@ -32261,6 +32215,27 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
32261
32215
  referencedColumns: ["id"];
32262
32216
  }];
32263
32217
  };
32218
+ floriday_continuous_stock_cache: {
32219
+ Row: {
32220
+ connection_id: string;
32221
+ fetched_at: string;
32222
+ number_of_pieces: number;
32223
+ trade_item_id: string;
32224
+ };
32225
+ Insert: {
32226
+ connection_id: string;
32227
+ fetched_at?: string;
32228
+ number_of_pieces?: number;
32229
+ trade_item_id: string;
32230
+ };
32231
+ Update: {
32232
+ connection_id?: string;
32233
+ fetched_at?: string;
32234
+ number_of_pieces?: number;
32235
+ trade_item_id?: string;
32236
+ };
32237
+ Relationships: [];
32238
+ };
32264
32239
  floriday_continuous_stock_queue: {
32265
32240
  Row: {
32266
32241
  attempts: number;
@@ -33239,6 +33214,45 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
33239
33214
  referencedColumns: ["id"];
33240
33215
  }];
33241
33216
  };
33217
+ floriday_trade_settings_customers_cache: {
33218
+ Row: {
33219
+ connection_id: string;
33220
+ data: import("../integrations/supabase/types").Json;
33221
+ fetched_at: string;
33222
+ floriday_id: string;
33223
+ id: string;
33224
+ is_deleted: boolean;
33225
+ sequence_number: number;
33226
+ updated_at: string;
33227
+ };
33228
+ Insert: {
33229
+ connection_id: string;
33230
+ data: import("../integrations/supabase/types").Json;
33231
+ fetched_at?: string;
33232
+ floriday_id: string;
33233
+ id?: string;
33234
+ is_deleted?: boolean;
33235
+ sequence_number?: number;
33236
+ updated_at?: string;
33237
+ };
33238
+ Update: {
33239
+ connection_id?: string;
33240
+ data?: import("../integrations/supabase/types").Json;
33241
+ fetched_at?: string;
33242
+ floriday_id?: string;
33243
+ id?: string;
33244
+ is_deleted?: boolean;
33245
+ sequence_number?: number;
33246
+ updated_at?: string;
33247
+ };
33248
+ Relationships: [{
33249
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33250
+ columns: ["connection_id"];
33251
+ isOneToOne: false;
33252
+ referencedRelation: "floriday_connections";
33253
+ referencedColumns: ["id"];
33254
+ }];
33255
+ };
33242
33256
  floriday_trips_cache: {
33243
33257
  Row: {
33244
33258
  carrier_organization_id: string | null;
@@ -33287,6 +33301,27 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
33287
33301
  referencedColumns: ["id"];
33288
33302
  }];
33289
33303
  };
33304
+ floriday_vbn_required_characteristics: {
33305
+ Row: {
33306
+ required_codes: string[];
33307
+ updated_at: string;
33308
+ updated_by: string | null;
33309
+ vbn_code: string;
33310
+ };
33311
+ Insert: {
33312
+ required_codes?: string[];
33313
+ updated_at?: string;
33314
+ updated_by?: string | null;
33315
+ vbn_code: string;
33316
+ };
33317
+ Update: {
33318
+ required_codes?: string[];
33319
+ updated_at?: string;
33320
+ updated_by?: string | null;
33321
+ vbn_code?: string;
33322
+ };
33323
+ Relationships: [];
33324
+ };
33290
33325
  floriday_warehouses_cache: {
33291
33326
  Row: {
33292
33327
  connection_id: string;
@@ -38260,9 +38295,7 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
38260
38295
  };
38261
38296
  twinfield_connections: {
38262
38297
  Row: {
38263
- access_token: string | null;
38264
- client_id: string;
38265
- client_secret: string | null;
38298
+ account_key: string | null;
38266
38299
  cluster_uri: string | null;
38267
38300
  company_code: string | null;
38268
38301
  company_name: string | null;
@@ -38273,16 +38306,12 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
38273
38306
  is_active: boolean;
38274
38307
  label: string | null;
38275
38308
  office_code: string | null;
38276
- redirect_uri: string;
38277
- refresh_token: string | null;
38278
- token_expires_at: string | null;
38309
+ redirect_uri: string | null;
38279
38310
  updated_at: string;
38280
38311
  user_id: string;
38281
38312
  };
38282
38313
  Insert: {
38283
- access_token?: string | null;
38284
- client_id: string;
38285
- client_secret?: string | null;
38314
+ account_key?: string | null;
38286
38315
  cluster_uri?: string | null;
38287
38316
  company_code?: string | null;
38288
38317
  company_name?: string | null;
@@ -38293,16 +38322,12 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
38293
38322
  is_active?: boolean;
38294
38323
  label?: string | null;
38295
38324
  office_code?: string | null;
38296
- redirect_uri: string;
38297
- refresh_token?: string | null;
38298
- token_expires_at?: string | null;
38325
+ redirect_uri?: string | null;
38299
38326
  updated_at?: string;
38300
38327
  user_id: string;
38301
38328
  };
38302
38329
  Update: {
38303
- access_token?: string | null;
38304
- client_id?: string;
38305
- client_secret?: string | null;
38330
+ account_key?: string | null;
38306
38331
  cluster_uri?: string | null;
38307
38332
  company_code?: string | null;
38308
38333
  company_name?: string | null;
@@ -38313,54 +38338,7 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
38313
38338
  is_active?: boolean;
38314
38339
  label?: string | null;
38315
38340
  office_code?: string | null;
38316
- redirect_uri?: string;
38317
- refresh_token?: string | null;
38318
- token_expires_at?: string | null;
38319
- updated_at?: string;
38320
- user_id?: string;
38321
- };
38322
- Relationships: [];
38323
- };
38324
- twinfield_credentials: {
38325
- Row: {
38326
- administration_code: string | null;
38327
- client_id: string | null;
38328
- client_secret: string | null;
38329
- cluster: string | null;
38330
- connected_at: string | null;
38331
- created_at: string;
38332
- environment: string | null;
38333
- id: string;
38334
- redirect_uri: string | null;
38335
- refresh_token: string | null;
38336
- updated_at: string;
38337
- user_id: string;
38338
- };
38339
- Insert: {
38340
- administration_code?: string | null;
38341
- client_id?: string | null;
38342
- client_secret?: string | null;
38343
- cluster?: string | null;
38344
- connected_at?: string | null;
38345
- created_at?: string;
38346
- environment?: string | null;
38347
- id?: string;
38348
- redirect_uri?: string | null;
38349
- refresh_token?: string | null;
38350
- updated_at?: string;
38351
- user_id: string;
38352
- };
38353
- Update: {
38354
- administration_code?: string | null;
38355
- client_id?: string | null;
38356
- client_secret?: string | null;
38357
- cluster?: string | null;
38358
- connected_at?: string | null;
38359
- created_at?: string;
38360
- environment?: string | null;
38361
- id?: string;
38362
38341
  redirect_uri?: string | null;
38363
- refresh_token?: string | null;
38364
38342
  updated_at?: string;
38365
38343
  user_id?: string;
38366
38344
  };
@@ -38807,12 +38785,15 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
38807
38785
  currency: string | null;
38808
38786
  customer_code: string | null;
38809
38787
  data: import("../integrations/supabase/types").Json;
38788
+ deleted_at: string | null;
38810
38789
  due_date: string | null;
38811
38790
  fetched_at: string;
38812
38791
  invoice_date: string | null;
38813
38792
  invoice_number: string;
38793
+ lines_fetched_at: string | null;
38814
38794
  modified_at: string | null;
38815
38795
  outstanding_amount: number | null;
38796
+ paid_at: string | null;
38816
38797
  status: string | null;
38817
38798
  status_label: string | null;
38818
38799
  total_excl: number | null;
@@ -38824,12 +38805,15 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
38824
38805
  currency?: string | null;
38825
38806
  customer_code?: string | null;
38826
38807
  data?: import("../integrations/supabase/types").Json;
38808
+ deleted_at?: string | null;
38827
38809
  due_date?: string | null;
38828
38810
  fetched_at?: string;
38829
38811
  invoice_date?: string | null;
38830
38812
  invoice_number: string;
38813
+ lines_fetched_at?: string | null;
38831
38814
  modified_at?: string | null;
38832
38815
  outstanding_amount?: number | null;
38816
+ paid_at?: string | null;
38833
38817
  status?: string | null;
38834
38818
  status_label?: string | null;
38835
38819
  total_excl?: number | null;
@@ -38841,12 +38825,15 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
38841
38825
  currency?: string | null;
38842
38826
  customer_code?: string | null;
38843
38827
  data?: import("../integrations/supabase/types").Json;
38828
+ deleted_at?: string | null;
38844
38829
  due_date?: string | null;
38845
38830
  fetched_at?: string;
38846
38831
  invoice_date?: string | null;
38847
38832
  invoice_number?: string;
38833
+ lines_fetched_at?: string | null;
38848
38834
  modified_at?: string | null;
38849
38835
  outstanding_amount?: number | null;
38836
+ paid_at?: string | null;
38850
38837
  status?: string | null;
38851
38838
  status_label?: string | null;
38852
38839
  total_excl?: number | null;
@@ -38861,30 +38848,6 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
38861
38848
  referencedColumns: ["id"];
38862
38849
  }];
38863
38850
  };
38864
- twinfield_oauth_state: {
38865
- Row: {
38866
- created_at: string;
38867
- environment: string;
38868
- nonce: string | null;
38869
- state: string;
38870
- user_id: string;
38871
- };
38872
- Insert: {
38873
- created_at?: string;
38874
- environment: string;
38875
- nonce?: string | null;
38876
- state: string;
38877
- user_id: string;
38878
- };
38879
- Update: {
38880
- created_at?: string;
38881
- environment?: string;
38882
- nonce?: string | null;
38883
- state?: string;
38884
- user_id?: string;
38885
- };
38886
- Relationships: [];
38887
- };
38888
38851
  twinfield_push_queue: {
38889
38852
  Row: {
38890
38853
  action: string;
@@ -39050,39 +39013,6 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
39050
39013
  referencedColumns: ["id"];
39051
39014
  }];
39052
39015
  };
39053
- twinfield_token_refresh_log: {
39054
- Row: {
39055
- attempted_at: string;
39056
- connection_id: string;
39057
- error: string | null;
39058
- expires_at: string | null;
39059
- id: string;
39060
- ok: boolean;
39061
- };
39062
- Insert: {
39063
- attempted_at?: string;
39064
- connection_id: string;
39065
- error?: string | null;
39066
- expires_at?: string | null;
39067
- id?: string;
39068
- ok: boolean;
39069
- };
39070
- Update: {
39071
- attempted_at?: string;
39072
- connection_id?: string;
39073
- error?: string | null;
39074
- expires_at?: string | null;
39075
- id?: string;
39076
- ok?: boolean;
39077
- };
39078
- Relationships: [{
39079
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39080
- columns: ["connection_id"];
39081
- isOneToOne: false;
39082
- referencedRelation: "twinfield_connections";
39083
- referencedColumns: ["id"];
39084
- }];
39085
- };
39086
39016
  user_roles: {
39087
39017
  Row: {
39088
39018
  created_at: string;
@@ -41523,15 +41453,16 @@ export declare const upsertPickTime: import("@tanstack/start-client-core").Optio
41523
41453
  };
41524
41454
  Returns: undefined;
41525
41455
  };
41526
- twinfield_decrypt: {
41527
- Args: {
41528
- cipher: string;
41529
- };
41530
- Returns: string;
41531
- };
41532
- twinfield_encrypt: {
41456
+ twinfield_upsert_connection_by_account_key: {
41533
41457
  Args: {
41534
- plain: string;
41458
+ p_account_key: string;
41459
+ p_cluster_uri?: string;
41460
+ p_company_code?: string;
41461
+ p_company_name?: string;
41462
+ p_environment: string;
41463
+ p_office_code?: string;
41464
+ p_status?: string;
41465
+ p_user_id: string;
41535
41466
  };
41536
41467
  Returns: string;
41537
41468
  };
@@ -46099,6 +46030,27 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
46099
46030
  referencedColumns: ["id"];
46100
46031
  }];
46101
46032
  };
46033
+ floriday_continuous_stock_cache: {
46034
+ Row: {
46035
+ connection_id: string;
46036
+ fetched_at: string;
46037
+ number_of_pieces: number;
46038
+ trade_item_id: string;
46039
+ };
46040
+ Insert: {
46041
+ connection_id: string;
46042
+ fetched_at?: string;
46043
+ number_of_pieces?: number;
46044
+ trade_item_id: string;
46045
+ };
46046
+ Update: {
46047
+ connection_id?: string;
46048
+ fetched_at?: string;
46049
+ number_of_pieces?: number;
46050
+ trade_item_id?: string;
46051
+ };
46052
+ Relationships: [];
46053
+ };
46102
46054
  floriday_continuous_stock_queue: {
46103
46055
  Row: {
46104
46056
  attempts: number;
@@ -47077,6 +47029,45 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
47077
47029
  referencedColumns: ["id"];
47078
47030
  }];
47079
47031
  };
47032
+ floriday_trade_settings_customers_cache: {
47033
+ Row: {
47034
+ connection_id: string;
47035
+ data: import("../integrations/supabase/types").Json;
47036
+ fetched_at: string;
47037
+ floriday_id: string;
47038
+ id: string;
47039
+ is_deleted: boolean;
47040
+ sequence_number: number;
47041
+ updated_at: string;
47042
+ };
47043
+ Insert: {
47044
+ connection_id: string;
47045
+ data: import("../integrations/supabase/types").Json;
47046
+ fetched_at?: string;
47047
+ floriday_id: string;
47048
+ id?: string;
47049
+ is_deleted?: boolean;
47050
+ sequence_number?: number;
47051
+ updated_at?: string;
47052
+ };
47053
+ Update: {
47054
+ connection_id?: string;
47055
+ data?: import("../integrations/supabase/types").Json;
47056
+ fetched_at?: string;
47057
+ floriday_id?: string;
47058
+ id?: string;
47059
+ is_deleted?: boolean;
47060
+ sequence_number?: number;
47061
+ updated_at?: string;
47062
+ };
47063
+ Relationships: [{
47064
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
47065
+ columns: ["connection_id"];
47066
+ isOneToOne: false;
47067
+ referencedRelation: "floriday_connections";
47068
+ referencedColumns: ["id"];
47069
+ }];
47070
+ };
47080
47071
  floriday_trips_cache: {
47081
47072
  Row: {
47082
47073
  carrier_organization_id: string | null;
@@ -47125,6 +47116,27 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
47125
47116
  referencedColumns: ["id"];
47126
47117
  }];
47127
47118
  };
47119
+ floriday_vbn_required_characteristics: {
47120
+ Row: {
47121
+ required_codes: string[];
47122
+ updated_at: string;
47123
+ updated_by: string | null;
47124
+ vbn_code: string;
47125
+ };
47126
+ Insert: {
47127
+ required_codes?: string[];
47128
+ updated_at?: string;
47129
+ updated_by?: string | null;
47130
+ vbn_code: string;
47131
+ };
47132
+ Update: {
47133
+ required_codes?: string[];
47134
+ updated_at?: string;
47135
+ updated_by?: string | null;
47136
+ vbn_code?: string;
47137
+ };
47138
+ Relationships: [];
47139
+ };
47128
47140
  floriday_warehouses_cache: {
47129
47141
  Row: {
47130
47142
  connection_id: string;
@@ -52098,9 +52110,7 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
52098
52110
  };
52099
52111
  twinfield_connections: {
52100
52112
  Row: {
52101
- access_token: string | null;
52102
- client_id: string;
52103
- client_secret: string | null;
52113
+ account_key: string | null;
52104
52114
  cluster_uri: string | null;
52105
52115
  company_code: string | null;
52106
52116
  company_name: string | null;
@@ -52111,16 +52121,12 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
52111
52121
  is_active: boolean;
52112
52122
  label: string | null;
52113
52123
  office_code: string | null;
52114
- redirect_uri: string;
52115
- refresh_token: string | null;
52116
- token_expires_at: string | null;
52124
+ redirect_uri: string | null;
52117
52125
  updated_at: string;
52118
52126
  user_id: string;
52119
52127
  };
52120
52128
  Insert: {
52121
- access_token?: string | null;
52122
- client_id: string;
52123
- client_secret?: string | null;
52129
+ account_key?: string | null;
52124
52130
  cluster_uri?: string | null;
52125
52131
  company_code?: string | null;
52126
52132
  company_name?: string | null;
@@ -52131,16 +52137,12 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
52131
52137
  is_active?: boolean;
52132
52138
  label?: string | null;
52133
52139
  office_code?: string | null;
52134
- redirect_uri: string;
52135
- refresh_token?: string | null;
52136
- token_expires_at?: string | null;
52140
+ redirect_uri?: string | null;
52137
52141
  updated_at?: string;
52138
52142
  user_id: string;
52139
52143
  };
52140
52144
  Update: {
52141
- access_token?: string | null;
52142
- client_id?: string;
52143
- client_secret?: string | null;
52145
+ account_key?: string | null;
52144
52146
  cluster_uri?: string | null;
52145
52147
  company_code?: string | null;
52146
52148
  company_name?: string | null;
@@ -52151,54 +52153,7 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
52151
52153
  is_active?: boolean;
52152
52154
  label?: string | null;
52153
52155
  office_code?: string | null;
52154
- redirect_uri?: string;
52155
- refresh_token?: string | null;
52156
- token_expires_at?: string | null;
52157
- updated_at?: string;
52158
- user_id?: string;
52159
- };
52160
- Relationships: [];
52161
- };
52162
- twinfield_credentials: {
52163
- Row: {
52164
- administration_code: string | null;
52165
- client_id: string | null;
52166
- client_secret: string | null;
52167
- cluster: string | null;
52168
- connected_at: string | null;
52169
- created_at: string;
52170
- environment: string | null;
52171
- id: string;
52172
- redirect_uri: string | null;
52173
- refresh_token: string | null;
52174
- updated_at: string;
52175
- user_id: string;
52176
- };
52177
- Insert: {
52178
- administration_code?: string | null;
52179
- client_id?: string | null;
52180
- client_secret?: string | null;
52181
- cluster?: string | null;
52182
- connected_at?: string | null;
52183
- created_at?: string;
52184
- environment?: string | null;
52185
- id?: string;
52186
- redirect_uri?: string | null;
52187
- refresh_token?: string | null;
52188
- updated_at?: string;
52189
- user_id: string;
52190
- };
52191
- Update: {
52192
- administration_code?: string | null;
52193
- client_id?: string | null;
52194
- client_secret?: string | null;
52195
- cluster?: string | null;
52196
- connected_at?: string | null;
52197
- created_at?: string;
52198
- environment?: string | null;
52199
- id?: string;
52200
52156
  redirect_uri?: string | null;
52201
- refresh_token?: string | null;
52202
52157
  updated_at?: string;
52203
52158
  user_id?: string;
52204
52159
  };
@@ -52645,12 +52600,15 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
52645
52600
  currency: string | null;
52646
52601
  customer_code: string | null;
52647
52602
  data: import("../integrations/supabase/types").Json;
52603
+ deleted_at: string | null;
52648
52604
  due_date: string | null;
52649
52605
  fetched_at: string;
52650
52606
  invoice_date: string | null;
52651
52607
  invoice_number: string;
52608
+ lines_fetched_at: string | null;
52652
52609
  modified_at: string | null;
52653
52610
  outstanding_amount: number | null;
52611
+ paid_at: string | null;
52654
52612
  status: string | null;
52655
52613
  status_label: string | null;
52656
52614
  total_excl: number | null;
@@ -52662,12 +52620,15 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
52662
52620
  currency?: string | null;
52663
52621
  customer_code?: string | null;
52664
52622
  data?: import("../integrations/supabase/types").Json;
52623
+ deleted_at?: string | null;
52665
52624
  due_date?: string | null;
52666
52625
  fetched_at?: string;
52667
52626
  invoice_date?: string | null;
52668
52627
  invoice_number: string;
52628
+ lines_fetched_at?: string | null;
52669
52629
  modified_at?: string | null;
52670
52630
  outstanding_amount?: number | null;
52631
+ paid_at?: string | null;
52671
52632
  status?: string | null;
52672
52633
  status_label?: string | null;
52673
52634
  total_excl?: number | null;
@@ -52679,12 +52640,15 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
52679
52640
  currency?: string | null;
52680
52641
  customer_code?: string | null;
52681
52642
  data?: import("../integrations/supabase/types").Json;
52643
+ deleted_at?: string | null;
52682
52644
  due_date?: string | null;
52683
52645
  fetched_at?: string;
52684
52646
  invoice_date?: string | null;
52685
52647
  invoice_number?: string;
52648
+ lines_fetched_at?: string | null;
52686
52649
  modified_at?: string | null;
52687
52650
  outstanding_amount?: number | null;
52651
+ paid_at?: string | null;
52688
52652
  status?: string | null;
52689
52653
  status_label?: string | null;
52690
52654
  total_excl?: number | null;
@@ -52699,30 +52663,6 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
52699
52663
  referencedColumns: ["id"];
52700
52664
  }];
52701
52665
  };
52702
- twinfield_oauth_state: {
52703
- Row: {
52704
- created_at: string;
52705
- environment: string;
52706
- nonce: string | null;
52707
- state: string;
52708
- user_id: string;
52709
- };
52710
- Insert: {
52711
- created_at?: string;
52712
- environment: string;
52713
- nonce?: string | null;
52714
- state: string;
52715
- user_id: string;
52716
- };
52717
- Update: {
52718
- created_at?: string;
52719
- environment?: string;
52720
- nonce?: string | null;
52721
- state?: string;
52722
- user_id?: string;
52723
- };
52724
- Relationships: [];
52725
- };
52726
52666
  twinfield_push_queue: {
52727
52667
  Row: {
52728
52668
  action: string;
@@ -52888,39 +52828,6 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
52888
52828
  referencedColumns: ["id"];
52889
52829
  }];
52890
52830
  };
52891
- twinfield_token_refresh_log: {
52892
- Row: {
52893
- attempted_at: string;
52894
- connection_id: string;
52895
- error: string | null;
52896
- expires_at: string | null;
52897
- id: string;
52898
- ok: boolean;
52899
- };
52900
- Insert: {
52901
- attempted_at?: string;
52902
- connection_id: string;
52903
- error?: string | null;
52904
- expires_at?: string | null;
52905
- id?: string;
52906
- ok: boolean;
52907
- };
52908
- Update: {
52909
- attempted_at?: string;
52910
- connection_id?: string;
52911
- error?: string | null;
52912
- expires_at?: string | null;
52913
- id?: string;
52914
- ok?: boolean;
52915
- };
52916
- Relationships: [{
52917
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
52918
- columns: ["connection_id"];
52919
- isOneToOne: false;
52920
- referencedRelation: "twinfield_connections";
52921
- referencedColumns: ["id"];
52922
- }];
52923
- };
52924
52831
  user_roles: {
52925
52832
  Row: {
52926
52833
  created_at: string;
@@ -55361,15 +55268,16 @@ export declare const deletePickTime: import("@tanstack/start-client-core").Optio
55361
55268
  };
55362
55269
  Returns: undefined;
55363
55270
  };
55364
- twinfield_decrypt: {
55365
- Args: {
55366
- cipher: string;
55367
- };
55368
- Returns: string;
55369
- };
55370
- twinfield_encrypt: {
55271
+ twinfield_upsert_connection_by_account_key: {
55371
55272
  Args: {
55372
- plain: string;
55273
+ p_account_key: string;
55274
+ p_cluster_uri?: string;
55275
+ p_company_code?: string;
55276
+ p_company_name?: string;
55277
+ p_environment: string;
55278
+ p_office_code?: string;
55279
+ p_status?: string;
55280
+ p_user_id: string;
55373
55281
  };
55374
55282
  Returns: string;
55375
55283
  };
@@ -59946,6 +59854,27 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
59946
59854
  referencedColumns: ["id"];
59947
59855
  }];
59948
59856
  };
59857
+ floriday_continuous_stock_cache: {
59858
+ Row: {
59859
+ connection_id: string;
59860
+ fetched_at: string;
59861
+ number_of_pieces: number;
59862
+ trade_item_id: string;
59863
+ };
59864
+ Insert: {
59865
+ connection_id: string;
59866
+ fetched_at?: string;
59867
+ number_of_pieces?: number;
59868
+ trade_item_id: string;
59869
+ };
59870
+ Update: {
59871
+ connection_id?: string;
59872
+ fetched_at?: string;
59873
+ number_of_pieces?: number;
59874
+ trade_item_id?: string;
59875
+ };
59876
+ Relationships: [];
59877
+ };
59949
59878
  floriday_continuous_stock_queue: {
59950
59879
  Row: {
59951
59880
  attempts: number;
@@ -60924,6 +60853,45 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
60924
60853
  referencedColumns: ["id"];
60925
60854
  }];
60926
60855
  };
60856
+ floriday_trade_settings_customers_cache: {
60857
+ Row: {
60858
+ connection_id: string;
60859
+ data: import("../integrations/supabase/types").Json;
60860
+ fetched_at: string;
60861
+ floriday_id: string;
60862
+ id: string;
60863
+ is_deleted: boolean;
60864
+ sequence_number: number;
60865
+ updated_at: string;
60866
+ };
60867
+ Insert: {
60868
+ connection_id: string;
60869
+ data: import("../integrations/supabase/types").Json;
60870
+ fetched_at?: string;
60871
+ floriday_id: string;
60872
+ id?: string;
60873
+ is_deleted?: boolean;
60874
+ sequence_number?: number;
60875
+ updated_at?: string;
60876
+ };
60877
+ Update: {
60878
+ connection_id?: string;
60879
+ data?: import("../integrations/supabase/types").Json;
60880
+ fetched_at?: string;
60881
+ floriday_id?: string;
60882
+ id?: string;
60883
+ is_deleted?: boolean;
60884
+ sequence_number?: number;
60885
+ updated_at?: string;
60886
+ };
60887
+ Relationships: [{
60888
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
60889
+ columns: ["connection_id"];
60890
+ isOneToOne: false;
60891
+ referencedRelation: "floriday_connections";
60892
+ referencedColumns: ["id"];
60893
+ }];
60894
+ };
60927
60895
  floriday_trips_cache: {
60928
60896
  Row: {
60929
60897
  carrier_organization_id: string | null;
@@ -60972,6 +60940,27 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
60972
60940
  referencedColumns: ["id"];
60973
60941
  }];
60974
60942
  };
60943
+ floriday_vbn_required_characteristics: {
60944
+ Row: {
60945
+ required_codes: string[];
60946
+ updated_at: string;
60947
+ updated_by: string | null;
60948
+ vbn_code: string;
60949
+ };
60950
+ Insert: {
60951
+ required_codes?: string[];
60952
+ updated_at?: string;
60953
+ updated_by?: string | null;
60954
+ vbn_code: string;
60955
+ };
60956
+ Update: {
60957
+ required_codes?: string[];
60958
+ updated_at?: string;
60959
+ updated_by?: string | null;
60960
+ vbn_code?: string;
60961
+ };
60962
+ Relationships: [];
60963
+ };
60975
60964
  floriday_warehouses_cache: {
60976
60965
  Row: {
60977
60966
  connection_id: string;
@@ -65945,9 +65934,7 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
65945
65934
  };
65946
65935
  twinfield_connections: {
65947
65936
  Row: {
65948
- access_token: string | null;
65949
- client_id: string;
65950
- client_secret: string | null;
65937
+ account_key: string | null;
65951
65938
  cluster_uri: string | null;
65952
65939
  company_code: string | null;
65953
65940
  company_name: string | null;
@@ -65958,16 +65945,12 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
65958
65945
  is_active: boolean;
65959
65946
  label: string | null;
65960
65947
  office_code: string | null;
65961
- redirect_uri: string;
65962
- refresh_token: string | null;
65963
- token_expires_at: string | null;
65948
+ redirect_uri: string | null;
65964
65949
  updated_at: string;
65965
65950
  user_id: string;
65966
65951
  };
65967
65952
  Insert: {
65968
- access_token?: string | null;
65969
- client_id: string;
65970
- client_secret?: string | null;
65953
+ account_key?: string | null;
65971
65954
  cluster_uri?: string | null;
65972
65955
  company_code?: string | null;
65973
65956
  company_name?: string | null;
@@ -65978,16 +65961,12 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
65978
65961
  is_active?: boolean;
65979
65962
  label?: string | null;
65980
65963
  office_code?: string | null;
65981
- redirect_uri: string;
65982
- refresh_token?: string | null;
65983
- token_expires_at?: string | null;
65964
+ redirect_uri?: string | null;
65984
65965
  updated_at?: string;
65985
65966
  user_id: string;
65986
65967
  };
65987
65968
  Update: {
65988
- access_token?: string | null;
65989
- client_id?: string;
65990
- client_secret?: string | null;
65969
+ account_key?: string | null;
65991
65970
  cluster_uri?: string | null;
65992
65971
  company_code?: string | null;
65993
65972
  company_name?: string | null;
@@ -65998,54 +65977,7 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
65998
65977
  is_active?: boolean;
65999
65978
  label?: string | null;
66000
65979
  office_code?: string | null;
66001
- redirect_uri?: string;
66002
- refresh_token?: string | null;
66003
- token_expires_at?: string | null;
66004
- updated_at?: string;
66005
- user_id?: string;
66006
- };
66007
- Relationships: [];
66008
- };
66009
- twinfield_credentials: {
66010
- Row: {
66011
- administration_code: string | null;
66012
- client_id: string | null;
66013
- client_secret: string | null;
66014
- cluster: string | null;
66015
- connected_at: string | null;
66016
- created_at: string;
66017
- environment: string | null;
66018
- id: string;
66019
- redirect_uri: string | null;
66020
- refresh_token: string | null;
66021
- updated_at: string;
66022
- user_id: string;
66023
- };
66024
- Insert: {
66025
- administration_code?: string | null;
66026
- client_id?: string | null;
66027
- client_secret?: string | null;
66028
- cluster?: string | null;
66029
- connected_at?: string | null;
66030
- created_at?: string;
66031
- environment?: string | null;
66032
- id?: string;
66033
65980
  redirect_uri?: string | null;
66034
- refresh_token?: string | null;
66035
- updated_at?: string;
66036
- user_id: string;
66037
- };
66038
- Update: {
66039
- administration_code?: string | null;
66040
- client_id?: string | null;
66041
- client_secret?: string | null;
66042
- cluster?: string | null;
66043
- connected_at?: string | null;
66044
- created_at?: string;
66045
- environment?: string | null;
66046
- id?: string;
66047
- redirect_uri?: string | null;
66048
- refresh_token?: string | null;
66049
65981
  updated_at?: string;
66050
65982
  user_id?: string;
66051
65983
  };
@@ -66492,12 +66424,15 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
66492
66424
  currency: string | null;
66493
66425
  customer_code: string | null;
66494
66426
  data: import("../integrations/supabase/types").Json;
66427
+ deleted_at: string | null;
66495
66428
  due_date: string | null;
66496
66429
  fetched_at: string;
66497
66430
  invoice_date: string | null;
66498
66431
  invoice_number: string;
66432
+ lines_fetched_at: string | null;
66499
66433
  modified_at: string | null;
66500
66434
  outstanding_amount: number | null;
66435
+ paid_at: string | null;
66501
66436
  status: string | null;
66502
66437
  status_label: string | null;
66503
66438
  total_excl: number | null;
@@ -66509,12 +66444,15 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
66509
66444
  currency?: string | null;
66510
66445
  customer_code?: string | null;
66511
66446
  data?: import("../integrations/supabase/types").Json;
66447
+ deleted_at?: string | null;
66512
66448
  due_date?: string | null;
66513
66449
  fetched_at?: string;
66514
66450
  invoice_date?: string | null;
66515
66451
  invoice_number: string;
66452
+ lines_fetched_at?: string | null;
66516
66453
  modified_at?: string | null;
66517
66454
  outstanding_amount?: number | null;
66455
+ paid_at?: string | null;
66518
66456
  status?: string | null;
66519
66457
  status_label?: string | null;
66520
66458
  total_excl?: number | null;
@@ -66526,12 +66464,15 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
66526
66464
  currency?: string | null;
66527
66465
  customer_code?: string | null;
66528
66466
  data?: import("../integrations/supabase/types").Json;
66467
+ deleted_at?: string | null;
66529
66468
  due_date?: string | null;
66530
66469
  fetched_at?: string;
66531
66470
  invoice_date?: string | null;
66532
66471
  invoice_number?: string;
66472
+ lines_fetched_at?: string | null;
66533
66473
  modified_at?: string | null;
66534
66474
  outstanding_amount?: number | null;
66475
+ paid_at?: string | null;
66535
66476
  status?: string | null;
66536
66477
  status_label?: string | null;
66537
66478
  total_excl?: number | null;
@@ -66546,30 +66487,6 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
66546
66487
  referencedColumns: ["id"];
66547
66488
  }];
66548
66489
  };
66549
- twinfield_oauth_state: {
66550
- Row: {
66551
- created_at: string;
66552
- environment: string;
66553
- nonce: string | null;
66554
- state: string;
66555
- user_id: string;
66556
- };
66557
- Insert: {
66558
- created_at?: string;
66559
- environment: string;
66560
- nonce?: string | null;
66561
- state: string;
66562
- user_id: string;
66563
- };
66564
- Update: {
66565
- created_at?: string;
66566
- environment?: string;
66567
- nonce?: string | null;
66568
- state?: string;
66569
- user_id?: string;
66570
- };
66571
- Relationships: [];
66572
- };
66573
66490
  twinfield_push_queue: {
66574
66491
  Row: {
66575
66492
  action: string;
@@ -66735,39 +66652,6 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
66735
66652
  referencedColumns: ["id"];
66736
66653
  }];
66737
66654
  };
66738
- twinfield_token_refresh_log: {
66739
- Row: {
66740
- attempted_at: string;
66741
- connection_id: string;
66742
- error: string | null;
66743
- expires_at: string | null;
66744
- id: string;
66745
- ok: boolean;
66746
- };
66747
- Insert: {
66748
- attempted_at?: string;
66749
- connection_id: string;
66750
- error?: string | null;
66751
- expires_at?: string | null;
66752
- id?: string;
66753
- ok: boolean;
66754
- };
66755
- Update: {
66756
- attempted_at?: string;
66757
- connection_id?: string;
66758
- error?: string | null;
66759
- expires_at?: string | null;
66760
- id?: string;
66761
- ok?: boolean;
66762
- };
66763
- Relationships: [{
66764
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
66765
- columns: ["connection_id"];
66766
- isOneToOne: false;
66767
- referencedRelation: "twinfield_connections";
66768
- referencedColumns: ["id"];
66769
- }];
66770
- };
66771
66655
  user_roles: {
66772
66656
  Row: {
66773
66657
  created_at: string;
@@ -69208,15 +69092,16 @@ export declare const listUsedCratePackages: import("@tanstack/start-client-core"
69208
69092
  };
69209
69093
  Returns: undefined;
69210
69094
  };
69211
- twinfield_decrypt: {
69212
- Args: {
69213
- cipher: string;
69214
- };
69215
- Returns: string;
69216
- };
69217
- twinfield_encrypt: {
69095
+ twinfield_upsert_connection_by_account_key: {
69218
69096
  Args: {
69219
- plain: string;
69097
+ p_account_key: string;
69098
+ p_cluster_uri?: string;
69099
+ p_company_code?: string;
69100
+ p_company_name?: string;
69101
+ p_environment: string;
69102
+ p_office_code?: string;
69103
+ p_status?: string;
69104
+ p_user_id: string;
69220
69105
  };
69221
69106
  Returns: string;
69222
69107
  };
@@ -73788,6 +73673,27 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
73788
73673
  referencedColumns: ["id"];
73789
73674
  }];
73790
73675
  };
73676
+ floriday_continuous_stock_cache: {
73677
+ Row: {
73678
+ connection_id: string;
73679
+ fetched_at: string;
73680
+ number_of_pieces: number;
73681
+ trade_item_id: string;
73682
+ };
73683
+ Insert: {
73684
+ connection_id: string;
73685
+ fetched_at?: string;
73686
+ number_of_pieces?: number;
73687
+ trade_item_id: string;
73688
+ };
73689
+ Update: {
73690
+ connection_id?: string;
73691
+ fetched_at?: string;
73692
+ number_of_pieces?: number;
73693
+ trade_item_id?: string;
73694
+ };
73695
+ Relationships: [];
73696
+ };
73791
73697
  floriday_continuous_stock_queue: {
73792
73698
  Row: {
73793
73699
  attempts: number;
@@ -74766,6 +74672,45 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
74766
74672
  referencedColumns: ["id"];
74767
74673
  }];
74768
74674
  };
74675
+ floriday_trade_settings_customers_cache: {
74676
+ Row: {
74677
+ connection_id: string;
74678
+ data: import("../integrations/supabase/types").Json;
74679
+ fetched_at: string;
74680
+ floriday_id: string;
74681
+ id: string;
74682
+ is_deleted: boolean;
74683
+ sequence_number: number;
74684
+ updated_at: string;
74685
+ };
74686
+ Insert: {
74687
+ connection_id: string;
74688
+ data: import("../integrations/supabase/types").Json;
74689
+ fetched_at?: string;
74690
+ floriday_id: string;
74691
+ id?: string;
74692
+ is_deleted?: boolean;
74693
+ sequence_number?: number;
74694
+ updated_at?: string;
74695
+ };
74696
+ Update: {
74697
+ connection_id?: string;
74698
+ data?: import("../integrations/supabase/types").Json;
74699
+ fetched_at?: string;
74700
+ floriday_id?: string;
74701
+ id?: string;
74702
+ is_deleted?: boolean;
74703
+ sequence_number?: number;
74704
+ updated_at?: string;
74705
+ };
74706
+ Relationships: [{
74707
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
74708
+ columns: ["connection_id"];
74709
+ isOneToOne: false;
74710
+ referencedRelation: "floriday_connections";
74711
+ referencedColumns: ["id"];
74712
+ }];
74713
+ };
74769
74714
  floriday_trips_cache: {
74770
74715
  Row: {
74771
74716
  carrier_organization_id: string | null;
@@ -74814,6 +74759,27 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
74814
74759
  referencedColumns: ["id"];
74815
74760
  }];
74816
74761
  };
74762
+ floriday_vbn_required_characteristics: {
74763
+ Row: {
74764
+ required_codes: string[];
74765
+ updated_at: string;
74766
+ updated_by: string | null;
74767
+ vbn_code: string;
74768
+ };
74769
+ Insert: {
74770
+ required_codes?: string[];
74771
+ updated_at?: string;
74772
+ updated_by?: string | null;
74773
+ vbn_code: string;
74774
+ };
74775
+ Update: {
74776
+ required_codes?: string[];
74777
+ updated_at?: string;
74778
+ updated_by?: string | null;
74779
+ vbn_code?: string;
74780
+ };
74781
+ Relationships: [];
74782
+ };
74817
74783
  floriday_warehouses_cache: {
74818
74784
  Row: {
74819
74785
  connection_id: string;
@@ -79787,9 +79753,7 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
79787
79753
  };
79788
79754
  twinfield_connections: {
79789
79755
  Row: {
79790
- access_token: string | null;
79791
- client_id: string;
79792
- client_secret: string | null;
79756
+ account_key: string | null;
79793
79757
  cluster_uri: string | null;
79794
79758
  company_code: string | null;
79795
79759
  company_name: string | null;
@@ -79800,16 +79764,12 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
79800
79764
  is_active: boolean;
79801
79765
  label: string | null;
79802
79766
  office_code: string | null;
79803
- redirect_uri: string;
79804
- refresh_token: string | null;
79805
- token_expires_at: string | null;
79767
+ redirect_uri: string | null;
79806
79768
  updated_at: string;
79807
79769
  user_id: string;
79808
79770
  };
79809
79771
  Insert: {
79810
- access_token?: string | null;
79811
- client_id: string;
79812
- client_secret?: string | null;
79772
+ account_key?: string | null;
79813
79773
  cluster_uri?: string | null;
79814
79774
  company_code?: string | null;
79815
79775
  company_name?: string | null;
@@ -79820,16 +79780,12 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
79820
79780
  is_active?: boolean;
79821
79781
  label?: string | null;
79822
79782
  office_code?: string | null;
79823
- redirect_uri: string;
79824
- refresh_token?: string | null;
79825
- token_expires_at?: string | null;
79783
+ redirect_uri?: string | null;
79826
79784
  updated_at?: string;
79827
79785
  user_id: string;
79828
79786
  };
79829
79787
  Update: {
79830
- access_token?: string | null;
79831
- client_id?: string;
79832
- client_secret?: string | null;
79788
+ account_key?: string | null;
79833
79789
  cluster_uri?: string | null;
79834
79790
  company_code?: string | null;
79835
79791
  company_name?: string | null;
@@ -79840,54 +79796,7 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
79840
79796
  is_active?: boolean;
79841
79797
  label?: string | null;
79842
79798
  office_code?: string | null;
79843
- redirect_uri?: string;
79844
- refresh_token?: string | null;
79845
- token_expires_at?: string | null;
79846
- updated_at?: string;
79847
- user_id?: string;
79848
- };
79849
- Relationships: [];
79850
- };
79851
- twinfield_credentials: {
79852
- Row: {
79853
- administration_code: string | null;
79854
- client_id: string | null;
79855
- client_secret: string | null;
79856
- cluster: string | null;
79857
- connected_at: string | null;
79858
- created_at: string;
79859
- environment: string | null;
79860
- id: string;
79861
- redirect_uri: string | null;
79862
- refresh_token: string | null;
79863
- updated_at: string;
79864
- user_id: string;
79865
- };
79866
- Insert: {
79867
- administration_code?: string | null;
79868
- client_id?: string | null;
79869
- client_secret?: string | null;
79870
- cluster?: string | null;
79871
- connected_at?: string | null;
79872
- created_at?: string;
79873
- environment?: string | null;
79874
- id?: string;
79875
- redirect_uri?: string | null;
79876
- refresh_token?: string | null;
79877
- updated_at?: string;
79878
- user_id: string;
79879
- };
79880
- Update: {
79881
- administration_code?: string | null;
79882
- client_id?: string | null;
79883
- client_secret?: string | null;
79884
- cluster?: string | null;
79885
- connected_at?: string | null;
79886
- created_at?: string;
79887
- environment?: string | null;
79888
- id?: string;
79889
79799
  redirect_uri?: string | null;
79890
- refresh_token?: string | null;
79891
79800
  updated_at?: string;
79892
79801
  user_id?: string;
79893
79802
  };
@@ -80334,12 +80243,15 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
80334
80243
  currency: string | null;
80335
80244
  customer_code: string | null;
80336
80245
  data: import("../integrations/supabase/types").Json;
80246
+ deleted_at: string | null;
80337
80247
  due_date: string | null;
80338
80248
  fetched_at: string;
80339
80249
  invoice_date: string | null;
80340
80250
  invoice_number: string;
80251
+ lines_fetched_at: string | null;
80341
80252
  modified_at: string | null;
80342
80253
  outstanding_amount: number | null;
80254
+ paid_at: string | null;
80343
80255
  status: string | null;
80344
80256
  status_label: string | null;
80345
80257
  total_excl: number | null;
@@ -80351,12 +80263,15 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
80351
80263
  currency?: string | null;
80352
80264
  customer_code?: string | null;
80353
80265
  data?: import("../integrations/supabase/types").Json;
80266
+ deleted_at?: string | null;
80354
80267
  due_date?: string | null;
80355
80268
  fetched_at?: string;
80356
80269
  invoice_date?: string | null;
80357
80270
  invoice_number: string;
80271
+ lines_fetched_at?: string | null;
80358
80272
  modified_at?: string | null;
80359
80273
  outstanding_amount?: number | null;
80274
+ paid_at?: string | null;
80360
80275
  status?: string | null;
80361
80276
  status_label?: string | null;
80362
80277
  total_excl?: number | null;
@@ -80368,12 +80283,15 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
80368
80283
  currency?: string | null;
80369
80284
  customer_code?: string | null;
80370
80285
  data?: import("../integrations/supabase/types").Json;
80286
+ deleted_at?: string | null;
80371
80287
  due_date?: string | null;
80372
80288
  fetched_at?: string;
80373
80289
  invoice_date?: string | null;
80374
80290
  invoice_number?: string;
80291
+ lines_fetched_at?: string | null;
80375
80292
  modified_at?: string | null;
80376
80293
  outstanding_amount?: number | null;
80294
+ paid_at?: string | null;
80377
80295
  status?: string | null;
80378
80296
  status_label?: string | null;
80379
80297
  total_excl?: number | null;
@@ -80388,30 +80306,6 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
80388
80306
  referencedColumns: ["id"];
80389
80307
  }];
80390
80308
  };
80391
- twinfield_oauth_state: {
80392
- Row: {
80393
- created_at: string;
80394
- environment: string;
80395
- nonce: string | null;
80396
- state: string;
80397
- user_id: string;
80398
- };
80399
- Insert: {
80400
- created_at?: string;
80401
- environment: string;
80402
- nonce?: string | null;
80403
- state: string;
80404
- user_id: string;
80405
- };
80406
- Update: {
80407
- created_at?: string;
80408
- environment?: string;
80409
- nonce?: string | null;
80410
- state?: string;
80411
- user_id?: string;
80412
- };
80413
- Relationships: [];
80414
- };
80415
80309
  twinfield_push_queue: {
80416
80310
  Row: {
80417
80311
  action: string;
@@ -80577,39 +80471,6 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
80577
80471
  referencedColumns: ["id"];
80578
80472
  }];
80579
80473
  };
80580
- twinfield_token_refresh_log: {
80581
- Row: {
80582
- attempted_at: string;
80583
- connection_id: string;
80584
- error: string | null;
80585
- expires_at: string | null;
80586
- id: string;
80587
- ok: boolean;
80588
- };
80589
- Insert: {
80590
- attempted_at?: string;
80591
- connection_id: string;
80592
- error?: string | null;
80593
- expires_at?: string | null;
80594
- id?: string;
80595
- ok: boolean;
80596
- };
80597
- Update: {
80598
- attempted_at?: string;
80599
- connection_id?: string;
80600
- error?: string | null;
80601
- expires_at?: string | null;
80602
- id?: string;
80603
- ok?: boolean;
80604
- };
80605
- Relationships: [{
80606
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
80607
- columns: ["connection_id"];
80608
- isOneToOne: false;
80609
- referencedRelation: "twinfield_connections";
80610
- referencedColumns: ["id"];
80611
- }];
80612
- };
80613
80474
  user_roles: {
80614
80475
  Row: {
80615
80476
  created_at: string;
@@ -83050,15 +82911,16 @@ export declare const listUsedCartCarriers: import("@tanstack/start-client-core")
83050
82911
  };
83051
82912
  Returns: undefined;
83052
82913
  };
83053
- twinfield_decrypt: {
82914
+ twinfield_upsert_connection_by_account_key: {
83054
82915
  Args: {
83055
- cipher: string;
83056
- };
83057
- Returns: string;
83058
- };
83059
- twinfield_encrypt: {
83060
- Args: {
83061
- plain: string;
82916
+ p_account_key: string;
82917
+ p_cluster_uri?: string;
82918
+ p_company_code?: string;
82919
+ p_company_name?: string;
82920
+ p_environment: string;
82921
+ p_office_code?: string;
82922
+ p_status?: string;
82923
+ p_user_id: string;
83062
82924
  };
83063
82925
  Returns: string;
83064
82926
  };
@@ -87620,6 +87482,27 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
87620
87482
  referencedColumns: ["id"];
87621
87483
  }];
87622
87484
  };
87485
+ floriday_continuous_stock_cache: {
87486
+ Row: {
87487
+ connection_id: string;
87488
+ fetched_at: string;
87489
+ number_of_pieces: number;
87490
+ trade_item_id: string;
87491
+ };
87492
+ Insert: {
87493
+ connection_id: string;
87494
+ fetched_at?: string;
87495
+ number_of_pieces?: number;
87496
+ trade_item_id: string;
87497
+ };
87498
+ Update: {
87499
+ connection_id?: string;
87500
+ fetched_at?: string;
87501
+ number_of_pieces?: number;
87502
+ trade_item_id?: string;
87503
+ };
87504
+ Relationships: [];
87505
+ };
87623
87506
  floriday_continuous_stock_queue: {
87624
87507
  Row: {
87625
87508
  attempts: number;
@@ -88598,6 +88481,45 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
88598
88481
  referencedColumns: ["id"];
88599
88482
  }];
88600
88483
  };
88484
+ floriday_trade_settings_customers_cache: {
88485
+ Row: {
88486
+ connection_id: string;
88487
+ data: import("../integrations/supabase/types").Json;
88488
+ fetched_at: string;
88489
+ floriday_id: string;
88490
+ id: string;
88491
+ is_deleted: boolean;
88492
+ sequence_number: number;
88493
+ updated_at: string;
88494
+ };
88495
+ Insert: {
88496
+ connection_id: string;
88497
+ data: import("../integrations/supabase/types").Json;
88498
+ fetched_at?: string;
88499
+ floriday_id: string;
88500
+ id?: string;
88501
+ is_deleted?: boolean;
88502
+ sequence_number?: number;
88503
+ updated_at?: string;
88504
+ };
88505
+ Update: {
88506
+ connection_id?: string;
88507
+ data?: import("../integrations/supabase/types").Json;
88508
+ fetched_at?: string;
88509
+ floriday_id?: string;
88510
+ id?: string;
88511
+ is_deleted?: boolean;
88512
+ sequence_number?: number;
88513
+ updated_at?: string;
88514
+ };
88515
+ Relationships: [{
88516
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
88517
+ columns: ["connection_id"];
88518
+ isOneToOne: false;
88519
+ referencedRelation: "floriday_connections";
88520
+ referencedColumns: ["id"];
88521
+ }];
88522
+ };
88601
88523
  floriday_trips_cache: {
88602
88524
  Row: {
88603
88525
  carrier_organization_id: string | null;
@@ -88646,6 +88568,27 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
88646
88568
  referencedColumns: ["id"];
88647
88569
  }];
88648
88570
  };
88571
+ floriday_vbn_required_characteristics: {
88572
+ Row: {
88573
+ required_codes: string[];
88574
+ updated_at: string;
88575
+ updated_by: string | null;
88576
+ vbn_code: string;
88577
+ };
88578
+ Insert: {
88579
+ required_codes?: string[];
88580
+ updated_at?: string;
88581
+ updated_by?: string | null;
88582
+ vbn_code: string;
88583
+ };
88584
+ Update: {
88585
+ required_codes?: string[];
88586
+ updated_at?: string;
88587
+ updated_by?: string | null;
88588
+ vbn_code?: string;
88589
+ };
88590
+ Relationships: [];
88591
+ };
88649
88592
  floriday_warehouses_cache: {
88650
88593
  Row: {
88651
88594
  connection_id: string;
@@ -93619,9 +93562,7 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
93619
93562
  };
93620
93563
  twinfield_connections: {
93621
93564
  Row: {
93622
- access_token: string | null;
93623
- client_id: string;
93624
- client_secret: string | null;
93565
+ account_key: string | null;
93625
93566
  cluster_uri: string | null;
93626
93567
  company_code: string | null;
93627
93568
  company_name: string | null;
@@ -93632,16 +93573,12 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
93632
93573
  is_active: boolean;
93633
93574
  label: string | null;
93634
93575
  office_code: string | null;
93635
- redirect_uri: string;
93636
- refresh_token: string | null;
93637
- token_expires_at: string | null;
93576
+ redirect_uri: string | null;
93638
93577
  updated_at: string;
93639
93578
  user_id: string;
93640
93579
  };
93641
93580
  Insert: {
93642
- access_token?: string | null;
93643
- client_id: string;
93644
- client_secret?: string | null;
93581
+ account_key?: string | null;
93645
93582
  cluster_uri?: string | null;
93646
93583
  company_code?: string | null;
93647
93584
  company_name?: string | null;
@@ -93652,16 +93589,12 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
93652
93589
  is_active?: boolean;
93653
93590
  label?: string | null;
93654
93591
  office_code?: string | null;
93655
- redirect_uri: string;
93656
- refresh_token?: string | null;
93657
- token_expires_at?: string | null;
93592
+ redirect_uri?: string | null;
93658
93593
  updated_at?: string;
93659
93594
  user_id: string;
93660
93595
  };
93661
93596
  Update: {
93662
- access_token?: string | null;
93663
- client_id?: string;
93664
- client_secret?: string | null;
93597
+ account_key?: string | null;
93665
93598
  cluster_uri?: string | null;
93666
93599
  company_code?: string | null;
93667
93600
  company_name?: string | null;
@@ -93672,54 +93605,7 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
93672
93605
  is_active?: boolean;
93673
93606
  label?: string | null;
93674
93607
  office_code?: string | null;
93675
- redirect_uri?: string;
93676
- refresh_token?: string | null;
93677
- token_expires_at?: string | null;
93678
- updated_at?: string;
93679
- user_id?: string;
93680
- };
93681
- Relationships: [];
93682
- };
93683
- twinfield_credentials: {
93684
- Row: {
93685
- administration_code: string | null;
93686
- client_id: string | null;
93687
- client_secret: string | null;
93688
- cluster: string | null;
93689
- connected_at: string | null;
93690
- created_at: string;
93691
- environment: string | null;
93692
- id: string;
93693
- redirect_uri: string | null;
93694
- refresh_token: string | null;
93695
- updated_at: string;
93696
- user_id: string;
93697
- };
93698
- Insert: {
93699
- administration_code?: string | null;
93700
- client_id?: string | null;
93701
- client_secret?: string | null;
93702
- cluster?: string | null;
93703
- connected_at?: string | null;
93704
- created_at?: string;
93705
- environment?: string | null;
93706
- id?: string;
93707
- redirect_uri?: string | null;
93708
- refresh_token?: string | null;
93709
- updated_at?: string;
93710
- user_id: string;
93711
- };
93712
- Update: {
93713
- administration_code?: string | null;
93714
- client_id?: string | null;
93715
- client_secret?: string | null;
93716
- cluster?: string | null;
93717
- connected_at?: string | null;
93718
- created_at?: string;
93719
- environment?: string | null;
93720
- id?: string;
93721
93608
  redirect_uri?: string | null;
93722
- refresh_token?: string | null;
93723
93609
  updated_at?: string;
93724
93610
  user_id?: string;
93725
93611
  };
@@ -94166,12 +94052,15 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
94166
94052
  currency: string | null;
94167
94053
  customer_code: string | null;
94168
94054
  data: import("../integrations/supabase/types").Json;
94055
+ deleted_at: string | null;
94169
94056
  due_date: string | null;
94170
94057
  fetched_at: string;
94171
94058
  invoice_date: string | null;
94172
94059
  invoice_number: string;
94060
+ lines_fetched_at: string | null;
94173
94061
  modified_at: string | null;
94174
94062
  outstanding_amount: number | null;
94063
+ paid_at: string | null;
94175
94064
  status: string | null;
94176
94065
  status_label: string | null;
94177
94066
  total_excl: number | null;
@@ -94183,12 +94072,15 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
94183
94072
  currency?: string | null;
94184
94073
  customer_code?: string | null;
94185
94074
  data?: import("../integrations/supabase/types").Json;
94075
+ deleted_at?: string | null;
94186
94076
  due_date?: string | null;
94187
94077
  fetched_at?: string;
94188
94078
  invoice_date?: string | null;
94189
94079
  invoice_number: string;
94080
+ lines_fetched_at?: string | null;
94190
94081
  modified_at?: string | null;
94191
94082
  outstanding_amount?: number | null;
94083
+ paid_at?: string | null;
94192
94084
  status?: string | null;
94193
94085
  status_label?: string | null;
94194
94086
  total_excl?: number | null;
@@ -94200,12 +94092,15 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
94200
94092
  currency?: string | null;
94201
94093
  customer_code?: string | null;
94202
94094
  data?: import("../integrations/supabase/types").Json;
94095
+ deleted_at?: string | null;
94203
94096
  due_date?: string | null;
94204
94097
  fetched_at?: string;
94205
94098
  invoice_date?: string | null;
94206
94099
  invoice_number?: string;
94100
+ lines_fetched_at?: string | null;
94207
94101
  modified_at?: string | null;
94208
94102
  outstanding_amount?: number | null;
94103
+ paid_at?: string | null;
94209
94104
  status?: string | null;
94210
94105
  status_label?: string | null;
94211
94106
  total_excl?: number | null;
@@ -94220,30 +94115,6 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
94220
94115
  referencedColumns: ["id"];
94221
94116
  }];
94222
94117
  };
94223
- twinfield_oauth_state: {
94224
- Row: {
94225
- created_at: string;
94226
- environment: string;
94227
- nonce: string | null;
94228
- state: string;
94229
- user_id: string;
94230
- };
94231
- Insert: {
94232
- created_at?: string;
94233
- environment: string;
94234
- nonce?: string | null;
94235
- state: string;
94236
- user_id: string;
94237
- };
94238
- Update: {
94239
- created_at?: string;
94240
- environment?: string;
94241
- nonce?: string | null;
94242
- state?: string;
94243
- user_id?: string;
94244
- };
94245
- Relationships: [];
94246
- };
94247
94118
  twinfield_push_queue: {
94248
94119
  Row: {
94249
94120
  action: string;
@@ -94409,39 +94280,6 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
94409
94280
  referencedColumns: ["id"];
94410
94281
  }];
94411
94282
  };
94412
- twinfield_token_refresh_log: {
94413
- Row: {
94414
- attempted_at: string;
94415
- connection_id: string;
94416
- error: string | null;
94417
- expires_at: string | null;
94418
- id: string;
94419
- ok: boolean;
94420
- };
94421
- Insert: {
94422
- attempted_at?: string;
94423
- connection_id: string;
94424
- error?: string | null;
94425
- expires_at?: string | null;
94426
- id?: string;
94427
- ok: boolean;
94428
- };
94429
- Update: {
94430
- attempted_at?: string;
94431
- connection_id?: string;
94432
- error?: string | null;
94433
- expires_at?: string | null;
94434
- id?: string;
94435
- ok?: boolean;
94436
- };
94437
- Relationships: [{
94438
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
94439
- columns: ["connection_id"];
94440
- isOneToOne: false;
94441
- referencedRelation: "twinfield_connections";
94442
- referencedColumns: ["id"];
94443
- }];
94444
- };
94445
94283
  user_roles: {
94446
94284
  Row: {
94447
94285
  created_at: string;
@@ -96882,15 +96720,16 @@ export declare const upsertCartType: import("@tanstack/start-client-core").Optio
96882
96720
  };
96883
96721
  Returns: undefined;
96884
96722
  };
96885
- twinfield_decrypt: {
96723
+ twinfield_upsert_connection_by_account_key: {
96886
96724
  Args: {
96887
- cipher: string;
96888
- };
96889
- Returns: string;
96890
- };
96891
- twinfield_encrypt: {
96892
- Args: {
96893
- plain: string;
96725
+ p_account_key: string;
96726
+ p_cluster_uri?: string;
96727
+ p_company_code?: string;
96728
+ p_company_name?: string;
96729
+ p_environment: string;
96730
+ p_office_code?: string;
96731
+ p_status?: string;
96732
+ p_user_id: string;
96894
96733
  };
96895
96734
  Returns: string;
96896
96735
  };
@@ -101461,6 +101300,27 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
101461
101300
  referencedColumns: ["id"];
101462
101301
  }];
101463
101302
  };
101303
+ floriday_continuous_stock_cache: {
101304
+ Row: {
101305
+ connection_id: string;
101306
+ fetched_at: string;
101307
+ number_of_pieces: number;
101308
+ trade_item_id: string;
101309
+ };
101310
+ Insert: {
101311
+ connection_id: string;
101312
+ fetched_at?: string;
101313
+ number_of_pieces?: number;
101314
+ trade_item_id: string;
101315
+ };
101316
+ Update: {
101317
+ connection_id?: string;
101318
+ fetched_at?: string;
101319
+ number_of_pieces?: number;
101320
+ trade_item_id?: string;
101321
+ };
101322
+ Relationships: [];
101323
+ };
101464
101324
  floriday_continuous_stock_queue: {
101465
101325
  Row: {
101466
101326
  attempts: number;
@@ -102439,6 +102299,45 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
102439
102299
  referencedColumns: ["id"];
102440
102300
  }];
102441
102301
  };
102302
+ floriday_trade_settings_customers_cache: {
102303
+ Row: {
102304
+ connection_id: string;
102305
+ data: import("../integrations/supabase/types").Json;
102306
+ fetched_at: string;
102307
+ floriday_id: string;
102308
+ id: string;
102309
+ is_deleted: boolean;
102310
+ sequence_number: number;
102311
+ updated_at: string;
102312
+ };
102313
+ Insert: {
102314
+ connection_id: string;
102315
+ data: import("../integrations/supabase/types").Json;
102316
+ fetched_at?: string;
102317
+ floriday_id: string;
102318
+ id?: string;
102319
+ is_deleted?: boolean;
102320
+ sequence_number?: number;
102321
+ updated_at?: string;
102322
+ };
102323
+ Update: {
102324
+ connection_id?: string;
102325
+ data?: import("../integrations/supabase/types").Json;
102326
+ fetched_at?: string;
102327
+ floriday_id?: string;
102328
+ id?: string;
102329
+ is_deleted?: boolean;
102330
+ sequence_number?: number;
102331
+ updated_at?: string;
102332
+ };
102333
+ Relationships: [{
102334
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
102335
+ columns: ["connection_id"];
102336
+ isOneToOne: false;
102337
+ referencedRelation: "floriday_connections";
102338
+ referencedColumns: ["id"];
102339
+ }];
102340
+ };
102442
102341
  floriday_trips_cache: {
102443
102342
  Row: {
102444
102343
  carrier_organization_id: string | null;
@@ -102487,6 +102386,27 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
102487
102386
  referencedColumns: ["id"];
102488
102387
  }];
102489
102388
  };
102389
+ floriday_vbn_required_characteristics: {
102390
+ Row: {
102391
+ required_codes: string[];
102392
+ updated_at: string;
102393
+ updated_by: string | null;
102394
+ vbn_code: string;
102395
+ };
102396
+ Insert: {
102397
+ required_codes?: string[];
102398
+ updated_at?: string;
102399
+ updated_by?: string | null;
102400
+ vbn_code: string;
102401
+ };
102402
+ Update: {
102403
+ required_codes?: string[];
102404
+ updated_at?: string;
102405
+ updated_by?: string | null;
102406
+ vbn_code?: string;
102407
+ };
102408
+ Relationships: [];
102409
+ };
102490
102410
  floriday_warehouses_cache: {
102491
102411
  Row: {
102492
102412
  connection_id: string;
@@ -107460,9 +107380,7 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
107460
107380
  };
107461
107381
  twinfield_connections: {
107462
107382
  Row: {
107463
- access_token: string | null;
107464
- client_id: string;
107465
- client_secret: string | null;
107383
+ account_key: string | null;
107466
107384
  cluster_uri: string | null;
107467
107385
  company_code: string | null;
107468
107386
  company_name: string | null;
@@ -107473,16 +107391,12 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
107473
107391
  is_active: boolean;
107474
107392
  label: string | null;
107475
107393
  office_code: string | null;
107476
- redirect_uri: string;
107477
- refresh_token: string | null;
107478
- token_expires_at: string | null;
107394
+ redirect_uri: string | null;
107479
107395
  updated_at: string;
107480
107396
  user_id: string;
107481
107397
  };
107482
107398
  Insert: {
107483
- access_token?: string | null;
107484
- client_id: string;
107485
- client_secret?: string | null;
107399
+ account_key?: string | null;
107486
107400
  cluster_uri?: string | null;
107487
107401
  company_code?: string | null;
107488
107402
  company_name?: string | null;
@@ -107493,16 +107407,12 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
107493
107407
  is_active?: boolean;
107494
107408
  label?: string | null;
107495
107409
  office_code?: string | null;
107496
- redirect_uri: string;
107497
- refresh_token?: string | null;
107498
- token_expires_at?: string | null;
107410
+ redirect_uri?: string | null;
107499
107411
  updated_at?: string;
107500
107412
  user_id: string;
107501
107413
  };
107502
107414
  Update: {
107503
- access_token?: string | null;
107504
- client_id?: string;
107505
- client_secret?: string | null;
107415
+ account_key?: string | null;
107506
107416
  cluster_uri?: string | null;
107507
107417
  company_code?: string | null;
107508
107418
  company_name?: string | null;
@@ -107513,54 +107423,7 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
107513
107423
  is_active?: boolean;
107514
107424
  label?: string | null;
107515
107425
  office_code?: string | null;
107516
- redirect_uri?: string;
107517
- refresh_token?: string | null;
107518
- token_expires_at?: string | null;
107519
- updated_at?: string;
107520
- user_id?: string;
107521
- };
107522
- Relationships: [];
107523
- };
107524
- twinfield_credentials: {
107525
- Row: {
107526
- administration_code: string | null;
107527
- client_id: string | null;
107528
- client_secret: string | null;
107529
- cluster: string | null;
107530
- connected_at: string | null;
107531
- created_at: string;
107532
- environment: string | null;
107533
- id: string;
107534
- redirect_uri: string | null;
107535
- refresh_token: string | null;
107536
- updated_at: string;
107537
- user_id: string;
107538
- };
107539
- Insert: {
107540
- administration_code?: string | null;
107541
- client_id?: string | null;
107542
- client_secret?: string | null;
107543
- cluster?: string | null;
107544
- connected_at?: string | null;
107545
- created_at?: string;
107546
- environment?: string | null;
107547
- id?: string;
107548
107426
  redirect_uri?: string | null;
107549
- refresh_token?: string | null;
107550
- updated_at?: string;
107551
- user_id: string;
107552
- };
107553
- Update: {
107554
- administration_code?: string | null;
107555
- client_id?: string | null;
107556
- client_secret?: string | null;
107557
- cluster?: string | null;
107558
- connected_at?: string | null;
107559
- created_at?: string;
107560
- environment?: string | null;
107561
- id?: string;
107562
- redirect_uri?: string | null;
107563
- refresh_token?: string | null;
107564
107427
  updated_at?: string;
107565
107428
  user_id?: string;
107566
107429
  };
@@ -108007,12 +107870,15 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
108007
107870
  currency: string | null;
108008
107871
  customer_code: string | null;
108009
107872
  data: import("../integrations/supabase/types").Json;
107873
+ deleted_at: string | null;
108010
107874
  due_date: string | null;
108011
107875
  fetched_at: string;
108012
107876
  invoice_date: string | null;
108013
107877
  invoice_number: string;
107878
+ lines_fetched_at: string | null;
108014
107879
  modified_at: string | null;
108015
107880
  outstanding_amount: number | null;
107881
+ paid_at: string | null;
108016
107882
  status: string | null;
108017
107883
  status_label: string | null;
108018
107884
  total_excl: number | null;
@@ -108024,12 +107890,15 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
108024
107890
  currency?: string | null;
108025
107891
  customer_code?: string | null;
108026
107892
  data?: import("../integrations/supabase/types").Json;
107893
+ deleted_at?: string | null;
108027
107894
  due_date?: string | null;
108028
107895
  fetched_at?: string;
108029
107896
  invoice_date?: string | null;
108030
107897
  invoice_number: string;
107898
+ lines_fetched_at?: string | null;
108031
107899
  modified_at?: string | null;
108032
107900
  outstanding_amount?: number | null;
107901
+ paid_at?: string | null;
108033
107902
  status?: string | null;
108034
107903
  status_label?: string | null;
108035
107904
  total_excl?: number | null;
@@ -108041,12 +107910,15 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
108041
107910
  currency?: string | null;
108042
107911
  customer_code?: string | null;
108043
107912
  data?: import("../integrations/supabase/types").Json;
107913
+ deleted_at?: string | null;
108044
107914
  due_date?: string | null;
108045
107915
  fetched_at?: string;
108046
107916
  invoice_date?: string | null;
108047
107917
  invoice_number?: string;
107918
+ lines_fetched_at?: string | null;
108048
107919
  modified_at?: string | null;
108049
107920
  outstanding_amount?: number | null;
107921
+ paid_at?: string | null;
108050
107922
  status?: string | null;
108051
107923
  status_label?: string | null;
108052
107924
  total_excl?: number | null;
@@ -108061,30 +107933,6 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
108061
107933
  referencedColumns: ["id"];
108062
107934
  }];
108063
107935
  };
108064
- twinfield_oauth_state: {
108065
- Row: {
108066
- created_at: string;
108067
- environment: string;
108068
- nonce: string | null;
108069
- state: string;
108070
- user_id: string;
108071
- };
108072
- Insert: {
108073
- created_at?: string;
108074
- environment: string;
108075
- nonce?: string | null;
108076
- state: string;
108077
- user_id: string;
108078
- };
108079
- Update: {
108080
- created_at?: string;
108081
- environment?: string;
108082
- nonce?: string | null;
108083
- state?: string;
108084
- user_id?: string;
108085
- };
108086
- Relationships: [];
108087
- };
108088
107936
  twinfield_push_queue: {
108089
107937
  Row: {
108090
107938
  action: string;
@@ -108250,39 +108098,6 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
108250
108098
  referencedColumns: ["id"];
108251
108099
  }];
108252
108100
  };
108253
- twinfield_token_refresh_log: {
108254
- Row: {
108255
- attempted_at: string;
108256
- connection_id: string;
108257
- error: string | null;
108258
- expires_at: string | null;
108259
- id: string;
108260
- ok: boolean;
108261
- };
108262
- Insert: {
108263
- attempted_at?: string;
108264
- connection_id: string;
108265
- error?: string | null;
108266
- expires_at?: string | null;
108267
- id?: string;
108268
- ok: boolean;
108269
- };
108270
- Update: {
108271
- attempted_at?: string;
108272
- connection_id?: string;
108273
- error?: string | null;
108274
- expires_at?: string | null;
108275
- id?: string;
108276
- ok?: boolean;
108277
- };
108278
- Relationships: [{
108279
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
108280
- columns: ["connection_id"];
108281
- isOneToOne: false;
108282
- referencedRelation: "twinfield_connections";
108283
- referencedColumns: ["id"];
108284
- }];
108285
- };
108286
108101
  user_roles: {
108287
108102
  Row: {
108288
108103
  created_at: string;
@@ -110723,15 +110538,16 @@ export declare const deleteCartType: import("@tanstack/start-client-core").Optio
110723
110538
  };
110724
110539
  Returns: undefined;
110725
110540
  };
110726
- twinfield_decrypt: {
110541
+ twinfield_upsert_connection_by_account_key: {
110727
110542
  Args: {
110728
- cipher: string;
110729
- };
110730
- Returns: string;
110731
- };
110732
- twinfield_encrypt: {
110733
- Args: {
110734
- plain: string;
110543
+ p_account_key: string;
110544
+ p_cluster_uri?: string;
110545
+ p_company_code?: string;
110546
+ p_company_name?: string;
110547
+ p_environment: string;
110548
+ p_office_code?: string;
110549
+ p_status?: string;
110550
+ p_user_id: string;
110735
110551
  };
110736
110552
  Returns: string;
110737
110553
  };
@@ -115297,6 +115113,27 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
115297
115113
  referencedColumns: ["id"];
115298
115114
  }];
115299
115115
  };
115116
+ floriday_continuous_stock_cache: {
115117
+ Row: {
115118
+ connection_id: string;
115119
+ fetched_at: string;
115120
+ number_of_pieces: number;
115121
+ trade_item_id: string;
115122
+ };
115123
+ Insert: {
115124
+ connection_id: string;
115125
+ fetched_at?: string;
115126
+ number_of_pieces?: number;
115127
+ trade_item_id: string;
115128
+ };
115129
+ Update: {
115130
+ connection_id?: string;
115131
+ fetched_at?: string;
115132
+ number_of_pieces?: number;
115133
+ trade_item_id?: string;
115134
+ };
115135
+ Relationships: [];
115136
+ };
115300
115137
  floriday_continuous_stock_queue: {
115301
115138
  Row: {
115302
115139
  attempts: number;
@@ -116275,6 +116112,45 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
116275
116112
  referencedColumns: ["id"];
116276
116113
  }];
116277
116114
  };
116115
+ floriday_trade_settings_customers_cache: {
116116
+ Row: {
116117
+ connection_id: string;
116118
+ data: import("../integrations/supabase/types").Json;
116119
+ fetched_at: string;
116120
+ floriday_id: string;
116121
+ id: string;
116122
+ is_deleted: boolean;
116123
+ sequence_number: number;
116124
+ updated_at: string;
116125
+ };
116126
+ Insert: {
116127
+ connection_id: string;
116128
+ data: import("../integrations/supabase/types").Json;
116129
+ fetched_at?: string;
116130
+ floriday_id: string;
116131
+ id?: string;
116132
+ is_deleted?: boolean;
116133
+ sequence_number?: number;
116134
+ updated_at?: string;
116135
+ };
116136
+ Update: {
116137
+ connection_id?: string;
116138
+ data?: import("../integrations/supabase/types").Json;
116139
+ fetched_at?: string;
116140
+ floriday_id?: string;
116141
+ id?: string;
116142
+ is_deleted?: boolean;
116143
+ sequence_number?: number;
116144
+ updated_at?: string;
116145
+ };
116146
+ Relationships: [{
116147
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
116148
+ columns: ["connection_id"];
116149
+ isOneToOne: false;
116150
+ referencedRelation: "floriday_connections";
116151
+ referencedColumns: ["id"];
116152
+ }];
116153
+ };
116278
116154
  floriday_trips_cache: {
116279
116155
  Row: {
116280
116156
  carrier_organization_id: string | null;
@@ -116323,6 +116199,27 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
116323
116199
  referencedColumns: ["id"];
116324
116200
  }];
116325
116201
  };
116202
+ floriday_vbn_required_characteristics: {
116203
+ Row: {
116204
+ required_codes: string[];
116205
+ updated_at: string;
116206
+ updated_by: string | null;
116207
+ vbn_code: string;
116208
+ };
116209
+ Insert: {
116210
+ required_codes?: string[];
116211
+ updated_at?: string;
116212
+ updated_by?: string | null;
116213
+ vbn_code: string;
116214
+ };
116215
+ Update: {
116216
+ required_codes?: string[];
116217
+ updated_at?: string;
116218
+ updated_by?: string | null;
116219
+ vbn_code?: string;
116220
+ };
116221
+ Relationships: [];
116222
+ };
116326
116223
  floriday_warehouses_cache: {
116327
116224
  Row: {
116328
116225
  connection_id: string;
@@ -121296,9 +121193,7 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
121296
121193
  };
121297
121194
  twinfield_connections: {
121298
121195
  Row: {
121299
- access_token: string | null;
121300
- client_id: string;
121301
- client_secret: string | null;
121196
+ account_key: string | null;
121302
121197
  cluster_uri: string | null;
121303
121198
  company_code: string | null;
121304
121199
  company_name: string | null;
@@ -121309,16 +121204,12 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
121309
121204
  is_active: boolean;
121310
121205
  label: string | null;
121311
121206
  office_code: string | null;
121312
- redirect_uri: string;
121313
- refresh_token: string | null;
121314
- token_expires_at: string | null;
121207
+ redirect_uri: string | null;
121315
121208
  updated_at: string;
121316
121209
  user_id: string;
121317
121210
  };
121318
121211
  Insert: {
121319
- access_token?: string | null;
121320
- client_id: string;
121321
- client_secret?: string | null;
121212
+ account_key?: string | null;
121322
121213
  cluster_uri?: string | null;
121323
121214
  company_code?: string | null;
121324
121215
  company_name?: string | null;
@@ -121329,16 +121220,12 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
121329
121220
  is_active?: boolean;
121330
121221
  label?: string | null;
121331
121222
  office_code?: string | null;
121332
- redirect_uri: string;
121333
- refresh_token?: string | null;
121334
- token_expires_at?: string | null;
121223
+ redirect_uri?: string | null;
121335
121224
  updated_at?: string;
121336
121225
  user_id: string;
121337
121226
  };
121338
121227
  Update: {
121339
- access_token?: string | null;
121340
- client_id?: string;
121341
- client_secret?: string | null;
121228
+ account_key?: string | null;
121342
121229
  cluster_uri?: string | null;
121343
121230
  company_code?: string | null;
121344
121231
  company_name?: string | null;
@@ -121349,54 +121236,7 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
121349
121236
  is_active?: boolean;
121350
121237
  label?: string | null;
121351
121238
  office_code?: string | null;
121352
- redirect_uri?: string;
121353
- refresh_token?: string | null;
121354
- token_expires_at?: string | null;
121355
- updated_at?: string;
121356
- user_id?: string;
121357
- };
121358
- Relationships: [];
121359
- };
121360
- twinfield_credentials: {
121361
- Row: {
121362
- administration_code: string | null;
121363
- client_id: string | null;
121364
- client_secret: string | null;
121365
- cluster: string | null;
121366
- connected_at: string | null;
121367
- created_at: string;
121368
- environment: string | null;
121369
- id: string;
121370
- redirect_uri: string | null;
121371
- refresh_token: string | null;
121372
- updated_at: string;
121373
- user_id: string;
121374
- };
121375
- Insert: {
121376
- administration_code?: string | null;
121377
- client_id?: string | null;
121378
- client_secret?: string | null;
121379
- cluster?: string | null;
121380
- connected_at?: string | null;
121381
- created_at?: string;
121382
- environment?: string | null;
121383
- id?: string;
121384
- redirect_uri?: string | null;
121385
- refresh_token?: string | null;
121386
- updated_at?: string;
121387
- user_id: string;
121388
- };
121389
- Update: {
121390
- administration_code?: string | null;
121391
- client_id?: string | null;
121392
- client_secret?: string | null;
121393
- cluster?: string | null;
121394
- connected_at?: string | null;
121395
- created_at?: string;
121396
- environment?: string | null;
121397
- id?: string;
121398
121239
  redirect_uri?: string | null;
121399
- refresh_token?: string | null;
121400
121240
  updated_at?: string;
121401
121241
  user_id?: string;
121402
121242
  };
@@ -121843,12 +121683,15 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
121843
121683
  currency: string | null;
121844
121684
  customer_code: string | null;
121845
121685
  data: import("../integrations/supabase/types").Json;
121686
+ deleted_at: string | null;
121846
121687
  due_date: string | null;
121847
121688
  fetched_at: string;
121848
121689
  invoice_date: string | null;
121849
121690
  invoice_number: string;
121691
+ lines_fetched_at: string | null;
121850
121692
  modified_at: string | null;
121851
121693
  outstanding_amount: number | null;
121694
+ paid_at: string | null;
121852
121695
  status: string | null;
121853
121696
  status_label: string | null;
121854
121697
  total_excl: number | null;
@@ -121860,12 +121703,15 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
121860
121703
  currency?: string | null;
121861
121704
  customer_code?: string | null;
121862
121705
  data?: import("../integrations/supabase/types").Json;
121706
+ deleted_at?: string | null;
121863
121707
  due_date?: string | null;
121864
121708
  fetched_at?: string;
121865
121709
  invoice_date?: string | null;
121866
121710
  invoice_number: string;
121711
+ lines_fetched_at?: string | null;
121867
121712
  modified_at?: string | null;
121868
121713
  outstanding_amount?: number | null;
121714
+ paid_at?: string | null;
121869
121715
  status?: string | null;
121870
121716
  status_label?: string | null;
121871
121717
  total_excl?: number | null;
@@ -121877,12 +121723,15 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
121877
121723
  currency?: string | null;
121878
121724
  customer_code?: string | null;
121879
121725
  data?: import("../integrations/supabase/types").Json;
121726
+ deleted_at?: string | null;
121880
121727
  due_date?: string | null;
121881
121728
  fetched_at?: string;
121882
121729
  invoice_date?: string | null;
121883
121730
  invoice_number?: string;
121731
+ lines_fetched_at?: string | null;
121884
121732
  modified_at?: string | null;
121885
121733
  outstanding_amount?: number | null;
121734
+ paid_at?: string | null;
121886
121735
  status?: string | null;
121887
121736
  status_label?: string | null;
121888
121737
  total_excl?: number | null;
@@ -121897,30 +121746,6 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
121897
121746
  referencedColumns: ["id"];
121898
121747
  }];
121899
121748
  };
121900
- twinfield_oauth_state: {
121901
- Row: {
121902
- created_at: string;
121903
- environment: string;
121904
- nonce: string | null;
121905
- state: string;
121906
- user_id: string;
121907
- };
121908
- Insert: {
121909
- created_at?: string;
121910
- environment: string;
121911
- nonce?: string | null;
121912
- state: string;
121913
- user_id: string;
121914
- };
121915
- Update: {
121916
- created_at?: string;
121917
- environment?: string;
121918
- nonce?: string | null;
121919
- state?: string;
121920
- user_id?: string;
121921
- };
121922
- Relationships: [];
121923
- };
121924
121749
  twinfield_push_queue: {
121925
121750
  Row: {
121926
121751
  action: string;
@@ -122086,39 +121911,6 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
122086
121911
  referencedColumns: ["id"];
122087
121912
  }];
122088
121913
  };
122089
- twinfield_token_refresh_log: {
122090
- Row: {
122091
- attempted_at: string;
122092
- connection_id: string;
122093
- error: string | null;
122094
- expires_at: string | null;
122095
- id: string;
122096
- ok: boolean;
122097
- };
122098
- Insert: {
122099
- attempted_at?: string;
122100
- connection_id: string;
122101
- error?: string | null;
122102
- expires_at?: string | null;
122103
- id?: string;
122104
- ok: boolean;
122105
- };
122106
- Update: {
122107
- attempted_at?: string;
122108
- connection_id?: string;
122109
- error?: string | null;
122110
- expires_at?: string | null;
122111
- id?: string;
122112
- ok?: boolean;
122113
- };
122114
- Relationships: [{
122115
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
122116
- columns: ["connection_id"];
122117
- isOneToOne: false;
122118
- referencedRelation: "twinfield_connections";
122119
- referencedColumns: ["id"];
122120
- }];
122121
- };
122122
121914
  user_roles: {
122123
121915
  Row: {
122124
121916
  created_at: string;
@@ -124559,15 +124351,16 @@ export declare const setDefaultCartType: import("@tanstack/start-client-core").O
124559
124351
  };
124560
124352
  Returns: undefined;
124561
124353
  };
124562
- twinfield_decrypt: {
124563
- Args: {
124564
- cipher: string;
124565
- };
124566
- Returns: string;
124567
- };
124568
- twinfield_encrypt: {
124354
+ twinfield_upsert_connection_by_account_key: {
124569
124355
  Args: {
124570
- plain: string;
124356
+ p_account_key: string;
124357
+ p_cluster_uri?: string;
124358
+ p_company_code?: string;
124359
+ p_company_name?: string;
124360
+ p_environment: string;
124361
+ p_office_code?: string;
124362
+ p_status?: string;
124363
+ p_user_id: string;
124571
124364
  };
124572
124365
  Returns: string;
124573
124366
  };
@@ -129133,6 +128926,27 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
129133
128926
  referencedColumns: ["id"];
129134
128927
  }];
129135
128928
  };
128929
+ floriday_continuous_stock_cache: {
128930
+ Row: {
128931
+ connection_id: string;
128932
+ fetched_at: string;
128933
+ number_of_pieces: number;
128934
+ trade_item_id: string;
128935
+ };
128936
+ Insert: {
128937
+ connection_id: string;
128938
+ fetched_at?: string;
128939
+ number_of_pieces?: number;
128940
+ trade_item_id: string;
128941
+ };
128942
+ Update: {
128943
+ connection_id?: string;
128944
+ fetched_at?: string;
128945
+ number_of_pieces?: number;
128946
+ trade_item_id?: string;
128947
+ };
128948
+ Relationships: [];
128949
+ };
129136
128950
  floriday_continuous_stock_queue: {
129137
128951
  Row: {
129138
128952
  attempts: number;
@@ -130111,6 +129925,45 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
130111
129925
  referencedColumns: ["id"];
130112
129926
  }];
130113
129927
  };
129928
+ floriday_trade_settings_customers_cache: {
129929
+ Row: {
129930
+ connection_id: string;
129931
+ data: import("../integrations/supabase/types").Json;
129932
+ fetched_at: string;
129933
+ floriday_id: string;
129934
+ id: string;
129935
+ is_deleted: boolean;
129936
+ sequence_number: number;
129937
+ updated_at: string;
129938
+ };
129939
+ Insert: {
129940
+ connection_id: string;
129941
+ data: import("../integrations/supabase/types").Json;
129942
+ fetched_at?: string;
129943
+ floriday_id: string;
129944
+ id?: string;
129945
+ is_deleted?: boolean;
129946
+ sequence_number?: number;
129947
+ updated_at?: string;
129948
+ };
129949
+ Update: {
129950
+ connection_id?: string;
129951
+ data?: import("../integrations/supabase/types").Json;
129952
+ fetched_at?: string;
129953
+ floriday_id?: string;
129954
+ id?: string;
129955
+ is_deleted?: boolean;
129956
+ sequence_number?: number;
129957
+ updated_at?: string;
129958
+ };
129959
+ Relationships: [{
129960
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
129961
+ columns: ["connection_id"];
129962
+ isOneToOne: false;
129963
+ referencedRelation: "floriday_connections";
129964
+ referencedColumns: ["id"];
129965
+ }];
129966
+ };
130114
129967
  floriday_trips_cache: {
130115
129968
  Row: {
130116
129969
  carrier_organization_id: string | null;
@@ -130159,6 +130012,27 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
130159
130012
  referencedColumns: ["id"];
130160
130013
  }];
130161
130014
  };
130015
+ floriday_vbn_required_characteristics: {
130016
+ Row: {
130017
+ required_codes: string[];
130018
+ updated_at: string;
130019
+ updated_by: string | null;
130020
+ vbn_code: string;
130021
+ };
130022
+ Insert: {
130023
+ required_codes?: string[];
130024
+ updated_at?: string;
130025
+ updated_by?: string | null;
130026
+ vbn_code: string;
130027
+ };
130028
+ Update: {
130029
+ required_codes?: string[];
130030
+ updated_at?: string;
130031
+ updated_by?: string | null;
130032
+ vbn_code?: string;
130033
+ };
130034
+ Relationships: [];
130035
+ };
130162
130036
  floriday_warehouses_cache: {
130163
130037
  Row: {
130164
130038
  connection_id: string;
@@ -135132,9 +135006,7 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
135132
135006
  };
135133
135007
  twinfield_connections: {
135134
135008
  Row: {
135135
- access_token: string | null;
135136
- client_id: string;
135137
- client_secret: string | null;
135009
+ account_key: string | null;
135138
135010
  cluster_uri: string | null;
135139
135011
  company_code: string | null;
135140
135012
  company_name: string | null;
@@ -135145,16 +135017,12 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
135145
135017
  is_active: boolean;
135146
135018
  label: string | null;
135147
135019
  office_code: string | null;
135148
- redirect_uri: string;
135149
- refresh_token: string | null;
135150
- token_expires_at: string | null;
135020
+ redirect_uri: string | null;
135151
135021
  updated_at: string;
135152
135022
  user_id: string;
135153
135023
  };
135154
135024
  Insert: {
135155
- access_token?: string | null;
135156
- client_id: string;
135157
- client_secret?: string | null;
135025
+ account_key?: string | null;
135158
135026
  cluster_uri?: string | null;
135159
135027
  company_code?: string | null;
135160
135028
  company_name?: string | null;
@@ -135165,16 +135033,12 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
135165
135033
  is_active?: boolean;
135166
135034
  label?: string | null;
135167
135035
  office_code?: string | null;
135168
- redirect_uri: string;
135169
- refresh_token?: string | null;
135170
- token_expires_at?: string | null;
135036
+ redirect_uri?: string | null;
135171
135037
  updated_at?: string;
135172
135038
  user_id: string;
135173
135039
  };
135174
135040
  Update: {
135175
- access_token?: string | null;
135176
- client_id?: string;
135177
- client_secret?: string | null;
135041
+ account_key?: string | null;
135178
135042
  cluster_uri?: string | null;
135179
135043
  company_code?: string | null;
135180
135044
  company_name?: string | null;
@@ -135185,54 +135049,7 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
135185
135049
  is_active?: boolean;
135186
135050
  label?: string | null;
135187
135051
  office_code?: string | null;
135188
- redirect_uri?: string;
135189
- refresh_token?: string | null;
135190
- token_expires_at?: string | null;
135191
- updated_at?: string;
135192
- user_id?: string;
135193
- };
135194
- Relationships: [];
135195
- };
135196
- twinfield_credentials: {
135197
- Row: {
135198
- administration_code: string | null;
135199
- client_id: string | null;
135200
- client_secret: string | null;
135201
- cluster: string | null;
135202
- connected_at: string | null;
135203
- created_at: string;
135204
- environment: string | null;
135205
- id: string;
135206
- redirect_uri: string | null;
135207
- refresh_token: string | null;
135208
- updated_at: string;
135209
- user_id: string;
135210
- };
135211
- Insert: {
135212
- administration_code?: string | null;
135213
- client_id?: string | null;
135214
- client_secret?: string | null;
135215
- cluster?: string | null;
135216
- connected_at?: string | null;
135217
- created_at?: string;
135218
- environment?: string | null;
135219
- id?: string;
135220
- redirect_uri?: string | null;
135221
- refresh_token?: string | null;
135222
- updated_at?: string;
135223
- user_id: string;
135224
- };
135225
- Update: {
135226
- administration_code?: string | null;
135227
- client_id?: string | null;
135228
- client_secret?: string | null;
135229
- cluster?: string | null;
135230
- connected_at?: string | null;
135231
- created_at?: string;
135232
- environment?: string | null;
135233
- id?: string;
135234
135052
  redirect_uri?: string | null;
135235
- refresh_token?: string | null;
135236
135053
  updated_at?: string;
135237
135054
  user_id?: string;
135238
135055
  };
@@ -135679,12 +135496,15 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
135679
135496
  currency: string | null;
135680
135497
  customer_code: string | null;
135681
135498
  data: import("../integrations/supabase/types").Json;
135499
+ deleted_at: string | null;
135682
135500
  due_date: string | null;
135683
135501
  fetched_at: string;
135684
135502
  invoice_date: string | null;
135685
135503
  invoice_number: string;
135504
+ lines_fetched_at: string | null;
135686
135505
  modified_at: string | null;
135687
135506
  outstanding_amount: number | null;
135507
+ paid_at: string | null;
135688
135508
  status: string | null;
135689
135509
  status_label: string | null;
135690
135510
  total_excl: number | null;
@@ -135696,12 +135516,15 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
135696
135516
  currency?: string | null;
135697
135517
  customer_code?: string | null;
135698
135518
  data?: import("../integrations/supabase/types").Json;
135519
+ deleted_at?: string | null;
135699
135520
  due_date?: string | null;
135700
135521
  fetched_at?: string;
135701
135522
  invoice_date?: string | null;
135702
135523
  invoice_number: string;
135524
+ lines_fetched_at?: string | null;
135703
135525
  modified_at?: string | null;
135704
135526
  outstanding_amount?: number | null;
135527
+ paid_at?: string | null;
135705
135528
  status?: string | null;
135706
135529
  status_label?: string | null;
135707
135530
  total_excl?: number | null;
@@ -135713,12 +135536,15 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
135713
135536
  currency?: string | null;
135714
135537
  customer_code?: string | null;
135715
135538
  data?: import("../integrations/supabase/types").Json;
135539
+ deleted_at?: string | null;
135716
135540
  due_date?: string | null;
135717
135541
  fetched_at?: string;
135718
135542
  invoice_date?: string | null;
135719
135543
  invoice_number?: string;
135544
+ lines_fetched_at?: string | null;
135720
135545
  modified_at?: string | null;
135721
135546
  outstanding_amount?: number | null;
135547
+ paid_at?: string | null;
135722
135548
  status?: string | null;
135723
135549
  status_label?: string | null;
135724
135550
  total_excl?: number | null;
@@ -135733,30 +135559,6 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
135733
135559
  referencedColumns: ["id"];
135734
135560
  }];
135735
135561
  };
135736
- twinfield_oauth_state: {
135737
- Row: {
135738
- created_at: string;
135739
- environment: string;
135740
- nonce: string | null;
135741
- state: string;
135742
- user_id: string;
135743
- };
135744
- Insert: {
135745
- created_at?: string;
135746
- environment: string;
135747
- nonce?: string | null;
135748
- state: string;
135749
- user_id: string;
135750
- };
135751
- Update: {
135752
- created_at?: string;
135753
- environment?: string;
135754
- nonce?: string | null;
135755
- state?: string;
135756
- user_id?: string;
135757
- };
135758
- Relationships: [];
135759
- };
135760
135562
  twinfield_push_queue: {
135761
135563
  Row: {
135762
135564
  action: string;
@@ -135922,39 +135724,6 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
135922
135724
  referencedColumns: ["id"];
135923
135725
  }];
135924
135726
  };
135925
- twinfield_token_refresh_log: {
135926
- Row: {
135927
- attempted_at: string;
135928
- connection_id: string;
135929
- error: string | null;
135930
- expires_at: string | null;
135931
- id: string;
135932
- ok: boolean;
135933
- };
135934
- Insert: {
135935
- attempted_at?: string;
135936
- connection_id: string;
135937
- error?: string | null;
135938
- expires_at?: string | null;
135939
- id?: string;
135940
- ok: boolean;
135941
- };
135942
- Update: {
135943
- attempted_at?: string;
135944
- connection_id?: string;
135945
- error?: string | null;
135946
- expires_at?: string | null;
135947
- id?: string;
135948
- ok?: boolean;
135949
- };
135950
- Relationships: [{
135951
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
135952
- columns: ["connection_id"];
135953
- isOneToOne: false;
135954
- referencedRelation: "twinfield_connections";
135955
- referencedColumns: ["id"];
135956
- }];
135957
- };
135958
135727
  user_roles: {
135959
135728
  Row: {
135960
135729
  created_at: string;
@@ -138395,15 +138164,16 @@ export declare const upsertCrateType: import("@tanstack/start-client-core").Opti
138395
138164
  };
138396
138165
  Returns: undefined;
138397
138166
  };
138398
- twinfield_decrypt: {
138399
- Args: {
138400
- cipher: string;
138401
- };
138402
- Returns: string;
138403
- };
138404
- twinfield_encrypt: {
138167
+ twinfield_upsert_connection_by_account_key: {
138405
138168
  Args: {
138406
- plain: string;
138169
+ p_account_key: string;
138170
+ p_cluster_uri?: string;
138171
+ p_company_code?: string;
138172
+ p_company_name?: string;
138173
+ p_environment: string;
138174
+ p_office_code?: string;
138175
+ p_status?: string;
138176
+ p_user_id: string;
138407
138177
  };
138408
138178
  Returns: string;
138409
138179
  };
@@ -142973,6 +142743,27 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
142973
142743
  referencedColumns: ["id"];
142974
142744
  }];
142975
142745
  };
142746
+ floriday_continuous_stock_cache: {
142747
+ Row: {
142748
+ connection_id: string;
142749
+ fetched_at: string;
142750
+ number_of_pieces: number;
142751
+ trade_item_id: string;
142752
+ };
142753
+ Insert: {
142754
+ connection_id: string;
142755
+ fetched_at?: string;
142756
+ number_of_pieces?: number;
142757
+ trade_item_id: string;
142758
+ };
142759
+ Update: {
142760
+ connection_id?: string;
142761
+ fetched_at?: string;
142762
+ number_of_pieces?: number;
142763
+ trade_item_id?: string;
142764
+ };
142765
+ Relationships: [];
142766
+ };
142976
142767
  floriday_continuous_stock_queue: {
142977
142768
  Row: {
142978
142769
  attempts: number;
@@ -143951,6 +143742,45 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
143951
143742
  referencedColumns: ["id"];
143952
143743
  }];
143953
143744
  };
143745
+ floriday_trade_settings_customers_cache: {
143746
+ Row: {
143747
+ connection_id: string;
143748
+ data: import("../integrations/supabase/types").Json;
143749
+ fetched_at: string;
143750
+ floriday_id: string;
143751
+ id: string;
143752
+ is_deleted: boolean;
143753
+ sequence_number: number;
143754
+ updated_at: string;
143755
+ };
143756
+ Insert: {
143757
+ connection_id: string;
143758
+ data: import("../integrations/supabase/types").Json;
143759
+ fetched_at?: string;
143760
+ floriday_id: string;
143761
+ id?: string;
143762
+ is_deleted?: boolean;
143763
+ sequence_number?: number;
143764
+ updated_at?: string;
143765
+ };
143766
+ Update: {
143767
+ connection_id?: string;
143768
+ data?: import("../integrations/supabase/types").Json;
143769
+ fetched_at?: string;
143770
+ floriday_id?: string;
143771
+ id?: string;
143772
+ is_deleted?: boolean;
143773
+ sequence_number?: number;
143774
+ updated_at?: string;
143775
+ };
143776
+ Relationships: [{
143777
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
143778
+ columns: ["connection_id"];
143779
+ isOneToOne: false;
143780
+ referencedRelation: "floriday_connections";
143781
+ referencedColumns: ["id"];
143782
+ }];
143783
+ };
143954
143784
  floriday_trips_cache: {
143955
143785
  Row: {
143956
143786
  carrier_organization_id: string | null;
@@ -143999,6 +143829,27 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
143999
143829
  referencedColumns: ["id"];
144000
143830
  }];
144001
143831
  };
143832
+ floriday_vbn_required_characteristics: {
143833
+ Row: {
143834
+ required_codes: string[];
143835
+ updated_at: string;
143836
+ updated_by: string | null;
143837
+ vbn_code: string;
143838
+ };
143839
+ Insert: {
143840
+ required_codes?: string[];
143841
+ updated_at?: string;
143842
+ updated_by?: string | null;
143843
+ vbn_code: string;
143844
+ };
143845
+ Update: {
143846
+ required_codes?: string[];
143847
+ updated_at?: string;
143848
+ updated_by?: string | null;
143849
+ vbn_code?: string;
143850
+ };
143851
+ Relationships: [];
143852
+ };
144002
143853
  floriday_warehouses_cache: {
144003
143854
  Row: {
144004
143855
  connection_id: string;
@@ -148972,9 +148823,7 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
148972
148823
  };
148973
148824
  twinfield_connections: {
148974
148825
  Row: {
148975
- access_token: string | null;
148976
- client_id: string;
148977
- client_secret: string | null;
148826
+ account_key: string | null;
148978
148827
  cluster_uri: string | null;
148979
148828
  company_code: string | null;
148980
148829
  company_name: string | null;
@@ -148985,16 +148834,12 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
148985
148834
  is_active: boolean;
148986
148835
  label: string | null;
148987
148836
  office_code: string | null;
148988
- redirect_uri: string;
148989
- refresh_token: string | null;
148990
- token_expires_at: string | null;
148837
+ redirect_uri: string | null;
148991
148838
  updated_at: string;
148992
148839
  user_id: string;
148993
148840
  };
148994
148841
  Insert: {
148995
- access_token?: string | null;
148996
- client_id: string;
148997
- client_secret?: string | null;
148842
+ account_key?: string | null;
148998
148843
  cluster_uri?: string | null;
148999
148844
  company_code?: string | null;
149000
148845
  company_name?: string | null;
@@ -149005,16 +148850,12 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
149005
148850
  is_active?: boolean;
149006
148851
  label?: string | null;
149007
148852
  office_code?: string | null;
149008
- redirect_uri: string;
149009
- refresh_token?: string | null;
149010
- token_expires_at?: string | null;
148853
+ redirect_uri?: string | null;
149011
148854
  updated_at?: string;
149012
148855
  user_id: string;
149013
148856
  };
149014
148857
  Update: {
149015
- access_token?: string | null;
149016
- client_id?: string;
149017
- client_secret?: string | null;
148858
+ account_key?: string | null;
149018
148859
  cluster_uri?: string | null;
149019
148860
  company_code?: string | null;
149020
148861
  company_name?: string | null;
@@ -149025,54 +148866,7 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
149025
148866
  is_active?: boolean;
149026
148867
  label?: string | null;
149027
148868
  office_code?: string | null;
149028
- redirect_uri?: string;
149029
- refresh_token?: string | null;
149030
- token_expires_at?: string | null;
149031
- updated_at?: string;
149032
- user_id?: string;
149033
- };
149034
- Relationships: [];
149035
- };
149036
- twinfield_credentials: {
149037
- Row: {
149038
- administration_code: string | null;
149039
- client_id: string | null;
149040
- client_secret: string | null;
149041
- cluster: string | null;
149042
- connected_at: string | null;
149043
- created_at: string;
149044
- environment: string | null;
149045
- id: string;
149046
- redirect_uri: string | null;
149047
- refresh_token: string | null;
149048
- updated_at: string;
149049
- user_id: string;
149050
- };
149051
- Insert: {
149052
- administration_code?: string | null;
149053
- client_id?: string | null;
149054
- client_secret?: string | null;
149055
- cluster?: string | null;
149056
- connected_at?: string | null;
149057
- created_at?: string;
149058
- environment?: string | null;
149059
- id?: string;
149060
- redirect_uri?: string | null;
149061
- refresh_token?: string | null;
149062
- updated_at?: string;
149063
- user_id: string;
149064
- };
149065
- Update: {
149066
- administration_code?: string | null;
149067
- client_id?: string | null;
149068
- client_secret?: string | null;
149069
- cluster?: string | null;
149070
- connected_at?: string | null;
149071
- created_at?: string;
149072
- environment?: string | null;
149073
- id?: string;
149074
148869
  redirect_uri?: string | null;
149075
- refresh_token?: string | null;
149076
148870
  updated_at?: string;
149077
148871
  user_id?: string;
149078
148872
  };
@@ -149519,12 +149313,15 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
149519
149313
  currency: string | null;
149520
149314
  customer_code: string | null;
149521
149315
  data: import("../integrations/supabase/types").Json;
149316
+ deleted_at: string | null;
149522
149317
  due_date: string | null;
149523
149318
  fetched_at: string;
149524
149319
  invoice_date: string | null;
149525
149320
  invoice_number: string;
149321
+ lines_fetched_at: string | null;
149526
149322
  modified_at: string | null;
149527
149323
  outstanding_amount: number | null;
149324
+ paid_at: string | null;
149528
149325
  status: string | null;
149529
149326
  status_label: string | null;
149530
149327
  total_excl: number | null;
@@ -149536,12 +149333,15 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
149536
149333
  currency?: string | null;
149537
149334
  customer_code?: string | null;
149538
149335
  data?: import("../integrations/supabase/types").Json;
149336
+ deleted_at?: string | null;
149539
149337
  due_date?: string | null;
149540
149338
  fetched_at?: string;
149541
149339
  invoice_date?: string | null;
149542
149340
  invoice_number: string;
149341
+ lines_fetched_at?: string | null;
149543
149342
  modified_at?: string | null;
149544
149343
  outstanding_amount?: number | null;
149344
+ paid_at?: string | null;
149545
149345
  status?: string | null;
149546
149346
  status_label?: string | null;
149547
149347
  total_excl?: number | null;
@@ -149553,12 +149353,15 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
149553
149353
  currency?: string | null;
149554
149354
  customer_code?: string | null;
149555
149355
  data?: import("../integrations/supabase/types").Json;
149356
+ deleted_at?: string | null;
149556
149357
  due_date?: string | null;
149557
149358
  fetched_at?: string;
149558
149359
  invoice_date?: string | null;
149559
149360
  invoice_number?: string;
149361
+ lines_fetched_at?: string | null;
149560
149362
  modified_at?: string | null;
149561
149363
  outstanding_amount?: number | null;
149364
+ paid_at?: string | null;
149562
149365
  status?: string | null;
149563
149366
  status_label?: string | null;
149564
149367
  total_excl?: number | null;
@@ -149573,30 +149376,6 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
149573
149376
  referencedColumns: ["id"];
149574
149377
  }];
149575
149378
  };
149576
- twinfield_oauth_state: {
149577
- Row: {
149578
- created_at: string;
149579
- environment: string;
149580
- nonce: string | null;
149581
- state: string;
149582
- user_id: string;
149583
- };
149584
- Insert: {
149585
- created_at?: string;
149586
- environment: string;
149587
- nonce?: string | null;
149588
- state: string;
149589
- user_id: string;
149590
- };
149591
- Update: {
149592
- created_at?: string;
149593
- environment?: string;
149594
- nonce?: string | null;
149595
- state?: string;
149596
- user_id?: string;
149597
- };
149598
- Relationships: [];
149599
- };
149600
149379
  twinfield_push_queue: {
149601
149380
  Row: {
149602
149381
  action: string;
@@ -149762,39 +149541,6 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
149762
149541
  referencedColumns: ["id"];
149763
149542
  }];
149764
149543
  };
149765
- twinfield_token_refresh_log: {
149766
- Row: {
149767
- attempted_at: string;
149768
- connection_id: string;
149769
- error: string | null;
149770
- expires_at: string | null;
149771
- id: string;
149772
- ok: boolean;
149773
- };
149774
- Insert: {
149775
- attempted_at?: string;
149776
- connection_id: string;
149777
- error?: string | null;
149778
- expires_at?: string | null;
149779
- id?: string;
149780
- ok: boolean;
149781
- };
149782
- Update: {
149783
- attempted_at?: string;
149784
- connection_id?: string;
149785
- error?: string | null;
149786
- expires_at?: string | null;
149787
- id?: string;
149788
- ok?: boolean;
149789
- };
149790
- Relationships: [{
149791
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
149792
- columns: ["connection_id"];
149793
- isOneToOne: false;
149794
- referencedRelation: "twinfield_connections";
149795
- referencedColumns: ["id"];
149796
- }];
149797
- };
149798
149544
  user_roles: {
149799
149545
  Row: {
149800
149546
  created_at: string;
@@ -152235,15 +151981,16 @@ export declare const deleteCrateType: import("@tanstack/start-client-core").Opti
152235
151981
  };
152236
151982
  Returns: undefined;
152237
151983
  };
152238
- twinfield_decrypt: {
151984
+ twinfield_upsert_connection_by_account_key: {
152239
151985
  Args: {
152240
- cipher: string;
152241
- };
152242
- Returns: string;
152243
- };
152244
- twinfield_encrypt: {
152245
- Args: {
152246
- plain: string;
151986
+ p_account_key: string;
151987
+ p_cluster_uri?: string;
151988
+ p_company_code?: string;
151989
+ p_company_name?: string;
151990
+ p_environment: string;
151991
+ p_office_code?: string;
151992
+ p_status?: string;
151993
+ p_user_id: string;
152247
151994
  };
152248
151995
  Returns: string;
152249
151996
  };