motion-master-client 0.0.282 → 0.0.284
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 +5 -4
- package/src/api.js.map +1 -1
- package/src/lib/fetch.d.ts +138 -53
- package/src/lib/fetch.js +175 -60
- package/src/lib/fetch.js.map +1 -1
- package/src/lib/integro-variant.d.ts +1 -1
- package/src/lib/integro-variant.js +13 -10
- package/src/lib/integro-variant.js.map +1 -1
- package/src/lib/motion-master-req-res-client.d.ts +36 -20
- package/src/lib/motion-master-req-res-client.js +118 -3
- package/src/lib/motion-master-req-res-client.js.map +1 -1
- package/src/lib/types.d.ts +47 -0
package/src/lib/types.d.ts
CHANGED
|
@@ -346,3 +346,50 @@ export interface MotionMasterConnectionConfig {
|
|
|
346
346
|
*/
|
|
347
347
|
secure?: boolean;
|
|
348
348
|
}
|
|
349
|
+
/**
|
|
350
|
+
* Defines the structure for storing and representing supported parameter options,
|
|
351
|
+
* organized by firmware version, versioned device product ID, and positional index.
|
|
352
|
+
*
|
|
353
|
+
* The positional index typically refers to hardware elements such as:
|
|
354
|
+
* - Encoder ports
|
|
355
|
+
* - Digital I/Os (DIOs)
|
|
356
|
+
* - Analog inputs (AIs)
|
|
357
|
+
*
|
|
358
|
+
* Each inner array represents the allowed option values (e.g., encoder types) for the corresponding position (port).
|
|
359
|
+
*
|
|
360
|
+
* @example Encoder type parameter options:
|
|
361
|
+
* {
|
|
362
|
+
* "5.4": {
|
|
363
|
+
* "8500-01": [
|
|
364
|
+
* [0], // First port: no encoder types are allowed
|
|
365
|
+
* [0, 1, 2, 3, 4, 7, 9], // Second port: supports these encoder types
|
|
366
|
+
* [0, 4, 7, 9], // Third port: supports a subset of encoder types
|
|
367
|
+
* [0], // Fourth port: no encoder types can be selected
|
|
368
|
+
* ],
|
|
369
|
+
* },
|
|
370
|
+
* }
|
|
371
|
+
*/
|
|
372
|
+
export interface FirmwareProductSupportedOptions {
|
|
373
|
+
[firmwareVersion: string]: {
|
|
374
|
+
[versionedDeviceProductId: string]: number[][];
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Represents a tabular configuration for a part, such as a motor or encoder.
|
|
379
|
+
*
|
|
380
|
+
* The `header` array defines the columns, each specifying a name and an optional address,
|
|
381
|
+
* where the address typically includes an index and subindex identifying the parameter.
|
|
382
|
+
*
|
|
383
|
+
* The `values` array contains rows of configuration data, with each row aligned to the header columns.
|
|
384
|
+
*/
|
|
385
|
+
export interface PartConfigurationTable {
|
|
386
|
+
/** The columns describing each part or field. */
|
|
387
|
+
header: {
|
|
388
|
+
/** The display name of the part or configuration field. */
|
|
389
|
+
name: string;
|
|
390
|
+
/** (Optional) The address (index and subindex) matching the parameter. */
|
|
391
|
+
address?: string;
|
|
392
|
+
}[];
|
|
393
|
+
/** Rows of configuration data matching the header columns. */
|
|
394
|
+
values: (string | number | boolean | null)[][];
|
|
395
|
+
}
|