@aptpod/iscp-ts
Version:
iSCP 2.0 client library for TypeScript
170 lines • 5.19 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LOG_LEVEL = exports.UpstreamState = exports.DownstreamState = exports.UpstreamReplyCall = exports.UpstreamCall = exports.DownstreamReplyCall = exports.DownstreamCall = exports.DownstreamMetadata = exports.DownstreamChunk = exports.UpstreamChunkAck = exports.UpstreamChunkResult = exports.UpstreamChunk = exports.DataPointGroup = void 0;
/**
* データID付きのデータポイントのリストを表します。
* @category Data ID and Data Point
*/
class DataPointGroup {
constructor(init) {
this.dataId = init.dataId;
this.dataPoints = init.dataPoints;
}
}
exports.DataPointGroup = DataPointGroup;
/**
* アップストリームチャンクを表します。
* @category Upstream
*/
class UpstreamChunk {
constructor(init) {
this.sequenceNumber = init.sequenceNumber;
this.dataPointGroups = init.dataPointGroups;
}
}
exports.UpstreamChunk = UpstreamChunk;
/**
* アップストリームチャンクで送信されたデータポイントの処理結果を表します。
* @category Upstream
*/
class UpstreamChunkResult {
constructor(init) {
this.sequenceNumber = init.sequenceNumber;
this.resultCode = init.resultCode;
this.resultString = init.resultString;
}
}
exports.UpstreamChunkResult = UpstreamChunkResult;
/**
* アップストリームチャンクに対する確認応答を表します。
* @category Upstream
*/
class UpstreamChunkAck {
constructor(init) {
this.results = init.results;
}
}
exports.UpstreamChunkAck = UpstreamChunkAck;
/**
* ダウンストリームチャンクを表します。
* @category Downstream
*/
class DownstreamChunk {
constructor(init) {
this.upstreamInfo = init.upstreamInfo;
this.sequenceNumber = init.sequenceNumber;
this.dataPointGroups = init.dataPointGroups;
}
}
exports.DownstreamChunk = DownstreamChunk;
/**
* ダウンストリームメタデータを表します。
* @category Metadata
*/
class DownstreamMetadata {
constructor(init) {
this.sourceNodeId = init.sourceNodeId;
this.metadata = init.metadata;
}
}
exports.DownstreamMetadata = DownstreamMetadata;
/**
* ダウンストリームコールを表します。
* @category E2E Call
*/
class DownstreamCall {
constructor(init) {
this.callId = init.callId;
this.sourceNodeId = init.sourceNodeId;
this.name = init.name;
this.type = init.type;
this.payload = init.payload;
}
}
exports.DownstreamCall = DownstreamCall;
/**
* ダウンストリームリプライコールを表します。
* @category E2E Call
*/
class DownstreamReplyCall {
constructor(init) {
this.requestCalId = init.requestCalId;
this.sourceNodeId = init.sourceNodeId;
this.name = init.name;
this.type = init.type;
this.payload = init.payload;
}
}
exports.DownstreamReplyCall = DownstreamReplyCall;
/**
* アップストリームコールを表します。
* @category E2E Call
*/
class UpstreamCall {
constructor(init) {
this.destinationNodeId = init.destinationNodeId;
this.name = init.name;
this.type = init.type;
this.payload = init.payload;
}
}
exports.UpstreamCall = UpstreamCall;
/**
* アップストリームリプライコールを表します。
* @category E2E Call
*/
class UpstreamReplyCall {
constructor(init) {
this.requestCallId = init.requestCallId;
this.destinationNodeId = init.destinationNodeId;
this.name = init.name;
this.type = init.type;
this.payload = init.payload;
}
}
exports.UpstreamReplyCall = UpstreamReplyCall;
/**
* ダウンストリームの状態を表します。
* @category Downstream
*/
class DownstreamState {
constructor(init) {
this.dataIdAliases = init.dataIdAliases;
this.upstreamInfos = init.upstreamInfos;
this.lastIssuedDataIdAlias = init.lastIssuedDataIdAlias;
this.lastIssuedUpstreamInfoAlias = init.lastIssuedUpstreamInfoAlias;
this.lastIssuedAckId = init.lastIssuedAckId;
}
}
exports.DownstreamState = DownstreamState;
/**
* アップストリームの状態を表します。
* @category Upstream
*/
class UpstreamState {
constructor(init) {
this.dataIdAliases = init.dataIdAliases;
this.totalDataPoints = init.totalDataPoints;
this.lastIssuedSequenceNumber = init.lastIssuedSequenceNumber;
this.dataPointsBuffer = init.dataPointsBuffer;
}
}
exports.UpstreamState = UpstreamState;
/**
* ログの出力レベルです。
* @category Enum
* @enum
*/
exports.LOG_LEVEL = {
/** ログを出力しません。 */
NONE: 'none',
/** 動作状況に関する詳細な情報を出力します。 */
DEBUG: 'debug',
/** 実行時の何らかの注目すべき事象を出力します。 */
INFO: 'info',
/** エラーではない例外的な事象を出力します。 */
WARNING: 'warning',
/** エラーを出力します。 */
ERROR: 'error',
};
//# sourceMappingURL=model.js.map