@kelvininc/js-client-sdk 5.9.0 → 6.1.0
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/CHANGELOG.md +25 -0
- package/dist/cjs/core/session.d.ts +1 -1
- package/dist/cjs/core/session.js.map +1 -1
- package/dist/cjs/models/generated/asset.d.ts +6 -2
- package/dist/cjs/models/generated/asset.js +3 -1
- package/dist/cjs/models/generated/asset.js.map +1 -1
- package/dist/cjs/models/generated/assetClass.d.ts +8 -4
- package/dist/cjs/models/generated/assetClass.js +5 -3
- package/dist/cjs/models/generated/assetClass.js.map +1 -1
- package/dist/cjs/models/generated/assetClassItem.d.ts +8 -4
- package/dist/cjs/models/generated/assetClassItem.js +5 -3
- package/dist/cjs/models/generated/assetClassItem.js.map +1 -1
- package/dist/cjs/models/generated/assetItem.d.ts +8 -3
- package/dist/cjs/models/generated/assetItem.js +5 -3
- package/dist/cjs/models/generated/assetItem.js.map +1 -1
- package/dist/cjs/models/generated/assetType.d.ts +4 -0
- package/dist/cjs/models/generated/assetType.js +2 -0
- package/dist/cjs/models/generated/assetType.js.map +1 -1
- package/dist/cjs/models/generated/assetTypeItem.d.ts +4 -0
- package/dist/cjs/models/generated/assetTypeItem.js +2 -0
- package/dist/cjs/models/generated/assetTypeItem.js.map +1 -1
- package/dist/cjs/services/generated/api/asset.service.d.ts +4 -2
- package/dist/cjs/services/generated/api/asset.service.js +11 -3
- package/dist/cjs/services/generated/api/asset.service.js.map +1 -1
- package/dist/cjs/services/generated/api/storage.service.d.ts +1 -1
- package/dist/cjs/services/generated/api/storage.service.js +1 -1
- package/dist/cjs/services/generated/api/storage.service.js.map +1 -1
- package/dist/cjs/services/generated/models/assetClassCreateData.d.ts +1 -0
- package/dist/cjs/services/generated/models/assetClassCreateData.js.map +1 -1
- package/dist/cjs/services/generated/models/assetClassUpdateData.d.ts +1 -0
- package/dist/cjs/services/generated/models/assetClassUpdateData.js.map +1 -1
- package/dist/cjs/services/generated/types/asset.service.types.d.ts +2 -0
- package/dist/cjs/services/generated/types/asset.service.types.js.map +1 -1
- package/dist/esm/core/session.d.ts +1 -1
- package/dist/esm/core/session.js.map +1 -1
- package/dist/esm/models/generated/asset.d.ts +6 -2
- package/dist/esm/models/generated/asset.js +3 -1
- package/dist/esm/models/generated/asset.js.map +1 -1
- package/dist/esm/models/generated/assetClass.d.ts +8 -4
- package/dist/esm/models/generated/assetClass.js +5 -3
- package/dist/esm/models/generated/assetClass.js.map +1 -1
- package/dist/esm/models/generated/assetClassItem.d.ts +8 -4
- package/dist/esm/models/generated/assetClassItem.js +5 -3
- package/dist/esm/models/generated/assetClassItem.js.map +1 -1
- package/dist/esm/models/generated/assetItem.d.ts +8 -3
- package/dist/esm/models/generated/assetItem.js +5 -3
- package/dist/esm/models/generated/assetItem.js.map +1 -1
- package/dist/esm/models/generated/assetType.d.ts +4 -0
- package/dist/esm/models/generated/assetType.js +2 -0
- package/dist/esm/models/generated/assetType.js.map +1 -1
- package/dist/esm/models/generated/assetTypeItem.d.ts +4 -0
- package/dist/esm/models/generated/assetTypeItem.js +2 -0
- package/dist/esm/models/generated/assetTypeItem.js.map +1 -1
- package/dist/esm/services/generated/api/asset.service.d.ts +4 -2
- package/dist/esm/services/generated/api/asset.service.js +11 -3
- package/dist/esm/services/generated/api/asset.service.js.map +1 -1
- package/dist/esm/services/generated/api/storage.service.d.ts +1 -1
- package/dist/esm/services/generated/api/storage.service.js +1 -1
- package/dist/esm/services/generated/api/storage.service.js.map +1 -1
- package/dist/esm/services/generated/models/assetClassCreateData.d.ts +1 -0
- package/dist/esm/services/generated/models/assetClassCreateData.js.map +1 -1
- package/dist/esm/services/generated/models/assetClassUpdateData.d.ts +1 -0
- package/dist/esm/services/generated/models/assetClassUpdateData.js.map +1 -1
- package/dist/esm/services/generated/types/asset.service.types.d.ts +2 -0
- package/dist/esm/services/generated/types/asset.service.types.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,31 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [6.1.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v6.0.0...v6.1.0) (2022-01-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **kelvin-web-sdk:** add a method to set the session configuration ([d8c43a5](https://bitbucket.org/kelvininc/kelvinjs/commits/d8c43a5d1001bc502585c18b882912829574abab))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [6.0.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.9.0...v6.0.0) (2022-01-21)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
* feat!: add device type sorting and filtering [SA-566] ([782f920](https://bitbucket.org/kelvininc/kelvinjs/commits/782f9204fcdf211cc3ad19899e07c837b91e66d9))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### BREAKING CHANGES
|
|
24
|
+
|
|
25
|
+
* Asset Endpoints and some fields changed.
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
6
31
|
# [5.9.0](https://bitbucket.org/kelvininc/kelvinjs/compare/v5.8.0...v5.9.0) (2022-01-07)
|
|
7
32
|
|
|
8
33
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/core/session.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAClC,qCAA0E;AAE1E,uCAA6D;AAE7D,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,qEAAU,CAAA;IACV,2DAAK,CAAA;IACL,yDAAI,CAAA;AACL,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAoBD,SAAgB,YAAY,CAAC,OAAuB;IACnD,MAAM,EAAE,WAAW,EAAE,GAAG,kBAAS,CAAiB,mBAAU,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IAE5E,IAAI,WAAW,EAAE;QAChB,OAAO,CAAC,OAAO,mCAAQ,OAAO,CAAC,OAAO,KAAE,aAAa,EAAE,UAAU,WAAW,EAAE,GAAE,CAAC;KACjF;AACF,CAAC;AAND,oCAMC;AAED,SAAS,QAAQ;IAChB,OAAO,kBAAS,CAAoB,mBAAU,CAAC,cAAc,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,UAAU;IACzB,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAA,CAAC;AAC/B,CAAC;AAHD,gCAGC;AAED,SAAgB,eAAe;IAC9B,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO,EAAE;QACb,OAAO,KAAK,CAAC;KACb;IACD,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;QACxC,OAAO,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;KAC7B;IACD,qGAAqG;IACrG,MAAM,6BAA6B,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAC/D,OAAO,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,GAAG,6BAA6B,CAAC;AAC5E,CAAC;AAXD,0CAWC;AAED,SAAgB,UAAU,CAAC,OAAuB;;IACjD,MAAA,QAAQ,EAAE,0CAAE,GAAG,CAAC,uBAAa,CAAC,aAAa,EAAE,OAAO,EAAE;IACtD,OAAO,kBAAS,CAAC,mBAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC;AAHD,gCAGC;AAED,SAAgB,UAAU;IACzB,OAAO,kBAAS,CAAC,mBAAU,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC;AAFD,gCAEC;AAED,SAAgB,aAAa;;IAC5B,MAAA,QAAQ,EAAE,0CAAE,MAAM,CAAC,uBAAa,CAAC,aAAa,EAAE;IAChD,OAAO,qBAAY,CAAC,mBAAU,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC;AAHD,sCAGC;AAED,MAAa,OAAQ,SAAQ,cAAK;IAWjC,YAAY,KAAsB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IAClC,CAAC;IAED,OAAO;QACN,OAAO;YACN,YAAY,EAAE,aAAa;YAC3B,aAAa,EAAE,cAAc;YAC7B,UAAU,EAAE,WAAW;YACvB,kBAAkB,EAAE,kBAAkB;YACtC,UAAU,EAAE,WAAW;YACvB,mBAAmB,EAAE,iBAAiB;YACtC,aAAa,EAAE,cAAc;YAC7B,KAAK,EAAE,cAAc;SACrB,CAAC;IACH,CAAC;CACD;AA5BD,0BA4BC","sourcesContent":["import { Model } from '../models';\nimport { EConfigKey, getConfig, removeConfig, setConfig } from './config';\nimport { IKvHttpRequest, IKvHttpResponse } from './http';\nimport { EKvStorageKey, IKvStorageAdapter } from './storage';\n\nexport enum ESessionEventType {\n\tRenewError,\n\tRenew,\n\tInit\n}\n\nexport interface ISessionEvent {\n\ttype: ESessionEventType;\n\tsession?: ISessionConfig;\n\terror?: IKvHttpResponse;\n}\n\nexport interface ISessionConfig {\n\taccessToken: string;\n\trefreshToken
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/core/session.ts"],"names":[],"mappings":";;;AAAA,sCAAkC;AAClC,qCAA0E;AAE1E,uCAA6D;AAE7D,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,qEAAU,CAAA;IACV,2DAAK,CAAA;IACL,yDAAI,CAAA;AACL,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAoBD,SAAgB,YAAY,CAAC,OAAuB;IACnD,MAAM,EAAE,WAAW,EAAE,GAAG,kBAAS,CAAiB,mBAAU,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IAE5E,IAAI,WAAW,EAAE;QAChB,OAAO,CAAC,OAAO,mCAAQ,OAAO,CAAC,OAAO,KAAE,aAAa,EAAE,UAAU,WAAW,EAAE,GAAE,CAAC;KACjF;AACF,CAAC;AAND,oCAMC;AAED,SAAS,QAAQ;IAChB,OAAO,kBAAS,CAAoB,mBAAU,CAAC,cAAc,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,UAAU;IACzB,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAA,CAAC;AAC/B,CAAC;AAHD,gCAGC;AAED,SAAgB,eAAe;IAC9B,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO,EAAE;QACb,OAAO,KAAK,CAAC;KACb;IACD,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;QACxC,OAAO,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;KAC7B;IACD,qGAAqG;IACrG,MAAM,6BAA6B,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAC/D,OAAO,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,GAAG,6BAA6B,CAAC;AAC5E,CAAC;AAXD,0CAWC;AAED,SAAgB,UAAU,CAAC,OAAuB;;IACjD,MAAA,QAAQ,EAAE,0CAAE,GAAG,CAAC,uBAAa,CAAC,aAAa,EAAE,OAAO,EAAE;IACtD,OAAO,kBAAS,CAAC,mBAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC;AAHD,gCAGC;AAED,SAAgB,UAAU;IACzB,OAAO,kBAAS,CAAC,mBAAU,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC;AAFD,gCAEC;AAED,SAAgB,aAAa;;IAC5B,MAAA,QAAQ,EAAE,0CAAE,MAAM,CAAC,uBAAa,CAAC,aAAa,EAAE;IAChD,OAAO,qBAAY,CAAC,mBAAU,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC;AAHD,sCAGC;AAED,MAAa,OAAQ,SAAQ,cAAK;IAWjC,YAAY,KAAsB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IAClC,CAAC;IAED,OAAO;QACN,OAAO;YACN,YAAY,EAAE,aAAa;YAC3B,aAAa,EAAE,cAAc;YAC7B,UAAU,EAAE,WAAW;YACvB,kBAAkB,EAAE,kBAAkB;YACtC,UAAU,EAAE,WAAW;YACvB,mBAAmB,EAAE,iBAAiB;YACtC,aAAa,EAAE,cAAc;YAC7B,KAAK,EAAE,cAAc;SACrB,CAAC;IACH,CAAC;CACD;AA5BD,0BA4BC","sourcesContent":["import { Model } from '../models';\nimport { EConfigKey, getConfig, removeConfig, setConfig } from './config';\nimport { IKvHttpRequest, IKvHttpResponse } from './http';\nimport { EKvStorageKey, IKvStorageAdapter } from './storage';\n\nexport enum ESessionEventType {\n\tRenewError,\n\tRenew,\n\tInit\n}\n\nexport interface ISessionEvent {\n\ttype: ESessionEventType;\n\tsession?: ISessionConfig;\n\terror?: IKvHttpResponse;\n}\n\nexport interface ISessionConfig {\n\taccessToken: string;\n\trefreshToken?: string;\n\texpiresIn?: number;\n\trefreshExpiresIn?: number;\n\ttokenType?: string;\n\tnotBeforePolicy?: number;\n\tsessionState?: string;\n\tscope?: string;\n\tdate?: number;\n}\n\nexport function setAuthToken(request: IKvHttpRequest) {\n\tconst { accessToken } = getConfig<ISessionConfig>(EConfigKey.Session) || {};\n\n\tif (accessToken) {\n\t\trequest.headers = { ...request.headers, authorization: `bearer ${accessToken}` };\n\t}\n}\n\nfunction getStore(): IKvStorageAdapter {\n\treturn getConfig<IKvStorageAdapter>(EConfigKey.StorageAdapter);\n}\n\nexport function hasSession() {\n\tconst session = getSession();\n\treturn !!session?.accessToken;\n}\n\nexport function hasValidSession(): boolean {\n\tconst session = getSession();\n\tif (!session) {\n\t\treturn false;\n\t}\n\tif (!session.date || !session.expiresIn) {\n\t\treturn !!session.accessToken;\n\t}\n\t// session.expiresIn is in seconds so this var is to name the conversion from seconds to milliseconds\n\tconst sessionDurationInMilliseconds = session.expiresIn * 1000;\n\treturn new Date().getTime() - session.date < sessionDurationInMilliseconds;\n}\n\nexport function setSession(session: ISessionConfig) {\n\tgetStore()?.set(EKvStorageKey.kelvinSession, session);\n\treturn setConfig(EConfigKey.Session, session);\n}\n\nexport function getSession(): ISessionConfig {\n\treturn getConfig(EConfigKey.Session);\n}\n\nexport function removeSession(): boolean {\n\tgetStore()?.remove(EKvStorageKey.kelvinSession);\n\treturn removeConfig(EConfigKey.Session);\n}\n\nexport class Session extends Model {\n\taccessToken: string;\n\trefreshToken: string;\n\texpiresIn: number;\n\trefreshExpiresIn: number;\n\ttokenType: string;\n\tnotBeforePolicy: number;\n\tsessionState: string;\n\tscope: string;\n\tdate: number;\n\n\tconstructor(model?: ISessionConfig) {\n\t\tsuper(model);\n\t\tthis.date = new Date().getTime();\n\t}\n\n\tmapping(): { [key: string]: Object } {\n\t\treturn {\n\t\t\taccess_token: 'accessToken',\n\t\t\trefresh_token: 'refreshToken',\n\t\t\texpires_in: 'expiresIn',\n\t\t\trefresh_expires_in: 'refreshExpiresIn',\n\t\t\ttoken_type: 'tokenType',\n\t\t\t'not-before-policy': 'notBeforePolicy',\n\t\t\tsession_state: 'sessionState',\n\t\t\tscope: 'sessionState'\n\t\t};\n\t}\n}\n"]}
|
|
@@ -13,12 +13,14 @@ export interface IAsset {
|
|
|
13
13
|
name?: string;
|
|
14
14
|
created?: Date | string;
|
|
15
15
|
hierarchy?: Array<Asset | IAsset>;
|
|
16
|
-
|
|
16
|
+
asset_class_name?: string;
|
|
17
17
|
device_type_title?: string;
|
|
18
18
|
failure_detection?: FailureDetection | IFailureDetection;
|
|
19
|
+
title?: string;
|
|
19
20
|
location?: AssetLocationItem | IAssetLocationItem;
|
|
20
21
|
asset_type_title?: string;
|
|
21
22
|
device_type_name?: string;
|
|
23
|
+
asset_class_title?: string;
|
|
22
24
|
properties?: Array<AssetProperty | IAssetProperty>;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
@@ -31,12 +33,14 @@ export declare class Asset extends Model {
|
|
|
31
33
|
name: string;
|
|
32
34
|
created: Date;
|
|
33
35
|
hierarchy: Array<Asset>;
|
|
34
|
-
|
|
36
|
+
assetClassName: string;
|
|
35
37
|
deviceTypeTitle: string;
|
|
36
38
|
failureDetection: FailureDetection;
|
|
39
|
+
title: string;
|
|
37
40
|
location: AssetLocationItem;
|
|
38
41
|
assetTypeTitle: string;
|
|
39
42
|
deviceTypeName: string;
|
|
43
|
+
assetClassTitle: string;
|
|
40
44
|
properties: Array<AssetProperty>;
|
|
41
45
|
constructor(model?: IAsset);
|
|
42
46
|
mapping(): {
|
|
@@ -21,12 +21,14 @@ class Asset extends model_1.Model {
|
|
|
21
21
|
name: 'name',
|
|
22
22
|
created: ['created', Date],
|
|
23
23
|
hierarchy: ['hierarchy', Asset],
|
|
24
|
-
|
|
24
|
+
asset_class_name: 'assetClassName',
|
|
25
25
|
device_type_title: 'deviceTypeTitle',
|
|
26
26
|
failure_detection: ['failureDetection', failureDetection_1.FailureDetection],
|
|
27
|
+
title: 'title',
|
|
27
28
|
location: ['location', assetLocationItem_1.AssetLocationItem],
|
|
28
29
|
asset_type_title: 'assetTypeTitle',
|
|
29
30
|
device_type_name: 'deviceTypeName',
|
|
31
|
+
asset_class_title: 'assetClassTitle',
|
|
30
32
|
properties: ['properties', assetProperty_1.AssetProperty]
|
|
31
33
|
};
|
|
32
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.js","sourceRoot":"","sources":["../../../../src/models/generated/asset.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;AACjC,2DAA4E;AAC5E,mDAAgE;AAChE,uDAAsE;AACtE,yDAAyE;
|
|
1
|
+
{"version":3,"file":"asset.js","sourceRoot":"","sources":["../../../../src/models/generated/asset.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;AACjC,2DAA4E;AAC5E,mDAAgE;AAChE,uDAAsE;AACtE,yDAAyE;AAuBzE;;GAEG;AACH,MAAa,KAAM,SAAQ,aAAK;IAiB/B,YAAY,KAAc;QACzB,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC;IAED,OAAO;QACN,OAAO;YACN,eAAe,EAAE,eAAe;YAChC,MAAM,EAAE,CAAC,QAAQ,EAAE,iCAAe,CAAC;YACnC,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,SAAS,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC;YAC/B,gBAAgB,EAAE,gBAAgB;YAClC,iBAAiB,EAAE,iBAAiB;YACpC,iBAAiB,EAAE,CAAC,kBAAkB,EAAE,mCAAgB,CAAC;YACzD,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,CAAC,UAAU,EAAE,qCAAiB,CAAC;YACzC,gBAAgB,EAAE,gBAAgB;YAClC,gBAAgB,EAAE,gBAAgB;YAClC,iBAAiB,EAAE,iBAAiB;YACpC,UAAU,EAAE,CAAC,YAAY,EAAE,6BAAa,CAAC;SACzC,CAAC;IACH,CAAC;CACD;AAxCD,sBAwCC","sourcesContent":["import { Model } from '../model';\nimport { AssetLocationItem, IAssetLocationItem } from './assetLocationItem';\nimport { AssetProperty, IAssetProperty } from './assetProperty';\nimport { AssetStatusItem, IAssetStatusItem } from './assetStatusItem';\nimport { FailureDetection, IFailureDetection } from './failureDetection';\n\n/**\n * @category Service Response Model\n */\nexport interface IAsset {\n\tasset_type_name?: string;\n\tstatus?: AssetStatusItem | IAssetStatusItem;\n\tupdated?: Date | string;\n\tname?: string;\n\tcreated?: Date | string;\n\thierarchy?: Array<Asset | IAsset>;\n\tasset_class_name?: string;\n\tdevice_type_title?: string;\n\tfailure_detection?: FailureDetection | IFailureDetection;\n\ttitle?: string;\n\tlocation?: AssetLocationItem | IAssetLocationItem;\n\tasset_type_title?: string;\n\tdevice_type_name?: string;\n\tasset_class_title?: string;\n\tproperties?: Array<AssetProperty | IAssetProperty>;\n}\n\n/**\n * @category Service Response Model Object\n */\nexport class Asset extends Model {\n\tassetTypeName: string;\n\tstatus: AssetStatusItem;\n\tupdated: Date;\n\tname: string;\n\tcreated: Date;\n\thierarchy: Array<Asset>;\n\tassetClassName: string;\n\tdeviceTypeTitle: string;\n\tfailureDetection: FailureDetection;\n\ttitle: string;\n\tlocation: AssetLocationItem;\n\tassetTypeTitle: string;\n\tdeviceTypeName: string;\n\tassetClassTitle: string;\n\tproperties: Array<AssetProperty>;\n\n\tconstructor(model?: IAsset) {\n\t\tsuper(model);\n\t}\n\n\tmapping(): { [key: string]: Object } {\n\t\treturn {\n\t\t\tasset_type_name: 'assetTypeName',\n\t\t\tstatus: ['status', AssetStatusItem],\n\t\t\tupdated: ['updated', Date],\n\t\t\tname: 'name',\n\t\t\tcreated: ['created', Date],\n\t\t\thierarchy: ['hierarchy', Asset],\n\t\t\tasset_class_name: 'assetClassName',\n\t\t\tdevice_type_title: 'deviceTypeTitle',\n\t\t\tfailure_detection: ['failureDetection', FailureDetection],\n\t\t\ttitle: 'title',\n\t\t\tlocation: ['location', AssetLocationItem],\n\t\t\tasset_type_title: 'assetTypeTitle',\n\t\t\tdevice_type_name: 'deviceTypeName',\n\t\t\tasset_class_title: 'assetClassTitle',\n\t\t\tproperties: ['properties', AssetProperty]\n\t\t};\n\t}\n}\n"]}
|
|
@@ -3,21 +3,25 @@ import { Model } from '../model';
|
|
|
3
3
|
* @category Service Response Model
|
|
4
4
|
*/
|
|
5
5
|
export interface IAssetClass {
|
|
6
|
-
owner?: string;
|
|
7
6
|
updated?: Date | string;
|
|
8
|
-
title?: string;
|
|
9
7
|
name?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
device_type_title?: string;
|
|
10
10
|
created?: Date | string;
|
|
11
|
+
owner?: string;
|
|
12
|
+
device_type_name?: string;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* @category Service Response Model Object
|
|
14
16
|
*/
|
|
15
17
|
export declare class AssetClass extends Model {
|
|
16
|
-
owner: string;
|
|
17
18
|
updated: Date;
|
|
18
|
-
title: string;
|
|
19
19
|
name: string;
|
|
20
|
+
title: string;
|
|
21
|
+
deviceTypeTitle: string;
|
|
20
22
|
created: Date;
|
|
23
|
+
owner: string;
|
|
24
|
+
deviceTypeName: string;
|
|
21
25
|
constructor(model?: IAssetClass);
|
|
22
26
|
mapping(): {
|
|
23
27
|
[key: string]: Object;
|
|
@@ -11,11 +11,13 @@ class AssetClass extends model_1.Model {
|
|
|
11
11
|
}
|
|
12
12
|
mapping() {
|
|
13
13
|
return {
|
|
14
|
-
owner: 'owner',
|
|
15
14
|
updated: ['updated', Date],
|
|
16
|
-
title: 'title',
|
|
17
15
|
name: 'name',
|
|
18
|
-
|
|
16
|
+
title: 'title',
|
|
17
|
+
device_type_title: 'deviceTypeTitle',
|
|
18
|
+
created: ['created', Date],
|
|
19
|
+
owner: 'owner',
|
|
20
|
+
device_type_name: 'deviceTypeName'
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetClass.js","sourceRoot":"","sources":["../../../../src/models/generated/assetClass.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;
|
|
1
|
+
{"version":3,"file":"assetClass.js","sourceRoot":"","sources":["../../../../src/models/generated/assetClass.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;AAejC;;GAEG;AACH,MAAa,UAAW,SAAQ,aAAK;IASpC,YAAY,KAAmB;QAC9B,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC;IAED,OAAO;QACN,OAAO;YACN,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,iBAAiB,EAAE,iBAAiB;YACpC,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,KAAK,EAAE,OAAO;YACd,gBAAgB,EAAE,gBAAgB;SAClC,CAAC;IACH,CAAC;CACD;AAxBD,gCAwBC","sourcesContent":["import { Model } from '../model';\n\n/**\n * @category Service Response Model\n */\nexport interface IAssetClass {\n\tupdated?: Date | string;\n\tname?: string;\n\ttitle?: string;\n\tdevice_type_title?: string;\n\tcreated?: Date | string;\n\towner?: string;\n\tdevice_type_name?: string;\n}\n\n/**\n * @category Service Response Model Object\n */\nexport class AssetClass extends Model {\n\tupdated: Date;\n\tname: string;\n\ttitle: string;\n\tdeviceTypeTitle: string;\n\tcreated: Date;\n\towner: string;\n\tdeviceTypeName: string;\n\n\tconstructor(model?: IAssetClass) {\n\t\tsuper(model);\n\t}\n\n\tmapping(): { [key: string]: Object } {\n\t\treturn {\n\t\t\tupdated: ['updated', Date],\n\t\t\tname: 'name',\n\t\t\ttitle: 'title',\n\t\t\tdevice_type_title: 'deviceTypeTitle',\n\t\t\tcreated: ['created', Date],\n\t\t\towner: 'owner',\n\t\t\tdevice_type_name: 'deviceTypeName'\n\t\t};\n\t}\n}\n"]}
|
|
@@ -3,21 +3,25 @@ import { Model } from '../model';
|
|
|
3
3
|
* @category Service Response Model
|
|
4
4
|
*/
|
|
5
5
|
export interface IAssetClassItem {
|
|
6
|
-
owner?: string;
|
|
7
6
|
updated?: Date | string;
|
|
8
|
-
title?: string;
|
|
9
7
|
name?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
device_type_title?: string;
|
|
10
10
|
created?: Date | string;
|
|
11
|
+
owner?: string;
|
|
12
|
+
device_type_name?: string;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* @category Service Response Model Object
|
|
14
16
|
*/
|
|
15
17
|
export declare class AssetClassItem extends Model {
|
|
16
|
-
owner: string;
|
|
17
18
|
updated: Date;
|
|
18
|
-
title: string;
|
|
19
19
|
name: string;
|
|
20
|
+
title: string;
|
|
21
|
+
deviceTypeTitle: string;
|
|
20
22
|
created: Date;
|
|
23
|
+
owner: string;
|
|
24
|
+
deviceTypeName: string;
|
|
21
25
|
constructor(model?: IAssetClassItem);
|
|
22
26
|
mapping(): {
|
|
23
27
|
[key: string]: Object;
|
|
@@ -11,11 +11,13 @@ class AssetClassItem extends model_1.Model {
|
|
|
11
11
|
}
|
|
12
12
|
mapping() {
|
|
13
13
|
return {
|
|
14
|
-
owner: 'owner',
|
|
15
14
|
updated: ['updated', Date],
|
|
16
|
-
title: 'title',
|
|
17
15
|
name: 'name',
|
|
18
|
-
|
|
16
|
+
title: 'title',
|
|
17
|
+
device_type_title: 'deviceTypeTitle',
|
|
18
|
+
created: ['created', Date],
|
|
19
|
+
owner: 'owner',
|
|
20
|
+
device_type_name: 'deviceTypeName'
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetClassItem.js","sourceRoot":"","sources":["../../../../src/models/generated/assetClassItem.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;
|
|
1
|
+
{"version":3,"file":"assetClassItem.js","sourceRoot":"","sources":["../../../../src/models/generated/assetClassItem.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;AAejC;;GAEG;AACH,MAAa,cAAe,SAAQ,aAAK;IASxC,YAAY,KAAuB;QAClC,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC;IAED,OAAO;QACN,OAAO;YACN,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,iBAAiB,EAAE,iBAAiB;YACpC,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,KAAK,EAAE,OAAO;YACd,gBAAgB,EAAE,gBAAgB;SAClC,CAAC;IACH,CAAC;CACD;AAxBD,wCAwBC","sourcesContent":["import { Model } from '../model';\n\n/**\n * @category Service Response Model\n */\nexport interface IAssetClassItem {\n\tupdated?: Date | string;\n\tname?: string;\n\ttitle?: string;\n\tdevice_type_title?: string;\n\tcreated?: Date | string;\n\towner?: string;\n\tdevice_type_name?: string;\n}\n\n/**\n * @category Service Response Model Object\n */\nexport class AssetClassItem extends Model {\n\tupdated: Date;\n\tname: string;\n\ttitle: string;\n\tdeviceTypeTitle: string;\n\tcreated: Date;\n\towner: string;\n\tdeviceTypeName: string;\n\n\tconstructor(model?: IAssetClassItem) {\n\t\tsuper(model);\n\t}\n\n\tmapping(): { [key: string]: Object } {\n\t\treturn {\n\t\t\tupdated: ['updated', Date],\n\t\t\tname: 'name',\n\t\t\ttitle: 'title',\n\t\t\tdevice_type_title: 'deviceTypeTitle',\n\t\t\tcreated: ['created', Date],\n\t\t\towner: 'owner',\n\t\t\tdevice_type_name: 'deviceTypeName'\n\t\t};\n\t}\n}\n"]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Model } from '../model';
|
|
2
2
|
import { AssetStatusItem, IAssetStatusItem } from './assetStatusItem';
|
|
3
|
-
import { FailureDetection, IFailureDetection } from './failureDetection';
|
|
4
3
|
/**
|
|
5
4
|
* @category Service Response Model
|
|
6
5
|
*/
|
|
@@ -10,9 +9,12 @@ export interface IAssetItem {
|
|
|
10
9
|
updated?: Date | string;
|
|
11
10
|
name?: string;
|
|
12
11
|
created?: Date | string;
|
|
12
|
+
asset_class_name?: string;
|
|
13
|
+
device_type_title?: string;
|
|
13
14
|
title?: string;
|
|
14
|
-
|
|
15
|
+
asset_type_title?: string;
|
|
15
16
|
device_type_name?: string;
|
|
17
|
+
asset_class_title?: string;
|
|
16
18
|
}
|
|
17
19
|
/**
|
|
18
20
|
* @category Service Response Model Object
|
|
@@ -23,9 +25,12 @@ export declare class AssetItem extends Model {
|
|
|
23
25
|
updated: Date;
|
|
24
26
|
name: string;
|
|
25
27
|
created: Date;
|
|
28
|
+
assetClassName: string;
|
|
29
|
+
deviceTypeTitle: string;
|
|
26
30
|
title: string;
|
|
27
|
-
|
|
31
|
+
assetTypeTitle: string;
|
|
28
32
|
deviceTypeName: string;
|
|
33
|
+
assetClassTitle: string;
|
|
29
34
|
constructor(model?: IAssetItem);
|
|
30
35
|
mapping(): {
|
|
31
36
|
[key: string]: Object;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AssetItem = void 0;
|
|
4
4
|
const model_1 = require("../model");
|
|
5
5
|
const assetStatusItem_1 = require("./assetStatusItem");
|
|
6
|
-
const failureDetection_1 = require("./failureDetection");
|
|
7
6
|
/**
|
|
8
7
|
* @category Service Response Model Object
|
|
9
8
|
*/
|
|
@@ -18,9 +17,12 @@ class AssetItem extends model_1.Model {
|
|
|
18
17
|
updated: ['updated', Date],
|
|
19
18
|
name: 'name',
|
|
20
19
|
created: ['created', Date],
|
|
20
|
+
asset_class_name: 'assetClassName',
|
|
21
|
+
device_type_title: 'deviceTypeTitle',
|
|
21
22
|
title: 'title',
|
|
22
|
-
|
|
23
|
-
device_type_name: 'deviceTypeName'
|
|
23
|
+
asset_type_title: 'assetTypeTitle',
|
|
24
|
+
device_type_name: 'deviceTypeName',
|
|
25
|
+
asset_class_title: 'assetClassTitle'
|
|
24
26
|
};
|
|
25
27
|
}
|
|
26
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetItem.js","sourceRoot":"","sources":["../../../../src/models/generated/assetItem.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;AACjC,uDAAsE;
|
|
1
|
+
{"version":3,"file":"assetItem.js","sourceRoot":"","sources":["../../../../src/models/generated/assetItem.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;AACjC,uDAAsE;AAmBtE;;GAEG;AACH,MAAa,SAAU,SAAQ,aAAK;IAanC,YAAY,KAAkB;QAC7B,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC;IAED,OAAO;QACN,OAAO;YACN,eAAe,EAAE,eAAe;YAChC,MAAM,EAAE,CAAC,QAAQ,EAAE,iCAAe,CAAC;YACnC,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,gBAAgB,EAAE,gBAAgB;YAClC,iBAAiB,EAAE,iBAAiB;YACpC,KAAK,EAAE,OAAO;YACd,gBAAgB,EAAE,gBAAgB;YAClC,gBAAgB,EAAE,gBAAgB;YAClC,iBAAiB,EAAE,iBAAiB;SACpC,CAAC;IACH,CAAC;CACD;AAhCD,8BAgCC","sourcesContent":["import { Model } from '../model';\nimport { AssetStatusItem, IAssetStatusItem } from './assetStatusItem';\n\n/**\n * @category Service Response Model\n */\nexport interface IAssetItem {\n\tasset_type_name?: string;\n\tstatus?: AssetStatusItem | IAssetStatusItem;\n\tupdated?: Date | string;\n\tname?: string;\n\tcreated?: Date | string;\n\tasset_class_name?: string;\n\tdevice_type_title?: string;\n\ttitle?: string;\n\tasset_type_title?: string;\n\tdevice_type_name?: string;\n\tasset_class_title?: string;\n}\n\n/**\n * @category Service Response Model Object\n */\nexport class AssetItem extends Model {\n\tassetTypeName: string;\n\tstatus: AssetStatusItem;\n\tupdated: Date;\n\tname: string;\n\tcreated: Date;\n\tassetClassName: string;\n\tdeviceTypeTitle: string;\n\ttitle: string;\n\tassetTypeTitle: string;\n\tdeviceTypeName: string;\n\tassetClassTitle: string;\n\n\tconstructor(model?: IAssetItem) {\n\t\tsuper(model);\n\t}\n\n\tmapping(): { [key: string]: Object } {\n\t\treturn {\n\t\t\tasset_type_name: 'assetTypeName',\n\t\t\tstatus: ['status', AssetStatusItem],\n\t\t\tupdated: ['updated', Date],\n\t\t\tname: 'name',\n\t\t\tcreated: ['created', Date],\n\t\t\tasset_class_name: 'assetClassName',\n\t\t\tdevice_type_title: 'deviceTypeTitle',\n\t\t\ttitle: 'title',\n\t\t\tasset_type_title: 'assetTypeTitle',\n\t\t\tdevice_type_name: 'deviceTypeName',\n\t\t\tasset_class_title: 'assetClassTitle'\n\t\t};\n\t}\n}\n"]}
|
|
@@ -8,8 +8,10 @@ export interface IAssetType {
|
|
|
8
8
|
created?: Date | string;
|
|
9
9
|
asset_class_name?: string;
|
|
10
10
|
title?: string;
|
|
11
|
+
asset_class_device_type_title?: string;
|
|
11
12
|
owner?: string;
|
|
12
13
|
asset_class_title?: string;
|
|
14
|
+
asset_class_device_type_name?: string;
|
|
13
15
|
metadata?: any;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
@@ -21,8 +23,10 @@ export declare class AssetType extends Model {
|
|
|
21
23
|
created: Date;
|
|
22
24
|
assetClassName: string;
|
|
23
25
|
title: string;
|
|
26
|
+
assetClassDeviceTypeTitle: string;
|
|
24
27
|
owner: string;
|
|
25
28
|
assetClassTitle: string;
|
|
29
|
+
assetClassDeviceTypeName: string;
|
|
26
30
|
metadata: any;
|
|
27
31
|
constructor(model?: IAssetType);
|
|
28
32
|
mapping(): {
|
|
@@ -16,8 +16,10 @@ class AssetType extends model_1.Model {
|
|
|
16
16
|
created: ['created', Date],
|
|
17
17
|
asset_class_name: 'assetClassName',
|
|
18
18
|
title: 'title',
|
|
19
|
+
asset_class_device_type_title: 'assetClassDeviceTypeTitle',
|
|
19
20
|
owner: 'owner',
|
|
20
21
|
asset_class_title: 'assetClassTitle',
|
|
22
|
+
asset_class_device_type_name: 'assetClassDeviceTypeName',
|
|
21
23
|
metadata: 'metadata'
|
|
22
24
|
};
|
|
23
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetType.js","sourceRoot":"","sources":["../../../../src/models/generated/assetType.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;
|
|
1
|
+
{"version":3,"file":"assetType.js","sourceRoot":"","sources":["../../../../src/models/generated/assetType.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;AAkBjC;;GAEG;AACH,MAAa,SAAU,SAAQ,aAAK;IAYnC,YAAY,KAAkB;QAC7B,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC;IAED,OAAO;QACN,OAAO;YACN,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,gBAAgB,EAAE,gBAAgB;YAClC,KAAK,EAAE,OAAO;YACd,6BAA6B,EAAE,2BAA2B;YAC1D,KAAK,EAAE,OAAO;YACd,iBAAiB,EAAE,iBAAiB;YACpC,4BAA4B,EAAE,0BAA0B;YACxD,QAAQ,EAAE,UAAU;SACpB,CAAC;IACH,CAAC;CACD;AA9BD,8BA8BC","sourcesContent":["import { Model } from '../model';\n\n/**\n * @category Service Response Model\n */\nexport interface IAssetType {\n\tupdated?: Date | string;\n\tname?: string;\n\tcreated?: Date | string;\n\tasset_class_name?: string;\n\ttitle?: string;\n\tasset_class_device_type_title?: string;\n\towner?: string;\n\tasset_class_title?: string;\n\tasset_class_device_type_name?: string;\n\tmetadata?: any;\n}\n\n/**\n * @category Service Response Model Object\n */\nexport class AssetType extends Model {\n\tupdated: Date;\n\tname: string;\n\tcreated: Date;\n\tassetClassName: string;\n\ttitle: string;\n\tassetClassDeviceTypeTitle: string;\n\towner: string;\n\tassetClassTitle: string;\n\tassetClassDeviceTypeName: string;\n\tmetadata: any;\n\n\tconstructor(model?: IAssetType) {\n\t\tsuper(model);\n\t}\n\n\tmapping(): { [key: string]: Object } {\n\t\treturn {\n\t\t\tupdated: ['updated', Date],\n\t\t\tname: 'name',\n\t\t\tcreated: ['created', Date],\n\t\t\tasset_class_name: 'assetClassName',\n\t\t\ttitle: 'title',\n\t\t\tasset_class_device_type_title: 'assetClassDeviceTypeTitle',\n\t\t\towner: 'owner',\n\t\t\tasset_class_title: 'assetClassTitle',\n\t\t\tasset_class_device_type_name: 'assetClassDeviceTypeName',\n\t\t\tmetadata: 'metadata'\n\t\t};\n\t}\n}\n"]}
|
|
@@ -8,8 +8,10 @@ export interface IAssetTypeItem {
|
|
|
8
8
|
created?: Date | string;
|
|
9
9
|
asset_class_name?: string;
|
|
10
10
|
title?: string;
|
|
11
|
+
asset_class_device_type_title?: string;
|
|
11
12
|
owner?: string;
|
|
12
13
|
asset_class_title?: string;
|
|
14
|
+
asset_class_device_type_name?: string;
|
|
13
15
|
metadata?: any;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
@@ -21,8 +23,10 @@ export declare class AssetTypeItem extends Model {
|
|
|
21
23
|
created: Date;
|
|
22
24
|
assetClassName: string;
|
|
23
25
|
title: string;
|
|
26
|
+
assetClassDeviceTypeTitle: string;
|
|
24
27
|
owner: string;
|
|
25
28
|
assetClassTitle: string;
|
|
29
|
+
assetClassDeviceTypeName: string;
|
|
26
30
|
metadata: any;
|
|
27
31
|
constructor(model?: IAssetTypeItem);
|
|
28
32
|
mapping(): {
|
|
@@ -16,8 +16,10 @@ class AssetTypeItem extends model_1.Model {
|
|
|
16
16
|
created: ['created', Date],
|
|
17
17
|
asset_class_name: 'assetClassName',
|
|
18
18
|
title: 'title',
|
|
19
|
+
asset_class_device_type_title: 'assetClassDeviceTypeTitle',
|
|
19
20
|
owner: 'owner',
|
|
20
21
|
asset_class_title: 'assetClassTitle',
|
|
22
|
+
asset_class_device_type_name: 'assetClassDeviceTypeName',
|
|
21
23
|
metadata: 'metadata'
|
|
22
24
|
};
|
|
23
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetTypeItem.js","sourceRoot":"","sources":["../../../../src/models/generated/assetTypeItem.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;
|
|
1
|
+
{"version":3,"file":"assetTypeItem.js","sourceRoot":"","sources":["../../../../src/models/generated/assetTypeItem.ts"],"names":[],"mappings":";;;AAAA,oCAAiC;AAkBjC;;GAEG;AACH,MAAa,aAAc,SAAQ,aAAK;IAYvC,YAAY,KAAsB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC;IAED,OAAO;QACN,OAAO;YACN,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;YAC1B,gBAAgB,EAAE,gBAAgB;YAClC,KAAK,EAAE,OAAO;YACd,6BAA6B,EAAE,2BAA2B;YAC1D,KAAK,EAAE,OAAO;YACd,iBAAiB,EAAE,iBAAiB;YACpC,4BAA4B,EAAE,0BAA0B;YACxD,QAAQ,EAAE,UAAU;SACpB,CAAC;IACH,CAAC;CACD;AA9BD,sCA8BC","sourcesContent":["import { Model } from '../model';\n\n/**\n * @category Service Response Model\n */\nexport interface IAssetTypeItem {\n\tupdated?: Date | string;\n\tname?: string;\n\tcreated?: Date | string;\n\tasset_class_name?: string;\n\ttitle?: string;\n\tasset_class_device_type_title?: string;\n\towner?: string;\n\tasset_class_title?: string;\n\tasset_class_device_type_name?: string;\n\tmetadata?: any;\n}\n\n/**\n * @category Service Response Model Object\n */\nexport class AssetTypeItem extends Model {\n\tupdated: Date;\n\tname: string;\n\tcreated: Date;\n\tassetClassName: string;\n\ttitle: string;\n\tassetClassDeviceTypeTitle: string;\n\towner: string;\n\tassetClassTitle: string;\n\tassetClassDeviceTypeName: string;\n\tmetadata: any;\n\n\tconstructor(model?: IAssetTypeItem) {\n\t\tsuper(model);\n\t}\n\n\tmapping(): { [key: string]: Object } {\n\t\treturn {\n\t\t\tupdated: ['updated', Date],\n\t\t\tname: 'name',\n\t\t\tcreated: ['created', Date],\n\t\t\tasset_class_name: 'assetClassName',\n\t\t\ttitle: 'title',\n\t\t\tasset_class_device_type_title: 'assetClassDeviceTypeTitle',\n\t\t\towner: 'owner',\n\t\t\tasset_class_title: 'assetClassTitle',\n\t\t\tasset_class_device_type_name: 'assetClassDeviceTypeName',\n\t\t\tmetadata: 'metadata'\n\t\t};\n\t}\n}\n"]}
|
|
@@ -162,9 +162,10 @@ export declare class AssetService extends BaseService {
|
|
|
162
162
|
* @param sortBy Parameter to sort by. Must be one of the sortable columns
|
|
163
163
|
* @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true
|
|
164
164
|
* @param owner Filter Asset Class by owner. Possible Values: kelvin/custom
|
|
165
|
+
* @param deviceTypeName Filter by Asset Class' Device Type Name
|
|
165
166
|
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
166
167
|
*/
|
|
167
|
-
static listAssetClass({ search, pageSize, startingAfter, endingBefore, sortBy, sortAsc, owner }?: IListAssetClassParams, options?: IKvHttpRequestOptions): Observable<AssetClassListPaginated>;
|
|
168
|
+
static listAssetClass({ search, pageSize, startingAfter, endingBefore, sortBy, sortAsc, owner, deviceTypeName }?: IListAssetClassParams, options?: IKvHttpRequestOptions): Observable<AssetClassListPaginated>;
|
|
168
169
|
/**
|
|
169
170
|
* List Asset Hierarchies
|
|
170
171
|
* List Asset Hierarchies **Permission Required:** `kelvin.permission.asset.read`
|
|
@@ -200,9 +201,10 @@ export declare class AssetService extends BaseService {
|
|
|
200
201
|
* @param sortBy Parameter to sort by. Must be one of the sortable columns
|
|
201
202
|
* @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true
|
|
202
203
|
* @param owner Filter Asset Class by owner. Possible Values: kelvin/custom
|
|
204
|
+
* @param deviceTypeName Filter by Device Type Name
|
|
203
205
|
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
204
206
|
*/
|
|
205
|
-
static listAssetType({ search, assetClassName, metadata, metadataFilter, pageSize, startingAfter, endingBefore, sortBy, sortAsc, owner }?: IListAssetTypeParams, options?: IKvHttpRequestOptions): Observable<AssetTypeListPaginated>;
|
|
207
|
+
static listAssetType({ search, assetClassName, metadata, metadataFilter, pageSize, startingAfter, endingBefore, sortBy, sortAsc, owner, deviceTypeName }?: IListAssetTypeParams, options?: IKvHttpRequestOptions): Observable<AssetTypeListPaginated>;
|
|
206
208
|
/**
|
|
207
209
|
* List Asset Type Metadata
|
|
208
210
|
* List Asset Type Metadata **Pagination Sortable Columns:** `asset_type_metadata.name` **Permission Required:** `kelvin.permission.asset_type.read`
|
|
@@ -232,7 +232,7 @@ class AssetService extends base_service_1.BaseService {
|
|
|
232
232
|
};
|
|
233
233
|
requestConfig.mediaType = 'application/json';
|
|
234
234
|
requestConfig.options = options;
|
|
235
|
-
return this.request(`/assets/status/get`, requestConfig, models_1.AssetStatus);
|
|
235
|
+
return this.request(`/assets/status/current/get`, requestConfig, models_1.AssetStatus);
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
238
|
* Get Asset Template
|
|
@@ -344,9 +344,10 @@ class AssetService extends base_service_1.BaseService {
|
|
|
344
344
|
* @param sortBy Parameter to sort by. Must be one of the sortable columns
|
|
345
345
|
* @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true
|
|
346
346
|
* @param owner Filter Asset Class by owner. Possible Values: kelvin/custom
|
|
347
|
+
* @param deviceTypeName Filter by Asset Class' Device Type Name
|
|
347
348
|
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
348
349
|
*/
|
|
349
|
-
static listAssetClass({ search, pageSize, startingAfter, endingBefore, sortBy, sortAsc, owner } = {}, options) {
|
|
350
|
+
static listAssetClass({ search, pageSize, startingAfter, endingBefore, sortBy, sortAsc, owner, deviceTypeName } = {}, options) {
|
|
350
351
|
const requestConfig = {
|
|
351
352
|
method: 'get'
|
|
352
353
|
};
|
|
@@ -372,6 +373,9 @@ class AssetService extends base_service_1.BaseService {
|
|
|
372
373
|
if (owner != null) {
|
|
373
374
|
queryParameters['owner'] = owner;
|
|
374
375
|
}
|
|
376
|
+
if (deviceTypeName != null) {
|
|
377
|
+
queryParameters['device_type_name'] = deviceTypeName;
|
|
378
|
+
}
|
|
375
379
|
requestConfig.params = queryParameters;
|
|
376
380
|
requestConfig.mediaType = 'application/json';
|
|
377
381
|
requestConfig.options = options;
|
|
@@ -458,9 +462,10 @@ class AssetService extends base_service_1.BaseService {
|
|
|
458
462
|
* @param sortBy Parameter to sort by. Must be one of the sortable columns
|
|
459
463
|
* @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true
|
|
460
464
|
* @param owner Filter Asset Class by owner. Possible Values: kelvin/custom
|
|
465
|
+
* @param deviceTypeName Filter by Device Type Name
|
|
461
466
|
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
462
467
|
*/
|
|
463
|
-
static listAssetType({ search, assetClassName, metadata, metadataFilter, pageSize, startingAfter, endingBefore, sortBy, sortAsc, owner } = {}, options) {
|
|
468
|
+
static listAssetType({ search, assetClassName, metadata, metadataFilter, pageSize, startingAfter, endingBefore, sortBy, sortAsc, owner, deviceTypeName } = {}, options) {
|
|
464
469
|
const requestConfig = {
|
|
465
470
|
method: 'get'
|
|
466
471
|
};
|
|
@@ -495,6 +500,9 @@ class AssetService extends base_service_1.BaseService {
|
|
|
495
500
|
if (owner != null) {
|
|
496
501
|
queryParameters['owner'] = owner;
|
|
497
502
|
}
|
|
503
|
+
if (deviceTypeName != null) {
|
|
504
|
+
queryParameters['device_type_name'] = deviceTypeName;
|
|
505
|
+
}
|
|
498
506
|
requestConfig.params = queryParameters;
|
|
499
507
|
requestConfig.mediaType = 'application/json';
|
|
500
508
|
requestConfig.options = options;
|