@ironcode/vas-lib 1.0.1 → 1.0.2

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.
Files changed (27) hide show
  1. package/cjs/lib/entity/vas-instruction-job-field.dto.d.ts +3 -0
  2. package/cjs/lib/entity/vas-instruction-job-field.dto.d.ts.map +1 -1
  3. package/cjs/lib/entity/vas-instruction-job-field.dto.js.map +1 -1
  4. package/cjs/lib/entity/vas-instruction-job-field.model.d.ts +4 -1
  5. package/cjs/lib/entity/vas-instruction-job-field.model.d.ts.map +1 -1
  6. package/cjs/lib/entity/vas-instruction-job-field.model.js +9 -3
  7. package/cjs/lib/entity/vas-instruction-job-field.model.js.map +1 -1
  8. package/cjs/lib/entity/vas-instruction.dto.d.ts +2 -0
  9. package/cjs/lib/entity/vas-instruction.dto.d.ts.map +1 -1
  10. package/cjs/lib/entity/vas-instruction.dto.js.map +1 -1
  11. package/cjs/lib/entity/vas-instruction.model.d.ts +3 -1
  12. package/cjs/lib/entity/vas-instruction.model.d.ts.map +1 -1
  13. package/cjs/lib/entity/vas-instruction.model.js +6 -3
  14. package/cjs/lib/entity/vas-instruction.model.js.map +1 -1
  15. package/esm2020/lib/entity/vas-instruction-job-field.dto.mjs +1 -1
  16. package/esm2020/lib/entity/vas-instruction-job-field.model.mjs +10 -4
  17. package/esm2020/lib/entity/vas-instruction.dto.mjs +1 -1
  18. package/esm2020/lib/entity/vas-instruction.model.mjs +7 -4
  19. package/fesm2015/ironcode-vas-lib.mjs +36 -28
  20. package/fesm2015/ironcode-vas-lib.mjs.map +1 -1
  21. package/fesm2020/ironcode-vas-lib.mjs +41 -33
  22. package/fesm2020/ironcode-vas-lib.mjs.map +1 -1
  23. package/lib/entity/vas-instruction-job-field.dto.d.ts +3 -0
  24. package/lib/entity/vas-instruction-job-field.model.d.ts +4 -1
  25. package/lib/entity/vas-instruction.dto.d.ts +2 -0
  26. package/lib/entity/vas-instruction.model.d.ts +3 -1
  27. package/package.json +1 -1
@@ -1235,7 +1235,7 @@ class VasNoteModel extends VasJobDataModel {
1235
1235
  * VasInstructionJobFieldModel
1236
1236
  */
1237
1237
  class VasInstructionJobFieldModel extends VasBaseModel {
1238
- constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, value, name) {
1238
+ constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, value, name, title, sequence, controlType) {
1239
1239
  super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName);
1240
1240
  this.id = id;
1241
1241
  this.created = created;
@@ -1248,12 +1248,15 @@ class VasInstructionJobFieldModel extends VasBaseModel {
1248
1248
  this.modifiedByName = modifiedByName;
1249
1249
  this.value = value;
1250
1250
  this.name = name;
1251
+ this.title = title;
1252
+ this.sequence = sequence;
1253
+ this.controlType = controlType;
1251
1254
  }
1252
1255
  static empty() {
1253
- return new VasInstructionJobFieldModel('', '', '', '', '', '', '', '', '', '', '');
1256
+ return new VasInstructionJobFieldModel('', '', '', '', '', '', '', '', '', '', '', '', 0, '');
1254
1257
  }
1255
1258
  static fromDto(dto) {
1256
- return new VasInstructionJobFieldModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.value || '', dto.name || '');
1259
+ return new VasInstructionJobFieldModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.value || '', dto.name || '', dto.title || '', dto.sequence || 0, dto.controlType || '');
1257
1260
  }
1258
1261
  toDto() {
1259
1262
  return {
@@ -1268,6 +1271,9 @@ class VasInstructionJobFieldModel extends VasBaseModel {
1268
1271
  modifiedByName: this.modifiedByName,
1269
1272
  value: this.value,
1270
1273
  name: this.name,
1274
+ title: this.title,
1275
+ sequence: this.sequence,
1276
+ controlType: this.controlType
1271
1277
  };
1272
1278
  }
1273
1279
  }
@@ -1405,10 +1411,10 @@ class VasInstructionJobModel extends VasBaseModel {
1405
1411
  }
1406
1412
 
1407
1413
  /**
1408
- * VasNoteModel
1414
+ * VasInstructionProviderModel
1409
1415
  */
1410
- class VasInstructionModel extends VasAccountObjectModel {
1411
- constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job) {
1416
+ class VasInstructionProviderModel extends VasAccountObjectModel {
1417
+ constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, form, title, secret, portalEnabled) {
1412
1418
  super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account);
1413
1419
  this.id = id;
1414
1420
  this.created = created;
@@ -1420,16 +1426,19 @@ class VasInstructionModel extends VasAccountObjectModel {
1420
1426
  this.createdByName = createdByName;
1421
1427
  this.modifiedByName = modifiedByName;
1422
1428
  this.account = account;
1423
- this.job = job;
1429
+ this.form = form;
1430
+ this.title = title;
1431
+ this.secret = secret;
1432
+ this.portalEnabled = portalEnabled;
1424
1433
  }
1425
1434
  /**
1426
1435
  * @param dto VasInstructionDto
1427
1436
  * @return VasInstructionModel
1428
1437
  */
1429
1438
  static fromDto(dto) {
1430
- return new VasInstructionModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.job ?
1431
- VasInstructionJobModel.fromDto(dto.job) :
1432
- VasInstructionJobModel.empty());
1439
+ return new VasInstructionProviderModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.form ?
1440
+ VasFormModel.fromDto(dto.form) :
1441
+ VasFormModel.empty(), dto.title || '', dto.secret || '', dto.portalEnabled || false);
1433
1442
  }
1434
1443
  /**
1435
1444
  * @returns VasNoteDto
@@ -1446,16 +1455,27 @@ class VasInstructionModel extends VasAccountObjectModel {
1446
1455
  createdByName: this.createdByName,
1447
1456
  modifiedByName: this.modifiedByName,
1448
1457
  account: this.account,
1449
- job: this.job.toDto()
1458
+ form: this.form.toDto(),
1459
+ title: this.title,
1460
+ secret: this.secret,
1461
+ portalEnabled: this.portalEnabled
1462
+ };
1463
+ }
1464
+ toApiDto(options) {
1465
+ return {
1466
+ ...super.toApiDto(options),
1467
+ title: this.title,
1468
+ form: this.form.id,
1469
+ portalEnabled: this.portalEnabled
1450
1470
  };
1451
1471
  }
1452
1472
  }
1453
1473
 
1454
1474
  /**
1455
- * VasInstructionProviderModel
1475
+ * VasNoteModel
1456
1476
  */
1457
- class VasInstructionProviderModel extends VasAccountObjectModel {
1458
- constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, form, title, secret, portalEnabled) {
1477
+ class VasInstructionModel extends VasAccountObjectModel {
1478
+ constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job, instructionProvider) {
1459
1479
  super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account);
1460
1480
  this.id = id;
1461
1481
  this.created = created;
@@ -1467,19 +1487,17 @@ class VasInstructionProviderModel extends VasAccountObjectModel {
1467
1487
  this.createdByName = createdByName;
1468
1488
  this.modifiedByName = modifiedByName;
1469
1489
  this.account = account;
1470
- this.form = form;
1471
- this.title = title;
1472
- this.secret = secret;
1473
- this.portalEnabled = portalEnabled;
1490
+ this.job = job;
1491
+ this.instructionProvider = instructionProvider;
1474
1492
  }
1475
1493
  /**
1476
1494
  * @param dto VasInstructionDto
1477
1495
  * @return VasInstructionModel
1478
1496
  */
1479
1497
  static fromDto(dto) {
1480
- return new VasInstructionProviderModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.form ?
1481
- VasFormModel.fromDto(dto.form) :
1482
- VasFormModel.empty(), dto.title || '', dto.secret || '', dto.portalEnabled || false);
1498
+ return new VasInstructionModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.job ?
1499
+ VasInstructionJobModel.fromDto(dto.job) :
1500
+ VasInstructionJobModel.empty(), VasInstructionProviderModel.fromDto(dto.instructionProvider || {}));
1483
1501
  }
1484
1502
  /**
1485
1503
  * @returns VasNoteDto
@@ -1496,18 +1514,8 @@ class VasInstructionProviderModel extends VasAccountObjectModel {
1496
1514
  createdByName: this.createdByName,
1497
1515
  modifiedByName: this.modifiedByName,
1498
1516
  account: this.account,
1499
- form: this.form.toDto(),
1500
- title: this.title,
1501
- secret: this.secret,
1502
- portalEnabled: this.portalEnabled
1503
- };
1504
- }
1505
- toApiDto(options) {
1506
- return {
1507
- ...super.toApiDto(options),
1508
- title: this.title,
1509
- form: this.form.id,
1510
- portalEnabled: this.portalEnabled
1517
+ job: this.job.toDto(),
1518
+ instructionProvider: this.instructionProvider.toDto()
1511
1519
  };
1512
1520
  }
1513
1521
  }