@flowselections/floriday-verkoop-module 1.0.26 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +1 -1
  2. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -1
  3. package/dist-lib/components/karindeling/KarindelingPage.d.ts +1 -1
  4. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  6. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +1 -1
  8. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  10. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  11. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  12. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  13. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  14. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  15. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  16. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  17. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  18. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  19. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  20. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  21. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  22. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  23. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  24. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  25. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  26. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  27. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  28. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  29. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  30. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  31. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  32. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  33. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +2 -1
  34. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  35. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  36. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  37. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  38. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  39. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  40. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  41. package/dist-lib/index.d.ts +0 -1
  42. package/dist-lib/index.d.ts.map +1 -1
  43. package/dist-lib/index.js +5 -11
  44. package/dist-lib/integrations/supabase/auth-middleware.d.ts +104 -127
  45. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  46. package/dist-lib/integrations/supabase/client.d.ts +104 -127
  47. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  48. package/dist-lib/integrations/supabase/client.server.d.ts +104 -127
  49. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  50. package/dist-lib/integrations/supabase/types.d.ts +106 -129
  51. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  52. package/dist-lib/lib/cart-lock.functions.d.ts +104 -127
  53. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/cart-planning-settings.functions.d.ts +1144 -1397
  55. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/cart-replan.functions.d.ts +312 -381
  57. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/create-order.functions.d.ts +1248 -1524
  59. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +312 -381
  61. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +104 -127
  63. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/floriday-mirror.functions.d.ts +104 -127
  65. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/floriday-public.functions.d.ts +728 -889
  67. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/floriday-writes.functions.d.ts +520 -635
  69. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/order-buffers.functions.d.ts +312 -381
  71. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/order-shipments.functions.d.ts +416 -508
  73. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/salesorders.functions.d.ts +520 -635
  75. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/tradeitems.functions.d.ts +104 -127
  77. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  78. package/package.json +1 -1
  79. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +0 -9
  80. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +0 -1
  81. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +0 -26
  82. package/dist-lib/components/ui/dropdown-menu.d.ts +0 -9
  83. package/dist-lib/components/ui/dropdown-menu.d.ts.map +0 -1
  84. package/dist-lib/components/ui/dropdown-menu.js +0 -14
  85. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +0 -5
  86. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +0 -1
  87. package/dist-lib/components/verkoop/CreateOrderDialog.js +0 -33
  88. package/dist-lib/lib/floriday/floriday.server.d.ts +0 -14
  89. package/dist-lib/lib/floriday/floriday.server.d.ts.map +0 -1
  90. package/dist-lib/lib/floriday/floriday.server.js +0 -92
  91. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +0 -4736
  92. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +0 -1
  93. package/dist-lib/lib/floriday/sales-orders.functions.js +0 -193
@@ -4548,6 +4548,27 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
4548
4548
  referencedColumns: ["id"];
4549
4549
  }];
4550
4550
  };
4551
+ floriday_continuous_stock_cache: {
4552
+ Row: {
4553
+ connection_id: string;
4554
+ fetched_at: string;
4555
+ number_of_pieces: number;
4556
+ trade_item_id: string;
4557
+ };
4558
+ Insert: {
4559
+ connection_id: string;
4560
+ fetched_at?: string;
4561
+ number_of_pieces?: number;
4562
+ trade_item_id: string;
4563
+ };
4564
+ Update: {
4565
+ connection_id?: string;
4566
+ fetched_at?: string;
4567
+ number_of_pieces?: number;
4568
+ trade_item_id?: string;
4569
+ };
4570
+ Relationships: [];
4571
+ };
4551
4572
  floriday_continuous_stock_queue: {
4552
4573
  Row: {
4553
4574
  attempts: number;
@@ -5526,6 +5547,45 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5526
5547
  referencedColumns: ["id"];
5527
5548
  }];
5528
5549
  };
5550
+ floriday_trade_settings_customers_cache: {
5551
+ Row: {
5552
+ connection_id: string;
5553
+ data: import("../integrations/supabase/types").Json;
5554
+ fetched_at: string;
5555
+ floriday_id: string;
5556
+ id: string;
5557
+ is_deleted: boolean;
5558
+ sequence_number: number;
5559
+ updated_at: string;
5560
+ };
5561
+ Insert: {
5562
+ connection_id: string;
5563
+ data: import("../integrations/supabase/types").Json;
5564
+ fetched_at?: string;
5565
+ floriday_id: string;
5566
+ id?: string;
5567
+ is_deleted?: boolean;
5568
+ sequence_number?: number;
5569
+ updated_at?: string;
5570
+ };
5571
+ Update: {
5572
+ connection_id?: string;
5573
+ data?: import("../integrations/supabase/types").Json;
5574
+ fetched_at?: string;
5575
+ floriday_id?: string;
5576
+ id?: string;
5577
+ is_deleted?: boolean;
5578
+ sequence_number?: number;
5579
+ updated_at?: string;
5580
+ };
5581
+ Relationships: [{
5582
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5583
+ columns: ["connection_id"];
5584
+ isOneToOne: false;
5585
+ referencedRelation: "floriday_connections";
5586
+ referencedColumns: ["id"];
5587
+ }];
5588
+ };
5529
5589
  floriday_trips_cache: {
5530
5590
  Row: {
5531
5591
  carrier_organization_id: string | null;
@@ -5574,6 +5634,27 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5574
5634
  referencedColumns: ["id"];
5575
5635
  }];
5576
5636
  };
5637
+ floriday_vbn_required_characteristics: {
5638
+ Row: {
5639
+ required_codes: string[];
5640
+ updated_at: string;
5641
+ updated_by: string | null;
5642
+ vbn_code: string;
5643
+ };
5644
+ Insert: {
5645
+ required_codes?: string[];
5646
+ updated_at?: string;
5647
+ updated_by?: string | null;
5648
+ vbn_code: string;
5649
+ };
5650
+ Update: {
5651
+ required_codes?: string[];
5652
+ updated_at?: string;
5653
+ updated_by?: string | null;
5654
+ vbn_code?: string;
5655
+ };
5656
+ Relationships: [];
5657
+ };
5577
5658
  floriday_warehouses_cache: {
5578
5659
  Row: {
5579
5660
  connection_id: string;
@@ -10547,9 +10628,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10547
10628
  };
10548
10629
  twinfield_connections: {
10549
10630
  Row: {
10550
- access_token: string | null;
10551
- client_id: string;
10552
- client_secret: string | null;
10631
+ account_key: string | null;
10553
10632
  cluster_uri: string | null;
10554
10633
  company_code: string | null;
10555
10634
  company_name: string | null;
@@ -10560,16 +10639,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10560
10639
  is_active: boolean;
10561
10640
  label: string | null;
10562
10641
  office_code: string | null;
10563
- redirect_uri: string;
10564
- refresh_token: string | null;
10565
- token_expires_at: string | null;
10642
+ redirect_uri: string | null;
10566
10643
  updated_at: string;
10567
10644
  user_id: string;
10568
10645
  };
10569
10646
  Insert: {
10570
- access_token?: string | null;
10571
- client_id: string;
10572
- client_secret?: string | null;
10647
+ account_key?: string | null;
10573
10648
  cluster_uri?: string | null;
10574
10649
  company_code?: string | null;
10575
10650
  company_name?: string | null;
@@ -10580,16 +10655,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10580
10655
  is_active?: boolean;
10581
10656
  label?: string | null;
10582
10657
  office_code?: string | null;
10583
- redirect_uri: string;
10584
- refresh_token?: string | null;
10585
- token_expires_at?: string | null;
10658
+ redirect_uri?: string | null;
10586
10659
  updated_at?: string;
10587
10660
  user_id: string;
10588
10661
  };
10589
10662
  Update: {
10590
- access_token?: string | null;
10591
- client_id?: string;
10592
- client_secret?: string | null;
10663
+ account_key?: string | null;
10593
10664
  cluster_uri?: string | null;
10594
10665
  company_code?: string | null;
10595
10666
  company_name?: string | null;
@@ -10600,54 +10671,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10600
10671
  is_active?: boolean;
10601
10672
  label?: string | null;
10602
10673
  office_code?: string | null;
10603
- redirect_uri?: string;
10604
- refresh_token?: string | null;
10605
- token_expires_at?: string | null;
10606
- updated_at?: string;
10607
- user_id?: string;
10608
- };
10609
- Relationships: [];
10610
- };
10611
- twinfield_credentials: {
10612
- Row: {
10613
- administration_code: string | null;
10614
- client_id: string | null;
10615
- client_secret: string | null;
10616
- cluster: string | null;
10617
- connected_at: string | null;
10618
- created_at: string;
10619
- environment: string | null;
10620
- id: string;
10621
- redirect_uri: string | null;
10622
- refresh_token: string | null;
10623
- updated_at: string;
10624
- user_id: string;
10625
- };
10626
- Insert: {
10627
- administration_code?: string | null;
10628
- client_id?: string | null;
10629
- client_secret?: string | null;
10630
- cluster?: string | null;
10631
- connected_at?: string | null;
10632
- created_at?: string;
10633
- environment?: string | null;
10634
- id?: string;
10635
- redirect_uri?: string | null;
10636
- refresh_token?: string | null;
10637
- updated_at?: string;
10638
- user_id: string;
10639
- };
10640
- Update: {
10641
- administration_code?: string | null;
10642
- client_id?: string | null;
10643
- client_secret?: string | null;
10644
- cluster?: string | null;
10645
- connected_at?: string | null;
10646
- created_at?: string;
10647
- environment?: string | null;
10648
- id?: string;
10649
10674
  redirect_uri?: string | null;
10650
- refresh_token?: string | null;
10651
10675
  updated_at?: string;
10652
10676
  user_id?: string;
10653
10677
  };
@@ -11094,12 +11118,15 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11094
11118
  currency: string | null;
11095
11119
  customer_code: string | null;
11096
11120
  data: import("../integrations/supabase/types").Json;
11121
+ deleted_at: string | null;
11097
11122
  due_date: string | null;
11098
11123
  fetched_at: string;
11099
11124
  invoice_date: string | null;
11100
11125
  invoice_number: string;
11126
+ lines_fetched_at: string | null;
11101
11127
  modified_at: string | null;
11102
11128
  outstanding_amount: number | null;
11129
+ paid_at: string | null;
11103
11130
  status: string | null;
11104
11131
  status_label: string | null;
11105
11132
  total_excl: number | null;
@@ -11111,12 +11138,15 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11111
11138
  currency?: string | null;
11112
11139
  customer_code?: string | null;
11113
11140
  data?: import("../integrations/supabase/types").Json;
11141
+ deleted_at?: string | null;
11114
11142
  due_date?: string | null;
11115
11143
  fetched_at?: string;
11116
11144
  invoice_date?: string | null;
11117
11145
  invoice_number: string;
11146
+ lines_fetched_at?: string | null;
11118
11147
  modified_at?: string | null;
11119
11148
  outstanding_amount?: number | null;
11149
+ paid_at?: string | null;
11120
11150
  status?: string | null;
11121
11151
  status_label?: string | null;
11122
11152
  total_excl?: number | null;
@@ -11128,12 +11158,15 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11128
11158
  currency?: string | null;
11129
11159
  customer_code?: string | null;
11130
11160
  data?: import("../integrations/supabase/types").Json;
11161
+ deleted_at?: string | null;
11131
11162
  due_date?: string | null;
11132
11163
  fetched_at?: string;
11133
11164
  invoice_date?: string | null;
11134
11165
  invoice_number?: string;
11166
+ lines_fetched_at?: string | null;
11135
11167
  modified_at?: string | null;
11136
11168
  outstanding_amount?: number | null;
11169
+ paid_at?: string | null;
11137
11170
  status?: string | null;
11138
11171
  status_label?: string | null;
11139
11172
  total_excl?: number | null;
@@ -11148,30 +11181,6 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11148
11181
  referencedColumns: ["id"];
11149
11182
  }];
11150
11183
  };
11151
- twinfield_oauth_state: {
11152
- Row: {
11153
- created_at: string;
11154
- environment: string;
11155
- nonce: string | null;
11156
- state: string;
11157
- user_id: string;
11158
- };
11159
- Insert: {
11160
- created_at?: string;
11161
- environment: string;
11162
- nonce?: string | null;
11163
- state: string;
11164
- user_id: string;
11165
- };
11166
- Update: {
11167
- created_at?: string;
11168
- environment?: string;
11169
- nonce?: string | null;
11170
- state?: string;
11171
- user_id?: string;
11172
- };
11173
- Relationships: [];
11174
- };
11175
11184
  twinfield_push_queue: {
11176
11185
  Row: {
11177
11186
  action: string;
@@ -11337,39 +11346,6 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11337
11346
  referencedColumns: ["id"];
11338
11347
  }];
11339
11348
  };
11340
- twinfield_token_refresh_log: {
11341
- Row: {
11342
- attempted_at: string;
11343
- connection_id: string;
11344
- error: string | null;
11345
- expires_at: string | null;
11346
- id: string;
11347
- ok: boolean;
11348
- };
11349
- Insert: {
11350
- attempted_at?: string;
11351
- connection_id: string;
11352
- error?: string | null;
11353
- expires_at?: string | null;
11354
- id?: string;
11355
- ok: boolean;
11356
- };
11357
- Update: {
11358
- attempted_at?: string;
11359
- connection_id?: string;
11360
- error?: string | null;
11361
- expires_at?: string | null;
11362
- id?: string;
11363
- ok?: boolean;
11364
- };
11365
- Relationships: [{
11366
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11367
- columns: ["connection_id"];
11368
- isOneToOne: false;
11369
- referencedRelation: "twinfield_connections";
11370
- referencedColumns: ["id"];
11371
- }];
11372
- };
11373
11349
  user_roles: {
11374
11350
  Row: {
11375
11351
  created_at: string;
@@ -13810,15 +13786,16 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13810
13786
  };
13811
13787
  Returns: undefined;
13812
13788
  };
13813
- twinfield_decrypt: {
13814
- Args: {
13815
- cipher: string;
13816
- };
13817
- Returns: string;
13818
- };
13819
- twinfield_encrypt: {
13789
+ twinfield_upsert_connection_by_account_key: {
13820
13790
  Args: {
13821
- plain: string;
13791
+ p_account_key: string;
13792
+ p_cluster_uri?: string;
13793
+ p_company_code?: string;
13794
+ p_company_name?: string;
13795
+ p_environment: string;
13796
+ p_office_code?: string;
13797
+ p_status?: string;
13798
+ p_user_id: string;
13822
13799
  };
13823
13800
  Returns: string;
13824
13801
  };
@@ -18383,6 +18360,27 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
18383
18360
  referencedColumns: ["id"];
18384
18361
  }];
18385
18362
  };
18363
+ floriday_continuous_stock_cache: {
18364
+ Row: {
18365
+ connection_id: string;
18366
+ fetched_at: string;
18367
+ number_of_pieces: number;
18368
+ trade_item_id: string;
18369
+ };
18370
+ Insert: {
18371
+ connection_id: string;
18372
+ fetched_at?: string;
18373
+ number_of_pieces?: number;
18374
+ trade_item_id: string;
18375
+ };
18376
+ Update: {
18377
+ connection_id?: string;
18378
+ fetched_at?: string;
18379
+ number_of_pieces?: number;
18380
+ trade_item_id?: string;
18381
+ };
18382
+ Relationships: [];
18383
+ };
18386
18384
  floriday_continuous_stock_queue: {
18387
18385
  Row: {
18388
18386
  attempts: number;
@@ -19361,6 +19359,45 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
19361
19359
  referencedColumns: ["id"];
19362
19360
  }];
19363
19361
  };
19362
+ floriday_trade_settings_customers_cache: {
19363
+ Row: {
19364
+ connection_id: string;
19365
+ data: import("../integrations/supabase/types").Json;
19366
+ fetched_at: string;
19367
+ floriday_id: string;
19368
+ id: string;
19369
+ is_deleted: boolean;
19370
+ sequence_number: number;
19371
+ updated_at: string;
19372
+ };
19373
+ Insert: {
19374
+ connection_id: string;
19375
+ data: import("../integrations/supabase/types").Json;
19376
+ fetched_at?: string;
19377
+ floriday_id: string;
19378
+ id?: string;
19379
+ is_deleted?: boolean;
19380
+ sequence_number?: number;
19381
+ updated_at?: string;
19382
+ };
19383
+ Update: {
19384
+ connection_id?: string;
19385
+ data?: import("../integrations/supabase/types").Json;
19386
+ fetched_at?: string;
19387
+ floriday_id?: string;
19388
+ id?: string;
19389
+ is_deleted?: boolean;
19390
+ sequence_number?: number;
19391
+ updated_at?: string;
19392
+ };
19393
+ Relationships: [{
19394
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19395
+ columns: ["connection_id"];
19396
+ isOneToOne: false;
19397
+ referencedRelation: "floriday_connections";
19398
+ referencedColumns: ["id"];
19399
+ }];
19400
+ };
19364
19401
  floriday_trips_cache: {
19365
19402
  Row: {
19366
19403
  carrier_organization_id: string | null;
@@ -19409,6 +19446,27 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
19409
19446
  referencedColumns: ["id"];
19410
19447
  }];
19411
19448
  };
19449
+ floriday_vbn_required_characteristics: {
19450
+ Row: {
19451
+ required_codes: string[];
19452
+ updated_at: string;
19453
+ updated_by: string | null;
19454
+ vbn_code: string;
19455
+ };
19456
+ Insert: {
19457
+ required_codes?: string[];
19458
+ updated_at?: string;
19459
+ updated_by?: string | null;
19460
+ vbn_code: string;
19461
+ };
19462
+ Update: {
19463
+ required_codes?: string[];
19464
+ updated_at?: string;
19465
+ updated_by?: string | null;
19466
+ vbn_code?: string;
19467
+ };
19468
+ Relationships: [];
19469
+ };
19412
19470
  floriday_warehouses_cache: {
19413
19471
  Row: {
19414
19472
  connection_id: string;
@@ -24382,9 +24440,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
24382
24440
  };
24383
24441
  twinfield_connections: {
24384
24442
  Row: {
24385
- access_token: string | null;
24386
- client_id: string;
24387
- client_secret: string | null;
24443
+ account_key: string | null;
24388
24444
  cluster_uri: string | null;
24389
24445
  company_code: string | null;
24390
24446
  company_name: string | null;
@@ -24395,16 +24451,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
24395
24451
  is_active: boolean;
24396
24452
  label: string | null;
24397
24453
  office_code: string | null;
24398
- redirect_uri: string;
24399
- refresh_token: string | null;
24400
- token_expires_at: string | null;
24454
+ redirect_uri: string | null;
24401
24455
  updated_at: string;
24402
24456
  user_id: string;
24403
24457
  };
24404
24458
  Insert: {
24405
- access_token?: string | null;
24406
- client_id: string;
24407
- client_secret?: string | null;
24459
+ account_key?: string | null;
24408
24460
  cluster_uri?: string | null;
24409
24461
  company_code?: string | null;
24410
24462
  company_name?: string | null;
@@ -24415,16 +24467,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
24415
24467
  is_active?: boolean;
24416
24468
  label?: string | null;
24417
24469
  office_code?: string | null;
24418
- redirect_uri: string;
24419
- refresh_token?: string | null;
24420
- token_expires_at?: string | null;
24470
+ redirect_uri?: string | null;
24421
24471
  updated_at?: string;
24422
24472
  user_id: string;
24423
24473
  };
24424
24474
  Update: {
24425
- access_token?: string | null;
24426
- client_id?: string;
24427
- client_secret?: string | null;
24475
+ account_key?: string | null;
24428
24476
  cluster_uri?: string | null;
24429
24477
  company_code?: string | null;
24430
24478
  company_name?: string | null;
@@ -24435,54 +24483,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
24435
24483
  is_active?: boolean;
24436
24484
  label?: string | null;
24437
24485
  office_code?: string | null;
24438
- redirect_uri?: string;
24439
- refresh_token?: string | null;
24440
- token_expires_at?: string | null;
24441
- updated_at?: string;
24442
- user_id?: string;
24443
- };
24444
- Relationships: [];
24445
- };
24446
- twinfield_credentials: {
24447
- Row: {
24448
- administration_code: string | null;
24449
- client_id: string | null;
24450
- client_secret: string | null;
24451
- cluster: string | null;
24452
- connected_at: string | null;
24453
- created_at: string;
24454
- environment: string | null;
24455
- id: string;
24456
- redirect_uri: string | null;
24457
- refresh_token: string | null;
24458
- updated_at: string;
24459
- user_id: string;
24460
- };
24461
- Insert: {
24462
- administration_code?: string | null;
24463
- client_id?: string | null;
24464
- client_secret?: string | null;
24465
- cluster?: string | null;
24466
- connected_at?: string | null;
24467
- created_at?: string;
24468
- environment?: string | null;
24469
- id?: string;
24470
- redirect_uri?: string | null;
24471
- refresh_token?: string | null;
24472
- updated_at?: string;
24473
- user_id: string;
24474
- };
24475
- Update: {
24476
- administration_code?: string | null;
24477
- client_id?: string | null;
24478
- client_secret?: string | null;
24479
- cluster?: string | null;
24480
- connected_at?: string | null;
24481
- created_at?: string;
24482
- environment?: string | null;
24483
- id?: string;
24484
24486
  redirect_uri?: string | null;
24485
- refresh_token?: string | null;
24486
24487
  updated_at?: string;
24487
24488
  user_id?: string;
24488
24489
  };
@@ -24929,12 +24930,15 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
24929
24930
  currency: string | null;
24930
24931
  customer_code: string | null;
24931
24932
  data: import("../integrations/supabase/types").Json;
24933
+ deleted_at: string | null;
24932
24934
  due_date: string | null;
24933
24935
  fetched_at: string;
24934
24936
  invoice_date: string | null;
24935
24937
  invoice_number: string;
24938
+ lines_fetched_at: string | null;
24936
24939
  modified_at: string | null;
24937
24940
  outstanding_amount: number | null;
24941
+ paid_at: string | null;
24938
24942
  status: string | null;
24939
24943
  status_label: string | null;
24940
24944
  total_excl: number | null;
@@ -24946,12 +24950,15 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
24946
24950
  currency?: string | null;
24947
24951
  customer_code?: string | null;
24948
24952
  data?: import("../integrations/supabase/types").Json;
24953
+ deleted_at?: string | null;
24949
24954
  due_date?: string | null;
24950
24955
  fetched_at?: string;
24951
24956
  invoice_date?: string | null;
24952
24957
  invoice_number: string;
24958
+ lines_fetched_at?: string | null;
24953
24959
  modified_at?: string | null;
24954
24960
  outstanding_amount?: number | null;
24961
+ paid_at?: string | null;
24955
24962
  status?: string | null;
24956
24963
  status_label?: string | null;
24957
24964
  total_excl?: number | null;
@@ -24963,12 +24970,15 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
24963
24970
  currency?: string | null;
24964
24971
  customer_code?: string | null;
24965
24972
  data?: import("../integrations/supabase/types").Json;
24973
+ deleted_at?: string | null;
24966
24974
  due_date?: string | null;
24967
24975
  fetched_at?: string;
24968
24976
  invoice_date?: string | null;
24969
24977
  invoice_number?: string;
24978
+ lines_fetched_at?: string | null;
24970
24979
  modified_at?: string | null;
24971
24980
  outstanding_amount?: number | null;
24981
+ paid_at?: string | null;
24972
24982
  status?: string | null;
24973
24983
  status_label?: string | null;
24974
24984
  total_excl?: number | null;
@@ -24983,30 +24993,6 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
24983
24993
  referencedColumns: ["id"];
24984
24994
  }];
24985
24995
  };
24986
- twinfield_oauth_state: {
24987
- Row: {
24988
- created_at: string;
24989
- environment: string;
24990
- nonce: string | null;
24991
- state: string;
24992
- user_id: string;
24993
- };
24994
- Insert: {
24995
- created_at?: string;
24996
- environment: string;
24997
- nonce?: string | null;
24998
- state: string;
24999
- user_id: string;
25000
- };
25001
- Update: {
25002
- created_at?: string;
25003
- environment?: string;
25004
- nonce?: string | null;
25005
- state?: string;
25006
- user_id?: string;
25007
- };
25008
- Relationships: [];
25009
- };
25010
24996
  twinfield_push_queue: {
25011
24997
  Row: {
25012
24998
  action: string;
@@ -25172,39 +25158,6 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
25172
25158
  referencedColumns: ["id"];
25173
25159
  }];
25174
25160
  };
25175
- twinfield_token_refresh_log: {
25176
- Row: {
25177
- attempted_at: string;
25178
- connection_id: string;
25179
- error: string | null;
25180
- expires_at: string | null;
25181
- id: string;
25182
- ok: boolean;
25183
- };
25184
- Insert: {
25185
- attempted_at?: string;
25186
- connection_id: string;
25187
- error?: string | null;
25188
- expires_at?: string | null;
25189
- id?: string;
25190
- ok: boolean;
25191
- };
25192
- Update: {
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
- Relationships: [{
25201
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25202
- columns: ["connection_id"];
25203
- isOneToOne: false;
25204
- referencedRelation: "twinfield_connections";
25205
- referencedColumns: ["id"];
25206
- }];
25207
- };
25208
25161
  user_roles: {
25209
25162
  Row: {
25210
25163
  created_at: string;
@@ -27645,15 +27598,16 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
27645
27598
  };
27646
27599
  Returns: undefined;
27647
27600
  };
27648
- twinfield_decrypt: {
27649
- Args: {
27650
- cipher: string;
27651
- };
27652
- Returns: string;
27653
- };
27654
- twinfield_encrypt: {
27601
+ twinfield_upsert_connection_by_account_key: {
27655
27602
  Args: {
27656
- plain: string;
27603
+ p_account_key: string;
27604
+ p_cluster_uri?: string;
27605
+ p_company_code?: string;
27606
+ p_company_name?: string;
27607
+ p_environment: string;
27608
+ p_office_code?: string;
27609
+ p_status?: string;
27610
+ p_user_id: string;
27657
27611
  };
27658
27612
  Returns: string;
27659
27613
  };
@@ -32220,6 +32174,27 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
32220
32174
  referencedColumns: ["id"];
32221
32175
  }];
32222
32176
  };
32177
+ floriday_continuous_stock_cache: {
32178
+ Row: {
32179
+ connection_id: string;
32180
+ fetched_at: string;
32181
+ number_of_pieces: number;
32182
+ trade_item_id: string;
32183
+ };
32184
+ Insert: {
32185
+ connection_id: string;
32186
+ fetched_at?: string;
32187
+ number_of_pieces?: number;
32188
+ trade_item_id: string;
32189
+ };
32190
+ Update: {
32191
+ connection_id?: string;
32192
+ fetched_at?: string;
32193
+ number_of_pieces?: number;
32194
+ trade_item_id?: string;
32195
+ };
32196
+ Relationships: [];
32197
+ };
32223
32198
  floriday_continuous_stock_queue: {
32224
32199
  Row: {
32225
32200
  attempts: number;
@@ -33198,6 +33173,45 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
33198
33173
  referencedColumns: ["id"];
33199
33174
  }];
33200
33175
  };
33176
+ floriday_trade_settings_customers_cache: {
33177
+ Row: {
33178
+ connection_id: string;
33179
+ data: import("../integrations/supabase/types").Json;
33180
+ fetched_at: string;
33181
+ floriday_id: string;
33182
+ id: string;
33183
+ is_deleted: boolean;
33184
+ sequence_number: number;
33185
+ updated_at: string;
33186
+ };
33187
+ Insert: {
33188
+ connection_id: string;
33189
+ data: import("../integrations/supabase/types").Json;
33190
+ fetched_at?: string;
33191
+ floriday_id: string;
33192
+ id?: string;
33193
+ is_deleted?: boolean;
33194
+ sequence_number?: number;
33195
+ updated_at?: string;
33196
+ };
33197
+ Update: {
33198
+ connection_id?: string;
33199
+ data?: import("../integrations/supabase/types").Json;
33200
+ fetched_at?: string;
33201
+ floriday_id?: string;
33202
+ id?: string;
33203
+ is_deleted?: boolean;
33204
+ sequence_number?: number;
33205
+ updated_at?: string;
33206
+ };
33207
+ Relationships: [{
33208
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33209
+ columns: ["connection_id"];
33210
+ isOneToOne: false;
33211
+ referencedRelation: "floriday_connections";
33212
+ referencedColumns: ["id"];
33213
+ }];
33214
+ };
33201
33215
  floriday_trips_cache: {
33202
33216
  Row: {
33203
33217
  carrier_organization_id: string | null;
@@ -33246,6 +33260,27 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
33246
33260
  referencedColumns: ["id"];
33247
33261
  }];
33248
33262
  };
33263
+ floriday_vbn_required_characteristics: {
33264
+ Row: {
33265
+ required_codes: string[];
33266
+ updated_at: string;
33267
+ updated_by: string | null;
33268
+ vbn_code: string;
33269
+ };
33270
+ Insert: {
33271
+ required_codes?: string[];
33272
+ updated_at?: string;
33273
+ updated_by?: string | null;
33274
+ vbn_code: string;
33275
+ };
33276
+ Update: {
33277
+ required_codes?: string[];
33278
+ updated_at?: string;
33279
+ updated_by?: string | null;
33280
+ vbn_code?: string;
33281
+ };
33282
+ Relationships: [];
33283
+ };
33249
33284
  floriday_warehouses_cache: {
33250
33285
  Row: {
33251
33286
  connection_id: string;
@@ -38219,9 +38254,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
38219
38254
  };
38220
38255
  twinfield_connections: {
38221
38256
  Row: {
38222
- access_token: string | null;
38223
- client_id: string;
38224
- client_secret: string | null;
38257
+ account_key: string | null;
38225
38258
  cluster_uri: string | null;
38226
38259
  company_code: string | null;
38227
38260
  company_name: string | null;
@@ -38232,16 +38265,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
38232
38265
  is_active: boolean;
38233
38266
  label: string | null;
38234
38267
  office_code: string | null;
38235
- redirect_uri: string;
38236
- refresh_token: string | null;
38237
- token_expires_at: string | null;
38268
+ redirect_uri: string | null;
38238
38269
  updated_at: string;
38239
38270
  user_id: string;
38240
38271
  };
38241
38272
  Insert: {
38242
- access_token?: string | null;
38243
- client_id: string;
38244
- client_secret?: string | null;
38273
+ account_key?: string | null;
38245
38274
  cluster_uri?: string | null;
38246
38275
  company_code?: string | null;
38247
38276
  company_name?: string | null;
@@ -38252,16 +38281,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
38252
38281
  is_active?: boolean;
38253
38282
  label?: string | null;
38254
38283
  office_code?: string | null;
38255
- redirect_uri: string;
38256
- refresh_token?: string | null;
38257
- token_expires_at?: string | null;
38284
+ redirect_uri?: string | null;
38258
38285
  updated_at?: string;
38259
38286
  user_id: string;
38260
38287
  };
38261
38288
  Update: {
38262
- access_token?: string | null;
38263
- client_id?: string;
38264
- client_secret?: string | null;
38289
+ account_key?: string | null;
38265
38290
  cluster_uri?: string | null;
38266
38291
  company_code?: string | null;
38267
38292
  company_name?: string | null;
@@ -38272,54 +38297,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
38272
38297
  is_active?: boolean;
38273
38298
  label?: string | null;
38274
38299
  office_code?: string | null;
38275
- redirect_uri?: string;
38276
- refresh_token?: string | null;
38277
- token_expires_at?: string | null;
38278
- updated_at?: string;
38279
- user_id?: string;
38280
- };
38281
- Relationships: [];
38282
- };
38283
- twinfield_credentials: {
38284
- Row: {
38285
- administration_code: string | null;
38286
- client_id: string | null;
38287
- client_secret: string | null;
38288
- cluster: string | null;
38289
- connected_at: string | null;
38290
- created_at: string;
38291
- environment: string | null;
38292
- id: string;
38293
- redirect_uri: string | null;
38294
- refresh_token: string | null;
38295
- updated_at: string;
38296
- user_id: string;
38297
- };
38298
- Insert: {
38299
- administration_code?: string | null;
38300
- client_id?: string | null;
38301
- client_secret?: string | null;
38302
- cluster?: string | null;
38303
- connected_at?: string | null;
38304
- created_at?: string;
38305
- environment?: string | null;
38306
- id?: string;
38307
- redirect_uri?: string | null;
38308
- refresh_token?: string | null;
38309
- updated_at?: string;
38310
- user_id: string;
38311
- };
38312
- Update: {
38313
- administration_code?: string | null;
38314
- client_id?: string | null;
38315
- client_secret?: string | null;
38316
- cluster?: string | null;
38317
- connected_at?: string | null;
38318
- created_at?: string;
38319
- environment?: string | null;
38320
- id?: string;
38321
38300
  redirect_uri?: string | null;
38322
- refresh_token?: string | null;
38323
38301
  updated_at?: string;
38324
38302
  user_id?: string;
38325
38303
  };
@@ -38766,12 +38744,15 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
38766
38744
  currency: string | null;
38767
38745
  customer_code: string | null;
38768
38746
  data: import("../integrations/supabase/types").Json;
38747
+ deleted_at: string | null;
38769
38748
  due_date: string | null;
38770
38749
  fetched_at: string;
38771
38750
  invoice_date: string | null;
38772
38751
  invoice_number: string;
38752
+ lines_fetched_at: string | null;
38773
38753
  modified_at: string | null;
38774
38754
  outstanding_amount: number | null;
38755
+ paid_at: string | null;
38775
38756
  status: string | null;
38776
38757
  status_label: string | null;
38777
38758
  total_excl: number | null;
@@ -38783,12 +38764,15 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
38783
38764
  currency?: string | null;
38784
38765
  customer_code?: string | null;
38785
38766
  data?: import("../integrations/supabase/types").Json;
38767
+ deleted_at?: string | null;
38786
38768
  due_date?: string | null;
38787
38769
  fetched_at?: string;
38788
38770
  invoice_date?: string | null;
38789
38771
  invoice_number: string;
38772
+ lines_fetched_at?: string | null;
38790
38773
  modified_at?: string | null;
38791
38774
  outstanding_amount?: number | null;
38775
+ paid_at?: string | null;
38792
38776
  status?: string | null;
38793
38777
  status_label?: string | null;
38794
38778
  total_excl?: number | null;
@@ -38800,12 +38784,15 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
38800
38784
  currency?: string | null;
38801
38785
  customer_code?: string | null;
38802
38786
  data?: import("../integrations/supabase/types").Json;
38787
+ deleted_at?: string | null;
38803
38788
  due_date?: string | null;
38804
38789
  fetched_at?: string;
38805
38790
  invoice_date?: string | null;
38806
38791
  invoice_number?: string;
38792
+ lines_fetched_at?: string | null;
38807
38793
  modified_at?: string | null;
38808
38794
  outstanding_amount?: number | null;
38795
+ paid_at?: string | null;
38809
38796
  status?: string | null;
38810
38797
  status_label?: string | null;
38811
38798
  total_excl?: number | null;
@@ -38820,30 +38807,6 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
38820
38807
  referencedColumns: ["id"];
38821
38808
  }];
38822
38809
  };
38823
- twinfield_oauth_state: {
38824
- Row: {
38825
- created_at: string;
38826
- environment: string;
38827
- nonce: string | null;
38828
- state: string;
38829
- user_id: string;
38830
- };
38831
- Insert: {
38832
- created_at?: string;
38833
- environment: string;
38834
- nonce?: string | null;
38835
- state: string;
38836
- user_id: string;
38837
- };
38838
- Update: {
38839
- created_at?: string;
38840
- environment?: string;
38841
- nonce?: string | null;
38842
- state?: string;
38843
- user_id?: string;
38844
- };
38845
- Relationships: [];
38846
- };
38847
38810
  twinfield_push_queue: {
38848
38811
  Row: {
38849
38812
  action: string;
@@ -39009,39 +38972,6 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
39009
38972
  referencedColumns: ["id"];
39010
38973
  }];
39011
38974
  };
39012
- twinfield_token_refresh_log: {
39013
- Row: {
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
- Insert: {
39022
- attempted_at?: string;
39023
- connection_id: string;
39024
- error?: string | null;
39025
- expires_at?: string | null;
39026
- id?: string;
39027
- ok: boolean;
39028
- };
39029
- Update: {
39030
- attempted_at?: string;
39031
- connection_id?: string;
39032
- error?: string | null;
39033
- expires_at?: string | null;
39034
- id?: string;
39035
- ok?: boolean;
39036
- };
39037
- Relationships: [{
39038
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39039
- columns: ["connection_id"];
39040
- isOneToOne: false;
39041
- referencedRelation: "twinfield_connections";
39042
- referencedColumns: ["id"];
39043
- }];
39044
- };
39045
38975
  user_roles: {
39046
38976
  Row: {
39047
38977
  created_at: string;
@@ -41482,15 +41412,16 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
41482
41412
  };
41483
41413
  Returns: undefined;
41484
41414
  };
41485
- twinfield_decrypt: {
41415
+ twinfield_upsert_connection_by_account_key: {
41486
41416
  Args: {
41487
- cipher: string;
41488
- };
41489
- Returns: string;
41490
- };
41491
- twinfield_encrypt: {
41492
- Args: {
41493
- plain: string;
41417
+ p_account_key: string;
41418
+ p_cluster_uri?: string;
41419
+ p_company_code?: string;
41420
+ p_company_name?: string;
41421
+ p_environment: string;
41422
+ p_office_code?: string;
41423
+ p_status?: string;
41424
+ p_user_id: string;
41494
41425
  };
41495
41426
  Returns: string;
41496
41427
  };