tangible-stream-storage
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

TangibleStreamStorage

This library was generated with Angular CLI version 16.1.0.

Quickstart

To create a random UUID...

1. Install

npm install tangible-stream-storage

2. Create a Stream Storage (ES6 module syntax)

import { streamStorage } from 'tangible-stream-storage';
const service = new streamStorage.TangibleStreamStorageService();

3. Upload File to Storage (ES6 module syntax)

service.uploadFile(fileData).subscribe((data) => {
  console.log(data); // ⇨ { progress: number, url: string }
});

Service Models

StoragesObject Model to storage object into a bucket { companyUid:string; name:string; useType:string; isPublic:boolean; isColdline:boolean; file:File; }
resultFile Model to result object from Observable { progress: number; url: string; }
ENV Model to set environment used { prod: string; dev: string;}

Note:

to create a new object, first you need to get an idToken from Google Cloud Platform login and pass it as first parameter on new object() statement. The second parameter on the object is the environment selected. the environment selected and de GCP project used to login must be de same

Readme

Keywords

none

Package Sidebar

Install

npm i tangible-stream-storage

Weekly Downloads

3

Version

1.0.1

License

none

Unpacked Size

30.2 kB

Total Files

12

Last publish

Collaborators

  • tangibledesign