7.1.2 • Published 3 years ago

@kurtosys/udm_data_toolkit v7.1.2

Weekly downloads
18
License
UNLICENSED
Repository
github
Last release
3 years ago

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

BEFORE Publishing to npm: Building

For a dev build run npm run build

For a production build run npm run build:prod

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
7.1.2

3 years ago

7.1.1

3 years ago

7.1.0

3 years ago

7.0.0

3 years ago

6.4.3

3 years ago

6.4.2

3 years ago

6.4.1

3 years ago

3.2.0

3 years ago

6.4.0

3 years ago

5.7.0

3 years ago

6.3.0

3 years ago

6.2.5

3 years ago

6.2.4

3 years ago

6.2.3

3 years ago

6.2.2

4 years ago

6.2.1

4 years ago

6.2.0

4 years ago

5.6.5

4 years ago

6.1.2

4 years ago

5.6.4

4 years ago

6.1.1

4 years ago

6.1.0

4 years ago

6.0.1

4 years ago

5.6.3

4 years ago

6.0.0

4 years ago

5.1.5

4 years ago

5.6.2

4 years ago

5.1.4

4 years ago

5.6.1

4 years ago

5.6.0

4 years ago

5.5.0

4 years ago

5.4.0

4 years ago

5.3.0

4 years ago

5.2.0

4 years ago

5.1.3

4 years ago

5.1.2

4 years ago

2.1.17

4 years ago

3.1.41

4 years ago

4.0.2

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.16

4 years ago

5.0.15

4 years ago

5.0.14

4 years ago

5.0.13

4 years ago

5.0.12

4 years ago

5.0.11

4 years ago

5.0.10

4 years ago

5.0.9

4 years ago

5.0.8

4 years ago

5.0.7

4 years ago

5.0.6

5 years ago

5.0.5

5 years ago

5.0.4

5 years ago

3.1.1-0.2

5 years ago

2.1.16

5 years ago

4.0.1

5 years ago

3.1.40

5 years ago

5.0.3

5 years ago

5.0.2

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.0.0

5 years ago

3.1.39

5 years ago

3.1.38

5 years ago

3.1.37

5 years ago

3.1.36

5 years ago

3.1.35

5 years ago

3.1.34

5 years ago

3.1.33

5 years ago

3.1.32

5 years ago

3.1.31

5 years ago

3.1.30

5 years ago

3.1.29

5 years ago

3.1.28

5 years ago

3.1.27

5 years ago

3.1.26

5 years ago

3.1.25

5 years ago

3.1.24

6 years ago

3.1.23

6 years ago

3.1.22

6 years ago

3.1.21

6 years ago

3.1.20

6 years ago

3.1.19

6 years ago

3.1.18

6 years ago

3.1.17

6 years ago

3.1.16

6 years ago

3.1.15

6 years ago

3.1.13

6 years ago

3.1.12

6 years ago

3.1.11

6 years ago

3.1.10

6 years ago

3.1.9

6 years ago

3.1.8

6 years ago

3.1.7

6 years ago

3.1.6

6 years ago

3.1.5

6 years ago

3.1.4

6 years ago

3.1.3

6 years ago

3.1.2

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.6

6 years ago

3.0.5

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.1.15

7 years ago

2.1.14

7 years ago

2.1.13

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

8 years ago

1.2.12

8 years ago

1.2.11

8 years ago

1.2.10

8 years ago

1.2.9

8 years ago

1.2.8

8 years ago

1.2.7

8 years ago

1.2.6

8 years ago

1.2.5

8 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.22

8 years ago

1.1.21

8 years ago

1.1.20

8 years ago

1.1.19

8 years ago

1.1.18

8 years ago

1.1.17

8 years ago

1.1.16

8 years ago

1.1.15

8 years ago

1.1.14

8 years ago

1.1.13

8 years ago

1.1.12

8 years ago

1.1.11

8 years ago

1.1.10

8 years ago

1.1.9

8 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago