opengate-js 13.2.0 → 14.1.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.1.0.js} +1004 -389
- package/dist/opengate-api-bower-14.1.0.js.map +1 -0
- package/dist/{opengate-api-bower-13.2.0.min.js → opengate-api-bower-14.1.0.min.js} +8 -8
- package/dist/opengate-api-bower-14.1.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/operations/OperationActions.js +2 -0
- package/dist/src/operations/OperationActions.js.map +1 -1
- package/dist/src/operations/catalog/BaseOperationBuilder.js +14 -11
- package/dist/src/operations/catalog/BaseOperationBuilder.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/operations/OperationActions.js.json +8300 -7782
- package/docs/ast/source/operations/catalog/BaseOperationBuilder.js.json +10013 -9786
- 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 +13 -3
- 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 +33 -16
- 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 +76 -43
- package/docs/dump.json +6448 -3888
- 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 +13 -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 +23 -12
- 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 +323 -275
- 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/features/provision/operations/actions_execution.feature +105 -52
- package/features/features/provision/operations/execute_operations.feature +152 -112
- package/features/features/provision/operations/execute_periodic_operations.feature +115 -64
- package/features/features/provision/operations/find_execution.feature +49 -11
- package/features/features/provision/operations/find_executions.feature +51 -11
- package/features/features/provision/operations/find_periodic_execution.feature +48 -11
- package/features/features/provision/operations/setting_up_period-each_operation.feature +88 -23
- package/features/features/provision/operations/update_periodic_operation.feature +88 -46
- package/features/features/provision/users/update_password.feature +0 -1
- package/features/features/provision/users/update_user.feature +0 -1
- package/features/features/searching/operations/searching_executions.feature +47 -7
- package/features/features/searching/operations/searching_periodic_operations.feature +51 -10
- package/features/step_definitions/given_step_definitions.js +12 -5
- package/features/step_definitions/then_step_definitions.js +44 -35
- package/features/step_definitions/when_step_definitions.js +29 -10
- package/features/support/create_provision_model.js +6 -0
- package/features/support/find_model.js +4 -0
- package/features/support/utils_model.js +26 -20
- 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/operations/OperationActions.js +2 -0
- package/src/operations/catalog/BaseOperationBuilder.js +12 -11
- 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/yarn-error.log +7437 -0
- 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
|
@@ -75,7 +75,7 @@ Then(/^throws an error\. the error message explain that a parameter with name "(
|
|
|
75
75
|
|
|
76
76
|
Then(/^response error code sould be: (\d+)$/, function (statusCode, callback) {
|
|
77
77
|
// Write code here that turns the phrase above into concrete actions
|
|
78
|
-
var response = this.responseData;
|
|
78
|
+
var response = this.responseData || this.error;
|
|
79
79
|
if (typeof response.response !== "undefined") {
|
|
80
80
|
response = response.response;
|
|
81
81
|
}
|
|
@@ -123,15 +123,15 @@ Then(/^response must have attached an entity list with "([^"]*)" type defined by
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
Then(
|
|
126
|
+
Then('response specific error code sould be: {string}', function (statusCode, callback) {
|
|
127
127
|
// Write code here that turns the phrase above into concrete actions
|
|
128
|
-
var response = this.responseData;
|
|
128
|
+
var response = this.responseData || this.error;
|
|
129
129
|
if (typeof response.response !== "undefined") {
|
|
130
130
|
response = response.response;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
for (var i = 0; i < response.data.errors.length; i++) {
|
|
134
|
-
this.expect(response.data.errors[i].code).to.equal(
|
|
134
|
+
this.expect(response.data.errors[i].code).to.equal(statusCode);
|
|
135
135
|
}
|
|
136
136
|
callback();
|
|
137
137
|
});
|
|
@@ -145,24 +145,23 @@ Then(/^response contains a parameter "([^"]*)" as name and "([^"]*)" as value$/,
|
|
|
145
145
|
if (this.responseData.data)
|
|
146
146
|
data = this.responseData.data;
|
|
147
147
|
var parameters = data.request.parameters;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
});
|
|
151
|
-
var isDuplicate = parameterNames.some(function (item, idx) {
|
|
152
|
-
return parameterNames.indexOf(item) != idx;
|
|
153
|
-
});
|
|
154
|
-
this.expect(isDuplicate).to.be.false;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
var parameter = parameters.find(function (param) {
|
|
158
|
-
return param.name == this;
|
|
159
|
-
}, paramName);
|
|
160
|
-
this.expect(parameter).to.be.an('object');
|
|
148
|
+
|
|
149
|
+
this.expect(parameters[paramName]).to.equal(paramValue);
|
|
161
150
|
|
|
151
|
+
callback();
|
|
152
|
+
});
|
|
162
153
|
|
|
163
|
-
|
|
164
|
-
|
|
154
|
+
Then('response contains a parameter {string} as name and {string} as json value', function (paramName, paramValue, callback) {
|
|
155
|
+
// Write code here that turns the phrase above into concrete actions
|
|
156
|
+
if (this.responseData.response) {
|
|
157
|
+
this.expect(this.responseData.response.statusCode).to.equal(201);
|
|
165
158
|
}
|
|
159
|
+
var data;
|
|
160
|
+
if (this.responseData.data)
|
|
161
|
+
data = this.responseData.data;
|
|
162
|
+
var parameters = data.request.parameters;
|
|
163
|
+
this.expect(JSON.stringify(parameters[paramName])).to.equal(paramValue);
|
|
164
|
+
|
|
166
165
|
callback();
|
|
167
166
|
});
|
|
168
167
|
|
|
@@ -285,7 +284,7 @@ Then(/^I can see into the post data a every month pattern at day (\d+) and month
|
|
|
285
284
|
});
|
|
286
285
|
|
|
287
286
|
Then(/^I can see into the post data a job timeout by (\d+) minutes$/, function (minutes, callback) {
|
|
288
|
-
var milliseconds = eval(minutes) * 60 * 1000;
|
|
287
|
+
var milliseconds = (eval(minutes) * 60 * 1000) - 1000;
|
|
289
288
|
var stop = this.build._postObj.task.job.request.schedule.stop;
|
|
290
289
|
this.expect(stop).to.be.an('object');
|
|
291
290
|
var jobTimeout = stop.delayed;
|
|
@@ -313,23 +312,33 @@ Then(/^I can see into the post data a start date as "([^"]*)"$/, function (when,
|
|
|
313
312
|
Then(/^throws an error equal to "([^"]*)"$/, function (errorMessage, callback) {
|
|
314
313
|
this.expect(this.error).to.exist;
|
|
315
314
|
var errorText;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
errorText = this.error.
|
|
324
|
-
|
|
325
|
-
|
|
315
|
+
var _errorText;
|
|
316
|
+
switch (this.error.constructor) {
|
|
317
|
+
case Array:
|
|
318
|
+
this.expect(this.error).to.have.lengthOf(1);
|
|
319
|
+
errorText = this.error[0].description || this.error[0].message || this.error[0];
|
|
320
|
+
break;
|
|
321
|
+
case Error:
|
|
322
|
+
errorText = this.error.message
|
|
323
|
+
break;
|
|
324
|
+
case String:
|
|
325
|
+
errorText = JSON.parse(this.error)
|
|
326
|
+
//NO BREAK!!!!!
|
|
327
|
+
case Object:
|
|
328
|
+
_errorText = errorText || this.error
|
|
329
|
+
if (_errorText.message) {
|
|
330
|
+
errorText = _errorText.message;
|
|
331
|
+
} else if (_errorText.data) {
|
|
332
|
+
errorText = _errorText.data;
|
|
333
|
+
if (errorText.errors) {
|
|
334
|
+
errorText = errorText.errors[0].message;
|
|
335
|
+
}
|
|
336
|
+
} else {
|
|
337
|
+
errorText = _errorText;
|
|
326
338
|
}
|
|
327
|
-
|
|
328
|
-
errorText = this.error;
|
|
329
|
-
}
|
|
330
|
-
|
|
339
|
+
break;
|
|
331
340
|
}
|
|
332
|
-
|
|
341
|
+
|
|
333
342
|
this.expect(errorText).to.equal(errorMessage);
|
|
334
343
|
|
|
335
344
|
callback();
|
|
@@ -6,9 +6,7 @@ var {
|
|
|
6
6
|
Given
|
|
7
7
|
} = require('cucumber');
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
var _this = this;
|
|
11
|
-
|
|
9
|
+
function executeActionOperation (action, minutes, data, _this){
|
|
12
10
|
function digestResponseData(response) {
|
|
13
11
|
//console.log('digestResponseData', response)
|
|
14
12
|
//Guardamos el identificador anterior por si hiciera falta para el siguiente paso
|
|
@@ -34,7 +32,7 @@ When(/^I want "([^"]*)"( (\d*) minutes| for this url "([^"]*)" for)? (a|of a) op
|
|
|
34
32
|
if (location && !_this.responseData.location) {
|
|
35
33
|
_this.responseData.location = location;
|
|
36
34
|
}
|
|
37
|
-
|
|
35
|
+
_this.error = undefined;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
function digestErrorData(response) {
|
|
@@ -91,13 +89,21 @@ When(/^I want "([^"]*)"( (\d*) minutes| for this url "([^"]*)" for)? (a|of a) op
|
|
|
91
89
|
default:
|
|
92
90
|
throw new Error("Not exists action " + action);
|
|
93
91
|
}
|
|
94
|
-
var util =
|
|
95
|
-
return util.call(
|
|
92
|
+
var util = _this.util[findMethod];
|
|
93
|
+
return util.call(_this.util, (data || (minutes * 1))).then(digestResponseData).catch(digestErrorData);
|
|
96
94
|
} catch (err) {
|
|
97
95
|
console.error('ERROR: ', err)
|
|
98
|
-
|
|
96
|
+
_this.error = err;
|
|
99
97
|
throw new Error(JSON.stringify(err));
|
|
100
98
|
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
When(/^I want "([^"]*)"( (\d*) minutes| for this url "([^"]*)" for) operation$/, function (action, minutes) {
|
|
102
|
+
return executeActionOperation(action, minutes, undefined, this)
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
When(/^I want "([^"]*)" (a|of a) operation$/, function (action, nothing) {
|
|
106
|
+
return executeActionOperation(action, undefined, undefined, this)
|
|
101
107
|
});
|
|
102
108
|
|
|
103
109
|
When(/^I try to find an operation for its id of periodicity and save its id$/, function () {
|
|
@@ -115,7 +121,7 @@ When(/^I try to find an operation for its id of periodicity and save its id$/, f
|
|
|
115
121
|
}
|
|
116
122
|
|
|
117
123
|
function digestErrorData(error) {
|
|
118
|
-
console.error('digestErrorData',
|
|
124
|
+
console.error('digestErrorData', error)
|
|
119
125
|
_this.error = error;
|
|
120
126
|
_this.responseData = error;
|
|
121
127
|
|
|
@@ -194,8 +200,8 @@ When(/^I build it with filter by operation's id$/, function (callback) {
|
|
|
194
200
|
|
|
195
201
|
try {
|
|
196
202
|
var data;
|
|
197
|
-
if (this.responseData.
|
|
198
|
-
data = this.responseData.
|
|
203
|
+
if (this.responseData.data)
|
|
204
|
+
data = this.responseData.data;
|
|
199
205
|
else if (this.responseData[1])
|
|
200
206
|
data = this.responseData[1];
|
|
201
207
|
var jobId = data.id;
|
|
@@ -703,6 +709,7 @@ When(/^I "([^"]*)" it with bulk and response with format csv$/, function (action
|
|
|
703
709
|
return;
|
|
704
710
|
}
|
|
705
711
|
});
|
|
712
|
+
|
|
706
713
|
When(/^I delete it with identfier from location$/, function () {
|
|
707
714
|
|
|
708
715
|
var _this = this;
|
|
@@ -811,6 +818,18 @@ When(/^I delete it with location as a identifier$/, function () {
|
|
|
811
818
|
}
|
|
812
819
|
});
|
|
813
820
|
|
|
821
|
+
When(/^I fill identifier using location$/, function () {
|
|
822
|
+
try {
|
|
823
|
+
var id = this.location.substring(this.location.lastIndexOf("/") + 1);
|
|
824
|
+
this.util.withIdentifier(id);
|
|
825
|
+
} catch (err) {
|
|
826
|
+
console.error('ERROR: ', err);
|
|
827
|
+
this.error = err;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
return;
|
|
831
|
+
});
|
|
832
|
+
|
|
814
833
|
When(/^I delete it all$/, function () {
|
|
815
834
|
|
|
816
835
|
var _this = this;
|
|
@@ -18,6 +18,12 @@ module.exports = {
|
|
|
18
18
|
},
|
|
19
19
|
setters: function (setter) {
|
|
20
20
|
return {
|
|
21
|
+
'operation type': {
|
|
22
|
+
'name': "withName",
|
|
23
|
+
'title': "withTitle",
|
|
24
|
+
'description': "withDescription",
|
|
25
|
+
'fromCatalog': "fromCatalog"
|
|
26
|
+
},
|
|
21
27
|
'user': {
|
|
22
28
|
'email': 'withEmail',
|
|
23
29
|
'password': 'withPassword',
|
|
@@ -118,6 +118,10 @@ module.exports = {
|
|
|
118
118
|
'organization name': 'name',
|
|
119
119
|
'periodic operation type': 'job.request.name',
|
|
120
120
|
'periodic schedule': 'schedule',
|
|
121
|
+
'periodic schedule - repeating': 'schedule.repeating',
|
|
122
|
+
'periodic schedule - repeating - weekly': 'schedule.repeating.pattern.weekly',
|
|
123
|
+
'periodic schedule - repeating - monthly': 'schedule.repeating.pattern.monthly',
|
|
124
|
+
'periodic schedule - repeating - yearly': 'schedule.repeating.pattern.yearly',
|
|
121
125
|
'periodic status': 'status',
|
|
122
126
|
'user email': 'email',
|
|
123
127
|
'rule configuration name': 'name',
|
|
@@ -89,8 +89,11 @@ module.exports = {
|
|
|
89
89
|
"devices search": function(ogapi) {
|
|
90
90
|
return ogapi.devicesSearchBuilder();
|
|
91
91
|
},
|
|
92
|
-
"
|
|
93
|
-
return ogapi.
|
|
92
|
+
"operation type": function(ogapi, param){
|
|
93
|
+
return ogapi.operationTypeBuilder(param);
|
|
94
|
+
},
|
|
95
|
+
"devices builder": function(ogapi, param) {
|
|
96
|
+
return ogapi.entityBuilder.devicesBuilder(param);
|
|
94
97
|
},
|
|
95
98
|
"subscribers search": function(ogapi) {
|
|
96
99
|
return ogapi.subscribersSearchBuilder();
|
|
@@ -143,11 +146,11 @@ module.exports = {
|
|
|
143
146
|
"softwares search": function(ogapi) {
|
|
144
147
|
return ogapi.softwaresSearchBuilder();
|
|
145
148
|
},
|
|
146
|
-
"subscriptions builder": function(ogapi,
|
|
147
|
-
return ogapi.entityBuilder.subscriptionsBuilder(
|
|
149
|
+
"subscriptions builder": function(ogapi, param) {
|
|
150
|
+
return ogapi.entityBuilder.subscriptionsBuilder(param);
|
|
148
151
|
},
|
|
149
|
-
"subscribers builder": function(ogapi,
|
|
150
|
-
return ogapi.entityBuilder.subscribersBuilder(
|
|
152
|
+
"subscribers builder": function(ogapi, param) {
|
|
153
|
+
return ogapi.entityBuilder.subscribersBuilder(param);
|
|
151
154
|
},
|
|
152
155
|
"user finder": function(ogapi) {
|
|
153
156
|
return ogapi.newUserFinder();
|
|
@@ -266,6 +269,9 @@ module.exports = {
|
|
|
266
269
|
"executions search": function() {
|
|
267
270
|
return ogapi.executionsSearchBuilder();
|
|
268
271
|
},
|
|
272
|
+
"executions history search": function() {
|
|
273
|
+
return ogapi.executionsHistorySearchBuilder();
|
|
274
|
+
},
|
|
269
275
|
"periodic operations search": function() {
|
|
270
276
|
return ogapi.tasksSearchBuilder();
|
|
271
277
|
},
|
|
@@ -296,20 +302,20 @@ module.exports = {
|
|
|
296
302
|
"entities search": function() {
|
|
297
303
|
return ogapi.entitiesSearchBuilder();
|
|
298
304
|
},
|
|
299
|
-
"csv bulk builder": function(ogapi,
|
|
300
|
-
return ogapi.entityBuilder.newCsvBulkBuilder(
|
|
305
|
+
"csv bulk builder": function(ogapi, param, param2) {
|
|
306
|
+
return ogapi.entityBuilder.newCsvBulkBuilder(param, param2);
|
|
301
307
|
},
|
|
302
|
-
"bulk execution builder": function(ogapi,
|
|
303
|
-
return ogapi.bulkExecutionBuilder(
|
|
308
|
+
"bulk execution builder": function(ogapi, param, param2){
|
|
309
|
+
return ogapi.bulkExecutionBuilder(param, param2);
|
|
304
310
|
},
|
|
305
|
-
"json bulk builder": function(ogapi,
|
|
306
|
-
return ogapi.entityBuilder.newJsonBulkBuilder(
|
|
311
|
+
"json bulk builder": function(ogapi, param, param2) {
|
|
312
|
+
return ogapi.entityBuilder.newJsonBulkBuilder(param, param2);
|
|
307
313
|
},
|
|
308
|
-
"json flattened bulk builder": function(ogapi,
|
|
309
|
-
return ogapi.entityBuilder.newJsonFlattenedBulkBuilder(
|
|
314
|
+
"json flattened bulk builder": function(ogapi, param, param2) {
|
|
315
|
+
return ogapi.entityBuilder.newJsonFlattenedBulkBuilder(param, param2);
|
|
310
316
|
},
|
|
311
|
-
"csv bulk async builder": function(ogapi,
|
|
312
|
-
return ogapi.entityBuilder.newCsvBulkBuilder(
|
|
317
|
+
"csv bulk async builder": function(ogapi, param, param2) {
|
|
318
|
+
return ogapi.entityBuilder.newCsvBulkBuilder(param, param2, null, null, true);
|
|
313
319
|
},
|
|
314
320
|
"bulks search": function(ogapi) {
|
|
315
321
|
return ogapi.bulkSearchBuilder();
|
|
@@ -317,14 +323,14 @@ module.exports = {
|
|
|
317
323
|
"bulk executions search": function(ogapi) {
|
|
318
324
|
return ogapi.bulkExecutionSearchBuilder();
|
|
319
325
|
},
|
|
320
|
-
"asset builder": function(ogapi,
|
|
321
|
-
return ogapi.entityBuilder.assetsBuilder(
|
|
326
|
+
"asset builder": function(ogapi, param) {
|
|
327
|
+
return ogapi.entityBuilder.assetsBuilder(param);
|
|
322
328
|
},
|
|
323
329
|
"asset search": function(ogapi) {
|
|
324
330
|
return ogapi.assetsSearchBuilder();
|
|
325
331
|
},
|
|
326
|
-
"tickets builder": function(ogapi,
|
|
327
|
-
return ogapi.entityBuilder.ticketsBuilder(
|
|
332
|
+
"tickets builder": function(ogapi, param) {
|
|
333
|
+
return ogapi.entityBuilder.ticketsBuilder(param);
|
|
328
334
|
},
|
|
329
335
|
"ticket search": function(ogapi) {
|
|
330
336
|
return ogapi.ticketsSearchBuilder();
|
|
@@ -14,11 +14,11 @@ searchingModel = require('./searching_model');
|
|
|
14
14
|
mocksModel = require('./mocks/mockModel')
|
|
15
15
|
|
|
16
16
|
function World() {
|
|
17
|
-
this.test_url_north = process.env.API_NORTH_INTERNAL || 'https://
|
|
18
|
-
this.test_url_south = process.env.API_SOUTH_INTERNAL || 'https://
|
|
17
|
+
this.test_url_north = process.env.API_NORTH_INTERNAL || 'https://odmux01.amplia.int';
|
|
18
|
+
this.test_url_south = process.env.API_SOUTH_INTERNAL || 'https://odmux01.amplia.int/south';
|
|
19
19
|
//this.apikey = process.env.API_KEY || 'YOUR_API_KEY';
|
|
20
|
-
this.YOUR_EMAIL = process.env.YOUR_EMAIL || '
|
|
21
|
-
this.YOUR_PASSWORD = process.env.YOUR_PASSWORD || '
|
|
20
|
+
this.YOUR_EMAIL = process.env.YOUR_EMAIL || 'monica.fernandez@amplia.es';
|
|
21
|
+
this.YOUR_PASSWORD = process.env.YOUR_PASSWORD || 'ampliaM2M@Opengate';
|
|
22
22
|
this.guerrillaApi = 'https://api.guerrillamail.com/ajax.php'
|
|
23
23
|
chai.use(chai_as_promised);
|
|
24
24
|
this.expect = chai.expect;
|
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();
|