c8y-nitro 0.1.0 → 0.1.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 (315) hide show
  1. package/README.md +19 -43
  2. package/dist/_virtual/rolldown_runtime.mjs +32 -0
  3. package/dist/client.d.mts +122 -0
  4. package/dist/client.mjs +63 -0
  5. package/dist/index.mjs +5 -2
  6. package/dist/module/docker.mjs +1 -1
  7. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/index.mjs +63 -0
  8. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/Client.mjs +284 -0
  9. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/alarm/AlarmService.mjs +198 -0
  10. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/alarm/AlarmStatus.mjs +16 -0
  11. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/alarm/index.mjs +4 -0
  12. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationAvailability.mjs +12 -0
  13. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationBinaryService.mjs +166 -0
  14. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationService.mjs +604 -0
  15. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationType.mjs +11 -0
  16. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/BillingMode.mjs +9 -0
  17. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/IApplicationInstanceDetails.mjs +11 -0
  18. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/Isolation.mjs +9 -0
  19. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/index.mjs +9 -0
  20. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/audit/AuditRecordType.mjs +33 -0
  21. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/audit/AuditService.mjs +95 -0
  22. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/audit/ChangeType.mjs +15 -0
  23. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/audit/index.mjs +5 -0
  24. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/BasicAuth.mjs +69 -0
  25. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/BearerAuth.mjs +52 -0
  26. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/BearerAuthFromSessionStorage.mjs +43 -0
  27. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/CookieAuth.mjs +53 -0
  28. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/FetchClient.mjs +82 -0
  29. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/MicroserviceClientRequestAuth.mjs +50 -0
  30. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/NodeJSCookieAuth.mjs +19 -0
  31. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/Paging.mjs +68 -0
  32. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/QueriesUtil.mjs +225 -0
  33. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/Service.mjs +186 -0
  34. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/Severity.mjs +18 -0
  35. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/index.mjs +13 -0
  36. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationBulkService.mjs +67 -0
  37. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationSecurityMode.mjs +13 -0
  38. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationService.mjs +362 -0
  39. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationStatus.mjs +16 -0
  40. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/device-registration/index.mjs +6 -0
  41. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/event/EventBinaryService.mjs +102 -0
  42. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/event/EventService.mjs +147 -0
  43. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/event/index.mjs +4 -0
  44. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/feature/FeatureService.mjs +89 -0
  45. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/feature/index.mjs +3 -0
  46. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/gettext-typed.mjs +7 -0
  47. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/gettext.mjs +9 -0
  48. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/identity/IdentityService.mjs +181 -0
  49. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/inventory/InventoryBinaryService.mjs +149 -0
  50. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/inventory/InventoryService.mjs +842 -0
  51. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/inventory/index.mjs +4 -0
  52. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/inventory-role/InventoryRoleService.mjs +139 -0
  53. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/inventory-role/index.mjs +3 -0
  54. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/measurement/ISeriesFilter.mjs +10 -0
  55. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/measurement/MeasurementService.mjs +205 -0
  56. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/measurement/index.mjs +4 -0
  57. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/OperationBulkGeneralStatus.mjs +20 -0
  58. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/OperationBulkService.mjs +157 -0
  59. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/OperationBulkStatus.mjs +16 -0
  60. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/OperationService.mjs +133 -0
  61. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/OperationStatus.mjs +16 -0
  62. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/index.mjs +7 -0
  63. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/public_api.mjs +84 -0
  64. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/realtime/MetaChannel.mjs +11 -0
  65. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/realtime/Realtime.mjs +103 -0
  66. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/realtime/index.mjs +3 -0
  67. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/services.mjs +54 -0
  68. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/smart-groups/SmartGroupsService.mjs +158 -0
  69. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/smart-rules/SmartRulesService.mjs +158 -0
  70. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/smart-rules/index.mjs +3 -0
  71. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/system-options/SystemOptionsService.mjs +82 -0
  72. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/system-options/index.mjs +3 -0
  73. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant/TenantService.mjs +373 -0
  74. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant/TenantStatus.mjs +11 -0
  75. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant/TfaStrategy.mjs +14 -0
  76. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant/index.mjs +5 -0
  77. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-login-options/ITenantLoginOptions.mjs +29 -0
  78. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-login-options/TenantLoginOptionsService.mjs +217 -0
  79. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-login-options/index.mjs +4 -0
  80. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-options/TenantOptionsService.mjs +183 -0
  81. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-options/index.mjs +3 -0
  82. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-security-options/TenantSecurityOptionsService.mjs +52 -0
  83. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-security-options/index.mjs +3 -0
  84. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/trusted-certificates/CrlService.mjs +112 -0
  85. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/trusted-certificates/TrustedCertificateService.mjs +299 -0
  86. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/trusted-certificates/index.mjs +4 -0
  87. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user/PasswordStrength.mjs +10 -0
  88. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user/UserInventoryRoleService.mjs +133 -0
  89. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user/UserService.mjs +730 -0
  90. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user/index.mjs +5 -0
  91. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user-group/UserGroupService.mjs +306 -0
  92. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user-group/index.mjs +3 -0
  93. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user-role/UserRoleService.mjs +70 -0
  94. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user-role/index.mjs +3 -0
  95. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/Client.d.mts +218 -0
  96. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/alarm/AlarmService.d.mts +153 -0
  97. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/alarm/AlarmStatus.d.mts +15 -0
  98. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/alarm/IAlarm.d.mts +84 -0
  99. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/alarm/SeverityFilter.d.mts +6 -0
  100. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/ApplicationAvailability.d.mts +8 -0
  101. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/ApplicationBinaryService.d.mts +46 -0
  102. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/ApplicationService.d.mts +339 -0
  103. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/ApplicationType.d.mts +9 -0
  104. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/BillingMode.d.mts +7 -0
  105. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IApplication.d.mts +30 -0
  106. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IApplicationBinary.d.mts +12 -0
  107. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IApplicationInstanceDetails.d.mts +71 -0
  108. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IApplicationReference.d.mts +19 -0
  109. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IApplicationVersion.d.mts +17 -0
  110. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IDeviceRegistrationProvider.d.mts +9 -0
  111. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IManifest.d.mts +81 -0
  112. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IProvider.d.mts +8 -0
  113. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IUploadParamsOverride.d.mts +9 -0
  114. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/Isolation.d.mts +7 -0
  115. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/audit/AuditRecordType.d.mts +32 -0
  116. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/audit/AuditService.d.mts +77 -0
  117. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/audit/ChangeType.d.mts +11 -0
  118. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/audit/IAuditRecord.d.mts +39 -0
  119. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/audit/IChange.d.mts +31 -0
  120. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/BasicAuth.d.mts +35 -0
  121. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/BearerAuth.d.mts +21 -0
  122. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/BearerAuthFromSessionStorage.d.mts +24 -0
  123. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/CookieAuth.d.mts +26 -0
  124. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/FetchClient.d.mts +24 -0
  125. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IAuthentication.d.mts +27 -0
  126. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/ICustomProperties.d.mts +10 -0
  127. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/ICustomPropertiesMap.d.mts +8 -0
  128. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IFetchClient.d.mts +13 -0
  129. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IFetchOptions.d.mts +24 -0
  130. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IFetchResponse.d.mts +28 -0
  131. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IIdentified.d.mts +8 -0
  132. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IMicroserviceSubscriptions.d.mts +18 -0
  133. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/INamed.d.mts +8 -0
  134. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IResult.d.mts +29 -0
  135. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IResultBase.d.mts +9 -0
  136. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IResultList.d.mts +39 -0
  137. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/ISource.d.mts +20 -0
  138. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/MicroserviceClientRequestAuth.d.mts +36 -0
  139. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/NodeJSCookieAuth.d.mts +14 -0
  140. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/Paging.d.mts +70 -0
  141. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/QueriesUtil.d.mts +168 -0
  142. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/Service.d.mts +48 -0
  143. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/Severity.d.mts +17 -0
  144. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/DeviceRegistrationBulkService.d.mts +43 -0
  145. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/DeviceRegistrationSecurityMode.d.mts +11 -0
  146. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/DeviceRegistrationService.d.mts +296 -0
  147. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/DeviceRegistrationStatus.d.mts +12 -0
  148. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/IDeviceCredentials.d.mts +25 -0
  149. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/IDeviceRegistration.d.mts +79 -0
  150. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/IDeviceRegistrationBulkResult.d.mts +29 -0
  151. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/event/EventBinaryService.d.mts +67 -0
  152. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/event/EventService.d.mts +120 -0
  153. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/event/IEvent.d.mts +42 -0
  154. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/event/IEventBinary.d.mts +28 -0
  155. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/feature/FeatureService.d.mts +59 -0
  156. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/feature/IFeatureToggle.d.mts +30 -0
  157. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/identity/IExternalIdentity.d.mts +27 -0
  158. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/identity/IdentityService.d.mts +107 -0
  159. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/inventory/IManagedObject.d.mts +95 -0
  160. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/inventory/InventoryBinaryService.d.mts +50 -0
  161. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/inventory/InventoryService.d.mts +594 -0
  162. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/inventory-role/InventoryRoleService.d.mts +111 -0
  163. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/measurement/IMeasurement.d.mts +61 -0
  164. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/measurement/IMeasurementFilter.d.mts +59 -0
  165. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/measurement/ISeries.d.mts +60 -0
  166. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/measurement/ISeriesFilter.d.mts +48 -0
  167. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/measurement/MeasurementService.d.mts +163 -0
  168. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/IOperation.d.mts +27 -0
  169. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/IOperationBulk.d.mts +58 -0
  170. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/IOperationBulkProgress.d.mts +29 -0
  171. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/OperationBulkGeneralStatus.d.mts +16 -0
  172. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/OperationBulkService.d.mts +130 -0
  173. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/OperationBulkStatus.d.mts +12 -0
  174. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/OperationService.d.mts +111 -0
  175. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/OperationStatus.d.mts +12 -0
  176. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/realtime/Realtime.d.mts +69 -0
  177. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/smart-groups/SmartGroupsService.d.mts +126 -0
  178. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/smart-rules/IRule.d.mts +22 -0
  179. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/smart-rules/SmartRulesService.d.mts +90 -0
  180. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/system-options/ISystemOption.d.mts +21 -0
  181. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/system-options/SystemOptionsService.d.mts +57 -0
  182. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/ICurrentTenant.d.mts +25 -0
  183. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/ISupportUser.d.mts +8 -0
  184. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/ITenant.d.mts +28 -0
  185. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/ITenantReference.d.mts +8 -0
  186. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/ITfaSettings.d.mts +32 -0
  187. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/TenantService.d.mts +264 -0
  188. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/TenantStatus.d.mts +7 -0
  189. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/TfaStrategy.d.mts +12 -0
  190. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-login-options/ITenantLoginOptions.d.mts +159 -0
  191. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-login-options/TenantLoginOptionsService.d.mts +176 -0
  192. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-options/ITenantOption.d.mts +12 -0
  193. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-options/ITenantOptionDetailParams.d.mts +13 -0
  194. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-options/TenantOptionsService.d.mts +150 -0
  195. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-policy/ITenantPolicy.d.mts +13 -0
  196. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-security-options/ITenantSecurityOption.d.mts +10 -0
  197. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-security-options/TenantSecurityOptionsService.d.mts +39 -0
  198. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/trusted-certificates/CrlService.d.mts +75 -0
  199. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/trusted-certificates/ICertificateRevocation.d.mts +14 -0
  200. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/trusted-certificates/ITrustedCertificate.d.mts +75 -0
  201. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/trusted-certificates/TrustedCertificateService.d.mts +181 -0
  202. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/ICurrentUser.d.mts +39 -0
  203. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/IResetPassword.d.mts +15 -0
  204. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/ITotp.d.mts +9 -0
  205. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/ITotpStatus.d.mts +7 -0
  206. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/IUser.d.mts +77 -0
  207. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/IUserInventoryRole.d.mts +16 -0
  208. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/PasswordStrength.d.mts +8 -0
  209. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/UserInventoryRoleService.d.mts +108 -0
  210. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/UserService.d.mts +400 -0
  211. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-group/IDevicePermissions.d.mts +8 -0
  212. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-group/IUserGroup.d.mts +44 -0
  213. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-group/UserGroupService.d.mts +215 -0
  214. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-role/IRole.d.mts +12 -0
  215. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-role/IRoleReference.d.mts +19 -0
  216. package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-role/UserRoleService.d.mts +57 -0
  217. package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.mjs +18 -0
  218. package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.mjs +29 -0
  219. package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.mjs +32 -0
  220. package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.mjs +21 -0
  221. package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.mjs +47 -0
  222. package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.mjs +33 -0
  223. package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.mjs +26 -0
  224. package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.mjs +40 -0
  225. package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.mjs +24 -0
  226. package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.mjs +62 -0
  227. package/dist/node_modules/.pnpm/b2a@1.1.2/node_modules/b2a/lib/index.mjs +44 -0
  228. package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.mjs +20 -0
  229. package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.mjs +12 -0
  230. package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.mjs +12 -0
  231. package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.mjs +23 -0
  232. package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.mjs +12 -0
  233. package/dist/node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.mjs +158 -0
  234. package/dist/node_modules/.pnpm/cometd-nodejs-client@1.0.2/node_modules/cometd-nodejs-client/cometd-nodejs-client.mjs +120 -0
  235. package/dist/node_modules/.pnpm/cometd@4.0.8/node_modules/cometd/cometd.mjs +2658 -0
  236. package/dist/node_modules/.pnpm/cross-fetch@4.1.0_encoding@0.1.13/node_modules/cross-fetch/dist/node-ponyfill.mjs +24 -0
  237. package/dist/node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.mjs +84 -0
  238. package/dist/node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.mjs +27 -0
  239. package/dist/node_modules/.pnpm/encoding@0.1.13/node_modules/encoding/lib/encoding.mjs +60 -0
  240. package/dist/node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.mjs +18 -0
  241. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.mjs +12 -0
  242. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.mjs +12 -0
  243. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.mjs +12 -0
  244. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.mjs +12 -0
  245. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.mjs +12 -0
  246. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.mjs +12 -0
  247. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.mjs +12 -0
  248. package/dist/node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.mjs +12 -0
  249. package/dist/node_modules/.pnpm/es-set-tostringtag@2.1.0/node_modules/es-set-tostringtag/index.mjs +32 -0
  250. package/dist/node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/index.d.mts +50 -0
  251. package/dist/node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/form_data.mjs +247 -0
  252. package/dist/node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/populate.mjs +16 -0
  253. package/dist/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +58 -0
  254. package/dist/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +13 -0
  255. package/dist/node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.mjs +357 -0
  256. package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.mjs +14 -0
  257. package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.mjs +12 -0
  258. package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.mjs +25 -0
  259. package/dist/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.mjs +12 -0
  260. package/dist/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.mjs +19 -0
  261. package/dist/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.mjs +21 -0
  262. package/dist/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.mjs +35 -0
  263. package/dist/node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.mjs +16 -0
  264. package/dist/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +16 -0
  265. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +349 -0
  266. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +194 -0
  267. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +34 -0
  268. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +141 -0
  269. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +53 -0
  270. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +458 -0
  271. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +154 -0
  272. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +172 -0
  273. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2587 -0
  274. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2223 -0
  275. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +230 -0
  276. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +428 -0
  277. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +430 -0
  278. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +233 -0
  279. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +295 -0
  280. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +126 -0
  281. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +198 -0
  282. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +183 -0
  283. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +45 -0
  284. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +110 -0
  285. package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +93 -0
  286. package/dist/node_modules/.pnpm/isomorphic-cometd@1.1.0_cometd-nodejs-client@1.0.2_cometd@4.0.8/node_modules/isomorphic-cometd/node.mjs +18 -0
  287. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.mjs +12 -0
  288. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.mjs +12 -0
  289. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.mjs +14 -0
  290. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.mjs +12 -0
  291. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.mjs +12 -0
  292. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.mjs +12 -0
  293. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.mjs +12 -0
  294. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.mjs +17 -0
  295. package/dist/node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/db.mjs +7051 -0
  296. package/dist/node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.mjs +21 -0
  297. package/dist/node_modules/.pnpm/mime-types@2.1.35/node_modules/mime-types/index.mjs +123 -0
  298. package/dist/node_modules/.pnpm/node-fetch@2.7.0_encoding@0.1.13/node_modules/node-fetch/lib/index.mjs +1174 -0
  299. package/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +48 -0
  300. package/dist/node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/index.mjs +145 -0
  301. package/dist/node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/lib/mappingTable.mjs +35563 -0
  302. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs +31 -0
  303. package/dist/node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.mjs +122 -0
  304. package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL-impl.mjs +145 -0
  305. package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.mjs +174 -0
  306. package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/public-api.mjs +21 -0
  307. package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.mjs +878 -0
  308. package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/utils.mjs +22 -0
  309. package/dist/package.mjs +1 -1
  310. package/dist/utils/client.d.mts +1 -1
  311. package/dist/utils/client.mjs +4 -1
  312. package/dist/utils/credentials.d.mts +1 -1
  313. package/dist/utils/credentials.mjs +2 -1
  314. package/dist/utils/resources.d.mts +1 -1
  315. package/package.json +8 -4
@@ -0,0 +1,842 @@
1
+ import { __awaiter } from "../../../../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.mjs";
2
+ import { Service } from "../core/Service.mjs";
3
+ import { QueriesUtil } from "../core/QueriesUtil.mjs";
4
+ import "../core/index.mjs";
5
+ import { InventoryBinaryService } from "./InventoryBinaryService.mjs";
6
+
7
+ //#region node_modules/.pnpm/@c8y+client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/inventory/InventoryService.js
8
+ /**
9
+ * Possible types of a child.
10
+ */
11
+ var ChildType;
12
+ (function(ChildType) {
13
+ ChildType["ASSETS"] = "childAssets";
14
+ ChildType["DEVICES"] = "childDevices";
15
+ ChildType["ADDITIONS"] = "childAdditions";
16
+ })(ChildType || (ChildType = {}));
17
+ /**
18
+ * This class allows for managing managed objects and different child types, see [[ChildType]].
19
+ */
20
+ var InventoryService = class extends Service {
21
+ constructor(client, realtime) {
22
+ super(client, realtime);
23
+ this.baseUrl = "inventory";
24
+ this.listUrl = "managedObjects";
25
+ this.propertyName = "managedObjects";
26
+ this.channel = "/managedobjects/*";
27
+ this.inventoriesQueryParamName = "query";
28
+ this.devicesQueryParamName = "q";
29
+ this.queriesUtil = new QueriesUtil();
30
+ this.binary = new InventoryBinaryService(client);
31
+ }
32
+ /**
33
+ * Gets the details of managed object
34
+ *
35
+ * @param {IdReference} managedObjectOrId ManagedObject or Id of the ManagedObject.
36
+ * @param {object} filter Filter object.
37
+ *
38
+ * @returns Response wrapped in [[IResult]]
39
+ *
40
+ * **Example**
41
+ * ```typescript
42
+ *
43
+ * const managedObjId: number = 1;
44
+ * const filter = { withChildren: false };
45
+ *
46
+ * (async () => {
47
+ * const {data, res} = await inventoryService.detail(managedObjId, filter);
48
+ * })();
49
+ * ```
50
+ */
51
+ detail(managedObjectOrId_1) {
52
+ const _super = Object.create(null, { detail: { get: () => super.detail } });
53
+ return __awaiter(this, arguments, void 0, function* (managedObjectOrId, filter = {}) {
54
+ return _super.detail.call(this, managedObjectOrId, filter);
55
+ });
56
+ }
57
+ /**
58
+ * Creates a new managed object.
59
+ *
60
+ * @param {Partial<IManagedObject>} managedObject
61
+ *
62
+ * @returns Response wrapped in [[IResult]]
63
+ *
64
+ * **Example**
65
+ * ```typescript
66
+ *
67
+ * const partialManagedObj: Partial<IManagedObject> = {
68
+ * customFragment: 'yourData'
69
+ * };
70
+ *
71
+ * (async () => {
72
+ * const {data, res} = await inventoryService.create(partialManagedObj);
73
+ * })();
74
+ * ```
75
+ */
76
+ create(managedObject) {
77
+ const _super = Object.create(null, { create: { get: () => super.create } });
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ return _super.create.call(this, managedObject);
80
+ });
81
+ }
82
+ /**
83
+ * Updates managed object data.
84
+ *
85
+ * @param {Partial<IManagedObject>} managedObject Managed object is partially updatable.
86
+ *
87
+ * @returns Response wrapped in [[IResult]]
88
+ *
89
+ * **Example**
90
+ * ```typescript
91
+ *
92
+ * const partialUpdateObject: Partial<IManagedObject> = {
93
+ * customFragment: 'Changed data',
94
+ * name: 'Name'
95
+ * };
96
+ *
97
+ * (async () => {
98
+ * const {data, res} = await inventoryService.update(partialUpdateObject);
99
+ * })();
100
+ * ```
101
+ */
102
+ update(managedObject) {
103
+ const _super = Object.create(null, { update: { get: () => super.update } });
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ return _super.update.call(this, managedObject);
106
+ });
107
+ }
108
+ /**
109
+ * Gets the list of managed objects filtered by parameters.
110
+ *
111
+ * @returns Response wrapped in [[IResultList]]
112
+ *
113
+ * @param {object} filter Object containing filters for querying managed objects.
114
+ *
115
+ * **Example**
116
+ * ```typescript
117
+ *
118
+ * const filter: object = {
119
+ * pageSize: 100,
120
+ * withTotalPages: true
121
+ * };
122
+ *
123
+ * (async () => {
124
+ * const {data, res, paging} = await inventoryService.list(filter);
125
+ * })();
126
+ * ```
127
+ */
128
+ list() {
129
+ const _super = Object.create(null, { list: { get: () => super.list } });
130
+ return __awaiter(this, arguments, void 0, function* (filter = {}) {
131
+ return _super.list.call(this, filter);
132
+ });
133
+ }
134
+ /**
135
+ * Gets total count of managed objects filtered by parameters.
136
+ *
137
+ * @returns Response wrapped in [[IResultList]]
138
+ *
139
+ * @param {object} filter Object containing filters for querying managed objects.
140
+ *
141
+ * **Example**
142
+ * ```typescript
143
+ *
144
+ * const filter: object = {
145
+ * type: 'c8y_MQTTDevice'
146
+ * };
147
+ *
148
+ * (async () => {
149
+ * const {data, res} = await inventoryService.count(filter);
150
+ * })();
151
+ * ```
152
+ */
153
+ count() {
154
+ return __awaiter(this, arguments, void 0, function* (filter = {}) {
155
+ const url = `${this.listUrl}/count`;
156
+ const res = yield this.fetch(url, this.changeFetchOptions({ params: filter }, url));
157
+ return {
158
+ res,
159
+ data: yield res.json()
160
+ };
161
+ });
162
+ }
163
+ /**
164
+ * Gets the list of all managed objects filtered and sorted by given query.
165
+ *
166
+ * @returns Response wrapped in [[IResultList]]
167
+ *
168
+ * @param {object} filter Object containing filters for querying managed objects.
169
+ *
170
+ * **Example**
171
+ * ```typescript
172
+ *
173
+ * const filter: object = {
174
+ * pageSize: 100,
175
+ * withTotalPages: true
176
+ * };
177
+ *
178
+ * const query = {
179
+ * name: 'MY-NAM*'
180
+ * }
181
+ *
182
+ * (async () => {
183
+ * const {data, res, paging} = await inventoryService.listQuery(query, filter);
184
+ * })();
185
+ * ```
186
+ */
187
+ listQuery(query_1) {
188
+ const _super = Object.create(null, { list: { get: () => super.list } });
189
+ return __awaiter(this, arguments, void 0, function* (query, filter = {}) {
190
+ filter[this.inventoriesQueryParamName] = this.queriesUtil.buildQuery(query);
191
+ return _super.list.call(this, filter);
192
+ });
193
+ }
194
+ /**
195
+ * Gets the list of all devices filtered and sorted by given query.
196
+ *
197
+ * @returns Response wrapped in [[IResultList]]
198
+ *
199
+ * @param {object} filter Object containing filters for querying devices.
200
+ *
201
+ * **Example**
202
+ * ```typescript
203
+ *
204
+ * const filter: object = {
205
+ * pageSize: 100,
206
+ * withTotalPages: true
207
+ * };
208
+ *
209
+ * const query = {
210
+ * name: 'MY-NAM*'
211
+ * }
212
+ *
213
+ * (async () => {
214
+ * const {data, res, paging} = await inventoryService.listQueryDevices(query, filter);
215
+ * })();
216
+ * ```
217
+ */
218
+ listQueryDevices(query_1) {
219
+ const _super = Object.create(null, { list: { get: () => super.list } });
220
+ return __awaiter(this, arguments, void 0, function* (query, filter = {}) {
221
+ filter[this.devicesQueryParamName] = this.queriesUtil.buildQuery(query);
222
+ return _super.list.call(this, filter);
223
+ });
224
+ }
225
+ /**
226
+ * Removes managed object with given id.
227
+ *
228
+ * @returns Response wrapped in [[IResult]]
229
+ *
230
+ * @param {IdReference} managedObjectOrId ManagedObject or Id of the ManagedObject.
231
+ * @param {object} params Additional query params.
232
+ *
233
+ * **Example**
234
+ * ```typescript
235
+ *
236
+ * const managedObjectId: number = 1;
237
+ * const params: any = {
238
+ * cascade: true
239
+ * }
240
+ *
241
+ * (async () => {
242
+ * const {data, res} = await inventoryService.delete(managedObjectId, params);
243
+ * })();
244
+ * ```
245
+ */
246
+ delete(managedObjectOrId_1) {
247
+ const _super = Object.create(null, { delete: { get: () => super.delete } });
248
+ return __awaiter(this, arguments, void 0, function* (managedObjectOrId, params = {}) {
249
+ return _super.delete.call(this, managedObjectOrId, params);
250
+ });
251
+ }
252
+ /**
253
+ * Gets a list of child additions from a given managed object (parent)
254
+ *
255
+ * @returns Response wrapped in [[IResultList]]
256
+ *
257
+ * @param {IdReference} parentReference
258
+ * @param {object} filter
259
+ *
260
+ * **Example**
261
+ * ```typescript
262
+ * const parentReferenceId: IdReference = 1;
263
+ *
264
+ * const filter: object = {
265
+ * pageSize: 100,
266
+ * withTotalPages: true
267
+ * };
268
+ *
269
+ * (async () => {
270
+ * const {data, res, paging} = await inventoryService.childAdditionsList(parentReferenceId, filter);
271
+ * })();
272
+ * ```
273
+ */
274
+ childAdditionsList(parentReference_1) {
275
+ return __awaiter(this, arguments, void 0, function* (parentReference, filter = {}) {
276
+ return this.listChildren(ChildType.ADDITIONS, parentReference, filter);
277
+ });
278
+ }
279
+ /**
280
+ * Creates a new managed object as child addition to another managed object (parent)
281
+ *
282
+ * @returns Response wrapped in [[IResult]]
283
+ *
284
+ * @param {Partial<IManagedObject>} managedObject
285
+ * @param {IdReference} parentReference
286
+ *
287
+ * **Example**
288
+ * ```typescript
289
+ *
290
+ * const mOAsChildAddition: Partial<IManagedObject> = {
291
+ * name: 'Child addition MO',
292
+ * type: 'new type',
293
+ * ...
294
+ * };
295
+ *
296
+ * // This is the identifier of the managed object which should be the parent of
297
+ * // mOAsChildAddition, see above.
298
+ * const parentReferenceId: number = 1;
299
+ *
300
+ * (async () => {
301
+ * const {data, res} = await inventoryService.childAdditionsCreate(mOAsChildAddition, parentReferenceId);
302
+ * })();
303
+ * ```
304
+ */
305
+ childAdditionsCreate(managedObject, parentReference) {
306
+ return __awaiter(this, void 0, void 0, function* () {
307
+ return this.createChild(ChildType.ADDITIONS, managedObject, parentReference);
308
+ });
309
+ }
310
+ /**
311
+ * Adds an existing managed object as child addition to another managed object (parent)
312
+ *
313
+ * @returns Response wrapped in [[IResult]]
314
+ *
315
+ * @param {IdReference} childReference
316
+ * @param {IdReference} parentReference
317
+ *
318
+ * **Example**
319
+ * ```typescript
320
+ *
321
+ * const childRef: number = 2;
322
+ * const parentReferenceId: number = 1;
323
+ *
324
+ * (async () => {
325
+ * const {data, res} = await inventoryService.childAdditionsCreate(childRef, parentReferenceId);
326
+ * })();
327
+ * ```
328
+ */
329
+ childAdditionsAdd(childReference, parentReference) {
330
+ return __awaiter(this, void 0, void 0, function* () {
331
+ return this.addChild(ChildType.ADDITIONS, childReference, parentReference);
332
+ });
333
+ }
334
+ /**
335
+ * Adds bulk of existing managed objects as child addition to another managed object (parent).
336
+ *
337
+ * @returns Response wrapped in array of [[IResult]]
338
+ *
339
+ * @param {IdReference[]} childReference List of existing managed objects IDs that should be added to another managed object (parent).
340
+ * @param {IdReference} parentReference
341
+ *
342
+ * **Example**
343
+ * ```typescript
344
+ *
345
+ * const childAdditionsRefIds: string[] = ['2', '3'];
346
+ * const parentReferenceId: number = 1;
347
+ *
348
+ * (async () => {
349
+ * const {data, res} = await inventoryService.childAdditionsBulkAdd(childAdditionsRefIds, parentReferenceId);
350
+ * })();
351
+ * ```
352
+ */
353
+ childAdditionsBulkAdd(childReference, parentReference) {
354
+ return __awaiter(this, void 0, void 0, function* () {
355
+ return this.addChildBulk(ChildType.ADDITIONS, childReference, parentReference);
356
+ });
357
+ }
358
+ /**
359
+ * Removes an existing managed object as child addition from another managed object (parent)
360
+ *
361
+ * @returns Response wrapped in [[IResult]]
362
+ *
363
+ * @param {IdReference} childReference
364
+ * @param {IdReference} parentReference
365
+ *
366
+ * **Example**
367
+ * ```typescript
368
+ *
369
+ * const childRef: number = 2;
370
+ * const parentReferenceId: number = 1;
371
+ *
372
+ * (async () => {
373
+ * const {data, res} = await inventoryService.childAdditionsRemove(childRef, parentReferenceId);
374
+ * })();
375
+ * ```
376
+ */
377
+ childAdditionsRemove(childReference, parentReference) {
378
+ return __awaiter(this, void 0, void 0, function* () {
379
+ return this.removeChild(ChildType.ADDITIONS, childReference, parentReference);
380
+ });
381
+ }
382
+ /**
383
+ * Gets a list of child assets from a given managed object (parent)
384
+ *
385
+ * @returns Response wrapped in [[IResultList]]
386
+ *
387
+ * @param {IdReference} parentReference
388
+ * @param {object} filter
389
+ *
390
+ * **Example**
391
+ * ```typescript
392
+ *
393
+ * const parentReferenceId: IdReference = 1;
394
+ *
395
+ * const filter: object = {
396
+ * pageSize: 100,
397
+ * withTotalPages: true
398
+ * };
399
+ *
400
+ * (async () => {
401
+ * const {data, res, paging} = await inventoryService.childAssetsList(parentReferenceId, filter);
402
+ * })();
403
+ * ```
404
+ */
405
+ childAssetsList(parentReference_1) {
406
+ return __awaiter(this, arguments, void 0, function* (parentReference, filter = {}) {
407
+ return this.listChildren(ChildType.ASSETS, parentReference, filter);
408
+ });
409
+ }
410
+ /**
411
+ * Creates a new managed object as child asset to another managed object (parent)
412
+ *
413
+ * @returns Response wrapped in [[IResult]]
414
+ *
415
+ * @param {Partial<IManagedObject>} managedObject
416
+ * @param {IdReference} parentReference
417
+ *
418
+ * **Example**
419
+ * ```typescript
420
+ *
421
+ * const mOAsChildAsset: Partial<IManagedObject> = {
422
+ * name: 'Child asset MO',
423
+ * type: 'new type',
424
+ * ...
425
+ * };
426
+ *
427
+ * // This is the identifier of the managed object which should be the parent of
428
+ * // mOAsChildAsset, see above.
429
+ * const parentReferenceId: number = 1;
430
+ *
431
+ * (async () => {
432
+ * const {data, res} = await inventoryService.childAdditionsCreate(mOAsChildAddition, parentReferenceId);
433
+ * })();
434
+ * ```
435
+ */
436
+ childAssetsCreate(managedObject, parentReference) {
437
+ return __awaiter(this, void 0, void 0, function* () {
438
+ return this.createChild(ChildType.ASSETS, managedObject, parentReference);
439
+ });
440
+ }
441
+ /**
442
+ * Adds an existing managed object as child asset to another managed object (parent)
443
+ *
444
+ * @returns Response wrapped in [[IResult]]
445
+ *
446
+ * @param {IdReference} childReference
447
+ * @param {IdReference} parentReference
448
+ *
449
+ * **Example**
450
+ * ```typescript
451
+ *
452
+ * const childRef: number = 2;
453
+ * const parentReferenceId: number = 1;
454
+ *
455
+ * (async () => {
456
+ * const {data, res} = await inventoryService.childAssetsAdd(childRef, parentReferenceId);
457
+ * })();
458
+ * ```
459
+ */
460
+ childAssetsAdd(childReference, parentReference) {
461
+ return __awaiter(this, void 0, void 0, function* () {
462
+ return this.addChild(ChildType.ASSETS, childReference, parentReference);
463
+ });
464
+ }
465
+ /**
466
+ * Adds bulk of existing managed objects as child assets to another managed object (parent).
467
+ *
468
+ * @returns Response wrapped in array of [[IResult]]
469
+ *
470
+ * @param {IdReference[]} childReference List of existing managed objects IDs that should be added to another managed object (parent).
471
+ * @param {IdReference} parentReference
472
+ *
473
+ * **Example**
474
+ * ```typescript
475
+ *
476
+ * const childAssetsRefIds: string[] = ['2', '3'];
477
+ * const parentReferenceId: number = 1;
478
+ *
479
+ * (async () => {
480
+ * const {data, res} = await inventoryService.childAssetsBulkAdd(childAssetsRefIds, parentReferenceId);
481
+ * })();
482
+ * ```
483
+ */
484
+ childAssetsBulkAdd(childReference, parentReference) {
485
+ return __awaiter(this, void 0, void 0, function* () {
486
+ return this.addChildBulk(ChildType.ASSETS, childReference, parentReference);
487
+ });
488
+ }
489
+ /**
490
+ * Removes an existing managed object as child asset from another managed object (parent)
491
+ *
492
+ * @returns Response wrapped in [[IResult]]
493
+ *
494
+ * @param {IdReference} childReference
495
+ * @param {IdReference} parentReference
496
+ *
497
+ * **Example**
498
+ * ```typescript
499
+ *
500
+ * const childRef: number = 2;
501
+ * const parentReferenceId: number = 1;
502
+ *
503
+ * (async () => {
504
+ * const {data, res} = await inventoryService.childAssetsRemove(childRef, parentReferenceId);
505
+ * })();
506
+ * ```
507
+ */
508
+ childAssetsRemove(childReference, parentReference) {
509
+ return __awaiter(this, void 0, void 0, function* () {
510
+ return this.removeChild(ChildType.ASSETS, childReference, parentReference);
511
+ });
512
+ }
513
+ /**
514
+ * Gets a list of child devices from a given managed object (parent)
515
+ *
516
+ * @returns Response wrapped in [[IResultList]]
517
+ *
518
+ * @param {IdReference} parentReference
519
+ * @param {object} filter
520
+ *
521
+ * **Example**
522
+ * ```typescript
523
+ *
524
+ * const parentReferenceId: IdReference = 1;
525
+ *
526
+ * const filter: object = {
527
+ * pageSize: 100,
528
+ * withTotalPages: true
529
+ * };
530
+ *
531
+ * (async () => {
532
+ * const {data, res, paging} = await inventoryService.childDevicesList(parentReferenceId, filter);
533
+ * })();
534
+ * ```
535
+ */
536
+ childDevicesList(parentReference_1) {
537
+ return __awaiter(this, arguments, void 0, function* (parentReference, filter = {}) {
538
+ return this.listChildren(ChildType.DEVICES, parentReference, filter);
539
+ });
540
+ }
541
+ /**
542
+ * Creates a new managed object as child device to another managed object (parent)
543
+ *
544
+ * @returns Response wrapped in [[IResult]]
545
+ *
546
+ * @param {Partial<IManagedObject>} managedObject
547
+ * @param {IdReference} parentReference
548
+ *
549
+ * **Example**
550
+ * ```typescript
551
+ *
552
+ * const mOAsChildDevice: Partial<IManagedObject> = {
553
+ * name: 'Child device MO',
554
+ * type: 'new type',
555
+ * ...
556
+ * };
557
+ *
558
+ * // This is the identifier of the managed object which should be the parent of
559
+ * // mOAsChildDevice, see above.
560
+ * const parentReferenceId: number = 1;
561
+ *
562
+ * (async () => {
563
+ * const {data, res} = await inventoryService.childDevicesCreate(mOAsChildDevice, parentReferenceId);
564
+ * })();
565
+ * ```
566
+ */
567
+ childDevicesCreate(managedObject, parentReference) {
568
+ return __awaiter(this, void 0, void 0, function* () {
569
+ return this.createChild(ChildType.DEVICES, managedObject, parentReference);
570
+ });
571
+ }
572
+ /**
573
+ * Adds an existing managed object as child device to another managed object (parent)
574
+ *
575
+ * @returns Response wrapped in [[IResult]]
576
+ *
577
+ * @param {IdReference} childReference
578
+ * @param {IdReference} parentReference
579
+ *
580
+ * **Example**
581
+ * ```typescript
582
+ *
583
+ * const childRef: number = 2;
584
+ * const parentReferenceId: number = 1;
585
+ *
586
+ * (async () => {
587
+ * const {data, res} = await inventoryService.childDevicesAdd(childRef, parentReferenceId);
588
+ * })();
589
+ * ```
590
+ */
591
+ childDevicesAdd(childReference, parentReference) {
592
+ return __awaiter(this, void 0, void 0, function* () {
593
+ return this.addChild(ChildType.DEVICES, childReference, parentReference);
594
+ });
595
+ }
596
+ /**
597
+ * Adds bulk of existing managed objects as child devices to another managed object (parent).
598
+ *
599
+ * @returns Response wrapped in array of [[IResult]]
600
+ *
601
+ * @param {IdReference[]} childReference List of existing managed objects IDs that should be added to another managed object (parent).
602
+ * @param {IdReference} parentReference
603
+ *
604
+ * **Example**
605
+ * ```typescript
606
+ *
607
+ * const childDevicesRefIds: string[] = ['2', '3'];
608
+ * const parentReferenceId: number = 1;
609
+ *
610
+ * (async () => {
611
+ * const {data, res} = await inventoryService.childDevicesBulkAdd(childDevicesRefIds, parentReferenceId);
612
+ * })();
613
+ * ```
614
+ */
615
+ childDevicesBulkAdd(childReference, parentReference) {
616
+ return __awaiter(this, void 0, void 0, function* () {
617
+ return this.addChildBulk(ChildType.DEVICES, childReference, parentReference);
618
+ });
619
+ }
620
+ /**
621
+ * Removes an existing managed object as child device from another managed object (parent)
622
+ *
623
+ * @returns Response wrapped in [[IResult]]
624
+ *
625
+ * @param {IdReference} childReference
626
+ * @param {IdReference} parentReference
627
+ *
628
+ * **Example**
629
+ * ```typescript
630
+ *
631
+ * const childRef: number = 2;
632
+ * const parentReferenceId: number = 1;
633
+ *
634
+ * (async () => {
635
+ * const {data, res} = await inventoryService.childDevicesRemove(childRef, parentReferenceId);
636
+ * })();
637
+ * ```
638
+ */
639
+ childDevicesRemove(childReference, parentReference) {
640
+ return __awaiter(this, void 0, void 0, function* () {
641
+ return this.removeChild(ChildType.DEVICES, childReference, parentReference);
642
+ });
643
+ }
644
+ /**
645
+ * Gets an array of measurement fragments supported by the specified managedObject.
646
+ * e.g. ["c8y_Temperature", "c8y_Humidity"]
647
+ *
648
+ * @returns array of supported measurement fragments
649
+ *
650
+ * @param {IdReference} managedObjectOrId
651
+ */
652
+ getSupportedMeasurements(managedObjectOrId) {
653
+ return __awaiter(this, void 0, void 0, function* () {
654
+ return this.getSupportedMeasurementDetails(managedObjectOrId, "supportedMeasurements");
655
+ });
656
+ }
657
+ /**
658
+ * Gets an array of measurement series supported by the specified managedObject.
659
+ * e.g. ["c8y_Temperature.T", "c8y_Humidity.H"]
660
+ *
661
+ * @returns array of supported measurement series
662
+ *
663
+ * @param {IdReference} managedObjectOrId
664
+ */
665
+ getSupportedSeries(managedObjectOrId) {
666
+ return __awaiter(this, void 0, void 0, function* () {
667
+ return this.getSupportedMeasurementDetails(managedObjectOrId, "supportedSeries");
668
+ });
669
+ }
670
+ /**
671
+ * Gets an array of measurement series and fragments supported by the specified managedObject.
672
+ *
673
+ * @returns array of supported measurement series and fragments
674
+ *
675
+ * @param {IdReference} managedObjectOrId
676
+ */
677
+ getMeasurementsAndSeries(managedObjectOrId) {
678
+ return __awaiter(this, void 0, void 0, function* () {
679
+ const [supportedMeasurements, supportedSeries] = yield Promise.all([this.getSupportedMeasurements(managedObjectOrId), this.getSupportedSeries(managedObjectOrId)]);
680
+ const sortedSupportedMeasurements = supportedMeasurements.sort((a, b) => b.length - a.length);
681
+ return supportedSeries.map((s) => {
682
+ const fragment = sortedSupportedMeasurements.find((m) => s.indexOf(`${m}.`) === 0);
683
+ return {
684
+ fragment,
685
+ series: s.replace(`${fragment}.`, "")
686
+ };
687
+ }).filter((obj) => !!obj.fragment);
688
+ });
689
+ }
690
+ /**
691
+ * Gets a list of KPIs (data point library entries) matching a given managed object
692
+ *
693
+ * @returns Response wrapped in [[IResultList]]
694
+ *
695
+ * @param {IdReference} parentReference
696
+ * @param {object} filter
697
+ */
698
+ assetKPIsList(parentReference_1) {
699
+ return __awaiter(this, arguments, void 0, function* (parentReference, filter = {}) {
700
+ return this.listKPIs(parentReference, filter);
701
+ });
702
+ }
703
+ listKPIs(parentReference_1) {
704
+ return __awaiter(this, arguments, void 0, function* (parentReference, filter = {}) {
705
+ const headers = { accept: "application/json" };
706
+ const url = this.getChildrenUrl("kpis", parentReference);
707
+ const res = yield this.fetch(url, this.changeFetchOptions({
708
+ headers,
709
+ params: filter
710
+ }, url));
711
+ const json = yield res.json();
712
+ return {
713
+ res,
714
+ data: json[this.propertyName],
715
+ paging: this.getPaging(json, filter)
716
+ };
717
+ });
718
+ }
719
+ onBeforeUpdate(objWithId) {
720
+ delete objWithId.lastUpdated;
721
+ return objWithId;
722
+ }
723
+ onBeforeCreate(managedObject) {
724
+ delete managedObject.id;
725
+ delete managedObject.lastUpdated;
726
+ return managedObject;
727
+ }
728
+ getChildrenUrl(type, parentReference) {
729
+ return `${this.getDetailUrl(parentReference)}/${type}`;
730
+ }
731
+ getChildUrl(type, childReference, parentReference) {
732
+ const childId = this.getIdString(childReference);
733
+ return `${this.getChildrenUrl(type, parentReference)}/${childId}`;
734
+ }
735
+ listChildren(type_1, parentReference_1) {
736
+ return __awaiter(this, arguments, void 0, function* (type, parentReference, filter = {}) {
737
+ const headers = { "content-type": "application/json" };
738
+ const url = this.getChildrenUrl(type, parentReference);
739
+ const res = yield this.fetch(url, {
740
+ headers,
741
+ params: filter
742
+ });
743
+ const json = yield res.json();
744
+ const data = json.references.map((ref) => ref.managedObject);
745
+ const paging = this.getPaging(json, filter);
746
+ paging.list = (pagingFilter) => this.listChildren(type, parentReference, pagingFilter);
747
+ return {
748
+ res,
749
+ data,
750
+ paging
751
+ };
752
+ });
753
+ }
754
+ createChild(type, managedObject, parentReference) {
755
+ return __awaiter(this, void 0, void 0, function* () {
756
+ const url = this.getChildrenUrl(type, parentReference);
757
+ const method = "POST";
758
+ const body = JSON.stringify(this.onBeforeCreate(managedObject));
759
+ const headers = {
760
+ "content-type": this.mimeType("managedObject"),
761
+ accept: "application/json"
762
+ };
763
+ const res = yield this.fetch(url, {
764
+ method,
765
+ body,
766
+ headers
767
+ });
768
+ return {
769
+ res,
770
+ data: yield res.json()
771
+ };
772
+ });
773
+ }
774
+ addChild(type, childReference, parentReference) {
775
+ return __awaiter(this, void 0, void 0, function* () {
776
+ const url = this.getChildrenUrl(type, parentReference);
777
+ const method = "POST";
778
+ const childId = this.getIdString(childReference);
779
+ const body = JSON.stringify({ managedObject: { id: String(childId) } });
780
+ const headers = {
781
+ accept: "application/json",
782
+ "content-type": this.mimeType("managedObjectReference")
783
+ };
784
+ const res = yield this.fetch(url, {
785
+ method,
786
+ body,
787
+ headers
788
+ });
789
+ let data = yield res.json();
790
+ data = data.managedObject;
791
+ return {
792
+ res,
793
+ data
794
+ };
795
+ });
796
+ }
797
+ addChildBulk(type, childReferenceArray, parentReference) {
798
+ return __awaiter(this, void 0, void 0, function* () {
799
+ const url = this.getChildrenUrl(type, parentReference);
800
+ const method = "POST";
801
+ const references = childReferenceArray.map((childId) => ({ managedObject: { id: this.getIdString(childId) } }));
802
+ const body = JSON.stringify({ references });
803
+ const headers = {
804
+ accept: "application/json",
805
+ "content-type": this.mimeType("managedObjectReferenceCollection")
806
+ };
807
+ const res = yield this.fetch(url, {
808
+ method,
809
+ body,
810
+ headers
811
+ });
812
+ return {
813
+ res,
814
+ data: (yield res.json()).references.map((obj) => obj.managedObject)
815
+ };
816
+ });
817
+ }
818
+ removeChild(type, childReference, parentReference) {
819
+ return __awaiter(this, void 0, void 0, function* () {
820
+ const childId = this.getIdString(childReference);
821
+ const url = `${this.getChildrenUrl(type, parentReference)}/${childId}`;
822
+ return {
823
+ res: yield this.fetch(url, {
824
+ method: "DELETE",
825
+ headers: { accept: "application/json" }
826
+ }),
827
+ data: null
828
+ };
829
+ });
830
+ }
831
+ getSupportedMeasurementDetails(managedObjectOrId_1) {
832
+ return __awaiter(this, arguments, void 0, function* (managedObjectOrId, type = "supportedSeries") {
833
+ const url = `${this.getDetailUrl(managedObjectOrId)}/${type}`;
834
+ this.getIdString(managedObjectOrId);
835
+ const data = yield (yield this.fetch(url, { headers: { accept: "application/json" } })).json();
836
+ return data.c8y_SupportedMeasurements || data.c8y_SupportedSeries;
837
+ });
838
+ }
839
+ };
840
+
841
+ //#endregion
842
+ export { ChildType, InventoryService };