@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
@@ -4528,6 +4528,27 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
4528
4528
  referencedColumns: ["id"];
4529
4529
  }];
4530
4530
  };
4531
+ floriday_continuous_stock_cache: {
4532
+ Row: {
4533
+ connection_id: string;
4534
+ fetched_at: string;
4535
+ number_of_pieces: number;
4536
+ trade_item_id: string;
4537
+ };
4538
+ Insert: {
4539
+ connection_id: string;
4540
+ fetched_at?: string;
4541
+ number_of_pieces?: number;
4542
+ trade_item_id: string;
4543
+ };
4544
+ Update: {
4545
+ connection_id?: string;
4546
+ fetched_at?: string;
4547
+ number_of_pieces?: number;
4548
+ trade_item_id?: string;
4549
+ };
4550
+ Relationships: [];
4551
+ };
4531
4552
  floriday_continuous_stock_queue: {
4532
4553
  Row: {
4533
4554
  attempts: number;
@@ -5506,6 +5527,45 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
5506
5527
  referencedColumns: ["id"];
5507
5528
  }];
5508
5529
  };
5530
+ floriday_trade_settings_customers_cache: {
5531
+ Row: {
5532
+ connection_id: string;
5533
+ data: import("../integrations/supabase/types").Json;
5534
+ fetched_at: string;
5535
+ floriday_id: string;
5536
+ id: string;
5537
+ is_deleted: boolean;
5538
+ sequence_number: number;
5539
+ updated_at: string;
5540
+ };
5541
+ Insert: {
5542
+ connection_id: string;
5543
+ data: import("../integrations/supabase/types").Json;
5544
+ fetched_at?: string;
5545
+ floriday_id: string;
5546
+ id?: string;
5547
+ is_deleted?: boolean;
5548
+ sequence_number?: number;
5549
+ updated_at?: string;
5550
+ };
5551
+ Update: {
5552
+ connection_id?: string;
5553
+ data?: import("../integrations/supabase/types").Json;
5554
+ fetched_at?: string;
5555
+ floriday_id?: string;
5556
+ id?: string;
5557
+ is_deleted?: boolean;
5558
+ sequence_number?: number;
5559
+ updated_at?: string;
5560
+ };
5561
+ Relationships: [{
5562
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5563
+ columns: ["connection_id"];
5564
+ isOneToOne: false;
5565
+ referencedRelation: "floriday_connections";
5566
+ referencedColumns: ["id"];
5567
+ }];
5568
+ };
5509
5569
  floriday_trips_cache: {
5510
5570
  Row: {
5511
5571
  carrier_organization_id: string | null;
@@ -5554,6 +5614,27 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
5554
5614
  referencedColumns: ["id"];
5555
5615
  }];
5556
5616
  };
5617
+ floriday_vbn_required_characteristics: {
5618
+ Row: {
5619
+ required_codes: string[];
5620
+ updated_at: string;
5621
+ updated_by: string | null;
5622
+ vbn_code: string;
5623
+ };
5624
+ Insert: {
5625
+ required_codes?: string[];
5626
+ updated_at?: string;
5627
+ updated_by?: string | null;
5628
+ vbn_code: string;
5629
+ };
5630
+ Update: {
5631
+ required_codes?: string[];
5632
+ updated_at?: string;
5633
+ updated_by?: string | null;
5634
+ vbn_code?: string;
5635
+ };
5636
+ Relationships: [];
5637
+ };
5557
5638
  floriday_warehouses_cache: {
5558
5639
  Row: {
5559
5640
  connection_id: string;
@@ -10527,9 +10608,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
10527
10608
  };
10528
10609
  twinfield_connections: {
10529
10610
  Row: {
10530
- access_token: string | null;
10531
- client_id: string;
10532
- client_secret: string | null;
10611
+ account_key: string | null;
10533
10612
  cluster_uri: string | null;
10534
10613
  company_code: string | null;
10535
10614
  company_name: string | null;
@@ -10540,16 +10619,12 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
10540
10619
  is_active: boolean;
10541
10620
  label: string | null;
10542
10621
  office_code: string | null;
10543
- redirect_uri: string;
10544
- refresh_token: string | null;
10545
- token_expires_at: string | null;
10622
+ redirect_uri: string | null;
10546
10623
  updated_at: string;
10547
10624
  user_id: string;
10548
10625
  };
10549
10626
  Insert: {
10550
- access_token?: string | null;
10551
- client_id: string;
10552
- client_secret?: string | null;
10627
+ account_key?: string | null;
10553
10628
  cluster_uri?: string | null;
10554
10629
  company_code?: string | null;
10555
10630
  company_name?: string | null;
@@ -10560,16 +10635,12 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
10560
10635
  is_active?: boolean;
10561
10636
  label?: string | null;
10562
10637
  office_code?: string | null;
10563
- redirect_uri: string;
10564
- refresh_token?: string | null;
10565
- token_expires_at?: string | null;
10638
+ redirect_uri?: string | null;
10566
10639
  updated_at?: string;
10567
10640
  user_id: string;
10568
10641
  };
10569
10642
  Update: {
10570
- access_token?: string | null;
10571
- client_id?: string;
10572
- client_secret?: string | null;
10643
+ account_key?: string | null;
10573
10644
  cluster_uri?: string | null;
10574
10645
  company_code?: string | null;
10575
10646
  company_name?: string | null;
@@ -10580,54 +10651,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
10580
10651
  is_active?: boolean;
10581
10652
  label?: string | null;
10582
10653
  office_code?: string | null;
10583
- redirect_uri?: string;
10584
- refresh_token?: string | null;
10585
- token_expires_at?: string | null;
10586
- updated_at?: string;
10587
- user_id?: string;
10588
- };
10589
- Relationships: [];
10590
- };
10591
- twinfield_credentials: {
10592
- Row: {
10593
- administration_code: string | null;
10594
- client_id: string | null;
10595
- client_secret: string | null;
10596
- cluster: string | null;
10597
- connected_at: string | null;
10598
- created_at: string;
10599
- environment: string | null;
10600
- id: string;
10601
- redirect_uri: string | null;
10602
- refresh_token: string | null;
10603
- updated_at: string;
10604
- user_id: string;
10605
- };
10606
- Insert: {
10607
- administration_code?: string | null;
10608
- client_id?: string | null;
10609
- client_secret?: string | null;
10610
- cluster?: string | null;
10611
- connected_at?: string | null;
10612
- created_at?: string;
10613
- environment?: string | null;
10614
- id?: string;
10615
- redirect_uri?: string | null;
10616
- refresh_token?: string | null;
10617
- updated_at?: string;
10618
- user_id: string;
10619
- };
10620
- Update: {
10621
- administration_code?: string | null;
10622
- client_id?: string | null;
10623
- client_secret?: string | null;
10624
- cluster?: string | null;
10625
- connected_at?: string | null;
10626
- created_at?: string;
10627
- environment?: string | null;
10628
- id?: string;
10629
10654
  redirect_uri?: string | null;
10630
- refresh_token?: string | null;
10631
10655
  updated_at?: string;
10632
10656
  user_id?: string;
10633
10657
  };
@@ -11074,12 +11098,15 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
11074
11098
  currency: string | null;
11075
11099
  customer_code: string | null;
11076
11100
  data: import("../integrations/supabase/types").Json;
11101
+ deleted_at: string | null;
11077
11102
  due_date: string | null;
11078
11103
  fetched_at: string;
11079
11104
  invoice_date: string | null;
11080
11105
  invoice_number: string;
11106
+ lines_fetched_at: string | null;
11081
11107
  modified_at: string | null;
11082
11108
  outstanding_amount: number | null;
11109
+ paid_at: string | null;
11083
11110
  status: string | null;
11084
11111
  status_label: string | null;
11085
11112
  total_excl: number | null;
@@ -11091,12 +11118,15 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
11091
11118
  currency?: string | null;
11092
11119
  customer_code?: string | null;
11093
11120
  data?: import("../integrations/supabase/types").Json;
11121
+ deleted_at?: string | null;
11094
11122
  due_date?: string | null;
11095
11123
  fetched_at?: string;
11096
11124
  invoice_date?: string | null;
11097
11125
  invoice_number: string;
11126
+ lines_fetched_at?: string | null;
11098
11127
  modified_at?: string | null;
11099
11128
  outstanding_amount?: number | null;
11129
+ paid_at?: string | null;
11100
11130
  status?: string | null;
11101
11131
  status_label?: string | null;
11102
11132
  total_excl?: number | null;
@@ -11108,12 +11138,15 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
11108
11138
  currency?: string | null;
11109
11139
  customer_code?: string | null;
11110
11140
  data?: import("../integrations/supabase/types").Json;
11141
+ deleted_at?: string | null;
11111
11142
  due_date?: string | null;
11112
11143
  fetched_at?: string;
11113
11144
  invoice_date?: string | null;
11114
11145
  invoice_number?: string;
11146
+ lines_fetched_at?: string | null;
11115
11147
  modified_at?: string | null;
11116
11148
  outstanding_amount?: number | null;
11149
+ paid_at?: string | null;
11117
11150
  status?: string | null;
11118
11151
  status_label?: string | null;
11119
11152
  total_excl?: number | null;
@@ -11128,30 +11161,6 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
11128
11161
  referencedColumns: ["id"];
11129
11162
  }];
11130
11163
  };
11131
- twinfield_oauth_state: {
11132
- Row: {
11133
- created_at: string;
11134
- environment: string;
11135
- nonce: string | null;
11136
- state: string;
11137
- user_id: string;
11138
- };
11139
- Insert: {
11140
- created_at?: string;
11141
- environment: string;
11142
- nonce?: string | null;
11143
- state: string;
11144
- user_id: string;
11145
- };
11146
- Update: {
11147
- created_at?: string;
11148
- environment?: string;
11149
- nonce?: string | null;
11150
- state?: string;
11151
- user_id?: string;
11152
- };
11153
- Relationships: [];
11154
- };
11155
11164
  twinfield_push_queue: {
11156
11165
  Row: {
11157
11166
  action: string;
@@ -11317,39 +11326,6 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
11317
11326
  referencedColumns: ["id"];
11318
11327
  }];
11319
11328
  };
11320
- twinfield_token_refresh_log: {
11321
- Row: {
11322
- attempted_at: string;
11323
- connection_id: string;
11324
- error: string | null;
11325
- expires_at: string | null;
11326
- id: string;
11327
- ok: boolean;
11328
- };
11329
- Insert: {
11330
- attempted_at?: string;
11331
- connection_id: string;
11332
- error?: string | null;
11333
- expires_at?: string | null;
11334
- id?: string;
11335
- ok: boolean;
11336
- };
11337
- Update: {
11338
- attempted_at?: string;
11339
- connection_id?: string;
11340
- error?: string | null;
11341
- expires_at?: string | null;
11342
- id?: string;
11343
- ok?: boolean;
11344
- };
11345
- Relationships: [{
11346
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11347
- columns: ["connection_id"];
11348
- isOneToOne: false;
11349
- referencedRelation: "twinfield_connections";
11350
- referencedColumns: ["id"];
11351
- }];
11352
- };
11353
11329
  user_roles: {
11354
11330
  Row: {
11355
11331
  created_at: string;
@@ -13790,15 +13766,16 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
13790
13766
  };
13791
13767
  Returns: undefined;
13792
13768
  };
13793
- twinfield_decrypt: {
13794
- Args: {
13795
- cipher: string;
13796
- };
13797
- Returns: string;
13798
- };
13799
- twinfield_encrypt: {
13769
+ twinfield_upsert_connection_by_account_key: {
13800
13770
  Args: {
13801
- plain: string;
13771
+ p_account_key: string;
13772
+ p_cluster_uri?: string;
13773
+ p_company_code?: string;
13774
+ p_company_name?: string;
13775
+ p_environment: string;
13776
+ p_office_code?: string;
13777
+ p_status?: string;
13778
+ p_user_id: string;
13802
13779
  };
13803
13780
  Returns: string;
13804
13781
  };
@@ -18394,6 +18371,27 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
18394
18371
  referencedColumns: ["id"];
18395
18372
  }];
18396
18373
  };
18374
+ floriday_continuous_stock_cache: {
18375
+ Row: {
18376
+ connection_id: string;
18377
+ fetched_at: string;
18378
+ number_of_pieces: number;
18379
+ trade_item_id: string;
18380
+ };
18381
+ Insert: {
18382
+ connection_id: string;
18383
+ fetched_at?: string;
18384
+ number_of_pieces?: number;
18385
+ trade_item_id: string;
18386
+ };
18387
+ Update: {
18388
+ connection_id?: string;
18389
+ fetched_at?: string;
18390
+ number_of_pieces?: number;
18391
+ trade_item_id?: string;
18392
+ };
18393
+ Relationships: [];
18394
+ };
18397
18395
  floriday_continuous_stock_queue: {
18398
18396
  Row: {
18399
18397
  attempts: number;
@@ -19372,6 +19370,45 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
19372
19370
  referencedColumns: ["id"];
19373
19371
  }];
19374
19372
  };
19373
+ floriday_trade_settings_customers_cache: {
19374
+ Row: {
19375
+ connection_id: string;
19376
+ data: import("../integrations/supabase/types").Json;
19377
+ fetched_at: string;
19378
+ floriday_id: string;
19379
+ id: string;
19380
+ is_deleted: boolean;
19381
+ sequence_number: number;
19382
+ updated_at: string;
19383
+ };
19384
+ Insert: {
19385
+ connection_id: string;
19386
+ data: import("../integrations/supabase/types").Json;
19387
+ fetched_at?: string;
19388
+ floriday_id: string;
19389
+ id?: string;
19390
+ is_deleted?: boolean;
19391
+ sequence_number?: number;
19392
+ updated_at?: string;
19393
+ };
19394
+ Update: {
19395
+ connection_id?: string;
19396
+ data?: import("../integrations/supabase/types").Json;
19397
+ fetched_at?: string;
19398
+ floriday_id?: string;
19399
+ id?: string;
19400
+ is_deleted?: boolean;
19401
+ sequence_number?: number;
19402
+ updated_at?: string;
19403
+ };
19404
+ Relationships: [{
19405
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19406
+ columns: ["connection_id"];
19407
+ isOneToOne: false;
19408
+ referencedRelation: "floriday_connections";
19409
+ referencedColumns: ["id"];
19410
+ }];
19411
+ };
19375
19412
  floriday_trips_cache: {
19376
19413
  Row: {
19377
19414
  carrier_organization_id: string | null;
@@ -19420,6 +19457,27 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
19420
19457
  referencedColumns: ["id"];
19421
19458
  }];
19422
19459
  };
19460
+ floriday_vbn_required_characteristics: {
19461
+ Row: {
19462
+ required_codes: string[];
19463
+ updated_at: string;
19464
+ updated_by: string | null;
19465
+ vbn_code: string;
19466
+ };
19467
+ Insert: {
19468
+ required_codes?: string[];
19469
+ updated_at?: string;
19470
+ updated_by?: string | null;
19471
+ vbn_code: string;
19472
+ };
19473
+ Update: {
19474
+ required_codes?: string[];
19475
+ updated_at?: string;
19476
+ updated_by?: string | null;
19477
+ vbn_code?: string;
19478
+ };
19479
+ Relationships: [];
19480
+ };
19423
19481
  floriday_warehouses_cache: {
19424
19482
  Row: {
19425
19483
  connection_id: string;
@@ -24393,9 +24451,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
24393
24451
  };
24394
24452
  twinfield_connections: {
24395
24453
  Row: {
24396
- access_token: string | null;
24397
- client_id: string;
24398
- client_secret: string | null;
24454
+ account_key: string | null;
24399
24455
  cluster_uri: string | null;
24400
24456
  company_code: string | null;
24401
24457
  company_name: string | null;
@@ -24406,16 +24462,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
24406
24462
  is_active: boolean;
24407
24463
  label: string | null;
24408
24464
  office_code: string | null;
24409
- redirect_uri: string;
24410
- refresh_token: string | null;
24411
- token_expires_at: string | null;
24465
+ redirect_uri: string | null;
24412
24466
  updated_at: string;
24413
24467
  user_id: string;
24414
24468
  };
24415
24469
  Insert: {
24416
- access_token?: string | null;
24417
- client_id: string;
24418
- client_secret?: string | null;
24470
+ account_key?: string | null;
24419
24471
  cluster_uri?: string | null;
24420
24472
  company_code?: string | null;
24421
24473
  company_name?: string | null;
@@ -24426,16 +24478,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
24426
24478
  is_active?: boolean;
24427
24479
  label?: string | null;
24428
24480
  office_code?: string | null;
24429
- redirect_uri: string;
24430
- refresh_token?: string | null;
24431
- token_expires_at?: string | null;
24481
+ redirect_uri?: string | null;
24432
24482
  updated_at?: string;
24433
24483
  user_id: string;
24434
24484
  };
24435
24485
  Update: {
24436
- access_token?: string | null;
24437
- client_id?: string;
24438
- client_secret?: string | null;
24486
+ account_key?: string | null;
24439
24487
  cluster_uri?: string | null;
24440
24488
  company_code?: string | null;
24441
24489
  company_name?: string | null;
@@ -24446,54 +24494,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
24446
24494
  is_active?: boolean;
24447
24495
  label?: string | null;
24448
24496
  office_code?: string | null;
24449
- redirect_uri?: string;
24450
- refresh_token?: string | null;
24451
- token_expires_at?: string | null;
24452
- updated_at?: string;
24453
- user_id?: string;
24454
- };
24455
- Relationships: [];
24456
- };
24457
- twinfield_credentials: {
24458
- Row: {
24459
- administration_code: string | null;
24460
- client_id: string | null;
24461
- client_secret: string | null;
24462
- cluster: string | null;
24463
- connected_at: string | null;
24464
- created_at: string;
24465
- environment: string | null;
24466
- id: string;
24467
- redirect_uri: string | null;
24468
- refresh_token: string | null;
24469
- updated_at: string;
24470
- user_id: string;
24471
- };
24472
- Insert: {
24473
- administration_code?: string | null;
24474
- client_id?: string | null;
24475
- client_secret?: string | null;
24476
- cluster?: string | null;
24477
- connected_at?: string | null;
24478
- created_at?: string;
24479
- environment?: string | null;
24480
- id?: string;
24481
- redirect_uri?: string | null;
24482
- refresh_token?: string | null;
24483
- updated_at?: string;
24484
- user_id: string;
24485
- };
24486
- Update: {
24487
- administration_code?: string | null;
24488
- client_id?: string | null;
24489
- client_secret?: string | null;
24490
- cluster?: string | null;
24491
- connected_at?: string | null;
24492
- created_at?: string;
24493
- environment?: string | null;
24494
- id?: string;
24495
24497
  redirect_uri?: string | null;
24496
- refresh_token?: string | null;
24497
24498
  updated_at?: string;
24498
24499
  user_id?: string;
24499
24500
  };
@@ -24940,12 +24941,15 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
24940
24941
  currency: string | null;
24941
24942
  customer_code: string | null;
24942
24943
  data: import("../integrations/supabase/types").Json;
24944
+ deleted_at: string | null;
24943
24945
  due_date: string | null;
24944
24946
  fetched_at: string;
24945
24947
  invoice_date: string | null;
24946
24948
  invoice_number: string;
24949
+ lines_fetched_at: string | null;
24947
24950
  modified_at: string | null;
24948
24951
  outstanding_amount: number | null;
24952
+ paid_at: string | null;
24949
24953
  status: string | null;
24950
24954
  status_label: string | null;
24951
24955
  total_excl: number | null;
@@ -24957,12 +24961,15 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
24957
24961
  currency?: string | null;
24958
24962
  customer_code?: string | null;
24959
24963
  data?: import("../integrations/supabase/types").Json;
24964
+ deleted_at?: string | null;
24960
24965
  due_date?: string | null;
24961
24966
  fetched_at?: string;
24962
24967
  invoice_date?: string | null;
24963
24968
  invoice_number: string;
24969
+ lines_fetched_at?: string | null;
24964
24970
  modified_at?: string | null;
24965
24971
  outstanding_amount?: number | null;
24972
+ paid_at?: string | null;
24966
24973
  status?: string | null;
24967
24974
  status_label?: string | null;
24968
24975
  total_excl?: number | null;
@@ -24974,12 +24981,15 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
24974
24981
  currency?: string | null;
24975
24982
  customer_code?: string | null;
24976
24983
  data?: import("../integrations/supabase/types").Json;
24984
+ deleted_at?: string | null;
24977
24985
  due_date?: string | null;
24978
24986
  fetched_at?: string;
24979
24987
  invoice_date?: string | null;
24980
24988
  invoice_number?: string;
24989
+ lines_fetched_at?: string | null;
24981
24990
  modified_at?: string | null;
24982
24991
  outstanding_amount?: number | null;
24992
+ paid_at?: string | null;
24983
24993
  status?: string | null;
24984
24994
  status_label?: string | null;
24985
24995
  total_excl?: number | null;
@@ -24994,30 +25004,6 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
24994
25004
  referencedColumns: ["id"];
24995
25005
  }];
24996
25006
  };
24997
- twinfield_oauth_state: {
24998
- Row: {
24999
- created_at: string;
25000
- environment: string;
25001
- nonce: string | null;
25002
- state: string;
25003
- user_id: string;
25004
- };
25005
- Insert: {
25006
- created_at?: string;
25007
- environment: string;
25008
- nonce?: string | null;
25009
- state: string;
25010
- user_id: string;
25011
- };
25012
- Update: {
25013
- created_at?: string;
25014
- environment?: string;
25015
- nonce?: string | null;
25016
- state?: string;
25017
- user_id?: string;
25018
- };
25019
- Relationships: [];
25020
- };
25021
25007
  twinfield_push_queue: {
25022
25008
  Row: {
25023
25009
  action: string;
@@ -25183,39 +25169,6 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
25183
25169
  referencedColumns: ["id"];
25184
25170
  }];
25185
25171
  };
25186
- twinfield_token_refresh_log: {
25187
- Row: {
25188
- attempted_at: string;
25189
- connection_id: string;
25190
- error: string | null;
25191
- expires_at: string | null;
25192
- id: string;
25193
- ok: boolean;
25194
- };
25195
- Insert: {
25196
- attempted_at?: string;
25197
- connection_id: string;
25198
- error?: string | null;
25199
- expires_at?: string | null;
25200
- id?: string;
25201
- ok: boolean;
25202
- };
25203
- Update: {
25204
- attempted_at?: string;
25205
- connection_id?: string;
25206
- error?: string | null;
25207
- expires_at?: string | null;
25208
- id?: string;
25209
- ok?: boolean;
25210
- };
25211
- Relationships: [{
25212
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25213
- columns: ["connection_id"];
25214
- isOneToOne: false;
25215
- referencedRelation: "twinfield_connections";
25216
- referencedColumns: ["id"];
25217
- }];
25218
- };
25219
25172
  user_roles: {
25220
25173
  Row: {
25221
25174
  created_at: string;
@@ -27656,15 +27609,16 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
27656
27609
  };
27657
27610
  Returns: undefined;
27658
27611
  };
27659
- twinfield_decrypt: {
27660
- Args: {
27661
- cipher: string;
27662
- };
27663
- Returns: string;
27664
- };
27665
- twinfield_encrypt: {
27612
+ twinfield_upsert_connection_by_account_key: {
27666
27613
  Args: {
27667
- plain: string;
27614
+ p_account_key: string;
27615
+ p_cluster_uri?: string;
27616
+ p_company_code?: string;
27617
+ p_company_name?: string;
27618
+ p_environment: string;
27619
+ p_office_code?: string;
27620
+ p_status?: string;
27621
+ p_user_id: string;
27668
27622
  };
27669
27623
  Returns: string;
27670
27624
  };
@@ -32241,6 +32195,27 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
32241
32195
  referencedColumns: ["id"];
32242
32196
  }];
32243
32197
  };
32198
+ floriday_continuous_stock_cache: {
32199
+ Row: {
32200
+ connection_id: string;
32201
+ fetched_at: string;
32202
+ number_of_pieces: number;
32203
+ trade_item_id: string;
32204
+ };
32205
+ Insert: {
32206
+ connection_id: string;
32207
+ fetched_at?: string;
32208
+ number_of_pieces?: number;
32209
+ trade_item_id: string;
32210
+ };
32211
+ Update: {
32212
+ connection_id?: string;
32213
+ fetched_at?: string;
32214
+ number_of_pieces?: number;
32215
+ trade_item_id?: string;
32216
+ };
32217
+ Relationships: [];
32218
+ };
32244
32219
  floriday_continuous_stock_queue: {
32245
32220
  Row: {
32246
32221
  attempts: number;
@@ -33219,6 +33194,45 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
33219
33194
  referencedColumns: ["id"];
33220
33195
  }];
33221
33196
  };
33197
+ floriday_trade_settings_customers_cache: {
33198
+ Row: {
33199
+ connection_id: string;
33200
+ data: import("../integrations/supabase/types").Json;
33201
+ fetched_at: string;
33202
+ floriday_id: string;
33203
+ id: string;
33204
+ is_deleted: boolean;
33205
+ sequence_number: number;
33206
+ updated_at: string;
33207
+ };
33208
+ Insert: {
33209
+ connection_id: string;
33210
+ data: import("../integrations/supabase/types").Json;
33211
+ fetched_at?: string;
33212
+ floriday_id: string;
33213
+ id?: string;
33214
+ is_deleted?: boolean;
33215
+ sequence_number?: number;
33216
+ updated_at?: string;
33217
+ };
33218
+ Update: {
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
+ Relationships: [{
33229
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33230
+ columns: ["connection_id"];
33231
+ isOneToOne: false;
33232
+ referencedRelation: "floriday_connections";
33233
+ referencedColumns: ["id"];
33234
+ }];
33235
+ };
33222
33236
  floriday_trips_cache: {
33223
33237
  Row: {
33224
33238
  carrier_organization_id: string | null;
@@ -33267,6 +33281,27 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
33267
33281
  referencedColumns: ["id"];
33268
33282
  }];
33269
33283
  };
33284
+ floriday_vbn_required_characteristics: {
33285
+ Row: {
33286
+ required_codes: string[];
33287
+ updated_at: string;
33288
+ updated_by: string | null;
33289
+ vbn_code: string;
33290
+ };
33291
+ Insert: {
33292
+ required_codes?: string[];
33293
+ updated_at?: string;
33294
+ updated_by?: string | null;
33295
+ vbn_code: string;
33296
+ };
33297
+ Update: {
33298
+ required_codes?: string[];
33299
+ updated_at?: string;
33300
+ updated_by?: string | null;
33301
+ vbn_code?: string;
33302
+ };
33303
+ Relationships: [];
33304
+ };
33270
33305
  floriday_warehouses_cache: {
33271
33306
  Row: {
33272
33307
  connection_id: string;
@@ -38240,9 +38275,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
38240
38275
  };
38241
38276
  twinfield_connections: {
38242
38277
  Row: {
38243
- access_token: string | null;
38244
- client_id: string;
38245
- client_secret: string | null;
38278
+ account_key: string | null;
38246
38279
  cluster_uri: string | null;
38247
38280
  company_code: string | null;
38248
38281
  company_name: string | null;
@@ -38253,16 +38286,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
38253
38286
  is_active: boolean;
38254
38287
  label: string | null;
38255
38288
  office_code: string | null;
38256
- redirect_uri: string;
38257
- refresh_token: string | null;
38258
- token_expires_at: string | null;
38289
+ redirect_uri: string | null;
38259
38290
  updated_at: string;
38260
38291
  user_id: string;
38261
38292
  };
38262
38293
  Insert: {
38263
- access_token?: string | null;
38264
- client_id: string;
38265
- client_secret?: string | null;
38294
+ account_key?: string | null;
38266
38295
  cluster_uri?: string | null;
38267
38296
  company_code?: string | null;
38268
38297
  company_name?: string | null;
@@ -38273,16 +38302,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
38273
38302
  is_active?: boolean;
38274
38303
  label?: string | null;
38275
38304
  office_code?: string | null;
38276
- redirect_uri: string;
38277
- refresh_token?: string | null;
38278
- token_expires_at?: string | null;
38305
+ redirect_uri?: string | null;
38279
38306
  updated_at?: string;
38280
38307
  user_id: string;
38281
38308
  };
38282
38309
  Update: {
38283
- access_token?: string | null;
38284
- client_id?: string;
38285
- client_secret?: string | null;
38310
+ account_key?: string | null;
38286
38311
  cluster_uri?: string | null;
38287
38312
  company_code?: string | null;
38288
38313
  company_name?: string | null;
@@ -38293,54 +38318,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
38293
38318
  is_active?: boolean;
38294
38319
  label?: string | null;
38295
38320
  office_code?: string | null;
38296
- redirect_uri?: string;
38297
- refresh_token?: string | null;
38298
- token_expires_at?: string | null;
38299
- updated_at?: string;
38300
- user_id?: string;
38301
- };
38302
- Relationships: [];
38303
- };
38304
- twinfield_credentials: {
38305
- Row: {
38306
- administration_code: string | null;
38307
- client_id: string | null;
38308
- client_secret: string | null;
38309
- cluster: string | null;
38310
- connected_at: string | null;
38311
- created_at: string;
38312
- environment: string | null;
38313
- id: string;
38314
- redirect_uri: string | null;
38315
- refresh_token: string | null;
38316
- updated_at: string;
38317
- user_id: string;
38318
- };
38319
- Insert: {
38320
- administration_code?: string | null;
38321
- client_id?: string | null;
38322
- client_secret?: string | null;
38323
- cluster?: string | null;
38324
- connected_at?: string | null;
38325
- created_at?: string;
38326
- environment?: string | null;
38327
- id?: string;
38328
38321
  redirect_uri?: string | null;
38329
- refresh_token?: string | null;
38330
- updated_at?: string;
38331
- user_id: string;
38332
- };
38333
- Update: {
38334
- administration_code?: string | null;
38335
- client_id?: string | null;
38336
- client_secret?: string | null;
38337
- cluster?: string | null;
38338
- connected_at?: string | null;
38339
- created_at?: string;
38340
- environment?: string | null;
38341
- id?: string;
38342
- redirect_uri?: string | null;
38343
- refresh_token?: string | null;
38344
38322
  updated_at?: string;
38345
38323
  user_id?: string;
38346
38324
  };
@@ -38787,12 +38765,15 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
38787
38765
  currency: string | null;
38788
38766
  customer_code: string | null;
38789
38767
  data: import("../integrations/supabase/types").Json;
38768
+ deleted_at: string | null;
38790
38769
  due_date: string | null;
38791
38770
  fetched_at: string;
38792
38771
  invoice_date: string | null;
38793
38772
  invoice_number: string;
38773
+ lines_fetched_at: string | null;
38794
38774
  modified_at: string | null;
38795
38775
  outstanding_amount: number | null;
38776
+ paid_at: string | null;
38796
38777
  status: string | null;
38797
38778
  status_label: string | null;
38798
38779
  total_excl: number | null;
@@ -38804,12 +38785,15 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
38804
38785
  currency?: string | null;
38805
38786
  customer_code?: string | null;
38806
38787
  data?: import("../integrations/supabase/types").Json;
38788
+ deleted_at?: string | null;
38807
38789
  due_date?: string | null;
38808
38790
  fetched_at?: string;
38809
38791
  invoice_date?: string | null;
38810
38792
  invoice_number: string;
38793
+ lines_fetched_at?: string | null;
38811
38794
  modified_at?: string | null;
38812
38795
  outstanding_amount?: number | null;
38796
+ paid_at?: string | null;
38813
38797
  status?: string | null;
38814
38798
  status_label?: string | null;
38815
38799
  total_excl?: number | null;
@@ -38821,12 +38805,15 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
38821
38805
  currency?: string | null;
38822
38806
  customer_code?: string | null;
38823
38807
  data?: import("../integrations/supabase/types").Json;
38808
+ deleted_at?: string | null;
38824
38809
  due_date?: string | null;
38825
38810
  fetched_at?: string;
38826
38811
  invoice_date?: string | null;
38827
38812
  invoice_number?: string;
38813
+ lines_fetched_at?: string | null;
38828
38814
  modified_at?: string | null;
38829
38815
  outstanding_amount?: number | null;
38816
+ paid_at?: string | null;
38830
38817
  status?: string | null;
38831
38818
  status_label?: string | null;
38832
38819
  total_excl?: number | null;
@@ -38841,30 +38828,6 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
38841
38828
  referencedColumns: ["id"];
38842
38829
  }];
38843
38830
  };
38844
- twinfield_oauth_state: {
38845
- Row: {
38846
- created_at: string;
38847
- environment: string;
38848
- nonce: string | null;
38849
- state: string;
38850
- user_id: string;
38851
- };
38852
- Insert: {
38853
- created_at?: string;
38854
- environment: string;
38855
- nonce?: string | null;
38856
- state: string;
38857
- user_id: string;
38858
- };
38859
- Update: {
38860
- created_at?: string;
38861
- environment?: string;
38862
- nonce?: string | null;
38863
- state?: string;
38864
- user_id?: string;
38865
- };
38866
- Relationships: [];
38867
- };
38868
38831
  twinfield_push_queue: {
38869
38832
  Row: {
38870
38833
  action: string;
@@ -39030,39 +38993,6 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
39030
38993
  referencedColumns: ["id"];
39031
38994
  }];
39032
38995
  };
39033
- twinfield_token_refresh_log: {
39034
- Row: {
39035
- attempted_at: string;
39036
- connection_id: string;
39037
- error: string | null;
39038
- expires_at: string | null;
39039
- id: string;
39040
- ok: boolean;
39041
- };
39042
- Insert: {
39043
- attempted_at?: string;
39044
- connection_id: string;
39045
- error?: string | null;
39046
- expires_at?: string | null;
39047
- id?: string;
39048
- ok: boolean;
39049
- };
39050
- Update: {
39051
- attempted_at?: string;
39052
- connection_id?: string;
39053
- error?: string | null;
39054
- expires_at?: string | null;
39055
- id?: string;
39056
- ok?: boolean;
39057
- };
39058
- Relationships: [{
39059
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39060
- columns: ["connection_id"];
39061
- isOneToOne: false;
39062
- referencedRelation: "twinfield_connections";
39063
- referencedColumns: ["id"];
39064
- }];
39065
- };
39066
38996
  user_roles: {
39067
38997
  Row: {
39068
38998
  created_at: string;
@@ -41503,15 +41433,16 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
41503
41433
  };
41504
41434
  Returns: undefined;
41505
41435
  };
41506
- twinfield_decrypt: {
41436
+ twinfield_upsert_connection_by_account_key: {
41507
41437
  Args: {
41508
- cipher: string;
41509
- };
41510
- Returns: string;
41511
- };
41512
- twinfield_encrypt: {
41513
- Args: {
41514
- plain: string;
41438
+ p_account_key: string;
41439
+ p_cluster_uri?: string;
41440
+ p_company_code?: string;
41441
+ p_company_name?: string;
41442
+ p_environment: string;
41443
+ p_office_code?: string;
41444
+ p_status?: string;
41445
+ p_user_id: string;
41515
41446
  };
41516
41447
  Returns: string;
41517
41448
  };
@@ -46077,6 +46008,27 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
46077
46008
  referencedColumns: ["id"];
46078
46009
  }];
46079
46010
  };
46011
+ floriday_continuous_stock_cache: {
46012
+ Row: {
46013
+ connection_id: string;
46014
+ fetched_at: string;
46015
+ number_of_pieces: number;
46016
+ trade_item_id: string;
46017
+ };
46018
+ Insert: {
46019
+ connection_id: string;
46020
+ fetched_at?: string;
46021
+ number_of_pieces?: number;
46022
+ trade_item_id: string;
46023
+ };
46024
+ Update: {
46025
+ connection_id?: string;
46026
+ fetched_at?: string;
46027
+ number_of_pieces?: number;
46028
+ trade_item_id?: string;
46029
+ };
46030
+ Relationships: [];
46031
+ };
46080
46032
  floriday_continuous_stock_queue: {
46081
46033
  Row: {
46082
46034
  attempts: number;
@@ -47055,6 +47007,45 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
47055
47007
  referencedColumns: ["id"];
47056
47008
  }];
47057
47009
  };
47010
+ floriday_trade_settings_customers_cache: {
47011
+ Row: {
47012
+ connection_id: string;
47013
+ data: import("../integrations/supabase/types").Json;
47014
+ fetched_at: string;
47015
+ floriday_id: string;
47016
+ id: string;
47017
+ is_deleted: boolean;
47018
+ sequence_number: number;
47019
+ updated_at: string;
47020
+ };
47021
+ Insert: {
47022
+ connection_id: string;
47023
+ data: import("../integrations/supabase/types").Json;
47024
+ fetched_at?: string;
47025
+ floriday_id: string;
47026
+ id?: string;
47027
+ is_deleted?: boolean;
47028
+ sequence_number?: number;
47029
+ updated_at?: string;
47030
+ };
47031
+ Update: {
47032
+ connection_id?: string;
47033
+ data?: import("../integrations/supabase/types").Json;
47034
+ fetched_at?: string;
47035
+ floriday_id?: string;
47036
+ id?: string;
47037
+ is_deleted?: boolean;
47038
+ sequence_number?: number;
47039
+ updated_at?: string;
47040
+ };
47041
+ Relationships: [{
47042
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
47043
+ columns: ["connection_id"];
47044
+ isOneToOne: false;
47045
+ referencedRelation: "floriday_connections";
47046
+ referencedColumns: ["id"];
47047
+ }];
47048
+ };
47058
47049
  floriday_trips_cache: {
47059
47050
  Row: {
47060
47051
  carrier_organization_id: string | null;
@@ -47103,6 +47094,27 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
47103
47094
  referencedColumns: ["id"];
47104
47095
  }];
47105
47096
  };
47097
+ floriday_vbn_required_characteristics: {
47098
+ Row: {
47099
+ required_codes: string[];
47100
+ updated_at: string;
47101
+ updated_by: string | null;
47102
+ vbn_code: string;
47103
+ };
47104
+ Insert: {
47105
+ required_codes?: string[];
47106
+ updated_at?: string;
47107
+ updated_by?: string | null;
47108
+ vbn_code: string;
47109
+ };
47110
+ Update: {
47111
+ required_codes?: string[];
47112
+ updated_at?: string;
47113
+ updated_by?: string | null;
47114
+ vbn_code?: string;
47115
+ };
47116
+ Relationships: [];
47117
+ };
47106
47118
  floriday_warehouses_cache: {
47107
47119
  Row: {
47108
47120
  connection_id: string;
@@ -52076,9 +52088,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
52076
52088
  };
52077
52089
  twinfield_connections: {
52078
52090
  Row: {
52079
- access_token: string | null;
52080
- client_id: string;
52081
- client_secret: string | null;
52091
+ account_key: string | null;
52082
52092
  cluster_uri: string | null;
52083
52093
  company_code: string | null;
52084
52094
  company_name: string | null;
@@ -52089,16 +52099,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
52089
52099
  is_active: boolean;
52090
52100
  label: string | null;
52091
52101
  office_code: string | null;
52092
- redirect_uri: string;
52093
- refresh_token: string | null;
52094
- token_expires_at: string | null;
52102
+ redirect_uri: string | null;
52095
52103
  updated_at: string;
52096
52104
  user_id: string;
52097
52105
  };
52098
52106
  Insert: {
52099
- access_token?: string | null;
52100
- client_id: string;
52101
- client_secret?: string | null;
52107
+ account_key?: string | null;
52102
52108
  cluster_uri?: string | null;
52103
52109
  company_code?: string | null;
52104
52110
  company_name?: string | null;
@@ -52109,16 +52115,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
52109
52115
  is_active?: boolean;
52110
52116
  label?: string | null;
52111
52117
  office_code?: string | null;
52112
- redirect_uri: string;
52113
- refresh_token?: string | null;
52114
- token_expires_at?: string | null;
52118
+ redirect_uri?: string | null;
52115
52119
  updated_at?: string;
52116
52120
  user_id: string;
52117
52121
  };
52118
52122
  Update: {
52119
- access_token?: string | null;
52120
- client_id?: string;
52121
- client_secret?: string | null;
52123
+ account_key?: string | null;
52122
52124
  cluster_uri?: string | null;
52123
52125
  company_code?: string | null;
52124
52126
  company_name?: string | null;
@@ -52129,54 +52131,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
52129
52131
  is_active?: boolean;
52130
52132
  label?: string | null;
52131
52133
  office_code?: string | null;
52132
- redirect_uri?: string;
52133
- refresh_token?: string | null;
52134
- token_expires_at?: string | null;
52135
- updated_at?: string;
52136
- user_id?: string;
52137
- };
52138
- Relationships: [];
52139
- };
52140
- twinfield_credentials: {
52141
- Row: {
52142
- administration_code: string | null;
52143
- client_id: string | null;
52144
- client_secret: string | null;
52145
- cluster: string | null;
52146
- connected_at: string | null;
52147
- created_at: string;
52148
- environment: string | null;
52149
- id: string;
52150
- redirect_uri: string | null;
52151
- refresh_token: string | null;
52152
- updated_at: string;
52153
- user_id: string;
52154
- };
52155
- Insert: {
52156
- administration_code?: string | null;
52157
- client_id?: string | null;
52158
- client_secret?: string | null;
52159
- cluster?: string | null;
52160
- connected_at?: string | null;
52161
- created_at?: string;
52162
- environment?: string | null;
52163
- id?: string;
52164
- redirect_uri?: string | null;
52165
- refresh_token?: string | null;
52166
- updated_at?: string;
52167
- user_id: string;
52168
- };
52169
- Update: {
52170
- administration_code?: string | null;
52171
- client_id?: string | null;
52172
- client_secret?: string | null;
52173
- cluster?: string | null;
52174
- connected_at?: string | null;
52175
- created_at?: string;
52176
- environment?: string | null;
52177
- id?: string;
52178
52134
  redirect_uri?: string | null;
52179
- refresh_token?: string | null;
52180
52135
  updated_at?: string;
52181
52136
  user_id?: string;
52182
52137
  };
@@ -52623,12 +52578,15 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
52623
52578
  currency: string | null;
52624
52579
  customer_code: string | null;
52625
52580
  data: import("../integrations/supabase/types").Json;
52581
+ deleted_at: string | null;
52626
52582
  due_date: string | null;
52627
52583
  fetched_at: string;
52628
52584
  invoice_date: string | null;
52629
52585
  invoice_number: string;
52586
+ lines_fetched_at: string | null;
52630
52587
  modified_at: string | null;
52631
52588
  outstanding_amount: number | null;
52589
+ paid_at: string | null;
52632
52590
  status: string | null;
52633
52591
  status_label: string | null;
52634
52592
  total_excl: number | null;
@@ -52640,12 +52598,15 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
52640
52598
  currency?: string | null;
52641
52599
  customer_code?: string | null;
52642
52600
  data?: import("../integrations/supabase/types").Json;
52601
+ deleted_at?: string | null;
52643
52602
  due_date?: string | null;
52644
52603
  fetched_at?: string;
52645
52604
  invoice_date?: string | null;
52646
52605
  invoice_number: string;
52606
+ lines_fetched_at?: string | null;
52647
52607
  modified_at?: string | null;
52648
52608
  outstanding_amount?: number | null;
52609
+ paid_at?: string | null;
52649
52610
  status?: string | null;
52650
52611
  status_label?: string | null;
52651
52612
  total_excl?: number | null;
@@ -52657,12 +52618,15 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
52657
52618
  currency?: string | null;
52658
52619
  customer_code?: string | null;
52659
52620
  data?: import("../integrations/supabase/types").Json;
52621
+ deleted_at?: string | null;
52660
52622
  due_date?: string | null;
52661
52623
  fetched_at?: string;
52662
52624
  invoice_date?: string | null;
52663
52625
  invoice_number?: string;
52626
+ lines_fetched_at?: string | null;
52664
52627
  modified_at?: string | null;
52665
52628
  outstanding_amount?: number | null;
52629
+ paid_at?: string | null;
52666
52630
  status?: string | null;
52667
52631
  status_label?: string | null;
52668
52632
  total_excl?: number | null;
@@ -52677,30 +52641,6 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
52677
52641
  referencedColumns: ["id"];
52678
52642
  }];
52679
52643
  };
52680
- twinfield_oauth_state: {
52681
- Row: {
52682
- created_at: string;
52683
- environment: string;
52684
- nonce: string | null;
52685
- state: string;
52686
- user_id: string;
52687
- };
52688
- Insert: {
52689
- created_at?: string;
52690
- environment: string;
52691
- nonce?: string | null;
52692
- state: string;
52693
- user_id: string;
52694
- };
52695
- Update: {
52696
- created_at?: string;
52697
- environment?: string;
52698
- nonce?: string | null;
52699
- state?: string;
52700
- user_id?: string;
52701
- };
52702
- Relationships: [];
52703
- };
52704
52644
  twinfield_push_queue: {
52705
52645
  Row: {
52706
52646
  action: string;
@@ -52866,39 +52806,6 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
52866
52806
  referencedColumns: ["id"];
52867
52807
  }];
52868
52808
  };
52869
- twinfield_token_refresh_log: {
52870
- Row: {
52871
- attempted_at: string;
52872
- connection_id: string;
52873
- error: string | null;
52874
- expires_at: string | null;
52875
- id: string;
52876
- ok: boolean;
52877
- };
52878
- Insert: {
52879
- attempted_at?: string;
52880
- connection_id: string;
52881
- error?: string | null;
52882
- expires_at?: string | null;
52883
- id?: string;
52884
- ok: boolean;
52885
- };
52886
- Update: {
52887
- attempted_at?: string;
52888
- connection_id?: string;
52889
- error?: string | null;
52890
- expires_at?: string | null;
52891
- id?: string;
52892
- ok?: boolean;
52893
- };
52894
- Relationships: [{
52895
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
52896
- columns: ["connection_id"];
52897
- isOneToOne: false;
52898
- referencedRelation: "twinfield_connections";
52899
- referencedColumns: ["id"];
52900
- }];
52901
- };
52902
52809
  user_roles: {
52903
52810
  Row: {
52904
52811
  created_at: string;
@@ -55339,15 +55246,16 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
55339
55246
  };
55340
55247
  Returns: undefined;
55341
55248
  };
55342
- twinfield_decrypt: {
55249
+ twinfield_upsert_connection_by_account_key: {
55343
55250
  Args: {
55344
- cipher: string;
55345
- };
55346
- Returns: string;
55347
- };
55348
- twinfield_encrypt: {
55349
- Args: {
55350
- plain: string;
55251
+ p_account_key: string;
55252
+ p_cluster_uri?: string;
55253
+ p_company_code?: string;
55254
+ p_company_name?: string;
55255
+ p_environment: string;
55256
+ p_office_code?: string;
55257
+ p_status?: string;
55258
+ p_user_id: string;
55351
55259
  };
55352
55260
  Returns: string;
55353
55261
  };