@c8y/client 1023.97.8 → 1024.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"gettext-typed.d.ts","sourceRoot":"","sources":["../../../src/gettext-typed.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,CAAC,mBAAa,CAAC;AAC5B,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAEnD"}
1
+ {"version":3,"file":"gettext-typed.d.ts","sourceRoot":"","sources":["../../../src/gettext-typed.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,CAAC,GAAG,QAAG,QAAO,CAAC;AAC5B,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAEnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"gettext.d.ts","sourceRoot":"","sources":["../../../src/gettext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,OAAO,iBAAS,CAAC"}
1
+ {"version":3,"file":"gettext.d.ts","sourceRoot":"","sources":["../../../src/gettext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAG,MAAC,QAAK,CAAC"}
@@ -12,7 +12,7 @@ export declare class ApplicationBinaryService extends Service<IApplicationBinary
12
12
  uploadApplicationVersion(archive: File, version: string, tags?: string[]): Promise<IResult<IApplicationBinary>>;
13
13
  uploadWithProgressXhr(binary: ArrayBuffer | Stream | Buffer | File | Blob, onProgress: any, fileName?: string, uploadParamsOverride?: IUploadParamsOverride): XMLHttpRequest;
14
14
  getXMLHttpResponse(xhr: any): Promise<IApplication>;
15
- list(filter?: any): Promise<import("../core/IResultList.js").IResultList<IApplicationBinary>>;
15
+ list(filter?: any): Promise<import("../public_api.js").IResultList<IApplicationBinary>>;
16
16
  delete(binaryOrId: string | number | IApplicationBinary): Promise<IResult<null>>;
17
17
  listPlugins(): Promise<{
18
18
  res: IFetchResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"gettext-typed.d.ts","sourceRoot":"","sources":["../../../src/gettext-typed.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,CAAC,mBAAa,CAAC;AAC5B,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAEnD"}
1
+ {"version":3,"file":"gettext-typed.d.ts","sourceRoot":"","sources":["../../../src/gettext-typed.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,CAAC,GAAG,QAAG,QAAO,CAAC;AAC5B,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAEnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"gettext.d.ts","sourceRoot":"","sources":["../../../src/gettext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,OAAO,iBAAS,CAAC"}
1
+ {"version":3,"file":"gettext.d.ts","sourceRoot":"","sources":["../../../src/gettext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAG,MAAC,QAAK,CAAC"}
@@ -14,7 +14,7 @@ export declare class InventoryBinaryService extends Service<IManagedObjectBinary
14
14
  * but these two properties will be removed from `managedObject` before saving.
15
15
  */
16
16
  create(file: Stream | Buffer | File | Blob, managedObject?: Partial<IManagedObject>): Promise<IResult<IManagedObjectBinary>>;
17
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IManagedObjectBinary>>;
17
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IManagedObjectBinary>>;
18
18
  delete(managedObjectOrId: IdReference): Promise<IResult<null>>;
19
19
  download(managedObjectOrId: IdReference, init?: IFetchOptions): Promise<IFetchResponse>;
20
20
  /**
@@ -73,7 +73,7 @@ export declare class MeasurementService extends Service<IMeasurement> {
73
73
  * })();
74
74
  * ```
75
75
  */
76
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IMeasurement>>;
76
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IMeasurement>>;
77
77
  /**
78
78
  * Removes a measurement with given id.
79
79
  *
@@ -101,7 +101,7 @@ export declare class OperationBulkService extends Service<IOperationBulk> {
101
101
  * })();
102
102
  * ```
103
103
  */
104
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IOperationBulk>>;
104
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IOperationBulk>>;
105
105
  /**
106
106
  * Removes an bulk operation with given id.
107
107
  *
@@ -22,7 +22,7 @@ export declare class TrustedCertificateService extends Service<ITrustedCertifica
22
22
  * })();
23
23
  * ```
24
24
  */
25
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<ITrustedCertificate>>;
25
+ list(filter?: object): Promise<import("../public_api.js").IResultList<ITrustedCertificate>>;
26
26
  /**
27
27
  * Gets the details of trusted certificate
28
28
  *
@@ -30,7 +30,7 @@ export declare class UserInventoryRoleService extends Service<IUserInventoryRole
30
30
  * Required role: ROLE_TENANT_MANAGEMENT_READ<br><br>
31
31
  * User password is never returned in GET response. Authentication mechanism is provided by another interface.
32
32
  */
33
- detail(entityOrId: string | number | IUserInventoryRole): Promise<import("../core/IResult.js").IResult<IUserInventoryRole>>;
33
+ detail(entityOrId: string | number | IUserInventoryRole): Promise<import("../public_api.js").IResult<IUserInventoryRole>>;
34
34
  /**
35
35
  * Assign inventory role to current user.
36
36
  *
@@ -50,13 +50,13 @@ export declare class UserInventoryRoleService extends Service<IUserInventoryRole
50
50
  * })();
51
51
  * ```
52
52
  */
53
- create(entity: IUserInventoryRole): Promise<import("../core/IResult.js").IResult<IUserInventoryRole>>;
53
+ create(entity: IUserInventoryRole): Promise<import("../public_api.js").IResult<IUserInventoryRole>>;
54
54
  /**
55
55
  * Updates an inventory role.
56
56
  *
57
57
  * @param {Partial<IUserInventoryRole>} entity Inventory Role object.
58
58
  */
59
- update(entity: Partial<IUserInventoryRole>): Promise<import("../core/IResult.js").IResult<IUserInventoryRole>>;
59
+ update(entity: Partial<IUserInventoryRole>): Promise<import("../public_api.js").IResult<IUserInventoryRole>>;
60
60
  /**
61
61
  * Gets the list the inventory roles applied to a current user.
62
62
  *
@@ -78,7 +78,7 @@ export declare class UserInventoryRoleService extends Service<IUserInventoryRole
78
78
  * })();
79
79
  * ```
80
80
  */
81
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IUserInventoryRole>>;
81
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IUserInventoryRole>>;
82
82
  /**
83
83
  * Unassign inventory role from current user
84
84
  *
@@ -96,6 +96,6 @@ export declare class UserInventoryRoleService extends Service<IUserInventoryRole
96
96
  * })();
97
97
  * ```
98
98
  */
99
- delete(entityOrId: string | number | IIdentified): Promise<import("../core/IResult.js").IResult<null>>;
99
+ delete(entityOrId: string | number | IIdentified): Promise<import("../public_api.js").IResult<null>>;
100
100
  }
101
101
  //# sourceMappingURL=UserInventoryRoleService.d.ts.map
@@ -112,7 +112,7 @@ export declare class UserService extends Service<IUser> {
112
112
  * })();
113
113
  * ```
114
114
  */
115
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IUser>>;
115
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IUser>>;
116
116
  /**
117
117
  * Removes user.
118
118
  *
@@ -25,7 +25,7 @@ export declare class UserRoleService extends Service<IRole> {
25
25
  * })();
26
26
  * ```
27
27
  */
28
- detail(entityOrId: string | number | IRole): Promise<import("../core/IResult.js").IResult<IRole>>;
28
+ detail(entityOrId: string | number | IRole): Promise<import("../public_api.js").IResult<IRole>>;
29
29
  /**
30
30
  * Gets the list of user roles filtered by parameters.
31
31
  *
@@ -47,6 +47,6 @@ export declare class UserRoleService extends Service<IRole> {
47
47
  * })();
48
48
  * ```
49
49
  */
50
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IRole>>;
50
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IRole>>;
51
51
  }
52
52
  //# sourceMappingURL=UserRoleService.d.ts.map
@@ -12,7 +12,7 @@ export declare class ApplicationBinaryService extends Service<IApplicationBinary
12
12
  uploadApplicationVersion(archive: File, version: string, tags?: string[]): Promise<IResult<IApplicationBinary>>;
13
13
  uploadWithProgressXhr(binary: ArrayBuffer | Stream | Buffer | File | Blob, onProgress: any, fileName?: string, uploadParamsOverride?: IUploadParamsOverride): XMLHttpRequest;
14
14
  getXMLHttpResponse(xhr: any): Promise<IApplication>;
15
- list(filter?: any): Promise<import("../core/IResultList.js").IResultList<IApplicationBinary>>;
15
+ list(filter?: any): Promise<import("../public_api.js").IResultList<IApplicationBinary>>;
16
16
  delete(binaryOrId: string | number | IApplicationBinary): Promise<IResult<null>>;
17
17
  listPlugins(): Promise<{
18
18
  res: IFetchResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"gettext-typed.d.ts","sourceRoot":"","sources":["../../src/gettext-typed.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,CAAC,mBAAa,CAAC;AAC5B,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAEnD"}
1
+ {"version":3,"file":"gettext-typed.d.ts","sourceRoot":"","sources":["../../src/gettext-typed.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,CAAC,GAAG,QAAG,QAAO,CAAC;AAC5B,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAEnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"gettext.d.ts","sourceRoot":"","sources":["../../src/gettext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,OAAO,iBAAS,CAAC"}
1
+ {"version":3,"file":"gettext.d.ts","sourceRoot":"","sources":["../../src/gettext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAG,MAAC,QAAK,CAAC"}
@@ -14,7 +14,7 @@ export declare class InventoryBinaryService extends Service<IManagedObjectBinary
14
14
  * but these two properties will be removed from `managedObject` before saving.
15
15
  */
16
16
  create(file: Stream | Buffer | File | Blob, managedObject?: Partial<IManagedObject>): Promise<IResult<IManagedObjectBinary>>;
17
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IManagedObjectBinary>>;
17
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IManagedObjectBinary>>;
18
18
  delete(managedObjectOrId: IdReference): Promise<IResult<null>>;
19
19
  download(managedObjectOrId: IdReference, init?: IFetchOptions): Promise<IFetchResponse>;
20
20
  /**
@@ -73,7 +73,7 @@ export declare class MeasurementService extends Service<IMeasurement> {
73
73
  * })();
74
74
  * ```
75
75
  */
76
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IMeasurement>>;
76
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IMeasurement>>;
77
77
  /**
78
78
  * Removes a measurement with given id.
79
79
  *
@@ -101,7 +101,7 @@ export declare class OperationBulkService extends Service<IOperationBulk> {
101
101
  * })();
102
102
  * ```
103
103
  */
104
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IOperationBulk>>;
104
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IOperationBulk>>;
105
105
  /**
106
106
  * Removes an bulk operation with given id.
107
107
  *
@@ -22,7 +22,7 @@ export declare class TrustedCertificateService extends Service<ITrustedCertifica
22
22
  * })();
23
23
  * ```
24
24
  */
25
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<ITrustedCertificate>>;
25
+ list(filter?: object): Promise<import("../public_api.js").IResultList<ITrustedCertificate>>;
26
26
  /**
27
27
  * Gets the details of trusted certificate
28
28
  *
@@ -30,7 +30,7 @@ export declare class UserInventoryRoleService extends Service<IUserInventoryRole
30
30
  * Required role: ROLE_TENANT_MANAGEMENT_READ<br><br>
31
31
  * User password is never returned in GET response. Authentication mechanism is provided by another interface.
32
32
  */
33
- detail(entityOrId: string | number | IUserInventoryRole): Promise<import("../core/IResult.js").IResult<IUserInventoryRole>>;
33
+ detail(entityOrId: string | number | IUserInventoryRole): Promise<import("../public_api.js").IResult<IUserInventoryRole>>;
34
34
  /**
35
35
  * Assign inventory role to current user.
36
36
  *
@@ -50,13 +50,13 @@ export declare class UserInventoryRoleService extends Service<IUserInventoryRole
50
50
  * })();
51
51
  * ```
52
52
  */
53
- create(entity: IUserInventoryRole): Promise<import("../core/IResult.js").IResult<IUserInventoryRole>>;
53
+ create(entity: IUserInventoryRole): Promise<import("../public_api.js").IResult<IUserInventoryRole>>;
54
54
  /**
55
55
  * Updates an inventory role.
56
56
  *
57
57
  * @param {Partial<IUserInventoryRole>} entity Inventory Role object.
58
58
  */
59
- update(entity: Partial<IUserInventoryRole>): Promise<import("../core/IResult.js").IResult<IUserInventoryRole>>;
59
+ update(entity: Partial<IUserInventoryRole>): Promise<import("../public_api.js").IResult<IUserInventoryRole>>;
60
60
  /**
61
61
  * Gets the list the inventory roles applied to a current user.
62
62
  *
@@ -78,7 +78,7 @@ export declare class UserInventoryRoleService extends Service<IUserInventoryRole
78
78
  * })();
79
79
  * ```
80
80
  */
81
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IUserInventoryRole>>;
81
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IUserInventoryRole>>;
82
82
  /**
83
83
  * Unassign inventory role from current user
84
84
  *
@@ -96,6 +96,6 @@ export declare class UserInventoryRoleService extends Service<IUserInventoryRole
96
96
  * })();
97
97
  * ```
98
98
  */
99
- delete(entityOrId: string | number | IIdentified): Promise<import("../core/IResult.js").IResult<null>>;
99
+ delete(entityOrId: string | number | IIdentified): Promise<import("../public_api.js").IResult<null>>;
100
100
  }
101
101
  //# sourceMappingURL=UserInventoryRoleService.d.ts.map
@@ -112,7 +112,7 @@ export declare class UserService extends Service<IUser> {
112
112
  * })();
113
113
  * ```
114
114
  */
115
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IUser>>;
115
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IUser>>;
116
116
  /**
117
117
  * Removes user.
118
118
  *
@@ -25,7 +25,7 @@ export declare class UserRoleService extends Service<IRole> {
25
25
  * })();
26
26
  * ```
27
27
  */
28
- detail(entityOrId: string | number | IRole): Promise<import("../core/IResult.js").IResult<IRole>>;
28
+ detail(entityOrId: string | number | IRole): Promise<import("../public_api.js").IResult<IRole>>;
29
29
  /**
30
30
  * Gets the list of user roles filtered by parameters.
31
31
  *
@@ -47,6 +47,6 @@ export declare class UserRoleService extends Service<IRole> {
47
47
  * })();
48
48
  * ```
49
49
  */
50
- list(filter?: object): Promise<import("../core/IResultList.js").IResultList<IRole>>;
50
+ list(filter?: object): Promise<import("../public_api.js").IResultList<IRole>>;
51
51
  }
52
52
  //# sourceMappingURL=UserRoleService.d.ts.map
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@c8y/client",
3
- "version": "1023.97.8",
3
+ "version": "1024.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "Client application programming interface to access the Cumulocity IoT-Platform REST services.",
7
7
  "scripts": {
8
8
  "build": "rimraf lib && yarn build:esm2015 && yarn build:cjs && yarn build:typings",
9
- "build:cjs": "tsc -p . --module commonjs --outDir lib/cjs",
9
+ "build:cjs": "tsc -p . --module commonjs --moduleResolution node --outDir lib/cjs",
10
10
  "build:esm2015": "tsc -p . --target es2015 --outDir lib/esm2015 && echo \"{\\\"type\\\": \\\"module\\\"}\" > lib/esm2015/package.json",
11
11
  "build:typings": "tsc -p . --emitDeclarationOnly true --declaration true --declarationDir lib",
12
+ "prepack": "rimraf lib/**/*.js.map",
12
13
  "docs": "typedoc --tsconfig docs.tsconfig.json ./index.ts",
13
14
  "test:coverage": "jest --coverage",
14
15
  "test:watch": "jest --watch",
@@ -56,13 +57,13 @@
56
57
  },
57
58
  "devDependencies": {
58
59
  "@types/fs-extra": "11.0.4",
59
- "@types/jest": "^29.5.14",
60
+ "@types/jest": "^30.0.0",
60
61
  "fs-extra": "11.3.0",
61
62
  "ncp": "2.0.0",
62
63
  "rimraf": "2.6.2",
63
64
  "ts-jest": "^29.4.0",
64
65
  "typedoc": "0.28.19",
65
66
  "typedoc-plugin-llms-txt": "0.1.2",
66
- "typescript": "5.5.4"
67
+ "typescript": "5.9.3"
67
68
  }
68
69
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}