@flowselections/floriday-authenticatie-module 1.0.42 → 1.0.43

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 (45) hide show
  1. package/dist-lib/components/settings/FlorydaySettingsCard.js +4 -9
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts +728 -9
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  4. package/dist-lib/integrations/supabase/client.d.ts +728 -9
  5. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  6. package/dist-lib/integrations/supabase/client.server.d.ts +728 -9
  7. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/types.d.ts +736 -9
  9. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  10. package/dist-lib/lib/floricode.functions.d.ts +5412 -379
  11. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  12. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +728 -9
  13. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  14. package/dist-lib/lib/floriday-labels.functions.d.ts +728 -9
  15. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/floriday-public.functions.d.ts +4605 -291
  17. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-stickers.functions.d.ts +728 -9
  19. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-sync.functions.d.ts +24780 -2491
  21. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday-tray-stickers.functions.d.ts +14 -0
  23. package/dist-lib/lib/floriday-tray-stickers.functions.d.ts.map +1 -0
  24. package/dist-lib/lib/floriday-tray-stickers.functions.js +66 -0
  25. package/dist-lib/lib/floriday-writes.functions.d.ts +52015 -515
  26. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-writes.functions.js +17 -12
  28. package/dist-lib/lib/floriday.functions.d.ts +15017 -1229
  29. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday.functions.js +76 -21
  31. package/dist-lib/lib/gateway/fulfillment-order-body.d.ts +36 -0
  32. package/dist-lib/lib/gateway/fulfillment-order-body.d.ts.map +1 -1
  33. package/dist-lib/lib/gateway/fulfillment-order-body.js +159 -110
  34. package/dist-lib/lib/gateway/fulfillment-order-send.d.ts.map +1 -1
  35. package/dist-lib/lib/gateway/fulfillment-order-send.js +6 -0
  36. package/dist-lib/lib/gateway/fulfillment-order-status.d.ts +11 -0
  37. package/dist-lib/lib/gateway/fulfillment-order-status.d.ts.map +1 -0
  38. package/dist-lib/lib/gateway/fulfillment-order-status.js +84 -0
  39. package/dist-lib/lib/gateway/index.d.ts +1 -0
  40. package/dist-lib/lib/gateway/index.d.ts.map +1 -1
  41. package/dist-lib/lib/gateway/index.js +1 -0
  42. package/dist-lib/lib/gateway/pdf.d.ts +1 -1
  43. package/dist-lib/lib/gateway/pdf.d.ts.map +1 -1
  44. package/dist-lib/lib/gateway/pdf.js +11 -0
  45. package/package.json +10 -1
@@ -2911,6 +2911,86 @@ export type Database = {
2911
2911
  };
2912
2912
  Relationships: [];
2913
2913
  };
2914
+ delivery_notes: {
2915
+ Row: {
2916
+ byte_size: number | null;
2917
+ connection_id: string | null;
2918
+ content_type: string;
2919
+ created_at: string;
2920
+ error_message: string | null;
2921
+ fetched_at: string | null;
2922
+ fulfillment_order_id: string | null;
2923
+ http_status: number | null;
2924
+ id: string;
2925
+ label_code: string | null;
2926
+ letter: string | null;
2927
+ load_carrier_index: number | null;
2928
+ load_carrier_type: string | null;
2929
+ order_id: string | null;
2930
+ order_number: string | null;
2931
+ packages: number | null;
2932
+ source: string;
2933
+ status: string;
2934
+ storage_bucket: string;
2935
+ storage_path: string | null;
2936
+ updated_at: string;
2937
+ };
2938
+ Insert: {
2939
+ byte_size?: number | null;
2940
+ connection_id?: string | null;
2941
+ content_type?: string;
2942
+ created_at?: string;
2943
+ error_message?: string | null;
2944
+ fetched_at?: string | null;
2945
+ fulfillment_order_id?: string | null;
2946
+ http_status?: number | null;
2947
+ id?: string;
2948
+ label_code?: string | null;
2949
+ letter?: string | null;
2950
+ load_carrier_index?: number | null;
2951
+ load_carrier_type?: string | null;
2952
+ order_id?: string | null;
2953
+ order_number?: string | null;
2954
+ packages?: number | null;
2955
+ source?: string;
2956
+ status?: string;
2957
+ storage_bucket?: string;
2958
+ storage_path?: string | null;
2959
+ updated_at?: string;
2960
+ };
2961
+ Update: {
2962
+ byte_size?: number | null;
2963
+ connection_id?: string | null;
2964
+ content_type?: string;
2965
+ created_at?: string;
2966
+ error_message?: string | null;
2967
+ fetched_at?: string | null;
2968
+ fulfillment_order_id?: string | null;
2969
+ http_status?: number | null;
2970
+ id?: string;
2971
+ label_code?: string | null;
2972
+ letter?: string | null;
2973
+ load_carrier_index?: number | null;
2974
+ load_carrier_type?: string | null;
2975
+ order_id?: string | null;
2976
+ order_number?: string | null;
2977
+ packages?: number | null;
2978
+ source?: string;
2979
+ status?: string;
2980
+ storage_bucket?: string;
2981
+ storage_path?: string | null;
2982
+ updated_at?: string;
2983
+ };
2984
+ Relationships: [
2985
+ {
2986
+ foreignKeyName: "delivery_notes_order_id_fkey";
2987
+ columns: ["order_id"];
2988
+ isOneToOne: false;
2989
+ referencedRelation: "orders";
2990
+ referencedColumns: ["id"];
2991
+ }
2992
+ ];
2993
+ };
2914
2994
  document_bronregels: {
2915
2995
  Row: {
2916
2996
  bron: string;
@@ -6048,10 +6128,7 @@ export type Database = {
6048
6128
  };
6049
6129
  floriday_connections: {
6050
6130
  Row: {
6051
- access_token: string | null;
6052
6131
  api_key: string;
6053
- client_id: string;
6054
- client_secret: string;
6055
6132
  created_at: string;
6056
6133
  customers_endpoint: string | null;
6057
6134
  environment: string;
@@ -6066,10 +6143,7 @@ export type Database = {
6066
6143
  updated_at: string;
6067
6144
  };
6068
6145
  Insert: {
6069
- access_token?: string | null;
6070
6146
  api_key: string;
6071
- client_id: string;
6072
- client_secret: string;
6073
6147
  created_at?: string;
6074
6148
  customers_endpoint?: string | null;
6075
6149
  environment: string;
@@ -6084,10 +6158,7 @@ export type Database = {
6084
6158
  updated_at?: string;
6085
6159
  };
6086
6160
  Update: {
6087
- access_token?: string | null;
6088
6161
  api_key?: string;
6089
- client_id?: string;
6090
- client_secret?: string;
6091
6162
  created_at?: string;
6092
6163
  customers_endpoint?: string | null;
6093
6164
  environment?: string;
@@ -10978,6 +11049,246 @@ export type Database = {
10978
11049
  };
10979
11050
  Relationships: [];
10980
11051
  };
11052
+ maps_addresses: {
11053
+ Row: {
11054
+ address_hash: string;
11055
+ created_at: string;
11056
+ error_reason: string | null;
11057
+ formatted_address: string | null;
11058
+ id: string;
11059
+ lat: number | null;
11060
+ lng: number | null;
11061
+ place_id: string | null;
11062
+ raw_address: string;
11063
+ resolved_at: string | null;
11064
+ status: string;
11065
+ updated_at: string;
11066
+ };
11067
+ Insert: {
11068
+ address_hash: string;
11069
+ created_at?: string;
11070
+ error_reason?: string | null;
11071
+ formatted_address?: string | null;
11072
+ id?: string;
11073
+ lat?: number | null;
11074
+ lng?: number | null;
11075
+ place_id?: string | null;
11076
+ raw_address: string;
11077
+ resolved_at?: string | null;
11078
+ status?: string;
11079
+ updated_at?: string;
11080
+ };
11081
+ Update: {
11082
+ address_hash?: string;
11083
+ created_at?: string;
11084
+ error_reason?: string | null;
11085
+ formatted_address?: string | null;
11086
+ id?: string;
11087
+ lat?: number | null;
11088
+ lng?: number | null;
11089
+ place_id?: string | null;
11090
+ raw_address?: string;
11091
+ resolved_at?: string | null;
11092
+ status?: string;
11093
+ updated_at?: string;
11094
+ };
11095
+ Relationships: [];
11096
+ };
11097
+ maps_job_lease: {
11098
+ Row: {
11099
+ job: string;
11100
+ locked_until: string;
11101
+ updated_at: string;
11102
+ };
11103
+ Insert: {
11104
+ job: string;
11105
+ locked_until?: string;
11106
+ updated_at?: string;
11107
+ };
11108
+ Update: {
11109
+ job?: string;
11110
+ locked_until?: string;
11111
+ updated_at?: string;
11112
+ };
11113
+ Relationships: [];
11114
+ };
11115
+ maps_request_queue: {
11116
+ Row: {
11117
+ attempts: number;
11118
+ created_at: string;
11119
+ destination_hash: string | null;
11120
+ id: string;
11121
+ kind: string;
11122
+ last_error: string | null;
11123
+ mode: string;
11124
+ origin_hash: string | null;
11125
+ processed_at: string | null;
11126
+ raw_destination: string | null;
11127
+ raw_origin: string | null;
11128
+ requested_by: string | null;
11129
+ status: string;
11130
+ updated_at: string;
11131
+ };
11132
+ Insert: {
11133
+ attempts?: number;
11134
+ created_at?: string;
11135
+ destination_hash?: string | null;
11136
+ id?: string;
11137
+ kind: string;
11138
+ last_error?: string | null;
11139
+ mode?: string;
11140
+ origin_hash?: string | null;
11141
+ processed_at?: string | null;
11142
+ raw_destination?: string | null;
11143
+ raw_origin?: string | null;
11144
+ requested_by?: string | null;
11145
+ status?: string;
11146
+ updated_at?: string;
11147
+ };
11148
+ Update: {
11149
+ attempts?: number;
11150
+ created_at?: string;
11151
+ destination_hash?: string | null;
11152
+ id?: string;
11153
+ kind?: string;
11154
+ last_error?: string | null;
11155
+ mode?: string;
11156
+ origin_hash?: string | null;
11157
+ processed_at?: string | null;
11158
+ raw_destination?: string | null;
11159
+ raw_origin?: string | null;
11160
+ requested_by?: string | null;
11161
+ status?: string;
11162
+ updated_at?: string;
11163
+ };
11164
+ Relationships: [];
11165
+ };
11166
+ maps_settings: {
11167
+ Row: {
11168
+ allow_estimate_fallback: boolean;
11169
+ cache_ttl_days: number;
11170
+ created_at: string;
11171
+ daily_call_limit: number;
11172
+ id: string;
11173
+ last_error: string | null;
11174
+ last_error_at: string | null;
11175
+ last_success_at: string | null;
11176
+ provider: string;
11177
+ updated_at: string;
11178
+ };
11179
+ Insert: {
11180
+ allow_estimate_fallback?: boolean;
11181
+ cache_ttl_days?: number;
11182
+ created_at?: string;
11183
+ daily_call_limit?: number;
11184
+ id?: string;
11185
+ last_error?: string | null;
11186
+ last_error_at?: string | null;
11187
+ last_success_at?: string | null;
11188
+ provider?: string;
11189
+ updated_at?: string;
11190
+ };
11191
+ Update: {
11192
+ allow_estimate_fallback?: boolean;
11193
+ cache_ttl_days?: number;
11194
+ created_at?: string;
11195
+ daily_call_limit?: number;
11196
+ id?: string;
11197
+ last_error?: string | null;
11198
+ last_error_at?: string | null;
11199
+ last_success_at?: string | null;
11200
+ provider?: string;
11201
+ updated_at?: string;
11202
+ };
11203
+ Relationships: [];
11204
+ };
11205
+ maps_travel_times: {
11206
+ Row: {
11207
+ created_at: string;
11208
+ destination_id: string;
11209
+ distance_m: number | null;
11210
+ duration_sec: number;
11211
+ expires_at: string;
11212
+ id: string;
11213
+ mode: string;
11214
+ origin_id: string;
11215
+ source: string;
11216
+ updated_at: string;
11217
+ };
11218
+ Insert: {
11219
+ created_at?: string;
11220
+ destination_id: string;
11221
+ distance_m?: number | null;
11222
+ duration_sec: number;
11223
+ expires_at?: string;
11224
+ id?: string;
11225
+ mode?: string;
11226
+ origin_id: string;
11227
+ source?: string;
11228
+ updated_at?: string;
11229
+ };
11230
+ Update: {
11231
+ created_at?: string;
11232
+ destination_id?: string;
11233
+ distance_m?: number | null;
11234
+ duration_sec?: number;
11235
+ expires_at?: string;
11236
+ id?: string;
11237
+ mode?: string;
11238
+ origin_id?: string;
11239
+ source?: string;
11240
+ updated_at?: string;
11241
+ };
11242
+ Relationships: [
11243
+ {
11244
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
11245
+ columns: ["destination_id"];
11246
+ isOneToOne: false;
11247
+ referencedRelation: "maps_addresses";
11248
+ referencedColumns: ["id"];
11249
+ },
11250
+ {
11251
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
11252
+ columns: ["origin_id"];
11253
+ isOneToOne: false;
11254
+ referencedRelation: "maps_addresses";
11255
+ referencedColumns: ["id"];
11256
+ }
11257
+ ];
11258
+ };
11259
+ maps_usage_log: {
11260
+ Row: {
11261
+ cache_hits: number;
11262
+ call_type: string;
11263
+ created_at: string;
11264
+ day: string;
11265
+ detail: string | null;
11266
+ elements: number;
11267
+ id: string;
11268
+ outcome: string;
11269
+ };
11270
+ Insert: {
11271
+ cache_hits?: number;
11272
+ call_type: string;
11273
+ created_at?: string;
11274
+ day?: string;
11275
+ detail?: string | null;
11276
+ elements?: number;
11277
+ id?: string;
11278
+ outcome?: string;
11279
+ };
11280
+ Update: {
11281
+ cache_hits?: number;
11282
+ call_type?: string;
11283
+ created_at?: string;
11284
+ day?: string;
11285
+ detail?: string | null;
11286
+ elements?: number;
11287
+ id?: string;
11288
+ outcome?: string;
11289
+ };
11290
+ Relationships: [];
11291
+ };
10981
11292
  material_usage: {
10982
11293
  Row: {
10983
11294
  created_at: string;
@@ -13716,6 +14027,39 @@ export type Database = {
13716
14027
  };
13717
14028
  Relationships: [];
13718
14029
  };
14030
+ print_dedupe_events: {
14031
+ Row: {
14032
+ bestaande_job_id: string | null;
14033
+ created_at: string;
14034
+ detail: string | null;
14035
+ documentnaam: string | null;
14036
+ documenttype: string | null;
14037
+ id: string;
14038
+ idempotentie_sleutel: string;
14039
+ reden: string;
14040
+ };
14041
+ Insert: {
14042
+ bestaande_job_id?: string | null;
14043
+ created_at?: string;
14044
+ detail?: string | null;
14045
+ documentnaam?: string | null;
14046
+ documenttype?: string | null;
14047
+ id?: string;
14048
+ idempotentie_sleutel: string;
14049
+ reden: string;
14050
+ };
14051
+ Update: {
14052
+ bestaande_job_id?: string | null;
14053
+ created_at?: string;
14054
+ detail?: string | null;
14055
+ documentnaam?: string | null;
14056
+ documenttype?: string | null;
14057
+ id?: string;
14058
+ idempotentie_sleutel?: string;
14059
+ reden?: string;
14060
+ };
14061
+ Relationships: [];
14062
+ };
13719
14063
  print_job_logs: {
13720
14064
  Row: {
13721
14065
  created_at: string;
@@ -13759,6 +14103,8 @@ export type Database = {
13759
14103
  foutmelding: string | null;
13760
14104
  gebruiker_id: string | null;
13761
14105
  gebruiker_naam: string;
14106
+ gebruikte_bron: string | null;
14107
+ gebruikte_layout_id: string | null;
13762
14108
  gestart_op: string | null;
13763
14109
  herkomst: string | null;
13764
14110
  id: string;
@@ -13766,6 +14112,9 @@ export type Database = {
13766
14112
  is_herprint: boolean;
13767
14113
  kopieen: number;
13768
14114
  layout_id: string | null;
14115
+ lokaal_opgeslagen_op: string | null;
14116
+ lokale_pdf_fout: string | null;
14117
+ lokale_pdf_status: string | null;
13769
14118
  opgepakt_op: string | null;
13770
14119
  paginas: number;
13771
14120
  payload: Json;
@@ -13774,6 +14123,7 @@ export type Database = {
13774
14123
  pogingen: number;
13775
14124
  printer_id: string | null;
13776
14125
  render_html: string | null;
14126
+ resultaat_pdf_base64: string | null;
13777
14127
  status: Database["public"]["Enums"]["print_job_status"];
13778
14128
  updated_at: string;
13779
14129
  volgende_poging: string | null;
@@ -13789,6 +14139,8 @@ export type Database = {
13789
14139
  foutmelding?: string | null;
13790
14140
  gebruiker_id?: string | null;
13791
14141
  gebruiker_naam?: string;
14142
+ gebruikte_bron?: string | null;
14143
+ gebruikte_layout_id?: string | null;
13792
14144
  gestart_op?: string | null;
13793
14145
  herkomst?: string | null;
13794
14146
  id?: string;
@@ -13796,6 +14148,9 @@ export type Database = {
13796
14148
  is_herprint?: boolean;
13797
14149
  kopieen?: number;
13798
14150
  layout_id?: string | null;
14151
+ lokaal_opgeslagen_op?: string | null;
14152
+ lokale_pdf_fout?: string | null;
14153
+ lokale_pdf_status?: string | null;
13799
14154
  opgepakt_op?: string | null;
13800
14155
  paginas?: number;
13801
14156
  payload?: Json;
@@ -13804,6 +14159,7 @@ export type Database = {
13804
14159
  pogingen?: number;
13805
14160
  printer_id?: string | null;
13806
14161
  render_html?: string | null;
14162
+ resultaat_pdf_base64?: string | null;
13807
14163
  status?: Database["public"]["Enums"]["print_job_status"];
13808
14164
  updated_at?: string;
13809
14165
  volgende_poging?: string | null;
@@ -13819,6 +14175,8 @@ export type Database = {
13819
14175
  foutmelding?: string | null;
13820
14176
  gebruiker_id?: string | null;
13821
14177
  gebruiker_naam?: string;
14178
+ gebruikte_bron?: string | null;
14179
+ gebruikte_layout_id?: string | null;
13822
14180
  gestart_op?: string | null;
13823
14181
  herkomst?: string | null;
13824
14182
  id?: string;
@@ -13826,6 +14184,9 @@ export type Database = {
13826
14184
  is_herprint?: boolean;
13827
14185
  kopieen?: number;
13828
14186
  layout_id?: string | null;
14187
+ lokaal_opgeslagen_op?: string | null;
14188
+ lokale_pdf_fout?: string | null;
14189
+ lokale_pdf_status?: string | null;
13829
14190
  opgepakt_op?: string | null;
13830
14191
  paginas?: number;
13831
14192
  payload?: Json;
@@ -13834,6 +14195,7 @@ export type Database = {
13834
14195
  pogingen?: number;
13835
14196
  printer_id?: string | null;
13836
14197
  render_html?: string | null;
14198
+ resultaat_pdf_base64?: string | null;
13837
14199
  status?: Database["public"]["Enums"]["print_job_status"];
13838
14200
  updated_at?: string;
13839
14201
  volgende_poging?: string | null;
@@ -13960,6 +14322,39 @@ export type Database = {
13960
14322
  };
13961
14323
  Relationships: [];
13962
14324
  };
14325
+ print_preview_events: {
14326
+ Row: {
14327
+ code: string | null;
14328
+ created_at: string;
14329
+ detail: Json;
14330
+ id: string;
14331
+ queue_item_id: string | null;
14332
+ reden: string | null;
14333
+ station_slug: string | null;
14334
+ uitkomst: string;
14335
+ };
14336
+ Insert: {
14337
+ code?: string | null;
14338
+ created_at?: string;
14339
+ detail?: Json;
14340
+ id?: string;
14341
+ queue_item_id?: string | null;
14342
+ reden?: string | null;
14343
+ station_slug?: string | null;
14344
+ uitkomst?: string;
14345
+ };
14346
+ Update: {
14347
+ code?: string | null;
14348
+ created_at?: string;
14349
+ detail?: Json;
14350
+ id?: string;
14351
+ queue_item_id?: string | null;
14352
+ reden?: string | null;
14353
+ station_slug?: string | null;
14354
+ uitkomst?: string;
14355
+ };
14356
+ Relationships: [];
14357
+ };
13963
14358
  print_queue_runners: {
13964
14359
  Row: {
13965
14360
  actief: boolean;
@@ -14195,6 +14590,7 @@ export type Database = {
14195
14590
  created_at: string;
14196
14591
  driver: string;
14197
14592
  extern_printer_id: string | null;
14593
+ formaten_bijgewerkt_op: string | null;
14198
14594
  id: string;
14199
14595
  ip_adres: string | null;
14200
14596
  laatst_gezien: string | null;
@@ -14202,8 +14598,11 @@ export type Database = {
14202
14598
  merk: string;
14203
14599
  naam: string;
14204
14600
  omschrijving: string;
14601
+ ondersteunde_formaten: Json | null;
14602
+ ondersteunde_laden: Json | null;
14205
14603
  online: boolean;
14206
14604
  papierformaat: string;
14605
+ pdf_map: string | null;
14207
14606
  poort: number | null;
14208
14607
  soort: Database["public"]["Enums"]["printer_kind"];
14209
14608
  systeemnaam: string;
@@ -14217,6 +14616,7 @@ export type Database = {
14217
14616
  created_at?: string;
14218
14617
  driver?: string;
14219
14618
  extern_printer_id?: string | null;
14619
+ formaten_bijgewerkt_op?: string | null;
14220
14620
  id?: string;
14221
14621
  ip_adres?: string | null;
14222
14622
  laatst_gezien?: string | null;
@@ -14224,8 +14624,11 @@ export type Database = {
14224
14624
  merk?: string;
14225
14625
  naam: string;
14226
14626
  omschrijving?: string;
14627
+ ondersteunde_formaten?: Json | null;
14628
+ ondersteunde_laden?: Json | null;
14227
14629
  online?: boolean;
14228
14630
  papierformaat?: string;
14631
+ pdf_map?: string | null;
14229
14632
  poort?: number | null;
14230
14633
  soort?: Database["public"]["Enums"]["printer_kind"];
14231
14634
  systeemnaam?: string;
@@ -14239,6 +14642,7 @@ export type Database = {
14239
14642
  created_at?: string;
14240
14643
  driver?: string;
14241
14644
  extern_printer_id?: string | null;
14645
+ formaten_bijgewerkt_op?: string | null;
14242
14646
  id?: string;
14243
14647
  ip_adres?: string | null;
14244
14648
  laatst_gezien?: string | null;
@@ -14246,8 +14650,11 @@ export type Database = {
14246
14650
  merk?: string;
14247
14651
  naam?: string;
14248
14652
  omschrijving?: string;
14653
+ ondersteunde_formaten?: Json | null;
14654
+ ondersteunde_laden?: Json | null;
14249
14655
  online?: boolean;
14250
14656
  papierformaat?: string;
14657
+ pdf_map?: string | null;
14251
14658
  poort?: number | null;
14252
14659
  soort?: Database["public"]["Enums"]["printer_kind"];
14253
14660
  systeemnaam?: string;
@@ -16192,6 +16599,45 @@ export type Database = {
16192
16599
  };
16193
16600
  Relationships: [];
16194
16601
  };
16602
+ stock_consumption_alerts: {
16603
+ Row: {
16604
+ alert_type: string;
16605
+ created_at: string;
16606
+ id: string;
16607
+ mutation_log_id: string | null;
16608
+ order_id: string | null;
16609
+ order_item_id: string | null;
16610
+ qty: number;
16611
+ reason: string | null;
16612
+ resolved_at: string | null;
16613
+ updated_at: string;
16614
+ };
16615
+ Insert: {
16616
+ alert_type: string;
16617
+ created_at?: string;
16618
+ id?: string;
16619
+ mutation_log_id?: string | null;
16620
+ order_id?: string | null;
16621
+ order_item_id?: string | null;
16622
+ qty?: number;
16623
+ reason?: string | null;
16624
+ resolved_at?: string | null;
16625
+ updated_at?: string;
16626
+ };
16627
+ Update: {
16628
+ alert_type?: string;
16629
+ created_at?: string;
16630
+ id?: string;
16631
+ mutation_log_id?: string | null;
16632
+ order_id?: string | null;
16633
+ order_item_id?: string | null;
16634
+ qty?: number;
16635
+ reason?: string | null;
16636
+ resolved_at?: string | null;
16637
+ updated_at?: string;
16638
+ };
16639
+ Relationships: [];
16640
+ };
16195
16641
  stock_import_runs: {
16196
16642
  Row: {
16197
16643
  connection_id: string | null;
@@ -19094,6 +19540,7 @@ export type Database = {
19094
19540
  werkbon_package_items: {
19095
19541
  Row: {
19096
19542
  article_number: string | null;
19543
+ artikel_id: string | null;
19097
19544
  created_at: string;
19098
19545
  gtin: string | null;
19099
19546
  id: string;
@@ -19111,6 +19558,7 @@ export type Database = {
19111
19558
  };
19112
19559
  Insert: {
19113
19560
  article_number?: string | null;
19561
+ artikel_id?: string | null;
19114
19562
  created_at?: string;
19115
19563
  gtin?: string | null;
19116
19564
  id?: string;
@@ -19128,6 +19576,7 @@ export type Database = {
19128
19576
  };
19129
19577
  Update: {
19130
19578
  article_number?: string | null;
19579
+ artikel_id?: string | null;
19131
19580
  created_at?: string;
19132
19581
  gtin?: string | null;
19133
19582
  id?: string;
@@ -19144,6 +19593,13 @@ export type Database = {
19144
19593
  updated_at?: string;
19145
19594
  };
19146
19595
  Relationships: [
19596
+ {
19597
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
19598
+ columns: ["artikel_id"];
19599
+ isOneToOne: false;
19600
+ referencedRelation: "artikelen_cache";
19601
+ referencedColumns: ["id"];
19602
+ },
19147
19603
  {
19148
19604
  foreignKeyName: "werkbon_package_items_package_id_fkey";
19149
19605
  columns: ["package_id"];
@@ -20405,6 +20861,22 @@ export type Database = {
20405
20861
  }
20406
20862
  ];
20407
20863
  };
20864
+ v_werkbon_totalen: {
20865
+ Row: {
20866
+ packages_cents: number | null;
20867
+ packages_minutes: number | null;
20868
+ werkbon_id: string | null;
20869
+ };
20870
+ Relationships: [
20871
+ {
20872
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20873
+ columns: ["werkbon_id"];
20874
+ isOneToOne: false;
20875
+ referencedRelation: "werkbonnen";
20876
+ referencedColumns: ["id"];
20877
+ }
20878
+ ];
20879
+ };
20408
20880
  };
20409
20881
  Functions: {
20410
20882
  _floriday_schedule_job: {
@@ -20591,6 +21063,8 @@ export type Database = {
20591
21063
  foutmelding: string | null;
20592
21064
  gebruiker_id: string | null;
20593
21065
  gebruiker_naam: string;
21066
+ gebruikte_bron: string | null;
21067
+ gebruikte_layout_id: string | null;
20594
21068
  gestart_op: string | null;
20595
21069
  herkomst: string | null;
20596
21070
  id: string;
@@ -20598,6 +21072,9 @@ export type Database = {
20598
21072
  is_herprint: boolean;
20599
21073
  kopieen: number;
20600
21074
  layout_id: string | null;
21075
+ lokaal_opgeslagen_op: string | null;
21076
+ lokale_pdf_fout: string | null;
21077
+ lokale_pdf_status: string | null;
20601
21078
  opgepakt_op: string | null;
20602
21079
  paginas: number;
20603
21080
  payload: Json;
@@ -20606,6 +21083,7 @@ export type Database = {
20606
21083
  pogingen: number;
20607
21084
  printer_id: string | null;
20608
21085
  render_html: string | null;
21086
+ resultaat_pdf_base64: string | null;
20609
21087
  status: Database["public"]["Enums"]["print_job_status"];
20610
21088
  updated_at: string;
20611
21089
  volgende_poging: string | null;
@@ -20697,6 +21175,53 @@ export type Database = {
20697
21175
  isSetofReturn: true;
20698
21176
  };
20699
21177
  };
21178
+ claim_pdf_print_jobs: {
21179
+ Args: {
21180
+ _max?: number;
21181
+ };
21182
+ Returns: {
21183
+ agent_id: string | null;
21184
+ bron_job_id: string | null;
21185
+ created_at: string;
21186
+ documentnaam: string;
21187
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
21188
+ extern_job_id: string | null;
21189
+ foutmelding: string | null;
21190
+ gebruiker_id: string | null;
21191
+ gebruiker_naam: string;
21192
+ gebruikte_bron: string | null;
21193
+ gebruikte_layout_id: string | null;
21194
+ gestart_op: string | null;
21195
+ herkomst: string | null;
21196
+ id: string;
21197
+ idempotentie_sleutel: string | null;
21198
+ is_herprint: boolean;
21199
+ kopieen: number;
21200
+ layout_id: string | null;
21201
+ lokaal_opgeslagen_op: string | null;
21202
+ lokale_pdf_fout: string | null;
21203
+ lokale_pdf_status: string | null;
21204
+ opgepakt_op: string | null;
21205
+ paginas: number;
21206
+ payload: Json;
21207
+ pdf_base64: string | null;
21208
+ pdf_url: string | null;
21209
+ pogingen: number;
21210
+ printer_id: string | null;
21211
+ render_html: string | null;
21212
+ resultaat_pdf_base64: string | null;
21213
+ status: Database["public"]["Enums"]["print_job_status"];
21214
+ updated_at: string;
21215
+ volgende_poging: string | null;
21216
+ voltooid_op: string | null;
21217
+ }[];
21218
+ SetofOptions: {
21219
+ from: "*";
21220
+ to: "print_jobs";
21221
+ isOneToOne: false;
21222
+ isSetofReturn: true;
21223
+ };
21224
+ };
20700
21225
  claim_print_jobs: {
20701
21226
  Args: {
20702
21227
  _agent_id: string;
@@ -20712,6 +21237,8 @@ export type Database = {
20712
21237
  foutmelding: string | null;
20713
21238
  gebruiker_id: string | null;
20714
21239
  gebruiker_naam: string;
21240
+ gebruikte_bron: string | null;
21241
+ gebruikte_layout_id: string | null;
20715
21242
  gestart_op: string | null;
20716
21243
  herkomst: string | null;
20717
21244
  id: string;
@@ -20719,6 +21246,9 @@ export type Database = {
20719
21246
  is_herprint: boolean;
20720
21247
  kopieen: number;
20721
21248
  layout_id: string | null;
21249
+ lokaal_opgeslagen_op: string | null;
21250
+ lokale_pdf_fout: string | null;
21251
+ lokale_pdf_status: string | null;
20722
21252
  opgepakt_op: string | null;
20723
21253
  paginas: number;
20724
21254
  payload: Json;
@@ -20727,6 +21257,7 @@ export type Database = {
20727
21257
  pogingen: number;
20728
21258
  printer_id: string | null;
20729
21259
  render_html: string | null;
21260
+ resultaat_pdf_base64: string | null;
20730
21261
  status: Database["public"]["Enums"]["print_job_status"];
20731
21262
  updated_at: string;
20732
21263
  volgende_poging: string | null;
@@ -20867,6 +21398,8 @@ export type Database = {
20867
21398
  order_id: string;
20868
21399
  order_source: string;
20869
21400
  pick_date: string;
21401
+ printed_at: string;
21402
+ printed_today: boolean;
20870
21403
  status: string;
20871
21404
  }[];
20872
21405
  };
@@ -21575,6 +22108,10 @@ export type Database = {
21575
22108
  };
21576
22109
  Returns: number;
21577
22110
  };
22111
+ logistics_cancel_orphan_tasks: {
22112
+ Args: never;
22113
+ Returns: number;
22114
+ };
21578
22115
  logistics_capacity_day_check: {
21579
22116
  Args: {
21580
22117
  p_from?: string;
@@ -21595,6 +22132,25 @@ export type Database = {
21595
22132
  };
21596
22133
  Returns: number;
21597
22134
  };
22135
+ logistics_cart_index: {
22136
+ Args: {
22137
+ p_from?: string;
22138
+ p_to?: string;
22139
+ };
22140
+ Returns: {
22141
+ cart_id: string;
22142
+ cart_index: number;
22143
+ cart_label: string;
22144
+ is_shared: boolean;
22145
+ order_number: string;
22146
+ order_source: string;
22147
+ order_uuid: string;
22148
+ pick_date: string;
22149
+ printed_at: string;
22150
+ shifted: boolean;
22151
+ task_status: string;
22152
+ }[];
22153
+ };
21598
22154
  logistics_check_order_allowed: {
21599
22155
  Args: {
21600
22156
  p_lines: Json;
@@ -21743,6 +22299,17 @@ export type Database = {
21743
22299
  isSetofReturn: false;
21744
22300
  };
21745
22301
  };
22302
+ logistics_consistency_check: {
22303
+ Args: never;
22304
+ Returns: {
22305
+ agenda_carts: number;
22306
+ control_carts: number;
22307
+ ok: boolean;
22308
+ orphan_tasks: number;
22309
+ pick_date: string;
22310
+ raw_carts: number;
22311
+ }[];
22312
+ };
21746
22313
  logistics_delay_customer_email: {
21747
22314
  Args: {
21748
22315
  p_customer: string;
@@ -21768,6 +22335,12 @@ export type Database = {
21768
22335
  };
21769
22336
  Returns: string;
21770
22337
  };
22338
+ logistics_document_type_map: {
22339
+ Args: {
22340
+ _document_code: string;
22341
+ };
22342
+ Returns: Database["public"]["Enums"]["doc_layout_type"][];
22343
+ };
21771
22344
  logistics_emit_event: {
21772
22345
  Args: {
21773
22346
  p_event_type: string;
@@ -21826,6 +22399,16 @@ export type Database = {
21826
22399
  isSetofReturn: false;
21827
22400
  };
21828
22401
  };
22402
+ logistics_floriday_cart_plan: {
22403
+ Args: {
22404
+ p_order_id: string;
22405
+ };
22406
+ Returns: {
22407
+ carrier_type: string;
22408
+ idx: number;
22409
+ packages: number;
22410
+ }[];
22411
+ };
21829
22412
  logistics_floriday_claim_pushes: {
21830
22413
  Args: {
21831
22414
  _lease_seconds?: number;
@@ -21930,6 +22513,25 @@ export type Database = {
21930
22513
  };
21931
22514
  Returns: number;
21932
22515
  };
22516
+ logistics_order_overview: {
22517
+ Args: {
22518
+ p_from?: string;
22519
+ p_to?: string;
22520
+ };
22521
+ Returns: {
22522
+ cart_count: number;
22523
+ customer_name: string;
22524
+ delivery_date: string;
22525
+ order_number: string;
22526
+ order_source: string;
22527
+ order_uuid: string;
22528
+ pick_date: string;
22529
+ plant_count: number;
22530
+ printed_at: string;
22531
+ shifted: boolean;
22532
+ status: string;
22533
+ }[];
22534
+ };
21933
22535
  logistics_order_pick_day: {
21934
22536
  Args: {
21935
22537
  p_order_ref: string;
@@ -21942,6 +22544,22 @@ export type Database = {
21942
22544
  };
21943
22545
  Returns: string;
21944
22546
  };
22547
+ logistics_pick_agenda: {
22548
+ Args: {
22549
+ p_from?: string;
22550
+ p_to?: string;
22551
+ };
22552
+ Returns: {
22553
+ cart_count: number;
22554
+ in_preparation: number;
22555
+ order_count: number;
22556
+ orders: Json;
22557
+ pick_date: string;
22558
+ plant_count: number;
22559
+ ready: number;
22560
+ shifted_count: number;
22561
+ }[];
22562
+ };
21945
22563
  logistics_pick_email_purpose: {
21946
22564
  Args: never;
21947
22565
  Returns: string;
@@ -21952,6 +22570,14 @@ export type Database = {
21952
22570
  };
21953
22571
  Returns: Json;
21954
22572
  };
22573
+ logistics_plan_block: {
22574
+ Args: {
22575
+ p_details?: Json;
22576
+ p_order_ids: string[];
22577
+ p_reason: string;
22578
+ };
22579
+ Returns: number;
22580
+ };
21955
22581
  logistics_plan_buffer_sql: {
21956
22582
  Args: {
21957
22583
  p_buffer_id: string;
@@ -21988,6 +22614,13 @@ export type Database = {
21988
22614
  };
21989
22615
  Returns: undefined;
21990
22616
  };
22617
+ logistics_plan_floriday_order: {
22618
+ Args: {
22619
+ p_buffer_id?: string;
22620
+ p_order_id: string;
22621
+ };
22622
+ Returns: number;
22623
+ };
21991
22624
  logistics_plan_impact_orders: {
21992
22625
  Args: {
21993
22626
  p_order_id: string;
@@ -22093,6 +22726,15 @@ export type Database = {
22093
22726
  };
22094
22727
  Returns: Json;
22095
22728
  };
22729
+ logistics_resolve_pick_document: {
22730
+ Args: {
22731
+ _is_herprint: boolean;
22732
+ _queue_item_id: string;
22733
+ _session_id: string;
22734
+ _voorbeeld: boolean;
22735
+ };
22736
+ Returns: Json;
22737
+ };
22096
22738
  logistics_resolve_settings: {
22097
22739
  Args: {
22098
22740
  p_config_id: string;
@@ -22320,6 +22962,12 @@ export type Database = {
22320
22962
  verwijderd: number;
22321
22963
  }[];
22322
22964
  };
22965
+ order_departure_proof: {
22966
+ Args: {
22967
+ p_order_id: string;
22968
+ };
22969
+ Returns: Json;
22970
+ };
22323
22971
  order_number_prefix: {
22324
22972
  Args: {
22325
22973
  p_custom_fields?: Json;
@@ -22327,6 +22975,25 @@ export type Database = {
22327
22975
  };
22328
22976
  Returns: string;
22329
22977
  };
22978
+ pakket_suggesties_voor_tekst: {
22979
+ Args: {
22980
+ _tekst: string;
22981
+ };
22982
+ Returns: {
22983
+ hit_type: string;
22984
+ package_id: string;
22985
+ priority: number;
22986
+ }[];
22987
+ };
22988
+ pakket_voor_reistijd: {
22989
+ Args: {
22990
+ _minuten: number;
22991
+ };
22992
+ Returns: {
22993
+ package_id: string;
22994
+ priority: number;
22995
+ }[];
22996
+ };
22330
22997
  pick_active_printers: {
22331
22998
  Args: never;
22332
22999
  Returns: {
@@ -22508,6 +23175,7 @@ export type Database = {
22508
23175
  };
22509
23176
  pick_enqueue_print_job: {
22510
23177
  Args: {
23178
+ _is_herprint?: boolean;
22511
23179
  _printer_id?: string;
22512
23180
  _queue_item_id: string;
22513
23181
  _session_id?: string;
@@ -22521,6 +23189,13 @@ export type Database = {
22521
23189
  };
22522
23190
  Returns: Json;
22523
23191
  };
23192
+ pick_preview_job: {
23193
+ Args: {
23194
+ _queue_item_id: string;
23195
+ _station_slug: string;
23196
+ };
23197
+ Returns: Json;
23198
+ };
22524
23199
  pick_print_job_status: {
22525
23200
  Args: {
22526
23201
  _job_id: string;
@@ -22535,6 +23210,10 @@ export type Database = {
22535
23210
  omschrijving: string;
22536
23211
  }[];
22537
23212
  };
23213
+ pick_reference_data_status: {
23214
+ Args: never;
23215
+ Returns: Json;
23216
+ };
22538
23217
  pick_release_expired_locks: {
22539
23218
  Args: never;
22540
23219
  Returns: number;
@@ -22599,6 +23278,10 @@ export type Database = {
22599
23278
  isSetofReturn: false;
22600
23279
  };
22601
23280
  };
23281
+ pick_seed_reference_data: {
23282
+ Args: never;
23283
+ Returns: Json;
23284
+ };
22602
23285
  pick_set_station_print_plek: {
22603
23286
  Args: {
22604
23287
  _print_plek_id: string;
@@ -22690,6 +23373,24 @@ export type Database = {
22690
23373
  };
22691
23374
  Returns: undefined;
22692
23375
  };
23376
+ print_preview_toestaan: {
23377
+ Args: {
23378
+ _max?: number;
23379
+ _queue_item_id: string;
23380
+ _station_slug: string;
23381
+ _venster_sec?: number;
23382
+ };
23383
+ Returns: Json;
23384
+ };
23385
+ print_preview_weiger: {
23386
+ Args: {
23387
+ _code: string;
23388
+ _queue_item_id: string;
23389
+ _reden: string;
23390
+ _station_slug: string;
23391
+ };
23392
+ Returns: undefined;
23393
+ };
22693
23394
  process_logistics_event: {
22694
23395
  Args: {
22695
23396
  p_event_id: string;
@@ -22807,6 +23508,14 @@ export type Database = {
22807
23508
  };
22808
23509
  Returns: undefined;
22809
23510
  };
23511
+ replace_order_carts: {
23512
+ Args: {
23513
+ p_buffer_id: string;
23514
+ p_carts: Json;
23515
+ p_order_id: string;
23516
+ };
23517
+ Returns: Json;
23518
+ };
22810
23519
  reset_floriday_sync_cursor: {
22811
23520
  Args: {
22812
23521
  p_connection_id: string;
@@ -22836,6 +23545,12 @@ export type Database = {
22836
23545
  };
22837
23546
  Returns: string;
22838
23547
  };
23548
+ resolve_print_job_printer_id: {
23549
+ Args: {
23550
+ _job: Database["public"]["Tables"]["print_jobs"]["Row"];
23551
+ };
23552
+ Returns: string;
23553
+ };
22839
23554
  resolve_product_id_for_item: {
22840
23555
  Args: {
22841
23556
  p_product_name: string;
@@ -23377,6 +24092,18 @@ export type Database = {
23377
24092
  Args: never;
23378
24093
  Returns: string;
23379
24094
  };
24095
+ werkbon_totalen: {
24096
+ Args: {
24097
+ _werkbon_id: string;
24098
+ };
24099
+ Returns: {
24100
+ materials_cents: number;
24101
+ packages_cents: number;
24102
+ packages_minutes: number;
24103
+ total_cents: number;
24104
+ total_minutes: number;
24105
+ }[];
24106
+ };
23380
24107
  wo_create_from_source: {
23381
24108
  Args: {
23382
24109
  _payload?: Json;