@flowselections/pick-schermen-kwekers 1.0.13 → 1.0.15

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/README.md +24 -24
  2. package/dist-lib/components/PickstationsPage.d.ts.map +1 -1
  3. package/dist-lib/components/PickstationsPage.js +2 -1
  4. package/dist-lib/components/pick/ReferentiedataBanner.d.ts +6 -0
  5. package/dist-lib/components/pick/ReferentiedataBanner.d.ts.map +1 -0
  6. package/dist-lib/components/pick/ReferentiedataBanner.js +17 -0
  7. package/dist-lib/components/settings/ReferentiedataPickdocumentenCard.d.ts +2 -0
  8. package/dist-lib/components/settings/ReferentiedataPickdocumentenCard.d.ts.map +1 -0
  9. package/dist-lib/components/settings/ReferentiedataPickdocumentenCard.js +84 -0
  10. package/dist-lib/hooks/usePickReferenceData.d.ts +4 -0
  11. package/dist-lib/hooks/usePickReferenceData.d.ts.map +1 -0
  12. package/dist-lib/hooks/usePickReferenceData.js +10 -0
  13. package/dist-lib/index.d.ts +5 -0
  14. package/dist-lib/index.d.ts.map +1 -1
  15. package/dist-lib/index.js +6 -5
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +291 -1
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.d.ts +291 -1
  19. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.server.d.ts +291 -1
  21. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +297 -1
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/lib/layoutMaker/pakbonHtml.js +49 -49
  25. package/dist-lib/lib/layoutRenderer.js +17 -17
  26. package/dist-lib/lib/pickReferenceApi.d.ts +37 -0
  27. package/dist-lib/lib/pickReferenceApi.d.ts.map +1 -0
  28. package/dist-lib/lib/pickReferenceApi.js +98 -0
  29. package/package.json +1 -1
  30. package/dist-lib/components/TemplateModulePage.d.ts +0 -2
  31. package/dist-lib/components/TemplateModulePage.d.ts.map +0 -1
  32. package/dist-lib/components/TemplateModulePage.js +0 -44
@@ -3,10 +3,22 @@ export type Json = string | number | boolean | null | {
3
3
  } | Json[];
4
4
  export type Database = {
5
5
  __InternalSupabase: {
6
- PostgrestVersion: "14.5";
6
+ PostgrestVersion: "14.17";
7
7
  };
8
8
  public: {
9
9
  Tables: {
10
+ _banner_check: {
11
+ Row: {
12
+ inactief: Json | null;
13
+ };
14
+ Insert: {
15
+ inactief?: Json | null;
16
+ };
17
+ Update: {
18
+ inactief?: Json | null;
19
+ };
20
+ Relationships: [];
21
+ };
10
22
  afhandeling_settings: {
11
23
  Row: {
12
24
  auto_print_delivery_note: boolean;
@@ -10978,6 +10990,225 @@ export type Database = {
10978
10990
  };
10979
10991
  Relationships: [];
10980
10992
  };
10993
+ maps_addresses: {
10994
+ Row: {
10995
+ address_hash: string;
10996
+ created_at: string;
10997
+ error_reason: string | null;
10998
+ formatted_address: string | null;
10999
+ id: string;
11000
+ lat: number | null;
11001
+ lng: number | null;
11002
+ place_id: string | null;
11003
+ raw_address: string;
11004
+ resolved_at: string | null;
11005
+ status: string;
11006
+ updated_at: string;
11007
+ };
11008
+ Insert: {
11009
+ address_hash: string;
11010
+ created_at?: string;
11011
+ error_reason?: string | null;
11012
+ formatted_address?: string | null;
11013
+ id?: string;
11014
+ lat?: number | null;
11015
+ lng?: number | null;
11016
+ place_id?: string | null;
11017
+ raw_address: string;
11018
+ resolved_at?: string | null;
11019
+ status?: string;
11020
+ updated_at?: string;
11021
+ };
11022
+ Update: {
11023
+ address_hash?: string;
11024
+ created_at?: string;
11025
+ error_reason?: string | null;
11026
+ formatted_address?: string | null;
11027
+ id?: string;
11028
+ lat?: number | null;
11029
+ lng?: number | null;
11030
+ place_id?: string | null;
11031
+ raw_address?: string;
11032
+ resolved_at?: string | null;
11033
+ status?: string;
11034
+ updated_at?: string;
11035
+ };
11036
+ Relationships: [];
11037
+ };
11038
+ maps_request_queue: {
11039
+ Row: {
11040
+ attempts: number;
11041
+ created_at: string;
11042
+ destination_hash: string | null;
11043
+ id: string;
11044
+ kind: string;
11045
+ last_error: string | null;
11046
+ mode: string;
11047
+ origin_hash: string | null;
11048
+ processed_at: string | null;
11049
+ raw_destination: string | null;
11050
+ raw_origin: string | null;
11051
+ requested_by: string | null;
11052
+ status: string;
11053
+ updated_at: string;
11054
+ };
11055
+ Insert: {
11056
+ attempts?: number;
11057
+ created_at?: string;
11058
+ destination_hash?: string | null;
11059
+ id?: string;
11060
+ kind: string;
11061
+ last_error?: string | null;
11062
+ mode?: string;
11063
+ origin_hash?: string | null;
11064
+ processed_at?: string | null;
11065
+ raw_destination?: string | null;
11066
+ raw_origin?: string | null;
11067
+ requested_by?: string | null;
11068
+ status?: string;
11069
+ updated_at?: string;
11070
+ };
11071
+ Update: {
11072
+ attempts?: number;
11073
+ created_at?: string;
11074
+ destination_hash?: string | null;
11075
+ id?: string;
11076
+ kind?: string;
11077
+ last_error?: string | null;
11078
+ mode?: string;
11079
+ origin_hash?: string | null;
11080
+ processed_at?: string | null;
11081
+ raw_destination?: string | null;
11082
+ raw_origin?: string | null;
11083
+ requested_by?: string | null;
11084
+ status?: string;
11085
+ updated_at?: string;
11086
+ };
11087
+ Relationships: [];
11088
+ };
11089
+ maps_settings: {
11090
+ Row: {
11091
+ allow_estimate_fallback: boolean;
11092
+ cache_ttl_days: number;
11093
+ created_at: string;
11094
+ daily_call_limit: number;
11095
+ id: string;
11096
+ last_error: string | null;
11097
+ last_error_at: string | null;
11098
+ last_success_at: string | null;
11099
+ updated_at: string;
11100
+ };
11101
+ Insert: {
11102
+ allow_estimate_fallback?: boolean;
11103
+ cache_ttl_days?: number;
11104
+ created_at?: string;
11105
+ daily_call_limit?: number;
11106
+ id?: string;
11107
+ last_error?: string | null;
11108
+ last_error_at?: string | null;
11109
+ last_success_at?: string | null;
11110
+ updated_at?: string;
11111
+ };
11112
+ Update: {
11113
+ allow_estimate_fallback?: boolean;
11114
+ cache_ttl_days?: number;
11115
+ created_at?: string;
11116
+ daily_call_limit?: number;
11117
+ id?: string;
11118
+ last_error?: string | null;
11119
+ last_error_at?: string | null;
11120
+ last_success_at?: string | null;
11121
+ updated_at?: string;
11122
+ };
11123
+ Relationships: [];
11124
+ };
11125
+ maps_travel_times: {
11126
+ Row: {
11127
+ created_at: string;
11128
+ destination_id: string;
11129
+ distance_m: number | null;
11130
+ duration_sec: number;
11131
+ expires_at: string;
11132
+ id: string;
11133
+ mode: string;
11134
+ origin_id: string;
11135
+ source: string;
11136
+ updated_at: string;
11137
+ };
11138
+ Insert: {
11139
+ created_at?: string;
11140
+ destination_id: string;
11141
+ distance_m?: number | null;
11142
+ duration_sec: number;
11143
+ expires_at?: string;
11144
+ id?: string;
11145
+ mode?: string;
11146
+ origin_id: string;
11147
+ source?: string;
11148
+ updated_at?: string;
11149
+ };
11150
+ Update: {
11151
+ created_at?: string;
11152
+ destination_id?: string;
11153
+ distance_m?: number | null;
11154
+ duration_sec?: number;
11155
+ expires_at?: string;
11156
+ id?: string;
11157
+ mode?: string;
11158
+ origin_id?: string;
11159
+ source?: string;
11160
+ updated_at?: string;
11161
+ };
11162
+ Relationships: [
11163
+ {
11164
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
11165
+ columns: ["destination_id"];
11166
+ isOneToOne: false;
11167
+ referencedRelation: "maps_addresses";
11168
+ referencedColumns: ["id"];
11169
+ },
11170
+ {
11171
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
11172
+ columns: ["origin_id"];
11173
+ isOneToOne: false;
11174
+ referencedRelation: "maps_addresses";
11175
+ referencedColumns: ["id"];
11176
+ }
11177
+ ];
11178
+ };
11179
+ maps_usage_log: {
11180
+ Row: {
11181
+ cache_hits: number;
11182
+ call_type: string;
11183
+ created_at: string;
11184
+ day: string;
11185
+ detail: string | null;
11186
+ elements: number;
11187
+ id: string;
11188
+ outcome: string;
11189
+ };
11190
+ Insert: {
11191
+ cache_hits?: number;
11192
+ call_type: string;
11193
+ created_at?: string;
11194
+ day?: string;
11195
+ detail?: string | null;
11196
+ elements?: number;
11197
+ id?: string;
11198
+ outcome?: string;
11199
+ };
11200
+ Update: {
11201
+ cache_hits?: number;
11202
+ call_type?: string;
11203
+ created_at?: string;
11204
+ day?: string;
11205
+ detail?: string | null;
11206
+ elements?: number;
11207
+ id?: string;
11208
+ outcome?: string;
11209
+ };
11210
+ Relationships: [];
11211
+ };
10981
11212
  material_usage: {
10982
11213
  Row: {
10983
11214
  created_at: string;
@@ -19133,6 +19364,7 @@ export type Database = {
19133
19364
  werkbon_package_items: {
19134
19365
  Row: {
19135
19366
  article_number: string | null;
19367
+ artikel_id: string | null;
19136
19368
  created_at: string;
19137
19369
  gtin: string | null;
19138
19370
  id: string;
@@ -19150,6 +19382,7 @@ export type Database = {
19150
19382
  };
19151
19383
  Insert: {
19152
19384
  article_number?: string | null;
19385
+ artikel_id?: string | null;
19153
19386
  created_at?: string;
19154
19387
  gtin?: string | null;
19155
19388
  id?: string;
@@ -19167,6 +19400,7 @@ export type Database = {
19167
19400
  };
19168
19401
  Update: {
19169
19402
  article_number?: string | null;
19403
+ artikel_id?: string | null;
19170
19404
  created_at?: string;
19171
19405
  gtin?: string | null;
19172
19406
  id?: string;
@@ -19183,6 +19417,13 @@ export type Database = {
19183
19417
  updated_at?: string;
19184
19418
  };
19185
19419
  Relationships: [
19420
+ {
19421
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
19422
+ columns: ["artikel_id"];
19423
+ isOneToOne: false;
19424
+ referencedRelation: "artikelen_cache";
19425
+ referencedColumns: ["id"];
19426
+ },
19186
19427
  {
19187
19428
  foreignKeyName: "werkbon_package_items_package_id_fkey";
19188
19429
  columns: ["package_id"];
@@ -20444,6 +20685,22 @@ export type Database = {
20444
20685
  }
20445
20686
  ];
20446
20687
  };
20688
+ v_werkbon_totalen: {
20689
+ Row: {
20690
+ packages_cents: number | null;
20691
+ packages_minutes: number | null;
20692
+ werkbon_id: string | null;
20693
+ };
20694
+ Relationships: [
20695
+ {
20696
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20697
+ columns: ["werkbon_id"];
20698
+ isOneToOne: false;
20699
+ referencedRelation: "werkbonnen";
20700
+ referencedColumns: ["id"];
20701
+ }
20702
+ ];
20703
+ };
20447
20704
  };
20448
20705
  Functions: {
20449
20706
  _floriday_schedule_job: {
@@ -22380,6 +22637,25 @@ export type Database = {
22380
22637
  };
22381
22638
  Returns: string;
22382
22639
  };
22640
+ pakket_suggesties_voor_tekst: {
22641
+ Args: {
22642
+ _tekst: string;
22643
+ };
22644
+ Returns: {
22645
+ hit_type: string;
22646
+ package_id: string;
22647
+ priority: number;
22648
+ }[];
22649
+ };
22650
+ pakket_voor_reistijd: {
22651
+ Args: {
22652
+ _minuten: number;
22653
+ };
22654
+ Returns: {
22655
+ package_id: string;
22656
+ priority: number;
22657
+ }[];
22658
+ };
22383
22659
  pick_active_printers: {
22384
22660
  Args: never;
22385
22661
  Returns: {
@@ -22588,6 +22864,10 @@ export type Database = {
22588
22864
  omschrijving: string;
22589
22865
  }[];
22590
22866
  };
22867
+ pick_reference_data_status: {
22868
+ Args: never;
22869
+ Returns: Json;
22870
+ };
22591
22871
  pick_release_expired_locks: {
22592
22872
  Args: never;
22593
22873
  Returns: number;
@@ -22652,6 +22932,10 @@ export type Database = {
22652
22932
  isSetofReturn: false;
22653
22933
  };
22654
22934
  };
22935
+ pick_seed_reference_data: {
22936
+ Args: never;
22937
+ Returns: Json;
22938
+ };
22655
22939
  pick_set_station_print_plek: {
22656
22940
  Args: {
22657
22941
  _print_plek_id: string;
@@ -23430,6 +23714,18 @@ export type Database = {
23430
23714
  Args: never;
23431
23715
  Returns: string;
23432
23716
  };
23717
+ werkbon_totalen: {
23718
+ Args: {
23719
+ _werkbon_id: string;
23720
+ };
23721
+ Returns: {
23722
+ materials_cents: number;
23723
+ packages_cents: number;
23724
+ packages_minutes: number;
23725
+ total_cents: number;
23726
+ total_minutes: number;
23727
+ }[];
23728
+ };
23433
23729
  wo_create_from_source: {
23434
23730
  Args: {
23435
23731
  _payload?: Json;