@ohioepa/oepa-ui-lib 1.2.1 → 1.2.3

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.
@@ -0,0 +1,7 @@
1
+ import { HttpParameterCodec } from "@angular/common/http";
2
+ export declare class CustomEncoder implements HttpParameterCodec {
3
+ encodeKey(key: string): string;
4
+ encodeValue(value: string): string;
5
+ decodeKey(key: string): string;
6
+ decodeValue(value: string): string;
7
+ }
@@ -0,0 +1,21 @@
1
+ import { Observable } from 'rxjs';
2
+ import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
3
+ import { OepaUserAccountService } from '../oepa-user-account/oepa-user-account.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OepaHttpInterceptor implements HttpInterceptor {
6
+ private userAccountService;
7
+ readonly defaultTimeout: number;
8
+ constructor(userAccountService: OepaUserAccountService);
9
+ /**
10
+ * Add a timestamp as a query parameter to all http requests
11
+ * @param req
12
+ * @param next
13
+ */
14
+ intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
15
+ /**
16
+ * Shorten error message in the event of a JSON parse error
17
+ */
18
+ private shortenErrorMessage;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<OepaHttpInterceptor, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<OepaHttpInterceptor>;
21
+ }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohioepa/oepa-ui-lib",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13"
package/public-api.d.ts CHANGED
@@ -108,4 +108,11 @@ export * from './lib/table/oepa-table-cell-icon-classname.pipe';
108
108
  export * from './lib/table/oepa-table-cell-img-src.pipe';
109
109
  export * from './lib/zip-code/zip-code.component';
110
110
  export * from './lib/oepa-forms.service';
111
+ export * from './lib/oepa-file-utils/oepa-file-util.service';
112
+ export * from './lib/oepa-user-account/oepa-user-account.service';
113
+ export * from './lib/parameter/parameter';
114
+ export * from './lib/parameter/parameter.service';
115
+ export * from './lib/oepa-account/account.service';
111
116
  export * from './lib/oepa-images';
117
+ export * from './lib/util/oepa-custom-encoder';
118
+ export * from './lib/util/oepa-http-interceptor';
Binary file