Coder Social home page Coder Social logo

channelape / channelape-typescript-sdk Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 5.0 1.79 MB

TypeScript and JavaScript SDK for the ChannelApe REST API

License: Apache License 2.0

TypeScript 100.00%
channelape ecommerce rest rest-client sdk typescript

channelape-typescript-sdk's People

Contributors

appu-channelape avatar cduda avatar clericuzzi avatar csimko avatar dependabot[bot] avatar devclericuzzi avatar frankmazzarella avatar kanhaiyas1088 avatar lmkerr avatar manojkumarchannelape avatar manthan-chauhan avatar mb-ca avatar mjaverto avatar rjdavis3 avatar ryankazokas avatar shannontalarico avatar waltk avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

channelape-typescript-sdk's Issues

LineItem giftCardCode should be editable

The LineItem.giftCardCode field is currently readonly, but should be editable.

When creating fulfillments, we currently have to use // @ts-ignore to ignore the typescript error.

Create a business in ChannelApe

Should be able to create a new business in ChannelApe.

This API call does not include any kind of subscription related functionality. That has to to be done through the app.

Retry timeout throws error even if retry was successful

If the duration of a request takes longer than the maximumRequestRetryTimeout on the first attempt, an error is being thrown even though the request is completing successfully. Since the request isn't failing, no error should be thrown.

"reason": {
        "errorType": "Error",
        "errorMessage": "put /v1/actions/9a68d240-bb6d-4a51-a1f4-80393074ed55/complete\n  Status: 200 \n  Response Body:\n  A problem with the ChannelApe API has been encountered.\n    Your request was tried a total of 0 times over the course of 18499 milliseconds",
        "apiErrors": [],
        "responseStatusCode": 200,
        "responseStatusMessage": "",
        "stack": [
            "Error: put /v1/actions/9a68d240-bb6d-4a51-a1f4-80393074ed55/complete",
            "  Status: 200 ",
            "  Response Body:",
            "  A problem with the ChannelApe API has been encountered.",
            "    Your request was tried a total of 0 times over the course of 18499 milliseconds",
            "    at RequestClientWrapper.handleResponse (/var/task/node_modules/channelape-sdk/dist/RequestClientWrapper.js:139:26)",
            "    at requestPromise.then (/var/task/node_modules/channelape-sdk/dist/RequestClientWrapper.js:99:22)",
            "    at process._tickCallback (internal/process/next_tick.js:68:7)"
        ]
},

PUT, PATCH, and POST add unnecessary "body" property to the body of the request

When making a PUT, PATCH, and POST request, the data being passed in on the body of the request is also being added to a "body" property, which is sending duplicate, unnecessary data.

For example, here is what is sent in the body of the request by the SDK to the API for a PATCH request which updates the order status:

{
    "id": "900b9551-1689-473a-b59e-948d9f085810",
    "status": "HOLD",
    "body": {
        "id": "900b9551-1689-473a-b59e-948d9f085810",
        "status": "HOLD"
    }
}

I believe the problem is occurring here. The data is being put onto the "options.data" property, and is also being added to a "body" property on the data property for the call to the axios method.

Removing the { body: postData } method parameter should resolve this.

Ensure master branch is the only branch pushing deploying to latest tag

When we were using Tracis CI we maintained a latest tag and a develop tag. latest tag was always stable while develop had new features in the works. GitFlow is always publishing to latest no matter what branch we are publishing from.

image

It looks like GitHub Actions support tags so we should try to implement this so new pushes of master go to latest and new pushes off of develop branch go to develop tag.

Here is how it was working with Travis for reference:
https://github.com/ChannelApe/channelape-typescript-sdk/blob/1.28.1/.travis.yml#L30

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.