Git Product home page Git Product logo

atlas-js-core's People

Contributors

ahmed-shehata avatar artdaw avatar etchs avatar gregsen avatar hm6293 avatar mrandi avatar mrdzi avatar nongio avatar pc-alves avatar ricardomatias avatar sangdol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

atlas-js-core's Issues

Safari: TypeError: undefined is not an object

TypeError: undefined is not an object
anonymous
fillFetchHeaders
initializeFetchRequest
[native code]
fetch
c — index-a74b11c5dfc0928bb4e9.js:23038
configure — index-a74b11c5dfc0928bb4e9.js:23253
(anonymous function) — index-a74b11c5dfc0928bb4e9.js:30831
t — index-a74b11c5dfc0928bb4e9.js:10
(anonymous function) — index-a74b11c5dfc0928bb4e9.js:34
t — index-a74b11c5dfc0928bb4e9.js:10
(anonymous function) — index-a74b11c5dfc0928bb4e9.js:13
Global Code — index-a74b11c5dfc0928bb4e9.js:14

Fix Travis CI deployment

We have an urgent bug in Travis CI config which prevents producing new versions (https://travis-ci.org/zalando-incubator/atlas-js-core/jobs/248732762):

npm ERR! publish Failed PUT 401
npm ERR! Linux 4.8.12-040812-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v7.10.0/bin/node" "/home/travis/.nvm/versions/node/v7.10.0/bin/npm" "publish"
npm ERR! node v7.10.0
npm ERR! npm  v4.2.0
npm ERR! code E401
npm ERR! You must be logged in to publish packages : atlas-sdk-core

It might be connected with NPM API key format changes. Check http://docs.travis-ci.com/user/deployment/npm/

Add basic plugin system

Since we have a so called lifecycle inside our SDK we need to have possibility to extend it. Let's create a very simple callback hooks.
As example let's create the plugin for Sentry

Add LICENSE for individual dependencies

Add LICENSE for individual dependencies

This software is licensed under the MIT license (see below), unless otherwise stated in the license files in higher directories (if any).

Fix zappr yaml

Use correct values in zappr yaml to enforce correct approval flow.

Model validation error

Hi. I'm trying to launch SDK example but getting the following error:

Error: Model validation error: atlas-catalog-api is not of type object. The value is undefined.

I use this code:

import AtlasSDK from 'atlas-sdk-core';

AtlasSDK.configure({
    client_id: 'xxxxx_xxxxxx',
    sales_channel: 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx',
}).then((sdk) => {
    // sdk instance is ready to use
    const article = sdk.getArticle('AD112B0F6-A11');
    console.log('Article name: ' + article.name);
}).catch((error) => {
    console.error(error);
});

Can anybody help me?

Sales Channel Config enhancement

All possible SalesChannel are configured in the config API. We should use the values from there and client using the sdk can choose from the existing channels instead of confuguring their own

Create Guest Checkout with redirect

There is a case when no payment method is provided while using Guest Checkout. In this case CreateOrderRedirectResponse should be returned with only one field: redirectURL.

Add recommendation parameter to header for getRecommendation

Since there are different recommendation configurations, we need to supply our config params to the endpoint via header (here).
The headers are the following:

X_RECO_TYPE // the reco type
X_RECO_LOCATION // the reco location (pdp, order confirmation, ...)
X_CHANNEL // the channel (similiar, personalized, ...)

As of now, catalog has a fallback and will supply default values if no headers are present.
The defaults will be removed in the near future, so treat this as breaking changes in catalog!

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.