Skip to content

Commit

Permalink
Merge pull request #10 from gofynd/fynd
Browse files Browse the repository at this point in the history
0.1.8
  • Loading branch information
NikhilManapure authored Oct 18, 2021
2 parents 4e89c4b + 1f999ba commit b79cc1c
Show file tree
Hide file tree
Showing 63 changed files with 13,013 additions and 11,905 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Pull Request CI

on:
push:
branches: [ fyndx0 ]
pull_request:
branches: [ main ]

Expand All @@ -24,4 +26,7 @@ jobs:
- name: npm install, npm test
run: |
npm install
npm test
npm test
env:
API_KEY: ${{ secrets.API_KEY }}
API_SECRET: ${{ secrets.API_SECRET }}
102 changes: 1 addition & 101 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,104 +1,4 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
.env.production
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ getProductDetails();
const { PlatformConfig, PlatformClient } = require("fdk-client-javascript");

let platformConfig = new PlatformConfig({
companyId: 1,
domain: "api.fyndx0.de",
companyId: "COMPANY_ID",
apiKey: "API_KEY",
apiSecret: "API_SECRET",
domain: "DOMAIN",
});

async function getData() {
Expand Down
48 changes: 48 additions & 0 deletions documentation/application/CART.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ const data = await cart.getCart({ id : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | no | |
Expand Down Expand Up @@ -280,6 +282,8 @@ const data = await cart.getCartLastModified({ id : value });





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | no | |
Expand Down Expand Up @@ -319,6 +323,8 @@ const data = await cart.addItems({ body : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| i | boolean | no | |
Expand Down Expand Up @@ -1013,6 +1019,8 @@ const data = await cart.updateCart({ body : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | no | |
Expand Down Expand Up @@ -1431,6 +1439,8 @@ const data = await cart.getItemCount({ id : value });





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | no | The unique identifier of the cart. |
Expand Down Expand Up @@ -1487,6 +1497,8 @@ const data = await cart.getCoupons({ id : value });





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | no | |
Expand Down Expand Up @@ -1585,6 +1597,8 @@ const data = await cart.applyCoupon({ body : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| i | boolean | no | |
Expand Down Expand Up @@ -2178,6 +2192,8 @@ const data = await cart.removeCoupon({ id : value });





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | no | The unique identifier of the cart |
Expand Down Expand Up @@ -2395,6 +2411,8 @@ const data = await cart.getBulkDiscountOffers({ itemId : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| itemId | number | no | The Item ID of the product |
Expand Down Expand Up @@ -2529,6 +2547,8 @@ const data = await cart.applyRewardPoints({ body : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | no | |
Expand Down Expand Up @@ -2759,6 +2779,8 @@ const data = await cart.getAddresses({ cartId : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| cartId | string | no | |
Expand Down Expand Up @@ -2847,6 +2869,8 @@ const data = await cart.addAddress({ body : value });





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| body | [Address](#Address) | yes | Request body |
Expand Down Expand Up @@ -2914,6 +2938,8 @@ const data = await cart.getAddressById({ id : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | yes | |
Expand Down Expand Up @@ -3002,6 +3028,8 @@ const data = await cart.updateAddress({ id : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | yes | ID allotted to the selected address |
Expand Down Expand Up @@ -3061,6 +3089,8 @@ const data = await cart.removeAddress({ id : value });





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | yes | ID allotted to the selected address |
Expand Down Expand Up @@ -3124,6 +3154,8 @@ const data = await cart.selectAddress({ body : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| cartId | string | no | |
Expand Down Expand Up @@ -3437,6 +3469,8 @@ const data = await cart.selectPaymentMode({ body : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | no | |
Expand Down Expand Up @@ -3768,6 +3802,8 @@ const data = await cart.validateCouponForPayment({ id : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | no | |
Expand Down Expand Up @@ -3843,6 +3879,8 @@ const data = await cart.getShipments({ p : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| p | boolean | no | This is a boolean value. Select `true` for getting a payment option in response. |
Expand Down Expand Up @@ -4540,6 +4578,8 @@ const data = await cart.checkoutCart({ body : value });





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| body | [CartCheckoutDetailRequest](#CartCheckoutDetailRequest) | yes | Request body |
Expand Down Expand Up @@ -4975,6 +5015,8 @@ const data = await cart.updateCartMeta({ body : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| id | string | no | The unique identifier of the cart |
Expand Down Expand Up @@ -5031,6 +5073,8 @@ const data = await cart.getCartShareLink({ body : value });





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| body | [GetShareCartLinkRequest](#GetShareCartLinkRequest) | yes | Request body |
Expand Down Expand Up @@ -5095,6 +5139,8 @@ const data = await cart.getCartSharedItems({ token : value });





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| token | string | yes | Token of the shared short link |
Expand Down Expand Up @@ -5427,6 +5473,8 @@ const data = await cart.updateCartWithSharedItems({ token : value,





| Argument | Type | Required | Description |
| --------- | ----- | -------- | ----------- |
| token | string | yes | Token of the shared short link |
Expand Down
Loading

0 comments on commit b79cc1c

Please sign in to comment.