@science-corporation/synapse 1.1.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/package.json +3 -2
- package/src/config.ts +4 -6
- package/src/device.ts +35 -6
- package/src/nodes/index.ts +2 -3
- package/src/nodes/spike_binner.ts +30 -0
- package/src/nodes/spike_detector.ts +30 -0
- package/synapse-api/.github/pull_request_template.md +10 -0
- package/synapse-api/README.md +1 -1
- package/synapse-api/api/app.proto +55 -0
- package/synapse-api/api/channel.proto +15 -1
- package/synapse-api/api/datatype.proto +98 -1
- package/synapse-api/api/device.proto +65 -0
- package/synapse-api/api/node.proto +25 -21
- package/synapse-api/api/nodes/application.proto +24 -0
- package/synapse-api/api/nodes/broadband_source.proto +1 -0
- package/synapse-api/api/nodes/disk_writer.proto +17 -0
- package/synapse-api/api/nodes/optical_stimulation.proto +29 -0
- package/synapse-api/api/nodes/signal_config.proto +2 -0
- package/synapse-api/api/nodes/spike_binner.proto +7 -0
- package/synapse-api/api/nodes/spike_detector.proto +19 -0
- package/synapse-api/api/performance.proto +29 -0
- package/synapse-api/api/query.proto +27 -1
- package/synapse-api/api/status.proto +6 -1
- package/synapse-api/api/synapse.proto +9 -31
- package/synapse-api/api/tap.proto +35 -0
- package/synapse-api/api/time.proto +53 -0
- package/dist/api/api.d.ts +0 -6233
- package/dist/api/api.d.ts.map +0 -1
- package/dist/api/api.js +0 -14553
- package/dist/api/api.js.map +0 -1
- package/dist/api/proto.json +0 -1077
- package/dist/browser.d.ts +0 -4
- package/dist/browser.d.ts.map +0 -1
- package/dist/browser.js +0 -22
- package/dist/browser.js.map +0 -1
- package/dist/config.d.ts +0 -17
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -113
- package/dist/config.js.map +0 -1
- package/dist/demo.d.ts +0 -2
- package/dist/demo.d.ts.map +0 -1
- package/dist/demo.js +0 -285
- package/dist/demo.js.map +0 -1
- package/dist/device.d.ts +0 -32
- package/dist/device.d.ts.map +0 -1
- package/dist/device.js +0 -160
- package/dist/device.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -30
- package/dist/index.js.map +0 -1
- package/dist/node.d.ts +0 -10
- package/dist/node.d.ts.map +0 -1
- package/dist/node.js +0 -14
- package/dist/node.js.map +0 -1
- package/dist/nodes/broadband_source.d.ts +0 -11
- package/dist/nodes/broadband_source.d.ts.map +0 -1
- package/dist/nodes/broadband_source.js +0 -28
- package/dist/nodes/broadband_source.js.map +0 -1
- package/dist/nodes/disk_writer.d.ts +0 -11
- package/dist/nodes/disk_writer.d.ts.map +0 -1
- package/dist/nodes/disk_writer.js +0 -28
- package/dist/nodes/disk_writer.js.map +0 -1
- package/dist/nodes/electrical_stimulation.d.ts +0 -11
- package/dist/nodes/electrical_stimulation.d.ts.map +0 -1
- package/dist/nodes/electrical_stimulation.js +0 -28
- package/dist/nodes/electrical_stimulation.js.map +0 -1
- package/dist/nodes/index.d.ts +0 -11
- package/dist/nodes/index.d.ts.map +0 -1
- package/dist/nodes/index.js +0 -25
- package/dist/nodes/index.js.map +0 -1
- package/dist/nodes/optical_stimulation.d.ts +0 -11
- package/dist/nodes/optical_stimulation.d.ts.map +0 -1
- package/dist/nodes/optical_stimulation.js +0 -28
- package/dist/nodes/optical_stimulation.js.map +0 -1
- package/dist/nodes/spectral_filter.d.ts +0 -11
- package/dist/nodes/spectral_filter.d.ts.map +0 -1
- package/dist/nodes/spectral_filter.js +0 -28
- package/dist/nodes/spectral_filter.js.map +0 -1
- package/dist/nodes/spike_detect.d.ts +0 -11
- package/dist/nodes/spike_detect.d.ts.map +0 -1
- package/dist/nodes/spike_detect.js +0 -28
- package/dist/nodes/spike_detect.js.map +0 -1
- package/dist/nodes/spike_source.d.ts +0 -11
- package/dist/nodes/spike_source.d.ts.map +0 -1
- package/dist/nodes/spike_source.js +0 -28
- package/dist/nodes/spike_source.js.map +0 -1
- package/dist/nodes/stream_in.d.ts +0 -15
- package/dist/nodes/stream_in.d.ts.map +0 -1
- package/dist/nodes/stream_in.js +0 -66
- package/dist/nodes/stream_in.js.map +0 -1
- package/dist/nodes/stream_out.d.ts +0 -23
- package/dist/nodes/stream_out.d.ts.map +0 -1
- package/dist/nodes/stream_out.js +0 -105
- package/dist/nodes/stream_out.js.map +0 -1
- package/dist/utils/client.d.ts +0 -10
- package/dist/utils/client.d.ts.map +0 -1
- package/dist/utils/client.js +0 -39
- package/dist/utils/client.js.map +0 -1
- package/dist/utils/discover.d.ts +0 -10
- package/dist/utils/discover.d.ts.map +0 -1
- package/dist/utils/discover.js +0 -49
- package/dist/utils/discover.js.map +0 -1
- package/dist/utils/enum.d.ts +0 -2
- package/dist/utils/enum.d.ts.map +0 -1
- package/dist/utils/enum.js +0 -13
- package/dist/utils/enum.js.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -6
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/ip.d.ts +0 -2
- package/dist/utils/ip.d.ts.map +0 -1
- package/dist/utils/ip.js +0 -52
- package/dist/utils/ip.js.map +0 -1
- package/dist/utils/status.d.ts +0 -28
- package/dist/utils/status.d.ts.map +0 -1
- package/dist/utils/status.js +0 -54
- package/dist/utils/status.js.map +0 -1
- package/src/api/api.d.ts +0 -6233
- package/src/api/api.js +0 -15524
- package/src/api/proto.json +0 -1077
- package/src/demo.ts +0 -325
- package/src/nodes/spike_detect.ts +0 -30
- package/src/nodes/stream_in.ts +0 -78
- package/src/nodes/stream_out.ts +0 -109
- package/synapse-api/api/nodes/spike_detect.proto +0 -16
- package/synapse-api/api/nodes/stream_in.proto +0 -14
- package/synapse-api/api/nodes/stream_out.proto +0 -42
package/dist/device.js
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const grpc_js_1 = require("@grpc/grpc-js");
|
|
16
|
-
const proto_json_1 = __importDefault(require("./api/proto.json"));
|
|
17
|
-
const api_1 = require("./api/api");
|
|
18
|
-
const client_1 = require("./utils/client");
|
|
19
|
-
const status_1 = require("./utils/status");
|
|
20
|
-
const kSynapseService = "synapse.SynapseDevice";
|
|
21
|
-
class Device {
|
|
22
|
-
constructor(uri) {
|
|
23
|
-
this.uri = uri;
|
|
24
|
-
this.rpc = null;
|
|
25
|
-
this.channel = null;
|
|
26
|
-
this.sockets = [];
|
|
27
|
-
const { status, client } = (0, client_1.create)(proto_json_1.default, kSynapseService)(uri, grpc_js_1.credentials.createInsecure());
|
|
28
|
-
if (!status.ok() || !client) {
|
|
29
|
-
throw new Error(`Failed to create client for ${uri}: ${status.message}`);
|
|
30
|
-
}
|
|
31
|
-
this.rpc = client;
|
|
32
|
-
}
|
|
33
|
-
configure(config_1) {
|
|
34
|
-
return __awaiter(this, arguments, void 0, function* (config, options = {}) {
|
|
35
|
-
return new Promise((resolve, reject) => {
|
|
36
|
-
config.setDevice(this);
|
|
37
|
-
const proto = config.toProto();
|
|
38
|
-
this.rpc.configure(proto, options, (err, res) => {
|
|
39
|
-
if (err) {
|
|
40
|
-
reject(err);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
const status = this._handleStatusResponse(res);
|
|
44
|
-
if (status.ok()) {
|
|
45
|
-
resolve(status);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
reject(new status_1.Status(status.code, `failed to configure device: ${status.message}`));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
info() {
|
|
56
|
-
return __awaiter(this, arguments, void 0, function* (options = {}) {
|
|
57
|
-
return new Promise((resolve, reject) => {
|
|
58
|
-
this.rpc.info({}, options, (err, res) => {
|
|
59
|
-
if (err) {
|
|
60
|
-
reject(err);
|
|
61
|
-
}
|
|
62
|
-
else if (!res) {
|
|
63
|
-
reject(new status_1.Status(err.code, "failed to get device info: " + err.message));
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
const { sockets } = res.status;
|
|
67
|
-
this.sockets = sockets || [];
|
|
68
|
-
resolve({ status: new status_1.Status(), response: res });
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
start() {
|
|
75
|
-
return __awaiter(this, arguments, void 0, function* (options = {}) {
|
|
76
|
-
return new Promise((resolve, reject) => {
|
|
77
|
-
this.rpc.start({}, options, (err, res) => {
|
|
78
|
-
if (err) {
|
|
79
|
-
reject(err);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
const status = this._handleStatusResponse(res);
|
|
83
|
-
if (status.ok()) {
|
|
84
|
-
resolve(status);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
reject(new status_1.Status(status.code, `failed to start device: ${status.message}`));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
stop() {
|
|
95
|
-
return __awaiter(this, arguments, void 0, function* (options = {}) {
|
|
96
|
-
return new Promise((resolve, reject) => {
|
|
97
|
-
this.rpc.stop({}, options, (err, res) => {
|
|
98
|
-
if (err) {
|
|
99
|
-
reject(err);
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
const status = this._handleStatusResponse(res);
|
|
103
|
-
if (status.ok()) {
|
|
104
|
-
resolve(status);
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
reject(new status_1.Status(status.code, `failed to stop device: ${status.message}`));
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
// Logs
|
|
115
|
-
getLogs(query_1) {
|
|
116
|
-
return __awaiter(this, arguments, void 0, function* (query, options = {}) {
|
|
117
|
-
return new Promise((resolve, reject) => {
|
|
118
|
-
this.rpc.getLogs(query, options, (err, res) => {
|
|
119
|
-
if (err) {
|
|
120
|
-
reject(err);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
resolve({ status: new status_1.Status(), response: res });
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
tailLogs(query_1) {
|
|
130
|
-
return __awaiter(this, arguments, void 0, function* (query, options = {}, callbacks) {
|
|
131
|
-
const { onData, onEnd, onError, onStatus } = callbacks;
|
|
132
|
-
const call = this.rpc.tailLogs(query, options);
|
|
133
|
-
call.on("data", onData);
|
|
134
|
-
if (onEnd) {
|
|
135
|
-
call.on("end", onEnd);
|
|
136
|
-
}
|
|
137
|
-
if (onError) {
|
|
138
|
-
call.on("error", onError);
|
|
139
|
-
}
|
|
140
|
-
if (onStatus) {
|
|
141
|
-
call.on("status", (grpcStatus) => {
|
|
142
|
-
onStatus === null || onStatus === void 0 ? void 0 : onStatus(new status_1.Status(grpcStatus.code, grpcStatus.details));
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
return call;
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
_handleStatusResponse(status) {
|
|
149
|
-
const { code, message, sockets } = status;
|
|
150
|
-
if (code !== api_1.synapse.StatusCode.kOk) {
|
|
151
|
-
return (0, status_1.fromDeviceStatus)({ code, message });
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
this.sockets = sockets || [];
|
|
155
|
-
return new status_1.Status();
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
exports.default = Device;
|
|
160
|
-
//# sourceMappingURL=device.js.map
|
package/dist/device.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device.js","sourceRoot":"","sources":["../src/device.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAAmE;AAEnE,kEAAsC;AACtC,mCAAoC;AAEpC,2CAAqD;AACrD,2CAA0D;AAE1D,MAAM,eAAe,GAAG,uBAAuB,CAAC;AAEhD,MAAM,MAAM;IAKV,YAAmB,GAAW;QAAX,QAAG,GAAH,GAAG,CAAQ;QAJ9B,QAAG,GAAe,IAAI,CAAC;QACvB,YAAO,GAAmB,IAAI,CAAC;QAC/B,YAAO,GAA0B,EAAE,CAAC;QAGlC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,eAAM,EAAC,oBAAM,EAAE,eAAe,CAAC,CAAC,GAAG,EAAE,qBAAW,CAAC,cAAc,EAAE,CAAC,CAAC;QAC9F,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CAAC,+BAA+B,GAAG,KAAK,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;QAC3E,CAAC;QACD,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC;IACpB,CAAC;IAEK,SAAS;6DAAC,MAAc,EAAE,UAAuB,EAAE;YACvD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAA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;YACD,IAAI,OAAO,EAAE,CAAC;gBACZ,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAC5B,CAAC;YACD,IAAI,QAAQ,EAAE,CAAC;gBACb,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,EAAE;oBAC/B,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,IAAI,eAAM,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;gBAC9D,CAAC,CAAC,CAAC;YACL,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;IAED,qBAAqB,CAAC,MAAuB;QAC3C,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC1C,IAAI,IAAI,KAAK,aAAO,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;YACpC,OAAO,IAAA,yBAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7C,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;YAC7B,OAAO,IAAI,eAAM,EAAE,CAAC;QACtB,CAAC;IACH,CAAC;CACF;AAED,kBAAe,MAAM,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Config } from "./config";
|
|
2
|
-
export { default as Device } from "./device";
|
|
3
|
-
export * from "./nodes";
|
|
4
|
-
export { IStatus, Status, StatusCode } from "./utils/status";
|
|
5
|
-
export type { CallOptions } from "./utils/client";
|
|
6
|
-
export * from "./api/api";
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE7D,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,cAAc,WAAW,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.StatusCode = exports.Status = exports.Device = exports.Config = void 0;
|
|
21
|
-
var config_1 = require("./config");
|
|
22
|
-
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return __importDefault(config_1).default; } });
|
|
23
|
-
var device_1 = require("./device");
|
|
24
|
-
Object.defineProperty(exports, "Device", { enumerable: true, get: function () { return __importDefault(device_1).default; } });
|
|
25
|
-
__exportStar(require("./nodes"), exports);
|
|
26
|
-
var status_1 = require("./utils/status");
|
|
27
|
-
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return status_1.Status; } });
|
|
28
|
-
Object.defineProperty(exports, "StatusCode", { enumerable: true, get: function () { return status_1.StatusCode; } });
|
|
29
|
-
__exportStar(require("./api/api"), exports);
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mCAA6C;AAApC,iHAAA,OAAO,OAAU;AAC1B,mCAA6C;AAApC,iHAAA,OAAO,OAAU;AAC1B,0CAAwB;AACxB,yCAA6D;AAA3C,gGAAA,MAAM,OAAA;AAAE,oGAAA,UAAU,OAAA;AAGpC,4CAA0B"}
|
package/dist/node.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { synapse } from "./api/api";
|
|
2
|
-
import Device from "./device";
|
|
3
|
-
declare class Node {
|
|
4
|
-
id?: number;
|
|
5
|
-
type: synapse.NodeType;
|
|
6
|
-
device: Device | null;
|
|
7
|
-
toProto(config?: synapse.INodeConfig): synapse.NodeConfig;
|
|
8
|
-
}
|
|
9
|
-
export default Node;
|
|
10
|
-
//# sourceMappingURL=node.d.ts.map
|
package/dist/node.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,cAAM,IAAI;IACR,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAqC;IAC3D,MAAM,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE7B,OAAO,CAAC,MAAM,GAAE,OAAO,CAAC,WAAgB,GAAG,OAAO,CAAC,UAAU;CAO9D;AAED,eAAe,IAAI,CAAC"}
|
package/dist/node.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const api_1 = require("./api/api");
|
|
4
|
-
class Node {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.type = api_1.synapse.NodeType.kNodeTypeUnknown;
|
|
7
|
-
this.device = null;
|
|
8
|
-
}
|
|
9
|
-
toProto(config = {}) {
|
|
10
|
-
return new api_1.synapse.NodeConfig(Object.assign(Object.assign({}, config), { id: this.id, type: this.type }));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = Node;
|
|
14
|
-
//# sourceMappingURL=node.js.map
|
package/dist/node.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":";;AAAA,mCAAoC;AAGpC,MAAM,IAAI;IAAV;QAEE,SAAI,GAAqB,aAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAC3D,WAAM,GAAkB,IAAI,CAAC;IAS/B,CAAC;IAPC,OAAO,CAAC,SAA8B,EAAE;QACtC,OAAO,IAAI,aAAO,CAAC,UAAU,iCACxB,MAAM,KACT,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,IAAI,EAAE,IAAI,CAAC,IAAI,IACf,CAAC;IACL,CAAC;CACF;AAED,kBAAe,IAAI,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { synapse } from "../api/api";
|
|
2
|
-
import Node from "../node";
|
|
3
|
-
declare class BroadbandSource extends Node {
|
|
4
|
-
type: synapse.NodeType;
|
|
5
|
-
config: synapse.IBroadbandSourceConfig;
|
|
6
|
-
constructor(config?: synapse.IBroadbandSourceConfig);
|
|
7
|
-
toProto(): synapse.NodeConfig;
|
|
8
|
-
static fromProto(proto: synapse.NodeConfig): BroadbandSource;
|
|
9
|
-
}
|
|
10
|
-
export default BroadbandSource;
|
|
11
|
-
//# sourceMappingURL=broadband_source.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"broadband_source.d.ts","sourceRoot":"","sources":["../../src/nodes/broadband_source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,cAAM,eAAgB,SAAQ,IAAI;IAChC,IAAI,mBAAqC;IACzC,MAAM,EAAE,OAAO,CAAC,sBAAsB,CAAC;gBAE3B,MAAM,GAAE,OAAO,CAAC,sBAA2B;IAMvD,OAAO,IAAI,OAAO,CAAC,UAAU;IAM7B,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,GAAG,eAAe;CAQ7D;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const api_1 = require("../api/api");
|
|
7
|
-
const node_1 = __importDefault(require("../node"));
|
|
8
|
-
class BroadbandSource extends node_1.default {
|
|
9
|
-
constructor(config = {}) {
|
|
10
|
-
super();
|
|
11
|
-
this.type = api_1.synapse.NodeType.kBroadbandSource;
|
|
12
|
-
this.config = config;
|
|
13
|
-
}
|
|
14
|
-
toProto() {
|
|
15
|
-
return super.toProto({
|
|
16
|
-
broadbandSource: this.config,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
static fromProto(proto) {
|
|
20
|
-
const { broadbandSource } = proto;
|
|
21
|
-
if (!broadbandSource) {
|
|
22
|
-
throw new Error("Invalid config, missing broadbandSource");
|
|
23
|
-
}
|
|
24
|
-
return new BroadbandSource(proto.broadbandSource);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = BroadbandSource;
|
|
28
|
-
//# sourceMappingURL=broadband_source.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"broadband_source.js","sourceRoot":"","sources":["../../src/nodes/broadband_source.ts"],"names":[],"mappings":";;;;;AAAA,oCAAqC;AACrC,mDAA2B;AAE3B,MAAM,eAAgB,SAAQ,cAAI;IAIhC,YAAY,SAAyC,EAAE;QACrD,KAAK,EAAE,CAAC;QAJV,SAAI,GAAG,aAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAMvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,OAAO;QACL,OAAO,KAAK,CAAC,OAAO,CAAC;YACnB,eAAe,EAAE,IAAI,CAAC,MAAM;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAAyB;QACxC,MAAM,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;QAClC,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;QAC7D,CAAC;QAED,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IACpD,CAAC;CACF;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { synapse } from "../api/api";
|
|
2
|
-
import Node from "../node";
|
|
3
|
-
declare class DiskWriter extends Node {
|
|
4
|
-
type: synapse.NodeType;
|
|
5
|
-
config: synapse.IDiskWriterConfig;
|
|
6
|
-
constructor(config?: synapse.IDiskWriterConfig);
|
|
7
|
-
toProto(): synapse.NodeConfig;
|
|
8
|
-
static fromProto(proto: synapse.INodeConfig): DiskWriter;
|
|
9
|
-
}
|
|
10
|
-
export default DiskWriter;
|
|
11
|
-
//# sourceMappingURL=disk_writer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"disk_writer.d.ts","sourceRoot":"","sources":["../../src/nodes/disk_writer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,cAAM,UAAW,SAAQ,IAAI;IAC3B,IAAI,mBAAgC;IACpC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC;gBAEtB,MAAM,GAAE,OAAO,CAAC,iBAAsB;IAMlD,OAAO,IAAI,OAAO,CAAC,UAAU;IAM7B,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,GAAG,UAAU;CAQzD;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const api_1 = require("../api/api");
|
|
7
|
-
const node_1 = __importDefault(require("../node"));
|
|
8
|
-
class DiskWriter extends node_1.default {
|
|
9
|
-
constructor(config = {}) {
|
|
10
|
-
super();
|
|
11
|
-
this.type = api_1.synapse.NodeType.kDiskWriter;
|
|
12
|
-
this.config = config;
|
|
13
|
-
}
|
|
14
|
-
toProto() {
|
|
15
|
-
return super.toProto({
|
|
16
|
-
diskWriter: this.config,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
static fromProto(proto) {
|
|
20
|
-
const { diskWriter } = proto;
|
|
21
|
-
if (!diskWriter) {
|
|
22
|
-
throw new Error("Invalid config, missing diskWriter");
|
|
23
|
-
}
|
|
24
|
-
return new DiskWriter(proto.diskWriter);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = DiskWriter;
|
|
28
|
-
//# sourceMappingURL=disk_writer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"disk_writer.js","sourceRoot":"","sources":["../../src/nodes/disk_writer.ts"],"names":[],"mappings":";;;;;AAAA,oCAAqC;AACrC,mDAA2B;AAE3B,MAAM,UAAW,SAAQ,cAAI;IAI3B,YAAY,SAAoC,EAAE;QAChD,KAAK,EAAE,CAAC;QAJV,SAAI,GAAG,aAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;QAMlC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,OAAO;QACL,OAAO,KAAK,CAAC,OAAO,CAAC;YACnB,UAAU,EAAE,IAAI,CAAC,MAAM;SACxB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAA0B;QACzC,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;QAC7B,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACxD,CAAC;QAED,OAAO,IAAI,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;CACF;AAED,kBAAe,UAAU,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { synapse } from "../api/api";
|
|
2
|
-
import Node from "../node";
|
|
3
|
-
declare class ElectricalStimulation extends Node {
|
|
4
|
-
type: synapse.NodeType;
|
|
5
|
-
config: synapse.IElectricalStimulationConfig;
|
|
6
|
-
constructor(config?: synapse.IElectricalStimulationConfig);
|
|
7
|
-
toProto(): synapse.NodeConfig;
|
|
8
|
-
static fromProto(proto: synapse.INodeConfig): ElectricalStimulation;
|
|
9
|
-
}
|
|
10
|
-
export default ElectricalStimulation;
|
|
11
|
-
//# sourceMappingURL=electrical_stimulation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"electrical_stimulation.d.ts","sourceRoot":"","sources":["../../src/nodes/electrical_stimulation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,cAAM,qBAAsB,SAAQ,IAAI;IACtC,IAAI,mBAA2C;IAC/C,MAAM,EAAE,OAAO,CAAC,4BAA4B,CAAC;gBAEjC,MAAM,GAAE,OAAO,CAAC,4BAAiC;IAM7D,OAAO,IAAI,OAAO,CAAC,UAAU;IAM7B,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,GAAG,qBAAqB;CAQpE;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const api_1 = require("../api/api");
|
|
7
|
-
const node_1 = __importDefault(require("../node"));
|
|
8
|
-
class ElectricalStimulation extends node_1.default {
|
|
9
|
-
constructor(config = {}) {
|
|
10
|
-
super();
|
|
11
|
-
this.type = api_1.synapse.NodeType.kElectricalStimulation;
|
|
12
|
-
this.config = config;
|
|
13
|
-
}
|
|
14
|
-
toProto() {
|
|
15
|
-
return super.toProto({
|
|
16
|
-
electricalStimulation: this.config,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
static fromProto(proto) {
|
|
20
|
-
const { electricalStimulation } = proto;
|
|
21
|
-
if (!electricalStimulation) {
|
|
22
|
-
throw new Error("Invalid config, missing electricalStimulation");
|
|
23
|
-
}
|
|
24
|
-
return new ElectricalStimulation(proto.electricalStimulation);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = ElectricalStimulation;
|
|
28
|
-
//# sourceMappingURL=electrical_stimulation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"electrical_stimulation.js","sourceRoot":"","sources":["../../src/nodes/electrical_stimulation.ts"],"names":[],"mappings":";;;;;AAAA,oCAAqC;AACrC,mDAA2B;AAE3B,MAAM,qBAAsB,SAAQ,cAAI;IAItC,YAAY,SAA+C,EAAE;QAC3D,KAAK,EAAE,CAAC;QAJV,SAAI,GAAG,aAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;QAM7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,OAAO;QACL,OAAO,KAAK,CAAC,OAAO,CAAC;YACnB,qBAAqB,EAAE,IAAI,CAAC,MAAM;SACnC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAA0B;QACzC,MAAM,EAAE,qBAAqB,EAAE,GAAG,KAAK,CAAC;QACxC,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACnE,CAAC;QAED,OAAO,IAAI,qBAAqB,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAChE,CAAC;CACF;AAED,kBAAe,qBAAqB,CAAC"}
|
package/dist/nodes/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { default as BroadbandSource } from "./broadband_source";
|
|
2
|
-
export { default as DiskWriter } from "./disk_writer";
|
|
3
|
-
export { default as ElectricalStimulation } from "./electrical_stimulation";
|
|
4
|
-
export { default as OpticalStimulation } from "./optical_stimulation";
|
|
5
|
-
export { default as SpectralFilter } from "./spectral_filter";
|
|
6
|
-
export { default as SpikeDetect } from "./spike_detect";
|
|
7
|
-
export { default as SpikeSource } from "./spike_source";
|
|
8
|
-
export { default as StreamIn } from "./stream_in";
|
|
9
|
-
export { default as StreamOut } from "./stream_out";
|
|
10
|
-
export type * from "../api/api";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nodes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,mBAAmB,YAAY,CAAC"}
|
package/dist/nodes/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.StreamOut = exports.StreamIn = exports.SpikeSource = exports.SpikeDetect = exports.SpectralFilter = exports.OpticalStimulation = exports.ElectricalStimulation = exports.DiskWriter = exports.BroadbandSource = void 0;
|
|
7
|
-
var broadband_source_1 = require("./broadband_source");
|
|
8
|
-
Object.defineProperty(exports, "BroadbandSource", { enumerable: true, get: function () { return __importDefault(broadband_source_1).default; } });
|
|
9
|
-
var disk_writer_1 = require("./disk_writer");
|
|
10
|
-
Object.defineProperty(exports, "DiskWriter", { enumerable: true, get: function () { return __importDefault(disk_writer_1).default; } });
|
|
11
|
-
var electrical_stimulation_1 = require("./electrical_stimulation");
|
|
12
|
-
Object.defineProperty(exports, "ElectricalStimulation", { enumerable: true, get: function () { return __importDefault(electrical_stimulation_1).default; } });
|
|
13
|
-
var optical_stimulation_1 = require("./optical_stimulation");
|
|
14
|
-
Object.defineProperty(exports, "OpticalStimulation", { enumerable: true, get: function () { return __importDefault(optical_stimulation_1).default; } });
|
|
15
|
-
var spectral_filter_1 = require("./spectral_filter");
|
|
16
|
-
Object.defineProperty(exports, "SpectralFilter", { enumerable: true, get: function () { return __importDefault(spectral_filter_1).default; } });
|
|
17
|
-
var spike_detect_1 = require("./spike_detect");
|
|
18
|
-
Object.defineProperty(exports, "SpikeDetect", { enumerable: true, get: function () { return __importDefault(spike_detect_1).default; } });
|
|
19
|
-
var spike_source_1 = require("./spike_source");
|
|
20
|
-
Object.defineProperty(exports, "SpikeSource", { enumerable: true, get: function () { return __importDefault(spike_source_1).default; } });
|
|
21
|
-
var stream_in_1 = require("./stream_in");
|
|
22
|
-
Object.defineProperty(exports, "StreamIn", { enumerable: true, get: function () { return __importDefault(stream_in_1).default; } });
|
|
23
|
-
var stream_out_1 = require("./stream_out");
|
|
24
|
-
Object.defineProperty(exports, "StreamOut", { enumerable: true, get: function () { return __importDefault(stream_out_1).default; } });
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
package/dist/nodes/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/nodes/index.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAgE;AAAvD,oIAAA,OAAO,OAAmB;AACnC,6CAAsD;AAA7C,0HAAA,OAAO,OAAc;AAC9B,mEAA4E;AAAnE,gJAAA,OAAO,OAAyB;AACzC,6DAAsE;AAA7D,0IAAA,OAAO,OAAsB;AACtC,qDAA8D;AAArD,kIAAA,OAAO,OAAkB;AAClC,+CAAwD;AAA/C,4HAAA,OAAO,OAAe;AAC/B,+CAAwD;AAA/C,4HAAA,OAAO,OAAe;AAC/B,yCAAkD;AAAzC,sHAAA,OAAO,OAAY;AAC5B,2CAAoD;AAA3C,wHAAA,OAAO,OAAa"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { synapse } from "../api/api";
|
|
2
|
-
import Node from "../node";
|
|
3
|
-
declare class OpticalStimulation extends Node {
|
|
4
|
-
type: synapse.NodeType;
|
|
5
|
-
config: synapse.IOpticalStimulationConfig;
|
|
6
|
-
constructor(config?: synapse.IOpticalStimulationConfig);
|
|
7
|
-
toProto(): synapse.NodeConfig;
|
|
8
|
-
static fromProto(proto: synapse.INodeConfig): OpticalStimulation;
|
|
9
|
-
}
|
|
10
|
-
export default OpticalStimulation;
|
|
11
|
-
//# sourceMappingURL=optical_stimulation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"optical_stimulation.d.ts","sourceRoot":"","sources":["../../src/nodes/optical_stimulation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,cAAM,kBAAmB,SAAQ,IAAI;IACnC,IAAI,mBAAwC;IAC5C,MAAM,EAAE,OAAO,CAAC,yBAAyB,CAAC;gBAE9B,MAAM,GAAE,OAAO,CAAC,yBAA8B;IAM1D,OAAO,IAAI,OAAO,CAAC,UAAU;IAM7B,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,GAAG,kBAAkB;CAQjE;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const api_1 = require("../api/api");
|
|
7
|
-
const node_1 = __importDefault(require("../node"));
|
|
8
|
-
class OpticalStimulation extends node_1.default {
|
|
9
|
-
constructor(config = {}) {
|
|
10
|
-
super();
|
|
11
|
-
this.type = api_1.synapse.NodeType.kOpticalStimulation;
|
|
12
|
-
this.config = config;
|
|
13
|
-
}
|
|
14
|
-
toProto() {
|
|
15
|
-
return super.toProto({
|
|
16
|
-
opticalStimulation: this.config,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
static fromProto(proto) {
|
|
20
|
-
const { opticalStimulation } = proto;
|
|
21
|
-
if (!opticalStimulation) {
|
|
22
|
-
throw new Error("Invalid config, missing opticalStimulation");
|
|
23
|
-
}
|
|
24
|
-
return new OpticalStimulation(proto.opticalStimulation);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = OpticalStimulation;
|
|
28
|
-
//# sourceMappingURL=optical_stimulation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"optical_stimulation.js","sourceRoot":"","sources":["../../src/nodes/optical_stimulation.ts"],"names":[],"mappings":";;;;;AAAA,oCAAqC;AACrC,mDAA2B;AAE3B,MAAM,kBAAmB,SAAQ,cAAI;IAInC,YAAY,SAA4C,EAAE;QACxD,KAAK,EAAE,CAAC;QAJV,SAAI,GAAG,aAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;QAM1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,OAAO;QACL,OAAO,KAAK,CAAC,OAAO,CAAC;YACnB,kBAAkB,EAAE,IAAI,CAAC,MAAM;SAChC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAA0B;QACzC,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;QACrC,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;QAChE,CAAC;QAED,OAAO,IAAI,kBAAkB,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAC1D,CAAC;CACF;AAED,kBAAe,kBAAkB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { synapse } from "../api/api";
|
|
2
|
-
import Node from "../node";
|
|
3
|
-
declare class SpectralFilter extends Node {
|
|
4
|
-
type: synapse.NodeType;
|
|
5
|
-
config: synapse.ISpectralFilterConfig;
|
|
6
|
-
constructor(config?: synapse.ISpectralFilterConfig);
|
|
7
|
-
toProto(): synapse.NodeConfig;
|
|
8
|
-
static fromProto(proto: synapse.INodeConfig): SpectralFilter;
|
|
9
|
-
}
|
|
10
|
-
export default SpectralFilter;
|
|
11
|
-
//# sourceMappingURL=spectral_filter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spectral_filter.d.ts","sourceRoot":"","sources":["../../src/nodes/spectral_filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,cAAM,cAAe,SAAQ,IAAI;IAC/B,IAAI,mBAAoC;IACxC,MAAM,EAAE,OAAO,CAAC,qBAAqB,CAAC;gBAE1B,MAAM,GAAE,OAAO,CAAC,qBAA0B;IAMtD,OAAO,IAAI,OAAO,CAAC,UAAU;IAM7B,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,GAAG,cAAc;CAQ7D;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const api_1 = require("../api/api");
|
|
7
|
-
const node_1 = __importDefault(require("../node"));
|
|
8
|
-
class SpectralFilter extends node_1.default {
|
|
9
|
-
constructor(config = {}) {
|
|
10
|
-
super();
|
|
11
|
-
this.type = api_1.synapse.NodeType.kSpectralFilter;
|
|
12
|
-
this.config = config;
|
|
13
|
-
}
|
|
14
|
-
toProto() {
|
|
15
|
-
return super.toProto({
|
|
16
|
-
spectralFilter: this.config,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
static fromProto(proto) {
|
|
20
|
-
const { spectralFilter } = proto;
|
|
21
|
-
if (!spectralFilter) {
|
|
22
|
-
throw new Error("Invalid config, missing spectralFilter");
|
|
23
|
-
}
|
|
24
|
-
return new SpectralFilter(proto.spectralFilter);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = SpectralFilter;
|
|
28
|
-
//# sourceMappingURL=spectral_filter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spectral_filter.js","sourceRoot":"","sources":["../../src/nodes/spectral_filter.ts"],"names":[],"mappings":";;;;;AAAA,oCAAqC;AACrC,mDAA2B;AAE3B,MAAM,cAAe,SAAQ,cAAI;IAI/B,YAAY,SAAwC,EAAE;QACpD,KAAK,EAAE,CAAC;QAJV,SAAI,GAAG,aAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;QAMtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,OAAO;QACL,OAAO,KAAK,CAAC,OAAO,CAAC;YACnB,cAAc,EAAE,IAAI,CAAC,MAAM;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAA0B;QACzC,MAAM,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;QACjC,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;QAC5D,CAAC;QAED,OAAO,IAAI,cAAc,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAClD,CAAC;CACF;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { synapse } from "../api/api";
|
|
2
|
-
import Node from "../node";
|
|
3
|
-
declare class SpikeDetect extends Node {
|
|
4
|
-
type: synapse.NodeType;
|
|
5
|
-
config: synapse.ISpikeDetectConfig;
|
|
6
|
-
constructor(config?: synapse.ISpikeDetectConfig);
|
|
7
|
-
toProto(): synapse.NodeConfig;
|
|
8
|
-
static fromProto(proto: synapse.INodeConfig): SpikeDetect;
|
|
9
|
-
}
|
|
10
|
-
export default SpikeDetect;
|
|
11
|
-
//# sourceMappingURL=spike_detect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spike_detect.d.ts","sourceRoot":"","sources":["../../src/nodes/spike_detect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,cAAM,WAAY,SAAQ,IAAI;IAC5B,IAAI,mBAAiC;IACrC,MAAM,EAAE,OAAO,CAAC,kBAAkB,CAAC;gBAEvB,MAAM,GAAE,OAAO,CAAC,kBAAuB;IAMnD,OAAO,IAAI,OAAO,CAAC,UAAU;IAM7B,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,GAAG,WAAW;CAQ1D;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const api_1 = require("../api/api");
|
|
7
|
-
const node_1 = __importDefault(require("../node"));
|
|
8
|
-
class SpikeDetect extends node_1.default {
|
|
9
|
-
constructor(config = {}) {
|
|
10
|
-
super();
|
|
11
|
-
this.type = api_1.synapse.NodeType.kSpikeDetect;
|
|
12
|
-
this.config = config;
|
|
13
|
-
}
|
|
14
|
-
toProto() {
|
|
15
|
-
return super.toProto({
|
|
16
|
-
spikeDetect: this.config,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
static fromProto(proto) {
|
|
20
|
-
const { spikeDetect } = proto;
|
|
21
|
-
if (!spikeDetect) {
|
|
22
|
-
throw new Error("Invalid config, missing spikeDetect");
|
|
23
|
-
}
|
|
24
|
-
return new SpikeDetect(proto.spikeDetect);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = SpikeDetect;
|
|
28
|
-
//# sourceMappingURL=spike_detect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spike_detect.js","sourceRoot":"","sources":["../../src/nodes/spike_detect.ts"],"names":[],"mappings":";;;;;AAAA,oCAAqC;AACrC,mDAA2B;AAE3B,MAAM,WAAY,SAAQ,cAAI;IAI5B,YAAY,SAAqC,EAAE;QACjD,KAAK,EAAE,CAAC;QAJV,SAAI,GAAG,aAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;QAMnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,OAAO;QACL,OAAO,KAAK,CAAC,OAAO,CAAC;YACnB,WAAW,EAAE,IAAI,CAAC,MAAM;SACzB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAA0B;QACzC,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;QAC9B,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;QACzD,CAAC;QAED,OAAO,IAAI,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAC5C,CAAC;CACF;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { synapse } from "../api/api";
|
|
2
|
-
import Node from "../node";
|
|
3
|
-
declare class SpikeSource extends Node {
|
|
4
|
-
type: synapse.NodeType;
|
|
5
|
-
config: synapse.ISpikeSourceConfig;
|
|
6
|
-
constructor(config?: synapse.ISpikeSourceConfig);
|
|
7
|
-
toProto(): synapse.NodeConfig;
|
|
8
|
-
static fromProto(proto: synapse.NodeConfig): SpikeSource;
|
|
9
|
-
}
|
|
10
|
-
export default SpikeSource;
|
|
11
|
-
//# sourceMappingURL=spike_source.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spike_source.d.ts","sourceRoot":"","sources":["../../src/nodes/spike_source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,cAAM,WAAY,SAAQ,IAAI;IAC5B,IAAI,mBAAiC;IACrC,MAAM,EAAE,OAAO,CAAC,kBAAkB,CAAC;gBAEvB,MAAM,GAAE,OAAO,CAAC,kBAAuB;IAMnD,OAAO,IAAI,OAAO,CAAC,UAAU;IAM7B,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,GAAG,WAAW;CAQzD;AAED,eAAe,WAAW,CAAC"}
|