-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
811 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ dist | |
node_modules | ||
schemas/**/LICENSE | ||
schemas/**/README.md | ||
updated_files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
UPDATE_FILE="updated_files" | ||
|
||
set -e | ||
|
||
cd "${0%/*}/../" || exit 1 | ||
|
||
if ! command -v "npm" > /dev/null; then | ||
echo "npm not found. Exiting." | ||
exit 1 | ||
fi | ||
|
||
if ! npm whoami > /dev/null; then | ||
echo "Error while checking npm authentication" | ||
exit 1 | ||
fi | ||
|
||
while IFS= read -r DIR; do | ||
( | ||
cd "./schemas/${DIR}" || exit 1 | ||
npm publish --access=public | ||
) | ||
done < "${UPDATE_FILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,226 @@ | ||
/* tslint:disable */ | ||
/** | ||
* This file was automatically generated by json-schema-to-typescript. | ||
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, | ||
* and run json-schema-to-typescript to regenerate this file. | ||
*/ | ||
|
||
export type ModuleType = "docker"; | ||
export type CreateOptions = string; | ||
export type Status = "running" | "stopped"; | ||
export type RestartPolicy = "never" | "on-failure" | "on-unhealthy" | "always"; | ||
|
||
export interface JSONSchemaForAzureIoTEdgeDeploymentVersion20 { | ||
modulesContent: TheConfigurationForAllTheModules; | ||
} | ||
export interface TheConfigurationForAllTheModules { | ||
$edgeAgent: ConfigurationForTheEdgeAgentModule; | ||
$edgeHub: ConfigurationForTheEdgeHubModule; | ||
/** | ||
* This interface was referenced by `TheConfigurationForAllTheModules`'s JSON-Schema definition | ||
* via the `patternProperty` "^[a-zA-Z0-9_-]+$". | ||
*/ | ||
[k: string]: { | ||
"properties.desired": { | ||
[k: string]: any; | ||
}; | ||
}; | ||
} | ||
export interface ConfigurationForTheEdgeAgentModule { | ||
"properties.desired": { | ||
schemaVersion: string; | ||
runtime: { | ||
type: ModuleType; | ||
settings: { | ||
minDockerVersion?: string; | ||
loggingOptions?: string; | ||
registryCredentials?: { | ||
/** | ||
* This interface was referenced by `undefined`'s JSON-Schema definition | ||
* via the `patternProperty` "^.+$". | ||
*/ | ||
[k: string]: { | ||
username: string; | ||
password: string; | ||
address: string; | ||
[k: string]: any; | ||
}; | ||
}; | ||
/** | ||
* This interface was referenced by `undefined`'s JSON-Schema definition | ||
* via the `patternProperty` "^[^\.\$# ]+$". | ||
*/ | ||
[k: string]: | ||
| any[] | ||
| boolean | ||
| number | ||
| null | ||
| { | ||
[k: string]: any; | ||
} | ||
| string; | ||
}; | ||
/** | ||
* This interface was referenced by `undefined`'s JSON-Schema definition | ||
* via the `patternProperty` "^[^\.\$# ]+$". | ||
*/ | ||
[k: string]: | ||
| any[] | ||
| boolean | ||
| number | ||
| null | ||
| { | ||
[k: string]: any; | ||
} | ||
| string; | ||
}; | ||
systemModules: { | ||
edgeAgent: { | ||
type: ModuleType; | ||
settings: ModuleSettings; | ||
env?: Env; | ||
/** | ||
* This interface was referenced by `undefined`'s JSON-Schema definition | ||
* via the `patternProperty` "^[^\.\$# ]+$". | ||
*/ | ||
[k: string]: | ||
| any[] | ||
| boolean | ||
| number | ||
| null | ||
| { | ||
[k: string]: any; | ||
} | ||
| string; | ||
}; | ||
edgeHub: TheEdgehubSchema; | ||
}; | ||
modules: { | ||
/** | ||
* This interface was referenced by `undefined`'s JSON-Schema definition | ||
* via the `patternProperty` "^[a-zA-Z0-9_-]+$". | ||
*/ | ||
[k: string]: { | ||
version?: string; | ||
type: ModuleType; | ||
status: Status; | ||
restartPolicy: RestartPolicy; | ||
env?: Env; | ||
settings: ModuleSettings; | ||
/** | ||
* This interface was referenced by `undefined`'s JSON-Schema definition | ||
* via the `patternProperty` "^[^\.\$# ]+$". | ||
*/ | ||
[k: string]: | ||
| any[] | ||
| boolean | ||
| number | ||
| null | ||
| { | ||
[k: string]: any; | ||
} | ||
| string; | ||
}; | ||
}; | ||
/** | ||
* This interface was referenced by `undefined`'s JSON-Schema definition | ||
* via the `patternProperty` "^[^\.\$# ]+$". | ||
*/ | ||
[k: string]: | ||
| any[] | ||
| boolean | ||
| number | ||
| null | ||
| { | ||
[k: string]: any; | ||
} | ||
| string; | ||
}; | ||
} | ||
export interface ModuleSettings { | ||
image: string; | ||
createOptions?: CreateOptions; | ||
/** | ||
* This interface was referenced by `ModuleSettings`'s JSON-Schema definition | ||
* via the `patternProperty` "^[^\.\$# ]+$". | ||
*/ | ||
[k: string]: | ||
| any[] | ||
| boolean | ||
| number | ||
| null | ||
| { | ||
[k: string]: any; | ||
} | ||
| string; | ||
} | ||
export interface Env { | ||
/** | ||
* This interface was referenced by `Env`'s JSON-Schema definition | ||
* via the `patternProperty` "^[^\+#$\s\.]+$". | ||
*/ | ||
[k: string]: { | ||
value: number | string | boolean; | ||
}; | ||
} | ||
export interface TheEdgehubSchema { | ||
type: ModuleType; | ||
settings: ModuleSettings; | ||
env?: Env; | ||
status: Status; | ||
restartPolicy: RestartPolicy; | ||
/** | ||
* This interface was referenced by `TheEdgehubSchema`'s JSON-Schema definition | ||
* via the `patternProperty` "^[^\.\$# ]+$". | ||
*/ | ||
[k: string]: | ||
| any[] | ||
| boolean | ||
| number | ||
| null | ||
| { | ||
[k: string]: any; | ||
} | ||
| string; | ||
} | ||
export interface ConfigurationForTheEdgeHubModule { | ||
"properties.desired": { | ||
schemaVersion: string; | ||
routes: { | ||
/** | ||
* This interface was referenced by `undefined`'s JSON-Schema definition | ||
* via the `patternProperty` "^[^\.\$# ]+$". | ||
*/ | ||
[k: string]: string; | ||
}; | ||
storeAndForwardConfiguration?: { | ||
timeToLiveSecs: number; | ||
/** | ||
* This interface was referenced by `undefined`'s JSON-Schema definition | ||
* via the `patternProperty` "^[^\.\$# ]+$". | ||
*/ | ||
[k: string]: | ||
| any[] | ||
| boolean | ||
| number | ||
| null | ||
| { | ||
[k: string]: any; | ||
} | ||
| string; | ||
}; | ||
/** | ||
* This interface was referenced by `undefined`'s JSON-Schema definition | ||
* via the `patternProperty` "^[^\.\$# ]+$". | ||
*/ | ||
[k: string]: | ||
| any[] | ||
| boolean | ||
| number | ||
| null | ||
| { | ||
[k: string]: any; | ||
} | ||
| string; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"author": "Florian Keller <github@floriankeller.de>", | ||
"dependencies": {}, | ||
"description": "TypeScript definitions for azure-iot-edge-deployment-2.0.", | ||
"license": "MIT", | ||
"main": "index.d.ts", | ||
"name": "@schemastore/azure-iot-edge-deployment-2.0", | ||
"repository": "https://github.com/ffflorian/schemastore-updater/tree/master/schemas/azure-iot-edge-deployment-2.0", | ||
"scripts": {}, | ||
"typesPublisherContentHash": "0470fece2144520043a259102c1303e9e4ac7a3d4b675710087887762640d1a3", | ||
"types": "index.d.ts", | ||
"version": "0.0.1", | ||
"typeScriptVersion": "2.2" | ||
} |
Oops, something went wrong.