@azure/iot-modelsrepository 1.0.0-alpha.20241213.1 → 1.0.0-alpha.20241217.1
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/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ console.log(`Initialized client pointing to local path: ${client.repositoryLocat
|
|
|
55
55
|
|
|
56
56
|
### Publish Models
|
|
57
57
|
|
|
58
|
-
Publishing models to the models repository requires [exercising](https://
|
|
58
|
+
Publishing models to the models repository requires [exercising](https://learn.microsoft.com/azure/iot-pnp/concepts-model-repository#publish-a-model) common GitHub workflows.
|
|
59
59
|
|
|
60
60
|
### Get Models
|
|
61
61
|
|
|
@@ -138,7 +138,7 @@ isValidDtmi("dtmi:com:example:Thermostat");
|
|
|
138
138
|
const localRepositoryUri: string = "file:///path/to/repository/";
|
|
139
139
|
const fullyQualifiedModelPath: string = getModelUri(
|
|
140
140
|
"dtmi:com:example:Thermostat;1",
|
|
141
|
-
localRepositoryUri
|
|
141
|
+
localRepositoryUri,
|
|
142
142
|
);
|
|
143
143
|
|
|
144
144
|
// Prints '/path/to/repository/dtmi/com/example/thermostat-1.json'
|
|
@@ -148,7 +148,7 @@ console.log(fullyQualifiedModelPath);
|
|
|
148
148
|
const remoteRepositoryUri: string = "https://contoso.com/models/";
|
|
149
149
|
const fullyQualifiedModelPath: string = GetModelUri(
|
|
150
150
|
"dtmi:com:example:Thermostat;1",
|
|
151
|
-
remoteRepositoryUri
|
|
151
|
+
remoteRepositoryUri,
|
|
152
152
|
);
|
|
153
153
|
|
|
154
154
|
// Prints 'https://contoso.com/models/dtmi/com/example/thermostat-1.json'
|
|
@@ -163,7 +163,7 @@ console.log(fullyQualifiedModelPath);
|
|
|
163
163
|
|
|
164
164
|
## Next steps
|
|
165
165
|
|
|
166
|
-
- Review the [DTDL Spec](https://
|
|
166
|
+
- Review the [DTDL Spec](https://learn.microsoft.com/azure/iot-pnp/concepts-model-parser).
|
|
167
167
|
- Understand the [Device Models Repository](https://devicemodels.azure.com/).
|
|
168
168
|
- Code a IoT Plug and Play 'Device' using the [Azure IoT SDK for Node](https://github.com/Azure/azure-iot-sdk-node/tree/master/device/samples#plug-and-play-examples).
|
|
169
169
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/iot-modelsrepository",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.20241217.1",
|
|
4
4
|
"description": "Device Model Repository Library with typescript type definitions for node.js and browser.",
|
|
5
5
|
"sdk-type": "client",
|
|
6
6
|
"main": "./dist/commonjs/index.js",
|