@flowselections/floriday-afhandeling-module 1.0.20 → 1.0.22

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 (38) hide show
  1. package/dist-lib/index.d.ts +3 -0
  2. package/dist-lib/index.d.ts.map +1 -1
  3. package/dist-lib/index.js +3 -0
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts +93 -125
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  6. package/dist-lib/integrations/supabase/client.d.ts +93 -125
  7. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.server.d.ts +93 -125
  9. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/types.d.ts +95 -127
  11. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  12. package/dist-lib/lib/afhandelingSettings.functions.d.ts +186 -250
  13. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  14. package/dist-lib/lib/carriers.functions.d.ts +465 -625
  15. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/cartAssignments.functions.d.ts +465 -625
  17. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/cartControl.functions.d.ts +930 -1250
  19. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday.functions.d.ts +93 -125
  21. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +372 -500
  23. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +93 -125
  25. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +186 -250
  27. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +744 -1000
  29. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +372 -500
  31. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/serverRoutes/dispatchCarrierSignups.handler.d.ts +1 -1
  33. package/dist-lib/lib/serverRoutes/dispatchCarrierSignups.handler.d.ts.map +1 -1
  34. package/dist-lib/lib/serverRoutes/dispatchCarrierSignups.handler.js +6 -1
  35. package/dist-lib/lib/serverRoutes/logisticsTick.handler.d.ts +1 -1
  36. package/dist-lib/lib/serverRoutes/logisticsTick.handler.d.ts.map +1 -1
  37. package/dist-lib/lib/serverRoutes/logisticsTick.handler.js +6 -1
  38. package/package.json +34 -1
@@ -4546,6 +4546,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
4546
4546
  referencedColumns: ["id"];
4547
4547
  }];
4548
4548
  };
4549
+ floriday_continuous_stock_cache: {
4550
+ Row: {
4551
+ connection_id: string;
4552
+ fetched_at: string;
4553
+ number_of_pieces: number;
4554
+ trade_item_id: string;
4555
+ };
4556
+ Insert: {
4557
+ connection_id: string;
4558
+ fetched_at?: string;
4559
+ number_of_pieces?: number;
4560
+ trade_item_id: string;
4561
+ };
4562
+ Update: {
4563
+ connection_id?: string;
4564
+ fetched_at?: string;
4565
+ number_of_pieces?: number;
4566
+ trade_item_id?: string;
4567
+ };
4568
+ Relationships: [];
4569
+ };
4549
4570
  floriday_continuous_stock_queue: {
4550
4571
  Row: {
4551
4572
  attempts: number;
@@ -5524,6 +5545,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5524
5545
  referencedColumns: ["id"];
5525
5546
  }];
5526
5547
  };
5548
+ floriday_trade_settings_customers_cache: {
5549
+ Row: {
5550
+ connection_id: string;
5551
+ data: import("../integrations/supabase/types").Json;
5552
+ fetched_at: string;
5553
+ floriday_id: string;
5554
+ id: string;
5555
+ is_deleted: boolean;
5556
+ sequence_number: number;
5557
+ updated_at: string;
5558
+ };
5559
+ Insert: {
5560
+ connection_id: string;
5561
+ data: import("../integrations/supabase/types").Json;
5562
+ fetched_at?: string;
5563
+ floriday_id: string;
5564
+ id?: string;
5565
+ is_deleted?: boolean;
5566
+ sequence_number?: number;
5567
+ updated_at?: string;
5568
+ };
5569
+ Update: {
5570
+ connection_id?: string;
5571
+ data?: import("../integrations/supabase/types").Json;
5572
+ fetched_at?: string;
5573
+ floriday_id?: string;
5574
+ id?: string;
5575
+ is_deleted?: boolean;
5576
+ sequence_number?: number;
5577
+ updated_at?: string;
5578
+ };
5579
+ Relationships: [{
5580
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5581
+ columns: ["connection_id"];
5582
+ isOneToOne: false;
5583
+ referencedRelation: "floriday_connections";
5584
+ referencedColumns: ["id"];
5585
+ }];
5586
+ };
5527
5587
  floriday_trips_cache: {
5528
5588
  Row: {
5529
5589
  carrier_organization_id: string | null;
@@ -5572,6 +5632,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5572
5632
  referencedColumns: ["id"];
5573
5633
  }];
5574
5634
  };
5635
+ floriday_vbn_required_characteristics: {
5636
+ Row: {
5637
+ required_codes: string[];
5638
+ updated_at: string;
5639
+ updated_by: string | null;
5640
+ vbn_code: string;
5641
+ };
5642
+ Insert: {
5643
+ required_codes?: string[];
5644
+ updated_at?: string;
5645
+ updated_by?: string | null;
5646
+ vbn_code: string;
5647
+ };
5648
+ Update: {
5649
+ required_codes?: string[];
5650
+ updated_at?: string;
5651
+ updated_by?: string | null;
5652
+ vbn_code?: string;
5653
+ };
5654
+ Relationships: [];
5655
+ };
5575
5656
  floriday_warehouses_cache: {
5576
5657
  Row: {
5577
5658
  connection_id: string;
@@ -10545,9 +10626,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10545
10626
  };
10546
10627
  twinfield_connections: {
10547
10628
  Row: {
10548
- access_token: string | null;
10549
- client_id: string;
10550
- client_secret: string | null;
10629
+ account_key: string | null;
10551
10630
  cluster_uri: string | null;
10552
10631
  company_code: string | null;
10553
10632
  company_name: string | null;
@@ -10559,15 +10638,11 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10559
10638
  label: string | null;
10560
10639
  office_code: string | null;
10561
10640
  redirect_uri: string;
10562
- refresh_token: string | null;
10563
- token_expires_at: string | null;
10564
10641
  updated_at: string;
10565
10642
  user_id: string;
10566
10643
  };
10567
10644
  Insert: {
10568
- access_token?: string | null;
10569
- client_id: string;
10570
- client_secret?: string | null;
10645
+ account_key?: string | null;
10571
10646
  cluster_uri?: string | null;
10572
10647
  company_code?: string | null;
10573
10648
  company_name?: string | null;
@@ -10579,15 +10654,11 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10579
10654
  label?: string | null;
10580
10655
  office_code?: string | null;
10581
10656
  redirect_uri: string;
10582
- refresh_token?: string | null;
10583
- token_expires_at?: string | null;
10584
10657
  updated_at?: string;
10585
10658
  user_id: string;
10586
10659
  };
10587
10660
  Update: {
10588
- access_token?: string | null;
10589
- client_id?: string;
10590
- client_secret?: string | null;
10661
+ account_key?: string | null;
10591
10662
  cluster_uri?: string | null;
10592
10663
  company_code?: string | null;
10593
10664
  company_name?: string | null;
@@ -10599,53 +10670,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10599
10670
  label?: string | null;
10600
10671
  office_code?: string | null;
10601
10672
  redirect_uri?: string;
10602
- refresh_token?: string | null;
10603
- token_expires_at?: string | null;
10604
- updated_at?: string;
10605
- user_id?: string;
10606
- };
10607
- Relationships: [];
10608
- };
10609
- twinfield_credentials: {
10610
- Row: {
10611
- administration_code: string | null;
10612
- client_id: string | null;
10613
- client_secret: string | null;
10614
- cluster: string | null;
10615
- connected_at: string | null;
10616
- created_at: string;
10617
- environment: string | null;
10618
- id: string;
10619
- redirect_uri: string | null;
10620
- refresh_token: string | null;
10621
- updated_at: string;
10622
- user_id: string;
10623
- };
10624
- Insert: {
10625
- administration_code?: string | null;
10626
- client_id?: string | null;
10627
- client_secret?: string | null;
10628
- cluster?: string | null;
10629
- connected_at?: string | null;
10630
- created_at?: string;
10631
- environment?: string | null;
10632
- id?: string;
10633
- redirect_uri?: string | null;
10634
- refresh_token?: string | null;
10635
- updated_at?: string;
10636
- user_id: string;
10637
- };
10638
- Update: {
10639
- administration_code?: string | null;
10640
- client_id?: string | null;
10641
- client_secret?: string | null;
10642
- cluster?: string | null;
10643
- connected_at?: string | null;
10644
- created_at?: string;
10645
- environment?: string | null;
10646
- id?: string;
10647
- redirect_uri?: string | null;
10648
- refresh_token?: string | null;
10649
10673
  updated_at?: string;
10650
10674
  user_id?: string;
10651
10675
  };
@@ -11146,30 +11170,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11146
11170
  referencedColumns: ["id"];
11147
11171
  }];
11148
11172
  };
11149
- twinfield_oauth_state: {
11150
- Row: {
11151
- created_at: string;
11152
- environment: string;
11153
- nonce: string | null;
11154
- state: string;
11155
- user_id: string;
11156
- };
11157
- Insert: {
11158
- created_at?: string;
11159
- environment: string;
11160
- nonce?: string | null;
11161
- state: string;
11162
- user_id: string;
11163
- };
11164
- Update: {
11165
- created_at?: string;
11166
- environment?: string;
11167
- nonce?: string | null;
11168
- state?: string;
11169
- user_id?: string;
11170
- };
11171
- Relationships: [];
11172
- };
11173
11173
  twinfield_push_queue: {
11174
11174
  Row: {
11175
11175
  action: string;
@@ -11335,39 +11335,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11335
11335
  referencedColumns: ["id"];
11336
11336
  }];
11337
11337
  };
11338
- twinfield_token_refresh_log: {
11339
- Row: {
11340
- attempted_at: string;
11341
- connection_id: string;
11342
- error: string | null;
11343
- expires_at: string | null;
11344
- id: string;
11345
- ok: boolean;
11346
- };
11347
- Insert: {
11348
- attempted_at?: string;
11349
- connection_id: string;
11350
- error?: string | null;
11351
- expires_at?: string | null;
11352
- id?: string;
11353
- ok: boolean;
11354
- };
11355
- Update: {
11356
- attempted_at?: string;
11357
- connection_id?: string;
11358
- error?: string | null;
11359
- expires_at?: string | null;
11360
- id?: string;
11361
- ok?: boolean;
11362
- };
11363
- Relationships: [{
11364
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11365
- columns: ["connection_id"];
11366
- isOneToOne: false;
11367
- referencedRelation: "twinfield_connections";
11368
- referencedColumns: ["id"];
11369
- }];
11370
- };
11371
11338
  user_roles: {
11372
11339
  Row: {
11373
11340
  created_at: string;
@@ -13808,15 +13775,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13808
13775
  };
13809
13776
  Returns: undefined;
13810
13777
  };
13811
- twinfield_decrypt: {
13778
+ twinfield_upsert_connection_by_account_key: {
13812
13779
  Args: {
13813
- cipher: string;
13814
- };
13815
- Returns: string;
13816
- };
13817
- twinfield_encrypt: {
13818
- Args: {
13819
- plain: string;
13780
+ p_account_key: string;
13781
+ p_cluster_uri?: string;
13782
+ p_company_code?: string;
13783
+ p_company_name?: string;
13784
+ p_environment: string;
13785
+ p_office_code?: string;
13786
+ p_status?: string;
13787
+ p_user_id: string;
13820
13788
  };
13821
13789
  Returns: string;
13822
13790
  };
@@ -18378,6 +18346,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
18378
18346
  referencedColumns: ["id"];
18379
18347
  }];
18380
18348
  };
18349
+ floriday_continuous_stock_cache: {
18350
+ Row: {
18351
+ connection_id: string;
18352
+ fetched_at: string;
18353
+ number_of_pieces: number;
18354
+ trade_item_id: string;
18355
+ };
18356
+ Insert: {
18357
+ connection_id: string;
18358
+ fetched_at?: string;
18359
+ number_of_pieces?: number;
18360
+ trade_item_id: string;
18361
+ };
18362
+ Update: {
18363
+ connection_id?: string;
18364
+ fetched_at?: string;
18365
+ number_of_pieces?: number;
18366
+ trade_item_id?: string;
18367
+ };
18368
+ Relationships: [];
18369
+ };
18381
18370
  floriday_continuous_stock_queue: {
18382
18371
  Row: {
18383
18372
  attempts: number;
@@ -19356,6 +19345,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19356
19345
  referencedColumns: ["id"];
19357
19346
  }];
19358
19347
  };
19348
+ floriday_trade_settings_customers_cache: {
19349
+ Row: {
19350
+ connection_id: string;
19351
+ data: import("../integrations/supabase/types").Json;
19352
+ fetched_at: string;
19353
+ floriday_id: string;
19354
+ id: string;
19355
+ is_deleted: boolean;
19356
+ sequence_number: number;
19357
+ updated_at: string;
19358
+ };
19359
+ Insert: {
19360
+ connection_id: string;
19361
+ data: import("../integrations/supabase/types").Json;
19362
+ fetched_at?: string;
19363
+ floriday_id: string;
19364
+ id?: string;
19365
+ is_deleted?: boolean;
19366
+ sequence_number?: number;
19367
+ updated_at?: string;
19368
+ };
19369
+ Update: {
19370
+ connection_id?: string;
19371
+ data?: import("../integrations/supabase/types").Json;
19372
+ fetched_at?: string;
19373
+ floriday_id?: string;
19374
+ id?: string;
19375
+ is_deleted?: boolean;
19376
+ sequence_number?: number;
19377
+ updated_at?: string;
19378
+ };
19379
+ Relationships: [{
19380
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19381
+ columns: ["connection_id"];
19382
+ isOneToOne: false;
19383
+ referencedRelation: "floriday_connections";
19384
+ referencedColumns: ["id"];
19385
+ }];
19386
+ };
19359
19387
  floriday_trips_cache: {
19360
19388
  Row: {
19361
19389
  carrier_organization_id: string | null;
@@ -19404,6 +19432,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
19404
19432
  referencedColumns: ["id"];
19405
19433
  }];
19406
19434
  };
19435
+ floriday_vbn_required_characteristics: {
19436
+ Row: {
19437
+ required_codes: string[];
19438
+ updated_at: string;
19439
+ updated_by: string | null;
19440
+ vbn_code: string;
19441
+ };
19442
+ Insert: {
19443
+ required_codes?: string[];
19444
+ updated_at?: string;
19445
+ updated_by?: string | null;
19446
+ vbn_code: string;
19447
+ };
19448
+ Update: {
19449
+ required_codes?: string[];
19450
+ updated_at?: string;
19451
+ updated_by?: string | null;
19452
+ vbn_code?: string;
19453
+ };
19454
+ Relationships: [];
19455
+ };
19407
19456
  floriday_warehouses_cache: {
19408
19457
  Row: {
19409
19458
  connection_id: string;
@@ -24377,9 +24426,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
24377
24426
  };
24378
24427
  twinfield_connections: {
24379
24428
  Row: {
24380
- access_token: string | null;
24381
- client_id: string;
24382
- client_secret: string | null;
24429
+ account_key: string | null;
24383
24430
  cluster_uri: string | null;
24384
24431
  company_code: string | null;
24385
24432
  company_name: string | null;
@@ -24391,15 +24438,11 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
24391
24438
  label: string | null;
24392
24439
  office_code: string | null;
24393
24440
  redirect_uri: string;
24394
- refresh_token: string | null;
24395
- token_expires_at: string | null;
24396
24441
  updated_at: string;
24397
24442
  user_id: string;
24398
24443
  };
24399
24444
  Insert: {
24400
- access_token?: string | null;
24401
- client_id: string;
24402
- client_secret?: string | null;
24445
+ account_key?: string | null;
24403
24446
  cluster_uri?: string | null;
24404
24447
  company_code?: string | null;
24405
24448
  company_name?: string | null;
@@ -24411,15 +24454,11 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
24411
24454
  label?: string | null;
24412
24455
  office_code?: string | null;
24413
24456
  redirect_uri: string;
24414
- refresh_token?: string | null;
24415
- token_expires_at?: string | null;
24416
24457
  updated_at?: string;
24417
24458
  user_id: string;
24418
24459
  };
24419
24460
  Update: {
24420
- access_token?: string | null;
24421
- client_id?: string;
24422
- client_secret?: string | null;
24461
+ account_key?: string | null;
24423
24462
  cluster_uri?: string | null;
24424
24463
  company_code?: string | null;
24425
24464
  company_name?: string | null;
@@ -24431,53 +24470,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
24431
24470
  label?: string | null;
24432
24471
  office_code?: string | null;
24433
24472
  redirect_uri?: string;
24434
- refresh_token?: string | null;
24435
- token_expires_at?: string | null;
24436
- updated_at?: string;
24437
- user_id?: string;
24438
- };
24439
- Relationships: [];
24440
- };
24441
- twinfield_credentials: {
24442
- Row: {
24443
- administration_code: string | null;
24444
- client_id: string | null;
24445
- client_secret: string | null;
24446
- cluster: string | null;
24447
- connected_at: string | null;
24448
- created_at: string;
24449
- environment: string | null;
24450
- id: string;
24451
- redirect_uri: string | null;
24452
- refresh_token: string | null;
24453
- updated_at: string;
24454
- user_id: string;
24455
- };
24456
- Insert: {
24457
- administration_code?: string | null;
24458
- client_id?: string | null;
24459
- client_secret?: string | null;
24460
- cluster?: string | null;
24461
- connected_at?: string | null;
24462
- created_at?: string;
24463
- environment?: string | null;
24464
- id?: string;
24465
- redirect_uri?: string | null;
24466
- refresh_token?: string | null;
24467
- updated_at?: string;
24468
- user_id: string;
24469
- };
24470
- Update: {
24471
- administration_code?: string | null;
24472
- client_id?: string | null;
24473
- client_secret?: string | null;
24474
- cluster?: string | null;
24475
- connected_at?: string | null;
24476
- created_at?: string;
24477
- environment?: string | null;
24478
- id?: string;
24479
- redirect_uri?: string | null;
24480
- refresh_token?: string | null;
24481
24473
  updated_at?: string;
24482
24474
  user_id?: string;
24483
24475
  };
@@ -24978,30 +24970,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
24978
24970
  referencedColumns: ["id"];
24979
24971
  }];
24980
24972
  };
24981
- twinfield_oauth_state: {
24982
- Row: {
24983
- created_at: string;
24984
- environment: string;
24985
- nonce: string | null;
24986
- state: string;
24987
- user_id: string;
24988
- };
24989
- Insert: {
24990
- created_at?: string;
24991
- environment: string;
24992
- nonce?: string | null;
24993
- state: string;
24994
- user_id: string;
24995
- };
24996
- Update: {
24997
- created_at?: string;
24998
- environment?: string;
24999
- nonce?: string | null;
25000
- state?: string;
25001
- user_id?: string;
25002
- };
25003
- Relationships: [];
25004
- };
25005
24973
  twinfield_push_queue: {
25006
24974
  Row: {
25007
24975
  action: string;
@@ -25167,39 +25135,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
25167
25135
  referencedColumns: ["id"];
25168
25136
  }];
25169
25137
  };
25170
- twinfield_token_refresh_log: {
25171
- Row: {
25172
- attempted_at: string;
25173
- connection_id: string;
25174
- error: string | null;
25175
- expires_at: string | null;
25176
- id: string;
25177
- ok: boolean;
25178
- };
25179
- Insert: {
25180
- attempted_at?: string;
25181
- connection_id: string;
25182
- error?: string | null;
25183
- expires_at?: string | null;
25184
- id?: string;
25185
- ok: boolean;
25186
- };
25187
- Update: {
25188
- attempted_at?: string;
25189
- connection_id?: string;
25190
- error?: string | null;
25191
- expires_at?: string | null;
25192
- id?: string;
25193
- ok?: boolean;
25194
- };
25195
- Relationships: [{
25196
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25197
- columns: ["connection_id"];
25198
- isOneToOne: false;
25199
- referencedRelation: "twinfield_connections";
25200
- referencedColumns: ["id"];
25201
- }];
25202
- };
25203
25138
  user_roles: {
25204
25139
  Row: {
25205
25140
  created_at: string;
@@ -27640,15 +27575,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
27640
27575
  };
27641
27576
  Returns: undefined;
27642
27577
  };
27643
- twinfield_decrypt: {
27578
+ twinfield_upsert_connection_by_account_key: {
27644
27579
  Args: {
27645
- cipher: string;
27646
- };
27647
- Returns: string;
27648
- };
27649
- twinfield_encrypt: {
27650
- Args: {
27651
- plain: string;
27580
+ p_account_key: string;
27581
+ p_cluster_uri?: string;
27582
+ p_company_code?: string;
27583
+ p_company_name?: string;
27584
+ p_environment: string;
27585
+ p_office_code?: string;
27586
+ p_status?: string;
27587
+ p_user_id: string;
27652
27588
  };
27653
27589
  Returns: string;
27654
27590
  };