motion-master-client 0.0.430 → 0.0.431
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/package.json +1 -1
- package/src/api.js +241 -206
- package/src/api.js.map +1 -1
- package/src/lib/device.d.ts +7 -0
- package/src/lib/device.js.map +1 -1
- package/src/lib/motion-master-req-res-client.d.ts +23 -1
- package/src/lib/motion-master-req-res-client.js +40 -2
- package/src/lib/motion-master-req-res-client.js.map +1 -1
- package/src/lib/motion-master.proto.d.ts +164 -2
- package/src/lib/motion-master.proto.js +1672 -4
- package/src/lib/request-status-resolver.js +13 -0
- package/src/lib/request-status-resolver.js.map +1 -1
- package/src/lib/types.d.ts +4 -0
- package/src/lib/types.js.map +1 -1
|
@@ -82,6 +82,8 @@ export namespace motionmaster {
|
|
|
82
82
|
getDeviceSii?: (motionmaster.MotionMasterMessage.Request.IGetDeviceSii|null);
|
|
83
83
|
discoverEthernetDevices?: (motionmaster.MotionMasterMessage.Request.IDiscoverEthernetDevices|null);
|
|
84
84
|
stopEthernetDiscovery?: (motionmaster.MotionMasterMessage.Request.IStopEthernetDiscovery|null);
|
|
85
|
+
startDeviceLocate?: (motionmaster.MotionMasterMessage.Request.IStartDeviceLocate|null);
|
|
86
|
+
stopDeviceLocate?: (motionmaster.MotionMasterMessage.Request.IStopDeviceLocate|null);
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
class Request implements IRequest {
|
|
@@ -140,7 +142,9 @@ export namespace motionmaster {
|
|
|
140
142
|
public getDeviceSii?: (motionmaster.MotionMasterMessage.Request.IGetDeviceSii|null);
|
|
141
143
|
public discoverEthernetDevices?: (motionmaster.MotionMasterMessage.Request.IDiscoverEthernetDevices|null);
|
|
142
144
|
public stopEthernetDiscovery?: (motionmaster.MotionMasterMessage.Request.IStopEthernetDiscovery|null);
|
|
143
|
-
public
|
|
145
|
+
public startDeviceLocate?: (motionmaster.MotionMasterMessage.Request.IStartDeviceLocate|null);
|
|
146
|
+
public stopDeviceLocate?: (motionmaster.MotionMasterMessage.Request.IStopDeviceLocate|null);
|
|
147
|
+
public type?: ("pingSystem"|"getSystemVersion"|"getDeviceInfo"|"getDeviceParameterInfo"|"getDeviceParameterValues"|"getMultiDeviceParameterValues"|"setDeviceParameterValues"|"setMultiDeviceParameterValues"|"getDeviceFileList"|"getDeviceFile"|"setDeviceFile"|"deleteDeviceFile"|"resetDeviceFault"|"stopDevice"|"startDeviceFirmwareInstallation"|"getDeviceLog"|"startCoggingTorqueRecording"|"getCoggingTorqueData"|"startOffsetDetection"|"startPlantIdentification"|"computeAutoTuningGains"|"setMotionControllerParameters"|"enableMotionController"|"disableMotionController"|"setSignalGeneratorParameters"|"startSignalGenerator"|"stopSignalGenerator"|"startMonitoringDeviceParameterValues"|"stopMonitoringDeviceParameterValues"|"getEthercatNetworkState"|"setEthercatNetworkState"|"startNarrowAngleCalibration"|"setSystemClientTimeout"|"startSystemIdentification"|"getCirculoEncoderMagnetDistance"|"startCirculoEncoderNarrowAngleCalibrationProcedure"|"getDeviceCia402State"|"setDeviceCia402State"|"getSystemLog"|"startDeviceSiiRestore"|"startOpenLoopFieldControl"|"computeFullAutoTuningGains"|"startFullAutoTuning"|"stopFullAutoTuning"|"startCirculoEncoderConfiguration"|"stopCirculoEncoderNarrowAngleCalibrationProcedure"|"startOsCommand"|"executeForwardCall"|"getSystemInformation"|"setPdoMode"|"getDeviceSii"|"discoverEthernetDevices"|"stopEthernetDiscovery"|"startDeviceLocate"|"stopDeviceLocate");
|
|
144
148
|
public static create(properties?: motionmaster.MotionMasterMessage.IRequest): motionmaster.MotionMasterMessage.Request;
|
|
145
149
|
public static encode(message: motionmaster.MotionMasterMessage.IRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
146
150
|
public static encodeDelimited(message: motionmaster.MotionMasterMessage.IRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
@@ -1964,6 +1968,46 @@ export namespace motionmaster {
|
|
|
1964
1968
|
public toJSON(): { [k: string]: any };
|
|
1965
1969
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1966
1970
|
}
|
|
1971
|
+
|
|
1972
|
+
interface IStartDeviceLocate {
|
|
1973
|
+
deviceAddress?: (number|null);
|
|
1974
|
+
durationMs?: (number|null);
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
class StartDeviceLocate implements IStartDeviceLocate {
|
|
1978
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Request.IStartDeviceLocate);
|
|
1979
|
+
public deviceAddress: number;
|
|
1980
|
+
public durationMs: number;
|
|
1981
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Request.IStartDeviceLocate): motionmaster.MotionMasterMessage.Request.StartDeviceLocate;
|
|
1982
|
+
public static encode(message: motionmaster.MotionMasterMessage.Request.IStartDeviceLocate, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1983
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Request.IStartDeviceLocate, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1984
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Request.StartDeviceLocate;
|
|
1985
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Request.StartDeviceLocate;
|
|
1986
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1987
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Request.StartDeviceLocate;
|
|
1988
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Request.StartDeviceLocate, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1989
|
+
public toJSON(): { [k: string]: any };
|
|
1990
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
interface IStopDeviceLocate {
|
|
1994
|
+
deviceAddress?: (number|null);
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
class StopDeviceLocate implements IStopDeviceLocate {
|
|
1998
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Request.IStopDeviceLocate);
|
|
1999
|
+
public deviceAddress: number;
|
|
2000
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Request.IStopDeviceLocate): motionmaster.MotionMasterMessage.Request.StopDeviceLocate;
|
|
2001
|
+
public static encode(message: motionmaster.MotionMasterMessage.Request.IStopDeviceLocate, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2002
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Request.IStopDeviceLocate, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2003
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Request.StopDeviceLocate;
|
|
2004
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Request.StopDeviceLocate;
|
|
2005
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2006
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Request.StopDeviceLocate;
|
|
2007
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Request.StopDeviceLocate, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2008
|
+
public toJSON(): { [k: string]: any };
|
|
2009
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2010
|
+
}
|
|
1967
2011
|
}
|
|
1968
2012
|
|
|
1969
2013
|
interface IStatus {
|
|
@@ -2007,6 +2051,8 @@ export namespace motionmaster {
|
|
|
2007
2051
|
deviceSii?: (motionmaster.MotionMasterMessage.Status.IDeviceSii|null);
|
|
2008
2052
|
ethernetDiscovery?: (motionmaster.MotionMasterMessage.Status.IEthernetDiscovery|null);
|
|
2009
2053
|
ethernetDiscoveryStop?: (motionmaster.MotionMasterMessage.Status.IEthernetDiscoveryStop|null);
|
|
2054
|
+
deviceLocate?: (motionmaster.MotionMasterMessage.Status.IDeviceLocate|null);
|
|
2055
|
+
deviceLocateStop?: (motionmaster.MotionMasterMessage.Status.IDeviceLocateStop|null);
|
|
2010
2056
|
}
|
|
2011
2057
|
|
|
2012
2058
|
class Status implements IStatus {
|
|
@@ -2051,7 +2097,9 @@ export namespace motionmaster {
|
|
|
2051
2097
|
public deviceSii?: (motionmaster.MotionMasterMessage.Status.IDeviceSii|null);
|
|
2052
2098
|
public ethernetDiscovery?: (motionmaster.MotionMasterMessage.Status.IEthernetDiscovery|null);
|
|
2053
2099
|
public ethernetDiscoveryStop?: (motionmaster.MotionMasterMessage.Status.IEthernetDiscoveryStop|null);
|
|
2054
|
-
public
|
|
2100
|
+
public deviceLocate?: (motionmaster.MotionMasterMessage.Status.IDeviceLocate|null);
|
|
2101
|
+
public deviceLocateStop?: (motionmaster.MotionMasterMessage.Status.IDeviceLocateStop|null);
|
|
2102
|
+
public type?: ("systemPong"|"systemVersion"|"systemEvent"|"deviceInfo"|"deviceParameterInfo"|"deviceParameterValues"|"multiDeviceParameterValues"|"deviceFileList"|"deviceFile"|"deviceEvent"|"deviceFirmwareInstallation"|"deviceLog"|"deviceFaultReset"|"coggingTorqueRecording"|"coggingTorqueData"|"offsetDetection"|"plantIdentification"|"autoTuning"|"motionController"|"signalGenerator"|"monitoringParameterValues"|"deviceStop"|"ethercatNetworkState"|"narrowAngleCalibration"|"systemIdentification"|"circuloEncoderMagnetDistance"|"circuloEncoderNarrowAngleCalibrationProcedure"|"deviceCia402State"|"systemLog"|"deviceSiiRestore"|"openLoopFieldControl"|"fullAutoTuning"|"circuloEncoderConfiguration"|"osCommand"|"forwardCall"|"systemInformation"|"pdoMode"|"deviceSii"|"ethernetDiscovery"|"ethernetDiscoveryStop"|"deviceLocate"|"deviceLocateStop");
|
|
2055
2103
|
public static create(properties?: motionmaster.MotionMasterMessage.IStatus): motionmaster.MotionMasterMessage.Status;
|
|
2056
2104
|
public static encode(message: motionmaster.MotionMasterMessage.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2057
2105
|
public static encodeDelimited(message: motionmaster.MotionMasterMessage.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
@@ -2291,6 +2339,7 @@ export namespace motionmaster {
|
|
|
2291
2339
|
type?: (motionmaster.MotionMasterMessage.Status.DeviceInfo.Device.Type|null);
|
|
2292
2340
|
position?: (number|null);
|
|
2293
2341
|
alias?: (number|null);
|
|
2342
|
+
ipAddress?: (string|null);
|
|
2294
2343
|
}
|
|
2295
2344
|
|
|
2296
2345
|
class Device implements IDevice {
|
|
@@ -2299,6 +2348,7 @@ export namespace motionmaster {
|
|
|
2299
2348
|
public type: motionmaster.MotionMasterMessage.Status.DeviceInfo.Device.Type;
|
|
2300
2349
|
public position: number;
|
|
2301
2350
|
public alias: number;
|
|
2351
|
+
public ipAddress: string;
|
|
2302
2352
|
public static create(properties?: motionmaster.MotionMasterMessage.Status.DeviceInfo.IDevice): motionmaster.MotionMasterMessage.Status.DeviceInfo.Device;
|
|
2303
2353
|
public static encode(message: motionmaster.MotionMasterMessage.Status.DeviceInfo.IDevice, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2304
2354
|
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Status.DeviceInfo.IDevice, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
@@ -5745,6 +5795,118 @@ export namespace motionmaster {
|
|
|
5745
5795
|
public toJSON(): { [k: string]: any };
|
|
5746
5796
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5747
5797
|
}
|
|
5798
|
+
|
|
5799
|
+
interface IDeviceLocate {
|
|
5800
|
+
deviceAddress?: (number|null);
|
|
5801
|
+
success?: (motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess|null);
|
|
5802
|
+
error?: (motionmaster.MotionMasterMessage.Status.DeviceLocate.IError|null);
|
|
5803
|
+
}
|
|
5804
|
+
|
|
5805
|
+
class DeviceLocate implements IDeviceLocate {
|
|
5806
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Status.IDeviceLocate);
|
|
5807
|
+
public deviceAddress: number;
|
|
5808
|
+
public success?: (motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess|null);
|
|
5809
|
+
public error?: (motionmaster.MotionMasterMessage.Status.DeviceLocate.IError|null);
|
|
5810
|
+
public status?: ("success"|"error");
|
|
5811
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Status.IDeviceLocate): motionmaster.MotionMasterMessage.Status.DeviceLocate;
|
|
5812
|
+
public static encode(message: motionmaster.MotionMasterMessage.Status.IDeviceLocate, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5813
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Status.IDeviceLocate, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5814
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Status.DeviceLocate;
|
|
5815
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Status.DeviceLocate;
|
|
5816
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5817
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Status.DeviceLocate;
|
|
5818
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Status.DeviceLocate, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5819
|
+
public toJSON(): { [k: string]: any };
|
|
5820
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5821
|
+
}
|
|
5822
|
+
|
|
5823
|
+
namespace DeviceLocate {
|
|
5824
|
+
|
|
5825
|
+
interface ISuccess {
|
|
5826
|
+
code?: (motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.Code|null);
|
|
5827
|
+
message?: (string|null);
|
|
5828
|
+
}
|
|
5829
|
+
|
|
5830
|
+
class Success implements ISuccess {
|
|
5831
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess);
|
|
5832
|
+
public code: motionmaster.MotionMasterMessage.Status.DeviceLocate.Success.Code;
|
|
5833
|
+
public message: string;
|
|
5834
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess): motionmaster.MotionMasterMessage.Status.DeviceLocate.Success;
|
|
5835
|
+
public static encode(message: motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5836
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Status.DeviceLocate.ISuccess, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5837
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Status.DeviceLocate.Success;
|
|
5838
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Status.DeviceLocate.Success;
|
|
5839
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5840
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Status.DeviceLocate.Success;
|
|
5841
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Status.DeviceLocate.Success, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5842
|
+
public toJSON(): { [k: string]: any };
|
|
5843
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5844
|
+
}
|
|
5845
|
+
|
|
5846
|
+
namespace Success {
|
|
5847
|
+
|
|
5848
|
+
enum Code {
|
|
5849
|
+
UNSPECIFIED = 0,
|
|
5850
|
+
STARTED = 1,
|
|
5851
|
+
DONE = 2,
|
|
5852
|
+
STOPPED = 3
|
|
5853
|
+
}
|
|
5854
|
+
}
|
|
5855
|
+
|
|
5856
|
+
interface IError {
|
|
5857
|
+
code?: (motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.Code|null);
|
|
5858
|
+
message?: (string|null);
|
|
5859
|
+
}
|
|
5860
|
+
|
|
5861
|
+
class Error implements IError {
|
|
5862
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Status.DeviceLocate.IError);
|
|
5863
|
+
public code: motionmaster.MotionMasterMessage.Status.DeviceLocate.Error.Code;
|
|
5864
|
+
public message: string;
|
|
5865
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Status.DeviceLocate.IError): motionmaster.MotionMasterMessage.Status.DeviceLocate.Error;
|
|
5866
|
+
public static encode(message: motionmaster.MotionMasterMessage.Status.DeviceLocate.IError, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5867
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Status.DeviceLocate.IError, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5868
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Status.DeviceLocate.Error;
|
|
5869
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Status.DeviceLocate.Error;
|
|
5870
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5871
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Status.DeviceLocate.Error;
|
|
5872
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Status.DeviceLocate.Error, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5873
|
+
public toJSON(): { [k: string]: any };
|
|
5874
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5875
|
+
}
|
|
5876
|
+
|
|
5877
|
+
namespace Error {
|
|
5878
|
+
|
|
5879
|
+
enum Code {
|
|
5880
|
+
UNSPECIFIED = 0,
|
|
5881
|
+
NOT_SUPPORTED = 1,
|
|
5882
|
+
INVALID_DURATION = 2,
|
|
5883
|
+
ALREADY_RUNNING = 3,
|
|
5884
|
+
START_FAILED = 4,
|
|
5885
|
+
STOP_FAILED = 5
|
|
5886
|
+
}
|
|
5887
|
+
}
|
|
5888
|
+
}
|
|
5889
|
+
|
|
5890
|
+
interface IDeviceLocateStop {
|
|
5891
|
+
deviceAddress?: (number|null);
|
|
5892
|
+
stopped?: (boolean|null);
|
|
5893
|
+
}
|
|
5894
|
+
|
|
5895
|
+
class DeviceLocateStop implements IDeviceLocateStop {
|
|
5896
|
+
constructor(properties?: motionmaster.MotionMasterMessage.Status.IDeviceLocateStop);
|
|
5897
|
+
public deviceAddress: number;
|
|
5898
|
+
public stopped: boolean;
|
|
5899
|
+
public static create(properties?: motionmaster.MotionMasterMessage.Status.IDeviceLocateStop): motionmaster.MotionMasterMessage.Status.DeviceLocateStop;
|
|
5900
|
+
public static encode(message: motionmaster.MotionMasterMessage.Status.IDeviceLocateStop, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5901
|
+
public static encodeDelimited(message: motionmaster.MotionMasterMessage.Status.IDeviceLocateStop, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5902
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): motionmaster.MotionMasterMessage.Status.DeviceLocateStop;
|
|
5903
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): motionmaster.MotionMasterMessage.Status.DeviceLocateStop;
|
|
5904
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5905
|
+
public static fromObject(object: { [k: string]: any }): motionmaster.MotionMasterMessage.Status.DeviceLocateStop;
|
|
5906
|
+
public static toObject(message: motionmaster.MotionMasterMessage.Status.DeviceLocateStop, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5907
|
+
public toJSON(): { [k: string]: any };
|
|
5908
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5909
|
+
}
|
|
5748
5910
|
}
|
|
5749
5911
|
}
|
|
5750
5912
|
}
|