@csmart/ngc-smart-victim 1.18.12 → 1.18.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/esm2022/csmart-ngc-smart-victim.mjs +5 -0
  2. package/esm2022/lib/caseNote/caseNote.component.mjs +194 -0
  3. package/esm2022/lib/common-dialog/common-dialog.component.mjs +23 -0
  4. package/esm2022/lib/common-dialog/common-dialog.module.mjs +34 -0
  5. package/esm2022/lib/common-dialog/common-dialog.service.mjs +33 -0
  6. package/esm2022/lib/contact/contact.component.mjs +140 -0
  7. package/esm2022/lib/email.services.mjs +42 -0
  8. package/esm2022/lib/intake.service.mjs +57 -0
  9. package/esm2022/lib/safetyPlan/serviceProvider.component.mjs +99 -0
  10. package/esm2022/lib/safetyPlan/victimSafetyPlan.component.mjs +116 -0
  11. package/esm2022/lib/safetyPlan/victimSafetyPlanDetail.component.mjs +340 -0
  12. package/esm2022/lib/shared/app.shared.module.mjs +215 -0
  13. package/esm2022/lib/shared/validators/date.validator.mjs +59 -0
  14. package/esm2022/lib/shared/validators/index.mjs +2 -0
  15. package/esm2022/lib/smart-victim-delete-confirm.component.mjs +44 -0
  16. package/esm2022/lib/smart-victim-detail/smart-victim-detail.component.mjs +1155 -0
  17. package/esm2022/lib/smart-victim.component.mjs +317 -0
  18. package/esm2022/lib/smart-victim.model.mjs +142 -0
  19. package/esm2022/lib/smart-victim.module.mjs +128 -0
  20. package/esm2022/lib/smart-victim.service.mjs +370 -0
  21. package/esm2022/lib/victim-routing.module.mjs +41 -0
  22. package/esm2022/lib/victimSearch/VictimSearchFilter.mjs +3 -0
  23. package/esm2022/lib/victimSearch/victimSearchForm.component.mjs +38 -0
  24. package/esm2022/public-api.mjs +11 -0
  25. package/fesm2022/csmart-ngc-smart-victim.mjs +3342 -0
  26. package/fesm2022/csmart-ngc-smart-victim.mjs.map +1 -0
  27. package/index.d.ts +5 -0
  28. package/lib/caseNote/caseNote.component.d.ts +51 -0
  29. package/lib/common-dialog/common-dialog.component.d.ts +14 -0
  30. package/lib/common-dialog/common-dialog.module.d.ts +8 -0
  31. package/lib/common-dialog/common-dialog.service.d.ts +11 -0
  32. package/lib/contact/contact.component.d.ts +40 -0
  33. package/lib/email.services.d.ts +11 -0
  34. package/lib/intake.service.d.ts +57 -0
  35. package/lib/safetyPlan/serviceProvider.component.d.ts +19 -0
  36. package/lib/safetyPlan/victimSafetyPlan.component.d.ts +54 -0
  37. package/lib/safetyPlan/victimSafetyPlanDetail.component.d.ts +62 -0
  38. package/lib/shared/app.shared.module.d.ts +33 -0
  39. package/lib/shared/validators/date.validator.d.ts +9 -0
  40. package/lib/shared/validators/index.d.ts +1 -0
  41. package/lib/smart-victim-delete-confirm.component.d.ts +12 -0
  42. package/lib/smart-victim-detail/smart-victim-detail.component.d.ts +129 -0
  43. package/lib/smart-victim.component.d.ts +69 -0
  44. package/lib/smart-victim.model.d.ts +211 -0
  45. package/lib/smart-victim.module.d.ts +49 -0
  46. package/lib/smart-victim.service.d.ts +71 -0
  47. package/lib/victim-routing.module.d.ts +7 -0
  48. package/{src/lib/victimSearch/VictimSearchFilter.ts → lib/victimSearch/VictimSearchFilter.d.ts} +7 -9
  49. package/lib/victimSearch/victimSearchForm.component.d.ts +14 -0
  50. package/package.json +21 -6
  51. package/{src/public-api.ts → public-api.d.ts} +7 -12
  52. package/karma.conf.js +0 -32
  53. package/ng-package.json +0 -7
  54. package/src/lib/caseNote/caseNote.component.css +0 -22
  55. package/src/lib/caseNote/caseNote.component.html +0 -188
  56. package/src/lib/caseNote/caseNote.component.ts +0 -265
  57. package/src/lib/common-dialog/common-dialog.component.css +0 -10
  58. package/src/lib/common-dialog/common-dialog.component.html +0 -23
  59. package/src/lib/common-dialog/common-dialog.component.spec.ts +0 -25
  60. package/src/lib/common-dialog/common-dialog.component.ts +0 -21
  61. package/src/lib/common-dialog/common-dialog.module.ts +0 -22
  62. package/src/lib/common-dialog/common-dialog.service.ts +0 -35
  63. package/src/lib/contact/contact.component.css +0 -22
  64. package/src/lib/contact/contact.component.html +0 -124
  65. package/src/lib/contact/contact.component.ts +0 -176
  66. package/src/lib/email-notification.service.ts +0 -42
  67. package/src/lib/email.services.ts +0 -51
  68. package/src/lib/http.service.ts +0 -34
  69. package/src/lib/intake.service.ts +0 -82
  70. package/src/lib/loader.service.ts +0 -11
  71. package/src/lib/safetyPlan/serviceProvider.component.ts +0 -94
  72. package/src/lib/safetyPlan/victimSafetyPlan.component.css +0 -27
  73. package/src/lib/safetyPlan/victimSafetyPlan.component.html +0 -85
  74. package/src/lib/safetyPlan/victimSafetyPlan.component.ts +0 -178
  75. package/src/lib/safetyPlan/victimSafetyPlanDetail.component.html +0 -234
  76. package/src/lib/safetyPlan/victimSafetyPlanDetail.component.ts +0 -492
  77. package/src/lib/shared/app.shared.module.ts +0 -111
  78. package/src/lib/shared/validators/date.validator.ts +0 -73
  79. package/src/lib/shared/validators/index.ts +0 -1
  80. package/src/lib/smart-victim-delete-confirm.component.ts +0 -35
  81. package/src/lib/smart-victim-detail/smart-victim-detail.component.css +0 -43
  82. package/src/lib/smart-victim-detail/smart-victim-detail.component.html +0 -876
  83. package/src/lib/smart-victim-detail/smart-victim-detail.component.spec.ts +0 -25
  84. package/src/lib/smart-victim-detail/smart-victim-detail.component.ts +0 -1469
  85. package/src/lib/smart-victim.component.css +0 -245
  86. package/src/lib/smart-victim.component.html +0 -132
  87. package/src/lib/smart-victim.component.spec.ts +0 -25
  88. package/src/lib/smart-victim.component.ts +0 -333
  89. package/src/lib/smart-victim.model.ts +0 -311
  90. package/src/lib/smart-victim.module.ts +0 -110
  91. package/src/lib/smart-victim.service.spec.ts +0 -12
  92. package/src/lib/smart-victim.service.ts +0 -576
  93. package/src/lib/victim-routing.module.ts +0 -36
  94. package/src/lib/victimSearch/victimSearchForm.component.html +0 -35
  95. package/src/lib/victimSearch/victimSearchForm.component.ts +0 -41
  96. package/src/test.ts +0 -16
  97. package/tsconfig.lib.json +0 -36
  98. package/tsconfig.spec.json +0 -17
  99. package/tslint.json +0 -17
@@ -0,0 +1,128 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
4
+ // import {
5
+ // MatMenuModule, MatProgressBarModule,
6
+ // MatSidenavModule,
7
+ // MatPaginatorModule,
8
+ // } from '@angular/material';
9
+ import { MatButtonModule } from '@angular/material/button';
10
+ import { MatCheckboxModule } from '@angular/material/checkbox';
11
+ import { MatCardModule } from '@angular/material/card';
12
+ import { MatSliderModule } from '@angular/material/slider';
13
+ import { MatListModule } from '@angular/material/list';
14
+ import { MatIconModule } from '@angular/material/icon';
15
+ import { MatButtonToggleModule } from '@angular/material/button-toggle';
16
+ import { MatToolbarModule } from '@angular/material/toolbar';
17
+ import { MatRadioModule } from '@angular/material/radio';
18
+ import { MatInputModule } from '@angular/material/input';
19
+ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
20
+ import { MatDatepickerModule } from '@angular/material/datepicker';
21
+ import { MatNativeDateModule } from '@angular/material/core';
22
+ import { MatDialogModule } from '@angular/material/dialog';
23
+ import { MatExpansionModule } from '@angular/material/expansion';
24
+ import { MatSelectModule } from '@angular/material/select';
25
+ import { MatTableModule } from '@angular/material/table';
26
+ import { MatSortModule } from '@angular/material/sort';
27
+ import { MatGridListModule } from '@angular/material/grid-list';
28
+ import { MatTabsModule } from '@angular/material/tabs';
29
+ import { CdkTableModule } from '@angular/cdk/table';
30
+ import { LayoutModule } from '@angular/cdk/layout';
31
+ import { SmartAddressModule } from '@csmart/ngc-smart-address';
32
+ import { NgcSmartVictimComponent } from './smart-victim.component';
33
+ import { NgcSmartVictimService } from './smart-victim.service';
34
+ import { SmartVictimDetailComponent } from './smart-victim-detail/smart-victim-detail.component';
35
+ import { SmartVictimDeleteConfirmComponent } from './smart-victim-delete-confirm.component';
36
+ import { CommonDialogModule } from './common-dialog/common-dialog.module';
37
+ import { VictimRoutingModule } from './victim-routing.module';
38
+ import { CaseNoteComponent } from './caseNote/caseNote.component';
39
+ import { ContactComponent } from './contact/contact.component';
40
+ import { VictimSafetyPlanComponent } from './safetyPlan/victimSafetyPlan.component';
41
+ import { VictimSafetyPlanDetailComponent } from './safetyPlan/victimSafetyPlanDetail.component';
42
+ import { VictimSearchFormComponent } from './victimSearch/victimSearchForm.component';
43
+ import { ApolloModule } from 'apollo-angular';
44
+ import { SeriveProviderComponent } from './safetyPlan/serviceProvider.component';
45
+ import { NgcSmartCoreModule } from '@csmart/ngc-smart-core';
46
+ import { MatMenuModule } from '@angular/material/menu';
47
+ import { MatProgressBarModule } from '@angular/material/progress-bar';
48
+ import { MatPaginatorModule } from '@angular/material/paginator';
49
+ import { MatSidenavModule } from '@angular/material/sidenav';
50
+ import { SmartUiModule } from '@csmart/smart-ui';
51
+ import * as i0 from "@angular/core";
52
+ const COMPONENTS = [
53
+ NgcSmartVictimComponent,
54
+ SmartVictimDetailComponent,
55
+ SmartVictimDeleteConfirmComponent,
56
+ ];
57
+ const ENTRY_COMPONENTS = [
58
+ SmartVictimDeleteConfirmComponent,
59
+ ];
60
+ const BASE_MODULES = [
61
+ CommonModule,
62
+ ReactiveFormsModule
63
+ ];
64
+ const CORE_MODULES = [NgcSmartCoreModule, SmartAddressModule, SmartUiModule,];
65
+ const MATERIAL_MODULES = [
66
+ MatButtonModule, MatCheckboxModule, MatRadioModule, MatSliderModule,
67
+ MatCardModule, MatSlideToggleModule,
68
+ MatListModule, MatIconModule, MatButtonToggleModule,
69
+ MatToolbarModule, MatTabsModule, MatExpansionModule,
70
+ MatMenuModule, MatInputModule, MatProgressBarModule,
71
+ MatDatepickerModule, MatNativeDateModule, MatPaginatorModule,
72
+ MatDialogModule, MatSidenavModule, MatSelectModule,
73
+ MatTableModule, MatSortModule, MatGridListModule, CdkTableModule, LayoutModule,
74
+ ];
75
+ export class NgcSmartVictimModule {
76
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
77
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimModule, declarations: [NgcSmartVictimComponent,
78
+ SmartVictimDetailComponent,
79
+ SmartVictimDeleteConfirmComponent, CaseNoteComponent,
80
+ ContactComponent,
81
+ VictimSafetyPlanComponent,
82
+ VictimSafetyPlanDetailComponent,
83
+ VictimSearchFormComponent,
84
+ SeriveProviderComponent], imports: [CommonModule,
85
+ ReactiveFormsModule, MatButtonModule, MatCheckboxModule, MatRadioModule, MatSliderModule,
86
+ MatCardModule, MatSlideToggleModule,
87
+ MatListModule, MatIconModule, MatButtonToggleModule,
88
+ MatToolbarModule, MatTabsModule, MatExpansionModule,
89
+ MatMenuModule, MatInputModule, MatProgressBarModule,
90
+ MatDatepickerModule, MatNativeDateModule, MatPaginatorModule,
91
+ MatDialogModule, MatSidenavModule, MatSelectModule,
92
+ MatTableModule, MatSortModule, MatGridListModule, CdkTableModule, LayoutModule, NgcSmartCoreModule, SmartAddressModule, SmartUiModule, CommonDialogModule,
93
+ FormsModule,
94
+ VictimRoutingModule,
95
+ ApolloModule], exports: [NgcSmartVictimComponent,
96
+ SmartVictimDetailComponent,
97
+ SmartVictimDeleteConfirmComponent, ApolloModule] }); }
98
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimModule, providers: [NgcSmartVictimService], imports: [BASE_MODULES, MATERIAL_MODULES, CORE_MODULES, CommonDialogModule,
99
+ FormsModule,
100
+ VictimRoutingModule,
101
+ ApolloModule, ApolloModule] }); }
102
+ }
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimModule, decorators: [{
104
+ type: NgModule,
105
+ args: [{
106
+ declarations: [...COMPONENTS,
107
+ CaseNoteComponent,
108
+ ContactComponent,
109
+ VictimSafetyPlanComponent,
110
+ VictimSafetyPlanDetailComponent,
111
+ VictimSearchFormComponent,
112
+ SeriveProviderComponent
113
+ ],
114
+ imports: [
115
+ ...BASE_MODULES,
116
+ ...MATERIAL_MODULES,
117
+ ...CORE_MODULES,
118
+ CommonDialogModule,
119
+ FormsModule,
120
+ VictimRoutingModule,
121
+ ApolloModule,
122
+ //SharedModule
123
+ ],
124
+ exports: [...COMPONENTS, ApolloModule],
125
+ providers: [NgcSmartVictimService]
126
+ }]
127
+ }] });
128
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQtdmljdGltLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nYy1zbWFydC12aWN0aW0vc3JjL2xpYi9zbWFydC12aWN0aW0ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBQyxXQUFXLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUNoRSxXQUFXO0FBR1gseUNBQXlDO0FBRXpDLHNCQUFzQjtBQUN0Qix1QkFBdUI7QUFDdkIsOEJBQThCO0FBRTlCLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUMvRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDdkQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sRUFBRSx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Lk1BVEVSSUFMX01PRFVMRVMsXHJcbiAgICAgICAgLi4uQ09SRV9NT0RVTEVTLFxyXG4gICAgICAgIENvbW1vbkRpYWxvZ01vZHVsZSxcclxuICAgICAgICBGb3Jtc01vZHVsZSxcclxuICAgICAgICBWaWN0aW1Sb3V0aW5nTW9kdWxlLFxyXG4gICAgICAgIEFwb2xsb01vZHVsZSxcclxuICAgICAgICAvL1NoYXJlZE1vZHVsZVxyXG4gICAgICAgIFxyXG4gICAgXSxcclxuICAgIGV4cG9ydHM6IFsuLi5DT01QT05FTlRTLCBBcG9sbG9Nb2R1bGVdLFxyXG4gICAgcHJvdmlkZXJzOiBbTmdjU21hcnRWaWN0aW1TZXJ2aWNlXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgTmdjU21hcnRWaWN0aW1Nb2R1bGUgeyB9XHJcbiJdfQ==
@@ -0,0 +1,370 @@
1
+ import { HttpClient, HttpHeaders } from '@angular/common/http';
2
+ import { Injectable, Inject } from '@angular/core';
3
+ import { SMART_LOOKUP_SERVICE_URL, SMART_OFFENDER_SERVICE_URL, SMART_VICTIM_SERVICE_URL } from './smart-victim.model';
4
+ import { throwError as observableThrowError } from 'rxjs';
5
+ import { map, catchError } from 'rxjs/operators';
6
+ import { Apollo } from 'apollo-angular';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@angular/common/http";
9
+ import * as i2 from "apollo-angular";
10
+ const headers = new HttpHeaders({ 'Content-Type': 'application/json' });
11
+ const options = { headers: headers };
12
+ export class NgcSmartVictimService {
13
+ constructor(http, smartOffenderServiceUrl, smartLookupServiceUrl, smartVictimServiceUrl, apollo) {
14
+ this.http = http;
15
+ this.smartOffenderServiceUrl = smartOffenderServiceUrl;
16
+ this.smartLookupServiceUrl = smartLookupServiceUrl;
17
+ this.smartVictimServiceUrl = smartVictimServiceUrl;
18
+ this.apollo = apollo;
19
+ this.serviceApiUrl = 'https://smart-service-test.azurewebsites.net/graphql';
20
+ }
21
+ // getVictimInsurances(offenderId: any) {
22
+ // return this.http.get(this.smartOffenderServiceUrl + '/VictimInsurances/?offenderId=' + offenderId).pipe();
23
+ // }
24
+ // getVictimInsurance(id: any) {
25
+ // return this.http.get(this.smartOffenderServiceUrl + '/VictimInsurances/?id=' + id).pipe();
26
+ // }
27
+ // postVictimInsurance(val: any) {
28
+ // return this.http.post(this.smartOffenderServiceUrl + '/VictimInsurances', val).pipe();
29
+ // }
30
+ // putVictimInsurance(id: any, val: any) {
31
+ // return this.http.put(this.smartOffenderServiceUrl + '/VictimInsurances/?id=' + id, val).pipe();
32
+ // }
33
+ // deleteVictimInsurance(id: any) {
34
+ // return this.http.delete(this.smartOffenderServiceUrl + '/VictimInsurances/?id=' + id).pipe();
35
+ // }
36
+ // getVictimInsuranceTypes() {
37
+ // return this.http.get(this.smartLookupServiceUrl + '/VictimInsuranceTypes').pipe();
38
+ // }
39
+ // getVictimInsurancePolicyHolders() {
40
+ // return this.http.get(this.smartLookupServiceUrl + '/VictimInsurancePolicyHolders').pipe();
41
+ // }
42
+ // getVictimInsuranceSwitchReasons() {
43
+ // return this.http.get(this.smartLookupServiceUrl + '/VictimInsuranceSwitchReasons').pipe();
44
+ // }
45
+ // getVictimInsuranceProviders() {
46
+ // return this.http.get(this.smartLookupServiceUrl + '/VictimInsuranceProvider').pipe();
47
+ // }
48
+ // getVictimInsuranceProvider(id) {
49
+ // return this.http.get(this.smartLookupServiceUrl + '/VictimInsuranceProviders/' + id).pipe();
50
+ // }
51
+ // postProviderInformation(val: any) {
52
+ // return this.http.post(this.smartLookupServiceUrl + '/VictimInsuranceProviders', val).pipe();
53
+ // }
54
+ getCurrentHousing(offenderId) {
55
+ return this.http
56
+ .get(this.smartOffenderServiceUrl + 'Housings/current/' + offenderId)
57
+ .pipe();
58
+ }
59
+ handleError(error) {
60
+ console.error(error);
61
+ return observableThrowError(error.json().error || 'Server error');
62
+ }
63
+ getDrugsTypes() {
64
+ return this.http.get(this.smartLookupServiceUrl + 'DrugTypes', options).pipe(map(res => res));
65
+ }
66
+ getDocketList(offenderId) {
67
+ const queryString = `
68
+ {
69
+ findDockets(input: { where: { offenderId:${offenderId} } }) {
70
+ totalCount
71
+ message
72
+ data {
73
+ docketId
74
+ docketNumber
75
+
76
+ }
77
+ }
78
+ }`;
79
+ return this.http.post(this.serviceApiUrl, { query: queryString }).pipe(map(({ data }) => {
80
+ console.log('dockets for this offender:', data.findDockets.data);
81
+ return data.findDockets.data;
82
+ }));
83
+ }
84
+ getSupportTypes() {
85
+ return this.http.get(this.smartLookupServiceUrl + 'VictimSupportTypes', options).pipe(map(res => res));
86
+ }
87
+ getPrefixes() {
88
+ return this.http.get(this.smartLookupServiceUrl + 'Prefixes', options).pipe(map(res => res));
89
+ }
90
+ getSuffixes() {
91
+ return this.http.get(this.smartLookupServiceUrl + 'Suffixes', options).pipe(map(res => res));
92
+ }
93
+ getRelationshipTypes() {
94
+ return this.http.get(this.smartLookupServiceUrl + 'RelationshipTypes', options).pipe(map(res => res));
95
+ }
96
+ getGenders() {
97
+ return this.http.get(this.smartLookupServiceUrl + 'Genders', options).pipe(map(res => res));
98
+ }
99
+ getWeaponTypes() {
100
+ return this.http.get(this.smartLookupServiceUrl + 'WeaponTypes', options).pipe(map(res => res));
101
+ }
102
+ getFlagOptionYesNoUnknowns() {
103
+ return this.http.get(this.smartLookupServiceUrl + 'FlagOptionYesNoUnknowns', options).pipe(map(res => {
104
+ return res;
105
+ }));
106
+ }
107
+ getContactTypes() {
108
+ return this.http.get(this.smartLookupServiceUrl + 'ContactTypes', options).pipe(map(res => {
109
+ return res;
110
+ }));
111
+ }
112
+ getContactMethods() {
113
+ return this.http.get(this.smartLookupServiceUrl + 'VictimContactMethods', options).pipe(map(res => {
114
+ return res;
115
+ }));
116
+ }
117
+ getContactBys() {
118
+ return this.http.get(this.smartLookupServiceUrl + 'VictimContactPurposes', options).pipe(map(res => {
119
+ return res;
120
+ }));
121
+ }
122
+ getVictimContactPurposes() {
123
+ return this.http.get(this.smartLookupServiceUrl + 'VictimContactPurposes', options).pipe(map(res => {
124
+ return res;
125
+ }));
126
+ }
127
+ getVictimServiceTypes() {
128
+ return this.http.get(this.smartLookupServiceUrl + 'VictimServiceTypes', options).pipe(map(res => {
129
+ return res;
130
+ }));
131
+ }
132
+ getVictimServiceStatus() {
133
+ return this.http.get(this.smartLookupServiceUrl + 'VictimServiceStatus', options).pipe(map(res => {
134
+ return res;
135
+ }));
136
+ }
137
+ getvVictimServiceTypeProgramProviders() {
138
+ return this.http.get(this.smartLookupServiceUrl + 'vVictimServiceTypeProgramProviders', options).pipe(map(res => {
139
+ return res;
140
+ }));
141
+ }
142
+ getVictim(val) {
143
+ return this.http.get(this.smartVictimServiceUrl + 'Victims/' + val, options).pipe(map(res => {
144
+ console.log('victim return data');
145
+ console.log(res);
146
+ return res;
147
+ }));
148
+ }
149
+ getVictimAdvocate(val) {
150
+ return this.http.get(this.smartVictimServiceUrl + 'VictimAdvocates/' + val, options).pipe(map(res => {
151
+ return res;
152
+ }));
153
+ }
154
+ getVictimGuardian(val) {
155
+ return this.http.get(this.smartVictimServiceUrl + 'VictimGuardians/' + val, options).pipe(map(res => {
156
+ return res;
157
+ }));
158
+ }
159
+ postVictims(val) {
160
+ const tempVal = JSON.stringify(val);
161
+ return this.http.post(this.smartVictimServiceUrl + 'Victims', tempVal, options).pipe(map(res => { return res; }));
162
+ }
163
+ putVictims(id, val) {
164
+ const tempVal = JSON.stringify(val);
165
+ return this.http.put(this.smartVictimServiceUrl + 'Victims/' + id, tempVal, options).pipe(map(res => { return res; }));
166
+ }
167
+ putVictimAdvocate(id, val) {
168
+ let body;
169
+ body = JSON.stringify(val);
170
+ return this.http.put(this.smartVictimServiceUrl + 'VictimAdvocates/' + id, body, options).pipe(map(res => { return res; }));
171
+ }
172
+ postVictimAdvocate(id, val) {
173
+ const tempVal = JSON.stringify(val);
174
+ return this.http.post(this.smartVictimServiceUrl + 'VictimAdvocates/' + id, tempVal, options).pipe(map(res => { return res; }));
175
+ }
176
+ putVictimGuardian(id, val) {
177
+ console.log('update victim guardian');
178
+ console.log(val);
179
+ const tempVal = JSON.stringify(val);
180
+ return this.http.put(this.smartVictimServiceUrl + 'VictimGuardians/' + id, tempVal, options).pipe(map(res => { return res; }));
181
+ }
182
+ postVictimGuardian(id, val) {
183
+ const tempVal = JSON.stringify(val);
184
+ return this.http.post(this.smartVictimServiceUrl + 'VictimGuardians/' + id, tempVal, options).pipe(map(res => { return res; }));
185
+ }
186
+ getVictimDrugUse(val) {
187
+ return this.http.get(this.smartVictimServiceUrl + 'VictimDrugUses/' + val, options).pipe(map((res) => {
188
+ return res;
189
+ }));
190
+ }
191
+ putVictimDrugUse(id, val) {
192
+ const tempVal = JSON.stringify(val);
193
+ return this.http.put(this.smartVictimServiceUrl + 'VictimDrugUses/' + id, tempVal, options).pipe(map(res => { return res; }));
194
+ }
195
+ postVictimDrugUse(id, val) {
196
+ const tempVal = JSON.stringify(val);
197
+ return this.http.post(this.smartVictimServiceUrl + 'VictimDrugUses/' + id, tempVal, options).pipe(map(res => { return res; }));
198
+ }
199
+ putVictimWeaponUse(id, val) {
200
+ const tempVal = JSON.stringify(val);
201
+ return this.http.put(this.smartVictimServiceUrl + 'VictimWeaponUses/' + id, tempVal, options).pipe(map(res => { return res; }));
202
+ }
203
+ postVictimWeaponUse(id, val) {
204
+ const tempVal = JSON.stringify(val);
205
+ return this.http.post(this.smartVictimServiceUrl + 'VictimWeaponUses/' + id, tempVal, options).pipe(map(res => { return res; }));
206
+ }
207
+ putVictimSupport(id, val) {
208
+ const tempVal = JSON.stringify(val);
209
+ return this.http.put(this.smartVictimServiceUrl + 'VictimSupports/' + id, tempVal, options).pipe(map(res => { return res; }));
210
+ }
211
+ postVictimSupport(id, val) {
212
+ const tempVal = JSON.stringify(val);
213
+ return this.http.post(this.smartVictimServiceUrl + 'VictimSupports/' + id, tempVal, options).pipe(map(res => { return res; }));
214
+ }
215
+ /*
216
+ putVictimRelationship(id: any, val: any) {
217
+ const tempVal = JSON.stringify(val);
218
+ return this.http.put(this.smartVictimServiceUrl + 'VictimRelationships/' + id, tempVal, options).pipe
219
+ (
220
+ map(res => { return res;})
221
+ );
222
+ }
223
+
224
+ postVictimRelationship(id: any, val: any) {
225
+ const tempVal = JSON.stringify(val);
226
+ return this.http.post(this.smartVictimServiceUrl + 'VictimRelationships/' + id, tempVal, options).pipe
227
+ (
228
+ map(res => { return res;})
229
+ );
230
+ }
231
+
232
+ */
233
+ deleteVictims(val, staffId) {
234
+ return this.http.delete(this.smartVictimServiceUrl + 'Victims/' + val + '?staffId=' + staffId, options).pipe(map(res => { return res; }));
235
+ }
236
+ // //==============Victim Serive===================================
237
+ getVictims(offenderId) {
238
+ return this.http.get(this.smartVictimServiceUrl + 'Victims/offender/' + offenderId)
239
+ .pipe(map((res) => {
240
+ return res;
241
+ }), catchError(this.handleError));
242
+ }
243
+ getVictimsByFilter(filter) {
244
+ return this.http
245
+ .post(this.smartVictimServiceUrl + '/Victims', JSON.stringify(filter), { headers: headers })
246
+ .pipe(map((res) => {
247
+ return res;
248
+ }), catchError(this.handleError));
249
+ }
250
+ getVictimListByFilter(filter) {
251
+ console.log('filer in service');
252
+ console.log(filter);
253
+ return this.http
254
+ .post(this.smartVictimServiceUrl + 'vVictims/Filter', JSON.stringify(filter), options)
255
+ .pipe();
256
+ }
257
+ getCasetNotes(victimId) {
258
+ return this.http.get(this.smartVictimServiceUrl + 'VictimCaseNotes/victim/' + victimId)
259
+ .pipe(map((res) => {
260
+ return res;
261
+ }), catchError(this.handleError));
262
+ }
263
+ addCaseNote(caseNote) {
264
+ let body;
265
+ body = JSON.stringify(caseNote);
266
+ return this.http
267
+ .post(this.smartVictimServiceUrl + 'VictimCaseNotes/', body, options);
268
+ }
269
+ updateCaseNote(caseNote) {
270
+ let body;
271
+ body = JSON.stringify(caseNote);
272
+ return this.http
273
+ .put(this.smartVictimServiceUrl + 'VictimCaseNotes/' + caseNote.victimCaseNoteId, body, options);
274
+ }
275
+ deleteCaseNote(id, staffId) {
276
+ return this.http.delete(`${this.smartVictimServiceUrl}VictimCaseNotes/${id}?staffId=${staffId}`);
277
+ }
278
+ getContacts(victimId) {
279
+ return this.http.get(this.smartVictimServiceUrl + 'VictimContacts/victim/' + victimId)
280
+ .pipe(map((res) => {
281
+ return res;
282
+ }), catchError(this.handleError));
283
+ }
284
+ addContact(contact) {
285
+ let body;
286
+ body = JSON.stringify(contact);
287
+ return this.http
288
+ .post(this.smartVictimServiceUrl + 'VictimContacts/', body, options);
289
+ }
290
+ updateContact(contact) {
291
+ let body;
292
+ body = JSON.stringify(contact);
293
+ return this.http
294
+ .put(this.smartVictimServiceUrl + 'VictimContacts/' + contact.victimContactId, body, options);
295
+ }
296
+ getSafetyPlans(victimId) {
297
+ return this.http.get(this.smartVictimServiceUrl + 'vVictimServiceLists/victim/' + victimId)
298
+ .pipe(map((res) => {
299
+ return res;
300
+ }), catchError(this.handleError));
301
+ }
302
+ getVictimServices(victimServiceId) {
303
+ return this.http.get(this.smartVictimServiceUrl + 'vVictimServiceLists/victimServiceId/' + victimServiceId)
304
+ .pipe(map((res) => {
305
+ return res;
306
+ }), catchError(this.handleError));
307
+ }
308
+ getVictimServiceDetail(victimServiceId) {
309
+ return this.http.get(this.smartVictimServiceUrl + 'VictimServiceDetails/' + victimServiceId)
310
+ .pipe(map((res) => {
311
+ return res;
312
+ }), catchError(this.handleError));
313
+ }
314
+ addSafetyPlan(victimSafetyPlan) {
315
+ let body;
316
+ body = JSON.stringify(victimSafetyPlan);
317
+ return this.http
318
+ .post(this.smartVictimServiceUrl + 'VictimServices/', body, options)
319
+ .pipe();
320
+ }
321
+ updateSafetyPlan(victimSafetyPlan) {
322
+ let body;
323
+ body = JSON.stringify(victimSafetyPlan);
324
+ return this.http
325
+ .put(this.smartVictimServiceUrl + 'VictimServices/' + victimSafetyPlan.victimServiceId, body, options);
326
+ }
327
+ addVictimServiceStatus(victimServiceStatusHistory) {
328
+ let body;
329
+ body = JSON.stringify(victimServiceStatusHistory);
330
+ return this.http
331
+ .post(this.smartVictimServiceUrl + 'VictimServiceStatusHistories/', body, options);
332
+ }
333
+ getServiceStatusHistories(victimServiceId) {
334
+ return this.http.get(this.smartVictimServiceUrl + 'VictimServiceStatusHistories/victimServiceId/' + victimServiceId)
335
+ .pipe(map((res) => {
336
+ return res;
337
+ }), catchError(this.handleError));
338
+ }
339
+ deleteSafetyPlan(victimServiceId, staffId) {
340
+ return this.http.delete(`${this.smartVictimServiceUrl}VictimServices/${victimServiceId}?staffId=${staffId}`);
341
+ }
342
+ addPlanProvider(victimServiceDetail) {
343
+ let body;
344
+ body = JSON.stringify(victimServiceDetail);
345
+ return this.http
346
+ .post(this.smartVictimServiceUrl + 'VictimServiceDetails/', body, options)
347
+ .pipe();
348
+ }
349
+ deleteProvider(victimProgramProviderId, staffId) {
350
+ return this.http.delete(`${this.smartVictimServiceUrl}VictimServiceDetails/${victimProgramProviderId}?staffId=${staffId}`);
351
+ }
352
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimService, deps: [{ token: i1.HttpClient }, { token: SMART_OFFENDER_SERVICE_URL }, { token: SMART_LOOKUP_SERVICE_URL }, { token: SMART_VICTIM_SERVICE_URL }, { token: i2.Apollo }], target: i0.ɵɵFactoryTarget.Injectable }); }
353
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimService, providedIn: 'root' }); }
354
+ }
355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimService, decorators: [{
356
+ type: Injectable,
357
+ args: [{
358
+ providedIn: 'root'
359
+ }]
360
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
361
+ type: Inject,
362
+ args: [SMART_OFFENDER_SERVICE_URL]
363
+ }] }, { type: undefined, decorators: [{
364
+ type: Inject,
365
+ args: [SMART_LOOKUP_SERVICE_URL]
366
+ }] }, { type: undefined, decorators: [{
367
+ type: Inject,
368
+ args: [SMART_VICTIM_SERVICE_URL]
369
+ }] }, { type: i2.Apollo }] });
370
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQtdmljdGltLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ2Mtc21hcnQtdmljdGltL3NyYy9saWIvc21hcnQtdmljdGltLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBZ0IsV0FBVyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDN0UsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLDBCQUEwQixFQUFDLHdCQUF3QixFQUVXLE1BQU0sc0JBQXNCLENBQUM7QUFDOUgsT0FBTyxFQUFjLFVBQVUsSUFBSSxvQkFBb0IsRUFBQyxNQUFNLE1BQU0sQ0FBQztBQUNyRSxPQUFPLEVBQUUsR0FBRyxFQUFDLFVBQVUsRUFBVSxNQUFNLGdCQUFnQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7OztBQUl4QyxNQUFNLE9BQU8sR0FBRyxJQUFJLFdBQVcsQ0FBQyxFQUFFLGNBQWMsRUFBRSxrQkFBa0IsRUFBRSxDQUFDLENBQUM7QUFDeEUsTUFBTSxPQUFPLEdBQUcsRUFBRSxPQUFPLEVBQUUsT0FBTyxFQUFFLENBQUM7QUFLckMsTUFBTSxPQUFPLHFCQUFxQjtJQUVoQyxZQUFvQixJQUFnQixFQUVVLHVCQUErQixFQUNqQyxxQkFBNkIsR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Rpb25zKS5waXBlXHJcbiAgKFxyXG4gIG1hcChyZXMgPT4geyByZXR1cm4gcmVzO30pXHJcbiAgKTtcclxufVxyXG5cclxuXHJcbi8vIC8vPT09PT09PT09PT09PT1WaWN0aW0gU2VyaXZlPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cclxuXHJcbmdldFZpY3RpbXMob2ZmZW5kZXJJZDogbnVtYmVyKTogT2JzZXJ2YWJsZSA8VmljdGltW10+IHtcclxuXHJcbiAgcmV0dXJuIHRoaXMuaHR0cC5nZXQodGhpcy5zbWFydFZpY3RpbVNlcnZpY2VVcmwgICsgJ1ZpY3RpbXMvb2ZmZW5kZXIvJyArIG9mZmVuZGVySWQpXHJcbiAgLnBpcGUobWFwKChyZXM6IFZpY3RpbVtdKSA9PiB7XHJcbiAgICBcclxuICAgICAgcmV0dXJuIHJlcztcclxuICB9KVxyXG4gICxjYXRjaEVycm9yKHRoaXMuaGFuZGxlRXJyb3IpKTtcclxufVxyXG5cclxuZ2V0VmljdGltc0J5RmlsdGVyKGZpbHRlcjogVmljdGltTGlzdEZpbHRlcik6IE9ic2VydmFibGU8VmljdGltW10+e1xyXG4gIHJldHVybiB0aGlzLmh0dHBcclxuICAgICAgICAgIC5wb3N0KHRoaXMuc21hcnRWaWN0aW1TZXJ2aWNlVXJsICsgJy9WaWN0aW1zJywgSlNPTi5zdHJpbmdpZnkoZmlsdGVyKSwgeyBoZWFkZXJzOiBoZWFkZXJzIH0pXHJcbiAgICAgICAgICAucGlwZShtYXAoKHJlczogVmljdGltW10pID0+IHtcclxuICAgICAgICAgICAgICByZXR1cm4gcmVzO1xyXG4gICAgICAgICAgfSlcclxuICAgICAgICAgICxjYXRjaEVycm9yKHRoaXMuaGFuZGxlRXJyb3IpKTtcclxufVxyXG5cclxuZ2V0VmljdGltTGlzdEJ5RmlsdGVyKGZpbHRlcjogVmljdGltTGlzdEZpbHRlcikgXHJcbntcclxuICBjb25zb2xlLmxvZygnZmlsZXIgaW4gc2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ICAgIHJldHVybiAgcmVzO1xyXG4gICAgICB9KVxyXG4gICAgICAsY2F0Y2hFcnJvcih0aGlzLmhhbmRsZUVycm9yKSk7XHJcbiAgXHJcbiAgfVxyXG5cclxuZ2V0VmljdGltU2VydmljZURldGFpbCh2aWN0aW1TZXJ2aWNlSWQ6IG51bWJlcik6IE9ic2VydmFibGUgPFZpY3RpbVNlcnZpY2VEZXRhaWxbXT4ge1xyXG5cclxuICByZXR1cm4gdGhpcy5odHRwLmdldCh0aGlzLnNtYXJ0VmljdGltU2VydmljZVVybCArICdWaWN0aW1TZXJ2aWNlRGV0YWlscy8nICsgdmljdGltU2VydmljZUlkKVxyXG4gIC5waXBlKG1hcCgocmVzOiBWaWN0aW1TZXJ2aWNlRGV0YWlsW10pID0+IHtcclxuICBcclxuICAgICAgcmV0dXJuIHJlcztcclxuICB9KVxyXG4gICxjYXRjaEVycm9yKHRoaXMuaGFuZGxlRXJyb3IpKTtcclxuXHJcbn1cclxuYWRkU2FmZXR5UGxhbih2aWN0aW1TYWZldHlQbGFuOiBWaWN0aW1TYWZldHlQbGFuKSB7XHJcblxyXG4gIGxldCBib2R5OiBzdHJpbmc7XHJcbiAgICAgICAgICBib2R5ID0gSlNPTi5zdHJpbmdpZnkodmljdGltU2FmZXR5UGxhbik7XHJcbiAgICAgICAgICByZXR1cm4gdGhpcy5odHRwXHJcbiAgICAgICAgICAucG9zdCh0aGlzLnNtYXJ0VmljdGltU2VydmljZVVybCArICdWaWN0aW1TZXJ2aWNlcy8nLCBib2R5LCBvcHRpb25zKVxyXG4gICAgICAgICAgLnBpcGUoKTtcclxuICBcclxuICB9XHJcbnVwZGF0ZVNhZmV0eVBsYW4odmljdGltU2FmZXR5UGxhbjogVmljdGltU2FmZXR5UGxhbil7XHJcblxyXG4gICAgICBsZXQgYm9keTogc3RyaW5nO1xyXG4gICAgICBib2R5ID0gSlNPTi5zdHJpbmdpZnkodmljdGltU2FmZXR5UGxhbik7XHJcbiAgICAgIHJldHVybiB0a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