opengate-js 13.2.0 → 14.0.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.
- package/bower.json +1 -1
- package/dist/{opengate-api-bower-13.2.0.js → opengate-api-bower-14.0.0.js} +986 -376
- package/dist/opengate-api-bower-14.0.0.js.map +1 -0
- package/dist/{opengate-api-bower-13.2.0.min.js → opengate-api-bower-14.0.0.min.js} +8 -8
- package/dist/opengate-api-bower-14.0.0.min.js.map +1 -0
- package/dist/src/InternalOpenGateAPI.js +57 -2
- package/dist/src/InternalOpenGateAPI.js.map +1 -1
- package/dist/src/iot/catalog/Datastream.js +0 -17
- package/dist/src/iot/catalog/Datastream.js.map +1 -1
- package/dist/src/iot/datamodels/Datamodels.js +0 -4
- package/dist/src/iot/datamodels/Datamodels.js.map +1 -1
- package/dist/src/manufacturers/Manufacturer.js +14 -20
- package/dist/src/manufacturers/Manufacturer.js.map +1 -1
- package/dist/src/manufacturers/ManufacturerFinder.js +31 -3
- package/dist/src/manufacturers/ManufacturerFinder.js.map +1 -1
- package/dist/src/manufacturers/Model.js +22 -63
- package/dist/src/manufacturers/Model.js.map +1 -1
- package/dist/src/manufacturers/ModelFinder.js +48 -8
- package/dist/src/manufacturers/ModelFinder.js.map +1 -1
- package/dist/src/manufacturers/ModelMedia.js +6 -2
- package/dist/src/manufacturers/ModelMedia.js.map +1 -1
- package/dist/src/operationTypes/OperationType.js +0 -4
- package/dist/src/operationTypes/OperationType.js.map +1 -1
- package/dist/src/organization_manufacturer/Manufacturer.js +232 -0
- package/dist/src/organization_manufacturer/Manufacturer.js.map +1 -0
- package/dist/src/organization_manufacturer/ManufacturerFinder.js +117 -0
- package/dist/src/organization_manufacturer/ManufacturerFinder.js.map +1 -0
- package/dist/src/organization_manufacturer/Model.js +185 -0
- package/dist/src/organization_manufacturer/Model.js.map +1 -0
- package/dist/src/organization_manufacturer/ModelFinder.js +93 -0
- package/dist/src/organization_manufacturer/ModelFinder.js.map +1 -0
- package/dist/src/security/Certificates.js +0 -31
- package/dist/src/security/Certificates.js.map +1 -1
- package/dist/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js +8 -61
- package/dist/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js.map +1 -1
- package/docs/ast/source/InternalOpenGateAPI.js.json +29760 -26563
- package/docs/ast/source/iot/catalog/Datastream.js.json +5410 -6981
- package/docs/ast/source/iot/datamodels/Datamodels.js.json +4900 -5102
- package/docs/ast/source/manufacturers/Manufacturer.js.json +6771 -7127
- package/docs/ast/source/manufacturers/ManufacturerFinder.js.json +5308 -2833
- package/docs/ast/source/manufacturers/Model.js.json +6847 -9810
- package/docs/ast/source/manufacturers/ModelFinder.js.json +7622 -3194
- package/docs/ast/source/manufacturers/ModelMedia.js.json +5118 -4163
- package/docs/ast/source/operationTypes/OperationType.js.json +4909 -5563
- package/docs/ast/source/organization_manufacturer/Manufacturer.js.json +24122 -0
- package/docs/ast/source/organization_manufacturer/ManufacturerFinder.js.json +6837 -0
- package/docs/ast/source/organization_manufacturer/Model.js.json +19358 -0
- package/docs/ast/source/organization_manufacturer/ModelFinder.js.json +6371 -0
- package/docs/ast/source/security/Certificates.js.json +16364 -21990
- package/docs/ast/source/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js.json +2865 -6468
- package/docs/badge.svg +2 -2
- package/docs/class/src/AIModels/AIModels.js~AIModels.html +11 -1
- package/docs/class/src/AIModels/AIModelsFinder.js~AIModelsFinder.html +11 -1
- package/docs/class/src/GenericFinder.js~GenericFinder.html +13 -3
- package/docs/class/src/InternalOpenGateAPI.js~InternalOpenGateAPI.html +554 -154
- package/docs/class/src/ProvisionGenericFinder.js~ProvisionGenericFinder.html +12 -2
- package/docs/class/src/alarms/AlarmActions.js~AlarmActions.html +11 -1
- package/docs/class/src/alarms/actions/Alarm.js~Operation.html +11 -1
- package/docs/class/src/alarms/actions/AlarmActionBuilder.js~AlarmActionBuilder.html +11 -1
- package/docs/class/src/alarms/actions/AlarmAttendBuilder.js~AlarmAttendBuilder.html +11 -1
- package/docs/class/src/alarms/actions/AlarmCloseBuilder.js~AlarmCloseBuilder.html +11 -1
- package/docs/class/src/areas/AreaFinder.js~AreaFinder.html +11 -1
- package/docs/class/src/areas/Areas.js~Areas.html +11 -1
- package/docs/class/src/bulk/BulkExecutionFinder.js~BulkExecutionFinder.html +11 -1
- package/docs/class/src/bulk/BulkFinder.js~BulkFinder.html +11 -1
- package/docs/class/src/bundles/BundleFinder.js~BundleFinder.html +11 -1
- package/docs/class/src/bundles/Bundles.js~Bundles.html +11 -1
- package/docs/class/src/bundles/deployment/DeploymentElement.js~DeploymentElement.html +11 -1
- package/docs/class/src/channels/ChannelFinder.js~ChannelFinder.html +11 -1
- package/docs/class/src/channels/Channels.js~Channels.html +11 -1
- package/docs/class/src/collection/devices/DeviceMessage.js~DeviceMessage.html +11 -1
- package/docs/class/src/collection/devices/collect/CommsModuleMessage.js~CommsModuleMessage.html +11 -1
- package/docs/class/src/collection/devices/collect/Datapoint.js~Datapoint.html +11 -1
- package/docs/class/src/collection/devices/collect/Datastreams.js~Datastream.html +11 -1
- package/docs/class/src/collection/devices/collect/Event.js~Event.html +11 -1
- package/docs/class/src/collection/devices/collect/Hardware.js~Hardware.html +11 -1
- package/docs/class/src/collection/devices/collect/Location.js~Location.html +11 -1
- package/docs/class/src/collection/devices/collect/Mobile.js~Mobile.html +11 -1
- package/docs/class/src/collection/devices/collect/PowerSupply.js~PowerSupply.html +11 -1
- package/docs/class/src/collection/devices/collect/Software.js~Software.html +11 -1
- package/docs/class/src/collection/devices/collect/Storage.js~Storage.html +11 -1
- package/docs/class/src/collection/devices/collect/Subscriber.js~Subscriber.html +11 -1
- package/docs/class/src/collection/devices/collect/Subscription.js~Subscription.html +11 -1
- package/docs/class/src/collection/devices/collect/Temperature.js~Temperature.html +11 -1
- package/docs/class/src/collection/devices/collect/Usage.js~Usage.html +11 -1
- package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctions.js~ConnectorFunctions.html +11 -1
- package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js~ConnectorFunctionsCatalog.html +11 -1
- package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js~ConnectorFunctionsCatalogFinder.html +11 -1
- package/docs/class/src/connectorsFunctions/configuration/ConnectorFunctions.js~ConnectorFunctions.html +11 -1
- package/docs/class/src/connectorsFunctions/configuration/ConnectorFunctionsFinder.js~ConnectorFunctionsFinder.html +11 -1
- package/docs/class/src/connectorsFunctions/configuration/ConnectorFunctionsHelper.js~ConnectorFunctionsHelper.html +11 -1
- package/docs/class/src/datasets/DatasetFinder.js~DatasetFinder.html +11 -1
- package/docs/class/src/datasets/Datasets.js~Datasets.html +11 -1
- package/docs/class/src/domains/Domains.js~Domains.html +11 -1
- package/docs/class/src/domains/DomainsFinder.js~DomainFinder.html +11 -1
- package/docs/class/src/entities/DeviceFinder.js~DeviceFinder.html +11 -1
- package/docs/class/src/entities/EntityFinder.js~EntityFinder.html +11 -1
- package/docs/class/src/entities/SubscribersFinder.js~SubscribersFinder.html +11 -1
- package/docs/class/src/entities/SubscriptionsFinder.js~SubscriptionsFinder.html +11 -1
- package/docs/class/src/entities/TicketFinder.js~TicketFinder.html +11 -1
- package/docs/class/src/geocluster/Geocluster.js~Geocluster.html +11 -1
- package/docs/class/src/geocluster/GeoclusterFinder.js~GeoclusterFinder.html +11 -1
- package/docs/class/src/iot/catalog/Category.js~Category.html +11 -1
- package/docs/class/src/iot/catalog/Datastream.js~Datastream.html +12 -102
- package/docs/class/src/iot/catalog/Qrating.js~Qrating.html +11 -1
- package/docs/class/src/iot/datamodels/Datamodels.js~Datamodels.html +23 -13
- package/docs/class/src/iot/datamodels/DatamodelsFinder.js~DatamodelsFinder.html +11 -1
- package/docs/class/src/iot/datamodels/DatamodelsHelper.js~DatamodelsHelper.html +11 -1
- package/docs/class/src/manufacturers/Manufacturer.js~Manufacturers.html +25 -15
- package/docs/class/src/manufacturers/ManufacturerFinder.js~ManufacturerFinder.html +199 -4
- package/docs/class/src/manufacturers/ManufacturerMedia.js~ManufacturerMedia.html +11 -1
- package/docs/class/src/manufacturers/Model.js~Models.html +21 -211
- package/docs/class/src/manufacturers/ModelFinder.js~ModelFinder.html +245 -12
- package/docs/class/src/manufacturers/ModelMedia.js~ModelMedia.html +20 -10
- package/docs/class/src/operationTypes/OperationType.js~OperationType.html +24 -14
- package/docs/class/src/operationTypes/OperationTypeCatalog.js~OperationTypesCatalog.html +11 -1
- package/docs/class/src/operationTypes/OperationTypeFinder.js~OperationTypeFinder.html +11 -1
- package/docs/class/src/operations/OperationActions.js~OperationActions.html +11 -1
- package/docs/class/src/operations/OperationFinder.js~OperationFinder.html +11 -1
- package/docs/class/src/operations/Operations.js~Operations.html +11 -1
- package/docs/class/src/operations/PeriodicityActions.js~PeriodicityActions.html +11 -1
- package/docs/class/src/operations/catalog/AppendEntitiesBy.js~AppendEntitiesBy.html +11 -1
- package/docs/class/src/operations/catalog/BaseOperationBuilder.js~BaseOperationBuilder.html +11 -1
- package/docs/class/src/operations/catalog/Operation.js~Operation.html +11 -1
- package/docs/class/src/operations/catalog/parameters/BaseParameterBuilderWithParent.js~BaseParameterBuilderWithParent.html +11 -1
- package/docs/class/src/operations/catalog/parameters/ParameterBuilderFactory.js~ParameterBuilderFactory.html +11 -1
- package/docs/class/src/operations/catalog/period/ExecuteEachBuilder.js~ExecuteEachBuilder.html +11 -1
- package/docs/class/src/operations/catalog/period/ExecuteEveryBuilder.js~ExecuteEveryBuilder.html +11 -1
- package/docs/class/src/operations/catalog/period/PeriodicityUpdateBuilder.js~PeriodicityUpdateBuilder.html +11 -1
- package/docs/class/src/operations/catalog/period/pattern/ByGeneric.js~ByGeneric.html +11 -1
- package/docs/class/src/operations/catalog/period/pattern/ByMonth.js~ByMonth.html +11 -1
- package/docs/class/src/operations/catalog/period/pattern/ByWeek.js~ByWeek.html +11 -1
- package/docs/class/src/operations/catalog/period/pattern/ByYear.js~ByYear.html +11 -1
- package/docs/class/src/organization_manufacturer/Manufacturer.js~Manufacturers.html +1712 -0
- package/docs/class/src/organization_manufacturer/ManufacturerFinder.js~ManufacturerFinder.html +847 -0
- package/docs/class/src/organization_manufacturer/Model.js~Models.html +1330 -0
- package/docs/class/src/organization_manufacturer/ModelFinder.js~ModelFinder.html +693 -0
- package/docs/class/src/organizations/OrganizationFinder.js~OrganizationFinder.html +11 -1
- package/docs/class/src/organizations/Organizations.js~Organizations.html +11 -1
- package/docs/class/src/pipelines/PipelineFinder.js~PipelineFinder.html +11 -1
- package/docs/class/src/pipelines/Pipelines.js~Pipelines.html +11 -1
- package/docs/class/src/provision/BaseProvision.js~BaseProvision.html +12 -2
- package/docs/class/src/provision/bulk/BulkExecutionBuilder.js~BulkExecutionBuilder.html +11 -1
- package/docs/class/src/provision/country/CountriesCatalog.js~CountriesCatalog.html +11 -1
- package/docs/class/src/provision/entities/AssetBuilder.js~AssetBuilder.html +11 -1
- package/docs/class/src/provision/entities/BulkBuilder.js~BulkBuilder.html +11 -1
- package/docs/class/src/provision/entities/ComplexBuilder.js~ComplexBuilder.html +11 -1
- package/docs/class/src/provision/entities/CsvBulkBuilder.js~CsvBulkBuilder.html +11 -1
- package/docs/class/src/provision/entities/DeviceBuilder.js~DeviceBuilder.html +11 -1
- package/docs/class/src/provision/entities/EntityBuilder.js~EntityBuilder.html +11 -1
- package/docs/class/src/provision/entities/JsonBulkBuilder.js~JsonBulkBuilder.html +11 -1
- package/docs/class/src/provision/entities/JsonFlattenedBulkBuilder.js~JsonFlattenedBulkBuilder.html +11 -1
- package/docs/class/src/provision/entities/SimpleBuilder.js~SimpleBuilder.html +11 -1
- package/docs/class/src/provision/entities/SubscriberBuilder.js~SubscriberBuilder.html +11 -1
- package/docs/class/src/provision/entities/SubscriptionBuilder.js~SubscriptionBuilder.html +11 -1
- package/docs/class/src/provision/entities/TicketBuilder.js~TicketBuilder.html +11 -1
- package/docs/class/src/provisionProcessors/provisionProcessors.js~ProvisionProcessors.html +11 -1
- package/docs/class/src/provisionProcessors/provisionProcessorsFinder.js~provisionProcessorsFinder.html +11 -1
- package/docs/class/src/rulesConfiguration/RuleConfigurations.js~RuleConfigurations.html +11 -1
- package/docs/class/src/rulesConfiguration/RuleConfigurationsActions.js~RuleConfigurationsActions.html +11 -1
- package/docs/class/src/rulesConfiguration/RuleConfigurationsCatalog.js~RuleConfigurationsCatalog.html +11 -1
- package/docs/class/src/rulesConfiguration/RuleConfigurationsFinder.js~RuleConfigurationsFinder.html +11 -1
- package/docs/class/src/rulesConfiguration/RuleConfigurationsHelper.js~RuleConfigurationsHelper.html +11 -1
- package/docs/class/src/searching/AssetSearch.js~AssetSearch.html +11 -1
- package/docs/class/src/searching/BaseSearch.js~BaseSearch.html +11 -1
- package/docs/class/src/searching/DeviceSearch.js~DeviceSearch.html +11 -1
- package/docs/class/src/searching/EntitySearch.js~EntitySearch.html +11 -1
- package/docs/class/src/searching/FilterBuilder.js~FilterBuilder.html +11 -1
- package/docs/class/src/searching/Search.js~Search.html +11 -1
- package/docs/class/src/searching/SearchWithoutLimit.js~SearchWithoutLimit.html +11 -1
- package/docs/class/src/searching/SelectBuilder.js~SelectBuilder.html +11 -1
- package/docs/class/src/searching/StaticSearch.js~StaticSearch.html +11 -1
- package/docs/class/src/searching/WPSearch.js~WPSearch.html +11 -1
- package/docs/class/src/searching/builder/AdministrativeStateSearchBuilder.js~AdministrativeStateSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/AlarmsSearchBuilder.js~AlarmsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/AllowedResourceTypeSearchBuilder.js~AllowedResourceTypeSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/AreasSearchBuilder.js~AreasSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/AssetsSearchBuilder.js~AssetsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/BasicTypesSearchBuilder.js~BasicTypesSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/BulkExecutionSearchBuilder.js~BulkExecutionSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/BulkSearchBuilder.js~BulkSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/BundlesSearchBuilder.js~BundlesSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/CertificatesSearchBuilder.js~CertificatesSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/ChannelsSearchBuilder.js~ChannelsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/CommunicationsModuleTypeSearchBuilder.js~CommunicationsModuleTypeSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/CountryCodesSearchBuilder.js~CountryCodesSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/DatamodelsSearchBuilder.js~DatamodelsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/DatapointsSearchBuilder.js~DatapointsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/DatasetEntitiesSearchBuilder.js~DatasetEntitiesSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/DatasetSearchBuilder.js~DatasetSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/DatasetsCatalogSearchBuilder.js~DatasetsCatalogSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/DatastreamsSearchBuilder.js~DatastreamsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/DevicesPlansSearchBuilder.js~DevicesPlansSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/DevicesSearchBuilder.js~DevicesSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/DomainsSearchBuilder.js~DomainsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/EntitiesSearchBuilder.js~EntitiesSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/ExecutionsHistorySearchBuilder.js~ExecutionsHistorySearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/ExecutionsSearchBuilder.js~ExecutionsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/FeedsSearchBuilder.js~FeedsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/FieldsDefinitionSearchBuilder.js~FieldsDefinitionSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/FlattenedSearchBuilder.js~FlattenedSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/HardwaresSearchBuilder.js~HardwaresSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/IoTDatastreamAccessSearchBuilder.js~IoTDatastreamAccessSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/IoTDatastreamPeriodSearchBuilder.js~IoTDatastreamPeriodSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/IoTDatastreamStoragePeriodSearchBuilder.js~IoTDatastreamStoragePeriodSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/MobilePhoneProviderSearchBuilder.js~MobilePhoneProviderSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/OperationTypesSearchBuilder.js~OperationTypesBuilder.html +11 -1
- package/docs/class/src/searching/builder/OperationalStatusSearchBuilder.js~OperationalStatusSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/OperationsSearchBuilder.js~OperationsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/OrganizationsSearchBuilder.js~OrganizationsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/PlansSearchBuilder.js~PlansSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/PreFilteredSearchBuilder.js~PreFilteredSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/RawSearchBuilder.js~RawSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/ResourceTypeSearchBuilder.js~ResourceTypeSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/RuleConfigurationSeveritySearchBuilder.js~RuleConfigurationSeveritySearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/RuleModeSearchBuilder.js~RuleModeSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/RuleTypeSearchBuilder.js~RuleTypeSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/RulesSearchBuilder.js~RulesSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/SearchBuilder.js~SearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/SearchWithSummaryBuilder.js~SearchWithSummaryBuilder.html +11 -1
- package/docs/class/src/searching/builder/ServiceGroupSearchBuilder.js~ServiceGroupSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/SoftwaresSearchBuilder.js~SoftwaresSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/SubscribersSearchBuilder.js~SubscribersSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/SubscriptionsSearchBuilder.js~SubscriptionsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/TasksSearchBuilder.js~TasksSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/TicketPrioritySearchBuilder.js~TicketPrioritySearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/TicketSeveritySearchBuilder.js~TicketSeveritySearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/TicketStatusSearchBuilder.js~TicketStatusSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/TicketsSearchBuilder.js~TicketsSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/TimeserieSearchBuilder.js~TimeserieSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/TimezoneSearchBuilder.js~TimezoneSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/UserLanguagesSearchBuilder.js~UserLanguagesSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/UserProfilesSearchBuilder.js~UserProfilesSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/UsersSearchBuilder.js~UsersSearchBuilder.html +11 -1
- package/docs/class/src/searching/builder/WorkgroupsSearchBuilder.js~WorkgroupsSearchBuilder.html +11 -1
- package/docs/class/src/searching/error/SearchBuilderError.js~SearchBuilderError.html +11 -1
- package/docs/class/src/security/CertificateFinder.js~CertificateFinder.html +11 -1
- package/docs/class/src/security/Certificates.js~Certificates.html +16 -106
- package/docs/class/src/security/Security.js~Security.html +11 -1
- package/docs/class/src/timeseries/Timeseries.js~Timeseries.html +11 -1
- package/docs/class/src/timeseries/TimeseriesFinder.js~TimeseriesFinder.html +11 -1
- package/docs/class/src/timeseriesFunctionsCatalog/TimeseriesFunction.js~TimeseriesFunction.html +11 -1
- package/docs/class/src/timeseriesFunctionsCatalog/TimeseriesFunctionFinder.js~TimeseriesFunctionFinder.html +11 -1
- package/docs/class/src/timeseriesFunctionsCatalog/{TimeseriesFunctionsHelper.js~ConnectorFunctionsHelper.html → TimeseriesFunctionsHelper.js~TimeseriesFunctionsHelper.html} +21 -95
- package/docs/class/src/transformers/TransformerFinder.js~TransformerFinder.html +11 -1
- package/docs/class/src/transformers/Transformers.js~Transformers.html +11 -1
- package/docs/class/src/users/UserFinder.js~UserFinder.html +11 -1
- package/docs/class/src/users/Users.js~User.html +11 -1
- package/docs/class/src/util/Expression.js~Expression.html +11 -1
- package/docs/class/src/util/NorthAmpliaREST.js~NorthAmpliaREST.html +11 -1
- package/docs/class/src/util/SelectElement.js~SelectElement.html +11 -1
- package/docs/class/src/util/SouthAmpliaREST.js~SouthAmpliaREST.html +11 -1
- package/docs/class/src/util/searchingFields/FieldFinder.js~FieldFinder.html +11 -1
- package/docs/class/src/workgroups/WorkgroupFinder.js~WorkgroupFinder.html +11 -1
- package/docs/class/src/workgroups/WorkgroupRelations.js~WorkgroupRelations.html +11 -1
- package/docs/class/src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder.html +11 -1
- package/docs/class/src/workgroups/Workgroups.js~Workgroups.html +11 -1
- package/docs/coverage.json +75 -42
- package/docs/dump.json +6219 -3715
- package/docs/file/src/AIModels/AIModels.js.html +11 -1
- package/docs/file/src/AIModels/AIModelsFinder.js.html +11 -1
- package/docs/file/src/GenericFinder.js.html +11 -1
- package/docs/file/src/InternalOpenGateAPI.js.html +49 -3
- package/docs/file/src/ProvisionGenericFinder.js.html +11 -1
- package/docs/file/src/alarms/AlarmActions.js.html +11 -1
- package/docs/file/src/alarms/actions/Alarm.js.html +11 -1
- package/docs/file/src/alarms/actions/AlarmActionBuilder.js.html +11 -1
- package/docs/file/src/alarms/actions/AlarmAttendBuilder.js.html +11 -1
- package/docs/file/src/alarms/actions/AlarmCloseBuilder.js.html +11 -1
- package/docs/file/src/areas/AreaFinder.js.html +11 -1
- package/docs/file/src/areas/Areas.js.html +11 -1
- package/docs/file/src/areas/TYPE_ENUM.js.html +11 -1
- package/docs/file/src/bulk/BulkExecutionFinder.js.html +11 -1
- package/docs/file/src/bulk/BulkFinder.js.html +11 -1
- package/docs/file/src/bundles/ACTION_ENUM.js.html +11 -1
- package/docs/file/src/bundles/BundleFinder.js.html +11 -1
- package/docs/file/src/bundles/Bundles.js.html +11 -1
- package/docs/file/src/bundles/deployment/DeploymentElement.js.html +11 -1
- package/docs/file/src/bundles/deployment/MODE_VALIDATORS_ENUM.js.html +11 -1
- package/docs/file/src/bundles/deployment/OPERATION_ENUM.js.html +11 -1
- package/docs/file/src/bundles/deployment/OPTION_ENUM.js.html +11 -1
- package/docs/file/src/bundles/deployment/TYPE_ENUM.js.html +11 -1
- package/docs/file/src/bundles/deployment/TYPE_VALIDATORS_ENUM.js.html +11 -1
- package/docs/file/src/channels/ChannelFinder.js.html +11 -1
- package/docs/file/src/channels/Channels.js.html +11 -1
- package/docs/file/src/collection/devices/DeviceMessage.js.html +11 -1
- package/docs/file/src/collection/devices/collect/CommsModuleMessage.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Datapoint.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Datastreams.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Event.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Hardware.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Location.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Mobile.js.html +11 -1
- package/docs/file/src/collection/devices/collect/PowerSupply.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Software.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Storage.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Subscriber.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Subscription.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Temperature.js.html +11 -1
- package/docs/file/src/collection/devices/collect/Usage.js.html +11 -1
- package/docs/file/src/collection/devices/collect/enum/ADDRESS_TYPE_ENUM.js.html +11 -1
- package/docs/file/src/collection/devices/collect/enum/ANTENNA_STATUS_ENUM.js.html +11 -1
- package/docs/file/src/collection/devices/collect/enum/BATTERY_CHARGE_LEVEL_STATUS_ENUM.js.html +11 -1
- package/docs/file/src/collection/devices/collect/enum/BATTERY_CHARGE_STATUS_ENUM.js.html +11 -1
- package/docs/file/src/collection/devices/collect/enum/LEVEL_TREND_ENUM.js.html +11 -1
- package/docs/file/src/collection/devices/collect/enum/POWER_SUPPLY_SOURCE_ENUM.js.html +11 -1
- package/docs/file/src/collection/devices/collect/enum/SOFTWARE_TYPE_ENUM.js.html +11 -1
- package/docs/file/src/collection/devices/collect/enum/TEMPERATURE_STATUS_ENUM.js.html +11 -1
- package/docs/file/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js.html +11 -1
- package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctions.js.html +11 -1
- package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js.html +11 -1
- package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js.html +11 -1
- package/docs/file/src/connectorsFunctions/configuration/ConnectorFunctions.js.html +11 -1
- package/docs/file/src/connectorsFunctions/configuration/ConnectorFunctionsFinder.js.html +11 -1
- package/docs/file/src/connectorsFunctions/configuration/ConnectorFunctionsHelper.js.html +11 -1
- package/docs/file/src/datasets/DatasetFinder.js.html +11 -1
- package/docs/file/src/datasets/Datasets.js.html +11 -1
- package/docs/file/src/domains/Domains.js.html +11 -1
- package/docs/file/src/domains/DomainsFinder.js.html +11 -1
- package/docs/file/src/entities/DeviceFinder.js.html +11 -1
- package/docs/file/src/entities/EntityFinder.js.html +11 -1
- package/docs/file/src/entities/SubscribersFinder.js.html +11 -1
- package/docs/file/src/entities/SubscriptionsFinder.js.html +11 -1
- package/docs/file/src/entities/TicketFinder.js.html +11 -1
- package/docs/file/src/geocluster/Geocluster.js.html +11 -1
- package/docs/file/src/geocluster/GeoclusterFinder.js.html +11 -1
- package/docs/file/src/iot/catalog/Category.js.html +11 -1
- package/docs/file/src/iot/catalog/Datastream.js.html +11 -16
- package/docs/file/src/iot/catalog/Qrating.js.html +11 -1
- package/docs/file/src/iot/datamodels/Datamodels.js.html +11 -2
- package/docs/file/src/iot/datamodels/DatamodelsFinder.js.html +11 -1
- package/docs/file/src/iot/datamodels/DatamodelsHelper.js.html +11 -1
- package/docs/file/src/manufacturers/Manufacturer.js.html +24 -20
- package/docs/file/src/manufacturers/ManufacturerFinder.js.html +39 -4
- package/docs/file/src/manufacturers/ManufacturerMedia.js.html +11 -1
- package/docs/file/src/manufacturers/Model.js.html +34 -61
- package/docs/file/src/manufacturers/ModelFinder.js.html +53 -7
- package/docs/file/src/manufacturers/ModelMedia.js.html +16 -3
- package/docs/file/src/operationTypes/OperationType.js.html +11 -5
- package/docs/file/src/operationTypes/OperationTypeCatalog.js.html +11 -1
- package/docs/file/src/operationTypes/OperationTypeFinder.js.html +11 -1
- package/docs/file/src/operations/OperationActions.js.html +11 -1
- package/docs/file/src/operations/OperationFinder.js.html +11 -1
- package/docs/file/src/operations/Operations.js.html +11 -1
- package/docs/file/src/operations/PeriodicityActions.js.html +11 -1
- package/docs/file/src/operations/catalog/AppendEntitiesBy.js.html +11 -1
- package/docs/file/src/operations/catalog/BaseOperationBuilder.js.html +11 -1
- package/docs/file/src/operations/catalog/Operation.js.html +11 -1
- package/docs/file/src/operations/catalog/parameters/BaseParameterBuilderWithParent.js.html +11 -1
- package/docs/file/src/operations/catalog/parameters/ParameterBuilderFactory.js.html +11 -1
- package/docs/file/src/operations/catalog/period/DAYS_ENUM.js.html +11 -1
- package/docs/file/src/operations/catalog/period/ExecuteEachBuilder.js.html +11 -1
- package/docs/file/src/operations/catalog/period/ExecuteEveryBuilder.js.html +11 -1
- package/docs/file/src/operations/catalog/period/MONTHS_ENUM.js.html +11 -1
- package/docs/file/src/operations/catalog/period/PeriodicityUpdateBuilder.js.html +11 -1
- package/docs/file/src/operations/catalog/period/pattern/ByGeneric.js.html +11 -1
- package/docs/file/src/operations/catalog/period/pattern/ByMonth.js.html +11 -1
- package/docs/file/src/operations/catalog/period/pattern/ByWeek.js.html +11 -1
- package/docs/file/src/operations/catalog/period/pattern/ByYear.js.html +11 -1
- package/docs/file/src/organization_manufacturer/Manufacturer.js.html +501 -0
- package/docs/file/src/organization_manufacturer/ManufacturerFinder.js.html +394 -0
- package/docs/file/src/organization_manufacturer/Model.js.html +459 -0
- package/docs/file/src/organization_manufacturer/ModelFinder.js.html +373 -0
- package/docs/file/src/organizations/OrganizationFinder.js.html +11 -1
- package/docs/file/src/organizations/Organizations.js.html +11 -1
- package/docs/file/src/pipelines/PipelineFinder.js.html +11 -1
- package/docs/file/src/pipelines/Pipelines.js.html +11 -1
- package/docs/file/src/provision/BaseProvision.js.html +11 -1
- package/docs/file/src/provision/bulk/BulkExecutionBuilder.js.html +11 -1
- package/docs/file/src/provision/country/CountriesCatalog.js.html +11 -1
- package/docs/file/src/provision/entities/AssetBuilder.js.html +11 -1
- package/docs/file/src/provision/entities/BulkBuilder.js.html +11 -1
- package/docs/file/src/provision/entities/ComplexBuilder.js.html +11 -1
- package/docs/file/src/provision/entities/CsvBulkBuilder.js.html +11 -1
- package/docs/file/src/provision/entities/DeviceBuilder.js.html +11 -1
- package/docs/file/src/provision/entities/EntityBuilder.js.html +11 -1
- package/docs/file/src/provision/entities/JsonBulkBuilder.js.html +11 -1
- package/docs/file/src/provision/entities/JsonFlattenedBulkBuilder.js.html +11 -1
- package/docs/file/src/provision/entities/SimpleBuilder.js.html +11 -1
- package/docs/file/src/provision/entities/SubscriberBuilder.js.html +11 -1
- package/docs/file/src/provision/entities/SubscriptionBuilder.js.html +11 -1
- package/docs/file/src/provision/entities/TicketBuilder.js.html +11 -1
- package/docs/file/src/provisionProcessors/provisionProcessors.js.html +11 -1
- package/docs/file/src/provisionProcessors/provisionProcessorsFinder.js.html +11 -1
- package/docs/file/src/rulesConfiguration/RuleConfigurations.js.html +11 -1
- package/docs/file/src/rulesConfiguration/RuleConfigurationsActions.js.html +11 -1
- package/docs/file/src/rulesConfiguration/RuleConfigurationsCatalog.js.html +11 -1
- package/docs/file/src/rulesConfiguration/RuleConfigurationsFinder.js.html +11 -1
- package/docs/file/src/rulesConfiguration/RuleConfigurationsHelper.js.html +11 -1
- package/docs/file/src/rulesConfiguration/_RuleCondition.js.html +11 -1
- package/docs/file/src/rulesConfiguration/_RuleNotification.js.html +11 -1
- package/docs/file/src/searching/AssetSearch.js.html +11 -1
- package/docs/file/src/searching/BaseSearch.js.html +11 -1
- package/docs/file/src/searching/DeviceSearch.js.html +11 -1
- package/docs/file/src/searching/EntitySearch.js.html +11 -1
- package/docs/file/src/searching/FilterBuilder.js.html +11 -1
- package/docs/file/src/searching/Search.js.html +11 -1
- package/docs/file/src/searching/SearchWithoutLimit.js.html +11 -1
- package/docs/file/src/searching/SelectBuilder.js.html +11 -1
- package/docs/file/src/searching/StaticSearch.js.html +11 -1
- package/docs/file/src/searching/WPSearch.js.html +11 -1
- package/docs/file/src/searching/builder/AdministrativeStateSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/AlarmsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/AllowedResourceTypeSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/AreasSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/AssetsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/BasicTypesSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/BulkExecutionSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/BulkSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/BundlesSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/CertificatesSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/ChannelsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/CommunicationsModuleTypeSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/CountryCodesSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/DatamodelsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/DatapointsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/DatasetEntitiesSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/DatasetSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/DatasetsCatalogSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/DatastreamsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/DevicesPlansSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/DevicesSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/DomainsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/EntitiesSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/ExecutionsHistorySearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/ExecutionsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/FeedsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/FieldsDefinitionSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/FlattenedSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/HardwaresSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/IoTDatastreamAccessSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/IoTDatastreamPeriodSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/IoTDatastreamStoragePeriodSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/MobilePhoneProviderSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/OperationTypesSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/OperationalStatusSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/OperationsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/OrganizationsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/PlansSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/PreFilteredSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/RawSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/ResourceTypeSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/RuleConfigurationSeveritySearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/RuleModeSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/RuleTypeSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/RulesSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/SearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/SearchWithSummaryBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/ServiceGroupSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/SoftwaresSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/SubscribersSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/SubscriptionsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/TasksSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/TicketPrioritySearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/TicketSeveritySearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/TicketStatusSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/TicketsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/TimeserieSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/TimezoneSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/UserLanguagesSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/UserProfilesSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/UsersSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/builder/WorkgroupsSearchBuilder.js.html +11 -1
- package/docs/file/src/searching/error/SearchBuilderError.js.html +11 -1
- package/docs/file/src/security/ADMINISTRATIVE_STATE_ENUM.js.html +11 -1
- package/docs/file/src/security/CertificateFinder.js.html +11 -1
- package/docs/file/src/security/Certificates.js.html +11 -34
- package/docs/file/src/security/MIME_TYPES_ENUM.js.html +11 -1
- package/docs/file/src/security/Security.js.html +11 -1
- package/docs/file/src/security/USAGES_ENUM.js.html +11 -1
- package/docs/file/src/timeseries/Timeseries.js.html +11 -1
- package/docs/file/src/timeseries/TimeseriesFinder.js.html +11 -1
- package/docs/file/src/timeseriesFunctionsCatalog/TYPES_ENUM.js.html +11 -1
- package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunction.js.html +11 -1
- package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunctionFinder.js.html +11 -1
- package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js.html +12 -278
- package/docs/file/src/transformers/TransformerFinder.js.html +11 -1
- package/docs/file/src/transformers/Transformers.js.html +11 -1
- package/docs/file/src/users/UserFinder.js.html +11 -1
- package/docs/file/src/users/Users.js.html +11 -1
- package/docs/file/src/util/DATE_FORMAT.js.html +11 -1
- package/docs/file/src/util/Expression.js.html +11 -1
- package/docs/file/src/util/NorthAmpliaREST.js.html +11 -1
- package/docs/file/src/util/SelectElement.js.html +11 -1
- package/docs/file/src/util/SouthAmpliaREST.js.html +11 -1
- package/docs/file/src/util/formats/check_types.js.html +11 -1
- package/docs/file/src/util/searchingFields/FieldFinder.js.html +11 -1
- package/docs/file/src/util/searchingFields/IotFields.js.html +11 -1
- package/docs/file/src/util/searchingFields/source-precompiled/Fields.js.html +11 -1
- package/docs/file/src/workgroups/WorkgroupFinder.js.html +11 -1
- package/docs/file/src/workgroups/WorkgroupRelations.js.html +11 -1
- package/docs/file/src/workgroups/WorkgroupRelationsFinder.js.html +11 -1
- package/docs/file/src/workgroups/Workgroups.js.html +11 -1
- package/docs/identifiers.html +313 -29
- package/docs/index.html +11 -1
- package/docs/manual/index.html +302 -28
- package/docs/package.json +1 -1
- package/docs/script/search_index.js +336 -54
- package/docs/source.html +318 -270
- package/docs/test-file/client/autogeneratedFields/fields.spec.js.html +11 -1
- package/docs/test-file/client/bundles/bundles.spec.js.html +11 -1
- package/docs/test-file/client/collection/iot.spec.js.html +11 -1
- package/docs/test-file/client/device/device.spec.js.html +11 -1
- package/docs/test-file/client/provision/devices.provision.spec.js.html +11 -1
- package/docs/test-file/client/searching/FilterBuilder.spec.js.html +11 -1
- package/docs/test-file/client/searching/datapoints.search.spec.js.html +11 -1
- package/docs/test-file/client/searching/module.searching.spec.js.html +11 -1
- package/docs/test-file/client/searching/rawsearch.spec.js.html +11 -1
- package/docs/test-file/client/searching/search.spec.js.html +11 -1
- package/docs/test-file/client/security/certificates.spec.js.html +11 -1
- package/docs/test-file/client/users/find.spec.js.html +11 -1
- package/docs/test-file/client/users/user.spec.js.html +11 -1
- package/docs/test.html +11 -1
- package/docs/variable/index.html +435 -5
- package/features/features/provision/manufacturer/create_manufacturer.feature +13 -50
- package/features/step_definitions/when_step_definitions.js +13 -0
- package/features/support/world.js +4 -4
- package/package.json +1 -1
- package/src/InternalOpenGateAPI.js +38 -2
- package/src/iot/catalog/Datastream.js +0 -15
- package/src/iot/datamodels/Datamodels.js +0 -1
- package/src/manufacturers/Manufacturer.js +13 -19
- package/src/manufacturers/ManufacturerFinder.js +28 -3
- package/src/manufacturers/Model.js +23 -60
- package/src/manufacturers/ModelFinder.js +42 -6
- package/src/manufacturers/ModelMedia.js +5 -2
- package/src/operationTypes/OperationType.js +0 -4
- package/src/organization_manufacturer/Manufacturer.js +185 -0
- package/src/organization_manufacturer/ManufacturerFinder.js +77 -0
- package/src/organization_manufacturer/Model.js +143 -0
- package/src/organization_manufacturer/ModelFinder.js +56 -0
- package/src/security/Certificates.js +0 -33
- package/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js +1 -277
- package/dist/opengate-api-bower-13.2.0.js.map +0 -1
- package/dist/opengate-api-bower-13.2.0.min.js.map +0 -1
package/package.json
CHANGED
|
@@ -142,6 +142,11 @@ import ManufacturersBuilder from './manufacturers/Manufacturer'
|
|
|
142
142
|
import ManufacturerModelsBuilder from './manufacturers/Model'
|
|
143
143
|
import ManufacturerFinder from './manufacturers/ManufacturerFinder'
|
|
144
144
|
import ModelFinder from './manufacturers/ModelFinder'
|
|
145
|
+
import OrganizationManufacturersBuilder from './organization_manufacturer/Manufacturer'
|
|
146
|
+
import OrganizationManufacturerModelsBuilder from './organization_manufacturer/Model'
|
|
147
|
+
import OrganizationManufacturerFinder from './organization_manufacturer/ManufacturerFinder'
|
|
148
|
+
import OrganizationModelFinder from './organization_manufacturer/ModelFinder'
|
|
149
|
+
|
|
145
150
|
import CountriesCatalog from './provision/country/CountriesCatalog';
|
|
146
151
|
|
|
147
152
|
const RequestEndMonkeyPatching = (function(){
|
|
@@ -1272,8 +1277,8 @@ export default class InternalOpenGateAPI {
|
|
|
1272
1277
|
* This return a ManufacturerModelsBuilder to build a specific ManufacturerModelsBuilder
|
|
1273
1278
|
* @return {ManufacturerModelsBuilder}
|
|
1274
1279
|
*/
|
|
1275
|
-
manufacturerModelsBuilder() {
|
|
1276
|
-
return new ManufacturerModelsBuilder(this);
|
|
1280
|
+
manufacturerModelsBuilder(manufacturerIdentifier) {
|
|
1281
|
+
return new ManufacturerModelsBuilder(this, manufacturerIdentifier);
|
|
1277
1282
|
}
|
|
1278
1283
|
|
|
1279
1284
|
/**
|
|
@@ -1291,4 +1296,35 @@ export default class InternalOpenGateAPI {
|
|
|
1291
1296
|
newModelFinder() {
|
|
1292
1297
|
return new ModelFinder(this);
|
|
1293
1298
|
}
|
|
1299
|
+
|
|
1300
|
+
/** This return a OrganizationManufacturersBuilder to build a specific OrganizationManufacturersBuilder
|
|
1301
|
+
* @return {OrganizationManufacturersBuilder}
|
|
1302
|
+
*/
|
|
1303
|
+
organizationManufacturersBuilder(organization) {
|
|
1304
|
+
return new OrganizationManufacturersBuilder(this, organization);
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* This return a OrganizationManufacturerModelsBuilder to build a specific OrganizationManufacturerModelsBuilder
|
|
1309
|
+
* @return {OrganizationManufacturerModelsBuilder}
|
|
1310
|
+
*/
|
|
1311
|
+
organizationManufacturerModelsBuilder(organization, manufacturerIdentifier) {
|
|
1312
|
+
return new OrganizationManufacturerModelsBuilder(this, organization, manufacturerIdentifier);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* This return a util to find a hardware manufacturer
|
|
1317
|
+
* @return {OrganizationManufacturerFinder}
|
|
1318
|
+
*/
|
|
1319
|
+
newOrganizationManufacturersFinder() {
|
|
1320
|
+
return new OrganizationManufacturerFinder(this);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* This return a util to find a hardware model
|
|
1325
|
+
* @return {OrganizationModelFinder}
|
|
1326
|
+
*/
|
|
1327
|
+
newOrganizationModelFinder() {
|
|
1328
|
+
return new OrganizationModelFinder(this);
|
|
1329
|
+
}
|
|
1294
1330
|
}
|
|
@@ -149,21 +149,6 @@ export default class Datastream {
|
|
|
149
149
|
return this;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
/**
|
|
153
|
-
* Set the hardwaresIds object.
|
|
154
|
-
* @param {Array} hardwaresIds
|
|
155
|
-
* @return {Datastream}
|
|
156
|
-
*/
|
|
157
|
-
withHardwaresIds(hardwaresIds) {
|
|
158
|
-
if (hardwaresIds) {
|
|
159
|
-
if (!Array.isArray(hardwaresIds)) {
|
|
160
|
-
throw new Error('hardware Ids must be an array on Datastream');
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
this._hardwares = hardwaresIds;
|
|
164
|
-
return this;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
152
|
/**
|
|
168
153
|
* Build a Datastream json object
|
|
169
154
|
*
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import BaseProvision from '../../provision/BaseProvision';
|
|
3
3
|
import Category from '../catalog/Category';
|
|
4
|
-
import Datastream from '../catalog/Datastream';
|
|
5
4
|
|
|
6
5
|
export const PRE_RESOURCE = '/organizations';
|
|
7
6
|
export const DATAMODELS_RESOURCE = '/datamodels';
|
|
@@ -4,6 +4,7 @@ import BaseProvision from '../provision/BaseProvision';
|
|
|
4
4
|
import ManufacturerMedia from './ManufacturerMedia';
|
|
5
5
|
import Model from './Model';
|
|
6
6
|
|
|
7
|
+
export const MANUFACTURERS_RESOURCE = '/manufacturers'
|
|
7
8
|
/**
|
|
8
9
|
* This is a base object that contains all you can do about Manufacturers.
|
|
9
10
|
*/
|
|
@@ -13,7 +14,7 @@ export default class Manufacturers extends BaseProvision {
|
|
|
13
14
|
* @param {InternalOpenGateAPI} Reference to the API object.
|
|
14
15
|
*/
|
|
15
16
|
constructor(ogapi) {
|
|
16
|
-
super(ogapi,
|
|
17
|
+
super(ogapi, MANUFACTURERS_RESOURCE, undefined, ['name']);
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
/**
|
|
@@ -133,39 +134,32 @@ export default class Manufacturers extends BaseProvision {
|
|
|
133
134
|
modelBuilder() {
|
|
134
135
|
if (!this._identifier)
|
|
135
136
|
throw new Error("Required manufacturer identifier and name");
|
|
136
|
-
return new Model(this._ogapi, this)
|
|
137
|
+
return new Model(this._ogapi, this._identifier)
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
_composeElement() {
|
|
140
141
|
this._checkRequiredParameters()
|
|
141
142
|
|
|
142
143
|
var updateData = {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
notes: this._notes || undefined,
|
|
152
|
-
email: this._email || undefined
|
|
153
|
-
}
|
|
144
|
+
name: this._name || undefined,
|
|
145
|
+
description: this._description || undefined,
|
|
146
|
+
telephone: this._telephone || undefined,
|
|
147
|
+
address: this._address || undefined,
|
|
148
|
+
fax: this._fax || undefined,
|
|
149
|
+
url: this._manufUrl || undefined,
|
|
150
|
+
notes: this._notes || undefined,
|
|
151
|
+
email: this._email || undefined
|
|
154
152
|
};
|
|
155
153
|
|
|
156
154
|
return updateData;
|
|
157
155
|
}
|
|
158
156
|
|
|
159
157
|
_composeUpdateElement() {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
delete updateElement.manufacturer.id
|
|
163
|
-
|
|
164
|
-
return updateElement
|
|
158
|
+
return this._composeElement();
|
|
165
159
|
}
|
|
166
160
|
|
|
167
161
|
_buildURL() {
|
|
168
|
-
var url = this._resource + "/" + this._identifier
|
|
162
|
+
var url = this._resource + (this._identifier? "/" + this._identifier: "")
|
|
169
163
|
return url;
|
|
170
164
|
}
|
|
171
165
|
}
|
|
@@ -21,14 +21,25 @@ export default class ManufacturerFinder extends ProvisionGenericFinder {
|
|
|
21
21
|
* @private
|
|
22
22
|
*/
|
|
23
23
|
_composeUrl() {
|
|
24
|
-
return this._baseUrl + "/" + this._identifier + (this.
|
|
24
|
+
return this._baseUrl + (this._identifier ? "/" + this._identifier + (this._media? "/media" + (this._mediaIdentifier? "/" + this._mediaIdentifier + '?format=raw': '') : ''):'');
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Download a specific manufacturer by its id. This execute a GET http method
|
|
29
29
|
* @test
|
|
30
|
-
* ogapi.newManufacturerFinder().
|
|
31
|
-
* @
|
|
30
|
+
* ogapi.newManufacturerFinder().findAll().then().catch();
|
|
31
|
+
* @return {Promise}
|
|
32
|
+
*/
|
|
33
|
+
findAll() {
|
|
34
|
+
return this._execute();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Download a specific manufacturer by its id. This execute a GET http method
|
|
40
|
+
* @test
|
|
41
|
+
* ogapi.newManufacturerFinder().findById('manufacturerIdentifier').then().catch();
|
|
42
|
+
* @param {string} identifier - manufacturer identifier .
|
|
32
43
|
* @return {Promise}
|
|
33
44
|
*/
|
|
34
45
|
findById(identifier) {
|
|
@@ -36,6 +47,19 @@ export default class ManufacturerFinder extends ProvisionGenericFinder {
|
|
|
36
47
|
return this._execute();
|
|
37
48
|
}
|
|
38
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Download manufacturer medias. This execute a GET http method
|
|
52
|
+
* @test
|
|
53
|
+
* ogapi.newManufacturerFinder().findMedias('manufacturerId', 'mediaIdentifier').then().catch();
|
|
54
|
+
* @param {string} manufacturerId - manufacturer identifier .
|
|
55
|
+
* @return {Promise}
|
|
56
|
+
*/
|
|
57
|
+
findMedias(manufacturerId) {
|
|
58
|
+
this._media = true
|
|
59
|
+
this._identifier = manufacturerId;
|
|
60
|
+
return this._execute();
|
|
61
|
+
}
|
|
62
|
+
|
|
39
63
|
/**
|
|
40
64
|
* Download a specific manufacturer media by its ids. This execute a GET http method
|
|
41
65
|
* @test
|
|
@@ -45,6 +69,7 @@ export default class ManufacturerFinder extends ProvisionGenericFinder {
|
|
|
45
69
|
* @return {Promise}
|
|
46
70
|
*/
|
|
47
71
|
findMediaById(manufacturerId, mediaIdentifier) {
|
|
72
|
+
this._media = true
|
|
48
73
|
this._identifier = manufacturerId;
|
|
49
74
|
this._mediaIdentifier = mediaIdentifier;
|
|
50
75
|
return this._download();
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
import BaseProvision from '../provision/BaseProvision';
|
|
4
|
-
import Manufacturers from './Manufacturer';
|
|
5
4
|
import ModelMedia from './ModelMedia';
|
|
6
5
|
|
|
6
|
+
import {MANUFACTURERS_RESOURCE} from './Manufacturer'
|
|
7
|
+
|
|
8
|
+
export const MODELS_RESOURCE = '/models';
|
|
9
|
+
|
|
7
10
|
/**
|
|
8
11
|
* This is a base object that contains all you can do about Models.
|
|
9
12
|
*/
|
|
@@ -13,9 +16,10 @@ export default class Models extends BaseProvision {
|
|
|
13
16
|
* @param {InternalOpenGateAPI} Reference to the API object.
|
|
14
17
|
*/
|
|
15
18
|
constructor(ogapi, manufacturer) {
|
|
16
|
-
super(ogapi,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
super(ogapi, MANUFACTURERS_RESOURCE, undefined, ['name']);
|
|
20
|
+
this._isValidString(manufacturer, 'manufacturer', 50);
|
|
21
|
+
|
|
22
|
+
this._resource = this._resource + "/" + manufacturer + MODELS_RESOURCE;
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
/**
|
|
@@ -90,78 +94,37 @@ export default class Models extends BaseProvision {
|
|
|
90
94
|
return this;
|
|
91
95
|
}
|
|
92
96
|
|
|
93
|
-
/**
|
|
94
|
-
* Set the manufacturer identifier attribute
|
|
95
|
-
* @param {string} id
|
|
96
|
-
* @return {Manufacturers}
|
|
97
|
-
*/
|
|
98
|
-
withManufacturerIdentifier(id) {
|
|
99
|
-
if (typeof id !== 'string' || id.length > 50)
|
|
100
|
-
throw new Error("OGAPI_STRING_PARAMETER_MAX_LENGTH_50");
|
|
101
|
-
if (!this._manufacturer) {
|
|
102
|
-
this._manufacturer = new Manufacturers(this._ogapi)
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
this._manufacturer.withIdentifier(id);
|
|
106
|
-
return this;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Set the manufacturer name attribute
|
|
111
|
-
* @param {string} name
|
|
112
|
-
* @return {Models}
|
|
113
|
-
*/
|
|
114
|
-
withManufacturerName(name) {
|
|
115
|
-
if (!name)
|
|
116
|
-
throw new Error("OGAPI_STRING_PARAMETER");
|
|
117
|
-
|
|
118
|
-
if (!this._manufacturer) {
|
|
119
|
-
this._manufacturer = new Manufacturers(this._ogapi)
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
this._manufacturer.withName(name);
|
|
123
|
-
|
|
124
|
-
return this;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
97
|
mediaBuilder() {
|
|
129
|
-
if (!this._identifier)
|
|
130
|
-
throw new Error("Required model identifier");
|
|
131
|
-
return new ModelMedia(this._ogapi, this._identifier)
|
|
98
|
+
if (!this._manufacturer || !this._identifier)
|
|
99
|
+
throw new Error("Required manufacturer and model identifier");
|
|
100
|
+
return new ModelMedia(this._ogapi, this._manufacturer, this._identifier)
|
|
132
101
|
}
|
|
133
102
|
|
|
134
103
|
_composeElement() {
|
|
135
104
|
this._checkRequiredParameters()
|
|
136
105
|
|
|
137
106
|
var updateData = {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
notes: this._notes || undefined,
|
|
144
|
-
url: this._modelUrl || undefined,
|
|
145
|
-
manufacturer: {
|
|
146
|
-
id: this._manufacturer._identifier || undefined,
|
|
147
|
-
name: this._manufacturer._name || undefined
|
|
148
|
-
}
|
|
149
|
-
}
|
|
107
|
+
name: this._name || undefined,
|
|
108
|
+
description: this._description || undefined,
|
|
109
|
+
version: this._version || undefined,
|
|
110
|
+
notes: this._notes || undefined,
|
|
111
|
+
url: this._modelUrl || undefined
|
|
150
112
|
};
|
|
151
113
|
|
|
152
114
|
return updateData;
|
|
153
115
|
}
|
|
154
116
|
|
|
155
117
|
_composeUpdateElement() {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
delete updateElement.model.id
|
|
159
|
-
|
|
160
|
-
return updateElement
|
|
118
|
+
return this._composeElement()
|
|
161
119
|
}
|
|
162
120
|
|
|
163
121
|
_buildURL() {
|
|
164
|
-
var url = this._resource + "/" + this._identifier
|
|
122
|
+
var url = this._resource + (this._identifier?"/" + this._identifier: "")
|
|
165
123
|
return url;
|
|
166
124
|
}
|
|
125
|
+
|
|
126
|
+
_isValidString(string, param_name, max_length) {
|
|
127
|
+
if (typeof string !== 'string' || string.length === 0 || string.length > max_length)
|
|
128
|
+
throw new Error('Parameter ' + param_name + ' must be a string, cannot be empty and has a maximum length of ' + max_length);
|
|
129
|
+
}
|
|
167
130
|
}
|
|
@@ -4,6 +4,10 @@ import ProvisionGenericFinder from '../ProvisionGenericFinder';
|
|
|
4
4
|
import q from 'q';
|
|
5
5
|
import HttpStatus from 'http-status-codes';
|
|
6
6
|
|
|
7
|
+
// import { MANUFACTURERS_RESOURCE } from './Manufacturer';
|
|
8
|
+
import { MODELS_RESOURCE } from './Model';
|
|
9
|
+
|
|
10
|
+
|
|
7
11
|
/**
|
|
8
12
|
* This class allow make get request to hardware models resource into Opengate North API.
|
|
9
13
|
*/
|
|
@@ -13,7 +17,7 @@ export default class ModelFinder extends ProvisionGenericFinder {
|
|
|
13
17
|
* @param {InternalOpenGateAPI} Reference to the API object.
|
|
14
18
|
*/
|
|
15
19
|
constructor(ogapi) {
|
|
16
|
-
super(ogapi, '
|
|
20
|
+
super(ogapi, 'manufacturers', undefined, 'Model not found');
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
/**
|
|
@@ -21,17 +25,46 @@ export default class ModelFinder extends ProvisionGenericFinder {
|
|
|
21
25
|
* @private
|
|
22
26
|
*/
|
|
23
27
|
_composeUrl() {
|
|
24
|
-
return this._baseUrl + "/" + this._identifier + (this.
|
|
28
|
+
return this._baseUrl + "/" + this._manufacturer + MODELS_RESOURCE + (this._identifier? "/" + this._identifier + (this._media? "/media" + (this._mediaIdentifier? "/" + this._mediaIdentifier + '?format=raw': '') : ""):"");
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Download all models from a manufacturer. This execute a GET http method
|
|
33
|
+
* @test
|
|
34
|
+
* ogapi.newModelFinder().findByManufacturer('manufacturer').then().catch();
|
|
35
|
+
* @param {string} manufacturer - manufacturer id .
|
|
36
|
+
* @return {Promise}
|
|
37
|
+
*/
|
|
38
|
+
findByManufacturer(manufacturer) {
|
|
39
|
+
this._manufacturer = manufacturer;
|
|
40
|
+
return this._execute();
|
|
25
41
|
}
|
|
26
42
|
|
|
27
43
|
/**
|
|
28
44
|
* Download a specific model by its id. This execute a GET http method
|
|
29
45
|
* @test
|
|
30
|
-
* ogapi.newModelFinder().
|
|
46
|
+
* ogapi.newModelFinder().findByManufacturerAndId('manufacturer', 'modelname').then().catch();
|
|
47
|
+
* @param {string} manufacturer - manufacturer id .
|
|
31
48
|
* @param {string} identifier - model name .
|
|
32
49
|
* @return {Promise}
|
|
33
50
|
*/
|
|
34
|
-
|
|
51
|
+
findByManufacturerAndId(manufacturer, identifier) {
|
|
52
|
+
this._manufacturer = manufacturer;
|
|
53
|
+
this._identifier = identifier;
|
|
54
|
+
return this._execute();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Download a specific model media by its ids. This execute a GET http method
|
|
59
|
+
* @test
|
|
60
|
+
* ogapi.newModelFinder().findMediasByManufacturerAndModel('manufacturer', 'modelId').then().catch();
|
|
61
|
+
* @param {string} manufacturer - manufacturer id .
|
|
62
|
+
* @param {string} identifier - model identifier .
|
|
63
|
+
* @return {Promise}
|
|
64
|
+
*/
|
|
65
|
+
findMediasByManufacturerAndModel(manufacturer, identifier) {
|
|
66
|
+
this._media = true
|
|
67
|
+
this._manufacturer = manufacturer;
|
|
35
68
|
this._identifier = identifier;
|
|
36
69
|
return this._execute();
|
|
37
70
|
}
|
|
@@ -39,12 +72,15 @@ export default class ModelFinder extends ProvisionGenericFinder {
|
|
|
39
72
|
/**
|
|
40
73
|
* Download a specific model media by its ids. This execute a GET http method
|
|
41
74
|
* @test
|
|
42
|
-
* ogapi.newModelFinder().
|
|
75
|
+
* ogapi.newModelFinder().findMediaByManufacturerAndModelAndId('modelId', 'mediaIdentifier').then().catch();
|
|
76
|
+
* @param {string} manufacturer - manufacturer id .
|
|
43
77
|
* @param {string} modelId - model identifier .
|
|
44
78
|
* @param {string} mediaIdentifier - media identifier.
|
|
45
79
|
* @return {Promise}
|
|
46
80
|
*/
|
|
47
|
-
|
|
81
|
+
findMediaByManufacturerAndModelAndId(manufacturer, modelId, mediaIdentifier) {
|
|
82
|
+
this._media = true
|
|
83
|
+
this._manufacturer = manufacturer;
|
|
48
84
|
this._identifier = modelId;
|
|
49
85
|
this._mediaIdentifier = mediaIdentifier;
|
|
50
86
|
return this._download();
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
import q from 'q';
|
|
4
4
|
import BaseProvision from '../provision/BaseProvision';
|
|
5
5
|
|
|
6
|
+
import { MANUFACTURERS_RESOURCE } from './Manufacturer';
|
|
7
|
+
import { MODELS_RESOURCE } from './Model';
|
|
8
|
+
|
|
6
9
|
/**
|
|
7
10
|
* This is a base object that contains all you can do about ModelMedia.
|
|
8
11
|
*/
|
|
@@ -11,8 +14,8 @@ export default class ModelMedia extends BaseProvision {
|
|
|
11
14
|
/**
|
|
12
15
|
* @param {InternalOpenGateAPI} Reference to the API object.
|
|
13
16
|
*/
|
|
14
|
-
constructor(ogapi, modelId) {
|
|
15
|
-
super(ogapi, "/
|
|
17
|
+
constructor(ogapi, manufacturer, modelId) {
|
|
18
|
+
super(ogapi, MANUFACTURERS_RESOURCE + "/" + manufacturer + MODELS_RESOURCE + "/" + modelId + '/media', undefined, ['identifier']);
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
//http://cm.amplia.es/jira/browse/OGODM-3201
|
|
@@ -49,10 +49,6 @@ export default class OperationType extends BaseProvision {
|
|
|
49
49
|
this.withParameters(operationTypeObj.parameters);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
if (operationTypeObj.models) {
|
|
53
|
-
this.withModels(operationTypeObj.models);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
52
|
if (operationTypeObj.applicableTo) {
|
|
57
53
|
this.applicableTo(operationTypeObj.applicableTo);
|
|
58
54
|
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import BaseProvision from '../provision/BaseProvision';
|
|
4
|
+
import Model from './Model';
|
|
5
|
+
|
|
6
|
+
export const PRE_RESOURCE = '/organizations';
|
|
7
|
+
export const MANUFACTURERS_RESOURCE = '/manufacturers';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* This is a base object that contains all you can do about Manufacturers.
|
|
11
|
+
*/
|
|
12
|
+
export default class Manufacturers extends BaseProvision {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @param {InternalOpenGateAPI} Reference to the API object.
|
|
16
|
+
*/
|
|
17
|
+
constructor(ogapi, organization) {
|
|
18
|
+
// super(ogapi, "/manufacturers", undefined, ['identifier', 'name']);
|
|
19
|
+
super(ogapi, PRE_RESOURCE, undefined, ['name']);
|
|
20
|
+
this._isValidString(organization, 'organization', 50);
|
|
21
|
+
this._organization = organization;
|
|
22
|
+
|
|
23
|
+
this._resource = this._resource + '/' + this._organization + MANUFACTURERS_RESOURCE;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Set the identifier attribute
|
|
28
|
+
* @param {string} id - required field
|
|
29
|
+
* @return {Manufacturers}
|
|
30
|
+
*/
|
|
31
|
+
withIdentifier(id) {
|
|
32
|
+
if (typeof id !== 'string' || id.length > 50)
|
|
33
|
+
throw new Error("OGAPI_STRING_PARAMETER_MAX_LENGTH_50");
|
|
34
|
+
this._identifier = id;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Set the name attribute
|
|
40
|
+
* @param {string} name - required field
|
|
41
|
+
* @return {Manufacturers}
|
|
42
|
+
*/
|
|
43
|
+
withName(name) {
|
|
44
|
+
if (typeof name !== 'string')
|
|
45
|
+
throw new Error("OGAPI_STRING_PARAMETER");
|
|
46
|
+
this._name = name;
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Set the description attribute
|
|
52
|
+
* @param {string} description - required field
|
|
53
|
+
* @return {Manufacturers}
|
|
54
|
+
*/
|
|
55
|
+
withDescription(description) {
|
|
56
|
+
if (typeof description !== 'string')
|
|
57
|
+
throw new Error("OGAPI_STRING_PARAMETER");
|
|
58
|
+
this._description = description;
|
|
59
|
+
return this;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Set the notes attribute
|
|
64
|
+
* @param {string} notes
|
|
65
|
+
* @return {Manufacturers}
|
|
66
|
+
*/
|
|
67
|
+
withNotes(notes) {
|
|
68
|
+
if (typeof notes !== 'string')
|
|
69
|
+
throw new Error("OGAPI_STRING_PARAMETER");
|
|
70
|
+
this._notes = notes;
|
|
71
|
+
return this;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Set the url attribute
|
|
76
|
+
* @param {string} url
|
|
77
|
+
* @return {Manufacturers}
|
|
78
|
+
*/
|
|
79
|
+
withUrl(url) {
|
|
80
|
+
if (typeof url !== 'string')
|
|
81
|
+
throw new Error("OGAPI_STRING_PARAMETER");
|
|
82
|
+
this._manufUrl = url;
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Set the fax attribute
|
|
88
|
+
* @param {string} fax
|
|
89
|
+
* @return {Manufacturers}
|
|
90
|
+
*/
|
|
91
|
+
withFax(fax) {
|
|
92
|
+
if (typeof fax !== 'string')
|
|
93
|
+
throw new Error("OGAPI_STRING_PARAMETER");
|
|
94
|
+
this._fax = fax;
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Set the telephone attribute
|
|
100
|
+
* @param {string} telephone
|
|
101
|
+
* @return {Manufacturers}
|
|
102
|
+
*/
|
|
103
|
+
withTelephone(telephone) {
|
|
104
|
+
if (typeof telephone !== 'string')
|
|
105
|
+
throw new Error("OGAPI_STRING_PARAMETER");
|
|
106
|
+
this._telephone = telephone;
|
|
107
|
+
return this;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Set the address attribute
|
|
112
|
+
* @param {string} address
|
|
113
|
+
* @return {Manufacturers}
|
|
114
|
+
*/
|
|
115
|
+
withAddress(address) {
|
|
116
|
+
if (typeof address !== 'string')
|
|
117
|
+
throw new Error("OGAPI_STRING_PARAMETER");
|
|
118
|
+
this._address = address;
|
|
119
|
+
return this;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Set the email attribute
|
|
124
|
+
* @param {string} email
|
|
125
|
+
* @return {Manufacturers}
|
|
126
|
+
*/
|
|
127
|
+
withEmail(email) {
|
|
128
|
+
if (typeof email !== 'string')
|
|
129
|
+
throw new Error("OGAPI_STRING_PARAMETER");
|
|
130
|
+
this._email = email;
|
|
131
|
+
return this;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
modelBuilder() {
|
|
135
|
+
if (!this._identifier)
|
|
136
|
+
throw new Error("Required manufacturer identifier");
|
|
137
|
+
return new Model(this._ogapi, this._organization, this._identifier)
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
_composeElement() {
|
|
141
|
+
this._checkRequiredParameters()
|
|
142
|
+
|
|
143
|
+
var updateData = {
|
|
144
|
+
name: this._name || undefined,
|
|
145
|
+
description: this._description || undefined,
|
|
146
|
+
telephone: this._telephone || undefined,
|
|
147
|
+
address: this._address || undefined,
|
|
148
|
+
fax: this._fax || undefined,
|
|
149
|
+
url: this._manufUrl || undefined,
|
|
150
|
+
notes: this._notes || undefined,
|
|
151
|
+
email: this._email || undefined
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
return updateData;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
_composeUpdateElement() {
|
|
158
|
+
return this._composeElement();
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
_buildURL() {
|
|
162
|
+
return this._resource + (this._identifier?"/" + this._identifier:"");
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
deleteInCascade() {
|
|
166
|
+
this._setUrlParameters({
|
|
167
|
+
updateDevices: true
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
return this.delete()
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
updateInCascade() {
|
|
174
|
+
this._setUrlParameters({
|
|
175
|
+
updateDevices: true
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
return this.update()
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
_isValidString(string, param_name, max_length) {
|
|
182
|
+
if (typeof string !== 'string' || string.length === 0 || string.length > max_length)
|
|
183
|
+
throw new Error('Parameter ' + param_name + ' must be a string, cannot be empty and has a maximum length of ' + max_length);
|
|
184
|
+
}
|
|
185
|
+
}
|