@kurtosys/udm_data_toolkit
UDM Data Toolkit
Last updated 9 days ago by dillan.isaacs .
UNLICENSED · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @kurtosys/udm_data_toolkit 
SYNC missed versions from official npm registry.

UDM_DATA_TOOLKIT

Interface library for loading data into fund press.

Installing

Simply run npm install on the root folder of this project to install

Building

For a dev build run npm run build

For a production build run npm run build:prod this should happen on publish so you shouldn't have to do anything

Type definitions

This project has very experimental type definitions that attempts to document the functions for it. It doesn't cover the entire api so you can ignore large sections of it for now.

If you use vscode regardless if you use typescript or javascript you should get documentation built in and autocomplete.

Auto Complete

Project structure

/dist <-- Output Folder
/src  <-- Source Directory
    /utils
    index.js    <-- Entry Point
kDataToolkit.d.ts    <-- Type Definitions
webpack.config.js    <-- Build Configuration

Ftps changes

This is just to document the current changes with the ftps. A more thorough one will be done later. First there is the ftp folder you are pulling the files from it needs to be defined as ftpPath. This has been put on the LOADER_CONFIG object as ftpPath.

There are two functions syncFTPFolder and finalizeFTP.

Call syncFtpFolder with the remote path for the ftp it will return a promise that resolves with all the file names that have been copied. It syncs with your local ${globalRoot}/pending folder.

Once your loader is complete call finalizeFTP with the remote path this will archive all of the files into a zip clear the pending folder and clear the ftp folder.

import {
    LOADER_CONFIG,
    syncFTPFolder,
    finalizeFTP,
    registerLoaderStart,
    registerLoaderEnd,
    initDataToolkitConfig,
    login,
    getClient
} from "@kurtosys/udm_data_toolkit";
const manifest = require("rootDir/config/manifest");
const { ftpPath } = LOADER_CONFIG.ftp;

async function loadData() {
    let filesSynced = await syncFTPFolder(ftpPath); //Returns an array of files synced
    let token = await login();
    let client = await getClient();
    await registerLoaderStart();
    let isFilesToLoad = await loadFilesFromFolder("rootDir/pending", manifest);
    if (isFilesToLoad) {
        let [funds, timeSeries, ...otherStuff] = manifest;
        //Do your calls to load data
    }
    await finalizeFTP(ftpPath);
    await registerLoaderEnd(0, null, manifest);
    console.log("All Done");
}

initDataToolkitConfig("rootDir/", loadData);

Enviroment config changes

In the loaderConfig_[target].json file there is now a property called enviroment. Valid values for this is DEV, STAGING and PROD; this will target api-dev.fundpress.io, api-rel.fundpress.io and api.fundpress.io respectively.

Updating UDM Data Toolkit to a major version

Before updating this package to a major version, make sure that you first create a branch off master (without your changes) and name this branch "versions/{v#}" where {#} is the major version number. By doing this, we can easily maintain any version of this package

Example:

  • versions/v1
  • versions/v2

Current Tags

  • 2.1.1                                ...           beta (3 years ago)
  • 5.3.0                                ...           latest (9 days ago)

128 Versions

  • 5.3.0                                ...           9 days ago
  • 5.2.0                                ...           24 days ago
  • 5.1.3                                ...           a month ago
  • 5.1.2                                ...           a month ago
  • 2.1.17                                ...           a month ago
  • 3.1.41                                ...           a month ago
  • 4.0.2                                ...           a month ago
  • 5.1.1                                ...           a month ago
  • 5.1.0                                ...           2 months ago
  • 5.0.16                                ...           2 months ago
  • 5.0.15                                ...           2 months ago
  • 5.0.14                                ...           2 months ago
  • 5.0.13                                ...           3 months ago
  • 5.0.12                                ...           4 months ago
  • 5.0.11                                ...           4 months ago
  • 5.0.10                                ...           6 months ago
  • 5.0.9                                ...           6 months ago
  • 5.0.7                                ...           7 months ago
  • 5.0.6 [deprecated]           ...           7 months ago
  • 5.0.5 [deprecated]           ...           7 months ago
  • 5.0.4 [deprecated]           ...           7 months ago
  • 3.1.1-0.2                                ...           9 months ago
  • 2.1.16                                ...           9 months ago
  • 4.0.1                                ...           10 months ago
  • 3.1.40                                ...           10 months ago
  • 5.0.3                                ...           10 months ago
  • 5.0.2                                ...           10 months ago
  • 5.0.1                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 3.1.39                                ...           a year ago
  • 3.1.38                                ...           a year ago
  • 3.1.37                                ...           a year ago
  • 3.1.36                                ...           a year ago
  • 3.1.35                                ...           a year ago
  • 3.1.34                                ...           a year ago
  • 3.1.33                                ...           a year ago
  • 3.1.32                                ...           a year ago
  • 3.1.31                                ...           a year ago
  • 3.1.30                                ...           a year ago
  • 3.1.29                                ...           a year ago
  • 3.1.28                                ...           a year ago
  • 3.1.27                                ...           a year ago
  • 3.1.26                                ...           a year ago
  • 3.1.25                                ...           2 years ago
  • 3.1.24                                ...           2 years ago
  • 3.1.23                                ...           2 years ago
  • 3.1.22                                ...           2 years ago
  • 3.1.21                                ...           2 years ago
  • 3.1.20                                ...           2 years ago
  • 3.1.19                                ...           2 years ago
  • 3.1.18                                ...           2 years ago
  • 3.1.17                                ...           2 years ago
  • 3.1.16                                ...           2 years ago
  • 3.1.15                                ...           2 years ago
  • 3.1.13                                ...           2 years ago
  • 3.1.12                                ...           2 years ago
  • 3.1.11                                ...           2 years ago
  • 3.1.10                                ...           2 years ago
  • 3.1.9                                ...           2 years ago
  • 3.1.8                                ...           2 years ago
  • 3.1.7                                ...           2 years ago
  • 3.1.6                                ...           2 years ago
  • 3.1.5                                ...           2 years ago
  • 3.1.4                                ...           2 years ago
  • 3.1.3                                ...           2 years ago
  • 3.1.2                                ...           2 years ago
  • 3.1.1                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.6                                ...           2 years ago
  • 3.0.5                                ...           2 years ago
  • 3.0.4                                ...           3 years ago
  • 3.0.3                                ...           3 years ago
  • 3.0.2                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.1.15                                ...           3 years ago
  • 2.1.14                                ...           3 years ago
  • 2.1.13                                ...           3 years ago
  • 2.1.2                                ...           3 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 2.0.0                                ...           4 years ago
  • 1.2.12                                ...           4 years ago
  • 1.2.11                                ...           4 years ago
  • 1.2.10                                ...           4 years ago
  • 1.2.9                                ...           4 years ago
  • 1.2.8                                ...           4 years ago
  • 1.2.7                                ...           4 years ago
  • 1.2.6                                ...           4 years ago
  • 1.2.5                                ...           4 years ago
  • 1.2.4                                ...           4 years ago
  • 1.2.3                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.22                                ...           4 years ago
  • 1.1.21                                ...           4 years ago
  • 1.1.20                                ...           4 years ago
  • 1.1.19                                ...           4 years ago
  • 1.1.18                                ...           4 years ago
  • 1.1.17                                ...           4 years ago
  • 1.1.16                                ...           4 years ago
  • 1.1.15                                ...           4 years ago
  • 1.1.14                                ...           4 years ago
  • 1.1.13                                ...           4 years ago
  • 1.1.12                                ...           4 years ago
  • 1.1.11                                ...           4 years ago
  • 1.1.10                                ...           4 years ago
  • 1.1.9                                ...           4 years ago
  • 1.1.8                                ...           4 years ago
  • 1.1.7                                ...           4 years ago
  • 1.1.5                                ...           4 years ago
  • 1.1.4                                ...           4 years ago
  • 1.1.3                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.9                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           5 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Downloads
Today 0
This Week 129
This Month 179
Last Day 1
Last Week 17
Last Month 146
Dependencies (41)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |