@ironcode/vas-lib 1.4.0 → 1.5.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.
- package/cjs/lib/entity/vas-account-object.model.d.ts +1 -1
- package/cjs/lib/entity/vas-account-object.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-account-object.model.js.map +1 -1
- package/cjs/lib/entity/vas-control.model.d.ts +3 -3
- package/cjs/lib/entity/vas-control.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-control.model.js +5 -5
- package/cjs/lib/entity/vas-control.model.js.map +1 -1
- package/cjs/lib/entity/vas-file.dto.d.ts +2 -1
- package/cjs/lib/entity/vas-file.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-file.dto.js.map +1 -1
- package/cjs/lib/entity/vas-file.model.d.ts +3 -3
- package/cjs/lib/entity/vas-file.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-file.model.js +2 -2
- package/cjs/lib/entity/vas-file.model.js.map +1 -1
- package/cjs/lib/entity/vas-form.model.d.ts +1 -0
- package/cjs/lib/entity/vas-form.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-form.model.js +3 -0
- package/cjs/lib/entity/vas-form.model.js.map +1 -1
- package/cjs/lib/entity/vas-group.model.d.ts +3 -2
- package/cjs/lib/entity/vas-group.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-group.model.js +6 -3
- package/cjs/lib/entity/vas-group.model.js.map +1 -1
- package/cjs/lib/entity/vas-job.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.model.js.map +1 -1
- package/cjs/lib/entity/vas-restricted-account-object.model.d.ts +1 -0
- package/cjs/lib/entity/vas-restricted-account-object.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-restricted-account-object.model.js +3 -0
- package/cjs/lib/entity/vas-restricted-account-object.model.js.map +1 -1
- package/cjs/lib/entity/vas-vehicle.dto.d.ts +1 -0
- package/cjs/lib/entity/vas-vehicle.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-vehicle.dto.js.map +1 -1
- package/cjs/lib/entity/vas-vehicle.model.d.ts +2 -1
- package/cjs/lib/entity/vas-vehicle.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-vehicle.model.js +7 -4
- package/cjs/lib/entity/vas-vehicle.model.js.map +1 -1
- package/cjs/package.json +4 -4
- package/esm2020/lib/entity/vas-account-object.model.mjs +1 -1
- package/esm2020/lib/entity/vas-control.model.mjs +14 -6
- package/esm2020/lib/entity/vas-file.dto.mjs +1 -1
- package/esm2020/lib/entity/vas-file.model.mjs +3 -3
- package/esm2020/lib/entity/vas-form.model.mjs +9 -1
- package/esm2020/lib/entity/vas-group.model.mjs +13 -4
- package/esm2020/lib/entity/vas-job.model.mjs +1 -1
- package/esm2020/lib/entity/vas-restricted-account-object.model.mjs +7 -1
- package/esm2020/lib/entity/vas-vehicle.dto.mjs +1 -1
- package/esm2020/lib/entity/vas-vehicle.model.mjs +8 -5
- package/fesm2015/ironcode-vas-lib.mjs +24 -12
- package/fesm2015/ironcode-vas-lib.mjs.map +1 -1
- package/fesm2020/ironcode-vas-lib.mjs +46 -12
- package/fesm2020/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/vas-account-object.model.d.ts +1 -1
- package/lib/entity/vas-control.model.d.ts +3 -3
- package/lib/entity/vas-file.dto.d.ts +2 -1
- package/lib/entity/vas-file.model.d.ts +3 -3
- package/lib/entity/vas-form.model.d.ts +1 -0
- package/lib/entity/vas-group.model.d.ts +3 -2
- package/lib/entity/vas-restricted-account-object.model.d.ts +1 -0
- package/lib/entity/vas-vehicle.dto.d.ts +1 -0
- package/lib/entity/vas-vehicle.model.d.ts +2 -1
- package/package.json +1 -1
|
@@ -236,6 +236,12 @@ class VasRestrictedAccountObjectModel extends VasAccountObjectModel {
|
|
|
236
236
|
this.account = account;
|
|
237
237
|
this.accessGroup = accessGroup;
|
|
238
238
|
}
|
|
239
|
+
toApiDto(options) {
|
|
240
|
+
return {
|
|
241
|
+
...super.toApiDto(options),
|
|
242
|
+
accessGroup: this.accessGroup
|
|
243
|
+
};
|
|
244
|
+
}
|
|
239
245
|
}
|
|
240
246
|
|
|
241
247
|
class VasBranchModel extends VasRestrictedAccountObjectModel {
|
|
@@ -442,9 +448,9 @@ class VasControlTypeModel extends VasBaseModel {
|
|
|
442
448
|
/**
|
|
443
449
|
* ControlModel
|
|
444
450
|
*/
|
|
445
|
-
class VasControlModel extends
|
|
451
|
+
class VasControlModel extends VasRestrictedAccountObjectModel {
|
|
446
452
|
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, accessGroup, controlType, group, validators, name, title, linkable, sequence, description, defaultValue, config, descriptionImage, portalEnabled) {
|
|
447
|
-
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account);
|
|
453
|
+
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, accessGroup);
|
|
448
454
|
this.id = id;
|
|
449
455
|
this.created = created;
|
|
450
456
|
this.serverCreated = serverCreated;
|
|
@@ -534,7 +540,7 @@ class VasControlModel extends VasAccountObjectModel {
|
|
|
534
540
|
return VasControlTypeModel.empty();
|
|
535
541
|
}
|
|
536
542
|
else if (typeof c === 'string') {
|
|
537
|
-
return c;
|
|
543
|
+
return VasControlTypeModel.fromDto({ id: c });
|
|
538
544
|
}
|
|
539
545
|
else {
|
|
540
546
|
return VasControlTypeModel.fromDto(c);
|
|
@@ -593,8 +599,16 @@ class VasControlModel extends VasAccountObjectModel {
|
|
|
593
599
|
return {
|
|
594
600
|
...super.toApiDto(),
|
|
595
601
|
title: this.title || '~',
|
|
596
|
-
name: this.
|
|
602
|
+
name: this.name || '~',
|
|
597
603
|
portalEnabled: this.portalEnabled,
|
|
604
|
+
sequence: this.sequence,
|
|
605
|
+
description: this.description || '~',
|
|
606
|
+
defaultValue: this.defaultValue,
|
|
607
|
+
config: JSON.stringify(this.config),
|
|
608
|
+
controlType: this.controlType.id,
|
|
609
|
+
group: this.group,
|
|
610
|
+
validators: this.validators,
|
|
611
|
+
linkable: this.linkable
|
|
598
612
|
};
|
|
599
613
|
}
|
|
600
614
|
}
|
|
@@ -754,10 +768,10 @@ class VasFileModel extends VasJobDataModel {
|
|
|
754
768
|
description: '',
|
|
755
769
|
displayedName: '',
|
|
756
770
|
rotation: 0
|
|
757
|
-
}, '', '', '', '', '');
|
|
771
|
+
}, '', '', '', 'NEW', '');
|
|
758
772
|
}
|
|
759
773
|
static fromDto(dto) {
|
|
760
|
-
return new VasFileModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.job || '', dto.name || '', dto.fileSize || 0, dto.mimeType || '', dto.sequence || 0, VasFileModel.parseConfig(dto.config), dto.url || '', dto.controlPath || '', dto.message || '', dto.status || '', dto.uri || '');
|
|
774
|
+
return new VasFileModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.job || '', dto.name || '', dto.fileSize || 0, dto.mimeType || '', dto.sequence || 0, VasFileModel.parseConfig(dto.config), dto.url || '', dto.controlPath || '', dto.message || '', dto.status || 'NEW', dto.uri || '');
|
|
761
775
|
}
|
|
762
776
|
static parseConfig(config = '') {
|
|
763
777
|
try {
|
|
@@ -845,9 +859,9 @@ class VasFileModel extends VasJobDataModel {
|
|
|
845
859
|
/**
|
|
846
860
|
* GroupModel
|
|
847
861
|
*/
|
|
848
|
-
class VasGroupModel extends
|
|
862
|
+
class VasGroupModel extends VasRestrictedAccountObjectModel {
|
|
849
863
|
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, accessGroup, name, title, description, sequence, includeInSummary, forms, visibilityControl, visibleIfEquals, controls, scoreWeight) {
|
|
850
|
-
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName);
|
|
864
|
+
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, accessGroup);
|
|
851
865
|
this.id = id;
|
|
852
866
|
this.created = created;
|
|
853
867
|
this.serverCreated = serverCreated;
|
|
@@ -926,6 +940,15 @@ class VasGroupModel extends VasBaseModel {
|
|
|
926
940
|
scoreWeight: this.scoreWeight
|
|
927
941
|
};
|
|
928
942
|
}
|
|
943
|
+
toApiDto(options) {
|
|
944
|
+
return {
|
|
945
|
+
...super.toApiDto(options),
|
|
946
|
+
name: this.name || '~',
|
|
947
|
+
title: this.title || '~',
|
|
948
|
+
sequence: this.sequence || 0,
|
|
949
|
+
includeInSummary: this.includeInSummary
|
|
950
|
+
};
|
|
951
|
+
}
|
|
929
952
|
}
|
|
930
953
|
|
|
931
954
|
/**
|
|
@@ -1108,6 +1131,14 @@ class VasFormModel extends VasRestrictedAccountObjectModel {
|
|
|
1108
1131
|
filesEnabled: this.filesEnabled
|
|
1109
1132
|
};
|
|
1110
1133
|
}
|
|
1134
|
+
toApiDto(options) {
|
|
1135
|
+
return {
|
|
1136
|
+
...super.toApiDto(options),
|
|
1137
|
+
title: this.title || '~',
|
|
1138
|
+
description: this.description || '~',
|
|
1139
|
+
jobType: this.jobType
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1111
1142
|
}
|
|
1112
1143
|
|
|
1113
1144
|
var VasInvitationTypeEnum;
|
|
@@ -2311,7 +2342,7 @@ class VasReportRequestModel extends VasAccountObjectModel {
|
|
|
2311
2342
|
}
|
|
2312
2343
|
|
|
2313
2344
|
class VasVehicleModel extends VasAccountObjectModel {
|
|
2314
|
-
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, registration, make, model, archived) {
|
|
2345
|
+
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, registration, make, model, archived, description) {
|
|
2315
2346
|
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account);
|
|
2316
2347
|
this.id = id;
|
|
2317
2348
|
this.created = created;
|
|
@@ -2327,9 +2358,10 @@ class VasVehicleModel extends VasAccountObjectModel {
|
|
|
2327
2358
|
this.make = make;
|
|
2328
2359
|
this.model = model;
|
|
2329
2360
|
this.archived = archived;
|
|
2361
|
+
this.description = description;
|
|
2330
2362
|
}
|
|
2331
2363
|
static fromDto(dto) {
|
|
2332
|
-
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);
|
|
2364
|
+
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, dto.description || '');
|
|
2333
2365
|
}
|
|
2334
2366
|
toDto() {
|
|
2335
2367
|
return {
|
|
@@ -2346,7 +2378,8 @@ class VasVehicleModel extends VasAccountObjectModel {
|
|
|
2346
2378
|
registration: this.registration,
|
|
2347
2379
|
make: this.make,
|
|
2348
2380
|
model: this.model,
|
|
2349
|
-
archived: this.archived
|
|
2381
|
+
archived: this.archived,
|
|
2382
|
+
description: this.description
|
|
2350
2383
|
};
|
|
2351
2384
|
}
|
|
2352
2385
|
toApiDto(options) {
|
|
@@ -2358,7 +2391,8 @@ class VasVehicleModel extends VasAccountObjectModel {
|
|
|
2358
2391
|
registration: this.registration,
|
|
2359
2392
|
make: this.make,
|
|
2360
2393
|
model: this.model,
|
|
2361
|
-
archived: this.archived
|
|
2394
|
+
archived: this.archived,
|
|
2395
|
+
description: this.description
|
|
2362
2396
|
};
|
|
2363
2397
|
}
|
|
2364
2398
|
}
|