@iobroker/types 7.0.2 → 7.0.3

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.
@@ -453,7 +453,7 @@ declare global {
453
453
  interface ScriptCommon extends ObjectCommon {
454
454
  name: string;
455
455
  /** Defines the type of the script, e.g., TypeScript/ts, JavaScript/js or Blockly */
456
- engineType: string;
456
+ engineType: 'TypeScript/ts' | 'Blockly' | 'Rules' | 'JavaScript/js';
457
457
  /** The instance id of the instance which executes this script */
458
458
  engine: string;
459
459
  /** The source code of this script */
@@ -998,6 +998,10 @@ declare global {
998
998
  version: string;
999
999
  /** Array of blocked versions, each entry represents a semver range */
1000
1000
  blockedVersions: string[];
1001
+ /** If true the unsafe perm flag is needed on install */
1002
+ unsafePerm?: boolean;
1003
+ /** If given, the packet name differs from the adapter name, e.g. because it is a scoped package */
1004
+ packetName?: string;
1001
1005
 
1002
1006
  /** Other Adapter related properties, not important for this implementation */
1003
1007
  [other: string]: unknown;
package/build/types.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import type { CommandResult } from '@alcalzone/pak';
4
2
  import { EventEmitter } from 'node:events';
5
3
 
@@ -25,10 +23,10 @@ export declare interface AdapterClass {
25
23
  /**
26
24
  * Extend an object and create it if it might not exist
27
25
  *
28
- * @deprecated use `adapter.extendObject` without callback instead
26
+ * @deprecated use `adapter.extendObject` without a callback instead
29
27
  */
30
28
  extendObjectAsync(id: string, objPart: ioBroker.PartialObject, options?: ioBroker.ExtendObjectOptions): ioBroker.SetObjectPromise;
31
- /** Set capabilities of the given executable. Only works on Linux systems. */
29
+ /** Set the capabilities of the given executable. Only works on Linux systems. */
32
30
  setExecutableCapabilities(execPath: string, capabilities: string[], modeEffective?: boolean, modePermitted?: boolean, modeInherited?: boolean): Promise<void>;
33
31
  /** Extend an object (which might not belong to this adapter) and create it if it might not exist */
34
32
  extendForeignObjectAsync<T extends string>(id: T, objPart: ioBroker.PartialObject<ioBroker.ObjectIdToObjectType<T, 'write'>>, options?: ioBroker.ExtendObjectOptions): ioBroker.SetObjectPromise;
@@ -481,7 +479,7 @@ export declare class AdapterClass extends EventEmitter {
481
479
  getEncryptedConfig(attribute: string, callback?: GetEncryptedConfigCallback): Promise<string | void>;
482
480
  private _getEncryptedConfig;
483
481
  /**
484
- * Get the system secret, after retrived once it will be read from cache
482
+ * Get the system secret, after retrieved once it will be read from the cache
485
483
  */
486
484
  private getSystemSecret;
487
485
  setTimeout<TCallback extends TimeoutCallback>(cb: TCallback, timeout: number, ...args: Parameters<TCallback>): ioBroker.Timeout | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/types",
3
- "version": "7.0.2",
3
+ "version": "7.0.3",
4
4
  "engines": {
5
5
  "node": ">=12.0.0"
6
6
  },
@@ -41,5 +41,5 @@
41
41
  ]
42
42
  }
43
43
  },
44
- "gitHead": "06427179951aa037bdf485c0ea2483142c10d903"
44
+ "gitHead": "1c716ca37fe7c26d4f56571f90d33be69d45726e"
45
45
  }