You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

wot-typescript-definitions

Package Overview
Dependencies
Maintainers
4
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wot-typescript-definitions - npm Package Compare versions

Comparing version

to
0.4.0-SNAPSHOT.12

46

index.d.ts

@@ -45,6 +45,11 @@ export as namespace WoT;

/** The ThingTemplate dictionary contains properties to initialize a Thing */
export interface ThingTemplate extends SemanticAnnotations {
/** The name attribute represents the user given name of the Thing */
name: string;
}
/** A Thing model is used for producing a new ExposedThing and can be either a ThingTemplate, or a ThingDescription. */
export declare type ThingModel = (ThingTemplate | ThingDescription);
export declare type ThingModel = (ThingDescription | ThingTemplate);
/**

@@ -88,10 +93,8 @@ * Dictionary that represents the constraints for discovering Things as key-value pairs.

/** A dictionary that provides the semantic types and semantic metadata. */
export interface SemanticAnnotations {
semanticTypes?: [SemanticType];
semanticType?: [SemanticType];
metadata?: [SemanticMetadata];
}
/** Represents a semantic type annotation, containing a name and a context. */

@@ -113,10 +116,2 @@ export interface SemanticType {

/** The ThingTemplate dictionary contains properties to initialize a Thing */
export interface ThingTemplate extends SemanticAnnotations {
/** The name attribute represents the user given name of the Thing */
name: string;
}
/** The ConsumedThing interface is a client API for sending requests to servers in order to retrieve or update properties, invoke Actions, and observe properties, Actions and Events. */

@@ -131,3 +126,3 @@ export interface ConsumedThing {

*/
getThingDescription(): ThingDescription
getThingDescription(): ThingDescription;

@@ -138,3 +133,3 @@ /**

*/
readProperty(propertyName: string): Promise<any>
readProperty(propertyName: string): Promise<any>;

@@ -146,4 +141,7 @@ /**

*/
writeProperty(propertyName: string, newValue: any): Promise<void>
writeProperty(propertyName: string, newValue: any): Promise<void>;
/** Observable for subscribing to property changes */
onPropertyChange(name: string): Observable<any>;
/** Takes the Action name from the name argument and the list of parameters, then requests from the underlying platform and the Protocol Bindings to invoke the Action on the remote Thing and return the result. Returns a Promise that resolves with the return value or rejects with an Error.

@@ -153,3 +151,3 @@ * @param actionName Name of the action to invoke

*/
invokeAction(actionName: string, parameter?: any): Promise<any>
invokeAction(actionName: string, parameter?: any): Promise<any>;

@@ -159,5 +157,2 @@ /** Observable for subscribing to events */

/** Observable for subscribing to property changes */
onPropertyChange(name: string): Observable<any>;
/** Observable for subscribing to TD changes */

@@ -168,3 +163,3 @@ onTDChange(): Observable<any>;

/**
* TODO Linked Data JSON Schema
* TODO Linked Data Schema
*/

@@ -179,3 +174,3 @@ export declare type DataSchema = USVString;

/** The type attribute provides the description of the data. */
type: DataSchema;
schema: DataSchema;
/** The intial value. */

@@ -194,5 +189,5 @@ value?: any;

/** The inputDataDescription attribute provides the description of the input arguments (argument list is represented by an object). If missing, it means the action does not accept arguments. */
inputDataDescription?: DataSchema;
inputSchema?: DataSchema;
/** The outputDataDescription attribute provides the description of the returned data. If missing, it means the action does not return data. */
outputDataDescription?: DataSchema;
outputSchema?: DataSchema;
// /** The action attribute provides a function that defines the Action. */

@@ -206,3 +201,3 @@ // action: Function;

/** The type attribute provides the description of the data. */
dataDescription?: DataSchema;
schema?: DataSchema;
}

@@ -286,3 +281,2 @@

setPropertyWriteHandler(writeHandler: PropertyWriteHandler, propertyName? : string) : ExposedThing;
}

@@ -289,0 +283,0 @@

{
"name": "wot-typescript-definitions",
"version": "0.4.0-SNAPSHOT.11",
"description": "Typescript definitions for the WoT scripting API",
"main": "index.d.ts",
"types": "index.d.ts",
"typings": "index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/thingweb/wot-typescript-definitions.git"
},
"version": "0.4.0-SNAPSHOT.12",
"description": "TypeScript definitions for the W3C WoT Scripting API",
"author": "the thingweb community",
"license": "W3C-20150513",
"repository": "https://github.com/thingweb/wot-typescript-definitions.git",
"keywords": [
"web",
"Web",
"W3C",
"WoT",
"IoT",
"things",
"scripting",

@@ -23,15 +18,13 @@ "typescript",

],
"contributors": [
"Johannes Hund <johannes.hund@siemens.com>",
"Daniel Peintner <daniel.peintner.ext@siemens.com>",
"Sebastian Kaebisch <sebastian.kaebisch@siemens.com>"
],
"license": "W3C Software License",
"bugs": {
"url": "https://github.com/thingweb/wot-typescript-definitions/issues"
"publishConfig": {
"access": "public"
},
"homepage": "https://github.com/thingweb/wot-typescript-definitions#readme",
"main": "index.d.ts",
"types": "index.d.ts",
"dependencies": {
"rxjs": "5.4.3"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}
{
"compilerOptions": {
"target": "ES6",
"target": "es5",
"lib" : ["es2015","dom"],
"module": "commonjs",

@@ -11,3 +12,4 @@ "outDir": "dist",

"preserveConstEnums": true,
"experimentalDecorators": true
"experimentalDecorators": true,
"declaration": true
},

@@ -14,0 +16,0 @@ "include": [