Skip to content

Commit

Permalink
Feat 46 email sendgrid refactor (#47)
Browse files Browse the repository at this point in the history
* fix 44

* cleanup

* cleanup

* removed selfsign certificate check

* changes done as per feedback

* small fix

* workaround fix for node 14, < 15

* added libs folder to dockerfile

* small fix

* fix for headers

* added logs + small refactoring

* new logs

* fix + docker local

* reject all other than 2xx

* forgot to push

* regex fail

* added input validations

* fix typo + package update

* force defaults for inputs

* started refactoring

* #46 finished changes for sendEmailWithSendgrid

* refactor

* #46 fixed package-lock

* 49-fix-http-task-headers-split

* #46 changes as per request

* started refactoring

* #46 finished changes for sendEmailWithSendgrid

* merge 1

* #46 fixed package-lock

* #46 changes as per request

Co-authored-by: Vintila Florentin Ovidiu <vfo@Vintilas-MacBook-Pro.local>
Co-authored-by: Moraru Costel <moraru_costel@yahoo.com>
  • Loading branch information
3 people committed Feb 17, 2022
1 parent 978edf5 commit 5d8a0cc
Show file tree
Hide file tree
Showing 5 changed files with 5,474 additions and 124 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ Under the `props` folder, you can set input variables:

These files are designed to replicate the properties that would be mounted in confimaps by the controller service.

### Development guide

#### **Utilities file / functions** [libs/utilities.js](./libs/utilities.js)

**_Descriptions_**: This file contains utility functions that are to be used/reused in other tasks to offer the developer a faster way to check for missing parameters, display missing parameters, unset parameters, removal of specific properties from objects, etc.
**_Functions_**

- _checkIfEmpty_: Check if param is set or not, in case of mandatory inputs;
- _unsetField_: Removes every property from object, with the name 'fieldName';
- _checkParameters_: Validates all attributes of the supplied object. Returns true if all parameters are valid;
- _checkForJson_: Try to check if valid JSON and convert it to JS Object.

## Packaging

### Automatic
Expand Down
Loading

0 comments on commit 5d8a0cc

Please sign in to comment.