@flowselections/floriday-afhandeling-module 1.0.21 → 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 (32) 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/package.json +18 -1
@@ -4539,6 +4539,27 @@ export declare const listFormulas: import("@tanstack/start-client-core").Require
4539
4539
  referencedColumns: ["id"];
4540
4540
  }];
4541
4541
  };
4542
+ floriday_continuous_stock_cache: {
4543
+ Row: {
4544
+ connection_id: string;
4545
+ fetched_at: string;
4546
+ number_of_pieces: number;
4547
+ trade_item_id: string;
4548
+ };
4549
+ Insert: {
4550
+ connection_id: string;
4551
+ fetched_at?: string;
4552
+ number_of_pieces?: number;
4553
+ trade_item_id: string;
4554
+ };
4555
+ Update: {
4556
+ connection_id?: string;
4557
+ fetched_at?: string;
4558
+ number_of_pieces?: number;
4559
+ trade_item_id?: string;
4560
+ };
4561
+ Relationships: [];
4562
+ };
4542
4563
  floriday_continuous_stock_queue: {
4543
4564
  Row: {
4544
4565
  attempts: number;
@@ -5517,6 +5538,45 @@ export declare const listFormulas: import("@tanstack/start-client-core").Require
5517
5538
  referencedColumns: ["id"];
5518
5539
  }];
5519
5540
  };
5541
+ floriday_trade_settings_customers_cache: {
5542
+ Row: {
5543
+ connection_id: string;
5544
+ data: import("../../integrations/supabase/types").Json;
5545
+ fetched_at: string;
5546
+ floriday_id: string;
5547
+ id: string;
5548
+ is_deleted: boolean;
5549
+ sequence_number: number;
5550
+ updated_at: string;
5551
+ };
5552
+ Insert: {
5553
+ connection_id: string;
5554
+ data: import("../../integrations/supabase/types").Json;
5555
+ fetched_at?: string;
5556
+ floriday_id: string;
5557
+ id?: string;
5558
+ is_deleted?: boolean;
5559
+ sequence_number?: number;
5560
+ updated_at?: string;
5561
+ };
5562
+ Update: {
5563
+ connection_id?: string;
5564
+ data?: import("../../integrations/supabase/types").Json;
5565
+ fetched_at?: string;
5566
+ floriday_id?: string;
5567
+ id?: string;
5568
+ is_deleted?: boolean;
5569
+ sequence_number?: number;
5570
+ updated_at?: string;
5571
+ };
5572
+ Relationships: [{
5573
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5574
+ columns: ["connection_id"];
5575
+ isOneToOne: false;
5576
+ referencedRelation: "floriday_connections";
5577
+ referencedColumns: ["id"];
5578
+ }];
5579
+ };
5520
5580
  floriday_trips_cache: {
5521
5581
  Row: {
5522
5582
  carrier_organization_id: string | null;
@@ -5565,6 +5625,27 @@ export declare const listFormulas: import("@tanstack/start-client-core").Require
5565
5625
  referencedColumns: ["id"];
5566
5626
  }];
5567
5627
  };
5628
+ floriday_vbn_required_characteristics: {
5629
+ Row: {
5630
+ required_codes: string[];
5631
+ updated_at: string;
5632
+ updated_by: string | null;
5633
+ vbn_code: string;
5634
+ };
5635
+ Insert: {
5636
+ required_codes?: string[];
5637
+ updated_at?: string;
5638
+ updated_by?: string | null;
5639
+ vbn_code: string;
5640
+ };
5641
+ Update: {
5642
+ required_codes?: string[];
5643
+ updated_at?: string;
5644
+ updated_by?: string | null;
5645
+ vbn_code?: string;
5646
+ };
5647
+ Relationships: [];
5648
+ };
5568
5649
  floriday_warehouses_cache: {
5569
5650
  Row: {
5570
5651
  connection_id: string;
@@ -10538,9 +10619,7 @@ export declare const listFormulas: import("@tanstack/start-client-core").Require
10538
10619
  };
10539
10620
  twinfield_connections: {
10540
10621
  Row: {
10541
- access_token: string | null;
10542
- client_id: string;
10543
- client_secret: string | null;
10622
+ account_key: string | null;
10544
10623
  cluster_uri: string | null;
10545
10624
  company_code: string | null;
10546
10625
  company_name: string | null;
@@ -10552,15 +10631,11 @@ export declare const listFormulas: import("@tanstack/start-client-core").Require
10552
10631
  label: string | null;
10553
10632
  office_code: string | null;
10554
10633
  redirect_uri: string;
10555
- refresh_token: string | null;
10556
- token_expires_at: string | null;
10557
10634
  updated_at: string;
10558
10635
  user_id: string;
10559
10636
  };
10560
10637
  Insert: {
10561
- access_token?: string | null;
10562
- client_id: string;
10563
- client_secret?: string | null;
10638
+ account_key?: string | null;
10564
10639
  cluster_uri?: string | null;
10565
10640
  company_code?: string | null;
10566
10641
  company_name?: string | null;
@@ -10572,15 +10647,11 @@ export declare const listFormulas: import("@tanstack/start-client-core").Require
10572
10647
  label?: string | null;
10573
10648
  office_code?: string | null;
10574
10649
  redirect_uri: string;
10575
- refresh_token?: string | null;
10576
- token_expires_at?: string | null;
10577
10650
  updated_at?: string;
10578
10651
  user_id: string;
10579
10652
  };
10580
10653
  Update: {
10581
- access_token?: string | null;
10582
- client_id?: string;
10583
- client_secret?: string | null;
10654
+ account_key?: string | null;
10584
10655
  cluster_uri?: string | null;
10585
10656
  company_code?: string | null;
10586
10657
  company_name?: string | null;
@@ -10592,53 +10663,6 @@ export declare const listFormulas: import("@tanstack/start-client-core").Require
10592
10663
  label?: string | null;
10593
10664
  office_code?: string | null;
10594
10665
  redirect_uri?: string;
10595
- refresh_token?: string | null;
10596
- token_expires_at?: string | null;
10597
- updated_at?: string;
10598
- user_id?: string;
10599
- };
10600
- Relationships: [];
10601
- };
10602
- twinfield_credentials: {
10603
- Row: {
10604
- administration_code: string | null;
10605
- client_id: string | null;
10606
- client_secret: string | null;
10607
- cluster: string | null;
10608
- connected_at: string | null;
10609
- created_at: string;
10610
- environment: string | null;
10611
- id: string;
10612
- redirect_uri: string | null;
10613
- refresh_token: string | null;
10614
- updated_at: string;
10615
- user_id: string;
10616
- };
10617
- Insert: {
10618
- administration_code?: string | null;
10619
- client_id?: string | null;
10620
- client_secret?: string | null;
10621
- cluster?: string | null;
10622
- connected_at?: string | null;
10623
- created_at?: string;
10624
- environment?: string | null;
10625
- id?: string;
10626
- redirect_uri?: string | null;
10627
- refresh_token?: string | null;
10628
- updated_at?: string;
10629
- user_id: string;
10630
- };
10631
- Update: {
10632
- administration_code?: string | null;
10633
- client_id?: string | null;
10634
- client_secret?: string | null;
10635
- cluster?: string | null;
10636
- connected_at?: string | null;
10637
- created_at?: string;
10638
- environment?: string | null;
10639
- id?: string;
10640
- redirect_uri?: string | null;
10641
- refresh_token?: string | null;
10642
10666
  updated_at?: string;
10643
10667
  user_id?: string;
10644
10668
  };
@@ -11139,30 +11163,6 @@ export declare const listFormulas: import("@tanstack/start-client-core").Require
11139
11163
  referencedColumns: ["id"];
11140
11164
  }];
11141
11165
  };
11142
- twinfield_oauth_state: {
11143
- Row: {
11144
- created_at: string;
11145
- environment: string;
11146
- nonce: string | null;
11147
- state: string;
11148
- user_id: string;
11149
- };
11150
- Insert: {
11151
- created_at?: string;
11152
- environment: string;
11153
- nonce?: string | null;
11154
- state: string;
11155
- user_id: string;
11156
- };
11157
- Update: {
11158
- created_at?: string;
11159
- environment?: string;
11160
- nonce?: string | null;
11161
- state?: string;
11162
- user_id?: string;
11163
- };
11164
- Relationships: [];
11165
- };
11166
11166
  twinfield_push_queue: {
11167
11167
  Row: {
11168
11168
  action: string;
@@ -11328,39 +11328,6 @@ export declare const listFormulas: import("@tanstack/start-client-core").Require
11328
11328
  referencedColumns: ["id"];
11329
11329
  }];
11330
11330
  };
11331
- twinfield_token_refresh_log: {
11332
- Row: {
11333
- attempted_at: string;
11334
- connection_id: string;
11335
- error: string | null;
11336
- expires_at: string | null;
11337
- id: string;
11338
- ok: boolean;
11339
- };
11340
- Insert: {
11341
- attempted_at?: string;
11342
- connection_id: string;
11343
- error?: string | null;
11344
- expires_at?: string | null;
11345
- id?: string;
11346
- ok: boolean;
11347
- };
11348
- Update: {
11349
- attempted_at?: string;
11350
- connection_id?: string;
11351
- error?: string | null;
11352
- expires_at?: string | null;
11353
- id?: string;
11354
- ok?: boolean;
11355
- };
11356
- Relationships: [{
11357
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
11358
- columns: ["connection_id"];
11359
- isOneToOne: false;
11360
- referencedRelation: "twinfield_connections";
11361
- referencedColumns: ["id"];
11362
- }];
11363
- };
11364
11331
  user_roles: {
11365
11332
  Row: {
11366
11333
  created_at: string;
@@ -13801,15 +13768,16 @@ export declare const listFormulas: import("@tanstack/start-client-core").Require
13801
13768
  };
13802
13769
  Returns: undefined;
13803
13770
  };
13804
- twinfield_decrypt: {
13771
+ twinfield_upsert_connection_by_account_key: {
13805
13772
  Args: {
13806
- cipher: string;
13807
- };
13808
- Returns: string;
13809
- };
13810
- twinfield_encrypt: {
13811
- Args: {
13812
- plain: string;
13773
+ p_account_key: string;
13774
+ p_cluster_uri?: string;
13775
+ p_company_code?: string;
13776
+ p_company_name?: string;
13777
+ p_environment: string;
13778
+ p_office_code?: string;
13779
+ p_status?: string;
13780
+ p_user_id: string;
13813
13781
  };
13814
13782
  Returns: string;
13815
13783
  };
@@ -18377,6 +18345,27 @@ export declare const saveFormula: import("@tanstack/start-client-core").Required
18377
18345
  referencedColumns: ["id"];
18378
18346
  }];
18379
18347
  };
18348
+ floriday_continuous_stock_cache: {
18349
+ Row: {
18350
+ connection_id: string;
18351
+ fetched_at: string;
18352
+ number_of_pieces: number;
18353
+ trade_item_id: string;
18354
+ };
18355
+ Insert: {
18356
+ connection_id: string;
18357
+ fetched_at?: string;
18358
+ number_of_pieces?: number;
18359
+ trade_item_id: string;
18360
+ };
18361
+ Update: {
18362
+ connection_id?: string;
18363
+ fetched_at?: string;
18364
+ number_of_pieces?: number;
18365
+ trade_item_id?: string;
18366
+ };
18367
+ Relationships: [];
18368
+ };
18380
18369
  floriday_continuous_stock_queue: {
18381
18370
  Row: {
18382
18371
  attempts: number;
@@ -19355,6 +19344,45 @@ export declare const saveFormula: import("@tanstack/start-client-core").Required
19355
19344
  referencedColumns: ["id"];
19356
19345
  }];
19357
19346
  };
19347
+ floriday_trade_settings_customers_cache: {
19348
+ Row: {
19349
+ connection_id: string;
19350
+ data: import("../../integrations/supabase/types").Json;
19351
+ fetched_at: string;
19352
+ floriday_id: string;
19353
+ id: string;
19354
+ is_deleted: boolean;
19355
+ sequence_number: number;
19356
+ updated_at: string;
19357
+ };
19358
+ Insert: {
19359
+ connection_id: string;
19360
+ data: import("../../integrations/supabase/types").Json;
19361
+ fetched_at?: string;
19362
+ floriday_id: string;
19363
+ id?: string;
19364
+ is_deleted?: boolean;
19365
+ sequence_number?: number;
19366
+ updated_at?: string;
19367
+ };
19368
+ Update: {
19369
+ connection_id?: string;
19370
+ data?: import("../../integrations/supabase/types").Json;
19371
+ fetched_at?: string;
19372
+ floriday_id?: string;
19373
+ id?: string;
19374
+ is_deleted?: boolean;
19375
+ sequence_number?: number;
19376
+ updated_at?: string;
19377
+ };
19378
+ Relationships: [{
19379
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
19380
+ columns: ["connection_id"];
19381
+ isOneToOne: false;
19382
+ referencedRelation: "floriday_connections";
19383
+ referencedColumns: ["id"];
19384
+ }];
19385
+ };
19358
19386
  floriday_trips_cache: {
19359
19387
  Row: {
19360
19388
  carrier_organization_id: string | null;
@@ -19403,6 +19431,27 @@ export declare const saveFormula: import("@tanstack/start-client-core").Required
19403
19431
  referencedColumns: ["id"];
19404
19432
  }];
19405
19433
  };
19434
+ floriday_vbn_required_characteristics: {
19435
+ Row: {
19436
+ required_codes: string[];
19437
+ updated_at: string;
19438
+ updated_by: string | null;
19439
+ vbn_code: string;
19440
+ };
19441
+ Insert: {
19442
+ required_codes?: string[];
19443
+ updated_at?: string;
19444
+ updated_by?: string | null;
19445
+ vbn_code: string;
19446
+ };
19447
+ Update: {
19448
+ required_codes?: string[];
19449
+ updated_at?: string;
19450
+ updated_by?: string | null;
19451
+ vbn_code?: string;
19452
+ };
19453
+ Relationships: [];
19454
+ };
19406
19455
  floriday_warehouses_cache: {
19407
19456
  Row: {
19408
19457
  connection_id: string;
@@ -24376,9 +24425,7 @@ export declare const saveFormula: import("@tanstack/start-client-core").Required
24376
24425
  };
24377
24426
  twinfield_connections: {
24378
24427
  Row: {
24379
- access_token: string | null;
24380
- client_id: string;
24381
- client_secret: string | null;
24428
+ account_key: string | null;
24382
24429
  cluster_uri: string | null;
24383
24430
  company_code: string | null;
24384
24431
  company_name: string | null;
@@ -24390,15 +24437,11 @@ export declare const saveFormula: import("@tanstack/start-client-core").Required
24390
24437
  label: string | null;
24391
24438
  office_code: string | null;
24392
24439
  redirect_uri: string;
24393
- refresh_token: string | null;
24394
- token_expires_at: string | null;
24395
24440
  updated_at: string;
24396
24441
  user_id: string;
24397
24442
  };
24398
24443
  Insert: {
24399
- access_token?: string | null;
24400
- client_id: string;
24401
- client_secret?: string | null;
24444
+ account_key?: string | null;
24402
24445
  cluster_uri?: string | null;
24403
24446
  company_code?: string | null;
24404
24447
  company_name?: string | null;
@@ -24410,15 +24453,11 @@ export declare const saveFormula: import("@tanstack/start-client-core").Required
24410
24453
  label?: string | null;
24411
24454
  office_code?: string | null;
24412
24455
  redirect_uri: string;
24413
- refresh_token?: string | null;
24414
- token_expires_at?: string | null;
24415
24456
  updated_at?: string;
24416
24457
  user_id: string;
24417
24458
  };
24418
24459
  Update: {
24419
- access_token?: string | null;
24420
- client_id?: string;
24421
- client_secret?: string | null;
24460
+ account_key?: string | null;
24422
24461
  cluster_uri?: string | null;
24423
24462
  company_code?: string | null;
24424
24463
  company_name?: string | null;
@@ -24430,53 +24469,6 @@ export declare const saveFormula: import("@tanstack/start-client-core").Required
24430
24469
  label?: string | null;
24431
24470
  office_code?: string | null;
24432
24471
  redirect_uri?: string;
24433
- refresh_token?: string | null;
24434
- token_expires_at?: string | null;
24435
- updated_at?: string;
24436
- user_id?: string;
24437
- };
24438
- Relationships: [];
24439
- };
24440
- twinfield_credentials: {
24441
- Row: {
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
- Insert: {
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
- redirect_uri?: string | null;
24465
- refresh_token?: string | null;
24466
- updated_at?: string;
24467
- user_id: string;
24468
- };
24469
- Update: {
24470
- administration_code?: string | null;
24471
- client_id?: string | null;
24472
- client_secret?: string | null;
24473
- cluster?: string | null;
24474
- connected_at?: string | null;
24475
- created_at?: string;
24476
- environment?: string | null;
24477
- id?: string;
24478
- redirect_uri?: string | null;
24479
- refresh_token?: string | null;
24480
24472
  updated_at?: string;
24481
24473
  user_id?: string;
24482
24474
  };
@@ -24977,30 +24969,6 @@ export declare const saveFormula: import("@tanstack/start-client-core").Required
24977
24969
  referencedColumns: ["id"];
24978
24970
  }];
24979
24971
  };
24980
- twinfield_oauth_state: {
24981
- Row: {
24982
- created_at: string;
24983
- environment: string;
24984
- nonce: string | null;
24985
- state: string;
24986
- user_id: string;
24987
- };
24988
- Insert: {
24989
- created_at?: string;
24990
- environment: string;
24991
- nonce?: string | null;
24992
- state: string;
24993
- user_id: string;
24994
- };
24995
- Update: {
24996
- created_at?: string;
24997
- environment?: string;
24998
- nonce?: string | null;
24999
- state?: string;
25000
- user_id?: string;
25001
- };
25002
- Relationships: [];
25003
- };
25004
24972
  twinfield_push_queue: {
25005
24973
  Row: {
25006
24974
  action: string;
@@ -25166,39 +25134,6 @@ export declare const saveFormula: import("@tanstack/start-client-core").Required
25166
25134
  referencedColumns: ["id"];
25167
25135
  }];
25168
25136
  };
25169
- twinfield_token_refresh_log: {
25170
- Row: {
25171
- attempted_at: string;
25172
- connection_id: string;
25173
- error: string | null;
25174
- expires_at: string | null;
25175
- id: string;
25176
- ok: boolean;
25177
- };
25178
- Insert: {
25179
- attempted_at?: string;
25180
- connection_id: string;
25181
- error?: string | null;
25182
- expires_at?: string | null;
25183
- id?: string;
25184
- ok: boolean;
25185
- };
25186
- Update: {
25187
- attempted_at?: string;
25188
- connection_id?: string;
25189
- error?: string | null;
25190
- expires_at?: string | null;
25191
- id?: string;
25192
- ok?: boolean;
25193
- };
25194
- Relationships: [{
25195
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
25196
- columns: ["connection_id"];
25197
- isOneToOne: false;
25198
- referencedRelation: "twinfield_connections";
25199
- referencedColumns: ["id"];
25200
- }];
25201
- };
25202
25137
  user_roles: {
25203
25138
  Row: {
25204
25139
  created_at: string;
@@ -27639,15 +27574,16 @@ export declare const saveFormula: import("@tanstack/start-client-core").Required
27639
27574
  };
27640
27575
  Returns: undefined;
27641
27576
  };
27642
- twinfield_decrypt: {
27577
+ twinfield_upsert_connection_by_account_key: {
27643
27578
  Args: {
27644
- cipher: string;
27645
- };
27646
- Returns: string;
27647
- };
27648
- twinfield_encrypt: {
27649
- Args: {
27650
- plain: string;
27579
+ p_account_key: string;
27580
+ p_cluster_uri?: string;
27581
+ p_company_code?: string;
27582
+ p_company_name?: string;
27583
+ p_environment: string;
27584
+ p_office_code?: string;
27585
+ p_status?: string;
27586
+ p_user_id: string;
27651
27587
  };
27652
27588
  Returns: string;
27653
27589
  };