@rockcarver/frodo-cli 2.0.0-57 → 2.0.0-59
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 +13 -1
- package/esm/cli/FrodoCommand.js +9 -1
- package/esm/cli/FrodoCommand.js.map +1 -1
- package/esm/cli/_template/something-delete.js +14 -12
- package/esm/cli/_template/something-delete.js.map +1 -1
- package/esm/cli/_template/something-describe.js +14 -12
- package/esm/cli/_template/something-describe.js.map +1 -1
- package/esm/cli/_template/something-else-delete.js +14 -12
- package/esm/cli/_template/something-else-delete.js.map +1 -1
- package/esm/cli/_template/something-else-describe.js +14 -12
- package/esm/cli/_template/something-else-describe.js.map +1 -1
- package/esm/cli/_template/something-else-export.js +14 -12
- package/esm/cli/_template/something-else-export.js.map +1 -1
- package/esm/cli/_template/something-else-import.js +14 -12
- package/esm/cli/_template/something-else-import.js.map +1 -1
- package/esm/cli/_template/something-else-list.js +14 -12
- package/esm/cli/_template/something-else-list.js.map +1 -1
- package/esm/cli/_template/something-else.js +15 -8
- package/esm/cli/_template/something-else.js.map +1 -1
- package/esm/cli/_template/something-export.js +14 -12
- package/esm/cli/_template/something-export.js.map +1 -1
- package/esm/cli/_template/something-import.js +14 -12
- package/esm/cli/_template/something-import.js.map +1 -1
- package/esm/cli/_template/something-list.js +14 -12
- package/esm/cli/_template/something-list.js.map +1 -1
- package/esm/cli/_template/something-other-delete.js +14 -12
- package/esm/cli/_template/something-other-delete.js.map +1 -1
- package/esm/cli/_template/something-other-describe.js +14 -12
- package/esm/cli/_template/something-other-describe.js.map +1 -1
- package/esm/cli/_template/something-other-export.js +14 -12
- package/esm/cli/_template/something-other-export.js.map +1 -1
- package/esm/cli/_template/something-other-import.js +14 -12
- package/esm/cli/_template/something-other-import.js.map +1 -1
- package/esm/cli/_template/something-other-list.js +14 -12
- package/esm/cli/_template/something-other-list.js.map +1 -1
- package/esm/cli/_template/something-other.js +15 -8
- package/esm/cli/_template/something-other.js.map +1 -1
- package/esm/cli/_template/something.js +15 -11
- package/esm/cli/_template/something.js.map +1 -1
- package/esm/cli/admin/admin-add-autoid-static-user-mapping.js +16 -14
- package/esm/cli/admin/admin-add-autoid-static-user-mapping.js.map +1 -1
- package/esm/cli/admin/admin-create-oauth2-client-with-admin-privileges.js +62 -60
- package/esm/cli/admin/admin-create-oauth2-client-with-admin-privileges.js.map +1 -1
- package/esm/cli/admin/admin-execute-rfc7523-authz-grant-flow.js +27 -25
- package/esm/cli/admin/admin-execute-rfc7523-authz-grant-flow.js.map +1 -1
- package/esm/cli/admin/admin-federation-export.js +34 -32
- package/esm/cli/admin/admin-federation-export.js.map +1 -1
- package/esm/cli/admin/admin-federation-import.js +39 -37
- package/esm/cli/admin/admin-federation-import.js.map +1 -1
- package/esm/cli/admin/admin-federation-list.js +20 -18
- package/esm/cli/admin/admin-federation-list.js.map +1 -1
- package/esm/cli/admin/admin-federation.js +16 -8
- package/esm/cli/admin/admin-federation.js.map +1 -1
- package/esm/cli/admin/admin-generate-rfc7523-authz-grant-artefacts.js +29 -27
- package/esm/cli/admin/admin-generate-rfc7523-authz-grant-artefacts.js.map +1 -1
- package/esm/cli/admin/admin-get-access-token.js +16 -14
- package/esm/cli/admin/admin-get-access-token.js.map +1 -1
- package/esm/cli/admin/admin-grant-oauth2-client-admin-privileges.js +16 -14
- package/esm/cli/admin/admin-grant-oauth2-client-admin-privileges.js.map +1 -1
- package/esm/cli/admin/admin-hide-generic-extension-attributes.js +16 -14
- package/esm/cli/admin/admin-hide-generic-extension-attributes.js.map +1 -1
- package/esm/cli/admin/admin-list-oauth2-clients-with-admin-privileges.js +16 -14
- package/esm/cli/admin/admin-list-oauth2-clients-with-admin-privileges.js.map +1 -1
- package/esm/cli/admin/admin-list-oauth2-clients-with-custom-privileges.js +16 -14
- package/esm/cli/admin/admin-list-oauth2-clients-with-custom-privileges.js.map +1 -1
- package/esm/cli/admin/admin-list-static-user-mappings.js +16 -14
- package/esm/cli/admin/admin-list-static-user-mappings.js.map +1 -1
- package/esm/cli/admin/admin-remove-static-user-mapping.js +16 -14
- package/esm/cli/admin/admin-remove-static-user-mapping.js.map +1 -1
- package/esm/cli/admin/admin-repair-org-model.js +16 -14
- package/esm/cli/admin/admin-repair-org-model.js.map +1 -1
- package/esm/cli/admin/admin-revoke-oauth2-client-admin-privileges.js +16 -14
- package/esm/cli/admin/admin-revoke-oauth2-client-admin-privileges.js.map +1 -1
- package/esm/cli/admin/admin-show-generic-extension-attributes.js +16 -14
- package/esm/cli/admin/admin-show-generic-extension-attributes.js.map +1 -1
- package/esm/cli/admin/admin-train-auto-access-model.js +19 -17
- package/esm/cli/admin/admin-train-auto-access-model.js.map +1 -1
- package/esm/cli/admin/admin.js +34 -20
- package/esm/cli/admin/admin.js.map +1 -1
- package/esm/cli/agent/agent-delete.js +28 -26
- package/esm/cli/agent/agent-delete.js.map +1 -1
- package/esm/cli/agent/agent-describe.js +14 -12
- package/esm/cli/agent/agent-describe.js.map +1 -1
- package/esm/cli/agent/agent-export.js +34 -32
- package/esm/cli/agent/agent-export.js.map +1 -1
- package/esm/cli/agent/agent-gateway-delete.js +28 -26
- package/esm/cli/agent/agent-gateway-delete.js.map +1 -1
- package/esm/cli/agent/agent-gateway-describe.js +14 -12
- package/esm/cli/agent/agent-gateway-describe.js.map +1 -1
- package/esm/cli/agent/agent-gateway-export.js +34 -32
- package/esm/cli/agent/agent-gateway-export.js.map +1 -1
- package/esm/cli/agent/agent-gateway-import.js +40 -38
- package/esm/cli/agent/agent-gateway-import.js.map +1 -1
- package/esm/cli/agent/agent-gateway-list.js +15 -13
- package/esm/cli/agent/agent-gateway-list.js.map +1 -1
- package/esm/cli/agent/agent-gateway.js +15 -8
- package/esm/cli/agent/agent-gateway.js.map +1 -1
- package/esm/cli/agent/agent-import.js +40 -38
- package/esm/cli/agent/agent-import.js.map +1 -1
- package/esm/cli/agent/agent-java-delete.js +28 -26
- package/esm/cli/agent/agent-java-delete.js.map +1 -1
- package/esm/cli/agent/agent-java-describe.js +14 -12
- package/esm/cli/agent/agent-java-describe.js.map +1 -1
- package/esm/cli/agent/agent-java-export.js +34 -32
- package/esm/cli/agent/agent-java-export.js.map +1 -1
- package/esm/cli/agent/agent-java-import.js +40 -38
- package/esm/cli/agent/agent-java-import.js.map +1 -1
- package/esm/cli/agent/agent-java-list.js +15 -13
- package/esm/cli/agent/agent-java-list.js.map +1 -1
- package/esm/cli/agent/agent-java.js +15 -8
- package/esm/cli/agent/agent-java.js.map +1 -1
- package/esm/cli/agent/agent-list.js +15 -13
- package/esm/cli/agent/agent-list.js.map +1 -1
- package/esm/cli/agent/agent-web-delete.js +28 -26
- package/esm/cli/agent/agent-web-delete.js.map +1 -1
- package/esm/cli/agent/agent-web-describe.js +14 -12
- package/esm/cli/agent/agent-web-describe.js.map +1 -1
- package/esm/cli/agent/agent-web-export.js +34 -32
- package/esm/cli/agent/agent-web-export.js.map +1 -1
- package/esm/cli/agent/agent-web-import.js +40 -38
- package/esm/cli/agent/agent-web-import.js.map +1 -1
- package/esm/cli/agent/agent-web-list.js +15 -13
- package/esm/cli/agent/agent-web-list.js.map +1 -1
- package/esm/cli/agent/agent-web.js +15 -8
- package/esm/cli/agent/agent-web.js.map +1 -1
- package/esm/cli/agent/agent.js +17 -12
- package/esm/cli/agent/agent.js.map +1 -1
- package/esm/cli/app/app-delete.js +27 -25
- package/esm/cli/app/app-delete.js.map +1 -1
- package/esm/cli/app/app-describe.js +14 -12
- package/esm/cli/app/app-describe.js.map +1 -1
- package/esm/cli/app/app-export.js +42 -40
- package/esm/cli/app/app-export.js.map +1 -1
- package/esm/cli/app/app-import.js +47 -45
- package/esm/cli/app/app-import.js.map +1 -1
- package/esm/cli/app/app-list.js +16 -14
- package/esm/cli/app/app-list.js.map +1 -1
- package/esm/cli/app/app.js +11 -10
- package/esm/cli/app/app.js.map +1 -1
- package/esm/cli/authn/authn-describe.js +20 -18
- package/esm/cli/authn/authn-describe.js.map +1 -1
- package/esm/cli/authn/authn-export.js +16 -14
- package/esm/cli/authn/authn-export.js.map +1 -1
- package/esm/cli/authn/authn-import.js +16 -14
- package/esm/cli/authn/authn-import.js.map +1 -1
- package/esm/cli/authn/authn.js +7 -7
- package/esm/cli/authn/authn.js.map +1 -1
- package/esm/cli/authz/authz-policy-delete.js +33 -31
- package/esm/cli/authz/authz-policy-delete.js.map +1 -1
- package/esm/cli/authz/authz-policy-describe.js +20 -18
- package/esm/cli/authz/authz-policy-describe.js.map +1 -1
- package/esm/cli/authz/authz-policy-export.js +65 -63
- package/esm/cli/authz/authz-policy-export.js.map +1 -1
- package/esm/cli/authz/authz-policy-import.js +55 -53
- package/esm/cli/authz/authz-policy-import.js.map +1 -1
- package/esm/cli/authz/authz-policy-list.js +27 -25
- package/esm/cli/authz/authz-policy-list.js.map +1 -1
- package/esm/cli/authz/authz-policy.js +15 -8
- package/esm/cli/authz/authz-policy.js.map +1 -1
- package/esm/cli/authz/authz-set-delete.js +27 -25
- package/esm/cli/authz/authz-set-delete.js.map +1 -1
- package/esm/cli/authz/authz-set-describe.js +20 -18
- package/esm/cli/authz/authz-set-describe.js.map +1 -1
- package/esm/cli/authz/authz-set-export.js +45 -43
- package/esm/cli/authz/authz-set-export.js.map +1 -1
- package/esm/cli/authz/authz-set-import.js +51 -49
- package/esm/cli/authz/authz-set-import.js.map +1 -1
- package/esm/cli/authz/authz-set-list.js +16 -14
- package/esm/cli/authz/authz-set-list.js.map +1 -1
- package/esm/cli/authz/authz-set.js +15 -8
- package/esm/cli/authz/authz-set.js.map +1 -1
- package/esm/cli/authz/authz-type-delete.js +33 -31
- package/esm/cli/authz/authz-type-delete.js.map +1 -1
- package/esm/cli/authz/authz-type-describe.js +24 -22
- package/esm/cli/authz/authz-type-describe.js.map +1 -1
- package/esm/cli/authz/authz-type-export.js +39 -37
- package/esm/cli/authz/authz-type-export.js.map +1 -1
- package/esm/cli/authz/authz-type-import.js +45 -43
- package/esm/cli/authz/authz-type-import.js.map +1 -1
- package/esm/cli/authz/authz-type-list.js +16 -14
- package/esm/cli/authz/authz-type-list.js.map +1 -1
- package/esm/cli/authz/authz-type.js +15 -8
- package/esm/cli/authz/authz-type.js.map +1 -1
- package/esm/cli/authz/authz.js +7 -7
- package/esm/cli/authz/authz.js.map +1 -1
- package/esm/cli/config/config-delete.js +14 -12
- package/esm/cli/config/config-delete.js.map +1 -1
- package/esm/cli/config/config-describe.js +14 -12
- package/esm/cli/config/config-describe.js.map +1 -1
- package/esm/cli/config/config-export.js +43 -41
- package/esm/cli/config/config-export.js.map +1 -1
- package/esm/cli/config/config-import.js +53 -51
- package/esm/cli/config/config-import.js.map +1 -1
- package/esm/cli/config/config-list.js +14 -12
- package/esm/cli/config/config-list.js.map +1 -1
- package/esm/cli/config/config.js +12 -9
- package/esm/cli/config/config.js.map +1 -1
- package/esm/cli/conn/conn-delete.js +15 -13
- package/esm/cli/conn/conn-delete.js.map +1 -1
- package/esm/cli/conn/conn-describe.js +11 -9
- package/esm/cli/conn/conn-describe.js.map +1 -1
- package/esm/cli/conn/conn-list.js +11 -9
- package/esm/cli/conn/conn-list.js.map +1 -1
- package/esm/cli/conn/conn-save.js +77 -75
- package/esm/cli/conn/conn-save.js.map +1 -1
- package/esm/cli/conn/conn.js +9 -8
- package/esm/cli/conn/conn.js.map +1 -1
- package/esm/cli/email/email-template-export.js +33 -31
- package/esm/cli/email/email-template-export.js.map +1 -1
- package/esm/cli/email/email-template-import.js +39 -37
- package/esm/cli/email/email-template-import.js.map +1 -1
- package/esm/cli/email/email-template-list.js +16 -14
- package/esm/cli/email/email-template-list.js.map +1 -1
- package/esm/cli/email/email-template.js +11 -6
- package/esm/cli/email/email-template.js.map +1 -1
- package/esm/cli/email/email.js +3 -5
- package/esm/cli/email/email.js.map +1 -1
- package/esm/cli/esv/esv-apply.js +39 -37
- package/esm/cli/esv/esv-apply.js.map +1 -1
- package/esm/cli/esv/esv-secret-create.js +19 -17
- package/esm/cli/esv/esv-secret-create.js.map +1 -1
- package/esm/cli/esv/esv-secret-delete.js +26 -24
- package/esm/cli/esv/esv-secret-delete.js.map +1 -1
- package/esm/cli/esv/esv-secret-describe.js +16 -14
- package/esm/cli/esv/esv-secret-describe.js.map +1 -1
- package/esm/cli/esv/esv-secret-export.js +25 -23
- package/esm/cli/esv/esv-secret-export.js.map +1 -1
- package/esm/cli/esv/esv-secret-import.js +14 -12
- package/esm/cli/esv/esv-secret-import.js.map +1 -1
- package/esm/cli/esv/esv-secret-list.js +16 -14
- package/esm/cli/esv/esv-secret-list.js.map +1 -1
- package/esm/cli/esv/esv-secret-set.js +16 -14
- package/esm/cli/esv/esv-secret-set.js.map +1 -1
- package/esm/cli/esv/esv-secret-version-activate.js +20 -18
- package/esm/cli/esv/esv-secret-version-activate.js.map +1 -1
- package/esm/cli/esv/esv-secret-version-create.js +19 -17
- package/esm/cli/esv/esv-secret-version-create.js.map +1 -1
- package/esm/cli/esv/esv-secret-version-deactivate.js +20 -18
- package/esm/cli/esv/esv-secret-version-deactivate.js.map +1 -1
- package/esm/cli/esv/esv-secret-version-delete.js +26 -24
- package/esm/cli/esv/esv-secret-version-delete.js.map +1 -1
- package/esm/cli/esv/esv-secret-version-list.js +16 -14
- package/esm/cli/esv/esv-secret-version-list.js.map +1 -1
- package/esm/cli/esv/esv-secret-version.js +15 -8
- package/esm/cli/esv/esv-secret-version.js.map +1 -1
- package/esm/cli/esv/esv-secret.js +21 -11
- package/esm/cli/esv/esv-secret.js.map +1 -1
- package/esm/cli/esv/esv-variable-create.js +16 -14
- package/esm/cli/esv/esv-variable-create.js.map +1 -1
- package/esm/cli/esv/esv-variable-delete.js +27 -25
- package/esm/cli/esv/esv-variable-delete.js.map +1 -1
- package/esm/cli/esv/esv-variable-describe.js +16 -14
- package/esm/cli/esv/esv-variable-describe.js.map +1 -1
- package/esm/cli/esv/esv-variable-export.js +26 -24
- package/esm/cli/esv/esv-variable-export.js.map +1 -1
- package/esm/cli/esv/esv-variable-import.js +14 -12
- package/esm/cli/esv/esv-variable-import.js.map +1 -1
- package/esm/cli/esv/esv-variable-list.js +16 -14
- package/esm/cli/esv/esv-variable-list.js.map +1 -1
- package/esm/cli/esv/esv-variable-set.js +24 -22
- package/esm/cli/esv/esv-variable-set.js.map +1 -1
- package/esm/cli/esv/esv-variable.js +19 -10
- package/esm/cli/esv/esv-variable.js.map +1 -1
- package/esm/cli/esv/esv.js +7 -7
- package/esm/cli/esv/esv.js.map +1 -1
- package/esm/cli/idm/idm-count.js +16 -14
- package/esm/cli/idm/idm-count.js.map +1 -1
- package/esm/cli/idm/idm-export.js +41 -39
- package/esm/cli/idm/idm-export.js.map +1 -1
- package/esm/cli/idm/idm-import.js +45 -43
- package/esm/cli/idm/idm-import.js.map +1 -1
- package/esm/cli/idm/idm-list.js +21 -19
- package/esm/cli/idm/idm-list.js.map +1 -1
- package/esm/cli/idm/idm.js +9 -8
- package/esm/cli/idm/idm.js.map +1 -1
- package/esm/cli/idp/idp-export.js +34 -32
- package/esm/cli/idp/idp-export.js.map +1 -1
- package/esm/cli/idp/idp-import.js +47 -45
- package/esm/cli/idp/idp-import.js.map +1 -1
- package/esm/cli/idp/idp-list.js +20 -18
- package/esm/cli/idp/idp-list.js.map +1 -1
- package/esm/cli/idp/idp.js +7 -7
- package/esm/cli/idp/idp.js.map +1 -1
- package/esm/cli/journey/journey-delete.js +27 -25
- package/esm/cli/journey/journey-delete.js.map +1 -1
- package/esm/cli/journey/journey-describe.js +92 -90
- package/esm/cli/journey/journey-describe.js.map +1 -1
- package/esm/cli/journey/journey-disable.js +27 -25
- package/esm/cli/journey/journey-disable.js.map +1 -1
- package/esm/cli/journey/journey-enable.js +27 -25
- package/esm/cli/journey/journey-enable.js.map +1 -1
- package/esm/cli/journey/journey-export.js +55 -53
- package/esm/cli/journey/journey-export.js.map +1 -1
- package/esm/cli/journey/journey-import.js +51 -49
- package/esm/cli/journey/journey-import.js.map +1 -1
- package/esm/cli/journey/journey-list.js +16 -14
- package/esm/cli/journey/journey-list.js.map +1 -1
- package/esm/cli/journey/journey-prune.js +26 -24
- package/esm/cli/journey/journey-prune.js.map +1 -1
- package/esm/cli/journey/journey.js +17 -12
- package/esm/cli/journey/journey.js.map +1 -1
- package/esm/cli/log/log-fetch.js +98 -96
- package/esm/cli/log/log-fetch.js.map +1 -1
- package/esm/cli/log/log-key-delete.js +25 -23
- package/esm/cli/log/log-key-delete.js.map +1 -1
- package/esm/cli/log/log-key-describe.js +14 -12
- package/esm/cli/log/log-key-describe.js.map +1 -1
- package/esm/cli/log/log-key-list.js +16 -14
- package/esm/cli/log/log-key-list.js.map +1 -1
- package/esm/cli/log/log-key.js +11 -6
- package/esm/cli/log/log-key.js.map +1 -1
- package/esm/cli/log/log-list.js +70 -68
- package/esm/cli/log/log-list.js.map +1 -1
- package/esm/cli/log/log-tail.js +60 -58
- package/esm/cli/log/log-tail.js.map +1 -1
- package/esm/cli/log/log.js +9 -8
- package/esm/cli/log/log.js.map +1 -1
- package/esm/cli/oauth/oauth-client-delete.js +14 -12
- package/esm/cli/oauth/oauth-client-delete.js.map +1 -1
- package/esm/cli/oauth/oauth-client-describe.js +14 -12
- package/esm/cli/oauth/oauth-client-describe.js.map +1 -1
- package/esm/cli/oauth/oauth-client-export.js +42 -40
- package/esm/cli/oauth/oauth-client-export.js.map +1 -1
- package/esm/cli/oauth/oauth-client-import.js +47 -45
- package/esm/cli/oauth/oauth-client-import.js.map +1 -1
- package/esm/cli/oauth/oauth-client-list.js +16 -14
- package/esm/cli/oauth/oauth-client-list.js.map +1 -1
- package/esm/cli/oauth/oauth-client.js +16 -8
- package/esm/cli/oauth/oauth-client.js.map +1 -1
- package/esm/cli/oauth/oauth.js +4 -6
- package/esm/cli/oauth/oauth.js.map +1 -1
- package/esm/cli/realm/realm-add-custom-domain.js +15 -13
- package/esm/cli/realm/realm-add-custom-domain.js.map +1 -1
- package/esm/cli/realm/realm-describe.js +15 -13
- package/esm/cli/realm/realm-describe.js.map +1 -1
- package/esm/cli/realm/realm-list.js +15 -13
- package/esm/cli/realm/realm-list.js.map +1 -1
- package/esm/cli/realm/realm-remove-custom-domain.js +15 -13
- package/esm/cli/realm/realm-remove-custom-domain.js.map +1 -1
- package/esm/cli/realm/realm.js +13 -10
- package/esm/cli/realm/realm.js.map +1 -1
- package/esm/cli/saml/saml-cot-export.js +33 -31
- package/esm/cli/saml/saml-cot-export.js.map +1 -1
- package/esm/cli/saml/saml-cot-import.js +39 -37
- package/esm/cli/saml/saml-cot-import.js.map +1 -1
- package/esm/cli/saml/saml-cot-list.js +16 -14
- package/esm/cli/saml/saml-cot-list.js.map +1 -1
- package/esm/cli/saml/saml-cot.js +11 -6
- package/esm/cli/saml/saml-cot.js.map +1 -1
- package/esm/cli/saml/saml-delete.js +25 -23
- package/esm/cli/saml/saml-delete.js.map +1 -1
- package/esm/cli/saml/saml-describe.js +16 -14
- package/esm/cli/saml/saml-describe.js.map +1 -1
- package/esm/cli/saml/saml-export.js +39 -37
- package/esm/cli/saml/saml-export.js.map +1 -1
- package/esm/cli/saml/saml-import.js +47 -45
- package/esm/cli/saml/saml-import.js.map +1 -1
- package/esm/cli/saml/saml-list.js +16 -14
- package/esm/cli/saml/saml-list.js.map +1 -1
- package/esm/cli/saml/saml-metadata-export.js +33 -31
- package/esm/cli/saml/saml-metadata-export.js.map +1 -1
- package/esm/cli/saml/saml-metadata.js +7 -4
- package/esm/cli/saml/saml-metadata.js.map +1 -1
- package/esm/cli/saml/saml.js +15 -11
- package/esm/cli/saml/saml.js.map +1 -1
- package/esm/cli/script/script-delete.js +28 -27
- package/esm/cli/script/script-delete.js.map +1 -1
- package/esm/cli/script/script-describe.js +14 -12
- package/esm/cli/script/script-describe.js.map +1 -1
- package/esm/cli/script/script-export.js +43 -41
- package/esm/cli/script/script-export.js.map +1 -1
- package/esm/cli/script/script-import.js +32 -30
- package/esm/cli/script/script-import.js.map +1 -1
- package/esm/cli/script/script-list.js +16 -14
- package/esm/cli/script/script-list.js.map +1 -1
- package/esm/cli/script/script.js +11 -9
- package/esm/cli/script/script.js.map +1 -1
- package/esm/cli/service/service-delete.js +18 -16
- package/esm/cli/service/service-delete.js.map +1 -1
- package/esm/cli/service/service-export.js +32 -30
- package/esm/cli/service/service-export.js.map +1 -1
- package/esm/cli/service/service-import.js +56 -54
- package/esm/cli/service/service-import.js.map +1 -1
- package/esm/cli/service/service-list.js +14 -12
- package/esm/cli/service/service-list.js.map +1 -1
- package/esm/cli/service/service.js +9 -8
- package/esm/cli/service/service.js.map +1 -1
- package/esm/cli/theme/theme-delete.js +33 -31
- package/esm/cli/theme/theme-delete.js.map +1 -1
- package/esm/cli/theme/theme-export.js +39 -37
- package/esm/cli/theme/theme-export.js.map +1 -1
- package/esm/cli/theme/theme-import.js +45 -43
- package/esm/cli/theme/theme-import.js.map +1 -1
- package/esm/cli/theme/theme-list.js +16 -14
- package/esm/cli/theme/theme-list.js.map +1 -1
- package/esm/cli/theme/theme.js +9 -8
- package/esm/cli/theme/theme.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journey-describe.js","names":["frodo","state","Option","fs","getTokens","describeJourney","describeJourneyMd","printError","printMessage","verboseMessage","FrodoCommand","saveTextToFile","utils","createFileParamTreeExportResolver","readJourneys","exportJourney","authn","journey","program","description","addOption","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","getHost","outputFile","setOutputFile","file","process","exitCode","_fileData$tree","_fileData$tree2","overrideVersion","setAmVersion","fileData","JSON","parse","readFileSync","journeyData","journeyId","trees","Object","values","tree","_id","Error","markdown","outcome","error","message","getRealm","journeys","treeData"],"sources":["../../../src/cli/journey/journey-describe.ts"],"sourcesContent":["import { frodo, state } from '@rockcarver/frodo-lib';\nimport { Option } from 'commander';\nimport fs from 'fs';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { describeJourney, describeJourneyMd } from '../../ops/JourneyOps';\nimport { printError, printMessage, verboseMessage } from '../../utils/Console';\nimport { FrodoCommand } from '../FrodoCommand';\n\nconst { saveTextToFile } = frodo.utils;\nconst { createFileParamTreeExportResolver, readJourneys, exportJourney } =\n frodo.authn.journey;\n\nconst program = new FrodoCommand('frodo journey describe');\n\nprogram\n .description(\n 'If -h is supplied, describe the journey/tree indicated by -i, or all journeys/trees in the realm if no -i is supplied, otherwise describe the journey/tree export file indicated by -f.'\n )\n .addOption(\n new Option(\n '-i, --journey-id <journey>',\n 'Name of a journey/tree. If specified, -a and -A are ignored.'\n )\n )\n .addOption(\n new Option(\n '-f, --file <file>',\n 'Name of the journey export file to describe. Ignored with -A.'\n )\n )\n .addOption(\n new Option(\n '-F, --output-file <file>',\n 'Name of the file to write the output to.'\n )\n )\n .addOption(new Option('--markdown', 'Output in markdown.'))\n .addOption(\n new Option(\n '-o, --override-version <version>',\n \"Override version. Notation: '<major>.<minor>.<patch>' e.g. '7.2.0'. Override detected version with any version. This is helpful in order to check if journeys in one environment would be compatible running in another environment (e.g. in preparation of migrating from on-prem to ForgeRock Identity Cloud.\"\n )\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n host = host ? host : state.getHost();\n if (options.outputFile) state.setOutputFile(options.outputFile);\n // TODO: review checks for arguments\n if (typeof host === 'undefined' || typeof options.file !== 'undefined') {\n if (\n typeof host === 'undefined' &&\n typeof options.file === 'undefined'\n ) {\n printMessage('Need either [host] or -f.', 'error');\n process.exitCode = 1;\n return;\n }\n verboseMessage(`Describing local journey file ${options.file}...`);\n try {\n // override version\n if (typeof options.overrideVersion !== 'undefined') {\n state.setAmVersion(options.overrideVersion);\n }\n const fileData = JSON.parse(fs.readFileSync(options.file, 'utf8'));\n let journeyData;\n // single or multi tree export?\n // multi - by id\n if (\n typeof options.journeyId !== 'undefined' &&\n fileData.trees &&\n fileData.trees[options.journeyId]\n ) {\n journeyData = fileData.trees[options.journeyId];\n }\n // multi - first\n else if (typeof options.journeyId === 'undefined' && fileData.trees) {\n [journeyData] = Object.values(fileData.trees);\n }\n // single - by id\n else if (\n typeof options.journeyId !== 'undefined' &&\n options.journeyId === fileData.tree?._id\n ) {\n journeyData = fileData;\n }\n // single\n else if (\n typeof options.journeyId === 'undefined' &&\n fileData.tree?._id\n ) {\n journeyData = fileData;\n }\n // no journey/tree found\n else {\n throw new Error(\n typeof options.journeyId === 'undefined'\n ? `No journey found in ${options.file}`\n : `Journey '${options.journeyId}' not found in ${options.file}`\n );\n }\n // ANSI text output\n if (!options.markdown) {\n const outcome = await describeJourney(\n journeyData,\n createFileParamTreeExportResolver(options.file)\n );\n if (!outcome) process.exitCode = 1;\n }\n // Markdown output\n else {\n // reset output file\n if (options.outputFile) saveTextToFile('', options.outputFile);\n const outcome = await describeJourneyMd(\n journeyData,\n createFileParamTreeExportResolver(options.file)\n );\n if (!outcome) process.exitCode = 1;\n }\n } catch (error) {\n printMessage(error.message, 'error');\n process.exitCode = 1;\n }\n } else if (await getTokens()) {\n verboseMessage(\n `Describing journey(s) in realm \"${state.getRealm()}\"...`\n );\n // override version\n if (typeof options.overrideVersion !== 'undefined') {\n state.setAmVersion(options.overrideVersion);\n }\n if (typeof options.journeyId === 'undefined') {\n let journeys = [];\n journeys = await readJourneys();\n for (const journey of journeys) {\n try {\n // eslint-disable-next-line no-await-in-loop, dot-notation\n const treeData = await exportJourney(journey['_id']);\n // ANSI text output\n if (!options.markdown) {\n const outcome = await describeJourney(treeData);\n if (!outcome) process.exitCode = 1;\n }\n // Markdown output\n else {\n // reset output file\n if (options.outputFile) saveTextToFile('', options.outputFile);\n const outcome = await describeJourneyMd(treeData);\n if (!outcome) process.exitCode = 1;\n }\n } catch (error) {\n printError(error);\n process.exitCode = 1;\n }\n }\n } else {\n try {\n const treeData = await exportJourney(options.journeyId);\n // ANSI text output\n if (!options.markdown) {\n const outcome = await describeJourney(treeData);\n if (!outcome) process.exitCode = 1;\n }\n // Markdown output\n else {\n // reset output file\n if (options.outputFile) saveTextToFile('', options.outputFile);\n const outcome = await describeJourneyMd(treeData);\n if (!outcome) process.exitCode = 1;\n }\n } catch (error) {\n printError(error);\n process.exitCode = 1;\n }\n }\n }\n }\n // end command logic inside action handler\n );\n\nprogram.parse();\n"],"mappings":"AAAA,SAASA,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AACpD,SAASC,MAAM,QAAQ,WAAW;AAClC,OAAOC,EAAE,MAAM,IAAI;AAEnB,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,eAAe,EAAEC,iBAAiB,QAAQ,sBAAsB;AACzE,SAASC,UAAU,EAAEC,YAAY,EAAEC,cAAc,QAAQ,qBAAqB;AAC9E,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,MAAM;EAAEC;AAAe,CAAC,GAAGX,KAAK,CAACY,KAAK;AACtC,MAAM;EAAEC,iCAAiC;EAAEC,YAAY;EAAEC;AAAc,CAAC,GACtEf,KAAK,CAACgB,KAAK,CAACC,OAAO;AAErB,MAAMC,OAAO,GAAG,IAAIR,YAAY,CAAC,wBAAwB,CAAC;AAE1DQ,OAAO,CACJC,WAAW,CACV,yLACF,CAAC,CACAC,SAAS,CACR,IAAIlB,MAAM,CACR,4BAA4B,EAC5B,8DACF,CACF,CAAC,CACAkB,SAAS,CACR,IAAIlB,MAAM,CACR,mBAAmB,EACnB,+DACF,CACF,CAAC,CACAkB,SAAS,CACR,IAAIlB,MAAM,CACR,0BAA0B,EAC1B,0CACF,CACF,CAAC,CACAkB,SAAS,CAAC,IAAIlB,MAAM,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAC,CAC1DkB,SAAS,CACR,IAAIlB,MAAM,CACR,kCAAkC,EAClC,iTACF,CACF,CAAC,CACAmB,MAAM;AACL;AACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;EACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAA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rB,MAAMC,OAAO,GAAG,MAAM/C,eAAe,CAACoD,QAAQ,CAAC;UAC/C,IAAI,CAACL,OAAO,EAAEnB,OAAO,CAACC,QAAQ,GAAG,CAAC;QACpC;QACA;QAAA,KACK;UACH;UACA,IAAIR,OAAO,CAACI,UAAU,EAAEnB,cAAc,CAAC,EAAE,EAAEe,OAAO,CAACI,UAAU,CAAC;UAC9D,MAAMsB,OAAO,GAAG,MAAM9C,iBAAiB,CAACmD,QAAQ,CAAC;UACjD,IAAI,CAACL,OAAO,EAAEnB,OAAO,CAACC,QAAQ,GAAG,CAAC;QACpC;MACF,CAAC,CAAC,OAAOmB,KAAK,EAAE;QACd9C,UAAU,CAAC8C,KAAK,CAAC;QACjBpB,OAAO,CAACC,QAAQ,GAAG,CAAC;MACtB;IACF;EACF;AACF;AACA;AACF,CAAC;AAEHhB,OAAO,CAACuB,KAAK,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"journey-describe.js","names":["frodo","state","Option","fs","getTokens","describeJourney","describeJourneyMd","printError","printMessage","verboseMessage","FrodoCommand","saveTextToFile","utils","createFileParamTreeExportResolver","readJourneys","exportJourney","authn","journey","setup","program","description","addOption","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","getHost","outputFile","setOutputFile","file","process","exitCode","_fileData$tree","_fileData$tree2","overrideVersion","setAmVersion","fileData","JSON","parse","readFileSync","journeyData","journeyId","trees","Object","values","tree","_id","Error","markdown","outcome","error","message","getRealm","journeys","treeData"],"sources":["../../../src/cli/journey/journey-describe.ts"],"sourcesContent":["import { frodo, state } from '@rockcarver/frodo-lib';\nimport { Option } from 'commander';\nimport fs from 'fs';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { describeJourney, describeJourneyMd } from '../../ops/JourneyOps';\nimport { printError, printMessage, verboseMessage } from '../../utils/Console';\nimport { FrodoCommand } from '../FrodoCommand';\n\nconst { saveTextToFile } = frodo.utils;\nconst { createFileParamTreeExportResolver, readJourneys, exportJourney } =\n frodo.authn.journey;\n\nexport default function setup() {\n const program = new FrodoCommand('frodo journey describe');\n\n program\n .description(\n 'If -h is supplied, describe the journey/tree indicated by -i, or all journeys/trees in the realm if no -i is supplied, otherwise describe the journey/tree export file indicated by -f.'\n )\n .addOption(\n new Option(\n '-i, --journey-id <journey>',\n 'Name of a journey/tree. If specified, -a and -A are ignored.'\n )\n )\n .addOption(\n new Option(\n '-f, --file <file>',\n 'Name of the journey export file to describe. Ignored with -A.'\n )\n )\n .addOption(\n new Option(\n '-F, --output-file <file>',\n 'Name of the file to write the output to.'\n )\n )\n .addOption(new Option('--markdown', 'Output in markdown.'))\n .addOption(\n new Option(\n '-o, --override-version <version>',\n \"Override version. Notation: '<major>.<minor>.<patch>' e.g. '7.2.0'. Override detected version with any version. This is helpful in order to check if journeys in one environment would be compatible running in another environment (e.g. in preparation of migrating from on-prem to ForgeRock Identity Cloud.\"\n )\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n host = host ? host : state.getHost();\n if (options.outputFile) state.setOutputFile(options.outputFile);\n // TODO: review checks for arguments\n if (\n typeof host === 'undefined' ||\n typeof options.file !== 'undefined'\n ) {\n if (\n typeof host === 'undefined' &&\n typeof options.file === 'undefined'\n ) {\n printMessage('Need either [host] or -f.', 'error');\n process.exitCode = 1;\n return;\n }\n verboseMessage(`Describing local journey file ${options.file}...`);\n try {\n // override version\n if (typeof options.overrideVersion !== 'undefined') {\n state.setAmVersion(options.overrideVersion);\n }\n const fileData = JSON.parse(fs.readFileSync(options.file, 'utf8'));\n let journeyData;\n // single or multi tree export?\n // multi - by id\n if (\n typeof options.journeyId !== 'undefined' &&\n fileData.trees &&\n fileData.trees[options.journeyId]\n ) {\n journeyData = fileData.trees[options.journeyId];\n }\n // multi - first\n else if (\n typeof options.journeyId === 'undefined' &&\n fileData.trees\n ) {\n [journeyData] = Object.values(fileData.trees);\n }\n // single - by id\n else if (\n typeof options.journeyId !== 'undefined' &&\n options.journeyId === fileData.tree?._id\n ) {\n journeyData = fileData;\n }\n // single\n else if (\n typeof options.journeyId === 'undefined' &&\n fileData.tree?._id\n ) {\n journeyData = fileData;\n }\n // no journey/tree found\n else {\n throw new Error(\n typeof options.journeyId === 'undefined'\n ? `No journey found in ${options.file}`\n : `Journey '${options.journeyId}' not found in ${options.file}`\n );\n }\n // ANSI text output\n if (!options.markdown) {\n const outcome = await describeJourney(\n journeyData,\n createFileParamTreeExportResolver(options.file)\n );\n if (!outcome) process.exitCode = 1;\n }\n // Markdown output\n else {\n // reset output file\n if (options.outputFile) saveTextToFile('', options.outputFile);\n const outcome = await describeJourneyMd(\n journeyData,\n createFileParamTreeExportResolver(options.file)\n );\n if (!outcome) process.exitCode = 1;\n }\n } catch (error) {\n printMessage(error.message, 'error');\n process.exitCode = 1;\n }\n } else if (await getTokens()) {\n verboseMessage(\n `Describing journey(s) in realm \"${state.getRealm()}\"...`\n );\n // override version\n if (typeof options.overrideVersion !== 'undefined') {\n state.setAmVersion(options.overrideVersion);\n }\n if (typeof options.journeyId === 'undefined') {\n let journeys = [];\n journeys = await readJourneys();\n for (const journey of journeys) {\n try {\n // eslint-disable-next-line no-await-in-loop, dot-notation\n const treeData = await exportJourney(journey['_id']);\n // ANSI text output\n if (!options.markdown) {\n const outcome = await describeJourney(treeData);\n if (!outcome) process.exitCode = 1;\n }\n // Markdown output\n else {\n // reset output file\n if (options.outputFile)\n saveTextToFile('', options.outputFile);\n const outcome = await describeJourneyMd(treeData);\n if (!outcome) process.exitCode = 1;\n }\n } catch (error) {\n printError(error);\n process.exitCode = 1;\n }\n }\n } else {\n try {\n const treeData = await exportJourney(options.journeyId);\n // ANSI text output\n if (!options.markdown) {\n const outcome = await describeJourney(treeData);\n if (!outcome) process.exitCode = 1;\n }\n // Markdown output\n else {\n // reset output file\n if (options.outputFile) saveTextToFile('', options.outputFile);\n const outcome = await describeJourneyMd(treeData);\n if (!outcome) process.exitCode = 1;\n }\n } catch (error) {\n printError(error);\n process.exitCode = 1;\n }\n }\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AACpD,SAASC,MAAM,QAAQ,WAAW;AAClC,OAAOC,EAAE,MAAM,IAAI;AAEnB,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,eAAe,EAAEC,iBAAiB,QAAQ,sBAAsB;AACzE,SAASC,UAAU,EAAEC,YAAY,EAAEC,cAAc,QAAQ,qBAAqB;AAC9E,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,MAAM;EAAEC;AAAe,CAAC,GAAGX,KAAK,CAACY,KAAK;AACtC,MAAM;EAAEC,iCAAiC;EAAEC,YAAY;EAAEC;AAAc,CAAC,GACtEf,KAAK,CAACgB,KAAK,CAACC,OAAO;AAErB,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIT,YAAY,CAAC,wBAAwB,CAAC;EAE1DS,OAAO,CACJC,WAAW,CACV,yLACF,CAAC,CACAC,SAAS,CACR,IAAInB,MAAM,CACR,4BAA4B,EAC5B,8DACF,CACF,CAAC,CACAmB,SAAS,CACR,IAAInB,MAAM,CACR,mBAAmB,EACnB,+DACF,CACF,CAAC,CACAmB,SAAS,CACR,IAAInB,MAAM,CACR,0BAA0B,EAC1B,0CACF,CACF,CAAC,CACAmB,SAAS,CAAC,IAAInB,MAAM,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAC,CAC1DmB,SAAS,CACR,IAAInB,MAAM,CACR,kCAAkC,EAClC,iTACF,CACF,CAAC,CACAoB,MAAM;EACL;EACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;IACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACP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AAE;YACrB,MAAMC,OAAO,GAAG,MAAMhD,eAAe,CAACqD,QAAQ,CAAC;YAC/C,IAAI,CAACL,OAAO,EAAEnB,OAAO,CAACC,QAAQ,GAAG,CAAC;UACpC;UACA;UAAA,KACK;YACH;YACA,IAAIR,OAAO,CAACI,UAAU,EAAEpB,cAAc,CAAC,EAAE,EAAEgB,OAAO,CAACI,UAAU,CAAC;YAC9D,MAAMsB,OAAO,GAAG,MAAM/C,iBAAiB,CAACoD,QAAQ,CAAC;YACjD,IAAI,CAACL,OAAO,EAAEnB,OAAO,CAACC,QAAQ,GAAG,CAAC;UACpC;QACF,CAAC,CAAC,OAAOmB,KAAK,EAAE;UACd/C,UAAU,CAAC+C,KAAK,CAAC;UACjBpB,OAAO,CAACC,QAAQ,GAAG,CAAC;QACtB;MACF;IACF;EACF;EACA;EACF,CAAC;EAEH,OAAOhB,OAAO;AAChB"}
|
|
@@ -3,31 +3,33 @@ import { getTokens } from '../../ops/AuthenticateOps';
|
|
|
3
3
|
import { disableJourney } from '../../ops/JourneyOps';
|
|
4
4
|
import { printMessage } from '../../utils/Console';
|
|
5
5
|
import { FrodoCommand } from '../FrodoCommand';
|
|
6
|
-
|
|
7
|
-
program
|
|
8
|
-
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// '
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
6
|
+
export default function setup() {
|
|
7
|
+
const program = new FrodoCommand('frodo journey disable');
|
|
8
|
+
program.description('Disable journeys/trees.').addOption(new Option('-i, --journey-id <journey>', 'Name of a journey/tree.'))
|
|
9
|
+
// .addOption(
|
|
10
|
+
// new Option(
|
|
11
|
+
// '-a, --all',
|
|
12
|
+
// 'Disable all the journeys/trees in a realm. Ignored with -i.'
|
|
13
|
+
// )
|
|
14
|
+
// )
|
|
15
|
+
.action(
|
|
16
|
+
// implement command logic inside action handler
|
|
17
|
+
async (host, realm, user, password, options, command) => {
|
|
18
|
+
command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
|
|
19
|
+
// disable
|
|
20
|
+
if (options.journeyId && (await getTokens())) {
|
|
21
|
+
const outcome = await disableJourney(options.journeyId);
|
|
22
|
+
if (!outcome) process.exitCode = 1;
|
|
23
|
+
}
|
|
24
|
+
// unrecognized combination of options or no options
|
|
25
|
+
else {
|
|
26
|
+
printMessage('Unrecognized combination of options or no options...');
|
|
27
|
+
program.help();
|
|
28
|
+
process.exitCode = 1;
|
|
29
|
+
}
|
|
28
30
|
}
|
|
31
|
+
// end command logic inside action handler
|
|
32
|
+
);
|
|
33
|
+
return program;
|
|
29
34
|
}
|
|
30
|
-
// end command logic inside action handler
|
|
31
|
-
);
|
|
32
|
-
program.parse();
|
|
33
35
|
//# sourceMappingURL=journey-disable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journey-disable.js","names":["Option","getTokens","disableJourney","printMessage","FrodoCommand","program","description","addOption","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","journeyId","outcome","process","exitCode","help"
|
|
1
|
+
{"version":3,"file":"journey-disable.js","names":["Option","getTokens","disableJourney","printMessage","FrodoCommand","setup","program","description","addOption","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","journeyId","outcome","process","exitCode","help"],"sources":["../../../src/cli/journey/journey-disable.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { disableJourney } from '../../ops/JourneyOps';\nimport { printMessage } from '../../utils/Console';\nimport { FrodoCommand } from '../FrodoCommand';\n\nexport default function setup() {\n const program = new FrodoCommand('frodo journey disable');\n\n program\n .description('Disable journeys/trees.')\n .addOption(\n new Option('-i, --journey-id <journey>', 'Name of a journey/tree.')\n )\n // .addOption(\n // new Option(\n // '-a, --all',\n // 'Disable all the journeys/trees in a realm. Ignored with -i.'\n // )\n // )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n // disable\n if (options.journeyId && (await getTokens())) {\n const outcome = await disableJourney(options.journeyId);\n if (!outcome) process.exitCode = 1;\n }\n // unrecognized combination of options or no options\n else {\n printMessage('Unrecognized combination of options or no options...');\n program.help();\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,YAAY,QAAQ,qBAAqB;AAClD,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIF,YAAY,CAAC,uBAAuB,CAAC;EAEzDE,OAAO,CACJC,WAAW,CAAC,yBAAyB,CAAC,CACtCC,SAAS,CACR,IAAIR,MAAM,CAAC,4BAA4B,EAAE,yBAAyB,CACpE;EACA;EACA;EACA;EACA;EACA;EACA;EAAA,CACCS,MAAM;EACL;EACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;IACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;IACD;IACA,IAAID,OAAO,CAACG,SAAS,KAAK,MAAMhB,SAAS,CAAC,CAAC,CAAC,EAAE;MAC5C,MAAMiB,OAAO,GAAG,MAAMhB,cAAc,CAACY,OAAO,CAACG,SAAS,CAAC;MACvD,IAAI,CAACC,OAAO,EAAEC,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC;IACA;IAAA,KACK;MACHjB,YAAY,CAAC,sDAAsD,CAAC;MACpEG,OAAO,CAACe,IAAI,CAAC,CAAC;MACdF,OAAO,CAACC,QAAQ,GAAG,CAAC;IACtB;EACF;EACA;EACF,CAAC;EAEH,OAAOd,OAAO;AAChB"}
|
|
@@ -3,31 +3,33 @@ import { getTokens } from '../../ops/AuthenticateOps';
|
|
|
3
3
|
import { enableJourney } from '../../ops/JourneyOps';
|
|
4
4
|
import { printMessage } from '../../utils/Console';
|
|
5
5
|
import { FrodoCommand } from '../FrodoCommand';
|
|
6
|
-
|
|
7
|
-
program
|
|
8
|
-
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// '
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
6
|
+
export default function setup() {
|
|
7
|
+
const program = new FrodoCommand('frodo journey enable');
|
|
8
|
+
program.description('Enable journeys/trees.').addOption(new Option('-i, --journey-id <journey>', 'Name of a journey/tree.'))
|
|
9
|
+
// .addOption(
|
|
10
|
+
// new Option(
|
|
11
|
+
// '-a, --all',
|
|
12
|
+
// 'Enable all the journeys/trees in a realm. Ignored with -i.'
|
|
13
|
+
// )
|
|
14
|
+
// )
|
|
15
|
+
.action(
|
|
16
|
+
// implement command logic inside action handler
|
|
17
|
+
async (host, realm, user, password, options, command) => {
|
|
18
|
+
command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
|
|
19
|
+
// enable
|
|
20
|
+
if (options.journeyId && (await getTokens())) {
|
|
21
|
+
const outcome = await enableJourney(options.journeyId);
|
|
22
|
+
if (!outcome) process.exitCode = 1;
|
|
23
|
+
}
|
|
24
|
+
// unrecognized combination of options or no options
|
|
25
|
+
else {
|
|
26
|
+
printMessage('Unrecognized combination of options or no options...');
|
|
27
|
+
program.help();
|
|
28
|
+
process.exitCode = 1;
|
|
29
|
+
}
|
|
28
30
|
}
|
|
31
|
+
// end command logic inside action handler
|
|
32
|
+
);
|
|
33
|
+
return program;
|
|
29
34
|
}
|
|
30
|
-
// end command logic inside action handler
|
|
31
|
-
);
|
|
32
|
-
program.parse();
|
|
33
35
|
//# sourceMappingURL=journey-enable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journey-enable.js","names":["Option","getTokens","enableJourney","printMessage","FrodoCommand","program","description","addOption","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","journeyId","outcome","process","exitCode","help"
|
|
1
|
+
{"version":3,"file":"journey-enable.js","names":["Option","getTokens","enableJourney","printMessage","FrodoCommand","setup","program","description","addOption","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","journeyId","outcome","process","exitCode","help"],"sources":["../../../src/cli/journey/journey-enable.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { enableJourney } from '../../ops/JourneyOps';\nimport { printMessage } from '../../utils/Console';\nimport { FrodoCommand } from '../FrodoCommand';\n\nexport default function setup() {\n const program = new FrodoCommand('frodo journey enable');\n\n program\n .description('Enable journeys/trees.')\n .addOption(\n new Option('-i, --journey-id <journey>', 'Name of a journey/tree.')\n )\n // .addOption(\n // new Option(\n // '-a, --all',\n // 'Enable all the journeys/trees in a realm. Ignored with -i.'\n // )\n // )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n // enable\n if (options.journeyId && (await getTokens())) {\n const outcome = await enableJourney(options.journeyId);\n if (!outcome) process.exitCode = 1;\n }\n // unrecognized combination of options or no options\n else {\n printMessage('Unrecognized combination of options or no options...');\n program.help();\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,YAAY,QAAQ,qBAAqB;AAClD,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIF,YAAY,CAAC,sBAAsB,CAAC;EAExDE,OAAO,CACJC,WAAW,CAAC,wBAAwB,CAAC,CACrCC,SAAS,CACR,IAAIR,MAAM,CAAC,4BAA4B,EAAE,yBAAyB,CACpE;EACA;EACA;EACA;EACA;EACA;EACA;EAAA,CACCS,MAAM;EACL;EACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;IACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;IACD;IACA,IAAID,OAAO,CAACG,SAAS,KAAK,MAAMhB,SAAS,CAAC,CAAC,CAAC,EAAE;MAC5C,MAAMiB,OAAO,GAAG,MAAMhB,aAAa,CAACY,OAAO,CAACG,SAAS,CAAC;MACtD,IAAI,CAACC,OAAO,EAAEC,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC;IACA;IAAA,KACK;MACHjB,YAAY,CAAC,sDAAsD,CAAC;MACpEG,OAAO,CAACe,IAAI,CAAC,CAAC;MACdF,OAAO,CAACC,QAAQ,GAAG,CAAC;IACtB;EACF;EACA;EACF,CAAC;EAEH,OAAOd,OAAO;AAChB"}
|
|
@@ -3,59 +3,61 @@ import { getTokens } from '../../ops/AuthenticateOps';
|
|
|
3
3
|
import { exportJourneysToFile, exportJourneysToFiles, exportJourneyToFile } from '../../ops/JourneyOps';
|
|
4
4
|
import { printMessage, verboseMessage } from '../../utils/Console';
|
|
5
5
|
import { FrodoCommand } from '../FrodoCommand';
|
|
6
|
-
|
|
7
|
-
program
|
|
8
|
-
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// '
|
|
12
|
-
//
|
|
13
|
-
// '
|
|
14
|
-
// 'type
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
6
|
+
export default function setup() {
|
|
7
|
+
const program = new FrodoCommand('frodo journey export');
|
|
8
|
+
program.description('Export journeys/trees.').addOption(new Option('-i, --journey-id <journey>', 'Name of a journey/tree. If specified, -a and -A are ignored.')).addOption(new Option('-f, --file <file>', 'Name of the file to write the exported journey(s) to. Ignored with -A.')).addOption(new Option('-a, --all', 'Export all the journeys/trees in a realm. Ignored with -i.')).addOption(new Option('-A, --all-separate', 'Export all the journeys/trees in a realm as separate files <journey/tree name>.json. Ignored with -i or -a.')).addOption(new Option('-N, --no-metadata', 'Does not include metadata in the export file.')).addOption(new Option('--use-string-arrays', 'Where applicable, use string arrays to store multi-line text (e.g. scripts).').default(false, 'off')).addOption(new Option('--no-deps', 'Do not include any dependencies (scripts, email templates, SAML entity providers and circles of trust, social identity providers, themes).')).addOption(new Option('--no-coords', 'Do not include the x and y coordinate positions of the journey/tree nodes.'))
|
|
9
|
+
// .addOption(
|
|
10
|
+
// new Option(
|
|
11
|
+
// '-O, --organize <method>',
|
|
12
|
+
// 'Organize exports into folders using the indicated method. Valid values for method:\n' +
|
|
13
|
+
// 'id: folders named by id of exported object\n' +
|
|
14
|
+
// 'type: folders named by type (e.g. script, journey, idp)\n' +
|
|
15
|
+
// 'type/id: folders named by type with sub-folders named by id'
|
|
16
|
+
// )
|
|
17
|
+
// )
|
|
18
|
+
.action(
|
|
19
|
+
// implement command logic inside action handler
|
|
20
|
+
async (host, realm, user, password, options, command) => {
|
|
21
|
+
command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
|
|
22
|
+
// export
|
|
23
|
+
if (options.journeyId && (await getTokens())) {
|
|
24
|
+
verboseMessage('Exporting journey...');
|
|
25
|
+
const outcome = await exportJourneyToFile(options.journeyId, options.file, options.metadata, {
|
|
26
|
+
useStringArrays: options.useStringArrays,
|
|
27
|
+
deps: options.deps,
|
|
28
|
+
coords: options.coords
|
|
29
|
+
});
|
|
30
|
+
if (!outcome) process.exitCode = 1;
|
|
31
|
+
}
|
|
32
|
+
// --all -a
|
|
33
|
+
else if (options.all && (await getTokens())) {
|
|
34
|
+
verboseMessage('Exporting all journeys to a single file...');
|
|
35
|
+
const outcome = await exportJourneysToFile(options.file, options.metadata, {
|
|
36
|
+
useStringArrays: options.useStringArrays,
|
|
37
|
+
deps: options.deps,
|
|
38
|
+
coords: options.coords
|
|
39
|
+
});
|
|
40
|
+
if (!outcome) process.exitCode = 1;
|
|
41
|
+
}
|
|
42
|
+
// --all-separate -A
|
|
43
|
+
else if (options.allSeparate && (await getTokens())) {
|
|
44
|
+
verboseMessage('Exporting all journeys to separate files...');
|
|
45
|
+
const outcome = await exportJourneysToFiles(options.metadata, {
|
|
46
|
+
useStringArrays: options.useStringArrays,
|
|
47
|
+
deps: options.deps,
|
|
48
|
+
coords: options.coords
|
|
49
|
+
});
|
|
50
|
+
if (!outcome) process.exitCode = 1;
|
|
51
|
+
}
|
|
52
|
+
// unrecognized combination of options or no options
|
|
53
|
+
else {
|
|
54
|
+
printMessage('Unrecognized combination of options or no options...', 'error');
|
|
55
|
+
program.help();
|
|
56
|
+
process.exitCode = 1;
|
|
57
|
+
}
|
|
56
58
|
}
|
|
59
|
+
// end command logic inside action handler
|
|
60
|
+
);
|
|
61
|
+
return program;
|
|
57
62
|
}
|
|
58
|
-
// end command logic inside action handler
|
|
59
|
-
);
|
|
60
|
-
program.parse();
|
|
61
63
|
//# sourceMappingURL=journey-export.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journey-export.js","names":["Option","getTokens","exportJourneysToFile","exportJourneysToFiles","exportJourneyToFile","printMessage","verboseMessage","FrodoCommand","program","description","addOption","default","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","journeyId","outcome","file","metadata","useStringArrays","deps","coords","process","exitCode","all","allSeparate","help"
|
|
1
|
+
{"version":3,"file":"journey-export.js","names":["Option","getTokens","exportJourneysToFile","exportJourneysToFiles","exportJourneyToFile","printMessage","verboseMessage","FrodoCommand","setup","program","description","addOption","default","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","journeyId","outcome","file","metadata","useStringArrays","deps","coords","process","exitCode","all","allSeparate","help"],"sources":["../../../src/cli/journey/journey-export.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport {\n exportJourneysToFile,\n exportJourneysToFiles,\n exportJourneyToFile,\n} from '../../ops/JourneyOps';\nimport { printMessage, verboseMessage } from '../../utils/Console';\nimport { FrodoCommand } from '../FrodoCommand';\n\nexport default function setup() {\n const program = new FrodoCommand('frodo journey export');\n\n program\n .description('Export journeys/trees.')\n .addOption(\n new Option(\n '-i, --journey-id <journey>',\n 'Name of a journey/tree. If specified, -a and -A are ignored.'\n )\n )\n .addOption(\n new Option(\n '-f, --file <file>',\n 'Name of the file to write the exported journey(s) to. Ignored with -A.'\n )\n )\n .addOption(\n new Option(\n '-a, --all',\n 'Export all the journeys/trees in a realm. Ignored with -i.'\n )\n )\n .addOption(\n new Option(\n '-A, --all-separate',\n 'Export all the journeys/trees in a realm as separate files <journey/tree name>.json. Ignored with -i or -a.'\n )\n )\n .addOption(\n new Option(\n '-N, --no-metadata',\n 'Does not include metadata in the export file.'\n )\n )\n .addOption(\n new Option(\n '--use-string-arrays',\n 'Where applicable, use string arrays to store multi-line text (e.g. scripts).'\n ).default(false, 'off')\n )\n .addOption(\n new Option(\n '--no-deps',\n 'Do not include any dependencies (scripts, email templates, SAML entity providers and circles of trust, social identity providers, themes).'\n )\n )\n .addOption(\n new Option(\n '--no-coords',\n 'Do not include the x and y coordinate positions of the journey/tree nodes.'\n )\n )\n // .addOption(\n // new Option(\n // '-O, --organize <method>',\n // 'Organize exports into folders using the indicated method. Valid values for method:\\n' +\n // 'id: folders named by id of exported object\\n' +\n // 'type: folders named by type (e.g. script, journey, idp)\\n' +\n // 'type/id: folders named by type with sub-folders named by id'\n // )\n // )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n // export\n if (options.journeyId && (await getTokens())) {\n verboseMessage('Exporting journey...');\n const outcome = await exportJourneyToFile(\n options.journeyId,\n options.file,\n options.metadata,\n {\n useStringArrays: options.useStringArrays,\n deps: options.deps,\n coords: options.coords,\n }\n );\n if (!outcome) process.exitCode = 1;\n }\n // --all -a\n else if (options.all && (await getTokens())) {\n verboseMessage('Exporting all journeys to a single file...');\n const outcome = await exportJourneysToFile(\n options.file,\n options.metadata,\n {\n useStringArrays: options.useStringArrays,\n deps: options.deps,\n coords: options.coords,\n }\n );\n if (!outcome) process.exitCode = 1;\n }\n // --all-separate -A\n else if (options.allSeparate && (await getTokens())) {\n verboseMessage('Exporting all journeys to separate files...');\n const outcome = await exportJourneysToFiles(options.metadata, {\n useStringArrays: options.useStringArrays,\n deps: options.deps,\n coords: options.coords,\n });\n if (!outcome) process.exitCode = 1;\n }\n // unrecognized combination of options or no options\n else {\n printMessage(\n 'Unrecognized combination of options or no options...',\n 'error'\n );\n program.help();\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SACEC,oBAAoB,EACpBC,qBAAqB,EACrBC,mBAAmB,QACd,sBAAsB;AAC7B,SAASC,YAAY,EAAEC,cAAc,QAAQ,qBAAqB;AAClE,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIF,YAAY,CAAC,sBAAsB,CAAC;EAExDE,OAAO,CACJC,WAAW,CAAC,wBAAwB,CAAC,CACrCC,SAAS,CACR,IAAIX,MAAM,CACR,4BAA4B,EAC5B,8DACF,CACF,CAAC,CACAW,SAAS,CACR,IAAIX,MAAM,CACR,mBAAmB,EACnB,wEACF,CACF,CAAC,CACAW,SAAS,CACR,IAAIX,MAAM,CACR,WAAW,EACX,4DACF,CACF,CAAC,CACAW,SAAS,CACR,IAAIX,MAAM,CACR,oBAAoB,EACpB,6GACF,CACF,CAAC,CACAW,SAAS,CACR,IAAIX,MAAM,CACR,mBAAmB,EACnB,+CACF,CACF,CAAC,CACAW,SAAS,CACR,IAAIX,MAAM,CACR,qBAAqB,EACrB,8EACF,CAAC,CAACY,OAAO,CAAC,KAAK,EAAE,KAAK,CACxB,CAAC,CACAD,SAAS,CACR,IAAIX,MAAM,CACR,WAAW,EACX,4IACF,CACF,CAAC,CACAW,SAAS,CACR,IAAIX,MAAM,CACR,aAAa,EACb,4EACF,CACF;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAAA,CACCa,MAAM;EACL;EACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;IACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OAC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AC;IACpC;IACA;IAAA,KACK;MACHxB,YAAY,CACV,sDAAsD,EACtD,OACF,CAAC;MACDI,OAAO,CAACuB,IAAI,CAAC,CAAC;MACdJ,OAAO,CAACC,QAAQ,GAAG,CAAC;IACtB;EACF;EACA;EACF,CAAC;EAEH,OAAOpB,OAAO;AAChB"}
|
|
@@ -3,55 +3,57 @@ import { getTokens } from '../../ops/AuthenticateOps';
|
|
|
3
3
|
import { importFirstJourneyFromFile, importJourneyFromFile, importJourneysFromFile, importJourneysFromFiles } from '../../ops/JourneyOps';
|
|
4
4
|
import { printMessage } from '../../utils/Console';
|
|
5
5
|
import { FrodoCommand } from '../FrodoCommand';
|
|
6
|
-
|
|
7
|
-
program
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
6
|
+
export default function setup() {
|
|
7
|
+
const program = new FrodoCommand('frodo journey import');
|
|
8
|
+
program.description('Import journey/tree.').addOption(new Option('-i, --journey-id <journey>', 'Name of a journey/tree. If specified, -a and -A are ignored.')).addOption(new Option('-f, --file <file>', 'Name of the file to import the journey(s) from. Ignored with -A.')).addOption(new Option('-a, --all', 'Import all the journeys/trees from single file. Ignored with -i.')).addOption(new Option('-A, --all-separate', 'Import all the journeys/trees from separate files (*.json) in the current directory. Ignored with -i or -a.')).addOption(new Option('--re-uuid', 'Generate new UUIDs for all nodes during import.').default(false, 'off')).addOption(new Option('--no-deps', 'Do not include any dependencies (scripts, email templates, SAML entity providers and circles of trust, social identity providers, themes).')).action(
|
|
9
|
+
// implement command logic inside action handler
|
|
10
|
+
async (host, realm, user, password, options, command) => {
|
|
11
|
+
command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
|
|
12
|
+
// import
|
|
13
|
+
if (options.journeyId && (await getTokens())) {
|
|
14
|
+
printMessage(`Importing journey ${options.journeyId}...`);
|
|
15
|
+
const outcome = await importJourneyFromFile(options.journeyId, options.file, {
|
|
16
|
+
reUuid: options.reUuid,
|
|
17
|
+
deps: options.deps
|
|
18
|
+
});
|
|
19
|
+
if (!outcome) process.exitCode = 1;
|
|
20
|
+
}
|
|
21
|
+
// --all -a
|
|
22
|
+
else if (options.all && options.file && (await getTokens())) {
|
|
23
|
+
printMessage(`Importing all journeys from a single file (${options.file})...`);
|
|
24
|
+
const outcome = await importJourneysFromFile(options.file, {
|
|
25
|
+
reUuid: options.reUuid,
|
|
26
|
+
deps: options.deps
|
|
27
|
+
});
|
|
28
|
+
if (!outcome) process.exitCode = 1;
|
|
29
|
+
}
|
|
30
|
+
// --all-separate -A
|
|
31
|
+
else if (options.allSeparate && !options.file && (await getTokens())) {
|
|
32
|
+
printMessage('Importing all journeys from separate files in current directory...');
|
|
33
|
+
const outcome = await importJourneysFromFiles({
|
|
34
|
+
reUuid: options.reUuid,
|
|
35
|
+
deps: options.deps
|
|
36
|
+
});
|
|
37
|
+
if (!outcome) process.exitCode = 1;
|
|
38
|
+
}
|
|
39
|
+
// import first journey in file
|
|
40
|
+
else if (options.file && (await getTokens())) {
|
|
41
|
+
printMessage('Importing first journey in file...');
|
|
42
|
+
const outcome = await importFirstJourneyFromFile(options.file, {
|
|
43
|
+
reUuid: options.reUuid,
|
|
44
|
+
deps: options.deps
|
|
45
|
+
});
|
|
46
|
+
if (!outcome) process.exitCode = 1;
|
|
47
|
+
}
|
|
48
|
+
// unrecognized combination of options or no options
|
|
49
|
+
else {
|
|
50
|
+
printMessage('Unrecognized combination of options or no options...');
|
|
51
|
+
program.help();
|
|
52
|
+
process.exitCode = 1;
|
|
53
|
+
}
|
|
52
54
|
}
|
|
55
|
+
// end command logic inside action handler
|
|
56
|
+
);
|
|
57
|
+
return program;
|
|
53
58
|
}
|
|
54
|
-
// end command logic inside action handler
|
|
55
|
-
);
|
|
56
|
-
program.parse();
|
|
57
59
|
//# sourceMappingURL=journey-import.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journey-import.js","names":["Option","getTokens","importFirstJourneyFromFile","importJourneyFromFile","importJourneysFromFile","importJourneysFromFiles","printMessage","FrodoCommand","program","description","addOption","default","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","journeyId","outcome","file","reUuid","deps","process","exitCode","all","allSeparate","help"
|
|
1
|
+
{"version":3,"file":"journey-import.js","names":["Option","getTokens","importFirstJourneyFromFile","importJourneyFromFile","importJourneysFromFile","importJourneysFromFiles","printMessage","FrodoCommand","setup","program","description","addOption","default","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","journeyId","outcome","file","reUuid","deps","process","exitCode","all","allSeparate","help"],"sources":["../../../src/cli/journey/journey-import.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport {\n importFirstJourneyFromFile,\n importJourneyFromFile,\n importJourneysFromFile,\n importJourneysFromFiles,\n} from '../../ops/JourneyOps';\nimport { printMessage } from '../../utils/Console';\nimport { FrodoCommand } from '../FrodoCommand';\n\nexport default function setup() {\n const program = new FrodoCommand('frodo journey import');\n\n program\n .description('Import journey/tree.')\n .addOption(\n new Option(\n '-i, --journey-id <journey>',\n 'Name of a journey/tree. If specified, -a and -A are ignored.'\n )\n )\n .addOption(\n new Option(\n '-f, --file <file>',\n 'Name of the file to import the journey(s) from. Ignored with -A.'\n )\n )\n .addOption(\n new Option(\n '-a, --all',\n 'Import all the journeys/trees from single file. Ignored with -i.'\n )\n )\n .addOption(\n new Option(\n '-A, --all-separate',\n 'Import all the journeys/trees from separate files (*.json) in the current directory. Ignored with -i or -a.'\n )\n )\n .addOption(\n new Option(\n '--re-uuid',\n 'Generate new UUIDs for all nodes during import.'\n ).default(false, 'off')\n )\n .addOption(\n new Option(\n '--no-deps',\n 'Do not include any dependencies (scripts, email templates, SAML entity providers and circles of trust, social identity providers, themes).'\n )\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n // import\n if (options.journeyId && (await getTokens())) {\n printMessage(`Importing journey ${options.journeyId}...`);\n const outcome = await importJourneyFromFile(\n options.journeyId,\n options.file,\n {\n reUuid: options.reUuid,\n deps: options.deps,\n }\n );\n if (!outcome) process.exitCode = 1;\n }\n // --all -a\n else if (options.all && options.file && (await getTokens())) {\n printMessage(\n `Importing all journeys from a single file (${options.file})...`\n );\n const outcome = await importJourneysFromFile(options.file, {\n reUuid: options.reUuid,\n deps: options.deps,\n });\n if (!outcome) process.exitCode = 1;\n }\n // --all-separate -A\n else if (options.allSeparate && !options.file && (await getTokens())) {\n printMessage(\n 'Importing all journeys from separate files in current directory...'\n );\n const outcome = await importJourneysFromFiles({\n reUuid: options.reUuid,\n deps: options.deps,\n });\n if (!outcome) process.exitCode = 1;\n }\n // import first journey in file\n else if (options.file && (await getTokens())) {\n printMessage('Importing first journey in file...');\n const outcome = await importFirstJourneyFromFile(options.file, {\n reUuid: options.reUuid,\n deps: options.deps,\n });\n if (!outcome) process.exitCode = 1;\n }\n // unrecognized combination of options or no options\n else {\n printMessage('Unrecognized combination of options or no options...');\n program.help();\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,Q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KACK;MACHrB,YAAY,CAAC,sDAAsD,CAAC;MACpEG,OAAO,CAACqB,IAAI,CAAC,CAAC;MACdJ,OAAO,CAACC,QAAQ,GAAG,CAAC;IACtB;EACF;EACA;EACF,CAAC;EAEH,OAAOlB,OAAO;AAChB"}
|
|
@@ -4,20 +4,22 @@ import { getTokens } from '../../ops/AuthenticateOps';
|
|
|
4
4
|
import { listJourneys } from '../../ops/JourneyOps';
|
|
5
5
|
import { verboseMessage } from '../../utils/Console';
|
|
6
6
|
import { FrodoCommand } from '../FrodoCommand';
|
|
7
|
-
|
|
8
|
-
program
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
export default function setup() {
|
|
8
|
+
const program = new FrodoCommand('frodo journey list');
|
|
9
|
+
program.description('List journeys/trees.').addOption(new Option('-l, --long', 'Long with all fields.').default(false, 'false')).addOption(new Option('-a, --analyze', 'Analyze journeys for custom nodes.')).action(
|
|
10
|
+
// implement command logic inside action handler
|
|
11
|
+
async (host, realm, user, password, options, command) => {
|
|
12
|
+
command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
|
|
13
|
+
if (await getTokens()) {
|
|
14
|
+
verboseMessage(`Listing journeys in realm "${state.getRealm()}"...`);
|
|
15
|
+
const outcome = await listJourneys(options.long, options.analyze);
|
|
16
|
+
if (!outcome) process.exitCode = 1;
|
|
17
|
+
} else {
|
|
18
|
+
process.exitCode = 1;
|
|
19
|
+
}
|
|
18
20
|
}
|
|
21
|
+
// end command logic inside action handler
|
|
22
|
+
);
|
|
23
|
+
return program;
|
|
19
24
|
}
|
|
20
|
-
// end command logic inside action handler
|
|
21
|
-
);
|
|
22
|
-
program.parse();
|
|
23
25
|
//# sourceMappingURL=journey-list.js.map
|