@aggdirect/coolmap-services 1.1.3 → 1.1.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/README.md +38 -38
- package/esm2020/coolmap-services.mjs +4 -4
- package/esm2020/lib/service/coolmap.service.mjs +446 -446
- package/esm2020/lib/service/data-model.mjs +40 -37
- package/esm2020/lib/service/utils.service.mjs +259 -259
- package/esm2020/public-api.mjs +7 -7
- package/fesm2015/coolmap-services.mjs +748 -745
- package/fesm2015/coolmap-services.mjs.map +1 -1
- package/fesm2020/coolmap-services.mjs +727 -724
- package/fesm2020/coolmap-services.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/service/coolmap.service.d.ts +47 -47
- package/lib/service/data-model.d.ts +91 -88
- package/lib/service/utils.service.d.ts +56 -56
- package/package.json +1 -1
- package/public-api.d.ts +3 -3
|
@@ -1,88 +1,91 @@
|
|
|
1
|
-
export declare class Route {
|
|
2
|
-
index: number;
|
|
3
|
-
type?: string | null;
|
|
4
|
-
customer_contact?: string | null;
|
|
5
|
-
customer_name?: string | null;
|
|
6
|
-
delivery_contact?: string | null;
|
|
7
|
-
delivery_lat?: number | null;
|
|
8
|
-
delivery_location?: string | null | undefined;
|
|
9
|
-
delivery_lon?: number | null;
|
|
10
|
-
driver_list?: Array<any>;
|
|
11
|
-
material?: string | null;
|
|
12
|
-
order_number?: string | null;
|
|
13
|
-
pickup_lat?: number | null;
|
|
14
|
-
pickup_location?: string | null | undefined;
|
|
15
|
-
pickup_lon?: number | null;
|
|
16
|
-
project?: string | null;
|
|
17
|
-
total_count?: number;
|
|
18
|
-
unit?: string | null;
|
|
19
|
-
values: any;
|
|
20
|
-
job_id?: string;
|
|
21
|
-
isSelected?: boolean;
|
|
22
|
-
date?: string;
|
|
23
|
-
created_at?: string | null;
|
|
24
|
-
created_by_name?: string | null;
|
|
25
|
-
customer_id?: string | null;
|
|
26
|
-
delivery_lat_lng?: string | null;
|
|
27
|
-
estimated_distance?: string | null;
|
|
28
|
-
estimated_time?: string | null;
|
|
29
|
-
materials_id?: string | null;
|
|
30
|
-
path?: [number, number];
|
|
31
|
-
pickup_lat_lng?: string | null;
|
|
32
|
-
route_id?: string | null;
|
|
33
|
-
route_name?: string | null;
|
|
34
|
-
unit_id?: string | null;
|
|
35
|
-
note?: string | null;
|
|
36
|
-
isActive?: boolean;
|
|
37
|
-
prevent?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export declare const EstinationData: string[];
|
|
40
|
-
export declare enum EstinationEnum {
|
|
41
|
-
estimated_distance = "miles",
|
|
42
|
-
estimated_time = "time"
|
|
43
|
-
}
|
|
44
|
-
export declare const JobCodeOverviewData: string[];
|
|
45
|
-
export declare enum JobCodeOverviewEnum {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
1
|
+
export declare class Route {
|
|
2
|
+
index: number;
|
|
3
|
+
type?: string | null;
|
|
4
|
+
customer_contact?: string | null;
|
|
5
|
+
customer_name?: string | null;
|
|
6
|
+
delivery_contact?: string | null;
|
|
7
|
+
delivery_lat?: number | null;
|
|
8
|
+
delivery_location?: string | null | undefined;
|
|
9
|
+
delivery_lon?: number | null;
|
|
10
|
+
driver_list?: Array<any>;
|
|
11
|
+
material?: string | null;
|
|
12
|
+
order_number?: string | null;
|
|
13
|
+
pickup_lat?: number | null;
|
|
14
|
+
pickup_location?: string | null | undefined;
|
|
15
|
+
pickup_lon?: number | null;
|
|
16
|
+
project?: string | null;
|
|
17
|
+
total_count?: number;
|
|
18
|
+
unit?: string | null;
|
|
19
|
+
values: any;
|
|
20
|
+
job_id?: string;
|
|
21
|
+
isSelected?: boolean;
|
|
22
|
+
date?: string;
|
|
23
|
+
created_at?: string | null;
|
|
24
|
+
created_by_name?: string | null;
|
|
25
|
+
customer_id?: string | null;
|
|
26
|
+
delivery_lat_lng?: string | null;
|
|
27
|
+
estimated_distance?: string | null;
|
|
28
|
+
estimated_time?: string | null;
|
|
29
|
+
materials_id?: string | null;
|
|
30
|
+
path?: [number, number];
|
|
31
|
+
pickup_lat_lng?: string | null;
|
|
32
|
+
route_id?: string | null;
|
|
33
|
+
route_name?: string | null;
|
|
34
|
+
unit_id?: string | null;
|
|
35
|
+
note?: string | null;
|
|
36
|
+
isActive?: boolean;
|
|
37
|
+
prevent?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare const EstinationData: string[];
|
|
40
|
+
export declare enum EstinationEnum {
|
|
41
|
+
estimated_distance = "miles",
|
|
42
|
+
estimated_time = "time"
|
|
43
|
+
}
|
|
44
|
+
export declare const JobCodeOverviewData: string[];
|
|
45
|
+
export declare enum JobCodeOverviewEnum {
|
|
46
|
+
material = "Material",
|
|
47
|
+
order_number = "Job Code",
|
|
48
|
+
customer_name = "Customer",
|
|
49
|
+
customer_contact = "Customer Contact",
|
|
50
|
+
delivery_contact = "Delivery Contact",
|
|
51
|
+
project = "Project Name",
|
|
52
|
+
unit = "Job Type",
|
|
53
|
+
pickup_location = "Pickup",
|
|
54
|
+
delivery_location = "Delivery"
|
|
55
|
+
}
|
|
56
|
+
export declare const DriversmsCardKey: string[];
|
|
57
|
+
export declare enum DriverSmsCardEnum {
|
|
58
|
+
order_number = "Jobcode",
|
|
59
|
+
date = "Date",
|
|
60
|
+
values = "Total tasks",
|
|
61
|
+
material = "Material",
|
|
62
|
+
unit = "Unit",
|
|
63
|
+
pickup_location = "Pickup Address",
|
|
64
|
+
delivery_location = "Delivery Address"
|
|
65
|
+
}
|
|
66
|
+
export declare class PopupData {
|
|
67
|
+
coordinate: [number, number];
|
|
68
|
+
pickup: string | null;
|
|
69
|
+
jobCode?: string | null;
|
|
70
|
+
customer?: string | null;
|
|
71
|
+
drop: string | null;
|
|
72
|
+
routeType: string | null;
|
|
73
|
+
title: string | null;
|
|
74
|
+
material: string | null;
|
|
75
|
+
type: string | null;
|
|
76
|
+
}
|
|
77
|
+
export declare class CoolmapConfigModel {
|
|
78
|
+
analyticsRESTURL: string | null;
|
|
79
|
+
RESTURLPrefix: string | null;
|
|
80
|
+
repository: string | null;
|
|
81
|
+
mapboxStyle: string | null;
|
|
82
|
+
mapboxAccessToken: string | null;
|
|
83
|
+
}
|
|
84
|
+
export declare class CustomerRepoDetailsModel {
|
|
85
|
+
customer: CustomerDetailsModel | null;
|
|
86
|
+
projectId: string | null;
|
|
87
|
+
}
|
|
88
|
+
export declare class CustomerDetailsModel {
|
|
89
|
+
id: string | null;
|
|
90
|
+
name: string | null;
|
|
91
|
+
}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { CoolmapConfigModel, Route } from './data-model';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class UtilsService {
|
|
7
|
-
http: HttpClient;
|
|
8
|
-
snackBar: MatSnackBar;
|
|
9
|
-
private config;
|
|
10
|
-
analyticsRESTURL: string;
|
|
11
|
-
RESTURLPrefix: string;
|
|
12
|
-
pickupOptions: any[];
|
|
13
|
-
destOptions: any[];
|
|
14
|
-
ownerOptions: any[];
|
|
15
|
-
customerOptions: any[];
|
|
16
|
-
unitOptions: any[];
|
|
17
|
-
materialOptions: any[];
|
|
18
|
-
jcodeOptions: any[];
|
|
19
|
-
driverOption: any[];
|
|
20
|
-
truckingCompanayOption: any[];
|
|
21
|
-
routeNameOptions: any[];
|
|
22
|
-
preventnavChange: BehaviorSubject<boolean>;
|
|
23
|
-
navChangeObserve: import("rxjs").Observable<boolean>;
|
|
24
|
-
clearViewRouteforJobCode: BehaviorSubject<boolean>;
|
|
25
|
-
clearViewRouteforJobCodeObserve: import("rxjs").Observable<boolean>;
|
|
26
|
-
preVentJobdetailclose: BehaviorSubject<boolean>;
|
|
27
|
-
getpreVentJobdetailclose: import("rxjs").Observable<boolean>;
|
|
28
|
-
routeDetailsUtility: BehaviorSubject<{}>;
|
|
29
|
-
getrouteDetailsUtility: import("rxjs").Observable<{}>;
|
|
30
|
-
removeMapEntity: BehaviorSubject<{}>;
|
|
31
|
-
removeMapEntityUtility: import("rxjs").Observable<{}>;
|
|
32
|
-
dict: Map<string, string>;
|
|
33
|
-
unitsList: any;
|
|
34
|
-
materialsList: any;
|
|
35
|
-
customersList: any;
|
|
36
|
-
constructor(http: HttpClient, snackBar: MatSnackBar, config: CoolmapConfigModel);
|
|
37
|
-
getDateFormat(strVal: Date | null, seprater?: string): string;
|
|
38
|
-
getData(path: string): import("rxjs").Observable<Object>;
|
|
39
|
-
postdata(path: string, data: any): import("rxjs").Observable<Object>;
|
|
40
|
-
postDataWithRestUrl(path: string, data: any): import("rxjs").Observable<Object>;
|
|
41
|
-
fetchAutoCompleteLocations(keyword: string): import("rxjs").Observable<Object>;
|
|
42
|
-
openSnackBar(message: string, className?: string): void;
|
|
43
|
-
makeOptions(item: Route): void;
|
|
44
|
-
filter(value: string, filters: any): any[];
|
|
45
|
-
getSearchResults(list: Route[], filterval: any): any;
|
|
46
|
-
clearOptions(): void;
|
|
47
|
-
setdictValue(key: string, value: string): void;
|
|
48
|
-
getdictValue(key: string): any;
|
|
49
|
-
removedictValue(key: string): void;
|
|
50
|
-
conveySearchIcon(value: any): boolean;
|
|
51
|
-
fetchUnitsList(): Promise<unknown>;
|
|
52
|
-
fetchMaterialsList(): Promise<unknown>;
|
|
53
|
-
fetchCustomersList(): Promise<unknown>;
|
|
54
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
55
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
56
|
-
}
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { CoolmapConfigModel, Route } from './data-model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class UtilsService {
|
|
7
|
+
http: HttpClient;
|
|
8
|
+
snackBar: MatSnackBar;
|
|
9
|
+
private config;
|
|
10
|
+
analyticsRESTURL: string;
|
|
11
|
+
RESTURLPrefix: string;
|
|
12
|
+
pickupOptions: any[];
|
|
13
|
+
destOptions: any[];
|
|
14
|
+
ownerOptions: any[];
|
|
15
|
+
customerOptions: any[];
|
|
16
|
+
unitOptions: any[];
|
|
17
|
+
materialOptions: any[];
|
|
18
|
+
jcodeOptions: any[];
|
|
19
|
+
driverOption: any[];
|
|
20
|
+
truckingCompanayOption: any[];
|
|
21
|
+
routeNameOptions: any[];
|
|
22
|
+
preventnavChange: BehaviorSubject<boolean>;
|
|
23
|
+
navChangeObserve: import("rxjs").Observable<boolean>;
|
|
24
|
+
clearViewRouteforJobCode: BehaviorSubject<boolean>;
|
|
25
|
+
clearViewRouteforJobCodeObserve: import("rxjs").Observable<boolean>;
|
|
26
|
+
preVentJobdetailclose: BehaviorSubject<boolean>;
|
|
27
|
+
getpreVentJobdetailclose: import("rxjs").Observable<boolean>;
|
|
28
|
+
routeDetailsUtility: BehaviorSubject<{}>;
|
|
29
|
+
getrouteDetailsUtility: import("rxjs").Observable<{}>;
|
|
30
|
+
removeMapEntity: BehaviorSubject<{}>;
|
|
31
|
+
removeMapEntityUtility: import("rxjs").Observable<{}>;
|
|
32
|
+
dict: Map<string, string>;
|
|
33
|
+
unitsList: any;
|
|
34
|
+
materialsList: any;
|
|
35
|
+
customersList: any;
|
|
36
|
+
constructor(http: HttpClient, snackBar: MatSnackBar, config: CoolmapConfigModel);
|
|
37
|
+
getDateFormat(strVal: Date | null, seprater?: string): string;
|
|
38
|
+
getData(path: string): import("rxjs").Observable<Object>;
|
|
39
|
+
postdata(path: string, data: any): import("rxjs").Observable<Object>;
|
|
40
|
+
postDataWithRestUrl(path: string, data: any): import("rxjs").Observable<Object>;
|
|
41
|
+
fetchAutoCompleteLocations(keyword: string): import("rxjs").Observable<Object>;
|
|
42
|
+
openSnackBar(message: string, className?: string): void;
|
|
43
|
+
makeOptions(item: Route): void;
|
|
44
|
+
filter(value: string, filters: any): any[];
|
|
45
|
+
getSearchResults(list: Route[], filterval: any): any;
|
|
46
|
+
clearOptions(): void;
|
|
47
|
+
setdictValue(key: string, value: string): void;
|
|
48
|
+
getdictValue(key: string): any;
|
|
49
|
+
removedictValue(key: string): void;
|
|
50
|
+
conveySearchIcon(value: any): boolean;
|
|
51
|
+
fetchUnitsList(): Promise<unknown>;
|
|
52
|
+
fetchMaterialsList(): Promise<unknown>;
|
|
53
|
+
fetchCustomersList(): Promise<unknown>;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
55
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
56
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './lib/service/coolmap.service';
|
|
2
|
-
export * from './lib/service/utils.service';
|
|
3
|
-
export * from './lib/service/data-model';
|
|
1
|
+
export * from './lib/service/coolmap.service';
|
|
2
|
+
export * from './lib/service/utils.service';
|
|
3
|
+
export * from './lib/service/data-model';
|