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.
Files changed (561) hide show
  1. package/bower.json +1 -1
  2. package/dist/{opengate-api-bower-13.2.0.js → opengate-api-bower-14.1.0.js} +1004 -389
  3. package/dist/opengate-api-bower-14.1.0.js.map +1 -0
  4. package/dist/{opengate-api-bower-13.2.0.min.js → opengate-api-bower-14.1.0.min.js} +8 -8
  5. package/dist/opengate-api-bower-14.1.0.min.js.map +1 -0
  6. package/dist/src/InternalOpenGateAPI.js +57 -2
  7. package/dist/src/InternalOpenGateAPI.js.map +1 -1
  8. package/dist/src/iot/catalog/Datastream.js +0 -17
  9. package/dist/src/iot/catalog/Datastream.js.map +1 -1
  10. package/dist/src/iot/datamodels/Datamodels.js +0 -4
  11. package/dist/src/iot/datamodels/Datamodels.js.map +1 -1
  12. package/dist/src/manufacturers/Manufacturer.js +14 -20
  13. package/dist/src/manufacturers/Manufacturer.js.map +1 -1
  14. package/dist/src/manufacturers/ManufacturerFinder.js +31 -3
  15. package/dist/src/manufacturers/ManufacturerFinder.js.map +1 -1
  16. package/dist/src/manufacturers/Model.js +22 -63
  17. package/dist/src/manufacturers/Model.js.map +1 -1
  18. package/dist/src/manufacturers/ModelFinder.js +48 -8
  19. package/dist/src/manufacturers/ModelFinder.js.map +1 -1
  20. package/dist/src/manufacturers/ModelMedia.js +6 -2
  21. package/dist/src/manufacturers/ModelMedia.js.map +1 -1
  22. package/dist/src/operationTypes/OperationType.js +0 -4
  23. package/dist/src/operationTypes/OperationType.js.map +1 -1
  24. package/dist/src/operations/OperationActions.js +2 -0
  25. package/dist/src/operations/OperationActions.js.map +1 -1
  26. package/dist/src/operations/catalog/BaseOperationBuilder.js +14 -11
  27. package/dist/src/operations/catalog/BaseOperationBuilder.js.map +1 -1
  28. package/dist/src/organization_manufacturer/Manufacturer.js +232 -0
  29. package/dist/src/organization_manufacturer/Manufacturer.js.map +1 -0
  30. package/dist/src/organization_manufacturer/ManufacturerFinder.js +117 -0
  31. package/dist/src/organization_manufacturer/ManufacturerFinder.js.map +1 -0
  32. package/dist/src/organization_manufacturer/Model.js +185 -0
  33. package/dist/src/organization_manufacturer/Model.js.map +1 -0
  34. package/dist/src/organization_manufacturer/ModelFinder.js +93 -0
  35. package/dist/src/organization_manufacturer/ModelFinder.js.map +1 -0
  36. package/dist/src/security/Certificates.js +0 -31
  37. package/dist/src/security/Certificates.js.map +1 -1
  38. package/dist/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js +8 -61
  39. package/dist/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js.map +1 -1
  40. package/docs/ast/source/InternalOpenGateAPI.js.json +29760 -26563
  41. package/docs/ast/source/iot/catalog/Datastream.js.json +5410 -6981
  42. package/docs/ast/source/iot/datamodels/Datamodels.js.json +4900 -5102
  43. package/docs/ast/source/manufacturers/Manufacturer.js.json +6771 -7127
  44. package/docs/ast/source/manufacturers/ManufacturerFinder.js.json +5308 -2833
  45. package/docs/ast/source/manufacturers/Model.js.json +6847 -9810
  46. package/docs/ast/source/manufacturers/ModelFinder.js.json +7622 -3194
  47. package/docs/ast/source/manufacturers/ModelMedia.js.json +5118 -4163
  48. package/docs/ast/source/operationTypes/OperationType.js.json +4909 -5563
  49. package/docs/ast/source/operations/OperationActions.js.json +8300 -7782
  50. package/docs/ast/source/operations/catalog/BaseOperationBuilder.js.json +10013 -9786
  51. package/docs/ast/source/organization_manufacturer/Manufacturer.js.json +24122 -0
  52. package/docs/ast/source/organization_manufacturer/ManufacturerFinder.js.json +6837 -0
  53. package/docs/ast/source/organization_manufacturer/Model.js.json +19358 -0
  54. package/docs/ast/source/organization_manufacturer/ModelFinder.js.json +6371 -0
  55. package/docs/ast/source/security/Certificates.js.json +16364 -21990
  56. package/docs/ast/source/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js.json +2865 -6468
  57. package/docs/badge.svg +2 -2
  58. package/docs/class/src/AIModels/AIModels.js~AIModels.html +11 -1
  59. package/docs/class/src/AIModels/AIModelsFinder.js~AIModelsFinder.html +11 -1
  60. package/docs/class/src/GenericFinder.js~GenericFinder.html +13 -3
  61. package/docs/class/src/InternalOpenGateAPI.js~InternalOpenGateAPI.html +554 -154
  62. package/docs/class/src/ProvisionGenericFinder.js~ProvisionGenericFinder.html +12 -2
  63. package/docs/class/src/alarms/AlarmActions.js~AlarmActions.html +11 -1
  64. package/docs/class/src/alarms/actions/Alarm.js~Operation.html +11 -1
  65. package/docs/class/src/alarms/actions/AlarmActionBuilder.js~AlarmActionBuilder.html +11 -1
  66. package/docs/class/src/alarms/actions/AlarmAttendBuilder.js~AlarmAttendBuilder.html +11 -1
  67. package/docs/class/src/alarms/actions/AlarmCloseBuilder.js~AlarmCloseBuilder.html +11 -1
  68. package/docs/class/src/areas/AreaFinder.js~AreaFinder.html +11 -1
  69. package/docs/class/src/areas/Areas.js~Areas.html +11 -1
  70. package/docs/class/src/bulk/BulkExecutionFinder.js~BulkExecutionFinder.html +11 -1
  71. package/docs/class/src/bulk/BulkFinder.js~BulkFinder.html +11 -1
  72. package/docs/class/src/bundles/BundleFinder.js~BundleFinder.html +11 -1
  73. package/docs/class/src/bundles/Bundles.js~Bundles.html +11 -1
  74. package/docs/class/src/bundles/deployment/DeploymentElement.js~DeploymentElement.html +11 -1
  75. package/docs/class/src/channels/ChannelFinder.js~ChannelFinder.html +11 -1
  76. package/docs/class/src/channels/Channels.js~Channels.html +11 -1
  77. package/docs/class/src/collection/devices/DeviceMessage.js~DeviceMessage.html +11 -1
  78. package/docs/class/src/collection/devices/collect/CommsModuleMessage.js~CommsModuleMessage.html +11 -1
  79. package/docs/class/src/collection/devices/collect/Datapoint.js~Datapoint.html +11 -1
  80. package/docs/class/src/collection/devices/collect/Datastreams.js~Datastream.html +11 -1
  81. package/docs/class/src/collection/devices/collect/Event.js~Event.html +11 -1
  82. package/docs/class/src/collection/devices/collect/Hardware.js~Hardware.html +11 -1
  83. package/docs/class/src/collection/devices/collect/Location.js~Location.html +11 -1
  84. package/docs/class/src/collection/devices/collect/Mobile.js~Mobile.html +11 -1
  85. package/docs/class/src/collection/devices/collect/PowerSupply.js~PowerSupply.html +11 -1
  86. package/docs/class/src/collection/devices/collect/Software.js~Software.html +11 -1
  87. package/docs/class/src/collection/devices/collect/Storage.js~Storage.html +11 -1
  88. package/docs/class/src/collection/devices/collect/Subscriber.js~Subscriber.html +11 -1
  89. package/docs/class/src/collection/devices/collect/Subscription.js~Subscription.html +11 -1
  90. package/docs/class/src/collection/devices/collect/Temperature.js~Temperature.html +11 -1
  91. package/docs/class/src/collection/devices/collect/Usage.js~Usage.html +11 -1
  92. package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctions.js~ConnectorFunctions.html +11 -1
  93. package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js~ConnectorFunctionsCatalog.html +11 -1
  94. package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js~ConnectorFunctionsCatalogFinder.html +11 -1
  95. package/docs/class/src/connectorsFunctions/configuration/ConnectorFunctions.js~ConnectorFunctions.html +11 -1
  96. package/docs/class/src/connectorsFunctions/configuration/ConnectorFunctionsFinder.js~ConnectorFunctionsFinder.html +11 -1
  97. package/docs/class/src/connectorsFunctions/configuration/ConnectorFunctionsHelper.js~ConnectorFunctionsHelper.html +11 -1
  98. package/docs/class/src/datasets/DatasetFinder.js~DatasetFinder.html +11 -1
  99. package/docs/class/src/datasets/Datasets.js~Datasets.html +11 -1
  100. package/docs/class/src/domains/Domains.js~Domains.html +11 -1
  101. package/docs/class/src/domains/DomainsFinder.js~DomainFinder.html +11 -1
  102. package/docs/class/src/entities/DeviceFinder.js~DeviceFinder.html +11 -1
  103. package/docs/class/src/entities/EntityFinder.js~EntityFinder.html +11 -1
  104. package/docs/class/src/entities/SubscribersFinder.js~SubscribersFinder.html +11 -1
  105. package/docs/class/src/entities/SubscriptionsFinder.js~SubscriptionsFinder.html +11 -1
  106. package/docs/class/src/entities/TicketFinder.js~TicketFinder.html +11 -1
  107. package/docs/class/src/geocluster/Geocluster.js~Geocluster.html +11 -1
  108. package/docs/class/src/geocluster/GeoclusterFinder.js~GeoclusterFinder.html +11 -1
  109. package/docs/class/src/iot/catalog/Category.js~Category.html +11 -1
  110. package/docs/class/src/iot/catalog/Datastream.js~Datastream.html +12 -102
  111. package/docs/class/src/iot/catalog/Qrating.js~Qrating.html +11 -1
  112. package/docs/class/src/iot/datamodels/Datamodels.js~Datamodels.html +23 -13
  113. package/docs/class/src/iot/datamodels/DatamodelsFinder.js~DatamodelsFinder.html +11 -1
  114. package/docs/class/src/iot/datamodels/DatamodelsHelper.js~DatamodelsHelper.html +11 -1
  115. package/docs/class/src/manufacturers/Manufacturer.js~Manufacturers.html +25 -15
  116. package/docs/class/src/manufacturers/ManufacturerFinder.js~ManufacturerFinder.html +199 -4
  117. package/docs/class/src/manufacturers/ManufacturerMedia.js~ManufacturerMedia.html +11 -1
  118. package/docs/class/src/manufacturers/Model.js~Models.html +21 -211
  119. package/docs/class/src/manufacturers/ModelFinder.js~ModelFinder.html +245 -12
  120. package/docs/class/src/manufacturers/ModelMedia.js~ModelMedia.html +20 -10
  121. package/docs/class/src/operationTypes/OperationType.js~OperationType.html +24 -14
  122. package/docs/class/src/operationTypes/OperationTypeCatalog.js~OperationTypesCatalog.html +11 -1
  123. package/docs/class/src/operationTypes/OperationTypeFinder.js~OperationTypeFinder.html +11 -1
  124. package/docs/class/src/operations/OperationActions.js~OperationActions.html +13 -3
  125. package/docs/class/src/operations/OperationFinder.js~OperationFinder.html +11 -1
  126. package/docs/class/src/operations/Operations.js~Operations.html +11 -1
  127. package/docs/class/src/operations/PeriodicityActions.js~PeriodicityActions.html +11 -1
  128. package/docs/class/src/operations/catalog/AppendEntitiesBy.js~AppendEntitiesBy.html +11 -1
  129. package/docs/class/src/operations/catalog/BaseOperationBuilder.js~BaseOperationBuilder.html +33 -16
  130. package/docs/class/src/operations/catalog/Operation.js~Operation.html +11 -1
  131. package/docs/class/src/operations/catalog/parameters/BaseParameterBuilderWithParent.js~BaseParameterBuilderWithParent.html +11 -1
  132. package/docs/class/src/operations/catalog/parameters/ParameterBuilderFactory.js~ParameterBuilderFactory.html +11 -1
  133. package/docs/class/src/operations/catalog/period/ExecuteEachBuilder.js~ExecuteEachBuilder.html +11 -1
  134. package/docs/class/src/operations/catalog/period/ExecuteEveryBuilder.js~ExecuteEveryBuilder.html +11 -1
  135. package/docs/class/src/operations/catalog/period/PeriodicityUpdateBuilder.js~PeriodicityUpdateBuilder.html +11 -1
  136. package/docs/class/src/operations/catalog/period/pattern/ByGeneric.js~ByGeneric.html +11 -1
  137. package/docs/class/src/operations/catalog/period/pattern/ByMonth.js~ByMonth.html +11 -1
  138. package/docs/class/src/operations/catalog/period/pattern/ByWeek.js~ByWeek.html +11 -1
  139. package/docs/class/src/operations/catalog/period/pattern/ByYear.js~ByYear.html +11 -1
  140. package/docs/class/src/organization_manufacturer/Manufacturer.js~Manufacturers.html +1712 -0
  141. package/docs/class/src/organization_manufacturer/ManufacturerFinder.js~ManufacturerFinder.html +847 -0
  142. package/docs/class/src/organization_manufacturer/Model.js~Models.html +1330 -0
  143. package/docs/class/src/organization_manufacturer/ModelFinder.js~ModelFinder.html +693 -0
  144. package/docs/class/src/organizations/OrganizationFinder.js~OrganizationFinder.html +11 -1
  145. package/docs/class/src/organizations/Organizations.js~Organizations.html +11 -1
  146. package/docs/class/src/pipelines/PipelineFinder.js~PipelineFinder.html +11 -1
  147. package/docs/class/src/pipelines/Pipelines.js~Pipelines.html +11 -1
  148. package/docs/class/src/provision/BaseProvision.js~BaseProvision.html +12 -2
  149. package/docs/class/src/provision/bulk/BulkExecutionBuilder.js~BulkExecutionBuilder.html +11 -1
  150. package/docs/class/src/provision/country/CountriesCatalog.js~CountriesCatalog.html +11 -1
  151. package/docs/class/src/provision/entities/AssetBuilder.js~AssetBuilder.html +11 -1
  152. package/docs/class/src/provision/entities/BulkBuilder.js~BulkBuilder.html +11 -1
  153. package/docs/class/src/provision/entities/ComplexBuilder.js~ComplexBuilder.html +11 -1
  154. package/docs/class/src/provision/entities/CsvBulkBuilder.js~CsvBulkBuilder.html +11 -1
  155. package/docs/class/src/provision/entities/DeviceBuilder.js~DeviceBuilder.html +11 -1
  156. package/docs/class/src/provision/entities/EntityBuilder.js~EntityBuilder.html +11 -1
  157. package/docs/class/src/provision/entities/JsonBulkBuilder.js~JsonBulkBuilder.html +11 -1
  158. package/docs/class/src/provision/entities/JsonFlattenedBulkBuilder.js~JsonFlattenedBulkBuilder.html +11 -1
  159. package/docs/class/src/provision/entities/SimpleBuilder.js~SimpleBuilder.html +11 -1
  160. package/docs/class/src/provision/entities/SubscriberBuilder.js~SubscriberBuilder.html +11 -1
  161. package/docs/class/src/provision/entities/SubscriptionBuilder.js~SubscriptionBuilder.html +11 -1
  162. package/docs/class/src/provision/entities/TicketBuilder.js~TicketBuilder.html +11 -1
  163. package/docs/class/src/provisionProcessors/provisionProcessors.js~ProvisionProcessors.html +11 -1
  164. package/docs/class/src/provisionProcessors/provisionProcessorsFinder.js~provisionProcessorsFinder.html +11 -1
  165. package/docs/class/src/rulesConfiguration/RuleConfigurations.js~RuleConfigurations.html +11 -1
  166. package/docs/class/src/rulesConfiguration/RuleConfigurationsActions.js~RuleConfigurationsActions.html +11 -1
  167. package/docs/class/src/rulesConfiguration/RuleConfigurationsCatalog.js~RuleConfigurationsCatalog.html +11 -1
  168. package/docs/class/src/rulesConfiguration/RuleConfigurationsFinder.js~RuleConfigurationsFinder.html +11 -1
  169. package/docs/class/src/rulesConfiguration/RuleConfigurationsHelper.js~RuleConfigurationsHelper.html +11 -1
  170. package/docs/class/src/searching/AssetSearch.js~AssetSearch.html +11 -1
  171. package/docs/class/src/searching/BaseSearch.js~BaseSearch.html +11 -1
  172. package/docs/class/src/searching/DeviceSearch.js~DeviceSearch.html +11 -1
  173. package/docs/class/src/searching/EntitySearch.js~EntitySearch.html +11 -1
  174. package/docs/class/src/searching/FilterBuilder.js~FilterBuilder.html +11 -1
  175. package/docs/class/src/searching/Search.js~Search.html +11 -1
  176. package/docs/class/src/searching/SearchWithoutLimit.js~SearchWithoutLimit.html +11 -1
  177. package/docs/class/src/searching/SelectBuilder.js~SelectBuilder.html +11 -1
  178. package/docs/class/src/searching/StaticSearch.js~StaticSearch.html +11 -1
  179. package/docs/class/src/searching/WPSearch.js~WPSearch.html +11 -1
  180. package/docs/class/src/searching/builder/AdministrativeStateSearchBuilder.js~AdministrativeStateSearchBuilder.html +11 -1
  181. package/docs/class/src/searching/builder/AlarmsSearchBuilder.js~AlarmsSearchBuilder.html +11 -1
  182. package/docs/class/src/searching/builder/AllowedResourceTypeSearchBuilder.js~AllowedResourceTypeSearchBuilder.html +11 -1
  183. package/docs/class/src/searching/builder/AreasSearchBuilder.js~AreasSearchBuilder.html +11 -1
  184. package/docs/class/src/searching/builder/AssetsSearchBuilder.js~AssetsSearchBuilder.html +11 -1
  185. package/docs/class/src/searching/builder/BasicTypesSearchBuilder.js~BasicTypesSearchBuilder.html +11 -1
  186. package/docs/class/src/searching/builder/BulkExecutionSearchBuilder.js~BulkExecutionSearchBuilder.html +11 -1
  187. package/docs/class/src/searching/builder/BulkSearchBuilder.js~BulkSearchBuilder.html +11 -1
  188. package/docs/class/src/searching/builder/BundlesSearchBuilder.js~BundlesSearchBuilder.html +11 -1
  189. package/docs/class/src/searching/builder/CertificatesSearchBuilder.js~CertificatesSearchBuilder.html +11 -1
  190. package/docs/class/src/searching/builder/ChannelsSearchBuilder.js~ChannelsSearchBuilder.html +11 -1
  191. package/docs/class/src/searching/builder/CommunicationsModuleTypeSearchBuilder.js~CommunicationsModuleTypeSearchBuilder.html +11 -1
  192. package/docs/class/src/searching/builder/CountryCodesSearchBuilder.js~CountryCodesSearchBuilder.html +11 -1
  193. package/docs/class/src/searching/builder/DatamodelsSearchBuilder.js~DatamodelsSearchBuilder.html +11 -1
  194. package/docs/class/src/searching/builder/DatapointsSearchBuilder.js~DatapointsSearchBuilder.html +11 -1
  195. package/docs/class/src/searching/builder/DatasetEntitiesSearchBuilder.js~DatasetEntitiesSearchBuilder.html +11 -1
  196. package/docs/class/src/searching/builder/DatasetSearchBuilder.js~DatasetSearchBuilder.html +11 -1
  197. package/docs/class/src/searching/builder/DatasetsCatalogSearchBuilder.js~DatasetsCatalogSearchBuilder.html +11 -1
  198. package/docs/class/src/searching/builder/DatastreamsSearchBuilder.js~DatastreamsSearchBuilder.html +11 -1
  199. package/docs/class/src/searching/builder/DevicesPlansSearchBuilder.js~DevicesPlansSearchBuilder.html +11 -1
  200. package/docs/class/src/searching/builder/DevicesSearchBuilder.js~DevicesSearchBuilder.html +11 -1
  201. package/docs/class/src/searching/builder/DomainsSearchBuilder.js~DomainsSearchBuilder.html +11 -1
  202. package/docs/class/src/searching/builder/EntitiesSearchBuilder.js~EntitiesSearchBuilder.html +11 -1
  203. package/docs/class/src/searching/builder/ExecutionsHistorySearchBuilder.js~ExecutionsHistorySearchBuilder.html +11 -1
  204. package/docs/class/src/searching/builder/ExecutionsSearchBuilder.js~ExecutionsSearchBuilder.html +11 -1
  205. package/docs/class/src/searching/builder/FeedsSearchBuilder.js~FeedsSearchBuilder.html +11 -1
  206. package/docs/class/src/searching/builder/FieldsDefinitionSearchBuilder.js~FieldsDefinitionSearchBuilder.html +11 -1
  207. package/docs/class/src/searching/builder/FlattenedSearchBuilder.js~FlattenedSearchBuilder.html +11 -1
  208. package/docs/class/src/searching/builder/HardwaresSearchBuilder.js~HardwaresSearchBuilder.html +11 -1
  209. package/docs/class/src/searching/builder/IoTDatastreamAccessSearchBuilder.js~IoTDatastreamAccessSearchBuilder.html +11 -1
  210. package/docs/class/src/searching/builder/IoTDatastreamPeriodSearchBuilder.js~IoTDatastreamPeriodSearchBuilder.html +11 -1
  211. package/docs/class/src/searching/builder/IoTDatastreamStoragePeriodSearchBuilder.js~IoTDatastreamStoragePeriodSearchBuilder.html +11 -1
  212. package/docs/class/src/searching/builder/MobilePhoneProviderSearchBuilder.js~MobilePhoneProviderSearchBuilder.html +11 -1
  213. package/docs/class/src/searching/builder/OperationTypesSearchBuilder.js~OperationTypesBuilder.html +11 -1
  214. package/docs/class/src/searching/builder/OperationalStatusSearchBuilder.js~OperationalStatusSearchBuilder.html +11 -1
  215. package/docs/class/src/searching/builder/OperationsSearchBuilder.js~OperationsSearchBuilder.html +11 -1
  216. package/docs/class/src/searching/builder/OrganizationsSearchBuilder.js~OrganizationsSearchBuilder.html +11 -1
  217. package/docs/class/src/searching/builder/PlansSearchBuilder.js~PlansSearchBuilder.html +11 -1
  218. package/docs/class/src/searching/builder/PreFilteredSearchBuilder.js~PreFilteredSearchBuilder.html +11 -1
  219. package/docs/class/src/searching/builder/RawSearchBuilder.js~RawSearchBuilder.html +11 -1
  220. package/docs/class/src/searching/builder/ResourceTypeSearchBuilder.js~ResourceTypeSearchBuilder.html +11 -1
  221. package/docs/class/src/searching/builder/RuleConfigurationSeveritySearchBuilder.js~RuleConfigurationSeveritySearchBuilder.html +11 -1
  222. package/docs/class/src/searching/builder/RuleModeSearchBuilder.js~RuleModeSearchBuilder.html +11 -1
  223. package/docs/class/src/searching/builder/RuleTypeSearchBuilder.js~RuleTypeSearchBuilder.html +11 -1
  224. package/docs/class/src/searching/builder/RulesSearchBuilder.js~RulesSearchBuilder.html +11 -1
  225. package/docs/class/src/searching/builder/SearchBuilder.js~SearchBuilder.html +11 -1
  226. package/docs/class/src/searching/builder/SearchWithSummaryBuilder.js~SearchWithSummaryBuilder.html +11 -1
  227. package/docs/class/src/searching/builder/ServiceGroupSearchBuilder.js~ServiceGroupSearchBuilder.html +11 -1
  228. package/docs/class/src/searching/builder/SoftwaresSearchBuilder.js~SoftwaresSearchBuilder.html +11 -1
  229. package/docs/class/src/searching/builder/SubscribersSearchBuilder.js~SubscribersSearchBuilder.html +11 -1
  230. package/docs/class/src/searching/builder/SubscriptionsSearchBuilder.js~SubscriptionsSearchBuilder.html +11 -1
  231. package/docs/class/src/searching/builder/TasksSearchBuilder.js~TasksSearchBuilder.html +11 -1
  232. package/docs/class/src/searching/builder/TicketPrioritySearchBuilder.js~TicketPrioritySearchBuilder.html +11 -1
  233. package/docs/class/src/searching/builder/TicketSeveritySearchBuilder.js~TicketSeveritySearchBuilder.html +11 -1
  234. package/docs/class/src/searching/builder/TicketStatusSearchBuilder.js~TicketStatusSearchBuilder.html +11 -1
  235. package/docs/class/src/searching/builder/TicketsSearchBuilder.js~TicketsSearchBuilder.html +11 -1
  236. package/docs/class/src/searching/builder/TimeserieSearchBuilder.js~TimeserieSearchBuilder.html +11 -1
  237. package/docs/class/src/searching/builder/TimezoneSearchBuilder.js~TimezoneSearchBuilder.html +11 -1
  238. package/docs/class/src/searching/builder/UserLanguagesSearchBuilder.js~UserLanguagesSearchBuilder.html +11 -1
  239. package/docs/class/src/searching/builder/UserProfilesSearchBuilder.js~UserProfilesSearchBuilder.html +11 -1
  240. package/docs/class/src/searching/builder/UsersSearchBuilder.js~UsersSearchBuilder.html +11 -1
  241. package/docs/class/src/searching/builder/WorkgroupsSearchBuilder.js~WorkgroupsSearchBuilder.html +11 -1
  242. package/docs/class/src/searching/error/SearchBuilderError.js~SearchBuilderError.html +11 -1
  243. package/docs/class/src/security/CertificateFinder.js~CertificateFinder.html +11 -1
  244. package/docs/class/src/security/Certificates.js~Certificates.html +16 -106
  245. package/docs/class/src/security/Security.js~Security.html +11 -1
  246. package/docs/class/src/timeseries/Timeseries.js~Timeseries.html +11 -1
  247. package/docs/class/src/timeseries/TimeseriesFinder.js~TimeseriesFinder.html +11 -1
  248. package/docs/class/src/timeseriesFunctionsCatalog/TimeseriesFunction.js~TimeseriesFunction.html +11 -1
  249. package/docs/class/src/timeseriesFunctionsCatalog/TimeseriesFunctionFinder.js~TimeseriesFunctionFinder.html +11 -1
  250. package/docs/class/src/timeseriesFunctionsCatalog/{TimeseriesFunctionsHelper.js~ConnectorFunctionsHelper.html → TimeseriesFunctionsHelper.js~TimeseriesFunctionsHelper.html} +21 -95
  251. package/docs/class/src/transformers/TransformerFinder.js~TransformerFinder.html +11 -1
  252. package/docs/class/src/transformers/Transformers.js~Transformers.html +11 -1
  253. package/docs/class/src/users/UserFinder.js~UserFinder.html +11 -1
  254. package/docs/class/src/users/Users.js~User.html +11 -1
  255. package/docs/class/src/util/Expression.js~Expression.html +11 -1
  256. package/docs/class/src/util/NorthAmpliaREST.js~NorthAmpliaREST.html +11 -1
  257. package/docs/class/src/util/SelectElement.js~SelectElement.html +11 -1
  258. package/docs/class/src/util/SouthAmpliaREST.js~SouthAmpliaREST.html +11 -1
  259. package/docs/class/src/util/searchingFields/FieldFinder.js~FieldFinder.html +11 -1
  260. package/docs/class/src/workgroups/WorkgroupFinder.js~WorkgroupFinder.html +11 -1
  261. package/docs/class/src/workgroups/WorkgroupRelations.js~WorkgroupRelations.html +11 -1
  262. package/docs/class/src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder.html +11 -1
  263. package/docs/class/src/workgroups/Workgroups.js~Workgroups.html +11 -1
  264. package/docs/coverage.json +76 -43
  265. package/docs/dump.json +6448 -3888
  266. package/docs/file/src/AIModels/AIModels.js.html +11 -1
  267. package/docs/file/src/AIModels/AIModelsFinder.js.html +11 -1
  268. package/docs/file/src/GenericFinder.js.html +11 -1
  269. package/docs/file/src/InternalOpenGateAPI.js.html +49 -3
  270. package/docs/file/src/ProvisionGenericFinder.js.html +11 -1
  271. package/docs/file/src/alarms/AlarmActions.js.html +11 -1
  272. package/docs/file/src/alarms/actions/Alarm.js.html +11 -1
  273. package/docs/file/src/alarms/actions/AlarmActionBuilder.js.html +11 -1
  274. package/docs/file/src/alarms/actions/AlarmAttendBuilder.js.html +11 -1
  275. package/docs/file/src/alarms/actions/AlarmCloseBuilder.js.html +11 -1
  276. package/docs/file/src/areas/AreaFinder.js.html +11 -1
  277. package/docs/file/src/areas/Areas.js.html +11 -1
  278. package/docs/file/src/areas/TYPE_ENUM.js.html +11 -1
  279. package/docs/file/src/bulk/BulkExecutionFinder.js.html +11 -1
  280. package/docs/file/src/bulk/BulkFinder.js.html +11 -1
  281. package/docs/file/src/bundles/ACTION_ENUM.js.html +11 -1
  282. package/docs/file/src/bundles/BundleFinder.js.html +11 -1
  283. package/docs/file/src/bundles/Bundles.js.html +11 -1
  284. package/docs/file/src/bundles/deployment/DeploymentElement.js.html +11 -1
  285. package/docs/file/src/bundles/deployment/MODE_VALIDATORS_ENUM.js.html +11 -1
  286. package/docs/file/src/bundles/deployment/OPERATION_ENUM.js.html +11 -1
  287. package/docs/file/src/bundles/deployment/OPTION_ENUM.js.html +11 -1
  288. package/docs/file/src/bundles/deployment/TYPE_ENUM.js.html +11 -1
  289. package/docs/file/src/bundles/deployment/TYPE_VALIDATORS_ENUM.js.html +11 -1
  290. package/docs/file/src/channels/ChannelFinder.js.html +11 -1
  291. package/docs/file/src/channels/Channels.js.html +11 -1
  292. package/docs/file/src/collection/devices/DeviceMessage.js.html +11 -1
  293. package/docs/file/src/collection/devices/collect/CommsModuleMessage.js.html +11 -1
  294. package/docs/file/src/collection/devices/collect/Datapoint.js.html +11 -1
  295. package/docs/file/src/collection/devices/collect/Datastreams.js.html +11 -1
  296. package/docs/file/src/collection/devices/collect/Event.js.html +11 -1
  297. package/docs/file/src/collection/devices/collect/Hardware.js.html +11 -1
  298. package/docs/file/src/collection/devices/collect/Location.js.html +11 -1
  299. package/docs/file/src/collection/devices/collect/Mobile.js.html +11 -1
  300. package/docs/file/src/collection/devices/collect/PowerSupply.js.html +11 -1
  301. package/docs/file/src/collection/devices/collect/Software.js.html +11 -1
  302. package/docs/file/src/collection/devices/collect/Storage.js.html +11 -1
  303. package/docs/file/src/collection/devices/collect/Subscriber.js.html +11 -1
  304. package/docs/file/src/collection/devices/collect/Subscription.js.html +11 -1
  305. package/docs/file/src/collection/devices/collect/Temperature.js.html +11 -1
  306. package/docs/file/src/collection/devices/collect/Usage.js.html +11 -1
  307. package/docs/file/src/collection/devices/collect/enum/ADDRESS_TYPE_ENUM.js.html +11 -1
  308. package/docs/file/src/collection/devices/collect/enum/ANTENNA_STATUS_ENUM.js.html +11 -1
  309. package/docs/file/src/collection/devices/collect/enum/BATTERY_CHARGE_LEVEL_STATUS_ENUM.js.html +11 -1
  310. package/docs/file/src/collection/devices/collect/enum/BATTERY_CHARGE_STATUS_ENUM.js.html +11 -1
  311. package/docs/file/src/collection/devices/collect/enum/LEVEL_TREND_ENUM.js.html +11 -1
  312. package/docs/file/src/collection/devices/collect/enum/POWER_SUPPLY_SOURCE_ENUM.js.html +11 -1
  313. package/docs/file/src/collection/devices/collect/enum/SOFTWARE_TYPE_ENUM.js.html +11 -1
  314. package/docs/file/src/collection/devices/collect/enum/TEMPERATURE_STATUS_ENUM.js.html +11 -1
  315. package/docs/file/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js.html +11 -1
  316. package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctions.js.html +11 -1
  317. package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js.html +11 -1
  318. package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js.html +11 -1
  319. package/docs/file/src/connectorsFunctions/configuration/ConnectorFunctions.js.html +11 -1
  320. package/docs/file/src/connectorsFunctions/configuration/ConnectorFunctionsFinder.js.html +11 -1
  321. package/docs/file/src/connectorsFunctions/configuration/ConnectorFunctionsHelper.js.html +11 -1
  322. package/docs/file/src/datasets/DatasetFinder.js.html +11 -1
  323. package/docs/file/src/datasets/Datasets.js.html +11 -1
  324. package/docs/file/src/domains/Domains.js.html +11 -1
  325. package/docs/file/src/domains/DomainsFinder.js.html +11 -1
  326. package/docs/file/src/entities/DeviceFinder.js.html +11 -1
  327. package/docs/file/src/entities/EntityFinder.js.html +11 -1
  328. package/docs/file/src/entities/SubscribersFinder.js.html +11 -1
  329. package/docs/file/src/entities/SubscriptionsFinder.js.html +11 -1
  330. package/docs/file/src/entities/TicketFinder.js.html +11 -1
  331. package/docs/file/src/geocluster/Geocluster.js.html +11 -1
  332. package/docs/file/src/geocluster/GeoclusterFinder.js.html +11 -1
  333. package/docs/file/src/iot/catalog/Category.js.html +11 -1
  334. package/docs/file/src/iot/catalog/Datastream.js.html +11 -16
  335. package/docs/file/src/iot/catalog/Qrating.js.html +11 -1
  336. package/docs/file/src/iot/datamodels/Datamodels.js.html +11 -2
  337. package/docs/file/src/iot/datamodels/DatamodelsFinder.js.html +11 -1
  338. package/docs/file/src/iot/datamodels/DatamodelsHelper.js.html +11 -1
  339. package/docs/file/src/manufacturers/Manufacturer.js.html +24 -20
  340. package/docs/file/src/manufacturers/ManufacturerFinder.js.html +39 -4
  341. package/docs/file/src/manufacturers/ManufacturerMedia.js.html +11 -1
  342. package/docs/file/src/manufacturers/Model.js.html +34 -61
  343. package/docs/file/src/manufacturers/ModelFinder.js.html +53 -7
  344. package/docs/file/src/manufacturers/ModelMedia.js.html +16 -3
  345. package/docs/file/src/operationTypes/OperationType.js.html +11 -5
  346. package/docs/file/src/operationTypes/OperationTypeCatalog.js.html +11 -1
  347. package/docs/file/src/operationTypes/OperationTypeFinder.js.html +11 -1
  348. package/docs/file/src/operations/OperationActions.js.html +13 -1
  349. package/docs/file/src/operations/OperationFinder.js.html +11 -1
  350. package/docs/file/src/operations/Operations.js.html +11 -1
  351. package/docs/file/src/operations/PeriodicityActions.js.html +11 -1
  352. package/docs/file/src/operations/catalog/AppendEntitiesBy.js.html +11 -1
  353. package/docs/file/src/operations/catalog/BaseOperationBuilder.js.html +23 -12
  354. package/docs/file/src/operations/catalog/Operation.js.html +11 -1
  355. package/docs/file/src/operations/catalog/parameters/BaseParameterBuilderWithParent.js.html +11 -1
  356. package/docs/file/src/operations/catalog/parameters/ParameterBuilderFactory.js.html +11 -1
  357. package/docs/file/src/operations/catalog/period/DAYS_ENUM.js.html +11 -1
  358. package/docs/file/src/operations/catalog/period/ExecuteEachBuilder.js.html +11 -1
  359. package/docs/file/src/operations/catalog/period/ExecuteEveryBuilder.js.html +11 -1
  360. package/docs/file/src/operations/catalog/period/MONTHS_ENUM.js.html +11 -1
  361. package/docs/file/src/operations/catalog/period/PeriodicityUpdateBuilder.js.html +11 -1
  362. package/docs/file/src/operations/catalog/period/pattern/ByGeneric.js.html +11 -1
  363. package/docs/file/src/operations/catalog/period/pattern/ByMonth.js.html +11 -1
  364. package/docs/file/src/operations/catalog/period/pattern/ByWeek.js.html +11 -1
  365. package/docs/file/src/operations/catalog/period/pattern/ByYear.js.html +11 -1
  366. package/docs/file/src/organization_manufacturer/Manufacturer.js.html +501 -0
  367. package/docs/file/src/organization_manufacturer/ManufacturerFinder.js.html +394 -0
  368. package/docs/file/src/organization_manufacturer/Model.js.html +459 -0
  369. package/docs/file/src/organization_manufacturer/ModelFinder.js.html +373 -0
  370. package/docs/file/src/organizations/OrganizationFinder.js.html +11 -1
  371. package/docs/file/src/organizations/Organizations.js.html +11 -1
  372. package/docs/file/src/pipelines/PipelineFinder.js.html +11 -1
  373. package/docs/file/src/pipelines/Pipelines.js.html +11 -1
  374. package/docs/file/src/provision/BaseProvision.js.html +11 -1
  375. package/docs/file/src/provision/bulk/BulkExecutionBuilder.js.html +11 -1
  376. package/docs/file/src/provision/country/CountriesCatalog.js.html +11 -1
  377. package/docs/file/src/provision/entities/AssetBuilder.js.html +11 -1
  378. package/docs/file/src/provision/entities/BulkBuilder.js.html +11 -1
  379. package/docs/file/src/provision/entities/ComplexBuilder.js.html +11 -1
  380. package/docs/file/src/provision/entities/CsvBulkBuilder.js.html +11 -1
  381. package/docs/file/src/provision/entities/DeviceBuilder.js.html +11 -1
  382. package/docs/file/src/provision/entities/EntityBuilder.js.html +11 -1
  383. package/docs/file/src/provision/entities/JsonBulkBuilder.js.html +11 -1
  384. package/docs/file/src/provision/entities/JsonFlattenedBulkBuilder.js.html +11 -1
  385. package/docs/file/src/provision/entities/SimpleBuilder.js.html +11 -1
  386. package/docs/file/src/provision/entities/SubscriberBuilder.js.html +11 -1
  387. package/docs/file/src/provision/entities/SubscriptionBuilder.js.html +11 -1
  388. package/docs/file/src/provision/entities/TicketBuilder.js.html +11 -1
  389. package/docs/file/src/provisionProcessors/provisionProcessors.js.html +11 -1
  390. package/docs/file/src/provisionProcessors/provisionProcessorsFinder.js.html +11 -1
  391. package/docs/file/src/rulesConfiguration/RuleConfigurations.js.html +11 -1
  392. package/docs/file/src/rulesConfiguration/RuleConfigurationsActions.js.html +11 -1
  393. package/docs/file/src/rulesConfiguration/RuleConfigurationsCatalog.js.html +11 -1
  394. package/docs/file/src/rulesConfiguration/RuleConfigurationsFinder.js.html +11 -1
  395. package/docs/file/src/rulesConfiguration/RuleConfigurationsHelper.js.html +11 -1
  396. package/docs/file/src/rulesConfiguration/_RuleCondition.js.html +11 -1
  397. package/docs/file/src/rulesConfiguration/_RuleNotification.js.html +11 -1
  398. package/docs/file/src/searching/AssetSearch.js.html +11 -1
  399. package/docs/file/src/searching/BaseSearch.js.html +11 -1
  400. package/docs/file/src/searching/DeviceSearch.js.html +11 -1
  401. package/docs/file/src/searching/EntitySearch.js.html +11 -1
  402. package/docs/file/src/searching/FilterBuilder.js.html +11 -1
  403. package/docs/file/src/searching/Search.js.html +11 -1
  404. package/docs/file/src/searching/SearchWithoutLimit.js.html +11 -1
  405. package/docs/file/src/searching/SelectBuilder.js.html +11 -1
  406. package/docs/file/src/searching/StaticSearch.js.html +11 -1
  407. package/docs/file/src/searching/WPSearch.js.html +11 -1
  408. package/docs/file/src/searching/builder/AdministrativeStateSearchBuilder.js.html +11 -1
  409. package/docs/file/src/searching/builder/AlarmsSearchBuilder.js.html +11 -1
  410. package/docs/file/src/searching/builder/AllowedResourceTypeSearchBuilder.js.html +11 -1
  411. package/docs/file/src/searching/builder/AreasSearchBuilder.js.html +11 -1
  412. package/docs/file/src/searching/builder/AssetsSearchBuilder.js.html +11 -1
  413. package/docs/file/src/searching/builder/BasicTypesSearchBuilder.js.html +11 -1
  414. package/docs/file/src/searching/builder/BulkExecutionSearchBuilder.js.html +11 -1
  415. package/docs/file/src/searching/builder/BulkSearchBuilder.js.html +11 -1
  416. package/docs/file/src/searching/builder/BundlesSearchBuilder.js.html +11 -1
  417. package/docs/file/src/searching/builder/CertificatesSearchBuilder.js.html +11 -1
  418. package/docs/file/src/searching/builder/ChannelsSearchBuilder.js.html +11 -1
  419. package/docs/file/src/searching/builder/CommunicationsModuleTypeSearchBuilder.js.html +11 -1
  420. package/docs/file/src/searching/builder/CountryCodesSearchBuilder.js.html +11 -1
  421. package/docs/file/src/searching/builder/DatamodelsSearchBuilder.js.html +11 -1
  422. package/docs/file/src/searching/builder/DatapointsSearchBuilder.js.html +11 -1
  423. package/docs/file/src/searching/builder/DatasetEntitiesSearchBuilder.js.html +11 -1
  424. package/docs/file/src/searching/builder/DatasetSearchBuilder.js.html +11 -1
  425. package/docs/file/src/searching/builder/DatasetsCatalogSearchBuilder.js.html +11 -1
  426. package/docs/file/src/searching/builder/DatastreamsSearchBuilder.js.html +11 -1
  427. package/docs/file/src/searching/builder/DevicesPlansSearchBuilder.js.html +11 -1
  428. package/docs/file/src/searching/builder/DevicesSearchBuilder.js.html +11 -1
  429. package/docs/file/src/searching/builder/DomainsSearchBuilder.js.html +11 -1
  430. package/docs/file/src/searching/builder/EntitiesSearchBuilder.js.html +11 -1
  431. package/docs/file/src/searching/builder/ExecutionsHistorySearchBuilder.js.html +11 -1
  432. package/docs/file/src/searching/builder/ExecutionsSearchBuilder.js.html +11 -1
  433. package/docs/file/src/searching/builder/FeedsSearchBuilder.js.html +11 -1
  434. package/docs/file/src/searching/builder/FieldsDefinitionSearchBuilder.js.html +11 -1
  435. package/docs/file/src/searching/builder/FlattenedSearchBuilder.js.html +11 -1
  436. package/docs/file/src/searching/builder/HardwaresSearchBuilder.js.html +11 -1
  437. package/docs/file/src/searching/builder/IoTDatastreamAccessSearchBuilder.js.html +11 -1
  438. package/docs/file/src/searching/builder/IoTDatastreamPeriodSearchBuilder.js.html +11 -1
  439. package/docs/file/src/searching/builder/IoTDatastreamStoragePeriodSearchBuilder.js.html +11 -1
  440. package/docs/file/src/searching/builder/MobilePhoneProviderSearchBuilder.js.html +11 -1
  441. package/docs/file/src/searching/builder/OperationTypesSearchBuilder.js.html +11 -1
  442. package/docs/file/src/searching/builder/OperationalStatusSearchBuilder.js.html +11 -1
  443. package/docs/file/src/searching/builder/OperationsSearchBuilder.js.html +11 -1
  444. package/docs/file/src/searching/builder/OrganizationsSearchBuilder.js.html +11 -1
  445. package/docs/file/src/searching/builder/PlansSearchBuilder.js.html +11 -1
  446. package/docs/file/src/searching/builder/PreFilteredSearchBuilder.js.html +11 -1
  447. package/docs/file/src/searching/builder/RawSearchBuilder.js.html +11 -1
  448. package/docs/file/src/searching/builder/ResourceTypeSearchBuilder.js.html +11 -1
  449. package/docs/file/src/searching/builder/RuleConfigurationSeveritySearchBuilder.js.html +11 -1
  450. package/docs/file/src/searching/builder/RuleModeSearchBuilder.js.html +11 -1
  451. package/docs/file/src/searching/builder/RuleTypeSearchBuilder.js.html +11 -1
  452. package/docs/file/src/searching/builder/RulesSearchBuilder.js.html +11 -1
  453. package/docs/file/src/searching/builder/SearchBuilder.js.html +11 -1
  454. package/docs/file/src/searching/builder/SearchWithSummaryBuilder.js.html +11 -1
  455. package/docs/file/src/searching/builder/ServiceGroupSearchBuilder.js.html +11 -1
  456. package/docs/file/src/searching/builder/SoftwaresSearchBuilder.js.html +11 -1
  457. package/docs/file/src/searching/builder/SubscribersSearchBuilder.js.html +11 -1
  458. package/docs/file/src/searching/builder/SubscriptionsSearchBuilder.js.html +11 -1
  459. package/docs/file/src/searching/builder/TasksSearchBuilder.js.html +11 -1
  460. package/docs/file/src/searching/builder/TicketPrioritySearchBuilder.js.html +11 -1
  461. package/docs/file/src/searching/builder/TicketSeveritySearchBuilder.js.html +11 -1
  462. package/docs/file/src/searching/builder/TicketStatusSearchBuilder.js.html +11 -1
  463. package/docs/file/src/searching/builder/TicketsSearchBuilder.js.html +11 -1
  464. package/docs/file/src/searching/builder/TimeserieSearchBuilder.js.html +11 -1
  465. package/docs/file/src/searching/builder/TimezoneSearchBuilder.js.html +11 -1
  466. package/docs/file/src/searching/builder/UserLanguagesSearchBuilder.js.html +11 -1
  467. package/docs/file/src/searching/builder/UserProfilesSearchBuilder.js.html +11 -1
  468. package/docs/file/src/searching/builder/UsersSearchBuilder.js.html +11 -1
  469. package/docs/file/src/searching/builder/WorkgroupsSearchBuilder.js.html +11 -1
  470. package/docs/file/src/searching/error/SearchBuilderError.js.html +11 -1
  471. package/docs/file/src/security/ADMINISTRATIVE_STATE_ENUM.js.html +11 -1
  472. package/docs/file/src/security/CertificateFinder.js.html +11 -1
  473. package/docs/file/src/security/Certificates.js.html +11 -34
  474. package/docs/file/src/security/MIME_TYPES_ENUM.js.html +11 -1
  475. package/docs/file/src/security/Security.js.html +11 -1
  476. package/docs/file/src/security/USAGES_ENUM.js.html +11 -1
  477. package/docs/file/src/timeseries/Timeseries.js.html +11 -1
  478. package/docs/file/src/timeseries/TimeseriesFinder.js.html +11 -1
  479. package/docs/file/src/timeseriesFunctionsCatalog/TYPES_ENUM.js.html +11 -1
  480. package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunction.js.html +11 -1
  481. package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunctionFinder.js.html +11 -1
  482. package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js.html +12 -278
  483. package/docs/file/src/transformers/TransformerFinder.js.html +11 -1
  484. package/docs/file/src/transformers/Transformers.js.html +11 -1
  485. package/docs/file/src/users/UserFinder.js.html +11 -1
  486. package/docs/file/src/users/Users.js.html +11 -1
  487. package/docs/file/src/util/DATE_FORMAT.js.html +11 -1
  488. package/docs/file/src/util/Expression.js.html +11 -1
  489. package/docs/file/src/util/NorthAmpliaREST.js.html +11 -1
  490. package/docs/file/src/util/SelectElement.js.html +11 -1
  491. package/docs/file/src/util/SouthAmpliaREST.js.html +11 -1
  492. package/docs/file/src/util/formats/check_types.js.html +11 -1
  493. package/docs/file/src/util/searchingFields/FieldFinder.js.html +11 -1
  494. package/docs/file/src/util/searchingFields/IotFields.js.html +11 -1
  495. package/docs/file/src/util/searchingFields/source-precompiled/Fields.js.html +11 -1
  496. package/docs/file/src/workgroups/WorkgroupFinder.js.html +11 -1
  497. package/docs/file/src/workgroups/WorkgroupRelations.js.html +11 -1
  498. package/docs/file/src/workgroups/WorkgroupRelationsFinder.js.html +11 -1
  499. package/docs/file/src/workgroups/Workgroups.js.html +11 -1
  500. package/docs/identifiers.html +313 -29
  501. package/docs/index.html +11 -1
  502. package/docs/manual/index.html +302 -28
  503. package/docs/package.json +1 -1
  504. package/docs/script/search_index.js +336 -54
  505. package/docs/source.html +323 -275
  506. package/docs/test-file/client/autogeneratedFields/fields.spec.js.html +11 -1
  507. package/docs/test-file/client/bundles/bundles.spec.js.html +11 -1
  508. package/docs/test-file/client/collection/iot.spec.js.html +11 -1
  509. package/docs/test-file/client/device/device.spec.js.html +11 -1
  510. package/docs/test-file/client/provision/devices.provision.spec.js.html +11 -1
  511. package/docs/test-file/client/searching/FilterBuilder.spec.js.html +11 -1
  512. package/docs/test-file/client/searching/datapoints.search.spec.js.html +11 -1
  513. package/docs/test-file/client/searching/module.searching.spec.js.html +11 -1
  514. package/docs/test-file/client/searching/rawsearch.spec.js.html +11 -1
  515. package/docs/test-file/client/searching/search.spec.js.html +11 -1
  516. package/docs/test-file/client/security/certificates.spec.js.html +11 -1
  517. package/docs/test-file/client/users/find.spec.js.html +11 -1
  518. package/docs/test-file/client/users/user.spec.js.html +11 -1
  519. package/docs/test.html +11 -1
  520. package/docs/variable/index.html +435 -5
  521. package/features/features/provision/manufacturer/create_manufacturer.feature +13 -50
  522. package/features/features/provision/operations/actions_execution.feature +105 -52
  523. package/features/features/provision/operations/execute_operations.feature +152 -112
  524. package/features/features/provision/operations/execute_periodic_operations.feature +115 -64
  525. package/features/features/provision/operations/find_execution.feature +49 -11
  526. package/features/features/provision/operations/find_executions.feature +51 -11
  527. package/features/features/provision/operations/find_periodic_execution.feature +48 -11
  528. package/features/features/provision/operations/setting_up_period-each_operation.feature +88 -23
  529. package/features/features/provision/operations/update_periodic_operation.feature +88 -46
  530. package/features/features/provision/users/update_password.feature +0 -1
  531. package/features/features/provision/users/update_user.feature +0 -1
  532. package/features/features/searching/operations/searching_executions.feature +47 -7
  533. package/features/features/searching/operations/searching_periodic_operations.feature +51 -10
  534. package/features/step_definitions/given_step_definitions.js +12 -5
  535. package/features/step_definitions/then_step_definitions.js +44 -35
  536. package/features/step_definitions/when_step_definitions.js +29 -10
  537. package/features/support/create_provision_model.js +6 -0
  538. package/features/support/find_model.js +4 -0
  539. package/features/support/utils_model.js +26 -20
  540. package/features/support/world.js +4 -4
  541. package/package.json +1 -1
  542. package/src/InternalOpenGateAPI.js +38 -2
  543. package/src/iot/catalog/Datastream.js +0 -15
  544. package/src/iot/datamodels/Datamodels.js +0 -1
  545. package/src/manufacturers/Manufacturer.js +13 -19
  546. package/src/manufacturers/ManufacturerFinder.js +28 -3
  547. package/src/manufacturers/Model.js +23 -60
  548. package/src/manufacturers/ModelFinder.js +42 -6
  549. package/src/manufacturers/ModelMedia.js +5 -2
  550. package/src/operationTypes/OperationType.js +0 -4
  551. package/src/operations/OperationActions.js +2 -0
  552. package/src/operations/catalog/BaseOperationBuilder.js +12 -11
  553. package/src/organization_manufacturer/Manufacturer.js +185 -0
  554. package/src/organization_manufacturer/ManufacturerFinder.js +77 -0
  555. package/src/organization_manufacturer/Model.js +143 -0
  556. package/src/organization_manufacturer/ModelFinder.js +56 -0
  557. package/src/security/Certificates.js +0 -33
  558. package/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js +1 -277
  559. package/yarn-error.log +7437 -0
  560. package/dist/opengate-api-bower-13.2.0.js.map +0 -1
  561. 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(/^response specific error code sould be: (\d+)$/, function (statusCode, callback) {
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(parseInt(statusCode));
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
- var parameterNames = parameters.map(function (item) {
149
- return item.name;
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
- for (var key in parameter.value) {
164
- this.expect(parameter.value[key] == paramValue).to.be.true;
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
- if (this.error.constructor == Array) {
317
- this.expect(this.error).to.have.lengthOf(1);
318
- errorText = this.error[0].description || this.error[0].message || this.error[0];
319
- } else {
320
- if (this.error.message) {
321
- errorText = this.error.message;
322
- } else if (this.error.data) {
323
- errorText = this.error.data;
324
- if (errorText.errors) {
325
- errorText = errorText.errors[0].message;
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
- } else {
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
- When(/^I want "([^"]*)"( (\d*) minutes| for this url "([^"]*)" for)? (a|of a) operation$/, function (action, nothing, minutes, data, exclude) {
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
- this.error = undefined;
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 = this.util[findMethod];
95
- return util.call(this.util, (data || (minutes * 1))).then(digestResponseData).catch(digestErrorData);
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
- this.error = err;
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', err)
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.statusCode)
198
- data = this.responseData.statusCode;
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
- "devices builder": function(ogapi, param1) {
93
- return ogapi.entityBuilder.devicesBuilder(param1);
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, param1) {
147
- return ogapi.entityBuilder.subscriptionsBuilder(param1);
149
+ "subscriptions builder": function(ogapi, param) {
150
+ return ogapi.entityBuilder.subscriptionsBuilder(param);
148
151
  },
149
- "subscribers builder": function(ogapi, param1) {
150
- return ogapi.entityBuilder.subscribersBuilder(param1);
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, param1, param2) {
300
- return ogapi.entityBuilder.newCsvBulkBuilder(param1, param2);
305
+ "csv bulk builder": function(ogapi, param, param2) {
306
+ return ogapi.entityBuilder.newCsvBulkBuilder(param, param2);
301
307
  },
302
- "bulk execution builder": function(ogapi, param1, param2){
303
- return ogapi.bulkExecutionBuilder(param1, param2);
308
+ "bulk execution builder": function(ogapi, param, param2){
309
+ return ogapi.bulkExecutionBuilder(param, param2);
304
310
  },
305
- "json bulk builder": function(ogapi, param1, param2) {
306
- return ogapi.entityBuilder.newJsonBulkBuilder(param1, param2);
311
+ "json bulk builder": function(ogapi, param, param2) {
312
+ return ogapi.entityBuilder.newJsonBulkBuilder(param, param2);
307
313
  },
308
- "json flattened bulk builder": function(ogapi, param1, param2) {
309
- return ogapi.entityBuilder.newJsonFlattenedBulkBuilder(param1, param2);
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, param1, param2) {
312
- return ogapi.entityBuilder.newCsvBulkBuilder(param1, param2, null, null, true);
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, param1) {
321
- return ogapi.entityBuilder.assetsBuilder(param1);
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, param1) {
327
- return ogapi.entityBuilder.ticketsBuilder(param1);
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://API_URL';
18
- this.test_url_south = process.env.API_SOUTH_INTERNAL || 'https://API_URL/south';
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 || 'YOUR_EMAIL';
21
- this.YOUR_PASSWORD = process.env.YOUR_PASSWORD || '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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opengate-js",
3
- "version": "13.2.0",
3
+ "version": "14.1.0",
4
4
  "description": "",
5
5
  "main": "dist/opengate-api-npm.js",
6
6
  "repository": {
@@ -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, "/manufacturers", undefined, ['identifier', 'name']);
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
- manufacturer: {
144
- id: this._identifier || undefined,
145
- name: this._name || undefined,
146
- description: this._description || undefined,
147
- telephone: this._telephone || undefined,
148
- address: this._address || undefined,
149
- fax: this._fax || undefined,
150
- url: this._manufUrl || undefined,
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
- var updateElement = this._composeElement()
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._mediaIdentifier? "/media/" + this._mediaIdentifier + '?format=raw': '');
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().findById('manufacturername').then().catch();
31
- * @param {string} identifier - manufacturer name .
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();