@c8y/client 1018.487.7 → 1018.496.6

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 (437) hide show
  1. package/NOTICES +1 -1
  2. package/lib/bundles/client.umd.js +36 -5
  3. package/lib/bundles/client.umd.js.map +1 -1
  4. package/lib/bundles/client.umd.min.js +1 -1
  5. package/lib/bundles/client.umd.min.js.map +1 -1
  6. package/lib/cjs/index.d.ts +2 -0
  7. package/lib/cjs/src/Client.d.ts +190 -0
  8. package/lib/cjs/src/alarm/AlarmService.d.ts +98 -0
  9. package/lib/cjs/src/alarm/AlarmStatus.d.ts +9 -0
  10. package/lib/cjs/src/alarm/IAlarm.d.ts +57 -0
  11. package/lib/cjs/src/alarm/index.d.ts +4 -0
  12. package/lib/cjs/src/application/ApplicationAvailability.d.ts +6 -0
  13. package/lib/cjs/src/application/ApplicationBinaryService.d.ts +40 -0
  14. package/lib/cjs/src/application/ApplicationService.d.ts +325 -0
  15. package/lib/cjs/src/application/ApplicationType.d.ts +7 -0
  16. package/lib/cjs/src/application/BillingMode.d.ts +5 -0
  17. package/lib/cjs/src/application/IApplication.d.ts +22 -0
  18. package/lib/cjs/src/application/IApplicationBinary.d.ts +9 -0
  19. package/lib/cjs/src/application/IApplicationInstanceDetails.d.ts +68 -0
  20. package/lib/cjs/src/application/IApplicationReference.d.ts +16 -0
  21. package/lib/cjs/src/application/IApplicationVersion.d.ts +15 -0
  22. package/lib/cjs/src/application/IDeviceRegistrationProvider.d.ts +7 -0
  23. package/lib/cjs/src/application/IManifest.d.ts +34 -0
  24. package/lib/cjs/src/application/IProvider.d.ts +6 -0
  25. package/lib/cjs/src/application/IUploadParamsOverride.d.ts +7 -0
  26. package/lib/cjs/src/application/Isolation.d.ts +5 -0
  27. package/lib/cjs/src/application/index.d.ts +16 -0
  28. package/lib/cjs/src/audit/AuditRecordType.d.ts +19 -0
  29. package/lib/cjs/src/audit/AuditService.d.ts +72 -0
  30. package/lib/cjs/src/audit/ChangeType.d.ts +9 -0
  31. package/lib/cjs/src/audit/IAuditRecord.d.ts +36 -0
  32. package/lib/cjs/src/audit/IChange.d.ts +28 -0
  33. package/lib/cjs/src/audit/index.d.ts +6 -0
  34. package/lib/cjs/src/core/BasicAuth.d.ts +25 -0
  35. package/lib/cjs/src/core/BearerAuth.d.ts +13 -0
  36. package/lib/cjs/src/core/CookieAuth.d.ts +19 -0
  37. package/lib/cjs/src/core/FetchClient.d.ts +18 -0
  38. package/lib/cjs/src/core/IAuthentication.d.ts +23 -0
  39. package/lib/cjs/src/core/ICustomProperties.d.ts +8 -0
  40. package/lib/cjs/src/core/ICustomPropertiesMap.d.ts +5 -0
  41. package/lib/cjs/src/core/IFetchClient.d.ts +10 -0
  42. package/lib/cjs/src/core/IFetchOptions.d.ts +21 -0
  43. package/lib/cjs/src/core/IFetchResponse.d.ts +26 -0
  44. package/lib/cjs/src/core/IIdentified.d.ts +6 -0
  45. package/lib/cjs/src/core/IMicroserviceSubscriptions.d.ts +16 -0
  46. package/lib/cjs/src/core/INamed.d.ts +5 -0
  47. package/lib/cjs/src/core/IResult.d.ts +26 -0
  48. package/lib/cjs/src/core/IResultBase.d.ts +6 -0
  49. package/lib/cjs/src/core/IResultList.d.ts +36 -0
  50. package/lib/cjs/src/core/ISource.d.ts +18 -0
  51. package/lib/cjs/src/core/MicroserviceClientRequestAuth.d.ts +32 -0
  52. package/lib/cjs/src/core/NodeJSCookieAuth.d.ts +11 -0
  53. package/lib/cjs/src/core/Paging.d.ts +63 -0
  54. package/lib/cjs/src/core/QueriesUtil.d.ts +95 -0
  55. package/lib/cjs/src/core/Service.d.ts +45 -0
  56. package/lib/cjs/src/core/Severity.d.ts +11 -0
  57. package/lib/cjs/src/core/index.d.ts +23 -0
  58. package/lib/cjs/src/device-registration/DeviceRegistrationBulkService.d.ts +41 -0
  59. package/lib/cjs/src/device-registration/DeviceRegistrationSecurityMode.d.ts +9 -0
  60. package/lib/cjs/src/device-registration/DeviceRegistrationService.d.ts +199 -0
  61. package/lib/cjs/src/device-registration/DeviceRegistrationStatus.d.ts +10 -0
  62. package/lib/cjs/src/device-registration/IDeviceCredentials.d.ts +23 -0
  63. package/lib/cjs/src/device-registration/IDeviceRegistration.d.ts +76 -0
  64. package/lib/cjs/src/device-registration/IDeviceRegistrationBulkResult.d.ts +27 -0
  65. package/lib/cjs/src/device-registration/index.d.ts +8 -0
  66. package/lib/cjs/src/event/EventBinaryService.d.ts +64 -0
  67. package/lib/cjs/src/event/EventService.d.ts +114 -0
  68. package/lib/cjs/src/event/IEvent.d.ts +39 -0
  69. package/lib/cjs/src/event/IEventBinary.d.ts +26 -0
  70. package/lib/cjs/src/event/index.d.ts +5 -0
  71. package/lib/cjs/src/gettext.d.ts +3 -0
  72. package/lib/cjs/src/identity/IExternalIdentity.d.ts +24 -0
  73. package/lib/cjs/src/identity/IdentityService.d.ts +102 -0
  74. package/lib/cjs/src/identity/index.d.ts +3 -0
  75. package/lib/cjs/src/inventory/IManagedObject.d.ts +88 -0
  76. package/lib/cjs/src/inventory/InventoryBinaryService.d.ts +45 -0
  77. package/lib/cjs/src/inventory/InventoryService.d.ts +526 -0
  78. package/lib/cjs/src/inventory/index.d.ts +4 -0
  79. package/lib/cjs/src/inventory-role/InventoryRoleService.d.ts +105 -0
  80. package/lib/cjs/src/inventory-role/index.d.ts +2 -0
  81. package/lib/cjs/src/measurement/IMeasurement.d.ts +58 -0
  82. package/lib/cjs/src/measurement/ISeries.d.ts +58 -0
  83. package/lib/cjs/src/measurement/ISeriesFilter.d.ts +38 -0
  84. package/lib/cjs/src/measurement/MeasurementService.d.ts +121 -0
  85. package/lib/cjs/src/measurement/MeasurementService.js +1 -1
  86. package/lib/cjs/src/measurement/MeasurementService.js.map +1 -1
  87. package/lib/cjs/src/measurement/index.d.ts +5 -0
  88. package/lib/cjs/src/operation/IOperation.d.ts +24 -0
  89. package/lib/cjs/src/operation/IOperationBulk.d.ts +55 -0
  90. package/lib/cjs/src/operation/IOperationBulkProgress.d.ts +27 -0
  91. package/lib/cjs/src/operation/OperationBulkGeneralStatus.d.ts +14 -0
  92. package/lib/cjs/src/operation/OperationBulkService.d.ts +124 -0
  93. package/lib/cjs/src/operation/OperationBulkStatus.d.ts +10 -0
  94. package/lib/cjs/src/operation/OperationService.d.ts +105 -0
  95. package/lib/cjs/src/operation/OperationStatus.d.ts +10 -0
  96. package/lib/cjs/src/operation/index.d.ts +9 -0
  97. package/lib/cjs/src/public_api.d.ts +25 -0
  98. package/lib/cjs/src/realtime/MetaChannel.d.ts +7 -0
  99. package/lib/cjs/src/realtime/Realtime.d.ts +60 -0
  100. package/lib/cjs/src/realtime/Realtime.js +35 -4
  101. package/lib/cjs/src/realtime/Realtime.js.map +1 -1
  102. package/lib/cjs/src/realtime/index.d.ts +2 -0
  103. package/lib/cjs/src/services.d.ts +24 -0
  104. package/lib/cjs/src/smart-groups/SmartGroupsService.d.ts +203 -0
  105. package/lib/cjs/src/smart-groups/index.d.ts +2 -0
  106. package/lib/cjs/src/smart-rules/IRule.d.ts +20 -0
  107. package/lib/cjs/src/smart-rules/SmartRulesService.d.ts +87 -0
  108. package/lib/cjs/src/smart-rules/index.d.ts +3 -0
  109. package/lib/cjs/src/system-options/ISystemOption.d.ts +19 -0
  110. package/lib/cjs/src/system-options/SystemOptionsService.d.ts +52 -0
  111. package/lib/cjs/src/system-options/index.d.ts +3 -0
  112. package/lib/cjs/src/tenant/ICurrentTenant.d.ts +12 -0
  113. package/lib/cjs/src/tenant/ITenant.d.ts +23 -0
  114. package/lib/cjs/src/tenant/ITenantReference.d.ts +5 -0
  115. package/lib/cjs/src/tenant/ITfaSettings.d.ts +29 -0
  116. package/lib/cjs/src/tenant/TenantService.d.ts +240 -0
  117. package/lib/cjs/src/tenant/TenantStatus.d.ts +5 -0
  118. package/lib/cjs/src/tenant/TfaStrategy.d.ts +10 -0
  119. package/lib/cjs/src/tenant/index.d.ts +8 -0
  120. package/lib/cjs/src/tenant-login-options/ITenantLoginOptions.d.ts +152 -0
  121. package/lib/cjs/src/tenant-login-options/TenantLoginOptionsService.d.ts +170 -0
  122. package/lib/cjs/src/tenant-login-options/index.d.ts +3 -0
  123. package/lib/cjs/src/tenant-options/ITenantOption.d.ts +10 -0
  124. package/lib/cjs/src/tenant-options/ITenantOptionDetailParams.d.ts +11 -0
  125. package/lib/cjs/src/tenant-options/TenantOptionsService.d.ts +144 -0
  126. package/lib/cjs/src/tenant-options/index.d.ts +4 -0
  127. package/lib/cjs/src/tenant-security-options/ITenantSecurityOption.d.ts +8 -0
  128. package/lib/cjs/src/tenant-security-options/TenantSecurityOptionsService.d.ts +35 -0
  129. package/lib/cjs/src/tenant-security-options/index.d.ts +3 -0
  130. package/lib/cjs/src/trusted-certificates/ITrustedCertificate.d.ts +68 -0
  131. package/lib/cjs/src/trusted-certificates/TrustedCertificateService.d.ts +146 -0
  132. package/lib/cjs/src/trusted-certificates/index.d.ts +3 -0
  133. package/lib/cjs/src/user/ICurrentUser.d.ts +35 -0
  134. package/lib/cjs/src/user/IResetPassword.d.ts +12 -0
  135. package/lib/cjs/src/user/ITotp.d.ts +7 -0
  136. package/lib/cjs/src/user/ITotpStatus.d.ts +5 -0
  137. package/lib/cjs/src/user/IUser.d.ts +72 -0
  138. package/lib/cjs/src/user/IUserInventoryRole.d.ts +13 -0
  139. package/lib/cjs/src/user/PasswordStrength.d.ts +6 -0
  140. package/lib/cjs/src/user/UserInventoryRoleService.d.ts +101 -0
  141. package/lib/cjs/src/user/UserService.d.ts +364 -0
  142. package/lib/cjs/src/user/index.d.ts +10 -0
  143. package/lib/cjs/src/user-group/IDevicePermissions.d.ts +6 -0
  144. package/lib/cjs/src/user-group/IUserGroup.d.ts +31 -0
  145. package/lib/cjs/src/user-group/UserGroupService.d.ts +208 -0
  146. package/lib/cjs/src/user-group/index.d.ts +4 -0
  147. package/lib/cjs/src/user-role/IRole.d.ts +10 -0
  148. package/lib/cjs/src/user-role/IRoleReference.d.ts +16 -0
  149. package/lib/cjs/src/user-role/UserRoleService.d.ts +52 -0
  150. package/lib/cjs/src/user-role/index.d.ts +4 -0
  151. package/lib/esm2015/index.d.ts +2 -0
  152. package/lib/esm2015/src/Client.d.ts +190 -0
  153. package/lib/esm2015/src/alarm/AlarmService.d.ts +98 -0
  154. package/lib/esm2015/src/alarm/AlarmStatus.d.ts +9 -0
  155. package/lib/esm2015/src/alarm/IAlarm.d.ts +57 -0
  156. package/lib/esm2015/src/alarm/index.d.ts +4 -0
  157. package/lib/esm2015/src/application/ApplicationAvailability.d.ts +6 -0
  158. package/lib/esm2015/src/application/ApplicationBinaryService.d.ts +40 -0
  159. package/lib/esm2015/src/application/ApplicationService.d.ts +325 -0
  160. package/lib/esm2015/src/application/ApplicationType.d.ts +7 -0
  161. package/lib/esm2015/src/application/BillingMode.d.ts +5 -0
  162. package/lib/esm2015/src/application/IApplication.d.ts +22 -0
  163. package/lib/esm2015/src/application/IApplicationBinary.d.ts +9 -0
  164. package/lib/esm2015/src/application/IApplicationInstanceDetails.d.ts +68 -0
  165. package/lib/esm2015/src/application/IApplicationReference.d.ts +16 -0
  166. package/lib/esm2015/src/application/IApplicationVersion.d.ts +15 -0
  167. package/lib/esm2015/src/application/IDeviceRegistrationProvider.d.ts +7 -0
  168. package/lib/esm2015/src/application/IManifest.d.ts +34 -0
  169. package/lib/esm2015/src/application/IProvider.d.ts +6 -0
  170. package/lib/esm2015/src/application/IUploadParamsOverride.d.ts +7 -0
  171. package/lib/esm2015/src/application/Isolation.d.ts +5 -0
  172. package/lib/esm2015/src/application/index.d.ts +16 -0
  173. package/lib/esm2015/src/audit/AuditRecordType.d.ts +19 -0
  174. package/lib/esm2015/src/audit/AuditService.d.ts +72 -0
  175. package/lib/esm2015/src/audit/ChangeType.d.ts +9 -0
  176. package/lib/esm2015/src/audit/IAuditRecord.d.ts +36 -0
  177. package/lib/esm2015/src/audit/IChange.d.ts +28 -0
  178. package/lib/esm2015/src/audit/index.d.ts +6 -0
  179. package/lib/esm2015/src/core/BasicAuth.d.ts +25 -0
  180. package/lib/esm2015/src/core/BearerAuth.d.ts +13 -0
  181. package/lib/esm2015/src/core/CookieAuth.d.ts +19 -0
  182. package/lib/esm2015/src/core/FetchClient.d.ts +18 -0
  183. package/lib/esm2015/src/core/IAuthentication.d.ts +23 -0
  184. package/lib/esm2015/src/core/ICustomProperties.d.ts +8 -0
  185. package/lib/esm2015/src/core/ICustomPropertiesMap.d.ts +5 -0
  186. package/lib/esm2015/src/core/IFetchClient.d.ts +10 -0
  187. package/lib/esm2015/src/core/IFetchOptions.d.ts +21 -0
  188. package/lib/esm2015/src/core/IFetchResponse.d.ts +26 -0
  189. package/lib/esm2015/src/core/IIdentified.d.ts +6 -0
  190. package/lib/esm2015/src/core/IMicroserviceSubscriptions.d.ts +16 -0
  191. package/lib/esm2015/src/core/INamed.d.ts +5 -0
  192. package/lib/esm2015/src/core/IResult.d.ts +26 -0
  193. package/lib/esm2015/src/core/IResultBase.d.ts +6 -0
  194. package/lib/esm2015/src/core/IResultList.d.ts +36 -0
  195. package/lib/esm2015/src/core/ISource.d.ts +18 -0
  196. package/lib/esm2015/src/core/MicroserviceClientRequestAuth.d.ts +32 -0
  197. package/lib/esm2015/src/core/NodeJSCookieAuth.d.ts +11 -0
  198. package/lib/esm2015/src/core/Paging.d.ts +63 -0
  199. package/lib/esm2015/src/core/QueriesUtil.d.ts +95 -0
  200. package/lib/esm2015/src/core/Service.d.ts +45 -0
  201. package/lib/esm2015/src/core/Severity.d.ts +11 -0
  202. package/lib/esm2015/src/core/index.d.ts +23 -0
  203. package/lib/esm2015/src/device-registration/DeviceRegistrationBulkService.d.ts +41 -0
  204. package/lib/esm2015/src/device-registration/DeviceRegistrationSecurityMode.d.ts +9 -0
  205. package/lib/esm2015/src/device-registration/DeviceRegistrationService.d.ts +199 -0
  206. package/lib/esm2015/src/device-registration/DeviceRegistrationStatus.d.ts +10 -0
  207. package/lib/esm2015/src/device-registration/IDeviceCredentials.d.ts +23 -0
  208. package/lib/esm2015/src/device-registration/IDeviceRegistration.d.ts +76 -0
  209. package/lib/esm2015/src/device-registration/IDeviceRegistrationBulkResult.d.ts +27 -0
  210. package/lib/esm2015/src/device-registration/index.d.ts +8 -0
  211. package/lib/esm2015/src/event/EventBinaryService.d.ts +64 -0
  212. package/lib/esm2015/src/event/EventService.d.ts +114 -0
  213. package/lib/esm2015/src/event/IEvent.d.ts +39 -0
  214. package/lib/esm2015/src/event/IEventBinary.d.ts +26 -0
  215. package/lib/esm2015/src/event/index.d.ts +5 -0
  216. package/lib/esm2015/src/gettext.d.ts +3 -0
  217. package/lib/esm2015/src/identity/IExternalIdentity.d.ts +24 -0
  218. package/lib/esm2015/src/identity/IdentityService.d.ts +102 -0
  219. package/lib/esm2015/src/identity/index.d.ts +3 -0
  220. package/lib/esm2015/src/inventory/IManagedObject.d.ts +88 -0
  221. package/lib/esm2015/src/inventory/InventoryBinaryService.d.ts +45 -0
  222. package/lib/esm2015/src/inventory/InventoryService.d.ts +526 -0
  223. package/lib/esm2015/src/inventory/index.d.ts +4 -0
  224. package/lib/esm2015/src/inventory-role/InventoryRoleService.d.ts +105 -0
  225. package/lib/esm2015/src/inventory-role/index.d.ts +2 -0
  226. package/lib/esm2015/src/measurement/IMeasurement.d.ts +58 -0
  227. package/lib/esm2015/src/measurement/ISeries.d.ts +58 -0
  228. package/lib/esm2015/src/measurement/ISeriesFilter.d.ts +38 -0
  229. package/lib/esm2015/src/measurement/MeasurementService.d.ts +121 -0
  230. package/lib/esm2015/src/measurement/MeasurementService.js +1 -1
  231. package/lib/esm2015/src/measurement/MeasurementService.js.map +1 -1
  232. package/lib/esm2015/src/measurement/index.d.ts +5 -0
  233. package/lib/esm2015/src/operation/IOperation.d.ts +24 -0
  234. package/lib/esm2015/src/operation/IOperationBulk.d.ts +55 -0
  235. package/lib/esm2015/src/operation/IOperationBulkProgress.d.ts +27 -0
  236. package/lib/esm2015/src/operation/OperationBulkGeneralStatus.d.ts +14 -0
  237. package/lib/esm2015/src/operation/OperationBulkService.d.ts +124 -0
  238. package/lib/esm2015/src/operation/OperationBulkStatus.d.ts +10 -0
  239. package/lib/esm2015/src/operation/OperationService.d.ts +105 -0
  240. package/lib/esm2015/src/operation/OperationStatus.d.ts +10 -0
  241. package/lib/esm2015/src/operation/index.d.ts +9 -0
  242. package/lib/esm2015/src/public_api.d.ts +25 -0
  243. package/lib/esm2015/src/realtime/MetaChannel.d.ts +7 -0
  244. package/lib/esm2015/src/realtime/Realtime.d.ts +60 -0
  245. package/lib/esm2015/src/realtime/Realtime.js +36 -5
  246. package/lib/esm2015/src/realtime/Realtime.js.map +1 -1
  247. package/lib/esm2015/src/realtime/index.d.ts +2 -0
  248. package/lib/esm2015/src/services.d.ts +24 -0
  249. package/lib/esm2015/src/smart-groups/SmartGroupsService.d.ts +203 -0
  250. package/lib/esm2015/src/smart-groups/index.d.ts +2 -0
  251. package/lib/esm2015/src/smart-rules/IRule.d.ts +20 -0
  252. package/lib/esm2015/src/smart-rules/SmartRulesService.d.ts +87 -0
  253. package/lib/esm2015/src/smart-rules/index.d.ts +3 -0
  254. package/lib/esm2015/src/system-options/ISystemOption.d.ts +19 -0
  255. package/lib/esm2015/src/system-options/SystemOptionsService.d.ts +52 -0
  256. package/lib/esm2015/src/system-options/index.d.ts +3 -0
  257. package/lib/esm2015/src/tenant/ICurrentTenant.d.ts +12 -0
  258. package/lib/esm2015/src/tenant/ITenant.d.ts +23 -0
  259. package/lib/esm2015/src/tenant/ITenantReference.d.ts +5 -0
  260. package/lib/esm2015/src/tenant/ITfaSettings.d.ts +29 -0
  261. package/lib/esm2015/src/tenant/TenantService.d.ts +240 -0
  262. package/lib/esm2015/src/tenant/TenantStatus.d.ts +5 -0
  263. package/lib/esm2015/src/tenant/TfaStrategy.d.ts +10 -0
  264. package/lib/esm2015/src/tenant/index.d.ts +8 -0
  265. package/lib/esm2015/src/tenant-login-options/ITenantLoginOptions.d.ts +152 -0
  266. package/lib/esm2015/src/tenant-login-options/TenantLoginOptionsService.d.ts +170 -0
  267. package/lib/esm2015/src/tenant-login-options/index.d.ts +3 -0
  268. package/lib/esm2015/src/tenant-options/ITenantOption.d.ts +10 -0
  269. package/lib/esm2015/src/tenant-options/ITenantOptionDetailParams.d.ts +11 -0
  270. package/lib/esm2015/src/tenant-options/TenantOptionsService.d.ts +144 -0
  271. package/lib/esm2015/src/tenant-options/index.d.ts +4 -0
  272. package/lib/esm2015/src/tenant-security-options/ITenantSecurityOption.d.ts +8 -0
  273. package/lib/esm2015/src/tenant-security-options/TenantSecurityOptionsService.d.ts +35 -0
  274. package/lib/esm2015/src/tenant-security-options/index.d.ts +3 -0
  275. package/lib/esm2015/src/trusted-certificates/ITrustedCertificate.d.ts +68 -0
  276. package/lib/esm2015/src/trusted-certificates/TrustedCertificateService.d.ts +146 -0
  277. package/lib/esm2015/src/trusted-certificates/index.d.ts +3 -0
  278. package/lib/esm2015/src/user/ICurrentUser.d.ts +35 -0
  279. package/lib/esm2015/src/user/IResetPassword.d.ts +12 -0
  280. package/lib/esm2015/src/user/ITotp.d.ts +7 -0
  281. package/lib/esm2015/src/user/ITotpStatus.d.ts +5 -0
  282. package/lib/esm2015/src/user/IUser.d.ts +72 -0
  283. package/lib/esm2015/src/user/IUserInventoryRole.d.ts +13 -0
  284. package/lib/esm2015/src/user/PasswordStrength.d.ts +6 -0
  285. package/lib/esm2015/src/user/UserInventoryRoleService.d.ts +101 -0
  286. package/lib/esm2015/src/user/UserService.d.ts +364 -0
  287. package/lib/esm2015/src/user/index.d.ts +10 -0
  288. package/lib/esm2015/src/user-group/IDevicePermissions.d.ts +6 -0
  289. package/lib/esm2015/src/user-group/IUserGroup.d.ts +31 -0
  290. package/lib/esm2015/src/user-group/UserGroupService.d.ts +208 -0
  291. package/lib/esm2015/src/user-group/index.d.ts +4 -0
  292. package/lib/esm2015/src/user-role/IRole.d.ts +10 -0
  293. package/lib/esm2015/src/user-role/IRoleReference.d.ts +16 -0
  294. package/lib/esm2015/src/user-role/UserRoleService.d.ts +52 -0
  295. package/lib/esm2015/src/user-role/index.d.ts +4 -0
  296. package/lib/index.d.ts +1 -0
  297. package/lib/src/Client.d.ts +1 -0
  298. package/lib/src/alarm/AlarmService.d.ts +1 -0
  299. package/lib/src/alarm/AlarmStatus.d.ts +1 -0
  300. package/lib/src/alarm/IAlarm.d.ts +1 -0
  301. package/lib/src/alarm/index.d.ts +1 -0
  302. package/lib/src/application/ApplicationAvailability.d.ts +1 -0
  303. package/lib/src/application/ApplicationBinaryService.d.ts +1 -0
  304. package/lib/src/application/ApplicationService.d.ts +1 -0
  305. package/lib/src/application/ApplicationType.d.ts +1 -0
  306. package/lib/src/application/BillingMode.d.ts +1 -0
  307. package/lib/src/application/IApplication.d.ts +1 -0
  308. package/lib/src/application/IApplicationBinary.d.ts +1 -0
  309. package/lib/src/application/IApplicationInstanceDetails.d.ts +1 -0
  310. package/lib/src/application/IApplicationReference.d.ts +1 -0
  311. package/lib/src/application/IApplicationVersion.d.ts +1 -0
  312. package/lib/src/application/IDeviceRegistrationProvider.d.ts +1 -0
  313. package/lib/src/application/IManifest.d.ts +1 -0
  314. package/lib/src/application/IProvider.d.ts +1 -0
  315. package/lib/src/application/IUploadParamsOverride.d.ts +1 -0
  316. package/lib/src/application/Isolation.d.ts +1 -0
  317. package/lib/src/application/index.d.ts +1 -0
  318. package/lib/src/audit/AuditRecordType.d.ts +1 -0
  319. package/lib/src/audit/AuditService.d.ts +1 -0
  320. package/lib/src/audit/ChangeType.d.ts +1 -0
  321. package/lib/src/audit/IAuditRecord.d.ts +1 -0
  322. package/lib/src/audit/IChange.d.ts +1 -0
  323. package/lib/src/audit/index.d.ts +1 -0
  324. package/lib/src/core/BasicAuth.d.ts +1 -0
  325. package/lib/src/core/BearerAuth.d.ts +1 -0
  326. package/lib/src/core/CookieAuth.d.ts +1 -0
  327. package/lib/src/core/FetchClient.d.ts +1 -0
  328. package/lib/src/core/IAuthentication.d.ts +1 -0
  329. package/lib/src/core/ICustomProperties.d.ts +1 -0
  330. package/lib/src/core/ICustomPropertiesMap.d.ts +1 -0
  331. package/lib/src/core/IFetchClient.d.ts +1 -0
  332. package/lib/src/core/IFetchOptions.d.ts +1 -0
  333. package/lib/src/core/IFetchResponse.d.ts +1 -0
  334. package/lib/src/core/IIdentified.d.ts +1 -0
  335. package/lib/src/core/IMicroserviceSubscriptions.d.ts +1 -0
  336. package/lib/src/core/INamed.d.ts +1 -0
  337. package/lib/src/core/IResult.d.ts +1 -0
  338. package/lib/src/core/IResultBase.d.ts +1 -0
  339. package/lib/src/core/IResultList.d.ts +1 -0
  340. package/lib/src/core/ISource.d.ts +1 -0
  341. package/lib/src/core/MicroserviceClientRequestAuth.d.ts +1 -0
  342. package/lib/src/core/NodeJSCookieAuth.d.ts +1 -0
  343. package/lib/src/core/Paging.d.ts +1 -0
  344. package/lib/src/core/QueriesUtil.d.ts +1 -0
  345. package/lib/src/core/Service.d.ts +1 -0
  346. package/lib/src/core/Severity.d.ts +1 -0
  347. package/lib/src/core/index.d.ts +1 -0
  348. package/lib/src/device-registration/DeviceRegistrationBulkService.d.ts +1 -0
  349. package/lib/src/device-registration/DeviceRegistrationSecurityMode.d.ts +1 -0
  350. package/lib/src/device-registration/DeviceRegistrationService.d.ts +1 -0
  351. package/lib/src/device-registration/DeviceRegistrationStatus.d.ts +1 -0
  352. package/lib/src/device-registration/IDeviceCredentials.d.ts +1 -0
  353. package/lib/src/device-registration/IDeviceRegistration.d.ts +1 -0
  354. package/lib/src/device-registration/IDeviceRegistrationBulkResult.d.ts +1 -0
  355. package/lib/src/device-registration/index.d.ts +1 -0
  356. package/lib/src/event/EventBinaryService.d.ts +1 -0
  357. package/lib/src/event/EventService.d.ts +1 -0
  358. package/lib/src/event/IEvent.d.ts +1 -0
  359. package/lib/src/event/IEventBinary.d.ts +1 -0
  360. package/lib/src/event/index.d.ts +1 -0
  361. package/lib/src/gettext.d.ts +1 -0
  362. package/lib/src/identity/IExternalIdentity.d.ts +1 -0
  363. package/lib/src/identity/IdentityService.d.ts +1 -0
  364. package/lib/src/identity/index.d.ts +1 -0
  365. package/lib/src/inventory/IManagedObject.d.ts +1 -0
  366. package/lib/src/inventory/InventoryBinaryService.d.ts +1 -0
  367. package/lib/src/inventory/InventoryService.d.ts +1 -0
  368. package/lib/src/inventory/index.d.ts +1 -0
  369. package/lib/src/inventory-role/InventoryRoleService.d.ts +1 -0
  370. package/lib/src/inventory-role/index.d.ts +1 -0
  371. package/lib/src/measurement/IMeasurement.d.ts +2 -1
  372. package/lib/src/measurement/ISeries.d.ts +1 -0
  373. package/lib/src/measurement/ISeriesFilter.d.ts +1 -0
  374. package/lib/src/measurement/MeasurementService.d.ts +1 -0
  375. package/lib/src/measurement/index.d.ts +1 -0
  376. package/lib/src/operation/IOperation.d.ts +1 -0
  377. package/lib/src/operation/IOperationBulk.d.ts +1 -0
  378. package/lib/src/operation/IOperationBulkProgress.d.ts +1 -0
  379. package/lib/src/operation/OperationBulkGeneralStatus.d.ts +1 -0
  380. package/lib/src/operation/OperationBulkService.d.ts +1 -0
  381. package/lib/src/operation/OperationBulkStatus.d.ts +1 -0
  382. package/lib/src/operation/OperationService.d.ts +1 -0
  383. package/lib/src/operation/OperationStatus.d.ts +1 -0
  384. package/lib/src/operation/index.d.ts +1 -0
  385. package/lib/src/public_api.d.ts +1 -0
  386. package/lib/src/realtime/MetaChannel.d.ts +1 -0
  387. package/lib/src/realtime/Realtime.d.ts +26 -4
  388. package/lib/src/realtime/index.d.ts +1 -0
  389. package/lib/src/services.d.ts +1 -0
  390. package/lib/src/smart-groups/SmartGroupsService.d.ts +1 -0
  391. package/lib/src/smart-groups/index.d.ts +1 -0
  392. package/lib/src/smart-rules/IRule.d.ts +1 -0
  393. package/lib/src/smart-rules/SmartRulesService.d.ts +1 -0
  394. package/lib/src/smart-rules/index.d.ts +1 -0
  395. package/lib/src/system-options/ISystemOption.d.ts +1 -0
  396. package/lib/src/system-options/SystemOptionsService.d.ts +1 -0
  397. package/lib/src/system-options/index.d.ts +1 -0
  398. package/lib/src/tenant/ICurrentTenant.d.ts +1 -0
  399. package/lib/src/tenant/ITenant.d.ts +1 -0
  400. package/lib/src/tenant/ITenantReference.d.ts +1 -0
  401. package/lib/src/tenant/ITfaSettings.d.ts +1 -0
  402. package/lib/src/tenant/TenantService.d.ts +1 -0
  403. package/lib/src/tenant/TenantStatus.d.ts +1 -0
  404. package/lib/src/tenant/TfaStrategy.d.ts +1 -0
  405. package/lib/src/tenant/index.d.ts +1 -0
  406. package/lib/src/tenant-login-options/ITenantLoginOptions.d.ts +1 -0
  407. package/lib/src/tenant-login-options/TenantLoginOptionsService.d.ts +1 -0
  408. package/lib/src/tenant-login-options/index.d.ts +1 -0
  409. package/lib/src/tenant-options/ITenantOption.d.ts +1 -0
  410. package/lib/src/tenant-options/ITenantOptionDetailParams.d.ts +1 -0
  411. package/lib/src/tenant-options/TenantOptionsService.d.ts +1 -0
  412. package/lib/src/tenant-options/index.d.ts +1 -0
  413. package/lib/src/tenant-security-options/ITenantSecurityOption.d.ts +1 -0
  414. package/lib/src/tenant-security-options/TenantSecurityOptionsService.d.ts +1 -0
  415. package/lib/src/tenant-security-options/index.d.ts +1 -0
  416. package/lib/src/trusted-certificates/ITrustedCertificate.d.ts +1 -0
  417. package/lib/src/trusted-certificates/TrustedCertificateService.d.ts +1 -0
  418. package/lib/src/trusted-certificates/index.d.ts +1 -0
  419. package/lib/src/user/ICurrentUser.d.ts +1 -0
  420. package/lib/src/user/IResetPassword.d.ts +1 -0
  421. package/lib/src/user/ITotp.d.ts +1 -0
  422. package/lib/src/user/ITotpStatus.d.ts +1 -0
  423. package/lib/src/user/IUser.d.ts +1 -0
  424. package/lib/src/user/IUserInventoryRole.d.ts +1 -0
  425. package/lib/src/user/PasswordStrength.d.ts +1 -0
  426. package/lib/src/user/UserInventoryRoleService.d.ts +1 -0
  427. package/lib/src/user/UserService.d.ts +1 -0
  428. package/lib/src/user/index.d.ts +1 -0
  429. package/lib/src/user-group/IDevicePermissions.d.ts +1 -0
  430. package/lib/src/user-group/IUserGroup.d.ts +1 -0
  431. package/lib/src/user-group/UserGroupService.d.ts +1 -0
  432. package/lib/src/user-group/index.d.ts +1 -0
  433. package/lib/src/user-role/IRole.d.ts +1 -0
  434. package/lib/src/user-role/IRoleReference.d.ts +1 -0
  435. package/lib/src/user-role/UserRoleService.d.ts +1 -0
  436. package/lib/src/user-role/index.d.ts +1 -0
  437. package/package.json +9 -3
@@ -0,0 +1,58 @@
1
+ export interface ISeries {
2
+ /**
3
+ * **Example**
4
+ * ```typescript
5
+ *
6
+ * values: {
7
+ * '2014-12-04T17:33:01.538+01:00': [{
8
+ * min: 13.37,
9
+ * max: 13.37
10
+ * },
11
+ * {
12
+ * min: 11.37,
13
+ * max: 11.37
14
+ * }],
15
+ * '2014-12-04T17:34:01.774+01:00': [{
16
+ * min: 10.2,
17
+ * max: 10.2
18
+ * },
19
+ * {
20
+ * min: 11.37,
21
+ * max: 11.37
22
+ * }]
23
+ * }
24
+ * ```
25
+ */
26
+ values: {
27
+ [date: string]: Array<{
28
+ min: number;
29
+ max: number;
30
+ }>;
31
+ };
32
+ /**
33
+ * **Example**
34
+ * ```typescript
35
+ *
36
+ * series: [{
37
+ * unit: "m/s2",
38
+ * name: "acceleration",
39
+ * type: "c8y_AccelerationMeasurement"
40
+ * },
41
+ * {
42
+ * unit: "m/s",
43
+ * name: "velocity",
44
+ * type: "c8y_SpeedMeasurement"
45
+ * }]
46
+ * ```
47
+ */
48
+ series: Array<{
49
+ unit: string;
50
+ name: string;
51
+ type: string;
52
+ }>;
53
+ /**
54
+ * Indicates whether there were more than 5000 values and if the final result was truncated
55
+ */
56
+ truncated: boolean;
57
+ }
58
+ //# sourceMappingURL=ISeries.d.ts.map
@@ -0,0 +1,38 @@
1
+ export declare enum aggregationType {
2
+ MINUTELY = "MINUTELY",
3
+ HOURLY = "HOURLY",
4
+ DAILY = "DAILY"
5
+ }
6
+ /**
7
+ * This interface specifies all fragments which can be used
8
+ * to filter for specific series.
9
+ */
10
+ export interface ISeriesFilter {
11
+ /**
12
+ * The ManagedObject which is the source of these series
13
+ */
14
+ source: number | string;
15
+ /**
16
+ * From which date the series should be gathered
17
+ */
18
+ dateFrom: string | Date;
19
+ /**
20
+ * To which date the series should be gathered
21
+ */
22
+ dateTo: string | Date;
23
+ /**
24
+ * For which aggregation it should filter, see [[aggregationType]]
25
+ */
26
+ aggregationType?: aggregationType;
27
+ /**
28
+ * The series type and name
29
+ *
30
+ * **Example**
31
+ * ```typescript
32
+ *
33
+ * const series: string[] = ['c8y_AccelerationMeasurement.acceleration', '...'];
34
+ * ```
35
+ */
36
+ series?: string | string[];
37
+ }
38
+ //# sourceMappingURL=ISeriesFilter.d.ts.map
@@ -0,0 +1,121 @@
1
+ import { IIdentified, Service, IResult } from '../core';
2
+ import { IMeasurement, IMeasurementCreate } from './IMeasurement';
3
+ import { ISeriesFilter } from './ISeriesFilter';
4
+ import { ISeries } from './ISeries';
5
+ /**
6
+ * This class allows for managing measurements.
7
+ */
8
+ export declare class MeasurementService extends Service<IMeasurement> {
9
+ protected baseUrl: string;
10
+ protected listUrl: string;
11
+ protected propertyName: string;
12
+ protected channel: string;
13
+ /**
14
+ * Gets the details of selected measurement.
15
+ *
16
+ * @param {string|number|IIdentified} entityOrId Entity or Id of the entity.
17
+ *
18
+ * @returns Response wrapped in [[IResult]]
19
+ *
20
+ * @deprecated As of version 10.16.0.0 and the usage of the time series database,
21
+ * reading a single measurement via id is not supported any more.
22
+ *
23
+ * **Example**
24
+ * ```typescript
25
+ *
26
+ * const measurementId: number = 1;
27
+ *
28
+ * (async () => {
29
+ * const {data, res} = await measurementService.detail(measurementId);
30
+ * })();
31
+ * ```
32
+ */
33
+ detail(entityOrId: string | number | IIdentified): Promise<IResult<IMeasurement>>;
34
+ /**
35
+ * Creates a new measurement.
36
+ *
37
+ * @param {Partial<IMeasurementCreate>} entity At least sourceId is mandantory.
38
+ *
39
+ * @returns Response wrapped in [[IResult]]
40
+ *
41
+ * **Example**
42
+ * ```typescript
43
+ *
44
+ * const mandantoryObject: Partial<IMeasurementCreate> = {
45
+ * sourceId: device.id,
46
+ * fragment: { series: { unit: '%', value: 51 } },
47
+ * };
48
+ *
49
+ * (async () => {
50
+ * const {data, res} = await measurementService.create(mandantoryObject);
51
+ * })();
52
+ * ```
53
+ */
54
+ create(entity: Partial<IMeasurementCreate>): Promise<IResult<IMeasurement>>;
55
+ /**
56
+ * Gets the list of measurements filtered by parameters.
57
+ *
58
+ * @returns Response wrapped in [[IResultList]]
59
+ *
60
+ * @param {object} filter Object containing filters for querying measurements.
61
+ *
62
+ * **Example**
63
+ * ```typescript
64
+ *
65
+ * const filter: object = {
66
+ * pageSize: 100,
67
+ * withTotalPages: true
68
+ * };
69
+ *
70
+ * (async () => {
71
+ * const {data, res, paging} = await measurementService.list(filter);
72
+ * })();
73
+ * ```
74
+ */
75
+ list(filter?: object): Promise<import("../core").IResultList<IMeasurement>>;
76
+ /**
77
+ * Removes a measurement with given id.
78
+ *
79
+ * @returns Response wrapped in [[IResult]]
80
+ *
81
+ * @param {string | number | IIdentified} entityOrId
82
+ *
83
+ * @deprecated As of version 10.16.0.0 and the usage of the time series database,
84
+ * deleting a single measurement via id is not supported any more.
85
+ *
86
+ * **Example**
87
+ * ```typescript
88
+ *
89
+ * const id: number = 1;
90
+ *
91
+ * (async () => {
92
+ * const {data, res} = await measurementService.delete(id);
93
+ * })();
94
+ * ```
95
+ */
96
+ delete(entityOrId: string | number | IIdentified): Promise<IResult<null>>;
97
+ /**
98
+ * Gets the list of series in a measurement filtered by parameters.
99
+ *
100
+ * @returns Response wrapped in [[IResult]]
101
+ *
102
+ * @param {object} filter Object containing filters for querying measurements.
103
+ *
104
+ * **Example**
105
+ * ```typescript
106
+ *
107
+ * const filter: object = {
108
+ * dateFrom: '2018-02-06T10:43:55.077Z',
109
+ * dateTo: '2018-02-06T10:50:55.077Z',
110
+ * source: device.id
111
+ * };
112
+ *
113
+ * (async () => {
114
+ * const {data, res} = await measurementService.listSeries(filter);
115
+ * })();
116
+ * ```
117
+ */
118
+ listSeries(params: ISeriesFilter): Promise<IResult<ISeries>>;
119
+ protected onBeforeCreate(entity: Partial<IMeasurementCreate>): Partial<IMeasurementCreate>;
120
+ }
121
+ //# sourceMappingURL=MeasurementService.d.ts.map
@@ -134,7 +134,7 @@ class MeasurementService extends core_1.Service {
134
134
  }
135
135
  onBeforeCreate(entity) {
136
136
  if (!entity.time) {
137
- entity.time = new Date();
137
+ entity.time = new Date().toISOString();
138
138
  }
139
139
  if (!entity.type) {
140
140
  entity.type = 'c8y_Measurement';
@@ -1 +1 @@
1
- {"version":3,"file":"MeasurementService.js","sourceRoot":"","sources":["../../../../src/measurement/MeasurementService.ts"],"names":[],"mappings":";;;AAAA,kCAAwD;AAKxD;;GAEG;AACH,MAAa,kBAAmB,SAAQ,cAAqB;IAA7D;;QACY,YAAO,GAAG,aAAa,CAAC;QACxB,YAAO,GAAG,cAAc,CAAC;QACzB,iBAAY,GAAG,cAAc,CAAC;QAC9B,YAAO,GAAG,iBAAiB,CAAC;IAgJxC,CAAC;IA9IC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,MAAM,CAAC,UAAyC;QACpD,OAAO,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,MAAM,CAAC,MAAmC;QAC9C,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,IAAI,CAAC,SAAiB,EAAE;QAC5B,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,MAAM,CAAC,UAAyC;QACpD,OAAO,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,UAAU,CAAC,MAAqB;QACpC,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,SAAS,CAAC;QACrD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;QAC9B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACvB,CAAC;IAES,cAAc,CAAC,MAAmC;QAC1D,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;YAChB,MAAM,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;SAC1B;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;YAChB,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAC;SACjC;QACD,IAAI,MAAM,CAAC,QAAQ,EAAE;YACnB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;YAC5B,OAAO,MAAM,CAAC,QAAQ,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;gBAClB,MAAM,CAAC,MAAM,GAAG;oBACd,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC;iBACrB,CAAC;aACH;SACF;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AApJD,gDAoJC"}
1
+ {"version":3,"file":"MeasurementService.js","sourceRoot":"","sources":["../../../../src/measurement/MeasurementService.ts"],"names":[],"mappings":";;;AAAA,kCAAwD;AAKxD;;GAEG;AACH,MAAa,kBAAmB,SAAQ,cAAqB;IAA7D;;QACY,YAAO,GAAG,aAAa,CAAC;QACxB,YAAO,GAAG,cAAc,CAAC;QACzB,iBAAY,GAAG,cAAc,CAAC;QAC9B,YAAO,GAAG,iBAAiB,CAAC;IAgJxC,CAAC;IA9IC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,MAAM,CAAC,UAAyC;QACpD,OAAO,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,MAAM,CAAC,MAAmC;QAC9C,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,IAAI,CAAC,SAAiB,EAAE;QAC5B,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,MAAM,CAAC,UAAyC;QACpD,OAAO,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,UAAU,CAAC,MAAqB;QACpC,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,SAAS,CAAC;QACrD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;QAC9B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACvB,CAAC;IAES,cAAc,CAAC,MAAmC;QAC1D,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;YAChB,MAAM,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;SACxC;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;YAChB,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAC;SACjC;QACD,IAAI,MAAM,CAAC,QAAQ,EAAE;YACnB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;YAC5B,OAAO,MAAM,CAAC,QAAQ,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;gBAClB,MAAM,CAAC,MAAM,GAAG;oBACd,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC;iBACrB,CAAC;aACH;SACF;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AApJD,gDAoJC"}
@@ -0,0 +1,5 @@
1
+ export * from './MeasurementService';
2
+ export * from './IMeasurement';
3
+ export * from './ISeries';
4
+ export * from './ISeriesFilter';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { OperationStatus } from './OperationStatus';
2
+ /**
3
+ * Interface to gather all mandantory fragments to
4
+ * have a valid operation.
5
+ */
6
+ export interface IOperation {
7
+ /**
8
+ * Identifier for operation
9
+ */
10
+ id?: string | number;
11
+ /**
12
+ * Identifies the target device on which this operation should be performed
13
+ */
14
+ deviceId: string;
15
+ /**
16
+ * Status of operation, see [[OperationStatus]]
17
+ */
18
+ status?: OperationStatus;
19
+ /**
20
+ * Custom fragments
21
+ */
22
+ [key: string]: any;
23
+ }
24
+ //# sourceMappingURL=IOperation.d.ts.map
@@ -0,0 +1,55 @@
1
+ import { IOperation } from './IOperation';
2
+ import { OperationBulkStatus } from './OperationBulkStatus';
3
+ import { OperationBulkGeneralStatus } from './OperationBulkGeneralStatus';
4
+ import { IOperationBulkProgress } from './IOperationBulkProgress';
5
+ /**
6
+ * Interface to gather all mandantory fragments to
7
+ * have a valid bulk operation.
8
+ */
9
+ export interface IOperationBulk {
10
+ /**
11
+ * Identifier for bulk operation
12
+ */
13
+ id?: string | number;
14
+ /**
15
+ * Identifies the target group on which this operation should be performed
16
+ */
17
+ groupId: string | number;
18
+ /**
19
+ * Time when operations should be created
20
+ */
21
+ startDate: string;
22
+ /**
23
+ * Delay between every operation creation
24
+ */
25
+ creationRamp: number;
26
+ /**
27
+ * Operation to be executed for every device in a group
28
+ */
29
+ operationPrototype: Partial<IOperation>;
30
+ /**
31
+ * Status of Bulk Operation, see [[OperationBulkStatus]]
32
+ */
33
+ status?: OperationBulkStatus;
34
+ /**
35
+ * Simplified user friendly status of Bulk Operation, see [[OperationBulkGeneralStatus]]
36
+ */
37
+ generalStatus?: OperationBulkGeneralStatus;
38
+ /**
39
+ * Contains information about number of processed operations, see [[IOperationBulkProgress]]
40
+ */
41
+ progress?: IOperationBulkProgress;
42
+ /**
43
+ * Identifier of the failed bulk operation that current operation was created from
44
+ */
45
+ failedParentId?: string | number;
46
+ /**
47
+ * User specified note
48
+ */
49
+ note?: string;
50
+ /**
51
+ * Link to this resource
52
+ */
53
+ self?: string;
54
+ }
55
+ //# sourceMappingURL=IOperationBulk.d.ts.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Interface to gather more information about the process
3
+ * of performed bulk operation.
4
+ */
5
+ export interface IOperationBulkProgress {
6
+ /**
7
+ * Count of processed operations
8
+ */
9
+ all: number;
10
+ /**
11
+ * Count of pending operations
12
+ */
13
+ pending: number;
14
+ /**
15
+ * Count of executing operations
16
+ */
17
+ executing: number;
18
+ /**
19
+ * Count of successful operations
20
+ */
21
+ successful: number;
22
+ /**
23
+ * Count of failed operations
24
+ */
25
+ failed: number;
26
+ }
27
+ //# sourceMappingURL=IOperationBulkProgress.d.ts.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * A bulk operation can have one of the following general statuses.
3
+ */
4
+ export declare enum OperationBulkGeneralStatus {
5
+ SCHEDULED,
6
+ EXECUTING,
7
+ EXECUTING_WITH_ERROR,
8
+ CANCELED,
9
+ FAILED,
10
+ SUCCESSFUL,
11
+ DELETED,
12
+ INCORRECT
13
+ }
14
+ //# sourceMappingURL=OperationBulkGeneralStatus.d.ts.map
@@ -0,0 +1,124 @@
1
+ import { IIdentified, Service, IResult } from '../core';
2
+ import { IOperationBulk } from './IOperationBulk';
3
+ /**
4
+ * This class allows for managing bulk operations.
5
+ */
6
+ export declare class OperationBulkService extends Service<IOperationBulk> {
7
+ protected baseUrl: string;
8
+ protected listUrl: string;
9
+ protected propertyName: string;
10
+ /**
11
+ * Gets the details of selected bulk operation.
12
+ *
13
+ * @param {string|number|IIdentified} entityOrId Entity or Id of the entity.
14
+ *
15
+ * @returns Response wrapped in [[IResult]]
16
+ *
17
+ * **Example**
18
+ * ```typescript
19
+ *
20
+ * const bulkOperationId: number = 1;
21
+ *
22
+ * (async () => {
23
+ * const {data, res} = await operationBulkService.detail(bulkOperationId);
24
+ * })();
25
+ * ```
26
+ */
27
+ detail(operationOrId: string | number | IIdentified): Promise<IResult<IOperationBulk>>;
28
+ /**
29
+ * Creates a new operation.
30
+ *
31
+ * @param {Partial<IOperationBulk>} operation Operation object with mandantory fragments.
32
+ *
33
+ * @returns Response wrapped in [[IResult]]
34
+ *
35
+ * **Example**
36
+ * ```typescript
37
+ *
38
+ * const mandantoryObject: Partial<IOperationBulk> = {
39
+ * creationRamp: 15,
40
+ * groupId: '149044',
41
+ * operationPrototype: {
42
+ * c8y_Restart: {},
43
+ * description: 'Restart device',
44
+ * deviceId: device.id,
45
+ * status: 'PENDING'
46
+ * },
47
+ * startDate: '2018-02-15T16:01:00.000Z'
48
+ * };
49
+ *
50
+ * (async () => {
51
+ * const {data, res} = await operationBulkService.create(mandantoryObject);
52
+ * })();
53
+ * ```
54
+ */
55
+ create(operation: Partial<IOperationBulk>): Promise<IResult<IOperationBulk>>;
56
+ /**
57
+ * Updates a new operation.
58
+ *
59
+ * @param {Partial<IOperationBulk>} operation Operation object.
60
+ *
61
+ * @returns Response wrapped in [[IResult]]
62
+ *
63
+ * **Example**
64
+ * ```typescript
65
+ *
66
+ * const updateObject: Partial<IOperationBulk> = {
67
+ * creationRamp: 15,
68
+ * groupId: '149044',
69
+ * operationPrototype: {
70
+ * c8y_Restart: {},
71
+ * description: 'Restart device',
72
+ * deviceId: device.id,
73
+ * status: 'PENDING'
74
+ * },
75
+ * startDate: '2018-02-15T16:01:00.000Z'
76
+ * };
77
+ *
78
+ * (async () => {
79
+ * const {data, res} = await operationBulkService.update(updateObject);
80
+ * })();
81
+ * ```
82
+ */
83
+ update(entity: Partial<IOperationBulk>): Promise<IResult<IOperationBulk>>;
84
+ /**
85
+ * Gets the list of bulk operations filtered by parameters.
86
+ *
87
+ * @returns Response wrapped in [[IResultList]]
88
+ *
89
+ * @param {object} filter Object containing filters for querying alarms.
90
+ *
91
+ * **Example**
92
+ * ```typescript
93
+ *
94
+ * const filter: object = {
95
+ * pageSize: 100,
96
+ * withTotalPages: true
97
+ * };
98
+ *
99
+ * (async () => {
100
+ * const {data, res, paging} = await operationBulkService.list(filter);
101
+ * })();
102
+ * ```
103
+ */
104
+ list(filter?: object): Promise<import("../core").IResultList<IOperationBulk>>;
105
+ /**
106
+ * Removes an bulk operation with given id.
107
+ *
108
+ * @returns Response wrapped in [[IResult]]
109
+ *
110
+ * @param {string | number | IIdentified):} operationOrId Operation object or id.
111
+ *
112
+ * **Example**
113
+ * ```typescript
114
+ *
115
+ * const id: number = 1;
116
+ *
117
+ * (async () => {
118
+ * const {data, res} = await operationBulkService.delete(id);
119
+ * })();
120
+ * ```
121
+ */
122
+ delete(operationOrId: string | number | IIdentified): Promise<IResult<null>>;
123
+ }
124
+ //# sourceMappingURL=OperationBulkService.d.ts.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * A bulk operation can have one of the following states.
3
+ */
4
+ export declare enum OperationBulkStatus {
5
+ ACTIVE,
6
+ IN_PROGRESS,
7
+ COMPLETED,
8
+ DELETED
9
+ }
10
+ //# sourceMappingURL=OperationBulkStatus.d.ts.map
@@ -0,0 +1,105 @@
1
+ import { IIdentified, Service, IResult, IResultList } from '../core';
2
+ import { IOperation } from './IOperation';
3
+ /**
4
+ * This class allows for managing operations on a device.
5
+ */
6
+ export declare class OperationService extends Service<IOperation> {
7
+ protected baseUrl: string;
8
+ protected listUrl: string;
9
+ protected propertyName: string;
10
+ /**
11
+ * Gets the details of selected operation.
12
+ *
13
+ * @param {string|number|IIdentified} entityOrId Entity or Id of the entitytabs.service.ts.
14
+ *
15
+ * @returns Response wrapped in [[IResult]]
16
+ *
17
+ * **Example**
18
+ * ```typescript
19
+ *
20
+ * const operationId: number = 1;
21
+ *
22
+ * (async () => {
23
+ * const {data, res} = await operationService.detail(operationId);
24
+ * })();
25
+ * ```
26
+ */
27
+ detail(entityOrId: string | number | IIdentified): Promise<IResult<IOperation>>;
28
+ /**
29
+ * Creates a new operation.
30
+ *
31
+ * @param {IOperation} entity Operation object with mandantory fragments.
32
+ *
33
+ * @returns Response wrapped in [[IResult]]
34
+ *
35
+ * **Example**
36
+ * ```typescript
37
+ *
38
+ * const mandantoryObject: IOperation = {
39
+ * com_cumulocity_model_WebCamDevice: {
40
+ * name: 'take picture',
41
+ * parameters: {
42
+ * duration: '5s',
43
+ * quality: 'HD'
44
+ * }
45
+ * },
46
+ * deviceId: device.id,
47
+ * };
48
+ *
49
+ * (async () => {
50
+ * const {data, res} = await operationService.create(mandantoryObject);
51
+ * })();
52
+ * ```
53
+ */
54
+ create(entity: IOperation): Promise<IResult<IOperation>>;
55
+ /**
56
+ * Updates operation data.
57
+ *
58
+ * @param {Partial<IOperation>} entity Operation is partially updatable.
59
+ *
60
+ * @returns Response wrapped in [[IResult]]
61
+ *
62
+ * **Example**
63
+ * ```typescript
64
+ *
65
+ * const partialUpdateObject: Partial<IOperation> = {
66
+ * com_cumulocity_model_WebCamDevice: {
67
+ * name: 'take picture',
68
+ * parameters: {
69
+ * duration: '2s',
70
+ * quality: 'HD',
71
+ * ratio: '16:9'
72
+ * }
73
+ * },
74
+ * deviceId: device.id,
75
+ * };
76
+ *
77
+ * (async () => {
78
+ * const {data, res} = await operationService.update(partialUpdateObject);
79
+ * })();
80
+ * ```
81
+ */
82
+ update(entity: Partial<IOperation>): Promise<IResult<IOperation>>;
83
+ /**
84
+ * Gets the list of operations filtered by parameters.
85
+ *
86
+ * @returns Response wrapped in [[IResultList]]
87
+ *
88
+ * @param {object} filter Object containing filters for querying operations.
89
+ *
90
+ * **Example**
91
+ * ```typescript
92
+ *
93
+ * const filter: object = {
94
+ * pageSize: 100,
95
+ * withTotalPages: true
96
+ * };
97
+ *
98
+ * (async () => {
99
+ * const {data, res, paging} = await operationService.list(filter);
100
+ * })();
101
+ * ```
102
+ */
103
+ list(filter?: object): Promise<IResultList<IOperation>>;
104
+ }
105
+ //# sourceMappingURL=OperationService.d.ts.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * An Operation can have one of the following states.
3
+ */
4
+ export declare enum OperationStatus {
5
+ PENDING,
6
+ EXECUTING,
7
+ SUCCESSFUL,
8
+ FAILED
9
+ }
10
+ //# sourceMappingURL=OperationStatus.d.ts.map
@@ -0,0 +1,9 @@
1
+ export * from './OperationService';
2
+ export * from './OperationBulkService';
3
+ export * from './OperationBulkStatus';
4
+ export * from './OperationBulkGeneralStatus';
5
+ export * from './IOperation';
6
+ export * from './IOperationBulk';
7
+ export * from './OperationStatus';
8
+ export * from './IOperationBulkProgress';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,25 @@
1
+ export * from './Client';
2
+ export * from './alarm';
3
+ export * from './application';
4
+ export * from './audit';
5
+ export * from './core';
6
+ export * from './trusted-certificates';
7
+ export * from './device-registration';
8
+ export * from './event';
9
+ export * from './identity';
10
+ export * from './inventory';
11
+ export * from './inventory-role';
12
+ export * from './measurement';
13
+ export * from './operation';
14
+ export * from './realtime';
15
+ export * from './system-options';
16
+ export * from './tenant';
17
+ export * from './tenant-options';
18
+ export * from './tenant-security-options';
19
+ export * from './tenant-login-options';
20
+ export * from './user';
21
+ export * from './user-group';
22
+ export * from './user-role';
23
+ export * from './smart-rules';
24
+ export * from './smart-groups';
25
+ //# sourceMappingURL=public_api.d.ts.map
@@ -0,0 +1,7 @@
1
+ export declare enum MetaChannel {
2
+ HANDSHAKE = "/meta/handshake",
3
+ CONNECT = "/meta/connect",
4
+ SUBSCRIBE = "/meta/subscribe",
5
+ UNSUBSCRIBE = "/meta/unsubscribe"
6
+ }
7
+ //# sourceMappingURL=MetaChannel.d.ts.map