gunsmith-common 2.3.5 → 2.3.7

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.
@@ -1780,6 +1780,12 @@ class FirearmOpticService extends BaseService {
1780
1780
  this.env = env;
1781
1781
  this.urlSegments = [`${this.env.baseUrl}api/firearms`, "optics"];
1782
1782
  }
1783
+ createCollection(firearmOptics, firearmId) {
1784
+ return this.http.post(`${this.env.baseUrl}api/firearms/${firearmId}/optics/collection`, firearmOptics);
1785
+ }
1786
+ updateCollection(firearmOptics, firearmId, firearmOpticIds) {
1787
+ return this.http.put(`${this.env.baseUrl}api/firearms/${firearmId}/optics/collection/${firearmOpticIds.join(",")}`, firearmOptics);
1788
+ }
1783
1789
  }
1784
1790
  FirearmOpticService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
1785
1791
  FirearmOpticService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, providedIn: "root" });