opengate-js 10.3.0 → 10.5.1

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 (474) hide show
  1. package/bower.json +1 -1
  2. package/dist/{opengate-api-bower-10.3.0.js → opengate-api-bower-10.5.1.js} +1211 -407
  3. package/dist/opengate-api-bower-10.5.1.js.map +1 -0
  4. package/dist/{opengate-api-bower-10.3.0.min.js → opengate-api-bower-10.5.1.min.js} +31 -31
  5. package/dist/opengate-api-bower-10.5.1.min.js.map +1 -0
  6. package/dist/opengate-api-npm.js +1 -1
  7. package/dist/opengate-api-npm.js.map +1 -1
  8. package/dist/src/InternalOpenGateAPI.js +96 -1
  9. package/dist/src/InternalOpenGateAPI.js.map +1 -1
  10. package/dist/src/bulk/BulkExecutionFinder.js +133 -0
  11. package/dist/src/bulk/BulkExecutionFinder.js.map +1 -0
  12. package/dist/src/bundles/Bundles.js +2 -10
  13. package/dist/src/bundles/Bundles.js.map +1 -1
  14. package/dist/src/provision/bulk/BulkExecutionBuilder.js +171 -0
  15. package/dist/src/provision/bulk/BulkExecutionBuilder.js.map +1 -0
  16. package/dist/src/provisionProcessors/provisionProcessors.js +135 -0
  17. package/dist/src/provisionProcessors/provisionProcessors.js.map +1 -0
  18. package/dist/src/provisionProcessors/provisionProcessorsFinder.js +75 -0
  19. package/dist/src/provisionProcessors/provisionProcessorsFinder.js.map +1 -0
  20. package/dist/src/searching/AssetSearch.js +1 -1
  21. package/dist/src/searching/BaseSearch.js +1 -1
  22. package/dist/src/searching/BaseSearch.js.map +1 -1
  23. package/dist/src/searching/DeviceSearch.js +1 -1
  24. package/dist/src/searching/Search.js +1 -1
  25. package/dist/src/searching/Search.js.map +1 -1
  26. package/dist/src/searching/WPSearch.js +69 -0
  27. package/dist/src/searching/WPSearch.js.map +1 -0
  28. package/dist/src/searching/builder/BulkExecutionSearchBuilder.js +71 -0
  29. package/dist/src/searching/builder/BulkExecutionSearchBuilder.js.map +1 -0
  30. package/dist/src/util/NorthAmpliaREST.js +51 -28
  31. package/dist/src/util/NorthAmpliaREST.js.map +1 -1
  32. package/dist/src/util/formats/check_types.js +8 -3
  33. package/dist/src/util/formats/check_types.js.map +1 -1
  34. package/dist/src/util/searchingFields/FieldFinder.js +2 -1
  35. package/dist/src/util/searchingFields/FieldFinder.js.map +1 -1
  36. package/dist/src/util/searchingFields/IotFields.js +18 -2
  37. package/dist/src/util/searchingFields/IotFields.js.map +1 -1
  38. package/docs/ast/source/InternalOpenGateAPI.js.json +30062 -20928
  39. package/docs/ast/source/bulk/BulkExecutionFinder.js.json +14859 -0
  40. package/docs/ast/source/bundles/Bundles.js.json +75587 -0
  41. package/docs/ast/source/provision/bulk/BulkExecutionBuilder.js.json +21344 -0
  42. package/docs/ast/source/provisionProcessors/provisionProcessors.js.json +9915 -0
  43. package/docs/ast/source/provisionProcessors/provisionProcessorsFinder.js.json +3784 -0
  44. package/docs/ast/source/searching/AssetSearch.js.json +696 -696
  45. package/docs/ast/source/searching/BaseSearch.js.json +3497 -3587
  46. package/docs/ast/source/searching/DeviceSearch.js.json +1308 -1308
  47. package/docs/ast/source/searching/Search.js.json +326 -236
  48. package/docs/ast/source/searching/WPSearch.js.json +4459 -0
  49. package/docs/ast/source/searching/builder/BulkExecutionSearchBuilder.js.json +4744 -0
  50. package/docs/ast/source/util/NorthAmpliaREST.js.json +19144 -15325
  51. package/docs/ast/source/util/formats/check_types.js.json +3332 -2034
  52. package/docs/ast/source/util/searchingFields/FieldFinder.js.json +12159 -11995
  53. package/docs/ast/source/util/searchingFields/IotFields.js.json +7602 -5318
  54. package/docs/class/src/GenericFinder.js~GenericFinder.html +11 -2
  55. package/docs/class/src/InternalOpenGateAPI.js~InternalOpenGateAPI.html +569 -112
  56. package/docs/class/src/ProvisionGenericFinder.js~ProvisionGenericFinder.html +10 -1
  57. package/docs/class/src/alarms/AlarmActions.js~AlarmActions.html +10 -1
  58. package/docs/class/src/alarms/actions/Alarm.js~Operation.html +10 -1
  59. package/docs/class/src/alarms/actions/AlarmActionBuilder.js~AlarmActionBuilder.html +10 -1
  60. package/docs/class/src/alarms/actions/AlarmAttendBuilder.js~AlarmAttendBuilder.html +10 -1
  61. package/docs/class/src/alarms/actions/AlarmCloseBuilder.js~AlarmCloseBuilder.html +10 -1
  62. package/docs/class/src/areas/AreaFinder.js~AreaFinder.html +10 -1
  63. package/docs/class/src/areas/Areas.js~Areas.html +10 -1
  64. package/docs/class/src/bulk/BulkExecutionFinder.js~BulkExecutionFinder.html +529 -0
  65. package/docs/class/src/bulk/BulkFinder.js~BulkFinder.html +10 -1
  66. package/docs/class/src/bundles/BundleFinder.js~BundleFinder.html +10 -1
  67. package/docs/class/src/bundles/Bundles.js~Bundles.html +2123 -0
  68. package/docs/class/src/bundles/deployment/DeploymentElement.js~DeploymentElement.html +13 -4
  69. package/docs/class/src/channels/ChannelFinder.js~ChannelFinder.html +10 -1
  70. package/docs/class/src/channels/Channels.js~Channels.html +10 -1
  71. package/docs/class/src/collection/devices/DeviceMessage.js~DeviceMessage.html +10 -1
  72. package/docs/class/src/collection/devices/collect/CommsModuleMessage.js~CommsModuleMessage.html +10 -1
  73. package/docs/class/src/collection/devices/collect/Datapoint.js~Datapoint.html +10 -1
  74. package/docs/class/src/collection/devices/collect/Datastreams.js~Datastream.html +10 -1
  75. package/docs/class/src/collection/devices/collect/Event.js~Event.html +10 -1
  76. package/docs/class/src/collection/devices/collect/Hardware.js~Hardware.html +10 -1
  77. package/docs/class/src/collection/devices/collect/Location.js~Location.html +10 -1
  78. package/docs/class/src/collection/devices/collect/Mobile.js~Mobile.html +10 -1
  79. package/docs/class/src/collection/devices/collect/PowerSupply.js~PowerSupply.html +10 -1
  80. package/docs/class/src/collection/devices/collect/Software.js~Software.html +10 -1
  81. package/docs/class/src/collection/devices/collect/Storage.js~Storage.html +10 -1
  82. package/docs/class/src/collection/devices/collect/Subscriber.js~Subscriber.html +10 -1
  83. package/docs/class/src/collection/devices/collect/Subscription.js~Subscription.html +10 -1
  84. package/docs/class/src/collection/devices/collect/Temperature.js~Temperature.html +10 -1
  85. package/docs/class/src/collection/devices/collect/Usage.js~Usage.html +10 -1
  86. package/docs/class/src/domains/Domains.js~Domains.html +10 -1
  87. package/docs/class/src/domains/DomainsFinder.js~DomainFinder.html +10 -1
  88. package/docs/class/src/entities/DeviceFinder.js~DeviceFinder.html +10 -1
  89. package/docs/class/src/entities/EntityFinder.js~EntityFinder.html +10 -1
  90. package/docs/class/src/entities/SubscribersFinder.js~SubscribersFinder.html +10 -1
  91. package/docs/class/src/entities/SubscriptionsFinder.js~SubscriptionsFinder.html +10 -1
  92. package/docs/class/src/entities/TicketFinder.js~TicketFinder.html +10 -1
  93. package/docs/class/src/iot/catalog/Category.js~Category.html +10 -1
  94. package/docs/class/src/iot/catalog/Datastream.js~Datastream.html +10 -1
  95. package/docs/class/src/iot/catalog/Qrating.js~Qrating.html +10 -1
  96. package/docs/class/src/iot/datamodels/Datamodels.js~Datamodels.html +10 -1
  97. package/docs/class/src/iot/datamodels/DatamodelsFinder.js~DatamodelsFinder.html +10 -1
  98. package/docs/class/src/iot/datamodels/DatamodelsHelper.js~DatamodelsHelper.html +10 -1
  99. package/docs/class/src/operations/OperationActions.js~OperationActions.html +10 -1
  100. package/docs/class/src/operations/OperationFinder.js~OperationFinder.html +10 -1
  101. package/docs/class/src/operations/Operations.js~Operations.html +10 -1
  102. package/docs/class/src/operations/PeriodicityActions.js~PeriodicityActions.html +10 -1
  103. package/docs/class/src/operations/catalog/AppendEntitiesBy.js~AppendEntitiesBy.html +10 -1
  104. package/docs/class/src/operations/catalog/BaseOperationBuilder.js~BaseOperationBuilder.html +10 -1
  105. package/docs/class/src/operations/catalog/Operation.js~Operation.html +10 -1
  106. package/docs/class/src/operations/catalog/parameters/BaseParameterBuilderWithParent.js~BaseParameterBuilderWithParent.html +10 -1
  107. package/docs/class/src/operations/catalog/parameters/ParameterBuilderFactory.js~ParameterBuilderFactory.html +10 -1
  108. package/docs/class/src/operations/catalog/period/ExecuteEachBuilder.js~ExecuteEachBuilder.html +10 -1
  109. package/docs/class/src/operations/catalog/period/ExecuteEveryBuilder.js~ExecuteEveryBuilder.html +10 -1
  110. package/docs/class/src/operations/catalog/period/PeriodicityUpdateBuilder.js~PeriodicityUpdateBuilder.html +10 -1
  111. package/docs/class/src/operations/catalog/period/pattern/ByGeneric.js~ByGeneric.html +10 -1
  112. package/docs/class/src/operations/catalog/period/pattern/ByMonth.js~ByMonth.html +10 -1
  113. package/docs/class/src/operations/catalog/period/pattern/ByWeek.js~ByWeek.html +10 -1
  114. package/docs/class/src/operations/catalog/period/pattern/ByYear.js~ByYear.html +10 -1
  115. package/docs/class/src/organizations/OrganizationFinder.js~OrganizationFinder.html +10 -1
  116. package/docs/class/src/organizations/Organizations.js~Organizations.html +10 -1
  117. package/docs/class/src/provision/BaseProvision.js~BaseProvision.html +11 -2
  118. package/docs/class/src/provision/bulk/BulkExecutionBuilder.js~BulkExecutionBuilder.html +766 -0
  119. package/docs/class/src/provision/entities/AssetBuilder.js~AssetBuilder.html +10 -1
  120. package/docs/class/src/provision/entities/BulkBuilder.js~BulkBuilder.html +10 -1
  121. package/docs/class/src/provision/entities/ComplexBuilder.js~ComplexBuilder.html +10 -1
  122. package/docs/class/src/provision/entities/CsvBulkBuilder.js~CsvBulkBuilder.html +10 -1
  123. package/docs/class/src/provision/entities/DeviceBuilder.js~DeviceBuilder.html +10 -1
  124. package/docs/class/src/provision/entities/EntityBuilder.js~EntityBuilder.html +10 -1
  125. package/docs/class/src/provision/entities/JsonBulkBuilder.js~JsonBulkBuilder.html +10 -1
  126. package/docs/class/src/provision/entities/JsonFlattenedBulkBuilder.js~JsonFlattenedBulkBuilder.html +10 -1
  127. package/docs/class/src/provision/entities/SimpleBuilder.js~SimpleBuilder.html +10 -1
  128. package/docs/class/src/provision/entities/SubscriberBuilder.js~SubscriberBuilder.html +10 -1
  129. package/docs/class/src/provision/entities/SubscriptionBuilder.js~SubscriptionBuilder.html +10 -1
  130. package/docs/class/src/provision/entities/TicketBuilder.js~TicketBuilder.html +10 -1
  131. package/docs/class/src/provisionProcessors/provisionProcessors.js~ProvisionProcessors.html +1012 -0
  132. package/docs/class/src/provisionProcessors/provisionProcessorsFinder.js~provisionProcessorsFinder.html +623 -0
  133. package/docs/class/src/rulesConfiguration/RuleConfigurations.js~RuleConfigurations.html +10 -1
  134. package/docs/class/src/rulesConfiguration/RuleConfigurationsActions.js~RuleConfigurationsActions.html +10 -1
  135. package/docs/class/src/rulesConfiguration/RuleConfigurationsCatalog.js~RuleConfigurationsCatalog.html +10 -1
  136. package/docs/class/src/rulesConfiguration/RuleConfigurationsFinder.js~RuleConfigurationsFinder.html +10 -1
  137. package/docs/class/src/searching/AssetSearch.js~AssetSearch.html +11 -2
  138. package/docs/class/src/searching/BaseSearch.js~BaseSearch.html +11 -2
  139. package/docs/class/src/searching/DeviceSearch.js~DeviceSearch.html +11 -2
  140. package/docs/class/src/searching/EntitySearch.js~EntitySearch.html +10 -1
  141. package/docs/class/src/searching/FilterBuilder.js~FilterBuilder.html +10 -1
  142. package/docs/class/src/searching/QuickSearch.js~QuickSearch.html +10 -1
  143. package/docs/class/src/searching/Search.js~Search.html +10 -1
  144. package/docs/class/src/searching/SelectBuilder.js~SelectBuilder.html +10 -1
  145. package/docs/class/src/searching/StaticSearch.js~StaticSearch.html +10 -1
  146. package/docs/class/src/searching/WPSearch.js~WPSearch.html +599 -0
  147. package/docs/class/src/searching/builder/AdministrativeStateSearchBuilder.js~AdministrativeStateSearchBuilder.html +10 -1
  148. package/docs/class/src/searching/builder/AlarmsSearchBuilder.js~AlarmsSearchBuilder.html +10 -1
  149. package/docs/class/src/searching/builder/AllowedResourceTypeSearchBuilder.js~AllowedResourceTypeSearchBuilder.html +10 -1
  150. package/docs/class/src/searching/builder/AreasSearchBuilder.js~AreasSearchBuilder.html +10 -1
  151. package/docs/class/src/searching/builder/AssetsSearchBuilder.js~AssetsSearchBuilder.html +10 -1
  152. package/docs/class/src/searching/builder/BasicTypesSearchBuilder.js~BasicTypesSearchBuilder.html +10 -1
  153. package/docs/class/src/searching/builder/BulkExecutionSearchBuilder.js~BulkExecutionSearchBuilder.html +865 -0
  154. package/docs/class/src/searching/builder/BulkSearchBuilder.js~BulkSearchBuilder.html +10 -1
  155. package/docs/class/src/searching/builder/BundlesSearchBuilder.js~BundlesSearchBuilder.html +10 -1
  156. package/docs/class/src/searching/builder/CertificatesSearchBuilder.js~CertificatesSearchBuilder.html +10 -1
  157. package/docs/class/src/searching/builder/ChannelsSearchBuilder.js~ChannelsSearchBuilder.html +10 -1
  158. package/docs/class/src/searching/builder/CommunicationsModuleTypeSearchBuilder.js~CommunicationsModuleTypeSearchBuilder.html +10 -1
  159. package/docs/class/src/searching/builder/CountryCodesSearchBuilder.js~CountryCodesSearchBuilder.html +10 -1
  160. package/docs/class/src/searching/builder/DatamodelsSearchBuilder.js~DatamodelsSearchBuilder.html +10 -1
  161. package/docs/class/src/searching/builder/DatapointsSearchBuilder.js~DatapointsSearchBuilder.html +10 -1
  162. package/docs/class/src/searching/builder/DatasetEntitiesSearchBuilder.js~DatasetEntitiesSearchBuilder.html +10 -1
  163. package/docs/class/src/searching/builder/DatasetsCatalogSearchBuilder.js~DatasetsCatalogSearchBuilder.html +10 -1
  164. package/docs/class/src/searching/builder/DatastreamsSearchBuilder.js~DatastreamsSearchBuilder.html +10 -1
  165. package/docs/class/src/searching/builder/DevicesSearchBuilder.js~DevicesSearchBuilder.html +10 -1
  166. package/docs/class/src/searching/builder/DomainsSearchBuilder.js~DomainsSearchBuilder.html +10 -1
  167. package/docs/class/src/searching/builder/EntitiesSearchBuilder.js~EntitiesSearchBuilder.html +10 -1
  168. package/docs/class/src/searching/builder/ExecutionsSearchBuilder.js~ExecutionsSearchBuilder.html +10 -1
  169. package/docs/class/src/searching/builder/FeedsSearchBuilder.js~FeedsSearchBuilder.html +10 -1
  170. package/docs/class/src/searching/builder/FieldsDefinitionSearchBuilder.js~FieldsDefinitionSearchBuilder.html +10 -1
  171. package/docs/class/src/searching/builder/FlattenedSearchBuilder.js~FlattenedSearchBuilder.html +10 -1
  172. package/docs/class/src/searching/builder/HardwaresSearchBuilder.js~HardwaresSearchBuilder.html +10 -1
  173. package/docs/class/src/searching/builder/IoTDatastreamAccessSearchBuilder.js~IoTDatastreamAccessSearchBuilder.html +10 -1
  174. package/docs/class/src/searching/builder/IoTDatastreamPeriodSearchBuilder.js~IoTDatastreamPeriodSearchBuilder.html +10 -1
  175. package/docs/class/src/searching/builder/IoTDatastreamStoragePeriodSearchBuilder.js~IoTDatastreamStoragePeriodSearchBuilder.html +10 -1
  176. package/docs/class/src/searching/builder/MobilePhoneProviderSearchBuilder.js~MobilePhoneProviderSearchBuilder.html +10 -1
  177. package/docs/class/src/searching/builder/OperationalStatusSearchBuilder.js~OperationalStatusSearchBuilder.html +10 -1
  178. package/docs/class/src/searching/builder/OperationsSearchBuilder.js~OperationsSearchBuilder.html +10 -1
  179. package/docs/class/src/searching/builder/OrganizationsSearchBuilder.js~OrganizationsSearchBuilder.html +10 -1
  180. package/docs/class/src/searching/builder/PlansSearchBuilder.js~PlansSearchBuilder.html +10 -1
  181. package/docs/class/src/searching/builder/PreFilteredSearchBuilder.js~PreFilteredSearchBuilder.html +10 -1
  182. package/docs/class/src/searching/builder/RawSearchBuilder.js~RawSearchBuilder.html +10 -1
  183. package/docs/class/src/searching/builder/ResourceTypeSearchBuilder.js~ResourceTypeSearchBuilder.html +10 -1
  184. package/docs/class/src/searching/builder/RuleConfigurationSeveritySearchBuilder.js~RuleConfigurationSeveritySearchBuilder.html +10 -1
  185. package/docs/class/src/searching/builder/RuleModeSearchBuilder.js~RuleModeSearchBuilder.html +10 -1
  186. package/docs/class/src/searching/builder/RuleTypeSearchBuilder.js~RuleTypeSearchBuilder.html +10 -1
  187. package/docs/class/src/searching/builder/RulesSearchBuilder.js~RulesSearchBuilder.html +10 -1
  188. package/docs/class/src/searching/builder/SearchBuilder.js~SearchBuilder.html +11 -2
  189. package/docs/class/src/searching/builder/SearchWithSummaryBuilder.js~SearchWithSummaryBuilder.html +10 -1
  190. package/docs/class/src/searching/builder/ServiceGroupSearchBuilder.js~ServiceGroupSearchBuilder.html +10 -1
  191. package/docs/class/src/searching/builder/SoftwaresSearchBuilder.js~SoftwaresSearchBuilder.html +10 -1
  192. package/docs/class/src/searching/builder/SubscribersSearchBuilder.js~SubscribersSearchBuilder.html +10 -1
  193. package/docs/class/src/searching/builder/SubscriptionsSearchBuilder.js~SubscriptionsSearchBuilder.html +10 -1
  194. package/docs/class/src/searching/builder/TasksSearchBuilder.js~TasksSearchBuilder.html +10 -1
  195. package/docs/class/src/searching/builder/TicketPrioritySearchBuilder.js~TicketPrioritySearchBuilder.html +10 -1
  196. package/docs/class/src/searching/builder/TicketSeveritySearchBuilder.js~TicketSeveritySearchBuilder.html +10 -1
  197. package/docs/class/src/searching/builder/TicketStatusSearchBuilder.js~TicketStatusSearchBuilder.html +10 -1
  198. package/docs/class/src/searching/builder/TicketsSearchBuilder.js~TicketsSearchBuilder.html +10 -1
  199. package/docs/class/src/searching/builder/TimezoneSearchBuilder.js~TimezoneSearchBuilder.html +10 -1
  200. package/docs/class/src/searching/builder/UserLanguagesSearchBuilder.js~UserLanguagesSearchBuilder.html +10 -1
  201. package/docs/class/src/searching/builder/UserProfilesSearchBuilder.js~UserProfilesSearchBuilder.html +10 -1
  202. package/docs/class/src/searching/builder/UsersSearchBuilder.js~UsersSearchBuilder.html +10 -1
  203. package/docs/class/src/searching/builder/WorkgroupsSearchBuilder.js~WorkgroupsSearchBuilder.html +10 -1
  204. package/docs/class/src/searching/error/SearchBuilderError.js~SearchBuilderError.html +10 -1
  205. package/docs/class/src/security/CertificateFinder.js~CertificateFinder.html +10 -1
  206. package/docs/class/src/security/Certificates.js~Certificates.html +10 -1
  207. package/docs/class/src/security/Security.js~Security.html +10 -1
  208. package/docs/class/src/users/UserFinder.js~UserFinder.html +10 -1
  209. package/docs/class/src/users/Users.js~User.html +10 -1
  210. package/docs/class/src/util/Expression.js~Expression.html +10 -1
  211. package/docs/class/src/util/NorthAmpliaREST.js~NorthAmpliaREST.html +24 -8
  212. package/docs/class/src/util/SelectElement.js~SelectElement.html +10 -1
  213. package/docs/class/src/util/SouthAmpliaREST.js~SouthAmpliaREST.html +11 -2
  214. package/docs/class/src/util/searchingFields/FieldFinder.js~FieldFinder.html +16 -7
  215. package/docs/class/src/workgroups/WorkgroupFinder.js~WorkgroupFinder.html +10 -1
  216. package/docs/class/src/workgroups/WorkgroupRelations.js~WorkgroupRelations.html +10 -1
  217. package/docs/class/src/workgroups/WorkgroupRelationsFinder.js~WorkgroupRelationsFinder.html +10 -1
  218. package/docs/class/src/workgroups/Workgroups.js~Workgroups.html +10 -1
  219. package/docs/coverage.json +63 -24
  220. package/docs/dump.json +18965 -16204
  221. package/docs/file/src/GenericFinder.js.html +10 -1
  222. package/docs/file/src/InternalOpenGateAPI.js.html +78 -3
  223. package/docs/file/src/ProvisionGenericFinder.js.html +10 -1
  224. package/docs/file/src/alarms/AlarmActions.js.html +10 -1
  225. package/docs/file/src/alarms/actions/Alarm.js.html +10 -1
  226. package/docs/file/src/alarms/actions/AlarmActionBuilder.js.html +10 -1
  227. package/docs/file/src/alarms/actions/AlarmAttendBuilder.js.html +10 -1
  228. package/docs/file/src/alarms/actions/AlarmCloseBuilder.js.html +10 -1
  229. package/docs/file/src/areas/AreaFinder.js.html +10 -1
  230. package/docs/file/src/areas/Areas.js.html +10 -1
  231. package/docs/file/src/areas/TYPE_ENUM.js.html +10 -1
  232. package/docs/file/src/bulk/BulkExecutionFinder.js.html +355 -0
  233. package/docs/file/src/bulk/BulkFinder.js.html +10 -1
  234. package/docs/file/src/bundles/ACTION_ENUM.js.html +10 -1
  235. package/docs/file/src/bundles/BundleFinder.js.html +10 -1
  236. package/docs/file/src/bundles/Bundles.js.html +742 -0
  237. package/docs/file/src/bundles/deployment/DeploymentElement.js.html +10 -1
  238. package/docs/file/src/bundles/deployment/MODE_VALIDATORS_ENUM.js.html +10 -1
  239. package/docs/file/src/bundles/deployment/OPERATION_ENUM.js.html +10 -1
  240. package/docs/file/src/bundles/deployment/OPTION_ENUM.js.html +10 -1
  241. package/docs/file/src/bundles/deployment/TYPE_ENUM.js.html +10 -1
  242. package/docs/file/src/bundles/deployment/TYPE_VALIDATORS_ENUM.js.html +10 -1
  243. package/docs/file/src/channels/ChannelFinder.js.html +10 -1
  244. package/docs/file/src/channels/Channels.js.html +10 -1
  245. package/docs/file/src/collection/devices/DeviceMessage.js.html +10 -1
  246. package/docs/file/src/collection/devices/collect/CommsModuleMessage.js.html +10 -1
  247. package/docs/file/src/collection/devices/collect/Datapoint.js.html +10 -1
  248. package/docs/file/src/collection/devices/collect/Datastreams.js.html +10 -1
  249. package/docs/file/src/collection/devices/collect/Event.js.html +10 -1
  250. package/docs/file/src/collection/devices/collect/Hardware.js.html +10 -1
  251. package/docs/file/src/collection/devices/collect/Location.js.html +10 -1
  252. package/docs/file/src/collection/devices/collect/Mobile.js.html +10 -1
  253. package/docs/file/src/collection/devices/collect/PowerSupply.js.html +10 -1
  254. package/docs/file/src/collection/devices/collect/Software.js.html +10 -1
  255. package/docs/file/src/collection/devices/collect/Storage.js.html +10 -1
  256. package/docs/file/src/collection/devices/collect/Subscriber.js.html +10 -1
  257. package/docs/file/src/collection/devices/collect/Subscription.js.html +10 -1
  258. package/docs/file/src/collection/devices/collect/Temperature.js.html +10 -1
  259. package/docs/file/src/collection/devices/collect/Usage.js.html +10 -1
  260. package/docs/file/src/collection/devices/collect/enum/ADDRESS_TYPE_ENUM.js.html +10 -1
  261. package/docs/file/src/collection/devices/collect/enum/ANTENNA_STATUS_ENUM.js.html +10 -1
  262. package/docs/file/src/collection/devices/collect/enum/BATTERY_CHARGE_LEVEL_STATUS_ENUM.js.html +10 -1
  263. package/docs/file/src/collection/devices/collect/enum/BATTERY_CHARGE_STATUS_ENUM.js.html +10 -1
  264. package/docs/file/src/collection/devices/collect/enum/LEVEL_TREND_ENUM.js.html +10 -1
  265. package/docs/file/src/collection/devices/collect/enum/POWER_SUPPLY_SOURCE_ENUM.js.html +10 -1
  266. package/docs/file/src/collection/devices/collect/enum/SOFTWARE_TYPE_ENUM.js.html +10 -1
  267. package/docs/file/src/collection/devices/collect/enum/TEMPERATURE_STATUS_ENUM.js.html +10 -1
  268. package/docs/file/src/domains/Domains.js.html +10 -1
  269. package/docs/file/src/domains/DomainsFinder.js.html +10 -1
  270. package/docs/file/src/entities/DeviceFinder.js.html +10 -1
  271. package/docs/file/src/entities/EntityFinder.js.html +10 -1
  272. package/docs/file/src/entities/SubscribersFinder.js.html +10 -1
  273. package/docs/file/src/entities/SubscriptionsFinder.js.html +10 -1
  274. package/docs/file/src/entities/TicketFinder.js.html +10 -1
  275. package/docs/file/src/iot/catalog/Category.js.html +10 -1
  276. package/docs/file/src/iot/catalog/Datastream.js.html +10 -1
  277. package/docs/file/src/iot/catalog/Qrating.js.html +10 -1
  278. package/docs/file/src/iot/datamodels/Datamodels.js.html +10 -1
  279. package/docs/file/src/iot/datamodels/DatamodelsFinder.js.html +10 -1
  280. package/docs/file/src/iot/datamodels/DatamodelsHelper.js.html +10 -1
  281. package/docs/file/src/operations/OperationActions.js.html +10 -1
  282. package/docs/file/src/operations/OperationFinder.js.html +10 -1
  283. package/docs/file/src/operations/Operations.js.html +10 -1
  284. package/docs/file/src/operations/PeriodicityActions.js.html +10 -1
  285. package/docs/file/src/operations/catalog/AppendEntitiesBy.js.html +10 -1
  286. package/docs/file/src/operations/catalog/BaseOperationBuilder.js.html +10 -1
  287. package/docs/file/src/operations/catalog/Operation.js.html +10 -1
  288. package/docs/file/src/operations/catalog/parameters/BaseParameterBuilderWithParent.js.html +10 -1
  289. package/docs/file/src/operations/catalog/parameters/ParameterBuilderFactory.js.html +10 -1
  290. package/docs/file/src/operations/catalog/period/DAYS_ENUM.js.html +10 -1
  291. package/docs/file/src/operations/catalog/period/ExecuteEachBuilder.js.html +10 -1
  292. package/docs/file/src/operations/catalog/period/ExecuteEveryBuilder.js.html +10 -1
  293. package/docs/file/src/operations/catalog/period/MONTHS_ENUM.js.html +10 -1
  294. package/docs/file/src/operations/catalog/period/PeriodicityUpdateBuilder.js.html +10 -1
  295. package/docs/file/src/operations/catalog/period/pattern/ByGeneric.js.html +10 -1
  296. package/docs/file/src/operations/catalog/period/pattern/ByMonth.js.html +10 -1
  297. package/docs/file/src/operations/catalog/period/pattern/ByWeek.js.html +10 -1
  298. package/docs/file/src/operations/catalog/period/pattern/ByYear.js.html +10 -1
  299. package/docs/file/src/organizations/OrganizationFinder.js.html +10 -1
  300. package/docs/file/src/organizations/Organizations.js.html +10 -1
  301. package/docs/file/src/provision/BaseProvision.js.html +10 -1
  302. package/docs/file/src/provision/bulk/BulkExecutionBuilder.js.html +393 -0
  303. package/docs/file/src/provision/entities/AssetBuilder.js.html +10 -1
  304. package/docs/file/src/provision/entities/BulkBuilder.js.html +10 -1
  305. package/docs/file/src/provision/entities/ComplexBuilder.js.html +10 -1
  306. package/docs/file/src/provision/entities/CsvBulkBuilder.js.html +10 -1
  307. package/docs/file/src/provision/entities/DeviceBuilder.js.html +10 -1
  308. package/docs/file/src/provision/entities/EntityBuilder.js.html +10 -1
  309. package/docs/file/src/provision/entities/JsonBulkBuilder.js.html +10 -1
  310. package/docs/file/src/provision/entities/JsonFlattenedBulkBuilder.js.html +10 -1
  311. package/docs/file/src/provision/entities/SimpleBuilder.js.html +10 -1
  312. package/docs/file/src/provision/entities/SubscriberBuilder.js.html +10 -1
  313. package/docs/file/src/provision/entities/SubscriptionBuilder.js.html +10 -1
  314. package/docs/file/src/provision/entities/TicketBuilder.js.html +10 -1
  315. package/docs/file/src/provisionProcessors/provisionProcessors.js.html +349 -0
  316. package/docs/file/src/provisionProcessors/provisionProcessorsFinder.js.html +302 -0
  317. package/docs/file/src/rulesConfiguration/RuleConfigurations.js.html +10 -1
  318. package/docs/file/src/rulesConfiguration/RuleConfigurationsActions.js.html +10 -1
  319. package/docs/file/src/rulesConfiguration/RuleConfigurationsCatalog.js.html +10 -1
  320. package/docs/file/src/rulesConfiguration/RuleConfigurationsFinder.js.html +10 -1
  321. package/docs/file/src/rulesConfiguration/_RuleCondition.js.html +10 -1
  322. package/docs/file/src/rulesConfiguration/_RuleNotification.js.html +10 -1
  323. package/docs/file/src/searching/AssetSearch.js.html +11 -2
  324. package/docs/file/src/searching/BaseSearch.js.html +11 -2
  325. package/docs/file/src/searching/DeviceSearch.js.html +11 -2
  326. package/docs/file/src/searching/EntitySearch.js.html +10 -1
  327. package/docs/file/src/searching/FilterBuilder.js.html +10 -1
  328. package/docs/file/src/searching/QuickSearch.js.html +10 -1
  329. package/docs/file/src/searching/Search.js.html +11 -2
  330. package/docs/file/src/searching/SelectBuilder.js.html +10 -1
  331. package/docs/file/src/searching/StaticSearch.js.html +10 -1
  332. package/docs/file/src/searching/WPSearch.js.html +294 -0
  333. package/docs/file/src/searching/builder/AdministrativeStateSearchBuilder.js.html +10 -1
  334. package/docs/file/src/searching/builder/AlarmsSearchBuilder.js.html +10 -1
  335. package/docs/file/src/searching/builder/AllowedResourceTypeSearchBuilder.js.html +10 -1
  336. package/docs/file/src/searching/builder/AreasSearchBuilder.js.html +10 -1
  337. package/docs/file/src/searching/builder/AssetsSearchBuilder.js.html +10 -1
  338. package/docs/file/src/searching/builder/BasicTypesSearchBuilder.js.html +10 -1
  339. package/docs/file/src/searching/builder/BulkExecutionSearchBuilder.js.html +300 -0
  340. package/docs/file/src/searching/builder/BulkSearchBuilder.js.html +10 -1
  341. package/docs/file/src/searching/builder/BundlesSearchBuilder.js.html +10 -1
  342. package/docs/file/src/searching/builder/CertificatesSearchBuilder.js.html +10 -1
  343. package/docs/file/src/searching/builder/ChannelsSearchBuilder.js.html +10 -1
  344. package/docs/file/src/searching/builder/CommunicationsModuleTypeSearchBuilder.js.html +10 -1
  345. package/docs/file/src/searching/builder/CountryCodesSearchBuilder.js.html +10 -1
  346. package/docs/file/src/searching/builder/DatamodelsSearchBuilder.js.html +10 -1
  347. package/docs/file/src/searching/builder/DatapointsSearchBuilder.js.html +10 -1
  348. package/docs/file/src/searching/builder/DatasetEntitiesSearchBuilder.js.html +10 -1
  349. package/docs/file/src/searching/builder/DatasetsCatalogSearchBuilder.js.html +10 -1
  350. package/docs/file/src/searching/builder/DatastreamsSearchBuilder.js.html +10 -1
  351. package/docs/file/src/searching/builder/DevicesSearchBuilder.js.html +10 -1
  352. package/docs/file/src/searching/builder/DomainsSearchBuilder.js.html +10 -1
  353. package/docs/file/src/searching/builder/EntitiesSearchBuilder.js.html +10 -1
  354. package/docs/file/src/searching/builder/ExecutionsSearchBuilder.js.html +10 -1
  355. package/docs/file/src/searching/builder/FeedsSearchBuilder.js.html +10 -1
  356. package/docs/file/src/searching/builder/FieldsDefinitionSearchBuilder.js.html +10 -1
  357. package/docs/file/src/searching/builder/FlattenedSearchBuilder.js.html +10 -1
  358. package/docs/file/src/searching/builder/HardwaresSearchBuilder.js.html +10 -1
  359. package/docs/file/src/searching/builder/IoTDatastreamAccessSearchBuilder.js.html +10 -1
  360. package/docs/file/src/searching/builder/IoTDatastreamPeriodSearchBuilder.js.html +10 -1
  361. package/docs/file/src/searching/builder/IoTDatastreamStoragePeriodSearchBuilder.js.html +10 -1
  362. package/docs/file/src/searching/builder/MobilePhoneProviderSearchBuilder.js.html +10 -1
  363. package/docs/file/src/searching/builder/OperationalStatusSearchBuilder.js.html +10 -1
  364. package/docs/file/src/searching/builder/OperationsSearchBuilder.js.html +10 -1
  365. package/docs/file/src/searching/builder/OrganizationsSearchBuilder.js.html +10 -1
  366. package/docs/file/src/searching/builder/PlansSearchBuilder.js.html +10 -1
  367. package/docs/file/src/searching/builder/PreFilteredSearchBuilder.js.html +10 -1
  368. package/docs/file/src/searching/builder/RawSearchBuilder.js.html +10 -1
  369. package/docs/file/src/searching/builder/ResourceTypeSearchBuilder.js.html +10 -1
  370. package/docs/file/src/searching/builder/RuleConfigurationSeveritySearchBuilder.js.html +10 -1
  371. package/docs/file/src/searching/builder/RuleModeSearchBuilder.js.html +10 -1
  372. package/docs/file/src/searching/builder/RuleTypeSearchBuilder.js.html +10 -1
  373. package/docs/file/src/searching/builder/RulesSearchBuilder.js.html +10 -1
  374. package/docs/file/src/searching/builder/SearchBuilder.js.html +10 -1
  375. package/docs/file/src/searching/builder/SearchWithSummaryBuilder.js.html +10 -1
  376. package/docs/file/src/searching/builder/ServiceGroupSearchBuilder.js.html +10 -1
  377. package/docs/file/src/searching/builder/SoftwaresSearchBuilder.js.html +10 -1
  378. package/docs/file/src/searching/builder/SubscribersSearchBuilder.js.html +10 -1
  379. package/docs/file/src/searching/builder/SubscriptionsSearchBuilder.js.html +10 -1
  380. package/docs/file/src/searching/builder/TasksSearchBuilder.js.html +10 -1
  381. package/docs/file/src/searching/builder/TicketPrioritySearchBuilder.js.html +10 -1
  382. package/docs/file/src/searching/builder/TicketSeveritySearchBuilder.js.html +10 -1
  383. package/docs/file/src/searching/builder/TicketStatusSearchBuilder.js.html +10 -1
  384. package/docs/file/src/searching/builder/TicketsSearchBuilder.js.html +10 -1
  385. package/docs/file/src/searching/builder/TimezoneSearchBuilder.js.html +10 -1
  386. package/docs/file/src/searching/builder/UserLanguagesSearchBuilder.js.html +10 -1
  387. package/docs/file/src/searching/builder/UserProfilesSearchBuilder.js.html +10 -1
  388. package/docs/file/src/searching/builder/UsersSearchBuilder.js.html +10 -1
  389. package/docs/file/src/searching/builder/WorkgroupsSearchBuilder.js.html +10 -1
  390. package/docs/file/src/searching/error/SearchBuilderError.js.html +10 -1
  391. package/docs/file/src/security/ADMINISTRATIVE_STATE_ENUM.js.html +10 -1
  392. package/docs/file/src/security/CertificateFinder.js.html +10 -1
  393. package/docs/file/src/security/Certificates.js.html +10 -1
  394. package/docs/file/src/security/MIME_TYPES_ENUM.js.html +10 -1
  395. package/docs/file/src/security/Security.js.html +10 -1
  396. package/docs/file/src/security/USAGES_ENUM.js.html +10 -1
  397. package/docs/file/src/users/UserFinder.js.html +10 -1
  398. package/docs/file/src/users/Users.js.html +10 -1
  399. package/docs/file/src/util/DATE_FORMAT.js.html +10 -1
  400. package/docs/file/src/util/Expression.js.html +10 -1
  401. package/docs/file/src/util/NorthAmpliaREST.js.html +64 -32
  402. package/docs/file/src/util/SelectElement.js.html +10 -1
  403. package/docs/file/src/util/SouthAmpliaREST.js.html +10 -1
  404. package/docs/file/src/util/formats/check_types.js.html +17 -3
  405. package/docs/file/src/util/searchingFields/FieldFinder.js.html +12 -2
  406. package/docs/file/src/util/searchingFields/IotFields.js.html +28 -3
  407. package/docs/file/src/util/searchingFields/source-precompiled/Fields.js.html +10 -1
  408. package/docs/file/src/workgroups/WorkgroupFinder.js.html +10 -1
  409. package/docs/file/src/workgroups/WorkgroupRelations.js.html +10 -1
  410. package/docs/file/src/workgroups/WorkgroupRelationsFinder.js.html +10 -1
  411. package/docs/file/src/workgroups/Workgroups.js.html +10 -1
  412. package/docs/identifiers.html +263 -4
  413. package/docs/index.html +10 -1
  414. package/docs/manual/index.html +253 -3
  415. package/docs/package.json +1 -1
  416. package/docs/script/search_index.js +357 -27
  417. package/docs/source.html +270 -203
  418. package/docs/test-file/client/autogeneratedFields/fields.spec.js.html +10 -1
  419. package/docs/test-file/client/bundles/bundles.spec.js.html +10 -1
  420. package/docs/test-file/client/collection/iot.spec.js.html +10 -1
  421. package/docs/test-file/client/device/device.spec.js.html +10 -1
  422. package/docs/test-file/client/provision/devices.provision.spec.js.html +10 -1
  423. package/docs/test-file/client/searching/FilterBuilder.spec.js.html +10 -1
  424. package/docs/test-file/client/searching/datapoints.search.spec.js.html +10 -1
  425. package/docs/test-file/client/searching/module.searching.spec.js.html +10 -1
  426. package/docs/test-file/client/searching/quicksearch.spec.js.html +10 -1
  427. package/docs/test-file/client/searching/rawsearch.spec.js.html +10 -1
  428. package/docs/test-file/client/searching/search.spec.js.html +10 -1
  429. package/docs/test-file/client/security/certificates.spec.js.html +10 -1
  430. package/docs/test-file/client/users/find.spec.js.html +10 -1
  431. package/docs/test-file/client/users/user.spec.js.html +10 -1
  432. package/docs/test.html +10 -1
  433. package/docs/variable/index.html +168 -19
  434. package/features/features/provision/bulk/execute_bulk.feature +60 -0
  435. package/features/features/provision/bulk/find_bulk_execution.feature +93 -0
  436. package/features/features/provision/processors/create_delete_processors.feature +49 -0
  437. package/features/features/provision/processors/find_provision_processors.feature +59 -0
  438. package/features/features/provision/processors/update_provision_processors.feature +32 -0
  439. package/features/features/searching/bulk/searching_bulk_executions.feature +68 -0
  440. package/features/step_definitions/file_test/bulk_execution_simple.xls +0 -0
  441. package/features/step_definitions/given_step_definitions.js +2 -2
  442. package/features/step_definitions/given_step_definitions_using_model.js +58 -12
  443. package/features/step_definitions/then_step_definitions.js +1 -0
  444. package/features/step_definitions/then_step_definitions_using_model.js +12 -0
  445. package/features/step_definitions/when_step_definitions.js +49 -5
  446. package/features/step_definitions/when_step_definitions_using_model.js +1 -0
  447. package/features/support/create_provision_model.js +7 -1
  448. package/features/support/delete_provision_model.js +3 -0
  449. package/features/support/find_model.js +10 -1
  450. package/features/support/utils_model.js +15 -0
  451. package/features/support/world.js +2 -2
  452. package/opengate-api-bower.js +2 -1
  453. package/opengate-api-npm.js +2 -1
  454. package/package.json +1 -1
  455. package/scripts/execute_tests.js +2 -2
  456. package/scripts/release_version.js +8 -8
  457. package/src/InternalOpenGateAPI.js +68 -2
  458. package/src/bulk/BulkExecutionFinder.js +95 -0
  459. package/src/bundles/Bundles.js +4 -12
  460. package/src/provision/bulk/BulkExecutionBuilder.js +133 -0
  461. package/src/provisionProcessors/provisionProcessors.js +89 -0
  462. package/src/provisionProcessors/provisionProcessorsFinder.js +42 -0
  463. package/src/searching/AssetSearch.js +1 -1
  464. package/src/searching/BaseSearch.js +1 -1
  465. package/src/searching/DeviceSearch.js +1 -1
  466. package/src/searching/Search.js +1 -1
  467. package/src/searching/WPSearch.js +34 -0
  468. package/src/searching/builder/BulkExecutionSearchBuilder.js +40 -0
  469. package/src/util/NorthAmpliaREST.js +54 -31
  470. package/src/util/formats/check_types.js +7 -2
  471. package/src/util/searchingFields/FieldFinder.js +2 -1
  472. package/src/util/searchingFields/IotFields.js +18 -2
  473. package/dist/opengate-api-bower-10.3.0.js.map +0 -1
  474. package/dist/opengate-api-bower-10.3.0.min.js.map +0 -1
@@ -0,0 +1,32 @@
1
+ # features/provision/datasets/update_provision_processors.feature
2
+ @provision
3
+ @processors
4
+ @update_processors
5
+ @prueba23
6
+
7
+
8
+ Feature: Delete and Create a processors
9
+ As a user of JsApi
10
+ I want to create a processors
11
+ So, I can create a new processors with the parametres that I have been defined
12
+
13
+ Background:
14
+ Given an apikey user by "2829be88-a7d7-4f51-aefc-3cc2385b6506"
15
+
16
+ Scenario: Update processors
17
+ And an ogapi "provision processors builder" util
18
+ And I want to update a "provisionProcessors"
19
+ And the "organization" "provisionProcessors"
20
+ And the "name" "mockProvisionProcessors"
21
+ And the "identifier" "91010e20-1a55-4319-990d-c3752b501065"
22
+ And the "configurationParams" with...
23
+ | param |
24
+ | {"spreadsheet": {"sheetName": "PARA", "headerRow": 2,"resultColumnName": "ODM_Result" }} |
25
+ And the "scriptProcessor" with...
26
+ | param |
27
+ | {"script": "function normalizeRawObject(rawObject) { try { var normalizedObject = {}; return normalizedObject; } catch (e) { printLog('>> normalizeRawObject(): exception: ' + e); throw e; } } function actionsPlanning(normalizedObject) { try { var actions = []; return actions; } catch (e) { printLog('>> actionsPlanning(): exception: ' + e); throw e; } }"} |
28
+ Then I update it
29
+ And response code should be: 200
30
+ Then the "mockProvisionProcessors" "mockProvisionProcessors2"
31
+ And I update it
32
+ Then response code should be: 200
@@ -0,0 +1,68 @@
1
+ # features/searching/bulk/searching_bulks.feature
2
+ @searching
3
+ @searching_bulks
4
+ @bulk
5
+ @provision_processors
6
+ #@wip
7
+ Feature: Searching bulks
8
+ As a user of JsApi
9
+ I want to search into bulks collection
10
+ So I can add limit to search any user
11
+
12
+ Background:
13
+ Given an apikey user by "require-real-apikey"
14
+
15
+ Scenario: Creating an organization to use in create device
16
+ Given an ogapi "organizations builder" util
17
+ Then I want to create an "organization"
18
+ And the "name" "bulk_execution"
19
+ And the "description" "bulk processors searching"
20
+ And the "country code" "ES"
21
+ And the "lang code" "es"
22
+ And the "time zone" "Europe/Andorra"
23
+ And the "zoom" 10
24
+ And the "location" with 1 and 1
25
+ Then I delete it
26
+ Then I create it
27
+ And response code should be: 201
28
+
29
+ Scenario: I want to create a device with bulk for search
30
+ Given an ogapi "provision processors builder" util
31
+ And I want to create a "provisionProcessors"
32
+ And the "organization" "bulk_execution"
33
+ And the "identifier" "provision_Processor_id_1"
34
+ And the "name" "mockProvisionProcessors"
35
+ And the "configurationParams" with...
36
+ | param |
37
+ | {"spreadsheet": {"sheetName": "Hoja1", "headerRow": 1,"resultColumnName": "ODM_Result" }} |
38
+ And the "scriptProcessor" with...
39
+ | param |
40
+ | { "script": "function normalizeRawObject(rawObject) { try { var normalizedObject = { 'provision.device.identifier': { '_value': { '_current': { 'value': 'hola' } } }, 'provision.administration.organization': { '_value': { '_current': { 'value': 'organization_mc' } } }, 'provision.administration.channel': { '_value': { '_current': { 'value': 'default_channel' } } }, 'provision.administration.serviceGroup': { '_value': { '_current': { 'value': 'emptyServiceGroup' } } } }; return normalizedObject; } catch (e) { printLog('>> normalizeRawObject(): exception: ' + e); throw e; } } function actionsPlanning(normalizedObject) { try { var actions = []; actions.push(CREATE_DEVICE_ACTION(normalizedObject)); return actions; } catch (e) { printLog('>> actionsPlanning(): exception: ' + e); throw e; } }" } |
41
+ Then I create it
42
+ And response code should be: 201
43
+
44
+ Then an ogapi "bulk execution builder" util with "bulk_execution" and responseId
45
+ And I read the file from "/file_test/bulk_execution_simple.xls"
46
+ And I "bulk" it with bulk execution
47
+ Then does not throws an error
48
+ Then I wait 5 seconds
49
+
50
+ Scenario: Execute searching with a invalid start limit
51
+ Given an ogapi "bulk executions search" util
52
+ And the start limit by "null" and size limit by "5"
53
+ When I build it
54
+ And I execute it
55
+ And response code should be: 200
56
+
57
+ Scenario: Execute searching
58
+ Given an ogapi "bulk executions search" util
59
+ And I build it
60
+ And I execute it
61
+ And response code should be: 200
62
+
63
+ Scenario: Deleting an organization
64
+ Given an ogapi "organizations builder" util
65
+ Then I want to delete an "organization"
66
+ And the "name" "bulk_execution"
67
+ Then I delete it
68
+ And response code should be: 200
@@ -666,11 +666,11 @@ Given(/^execute each (\d+) "([^"]*)" with stop date (\d+) "([^"]*)" later than t
666
666
  callback();
667
667
  });
668
668
 
669
- Given(/^I wait (\d+) seconds$/, function (seconds, callback) {
669
+ Given(/^I wait (\d+) seconds$/, {timeout: 60*1000}, function (seconds, callback) {
670
670
  setTimeout(callback, seconds * 1000);
671
671
  });
672
672
 
673
- Given(/^I wait for DONE every (\d+) seconds, maximum (\d+) seconds$/, function (every_seconds, seconds, callback) {
673
+ Given(/^I wait for DONE every (\d+) seconds, maximum (\d+) seconds$/, {timeout: 60*1000}, function (every_seconds, seconds, callback) {
674
674
  var _this = this;
675
675
  assert.isAbove(seconds * 1000, every_seconds * 1000, 'Maximum seconds must be strictly greater than every second');
676
676
  var everyTimeout;
@@ -6,6 +6,9 @@ var assert = require('chai').assert;
6
6
  global.window = new JSDOM().window;
7
7
  global.FormData = window.FormData;
8
8
  global.Blob = window.Blob;
9
+ global.File = window.File;
10
+ global.Uint8Array = window.Uint8Array;
11
+ global.FileReader = window.FileReader
9
12
 
10
13
  Given(/^an ogapi "([^"]*)" util$/, function (utilName, callback) {
11
14
  this.util = this.utilsModel.util(utilName, this.ogapi);
@@ -26,6 +29,20 @@ Given(/^an ogapi "([^"]*)" util with responseId$/, function (utilName, callback)
26
29
  callback();
27
30
  });
28
31
 
32
+ Given(/^an ogapi "([^"]*)" util with "([^"]*)" and responseId$/, function (utilName, param1, callback) {
33
+ var id;
34
+
35
+ if (this.responseData.location)
36
+ id = this.responseData.location.substring(this.responseData.location.lastIndexOf("/") + 1);
37
+ else if (this.responseData.data)
38
+ id = this.responseData.data.id;
39
+ else if (this.responseData[0])
40
+ id = this.responseData[0].id;
41
+ //console.log("ID_: " + JSON.stringify(id));
42
+ this.util = this.utilsModel.util(utilName, this.ogapi, param1, id);
43
+ callback();
44
+ });
45
+
29
46
  Given(/^an ogapi "([^"]*)" util with...$/, function (utilName, table, callback) {
30
47
  this.error = undefined;
31
48
  try {
@@ -411,7 +428,7 @@ Given(/^the "([^"]*)" "([^"]*)" and "([^"]*)"$/, function (setterName, setterVal
411
428
  } catch (err) {
412
429
  this.error = err;
413
430
  }
414
-
431
+
415
432
  callback();
416
433
  });
417
434
 
@@ -513,7 +530,6 @@ Given(/^I read the file from "([^"]*)"$/, function (fileName, callback) {
513
530
  // Write code here that turns the phrase above into concrete actions
514
531
  var file = fs.readFileSync(__dirname + fileName, 'utf8');
515
532
 
516
- //var file = fs.createReadStream(__dirname + fileName);
517
533
  if (file) {
518
534
  this.fileData = file;
519
535
  this.filePath = __dirname + fileName;
@@ -524,6 +540,37 @@ Given(/^I read the file from "([^"]*)"$/, function (fileName, callback) {
524
540
 
525
541
  });
526
542
 
543
+
544
+ Given(/^I download and read the file from "([^"]*)"$/, function (fileName, callback) {
545
+ // Write code here that turns the phrase above into concrete actions
546
+ console.log(this.responseData.data.body)
547
+ if (this.responseData.data) {
548
+ let writeStream = fs.createWriteStream(__dirname + fileName);
549
+ writeStream.write(this.responseData.data.body)
550
+ writeStream.on('finish', () => {
551
+ console.log('wrote all data to file');
552
+ // for client-side
553
+ /*var bytes = this.responseData.data.body.buffer
554
+ var blob = new Blob([bytes], {type: "application/vnd.ms-excel"})
555
+ var fileReader = new FileReader()
556
+ fileReader.onload = function(event){
557
+ console.log(JSON.stringify(fileReader.result));
558
+ };
559
+ fileReader.readAsText(blob)*/
560
+ var file = fs.readFileSync(__dirname + fileName, 'utf8');
561
+ if (file) {
562
+ callback();
563
+ } else {
564
+ callback(false, "not found");
565
+ }
566
+ });
567
+ writeStream.end();
568
+
569
+ }
570
+
571
+
572
+ });
573
+
527
574
  Given(/^an apikey user by "([^"]*)"$/, function (apikey, callback) {
528
575
  var config = {
529
576
  'apiKey': this.apikey || apikey,
@@ -545,13 +592,12 @@ Given(/^I want to search into "([^"]*)"$/, function (setterName, callback) {
545
592
  callback();
546
593
  });
547
594
 
548
- this.Given(/^I want to search into "([^"]*)" and throw error 'is not a function'$/, function (setterName, callback) {
549
- try {
550
- var method = this.model_match(this.currentModel).setters(this.currentEntity)[setterName];
551
- this.util[method]();
552
- callback(false, "this.util[method] is a function" );
553
- } catch (err) {
554
- callback();
555
- }
556
- });
557
- };
595
+ Given(/^I want to search into "([^"]*)" and throw error 'is not a function'$/, function (setterName, callback) {
596
+ try {
597
+ var method = this.model_match(this.currentModel).setters(this.currentEntity)[setterName];
598
+ this.util[method]();
599
+ callback(false, "this.util[method] is a function");
600
+ } catch (err) {
601
+ callback();
602
+ }
603
+ });
@@ -26,6 +26,7 @@ Then(/^response code should be: (\d+)$/, function (statusCode, callback) {
26
26
  var data;
27
27
  data = this.responseData ? this.responseData.statusCode : this.data;
28
28
  var statusCodeResp = data;
29
+ console.log('data!!', data)
29
30
  if (parseInt(statusCode) !== statusCodeResp && this.error) {
30
31
  throw new Error(Object.keys(this.error).length > 0 ? JSON.stringify(this.error) : this.error);
31
32
  }
@@ -19,6 +19,18 @@ Then(/^I can see into the result an "([^"]*)" as "([^"]*)"$/, function (getterNa
19
19
  callback();
20
20
  });
21
21
 
22
+ Then(/^the content of json response must be:$/, function (contentTmp, callback) {
23
+ var data = this.responseData.data;
24
+ this.expect(contentTmp).to.be.equal(JSON.stringify(data));
25
+ callback();
26
+ });
27
+
28
+ Then(/^the content of response must be:$/, function (tmpFile, contentTmp, callback) {
29
+ var data = this.responseData.data;
30
+ this.expect(contentTmp).to.be.equal(data);
31
+ callback();
32
+ });
33
+
22
34
  Then(/^the content of file "([^"]*)" must be:$/, function (tmpFile, contentTmp, callback) {
23
35
  var data = this.responseData.data;
24
36
  this.expect(contentTmp).to.be.equal(data.text);
@@ -544,24 +544,28 @@ When(/^I update periodicity$/, function () {
544
544
  }
545
545
  });
546
546
 
547
- When(/^I create it$/, function () {
547
+ When(/^I create it$/, {timeout: 60 * 1000}, function () {
548
548
 
549
549
  var _this = this;
550
550
  _this.error = undefined;
551
551
  _this.responseData = undefined;
552
+ console.log('responseData1', _this.responseData)
552
553
 
553
554
  function catchResponse (data) {
554
- //console.log("OK");
555
- //console.log("data: " + JSON.stringify(data));
555
+ console.log("OK");
556
+ console.log("data: " + JSON.stringify(data));
556
557
  _this.responseData = data;
557
558
  _this.location = _this.responseData.location;
558
559
  _this.error = undefined;
560
+ console.log('responseData2', _this.responseData)
561
+
559
562
  }
560
563
 
561
564
  function catchErrorResponse (err) {
562
- //console.log("NOK");
563
- //console.log("ERROR: " + JSON.stringify(err));
565
+ console.log("NOK");
566
+ console.log("ERROR: " + JSON.stringify(err));
564
567
  _this.responseData = err;
568
+ console.log('responseData3', _this.responseData)
565
569
  if (err.errors) {
566
570
  _this.error = err.errors;
567
571
  } else if (err.data.errors) {
@@ -624,6 +628,46 @@ When(/^I "([^"]*)" it with bulk$/, function (action) {
624
628
  }
625
629
  });
626
630
 
631
+ When(/^I "([^"]*)" it with bulk execution$/, {timeout: 60*1000}, function (action) {
632
+ var _this = this;
633
+ _this.error = undefined;
634
+ _this.responseData = undefined;
635
+
636
+ function catchResponse (data) {
637
+ //console.log("OK");
638
+ //console.log("data: " + JSON.stringify(data));
639
+ //console.log("_this.responseData: ", _this.responseData);
640
+ _this.responseData = data;
641
+ _this.location = _this.responseData.location;
642
+ _this.error = this.error = undefined;
643
+ }
644
+
645
+ function catchErrorResponse (err) {
646
+ //console.log(err)
647
+ //console.log("NOK");
648
+ //console.log("ERROR: " + JSON.stringify(err));
649
+ _this.responseData = err;
650
+ if (err.errors) {
651
+ _this.error = err.errors;
652
+ } else if (err.data.errors) {
653
+ _this.error = err.data.errors;
654
+ } else {
655
+ _this.error = err;
656
+ }
657
+
658
+ }
659
+
660
+ try {
661
+ if (_this.fileData) {
662
+ return _this.util[action](_this.filePath, 'xls').then(catchResponse).catch(catchErrorResponse);
663
+ }
664
+ } catch (err) {
665
+ this.error = err;
666
+ console.log(err);
667
+ return;
668
+ }
669
+ });
670
+
627
671
  When(/^I "([^"]*)" it with bulk and response with format csv$/, function (action) {
628
672
  var _this = this;
629
673
  _this.error = undefined;
@@ -59,6 +59,7 @@ When(/^I try to find by...$/, function (table) {
59
59
  this.error = "No params found";
60
60
  return;
61
61
  } catch (err) {
62
+ console.log('ERROR: ', err)
62
63
  this.error = err;
63
64
  return;
64
65
  }
@@ -371,8 +371,14 @@ module.exports = {
371
371
  'description': 'withDescription',
372
372
  'geometry': 'withGeometry',
373
373
  'entities': 'withEntities'
374
+ },
375
+ 'provisionProcessors':{
376
+ 'identifier': 'withIdentifier',
377
+ 'name':'withName',
378
+ 'organization': 'withOrganization',
379
+ 'configurationParams': 'withConfigurationParams',
380
+ 'scriptProcessor': 'withScriptProcessor'
374
381
  }
375
-
376
382
  } [setter];
377
383
  },
378
384
  getter_response: function (getter) {
@@ -21,6 +21,9 @@ module.exports = {
21
21
  },
22
22
  'domain': {
23
23
  'name': 'withName'
24
+ },
25
+ 'provisionProcessors':{
26
+ 'identifier': 'withIdentifier'
24
27
  }
25
28
  }[setter];
26
29
  },
@@ -5,6 +5,10 @@ module.exports = {
5
5
  'bundle': {
6
6
  'nameAndversion': 'findByNameAndVersion'
7
7
  },
8
+ 'bulk execution': {
9
+ 'organizationAndid': 'findByOrganizationAndId',
10
+ 'organizationAndidAndaccept': 'findByOrganizationAndId'
11
+ },
8
12
  'communications module': {
9
13
  'organizationAndid': 'findByOrganizationAndId'
10
14
  },
@@ -67,8 +71,13 @@ module.exports = {
67
71
  'area': {
68
72
  'organizationAndidentifier': 'findByOrganizationAndIdentifier',
69
73
  'organization': 'findByOrganization'
70
- }
74
+ },
75
+ 'provisionProcessors':{
76
+ 'organizationId': 'findByOrganization',
77
+ 'organizationIdAndProvisionProcessorId':'findByOrganizationAndProvisionProcessorId',
78
+ },
71
79
  } [setter];
80
+ ///home/manuel/Escritorio/proyectos/opengateJs/opengate-js/features/support/find_model.js
72
81
  },
73
82
  getter_response: function (getter) {
74
83
  return {
@@ -17,6 +17,9 @@ module.exports = {
17
17
  "bundle finder": function(ogapi) {
18
18
  return ogapi.newBundleFinder();
19
19
  },
20
+ "bulk execution finder": function(ogapi) {
21
+ return ogapi.newBulkExecutionFinder();
22
+ },
20
23
  "certificates builder": function(ogapi) {
21
24
  return ogapi.certificatesBuilder();
22
25
  },
@@ -107,6 +110,12 @@ module.exports = {
107
110
  "organizations builder": function(ogapi) {
108
111
  return ogapi.organizationsBuilder();
109
112
  },
113
+ "provision processors builder": function(ogapi) {
114
+ return ogapi.provisionProcessorsBuilder();
115
+ },
116
+ "provision processors finder": function(ogapi) {
117
+ return ogapi.newProvisionProcessorsFinder();
118
+ },
110
119
  "softwares search": function(ogapi) {
111
120
  return ogapi.softwaresSearchBuilder();
112
121
  },
@@ -266,6 +275,9 @@ module.exports = {
266
275
  "csv bulk builder": function(ogapi, param1, param2) {
267
276
  return ogapi.entityBuilder.newCsvBulkBuilder(param1, param2);
268
277
  },
278
+ "bulk execution builder": function(ogapi, param1, param2){
279
+ return ogapi.bulkExecutionBuilder(param1, param2);
280
+ },
269
281
  "json bulk builder": function(ogapi, param1, param2) {
270
282
  return ogapi.entityBuilder.newJsonBulkBuilder(param1, param2);
271
283
  },
@@ -278,6 +290,9 @@ module.exports = {
278
290
  "bulks search": function(ogapi) {
279
291
  return ogapi.bulkSearchBuilder();
280
292
  },
293
+ "bulk executions search": function(ogapi) {
294
+ return ogapi.bulkExecutionSearchBuilder();
295
+ },
281
296
  "asset builder": function(ogapi, param1) {
282
297
  return ogapi.entityBuilder.assetsBuilder(param1);
283
298
  },
@@ -13,8 +13,8 @@ findDeleteModel = require('./delete_provision_model');
13
13
  searchingModel = require('./searching_model');
14
14
 
15
15
  function World() {
16
- this.test_url_north = process.env.API_NORTH_INTERNAL || 'API_NORTH';
17
- this.test_url_south = process.env.API_SOUTH_INTERNAL || 'API_SOUTH';
16
+ this.test_url_north = process.env.API_NORTH_INTERNAL || 'https://IP:PORT/north/v80';
17
+ this.test_url_south = process.env.API_SOUTH_INTERNAL || 'https://IP:PORT/south/v80';
18
18
  this.apikey = process.env.API_KEY || 'API_KEY';
19
19
  chai.use(chai_as_promised);
20
20
  this.expect = chai.expect;
@@ -8,7 +8,8 @@ export default class OpenGateAPI extends InternalOpenGateAPI {
8
8
  constructor(_options) {
9
9
  super(
10
10
  new NorthAmpliaREST(_options),
11
- new SouthAmpliaREST(_options)
11
+ new SouthAmpliaREST(_options),
12
+ _options
12
13
  );
13
14
  }
14
15
  }
@@ -13,7 +13,8 @@ export default class OpenGateAPI extends InternalOpenGateAPI {
13
13
  }),
14
14
  new SouthAmpliaREST(_options, {
15
15
  'Content-type': "application/json;charset=utf8"
16
- })
16
+ }),
17
+ _options
17
18
  );
18
19
  }
19
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opengate-js",
3
- "version": "10.3.0",
3
+ "version": "10.5.1",
4
4
  "description": "",
5
5
  "main": "dist/opengate-api-npm.js",
6
6
  "repository": {
@@ -8,11 +8,11 @@ var gulp = require('gulp'),
8
8
  cucumberOptionsCatalog = {
9
9
  string: 'tags',
10
10
  default: {
11
- 'tags': 'not @ignore and not @operations and not @searching_select_fields and not @searching_filter_fields'
11
+ 'tags': 'not @ignore and @wip'
12
12
  }
13
13
  };
14
14
  argv.push("--tags");
15
- argv.push("not @ignore and not @operations and not @searching_select_fields and not @searching_filter_fields");
15
+ argv.push("not @ignore and @wip");
16
16
 
17
17
  var cucumberOptions = minimist(argv, cucumberOptionsCatalog);
18
18
 
@@ -40,20 +40,20 @@ gulp.task('build:all', gulp.series('create:release:branch', 'increase:version',
40
40
  // STEP 3
41
41
  gulp.task('commit:increase:version', function() {
42
42
  return gulp.src(['dist', './bower.json', './package.json', './docs', './src/util/searchingFields/source-precompiled/Fields.js'])
43
- .pipe(git.add())
44
- .pipe(git.commit('release ' + versionType() + ' version:' + versionNumber()));
43
+ .pipe(git.add({maxBuffer: Infinity}))
44
+ .pipe(git.commit('release ' + versionType() + ' version:' + versionNumber(), {maxBuffer: Infinity}));
45
45
  });
46
46
  // STEP 3
47
47
 
48
48
  // STEP 4
49
49
  gulp.task('checkout:master:increase', function(cb) {
50
- git.checkout(masterBranch(), function(err) {
50
+ git.checkout(masterBranch(), {maxBuffer: Infinity}, function(err) {
51
51
  cb(err);
52
52
  });
53
53
  });
54
54
 
55
55
  gulp.task('merge:master:increase', function(cb) {
56
- git.merge(temporalBranchRelease(), function(err) {
56
+ git.merge(temporalBranchRelease(), {maxBuffer: Infinity}, function(err) {
57
57
  cb(err);
58
58
  });
59
59
  });
@@ -66,9 +66,9 @@ gulp.task('change:tab_version:increase', function() {
66
66
  gulp.task('prepare_tag:increase', gulp.series('commit:increase:version', 'checkout:master:increase', 'merge:master:increase', 'change:tab_version:increase'));
67
67
 
68
68
  gulp.task('checkout:develop', function(cb) {
69
- git.checkout(developBranch(), function(err) {
69
+ git.checkout(developBranch(), {maxBuffer: Infinity}, function(err) {
70
70
  if (!err) {
71
- git.merge(masterBranch(), function(err) {
71
+ git.merge(masterBranch(), {maxBuffer: Infinity}, function(err) {
72
72
  cb(err);
73
73
  });
74
74
  } else {
@@ -81,9 +81,9 @@ gulp.task('checkout:develop', function(cb) {
81
81
  gulp.task('prepare:develop:increase', gulp.series('build:all', 'prepare_tag:increase', 'checkout:develop'));
82
82
  // STEP 4
83
83
  gulp.task('push:increase:build', function(cb) {
84
- git.push('origin', [masterBranch(), developBranch()], { args: " --follow-tags" }, function(err) {
84
+ git.push('origin', [masterBranch(), developBranch()], { args: " --follow-tags", maxBuffer: Infinity }, function(err) {
85
85
  if (!err) {
86
- git.branch(temporalBranchRelease(), { args: "-D" }, function(err) {
86
+ git.branch(temporalBranchRelease(), { args: "-D", maxBuffer: Infinity }, function(err) {
87
87
  cb(err);
88
88
  });
89
89
  } else {