Code Monkey home page Code Monkey logo

emaile2e-javascript-client's Introduction

This generator creates TypeScript/JavaScript client that utilizes Fetch API. The generated Node module can be used in the following environments:

Environment

  • Node.js
  • Webpack
  • Browserify

Language level

  • ES5 - you must have a Promises/A+ library installed
  • ES6

Module system

  • CommonJS
  • ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via package.json. (Reference)

Building

To build an compile the typescript sources to javascript use:

npm install
npm run build

Publishing

First build the package then run npm publish

Consuming

navigate to the folder of your consuming project and run one of the following commands.

published:

npm install [email protected] --save

unPublished (not recommended):

npm install PATH_TO_GENERATED_PACKAGE --save

emaile2e-javascript-client's People

Contributors

jackmahoney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

emaile2e-javascript-client's Issues

failed to delete inboxes

I am creating many inboxes in my tests, saving their IDs, then destroying them in a loop at the very end of the test suite. When I do this, all of the DELETE requests fail. Are the inboxes automatically removed after some time?

Here is the response error I am getting so you can check your logs:

timestamp":"2018-02-15T01:05:27.487+0000","status":500,"error":"Internal Server Error","message":"No EntityManager with actual transaction available for current thread - cannot reliably process \'remove\' call","path":"/inboxes/3d3be8ed-3cbe-4520-b6e0-29e4da928678

incorrect "from" field in email result

Thanks for the great service!

I noticed that it seems a bit slow to receive emails (sometimes 20 seconds). This might be out of your control, but I tested my same application code with this service and the emails were delivered there almost instantly. https://putsbox.com/

Although the emails are delivered, the "from" field in my case looks like this,

01000161951a5c59-bcc4b5b3-a421-47da-aae1-5e3b360ddbef-000000@amazonses.com

when it should have been,

When I tried using mailgun, the "from" field in the result looked like,

I think there is something wrong with the way the inboxes are setup, that is causing the email to be delayed and with the wrong "from" field.

Are you planning to charge for this service? If it was open source I would be happy to contribute.

Cannot read property 'type' of undefined at ApiClient.js:297:20

In your recent versions:
let payload = await slurp.createRandomInboxUsingPOST(MAILSLURP_API_KEY)

fails with:
TypeError: Cannot read property 'type' of undefined
at node_modules/mailslurp-client/src/ApiClient.js:297:20

Due to:
return this.apiClient.callApi( '/inboxes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType )
vs function definition:
function callApi(path, httpMethod, pathParams, queryParams, collectionQueryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType)

It treats contentTypes (['application/json']) as authNames, so it fails. The api call must not have been updated to work with the new function definition?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.