@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
@@ -4547,6 +4547,27 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
4547
4547
  referencedColumns: ["id"];
4548
4548
  }];
4549
4549
  };
4550
+ floriday_continuous_stock_cache: {
4551
+ Row: {
4552
+ connection_id: string;
4553
+ fetched_at: string;
4554
+ number_of_pieces: number;
4555
+ trade_item_id: string;
4556
+ };
4557
+ Insert: {
4558
+ connection_id: string;
4559
+ fetched_at?: string;
4560
+ number_of_pieces?: number;
4561
+ trade_item_id: string;
4562
+ };
4563
+ Update: {
4564
+ connection_id?: string;
4565
+ fetched_at?: string;
4566
+ number_of_pieces?: number;
4567
+ trade_item_id?: string;
4568
+ };
4569
+ Relationships: [];
4570
+ };
4550
4571
  floriday_continuous_stock_queue: {
4551
4572
  Row: {
4552
4573
  attempts: number;
@@ -5525,6 +5546,45 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5525
5546
  referencedColumns: ["id"];
5526
5547
  }];
5527
5548
  };
5549
+ floriday_trade_settings_customers_cache: {
5550
+ Row: {
5551
+ connection_id: string;
5552
+ data: import("../integrations/supabase/types").Json;
5553
+ fetched_at: string;
5554
+ floriday_id: string;
5555
+ id: string;
5556
+ is_deleted: boolean;
5557
+ sequence_number: number;
5558
+ updated_at: string;
5559
+ };
5560
+ Insert: {
5561
+ connection_id: string;
5562
+ data: import("../integrations/supabase/types").Json;
5563
+ fetched_at?: string;
5564
+ floriday_id: string;
5565
+ id?: string;
5566
+ is_deleted?: boolean;
5567
+ sequence_number?: number;
5568
+ updated_at?: string;
5569
+ };
5570
+ Update: {
5571
+ connection_id?: string;
5572
+ data?: import("../integrations/supabase/types").Json;
5573
+ fetched_at?: string;
5574
+ floriday_id?: string;
5575
+ id?: string;
5576
+ is_deleted?: boolean;
5577
+ sequence_number?: number;
5578
+ updated_at?: string;
5579
+ };
5580
+ Relationships: [{
5581
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5582
+ columns: ["connection_id"];
5583
+ isOneToOne: false;
5584
+ referencedRelation: "floriday_connections";
5585
+ referencedColumns: ["id"];
5586
+ }];
5587
+ };
5528
5588
  floriday_trips_cache: {
5529
5589
  Row: {
5530
5590
  carrier_organization_id: string | null;
@@ -5573,6 +5633,27 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5573
5633
  referencedColumns: ["id"];
5574
5634
  }];
5575
5635
  };
5636
+ floriday_vbn_required_characteristics: {
5637
+ Row: {
5638
+ required_codes: string[];
5639
+ updated_at: string;
5640
+ updated_by: string | null;
5641
+ vbn_code: string;
5642
+ };
5643
+ Insert: {
5644
+ required_codes?: string[];
5645
+ updated_at?: string;
5646
+ updated_by?: string | null;
5647
+ vbn_code: string;
5648
+ };
5649
+ Update: {
5650
+ required_codes?: string[];
5651
+ updated_at?: string;
5652
+ updated_by?: string | null;
5653
+ vbn_code?: string;
5654
+ };
5655
+ Relationships: [];
5656
+ };
5576
5657
  floriday_warehouses_cache: {
5577
5658
  Row: {
5578
5659
  connection_id: string;
@@ -10546,9 +10627,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10546
10627
  };
10547
10628
  twinfield_connections: {
10548
10629
  Row: {
10549
- access_token: string | null;
10550
- client_id: string;
10551
- client_secret: string | null;
10630
+ account_key: string | null;
10552
10631
  cluster_uri: string | null;
10553
10632
  company_code: string | null;
10554
10633
  company_name: string | null;
@@ -10559,16 +10638,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10559
10638
  is_active: boolean;
10560
10639
  label: string | null;
10561
10640
  office_code: string | null;
10562
- redirect_uri: string;
10563
- refresh_token: string | null;
10564
- token_expires_at: string | null;
10641
+ redirect_uri: string | null;
10565
10642
  updated_at: string;
10566
10643
  user_id: string;
10567
10644
  };
10568
10645
  Insert: {
10569
- access_token?: string | null;
10570
- client_id: string;
10571
- client_secret?: string | null;
10646
+ account_key?: string | null;
10572
10647
  cluster_uri?: string | null;
10573
10648
  company_code?: string | null;
10574
10649
  company_name?: string | null;
@@ -10579,16 +10654,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10579
10654
  is_active?: boolean;
10580
10655
  label?: string | null;
10581
10656
  office_code?: string | null;
10582
- redirect_uri: string;
10583
- refresh_token?: string | null;
10584
- token_expires_at?: string | null;
10657
+ redirect_uri?: string | null;
10585
10658
  updated_at?: string;
10586
10659
  user_id: string;
10587
10660
  };
10588
10661
  Update: {
10589
- access_token?: string | null;
10590
- client_id?: string;
10591
- client_secret?: string | null;
10662
+ account_key?: string | null;
10592
10663
  cluster_uri?: string | null;
10593
10664
  company_code?: string | null;
10594
10665
  company_name?: string | null;
@@ -10599,54 +10670,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10599
10670
  is_active?: boolean;
10600
10671
  label?: string | null;
10601
10672
  office_code?: string | null;
10602
- redirect_uri?: string;
10603
- refresh_token?: string | null;
10604
- token_expires_at?: string | null;
10605
- updated_at?: string;
10606
- user_id?: string;
10607
- };
10608
- Relationships: [];
10609
- };
10610
- twinfield_credentials: {
10611
- Row: {
10612
- administration_code: string | null;
10613
- client_id: string | null;
10614
- client_secret: string | null;
10615
- cluster: string | null;
10616
- connected_at: string | null;
10617
- created_at: string;
10618
- environment: string | null;
10619
- id: string;
10620
- redirect_uri: string | null;
10621
- refresh_token: string | null;
10622
- updated_at: string;
10623
- user_id: string;
10624
- };
10625
- Insert: {
10626
- administration_code?: string | null;
10627
- client_id?: string | null;
10628
- client_secret?: string | null;
10629
- cluster?: string | null;
10630
- connected_at?: string | null;
10631
- created_at?: string;
10632
- environment?: string | null;
10633
- id?: string;
10634
- redirect_uri?: string | null;
10635
- refresh_token?: string | null;
10636
- updated_at?: string;
10637
- user_id: string;
10638
- };
10639
- Update: {
10640
- administration_code?: string | null;
10641
- client_id?: string | null;
10642
- client_secret?: string | null;
10643
- cluster?: string | null;
10644
- connected_at?: string | null;
10645
- created_at?: string;
10646
- environment?: string | null;
10647
- id?: string;
10648
10673
  redirect_uri?: string | null;
10649
- refresh_token?: string | null;
10650
10674
  updated_at?: string;
10651
10675
  user_id?: string;
10652
10676
  };
@@ -11093,12 +11117,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11093
11117
  currency: string | null;
11094
11118
  customer_code: string | null;
11095
11119
  data: import("../integrations/supabase/types").Json;
11120
+ deleted_at: string | null;
11096
11121
  due_date: string | null;
11097
11122
  fetched_at: string;
11098
11123
  invoice_date: string | null;
11099
11124
  invoice_number: string;
11125
+ lines_fetched_at: string | null;
11100
11126
  modified_at: string | null;
11101
11127
  outstanding_amount: number | null;
11128
+ paid_at: string | null;
11102
11129
  status: string | null;
11103
11130
  status_label: string | null;
11104
11131
  total_excl: number | null;
@@ -11110,12 +11137,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11110
11137
  currency?: string | null;
11111
11138
  customer_code?: string | null;
11112
11139
  data?: import("../integrations/supabase/types").Json;
11140
+ deleted_at?: string | null;
11113
11141
  due_date?: string | null;
11114
11142
  fetched_at?: string;
11115
11143
  invoice_date?: string | null;
11116
11144
  invoice_number: string;
11145
+ lines_fetched_at?: string | null;
11117
11146
  modified_at?: string | null;
11118
11147
  outstanding_amount?: number | null;
11148
+ paid_at?: string | null;
11119
11149
  status?: string | null;
11120
11150
  status_label?: string | null;
11121
11151
  total_excl?: number | null;
@@ -11127,12 +11157,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11127
11157
  currency?: string | null;
11128
11158
  customer_code?: string | null;
11129
11159
  data?: import("../integrations/supabase/types").Json;
11160
+ deleted_at?: string | null;
11130
11161
  due_date?: string | null;
11131
11162
  fetched_at?: string;
11132
11163
  invoice_date?: string | null;
11133
11164
  invoice_number?: string;
11165
+ lines_fetched_at?: string | null;
11134
11166
  modified_at?: string | null;
11135
11167
  outstanding_amount?: number | null;
11168
+ paid_at?: string | null;
11136
11169
  status?: string | null;
11137
11170
  status_label?: string | null;
11138
11171
  total_excl?: number | null;
@@ -11147,30 +11180,6 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11147
11180
  referencedColumns: ["id"];
11148
11181
  }];
11149
11182
  };
11150
- twinfield_oauth_state: {
11151
- Row: {
11152
- created_at: string;
11153
- environment: string;
11154
- nonce: string | null;
11155
- state: string;
11156
- user_id: string;
11157
- };
11158
- Insert: {
11159
- created_at?: string;
11160
- environment: string;
11161
- nonce?: string | null;
11162
- state: string;
11163
- user_id: string;
11164
- };
11165
- Update: {
11166
- created_at?: string;
11167
- environment?: string;
11168
- nonce?: string | null;
11169
- state?: string;
11170
- user_id?: string;
11171
- };
11172
- Relationships: [];
11173
- };
11174
11183
  twinfield_push_queue: {
11175
11184
  Row: {
11176
11185
  action: string;
@@ -11336,39 +11345,6 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11336
11345
  referencedColumns: ["id"];
11337
11346
  }];
11338
11347
  };
11339
- twinfield_token_refresh_log: {
11340
- Row: {
11341
- attempted_at: string;
11342
- connection_id: string;
11343
- error: string | null;
11344
- expires_at: string | null;
11345
- id: string;
11346
- ok: boolean;
11347
- };
11348
- Insert: {
11349
- attempted_at?: string;
11350
- connection_id: string;
11351
- error?: string | null;
11352
- expires_at?: string | null;
11353
- id?: string;
11354
- ok: boolean;
11355
- };
11356
- Update: {
11357
- attempted_at?: string;
11358
- connection_id?: string;
11359
- error?: string | null;
11360
- expires_at?: string | null;
11361
- id?: string;
11362
- ok?: boolean;
11363
- };
11364
- Relationships: [{
11365
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11366
- columns: ["connection_id"];
11367
- isOneToOne: false;
11368
- referencedRelation: "twinfield_connections";
11369
- referencedColumns: ["id"];
11370
- }];
11371
- };
11372
11348
  user_roles: {
11373
11349
  Row: {
11374
11350
  created_at: string;
@@ -13809,15 +13785,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13809
13785
  };
13810
13786
  Returns: undefined;
13811
13787
  };
13812
- twinfield_decrypt: {
13813
- Args: {
13814
- cipher: string;
13815
- };
13816
- Returns: string;
13817
- };
13818
- twinfield_encrypt: {
13788
+ twinfield_upsert_connection_by_account_key: {
13819
13789
  Args: {
13820
- plain: string;
13790
+ p_account_key: string;
13791
+ p_cluster_uri?: string;
13792
+ p_company_code?: string;
13793
+ p_company_name?: string;
13794
+ p_environment: string;
13795
+ p_office_code?: string;
13796
+ p_status?: string;
13797
+ p_user_id: string;
13821
13798
  };
13822
13799
  Returns: string;
13823
13800
  };
@@ -18399,6 +18376,27 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
18399
18376
  referencedColumns: ["id"];
18400
18377
  }];
18401
18378
  };
18379
+ floriday_continuous_stock_cache: {
18380
+ Row: {
18381
+ connection_id: string;
18382
+ fetched_at: string;
18383
+ number_of_pieces: number;
18384
+ trade_item_id: string;
18385
+ };
18386
+ Insert: {
18387
+ connection_id: string;
18388
+ fetched_at?: string;
18389
+ number_of_pieces?: number;
18390
+ trade_item_id: string;
18391
+ };
18392
+ Update: {
18393
+ connection_id?: string;
18394
+ fetched_at?: string;
18395
+ number_of_pieces?: number;
18396
+ trade_item_id?: string;
18397
+ };
18398
+ Relationships: [];
18399
+ };
18402
18400
  floriday_continuous_stock_queue: {
18403
18401
  Row: {
18404
18402
  attempts: number;
@@ -19377,6 +19375,45 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
19377
19375
  referencedColumns: ["id"];
19378
19376
  }];
19379
19377
  };
19378
+ floriday_trade_settings_customers_cache: {
19379
+ Row: {
19380
+ connection_id: string;
19381
+ data: import("../integrations/supabase/types").Json;
19382
+ fetched_at: string;
19383
+ floriday_id: string;
19384
+ id: string;
19385
+ is_deleted: boolean;
19386
+ sequence_number: number;
19387
+ updated_at: string;
19388
+ };
19389
+ Insert: {
19390
+ connection_id: string;
19391
+ data: import("../integrations/supabase/types").Json;
19392
+ fetched_at?: string;
19393
+ floriday_id: string;
19394
+ id?: string;
19395
+ is_deleted?: boolean;
19396
+ sequence_number?: number;
19397
+ updated_at?: string;
19398
+ };
19399
+ Update: {
19400
+ connection_id?: string;
19401
+ data?: import("../integrations/supabase/types").Json;
19402
+ fetched_at?: string;
19403
+ floriday_id?: string;
19404
+ id?: string;
19405
+ is_deleted?: boolean;
19406
+ sequence_number?: number;
19407
+ updated_at?: string;
19408
+ };
19409
+ Relationships: [{
19410
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19411
+ columns: ["connection_id"];
19412
+ isOneToOne: false;
19413
+ referencedRelation: "floriday_connections";
19414
+ referencedColumns: ["id"];
19415
+ }];
19416
+ };
19380
19417
  floriday_trips_cache: {
19381
19418
  Row: {
19382
19419
  carrier_organization_id: string | null;
@@ -19425,6 +19462,27 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
19425
19462
  referencedColumns: ["id"];
19426
19463
  }];
19427
19464
  };
19465
+ floriday_vbn_required_characteristics: {
19466
+ Row: {
19467
+ required_codes: string[];
19468
+ updated_at: string;
19469
+ updated_by: string | null;
19470
+ vbn_code: string;
19471
+ };
19472
+ Insert: {
19473
+ required_codes?: string[];
19474
+ updated_at?: string;
19475
+ updated_by?: string | null;
19476
+ vbn_code: string;
19477
+ };
19478
+ Update: {
19479
+ required_codes?: string[];
19480
+ updated_at?: string;
19481
+ updated_by?: string | null;
19482
+ vbn_code?: string;
19483
+ };
19484
+ Relationships: [];
19485
+ };
19428
19486
  floriday_warehouses_cache: {
19429
19487
  Row: {
19430
19488
  connection_id: string;
@@ -24398,9 +24456,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
24398
24456
  };
24399
24457
  twinfield_connections: {
24400
24458
  Row: {
24401
- access_token: string | null;
24402
- client_id: string;
24403
- client_secret: string | null;
24459
+ account_key: string | null;
24404
24460
  cluster_uri: string | null;
24405
24461
  company_code: string | null;
24406
24462
  company_name: string | null;
@@ -24411,16 +24467,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
24411
24467
  is_active: boolean;
24412
24468
  label: string | null;
24413
24469
  office_code: string | null;
24414
- redirect_uri: string;
24415
- refresh_token: string | null;
24416
- token_expires_at: string | null;
24470
+ redirect_uri: string | null;
24417
24471
  updated_at: string;
24418
24472
  user_id: string;
24419
24473
  };
24420
24474
  Insert: {
24421
- access_token?: string | null;
24422
- client_id: string;
24423
- client_secret?: string | null;
24475
+ account_key?: string | null;
24424
24476
  cluster_uri?: string | null;
24425
24477
  company_code?: string | null;
24426
24478
  company_name?: string | null;
@@ -24431,16 +24483,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
24431
24483
  is_active?: boolean;
24432
24484
  label?: string | null;
24433
24485
  office_code?: string | null;
24434
- redirect_uri: string;
24435
- refresh_token?: string | null;
24436
- token_expires_at?: string | null;
24486
+ redirect_uri?: string | null;
24437
24487
  updated_at?: string;
24438
24488
  user_id: string;
24439
24489
  };
24440
24490
  Update: {
24441
- access_token?: string | null;
24442
- client_id?: string;
24443
- client_secret?: string | null;
24491
+ account_key?: string | null;
24444
24492
  cluster_uri?: string | null;
24445
24493
  company_code?: string | null;
24446
24494
  company_name?: string | null;
@@ -24451,54 +24499,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
24451
24499
  is_active?: boolean;
24452
24500
  label?: string | null;
24453
24501
  office_code?: string | null;
24454
- redirect_uri?: string;
24455
- refresh_token?: string | null;
24456
- token_expires_at?: string | null;
24457
- updated_at?: string;
24458
- user_id?: string;
24459
- };
24460
- Relationships: [];
24461
- };
24462
- twinfield_credentials: {
24463
- Row: {
24464
- administration_code: string | null;
24465
- client_id: string | null;
24466
- client_secret: string | null;
24467
- cluster: string | null;
24468
- connected_at: string | null;
24469
- created_at: string;
24470
- environment: string | null;
24471
- id: string;
24472
- redirect_uri: string | null;
24473
- refresh_token: string | null;
24474
- updated_at: string;
24475
- user_id: string;
24476
- };
24477
- Insert: {
24478
- administration_code?: string | null;
24479
- client_id?: string | null;
24480
- client_secret?: string | null;
24481
- cluster?: string | null;
24482
- connected_at?: string | null;
24483
- created_at?: string;
24484
- environment?: string | null;
24485
- id?: string;
24486
- redirect_uri?: string | null;
24487
- refresh_token?: string | null;
24488
- updated_at?: string;
24489
- user_id: string;
24490
- };
24491
- Update: {
24492
- administration_code?: string | null;
24493
- client_id?: string | null;
24494
- client_secret?: string | null;
24495
- cluster?: string | null;
24496
- connected_at?: string | null;
24497
- created_at?: string;
24498
- environment?: string | null;
24499
- id?: string;
24500
24502
  redirect_uri?: string | null;
24501
- refresh_token?: string | null;
24502
24503
  updated_at?: string;
24503
24504
  user_id?: string;
24504
24505
  };
@@ -24945,12 +24946,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
24945
24946
  currency: string | null;
24946
24947
  customer_code: string | null;
24947
24948
  data: import("../integrations/supabase/types").Json;
24949
+ deleted_at: string | null;
24948
24950
  due_date: string | null;
24949
24951
  fetched_at: string;
24950
24952
  invoice_date: string | null;
24951
24953
  invoice_number: string;
24954
+ lines_fetched_at: string | null;
24952
24955
  modified_at: string | null;
24953
24956
  outstanding_amount: number | null;
24957
+ paid_at: string | null;
24954
24958
  status: string | null;
24955
24959
  status_label: string | null;
24956
24960
  total_excl: number | null;
@@ -24962,12 +24966,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
24962
24966
  currency?: string | null;
24963
24967
  customer_code?: string | null;
24964
24968
  data?: import("../integrations/supabase/types").Json;
24969
+ deleted_at?: string | null;
24965
24970
  due_date?: string | null;
24966
24971
  fetched_at?: string;
24967
24972
  invoice_date?: string | null;
24968
24973
  invoice_number: string;
24974
+ lines_fetched_at?: string | null;
24969
24975
  modified_at?: string | null;
24970
24976
  outstanding_amount?: number | null;
24977
+ paid_at?: string | null;
24971
24978
  status?: string | null;
24972
24979
  status_label?: string | null;
24973
24980
  total_excl?: number | null;
@@ -24979,12 +24986,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
24979
24986
  currency?: string | null;
24980
24987
  customer_code?: string | null;
24981
24988
  data?: import("../integrations/supabase/types").Json;
24989
+ deleted_at?: string | null;
24982
24990
  due_date?: string | null;
24983
24991
  fetched_at?: string;
24984
24992
  invoice_date?: string | null;
24985
24993
  invoice_number?: string;
24994
+ lines_fetched_at?: string | null;
24986
24995
  modified_at?: string | null;
24987
24996
  outstanding_amount?: number | null;
24997
+ paid_at?: string | null;
24988
24998
  status?: string | null;
24989
24999
  status_label?: string | null;
24990
25000
  total_excl?: number | null;
@@ -24999,30 +25009,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
24999
25009
  referencedColumns: ["id"];
25000
25010
  }];
25001
25011
  };
25002
- twinfield_oauth_state: {
25003
- Row: {
25004
- created_at: string;
25005
- environment: string;
25006
- nonce: string | null;
25007
- state: string;
25008
- user_id: string;
25009
- };
25010
- Insert: {
25011
- created_at?: string;
25012
- environment: string;
25013
- nonce?: string | null;
25014
- state: string;
25015
- user_id: string;
25016
- };
25017
- Update: {
25018
- created_at?: string;
25019
- environment?: string;
25020
- nonce?: string | null;
25021
- state?: string;
25022
- user_id?: string;
25023
- };
25024
- Relationships: [];
25025
- };
25026
25012
  twinfield_push_queue: {
25027
25013
  Row: {
25028
25014
  action: string;
@@ -25188,39 +25174,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
25188
25174
  referencedColumns: ["id"];
25189
25175
  }];
25190
25176
  };
25191
- twinfield_token_refresh_log: {
25192
- Row: {
25193
- attempted_at: string;
25194
- connection_id: string;
25195
- error: string | null;
25196
- expires_at: string | null;
25197
- id: string;
25198
- ok: boolean;
25199
- };
25200
- Insert: {
25201
- attempted_at?: string;
25202
- connection_id: string;
25203
- error?: string | null;
25204
- expires_at?: string | null;
25205
- id?: string;
25206
- ok: boolean;
25207
- };
25208
- Update: {
25209
- attempted_at?: string;
25210
- connection_id?: string;
25211
- error?: string | null;
25212
- expires_at?: string | null;
25213
- id?: string;
25214
- ok?: boolean;
25215
- };
25216
- Relationships: [{
25217
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25218
- columns: ["connection_id"];
25219
- isOneToOne: false;
25220
- referencedRelation: "twinfield_connections";
25221
- referencedColumns: ["id"];
25222
- }];
25223
- };
25224
25177
  user_roles: {
25225
25178
  Row: {
25226
25179
  created_at: string;
@@ -27661,15 +27614,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
27661
27614
  };
27662
27615
  Returns: undefined;
27663
27616
  };
27664
- twinfield_decrypt: {
27665
- Args: {
27666
- cipher: string;
27667
- };
27668
- Returns: string;
27669
- };
27670
- twinfield_encrypt: {
27617
+ twinfield_upsert_connection_by_account_key: {
27671
27618
  Args: {
27672
- plain: string;
27619
+ p_account_key: string;
27620
+ p_cluster_uri?: string;
27621
+ p_company_code?: string;
27622
+ p_company_name?: string;
27623
+ p_environment: string;
27624
+ p_office_code?: string;
27625
+ p_status?: string;
27626
+ p_user_id: string;
27673
27627
  };
27674
27628
  Returns: string;
27675
27629
  };
@@ -32262,6 +32216,27 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
32262
32216
  referencedColumns: ["id"];
32263
32217
  }];
32264
32218
  };
32219
+ floriday_continuous_stock_cache: {
32220
+ Row: {
32221
+ connection_id: string;
32222
+ fetched_at: string;
32223
+ number_of_pieces: number;
32224
+ trade_item_id: string;
32225
+ };
32226
+ Insert: {
32227
+ connection_id: string;
32228
+ fetched_at?: string;
32229
+ number_of_pieces?: number;
32230
+ trade_item_id: string;
32231
+ };
32232
+ Update: {
32233
+ connection_id?: string;
32234
+ fetched_at?: string;
32235
+ number_of_pieces?: number;
32236
+ trade_item_id?: string;
32237
+ };
32238
+ Relationships: [];
32239
+ };
32265
32240
  floriday_continuous_stock_queue: {
32266
32241
  Row: {
32267
32242
  attempts: number;
@@ -33240,6 +33215,45 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
33240
33215
  referencedColumns: ["id"];
33241
33216
  }];
33242
33217
  };
33218
+ floriday_trade_settings_customers_cache: {
33219
+ Row: {
33220
+ connection_id: string;
33221
+ data: import("../integrations/supabase/types").Json;
33222
+ fetched_at: string;
33223
+ floriday_id: string;
33224
+ id: string;
33225
+ is_deleted: boolean;
33226
+ sequence_number: number;
33227
+ updated_at: string;
33228
+ };
33229
+ Insert: {
33230
+ connection_id: string;
33231
+ data: import("../integrations/supabase/types").Json;
33232
+ fetched_at?: string;
33233
+ floriday_id: string;
33234
+ id?: string;
33235
+ is_deleted?: boolean;
33236
+ sequence_number?: number;
33237
+ updated_at?: string;
33238
+ };
33239
+ Update: {
33240
+ connection_id?: string;
33241
+ data?: import("../integrations/supabase/types").Json;
33242
+ fetched_at?: string;
33243
+ floriday_id?: string;
33244
+ id?: string;
33245
+ is_deleted?: boolean;
33246
+ sequence_number?: number;
33247
+ updated_at?: string;
33248
+ };
33249
+ Relationships: [{
33250
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33251
+ columns: ["connection_id"];
33252
+ isOneToOne: false;
33253
+ referencedRelation: "floriday_connections";
33254
+ referencedColumns: ["id"];
33255
+ }];
33256
+ };
33243
33257
  floriday_trips_cache: {
33244
33258
  Row: {
33245
33259
  carrier_organization_id: string | null;
@@ -33288,6 +33302,27 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
33288
33302
  referencedColumns: ["id"];
33289
33303
  }];
33290
33304
  };
33305
+ floriday_vbn_required_characteristics: {
33306
+ Row: {
33307
+ required_codes: string[];
33308
+ updated_at: string;
33309
+ updated_by: string | null;
33310
+ vbn_code: string;
33311
+ };
33312
+ Insert: {
33313
+ required_codes?: string[];
33314
+ updated_at?: string;
33315
+ updated_by?: string | null;
33316
+ vbn_code: string;
33317
+ };
33318
+ Update: {
33319
+ required_codes?: string[];
33320
+ updated_at?: string;
33321
+ updated_by?: string | null;
33322
+ vbn_code?: string;
33323
+ };
33324
+ Relationships: [];
33325
+ };
33291
33326
  floriday_warehouses_cache: {
33292
33327
  Row: {
33293
33328
  connection_id: string;
@@ -38261,9 +38296,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
38261
38296
  };
38262
38297
  twinfield_connections: {
38263
38298
  Row: {
38264
- access_token: string | null;
38265
- client_id: string;
38266
- client_secret: string | null;
38299
+ account_key: string | null;
38267
38300
  cluster_uri: string | null;
38268
38301
  company_code: string | null;
38269
38302
  company_name: string | null;
@@ -38274,16 +38307,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
38274
38307
  is_active: boolean;
38275
38308
  label: string | null;
38276
38309
  office_code: string | null;
38277
- redirect_uri: string;
38278
- refresh_token: string | null;
38279
- token_expires_at: string | null;
38310
+ redirect_uri: string | null;
38280
38311
  updated_at: string;
38281
38312
  user_id: string;
38282
38313
  };
38283
38314
  Insert: {
38284
- access_token?: string | null;
38285
- client_id: string;
38286
- client_secret?: string | null;
38315
+ account_key?: string | null;
38287
38316
  cluster_uri?: string | null;
38288
38317
  company_code?: string | null;
38289
38318
  company_name?: string | null;
@@ -38294,16 +38323,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
38294
38323
  is_active?: boolean;
38295
38324
  label?: string | null;
38296
38325
  office_code?: string | null;
38297
- redirect_uri: string;
38298
- refresh_token?: string | null;
38299
- token_expires_at?: string | null;
38326
+ redirect_uri?: string | null;
38300
38327
  updated_at?: string;
38301
38328
  user_id: string;
38302
38329
  };
38303
38330
  Update: {
38304
- access_token?: string | null;
38305
- client_id?: string;
38306
- client_secret?: string | null;
38331
+ account_key?: string | null;
38307
38332
  cluster_uri?: string | null;
38308
38333
  company_code?: string | null;
38309
38334
  company_name?: string | null;
@@ -38314,54 +38339,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
38314
38339
  is_active?: boolean;
38315
38340
  label?: string | null;
38316
38341
  office_code?: string | null;
38317
- redirect_uri?: string;
38318
- refresh_token?: string | null;
38319
- token_expires_at?: string | null;
38320
- updated_at?: string;
38321
- user_id?: string;
38322
- };
38323
- Relationships: [];
38324
- };
38325
- twinfield_credentials: {
38326
- Row: {
38327
- administration_code: string | null;
38328
- client_id: string | null;
38329
- client_secret: string | null;
38330
- cluster: string | null;
38331
- connected_at: string | null;
38332
- created_at: string;
38333
- environment: string | null;
38334
- id: string;
38335
- redirect_uri: string | null;
38336
- refresh_token: string | null;
38337
- updated_at: string;
38338
- user_id: string;
38339
- };
38340
- Insert: {
38341
- administration_code?: string | null;
38342
- client_id?: string | null;
38343
- client_secret?: string | null;
38344
- cluster?: string | null;
38345
- connected_at?: string | null;
38346
- created_at?: string;
38347
- environment?: string | null;
38348
- id?: string;
38349
- redirect_uri?: string | null;
38350
- refresh_token?: string | null;
38351
- updated_at?: string;
38352
- user_id: string;
38353
- };
38354
- Update: {
38355
- administration_code?: string | null;
38356
- client_id?: string | null;
38357
- client_secret?: string | null;
38358
- cluster?: string | null;
38359
- connected_at?: string | null;
38360
- created_at?: string;
38361
- environment?: string | null;
38362
- id?: string;
38363
38342
  redirect_uri?: string | null;
38364
- refresh_token?: string | null;
38365
38343
  updated_at?: string;
38366
38344
  user_id?: string;
38367
38345
  };
@@ -38808,12 +38786,15 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
38808
38786
  currency: string | null;
38809
38787
  customer_code: string | null;
38810
38788
  data: import("../integrations/supabase/types").Json;
38789
+ deleted_at: string | null;
38811
38790
  due_date: string | null;
38812
38791
  fetched_at: string;
38813
38792
  invoice_date: string | null;
38814
38793
  invoice_number: string;
38794
+ lines_fetched_at: string | null;
38815
38795
  modified_at: string | null;
38816
38796
  outstanding_amount: number | null;
38797
+ paid_at: string | null;
38817
38798
  status: string | null;
38818
38799
  status_label: string | null;
38819
38800
  total_excl: number | null;
@@ -38825,12 +38806,15 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
38825
38806
  currency?: string | null;
38826
38807
  customer_code?: string | null;
38827
38808
  data?: import("../integrations/supabase/types").Json;
38809
+ deleted_at?: string | null;
38828
38810
  due_date?: string | null;
38829
38811
  fetched_at?: string;
38830
38812
  invoice_date?: string | null;
38831
38813
  invoice_number: string;
38814
+ lines_fetched_at?: string | null;
38832
38815
  modified_at?: string | null;
38833
38816
  outstanding_amount?: number | null;
38817
+ paid_at?: string | null;
38834
38818
  status?: string | null;
38835
38819
  status_label?: string | null;
38836
38820
  total_excl?: number | null;
@@ -38842,12 +38826,15 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
38842
38826
  currency?: string | null;
38843
38827
  customer_code?: string | null;
38844
38828
  data?: import("../integrations/supabase/types").Json;
38829
+ deleted_at?: string | null;
38845
38830
  due_date?: string | null;
38846
38831
  fetched_at?: string;
38847
38832
  invoice_date?: string | null;
38848
38833
  invoice_number?: string;
38834
+ lines_fetched_at?: string | null;
38849
38835
  modified_at?: string | null;
38850
38836
  outstanding_amount?: number | null;
38837
+ paid_at?: string | null;
38851
38838
  status?: string | null;
38852
38839
  status_label?: string | null;
38853
38840
  total_excl?: number | null;
@@ -38862,30 +38849,6 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
38862
38849
  referencedColumns: ["id"];
38863
38850
  }];
38864
38851
  };
38865
- twinfield_oauth_state: {
38866
- Row: {
38867
- created_at: string;
38868
- environment: string;
38869
- nonce: string | null;
38870
- state: string;
38871
- user_id: string;
38872
- };
38873
- Insert: {
38874
- created_at?: string;
38875
- environment: string;
38876
- nonce?: string | null;
38877
- state: string;
38878
- user_id: string;
38879
- };
38880
- Update: {
38881
- created_at?: string;
38882
- environment?: string;
38883
- nonce?: string | null;
38884
- state?: string;
38885
- user_id?: string;
38886
- };
38887
- Relationships: [];
38888
- };
38889
38852
  twinfield_push_queue: {
38890
38853
  Row: {
38891
38854
  action: string;
@@ -39051,39 +39014,6 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
39051
39014
  referencedColumns: ["id"];
39052
39015
  }];
39053
39016
  };
39054
- twinfield_token_refresh_log: {
39055
- Row: {
39056
- attempted_at: string;
39057
- connection_id: string;
39058
- error: string | null;
39059
- expires_at: string | null;
39060
- id: string;
39061
- ok: boolean;
39062
- };
39063
- Insert: {
39064
- attempted_at?: string;
39065
- connection_id: string;
39066
- error?: string | null;
39067
- expires_at?: string | null;
39068
- id?: string;
39069
- ok: boolean;
39070
- };
39071
- Update: {
39072
- attempted_at?: string;
39073
- connection_id?: string;
39074
- error?: string | null;
39075
- expires_at?: string | null;
39076
- id?: string;
39077
- ok?: boolean;
39078
- };
39079
- Relationships: [{
39080
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39081
- columns: ["connection_id"];
39082
- isOneToOne: false;
39083
- referencedRelation: "twinfield_connections";
39084
- referencedColumns: ["id"];
39085
- }];
39086
- };
39087
39017
  user_roles: {
39088
39018
  Row: {
39089
39019
  created_at: string;
@@ -41524,15 +41454,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
41524
41454
  };
41525
41455
  Returns: undefined;
41526
41456
  };
41527
- twinfield_decrypt: {
41457
+ twinfield_upsert_connection_by_account_key: {
41528
41458
  Args: {
41529
- cipher: string;
41530
- };
41531
- Returns: string;
41532
- };
41533
- twinfield_encrypt: {
41534
- Args: {
41535
- plain: string;
41459
+ p_account_key: string;
41460
+ p_cluster_uri?: string;
41461
+ p_company_code?: string;
41462
+ p_company_name?: string;
41463
+ p_environment: string;
41464
+ p_office_code?: string;
41465
+ p_status?: string;
41466
+ p_user_id: string;
41536
41467
  };
41537
41468
  Returns: string;
41538
41469
  };