UNPKG

@graphistry/js-upload-api

Version:

Graphistry upload client for reuse by node and browser clients

449 lines 25.3 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; Object.defineProperty(exports, "__esModule", { value: true }); exports.NodeFile = exports.EdgeFile = exports.File = exports.FileType = void 0; /** * @internal * * <br> * * ## FileType * * Enumeration used by {@link File} subclasses {@link EdgeFile} and {@link NodeFile} to specify whether the file is a node or edge file. * * Primarily useful for TypeScript and runtime checks to avoid mixups when passing {@link File} objects to {@link Dataset} * */ var FileType; (function (FileType) { FileType[FileType["Node"] = 0] = "Node"; FileType[FileType["Edge"] = 1] = "Edge"; })(FileType = exports.FileType || (exports.FileType = {})); //////////////////////////////////////////////////////////////////////////////// /** * # File examples * * {@link File} objects are used for uploading data and then reusing as part of {@link Dataset} graph visualizations * * Powerfully, the same file may be reused in multiple {@link Dataset}s, so many variants can be made cheaply and quickly. * * For configuring supported file formats, see https://hub.graphistry.com/docs/api/2/rest/files/ . * * <br> * * --- * * <br> * * @example **Upload an {@link EdgeFile} from a JSON object in a columnar form** * ```javascript * import { EdgeFile } from '@graphistry/node-api'; * const edgesFile = new EdgeFile( * { * 's': ['a', 'b', 'c'], * 'd': ['d', 'e', 'f'], * 'v': ['v1', 'v2', 'v3'] * } * ); * await edgesFile.upload(client); * console.log(`EdgeFile uploaded as ID ${edgesFile.fileID}`); * ``` * * <br> * * @example **Upload an {@link EdgeFile} from a JSON object in a row-oriented form** * ```javascript * import { EdgeFile } from '@graphistry/node-api'; * const edgesFile = new EdgeFile( * [ * {'s': 'a', 'd': 'd', 'v': 'v1'}, * {'s': 'b', 'd': 'e', 'v': 'v2'}, * {'s': 'c', 'd': 'f', 'v': 'v3'} * ], * 'json', * 'my nodes file', * * // JSON parsing options: * // - https://hub.graphistry.com/docs/api/2/rest/upload/data/#uploadjson2 * // - https://pandas.pydata.org/docs/reference/api/pandas.read_json.html * // * // Also: file_compression, sql_transforms, ... * // https://hub.graphistry.com/docs/api/2/rest/files/ * {parser_options: {orient: 'records'}} * * ); * await edgesFile.upload(client); * console.log(`EdgeFile uploaded as ID ${edgesFile.fileID}`); * ``` * * <br> * * @example **Upload an {@link EdgeFile} using promises** * ```javascript * import { EdgeFile } from '@graphistry/node-api'; * const edgesFile = new EdgeFile({'s': ['a', 'b', 'c'], 'd': ['d', 'e', 'f'], 'v': ['v1', 'v2', 'v3']}); * edgesFile.upload(client).then( * () => console.log(`EdgeFile uploaded as ID ${edgesFile.fileID}`) * ).catch(err => console.error('oops', err)); * ``` * * <br> * * @example **Upload a {@link NodeFile} from a JSON object** * ```javascript * import { NodeFile } from '@graphistry/node-api'; * const nodesFile = new NodeFile({'n': ['a', 'b', 'c']}); * await nodesFile.upload(client); * console.log(`NodeFile uploaded as ID ${nodesFile.fileID}`); * ``` * * <br> * * @example **Upload a {@link NodeFile} from an Apache Arrow Table** * ```javascript * import { tableFromArrays, tableToIPC } from 'apache-arrow'; * import { NodeFile } from '@graphistry/node-api'; * const json = {'n': ['a', 'b', 'c']}; * const arr = tableFromArrays(json); * const uint8Buf = tableToIPC(arr); * const nodesFile = new NodeFile(uint8Buf, 'arrow'); * await nodesFile.upload(client); * console.log(`NodeFile uploaded as ID ${nodesFile.fileID}`); * ``` * * <br> * * @example **Create a {@link File} by ID (e.g., previously uploaded) for use with {@link Dataset}s** * ```javascript * import { EdgeFile, Dataset } from '@graphistry/node-api'; * const edgesFile = new EdgeFile('my_file_id'); * await (new Dataset(bindings, edgesFile)).upload(client); * console.log(`Dataset uploaded as ID ${dataset.datasetID}`); * ``` */ var File = /** @class */ (function () { //////////////////////////////////////////////////////////////////////////////// /** * * See examples at top of file * * Create a new {@link File} object for uploading or use with {@link Dataset} * * For more information on the available options, see: * * Creation step metadata options: https://hub.graphistry.com/docs/api/2/rest/files/ * * Upload step options: https://hub.graphistry.com/docs/api/2/rest/files/#uploadfiledata * * @param type FileType.Node or FileType.Edge * @param data Payload to pass to node-fetch. Use TypedArrays such as Uint8Array for binary data such as arrow * @param fileFormat File format to use, e.g. 'json', 'csv', 'arrow', 'parquet', 'orc', 'xls' * @param name Name of the file to use, e.g. 'my-file' * @param createOpts JSON post body options to use in createFile() * @param uploadUrlOpts URL options to use in uploadData() */ function File(type, data, fileFormat, name, createOpts, uploadUrlOpts) { if (data === void 0) { data = undefined; } if (fileFormat === void 0) { fileFormat = 'json'; } if (name === void 0) { name = 'my file'; } if (createOpts === void 0) { createOpts = {}; } if (uploadUrlOpts === void 0) { uploadUrlOpts = ''; } this._fileCreated = false; this._fileUploaded = false; this._fileValidated = false; if (typeof (data) == 'string') { this._fileID = data; this._fileCreated = true; this._fileUploaded = true; } else { this._data = data; } this.createOpts = createOpts; this.uploadUrlOpts = uploadUrlOpts; this.fileFormat = fileFormat; this.name = name; this.type = type; } Object.defineProperty(File.prototype, "data", { get: function () { return this._data; }, enumerable: false, configurable: true }); Object.defineProperty(File.prototype, "fileID", { get: function () { return this._fileID; }, enumerable: false, configurable: true }); Object.defineProperty(File.prototype, "fileCreated", { get: function () { return this._fileCreated; }, enumerable: false, configurable: true }); Object.defineProperty(File.prototype, "fileCreateResponse", { get: function () { return this._fileCreateResponse; }, enumerable: false, configurable: true }); Object.defineProperty(File.prototype, "fileUploaded", { get: function () { return this._fileUploaded; }, enumerable: false, configurable: true }); Object.defineProperty(File.prototype, "fileValidated", { get: function () { return this._fileValidated; }, enumerable: false, configurable: true }); Object.defineProperty(File.prototype, "fileUploadResponse", { get: function () { return this._fileUploadResponse; }, enumerable: false, configurable: true }); //////////////////////////////////////////////////////////////////////////////// /** * * See examples at top of file * * Upload curent {@link File} object to the server * * By default, this will skip reuploading files that have already been uploaded. * * @param client {@link Client} object to use for uploading * @param force If true, will force upload even if file has already been uploaded * @returns Promise that resolves to the uploaded File object when it completes uploading */ File.prototype.upload = function (client, force) { if (force === void 0) { force = false; } return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: if (!client) { throw new Error('No client provided'); } return [4 /*yield*/, this.createFile(client, force)]; case 1: _a.sent(); if (!this._fileID) { throw new Error('Unexpected file creation response, check file._fileCreateResponse'); } return [4 /*yield*/, this.uploadData(client, force)]; case 2: _a.sent(); if (!this._fileCreated) { throw new Error('Unexpected file upload response, check file._fileUploadResponse'); } if (!this._fileValidated) { throw new Error('Unexpected file validation response, check file._fileValidateResponse'); } return [2 /*return*/, this]; } }); }); }; //////////////////////////////////////////////////////////////////////////////// /** * * See examples at top of file * * Helper function to create the file on the server but not yet upload its data * * By default, this will skip recreating files that have already been created. * * @param client {@link Client} object to use for uploading * @param force If true, will force creation of a new ID even if file has already been uploaded * @returns */ File.prototype.createFile = function (client, force) { if (force === void 0) { force = false; } return __awaiter(this, void 0, void 0, function () { var fileJsonResults; return __generator(this, function (_a) { switch (_a.label) { case 0: if (!force && this._fileCreated) { console.debug('File already created, skipping'); return [2 /*return*/, this._fileCreated]; } console.debug('Creating file'); return [4 /*yield*/, client.post('api/v2/files/', __assign(__assign({ file_type: this.fileFormat }, (client.org ? { org_name: client.org } : {})), this.createOpts))]; case 1: fileJsonResults = _a.sent(); console.debug('File creation response:', fileJsonResults); this._fileCreateResponse = fileJsonResults; this._fileID = fileJsonResults.file_id; this._fileCreated = !!fileJsonResults.file_id; return [2 /*return*/, fileJsonResults]; } }); }); }; /** * * See examples at top of file * * Helper function to upload the data to the server * * By default, this will skip reuploading data that has already been uploaded. * * @param client {@link Client} object to use for uploading * @param force If true, will force upload even if file has already been uploaded * @returns */ File.prototype.uploadData = function (client, force) { if (force === void 0) { force = false; } return __awaiter(this, void 0, void 0, function () { var results; return __generator(this, function (_a) { switch (_a.label) { case 0: if (!force && this._fileUploaded) { return [2 /*return*/, this._fileUploaded]; } this.fillMetadata(this._data, client); return [4 /*yield*/, client.post("api/v2/upload/files/".concat(this._fileID).concat(this.uploadUrlOpts ? "?".concat(this.uploadUrlOpts) : ''), this._data, this.fileFormat != 'json' ? {} : undefined)]; case 1: results = _a.sent(); this._fileUploadResponse = results; this._fileUploaded = !!results.is_uploaded; this._fileValidated = !!results.is_valid; return [2 /*return*/, results]; } }); }); }; /** * * See examples at top of file * * Populate data for later uploading if it wasn't set during construction * * Cannot run this function if the file has already been uploaded * * Overwrites any existing data * * @param data Data to use for uploading */ File.prototype.setData = function (data) { if (this._fileUploaded) { throw new Error('Cannot set data after file has been successfully uploaded'); } this._data = data; }; /////////////////////////////////////////////////////////////////////////////// File.prototype.fillMetadata = function (data, client) { if (!data) { throw new Error('No data to fill metadata; call setData() first or provide to File constructor'); } if (data instanceof Uint8Array) { return; } if (!data['agent_name']) { data['agent_name'] = client.agent; } if (!data['agent_version']) { data['agent_version'] = client.version; } }; return File; }()); exports.File = File; //////////////////////////////////////////////////////////////////////////////// /** * Helper class for tracking intent when creating a {@link File} object for uploading * * See examples at top of file * */ var EdgeFile = /** @class */ (function (_super) { __extends(EdgeFile, _super); function EdgeFile(data, fileFormat, name, createOpts, urlOpts) { if (data === void 0) { data = undefined; } if (fileFormat === void 0) { fileFormat = 'json'; } if (name === void 0) { name = 'my file'; } if (createOpts === void 0) { createOpts = {}; } if (urlOpts === void 0) { urlOpts = ''; } return _super.call(this, FileType.Edge, data, fileFormat, name, createOpts, urlOpts) || this; } return EdgeFile; }(File)); exports.EdgeFile = EdgeFile; /** * Helper class for tracking intent when creating a {@link File} object for uploading * * See examples at top of file */ var NodeFile = /** @class */ (function (_super) { __extends(NodeFile, _super); function NodeFile(data, fileFormat, name, createOpts, urlOpts) { if (data === void 0) { data = undefined; } if (fileFormat === void 0) { fileFormat = 'json'; } if (name === void 0) { name = 'my file'; } if (createOpts === void 0) { createOpts = {}; } if (urlOpts === void 0) { urlOpts = ''; } return _super.call(this, FileType.Node, data, fileFormat, name, createOpts, urlOpts) || this; } return NodeFile; }(File)); exports.NodeFile = NodeFile; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9GaWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBSUE7Ozs7Ozs7Ozs7O0dBV0c7QUFDSCxJQUFZLFFBR1g7QUFIRCxXQUFZLFFBQVE7SUFDaEIsdUNBQUksQ0FBQTtJQUNKLHVDQUFJLENBQUE7QUFDUixDQUFDLEVBSFcsUUFBUSxHQUFSLGdCQUFRLEtBQVIsZ0JBQVEsUUFHbkI7QUFHRCxnRkFBZ0Y7QUFHaEY7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FvR0c7QUFDSDtJQXFDSSxnRkFBZ0Y7SUFFaEY7Ozs7Ozs7Ozs7Ozs7Ozs7T0FnQkc7SUFDSCxjQUFZLElBQWMsRUFBRSxJQUFxQixFQUFFLFVBQW1CLEVBQUUsSUFBZ0IsRUFBRSxVQUFlLEVBQUUsYUFBa0I7UUFBakcscUJBQUEsRUFBQSxnQkFBcUI7U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