@ironcode/vas-lib 0.0.32 → 0.0.33

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.
@@ -868,8 +868,9 @@ class VasFormModel extends VasRestrictedAccountObjectModel {
868
868
  * @param {string} indexName
869
869
  * @param {string} pipelineName
870
870
  * @param {string} config
871
+ * @param {boolean} geoLocationEnabled
871
872
  */
872
- constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account, accessGroup, jobType, title, description, groups, dynamicDescriptor, indexName, pipelineName, config) {
873
+ constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account, accessGroup, jobType, title, description, groups, dynamicDescriptor, indexName, pipelineName, config, geoLocationEnabled) {
873
874
  super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, account, accessGroup);
874
875
  this.id = id;
875
876
  this.created = created;
@@ -888,6 +889,7 @@ class VasFormModel extends VasRestrictedAccountObjectModel {
888
889
  this.indexName = indexName;
889
890
  this.pipelineName = pipelineName;
890
891
  this.config = config;
892
+ this.geoLocationEnabled = geoLocationEnabled;
891
893
  }
892
894
  /**
893
895
  * Returns the name of this form in a "safe" way, i.e. no spaces, special
@@ -930,7 +932,7 @@ class VasFormModel extends VasRestrictedAccountObjectModel {
930
932
  static fromDto(dto) {
931
933
  return new VasFormModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.account || '', dto.accessGroup || '', dto.jobType || '', dto.title || '', dto.description || '', (dto.groups || [])
932
934
  .sort((a, b) => a.sequence - b.sequence)
933
- .map(g => VasGroupModel.fromDto(g)), dto.dynamicDescriptor || '', dto.indexName || '', dto.pipelineName || '', dto.config || '');
935
+ .map(g => VasGroupModel.fromDto(g)), dto.dynamicDescriptor || '', dto.indexName || '', dto.pipelineName || '', dto.config || '', dto.geoLocationEnabled || false);
934
936
  }
935
937
  addControlTypesToControl(controlTypes) {
936
938
  const controlTypeModels = controlTypes
@@ -1034,7 +1036,8 @@ class VasFormModel extends VasRestrictedAccountObjectModel {
1034
1036
  dynamicDescriptor: this.dynamicDescriptor,
1035
1037
  indexName: this.indexName,
1036
1038
  pipelineName: this.pipelineName,
1037
- config: this.config
1039
+ config: this.config,
1040
+ geoLocationEnabled: this.geoLocationEnabled
1038
1041
  };
1039
1042
  }
1040
1043
  }