@ironcode/vas-lib 1.2.0 → 1.3.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.
@@ -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,62 @@ 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, archived) {
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
+ this.archived = archived;
2252
+ }
2253
+ static fromDto(dto) {
2254
+ 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 || '', dto.archived || false);
2255
+ }
2256
+ toDto() {
2257
+ return {
2258
+ id: this.id,
2259
+ created: this.created,
2260
+ serverCreated: this.serverCreated,
2261
+ createdBy: this.createdBy,
2262
+ modified: this.modified,
2263
+ serverModified: this.serverModified,
2264
+ modifiedBy: this.modifiedBy,
2265
+ createdByName: this.createdByName,
2266
+ modifiedByName: this.modifiedByName,
2267
+ account: this.account,
2268
+ registration: this.registration,
2269
+ make: this.make,
2270
+ model: this.model,
2271
+ archived: this.archived
2272
+ };
2273
+ }
2274
+ toApiDto(options) {
2275
+ return {
2276
+ id: this.id,
2277
+ created: this.created,
2278
+ modified: this.modified,
2279
+ account: this.account,
2280
+ registration: this.registration,
2281
+ make: this.make,
2282
+ model: this.model,
2283
+ archived: this.archived
2284
+ };
2285
+ }
2286
+ }
2287
+
2235
2288
  /**
2236
2289
  * Generated bundle index. Do not edit.
2237
2290
  */
2238
2291
 
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 };
2292
+ 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
2293
  //# sourceMappingURL=ironcode-vas-lib.mjs.map