@iobroker/types 5.0.5 → 5.0.6
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/build/objects.d.ts +2 -2
- package/build/shared.d.ts +4 -4
- package/build/types.d.ts +7 -5
- package/package.json +2 -2
package/build/objects.d.ts
CHANGED
|
@@ -295,8 +295,8 @@ declare global {
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
interface MetaCommon extends ObjectCommon {
|
|
298
|
-
//
|
|
299
|
-
type:
|
|
298
|
+
// Can be of type `user` for folders, where a user can store files or `folder` for adapter internal structures
|
|
299
|
+
type: 'meta.user' | 'meta.folder';
|
|
300
300
|
|
|
301
301
|
// Make it possible to narrow the object type using the custom property
|
|
302
302
|
custom?: undefined;
|
package/build/shared.d.ts
CHANGED
|
@@ -217,11 +217,11 @@ declare global {
|
|
|
217
217
|
|
|
218
218
|
interface Certificates {
|
|
219
219
|
/** private key file */
|
|
220
|
-
key: string
|
|
220
|
+
key: string;
|
|
221
221
|
/** public certificate */
|
|
222
|
-
cert: string
|
|
222
|
+
cert: string;
|
|
223
223
|
/** chained CA certificates */
|
|
224
|
-
ca
|
|
224
|
+
ca?: string;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
type MessagePayload = any;
|
|
@@ -395,7 +395,7 @@ declare global {
|
|
|
395
395
|
SecondParameterOf<T>,
|
|
396
396
|
null | undefined
|
|
397
397
|
>;
|
|
398
|
-
/** Infers the return type from a callback-style API and
|
|
398
|
+
/** Infers the return type from a callback-style API and leaves null and undefined in */
|
|
399
399
|
type CallbackReturnTypeOf<T extends (...args: any[]) => any> = SecondParameterOf<T>;
|
|
400
400
|
|
|
401
401
|
type GetStateCallback = (err?: Error | null, state?: State | null) => void;
|
package/build/types.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ export declare interface AdapterClass {
|
|
|
155
155
|
setObjectAsync(id: string, obj: ioBroker.SettableObject, options?: unknown): ioBroker.SetObjectPromise;
|
|
156
156
|
/** Creates or overwrites an object (which might not belong to this adapter) in the object db */
|
|
157
157
|
setForeignObjectAsync<T extends string>(id: T, obj: ioBroker.SettableObject<ioBroker.ObjectIdToObjectType<T, 'write'>>, options?: unknown): ioBroker.SetObjectPromise;
|
|
158
|
-
getCertificatesAsync(
|
|
158
|
+
getCertificatesAsync(publicName?: string, privateName?: string, chainedName?: string): Promise<GetCertificatesPromiseReturnType>;
|
|
159
159
|
/** Get all states, channels, devices and folders of this adapter */
|
|
160
160
|
getAdapterObjectsAsync(): Promise<Record<string, ioBroker.AdapterScopedObject>>;
|
|
161
161
|
/** Reads an object (which might not belong to this adapter) from the object db*/
|
|
@@ -821,7 +821,9 @@ export declare type CommandsPermissionsObject = {
|
|
|
821
821
|
[permission: string]: CommandsPermissionsEntry;
|
|
822
822
|
};
|
|
823
823
|
|
|
824
|
-
export declare type GetCertificatesCallback = (err
|
|
824
|
+
export declare type GetCertificatesCallback = (err?: Error | null, certs?: ioBroker.Certificates, useLetsEncryptCert?: boolean) => void;
|
|
825
|
+
|
|
826
|
+
export declare type GetCertificatesPromiseReturnType = [cert: ioBroker.Certificates, useLetsEncryptCert?: boolean];
|
|
825
827
|
|
|
826
828
|
export declare type GetEncryptedConfigCallback = (error: Error | null | undefined, result?: string) => void;
|
|
827
829
|
|
|
@@ -964,9 +966,9 @@ export declare interface InternalGetBinaryStateOption {
|
|
|
964
966
|
}
|
|
965
967
|
|
|
966
968
|
export declare interface InternalGetCertificatesOptions {
|
|
967
|
-
publicName
|
|
968
|
-
privateName
|
|
969
|
-
chainedName
|
|
969
|
+
publicName?: string;
|
|
970
|
+
privateName?: string;
|
|
971
|
+
chainedName?: string;
|
|
970
972
|
callback?: GetCertificatesCallback;
|
|
971
973
|
}
|
|
972
974
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/types",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=12.0.0"
|
|
6
6
|
},
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
]
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "5646bc4ac352232d996665ffcddbe9759493af6d"
|
|
45
45
|
}
|