@rockcarver/frodo-lib 0.16.2-8 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +221 -1
- package/cjs/api/AgentApi.js +14 -61
- package/cjs/api/AgentApi.js.map +1 -1
- package/cjs/api/AgentApi.test.js.map +1 -1
- package/cjs/api/ApiTypes.js +0 -5
- package/cjs/api/ApiTypes.js.map +1 -1
- package/cjs/api/AuthenticateApi.js +9 -20
- package/cjs/api/AuthenticateApi.js.map +1 -1
- package/cjs/api/AuthenticateApi.test.js.map +1 -0
- package/cjs/api/BaseApi.js +82 -124
- package/cjs/api/BaseApi.js.map +1 -1
- package/cjs/api/CirclesOfTrustApi.js +8 -32
- package/cjs/api/CirclesOfTrustApi.js.map +1 -1
- package/cjs/api/IdmConfigApi.js +9 -34
- package/cjs/api/IdmConfigApi.js.map +1 -1
- package/cjs/api/LogApi.js +8 -31
- package/cjs/api/LogApi.js.map +1 -1
- package/cjs/api/ManagedObjectApi.js +34 -31
- package/cjs/api/ManagedObjectApi.js.map +1 -1
- package/cjs/api/NodeApi.js +10 -41
- package/cjs/api/NodeApi.js.map +1 -1
- package/cjs/api/NodeApi.test.js.map +1 -1
- package/cjs/api/OAuth2ClientApi.js +7 -26
- package/cjs/api/OAuth2ClientApi.js.map +1 -1
- package/cjs/api/OAuth2OIDCApi.js +28 -34
- package/cjs/api/OAuth2OIDCApi.js.map +1 -1
- package/cjs/api/OAuth2OIDCApi.test.js.map +1 -0
- package/cjs/api/OAuth2ProviderApi.js +5 -15
- package/cjs/api/OAuth2ProviderApi.js.map +1 -1
- package/cjs/api/RealmApi.js +8 -34
- package/cjs/api/RealmApi.js.map +1 -1
- package/cjs/api/Saml2Api.js +32 -118
- package/cjs/api/Saml2Api.js.map +1 -1
- package/cjs/api/ScriptApi.js +8 -30
- package/cjs/api/ScriptApi.js.map +1 -1
- package/cjs/api/SecretsApi.js +14 -64
- package/cjs/api/SecretsApi.js.map +1 -1
- package/cjs/api/SecretsApi.test.js.map +1 -1
- package/cjs/api/ServerInfoApi.js +6 -21
- package/cjs/api/ServerInfoApi.js.map +1 -1
- package/cjs/api/ServiceApi.js +49 -47
- package/cjs/api/ServiceApi.js.map +1 -1
- package/cjs/api/SocialIdentityProvidersApi.js +9 -36
- package/cjs/api/SocialIdentityProvidersApi.js.map +1 -1
- package/cjs/api/StartupApi.js +5 -24
- package/cjs/api/StartupApi.js.map +1 -1
- package/cjs/api/StartupApi.test.js.map +1 -1
- package/cjs/api/TreeApi.js +8 -30
- package/cjs/api/TreeApi.js.map +1 -1
- package/cjs/api/TreeApi.test.js.map +1 -1
- package/cjs/api/VariablesApi.js +9 -37
- package/cjs/api/VariablesApi.js.map +1 -1
- package/cjs/api/VariablesApi.test.js.map +1 -1
- package/cjs/api/utils/ApiUtils.js +47 -57
- package/cjs/api/utils/ApiUtils.js.map +1 -1
- package/cjs/api/utils/ApiUtils.test.js.map +1 -1
- package/cjs/api/utils/Base64.js +6 -15
- package/cjs/api/utils/Base64.js.map +1 -1
- package/cjs/ext/axios-curlirize/curlirize.js +2 -9
- package/cjs/ext/axios-curlirize/curlirize.js.map +1 -1
- package/cjs/ext/axios-curlirize/lib/CurlHelper.js +7 -22
- package/cjs/ext/axios-curlirize/lib/CurlHelper.js.map +1 -1
- package/cjs/index.js +30 -89
- package/cjs/index.js.map +1 -1
- package/cjs/ops/AdminOps.js +27 -165
- package/cjs/ops/AdminOps.js.map +1 -1
- package/cjs/ops/AgentOps.js +3 -160
- package/cjs/ops/AgentOps.js.map +1 -1
- package/cjs/ops/AgentOps.test.js.map +1 -1
- package/cjs/ops/AuthenticateOps.js +265 -226
- package/cjs/ops/AuthenticateOps.js.map +1 -1
- package/cjs/ops/AuthenticateOps.test.js.map +1 -1
- package/cjs/ops/CirclesOfTrustOps.js +13 -91
- package/cjs/ops/CirclesOfTrustOps.js.map +1 -1
- package/cjs/ops/ConnectionProfileOps.js +220 -136
- package/cjs/ops/ConnectionProfileOps.js.map +1 -1
- package/cjs/ops/ConnectionProfileOps.test.js.map +1 -1
- package/cjs/ops/EmailTemplateOps.js +35 -379
- package/cjs/ops/EmailTemplateOps.js.map +1 -1
- package/cjs/ops/EmailTemplateOps.test.js.map +1 -1
- package/cjs/ops/IdmOps.js +52 -426
- package/cjs/ops/IdmOps.js.map +1 -1
- package/cjs/ops/IdmOps.test.js.map +1 -1
- package/cjs/ops/IdpOps.js +11 -94
- package/cjs/ops/IdpOps.js.map +1 -1
- package/cjs/ops/IdpOps.test.js.map +1 -1
- package/cjs/ops/JoseOps.js +81 -0
- package/cjs/ops/JoseOps.js.map +1 -0
- package/cjs/ops/JoseOps.test.js.map +1 -0
- package/cjs/ops/JourneyOps.js +140 -371
- package/cjs/ops/JourneyOps.js.map +1 -1
- package/cjs/ops/JourneyOps.test.js.map +1 -1
- package/cjs/ops/LogOps.js +14 -47
- package/cjs/ops/LogOps.js.map +1 -1
- package/cjs/ops/ManagedObjectOps.js +4 -12
- package/cjs/ops/ManagedObjectOps.js.map +1 -1
- package/cjs/ops/NodeOps.js +9 -67
- package/cjs/ops/NodeOps.js.map +1 -1
- package/cjs/ops/OAuth2ClientOps.js +10 -40
- package/cjs/ops/OAuth2ClientOps.js.map +1 -1
- package/cjs/ops/OpsTypes.js +0 -5
- package/cjs/ops/OpsTypes.js.map +1 -1
- package/cjs/ops/OrganizationOps.js +6 -25
- package/cjs/ops/OrganizationOps.js.map +1 -1
- package/cjs/ops/RealmOps.js +0 -19
- package/cjs/ops/RealmOps.js.map +1 -1
- package/cjs/ops/Saml2Ops.js +258 -802
- package/cjs/ops/Saml2Ops.js.map +1 -1
- package/cjs/ops/Saml2Ops.test.js.map +1 -1
- package/cjs/ops/ScriptOps.js +28 -73
- package/cjs/ops/ScriptOps.js.map +1 -1
- package/cjs/ops/SecretsOps.js +2 -58
- package/cjs/ops/SecretsOps.js.map +1 -1
- package/cjs/ops/ServiceAccountOps.js +61 -0
- package/cjs/ops/ServiceAccountOps.js.map +1 -0
- package/cjs/ops/ServiceAccountOps.test.js.map +1 -0
- package/cjs/ops/ServiceOps.js +55 -101
- package/cjs/ops/ServiceOps.js.map +1 -1
- package/cjs/ops/StartupOps.js +2 -23
- package/cjs/ops/StartupOps.js.map +1 -1
- package/cjs/ops/ThemeOps.js +230 -436
- package/cjs/ops/ThemeOps.js.map +1 -1
- package/cjs/ops/ThemeOps.test.js.map +1 -0
- package/cjs/ops/VariablesOps.js +0 -38
- package/cjs/ops/VariablesOps.js.map +1 -1
- package/cjs/ops/utils/Console.js +29 -62
- package/cjs/ops/utils/Console.js.map +1 -1
- package/cjs/ops/utils/DataProtection.js +13 -47
- package/cjs/ops/utils/DataProtection.js.map +1 -1
- package/cjs/ops/utils/DataProtection.test.js.map +1 -1
- package/cjs/ops/utils/ExportImportUtils.js +36 -74
- package/cjs/ops/utils/ExportImportUtils.js.map +1 -1
- package/cjs/ops/utils/ExportImportUtils.test.js.map +1 -1
- package/cjs/ops/utils/OpsUtils.js +27 -43
- package/cjs/ops/utils/OpsUtils.js.map +1 -1
- package/cjs/ops/utils/OpsUtils.test.js.map +1 -1
- package/cjs/ops/utils/ValidationUtils.js +0 -13
- package/cjs/ops/utils/ValidationUtils.js.map +1 -1
- package/cjs/ops/utils/ValidationUtils.test.js.map +1 -1
- package/cjs/ops/utils/Version.js +2 -12
- package/cjs/ops/utils/Version.js.map +1 -1
- package/cjs/ops/utils/Version.test.js.map +1 -1
- package/cjs/ops/utils/Wordwrap.js +1 -2
- package/cjs/ops/utils/Wordwrap.js.map +1 -1
- package/cjs/ops/utils/Wordwrap.test.js.map +1 -0
- package/cjs/shared/State.js +239 -0
- package/cjs/shared/State.js.map +1 -0
- package/cjs/shared/State.test.js.map +1 -0
- package/cjs/storage/StaticStorage.js.map +1 -1
- package/cjs/test/mocks/AuthenticateApi/step/default_steps.json +88 -0
- package/cjs/test/mocks/ForgeRockApiMockEngine.js +184 -80
- package/cjs/test/mocks/ForgeRockApiMockEngine.js.map +1 -1
- package/cjs/test/mocks/IdmConfigApi/getConfigEntity/managed.json +4420 -0
- package/cjs/test/mocks/OAuth2OIDCApi/accessToken/body.json +6 -0
- package/cjs/test/mocks/OAuth2OIDCApi/accessToken/headers.json +19 -0
- package/cjs/test/mocks/OAuth2OIDCApi/authorize/headers.json +38 -0
- package/cjs/test/mocks/Saml2Api/findSaml2Providers/https:sts.windows.net711ffa9c-5972-4713-ace3-688c9732614a_stub.json +18 -0
- package/cjs/test/mocks/Saml2Api/findSaml2Providers/iSPAzure_stub.json +18 -0
- package/cjs/test/mocks/Saml2Api/getProvider/aVNQQXp1cmU.json +1 -2
- package/cjs/test/mocks/Saml2Api/getProvider/dXJuOmZlZGVyYXRpb246TWljcm9zb2Z0T25saW5l.json +1 -3
- package/cjs/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/U1BBenVyZQ.json +147 -0
- package/cjs/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/aHR0cHM6Ly9pZGMuc2NoZXViZXIuaW8vYW0vc2FtbDIvSURQQXp1cmU.json +182 -0
- package/cjs/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/aHR0cHM6Ly9pZGMuc2NoZXViZXIuaW8vYW0vc2FtbDIvSURQQnJvYWRjb20.json +149 -0
- package/cjs/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/aHR0cHM6Ly9pZGMuc2NoZXViZXIuaW8vYW0vc2FtbDIvSURQRmVkbGV0.json +141 -0
- package/cjs/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/aVNQQXp1cmU.json +1 -2
- package/cjs/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/dm9sa2VyRGV2U1A.json +118 -0
- package/cjs/test/mocks/Saml2Api/getProviderByLocationAndId/remote/aHR0cHM6Ly9zYW1sLm15dGVzdHJ1bi5jb20vc3A.json +66 -0
- package/cjs/test/mocks/Saml2Api/getProviderByLocationAndId/remote/aHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNzExZmZhOWMtNTk3Mi00NzEzLWFjZTMtNjg4Yzk3MzI2MTRhLw.json +35 -0
- package/cjs/test/mocks/Saml2Api/getProviderByLocationAndId/remote/aWRw.json +83 -0
- package/cjs/test/mocks/Saml2Api/getProviderByLocationAndId/remote/dXJuOmZlZGVyYXRpb246TWljcm9zb2Z0T25saW5l.json +1 -3
- package/cjs/test/mocks/Saml2Api/getProviderMetadata/alpha/SPAzure.xml +74 -0
- package/cjs/test/mocks/Saml2Api/getProviderMetadata/alpha/https%3A%2F%2Fidc.scheuber.io%2Fam%2Fsaml2%2FIDPAzure.xml +78 -0
- package/cjs/test/mocks/Saml2Api/getProviderMetadata/alpha/https%3A%2F%2Fidc.scheuber.io%2Fam%2Fsaml2%2FIDPBroadcom.xml +78 -0
- package/cjs/test/mocks/Saml2Api/getProviderMetadata/alpha/https%3A%2F%2Fidc.scheuber.io%2Fam%2Fsaml2%2FIDPFedlet.xml +78 -0
- package/cjs/test/mocks/Saml2Api/getProviderMetadata/alpha/https%3A%2F%2Fsaml.mytestrun.com%2Fsp.xml +13 -0
- package/cjs/test/mocks/Saml2Api/getProviderMetadata/alpha/{dXJuOmZlZGVyYXRpb246TWljcm9zb2Z0T25saW5l.xml → https%3A%2F%2Fsts.windows.net%2F711ffa9c-5972-4713-ace3-688c9732614a%2F.xml} +0 -0
- package/cjs/test/mocks/Saml2Api/getProviderMetadata/alpha/{aVNQQXp1cmU.xml → iSPAzure.xml} +0 -0
- package/cjs/test/mocks/Saml2Api/getProviderMetadata/alpha/urn%3Afederation%3AMicrosoftOnline.xml +84 -0
- package/cjs/test/mocks/Saml2Ops/importSaml2Provider/SPAzure.saml.json +243 -0
- package/cjs/test/mocks/Saml2Ops/importSaml2Provider/iSPAzure.saml.json +242 -0
- package/cjs/test/mocks/Saml2Ops/importSaml2Provider/idc.scheuber.ioamsaml2IDPAzure.saml.json +454 -0
- package/cjs/test/mocks/Saml2Ops/importSaml2Provider/idc.scheuber.ioamsaml2IDPBroadcom.saml.json +586 -0
- package/cjs/test/mocks/Saml2Ops/importSaml2Provider/idc.scheuber.ioamsaml2IDPFedlet.saml.json +241 -0
- package/cjs/test/mocks/Saml2Ops/importSaml2Provider/idp.saml.json +185 -0
- package/cjs/test/mocks/Saml2Ops/importSaml2Provider/saml.mytestrun.comsp.saml.json +101 -0
- package/cjs/test/mocks/Saml2Ops/importSaml2Provider/sts.windows.net711ffa9c-5972-4713-ace3-688c9732614a.saml.json +113 -0
- package/cjs/test/mocks/Saml2Ops/importSaml2Provider/urn:federation:MicrosoftOnline.saml.json +199 -0
- package/cjs/test/mocks/Saml2Ops/importSaml2Provider/volkerDevSP.saml.json +212 -0
- package/cjs/test/mocks/Saml2Ops/importSaml2Providers/allAlphaProviders.saml.json +2414 -0
- package/cjs/test/mocks/ScriptApi/getScript/5b29c5b7-b161-4a42-a41f-d6c85316b951.json +13 -0
- package/cjs/test/mocks/ScriptApi/getScript/85523e71-2d77-4577-b078-6f9674cc54e2.json +13 -0
- package/cjs/test/mocks/ScriptApi/getScript/90c4eca5-05f0-42f5-b9bf-88b693eabbbd.json +13 -0
- package/cjs/test/mocks/ServerInfoApi/getServerInfo/info.json +25 -0
- package/cjs/test/mocks/ServerInfoApi/getServerVersionInfo/version.json +8 -0
- package/cjs/utils/AutoSetupPolly.js +79 -0
- package/cjs/utils/AutoSetupPolly.js.map +1 -0
- package/cjs/utils/SetupJest.js +6 -0
- package/cjs/utils/SetupJest.js.map +1 -0
- package/cjs/{test/mocks → utils}/snapshotResolve.js +10 -12
- package/cjs/utils/snapshotResolve.js.map +1 -0
- package/esm/api/AgentApi.mjs +19 -21
- package/esm/api/AgentApi.test.mjs +6 -15
- package/esm/api/ApiTypes.mjs +0 -5
- package/esm/api/AuthenticateApi.mjs +7 -10
- package/esm/api/AuthenticateApi.test.mjs +39 -0
- package/esm/api/BaseApi.mjs +96 -81
- package/esm/api/CirclesOfTrustApi.mjs +9 -12
- package/esm/api/IdmConfigApi.mjs +11 -12
- package/esm/api/LogApi.mjs +6 -10
- package/esm/api/ManagedObjectApi.mjs +23 -8
- package/esm/api/NodeApi.mjs +13 -15
- package/esm/api/NodeApi.test.mjs +13 -17
- package/esm/api/OAuth2ClientApi.mjs +7 -9
- package/esm/api/OAuth2OIDCApi.mjs +15 -9
- package/esm/api/OAuth2OIDCApi.test.mjs +53 -0
- package/esm/api/OAuth2ProviderApi.mjs +3 -5
- package/esm/api/RealmApi.mjs +10 -13
- package/esm/api/Saml2Api.mjs +31 -61
- package/esm/api/ScriptApi.mjs +9 -11
- package/esm/api/SecretsApi.mjs +21 -24
- package/esm/api/SecretsApi.test.mjs +9 -31
- package/esm/api/ServerInfoApi.mjs +5 -9
- package/esm/api/ServiceApi.mjs +53 -26
- package/esm/api/SocialIdentityProvidersApi.mjs +11 -13
- package/esm/api/StartupApi.mjs +5 -10
- package/esm/api/StartupApi.test.mjs +4 -7
- package/esm/api/TreeApi.mjs +9 -11
- package/esm/api/TreeApi.test.mjs +24 -61
- package/esm/api/VariablesApi.mjs +11 -13
- package/esm/api/VariablesApi.test.mjs +80 -222
- package/esm/api/utils/ApiUtils.mjs +45 -48
- package/esm/api/utils/ApiUtils.test.mjs +33 -32
- package/esm/api/utils/Base64.mjs +6 -9
- package/esm/ext/axios-curlirize/curlirize.mjs +2 -7
- package/esm/ext/axios-curlirize/lib/CurlHelper.mjs +7 -20
- package/esm/index.mjs +23 -13
- package/esm/ops/AdminOps.mjs +33 -119
- package/esm/ops/AgentOps.mjs +38 -81
- package/esm/ops/AgentOps.test.mjs +5 -45
- package/esm/ops/AuthenticateOps.mjs +241 -175
- package/esm/ops/AuthenticateOps.test.mjs +7 -9
- package/esm/ops/CirclesOfTrustOps.mjs +24 -61
- package/esm/ops/ConnectionProfileOps.mjs +192 -82
- package/esm/ops/ConnectionProfileOps.test.mjs +19 -19
- package/esm/ops/EmailTemplateOps.mjs +18 -276
- package/esm/ops/EmailTemplateOps.test.mjs +19 -44
- package/esm/ops/IdmOps.mjs +30 -327
- package/esm/ops/IdmOps.test.mjs +47 -54
- package/esm/ops/IdpOps.mjs +21 -59
- package/esm/ops/IdpOps.test.mjs +5 -5
- package/esm/ops/JoseOps.mjs +41 -0
- package/esm/ops/JoseOps.test.mjs +137 -0
- package/esm/ops/JourneyOps.mjs +147 -290
- package/esm/ops/JourneyOps.test.mjs +30 -28
- package/esm/ops/LogOps.mjs +15 -25
- package/esm/ops/ManagedObjectOps.mjs +6 -6
- package/esm/ops/NodeOps.mjs +9 -47
- package/esm/ops/OAuth2ClientOps.mjs +13 -19
- package/esm/ops/OpsTypes.mjs +1 -3
- package/esm/ops/OrganizationOps.mjs +7 -14
- package/esm/ops/RealmOps.mjs +4 -7
- package/esm/ops/Saml2Ops.mjs +199 -587
- package/esm/ops/Saml2Ops.test.mjs +303 -84
- package/esm/ops/ScriptOps.mjs +31 -47
- package/esm/ops/SecretsOps.mjs +15 -31
- package/esm/ops/ServiceAccountOps.mjs +41 -0
- package/esm/ops/ServiceAccountOps.test.mjs +51 -0
- package/esm/ops/ServiceOps.mjs +66 -83
- package/esm/ops/StartupOps.mjs +4 -13
- package/esm/ops/ThemeOps.mjs +189 -298
- package/esm/{api/ThemeApi.test.mjs → ops/ThemeOps.test.mjs} +91 -96
- package/esm/ops/VariablesOps.mjs +9 -18
- package/esm/ops/utils/Console.mjs +28 -46
- package/esm/ops/utils/DataProtection.mjs +15 -28
- package/esm/ops/utils/DataProtection.test.mjs +8 -8
- package/esm/ops/utils/ExportImportUtils.mjs +34 -43
- package/esm/ops/utils/ExportImportUtils.test.mjs +20 -18
- package/esm/ops/utils/OpsUtils.mjs +27 -21
- package/esm/ops/utils/OpsUtils.test.mjs +155 -27
- package/esm/ops/utils/ValidationUtils.mjs +0 -9
- package/esm/ops/utils/Version.mjs +2 -3
- package/esm/ops/utils/Version.test.mjs +0 -2
- package/esm/ops/utils/Wordwrap.mjs +1 -1
- package/esm/ops/utils/Wordwrap.test.mjs +19 -0
- package/esm/shared/State.mjs +164 -0
- package/esm/shared/State.test.mjs +249 -0
- package/esm/test/mocks/AuthenticateApi/step/default_steps.json +88 -0
- package/esm/test/mocks/ForgeRockApiMockEngine.mjs +169 -33
- package/esm/test/mocks/IdmConfigApi/getConfigEntity/managed.json +4420 -0
- package/esm/test/mocks/OAuth2OIDCApi/accessToken/body.json +6 -0
- package/esm/test/mocks/OAuth2OIDCApi/accessToken/headers.json +19 -0
- package/esm/test/mocks/OAuth2OIDCApi/authorize/headers.json +38 -0
- package/esm/test/mocks/Saml2Api/findSaml2Providers/https:sts.windows.net711ffa9c-5972-4713-ace3-688c9732614a_stub.json +18 -0
- package/esm/test/mocks/Saml2Api/findSaml2Providers/iSPAzure_stub.json +18 -0
- package/esm/test/mocks/Saml2Api/getProvider/aVNQQXp1cmU.json +1 -2
- package/esm/test/mocks/Saml2Api/getProvider/dXJuOmZlZGVyYXRpb246TWljcm9zb2Z0T25saW5l.json +1 -3
- package/esm/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/U1BBenVyZQ.json +147 -0
- package/esm/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/aHR0cHM6Ly9pZGMuc2NoZXViZXIuaW8vYW0vc2FtbDIvSURQQXp1cmU.json +182 -0
- package/esm/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/aHR0cHM6Ly9pZGMuc2NoZXViZXIuaW8vYW0vc2FtbDIvSURQQnJvYWRjb20.json +149 -0
- package/esm/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/aHR0cHM6Ly9pZGMuc2NoZXViZXIuaW8vYW0vc2FtbDIvSURQRmVkbGV0.json +141 -0
- package/esm/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/aVNQQXp1cmU.json +1 -2
- package/esm/test/mocks/Saml2Api/getProviderByLocationAndId/hosted/dm9sa2VyRGV2U1A.json +118 -0
- package/esm/test/mocks/Saml2Api/getProviderByLocationAndId/remote/aHR0cHM6Ly9zYW1sLm15dGVzdHJ1bi5jb20vc3A.json +66 -0
- package/esm/test/mocks/Saml2Api/getProviderByLocationAndId/remote/aHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNzExZmZhOWMtNTk3Mi00NzEzLWFjZTMtNjg4Yzk3MzI2MTRhLw.json +35 -0
- package/esm/test/mocks/Saml2Api/getProviderByLocationAndId/remote/aWRw.json +83 -0
- package/esm/test/mocks/Saml2Api/getProviderByLocationAndId/remote/dXJuOmZlZGVyYXRpb246TWljcm9zb2Z0T25saW5l.json +1 -3
- package/esm/test/mocks/Saml2Api/getProviderMetadata/alpha/SPAzure.xml +74 -0
- package/esm/test/mocks/Saml2Api/getProviderMetadata/alpha/https%3A%2F%2Fidc.scheuber.io%2Fam%2Fsaml2%2FIDPAzure.xml +78 -0
- package/esm/test/mocks/Saml2Api/getProviderMetadata/alpha/https%3A%2F%2Fidc.scheuber.io%2Fam%2Fsaml2%2FIDPBroadcom.xml +78 -0
- package/esm/test/mocks/Saml2Api/getProviderMetadata/alpha/https%3A%2F%2Fidc.scheuber.io%2Fam%2Fsaml2%2FIDPFedlet.xml +78 -0
- package/esm/test/mocks/Saml2Api/getProviderMetadata/alpha/https%3A%2F%2Fsaml.mytestrun.com%2Fsp.xml +13 -0
- package/esm/test/mocks/Saml2Api/getProviderMetadata/alpha/{dXJuOmZlZGVyYXRpb246TWljcm9zb2Z0T25saW5l.xml → https%3A%2F%2Fsts.windows.net%2F711ffa9c-5972-4713-ace3-688c9732614a%2F.xml} +0 -0
- package/esm/test/mocks/Saml2Api/getProviderMetadata/alpha/{aVNQQXp1cmU.xml → iSPAzure.xml} +0 -0
- package/esm/test/mocks/Saml2Api/getProviderMetadata/alpha/urn%3Afederation%3AMicrosoftOnline.xml +84 -0
- package/esm/test/mocks/Saml2Ops/importSaml2Provider/SPAzure.saml.json +243 -0
- package/esm/test/mocks/Saml2Ops/importSaml2Provider/iSPAzure.saml.json +242 -0
- package/esm/test/mocks/Saml2Ops/importSaml2Provider/idc.scheuber.ioamsaml2IDPAzure.saml.json +454 -0
- package/esm/test/mocks/Saml2Ops/importSaml2Provider/idc.scheuber.ioamsaml2IDPBroadcom.saml.json +586 -0
- package/esm/test/mocks/Saml2Ops/importSaml2Provider/idc.scheuber.ioamsaml2IDPFedlet.saml.json +241 -0
- package/esm/test/mocks/Saml2Ops/importSaml2Provider/idp.saml.json +185 -0
- package/esm/test/mocks/Saml2Ops/importSaml2Provider/saml.mytestrun.comsp.saml.json +101 -0
- package/esm/test/mocks/Saml2Ops/importSaml2Provider/sts.windows.net711ffa9c-5972-4713-ace3-688c9732614a.saml.json +113 -0
- package/esm/test/mocks/Saml2Ops/importSaml2Provider/urn:federation:MicrosoftOnline.saml.json +199 -0
- package/esm/test/mocks/Saml2Ops/importSaml2Provider/volkerDevSP.saml.json +212 -0
- package/esm/test/mocks/Saml2Ops/importSaml2Providers/allAlphaProviders.saml.json +2414 -0
- package/esm/test/mocks/ScriptApi/getScript/5b29c5b7-b161-4a42-a41f-d6c85316b951.json +13 -0
- package/esm/test/mocks/ScriptApi/getScript/85523e71-2d77-4577-b078-6f9674cc54e2.json +13 -0
- package/esm/test/mocks/ScriptApi/getScript/90c4eca5-05f0-42f5-b9bf-88b693eabbbd.json +13 -0
- package/esm/test/mocks/ServerInfoApi/getServerInfo/info.json +25 -0
- package/esm/test/mocks/ServerInfoApi/getServerVersionInfo/version.json +8 -0
- package/esm/utils/AutoSetupPolly.mjs +72 -0
- package/esm/utils/SetupJest.mjs +3 -0
- package/esm/{test/mocks → utils}/snapshotResolve.mjs +10 -12
- package/package.json +38 -27
- package/types/api/AgentApi.d.ts.map +1 -1
- package/types/api/ApiTypes.d.ts +19 -15
- package/types/api/ApiTypes.d.ts.map +1 -1
- package/types/api/AuthenticateApi.d.ts +1 -1
- package/types/api/AuthenticateApi.d.ts.map +1 -1
- package/types/api/BaseApi.d.ts +2 -0
- package/types/api/BaseApi.d.ts.map +1 -1
- package/types/api/CirclesOfTrustApi.d.ts.map +1 -1
- package/types/api/IdmConfigApi.d.ts.map +1 -1
- package/types/api/LogApi.d.ts.map +1 -1
- package/types/api/ManagedObjectApi.d.ts +9 -1
- package/types/api/ManagedObjectApi.d.ts.map +1 -1
- package/types/api/NodeApi.d.ts.map +1 -1
- package/types/api/OAuth2ClientApi.d.ts.map +1 -1
- package/types/api/OAuth2OIDCApi.d.ts +4 -2
- package/types/api/OAuth2OIDCApi.d.ts.map +1 -1
- package/types/api/OAuth2ProviderApi.d.ts.map +1 -1
- package/types/api/RealmApi.d.ts.map +1 -1
- package/types/api/Saml2Api.d.ts +7 -13
- package/types/api/Saml2Api.d.ts.map +1 -1
- package/types/api/ScriptApi.d.ts.map +1 -1
- package/types/api/SecretsApi.d.ts.map +1 -1
- package/types/api/ServerInfoApi.d.ts.map +1 -1
- package/types/api/ServiceApi.d.ts +14 -7
- package/types/api/ServiceApi.d.ts.map +1 -1
- package/types/api/SocialIdentityProvidersApi.d.ts.map +1 -1
- package/types/api/StartupApi.d.ts.map +1 -1
- package/types/api/TreeApi.d.ts.map +1 -1
- package/types/api/VariablesApi.d.ts.map +1 -1
- package/types/api/utils/ApiUtils.d.ts +1 -0
- package/types/api/utils/ApiUtils.d.ts.map +1 -1
- package/types/api/utils/Base64.d.ts +1 -0
- package/types/api/utils/Base64.d.ts.map +1 -1
- package/types/index.d.ts +11 -5
- package/types/index.d.ts.map +1 -1
- package/types/ops/AgentOps.d.ts +1 -1
- package/types/ops/AgentOps.d.ts.map +1 -1
- package/types/ops/AuthenticateOps.d.ts +10 -2
- package/types/ops/AuthenticateOps.d.ts.map +1 -1
- package/types/ops/ConnectionProfileOps.d.ts +49 -21
- package/types/ops/ConnectionProfileOps.d.ts.map +1 -1
- package/types/ops/EmailTemplateOps.d.ts +14 -33
- package/types/ops/EmailTemplateOps.d.ts.map +1 -1
- package/types/ops/IdmOps.d.ts +29 -37
- package/types/ops/IdmOps.d.ts.map +1 -1
- package/types/ops/JoseOps.d.ts +33 -0
- package/types/ops/JoseOps.d.ts.map +1 -0
- package/types/ops/JourneyOps.d.ts.map +1 -1
- package/types/ops/LogOps.d.ts.map +1 -1
- package/types/ops/NodeOps.d.ts.map +1 -1
- package/types/ops/OAuth2ClientOps.d.ts.map +1 -1
- package/types/ops/OpsTypes.d.ts +17 -1
- package/types/ops/OpsTypes.d.ts.map +1 -1
- package/types/ops/OrganizationOps.d.ts.map +1 -1
- package/types/ops/Saml2Ops.d.ts +52 -55
- package/types/ops/Saml2Ops.d.ts.map +1 -1
- package/types/ops/ScriptOps.d.ts.map +1 -1
- package/types/ops/ServiceAccountOps.d.ts +20 -0
- package/types/ops/ServiceAccountOps.d.ts.map +1 -0
- package/types/ops/ServiceOps.d.ts +18 -10
- package/types/ops/ServiceOps.d.ts.map +1 -1
- package/types/ops/ThemeOps.d.ts +35 -50
- package/types/ops/ThemeOps.d.ts.map +1 -1
- package/types/ops/utils/Console.d.ts +1 -1
- package/types/ops/utils/Console.d.ts.map +1 -1
- package/types/ops/utils/DataProtection.d.ts.map +1 -1
- package/types/ops/utils/ExportImportUtils.d.ts +5 -2
- package/types/ops/utils/ExportImportUtils.d.ts.map +1 -1
- package/types/ops/utils/OpsUtils.d.ts +6 -0
- package/types/ops/utils/OpsUtils.d.ts.map +1 -1
- package/types/ops/utils/Wordwrap.d.ts.map +1 -1
- package/types/shared/State.d.ts +223 -0
- package/types/shared/State.d.ts.map +1 -0
- package/types/test/mocks/ForgeRockApiMockEngine.d.ts +21 -1
- package/types/test/mocks/ForgeRockApiMockEngine.d.ts.map +1 -1
- package/types/utils/AutoSetupPolly.d.ts +1 -0
- package/types/utils/AutoSetupPolly.d.ts.map +1 -0
- package/types/utils/SetupJest.d.ts +1 -0
- package/types/utils/SetupJest.d.ts.map +1 -0
- package/types/utils/snapshotResolve.d.ts +1 -0
- package/types/utils/snapshotResolve.d.ts.map +1 -0
- package/cjs/api/EmailTemplateApi.js +0 -73
- package/cjs/api/EmailTemplateApi.js.map +0 -1
- package/cjs/api/ThemeApi.js +0 -367
- package/cjs/api/ThemeApi.js.map +0 -1
- package/cjs/api/ThemeApi.test.js.map +0 -1
- package/cjs/storage/SessionStorage.js +0 -91
- package/cjs/storage/SessionStorage.js.map +0 -1
- package/cjs/test/mocks/snapshotResolve.js.map +0 -1
- package/esm/api/EmailTemplateApi.mjs +0 -34
- package/esm/api/ThemeApi.mjs +0 -271
- package/esm/storage/SessionStorage.mjs +0 -79
- package/types/api/EmailTemplateApi.d.ts +0 -22
- package/types/api/EmailTemplateApi.d.ts.map +0 -1
- package/types/api/ThemeApi.d.ts +0 -56
- package/types/api/ThemeApi.d.ts.map +0 -1
- package/types/storage/SessionStorage.d.ts +0 -71
- package/types/storage/SessionStorage.d.ts.map +0 -1
- package/types/test/mocks/snapshotResolve.d.ts +0 -1
- package/types/test/mocks/snapshotResolve.d.ts.map +0 -1
package/cjs/ops/AgentOps.js
CHANGED
|
@@ -41,41 +41,33 @@ exports.importWebAgents = importWebAgents;
|
|
|
41
41
|
exports.putIdentityGatewayAgent = putIdentityGatewayAgent;
|
|
42
42
|
exports.putJavaAgent = putJavaAgent;
|
|
43
43
|
exports.putWebAgent = putWebAgent;
|
|
44
|
-
|
|
45
44
|
var _Console = require("./utils/Console");
|
|
46
|
-
|
|
47
45
|
var _AgentApi = require("../api/AgentApi");
|
|
48
|
-
|
|
49
46
|
var _ExportImportUtils = require("./utils/ExportImportUtils");
|
|
50
|
-
|
|
51
47
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
52
|
-
|
|
53
48
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
54
|
-
|
|
55
49
|
var AGENT_TYPE_IG = 'IdentityGatewayAgent';
|
|
56
50
|
exports.AGENT_TYPE_IG = AGENT_TYPE_IG;
|
|
57
51
|
var AGENT_TYPE_JAVA = 'J2EEAgent';
|
|
58
52
|
exports.AGENT_TYPE_JAVA = AGENT_TYPE_JAVA;
|
|
59
53
|
var AGENT_TYPE_WEB = 'WebAgent';
|
|
54
|
+
|
|
60
55
|
/**
|
|
61
56
|
* Create an empty agent export template
|
|
62
57
|
* @returns {AgentExportInterface} an empty agent export template
|
|
63
58
|
*/
|
|
64
|
-
|
|
65
59
|
exports.AGENT_TYPE_WEB = AGENT_TYPE_WEB;
|
|
66
|
-
|
|
67
60
|
function createAgentExportTemplate() {
|
|
68
61
|
return {
|
|
69
62
|
meta: {},
|
|
70
63
|
agents: {}
|
|
71
64
|
};
|
|
72
65
|
}
|
|
66
|
+
|
|
73
67
|
/**
|
|
74
68
|
* Get all agents. Results are sorted aphabetically.
|
|
75
69
|
* @returns {Promise<TreeSkeleton[]>} a promise that resolves to an array of agent objects
|
|
76
70
|
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
71
|
function getAgents() {
|
|
80
72
|
return _getAgents.apply(this, arguments);
|
|
81
73
|
}
|
|
@@ -84,13 +76,10 @@ function getAgents() {
|
|
|
84
76
|
* @param {string} agentId agent id/name
|
|
85
77
|
* @returns {Promise} a promise that resolves to an agent object
|
|
86
78
|
*/
|
|
87
|
-
|
|
88
|
-
|
|
89
79
|
function _getAgents() {
|
|
90
80
|
_getAgents = _asyncToGenerator(function* () {
|
|
91
81
|
(0, _Console.debugMessage)("AgentOps.getAgents: start");
|
|
92
82
|
var agents = [];
|
|
93
|
-
|
|
94
83
|
try {
|
|
95
84
|
var resolved = yield Promise.all([(0, _AgentApi.getAgentsByType)('IdentityGatewayAgent'), (0, _AgentApi.getAgentsByType)('J2EEAgent'), (0, _AgentApi.getAgentsByType)('WebAgent')]);
|
|
96
85
|
agents = agents.concat(resolved[0].result);
|
|
@@ -100,14 +89,12 @@ function _getAgents() {
|
|
|
100
89
|
(0, _Console.printMessage)("".concat(error.message), 'error');
|
|
101
90
|
(0, _Console.printMessage)(error.response.data, 'error');
|
|
102
91
|
}
|
|
103
|
-
|
|
104
92
|
agents.sort((a, b) => a._id.localeCompare(b._id));
|
|
105
93
|
(0, _Console.debugMessage)("AgentOps.getAgents: end");
|
|
106
94
|
return agents;
|
|
107
95
|
});
|
|
108
96
|
return _getAgents.apply(this, arguments);
|
|
109
97
|
}
|
|
110
|
-
|
|
111
98
|
function getAgent(_x) {
|
|
112
99
|
return _getAgent.apply(this, arguments);
|
|
113
100
|
}
|
|
@@ -117,13 +104,10 @@ function getAgent(_x) {
|
|
|
117
104
|
* @param {string} agentId agent id/name
|
|
118
105
|
* @returns {Promise} a promise that resolves to an agent object
|
|
119
106
|
*/
|
|
120
|
-
|
|
121
|
-
|
|
122
107
|
function _getAgent() {
|
|
123
108
|
_getAgent = _asyncToGenerator(function* (agentId) {
|
|
124
109
|
(0, _Console.debugMessage)("AgentOps.getAgent: start");
|
|
125
110
|
var agents = yield (0, _AgentApi.findAgentById)(agentId);
|
|
126
|
-
|
|
127
111
|
if (agents.length === 1) {
|
|
128
112
|
var result = yield (0, _AgentApi.getAgentByTypeAndId)(agents[0]._type, agents[0]._id);
|
|
129
113
|
(0, _Console.debugMessage)("AgentOps.getAgent: end");
|
|
@@ -136,7 +120,6 @@ function _getAgent() {
|
|
|
136
120
|
});
|
|
137
121
|
return _getAgent.apply(this, arguments);
|
|
138
122
|
}
|
|
139
|
-
|
|
140
123
|
function getAgentByTypeAndId(_x2, _x3) {
|
|
141
124
|
return _getAgentByTypeAndId2.apply(this, arguments);
|
|
142
125
|
}
|
|
@@ -144,8 +127,6 @@ function getAgentByTypeAndId(_x2, _x3) {
|
|
|
144
127
|
* Get identity gateway agents
|
|
145
128
|
* @returns {Promise} a promise that resolves to an array of IdentityGatewayAgent objects
|
|
146
129
|
*/
|
|
147
|
-
|
|
148
|
-
|
|
149
130
|
function _getAgentByTypeAndId2() {
|
|
150
131
|
_getAgentByTypeAndId2 = _asyncToGenerator(function* (agentType, agentId) {
|
|
151
132
|
(0, _Console.debugMessage)("AgentOps.getAgentByTypeAndId: start");
|
|
@@ -155,7 +136,6 @@ function _getAgentByTypeAndId2() {
|
|
|
155
136
|
});
|
|
156
137
|
return _getAgentByTypeAndId2.apply(this, arguments);
|
|
157
138
|
}
|
|
158
|
-
|
|
159
139
|
function getIdentityGatewayAgents() {
|
|
160
140
|
return _getIdentityGatewayAgents.apply(this, arguments);
|
|
161
141
|
}
|
|
@@ -164,8 +144,6 @@ function getIdentityGatewayAgents() {
|
|
|
164
144
|
* @param {string} gatewayId gateway id
|
|
165
145
|
* @returns {Promise} a promise that resolves to an object containing an IdentityGatewayAgent object
|
|
166
146
|
*/
|
|
167
|
-
|
|
168
|
-
|
|
169
147
|
function _getIdentityGatewayAgents() {
|
|
170
148
|
_getIdentityGatewayAgents = _asyncToGenerator(function* () {
|
|
171
149
|
(0, _Console.debugMessage)("AgentOps.getIdentityGatewayAgents: start");
|
|
@@ -177,7 +155,6 @@ function _getIdentityGatewayAgents() {
|
|
|
177
155
|
});
|
|
178
156
|
return _getIdentityGatewayAgents.apply(this, arguments);
|
|
179
157
|
}
|
|
180
|
-
|
|
181
158
|
function getIdentityGatewayAgent(_x4) {
|
|
182
159
|
return _getIdentityGatewayAgent.apply(this, arguments);
|
|
183
160
|
}
|
|
@@ -187,8 +164,6 @@ function getIdentityGatewayAgent(_x4) {
|
|
|
187
164
|
* @param {Object} gatewayData IdentityGatewayAgent object
|
|
188
165
|
* @returns {Promise} a promise that resolves to an object containing an IdentityGatewayAgent object
|
|
189
166
|
*/
|
|
190
|
-
|
|
191
|
-
|
|
192
167
|
function _getIdentityGatewayAgent() {
|
|
193
168
|
_getIdentityGatewayAgent = _asyncToGenerator(function* (gatewayId) {
|
|
194
169
|
(0, _Console.debugMessage)("AgentOps.getIdentityGatewayAgent: start");
|
|
@@ -198,7 +173,6 @@ function _getIdentityGatewayAgent() {
|
|
|
198
173
|
});
|
|
199
174
|
return _getIdentityGatewayAgent.apply(this, arguments);
|
|
200
175
|
}
|
|
201
|
-
|
|
202
176
|
function putIdentityGatewayAgent(_x5, _x6) {
|
|
203
177
|
return _putIdentityGatewayAgent.apply(this, arguments);
|
|
204
178
|
}
|
|
@@ -206,8 +180,6 @@ function putIdentityGatewayAgent(_x5, _x6) {
|
|
|
206
180
|
* Get java agents
|
|
207
181
|
* @returns {Promise} a promise that resolves to an array of J2EEAgent objects
|
|
208
182
|
*/
|
|
209
|
-
|
|
210
|
-
|
|
211
183
|
function _putIdentityGatewayAgent() {
|
|
212
184
|
_putIdentityGatewayAgent = _asyncToGenerator(function* (gatewayId, gatewayData) {
|
|
213
185
|
(0, _Console.debugMessage)("AgentOps.putIdentityGatewayAgent: start");
|
|
@@ -217,7 +189,6 @@ function _putIdentityGatewayAgent() {
|
|
|
217
189
|
});
|
|
218
190
|
return _putIdentityGatewayAgent.apply(this, arguments);
|
|
219
191
|
}
|
|
220
|
-
|
|
221
192
|
function getJavaAgents() {
|
|
222
193
|
return _getJavaAgents.apply(this, arguments);
|
|
223
194
|
}
|
|
@@ -226,8 +197,6 @@ function getJavaAgents() {
|
|
|
226
197
|
* @param {string} agentId java agent id
|
|
227
198
|
* @returns {Promise} a promise that resolves to an object containing an J2EEAgent object
|
|
228
199
|
*/
|
|
229
|
-
|
|
230
|
-
|
|
231
200
|
function _getJavaAgents() {
|
|
232
201
|
_getJavaAgents = _asyncToGenerator(function* () {
|
|
233
202
|
(0, _Console.debugMessage)("AgentOps.getJavaAgents: start");
|
|
@@ -239,7 +208,6 @@ function _getJavaAgents() {
|
|
|
239
208
|
});
|
|
240
209
|
return _getJavaAgents.apply(this, arguments);
|
|
241
210
|
}
|
|
242
|
-
|
|
243
211
|
function getJavaAgent(_x7) {
|
|
244
212
|
return _getJavaAgent.apply(this, arguments);
|
|
245
213
|
}
|
|
@@ -249,8 +217,6 @@ function getJavaAgent(_x7) {
|
|
|
249
217
|
* @param {Object} agentData java agent object
|
|
250
218
|
* @returns {Promise} a promise that resolves to an object containing an java agent object
|
|
251
219
|
*/
|
|
252
|
-
|
|
253
|
-
|
|
254
220
|
function _getJavaAgent() {
|
|
255
221
|
_getJavaAgent = _asyncToGenerator(function* (agentId) {
|
|
256
222
|
(0, _Console.debugMessage)("AgentOps.getJavaAgent: start");
|
|
@@ -260,7 +226,6 @@ function _getJavaAgent() {
|
|
|
260
226
|
});
|
|
261
227
|
return _getJavaAgent.apply(this, arguments);
|
|
262
228
|
}
|
|
263
|
-
|
|
264
229
|
function putJavaAgent(_x8, _x9) {
|
|
265
230
|
return _putJavaAgent.apply(this, arguments);
|
|
266
231
|
}
|
|
@@ -268,8 +233,6 @@ function putJavaAgent(_x8, _x9) {
|
|
|
268
233
|
* Get web agents
|
|
269
234
|
* @returns {Promise} a promise that resolves to an array of WebAgent objects
|
|
270
235
|
*/
|
|
271
|
-
|
|
272
|
-
|
|
273
236
|
function _putJavaAgent() {
|
|
274
237
|
_putJavaAgent = _asyncToGenerator(function* (agentId, agentData) {
|
|
275
238
|
(0, _Console.debugMessage)("AgentOps.putJavaAgent: start");
|
|
@@ -279,7 +242,6 @@ function _putJavaAgent() {
|
|
|
279
242
|
});
|
|
280
243
|
return _putJavaAgent.apply(this, arguments);
|
|
281
244
|
}
|
|
282
|
-
|
|
283
245
|
function getWebAgents() {
|
|
284
246
|
return _getWebAgents.apply(this, arguments);
|
|
285
247
|
}
|
|
@@ -288,8 +250,6 @@ function getWebAgents() {
|
|
|
288
250
|
* @param {string} agentId web agent id
|
|
289
251
|
* @returns {Promise} a promise that resolves to an object containing an WebAgent object
|
|
290
252
|
*/
|
|
291
|
-
|
|
292
|
-
|
|
293
253
|
function _getWebAgents() {
|
|
294
254
|
_getWebAgents = _asyncToGenerator(function* () {
|
|
295
255
|
(0, _Console.debugMessage)("AgentOps.getWebAgents: start");
|
|
@@ -301,7 +261,6 @@ function _getWebAgents() {
|
|
|
301
261
|
});
|
|
302
262
|
return _getWebAgents.apply(this, arguments);
|
|
303
263
|
}
|
|
304
|
-
|
|
305
264
|
function getWebAgent(_x10) {
|
|
306
265
|
return _getWebAgent.apply(this, arguments);
|
|
307
266
|
}
|
|
@@ -311,8 +270,6 @@ function getWebAgent(_x10) {
|
|
|
311
270
|
* @param {Object} agentData WebAgent object
|
|
312
271
|
* @returns {Promise} a promise that resolves to an object containing an WebAgent object
|
|
313
272
|
*/
|
|
314
|
-
|
|
315
|
-
|
|
316
273
|
function _getWebAgent() {
|
|
317
274
|
_getWebAgent = _asyncToGenerator(function* (agentId) {
|
|
318
275
|
(0, _Console.debugMessage)("AgentOps.getWebAgent: start");
|
|
@@ -322,16 +279,13 @@ function _getWebAgent() {
|
|
|
322
279
|
});
|
|
323
280
|
return _getWebAgent.apply(this, arguments);
|
|
324
281
|
}
|
|
325
|
-
|
|
326
282
|
function putWebAgent(_x11, _x12) {
|
|
327
283
|
return _putWebAgent.apply(this, arguments);
|
|
328
284
|
}
|
|
329
285
|
/**
|
|
330
286
|
* Export all agents. The response can be saved to file as is.
|
|
331
|
-
* @returns {Promise<AgentExportInterface} Promise resolving to an AgentExportInterface object.
|
|
287
|
+
* @returns {Promise<AgentExportInterface>} Promise resolving to an AgentExportInterface object.
|
|
332
288
|
*/
|
|
333
|
-
|
|
334
|
-
|
|
335
289
|
function _putWebAgent() {
|
|
336
290
|
_putWebAgent = _asyncToGenerator(function* (agentId, agentData) {
|
|
337
291
|
(0, _Console.debugMessage)("AgentOps.putWebAgent: start");
|
|
@@ -341,7 +295,6 @@ function _putWebAgent() {
|
|
|
341
295
|
});
|
|
342
296
|
return _putWebAgent.apply(this, arguments);
|
|
343
297
|
}
|
|
344
|
-
|
|
345
298
|
function exportAgents() {
|
|
346
299
|
return _exportAgents.apply(this, arguments);
|
|
347
300
|
}
|
|
@@ -349,24 +302,19 @@ function exportAgents() {
|
|
|
349
302
|
* Export all identity gateway agents. The response can be saved to file as is.
|
|
350
303
|
* @returns {Promise<AgentExportInterface} Promise resolving to an AgentExportInterface object.
|
|
351
304
|
*/
|
|
352
|
-
|
|
353
|
-
|
|
354
305
|
function _exportAgents() {
|
|
355
306
|
_exportAgents = _asyncToGenerator(function* () {
|
|
356
307
|
(0, _Console.debugMessage)("AgentOps.exportAgents: start");
|
|
357
308
|
var exportData = createAgentExportTemplate();
|
|
358
309
|
var agents = yield getAgents();
|
|
359
|
-
|
|
360
310
|
for (var agent of agents) {
|
|
361
311
|
exportData.agents[agent._id] = agent;
|
|
362
312
|
}
|
|
363
|
-
|
|
364
313
|
(0, _Console.debugMessage)("AgentOps.exportAgents: end");
|
|
365
314
|
return exportData;
|
|
366
315
|
});
|
|
367
316
|
return _exportAgents.apply(this, arguments);
|
|
368
317
|
}
|
|
369
|
-
|
|
370
318
|
function exportIdentityGatewayAgents() {
|
|
371
319
|
return _exportIdentityGatewayAgents.apply(this, arguments);
|
|
372
320
|
}
|
|
@@ -374,24 +322,19 @@ function exportIdentityGatewayAgents() {
|
|
|
374
322
|
* Export all java agents. The response can be saved to file as is.
|
|
375
323
|
* @returns {Promise<AgentExportInterface} Promise resolving to an AgentExportInterface object.
|
|
376
324
|
*/
|
|
377
|
-
|
|
378
|
-
|
|
379
325
|
function _exportIdentityGatewayAgents() {
|
|
380
326
|
_exportIdentityGatewayAgents = _asyncToGenerator(function* () {
|
|
381
327
|
(0, _Console.debugMessage)("AgentOps.exportIdentityGatewayAgents: start");
|
|
382
328
|
var exportData = createAgentExportTemplate();
|
|
383
329
|
var agents = yield getIdentityGatewayAgents();
|
|
384
|
-
|
|
385
330
|
for (var agent of agents) {
|
|
386
331
|
exportData.agents[agent._id] = agent;
|
|
387
332
|
}
|
|
388
|
-
|
|
389
333
|
(0, _Console.debugMessage)("AgentOps.exportIdentityGatewayAgents: end");
|
|
390
334
|
return exportData;
|
|
391
335
|
});
|
|
392
336
|
return _exportIdentityGatewayAgents.apply(this, arguments);
|
|
393
337
|
}
|
|
394
|
-
|
|
395
338
|
function exportJavaAgents() {
|
|
396
339
|
return _exportJavaAgents.apply(this, arguments);
|
|
397
340
|
}
|
|
@@ -399,24 +342,19 @@ function exportJavaAgents() {
|
|
|
399
342
|
* Export all web agents. The response can be saved to file as is.
|
|
400
343
|
* @returns {Promise<AgentExportInterface} Promise resolving to an AgentExportInterface object.
|
|
401
344
|
*/
|
|
402
|
-
|
|
403
|
-
|
|
404
345
|
function _exportJavaAgents() {
|
|
405
346
|
_exportJavaAgents = _asyncToGenerator(function* () {
|
|
406
347
|
(0, _Console.debugMessage)("AgentOps.exportJavaAgents: start");
|
|
407
348
|
var exportData = createAgentExportTemplate();
|
|
408
349
|
var agents = yield getJavaAgents();
|
|
409
|
-
|
|
410
350
|
for (var agent of agents) {
|
|
411
351
|
exportData.agents[agent._id] = agent;
|
|
412
352
|
}
|
|
413
|
-
|
|
414
353
|
(0, _Console.debugMessage)("AgentOps.exportJavaAgents: end");
|
|
415
354
|
return exportData;
|
|
416
355
|
});
|
|
417
356
|
return _exportJavaAgents.apply(this, arguments);
|
|
418
357
|
}
|
|
419
|
-
|
|
420
358
|
function exportWebAgents() {
|
|
421
359
|
return _exportWebAgents.apply(this, arguments);
|
|
422
360
|
}
|
|
@@ -425,24 +363,19 @@ function exportWebAgents() {
|
|
|
425
363
|
* @param agentId agent id/name
|
|
426
364
|
* @returns {Promise<AgentExportInterface} Promise resolving to an AgentExportInterface object.
|
|
427
365
|
*/
|
|
428
|
-
|
|
429
|
-
|
|
430
366
|
function _exportWebAgents() {
|
|
431
367
|
_exportWebAgents = _asyncToGenerator(function* () {
|
|
432
368
|
(0, _Console.debugMessage)("AgentOps.exportWebAgents: start");
|
|
433
369
|
var exportData = createAgentExportTemplate();
|
|
434
370
|
var agents = yield getWebAgents();
|
|
435
|
-
|
|
436
371
|
for (var agent of agents) {
|
|
437
372
|
exportData.agents[agent._id] = agent;
|
|
438
373
|
}
|
|
439
|
-
|
|
440
374
|
(0, _Console.debugMessage)("AgentOps.exportWebAgents: end");
|
|
441
375
|
return exportData;
|
|
442
376
|
});
|
|
443
377
|
return _exportWebAgents.apply(this, arguments);
|
|
444
378
|
}
|
|
445
|
-
|
|
446
379
|
function exportAgent(_x13) {
|
|
447
380
|
return _exportAgent.apply(this, arguments);
|
|
448
381
|
}
|
|
@@ -451,8 +384,6 @@ function exportAgent(_x13) {
|
|
|
451
384
|
* @param agentId agent id/name
|
|
452
385
|
* @returns {Promise<AgentExportInterface} Promise resolving to an AgentExportInterface object.
|
|
453
386
|
*/
|
|
454
|
-
|
|
455
|
-
|
|
456
387
|
function _exportAgent() {
|
|
457
388
|
_exportAgent = _asyncToGenerator(function* (agentId) {
|
|
458
389
|
(0, _Console.debugMessage)("AgentOps.exportAgent: start");
|
|
@@ -464,7 +395,6 @@ function _exportAgent() {
|
|
|
464
395
|
});
|
|
465
396
|
return _exportAgent.apply(this, arguments);
|
|
466
397
|
}
|
|
467
|
-
|
|
468
398
|
function exportIdentityGatewayAgent(_x14) {
|
|
469
399
|
return _exportIdentityGatewayAgent.apply(this, arguments);
|
|
470
400
|
}
|
|
@@ -473,8 +403,6 @@ function exportIdentityGatewayAgent(_x14) {
|
|
|
473
403
|
* @param agentId agent id/name
|
|
474
404
|
* @returns {Promise<AgentExportInterface} Promise resolving to an AgentExportInterface object.
|
|
475
405
|
*/
|
|
476
|
-
|
|
477
|
-
|
|
478
406
|
function _exportIdentityGatewayAgent() {
|
|
479
407
|
_exportIdentityGatewayAgent = _asyncToGenerator(function* (agentId) {
|
|
480
408
|
(0, _Console.debugMessage)("AgentOps.exportIdentityGatewayAgent: start");
|
|
@@ -486,7 +414,6 @@ function _exportIdentityGatewayAgent() {
|
|
|
486
414
|
});
|
|
487
415
|
return _exportIdentityGatewayAgent.apply(this, arguments);
|
|
488
416
|
}
|
|
489
|
-
|
|
490
417
|
function exportJavaAgent(_x15) {
|
|
491
418
|
return _exportJavaAgent.apply(this, arguments);
|
|
492
419
|
}
|
|
@@ -495,8 +422,6 @@ function exportJavaAgent(_x15) {
|
|
|
495
422
|
* @param agentId agent id/name
|
|
496
423
|
* @returns {Promise<AgentExportInterface} Promise resolving to an AgentExportInterface object.
|
|
497
424
|
*/
|
|
498
|
-
|
|
499
|
-
|
|
500
425
|
function _exportJavaAgent() {
|
|
501
426
|
_exportJavaAgent = _asyncToGenerator(function* (agentId) {
|
|
502
427
|
(0, _Console.debugMessage)("AgentOps.exportJavaAgent: start");
|
|
@@ -508,7 +433,6 @@ function _exportJavaAgent() {
|
|
|
508
433
|
});
|
|
509
434
|
return _exportJavaAgent.apply(this, arguments);
|
|
510
435
|
}
|
|
511
|
-
|
|
512
436
|
function exportWebAgent(_x16) {
|
|
513
437
|
return _exportWebAgent.apply(this, arguments);
|
|
514
438
|
}
|
|
@@ -516,8 +440,6 @@ function exportWebAgent(_x16) {
|
|
|
516
440
|
* Import agents. The import data is usually read from an agent export file.
|
|
517
441
|
* @param {AgentExportInterface} importData agent import data.
|
|
518
442
|
*/
|
|
519
|
-
|
|
520
|
-
|
|
521
443
|
function _exportWebAgent() {
|
|
522
444
|
_exportWebAgent = _asyncToGenerator(function* (agentId) {
|
|
523
445
|
(0, _Console.debugMessage)("AgentOps.exportWebAgent: start");
|
|
@@ -529,7 +451,6 @@ function _exportWebAgent() {
|
|
|
529
451
|
});
|
|
530
452
|
return _exportWebAgent.apply(this, arguments);
|
|
531
453
|
}
|
|
532
|
-
|
|
533
454
|
function importAgents(_x17) {
|
|
534
455
|
return _importAgents.apply(this, arguments);
|
|
535
456
|
}
|
|
@@ -537,12 +458,9 @@ function importAgents(_x17) {
|
|
|
537
458
|
* Import identity gateway agents. The import data is usually read from an agent export file.
|
|
538
459
|
* @param {AgentExportInterface} importData agent import data.
|
|
539
460
|
*/
|
|
540
|
-
|
|
541
|
-
|
|
542
461
|
function _importAgents() {
|
|
543
462
|
_importAgents = _asyncToGenerator(function* (importData) {
|
|
544
463
|
(0, _Console.debugMessage)("AgentOps.importAgents: start");
|
|
545
|
-
|
|
546
464
|
if ((0, _ExportImportUtils.validateImport)(importData.meta)) {
|
|
547
465
|
for (var agentId of Object.keys(importData.agents)) {
|
|
548
466
|
var agentType = importData.agents[agentId]._type._id;
|
|
@@ -552,12 +470,10 @@ function _importAgents() {
|
|
|
552
470
|
} else {
|
|
553
471
|
throw new Error('Invalid meta data.');
|
|
554
472
|
}
|
|
555
|
-
|
|
556
473
|
(0, _Console.debugMessage)("AgentOps.importAgents: end");
|
|
557
474
|
});
|
|
558
475
|
return _importAgents.apply(this, arguments);
|
|
559
476
|
}
|
|
560
|
-
|
|
561
477
|
function importIdentityGatewayAgents(_x18) {
|
|
562
478
|
return _importIdentityGatewayAgents.apply(this, arguments);
|
|
563
479
|
}
|
|
@@ -565,12 +481,9 @@ function importIdentityGatewayAgents(_x18) {
|
|
|
565
481
|
* Import java agents. The import data is usually read from an agent export file.
|
|
566
482
|
* @param {AgentExportInterface} importData agent import data.
|
|
567
483
|
*/
|
|
568
|
-
|
|
569
|
-
|
|
570
484
|
function _importIdentityGatewayAgents() {
|
|
571
485
|
_importIdentityGatewayAgents = _asyncToGenerator(function* (importData) {
|
|
572
486
|
(0, _Console.debugMessage)("AgentOps.importIdentityGatewayAgents: start");
|
|
573
|
-
|
|
574
487
|
if ((0, _ExportImportUtils.validateImport)(importData.meta)) {
|
|
575
488
|
for (var agentId of Object.keys(importData.agents)) {
|
|
576
489
|
var agentType = importData.agents[agentId]._type._id;
|
|
@@ -580,12 +493,10 @@ function _importIdentityGatewayAgents() {
|
|
|
580
493
|
} else {
|
|
581
494
|
throw new Error('Invalid meta data.');
|
|
582
495
|
}
|
|
583
|
-
|
|
584
496
|
(0, _Console.debugMessage)("AgentOps.importIdentityGatewayAgents: end");
|
|
585
497
|
});
|
|
586
498
|
return _importIdentityGatewayAgents.apply(this, arguments);
|
|
587
499
|
}
|
|
588
|
-
|
|
589
500
|
function importJavaAgents(_x19) {
|
|
590
501
|
return _importJavaAgents.apply(this, arguments);
|
|
591
502
|
}
|
|
@@ -593,12 +504,9 @@ function importJavaAgents(_x19) {
|
|
|
593
504
|
* Import web agents. The import data is usually read from an agent export file.
|
|
594
505
|
* @param {AgentExportInterface} importData agent import data.
|
|
595
506
|
*/
|
|
596
|
-
|
|
597
|
-
|
|
598
507
|
function _importJavaAgents() {
|
|
599
508
|
_importJavaAgents = _asyncToGenerator(function* (importData) {
|
|
600
509
|
(0, _Console.debugMessage)("AgentOps.importJavaAgents: start");
|
|
601
|
-
|
|
602
510
|
if ((0, _ExportImportUtils.validateImport)(importData.meta)) {
|
|
603
511
|
for (var agentId of Object.keys(importData.agents)) {
|
|
604
512
|
var agentType = importData.agents[agentId]._type._id;
|
|
@@ -608,12 +516,10 @@ function _importJavaAgents() {
|
|
|
608
516
|
} else {
|
|
609
517
|
throw new Error('Invalid meta data.');
|
|
610
518
|
}
|
|
611
|
-
|
|
612
519
|
(0, _Console.debugMessage)("AgentOps.importJavaAgents: end");
|
|
613
520
|
});
|
|
614
521
|
return _importJavaAgents.apply(this, arguments);
|
|
615
522
|
}
|
|
616
|
-
|
|
617
523
|
function importWebAgents(_x20) {
|
|
618
524
|
return _importWebAgents.apply(this, arguments);
|
|
619
525
|
}
|
|
@@ -623,12 +529,9 @@ function importWebAgents(_x20) {
|
|
|
623
529
|
* @param {AgentExportInterface} importData agent import data.
|
|
624
530
|
* @returns {Promise} Promise resolving to an agent object.
|
|
625
531
|
*/
|
|
626
|
-
|
|
627
|
-
|
|
628
532
|
function _importWebAgents() {
|
|
629
533
|
_importWebAgents = _asyncToGenerator(function* (importData) {
|
|
630
534
|
(0, _Console.debugMessage)("AgentOps.importWebAgents: start");
|
|
631
|
-
|
|
632
535
|
if ((0, _ExportImportUtils.validateImport)(importData.meta)) {
|
|
633
536
|
for (var agentId of Object.keys(importData.agents)) {
|
|
634
537
|
var agentType = importData.agents[agentId]._type._id;
|
|
@@ -638,12 +541,10 @@ function _importWebAgents() {
|
|
|
638
541
|
} else {
|
|
639
542
|
throw new Error('Invalid meta data.');
|
|
640
543
|
}
|
|
641
|
-
|
|
642
544
|
(0, _Console.debugMessage)("AgentOps.importWebAgents: end");
|
|
643
545
|
});
|
|
644
546
|
return _importWebAgents.apply(this, arguments);
|
|
645
547
|
}
|
|
646
|
-
|
|
647
548
|
function importAgent(_x21, _x22) {
|
|
648
549
|
return _importAgent.apply(this, arguments);
|
|
649
550
|
}
|
|
@@ -653,15 +554,11 @@ function importAgent(_x21, _x22) {
|
|
|
653
554
|
* @param {AgentExportInterface} importData agent import data.
|
|
654
555
|
* @returns {Promise} Promise resolving to an agent object.
|
|
655
556
|
*/
|
|
656
|
-
|
|
657
|
-
|
|
658
557
|
function _importAgent() {
|
|
659
558
|
_importAgent = _asyncToGenerator(function* (agentId, importData) {
|
|
660
559
|
(0, _Console.debugMessage)("AgentOps.importAgent: start");
|
|
661
|
-
|
|
662
560
|
if ((0, _ExportImportUtils.validateImport)(importData.meta)) {
|
|
663
561
|
var _importData$agents$ag;
|
|
664
|
-
|
|
665
562
|
var agentType = (_importData$agents$ag = importData.agents[agentId]) === null || _importData$agents$ag === void 0 ? void 0 : _importData$agents$ag._type._id;
|
|
666
563
|
var result = yield (0, _AgentApi.putAgentByTypeAndId)(agentType, agentId, importData.agents[agentId]);
|
|
667
564
|
(0, _Console.debugMessage)("AgentOps.importAgent: end");
|
|
@@ -672,7 +569,6 @@ function _importAgent() {
|
|
|
672
569
|
});
|
|
673
570
|
return _importAgent.apply(this, arguments);
|
|
674
571
|
}
|
|
675
|
-
|
|
676
572
|
function importIdentityGatewayAgent(_x23, _x24) {
|
|
677
573
|
return _importIdentityGatewayAgent.apply(this, arguments);
|
|
678
574
|
}
|
|
@@ -682,15 +578,11 @@ function importIdentityGatewayAgent(_x23, _x24) {
|
|
|
682
578
|
* @param {AgentExportInterface} importData agent import data.
|
|
683
579
|
* @returns {Promise} Promise resolving to an agent object.
|
|
684
580
|
*/
|
|
685
|
-
|
|
686
|
-
|
|
687
581
|
function _importIdentityGatewayAgent() {
|
|
688
582
|
_importIdentityGatewayAgent = _asyncToGenerator(function* (agentId, importData) {
|
|
689
583
|
(0, _Console.debugMessage)("AgentOps.importIdentityGatewayAgent: start");
|
|
690
|
-
|
|
691
584
|
if ((0, _ExportImportUtils.validateImport)(importData.meta)) {
|
|
692
585
|
var _importData$agents$ag2;
|
|
693
|
-
|
|
694
586
|
var agentType = (_importData$agents$ag2 = importData.agents[agentId]) === null || _importData$agents$ag2 === void 0 ? void 0 : _importData$agents$ag2._type._id;
|
|
695
587
|
if (agentType !== AGENT_TYPE_IG) throw new Error("Wrong agent type! Expected '".concat(AGENT_TYPE_IG, "' but got '").concat(agentType, "'."));
|
|
696
588
|
var result = yield (0, _AgentApi.putAgentByTypeAndId)(agentType, agentId, importData.agents[agentId]);
|
|
@@ -702,7 +594,6 @@ function _importIdentityGatewayAgent() {
|
|
|
702
594
|
});
|
|
703
595
|
return _importIdentityGatewayAgent.apply(this, arguments);
|
|
704
596
|
}
|
|
705
|
-
|
|
706
597
|
function importJavaAgent(_x25, _x26) {
|
|
707
598
|
return _importJavaAgent.apply(this, arguments);
|
|
708
599
|
}
|
|
@@ -712,15 +603,11 @@ function importJavaAgent(_x25, _x26) {
|
|
|
712
603
|
* @param {AgentExportInterface} importData agent import data.
|
|
713
604
|
* @returns {Promise} Promise resolving to an agent object.
|
|
714
605
|
*/
|
|
715
|
-
|
|
716
|
-
|
|
717
606
|
function _importJavaAgent() {
|
|
718
607
|
_importJavaAgent = _asyncToGenerator(function* (agentId, importData) {
|
|
719
608
|
(0, _Console.debugMessage)("AgentOps.importJavaAgent: start");
|
|
720
|
-
|
|
721
609
|
if ((0, _ExportImportUtils.validateImport)(importData.meta)) {
|
|
722
610
|
var _importData$agents$ag3;
|
|
723
|
-
|
|
724
611
|
var agentType = (_importData$agents$ag3 = importData.agents[agentId]) === null || _importData$agents$ag3 === void 0 ? void 0 : _importData$agents$ag3._type._id;
|
|
725
612
|
if (agentType !== AGENT_TYPE_JAVA) throw new Error("Wrong agent type! Expected '".concat(AGENT_TYPE_JAVA, "' but got '").concat(agentType, "'."));
|
|
726
613
|
var result = yield (0, _AgentApi.putAgentByTypeAndId)(agentType, agentId, importData.agents[agentId]);
|
|
@@ -732,22 +619,17 @@ function _importJavaAgent() {
|
|
|
732
619
|
});
|
|
733
620
|
return _importJavaAgent.apply(this, arguments);
|
|
734
621
|
}
|
|
735
|
-
|
|
736
622
|
function importWebAgent(_x27, _x28) {
|
|
737
623
|
return _importWebAgent.apply(this, arguments);
|
|
738
624
|
}
|
|
739
625
|
/**
|
|
740
626
|
* Delete all agents
|
|
741
627
|
*/
|
|
742
|
-
|
|
743
|
-
|
|
744
628
|
function _importWebAgent() {
|
|
745
629
|
_importWebAgent = _asyncToGenerator(function* (agentId, importData) {
|
|
746
630
|
(0, _Console.debugMessage)("AgentOps.importWebAgent: start");
|
|
747
|
-
|
|
748
631
|
if ((0, _ExportImportUtils.validateImport)(importData.meta)) {
|
|
749
632
|
var _importData$agents$ag4;
|
|
750
|
-
|
|
751
633
|
var agentType = (_importData$agents$ag4 = importData.agents[agentId]) === null || _importData$agents$ag4 === void 0 ? void 0 : _importData$agents$ag4._type._id;
|
|
752
634
|
if (agentType !== AGENT_TYPE_WEB) throw new Error("Wrong agent type! Expected '".concat(AGENT_TYPE_WEB, "' but got '").concat(agentType, "'."));
|
|
753
635
|
var result = yield (0, _AgentApi.putAgentByTypeAndId)(agentType, agentId, importData.agents[agentId]);
|
|
@@ -759,7 +641,6 @@ function _importWebAgent() {
|
|
|
759
641
|
});
|
|
760
642
|
return _importWebAgent.apply(this, arguments);
|
|
761
643
|
}
|
|
762
|
-
|
|
763
644
|
function deleteAgents() {
|
|
764
645
|
return _deleteAgents.apply(this, arguments);
|
|
765
646
|
}
|
|
@@ -767,36 +648,28 @@ function deleteAgents() {
|
|
|
767
648
|
* Delete agent
|
|
768
649
|
* @param agentId agent id/name
|
|
769
650
|
*/
|
|
770
|
-
|
|
771
|
-
|
|
772
651
|
function _deleteAgents() {
|
|
773
652
|
_deleteAgents = _asyncToGenerator(function* () {
|
|
774
653
|
(0, _Console.debugMessage)("AgentOps.deleteAgents: start");
|
|
775
654
|
var agents = yield getAgents();
|
|
776
|
-
|
|
777
655
|
for (var agent of agents) {
|
|
778
656
|
(0, _Console.debugMessage)("AgentOps.deleteAgent: '".concat(agent['_id'], "'"));
|
|
779
657
|
yield (0, _AgentApi.deleteAgentByTypeAndId)(agent['_type']['_id'], agent['_id']);
|
|
780
658
|
}
|
|
781
|
-
|
|
782
659
|
(0, _Console.debugMessage)("AgentOps.deleteAgents: end");
|
|
783
660
|
});
|
|
784
661
|
return _deleteAgents.apply(this, arguments);
|
|
785
662
|
}
|
|
786
|
-
|
|
787
663
|
function deleteAgent(_x29) {
|
|
788
664
|
return _deleteAgent.apply(this, arguments);
|
|
789
665
|
}
|
|
790
666
|
/**
|
|
791
667
|
* Delete all identity gateway agents
|
|
792
668
|
*/
|
|
793
|
-
|
|
794
|
-
|
|
795
669
|
function _deleteAgent() {
|
|
796
670
|
_deleteAgent = _asyncToGenerator(function* (agentId) {
|
|
797
671
|
(0, _Console.debugMessage)("AgentOps.deleteAgent: start");
|
|
798
672
|
var agents = yield (0, _AgentApi.findAgentById)(agentId);
|
|
799
|
-
|
|
800
673
|
if (agents.length) {
|
|
801
674
|
for (var agent of agents) {
|
|
802
675
|
(0, _Console.debugMessage)("AgentOps.deleteAgent: '".concat(agent['_id'], "'"));
|
|
@@ -805,12 +678,10 @@ function _deleteAgent() {
|
|
|
805
678
|
} else {
|
|
806
679
|
throw new Error("Agent '".concat(agentId, "' not found!"));
|
|
807
680
|
}
|
|
808
|
-
|
|
809
681
|
(0, _Console.debugMessage)("AgentOps.deleteAgent: end");
|
|
810
682
|
});
|
|
811
683
|
return _deleteAgent.apply(this, arguments);
|
|
812
684
|
}
|
|
813
|
-
|
|
814
685
|
function deleteIdentityGatewayAgents() {
|
|
815
686
|
return _deleteIdentityGatewayAgents.apply(this, arguments);
|
|
816
687
|
}
|
|
@@ -818,36 +689,28 @@ function deleteIdentityGatewayAgents() {
|
|
|
818
689
|
* Delete identity gateway agent
|
|
819
690
|
* @param agentId agent id/name
|
|
820
691
|
*/
|
|
821
|
-
|
|
822
|
-
|
|
823
692
|
function _deleteIdentityGatewayAgents() {
|
|
824
693
|
_deleteIdentityGatewayAgents = _asyncToGenerator(function* () {
|
|
825
694
|
(0, _Console.debugMessage)("AgentOps.deleteIdentityGatewayAgents: start");
|
|
826
695
|
var agents = yield getIdentityGatewayAgents();
|
|
827
|
-
|
|
828
696
|
for (var agent of agents) {
|
|
829
697
|
(0, _Console.debugMessage)("AgentOps.deleteIdentityGatewayAgent: '".concat(agent['_id'], "'"));
|
|
830
698
|
yield (0, _AgentApi.deleteAgentByTypeAndId)(agent['_type']['_id'], agent['_id']);
|
|
831
699
|
}
|
|
832
|
-
|
|
833
700
|
(0, _Console.debugMessage)("AgentOps.deleteIdentityGatewayAgents: end");
|
|
834
701
|
});
|
|
835
702
|
return _deleteIdentityGatewayAgents.apply(this, arguments);
|
|
836
703
|
}
|
|
837
|
-
|
|
838
704
|
function deleteIdentityGatewayAgent(_x30) {
|
|
839
705
|
return _deleteIdentityGatewayAgent.apply(this, arguments);
|
|
840
706
|
}
|
|
841
707
|
/**
|
|
842
708
|
* Delete all java agents
|
|
843
709
|
*/
|
|
844
|
-
|
|
845
|
-
|
|
846
710
|
function _deleteIdentityGatewayAgent() {
|
|
847
711
|
_deleteIdentityGatewayAgent = _asyncToGenerator(function* (agentId) {
|
|
848
712
|
(0, _Console.debugMessage)("AgentOps.deleteIdentityGatewayAgent: start");
|
|
849
713
|
var agents = yield (0, _AgentApi.findAgentByTypeAndId)(AGENT_TYPE_IG, agentId);
|
|
850
|
-
|
|
851
714
|
if (agents.length) {
|
|
852
715
|
for (var agent of agents) {
|
|
853
716
|
(0, _Console.debugMessage)("AgentOps.deleteIdentityGatewayAgent: '".concat(agent['_id'], "'"));
|
|
@@ -856,12 +719,10 @@ function _deleteIdentityGatewayAgent() {
|
|
|
856
719
|
} else {
|
|
857
720
|
throw new Error("Identity gateway agent '".concat(agentId, "' not found!"));
|
|
858
721
|
}
|
|
859
|
-
|
|
860
722
|
(0, _Console.debugMessage)("AgentOps.deleteIdentityGatewayAgent: end");
|
|
861
723
|
});
|
|
862
724
|
return _deleteIdentityGatewayAgent.apply(this, arguments);
|
|
863
725
|
}
|
|
864
|
-
|
|
865
726
|
function deleteJavaAgents() {
|
|
866
727
|
return _deleteJavaAgents.apply(this, arguments);
|
|
867
728
|
}
|
|
@@ -869,36 +730,28 @@ function deleteJavaAgents() {
|
|
|
869
730
|
* Delete java agent
|
|
870
731
|
* @param agentId agent id/name
|
|
871
732
|
*/
|
|
872
|
-
|
|
873
|
-
|
|
874
733
|
function _deleteJavaAgents() {
|
|
875
734
|
_deleteJavaAgents = _asyncToGenerator(function* () {
|
|
876
735
|
(0, _Console.debugMessage)("AgentOps.deleteJavaAgents: start");
|
|
877
736
|
var agents = yield getJavaAgents();
|
|
878
|
-
|
|
879
737
|
for (var agent of agents) {
|
|
880
738
|
(0, _Console.debugMessage)("AgentOps.deleteJavaAgent: '".concat(agent['_id'], "'"));
|
|
881
739
|
yield (0, _AgentApi.deleteAgentByTypeAndId)(agent['_type']['_id'], agent['_id']);
|
|
882
740
|
}
|
|
883
|
-
|
|
884
741
|
(0, _Console.debugMessage)("AgentOps.deleteJavaAgents: end");
|
|
885
742
|
});
|
|
886
743
|
return _deleteJavaAgents.apply(this, arguments);
|
|
887
744
|
}
|
|
888
|
-
|
|
889
745
|
function deleteJavaAgent(_x31) {
|
|
890
746
|
return _deleteJavaAgent.apply(this, arguments);
|
|
891
747
|
}
|
|
892
748
|
/**
|
|
893
749
|
* Delete all web agents
|
|
894
750
|
*/
|
|
895
|
-
|
|
896
|
-
|
|
897
751
|
function _deleteJavaAgent() {
|
|
898
752
|
_deleteJavaAgent = _asyncToGenerator(function* (agentId) {
|
|
899
753
|
(0, _Console.debugMessage)("AgentOps.deleteJavaAgent: start");
|
|
900
754
|
var agents = yield (0, _AgentApi.findAgentByTypeAndId)(AGENT_TYPE_JAVA, agentId);
|
|
901
|
-
|
|
902
755
|
if (agents.length) {
|
|
903
756
|
for (var agent of agents) {
|
|
904
757
|
(0, _Console.debugMessage)("AgentOps.deleteJavaAgent: '".concat(agent['_id'], "'"));
|
|
@@ -907,12 +760,10 @@ function _deleteJavaAgent() {
|
|
|
907
760
|
} else {
|
|
908
761
|
throw new Error("Java agent '".concat(agentId, "' not found!"));
|
|
909
762
|
}
|
|
910
|
-
|
|
911
763
|
(0, _Console.debugMessage)("AgentOps.deleteJavaAgent: end");
|
|
912
764
|
});
|
|
913
765
|
return _deleteJavaAgent.apply(this, arguments);
|
|
914
766
|
}
|
|
915
|
-
|
|
916
767
|
function deleteWebAgents() {
|
|
917
768
|
return _deleteWebAgents.apply(this, arguments);
|
|
918
769
|
}
|
|
@@ -920,32 +771,25 @@ function deleteWebAgents() {
|
|
|
920
771
|
* Delete web agent
|
|
921
772
|
* @param agentId agent id/name
|
|
922
773
|
*/
|
|
923
|
-
|
|
924
|
-
|
|
925
774
|
function _deleteWebAgents() {
|
|
926
775
|
_deleteWebAgents = _asyncToGenerator(function* () {
|
|
927
776
|
(0, _Console.debugMessage)("AgentOps.deleteWebAgents: start");
|
|
928
777
|
var agents = yield getWebAgents();
|
|
929
|
-
|
|
930
778
|
for (var agent of agents) {
|
|
931
779
|
(0, _Console.debugMessage)("AgentOps.deleteWebAgent: '".concat(agent['_id'], "'"));
|
|
932
780
|
yield (0, _AgentApi.deleteAgentByTypeAndId)(agent['_type']['_id'], agent['_id']);
|
|
933
781
|
}
|
|
934
|
-
|
|
935
782
|
(0, _Console.debugMessage)("AgentOps.deleteWebAgents: end");
|
|
936
783
|
});
|
|
937
784
|
return _deleteWebAgents.apply(this, arguments);
|
|
938
785
|
}
|
|
939
|
-
|
|
940
786
|
function deleteWebAgent(_x32) {
|
|
941
787
|
return _deleteWebAgent.apply(this, arguments);
|
|
942
788
|
}
|
|
943
|
-
|
|
944
789
|
function _deleteWebAgent() {
|
|
945
790
|
_deleteWebAgent = _asyncToGenerator(function* (agentId) {
|
|
946
791
|
(0, _Console.debugMessage)("AgentOps.deleteWebAgent: start");
|
|
947
792
|
var agents = yield (0, _AgentApi.findAgentByTypeAndId)(AGENT_TYPE_WEB, agentId);
|
|
948
|
-
|
|
949
793
|
if (agents.length) {
|
|
950
794
|
for (var agent of agents) {
|
|
951
795
|
(0, _Console.debugMessage)("AgentOps.deleteWebAgent: '".concat(agent['_id'], "'"));
|
|
@@ -954,7 +798,6 @@ function _deleteWebAgent() {
|
|
|
954
798
|
} else {
|
|
955
799
|
throw new Error("Web agent '".concat(agentId, "' not found!"));
|
|
956
800
|
}
|
|
957
|
-
|
|
958
801
|
(0, _Console.debugMessage)("AgentOps.deleteWebAgent: end");
|
|
959
802
|
});
|
|
960
803
|
return _deleteWebAgent.apply(this, arguments);
|