@zaber/motion 6.2.1 → 6.3.0
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/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/lib/ascii/trigger.d.ts +11 -0
- package/dist/lib/ascii/trigger.d.ts.map +1 -1
- package/dist/lib/ascii/trigger.js +35 -0
- package/dist/lib/ascii/trigger.js.map +1 -1
- package/dist/lib/ascii/triggers.d.ts +5 -0
- package/dist/lib/ascii/triggers.d.ts.map +1 -1
- package/dist/lib/ascii/triggers.js +16 -0
- package/dist/lib/ascii/triggers.js.map +1 -1
- package/dist/lib/library.js +1 -1
- package/dist/lib/library.js.map +1 -1
- package/dist/lib/requests/index.d.ts +1 -0
- package/dist/lib/requests/index.d.ts.map +1 -1
- package/dist/lib/requests/index.js +1 -0
- package/dist/lib/requests/index.js.map +1 -1
- package/dist/lib/requests/trigger_set_label_request.d.ts +13 -0
- package/dist/lib/requests/trigger_set_label_request.d.ts.map +1 -0
- package/dist/lib/requests/trigger_set_label_request.js +31 -0
- package/dist/lib/requests/trigger_set_label_request.js.map +1 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -141,5 +141,16 @@ export declare class Trigger {
|
|
|
141
141
|
* The default option is to clear all actions.
|
|
142
142
|
*/
|
|
143
143
|
clearAction(action?: TriggerAction): Promise<void>;
|
|
144
|
+
/**
|
|
145
|
+
* Returns the label for the trigger.
|
|
146
|
+
* @returns The label for the trigger.
|
|
147
|
+
*/
|
|
148
|
+
getLabel(): Promise<string>;
|
|
149
|
+
/**
|
|
150
|
+
* Sets the label for the trigger.
|
|
151
|
+
* @param label The label to set for this trigger.
|
|
152
|
+
* If no value or an empty string is provided, this label is deleted.
|
|
153
|
+
*/
|
|
154
|
+
setLabel(label?: string): Promise<void>;
|
|
144
155
|
}
|
|
145
156
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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rB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC;IAiBhB;;;;;;;;;OASG;IACU,SAAS,CACpB,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,KAAoB,GACzB,OAAO,CAAC,IAAI,CAAC;IAoBhB;;;;;;;;;;;;OAYG;IACU,kBAAkB,CAC7B,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,gBAAgB,EAC3B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC;IAoBhB;;;;OAIG;IACU,WAAW,CACtB,MAAM,GAAE,aAAiC,GACxC,OAAO,CAAC,IAAI,CAAC;IAehB;;;OAGG;IACU,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;IAkBxC;;;;OAIG;IACU,QAAQ,CACnB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;CAcjB"}
|
|
@@ -394,6 +394,41 @@ class Trigger {
|
|
|
394
394
|
};
|
|
395
395
|
await gateway.callAsync('trigger/clear_action', request);
|
|
396
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
* Returns the label for the trigger.
|
|
399
|
+
* @returns The label for the trigger.
|
|
400
|
+
*/
|
|
401
|
+
async getLabel() {
|
|
402
|
+
const request = {
|
|
403
|
+
...requests.TriggerEmptyRequest.DEFAULT,
|
|
404
|
+
interfaceId: this.device.connection.interfaceId,
|
|
405
|
+
device: this.device.deviceAddress,
|
|
406
|
+
triggerNumber: this.triggerNumber,
|
|
407
|
+
toBinary() {
|
|
408
|
+
return requests.TriggerEmptyRequest.toBinary(this);
|
|
409
|
+
},
|
|
410
|
+
};
|
|
411
|
+
const response = await gateway.callAsync('trigger/get_label', request, requests.StringResponse.fromBinary);
|
|
412
|
+
return response.value;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Sets the label for the trigger.
|
|
416
|
+
* @param label The label to set for this trigger.
|
|
417
|
+
* If no value or an empty string is provided, this label is deleted.
|
|
418
|
+
*/
|
|
419
|
+
async setLabel(label) {
|
|
420
|
+
const request = {
|
|
421
|
+
...requests.TriggerSetLabelRequest.DEFAULT,
|
|
422
|
+
interfaceId: this.device.connection.interfaceId,
|
|
423
|
+
device: this.device.deviceAddress,
|
|
424
|
+
triggerNumber: this.triggerNumber,
|
|
425
|
+
label: label,
|
|
426
|
+
toBinary() {
|
|
427
|
+
return requests.TriggerSetLabelRequest.toBinary(this);
|
|
428
|
+
},
|
|
429
|
+
};
|
|
430
|
+
await gateway.callAsync('trigger/set_label', request);
|
|
431
|
+
}
|
|
397
432
|
}
|
|
398
433
|
exports.Trigger = Trigger;
|
|
399
434
|
//# sourceMappingURL=trigger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../src/ascii/trigger.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AACtC,sDAAwC;AACxC,oCAA8D;AAE9D,mDAA+C;AAC/C,mEAA8D;AAG9D,qDAAiD;AAGjD;;;;;GAKG;AACH,MAAa,OAAO;IAClB;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;OAEG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAGD,YAAY,MAAc,EAAE,aAAqB;QAC/C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACtC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CACjB,QAA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AAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,MAAM,EAAE,MAAM;YACd,QAAQ;gBACN,OAAO,QAAQ,CAAC,yBAAyB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC3D,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF;AAhcD,0BAgcC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Native, Units, Length, Angle, Time } from '../units';\nimport { Device } from './device';\nimport { TriggerState } from './trigger_state';\nimport { TriggerEnabledState } from './trigger_enabled_state';\nimport { IoPortType } from './io_port_type';\nimport { TriggerCondition } from './trigger_condition';\nimport { TriggerAction } from './trigger_action';\nimport { TriggerOperation } from './trigger_operation';\n\n/**\n * A handle for a trigger with this number on the device.\n * Triggers allow setting up actions that occur when a certain condition has been met or an event has occurred.\n * Please note that the Triggers API is currently an experimental feature.\n * Requires at least Firmware 7.06.\n */\nexport class Trigger {\n /**\n * Device that this trigger belongs to.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * Number of this trigger.\n */\n public get triggerNumber(): number {\n return this._triggerNumber;\n }\n private _triggerNumber: number;\n\n constructor(device: Device, triggerNumber: number) {\n this._device = device;\n this._triggerNumber = triggerNumber;\n }\n\n /**\n * Enables the trigger.\n * Once a trigger is enabled, it will fire whenever its condition transitions from false to true.\n * If a trigger condition is true when a disabled trigger is enabled, the trigger will fire immediately.\n * @param [count=0] Number of times the trigger will fire before disabling itself.\n * If count is not specified, or 0, the trigger will fire indefinitely.\n */\n public async enable(\n count: number = 0\n ): Promise<void> {\n if (count < 0) {\n throw new TypeError('Invalid value; count must be 0 or positive.');\n }\n const request: requests.TriggerEnableRequest & gateway.Message = {\n ...requests.TriggerEnableRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n count: count,\n toBinary() {\n return requests.TriggerEnableRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/enable', request);\n }\n\n /**\n * Disables the trigger.\n * Once disabled, the trigger will not fire and trigger actions will not run, even if trigger conditions are met.\n */\n public async disable(): Promise<void> {\n const request: requests.TriggerEmptyRequest & gateway.Message = {\n ...requests.TriggerEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n toBinary() {\n return requests.TriggerEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/disable', request);\n }\n\n /**\n * Gets the state of the trigger.\n * @returns Complete state of the trigger.\n */\n public async getState(): Promise<TriggerState> {\n const request: requests.TriggerEmptyRequest & gateway.Message = {\n ...requests.TriggerEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n toBinary() {\n return requests.TriggerEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<TriggerState>(\n 'trigger/get_state',\n request,\n TriggerState.fromBinary);\n return response;\n }\n\n /**\n * Gets the enabled state of the trigger.\n * @returns Whether the trigger is enabled and the number of times it will fire.\n */\n public async getEnabledState(): Promise<TriggerEnabledState> {\n const request: requests.TriggerEmptyRequest & gateway.Message = {\n ...requests.TriggerEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n toBinary() {\n return requests.TriggerEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<TriggerEnabledState>(\n 'trigger/get_enabled_state',\n request,\n TriggerEnabledState.fromBinary);\n return response;\n }\n\n /**\n * Set a generic trigger condition.\n * @param condition The condition to set for this trigger.\n */\n public async fireWhen(\n condition: string\n ): Promise<void> {\n const request: requests.TriggerFireWhenRequest & gateway.Message = {\n ...requests.TriggerFireWhenRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n condition: condition,\n toBinary() {\n return requests.TriggerFireWhenRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when', request);\n }\n\n /**\n * Set a trigger condition for when an encoder position has changed by a specific distance.\n * @param axis The axis to monitor for this condition.\n * May be set to 0 on single-axis devices only.\n * @param distance The measured encoder distance between trigger fires.\n * @param [unit=Units.NATIVE] Units of dist.\n */\n public async fireWhenEncoderDistanceTravelled(\n axis: number,\n distance: number,\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<void> {\n if (distance <= 0) {\n throw new TypeError('Invalid value; encoder distance must be a positive value.');\n }\n const request: requests.TriggerFireWhenDistanceTravelledRequest & gateway.Message = {\n ...requests.TriggerFireWhenDistanceTravelledRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n axis: axis,\n distance: distance,\n unit: unit,\n toBinary() {\n return requests.TriggerFireWhenDistanceTravelledRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when_encoder_distance_travelled', request);\n }\n\n /**\n * Set a trigger condition for when an axis position has changed by a specific distance.\n * @param axis The axis to monitor for this condition.\n * May be set to 0 on single-axis devices only.\n * @param distance The measured distance between trigger fires.\n * @param [unit=Units.NATIVE] Units of dist.\n */\n public async fireWhenDistanceTravelled(\n axis: number,\n distance: number,\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<void> {\n if (distance <= 0) {\n throw new TypeError('Invalid value; distance must be a positive value.');\n }\n const request: requests.TriggerFireWhenDistanceTravelledRequest & gateway.Message = {\n ...requests.TriggerFireWhenDistanceTravelledRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n axis: axis,\n distance: distance,\n unit: unit,\n toBinary() {\n return requests.TriggerFireWhenDistanceTravelledRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when_distance_travelled', request);\n }\n\n /**\n * Set a trigger condition based on an IO channel value.\n * @param portType The type of IO channel to monitor.\n * @param channel The IO channel to monitor.\n * @param triggerCondition Comparison operator.\n * @param value Comparison value.\n */\n public async fireWhenIo(\n portType: IoPortType,\n channel: number,\n triggerCondition: TriggerCondition,\n value: number\n ): Promise<void> {\n if (channel <= 0) {\n throw new TypeError('Invalid value; channel must be a positive value.');\n }\n const request: requests.TriggerFireWhenIoRequest & gateway.Message = {\n ...requests.TriggerFireWhenIoRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n portType: portType,\n channel: channel,\n triggerCondition: triggerCondition,\n value: value,\n toBinary() {\n return requests.TriggerFireWhenIoRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when_io', request);\n }\n\n /**\n * Set a trigger condition based on a setting value.\n * @param axis The axis to monitor for this condition.\n * Set to 0 for device-scope settings.\n * @param setting The setting to monitor.\n * @param triggerCondition Comparison operator.\n * @param value Comparison value.\n * @param [unit=Units.NATIVE] Units of value.\n */\n public async fireWhenSetting(\n axis: number,\n setting: string,\n triggerCondition: TriggerCondition,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.TriggerFireWhenSettingRequest & gateway.Message = {\n ...requests.TriggerFireWhenSettingRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n axis: axis,\n setting: setting,\n triggerCondition: triggerCondition,\n value: value,\n unit: unit,\n toBinary() {\n return requests.TriggerFireWhenSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when_setting', request);\n }\n\n /**\n * Set a trigger condition based on an absolute setting value.\n * @param axis The axis to monitor for this condition.\n * Set to 0 for device-scope settings.\n * @param setting The setting to monitor.\n * @param triggerCondition Comparison operator.\n * @param value Comparison value.\n * @param [unit=Units.NATIVE] Units of value.\n */\n public async fireWhenAbsoluteSetting(\n axis: number,\n setting: string,\n triggerCondition: TriggerCondition,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.TriggerFireWhenSettingRequest & gateway.Message = {\n ...requests.TriggerFireWhenSettingRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n axis: axis,\n setting: setting,\n triggerCondition: triggerCondition,\n value: value,\n unit: unit,\n toBinary() {\n return requests.TriggerFireWhenSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when_setting_absolute', request);\n }\n\n /**\n * Set a trigger condition based on a time interval.\n * @param interval The time interval between trigger fires.\n * @param [unit=Units.NATIVE] Units of time.\n */\n public async fireAtInterval(\n interval: number,\n unit: Time | Native = Units.NATIVE\n ): Promise<void> {\n if (interval <= 0) {\n throw new TypeError('Invalid value; interval must be a positive value.');\n }\n const request: requests.TriggerFireAtIntervalRequest & gateway.Message = {\n ...requests.TriggerFireAtIntervalRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n interval: interval,\n unit: unit,\n toBinary() {\n return requests.TriggerFireAtIntervalRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_at_interval', request);\n }\n\n /**\n * Set a command to be a trigger action.\n * @param action The action number to assign the command to.\n * @param axis The axis to on which to run this command.\n * Set to 0 for device-scope settings or to run command on all axes.\n * @param command The command to run when the action is triggered.\n */\n public async onFire(\n action: TriggerAction,\n axis: number,\n command: string\n ): Promise<void> {\n const request: requests.TriggerOnFireRequest & gateway.Message = {\n ...requests.TriggerOnFireRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n action: action,\n axis: axis,\n command: command,\n toBinary() {\n return requests.TriggerOnFireRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/on_fire', request);\n }\n\n /**\n * Set a trigger action to update a setting.\n * @param action The action number to assign the command to.\n * @param axis The axis on which to change the setting.\n * Set to 0 to change the setting for the device.\n * @param setting The name of the setting to change.\n * @param operation The operation to apply to the setting.\n * @param value Operation value.\n * @param [unit=Units.NATIVE] Units of value.\n */\n public async onFireSet(\n action: TriggerAction,\n axis: number,\n setting: string,\n operation: TriggerOperation,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.TriggerOnFireSetRequest & gateway.Message = {\n ...requests.TriggerOnFireSetRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n action: action,\n axis: axis,\n setting: setting,\n operation: operation,\n value: value,\n unit: unit,\n toBinary() {\n return requests.TriggerOnFireSetRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/on_fire_set', request);\n }\n\n /**\n * Set a trigger action to update a setting with the value of another setting.\n * @param action The action number to assign the command to.\n * @param axis The axis on which to change the setting.\n * Set to 0 to change the setting for the device.\n * @param setting The name of the setting to change.\n * Must have either integer or boolean type.\n * @param operation The operation to apply to the setting.\n * @param fromAxis The axis from which to read the setting.\n * Set to 0 to read the setting from the device.\n * @param fromSetting The name of the setting to read.\n * Must have either integer or boolean type.\n */\n public async onFireSetToSetting(\n action: TriggerAction,\n axis: number,\n setting: string,\n operation: TriggerOperation,\n fromAxis: number,\n fromSetting: string\n ): Promise<void> {\n const request: requests.TriggerOnFireSetToSettingRequest & gateway.Message = {\n ...requests.TriggerOnFireSetToSettingRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n action: action,\n axis: axis,\n setting: setting,\n operation: operation,\n fromAxis: fromAxis,\n fromSetting: fromSetting,\n toBinary() {\n return requests.TriggerOnFireSetToSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/on_fire_set_to_setting', request);\n }\n\n /**\n * Clear a trigger action.\n * @param [action=TriggerAction.ALL] The action number to clear.\n * The default option is to clear all actions.\n */\n public async clearAction(\n action: TriggerAction = TriggerAction.ALL\n ): Promise<void> {\n const request: requests.TriggerClearActionRequest & gateway.Message = {\n ...requests.TriggerClearActionRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n action: action,\n toBinary() {\n return requests.TriggerClearActionRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/clear_action', request);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../src/ascii/trigger.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AACtC,sDAAwC;AACxC,oCAA8D;AAE9D,mDAA+C;AAC/C,mEAA8D;AAG9D,qDAAiD;AAGjD;;;;;GAKG;AACH,MAAa,OAAO;IAClB;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;OAEG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAGD,YAAY,MAAc,EAAE,aAAqB;QAC/C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACtC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CACjB,QAAgB,CAAC;QAEjB,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACd,MAAM,IAAI,SAAS,CAAC,6CAA6C,CAAC,CAAC;QACrE,CAAC;QACD,MAAM,OAAO,GAAoD;YAC/D,GAAG,QAAQ,CAAC,oBAAoB,CAAC,OAAO;YACxC,W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port * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Native, Units, Length, Angle, Time } from '../units';\nimport { Device } from './device';\nimport { TriggerState } from './trigger_state';\nimport { TriggerEnabledState } from './trigger_enabled_state';\nimport { IoPortType } from './io_port_type';\nimport { TriggerCondition } from './trigger_condition';\nimport { TriggerAction } from './trigger_action';\nimport { TriggerOperation } from './trigger_operation';\n\n/**\n * A handle for a trigger with this number on the device.\n * Triggers allow setting up actions that occur when a certain condition has been met or an event has occurred.\n * Please note that the Triggers API is currently an experimental feature.\n * Requires at least Firmware 7.06.\n */\nexport class Trigger {\n /**\n * Device that this trigger belongs to.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * Number of this trigger.\n */\n public get triggerNumber(): number {\n return this._triggerNumber;\n }\n private _triggerNumber: number;\n\n constructor(device: Device, triggerNumber: number) {\n this._device = device;\n this._triggerNumber = triggerNumber;\n }\n\n /**\n * Enables the trigger.\n * Once a trigger is enabled, it will fire whenever its condition transitions from false to true.\n * If a trigger condition is true when a disabled trigger is enabled, the trigger will fire immediately.\n * @param [count=0] Number of times the trigger will fire before disabling itself.\n * If count is not specified, or 0, the trigger will fire indefinitely.\n */\n public async enable(\n count: number = 0\n ): Promise<void> {\n if (count < 0) {\n throw new TypeError('Invalid value; count must be 0 or positive.');\n }\n const request: requests.TriggerEnableRequest & gateway.Message = {\n ...requests.TriggerEnableRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n count: count,\n toBinary() {\n return requests.TriggerEnableRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/enable', request);\n }\n\n /**\n * Disables the trigger.\n * Once disabled, the trigger will not fire and trigger actions will not run, even if trigger conditions are met.\n */\n public async disable(): Promise<void> {\n const request: requests.TriggerEmptyRequest & gateway.Message = {\n ...requests.TriggerEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n toBinary() {\n return requests.TriggerEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/disable', request);\n }\n\n /**\n * Gets the state of the trigger.\n * @returns Complete state of the trigger.\n */\n public async getState(): Promise<TriggerState> {\n const request: requests.TriggerEmptyRequest & gateway.Message = {\n ...requests.TriggerEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n toBinary() {\n return requests.TriggerEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<TriggerState>(\n 'trigger/get_state',\n request,\n TriggerState.fromBinary);\n return response;\n }\n\n /**\n * Gets the enabled state of the trigger.\n * @returns Whether the trigger is enabled and the number of times it will fire.\n */\n public async getEnabledState(): Promise<TriggerEnabledState> {\n const request: requests.TriggerEmptyRequest & gateway.Message = {\n ...requests.TriggerEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n toBinary() {\n return requests.TriggerEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<TriggerEnabledState>(\n 'trigger/get_enabled_state',\n request,\n TriggerEnabledState.fromBinary);\n return response;\n }\n\n /**\n * Set a generic trigger condition.\n * @param condition The condition to set for this trigger.\n */\n public async fireWhen(\n condition: string\n ): Promise<void> {\n const request: requests.TriggerFireWhenRequest & gateway.Message = {\n ...requests.TriggerFireWhenRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n condition: condition,\n toBinary() {\n return requests.TriggerFireWhenRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when', request);\n }\n\n /**\n * Set a trigger condition for when an encoder position has changed by a specific distance.\n * @param axis The axis to monitor for this condition.\n * May be set to 0 on single-axis devices only.\n * @param distance The measured encoder distance between trigger fires.\n * @param [unit=Units.NATIVE] Units of dist.\n */\n public async fireWhenEncoderDistanceTravelled(\n axis: number,\n distance: number,\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<void> {\n if (distance <= 0) {\n throw new TypeError('Invalid value; encoder distance must be a positive value.');\n }\n const request: requests.TriggerFireWhenDistanceTravelledRequest & gateway.Message = {\n ...requests.TriggerFireWhenDistanceTravelledRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n axis: axis,\n distance: distance,\n unit: unit,\n toBinary() {\n return requests.TriggerFireWhenDistanceTravelledRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when_encoder_distance_travelled', request);\n }\n\n /**\n * Set a trigger condition for when an axis position has changed by a specific distance.\n * @param axis The axis to monitor for this condition.\n * May be set to 0 on single-axis devices only.\n * @param distance The measured distance between trigger fires.\n * @param [unit=Units.NATIVE] Units of dist.\n */\n public async fireWhenDistanceTravelled(\n axis: number,\n distance: number,\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<void> {\n if (distance <= 0) {\n throw new TypeError('Invalid value; distance must be a positive value.');\n }\n const request: requests.TriggerFireWhenDistanceTravelledRequest & gateway.Message = {\n ...requests.TriggerFireWhenDistanceTravelledRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n axis: axis,\n distance: distance,\n unit: unit,\n toBinary() {\n return requests.TriggerFireWhenDistanceTravelledRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when_distance_travelled', request);\n }\n\n /**\n * Set a trigger condition based on an IO channel value.\n * @param portType The type of IO channel to monitor.\n * @param channel The IO channel to monitor.\n * @param triggerCondition Comparison operator.\n * @param value Comparison value.\n */\n public async fireWhenIo(\n portType: IoPortType,\n channel: number,\n triggerCondition: TriggerCondition,\n value: number\n ): Promise<void> {\n if (channel <= 0) {\n throw new TypeError('Invalid value; channel must be a positive value.');\n }\n const request: requests.TriggerFireWhenIoRequest & gateway.Message = {\n ...requests.TriggerFireWhenIoRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n portType: portType,\n channel: channel,\n triggerCondition: triggerCondition,\n value: value,\n toBinary() {\n return requests.TriggerFireWhenIoRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when_io', request);\n }\n\n /**\n * Set a trigger condition based on a setting value.\n * @param axis The axis to monitor for this condition.\n * Set to 0 for device-scope settings.\n * @param setting The setting to monitor.\n * @param triggerCondition Comparison operator.\n * @param value Comparison value.\n * @param [unit=Units.NATIVE] Units of value.\n */\n public async fireWhenSetting(\n axis: number,\n setting: string,\n triggerCondition: TriggerCondition,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.TriggerFireWhenSettingRequest & gateway.Message = {\n ...requests.TriggerFireWhenSettingRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n axis: axis,\n setting: setting,\n triggerCondition: triggerCondition,\n value: value,\n unit: unit,\n toBinary() {\n return requests.TriggerFireWhenSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when_setting', request);\n }\n\n /**\n * Set a trigger condition based on an absolute setting value.\n * @param axis The axis to monitor for this condition.\n * Set to 0 for device-scope settings.\n * @param setting The setting to monitor.\n * @param triggerCondition Comparison operator.\n * @param value Comparison value.\n * @param [unit=Units.NATIVE] Units of value.\n */\n public async fireWhenAbsoluteSetting(\n axis: number,\n setting: string,\n triggerCondition: TriggerCondition,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.TriggerFireWhenSettingRequest & gateway.Message = {\n ...requests.TriggerFireWhenSettingRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n axis: axis,\n setting: setting,\n triggerCondition: triggerCondition,\n value: value,\n unit: unit,\n toBinary() {\n return requests.TriggerFireWhenSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_when_setting_absolute', request);\n }\n\n /**\n * Set a trigger condition based on a time interval.\n * @param interval The time interval between trigger fires.\n * @param [unit=Units.NATIVE] Units of time.\n */\n public async fireAtInterval(\n interval: number,\n unit: Time | Native = Units.NATIVE\n ): Promise<void> {\n if (interval <= 0) {\n throw new TypeError('Invalid value; interval must be a positive value.');\n }\n const request: requests.TriggerFireAtIntervalRequest & gateway.Message = {\n ...requests.TriggerFireAtIntervalRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n interval: interval,\n unit: unit,\n toBinary() {\n return requests.TriggerFireAtIntervalRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/fire_at_interval', request);\n }\n\n /**\n * Set a command to be a trigger action.\n * @param action The action number to assign the command to.\n * @param axis The axis to on which to run this command.\n * Set to 0 for device-scope settings or to run command on all axes.\n * @param command The command to run when the action is triggered.\n */\n public async onFire(\n action: TriggerAction,\n axis: number,\n command: string\n ): Promise<void> {\n const request: requests.TriggerOnFireRequest & gateway.Message = {\n ...requests.TriggerOnFireRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n action: action,\n axis: axis,\n command: command,\n toBinary() {\n return requests.TriggerOnFireRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/on_fire', request);\n }\n\n /**\n * Set a trigger action to update a setting.\n * @param action The action number to assign the command to.\n * @param axis The axis on which to change the setting.\n * Set to 0 to change the setting for the device.\n * @param setting The name of the setting to change.\n * @param operation The operation to apply to the setting.\n * @param value Operation value.\n * @param [unit=Units.NATIVE] Units of value.\n */\n public async onFireSet(\n action: TriggerAction,\n axis: number,\n setting: string,\n operation: TriggerOperation,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.TriggerOnFireSetRequest & gateway.Message = {\n ...requests.TriggerOnFireSetRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n action: action,\n axis: axis,\n setting: setting,\n operation: operation,\n value: value,\n unit: unit,\n toBinary() {\n return requests.TriggerOnFireSetRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/on_fire_set', request);\n }\n\n /**\n * Set a trigger action to update a setting with the value of another setting.\n * @param action The action number to assign the command to.\n * @param axis The axis on which to change the setting.\n * Set to 0 to change the setting for the device.\n * @param setting The name of the setting to change.\n * Must have either integer or boolean type.\n * @param operation The operation to apply to the setting.\n * @param fromAxis The axis from which to read the setting.\n * Set to 0 to read the setting from the device.\n * @param fromSetting The name of the setting to read.\n * Must have either integer or boolean type.\n */\n public async onFireSetToSetting(\n action: TriggerAction,\n axis: number,\n setting: string,\n operation: TriggerOperation,\n fromAxis: number,\n fromSetting: string\n ): Promise<void> {\n const request: requests.TriggerOnFireSetToSettingRequest & gateway.Message = {\n ...requests.TriggerOnFireSetToSettingRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n action: action,\n axis: axis,\n setting: setting,\n operation: operation,\n fromAxis: fromAxis,\n fromSetting: fromSetting,\n toBinary() {\n return requests.TriggerOnFireSetToSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/on_fire_set_to_setting', request);\n }\n\n /**\n * Clear a trigger action.\n * @param [action=TriggerAction.ALL] The action number to clear.\n * The default option is to clear all actions.\n */\n public async clearAction(\n action: TriggerAction = TriggerAction.ALL\n ): Promise<void> {\n const request: requests.TriggerClearActionRequest & gateway.Message = {\n ...requests.TriggerClearActionRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n action: action,\n toBinary() {\n return requests.TriggerClearActionRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/clear_action', request);\n }\n\n /**\n * Returns the label for the trigger.\n * @returns The label for the trigger.\n */\n public async getLabel(): Promise<string> {\n const request: requests.TriggerEmptyRequest & gateway.Message = {\n ...requests.TriggerEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n toBinary() {\n return requests.TriggerEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringResponse>(\n 'trigger/get_label',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets the label for the trigger.\n * @param label The label to set for this trigger.\n * If no value or an empty string is provided, this label is deleted.\n */\n public async setLabel(\n label?: string\n ): Promise<void> {\n const request: requests.TriggerSetLabelRequest & gateway.Message = {\n ...requests.TriggerSetLabelRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n triggerNumber: this.triggerNumber,\n label: label,\n toBinary() {\n return requests.TriggerSetLabelRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('trigger/set_label', request);\n }\n}\n"]}
|
|
@@ -40,5 +40,10 @@ export declare class Triggers {
|
|
|
40
40
|
* @returns Whether triggers are enabled and the number of times they will fire.
|
|
41
41
|
*/
|
|
42
42
|
getEnabledStates(): Promise<TriggerEnabledState[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the labels for every trigger for this device.
|
|
45
|
+
* @returns The labels for every trigger for this device. If a trigger has no label, the value will be an empty string.
|
|
46
|
+
*/
|
|
47
|
+
getAllLabels(): Promise<string[]>;
|
|
43
48
|
}
|
|
44
49
|
//# sourceMappingURL=triggers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/ascii/triggers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC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;IAiBxD;;;OAGG;IACU,gBAAgB,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAiB/D;;;OAGG;IACU,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CAgB/C"}
|
|
@@ -121,6 +121,22 @@ class Triggers {
|
|
|
121
121
|
const response = await gateway.callAsync('triggers/get_enabled_states', request, requests.TriggerEnabledStates.fromBinary);
|
|
122
122
|
return response.states;
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Gets the labels for every trigger for this device.
|
|
126
|
+
* @returns The labels for every trigger for this device. If a trigger has no label, the value will be an empty string.
|
|
127
|
+
*/
|
|
128
|
+
async getAllLabels() {
|
|
129
|
+
const request = {
|
|
130
|
+
...requests.DeviceEmptyRequest.DEFAULT,
|
|
131
|
+
interfaceId: this.device.connection.interfaceId,
|
|
132
|
+
device: this.device.deviceAddress,
|
|
133
|
+
toBinary() {
|
|
134
|
+
return requests.DeviceEmptyRequest.toBinary(this);
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
const response = await gateway.callAsync('triggers/get_all_labels', request, requests.StringArrayResponse.fromBinary);
|
|
138
|
+
return response.values;
|
|
139
|
+
}
|
|
124
140
|
}
|
|
125
141
|
exports.Triggers = Triggers;
|
|
126
142
|
//# sourceMappingURL=triggers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../../src/ascii/triggers.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AACtC,sDAAwC;AACxC,uCAAoC;AAIpC;;;;GAIG;AACH,MAAa,QAAQ;IACnB;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,KAAK,C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zB,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,YAAY;QACvB,MAAM,OAAO,GAAkD;YAC7D,GAAG,QAAQ,CAAC,kBAAkB,CAAC,OAAO;YACtC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,QAAQ;gBACN,OAAO,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACpD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,yBAAyB,EACzB,OAAO,EACP,QAAQ,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO,QAAQ,CAAC,MAAM,CAAC;IACzB,CAAC;CACF;AArID,4BAqIC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Trigger } from './trigger';\nimport { TriggerState } from './trigger_state';\nimport { TriggerEnabledState } from './trigger_enabled_state';\n\n/**\n * Class providing access to device triggers.\n * Please note that the Triggers API is currently an experimental feature.\n * Requires at least Firmware 7.06.\n */\nexport class Triggers {\n /**\n * Device that these triggers belong to.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n constructor(device: Device) {\n this._device = device;\n }\n\n /**\n * Get the number of triggers for this device.\n * @returns Number of triggers for this device.\n */\n public async getNumberOfTriggers(): Promise<number> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n setting: 'trigger.numtriggers',\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'triggers/get_setting',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Get the number of actions for each trigger for this device.\n * @returns Number of actions for each trigger for this device.\n */\n public async getNumberOfActions(): Promise<number> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n setting: 'trigger.numactions',\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.IntResponse>(\n 'triggers/get_setting',\n request,\n requests.IntResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Get a specific trigger for this device.\n * @param triggerNumber The number of the trigger to control. Trigger numbers start at 1.\n * @returns Trigger instance.\n */\n public getTrigger(\n triggerNumber: number\n ): Trigger {\n if (triggerNumber <= 0) {\n throw new TypeError('Invalid value; triggers are numbered from 1.');\n }\n return new Trigger(this.device, triggerNumber);\n }\n\n /**\n * Get the state for every trigger for this device.\n * @returns Complete state for every trigger.\n */\n public async getTriggerStates(): Promise<TriggerState[]> {\n const request: requests.DeviceEmptyRequest & gateway.Message = {\n ...requests.DeviceEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n toBinary() {\n return requests.DeviceEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.TriggerStates>(\n 'triggers/get_trigger_states',\n request,\n requests.TriggerStates.fromBinary);\n return response.states;\n }\n\n /**\n * Gets the enabled state for every trigger for this device.\n * @returns Whether triggers are enabled and the number of times they will fire.\n */\n public async getEnabledStates(): Promise<TriggerEnabledState[]> {\n const request: requests.DeviceEmptyRequest & gateway.Message = {\n ...requests.DeviceEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n toBinary() {\n return requests.DeviceEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.TriggerEnabledStates>(\n 'triggers/get_enabled_states',\n request,\n requests.TriggerEnabledStates.fromBinary);\n return response.states;\n }\n\n /**\n * Gets the labels for every trigger for this device.\n * @returns The labels for every trigger for this device. If a trigger has no label, the value will be an empty string.\n */\n public async getAllLabels(): Promise<string[]> {\n const request: requests.DeviceEmptyRequest & gateway.Message = {\n ...requests.DeviceEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n toBinary() {\n return requests.DeviceEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringArrayResponse>(\n 'triggers/get_all_labels',\n request,\n requests.StringArrayResponse.fromBinary);\n return response.values;\n }\n}\n"]}
|
package/dist/lib/library.js
CHANGED
package/dist/lib/library.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.js","sourceRoot":"","sources":["../../src/library.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AACrC,qDAAuC;AAIvC,MAAa,OAAO;IAClB;;;;OAIG;IACI,MAAM,CAAC,YAAY,CACxB,IAAmB,EACnB,QAAiB;QAEjB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,QAAQ;YAClB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,iBAAiB,CAC7B,UAA8B,EAC9B,aAAsB;QAEtB,MAAM,OAAO,GAAwD;YACnE,GAAG,QAAQ,CAAC,wBAAwB,CAAC,OAAO;YAC5C,UAAU,EAAE,UAAU;YACtB,aAAa,EAAE,aAAa;YAC5B,QAAQ;gBACN,OAAO,QAAQ,CAAC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AC,UAAU,CAAC,OAAO;YAC9B,KAAK,EAAE,MAAM;YACb,QAAQ;gBACN,OAAO,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC5C,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,YAAY;QACxB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,OAAO;YAChB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF;AAtID,0BAsIC;AAED,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport * as requests from './requests';\nimport { LogOutputMode } from './log_output_mode';\nimport { DeviceDbSourceType } from './device_db_source_type';\n\nexport class Library {\n /**\n * Sets library logging output.\n * @param mode Logging output mode.\n * @param filePath Path of the file to open.\n */\n public static setLogOutput(\n mode: LogOutputMode,\n filePath?: string\n ): void {\n const request: requests.SetLogOutputRequest & gateway.Message = {\n ...requests.SetLogOutputRequest.DEFAULT,\n mode: mode,\n filePath: filePath,\n toBinary() {\n return requests.SetLogOutputRequest.toBinary(this);\n },\n };\n\n gateway.callSync('logging/set_output', request);\n }\n\n /**\n * Sets source of Device DB data. Allows selection of a web service or a local file.\n * @param sourceType Source type.\n * @param urlOrFilePath URL of the web service or path to the local file.\n * Leave empty for the default URL of Zaber web service.\n */\n public static setDeviceDbSource(\n sourceType: DeviceDbSourceType,\n urlOrFilePath?: string\n ): void {\n const request: requests.SetDeviceDbSourceRequest & gateway.Message = {\n ...requests.SetDeviceDbSourceRequest.DEFAULT,\n sourceType: sourceType,\n urlOrFilePath: urlOrFilePath,\n toBinary() {\n return requests.SetDeviceDbSourceRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_source', request);\n }\n\n /**\n * Enables Device DB store.\n * The store uses filesystem to save information obtained from the Device DB.\n * The stored data are later used instead of the Device DB.\n * @param storeLocation Specifies relative or absolute path of the folder used by the store.\n * If left empty defaults to a folder in user home directory.\n * Must be accessible by the process.\n */\n public static enableDeviceDbStore(\n storeLocation?: string\n ): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toggleOn: true,\n storeLocation: storeLocation,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables Device DB store.\n */\n public static disableDeviceDbStore(): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables certain customer checks (like FF flag).\n * @param mode Whether to turn internal mode on or off.\n */\n public static setInternalMode(\n mode: boolean\n ): void {\n const request: requests.SetInternalModeRequest & gateway.Message = {\n ...requests.SetInternalModeRequest.DEFAULT,\n mode: mode,\n toBinary() {\n return requests.SetInternalModeRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_internal_mode', request);\n }\n\n /**\n * Sets the period between polling for IDLE during movements.\n * Caution: Setting the period too low may cause performance issues.\n * @param period Period in milliseconds.\n * Negative value restores the default period.\n */\n public static setIdlePollingPeriod(\n period: number\n ): void {\n const request: requests.IntRequest & gateway.Message = {\n ...requests.IntRequest.DEFAULT,\n value: period,\n toBinary() {\n return requests.IntRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_idle_polling_period', request);\n }\n\n /**\n * Throws an error if the version of the loaded shared library does not match the caller's version.\n */\n public static checkVersion(): void {\n const request: requests.CheckVersionRequest & gateway.Message = {\n ...requests.CheckVersionRequest.DEFAULT,\n host: 'js',\n version: '6.
|
|
1
|
+
{"version":3,"file":"library.js","sourceRoot":"","sources":["../../src/library.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AACrC,qDAAuC;AAIvC,MAAa,OAAO;IAClB;;;;OAIG;IACI,MAAM,CAAC,YAAY,CACxB,IAAmB,EACnB,QAAiB;QAEjB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,QAAQ;YAClB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,iBAAiB,CAC7B,UAA8B,EAC9B,aAAsB;QAEtB,MAAM,OAAO,GAAwD;YACnE,GAAG,QAAQ,CAAC,wBAAwB,CAAC,OAAO;YAC5C,UAAU,EAAE,UAAU;YACtB,aAAa,EAAE,aAAa;YAC5B,QAAQ;gBACN,OAAO,QAAQ,CAAC,wBAAwB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1D,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,mBAAmB,CAC/B,aAAsB;QAEtB,MAAM,OAAO,GAA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;IAED;;OAEG;IACI,MAAM,CAAC,YAAY;QACxB,MAAM,OAAO,GAAmD;YAC9D,GAAG,QAAQ,CAAC,mBAAmB,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,OAAO;YAChB,QAAQ;gBACN,OAAO,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;SACF,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF;AAtID,0BAsIC;AAED,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport * as requests from './requests';\nimport { LogOutputMode } from './log_output_mode';\nimport { DeviceDbSourceType } from './device_db_source_type';\n\nexport class Library {\n /**\n * Sets library logging output.\n * @param mode Logging output mode.\n * @param filePath Path of the file to open.\n */\n public static setLogOutput(\n mode: LogOutputMode,\n filePath?: string\n ): void {\n const request: requests.SetLogOutputRequest & gateway.Message = {\n ...requests.SetLogOutputRequest.DEFAULT,\n mode: mode,\n filePath: filePath,\n toBinary() {\n return requests.SetLogOutputRequest.toBinary(this);\n },\n };\n\n gateway.callSync('logging/set_output', request);\n }\n\n /**\n * Sets source of Device DB data. Allows selection of a web service or a local file.\n * @param sourceType Source type.\n * @param urlOrFilePath URL of the web service or path to the local file.\n * Leave empty for the default URL of Zaber web service.\n */\n public static setDeviceDbSource(\n sourceType: DeviceDbSourceType,\n urlOrFilePath?: string\n ): void {\n const request: requests.SetDeviceDbSourceRequest & gateway.Message = {\n ...requests.SetDeviceDbSourceRequest.DEFAULT,\n sourceType: sourceType,\n urlOrFilePath: urlOrFilePath,\n toBinary() {\n return requests.SetDeviceDbSourceRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/set_source', request);\n }\n\n /**\n * Enables Device DB store.\n * The store uses filesystem to save information obtained from the Device DB.\n * The stored data are later used instead of the Device DB.\n * @param storeLocation Specifies relative or absolute path of the folder used by the store.\n * If left empty defaults to a folder in user home directory.\n * Must be accessible by the process.\n */\n public static enableDeviceDbStore(\n storeLocation?: string\n ): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toggleOn: true,\n storeLocation: storeLocation,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables Device DB store.\n */\n public static disableDeviceDbStore(): void {\n const request: requests.ToggleDeviceDbStoreRequest & gateway.Message = {\n ...requests.ToggleDeviceDbStoreRequest.DEFAULT,\n toBinary() {\n return requests.ToggleDeviceDbStoreRequest.toBinary(this);\n },\n };\n\n gateway.callSync('device_db/toggle_store', request);\n }\n\n /**\n * Disables certain customer checks (like FF flag).\n * @param mode Whether to turn internal mode on or off.\n */\n public static setInternalMode(\n mode: boolean\n ): void {\n const request: requests.SetInternalModeRequest & gateway.Message = {\n ...requests.SetInternalModeRequest.DEFAULT,\n mode: mode,\n toBinary() {\n return requests.SetInternalModeRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_internal_mode', request);\n }\n\n /**\n * Sets the period between polling for IDLE during movements.\n * Caution: Setting the period too low may cause performance issues.\n * @param period Period in milliseconds.\n * Negative value restores the default period.\n */\n public static setIdlePollingPeriod(\n period: number\n ): void {\n const request: requests.IntRequest & gateway.Message = {\n ...requests.IntRequest.DEFAULT,\n value: period,\n toBinary() {\n return requests.IntRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/set_idle_polling_period', request);\n }\n\n /**\n * Throws an error if the version of the loaded shared library does not match the caller's version.\n */\n public static checkVersion(): void {\n const request: requests.CheckVersionRequest & gateway.Message = {\n ...requests.CheckVersionRequest.DEFAULT,\n host: 'js',\n version: '6.3.0',\n toBinary() {\n return requests.CheckVersionRequest.toBinary(this);\n },\n };\n\n gateway.callSync('library/check_version', request);\n }\n}\n\ngateway.addInitCallback(Library.checkVersion);\n"]}
|
|
@@ -205,6 +205,7 @@ export * from './trigger_fire_when_setting_request';
|
|
|
205
205
|
export * from './trigger_on_fire_request';
|
|
206
206
|
export * from './trigger_on_fire_set_request';
|
|
207
207
|
export * from './trigger_on_fire_set_to_setting_request';
|
|
208
|
+
export * from './trigger_set_label_request';
|
|
208
209
|
export * from './trigger_states';
|
|
209
210
|
export * from './unit_get_enum_request';
|
|
210
211
|
export * from './unit_get_enum_response';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/requests/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,8CAA8C,CAAC;A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7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC"}
|
|
@@ -222,6 +222,7 @@ __exportStar(require("./trigger_fire_when_setting_request"), exports);
|
|
|
222
222
|
__exportStar(require("./trigger_on_fire_request"), exports);
|
|
223
223
|
__exportStar(require("./trigger_on_fire_set_request"), exports);
|
|
224
224
|
__exportStar(require("./trigger_on_fire_set_to_setting_request"), exports);
|
|
225
|
+
__exportStar(require("./trigger_set_label_request"), exports);
|
|
225
226
|
__exportStar(require("./trigger_states"), exports);
|
|
226
227
|
__exportStar(require("./unit_get_enum_request"), exports);
|
|
227
228
|
__exportStar(require("./unit_get_enum_response"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,wDAAsC;AACtC,uDAAqC;AACrC,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,mDAAiC;AACjC,2DAAyC;AACzC,iEAA+C;AAC/C,kEAAgD;AAChD,sEAAoD;AACpD,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,+DAA6C;AAC7C,sEAAoD;AACpD,8DAA4C;AAC5C,oEAAkD;AAClD,kDAAgC;AAChC,gEAA8C;AAC9C,0DAAwC;AACxC,+CAA6B;AAC7B,0DAAwC;AACxC,0DAAwC;AACxC,mEAAiD;AACjD,mEAAiD;AACjD,kEAAgD;AAChD,mEAAiD;AACjD,+EAA6D;AAC7D,0EAAwD;AACxD,mEAAiD;AACjD,0DAAwC;AACxC,2DAAyC;AACzC,yDAAuC;AACvC,qEAAmD;AACnD,sEAAoD;AACpD,sEAAoD;AACpD,uEAAqD;AACrD,iEAA+C;AAC/C,kEAAgD;AAChD,+DAA6C;AAC7C,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,wDAAsC;AACtC,4DAA0C;AAC1C,wDAAsC;AACtC,qEAAmD;AACnD,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,0EAAwD;AACxD,mFAAiE;AACjE,2EAAyD;AACzD,oFAAkE;AAClE,qEAAmD;AACnD,8EAA4D;AAC5D,sEAAoD;AACpD,+EAA6D;AAC7D,+DAA6C;AAC7C,mEAAiD;AACjD,oEAAk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oD;AACpD,uEAAqD;AACrD,uDAAqC;AACrC,wDAAsC;AACtC,0DAAwC;AACxC,yDAAuC;AACvC,yEAAuD;AACvD,mEAAiD;AACjD,6DAA2C;AAC3C,oFAAkE;AAClE,iEAA+C;AAC/C,mFAAiE;AACjE,wDAAsC;AACtC,yDAAuC;AACvC,wDAAsC;AACtC,0EAAwD;AACxD,2EAAyD;AACzD,qEAAmD;AACnD,sEAAoD;AACpD,oFAAkE;AAClE,iEAA+C;AAC/C,mFAAiE;AACjE,wEAAsD;AACtD,8DAA4C;AAC5C,8EAA4D;AAC5D,yEAAuD;AACvD,+DAA6C;AAC7C,qEAAmD;AACnD,sEAAoD;AACpD,wDAAsC;AACtC,mEAAiD;AACjD,0DAAwC;AACxC,oDAAkC;AAClC,+CAA6B;AAC7B,iDAA+B;AAC/B,kDAAgC;AAChC,uDAAqC;AACrC,mEAAiD;AACjD,qEAAmD;AACnD,0EAAwD;AACxD,mEAAiD;AACjD,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,kEAAgD;AAChD,8DAA4C;AAC5C,uEAAqD;AACrD,yEAAuD;AACvD,yEAAuD;AACvD,8EAA4D;AAC5D,yEAAuD;AACvD,iEAA+C;AAC/C,iEAA+C;AAC/C,0DAAwC;AACxC,2DAAyC;AACzC,2DAAyC;AACzC,qEAAmD;AACnD,iFAA+D;AAC/D,iEAA+C;AAC/C,8DAA4C;AAC5C,sEAAoD;AACpD,4DAA0C;AAC1C,gEAA8C;AAC9C,2EAAyD;AACzD,mDAAiC;AACjC,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,0EAAwD;AACxD,mEAAiD;AACjD,mEAAiD;AACjD,4DAA0C","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './alert_event_wrapper';\nexport * from './axes_empty_request';\nexport * from './axes_get_setting_request';\nexport * from './axes_move_request';\nexport * from './axis_empty_request';\nexport * from './axis_move_type';\nexport * from './axis_to_string_request';\nexport * from './binary_device_detect_request';\nexport * from './binary_device_detect_response';\nexport * from './binary_device_get_setting_request';\nexport * from './binary_device_home_request';\nexport * from './binary_device_move_request';\nexport * from './binary_device_set_setting_request';\nexport * from './binary_device_stop_request';\nexport * from './binary_generic_with_units_request';\nexport * from './binary_message_collection';\nexport * from './binary_reply_only_event_wrapper';\nexport * from './bool_response';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_request';\nexport * from './channel_on';\nexport * from './channel_set_intensity';\nexport * from './check_version_request';\nexport * from './custom_interface_close_request';\nexport * from './custom_interface_open_response';\nexport * from './custom_interface_read_request';\nexport * from './custom_interface_write_request';\nexport * from './device_cancel_all_outputs_schedule_request';\nexport * from './device_cancel_output_schedule_request';\nexport * from './device_convert_setting_request';\nexport * from './device_detect_request';\nexport * from './device_detect_response';\nexport * from './device_empty_request';\nexport * from './device_get_all_analog_io_request';\nexport * from './device_get_all_analog_io_response';\nexport * from './device_get_all_digital_io_request';\nexport * from './device_get_all_digital_io_response';\nexport * from './device_get_analog_io_request';\nexport * from './device_get_digital_io_request';\nexport * from './device_get_setting_request';\nexport * from './device_get_storage_request';\nexport * from './device_get_warnings_request';\nexport * from './device_get_warnings_response';\nexport * from './device_home_request';\nexport * from './device_identify_request';\nexport * from './device_move_request';\nexport * from './device_multi_get_setting_request';\nexport * from './device_on_all_request';\nexport * from './device_on_all_response';\nexport * from './device_renumber_request';\nexport * from './device_set_all_analog_outputs_request';\nexport * from './device_set_all_analog_outputs_schedule_request';\nexport * from './device_set_all_digital_outputs_request';\nexport * from './device_set_all_digital_outputs_schedule_request';\nexport * from './device_set_analog_output_request';\nexport * from './device_set_analog_output_schedule_request';\nexport * from './device_set_digital_output_request';\nexport * from './device_set_digital_output_schedule_request';\nexport * from './device_set_setting_request';\nexport * from './device_set_setting_str_request';\nexport * from './device_set_storage_bool_request';\nexport * from './device_set_storage_number_request';\nexport * from './device_set_storage_request';\nexport * from './device_set_unit_conversions_request';\nexport * from './device_stop_request';\nexport * from './device_storage_list_keys_request';\nexport * from './device_storage_request';\nexport * from './device_type';\nexport * from './device_wait_until_idle_request';\nexport * from './disconnected_event';\nexport * from './double_array_response';\nexport * from './double_response';\nexport * from './empty_request';\nexport * from './errors';\nexport * from './find_device_request';\nexport * from './find_device_response';\nexport * from './forget_devices_request';\nexport * from './gateway_event';\nexport * from './gateway_request';\nexport * from './gateway_response';\nexport * from './generic_binary_request';\nexport * from './generic_command_request';\nexport * from './generic_command_response_collection';\nexport * from './get_all_io_port_labels_response';\nexport * from './get_axis_setting_results';\nexport * from './get_io_port_label_request';\nexport * from './get_setting_results';\nexport * from './get_simple_tuning_param_definition_response';\nexport * from './int_array_response';\nexport * from './int_request';\nexport * from './int_response';\nexport * from './interface_empty_request';\nexport * from './interface_type';\nexport * from './load_paramset';\nexport * from './lockstep_disable_request';\nexport * from './lockstep_empty_request';\nexport * from './lockstep_enable_request';\nexport * from './lockstep_get_axis_numbers_response';\nexport * from './lockstep_get_request';\nexport * from './lockstep_home_request';\nexport * from './lockstep_move_request';\nexport * from './lockstep_set_request';\nexport * from './lockstep_stop_request';\nexport * from './lockstep_wait_until_idle_request';\nexport * from './microscope_config_response';\nexport * from './microscope_empty_request';\nexport * from './microscope_init_request';\nexport * from './objective_changer_change_request';\nexport * from './objective_changer_create_response';\nexport * from './objective_changer_get_current_response';\nexport * from './objective_changer_request';\nexport * from './objective_changer_set_request';\nexport * from './open_binary_interface_request';\nexport * from './open_interface_request';\nexport * from './open_interface_response';\nexport * from './oscilloscope_add_io_channel_request';\nexport * from './oscilloscope_add_setting_channel_request';\nexport * from './oscilloscope_data_get_request';\nexport * from './oscilloscope_data_get_sample_time_request';\nexport * from './oscilloscope_data_get_samples_response';\nexport * from './oscilloscope_data_identifier';\nexport * from './oscilloscope_read_response';\nexport * from './oscilloscope_request';\nexport * from './oscilloscope_start_request';\nexport * from './prepare_command_request';\nexport * from './process_on';\nexport * from './pvt_point_request';\nexport * from './response_type';\nexport * from './servo_tuning_paramset_response';\nexport * from './servo_tuning_request';\nexport * from './set_device_db_source_request';\nexport * from './set_interface_checksum_enabled_request';\nexport * from './set_interface_timeout_request';\nexport * from './set_internal_mode_request';\nexport * from './set_io_port_label_request';\nexport * from './set_log_output_request';\nexport * from './set_process_controller_source';\nexport * from './set_servo_tuning_pid_request';\nexport * from './set_servo_tuning_request';\nexport * from './set_simple_tuning';\nexport * from './set_state_request';\nexport * from './stream_arc_request';\nexport * from './stream_buffer_erase_request';\nexport * from './stream_buffer_get_content_request';\nexport * from './stream_buffer_get_content_response';\nexport * from './stream_buffer_list';\nexport * from './stream_call_request';\nexport * from './stream_circle_request';\nexport * from './stream_empty_request';\nexport * from './stream_generic_command_batch_request';\nexport * from './stream_generic_command_request';\nexport * from './stream_get_axes_response';\nexport * from './stream_get_max_centripetal_acceleration_request';\nexport * from './stream_get_max_speed_request';\nexport * from './stream_get_max_tangential_acceleration_request';\nexport * from './stream_line_request';\nexport * from './stream_mode_response';\nexport * from './stream_segment_type';\nexport * from './stream_set_all_analog_outputs_request';\nexport * from './stream_set_all_digital_outputs_request';\nexport * from './stream_set_analog_output_request';\nexport * from './stream_set_digital_output_request';\nexport * from './stream_set_max_centripetal_acceleration_request';\nexport * from './stream_set_max_speed_request';\nexport * from './stream_set_max_tangential_acceleration_request';\nexport * from './stream_setup_live_composite_request';\nexport * from './stream_setup_live_request';\nexport * from './stream_setup_store_arbitrary_axes_request';\nexport * from './stream_setup_store_composite_request';\nexport * from './stream_setup_store_request';\nexport * from './stream_wait_analog_input_request';\nexport * from './stream_wait_digital_input_request';\nexport * from './stream_wait_request';\nexport * from './stream_wait_until_idle_request';\nexport * from './string_array_response';\nexport * from './string_response';\nexport * from './test_event';\nexport * from './test_request';\nexport * from './test_response';\nexport * from './test_response_long';\nexport * from './toggle_device_db_store_request';\nexport * from './tools_list_serial_ports_response';\nexport * from './translator_create_from_device_request';\nexport * from './translator_create_live_request';\nexport * from './translator_create_request';\nexport * from './translator_create_response';\nexport * from './translator_empty_request';\nexport * from './translator_flush_live_request';\nexport * from './translator_flush_response';\nexport * from './translator_get_axis_offset_request';\nexport * from './translator_get_axis_position_request';\nexport * from './translator_set_axis_position_request';\nexport * from './translator_set_feed_rate_override_request';\nexport * from './translator_set_traverse_rate_request';\nexport * from './translator_translate_request';\nexport * from './trigger_clear_action_request';\nexport * from './trigger_empty_request';\nexport * from './trigger_enable_request';\nexport * from './trigger_enabled_states';\nexport * from './trigger_fire_at_interval_request';\nexport * from './trigger_fire_when_distance_travelled_request';\nexport * from './trigger_fire_when_io_request';\nexport * from './trigger_fire_when_request';\nexport * from './trigger_fire_when_setting_request';\nexport * from './trigger_on_fire_request';\nexport * from './trigger_on_fire_set_request';\nexport * from './trigger_on_fire_set_to_setting_request';\nexport * from './trigger_states';\nexport * from './unit_get_enum_request';\nexport * from './unit_get_enum_response';\nexport * from './unit_get_symbol_request';\nexport * from './unit_get_symbol_response';\nexport * from './unknown_binary_response_event_wrapper';\nexport * from './unknown_response_event_wrapper';\nexport * from './wait_to_clear_warnings_request';\nexport * from './wait_to_respond_request';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,wDAAsC;AACtC,uDAAqC;AACrC,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,mDAAiC;AACjC,2DAAyC;AACzC,iEAA+C;AAC/C,kEAAgD;AAChD,sEAAoD;AACpD,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,+DAA6C;AAC7C,sEAAoD;AACpD,8DAA4C;AAC5C,oEAAkD;AAClD,kDAAgC;AAChC,gEAA8C;AAC9C,0DAAwC;AACxC,+CAA6B;AAC7B,0DAAwC;AACxC,0DAAwC;AACxC,mEAAiD;AACjD,mEAAiD;AACjD,kEAAgD;AAChD,mEAAiD;AACjD,+EAA6D;AAC7D,0EAAwD;AACxD,mEAAiD;AACjD,0DAAwC;AACxC,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AAyC;AACzC,2DAAyC;AACzC,qEAAmD;AACnD,iFAA+D;AAC/D,iEAA+C;AAC/C,8DAA4C;AAC5C,sEAAoD;AACpD,4DAA0C;AAC1C,gEAA8C;AAC9C,2EAAyD;AACzD,8DAA4C;AAC5C,mDAAiC;AACjC,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,0EAAwD;AACxD,mEAAiD;AACjD,mEAAiD;AACjD,4DAA0C","sourcesContent":["/* This file is generated. Do not modify by hand. */\nexport * from './alert_event_wrapper';\nexport * from './axes_empty_request';\nexport * from './axes_get_setting_request';\nexport * from './axes_move_request';\nexport * from './axis_empty_request';\nexport * from './axis_move_type';\nexport * from './axis_to_string_request';\nexport * from './binary_device_detect_request';\nexport * from './binary_device_detect_response';\nexport * from './binary_device_get_setting_request';\nexport * from './binary_device_home_request';\nexport * from './binary_device_move_request';\nexport * from './binary_device_set_setting_request';\nexport * from './binary_device_stop_request';\nexport * from './binary_generic_with_units_request';\nexport * from './binary_message_collection';\nexport * from './binary_reply_only_event_wrapper';\nexport * from './bool_response';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_request';\nexport * from './channel_on';\nexport * from './channel_set_intensity';\nexport * from './check_version_request';\nexport * from './custom_interface_close_request';\nexport * from './custom_interface_open_response';\nexport * from './custom_interface_read_request';\nexport * from './custom_interface_write_request';\nexport * from './device_cancel_all_outputs_schedule_request';\nexport * from './device_cancel_output_schedule_request';\nexport * from './device_convert_setting_request';\nexport * from './device_detect_request';\nexport * from './device_detect_response';\nexport * from './device_empty_request';\nexport * from './device_get_all_analog_io_request';\nexport * from './device_get_all_analog_io_response';\nexport * from './device_get_all_digital_io_request';\nexport * from './device_get_all_digital_io_response';\nexport * from './device_get_analog_io_request';\nexport * from './device_get_digital_io_request';\nexport * from './device_get_setting_request';\nexport * from './device_get_storage_request';\nexport * from './device_get_warnings_request';\nexport * from './device_get_warnings_response';\nexport * from './device_home_request';\nexport * from './device_identify_request';\nexport * from './device_move_request';\nexport * from './device_multi_get_setting_request';\nexport * from './device_on_all_request';\nexport * from './device_on_all_response';\nexport * from './device_renumber_request';\nexport * from './device_set_all_analog_outputs_request';\nexport * from './device_set_all_analog_outputs_schedule_request';\nexport * from './device_set_all_digital_outputs_request';\nexport * from './device_set_all_digital_outputs_schedule_request';\nexport * from './device_set_analog_output_request';\nexport * from './device_set_analog_output_schedule_request';\nexport * from './device_set_digital_output_request';\nexport * from './device_set_digital_output_schedule_request';\nexport * from './device_set_setting_request';\nexport * from './device_set_setting_str_request';\nexport * from './device_set_storage_bool_request';\nexport * from './device_set_storage_number_request';\nexport * from './device_set_storage_request';\nexport * from './device_set_unit_conversions_request';\nexport * from './device_stop_request';\nexport * from './device_storage_list_keys_request';\nexport * from './device_storage_request';\nexport * from './device_type';\nexport * from './device_wait_until_idle_request';\nexport * from './disconnected_event';\nexport * from './double_array_response';\nexport * from './double_response';\nexport * from './empty_request';\nexport * from './errors';\nexport * from './find_device_request';\nexport * from './find_device_response';\nexport * from './forget_devices_request';\nexport * from './gateway_event';\nexport * from './gateway_request';\nexport * from './gateway_response';\nexport * from './generic_binary_request';\nexport * from './generic_command_request';\nexport * from './generic_command_response_collection';\nexport * from './get_all_io_port_labels_response';\nexport * from './get_axis_setting_results';\nexport * from './get_io_port_label_request';\nexport * from './get_setting_results';\nexport * from './get_simple_tuning_param_definition_response';\nexport * from './int_array_response';\nexport * from './int_request';\nexport * from './int_response';\nexport * from './interface_empty_request';\nexport * from './interface_type';\nexport * from './load_paramset';\nexport * from './lockstep_disable_request';\nexport * from './lockstep_empty_request';\nexport * from './lockstep_enable_request';\nexport * from './lockstep_get_axis_numbers_response';\nexport * from './lockstep_get_request';\nexport * from './lockstep_home_request';\nexport * from './lockstep_move_request';\nexport * from './lockstep_set_request';\nexport * from './lockstep_stop_request';\nexport * from './lockstep_wait_until_idle_request';\nexport * from './microscope_config_response';\nexport * from './microscope_empty_request';\nexport * from './microscope_init_request';\nexport * from './objective_changer_change_request';\nexport * from './objective_changer_create_response';\nexport * from './objective_changer_get_current_response';\nexport * from './objective_changer_request';\nexport * from './objective_changer_set_request';\nexport * from './open_binary_interface_request';\nexport * from './open_interface_request';\nexport * from './open_interface_response';\nexport * from './oscilloscope_add_io_channel_request';\nexport * from './oscilloscope_add_setting_channel_request';\nexport * from './oscilloscope_data_get_request';\nexport * from './oscilloscope_data_get_sample_time_request';\nexport * from './oscilloscope_data_get_samples_response';\nexport * from './oscilloscope_data_identifier';\nexport * from './oscilloscope_read_response';\nexport * from './oscilloscope_request';\nexport * from './oscilloscope_start_request';\nexport * from './prepare_command_request';\nexport * from './process_on';\nexport * from './pvt_point_request';\nexport * from './response_type';\nexport * from './servo_tuning_paramset_response';\nexport * from './servo_tuning_request';\nexport * from './set_device_db_source_request';\nexport * from './set_interface_checksum_enabled_request';\nexport * from './set_interface_timeout_request';\nexport * from './set_internal_mode_request';\nexport * from './set_io_port_label_request';\nexport * from './set_log_output_request';\nexport * from './set_process_controller_source';\nexport * from './set_servo_tuning_pid_request';\nexport * from './set_servo_tuning_request';\nexport * from './set_simple_tuning';\nexport * from './set_state_request';\nexport * from './stream_arc_request';\nexport * from './stream_buffer_erase_request';\nexport * from './stream_buffer_get_content_request';\nexport * from './stream_buffer_get_content_response';\nexport * from './stream_buffer_list';\nexport * from './stream_call_request';\nexport * from './stream_circle_request';\nexport * from './stream_empty_request';\nexport * from './stream_generic_command_batch_request';\nexport * from './stream_generic_command_request';\nexport * from './stream_get_axes_response';\nexport * from './stream_get_max_centripetal_acceleration_request';\nexport * from './stream_get_max_speed_request';\nexport * from './stream_get_max_tangential_acceleration_request';\nexport * from './stream_line_request';\nexport * from './stream_mode_response';\nexport * from './stream_segment_type';\nexport * from './stream_set_all_analog_outputs_request';\nexport * from './stream_set_all_digital_outputs_request';\nexport * from './stream_set_analog_output_request';\nexport * from './stream_set_digital_output_request';\nexport * from './stream_set_max_centripetal_acceleration_request';\nexport * from './stream_set_max_speed_request';\nexport * from './stream_set_max_tangential_acceleration_request';\nexport * from './stream_setup_live_composite_request';\nexport * from './stream_setup_live_request';\nexport * from './stream_setup_store_arbitrary_axes_request';\nexport * from './stream_setup_store_composite_request';\nexport * from './stream_setup_store_request';\nexport * from './stream_wait_analog_input_request';\nexport * from './stream_wait_digital_input_request';\nexport * from './stream_wait_request';\nexport * from './stream_wait_until_idle_request';\nexport * from './string_array_response';\nexport * from './string_response';\nexport * from './test_event';\nexport * from './test_request';\nexport * from './test_response';\nexport * from './test_response_long';\nexport * from './toggle_device_db_store_request';\nexport * from './tools_list_serial_ports_response';\nexport * from './translator_create_from_device_request';\nexport * from './translator_create_live_request';\nexport * from './translator_create_request';\nexport * from './translator_create_response';\nexport * from './translator_empty_request';\nexport * from './translator_flush_live_request';\nexport * from './translator_flush_response';\nexport * from './translator_get_axis_offset_request';\nexport * from './translator_get_axis_position_request';\nexport * from './translator_set_axis_position_request';\nexport * from './translator_set_feed_rate_override_request';\nexport * from './translator_set_traverse_rate_request';\nexport * from './translator_translate_request';\nexport * from './trigger_clear_action_request';\nexport * from './trigger_empty_request';\nexport * from './trigger_enable_request';\nexport * from './trigger_enabled_states';\nexport * from './trigger_fire_at_interval_request';\nexport * from './trigger_fire_when_distance_travelled_request';\nexport * from './trigger_fire_when_io_request';\nexport * from './trigger_fire_when_request';\nexport * from './trigger_fire_when_setting_request';\nexport * from './trigger_on_fire_request';\nexport * from './trigger_on_fire_set_request';\nexport * from './trigger_on_fire_set_to_setting_request';\nexport * from './trigger_set_label_request';\nexport * from './trigger_states';\nexport * from './unit_get_enum_request';\nexport * from './unit_get_enum_response';\nexport * from './unit_get_symbol_request';\nexport * from './unit_get_symbol_response';\nexport * from './unknown_binary_response_event_wrapper';\nexport * from './unknown_response_event_wrapper';\nexport * from './wait_to_clear_warnings_request';\nexport * from './wait_to_respond_request';\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface TriggerSetLabelRequest {
|
|
2
|
+
interfaceId: number;
|
|
3
|
+
device: number;
|
|
4
|
+
triggerNumber: number;
|
|
5
|
+
label?: (string | null);
|
|
6
|
+
}
|
|
7
|
+
export declare const TriggerSetLabelRequest: {
|
|
8
|
+
fromBinary: (buffer: Uint8Array) => TriggerSetLabelRequest;
|
|
9
|
+
toBinary: (value: TriggerSetLabelRequest) => Uint8Array;
|
|
10
|
+
DEFAULT: Readonly<TriggerSetLabelRequest>;
|
|
11
|
+
sanitize: (value: TriggerSetLabelRequest) => TriggerSetLabelRequest;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=trigger_set_label_request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger_set_label_request.d.ts","sourceRoot":"","sources":["../../../src/requests/trigger_set_label_request.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,MAAM,CAAC;IAEf,aAAa,EAAE,MAAM,CAAC;IAEtB,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAEzB;AAED,eAAO,MAAM,sBAAsB;yBACZ,UAAU,KAAG,sBAAsB;sBACtC,sBAAsB,KAAG,UAAU;;sBAOnC,sBAAsB,KAAG,sBAAsB;CAUlE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TriggerSetLabelRequest = void 0;
|
|
4
|
+
/* This file is generated. Do not modify by hand. */
|
|
5
|
+
const bson_1 = require("bson");
|
|
6
|
+
const sanitizer_1 = require("../gateway/sanitizer");
|
|
7
|
+
exports.TriggerSetLabelRequest = {
|
|
8
|
+
fromBinary: (buffer) => bson_1.BSON.deserialize(buffer),
|
|
9
|
+
toBinary: (value) => bson_1.BSON.serialize(exports.TriggerSetLabelRequest.sanitize(value)),
|
|
10
|
+
DEFAULT: Object.freeze({
|
|
11
|
+
interfaceId: 0,
|
|
12
|
+
device: 0,
|
|
13
|
+
triggerNumber: 0,
|
|
14
|
+
label: null,
|
|
15
|
+
}),
|
|
16
|
+
sanitize: (value) => {
|
|
17
|
+
if (value == null) {
|
|
18
|
+
throw new TypeError('Expected TriggerSetLabelRequest object but got null or undefined.');
|
|
19
|
+
}
|
|
20
|
+
if (typeof value !== 'object') {
|
|
21
|
+
throw new TypeError(`Expected TriggerSetLabelRequest object but got ${typeof value}.`);
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
interfaceId: sanitizer_1.sanitizer.sanitizeInt(value.interfaceId, 'interfaceId'),
|
|
25
|
+
device: sanitizer_1.sanitizer.sanitizeInt(value.device, 'device'),
|
|
26
|
+
triggerNumber: sanitizer_1.sanitizer.sanitizeInt(value.triggerNumber, 'triggerNumber'),
|
|
27
|
+
label: value.label != null ? sanitizer_1.sanitizer.sanitizeString(value.label, 'label') : null,
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=trigger_set_label_request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger_set_label_request.js","sourceRoot":"","sources":["../../../src/requests/trigger_set_label_request.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+BAA4B;AAC5B,oDAAiD;AAapC,QAAA,sBAAsB,GAAG;IACpC,UAAU,EAAE,CAAC,MAAkB,EAA0B,EAAE,CAAC,WAAI,CAAC,WAAW,CAAC,MAAM,CAA2B;IAC9G,QAAQ,EAAE,CAAC,KAA6B,EAAc,EAAE,CAAC,WAAI,CAAC,SAAS,CAAC,8BAAsB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/G,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,WAAW,EAAE,CAAC;QACd,MAAM,EAAE,CAAC;QACT,aAAa,EAAE,CAAC;QAChB,KAAK,EAAE,IAAI;KACZ,CAAqC;IACtC,QAAQ,EAAE,CAAC,KAA6B,EAA0B,EAAE;QAClE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,mEAAmE,CAAC,CAAA;QAAC,CAAC;QAC/G,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAAC,MAAM,IAAI,SAAS,CAAC,kDAAkD,OAAO,KAAK,GAAG,CAAC,CAAA;QAAC,CAAC;QACzH,OAAO;YACL,WAAW,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,WAAW,EAAE,aAAa,CAAC;YACpE,MAAM,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC;YACrD,aAAa,EAAE,qBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,aAAa,EAAE,eAAe,CAAC;YAC1E,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;SACnF,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["/* This file is generated. Do not modify by hand. */\nimport { BSON } from 'bson';\nimport { sanitizer } from '../gateway/sanitizer';\n\nexport interface TriggerSetLabelRequest {\n interfaceId: number;\n\n device: number;\n\n triggerNumber: number;\n\n label?: (string | null);\n\n}\n\nexport const TriggerSetLabelRequest = {\n fromBinary: (buffer: Uint8Array): TriggerSetLabelRequest => BSON.deserialize(buffer) as TriggerSetLabelRequest,\n toBinary: (value: TriggerSetLabelRequest): Uint8Array => BSON.serialize(TriggerSetLabelRequest.sanitize(value)),\n DEFAULT: Object.freeze({\n interfaceId: 0,\n device: 0,\n triggerNumber: 0,\n label: null,\n }) as Readonly<TriggerSetLabelRequest>,\n sanitize: (value: TriggerSetLabelRequest): TriggerSetLabelRequest => {\n if (value == null) { throw new TypeError('Expected TriggerSetLabelRequest object but got null or undefined.') }\n if (typeof value !== 'object') { throw new TypeError(`Expected TriggerSetLabelRequest object but got ${typeof value}.`) }\n return {\n interfaceId: sanitizer.sanitizeInt(value.interfaceId, 'interfaceId'),\n device: sanitizer.sanitizeInt(value.device, 'device'),\n triggerNumber: sanitizer.sanitizeInt(value.triggerNumber, 'triggerNumber'),\n label: value.label != null ? sanitizer.sanitizeString(value.label, 'label') : null,\n };\n },\n};\n"]}
|