@ohioepa/oepa-ui-lib 1.3.2 → 1.3.4
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.
- package/esm2022/lib/edoc-attachment/edoc-attachment.service.mjs +14 -9
- package/esm2022/lib/lynx-image-upload/lynx.service.mjs +15 -10
- package/esm2022/lib/oepa-account/account.service.mjs +22 -17
- package/esm2022/lib/oepa-reference/oepa-reference.service.mjs +13 -8
- package/esm2022/lib/parameter/parameter.service.mjs +17 -12
- package/esm2022/lib/params-help-button/params-help.service.mjs +11 -4
- package/esm2022/lib/shopping-cart/shopping-cart-view/shopping-cart-view.component.mjs +3 -2
- package/esm2022/lib/shopping-cart/shopping-cart.service.mjs +16 -6
- package/fesm2022/ohioepa-oepa-ui-lib.mjs +103 -60
- package/fesm2022/ohioepa-oepa-ui-lib.mjs.map +1 -1
- package/lib/edoc-attachment/edoc-attachment.service.d.ts +2 -2
- package/lib/lynx-image-upload/lynx.service.d.ts +3 -3
- package/lib/oepa-account/account.service.d.ts +3 -3
- package/lib/oepa-reference/oepa-reference.service.d.ts +2 -2
- package/lib/parameter/parameter.service.d.ts +2 -2
- package/lib/params-help-button/params-help.service.d.ts +2 -1
- package/lib/shopping-cart/shopping-cart.service.d.ts +3 -1
- package/ohioepa-oepa-ui-lib-1.3.4.tgz +0 -0
- package/package.json +1 -1
- package/ohioepa-oepa-ui-lib-1.3.2.tgz +0 -0
|
@@ -7,10 +7,17 @@ export class ShoppingCartService {
|
|
|
7
7
|
http;
|
|
8
8
|
ebizRootURL;
|
|
9
9
|
paymentUrl = '/ebiz/api/v1/payment/';
|
|
10
|
-
|
|
10
|
+
params = {};
|
|
11
|
+
constructor(http, ebizRootURL, app) {
|
|
11
12
|
this.http = http;
|
|
12
13
|
this.ebizRootURL = ebizRootURL;
|
|
13
14
|
this.paymentUrl = ebizRootURL + this.paymentUrl;
|
|
15
|
+
this.params = {
|
|
16
|
+
'app': app
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
getEbizRootURL() {
|
|
20
|
+
return this.ebizRootURL;
|
|
14
21
|
}
|
|
15
22
|
/**
|
|
16
23
|
* Retrieve a shopping cart for the current user for the provided serviceName.
|
|
@@ -21,7 +28,7 @@ export class ShoppingCartService {
|
|
|
21
28
|
const headers = new HttpHeaders();
|
|
22
29
|
headers.append('Content-Type', 'application/json');
|
|
23
30
|
const url = this.paymentUrl + '/shoppingCart/' + serviceName;
|
|
24
|
-
return this.http.get(url, { headers: headers, responseType: 'json' });
|
|
31
|
+
return this.http.get(url, { headers: headers, responseType: 'json', params: this.params });
|
|
25
32
|
}
|
|
26
33
|
/**
|
|
27
34
|
* Store cart in the database
|
|
@@ -32,7 +39,7 @@ export class ShoppingCartService {
|
|
|
32
39
|
const headers = new HttpHeaders();
|
|
33
40
|
headers.append('Content-Type', 'application/json');
|
|
34
41
|
const url = this.paymentUrl + '/shoppingCart';
|
|
35
|
-
return this.http.post(url, cart, { headers: headers, responseType: 'json' });
|
|
42
|
+
return this.http.post(url, cart, { headers: headers, responseType: 'json', params: this.params });
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
45
|
* Remove the item with the type id, id, from cart and store it in the database
|
|
@@ -78,9 +85,9 @@ export class ShoppingCartService {
|
|
|
78
85
|
checkOut(cart) {
|
|
79
86
|
const headers = new HttpHeaders({ 'Content-Type': 'application/json; odata=verbose' });
|
|
80
87
|
const url = this.paymentUrl + '/shoppingCart/' + cart.serviceName + '/checkout';
|
|
81
|
-
return this.http.post(url, cart, { headers: headers, responseType: 'json' });
|
|
88
|
+
return this.http.post(url, cart, { headers: headers, responseType: 'json', params: this.params });
|
|
82
89
|
}
|
|
83
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShoppingCartService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
90
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShoppingCartService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }, { token: 'app' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
84
91
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShoppingCartService, providedIn: 'root' });
|
|
85
92
|
}
|
|
86
93
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShoppingCartService, decorators: [{
|
|
@@ -91,5 +98,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
91
98
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
92
99
|
type: Inject,
|
|
93
100
|
args: ['ebizRootURL']
|
|
101
|
+
}] }, { type: undefined, decorators: [{
|
|
102
|
+
type: Inject,
|
|
103
|
+
args: ['app']
|
|
94
104
|
}] }] });
|
|
95
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
105
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcHBpbmctY2FydC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvb2VwYS11aS1saWIvc3JjL2xpYi9zaG9wcGluZy1jYXJ0L3Nob3BwaW5nLWNhcnQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQWMsV0FBVyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDL0QsT0FBTyxFQUFjLEVBQUUsRUFBRSxNQUFNLE1BQU0sQ0FBQzs7O0FBTXRDLE1BQU0sT0FBTyxtQk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9IFtdO1xuICAgICAgfVxuICAgICAgY2FydC5jYXJ0SXRlbXMucHVzaChpdGVtKTtcbiAgICAgIHJldHVybiB0aGlzLnVwZGF0ZVNob3BwaW5nQ2FydChjYXJ0KTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIG9mKGNhcnQpO1xuICAgIH1cbiAgfVxuXG4gIC8qKlxuICAgKiBQZXJmb3JtIGNoZWNrb3V0IGZvciBjYXJ0LiBUaGlzIHdpbGwgY3JlYXRlIHJldmVudWVzIGZvciBhbGwgaXRlbXMgaW4gdGhlIGNhcnQgYW5kIHJldHVybiBcbiAgICogYSB0cmFuc2FjdGlvbiBpZCBmb3IgdGhlIHNob3BwaW5nIGNhcnQgYXMgYSB3aG9sZS5cbiAgICogQHBhcmFtIGNhcnRcbiAgICogQHJldHVybnMgT2JzZXJ2YWJsZTxzdHJpbmc+XG4gICAqL1xuICBwdWJsaWMgY2hlY2tPdXQoY2FydDogU2hvcHBpbmdDYXJ0KTogT2JzZXJ2YWJsZTxzdHJpbmc+IHtcbiAgICBjb25zdCBoZWFkZXJzID0gbmV3IEh0dHBIZWFkZXJzKHsgJ0NvbnRlbnQtVHlwZSc6ICdhcHBsaWNhdGlvbi9qc29uOyBvZGF0YT12ZXJib3NlJyB9KTtcbiAgICBjb25zdCB1cmwgPSB0aGlzLnBheW1lbnRVcmwgKyAnL3Nob3BwaW5nQ2FydC8nICsgY2FydC5zZXJ2aWNlTmFtZSArICcvY2hlY2tvdXQnO1xuICAgIHJldHVybiB0aGlzLmh0dHAucG9zdDxzdHJpbmc+KHVybCwgY2FydCwgeyBoZWFkZXJzOiBoZWFkZXJzLCByZXNwb25zZVR5cGU6ICdqc29uJywgcGFyYW1zOiB0aGlzLnBhcmFtcyB9KTtcbiAgfVxufVxuIl19
|
|
@@ -6023,32 +6023,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
6023
6023
|
|
|
6024
6024
|
class EdocAttachmentService {
|
|
6025
6025
|
http;
|
|
6026
|
-
ebizRootURL;
|
|
6027
6026
|
fileUtilUrl = '/ebiz/api/v1/fileutil';
|
|
6028
|
-
|
|
6027
|
+
params;
|
|
6028
|
+
constructor(http, ebizRootURL, app) {
|
|
6029
6029
|
this.http = http;
|
|
6030
|
-
this.ebizRootURL = ebizRootURL;
|
|
6031
6030
|
this.fileUtilUrl = ebizRootURL + this.fileUtilUrl;
|
|
6031
|
+
this.params = {
|
|
6032
|
+
'app': app
|
|
6033
|
+
};
|
|
6032
6034
|
}
|
|
6033
6035
|
createEDocAttachment(eDocAttachment) {
|
|
6034
6036
|
let url = this.fileUtilUrl + '/eDocumentAttachments';
|
|
6035
|
-
return this.http.post(url, eDocAttachment);
|
|
6037
|
+
return this.http.post(url, eDocAttachment, { params: this.params });
|
|
6036
6038
|
}
|
|
6037
6039
|
deleteEDocAttachment(eDocAttachmentID) {
|
|
6038
6040
|
let url = this.fileUtilUrl + '/eDocumentAttachments/' + eDocAttachmentID;
|
|
6039
|
-
return this.http.delete(url);
|
|
6041
|
+
return this.http.delete(url, { params: this.params });
|
|
6040
6042
|
}
|
|
6041
6043
|
retrieveEDocAttachment(eDocAttachmentID) {
|
|
6042
6044
|
let url = this.fileUtilUrl + '/eDocumentAttachments/' + eDocAttachmentID;
|
|
6043
|
-
return this.http.get(url);
|
|
6045
|
+
return this.http.get(url, { params: this.params });
|
|
6044
6046
|
}
|
|
6045
6047
|
downloadEDocAttachment(eDocAttachmentID) {
|
|
6046
6048
|
let url = this.fileUtilUrl + '/eDocumentAttachments/' + eDocAttachmentID + '/download';
|
|
6047
6049
|
const headers = new HttpHeaders();
|
|
6048
6050
|
headers.append('Content-type', 'application/json;odata=verbose');
|
|
6049
|
-
return this.http.get(url, { headers: headers, responseType: 'blob' });
|
|
6051
|
+
return this.http.get(url, { headers: headers, params: this.params, responseType: 'blob' });
|
|
6050
6052
|
}
|
|
6051
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EdocAttachmentService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6053
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EdocAttachmentService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }, { token: 'app' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6052
6054
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EdocAttachmentService, providedIn: 'root' });
|
|
6053
6055
|
}
|
|
6054
6056
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EdocAttachmentService, decorators: [{
|
|
@@ -6059,6 +6061,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
6059
6061
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
6060
6062
|
type: Inject,
|
|
6061
6063
|
args: ['ebizRootURL']
|
|
6064
|
+
}] }, { type: undefined, decorators: [{
|
|
6065
|
+
type: Inject,
|
|
6066
|
+
args: ['app']
|
|
6062
6067
|
}] }] });
|
|
6063
6068
|
|
|
6064
6069
|
class EdocAttachmentComponent {
|
|
@@ -6973,14 +6978,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
6973
6978
|
class ParamsHelpService {
|
|
6974
6979
|
http;
|
|
6975
6980
|
baseURL = '/ebiz/api/v1/gateway/helpURLs/';
|
|
6976
|
-
|
|
6981
|
+
params = {};
|
|
6982
|
+
constructor(http, ebizRootURL, app) {
|
|
6977
6983
|
this.http = http;
|
|
6978
6984
|
this.baseURL = ebizRootURL + this.baseURL;
|
|
6985
|
+
this.params = {
|
|
6986
|
+
'app': app
|
|
6987
|
+
};
|
|
6979
6988
|
}
|
|
6980
6989
|
retrieveHelpURL(helpURLParamName) {
|
|
6981
|
-
return this.http.get(this.baseURL + helpURLParamName, { responseType: 'text' });
|
|
6990
|
+
return this.http.get(this.baseURL + helpURLParamName, { responseType: 'text', params: this.params });
|
|
6982
6991
|
}
|
|
6983
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ParamsHelpService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6992
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ParamsHelpService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }, { token: 'app' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6984
6993
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ParamsHelpService, providedIn: 'root' });
|
|
6985
6994
|
}
|
|
6986
6995
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ParamsHelpService, decorators: [{
|
|
@@ -6991,6 +7000,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
6991
7000
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
6992
7001
|
type: Inject,
|
|
6993
7002
|
args: ['ebizRootURL']
|
|
7003
|
+
}] }, { type: undefined, decorators: [{
|
|
7004
|
+
type: Inject,
|
|
7005
|
+
args: ['app']
|
|
6994
7006
|
}] }] });
|
|
6995
7007
|
|
|
6996
7008
|
class ParamsHelpButtonComponent {
|
|
@@ -7736,10 +7748,17 @@ class ShoppingCartService {
|
|
|
7736
7748
|
http;
|
|
7737
7749
|
ebizRootURL;
|
|
7738
7750
|
paymentUrl = '/ebiz/api/v1/payment/';
|
|
7739
|
-
|
|
7751
|
+
params = {};
|
|
7752
|
+
constructor(http, ebizRootURL, app) {
|
|
7740
7753
|
this.http = http;
|
|
7741
7754
|
this.ebizRootURL = ebizRootURL;
|
|
7742
7755
|
this.paymentUrl = ebizRootURL + this.paymentUrl;
|
|
7756
|
+
this.params = {
|
|
7757
|
+
'app': app
|
|
7758
|
+
};
|
|
7759
|
+
}
|
|
7760
|
+
getEbizRootURL() {
|
|
7761
|
+
return this.ebizRootURL;
|
|
7743
7762
|
}
|
|
7744
7763
|
/**
|
|
7745
7764
|
* Retrieve a shopping cart for the current user for the provided serviceName.
|
|
@@ -7750,7 +7769,7 @@ class ShoppingCartService {
|
|
|
7750
7769
|
const headers = new HttpHeaders();
|
|
7751
7770
|
headers.append('Content-Type', 'application/json');
|
|
7752
7771
|
const url = this.paymentUrl + '/shoppingCart/' + serviceName;
|
|
7753
|
-
return this.http.get(url, { headers: headers, responseType: 'json' });
|
|
7772
|
+
return this.http.get(url, { headers: headers, responseType: 'json', params: this.params });
|
|
7754
7773
|
}
|
|
7755
7774
|
/**
|
|
7756
7775
|
* Store cart in the database
|
|
@@ -7761,7 +7780,7 @@ class ShoppingCartService {
|
|
|
7761
7780
|
const headers = new HttpHeaders();
|
|
7762
7781
|
headers.append('Content-Type', 'application/json');
|
|
7763
7782
|
const url = this.paymentUrl + '/shoppingCart';
|
|
7764
|
-
return this.http.post(url, cart, { headers: headers, responseType: 'json' });
|
|
7783
|
+
return this.http.post(url, cart, { headers: headers, responseType: 'json', params: this.params });
|
|
7765
7784
|
}
|
|
7766
7785
|
/**
|
|
7767
7786
|
* Remove the item with the type id, id, from cart and store it in the database
|
|
@@ -7807,9 +7826,9 @@ class ShoppingCartService {
|
|
|
7807
7826
|
checkOut(cart) {
|
|
7808
7827
|
const headers = new HttpHeaders({ 'Content-Type': 'application/json; odata=verbose' });
|
|
7809
7828
|
const url = this.paymentUrl + '/shoppingCart/' + cart.serviceName + '/checkout';
|
|
7810
|
-
return this.http.post(url, cart, { headers: headers, responseType: 'json' });
|
|
7829
|
+
return this.http.post(url, cart, { headers: headers, responseType: 'json', params: this.params });
|
|
7811
7830
|
}
|
|
7812
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShoppingCartService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7831
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShoppingCartService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }, { token: 'app' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7813
7832
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShoppingCartService, providedIn: 'root' });
|
|
7814
7833
|
}
|
|
7815
7834
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ShoppingCartService, decorators: [{
|
|
@@ -7820,6 +7839,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
7820
7839
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
7821
7840
|
type: Inject,
|
|
7822
7841
|
args: ['ebizRootURL']
|
|
7842
|
+
}] }, { type: undefined, decorators: [{
|
|
7843
|
+
type: Inject,
|
|
7844
|
+
args: ['app']
|
|
7823
7845
|
}] }] });
|
|
7824
7846
|
|
|
7825
7847
|
class ShoppingCartViewComponent {
|
|
@@ -7988,7 +8010,8 @@ class ShoppingCartViewComponent {
|
|
|
7988
8010
|
this.shoppingCartService.checkOut(this.shoppingCart).subscribe({
|
|
7989
8011
|
next: transactionID => {
|
|
7990
8012
|
// navigate to CBOSS payment screen
|
|
7991
|
-
|
|
8013
|
+
const ebizRootURL = this.shoppingCartService.getEbizRootURL();
|
|
8014
|
+
window.location.href = ebizRootURL + '/portal/paymentSubmissionAction.po?transactionID=' + transactionID;
|
|
7992
8015
|
}, error: err => {
|
|
7993
8016
|
this.checkOutInProgress = false;
|
|
7994
8017
|
this.errorMessage = 'Checkout failed: ' + err;
|
|
@@ -8863,41 +8886,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
8863
8886
|
|
|
8864
8887
|
class LynxService {
|
|
8865
8888
|
http;
|
|
8866
|
-
ebizRootURL;
|
|
8867
8889
|
lynxUrl = '/ebiz/api/v1/lynx/';
|
|
8868
|
-
|
|
8890
|
+
params;
|
|
8891
|
+
constructor(http, ebizRootURL, app) {
|
|
8869
8892
|
this.http = http;
|
|
8870
|
-
this.ebizRootURL = ebizRootURL;
|
|
8871
8893
|
this.lynxUrl = ebizRootURL + this.lynxUrl;
|
|
8894
|
+
this.params = {
|
|
8895
|
+
'app': app
|
|
8896
|
+
};
|
|
8872
8897
|
}
|
|
8873
8898
|
retrieveProjects() {
|
|
8874
8899
|
const headers = new HttpHeaders();
|
|
8875
8900
|
headers.append('Content-type', 'application/json');
|
|
8876
|
-
return this.http.get(this.lynxUrl + 'projects', { headers: headers });
|
|
8901
|
+
return this.http.get(this.lynxUrl + 'projects', { headers: headers, params: this.params });
|
|
8877
8902
|
}
|
|
8878
8903
|
retrieveProjectMetadata(projectID) {
|
|
8879
8904
|
const headers = new HttpHeaders();
|
|
8880
8905
|
headers.append('Content-type', 'application/json');
|
|
8881
|
-
return this.http.get(this.lynxUrl + 'metadata/' + projectID, { headers: headers });
|
|
8906
|
+
return this.http.get(this.lynxUrl + 'metadata/' + projectID, { headers: headers, params: this.params });
|
|
8882
8907
|
}
|
|
8883
8908
|
storeImage(attachment, projectID) {
|
|
8884
8909
|
const headers = new HttpHeaders();
|
|
8885
8910
|
headers.append('Content-type', 'application/json');
|
|
8886
8911
|
let url = this.lynxUrl + 'project/' + projectID + '/' + 'image';
|
|
8887
|
-
return this.http.post(url, attachment, { headers: headers });
|
|
8912
|
+
return this.http.post(url, attachment, { headers: headers, params: this.params });
|
|
8888
8913
|
}
|
|
8889
8914
|
tagImage(imageMetadata, imageID, projectID) {
|
|
8890
8915
|
const headers = new HttpHeaders();
|
|
8891
8916
|
headers.append('Content-type', 'application/json');
|
|
8892
8917
|
let url = this.lynxUrl + 'project/' + projectID + '/' + 'image/' + imageID + '/metadata';
|
|
8893
|
-
return this.http.post(url, imageMetadata, { headers: headers });
|
|
8918
|
+
return this.http.post(url, imageMetadata, { headers: headers, params: this.params });
|
|
8894
8919
|
}
|
|
8895
8920
|
downloadImage(imageID) {
|
|
8896
8921
|
const headers = new HttpHeaders();
|
|
8897
8922
|
headers.append('Content-type', 'application/json;odata=verbose');
|
|
8898
|
-
return this.http.get(this.lynxUrl + 'image' + '/' + imageID, { headers: headers, responseType: 'blob' });
|
|
8923
|
+
return this.http.get(this.lynxUrl + 'image' + '/' + imageID, { headers: headers, params: this.params, responseType: 'blob' });
|
|
8899
8924
|
}
|
|
8900
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LynxService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8925
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LynxService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }, { token: 'app' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8901
8926
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LynxService, providedIn: 'root' });
|
|
8902
8927
|
}
|
|
8903
8928
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LynxService, decorators: [{
|
|
@@ -8908,6 +8933,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
8908
8933
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
8909
8934
|
type: Inject,
|
|
8910
8935
|
args: ['ebizRootURL']
|
|
8936
|
+
}] }, { type: undefined, decorators: [{
|
|
8937
|
+
type: Inject,
|
|
8938
|
+
args: ['app']
|
|
8911
8939
|
}] }] });
|
|
8912
8940
|
|
|
8913
8941
|
const digitRegExp = /\d/;
|
|
@@ -8951,42 +8979,44 @@ function convertToMask(strNumber) {
|
|
|
8951
8979
|
|
|
8952
8980
|
class ParameterService {
|
|
8953
8981
|
http;
|
|
8954
|
-
ebizRootURL;
|
|
8955
8982
|
baseUrl = '/ebiz/api/v1/parameters';
|
|
8956
|
-
|
|
8983
|
+
params = {};
|
|
8984
|
+
constructor(http, ebizRootURL, app) {
|
|
8957
8985
|
this.http = http;
|
|
8958
|
-
this.ebizRootURL = ebizRootURL;
|
|
8959
8986
|
this.baseUrl = ebizRootURL + this.baseUrl;
|
|
8987
|
+
this.params = {
|
|
8988
|
+
'app': app
|
|
8989
|
+
};
|
|
8960
8990
|
}
|
|
8961
8991
|
retrieveParameterByName(parameterName) {
|
|
8962
8992
|
let url = this.baseUrl + '/names/' + parameterName;
|
|
8963
|
-
return this.http.get(url);
|
|
8993
|
+
return this.http.get(url, { params: this.params });
|
|
8964
8994
|
}
|
|
8965
8995
|
retrieveParameterByID(parameterID) {
|
|
8966
8996
|
let url = this.baseUrl + '/' + parameterID;
|
|
8967
|
-
return this.http.get(url);
|
|
8997
|
+
return this.http.get(url, { params: this.params });
|
|
8968
8998
|
}
|
|
8969
8999
|
createParameter(parameter) {
|
|
8970
9000
|
let url = this.baseUrl;
|
|
8971
|
-
return this.http.post(url, parameter);
|
|
9001
|
+
return this.http.post(url, parameter, { params: this.params });
|
|
8972
9002
|
}
|
|
8973
9003
|
deleteParameter(parameterID) {
|
|
8974
9004
|
let url = this.baseUrl + '/' + parameterID;
|
|
8975
|
-
return this.http.delete(url);
|
|
9005
|
+
return this.http.delete(url, { params: this.params });
|
|
8976
9006
|
}
|
|
8977
9007
|
deleteParameterByName(parameterName) {
|
|
8978
9008
|
let url = this.baseUrl + '/names/' + parameterName;
|
|
8979
|
-
return this.http.delete(url);
|
|
9009
|
+
return this.http.delete(url, { params: this.params });
|
|
8980
9010
|
}
|
|
8981
9011
|
retrieveParameterByPrefix(prefix) {
|
|
8982
9012
|
let url = this.baseUrl + '/namePrefix/' + prefix;
|
|
8983
|
-
return this.http.get(url);
|
|
9013
|
+
return this.http.get(url, { params: this.params });
|
|
8984
9014
|
}
|
|
8985
9015
|
updateParameter(parameter) {
|
|
8986
9016
|
let url = this.baseUrl + '/' + parameter.id;
|
|
8987
|
-
return this.http.put(url, parameter);
|
|
9017
|
+
return this.http.put(url, parameter, { params: this.params });
|
|
8988
9018
|
}
|
|
8989
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ParameterService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9019
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ParameterService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }, { token: 'app' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8990
9020
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ParameterService, providedIn: 'root' });
|
|
8991
9021
|
}
|
|
8992
9022
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ParameterService, decorators: [{
|
|
@@ -8997,6 +9027,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
8997
9027
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
8998
9028
|
type: Inject,
|
|
8999
9029
|
args: ['ebizRootURL']
|
|
9030
|
+
}] }, { type: undefined, decorators: [{
|
|
9031
|
+
type: Inject,
|
|
9032
|
+
args: ['app']
|
|
9000
9033
|
}] }] });
|
|
9001
9034
|
|
|
9002
9035
|
class ValidationService {
|
|
@@ -9132,51 +9165,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
9132
9165
|
|
|
9133
9166
|
class AccountService {
|
|
9134
9167
|
http;
|
|
9135
|
-
ebizRootURL;
|
|
9136
9168
|
URL = '/ebiz/api/v1/accounts';
|
|
9137
|
-
|
|
9169
|
+
params;
|
|
9170
|
+
constructor(http, ebizRootURL, app) {
|
|
9138
9171
|
this.http = http;
|
|
9139
|
-
this.ebizRootURL = ebizRootURL;
|
|
9140
9172
|
this.URL = ebizRootURL + this.URL;
|
|
9173
|
+
this.params = {
|
|
9174
|
+
'app': app
|
|
9175
|
+
};
|
|
9141
9176
|
}
|
|
9142
9177
|
retrieveRolesForService(serviceName) {
|
|
9143
|
-
return this.http.get(this.URL + "/roles/" + serviceName);
|
|
9178
|
+
return this.http.get(this.URL + "/roles/" + serviceName, { params: this.params });
|
|
9144
9179
|
}
|
|
9145
9180
|
retrieveUsersForService(serviceName) {
|
|
9146
|
-
return this.http.get(this.URL + "/users/service/" + serviceName);
|
|
9181
|
+
return this.http.get(this.URL + "/users/service/" + serviceName, { params: this.params });
|
|
9147
9182
|
}
|
|
9148
9183
|
searchAccounts(criteria) {
|
|
9149
|
-
return this.http.post(this.URL + "/search", criteria);
|
|
9184
|
+
return this.http.post(this.URL + "/search", criteria, { params: this.params });
|
|
9150
9185
|
}
|
|
9151
9186
|
retrieveServicesByServiceType(serviceType) {
|
|
9152
|
-
return this.http.get(`${this.URL}/services/serviceTypes/${serviceType}/list
|
|
9187
|
+
return this.http.get(`${this.URL}/services/serviceTypes/${serviceType}/list`, { params: this.params });
|
|
9153
9188
|
}
|
|
9154
9189
|
retrieveServiceNamesByServiceType(serviceType) {
|
|
9155
|
-
return this.http.get(`${this.URL}/services/serviceTypes/${serviceType}/names
|
|
9190
|
+
return this.http.get(`${this.URL}/services/serviceTypes/${serviceType}/names`, { params: this.params });
|
|
9156
9191
|
}
|
|
9157
9192
|
retrieveAllServices() {
|
|
9158
|
-
return this.http.get(`${this.URL}/services/serviceTypes/all
|
|
9193
|
+
return this.http.get(`${this.URL}/services/serviceTypes/all`, { params: this.params });
|
|
9159
9194
|
}
|
|
9160
9195
|
retrieveService(name) {
|
|
9161
|
-
return this.http.get(`${this.URL}/services/serviceTypes/${name}
|
|
9196
|
+
return this.http.get(`${this.URL}/services/serviceTypes/${name}`, { params: this.params });
|
|
9162
9197
|
}
|
|
9163
9198
|
retrieveAttestationByType(type) {
|
|
9164
|
-
return this.http.get(`${this.URL}/attestation/${type}
|
|
9199
|
+
return this.http.get(`${this.URL}/attestation/${type}`, { params: this.params });
|
|
9165
9200
|
}
|
|
9166
9201
|
updateServiceStatus(service) {
|
|
9167
|
-
return this.http.post(this.URL + "/updateServiceStatus", service);
|
|
9202
|
+
return this.http.post(this.URL + "/updateServiceStatus", service, { params: this.params });
|
|
9168
9203
|
}
|
|
9169
9204
|
searchAccountServiceAllows(criteria) {
|
|
9170
|
-
return this.http.post(this.URL + "/searchAccountServiceAllows", criteria);
|
|
9205
|
+
return this.http.post(this.URL + "/searchAccountServiceAllows", criteria, { params: this.params });
|
|
9171
9206
|
}
|
|
9172
9207
|
createAccountServiceAllow(accountServiceAllow) {
|
|
9173
|
-
return this.http.post(this.URL + '/createAccountServiceAllow/', accountServiceAllow);
|
|
9208
|
+
return this.http.post(this.URL + '/createAccountServiceAllow/', accountServiceAllow, { params: this.params });
|
|
9174
9209
|
}
|
|
9175
9210
|
deleteAccountServiceAllow(accountServiceAllow) {
|
|
9176
9211
|
return this.http
|
|
9177
|
-
.delete(this.URL + '/deleteAccountServiceAllow/service/' + accountServiceAllow.serviceName + '/account/' + accountServiceAllow.userID);
|
|
9212
|
+
.delete(this.URL + '/deleteAccountServiceAllow/service/' + accountServiceAllow.serviceName + '/account/' + accountServiceAllow.userID, { params: this.params });
|
|
9178
9213
|
}
|
|
9179
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AccountService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9214
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AccountService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }, { token: 'app' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9180
9215
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AccountService, providedIn: 'root' });
|
|
9181
9216
|
}
|
|
9182
9217
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AccountService, decorators: [{
|
|
@@ -9187,40 +9222,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
9187
9222
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
9188
9223
|
type: Inject,
|
|
9189
9224
|
args: ['ebizRootURL']
|
|
9225
|
+
}] }, { type: undefined, decorators: [{
|
|
9226
|
+
type: Inject,
|
|
9227
|
+
args: ['app']
|
|
9190
9228
|
}] }] });
|
|
9191
9229
|
|
|
9192
9230
|
class OepaReferenceService {
|
|
9193
9231
|
http;
|
|
9194
|
-
ebizRootURL;
|
|
9195
9232
|
countiesUrl = '/ebiz/api/v1/references/counties/state';
|
|
9196
9233
|
districtsUrl = '/ebiz/api/v1/references/districts';
|
|
9197
9234
|
doLaaTypessUrl = '/ebiz/api/v1/asbestos/references/doLaaTypes';
|
|
9198
|
-
|
|
9235
|
+
params = {};
|
|
9236
|
+
constructor(http, ebizRootURL, app) {
|
|
9199
9237
|
this.http = http;
|
|
9200
|
-
this.ebizRootURL = ebizRootURL;
|
|
9201
9238
|
this.countiesUrl = ebizRootURL + this.countiesUrl;
|
|
9202
9239
|
this.districtsUrl = ebizRootURL + this.districtsUrl;
|
|
9203
9240
|
this.doLaaTypessUrl = ebizRootURL + this.doLaaTypessUrl;
|
|
9241
|
+
this.params = {
|
|
9242
|
+
'app': app
|
|
9243
|
+
};
|
|
9204
9244
|
}
|
|
9205
9245
|
/**
|
|
9206
9246
|
* Retrieve counties
|
|
9207
9247
|
*/
|
|
9208
9248
|
getCounties(state) {
|
|
9209
|
-
return this.http.get(this.countiesUrl + '/' + state);
|
|
9249
|
+
return this.http.get(this.countiesUrl + '/' + state, { params: this.params });
|
|
9210
9250
|
}
|
|
9211
9251
|
/**
|
|
9212
9252
|
* Retrieve districts
|
|
9213
9253
|
*/
|
|
9214
9254
|
getDistricts() {
|
|
9215
|
-
return this.http.get(this.districtsUrl);
|
|
9255
|
+
return this.http.get(this.districtsUrl, { params: this.params });
|
|
9216
9256
|
}
|
|
9217
9257
|
/**
|
|
9218
9258
|
* Retrieve DO/LAAs
|
|
9219
9259
|
*/
|
|
9220
9260
|
getDoLaaTypes() {
|
|
9221
|
-
return this.http.get(this.doLaaTypessUrl);
|
|
9261
|
+
return this.http.get(this.doLaaTypessUrl, { params: this.params });
|
|
9222
9262
|
}
|
|
9223
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OepaReferenceService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9263
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OepaReferenceService, deps: [{ token: i1.HttpClient }, { token: 'ebizRootURL' }, { token: 'app' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9224
9264
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OepaReferenceService, providedIn: 'root' });
|
|
9225
9265
|
}
|
|
9226
9266
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OepaReferenceService, decorators: [{
|
|
@@ -9231,6 +9271,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
9231
9271
|
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
9232
9272
|
type: Inject,
|
|
9233
9273
|
args: ['ebizRootURL']
|
|
9274
|
+
}] }, { type: undefined, decorators: [{
|
|
9275
|
+
type: Inject,
|
|
9276
|
+
args: ['app']
|
|
9234
9277
|
}] }] });
|
|
9235
9278
|
|
|
9236
9279
|
/**
|