@flowselections/floriday-verkoop-module 1.0.26 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +1 -1
  2. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -1
  3. package/dist-lib/components/karindeling/KarindelingPage.d.ts +1 -1
  4. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  6. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +1 -1
  8. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  10. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  11. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  12. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  13. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  14. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  15. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  16. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  17. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  18. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  19. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  20. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  21. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  22. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  23. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  24. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  25. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  26. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  27. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  28. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  29. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  30. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  31. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  32. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  33. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +2 -1
  34. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  35. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  36. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  37. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  38. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  39. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  40. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  41. package/dist-lib/index.d.ts +0 -1
  42. package/dist-lib/index.d.ts.map +1 -1
  43. package/dist-lib/index.js +5 -11
  44. package/dist-lib/integrations/supabase/auth-middleware.d.ts +104 -127
  45. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  46. package/dist-lib/integrations/supabase/client.d.ts +104 -127
  47. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  48. package/dist-lib/integrations/supabase/client.server.d.ts +104 -127
  49. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  50. package/dist-lib/integrations/supabase/types.d.ts +106 -129
  51. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  52. package/dist-lib/lib/cart-lock.functions.d.ts +104 -127
  53. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/cart-planning-settings.functions.d.ts +1144 -1397
  55. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/cart-replan.functions.d.ts +312 -381
  57. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/create-order.functions.d.ts +1248 -1524
  59. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +312 -381
  61. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +104 -127
  63. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/floriday-mirror.functions.d.ts +104 -127
  65. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/floriday-public.functions.d.ts +728 -889
  67. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/floriday-writes.functions.d.ts +520 -635
  69. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/order-buffers.functions.d.ts +312 -381
  71. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/order-shipments.functions.d.ts +416 -508
  73. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/salesorders.functions.d.ts +520 -635
  75. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/tradeitems.functions.d.ts +104 -127
  77. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  78. package/package.json +1 -1
  79. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +0 -9
  80. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +0 -1
  81. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +0 -26
  82. package/dist-lib/components/ui/dropdown-menu.d.ts +0 -9
  83. package/dist-lib/components/ui/dropdown-menu.d.ts.map +0 -1
  84. package/dist-lib/components/ui/dropdown-menu.js +0 -14
  85. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +0 -5
  86. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +0 -1
  87. package/dist-lib/components/verkoop/CreateOrderDialog.js +0 -33
  88. package/dist-lib/lib/floriday/floriday.server.d.ts +0 -14
  89. package/dist-lib/lib/floriday/floriday.server.d.ts.map +0 -1
  90. package/dist-lib/lib/floriday/floriday.server.js +0 -92
  91. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +0 -4736
  92. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +0 -1
  93. package/dist-lib/lib/floriday/sales-orders.functions.js +0 -193
@@ -4528,6 +4528,27 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
4528
4528
  referencedColumns: ["id"];
4529
4529
  }];
4530
4530
  };
4531
+ floriday_continuous_stock_cache: {
4532
+ Row: {
4533
+ connection_id: string;
4534
+ fetched_at: string;
4535
+ number_of_pieces: number;
4536
+ trade_item_id: string;
4537
+ };
4538
+ Insert: {
4539
+ connection_id: string;
4540
+ fetched_at?: string;
4541
+ number_of_pieces?: number;
4542
+ trade_item_id: string;
4543
+ };
4544
+ Update: {
4545
+ connection_id?: string;
4546
+ fetched_at?: string;
4547
+ number_of_pieces?: number;
4548
+ trade_item_id?: string;
4549
+ };
4550
+ Relationships: [];
4551
+ };
4531
4552
  floriday_continuous_stock_queue: {
4532
4553
  Row: {
4533
4554
  attempts: number;
@@ -5506,6 +5527,45 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5506
5527
  referencedColumns: ["id"];
5507
5528
  }];
5508
5529
  };
5530
+ floriday_trade_settings_customers_cache: {
5531
+ Row: {
5532
+ connection_id: string;
5533
+ data: import("../integrations/supabase/types").Json;
5534
+ fetched_at: string;
5535
+ floriday_id: string;
5536
+ id: string;
5537
+ is_deleted: boolean;
5538
+ sequence_number: number;
5539
+ updated_at: string;
5540
+ };
5541
+ Insert: {
5542
+ connection_id: string;
5543
+ data: import("../integrations/supabase/types").Json;
5544
+ fetched_at?: string;
5545
+ floriday_id: string;
5546
+ id?: string;
5547
+ is_deleted?: boolean;
5548
+ sequence_number?: number;
5549
+ updated_at?: string;
5550
+ };
5551
+ Update: {
5552
+ connection_id?: string;
5553
+ data?: import("../integrations/supabase/types").Json;
5554
+ fetched_at?: string;
5555
+ floriday_id?: string;
5556
+ id?: string;
5557
+ is_deleted?: boolean;
5558
+ sequence_number?: number;
5559
+ updated_at?: string;
5560
+ };
5561
+ Relationships: [{
5562
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5563
+ columns: ["connection_id"];
5564
+ isOneToOne: false;
5565
+ referencedRelation: "floriday_connections";
5566
+ referencedColumns: ["id"];
5567
+ }];
5568
+ };
5509
5569
  floriday_trips_cache: {
5510
5570
  Row: {
5511
5571
  carrier_organization_id: string | null;
@@ -5554,6 +5614,27 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5554
5614
  referencedColumns: ["id"];
5555
5615
  }];
5556
5616
  };
5617
+ floriday_vbn_required_characteristics: {
5618
+ Row: {
5619
+ required_codes: string[];
5620
+ updated_at: string;
5621
+ updated_by: string | null;
5622
+ vbn_code: string;
5623
+ };
5624
+ Insert: {
5625
+ required_codes?: string[];
5626
+ updated_at?: string;
5627
+ updated_by?: string | null;
5628
+ vbn_code: string;
5629
+ };
5630
+ Update: {
5631
+ required_codes?: string[];
5632
+ updated_at?: string;
5633
+ updated_by?: string | null;
5634
+ vbn_code?: string;
5635
+ };
5636
+ Relationships: [];
5637
+ };
5557
5638
  floriday_warehouses_cache: {
5558
5639
  Row: {
5559
5640
  connection_id: string;
@@ -10527,9 +10608,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10527
10608
  };
10528
10609
  twinfield_connections: {
10529
10610
  Row: {
10530
- access_token: string | null;
10531
- client_id: string;
10532
- client_secret: string | null;
10611
+ account_key: string | null;
10533
10612
  cluster_uri: string | null;
10534
10613
  company_code: string | null;
10535
10614
  company_name: string | null;
@@ -10540,16 +10619,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10540
10619
  is_active: boolean;
10541
10620
  label: string | null;
10542
10621
  office_code: string | null;
10543
- redirect_uri: string;
10544
- refresh_token: string | null;
10545
- token_expires_at: string | null;
10622
+ redirect_uri: string | null;
10546
10623
  updated_at: string;
10547
10624
  user_id: string;
10548
10625
  };
10549
10626
  Insert: {
10550
- access_token?: string | null;
10551
- client_id: string;
10552
- client_secret?: string | null;
10627
+ account_key?: string | null;
10553
10628
  cluster_uri?: string | null;
10554
10629
  company_code?: string | null;
10555
10630
  company_name?: string | null;
@@ -10560,16 +10635,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10560
10635
  is_active?: boolean;
10561
10636
  label?: string | null;
10562
10637
  office_code?: string | null;
10563
- redirect_uri: string;
10564
- refresh_token?: string | null;
10565
- token_expires_at?: string | null;
10638
+ redirect_uri?: string | null;
10566
10639
  updated_at?: string;
10567
10640
  user_id: string;
10568
10641
  };
10569
10642
  Update: {
10570
- access_token?: string | null;
10571
- client_id?: string;
10572
- client_secret?: string | null;
10643
+ account_key?: string | null;
10573
10644
  cluster_uri?: string | null;
10574
10645
  company_code?: string | null;
10575
10646
  company_name?: string | null;
@@ -10580,54 +10651,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10580
10651
  is_active?: boolean;
10581
10652
  label?: string | null;
10582
10653
  office_code?: string | null;
10583
- redirect_uri?: string;
10584
- refresh_token?: string | null;
10585
- token_expires_at?: string | null;
10586
- updated_at?: string;
10587
- user_id?: string;
10588
- };
10589
- Relationships: [];
10590
- };
10591
- twinfield_credentials: {
10592
- Row: {
10593
- administration_code: string | null;
10594
- client_id: string | null;
10595
- client_secret: string | null;
10596
- cluster: string | null;
10597
- connected_at: string | null;
10598
- created_at: string;
10599
- environment: string | null;
10600
- id: string;
10601
- redirect_uri: string | null;
10602
- refresh_token: string | null;
10603
- updated_at: string;
10604
- user_id: string;
10605
- };
10606
- Insert: {
10607
- administration_code?: string | null;
10608
- client_id?: string | null;
10609
- client_secret?: string | null;
10610
- cluster?: string | null;
10611
- connected_at?: string | null;
10612
- created_at?: string;
10613
- environment?: string | null;
10614
- id?: string;
10615
- redirect_uri?: string | null;
10616
- refresh_token?: string | null;
10617
- updated_at?: string;
10618
- user_id: string;
10619
- };
10620
- Update: {
10621
- administration_code?: string | null;
10622
- client_id?: string | null;
10623
- client_secret?: string | null;
10624
- cluster?: string | null;
10625
- connected_at?: string | null;
10626
- created_at?: string;
10627
- environment?: string | null;
10628
- id?: string;
10629
10654
  redirect_uri?: string | null;
10630
- refresh_token?: string | null;
10631
10655
  updated_at?: string;
10632
10656
  user_id?: string;
10633
10657
  };
@@ -11074,12 +11098,15 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11074
11098
  currency: string | null;
11075
11099
  customer_code: string | null;
11076
11100
  data: import("../integrations/supabase/types").Json;
11101
+ deleted_at: string | null;
11077
11102
  due_date: string | null;
11078
11103
  fetched_at: string;
11079
11104
  invoice_date: string | null;
11080
11105
  invoice_number: string;
11106
+ lines_fetched_at: string | null;
11081
11107
  modified_at: string | null;
11082
11108
  outstanding_amount: number | null;
11109
+ paid_at: string | null;
11083
11110
  status: string | null;
11084
11111
  status_label: string | null;
11085
11112
  total_excl: number | null;
@@ -11091,12 +11118,15 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11091
11118
  currency?: string | null;
11092
11119
  customer_code?: string | null;
11093
11120
  data?: import("../integrations/supabase/types").Json;
11121
+ deleted_at?: string | null;
11094
11122
  due_date?: string | null;
11095
11123
  fetched_at?: string;
11096
11124
  invoice_date?: string | null;
11097
11125
  invoice_number: string;
11126
+ lines_fetched_at?: string | null;
11098
11127
  modified_at?: string | null;
11099
11128
  outstanding_amount?: number | null;
11129
+ paid_at?: string | null;
11100
11130
  status?: string | null;
11101
11131
  status_label?: string | null;
11102
11132
  total_excl?: number | null;
@@ -11108,12 +11138,15 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11108
11138
  currency?: string | null;
11109
11139
  customer_code?: string | null;
11110
11140
  data?: import("../integrations/supabase/types").Json;
11141
+ deleted_at?: string | null;
11111
11142
  due_date?: string | null;
11112
11143
  fetched_at?: string;
11113
11144
  invoice_date?: string | null;
11114
11145
  invoice_number?: string;
11146
+ lines_fetched_at?: string | null;
11115
11147
  modified_at?: string | null;
11116
11148
  outstanding_amount?: number | null;
11149
+ paid_at?: string | null;
11117
11150
  status?: string | null;
11118
11151
  status_label?: string | null;
11119
11152
  total_excl?: number | null;
@@ -11128,30 +11161,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11128
11161
  referencedColumns: ["id"];
11129
11162
  }];
11130
11163
  };
11131
- twinfield_oauth_state: {
11132
- Row: {
11133
- created_at: string;
11134
- environment: string;
11135
- nonce: string | null;
11136
- state: string;
11137
- user_id: string;
11138
- };
11139
- Insert: {
11140
- created_at?: string;
11141
- environment: string;
11142
- nonce?: string | null;
11143
- state: string;
11144
- user_id: string;
11145
- };
11146
- Update: {
11147
- created_at?: string;
11148
- environment?: string;
11149
- nonce?: string | null;
11150
- state?: string;
11151
- user_id?: string;
11152
- };
11153
- Relationships: [];
11154
- };
11155
11164
  twinfield_push_queue: {
11156
11165
  Row: {
11157
11166
  action: string;
@@ -11317,39 +11326,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
11317
11326
  referencedColumns: ["id"];
11318
11327
  }];
11319
11328
  };
11320
- twinfield_token_refresh_log: {
11321
- Row: {
11322
- attempted_at: string;
11323
- connection_id: string;
11324
- error: string | null;
11325
- expires_at: string | null;
11326
- id: string;
11327
- ok: boolean;
11328
- };
11329
- Insert: {
11330
- attempted_at?: string;
11331
- connection_id: string;
11332
- error?: string | null;
11333
- expires_at?: string | null;
11334
- id?: string;
11335
- ok: boolean;
11336
- };
11337
- Update: {
11338
- attempted_at?: string;
11339
- connection_id?: string;
11340
- error?: string | null;
11341
- expires_at?: string | null;
11342
- id?: string;
11343
- ok?: boolean;
11344
- };
11345
- Relationships: [{
11346
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11347
- columns: ["connection_id"];
11348
- isOneToOne: false;
11349
- referencedRelation: "twinfield_connections";
11350
- referencedColumns: ["id"];
11351
- }];
11352
- };
11353
11329
  user_roles: {
11354
11330
  Row: {
11355
11331
  created_at: string;
@@ -13790,15 +13766,16 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13790
13766
  };
13791
13767
  Returns: undefined;
13792
13768
  };
13793
- twinfield_decrypt: {
13794
- Args: {
13795
- cipher: string;
13796
- };
13797
- Returns: string;
13798
- };
13799
- twinfield_encrypt: {
13769
+ twinfield_upsert_connection_by_account_key: {
13800
13770
  Args: {
13801
- plain: string;
13771
+ p_account_key: string;
13772
+ p_cluster_uri?: string;
13773
+ p_company_code?: string;
13774
+ p_company_name?: string;
13775
+ p_environment: string;
13776
+ p_office_code?: string;
13777
+ p_status?: string;
13778
+ p_user_id: string;
13802
13779
  };
13803
13780
  Returns: string;
13804
13781
  };
@@ -18363,6 +18340,27 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
18363
18340
  referencedColumns: ["id"];
18364
18341
  }];
18365
18342
  };
18343
+ floriday_continuous_stock_cache: {
18344
+ Row: {
18345
+ connection_id: string;
18346
+ fetched_at: string;
18347
+ number_of_pieces: number;
18348
+ trade_item_id: string;
18349
+ };
18350
+ Insert: {
18351
+ connection_id: string;
18352
+ fetched_at?: string;
18353
+ number_of_pieces?: number;
18354
+ trade_item_id: string;
18355
+ };
18356
+ Update: {
18357
+ connection_id?: string;
18358
+ fetched_at?: string;
18359
+ number_of_pieces?: number;
18360
+ trade_item_id?: string;
18361
+ };
18362
+ Relationships: [];
18363
+ };
18366
18364
  floriday_continuous_stock_queue: {
18367
18365
  Row: {
18368
18366
  attempts: number;
@@ -19341,6 +19339,45 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
19341
19339
  referencedColumns: ["id"];
19342
19340
  }];
19343
19341
  };
19342
+ floriday_trade_settings_customers_cache: {
19343
+ Row: {
19344
+ connection_id: string;
19345
+ data: import("../integrations/supabase/types").Json;
19346
+ fetched_at: string;
19347
+ floriday_id: string;
19348
+ id: string;
19349
+ is_deleted: boolean;
19350
+ sequence_number: number;
19351
+ updated_at: string;
19352
+ };
19353
+ Insert: {
19354
+ connection_id: string;
19355
+ data: import("../integrations/supabase/types").Json;
19356
+ fetched_at?: string;
19357
+ floriday_id: string;
19358
+ id?: string;
19359
+ is_deleted?: boolean;
19360
+ sequence_number?: number;
19361
+ updated_at?: string;
19362
+ };
19363
+ Update: {
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
+ Relationships: [{
19374
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19375
+ columns: ["connection_id"];
19376
+ isOneToOne: false;
19377
+ referencedRelation: "floriday_connections";
19378
+ referencedColumns: ["id"];
19379
+ }];
19380
+ };
19344
19381
  floriday_trips_cache: {
19345
19382
  Row: {
19346
19383
  carrier_organization_id: string | null;
@@ -19389,6 +19426,27 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
19389
19426
  referencedColumns: ["id"];
19390
19427
  }];
19391
19428
  };
19429
+ floriday_vbn_required_characteristics: {
19430
+ Row: {
19431
+ required_codes: string[];
19432
+ updated_at: string;
19433
+ updated_by: string | null;
19434
+ vbn_code: string;
19435
+ };
19436
+ Insert: {
19437
+ required_codes?: string[];
19438
+ updated_at?: string;
19439
+ updated_by?: string | null;
19440
+ vbn_code: string;
19441
+ };
19442
+ Update: {
19443
+ required_codes?: string[];
19444
+ updated_at?: string;
19445
+ updated_by?: string | null;
19446
+ vbn_code?: string;
19447
+ };
19448
+ Relationships: [];
19449
+ };
19392
19450
  floriday_warehouses_cache: {
19393
19451
  Row: {
19394
19452
  connection_id: string;
@@ -24362,9 +24420,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
24362
24420
  };
24363
24421
  twinfield_connections: {
24364
24422
  Row: {
24365
- access_token: string | null;
24366
- client_id: string;
24367
- client_secret: string | null;
24423
+ account_key: string | null;
24368
24424
  cluster_uri: string | null;
24369
24425
  company_code: string | null;
24370
24426
  company_name: string | null;
@@ -24375,16 +24431,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
24375
24431
  is_active: boolean;
24376
24432
  label: string | null;
24377
24433
  office_code: string | null;
24378
- redirect_uri: string;
24379
- refresh_token: string | null;
24380
- token_expires_at: string | null;
24434
+ redirect_uri: string | null;
24381
24435
  updated_at: string;
24382
24436
  user_id: string;
24383
24437
  };
24384
24438
  Insert: {
24385
- access_token?: string | null;
24386
- client_id: string;
24387
- client_secret?: string | null;
24439
+ account_key?: string | null;
24388
24440
  cluster_uri?: string | null;
24389
24441
  company_code?: string | null;
24390
24442
  company_name?: string | null;
@@ -24395,16 +24447,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
24395
24447
  is_active?: boolean;
24396
24448
  label?: string | null;
24397
24449
  office_code?: string | null;
24398
- redirect_uri: string;
24399
- refresh_token?: string | null;
24400
- token_expires_at?: string | null;
24450
+ redirect_uri?: string | null;
24401
24451
  updated_at?: string;
24402
24452
  user_id: string;
24403
24453
  };
24404
24454
  Update: {
24405
- access_token?: string | null;
24406
- client_id?: string;
24407
- client_secret?: string | null;
24455
+ account_key?: string | null;
24408
24456
  cluster_uri?: string | null;
24409
24457
  company_code?: string | null;
24410
24458
  company_name?: string | null;
@@ -24415,54 +24463,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
24415
24463
  is_active?: boolean;
24416
24464
  label?: string | null;
24417
24465
  office_code?: string | null;
24418
- redirect_uri?: string;
24419
- refresh_token?: string | null;
24420
- token_expires_at?: string | null;
24421
- updated_at?: string;
24422
- user_id?: string;
24423
- };
24424
- Relationships: [];
24425
- };
24426
- twinfield_credentials: {
24427
- Row: {
24428
- administration_code: string | null;
24429
- client_id: string | null;
24430
- client_secret: string | null;
24431
- cluster: string | null;
24432
- connected_at: string | null;
24433
- created_at: string;
24434
- environment: string | null;
24435
- id: string;
24436
- redirect_uri: string | null;
24437
- refresh_token: string | null;
24438
- updated_at: string;
24439
- user_id: string;
24440
- };
24441
- Insert: {
24442
- administration_code?: string | null;
24443
- client_id?: string | null;
24444
- client_secret?: string | null;
24445
- cluster?: string | null;
24446
- connected_at?: string | null;
24447
- created_at?: string;
24448
- environment?: string | null;
24449
- id?: string;
24450
- redirect_uri?: string | null;
24451
- refresh_token?: string | null;
24452
- updated_at?: string;
24453
- user_id: string;
24454
- };
24455
- Update: {
24456
- administration_code?: string | null;
24457
- client_id?: string | null;
24458
- client_secret?: string | null;
24459
- cluster?: string | null;
24460
- connected_at?: string | null;
24461
- created_at?: string;
24462
- environment?: string | null;
24463
- id?: string;
24464
24466
  redirect_uri?: string | null;
24465
- refresh_token?: string | null;
24466
24467
  updated_at?: string;
24467
24468
  user_id?: string;
24468
24469
  };
@@ -24909,12 +24910,15 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
24909
24910
  currency: string | null;
24910
24911
  customer_code: string | null;
24911
24912
  data: import("../integrations/supabase/types").Json;
24913
+ deleted_at: string | null;
24912
24914
  due_date: string | null;
24913
24915
  fetched_at: string;
24914
24916
  invoice_date: string | null;
24915
24917
  invoice_number: string;
24918
+ lines_fetched_at: string | null;
24916
24919
  modified_at: string | null;
24917
24920
  outstanding_amount: number | null;
24921
+ paid_at: string | null;
24918
24922
  status: string | null;
24919
24923
  status_label: string | null;
24920
24924
  total_excl: number | null;
@@ -24926,12 +24930,15 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
24926
24930
  currency?: string | null;
24927
24931
  customer_code?: string | null;
24928
24932
  data?: import("../integrations/supabase/types").Json;
24933
+ deleted_at?: string | null;
24929
24934
  due_date?: string | null;
24930
24935
  fetched_at?: string;
24931
24936
  invoice_date?: string | null;
24932
24937
  invoice_number: string;
24938
+ lines_fetched_at?: string | null;
24933
24939
  modified_at?: string | null;
24934
24940
  outstanding_amount?: number | null;
24941
+ paid_at?: string | null;
24935
24942
  status?: string | null;
24936
24943
  status_label?: string | null;
24937
24944
  total_excl?: number | null;
@@ -24943,12 +24950,15 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
24943
24950
  currency?: string | null;
24944
24951
  customer_code?: string | null;
24945
24952
  data?: import("../integrations/supabase/types").Json;
24953
+ deleted_at?: string | null;
24946
24954
  due_date?: string | null;
24947
24955
  fetched_at?: string;
24948
24956
  invoice_date?: string | null;
24949
24957
  invoice_number?: string;
24958
+ lines_fetched_at?: string | null;
24950
24959
  modified_at?: string | null;
24951
24960
  outstanding_amount?: number | null;
24961
+ paid_at?: string | null;
24952
24962
  status?: string | null;
24953
24963
  status_label?: string | null;
24954
24964
  total_excl?: number | null;
@@ -24963,30 +24973,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
24963
24973
  referencedColumns: ["id"];
24964
24974
  }];
24965
24975
  };
24966
- twinfield_oauth_state: {
24967
- Row: {
24968
- created_at: string;
24969
- environment: string;
24970
- nonce: string | null;
24971
- state: string;
24972
- user_id: string;
24973
- };
24974
- Insert: {
24975
- created_at?: string;
24976
- environment: string;
24977
- nonce?: string | null;
24978
- state: string;
24979
- user_id: string;
24980
- };
24981
- Update: {
24982
- created_at?: string;
24983
- environment?: string;
24984
- nonce?: string | null;
24985
- state?: string;
24986
- user_id?: string;
24987
- };
24988
- Relationships: [];
24989
- };
24990
24976
  twinfield_push_queue: {
24991
24977
  Row: {
24992
24978
  action: string;
@@ -25152,39 +25138,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
25152
25138
  referencedColumns: ["id"];
25153
25139
  }];
25154
25140
  };
25155
- twinfield_token_refresh_log: {
25156
- Row: {
25157
- attempted_at: string;
25158
- connection_id: string;
25159
- error: string | null;
25160
- expires_at: string | null;
25161
- id: string;
25162
- ok: boolean;
25163
- };
25164
- Insert: {
25165
- attempted_at?: string;
25166
- connection_id: string;
25167
- error?: string | null;
25168
- expires_at?: string | null;
25169
- id?: string;
25170
- ok: boolean;
25171
- };
25172
- Update: {
25173
- attempted_at?: string;
25174
- connection_id?: string;
25175
- error?: string | null;
25176
- expires_at?: string | null;
25177
- id?: string;
25178
- ok?: boolean;
25179
- };
25180
- Relationships: [{
25181
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25182
- columns: ["connection_id"];
25183
- isOneToOne: false;
25184
- referencedRelation: "twinfield_connections";
25185
- referencedColumns: ["id"];
25186
- }];
25187
- };
25188
25141
  user_roles: {
25189
25142
  Row: {
25190
25143
  created_at: string;
@@ -27625,15 +27578,16 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
27625
27578
  };
27626
27579
  Returns: undefined;
27627
27580
  };
27628
- twinfield_decrypt: {
27629
- Args: {
27630
- cipher: string;
27631
- };
27632
- Returns: string;
27633
- };
27634
- twinfield_encrypt: {
27581
+ twinfield_upsert_connection_by_account_key: {
27635
27582
  Args: {
27636
- plain: string;
27583
+ p_account_key: string;
27584
+ p_cluster_uri?: string;
27585
+ p_company_code?: string;
27586
+ p_company_name?: string;
27587
+ p_environment: string;
27588
+ p_office_code?: string;
27589
+ p_status?: string;
27590
+ p_user_id: string;
27637
27591
  };
27638
27592
  Returns: string;
27639
27593
  };
@@ -32207,6 +32161,27 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
32207
32161
  referencedColumns: ["id"];
32208
32162
  }];
32209
32163
  };
32164
+ floriday_continuous_stock_cache: {
32165
+ Row: {
32166
+ connection_id: string;
32167
+ fetched_at: string;
32168
+ number_of_pieces: number;
32169
+ trade_item_id: string;
32170
+ };
32171
+ Insert: {
32172
+ connection_id: string;
32173
+ fetched_at?: string;
32174
+ number_of_pieces?: number;
32175
+ trade_item_id: string;
32176
+ };
32177
+ Update: {
32178
+ connection_id?: string;
32179
+ fetched_at?: string;
32180
+ number_of_pieces?: number;
32181
+ trade_item_id?: string;
32182
+ };
32183
+ Relationships: [];
32184
+ };
32210
32185
  floriday_continuous_stock_queue: {
32211
32186
  Row: {
32212
32187
  attempts: number;
@@ -33185,6 +33160,45 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
33185
33160
  referencedColumns: ["id"];
33186
33161
  }];
33187
33162
  };
33163
+ floriday_trade_settings_customers_cache: {
33164
+ Row: {
33165
+ connection_id: string;
33166
+ data: import("../integrations/supabase/types").Json;
33167
+ fetched_at: string;
33168
+ floriday_id: string;
33169
+ id: string;
33170
+ is_deleted: boolean;
33171
+ sequence_number: number;
33172
+ updated_at: string;
33173
+ };
33174
+ Insert: {
33175
+ connection_id: string;
33176
+ data: import("../integrations/supabase/types").Json;
33177
+ fetched_at?: string;
33178
+ floriday_id: string;
33179
+ id?: string;
33180
+ is_deleted?: boolean;
33181
+ sequence_number?: number;
33182
+ updated_at?: string;
33183
+ };
33184
+ Update: {
33185
+ connection_id?: string;
33186
+ data?: import("../integrations/supabase/types").Json;
33187
+ fetched_at?: string;
33188
+ floriday_id?: string;
33189
+ id?: string;
33190
+ is_deleted?: boolean;
33191
+ sequence_number?: number;
33192
+ updated_at?: string;
33193
+ };
33194
+ Relationships: [{
33195
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
33196
+ columns: ["connection_id"];
33197
+ isOneToOne: false;
33198
+ referencedRelation: "floriday_connections";
33199
+ referencedColumns: ["id"];
33200
+ }];
33201
+ };
33188
33202
  floriday_trips_cache: {
33189
33203
  Row: {
33190
33204
  carrier_organization_id: string | null;
@@ -33233,6 +33247,27 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
33233
33247
  referencedColumns: ["id"];
33234
33248
  }];
33235
33249
  };
33250
+ floriday_vbn_required_characteristics: {
33251
+ Row: {
33252
+ required_codes: string[];
33253
+ updated_at: string;
33254
+ updated_by: string | null;
33255
+ vbn_code: string;
33256
+ };
33257
+ Insert: {
33258
+ required_codes?: string[];
33259
+ updated_at?: string;
33260
+ updated_by?: string | null;
33261
+ vbn_code: string;
33262
+ };
33263
+ Update: {
33264
+ required_codes?: string[];
33265
+ updated_at?: string;
33266
+ updated_by?: string | null;
33267
+ vbn_code?: string;
33268
+ };
33269
+ Relationships: [];
33270
+ };
33236
33271
  floriday_warehouses_cache: {
33237
33272
  Row: {
33238
33273
  connection_id: string;
@@ -38206,9 +38241,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
38206
38241
  };
38207
38242
  twinfield_connections: {
38208
38243
  Row: {
38209
- access_token: string | null;
38210
- client_id: string;
38211
- client_secret: string | null;
38244
+ account_key: string | null;
38212
38245
  cluster_uri: string | null;
38213
38246
  company_code: string | null;
38214
38247
  company_name: string | null;
@@ -38219,16 +38252,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
38219
38252
  is_active: boolean;
38220
38253
  label: string | null;
38221
38254
  office_code: string | null;
38222
- redirect_uri: string;
38223
- refresh_token: string | null;
38224
- token_expires_at: string | null;
38255
+ redirect_uri: string | null;
38225
38256
  updated_at: string;
38226
38257
  user_id: string;
38227
38258
  };
38228
38259
  Insert: {
38229
- access_token?: string | null;
38230
- client_id: string;
38231
- client_secret?: string | null;
38260
+ account_key?: string | null;
38232
38261
  cluster_uri?: string | null;
38233
38262
  company_code?: string | null;
38234
38263
  company_name?: string | null;
@@ -38239,16 +38268,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
38239
38268
  is_active?: boolean;
38240
38269
  label?: string | null;
38241
38270
  office_code?: string | null;
38242
- redirect_uri: string;
38243
- refresh_token?: string | null;
38244
- token_expires_at?: string | null;
38271
+ redirect_uri?: string | null;
38245
38272
  updated_at?: string;
38246
38273
  user_id: string;
38247
38274
  };
38248
38275
  Update: {
38249
- access_token?: string | null;
38250
- client_id?: string;
38251
- client_secret?: string | null;
38276
+ account_key?: string | null;
38252
38277
  cluster_uri?: string | null;
38253
38278
  company_code?: string | null;
38254
38279
  company_name?: string | null;
@@ -38259,54 +38284,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
38259
38284
  is_active?: boolean;
38260
38285
  label?: string | null;
38261
38286
  office_code?: string | null;
38262
- redirect_uri?: string;
38263
- refresh_token?: string | null;
38264
- token_expires_at?: string | null;
38265
- updated_at?: string;
38266
- user_id?: string;
38267
- };
38268
- Relationships: [];
38269
- };
38270
- twinfield_credentials: {
38271
- Row: {
38272
- administration_code: string | null;
38273
- client_id: string | null;
38274
- client_secret: string | null;
38275
- cluster: string | null;
38276
- connected_at: string | null;
38277
- created_at: string;
38278
- environment: string | null;
38279
- id: string;
38280
- redirect_uri: string | null;
38281
- refresh_token: string | null;
38282
- updated_at: string;
38283
- user_id: string;
38284
- };
38285
- Insert: {
38286
- administration_code?: string | null;
38287
- client_id?: string | null;
38288
- client_secret?: string | null;
38289
- cluster?: string | null;
38290
- connected_at?: string | null;
38291
- created_at?: string;
38292
- environment?: string | null;
38293
- id?: string;
38294
- redirect_uri?: string | null;
38295
- refresh_token?: string | null;
38296
- updated_at?: string;
38297
- user_id: string;
38298
- };
38299
- Update: {
38300
- administration_code?: string | null;
38301
- client_id?: string | null;
38302
- client_secret?: string | null;
38303
- cluster?: string | null;
38304
- connected_at?: string | null;
38305
- created_at?: string;
38306
- environment?: string | null;
38307
- id?: string;
38308
38287
  redirect_uri?: string | null;
38309
- refresh_token?: string | null;
38310
38288
  updated_at?: string;
38311
38289
  user_id?: string;
38312
38290
  };
@@ -38753,12 +38731,15 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
38753
38731
  currency: string | null;
38754
38732
  customer_code: string | null;
38755
38733
  data: import("../integrations/supabase/types").Json;
38734
+ deleted_at: string | null;
38756
38735
  due_date: string | null;
38757
38736
  fetched_at: string;
38758
38737
  invoice_date: string | null;
38759
38738
  invoice_number: string;
38739
+ lines_fetched_at: string | null;
38760
38740
  modified_at: string | null;
38761
38741
  outstanding_amount: number | null;
38742
+ paid_at: string | null;
38762
38743
  status: string | null;
38763
38744
  status_label: string | null;
38764
38745
  total_excl: number | null;
@@ -38770,12 +38751,15 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
38770
38751
  currency?: string | null;
38771
38752
  customer_code?: string | null;
38772
38753
  data?: import("../integrations/supabase/types").Json;
38754
+ deleted_at?: string | null;
38773
38755
  due_date?: string | null;
38774
38756
  fetched_at?: string;
38775
38757
  invoice_date?: string | null;
38776
38758
  invoice_number: string;
38759
+ lines_fetched_at?: string | null;
38777
38760
  modified_at?: string | null;
38778
38761
  outstanding_amount?: number | null;
38762
+ paid_at?: string | null;
38779
38763
  status?: string | null;
38780
38764
  status_label?: string | null;
38781
38765
  total_excl?: number | null;
@@ -38787,12 +38771,15 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
38787
38771
  currency?: string | null;
38788
38772
  customer_code?: string | null;
38789
38773
  data?: import("../integrations/supabase/types").Json;
38774
+ deleted_at?: string | null;
38790
38775
  due_date?: string | null;
38791
38776
  fetched_at?: string;
38792
38777
  invoice_date?: string | null;
38793
38778
  invoice_number?: string;
38779
+ lines_fetched_at?: string | null;
38794
38780
  modified_at?: string | null;
38795
38781
  outstanding_amount?: number | null;
38782
+ paid_at?: string | null;
38796
38783
  status?: string | null;
38797
38784
  status_label?: string | null;
38798
38785
  total_excl?: number | null;
@@ -38807,30 +38794,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
38807
38794
  referencedColumns: ["id"];
38808
38795
  }];
38809
38796
  };
38810
- twinfield_oauth_state: {
38811
- Row: {
38812
- created_at: string;
38813
- environment: string;
38814
- nonce: string | null;
38815
- state: string;
38816
- user_id: string;
38817
- };
38818
- Insert: {
38819
- created_at?: string;
38820
- environment: string;
38821
- nonce?: string | null;
38822
- state: string;
38823
- user_id: string;
38824
- };
38825
- Update: {
38826
- created_at?: string;
38827
- environment?: string;
38828
- nonce?: string | null;
38829
- state?: string;
38830
- user_id?: string;
38831
- };
38832
- Relationships: [];
38833
- };
38834
38797
  twinfield_push_queue: {
38835
38798
  Row: {
38836
38799
  action: string;
@@ -38996,39 +38959,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
38996
38959
  referencedColumns: ["id"];
38997
38960
  }];
38998
38961
  };
38999
- twinfield_token_refresh_log: {
39000
- Row: {
39001
- attempted_at: string;
39002
- connection_id: string;
39003
- error: string | null;
39004
- expires_at: string | null;
39005
- id: string;
39006
- ok: boolean;
39007
- };
39008
- Insert: {
39009
- attempted_at?: string;
39010
- connection_id: string;
39011
- error?: string | null;
39012
- expires_at?: string | null;
39013
- id?: string;
39014
- ok: boolean;
39015
- };
39016
- Update: {
39017
- attempted_at?: string;
39018
- connection_id?: string;
39019
- error?: string | null;
39020
- expires_at?: string | null;
39021
- id?: string;
39022
- ok?: boolean;
39023
- };
39024
- Relationships: [{
39025
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
39026
- columns: ["connection_id"];
39027
- isOneToOne: false;
39028
- referencedRelation: "twinfield_connections";
39029
- referencedColumns: ["id"];
39030
- }];
39031
- };
39032
38962
  user_roles: {
39033
38963
  Row: {
39034
38964
  created_at: string;
@@ -41469,15 +41399,16 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
41469
41399
  };
41470
41400
  Returns: undefined;
41471
41401
  };
41472
- twinfield_decrypt: {
41402
+ twinfield_upsert_connection_by_account_key: {
41473
41403
  Args: {
41474
- cipher: string;
41475
- };
41476
- Returns: string;
41477
- };
41478
- twinfield_encrypt: {
41479
- Args: {
41480
- plain: string;
41404
+ p_account_key: string;
41405
+ p_cluster_uri?: string;
41406
+ p_company_code?: string;
41407
+ p_company_name?: string;
41408
+ p_environment: string;
41409
+ p_office_code?: string;
41410
+ p_status?: string;
41411
+ p_user_id: string;
41481
41412
  };
41482
41413
  Returns: string;
41483
41414
  };