@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
@@ -4533,6 +4533,27 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
4533
4533
  referencedColumns: ["id"];
4534
4534
  }];
4535
4535
  };
4536
+ floriday_continuous_stock_cache: {
4537
+ Row: {
4538
+ connection_id: string;
4539
+ fetched_at: string;
4540
+ number_of_pieces: number;
4541
+ trade_item_id: string;
4542
+ };
4543
+ Insert: {
4544
+ connection_id: string;
4545
+ fetched_at?: string;
4546
+ number_of_pieces?: number;
4547
+ trade_item_id: string;
4548
+ };
4549
+ Update: {
4550
+ connection_id?: string;
4551
+ fetched_at?: string;
4552
+ number_of_pieces?: number;
4553
+ trade_item_id?: string;
4554
+ };
4555
+ Relationships: [];
4556
+ };
4536
4557
  floriday_continuous_stock_queue: {
4537
4558
  Row: {
4538
4559
  attempts: number;
@@ -5511,6 +5532,45 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5511
5532
  referencedColumns: ["id"];
5512
5533
  }];
5513
5534
  };
5535
+ floriday_trade_settings_customers_cache: {
5536
+ Row: {
5537
+ connection_id: string;
5538
+ data: import("../integrations/supabase/types").Json;
5539
+ fetched_at: string;
5540
+ floriday_id: string;
5541
+ id: string;
5542
+ is_deleted: boolean;
5543
+ sequence_number: number;
5544
+ updated_at: string;
5545
+ };
5546
+ Insert: {
5547
+ connection_id: string;
5548
+ data: import("../integrations/supabase/types").Json;
5549
+ fetched_at?: string;
5550
+ floriday_id: string;
5551
+ id?: string;
5552
+ is_deleted?: boolean;
5553
+ sequence_number?: number;
5554
+ updated_at?: string;
5555
+ };
5556
+ Update: {
5557
+ connection_id?: string;
5558
+ data?: import("../integrations/supabase/types").Json;
5559
+ fetched_at?: string;
5560
+ floriday_id?: string;
5561
+ id?: string;
5562
+ is_deleted?: boolean;
5563
+ sequence_number?: number;
5564
+ updated_at?: string;
5565
+ };
5566
+ Relationships: [{
5567
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5568
+ columns: ["connection_id"];
5569
+ isOneToOne: false;
5570
+ referencedRelation: "floriday_connections";
5571
+ referencedColumns: ["id"];
5572
+ }];
5573
+ };
5514
5574
  floriday_trips_cache: {
5515
5575
  Row: {
5516
5576
  carrier_organization_id: string | null;
@@ -5559,6 +5619,27 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
5559
5619
  referencedColumns: ["id"];
5560
5620
  }];
5561
5621
  };
5622
+ floriday_vbn_required_characteristics: {
5623
+ Row: {
5624
+ required_codes: string[];
5625
+ updated_at: string;
5626
+ updated_by: string | null;
5627
+ vbn_code: string;
5628
+ };
5629
+ Insert: {
5630
+ required_codes?: string[];
5631
+ updated_at?: string;
5632
+ updated_by?: string | null;
5633
+ vbn_code: string;
5634
+ };
5635
+ Update: {
5636
+ required_codes?: string[];
5637
+ updated_at?: string;
5638
+ updated_by?: string | null;
5639
+ vbn_code?: string;
5640
+ };
5641
+ Relationships: [];
5642
+ };
5562
5643
  floriday_warehouses_cache: {
5563
5644
  Row: {
5564
5645
  connection_id: string;
@@ -10532,9 +10613,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10532
10613
  };
10533
10614
  twinfield_connections: {
10534
10615
  Row: {
10535
- access_token: string | null;
10536
- client_id: string;
10537
- client_secret: string | null;
10616
+ account_key: string | null;
10538
10617
  cluster_uri: string | null;
10539
10618
  company_code: string | null;
10540
10619
  company_name: string | null;
@@ -10545,16 +10624,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10545
10624
  is_active: boolean;
10546
10625
  label: string | null;
10547
10626
  office_code: string | null;
10548
- redirect_uri: string;
10549
- refresh_token: string | null;
10550
- token_expires_at: string | null;
10627
+ redirect_uri: string | null;
10551
10628
  updated_at: string;
10552
10629
  user_id: string;
10553
10630
  };
10554
10631
  Insert: {
10555
- access_token?: string | null;
10556
- client_id: string;
10557
- client_secret?: string | null;
10632
+ account_key?: string | null;
10558
10633
  cluster_uri?: string | null;
10559
10634
  company_code?: string | null;
10560
10635
  company_name?: string | null;
@@ -10565,16 +10640,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10565
10640
  is_active?: boolean;
10566
10641
  label?: string | null;
10567
10642
  office_code?: string | null;
10568
- redirect_uri: string;
10569
- refresh_token?: string | null;
10570
- token_expires_at?: string | null;
10643
+ redirect_uri?: string | null;
10571
10644
  updated_at?: string;
10572
10645
  user_id: string;
10573
10646
  };
10574
10647
  Update: {
10575
- access_token?: string | null;
10576
- client_id?: string;
10577
- client_secret?: string | null;
10648
+ account_key?: string | null;
10578
10649
  cluster_uri?: string | null;
10579
10650
  company_code?: string | null;
10580
10651
  company_name?: string | null;
@@ -10585,54 +10656,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10585
10656
  is_active?: boolean;
10586
10657
  label?: string | null;
10587
10658
  office_code?: string | null;
10588
- redirect_uri?: string;
10589
- refresh_token?: string | null;
10590
- token_expires_at?: string | null;
10591
- updated_at?: string;
10592
- user_id?: string;
10593
- };
10594
- Relationships: [];
10595
- };
10596
- twinfield_credentials: {
10597
- Row: {
10598
- administration_code: string | null;
10599
- client_id: string | null;
10600
- client_secret: string | null;
10601
- cluster: string | null;
10602
- connected_at: string | null;
10603
- created_at: string;
10604
- environment: string | null;
10605
- id: string;
10606
- redirect_uri: string | null;
10607
- refresh_token: string | null;
10608
- updated_at: string;
10609
- user_id: string;
10610
- };
10611
- Insert: {
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
- Update: {
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
10659
  redirect_uri?: string | null;
10635
- refresh_token?: string | null;
10636
10660
  updated_at?: string;
10637
10661
  user_id?: string;
10638
10662
  };
@@ -11079,12 +11103,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11079
11103
  currency: string | null;
11080
11104
  customer_code: string | null;
11081
11105
  data: import("../integrations/supabase/types").Json;
11106
+ deleted_at: string | null;
11082
11107
  due_date: string | null;
11083
11108
  fetched_at: string;
11084
11109
  invoice_date: string | null;
11085
11110
  invoice_number: string;
11111
+ lines_fetched_at: string | null;
11086
11112
  modified_at: string | null;
11087
11113
  outstanding_amount: number | null;
11114
+ paid_at: string | null;
11088
11115
  status: string | null;
11089
11116
  status_label: string | null;
11090
11117
  total_excl: number | null;
@@ -11096,12 +11123,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11096
11123
  currency?: string | null;
11097
11124
  customer_code?: string | null;
11098
11125
  data?: import("../integrations/supabase/types").Json;
11126
+ deleted_at?: string | null;
11099
11127
  due_date?: string | null;
11100
11128
  fetched_at?: string;
11101
11129
  invoice_date?: string | null;
11102
11130
  invoice_number: string;
11131
+ lines_fetched_at?: string | null;
11103
11132
  modified_at?: string | null;
11104
11133
  outstanding_amount?: number | null;
11134
+ paid_at?: string | null;
11105
11135
  status?: string | null;
11106
11136
  status_label?: string | null;
11107
11137
  total_excl?: number | null;
@@ -11113,12 +11143,15 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11113
11143
  currency?: string | null;
11114
11144
  customer_code?: string | null;
11115
11145
  data?: import("../integrations/supabase/types").Json;
11146
+ deleted_at?: string | null;
11116
11147
  due_date?: string | null;
11117
11148
  fetched_at?: string;
11118
11149
  invoice_date?: string | null;
11119
11150
  invoice_number?: string;
11151
+ lines_fetched_at?: string | null;
11120
11152
  modified_at?: string | null;
11121
11153
  outstanding_amount?: number | null;
11154
+ paid_at?: string | null;
11122
11155
  status?: string | null;
11123
11156
  status_label?: string | null;
11124
11157
  total_excl?: number | null;
@@ -11133,30 +11166,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11133
11166
  referencedColumns: ["id"];
11134
11167
  }];
11135
11168
  };
11136
- twinfield_oauth_state: {
11137
- Row: {
11138
- created_at: string;
11139
- environment: string;
11140
- nonce: string | null;
11141
- state: string;
11142
- user_id: string;
11143
- };
11144
- Insert: {
11145
- created_at?: string;
11146
- environment: string;
11147
- nonce?: string | null;
11148
- state: string;
11149
- user_id: string;
11150
- };
11151
- Update: {
11152
- created_at?: string;
11153
- environment?: string;
11154
- nonce?: string | null;
11155
- state?: string;
11156
- user_id?: string;
11157
- };
11158
- Relationships: [];
11159
- };
11160
11169
  twinfield_push_queue: {
11161
11170
  Row: {
11162
11171
  action: string;
@@ -11322,39 +11331,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11322
11331
  referencedColumns: ["id"];
11323
11332
  }];
11324
11333
  };
11325
- twinfield_token_refresh_log: {
11326
- Row: {
11327
- attempted_at: string;
11328
- connection_id: string;
11329
- error: string | null;
11330
- expires_at: string | null;
11331
- id: string;
11332
- ok: boolean;
11333
- };
11334
- Insert: {
11335
- attempted_at?: string;
11336
- connection_id: string;
11337
- error?: string | null;
11338
- expires_at?: string | null;
11339
- id?: string;
11340
- ok: boolean;
11341
- };
11342
- Update: {
11343
- attempted_at?: string;
11344
- connection_id?: string;
11345
- error?: string | null;
11346
- expires_at?: string | null;
11347
- id?: string;
11348
- ok?: boolean;
11349
- };
11350
- Relationships: [{
11351
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11352
- columns: ["connection_id"];
11353
- isOneToOne: false;
11354
- referencedRelation: "twinfield_connections";
11355
- referencedColumns: ["id"];
11356
- }];
11357
- };
11358
11334
  user_roles: {
11359
11335
  Row: {
11360
11336
  created_at: string;
@@ -13795,15 +13771,16 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13795
13771
  };
13796
13772
  Returns: undefined;
13797
13773
  };
13798
- twinfield_decrypt: {
13799
- Args: {
13800
- cipher: string;
13801
- };
13802
- Returns: string;
13803
- };
13804
- twinfield_encrypt: {
13774
+ twinfield_upsert_connection_by_account_key: {
13805
13775
  Args: {
13806
- plain: string;
13776
+ p_account_key: string;
13777
+ p_cluster_uri?: string;
13778
+ p_company_code?: string;
13779
+ p_company_name?: string;
13780
+ p_environment: string;
13781
+ p_office_code?: string;
13782
+ p_status?: string;
13783
+ p_user_id: string;
13807
13784
  };
13808
13785
  Returns: string;
13809
13786
  };