basyx-typescript-sdk 0.2.0 → 0.2.2

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/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './clients';
2
2
  export * as AasTypes from './generated/types.gen';
3
- export * as AasRepositoryModels from './models/aas-repository';
3
+ export * as Models from './models';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Represents an asset identifier.
3
+ *
4
+ * @remarks
5
+ * The "name" property can either be "globalAssetId" to denote a global identifier, or any other string representing a custom identifier type.
6
+ * The "value" property contains the actual identifier.
7
+ */
8
+ export type AssetId = {
9
+ name: string;
10
+ value: string;
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * A union for "no-throw" style responses:
3
+ * Success => { success: true; data: T }
4
+ * Failure => { success: false; error: E }
5
+ */
6
+ export type ApiResult<T, E> = {
7
+ success: true;
8
+ data: T;
9
+ } | {
10
+ success: false;
11
+ error: E;
12
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './aas-repository';
2
+ export * from './api';
3
+ export * from './AssetId';
@@ -0,0 +1,3 @@
1
+ export * from './aas-repository';
2
+ export * from './api';
3
+ export * from './AssetId';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basyx-typescript-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "BaSyx TypeScript SDK for developing applications and components for the Asset Administration Shell (AAS)",
5
5
  "type": "module",
6
6
  "main": "bundle/index.js",