taxtank-core 0.2.0 → 0.2.1

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.
@@ -9212,7 +9212,7 @@
9212
9212
  FirmService.prototype.register = function (data) {
9213
9213
  return this.http.post(this.environment.apiV2 + "/firms/registration", data)
9214
9214
  .pipe(operators.map(function (firm) {
9215
- return classTransformer.plainToClass(Firm$1, firm);
9215
+ return classTransformer.plainToClass(Firm, firm);
9216
9216
  }));
9217
9217
  };
9218
9218
  FirmService.prototype.get = function () {
@@ -9220,7 +9220,7 @@
9220
9220
  if (!this.firm) {
9221
9221
  this.http.get(this.environment.apiV2 + "/firms/current")
9222
9222
  .pipe(operators.map(function (firm) {
9223
- return classTransformer.plainToClass(Firm$1, firm);
9223
+ return classTransformer.plainToClass(Firm, firm);
9224
9224
  }))
9225
9225
  .subscribe(function (firm) {
9226
9226
  _this.firm = firm;
@@ -9233,7 +9233,7 @@
9233
9233
  var _this = this;
9234
9234
  return this.http.put(this.environment.apiV2 + "/firms/current", firm)
9235
9235
  .pipe(operators.map(function (updatedItem) {
9236
- var updatedInstance = classTransformer.plainToClass(Firm$1, updatedItem);
9236
+ var updatedInstance = classTransformer.plainToClass(Firm, updatedItem);
9237
9237
  _this.firmSubject.next(updatedInstance);
9238
9238
  }));
9239
9239
  };
@@ -9243,7 +9243,7 @@
9243
9243
  FirmService.prototype.getAll = function () {
9244
9244
  return this.http.get(this.environment.apiV2 + "/firms")
9245
9245
  .pipe(operators.map(function (response) {
9246
- return response['hydra:member'].map(function (firmBase) { return classTransformer.plainToClass(Firm$1, firmBase); });
9246
+ return response['hydra:member'].map(function (firmBase) { return classTransformer.plainToClass(Firm, firmBase); });
9247
9247
  }));
9248
9248
  };
9249
9249
  FirmService.prototype.getByType = function (type) {
@@ -9255,7 +9255,7 @@
9255
9255
  var _this = this;
9256
9256
  return this.http.post(this.environment.apiV2 + "/firms/photo?_method=PUT", photo)
9257
9257
  .pipe(operators.map(function (firmPhoto) {
9258
- _this.firm = classTransformer.plainToClass(Firm$1, Object.assign(firm, { photo: firmPhoto }));
9258
+ _this.firm = classTransformer.plainToClass(Firm, Object.assign(firm, { photo: firmPhoto }));
9259
9259
  _this.firmSubject.next(_this.firm);
9260
9260
  return firm;
9261
9261
  }));