tango-app-ui-manage-tickets 3.7.0-beta.16 → 3.7.0-beta.18

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 (91) hide show
  1. package/esm2022/lib/components/add-csm-modal/add-csm-modal.component.mjs +98 -0
  2. package/esm2022/lib/components/audit-log/audit-log.component.mjs +11 -0
  3. package/esm2022/lib/components/audit-metrics/audit-metrics.component.mjs +298 -0
  4. package/esm2022/lib/components/comment-model/comment-model.component.mjs +58 -0
  5. package/esm2022/lib/components/count/count.component.mjs +89 -0
  6. package/esm2022/lib/components/footfall-dic/footfall-dic.component.mjs +983 -0
  7. package/esm2022/lib/components/group-select/group-select.component.mjs +155 -0
  8. package/esm2022/lib/components/re-trigger/re-trigger.component.mjs +96 -0
  9. package/esm2022/lib/components/reactive-select/reactive-select.component.mjs +108 -0
  10. package/esm2022/lib/components/tango-manage-tickets/tango-manage-tickets.component.mjs +127 -0
  11. package/esm2022/lib/components/tickets/tickets.component.mjs +793 -0
  12. package/esm2022/lib/services/excel.service.mjs +45 -0
  13. package/esm2022/lib/services/ticket.service.mjs +161 -0
  14. package/esm2022/lib/tango-manage-tickets-routing.module.mjs +24 -0
  15. package/esm2022/lib/tango-manage-tickets.module.mjs +54 -0
  16. package/esm2022/public-api.mjs +6 -0
  17. package/esm2022/tango-app-ui-manage-tickets.mjs +5 -0
  18. package/fesm2022/tango-app-ui-manage-tickets.mjs +3006 -0
  19. package/fesm2022/tango-app-ui-manage-tickets.mjs.map +1 -0
  20. package/index.d.ts +5 -0
  21. package/lib/components/add-csm-modal/add-csm-modal.component.d.ts +30 -0
  22. package/lib/components/audit-log/audit-log.component.d.ts +5 -0
  23. package/lib/components/audit-metrics/audit-metrics.component.d.ts +59 -0
  24. package/lib/components/comment-model/comment-model.component.d.ts +17 -0
  25. package/lib/components/count/count.component.d.ts +23 -0
  26. package/lib/components/footfall-dic/footfall-dic.component.d.ts +139 -0
  27. package/lib/components/group-select/group-select.component.d.ts +33 -0
  28. package/lib/components/re-trigger/re-trigger.component.d.ts +32 -0
  29. package/lib/components/reactive-select/reactive-select.component.d.ts +32 -0
  30. package/lib/components/tango-manage-tickets/tango-manage-tickets.component.d.ts +27 -0
  31. package/lib/components/tickets/tickets.component.d.ts +84 -0
  32. package/lib/services/excel.service.d.ts +10 -0
  33. package/lib/services/ticket.service.d.ts +49 -0
  34. package/lib/tango-manage-tickets-routing.module.d.ts +7 -0
  35. package/lib/tango-manage-tickets.module.d.ts +21 -0
  36. package/package.json +25 -12
  37. package/{src/public-api.ts → public-api.d.ts} +2 -8
  38. package/.eslintrc.json +0 -37
  39. package/ng-package.json +0 -7
  40. package/src/lib/components/add-csm-modal/add-csm-modal.component.html +0 -32
  41. package/src/lib/components/add-csm-modal/add-csm-modal.component.scss +0 -14
  42. package/src/lib/components/add-csm-modal/add-csm-modal.component.spec.ts +0 -23
  43. package/src/lib/components/add-csm-modal/add-csm-modal.component.ts +0 -94
  44. package/src/lib/components/audit-log/audit-log.component.html +0 -1
  45. package/src/lib/components/audit-log/audit-log.component.scss +0 -0
  46. package/src/lib/components/audit-log/audit-log.component.spec.ts +0 -23
  47. package/src/lib/components/audit-log/audit-log.component.ts +0 -10
  48. package/src/lib/components/audit-metrics/audit-metrics.component.html +0 -345
  49. package/src/lib/components/audit-metrics/audit-metrics.component.scss +0 -34
  50. package/src/lib/components/audit-metrics/audit-metrics.component.spec.ts +0 -23
  51. package/src/lib/components/audit-metrics/audit-metrics.component.ts +0 -292
  52. package/src/lib/components/comment-model/comment-model.component.html +0 -24
  53. package/src/lib/components/comment-model/comment-model.component.scss +0 -20
  54. package/src/lib/components/comment-model/comment-model.component.spec.ts +0 -23
  55. package/src/lib/components/comment-model/comment-model.component.ts +0 -53
  56. package/src/lib/components/count/count.component.html +0 -54
  57. package/src/lib/components/count/count.component.scss +0 -14
  58. package/src/lib/components/count/count.component.spec.ts +0 -23
  59. package/src/lib/components/count/count.component.ts +0 -82
  60. package/src/lib/components/footfall-dic/footfall-dic.component.html +0 -1242
  61. package/src/lib/components/footfall-dic/footfall-dic.component.scss +0 -273
  62. package/src/lib/components/footfall-dic/footfall-dic.component.spec.ts +0 -23
  63. package/src/lib/components/footfall-dic/footfall-dic.component.ts +0 -1106
  64. package/src/lib/components/group-select/group-select.component.html +0 -44
  65. package/src/lib/components/group-select/group-select.component.scss +0 -144
  66. package/src/lib/components/group-select/group-select.component.spec.ts +0 -23
  67. package/src/lib/components/group-select/group-select.component.ts +0 -145
  68. package/src/lib/components/re-trigger/re-trigger.component.html +0 -53
  69. package/src/lib/components/re-trigger/re-trigger.component.scss +0 -16
  70. package/src/lib/components/re-trigger/re-trigger.component.spec.ts +0 -23
  71. package/src/lib/components/re-trigger/re-trigger.component.ts +0 -96
  72. package/src/lib/components/reactive-select/reactive-select.component.html +0 -18
  73. package/src/lib/components/reactive-select/reactive-select.component.scss +0 -52
  74. package/src/lib/components/reactive-select/reactive-select.component.spec.ts +0 -23
  75. package/src/lib/components/reactive-select/reactive-select.component.ts +0 -104
  76. package/src/lib/components/tango-manage-tickets/tango-manage-tickets.component.html +0 -38
  77. package/src/lib/components/tango-manage-tickets/tango-manage-tickets.component.scss +0 -35
  78. package/src/lib/components/tango-manage-tickets/tango-manage-tickets.component.spec.ts +0 -23
  79. package/src/lib/components/tango-manage-tickets/tango-manage-tickets.component.ts +0 -116
  80. package/src/lib/components/tickets/tickets.component.html +0 -439
  81. package/src/lib/components/tickets/tickets.component.scss +0 -131
  82. package/src/lib/components/tickets/tickets.component.spec.ts +0 -23
  83. package/src/lib/components/tickets/tickets.component.ts +0 -748
  84. package/src/lib/services/excel.service.ts +0 -48
  85. package/src/lib/services/ticket.service.spec.ts +0 -16
  86. package/src/lib/services/ticket.service.ts +0 -175
  87. package/src/lib/tango-manage-tickets-routing.module.ts +0 -16
  88. package/src/lib/tango-manage-tickets.module.ts +0 -34
  89. package/tsconfig.lib.json +0 -14
  90. package/tsconfig.lib.prod.json +0 -10
  91. package/tsconfig.spec.json +0 -14
@@ -1,48 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as FileSaver from 'file-saver';
3
- import * as XLSX from 'xlsx';
4
-
5
- const EXCEL_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8';
6
- const EXCEL_EXTENSION = '.xlsx';
7
- const ZIP_TYPE = 'application/zip'
8
- const ZIP_EXTENSION = '.zip'
9
-
10
- @Injectable({
11
- providedIn: 'root'
12
- })
13
- export class ExcelService {
14
-
15
-
16
- constructor() { }
17
-
18
- public exportAsExcelFile(json: any[], excelFileName: string): void {
19
- const worksheet: XLSX.WorkSheet = XLSX.utils.json_to_sheet(json);
20
- const workbook: XLSX.WorkBook = { Sheets: { 'data': worksheet }, SheetNames: ['data'] };
21
- const excelBuffer: any = XLSX.write(workbook, { bookType: 'xlsx', type: 'array' });
22
- this.saveAsExcelFile(excelBuffer, excelFileName);
23
- }
24
-
25
- public saveAsExcelFile(buffer: any, fileName: string): void {
26
- console.log(buffer, fileName);
27
-
28
- const data: Blob = new Blob([buffer], {
29
- type: EXCEL_TYPE
30
- });
31
- FileSaver.saveAs(data, fileName + 'list'+ EXCEL_EXTENSION);
32
- }
33
-
34
- private saveAsTemplate(buffer: any, fileName: string): void {
35
- const data: Blob = new Blob([buffer], {
36
- type: EXCEL_TYPE
37
- });
38
- FileSaver.saveAs(data, fileName + EXCEL_EXTENSION);
39
- }
40
-
41
- public saveAsZipFile(buffer: any, fileName: string): void {
42
- const data: Blob = new Blob([buffer], {
43
- type: ZIP_TYPE
44
- });
45
- FileSaver.saveAs(data, fileName + 'Images'+ ZIP_EXTENSION);
46
- }
47
-
48
- }
@@ -1,16 +0,0 @@
1
- import { TestBed } from '@angular/core/testing';
2
-
3
- import { TicketService } from './ticket.service';
4
-
5
- describe('TicketService', () => {
6
- let service: TicketService;
7
-
8
- beforeEach(() => {
9
- TestBed.configureTestingModule({});
10
- service = TestBed.inject(TicketService);
11
- });
12
-
13
- it('should be created', () => {
14
- expect(service).toBeTruthy();
15
- });
16
- });
@@ -1,175 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Injectable, Optional } from '@angular/core';
3
- import { GlobalStateService } from 'tango-app-ui-global';
4
- import {
5
- BehaviorSubject,
6
- Observable,
7
- catchError,
8
- map,
9
- of,
10
- throwError,
11
- } from "rxjs";
12
- import { HttpParams } from '@angular/common/http';
13
- @Injectable({
14
- providedIn: 'root'
15
- })
16
- export class TicketService {
17
- userApiUrl: any;
18
- ticketsApiUrl: any;
19
- auditApiUrl:any;
20
- auditmetricApiUrl:any;
21
- zoneauditApiUrl:any;
22
- footfallDirapiUrl: any;
23
- footfallCDN:any;
24
- trafficApiUrl:any;
25
- dropDownTrigger = new BehaviorSubject<any>(null)
26
- constructor(private http: HttpClient, private gs: GlobalStateService) {
27
- this.gs.environment.subscribe((env) => {
28
- if (env) {
29
- this.userApiUrl = env.userApiUrl;
30
- this.ticketsApiUrl =env.ticketsApiUrl;
31
- this.auditmetricApiUrl = env.auditmetricApiUrl;
32
- this.auditApiUrl = env.auditApiUrl;
33
- this.zoneauditApiUrl = env.zoneauditApiUrl;
34
- this.footfallDirapiUrl= env.footfallDirapiUrl;
35
- this.footfallCDN =env.footfallCDN;
36
- this.trafficApiUrl =env.trafficApiUrl;
37
- }
38
- })
39
- }
40
-
41
- getUserList(params: any): Observable<any> {
42
- return this.http.post<any>(`${this.userApiUrl}/get-list`, params)
43
- }
44
- exportInstallationList(data:any){
45
- return this.http.post(`${this.ticketsApiUrl}/infra/installationTable`,data,{responseType: 'arraybuffer'})
46
- }
47
- exportInfraList(data:any){
48
- return this.http.post(`${this.ticketsApiUrl}/infra/infraTable`,data,{responseType: 'arraybuffer'})
49
- }
50
- exportMatList(data:any){
51
- return this.http.post(`${this.ticketsApiUrl}/infra/matTable`,data,{responseType: 'arraybuffer'})
52
- }
53
- getSotresList(data:any){
54
- return this.http.post<any>(`${this.ticketsApiUrl}/infra/storeFilter`, data)
55
- }
56
-
57
- getInstallationList(data:any){
58
- return this.http.post<any>(`${this.ticketsApiUrl}/infra/installationTable`, data)
59
- }
60
-
61
- getInfraList(data:any){
62
- return this.http.post<any>(`${this.ticketsApiUrl}/infra/infraTable`, data)
63
- }
64
-
65
- getAssignTicket(data:any){
66
- return this.http.post<any>(`${this.ticketsApiUrl}/infra/assignTicket`, data)
67
- }
68
- getMatList(data:any){
69
- return this.http.post<any>(`${this.ticketsApiUrl}/infra/matTable`, data)
70
- }
71
-
72
- updateTicketIssue(data:any){
73
- return this.http.post<any>(`${this.ticketsApiUrl}/employeeTraning/updatecomment`, data)
74
- }
75
-
76
- getUserActiveList(params: any): Observable<any> {
77
- return this.http.post<any>(`${this.userApiUrl}/list`, params)
78
- }
79
-
80
- getDataMismathList(data:any){
81
- return this.http.post<any>(`${this.ticketsApiUrl}/infra/dataMismatchTable`, data)
82
- }
83
- exportDataMismatchList(data:any){
84
- return this.http.post(`${this.ticketsApiUrl}/infra/dataMismatchTable`,data,{responseType: 'arraybuffer'})
85
- }
86
-
87
- getAllCounts(data:any){
88
- return this.http.post<any>(`${this.ticketsApiUrl}/infra/allCounts`, data)
89
- }
90
- getstoreMetrics(data:any){
91
- return this.http.post(`${this.auditApiUrl}/metrics/store-metrics`,data)
92
- }
93
- getstoreMetricsExport(data:any){
94
- return this.http.post(`${this.auditApiUrl}/metrics/store-metrics`,data,{responseType: 'arraybuffer'})
95
- }
96
- getclientList(){
97
- return this.http.get(`${this.auditApiUrl}/clients`)
98
- }
99
- getuserList(){
100
- return this.http.get(`${this.auditApiUrl}/tango-users`)
101
- }
102
- auditretrigger(data:any){
103
- return this.http.post(`${this.auditApiUrl}/metrics/re-trigger`,data)
104
- }
105
- getstoreList(data:any){
106
- return this.http.post(`${this.auditApiUrl}/audit-stores`,data)
107
- }
108
- getAuditImages(data:any){
109
- return this.http.get(`${this.auditApiUrl}/audit-images?fileDate=${data?.fileDate}&storeId=${data?.storeId}&imageType=${data?.imageType}&export=${data?.export}&zoneName=${data?.zoneName}&moduleType=${data?.moduleType}`)
110
- }
111
- ExportAuditImagesasxlsx(data:any){
112
- return this.http.get(`${this.auditApiUrl}/audit-images?fileDate=${data?.fileDate}&storeId=${data?.storeId}&imageType=${data?.imageType}&export=${data?.export}&zoneName=${data?.zoneName}&moduleType=${data?.moduleType}`,{responseType:'arraybuffer'})
113
- }
114
-
115
- getTicketSummaryApi(client: any, fromDate: any, toDate: any): Observable<any> {
116
- return this.http.get(`${this.footfallDirapiUrl}/ticket-summary?clientId=${client}&fromDate=${fromDate}&toDate=${toDate}`);
117
- }
118
-
119
- getTicketListApi(client: any, fromDate: any, toDate: any, searchvalue:any, limit:any, offset:any, isExport:any,sortBy:any,sortOrder:any): Observable<any> {
120
- return this.http.get(`${this.footfallDirapiUrl}/ticket-list?clientId=${client}&fromDate=${fromDate}&toDate=${toDate}&searchValue=${searchvalue}&limit=${limit}&offset=${offset}&isExport=${isExport}&sortBy=${sortBy}&sortOrder=${sortOrder}`);
121
- }
122
-
123
- getTicketListExportApi(client: any, fromDate: any, toDate: any, searchvalue:any, limit:any, offset:any, isExport:any,sortBy:any,sortOrder:any): Observable<any> {
124
- return this.http.get(`${this.footfallDirapiUrl}/ticket-list?clientId=${client}&fromDate=${fromDate}&toDate=${toDate}&searchValue=${searchvalue}&limit=${limit}&offset=${offset}&isExport=${isExport}&sortBy=${sortBy}&sortOrder=${sortOrder}`,{responseType: 'arraybuffer'});
125
- }
126
-
127
-
128
-
129
- getTicketsApi(store: any, fromDate: any, toDate: any, revopsType: any, status: any, action: any, offset: any, limit: any): Observable<any> {
130
- let params = new HttpParams()
131
- .set('storeId', store)
132
- .set('fromDate', fromDate)
133
- .set('toDate', toDate)
134
- .set('offset', offset)
135
- .set('limit', limit);
136
- if (revopsType) {
137
- params = params.set('revopsType', revopsType);
138
- }
139
- if (status) {
140
- params = params.set('status', status);
141
- }
142
- if (action) {
143
- params = params.set('action', action);
144
- }
145
- return this.http.get(`${this.footfallDirapiUrl}/get-tickets`, { params });
146
- }
147
-
148
- getTaggedStoresApi(client: any, fromDate: any, toDate: any,searchValue:any, clusters: any,sortOrder:any): Observable<any> {
149
- let params = new HttpParams()
150
- .set('clientId', client)
151
- .set('fromDate', fromDate)
152
- .set('toDate', toDate); // Add searchValue as an empty string if not provided
153
- // Only add 'clusters' if it's not null, undefined, or an empty array/string
154
- if (searchValue) {
155
- params = params.set('searchValue', searchValue);
156
- }
157
-
158
- if (clusters && clusters.length > 0) {
159
- params = params.set('clusters', clusters);
160
- }
161
- if (sortOrder) {
162
- params = params.set('sortOrder', sortOrder);
163
- }
164
- return this.http.get(`${this.footfallDirapiUrl}/get-tagged-stores`, { params });
165
- }
166
-
167
-
168
- getUpdateStatusApi(data:any): Observable<any> {
169
- const url = `${this.footfallDirapiUrl}/update-status`;
170
- return this.http.put(url, data);
171
- }
172
- getclusters(data: any) {
173
- return this.http.post(`${this.trafficApiUrl}/headercluster_v2`, data)
174
- }
175
- }
@@ -1,16 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { RouterModule, Routes } from '@angular/router';
3
- import { TangoManageTicketsComponent } from './components/tango-manage-tickets/tango-manage-tickets.component';
4
-
5
- const routes: Routes = [
6
- {
7
- path:'',
8
- component:TangoManageTicketsComponent
9
- }
10
- ];
11
-
12
- @NgModule({
13
- imports: [RouterModule.forChild(routes)],
14
- exports: [RouterModule]
15
- })
16
- export class TangoManageTicketsRoutingModule { }
@@ -1,34 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
-
4
- import { TangoManageTicketsRoutingModule } from './tango-manage-tickets-routing.module';
5
- import { TangoManageTicketsComponent } from './components/tango-manage-tickets/tango-manage-tickets.component';
6
- import { TicketsComponent } from './components/tickets/tickets.component';
7
- import { FormsModule,ReactiveFormsModule } from '@angular/forms';
8
- import { CommonSharedModule } from 'tango-app-ui-shared';
9
- import { AddCsmModalComponent } from './components/add-csm-modal/add-csm-modal.component';
10
- import { CommentModelComponent } from './components/comment-model/comment-model.component';
11
- import { AuditMetricsComponent } from './components/audit-metrics/audit-metrics.component';
12
- import { ReTriggerComponent } from './components/re-trigger/re-trigger.component';
13
- import { AuditLogComponent } from './components/audit-log/audit-log.component';
14
- import { CountComponent } from './components/count/count.component';
15
- import { FootfallDicComponent } from './components/footfall-dic/footfall-dic.component';
16
- import { ReactiveSelectComponent } from './components/reactive-select/reactive-select.component';
17
- import { GroupSelectComponent } from './components/group-select/group-select.component';
18
- @NgModule({
19
- declarations: [
20
- TangoManageTicketsComponent,
21
- TicketsComponent,AddCsmModalComponent, CommentModelComponent, AuditMetricsComponent,
22
- ReTriggerComponent, AuditLogComponent, CountComponent, FootfallDicComponent,
23
- ReactiveSelectComponent,
24
- GroupSelectComponent,
25
- ],
26
- imports: [
27
- CommonModule,
28
- TangoManageTicketsRoutingModule,
29
- FormsModule,
30
- ReactiveFormsModule,
31
- CommonSharedModule
32
- ]
33
- })
34
- export class TangoManageTicketsModule { }
package/tsconfig.lib.json DELETED
@@ -1,14 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/lib",
6
- "declaration": true,
7
- "declarationMap": true,
8
- "inlineSources": true,
9
- "types": []
10
- },
11
- "exclude": [
12
- "**/*.spec.ts"
13
- ]
14
- }
@@ -1,10 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "./tsconfig.lib.json",
4
- "compilerOptions": {
5
- "declarationMap": false
6
- },
7
- "angularCompilerOptions": {
8
- "compilationMode": "partial"
9
- }
10
- }
@@ -1,14 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/spec",
6
- "types": [
7
- "jasmine"
8
- ]
9
- },
10
- "include": [
11
- "**/*.spec.ts",
12
- "**/*.d.ts"
13
- ]
14
- }