Go to file
semantic-release-bot b07d97c55f chore(release): 1.1.1 [skip ci]
## [1.1.1](https://github.com/Natteke/diawi-nodejs-uploader/compare/v1.1.0...v1.1.1) (2020-11-25)

### Bug Fixes

* fix docs ([3d554be](3d554be4b9))
2020-11-25 08:24:02 +00:00
.github/workflows build: fix build action 2020-09-25 10:11:44 +03:00
src feat: added possibility to change endpoint 2020-11-25 10:54:42 +03:00
.eslintignore initial commit 2020-09-24 09:33:04 +03:00
.eslintrc feat: create upload functions 2020-09-24 14:18:42 +03:00
.gitignore initial commit 2020-09-24 09:33:04 +03:00
.releaserc.json build: fix .releaserc.json 2020-09-25 09:49:35 +03:00
CHANGELOG.md chore(release): 1.1.1 [skip ci] 2020-11-25 08:24:02 +00:00
commitlint.config.js initial commit 2020-09-24 09:31:27 +03:00
package-lock.json chore(release): 1.0.1 [skip ci] 2020-09-25 06:50:16 +00:00
package.json fix: include types in package.json 2020-09-25 11:40:31 +03:00
readme.md fix: fix docs 2020-11-25 11:19:00 +03:00
tsconfig.json fix: add types in export 2020-09-25 10:42:56 +03:00
webpack.config.js build: build with tsc 2020-09-24 15:23:44 +03:00
yarn.lock build: npm publish config 2020-09-25 08:44:07 +03:00

readme.md

diawi-nodejs-uploader

A NodeJS tool for Diawi integration written with Typescript

Installation

$ yarn add diawi-nodejs-uploader
=== or ===
$ npm install diawi-nodejs-uploader

Usage

Programmatic

All options except token and file are optional.

import { upload } from 'diawi-nodejs-uploader';

const result = await upload({
        file: '/files/bundle.apk',
        token: 'token',
    });
console.log(result);

Full example

import { upload } from 'diawi-nodejs-uploader';

const result = await upload({
    file: '/file/bundle.apk',
    token: 'token',
    callback_emails: 'email@mail.com',
    callback_url: 'myUrl.com/cb',
    comment: 'comment text',
    find_by_udid: true,
    installation_notifications: true,
    password: 'passwordForBundle',
    wall_of_apps: true,
}, {
    apiUploadEndpoint: 'rewriteDefauitDiawiUploadEndpoint',
    apiStatusEndpoint: 'rewriteDefauitDiawiStatusEndpoint',
    maxApiStatusCalls: 99,
    onUploadProgress: (progressPercent) => {
        console.log(`uploading: ${progressPercent}`);
    },
    onStatusProgress: (status) => {
        console.log(`status: ${status}`);
    },
});

console.log(result);

CLI

// in development