gunsmith-common 2.2.16 → 2.2.17
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/esm2020/shared/services/firearm.service.mjs +4 -1
- package/esm2020/shared/services/milling-type.service.mjs +1 -10
- package/esm2020/shared/types/milling-type.mjs +1 -1
- package/fesm2015/gunsmith-common.mjs +3 -9
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +3 -9
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/gunsmith-common-2.2.17.tgz +0 -0
- package/package.json +1 -1
- package/shared/services/firearm.service.d.ts +2 -1
- package/shared/services/milling-type.service.d.ts +0 -1
- package/shared/types/milling-type.d.ts +3 -0
- package/gunsmith-common-2.2.16.tgz +0 -0
|
@@ -591,6 +591,9 @@ class FirearmService {
|
|
|
591
591
|
readFirearmMaterial(firearmId) {
|
|
592
592
|
return this.http.get(`${this.url}/${firearmId}/material`);
|
|
593
593
|
}
|
|
594
|
+
readFirearmCosmetics(firearmId) {
|
|
595
|
+
return this.http.get(`${this.url}/${firearmId}/cosmetics`);
|
|
596
|
+
}
|
|
594
597
|
}
|
|
595
598
|
FirearmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
596
599
|
FirearmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, providedIn: 'root' });
|
|
@@ -1312,15 +1315,6 @@ class MillingTypeService {
|
|
|
1312
1315
|
params: params
|
|
1313
1316
|
});
|
|
1314
1317
|
}
|
|
1315
|
-
readCosmeticMillings(includeInactive = false) {
|
|
1316
|
-
const params = {};
|
|
1317
|
-
if (includeInactive) {
|
|
1318
|
-
params['includeInactive'] = includeInactive.toString();
|
|
1319
|
-
}
|
|
1320
|
-
return this.http.get(`${this.url}/cosmetics`, {
|
|
1321
|
-
params: params
|
|
1322
|
-
});
|
|
1323
|
-
}
|
|
1324
1318
|
readMillingType(id) {
|
|
1325
1319
|
return this.http.get(`${this.url}/${id}`);
|
|
1326
1320
|
}
|