trclib
Version:
Client and utility wrappers for TRC rest APIs
43 lines (42 loc) • 1.43 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var trc = require("./trc2");
var Sheet = (function (_super) {
__extends(Sheet, _super);
function Sheet() {
var _this = this;
var t = {
AuthToken: "xxx",
SheetId: "123",
Server: "https://contoso.com"
};
_this = _super.call(this, t) || this;
_this._sheetInfo = {
Name: Sheet.DefaultName,
ParentName: "ParentSheet",
ParentId: null,
LatestVersion: 1,
CountRecords: 10,
Latitute: 101,
Longitude: 102,
Columns: null
};
return _this;
}
Sheet.prototype.getInfo = function (successFunc) {
successFunc(this._sheetInfo);
};
Sheet.DefaultName = "TestSheet";
return Sheet;
}(trc.Sheet));
exports.Sheet = Sheet;