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.
- package/README.md +19 -43
- package/dist/_virtual/rolldown_runtime.mjs +32 -0
- package/dist/client.d.mts +122 -0
- package/dist/client.mjs +63 -0
- package/dist/index.mjs +5 -2
- package/dist/module/docker.mjs +1 -1
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/index.mjs +63 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.mjs +18 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.mjs +29 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.mjs +32 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.mjs +21 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.mjs +47 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.mjs +33 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.mjs +26 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.mjs +40 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.mjs +24 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.mjs +62 -0
- package/dist/node_modules/.pnpm/b2a@1.1.2/node_modules/b2a/lib/index.mjs +44 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.mjs +20 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.mjs +12 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.mjs +12 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.mjs +23 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.mjs +12 -0
- package/dist/node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.mjs +158 -0
- package/dist/node_modules/.pnpm/cometd-nodejs-client@1.0.2/node_modules/cometd-nodejs-client/cometd-nodejs-client.mjs +120 -0
- package/dist/node_modules/.pnpm/cometd@4.0.8/node_modules/cometd/cometd.mjs +2658 -0
- package/dist/node_modules/.pnpm/cross-fetch@4.1.0_encoding@0.1.13/node_modules/cross-fetch/dist/node-ponyfill.mjs +24 -0
- package/dist/node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.mjs +84 -0
- package/dist/node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.mjs +27 -0
- package/dist/node_modules/.pnpm/encoding@0.1.13/node_modules/encoding/lib/encoding.mjs +60 -0
- package/dist/node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.mjs +18 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.mjs +12 -0
- package/dist/node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.mjs +12 -0
- package/dist/node_modules/.pnpm/es-set-tostringtag@2.1.0/node_modules/es-set-tostringtag/index.mjs +32 -0
- package/dist/node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/index.d.mts +50 -0
- package/dist/node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/form_data.mjs +247 -0
- package/dist/node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/populate.mjs +16 -0
- package/dist/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +58 -0
- package/dist/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +13 -0
- package/dist/node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.mjs +357 -0
- package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.mjs +14 -0
- package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.mjs +12 -0
- package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.mjs +25 -0
- package/dist/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.mjs +12 -0
- package/dist/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.mjs +19 -0
- package/dist/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.mjs +21 -0
- package/dist/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.mjs +35 -0
- package/dist/node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.mjs +16 -0
- package/dist/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +16 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +349 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +194 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +34 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +141 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +53 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +458 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +154 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +172 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2587 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2223 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +230 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +428 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +430 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +233 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +295 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +126 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +198 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +183 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +45 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +110 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +93 -0
- 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
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.mjs +14 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.mjs +17 -0
- package/dist/node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/db.mjs +7051 -0
- package/dist/node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.mjs +21 -0
- package/dist/node_modules/.pnpm/mime-types@2.1.35/node_modules/mime-types/index.mjs +123 -0
- package/dist/node_modules/.pnpm/node-fetch@2.7.0_encoding@0.1.13/node_modules/node-fetch/lib/index.mjs +1174 -0
- package/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +48 -0
- package/dist/node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/index.mjs +145 -0
- package/dist/node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/lib/mappingTable.mjs +35563 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs +31 -0
- package/dist/node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.mjs +122 -0
- package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL-impl.mjs +145 -0
- package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.mjs +174 -0
- package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/public-api.mjs +21 -0
- package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.mjs +878 -0
- package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/utils.mjs +22 -0
- package/dist/package.mjs +1 -1
- package/dist/utils/client.d.mts +1 -1
- package/dist/utils/client.mjs +4 -1
- package/dist/utils/credentials.d.mts +1 -1
- package/dist/utils/credentials.mjs +2 -1
- package/dist/utils/resources.d.mts +1 -1
- package/package.json +8 -4
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { __awaiter } from "../../../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.mjs";
|
|
2
|
+
import { FetchClient } from "./core/FetchClient.mjs";
|
|
3
|
+
import { BasicAuth } from "./core/BasicAuth.mjs";
|
|
4
|
+
import { BearerAuth } from "./core/BearerAuth.mjs";
|
|
5
|
+
import { CookieAuth } from "./core/CookieAuth.mjs";
|
|
6
|
+
import { NodeJSCookieAuth } from "./core/NodeJSCookieAuth.mjs";
|
|
7
|
+
import "./core/index.mjs";
|
|
8
|
+
import { Realtime } from "./realtime/Realtime.mjs";
|
|
9
|
+
import "./realtime/index.mjs";
|
|
10
|
+
import { EventService } from "./event/EventService.mjs";
|
|
11
|
+
import { InventoryBinaryService } from "./inventory/InventoryBinaryService.mjs";
|
|
12
|
+
import { InventoryService } from "./inventory/InventoryService.mjs";
|
|
13
|
+
import { MeasurementService } from "./measurement/MeasurementService.mjs";
|
|
14
|
+
import { AlarmService } from "./alarm/AlarmService.mjs";
|
|
15
|
+
import { OperationService } from "./operation/OperationService.mjs";
|
|
16
|
+
import { OperationBulkService } from "./operation/OperationBulkService.mjs";
|
|
17
|
+
import { TenantService } from "./tenant/TenantService.mjs";
|
|
18
|
+
import { UserService } from "./user/UserService.mjs";
|
|
19
|
+
import { ApplicationService } from "./application/ApplicationService.mjs";
|
|
20
|
+
import { SystemOptionsService } from "./system-options/SystemOptionsService.mjs";
|
|
21
|
+
import { TenantOptionsService } from "./tenant-options/TenantOptionsService.mjs";
|
|
22
|
+
import { TenantSecurityOptionsService } from "./tenant-security-options/TenantSecurityOptionsService.mjs";
|
|
23
|
+
import { TenantLoginOptionsService } from "./tenant-login-options/TenantLoginOptionsService.mjs";
|
|
24
|
+
import { AuditService } from "./audit/AuditService.mjs";
|
|
25
|
+
import { InventoryRoleService } from "./inventory-role/InventoryRoleService.mjs";
|
|
26
|
+
import { DeviceRegistrationService } from "./device-registration/DeviceRegistrationService.mjs";
|
|
27
|
+
import { DeviceRegistrationBulkService } from "./device-registration/DeviceRegistrationBulkService.mjs";
|
|
28
|
+
import { UserRoleService } from "./user-role/UserRoleService.mjs";
|
|
29
|
+
import { UserGroupService } from "./user-group/UserGroupService.mjs";
|
|
30
|
+
import { IdentityService } from "./identity/IdentityService.mjs";
|
|
31
|
+
import { SmartGroupsService } from "./smart-groups/SmartGroupsService.mjs";
|
|
32
|
+
import { SmartRulesService } from "./smart-rules/SmartRulesService.mjs";
|
|
33
|
+
import "./services.mjs";
|
|
34
|
+
|
|
35
|
+
//#region node_modules/.pnpm/@c8y+client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/Client.js
|
|
36
|
+
var Client = class Client {
|
|
37
|
+
/**
|
|
38
|
+
* Authenticates the given user. Determines the tenant by itself via a call to tenant/currentTenant.
|
|
39
|
+
*
|
|
40
|
+
* **Example**
|
|
41
|
+
* ```typescript
|
|
42
|
+
*
|
|
43
|
+
* let client: Client;
|
|
44
|
+
* (async () => {
|
|
45
|
+
* client = await Client.authenticate({
|
|
46
|
+
* user: 'testuser',
|
|
47
|
+
* password: 'password1337!'
|
|
48
|
+
* }, 'https://acme.cumulocity.com');
|
|
49
|
+
*
|
|
50
|
+
* //you have access to the client api now
|
|
51
|
+
* const { data, paging, res }); = await client.inventory.list({ pageSize: 100 });
|
|
52
|
+
* })();
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
static authenticate(credentials, baseUrl) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const auth = new BasicAuth(credentials);
|
|
58
|
+
const clientCore = new FetchClient(auth, baseUrl);
|
|
59
|
+
const tenantName = yield this.getCurrentTenant(clientCore);
|
|
60
|
+
const client = new Client(auth, baseUrl);
|
|
61
|
+
client.core.tenant = tenantName;
|
|
62
|
+
return client;
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Authenticates the given user via OAuth Internal. Determines the tenant by itself via a call to tenant/currentTenant.
|
|
67
|
+
* Login call goes to `/tenant/oauth/token` and the retrieved token will be added in the `Authorization` header to subsequent requests.
|
|
68
|
+
*
|
|
69
|
+
* **Example**
|
|
70
|
+
* ```typescript
|
|
71
|
+
*
|
|
72
|
+
* let client: Client;
|
|
73
|
+
* (async () => {
|
|
74
|
+
* client = await Client.authenticateViaOAuthInternal({
|
|
75
|
+
* user: 'testuser',
|
|
76
|
+
* password: 'password1337!'
|
|
77
|
+
* }, 'https://acme.cumulocity.com');
|
|
78
|
+
*
|
|
79
|
+
* //you have access to the client api now
|
|
80
|
+
* const { data, paging, res }); = await client.inventory.list({ pageSize: 100 });
|
|
81
|
+
* })();
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
static authenticateViaOAuthInternal(credentials, baseUrl) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
const auth = new BearerAuth(yield this.loginViaOAuthInternal(credentials, true, baseUrl));
|
|
87
|
+
const clientCore = new FetchClient(auth, baseUrl);
|
|
88
|
+
const tenantName = credentials.tenant || (yield this.getCurrentTenant(clientCore));
|
|
89
|
+
const client = new Client(auth, baseUrl);
|
|
90
|
+
client.core.tenant = tenantName;
|
|
91
|
+
return client;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Authenticates the given user via OAuth Internal. Determines the tenant by itself via a call to tenant/currentTenant.
|
|
96
|
+
* Login call goes to `/tenant/oauth` and the retrieved token will be attached as a Cookie in browser environments to subsequent requests (using 'CookieAuth').
|
|
97
|
+
* In none browser environments (e.g. nodejs) the retrieved token will be added in the `Authorization` header to subsequent requests (using 'NodeJSCookieAuth').
|
|
98
|
+
*
|
|
99
|
+
* **Example**
|
|
100
|
+
* ```typescript
|
|
101
|
+
*
|
|
102
|
+
* let client: Client;
|
|
103
|
+
* (async () => {
|
|
104
|
+
* client = await Client.authenticateViaOAuthInternalCookie({
|
|
105
|
+
* user: 'testuser',
|
|
106
|
+
* password: 'password1337!'
|
|
107
|
+
* }, 'https://acme.cumulocity.com');
|
|
108
|
+
*
|
|
109
|
+
* //you have access to the client api now
|
|
110
|
+
* const { data, paging, res }); = await client.inventory.list({ pageSize: 100 });
|
|
111
|
+
* })();
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
static authenticateViaOAuthInternalCookie(credentials, baseUrl) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
const response = yield this.loginViaOAuthInternal(credentials, false, baseUrl);
|
|
117
|
+
let auth;
|
|
118
|
+
if (typeof document === "undefined") auth = new NodeJSCookieAuth(response);
|
|
119
|
+
else auth = new CookieAuth();
|
|
120
|
+
const clientCore = new FetchClient(auth, baseUrl);
|
|
121
|
+
const tenantName = credentials.tenant || (yield this.getCurrentTenant(clientCore));
|
|
122
|
+
const client = new Client(auth, baseUrl);
|
|
123
|
+
client.core.tenant = tenantName;
|
|
124
|
+
return client;
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Allows to use http to register a device on the platform.
|
|
129
|
+
*
|
|
130
|
+
* **Deprecated** Please use MQTT to bootstrap a device.
|
|
131
|
+
*/
|
|
132
|
+
static deviceBootstrap(options) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
const { deviceId, timeout, baseUrl, basicAuthToken } = options;
|
|
135
|
+
let { expire } = options;
|
|
136
|
+
if (timeout && !expire) expire = Date.now() + timeout;
|
|
137
|
+
const deviceRegistration = new DeviceRegistrationService(new FetchClient(void 0, baseUrl));
|
|
138
|
+
let client;
|
|
139
|
+
try {
|
|
140
|
+
const { data } = yield deviceRegistration.bootstrap(deviceId, { basicAuthToken });
|
|
141
|
+
const { username, password, tenantId } = data;
|
|
142
|
+
client = new Client(new BasicAuth({
|
|
143
|
+
user: username,
|
|
144
|
+
tenant: tenantId,
|
|
145
|
+
password
|
|
146
|
+
}), baseUrl);
|
|
147
|
+
client.core.tenant = tenantId;
|
|
148
|
+
} catch (error) {
|
|
149
|
+
if ((!expire || Date.now() < expire) && error.res.status === 404) return Client.deviceBootstrap(Object.assign({ expire }, options));
|
|
150
|
+
else throw error;
|
|
151
|
+
}
|
|
152
|
+
return client;
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Retrieves microservice credentials for the subscribed tenants
|
|
157
|
+
* using provided bootstrap credentials
|
|
158
|
+
*
|
|
159
|
+
* **Example**
|
|
160
|
+
* ```typescript
|
|
161
|
+
*
|
|
162
|
+
* (async () => {
|
|
163
|
+
* const subscriptions = await Client.getMicroserviceSubscriptions({
|
|
164
|
+
* tenant: process.env.C8Y_BOOTSTRAP_TENANT,
|
|
165
|
+
* user: process.env.C8Y_BOOTSTRAP_USER,
|
|
166
|
+
* password: process.env.C8Y_BOOTSTRAP_PASSWORD
|
|
167
|
+
* }, process.env.C8Y_BASEURL);
|
|
168
|
+
*
|
|
169
|
+
* const clients = subscriptions.map(subscription => new Client(new BasicAuth(subscription), process.env.C8Y_BASEURL));
|
|
170
|
+
* // you have access to the client api now
|
|
171
|
+
* const promiseArray = clients.map(client => client.options.tenant.detail({
|
|
172
|
+
* category: process.env.APPLICATION_KEY,
|
|
173
|
+
* key: 'someSetting'
|
|
174
|
+
* }));
|
|
175
|
+
* })();
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
static getMicroserviceSubscriptions(bootstrapCredentials_1, baseUrl_1) {
|
|
179
|
+
return __awaiter(this, arguments, void 0, function* (bootstrapCredentials, baseUrl, fetchOptions = {}) {
|
|
180
|
+
const { users } = yield (yield new FetchClient(new BasicAuth(bootstrapCredentials), baseUrl).fetch("/application/currentApplication/subscriptions", fetchOptions)).json();
|
|
181
|
+
return users.map(({ tenant, name, password }) => {
|
|
182
|
+
return {
|
|
183
|
+
tenant,
|
|
184
|
+
user: name,
|
|
185
|
+
password
|
|
186
|
+
};
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
static loginViaOAuthInternal(credentials_1) {
|
|
191
|
+
return __awaiter(this, arguments, void 0, function* (credentials, bearerAuth = true, baseUrl) {
|
|
192
|
+
const clientCore = new FetchClient(new BasicAuth(credentials), baseUrl);
|
|
193
|
+
let url = "/tenant/oauth";
|
|
194
|
+
if (bearerAuth) url += `/token`;
|
|
195
|
+
if (credentials.tenant) url += `?tenant_id=${credentials.tenant}`;
|
|
196
|
+
const params = new URLSearchParams({
|
|
197
|
+
grant_type: "PASSWORD",
|
|
198
|
+
username: credentials.user,
|
|
199
|
+
password: credentials.password,
|
|
200
|
+
tfa_code: credentials.tfa
|
|
201
|
+
});
|
|
202
|
+
const res = yield clientCore.fetch(url, {
|
|
203
|
+
method: "POST",
|
|
204
|
+
body: params.toString(),
|
|
205
|
+
headers: { "content-type": "application/x-www-form-urlencoded;charset=UTF-8" }
|
|
206
|
+
});
|
|
207
|
+
if (res.status !== 200) throw { res };
|
|
208
|
+
if (bearerAuth) return (yield res.json())["access_token"];
|
|
209
|
+
return res;
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
static getCurrentTenant(fetchClient) {
|
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
const { data: tenant } = yield new TenantService(fetchClient).current();
|
|
215
|
+
return tenant.name;
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Initializes a new Client, which allows to request data from the API. Differently
|
|
220
|
+
* to Client.authenticate([...]) it needs a tenant given and does not verify if the
|
|
221
|
+
* login is correct.
|
|
222
|
+
*
|
|
223
|
+
* **Example**
|
|
224
|
+
* ```typescript
|
|
225
|
+
*
|
|
226
|
+
* const auth = new BasicAuth({
|
|
227
|
+
* user: 'youruser',
|
|
228
|
+
* password: 'yourpassword',
|
|
229
|
+
* tenant: 'acme'
|
|
230
|
+
* }); // use CookieAuth() if your platform uses oauth (only in browser!)
|
|
231
|
+
*
|
|
232
|
+
* const baseUrl = 'https://acme.cumulocity.com';
|
|
233
|
+
* const client = new Client(auth, baseUrl);
|
|
234
|
+
* (async () => {
|
|
235
|
+
* const { data, paging, res }); = await client.inventory.list({ pageSize: 100 });
|
|
236
|
+
* })();
|
|
237
|
+
* ```
|
|
238
|
+
*
|
|
239
|
+
* @param auth The Authentication strategy to use (e.g. new BasicAuth())
|
|
240
|
+
* @param baseUrl The URL to request (optional in browser, mandatory in node)
|
|
241
|
+
*/
|
|
242
|
+
constructor(auth, baseUrl) {
|
|
243
|
+
const client = new FetchClient(auth, baseUrl);
|
|
244
|
+
this.realtime = new Realtime(client);
|
|
245
|
+
this.alarm = new AlarmService(client, this.realtime);
|
|
246
|
+
this.application = new ApplicationService(client, this.realtime);
|
|
247
|
+
this.audit = new AuditService(client);
|
|
248
|
+
this.core = client;
|
|
249
|
+
this.deviceRegistration = new DeviceRegistrationService(client);
|
|
250
|
+
this.deviceRegistrationBulk = new DeviceRegistrationBulkService(client);
|
|
251
|
+
this.event = new EventService(client, this.realtime);
|
|
252
|
+
this.inventory = new InventoryService(client, this.realtime);
|
|
253
|
+
this.inventoryBinary = new InventoryBinaryService(client);
|
|
254
|
+
this.inventoryRole = new InventoryRoleService(client);
|
|
255
|
+
this.measurement = new MeasurementService(client, this.realtime);
|
|
256
|
+
this.operation = new OperationService(client);
|
|
257
|
+
this.operationBulk = new OperationBulkService(client);
|
|
258
|
+
this.options = {
|
|
259
|
+
security: new TenantSecurityOptionsService(client),
|
|
260
|
+
system: new SystemOptionsService(client),
|
|
261
|
+
login: new TenantLoginOptionsService(client),
|
|
262
|
+
tenant: new TenantOptionsService(client)
|
|
263
|
+
};
|
|
264
|
+
this.role = new InventoryRoleService(client);
|
|
265
|
+
this.tenant = new TenantService(client);
|
|
266
|
+
this.user = new UserService(client);
|
|
267
|
+
this.userGroup = new UserGroupService(client);
|
|
268
|
+
this.userRole = new UserRoleService(client);
|
|
269
|
+
this.identity = new IdentityService(client);
|
|
270
|
+
this.smartGroups = new SmartGroupsService(client);
|
|
271
|
+
this.smartRules = new SmartRulesService(client);
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Allows to change the current Authentication
|
|
275
|
+
* @param auth The new Authentication information.
|
|
276
|
+
*/
|
|
277
|
+
setAuth(auth) {
|
|
278
|
+
this.core.setAuth(auth);
|
|
279
|
+
this.realtime.disconnect();
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
//#endregion
|
|
284
|
+
export { Client };
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { __awaiter } from "../../../../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.mjs";
|
|
2
|
+
import { Service } from "../core/Service.mjs";
|
|
3
|
+
import "../core/index.mjs";
|
|
4
|
+
|
|
5
|
+
//#region node_modules/.pnpm/@c8y+client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/alarm/AlarmService.js
|
|
6
|
+
/**
|
|
7
|
+
* This class allows for managing alarms.
|
|
8
|
+
*/
|
|
9
|
+
var AlarmService = class extends Service {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.baseUrl = "alarm";
|
|
13
|
+
this.listUrl = "alarms";
|
|
14
|
+
this.propertyName = "alarms";
|
|
15
|
+
this.channel = "/alarms/*";
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Gets the details of selected alarms.
|
|
19
|
+
*
|
|
20
|
+
* @param {string|number|IIdentified} entityOrId Entity or Id of the entity.
|
|
21
|
+
*
|
|
22
|
+
* @returns Response wrapped in [[IResult]]
|
|
23
|
+
*
|
|
24
|
+
* **Example**
|
|
25
|
+
* ```typescript
|
|
26
|
+
*
|
|
27
|
+
* const alarmId: number = 1;
|
|
28
|
+
*
|
|
29
|
+
* (async () => {
|
|
30
|
+
* const {data, res} = await alarmService.detail(alarmId);
|
|
31
|
+
* })();
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
detail(entityOrId) {
|
|
35
|
+
const _super = Object.create(null, { detail: { get: () => super.detail } });
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
return _super.detail.call(this, entityOrId);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new alarm.
|
|
42
|
+
*
|
|
43
|
+
* @param {IAlarm} entity Alarm object with mandantory fragments.
|
|
44
|
+
*
|
|
45
|
+
* @returns Response wrapped in [[IResult]]
|
|
46
|
+
*
|
|
47
|
+
* **Example**
|
|
48
|
+
* ```typescript
|
|
49
|
+
*
|
|
50
|
+
* const mandantoryObject: IAlarm = {
|
|
51
|
+
* severity: Severity.CRITICAL,
|
|
52
|
+
* source: device,
|
|
53
|
+
* text: 'I am an Alarm!',
|
|
54
|
+
* time: '2018-05-02T10:08:00Z',
|
|
55
|
+
* type: 'device-type-here',
|
|
56
|
+
* };
|
|
57
|
+
*
|
|
58
|
+
* (async () => {
|
|
59
|
+
* const {data, res} = await alarmService.create(mandantoryObject);
|
|
60
|
+
* })();
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
create(entity) {
|
|
64
|
+
const _super = Object.create(null, { create: { get: () => super.create } });
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
return _super.create.call(this, entity);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Updates alarm data.
|
|
71
|
+
*
|
|
72
|
+
* @param {Partial<IAlarm>} entity Partial alarm to update, must have `id`.
|
|
73
|
+
*
|
|
74
|
+
* @returns Response wrapped in [[IResult]]
|
|
75
|
+
*
|
|
76
|
+
* **Example**
|
|
77
|
+
* ```typescript
|
|
78
|
+
*
|
|
79
|
+
* const partialUpdateObject: Partial<IAlarm> = {
|
|
80
|
+
* id: 123,
|
|
81
|
+
* severity: Severity.MINOR,
|
|
82
|
+
* source: device,
|
|
83
|
+
* text: 'Changed Alarm!'
|
|
84
|
+
* };
|
|
85
|
+
*
|
|
86
|
+
* (async () => {
|
|
87
|
+
* const {data, res} = await alarmService.update(partialUpdateObject);
|
|
88
|
+
* })();
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
update(entity) {
|
|
92
|
+
const _super = Object.create(null, { update: { get: () => super.update } });
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
return _super.update.call(this, entity);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Updates alarm data in bulk and with additional query filters.
|
|
99
|
+
*
|
|
100
|
+
* @param {Partial<IAlarm>} entity Partial alarm object.
|
|
101
|
+
* @param {Record<string, string | number | boolean>} filters Additional query filters.
|
|
102
|
+
*
|
|
103
|
+
* @returns Response in form of { IFetchResponse }
|
|
104
|
+
*
|
|
105
|
+
* **Example**
|
|
106
|
+
* ```typescript
|
|
107
|
+
*
|
|
108
|
+
* const partialUpdateObject: Partial<IAlarm> = {
|
|
109
|
+
* status: AlarmStatus.CLEARED
|
|
110
|
+
* };
|
|
111
|
+
*
|
|
112
|
+
* const additionalFilters: Record<string, string | number | boolean> = {
|
|
113
|
+
* resolved: false,
|
|
114
|
+
* severity: Severity.MINOR
|
|
115
|
+
* };
|
|
116
|
+
*
|
|
117
|
+
* (async () => {
|
|
118
|
+
* const response = await alarmService.updateBulk(partialUpdateObject, additionalFilters);
|
|
119
|
+
* })();
|
|
120
|
+
* ```
|
|
121
|
+
* In this example, every unresolved alarm that has a severity of `Severity.MINOR` will be updated with a status of `AlarmStatus.CLEARED`.
|
|
122
|
+
*/
|
|
123
|
+
updateBulk(entity, filters) {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
const params = new URLSearchParams(Object.entries(filters).map(([key, val]) => [key, String(val)]));
|
|
126
|
+
const url = this.getDetailUrl(entity).replace(/\/$/, "") + `?${params.toString()}`;
|
|
127
|
+
const method = "PUT";
|
|
128
|
+
const body = JSON.stringify(this.onBeforeUpdate(entity));
|
|
129
|
+
return yield this.fetch(url, this.changeFetchOptions({
|
|
130
|
+
method,
|
|
131
|
+
body,
|
|
132
|
+
headers: {
|
|
133
|
+
"content-type": "application/json",
|
|
134
|
+
accept: "application/json"
|
|
135
|
+
}
|
|
136
|
+
}, url));
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Gets the list of alarms filtered by parameters.
|
|
141
|
+
*
|
|
142
|
+
* @returns Response wrapped in [[IResultList]]
|
|
143
|
+
*
|
|
144
|
+
* @param {AlarmQueryFilter} filter Filters to query alarms.
|
|
145
|
+
*
|
|
146
|
+
* **Example**
|
|
147
|
+
* ```typescript
|
|
148
|
+
*
|
|
149
|
+
* const filter: AlarmQueryFilter = {
|
|
150
|
+
* severity: Severity.MAJOR,
|
|
151
|
+
* pageSize: 100,
|
|
152
|
+
* withTotalPages: true
|
|
153
|
+
* };
|
|
154
|
+
*
|
|
155
|
+
* (async () => {
|
|
156
|
+
* const {data, res, paging} = await alarmService.list(filter);
|
|
157
|
+
* })();
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
list() {
|
|
161
|
+
const _super = Object.create(null, { list: { get: () => super.list } });
|
|
162
|
+
return __awaiter(this, arguments, void 0, function* (filter = {}) {
|
|
163
|
+
return _super.list.call(this, filter);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Gets the number of alarms based on the filter criteria.
|
|
168
|
+
*
|
|
169
|
+
* @returns Response wrapped in [[IResultList]]
|
|
170
|
+
*
|
|
171
|
+
* @param {AlarmQueryFilter} filter Filters to query alarms.
|
|
172
|
+
*
|
|
173
|
+
* **Example**
|
|
174
|
+
* ```typescript
|
|
175
|
+
*
|
|
176
|
+
* const filter: AlarmQueryFilter = {
|
|
177
|
+
* severity: Severity.MAJOR,
|
|
178
|
+
* };
|
|
179
|
+
*
|
|
180
|
+
* (async () => {
|
|
181
|
+
* const {data, res} = await alarmService.count(filter);
|
|
182
|
+
* })();
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
count() {
|
|
186
|
+
return __awaiter(this, arguments, void 0, function* (filter = {}) {
|
|
187
|
+
const url = `${this.listUrl}/count`;
|
|
188
|
+
const res = yield this.fetch(url, this.changeFetchOptions({ params: filter }, url));
|
|
189
|
+
return {
|
|
190
|
+
res,
|
|
191
|
+
data: yield res.json()
|
|
192
|
+
};
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
//#endregion
|
|
198
|
+
export { AlarmService };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { gettext } from "../gettext-typed.mjs";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/@c8y+client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/alarm/AlarmStatus.js
|
|
4
|
+
const AlarmStatus = {
|
|
5
|
+
ACKNOWLEDGED: "ACKNOWLEDGED",
|
|
6
|
+
CLEARED: "CLEARED",
|
|
7
|
+
ACTIVE: "ACTIVE"
|
|
8
|
+
};
|
|
9
|
+
const ALARM_STATUS_LABELS = {
|
|
10
|
+
ACKNOWLEDGED: gettext("Acknowledged`alarm`"),
|
|
11
|
+
CLEARED: gettext("Cleared`alarm`"),
|
|
12
|
+
ACTIVE: gettext("Active`alarm`")
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ALARM_STATUS_LABELS, AlarmStatus };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { gettext } from "../gettext.mjs";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/@c8y+client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationAvailability.js
|
|
4
|
+
var ApplicationAvailability;
|
|
5
|
+
(function(ApplicationAvailability) {
|
|
6
|
+
ApplicationAvailability[ApplicationAvailability["MARKET"] = gettext("MARKET")] = "MARKET";
|
|
7
|
+
ApplicationAvailability[ApplicationAvailability["PRIVATE"] = gettext("PRIVATE")] = "PRIVATE";
|
|
8
|
+
ApplicationAvailability[ApplicationAvailability["SHARED"] = gettext("SHARED")] = "SHARED";
|
|
9
|
+
})(ApplicationAvailability || (ApplicationAvailability = {}));
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ApplicationAvailability };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { __toESM } from "../../../../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { __awaiter } from "../../../../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.mjs";
|
|
3
|
+
import { Service } from "../core/Service.mjs";
|
|
4
|
+
import "../core/index.mjs";
|
|
5
|
+
import { require_form_data } from "../../../../../../../../form-data@4.0.4/node_modules/form-data/lib/form_data.mjs";
|
|
6
|
+
|
|
7
|
+
//#region node_modules/.pnpm/@c8y+client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationBinaryService.js
|
|
8
|
+
var import_form_data = /* @__PURE__ */ __toESM(require_form_data());
|
|
9
|
+
var ApplicationBinaryService = class extends Service {
|
|
10
|
+
constructor(client, applicationOrId) {
|
|
11
|
+
super(client);
|
|
12
|
+
this.listUrl = "binaries";
|
|
13
|
+
this.propertyName = "attachments";
|
|
14
|
+
this.baseUrl = `application/applications/${this.getIdString(applicationOrId)}`;
|
|
15
|
+
}
|
|
16
|
+
upload(binary, fileName, uploadParamsOverride) {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
const url = (uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.listUrl) || this.listUrl;
|
|
19
|
+
const method = "POST";
|
|
20
|
+
const body = this.createBinaryRequestBody(binary, fileName, uploadParamsOverride);
|
|
21
|
+
let bodyHeaders;
|
|
22
|
+
if (typeof body.getHeaders === "function") bodyHeaders = body.getHeaders();
|
|
23
|
+
const headers = Object.assign((uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.headers) || { Accept: "application/json" }, bodyHeaders);
|
|
24
|
+
const res = yield this.fetch(url, {
|
|
25
|
+
method,
|
|
26
|
+
body,
|
|
27
|
+
headers
|
|
28
|
+
});
|
|
29
|
+
return {
|
|
30
|
+
res,
|
|
31
|
+
data: yield res.json()
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
uploadApplicationVersion(archive, version, tags = []) {
|
|
36
|
+
return this.upload(archive, archive.name, {
|
|
37
|
+
listUrl: "versions",
|
|
38
|
+
headers: { Accept: "application/vnd.com.nsn.cumulocity.applicationVersion+json;charset=UTF-8;ver=0.9" },
|
|
39
|
+
bodyFileProperty: "applicationBinary",
|
|
40
|
+
requestBody: { applicationVersion: Object.assign({ version }, (tags === null || tags === void 0 ? void 0 : tags.length) && { tags }) }
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
uploadWithProgressXhr(binary, onProgress, fileName, uploadParamsOverride) {
|
|
44
|
+
const url = `/${this.baseUrl}/${(uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.listUrl) || this.listUrl}`;
|
|
45
|
+
const method = "POST";
|
|
46
|
+
const body = this.createBinaryRequestBody(binary, fileName, uploadParamsOverride);
|
|
47
|
+
let bodyHeaders;
|
|
48
|
+
if (typeof body.getHeaders === "function") bodyHeaders = body.getHeaders();
|
|
49
|
+
const headers = this.client.getFetchOptions().headers;
|
|
50
|
+
Object.assign(headers, (uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.headers) || { Accept: "application/json" });
|
|
51
|
+
Object.assign(headers, bodyHeaders);
|
|
52
|
+
const xhr = new XMLHttpRequest();
|
|
53
|
+
xhr.open(method, url, true);
|
|
54
|
+
for (const key in headers) if (headers.hasOwnProperty(key)) xhr.setRequestHeader(key, headers[key]);
|
|
55
|
+
xhr.upload.addEventListener("progress", onProgress);
|
|
56
|
+
let xhrBody;
|
|
57
|
+
if (typeof body.getBuffer === "function") xhrBody = body.getBuffer();
|
|
58
|
+
else xhrBody = body;
|
|
59
|
+
xhr.send(xhrBody);
|
|
60
|
+
return xhr;
|
|
61
|
+
}
|
|
62
|
+
getXMLHttpResponse(xhr) {
|
|
63
|
+
return new Promise((res, rej) => {
|
|
64
|
+
xhr.addEventListener("loadend", () => {
|
|
65
|
+
xhr.readyState === 4 && (xhr.status === 200 || xhr.status === 201) ? res(JSON.parse(xhr.responseText)) : rej(xhr.responseText ? { data: JSON.parse(xhr.responseText) } : "Could not upload file.");
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
list(filter) {
|
|
70
|
+
const _super = Object.create(null, { list: { get: () => super.list } });
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
return _super.list.call(this, filter);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
delete(binaryOrId) {
|
|
76
|
+
const _super = Object.create(null, { delete: { get: () => super.delete } });
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
return _super.delete.call(this, binaryOrId);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
listPlugins() {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
const headers = { accept: "application/json" };
|
|
84
|
+
const url = `${this.listUrl}/plugins`;
|
|
85
|
+
const res = yield this.fetch(url, { headers });
|
|
86
|
+
return {
|
|
87
|
+
res,
|
|
88
|
+
data: yield res.json()
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
addPlugin(pluginName, pluginFile) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const url = `${this.listUrl}/plugins/${encodeURIComponent(pluginName)}`;
|
|
95
|
+
const method = "POST";
|
|
96
|
+
const body = new import_form_data.default();
|
|
97
|
+
const bufferOrStream = pluginFile instanceof ArrayBuffer ? Buffer.from(pluginFile) : pluginFile;
|
|
98
|
+
body.append("file", bufferOrStream);
|
|
99
|
+
const res = yield this.fetch(url, {
|
|
100
|
+
method,
|
|
101
|
+
body,
|
|
102
|
+
headers: { accept: "application/json" }
|
|
103
|
+
});
|
|
104
|
+
return {
|
|
105
|
+
res,
|
|
106
|
+
data: yield res.json()
|
|
107
|
+
};
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
removePlugin(pluginName) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
const method = "DELETE";
|
|
113
|
+
const headers = { accept: "application/json" };
|
|
114
|
+
const url = `${this.listUrl}/plugins/${pluginName}`;
|
|
115
|
+
const res = yield this.fetch(url, {
|
|
116
|
+
method,
|
|
117
|
+
headers
|
|
118
|
+
});
|
|
119
|
+
return {
|
|
120
|
+
res,
|
|
121
|
+
data: yield res.json()
|
|
122
|
+
};
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
updateFiles(files) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const url = `${this.listUrl}/files`;
|
|
128
|
+
const method = "POST";
|
|
129
|
+
const body = new import_form_data.default();
|
|
130
|
+
files.forEach((file) => {
|
|
131
|
+
const bufferOrStream = file.contents instanceof ArrayBuffer ? Buffer.from(file.contents) : file.contents;
|
|
132
|
+
body.append(file.path, bufferOrStream);
|
|
133
|
+
});
|
|
134
|
+
const res = yield this.fetch(url, {
|
|
135
|
+
method,
|
|
136
|
+
body,
|
|
137
|
+
headers: { accept: "application/json" }
|
|
138
|
+
});
|
|
139
|
+
return {
|
|
140
|
+
res,
|
|
141
|
+
data: yield res.json()
|
|
142
|
+
};
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
downloadArchive(binaryId) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
const url = `${this.listUrl}/${binaryId}`;
|
|
148
|
+
return yield this.fetch(url);
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
createBinaryRequestBody(binary, fileName, uploadParamsOverride) {
|
|
152
|
+
const body = new import_form_data.default();
|
|
153
|
+
const bufferOrStream = binary instanceof ArrayBuffer ? Buffer.from(binary) : binary;
|
|
154
|
+
let uploadFileName = fileName;
|
|
155
|
+
if (typeof File !== "undefined" && binary instanceof File) uploadFileName = binary.name;
|
|
156
|
+
body.append((uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.bodyFileProperty) || "file", bufferOrStream, uploadFileName);
|
|
157
|
+
body.append("fileName", uploadFileName);
|
|
158
|
+
if (uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.requestBody) {
|
|
159
|
+
for (const key in uploadParamsOverride.requestBody) if (uploadParamsOverride.requestBody.hasOwnProperty(key)) body.append(key, JSON.stringify(uploadParamsOverride.requestBody[key]));
|
|
160
|
+
}
|
|
161
|
+
return body;
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
//#endregion
|
|
166
|
+
export { ApplicationBinaryService };
|