Liking cljdoc? Tell your friends :D

auth0-automation.api-action

The namespace responsible for the creation and manipulation of api-actions

The namespace responsible for the creation and manipulation of `api-actions`
raw docstring

api-actioncljmultimethod

A hash-map with at least :node-type, :msg, and edn-config-entry keys

Used to describe the api operations that need to be performed to create the desired Auth0 environment compared to the existing one.

A hash-map with at least `:node-type`, `:msg`, and `edn-config-entry` keys

Used to describe the api operations that need to be performed to create the desired
Auth0 environment compared to the existing one.
sourceraw docstring

determine-api-actioncljmultimethod

A hash-map used to translate a desired edn-config-entry to an api-action

:entity api actions are ones where payloads are used to create or edit entities :referential-dependency api-actions are ones for existing entities to refer to other entities

A hash-map used to translate a desired edn-config-entry to an api-action

:entity api actions are ones where payloads are used to create or edit entities
:referential-dependency api-actions are ones for existing entities to refer to other entities
sourceraw docstring

determine-api-actionsclj

(determine-api-actions token edn-config env-config entity-manipulation-config)

Process edn-config to determine the api-actions that are necessary.

edn-config is a vector of hash-maps that represent desired entities to create for the Auth0 environment. This vector is processed sequentially to decide what to do for each. See determine-api-action for more details.

Process `edn-config` to determine the `api-actions` that are necessary.

`edn-config` is a vector of hash-maps that represent desired entities to create for the Auth0
environment. This vector is processed sequentially to decide what to do for each.
See `determine-api-action` for more details.
sourceraw docstring

determine-entity-api-actionclj

(determine-entity-api-action acc
                             {:keys [search-key payload] :as edn-config-entry})

Calls out to the Auth0 api to get all existing entities, and tries to locate a match, based on the :search-key of the given edn-entity.

If not found, a :create api-action is returned. If found, a diff is done to see if there are changes. When there are changes, a :update api-action is returned, otherwise a :noop

Calls out to the Auth0 api to get all existing entities, and tries to locate a
match, based on the `:search-key` of the given `edn-entity`.

If not found, a `:create` api-action is returned.
If found, a diff is done to see if there are changes.
When there are changes, a `:update` api-action is returned, otherwise a `:noop`
sourceraw docstring

diffclj

(diff auth0-entity edn-entity)

Determine the diff between the two entities to figure out how to handle update.

Determine the diff between the two entities to figure out how to handle update.
sourceraw docstring

find-auth0-entityclj

(find-auth0-entity {:keys [token domain entity-manipulation-config]}
                   {:keys [search-key search-value entity-type]})

Loads all entities and attempts to locate the the first where search-key is value

Loads all entities and attempts to locate the the first where `search-key` is `value`
sourceraw docstring

payload-dissocclj

(payload-dissoc m dissoc-keys-or-paths)

Return a map, dissocing from it by keyword for top-level, or path for nested.

dissoc-keys-or-paths is a list of keywords or vectors of keywords. In the case of keywords, they are removed directly from top level using dissoc. In the case of a vector of keywords, same semantics as assoc-in apply for dissoc.

Return a map, dissocing from it by keyword for top-level, or path for nested.

`dissoc-keys-or-paths` is a list of keywords or vectors of keywords.
In the case of keywords, they are removed directly from top level using dissoc.
In the case of a vector of keywords, same semantics as assoc-in apply for dissoc.
sourceraw docstring

transact-api-action!clj

(transact-api-action! {:keys [token domain entity-manipulation-config] :as acc}
                      {:keys [node-type auth0-entity edn-config-entry]})
source

transact-api-actions!clj

(transact-api-actions! token api-actions env-config entity-manipulation-config)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close