@flowselections/floriday-verkoop-module 1.0.25 → 1.0.27

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 +9 -9
  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
@@ -4529,6 +4529,27 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
4529
4529
  referencedColumns: ["id"];
4530
4530
  }];
4531
4531
  };
4532
+ floriday_continuous_stock_cache: {
4533
+ Row: {
4534
+ connection_id: string;
4535
+ fetched_at: string;
4536
+ number_of_pieces: number;
4537
+ trade_item_id: string;
4538
+ };
4539
+ Insert: {
4540
+ connection_id: string;
4541
+ fetched_at?: string;
4542
+ number_of_pieces?: number;
4543
+ trade_item_id: string;
4544
+ };
4545
+ Update: {
4546
+ connection_id?: string;
4547
+ fetched_at?: string;
4548
+ number_of_pieces?: number;
4549
+ trade_item_id?: string;
4550
+ };
4551
+ Relationships: [];
4552
+ };
4532
4553
  floriday_continuous_stock_queue: {
4533
4554
  Row: {
4534
4555
  attempts: number;
@@ -5507,6 +5528,45 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
5507
5528
  referencedColumns: ["id"];
5508
5529
  }];
5509
5530
  };
5531
+ floriday_trade_settings_customers_cache: {
5532
+ Row: {
5533
+ connection_id: string;
5534
+ data: import("../integrations/supabase/types").Json;
5535
+ fetched_at: string;
5536
+ floriday_id: string;
5537
+ id: string;
5538
+ is_deleted: boolean;
5539
+ sequence_number: number;
5540
+ updated_at: string;
5541
+ };
5542
+ Insert: {
5543
+ connection_id: string;
5544
+ data: import("../integrations/supabase/types").Json;
5545
+ fetched_at?: string;
5546
+ floriday_id: string;
5547
+ id?: string;
5548
+ is_deleted?: boolean;
5549
+ sequence_number?: number;
5550
+ updated_at?: string;
5551
+ };
5552
+ Update: {
5553
+ connection_id?: string;
5554
+ data?: import("../integrations/supabase/types").Json;
5555
+ fetched_at?: string;
5556
+ floriday_id?: string;
5557
+ id?: string;
5558
+ is_deleted?: boolean;
5559
+ sequence_number?: number;
5560
+ updated_at?: string;
5561
+ };
5562
+ Relationships: [{
5563
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5564
+ columns: ["connection_id"];
5565
+ isOneToOne: false;
5566
+ referencedRelation: "floriday_connections";
5567
+ referencedColumns: ["id"];
5568
+ }];
5569
+ };
5510
5570
  floriday_trips_cache: {
5511
5571
  Row: {
5512
5572
  carrier_organization_id: string | null;
@@ -5555,6 +5615,27 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
5555
5615
  referencedColumns: ["id"];
5556
5616
  }];
5557
5617
  };
5618
+ floriday_vbn_required_characteristics: {
5619
+ Row: {
5620
+ required_codes: string[];
5621
+ updated_at: string;
5622
+ updated_by: string | null;
5623
+ vbn_code: string;
5624
+ };
5625
+ Insert: {
5626
+ required_codes?: string[];
5627
+ updated_at?: string;
5628
+ updated_by?: string | null;
5629
+ vbn_code: string;
5630
+ };
5631
+ Update: {
5632
+ required_codes?: string[];
5633
+ updated_at?: string;
5634
+ updated_by?: string | null;
5635
+ vbn_code?: string;
5636
+ };
5637
+ Relationships: [];
5638
+ };
5558
5639
  floriday_warehouses_cache: {
5559
5640
  Row: {
5560
5641
  connection_id: string;
@@ -10528,9 +10609,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
10528
10609
  };
10529
10610
  twinfield_connections: {
10530
10611
  Row: {
10531
- access_token: string | null;
10532
- client_id: string;
10533
- client_secret: string | null;
10612
+ account_key: string | null;
10534
10613
  cluster_uri: string | null;
10535
10614
  company_code: string | null;
10536
10615
  company_name: string | null;
@@ -10541,16 +10620,12 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
10541
10620
  is_active: boolean;
10542
10621
  label: string | null;
10543
10622
  office_code: string | null;
10544
- redirect_uri: string;
10545
- refresh_token: string | null;
10546
- token_expires_at: string | null;
10623
+ redirect_uri: string | null;
10547
10624
  updated_at: string;
10548
10625
  user_id: string;
10549
10626
  };
10550
10627
  Insert: {
10551
- access_token?: string | null;
10552
- client_id: string;
10553
- client_secret?: string | null;
10628
+ account_key?: string | null;
10554
10629
  cluster_uri?: string | null;
10555
10630
  company_code?: string | null;
10556
10631
  company_name?: string | null;
@@ -10561,16 +10636,12 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
10561
10636
  is_active?: boolean;
10562
10637
  label?: string | null;
10563
10638
  office_code?: string | null;
10564
- redirect_uri: string;
10565
- refresh_token?: string | null;
10566
- token_expires_at?: string | null;
10639
+ redirect_uri?: string | null;
10567
10640
  updated_at?: string;
10568
10641
  user_id: string;
10569
10642
  };
10570
10643
  Update: {
10571
- access_token?: string | null;
10572
- client_id?: string;
10573
- client_secret?: string | null;
10644
+ account_key?: string | null;
10574
10645
  cluster_uri?: string | null;
10575
10646
  company_code?: string | null;
10576
10647
  company_name?: string | null;
@@ -10581,54 +10652,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
10581
10652
  is_active?: boolean;
10582
10653
  label?: string | null;
10583
10654
  office_code?: string | null;
10584
- redirect_uri?: string;
10585
- refresh_token?: string | null;
10586
- token_expires_at?: string | null;
10587
- updated_at?: string;
10588
- user_id?: string;
10589
- };
10590
- Relationships: [];
10591
- };
10592
- twinfield_credentials: {
10593
- Row: {
10594
- administration_code: string | null;
10595
- client_id: string | null;
10596
- client_secret: string | null;
10597
- cluster: string | null;
10598
- connected_at: string | null;
10599
- created_at: string;
10600
- environment: string | null;
10601
- id: string;
10602
- redirect_uri: string | null;
10603
- refresh_token: string | null;
10604
- updated_at: string;
10605
- user_id: string;
10606
- };
10607
- Insert: {
10608
- administration_code?: string | null;
10609
- client_id?: string | null;
10610
- client_secret?: string | null;
10611
- cluster?: string | null;
10612
- connected_at?: string | null;
10613
- created_at?: string;
10614
- environment?: string | null;
10615
- id?: string;
10616
- redirect_uri?: string | null;
10617
- refresh_token?: string | null;
10618
- updated_at?: string;
10619
- user_id: string;
10620
- };
10621
- Update: {
10622
- administration_code?: string | null;
10623
- client_id?: string | null;
10624
- client_secret?: string | null;
10625
- cluster?: string | null;
10626
- connected_at?: string | null;
10627
- created_at?: string;
10628
- environment?: string | null;
10629
- id?: string;
10630
10655
  redirect_uri?: string | null;
10631
- refresh_token?: string | null;
10632
10656
  updated_at?: string;
10633
10657
  user_id?: string;
10634
10658
  };
@@ -11075,12 +11099,15 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
11075
11099
  currency: string | null;
11076
11100
  customer_code: string | null;
11077
11101
  data: import("../integrations/supabase/types").Json;
11102
+ deleted_at: string | null;
11078
11103
  due_date: string | null;
11079
11104
  fetched_at: string;
11080
11105
  invoice_date: string | null;
11081
11106
  invoice_number: string;
11107
+ lines_fetched_at: string | null;
11082
11108
  modified_at: string | null;
11083
11109
  outstanding_amount: number | null;
11110
+ paid_at: string | null;
11084
11111
  status: string | null;
11085
11112
  status_label: string | null;
11086
11113
  total_excl: number | null;
@@ -11092,12 +11119,15 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
11092
11119
  currency?: string | null;
11093
11120
  customer_code?: string | null;
11094
11121
  data?: import("../integrations/supabase/types").Json;
11122
+ deleted_at?: string | null;
11095
11123
  due_date?: string | null;
11096
11124
  fetched_at?: string;
11097
11125
  invoice_date?: string | null;
11098
11126
  invoice_number: string;
11127
+ lines_fetched_at?: string | null;
11099
11128
  modified_at?: string | null;
11100
11129
  outstanding_amount?: number | null;
11130
+ paid_at?: string | null;
11101
11131
  status?: string | null;
11102
11132
  status_label?: string | null;
11103
11133
  total_excl?: number | null;
@@ -11109,12 +11139,15 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
11109
11139
  currency?: string | null;
11110
11140
  customer_code?: string | null;
11111
11141
  data?: import("../integrations/supabase/types").Json;
11142
+ deleted_at?: string | null;
11112
11143
  due_date?: string | null;
11113
11144
  fetched_at?: string;
11114
11145
  invoice_date?: string | null;
11115
11146
  invoice_number?: string;
11147
+ lines_fetched_at?: string | null;
11116
11148
  modified_at?: string | null;
11117
11149
  outstanding_amount?: number | null;
11150
+ paid_at?: string | null;
11118
11151
  status?: string | null;
11119
11152
  status_label?: string | null;
11120
11153
  total_excl?: number | null;
@@ -11129,30 +11162,6 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
11129
11162
  referencedColumns: ["id"];
11130
11163
  }];
11131
11164
  };
11132
- twinfield_oauth_state: {
11133
- Row: {
11134
- created_at: string;
11135
- environment: string;
11136
- nonce: string | null;
11137
- state: string;
11138
- user_id: string;
11139
- };
11140
- Insert: {
11141
- created_at?: string;
11142
- environment: string;
11143
- nonce?: string | null;
11144
- state: string;
11145
- user_id: string;
11146
- };
11147
- Update: {
11148
- created_at?: string;
11149
- environment?: string;
11150
- nonce?: string | null;
11151
- state?: string;
11152
- user_id?: string;
11153
- };
11154
- Relationships: [];
11155
- };
11156
11165
  twinfield_push_queue: {
11157
11166
  Row: {
11158
11167
  action: string;
@@ -11318,39 +11327,6 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
11318
11327
  referencedColumns: ["id"];
11319
11328
  }];
11320
11329
  };
11321
- twinfield_token_refresh_log: {
11322
- Row: {
11323
- attempted_at: string;
11324
- connection_id: string;
11325
- error: string | null;
11326
- expires_at: string | null;
11327
- id: string;
11328
- ok: boolean;
11329
- };
11330
- Insert: {
11331
- attempted_at?: string;
11332
- connection_id: string;
11333
- error?: string | null;
11334
- expires_at?: string | null;
11335
- id?: string;
11336
- ok: boolean;
11337
- };
11338
- Update: {
11339
- attempted_at?: string;
11340
- connection_id?: string;
11341
- error?: string | null;
11342
- expires_at?: string | null;
11343
- id?: string;
11344
- ok?: boolean;
11345
- };
11346
- Relationships: [{
11347
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11348
- columns: ["connection_id"];
11349
- isOneToOne: false;
11350
- referencedRelation: "twinfield_connections";
11351
- referencedColumns: ["id"];
11352
- }];
11353
- };
11354
11330
  user_roles: {
11355
11331
  Row: {
11356
11332
  created_at: string;
@@ -13791,15 +13767,16 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
13791
13767
  };
13792
13768
  Returns: undefined;
13793
13769
  };
13794
- twinfield_decrypt: {
13795
- Args: {
13796
- cipher: string;
13797
- };
13798
- Returns: string;
13799
- };
13800
- twinfield_encrypt: {
13770
+ twinfield_upsert_connection_by_account_key: {
13801
13771
  Args: {
13802
- plain: string;
13772
+ p_account_key: string;
13773
+ p_cluster_uri?: string;
13774
+ p_company_code?: string;
13775
+ p_company_name?: string;
13776
+ p_environment: string;
13777
+ p_office_code?: string;
13778
+ p_status?: string;
13779
+ p_user_id: string;
13803
13780
  };
13804
13781
  Returns: string;
13805
13782
  };
@@ -18368,6 +18345,27 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
18368
18345
  referencedColumns: ["id"];
18369
18346
  }];
18370
18347
  };
18348
+ floriday_continuous_stock_cache: {
18349
+ Row: {
18350
+ connection_id: string;
18351
+ fetched_at: string;
18352
+ number_of_pieces: number;
18353
+ trade_item_id: string;
18354
+ };
18355
+ Insert: {
18356
+ connection_id: string;
18357
+ fetched_at?: string;
18358
+ number_of_pieces?: number;
18359
+ trade_item_id: string;
18360
+ };
18361
+ Update: {
18362
+ connection_id?: string;
18363
+ fetched_at?: string;
18364
+ number_of_pieces?: number;
18365
+ trade_item_id?: string;
18366
+ };
18367
+ Relationships: [];
18368
+ };
18371
18369
  floriday_continuous_stock_queue: {
18372
18370
  Row: {
18373
18371
  attempts: number;
@@ -19346,6 +19344,45 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
19346
19344
  referencedColumns: ["id"];
19347
19345
  }];
19348
19346
  };
19347
+ floriday_trade_settings_customers_cache: {
19348
+ Row: {
19349
+ connection_id: string;
19350
+ data: import("../integrations/supabase/types").Json;
19351
+ fetched_at: string;
19352
+ floriday_id: string;
19353
+ id: string;
19354
+ is_deleted: boolean;
19355
+ sequence_number: number;
19356
+ updated_at: string;
19357
+ };
19358
+ Insert: {
19359
+ connection_id: string;
19360
+ data: import("../integrations/supabase/types").Json;
19361
+ fetched_at?: string;
19362
+ floriday_id: string;
19363
+ id?: string;
19364
+ is_deleted?: boolean;
19365
+ sequence_number?: number;
19366
+ updated_at?: string;
19367
+ };
19368
+ Update: {
19369
+ connection_id?: string;
19370
+ data?: import("../integrations/supabase/types").Json;
19371
+ fetched_at?: string;
19372
+ floriday_id?: string;
19373
+ id?: string;
19374
+ is_deleted?: boolean;
19375
+ sequence_number?: number;
19376
+ updated_at?: string;
19377
+ };
19378
+ Relationships: [{
19379
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19380
+ columns: ["connection_id"];
19381
+ isOneToOne: false;
19382
+ referencedRelation: "floriday_connections";
19383
+ referencedColumns: ["id"];
19384
+ }];
19385
+ };
19349
19386
  floriday_trips_cache: {
19350
19387
  Row: {
19351
19388
  carrier_organization_id: string | null;
@@ -19394,6 +19431,27 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
19394
19431
  referencedColumns: ["id"];
19395
19432
  }];
19396
19433
  };
19434
+ floriday_vbn_required_characteristics: {
19435
+ Row: {
19436
+ required_codes: string[];
19437
+ updated_at: string;
19438
+ updated_by: string | null;
19439
+ vbn_code: string;
19440
+ };
19441
+ Insert: {
19442
+ required_codes?: string[];
19443
+ updated_at?: string;
19444
+ updated_by?: string | null;
19445
+ vbn_code: string;
19446
+ };
19447
+ Update: {
19448
+ required_codes?: string[];
19449
+ updated_at?: string;
19450
+ updated_by?: string | null;
19451
+ vbn_code?: string;
19452
+ };
19453
+ Relationships: [];
19454
+ };
19397
19455
  floriday_warehouses_cache: {
19398
19456
  Row: {
19399
19457
  connection_id: string;
@@ -24367,9 +24425,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
24367
24425
  };
24368
24426
  twinfield_connections: {
24369
24427
  Row: {
24370
- access_token: string | null;
24371
- client_id: string;
24372
- client_secret: string | null;
24428
+ account_key: string | null;
24373
24429
  cluster_uri: string | null;
24374
24430
  company_code: string | null;
24375
24431
  company_name: string | null;
@@ -24380,16 +24436,12 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
24380
24436
  is_active: boolean;
24381
24437
  label: string | null;
24382
24438
  office_code: string | null;
24383
- redirect_uri: string;
24384
- refresh_token: string | null;
24385
- token_expires_at: string | null;
24439
+ redirect_uri: string | null;
24386
24440
  updated_at: string;
24387
24441
  user_id: string;
24388
24442
  };
24389
24443
  Insert: {
24390
- access_token?: string | null;
24391
- client_id: string;
24392
- client_secret?: string | null;
24444
+ account_key?: string | null;
24393
24445
  cluster_uri?: string | null;
24394
24446
  company_code?: string | null;
24395
24447
  company_name?: string | null;
@@ -24400,16 +24452,12 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
24400
24452
  is_active?: boolean;
24401
24453
  label?: string | null;
24402
24454
  office_code?: string | null;
24403
- redirect_uri: string;
24404
- refresh_token?: string | null;
24405
- token_expires_at?: string | null;
24455
+ redirect_uri?: string | null;
24406
24456
  updated_at?: string;
24407
24457
  user_id: string;
24408
24458
  };
24409
24459
  Update: {
24410
- access_token?: string | null;
24411
- client_id?: string;
24412
- client_secret?: string | null;
24460
+ account_key?: string | null;
24413
24461
  cluster_uri?: string | null;
24414
24462
  company_code?: string | null;
24415
24463
  company_name?: string | null;
@@ -24420,54 +24468,7 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
24420
24468
  is_active?: boolean;
24421
24469
  label?: string | null;
24422
24470
  office_code?: string | null;
24423
- redirect_uri?: string;
24424
- refresh_token?: string | null;
24425
- token_expires_at?: string | null;
24426
- updated_at?: string;
24427
- user_id?: string;
24428
- };
24429
- Relationships: [];
24430
- };
24431
- twinfield_credentials: {
24432
- Row: {
24433
- administration_code: string | null;
24434
- client_id: string | null;
24435
- client_secret: string | null;
24436
- cluster: string | null;
24437
- connected_at: string | null;
24438
- created_at: string;
24439
- environment: string | null;
24440
- id: string;
24441
- redirect_uri: string | null;
24442
- refresh_token: string | null;
24443
- updated_at: string;
24444
- user_id: string;
24445
- };
24446
- Insert: {
24447
- administration_code?: string | null;
24448
- client_id?: string | null;
24449
- client_secret?: string | null;
24450
- cluster?: string | null;
24451
- connected_at?: string | null;
24452
- created_at?: string;
24453
- environment?: string | null;
24454
- id?: string;
24455
- redirect_uri?: string | null;
24456
- refresh_token?: string | null;
24457
- updated_at?: string;
24458
- user_id: string;
24459
- };
24460
- Update: {
24461
- administration_code?: string | null;
24462
- client_id?: string | null;
24463
- client_secret?: string | null;
24464
- cluster?: string | null;
24465
- connected_at?: string | null;
24466
- created_at?: string;
24467
- environment?: string | null;
24468
- id?: string;
24469
24471
  redirect_uri?: string | null;
24470
- refresh_token?: string | null;
24471
24472
  updated_at?: string;
24472
24473
  user_id?: string;
24473
24474
  };
@@ -24914,12 +24915,15 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
24914
24915
  currency: string | null;
24915
24916
  customer_code: string | null;
24916
24917
  data: import("../integrations/supabase/types").Json;
24918
+ deleted_at: string | null;
24917
24919
  due_date: string | null;
24918
24920
  fetched_at: string;
24919
24921
  invoice_date: string | null;
24920
24922
  invoice_number: string;
24923
+ lines_fetched_at: string | null;
24921
24924
  modified_at: string | null;
24922
24925
  outstanding_amount: number | null;
24926
+ paid_at: string | null;
24923
24927
  status: string | null;
24924
24928
  status_label: string | null;
24925
24929
  total_excl: number | null;
@@ -24931,12 +24935,15 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
24931
24935
  currency?: string | null;
24932
24936
  customer_code?: string | null;
24933
24937
  data?: import("../integrations/supabase/types").Json;
24938
+ deleted_at?: string | null;
24934
24939
  due_date?: string | null;
24935
24940
  fetched_at?: string;
24936
24941
  invoice_date?: string | null;
24937
24942
  invoice_number: string;
24943
+ lines_fetched_at?: string | null;
24938
24944
  modified_at?: string | null;
24939
24945
  outstanding_amount?: number | null;
24946
+ paid_at?: string | null;
24940
24947
  status?: string | null;
24941
24948
  status_label?: string | null;
24942
24949
  total_excl?: number | null;
@@ -24948,12 +24955,15 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
24948
24955
  currency?: string | null;
24949
24956
  customer_code?: string | null;
24950
24957
  data?: import("../integrations/supabase/types").Json;
24958
+ deleted_at?: string | null;
24951
24959
  due_date?: string | null;
24952
24960
  fetched_at?: string;
24953
24961
  invoice_date?: string | null;
24954
24962
  invoice_number?: string;
24963
+ lines_fetched_at?: string | null;
24955
24964
  modified_at?: string | null;
24956
24965
  outstanding_amount?: number | null;
24966
+ paid_at?: string | null;
24957
24967
  status?: string | null;
24958
24968
  status_label?: string | null;
24959
24969
  total_excl?: number | null;
@@ -24968,30 +24978,6 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
24968
24978
  referencedColumns: ["id"];
24969
24979
  }];
24970
24980
  };
24971
- twinfield_oauth_state: {
24972
- Row: {
24973
- created_at: string;
24974
- environment: string;
24975
- nonce: string | null;
24976
- state: string;
24977
- user_id: string;
24978
- };
24979
- Insert: {
24980
- created_at?: string;
24981
- environment: string;
24982
- nonce?: string | null;
24983
- state: string;
24984
- user_id: string;
24985
- };
24986
- Update: {
24987
- created_at?: string;
24988
- environment?: string;
24989
- nonce?: string | null;
24990
- state?: string;
24991
- user_id?: string;
24992
- };
24993
- Relationships: [];
24994
- };
24995
24981
  twinfield_push_queue: {
24996
24982
  Row: {
24997
24983
  action: string;
@@ -25157,39 +25143,6 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
25157
25143
  referencedColumns: ["id"];
25158
25144
  }];
25159
25145
  };
25160
- twinfield_token_refresh_log: {
25161
- Row: {
25162
- attempted_at: string;
25163
- connection_id: string;
25164
- error: string | null;
25165
- expires_at: string | null;
25166
- id: string;
25167
- ok: boolean;
25168
- };
25169
- Insert: {
25170
- attempted_at?: string;
25171
- connection_id: string;
25172
- error?: string | null;
25173
- expires_at?: string | null;
25174
- id?: string;
25175
- ok: boolean;
25176
- };
25177
- Update: {
25178
- attempted_at?: string;
25179
- connection_id?: string;
25180
- error?: string | null;
25181
- expires_at?: string | null;
25182
- id?: string;
25183
- ok?: boolean;
25184
- };
25185
- Relationships: [{
25186
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25187
- columns: ["connection_id"];
25188
- isOneToOne: false;
25189
- referencedRelation: "twinfield_connections";
25190
- referencedColumns: ["id"];
25191
- }];
25192
- };
25193
25146
  user_roles: {
25194
25147
  Row: {
25195
25148
  created_at: string;
@@ -27630,15 +27583,16 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
27630
27583
  };
27631
27584
  Returns: undefined;
27632
27585
  };
27633
- twinfield_decrypt: {
27634
- Args: {
27635
- cipher: string;
27636
- };
27637
- Returns: string;
27638
- };
27639
- twinfield_encrypt: {
27586
+ twinfield_upsert_connection_by_account_key: {
27640
27587
  Args: {
27641
- plain: string;
27588
+ p_account_key: string;
27589
+ p_cluster_uri?: string;
27590
+ p_company_code?: string;
27591
+ p_company_name?: string;
27592
+ p_environment: string;
27593
+ p_office_code?: string;
27594
+ p_status?: string;
27595
+ p_user_id: string;
27642
27596
  };
27643
27597
  Returns: string;
27644
27598
  };
@@ -32204,6 +32158,27 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
32204
32158
  referencedColumns: ["id"];
32205
32159
  }];
32206
32160
  };
32161
+ floriday_continuous_stock_cache: {
32162
+ Row: {
32163
+ connection_id: string;
32164
+ fetched_at: string;
32165
+ number_of_pieces: number;
32166
+ trade_item_id: string;
32167
+ };
32168
+ Insert: {
32169
+ connection_id: string;
32170
+ fetched_at?: string;
32171
+ number_of_pieces?: number;
32172
+ trade_item_id: string;
32173
+ };
32174
+ Update: {
32175
+ connection_id?: string;
32176
+ fetched_at?: string;
32177
+ number_of_pieces?: number;
32178
+ trade_item_id?: string;
32179
+ };
32180
+ Relationships: [];
32181
+ };
32207
32182
  floriday_continuous_stock_queue: {
32208
32183
  Row: {
32209
32184
  attempts: number;
@@ -33182,6 +33157,45 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
33182
33157
  referencedColumns: ["id"];
33183
33158
  }];
33184
33159
  };
33160
+ floriday_trade_settings_customers_cache: {
33161
+ Row: {
33162
+ connection_id: string;
33163
+ data: import("../integrations/supabase/types").Json;
33164
+ fetched_at: string;
33165
+ floriday_id: string;
33166
+ id: string;
33167
+ is_deleted: boolean;
33168
+ sequence_number: number;
33169
+ updated_at: string;
33170
+ };
33171
+ Insert: {
33172
+ connection_id: string;
33173
+ data: import("../integrations/supabase/types").Json;
33174
+ fetched_at?: string;
33175
+ floriday_id: string;
33176
+ id?: string;
33177
+ is_deleted?: boolean;
33178
+ sequence_number?: number;
33179
+ updated_at?: string;
33180
+ };
33181
+ Update: {
33182
+ connection_id?: string;
33183
+ data?: import("../integrations/supabase/types").Json;
33184
+ fetched_at?: string;
33185
+ floriday_id?: string;
33186
+ id?: string;
33187
+ is_deleted?: boolean;
33188
+ sequence_number?: number;
33189
+ updated_at?: string;
33190
+ };
33191
+ Relationships: [{
33192
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33193
+ columns: ["connection_id"];
33194
+ isOneToOne: false;
33195
+ referencedRelation: "floriday_connections";
33196
+ referencedColumns: ["id"];
33197
+ }];
33198
+ };
33185
33199
  floriday_trips_cache: {
33186
33200
  Row: {
33187
33201
  carrier_organization_id: string | null;
@@ -33230,6 +33244,27 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
33230
33244
  referencedColumns: ["id"];
33231
33245
  }];
33232
33246
  };
33247
+ floriday_vbn_required_characteristics: {
33248
+ Row: {
33249
+ required_codes: string[];
33250
+ updated_at: string;
33251
+ updated_by: string | null;
33252
+ vbn_code: string;
33253
+ };
33254
+ Insert: {
33255
+ required_codes?: string[];
33256
+ updated_at?: string;
33257
+ updated_by?: string | null;
33258
+ vbn_code: string;
33259
+ };
33260
+ Update: {
33261
+ required_codes?: string[];
33262
+ updated_at?: string;
33263
+ updated_by?: string | null;
33264
+ vbn_code?: string;
33265
+ };
33266
+ Relationships: [];
33267
+ };
33233
33268
  floriday_warehouses_cache: {
33234
33269
  Row: {
33235
33270
  connection_id: string;
@@ -38203,9 +38238,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
38203
38238
  };
38204
38239
  twinfield_connections: {
38205
38240
  Row: {
38206
- access_token: string | null;
38207
- client_id: string;
38208
- client_secret: string | null;
38241
+ account_key: string | null;
38209
38242
  cluster_uri: string | null;
38210
38243
  company_code: string | null;
38211
38244
  company_name: string | null;
@@ -38216,16 +38249,12 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
38216
38249
  is_active: boolean;
38217
38250
  label: string | null;
38218
38251
  office_code: string | null;
38219
- redirect_uri: string;
38220
- refresh_token: string | null;
38221
- token_expires_at: string | null;
38252
+ redirect_uri: string | null;
38222
38253
  updated_at: string;
38223
38254
  user_id: string;
38224
38255
  };
38225
38256
  Insert: {
38226
- access_token?: string | null;
38227
- client_id: string;
38228
- client_secret?: string | null;
38257
+ account_key?: string | null;
38229
38258
  cluster_uri?: string | null;
38230
38259
  company_code?: string | null;
38231
38260
  company_name?: string | null;
@@ -38236,16 +38265,12 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
38236
38265
  is_active?: boolean;
38237
38266
  label?: string | null;
38238
38267
  office_code?: string | null;
38239
- redirect_uri: string;
38240
- refresh_token?: string | null;
38241
- token_expires_at?: string | null;
38268
+ redirect_uri?: string | null;
38242
38269
  updated_at?: string;
38243
38270
  user_id: string;
38244
38271
  };
38245
38272
  Update: {
38246
- access_token?: string | null;
38247
- client_id?: string;
38248
- client_secret?: string | null;
38273
+ account_key?: string | null;
38249
38274
  cluster_uri?: string | null;
38250
38275
  company_code?: string | null;
38251
38276
  company_name?: string | null;
@@ -38256,54 +38281,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
38256
38281
  is_active?: boolean;
38257
38282
  label?: string | null;
38258
38283
  office_code?: string | null;
38259
- redirect_uri?: string;
38260
- refresh_token?: string | null;
38261
- token_expires_at?: string | null;
38262
- updated_at?: string;
38263
- user_id?: string;
38264
- };
38265
- Relationships: [];
38266
- };
38267
- twinfield_credentials: {
38268
- Row: {
38269
- administration_code: string | null;
38270
- client_id: string | null;
38271
- client_secret: string | null;
38272
- cluster: string | null;
38273
- connected_at: string | null;
38274
- created_at: string;
38275
- environment: string | null;
38276
- id: string;
38277
- redirect_uri: string | null;
38278
- refresh_token: string | null;
38279
- updated_at: string;
38280
- user_id: string;
38281
- };
38282
- Insert: {
38283
- administration_code?: string | null;
38284
- client_id?: string | null;
38285
- client_secret?: string | null;
38286
- cluster?: string | null;
38287
- connected_at?: string | null;
38288
- created_at?: string;
38289
- environment?: string | null;
38290
- id?: string;
38291
- redirect_uri?: string | null;
38292
- refresh_token?: string | null;
38293
- updated_at?: string;
38294
- user_id: string;
38295
- };
38296
- Update: {
38297
- administration_code?: string | null;
38298
- client_id?: string | null;
38299
- client_secret?: string | null;
38300
- cluster?: string | null;
38301
- connected_at?: string | null;
38302
- created_at?: string;
38303
- environment?: string | null;
38304
- id?: string;
38305
38284
  redirect_uri?: string | null;
38306
- refresh_token?: string | null;
38307
38285
  updated_at?: string;
38308
38286
  user_id?: string;
38309
38287
  };
@@ -38750,12 +38728,15 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
38750
38728
  currency: string | null;
38751
38729
  customer_code: string | null;
38752
38730
  data: import("../integrations/supabase/types").Json;
38731
+ deleted_at: string | null;
38753
38732
  due_date: string | null;
38754
38733
  fetched_at: string;
38755
38734
  invoice_date: string | null;
38756
38735
  invoice_number: string;
38736
+ lines_fetched_at: string | null;
38757
38737
  modified_at: string | null;
38758
38738
  outstanding_amount: number | null;
38739
+ paid_at: string | null;
38759
38740
  status: string | null;
38760
38741
  status_label: string | null;
38761
38742
  total_excl: number | null;
@@ -38767,12 +38748,15 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
38767
38748
  currency?: string | null;
38768
38749
  customer_code?: string | null;
38769
38750
  data?: import("../integrations/supabase/types").Json;
38751
+ deleted_at?: string | null;
38770
38752
  due_date?: string | null;
38771
38753
  fetched_at?: string;
38772
38754
  invoice_date?: string | null;
38773
38755
  invoice_number: string;
38756
+ lines_fetched_at?: string | null;
38774
38757
  modified_at?: string | null;
38775
38758
  outstanding_amount?: number | null;
38759
+ paid_at?: string | null;
38776
38760
  status?: string | null;
38777
38761
  status_label?: string | null;
38778
38762
  total_excl?: number | null;
@@ -38784,12 +38768,15 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
38784
38768
  currency?: string | null;
38785
38769
  customer_code?: string | null;
38786
38770
  data?: import("../integrations/supabase/types").Json;
38771
+ deleted_at?: string | null;
38787
38772
  due_date?: string | null;
38788
38773
  fetched_at?: string;
38789
38774
  invoice_date?: string | null;
38790
38775
  invoice_number?: string;
38776
+ lines_fetched_at?: string | null;
38791
38777
  modified_at?: string | null;
38792
38778
  outstanding_amount?: number | null;
38779
+ paid_at?: string | null;
38793
38780
  status?: string | null;
38794
38781
  status_label?: string | null;
38795
38782
  total_excl?: number | null;
@@ -38804,30 +38791,6 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
38804
38791
  referencedColumns: ["id"];
38805
38792
  }];
38806
38793
  };
38807
- twinfield_oauth_state: {
38808
- Row: {
38809
- created_at: string;
38810
- environment: string;
38811
- nonce: string | null;
38812
- state: string;
38813
- user_id: string;
38814
- };
38815
- Insert: {
38816
- created_at?: string;
38817
- environment: string;
38818
- nonce?: string | null;
38819
- state: string;
38820
- user_id: string;
38821
- };
38822
- Update: {
38823
- created_at?: string;
38824
- environment?: string;
38825
- nonce?: string | null;
38826
- state?: string;
38827
- user_id?: string;
38828
- };
38829
- Relationships: [];
38830
- };
38831
38794
  twinfield_push_queue: {
38832
38795
  Row: {
38833
38796
  action: string;
@@ -38993,39 +38956,6 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
38993
38956
  referencedColumns: ["id"];
38994
38957
  }];
38995
38958
  };
38996
- twinfield_token_refresh_log: {
38997
- Row: {
38998
- attempted_at: string;
38999
- connection_id: string;
39000
- error: string | null;
39001
- expires_at: string | null;
39002
- id: string;
39003
- ok: boolean;
39004
- };
39005
- Insert: {
39006
- attempted_at?: string;
39007
- connection_id: string;
39008
- error?: string | null;
39009
- expires_at?: string | null;
39010
- id?: string;
39011
- ok: boolean;
39012
- };
39013
- Update: {
39014
- attempted_at?: string;
39015
- connection_id?: string;
39016
- error?: string | null;
39017
- expires_at?: string | null;
39018
- id?: string;
39019
- ok?: boolean;
39020
- };
39021
- Relationships: [{
39022
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39023
- columns: ["connection_id"];
39024
- isOneToOne: false;
39025
- referencedRelation: "twinfield_connections";
39026
- referencedColumns: ["id"];
39027
- }];
39028
- };
39029
38959
  user_roles: {
39030
38960
  Row: {
39031
38961
  created_at: string;
@@ -41466,15 +41396,16 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
41466
41396
  };
41467
41397
  Returns: undefined;
41468
41398
  };
41469
- twinfield_decrypt: {
41399
+ twinfield_upsert_connection_by_account_key: {
41470
41400
  Args: {
41471
- cipher: string;
41472
- };
41473
- Returns: string;
41474
- };
41475
- twinfield_encrypt: {
41476
- Args: {
41477
- plain: string;
41401
+ p_account_key: string;
41402
+ p_cluster_uri?: string;
41403
+ p_company_code?: string;
41404
+ p_company_name?: string;
41405
+ p_environment: string;
41406
+ p_office_code?: string;
41407
+ p_status?: string;
41408
+ p_user_id: string;
41478
41409
  };
41479
41410
  Returns: string;
41480
41411
  };
@@ -46043,6 +45974,27 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
46043
45974
  referencedColumns: ["id"];
46044
45975
  }];
46045
45976
  };
45977
+ floriday_continuous_stock_cache: {
45978
+ Row: {
45979
+ connection_id: string;
45980
+ fetched_at: string;
45981
+ number_of_pieces: number;
45982
+ trade_item_id: string;
45983
+ };
45984
+ Insert: {
45985
+ connection_id: string;
45986
+ fetched_at?: string;
45987
+ number_of_pieces?: number;
45988
+ trade_item_id: string;
45989
+ };
45990
+ Update: {
45991
+ connection_id?: string;
45992
+ fetched_at?: string;
45993
+ number_of_pieces?: number;
45994
+ trade_item_id?: string;
45995
+ };
45996
+ Relationships: [];
45997
+ };
46046
45998
  floriday_continuous_stock_queue: {
46047
45999
  Row: {
46048
46000
  attempts: number;
@@ -47021,6 +46973,45 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
47021
46973
  referencedColumns: ["id"];
47022
46974
  }];
47023
46975
  };
46976
+ floriday_trade_settings_customers_cache: {
46977
+ Row: {
46978
+ connection_id: string;
46979
+ data: import("../integrations/supabase/types").Json;
46980
+ fetched_at: string;
46981
+ floriday_id: string;
46982
+ id: string;
46983
+ is_deleted: boolean;
46984
+ sequence_number: number;
46985
+ updated_at: string;
46986
+ };
46987
+ Insert: {
46988
+ connection_id: string;
46989
+ data: import("../integrations/supabase/types").Json;
46990
+ fetched_at?: string;
46991
+ floriday_id: string;
46992
+ id?: string;
46993
+ is_deleted?: boolean;
46994
+ sequence_number?: number;
46995
+ updated_at?: string;
46996
+ };
46997
+ Update: {
46998
+ connection_id?: string;
46999
+ data?: import("../integrations/supabase/types").Json;
47000
+ fetched_at?: string;
47001
+ floriday_id?: string;
47002
+ id?: string;
47003
+ is_deleted?: boolean;
47004
+ sequence_number?: number;
47005
+ updated_at?: string;
47006
+ };
47007
+ Relationships: [{
47008
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
47009
+ columns: ["connection_id"];
47010
+ isOneToOne: false;
47011
+ referencedRelation: "floriday_connections";
47012
+ referencedColumns: ["id"];
47013
+ }];
47014
+ };
47024
47015
  floriday_trips_cache: {
47025
47016
  Row: {
47026
47017
  carrier_organization_id: string | null;
@@ -47069,6 +47060,27 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
47069
47060
  referencedColumns: ["id"];
47070
47061
  }];
47071
47062
  };
47063
+ floriday_vbn_required_characteristics: {
47064
+ Row: {
47065
+ required_codes: string[];
47066
+ updated_at: string;
47067
+ updated_by: string | null;
47068
+ vbn_code: string;
47069
+ };
47070
+ Insert: {
47071
+ required_codes?: string[];
47072
+ updated_at?: string;
47073
+ updated_by?: string | null;
47074
+ vbn_code: string;
47075
+ };
47076
+ Update: {
47077
+ required_codes?: string[];
47078
+ updated_at?: string;
47079
+ updated_by?: string | null;
47080
+ vbn_code?: string;
47081
+ };
47082
+ Relationships: [];
47083
+ };
47072
47084
  floriday_warehouses_cache: {
47073
47085
  Row: {
47074
47086
  connection_id: string;
@@ -52042,9 +52054,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
52042
52054
  };
52043
52055
  twinfield_connections: {
52044
52056
  Row: {
52045
- access_token: string | null;
52046
- client_id: string;
52047
- client_secret: string | null;
52057
+ account_key: string | null;
52048
52058
  cluster_uri: string | null;
52049
52059
  company_code: string | null;
52050
52060
  company_name: string | null;
@@ -52055,16 +52065,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
52055
52065
  is_active: boolean;
52056
52066
  label: string | null;
52057
52067
  office_code: string | null;
52058
- redirect_uri: string;
52059
- refresh_token: string | null;
52060
- token_expires_at: string | null;
52068
+ redirect_uri: string | null;
52061
52069
  updated_at: string;
52062
52070
  user_id: string;
52063
52071
  };
52064
52072
  Insert: {
52065
- access_token?: string | null;
52066
- client_id: string;
52067
- client_secret?: string | null;
52073
+ account_key?: string | null;
52068
52074
  cluster_uri?: string | null;
52069
52075
  company_code?: string | null;
52070
52076
  company_name?: string | null;
@@ -52075,16 +52081,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
52075
52081
  is_active?: boolean;
52076
52082
  label?: string | null;
52077
52083
  office_code?: string | null;
52078
- redirect_uri: string;
52079
- refresh_token?: string | null;
52080
- token_expires_at?: string | null;
52084
+ redirect_uri?: string | null;
52081
52085
  updated_at?: string;
52082
52086
  user_id: string;
52083
52087
  };
52084
52088
  Update: {
52085
- access_token?: string | null;
52086
- client_id?: string;
52087
- client_secret?: string | null;
52089
+ account_key?: string | null;
52088
52090
  cluster_uri?: string | null;
52089
52091
  company_code?: string | null;
52090
52092
  company_name?: string | null;
@@ -52095,54 +52097,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
52095
52097
  is_active?: boolean;
52096
52098
  label?: string | null;
52097
52099
  office_code?: string | null;
52098
- redirect_uri?: string;
52099
- refresh_token?: string | null;
52100
- token_expires_at?: string | null;
52101
- updated_at?: string;
52102
- user_id?: string;
52103
- };
52104
- Relationships: [];
52105
- };
52106
- twinfield_credentials: {
52107
- Row: {
52108
- administration_code: string | null;
52109
- client_id: string | null;
52110
- client_secret: string | null;
52111
- cluster: string | null;
52112
- connected_at: string | null;
52113
- created_at: string;
52114
- environment: string | null;
52115
- id: string;
52116
- redirect_uri: string | null;
52117
- refresh_token: string | null;
52118
- updated_at: string;
52119
- user_id: string;
52120
- };
52121
- Insert: {
52122
- administration_code?: string | null;
52123
- client_id?: string | null;
52124
- client_secret?: string | null;
52125
- cluster?: string | null;
52126
- connected_at?: string | null;
52127
- created_at?: string;
52128
- environment?: string | null;
52129
- id?: string;
52130
52100
  redirect_uri?: string | null;
52131
- refresh_token?: string | null;
52132
- updated_at?: string;
52133
- user_id: string;
52134
- };
52135
- Update: {
52136
- administration_code?: string | null;
52137
- client_id?: string | null;
52138
- client_secret?: string | null;
52139
- cluster?: string | null;
52140
- connected_at?: string | null;
52141
- created_at?: string;
52142
- environment?: string | null;
52143
- id?: string;
52144
- redirect_uri?: string | null;
52145
- refresh_token?: string | null;
52146
52101
  updated_at?: string;
52147
52102
  user_id?: string;
52148
52103
  };
@@ -52589,12 +52544,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
52589
52544
  currency: string | null;
52590
52545
  customer_code: string | null;
52591
52546
  data: import("../integrations/supabase/types").Json;
52547
+ deleted_at: string | null;
52592
52548
  due_date: string | null;
52593
52549
  fetched_at: string;
52594
52550
  invoice_date: string | null;
52595
52551
  invoice_number: string;
52552
+ lines_fetched_at: string | null;
52596
52553
  modified_at: string | null;
52597
52554
  outstanding_amount: number | null;
52555
+ paid_at: string | null;
52598
52556
  status: string | null;
52599
52557
  status_label: string | null;
52600
52558
  total_excl: number | null;
@@ -52606,12 +52564,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
52606
52564
  currency?: string | null;
52607
52565
  customer_code?: string | null;
52608
52566
  data?: import("../integrations/supabase/types").Json;
52567
+ deleted_at?: string | null;
52609
52568
  due_date?: string | null;
52610
52569
  fetched_at?: string;
52611
52570
  invoice_date?: string | null;
52612
52571
  invoice_number: string;
52572
+ lines_fetched_at?: string | null;
52613
52573
  modified_at?: string | null;
52614
52574
  outstanding_amount?: number | null;
52575
+ paid_at?: string | null;
52615
52576
  status?: string | null;
52616
52577
  status_label?: string | null;
52617
52578
  total_excl?: number | null;
@@ -52623,12 +52584,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
52623
52584
  currency?: string | null;
52624
52585
  customer_code?: string | null;
52625
52586
  data?: import("../integrations/supabase/types").Json;
52587
+ deleted_at?: string | null;
52626
52588
  due_date?: string | null;
52627
52589
  fetched_at?: string;
52628
52590
  invoice_date?: string | null;
52629
52591
  invoice_number?: string;
52592
+ lines_fetched_at?: string | null;
52630
52593
  modified_at?: string | null;
52631
52594
  outstanding_amount?: number | null;
52595
+ paid_at?: string | null;
52632
52596
  status?: string | null;
52633
52597
  status_label?: string | null;
52634
52598
  total_excl?: number | null;
@@ -52643,30 +52607,6 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
52643
52607
  referencedColumns: ["id"];
52644
52608
  }];
52645
52609
  };
52646
- twinfield_oauth_state: {
52647
- Row: {
52648
- created_at: string;
52649
- environment: string;
52650
- nonce: string | null;
52651
- state: string;
52652
- user_id: string;
52653
- };
52654
- Insert: {
52655
- created_at?: string;
52656
- environment: string;
52657
- nonce?: string | null;
52658
- state: string;
52659
- user_id: string;
52660
- };
52661
- Update: {
52662
- created_at?: string;
52663
- environment?: string;
52664
- nonce?: string | null;
52665
- state?: string;
52666
- user_id?: string;
52667
- };
52668
- Relationships: [];
52669
- };
52670
52610
  twinfield_push_queue: {
52671
52611
  Row: {
52672
52612
  action: string;
@@ -52832,39 +52772,6 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
52832
52772
  referencedColumns: ["id"];
52833
52773
  }];
52834
52774
  };
52835
- twinfield_token_refresh_log: {
52836
- Row: {
52837
- attempted_at: string;
52838
- connection_id: string;
52839
- error: string | null;
52840
- expires_at: string | null;
52841
- id: string;
52842
- ok: boolean;
52843
- };
52844
- Insert: {
52845
- attempted_at?: string;
52846
- connection_id: string;
52847
- error?: string | null;
52848
- expires_at?: string | null;
52849
- id?: string;
52850
- ok: boolean;
52851
- };
52852
- Update: {
52853
- attempted_at?: string;
52854
- connection_id?: string;
52855
- error?: string | null;
52856
- expires_at?: string | null;
52857
- id?: string;
52858
- ok?: boolean;
52859
- };
52860
- Relationships: [{
52861
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
52862
- columns: ["connection_id"];
52863
- isOneToOne: false;
52864
- referencedRelation: "twinfield_connections";
52865
- referencedColumns: ["id"];
52866
- }];
52867
- };
52868
52775
  user_roles: {
52869
52776
  Row: {
52870
52777
  created_at: string;
@@ -55305,15 +55212,16 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
55305
55212
  };
55306
55213
  Returns: undefined;
55307
55214
  };
55308
- twinfield_decrypt: {
55215
+ twinfield_upsert_connection_by_account_key: {
55309
55216
  Args: {
55310
- cipher: string;
55311
- };
55312
- Returns: string;
55313
- };
55314
- twinfield_encrypt: {
55315
- Args: {
55316
- plain: string;
55217
+ p_account_key: string;
55218
+ p_cluster_uri?: string;
55219
+ p_company_code?: string;
55220
+ p_company_name?: string;
55221
+ p_environment: string;
55222
+ p_office_code?: string;
55223
+ p_status?: string;
55224
+ p_user_id: string;
55317
55225
  };
55318
55226
  Returns: string;
55319
55227
  };
@@ -59879,6 +59787,27 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
59879
59787
  referencedColumns: ["id"];
59880
59788
  }];
59881
59789
  };
59790
+ floriday_continuous_stock_cache: {
59791
+ Row: {
59792
+ connection_id: string;
59793
+ fetched_at: string;
59794
+ number_of_pieces: number;
59795
+ trade_item_id: string;
59796
+ };
59797
+ Insert: {
59798
+ connection_id: string;
59799
+ fetched_at?: string;
59800
+ number_of_pieces?: number;
59801
+ trade_item_id: string;
59802
+ };
59803
+ Update: {
59804
+ connection_id?: string;
59805
+ fetched_at?: string;
59806
+ number_of_pieces?: number;
59807
+ trade_item_id?: string;
59808
+ };
59809
+ Relationships: [];
59810
+ };
59882
59811
  floriday_continuous_stock_queue: {
59883
59812
  Row: {
59884
59813
  attempts: number;
@@ -60857,6 +60786,45 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
60857
60786
  referencedColumns: ["id"];
60858
60787
  }];
60859
60788
  };
60789
+ floriday_trade_settings_customers_cache: {
60790
+ Row: {
60791
+ connection_id: string;
60792
+ data: import("../integrations/supabase/types").Json;
60793
+ fetched_at: string;
60794
+ floriday_id: string;
60795
+ id: string;
60796
+ is_deleted: boolean;
60797
+ sequence_number: number;
60798
+ updated_at: string;
60799
+ };
60800
+ Insert: {
60801
+ connection_id: string;
60802
+ data: import("../integrations/supabase/types").Json;
60803
+ fetched_at?: string;
60804
+ floriday_id: string;
60805
+ id?: string;
60806
+ is_deleted?: boolean;
60807
+ sequence_number?: number;
60808
+ updated_at?: string;
60809
+ };
60810
+ Update: {
60811
+ connection_id?: string;
60812
+ data?: import("../integrations/supabase/types").Json;
60813
+ fetched_at?: string;
60814
+ floriday_id?: string;
60815
+ id?: string;
60816
+ is_deleted?: boolean;
60817
+ sequence_number?: number;
60818
+ updated_at?: string;
60819
+ };
60820
+ Relationships: [{
60821
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
60822
+ columns: ["connection_id"];
60823
+ isOneToOne: false;
60824
+ referencedRelation: "floriday_connections";
60825
+ referencedColumns: ["id"];
60826
+ }];
60827
+ };
60860
60828
  floriday_trips_cache: {
60861
60829
  Row: {
60862
60830
  carrier_organization_id: string | null;
@@ -60905,6 +60873,27 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
60905
60873
  referencedColumns: ["id"];
60906
60874
  }];
60907
60875
  };
60876
+ floriday_vbn_required_characteristics: {
60877
+ Row: {
60878
+ required_codes: string[];
60879
+ updated_at: string;
60880
+ updated_by: string | null;
60881
+ vbn_code: string;
60882
+ };
60883
+ Insert: {
60884
+ required_codes?: string[];
60885
+ updated_at?: string;
60886
+ updated_by?: string | null;
60887
+ vbn_code: string;
60888
+ };
60889
+ Update: {
60890
+ required_codes?: string[];
60891
+ updated_at?: string;
60892
+ updated_by?: string | null;
60893
+ vbn_code?: string;
60894
+ };
60895
+ Relationships: [];
60896
+ };
60908
60897
  floriday_warehouses_cache: {
60909
60898
  Row: {
60910
60899
  connection_id: string;
@@ -65878,9 +65867,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
65878
65867
  };
65879
65868
  twinfield_connections: {
65880
65869
  Row: {
65881
- access_token: string | null;
65882
- client_id: string;
65883
- client_secret: string | null;
65870
+ account_key: string | null;
65884
65871
  cluster_uri: string | null;
65885
65872
  company_code: string | null;
65886
65873
  company_name: string | null;
@@ -65891,16 +65878,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
65891
65878
  is_active: boolean;
65892
65879
  label: string | null;
65893
65880
  office_code: string | null;
65894
- redirect_uri: string;
65895
- refresh_token: string | null;
65896
- token_expires_at: string | null;
65881
+ redirect_uri: string | null;
65897
65882
  updated_at: string;
65898
65883
  user_id: string;
65899
65884
  };
65900
65885
  Insert: {
65901
- access_token?: string | null;
65902
- client_id: string;
65903
- client_secret?: string | null;
65886
+ account_key?: string | null;
65904
65887
  cluster_uri?: string | null;
65905
65888
  company_code?: string | null;
65906
65889
  company_name?: string | null;
@@ -65911,16 +65894,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
65911
65894
  is_active?: boolean;
65912
65895
  label?: string | null;
65913
65896
  office_code?: string | null;
65914
- redirect_uri: string;
65915
- refresh_token?: string | null;
65916
- token_expires_at?: string | null;
65897
+ redirect_uri?: string | null;
65917
65898
  updated_at?: string;
65918
65899
  user_id: string;
65919
65900
  };
65920
65901
  Update: {
65921
- access_token?: string | null;
65922
- client_id?: string;
65923
- client_secret?: string | null;
65902
+ account_key?: string | null;
65924
65903
  cluster_uri?: string | null;
65925
65904
  company_code?: string | null;
65926
65905
  company_name?: string | null;
@@ -65931,54 +65910,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
65931
65910
  is_active?: boolean;
65932
65911
  label?: string | null;
65933
65912
  office_code?: string | null;
65934
- redirect_uri?: string;
65935
- refresh_token?: string | null;
65936
- token_expires_at?: string | null;
65937
- updated_at?: string;
65938
- user_id?: string;
65939
- };
65940
- Relationships: [];
65941
- };
65942
- twinfield_credentials: {
65943
- Row: {
65944
- administration_code: string | null;
65945
- client_id: string | null;
65946
- client_secret: string | null;
65947
- cluster: string | null;
65948
- connected_at: string | null;
65949
- created_at: string;
65950
- environment: string | null;
65951
- id: string;
65952
- redirect_uri: string | null;
65953
- refresh_token: string | null;
65954
- updated_at: string;
65955
- user_id: string;
65956
- };
65957
- Insert: {
65958
- administration_code?: string | null;
65959
- client_id?: string | null;
65960
- client_secret?: string | null;
65961
- cluster?: string | null;
65962
- connected_at?: string | null;
65963
- created_at?: string;
65964
- environment?: string | null;
65965
- id?: string;
65966
- redirect_uri?: string | null;
65967
- refresh_token?: string | null;
65968
- updated_at?: string;
65969
- user_id: string;
65970
- };
65971
- Update: {
65972
- administration_code?: string | null;
65973
- client_id?: string | null;
65974
- client_secret?: string | null;
65975
- cluster?: string | null;
65976
- connected_at?: string | null;
65977
- created_at?: string;
65978
- environment?: string | null;
65979
- id?: string;
65980
65913
  redirect_uri?: string | null;
65981
- refresh_token?: string | null;
65982
65914
  updated_at?: string;
65983
65915
  user_id?: string;
65984
65916
  };
@@ -66425,12 +66357,15 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
66425
66357
  currency: string | null;
66426
66358
  customer_code: string | null;
66427
66359
  data: import("../integrations/supabase/types").Json;
66360
+ deleted_at: string | null;
66428
66361
  due_date: string | null;
66429
66362
  fetched_at: string;
66430
66363
  invoice_date: string | null;
66431
66364
  invoice_number: string;
66365
+ lines_fetched_at: string | null;
66432
66366
  modified_at: string | null;
66433
66367
  outstanding_amount: number | null;
66368
+ paid_at: string | null;
66434
66369
  status: string | null;
66435
66370
  status_label: string | null;
66436
66371
  total_excl: number | null;
@@ -66442,12 +66377,15 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
66442
66377
  currency?: string | null;
66443
66378
  customer_code?: string | null;
66444
66379
  data?: import("../integrations/supabase/types").Json;
66380
+ deleted_at?: string | null;
66445
66381
  due_date?: string | null;
66446
66382
  fetched_at?: string;
66447
66383
  invoice_date?: string | null;
66448
66384
  invoice_number: string;
66385
+ lines_fetched_at?: string | null;
66449
66386
  modified_at?: string | null;
66450
66387
  outstanding_amount?: number | null;
66388
+ paid_at?: string | null;
66451
66389
  status?: string | null;
66452
66390
  status_label?: string | null;
66453
66391
  total_excl?: number | null;
@@ -66459,12 +66397,15 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
66459
66397
  currency?: string | null;
66460
66398
  customer_code?: string | null;
66461
66399
  data?: import("../integrations/supabase/types").Json;
66400
+ deleted_at?: string | null;
66462
66401
  due_date?: string | null;
66463
66402
  fetched_at?: string;
66464
66403
  invoice_date?: string | null;
66465
66404
  invoice_number?: string;
66405
+ lines_fetched_at?: string | null;
66466
66406
  modified_at?: string | null;
66467
66407
  outstanding_amount?: number | null;
66408
+ paid_at?: string | null;
66468
66409
  status?: string | null;
66469
66410
  status_label?: string | null;
66470
66411
  total_excl?: number | null;
@@ -66479,30 +66420,6 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
66479
66420
  referencedColumns: ["id"];
66480
66421
  }];
66481
66422
  };
66482
- twinfield_oauth_state: {
66483
- Row: {
66484
- created_at: string;
66485
- environment: string;
66486
- nonce: string | null;
66487
- state: string;
66488
- user_id: string;
66489
- };
66490
- Insert: {
66491
- created_at?: string;
66492
- environment: string;
66493
- nonce?: string | null;
66494
- state: string;
66495
- user_id: string;
66496
- };
66497
- Update: {
66498
- created_at?: string;
66499
- environment?: string;
66500
- nonce?: string | null;
66501
- state?: string;
66502
- user_id?: string;
66503
- };
66504
- Relationships: [];
66505
- };
66506
66423
  twinfield_push_queue: {
66507
66424
  Row: {
66508
66425
  action: string;
@@ -66668,39 +66585,6 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
66668
66585
  referencedColumns: ["id"];
66669
66586
  }];
66670
66587
  };
66671
- twinfield_token_refresh_log: {
66672
- Row: {
66673
- attempted_at: string;
66674
- connection_id: string;
66675
- error: string | null;
66676
- expires_at: string | null;
66677
- id: string;
66678
- ok: boolean;
66679
- };
66680
- Insert: {
66681
- attempted_at?: string;
66682
- connection_id: string;
66683
- error?: string | null;
66684
- expires_at?: string | null;
66685
- id?: string;
66686
- ok: boolean;
66687
- };
66688
- Update: {
66689
- attempted_at?: string;
66690
- connection_id?: string;
66691
- error?: string | null;
66692
- expires_at?: string | null;
66693
- id?: string;
66694
- ok?: boolean;
66695
- };
66696
- Relationships: [{
66697
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
66698
- columns: ["connection_id"];
66699
- isOneToOne: false;
66700
- referencedRelation: "twinfield_connections";
66701
- referencedColumns: ["id"];
66702
- }];
66703
- };
66704
66588
  user_roles: {
66705
66589
  Row: {
66706
66590
  created_at: string;
@@ -69141,15 +69025,16 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
69141
69025
  };
69142
69026
  Returns: undefined;
69143
69027
  };
69144
- twinfield_decrypt: {
69028
+ twinfield_upsert_connection_by_account_key: {
69145
69029
  Args: {
69146
- cipher: string;
69147
- };
69148
- Returns: string;
69149
- };
69150
- twinfield_encrypt: {
69151
- Args: {
69152
- plain: string;
69030
+ p_account_key: string;
69031
+ p_cluster_uri?: string;
69032
+ p_company_code?: string;
69033
+ p_company_name?: string;
69034
+ p_environment: string;
69035
+ p_office_code?: string;
69036
+ p_status?: string;
69037
+ p_user_id: string;
69153
69038
  };
69154
69039
  Returns: string;
69155
69040
  };