opengate-js 13.2.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (535) hide show
  1. package/bower.json +1 -1
  2. package/dist/{opengate-api-bower-13.2.0.js → opengate-api-bower-14.0.0.js} +986 -376
  3. package/dist/opengate-api-bower-14.0.0.js.map +1 -0
  4. package/dist/{opengate-api-bower-13.2.0.min.js → opengate-api-bower-14.0.0.min.js} +8 -8
  5. package/dist/opengate-api-bower-14.0.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/organization_manufacturer/Manufacturer.js +232 -0
  25. package/dist/src/organization_manufacturer/Manufacturer.js.map +1 -0
  26. package/dist/src/organization_manufacturer/ManufacturerFinder.js +117 -0
  27. package/dist/src/organization_manufacturer/ManufacturerFinder.js.map +1 -0
  28. package/dist/src/organization_manufacturer/Model.js +185 -0
  29. package/dist/src/organization_manufacturer/Model.js.map +1 -0
  30. package/dist/src/organization_manufacturer/ModelFinder.js +93 -0
  31. package/dist/src/organization_manufacturer/ModelFinder.js.map +1 -0
  32. package/dist/src/security/Certificates.js +0 -31
  33. package/dist/src/security/Certificates.js.map +1 -1
  34. package/dist/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js +8 -61
  35. package/dist/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js.map +1 -1
  36. package/docs/ast/source/InternalOpenGateAPI.js.json +29760 -26563
  37. package/docs/ast/source/iot/catalog/Datastream.js.json +5410 -6981
  38. package/docs/ast/source/iot/datamodels/Datamodels.js.json +4900 -5102
  39. package/docs/ast/source/manufacturers/Manufacturer.js.json +6771 -7127
  40. package/docs/ast/source/manufacturers/ManufacturerFinder.js.json +5308 -2833
  41. package/docs/ast/source/manufacturers/Model.js.json +6847 -9810
  42. package/docs/ast/source/manufacturers/ModelFinder.js.json +7622 -3194
  43. package/docs/ast/source/manufacturers/ModelMedia.js.json +5118 -4163
  44. package/docs/ast/source/operationTypes/OperationType.js.json +4909 -5563
  45. package/docs/ast/source/organization_manufacturer/Manufacturer.js.json +24122 -0
  46. package/docs/ast/source/organization_manufacturer/ManufacturerFinder.js.json +6837 -0
  47. package/docs/ast/source/organization_manufacturer/Model.js.json +19358 -0
  48. package/docs/ast/source/organization_manufacturer/ModelFinder.js.json +6371 -0
  49. package/docs/ast/source/security/Certificates.js.json +16364 -21990
  50. package/docs/ast/source/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js.json +2865 -6468
  51. package/docs/badge.svg +2 -2
  52. package/docs/class/src/AIModels/AIModels.js~AIModels.html +11 -1
  53. package/docs/class/src/AIModels/AIModelsFinder.js~AIModelsFinder.html +11 -1
  54. package/docs/class/src/GenericFinder.js~GenericFinder.html +13 -3
  55. package/docs/class/src/InternalOpenGateAPI.js~InternalOpenGateAPI.html +554 -154
  56. package/docs/class/src/ProvisionGenericFinder.js~ProvisionGenericFinder.html +12 -2
  57. package/docs/class/src/alarms/AlarmActions.js~AlarmActions.html +11 -1
  58. package/docs/class/src/alarms/actions/Alarm.js~Operation.html +11 -1
  59. package/docs/class/src/alarms/actions/AlarmActionBuilder.js~AlarmActionBuilder.html +11 -1
  60. package/docs/class/src/alarms/actions/AlarmAttendBuilder.js~AlarmAttendBuilder.html +11 -1
  61. package/docs/class/src/alarms/actions/AlarmCloseBuilder.js~AlarmCloseBuilder.html +11 -1
  62. package/docs/class/src/areas/AreaFinder.js~AreaFinder.html +11 -1
  63. package/docs/class/src/areas/Areas.js~Areas.html +11 -1
  64. package/docs/class/src/bulk/BulkExecutionFinder.js~BulkExecutionFinder.html +11 -1
  65. package/docs/class/src/bulk/BulkFinder.js~BulkFinder.html +11 -1
  66. package/docs/class/src/bundles/BundleFinder.js~BundleFinder.html +11 -1
  67. package/docs/class/src/bundles/Bundles.js~Bundles.html +11 -1
  68. package/docs/class/src/bundles/deployment/DeploymentElement.js~DeploymentElement.html +11 -1
  69. package/docs/class/src/channels/ChannelFinder.js~ChannelFinder.html +11 -1
  70. package/docs/class/src/channels/Channels.js~Channels.html +11 -1
  71. package/docs/class/src/collection/devices/DeviceMessage.js~DeviceMessage.html +11 -1
  72. package/docs/class/src/collection/devices/collect/CommsModuleMessage.js~CommsModuleMessage.html +11 -1
  73. package/docs/class/src/collection/devices/collect/Datapoint.js~Datapoint.html +11 -1
  74. package/docs/class/src/collection/devices/collect/Datastreams.js~Datastream.html +11 -1
  75. package/docs/class/src/collection/devices/collect/Event.js~Event.html +11 -1
  76. package/docs/class/src/collection/devices/collect/Hardware.js~Hardware.html +11 -1
  77. package/docs/class/src/collection/devices/collect/Location.js~Location.html +11 -1
  78. package/docs/class/src/collection/devices/collect/Mobile.js~Mobile.html +11 -1
  79. package/docs/class/src/collection/devices/collect/PowerSupply.js~PowerSupply.html +11 -1
  80. package/docs/class/src/collection/devices/collect/Software.js~Software.html +11 -1
  81. package/docs/class/src/collection/devices/collect/Storage.js~Storage.html +11 -1
  82. package/docs/class/src/collection/devices/collect/Subscriber.js~Subscriber.html +11 -1
  83. package/docs/class/src/collection/devices/collect/Subscription.js~Subscription.html +11 -1
  84. package/docs/class/src/collection/devices/collect/Temperature.js~Temperature.html +11 -1
  85. package/docs/class/src/collection/devices/collect/Usage.js~Usage.html +11 -1
  86. package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctions.js~ConnectorFunctions.html +11 -1
  87. package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js~ConnectorFunctionsCatalog.html +11 -1
  88. package/docs/class/src/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js~ConnectorFunctionsCatalogFinder.html +11 -1
  89. package/docs/class/src/connectorsFunctions/configuration/ConnectorFunctions.js~ConnectorFunctions.html +11 -1
  90. package/docs/class/src/connectorsFunctions/configuration/ConnectorFunctionsFinder.js~ConnectorFunctionsFinder.html +11 -1
  91. package/docs/class/src/connectorsFunctions/configuration/ConnectorFunctionsHelper.js~ConnectorFunctionsHelper.html +11 -1
  92. package/docs/class/src/datasets/DatasetFinder.js~DatasetFinder.html +11 -1
  93. package/docs/class/src/datasets/Datasets.js~Datasets.html +11 -1
  94. package/docs/class/src/domains/Domains.js~Domains.html +11 -1
  95. package/docs/class/src/domains/DomainsFinder.js~DomainFinder.html +11 -1
  96. package/docs/class/src/entities/DeviceFinder.js~DeviceFinder.html +11 -1
  97. package/docs/class/src/entities/EntityFinder.js~EntityFinder.html +11 -1
  98. package/docs/class/src/entities/SubscribersFinder.js~SubscribersFinder.html +11 -1
  99. package/docs/class/src/entities/SubscriptionsFinder.js~SubscriptionsFinder.html +11 -1
  100. package/docs/class/src/entities/TicketFinder.js~TicketFinder.html +11 -1
  101. package/docs/class/src/geocluster/Geocluster.js~Geocluster.html +11 -1
  102. package/docs/class/src/geocluster/GeoclusterFinder.js~GeoclusterFinder.html +11 -1
  103. package/docs/class/src/iot/catalog/Category.js~Category.html +11 -1
  104. package/docs/class/src/iot/catalog/Datastream.js~Datastream.html +12 -102
  105. package/docs/class/src/iot/catalog/Qrating.js~Qrating.html +11 -1
  106. package/docs/class/src/iot/datamodels/Datamodels.js~Datamodels.html +23 -13
  107. package/docs/class/src/iot/datamodels/DatamodelsFinder.js~DatamodelsFinder.html +11 -1
  108. package/docs/class/src/iot/datamodels/DatamodelsHelper.js~DatamodelsHelper.html +11 -1
  109. package/docs/class/src/manufacturers/Manufacturer.js~Manufacturers.html +25 -15
  110. package/docs/class/src/manufacturers/ManufacturerFinder.js~ManufacturerFinder.html +199 -4
  111. package/docs/class/src/manufacturers/ManufacturerMedia.js~ManufacturerMedia.html +11 -1
  112. package/docs/class/src/manufacturers/Model.js~Models.html +21 -211
  113. package/docs/class/src/manufacturers/ModelFinder.js~ModelFinder.html +245 -12
  114. package/docs/class/src/manufacturers/ModelMedia.js~ModelMedia.html +20 -10
  115. package/docs/class/src/operationTypes/OperationType.js~OperationType.html +24 -14
  116. package/docs/class/src/operationTypes/OperationTypeCatalog.js~OperationTypesCatalog.html +11 -1
  117. package/docs/class/src/operationTypes/OperationTypeFinder.js~OperationTypeFinder.html +11 -1
  118. package/docs/class/src/operations/OperationActions.js~OperationActions.html +11 -1
  119. package/docs/class/src/operations/OperationFinder.js~OperationFinder.html +11 -1
  120. package/docs/class/src/operations/Operations.js~Operations.html +11 -1
  121. package/docs/class/src/operations/PeriodicityActions.js~PeriodicityActions.html +11 -1
  122. package/docs/class/src/operations/catalog/AppendEntitiesBy.js~AppendEntitiesBy.html +11 -1
  123. package/docs/class/src/operations/catalog/BaseOperationBuilder.js~BaseOperationBuilder.html +11 -1
  124. package/docs/class/src/operations/catalog/Operation.js~Operation.html +11 -1
  125. package/docs/class/src/operations/catalog/parameters/BaseParameterBuilderWithParent.js~BaseParameterBuilderWithParent.html +11 -1
  126. package/docs/class/src/operations/catalog/parameters/ParameterBuilderFactory.js~ParameterBuilderFactory.html +11 -1
  127. package/docs/class/src/operations/catalog/period/ExecuteEachBuilder.js~ExecuteEachBuilder.html +11 -1
  128. package/docs/class/src/operations/catalog/period/ExecuteEveryBuilder.js~ExecuteEveryBuilder.html +11 -1
  129. package/docs/class/src/operations/catalog/period/PeriodicityUpdateBuilder.js~PeriodicityUpdateBuilder.html +11 -1
  130. package/docs/class/src/operations/catalog/period/pattern/ByGeneric.js~ByGeneric.html +11 -1
  131. package/docs/class/src/operations/catalog/period/pattern/ByMonth.js~ByMonth.html +11 -1
  132. package/docs/class/src/operations/catalog/period/pattern/ByWeek.js~ByWeek.html +11 -1
  133. package/docs/class/src/operations/catalog/period/pattern/ByYear.js~ByYear.html +11 -1
  134. package/docs/class/src/organization_manufacturer/Manufacturer.js~Manufacturers.html +1712 -0
  135. package/docs/class/src/organization_manufacturer/ManufacturerFinder.js~ManufacturerFinder.html +847 -0
  136. package/docs/class/src/organization_manufacturer/Model.js~Models.html +1330 -0
  137. package/docs/class/src/organization_manufacturer/ModelFinder.js~ModelFinder.html +693 -0
  138. package/docs/class/src/organizations/OrganizationFinder.js~OrganizationFinder.html +11 -1
  139. package/docs/class/src/organizations/Organizations.js~Organizations.html +11 -1
  140. package/docs/class/src/pipelines/PipelineFinder.js~PipelineFinder.html +11 -1
  141. package/docs/class/src/pipelines/Pipelines.js~Pipelines.html +11 -1
  142. package/docs/class/src/provision/BaseProvision.js~BaseProvision.html +12 -2
  143. package/docs/class/src/provision/bulk/BulkExecutionBuilder.js~BulkExecutionBuilder.html +11 -1
  144. package/docs/class/src/provision/country/CountriesCatalog.js~CountriesCatalog.html +11 -1
  145. package/docs/class/src/provision/entities/AssetBuilder.js~AssetBuilder.html +11 -1
  146. package/docs/class/src/provision/entities/BulkBuilder.js~BulkBuilder.html +11 -1
  147. package/docs/class/src/provision/entities/ComplexBuilder.js~ComplexBuilder.html +11 -1
  148. package/docs/class/src/provision/entities/CsvBulkBuilder.js~CsvBulkBuilder.html +11 -1
  149. package/docs/class/src/provision/entities/DeviceBuilder.js~DeviceBuilder.html +11 -1
  150. package/docs/class/src/provision/entities/EntityBuilder.js~EntityBuilder.html +11 -1
  151. package/docs/class/src/provision/entities/JsonBulkBuilder.js~JsonBulkBuilder.html +11 -1
  152. package/docs/class/src/provision/entities/JsonFlattenedBulkBuilder.js~JsonFlattenedBulkBuilder.html +11 -1
  153. package/docs/class/src/provision/entities/SimpleBuilder.js~SimpleBuilder.html +11 -1
  154. package/docs/class/src/provision/entities/SubscriberBuilder.js~SubscriberBuilder.html +11 -1
  155. package/docs/class/src/provision/entities/SubscriptionBuilder.js~SubscriptionBuilder.html +11 -1
  156. package/docs/class/src/provision/entities/TicketBuilder.js~TicketBuilder.html +11 -1
  157. package/docs/class/src/provisionProcessors/provisionProcessors.js~ProvisionProcessors.html +11 -1
  158. package/docs/class/src/provisionProcessors/provisionProcessorsFinder.js~provisionProcessorsFinder.html +11 -1
  159. package/docs/class/src/rulesConfiguration/RuleConfigurations.js~RuleConfigurations.html +11 -1
  160. package/docs/class/src/rulesConfiguration/RuleConfigurationsActions.js~RuleConfigurationsActions.html +11 -1
  161. package/docs/class/src/rulesConfiguration/RuleConfigurationsCatalog.js~RuleConfigurationsCatalog.html +11 -1
  162. package/docs/class/src/rulesConfiguration/RuleConfigurationsFinder.js~RuleConfigurationsFinder.html +11 -1
  163. package/docs/class/src/rulesConfiguration/RuleConfigurationsHelper.js~RuleConfigurationsHelper.html +11 -1
  164. package/docs/class/src/searching/AssetSearch.js~AssetSearch.html +11 -1
  165. package/docs/class/src/searching/BaseSearch.js~BaseSearch.html +11 -1
  166. package/docs/class/src/searching/DeviceSearch.js~DeviceSearch.html +11 -1
  167. package/docs/class/src/searching/EntitySearch.js~EntitySearch.html +11 -1
  168. package/docs/class/src/searching/FilterBuilder.js~FilterBuilder.html +11 -1
  169. package/docs/class/src/searching/Search.js~Search.html +11 -1
  170. package/docs/class/src/searching/SearchWithoutLimit.js~SearchWithoutLimit.html +11 -1
  171. package/docs/class/src/searching/SelectBuilder.js~SelectBuilder.html +11 -1
  172. package/docs/class/src/searching/StaticSearch.js~StaticSearch.html +11 -1
  173. package/docs/class/src/searching/WPSearch.js~WPSearch.html +11 -1
  174. package/docs/class/src/searching/builder/AdministrativeStateSearchBuilder.js~AdministrativeStateSearchBuilder.html +11 -1
  175. package/docs/class/src/searching/builder/AlarmsSearchBuilder.js~AlarmsSearchBuilder.html +11 -1
  176. package/docs/class/src/searching/builder/AllowedResourceTypeSearchBuilder.js~AllowedResourceTypeSearchBuilder.html +11 -1
  177. package/docs/class/src/searching/builder/AreasSearchBuilder.js~AreasSearchBuilder.html +11 -1
  178. package/docs/class/src/searching/builder/AssetsSearchBuilder.js~AssetsSearchBuilder.html +11 -1
  179. package/docs/class/src/searching/builder/BasicTypesSearchBuilder.js~BasicTypesSearchBuilder.html +11 -1
  180. package/docs/class/src/searching/builder/BulkExecutionSearchBuilder.js~BulkExecutionSearchBuilder.html +11 -1
  181. package/docs/class/src/searching/builder/BulkSearchBuilder.js~BulkSearchBuilder.html +11 -1
  182. package/docs/class/src/searching/builder/BundlesSearchBuilder.js~BundlesSearchBuilder.html +11 -1
  183. package/docs/class/src/searching/builder/CertificatesSearchBuilder.js~CertificatesSearchBuilder.html +11 -1
  184. package/docs/class/src/searching/builder/ChannelsSearchBuilder.js~ChannelsSearchBuilder.html +11 -1
  185. package/docs/class/src/searching/builder/CommunicationsModuleTypeSearchBuilder.js~CommunicationsModuleTypeSearchBuilder.html +11 -1
  186. package/docs/class/src/searching/builder/CountryCodesSearchBuilder.js~CountryCodesSearchBuilder.html +11 -1
  187. package/docs/class/src/searching/builder/DatamodelsSearchBuilder.js~DatamodelsSearchBuilder.html +11 -1
  188. package/docs/class/src/searching/builder/DatapointsSearchBuilder.js~DatapointsSearchBuilder.html +11 -1
  189. package/docs/class/src/searching/builder/DatasetEntitiesSearchBuilder.js~DatasetEntitiesSearchBuilder.html +11 -1
  190. package/docs/class/src/searching/builder/DatasetSearchBuilder.js~DatasetSearchBuilder.html +11 -1
  191. package/docs/class/src/searching/builder/DatasetsCatalogSearchBuilder.js~DatasetsCatalogSearchBuilder.html +11 -1
  192. package/docs/class/src/searching/builder/DatastreamsSearchBuilder.js~DatastreamsSearchBuilder.html +11 -1
  193. package/docs/class/src/searching/builder/DevicesPlansSearchBuilder.js~DevicesPlansSearchBuilder.html +11 -1
  194. package/docs/class/src/searching/builder/DevicesSearchBuilder.js~DevicesSearchBuilder.html +11 -1
  195. package/docs/class/src/searching/builder/DomainsSearchBuilder.js~DomainsSearchBuilder.html +11 -1
  196. package/docs/class/src/searching/builder/EntitiesSearchBuilder.js~EntitiesSearchBuilder.html +11 -1
  197. package/docs/class/src/searching/builder/ExecutionsHistorySearchBuilder.js~ExecutionsHistorySearchBuilder.html +11 -1
  198. package/docs/class/src/searching/builder/ExecutionsSearchBuilder.js~ExecutionsSearchBuilder.html +11 -1
  199. package/docs/class/src/searching/builder/FeedsSearchBuilder.js~FeedsSearchBuilder.html +11 -1
  200. package/docs/class/src/searching/builder/FieldsDefinitionSearchBuilder.js~FieldsDefinitionSearchBuilder.html +11 -1
  201. package/docs/class/src/searching/builder/FlattenedSearchBuilder.js~FlattenedSearchBuilder.html +11 -1
  202. package/docs/class/src/searching/builder/HardwaresSearchBuilder.js~HardwaresSearchBuilder.html +11 -1
  203. package/docs/class/src/searching/builder/IoTDatastreamAccessSearchBuilder.js~IoTDatastreamAccessSearchBuilder.html +11 -1
  204. package/docs/class/src/searching/builder/IoTDatastreamPeriodSearchBuilder.js~IoTDatastreamPeriodSearchBuilder.html +11 -1
  205. package/docs/class/src/searching/builder/IoTDatastreamStoragePeriodSearchBuilder.js~IoTDatastreamStoragePeriodSearchBuilder.html +11 -1
  206. package/docs/class/src/searching/builder/MobilePhoneProviderSearchBuilder.js~MobilePhoneProviderSearchBuilder.html +11 -1
  207. package/docs/class/src/searching/builder/OperationTypesSearchBuilder.js~OperationTypesBuilder.html +11 -1
  208. package/docs/class/src/searching/builder/OperationalStatusSearchBuilder.js~OperationalStatusSearchBuilder.html +11 -1
  209. package/docs/class/src/searching/builder/OperationsSearchBuilder.js~OperationsSearchBuilder.html +11 -1
  210. package/docs/class/src/searching/builder/OrganizationsSearchBuilder.js~OrganizationsSearchBuilder.html +11 -1
  211. package/docs/class/src/searching/builder/PlansSearchBuilder.js~PlansSearchBuilder.html +11 -1
  212. package/docs/class/src/searching/builder/PreFilteredSearchBuilder.js~PreFilteredSearchBuilder.html +11 -1
  213. package/docs/class/src/searching/builder/RawSearchBuilder.js~RawSearchBuilder.html +11 -1
  214. package/docs/class/src/searching/builder/ResourceTypeSearchBuilder.js~ResourceTypeSearchBuilder.html +11 -1
  215. package/docs/class/src/searching/builder/RuleConfigurationSeveritySearchBuilder.js~RuleConfigurationSeveritySearchBuilder.html +11 -1
  216. package/docs/class/src/searching/builder/RuleModeSearchBuilder.js~RuleModeSearchBuilder.html +11 -1
  217. package/docs/class/src/searching/builder/RuleTypeSearchBuilder.js~RuleTypeSearchBuilder.html +11 -1
  218. package/docs/class/src/searching/builder/RulesSearchBuilder.js~RulesSearchBuilder.html +11 -1
  219. package/docs/class/src/searching/builder/SearchBuilder.js~SearchBuilder.html +11 -1
  220. package/docs/class/src/searching/builder/SearchWithSummaryBuilder.js~SearchWithSummaryBuilder.html +11 -1
  221. package/docs/class/src/searching/builder/ServiceGroupSearchBuilder.js~ServiceGroupSearchBuilder.html +11 -1
  222. package/docs/class/src/searching/builder/SoftwaresSearchBuilder.js~SoftwaresSearchBuilder.html +11 -1
  223. package/docs/class/src/searching/builder/SubscribersSearchBuilder.js~SubscribersSearchBuilder.html +11 -1
  224. package/docs/class/src/searching/builder/SubscriptionsSearchBuilder.js~SubscriptionsSearchBuilder.html +11 -1
  225. package/docs/class/src/searching/builder/TasksSearchBuilder.js~TasksSearchBuilder.html +11 -1
  226. package/docs/class/src/searching/builder/TicketPrioritySearchBuilder.js~TicketPrioritySearchBuilder.html +11 -1
  227. package/docs/class/src/searching/builder/TicketSeveritySearchBuilder.js~TicketSeveritySearchBuilder.html +11 -1
  228. package/docs/class/src/searching/builder/TicketStatusSearchBuilder.js~TicketStatusSearchBuilder.html +11 -1
  229. package/docs/class/src/searching/builder/TicketsSearchBuilder.js~TicketsSearchBuilder.html +11 -1
  230. package/docs/class/src/searching/builder/TimeserieSearchBuilder.js~TimeserieSearchBuilder.html +11 -1
  231. package/docs/class/src/searching/builder/TimezoneSearchBuilder.js~TimezoneSearchBuilder.html +11 -1
  232. package/docs/class/src/searching/builder/UserLanguagesSearchBuilder.js~UserLanguagesSearchBuilder.html +11 -1
  233. package/docs/class/src/searching/builder/UserProfilesSearchBuilder.js~UserProfilesSearchBuilder.html +11 -1
  234. package/docs/class/src/searching/builder/UsersSearchBuilder.js~UsersSearchBuilder.html +11 -1
  235. package/docs/class/src/searching/builder/WorkgroupsSearchBuilder.js~WorkgroupsSearchBuilder.html +11 -1
  236. package/docs/class/src/searching/error/SearchBuilderError.js~SearchBuilderError.html +11 -1
  237. package/docs/class/src/security/CertificateFinder.js~CertificateFinder.html +11 -1
  238. package/docs/class/src/security/Certificates.js~Certificates.html +16 -106
  239. package/docs/class/src/security/Security.js~Security.html +11 -1
  240. package/docs/class/src/timeseries/Timeseries.js~Timeseries.html +11 -1
  241. package/docs/class/src/timeseries/TimeseriesFinder.js~TimeseriesFinder.html +11 -1
  242. package/docs/class/src/timeseriesFunctionsCatalog/TimeseriesFunction.js~TimeseriesFunction.html +11 -1
  243. package/docs/class/src/timeseriesFunctionsCatalog/TimeseriesFunctionFinder.js~TimeseriesFunctionFinder.html +11 -1
  244. package/docs/class/src/timeseriesFunctionsCatalog/{TimeseriesFunctionsHelper.js~ConnectorFunctionsHelper.html → TimeseriesFunctionsHelper.js~TimeseriesFunctionsHelper.html} +21 -95
  245. package/docs/class/src/transformers/TransformerFinder.js~TransformerFinder.html +11 -1
  246. package/docs/class/src/transformers/Transformers.js~Transformers.html +11 -1
  247. package/docs/class/src/users/UserFinder.js~UserFinder.html +11 -1
  248. package/docs/class/src/users/Users.js~User.html +11 -1
  249. package/docs/class/src/util/Expression.js~Expression.html +11 -1
  250. package/docs/class/src/util/NorthAmpliaREST.js~NorthAmpliaREST.html +11 -1
  251. package/docs/class/src/util/SelectElement.js~SelectElement.html +11 -1
  252. package/docs/class/src/util/SouthAmpliaREST.js~SouthAmpliaREST.html +11 -1
  253. package/docs/class/src/util/searchingFields/FieldFinder.js~FieldFinder.html +11 -1
  254. package/docs/class/src/workgroups/WorkgroupFinder.js~WorkgroupFinder.html +11 -1
  255. package/docs/class/src/workgroups/WorkgroupRelations.js~WorkgroupRelations.html +11 -1
  256. package/docs/class/src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder.html +11 -1
  257. package/docs/class/src/workgroups/Workgroups.js~Workgroups.html +11 -1
  258. package/docs/coverage.json +75 -42
  259. package/docs/dump.json +6219 -3715
  260. package/docs/file/src/AIModels/AIModels.js.html +11 -1
  261. package/docs/file/src/AIModels/AIModelsFinder.js.html +11 -1
  262. package/docs/file/src/GenericFinder.js.html +11 -1
  263. package/docs/file/src/InternalOpenGateAPI.js.html +49 -3
  264. package/docs/file/src/ProvisionGenericFinder.js.html +11 -1
  265. package/docs/file/src/alarms/AlarmActions.js.html +11 -1
  266. package/docs/file/src/alarms/actions/Alarm.js.html +11 -1
  267. package/docs/file/src/alarms/actions/AlarmActionBuilder.js.html +11 -1
  268. package/docs/file/src/alarms/actions/AlarmAttendBuilder.js.html +11 -1
  269. package/docs/file/src/alarms/actions/AlarmCloseBuilder.js.html +11 -1
  270. package/docs/file/src/areas/AreaFinder.js.html +11 -1
  271. package/docs/file/src/areas/Areas.js.html +11 -1
  272. package/docs/file/src/areas/TYPE_ENUM.js.html +11 -1
  273. package/docs/file/src/bulk/BulkExecutionFinder.js.html +11 -1
  274. package/docs/file/src/bulk/BulkFinder.js.html +11 -1
  275. package/docs/file/src/bundles/ACTION_ENUM.js.html +11 -1
  276. package/docs/file/src/bundles/BundleFinder.js.html +11 -1
  277. package/docs/file/src/bundles/Bundles.js.html +11 -1
  278. package/docs/file/src/bundles/deployment/DeploymentElement.js.html +11 -1
  279. package/docs/file/src/bundles/deployment/MODE_VALIDATORS_ENUM.js.html +11 -1
  280. package/docs/file/src/bundles/deployment/OPERATION_ENUM.js.html +11 -1
  281. package/docs/file/src/bundles/deployment/OPTION_ENUM.js.html +11 -1
  282. package/docs/file/src/bundles/deployment/TYPE_ENUM.js.html +11 -1
  283. package/docs/file/src/bundles/deployment/TYPE_VALIDATORS_ENUM.js.html +11 -1
  284. package/docs/file/src/channels/ChannelFinder.js.html +11 -1
  285. package/docs/file/src/channels/Channels.js.html +11 -1
  286. package/docs/file/src/collection/devices/DeviceMessage.js.html +11 -1
  287. package/docs/file/src/collection/devices/collect/CommsModuleMessage.js.html +11 -1
  288. package/docs/file/src/collection/devices/collect/Datapoint.js.html +11 -1
  289. package/docs/file/src/collection/devices/collect/Datastreams.js.html +11 -1
  290. package/docs/file/src/collection/devices/collect/Event.js.html +11 -1
  291. package/docs/file/src/collection/devices/collect/Hardware.js.html +11 -1
  292. package/docs/file/src/collection/devices/collect/Location.js.html +11 -1
  293. package/docs/file/src/collection/devices/collect/Mobile.js.html +11 -1
  294. package/docs/file/src/collection/devices/collect/PowerSupply.js.html +11 -1
  295. package/docs/file/src/collection/devices/collect/Software.js.html +11 -1
  296. package/docs/file/src/collection/devices/collect/Storage.js.html +11 -1
  297. package/docs/file/src/collection/devices/collect/Subscriber.js.html +11 -1
  298. package/docs/file/src/collection/devices/collect/Subscription.js.html +11 -1
  299. package/docs/file/src/collection/devices/collect/Temperature.js.html +11 -1
  300. package/docs/file/src/collection/devices/collect/Usage.js.html +11 -1
  301. package/docs/file/src/collection/devices/collect/enum/ADDRESS_TYPE_ENUM.js.html +11 -1
  302. package/docs/file/src/collection/devices/collect/enum/ANTENNA_STATUS_ENUM.js.html +11 -1
  303. package/docs/file/src/collection/devices/collect/enum/BATTERY_CHARGE_LEVEL_STATUS_ENUM.js.html +11 -1
  304. package/docs/file/src/collection/devices/collect/enum/BATTERY_CHARGE_STATUS_ENUM.js.html +11 -1
  305. package/docs/file/src/collection/devices/collect/enum/LEVEL_TREND_ENUM.js.html +11 -1
  306. package/docs/file/src/collection/devices/collect/enum/POWER_SUPPLY_SOURCE_ENUM.js.html +11 -1
  307. package/docs/file/src/collection/devices/collect/enum/SOFTWARE_TYPE_ENUM.js.html +11 -1
  308. package/docs/file/src/collection/devices/collect/enum/TEMPERATURE_STATUS_ENUM.js.html +11 -1
  309. package/docs/file/src/connectorsFunctions/_CONNECTOR_FUNCTIONS_ENUMS.js.html +11 -1
  310. package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctions.js.html +11 -1
  311. package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctionsCatalog.js.html +11 -1
  312. package/docs/file/src/connectorsFunctions/catalog/ConnectorFunctionsCatalogFinder.js.html +11 -1
  313. package/docs/file/src/connectorsFunctions/configuration/ConnectorFunctions.js.html +11 -1
  314. package/docs/file/src/connectorsFunctions/configuration/ConnectorFunctionsFinder.js.html +11 -1
  315. package/docs/file/src/connectorsFunctions/configuration/ConnectorFunctionsHelper.js.html +11 -1
  316. package/docs/file/src/datasets/DatasetFinder.js.html +11 -1
  317. package/docs/file/src/datasets/Datasets.js.html +11 -1
  318. package/docs/file/src/domains/Domains.js.html +11 -1
  319. package/docs/file/src/domains/DomainsFinder.js.html +11 -1
  320. package/docs/file/src/entities/DeviceFinder.js.html +11 -1
  321. package/docs/file/src/entities/EntityFinder.js.html +11 -1
  322. package/docs/file/src/entities/SubscribersFinder.js.html +11 -1
  323. package/docs/file/src/entities/SubscriptionsFinder.js.html +11 -1
  324. package/docs/file/src/entities/TicketFinder.js.html +11 -1
  325. package/docs/file/src/geocluster/Geocluster.js.html +11 -1
  326. package/docs/file/src/geocluster/GeoclusterFinder.js.html +11 -1
  327. package/docs/file/src/iot/catalog/Category.js.html +11 -1
  328. package/docs/file/src/iot/catalog/Datastream.js.html +11 -16
  329. package/docs/file/src/iot/catalog/Qrating.js.html +11 -1
  330. package/docs/file/src/iot/datamodels/Datamodels.js.html +11 -2
  331. package/docs/file/src/iot/datamodels/DatamodelsFinder.js.html +11 -1
  332. package/docs/file/src/iot/datamodels/DatamodelsHelper.js.html +11 -1
  333. package/docs/file/src/manufacturers/Manufacturer.js.html +24 -20
  334. package/docs/file/src/manufacturers/ManufacturerFinder.js.html +39 -4
  335. package/docs/file/src/manufacturers/ManufacturerMedia.js.html +11 -1
  336. package/docs/file/src/manufacturers/Model.js.html +34 -61
  337. package/docs/file/src/manufacturers/ModelFinder.js.html +53 -7
  338. package/docs/file/src/manufacturers/ModelMedia.js.html +16 -3
  339. package/docs/file/src/operationTypes/OperationType.js.html +11 -5
  340. package/docs/file/src/operationTypes/OperationTypeCatalog.js.html +11 -1
  341. package/docs/file/src/operationTypes/OperationTypeFinder.js.html +11 -1
  342. package/docs/file/src/operations/OperationActions.js.html +11 -1
  343. package/docs/file/src/operations/OperationFinder.js.html +11 -1
  344. package/docs/file/src/operations/Operations.js.html +11 -1
  345. package/docs/file/src/operations/PeriodicityActions.js.html +11 -1
  346. package/docs/file/src/operations/catalog/AppendEntitiesBy.js.html +11 -1
  347. package/docs/file/src/operations/catalog/BaseOperationBuilder.js.html +11 -1
  348. package/docs/file/src/operations/catalog/Operation.js.html +11 -1
  349. package/docs/file/src/operations/catalog/parameters/BaseParameterBuilderWithParent.js.html +11 -1
  350. package/docs/file/src/operations/catalog/parameters/ParameterBuilderFactory.js.html +11 -1
  351. package/docs/file/src/operations/catalog/period/DAYS_ENUM.js.html +11 -1
  352. package/docs/file/src/operations/catalog/period/ExecuteEachBuilder.js.html +11 -1
  353. package/docs/file/src/operations/catalog/period/ExecuteEveryBuilder.js.html +11 -1
  354. package/docs/file/src/operations/catalog/period/MONTHS_ENUM.js.html +11 -1
  355. package/docs/file/src/operations/catalog/period/PeriodicityUpdateBuilder.js.html +11 -1
  356. package/docs/file/src/operations/catalog/period/pattern/ByGeneric.js.html +11 -1
  357. package/docs/file/src/operations/catalog/period/pattern/ByMonth.js.html +11 -1
  358. package/docs/file/src/operations/catalog/period/pattern/ByWeek.js.html +11 -1
  359. package/docs/file/src/operations/catalog/period/pattern/ByYear.js.html +11 -1
  360. package/docs/file/src/organization_manufacturer/Manufacturer.js.html +501 -0
  361. package/docs/file/src/organization_manufacturer/ManufacturerFinder.js.html +394 -0
  362. package/docs/file/src/organization_manufacturer/Model.js.html +459 -0
  363. package/docs/file/src/organization_manufacturer/ModelFinder.js.html +373 -0
  364. package/docs/file/src/organizations/OrganizationFinder.js.html +11 -1
  365. package/docs/file/src/organizations/Organizations.js.html +11 -1
  366. package/docs/file/src/pipelines/PipelineFinder.js.html +11 -1
  367. package/docs/file/src/pipelines/Pipelines.js.html +11 -1
  368. package/docs/file/src/provision/BaseProvision.js.html +11 -1
  369. package/docs/file/src/provision/bulk/BulkExecutionBuilder.js.html +11 -1
  370. package/docs/file/src/provision/country/CountriesCatalog.js.html +11 -1
  371. package/docs/file/src/provision/entities/AssetBuilder.js.html +11 -1
  372. package/docs/file/src/provision/entities/BulkBuilder.js.html +11 -1
  373. package/docs/file/src/provision/entities/ComplexBuilder.js.html +11 -1
  374. package/docs/file/src/provision/entities/CsvBulkBuilder.js.html +11 -1
  375. package/docs/file/src/provision/entities/DeviceBuilder.js.html +11 -1
  376. package/docs/file/src/provision/entities/EntityBuilder.js.html +11 -1
  377. package/docs/file/src/provision/entities/JsonBulkBuilder.js.html +11 -1
  378. package/docs/file/src/provision/entities/JsonFlattenedBulkBuilder.js.html +11 -1
  379. package/docs/file/src/provision/entities/SimpleBuilder.js.html +11 -1
  380. package/docs/file/src/provision/entities/SubscriberBuilder.js.html +11 -1
  381. package/docs/file/src/provision/entities/SubscriptionBuilder.js.html +11 -1
  382. package/docs/file/src/provision/entities/TicketBuilder.js.html +11 -1
  383. package/docs/file/src/provisionProcessors/provisionProcessors.js.html +11 -1
  384. package/docs/file/src/provisionProcessors/provisionProcessorsFinder.js.html +11 -1
  385. package/docs/file/src/rulesConfiguration/RuleConfigurations.js.html +11 -1
  386. package/docs/file/src/rulesConfiguration/RuleConfigurationsActions.js.html +11 -1
  387. package/docs/file/src/rulesConfiguration/RuleConfigurationsCatalog.js.html +11 -1
  388. package/docs/file/src/rulesConfiguration/RuleConfigurationsFinder.js.html +11 -1
  389. package/docs/file/src/rulesConfiguration/RuleConfigurationsHelper.js.html +11 -1
  390. package/docs/file/src/rulesConfiguration/_RuleCondition.js.html +11 -1
  391. package/docs/file/src/rulesConfiguration/_RuleNotification.js.html +11 -1
  392. package/docs/file/src/searching/AssetSearch.js.html +11 -1
  393. package/docs/file/src/searching/BaseSearch.js.html +11 -1
  394. package/docs/file/src/searching/DeviceSearch.js.html +11 -1
  395. package/docs/file/src/searching/EntitySearch.js.html +11 -1
  396. package/docs/file/src/searching/FilterBuilder.js.html +11 -1
  397. package/docs/file/src/searching/Search.js.html +11 -1
  398. package/docs/file/src/searching/SearchWithoutLimit.js.html +11 -1
  399. package/docs/file/src/searching/SelectBuilder.js.html +11 -1
  400. package/docs/file/src/searching/StaticSearch.js.html +11 -1
  401. package/docs/file/src/searching/WPSearch.js.html +11 -1
  402. package/docs/file/src/searching/builder/AdministrativeStateSearchBuilder.js.html +11 -1
  403. package/docs/file/src/searching/builder/AlarmsSearchBuilder.js.html +11 -1
  404. package/docs/file/src/searching/builder/AllowedResourceTypeSearchBuilder.js.html +11 -1
  405. package/docs/file/src/searching/builder/AreasSearchBuilder.js.html +11 -1
  406. package/docs/file/src/searching/builder/AssetsSearchBuilder.js.html +11 -1
  407. package/docs/file/src/searching/builder/BasicTypesSearchBuilder.js.html +11 -1
  408. package/docs/file/src/searching/builder/BulkExecutionSearchBuilder.js.html +11 -1
  409. package/docs/file/src/searching/builder/BulkSearchBuilder.js.html +11 -1
  410. package/docs/file/src/searching/builder/BundlesSearchBuilder.js.html +11 -1
  411. package/docs/file/src/searching/builder/CertificatesSearchBuilder.js.html +11 -1
  412. package/docs/file/src/searching/builder/ChannelsSearchBuilder.js.html +11 -1
  413. package/docs/file/src/searching/builder/CommunicationsModuleTypeSearchBuilder.js.html +11 -1
  414. package/docs/file/src/searching/builder/CountryCodesSearchBuilder.js.html +11 -1
  415. package/docs/file/src/searching/builder/DatamodelsSearchBuilder.js.html +11 -1
  416. package/docs/file/src/searching/builder/DatapointsSearchBuilder.js.html +11 -1
  417. package/docs/file/src/searching/builder/DatasetEntitiesSearchBuilder.js.html +11 -1
  418. package/docs/file/src/searching/builder/DatasetSearchBuilder.js.html +11 -1
  419. package/docs/file/src/searching/builder/DatasetsCatalogSearchBuilder.js.html +11 -1
  420. package/docs/file/src/searching/builder/DatastreamsSearchBuilder.js.html +11 -1
  421. package/docs/file/src/searching/builder/DevicesPlansSearchBuilder.js.html +11 -1
  422. package/docs/file/src/searching/builder/DevicesSearchBuilder.js.html +11 -1
  423. package/docs/file/src/searching/builder/DomainsSearchBuilder.js.html +11 -1
  424. package/docs/file/src/searching/builder/EntitiesSearchBuilder.js.html +11 -1
  425. package/docs/file/src/searching/builder/ExecutionsHistorySearchBuilder.js.html +11 -1
  426. package/docs/file/src/searching/builder/ExecutionsSearchBuilder.js.html +11 -1
  427. package/docs/file/src/searching/builder/FeedsSearchBuilder.js.html +11 -1
  428. package/docs/file/src/searching/builder/FieldsDefinitionSearchBuilder.js.html +11 -1
  429. package/docs/file/src/searching/builder/FlattenedSearchBuilder.js.html +11 -1
  430. package/docs/file/src/searching/builder/HardwaresSearchBuilder.js.html +11 -1
  431. package/docs/file/src/searching/builder/IoTDatastreamAccessSearchBuilder.js.html +11 -1
  432. package/docs/file/src/searching/builder/IoTDatastreamPeriodSearchBuilder.js.html +11 -1
  433. package/docs/file/src/searching/builder/IoTDatastreamStoragePeriodSearchBuilder.js.html +11 -1
  434. package/docs/file/src/searching/builder/MobilePhoneProviderSearchBuilder.js.html +11 -1
  435. package/docs/file/src/searching/builder/OperationTypesSearchBuilder.js.html +11 -1
  436. package/docs/file/src/searching/builder/OperationalStatusSearchBuilder.js.html +11 -1
  437. package/docs/file/src/searching/builder/OperationsSearchBuilder.js.html +11 -1
  438. package/docs/file/src/searching/builder/OrganizationsSearchBuilder.js.html +11 -1
  439. package/docs/file/src/searching/builder/PlansSearchBuilder.js.html +11 -1
  440. package/docs/file/src/searching/builder/PreFilteredSearchBuilder.js.html +11 -1
  441. package/docs/file/src/searching/builder/RawSearchBuilder.js.html +11 -1
  442. package/docs/file/src/searching/builder/ResourceTypeSearchBuilder.js.html +11 -1
  443. package/docs/file/src/searching/builder/RuleConfigurationSeveritySearchBuilder.js.html +11 -1
  444. package/docs/file/src/searching/builder/RuleModeSearchBuilder.js.html +11 -1
  445. package/docs/file/src/searching/builder/RuleTypeSearchBuilder.js.html +11 -1
  446. package/docs/file/src/searching/builder/RulesSearchBuilder.js.html +11 -1
  447. package/docs/file/src/searching/builder/SearchBuilder.js.html +11 -1
  448. package/docs/file/src/searching/builder/SearchWithSummaryBuilder.js.html +11 -1
  449. package/docs/file/src/searching/builder/ServiceGroupSearchBuilder.js.html +11 -1
  450. package/docs/file/src/searching/builder/SoftwaresSearchBuilder.js.html +11 -1
  451. package/docs/file/src/searching/builder/SubscribersSearchBuilder.js.html +11 -1
  452. package/docs/file/src/searching/builder/SubscriptionsSearchBuilder.js.html +11 -1
  453. package/docs/file/src/searching/builder/TasksSearchBuilder.js.html +11 -1
  454. package/docs/file/src/searching/builder/TicketPrioritySearchBuilder.js.html +11 -1
  455. package/docs/file/src/searching/builder/TicketSeveritySearchBuilder.js.html +11 -1
  456. package/docs/file/src/searching/builder/TicketStatusSearchBuilder.js.html +11 -1
  457. package/docs/file/src/searching/builder/TicketsSearchBuilder.js.html +11 -1
  458. package/docs/file/src/searching/builder/TimeserieSearchBuilder.js.html +11 -1
  459. package/docs/file/src/searching/builder/TimezoneSearchBuilder.js.html +11 -1
  460. package/docs/file/src/searching/builder/UserLanguagesSearchBuilder.js.html +11 -1
  461. package/docs/file/src/searching/builder/UserProfilesSearchBuilder.js.html +11 -1
  462. package/docs/file/src/searching/builder/UsersSearchBuilder.js.html +11 -1
  463. package/docs/file/src/searching/builder/WorkgroupsSearchBuilder.js.html +11 -1
  464. package/docs/file/src/searching/error/SearchBuilderError.js.html +11 -1
  465. package/docs/file/src/security/ADMINISTRATIVE_STATE_ENUM.js.html +11 -1
  466. package/docs/file/src/security/CertificateFinder.js.html +11 -1
  467. package/docs/file/src/security/Certificates.js.html +11 -34
  468. package/docs/file/src/security/MIME_TYPES_ENUM.js.html +11 -1
  469. package/docs/file/src/security/Security.js.html +11 -1
  470. package/docs/file/src/security/USAGES_ENUM.js.html +11 -1
  471. package/docs/file/src/timeseries/Timeseries.js.html +11 -1
  472. package/docs/file/src/timeseries/TimeseriesFinder.js.html +11 -1
  473. package/docs/file/src/timeseriesFunctionsCatalog/TYPES_ENUM.js.html +11 -1
  474. package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunction.js.html +11 -1
  475. package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunctionFinder.js.html +11 -1
  476. package/docs/file/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js.html +12 -278
  477. package/docs/file/src/transformers/TransformerFinder.js.html +11 -1
  478. package/docs/file/src/transformers/Transformers.js.html +11 -1
  479. package/docs/file/src/users/UserFinder.js.html +11 -1
  480. package/docs/file/src/users/Users.js.html +11 -1
  481. package/docs/file/src/util/DATE_FORMAT.js.html +11 -1
  482. package/docs/file/src/util/Expression.js.html +11 -1
  483. package/docs/file/src/util/NorthAmpliaREST.js.html +11 -1
  484. package/docs/file/src/util/SelectElement.js.html +11 -1
  485. package/docs/file/src/util/SouthAmpliaREST.js.html +11 -1
  486. package/docs/file/src/util/formats/check_types.js.html +11 -1
  487. package/docs/file/src/util/searchingFields/FieldFinder.js.html +11 -1
  488. package/docs/file/src/util/searchingFields/IotFields.js.html +11 -1
  489. package/docs/file/src/util/searchingFields/source-precompiled/Fields.js.html +11 -1
  490. package/docs/file/src/workgroups/WorkgroupFinder.js.html +11 -1
  491. package/docs/file/src/workgroups/WorkgroupRelations.js.html +11 -1
  492. package/docs/file/src/workgroups/WorkgroupRelationsFinder.js.html +11 -1
  493. package/docs/file/src/workgroups/Workgroups.js.html +11 -1
  494. package/docs/identifiers.html +313 -29
  495. package/docs/index.html +11 -1
  496. package/docs/manual/index.html +302 -28
  497. package/docs/package.json +1 -1
  498. package/docs/script/search_index.js +336 -54
  499. package/docs/source.html +318 -270
  500. package/docs/test-file/client/autogeneratedFields/fields.spec.js.html +11 -1
  501. package/docs/test-file/client/bundles/bundles.spec.js.html +11 -1
  502. package/docs/test-file/client/collection/iot.spec.js.html +11 -1
  503. package/docs/test-file/client/device/device.spec.js.html +11 -1
  504. package/docs/test-file/client/provision/devices.provision.spec.js.html +11 -1
  505. package/docs/test-file/client/searching/FilterBuilder.spec.js.html +11 -1
  506. package/docs/test-file/client/searching/datapoints.search.spec.js.html +11 -1
  507. package/docs/test-file/client/searching/module.searching.spec.js.html +11 -1
  508. package/docs/test-file/client/searching/rawsearch.spec.js.html +11 -1
  509. package/docs/test-file/client/searching/search.spec.js.html +11 -1
  510. package/docs/test-file/client/security/certificates.spec.js.html +11 -1
  511. package/docs/test-file/client/users/find.spec.js.html +11 -1
  512. package/docs/test-file/client/users/user.spec.js.html +11 -1
  513. package/docs/test.html +11 -1
  514. package/docs/variable/index.html +435 -5
  515. package/features/features/provision/manufacturer/create_manufacturer.feature +13 -50
  516. package/features/step_definitions/when_step_definitions.js +13 -0
  517. package/features/support/world.js +4 -4
  518. package/package.json +1 -1
  519. package/src/InternalOpenGateAPI.js +38 -2
  520. package/src/iot/catalog/Datastream.js +0 -15
  521. package/src/iot/datamodels/Datamodels.js +0 -1
  522. package/src/manufacturers/Manufacturer.js +13 -19
  523. package/src/manufacturers/ManufacturerFinder.js +28 -3
  524. package/src/manufacturers/Model.js +23 -60
  525. package/src/manufacturers/ModelFinder.js +42 -6
  526. package/src/manufacturers/ModelMedia.js +5 -2
  527. package/src/operationTypes/OperationType.js +0 -4
  528. package/src/organization_manufacturer/Manufacturer.js +185 -0
  529. package/src/organization_manufacturer/ManufacturerFinder.js +77 -0
  530. package/src/organization_manufacturer/Model.js +143 -0
  531. package/src/organization_manufacturer/ModelFinder.js +56 -0
  532. package/src/security/Certificates.js +0 -33
  533. package/src/timeseriesFunctionsCatalog/TimeseriesFunctionsHelper.js +1 -277
  534. package/dist/opengate-api-bower-13.2.0.js.map +0 -1
  535. package/dist/opengate-api-bower-13.2.0.min.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opengate-js",
3
- "version": "13.2.0",
3
+ "version": "14.0.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();
@@ -1,9 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  import BaseProvision from '../provision/BaseProvision';
4
- import Manufacturers from './Manufacturer';
5
4
  import ModelMedia from './ModelMedia';
6
5
 
6
+ import {MANUFACTURERS_RESOURCE} from './Manufacturer'
7
+
8
+ export const MODELS_RESOURCE = '/models';
9
+
7
10
  /**
8
11
  * This is a base object that contains all you can do about Models.
9
12
  */
@@ -13,9 +16,10 @@ export default class Models extends BaseProvision {
13
16
  * @param {InternalOpenGateAPI} Reference to the API object.
14
17
  */
15
18
  constructor(ogapi, manufacturer) {
16
- super(ogapi, "/models", undefined, ['identifier', 'name', 'manufacturer']);
17
-
18
- this._manufacturer = manufacturer
19
+ super(ogapi, MANUFACTURERS_RESOURCE, undefined, ['name']);
20
+ this._isValidString(manufacturer, 'manufacturer', 50);
21
+
22
+ this._resource = this._resource + "/" + manufacturer + MODELS_RESOURCE;
19
23
  }
20
24
 
21
25
  /**
@@ -90,78 +94,37 @@ export default class Models extends BaseProvision {
90
94
  return this;
91
95
  }
92
96
 
93
- /**
94
- * Set the manufacturer identifier attribute
95
- * @param {string} id
96
- * @return {Manufacturers}
97
- */
98
- withManufacturerIdentifier(id) {
99
- if (typeof id !== 'string' || id.length > 50)
100
- throw new Error("OGAPI_STRING_PARAMETER_MAX_LENGTH_50");
101
- if (!this._manufacturer) {
102
- this._manufacturer = new Manufacturers(this._ogapi)
103
- }
104
-
105
- this._manufacturer.withIdentifier(id);
106
- return this;
107
- }
108
-
109
- /**
110
- * Set the manufacturer name attribute
111
- * @param {string} name
112
- * @return {Models}
113
- */
114
- withManufacturerName(name) {
115
- if (!name)
116
- throw new Error("OGAPI_STRING_PARAMETER");
117
-
118
- if (!this._manufacturer) {
119
- this._manufacturer = new Manufacturers(this._ogapi)
120
- }
121
-
122
- this._manufacturer.withName(name);
123
-
124
- return this;
125
- }
126
-
127
-
128
97
  mediaBuilder() {
129
- if (!this._identifier)
130
- throw new Error("Required model identifier");
131
- return new ModelMedia(this._ogapi, this._identifier)
98
+ if (!this._manufacturer || !this._identifier)
99
+ throw new Error("Required manufacturer and model identifier");
100
+ return new ModelMedia(this._ogapi, this._manufacturer, this._identifier)
132
101
  }
133
102
 
134
103
  _composeElement() {
135
104
  this._checkRequiredParameters()
136
105
 
137
106
  var updateData = {
138
- model: {
139
- id: this._identifier || undefined,
140
- name: this._name || undefined,
141
- description: this._description || undefined,
142
- version: this._version || undefined,
143
- notes: this._notes || undefined,
144
- url: this._modelUrl || undefined,
145
- manufacturer: {
146
- id: this._manufacturer._identifier || undefined,
147
- name: this._manufacturer._name || undefined
148
- }
149
- }
107
+ name: this._name || undefined,
108
+ description: this._description || undefined,
109
+ version: this._version || undefined,
110
+ notes: this._notes || undefined,
111
+ url: this._modelUrl || undefined
150
112
  };
151
113
 
152
114
  return updateData;
153
115
  }
154
116
 
155
117
  _composeUpdateElement() {
156
- var updateElement = this._composeElement()
157
-
158
- delete updateElement.model.id
159
-
160
- return updateElement
118
+ return this._composeElement()
161
119
  }
162
120
 
163
121
  _buildURL() {
164
- var url = this._resource + "/" + this._identifier
122
+ var url = this._resource + (this._identifier?"/" + this._identifier: "")
165
123
  return url;
166
124
  }
125
+
126
+ _isValidString(string, param_name, max_length) {
127
+ if (typeof string !== 'string' || string.length === 0 || string.length > max_length)
128
+ throw new Error('Parameter ' + param_name + ' must be a string, cannot be empty and has a maximum length of ' + max_length);
129
+ }
167
130
  }
@@ -4,6 +4,10 @@ import ProvisionGenericFinder from '../ProvisionGenericFinder';
4
4
  import q from 'q';
5
5
  import HttpStatus from 'http-status-codes';
6
6
 
7
+ // import { MANUFACTURERS_RESOURCE } from './Manufacturer';
8
+ import { MODELS_RESOURCE } from './Model';
9
+
10
+
7
11
  /**
8
12
  * This class allow make get request to hardware models resource into Opengate North API.
9
13
  */
@@ -13,7 +17,7 @@ export default class ModelFinder extends ProvisionGenericFinder {
13
17
  * @param {InternalOpenGateAPI} Reference to the API object.
14
18
  */
15
19
  constructor(ogapi) {
16
- super(ogapi, 'models', 'model', 'Model not found');
20
+ super(ogapi, 'manufacturers', undefined, 'Model not found');
17
21
  }
18
22
 
19
23
  /**
@@ -21,17 +25,46 @@ export default class ModelFinder extends ProvisionGenericFinder {
21
25
  * @private
22
26
  */
23
27
  _composeUrl() {
24
- return this._baseUrl + "/" + this._identifier + (this._mediaIdentifier? "/media/" + this._mediaIdentifier + '?format=raw': '');
28
+ return this._baseUrl + "/" + this._manufacturer + MODELS_RESOURCE + (this._identifier? "/" + this._identifier + (this._media? "/media" + (this._mediaIdentifier? "/" + this._mediaIdentifier + '?format=raw': '') : ""):"");
29
+ }
30
+
31
+ /**
32
+ * Download all models from a manufacturer. This execute a GET http method
33
+ * @test
34
+ * ogapi.newModelFinder().findByManufacturer('manufacturer').then().catch();
35
+ * @param {string} manufacturer - manufacturer id .
36
+ * @return {Promise}
37
+ */
38
+ findByManufacturer(manufacturer) {
39
+ this._manufacturer = manufacturer;
40
+ return this._execute();
25
41
  }
26
42
 
27
43
  /**
28
44
  * Download a specific model by its id. This execute a GET http method
29
45
  * @test
30
- * ogapi.newModelFinder().findById('modelname').then().catch();
46
+ * ogapi.newModelFinder().findByManufacturerAndId('manufacturer', 'modelname').then().catch();
47
+ * @param {string} manufacturer - manufacturer id .
31
48
  * @param {string} identifier - model name .
32
49
  * @return {Promise}
33
50
  */
34
- findById(identifier) {
51
+ findByManufacturerAndId(manufacturer, identifier) {
52
+ this._manufacturer = manufacturer;
53
+ this._identifier = identifier;
54
+ return this._execute();
55
+ }
56
+
57
+ /**
58
+ * Download a specific model media by its ids. This execute a GET http method
59
+ * @test
60
+ * ogapi.newModelFinder().findMediasByManufacturerAndModel('manufacturer', 'modelId').then().catch();
61
+ * @param {string} manufacturer - manufacturer id .
62
+ * @param {string} identifier - model identifier .
63
+ * @return {Promise}
64
+ */
65
+ findMediasByManufacturerAndModel(manufacturer, identifier) {
66
+ this._media = true
67
+ this._manufacturer = manufacturer;
35
68
  this._identifier = identifier;
36
69
  return this._execute();
37
70
  }
@@ -39,12 +72,15 @@ export default class ModelFinder extends ProvisionGenericFinder {
39
72
  /**
40
73
  * Download a specific model media by its ids. This execute a GET http method
41
74
  * @test
42
- * ogapi.newModelFinder().findMediaById('modelId', 'mediaIdentifier').then().catch();
75
+ * ogapi.newModelFinder().findMediaByManufacturerAndModelAndId('modelId', 'mediaIdentifier').then().catch();
76
+ * @param {string} manufacturer - manufacturer id .
43
77
  * @param {string} modelId - model identifier .
44
78
  * @param {string} mediaIdentifier - media identifier.
45
79
  * @return {Promise}
46
80
  */
47
- findMediaById(modelId, mediaIdentifier) {
81
+ findMediaByManufacturerAndModelAndId(manufacturer, modelId, mediaIdentifier) {
82
+ this._media = true
83
+ this._manufacturer = manufacturer;
48
84
  this._identifier = modelId;
49
85
  this._mediaIdentifier = mediaIdentifier;
50
86
  return this._download();
@@ -3,6 +3,9 @@
3
3
  import q from 'q';
4
4
  import BaseProvision from '../provision/BaseProvision';
5
5
 
6
+ import { MANUFACTURERS_RESOURCE } from './Manufacturer';
7
+ import { MODELS_RESOURCE } from './Model';
8
+
6
9
  /**
7
10
  * This is a base object that contains all you can do about ModelMedia.
8
11
  */
@@ -11,8 +14,8 @@ export default class ModelMedia extends BaseProvision {
11
14
  /**
12
15
  * @param {InternalOpenGateAPI} Reference to the API object.
13
16
  */
14
- constructor(ogapi, modelId) {
15
- super(ogapi, "/models/" + modelId + '/media', undefined, ['identifier']);
17
+ constructor(ogapi, manufacturer, modelId) {
18
+ super(ogapi, MANUFACTURERS_RESOURCE + "/" + manufacturer + MODELS_RESOURCE + "/" + modelId + '/media', undefined, ['identifier']);
16
19
  }
17
20
 
18
21
  //http://cm.amplia.es/jira/browse/OGODM-3201
@@ -49,10 +49,6 @@ export default class OperationType extends BaseProvision {
49
49
  this.withParameters(operationTypeObj.parameters);
50
50
  }
51
51
 
52
- if (operationTypeObj.models) {
53
- this.withModels(operationTypeObj.models);
54
- }
55
-
56
52
  if (operationTypeObj.applicableTo) {
57
53
  this.applicableTo(operationTypeObj.applicableTo);
58
54
  }
@@ -0,0 +1,185 @@
1
+ 'use strict';
2
+
3
+ import BaseProvision from '../provision/BaseProvision';
4
+ import Model from './Model';
5
+
6
+ export const PRE_RESOURCE = '/organizations';
7
+ export const MANUFACTURERS_RESOURCE = '/manufacturers';
8
+
9
+ /**
10
+ * This is a base object that contains all you can do about Manufacturers.
11
+ */
12
+ export default class Manufacturers extends BaseProvision {
13
+
14
+ /**
15
+ * @param {InternalOpenGateAPI} Reference to the API object.
16
+ */
17
+ constructor(ogapi, organization) {
18
+ // super(ogapi, "/manufacturers", undefined, ['identifier', 'name']);
19
+ super(ogapi, PRE_RESOURCE, undefined, ['name']);
20
+ this._isValidString(organization, 'organization', 50);
21
+ this._organization = organization;
22
+
23
+ this._resource = this._resource + '/' + this._organization + MANUFACTURERS_RESOURCE;
24
+ }
25
+
26
+ /**
27
+ * Set the identifier attribute
28
+ * @param {string} id - required field
29
+ * @return {Manufacturers}
30
+ */
31
+ withIdentifier(id) {
32
+ if (typeof id !== 'string' || id.length > 50)
33
+ throw new Error("OGAPI_STRING_PARAMETER_MAX_LENGTH_50");
34
+ this._identifier = id;
35
+ return this;
36
+ }
37
+
38
+ /**
39
+ * Set the name attribute
40
+ * @param {string} name - required field
41
+ * @return {Manufacturers}
42
+ */
43
+ withName(name) {
44
+ if (typeof name !== 'string')
45
+ throw new Error("OGAPI_STRING_PARAMETER");
46
+ this._name = name;
47
+ return this;
48
+ }
49
+
50
+ /**
51
+ * Set the description attribute
52
+ * @param {string} description - required field
53
+ * @return {Manufacturers}
54
+ */
55
+ withDescription(description) {
56
+ if (typeof description !== 'string')
57
+ throw new Error("OGAPI_STRING_PARAMETER");
58
+ this._description = description;
59
+ return this;
60
+ }
61
+
62
+ /**
63
+ * Set the notes attribute
64
+ * @param {string} notes
65
+ * @return {Manufacturers}
66
+ */
67
+ withNotes(notes) {
68
+ if (typeof notes !== 'string')
69
+ throw new Error("OGAPI_STRING_PARAMETER");
70
+ this._notes = notes;
71
+ return this;
72
+ }
73
+
74
+ /**
75
+ * Set the url attribute
76
+ * @param {string} url
77
+ * @return {Manufacturers}
78
+ */
79
+ withUrl(url) {
80
+ if (typeof url !== 'string')
81
+ throw new Error("OGAPI_STRING_PARAMETER");
82
+ this._manufUrl = url;
83
+ return this;
84
+ }
85
+
86
+ /**
87
+ * Set the fax attribute
88
+ * @param {string} fax
89
+ * @return {Manufacturers}
90
+ */
91
+ withFax(fax) {
92
+ if (typeof fax !== 'string')
93
+ throw new Error("OGAPI_STRING_PARAMETER");
94
+ this._fax = fax;
95
+ return this;
96
+ }
97
+
98
+ /**
99
+ * Set the telephone attribute
100
+ * @param {string} telephone
101
+ * @return {Manufacturers}
102
+ */
103
+ withTelephone(telephone) {
104
+ if (typeof telephone !== 'string')
105
+ throw new Error("OGAPI_STRING_PARAMETER");
106
+ this._telephone = telephone;
107
+ return this;
108
+ }
109
+
110
+ /**
111
+ * Set the address attribute
112
+ * @param {string} address
113
+ * @return {Manufacturers}
114
+ */
115
+ withAddress(address) {
116
+ if (typeof address !== 'string')
117
+ throw new Error("OGAPI_STRING_PARAMETER");
118
+ this._address = address;
119
+ return this;
120
+ }
121
+
122
+ /**
123
+ * Set the email attribute
124
+ * @param {string} email
125
+ * @return {Manufacturers}
126
+ */
127
+ withEmail(email) {
128
+ if (typeof email !== 'string')
129
+ throw new Error("OGAPI_STRING_PARAMETER");
130
+ this._email = email;
131
+ return this;
132
+ }
133
+
134
+ modelBuilder() {
135
+ if (!this._identifier)
136
+ throw new Error("Required manufacturer identifier");
137
+ return new Model(this._ogapi, this._organization, this._identifier)
138
+ }
139
+
140
+ _composeElement() {
141
+ this._checkRequiredParameters()
142
+
143
+ var updateData = {
144
+ name: this._name || undefined,
145
+ description: this._description || undefined,
146
+ telephone: this._telephone || undefined,
147
+ address: this._address || undefined,
148
+ fax: this._fax || undefined,
149
+ url: this._manufUrl || undefined,
150
+ notes: this._notes || undefined,
151
+ email: this._email || undefined
152
+ };
153
+
154
+ return updateData;
155
+ }
156
+
157
+ _composeUpdateElement() {
158
+ return this._composeElement();
159
+ }
160
+
161
+ _buildURL() {
162
+ return this._resource + (this._identifier?"/" + this._identifier:"");
163
+ }
164
+
165
+ deleteInCascade() {
166
+ this._setUrlParameters({
167
+ updateDevices: true
168
+ });
169
+
170
+ return this.delete()
171
+ }
172
+
173
+ updateInCascade() {
174
+ this._setUrlParameters({
175
+ updateDevices: true
176
+ });
177
+
178
+ return this.update()
179
+ }
180
+
181
+ _isValidString(string, param_name, max_length) {
182
+ if (typeof string !== 'string' || string.length === 0 || string.length > max_length)
183
+ throw new Error('Parameter ' + param_name + ' must be a string, cannot be empty and has a maximum length of ' + max_length);
184
+ }
185
+ }