@ironcode/vas-lib 1.2.0 → 1.3.0

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.
@@ -1788,7 +1788,7 @@ class VasJobModel extends VasRestrictedAccountObjectModel {
1788
1788
  .length;
1789
1789
  // add total from files that are pending
1790
1790
  pending += this.files
1791
- .filter(value => value.status !== 'COMPLETED')
1791
+ .filter(value => value.status !== 'COMPLETE')
1792
1792
  .length;
1793
1793
  return {
1794
1794
  pending,
@@ -2232,9 +2232,59 @@ class VasReportRequestModel extends VasAccountObjectModel {
2232
2232
  }
2233
2233
  }
2234
2234
 
2235
+ class VasVehicleModel extends VasAccountObjectModel {
2236
+ constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, registration, make, model) {
2237
+ super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account);
2238
+ this.id = id;
2239
+ this.created = created;
2240
+ this.serverCreated = serverCreated;
2241
+ this.createdBy = createdBy;
2242
+ this.modified = modified;
2243
+ this.serverModified = serverModified;
2244
+ this.modifiedBy = modifiedBy;
2245
+ this.createdByName = createdByName;
2246
+ this.modifiedByName = modifiedByName;
2247
+ this.account = account;
2248
+ this.registration = registration;
2249
+ this.make = make;
2250
+ this.model = model;
2251
+ }
2252
+ static fromDto(dto) {
2253
+ return new VasVehicleModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.registration || '', dto.make || '', dto.model || '');
2254
+ }
2255
+ toDto() {
2256
+ return {
2257
+ id: this.id,
2258
+ created: this.created,
2259
+ serverCreated: this.serverCreated,
2260
+ createdBy: this.createdBy,
2261
+ modified: this.modified,
2262
+ serverModified: this.serverModified,
2263
+ modifiedBy: this.modifiedBy,
2264
+ createdByName: this.createdByName,
2265
+ modifiedByName: this.modifiedByName,
2266
+ account: this.account,
2267
+ registration: this.registration,
2268
+ make: this.make,
2269
+ model: this.model
2270
+ };
2271
+ }
2272
+ toApiDto(options) {
2273
+ return {
2274
+ id: this.id,
2275
+ created: this.created,
2276
+ modified: this.modified,
2277
+ account: this.account,
2278
+ registration: this.registration,
2279
+ make: this.make,
2280
+ model: this.model
2281
+ };
2282
+ }
2283
+ }
2284
+
2235
2285
  /**
2236
2286
  * Generated bundle index. Do not edit.
2237
2287
  */
2238
2288
 
2239
- export { VasAccountIndexingMode, VasAccountObjectModel, VasBaseModel, VasBranchModel, VasContactModel, VasControlConfigDirection, VasControlModel, VasControlTypeModel, VasFieldModel, VasFileModel, VasFireUserModel, VasFormModel, VasGroupModel, VasInstructionJobFieldModel, VasInstructionJobModel, VasInstructionModel, VasInstructionProviderModel, VasInvitationModel, VasInvitationTypeEnum, VasJobDataModel, VasJobModel, VasMembershipModel, VasNoteModel, VasReportLayoutModel, VasReportModel, VasReportRequestModel, VasRestrictedAccountObjectModel, VasUserModel, getEmptyGeoLocation, isCameraControlValueV1, isFileDto };
2289
+ export { VasAccountIndexingMode, VasAccountObjectModel, VasBaseModel, VasBranchModel, VasContactModel, VasControlConfigDirection, VasControlModel, VasControlTypeModel, VasFieldModel, VasFileModel, VasFireUserModel, VasFormModel, VasGroupModel, VasInstructionJobFieldModel, VasInstructionJobModel, VasInstructionModel, VasInstructionProviderModel, VasInvitationModel, VasInvitationTypeEnum, VasJobDataModel, VasJobModel, VasMembershipModel, VasNoteModel, VasReportLayoutModel, VasReportModel, VasReportRequestModel, VasRestrictedAccountObjectModel, VasUserModel, VasVehicleModel, getEmptyGeoLocation, isCameraControlValueV1, isFileDto };
2240
2290
  //# sourceMappingURL=ironcode-vas-lib.mjs.map