opengate-js 12.12.2 → 12.13.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-12.12.2.js → opengate-api-bower-12.13.0.js} +894 -260
- package/dist/opengate-api-bower-12.13.0.js.map +1 -0
- package/dist/{opengate-api-bower-12.12.2.min.js → opengate-api-bower-12.13.0.min.js} +36 -35
- package/dist/opengate-api-bower-12.13.0.min.js.map +1 -0
- package/dist/src/GenericFinder.js +6 -1
- package/dist/src/GenericFinder.js.map +1 -1
- package/dist/src/InternalOpenGateAPI.js +47 -3
- package/dist/src/InternalOpenGateAPI.js.map +1 -1
- package/dist/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js.map +1 -0
- package/dist/src/connectorsFunctions/catalog/ConnectorFunctions.js +381 -0
- package/dist/src/connectorsFunctions/catalog/ConnectorFunctions.js.map +1 -0
- package/dist/src/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js +57 -0
- package/dist/src/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js.map +1 -0
- package/dist/src/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js +54 -0
- package/dist/src/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js.map +1 -0
- package/dist/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctions.js +5 -5
- package/dist/src/connectorsFunctions/configuration/ConnectorFunctions.js.map +1 -0
- package/dist/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctionsFinder.js +20 -21
- package/dist/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctionsFinder.js.map +1 -1
- package/dist/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctionsHelper.js +4 -4
- package/dist/src/connectorsFunctions/configuration/ConnectorFunctionsHelper.js.map +1 -0
- package/dist/src/organizations/Organizations.js +1 -1
- package/dist/src/provision/BaseProvision.js +81 -0
- package/dist/src/provision/BaseProvision.js.map +1 -1
- package/dist/src/util/NorthAmpliaREST.js +5 -1
- package/dist/src/util/NorthAmpliaREST.js.map +1 -1
- package/docs/ast/source/GenericFinder.js.json +7284 -6207
- package/docs/ast/source/InternalOpenGateAPI.js.json +27881 -25642
- package/docs/ast/source/connectorsFunctions/catalog/ConnectorFunctions.js.json +43680 -0
- package/docs/ast/source/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js.json +2322 -0
- package/docs/ast/source/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js.json +2238 -0
- package/docs/ast/source/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctions.js.json +4654 -4654
- package/docs/ast/source/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctionsFinder.js.json +1089 -1160
- package/docs/ast/source/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctionsHelper.js.json +1203 -1203
- package/docs/ast/source/organizations/Organizations.js.json +1246 -1246
- package/docs/ast/source/provision/BaseProvision.js.json +35717 -16241
- package/docs/ast/source/util/NorthAmpliaREST.js.json +1988 -1223
- package/docs/class/src/AIModels/AIModels.js~AIModels.html +7 -4
- package/docs/class/src/AIModels/AIModelsFinder.js~AIModelsFinder.html +7 -4
- package/docs/class/src/GenericFinder.js~GenericFinder.html +8 -5
- package/docs/class/src/InternalOpenGateAPI.js~InternalOpenGateAPI.html +433 -157
- package/docs/class/src/ProvisionGenericFinder.js~ProvisionGenericFinder.html +7 -4
- package/docs/class/src/alarms/AlarmActions.js~AlarmActions.html +7 -4
- package/docs/class/src/alarms/actions/Alarm.js~Operation.html +7 -4
- package/docs/class/src/alarms/actions/AlarmActionBuilder.js~AlarmActionBuilder.html +7 -4
- package/docs/class/src/alarms/actions/AlarmAttendBuilder.js~AlarmAttendBuilder.html +7 -4
- package/docs/class/src/alarms/actions/AlarmCloseBuilder.js~AlarmCloseBuilder.html +7 -4
- package/docs/class/src/areas/AreaFinder.js~AreaFinder.html +7 -4
- package/docs/class/src/areas/Areas.js~Areas.html +7 -4
- package/docs/class/src/bulk/BulkExecutionFinder.js~BulkExecutionFinder.html +7 -4
- package/docs/class/src/bulk/BulkFinder.js~BulkFinder.html +7 -4
- package/docs/class/src/bundles/BundleFinder.js~BundleFinder.html +7 -4
- package/docs/class/src/bundles/Bundles.js~Bundles.html +7 -4
- package/docs/class/src/bundles/deployment/DeploymentElement.js~DeploymentElement.html +7 -4
- package/docs/class/src/channels/ChannelFinder.js~ChannelFinder.html +7 -4
- package/docs/class/src/channels/Channels.js~Channels.html +7 -4
- package/docs/class/src/collection/devices/DeviceMessage.js~DeviceMessage.html +7 -4
- package/docs/class/src/collection/devices/collect/CommsModuleMessage.js~CommsModuleMessage.html +7 -4
- package/docs/class/src/collection/devices/collect/Datapoint.js~Datapoint.html +7 -4
- package/docs/class/src/collection/devices/collect/Datastreams.js~Datastream.html +7 -4
- package/docs/class/src/collection/devices/collect/Event.js~Event.html +7 -4
- package/docs/class/src/collection/devices/collect/Hardware.js~Hardware.html +7 -4
- package/docs/class/src/collection/devices/collect/Location.js~Location.html +7 -4
- package/docs/class/src/collection/devices/collect/Mobile.js~Mobile.html +7 -4
- package/docs/class/src/collection/devices/collect/PowerSupply.js~PowerSupply.html +7 -4
- package/docs/class/src/collection/devices/collect/Software.js~Software.html +7 -4
- package/docs/class/src/collection/devices/collect/Storage.js~Storage.html +7 -4
- package/docs/class/src/collection/devices/collect/Subscriber.js~Subscriber.html +7 -4
- package/docs/class/src/collection/devices/collect/Subscription.js~Subscription.html +7 -4
- package/docs/class/src/collection/devices/collect/Temperature.js~Temperature.html +7 -4
- package/docs/class/src/collection/devices/collect/Usage.js~Usage.html +7 -4
- package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctions.js~ConnectorFunctions.html +2143 -0
- package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js~ConnectorFunctionsCatalog.html +543 -0
- package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js~ConnectorFunctionsCatalogFinder.html +559 -0
- package/docs/class/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctions.js~ConnectorFunctions.html +68 -65
- package/docs/class/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctionsFinder.js~ConnectorFunctionsFinder.html +16 -13
- package/docs/class/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctionsHelper.js~ConnectorFunctionsHelper.html +22 -19
- package/docs/class/src/datasets/DatasetFinder.js~DatasetFinder.html +7 -4
- package/docs/class/src/datasets/Datasets.js~Datasets.html +7 -4
- package/docs/class/src/domains/Domains.js~Domains.html +7 -4
- package/docs/class/src/domains/DomainsFinder.js~DomainFinder.html +7 -4
- package/docs/class/src/entities/DeviceFinder.js~DeviceFinder.html +7 -4
- package/docs/class/src/entities/EntityFinder.js~EntityFinder.html +7 -4
- package/docs/class/src/entities/SubscribersFinder.js~SubscribersFinder.html +7 -4
- package/docs/class/src/entities/SubscriptionsFinder.js~SubscriptionsFinder.html +7 -4
- package/docs/class/src/entities/TicketFinder.js~TicketFinder.html +7 -4
- package/docs/class/src/geocluster/Geocluster.js~Geocluster.html +7 -4
- package/docs/class/src/geocluster/GeoclusterFinder.js~GeoclusterFinder.html +7 -4
- package/docs/class/src/iot/catalog/Category.js~Category.html +7 -4
- package/docs/class/src/iot/catalog/Datastream.js~Datastream.html +7 -4
- package/docs/class/src/iot/catalog/Qrating.js~Qrating.html +7 -4
- package/docs/class/src/iot/datamodels/Datamodels.js~Datamodels.html +7 -4
- package/docs/class/src/iot/datamodels/DatamodelsFinder.js~DatamodelsFinder.html +7 -4
- package/docs/class/src/iot/datamodels/DatamodelsHelper.js~DatamodelsHelper.html +7 -4
- package/docs/class/src/manufacturers/Manufacturer.js~Manufacturers.html +7 -4
- package/docs/class/src/manufacturers/ManufacturerFinder.js~ManufacturerFinder.html +7 -4
- package/docs/class/src/manufacturers/ManufacturerMedia.js~ManufacturerMedia.html +7 -4
- package/docs/class/src/manufacturers/Model.js~Models.html +7 -4
- package/docs/class/src/manufacturers/ModelFinder.js~ModelFinder.html +7 -4
- package/docs/class/src/manufacturers/ModelMedia.js~ModelMedia.html +7 -4
- package/docs/class/src/operationTypes/OperationType.js~OperationType.html +7 -4
- package/docs/class/src/operationTypes/OperationTypeCatalog.js~OperationTypesCatalog.html +7 -4
- package/docs/class/src/operationTypes/OperationTypeFinder.js~OperationTypeFinder.html +7 -4
- package/docs/class/src/operations/OperationActions.js~OperationActions.html +7 -4
- package/docs/class/src/operations/OperationFinder.js~OperationFinder.html +7 -4
- package/docs/class/src/operations/Operations.js~Operations.html +7 -4
- package/docs/class/src/operations/PeriodicityActions.js~PeriodicityActions.html +7 -4
- package/docs/class/src/operations/catalog/AppendEntitiesBy.js~AppendEntitiesBy.html +7 -4
- package/docs/class/src/operations/catalog/BaseOperationBuilder.js~BaseOperationBuilder.html +7 -4
- package/docs/class/src/operations/catalog/Operation.js~Operation.html +7 -4
- package/docs/class/src/operations/catalog/parameters/BaseParameterBuilderWithParent.js~BaseParameterBuilderWithParent.html +7 -4
- package/docs/class/src/operations/catalog/parameters/ParameterBuilderFactory.js~ParameterBuilderFactory.html +7 -4
- package/docs/class/src/operations/catalog/period/ExecuteEachBuilder.js~ExecuteEachBuilder.html +7 -4
- package/docs/class/src/operations/catalog/period/ExecuteEveryBuilder.js~ExecuteEveryBuilder.html +7 -4
- package/docs/class/src/operations/catalog/period/PeriodicityUpdateBuilder.js~PeriodicityUpdateBuilder.html +7 -4
- package/docs/class/src/operations/catalog/period/pattern/ByGeneric.js~ByGeneric.html +7 -4
- package/docs/class/src/operations/catalog/period/pattern/ByMonth.js~ByMonth.html +7 -4
- package/docs/class/src/operations/catalog/period/pattern/ByWeek.js~ByWeek.html +7 -4
- package/docs/class/src/operations/catalog/period/pattern/ByYear.js~ByYear.html +7 -4
- package/docs/class/src/organizations/OrganizationFinder.js~OrganizationFinder.html +7 -4
- package/docs/class/src/organizations/Organizations.js~Organizations.html +10 -7
- package/docs/class/src/pipelines/PipelineFinder.js~PipelineFinder.html +7 -4
- package/docs/class/src/pipelines/Pipelines.js~Pipelines.html +7 -4
- package/docs/class/src/provision/BaseProvision.js~BaseProvision.html +9 -6
- package/docs/class/src/provision/bulk/BulkExecutionBuilder.js~BulkExecutionBuilder.html +7 -4
- package/docs/class/src/provision/country/CountriesCatalog.js~CountriesCatalog.html +7 -4
- package/docs/class/src/provision/entities/AssetBuilder.js~AssetBuilder.html +7 -4
- package/docs/class/src/provision/entities/BulkBuilder.js~BulkBuilder.html +7 -4
- package/docs/class/src/provision/entities/ComplexBuilder.js~ComplexBuilder.html +7 -4
- package/docs/class/src/provision/entities/CsvBulkBuilder.js~CsvBulkBuilder.html +7 -4
- package/docs/class/src/provision/entities/DeviceBuilder.js~DeviceBuilder.html +7 -4
- package/docs/class/src/provision/entities/EntityBuilder.js~EntityBuilder.html +7 -4
- package/docs/class/src/provision/entities/JsonBulkBuilder.js~JsonBulkBuilder.html +7 -4
- package/docs/class/src/provision/entities/JsonFlattenedBulkBuilder.js~JsonFlattenedBulkBuilder.html +7 -4
- package/docs/class/src/provision/entities/SimpleBuilder.js~SimpleBuilder.html +7 -4
- package/docs/class/src/provision/entities/SubscriberBuilder.js~SubscriberBuilder.html +7 -4
- package/docs/class/src/provision/entities/SubscriptionBuilder.js~SubscriptionBuilder.html +7 -4
- package/docs/class/src/provision/entities/TicketBuilder.js~TicketBuilder.html +7 -4
- package/docs/class/src/provisionProcessors/provisionProcessors.js~ProvisionProcessors.html +7 -4
- package/docs/class/src/provisionProcessors/provisionProcessorsFinder.js~provisionProcessorsFinder.html +7 -4
- package/docs/class/src/rulesConfiguration/RuleConfigurations.js~RuleConfigurations.html +7 -4
- package/docs/class/src/rulesConfiguration/RuleConfigurationsActions.js~RuleConfigurationsActions.html +7 -4
- package/docs/class/src/rulesConfiguration/RuleConfigurationsCatalog.js~RuleConfigurationsCatalog.html +7 -4
- package/docs/class/src/rulesConfiguration/RuleConfigurationsFinder.js~RuleConfigurationsFinder.html +7 -4
- package/docs/class/src/rulesConfiguration/RuleConfigurationsHelper.js~RuleConfigurationsHelper.html +7 -4
- package/docs/class/src/searching/AssetSearch.js~AssetSearch.html +7 -4
- package/docs/class/src/searching/BaseSearch.js~BaseSearch.html +7 -4
- package/docs/class/src/searching/DeviceSearch.js~DeviceSearch.html +7 -4
- package/docs/class/src/searching/EntitySearch.js~EntitySearch.html +7 -4
- package/docs/class/src/searching/FilterBuilder.js~FilterBuilder.html +7 -4
- package/docs/class/src/searching/Search.js~Search.html +7 -4
- package/docs/class/src/searching/SearchWithoutLimit.js~SearchWithoutLimit.html +7 -4
- package/docs/class/src/searching/SelectBuilder.js~SelectBuilder.html +7 -4
- package/docs/class/src/searching/StaticSearch.js~StaticSearch.html +7 -4
- package/docs/class/src/searching/WPSearch.js~WPSearch.html +7 -4
- package/docs/class/src/searching/builder/AdministrativeStateSearchBuilder.js~AdministrativeStateSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/AlarmsSearchBuilder.js~AlarmsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/AllowedResourceTypeSearchBuilder.js~AllowedResourceTypeSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/AreasSearchBuilder.js~AreasSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/AssetsSearchBuilder.js~AssetsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/BasicTypesSearchBuilder.js~BasicTypesSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/BulkExecutionSearchBuilder.js~BulkExecutionSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/BulkSearchBuilder.js~BulkSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/BundlesSearchBuilder.js~BundlesSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/CertificatesSearchBuilder.js~CertificatesSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/ChannelsSearchBuilder.js~ChannelsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/CommunicationsModuleTypeSearchBuilder.js~CommunicationsModuleTypeSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/CountryCodesSearchBuilder.js~CountryCodesSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/DatamodelsSearchBuilder.js~DatamodelsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/DatapointsSearchBuilder.js~DatapointsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/DatasetEntitiesSearchBuilder.js~DatasetEntitiesSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/DatasetSearchBuilder.js~DatasetSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/DatasetsCatalogSearchBuilder.js~DatasetsCatalogSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/DatastreamsSearchBuilder.js~DatastreamsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/DevicesPlansSearchBuilder.js~DevicesPlansSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/DevicesSearchBuilder.js~DevicesSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/DomainsSearchBuilder.js~DomainsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/EntitiesSearchBuilder.js~EntitiesSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/ExecutionsHistorySearchBuilder.js~ExecutionsHistorySearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/ExecutionsSearchBuilder.js~ExecutionsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/FeedsSearchBuilder.js~FeedsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/FieldsDefinitionSearchBuilder.js~FieldsDefinitionSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/FlattenedSearchBuilder.js~FlattenedSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/HardwaresSearchBuilder.js~HardwaresSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/IoTDatastreamAccessSearchBuilder.js~IoTDatastreamAccessSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/IoTDatastreamPeriodSearchBuilder.js~IoTDatastreamPeriodSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/IoTDatastreamStoragePeriodSearchBuilder.js~IoTDatastreamStoragePeriodSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/MobilePhoneProviderSearchBuilder.js~MobilePhoneProviderSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/OperationTypesSearchBuilder.js~OperationTypesBuilder.html +7 -4
- package/docs/class/src/searching/builder/OperationalStatusSearchBuilder.js~OperationalStatusSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/OperationsSearchBuilder.js~OperationsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/OrganizationsSearchBuilder.js~OrganizationsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/PlansSearchBuilder.js~PlansSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/PreFilteredSearchBuilder.js~PreFilteredSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/RawSearchBuilder.js~RawSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/ResourceTypeSearchBuilder.js~ResourceTypeSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/RuleConfigurationSeveritySearchBuilder.js~RuleConfigurationSeveritySearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/RuleModeSearchBuilder.js~RuleModeSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/RuleTypeSearchBuilder.js~RuleTypeSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/RulesSearchBuilder.js~RulesSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/SearchBuilder.js~SearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/SearchWithSummaryBuilder.js~SearchWithSummaryBuilder.html +7 -4
- package/docs/class/src/searching/builder/ServiceGroupSearchBuilder.js~ServiceGroupSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/SoftwaresSearchBuilder.js~SoftwaresSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/SubscribersSearchBuilder.js~SubscribersSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/SubscriptionsSearchBuilder.js~SubscriptionsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/TasksSearchBuilder.js~TasksSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/TicketPrioritySearchBuilder.js~TicketPrioritySearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/TicketSeveritySearchBuilder.js~TicketSeveritySearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/TicketStatusSearchBuilder.js~TicketStatusSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/TicketsSearchBuilder.js~TicketsSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/TimeserieSearchBuilder.js~TimeserieSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/TimezoneSearchBuilder.js~TimezoneSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/UserLanguagesSearchBuilder.js~UserLanguagesSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/UserProfilesSearchBuilder.js~UserProfilesSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/UsersSearchBuilder.js~UsersSearchBuilder.html +7 -4
- package/docs/class/src/searching/builder/WorkgroupsSearchBuilder.js~WorkgroupsSearchBuilder.html +7 -4
- package/docs/class/src/searching/error/SearchBuilderError.js~SearchBuilderError.html +7 -4
- package/docs/class/src/security/CertificateFinder.js~CertificateFinder.html +7 -4
- package/docs/class/src/security/Certificates.js~Certificates.html +7 -4
- package/docs/class/src/security/Security.js~Security.html +7 -4
- package/docs/class/src/timeseries/Timeseries.js~Timeseries.html +7 -4
- package/docs/class/src/timeseries/TimeseriesFinder.js~TimeseriesFinder.html +7 -4
- package/docs/class/src/timeseriesFunctionsCatalog/TimeseriesFunction.js~TimeseriesFunction.html +7 -4
- package/docs/class/src/timeseriesFunctionsCatalog/TimeseriesFunctionFinder.js~TimeseriesFunctionFinder.html +7 -4
- package/docs/class/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js~ConnectorFunctionsHelper.html +7 -4
- package/docs/class/src/transformers/TransformerFinder.js~TransformerFinder.html +7 -4
- package/docs/class/src/transformers/Transformers.js~Transformers.html +7 -4
- package/docs/class/src/users/UserFinder.js~UserFinder.html +7 -4
- package/docs/class/src/users/Users.js~User.html +7 -4
- package/docs/class/src/util/Expression.js~Expression.html +7 -4
- package/docs/class/src/util/NorthAmpliaREST.js~NorthAmpliaREST.html +7 -4
- package/docs/class/src/util/SelectElement.js~SelectElement.html +7 -4
- package/docs/class/src/util/SouthAmpliaREST.js~SouthAmpliaREST.html +7 -4
- package/docs/class/src/util/searchingFields/FieldFinder.js~FieldFinder.html +7 -4
- package/docs/class/src/workgroups/WorkgroupFinder.js~WorkgroupFinder.html +7 -4
- package/docs/class/src/workgroups/WorkgroupRelations.js~WorkgroupRelations.html +7 -4
- package/docs/class/src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder.html +7 -4
- package/docs/class/src/workgroups/Workgroups.js~Workgroups.html +7 -4
- package/docs/coverage.json +34 -15
- package/docs/dump.json +5008 -3512
- package/docs/file/src/AIModels/AIModels.js.html +7 -4
- package/docs/file/src/AIModels/AIModelsFinder.js.html +7 -4
- package/docs/file/src/GenericFinder.js.html +13 -5
- package/docs/file/src/InternalOpenGateAPI.js.html +39 -7
- package/docs/file/src/ProvisionGenericFinder.js.html +7 -4
- package/docs/file/src/alarms/AlarmActions.js.html +7 -4
- package/docs/file/src/alarms/actions/Alarm.js.html +7 -4
- package/docs/file/src/alarms/actions/AlarmActionBuilder.js.html +7 -4
- package/docs/file/src/alarms/actions/AlarmAttendBuilder.js.html +7 -4
- package/docs/file/src/alarms/actions/AlarmCloseBuilder.js.html +7 -4
- package/docs/file/src/areas/AreaFinder.js.html +7 -4
- package/docs/file/src/areas/Areas.js.html +7 -4
- package/docs/file/src/areas/TYPE_ENUM.js.html +7 -4
- package/docs/file/src/bulk/BulkExecutionFinder.js.html +7 -4
- package/docs/file/src/bulk/BulkFinder.js.html +7 -4
- package/docs/file/src/bundles/ACTION_ENUM.js.html +7 -4
- package/docs/file/src/bundles/BundleFinder.js.html +7 -4
- package/docs/file/src/bundles/Bundles.js.html +7 -4
- package/docs/file/src/bundles/deployment/DeploymentElement.js.html +7 -4
- package/docs/file/src/bundles/deployment/MODE_VALIDATORS_ENUM.js.html +7 -4
- package/docs/file/src/bundles/deployment/OPERATION_ENUM.js.html +7 -4
- package/docs/file/src/bundles/deployment/OPTION_ENUM.js.html +7 -4
- package/docs/file/src/bundles/deployment/TYPE_ENUM.js.html +7 -4
- package/docs/file/src/bundles/deployment/TYPE_VALIDATORS_ENUM.js.html +7 -4
- package/docs/file/src/channels/ChannelFinder.js.html +7 -4
- package/docs/file/src/channels/Channels.js.html +7 -4
- package/docs/file/src/collection/devices/DeviceMessage.js.html +7 -4
- package/docs/file/src/collection/devices/collect/CommsModuleMessage.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Datapoint.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Datastreams.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Event.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Hardware.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Location.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Mobile.js.html +7 -4
- package/docs/file/src/collection/devices/collect/PowerSupply.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Software.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Storage.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Subscriber.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Subscription.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Temperature.js.html +7 -4
- package/docs/file/src/collection/devices/collect/Usage.js.html +7 -4
- package/docs/file/src/collection/devices/collect/enum/ADDRESS_TYPE_ENUM.js.html +7 -4
- package/docs/file/src/collection/devices/collect/enum/ANTENNA_STATUS_ENUM.js.html +7 -4
- package/docs/file/src/collection/devices/collect/enum/BATTERY_CHARGE_LEVEL_STATUS_ENUM.js.html +7 -4
- package/docs/file/src/collection/devices/collect/enum/BATTERY_CHARGE_STATUS_ENUM.js.html +7 -4
- package/docs/file/src/collection/devices/collect/enum/LEVEL_TREND_ENUM.js.html +7 -4
- package/docs/file/src/collection/devices/collect/enum/POWER_SUPPLY_SOURCE_ENUM.js.html +7 -4
- package/docs/file/src/collection/devices/collect/enum/SOFTWARE_TYPE_ENUM.js.html +7 -4
- package/docs/file/src/collection/devices/collect/enum/TEMPERATURE_STATUS_ENUM.js.html +7 -4
- package/docs/file/src/{connectorsFunctionsConfiguration/enum → connectorsFunctions}/_CONNECTOR_FUNCTIONS_ENUMS.js.html +10 -7
- package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctions.js.html +634 -0
- package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js.html +333 -0
- package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js.html +331 -0
- package/docs/file/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctions.js.html +12 -9
- package/docs/file/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctionsFinder.js.html +64 -62
- package/docs/file/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctionsHelper.js.html +12 -9
- package/docs/file/src/datasets/DatasetFinder.js.html +7 -4
- package/docs/file/src/datasets/Datasets.js.html +7 -4
- package/docs/file/src/domains/Domains.js.html +7 -4
- package/docs/file/src/domains/DomainsFinder.js.html +7 -4
- package/docs/file/src/entities/DeviceFinder.js.html +7 -4
- package/docs/file/src/entities/EntityFinder.js.html +7 -4
- package/docs/file/src/entities/SubscribersFinder.js.html +7 -4
- package/docs/file/src/entities/SubscriptionsFinder.js.html +7 -4
- package/docs/file/src/entities/TicketFinder.js.html +7 -4
- package/docs/file/src/geocluster/Geocluster.js.html +7 -4
- package/docs/file/src/geocluster/GeoclusterFinder.js.html +7 -4
- package/docs/file/src/iot/catalog/Category.js.html +7 -4
- package/docs/file/src/iot/catalog/Datastream.js.html +7 -4
- package/docs/file/src/iot/catalog/Qrating.js.html +7 -4
- package/docs/file/src/iot/datamodels/Datamodels.js.html +7 -4
- package/docs/file/src/iot/datamodels/DatamodelsFinder.js.html +7 -4
- package/docs/file/src/iot/datamodels/DatamodelsHelper.js.html +7 -4
- package/docs/file/src/manufacturers/Manufacturer.js.html +7 -4
- package/docs/file/src/manufacturers/ManufacturerFinder.js.html +7 -4
- package/docs/file/src/manufacturers/ManufacturerMedia.js.html +7 -4
- package/docs/file/src/manufacturers/Model.js.html +7 -4
- package/docs/file/src/manufacturers/ModelFinder.js.html +7 -4
- package/docs/file/src/manufacturers/ModelMedia.js.html +7 -4
- package/docs/file/src/operationTypes/OperationType.js.html +7 -4
- package/docs/file/src/operationTypes/OperationTypeCatalog.js.html +7 -4
- package/docs/file/src/operationTypes/OperationTypeFinder.js.html +7 -4
- package/docs/file/src/operations/OperationActions.js.html +7 -4
- package/docs/file/src/operations/OperationFinder.js.html +7 -4
- package/docs/file/src/operations/Operations.js.html +7 -4
- package/docs/file/src/operations/PeriodicityActions.js.html +7 -4
- package/docs/file/src/operations/catalog/AppendEntitiesBy.js.html +7 -4
- package/docs/file/src/operations/catalog/BaseOperationBuilder.js.html +7 -4
- package/docs/file/src/operations/catalog/Operation.js.html +7 -4
- package/docs/file/src/operations/catalog/parameters/BaseParameterBuilderWithParent.js.html +7 -4
- package/docs/file/src/operations/catalog/parameters/ParameterBuilderFactory.js.html +7 -4
- package/docs/file/src/operations/catalog/period/DAYS_ENUM.js.html +7 -4
- package/docs/file/src/operations/catalog/period/ExecuteEachBuilder.js.html +7 -4
- package/docs/file/src/operations/catalog/period/ExecuteEveryBuilder.js.html +7 -4
- package/docs/file/src/operations/catalog/period/MONTHS_ENUM.js.html +7 -4
- package/docs/file/src/operations/catalog/period/PeriodicityUpdateBuilder.js.html +7 -4
- package/docs/file/src/operations/catalog/period/pattern/ByGeneric.js.html +7 -4
- package/docs/file/src/operations/catalog/period/pattern/ByMonth.js.html +7 -4
- package/docs/file/src/operations/catalog/period/pattern/ByWeek.js.html +7 -4
- package/docs/file/src/operations/catalog/period/pattern/ByYear.js.html +7 -4
- package/docs/file/src/organizations/OrganizationFinder.js.html +7 -4
- package/docs/file/src/organizations/Organizations.js.html +8 -5
- package/docs/file/src/pipelines/PipelineFinder.js.html +7 -4
- package/docs/file/src/pipelines/Pipelines.js.html +7 -4
- package/docs/file/src/provision/BaseProvision.js.html +89 -4
- package/docs/file/src/provision/bulk/BulkExecutionBuilder.js.html +7 -4
- package/docs/file/src/provision/country/CountriesCatalog.js.html +7 -4
- package/docs/file/src/provision/entities/AssetBuilder.js.html +7 -4
- package/docs/file/src/provision/entities/BulkBuilder.js.html +7 -4
- package/docs/file/src/provision/entities/ComplexBuilder.js.html +7 -4
- package/docs/file/src/provision/entities/CsvBulkBuilder.js.html +7 -4
- package/docs/file/src/provision/entities/DeviceBuilder.js.html +7 -4
- package/docs/file/src/provision/entities/EntityBuilder.js.html +7 -4
- package/docs/file/src/provision/entities/JsonBulkBuilder.js.html +7 -4
- package/docs/file/src/provision/entities/JsonFlattenedBulkBuilder.js.html +7 -4
- package/docs/file/src/provision/entities/SimpleBuilder.js.html +7 -4
- package/docs/file/src/provision/entities/SubscriberBuilder.js.html +7 -4
- package/docs/file/src/provision/entities/SubscriptionBuilder.js.html +7 -4
- package/docs/file/src/provision/entities/TicketBuilder.js.html +7 -4
- package/docs/file/src/provisionProcessors/provisionProcessors.js.html +7 -4
- package/docs/file/src/provisionProcessors/provisionProcessorsFinder.js.html +7 -4
- package/docs/file/src/rulesConfiguration/RuleConfigurations.js.html +7 -4
- package/docs/file/src/rulesConfiguration/RuleConfigurationsActions.js.html +7 -4
- package/docs/file/src/rulesConfiguration/RuleConfigurationsCatalog.js.html +7 -4
- package/docs/file/src/rulesConfiguration/RuleConfigurationsFinder.js.html +7 -4
- package/docs/file/src/rulesConfiguration/RuleConfigurationsHelper.js.html +7 -4
- package/docs/file/src/rulesConfiguration/_RuleCondition.js.html +7 -4
- package/docs/file/src/rulesConfiguration/_RuleNotification.js.html +7 -4
- package/docs/file/src/searching/AssetSearch.js.html +7 -4
- package/docs/file/src/searching/BaseSearch.js.html +7 -4
- package/docs/file/src/searching/DeviceSearch.js.html +7 -4
- package/docs/file/src/searching/EntitySearch.js.html +7 -4
- package/docs/file/src/searching/FilterBuilder.js.html +7 -4
- package/docs/file/src/searching/Search.js.html +7 -4
- package/docs/file/src/searching/SearchWithoutLimit.js.html +7 -4
- package/docs/file/src/searching/SelectBuilder.js.html +7 -4
- package/docs/file/src/searching/StaticSearch.js.html +7 -4
- package/docs/file/src/searching/WPSearch.js.html +7 -4
- package/docs/file/src/searching/builder/AdministrativeStateSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/AlarmsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/AllowedResourceTypeSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/AreasSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/AssetsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/BasicTypesSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/BulkExecutionSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/BulkSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/BundlesSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/CertificatesSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/ChannelsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/CommunicationsModuleTypeSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/CountryCodesSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/DatamodelsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/DatapointsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/DatasetEntitiesSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/DatasetSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/DatasetsCatalogSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/DatastreamsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/DevicesPlansSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/DevicesSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/DomainsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/EntitiesSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/ExecutionsHistorySearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/ExecutionsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/FeedsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/FieldsDefinitionSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/FlattenedSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/HardwaresSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/IoTDatastreamAccessSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/IoTDatastreamPeriodSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/IoTDatastreamStoragePeriodSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/MobilePhoneProviderSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/OperationTypesSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/OperationalStatusSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/OperationsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/OrganizationsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/PlansSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/PreFilteredSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/RawSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/ResourceTypeSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/RuleConfigurationSeveritySearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/RuleModeSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/RuleTypeSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/RulesSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/SearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/SearchWithSummaryBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/ServiceGroupSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/SoftwaresSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/SubscribersSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/SubscriptionsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/TasksSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/TicketPrioritySearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/TicketSeveritySearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/TicketStatusSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/TicketsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/TimeserieSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/TimezoneSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/UserLanguagesSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/UserProfilesSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/UsersSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/builder/WorkgroupsSearchBuilder.js.html +7 -4
- package/docs/file/src/searching/error/SearchBuilderError.js.html +7 -4
- package/docs/file/src/security/ADMINISTRATIVE_STATE_ENUM.js.html +7 -4
- package/docs/file/src/security/CertificateFinder.js.html +7 -4
- package/docs/file/src/security/Certificates.js.html +7 -4
- package/docs/file/src/security/MIME_TYPES_ENUM.js.html +7 -4
- package/docs/file/src/security/Security.js.html +7 -4
- package/docs/file/src/security/USAGES_ENUM.js.html +7 -4
- package/docs/file/src/timeseries/Timeseries.js.html +7 -4
- package/docs/file/src/timeseries/TimeseriesFinder.js.html +7 -4
- package/docs/file/src/timeseriesFunctionsCatalog/TYPES_ENUM.js.html +7 -4
- package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunction.js.html +7 -4
- package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunctionFinder.js.html +7 -4
- package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js.html +7 -4
- package/docs/file/src/transformers/TransformerFinder.js.html +7 -4
- package/docs/file/src/transformers/Transformers.js.html +7 -4
- package/docs/file/src/users/UserFinder.js.html +7 -4
- package/docs/file/src/users/Users.js.html +7 -4
- package/docs/file/src/util/DATE_FORMAT.js.html +7 -4
- package/docs/file/src/util/Expression.js.html +7 -4
- package/docs/file/src/util/NorthAmpliaREST.js.html +12 -5
- package/docs/file/src/util/SelectElement.js.html +7 -4
- package/docs/file/src/util/SouthAmpliaREST.js.html +7 -4
- package/docs/file/src/util/formats/check_types.js.html +7 -4
- package/docs/file/src/util/searchingFields/FieldFinder.js.html +7 -4
- package/docs/file/src/util/searchingFields/IotFields.js.html +7 -4
- package/docs/file/src/util/searchingFields/source-precompiled/Fields.js.html +7 -4
- package/docs/file/src/workgroups/WorkgroupFinder.js.html +7 -4
- package/docs/file/src/workgroups/WorkgroupRelations.js.html +7 -4
- package/docs/file/src/workgroups/WorkgroupRelationsFinder.js.html +7 -4
- package/docs/file/src/workgroups/Workgroups.js.html +7 -4
- package/docs/identifiers.html +94 -7
- package/docs/index.html +7 -4
- package/docs/manual/index.html +87 -3
- package/docs/package.json +1 -1
- package/docs/script/search_index.js +287 -107
- package/docs/source.html +290 -263
- package/docs/test-file/client/autogeneratedFields/fields.spec.js.html +7 -4
- package/docs/test-file/client/bundles/bundles.spec.js.html +7 -4
- package/docs/test-file/client/collection/iot.spec.js.html +7 -4
- package/docs/test-file/client/device/device.spec.js.html +7 -4
- package/docs/test-file/client/provision/devices.provision.spec.js.html +7 -4
- package/docs/test-file/client/searching/FilterBuilder.spec.js.html +7 -4
- package/docs/test-file/client/searching/datapoints.search.spec.js.html +7 -4
- package/docs/test-file/client/searching/module.searching.spec.js.html +7 -4
- package/docs/test-file/client/searching/rawsearch.spec.js.html +7 -4
- package/docs/test-file/client/searching/search.spec.js.html +7 -4
- package/docs/test-file/client/security/certificates.spec.js.html +7 -4
- package/docs/test-file/client/users/find.spec.js.html +7 -4
- package/docs/test-file/client/users/user.spec.js.html +7 -4
- package/docs/test.html +7 -4
- package/docs/variable/index.html +15 -12
- package/features/features/provision/connectorFunctions/catalog/create_delete_connectorfunctions.feature +43 -0
- package/features/features/provision/connectorFunctions/catalog/findConnectorFunctions.feature +47 -0
- package/features/step_definitions/given_step_definitions_using_model.js +15 -0
- package/features/step_definitions/when_step_definitions.js +0 -1
- package/features/step_definitions/when_step_definitions_using_model.js +12 -12
- package/features/support/create_provision_model.js +15 -0
- package/features/support/delete_provision_model.js +5 -1
- package/features/support/find_model.js +5 -0
- package/features/support/utils_model.js +9 -0
- package/features/support/world.js +5 -5
- package/package.json +1 -1
- package/src/GenericFinder.js +6 -1
- package/src/InternalOpenGateAPI.js +32 -3
- package/src/connectorsFunctions/catalog/ConnectorFunctions.js +328 -0
- package/src/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js +27 -0
- package/src/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js +25 -0
- package/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctions.js +2 -2
- package/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctionsFinder.js +54 -55
- package/src/{connectorsFunctionsConfiguration → connectorsFunctions/configuration}/ConnectorFunctionsHelper.js +2 -2
- package/src/organizations/Organizations.js +1 -1
- package/src/provision/BaseProvision.js +82 -0
- package/src/util/NorthAmpliaREST.js +5 -1
- package/dist/opengate-api-bower-12.12.2.js.map +0 -1
- package/dist/opengate-api-bower-12.12.2.min.js.map +0 -1
- package/dist/src/connectorsFunctionsConfiguration/ConnectorFunctions.js.map +0 -1
- package/dist/src/connectorsFunctionsConfiguration/ConnectorFunctionsHelper.js.map +0 -1
- package/dist/src/connectorsFunctionsConfiguration/enum/_CONNECTOR_FUNCTIONS_ENUMS.js.map +0 -1
- /package/dist/src/{connectorsFunctionsConfiguration/enum → connectorsFunctions}/_CONNECTOR_FUNCTIONS_ENUMS.js +0 -0
- /package/docs/ast/source/{connectorsFunctionsConfiguration/enum → connectorsFunctions}/_CONNECTOR_FUNCTIONS_ENUMS.js.json +0 -0
- /package/src/{connectorsFunctionsConfiguration/enum → connectorsFunctions}/_CONNECTOR_FUNCTIONS_ENUMS.js +0 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import InternalOpenGateAPI from "../../InternalOpenGateAPI";
|
|
4
|
+
import BaseProvision from "../../provision/BaseProvision";
|
|
5
|
+
import {
|
|
6
|
+
CONNECTOR_FUNCTION_TYPES,
|
|
7
|
+
CONNECTOR_FUNCTION_OPERATIONAL_STATUS,
|
|
8
|
+
CONNECTOR_FUNCTION_PAYLOAD_TYPES
|
|
9
|
+
} from '../_CONNECTOR_FUNCTIONS_ENUMS';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* This is a base object than contains all you can about connector functions catalog
|
|
13
|
+
*/
|
|
14
|
+
export default class ConnectorFunctions extends BaseProvision {
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @param {InternalOpenGateAPI} ogapi
|
|
18
|
+
* @param {String} identifier
|
|
19
|
+
* @param {Object} connectorFunction
|
|
20
|
+
*/
|
|
21
|
+
constructor(ogapi, identifier, connectorFunction) {
|
|
22
|
+
super(ogapi, "/catalog", undefined, ["name", "operationalStatus", "type", "cloneable", "javascript", "payloadType"])
|
|
23
|
+
|
|
24
|
+
// only for updates and delete
|
|
25
|
+
if (identifier) {
|
|
26
|
+
this.withIdentifier(identifier);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if(connectorFunction){
|
|
30
|
+
const _keys = Object.keys(connectorFunction)
|
|
31
|
+
for(let i = 0; i < _keys.length; i++){
|
|
32
|
+
const _name = _keys[i]
|
|
33
|
+
const _value = connectorFunction[_name]
|
|
34
|
+
if(_value){
|
|
35
|
+
const _cname = _name.charAt(0).toUpperCase + _name.slice(1)
|
|
36
|
+
this["with" + _cname](_value)
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Set the identifier
|
|
44
|
+
* @param {String} identifier
|
|
45
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
46
|
+
*/
|
|
47
|
+
withIdentifier(identifier) {
|
|
48
|
+
if (typeof identifier !== 'string' || identifier.length === 0 || identifier.length > 50)
|
|
49
|
+
throw new Error('Parameter identifier must be a string, cannot be empty and has a maximum length of 50');
|
|
50
|
+
this._identifier = identifier;
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Descriptive and unique name
|
|
56
|
+
* @param {String} name
|
|
57
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
58
|
+
*/
|
|
59
|
+
withName(name) {
|
|
60
|
+
if (typeof name !== 'string' || name.length === 0 || name.length > 50)
|
|
61
|
+
throw new Error('Parameter name must be a string, cannot be empty and has a maximum length of 50');
|
|
62
|
+
this._name = name;
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Description of the connector function. This field is optional.
|
|
68
|
+
* @param {String} description
|
|
69
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
70
|
+
*/
|
|
71
|
+
withDescription(description) {
|
|
72
|
+
if (typeof description !== 'string' || description.length > 250)
|
|
73
|
+
throw new Error({
|
|
74
|
+
message: "OGAPI_STRING_PARAMETER_MAX_LENGTH_250",
|
|
75
|
+
parameter: 'description'
|
|
76
|
+
});
|
|
77
|
+
this._description = description;
|
|
78
|
+
return this;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* Connector Function status
|
|
84
|
+
* Allowed: DISABLED┃PRODUCTION┃TEST
|
|
85
|
+
* @param {String} operationalStatus
|
|
86
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
87
|
+
*/
|
|
88
|
+
withOperationalStatus(operationalStatus) {
|
|
89
|
+
if (typeof operationalStatus !== 'string' || !this._checkValues(operationalStatus, CONNECTOR_FUNCTION_OPERATIONAL_STATUS))
|
|
90
|
+
throw new Error('Parameter operational status must be a string and must be one of these values: ' + CONNECTOR_FUNCTION_OPERATIONAL_STATUS);
|
|
91
|
+
|
|
92
|
+
this._operationalStatus = operationalStatus;
|
|
93
|
+
return this;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Used to filter connector functions by operation name. If Connector Function type is REQUEST, this field is mandatory and defined name must be an operation name available for specified Api Key. If the type is COLLECTION or RESPONSE, this field must be null.
|
|
98
|
+
* @param {String} operationName
|
|
99
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
100
|
+
*/
|
|
101
|
+
withOperationName(operationName) {
|
|
102
|
+
if (typeof operationName !== 'string' || operationName.length === 0 || operationName.length > 50)
|
|
103
|
+
throw new Error('Parameter operation name must be a string, cannot be empty and has a maximum length of 50');
|
|
104
|
+
this._operationName = operationName;
|
|
105
|
+
return this;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* Type of connector function, this is mandatory. Keep in mind that you will be not allowed to modify it.
|
|
111
|
+
* Allowed: COLLECTION┃REQUEST┃RESPONSE
|
|
112
|
+
* @param {String} type
|
|
113
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
114
|
+
*/
|
|
115
|
+
withType(type) {
|
|
116
|
+
if (typeof type !== 'string' || !this._checkValues(type, CONNECTOR_FUNCTION_TYPES))
|
|
117
|
+
throw new Error('Parameter type must be a string and must be one of these values: ' + CONNECTOR_FUNCTION_TYPES);
|
|
118
|
+
|
|
119
|
+
this._type = type;
|
|
120
|
+
return this;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Indicates whether or not the Connector Function is cloneable.
|
|
125
|
+
* @param {Boolean} cloneable
|
|
126
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
127
|
+
*/
|
|
128
|
+
withCloneable(cloneable) {
|
|
129
|
+
if (typeof cloneable !== 'boolean')
|
|
130
|
+
throw new Error('Parameter cloneable must be a boolean');
|
|
131
|
+
this._cloneable = cloneable;
|
|
132
|
+
return this;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Connector Function selection criteria for operation requests. This field is mandatory if Connector Function type is REQUEST. ⮕ [ each element is defined by path and value ]
|
|
137
|
+
* @param {Array} northCriterias
|
|
138
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
139
|
+
*/
|
|
140
|
+
withNorthCriterias(northCriterias) {
|
|
141
|
+
if (!(northCriterias instanceof Array))
|
|
142
|
+
throw new Error({
|
|
143
|
+
message: "Parameter northCriterias requires an array",
|
|
144
|
+
parameter: 'northCriterias'
|
|
145
|
+
});
|
|
146
|
+
this._northCriterias = northCriterias;
|
|
147
|
+
return this;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Add northCriteria to parameter northCriterias. Each element is defined by path and value
|
|
152
|
+
* @param {Object} northCriteria
|
|
153
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
154
|
+
*/
|
|
155
|
+
addNorthCriteria(northCriteria) {
|
|
156
|
+
if (typeof northCriteria !== 'object' ||
|
|
157
|
+
!northCriteria.path || typeof northCriteria.path !== 'string' ||
|
|
158
|
+
!northCriteria.value || typeof northCriteria.value !== 'object')
|
|
159
|
+
throw new Error({
|
|
160
|
+
message: "Parameter northCriteria requires path and value",
|
|
161
|
+
parameter: 'northCriteria'
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
if (!this._northCriterias) {
|
|
165
|
+
this._northCriterias = []
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
this._northCriterias.push(northCriteria)
|
|
169
|
+
return this;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Connector Function selection criteria for operation responses and data collection. This field is mandatory if Connector Function type is COLLECTION or RESPONSE. ⮕ [ each string can represent an URI, topic, OID... ]. Each string can represent an URI, topic, OID...
|
|
174
|
+
* @param {Array} southCriterias
|
|
175
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
176
|
+
*/
|
|
177
|
+
withSouthCriterias(southCriterias) {
|
|
178
|
+
if (!(southCriterias instanceof Array))
|
|
179
|
+
throw new Error({
|
|
180
|
+
message: "Parameter southCriterias requires an array",
|
|
181
|
+
parameter: 'southCriterias'
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
southCriterias.forEach((crit) => {
|
|
185
|
+
try {
|
|
186
|
+
this.addSouthCriteria(crit)
|
|
187
|
+
} catch (critErr) {
|
|
188
|
+
this._southCriterias = null
|
|
189
|
+
throw critErr
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
return this;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Add southCriteria to parameter southCriterias. Each string can represent an URI, topic, OID...
|
|
198
|
+
* @param {String} southCriteria
|
|
199
|
+
* @returns
|
|
200
|
+
*/
|
|
201
|
+
addSouthCriteria(southCriteria) {
|
|
202
|
+
if (typeof southCriteria !== 'string')
|
|
203
|
+
throw new Error('southCriteria must be a string');
|
|
204
|
+
|
|
205
|
+
if (!this._southCriterias) {
|
|
206
|
+
this._southCriterias = []
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
this._southCriterias.push(southCriteria)
|
|
210
|
+
return this;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Connector function javascript code
|
|
215
|
+
* @param {String} javascript
|
|
216
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
217
|
+
*/
|
|
218
|
+
withJavascript(javascript) {
|
|
219
|
+
if (typeof javascript !== 'string')
|
|
220
|
+
throw new Error('Parameter javascript must be a string');
|
|
221
|
+
this._javascript = javascript;
|
|
222
|
+
return this;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Enum of allowed types for connector function's payload data. Request Connector Functions only accept JSON.
|
|
227
|
+
* Allowed: TEXT┃JSON┃BINARY
|
|
228
|
+
* @param {String} payloadType
|
|
229
|
+
* @returns {ConnectorFunctionsCatalog}
|
|
230
|
+
*/
|
|
231
|
+
withPayloadType(payloadType) {
|
|
232
|
+
if (typeof payloadType !== 'string' || !this._checkValues(payloadType, CONNECTOR_FUNCTION_PAYLOAD_TYPES))
|
|
233
|
+
throw new Error('Parameter payload type must be a string and must be one of these values: ' + CONNECTOR_FUNCTION_PAYLOAD_TYPES);
|
|
234
|
+
|
|
235
|
+
this._payloadType = payloadType;
|
|
236
|
+
return this;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
_composeElement() {
|
|
240
|
+
let updateData = {
|
|
241
|
+
"name": this._name,
|
|
242
|
+
"description": (this._description ? this._description : undefined),
|
|
243
|
+
"operationalStatus": this._operationalStatus,
|
|
244
|
+
"operationName": this._type === 'REQUEST' ? this._operationName : undefined,
|
|
245
|
+
"type": this._type,
|
|
246
|
+
"cloneable": this._cloneable,
|
|
247
|
+
"northCriterias": this._northCriterias,
|
|
248
|
+
"southCriterias": this._southCriterias,
|
|
249
|
+
"javascript": this._javascript,
|
|
250
|
+
"payloadType": this._payloadType
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
return updateData;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
_checkRequiredParameters(isUpdate) {
|
|
257
|
+
if (isUpdate && this._identifier === undefined) {
|
|
258
|
+
throw new Error({
|
|
259
|
+
message: "Parameter identifier must be defined",
|
|
260
|
+
parameter: "identifier"
|
|
261
|
+
})
|
|
262
|
+
}
|
|
263
|
+
try {
|
|
264
|
+
super._checkRequiredParameters()
|
|
265
|
+
} catch (err) {
|
|
266
|
+
throw err
|
|
267
|
+
}
|
|
268
|
+
switch (this._type) {
|
|
269
|
+
case 'REQUEST': {
|
|
270
|
+
if (this._operationName === undefined || this._northCriterias === undefined || this._northCriterias.length === 0) {
|
|
271
|
+
throw new Error('Parameters operationName and northCriteria must be defined when type REQUEST');
|
|
272
|
+
}
|
|
273
|
+
if (this._payloadType !== 'JSON') {
|
|
274
|
+
throw new Error('Parameter payload type must be JSON when type REQUEST');
|
|
275
|
+
}
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
case 'COLLECTION':
|
|
279
|
+
case 'RESPONSE': {
|
|
280
|
+
if (this._southCriterias === undefined || this._southCriterias.length === 0) {
|
|
281
|
+
throw new Error('Parameters southCriteria must be defined when type COLLECTION or RESPONSE');
|
|
282
|
+
}
|
|
283
|
+
break
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
_buildURL() {
|
|
289
|
+
return 'connectorFunctions/' + this._resource + '/' + this._identifier;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Create a new connector function catalog
|
|
294
|
+
* @return {Promise}
|
|
295
|
+
* @throws {Error}
|
|
296
|
+
*/
|
|
297
|
+
create() {
|
|
298
|
+
this._checkRequiredParameters();
|
|
299
|
+
|
|
300
|
+
return this._doSouthPost('connectorFunctions/' + this._resource, this._composeElement());
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Updates a connector function catalog
|
|
305
|
+
* @return {Promise}
|
|
306
|
+
* @throws {Error}
|
|
307
|
+
*/
|
|
308
|
+
update() {
|
|
309
|
+
this._checkRequiredParameters(true);
|
|
310
|
+
|
|
311
|
+
return this._doSouthPut(this._buildURL(), this._composeElement());
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Delete a connector function catalog
|
|
316
|
+
* @returns {Promise}
|
|
317
|
+
* @returns {Error}
|
|
318
|
+
*/
|
|
319
|
+
delete() {
|
|
320
|
+
if (this._identifier === undefined) {
|
|
321
|
+
throw new Error({
|
|
322
|
+
message: "Parameter identifier must be defined",
|
|
323
|
+
parameter: "identifier"
|
|
324
|
+
})
|
|
325
|
+
}
|
|
326
|
+
return this._doSouthDelete();
|
|
327
|
+
}
|
|
328
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import GenericFinder from "../../GenericFinder";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This class allow make get request to connector functions catalog resource into Opengate North API.
|
|
7
|
+
*/
|
|
8
|
+
export default class ConnectorFunctionsCatalog extends GenericFinder {
|
|
9
|
+
|
|
10
|
+
constructor(ogapi){
|
|
11
|
+
super(ogapi, 'connectorFunctions/provision/catalog', 'connectorFunctions', 'Connector functions not found');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Get connector functions catalog
|
|
16
|
+
*
|
|
17
|
+
* @returns {Promise}
|
|
18
|
+
*/
|
|
19
|
+
getConnectorFunctionsCatalog(){
|
|
20
|
+
return this._execute(true);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_composeUrl() {
|
|
24
|
+
return this._baseUrl;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import GenericFinder from "../../GenericFinder";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This class allow make get request to a connector functions catalog resource into Opengate North API.
|
|
7
|
+
*/
|
|
8
|
+
export default class ConnectorFunctionsCatalogFinder extends GenericFinder {
|
|
9
|
+
|
|
10
|
+
constructor(ogapi){
|
|
11
|
+
super(ogapi, 'connectorFunctions/provision/catalog', 'connectorFunctions', 'Connector functions not found');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Reading a Connector Function from catalog
|
|
16
|
+
*
|
|
17
|
+
* @param {String} connectorFunctionId
|
|
18
|
+
* @returns {Promise}
|
|
19
|
+
*/
|
|
20
|
+
findByConnectorFunctionsId(connectorFunctionId){
|
|
21
|
+
this._withId(connectorFunctionId)
|
|
22
|
+
return this._execute(true);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
import BaseProvision from '
|
|
3
|
+
import BaseProvision from '../../provision/BaseProvision';
|
|
4
4
|
import {
|
|
5
5
|
CONNECTOR_FUNCTION_TYPES,
|
|
6
6
|
CONNECTOR_FUNCTION_OPERATIONAL_STATUS,
|
|
7
7
|
CONNECTOR_FUNCTION_PAYLOAD_TYPES
|
|
8
|
-
} from '
|
|
8
|
+
} from '../_CONNECTOR_FUNCTIONS_ENUMS';
|
|
9
9
|
|
|
10
10
|
import q from 'q';
|
|
11
11
|
|
|
@@ -1,56 +1,55 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* @param {string}
|
|
23
|
-
* @
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
_this.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* @param {string}
|
|
39
|
-
* @param {string}
|
|
40
|
-
* @
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
_this.
|
|
46
|
-
_this.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import GenericFinder from '../../GenericFinder';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This class allow make get request to ConnectorFunctions resource into Opengate North API.
|
|
7
|
+
*/
|
|
8
|
+
export default class ConnectorFunctionsFinder extends GenericFinder {
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @param {InternalOpenGateAPI} ogapi - Reference to the API object.
|
|
12
|
+
*/
|
|
13
|
+
constructor(ogapi) {
|
|
14
|
+
super(ogapi, 'connectorFunctions/provision/organizations', "connectorFunctions", 'Connector functions not found');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Performs a get that returns connectors functions related
|
|
19
|
+
* @test
|
|
20
|
+
* ogapi.newConnectorFunctionsFinder().findByOrganizationAndChannel('xxx-xx-xxx-xxx', 'xxxxx-xxxx-xxxx').then().catch();
|
|
21
|
+
* @param {string} organization - organization
|
|
22
|
+
* @param {string} channel - channel.
|
|
23
|
+
* @return {Promise}
|
|
24
|
+
*/
|
|
25
|
+
findByOrganizationAndChannel(organization, channel) {
|
|
26
|
+
let _this = this;
|
|
27
|
+
_this._organization = organization;
|
|
28
|
+
_this._channel = channel;
|
|
29
|
+
|
|
30
|
+
return this._execute();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Performs a get that returns connectors functions related
|
|
35
|
+
* @test
|
|
36
|
+
* ogapi.newConnectorFunctionsFinder().findByOrganizationAndChannel('xxx-xx-xxx-xxx', 'xxxxx-xxxx-xxxx').then().catch();
|
|
37
|
+
* @param {string} organization - organization
|
|
38
|
+
* @param {string} channel - channel.
|
|
39
|
+
* @param {string} name - Connector function name
|
|
40
|
+
* @return {Promise}
|
|
41
|
+
*/
|
|
42
|
+
findByOrganizationAndChannelAndName(organization, channel, name) {
|
|
43
|
+
let _this = this;
|
|
44
|
+
_this._organization = organization;
|
|
45
|
+
_this._channel = channel;
|
|
46
|
+
_this._name = name;
|
|
47
|
+
|
|
48
|
+
return this._execute();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
_composeUrl() {
|
|
52
|
+
return this._baseUrl + "/" + this._organization + "/channels/" + this._channel + (this._name?"/" + this._name:'');
|
|
53
|
+
}
|
|
54
|
+
|
|
56
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
import GenericFinder from '
|
|
3
|
+
import GenericFinder from '../../GenericFinder';
|
|
4
4
|
import q from 'q';
|
|
5
5
|
import HttpStatus from 'http-status-codes';
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ import HttpStatus from 'http-status-codes';
|
|
|
8
8
|
import {
|
|
9
9
|
CONNECTOR_FUNCTION_SOUTH_PROTOCOLS,
|
|
10
10
|
CONNECTOR_FUNCTION_PAYLOAD_TYPES
|
|
11
|
-
} from '
|
|
11
|
+
} from '../_CONNECTOR_FUNCTIONS_ENUMS';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* This class allow make get request to RuleConfigurationsHelper resource into Opengate North API.
|
|
@@ -178,7 +178,7 @@ export default class Organizations extends BaseProvision {
|
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* Sets the password poliicy configuration
|
|
181
|
-
* @param {object}
|
|
181
|
+
* @param {object} passPolicy
|
|
182
182
|
* @return {Organizations}
|
|
183
183
|
*/
|
|
184
184
|
withPasswordPolicy(passPolicy) {
|
|
@@ -131,6 +131,28 @@ export default class BaseProvision {
|
|
|
131
131
|
return promise;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
_doSouthDelete(body) {
|
|
135
|
+
var defered = q.defer();
|
|
136
|
+
var promise = defered.promise;
|
|
137
|
+
this._ogapi.Sapi.delete(this._buildURL(), this._timeout, this._getExtraHeaders(), this._getUrlParameters(), body, this._getServiceBaseURL())
|
|
138
|
+
.then((res) => {
|
|
139
|
+
if (res.statusCode === 200) {
|
|
140
|
+
defered.resolve({
|
|
141
|
+
statusCode: res.statusCode
|
|
142
|
+
});
|
|
143
|
+
} else {
|
|
144
|
+
defered.reject({
|
|
145
|
+
errors: res.errors,
|
|
146
|
+
statusCode: res.statusCode
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
.catch((error) => {
|
|
151
|
+
defered.reject(error);
|
|
152
|
+
});
|
|
153
|
+
return promise;
|
|
154
|
+
}
|
|
155
|
+
|
|
134
156
|
/**
|
|
135
157
|
* This invoke a request to OpenGate North API and the callback is managed by promises
|
|
136
158
|
* This function updates a entity of provision
|
|
@@ -200,6 +222,33 @@ export default class BaseProvision {
|
|
|
200
222
|
return promise;
|
|
201
223
|
}
|
|
202
224
|
|
|
225
|
+
_doSouthPut(resource, element) {
|
|
226
|
+
var defered = q.defer();
|
|
227
|
+
var promise = defered.promise;
|
|
228
|
+
|
|
229
|
+
this._ogapi.Sapi.put(resource, element, this._timeout, this._getExtraHeaders(), this._getUrlParameters(), this._getServiceBaseURL())
|
|
230
|
+
.then((res) => {
|
|
231
|
+
if (res.statusCode === 200) {
|
|
232
|
+
defered.resolve({
|
|
233
|
+
statusCode: res.statusCode
|
|
234
|
+
});
|
|
235
|
+
} else if (res.status === 200) {
|
|
236
|
+
defered.resolve({
|
|
237
|
+
statusCode: res.status
|
|
238
|
+
});
|
|
239
|
+
} else {
|
|
240
|
+
defered.reject({
|
|
241
|
+
errors: res.errors,
|
|
242
|
+
statusCode: res.statusCode
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
})
|
|
246
|
+
.catch((error) => {
|
|
247
|
+
defered.reject(error);
|
|
248
|
+
});
|
|
249
|
+
return promise;
|
|
250
|
+
}
|
|
251
|
+
|
|
203
252
|
_doNorthPost(resource, element, returnBody) {
|
|
204
253
|
var defered = q.defer();
|
|
205
254
|
var promise = defered.promise;
|
|
@@ -233,6 +282,39 @@ export default class BaseProvision {
|
|
|
233
282
|
return promise;
|
|
234
283
|
}
|
|
235
284
|
|
|
285
|
+
_doSouthPost(resource, element, returnBody) {
|
|
286
|
+
var defered = q.defer();
|
|
287
|
+
var promise = defered.promise;
|
|
288
|
+
this._ogapi.Sapi.post(resource, element, this._timeout, this._getExtraHeaders(), this._getUrlParameters(), this._getServiceBaseURL())
|
|
289
|
+
.then((res) => {
|
|
290
|
+
const response = {
|
|
291
|
+
statusCode: res.statusCode
|
|
292
|
+
}
|
|
293
|
+
if (res.statusCode === 201) {
|
|
294
|
+
if (typeof this._onCreated === "function") {
|
|
295
|
+
this._onCreated(res.header.location);
|
|
296
|
+
}
|
|
297
|
+
response.location = res.header.location
|
|
298
|
+
if(returnBody){
|
|
299
|
+
response.data = res.body
|
|
300
|
+
}
|
|
301
|
+
defered.resolve(response);
|
|
302
|
+
} else if (res.statusCode === 200) {
|
|
303
|
+
if(returnBody){
|
|
304
|
+
response.data = res.body
|
|
305
|
+
}
|
|
306
|
+
defered.resolve(response);
|
|
307
|
+
} else {
|
|
308
|
+
response.errors = res.errors
|
|
309
|
+
defered.reject(response);
|
|
310
|
+
}
|
|
311
|
+
})
|
|
312
|
+
.catch((error) => {
|
|
313
|
+
defered.reject(error);
|
|
314
|
+
});
|
|
315
|
+
return promise;
|
|
316
|
+
}
|
|
317
|
+
|
|
236
318
|
_getExtraHeaders() {
|
|
237
319
|
return this._headers;
|
|
238
320
|
}
|
|
@@ -375,7 +375,11 @@ export default class NorthAmpliaREST {
|
|
|
375
375
|
_req = _req.end(function(err, res) {
|
|
376
376
|
if (err !== null) {
|
|
377
377
|
console.error("OGAPI ERROR: ")
|
|
378
|
-
|
|
378
|
+
try{
|
|
379
|
+
console.log(JSON.stringify(err))
|
|
380
|
+
}catch(err){
|
|
381
|
+
console.log(err)
|
|
382
|
+
}
|
|
379
383
|
let data;
|
|
380
384
|
let headers;
|
|
381
385
|
let status = err.status ? err.status : undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"mappings":"","sources":["opengate-api-bower.js"],"file":"opengate-api-bower-12.12.2.js","sourceRoot":".."}
|